OCSP_REQUEST_get_ext_by_NID

Find the next OCSP request extension with NID nid.

Synopsis

Declared in <openssl/ocsp.h>

int
OCSP_REQUEST_get_ext_by_NID(
    OCSP_REQUEST* x,
    int nid,
    int lastpos);

Return Value

Extension index, or -1 if not found.

Parameters

NameDescription
xOCSP request whose extensions are searched.
nidNID of the extension type to find.
lastposIndex after which to search, or -1 to start from the beginning.