From: Dr. Stephen Henson Date: Sun, 7 Apr 2013 16:23:21 +0000 (+0100) Subject: Print out DSA key if parameters absent. X-Git-Tag: OpenSSL_0_9_8za~64 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=1cbd7456aadce942ff59af95efb1029f92766342;p=oweals%2Fopenssl.git Print out DSA key if parameters absent. In DSA_print DSA parameters can be absent (e.g inherited) it is not a fatal error. --- diff --git a/crypto/asn1/t_pkey.c b/crypto/asn1/t_pkey.c index afb95d6712..bc23f56732 100644 --- a/crypto/asn1/t_pkey.c +++ b/crypto/asn1/t_pkey.c @@ -208,11 +208,6 @@ int DSA_print(BIO *bp, const DSA *x, int off) if (x->p) buf_len = (size_t)BN_num_bytes(x->p); - else - { - DSAerr(DSA_F_DSA_PRINT,DSA_R_MISSING_PARAMETERS); - goto err; - } if (x->q) if (buf_len < (i = (size_t)BN_num_bytes(x->q))) buf_len = i;