X509v3_get_ext_by_critical

Find the next X509 extension with a given critical flag in a stack.

Synopsis

Declared in <openssl/x509.h>

int
X509v3_get_ext_by_critical(
    stack_st_X509_EXTENSION const* x,
    int crit,
    int lastpos);

Return Value

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

Parameters

NameDescription
xStack of extensions to search.
critNon-zero to match critical extensions, zero for non-critical.
lastposIndex to search after, or -1 to start from the beginning.