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/dhparam.c | |
parent | b75ac3c2a3ae8549eb8afb701c1fc7a55c2afdb5 (diff) | |
download | openssl-83ae8124de62f5f6d07dd4b0e6043c8a196b789e.tar.gz |
Fix no-dsa
Misc fixes for no-dsa.
Reviewed-by: Richard Levitte <levitte@openssl.org>
Diffstat (limited to 'apps/dhparam.c')
-rw-r--r-- | apps/dhparam.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/apps/dhparam.c b/apps/dhparam.c index f7fd8c0c35..58baff822a 100644 --- a/apps/dhparam.c +++ b/apps/dhparam.c @@ -171,7 +171,10 @@ int dhparam_main(int argc, char **argv) BIO *in = NULL, *out = NULL; DH *dh = NULL; char *infile = NULL, *outfile = NULL, *prog, *inrand = NULL; - int dsaparam = 0, i, text = 0, C = 0, ret = 1, num = 0, g = 0; +#ifndef OPENSSL_NO_DSA + int dsaparam = 0; +#endif + int i, text = 0, C = 0, ret = 1, num = 0, g = 0; int informat = FORMAT_PEM, outformat = FORMAT_PEM, check = 0, noout = 0; OPTION_CHOICE o; @@ -211,7 +214,9 @@ int dhparam_main(int argc, char **argv) text = 1; break; case OPT_DSAPARAM: +#ifndef OPENSSL_NO_DSA dsaparam = 1; +#endif break; case OPT_C: C = 1; |