version_features.c 26 KB

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