summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2004-01-25 01:35:31 +0000
committerAndrew Bartlett <abartlet@samba.org>2004-01-25 01:35:31 +0000
commit96faba97233674b6e4e7a86cd99a6fb052ffa055 (patch)
tree5735790f00b78b770c0fb76779a0ba9b1a4e8c57
parent21ec3fa3e3ce09b5476e4d3d1452dc6477f8b8ef (diff)
downloadsamba-96faba97233674b6e4e7a86cd99a6fb052ffa055.tar.gz
samba-96faba97233674b6e4e7a86cd99a6fb052ffa055.tar.bz2
samba-96faba97233674b6e4e7a86cd99a6fb052ffa055.zip
(merge from 3.0)
Fix the initialisation vectors for NTLM2, so that they at least make sense, even if they don't work yet. Andrew Bartlett (This used to be commit 40cc86d4b31efdee519cf2e2c9b62c4fdc885724)
-rw-r--r--source3/libsmb/ntlmssp_sign.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/libsmb/ntlmssp_sign.c b/source3/libsmb/ntlmssp_sign.c
index 6ce7a76743..2347619e57 100644
--- a/source3/libsmb/ntlmssp_sign.c
+++ b/source3/libsmb/ntlmssp_sign.c
@@ -362,14 +362,14 @@ NTSTATUS ntlmssp_sign_init(NTLMSSP_STATE *ntlmssp_state)
calc_ntlmv2_hash(ntlmssp_state->recv_sign_hash,
ntlmssp_state->recv_sign_const,
- ntlmssp_state->session_key, send_sign_const);
+ ntlmssp_state->session_key, recv_sign_const);
dump_data_pw("NTLMSSP receive sign hash:\n",
ntlmssp_state->recv_sign_hash,
sizeof(ntlmssp_state->recv_sign_hash));
calc_ntlmv2_hash(ntlmssp_state->recv_seal_hash,
ntlmssp_state->recv_seal_const,
- ntlmssp_state->session_key, send_seal_const);
+ ntlmssp_state->session_key, recv_seal_const);
dump_data_pw("NTLMSSP receive seal hash:\n",
ntlmssp_state->recv_sign_hash,
sizeof(ntlmssp_state->recv_sign_hash));