Get a PKCS#12 safeBag attribute value by NID.
Declared in <openssl/pkcs12.h>
ASN1_TYPE const*
PKCS12_SAFEBAG_get0_attr(
PKCS12_SAFEBAG const* bag,
int attr_nid);
Attribute value, or NULL if absent or on error.
| Name | Description |
|---|---|
| bag | SafeBag to query. |
| attr_nid | NID of the attribute to retrieve. |