summaryrefslogtreecommitdiff
path: root/source3/libsmb/credentials.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2006-02-18 00:27:31 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:10:13 -0500
commit9132acff082381b32961eb2b3244b8fedd4df218 (patch)
tree344dc24de1501de59edc6036480efaf29807d92f /source3/libsmb/credentials.c
parent3403fc2d4966e7b2e29ec45ecdc53332302427e4 (diff)
downloadsamba-9132acff082381b32961eb2b3244b8fedd4df218.tar.gz
samba-9132acff082381b32961eb2b3244b8fedd4df218.tar.bz2
samba-9132acff082381b32961eb2b3244b8fedd4df218.zip
r13553: Fix all our warnings at -O6 on an x86_64 box.
Jeremy. (This used to be commit ea82958349a57ef4b7ce9638eec5f1388b0fba2a)
Diffstat (limited to 'source3/libsmb/credentials.c')
-rw-r--r--source3/libsmb/credentials.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source3/libsmb/credentials.c b/source3/libsmb/credentials.c
index 975f9bca49..76fc5fc062 100644
--- a/source3/libsmb/credentials.c
+++ b/source3/libsmb/credentials.c
@@ -43,7 +43,7 @@ char *credstr(const unsigned char *cred)
static void creds_init_128(struct dcinfo *dc,
const DOM_CHAL *clnt_chal_in,
const DOM_CHAL *srv_chal_in,
- const char mach_pw[16])
+ const unsigned char mach_pw[16])
{
unsigned char zero[4], tmp[16];
HMACMD5Context ctx;
@@ -95,7 +95,7 @@ static void creds_init_128(struct dcinfo *dc,
static void creds_init_64(struct dcinfo *dc,
const DOM_CHAL *clnt_chal_in,
const DOM_CHAL *srv_chal_in,
- const char mach_pw[16])
+ const unsigned char mach_pw[16])
{
uint32 sum[2];
unsigned char sum2[8];
@@ -176,13 +176,13 @@ void creds_server_init(uint32 neg_flags,
struct dcinfo *dc,
DOM_CHAL *clnt_chal,
DOM_CHAL *srv_chal,
- const char mach_pw[16],
+ const unsigned char mach_pw[16],
DOM_CHAL *init_chal_out)
{
DEBUG(10,("creds_server_init: neg_flags : %x\n", (unsigned int)neg_flags));
DEBUG(10,("creds_server_init: client chal : %s\n", credstr(clnt_chal->data) ));
DEBUG(10,("creds_server_init: server chal : %s\n", credstr(srv_chal->data) ));
- dump_data_pw("creds_server_init: machine pass", (const unsigned char *)mach_pw, 16);
+ dump_data_pw("creds_server_init: machine pass", mach_pw, 16);
/* Generate the session key and the next client and server creds. */
if (neg_flags & NETLOGON_NEG_128BIT) {