1 1.1 christos =pod 2 1.1 christos 3 1.1 christos =head1 NAME 4 1.1 christos 5 1.1 christos PKCS12_init, PKCS12_init_ex - Create a new empty PKCS#12 structure 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 PKCS12 *PKCS12_init(int mode); 12 1.1 christos PKCS12 *PKCS12_init_ex(int mode, OSSL_LIB_CTX *ctx, const char *propq); 13 1.1 christos 14 1.1 christos =head1 DESCRIPTION 15 1.1 christos 16 1.1 christos PKCS12_init() creates an empty PKCS#12 structure. Any PKCS#7 authSafes added 17 1.1 christos to this structure are enclosed first within a single PKCS#7 contentInfo 18 1.1 christos of type I<mode>. Currently the only supported type is B<NID_pkcs7_data>. 19 1.1 christos 20 1.1 christos PKCS12_init_ex() creates an empty PKCS#12 structure and assigns the supplied 21 1.1 christos I<ctx> and I<propq> to be used to select algorithm implementations for 22 1.1 christos operations performed on the B<PKCS12> object. 23 1.1 christos 24 1.1 christos =head1 RETURN VALUES 25 1.1 christos 26 1.1 christos PKCS12_init() and PKCS12_init_ex() return a valid B<PKCS12> structure or NULL 27 1.1 christos if an error occurred. 28 1.1 christos 29 1.1 christos =head1 SEE ALSO 30 1.1 christos 31 1.1 christos L<d2i_PKCS12(3)>, 32 1.1 christos L<PKCS12_create(3)>, 33 1.1 christos L<passphrase-encoding(7)> 34 1.1 christos 35 1.1 christos =head1 HISTORY 36 1.1 christos 37 1.1 christos PKCS12_init_ex() was added in OpenSSL 3.0. 38 1.1 christos 39 1.1 christos =head1 COPYRIGHT 40 1.1 christos 41 1.1 christos Copyright 2021 The OpenSSL Project Authors. All Rights Reserved. 42 1.1 christos 43 1.1 christos Licensed under the Apache License 2.0 (the "License"). You may not use 44 1.1 christos this file except in compliance with the License. You can obtain a copy 45 1.1 christos in the file LICENSE in the source distribution or at 46 1.1 christos L<https://www.openssl.org/source/license.html>. 47 1.1 christos 48 1.1 christos =cut 49