2014-04-30 11:49:44 +02:00
|
|
|
/*
|
|
|
|
* Version feature information
|
|
|
|
*
|
2015-01-23 10:45:19 +01:00
|
|
|
* Copyright (C) 2006-2014, ARM Limited, All Rights Reserved
|
2014-04-30 11:49:44 +02:00
|
|
|
*
|
2015-03-06 14:17:10 +01:00
|
|
|
* This file is part of mbed TLS (https://tls.mbed.org)
|
2014-04-30 11:49:44 +02:00
|
|
|
*
|
|
|
|
* This program 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.
|
|
|
|
*
|
|
|
|
* This program 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-1301 USA.
|
|
|
|
*/
|
|
|
|
|
2015-04-08 12:49:31 +02:00
|
|
|
#if !defined(MBEDTLS_CONFIG_FILE)
|
2015-03-09 18:05:11 +01:00
|
|
|
#include "mbedtls/config.h"
|
2014-04-29 12:39:06 +02:00
|
|
|
#else
|
2015-04-08 12:49:31 +02:00
|
|
|
#include MBEDTLS_CONFIG_FILE
|
2014-04-29 12:39:06 +02:00
|
|
|
#endif
|
2014-04-30 11:49:44 +02:00
|
|
|
|
2015-04-08 12:49:31 +02:00
|
|
|
#if defined(MBEDTLS_VERSION_C)
|
2014-04-30 11:49:44 +02:00
|
|
|
|
2015-03-09 18:05:11 +01:00
|
|
|
#include "mbedtls/version.h"
|
2014-04-30 11:49:44 +02:00
|
|
|
|
|
|
|
#include <string.h>
|
|
|
|
|
2014-04-30 17:01:25 +02:00
|
|
|
#if defined(_MSC_VER) && !defined strcasecmp && !defined(EFIX64) && \
|
2014-04-30 11:49:44 +02:00
|
|
|
!defined(EFI32)
|
2014-04-30 17:01:25 +02:00
|
|
|
#define strcasecmp _stricmp
|
2014-04-30 11:49:44 +02:00
|
|
|
#endif
|
|
|
|
|
2015-03-05 16:47:55 +01:00
|
|
|
static const char *features[] = {
|
2015-04-08 12:49:31 +02:00
|
|
|
#if defined(MBEDTLS_VERSION_FEATURES)
|
|
|
|
#if defined(MBEDTLS_HAVE_INT8)
|
|
|
|
"MBEDTLS_HAVE_INT8",
|
|
|
|
#endif /* MBEDTLS_HAVE_INT8 */
|
|
|
|
#if defined(MBEDTLS_HAVE_INT16)
|
|
|
|
"MBEDTLS_HAVE_INT16",
|
|
|
|
#endif /* MBEDTLS_HAVE_INT16 */
|
|
|
|
#if defined(MBEDTLS_HAVE_LONGLONG)
|
|
|
|
"MBEDTLS_HAVE_LONGLONG",
|
|
|
|
#endif /* MBEDTLS_HAVE_LONGLONG */
|
|
|
|
#if defined(MBEDTLS_HAVE_ASM)
|
|
|
|
"MBEDTLS_HAVE_ASM",
|
|
|
|
#endif /* MBEDTLS_HAVE_ASM */
|
|
|
|
#if defined(MBEDTLS_HAVE_SSE2)
|
|
|
|
"MBEDTLS_HAVE_SSE2",
|
|
|
|
#endif /* MBEDTLS_HAVE_SSE2 */
|
|
|
|
#if defined(MBEDTLS_HAVE_TIME)
|
|
|
|
"MBEDTLS_HAVE_TIME",
|
|
|
|
#endif /* MBEDTLS_HAVE_TIME */
|
|
|
|
#if defined(MBEDTLS_HAVE_IPV6)
|
|
|
|
"MBEDTLS_HAVE_IPV6",
|
|
|
|
#endif /* MBEDTLS_HAVE_IPV6 */
|
|
|
|
#if defined(MBEDTLS_PLATFORM_MEMORY)
|
|
|
|
"MBEDTLS_PLATFORM_MEMORY",
|
|
|
|
#endif /* MBEDTLS_PLATFORM_MEMORY */
|
|
|
|
#if defined(MBEDTLS_PLATFORM_NO_STD_FUNCTIONS)
|
|
|
|
"MBEDTLS_PLATFORM_NO_STD_FUNCTIONS",
|
|
|
|
#endif /* MBEDTLS_PLATFORM_NO_STD_FUNCTIONS */
|
|
|
|
#if defined(MBEDTLS_PLATFORM_EXIT_ALT)
|
|
|
|
"MBEDTLS_PLATFORM_EXIT_ALT",
|
|
|
|
#endif /* MBEDTLS_PLATFORM_EXIT_ALT */
|
|
|
|
#if defined(MBEDTLS_PLATFORM_FPRINTF_ALT)
|
|
|
|
"MBEDTLS_PLATFORM_FPRINTF_ALT",
|
|
|
|
#endif /* MBEDTLS_PLATFORM_FPRINTF_ALT */
|
|
|
|
#if defined(MBEDTLS_PLATFORM_PRINTF_ALT)
|
|
|
|
"MBEDTLS_PLATFORM_PRINTF_ALT",
|
|
|
|
#endif /* MBEDTLS_PLATFORM_PRINTF_ALT */
|
|
|
|
#if defined(MBEDTLS_PLATFORM_SNPRINTF_ALT)
|
|
|
|
"MBEDTLS_PLATFORM_SNPRINTF_ALT",
|
|
|
|
#endif /* MBEDTLS_PLATFORM_SNPRINTF_ALT */
|
|
|
|
#if defined(MBEDTLS_DEPRECATED_WARNING)
|
|
|
|
"MBEDTLS_DEPRECATED_WARNING",
|
|
|
|
#endif /* MBEDTLS_DEPRECATED_WARNING */
|
|
|
|
#if defined(MBEDTLS_DEPRECATED_REMOVED)
|
|
|
|
"MBEDTLS_DEPRECATED_REMOVED",
|
|
|
|
#endif /* MBEDTLS_DEPRECATED_REMOVED */
|
|
|
|
#if defined(MBEDTLS_TIMING_ALT)
|
|
|
|
"MBEDTLS_TIMING_ALT",
|
|
|
|
#endif /* MBEDTLS_TIMING_ALT */
|
|
|
|
#if defined(MBEDTLS_AES_ALT)
|
|
|
|
"MBEDTLS_AES_ALT",
|
|
|
|
#endif /* MBEDTLS_AES_ALT */
|
|
|
|
#if defined(MBEDTLS_ARC4_ALT)
|
|
|
|
"MBEDTLS_ARC4_ALT",
|
|
|
|
#endif /* MBEDTLS_ARC4_ALT */
|
|
|
|
#if defined(MBEDTLS_BLOWFISH_ALT)
|
|
|
|
"MBEDTLS_BLOWFISH_ALT",
|
|
|
|
#endif /* MBEDTLS_BLOWFISH_ALT */
|
|
|
|
#if defined(MBEDTLS_CAMELLIA_ALT)
|
|
|
|
"MBEDTLS_CAMELLIA_ALT",
|
|
|
|
#endif /* MBEDTLS_CAMELLIA_ALT */
|
|
|
|
#if defined(MBEDTLS_DES_ALT)
|
|
|
|
"MBEDTLS_DES_ALT",
|
|
|
|
#endif /* MBEDTLS_DES_ALT */
|
|
|
|
#if defined(MBEDTLS_XTEA_ALT)
|
|
|
|
"MBEDTLS_XTEA_ALT",
|
|
|
|
#endif /* MBEDTLS_XTEA_ALT */
|
|
|
|
#if defined(MBEDTLS_MD2_ALT)
|
|
|
|
"MBEDTLS_MD2_ALT",
|
|
|
|
#endif /* MBEDTLS_MD2_ALT */
|
|
|
|
#if defined(MBEDTLS_MD4_ALT)
|
|
|
|
"MBEDTLS_MD4_ALT",
|
|
|
|
#endif /* MBEDTLS_MD4_ALT */
|
|
|
|
#if defined(MBEDTLS_MD5_ALT)
|
|
|
|
"MBEDTLS_MD5_ALT",
|
|
|
|
#endif /* MBEDTLS_MD5_ALT */
|
|
|
|
#if defined(MBEDTLS_RIPEMD160_ALT)
|
|
|
|
"MBEDTLS_RIPEMD160_ALT",
|
|
|
|
#endif /* MBEDTLS_RIPEMD160_ALT */
|
|
|
|
#if defined(MBEDTLS_SHA1_ALT)
|
|
|
|
"MBEDTLS_SHA1_ALT",
|
|
|
|
#endif /* MBEDTLS_SHA1_ALT */
|
|
|
|
#if defined(MBEDTLS_SHA256_ALT)
|
|
|
|
"MBEDTLS_SHA256_ALT",
|
|
|
|
#endif /* MBEDTLS_SHA256_ALT */
|
|
|
|
#if defined(MBEDTLS_SHA512_ALT)
|
|
|
|
"MBEDTLS_SHA512_ALT",
|
|
|
|
#endif /* MBEDTLS_SHA512_ALT */
|
|
|
|
#if defined(MBEDTLS_MD2_PROCESS_ALT)
|
|
|
|
"MBEDTLS_MD2_PROCESS_ALT",
|
|
|
|
#endif /* MBEDTLS_MD2_PROCESS_ALT */
|
|
|
|
#if defined(MBEDTLS_MD4_PROCESS_ALT)
|
|
|
|
"MBEDTLS_MD4_PROCESS_ALT",
|
|
|
|
#endif /* MBEDTLS_MD4_PROCESS_ALT */
|
|
|
|
#if defined(MBEDTLS_MD5_PROCESS_ALT)
|
|
|
|
"MBEDTLS_MD5_PROCESS_ALT",
|
|
|
|
#endif /* MBEDTLS_MD5_PROCESS_ALT */
|
|
|
|
#if defined(MBEDTLS_RIPEMD160_PROCESS_ALT)
|
|
|
|
"MBEDTLS_RIPEMD160_PROCESS_ALT",
|
|
|
|
#endif /* MBEDTLS_RIPEMD160_PROCESS_ALT */
|
|
|
|
#if defined(MBEDTLS_SHA1_PROCESS_ALT)
|
|
|
|
"MBEDTLS_SHA1_PROCESS_ALT",
|
|
|
|
#endif /* MBEDTLS_SHA1_PROCESS_ALT */
|
|
|
|
#if defined(MBEDTLS_SHA256_PROCESS_ALT)
|
|
|
|
"MBEDTLS_SHA256_PROCESS_ALT",
|
|
|
|
#endif /* MBEDTLS_SHA256_PROCESS_ALT */
|
|
|
|
#if defined(MBEDTLS_SHA512_PROCESS_ALT)
|
|
|
|
"MBEDTLS_SHA512_PROCESS_ALT",
|
|
|
|
#endif /* MBEDTLS_SHA512_PROCESS_ALT */
|
|
|
|
#if defined(MBEDTLS_AES_ROM_TABLES)
|
|
|
|
"MBEDTLS_AES_ROM_TABLES",
|
|
|
|
#endif /* MBEDTLS_AES_ROM_TABLES */
|
|
|
|
#if defined(MBEDTLS_CAMELLIA_SMALL_MEMORY)
|
|
|
|
"MBEDTLS_CAMELLIA_SMALL_MEMORY",
|
|
|
|
#endif /* MBEDTLS_CAMELLIA_SMALL_MEMORY */
|
|
|
|
#if defined(MBEDTLS_CIPHER_MODE_CBC)
|
|
|
|
"MBEDTLS_CIPHER_MODE_CBC",
|
|
|
|
#endif /* MBEDTLS_CIPHER_MODE_CBC */
|
|
|
|
#if defined(MBEDTLS_CIPHER_MODE_CFB)
|
|
|
|
"MBEDTLS_CIPHER_MODE_CFB",
|
|
|
|
#endif /* MBEDTLS_CIPHER_MODE_CFB */
|
|
|
|
#if defined(MBEDTLS_CIPHER_MODE_CTR)
|
|
|
|
"MBEDTLS_CIPHER_MODE_CTR",
|
|
|
|
#endif /* MBEDTLS_CIPHER_MODE_CTR */
|
|
|
|
#if defined(MBEDTLS_CIPHER_NULL_CIPHER)
|
|
|
|
"MBEDTLS_CIPHER_NULL_CIPHER",
|
|
|
|
#endif /* MBEDTLS_CIPHER_NULL_CIPHER */
|
|
|
|
#if defined(MBEDTLS_CIPHER_PADDING_PKCS7)
|
|
|
|
"MBEDTLS_CIPHER_PADDING_PKCS7",
|
|
|
|
#endif /* MBEDTLS_CIPHER_PADDING_PKCS7 */
|
|
|
|
#if defined(MBEDTLS_CIPHER_PADDING_ONE_AND_ZEROS)
|
|
|
|
"MBEDTLS_CIPHER_PADDING_ONE_AND_ZEROS",
|
|
|
|
#endif /* MBEDTLS_CIPHER_PADDING_ONE_AND_ZEROS */
|
|
|
|
#if defined(MBEDTLS_CIPHER_PADDING_ZEROS_AND_LEN)
|
|
|
|
"MBEDTLS_CIPHER_PADDING_ZEROS_AND_LEN",
|
|
|
|
#endif /* MBEDTLS_CIPHER_PADDING_ZEROS_AND_LEN */
|
|
|
|
#if defined(MBEDTLS_CIPHER_PADDING_ZEROS)
|
|
|
|
"MBEDTLS_CIPHER_PADDING_ZEROS",
|
|
|
|
#endif /* MBEDTLS_CIPHER_PADDING_ZEROS */
|
|
|
|
#if defined(MBEDTLS_ENABLE_WEAK_CIPHERSUITES)
|
|
|
|
"MBEDTLS_ENABLE_WEAK_CIPHERSUITES",
|
|
|
|
#endif /* MBEDTLS_ENABLE_WEAK_CIPHERSUITES */
|
|
|
|
#if defined(MBEDTLS_REMOVE_ARC4_CIPHERSUITES)
|
|
|
|
"MBEDTLS_REMOVE_ARC4_CIPHERSUITES",
|
|
|
|
#endif /* MBEDTLS_REMOVE_ARC4_CIPHERSUITES */
|
|
|
|
#if defined(MBEDTLS_ECP_DP_SECP192R1_ENABLED)
|
|
|
|
"MBEDTLS_ECP_DP_SECP192R1_ENABLED",
|
|
|
|
#endif /* MBEDTLS_ECP_DP_SECP192R1_ENABLED */
|
|
|
|
#if defined(MBEDTLS_ECP_DP_SECP224R1_ENABLED)
|
|
|
|
"MBEDTLS_ECP_DP_SECP224R1_ENABLED",
|
|
|
|
#endif /* MBEDTLS_ECP_DP_SECP224R1_ENABLED */
|
|
|
|
#if defined(MBEDTLS_ECP_DP_SECP256R1_ENABLED)
|
|
|
|
"MBEDTLS_ECP_DP_SECP256R1_ENABLED",
|
|
|
|
#endif /* MBEDTLS_ECP_DP_SECP256R1_ENABLED */
|
|
|
|
#if defined(MBEDTLS_ECP_DP_SECP384R1_ENABLED)
|
|
|
|
"MBEDTLS_ECP_DP_SECP384R1_ENABLED",
|
|
|
|
#endif /* MBEDTLS_ECP_DP_SECP384R1_ENABLED */
|
|
|
|
#if defined(MBEDTLS_ECP_DP_SECP521R1_ENABLED)
|
|
|
|
"MBEDTLS_ECP_DP_SECP521R1_ENABLED",
|
|
|
|
#endif /* MBEDTLS_ECP_DP_SECP521R1_ENABLED */
|
|
|
|
#if defined(MBEDTLS_ECP_DP_SECP192K1_ENABLED)
|
|
|
|
"MBEDTLS_ECP_DP_SECP192K1_ENABLED",
|
|
|
|
#endif /* MBEDTLS_ECP_DP_SECP192K1_ENABLED */
|
|
|
|
#if defined(MBEDTLS_ECP_DP_SECP224K1_ENABLED)
|
|
|
|
"MBEDTLS_ECP_DP_SECP224K1_ENABLED",
|
|
|
|
#endif /* MBEDTLS_ECP_DP_SECP224K1_ENABLED */
|
|
|
|
#if defined(MBEDTLS_ECP_DP_SECP256K1_ENABLED)
|
|
|
|
"MBEDTLS_ECP_DP_SECP256K1_ENABLED",
|
|
|
|
#endif /* MBEDTLS_ECP_DP_SECP256K1_ENABLED */
|
|
|
|
#if defined(MBEDTLS_ECP_DP_BP256R1_ENABLED)
|
|
|
|
"MBEDTLS_ECP_DP_BP256R1_ENABLED",
|
|
|
|
#endif /* MBEDTLS_ECP_DP_BP256R1_ENABLED */
|
|
|
|
#if defined(MBEDTLS_ECP_DP_BP384R1_ENABLED)
|
|
|
|
"MBEDTLS_ECP_DP_BP384R1_ENABLED",
|
|
|
|
#endif /* MBEDTLS_ECP_DP_BP384R1_ENABLED */
|
|
|
|
#if defined(MBEDTLS_ECP_DP_BP512R1_ENABLED)
|
|
|
|
"MBEDTLS_ECP_DP_BP512R1_ENABLED",
|
|
|
|
#endif /* MBEDTLS_ECP_DP_BP512R1_ENABLED */
|
|
|
|
#if defined(MBEDTLS_ECP_DP_M221_ENABLED)
|
|
|
|
"MBEDTLS_ECP_DP_M221_ENABLED",
|
|
|
|
#endif /* MBEDTLS_ECP_DP_M221_ENABLED */
|
|
|
|
#if defined(MBEDTLS_ECP_DP_M255_ENABLED)
|
|
|
|
"MBEDTLS_ECP_DP_M255_ENABLED",
|
|
|
|
#endif /* MBEDTLS_ECP_DP_M255_ENABLED */
|
|
|
|
#if defined(MBEDTLS_ECP_DP_M383_ENABLED)
|
|
|
|
"MBEDTLS_ECP_DP_M383_ENABLED",
|
|
|
|
#endif /* MBEDTLS_ECP_DP_M383_ENABLED */
|
|
|
|
#if defined(MBEDTLS_ECP_DP_M511_ENABLED)
|
|
|
|
"MBEDTLS_ECP_DP_M511_ENABLED",
|
|
|
|
#endif /* MBEDTLS_ECP_DP_M511_ENABLED */
|
|
|
|
#if defined(MBEDTLS_ECP_NIST_OPTIM)
|
|
|
|
"MBEDTLS_ECP_NIST_OPTIM",
|
|
|
|
#endif /* MBEDTLS_ECP_NIST_OPTIM */
|
|
|
|
#if defined(MBEDTLS_ECDSA_DETERMINISTIC)
|
|
|
|
"MBEDTLS_ECDSA_DETERMINISTIC",
|
|
|
|
#endif /* MBEDTLS_ECDSA_DETERMINISTIC */
|
|
|
|
#if defined(MBEDTLS_KEY_EXCHANGE_PSK_ENABLED)
|
|
|
|
"MBEDTLS_KEY_EXCHANGE_PSK_ENABLED",
|
|
|
|
#endif /* MBEDTLS_KEY_EXCHANGE_PSK_ENABLED */
|
|
|
|
#if defined(MBEDTLS_KEY_EXCHANGE_DHE_PSK_ENABLED)
|
|
|
|
"MBEDTLS_KEY_EXCHANGE_DHE_PSK_ENABLED",
|
|
|
|
#endif /* MBEDTLS_KEY_EXCHANGE_DHE_PSK_ENABLED */
|
|
|
|
#if defined(MBEDTLS_KEY_EXCHANGE_ECDHE_PSK_ENABLED)
|
|
|
|
"MBEDTLS_KEY_EXCHANGE_ECDHE_PSK_ENABLED",
|
|
|
|
#endif /* MBEDTLS_KEY_EXCHANGE_ECDHE_PSK_ENABLED */
|
|
|
|
#if defined(MBEDTLS_KEY_EXCHANGE_RSA_PSK_ENABLED)
|
|
|
|
"MBEDTLS_KEY_EXCHANGE_RSA_PSK_ENABLED",
|
|
|
|
#endif /* MBEDTLS_KEY_EXCHANGE_RSA_PSK_ENABLED */
|
|
|
|
#if defined(MBEDTLS_KEY_EXCHANGE_RSA_ENABLED)
|
|
|
|
"MBEDTLS_KEY_EXCHANGE_RSA_ENABLED",
|
|
|
|
#endif /* MBEDTLS_KEY_EXCHANGE_RSA_ENABLED */
|
|
|
|
#if defined(MBEDTLS_KEY_EXCHANGE_DHE_RSA_ENABLED)
|
|
|
|
"MBEDTLS_KEY_EXCHANGE_DHE_RSA_ENABLED",
|
|
|
|
#endif /* MBEDTLS_KEY_EXCHANGE_DHE_RSA_ENABLED */
|
|
|
|
#if defined(MBEDTLS_KEY_EXCHANGE_ECDHE_RSA_ENABLED)
|
|
|
|
"MBEDTLS_KEY_EXCHANGE_ECDHE_RSA_ENABLED",
|
|
|
|
#endif /* MBEDTLS_KEY_EXCHANGE_ECDHE_RSA_ENABLED */
|
|
|
|
#if defined(MBEDTLS_KEY_EXCHANGE_ECDHE_ECDSA_ENABLED)
|
|
|
|
"MBEDTLS_KEY_EXCHANGE_ECDHE_ECDSA_ENABLED",
|
|
|
|
#endif /* MBEDTLS_KEY_EXCHANGE_ECDHE_ECDSA_ENABLED */
|
|
|
|
#if defined(MBEDTLS_KEY_EXCHANGE_ECDH_ECDSA_ENABLED)
|
|
|
|
"MBEDTLS_KEY_EXCHANGE_ECDH_ECDSA_ENABLED",
|
|
|
|
#endif /* MBEDTLS_KEY_EXCHANGE_ECDH_ECDSA_ENABLED */
|
|
|
|
#if defined(MBEDTLS_KEY_EXCHANGE_ECDH_RSA_ENABLED)
|
|
|
|
"MBEDTLS_KEY_EXCHANGE_ECDH_RSA_ENABLED",
|
|
|
|
#endif /* MBEDTLS_KEY_EXCHANGE_ECDH_RSA_ENABLED */
|
|
|
|
#if defined(MBEDTLS_PK_PARSE_EC_EXTENDED)
|
|
|
|
"MBEDTLS_PK_PARSE_EC_EXTENDED",
|
|
|
|
#endif /* MBEDTLS_PK_PARSE_EC_EXTENDED */
|
|
|
|
#if defined(MBEDTLS_ERROR_STRERROR_DUMMY)
|
|
|
|
"MBEDTLS_ERROR_STRERROR_DUMMY",
|
|
|
|
#endif /* MBEDTLS_ERROR_STRERROR_DUMMY */
|
|
|
|
#if defined(MBEDTLS_GENPRIME)
|
|
|
|
"MBEDTLS_GENPRIME",
|
|
|
|
#endif /* MBEDTLS_GENPRIME */
|
|
|
|
#if defined(MBEDTLS_FS_IO)
|
|
|
|
"MBEDTLS_FS_IO",
|
|
|
|
#endif /* MBEDTLS_FS_IO */
|
|
|
|
#if defined(MBEDTLS_NO_DEFAULT_ENTROPY_SOURCES)
|
|
|
|
"MBEDTLS_NO_DEFAULT_ENTROPY_SOURCES",
|
|
|
|
#endif /* MBEDTLS_NO_DEFAULT_ENTROPY_SOURCES */
|
|
|
|
#if defined(MBEDTLS_NO_PLATFORM_ENTROPY)
|
|
|
|
"MBEDTLS_NO_PLATFORM_ENTROPY",
|
|
|
|
#endif /* MBEDTLS_NO_PLATFORM_ENTROPY */
|
|
|
|
#if defined(MBEDTLS_ENTROPY_FORCE_SHA256)
|
|
|
|
"MBEDTLS_ENTROPY_FORCE_SHA256",
|
|
|
|
#endif /* MBEDTLS_ENTROPY_FORCE_SHA256 */
|
|
|
|
#if defined(MBEDTLS_MEMORY_DEBUG)
|
|
|
|
"MBEDTLS_MEMORY_DEBUG",
|
|
|
|
#endif /* MBEDTLS_MEMORY_DEBUG */
|
|
|
|
#if defined(MBEDTLS_MEMORY_BACKTRACE)
|
|
|
|
"MBEDTLS_MEMORY_BACKTRACE",
|
|
|
|
#endif /* MBEDTLS_MEMORY_BACKTRACE */
|
|
|
|
#if defined(MBEDTLS_PK_RSA_ALT_SUPPORT)
|
|
|
|
"MBEDTLS_PK_RSA_ALT_SUPPORT",
|
|
|
|
#endif /* MBEDTLS_PK_RSA_ALT_SUPPORT */
|
|
|
|
#if defined(MBEDTLS_PKCS1_V15)
|
|
|
|
"MBEDTLS_PKCS1_V15",
|
|
|
|
#endif /* MBEDTLS_PKCS1_V15 */
|
|
|
|
#if defined(MBEDTLS_PKCS1_V21)
|
|
|
|
"MBEDTLS_PKCS1_V21",
|
|
|
|
#endif /* MBEDTLS_PKCS1_V21 */
|
|
|
|
#if defined(MBEDTLS_RSA_NO_CRT)
|
|
|
|
"MBEDTLS_RSA_NO_CRT",
|
|
|
|
#endif /* MBEDTLS_RSA_NO_CRT */
|
|
|
|
#if defined(MBEDTLS_SELF_TEST)
|
|
|
|
"MBEDTLS_SELF_TEST",
|
|
|
|
#endif /* MBEDTLS_SELF_TEST */
|
|
|
|
#if defined(MBEDTLS_SSL_AEAD_RANDOM_IV)
|
|
|
|
"MBEDTLS_SSL_AEAD_RANDOM_IV",
|
|
|
|
#endif /* MBEDTLS_SSL_AEAD_RANDOM_IV */
|
|
|
|
#if defined(MBEDTLS_SSL_ALL_ALERT_MESSAGES)
|
|
|
|
"MBEDTLS_SSL_ALL_ALERT_MESSAGES",
|
|
|
|
#endif /* MBEDTLS_SSL_ALL_ALERT_MESSAGES */
|
|
|
|
#if defined(MBEDTLS_SSL_DEBUG_ALL)
|
|
|
|
"MBEDTLS_SSL_DEBUG_ALL",
|
|
|
|
#endif /* MBEDTLS_SSL_DEBUG_ALL */
|
|
|
|
#if defined(MBEDTLS_SSL_ENCRYPT_THEN_MAC)
|
|
|
|
"MBEDTLS_SSL_ENCRYPT_THEN_MAC",
|
|
|
|
#endif /* MBEDTLS_SSL_ENCRYPT_THEN_MAC */
|
|
|
|
#if defined(MBEDTLS_SSL_EXTENDED_MASTER_SECRET)
|
|
|
|
"MBEDTLS_SSL_EXTENDED_MASTER_SECRET",
|
|
|
|
#endif /* MBEDTLS_SSL_EXTENDED_MASTER_SECRET */
|
|
|
|
#if defined(MBEDTLS_SSL_FALLBACK_SCSV)
|
|
|
|
"MBEDTLS_SSL_FALLBACK_SCSV",
|
|
|
|
#endif /* MBEDTLS_SSL_FALLBACK_SCSV */
|
|
|
|
#if defined(MBEDTLS_SSL_HW_RECORD_ACCEL)
|
|
|
|
"MBEDTLS_SSL_HW_RECORD_ACCEL",
|
|
|
|
#endif /* MBEDTLS_SSL_HW_RECORD_ACCEL */
|
|
|
|
#if defined(MBEDTLS_SSL_CBC_RECORD_SPLITTING)
|
|
|
|
"MBEDTLS_SSL_CBC_RECORD_SPLITTING",
|
|
|
|
#endif /* MBEDTLS_SSL_CBC_RECORD_SPLITTING */
|
|
|
|
#if defined(MBEDTLS_SSL_RENEGOTIATION)
|
|
|
|
"MBEDTLS_SSL_RENEGOTIATION",
|
|
|
|
#endif /* MBEDTLS_SSL_RENEGOTIATION */
|
|
|
|
#if defined(MBEDTLS_SSL_SRV_SUPPORT_SSLV2_CLIENT_HELLO)
|
|
|
|
"MBEDTLS_SSL_SRV_SUPPORT_SSLV2_CLIENT_HELLO",
|
|
|
|
#endif /* MBEDTLS_SSL_SRV_SUPPORT_SSLV2_CLIENT_HELLO */
|
|
|
|
#if defined(MBEDTLS_SSL_SRV_RESPECT_CLIENT_PREFERENCE)
|
|
|
|
"MBEDTLS_SSL_SRV_RESPECT_CLIENT_PREFERENCE",
|
|
|
|
#endif /* MBEDTLS_SSL_SRV_RESPECT_CLIENT_PREFERENCE */
|
|
|
|
#if defined(MBEDTLS_SSL_MAX_FRAGMENT_LENGTH)
|
|
|
|
"MBEDTLS_SSL_MAX_FRAGMENT_LENGTH",
|
|
|
|
#endif /* MBEDTLS_SSL_MAX_FRAGMENT_LENGTH */
|
|
|
|
#if defined(MBEDTLS_SSL_PROTO_SSL3)
|
|
|
|
"MBEDTLS_SSL_PROTO_SSL3",
|
|
|
|
#endif /* MBEDTLS_SSL_PROTO_SSL3 */
|
|
|
|
#if defined(MBEDTLS_SSL_PROTO_TLS1)
|
|
|
|
"MBEDTLS_SSL_PROTO_TLS1",
|
|
|
|
#endif /* MBEDTLS_SSL_PROTO_TLS1 */
|
|
|
|
#if defined(MBEDTLS_SSL_PROTO_TLS1_1)
|
|
|
|
"MBEDTLS_SSL_PROTO_TLS1_1",
|
|
|
|
#endif /* MBEDTLS_SSL_PROTO_TLS1_1 */
|
|
|
|
#if defined(MBEDTLS_SSL_PROTO_TLS1_2)
|
|
|
|
"MBEDTLS_SSL_PROTO_TLS1_2",
|
|
|
|
#endif /* MBEDTLS_SSL_PROTO_TLS1_2 */
|
|
|
|
#if defined(MBEDTLS_SSL_PROTO_DTLS)
|
|
|
|
"MBEDTLS_SSL_PROTO_DTLS",
|
|
|
|
#endif /* MBEDTLS_SSL_PROTO_DTLS */
|
|
|
|
#if defined(MBEDTLS_SSL_ALPN)
|
|
|
|
"MBEDTLS_SSL_ALPN",
|
|
|
|
#endif /* MBEDTLS_SSL_ALPN */
|
|
|
|
#if defined(MBEDTLS_SSL_DTLS_ANTI_REPLAY)
|
|
|
|
"MBEDTLS_SSL_DTLS_ANTI_REPLAY",
|
|
|
|
#endif /* MBEDTLS_SSL_DTLS_ANTI_REPLAY */
|
|
|
|
#if defined(MBEDTLS_SSL_DTLS_HELLO_VERIFY)
|
|
|
|
"MBEDTLS_SSL_DTLS_HELLO_VERIFY",
|
|
|
|
#endif /* MBEDTLS_SSL_DTLS_HELLO_VERIFY */
|
|
|
|
#if defined(MBEDTLS_SSL_DTLS_BADMAC_LIMIT)
|
|
|
|
"MBEDTLS_SSL_DTLS_BADMAC_LIMIT",
|
|
|
|
#endif /* MBEDTLS_SSL_DTLS_BADMAC_LIMIT */
|
|
|
|
#if defined(MBEDTLS_SSL_SESSION_TICKETS)
|
|
|
|
"MBEDTLS_SSL_SESSION_TICKETS",
|
|
|
|
#endif /* MBEDTLS_SSL_SESSION_TICKETS */
|
|
|
|
#if defined(MBEDTLS_SSL_SERVER_NAME_INDICATION)
|
|
|
|
"MBEDTLS_SSL_SERVER_NAME_INDICATION",
|
|
|
|
#endif /* MBEDTLS_SSL_SERVER_NAME_INDICATION */
|
|
|
|
#if defined(MBEDTLS_SSL_TRUNCATED_HMAC)
|
|
|
|
"MBEDTLS_SSL_TRUNCATED_HMAC",
|
|
|
|
#endif /* MBEDTLS_SSL_TRUNCATED_HMAC */
|
|
|
|
#if defined(MBEDTLS_SSL_SET_CURVES)
|
|
|
|
"MBEDTLS_SSL_SET_CURVES",
|
|
|
|
#endif /* MBEDTLS_SSL_SET_CURVES */
|
|
|
|
#if defined(MBEDTLS_THREADING_ALT)
|
|
|
|
"MBEDTLS_THREADING_ALT",
|
|
|
|
#endif /* MBEDTLS_THREADING_ALT */
|
|
|
|
#if defined(MBEDTLS_THREADING_PTHREAD)
|
|
|
|
"MBEDTLS_THREADING_PTHREAD",
|
|
|
|
#endif /* MBEDTLS_THREADING_PTHREAD */
|
|
|
|
#if defined(MBEDTLS_VERSION_FEATURES)
|
|
|
|
"MBEDTLS_VERSION_FEATURES",
|
|
|
|
#endif /* MBEDTLS_VERSION_FEATURES */
|
|
|
|
#if defined(MBEDTLS_X509_ALLOW_EXTENSIONS_NON_V3)
|
|
|
|
"MBEDTLS_X509_ALLOW_EXTENSIONS_NON_V3",
|
|
|
|
#endif /* MBEDTLS_X509_ALLOW_EXTENSIONS_NON_V3 */
|
|
|
|
#if defined(MBEDTLS_X509_ALLOW_UNSUPPORTED_CRITICAL_EXTENSION)
|
|
|
|
"MBEDTLS_X509_ALLOW_UNSUPPORTED_CRITICAL_EXTENSION",
|
|
|
|
#endif /* MBEDTLS_X509_ALLOW_UNSUPPORTED_CRITICAL_EXTENSION */
|
|
|
|
#if defined(MBEDTLS_X509_CHECK_KEY_USAGE)
|
|
|
|
"MBEDTLS_X509_CHECK_KEY_USAGE",
|
|
|
|
#endif /* MBEDTLS_X509_CHECK_KEY_USAGE */
|
|
|
|
#if defined(MBEDTLS_X509_CHECK_EXTENDED_KEY_USAGE)
|
|
|
|
"MBEDTLS_X509_CHECK_EXTENDED_KEY_USAGE",
|
|
|
|
#endif /* MBEDTLS_X509_CHECK_EXTENDED_KEY_USAGE */
|
|
|
|
#if defined(MBEDTLS_X509_RSASSA_PSS_SUPPORT)
|
|
|
|
"MBEDTLS_X509_RSASSA_PSS_SUPPORT",
|
|
|
|
#endif /* MBEDTLS_X509_RSASSA_PSS_SUPPORT */
|
|
|
|
#if defined(MBEDTLS_ZLIB_SUPPORT)
|
|
|
|
"MBEDTLS_ZLIB_SUPPORT",
|
|
|
|
#endif /* MBEDTLS_ZLIB_SUPPORT */
|
|
|
|
#if defined(MBEDTLS_AESNI_C)
|
|
|
|
"MBEDTLS_AESNI_C",
|
|
|
|
#endif /* MBEDTLS_AESNI_C */
|
|
|
|
#if defined(MBEDTLS_AES_C)
|
|
|
|
"MBEDTLS_AES_C",
|
|
|
|
#endif /* MBEDTLS_AES_C */
|
|
|
|
#if defined(MBEDTLS_ARC4_C)
|
|
|
|
"MBEDTLS_ARC4_C",
|
|
|
|
#endif /* MBEDTLS_ARC4_C */
|
|
|
|
#if defined(MBEDTLS_ASN1_PARSE_C)
|
|
|
|
"MBEDTLS_ASN1_PARSE_C",
|
|
|
|
#endif /* MBEDTLS_ASN1_PARSE_C */
|
|
|
|
#if defined(MBEDTLS_ASN1_WRITE_C)
|
|
|
|
"MBEDTLS_ASN1_WRITE_C",
|
|
|
|
#endif /* MBEDTLS_ASN1_WRITE_C */
|
|
|
|
#if defined(MBEDTLS_BASE64_C)
|
|
|
|
"MBEDTLS_BASE64_C",
|
|
|
|
#endif /* MBEDTLS_BASE64_C */
|
|
|
|
#if defined(MBEDTLS_BIGNUM_C)
|
|
|
|
"MBEDTLS_BIGNUM_C",
|
|
|
|
#endif /* MBEDTLS_BIGNUM_C */
|
|
|
|
#if defined(MBEDTLS_BLOWFISH_C)
|
|
|
|
"MBEDTLS_BLOWFISH_C",
|
|
|
|
#endif /* MBEDTLS_BLOWFISH_C */
|
|
|
|
#if defined(MBEDTLS_CAMELLIA_C)
|
|
|
|
"MBEDTLS_CAMELLIA_C",
|
|
|
|
#endif /* MBEDTLS_CAMELLIA_C */
|
|
|
|
#if defined(MBEDTLS_CCM_C)
|
|
|
|
"MBEDTLS_CCM_C",
|
|
|
|
#endif /* MBEDTLS_CCM_C */
|
|
|
|
#if defined(MBEDTLS_CERTS_C)
|
|
|
|
"MBEDTLS_CERTS_C",
|
|
|
|
#endif /* MBEDTLS_CERTS_C */
|
|
|
|
#if defined(MBEDTLS_CIPHER_C)
|
|
|
|
"MBEDTLS_CIPHER_C",
|
|
|
|
#endif /* MBEDTLS_CIPHER_C */
|
|
|
|
#if defined(MBEDTLS_CTR_DRBG_C)
|
|
|
|
"MBEDTLS_CTR_DRBG_C",
|
|
|
|
#endif /* MBEDTLS_CTR_DRBG_C */
|
|
|
|
#if defined(MBEDTLS_DEBUG_C)
|
|
|
|
"MBEDTLS_DEBUG_C",
|
|
|
|
#endif /* MBEDTLS_DEBUG_C */
|
|
|
|
#if defined(MBEDTLS_DES_C)
|
|
|
|
"MBEDTLS_DES_C",
|
|
|
|
#endif /* MBEDTLS_DES_C */
|
|
|
|
#if defined(MBEDTLS_DHM_C)
|
|
|
|
"MBEDTLS_DHM_C",
|
|
|
|
#endif /* MBEDTLS_DHM_C */
|
|
|
|
#if defined(MBEDTLS_ECDH_C)
|
|
|
|
"MBEDTLS_ECDH_C",
|
|
|
|
#endif /* MBEDTLS_ECDH_C */
|
|
|
|
#if defined(MBEDTLS_ECDSA_C)
|
|
|
|
"MBEDTLS_ECDSA_C",
|
|
|
|
#endif /* MBEDTLS_ECDSA_C */
|
|
|
|
#if defined(MBEDTLS_ECP_C)
|
|
|
|
"MBEDTLS_ECP_C",
|
|
|
|
#endif /* MBEDTLS_ECP_C */
|
|
|
|
#if defined(MBEDTLS_ENTROPY_C)
|
|
|
|
"MBEDTLS_ENTROPY_C",
|
|
|
|
#endif /* MBEDTLS_ENTROPY_C */
|
|
|
|
#if defined(MBEDTLS_ERROR_C)
|
|
|
|
"MBEDTLS_ERROR_C",
|
|
|
|
#endif /* MBEDTLS_ERROR_C */
|
|
|
|
#if defined(MBEDTLS_GCM_C)
|
|
|
|
"MBEDTLS_GCM_C",
|
|
|
|
#endif /* MBEDTLS_GCM_C */
|
|
|
|
#if defined(MBEDTLS_HAVEGE_C)
|
|
|
|
"MBEDTLS_HAVEGE_C",
|
|
|
|
#endif /* MBEDTLS_HAVEGE_C */
|
|
|
|
#if defined(MBEDTLS_HMAC_DRBG_C)
|
|
|
|
"MBEDTLS_HMAC_DRBG_C",
|
|
|
|
#endif /* MBEDTLS_HMAC_DRBG_C */
|
|
|
|
#if defined(MBEDTLS_MD_C)
|
|
|
|
"MBEDTLS_MD_C",
|
|
|
|
#endif /* MBEDTLS_MD_C */
|
|
|
|
#if defined(MBEDTLS_MD2_C)
|
|
|
|
"MBEDTLS_MD2_C",
|
|
|
|
#endif /* MBEDTLS_MD2_C */
|
|
|
|
#if defined(MBEDTLS_MD4_C)
|
|
|
|
"MBEDTLS_MD4_C",
|
|
|
|
#endif /* MBEDTLS_MD4_C */
|
|
|
|
#if defined(MBEDTLS_MD5_C)
|
|
|
|
"MBEDTLS_MD5_C",
|
|
|
|
#endif /* MBEDTLS_MD5_C */
|
|
|
|
#if defined(MBEDTLS_MEMORY_BUFFER_ALLOC_C)
|
|
|
|
"MBEDTLS_MEMORY_BUFFER_ALLOC_C",
|
|
|
|
#endif /* MBEDTLS_MEMORY_BUFFER_ALLOC_C */
|
|
|
|
#if defined(MBEDTLS_NET_C)
|
|
|
|
"MBEDTLS_NET_C",
|
|
|
|
#endif /* MBEDTLS_NET_C */
|
|
|
|
#if defined(MBEDTLS_OID_C)
|
|
|
|
"MBEDTLS_OID_C",
|
|
|
|
#endif /* MBEDTLS_OID_C */
|
|
|
|
#if defined(MBEDTLS_PADLOCK_C)
|
|
|
|
"MBEDTLS_PADLOCK_C",
|
|
|
|
#endif /* MBEDTLS_PADLOCK_C */
|
|
|
|
#if defined(MBEDTLS_PEM_PARSE_C)
|
|
|
|
"MBEDTLS_PEM_PARSE_C",
|
|
|
|
#endif /* MBEDTLS_PEM_PARSE_C */
|
|
|
|
#if defined(MBEDTLS_PEM_WRITE_C)
|
|
|
|
"MBEDTLS_PEM_WRITE_C",
|
|
|
|
#endif /* MBEDTLS_PEM_WRITE_C */
|
|
|
|
#if defined(MBEDTLS_PK_C)
|
|
|
|
"MBEDTLS_PK_C",
|
|
|
|
#endif /* MBEDTLS_PK_C */
|
|
|
|
#if defined(MBEDTLS_PK_PARSE_C)
|
|
|
|
"MBEDTLS_PK_PARSE_C",
|
|
|
|
#endif /* MBEDTLS_PK_PARSE_C */
|
|
|
|
#if defined(MBEDTLS_PK_WRITE_C)
|
|
|
|
"MBEDTLS_PK_WRITE_C",
|
|
|
|
#endif /* MBEDTLS_PK_WRITE_C */
|
|
|
|
#if defined(MBEDTLS_PKCS5_C)
|
|
|
|
"MBEDTLS_PKCS5_C",
|
|
|
|
#endif /* MBEDTLS_PKCS5_C */
|
|
|
|
#if defined(MBEDTLS_PKCS11_C)
|
|
|
|
"MBEDTLS_PKCS11_C",
|
|
|
|
#endif /* MBEDTLS_PKCS11_C */
|
|
|
|
#if defined(MBEDTLS_PKCS12_C)
|
|
|
|
"MBEDTLS_PKCS12_C",
|
|
|
|
#endif /* MBEDTLS_PKCS12_C */
|
|
|
|
#if defined(MBEDTLS_PLATFORM_C)
|
|
|
|
"MBEDTLS_PLATFORM_C",
|
|
|
|
#endif /* MBEDTLS_PLATFORM_C */
|
|
|
|
#if defined(MBEDTLS_RIPEMD160_C)
|
|
|
|
"MBEDTLS_RIPEMD160_C",
|
|
|
|
#endif /* MBEDTLS_RIPEMD160_C */
|
|
|
|
#if defined(MBEDTLS_RSA_C)
|
|
|
|
"MBEDTLS_RSA_C",
|
|
|
|
#endif /* MBEDTLS_RSA_C */
|
|
|
|
#if defined(MBEDTLS_SHA1_C)
|
|
|
|
"MBEDTLS_SHA1_C",
|
|
|
|
#endif /* MBEDTLS_SHA1_C */
|
|
|
|
#if defined(MBEDTLS_SHA256_C)
|
|
|
|
"MBEDTLS_SHA256_C",
|
|
|
|
#endif /* MBEDTLS_SHA256_C */
|
|
|
|
#if defined(MBEDTLS_SHA512_C)
|
|
|
|
"MBEDTLS_SHA512_C",
|
|
|
|
#endif /* MBEDTLS_SHA512_C */
|
|
|
|
#if defined(MBEDTLS_SSL_CACHE_C)
|
|
|
|
"MBEDTLS_SSL_CACHE_C",
|
|
|
|
#endif /* MBEDTLS_SSL_CACHE_C */
|
|
|
|
#if defined(MBEDTLS_SSL_COOKIE_C)
|
|
|
|
"MBEDTLS_SSL_COOKIE_C",
|
|
|
|
#endif /* MBEDTLS_SSL_COOKIE_C */
|
|
|
|
#if defined(MBEDTLS_SSL_CLI_C)
|
|
|
|
"MBEDTLS_SSL_CLI_C",
|
|
|
|
#endif /* MBEDTLS_SSL_CLI_C */
|
|
|
|
#if defined(MBEDTLS_SSL_SRV_C)
|
|
|
|
"MBEDTLS_SSL_SRV_C",
|
|
|
|
#endif /* MBEDTLS_SSL_SRV_C */
|
|
|
|
#if defined(MBEDTLS_SSL_TLS_C)
|
|
|
|
"MBEDTLS_SSL_TLS_C",
|
|
|
|
#endif /* MBEDTLS_SSL_TLS_C */
|
|
|
|
#if defined(MBEDTLS_THREADING_C)
|
|
|
|
"MBEDTLS_THREADING_C",
|
|
|
|
#endif /* MBEDTLS_THREADING_C */
|
|
|
|
#if defined(MBEDTLS_TIMING_C)
|
|
|
|
"MBEDTLS_TIMING_C",
|
|
|
|
#endif /* MBEDTLS_TIMING_C */
|
|
|
|
#if defined(MBEDTLS_VERSION_C)
|
|
|
|
"MBEDTLS_VERSION_C",
|
|
|
|
#endif /* MBEDTLS_VERSION_C */
|
|
|
|
#if defined(MBEDTLS_X509_USE_C)
|
|
|
|
"MBEDTLS_X509_USE_C",
|
|
|
|
#endif /* MBEDTLS_X509_USE_C */
|
|
|
|
#if defined(MBEDTLS_X509_CRT_PARSE_C)
|
|
|
|
"MBEDTLS_X509_CRT_PARSE_C",
|
|
|
|
#endif /* MBEDTLS_X509_CRT_PARSE_C */
|
|
|
|
#if defined(MBEDTLS_X509_CRL_PARSE_C)
|
|
|
|
"MBEDTLS_X509_CRL_PARSE_C",
|
|
|
|
#endif /* MBEDTLS_X509_CRL_PARSE_C */
|
|
|
|
#if defined(MBEDTLS_X509_CSR_PARSE_C)
|
|
|
|
"MBEDTLS_X509_CSR_PARSE_C",
|
|
|
|
#endif /* MBEDTLS_X509_CSR_PARSE_C */
|
|
|
|
#if defined(MBEDTLS_X509_CREATE_C)
|
|
|
|
"MBEDTLS_X509_CREATE_C",
|
|
|
|
#endif /* MBEDTLS_X509_CREATE_C */
|
|
|
|
#if defined(MBEDTLS_X509_CRT_WRITE_C)
|
|
|
|
"MBEDTLS_X509_CRT_WRITE_C",
|
|
|
|
#endif /* MBEDTLS_X509_CRT_WRITE_C */
|
|
|
|
#if defined(MBEDTLS_X509_CSR_WRITE_C)
|
|
|
|
"MBEDTLS_X509_CSR_WRITE_C",
|
|
|
|
#endif /* MBEDTLS_X509_CSR_WRITE_C */
|
|
|
|
#if defined(MBEDTLS_XTEA_C)
|
|
|
|
"MBEDTLS_XTEA_C",
|
|
|
|
#endif /* MBEDTLS_XTEA_C */
|
|
|
|
#endif /* MBEDTLS_VERSION_FEATURES */
|
2014-04-30 11:49:44 +02:00
|
|
|
NULL
|
|
|
|
};
|
|
|
|
|
2015-04-08 12:49:31 +02:00
|
|
|
int mbedtls_version_check_feature( const char *feature )
|
2014-04-30 11:49:44 +02:00
|
|
|
{
|
|
|
|
const char **idx = features;
|
|
|
|
|
2014-04-30 17:01:25 +02:00
|
|
|
if( *idx == NULL )
|
|
|
|
return( -2 );
|
|
|
|
|
2014-04-30 11:49:44 +02:00
|
|
|
if( feature == NULL )
|
|
|
|
return( -1 );
|
|
|
|
|
|
|
|
while( *idx != NULL )
|
|
|
|
{
|
|
|
|
if( !strcasecmp( *idx, feature ) )
|
|
|
|
return( 0 );
|
|
|
|
idx++;
|
|
|
|
}
|
|
|
|
return( -1 );
|
|
|
|
}
|
|
|
|
|
2015-04-08 12:49:31 +02:00
|
|
|
#endif /* MBEDTLS_VERSION_C */
|