OCSP_single_get0_status

Extract certificate status and related times from a SingleResponse.

Synopsis

Declared in <openssl/ocsp.h>

int
OCSP_single_get0_status(
    OCSP_SINGLERESP* single,
    int* reason,
    ASN1_GENERALIZEDTIME** revtime,
    ASN1_GENERALIZEDTIME** thisupd,
    ASN1_GENERALIZEDTIME** nextupd);

Return Value

OCSP_CERTIFICATESTATUS_* value (GOOD, REVOKED, or UNKNOWN).

Parameters

NameDescription
singleSingleResponse to query.
reasonOptional output for the revocation reason when status is revoked; may be NULL.
revtimeOptional output for the revocation time when status is revoked; may be NULL.
thisupdOptional output for thisUpdate; may be NULL.
nextupdOptional output for nextUpdate; may be NULL.