#include <cX509Crl.h>
|
| cX509Crl () |
|
| ~cX509Crl () |
|
virtual void | SetEmptyX () override |
|
virtual HRESULT | GetDescription (StrBuilder &s, const char *prefix=nullptr) const override |
|
bool | CheckSignatureParent (const cX509Crt *pCrtParent, X509_Verify_t &rFlags) const |
|
bool | IsCrtRevoked (const cASNBuf &rSerialNumber) const |
|
virtual HRESULT | ReadFromDer1 (const BYTE *pBuffer, size_t nSizeBuf) override |
|
virtual HRESULT | ReadFromDER (const BYTE *pBuffer, size_t nSizeBuf) override |
|
virtual HRESULT | ReadFromUnk (const BYTE *pBuffer, size_t nSizeBuf) override |
|
| UNITTEST_FRIEND (cX509Crl) |
|
| cX509Common () noexcept |
|
virtual | ~cX509Common () |
|
bool | isEmptyX () const noexcept |
|
HRESULT | ReadSigAlg (cASNReader &r1, cASNBuf &sig_params) |
|
HRESULT | GetSigAlgStr (StrBuilder &s) const |
|
HRESULT | ReadFromFile (const FILECHAR_t *pszFilePath) |
|
| UNITTEST_FRIEND (cX509Common) |
|
| cRefBase (int iRefCount=0) noexcept |
|
virtual | ~cRefBase () |
|
int | get_RefCount () const noexcept |
|
HASHCODE_t | get_HashCode () const noexcept |
|
| STDMETHOD_ (HASHCODE_t, get_HashCodeX)() const noexcept |
|
virtual void | onFinalRelease () |
|
bool | isValidObj () const noexcept |
|
| STDMETHOD_ (ULONG, AddRef)(void) override |
|
| STDMETHOD_ (ULONG, Release)(void) override |
|
STDMETHOD() | QueryInterface (const IID &riid, void __RPC_FAR *__RPC_FAR *ppvObject) override |
|
void | IncRefCount () |
|
void | DecRefCount () |
|
bool | isStaticConstruct () const noexcept |
|
void | StaticConstruct () |
|
void | StaticDestruct () |
|
bool | isDestructing () noexcept |
|
void | SetDestructing () |
|
"Certificate revocation list" structure. https://en.wikipedia.org/wiki/Certificate_revocation_list Every CRL may have multiple entries. CRL version (1=v1, 2=v2)
◆ cX509Crl()
GrayLib::cX509Crl::cX509Crl |
( |
| ) |
|
|
inline |
◆ ~cX509Crl()
GrayLib::cX509Crl::~cX509Crl |
( |
| ) |
|
|
inline |
◆ CheckSignatureParent()
bool GrayLib::cX509Crl::CheckSignatureParent |
( |
const cX509Crt * |
pCrtParent, |
|
|
X509_Verify_t & |
rFlags |
|
) |
| const |
Is this CRL signed by pCrtParent ?
- Returns
- true = use this CRL.
◆ GetDescription()
HRESULT GrayLib::cX509Crl::GetDescription |
( |
StrBuilder & |
s, |
|
|
const char * |
prefix = nullptr |
|
) |
| const |
|
overridevirtual |
Returns an informational string about the CRL/certificate.
- s = Buffer to write to
- prefix = A line prefix
- Returns
- The amount of data written to the buffer, or -1 in case of an error.
Implements GrayLib::cX509Common.
◆ IsCrtRevoked()
bool GrayLib::cX509Crl::IsCrtRevoked |
( |
const cASNBuf & |
rSerialNumber | ) |
const |
Verify the certificate revocation status
- Returns
- true if the certificate is revoked
◆ ReadFromDER()
HRESULT GrayLib::cX509Crl::ReadFromDER |
( |
const BYTE * |
pBuffer, |
|
|
size_t |
nSizeBuf |
|
) |
| |
|
overridevirtual |
Parse one CRLs in DER format and append it to the chained list Check for valid input
Implements GrayLib::cX509Common.
◆ ReadFromDer1()
HRESULT GrayLib::cX509Crl::ReadFromDer1 |
( |
const BYTE * |
pBuffer, |
|
|
size_t |
nSizeBuf |
|
) |
| |
|
overridevirtual |
Parse a DER-encoded CRL and append it to the chained list
- pBuffer = buffer holding the CRL data in DER format
- nSizeBuf = size of the buffer
- Returns
- 0 if successful, or a specific X509 or PEM error code
– if present, MUST be v2 } OPTIONAL
< Signature algorithm. Must match m_SignOID1.
Implements GrayLib::cX509Common.
◆ ReadFromUnk()
HRESULT GrayLib::cX509Crl::ReadFromUnk |
( |
const BYTE * |
pBuffer, |
|
|
size_t |
nSizeBuf |
|
) |
| |
|
overridevirtual |
Parse one or more CRLs and append them to the chained list
- Note
- Multiple CRLs are accepted only if using PEM format
- pBuffer = buffer holding the CRL data in PEM or DER format
- nSizeBuf = size of the buffer
- Returns
- 0 if successful, or a specific X509 or PEM error code
Parse one or more CRLs (from PEM or DER) and add them to the chained list
Implements GrayLib::cX509Common.
◆ SetEmptyX()
void GrayLib::cX509Crl::SetEmptyX |
( |
| ) |
|
|
overridevirtual |
◆ SetEmptyX1()
void GrayLib::cX509Crl::SetEmptyX1 |
( |
| ) |
|
|
protected |
Unallocate CRL internal data. Ignore m_pNextCrl chain.
◆ UNITTEST_FRIEND()
GrayLib::cX509Crl::UNITTEST_FRIEND |
( |
cX509Crl |
| ) |
|
◆ k_pszPEM
const char * GrayLib::cX509Crl::k_pszPEM = "X509 CRL" |
|
static |
◆ m_entry
The CRL entries containing the certificate revocation times for this CA.
◆ m_issuer
The parsed issuer data (named information object).
◆ m_issuer_raw
cASNBuf GrayLib::cX509Crl::m_issuer_raw |
For faster compares with CRT.
◆ m_pNextCrl
◆ m_tNextUpdate
◆ m_tThisUpdate
The documentation for this class was generated from the following files: