summaryrefslogtreecommitdiff
path: root/source3/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
commitc4495240f63c2bae164d4ef29ab9af2d3d87aec1 (patch)
tree097e28fc8416aec0392e59d05937b92771775b63 /source3/libsmb/smbencrypt.c
parentde5f42c9d9172592779fa2504d44544e3b6b1c0d (diff)
downloadsamba-c4495240f63c2bae164d4ef29ab9af2d3d87aec1.tar.gz
samba-c4495240f63c2bae164d4ef29ab9af2d3d87aec1.tar.bz2
samba-c4495240f63c2bae164d4ef29ab9af2d3d87aec1.zip
Changed the order of arguments in make_oem_passwd_hash(). All the other
encryption functions have outputs as the last arguments. (This used to be commit fb60798a771a7a2358d78e5cef97487addf930e7)
Diffstat (limited to 'source3/libsmb/smbencrypt.c')
-rw-r--r--source3/libsmb/smbencrypt.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/libsmb/smbencrypt.c b/source3/libsmb/smbencrypt.c
index 95d21dc772..e13b180fcb 100644
--- a/source3/libsmb/smbencrypt.c
+++ b/source3/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);