X509v3_get_ext_by_OBJ

Find the next extension in x whose OID matches obj.

Synopsis

Declared in <openssl/x509.h>

int
X509v3_get_ext_by_OBJ(
    stack_st_X509_EXTENSION const* x,
    ASN1_OBJECT const* obj,
    int lastpos);

Return Value

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

Parameters

NameDescription
xStack of extensions to search.
objExtension OID to match.
lastposIndex to search after, or -1 to start from the beginning.