Skip to content
This repository was archived by the owner on Aug 24, 2025. It is now read-only.

Commit 62d51ff

Browse files
Fix dsaparam -genkey with DER outform
Reviewed-by: Rich Salz <rsalz@openssl.org> (Merged from openssl#5744) (cherry picked from commit 5281435)
1 parent 5edeb62 commit 62d51ff

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

apps/dsaparam.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -248,6 +248,9 @@ int dsaparam_main(int argc, char **argv)
248248
OPENSSL_free(data);
249249
}
250250

251+
if (outformat == FORMAT_ASN1 && genkey)
252+
noout = 1;
253+
251254
if (!noout) {
252255
if (outformat == FORMAT_ASN1)
253256
i = i2d_DSAparams_bio(out, dsa);

0 commit comments

Comments
 (0)