OCSP_basic_add1_status

Append a SingleResponse with certificate status to a basic OCSP response.

Synopsis

Declared in <openssl/ocsp.h>

OCSP_SINGLERESP*
OCSP_basic_add1_status(
    OCSP_BASICRESP* rsp,
    OCSP_CERTID* cid,
    int status,
    int reason,
    ASN1_TIME* revtime,
    ASN1_TIME* thisupd,
    ASN1_TIME* nextupd);

Return Value

Internal OCSP_SINGLERESP pointer on success, or NULL on error.

Parameters

NameDescription
rspBasic response being constructed.
cidCertID identifying the certificate (ownership transferred on success).
statusOCSP_CERTIFICATESTATUS_* value for the response.
reasonRevocation reason when status is revoked; otherwise ignored.
revtimeRevocation time when status is revoked; otherwise may be NULL.
thisupdthisUpdate time for the SingleResponse.
nextupdOptional nextUpdate time, or NULL.