summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2009-12-29 17:25:20 +0100
committerGünther Deschner <gd@samba.org>2010-03-24 17:34:54 +0100
commitc2cc18455b46f2015b916daacaca1fb0ba88ce87 (patch)
treea2c3b35e51f40a4d7c04305767a627027b3a86ad /source3
parent25a89b701596aea4e62ffdf11777022687ea5f44 (diff)
downloadsamba-c2cc18455b46f2015b916daacaca1fb0ba88ce87.tar.gz
samba-c2cc18455b46f2015b916daacaca1fb0ba88ce87.tar.bz2
samba-c2cc18455b46f2015b916daacaca1fb0ba88ce87.zip
s3:ntlmssp: use uint8_t in calc_ntlmv2_key()
metze Signed-off-by: Günther Deschner <gd@samba.org>
Diffstat (limited to 'source3')
-rw-r--r--source3/libsmb/ntlmssp_sign.c8
1 files changed, 4 insertions, 4 deletions
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);
}