OCSP_resp_get0

Return the SingleResponse at index idx in a basic OCSP response.

Synopsis

Declared in <openssl/ocsp.h>

OCSP_SINGLERESP*
OCSP_resp_get0(
    OCSP_BASICRESP* bs,
    int idx);

Return Value

Internal OCSP_SINGLERESP pointer, or NULL if bs is NULL or idx is out of range.

Parameters

NameDescription
bsBasic OCSP response to query.
idxZero-based index into the responses sequence.