#include <cert.h>
Collaboration diagram for CRL:

Data members closely map to standard X.509v3 certifcate fields. See RFC 3280, section 5.1 for details.
Sample code illustrating the use of this class appears in the Cookbook section Processing X.509v3 Certificates and CRLs.
Public Types | |
| unspecified = 0 | |
| unspecified | |
| keyCompromise = 1 | |
| key compromise | |
| cACompromise = 2 | |
| CA compromise. | |
| affiliationChanged = 3 | |
| affiliation changed | |
| superseded = 4 | |
| superceded | |
| cessationOfOperation = 5 | |
| cessation of operation | |
| certificateHold = 6 | |
| certificate hold - see CRLInstructions | |
| removeFromCRL = 8 | |
| remove from CRL | |
| privilegeWithdrawn = 9 | |
| privilege withdrawn | |
| aACompromise = 10 | |
| AA compromise. | |
| none = 1 | |
| none | |
| callissuer = 2 | |
| call issuer | |
| reject = 3 | |
| reject | |
| pickuptoken = 4 | |
| pickup token | |
| enum | Reasons { unspecified = 0, keyCompromise = 1, cACompromise = 2, affiliationChanged = 3, superseded = 4, cessationOfOperation = 5, certificateHold = 6, removeFromCRL = 8, privilegeWithdrawn = 9, aACompromise = 10 } |
| CRL reason codes. More... | |
| enum | Instructions { none = 1, callissuer = 2, reject = 3, pickuptoken = 4 } |
| CRL instruction codes (use only with the certificateHold reason). More... | |
Public Member Functions | |
Object Reuse and Initialization | |
| void | clear () |
| Clear this CRL object. | |
| int | load (const str &b) |
| Load a binary ASN.1 DER-encoded CRL into this object. | |
| void | add (const num &serial, TimeT date) |
| Add a certificate (and revocation date) to the CRL. | |
Validation | |
| int | check (const str &certCA) const |
| Validate the issuer's digital signature on this CRL. | |
| int | isRevoked (const str &cert, TimeT &date, int &reason) const |
| Test whether a particular certificate has been revoked and, if so, get the revocation date and reason code. | |
| int | isExpired () const |
| Predicate used to test whether this CRL has expired. | |
Inspectors | |
| str | makebody () const |
| Get an ASN.1 DER-encoded tbsCertList representing this CRL. | |
Data Fields | |
| asn | issuer |
| issuer distinguished name | |
| TimeT | thisUpdate |
| date of this CRL | |
| TimeT | nextUpdate |
| expected date of next CRL | |
| asn | list |
| list of revoked serial numbers (revokedCertificates) | |
| int | warn |
| warning flag | |
| asn | body |
| CRL body. | |
| asn | oid |
| algorithm ID | |
| asn | sig |
| CRL signature. | |
| enum Instructions |
CRL instruction codes (use only with the certificateHold reason).
| enum Reasons |
CRL reason codes.
| unspecified | unspecified |
| keyCompromise | key compromise |
| cACompromise | CA compromise. |
| affiliationChanged | affiliation changed |
| superseded | superceded |
| cessationOfOperation | cessation of operation |
| certificateHold | certificate hold - see CRLInstructions |
| removeFromCRL | remove from CRL |
| privilegeWithdrawn | privilege withdrawn |
| aACompromise | AA compromise. |
| int check | ( | const str & | certCA | ) | const |
| int isExpired | ( | ) | const |
Predicate used to test whether this CRL has expired.
Test whether a particular certificate has been revoked and, if so, get the revocation date and reason code.
| cert | a binary ASN.1 DER-encoded certificate to be found in the CRL | |
| date | an output buffer for the revocationDate (if certificate is found) | |
| reason | an output buffer for the reason code (if certificate is found) |
| int load | ( | const str & | b | ) |
| str makebody | ( | ) | const |
Get an ASN.1 DER-encoded tbsCertList representing this CRL.
| ISC Cryptographic Development Kit - User's Guide | |
| Questions? E-mail ISC technical support | |
| Copyright© 2002-2006 Information Security Corp. All rights reserved. |