Append a SingleResponse with certificate status to a basic OCSP response.
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);
Internal OCSP_SINGLERESP pointer on success, or NULL on error.
| 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. |