[#PKCS12_get_friendlyname]
= PKCS12&lowbar;get&lowbar;friendlyname
:mrdocs:

Retrieve the PKCS&num;9 friendlyName from a safeBag as a UTF&hyphen;8 string&period;

== Synopsis

Declared in `&lt;openssl&sol;pkcs12&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
char*
PKCS12&lowbar;get&lowbar;friendlyname(xref:PKCS12_SAFEBAG.adoc[PKCS12&lowbar;SAFEBAG]* bag);
----

== Return Value

Allocated UTF&hyphen;8 string, or NULL if absent or on error&period; Caller must free&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *bag*
| SafeBag to query&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
