aboutsummaryrefslogtreecommitdiffstats
path: root/fs/cifs/sess.c
diff options
context:
space:
mode:
authorSteve French <sfrench@us.ibm.com>2006-06-05 12:26:05 -0400
committerSteve French <sfrench@us.ibm.com>2006-06-05 12:26:05 -0400
commit6d027cfdb19c26df3151a519ed55acfe2c4cb7c3 (patch)
treec40004c2518013409bd0f701eca868fd14c74e7f /fs/cifs/sess.c
parentf64b23ae4aef9f69d71ea41529a188acd5ab4930 (diff)
[CIFS] NTLMv2 support part 3
Response struct filled in exacty for 16 byte hash which we need to check more to make sure it works. Signed-off-by: Steve French <sfrench@us.ibm.com>
Diffstat (limited to 'fs/cifs/sess.c')
-rw-r--r--fs/cifs/sess.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/cifs/sess.c b/fs/cifs/sess.c
index 9ce628df29b4..c6fd01f55e90 100644
--- a/fs/cifs/sess.c
+++ b/fs/cifs/sess.c
@@ -411,8 +411,8 @@ CIFS_SessSetup(unsigned int xid, struct cifsSesInfo *ses, int first_time,
411 else 411 else
412 ascii_ssetup_strings(&bcc_ptr, ses, nls_cp); 412 ascii_ssetup_strings(&bcc_ptr, ses, nls_cp);
413 } else if (type == NTLMv2) { 413 } else if (type == NTLMv2) {
414 char * v2_sess_key = kmalloc(sizeof(struct ntlmv2_resp), 414 char * v2_sess_key =
415 GFP_KERNEL); 415 kmalloc(sizeof(struct ntlmv2_resp), GFP_KERNEL);
416 416
417 /* BB FIXME change all users of v2_sess_key to 417 /* BB FIXME change all users of v2_sess_key to
418 struct ntlmv2_resp */ 418 struct ntlmv2_resp */
@@ -432,7 +432,7 @@ CIFS_SessSetup(unsigned int xid, struct cifsSesInfo *ses, int first_time,
432 cpu_to_le16(sizeof(struct ntlmv2_resp)); 432 cpu_to_le16(sizeof(struct ntlmv2_resp));
433 433
434 /* calculate session key */ 434 /* calculate session key */
435 CalcNTLMv2_response(ses, v2_sess_key); 435 setup_ntlmv2_rsp(ses, v2_sess_key);
436 if(first_time) /* should this be moved into common code 436 if(first_time) /* should this be moved into common code
437 with similar ntlmv2 path? */ 437 with similar ntlmv2 path? */
438 /* cifs_calculate_ntlmv2_mac_key(ses->server->mac_signing_key, 438 /* cifs_calculate_ntlmv2_mac_key(ses->server->mac_signing_key,