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
Name |
Description |
attrs |
Stack of attributes to search. |
attr_nid |
NID of the attribute to retrieve. |
Created with MrDocs