From 83ae8124de62f5f6d07dd4b0e6043c8a196b789e Mon Sep 17 00:00:00 2001 From: Matt Caswell Date: Fri, 18 Mar 2016 17:43:58 +0000 Subject: Fix no-dsa Misc fixes for no-dsa. Reviewed-by: Richard Levitte --- apps/dhparam.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'apps/dhparam.c') diff --git a/apps/dhparam.c b/apps/dhparam.c index f7fd8c0..58baff8 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; -- cgit v1.1