diff options
| author | Dmitry Torokhov <dtor@insightbb.com> | 2006-11-04 22:42:39 -0500 | 
|---|---|---|
| committer | Dmitry Torokhov <dtor@insightbb.com> | 2006-11-04 22:42:39 -0500 | 
| commit | 752c58a471c108d64da1676b2925dfbd83eb177e (patch) | |
| tree | fbffa0d7c54cd812950dffc16d642c9d449f4faf /fs/cifs/smbencrypt.c | |
| parent | e52b29c2a637f6854d71a45646d7283d984a6dad (diff) | |
| parent | 10b1fbdb0a0ca91847a534ad26d0bc250c25b74f (diff) | |
Merge rsync://rsync.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6
Diffstat (limited to 'fs/cifs/smbencrypt.c')
| -rw-r--r-- | fs/cifs/smbencrypt.c | 11 | 
1 files changed, 6 insertions, 5 deletions
diff --git a/fs/cifs/smbencrypt.c b/fs/cifs/smbencrypt.c index f518c5e4503..4b25ba92180 100644 --- a/fs/cifs/smbencrypt.c +++ b/fs/cifs/smbencrypt.c @@ -51,11 +51,8 @@  void SMBencrypt(unsigned char *passwd, unsigned char *c8, unsigned char *p24);  void E_md4hash(const unsigned char *passwd, unsigned char *p16); -void nt_lm_owf_gen(char *pwd, unsigned char nt_p16[16], unsigned char p16[16]);  static void SMBOWFencrypt(unsigned char passwd[16], unsigned char *c8,  		   unsigned char p24[24]); -void NTLMSSPOWFencrypt(unsigned char passwd[8], -		       unsigned char *ntlmchalresp, unsigned char p24[24]);  void SMBNTencrypt(unsigned char *passwd, unsigned char *c8, unsigned char *p24);  /* @@ -144,8 +141,9 @@ E_md4hash(const unsigned char *passwd, unsigned char *p16)  	memset(wpwd,0,129 * 2);  } +#if 0 /* currently unused */  /* Does both the NT and LM owfs of a user's password */ -void +static void  nt_lm_owf_gen(char *pwd, unsigned char nt_p16[16], unsigned char p16[16])  {  	char passwd[514]; @@ -171,6 +169,7 @@ nt_lm_owf_gen(char *pwd, unsigned char nt_p16[16], unsigned char p16[16])  	/* clear out local copy of user's password (just being paranoid). */  	memset(passwd, '\0', sizeof (passwd));  } +#endif  /* Does the NTLMv2 owfs of a user's password */  #if 0  /* function not needed yet - but will be soon */ @@ -223,7 +222,8 @@ SMBOWFencrypt(unsigned char passwd[16], unsigned char *c8,  }  /* Does the des encryption from the FIRST 8 BYTES of the NT or LM MD4 hash. */ -void +#if 0 /* currently unused */ +static void  NTLMSSPOWFencrypt(unsigned char passwd[8],  		  unsigned char *ntlmchalresp, unsigned char p24[24])  { @@ -235,6 +235,7 @@ NTLMSSPOWFencrypt(unsigned char passwd[8],  	E_P24(p21, ntlmchalresp, p24);  } +#endif  /* Does the NT MD4 hash then des encryption. */  | 
