Retrieve a PKCS#12 safeBag attribute by NID (deprecated; use PKCS12_SAFEBAG_get0_attr()).
Declared in <openssl/pkcs12.h>
[[deprecated]]
ASN1_TYPE*
PKCS12_get_attr(
PKCS12_SAFEBAG const* bag,
int attr_nid);
Deprecated. Use of this entity is allowed but discouraged.
Attribute value, or NULL if absent or on error.
| Name | Description |
|---|---|
| bag | SafeBag to query. |
| attr_nid | NID of the attribute to retrieve. |