diff options
author | Andrew Tridgell <tridge@samba.org> | 1996-05-29 07:47:47 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 1996-05-29 07:47:47 +0000 |
commit | 39fbeb04ae938594c380d97ebe67c012fa0dd51a (patch) | |
tree | 4a188f8dc01ec27b77c879a9bfadc40677126564 /source/smbd | |
parent | 2f793c48a9447955195620c891d30d93b518ee0d (diff) | |
download | samba-39fbeb04ae938594c380d97ebe67c012fa0dd51a.tar.gz samba-39fbeb04ae938594c380d97ebe67c012fa0dd51a.tar.xz samba-39fbeb04ae938594c380d97ebe67c012fa0dd51a.zip |
cleanups to make thinsg compile cleanly
Diffstat (limited to 'source/smbd')
-rw-r--r-- | source/smbd/password.c | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/source/smbd/password.c b/source/smbd/password.c index fcfe1b4a2ce..6031daf5f16 100644 --- a/source/smbd/password.c +++ b/source/smbd/password.c @@ -52,7 +52,7 @@ void generate_next_challenge(char *challenge) v2 = (counter++) * getpid() + tval.tv_usec; SIVAL(challenge,0,v1); SIVAL(challenge,4,v2); - E1(challenge,"SAMBA",saved_challenge); + E1(challenge,"SAMBA",(char *)saved_challenge); memcpy(challenge,saved_challenge,8); challenge_sent = True; } @@ -684,7 +684,9 @@ BOOL password_ok(char *user,char *password, int pwlen, struct passwd *pwd, BOOL if(smb_pass->smb_nt_passwd != NULL) { DEBUG(4,("Checking NT MD4 password\n")); - if(smb_password_check(password, smb_pass->smb_nt_passwd, challenge)) + if(smb_password_check(password, + smb_pass->smb_nt_passwd, + (char *)challenge)) { update_protected_database(user,True); return(True); @@ -696,11 +698,12 @@ BOOL password_ok(char *user,char *password, int pwlen, struct passwd *pwd, BOOL /* Try against the lanman password */ - if(smb_password_check(password, smb_pass->smb_passwd, challenge)) - { - update_protected_database(user,True); - return(True); - } + if (smb_password_check(password, + smb_pass->smb_passwd, + (char *)challenge)) { + update_protected_database(user,True); + return(True); + } DEBUG(3,("Error smb_password_check failed\n")); } |