1 =pod 2 3 =head1 NAME 4 5 PKCS12_add_friendlyname_asc, PKCS12_add_friendlyname_utf8, 6 PKCS12_add_friendlyname_uni - Functions to add the friendlyname attribute to a 7 PKCS#12 safeBag 8 9 =head1 SYNOPSIS 10 11 #include <openssl/pkcs12.h> 12 13 int PKCS12_add_friendlyname_asc(PKCS12_SAFEBAG *bag, const char *name, 14 int namelen); 15 16 int PKCS12_add_friendlyname_utf8(PKCS12_SAFEBAG *bag, const char *name, 17 int namelen); 18 19 int PKCS12_add_friendlyname_uni(PKCS12_SAFEBAG *bag, 20 const unsigned char *name, int namelen); 21 22 =head1 DESCRIPTION 23 24 PKCS12_add_friendlyname_asc() adds an ASCII string representation of the PKCS#9 25 friendlyName attribute to a PKCS#12 safeBag. 26 27 PKCS12_add_friendlyname_utf8() adds a UTF-8 string representation of the PKCS#9 28 friendlyName attribute to a PKCS#12 safeBag. 29 30 PKCS12_add_friendlyname_uni() adds a Unicode string representation of the PKCS#9 31 friendlyName attribute to a PKCS#12 safeBag. 32 33 I<bag> is the B<PKCS12_SAFEBAG> to add the attribute to. 34 35 =head1 RETURN VALUES 36 37 Returns 1 for success or 0 for failure. 38 39 =head1 SEE ALSO 40 41 L<PKCS12_get_friendlyname(3)> 42 43 =head1 COPYRIGHT 44 45 Copyright 2019 The OpenSSL Project Authors. All Rights Reserved. 46 47 Licensed under the Apache License 2.0 (the "License"). You may not use 48 this file except in compliance with the License. You can obtain a copy 49 in the file LICENSE in the source distribution or at 50 L<https://www.openssl.org/source/license.html>. 51 52 =cut 53