]> git.baikalelectronics.ru Git - kernel.git/commit
cifs: Process post session setup code in respective dialect functions.
authorShirish Pargaonkar <shirishpargaonkar@gmail.com>
Thu, 29 Aug 2013 13:35:09 +0000 (08:35 -0500)
committerSteve French <smfrench@gmail.com>
Sun, 8 Sep 2013 19:47:47 +0000 (14:47 -0500)
commit67882cfa7e51a3873b51c5c3f4a7510b1350f06a
tree4f17bdbe75843ac578a9a9e1ee491192dd280d73
parent30223584d08b2f83d82a6156472c5195092de7d7
cifs: Process post session setup code in respective dialect functions.

Move the post (successful) session setup code to respective dialect routines.

For smb1, session key is per smb connection.
For smb2/smb3, session key is per smb session.

If client and server do not require signing, free session key for smb1/2/3.

If client and server require signing
  smb1 - Copy (kmemdup) session key for the first session to connection.
         Free session key of that and subsequent sessions on this connection.
  smb2 - For every session, keep the session key and free it when the
         session is being shutdown.
  smb3 - For every session, generate the smb3 signing key using the session key
         and then free the session key.

There are two unrelated line formatting changes as well.

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