Commit 3ffc95b1 authored by Bernd Edlinger's avatar Bernd Edlinger
Browse files

Fix dsaparam -genkey with DER outform



Reviewed-by: default avatarRich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/5744)

(cherry picked from commit 52814352)
parent d591f300
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -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);