# This file is dual licensed under the terms of the Apache License, Version # 2.0, and the BSD License. See the LICENSE file in the root of this repository # for complete details. from __future__ import annotations INCLUDES = """ #include """ TYPES = """ static const long Cryptography_HAS_PKCS12_SET_MAC; typedef ... PKCS12; """ FUNCTIONS = """ void PKCS12_free(PKCS12 *); PKCS12 *d2i_PKCS12_bio(BIO *, PKCS12 **); int i2d_PKCS12_bio(BIO *, PKCS12 *); int PKCS12_parse(PKCS12 *, const char *, EVP_PKEY **, X509 **, Cryptography_STACK_OF_X509 **); PKCS12 *PKCS12_create(char *, char *, EVP_PKEY *, X509 *, Cryptography_STACK_OF_X509 *, int, int, int, int, int); int PKCS12_set_mac(PKCS12 *, const char *, int, unsigned char *, int, int, const EVP_MD *); """ CUSTOMIZATIONS = """ #if CRYPTOGRAPHY_IS_BORINGSSL static const long Cryptography_HAS_PKCS12_SET_MAC = 0; int (*PKCS12_set_mac)(PKCS12 *, const char *, int, unsigned char *, int, int, const EVP_MD *) = NULL; #else static const long Cryptography_HAS_PKCS12_SET_MAC = 1; #endif """