]> git.karo-electronics.de Git - karo-tx-linux.git/commit
move sectype to the cifs_ses instead of TCP_Server_Info
authorJeff Layton <jlayton@redhat.com>
Thu, 13 Jun 2013 00:52:14 +0000 (19:52 -0500)
committerSteve French <smfrench@gmail.com>
Mon, 24 Jun 2013 06:56:44 +0000 (01:56 -0500)
commit3f618223dc0bdcbc8d510350e78ee2195ff93768
tree07b910ab18112557f897f2192d073f97553e1055
parent38d77c50b4f4e3ea1687e119871364f1c8d2f531
move sectype to the cifs_ses instead of TCP_Server_Info

Now that we track what sort of NEGOTIATE response was received, stop
mandating that every session on a socket use the same type of auth.

Push that decision out into the session setup code, and make the sectype
a per-session property. This should allow us to mix multiple sectypes on
a socket as long as they are compatible with the NEGOTIATE response.

With this too, we can now eliminate the ses->secFlg field since that
info is redundant and harder to work with than a securityEnum.

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