From 31188ee1a8ec60a539beff47412935df122be979 Mon Sep 17 00:00:00 2001 From: "Dr. Stephen Henson" Date: Tue, 26 Feb 2002 13:46:55 +0000 Subject: [PATCH] Fix new -aes command argument handling --- apps/pkcs12.c | 6 +++--- apps/smime.c | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/apps/pkcs12.c b/apps/pkcs12.c index 6a23b64f5e..1f5a456947 100644 --- a/apps/pkcs12.c +++ b/apps/pkcs12.c @@ -155,9 +155,9 @@ int MAIN(int argc, char **argv) #endif else if (!strcmp (*args, "-des3")) enc = EVP_des_ede3_cbc(); #ifndef OPENSSL_NO_AES - else if (!strcmp(*argv,"-aes128")) enc=EVP_aes_128_cbc(); - else if (!strcmp(*argv,"-aes192")) enc=EVP_aes_192_cbc(); - else if (!strcmp(*argv,"-aes256")) enc=EVP_aes_256_cbc(); + else if (!strcmp(*args,"-aes128")) enc=EVP_aes_128_cbc(); + else if (!strcmp(*args,"-aes192")) enc=EVP_aes_192_cbc(); + else if (!strcmp(*args,"-aes256")) enc=EVP_aes_256_cbc(); #endif else if (!strcmp (*args, "-noiter")) iter = 1; else if (!strcmp (*args, "-maciter")) diff --git a/apps/smime.c b/apps/smime.c index cd750e32b7..28a1106639 100644 --- a/apps/smime.c +++ b/apps/smime.c @@ -133,11 +133,11 @@ int MAIN(int argc, char **argv) cipher = EVP_rc2_64_cbc(); #endif #ifndef OPENSSL_NO_AES - else if (!strcmp(*argv,"-aes128") == 0) + else if (!strcmp(*args,"-aes128")) cipher = EVP_aes_128_cbc(); - else if (!strcmp(*argv,"-aes192") == 0) + else if (!strcmp(*args,"-aes192")) cipher = EVP_aes_192_cbc(); - else if (!strcmp(*argv,"-aes256") == 0) + else if (!strcmp(*args,"-aes256")) cipher = EVP_aes_256_cbc(); #endif else if (!strcmp (*args, "-text")) -- 2.25.1