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

Name

Description

x

Stack of extensions to search.

obj

Extension OID to match.

lastpos

Index to search after, or ‐1 to start from the beginning.

Created with MrDocs