]> git.baikalelectronics.ru Git - kernel.git/commit
cifs: Add a variable specific to NTLMSSP for key exchange.
authorShirish Pargaonkar <shirishpargaonkar@gmail.com>
Thu, 29 Aug 2013 13:35:10 +0000 (08:35 -0500)
committerSteve French <smfrench@gmail.com>
Sun, 8 Sep 2013 19:47:49 +0000 (14:47 -0500)
commitc407a560cb7736687a14b5858f0b29e55d805108
tree8576ec4eb00a2adca7517d6bee0bc4a781c21ab8
parent67882cfa7e51a3873b51c5c3f4a7510b1350f06a
cifs: Add a variable specific to NTLMSSP for key exchange.

Add a variable specific to NTLMSSP authentication to determine
whether to exchange keys during negotiation and authentication phases.

Since session key for smb1 is per smb connection, once a very first
sesion is established, there is no need for key exchange during
subsequent session setups. As a result, smb1 session setup code sets this
variable as false.

Since session key for smb2 and smb3 is per smb connection, we need to
exchange keys to generate session key for every sesion being established.
As a result, smb2/3 session setup code sets this variable as true.

Acked-by: Jeff Layton <jlayton@samba.org>
Signed-off-by: Shirish Pargaonkar <shirishpargaonkar@gmail.com>
Signed-off-by: Steve French <smfrench@gmail.com>
fs/cifs/cifsglob.h
fs/cifs/sess.c
fs/cifs/smb2pdu.c