Fix CRL printing to correctly show when there are no revoked certificates.

Make ca.c correctly initialize the revocation date.

Make ASN1_UTCTIME_set_string() and ASN1_GENERALIZEDTIME_set_string() set the
string type: so they can initialize ASN1_TIME structures properly.
This commit is contained in:
Dr. Stephen Henson
2001-02-10 00:56:45 +00:00
parent e306892994
commit ccb08f98ae
5 changed files with 11 additions and 5 deletions

View File

@@ -112,7 +112,7 @@ int X509_CRL_print(BIO *out, X509_CRL *x)
rev = X509_CRL_get_REVOKED(x);
if(sk_X509_REVOKED_num(rev))
if(sk_X509_REVOKED_num(rev) > 0)
BIO_printf(out, "Revoked Certificates:\n");
else BIO_printf(out, "No Revoked Certificates.\n");