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

Name

Description

x

Stack of X509_ATTRIBUTE values to index.

loc

Index in the range [0, X509at_get_attr_count(]`x)).`

Created with MrDocs