summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2005-02-17 15:32:19 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 10:55:40 -0500
commit4e8c17d98589c2983b6a4efdbe0563cbb8ab4e19 (patch)
treee05e4e5fa72cbc338f45d4435065088de61590f1
parent732f09990fda978fe1cbef786d6b2d15897e6f97 (diff)
downloadsamba-4e8c17d98589c2983b6a4efdbe0563cbb8ab4e19.tar.gz
samba-4e8c17d98589c2983b6a4efdbe0563cbb8ab4e19.tar.bz2
samba-4e8c17d98589c2983b6a4efdbe0563cbb8ab4e19.zip
r5432: compile fixes from Jason Mader <jason@ncac.gwu.edu> -- BUGS 2340
(This used to be commit 3fd86a1f9d5b63aa066aed3347209913cdf782a8)
-rw-r--r--source3/libsmb/ntlmssp_sign.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/libsmb/ntlmssp_sign.c b/source3/libsmb/ntlmssp_sign.c
index ee0f9df024..b810597076 100644
--- a/source3/libsmb/ntlmssp_sign.c
+++ b/source3/libsmb/ntlmssp_sign.c
@@ -53,7 +53,7 @@ static void NTLMSSPcalc_ap( unsigned char *hash, unsigned char *data, int len)
hash[257] = index_j;
}
-static void calc_hash(unsigned char hash[258], const char *k2, int k2l)
+static void calc_hash(unsigned char hash[258], unsigned char *k2, int k2l)
{
unsigned char j = 0;
int ind;
@@ -390,7 +390,7 @@ NTSTATUS ntlmssp_sign_init(NTLMSSP_STATE *ntlmssp_state)
DEBUG(5, ("NTLMSSP Sign/Seal - using LM KEY\n"));
- calc_hash(ntlmssp_state->ntlmssp_hash, (const char *)(ntlmssp_state->session_key.data), 8);
+ calc_hash(ntlmssp_state->ntlmssp_hash, ntlmssp_state->session_key.data, 8);
dump_data_pw("NTLMSSP hash:\n", ntlmssp_state->ntlmssp_hash,
sizeof(ntlmssp_state->ntlmssp_hash));
} else {
@@ -402,7 +402,7 @@ NTSTATUS ntlmssp_sign_init(NTLMSSP_STATE *ntlmssp_state)
DEBUG(5, ("NTLMSSP Sign/Seal - using NT KEY\n"));
- calc_hash(ntlmssp_state->ntlmssp_hash, (const char *)(ntlmssp_state->session_key.data), 16);
+ calc_hash(ntlmssp_state->ntlmssp_hash, ntlmssp_state->session_key.data, 16);
dump_data_pw("NTLMSSP hash:\n", ntlmssp_state->ntlmssp_hash,
sizeof(ntlmssp_state->ntlmssp_hash));
}