CERT_REVOCATION_STATUS structure (wincrypt.h)
The CERT_REVOCATION_STATUS structure contains information on the revocation status of the certificate. It is passed to and returned by CertVerifyRevocation. On return from the function, it specifies the status of a revoked or unchecked context.
Syntax
typedef struct _CERT_REVOCATION_STATUS {
DWORD cbSize;
DWORD dwIndex;
DWORD dwError;
DWORD dwReason;
BOOL fHasFreshnessTime;
DWORD dwFreshnessTime;
} CERT_REVOCATION_STATUS, *PCERT_REVOCATION_STATUS;
Members
cbSize
Size of this structure in bytes.
Upon input to CERT_REVOCATION_STATUS, cbSize must be set to a size greater than or equal to the size of a CERT_REVOCATION_STATUS structure. Otherwise, CERT_REVOCATION_STATUS returns FALSE and GetLastError returns E_INVALIDARG.
dwIndex
Specifies an index value for the rgpvContext array passed to CertVerifyRevocation. It is the index of the first context in that array that was revoked or that could not be checked for revocation. For information about the contexts that were not checked, CertVerifyRevocation is called again, specifying a rgpvContext array that contains the unchecked contexts from the original list.
dwError
Specifies the returned error status. This value matches the return value of GetLastError on return from the call to CertVerifyRevocation. For the list of these error values, see the table in the Return Values section of CertVerifyRevocation.
dwReason
Specifies the cause of the error. This member is set only if dwError is CRYPT_E_REVOKED. It contains a code that indicates why the context was revoked. It can be one of the following values.
fHasFreshnessTime
Depending on cbSize, this structure can contain this member. If this member is TRUE, the revocation freshness time returned by dwFreshnessTime is valid.
dwFreshnessTime
Depending on cbSize, this structure can contain this member. If present, this member gives the time in seconds between the current time and when the CRL was published.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows XP [desktop apps only] |
Minimum supported server | Windows Server 2003 [desktop apps only] |
Header | wincrypt.h |