Hannes Tschofenig
/
aes-gcm-test-program
Example program to test AES-GCM functionality. Used for a workshop
SSL/library/version_features.c@0:796d0f61a05b, 2018-09-27 (annotated)
- Committer:
- HannesTschofenig
- Date:
- Thu Sep 27 06:34:22 2018 +0000
- Revision:
- 0:796d0f61a05b
Example AES-GCM test program
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
HannesTschofenig | 0:796d0f61a05b | 1 | /* |
HannesTschofenig | 0:796d0f61a05b | 2 | * Version feature information |
HannesTschofenig | 0:796d0f61a05b | 3 | * |
HannesTschofenig | 0:796d0f61a05b | 4 | * Copyright (C) 2006-2014, Brainspark B.V. |
HannesTschofenig | 0:796d0f61a05b | 5 | * |
HannesTschofenig | 0:796d0f61a05b | 6 | * This file is part of PolarSSL (http://www.polarssl.org) |
HannesTschofenig | 0:796d0f61a05b | 7 | * Lead Maintainer: Paul Bakker <polarssl_maintainer at polarssl.org> |
HannesTschofenig | 0:796d0f61a05b | 8 | * |
HannesTschofenig | 0:796d0f61a05b | 9 | * All rights reserved. |
HannesTschofenig | 0:796d0f61a05b | 10 | * |
HannesTschofenig | 0:796d0f61a05b | 11 | * This program is free software; you can redistribute it and/or modify |
HannesTschofenig | 0:796d0f61a05b | 12 | * it under the terms of the GNU General Public License as published by |
HannesTschofenig | 0:796d0f61a05b | 13 | * the Free Software Foundation; either version 2 of the License, or |
HannesTschofenig | 0:796d0f61a05b | 14 | * (at your option) any later version. |
HannesTschofenig | 0:796d0f61a05b | 15 | * |
HannesTschofenig | 0:796d0f61a05b | 16 | * This program is distributed in the hope that it will be useful, |
HannesTschofenig | 0:796d0f61a05b | 17 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
HannesTschofenig | 0:796d0f61a05b | 18 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
HannesTschofenig | 0:796d0f61a05b | 19 | * GNU General Public License for more details. |
HannesTschofenig | 0:796d0f61a05b | 20 | * |
HannesTschofenig | 0:796d0f61a05b | 21 | * You should have received a copy of the GNU General Public License along |
HannesTschofenig | 0:796d0f61a05b | 22 | * with this program; if not, write to the Free Software Foundation, Inc., |
HannesTschofenig | 0:796d0f61a05b | 23 | * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. |
HannesTschofenig | 0:796d0f61a05b | 24 | */ |
HannesTschofenig | 0:796d0f61a05b | 25 | |
HannesTschofenig | 0:796d0f61a05b | 26 | #if !defined(POLARSSL_CONFIG_FILE) |
HannesTschofenig | 0:796d0f61a05b | 27 | #include "polarssl/config.h" |
HannesTschofenig | 0:796d0f61a05b | 28 | #else |
HannesTschofenig | 0:796d0f61a05b | 29 | #include POLARSSL_CONFIG_FILE |
HannesTschofenig | 0:796d0f61a05b | 30 | #endif |
HannesTschofenig | 0:796d0f61a05b | 31 | |
HannesTschofenig | 0:796d0f61a05b | 32 | #if defined(POLARSSL_VERSION_C) |
HannesTschofenig | 0:796d0f61a05b | 33 | |
HannesTschofenig | 0:796d0f61a05b | 34 | #include "polarssl/version.h" |
HannesTschofenig | 0:796d0f61a05b | 35 | |
HannesTschofenig | 0:796d0f61a05b | 36 | #include <string.h> |
HannesTschofenig | 0:796d0f61a05b | 37 | |
HannesTschofenig | 0:796d0f61a05b | 38 | #if defined(_MSC_VER) && !defined strcasecmp && !defined(EFIX64) && \ |
HannesTschofenig | 0:796d0f61a05b | 39 | !defined(EFI32) |
HannesTschofenig | 0:796d0f61a05b | 40 | #define strcasecmp _stricmp |
HannesTschofenig | 0:796d0f61a05b | 41 | #endif |
HannesTschofenig | 0:796d0f61a05b | 42 | |
HannesTschofenig | 0:796d0f61a05b | 43 | const char *features[] = { |
HannesTschofenig | 0:796d0f61a05b | 44 | #if defined(POLARSSL_VERSION_FEATURES) |
HannesTschofenig | 0:796d0f61a05b | 45 | #if defined(POLARSSL_HAVE_INT8) |
HannesTschofenig | 0:796d0f61a05b | 46 | "POLARSSL_HAVE_INT8", |
HannesTschofenig | 0:796d0f61a05b | 47 | #endif /* POLARSSL_HAVE_INT8 */ |
HannesTschofenig | 0:796d0f61a05b | 48 | #if defined(POLARSSL_HAVE_INT16) |
HannesTschofenig | 0:796d0f61a05b | 49 | "POLARSSL_HAVE_INT16", |
HannesTschofenig | 0:796d0f61a05b | 50 | #endif /* POLARSSL_HAVE_INT16 */ |
HannesTschofenig | 0:796d0f61a05b | 51 | #if defined(POLARSSL_HAVE_LONGLONG) |
HannesTschofenig | 0:796d0f61a05b | 52 | "POLARSSL_HAVE_LONGLONG", |
HannesTschofenig | 0:796d0f61a05b | 53 | #endif /* POLARSSL_HAVE_LONGLONG */ |
HannesTschofenig | 0:796d0f61a05b | 54 | #if defined(POLARSSL_HAVE_ASM) |
HannesTschofenig | 0:796d0f61a05b | 55 | "POLARSSL_HAVE_ASM", |
HannesTschofenig | 0:796d0f61a05b | 56 | #endif /* POLARSSL_HAVE_ASM */ |
HannesTschofenig | 0:796d0f61a05b | 57 | #if defined(POLARSSL_HAVE_SSE2) |
HannesTschofenig | 0:796d0f61a05b | 58 | "POLARSSL_HAVE_SSE2", |
HannesTschofenig | 0:796d0f61a05b | 59 | #endif /* POLARSSL_HAVE_SSE2 */ |
HannesTschofenig | 0:796d0f61a05b | 60 | #if defined(POLARSSL_HAVE_TIME) |
HannesTschofenig | 0:796d0f61a05b | 61 | "POLARSSL_HAVE_TIME", |
HannesTschofenig | 0:796d0f61a05b | 62 | #endif /* POLARSSL_HAVE_TIME */ |
HannesTschofenig | 0:796d0f61a05b | 63 | #if defined(POLARSSL_HAVE_IPV6) |
HannesTschofenig | 0:796d0f61a05b | 64 | "POLARSSL_HAVE_IPV6", |
HannesTschofenig | 0:796d0f61a05b | 65 | #endif /* POLARSSL_HAVE_IPV6 */ |
HannesTschofenig | 0:796d0f61a05b | 66 | #if defined(POLARSSL_PLATFORM_MEMORY) |
HannesTschofenig | 0:796d0f61a05b | 67 | "POLARSSL_PLATFORM_MEMORY", |
HannesTschofenig | 0:796d0f61a05b | 68 | #endif /* POLARSSL_PLATFORM_MEMORY */ |
HannesTschofenig | 0:796d0f61a05b | 69 | #if defined(POLARSSL_PLATFORM_NO_STD_FUNCTIONS) |
HannesTschofenig | 0:796d0f61a05b | 70 | "POLARSSL_PLATFORM_NO_STD_FUNCTIONS", |
HannesTschofenig | 0:796d0f61a05b | 71 | #endif /* POLARSSL_PLATFORM_NO_STD_FUNCTIONS */ |
HannesTschofenig | 0:796d0f61a05b | 72 | #if defined(POLARSSL_PLATFORM_PRINTF_ALT) |
HannesTschofenig | 0:796d0f61a05b | 73 | "POLARSSL_PLATFORM_PRINTF_ALT", |
HannesTschofenig | 0:796d0f61a05b | 74 | #endif /* POLARSSL_PLATFORM_PRINTF_ALT */ |
HannesTschofenig | 0:796d0f61a05b | 75 | #if defined(POLARSSL_PLATFORM_FPRINTF_ALT) |
HannesTschofenig | 0:796d0f61a05b | 76 | "POLARSSL_PLATFORM_FPRINTF_ALT", |
HannesTschofenig | 0:796d0f61a05b | 77 | #endif /* POLARSSL_PLATFORM_FPRINTF_ALT */ |
HannesTschofenig | 0:796d0f61a05b | 78 | #if defined(POLARSSL_TIMING_ALT) |
HannesTschofenig | 0:796d0f61a05b | 79 | "POLARSSL_TIMING_ALT", |
HannesTschofenig | 0:796d0f61a05b | 80 | #endif /* POLARSSL_TIMING_ALT */ |
HannesTschofenig | 0:796d0f61a05b | 81 | #if defined(POLARSSL_AES_ALT) |
HannesTschofenig | 0:796d0f61a05b | 82 | "POLARSSL_AES_ALT", |
HannesTschofenig | 0:796d0f61a05b | 83 | #endif /* POLARSSL_AES_ALT */ |
HannesTschofenig | 0:796d0f61a05b | 84 | #if defined(POLARSSL_ARC4_ALT) |
HannesTschofenig | 0:796d0f61a05b | 85 | "POLARSSL_ARC4_ALT", |
HannesTschofenig | 0:796d0f61a05b | 86 | #endif /* POLARSSL_ARC4_ALT */ |
HannesTschofenig | 0:796d0f61a05b | 87 | #if defined(POLARSSL_BLOWFISH_ALT) |
HannesTschofenig | 0:796d0f61a05b | 88 | "POLARSSL_BLOWFISH_ALT", |
HannesTschofenig | 0:796d0f61a05b | 89 | #endif /* POLARSSL_BLOWFISH_ALT */ |
HannesTschofenig | 0:796d0f61a05b | 90 | #if defined(POLARSSL_CAMELLIA_ALT) |
HannesTschofenig | 0:796d0f61a05b | 91 | "POLARSSL_CAMELLIA_ALT", |
HannesTschofenig | 0:796d0f61a05b | 92 | #endif /* POLARSSL_CAMELLIA_ALT */ |
HannesTschofenig | 0:796d0f61a05b | 93 | #if defined(POLARSSL_DES_ALT) |
HannesTschofenig | 0:796d0f61a05b | 94 | "POLARSSL_DES_ALT", |
HannesTschofenig | 0:796d0f61a05b | 95 | #endif /* POLARSSL_DES_ALT */ |
HannesTschofenig | 0:796d0f61a05b | 96 | #if defined(POLARSSL_XTEA_ALT) |
HannesTschofenig | 0:796d0f61a05b | 97 | "POLARSSL_XTEA_ALT", |
HannesTschofenig | 0:796d0f61a05b | 98 | #endif /* POLARSSL_XTEA_ALT */ |
HannesTschofenig | 0:796d0f61a05b | 99 | #if defined(POLARSSL_MD2_ALT) |
HannesTschofenig | 0:796d0f61a05b | 100 | "POLARSSL_MD2_ALT", |
HannesTschofenig | 0:796d0f61a05b | 101 | #endif /* POLARSSL_MD2_ALT */ |
HannesTschofenig | 0:796d0f61a05b | 102 | #if defined(POLARSSL_MD4_ALT) |
HannesTschofenig | 0:796d0f61a05b | 103 | "POLARSSL_MD4_ALT", |
HannesTschofenig | 0:796d0f61a05b | 104 | #endif /* POLARSSL_MD4_ALT */ |
HannesTschofenig | 0:796d0f61a05b | 105 | #if defined(POLARSSL_MD5_ALT) |
HannesTschofenig | 0:796d0f61a05b | 106 | "POLARSSL_MD5_ALT", |
HannesTschofenig | 0:796d0f61a05b | 107 | #endif /* POLARSSL_MD5_ALT */ |
HannesTschofenig | 0:796d0f61a05b | 108 | #if defined(POLARSSL_RIPEMD160_ALT) |
HannesTschofenig | 0:796d0f61a05b | 109 | "POLARSSL_RIPEMD160_ALT", |
HannesTschofenig | 0:796d0f61a05b | 110 | #endif /* POLARSSL_RIPEMD160_ALT */ |
HannesTschofenig | 0:796d0f61a05b | 111 | #if defined(POLARSSL_SHA1_ALT) |
HannesTschofenig | 0:796d0f61a05b | 112 | "POLARSSL_SHA1_ALT", |
HannesTschofenig | 0:796d0f61a05b | 113 | #endif /* POLARSSL_SHA1_ALT */ |
HannesTschofenig | 0:796d0f61a05b | 114 | #if defined(POLARSSL_SHA256_ALT) |
HannesTschofenig | 0:796d0f61a05b | 115 | "POLARSSL_SHA256_ALT", |
HannesTschofenig | 0:796d0f61a05b | 116 | #endif /* POLARSSL_SHA256_ALT */ |
HannesTschofenig | 0:796d0f61a05b | 117 | #if defined(POLARSSL_SHA512_ALT) |
HannesTschofenig | 0:796d0f61a05b | 118 | "POLARSSL_SHA512_ALT", |
HannesTschofenig | 0:796d0f61a05b | 119 | #endif /* POLARSSL_SHA512_ALT */ |
HannesTschofenig | 0:796d0f61a05b | 120 | #if defined(POLARSSL_AES_ROM_TABLES) |
HannesTschofenig | 0:796d0f61a05b | 121 | "POLARSSL_AES_ROM_TABLES", |
HannesTschofenig | 0:796d0f61a05b | 122 | #endif /* POLARSSL_AES_ROM_TABLES */ |
HannesTschofenig | 0:796d0f61a05b | 123 | #if defined(POLARSSL_CIPHER_MODE_CBC) |
HannesTschofenig | 0:796d0f61a05b | 124 | "POLARSSL_CIPHER_MODE_CBC", |
HannesTschofenig | 0:796d0f61a05b | 125 | #endif /* POLARSSL_CIPHER_MODE_CBC */ |
HannesTschofenig | 0:796d0f61a05b | 126 | #if defined(POLARSSL_CIPHER_MODE_CFB) |
HannesTschofenig | 0:796d0f61a05b | 127 | "POLARSSL_CIPHER_MODE_CFB", |
HannesTschofenig | 0:796d0f61a05b | 128 | #endif /* POLARSSL_CIPHER_MODE_CFB */ |
HannesTschofenig | 0:796d0f61a05b | 129 | #if defined(POLARSSL_CIPHER_MODE_CTR) |
HannesTschofenig | 0:796d0f61a05b | 130 | "POLARSSL_CIPHER_MODE_CTR", |
HannesTschofenig | 0:796d0f61a05b | 131 | #endif /* POLARSSL_CIPHER_MODE_CTR */ |
HannesTschofenig | 0:796d0f61a05b | 132 | #if defined(POLARSSL_CIPHER_NULL_CIPHER) |
HannesTschofenig | 0:796d0f61a05b | 133 | "POLARSSL_CIPHER_NULL_CIPHER", |
HannesTschofenig | 0:796d0f61a05b | 134 | #endif /* POLARSSL_CIPHER_NULL_CIPHER */ |
HannesTschofenig | 0:796d0f61a05b | 135 | #if defined(POLARSSL_CIPHER_PADDING_PKCS7) |
HannesTschofenig | 0:796d0f61a05b | 136 | "POLARSSL_CIPHER_PADDING_PKCS7", |
HannesTschofenig | 0:796d0f61a05b | 137 | #endif /* POLARSSL_CIPHER_PADDING_PKCS7 */ |
HannesTschofenig | 0:796d0f61a05b | 138 | #if defined(POLARSSL_CIPHER_PADDING_ONE_AND_ZEROS) |
HannesTschofenig | 0:796d0f61a05b | 139 | "POLARSSL_CIPHER_PADDING_ONE_AND_ZEROS", |
HannesTschofenig | 0:796d0f61a05b | 140 | #endif /* POLARSSL_CIPHER_PADDING_ONE_AND_ZEROS */ |
HannesTschofenig | 0:796d0f61a05b | 141 | #if defined(POLARSSL_CIPHER_PADDING_ZEROS_AND_LEN) |
HannesTschofenig | 0:796d0f61a05b | 142 | "POLARSSL_CIPHER_PADDING_ZEROS_AND_LEN", |
HannesTschofenig | 0:796d0f61a05b | 143 | #endif /* POLARSSL_CIPHER_PADDING_ZEROS_AND_LEN */ |
HannesTschofenig | 0:796d0f61a05b | 144 | #if defined(POLARSSL_CIPHER_PADDING_ZEROS) |
HannesTschofenig | 0:796d0f61a05b | 145 | "POLARSSL_CIPHER_PADDING_ZEROS", |
HannesTschofenig | 0:796d0f61a05b | 146 | #endif /* POLARSSL_CIPHER_PADDING_ZEROS */ |
HannesTschofenig | 0:796d0f61a05b | 147 | #if defined(POLARSSL_ENABLE_WEAK_CIPHERSUITES) |
HannesTschofenig | 0:796d0f61a05b | 148 | "POLARSSL_ENABLE_WEAK_CIPHERSUITES", |
HannesTschofenig | 0:796d0f61a05b | 149 | #endif /* POLARSSL_ENABLE_WEAK_CIPHERSUITES */ |
HannesTschofenig | 0:796d0f61a05b | 150 | #if defined(POLARSSL_ECP_DP_SECP192R1_ENABLED) |
HannesTschofenig | 0:796d0f61a05b | 151 | "POLARSSL_ECP_DP_SECP192R1_ENABLED", |
HannesTschofenig | 0:796d0f61a05b | 152 | #endif /* POLARSSL_ECP_DP_SECP192R1_ENABLED */ |
HannesTschofenig | 0:796d0f61a05b | 153 | #if defined(POLARSSL_ECP_DP_SECP224R1_ENABLED) |
HannesTschofenig | 0:796d0f61a05b | 154 | "POLARSSL_ECP_DP_SECP224R1_ENABLED", |
HannesTschofenig | 0:796d0f61a05b | 155 | #endif /* POLARSSL_ECP_DP_SECP224R1_ENABLED */ |
HannesTschofenig | 0:796d0f61a05b | 156 | #if defined(POLARSSL_ECP_DP_SECP256R1_ENABLED) |
HannesTschofenig | 0:796d0f61a05b | 157 | "POLARSSL_ECP_DP_SECP256R1_ENABLED", |
HannesTschofenig | 0:796d0f61a05b | 158 | #endif /* POLARSSL_ECP_DP_SECP256R1_ENABLED */ |
HannesTschofenig | 0:796d0f61a05b | 159 | #if defined(POLARSSL_ECP_DP_SECP384R1_ENABLED) |
HannesTschofenig | 0:796d0f61a05b | 160 | "POLARSSL_ECP_DP_SECP384R1_ENABLED", |
HannesTschofenig | 0:796d0f61a05b | 161 | #endif /* POLARSSL_ECP_DP_SECP384R1_ENABLED */ |
HannesTschofenig | 0:796d0f61a05b | 162 | #if defined(POLARSSL_ECP_DP_SECP521R1_ENABLED) |
HannesTschofenig | 0:796d0f61a05b | 163 | "POLARSSL_ECP_DP_SECP521R1_ENABLED", |
HannesTschofenig | 0:796d0f61a05b | 164 | #endif /* POLARSSL_ECP_DP_SECP521R1_ENABLED */ |
HannesTschofenig | 0:796d0f61a05b | 165 | #if defined(POLARSSL_ECP_DP_SECP192K1_ENABLED) |
HannesTschofenig | 0:796d0f61a05b | 166 | "POLARSSL_ECP_DP_SECP192K1_ENABLED", |
HannesTschofenig | 0:796d0f61a05b | 167 | #endif /* POLARSSL_ECP_DP_SECP192K1_ENABLED */ |
HannesTschofenig | 0:796d0f61a05b | 168 | #if defined(POLARSSL_ECP_DP_SECP224K1_ENABLED) |
HannesTschofenig | 0:796d0f61a05b | 169 | "POLARSSL_ECP_DP_SECP224K1_ENABLED", |
HannesTschofenig | 0:796d0f61a05b | 170 | #endif /* POLARSSL_ECP_DP_SECP224K1_ENABLED */ |
HannesTschofenig | 0:796d0f61a05b | 171 | #if defined(POLARSSL_ECP_DP_SECP256K1_ENABLED) |
HannesTschofenig | 0:796d0f61a05b | 172 | "POLARSSL_ECP_DP_SECP256K1_ENABLED", |
HannesTschofenig | 0:796d0f61a05b | 173 | #endif /* POLARSSL_ECP_DP_SECP256K1_ENABLED */ |
HannesTschofenig | 0:796d0f61a05b | 174 | #if defined(POLARSSL_ECP_DP_BP256R1_ENABLED) |
HannesTschofenig | 0:796d0f61a05b | 175 | "POLARSSL_ECP_DP_BP256R1_ENABLED", |
HannesTschofenig | 0:796d0f61a05b | 176 | #endif /* POLARSSL_ECP_DP_BP256R1_ENABLED */ |
HannesTschofenig | 0:796d0f61a05b | 177 | #if defined(POLARSSL_ECP_DP_BP384R1_ENABLED) |
HannesTschofenig | 0:796d0f61a05b | 178 | "POLARSSL_ECP_DP_BP384R1_ENABLED", |
HannesTschofenig | 0:796d0f61a05b | 179 | #endif /* POLARSSL_ECP_DP_BP384R1_ENABLED */ |
HannesTschofenig | 0:796d0f61a05b | 180 | #if defined(POLARSSL_ECP_DP_BP512R1_ENABLED) |
HannesTschofenig | 0:796d0f61a05b | 181 | "POLARSSL_ECP_DP_BP512R1_ENABLED", |
HannesTschofenig | 0:796d0f61a05b | 182 | #endif /* POLARSSL_ECP_DP_BP512R1_ENABLED */ |
HannesTschofenig | 0:796d0f61a05b | 183 | #if defined(POLARSSL_ECP_DP_M221_ENABLED) |
HannesTschofenig | 0:796d0f61a05b | 184 | "POLARSSL_ECP_DP_M221_ENABLED", |
HannesTschofenig | 0:796d0f61a05b | 185 | #endif /* POLARSSL_ECP_DP_M221_ENABLED */ |
HannesTschofenig | 0:796d0f61a05b | 186 | #if defined(POLARSSL_ECP_DP_M255_ENABLED) |
HannesTschofenig | 0:796d0f61a05b | 187 | "POLARSSL_ECP_DP_M255_ENABLED", |
HannesTschofenig | 0:796d0f61a05b | 188 | #endif /* POLARSSL_ECP_DP_M255_ENABLED */ |
HannesTschofenig | 0:796d0f61a05b | 189 | #if defined(POLARSSL_ECP_DP_M383_ENABLED) |
HannesTschofenig | 0:796d0f61a05b | 190 | "POLARSSL_ECP_DP_M383_ENABLED", |
HannesTschofenig | 0:796d0f61a05b | 191 | #endif /* POLARSSL_ECP_DP_M383_ENABLED */ |
HannesTschofenig | 0:796d0f61a05b | 192 | #if defined(POLARSSL_ECP_DP_M511_ENABLED) |
HannesTschofenig | 0:796d0f61a05b | 193 | "POLARSSL_ECP_DP_M511_ENABLED", |
HannesTschofenig | 0:796d0f61a05b | 194 | #endif /* POLARSSL_ECP_DP_M511_ENABLED */ |
HannesTschofenig | 0:796d0f61a05b | 195 | #if defined(POLARSSL_ECP_NIST_OPTIM) |
HannesTschofenig | 0:796d0f61a05b | 196 | "POLARSSL_ECP_NIST_OPTIM", |
HannesTschofenig | 0:796d0f61a05b | 197 | #endif /* POLARSSL_ECP_NIST_OPTIM */ |
HannesTschofenig | 0:796d0f61a05b | 198 | #if defined(POLARSSL_ECDSA_DETERMINISTIC) |
HannesTschofenig | 0:796d0f61a05b | 199 | "POLARSSL_ECDSA_DETERMINISTIC", |
HannesTschofenig | 0:796d0f61a05b | 200 | #endif /* POLARSSL_ECDSA_DETERMINISTIC */ |
HannesTschofenig | 0:796d0f61a05b | 201 | #if defined(POLARSSL_KEY_EXCHANGE_PSK_ENABLED) |
HannesTschofenig | 0:796d0f61a05b | 202 | "POLARSSL_KEY_EXCHANGE_PSK_ENABLED", |
HannesTschofenig | 0:796d0f61a05b | 203 | #endif /* POLARSSL_KEY_EXCHANGE_PSK_ENABLED */ |
HannesTschofenig | 0:796d0f61a05b | 204 | #if defined(POLARSSL_KEY_EXCHANGE_DHE_PSK_ENABLED) |
HannesTschofenig | 0:796d0f61a05b | 205 | "POLARSSL_KEY_EXCHANGE_DHE_PSK_ENABLED", |
HannesTschofenig | 0:796d0f61a05b | 206 | #endif /* POLARSSL_KEY_EXCHANGE_DHE_PSK_ENABLED */ |
HannesTschofenig | 0:796d0f61a05b | 207 | #if defined(POLARSSL_KEY_EXCHANGE_ECDHE_PSK_ENABLED) |
HannesTschofenig | 0:796d0f61a05b | 208 | "POLARSSL_KEY_EXCHANGE_ECDHE_PSK_ENABLED", |
HannesTschofenig | 0:796d0f61a05b | 209 | #endif /* POLARSSL_KEY_EXCHANGE_ECDHE_PSK_ENABLED */ |
HannesTschofenig | 0:796d0f61a05b | 210 | #if defined(POLARSSL_KEY_EXCHANGE_RSA_PSK_ENABLED) |
HannesTschofenig | 0:796d0f61a05b | 211 | "POLARSSL_KEY_EXCHANGE_RSA_PSK_ENABLED", |
HannesTschofenig | 0:796d0f61a05b | 212 | #endif /* POLARSSL_KEY_EXCHANGE_RSA_PSK_ENABLED */ |
HannesTschofenig | 0:796d0f61a05b | 213 | #if defined(POLARSSL_KEY_EXCHANGE_RSA_ENABLED) |
HannesTschofenig | 0:796d0f61a05b | 214 | "POLARSSL_KEY_EXCHANGE_RSA_ENABLED", |
HannesTschofenig | 0:796d0f61a05b | 215 | #endif /* POLARSSL_KEY_EXCHANGE_RSA_ENABLED */ |
HannesTschofenig | 0:796d0f61a05b | 216 | #if defined(POLARSSL_KEY_EXCHANGE_DHE_RSA_ENABLED) |
HannesTschofenig | 0:796d0f61a05b | 217 | "POLARSSL_KEY_EXCHANGE_DHE_RSA_ENABLED", |
HannesTschofenig | 0:796d0f61a05b | 218 | #endif /* POLARSSL_KEY_EXCHANGE_DHE_RSA_ENABLED */ |
HannesTschofenig | 0:796d0f61a05b | 219 | #if defined(POLARSSL_KEY_EXCHANGE_ECDHE_RSA_ENABLED) |
HannesTschofenig | 0:796d0f61a05b | 220 | "POLARSSL_KEY_EXCHANGE_ECDHE_RSA_ENABLED", |
HannesTschofenig | 0:796d0f61a05b | 221 | #endif /* POLARSSL_KEY_EXCHANGE_ECDHE_RSA_ENABLED */ |
HannesTschofenig | 0:796d0f61a05b | 222 | #if defined(POLARSSL_KEY_EXCHANGE_ECDHE_ECDSA_ENABLED) |
HannesTschofenig | 0:796d0f61a05b | 223 | "POLARSSL_KEY_EXCHANGE_ECDHE_ECDSA_ENABLED", |
HannesTschofenig | 0:796d0f61a05b | 224 | #endif /* POLARSSL_KEY_EXCHANGE_ECDHE_ECDSA_ENABLED */ |
HannesTschofenig | 0:796d0f61a05b | 225 | #if defined(POLARSSL_KEY_EXCHANGE_ECDH_ECDSA_ENABLED) |
HannesTschofenig | 0:796d0f61a05b | 226 | "POLARSSL_KEY_EXCHANGE_ECDH_ECDSA_ENABLED", |
HannesTschofenig | 0:796d0f61a05b | 227 | #endif /* POLARSSL_KEY_EXCHANGE_ECDH_ECDSA_ENABLED */ |
HannesTschofenig | 0:796d0f61a05b | 228 | #if defined(POLARSSL_KEY_EXCHANGE_ECDH_RSA_ENABLED) |
HannesTschofenig | 0:796d0f61a05b | 229 | "POLARSSL_KEY_EXCHANGE_ECDH_RSA_ENABLED", |
HannesTschofenig | 0:796d0f61a05b | 230 | #endif /* POLARSSL_KEY_EXCHANGE_ECDH_RSA_ENABLED */ |
HannesTschofenig | 0:796d0f61a05b | 231 | #if defined(POLARSSL_PK_PARSE_EC_EXTENDED) |
HannesTschofenig | 0:796d0f61a05b | 232 | "POLARSSL_PK_PARSE_EC_EXTENDED", |
HannesTschofenig | 0:796d0f61a05b | 233 | #endif /* POLARSSL_PK_PARSE_EC_EXTENDED */ |
HannesTschofenig | 0:796d0f61a05b | 234 | #if defined(POLARSSL_ERROR_STRERROR_BC) |
HannesTschofenig | 0:796d0f61a05b | 235 | "POLARSSL_ERROR_STRERROR_BC", |
HannesTschofenig | 0:796d0f61a05b | 236 | #endif /* POLARSSL_ERROR_STRERROR_BC */ |
HannesTschofenig | 0:796d0f61a05b | 237 | #if defined(POLARSSL_ERROR_STRERROR_DUMMY) |
HannesTschofenig | 0:796d0f61a05b | 238 | "POLARSSL_ERROR_STRERROR_DUMMY", |
HannesTschofenig | 0:796d0f61a05b | 239 | #endif /* POLARSSL_ERROR_STRERROR_DUMMY */ |
HannesTschofenig | 0:796d0f61a05b | 240 | #if defined(POLARSSL_GENPRIME) |
HannesTschofenig | 0:796d0f61a05b | 241 | "POLARSSL_GENPRIME", |
HannesTschofenig | 0:796d0f61a05b | 242 | #endif /* POLARSSL_GENPRIME */ |
HannesTschofenig | 0:796d0f61a05b | 243 | #if defined(POLARSSL_FS_IO) |
HannesTschofenig | 0:796d0f61a05b | 244 | "POLARSSL_FS_IO", |
HannesTschofenig | 0:796d0f61a05b | 245 | #endif /* POLARSSL_FS_IO */ |
HannesTschofenig | 0:796d0f61a05b | 246 | #if defined(POLARSSL_NO_DEFAULT_ENTROPY_SOURCES) |
HannesTschofenig | 0:796d0f61a05b | 247 | "POLARSSL_NO_DEFAULT_ENTROPY_SOURCES", |
HannesTschofenig | 0:796d0f61a05b | 248 | #endif /* POLARSSL_NO_DEFAULT_ENTROPY_SOURCES */ |
HannesTschofenig | 0:796d0f61a05b | 249 | #if defined(POLARSSL_NO_PLATFORM_ENTROPY) |
HannesTschofenig | 0:796d0f61a05b | 250 | "POLARSSL_NO_PLATFORM_ENTROPY", |
HannesTschofenig | 0:796d0f61a05b | 251 | #endif /* POLARSSL_NO_PLATFORM_ENTROPY */ |
HannesTschofenig | 0:796d0f61a05b | 252 | #if defined(POLARSSL_ENTROPY_FORCE_SHA256) |
HannesTschofenig | 0:796d0f61a05b | 253 | "POLARSSL_ENTROPY_FORCE_SHA256", |
HannesTschofenig | 0:796d0f61a05b | 254 | #endif /* POLARSSL_ENTROPY_FORCE_SHA256 */ |
HannesTschofenig | 0:796d0f61a05b | 255 | #if defined(POLARSSL_MEMORY_DEBUG) |
HannesTschofenig | 0:796d0f61a05b | 256 | "POLARSSL_MEMORY_DEBUG", |
HannesTschofenig | 0:796d0f61a05b | 257 | #endif /* POLARSSL_MEMORY_DEBUG */ |
HannesTschofenig | 0:796d0f61a05b | 258 | #if defined(POLARSSL_MEMORY_BACKTRACE) |
HannesTschofenig | 0:796d0f61a05b | 259 | "POLARSSL_MEMORY_BACKTRACE", |
HannesTschofenig | 0:796d0f61a05b | 260 | #endif /* POLARSSL_MEMORY_BACKTRACE */ |
HannesTschofenig | 0:796d0f61a05b | 261 | #if defined(POLARSSL_PKCS1_V15) |
HannesTschofenig | 0:796d0f61a05b | 262 | "POLARSSL_PKCS1_V15", |
HannesTschofenig | 0:796d0f61a05b | 263 | #endif /* POLARSSL_PKCS1_V15 */ |
HannesTschofenig | 0:796d0f61a05b | 264 | #if defined(POLARSSL_PKCS1_V21) |
HannesTschofenig | 0:796d0f61a05b | 265 | "POLARSSL_PKCS1_V21", |
HannesTschofenig | 0:796d0f61a05b | 266 | #endif /* POLARSSL_PKCS1_V21 */ |
HannesTschofenig | 0:796d0f61a05b | 267 | #if defined(POLARSSL_RSA_NO_CRT) |
HannesTschofenig | 0:796d0f61a05b | 268 | "POLARSSL_RSA_NO_CRT", |
HannesTschofenig | 0:796d0f61a05b | 269 | #endif /* POLARSSL_RSA_NO_CRT */ |
HannesTschofenig | 0:796d0f61a05b | 270 | #if defined(POLARSSL_SELF_TEST) |
HannesTschofenig | 0:796d0f61a05b | 271 | "POLARSSL_SELF_TEST", |
HannesTschofenig | 0:796d0f61a05b | 272 | #endif /* POLARSSL_SELF_TEST */ |
HannesTschofenig | 0:796d0f61a05b | 273 | #if defined(POLARSSL_SSL_ALERT_MESSAGES) |
HannesTschofenig | 0:796d0f61a05b | 274 | "POLARSSL_SSL_ALERT_MESSAGES", |
HannesTschofenig | 0:796d0f61a05b | 275 | #endif /* POLARSSL_SSL_ALERT_MESSAGES */ |
HannesTschofenig | 0:796d0f61a05b | 276 | #if defined(POLARSSL_SSL_DEBUG_ALL) |
HannesTschofenig | 0:796d0f61a05b | 277 | "POLARSSL_SSL_DEBUG_ALL", |
HannesTschofenig | 0:796d0f61a05b | 278 | #endif /* POLARSSL_SSL_DEBUG_ALL */ |
HannesTschofenig | 0:796d0f61a05b | 279 | #if defined(POLARSSL_SSL_HW_RECORD_ACCEL) |
HannesTschofenig | 0:796d0f61a05b | 280 | "POLARSSL_SSL_HW_RECORD_ACCEL", |
HannesTschofenig | 0:796d0f61a05b | 281 | #endif /* POLARSSL_SSL_HW_RECORD_ACCEL */ |
HannesTschofenig | 0:796d0f61a05b | 282 | #if defined(POLARSSL_SSL_SRV_SUPPORT_SSLV2_CLIENT_HELLO) |
HannesTschofenig | 0:796d0f61a05b | 283 | "POLARSSL_SSL_SRV_SUPPORT_SSLV2_CLIENT_HELLO", |
HannesTschofenig | 0:796d0f61a05b | 284 | #endif /* POLARSSL_SSL_SRV_SUPPORT_SSLV2_CLIENT_HELLO */ |
HannesTschofenig | 0:796d0f61a05b | 285 | #if defined(POLARSSL_SSL_SRV_RESPECT_CLIENT_PREFERENCE) |
HannesTschofenig | 0:796d0f61a05b | 286 | "POLARSSL_SSL_SRV_RESPECT_CLIENT_PREFERENCE", |
HannesTschofenig | 0:796d0f61a05b | 287 | #endif /* POLARSSL_SSL_SRV_RESPECT_CLIENT_PREFERENCE */ |
HannesTschofenig | 0:796d0f61a05b | 288 | #if defined(POLARSSL_SSL_MAX_FRAGMENT_LENGTH) |
HannesTschofenig | 0:796d0f61a05b | 289 | "POLARSSL_SSL_MAX_FRAGMENT_LENGTH", |
HannesTschofenig | 0:796d0f61a05b | 290 | #endif /* POLARSSL_SSL_MAX_FRAGMENT_LENGTH */ |
HannesTschofenig | 0:796d0f61a05b | 291 | #if defined(POLARSSL_SSL_PROTO_SSL3) |
HannesTschofenig | 0:796d0f61a05b | 292 | "POLARSSL_SSL_PROTO_SSL3", |
HannesTschofenig | 0:796d0f61a05b | 293 | #endif /* POLARSSL_SSL_PROTO_SSL3 */ |
HannesTschofenig | 0:796d0f61a05b | 294 | #if defined(POLARSSL_SSL_PROTO_TLS1) |
HannesTschofenig | 0:796d0f61a05b | 295 | "POLARSSL_SSL_PROTO_TLS1", |
HannesTschofenig | 0:796d0f61a05b | 296 | #endif /* POLARSSL_SSL_PROTO_TLS1 */ |
HannesTschofenig | 0:796d0f61a05b | 297 | #if defined(POLARSSL_SSL_PROTO_TLS1_1) |
HannesTschofenig | 0:796d0f61a05b | 298 | "POLARSSL_SSL_PROTO_TLS1_1", |
HannesTschofenig | 0:796d0f61a05b | 299 | #endif /* POLARSSL_SSL_PROTO_TLS1_1 */ |
HannesTschofenig | 0:796d0f61a05b | 300 | #if defined(POLARSSL_SSL_PROTO_TLS1_2) |
HannesTschofenig | 0:796d0f61a05b | 301 | "POLARSSL_SSL_PROTO_TLS1_2", |
HannesTschofenig | 0:796d0f61a05b | 302 | #endif /* POLARSSL_SSL_PROTO_TLS1_2 */ |
HannesTschofenig | 0:796d0f61a05b | 303 | #if defined(POLARSSL_SSL_ALPN) |
HannesTschofenig | 0:796d0f61a05b | 304 | "POLARSSL_SSL_ALPN", |
HannesTschofenig | 0:796d0f61a05b | 305 | #endif /* POLARSSL_SSL_ALPN */ |
HannesTschofenig | 0:796d0f61a05b | 306 | #if defined(POLARSSL_SSL_SESSION_TICKETS) |
HannesTschofenig | 0:796d0f61a05b | 307 | "POLARSSL_SSL_SESSION_TICKETS", |
HannesTschofenig | 0:796d0f61a05b | 308 | #endif /* POLARSSL_SSL_SESSION_TICKETS */ |
HannesTschofenig | 0:796d0f61a05b | 309 | #if defined(POLARSSL_SSL_SERVER_NAME_INDICATION) |
HannesTschofenig | 0:796d0f61a05b | 310 | "POLARSSL_SSL_SERVER_NAME_INDICATION", |
HannesTschofenig | 0:796d0f61a05b | 311 | #endif /* POLARSSL_SSL_SERVER_NAME_INDICATION */ |
HannesTschofenig | 0:796d0f61a05b | 312 | #if defined(POLARSSL_SSL_TRUNCATED_HMAC) |
HannesTschofenig | 0:796d0f61a05b | 313 | "POLARSSL_SSL_TRUNCATED_HMAC", |
HannesTschofenig | 0:796d0f61a05b | 314 | #endif /* POLARSSL_SSL_TRUNCATED_HMAC */ |
HannesTschofenig | 0:796d0f61a05b | 315 | #if defined(POLARSSL_SSL_SET_CURVES) |
HannesTschofenig | 0:796d0f61a05b | 316 | "POLARSSL_SSL_SET_CURVES", |
HannesTschofenig | 0:796d0f61a05b | 317 | #endif /* POLARSSL_SSL_SET_CURVES */ |
HannesTschofenig | 0:796d0f61a05b | 318 | #if defined(POLARSSL_THREADING_ALT) |
HannesTschofenig | 0:796d0f61a05b | 319 | "POLARSSL_THREADING_ALT", |
HannesTschofenig | 0:796d0f61a05b | 320 | #endif /* POLARSSL_THREADING_ALT */ |
HannesTschofenig | 0:796d0f61a05b | 321 | #if defined(POLARSSL_THREADING_PTHREAD) |
HannesTschofenig | 0:796d0f61a05b | 322 | "POLARSSL_THREADING_PTHREAD", |
HannesTschofenig | 0:796d0f61a05b | 323 | #endif /* POLARSSL_THREADING_PTHREAD */ |
HannesTschofenig | 0:796d0f61a05b | 324 | #if defined(POLARSSL_VERSION_FEATURES) |
HannesTschofenig | 0:796d0f61a05b | 325 | "POLARSSL_VERSION_FEATURES", |
HannesTschofenig | 0:796d0f61a05b | 326 | #endif /* POLARSSL_VERSION_FEATURES */ |
HannesTschofenig | 0:796d0f61a05b | 327 | #if defined(POLARSSL_X509_ALLOW_EXTENSIONS_NON_V3) |
HannesTschofenig | 0:796d0f61a05b | 328 | "POLARSSL_X509_ALLOW_EXTENSIONS_NON_V3", |
HannesTschofenig | 0:796d0f61a05b | 329 | #endif /* POLARSSL_X509_ALLOW_EXTENSIONS_NON_V3 */ |
HannesTschofenig | 0:796d0f61a05b | 330 | #if defined(POLARSSL_X509_ALLOW_UNSUPPORTED_CRITICAL_EXTENSION) |
HannesTschofenig | 0:796d0f61a05b | 331 | "POLARSSL_X509_ALLOW_UNSUPPORTED_CRITICAL_EXTENSION", |
HannesTschofenig | 0:796d0f61a05b | 332 | #endif /* POLARSSL_X509_ALLOW_UNSUPPORTED_CRITICAL_EXTENSION */ |
HannesTschofenig | 0:796d0f61a05b | 333 | #if defined(POLARSSL_X509_CHECK_KEY_USAGE) |
HannesTschofenig | 0:796d0f61a05b | 334 | "POLARSSL_X509_CHECK_KEY_USAGE", |
HannesTschofenig | 0:796d0f61a05b | 335 | #endif /* POLARSSL_X509_CHECK_KEY_USAGE */ |
HannesTschofenig | 0:796d0f61a05b | 336 | #if defined(POLARSSL_X509_CHECK_EXTENDED_KEY_USAGE) |
HannesTschofenig | 0:796d0f61a05b | 337 | "POLARSSL_X509_CHECK_EXTENDED_KEY_USAGE", |
HannesTschofenig | 0:796d0f61a05b | 338 | #endif /* POLARSSL_X509_CHECK_EXTENDED_KEY_USAGE */ |
HannesTschofenig | 0:796d0f61a05b | 339 | #if defined(POLARSSL_ZLIB_SUPPORT) |
HannesTschofenig | 0:796d0f61a05b | 340 | "POLARSSL_ZLIB_SUPPORT", |
HannesTschofenig | 0:796d0f61a05b | 341 | #endif /* POLARSSL_ZLIB_SUPPORT */ |
HannesTschofenig | 0:796d0f61a05b | 342 | #if defined(POLARSSL_AESNI_C) |
HannesTschofenig | 0:796d0f61a05b | 343 | "POLARSSL_AESNI_C", |
HannesTschofenig | 0:796d0f61a05b | 344 | #endif /* POLARSSL_AESNI_C */ |
HannesTschofenig | 0:796d0f61a05b | 345 | #if defined(POLARSSL_AES_C) |
HannesTschofenig | 0:796d0f61a05b | 346 | "POLARSSL_AES_C", |
HannesTschofenig | 0:796d0f61a05b | 347 | #endif /* POLARSSL_AES_C */ |
HannesTschofenig | 0:796d0f61a05b | 348 | #if defined(POLARSSL_ARC4_C) |
HannesTschofenig | 0:796d0f61a05b | 349 | "POLARSSL_ARC4_C", |
HannesTschofenig | 0:796d0f61a05b | 350 | #endif /* POLARSSL_ARC4_C */ |
HannesTschofenig | 0:796d0f61a05b | 351 | #if defined(POLARSSL_ASN1_PARSE_C) |
HannesTschofenig | 0:796d0f61a05b | 352 | "POLARSSL_ASN1_PARSE_C", |
HannesTschofenig | 0:796d0f61a05b | 353 | #endif /* POLARSSL_ASN1_PARSE_C */ |
HannesTschofenig | 0:796d0f61a05b | 354 | #if defined(POLARSSL_ASN1_WRITE_C) |
HannesTschofenig | 0:796d0f61a05b | 355 | "POLARSSL_ASN1_WRITE_C", |
HannesTschofenig | 0:796d0f61a05b | 356 | #endif /* POLARSSL_ASN1_WRITE_C */ |
HannesTschofenig | 0:796d0f61a05b | 357 | #if defined(POLARSSL_BASE64_C) |
HannesTschofenig | 0:796d0f61a05b | 358 | "POLARSSL_BASE64_C", |
HannesTschofenig | 0:796d0f61a05b | 359 | #endif /* POLARSSL_BASE64_C */ |
HannesTschofenig | 0:796d0f61a05b | 360 | #if defined(POLARSSL_BIGNUM_C) |
HannesTschofenig | 0:796d0f61a05b | 361 | "POLARSSL_BIGNUM_C", |
HannesTschofenig | 0:796d0f61a05b | 362 | #endif /* POLARSSL_BIGNUM_C */ |
HannesTschofenig | 0:796d0f61a05b | 363 | #if defined(POLARSSL_BLOWFISH_C) |
HannesTschofenig | 0:796d0f61a05b | 364 | "POLARSSL_BLOWFISH_C", |
HannesTschofenig | 0:796d0f61a05b | 365 | #endif /* POLARSSL_BLOWFISH_C */ |
HannesTschofenig | 0:796d0f61a05b | 366 | #if defined(POLARSSL_CAMELLIA_C) |
HannesTschofenig | 0:796d0f61a05b | 367 | "POLARSSL_CAMELLIA_C", |
HannesTschofenig | 0:796d0f61a05b | 368 | #endif /* POLARSSL_CAMELLIA_C */ |
HannesTschofenig | 0:796d0f61a05b | 369 | #if defined(POLARSSL_CERTS_C) |
HannesTschofenig | 0:796d0f61a05b | 370 | "POLARSSL_CERTS_C", |
HannesTschofenig | 0:796d0f61a05b | 371 | #endif /* POLARSSL_CERTS_C */ |
HannesTschofenig | 0:796d0f61a05b | 372 | #if defined(POLARSSL_CIPHER_C) |
HannesTschofenig | 0:796d0f61a05b | 373 | "POLARSSL_CIPHER_C", |
HannesTschofenig | 0:796d0f61a05b | 374 | #endif /* POLARSSL_CIPHER_C */ |
HannesTschofenig | 0:796d0f61a05b | 375 | #if defined(POLARSSL_CTR_DRBG_C) |
HannesTschofenig | 0:796d0f61a05b | 376 | "POLARSSL_CTR_DRBG_C", |
HannesTschofenig | 0:796d0f61a05b | 377 | #endif /* POLARSSL_CTR_DRBG_C */ |
HannesTschofenig | 0:796d0f61a05b | 378 | #if defined(POLARSSL_DEBUG_C) |
HannesTschofenig | 0:796d0f61a05b | 379 | "POLARSSL_DEBUG_C", |
HannesTschofenig | 0:796d0f61a05b | 380 | #endif /* POLARSSL_DEBUG_C */ |
HannesTschofenig | 0:796d0f61a05b | 381 | #if defined(POLARSSL_DES_C) |
HannesTschofenig | 0:796d0f61a05b | 382 | "POLARSSL_DES_C", |
HannesTschofenig | 0:796d0f61a05b | 383 | #endif /* POLARSSL_DES_C */ |
HannesTschofenig | 0:796d0f61a05b | 384 | #if defined(POLARSSL_DHM_C) |
HannesTschofenig | 0:796d0f61a05b | 385 | "POLARSSL_DHM_C", |
HannesTschofenig | 0:796d0f61a05b | 386 | #endif /* POLARSSL_DHM_C */ |
HannesTschofenig | 0:796d0f61a05b | 387 | #if defined(POLARSSL_ECDH_C) |
HannesTschofenig | 0:796d0f61a05b | 388 | "POLARSSL_ECDH_C", |
HannesTschofenig | 0:796d0f61a05b | 389 | #endif /* POLARSSL_ECDH_C */ |
HannesTschofenig | 0:796d0f61a05b | 390 | #if defined(POLARSSL_ECDSA_C) |
HannesTschofenig | 0:796d0f61a05b | 391 | "POLARSSL_ECDSA_C", |
HannesTschofenig | 0:796d0f61a05b | 392 | #endif /* POLARSSL_ECDSA_C */ |
HannesTschofenig | 0:796d0f61a05b | 393 | #if defined(POLARSSL_ECP_C) |
HannesTschofenig | 0:796d0f61a05b | 394 | "POLARSSL_ECP_C", |
HannesTschofenig | 0:796d0f61a05b | 395 | #endif /* POLARSSL_ECP_C */ |
HannesTschofenig | 0:796d0f61a05b | 396 | #if defined(POLARSSL_ENTROPY_C) |
HannesTschofenig | 0:796d0f61a05b | 397 | "POLARSSL_ENTROPY_C", |
HannesTschofenig | 0:796d0f61a05b | 398 | #endif /* POLARSSL_ENTROPY_C */ |
HannesTschofenig | 0:796d0f61a05b | 399 | #if defined(POLARSSL_ERROR_C) |
HannesTschofenig | 0:796d0f61a05b | 400 | "POLARSSL_ERROR_C", |
HannesTschofenig | 0:796d0f61a05b | 401 | #endif /* POLARSSL_ERROR_C */ |
HannesTschofenig | 0:796d0f61a05b | 402 | #if defined(POLARSSL_GCM_C) |
HannesTschofenig | 0:796d0f61a05b | 403 | "POLARSSL_GCM_C", |
HannesTschofenig | 0:796d0f61a05b | 404 | #endif /* POLARSSL_GCM_C */ |
HannesTschofenig | 0:796d0f61a05b | 405 | #if defined(POLARSSL_HAVEGE_C) |
HannesTschofenig | 0:796d0f61a05b | 406 | "POLARSSL_HAVEGE_C", |
HannesTschofenig | 0:796d0f61a05b | 407 | #endif /* POLARSSL_HAVEGE_C */ |
HannesTschofenig | 0:796d0f61a05b | 408 | #if defined(POLARSSL_HMAC_DRBG_C) |
HannesTschofenig | 0:796d0f61a05b | 409 | "POLARSSL_HMAC_DRBG_C", |
HannesTschofenig | 0:796d0f61a05b | 410 | #endif /* POLARSSL_HMAC_DRBG_C */ |
HannesTschofenig | 0:796d0f61a05b | 411 | #if defined(POLARSSL_MD_C) |
HannesTschofenig | 0:796d0f61a05b | 412 | "POLARSSL_MD_C", |
HannesTschofenig | 0:796d0f61a05b | 413 | #endif /* POLARSSL_MD_C */ |
HannesTschofenig | 0:796d0f61a05b | 414 | #if defined(POLARSSL_MD2_C) |
HannesTschofenig | 0:796d0f61a05b | 415 | "POLARSSL_MD2_C", |
HannesTschofenig | 0:796d0f61a05b | 416 | #endif /* POLARSSL_MD2_C */ |
HannesTschofenig | 0:796d0f61a05b | 417 | #if defined(POLARSSL_MD4_C) |
HannesTschofenig | 0:796d0f61a05b | 418 | "POLARSSL_MD4_C", |
HannesTschofenig | 0:796d0f61a05b | 419 | #endif /* POLARSSL_MD4_C */ |
HannesTschofenig | 0:796d0f61a05b | 420 | #if defined(POLARSSL_MD5_C) |
HannesTschofenig | 0:796d0f61a05b | 421 | "POLARSSL_MD5_C", |
HannesTschofenig | 0:796d0f61a05b | 422 | #endif /* POLARSSL_MD5_C */ |
HannesTschofenig | 0:796d0f61a05b | 423 | #if defined(POLARSSL_MEMORY_C) |
HannesTschofenig | 0:796d0f61a05b | 424 | "POLARSSL_MEMORY_C", |
HannesTschofenig | 0:796d0f61a05b | 425 | #endif /* POLARSSL_MEMORY_C */ |
HannesTschofenig | 0:796d0f61a05b | 426 | #if defined(POLARSSL_MEMORY_BUFFER_ALLOC_C) |
HannesTschofenig | 0:796d0f61a05b | 427 | "POLARSSL_MEMORY_BUFFER_ALLOC_C", |
HannesTschofenig | 0:796d0f61a05b | 428 | #endif /* POLARSSL_MEMORY_BUFFER_ALLOC_C */ |
HannesTschofenig | 0:796d0f61a05b | 429 | #if defined(POLARSSL_NET_C) |
HannesTschofenig | 0:796d0f61a05b | 430 | "POLARSSL_NET_C", |
HannesTschofenig | 0:796d0f61a05b | 431 | #endif /* POLARSSL_NET_C */ |
HannesTschofenig | 0:796d0f61a05b | 432 | #if defined(POLARSSL_OID_C) |
HannesTschofenig | 0:796d0f61a05b | 433 | "POLARSSL_OID_C", |
HannesTschofenig | 0:796d0f61a05b | 434 | #endif /* POLARSSL_OID_C */ |
HannesTschofenig | 0:796d0f61a05b | 435 | #if defined(POLARSSL_PADLOCK_C) |
HannesTschofenig | 0:796d0f61a05b | 436 | "POLARSSL_PADLOCK_C", |
HannesTschofenig | 0:796d0f61a05b | 437 | #endif /* POLARSSL_PADLOCK_C */ |
HannesTschofenig | 0:796d0f61a05b | 438 | #if defined(POLARSSL_PBKDF2_C) |
HannesTschofenig | 0:796d0f61a05b | 439 | "POLARSSL_PBKDF2_C", |
HannesTschofenig | 0:796d0f61a05b | 440 | #endif /* POLARSSL_PBKDF2_C */ |
HannesTschofenig | 0:796d0f61a05b | 441 | #if defined(POLARSSL_PEM_PARSE_C) |
HannesTschofenig | 0:796d0f61a05b | 442 | "POLARSSL_PEM_PARSE_C", |
HannesTschofenig | 0:796d0f61a05b | 443 | #endif /* POLARSSL_PEM_PARSE_C */ |
HannesTschofenig | 0:796d0f61a05b | 444 | #if defined(POLARSSL_PEM_WRITE_C) |
HannesTschofenig | 0:796d0f61a05b | 445 | "POLARSSL_PEM_WRITE_C", |
HannesTschofenig | 0:796d0f61a05b | 446 | #endif /* POLARSSL_PEM_WRITE_C */ |
HannesTschofenig | 0:796d0f61a05b | 447 | #if defined(POLARSSL_PK_C) |
HannesTschofenig | 0:796d0f61a05b | 448 | "POLARSSL_PK_C", |
HannesTschofenig | 0:796d0f61a05b | 449 | #endif /* POLARSSL_PK_C */ |
HannesTschofenig | 0:796d0f61a05b | 450 | #if defined(POLARSSL_PK_PARSE_C) |
HannesTschofenig | 0:796d0f61a05b | 451 | "POLARSSL_PK_PARSE_C", |
HannesTschofenig | 0:796d0f61a05b | 452 | #endif /* POLARSSL_PK_PARSE_C */ |
HannesTschofenig | 0:796d0f61a05b | 453 | #if defined(POLARSSL_PK_WRITE_C) |
HannesTschofenig | 0:796d0f61a05b | 454 | "POLARSSL_PK_WRITE_C", |
HannesTschofenig | 0:796d0f61a05b | 455 | #endif /* POLARSSL_PK_WRITE_C */ |
HannesTschofenig | 0:796d0f61a05b | 456 | #if defined(POLARSSL_PKCS5_C) |
HannesTschofenig | 0:796d0f61a05b | 457 | "POLARSSL_PKCS5_C", |
HannesTschofenig | 0:796d0f61a05b | 458 | #endif /* POLARSSL_PKCS5_C */ |
HannesTschofenig | 0:796d0f61a05b | 459 | #if defined(POLARSSL_PKCS11_C) |
HannesTschofenig | 0:796d0f61a05b | 460 | "POLARSSL_PKCS11_C", |
HannesTschofenig | 0:796d0f61a05b | 461 | #endif /* POLARSSL_PKCS11_C */ |
HannesTschofenig | 0:796d0f61a05b | 462 | #if defined(POLARSSL_PKCS12_C) |
HannesTschofenig | 0:796d0f61a05b | 463 | "POLARSSL_PKCS12_C", |
HannesTschofenig | 0:796d0f61a05b | 464 | #endif /* POLARSSL_PKCS12_C */ |
HannesTschofenig | 0:796d0f61a05b | 465 | #if defined(POLARSSL_PLATFORM_C) |
HannesTschofenig | 0:796d0f61a05b | 466 | "POLARSSL_PLATFORM_C", |
HannesTschofenig | 0:796d0f61a05b | 467 | #endif /* POLARSSL_PLATFORM_C */ |
HannesTschofenig | 0:796d0f61a05b | 468 | #if defined(POLARSSL_RIPEMD160_C) |
HannesTschofenig | 0:796d0f61a05b | 469 | "POLARSSL_RIPEMD160_C", |
HannesTschofenig | 0:796d0f61a05b | 470 | #endif /* POLARSSL_RIPEMD160_C */ |
HannesTschofenig | 0:796d0f61a05b | 471 | #if defined(POLARSSL_RSA_C) |
HannesTschofenig | 0:796d0f61a05b | 472 | "POLARSSL_RSA_C", |
HannesTschofenig | 0:796d0f61a05b | 473 | #endif /* POLARSSL_RSA_C */ |
HannesTschofenig | 0:796d0f61a05b | 474 | #if defined(POLARSSL_SHA1_C) |
HannesTschofenig | 0:796d0f61a05b | 475 | "POLARSSL_SHA1_C", |
HannesTschofenig | 0:796d0f61a05b | 476 | #endif /* POLARSSL_SHA1_C */ |
HannesTschofenig | 0:796d0f61a05b | 477 | #if defined(POLARSSL_SHA256_C) |
HannesTschofenig | 0:796d0f61a05b | 478 | "POLARSSL_SHA256_C", |
HannesTschofenig | 0:796d0f61a05b | 479 | #endif /* POLARSSL_SHA256_C */ |
HannesTschofenig | 0:796d0f61a05b | 480 | #if defined(POLARSSL_SHA512_C) |
HannesTschofenig | 0:796d0f61a05b | 481 | "POLARSSL_SHA512_C", |
HannesTschofenig | 0:796d0f61a05b | 482 | #endif /* POLARSSL_SHA512_C */ |
HannesTschofenig | 0:796d0f61a05b | 483 | #if defined(POLARSSL_SSL_CACHE_C) |
HannesTschofenig | 0:796d0f61a05b | 484 | "POLARSSL_SSL_CACHE_C", |
HannesTschofenig | 0:796d0f61a05b | 485 | #endif /* POLARSSL_SSL_CACHE_C */ |
HannesTschofenig | 0:796d0f61a05b | 486 | #if defined(POLARSSL_SSL_CLI_C) |
HannesTschofenig | 0:796d0f61a05b | 487 | "POLARSSL_SSL_CLI_C", |
HannesTschofenig | 0:796d0f61a05b | 488 | #endif /* POLARSSL_SSL_CLI_C */ |
HannesTschofenig | 0:796d0f61a05b | 489 | #if defined(POLARSSL_SSL_SRV_C) |
HannesTschofenig | 0:796d0f61a05b | 490 | "POLARSSL_SSL_SRV_C", |
HannesTschofenig | 0:796d0f61a05b | 491 | #endif /* POLARSSL_SSL_SRV_C */ |
HannesTschofenig | 0:796d0f61a05b | 492 | #if defined(POLARSSL_SSL_TLS_C) |
HannesTschofenig | 0:796d0f61a05b | 493 | "POLARSSL_SSL_TLS_C", |
HannesTschofenig | 0:796d0f61a05b | 494 | #endif /* POLARSSL_SSL_TLS_C */ |
HannesTschofenig | 0:796d0f61a05b | 495 | #if defined(POLARSSL_THREADING_C) |
HannesTschofenig | 0:796d0f61a05b | 496 | "POLARSSL_THREADING_C", |
HannesTschofenig | 0:796d0f61a05b | 497 | #endif /* POLARSSL_THREADING_C */ |
HannesTschofenig | 0:796d0f61a05b | 498 | #if defined(POLARSSL_TIMING_C) |
HannesTschofenig | 0:796d0f61a05b | 499 | "POLARSSL_TIMING_C", |
HannesTschofenig | 0:796d0f61a05b | 500 | #endif /* POLARSSL_TIMING_C */ |
HannesTschofenig | 0:796d0f61a05b | 501 | #if defined(POLARSSL_VERSION_C) |
HannesTschofenig | 0:796d0f61a05b | 502 | "POLARSSL_VERSION_C", |
HannesTschofenig | 0:796d0f61a05b | 503 | #endif /* POLARSSL_VERSION_C */ |
HannesTschofenig | 0:796d0f61a05b | 504 | #if defined(POLARSSL_X509_USE_C) |
HannesTschofenig | 0:796d0f61a05b | 505 | "POLARSSL_X509_USE_C", |
HannesTschofenig | 0:796d0f61a05b | 506 | #endif /* POLARSSL_X509_USE_C */ |
HannesTschofenig | 0:796d0f61a05b | 507 | #if defined(POLARSSL_X509_CRT_PARSE_C) |
HannesTschofenig | 0:796d0f61a05b | 508 | "POLARSSL_X509_CRT_PARSE_C", |
HannesTschofenig | 0:796d0f61a05b | 509 | #endif /* POLARSSL_X509_CRT_PARSE_C */ |
HannesTschofenig | 0:796d0f61a05b | 510 | #if defined(POLARSSL_X509_CRL_PARSE_C) |
HannesTschofenig | 0:796d0f61a05b | 511 | "POLARSSL_X509_CRL_PARSE_C", |
HannesTschofenig | 0:796d0f61a05b | 512 | #endif /* POLARSSL_X509_CRL_PARSE_C */ |
HannesTschofenig | 0:796d0f61a05b | 513 | #if defined(POLARSSL_X509_CSR_PARSE_C) |
HannesTschofenig | 0:796d0f61a05b | 514 | "POLARSSL_X509_CSR_PARSE_C", |
HannesTschofenig | 0:796d0f61a05b | 515 | #endif /* POLARSSL_X509_CSR_PARSE_C */ |
HannesTschofenig | 0:796d0f61a05b | 516 | #if defined(POLARSSL_X509_CREATE_C) |
HannesTschofenig | 0:796d0f61a05b | 517 | "POLARSSL_X509_CREATE_C", |
HannesTschofenig | 0:796d0f61a05b | 518 | #endif /* POLARSSL_X509_CREATE_C */ |
HannesTschofenig | 0:796d0f61a05b | 519 | #if defined(POLARSSL_X509_CRT_WRITE_C) |
HannesTschofenig | 0:796d0f61a05b | 520 | "POLARSSL_X509_CRT_WRITE_C", |
HannesTschofenig | 0:796d0f61a05b | 521 | #endif /* POLARSSL_X509_CRT_WRITE_C */ |
HannesTschofenig | 0:796d0f61a05b | 522 | #if defined(POLARSSL_X509_CSR_WRITE_C) |
HannesTschofenig | 0:796d0f61a05b | 523 | "POLARSSL_X509_CSR_WRITE_C", |
HannesTschofenig | 0:796d0f61a05b | 524 | #endif /* POLARSSL_X509_CSR_WRITE_C */ |
HannesTschofenig | 0:796d0f61a05b | 525 | #if defined(POLARSSL_XTEA_C) |
HannesTschofenig | 0:796d0f61a05b | 526 | "POLARSSL_XTEA_C", |
HannesTschofenig | 0:796d0f61a05b | 527 | #endif /* POLARSSL_XTEA_C */ |
HannesTschofenig | 0:796d0f61a05b | 528 | #endif /* POLARSSL_VERSION_FEATURES */ |
HannesTschofenig | 0:796d0f61a05b | 529 | NULL |
HannesTschofenig | 0:796d0f61a05b | 530 | }; |
HannesTschofenig | 0:796d0f61a05b | 531 | |
HannesTschofenig | 0:796d0f61a05b | 532 | int version_check_feature( const char *feature ) |
HannesTschofenig | 0:796d0f61a05b | 533 | { |
HannesTschofenig | 0:796d0f61a05b | 534 | const char **idx = features; |
HannesTschofenig | 0:796d0f61a05b | 535 | |
HannesTschofenig | 0:796d0f61a05b | 536 | if( *idx == NULL ) |
HannesTschofenig | 0:796d0f61a05b | 537 | return( -2 ); |
HannesTschofenig | 0:796d0f61a05b | 538 | |
HannesTschofenig | 0:796d0f61a05b | 539 | if( feature == NULL ) |
HannesTschofenig | 0:796d0f61a05b | 540 | return( -1 ); |
HannesTschofenig | 0:796d0f61a05b | 541 | |
HannesTschofenig | 0:796d0f61a05b | 542 | while( *idx != NULL ) |
HannesTschofenig | 0:796d0f61a05b | 543 | { |
HannesTschofenig | 0:796d0f61a05b | 544 | if( !strcasecmp( *idx, feature ) ) |
HannesTschofenig | 0:796d0f61a05b | 545 | return( 0 ); |
HannesTschofenig | 0:796d0f61a05b | 546 | idx++; |
HannesTschofenig | 0:796d0f61a05b | 547 | } |
HannesTschofenig | 0:796d0f61a05b | 548 | return( -1 ); |
HannesTschofenig | 0:796d0f61a05b | 549 | } |
HannesTschofenig | 0:796d0f61a05b | 550 | |
HannesTschofenig | 0:796d0f61a05b | 551 | #endif /* POLARSSL_VERSION_C */ |
HannesTschofenig | 0:796d0f61a05b | 552 | |
HannesTschofenig | 0:796d0f61a05b | 553 |