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:
@@ -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");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user