aboutsummaryrefslogtreecommitdiffstats
path: root/apps/dsaparam.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/dsaparam.c')
-rw-r--r--apps/dsaparam.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/apps/dsaparam.c b/apps/dsaparam.c
index f2cf553db3ff..3a4a123846c4 100644
--- a/apps/dsaparam.c
+++ b/apps/dsaparam.c
@@ -382,6 +382,9 @@ int MAIN(int argc, char **argv)
printf("\treturn(dsa);\n\t}\n");
}
+ if (outformat == FORMAT_ASN1 && genkey)
+ noout = 1;
+
if (!noout) {
if (outformat == FORMAT_ASN1)
i = i2d_DSAparams_bio(out, dsa);