summaryrefslogtreecommitdiffstats
path: root/source/libsmb/smbencrypt.c
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2001-08-10 04:59:05 +0000
committerTim Potter <tpot@samba.org>2001-08-10 04:59:05 +0000
commitfb60798a771a7a2358d78e5cef97487addf930e7 (patch)
treee8eb9efb32429263a31b2acb4f5490691640fc32 /source/libsmb/smbencrypt.c
parent6ab0e949d18b97ea7177175a4e6abb5ba076db98 (diff)
downloadsamba-fb60798a771a7a2358d78e5cef97487addf930e7.tar.gz
samba-fb60798a771a7a2358d78e5cef97487addf930e7.tar.xz
samba-fb60798a771a7a2358d78e5cef97487addf930e7.zip
Changed the order of arguments in make_oem_passwd_hash(). All the other
encryption functions have outputs as the last arguments.
Diffstat (limited to 'source/libsmb/smbencrypt.c')
-rw-r--r--source/libsmb/smbencrypt.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/libsmb/smbencrypt.c b/source/libsmb/smbencrypt.c
index 95d21dc772c..e13b180fcb3 100644
--- a/source/libsmb/smbencrypt.c
+++ b/source/libsmb/smbencrypt.c
@@ -187,7 +187,8 @@ void SMBNTencrypt(uchar *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(const char *passwd, uchar old_pw_hash[16],
+ BOOL unicode, char data[516])
{
int new_pw_len = strlen(passwd) * (unicode ? 2 : 1);