Get a PKCS#12 safeBag attribute value by NID.

Synopsis

Declared in <openssl/pkcs12.h>

ASN1_TYPE const*
PKCS12_SAFEBAG_get0_attr(
    PKCS12_SAFEBAG const* bag,
    int attr_nid);

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