diff options
author | Shirish Pargaonkar <shirishpargaonkar@gmail.com> | 2010-10-27 16:20:36 -0400 |
---|---|---|
committer | Steve French <sfrench@us.ibm.com> | 2010-10-28 21:47:30 -0400 |
commit | d3ba50b17aa7a391bb5b3dcd8d6ba7a02c4f031c (patch) | |
tree | 452ddaeb1d52387a852d0c3cf46c4253347d0a27 /fs/cifs/cifsglob.h | |
parent | 6b03590412c977ae8fa1635c9b80854ab19a5b78 (diff) |
NTLM auth and sign - Use appropriate server challenge
Need to have cryptkey or server challenge in smb connection
(struct TCP_Server_Info) for ntlm and ntlmv2 auth types for which
cryptkey (Encryption Key) is supplied just once in Negotiate Protocol
response during an smb connection setup for all the smb sessions over
that smb connection.
For ntlmssp, cryptkey or server challenge is provided for every
smb session in type 2 packet of ntlmssp negotiation, the cryptkey
provided during Negotiation Protocol response before smb connection
does not count.
Rename cryptKey to cryptkey and related changes.
Signed-off-by: Shirish Pargaonkar <shirishpargaonkar@gmail.com>
Signed-off-by: Steve French <sfrench@us.ibm.com>
Diffstat (limited to 'fs/cifs/cifsglob.h')
-rw-r--r-- | fs/cifs/cifsglob.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/cifs/cifsglob.h b/fs/cifs/cifsglob.h index 67d6a2280a01..b73695176467 100644 --- a/fs/cifs/cifsglob.h +++ b/fs/cifs/cifsglob.h | |||
@@ -196,6 +196,7 @@ struct TCP_Server_Info { | |||
196 | int capabilities; /* allow selective disabling of caps by smb sess */ | 196 | int capabilities; /* allow selective disabling of caps by smb sess */ |
197 | int timeAdj; /* Adjust for difference in server time zone in sec */ | 197 | int timeAdj; /* Adjust for difference in server time zone in sec */ |
198 | __u16 CurrentMid; /* multiplex id - rotating counter */ | 198 | __u16 CurrentMid; /* multiplex id - rotating counter */ |
199 | char cryptkey[CIFS_CRYPTO_KEY_SIZE]; /* used by ntlm, ntlmv2 etc */ | ||
199 | /* 16th byte of RFC1001 workstation name is always null */ | 200 | /* 16th byte of RFC1001 workstation name is always null */ |
200 | char workstation_RFC1001_name[RFC1001_NAME_LEN_WITH_NULL]; | 201 | char workstation_RFC1001_name[RFC1001_NAME_LEN_WITH_NULL]; |
201 | __u32 sequence_number; /* needed for CIFS PDU signature */ | 202 | __u32 sequence_number; /* needed for CIFS PDU signature */ |
@@ -240,7 +241,7 @@ struct cifsSesInfo { | |||
240 | char userName[MAX_USERNAME_SIZE + 1]; | 241 | char userName[MAX_USERNAME_SIZE + 1]; |
241 | char *domainName; | 242 | char *domainName; |
242 | char *password; | 243 | char *password; |
243 | char cryptKey[CIFS_CRYPTO_KEY_SIZE]; | 244 | char cryptkey[CIFS_CRYPTO_KEY_SIZE]; /* used by ntlmssp */ |
244 | struct session_key auth_key; | 245 | struct session_key auth_key; |
245 | char ntlmv2_hash[16]; | 246 | char ntlmv2_hash[16]; |
246 | unsigned int tilen; /* length of the target info blob */ | 247 | unsigned int tilen; /* length of the target info blob */ |