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

Name

Description

status

OCSPResponseStatus value such as OCSP_RESPONSE_STATUS_SUCCESSFUL.

bs

Optional BasicOCSPResponse to embed as responseBytes, or NULL for status‐only.

Created with MrDocs