X-Git-Url: https://git.openssl.org/?a=blobdiff_plain;ds=sidebyside;f=apps%2Frsa.c;h=07cc5fb5dca01a7160580ac6037a6f8e55dee755;hb=6ba8a5b77af5792bf0755388bc0ce4003af7cf86;hp=7f7069c899623bf7c0613bb4e732e480ed475ba5;hpb=7e1b7485706c2b11091b5fa897fe496a2faa56cc;p=openssl.git diff --git a/apps/rsa.c b/apps/rsa.c index 7f7069c899..07cc5fb5dc 100644 --- a/apps/rsa.c +++ b/apps/rsa.c @@ -158,7 +158,7 @@ int rsa_main(int argc, char **argv) BIO *out = NULL; RSA *rsa = NULL; const EVP_CIPHER *enc = NULL; - char *engine = NULL, *infile = NULL, *outfile = NULL, *prog; + char *infile = NULL, *outfile = NULL, *prog; char *passin = NULL, *passout = NULL, *passinarg = NULL, *passoutarg = NULL; int i; int informat = FORMAT_PEM, outformat = FORMAT_PEM, text = 0, check = 0; @@ -203,7 +203,7 @@ int rsa_main(int argc, char **argv) passoutarg = opt_arg(); break; case OPT_ENGINE: - engine = opt_arg(); + e = setup_engine(opt_arg(), 0); break; case OPT_PUBIN: pubin = 1; @@ -249,10 +249,6 @@ int rsa_main(int argc, char **argv) argc = opt_num_rest(); argv = opt_rest(); -# ifndef OPENSSL_NO_ENGINE - e = setup_engine(engine, 0); -# endif - if (!app_passwd(passinarg, passoutarg, &passin, &passout)) { BIO_printf(bio_err, "Error getting passwords\n"); goto end;