16 typedef struct X509_crl_st X509_CRL;
18 typedef struct ssl_ctx_st SSL_CTX;
19 struct asn1_string_st;
20 typedef struct asn1_string_st ASN1_INTEGER;
38 enum DumpMode { CRLPEM = 0, CRLDER, CRLFilePEM, CRLFileDER };
81 bool has_critical_extensions()
const;
91 enum Valid { CRLERROR = -1, VALID, NOT_THIS_CA, NO_VALID_SIGNATURE,
92 EXPIRED, UNHANDLED_CRITICAL_EXTENSIONS };
134 bool isrevoked(WvStringParm serial_number)
const;
Valid
Type for validate() method: ERROR = there was an error that happened.
bool signedbyca(const WvX509 &cacert) const
Check the CRL in crl against the CA certificate in cert.
DumpMode
Type for the encode() and decode() methods: CRLPEM = PEM Encoded X.509 CRL CRLDER = DER Encoded X....
X509 Class to handle certificates and their related functions.
bool issuedbyca(const WvX509 &cacert) const
Check the issuer name of the CRL in crl against the CA certificate in cert.
X509_CRL * getcrl()
Accessor for CRL.
virtual ~WvCRL()
Destructor.
WvString encode(const DumpMode mode) const
Return the information requested by mode as a WvString.
WvString is an implementation of a simple and efficient printable-string class.
Valid validate(const WvX509 &cacert) const
Checks to see that a CRL is signed and issued by a CA certificate, and that it has not expired.
A WvLog stream accepts log messages from applications and forwards them to all registered WvLogRcv's.
CRL Class to handle certificate revocation lists and their related functions.
bool isrevoked(const WvX509 &cert) const
Is the certificate in cert revoked?
void addcert(const WvX509 &cert)
Add the certificate specified by cert to the CRL.
Specialization of WvBufBase for unsigned char type buffers intended for use with raw memory buffers.
WvString get_aki() const
Get the Authority key Info.
WvString get_issuer() const
Get the CRL Issuer.
void decode(const DumpMode mode, WvStringParm encoded)
Load the information from the format requested by mode into the class - this overwrites the CRL.
WvCRL()
Initialize a blank (null) CRL object.
int numcerts() const
Counts the number of certificates in this CRL.
bool expired() const
Checks to see if the CRL is expired (i.e.
bool isok() const
Do we have any errors...