diff options
Diffstat (limited to 'fs/cifs/smbencrypt.c')
-rw-r--r-- | fs/cifs/smbencrypt.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/fs/cifs/smbencrypt.c b/fs/cifs/smbencrypt.c index 48314e5e785d..4b25ba92180d 100644 --- a/fs/cifs/smbencrypt.c +++ b/fs/cifs/smbencrypt.c | |||
@@ -141,6 +141,7 @@ E_md4hash(const unsigned char *passwd, unsigned char *p16) | |||
141 | memset(wpwd,0,129 * 2); | 141 | memset(wpwd,0,129 * 2); |
142 | } | 142 | } |
143 | 143 | ||
144 | #if 0 /* currently unused */ | ||
144 | /* Does both the NT and LM owfs of a user's password */ | 145 | /* Does both the NT and LM owfs of a user's password */ |
145 | static void | 146 | static void |
146 | nt_lm_owf_gen(char *pwd, unsigned char nt_p16[16], unsigned char p16[16]) | 147 | nt_lm_owf_gen(char *pwd, unsigned char nt_p16[16], unsigned char p16[16]) |
@@ -168,6 +169,7 @@ nt_lm_owf_gen(char *pwd, unsigned char nt_p16[16], unsigned char p16[16]) | |||
168 | /* clear out local copy of user's password (just being paranoid). */ | 169 | /* clear out local copy of user's password (just being paranoid). */ |
169 | memset(passwd, '\0', sizeof (passwd)); | 170 | memset(passwd, '\0', sizeof (passwd)); |
170 | } | 171 | } |
172 | #endif | ||
171 | 173 | ||
172 | /* Does the NTLMv2 owfs of a user's password */ | 174 | /* Does the NTLMv2 owfs of a user's password */ |
173 | #if 0 /* function not needed yet - but will be soon */ | 175 | #if 0 /* function not needed yet - but will be soon */ |
@@ -220,6 +222,7 @@ SMBOWFencrypt(unsigned char passwd[16], unsigned char *c8, | |||
220 | } | 222 | } |
221 | 223 | ||
222 | /* Does the des encryption from the FIRST 8 BYTES of the NT or LM MD4 hash. */ | 224 | /* Does the des encryption from the FIRST 8 BYTES of the NT or LM MD4 hash. */ |
225 | #if 0 /* currently unused */ | ||
223 | static void | 226 | static void |
224 | NTLMSSPOWFencrypt(unsigned char passwd[8], | 227 | NTLMSSPOWFencrypt(unsigned char passwd[8], |
225 | unsigned char *ntlmchalresp, unsigned char p24[24]) | 228 | unsigned char *ntlmchalresp, unsigned char p24[24]) |
@@ -232,6 +235,7 @@ NTLMSSPOWFencrypt(unsigned char passwd[8], | |||
232 | 235 | ||
233 | E_P24(p21, ntlmchalresp, p24); | 236 | E_P24(p21, ntlmchalresp, p24); |
234 | } | 237 | } |
238 | #endif | ||
235 | 239 | ||
236 | /* Does the NT MD4 hash then des encryption. */ | 240 | /* Does the NT MD4 hash then des encryption. */ |
237 | 241 | ||