Fixes to various ASN1_INTEGER routines for negative case.

Enhance s2i_ASN1_INTEGER().
This commit is contained in:
Dr. Stephen Henson
2001-01-19 14:21:48 +00:00
parent 57108f0ad5
commit 8e8972bb68
5 changed files with 45 additions and 6 deletions

View File

@@ -585,7 +585,7 @@ static int print_ocsp_summary(BIO *out, OCSP_BASICRESP *bs, OCSP_REQUEST *req,
if (status != V_OCSP_CERTSTATUS_REVOKED)
continue;
if (reason > 0)
if (reason != -1)
BIO_printf(out, "\tReason: %s\n",
OCSP_crl_reason_str(reason));