diff options
author | Jeremy Allison <jra@samba.org> | 2006-02-18 00:27:31 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 11:10:13 -0500 |
commit | 9132acff082381b32961eb2b3244b8fedd4df218 (patch) | |
tree | 344dc24de1501de59edc6036480efaf29807d92f /source3/libsmb | |
parent | 3403fc2d4966e7b2e29ec45ecdc53332302427e4 (diff) | |
download | samba-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')
-rw-r--r-- | source3/libsmb/credentials.c | 8 | ||||
-rw-r--r-- | source3/libsmb/smbencrypt.c | 2 |
2 files changed, 5 insertions, 5 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) { diff --git a/source3/libsmb/smbencrypt.c b/source3/libsmb/smbencrypt.c index 5bdd0acd3e..ddfe696b48 100644 --- a/source3/libsmb/smbencrypt.c +++ b/source3/libsmb/smbencrypt.c @@ -534,7 +534,7 @@ BOOL decode_pw_buffer(uint8 in_buffer[516], char *new_pwrd, Decode an arc4 encrypted password change buffer. ************************************************************/ -void encode_or_decode_arc4_passwd_buffer(char pw_buf[532], const DATA_BLOB *psession_key) +void encode_or_decode_arc4_passwd_buffer(unsigned char pw_buf[532], const DATA_BLOB *psession_key) { struct MD5Context tctx; unsigned char key_out[16]; |