version_features.c 30 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872
  1. /*
  2. * Version feature information
  3. *
  4. * Copyright The Mbed TLS Contributors
  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. #include "common.h"
  20. #if defined(MBEDTLS_VERSION_C)
  21. #include "mbedtls/version.h"
  22. #include <string.h>
  23. static const char * const features[] = {
  24. #if defined(MBEDTLS_VERSION_FEATURES)
  25. #if defined(MBEDTLS_HAVE_ASM)
  26. "MBEDTLS_HAVE_ASM",
  27. #endif /* MBEDTLS_HAVE_ASM */
  28. #if defined(MBEDTLS_NO_UDBL_DIVISION)
  29. "MBEDTLS_NO_UDBL_DIVISION",
  30. #endif /* MBEDTLS_NO_UDBL_DIVISION */
  31. #if defined(MBEDTLS_NO_64BIT_MULTIPLICATION)
  32. "MBEDTLS_NO_64BIT_MULTIPLICATION",
  33. #endif /* MBEDTLS_NO_64BIT_MULTIPLICATION */
  34. #if defined(MBEDTLS_HAVE_SSE2)
  35. "MBEDTLS_HAVE_SSE2",
  36. #endif /* MBEDTLS_HAVE_SSE2 */
  37. #if defined(MBEDTLS_HAVE_TIME)
  38. "MBEDTLS_HAVE_TIME",
  39. #endif /* MBEDTLS_HAVE_TIME */
  40. #if defined(MBEDTLS_HAVE_TIME_DATE)
  41. "MBEDTLS_HAVE_TIME_DATE",
  42. #endif /* MBEDTLS_HAVE_TIME_DATE */
  43. #if defined(MBEDTLS_PLATFORM_MEMORY)
  44. "MBEDTLS_PLATFORM_MEMORY",
  45. #endif /* MBEDTLS_PLATFORM_MEMORY */
  46. #if defined(MBEDTLS_PLATFORM_NO_STD_FUNCTIONS)
  47. "MBEDTLS_PLATFORM_NO_STD_FUNCTIONS",
  48. #endif /* MBEDTLS_PLATFORM_NO_STD_FUNCTIONS */
  49. #if defined(MBEDTLS_PLATFORM_EXIT_ALT)
  50. "MBEDTLS_PLATFORM_EXIT_ALT",
  51. #endif /* MBEDTLS_PLATFORM_EXIT_ALT */
  52. #if defined(MBEDTLS_PLATFORM_TIME_ALT)
  53. "MBEDTLS_PLATFORM_TIME_ALT",
  54. #endif /* MBEDTLS_PLATFORM_TIME_ALT */
  55. #if defined(MBEDTLS_PLATFORM_FPRINTF_ALT)
  56. "MBEDTLS_PLATFORM_FPRINTF_ALT",
  57. #endif /* MBEDTLS_PLATFORM_FPRINTF_ALT */
  58. #if defined(MBEDTLS_PLATFORM_PRINTF_ALT)
  59. "MBEDTLS_PLATFORM_PRINTF_ALT",
  60. #endif /* MBEDTLS_PLATFORM_PRINTF_ALT */
  61. #if defined(MBEDTLS_PLATFORM_SNPRINTF_ALT)
  62. "MBEDTLS_PLATFORM_SNPRINTF_ALT",
  63. #endif /* MBEDTLS_PLATFORM_SNPRINTF_ALT */
  64. #if defined(MBEDTLS_PLATFORM_VSNPRINTF_ALT)
  65. "MBEDTLS_PLATFORM_VSNPRINTF_ALT",
  66. #endif /* MBEDTLS_PLATFORM_VSNPRINTF_ALT */
  67. #if defined(MBEDTLS_PLATFORM_NV_SEED_ALT)
  68. "MBEDTLS_PLATFORM_NV_SEED_ALT",
  69. #endif /* MBEDTLS_PLATFORM_NV_SEED_ALT */
  70. #if defined(MBEDTLS_PLATFORM_SETUP_TEARDOWN_ALT)
  71. "MBEDTLS_PLATFORM_SETUP_TEARDOWN_ALT",
  72. #endif /* MBEDTLS_PLATFORM_SETUP_TEARDOWN_ALT */
  73. #if defined(MBEDTLS_DEPRECATED_WARNING)
  74. "MBEDTLS_DEPRECATED_WARNING",
  75. #endif /* MBEDTLS_DEPRECATED_WARNING */
  76. #if defined(MBEDTLS_DEPRECATED_REMOVED)
  77. "MBEDTLS_DEPRECATED_REMOVED",
  78. #endif /* MBEDTLS_DEPRECATED_REMOVED */
  79. #if defined(MBEDTLS_CHECK_PARAMS)
  80. "MBEDTLS_CHECK_PARAMS",
  81. #endif /* MBEDTLS_CHECK_PARAMS */
  82. #if defined(MBEDTLS_CHECK_PARAMS_ASSERT)
  83. "MBEDTLS_CHECK_PARAMS_ASSERT",
  84. #endif /* MBEDTLS_CHECK_PARAMS_ASSERT */
  85. #if defined(MBEDTLS_TIMING_ALT)
  86. "MBEDTLS_TIMING_ALT",
  87. #endif /* MBEDTLS_TIMING_ALT */
  88. #if defined(MBEDTLS_AES_ALT)
  89. "MBEDTLS_AES_ALT",
  90. #endif /* MBEDTLS_AES_ALT */
  91. #if defined(MBEDTLS_ARC4_ALT)
  92. "MBEDTLS_ARC4_ALT",
  93. #endif /* MBEDTLS_ARC4_ALT */
  94. #if defined(MBEDTLS_ARIA_ALT)
  95. "MBEDTLS_ARIA_ALT",
  96. #endif /* MBEDTLS_ARIA_ALT */
  97. #if defined(MBEDTLS_BLOWFISH_ALT)
  98. "MBEDTLS_BLOWFISH_ALT",
  99. #endif /* MBEDTLS_BLOWFISH_ALT */
  100. #if defined(MBEDTLS_CAMELLIA_ALT)
  101. "MBEDTLS_CAMELLIA_ALT",
  102. #endif /* MBEDTLS_CAMELLIA_ALT */
  103. #if defined(MBEDTLS_CCM_ALT)
  104. "MBEDTLS_CCM_ALT",
  105. #endif /* MBEDTLS_CCM_ALT */
  106. #if defined(MBEDTLS_CHACHA20_ALT)
  107. "MBEDTLS_CHACHA20_ALT",
  108. #endif /* MBEDTLS_CHACHA20_ALT */
  109. #if defined(MBEDTLS_CHACHAPOLY_ALT)
  110. "MBEDTLS_CHACHAPOLY_ALT",
  111. #endif /* MBEDTLS_CHACHAPOLY_ALT */
  112. #if defined(MBEDTLS_CMAC_ALT)
  113. "MBEDTLS_CMAC_ALT",
  114. #endif /* MBEDTLS_CMAC_ALT */
  115. #if defined(MBEDTLS_DES_ALT)
  116. "MBEDTLS_DES_ALT",
  117. #endif /* MBEDTLS_DES_ALT */
  118. #if defined(MBEDTLS_DHM_ALT)
  119. "MBEDTLS_DHM_ALT",
  120. #endif /* MBEDTLS_DHM_ALT */
  121. #if defined(MBEDTLS_ECJPAKE_ALT)
  122. "MBEDTLS_ECJPAKE_ALT",
  123. #endif /* MBEDTLS_ECJPAKE_ALT */
  124. #if defined(MBEDTLS_GCM_ALT)
  125. "MBEDTLS_GCM_ALT",
  126. #endif /* MBEDTLS_GCM_ALT */
  127. #if defined(MBEDTLS_NIST_KW_ALT)
  128. "MBEDTLS_NIST_KW_ALT",
  129. #endif /* MBEDTLS_NIST_KW_ALT */
  130. #if defined(MBEDTLS_MD2_ALT)
  131. "MBEDTLS_MD2_ALT",
  132. #endif /* MBEDTLS_MD2_ALT */
  133. #if defined(MBEDTLS_MD4_ALT)
  134. "MBEDTLS_MD4_ALT",
  135. #endif /* MBEDTLS_MD4_ALT */
  136. #if defined(MBEDTLS_MD5_ALT)
  137. "MBEDTLS_MD5_ALT",
  138. #endif /* MBEDTLS_MD5_ALT */
  139. #if defined(MBEDTLS_POLY1305_ALT)
  140. "MBEDTLS_POLY1305_ALT",
  141. #endif /* MBEDTLS_POLY1305_ALT */
  142. #if defined(MBEDTLS_RIPEMD160_ALT)
  143. "MBEDTLS_RIPEMD160_ALT",
  144. #endif /* MBEDTLS_RIPEMD160_ALT */
  145. #if defined(MBEDTLS_RSA_ALT)
  146. "MBEDTLS_RSA_ALT",
  147. #endif /* MBEDTLS_RSA_ALT */
  148. #if defined(MBEDTLS_SHA1_ALT)
  149. "MBEDTLS_SHA1_ALT",
  150. #endif /* MBEDTLS_SHA1_ALT */
  151. #if defined(MBEDTLS_SHA256_ALT)
  152. "MBEDTLS_SHA256_ALT",
  153. #endif /* MBEDTLS_SHA256_ALT */
  154. #if defined(MBEDTLS_SHA512_ALT)
  155. "MBEDTLS_SHA512_ALT",
  156. #endif /* MBEDTLS_SHA512_ALT */
  157. #if defined(MBEDTLS_XTEA_ALT)
  158. "MBEDTLS_XTEA_ALT",
  159. #endif /* MBEDTLS_XTEA_ALT */
  160. #if defined(MBEDTLS_ECP_ALT)
  161. "MBEDTLS_ECP_ALT",
  162. #endif /* MBEDTLS_ECP_ALT */
  163. #if defined(MBEDTLS_MD2_PROCESS_ALT)
  164. "MBEDTLS_MD2_PROCESS_ALT",
  165. #endif /* MBEDTLS_MD2_PROCESS_ALT */
  166. #if defined(MBEDTLS_MD4_PROCESS_ALT)
  167. "MBEDTLS_MD4_PROCESS_ALT",
  168. #endif /* MBEDTLS_MD4_PROCESS_ALT */
  169. #if defined(MBEDTLS_MD5_PROCESS_ALT)
  170. "MBEDTLS_MD5_PROCESS_ALT",
  171. #endif /* MBEDTLS_MD5_PROCESS_ALT */
  172. #if defined(MBEDTLS_RIPEMD160_PROCESS_ALT)
  173. "MBEDTLS_RIPEMD160_PROCESS_ALT",
  174. #endif /* MBEDTLS_RIPEMD160_PROCESS_ALT */
  175. #if defined(MBEDTLS_SHA1_PROCESS_ALT)
  176. "MBEDTLS_SHA1_PROCESS_ALT",
  177. #endif /* MBEDTLS_SHA1_PROCESS_ALT */
  178. #if defined(MBEDTLS_SHA256_PROCESS_ALT)
  179. "MBEDTLS_SHA256_PROCESS_ALT",
  180. #endif /* MBEDTLS_SHA256_PROCESS_ALT */
  181. #if defined(MBEDTLS_SHA512_PROCESS_ALT)
  182. "MBEDTLS_SHA512_PROCESS_ALT",
  183. #endif /* MBEDTLS_SHA512_PROCESS_ALT */
  184. #if defined(MBEDTLS_DES_SETKEY_ALT)
  185. "MBEDTLS_DES_SETKEY_ALT",
  186. #endif /* MBEDTLS_DES_SETKEY_ALT */
  187. #if defined(MBEDTLS_DES_CRYPT_ECB_ALT)
  188. "MBEDTLS_DES_CRYPT_ECB_ALT",
  189. #endif /* MBEDTLS_DES_CRYPT_ECB_ALT */
  190. #if defined(MBEDTLS_DES3_CRYPT_ECB_ALT)
  191. "MBEDTLS_DES3_CRYPT_ECB_ALT",
  192. #endif /* MBEDTLS_DES3_CRYPT_ECB_ALT */
  193. #if defined(MBEDTLS_AES_SETKEY_ENC_ALT)
  194. "MBEDTLS_AES_SETKEY_ENC_ALT",
  195. #endif /* MBEDTLS_AES_SETKEY_ENC_ALT */
  196. #if defined(MBEDTLS_AES_SETKEY_DEC_ALT)
  197. "MBEDTLS_AES_SETKEY_DEC_ALT",
  198. #endif /* MBEDTLS_AES_SETKEY_DEC_ALT */
  199. #if defined(MBEDTLS_AES_ENCRYPT_ALT)
  200. "MBEDTLS_AES_ENCRYPT_ALT",
  201. #endif /* MBEDTLS_AES_ENCRYPT_ALT */
  202. #if defined(MBEDTLS_AES_DECRYPT_ALT)
  203. "MBEDTLS_AES_DECRYPT_ALT",
  204. #endif /* MBEDTLS_AES_DECRYPT_ALT */
  205. #if defined(MBEDTLS_ECDH_GEN_PUBLIC_ALT)
  206. "MBEDTLS_ECDH_GEN_PUBLIC_ALT",
  207. #endif /* MBEDTLS_ECDH_GEN_PUBLIC_ALT */
  208. #if defined(MBEDTLS_ECDH_COMPUTE_SHARED_ALT)
  209. "MBEDTLS_ECDH_COMPUTE_SHARED_ALT",
  210. #endif /* MBEDTLS_ECDH_COMPUTE_SHARED_ALT */
  211. #if defined(MBEDTLS_ECDSA_VERIFY_ALT)
  212. "MBEDTLS_ECDSA_VERIFY_ALT",
  213. #endif /* MBEDTLS_ECDSA_VERIFY_ALT */
  214. #if defined(MBEDTLS_ECDSA_SIGN_ALT)
  215. "MBEDTLS_ECDSA_SIGN_ALT",
  216. #endif /* MBEDTLS_ECDSA_SIGN_ALT */
  217. #if defined(MBEDTLS_ECDSA_GENKEY_ALT)
  218. "MBEDTLS_ECDSA_GENKEY_ALT",
  219. #endif /* MBEDTLS_ECDSA_GENKEY_ALT */
  220. #if defined(MBEDTLS_ECP_INTERNAL_ALT)
  221. "MBEDTLS_ECP_INTERNAL_ALT",
  222. #endif /* MBEDTLS_ECP_INTERNAL_ALT */
  223. #if defined(MBEDTLS_ECP_NO_FALLBACK)
  224. "MBEDTLS_ECP_NO_FALLBACK",
  225. #endif /* MBEDTLS_ECP_NO_FALLBACK */
  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_CHECK_RETURN_WARNING)
  266. "MBEDTLS_CHECK_RETURN_WARNING",
  267. #endif /* MBEDTLS_CHECK_RETURN_WARNING */
  268. #if defined(MBEDTLS_CIPHER_MODE_CBC)
  269. "MBEDTLS_CIPHER_MODE_CBC",
  270. #endif /* MBEDTLS_CIPHER_MODE_CBC */
  271. #if defined(MBEDTLS_CIPHER_MODE_CFB)
  272. "MBEDTLS_CIPHER_MODE_CFB",
  273. #endif /* MBEDTLS_CIPHER_MODE_CFB */
  274. #if defined(MBEDTLS_CIPHER_MODE_CTR)
  275. "MBEDTLS_CIPHER_MODE_CTR",
  276. #endif /* MBEDTLS_CIPHER_MODE_CTR */
  277. #if defined(MBEDTLS_CIPHER_MODE_OFB)
  278. "MBEDTLS_CIPHER_MODE_OFB",
  279. #endif /* MBEDTLS_CIPHER_MODE_OFB */
  280. #if defined(MBEDTLS_CIPHER_MODE_XTS)
  281. "MBEDTLS_CIPHER_MODE_XTS",
  282. #endif /* MBEDTLS_CIPHER_MODE_XTS */
  283. #if defined(MBEDTLS_CIPHER_NULL_CIPHER)
  284. "MBEDTLS_CIPHER_NULL_CIPHER",
  285. #endif /* MBEDTLS_CIPHER_NULL_CIPHER */
  286. #if defined(MBEDTLS_CIPHER_PADDING_PKCS7)
  287. "MBEDTLS_CIPHER_PADDING_PKCS7",
  288. #endif /* MBEDTLS_CIPHER_PADDING_PKCS7 */
  289. #if defined(MBEDTLS_CIPHER_PADDING_ONE_AND_ZEROS)
  290. "MBEDTLS_CIPHER_PADDING_ONE_AND_ZEROS",
  291. #endif /* MBEDTLS_CIPHER_PADDING_ONE_AND_ZEROS */
  292. #if defined(MBEDTLS_CIPHER_PADDING_ZEROS_AND_LEN)
  293. "MBEDTLS_CIPHER_PADDING_ZEROS_AND_LEN",
  294. #endif /* MBEDTLS_CIPHER_PADDING_ZEROS_AND_LEN */
  295. #if defined(MBEDTLS_CIPHER_PADDING_ZEROS)
  296. "MBEDTLS_CIPHER_PADDING_ZEROS",
  297. #endif /* MBEDTLS_CIPHER_PADDING_ZEROS */
  298. #if defined(MBEDTLS_CTR_DRBG_USE_128_BIT_KEY)
  299. "MBEDTLS_CTR_DRBG_USE_128_BIT_KEY",
  300. #endif /* MBEDTLS_CTR_DRBG_USE_128_BIT_KEY */
  301. #if defined(MBEDTLS_ENABLE_WEAK_CIPHERSUITES)
  302. "MBEDTLS_ENABLE_WEAK_CIPHERSUITES",
  303. #endif /* MBEDTLS_ENABLE_WEAK_CIPHERSUITES */
  304. #if defined(MBEDTLS_REMOVE_ARC4_CIPHERSUITES)
  305. "MBEDTLS_REMOVE_ARC4_CIPHERSUITES",
  306. #endif /* MBEDTLS_REMOVE_ARC4_CIPHERSUITES */
  307. #if defined(MBEDTLS_REMOVE_3DES_CIPHERSUITES)
  308. "MBEDTLS_REMOVE_3DES_CIPHERSUITES",
  309. #endif /* MBEDTLS_REMOVE_3DES_CIPHERSUITES */
  310. #if defined(MBEDTLS_ECP_DP_SECP192R1_ENABLED)
  311. "MBEDTLS_ECP_DP_SECP192R1_ENABLED",
  312. #endif /* MBEDTLS_ECP_DP_SECP192R1_ENABLED */
  313. #if defined(MBEDTLS_ECP_DP_SECP224R1_ENABLED)
  314. "MBEDTLS_ECP_DP_SECP224R1_ENABLED",
  315. #endif /* MBEDTLS_ECP_DP_SECP224R1_ENABLED */
  316. #if defined(MBEDTLS_ECP_DP_SECP256R1_ENABLED)
  317. "MBEDTLS_ECP_DP_SECP256R1_ENABLED",
  318. #endif /* MBEDTLS_ECP_DP_SECP256R1_ENABLED */
  319. #if defined(MBEDTLS_ECP_DP_SECP384R1_ENABLED)
  320. "MBEDTLS_ECP_DP_SECP384R1_ENABLED",
  321. #endif /* MBEDTLS_ECP_DP_SECP384R1_ENABLED */
  322. #if defined(MBEDTLS_ECP_DP_SECP521R1_ENABLED)
  323. "MBEDTLS_ECP_DP_SECP521R1_ENABLED",
  324. #endif /* MBEDTLS_ECP_DP_SECP521R1_ENABLED */
  325. #if defined(MBEDTLS_ECP_DP_SECP192K1_ENABLED)
  326. "MBEDTLS_ECP_DP_SECP192K1_ENABLED",
  327. #endif /* MBEDTLS_ECP_DP_SECP192K1_ENABLED */
  328. #if defined(MBEDTLS_ECP_DP_SECP224K1_ENABLED)
  329. "MBEDTLS_ECP_DP_SECP224K1_ENABLED",
  330. #endif /* MBEDTLS_ECP_DP_SECP224K1_ENABLED */
  331. #if defined(MBEDTLS_ECP_DP_SECP256K1_ENABLED)
  332. "MBEDTLS_ECP_DP_SECP256K1_ENABLED",
  333. #endif /* MBEDTLS_ECP_DP_SECP256K1_ENABLED */
  334. #if defined(MBEDTLS_ECP_DP_BP256R1_ENABLED)
  335. "MBEDTLS_ECP_DP_BP256R1_ENABLED",
  336. #endif /* MBEDTLS_ECP_DP_BP256R1_ENABLED */
  337. #if defined(MBEDTLS_ECP_DP_BP384R1_ENABLED)
  338. "MBEDTLS_ECP_DP_BP384R1_ENABLED",
  339. #endif /* MBEDTLS_ECP_DP_BP384R1_ENABLED */
  340. #if defined(MBEDTLS_ECP_DP_BP512R1_ENABLED)
  341. "MBEDTLS_ECP_DP_BP512R1_ENABLED",
  342. #endif /* MBEDTLS_ECP_DP_BP512R1_ENABLED */
  343. #if defined(MBEDTLS_ECP_DP_CURVE25519_ENABLED)
  344. "MBEDTLS_ECP_DP_CURVE25519_ENABLED",
  345. #endif /* MBEDTLS_ECP_DP_CURVE25519_ENABLED */
  346. #if defined(MBEDTLS_ECP_DP_CURVE448_ENABLED)
  347. "MBEDTLS_ECP_DP_CURVE448_ENABLED",
  348. #endif /* MBEDTLS_ECP_DP_CURVE448_ENABLED */
  349. #if defined(MBEDTLS_ECP_NIST_OPTIM)
  350. "MBEDTLS_ECP_NIST_OPTIM",
  351. #endif /* MBEDTLS_ECP_NIST_OPTIM */
  352. #if defined(MBEDTLS_ECP_NO_INTERNAL_RNG)
  353. "MBEDTLS_ECP_NO_INTERNAL_RNG",
  354. #endif /* MBEDTLS_ECP_NO_INTERNAL_RNG */
  355. #if defined(MBEDTLS_ECP_RESTARTABLE)
  356. "MBEDTLS_ECP_RESTARTABLE",
  357. #endif /* MBEDTLS_ECP_RESTARTABLE */
  358. #if defined(MBEDTLS_ECDH_LEGACY_CONTEXT)
  359. "MBEDTLS_ECDH_LEGACY_CONTEXT",
  360. #endif /* MBEDTLS_ECDH_LEGACY_CONTEXT */
  361. #if defined(MBEDTLS_ECDSA_DETERMINISTIC)
  362. "MBEDTLS_ECDSA_DETERMINISTIC",
  363. #endif /* MBEDTLS_ECDSA_DETERMINISTIC */
  364. #if defined(MBEDTLS_KEY_EXCHANGE_PSK_ENABLED)
  365. "MBEDTLS_KEY_EXCHANGE_PSK_ENABLED",
  366. #endif /* MBEDTLS_KEY_EXCHANGE_PSK_ENABLED */
  367. #if defined(MBEDTLS_KEY_EXCHANGE_DHE_PSK_ENABLED)
  368. "MBEDTLS_KEY_EXCHANGE_DHE_PSK_ENABLED",
  369. #endif /* MBEDTLS_KEY_EXCHANGE_DHE_PSK_ENABLED */
  370. #if defined(MBEDTLS_KEY_EXCHANGE_ECDHE_PSK_ENABLED)
  371. "MBEDTLS_KEY_EXCHANGE_ECDHE_PSK_ENABLED",
  372. #endif /* MBEDTLS_KEY_EXCHANGE_ECDHE_PSK_ENABLED */
  373. #if defined(MBEDTLS_KEY_EXCHANGE_RSA_PSK_ENABLED)
  374. "MBEDTLS_KEY_EXCHANGE_RSA_PSK_ENABLED",
  375. #endif /* MBEDTLS_KEY_EXCHANGE_RSA_PSK_ENABLED */
  376. #if defined(MBEDTLS_KEY_EXCHANGE_RSA_ENABLED)
  377. "MBEDTLS_KEY_EXCHANGE_RSA_ENABLED",
  378. #endif /* MBEDTLS_KEY_EXCHANGE_RSA_ENABLED */
  379. #if defined(MBEDTLS_KEY_EXCHANGE_DHE_RSA_ENABLED)
  380. "MBEDTLS_KEY_EXCHANGE_DHE_RSA_ENABLED",
  381. #endif /* MBEDTLS_KEY_EXCHANGE_DHE_RSA_ENABLED */
  382. #if defined(MBEDTLS_KEY_EXCHANGE_ECDHE_RSA_ENABLED)
  383. "MBEDTLS_KEY_EXCHANGE_ECDHE_RSA_ENABLED",
  384. #endif /* MBEDTLS_KEY_EXCHANGE_ECDHE_RSA_ENABLED */
  385. #if defined(MBEDTLS_KEY_EXCHANGE_ECDHE_ECDSA_ENABLED)
  386. "MBEDTLS_KEY_EXCHANGE_ECDHE_ECDSA_ENABLED",
  387. #endif /* MBEDTLS_KEY_EXCHANGE_ECDHE_ECDSA_ENABLED */
  388. #if defined(MBEDTLS_KEY_EXCHANGE_ECDH_ECDSA_ENABLED)
  389. "MBEDTLS_KEY_EXCHANGE_ECDH_ECDSA_ENABLED",
  390. #endif /* MBEDTLS_KEY_EXCHANGE_ECDH_ECDSA_ENABLED */
  391. #if defined(MBEDTLS_KEY_EXCHANGE_ECDH_RSA_ENABLED)
  392. "MBEDTLS_KEY_EXCHANGE_ECDH_RSA_ENABLED",
  393. #endif /* MBEDTLS_KEY_EXCHANGE_ECDH_RSA_ENABLED */
  394. #if defined(MBEDTLS_KEY_EXCHANGE_ECJPAKE_ENABLED)
  395. "MBEDTLS_KEY_EXCHANGE_ECJPAKE_ENABLED",
  396. #endif /* MBEDTLS_KEY_EXCHANGE_ECJPAKE_ENABLED */
  397. #if defined(MBEDTLS_PK_PARSE_EC_EXTENDED)
  398. "MBEDTLS_PK_PARSE_EC_EXTENDED",
  399. #endif /* MBEDTLS_PK_PARSE_EC_EXTENDED */
  400. #if defined(MBEDTLS_ERROR_STRERROR_DUMMY)
  401. "MBEDTLS_ERROR_STRERROR_DUMMY",
  402. #endif /* MBEDTLS_ERROR_STRERROR_DUMMY */
  403. #if defined(MBEDTLS_GENPRIME)
  404. "MBEDTLS_GENPRIME",
  405. #endif /* MBEDTLS_GENPRIME */
  406. #if defined(MBEDTLS_FS_IO)
  407. "MBEDTLS_FS_IO",
  408. #endif /* MBEDTLS_FS_IO */
  409. #if defined(MBEDTLS_NO_DEFAULT_ENTROPY_SOURCES)
  410. "MBEDTLS_NO_DEFAULT_ENTROPY_SOURCES",
  411. #endif /* MBEDTLS_NO_DEFAULT_ENTROPY_SOURCES */
  412. #if defined(MBEDTLS_NO_PLATFORM_ENTROPY)
  413. "MBEDTLS_NO_PLATFORM_ENTROPY",
  414. #endif /* MBEDTLS_NO_PLATFORM_ENTROPY */
  415. #if defined(MBEDTLS_ENTROPY_FORCE_SHA256)
  416. "MBEDTLS_ENTROPY_FORCE_SHA256",
  417. #endif /* MBEDTLS_ENTROPY_FORCE_SHA256 */
  418. #if defined(MBEDTLS_ENTROPY_NV_SEED)
  419. "MBEDTLS_ENTROPY_NV_SEED",
  420. #endif /* MBEDTLS_ENTROPY_NV_SEED */
  421. #if defined(MBEDTLS_PSA_CRYPTO_KEY_ID_ENCODES_OWNER)
  422. "MBEDTLS_PSA_CRYPTO_KEY_ID_ENCODES_OWNER",
  423. #endif /* MBEDTLS_PSA_CRYPTO_KEY_ID_ENCODES_OWNER */
  424. #if defined(MBEDTLS_MEMORY_DEBUG)
  425. "MBEDTLS_MEMORY_DEBUG",
  426. #endif /* MBEDTLS_MEMORY_DEBUG */
  427. #if defined(MBEDTLS_MEMORY_BACKTRACE)
  428. "MBEDTLS_MEMORY_BACKTRACE",
  429. #endif /* MBEDTLS_MEMORY_BACKTRACE */
  430. #if defined(MBEDTLS_PK_RSA_ALT_SUPPORT)
  431. "MBEDTLS_PK_RSA_ALT_SUPPORT",
  432. #endif /* MBEDTLS_PK_RSA_ALT_SUPPORT */
  433. #if defined(MBEDTLS_PKCS1_V15)
  434. "MBEDTLS_PKCS1_V15",
  435. #endif /* MBEDTLS_PKCS1_V15 */
  436. #if defined(MBEDTLS_PKCS1_V21)
  437. "MBEDTLS_PKCS1_V21",
  438. #endif /* MBEDTLS_PKCS1_V21 */
  439. #if defined(MBEDTLS_PSA_CRYPTO_BUILTIN_KEYS)
  440. "MBEDTLS_PSA_CRYPTO_BUILTIN_KEYS",
  441. #endif /* MBEDTLS_PSA_CRYPTO_BUILTIN_KEYS */
  442. #if defined(MBEDTLS_PSA_CRYPTO_CLIENT)
  443. "MBEDTLS_PSA_CRYPTO_CLIENT",
  444. #endif /* MBEDTLS_PSA_CRYPTO_CLIENT */
  445. #if defined(MBEDTLS_PSA_CRYPTO_DRIVERS)
  446. "MBEDTLS_PSA_CRYPTO_DRIVERS",
  447. #endif /* MBEDTLS_PSA_CRYPTO_DRIVERS */
  448. #if defined(MBEDTLS_PSA_CRYPTO_EXTERNAL_RNG)
  449. "MBEDTLS_PSA_CRYPTO_EXTERNAL_RNG",
  450. #endif /* MBEDTLS_PSA_CRYPTO_EXTERNAL_RNG */
  451. #if defined(MBEDTLS_PSA_CRYPTO_SPM)
  452. "MBEDTLS_PSA_CRYPTO_SPM",
  453. #endif /* MBEDTLS_PSA_CRYPTO_SPM */
  454. #if defined(MBEDTLS_PSA_INJECT_ENTROPY)
  455. "MBEDTLS_PSA_INJECT_ENTROPY",
  456. #endif /* MBEDTLS_PSA_INJECT_ENTROPY */
  457. #if defined(MBEDTLS_RSA_NO_CRT)
  458. "MBEDTLS_RSA_NO_CRT",
  459. #endif /* MBEDTLS_RSA_NO_CRT */
  460. #if defined(MBEDTLS_SELF_TEST)
  461. "MBEDTLS_SELF_TEST",
  462. #endif /* MBEDTLS_SELF_TEST */
  463. #if defined(MBEDTLS_SHA256_SMALLER)
  464. "MBEDTLS_SHA256_SMALLER",
  465. #endif /* MBEDTLS_SHA256_SMALLER */
  466. #if defined(MBEDTLS_SHA512_SMALLER)
  467. "MBEDTLS_SHA512_SMALLER",
  468. #endif /* MBEDTLS_SHA512_SMALLER */
  469. #if defined(MBEDTLS_SHA512_NO_SHA384)
  470. "MBEDTLS_SHA512_NO_SHA384",
  471. #endif /* MBEDTLS_SHA512_NO_SHA384 */
  472. #if defined(MBEDTLS_SSL_ALL_ALERT_MESSAGES)
  473. "MBEDTLS_SSL_ALL_ALERT_MESSAGES",
  474. #endif /* MBEDTLS_SSL_ALL_ALERT_MESSAGES */
  475. #if defined(MBEDTLS_SSL_RECORD_CHECKING)
  476. "MBEDTLS_SSL_RECORD_CHECKING",
  477. #endif /* MBEDTLS_SSL_RECORD_CHECKING */
  478. #if defined(MBEDTLS_SSL_DTLS_CONNECTION_ID)
  479. "MBEDTLS_SSL_DTLS_CONNECTION_ID",
  480. #endif /* MBEDTLS_SSL_DTLS_CONNECTION_ID */
  481. #if defined(MBEDTLS_SSL_ASYNC_PRIVATE)
  482. "MBEDTLS_SSL_ASYNC_PRIVATE",
  483. #endif /* MBEDTLS_SSL_ASYNC_PRIVATE */
  484. #if defined(MBEDTLS_SSL_CONTEXT_SERIALIZATION)
  485. "MBEDTLS_SSL_CONTEXT_SERIALIZATION",
  486. #endif /* MBEDTLS_SSL_CONTEXT_SERIALIZATION */
  487. #if defined(MBEDTLS_SSL_DEBUG_ALL)
  488. "MBEDTLS_SSL_DEBUG_ALL",
  489. #endif /* MBEDTLS_SSL_DEBUG_ALL */
  490. #if defined(MBEDTLS_SSL_ENCRYPT_THEN_MAC)
  491. "MBEDTLS_SSL_ENCRYPT_THEN_MAC",
  492. #endif /* MBEDTLS_SSL_ENCRYPT_THEN_MAC */
  493. #if defined(MBEDTLS_SSL_EXTENDED_MASTER_SECRET)
  494. "MBEDTLS_SSL_EXTENDED_MASTER_SECRET",
  495. #endif /* MBEDTLS_SSL_EXTENDED_MASTER_SECRET */
  496. #if defined(MBEDTLS_SSL_FALLBACK_SCSV)
  497. "MBEDTLS_SSL_FALLBACK_SCSV",
  498. #endif /* MBEDTLS_SSL_FALLBACK_SCSV */
  499. #if defined(MBEDTLS_SSL_KEEP_PEER_CERTIFICATE)
  500. "MBEDTLS_SSL_KEEP_PEER_CERTIFICATE",
  501. #endif /* MBEDTLS_SSL_KEEP_PEER_CERTIFICATE */
  502. #if defined(MBEDTLS_SSL_HW_RECORD_ACCEL)
  503. "MBEDTLS_SSL_HW_RECORD_ACCEL",
  504. #endif /* MBEDTLS_SSL_HW_RECORD_ACCEL */
  505. #if defined(MBEDTLS_SSL_CBC_RECORD_SPLITTING)
  506. "MBEDTLS_SSL_CBC_RECORD_SPLITTING",
  507. #endif /* MBEDTLS_SSL_CBC_RECORD_SPLITTING */
  508. #if defined(MBEDTLS_SSL_RENEGOTIATION)
  509. "MBEDTLS_SSL_RENEGOTIATION",
  510. #endif /* MBEDTLS_SSL_RENEGOTIATION */
  511. #if defined(MBEDTLS_SSL_SRV_SUPPORT_SSLV2_CLIENT_HELLO)
  512. "MBEDTLS_SSL_SRV_SUPPORT_SSLV2_CLIENT_HELLO",
  513. #endif /* MBEDTLS_SSL_SRV_SUPPORT_SSLV2_CLIENT_HELLO */
  514. #if defined(MBEDTLS_SSL_SRV_RESPECT_CLIENT_PREFERENCE)
  515. "MBEDTLS_SSL_SRV_RESPECT_CLIENT_PREFERENCE",
  516. #endif /* MBEDTLS_SSL_SRV_RESPECT_CLIENT_PREFERENCE */
  517. #if defined(MBEDTLS_SSL_MAX_FRAGMENT_LENGTH)
  518. "MBEDTLS_SSL_MAX_FRAGMENT_LENGTH",
  519. #endif /* MBEDTLS_SSL_MAX_FRAGMENT_LENGTH */
  520. #if defined(MBEDTLS_SSL_PROTO_SSL3)
  521. "MBEDTLS_SSL_PROTO_SSL3",
  522. #endif /* MBEDTLS_SSL_PROTO_SSL3 */
  523. #if defined(MBEDTLS_SSL_PROTO_TLS1)
  524. "MBEDTLS_SSL_PROTO_TLS1",
  525. #endif /* MBEDTLS_SSL_PROTO_TLS1 */
  526. #if defined(MBEDTLS_SSL_PROTO_TLS1_1)
  527. "MBEDTLS_SSL_PROTO_TLS1_1",
  528. #endif /* MBEDTLS_SSL_PROTO_TLS1_1 */
  529. #if defined(MBEDTLS_SSL_PROTO_TLS1_2)
  530. "MBEDTLS_SSL_PROTO_TLS1_2",
  531. #endif /* MBEDTLS_SSL_PROTO_TLS1_2 */
  532. #if defined(MBEDTLS_SSL_PROTO_TLS1_3_EXPERIMENTAL)
  533. "MBEDTLS_SSL_PROTO_TLS1_3_EXPERIMENTAL",
  534. #endif /* MBEDTLS_SSL_PROTO_TLS1_3_EXPERIMENTAL */
  535. #if defined(MBEDTLS_SSL_PROTO_DTLS)
  536. "MBEDTLS_SSL_PROTO_DTLS",
  537. #endif /* MBEDTLS_SSL_PROTO_DTLS */
  538. #if defined(MBEDTLS_SSL_ALPN)
  539. "MBEDTLS_SSL_ALPN",
  540. #endif /* MBEDTLS_SSL_ALPN */
  541. #if defined(MBEDTLS_SSL_DTLS_ANTI_REPLAY)
  542. "MBEDTLS_SSL_DTLS_ANTI_REPLAY",
  543. #endif /* MBEDTLS_SSL_DTLS_ANTI_REPLAY */
  544. #if defined(MBEDTLS_SSL_DTLS_HELLO_VERIFY)
  545. "MBEDTLS_SSL_DTLS_HELLO_VERIFY",
  546. #endif /* MBEDTLS_SSL_DTLS_HELLO_VERIFY */
  547. #if defined(MBEDTLS_SSL_DTLS_SRTP)
  548. "MBEDTLS_SSL_DTLS_SRTP",
  549. #endif /* MBEDTLS_SSL_DTLS_SRTP */
  550. #if defined(MBEDTLS_SSL_DTLS_CLIENT_PORT_REUSE)
  551. "MBEDTLS_SSL_DTLS_CLIENT_PORT_REUSE",
  552. #endif /* MBEDTLS_SSL_DTLS_CLIENT_PORT_REUSE */
  553. #if defined(MBEDTLS_SSL_DTLS_BADMAC_LIMIT)
  554. "MBEDTLS_SSL_DTLS_BADMAC_LIMIT",
  555. #endif /* MBEDTLS_SSL_DTLS_BADMAC_LIMIT */
  556. #if defined(MBEDTLS_SSL_SESSION_TICKETS)
  557. "MBEDTLS_SSL_SESSION_TICKETS",
  558. #endif /* MBEDTLS_SSL_SESSION_TICKETS */
  559. #if defined(MBEDTLS_SSL_EXPORT_KEYS)
  560. "MBEDTLS_SSL_EXPORT_KEYS",
  561. #endif /* MBEDTLS_SSL_EXPORT_KEYS */
  562. #if defined(MBEDTLS_SSL_SERVER_NAME_INDICATION)
  563. "MBEDTLS_SSL_SERVER_NAME_INDICATION",
  564. #endif /* MBEDTLS_SSL_SERVER_NAME_INDICATION */
  565. #if defined(MBEDTLS_SSL_TRUNCATED_HMAC)
  566. "MBEDTLS_SSL_TRUNCATED_HMAC",
  567. #endif /* MBEDTLS_SSL_TRUNCATED_HMAC */
  568. #if defined(MBEDTLS_SSL_TRUNCATED_HMAC_COMPAT)
  569. "MBEDTLS_SSL_TRUNCATED_HMAC_COMPAT",
  570. #endif /* MBEDTLS_SSL_TRUNCATED_HMAC_COMPAT */
  571. #if defined(MBEDTLS_SSL_VARIABLE_BUFFER_LENGTH)
  572. "MBEDTLS_SSL_VARIABLE_BUFFER_LENGTH",
  573. #endif /* MBEDTLS_SSL_VARIABLE_BUFFER_LENGTH */
  574. #if defined(MBEDTLS_TEST_CONSTANT_FLOW_MEMSAN)
  575. "MBEDTLS_TEST_CONSTANT_FLOW_MEMSAN",
  576. #endif /* MBEDTLS_TEST_CONSTANT_FLOW_MEMSAN */
  577. #if defined(MBEDTLS_TEST_CONSTANT_FLOW_VALGRIND)
  578. "MBEDTLS_TEST_CONSTANT_FLOW_VALGRIND",
  579. #endif /* MBEDTLS_TEST_CONSTANT_FLOW_VALGRIND */
  580. #if defined(MBEDTLS_TEST_HOOKS)
  581. "MBEDTLS_TEST_HOOKS",
  582. #endif /* MBEDTLS_TEST_HOOKS */
  583. #if defined(MBEDTLS_THREADING_ALT)
  584. "MBEDTLS_THREADING_ALT",
  585. #endif /* MBEDTLS_THREADING_ALT */
  586. #if defined(MBEDTLS_THREADING_PTHREAD)
  587. "MBEDTLS_THREADING_PTHREAD",
  588. #endif /* MBEDTLS_THREADING_PTHREAD */
  589. #if defined(MBEDTLS_USE_PSA_CRYPTO)
  590. "MBEDTLS_USE_PSA_CRYPTO",
  591. #endif /* MBEDTLS_USE_PSA_CRYPTO */
  592. #if defined(MBEDTLS_PSA_CRYPTO_CONFIG)
  593. "MBEDTLS_PSA_CRYPTO_CONFIG",
  594. #endif /* MBEDTLS_PSA_CRYPTO_CONFIG */
  595. #if defined(MBEDTLS_VERSION_FEATURES)
  596. "MBEDTLS_VERSION_FEATURES",
  597. #endif /* MBEDTLS_VERSION_FEATURES */
  598. #if defined(MBEDTLS_X509_ALLOW_EXTENSIONS_NON_V3)
  599. "MBEDTLS_X509_ALLOW_EXTENSIONS_NON_V3",
  600. #endif /* MBEDTLS_X509_ALLOW_EXTENSIONS_NON_V3 */
  601. #if defined(MBEDTLS_X509_ALLOW_UNSUPPORTED_CRITICAL_EXTENSION)
  602. "MBEDTLS_X509_ALLOW_UNSUPPORTED_CRITICAL_EXTENSION",
  603. #endif /* MBEDTLS_X509_ALLOW_UNSUPPORTED_CRITICAL_EXTENSION */
  604. #if defined(MBEDTLS_X509_TRUSTED_CERTIFICATE_CALLBACK)
  605. "MBEDTLS_X509_TRUSTED_CERTIFICATE_CALLBACK",
  606. #endif /* MBEDTLS_X509_TRUSTED_CERTIFICATE_CALLBACK */
  607. #if defined(MBEDTLS_X509_CHECK_KEY_USAGE)
  608. "MBEDTLS_X509_CHECK_KEY_USAGE",
  609. #endif /* MBEDTLS_X509_CHECK_KEY_USAGE */
  610. #if defined(MBEDTLS_X509_CHECK_EXTENDED_KEY_USAGE)
  611. "MBEDTLS_X509_CHECK_EXTENDED_KEY_USAGE",
  612. #endif /* MBEDTLS_X509_CHECK_EXTENDED_KEY_USAGE */
  613. #if defined(MBEDTLS_X509_RSASSA_PSS_SUPPORT)
  614. "MBEDTLS_X509_RSASSA_PSS_SUPPORT",
  615. #endif /* MBEDTLS_X509_RSASSA_PSS_SUPPORT */
  616. #if defined(MBEDTLS_ZLIB_SUPPORT)
  617. "MBEDTLS_ZLIB_SUPPORT",
  618. #endif /* MBEDTLS_ZLIB_SUPPORT */
  619. #if defined(MBEDTLS_AESNI_C)
  620. "MBEDTLS_AESNI_C",
  621. #endif /* MBEDTLS_AESNI_C */
  622. #if defined(MBEDTLS_AES_C)
  623. "MBEDTLS_AES_C",
  624. #endif /* MBEDTLS_AES_C */
  625. #if defined(MBEDTLS_ARC4_C)
  626. "MBEDTLS_ARC4_C",
  627. #endif /* MBEDTLS_ARC4_C */
  628. #if defined(MBEDTLS_ASN1_PARSE_C)
  629. "MBEDTLS_ASN1_PARSE_C",
  630. #endif /* MBEDTLS_ASN1_PARSE_C */
  631. #if defined(MBEDTLS_ASN1_WRITE_C)
  632. "MBEDTLS_ASN1_WRITE_C",
  633. #endif /* MBEDTLS_ASN1_WRITE_C */
  634. #if defined(MBEDTLS_BASE64_C)
  635. "MBEDTLS_BASE64_C",
  636. #endif /* MBEDTLS_BASE64_C */
  637. #if defined(MBEDTLS_BIGNUM_C)
  638. "MBEDTLS_BIGNUM_C",
  639. #endif /* MBEDTLS_BIGNUM_C */
  640. #if defined(MBEDTLS_BLOWFISH_C)
  641. "MBEDTLS_BLOWFISH_C",
  642. #endif /* MBEDTLS_BLOWFISH_C */
  643. #if defined(MBEDTLS_CAMELLIA_C)
  644. "MBEDTLS_CAMELLIA_C",
  645. #endif /* MBEDTLS_CAMELLIA_C */
  646. #if defined(MBEDTLS_ARIA_C)
  647. "MBEDTLS_ARIA_C",
  648. #endif /* MBEDTLS_ARIA_C */
  649. #if defined(MBEDTLS_CCM_C)
  650. "MBEDTLS_CCM_C",
  651. #endif /* MBEDTLS_CCM_C */
  652. #if defined(MBEDTLS_CERTS_C)
  653. "MBEDTLS_CERTS_C",
  654. #endif /* MBEDTLS_CERTS_C */
  655. #if defined(MBEDTLS_CHACHA20_C)
  656. "MBEDTLS_CHACHA20_C",
  657. #endif /* MBEDTLS_CHACHA20_C */
  658. #if defined(MBEDTLS_CHACHAPOLY_C)
  659. "MBEDTLS_CHACHAPOLY_C",
  660. #endif /* MBEDTLS_CHACHAPOLY_C */
  661. #if defined(MBEDTLS_CIPHER_C)
  662. "MBEDTLS_CIPHER_C",
  663. #endif /* MBEDTLS_CIPHER_C */
  664. #if defined(MBEDTLS_CMAC_C)
  665. "MBEDTLS_CMAC_C",
  666. #endif /* MBEDTLS_CMAC_C */
  667. #if defined(MBEDTLS_CTR_DRBG_C)
  668. "MBEDTLS_CTR_DRBG_C",
  669. #endif /* MBEDTLS_CTR_DRBG_C */
  670. #if defined(MBEDTLS_DEBUG_C)
  671. "MBEDTLS_DEBUG_C",
  672. #endif /* MBEDTLS_DEBUG_C */
  673. #if defined(MBEDTLS_DES_C)
  674. "MBEDTLS_DES_C",
  675. #endif /* MBEDTLS_DES_C */
  676. #if defined(MBEDTLS_DHM_C)
  677. "MBEDTLS_DHM_C",
  678. #endif /* MBEDTLS_DHM_C */
  679. #if defined(MBEDTLS_ECDH_C)
  680. "MBEDTLS_ECDH_C",
  681. #endif /* MBEDTLS_ECDH_C */
  682. #if defined(MBEDTLS_ECDSA_C)
  683. "MBEDTLS_ECDSA_C",
  684. #endif /* MBEDTLS_ECDSA_C */
  685. #if defined(MBEDTLS_ECJPAKE_C)
  686. "MBEDTLS_ECJPAKE_C",
  687. #endif /* MBEDTLS_ECJPAKE_C */
  688. #if defined(MBEDTLS_ECP_C)
  689. "MBEDTLS_ECP_C",
  690. #endif /* MBEDTLS_ECP_C */
  691. #if defined(MBEDTLS_ENTROPY_C)
  692. "MBEDTLS_ENTROPY_C",
  693. #endif /* MBEDTLS_ENTROPY_C */
  694. #if defined(MBEDTLS_ERROR_C)
  695. "MBEDTLS_ERROR_C",
  696. #endif /* MBEDTLS_ERROR_C */
  697. #if defined(MBEDTLS_GCM_C)
  698. "MBEDTLS_GCM_C",
  699. #endif /* MBEDTLS_GCM_C */
  700. #if defined(MBEDTLS_HAVEGE_C)
  701. "MBEDTLS_HAVEGE_C",
  702. #endif /* MBEDTLS_HAVEGE_C */
  703. #if defined(MBEDTLS_HKDF_C)
  704. "MBEDTLS_HKDF_C",
  705. #endif /* MBEDTLS_HKDF_C */
  706. #if defined(MBEDTLS_HMAC_DRBG_C)
  707. "MBEDTLS_HMAC_DRBG_C",
  708. #endif /* MBEDTLS_HMAC_DRBG_C */
  709. #if defined(MBEDTLS_NIST_KW_C)
  710. "MBEDTLS_NIST_KW_C",
  711. #endif /* MBEDTLS_NIST_KW_C */
  712. #if defined(MBEDTLS_MD_C)
  713. "MBEDTLS_MD_C",
  714. #endif /* MBEDTLS_MD_C */
  715. #if defined(MBEDTLS_MD2_C)
  716. "MBEDTLS_MD2_C",
  717. #endif /* MBEDTLS_MD2_C */
  718. #if defined(MBEDTLS_MD4_C)
  719. "MBEDTLS_MD4_C",
  720. #endif /* MBEDTLS_MD4_C */
  721. #if defined(MBEDTLS_MD5_C)
  722. "MBEDTLS_MD5_C",
  723. #endif /* MBEDTLS_MD5_C */
  724. #if defined(MBEDTLS_MEMORY_BUFFER_ALLOC_C)
  725. "MBEDTLS_MEMORY_BUFFER_ALLOC_C",
  726. #endif /* MBEDTLS_MEMORY_BUFFER_ALLOC_C */
  727. #if defined(MBEDTLS_NET_C)
  728. "MBEDTLS_NET_C",
  729. #endif /* MBEDTLS_NET_C */
  730. #if defined(MBEDTLS_OID_C)
  731. "MBEDTLS_OID_C",
  732. #endif /* MBEDTLS_OID_C */
  733. #if defined(MBEDTLS_PADLOCK_C)
  734. "MBEDTLS_PADLOCK_C",
  735. #endif /* MBEDTLS_PADLOCK_C */
  736. #if defined(MBEDTLS_PEM_PARSE_C)
  737. "MBEDTLS_PEM_PARSE_C",
  738. #endif /* MBEDTLS_PEM_PARSE_C */
  739. #if defined(MBEDTLS_PEM_WRITE_C)
  740. "MBEDTLS_PEM_WRITE_C",
  741. #endif /* MBEDTLS_PEM_WRITE_C */
  742. #if defined(MBEDTLS_PK_C)
  743. "MBEDTLS_PK_C",
  744. #endif /* MBEDTLS_PK_C */
  745. #if defined(MBEDTLS_PK_PARSE_C)
  746. "MBEDTLS_PK_PARSE_C",
  747. #endif /* MBEDTLS_PK_PARSE_C */
  748. #if defined(MBEDTLS_PK_WRITE_C)
  749. "MBEDTLS_PK_WRITE_C",
  750. #endif /* MBEDTLS_PK_WRITE_C */
  751. #if defined(MBEDTLS_PKCS5_C)
  752. "MBEDTLS_PKCS5_C",
  753. #endif /* MBEDTLS_PKCS5_C */
  754. #if defined(MBEDTLS_PKCS11_C)
  755. "MBEDTLS_PKCS11_C",
  756. #endif /* MBEDTLS_PKCS11_C */
  757. #if defined(MBEDTLS_PKCS12_C)
  758. "MBEDTLS_PKCS12_C",
  759. #endif /* MBEDTLS_PKCS12_C */
  760. #if defined(MBEDTLS_PLATFORM_C)
  761. "MBEDTLS_PLATFORM_C",
  762. #endif /* MBEDTLS_PLATFORM_C */
  763. #if defined(MBEDTLS_POLY1305_C)
  764. "MBEDTLS_POLY1305_C",
  765. #endif /* MBEDTLS_POLY1305_C */
  766. #if defined(MBEDTLS_PSA_CRYPTO_C)
  767. "MBEDTLS_PSA_CRYPTO_C",
  768. #endif /* MBEDTLS_PSA_CRYPTO_C */
  769. #if defined(MBEDTLS_PSA_CRYPTO_SE_C)
  770. "MBEDTLS_PSA_CRYPTO_SE_C",
  771. #endif /* MBEDTLS_PSA_CRYPTO_SE_C */
  772. #if defined(MBEDTLS_PSA_CRYPTO_STORAGE_C)
  773. "MBEDTLS_PSA_CRYPTO_STORAGE_C",
  774. #endif /* MBEDTLS_PSA_CRYPTO_STORAGE_C */
  775. #if defined(MBEDTLS_PSA_ITS_FILE_C)
  776. "MBEDTLS_PSA_ITS_FILE_C",
  777. #endif /* MBEDTLS_PSA_ITS_FILE_C */
  778. #if defined(MBEDTLS_RIPEMD160_C)
  779. "MBEDTLS_RIPEMD160_C",
  780. #endif /* MBEDTLS_RIPEMD160_C */
  781. #if defined(MBEDTLS_RSA_C)
  782. "MBEDTLS_RSA_C",
  783. #endif /* MBEDTLS_RSA_C */
  784. #if defined(MBEDTLS_SHA1_C)
  785. "MBEDTLS_SHA1_C",
  786. #endif /* MBEDTLS_SHA1_C */
  787. #if defined(MBEDTLS_SHA256_C)
  788. "MBEDTLS_SHA256_C",
  789. #endif /* MBEDTLS_SHA256_C */
  790. #if defined(MBEDTLS_SHA512_C)
  791. "MBEDTLS_SHA512_C",
  792. #endif /* MBEDTLS_SHA512_C */
  793. #if defined(MBEDTLS_SSL_CACHE_C)
  794. "MBEDTLS_SSL_CACHE_C",
  795. #endif /* MBEDTLS_SSL_CACHE_C */
  796. #if defined(MBEDTLS_SSL_COOKIE_C)
  797. "MBEDTLS_SSL_COOKIE_C",
  798. #endif /* MBEDTLS_SSL_COOKIE_C */
  799. #if defined(MBEDTLS_SSL_TICKET_C)
  800. "MBEDTLS_SSL_TICKET_C",
  801. #endif /* MBEDTLS_SSL_TICKET_C */
  802. #if defined(MBEDTLS_SSL_CLI_C)
  803. "MBEDTLS_SSL_CLI_C",
  804. #endif /* MBEDTLS_SSL_CLI_C */
  805. #if defined(MBEDTLS_SSL_SRV_C)
  806. "MBEDTLS_SSL_SRV_C",
  807. #endif /* MBEDTLS_SSL_SRV_C */
  808. #if defined(MBEDTLS_SSL_TLS_C)
  809. "MBEDTLS_SSL_TLS_C",
  810. #endif /* MBEDTLS_SSL_TLS_C */
  811. #if defined(MBEDTLS_THREADING_C)
  812. "MBEDTLS_THREADING_C",
  813. #endif /* MBEDTLS_THREADING_C */
  814. #if defined(MBEDTLS_TIMING_C)
  815. "MBEDTLS_TIMING_C",
  816. #endif /* MBEDTLS_TIMING_C */
  817. #if defined(MBEDTLS_VERSION_C)
  818. "MBEDTLS_VERSION_C",
  819. #endif /* MBEDTLS_VERSION_C */
  820. #if defined(MBEDTLS_X509_USE_C)
  821. "MBEDTLS_X509_USE_C",
  822. #endif /* MBEDTLS_X509_USE_C */
  823. #if defined(MBEDTLS_X509_CRT_PARSE_C)
  824. "MBEDTLS_X509_CRT_PARSE_C",
  825. #endif /* MBEDTLS_X509_CRT_PARSE_C */
  826. #if defined(MBEDTLS_X509_CRL_PARSE_C)
  827. "MBEDTLS_X509_CRL_PARSE_C",
  828. #endif /* MBEDTLS_X509_CRL_PARSE_C */
  829. #if defined(MBEDTLS_X509_CSR_PARSE_C)
  830. "MBEDTLS_X509_CSR_PARSE_C",
  831. #endif /* MBEDTLS_X509_CSR_PARSE_C */
  832. #if defined(MBEDTLS_X509_CREATE_C)
  833. "MBEDTLS_X509_CREATE_C",
  834. #endif /* MBEDTLS_X509_CREATE_C */
  835. #if defined(MBEDTLS_X509_CRT_WRITE_C)
  836. "MBEDTLS_X509_CRT_WRITE_C",
  837. #endif /* MBEDTLS_X509_CRT_WRITE_C */
  838. #if defined(MBEDTLS_X509_CSR_WRITE_C)
  839. "MBEDTLS_X509_CSR_WRITE_C",
  840. #endif /* MBEDTLS_X509_CSR_WRITE_C */
  841. #if defined(MBEDTLS_XTEA_C)
  842. "MBEDTLS_XTEA_C",
  843. #endif /* MBEDTLS_XTEA_C */
  844. #endif /* MBEDTLS_VERSION_FEATURES */
  845. NULL
  846. };
  847. int mbedtls_version_check_feature( const char *feature )
  848. {
  849. const char * const *idx = features;
  850. if( *idx == NULL )
  851. return( -2 );
  852. if( feature == NULL )
  853. return( -1 );
  854. while( *idx != NULL )
  855. {
  856. if( !strcmp( *idx, feature ) )
  857. return( 0 );
  858. idx++;
  859. }
  860. return( -1 );
  861. }
  862. #endif /* MBEDTLS_VERSION_C */