]> git.karo-electronics.de Git - karo-tx-linux.git/commit
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, 10 Jun 2013 22:09:58 +0000 (17:09 -0500)
commit9284caed280d6dce063c37170bd06a5b3bbf39b2
tree14cf703acef05261fe262835fc2b87a902e3ce5d
parent6a9b00e64de4578f7473e9d103718c263bc0f77f
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