]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - fs/cifs/cifspdu.h
[CIFS] Fix ntlmv2 auth with ntlmssp
[net-next-2.6.git] / fs / cifs / cifspdu.h
index 14d036d8db111f2719f9e50576e94024a105adfc..320e0fd0ba7b5f988b559e060173dc61c2aa064c 100644 (file)
  * Size of the session key (crypto key encrypted with the password
  */
 #define CIFS_SESS_KEY_SIZE (24)
+#define CIFS_CLIENT_CHALLENGE_SIZE (8)
+#define CIFS_SERVER_CHALLENGE_SIZE (8)
+#define CIFS_HMAC_MD5_HASH_SIZE (16)
+#define CIFS_CPHTXT_SIZE (16)
+#define CIFS_NTLMV2_SESSKEY_SIZE (16)
+#define CIFS_NTHASH_SIZE (16)
 
 /*
  * Maximum user name length
@@ -663,7 +669,6 @@ struct ntlmv2_resp {
        __le64  time;
        __u64  client_chal; /* random */
        __u32  reserved2;
-       struct ntlmssp2_name names[2];
        /* array of name entries could follow ending in minimum 4 byte struct */
 } __attribute__((packed));