OCSP_resp_find

Find the next SingleResponse whose CertID matches id.

Synopsis

Declared in <openssl/ocsp.h>

int
OCSP_resp_find(
    OCSP_BASICRESP* bs,
    OCSP_CERTID* id,
    int last);

Return Value

Index of the matching SingleResponse, or -1 if not found.

Parameters

NameDescription
bsBasic OCSP response to search.
idCertID identifying the certificate of interest.
lastIndex after which to search, or -1 to start from the beginning.