]> git.karo-electronics.de Git - karo-tx-linux.git/commit
[CIFS] 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>
Thu, 13 Jun 2013 00:52:14 +0000 (19:52 -0500)
commit18bb43608cb5d1250a11a999d9c74e95d8ee18bb
treec0cc1ff1d7fbdfeb78a33e89e2bbc39aee18b930
parentaf35ede4f6ff92972ca40754dea5cefe962678ec
[CIFS] 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