OCSP_response_create

Create an OCSP response with the given status and optional basic response.

Synopsis

Declared in <openssl/ocsp.h>

OCSP_RESPONSE*
OCSP_response_create(
    int status,
    OCSP_BASICRESP* bs);

Return Value

Newly allocated OCSP_RESPONSE, or NULL on error; free with OCSP_RESPONSE_free().

Parameters

NameDescription
statusOCSPResponseStatus value such as OCSP_RESPONSE_STATUS_SUCCESSFUL.
bsOptional BasicOCSPResponse to embed as responseBytes, or NULL for status-only.