1 /* user_settings.h 2 * 3 * Copyright (C) 2006-2021 wolfSSL Inc. 4 * 5 * This file is part of wolfSSL. 6 * 7 * wolfSSL is free software; you can redistribute it and/or modify 8 * it under the terms of the GNU General Public License as published by 9 * the Free Software Foundation; either version 2 of the License, or 10 * (at your option) any later version. 11 * 12 * wolfSSL is distributed in the hope that it will be useful, 13 * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 * GNU General Public License for more details. 16 * 17 * You should have received a copy of the GNU General Public License 18 * along with this program; if not, write to the Free Software 19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA 20 */ 21 22 #ifndef USER_SETTINGS_H 23 #define USER_SETTINGS_H 24 25 #ifdef CONFIG_WOLFSSL 26 #ifdef CONFIG_WOLFSSL_SETTINGS_FILE 27 28 #include CONFIG_WOLFSSL_SETTINGS_FILE 29 30 #else 31 32 #ifdef __cplusplus 33 extern "C" { 34 #endif 35 36 #undef WOLFSSL_ZEPHYR 37 #define WOLFSSL_ZEPHYR 38 39 #if 0 40 #undef SINGLE_THREADED 41 #define SINGLE_THREADED 42 #endif 43 44 #undef TFM_TIMING_RESISTANT 45 #define TFM_TIMING_RESISTANT 46 47 #undef ECC_TIMING_RESISTANT 48 #define ECC_TIMING_RESISTANT 49 50 #undef WC_RSA_BLINDING 51 #define WC_RSA_BLINDING 52 53 #undef HAVE_AESGCM 54 #define HAVE_AESGCM 55 56 #undef WOLFSSL_SHA512 57 #define WOLFSSL_SHA512 58 59 #undef WOLFSSL_SHA384 60 #define WOLFSSL_SHA384 61 62 #undef NO_DSA 63 #define NO_DSA 64 65 #undef HAVE_ECC 66 #define HAVE_ECC 67 68 #undef TFM_ECC256 69 #define TFM_ECC256 70 71 #undef WOLFSSL_BASE64_ENCODE 72 #define WOLFSSL_BASE64_ENCODE 73 74 #undef NO_RC4 75 #define NO_RC4 76 77 #undef NO_HC128 78 #define NO_HC128 79 80 #undef NO_RABBIT 81 #define NO_RABBIT 82 83 #undef WOLFSSL_SHA224 84 #define WOLFSSL_SHA224 85 86 #undef WOLFSSL_SHA3 87 #define WOLFSSL_SHA3 88 89 #undef HAVE_POLY1305 90 #define HAVE_POLY1305 91 92 #undef HAVE_ONE_TIME_AUTH 93 #define HAVE_ONE_TIME_AUTH 94 95 #undef HAVE_CHACHA 96 #define HAVE_CHACHA 97 98 #undef HAVE_HASHDRBG 99 #define HAVE_HASHDRBG 100 101 #undef NO_FILESYSTEM 102 #define NO_FILESYSTEM 103 104 #undef HAVE_TLS_EXTENSIONS 105 #define HAVE_TLS_EXTENSIONS 106 107 #undef HAVE_SUPPORTED_CURVES 108 #define HAVE_SUPPORTED_CURVES 109 110 #undef HAVE_EXTENDED_MASTER 111 #define HAVE_EXTENDED_MASTER 112 113 #undef NO_PSK 114 #define NO_PSK 115 116 #undef NO_MD4 117 #define NO_MD4 118 119 #undef NO_PWDBASED 120 #define NO_PWDBASED 121 122 #undef USE_FAST_MATH 123 #define USE_FAST_MATH 124 125 #undef WOLFSSL_NO_ASM 126 #define WOLFSSL_NO_ASM 127 128 #undef WOLFSSL_X86_BUILD 129 #define WOLFSSL_X86_BUILD 130 131 #undef WC_NO_ASYNC_THREADING 132 #define WC_NO_ASYNC_THREADING 133 134 #undef NO_DES3 135 #define NO_DES3 136 137 #undef WOLFSSL_STATIC_MEMORY 138 #define WOLFSSL_STATIC_MEMORY 139 140 #if 0 141 #undef WOLFSSL_HAVE_SP_RSA 142 #define WOLFSSL_HAVE_SP_RSA 143 #undef WOLFSSL_HAVE_SP_DH 144 #define WOLFSSL_HAVE_SP_DH 145 #undef WOLFSSL_HAVE_SP_ECC 146 #define WOLFSSL_HAVE_SP_ECC 147 #endif 148 149 #if defined(CONFIG_WOLFSSL_DEBUG) 150 #undef DEBUG_WOLFSSL 151 #define DEBUG_WOLFSSL 152 #endif 153 154 #ifdef __cplusplus 155 } 156 #endif 157 158 #endif /* CONFIG_WOLFSSL_SETTINGS_FILE */ 159 #endif /* CONFIG_WOLFSSL */ 160 161 #endif /* USER_SETTINGS_H */ 162 163