mbed TLS upgraded to 2.6.0

Fork of mbedtls by Mark Radbourne

Committer:
markrad
Date:
Thu Jan 05 00:18:44 2017 +0000
Revision:
0:cdf462088d13
Child:
2:bbdeda018a3c
Initial commit

Who changed what in which revision?

UserRevisionLine numberNew contents of line
markrad 0:cdf462088d13 1 /*
markrad 0:cdf462088d13 2 * Version feature information
markrad 0:cdf462088d13 3 *
markrad 0:cdf462088d13 4 * Copyright (C) 2006-2015, ARM Limited, All Rights Reserved
markrad 0:cdf462088d13 5 * SPDX-License-Identifier: Apache-2.0
markrad 0:cdf462088d13 6 *
markrad 0:cdf462088d13 7 * Licensed under the Apache License, Version 2.0 (the "License"); you may
markrad 0:cdf462088d13 8 * not use this file except in compliance with the License.
markrad 0:cdf462088d13 9 * You may obtain a copy of the License at
markrad 0:cdf462088d13 10 *
markrad 0:cdf462088d13 11 * http://www.apache.org/licenses/LICENSE-2.0
markrad 0:cdf462088d13 12 *
markrad 0:cdf462088d13 13 * Unless required by applicable law or agreed to in writing, software
markrad 0:cdf462088d13 14 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
markrad 0:cdf462088d13 15 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
markrad 0:cdf462088d13 16 * See the License for the specific language governing permissions and
markrad 0:cdf462088d13 17 * limitations under the License.
markrad 0:cdf462088d13 18 *
markrad 0:cdf462088d13 19 * This file is part of mbed TLS (https://tls.mbed.org)
markrad 0:cdf462088d13 20 */
markrad 0:cdf462088d13 21
markrad 0:cdf462088d13 22 #if !defined(MBEDTLS_CONFIG_FILE)
markrad 0:cdf462088d13 23 #include "mbedtls/config.h"
markrad 0:cdf462088d13 24 #else
markrad 0:cdf462088d13 25 #include MBEDTLS_CONFIG_FILE
markrad 0:cdf462088d13 26 #endif
markrad 0:cdf462088d13 27
markrad 0:cdf462088d13 28 #if defined(MBEDTLS_VERSION_C)
markrad 0:cdf462088d13 29
markrad 0:cdf462088d13 30 #include "mbedtls/version.h"
markrad 0:cdf462088d13 31
markrad 0:cdf462088d13 32 #include <string.h>
markrad 0:cdf462088d13 33
markrad 0:cdf462088d13 34 static const char *features[] = {
markrad 0:cdf462088d13 35 #if defined(MBEDTLS_VERSION_FEATURES)
markrad 0:cdf462088d13 36 #if defined(MBEDTLS_HAVE_ASM)
markrad 0:cdf462088d13 37 "MBEDTLS_HAVE_ASM",
markrad 0:cdf462088d13 38 #endif /* MBEDTLS_HAVE_ASM */
markrad 0:cdf462088d13 39 #if defined(MBEDTLS_HAVE_SSE2)
markrad 0:cdf462088d13 40 "MBEDTLS_HAVE_SSE2",
markrad 0:cdf462088d13 41 #endif /* MBEDTLS_HAVE_SSE2 */
markrad 0:cdf462088d13 42 #if defined(MBEDTLS_HAVE_TIME)
markrad 0:cdf462088d13 43 "MBEDTLS_HAVE_TIME",
markrad 0:cdf462088d13 44 #endif /* MBEDTLS_HAVE_TIME */
markrad 0:cdf462088d13 45 #if defined(MBEDTLS_HAVE_TIME_DATE)
markrad 0:cdf462088d13 46 "MBEDTLS_HAVE_TIME_DATE",
markrad 0:cdf462088d13 47 #endif /* MBEDTLS_HAVE_TIME_DATE */
markrad 0:cdf462088d13 48 #if defined(MBEDTLS_PLATFORM_MEMORY)
markrad 0:cdf462088d13 49 "MBEDTLS_PLATFORM_MEMORY",
markrad 0:cdf462088d13 50 #endif /* MBEDTLS_PLATFORM_MEMORY */
markrad 0:cdf462088d13 51 #if defined(MBEDTLS_PLATFORM_NO_STD_FUNCTIONS)
markrad 0:cdf462088d13 52 "MBEDTLS_PLATFORM_NO_STD_FUNCTIONS",
markrad 0:cdf462088d13 53 #endif /* MBEDTLS_PLATFORM_NO_STD_FUNCTIONS */
markrad 0:cdf462088d13 54 #if defined(MBEDTLS_PLATFORM_EXIT_ALT)
markrad 0:cdf462088d13 55 "MBEDTLS_PLATFORM_EXIT_ALT",
markrad 0:cdf462088d13 56 #endif /* MBEDTLS_PLATFORM_EXIT_ALT */
markrad 0:cdf462088d13 57 #if defined(MBEDTLS_PLATFORM_TIME_ALT)
markrad 0:cdf462088d13 58 "MBEDTLS_PLATFORM_TIME_ALT",
markrad 0:cdf462088d13 59 #endif /* MBEDTLS_PLATFORM_TIME_ALT */
markrad 0:cdf462088d13 60 #if defined(MBEDTLS_PLATFORM_FPRINTF_ALT)
markrad 0:cdf462088d13 61 "MBEDTLS_PLATFORM_FPRINTF_ALT",
markrad 0:cdf462088d13 62 #endif /* MBEDTLS_PLATFORM_FPRINTF_ALT */
markrad 0:cdf462088d13 63 #if defined(MBEDTLS_PLATFORM_PRINTF_ALT)
markrad 0:cdf462088d13 64 "MBEDTLS_PLATFORM_PRINTF_ALT",
markrad 0:cdf462088d13 65 #endif /* MBEDTLS_PLATFORM_PRINTF_ALT */
markrad 0:cdf462088d13 66 #if defined(MBEDTLS_PLATFORM_SNPRINTF_ALT)
markrad 0:cdf462088d13 67 "MBEDTLS_PLATFORM_SNPRINTF_ALT",
markrad 0:cdf462088d13 68 #endif /* MBEDTLS_PLATFORM_SNPRINTF_ALT */
markrad 0:cdf462088d13 69 #if defined(MBEDTLS_PLATFORM_NV_SEED_ALT)
markrad 0:cdf462088d13 70 "MBEDTLS_PLATFORM_NV_SEED_ALT",
markrad 0:cdf462088d13 71 #endif /* MBEDTLS_PLATFORM_NV_SEED_ALT */
markrad 0:cdf462088d13 72 #if defined(MBEDTLS_DEPRECATED_WARNING)
markrad 0:cdf462088d13 73 "MBEDTLS_DEPRECATED_WARNING",
markrad 0:cdf462088d13 74 #endif /* MBEDTLS_DEPRECATED_WARNING */
markrad 0:cdf462088d13 75 #if defined(MBEDTLS_DEPRECATED_REMOVED)
markrad 0:cdf462088d13 76 "MBEDTLS_DEPRECATED_REMOVED",
markrad 0:cdf462088d13 77 #endif /* MBEDTLS_DEPRECATED_REMOVED */
markrad 0:cdf462088d13 78 #if defined(MBEDTLS_TIMING_ALT)
markrad 0:cdf462088d13 79 "MBEDTLS_TIMING_ALT",
markrad 0:cdf462088d13 80 #endif /* MBEDTLS_TIMING_ALT */
markrad 0:cdf462088d13 81 #if defined(MBEDTLS_AES_ALT)
markrad 0:cdf462088d13 82 "MBEDTLS_AES_ALT",
markrad 0:cdf462088d13 83 #endif /* MBEDTLS_AES_ALT */
markrad 0:cdf462088d13 84 #if defined(MBEDTLS_ARC4_ALT)
markrad 0:cdf462088d13 85 "MBEDTLS_ARC4_ALT",
markrad 0:cdf462088d13 86 #endif /* MBEDTLS_ARC4_ALT */
markrad 0:cdf462088d13 87 #if defined(MBEDTLS_BLOWFISH_ALT)
markrad 0:cdf462088d13 88 "MBEDTLS_BLOWFISH_ALT",
markrad 0:cdf462088d13 89 #endif /* MBEDTLS_BLOWFISH_ALT */
markrad 0:cdf462088d13 90 #if defined(MBEDTLS_CAMELLIA_ALT)
markrad 0:cdf462088d13 91 "MBEDTLS_CAMELLIA_ALT",
markrad 0:cdf462088d13 92 #endif /* MBEDTLS_CAMELLIA_ALT */
markrad 0:cdf462088d13 93 #if defined(MBEDTLS_DES_ALT)
markrad 0:cdf462088d13 94 "MBEDTLS_DES_ALT",
markrad 0:cdf462088d13 95 #endif /* MBEDTLS_DES_ALT */
markrad 0:cdf462088d13 96 #if defined(MBEDTLS_XTEA_ALT)
markrad 0:cdf462088d13 97 "MBEDTLS_XTEA_ALT",
markrad 0:cdf462088d13 98 #endif /* MBEDTLS_XTEA_ALT */
markrad 0:cdf462088d13 99 #if defined(MBEDTLS_MD2_ALT)
markrad 0:cdf462088d13 100 "MBEDTLS_MD2_ALT",
markrad 0:cdf462088d13 101 #endif /* MBEDTLS_MD2_ALT */
markrad 0:cdf462088d13 102 #if defined(MBEDTLS_MD4_ALT)
markrad 0:cdf462088d13 103 "MBEDTLS_MD4_ALT",
markrad 0:cdf462088d13 104 #endif /* MBEDTLS_MD4_ALT */
markrad 0:cdf462088d13 105 #if defined(MBEDTLS_MD5_ALT)
markrad 0:cdf462088d13 106 "MBEDTLS_MD5_ALT",
markrad 0:cdf462088d13 107 #endif /* MBEDTLS_MD5_ALT */
markrad 0:cdf462088d13 108 #if defined(MBEDTLS_RIPEMD160_ALT)
markrad 0:cdf462088d13 109 "MBEDTLS_RIPEMD160_ALT",
markrad 0:cdf462088d13 110 #endif /* MBEDTLS_RIPEMD160_ALT */
markrad 0:cdf462088d13 111 #if defined(MBEDTLS_SHA1_ALT)
markrad 0:cdf462088d13 112 "MBEDTLS_SHA1_ALT",
markrad 0:cdf462088d13 113 #endif /* MBEDTLS_SHA1_ALT */
markrad 0:cdf462088d13 114 #if defined(MBEDTLS_SHA256_ALT)
markrad 0:cdf462088d13 115 "MBEDTLS_SHA256_ALT",
markrad 0:cdf462088d13 116 #endif /* MBEDTLS_SHA256_ALT */
markrad 0:cdf462088d13 117 #if defined(MBEDTLS_SHA512_ALT)
markrad 0:cdf462088d13 118 "MBEDTLS_SHA512_ALT",
markrad 0:cdf462088d13 119 #endif /* MBEDTLS_SHA512_ALT */
markrad 0:cdf462088d13 120 #if defined(MBEDTLS_MD2_PROCESS_ALT)
markrad 0:cdf462088d13 121 "MBEDTLS_MD2_PROCESS_ALT",
markrad 0:cdf462088d13 122 #endif /* MBEDTLS_MD2_PROCESS_ALT */
markrad 0:cdf462088d13 123 #if defined(MBEDTLS_MD4_PROCESS_ALT)
markrad 0:cdf462088d13 124 "MBEDTLS_MD4_PROCESS_ALT",
markrad 0:cdf462088d13 125 #endif /* MBEDTLS_MD4_PROCESS_ALT */
markrad 0:cdf462088d13 126 #if defined(MBEDTLS_MD5_PROCESS_ALT)
markrad 0:cdf462088d13 127 "MBEDTLS_MD5_PROCESS_ALT",
markrad 0:cdf462088d13 128 #endif /* MBEDTLS_MD5_PROCESS_ALT */
markrad 0:cdf462088d13 129 #if defined(MBEDTLS_RIPEMD160_PROCESS_ALT)
markrad 0:cdf462088d13 130 "MBEDTLS_RIPEMD160_PROCESS_ALT",
markrad 0:cdf462088d13 131 #endif /* MBEDTLS_RIPEMD160_PROCESS_ALT */
markrad 0:cdf462088d13 132 #if defined(MBEDTLS_SHA1_PROCESS_ALT)
markrad 0:cdf462088d13 133 "MBEDTLS_SHA1_PROCESS_ALT",
markrad 0:cdf462088d13 134 #endif /* MBEDTLS_SHA1_PROCESS_ALT */
markrad 0:cdf462088d13 135 #if defined(MBEDTLS_SHA256_PROCESS_ALT)
markrad 0:cdf462088d13 136 "MBEDTLS_SHA256_PROCESS_ALT",
markrad 0:cdf462088d13 137 #endif /* MBEDTLS_SHA256_PROCESS_ALT */
markrad 0:cdf462088d13 138 #if defined(MBEDTLS_SHA512_PROCESS_ALT)
markrad 0:cdf462088d13 139 "MBEDTLS_SHA512_PROCESS_ALT",
markrad 0:cdf462088d13 140 #endif /* MBEDTLS_SHA512_PROCESS_ALT */
markrad 0:cdf462088d13 141 #if defined(MBEDTLS_DES_SETKEY_ALT)
markrad 0:cdf462088d13 142 "MBEDTLS_DES_SETKEY_ALT",
markrad 0:cdf462088d13 143 #endif /* MBEDTLS_DES_SETKEY_ALT */
markrad 0:cdf462088d13 144 #if defined(MBEDTLS_DES_CRYPT_ECB_ALT)
markrad 0:cdf462088d13 145 "MBEDTLS_DES_CRYPT_ECB_ALT",
markrad 0:cdf462088d13 146 #endif /* MBEDTLS_DES_CRYPT_ECB_ALT */
markrad 0:cdf462088d13 147 #if defined(MBEDTLS_DES3_CRYPT_ECB_ALT)
markrad 0:cdf462088d13 148 "MBEDTLS_DES3_CRYPT_ECB_ALT",
markrad 0:cdf462088d13 149 #endif /* MBEDTLS_DES3_CRYPT_ECB_ALT */
markrad 0:cdf462088d13 150 #if defined(MBEDTLS_AES_SETKEY_ENC_ALT)
markrad 0:cdf462088d13 151 "MBEDTLS_AES_SETKEY_ENC_ALT",
markrad 0:cdf462088d13 152 #endif /* MBEDTLS_AES_SETKEY_ENC_ALT */
markrad 0:cdf462088d13 153 #if defined(MBEDTLS_AES_SETKEY_DEC_ALT)
markrad 0:cdf462088d13 154 "MBEDTLS_AES_SETKEY_DEC_ALT",
markrad 0:cdf462088d13 155 #endif /* MBEDTLS_AES_SETKEY_DEC_ALT */
markrad 0:cdf462088d13 156 #if defined(MBEDTLS_AES_ENCRYPT_ALT)
markrad 0:cdf462088d13 157 "MBEDTLS_AES_ENCRYPT_ALT",
markrad 0:cdf462088d13 158 #endif /* MBEDTLS_AES_ENCRYPT_ALT */
markrad 0:cdf462088d13 159 #if defined(MBEDTLS_AES_DECRYPT_ALT)
markrad 0:cdf462088d13 160 "MBEDTLS_AES_DECRYPT_ALT",
markrad 0:cdf462088d13 161 #endif /* MBEDTLS_AES_DECRYPT_ALT */
markrad 0:cdf462088d13 162 #if defined(MBEDTLS_TEST_NULL_ENTROPY)
markrad 0:cdf462088d13 163 "MBEDTLS_TEST_NULL_ENTROPY",
markrad 0:cdf462088d13 164 #endif /* MBEDTLS_TEST_NULL_ENTROPY */
markrad 0:cdf462088d13 165 #if defined(MBEDTLS_ENTROPY_HARDWARE_ALT)
markrad 0:cdf462088d13 166 "MBEDTLS_ENTROPY_HARDWARE_ALT",
markrad 0:cdf462088d13 167 #endif /* MBEDTLS_ENTROPY_HARDWARE_ALT */
markrad 0:cdf462088d13 168 #if defined(MBEDTLS_AES_ROM_TABLES)
markrad 0:cdf462088d13 169 "MBEDTLS_AES_ROM_TABLES",
markrad 0:cdf462088d13 170 #endif /* MBEDTLS_AES_ROM_TABLES */
markrad 0:cdf462088d13 171 #if defined(MBEDTLS_CAMELLIA_SMALL_MEMORY)
markrad 0:cdf462088d13 172 "MBEDTLS_CAMELLIA_SMALL_MEMORY",
markrad 0:cdf462088d13 173 #endif /* MBEDTLS_CAMELLIA_SMALL_MEMORY */
markrad 0:cdf462088d13 174 #if defined(MBEDTLS_CIPHER_MODE_CBC)
markrad 0:cdf462088d13 175 "MBEDTLS_CIPHER_MODE_CBC",
markrad 0:cdf462088d13 176 #endif /* MBEDTLS_CIPHER_MODE_CBC */
markrad 0:cdf462088d13 177 #if defined(MBEDTLS_CIPHER_MODE_CFB)
markrad 0:cdf462088d13 178 "MBEDTLS_CIPHER_MODE_CFB",
markrad 0:cdf462088d13 179 #endif /* MBEDTLS_CIPHER_MODE_CFB */
markrad 0:cdf462088d13 180 #if defined(MBEDTLS_CIPHER_MODE_CTR)
markrad 0:cdf462088d13 181 "MBEDTLS_CIPHER_MODE_CTR",
markrad 0:cdf462088d13 182 #endif /* MBEDTLS_CIPHER_MODE_CTR */
markrad 0:cdf462088d13 183 #if defined(MBEDTLS_CIPHER_NULL_CIPHER)
markrad 0:cdf462088d13 184 "MBEDTLS_CIPHER_NULL_CIPHER",
markrad 0:cdf462088d13 185 #endif /* MBEDTLS_CIPHER_NULL_CIPHER */
markrad 0:cdf462088d13 186 #if defined(MBEDTLS_CIPHER_PADDING_PKCS7)
markrad 0:cdf462088d13 187 "MBEDTLS_CIPHER_PADDING_PKCS7",
markrad 0:cdf462088d13 188 #endif /* MBEDTLS_CIPHER_PADDING_PKCS7 */
markrad 0:cdf462088d13 189 #if defined(MBEDTLS_CIPHER_PADDING_ONE_AND_ZEROS)
markrad 0:cdf462088d13 190 "MBEDTLS_CIPHER_PADDING_ONE_AND_ZEROS",
markrad 0:cdf462088d13 191 #endif /* MBEDTLS_CIPHER_PADDING_ONE_AND_ZEROS */
markrad 0:cdf462088d13 192 #if defined(MBEDTLS_CIPHER_PADDING_ZEROS_AND_LEN)
markrad 0:cdf462088d13 193 "MBEDTLS_CIPHER_PADDING_ZEROS_AND_LEN",
markrad 0:cdf462088d13 194 #endif /* MBEDTLS_CIPHER_PADDING_ZEROS_AND_LEN */
markrad 0:cdf462088d13 195 #if defined(MBEDTLS_CIPHER_PADDING_ZEROS)
markrad 0:cdf462088d13 196 "MBEDTLS_CIPHER_PADDING_ZEROS",
markrad 0:cdf462088d13 197 #endif /* MBEDTLS_CIPHER_PADDING_ZEROS */
markrad 0:cdf462088d13 198 #if defined(MBEDTLS_ENABLE_WEAK_CIPHERSUITES)
markrad 0:cdf462088d13 199 "MBEDTLS_ENABLE_WEAK_CIPHERSUITES",
markrad 0:cdf462088d13 200 #endif /* MBEDTLS_ENABLE_WEAK_CIPHERSUITES */
markrad 0:cdf462088d13 201 #if defined(MBEDTLS_REMOVE_ARC4_CIPHERSUITES)
markrad 0:cdf462088d13 202 "MBEDTLS_REMOVE_ARC4_CIPHERSUITES",
markrad 0:cdf462088d13 203 #endif /* MBEDTLS_REMOVE_ARC4_CIPHERSUITES */
markrad 0:cdf462088d13 204 #if defined(MBEDTLS_ECP_DP_SECP192R1_ENABLED)
markrad 0:cdf462088d13 205 "MBEDTLS_ECP_DP_SECP192R1_ENABLED",
markrad 0:cdf462088d13 206 #endif /* MBEDTLS_ECP_DP_SECP192R1_ENABLED */
markrad 0:cdf462088d13 207 #if defined(MBEDTLS_ECP_DP_SECP224R1_ENABLED)
markrad 0:cdf462088d13 208 "MBEDTLS_ECP_DP_SECP224R1_ENABLED",
markrad 0:cdf462088d13 209 #endif /* MBEDTLS_ECP_DP_SECP224R1_ENABLED */
markrad 0:cdf462088d13 210 #if defined(MBEDTLS_ECP_DP_SECP256R1_ENABLED)
markrad 0:cdf462088d13 211 "MBEDTLS_ECP_DP_SECP256R1_ENABLED",
markrad 0:cdf462088d13 212 #endif /* MBEDTLS_ECP_DP_SECP256R1_ENABLED */
markrad 0:cdf462088d13 213 #if defined(MBEDTLS_ECP_DP_SECP384R1_ENABLED)
markrad 0:cdf462088d13 214 "MBEDTLS_ECP_DP_SECP384R1_ENABLED",
markrad 0:cdf462088d13 215 #endif /* MBEDTLS_ECP_DP_SECP384R1_ENABLED */
markrad 0:cdf462088d13 216 #if defined(MBEDTLS_ECP_DP_SECP521R1_ENABLED)
markrad 0:cdf462088d13 217 "MBEDTLS_ECP_DP_SECP521R1_ENABLED",
markrad 0:cdf462088d13 218 #endif /* MBEDTLS_ECP_DP_SECP521R1_ENABLED */
markrad 0:cdf462088d13 219 #if defined(MBEDTLS_ECP_DP_SECP192K1_ENABLED)
markrad 0:cdf462088d13 220 "MBEDTLS_ECP_DP_SECP192K1_ENABLED",
markrad 0:cdf462088d13 221 #endif /* MBEDTLS_ECP_DP_SECP192K1_ENABLED */
markrad 0:cdf462088d13 222 #if defined(MBEDTLS_ECP_DP_SECP224K1_ENABLED)
markrad 0:cdf462088d13 223 "MBEDTLS_ECP_DP_SECP224K1_ENABLED",
markrad 0:cdf462088d13 224 #endif /* MBEDTLS_ECP_DP_SECP224K1_ENABLED */
markrad 0:cdf462088d13 225 #if defined(MBEDTLS_ECP_DP_SECP256K1_ENABLED)
markrad 0:cdf462088d13 226 "MBEDTLS_ECP_DP_SECP256K1_ENABLED",
markrad 0:cdf462088d13 227 #endif /* MBEDTLS_ECP_DP_SECP256K1_ENABLED */
markrad 0:cdf462088d13 228 #if defined(MBEDTLS_ECP_DP_BP256R1_ENABLED)
markrad 0:cdf462088d13 229 "MBEDTLS_ECP_DP_BP256R1_ENABLED",
markrad 0:cdf462088d13 230 #endif /* MBEDTLS_ECP_DP_BP256R1_ENABLED */
markrad 0:cdf462088d13 231 #if defined(MBEDTLS_ECP_DP_BP384R1_ENABLED)
markrad 0:cdf462088d13 232 "MBEDTLS_ECP_DP_BP384R1_ENABLED",
markrad 0:cdf462088d13 233 #endif /* MBEDTLS_ECP_DP_BP384R1_ENABLED */
markrad 0:cdf462088d13 234 #if defined(MBEDTLS_ECP_DP_BP512R1_ENABLED)
markrad 0:cdf462088d13 235 "MBEDTLS_ECP_DP_BP512R1_ENABLED",
markrad 0:cdf462088d13 236 #endif /* MBEDTLS_ECP_DP_BP512R1_ENABLED */
markrad 0:cdf462088d13 237 #if defined(MBEDTLS_ECP_DP_CURVE25519_ENABLED)
markrad 0:cdf462088d13 238 "MBEDTLS_ECP_DP_CURVE25519_ENABLED",
markrad 0:cdf462088d13 239 #endif /* MBEDTLS_ECP_DP_CURVE25519_ENABLED */
markrad 0:cdf462088d13 240 #if defined(MBEDTLS_ECP_NIST_OPTIM)
markrad 0:cdf462088d13 241 "MBEDTLS_ECP_NIST_OPTIM",
markrad 0:cdf462088d13 242 #endif /* MBEDTLS_ECP_NIST_OPTIM */
markrad 0:cdf462088d13 243 #if defined(MBEDTLS_ECDSA_DETERMINISTIC)
markrad 0:cdf462088d13 244 "MBEDTLS_ECDSA_DETERMINISTIC",
markrad 0:cdf462088d13 245 #endif /* MBEDTLS_ECDSA_DETERMINISTIC */
markrad 0:cdf462088d13 246 #if defined(MBEDTLS_KEY_EXCHANGE_PSK_ENABLED)
markrad 0:cdf462088d13 247 "MBEDTLS_KEY_EXCHANGE_PSK_ENABLED",
markrad 0:cdf462088d13 248 #endif /* MBEDTLS_KEY_EXCHANGE_PSK_ENABLED */
markrad 0:cdf462088d13 249 #if defined(MBEDTLS_KEY_EXCHANGE_DHE_PSK_ENABLED)
markrad 0:cdf462088d13 250 "MBEDTLS_KEY_EXCHANGE_DHE_PSK_ENABLED",
markrad 0:cdf462088d13 251 #endif /* MBEDTLS_KEY_EXCHANGE_DHE_PSK_ENABLED */
markrad 0:cdf462088d13 252 #if defined(MBEDTLS_KEY_EXCHANGE_ECDHE_PSK_ENABLED)
markrad 0:cdf462088d13 253 "MBEDTLS_KEY_EXCHANGE_ECDHE_PSK_ENABLED",
markrad 0:cdf462088d13 254 #endif /* MBEDTLS_KEY_EXCHANGE_ECDHE_PSK_ENABLED */
markrad 0:cdf462088d13 255 #if defined(MBEDTLS_KEY_EXCHANGE_RSA_PSK_ENABLED)
markrad 0:cdf462088d13 256 "MBEDTLS_KEY_EXCHANGE_RSA_PSK_ENABLED",
markrad 0:cdf462088d13 257 #endif /* MBEDTLS_KEY_EXCHANGE_RSA_PSK_ENABLED */
markrad 0:cdf462088d13 258 #if defined(MBEDTLS_KEY_EXCHANGE_RSA_ENABLED)
markrad 0:cdf462088d13 259 "MBEDTLS_KEY_EXCHANGE_RSA_ENABLED",
markrad 0:cdf462088d13 260 #endif /* MBEDTLS_KEY_EXCHANGE_RSA_ENABLED */
markrad 0:cdf462088d13 261 #if defined(MBEDTLS_KEY_EXCHANGE_DHE_RSA_ENABLED)
markrad 0:cdf462088d13 262 "MBEDTLS_KEY_EXCHANGE_DHE_RSA_ENABLED",
markrad 0:cdf462088d13 263 #endif /* MBEDTLS_KEY_EXCHANGE_DHE_RSA_ENABLED */
markrad 0:cdf462088d13 264 #if defined(MBEDTLS_KEY_EXCHANGE_ECDHE_RSA_ENABLED)
markrad 0:cdf462088d13 265 "MBEDTLS_KEY_EXCHANGE_ECDHE_RSA_ENABLED",
markrad 0:cdf462088d13 266 #endif /* MBEDTLS_KEY_EXCHANGE_ECDHE_RSA_ENABLED */
markrad 0:cdf462088d13 267 #if defined(MBEDTLS_KEY_EXCHANGE_ECDHE_ECDSA_ENABLED)
markrad 0:cdf462088d13 268 "MBEDTLS_KEY_EXCHANGE_ECDHE_ECDSA_ENABLED",
markrad 0:cdf462088d13 269 #endif /* MBEDTLS_KEY_EXCHANGE_ECDHE_ECDSA_ENABLED */
markrad 0:cdf462088d13 270 #if defined(MBEDTLS_KEY_EXCHANGE_ECDH_ECDSA_ENABLED)
markrad 0:cdf462088d13 271 "MBEDTLS_KEY_EXCHANGE_ECDH_ECDSA_ENABLED",
markrad 0:cdf462088d13 272 #endif /* MBEDTLS_KEY_EXCHANGE_ECDH_ECDSA_ENABLED */
markrad 0:cdf462088d13 273 #if defined(MBEDTLS_KEY_EXCHANGE_ECDH_RSA_ENABLED)
markrad 0:cdf462088d13 274 "MBEDTLS_KEY_EXCHANGE_ECDH_RSA_ENABLED",
markrad 0:cdf462088d13 275 #endif /* MBEDTLS_KEY_EXCHANGE_ECDH_RSA_ENABLED */
markrad 0:cdf462088d13 276 #if defined(MBEDTLS_KEY_EXCHANGE_ECJPAKE_ENABLED)
markrad 0:cdf462088d13 277 "MBEDTLS_KEY_EXCHANGE_ECJPAKE_ENABLED",
markrad 0:cdf462088d13 278 #endif /* MBEDTLS_KEY_EXCHANGE_ECJPAKE_ENABLED */
markrad 0:cdf462088d13 279 #if defined(MBEDTLS_PK_PARSE_EC_EXTENDED)
markrad 0:cdf462088d13 280 "MBEDTLS_PK_PARSE_EC_EXTENDED",
markrad 0:cdf462088d13 281 #endif /* MBEDTLS_PK_PARSE_EC_EXTENDED */
markrad 0:cdf462088d13 282 #if defined(MBEDTLS_ERROR_STRERROR_DUMMY)
markrad 0:cdf462088d13 283 "MBEDTLS_ERROR_STRERROR_DUMMY",
markrad 0:cdf462088d13 284 #endif /* MBEDTLS_ERROR_STRERROR_DUMMY */
markrad 0:cdf462088d13 285 #if defined(MBEDTLS_GENPRIME)
markrad 0:cdf462088d13 286 "MBEDTLS_GENPRIME",
markrad 0:cdf462088d13 287 #endif /* MBEDTLS_GENPRIME */
markrad 0:cdf462088d13 288 #if defined(MBEDTLS_FS_IO)
markrad 0:cdf462088d13 289 "MBEDTLS_FS_IO",
markrad 0:cdf462088d13 290 #endif /* MBEDTLS_FS_IO */
markrad 0:cdf462088d13 291 #if defined(MBEDTLS_NO_DEFAULT_ENTROPY_SOURCES)
markrad 0:cdf462088d13 292 "MBEDTLS_NO_DEFAULT_ENTROPY_SOURCES",
markrad 0:cdf462088d13 293 #endif /* MBEDTLS_NO_DEFAULT_ENTROPY_SOURCES */
markrad 0:cdf462088d13 294 #if defined(MBEDTLS_NO_PLATFORM_ENTROPY)
markrad 0:cdf462088d13 295 "MBEDTLS_NO_PLATFORM_ENTROPY",
markrad 0:cdf462088d13 296 #endif /* MBEDTLS_NO_PLATFORM_ENTROPY */
markrad 0:cdf462088d13 297 #if defined(MBEDTLS_ENTROPY_FORCE_SHA256)
markrad 0:cdf462088d13 298 "MBEDTLS_ENTROPY_FORCE_SHA256",
markrad 0:cdf462088d13 299 #endif /* MBEDTLS_ENTROPY_FORCE_SHA256 */
markrad 0:cdf462088d13 300 #if defined(MBEDTLS_ENTROPY_NV_SEED)
markrad 0:cdf462088d13 301 "MBEDTLS_ENTROPY_NV_SEED",
markrad 0:cdf462088d13 302 #endif /* MBEDTLS_ENTROPY_NV_SEED */
markrad 0:cdf462088d13 303 #if defined(MBEDTLS_MEMORY_DEBUG)
markrad 0:cdf462088d13 304 "MBEDTLS_MEMORY_DEBUG",
markrad 0:cdf462088d13 305 #endif /* MBEDTLS_MEMORY_DEBUG */
markrad 0:cdf462088d13 306 #if defined(MBEDTLS_MEMORY_BACKTRACE)
markrad 0:cdf462088d13 307 "MBEDTLS_MEMORY_BACKTRACE",
markrad 0:cdf462088d13 308 #endif /* MBEDTLS_MEMORY_BACKTRACE */
markrad 0:cdf462088d13 309 #if defined(MBEDTLS_PK_RSA_ALT_SUPPORT)
markrad 0:cdf462088d13 310 "MBEDTLS_PK_RSA_ALT_SUPPORT",
markrad 0:cdf462088d13 311 #endif /* MBEDTLS_PK_RSA_ALT_SUPPORT */
markrad 0:cdf462088d13 312 #if defined(MBEDTLS_PKCS1_V15)
markrad 0:cdf462088d13 313 "MBEDTLS_PKCS1_V15",
markrad 0:cdf462088d13 314 #endif /* MBEDTLS_PKCS1_V15 */
markrad 0:cdf462088d13 315 #if defined(MBEDTLS_PKCS1_V21)
markrad 0:cdf462088d13 316 "MBEDTLS_PKCS1_V21",
markrad 0:cdf462088d13 317 #endif /* MBEDTLS_PKCS1_V21 */
markrad 0:cdf462088d13 318 #if defined(MBEDTLS_RSA_NO_CRT)
markrad 0:cdf462088d13 319 "MBEDTLS_RSA_NO_CRT",
markrad 0:cdf462088d13 320 #endif /* MBEDTLS_RSA_NO_CRT */
markrad 0:cdf462088d13 321 #if defined(MBEDTLS_SELF_TEST)
markrad 0:cdf462088d13 322 "MBEDTLS_SELF_TEST",
markrad 0:cdf462088d13 323 #endif /* MBEDTLS_SELF_TEST */
markrad 0:cdf462088d13 324 #if defined(MBEDTLS_SHA256_SMALLER)
markrad 0:cdf462088d13 325 "MBEDTLS_SHA256_SMALLER",
markrad 0:cdf462088d13 326 #endif /* MBEDTLS_SHA256_SMALLER */
markrad 0:cdf462088d13 327 #if defined(MBEDTLS_SSL_ALL_ALERT_MESSAGES)
markrad 0:cdf462088d13 328 "MBEDTLS_SSL_ALL_ALERT_MESSAGES",
markrad 0:cdf462088d13 329 #endif /* MBEDTLS_SSL_ALL_ALERT_MESSAGES */
markrad 0:cdf462088d13 330 #if defined(MBEDTLS_SSL_DEBUG_ALL)
markrad 0:cdf462088d13 331 "MBEDTLS_SSL_DEBUG_ALL",
markrad 0:cdf462088d13 332 #endif /* MBEDTLS_SSL_DEBUG_ALL */
markrad 0:cdf462088d13 333 #if defined(MBEDTLS_SSL_ENCRYPT_THEN_MAC)
markrad 0:cdf462088d13 334 "MBEDTLS_SSL_ENCRYPT_THEN_MAC",
markrad 0:cdf462088d13 335 #endif /* MBEDTLS_SSL_ENCRYPT_THEN_MAC */
markrad 0:cdf462088d13 336 #if defined(MBEDTLS_SSL_EXTENDED_MASTER_SECRET)
markrad 0:cdf462088d13 337 "MBEDTLS_SSL_EXTENDED_MASTER_SECRET",
markrad 0:cdf462088d13 338 #endif /* MBEDTLS_SSL_EXTENDED_MASTER_SECRET */
markrad 0:cdf462088d13 339 #if defined(MBEDTLS_SSL_FALLBACK_SCSV)
markrad 0:cdf462088d13 340 "MBEDTLS_SSL_FALLBACK_SCSV",
markrad 0:cdf462088d13 341 #endif /* MBEDTLS_SSL_FALLBACK_SCSV */
markrad 0:cdf462088d13 342 #if defined(MBEDTLS_SSL_HW_RECORD_ACCEL)
markrad 0:cdf462088d13 343 "MBEDTLS_SSL_HW_RECORD_ACCEL",
markrad 0:cdf462088d13 344 #endif /* MBEDTLS_SSL_HW_RECORD_ACCEL */
markrad 0:cdf462088d13 345 #if defined(MBEDTLS_SSL_CBC_RECORD_SPLITTING)
markrad 0:cdf462088d13 346 "MBEDTLS_SSL_CBC_RECORD_SPLITTING",
markrad 0:cdf462088d13 347 #endif /* MBEDTLS_SSL_CBC_RECORD_SPLITTING */
markrad 0:cdf462088d13 348 #if defined(MBEDTLS_SSL_RENEGOTIATION)
markrad 0:cdf462088d13 349 "MBEDTLS_SSL_RENEGOTIATION",
markrad 0:cdf462088d13 350 #endif /* MBEDTLS_SSL_RENEGOTIATION */
markrad 0:cdf462088d13 351 #if defined(MBEDTLS_SSL_SRV_SUPPORT_SSLV2_CLIENT_HELLO)
markrad 0:cdf462088d13 352 "MBEDTLS_SSL_SRV_SUPPORT_SSLV2_CLIENT_HELLO",
markrad 0:cdf462088d13 353 #endif /* MBEDTLS_SSL_SRV_SUPPORT_SSLV2_CLIENT_HELLO */
markrad 0:cdf462088d13 354 #if defined(MBEDTLS_SSL_SRV_RESPECT_CLIENT_PREFERENCE)
markrad 0:cdf462088d13 355 "MBEDTLS_SSL_SRV_RESPECT_CLIENT_PREFERENCE",
markrad 0:cdf462088d13 356 #endif /* MBEDTLS_SSL_SRV_RESPECT_CLIENT_PREFERENCE */
markrad 0:cdf462088d13 357 #if defined(MBEDTLS_SSL_MAX_FRAGMENT_LENGTH)
markrad 0:cdf462088d13 358 "MBEDTLS_SSL_MAX_FRAGMENT_LENGTH",
markrad 0:cdf462088d13 359 #endif /* MBEDTLS_SSL_MAX_FRAGMENT_LENGTH */
markrad 0:cdf462088d13 360 #if defined(MBEDTLS_SSL_PROTO_SSL3)
markrad 0:cdf462088d13 361 "MBEDTLS_SSL_PROTO_SSL3",
markrad 0:cdf462088d13 362 #endif /* MBEDTLS_SSL_PROTO_SSL3 */
markrad 0:cdf462088d13 363 #if defined(MBEDTLS_SSL_PROTO_TLS1)
markrad 0:cdf462088d13 364 "MBEDTLS_SSL_PROTO_TLS1",
markrad 0:cdf462088d13 365 #endif /* MBEDTLS_SSL_PROTO_TLS1 */
markrad 0:cdf462088d13 366 #if defined(MBEDTLS_SSL_PROTO_TLS1_1)
markrad 0:cdf462088d13 367 "MBEDTLS_SSL_PROTO_TLS1_1",
markrad 0:cdf462088d13 368 #endif /* MBEDTLS_SSL_PROTO_TLS1_1 */
markrad 0:cdf462088d13 369 #if defined(MBEDTLS_SSL_PROTO_TLS1_2)
markrad 0:cdf462088d13 370 "MBEDTLS_SSL_PROTO_TLS1_2",
markrad 0:cdf462088d13 371 #endif /* MBEDTLS_SSL_PROTO_TLS1_2 */
markrad 0:cdf462088d13 372 #if defined(MBEDTLS_SSL_PROTO_DTLS)
markrad 0:cdf462088d13 373 "MBEDTLS_SSL_PROTO_DTLS",
markrad 0:cdf462088d13 374 #endif /* MBEDTLS_SSL_PROTO_DTLS */
markrad 0:cdf462088d13 375 #if defined(MBEDTLS_SSL_ALPN)
markrad 0:cdf462088d13 376 "MBEDTLS_SSL_ALPN",
markrad 0:cdf462088d13 377 #endif /* MBEDTLS_SSL_ALPN */
markrad 0:cdf462088d13 378 #if defined(MBEDTLS_SSL_DTLS_ANTI_REPLAY)
markrad 0:cdf462088d13 379 "MBEDTLS_SSL_DTLS_ANTI_REPLAY",
markrad 0:cdf462088d13 380 #endif /* MBEDTLS_SSL_DTLS_ANTI_REPLAY */
markrad 0:cdf462088d13 381 #if defined(MBEDTLS_SSL_DTLS_HELLO_VERIFY)
markrad 0:cdf462088d13 382 "MBEDTLS_SSL_DTLS_HELLO_VERIFY",
markrad 0:cdf462088d13 383 #endif /* MBEDTLS_SSL_DTLS_HELLO_VERIFY */
markrad 0:cdf462088d13 384 #if defined(MBEDTLS_SSL_DTLS_CLIENT_PORT_REUSE)
markrad 0:cdf462088d13 385 "MBEDTLS_SSL_DTLS_CLIENT_PORT_REUSE",
markrad 0:cdf462088d13 386 #endif /* MBEDTLS_SSL_DTLS_CLIENT_PORT_REUSE */
markrad 0:cdf462088d13 387 #if defined(MBEDTLS_SSL_DTLS_BADMAC_LIMIT)
markrad 0:cdf462088d13 388 "MBEDTLS_SSL_DTLS_BADMAC_LIMIT",
markrad 0:cdf462088d13 389 #endif /* MBEDTLS_SSL_DTLS_BADMAC_LIMIT */
markrad 0:cdf462088d13 390 #if defined(MBEDTLS_SSL_SESSION_TICKETS)
markrad 0:cdf462088d13 391 "MBEDTLS_SSL_SESSION_TICKETS",
markrad 0:cdf462088d13 392 #endif /* MBEDTLS_SSL_SESSION_TICKETS */
markrad 0:cdf462088d13 393 #if defined(MBEDTLS_SSL_EXPORT_KEYS)
markrad 0:cdf462088d13 394 "MBEDTLS_SSL_EXPORT_KEYS",
markrad 0:cdf462088d13 395 #endif /* MBEDTLS_SSL_EXPORT_KEYS */
markrad 0:cdf462088d13 396 #if defined(MBEDTLS_SSL_SERVER_NAME_INDICATION)
markrad 0:cdf462088d13 397 "MBEDTLS_SSL_SERVER_NAME_INDICATION",
markrad 0:cdf462088d13 398 #endif /* MBEDTLS_SSL_SERVER_NAME_INDICATION */
markrad 0:cdf462088d13 399 #if defined(MBEDTLS_SSL_TRUNCATED_HMAC)
markrad 0:cdf462088d13 400 "MBEDTLS_SSL_TRUNCATED_HMAC",
markrad 0:cdf462088d13 401 #endif /* MBEDTLS_SSL_TRUNCATED_HMAC */
markrad 0:cdf462088d13 402 #if defined(MBEDTLS_THREADING_ALT)
markrad 0:cdf462088d13 403 "MBEDTLS_THREADING_ALT",
markrad 0:cdf462088d13 404 #endif /* MBEDTLS_THREADING_ALT */
markrad 0:cdf462088d13 405 #if defined(MBEDTLS_THREADING_PTHREAD)
markrad 0:cdf462088d13 406 "MBEDTLS_THREADING_PTHREAD",
markrad 0:cdf462088d13 407 #endif /* MBEDTLS_THREADING_PTHREAD */
markrad 0:cdf462088d13 408 #if defined(MBEDTLS_VERSION_FEATURES)
markrad 0:cdf462088d13 409 "MBEDTLS_VERSION_FEATURES",
markrad 0:cdf462088d13 410 #endif /* MBEDTLS_VERSION_FEATURES */
markrad 0:cdf462088d13 411 #if defined(MBEDTLS_X509_ALLOW_EXTENSIONS_NON_V3)
markrad 0:cdf462088d13 412 "MBEDTLS_X509_ALLOW_EXTENSIONS_NON_V3",
markrad 0:cdf462088d13 413 #endif /* MBEDTLS_X509_ALLOW_EXTENSIONS_NON_V3 */
markrad 0:cdf462088d13 414 #if defined(MBEDTLS_X509_ALLOW_UNSUPPORTED_CRITICAL_EXTENSION)
markrad 0:cdf462088d13 415 "MBEDTLS_X509_ALLOW_UNSUPPORTED_CRITICAL_EXTENSION",
markrad 0:cdf462088d13 416 #endif /* MBEDTLS_X509_ALLOW_UNSUPPORTED_CRITICAL_EXTENSION */
markrad 0:cdf462088d13 417 #if defined(MBEDTLS_X509_CHECK_KEY_USAGE)
markrad 0:cdf462088d13 418 "MBEDTLS_X509_CHECK_KEY_USAGE",
markrad 0:cdf462088d13 419 #endif /* MBEDTLS_X509_CHECK_KEY_USAGE */
markrad 0:cdf462088d13 420 #if defined(MBEDTLS_X509_CHECK_EXTENDED_KEY_USAGE)
markrad 0:cdf462088d13 421 "MBEDTLS_X509_CHECK_EXTENDED_KEY_USAGE",
markrad 0:cdf462088d13 422 #endif /* MBEDTLS_X509_CHECK_EXTENDED_KEY_USAGE */
markrad 0:cdf462088d13 423 #if defined(MBEDTLS_X509_RSASSA_PSS_SUPPORT)
markrad 0:cdf462088d13 424 "MBEDTLS_X509_RSASSA_PSS_SUPPORT",
markrad 0:cdf462088d13 425 #endif /* MBEDTLS_X509_RSASSA_PSS_SUPPORT */
markrad 0:cdf462088d13 426 #if defined(MBEDTLS_ZLIB_SUPPORT)
markrad 0:cdf462088d13 427 "MBEDTLS_ZLIB_SUPPORT",
markrad 0:cdf462088d13 428 #endif /* MBEDTLS_ZLIB_SUPPORT */
markrad 0:cdf462088d13 429 #if defined(MBEDTLS_AESNI_C)
markrad 0:cdf462088d13 430 "MBEDTLS_AESNI_C",
markrad 0:cdf462088d13 431 #endif /* MBEDTLS_AESNI_C */
markrad 0:cdf462088d13 432 #if defined(MBEDTLS_AES_C)
markrad 0:cdf462088d13 433 "MBEDTLS_AES_C",
markrad 0:cdf462088d13 434 #endif /* MBEDTLS_AES_C */
markrad 0:cdf462088d13 435 #if defined(MBEDTLS_ARC4_C)
markrad 0:cdf462088d13 436 "MBEDTLS_ARC4_C",
markrad 0:cdf462088d13 437 #endif /* MBEDTLS_ARC4_C */
markrad 0:cdf462088d13 438 #if defined(MBEDTLS_ASN1_PARSE_C)
markrad 0:cdf462088d13 439 "MBEDTLS_ASN1_PARSE_C",
markrad 0:cdf462088d13 440 #endif /* MBEDTLS_ASN1_PARSE_C */
markrad 0:cdf462088d13 441 #if defined(MBEDTLS_ASN1_WRITE_C)
markrad 0:cdf462088d13 442 "MBEDTLS_ASN1_WRITE_C",
markrad 0:cdf462088d13 443 #endif /* MBEDTLS_ASN1_WRITE_C */
markrad 0:cdf462088d13 444 #if defined(MBEDTLS_BASE64_C)
markrad 0:cdf462088d13 445 "MBEDTLS_BASE64_C",
markrad 0:cdf462088d13 446 #endif /* MBEDTLS_BASE64_C */
markrad 0:cdf462088d13 447 #if defined(MBEDTLS_BIGNUM_C)
markrad 0:cdf462088d13 448 "MBEDTLS_BIGNUM_C",
markrad 0:cdf462088d13 449 #endif /* MBEDTLS_BIGNUM_C */
markrad 0:cdf462088d13 450 #if defined(MBEDTLS_BLOWFISH_C)
markrad 0:cdf462088d13 451 "MBEDTLS_BLOWFISH_C",
markrad 0:cdf462088d13 452 #endif /* MBEDTLS_BLOWFISH_C */
markrad 0:cdf462088d13 453 #if defined(MBEDTLS_CAMELLIA_C)
markrad 0:cdf462088d13 454 "MBEDTLS_CAMELLIA_C",
markrad 0:cdf462088d13 455 #endif /* MBEDTLS_CAMELLIA_C */
markrad 0:cdf462088d13 456 #if defined(MBEDTLS_CCM_C)
markrad 0:cdf462088d13 457 "MBEDTLS_CCM_C",
markrad 0:cdf462088d13 458 #endif /* MBEDTLS_CCM_C */
markrad 0:cdf462088d13 459 #if defined(MBEDTLS_CERTS_C)
markrad 0:cdf462088d13 460 "MBEDTLS_CERTS_C",
markrad 0:cdf462088d13 461 #endif /* MBEDTLS_CERTS_C */
markrad 0:cdf462088d13 462 #if defined(MBEDTLS_CIPHER_C)
markrad 0:cdf462088d13 463 "MBEDTLS_CIPHER_C",
markrad 0:cdf462088d13 464 #endif /* MBEDTLS_CIPHER_C */
markrad 0:cdf462088d13 465 #if defined(MBEDTLS_CMAC_C)
markrad 0:cdf462088d13 466 "MBEDTLS_CMAC_C",
markrad 0:cdf462088d13 467 #endif /* MBEDTLS_CMAC_C */
markrad 0:cdf462088d13 468 #if defined(MBEDTLS_CTR_DRBG_C)
markrad 0:cdf462088d13 469 "MBEDTLS_CTR_DRBG_C",
markrad 0:cdf462088d13 470 #endif /* MBEDTLS_CTR_DRBG_C */
markrad 0:cdf462088d13 471 #if defined(MBEDTLS_DEBUG_C)
markrad 0:cdf462088d13 472 "MBEDTLS_DEBUG_C",
markrad 0:cdf462088d13 473 #endif /* MBEDTLS_DEBUG_C */
markrad 0:cdf462088d13 474 #if defined(MBEDTLS_DES_C)
markrad 0:cdf462088d13 475 "MBEDTLS_DES_C",
markrad 0:cdf462088d13 476 #endif /* MBEDTLS_DES_C */
markrad 0:cdf462088d13 477 #if defined(MBEDTLS_DHM_C)
markrad 0:cdf462088d13 478 "MBEDTLS_DHM_C",
markrad 0:cdf462088d13 479 #endif /* MBEDTLS_DHM_C */
markrad 0:cdf462088d13 480 #if defined(MBEDTLS_ECDH_C)
markrad 0:cdf462088d13 481 "MBEDTLS_ECDH_C",
markrad 0:cdf462088d13 482 #endif /* MBEDTLS_ECDH_C */
markrad 0:cdf462088d13 483 #if defined(MBEDTLS_ECDSA_C)
markrad 0:cdf462088d13 484 "MBEDTLS_ECDSA_C",
markrad 0:cdf462088d13 485 #endif /* MBEDTLS_ECDSA_C */
markrad 0:cdf462088d13 486 #if defined(MBEDTLS_ECJPAKE_C)
markrad 0:cdf462088d13 487 "MBEDTLS_ECJPAKE_C",
markrad 0:cdf462088d13 488 #endif /* MBEDTLS_ECJPAKE_C */
markrad 0:cdf462088d13 489 #if defined(MBEDTLS_ECP_C)
markrad 0:cdf462088d13 490 "MBEDTLS_ECP_C",
markrad 0:cdf462088d13 491 #endif /* MBEDTLS_ECP_C */
markrad 0:cdf462088d13 492 #if defined(MBEDTLS_ENTROPY_C)
markrad 0:cdf462088d13 493 "MBEDTLS_ENTROPY_C",
markrad 0:cdf462088d13 494 #endif /* MBEDTLS_ENTROPY_C */
markrad 0:cdf462088d13 495 #if defined(MBEDTLS_ERROR_C)
markrad 0:cdf462088d13 496 "MBEDTLS_ERROR_C",
markrad 0:cdf462088d13 497 #endif /* MBEDTLS_ERROR_C */
markrad 0:cdf462088d13 498 #if defined(MBEDTLS_GCM_C)
markrad 0:cdf462088d13 499 "MBEDTLS_GCM_C",
markrad 0:cdf462088d13 500 #endif /* MBEDTLS_GCM_C */
markrad 0:cdf462088d13 501 #if defined(MBEDTLS_HAVEGE_C)
markrad 0:cdf462088d13 502 "MBEDTLS_HAVEGE_C",
markrad 0:cdf462088d13 503 #endif /* MBEDTLS_HAVEGE_C */
markrad 0:cdf462088d13 504 #if defined(MBEDTLS_HMAC_DRBG_C)
markrad 0:cdf462088d13 505 "MBEDTLS_HMAC_DRBG_C",
markrad 0:cdf462088d13 506 #endif /* MBEDTLS_HMAC_DRBG_C */
markrad 0:cdf462088d13 507 #if defined(MBEDTLS_MD_C)
markrad 0:cdf462088d13 508 "MBEDTLS_MD_C",
markrad 0:cdf462088d13 509 #endif /* MBEDTLS_MD_C */
markrad 0:cdf462088d13 510 #if defined(MBEDTLS_MD2_C)
markrad 0:cdf462088d13 511 "MBEDTLS_MD2_C",
markrad 0:cdf462088d13 512 #endif /* MBEDTLS_MD2_C */
markrad 0:cdf462088d13 513 #if defined(MBEDTLS_MD4_C)
markrad 0:cdf462088d13 514 "MBEDTLS_MD4_C",
markrad 0:cdf462088d13 515 #endif /* MBEDTLS_MD4_C */
markrad 0:cdf462088d13 516 #if defined(MBEDTLS_MD5_C)
markrad 0:cdf462088d13 517 "MBEDTLS_MD5_C",
markrad 0:cdf462088d13 518 #endif /* MBEDTLS_MD5_C */
markrad 0:cdf462088d13 519 #if defined(MBEDTLS_MEMORY_BUFFER_ALLOC_C)
markrad 0:cdf462088d13 520 "MBEDTLS_MEMORY_BUFFER_ALLOC_C",
markrad 0:cdf462088d13 521 #endif /* MBEDTLS_MEMORY_BUFFER_ALLOC_C */
markrad 0:cdf462088d13 522 #if defined(MBEDTLS_NET_C)
markrad 0:cdf462088d13 523 "MBEDTLS_NET_C",
markrad 0:cdf462088d13 524 #endif /* MBEDTLS_NET_C */
markrad 0:cdf462088d13 525 #if defined(MBEDTLS_OID_C)
markrad 0:cdf462088d13 526 "MBEDTLS_OID_C",
markrad 0:cdf462088d13 527 #endif /* MBEDTLS_OID_C */
markrad 0:cdf462088d13 528 #if defined(MBEDTLS_PADLOCK_C)
markrad 0:cdf462088d13 529 "MBEDTLS_PADLOCK_C",
markrad 0:cdf462088d13 530 #endif /* MBEDTLS_PADLOCK_C */
markrad 0:cdf462088d13 531 #if defined(MBEDTLS_PEM_PARSE_C)
markrad 0:cdf462088d13 532 "MBEDTLS_PEM_PARSE_C",
markrad 0:cdf462088d13 533 #endif /* MBEDTLS_PEM_PARSE_C */
markrad 0:cdf462088d13 534 #if defined(MBEDTLS_PEM_WRITE_C)
markrad 0:cdf462088d13 535 "MBEDTLS_PEM_WRITE_C",
markrad 0:cdf462088d13 536 #endif /* MBEDTLS_PEM_WRITE_C */
markrad 0:cdf462088d13 537 #if defined(MBEDTLS_PK_C)
markrad 0:cdf462088d13 538 "MBEDTLS_PK_C",
markrad 0:cdf462088d13 539 #endif /* MBEDTLS_PK_C */
markrad 0:cdf462088d13 540 #if defined(MBEDTLS_PK_PARSE_C)
markrad 0:cdf462088d13 541 "MBEDTLS_PK_PARSE_C",
markrad 0:cdf462088d13 542 #endif /* MBEDTLS_PK_PARSE_C */
markrad 0:cdf462088d13 543 #if defined(MBEDTLS_PK_WRITE_C)
markrad 0:cdf462088d13 544 "MBEDTLS_PK_WRITE_C",
markrad 0:cdf462088d13 545 #endif /* MBEDTLS_PK_WRITE_C */
markrad 0:cdf462088d13 546 #if defined(MBEDTLS_PKCS5_C)
markrad 0:cdf462088d13 547 "MBEDTLS_PKCS5_C",
markrad 0:cdf462088d13 548 #endif /* MBEDTLS_PKCS5_C */
markrad 0:cdf462088d13 549 #if defined(MBEDTLS_PKCS11_C)
markrad 0:cdf462088d13 550 "MBEDTLS_PKCS11_C",
markrad 0:cdf462088d13 551 #endif /* MBEDTLS_PKCS11_C */
markrad 0:cdf462088d13 552 #if defined(MBEDTLS_PKCS12_C)
markrad 0:cdf462088d13 553 "MBEDTLS_PKCS12_C",
markrad 0:cdf462088d13 554 #endif /* MBEDTLS_PKCS12_C */
markrad 0:cdf462088d13 555 #if defined(MBEDTLS_PLATFORM_C)
markrad 0:cdf462088d13 556 "MBEDTLS_PLATFORM_C",
markrad 0:cdf462088d13 557 #endif /* MBEDTLS_PLATFORM_C */
markrad 0:cdf462088d13 558 #if defined(MBEDTLS_RIPEMD160_C)
markrad 0:cdf462088d13 559 "MBEDTLS_RIPEMD160_C",
markrad 0:cdf462088d13 560 #endif /* MBEDTLS_RIPEMD160_C */
markrad 0:cdf462088d13 561 #if defined(MBEDTLS_RSA_C)
markrad 0:cdf462088d13 562 "MBEDTLS_RSA_C",
markrad 0:cdf462088d13 563 #endif /* MBEDTLS_RSA_C */
markrad 0:cdf462088d13 564 #if defined(MBEDTLS_SHA1_C)
markrad 0:cdf462088d13 565 "MBEDTLS_SHA1_C",
markrad 0:cdf462088d13 566 #endif /* MBEDTLS_SHA1_C */
markrad 0:cdf462088d13 567 #if defined(MBEDTLS_SHA256_C)
markrad 0:cdf462088d13 568 "MBEDTLS_SHA256_C",
markrad 0:cdf462088d13 569 #endif /* MBEDTLS_SHA256_C */
markrad 0:cdf462088d13 570 #if defined(MBEDTLS_SHA512_C)
markrad 0:cdf462088d13 571 "MBEDTLS_SHA512_C",
markrad 0:cdf462088d13 572 #endif /* MBEDTLS_SHA512_C */
markrad 0:cdf462088d13 573 #if defined(MBEDTLS_SSL_CACHE_C)
markrad 0:cdf462088d13 574 "MBEDTLS_SSL_CACHE_C",
markrad 0:cdf462088d13 575 #endif /* MBEDTLS_SSL_CACHE_C */
markrad 0:cdf462088d13 576 #if defined(MBEDTLS_SSL_COOKIE_C)
markrad 0:cdf462088d13 577 "MBEDTLS_SSL_COOKIE_C",
markrad 0:cdf462088d13 578 #endif /* MBEDTLS_SSL_COOKIE_C */
markrad 0:cdf462088d13 579 #if defined(MBEDTLS_SSL_TICKET_C)
markrad 0:cdf462088d13 580 "MBEDTLS_SSL_TICKET_C",
markrad 0:cdf462088d13 581 #endif /* MBEDTLS_SSL_TICKET_C */
markrad 0:cdf462088d13 582 #if defined(MBEDTLS_SSL_CLI_C)
markrad 0:cdf462088d13 583 "MBEDTLS_SSL_CLI_C",
markrad 0:cdf462088d13 584 #endif /* MBEDTLS_SSL_CLI_C */
markrad 0:cdf462088d13 585 #if defined(MBEDTLS_SSL_SRV_C)
markrad 0:cdf462088d13 586 "MBEDTLS_SSL_SRV_C",
markrad 0:cdf462088d13 587 #endif /* MBEDTLS_SSL_SRV_C */
markrad 0:cdf462088d13 588 #if defined(MBEDTLS_SSL_TLS_C)
markrad 0:cdf462088d13 589 "MBEDTLS_SSL_TLS_C",
markrad 0:cdf462088d13 590 #endif /* MBEDTLS_SSL_TLS_C */
markrad 0:cdf462088d13 591 #if defined(MBEDTLS_THREADING_C)
markrad 0:cdf462088d13 592 "MBEDTLS_THREADING_C",
markrad 0:cdf462088d13 593 #endif /* MBEDTLS_THREADING_C */
markrad 0:cdf462088d13 594 #if defined(MBEDTLS_TIMING_C)
markrad 0:cdf462088d13 595 "MBEDTLS_TIMING_C",
markrad 0:cdf462088d13 596 #endif /* MBEDTLS_TIMING_C */
markrad 0:cdf462088d13 597 #if defined(MBEDTLS_VERSION_C)
markrad 0:cdf462088d13 598 "MBEDTLS_VERSION_C",
markrad 0:cdf462088d13 599 #endif /* MBEDTLS_VERSION_C */
markrad 0:cdf462088d13 600 #if defined(MBEDTLS_X509_USE_C)
markrad 0:cdf462088d13 601 "MBEDTLS_X509_USE_C",
markrad 0:cdf462088d13 602 #endif /* MBEDTLS_X509_USE_C */
markrad 0:cdf462088d13 603 #if defined(MBEDTLS_X509_CRT_PARSE_C)
markrad 0:cdf462088d13 604 "MBEDTLS_X509_CRT_PARSE_C",
markrad 0:cdf462088d13 605 #endif /* MBEDTLS_X509_CRT_PARSE_C */
markrad 0:cdf462088d13 606 #if defined(MBEDTLS_X509_CRL_PARSE_C)
markrad 0:cdf462088d13 607 "MBEDTLS_X509_CRL_PARSE_C",
markrad 0:cdf462088d13 608 #endif /* MBEDTLS_X509_CRL_PARSE_C */
markrad 0:cdf462088d13 609 #if defined(MBEDTLS_X509_CSR_PARSE_C)
markrad 0:cdf462088d13 610 "MBEDTLS_X509_CSR_PARSE_C",
markrad 0:cdf462088d13 611 #endif /* MBEDTLS_X509_CSR_PARSE_C */
markrad 0:cdf462088d13 612 #if defined(MBEDTLS_X509_CREATE_C)
markrad 0:cdf462088d13 613 "MBEDTLS_X509_CREATE_C",
markrad 0:cdf462088d13 614 #endif /* MBEDTLS_X509_CREATE_C */
markrad 0:cdf462088d13 615 #if defined(MBEDTLS_X509_CRT_WRITE_C)
markrad 0:cdf462088d13 616 "MBEDTLS_X509_CRT_WRITE_C",
markrad 0:cdf462088d13 617 #endif /* MBEDTLS_X509_CRT_WRITE_C */
markrad 0:cdf462088d13 618 #if defined(MBEDTLS_X509_CSR_WRITE_C)
markrad 0:cdf462088d13 619 "MBEDTLS_X509_CSR_WRITE_C",
markrad 0:cdf462088d13 620 #endif /* MBEDTLS_X509_CSR_WRITE_C */
markrad 0:cdf462088d13 621 #if defined(MBEDTLS_XTEA_C)
markrad 0:cdf462088d13 622 "MBEDTLS_XTEA_C",
markrad 0:cdf462088d13 623 #endif /* MBEDTLS_XTEA_C */
markrad 0:cdf462088d13 624 #endif /* MBEDTLS_VERSION_FEATURES */
markrad 0:cdf462088d13 625 NULL
markrad 0:cdf462088d13 626 };
markrad 0:cdf462088d13 627
markrad 0:cdf462088d13 628 int mbedtls_version_check_feature( const char *feature )
markrad 0:cdf462088d13 629 {
markrad 0:cdf462088d13 630 const char **idx = features;
markrad 0:cdf462088d13 631
markrad 0:cdf462088d13 632 if( *idx == NULL )
markrad 0:cdf462088d13 633 return( -2 );
markrad 0:cdf462088d13 634
markrad 0:cdf462088d13 635 if( feature == NULL )
markrad 0:cdf462088d13 636 return( -1 );
markrad 0:cdf462088d13 637
markrad 0:cdf462088d13 638 while( *idx != NULL )
markrad 0:cdf462088d13 639 {
markrad 0:cdf462088d13 640 if( !strcmp( *idx, feature ) )
markrad 0:cdf462088d13 641 return( 0 );
markrad 0:cdf462088d13 642 idx++;
markrad 0:cdf462088d13 643 }
markrad 0:cdf462088d13 644 return( -1 );
markrad 0:cdf462088d13 645 }
markrad 0:cdf462088d13 646
markrad 0:cdf462088d13 647 #endif /* MBEDTLS_VERSION_C */