mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-21 03:10:25 +08:00
Use DES_* functions instead of deprecated des_*
This commit is contained in:
parent
364b87f587
commit
7baff7393c
@ -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';
|
||||
|
Loading…
Reference in New Issue
Block a user