version_features.c 26 KB

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