summaryrefslogtreecommitdiff
path: root/source3/smbd/password.c
diff options
context:
space:
mode:
authorSamba Release Account <samba-bugs@samba.org>1997-08-05 01:31:55 +0000
committerSamba Release Account <samba-bugs@samba.org>1997-08-05 01:31:55 +0000
commitb5114b41f574c5a5341e07d6f16877a48c6b874d (patch)
tree69835a9e7b31e94ab5637d024b2e3213bd45466b /source3/smbd/password.c
parente17a1e4ec8854c2472a90dbc60f997d8c081b791 (diff)
downloadsamba-b5114b41f574c5a5341e07d6f16877a48c6b874d.tar.gz
samba-b5114b41f574c5a5341e07d6f16877a48c6b874d.tar.bz2
samba-b5114b41f574c5a5341e07d6f16877a48c6b874d.zip
Makefile: Added IRIX 6 target.
loadparm.c: Fixed stupid static warnings with set_default_server_announce_type. password.c: Fixed char -> uchar cast warnings. nameservreply.c: Fixed group fade out code. Jeremy (jallison@whistle.com) (This used to be commit a2dd5c5a551547e83c707e63c0696c7724035501)
Diffstat (limited to 'source3/smbd/password.c')
-rw-r--r--source3/smbd/password.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/smbd/password.c b/source3/smbd/password.c
index 23c29104e3..67f32d376c 100644
--- a/source3/smbd/password.c
+++ b/source3/smbd/password.c
@@ -54,7 +54,7 @@ void generate_next_challenge(char *challenge)
v2 = (counter++) * getpid() + tval.tv_usec;
SIVAL(challenge,0,v1);
SIVAL(challenge,4,v2);
- E1(challenge,"SAMBA",(char *)saved_challenge);
+ E1((uchar *)challenge,(uchar *)"SAMBA",(uchar *)saved_challenge);
memcpy(challenge,saved_challenge,8);
challenge_sent = True;
}
@@ -944,7 +944,7 @@ BOOL password_ok(char *user,char *password, int pwlen, struct passwd *pwd)
DEBUG(4,("Checking NT MD4 password\n"));
if(smb_password_check(password,
smb_pass->smb_nt_passwd,
- (char *)challenge))
+ (unsigned char *)challenge))
{
update_protected_database(user,True);
return(True);
@@ -957,7 +957,7 @@ BOOL password_ok(char *user,char *password, int pwlen, struct passwd *pwd)
if (smb_password_check(password,
smb_pass->smb_passwd,
- (char *)challenge)) {
+ (unsigned char *)challenge)) {
update_protected_database(user,True);
return(True);
}