Return the extension at index loc from a stack of X509_EXTENSION.

Synopsis

Declared in <openssl/x509.h>

X509_EXTENSION*
X509v3_get_ext(
    stack_st_X509_EXTENSION const* x,
    int loc);

Return Value

Internal X509_EXTENSION pointer (do not free), or NULL on error.

Parameters

Name

Description

x

Stack of extensions to query; may be NULL.

loc

Extension index from 0 to X509v3_get_ext_count(x) ‐ 1.

Created with MrDocs