summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2010-01-08 14:11:10 -0700
committerGünther Deschner <gd@samba.org>2010-03-24 17:34:54 +0100
commit598bfdcfd8b7a21815db214b1f7be62cbf7fe720 (patch)
tree588a7dda430da8bd1a52cfdac31f65ec8aa86f2e /source4
parent48d815787924ec8ef4c421c91149a170d474533a (diff)
downloadsamba-598bfdcfd8b7a21815db214b1f7be62cbf7fe720.tar.gz
samba-598bfdcfd8b7a21815db214b1f7be62cbf7fe720.tar.bz2
samba-598bfdcfd8b7a21815db214b1f7be62cbf7fe720.zip
s4:ntlmssp: make use of dump_arc4_state()
metze Signed-off-by: Günther Deschner <gd@samba.org>
Diffstat (limited to 'source4')
-rw-r--r--source4/auth/ntlmssp/ntlmssp_sign.c15
1 files changed, 7 insertions, 8 deletions
diff --git a/source4/auth/ntlmssp/ntlmssp_sign.c b/source4/auth/ntlmssp/ntlmssp_sign.c
index 89cc0888cc..ad36de3d4e 100644
--- a/source4/auth/ntlmssp/ntlmssp_sign.c
+++ b/source4/auth/ntlmssp/ntlmssp_sign.c
@@ -431,9 +431,8 @@ NTSTATUS ntlmssp_sign_init(struct ntlmssp_state *ntlmssp_state)
arcfour_init(ntlmssp_state->crypt.ntlm2.send_seal_arcfour_state,
&send_seal_blob);
- dump_data_pw("NTLMSSP send sesl hash:\n",
- ntlmssp_state->crypt.ntlm2.send_seal_arcfour_state->sbox,
- sizeof(ntlmssp_state->crypt.ntlm2.send_seal_arcfour_state->sbox));
+ dump_arc4_state("NTLMSSP send seal arc4 state:\n",
+ ntlmssp_state->crypt.ntlm2.send_seal_arcfour_state);
/* SEND: seq num */
ntlmssp_state->crypt.ntlm2.send_seq_num = 0;
@@ -452,9 +451,8 @@ NTSTATUS ntlmssp_sign_init(struct ntlmssp_state *ntlmssp_state)
arcfour_init(ntlmssp_state->crypt.ntlm2.recv_seal_arcfour_state,
&recv_seal_blob);
- dump_data_pw("NTLMSSP receive seal hash:\n",
- ntlmssp_state->crypt.ntlm2.recv_seal_arcfour_state->sbox,
- sizeof(ntlmssp_state->crypt.ntlm2.recv_seal_arcfour_state->sbox));
+ dump_arc4_state("NTLMSSP recv seal arc4 state:\n",
+ ntlmssp_state->crypt.ntlm2.recv_seal_arcfour_state);
/* RECV: seq num */
ntlmssp_state->crypt.ntlm2.recv_seq_num = 0;
@@ -506,8 +504,9 @@ NTSTATUS ntlmssp_sign_init(struct ntlmssp_state *ntlmssp_state)
arcfour_init(ntlmssp_state->crypt.ntlm.arcfour_state,
&seal_session_key);
- dump_data_pw("NTLMSSP hash:\n", ntlmssp_state->crypt.ntlm.arcfour_state->sbox,
- sizeof(ntlmssp_state->crypt.ntlm.arcfour_state->sbox));
+
+ dump_arc4_state("NTLMv1 arc4 state:\n",
+ ntlmssp_state->crypt.ntlm.arcfour_state);
ntlmssp_state->crypt.ntlm.seq_num = 0;
}