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