OCSP_BASICRESP_get_ext_by_critical

Find the next basic-response extension with criticality crit.

Synopsis

Declared in <openssl/ocsp.h>

int
OCSP_BASICRESP_get_ext_by_critical(
    OCSP_BASICRESP* x,
    int crit,
    int lastpos);

Return Value

Extension index, or -1 if not found.

Parameters

NameDescription
xBasic OCSP response whose extensions are searched.
critNonzero to match critical extensions, zero for non-critical.
lastposIndex after which to search, or -1 to start from the beginning.