diff options
author | Andrew Bartlett <abartlet@samba.org> | 2004-06-14 06:49:18 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:56:39 -0500 |
commit | 9f38798509616199d2c53dcd386ea1bc3e21df8f (patch) | |
tree | 7a08aca643e7e8610842472945c299b7b9cad806 /source4/libcli/util | |
parent | b1268fc4455f61ee49412fc256106cd34e98ce7c (diff) | |
download | samba-9f38798509616199d2c53dcd386ea1bc3e21df8f.tar.gz samba-9f38798509616199d2c53dcd386ea1bc3e21df8f.tar.bz2 samba-9f38798509616199d2c53dcd386ea1bc3e21df8f.zip |
r1129: Remove unused function.
Andrew Bartlett
(This used to be commit 4d23b9e039872273f3ef433d94d24759bcb87c30)
Diffstat (limited to 'source4/libcli/util')
-rw-r--r-- | source4/libcli/util/smbencrypt.c | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/source4/libcli/util/smbencrypt.c b/source4/libcli/util/smbencrypt.c index fdd5838798..72c6589097 100644 --- a/source4/libcli/util/smbencrypt.c +++ b/source4/libcli/util/smbencrypt.c @@ -101,36 +101,6 @@ BOOL E_deshash(const char *passwd, uint8_t p16[16]) return ret; } -/** - * Creates the MD4 and DES (LM) Hash of the users password. - * MD4 is of the NT Unicode, DES is of the DOS UPPERCASE password. - * @param passwd password in 'unix' charset. - * @param nt_p16 return password hashed with md4, caller allocated 16 byte buffer - * @param p16 return password hashed with des, caller allocated 16 byte buffer - */ - -/* Does both the NT and LM owfs of a user's password */ -void nt_lm_owf_gen(const char *pwd, uint8_t nt_p16[16], uint8_t p16[16]) -{ - /* Calculate the MD4 hash (NT compatible) of the password */ - memset(nt_p16, '\0', 16); - E_md4hash(pwd, nt_p16); - -#ifdef DEBUG_PASSWORD - DEBUG(100,("nt_lm_owf_gen: pwd, nt#\n")); - dump_data(120, pwd, strlen(pwd)); - dump_data(100, (char *)nt_p16, 16); -#endif - - E_deshash(pwd, (uint8_t *)p16); - -#ifdef DEBUG_PASSWORD - DEBUG(100,("nt_lm_owf_gen: pwd, lm#\n")); - dump_data(120, pwd, strlen(pwd)); - dump_data(100, (char *)p16, 16); -#endif -} - /* Does both the NTLMv2 owfs of a user's password */ BOOL ntv2_owf_gen(const uint8_t owf[16], const char *user_in, const char *domain_in, |