mbed TLS library
Dependents: HTTPClient-SSL WS_SERVER
include/polarssl/check_config.h@0:137634ff4186, 2015-06-11 (annotated)
- Committer:
- ansond
- Date:
- Thu Jun 11 03:27:03 2015 +0000
- Revision:
- 0:137634ff4186
initial commit
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
ansond | 0:137634ff4186 | 1 | /** |
ansond | 0:137634ff4186 | 2 | * \file check_config.h |
ansond | 0:137634ff4186 | 3 | * |
ansond | 0:137634ff4186 | 4 | * \brief Consistency checks for configuration options |
ansond | 0:137634ff4186 | 5 | * |
ansond | 0:137634ff4186 | 6 | * Copyright (C) 2006-2014, ARM Limited, All Rights Reserved |
ansond | 0:137634ff4186 | 7 | * |
ansond | 0:137634ff4186 | 8 | * This file is part of mbed TLS (https://tls.mbed.org) |
ansond | 0:137634ff4186 | 9 | * |
ansond | 0:137634ff4186 | 10 | * This program is free software; you can redistribute it and/or modify |
ansond | 0:137634ff4186 | 11 | * it under the terms of the GNU General Public License as published by |
ansond | 0:137634ff4186 | 12 | * the Free Software Foundation; either version 2 of the License, or |
ansond | 0:137634ff4186 | 13 | * (at your option) any later version. |
ansond | 0:137634ff4186 | 14 | * |
ansond | 0:137634ff4186 | 15 | * This program is distributed in the hope that it will be useful, |
ansond | 0:137634ff4186 | 16 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
ansond | 0:137634ff4186 | 17 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
ansond | 0:137634ff4186 | 18 | * GNU General Public License for more details. |
ansond | 0:137634ff4186 | 19 | * |
ansond | 0:137634ff4186 | 20 | * You should have received a copy of the GNU General Public License along |
ansond | 0:137634ff4186 | 21 | * with this program; if not, write to the Free Software Foundation, Inc., |
ansond | 0:137634ff4186 | 22 | * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. |
ansond | 0:137634ff4186 | 23 | */ |
ansond | 0:137634ff4186 | 24 | |
ansond | 0:137634ff4186 | 25 | /* |
ansond | 0:137634ff4186 | 26 | * It is recommended to include this file from your config.h |
ansond | 0:137634ff4186 | 27 | * in order to catch dependency issues early. |
ansond | 0:137634ff4186 | 28 | */ |
ansond | 0:137634ff4186 | 29 | |
ansond | 0:137634ff4186 | 30 | #ifndef POLARSSL_CHECK_CONFIG_H |
ansond | 0:137634ff4186 | 31 | #define POLARSSL_CHECK_CONFIG_H |
ansond | 0:137634ff4186 | 32 | |
ansond | 0:137634ff4186 | 33 | #if defined(POLARSSL_DEPRECATED_WARNING) && \ |
ansond | 0:137634ff4186 | 34 | !defined(__GNUC__) && !defined(__clang__) |
ansond | 0:137634ff4186 | 35 | #error "POLARSSL_DEPRECATED_WARNING only works with GCC and Clang" |
ansond | 0:137634ff4186 | 36 | #endif |
ansond | 0:137634ff4186 | 37 | |
ansond | 0:137634ff4186 | 38 | #if defined(POLARSSL_NET_C) && !defined(POLARSSL_HAVE_IPV6) |
ansond | 0:137634ff4186 | 39 | #if defined(POLARSSL_DEPRECATED_WARNING) |
ansond | 0:137634ff4186 | 40 | #warning "Using POLARSSL_NET_C without POLARSSL_HAVE_IPV6 is deprecated" |
ansond | 0:137634ff4186 | 41 | #endif |
ansond | 0:137634ff4186 | 42 | #if defined(POLARSSL_DEPRECATED_REMOVED) |
ansond | 0:137634ff4186 | 43 | #define POLARSSL_HAVE_IPV6 |
ansond | 0:137634ff4186 | 44 | #endif |
ansond | 0:137634ff4186 | 45 | #endif /* POLARSSL_NET_C && !POLARSSL_HAVE_IPV6 */ |
ansond | 0:137634ff4186 | 46 | |
ansond | 0:137634ff4186 | 47 | #if defined(POLARSSL_AESNI_C) && !defined(POLARSSL_HAVE_ASM) |
ansond | 0:137634ff4186 | 48 | #error "POLARSSL_AESNI_C defined, but not all prerequisites" |
ansond | 0:137634ff4186 | 49 | #endif |
ansond | 0:137634ff4186 | 50 | |
ansond | 0:137634ff4186 | 51 | #if defined(POLARSSL_CERTS_C) && !defined(POLARSSL_PEM_PARSE_C) |
ansond | 0:137634ff4186 | 52 | #error "POLARSSL_CERTS_C defined, but not all prerequisites" |
ansond | 0:137634ff4186 | 53 | #endif |
ansond | 0:137634ff4186 | 54 | |
ansond | 0:137634ff4186 | 55 | #if defined(POLARSSL_CTR_DRBG_C) && !defined(POLARSSL_AES_C) |
ansond | 0:137634ff4186 | 56 | #error "POLARSSL_CTR_DRBG_C defined, but not all prerequisites" |
ansond | 0:137634ff4186 | 57 | #endif |
ansond | 0:137634ff4186 | 58 | |
ansond | 0:137634ff4186 | 59 | #if defined(POLARSSL_DHM_C) && !defined(POLARSSL_BIGNUM_C) |
ansond | 0:137634ff4186 | 60 | #error "POLARSSL_DHM_C defined, but not all prerequisites" |
ansond | 0:137634ff4186 | 61 | #endif |
ansond | 0:137634ff4186 | 62 | |
ansond | 0:137634ff4186 | 63 | #if defined(POLARSSL_ECDH_C) && !defined(POLARSSL_ECP_C) |
ansond | 0:137634ff4186 | 64 | #error "POLARSSL_ECDH_C defined, but not all prerequisites" |
ansond | 0:137634ff4186 | 65 | #endif |
ansond | 0:137634ff4186 | 66 | |
ansond | 0:137634ff4186 | 67 | #if defined(POLARSSL_ECDSA_C) && \ |
ansond | 0:137634ff4186 | 68 | ( !defined(POLARSSL_ECP_C) || \ |
ansond | 0:137634ff4186 | 69 | !defined(POLARSSL_ASN1_PARSE_C) || \ |
ansond | 0:137634ff4186 | 70 | !defined(POLARSSL_ASN1_WRITE_C) ) |
ansond | 0:137634ff4186 | 71 | #error "POLARSSL_ECDSA_C defined, but not all prerequisites" |
ansond | 0:137634ff4186 | 72 | #endif |
ansond | 0:137634ff4186 | 73 | |
ansond | 0:137634ff4186 | 74 | #if defined(POLARSSL_ECDSA_DETERMINISTIC) && !defined(POLARSSL_HMAC_DRBG_C) |
ansond | 0:137634ff4186 | 75 | #error "POLARSSL_ECDSA_DETERMINISTIC defined, but not all prerequisites" |
ansond | 0:137634ff4186 | 76 | #endif |
ansond | 0:137634ff4186 | 77 | |
ansond | 0:137634ff4186 | 78 | #if defined(POLARSSL_ECP_C) && ( !defined(POLARSSL_BIGNUM_C) || ( \ |
ansond | 0:137634ff4186 | 79 | !defined(POLARSSL_ECP_DP_SECP192R1_ENABLED) && \ |
ansond | 0:137634ff4186 | 80 | !defined(POLARSSL_ECP_DP_SECP224R1_ENABLED) && \ |
ansond | 0:137634ff4186 | 81 | !defined(POLARSSL_ECP_DP_SECP256R1_ENABLED) && \ |
ansond | 0:137634ff4186 | 82 | !defined(POLARSSL_ECP_DP_SECP384R1_ENABLED) && \ |
ansond | 0:137634ff4186 | 83 | !defined(POLARSSL_ECP_DP_SECP521R1_ENABLED) && \ |
ansond | 0:137634ff4186 | 84 | !defined(POLARSSL_ECP_DP_BP256R1_ENABLED) && \ |
ansond | 0:137634ff4186 | 85 | !defined(POLARSSL_ECP_DP_BP384R1_ENABLED) && \ |
ansond | 0:137634ff4186 | 86 | !defined(POLARSSL_ECP_DP_BP512R1_ENABLED) && \ |
ansond | 0:137634ff4186 | 87 | !defined(POLARSSL_ECP_DP_SECP192K1_ENABLED) && \ |
ansond | 0:137634ff4186 | 88 | !defined(POLARSSL_ECP_DP_SECP224K1_ENABLED) && \ |
ansond | 0:137634ff4186 | 89 | !defined(POLARSSL_ECP_DP_SECP256K1_ENABLED) ) ) |
ansond | 0:137634ff4186 | 90 | #error "POLARSSL_ECP_C defined, but not all prerequisites" |
ansond | 0:137634ff4186 | 91 | #endif |
ansond | 0:137634ff4186 | 92 | |
ansond | 0:137634ff4186 | 93 | #if defined(POLARSSL_ENTROPY_C) && (!defined(POLARSSL_SHA512_C) && \ |
ansond | 0:137634ff4186 | 94 | !defined(POLARSSL_SHA256_C)) |
ansond | 0:137634ff4186 | 95 | #error "POLARSSL_ENTROPY_C defined, but not all prerequisites" |
ansond | 0:137634ff4186 | 96 | #endif |
ansond | 0:137634ff4186 | 97 | #if defined(POLARSSL_ENTROPY_C) && defined(POLARSSL_SHA512_C) && \ |
ansond | 0:137634ff4186 | 98 | defined(CTR_DRBG_ENTROPY_LEN) && (CTR_DRBG_ENTROPY_LEN > 64) |
ansond | 0:137634ff4186 | 99 | #error "CTR_DRBG_ENTROPY_LEN value too high" |
ansond | 0:137634ff4186 | 100 | #endif |
ansond | 0:137634ff4186 | 101 | #if defined(POLARSSL_ENTROPY_C) && \ |
ansond | 0:137634ff4186 | 102 | ( !defined(POLARSSL_SHA512_C) || defined(POLARSSL_ENTROPY_FORCE_SHA256) ) \ |
ansond | 0:137634ff4186 | 103 | && defined(CTR_DRBG_ENTROPY_LEN) && (CTR_DRBG_ENTROPY_LEN > 32) |
ansond | 0:137634ff4186 | 104 | #error "CTR_DRBG_ENTROPY_LEN value too high" |
ansond | 0:137634ff4186 | 105 | #endif |
ansond | 0:137634ff4186 | 106 | #if defined(POLARSSL_ENTROPY_C) && \ |
ansond | 0:137634ff4186 | 107 | defined(POLARSSL_ENTROPY_FORCE_SHA256) && !defined(POLARSSL_SHA256_C) |
ansond | 0:137634ff4186 | 108 | #error "POLARSSL_ENTROPY_FORCE_SHA256 defined, but not all prerequisites" |
ansond | 0:137634ff4186 | 109 | #endif |
ansond | 0:137634ff4186 | 110 | |
ansond | 0:137634ff4186 | 111 | #if defined(POLARSSL_GCM_C) && ( \ |
ansond | 0:137634ff4186 | 112 | !defined(POLARSSL_AES_C) && !defined(POLARSSL_CAMELLIA_C) ) |
ansond | 0:137634ff4186 | 113 | #error "POLARSSL_GCM_C defined, but not all prerequisites" |
ansond | 0:137634ff4186 | 114 | #endif |
ansond | 0:137634ff4186 | 115 | |
ansond | 0:137634ff4186 | 116 | #if defined(POLARSSL_HAVEGE_C) && !defined(POLARSSL_TIMING_C) |
ansond | 0:137634ff4186 | 117 | #error "POLARSSL_HAVEGE_C defined, but not all prerequisites" |
ansond | 0:137634ff4186 | 118 | #endif |
ansond | 0:137634ff4186 | 119 | |
ansond | 0:137634ff4186 | 120 | #if defined(POLARSSL_HMAC_DRBG) && !defined(POLARSSL_MD_C) |
ansond | 0:137634ff4186 | 121 | #error "POLARSSL_HMAC_DRBG_C defined, but not all prerequisites" |
ansond | 0:137634ff4186 | 122 | #endif |
ansond | 0:137634ff4186 | 123 | |
ansond | 0:137634ff4186 | 124 | #if defined(POLARSSL_KEY_EXCHANGE_ECDH_ECDSA_ENABLED) && \ |
ansond | 0:137634ff4186 | 125 | ( !defined(POLARSSL_ECDH_C) || !defined(POLARSSL_X509_CRT_PARSE_C) ) |
ansond | 0:137634ff4186 | 126 | #error "POLARSSL_KEY_EXCHANGE_ECDH_ECDSA_ENABLED defined, but not all prerequisites" |
ansond | 0:137634ff4186 | 127 | #endif |
ansond | 0:137634ff4186 | 128 | |
ansond | 0:137634ff4186 | 129 | #if defined(POLARSSL_KEY_EXCHANGE_ECDH_RSA_ENABLED) && \ |
ansond | 0:137634ff4186 | 130 | ( !defined(POLARSSL_ECDH_C) || !defined(POLARSSL_X509_CRT_PARSE_C) ) |
ansond | 0:137634ff4186 | 131 | #error "POLARSSL_KEY_EXCHANGE_ECDH_RSA_ENABLED defined, but not all prerequisites" |
ansond | 0:137634ff4186 | 132 | #endif |
ansond | 0:137634ff4186 | 133 | |
ansond | 0:137634ff4186 | 134 | #if defined(POLARSSL_KEY_EXCHANGE_DHE_PSK_ENABLED) && !defined(POLARSSL_DHM_C) |
ansond | 0:137634ff4186 | 135 | #error "POLARSSL_KEY_EXCHANGE_DHE_PSK_ENABLED defined, but not all prerequisites" |
ansond | 0:137634ff4186 | 136 | #endif |
ansond | 0:137634ff4186 | 137 | |
ansond | 0:137634ff4186 | 138 | #if defined(POLARSSL_KEY_EXCHANGE_ECDHE_PSK_ENABLED) && \ |
ansond | 0:137634ff4186 | 139 | !defined(POLARSSL_ECDH_C) |
ansond | 0:137634ff4186 | 140 | #error "POLARSSL_KEY_EXCHANGE_ECDHE_PSK_ENABLED defined, but not all prerequisites" |
ansond | 0:137634ff4186 | 141 | #endif |
ansond | 0:137634ff4186 | 142 | |
ansond | 0:137634ff4186 | 143 | #if defined(POLARSSL_KEY_EXCHANGE_DHE_RSA_ENABLED) && \ |
ansond | 0:137634ff4186 | 144 | ( !defined(POLARSSL_DHM_C) || !defined(POLARSSL_RSA_C) || \ |
ansond | 0:137634ff4186 | 145 | !defined(POLARSSL_X509_CRT_PARSE_C) || !defined(POLARSSL_PKCS1_V15) ) |
ansond | 0:137634ff4186 | 146 | #error "POLARSSL_KEY_EXCHANGE_DHE_RSA_ENABLED defined, but not all prerequisites" |
ansond | 0:137634ff4186 | 147 | #endif |
ansond | 0:137634ff4186 | 148 | |
ansond | 0:137634ff4186 | 149 | #if defined(POLARSSL_KEY_EXCHANGE_ECDHE_RSA_ENABLED) && \ |
ansond | 0:137634ff4186 | 150 | ( !defined(POLARSSL_ECDH_C) || !defined(POLARSSL_RSA_C) || \ |
ansond | 0:137634ff4186 | 151 | !defined(POLARSSL_X509_CRT_PARSE_C) || !defined(POLARSSL_PKCS1_V15) ) |
ansond | 0:137634ff4186 | 152 | #error "POLARSSL_KEY_EXCHANGE_ECDHE_RSA_ENABLED defined, but not all prerequisites" |
ansond | 0:137634ff4186 | 153 | #endif |
ansond | 0:137634ff4186 | 154 | |
ansond | 0:137634ff4186 | 155 | #if defined(POLARSSL_KEY_EXCHANGE_ECDHE_ECDSA_ENABLED) && \ |
ansond | 0:137634ff4186 | 156 | ( !defined(POLARSSL_ECDH_C) || !defined(POLARSSL_ECDSA_C) || \ |
ansond | 0:137634ff4186 | 157 | !defined(POLARSSL_X509_CRT_PARSE_C) ) |
ansond | 0:137634ff4186 | 158 | #error "POLARSSL_KEY_EXCHANGE_ECDHE_ECDSA_ENABLED defined, but not all prerequisites" |
ansond | 0:137634ff4186 | 159 | #endif |
ansond | 0:137634ff4186 | 160 | |
ansond | 0:137634ff4186 | 161 | #if defined(POLARSSL_KEY_EXCHANGE_RSA_PSK_ENABLED) && \ |
ansond | 0:137634ff4186 | 162 | ( !defined(POLARSSL_RSA_C) || !defined(POLARSSL_X509_CRT_PARSE_C) || \ |
ansond | 0:137634ff4186 | 163 | !defined(POLARSSL_PKCS1_V15) ) |
ansond | 0:137634ff4186 | 164 | #error "POLARSSL_KEY_EXCHANGE_RSA_PSK_ENABLED defined, but not all prerequisites" |
ansond | 0:137634ff4186 | 165 | #endif |
ansond | 0:137634ff4186 | 166 | |
ansond | 0:137634ff4186 | 167 | #if defined(POLARSSL_KEY_EXCHANGE_RSA_ENABLED) && \ |
ansond | 0:137634ff4186 | 168 | ( !defined(POLARSSL_RSA_C) || !defined(POLARSSL_X509_CRT_PARSE_C) || \ |
ansond | 0:137634ff4186 | 169 | !defined(POLARSSL_PKCS1_V15) ) |
ansond | 0:137634ff4186 | 170 | #error "POLARSSL_KEY_EXCHANGE_RSA_ENABLED defined, but not all prerequisites" |
ansond | 0:137634ff4186 | 171 | #endif |
ansond | 0:137634ff4186 | 172 | |
ansond | 0:137634ff4186 | 173 | #if defined(POLARSSL_MEMORY_C) && !defined(POLARSSL_PLATFORM_C) |
ansond | 0:137634ff4186 | 174 | #error "POLARSSL_MEMORY_C defined, but not all prerequisites" |
ansond | 0:137634ff4186 | 175 | #endif |
ansond | 0:137634ff4186 | 176 | |
ansond | 0:137634ff4186 | 177 | #if defined(POLARSSL_MEMORY_BUFFER_ALLOC_C) && \ |
ansond | 0:137634ff4186 | 178 | ( !defined(POLARSSL_PLATFORM_C) || !defined(POLARSSL_PLATFORM_MEMORY) ) |
ansond | 0:137634ff4186 | 179 | #error "POLARSSL_MEMORY_BUFFER_ALLOC_C defined, but not all prerequisites" |
ansond | 0:137634ff4186 | 180 | #endif |
ansond | 0:137634ff4186 | 181 | |
ansond | 0:137634ff4186 | 182 | #if defined(POLARSSL_PADLOCK_C) && !defined(POLARSSL_HAVE_ASM) |
ansond | 0:137634ff4186 | 183 | #error "POLARSSL_PADLOCK_C defined, but not all prerequisites" |
ansond | 0:137634ff4186 | 184 | #endif |
ansond | 0:137634ff4186 | 185 | |
ansond | 0:137634ff4186 | 186 | #if defined(POLARSSL_PBKDF2_C) && !defined(POLARSSL_MD_C) |
ansond | 0:137634ff4186 | 187 | #error "POLARSSL_PBKDF2_C defined, but not all prerequisites" |
ansond | 0:137634ff4186 | 188 | #endif |
ansond | 0:137634ff4186 | 189 | |
ansond | 0:137634ff4186 | 190 | #if defined(POLARSSL_PEM_PARSE_C) && !defined(POLARSSL_BASE64_C) |
ansond | 0:137634ff4186 | 191 | #error "POLARSSL_PEM_PARSE_C defined, but not all prerequisites" |
ansond | 0:137634ff4186 | 192 | #endif |
ansond | 0:137634ff4186 | 193 | |
ansond | 0:137634ff4186 | 194 | #if defined(POLARSSL_PEM_WRITE_C) && !defined(POLARSSL_BASE64_C) |
ansond | 0:137634ff4186 | 195 | #error "POLARSSL_PEM_WRITE_C defined, but not all prerequisites" |
ansond | 0:137634ff4186 | 196 | #endif |
ansond | 0:137634ff4186 | 197 | |
ansond | 0:137634ff4186 | 198 | #if defined(POLARSSL_PK_C) && \ |
ansond | 0:137634ff4186 | 199 | ( !defined(POLARSSL_RSA_C) && !defined(POLARSSL_ECP_C) ) |
ansond | 0:137634ff4186 | 200 | #error "POLARSSL_PK_C defined, but not all prerequisites" |
ansond | 0:137634ff4186 | 201 | #endif |
ansond | 0:137634ff4186 | 202 | |
ansond | 0:137634ff4186 | 203 | #if defined(POLARSSL_PK_PARSE_C) && !defined(POLARSSL_PK_C) |
ansond | 0:137634ff4186 | 204 | #error "POLARSSL_PK_PARSE_C defined, but not all prerequisites" |
ansond | 0:137634ff4186 | 205 | #endif |
ansond | 0:137634ff4186 | 206 | |
ansond | 0:137634ff4186 | 207 | #if defined(POLARSSL_PK_WRITE_C) && !defined(POLARSSL_PK_C) |
ansond | 0:137634ff4186 | 208 | #error "POLARSSL_PK_WRITE_C defined, but not all prerequisites" |
ansond | 0:137634ff4186 | 209 | #endif |
ansond | 0:137634ff4186 | 210 | |
ansond | 0:137634ff4186 | 211 | #if defined(POLARSSL_PKCS11_C) && !defined(POLARSSL_PK_C) |
ansond | 0:137634ff4186 | 212 | #error "POLARSSL_PKCS11_C defined, but not all prerequisites" |
ansond | 0:137634ff4186 | 213 | #endif |
ansond | 0:137634ff4186 | 214 | |
ansond | 0:137634ff4186 | 215 | #if defined(POLARSSL_PLATFORM_EXIT_ALT) && !defined(POLARSSL_PLATFORM_C) |
ansond | 0:137634ff4186 | 216 | #error "POLARSSL_PLATFORM_EXIT_ALT defined, but not all prerequisites" |
ansond | 0:137634ff4186 | 217 | #endif |
ansond | 0:137634ff4186 | 218 | |
ansond | 0:137634ff4186 | 219 | #if defined(POLARSSL_PLATFORM_EXIT_MACRO) && !defined(POLARSSL_PLATFORM_C) |
ansond | 0:137634ff4186 | 220 | #error "POLARSSL_PLATFORM_EXIT_MACRO defined, but not all prerequisites" |
ansond | 0:137634ff4186 | 221 | #endif |
ansond | 0:137634ff4186 | 222 | |
ansond | 0:137634ff4186 | 223 | #if defined(POLARSSL_PLATFORM_EXIT_MACRO) &&\ |
ansond | 0:137634ff4186 | 224 | ( defined(POLARSSL_PLATFORM_STD_EXIT) ||\ |
ansond | 0:137634ff4186 | 225 | defined(POLARSSL_PLATFORM_EXIT_ALT) ) |
ansond | 0:137634ff4186 | 226 | #error "POLARSSL_PLATFORM_EXIT_MACRO and POLARSSL_PLATFORM_STD_EXIT/POLARSSL_PLATFORM_EXIT_ALT cannot be defined simultaneously" |
ansond | 0:137634ff4186 | 227 | #endif |
ansond | 0:137634ff4186 | 228 | |
ansond | 0:137634ff4186 | 229 | #if defined(POLARSSL_PLATFORM_FPRINTF_ALT) && !defined(POLARSSL_PLATFORM_C) |
ansond | 0:137634ff4186 | 230 | #error "POLARSSL_PLATFORM_FPRINTF_ALT defined, but not all prerequisites" |
ansond | 0:137634ff4186 | 231 | #endif |
ansond | 0:137634ff4186 | 232 | |
ansond | 0:137634ff4186 | 233 | #if defined(POLARSSL_PLATFORM_FPRINTF_MACRO) && !defined(POLARSSL_PLATFORM_C) |
ansond | 0:137634ff4186 | 234 | #error "POLARSSL_PLATFORM_FPRINTF_MACRO defined, but not all prerequisites" |
ansond | 0:137634ff4186 | 235 | #endif |
ansond | 0:137634ff4186 | 236 | |
ansond | 0:137634ff4186 | 237 | #if defined(POLARSSL_PLATFORM_FPRINTF_MACRO) &&\ |
ansond | 0:137634ff4186 | 238 | ( defined(POLARSSL_PLATFORM_STD_FPRINTF) ||\ |
ansond | 0:137634ff4186 | 239 | defined(POLARSSL_PLATFORM_FPRINTF_ALT) ) |
ansond | 0:137634ff4186 | 240 | #error "POLARSSL_PLATFORM_FPRINTF_MACRO and POLARSSL_PLATFORM_STD_FPRINTF/POLARSSL_PLATFORM_FPRINTF_ALT cannot be defined simultaneously" |
ansond | 0:137634ff4186 | 241 | #endif |
ansond | 0:137634ff4186 | 242 | |
ansond | 0:137634ff4186 | 243 | #if defined(POLARSSL_PLATFORM_FREE_MACRO) &&\ |
ansond | 0:137634ff4186 | 244 | ( !defined(POLARSSL_PLATFORM_C) || !defined(POLARSSL_PLATFORM_MEMORY) ) |
ansond | 0:137634ff4186 | 245 | #error "POLARSSL_PLATFORM_FREE_MACRO defined, but not all prerequisites" |
ansond | 0:137634ff4186 | 246 | #endif |
ansond | 0:137634ff4186 | 247 | |
ansond | 0:137634ff4186 | 248 | #if defined(POLARSSL_PLATFORM_FREE_MACRO) &&\ |
ansond | 0:137634ff4186 | 249 | defined(POLARSSL_PLATFORM_STD_FREE) |
ansond | 0:137634ff4186 | 250 | #error "POLARSSL_PLATFORM_FREE_MACRO and POLARSSL_PLATFORM_STD_FREE cannot be defined simultaneously" |
ansond | 0:137634ff4186 | 251 | #endif |
ansond | 0:137634ff4186 | 252 | |
ansond | 0:137634ff4186 | 253 | #if defined(POLARSSL_PLATFORM_FREE_MACRO) && !defined(POLARSSL_PLATFORM_MALLOC_MACRO) |
ansond | 0:137634ff4186 | 254 | #error "POLARSSL_PLATFORM_MALLOC_MACRO must be defined if POLARSSL_PLATFORM_FREE_MACRO is" |
ansond | 0:137634ff4186 | 255 | #endif |
ansond | 0:137634ff4186 | 256 | |
ansond | 0:137634ff4186 | 257 | #if defined(POLARSSL_PLATFORM_MALLOC_MACRO) &&\ |
ansond | 0:137634ff4186 | 258 | ( !defined(POLARSSL_PLATFORM_C) || !defined(POLARSSL_PLATFORM_MEMORY) ) |
ansond | 0:137634ff4186 | 259 | #error "POLARSSL_PLATFORM_MALLOC_MACRO defined, but not all prerequisites" |
ansond | 0:137634ff4186 | 260 | #endif |
ansond | 0:137634ff4186 | 261 | |
ansond | 0:137634ff4186 | 262 | #if defined(POLARSSL_PLATFORM_MALLOC_MACRO) &&\ |
ansond | 0:137634ff4186 | 263 | defined(POLARSSL_PLATFORM_STD_MALLOC) |
ansond | 0:137634ff4186 | 264 | #error "POLARSSL_PLATFORM_MALLOC_MACRO and POLARSSL_PLATFORM_STD_MALLOC cannot be defined simultaneously" |
ansond | 0:137634ff4186 | 265 | #endif |
ansond | 0:137634ff4186 | 266 | |
ansond | 0:137634ff4186 | 267 | #if defined(POLARSSL_PLATFORM_MALLOC_MACRO) && !defined(POLARSSL_PLATFORM_FREE_MACRO) |
ansond | 0:137634ff4186 | 268 | #error "POLARSSL_PLATFORM_FREE_MACRO must be defined if POLARSSL_PLATFORM_MALLOC_MACRO is" |
ansond | 0:137634ff4186 | 269 | #endif |
ansond | 0:137634ff4186 | 270 | |
ansond | 0:137634ff4186 | 271 | #if defined(POLARSSL_PLATFORM_MEMORY) && !defined(POLARSSL_PLATFORM_C) |
ansond | 0:137634ff4186 | 272 | #error "POLARSSL_PLATFORM_MEMORY defined, but not all prerequisites" |
ansond | 0:137634ff4186 | 273 | #endif |
ansond | 0:137634ff4186 | 274 | |
ansond | 0:137634ff4186 | 275 | #if defined(POLARSSL_PLATFORM_PRINTF_ALT) && !defined(POLARSSL_PLATFORM_C) |
ansond | 0:137634ff4186 | 276 | #error "POLARSSL_PLATFORM_PRINTF_ALT defined, but not all prerequisites" |
ansond | 0:137634ff4186 | 277 | #endif |
ansond | 0:137634ff4186 | 278 | |
ansond | 0:137634ff4186 | 279 | #if defined(POLARSSL_PLATFORM_PRINTF_MACRO) && !defined(POLARSSL_PLATFORM_C) |
ansond | 0:137634ff4186 | 280 | #error "POLARSSL_PLATFORM_PRINTF_MACRO defined, but not all prerequisites" |
ansond | 0:137634ff4186 | 281 | #endif |
ansond | 0:137634ff4186 | 282 | |
ansond | 0:137634ff4186 | 283 | #if defined(POLARSSL_PLATFORM_PRINTF_MACRO) &&\ |
ansond | 0:137634ff4186 | 284 | ( defined(POLARSSL_PLATFORM_STD_PRINTF) ||\ |
ansond | 0:137634ff4186 | 285 | defined(POLARSSL_PLATFORM_PRINTF_ALT) ) |
ansond | 0:137634ff4186 | 286 | #error "POLARSSL_PLATFORM_PRINTF_MACRO and POLARSSL_PLATFORM_STD_PRINTF/POLARSSL_PLATFORM_PRINTF_ALT cannot be defined simultaneously" |
ansond | 0:137634ff4186 | 287 | #endif |
ansond | 0:137634ff4186 | 288 | |
ansond | 0:137634ff4186 | 289 | #if defined(POLARSSL_PLATFORM_SNPRINTF_ALT) && !defined(POLARSSL_PLATFORM_C) |
ansond | 0:137634ff4186 | 290 | #error "POLARSSL_PLATFORM_SNPRINTF_ALT defined, but not all prerequisites" |
ansond | 0:137634ff4186 | 291 | #endif |
ansond | 0:137634ff4186 | 292 | |
ansond | 0:137634ff4186 | 293 | #if defined(POLARSSL_PLATFORM_SNPRINTF_ALT) && ( defined(_WIN32)\ |
ansond | 0:137634ff4186 | 294 | && !defined(EFIX64) && !defined(EFI32) ) |
ansond | 0:137634ff4186 | 295 | #error "POLARSSL_PLATFORM_SNPRINTF_ALT defined but not available on Windows" |
ansond | 0:137634ff4186 | 296 | #endif |
ansond | 0:137634ff4186 | 297 | |
ansond | 0:137634ff4186 | 298 | #if defined(POLARSSL_PLATFORM_SNPRINTF_MACRO) && !defined(POLARSSL_PLATFORM_C) |
ansond | 0:137634ff4186 | 299 | #error "POLARSSL_PLATFORM_SNPRINTF_MACRO defined, but not all prerequisites" |
ansond | 0:137634ff4186 | 300 | #endif |
ansond | 0:137634ff4186 | 301 | |
ansond | 0:137634ff4186 | 302 | #if defined(POLARSSL_PLATFORM_SNPRINTF_MACRO) &&\ |
ansond | 0:137634ff4186 | 303 | ( defined(POLARSSL_PLATFORM_STD_SNPRINTF) ||\ |
ansond | 0:137634ff4186 | 304 | defined(POLARSSL_PLATFORM_SNPRINTF_ALT) ) |
ansond | 0:137634ff4186 | 305 | #error "POLARSSL_PLATFORM_SNPRINTF_MACRO and POLARSSL_PLATFORM_STD_SNPRINTF/POLARSSL_PLATFORM_SNPRINTF_ALT cannot be defined simultaneously" |
ansond | 0:137634ff4186 | 306 | #endif |
ansond | 0:137634ff4186 | 307 | |
ansond | 0:137634ff4186 | 308 | #if defined(POLARSSL_PLATFORM_STD_MEM_HDR) &&\ |
ansond | 0:137634ff4186 | 309 | !defined(POLARSSL_PLATFORM_NO_STD_FUNCTIONS) |
ansond | 0:137634ff4186 | 310 | #error "POLARSSL_PLATFORM_STD_MEM_HDR defined, but not all prerequisites" |
ansond | 0:137634ff4186 | 311 | #endif |
ansond | 0:137634ff4186 | 312 | |
ansond | 0:137634ff4186 | 313 | #if defined(POLARSSL_PLATFORM_STD_MALLOC) && !defined(POLARSSL_PLATFORM_MEMORY) |
ansond | 0:137634ff4186 | 314 | #error "POLARSSL_PLATFORM_STD_MALLOC defined, but not all prerequisites" |
ansond | 0:137634ff4186 | 315 | #endif |
ansond | 0:137634ff4186 | 316 | |
ansond | 0:137634ff4186 | 317 | #if defined(POLARSSL_PLATFORM_STD_MALLOC) && !defined(POLARSSL_PLATFORM_MEMORY) |
ansond | 0:137634ff4186 | 318 | #error "POLARSSL_PLATFORM_STD_MALLOC defined, but not all prerequisites" |
ansond | 0:137634ff4186 | 319 | #endif |
ansond | 0:137634ff4186 | 320 | |
ansond | 0:137634ff4186 | 321 | #if defined(POLARSSL_PLATFORM_STD_FREE) && !defined(POLARSSL_PLATFORM_MEMORY) |
ansond | 0:137634ff4186 | 322 | #error "POLARSSL_PLATFORM_STD_FREE defined, but not all prerequisites" |
ansond | 0:137634ff4186 | 323 | #endif |
ansond | 0:137634ff4186 | 324 | |
ansond | 0:137634ff4186 | 325 | #if defined(POLARSSL_PLATFORM_STD_EXIT) &&\ |
ansond | 0:137634ff4186 | 326 | !defined(POLARSSL_PLATFORM_EXIT_ALT) |
ansond | 0:137634ff4186 | 327 | #error "POLARSSL_PLATFORM_STD_EXIT defined, but not all prerequisites" |
ansond | 0:137634ff4186 | 328 | #endif |
ansond | 0:137634ff4186 | 329 | |
ansond | 0:137634ff4186 | 330 | #if defined(POLARSSL_PLATFORM_STD_FPRINTF) &&\ |
ansond | 0:137634ff4186 | 331 | !defined(POLARSSL_PLATFORM_FPRINTF_ALT) |
ansond | 0:137634ff4186 | 332 | #error "POLARSSL_PLATFORM_STD_FPRINTF defined, but not all prerequisites" |
ansond | 0:137634ff4186 | 333 | #endif |
ansond | 0:137634ff4186 | 334 | |
ansond | 0:137634ff4186 | 335 | #if defined(POLARSSL_PLATFORM_STD_PRINTF) &&\ |
ansond | 0:137634ff4186 | 336 | !defined(POLARSSL_PLATFORM_PRINTF_ALT) |
ansond | 0:137634ff4186 | 337 | #error "POLARSSL_PLATFORM_STD_PRINTF defined, but not all prerequisites" |
ansond | 0:137634ff4186 | 338 | #endif |
ansond | 0:137634ff4186 | 339 | |
ansond | 0:137634ff4186 | 340 | #if defined(POLARSSL_PLATFORM_STD_SNPRINTF) &&\ |
ansond | 0:137634ff4186 | 341 | !defined(POLARSSL_PLATFORM_SNPRINTF_ALT) |
ansond | 0:137634ff4186 | 342 | #error "POLARSSL_PLATFORM_STD_SNPRINTF defined, but not all prerequisites" |
ansond | 0:137634ff4186 | 343 | #endif |
ansond | 0:137634ff4186 | 344 | |
ansond | 0:137634ff4186 | 345 | #if defined(POLARSSL_RSA_C) && ( !defined(POLARSSL_BIGNUM_C) || \ |
ansond | 0:137634ff4186 | 346 | !defined(POLARSSL_OID_C) ) |
ansond | 0:137634ff4186 | 347 | #error "POLARSSL_RSA_C defined, but not all prerequisites" |
ansond | 0:137634ff4186 | 348 | #endif |
ansond | 0:137634ff4186 | 349 | |
ansond | 0:137634ff4186 | 350 | #if defined(POLARSSL_X509_RSASSA_PSS_SUPPORT) && \ |
ansond | 0:137634ff4186 | 351 | ( !defined(POLARSSL_RSA_C) || !defined(POLARSSL_PKCS1_V21) ) |
ansond | 0:137634ff4186 | 352 | #error "POLARSSL_X509_RSASSA_PSS_SUPPORT defined, but not all prerequisites" |
ansond | 0:137634ff4186 | 353 | #endif |
ansond | 0:137634ff4186 | 354 | |
ansond | 0:137634ff4186 | 355 | #if defined(POLARSSL_SSL_PROTO_SSL3) && ( !defined(POLARSSL_MD5_C) || \ |
ansond | 0:137634ff4186 | 356 | !defined(POLARSSL_SHA1_C) ) |
ansond | 0:137634ff4186 | 357 | #error "POLARSSL_SSL_PROTO_SSL3 defined, but not all prerequisites" |
ansond | 0:137634ff4186 | 358 | #endif |
ansond | 0:137634ff4186 | 359 | |
ansond | 0:137634ff4186 | 360 | #if defined(POLARSSL_SSL_PROTO_TLS1) && ( !defined(POLARSSL_MD5_C) || \ |
ansond | 0:137634ff4186 | 361 | !defined(POLARSSL_SHA1_C) ) |
ansond | 0:137634ff4186 | 362 | #error "POLARSSL_SSL_PROTO_TLS1 defined, but not all prerequisites" |
ansond | 0:137634ff4186 | 363 | #endif |
ansond | 0:137634ff4186 | 364 | |
ansond | 0:137634ff4186 | 365 | #if defined(POLARSSL_SSL_PROTO_TLS1_1) && ( !defined(POLARSSL_MD5_C) || \ |
ansond | 0:137634ff4186 | 366 | !defined(POLARSSL_SHA1_C) ) |
ansond | 0:137634ff4186 | 367 | #error "POLARSSL_SSL_PROTO_TLS1_1 defined, but not all prerequisites" |
ansond | 0:137634ff4186 | 368 | #endif |
ansond | 0:137634ff4186 | 369 | |
ansond | 0:137634ff4186 | 370 | #if defined(POLARSSL_SSL_PROTO_TLS1_2) && ( !defined(POLARSSL_SHA1_C) && \ |
ansond | 0:137634ff4186 | 371 | !defined(POLARSSL_SHA256_C) && !defined(POLARSSL_SHA512_C) ) |
ansond | 0:137634ff4186 | 372 | #error "POLARSSL_SSL_PROTO_TLS1_2 defined, but not all prerequisites" |
ansond | 0:137634ff4186 | 373 | #endif |
ansond | 0:137634ff4186 | 374 | |
ansond | 0:137634ff4186 | 375 | #if defined(POLARSSL_SSL_CLI_C) && !defined(POLARSSL_SSL_TLS_C) |
ansond | 0:137634ff4186 | 376 | #error "POLARSSL_SSL_CLI_C defined, but not all prerequisites" |
ansond | 0:137634ff4186 | 377 | #endif |
ansond | 0:137634ff4186 | 378 | |
ansond | 0:137634ff4186 | 379 | #if defined(POLARSSL_SSL_TLS_C) && ( !defined(POLARSSL_CIPHER_C) || \ |
ansond | 0:137634ff4186 | 380 | !defined(POLARSSL_MD_C) ) |
ansond | 0:137634ff4186 | 381 | #error "POLARSSL_SSL_TLS_C defined, but not all prerequisites" |
ansond | 0:137634ff4186 | 382 | #endif |
ansond | 0:137634ff4186 | 383 | |
ansond | 0:137634ff4186 | 384 | #if defined(POLARSSL_SSL_SRV_C) && !defined(POLARSSL_SSL_TLS_C) |
ansond | 0:137634ff4186 | 385 | #error "POLARSSL_SSL_SRV_C defined, but not all prerequisites" |
ansond | 0:137634ff4186 | 386 | #endif |
ansond | 0:137634ff4186 | 387 | |
ansond | 0:137634ff4186 | 388 | #if defined(POLARSSL_SSL_TLS_C) && (!defined(POLARSSL_SSL_PROTO_SSL3) && \ |
ansond | 0:137634ff4186 | 389 | !defined(POLARSSL_SSL_PROTO_TLS1) && !defined(POLARSSL_SSL_PROTO_TLS1_1) && \ |
ansond | 0:137634ff4186 | 390 | !defined(POLARSSL_SSL_PROTO_TLS1_2)) |
ansond | 0:137634ff4186 | 391 | #error "POLARSSL_SSL_TLS_C defined, but no protocols are active" |
ansond | 0:137634ff4186 | 392 | #endif |
ansond | 0:137634ff4186 | 393 | |
ansond | 0:137634ff4186 | 394 | #if defined(POLARSSL_SSL_TLS_C) && (defined(POLARSSL_SSL_PROTO_SSL3) && \ |
ansond | 0:137634ff4186 | 395 | defined(POLARSSL_SSL_PROTO_TLS1_1) && !defined(POLARSSL_SSL_PROTO_TLS1)) |
ansond | 0:137634ff4186 | 396 | #error "Illegal protocol selection" |
ansond | 0:137634ff4186 | 397 | #endif |
ansond | 0:137634ff4186 | 398 | |
ansond | 0:137634ff4186 | 399 | #if defined(POLARSSL_SSL_TLS_C) && (defined(POLARSSL_SSL_PROTO_TLS1) && \ |
ansond | 0:137634ff4186 | 400 | defined(POLARSSL_SSL_PROTO_TLS1_2) && !defined(POLARSSL_SSL_PROTO_TLS1_1)) |
ansond | 0:137634ff4186 | 401 | #error "Illegal protocol selection" |
ansond | 0:137634ff4186 | 402 | #endif |
ansond | 0:137634ff4186 | 403 | |
ansond | 0:137634ff4186 | 404 | #if defined(POLARSSL_SSL_TLS_C) && (defined(POLARSSL_SSL_PROTO_SSL3) && \ |
ansond | 0:137634ff4186 | 405 | defined(POLARSSL_SSL_PROTO_TLS1_2) && (!defined(POLARSSL_SSL_PROTO_TLS1) || \ |
ansond | 0:137634ff4186 | 406 | !defined(POLARSSL_SSL_PROTO_TLS1_1))) |
ansond | 0:137634ff4186 | 407 | #error "Illegal protocol selection" |
ansond | 0:137634ff4186 | 408 | #endif |
ansond | 0:137634ff4186 | 409 | |
ansond | 0:137634ff4186 | 410 | #if defined(POLARSSL_SSL_ENCRYPT_THEN_MAC) && \ |
ansond | 0:137634ff4186 | 411 | !defined(POLARSSL_SSL_PROTO_TLS1) && \ |
ansond | 0:137634ff4186 | 412 | !defined(POLARSSL_SSL_PROTO_TLS1_1) && \ |
ansond | 0:137634ff4186 | 413 | !defined(POLARSSL_SSL_PROTO_TLS1_2) |
ansond | 0:137634ff4186 | 414 | #error "POLARSSL_SSL_ENCRYPT_THEN_MAC defined, but not all prerequsites" |
ansond | 0:137634ff4186 | 415 | #endif |
ansond | 0:137634ff4186 | 416 | |
ansond | 0:137634ff4186 | 417 | #if defined(POLARSSL_SSL_EXTENDED_MASTER_SECRET) && \ |
ansond | 0:137634ff4186 | 418 | !defined(POLARSSL_SSL_PROTO_TLS1) && \ |
ansond | 0:137634ff4186 | 419 | !defined(POLARSSL_SSL_PROTO_TLS1_1) && \ |
ansond | 0:137634ff4186 | 420 | !defined(POLARSSL_SSL_PROTO_TLS1_2) |
ansond | 0:137634ff4186 | 421 | #error "POLARSSL_SSL_EXTENDED_MASTER_SECRET defined, but not all prerequsites" |
ansond | 0:137634ff4186 | 422 | #endif |
ansond | 0:137634ff4186 | 423 | |
ansond | 0:137634ff4186 | 424 | #if defined(POLARSSL_SSL_SESSION_TICKETS) && defined(POLARSSL_SSL_TLS_C) && \ |
ansond | 0:137634ff4186 | 425 | ( !defined(POLARSSL_AES_C) || !defined(POLARSSL_SHA256_C) || \ |
ansond | 0:137634ff4186 | 426 | !defined(POLARSSL_CIPHER_MODE_CBC) ) |
ansond | 0:137634ff4186 | 427 | #error "POLARSSL_SSL_SESSION_TICKETS_C defined, but not all prerequisites" |
ansond | 0:137634ff4186 | 428 | #endif |
ansond | 0:137634ff4186 | 429 | |
ansond | 0:137634ff4186 | 430 | #if defined(POLARSSL_SSL_CBC_RECORD_SPLITTING) && \ |
ansond | 0:137634ff4186 | 431 | !defined(POLARSSL_SSL_PROTO_SSL3) && !defined(POLARSSL_SSL_PROTO_TLS1) |
ansond | 0:137634ff4186 | 432 | #error "POLARSSL_SSL_CBC_RECORD_SPLITTING defined, but not all prerequisites" |
ansond | 0:137634ff4186 | 433 | #endif |
ansond | 0:137634ff4186 | 434 | |
ansond | 0:137634ff4186 | 435 | #if defined(POLARSSL_SSL_SERVER_NAME_INDICATION) && \ |
ansond | 0:137634ff4186 | 436 | !defined(POLARSSL_X509_CRT_PARSE_C) |
ansond | 0:137634ff4186 | 437 | #error "POLARSSL_SSL_SERVER_NAME_INDICATION defined, but not all prerequisites" |
ansond | 0:137634ff4186 | 438 | #endif |
ansond | 0:137634ff4186 | 439 | |
ansond | 0:137634ff4186 | 440 | #if defined(POLARSSL_THREADING_PTHREAD) |
ansond | 0:137634ff4186 | 441 | #if !defined(POLARSSL_THREADING_C) || defined(POLARSSL_THREADING_IMPL) |
ansond | 0:137634ff4186 | 442 | #error "POLARSSL_THREADING_PTHREAD defined, but not all prerequisites" |
ansond | 0:137634ff4186 | 443 | #endif |
ansond | 0:137634ff4186 | 444 | #define POLARSSL_THREADING_IMPL |
ansond | 0:137634ff4186 | 445 | #endif |
ansond | 0:137634ff4186 | 446 | |
ansond | 0:137634ff4186 | 447 | #if defined(POLARSSL_THREADING_ALT) |
ansond | 0:137634ff4186 | 448 | #if !defined(POLARSSL_THREADING_C) || defined(POLARSSL_THREADING_IMPL) |
ansond | 0:137634ff4186 | 449 | #error "POLARSSL_THREADING_ALT defined, but not all prerequisites" |
ansond | 0:137634ff4186 | 450 | #endif |
ansond | 0:137634ff4186 | 451 | #define POLARSSL_THREADING_IMPL |
ansond | 0:137634ff4186 | 452 | #endif |
ansond | 0:137634ff4186 | 453 | |
ansond | 0:137634ff4186 | 454 | #if defined(POLARSSL_THREADING_C) && !defined(POLARSSL_THREADING_IMPL) |
ansond | 0:137634ff4186 | 455 | #error "POLARSSL_THREADING_C defined, single threading implementation required" |
ansond | 0:137634ff4186 | 456 | #endif |
ansond | 0:137634ff4186 | 457 | #undef POLARSSL_THREADING_IMPL |
ansond | 0:137634ff4186 | 458 | |
ansond | 0:137634ff4186 | 459 | #if defined(POLARSSL_VERSION_FEATURES) && !defined(POLARSSL_VERSION_C) |
ansond | 0:137634ff4186 | 460 | #error "POLARSSL_VERSION_FEATURES defined, but not all prerequisites" |
ansond | 0:137634ff4186 | 461 | #endif |
ansond | 0:137634ff4186 | 462 | |
ansond | 0:137634ff4186 | 463 | #if defined(POLARSSL_X509_USE_C) && ( !defined(POLARSSL_BIGNUM_C) || \ |
ansond | 0:137634ff4186 | 464 | !defined(POLARSSL_OID_C) || !defined(POLARSSL_ASN1_PARSE_C) || \ |
ansond | 0:137634ff4186 | 465 | !defined(POLARSSL_PK_PARSE_C) ) |
ansond | 0:137634ff4186 | 466 | #error "POLARSSL_X509_USE_C defined, but not all prerequisites" |
ansond | 0:137634ff4186 | 467 | #endif |
ansond | 0:137634ff4186 | 468 | |
ansond | 0:137634ff4186 | 469 | #if defined(POLARSSL_X509_CREATE_C) && ( !defined(POLARSSL_BIGNUM_C) || \ |
ansond | 0:137634ff4186 | 470 | !defined(POLARSSL_OID_C) || !defined(POLARSSL_ASN1_WRITE_C) || \ |
ansond | 0:137634ff4186 | 471 | !defined(POLARSSL_PK_WRITE_C) ) |
ansond | 0:137634ff4186 | 472 | #error "POLARSSL_X509_CREATE_C defined, but not all prerequisites" |
ansond | 0:137634ff4186 | 473 | #endif |
ansond | 0:137634ff4186 | 474 | |
ansond | 0:137634ff4186 | 475 | #if defined(POLARSSL_X509_CRT_PARSE_C) && ( !defined(POLARSSL_X509_USE_C) ) |
ansond | 0:137634ff4186 | 476 | #error "POLARSSL_X509_CRT_PARSE_C defined, but not all prerequisites" |
ansond | 0:137634ff4186 | 477 | #endif |
ansond | 0:137634ff4186 | 478 | |
ansond | 0:137634ff4186 | 479 | #if defined(POLARSSL_X509_CRL_PARSE_C) && ( !defined(POLARSSL_X509_USE_C) ) |
ansond | 0:137634ff4186 | 480 | #error "POLARSSL_X509_CRL_PARSE_C defined, but not all prerequisites" |
ansond | 0:137634ff4186 | 481 | #endif |
ansond | 0:137634ff4186 | 482 | |
ansond | 0:137634ff4186 | 483 | #if defined(POLARSSL_X509_CSR_PARSE_C) && ( !defined(POLARSSL_X509_USE_C) ) |
ansond | 0:137634ff4186 | 484 | #error "POLARSSL_X509_CSR_PARSE_C defined, but not all prerequisites" |
ansond | 0:137634ff4186 | 485 | #endif |
ansond | 0:137634ff4186 | 486 | |
ansond | 0:137634ff4186 | 487 | #if defined(POLARSSL_X509_CRT_WRITE_C) && ( !defined(POLARSSL_X509_CREATE_C) ) |
ansond | 0:137634ff4186 | 488 | #error "POLARSSL_X509_CRT_WRITE_C defined, but not all prerequisites" |
ansond | 0:137634ff4186 | 489 | #endif |
ansond | 0:137634ff4186 | 490 | |
ansond | 0:137634ff4186 | 491 | #if defined(POLARSSL_X509_CSR_WRITE_C) && ( !defined(POLARSSL_X509_CREATE_C) ) |
ansond | 0:137634ff4186 | 492 | #error "POLARSSL_X509_CSR_WRITE_C defined, but not all prerequisites" |
ansond | 0:137634ff4186 | 493 | #endif |
ansond | 0:137634ff4186 | 494 | |
ansond | 0:137634ff4186 | 495 | #endif /* POLARSSL_CHECK_CONFIG_H */ |
ansond | 0:137634ff4186 | 496 |