Retrieve a PKCS#12 safeBag attribute by NID (deprecated; use PKCS12_SAFEBAG_get0_attr()).

Synopsis

Declared in <openssl/pkcs12.h>

[[deprecated]]
ASN1_TYPE*
PKCS12_get_attr(
    PKCS12_SAFEBAG const* bag,
    int attr_nid);
Warning

Deprecated. Use of this entity is allowed but discouraged.

Return Value

Attribute value, or NULL if absent or on error.

Parameters

Name

Description

bag

SafeBag to query.

attr_nid

NID of the attribute to retrieve.

Created with MrDocs