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 | 1956d1349441d8d5694df6dda67528bec4b1c10e (patch) | |
tree | bb10b89db2bf2fb63e2ad42f1d402fa1988c21dc /source3/smbd | |
parent | 0cb74d3bb87452dc47ca8d4763d31837b9741a10 (diff) | |
download | samba-1956d1349441d8d5694df6dda67528bec4b1c10e.tar.gz samba-1956d1349441d8d5694df6dda67528bec4b1c10e.tar.bz2 samba-1956d1349441d8d5694df6dda67528bec4b1c10e.zip |
cleanups to make thinsg compile cleanly
(This used to be commit 39fbeb04ae938594c380d97ebe67c012fa0dd51a)
Diffstat (limited to 'source3/smbd')
-rw-r--r-- | source3/smbd/password.c | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/source3/smbd/password.c b/source3/smbd/password.c index fcfe1b4a2c..6031daf5f1 100644 --- a/source3/smbd/password.c +++ b/source3/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")); } |