From 598bfdcfd8b7a21815db214b1f7be62cbf7fe720 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Fri, 8 Jan 2010 14:11:10 -0700 Subject: s4:ntlmssp: make use of dump_arc4_state() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit metze Signed-off-by: Günther Deschner --- source4/auth/ntlmssp/ntlmssp_sign.c | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) (limited to 'source4') 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; } -- cgit