diff options
Diffstat (limited to 'source4/libcli')
-rw-r--r-- | source4/libcli/util/smbencrypt.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/source4/libcli/util/smbencrypt.c b/source4/libcli/util/smbencrypt.c index fc3449d767..13d56e1e78 100644 --- a/source4/libcli/util/smbencrypt.c +++ b/source4/libcli/util/smbencrypt.c @@ -217,7 +217,9 @@ void SMBNTencrypt(const char *passwd, uchar *c8, uchar *p24) #endif } -BOOL make_oem_passwd_hash(char data[516], const char *passwd, uchar old_pw_hash[16], BOOL unicode) +BOOL make_oem_passwd_hash(char data[516], const char *passwd, + const uchar old_pw_hash[16], + BOOL unicode) { int new_pw_len = strlen(passwd) * (unicode ? 2 : 1); @@ -242,7 +244,9 @@ BOOL make_oem_passwd_hash(char data[516], const char *passwd, uchar old_pw_hash[ DEBUG(100,("make_oem_passwd_hash\n")); dump_data(100, data, 516); #endif - SamOEMhash( (unsigned char *)data, (unsigned char *)old_pw_hash, 516); + SamOEMhash((unsigned char *)data, + (const unsigned char *)old_pw_hash, + 516); return True; } |