NTLM authentication and signing - Calculate auth response per smb session
authorShirish Pargaonkar <shirishpargaonkar@gmail.com>
Wed, 13 Oct 2010 23:15:00 +0000 (18:15 -0500)
committerSteve French <sfrench@us.ibm.com>
Thu, 14 Oct 2010 18:05:19 +0000 (18:05 +0000)
commit5d0d28824c76409f0d1a645bf0ae81318c8ffa42
tree592838282fc891dc9a51424e0f57c0694ad31075
parentd7c86ff8cd00abc730fe5d031f43dc9138b6324e
NTLM authentication and signing - Calculate auth response per smb session

Start calculation auth response within a session.  Move/Add pertinet
data structures like session key, server challenge and ntlmv2_hash in
a session structure.  We should do the calculations within a session
before copying session key and response over to server data
structures because a session setup can fail.

Only after a very first smb session succeeds, it copies/makes its
session key, session key of smb connection.  This key stays with
the smb connection throughout its life.

Signed-off-by: Shirish Pargaonkar <shirishpargaonkar@gmail.com>
Reviewed-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Steve French <sfrench@us.ibm.com>
fs/cifs/cifsencrypt.c
fs/cifs/cifsglob.h
fs/cifs/cifssmb.c
fs/cifs/connect.c
fs/cifs/sess.c