Print out DSA key if parameters absent.

In DSA_print DSA parameters can be absent (e.g inherited) it is
not a fatal error.
This commit is contained in:
Dr. Stephen Henson 2013-04-07 17:23:21 +01:00
parent e1e39a2451
commit 1cbd7456aa

View File

@ -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;