From ccb08f98aea68cbafee75c6602768a85d1e29b7f Mon Sep 17 00:00:00 2001 From: "Dr. Stephen Henson" Date: Sat, 10 Feb 2001 00:56:45 +0000 Subject: 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. --- crypto/asn1/t_crl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crypto/asn1/t_crl.c') diff --git a/crypto/asn1/t_crl.c b/crypto/asn1/t_crl.c index f7b938bde2..ab9cd8fcff 100644 --- a/crypto/asn1/t_crl.c +++ b/crypto/asn1/t_crl.c @@ -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"); -- cgit v1.2.3