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