From c2cc18455b46f2015b916daacaca1fb0ba88ce87 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Tue, 29 Dec 2009 17:25:20 +0100 Subject: s3:ntlmssp: use uint8_t in calc_ntlmv2_key() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit metze Signed-off-by: Günther Deschner --- source3/libsmb/ntlmssp_sign.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'source3/libsmb') diff --git a/source3/libsmb/ntlmssp_sign.c b/source3/libsmb/ntlmssp_sign.c index 7aa338688e..6f22b01e87 100644 --- a/source3/libsmb/ntlmssp_sign.c +++ b/source3/libsmb/ntlmssp_sign.c @@ -43,14 +43,14 @@ static void dump_arc4_state(const char *description, dump_data_pw(description, state->sbox, sizeof(state->sbox)); } -static void calc_ntlmv2_key(unsigned char subkey[16], - DATA_BLOB session_key, - const char *constant) +static void calc_ntlmv2_key(uint8_t subkey[16], + DATA_BLOB session_key, + const char *constant) { struct MD5Context ctx3; MD5Init(&ctx3); MD5Update(&ctx3, session_key.data, session_key.length); - MD5Update(&ctx3, (const unsigned char *)constant, strlen(constant)+1); + MD5Update(&ctx3, (const uint8_t *)constant, strlen(constant)+1); MD5Final(subkey, &ctx3); } -- cgit