s4:ntlmssp: make use of dump_arc4_state()
authorStefan Metzmacher <metze@samba.org>
Fri, 8 Jan 2010 21:11:10 +0000 (14:11 -0700)
committerGünther Deschner <gd@samba.org>
Wed, 24 Mar 2010 16:34:54 +0000 (17:34 +0100)
metze

Signed-off-by: Günther Deschner <gd@samba.org>
source4/auth/ntlmssp/ntlmssp_sign.c

index 89cc0888cc7b2cd6a06524dbbfc931ae50d0eb86..ad36de3d4e67e3e739fce653cb2e8bb168bc5ecf 100644 (file)
@@ -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;
        }