From: Richard Levitte Date: Fri, 22 Mar 2002 02:36:58 +0000 (+0000) Subject: Use the more modern DES API in the openssl subcommands. X-Git-Tag: OpenSSL_0_9_7-beta1~138 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=ddba94214f3e57f9b2fb194a1d2945adc4ef553c;p=oweals%2Fopenssl.git Use the more modern DES API in the openssl subcommands. --- diff --git a/apps/passwd.c b/apps/passwd.c index 2023b76f5b..ad8e7b0349 100644 --- a/apps/passwd.c +++ b/apps/passwd.c @@ -16,7 +16,7 @@ #include #include #ifndef OPENSSL_NO_DES -# include +# include #endif #ifndef NO_MD5CRYPT_1 # include @@ -482,7 +482,7 @@ static int do_passwd(int passed_salt, char **salt_p, char **salt_malloc_p, /* now compute password hash */ #ifndef OPENSSL_NO_DES if (usecrypt) - hash = des_crypt(passwd, *salt_p); + hash = DES_crypt(passwd, *salt_p); #endif #ifndef NO_MD5CRYPT_1 if (use1 || useapr1) diff --git a/apps/speed.c b/apps/speed.c index 95979e509f..62cf56e06e 100644 --- a/apps/speed.c +++ b/apps/speed.c @@ -131,7 +131,7 @@ #endif #ifndef OPENSSL_NO_DES -#include +#include #endif #ifndef OPENSSL_NO_AES #include @@ -436,9 +436,9 @@ int MAIN(int argc, char **argv) unsigned char iv[MAX_BLOCK_SIZE/8]; #ifndef OPENSSL_NO_DES DES_cblock *buf_as_des_cblock = NULL; - static des_cblock key ={0x12,0x34,0x56,0x78,0x9a,0xbc,0xde,0xf0}; - static des_cblock key2={0x34,0x56,0x78,0x9a,0xbc,0xde,0xf0,0x12}; - static des_cblock key3={0x56,0x78,0x9a,0xbc,0xde,0xf0,0x12,0x34}; + static DES_cblock key ={0x12,0x34,0x56,0x78,0x9a,0xbc,0xde,0xf0}; + static DES_cblock key2={0x34,0x56,0x78,0x9a,0xbc,0xde,0xf0,0x12}; + static DES_cblock key3={0x56,0x78,0x9a,0xbc,0xde,0xf0,0x12,0x34}; DES_key_schedule sch; DES_key_schedule sch2; DES_key_schedule sch3; @@ -529,7 +529,7 @@ int MAIN(int argc, char **argv) goto end; } #ifndef OPENSSL_NO_DES - buf_as_des_cblock = (des_cblock *)buf; + buf_as_des_cblock = (DES_cblock *)buf; #endif if ((buf2=(unsigned char *)OPENSSL_malloc((int)BUFSIZE)) == NULL) { @@ -1600,7 +1600,7 @@ show_res: printf("%s ",RC4_options()); #endif #ifndef OPENSSL_NO_DES - printf("%s ",des_options()); + printf("%s ",DES_options()); #endif #ifndef OPENSSL_NO_AES printf("%s ",AES_options()); diff --git a/apps/version.c b/apps/version.c index 6baf679b77..0cbcb47f88 100644 --- a/apps/version.c +++ b/apps/version.c @@ -122,7 +122,7 @@ # include #endif #ifndef OPENSSL_NO_DES -# include +# include #endif #ifndef OPENSSL_NO_IDEA # include @@ -186,7 +186,7 @@ int MAIN(int argc, char **argv) printf("%s ",RC4_options()); #endif #ifndef OPENSSL_NO_DES - printf("%s ",des_options()); + printf("%s ",DES_options()); #endif #ifndef OPENSSL_NO_IDEA printf("%s ",idea_options());