From 7baff7393cfad196338a0ca3f539b7a2320a7d3e Mon Sep 17 00:00:00 2001 From: Emmanuel Dreyfus Date: Tue, 20 May 2008 05:18:33 +0000 Subject: [PATCH] Use DES_* functions instead of deprecated des_* --- contrib/slapd-modules/smbk5pwd/smbk5pwd.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/contrib/slapd-modules/smbk5pwd/smbk5pwd.c b/contrib/slapd-modules/smbk5pwd/smbk5pwd.c index 38b8b47102..de8d758bdf 100644 --- a/contrib/slapd-modules/smbk5pwd/smbk5pwd.c +++ b/contrib/slapd-modules/smbk5pwd/smbk5pwd.c @@ -114,7 +114,7 @@ static const char hex[] = "0123456789abcdef"; /* From liblutil/passwd.c... */ static void lmPasswd_to_key( const char *lmPasswd, - des_cblock *key) + DES_cblock *key) { const unsigned char *lpw = (const unsigned char *)lmPasswd; unsigned char *k = (unsigned char *)key; @@ -162,10 +162,10 @@ static void lmhash( ) { char UcasePassword[15]; - des_cblock key; - des_key_schedule schedule; - des_cblock StdText = "KGS!@#$%"; - des_cblock hbuf[2]; + DES_cblock key; + DES_key_schedule schedule; + DES_cblock StdText = "KGS!@#$%"; + DES_cblock hbuf[2]; strncpy( UcasePassword, passwd->bv_val, 14 ); UcasePassword[14] = '\0'; -- 2.39.5