diff options
author | Matt Caswell <matt@openssl.org> | 2016-03-18 17:43:58 +0000 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2016-03-21 14:28:56 +0000 |
commit | 83ae8124de62f5f6d07dd4b0e6043c8a196b789e (patch) | |
tree | fbd294de40aaad6af48c1755918fa505a39e99d4 /apps/rsa.c | |
parent | b75ac3c2a3ae8549eb8afb701c1fc7a55c2afdb5 (diff) |
Fix no-dsa
Misc fixes for no-dsa.
Reviewed-by: Richard Levitte <levitte@openssl.org>
Diffstat (limited to 'apps/rsa.c')
-rw-r--r-- | apps/rsa.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/apps/rsa.c b/apps/rsa.c index 5320f38455..38cedf7b77 100644 --- a/apps/rsa.c +++ b/apps/rsa.c @@ -167,7 +167,10 @@ int rsa_main(int argc, char **argv) char *passin = NULL, *passout = NULL, *passinarg = NULL, *passoutarg = NULL; int i, private = 0; int informat = FORMAT_PEM, outformat = FORMAT_PEM, text = 0, check = 0; - int noout = 0, modulus = 0, pubin = 0, pubout = 0, pvk_encr = 2, ret = 1; + int noout = 0, modulus = 0, pubin = 0, pubout = 0, ret = 1; +# if !defined(OPENSSL_NO_DSA) && !defined(OPENSSL_NO_RC4) + int pvk_encr = 2; +#endif OPTION_CHOICE o; prog = opt_init(argc, argv, rsa_options); @@ -217,7 +220,7 @@ int rsa_main(int argc, char **argv) case OPT_RSAPUBKEY_OUT: pubout = 2; break; -#ifndef OPENSSL_NO_RC4 +# if !defined(OPENSSL_NO_DSA) && !defined(OPENSSL_NO_RC4) case OPT_PVK_STRONG: pvk_encr = 2; break; |