diff options
author | Steve French <sfrench@us.ibm.com> | 2006-06-08 01:41:32 -0400 |
---|---|---|
committer | Steve French <sfrench@us.ibm.com> | 2006-06-08 01:41:32 -0400 |
commit | 1717ffc58850dfa9e08b4977f8d0323cb3336863 (patch) | |
tree | 6528d6d355b1288fe4831cdff59671f6536b4b2b /fs/cifs/cifsproto.h | |
parent | f3ffb6814408f29817fc84d40ecc9c796acaa3ab (diff) |
[CIFS] NTLMv2 support part 5
NTLMv2 authentication (stronger authentication than default NTLM) which
many servers support now works. There was a problem with the construction
of the security blob in the older code. Currently requires
/proc/fs/cifs/Experimental to be set to 2
and
/proc/fs/cifs/SecurityFlags to be set to 0x4004 (to require using
NTLMv2 instead of default of NTLM)
Next we will check signing to make sure optional NTLMv2 packet signing also
works.
Signed-off-by: Steve French <sfrench@us.ibm.com>
Diffstat (limited to 'fs/cifs/cifsproto.h')
-rw-r--r-- | fs/cifs/cifsproto.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/fs/cifs/cifsproto.h b/fs/cifs/cifsproto.h index 824afb937a6f..7ffd5b0d63cf 100644 --- a/fs/cifs/cifsproto.h +++ b/fs/cifs/cifsproto.h | |||
@@ -285,9 +285,11 @@ extern int cifs_sign_smb2(struct kvec *iov, int n_vec, struct TCP_Server_Info *, | |||
285 | extern int cifs_verify_signature(struct smb_hdr *, const char * mac_key, | 285 | extern int cifs_verify_signature(struct smb_hdr *, const char * mac_key, |
286 | __u32 expected_sequence_number); | 286 | __u32 expected_sequence_number); |
287 | extern int cifs_calculate_mac_key(char * key,const char * rn,const char * pass); | 287 | extern int cifs_calculate_mac_key(char * key,const char * rn,const char * pass); |
288 | extern int CalcNTLMv2_partial_mac_key(struct cifsSesInfo *, struct nls_table *); | 288 | extern int CalcNTLMv2_partial_mac_key(struct cifsSesInfo *, |
289 | extern void CalcNTLMv2_response(const struct cifsSesInfo *,char * ); | 289 | const struct nls_table *); |
290 | extern void setup_ntlmv2_rsp(const struct cifsSesInfo *, char *); | 290 | extern void CalcNTLMv2_response(const struct cifsSesInfo *, char * ); |
291 | extern void setup_ntlmv2_rsp(struct cifsSesInfo *, char *, | ||
292 | const struct nls_table *); | ||
291 | #ifdef CONFIG_CIFS_WEAK_PW_HASH | 293 | #ifdef CONFIG_CIFS_WEAK_PW_HASH |
292 | extern void calc_lanman_hash(struct cifsSesInfo * ses, char * lnm_session_key); | 294 | extern void calc_lanman_hash(struct cifsSesInfo * ses, char * lnm_session_key); |
293 | #endif /* CIFS_WEAK_PW_HASH */ | 295 | #endif /* CIFS_WEAK_PW_HASH */ |