summaryrefslogtreecommitdiff
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
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)
-rw-r--r--source3/libsmb/clirap.c2
-rw-r--r--source3/libsmb/smbencrypt.c3
2 files changed, 3 insertions, 2 deletions
diff --git a/source3/libsmb/clirap.c b/source3/libsmb/clirap.c
index c16fe2d08d..c649aedfba 100644
--- a/source3/libsmb/clirap.c
+++ b/source3/libsmb/clirap.c
@@ -329,7 +329,7 @@ BOOL cli_oem_change_password(struct cli_state *cli, const char *user, const char
clistr_push(cli, dos_new_password, new_password, -1, STR_TERMINATE);
- if (!make_oem_passwd_hash( data, dos_new_password, old_pw_hash, False))
+ if (!make_oem_passwd_hash(dos_new_password, old_pw_hash, False, data))
return False;
/*
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);