/* module_exports.c.template -- static preamble for dynamically generated * module_exports.c (see Kbuild) * * Copyright (C) 2006-2022 wolfSSL Inc. * * This file is part of wolfSSL. * * wolfSSL is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * wolfSSL is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA */ #ifdef HAVE_CONFIG_H #include #endif #include #ifdef HAVE_FIPS #define FIPS_NO_WRAPPERS #endif #include #ifndef WOLFCRYPT_ONLY #include #include #endif #ifndef NO_CRYPT_TEST #include #include #endif #ifndef EXPORT_SYMBOL_NS #define EXPORT_SYMBOL_NS(sym, ns) EXPORT_SYMBOL(sym) #endif #ifndef EXPORT_SYMBOL_NS_GPL #define EXPORT_SYMBOL_NS_GPL(sym, ns) EXPORT_SYMBOL_GPL(sym) #endif #include #include #include #include #include #include #include #include #include #include #include #ifdef WOLFSSL_SIPHASH #include #endif #include #if defined(WC_NO_RNG) #include #else #include #endif #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #ifdef HAVE_ECC #include #endif #ifdef HAVE_CURVE25519 #include #endif #ifdef HAVE_ED25519 #include #endif #ifdef HAVE_CURVE448 #include #endif #ifdef HAVE_ED448 #include #endif #if defined(HAVE_BLAKE2) || defined(HAVE_BLAKE2S) #include #endif #ifdef WOLFSSL_SHA3 #include #endif #ifdef HAVE_LIBZ #include #endif #ifdef HAVE_PKCS7 #include #endif #ifdef HAVE_PKCS12 #include #endif #ifdef HAVE_FIPS #include #include #endif #ifdef HAVE_SELFTEST #include #endif #ifdef WOLFSSL_ASYNC_CRYPT #include #endif #if defined(OPENSSL_EXTRA) || defined(DEBUG_WOLFSSL_VERBOSE) #include #endif #ifdef WOLFSSL_IMX6_CAAM_BLOB #include #endif #ifdef WOLF_CRYPTO_CB #include #ifdef HAVE_INTEL_QA_SYNC #include #endif #ifdef HAVE_CAVIUM_OCTEON_SYNC #include #endif #endif #ifndef NO_KDF #include #endif #ifdef OPENSSL_EXTRA #ifndef WOLFCRYPT_ONLY #include #endif #include #include #include #include #endif #if defined(NO_FILESYSTEM) #if !defined(USE_CERT_BUFFERS_1024) && !defined(USE_CERT_BUFFERS_2048) && \ !defined(USE_CERT_BUFFERS_3072) && !defined(USE_CERT_BUFFERS_4096) #define USE_CERT_BUFFERS_2048 #endif #if !defined(USE_CERT_BUFFERS_256) #define USE_CERT_BUFFERS_256 #endif #endif #if defined(WOLFSSL_CERT_GEN) && (defined(HAVE_ECC384) || defined(HAVE_ALL_CURVES)) #define ENABLE_ECC384_CERT_GEN_TEST #endif #include #ifdef OPENSSL_EXTRA #include #include #include #include #include #include #include #include #include #endif