1PKCS12_INIT(3ossl)                  OpenSSL                 PKCS12_INIT(3ossl)
2
3
4

NAME

6       PKCS12_init, PKCS12_init_ex - Create a new empty PKCS#12 structure
7

SYNOPSIS

9        #include <openssl/pkcs12.h>
10
11        PKCS12 *PKCS12_init(int mode);
12        PKCS12 *PKCS12_init_ex(int mode, OSSL_LIB_CTX *ctx, const char *propq);
13

DESCRIPTION

15       PKCS12_init() creates an empty PKCS#12 structure. Any PKCS#7 authSafes
16       added to this structure are enclosed first within a single PKCS#7
17       contentInfo of type mode. Currently the only supported type is
18       NID_pkcs7_data.
19
20       PKCS12_init_ex() creates an empty PKCS#12 structure and assigns the
21       supplied ctx and propq to be used to select algorithm implementations
22       for operations performed on the PKCS12 object.
23

RETURN VALUES

25       PKCS12_init() and PKCS12_init_ex() return a valid PKCS12 structure or
26       NULL if an error occurred.
27

SEE ALSO

29       d2i_PKCS12(3), PKCS12_create(3), passphrase-encoding(7)
30

HISTORY

32       PKCS12_init_ex() was added in OpenSSL 3.0.
33
35       Copyright 2021 The OpenSSL Project Authors. All Rights Reserved.
36
37       Licensed under the Apache License 2.0 (the "License").  You may not use
38       this file except in compliance with the License.  You can obtain a copy
39       in the file LICENSE in the source distribution or at
40       <https://www.openssl.org/source/license.html>.
41
42
43
443.0.5                             2022-11-01                PKCS12_INIT(3ossl)
Impressum