diff options
author | Luke Leighton <lkcl@samba.org> | 1999-03-19 20:26:25 +0000 |
---|---|---|
committer | Luke Leighton <lkcl@samba.org> | 1999-03-19 20:26:25 +0000 |
commit | 7a3e8ad0974593e12f62985ae769f808d6fdf4a1 (patch) | |
tree | c594bec2a6092217a8827aac251e2f56cad1e57b /source3/libsmb | |
parent | bd76e02ec43124e5666868e272b9b4bcfbccc99b (diff) | |
download | samba-7a3e8ad0974593e12f62985ae769f808d6fdf4a1.tar.gz samba-7a3e8ad0974593e12f62985ae769f808d6fdf4a1.tar.bz2 samba-7a3e8ad0974593e12f62985ae769f808d6fdf4a1.zip |
return type of nt_decrypt_string2 set to BOOL.
(This used to be commit 674e4a3a73cd601c647a5069e2af943a6321ac06)
Diffstat (limited to 'source3/libsmb')
-rw-r--r-- | source3/libsmb/smbencrypt.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/source3/libsmb/smbencrypt.c b/source3/libsmb/smbencrypt.c index 3835c99815..20a8eb0504 100644 --- a/source3/libsmb/smbencrypt.c +++ b/source3/libsmb/smbencrypt.c @@ -226,7 +226,7 @@ BOOL make_oem_passwd_hash(char data[516], const char *passwd, uchar old_pw_hash[ return True; } -int nt_decrypt_string2(STRING2 *out, STRING2 *in, char nt_hash[16]) +BOOL nt_decrypt_string2(STRING2 *out, const STRING2 *in, char nt_hash[16]) { uchar bufhdr[8]; int datalen; @@ -236,9 +236,8 @@ int nt_decrypt_string2(STRING2 *out, STRING2 *in, char nt_hash[16]) uchar *keyend = key + sizeof(key); uchar *outbuf = (uchar *)out->buffer; - uchar *inbuf = (uchar *)in->buffer; - uchar *inbufend; - + const uchar *inbuf = (const uchar *)in->buffer; + const uchar *inbufend; mdfour(key, nt_hash, 16); |