OCSP_REQUEST_get_ext_by_OBJ

Find the next OCSP request extension with object identifier obj.

Synopsis

Declared in <openssl/ocsp.h>

int
OCSP_REQUEST_get_ext_by_OBJ(
    OCSP_REQUEST* x,
    ASN1_OBJECT const* obj,
    int lastpos);

Return Value

Extension index, or -1 if not found.

Parameters

NameDescription
xOCSP request whose extensions are searched.
objASN.1 object identifier to match.
lastposIndex after which to search, or -1 to start from the beginning.