5 PKCS12_get_friendlyname - Retrieve the friendlyname attribute from a PKCS#12 safeBag
9 #include <openssl/pkcs12.h>
11 char *PKCS12_get_friendlyname(PKCS12_SAFEBAG *bag);
15 PKCS12_get_friendlyname() retrieves a UTF-8 string representation of the PKCS#9
16 friendlyName attribute for a PKCS#12 safeBag item.
18 I<bag> is the B<PKCS12_SAFEBAG> to retrieve the attribute from.
22 A UTF-8 string, or NULL if the attribute was either not present or an error occurred.
24 The returned string is allocated by OpenSSL and should be freed by the user.
28 L<PKCS12_add_friendlyname_asc(3)>
32 Copyright 2019 The OpenSSL Project Authors. All Rights Reserved.
34 Licensed under the Apache License 2.0 (the "License"). You may not use
35 this file except in compliance with the License. You can obtain a copy
36 in the file LICENSE in the source distribution or at
37 L<https://www.openssl.org/source/license.html>.