This function is unused, and doesn't make any sense to me anyway.
authorAndrew Bartlett <abartlet@samba.org>
Thu, 23 May 2002 14:26:04 +0000 (14:26 +0000)
committerAndrew Bartlett <abartlet@samba.org>
Thu, 23 May 2002 14:26:04 +0000 (14:26 +0000)
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)

source3/libsmb/smbencrypt.c

index 6fa8de418aa4ca1f13b7895c6ff3e04ad7c4889b..bac64c2e508dd0f6916334181dce589fec5524c0 100644 (file)
@@ -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);
-}