diff options
author | Bernd Edlinger <bernd.edlinger@hotmail.de> | 2018-03-25 12:50:17 +0200 |
---|---|---|
committer | Bernd Edlinger <bernd.edlinger@hotmail.de> | 2018-03-26 15:13:29 +0200 |
commit | 62d51ffb956332717eac634d159cd8ef2f924cfd (patch) | |
tree | 5894e2153223ea6c709e8a341398def007030339 | |
parent | 5edeb62306bdba6597f721cd3a41f902dc9a1357 (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)
-rw-r--r-- | apps/dsaparam.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/apps/dsaparam.c b/apps/dsaparam.c index dd69461b21..b9d6a4208a 100644 --- a/apps/dsaparam.c +++ b/apps/dsaparam.c @@ -248,6 +248,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); |