X509v3_get_ext

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

NameDescription
xStack of extensions to query; may be NULL.
locExtension index from 0 to X509v3_get_ext_count(x) - 1.