PKCS12_get_attr_gen

Retrieve an attribute by NID from a stack of X509_ATTRIBUTEs.

Synopsis

Declared in <openssl/pkcs12.h>

ASN1_TYPE*
PKCS12_get_attr_gen(
    stack_st_X509_ATTRIBUTE const* attrs,
    int attr_nid);

Return Value

Attribute value (owned by the containing structure), or NULL if absent or on error.

Parameters

NameDescription
attrsStack of attributes to search.
attr_nidNID of the attribute to retrieve.