2 * Copyright 2016 The OpenSSL Project Authors. All Rights Reserved.
4 * Licensed under the Apache License 2.0 (the "License"). You may not use
5 * this file except in compliance with the License. You can obtain a copy
6 * in the file LICENSE in the source distribution or at
7 * https://www.openssl.org/source/license.html
10 struct PKCS12_MAC_DATA_st {
12 ASN1_OCTET_STRING *salt;
13 ASN1_INTEGER *iter; /* defaults to 1 */
17 ASN1_INTEGER *version;
22 struct PKCS12_SAFEBAG_st {
25 struct pkcs12_bag_st *bag; /* secret, crl and certbag */
26 struct pkcs8_priv_key_info_st *keybag; /* keybag */
27 X509_SIG *shkeybag; /* shrouded key bag */
28 STACK_OF(PKCS12_SAFEBAG) *safes;
31 STACK_OF(X509_ATTRIBUTE) *attrib;
34 struct pkcs12_bag_st {
37 ASN1_OCTET_STRING *x509cert;
38 ASN1_OCTET_STRING *x509crl;
39 ASN1_OCTET_STRING *octet;
40 ASN1_IA5STRING *sdsicert;
41 ASN1_TYPE *other; /* Secret or other bag */