X509at_get_attr

Return the attribute at a zero-based index in an attribute stack.

Synopsis

Declared in <openssl/x509.h>

X509_ATTRIBUTE*
X509at_get_attr(
    stack_st_X509_ATTRIBUTE const* x,
    int loc);

Return Value

Attribute at loc, or NULL if loc is out of range.

Parameters

NameDescription
xStack of X509_ATTRIBUTE values to index.
locIndex in the range [0, X509at_get_attr_count(]x)).