From: Bernd Edlinger Date: Sun, 25 Mar 2018 10:50:17 +0000 (+0200) Subject: Fix dsaparam -genkey with DER outform X-Git-Tag: OpenSSL_1_1_1-pre4~58 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=5281435258b5d8201a00b4a9781bb724d99630f0;p=oweals%2Fopenssl.git Fix dsaparam -genkey with DER outform Reviewed-by: Rich Salz (Merged from https://github.com/openssl/openssl/pull/5744) --- diff --git a/apps/dsaparam.c b/apps/dsaparam.c index 2c1cc61062..341480b818 100644 --- a/apps/dsaparam.c +++ b/apps/dsaparam.c @@ -195,6 +195,9 @@ int dsaparam_main(int argc, char **argv) OPENSSL_free(data); } + if (outformat == FORMAT_ASN1 && genkey) + noout = 1; + if (!noout) { if (outformat == FORMAT_ASN1) i = i2d_DSAparams_bio(out, dsa);