summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorBernd Edlinger <bernd.edlinger@hotmail.de>2018-03-25 12:50:17 +0200
committerBernd Edlinger <bernd.edlinger@hotmail.de>2018-03-26 15:14:27 +0200
commit3ffc95b1a9d14d8833f6f116a0afe0fb83eeaa17 (patch)
tree927c246e2715f5a1c54ef4c030f2ad0b85dd7370 /apps
parentd591f300f9dfec4f8345b25714bdc85f0b30dfa1 (diff)
Fix dsaparam -genkey with DER outform
Reviewed-by: Rich Salz <rsalz@openssl.org> (Merged from https://github.com/openssl/openssl/pull/5744) (cherry picked from commit 5281435258b5d8201a00b4a9781bb724d99630f0)
Diffstat (limited to 'apps')
-rw-r--r--apps/dsaparam.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/apps/dsaparam.c b/apps/dsaparam.c
index f2cf553db3..3a4a123846 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);