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 };
Specialization of WvBufBase for unsigned char type buffers intended for use with raw memory buffers.
CRL Class to handle certificate revocation lists and their related functions.
X509_CRL * getcrl()
Accessor for CRL.
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.
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.
bool expired() const
Checks to see if the CRL is expired (i.e.
bool signedbyca(const WvX509 &cacert) const
Check the CRL in crl against the CA certificate in cert.
bool isok() const
Do we have any errors...
void addcert(const WvX509 &cert)
Add the certificate specified by cert to the CRL.
bool issuedbyca(const WvX509 &cacert) const
Check the issuer name of the CRL in crl against the CA certificate in cert.
WvString encode(const DumpMode mode) const
Return the information requested by mode as a WvString.
Valid
Type for validate() method: ERROR = there was an error that happened.
int numcerts() const
Counts the number of certificates in this CRL.
bool isrevoked(const WvX509 &cert) const
Is the certificate in cert revoked?
WvString get_issuer() const
Get the CRL Issuer.
DumpMode
Type for the encode() and decode() methods: CRLPEM = PEM Encoded X.509 CRL CRLDER = DER Encoded X....
WvString get_aki() const
Get the Authority key Info.
virtual ~WvCRL()
Destructor.
A WvFastString acts exactly like a WvString, but can take (const char *) strings without needing to a...
A WvLog stream accepts log messages from applications and forwards them to all registered WvLogRcv's.
WvString is an implementation of a simple and efficient printable-string class.
X509 Class to handle certificates and their related functions.