PKCS12_get_friendlyname.3ossl - Man Page

Retrieve the friendlyname attribute from a PKCS#12 safeBag

Synopsis

 #include <openssl/pkcs12.h>

 char *PKCS12_get_friendlyname(PKCS12_SAFEBAG *bag);

Description

PKCS12_get_friendlyname() retrieves a UTF-8 string representation of the PKCS#9 friendlyName attribute for a PKCS#12 safeBag item.

bag is the PKCS12_SAFEBAG to retrieve the attribute from.

Return Values

A UTF-8 string, or NULL if the attribute was either not present or an error occurred.

The returned string is allocated by OpenSSL and should be freed by the user.

See Also

PKCS12_add_friendlyname_asc(3)

Referenced By

PKCS12_add_friendlyname_asc.3ossl(3), PKCS12_SAFEBAG_get0_attrs.3ossl(3).

2022-09-12 3.0.5 OpenSSL