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

Name

Description

rsp

Basic response being constructed.

cid

CertID identifying the certificate (ownership transferred on success).

status

OCSP_CERTIFICATESTATUS_* value for the response.

reason

Revocation reason when status is revoked; otherwise ignored.

revtime

Revocation time when status is revoked; otherwise may be NULL.

thisupd

thisUpdate time for the SingleResponse.

nextupd

Optional nextUpdate time, or NULL.

Created with MrDocs