1 1.1 christos =pod 2 1.1 christos 3 1.1 christos =head1 NAME 4 1.1 christos 5 1.1 christos PKCS12_get_friendlyname - Retrieve the friendlyname attribute from a PKCS#12 safeBag 6 1.1 christos 7 1.1 christos =head1 SYNOPSIS 8 1.1 christos 9 1.1 christos #include <openssl/pkcs12.h> 10 1.1 christos 11 1.1 christos char *PKCS12_get_friendlyname(PKCS12_SAFEBAG *bag); 12 1.1 christos 13 1.1 christos =head1 DESCRIPTION 14 1.1 christos 15 1.1 christos PKCS12_get_friendlyname() retrieves a UTF-8 string representation of the PKCS#9 16 1.1 christos friendlyName attribute for a PKCS#12 safeBag item. 17 1.1 christos 18 1.1 christos I<bag> is the B<PKCS12_SAFEBAG> to retrieve the attribute from. 19 1.1 christos 20 1.1 christos =head1 RETURN VALUES 21 1.1 christos 22 1.1 christos A UTF-8 string, or NULL if the attribute was either not present or an error occurred. 23 1.1 christos 24 1.1 christos The returned string is allocated by OpenSSL and should be freed by the user. 25 1.1 christos 26 1.1 christos =head1 SEE ALSO 27 1.1 christos 28 1.1 christos L<PKCS12_add_friendlyname_asc(3)> 29 1.1 christos 30 1.1 christos =head1 COPYRIGHT 31 1.1 christos 32 1.1 christos Copyright 2019 The OpenSSL Project Authors. All Rights Reserved. 33 1.1 christos 34 1.1 christos Licensed under the Apache License 2.0 (the "License"). You may not use 35 1.1 christos this file except in compliance with the License. You can obtain a copy 36 1.1 christos in the file LICENSE in the source distribution or at 37 1.1 christos L<https://www.openssl.org/source/license.html>. 38 1.1 christos 39 1.1 christos =cut 40