Retrieve an attribute by NID from a stack of X509_ATTRIBUTEs.
Declared in <openssl/pkcs12.h>
ASN1_TYPE*
PKCS12_get_attr_gen(
stack_st_X509_ATTRIBUTE const* attrs,
int attr_nid);
Attribute value (owned by the containing structure), or NULL if absent or on error.
| Name | Description |
|---|---|
| attrs | Stack of attributes to search. |
| attr_nid | NID of the attribute to retrieve. |