OCSP_response_get1_basic

Extract and decode the BasicOCSPResponse from a successful OCSP response.

Synopsis

Declared in <openssl/ocsp.h>

OCSP_BASICRESP*
OCSP_response_get1_basic(OCSP_RESPONSE* resp);

Return Value

Newly allocated OCSP_BASICRESP, or NULL on error; free with OCSP_BASICRESP_free().

Parameters

NameDescription
respOCSP response whose responseBytes contain an id-pkix-ocsp-basic payload.