cifs: track the flavor of the NEGOTIATE reponse
authorJeff Layton <jlayton@redhat.com>
Sun, 26 May 2013 11:00:59 +0000 (07:00 -0400)
committerSteve French <smfrench@gmail.com>
Mon, 24 Jun 2013 06:56:42 +0000 (01:56 -0500)
commite598d1d8fb512c7a4d86c729cdca30e87fe7cfc9
treeb55b7af7d1e6a701aee449239df1fe9f7f38ee50
parent515d82ffd0fe4a87d872c655a6e19a318770ea0c
cifs: track the flavor of the NEGOTIATE reponse

Track what sort of NEGOTIATE response we get from the server, as that
will govern what sort of authentication types this socket will support.

There are three possibilities:

LANMAN: server sent legacy LANMAN-type response

UNENCAP: server sent a newer-style response, but extended security bit
wasn't set. This socket will only support unencapsulated auth types.

EXTENDED: server sent a newer-style response with the extended security
bit set. This is necessary to support krb5 and ntlmssp auth types.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
Reviewed-by: Pavel Shilovsky <piastry@etersoft.ru>
Signed-off-by: Steve French <smfrench@gmail.com>
fs/cifs/cifsglob.h
fs/cifs/cifssmb.c
fs/cifs/smb2pdu.c