]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - fs/cifs/connect.c
cifs: have calc_lanman_hash take more granular args
[linux-2.6-omap-h63xx.git] / fs / cifs / connect.c
index 6107ee42b0930278f37f47b801ca6a8862327108..3a84a375cb6f4d535443232ed0ae408611a917d6 100644 (file)
@@ -3533,7 +3533,10 @@ CIFSTCon(unsigned int xid, struct cifsSesInfo *ses,
 #ifdef CONFIG_CIFS_WEAK_PW_HASH
                if ((extended_security & CIFSSEC_MAY_LANMAN) &&
                        (ses->server->secType == LANMAN))
-                       calc_lanman_hash(ses, bcc_ptr);
+                       calc_lanman_hash(ses->password, ses->server->cryptKey,
+                                        ses->server->secMode &
+                                           SECMODE_PW_ENCRYPT ? true : false,
+                                        bcc_ptr);
                else
 #endif /* CIFS_WEAK_PW_HASH */
                SMBNTencrypt(ses->password,