diff options
author | Andrew Bartlett <abartlet@samba.org> | 2002-05-23 14:26:04 +0000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2002-05-23 14:26:04 +0000 |
commit | 0c4c34d481be2790f0aae9f24a361f2458d1908c (patch) | |
tree | 06cb88e5b2f9ee16829c692ba4462c4aa4587ec8 /source3/libsmb | |
parent | fb70dbdffa865b453330911841ce920ab19ad60c (diff) | |
download | samba-0c4c34d481be2790f0aae9f24a361f2458d1908c.tar.gz samba-0c4c34d481be2790f0aae9f24a361f2458d1908c.tar.bz2 samba-0c4c34d481be2790f0aae9f24a361f2458d1908c.zip |
This function is unused, and doesn't make any sense to me anyway.
Wasn't this what got us some of the bugs with big-endien smbpasswd -j FOO -U ?
Anyway, it deserves to die.
Andrew Bartlett
(This used to be commit 7201720048b31e48fb2600de8f7396088cc9b533)
Diffstat (limited to 'source3/libsmb')
-rw-r--r-- | source3/libsmb/smbencrypt.c | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/source3/libsmb/smbencrypt.c b/source3/libsmb/smbencrypt.c index 6fa8de418a..bac64c2e50 100644 --- a/source3/libsmb/smbencrypt.c +++ b/source3/libsmb/smbencrypt.c @@ -324,20 +324,3 @@ BOOL decode_pw_buffer(char in_buffer[516], char *new_pwrd, return True; } - -/* Calculate the NT owfs of a user's password */ -void nt_owf_genW(const UNISTR2 *pwd, uchar nt_p16[16]) -{ - char buf[512]; - int i; - - for (i = 0; i < MIN(pwd->uni_str_len, sizeof(buf) / 2); i++) - { - SIVAL(buf, i * 2, pwd->buffer[i]); - } - /* Calculate the MD4 hash (NT compatible) of the password */ - mdfour(nt_p16, (const unsigned char *)buf, pwd->uni_str_len * 2); - - /* clear out local copy of user's password (just being paranoid). */ - ZERO_STRUCT(buf); -} |