query_config.c 81 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851
  1. /*
  2. * Query Mbed TLS compile time configurations from config.h
  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. #if !defined(MBEDTLS_CONFIG_FILE)
  20. #include "mbedtls/config.h"
  21. #else
  22. #include MBEDTLS_CONFIG_FILE
  23. #endif
  24. #include "query_config.h"
  25. #if defined(MBEDTLS_PLATFORM_C)
  26. #include "mbedtls/platform.h"
  27. #else
  28. #include <stdio.h>
  29. #define mbedtls_printf printf
  30. #endif /* MBEDTLS_PLATFORM_C */
  31. /*
  32. * Include all the headers with public APIs in case they define a macro to its
  33. * default value when that configuration is not set in the config.h.
  34. */
  35. #include "mbedtls/aes.h"
  36. #include "mbedtls/aesni.h"
  37. #include "mbedtls/arc4.h"
  38. #include "mbedtls/aria.h"
  39. #include "mbedtls/asn1.h"
  40. #include "mbedtls/asn1write.h"
  41. #include "mbedtls/base64.h"
  42. #include "mbedtls/bignum.h"
  43. #include "mbedtls/blowfish.h"
  44. #include "mbedtls/camellia.h"
  45. #include "mbedtls/ccm.h"
  46. #include "mbedtls/certs.h"
  47. #include "mbedtls/chacha20.h"
  48. #include "mbedtls/chachapoly.h"
  49. #include "mbedtls/cipher.h"
  50. #include "mbedtls/cmac.h"
  51. #include "mbedtls/ctr_drbg.h"
  52. #include "mbedtls/debug.h"
  53. #include "mbedtls/des.h"
  54. #include "mbedtls/dhm.h"
  55. #include "mbedtls/ecdh.h"
  56. #include "mbedtls/ecdsa.h"
  57. #include "mbedtls/ecjpake.h"
  58. #include "mbedtls/ecp.h"
  59. #include "mbedtls/entropy.h"
  60. #include "mbedtls/entropy_poll.h"
  61. #include "mbedtls/error.h"
  62. #include "mbedtls/gcm.h"
  63. #include "mbedtls/havege.h"
  64. #include "mbedtls/hkdf.h"
  65. #include "mbedtls/hmac_drbg.h"
  66. #include "mbedtls/md.h"
  67. #include "mbedtls/md2.h"
  68. #include "mbedtls/md4.h"
  69. #include "mbedtls/md5.h"
  70. #include "mbedtls/memory_buffer_alloc.h"
  71. #include "mbedtls/net_sockets.h"
  72. #include "mbedtls/nist_kw.h"
  73. #include "mbedtls/oid.h"
  74. #include "mbedtls/padlock.h"
  75. #include "mbedtls/pem.h"
  76. #include "mbedtls/pk.h"
  77. #include "mbedtls/pkcs11.h"
  78. #include "mbedtls/pkcs12.h"
  79. #include "mbedtls/pkcs5.h"
  80. #include "mbedtls/platform_time.h"
  81. #include "mbedtls/platform_util.h"
  82. #include "mbedtls/poly1305.h"
  83. #include "mbedtls/ripemd160.h"
  84. #include "mbedtls/rsa.h"
  85. #include "mbedtls/sha1.h"
  86. #include "mbedtls/sha256.h"
  87. #include "mbedtls/sha512.h"
  88. #include "mbedtls/ssl.h"
  89. #include "mbedtls/ssl_cache.h"
  90. #include "mbedtls/ssl_ciphersuites.h"
  91. #include "mbedtls/ssl_cookie.h"
  92. #include "mbedtls/ssl_internal.h"
  93. #include "mbedtls/ssl_ticket.h"
  94. #include "mbedtls/threading.h"
  95. #include "mbedtls/timing.h"
  96. #include "mbedtls/version.h"
  97. #include "mbedtls/x509.h"
  98. #include "mbedtls/x509_crl.h"
  99. #include "mbedtls/x509_crt.h"
  100. #include "mbedtls/x509_csr.h"
  101. #include "mbedtls/xtea.h"
  102. #include <string.h>
  103. /*
  104. * Helper macros to convert a macro or its expansion into a string
  105. * WARNING: This does not work for expanding function-like macros. However,
  106. * Mbed TLS does not currently have configuration options used in this fashion.
  107. */
  108. #define MACRO_EXPANSION_TO_STR(macro) MACRO_NAME_TO_STR(macro)
  109. #define MACRO_NAME_TO_STR(macro) \
  110. mbedtls_printf( "%s", strlen( #macro "" ) > 0 ? #macro "\n" : "" )
  111. #if defined(_MSC_VER)
  112. /*
  113. * Visual Studio throws the warning 4003 because many Mbed TLS feature macros
  114. * are defined empty. This means that from the preprocessor's point of view
  115. * the macro MBEDTLS_EXPANSION_TO_STR is being invoked without arguments as
  116. * some macros expand to nothing. We suppress that specific warning to get a
  117. * clean build and to ensure that tests treating warnings as errors do not
  118. * fail.
  119. */
  120. #pragma warning(push)
  121. #pragma warning(disable:4003)
  122. #endif /* _MSC_VER */
  123. int query_config( const char *config )
  124. {
  125. #if defined(MBEDTLS_HAVE_ASM)
  126. if( strcmp( "MBEDTLS_HAVE_ASM", config ) == 0 )
  127. {
  128. MACRO_EXPANSION_TO_STR( MBEDTLS_HAVE_ASM );
  129. return( 0 );
  130. }
  131. #endif /* MBEDTLS_HAVE_ASM */
  132. #if defined(MBEDTLS_NO_UDBL_DIVISION)
  133. if( strcmp( "MBEDTLS_NO_UDBL_DIVISION", config ) == 0 )
  134. {
  135. MACRO_EXPANSION_TO_STR( MBEDTLS_NO_UDBL_DIVISION );
  136. return( 0 );
  137. }
  138. #endif /* MBEDTLS_NO_UDBL_DIVISION */
  139. #if defined(MBEDTLS_NO_64BIT_MULTIPLICATION)
  140. if( strcmp( "MBEDTLS_NO_64BIT_MULTIPLICATION", config ) == 0 )
  141. {
  142. MACRO_EXPANSION_TO_STR( MBEDTLS_NO_64BIT_MULTIPLICATION );
  143. return( 0 );
  144. }
  145. #endif /* MBEDTLS_NO_64BIT_MULTIPLICATION */
  146. #if defined(MBEDTLS_HAVE_SSE2)
  147. if( strcmp( "MBEDTLS_HAVE_SSE2", config ) == 0 )
  148. {
  149. MACRO_EXPANSION_TO_STR( MBEDTLS_HAVE_SSE2 );
  150. return( 0 );
  151. }
  152. #endif /* MBEDTLS_HAVE_SSE2 */
  153. #if defined(MBEDTLS_HAVE_TIME)
  154. if( strcmp( "MBEDTLS_HAVE_TIME", config ) == 0 )
  155. {
  156. MACRO_EXPANSION_TO_STR( MBEDTLS_HAVE_TIME );
  157. return( 0 );
  158. }
  159. #endif /* MBEDTLS_HAVE_TIME */
  160. #if defined(MBEDTLS_HAVE_TIME_DATE)
  161. if( strcmp( "MBEDTLS_HAVE_TIME_DATE", config ) == 0 )
  162. {
  163. MACRO_EXPANSION_TO_STR( MBEDTLS_HAVE_TIME_DATE );
  164. return( 0 );
  165. }
  166. #endif /* MBEDTLS_HAVE_TIME_DATE */
  167. #if defined(MBEDTLS_PLATFORM_MEMORY)
  168. if( strcmp( "MBEDTLS_PLATFORM_MEMORY", config ) == 0 )
  169. {
  170. MACRO_EXPANSION_TO_STR( MBEDTLS_PLATFORM_MEMORY );
  171. return( 0 );
  172. }
  173. #endif /* MBEDTLS_PLATFORM_MEMORY */
  174. #if defined(MBEDTLS_PLATFORM_NO_STD_FUNCTIONS)
  175. if( strcmp( "MBEDTLS_PLATFORM_NO_STD_FUNCTIONS", config ) == 0 )
  176. {
  177. MACRO_EXPANSION_TO_STR( MBEDTLS_PLATFORM_NO_STD_FUNCTIONS );
  178. return( 0 );
  179. }
  180. #endif /* MBEDTLS_PLATFORM_NO_STD_FUNCTIONS */
  181. #if defined(MBEDTLS_PLATFORM_EXIT_ALT)
  182. if( strcmp( "MBEDTLS_PLATFORM_EXIT_ALT", config ) == 0 )
  183. {
  184. MACRO_EXPANSION_TO_STR( MBEDTLS_PLATFORM_EXIT_ALT );
  185. return( 0 );
  186. }
  187. #endif /* MBEDTLS_PLATFORM_EXIT_ALT */
  188. #if defined(MBEDTLS_PLATFORM_TIME_ALT)
  189. if( strcmp( "MBEDTLS_PLATFORM_TIME_ALT", config ) == 0 )
  190. {
  191. MACRO_EXPANSION_TO_STR( MBEDTLS_PLATFORM_TIME_ALT );
  192. return( 0 );
  193. }
  194. #endif /* MBEDTLS_PLATFORM_TIME_ALT */
  195. #if defined(MBEDTLS_PLATFORM_FPRINTF_ALT)
  196. if( strcmp( "MBEDTLS_PLATFORM_FPRINTF_ALT", config ) == 0 )
  197. {
  198. MACRO_EXPANSION_TO_STR( MBEDTLS_PLATFORM_FPRINTF_ALT );
  199. return( 0 );
  200. }
  201. #endif /* MBEDTLS_PLATFORM_FPRINTF_ALT */
  202. #if defined(MBEDTLS_PLATFORM_PRINTF_ALT)
  203. if( strcmp( "MBEDTLS_PLATFORM_PRINTF_ALT", config ) == 0 )
  204. {
  205. MACRO_EXPANSION_TO_STR( MBEDTLS_PLATFORM_PRINTF_ALT );
  206. return( 0 );
  207. }
  208. #endif /* MBEDTLS_PLATFORM_PRINTF_ALT */
  209. #if defined(MBEDTLS_PLATFORM_SNPRINTF_ALT)
  210. if( strcmp( "MBEDTLS_PLATFORM_SNPRINTF_ALT", config ) == 0 )
  211. {
  212. MACRO_EXPANSION_TO_STR( MBEDTLS_PLATFORM_SNPRINTF_ALT );
  213. return( 0 );
  214. }
  215. #endif /* MBEDTLS_PLATFORM_SNPRINTF_ALT */
  216. #if defined(MBEDTLS_PLATFORM_VSNPRINTF_ALT)
  217. if( strcmp( "MBEDTLS_PLATFORM_VSNPRINTF_ALT", config ) == 0 )
  218. {
  219. MACRO_EXPANSION_TO_STR( MBEDTLS_PLATFORM_VSNPRINTF_ALT );
  220. return( 0 );
  221. }
  222. #endif /* MBEDTLS_PLATFORM_VSNPRINTF_ALT */
  223. #if defined(MBEDTLS_PLATFORM_NV_SEED_ALT)
  224. if( strcmp( "MBEDTLS_PLATFORM_NV_SEED_ALT", config ) == 0 )
  225. {
  226. MACRO_EXPANSION_TO_STR( MBEDTLS_PLATFORM_NV_SEED_ALT );
  227. return( 0 );
  228. }
  229. #endif /* MBEDTLS_PLATFORM_NV_SEED_ALT */
  230. #if defined(MBEDTLS_PLATFORM_SETUP_TEARDOWN_ALT)
  231. if( strcmp( "MBEDTLS_PLATFORM_SETUP_TEARDOWN_ALT", config ) == 0 )
  232. {
  233. MACRO_EXPANSION_TO_STR( MBEDTLS_PLATFORM_SETUP_TEARDOWN_ALT );
  234. return( 0 );
  235. }
  236. #endif /* MBEDTLS_PLATFORM_SETUP_TEARDOWN_ALT */
  237. #if defined(MBEDTLS_DEPRECATED_WARNING)
  238. if( strcmp( "MBEDTLS_DEPRECATED_WARNING", config ) == 0 )
  239. {
  240. MACRO_EXPANSION_TO_STR( MBEDTLS_DEPRECATED_WARNING );
  241. return( 0 );
  242. }
  243. #endif /* MBEDTLS_DEPRECATED_WARNING */
  244. #if defined(MBEDTLS_DEPRECATED_REMOVED)
  245. if( strcmp( "MBEDTLS_DEPRECATED_REMOVED", config ) == 0 )
  246. {
  247. MACRO_EXPANSION_TO_STR( MBEDTLS_DEPRECATED_REMOVED );
  248. return( 0 );
  249. }
  250. #endif /* MBEDTLS_DEPRECATED_REMOVED */
  251. #if defined(MBEDTLS_CHECK_PARAMS)
  252. if( strcmp( "MBEDTLS_CHECK_PARAMS", config ) == 0 )
  253. {
  254. MACRO_EXPANSION_TO_STR( MBEDTLS_CHECK_PARAMS );
  255. return( 0 );
  256. }
  257. #endif /* MBEDTLS_CHECK_PARAMS */
  258. #if defined(MBEDTLS_CHECK_PARAMS_ASSERT)
  259. if( strcmp( "MBEDTLS_CHECK_PARAMS_ASSERT", config ) == 0 )
  260. {
  261. MACRO_EXPANSION_TO_STR( MBEDTLS_CHECK_PARAMS_ASSERT );
  262. return( 0 );
  263. }
  264. #endif /* MBEDTLS_CHECK_PARAMS_ASSERT */
  265. #if defined(MBEDTLS_TIMING_ALT)
  266. if( strcmp( "MBEDTLS_TIMING_ALT", config ) == 0 )
  267. {
  268. MACRO_EXPANSION_TO_STR( MBEDTLS_TIMING_ALT );
  269. return( 0 );
  270. }
  271. #endif /* MBEDTLS_TIMING_ALT */
  272. #if defined(MBEDTLS_AES_ALT)
  273. if( strcmp( "MBEDTLS_AES_ALT", config ) == 0 )
  274. {
  275. MACRO_EXPANSION_TO_STR( MBEDTLS_AES_ALT );
  276. return( 0 );
  277. }
  278. #endif /* MBEDTLS_AES_ALT */
  279. #if defined(MBEDTLS_ARC4_ALT)
  280. if( strcmp( "MBEDTLS_ARC4_ALT", config ) == 0 )
  281. {
  282. MACRO_EXPANSION_TO_STR( MBEDTLS_ARC4_ALT );
  283. return( 0 );
  284. }
  285. #endif /* MBEDTLS_ARC4_ALT */
  286. #if defined(MBEDTLS_ARIA_ALT)
  287. if( strcmp( "MBEDTLS_ARIA_ALT", config ) == 0 )
  288. {
  289. MACRO_EXPANSION_TO_STR( MBEDTLS_ARIA_ALT );
  290. return( 0 );
  291. }
  292. #endif /* MBEDTLS_ARIA_ALT */
  293. #if defined(MBEDTLS_BLOWFISH_ALT)
  294. if( strcmp( "MBEDTLS_BLOWFISH_ALT", config ) == 0 )
  295. {
  296. MACRO_EXPANSION_TO_STR( MBEDTLS_BLOWFISH_ALT );
  297. return( 0 );
  298. }
  299. #endif /* MBEDTLS_BLOWFISH_ALT */
  300. #if defined(MBEDTLS_CAMELLIA_ALT)
  301. if( strcmp( "MBEDTLS_CAMELLIA_ALT", config ) == 0 )
  302. {
  303. MACRO_EXPANSION_TO_STR( MBEDTLS_CAMELLIA_ALT );
  304. return( 0 );
  305. }
  306. #endif /* MBEDTLS_CAMELLIA_ALT */
  307. #if defined(MBEDTLS_CCM_ALT)
  308. if( strcmp( "MBEDTLS_CCM_ALT", config ) == 0 )
  309. {
  310. MACRO_EXPANSION_TO_STR( MBEDTLS_CCM_ALT );
  311. return( 0 );
  312. }
  313. #endif /* MBEDTLS_CCM_ALT */
  314. #if defined(MBEDTLS_CHACHA20_ALT)
  315. if( strcmp( "MBEDTLS_CHACHA20_ALT", config ) == 0 )
  316. {
  317. MACRO_EXPANSION_TO_STR( MBEDTLS_CHACHA20_ALT );
  318. return( 0 );
  319. }
  320. #endif /* MBEDTLS_CHACHA20_ALT */
  321. #if defined(MBEDTLS_CHACHAPOLY_ALT)
  322. if( strcmp( "MBEDTLS_CHACHAPOLY_ALT", config ) == 0 )
  323. {
  324. MACRO_EXPANSION_TO_STR( MBEDTLS_CHACHAPOLY_ALT );
  325. return( 0 );
  326. }
  327. #endif /* MBEDTLS_CHACHAPOLY_ALT */
  328. #if defined(MBEDTLS_CMAC_ALT)
  329. if( strcmp( "MBEDTLS_CMAC_ALT", config ) == 0 )
  330. {
  331. MACRO_EXPANSION_TO_STR( MBEDTLS_CMAC_ALT );
  332. return( 0 );
  333. }
  334. #endif /* MBEDTLS_CMAC_ALT */
  335. #if defined(MBEDTLS_DES_ALT)
  336. if( strcmp( "MBEDTLS_DES_ALT", config ) == 0 )
  337. {
  338. MACRO_EXPANSION_TO_STR( MBEDTLS_DES_ALT );
  339. return( 0 );
  340. }
  341. #endif /* MBEDTLS_DES_ALT */
  342. #if defined(MBEDTLS_DHM_ALT)
  343. if( strcmp( "MBEDTLS_DHM_ALT", config ) == 0 )
  344. {
  345. MACRO_EXPANSION_TO_STR( MBEDTLS_DHM_ALT );
  346. return( 0 );
  347. }
  348. #endif /* MBEDTLS_DHM_ALT */
  349. #if defined(MBEDTLS_ECJPAKE_ALT)
  350. if( strcmp( "MBEDTLS_ECJPAKE_ALT", config ) == 0 )
  351. {
  352. MACRO_EXPANSION_TO_STR( MBEDTLS_ECJPAKE_ALT );
  353. return( 0 );
  354. }
  355. #endif /* MBEDTLS_ECJPAKE_ALT */
  356. #if defined(MBEDTLS_GCM_ALT)
  357. if( strcmp( "MBEDTLS_GCM_ALT", config ) == 0 )
  358. {
  359. MACRO_EXPANSION_TO_STR( MBEDTLS_GCM_ALT );
  360. return( 0 );
  361. }
  362. #endif /* MBEDTLS_GCM_ALT */
  363. #if defined(MBEDTLS_NIST_KW_ALT)
  364. if( strcmp( "MBEDTLS_NIST_KW_ALT", config ) == 0 )
  365. {
  366. MACRO_EXPANSION_TO_STR( MBEDTLS_NIST_KW_ALT );
  367. return( 0 );
  368. }
  369. #endif /* MBEDTLS_NIST_KW_ALT */
  370. #if defined(MBEDTLS_MD2_ALT)
  371. if( strcmp( "MBEDTLS_MD2_ALT", config ) == 0 )
  372. {
  373. MACRO_EXPANSION_TO_STR( MBEDTLS_MD2_ALT );
  374. return( 0 );
  375. }
  376. #endif /* MBEDTLS_MD2_ALT */
  377. #if defined(MBEDTLS_MD4_ALT)
  378. if( strcmp( "MBEDTLS_MD4_ALT", config ) == 0 )
  379. {
  380. MACRO_EXPANSION_TO_STR( MBEDTLS_MD4_ALT );
  381. return( 0 );
  382. }
  383. #endif /* MBEDTLS_MD4_ALT */
  384. #if defined(MBEDTLS_MD5_ALT)
  385. if( strcmp( "MBEDTLS_MD5_ALT", config ) == 0 )
  386. {
  387. MACRO_EXPANSION_TO_STR( MBEDTLS_MD5_ALT );
  388. return( 0 );
  389. }
  390. #endif /* MBEDTLS_MD5_ALT */
  391. #if defined(MBEDTLS_POLY1305_ALT)
  392. if( strcmp( "MBEDTLS_POLY1305_ALT", config ) == 0 )
  393. {
  394. MACRO_EXPANSION_TO_STR( MBEDTLS_POLY1305_ALT );
  395. return( 0 );
  396. }
  397. #endif /* MBEDTLS_POLY1305_ALT */
  398. #if defined(MBEDTLS_RIPEMD160_ALT)
  399. if( strcmp( "MBEDTLS_RIPEMD160_ALT", config ) == 0 )
  400. {
  401. MACRO_EXPANSION_TO_STR( MBEDTLS_RIPEMD160_ALT );
  402. return( 0 );
  403. }
  404. #endif /* MBEDTLS_RIPEMD160_ALT */
  405. #if defined(MBEDTLS_RSA_ALT)
  406. if( strcmp( "MBEDTLS_RSA_ALT", config ) == 0 )
  407. {
  408. MACRO_EXPANSION_TO_STR( MBEDTLS_RSA_ALT );
  409. return( 0 );
  410. }
  411. #endif /* MBEDTLS_RSA_ALT */
  412. #if defined(MBEDTLS_SHA1_ALT)
  413. if( strcmp( "MBEDTLS_SHA1_ALT", config ) == 0 )
  414. {
  415. MACRO_EXPANSION_TO_STR( MBEDTLS_SHA1_ALT );
  416. return( 0 );
  417. }
  418. #endif /* MBEDTLS_SHA1_ALT */
  419. #if defined(MBEDTLS_SHA256_ALT)
  420. if( strcmp( "MBEDTLS_SHA256_ALT", config ) == 0 )
  421. {
  422. MACRO_EXPANSION_TO_STR( MBEDTLS_SHA256_ALT );
  423. return( 0 );
  424. }
  425. #endif /* MBEDTLS_SHA256_ALT */
  426. #if defined(MBEDTLS_SHA512_ALT)
  427. if( strcmp( "MBEDTLS_SHA512_ALT", config ) == 0 )
  428. {
  429. MACRO_EXPANSION_TO_STR( MBEDTLS_SHA512_ALT );
  430. return( 0 );
  431. }
  432. #endif /* MBEDTLS_SHA512_ALT */
  433. #if defined(MBEDTLS_XTEA_ALT)
  434. if( strcmp( "MBEDTLS_XTEA_ALT", config ) == 0 )
  435. {
  436. MACRO_EXPANSION_TO_STR( MBEDTLS_XTEA_ALT );
  437. return( 0 );
  438. }
  439. #endif /* MBEDTLS_XTEA_ALT */
  440. #if defined(MBEDTLS_ECP_ALT)
  441. if( strcmp( "MBEDTLS_ECP_ALT", config ) == 0 )
  442. {
  443. MACRO_EXPANSION_TO_STR( MBEDTLS_ECP_ALT );
  444. return( 0 );
  445. }
  446. #endif /* MBEDTLS_ECP_ALT */
  447. #if defined(MBEDTLS_MD2_PROCESS_ALT)
  448. if( strcmp( "MBEDTLS_MD2_PROCESS_ALT", config ) == 0 )
  449. {
  450. MACRO_EXPANSION_TO_STR( MBEDTLS_MD2_PROCESS_ALT );
  451. return( 0 );
  452. }
  453. #endif /* MBEDTLS_MD2_PROCESS_ALT */
  454. #if defined(MBEDTLS_MD4_PROCESS_ALT)
  455. if( strcmp( "MBEDTLS_MD4_PROCESS_ALT", config ) == 0 )
  456. {
  457. MACRO_EXPANSION_TO_STR( MBEDTLS_MD4_PROCESS_ALT );
  458. return( 0 );
  459. }
  460. #endif /* MBEDTLS_MD4_PROCESS_ALT */
  461. #if defined(MBEDTLS_MD5_PROCESS_ALT)
  462. if( strcmp( "MBEDTLS_MD5_PROCESS_ALT", config ) == 0 )
  463. {
  464. MACRO_EXPANSION_TO_STR( MBEDTLS_MD5_PROCESS_ALT );
  465. return( 0 );
  466. }
  467. #endif /* MBEDTLS_MD5_PROCESS_ALT */
  468. #if defined(MBEDTLS_RIPEMD160_PROCESS_ALT)
  469. if( strcmp( "MBEDTLS_RIPEMD160_PROCESS_ALT", config ) == 0 )
  470. {
  471. MACRO_EXPANSION_TO_STR( MBEDTLS_RIPEMD160_PROCESS_ALT );
  472. return( 0 );
  473. }
  474. #endif /* MBEDTLS_RIPEMD160_PROCESS_ALT */
  475. #if defined(MBEDTLS_SHA1_PROCESS_ALT)
  476. if( strcmp( "MBEDTLS_SHA1_PROCESS_ALT", config ) == 0 )
  477. {
  478. MACRO_EXPANSION_TO_STR( MBEDTLS_SHA1_PROCESS_ALT );
  479. return( 0 );
  480. }
  481. #endif /* MBEDTLS_SHA1_PROCESS_ALT */
  482. #if defined(MBEDTLS_SHA256_PROCESS_ALT)
  483. if( strcmp( "MBEDTLS_SHA256_PROCESS_ALT", config ) == 0 )
  484. {
  485. MACRO_EXPANSION_TO_STR( MBEDTLS_SHA256_PROCESS_ALT );
  486. return( 0 );
  487. }
  488. #endif /* MBEDTLS_SHA256_PROCESS_ALT */
  489. #if defined(MBEDTLS_SHA512_PROCESS_ALT)
  490. if( strcmp( "MBEDTLS_SHA512_PROCESS_ALT", config ) == 0 )
  491. {
  492. MACRO_EXPANSION_TO_STR( MBEDTLS_SHA512_PROCESS_ALT );
  493. return( 0 );
  494. }
  495. #endif /* MBEDTLS_SHA512_PROCESS_ALT */
  496. #if defined(MBEDTLS_DES_SETKEY_ALT)
  497. if( strcmp( "MBEDTLS_DES_SETKEY_ALT", config ) == 0 )
  498. {
  499. MACRO_EXPANSION_TO_STR( MBEDTLS_DES_SETKEY_ALT );
  500. return( 0 );
  501. }
  502. #endif /* MBEDTLS_DES_SETKEY_ALT */
  503. #if defined(MBEDTLS_DES_CRYPT_ECB_ALT)
  504. if( strcmp( "MBEDTLS_DES_CRYPT_ECB_ALT", config ) == 0 )
  505. {
  506. MACRO_EXPANSION_TO_STR( MBEDTLS_DES_CRYPT_ECB_ALT );
  507. return( 0 );
  508. }
  509. #endif /* MBEDTLS_DES_CRYPT_ECB_ALT */
  510. #if defined(MBEDTLS_DES3_CRYPT_ECB_ALT)
  511. if( strcmp( "MBEDTLS_DES3_CRYPT_ECB_ALT", config ) == 0 )
  512. {
  513. MACRO_EXPANSION_TO_STR( MBEDTLS_DES3_CRYPT_ECB_ALT );
  514. return( 0 );
  515. }
  516. #endif /* MBEDTLS_DES3_CRYPT_ECB_ALT */
  517. #if defined(MBEDTLS_AES_SETKEY_ENC_ALT)
  518. if( strcmp( "MBEDTLS_AES_SETKEY_ENC_ALT", config ) == 0 )
  519. {
  520. MACRO_EXPANSION_TO_STR( MBEDTLS_AES_SETKEY_ENC_ALT );
  521. return( 0 );
  522. }
  523. #endif /* MBEDTLS_AES_SETKEY_ENC_ALT */
  524. #if defined(MBEDTLS_AES_SETKEY_DEC_ALT)
  525. if( strcmp( "MBEDTLS_AES_SETKEY_DEC_ALT", config ) == 0 )
  526. {
  527. MACRO_EXPANSION_TO_STR( MBEDTLS_AES_SETKEY_DEC_ALT );
  528. return( 0 );
  529. }
  530. #endif /* MBEDTLS_AES_SETKEY_DEC_ALT */
  531. #if defined(MBEDTLS_AES_ENCRYPT_ALT)
  532. if( strcmp( "MBEDTLS_AES_ENCRYPT_ALT", config ) == 0 )
  533. {
  534. MACRO_EXPANSION_TO_STR( MBEDTLS_AES_ENCRYPT_ALT );
  535. return( 0 );
  536. }
  537. #endif /* MBEDTLS_AES_ENCRYPT_ALT */
  538. #if defined(MBEDTLS_AES_DECRYPT_ALT)
  539. if( strcmp( "MBEDTLS_AES_DECRYPT_ALT", config ) == 0 )
  540. {
  541. MACRO_EXPANSION_TO_STR( MBEDTLS_AES_DECRYPT_ALT );
  542. return( 0 );
  543. }
  544. #endif /* MBEDTLS_AES_DECRYPT_ALT */
  545. #if defined(MBEDTLS_ECDH_GEN_PUBLIC_ALT)
  546. if( strcmp( "MBEDTLS_ECDH_GEN_PUBLIC_ALT", config ) == 0 )
  547. {
  548. MACRO_EXPANSION_TO_STR( MBEDTLS_ECDH_GEN_PUBLIC_ALT );
  549. return( 0 );
  550. }
  551. #endif /* MBEDTLS_ECDH_GEN_PUBLIC_ALT */
  552. #if defined(MBEDTLS_ECDH_COMPUTE_SHARED_ALT)
  553. if( strcmp( "MBEDTLS_ECDH_COMPUTE_SHARED_ALT", config ) == 0 )
  554. {
  555. MACRO_EXPANSION_TO_STR( MBEDTLS_ECDH_COMPUTE_SHARED_ALT );
  556. return( 0 );
  557. }
  558. #endif /* MBEDTLS_ECDH_COMPUTE_SHARED_ALT */
  559. #if defined(MBEDTLS_ECDSA_VERIFY_ALT)
  560. if( strcmp( "MBEDTLS_ECDSA_VERIFY_ALT", config ) == 0 )
  561. {
  562. MACRO_EXPANSION_TO_STR( MBEDTLS_ECDSA_VERIFY_ALT );
  563. return( 0 );
  564. }
  565. #endif /* MBEDTLS_ECDSA_VERIFY_ALT */
  566. #if defined(MBEDTLS_ECDSA_SIGN_ALT)
  567. if( strcmp( "MBEDTLS_ECDSA_SIGN_ALT", config ) == 0 )
  568. {
  569. MACRO_EXPANSION_TO_STR( MBEDTLS_ECDSA_SIGN_ALT );
  570. return( 0 );
  571. }
  572. #endif /* MBEDTLS_ECDSA_SIGN_ALT */
  573. #if defined(MBEDTLS_ECDSA_GENKEY_ALT)
  574. if( strcmp( "MBEDTLS_ECDSA_GENKEY_ALT", config ) == 0 )
  575. {
  576. MACRO_EXPANSION_TO_STR( MBEDTLS_ECDSA_GENKEY_ALT );
  577. return( 0 );
  578. }
  579. #endif /* MBEDTLS_ECDSA_GENKEY_ALT */
  580. #if defined(MBEDTLS_ECP_INTERNAL_ALT)
  581. if( strcmp( "MBEDTLS_ECP_INTERNAL_ALT", config ) == 0 )
  582. {
  583. MACRO_EXPANSION_TO_STR( MBEDTLS_ECP_INTERNAL_ALT );
  584. return( 0 );
  585. }
  586. #endif /* MBEDTLS_ECP_INTERNAL_ALT */
  587. #if defined(MBEDTLS_ECP_NO_FALLBACK)
  588. if( strcmp( "MBEDTLS_ECP_NO_FALLBACK", config ) == 0 )
  589. {
  590. MACRO_EXPANSION_TO_STR( MBEDTLS_ECP_NO_FALLBACK );
  591. return( 0 );
  592. }
  593. #endif /* MBEDTLS_ECP_NO_FALLBACK */
  594. #if defined(MBEDTLS_ECP_RANDOMIZE_JAC_ALT)
  595. if( strcmp( "MBEDTLS_ECP_RANDOMIZE_JAC_ALT", config ) == 0 )
  596. {
  597. MACRO_EXPANSION_TO_STR( MBEDTLS_ECP_RANDOMIZE_JAC_ALT );
  598. return( 0 );
  599. }
  600. #endif /* MBEDTLS_ECP_RANDOMIZE_JAC_ALT */
  601. #if defined(MBEDTLS_ECP_ADD_MIXED_ALT)
  602. if( strcmp( "MBEDTLS_ECP_ADD_MIXED_ALT", config ) == 0 )
  603. {
  604. MACRO_EXPANSION_TO_STR( MBEDTLS_ECP_ADD_MIXED_ALT );
  605. return( 0 );
  606. }
  607. #endif /* MBEDTLS_ECP_ADD_MIXED_ALT */
  608. #if defined(MBEDTLS_ECP_DOUBLE_JAC_ALT)
  609. if( strcmp( "MBEDTLS_ECP_DOUBLE_JAC_ALT", config ) == 0 )
  610. {
  611. MACRO_EXPANSION_TO_STR( MBEDTLS_ECP_DOUBLE_JAC_ALT );
  612. return( 0 );
  613. }
  614. #endif /* MBEDTLS_ECP_DOUBLE_JAC_ALT */
  615. #if defined(MBEDTLS_ECP_NORMALIZE_JAC_MANY_ALT)
  616. if( strcmp( "MBEDTLS_ECP_NORMALIZE_JAC_MANY_ALT", config ) == 0 )
  617. {
  618. MACRO_EXPANSION_TO_STR( MBEDTLS_ECP_NORMALIZE_JAC_MANY_ALT );
  619. return( 0 );
  620. }
  621. #endif /* MBEDTLS_ECP_NORMALIZE_JAC_MANY_ALT */
  622. #if defined(MBEDTLS_ECP_NORMALIZE_JAC_ALT)
  623. if( strcmp( "MBEDTLS_ECP_NORMALIZE_JAC_ALT", config ) == 0 )
  624. {
  625. MACRO_EXPANSION_TO_STR( MBEDTLS_ECP_NORMALIZE_JAC_ALT );
  626. return( 0 );
  627. }
  628. #endif /* MBEDTLS_ECP_NORMALIZE_JAC_ALT */
  629. #if defined(MBEDTLS_ECP_DOUBLE_ADD_MXZ_ALT)
  630. if( strcmp( "MBEDTLS_ECP_DOUBLE_ADD_MXZ_ALT", config ) == 0 )
  631. {
  632. MACRO_EXPANSION_TO_STR( MBEDTLS_ECP_DOUBLE_ADD_MXZ_ALT );
  633. return( 0 );
  634. }
  635. #endif /* MBEDTLS_ECP_DOUBLE_ADD_MXZ_ALT */
  636. #if defined(MBEDTLS_ECP_RANDOMIZE_MXZ_ALT)
  637. if( strcmp( "MBEDTLS_ECP_RANDOMIZE_MXZ_ALT", config ) == 0 )
  638. {
  639. MACRO_EXPANSION_TO_STR( MBEDTLS_ECP_RANDOMIZE_MXZ_ALT );
  640. return( 0 );
  641. }
  642. #endif /* MBEDTLS_ECP_RANDOMIZE_MXZ_ALT */
  643. #if defined(MBEDTLS_ECP_NORMALIZE_MXZ_ALT)
  644. if( strcmp( "MBEDTLS_ECP_NORMALIZE_MXZ_ALT", config ) == 0 )
  645. {
  646. MACRO_EXPANSION_TO_STR( MBEDTLS_ECP_NORMALIZE_MXZ_ALT );
  647. return( 0 );
  648. }
  649. #endif /* MBEDTLS_ECP_NORMALIZE_MXZ_ALT */
  650. #if defined(MBEDTLS_TEST_NULL_ENTROPY)
  651. if( strcmp( "MBEDTLS_TEST_NULL_ENTROPY", config ) == 0 )
  652. {
  653. MACRO_EXPANSION_TO_STR( MBEDTLS_TEST_NULL_ENTROPY );
  654. return( 0 );
  655. }
  656. #endif /* MBEDTLS_TEST_NULL_ENTROPY */
  657. #if defined(MBEDTLS_ENTROPY_HARDWARE_ALT)
  658. if( strcmp( "MBEDTLS_ENTROPY_HARDWARE_ALT", config ) == 0 )
  659. {
  660. MACRO_EXPANSION_TO_STR( MBEDTLS_ENTROPY_HARDWARE_ALT );
  661. return( 0 );
  662. }
  663. #endif /* MBEDTLS_ENTROPY_HARDWARE_ALT */
  664. #if defined(MBEDTLS_AES_ROM_TABLES)
  665. if( strcmp( "MBEDTLS_AES_ROM_TABLES", config ) == 0 )
  666. {
  667. MACRO_EXPANSION_TO_STR( MBEDTLS_AES_ROM_TABLES );
  668. return( 0 );
  669. }
  670. #endif /* MBEDTLS_AES_ROM_TABLES */
  671. #if defined(MBEDTLS_AES_FEWER_TABLES)
  672. if( strcmp( "MBEDTLS_AES_FEWER_TABLES", config ) == 0 )
  673. {
  674. MACRO_EXPANSION_TO_STR( MBEDTLS_AES_FEWER_TABLES );
  675. return( 0 );
  676. }
  677. #endif /* MBEDTLS_AES_FEWER_TABLES */
  678. #if defined(MBEDTLS_CAMELLIA_SMALL_MEMORY)
  679. if( strcmp( "MBEDTLS_CAMELLIA_SMALL_MEMORY", config ) == 0 )
  680. {
  681. MACRO_EXPANSION_TO_STR( MBEDTLS_CAMELLIA_SMALL_MEMORY );
  682. return( 0 );
  683. }
  684. #endif /* MBEDTLS_CAMELLIA_SMALL_MEMORY */
  685. #if defined(MBEDTLS_CHECK_RETURN_WARNING)
  686. if( strcmp( "MBEDTLS_CHECK_RETURN_WARNING", config ) == 0 )
  687. {
  688. MACRO_EXPANSION_TO_STR( MBEDTLS_CHECK_RETURN_WARNING );
  689. return( 0 );
  690. }
  691. #endif /* MBEDTLS_CHECK_RETURN_WARNING */
  692. #if defined(MBEDTLS_CIPHER_MODE_CBC)
  693. if( strcmp( "MBEDTLS_CIPHER_MODE_CBC", config ) == 0 )
  694. {
  695. MACRO_EXPANSION_TO_STR( MBEDTLS_CIPHER_MODE_CBC );
  696. return( 0 );
  697. }
  698. #endif /* MBEDTLS_CIPHER_MODE_CBC */
  699. #if defined(MBEDTLS_CIPHER_MODE_CFB)
  700. if( strcmp( "MBEDTLS_CIPHER_MODE_CFB", config ) == 0 )
  701. {
  702. MACRO_EXPANSION_TO_STR( MBEDTLS_CIPHER_MODE_CFB );
  703. return( 0 );
  704. }
  705. #endif /* MBEDTLS_CIPHER_MODE_CFB */
  706. #if defined(MBEDTLS_CIPHER_MODE_CTR)
  707. if( strcmp( "MBEDTLS_CIPHER_MODE_CTR", config ) == 0 )
  708. {
  709. MACRO_EXPANSION_TO_STR( MBEDTLS_CIPHER_MODE_CTR );
  710. return( 0 );
  711. }
  712. #endif /* MBEDTLS_CIPHER_MODE_CTR */
  713. #if defined(MBEDTLS_CIPHER_MODE_OFB)
  714. if( strcmp( "MBEDTLS_CIPHER_MODE_OFB", config ) == 0 )
  715. {
  716. MACRO_EXPANSION_TO_STR( MBEDTLS_CIPHER_MODE_OFB );
  717. return( 0 );
  718. }
  719. #endif /* MBEDTLS_CIPHER_MODE_OFB */
  720. #if defined(MBEDTLS_CIPHER_MODE_XTS)
  721. if( strcmp( "MBEDTLS_CIPHER_MODE_XTS", config ) == 0 )
  722. {
  723. MACRO_EXPANSION_TO_STR( MBEDTLS_CIPHER_MODE_XTS );
  724. return( 0 );
  725. }
  726. #endif /* MBEDTLS_CIPHER_MODE_XTS */
  727. #if defined(MBEDTLS_CIPHER_NULL_CIPHER)
  728. if( strcmp( "MBEDTLS_CIPHER_NULL_CIPHER", config ) == 0 )
  729. {
  730. MACRO_EXPANSION_TO_STR( MBEDTLS_CIPHER_NULL_CIPHER );
  731. return( 0 );
  732. }
  733. #endif /* MBEDTLS_CIPHER_NULL_CIPHER */
  734. #if defined(MBEDTLS_CIPHER_PADDING_PKCS7)
  735. if( strcmp( "MBEDTLS_CIPHER_PADDING_PKCS7", config ) == 0 )
  736. {
  737. MACRO_EXPANSION_TO_STR( MBEDTLS_CIPHER_PADDING_PKCS7 );
  738. return( 0 );
  739. }
  740. #endif /* MBEDTLS_CIPHER_PADDING_PKCS7 */
  741. #if defined(MBEDTLS_CIPHER_PADDING_ONE_AND_ZEROS)
  742. if( strcmp( "MBEDTLS_CIPHER_PADDING_ONE_AND_ZEROS", config ) == 0 )
  743. {
  744. MACRO_EXPANSION_TO_STR( MBEDTLS_CIPHER_PADDING_ONE_AND_ZEROS );
  745. return( 0 );
  746. }
  747. #endif /* MBEDTLS_CIPHER_PADDING_ONE_AND_ZEROS */
  748. #if defined(MBEDTLS_CIPHER_PADDING_ZEROS_AND_LEN)
  749. if( strcmp( "MBEDTLS_CIPHER_PADDING_ZEROS_AND_LEN", config ) == 0 )
  750. {
  751. MACRO_EXPANSION_TO_STR( MBEDTLS_CIPHER_PADDING_ZEROS_AND_LEN );
  752. return( 0 );
  753. }
  754. #endif /* MBEDTLS_CIPHER_PADDING_ZEROS_AND_LEN */
  755. #if defined(MBEDTLS_CIPHER_PADDING_ZEROS)
  756. if( strcmp( "MBEDTLS_CIPHER_PADDING_ZEROS", config ) == 0 )
  757. {
  758. MACRO_EXPANSION_TO_STR( MBEDTLS_CIPHER_PADDING_ZEROS );
  759. return( 0 );
  760. }
  761. #endif /* MBEDTLS_CIPHER_PADDING_ZEROS */
  762. #if defined(MBEDTLS_CTR_DRBG_USE_128_BIT_KEY)
  763. if( strcmp( "MBEDTLS_CTR_DRBG_USE_128_BIT_KEY", config ) == 0 )
  764. {
  765. MACRO_EXPANSION_TO_STR( MBEDTLS_CTR_DRBG_USE_128_BIT_KEY );
  766. return( 0 );
  767. }
  768. #endif /* MBEDTLS_CTR_DRBG_USE_128_BIT_KEY */
  769. #if defined(MBEDTLS_ENABLE_WEAK_CIPHERSUITES)
  770. if( strcmp( "MBEDTLS_ENABLE_WEAK_CIPHERSUITES", config ) == 0 )
  771. {
  772. MACRO_EXPANSION_TO_STR( MBEDTLS_ENABLE_WEAK_CIPHERSUITES );
  773. return( 0 );
  774. }
  775. #endif /* MBEDTLS_ENABLE_WEAK_CIPHERSUITES */
  776. #if defined(MBEDTLS_REMOVE_ARC4_CIPHERSUITES)
  777. if( strcmp( "MBEDTLS_REMOVE_ARC4_CIPHERSUITES", config ) == 0 )
  778. {
  779. MACRO_EXPANSION_TO_STR( MBEDTLS_REMOVE_ARC4_CIPHERSUITES );
  780. return( 0 );
  781. }
  782. #endif /* MBEDTLS_REMOVE_ARC4_CIPHERSUITES */
  783. #if defined(MBEDTLS_REMOVE_3DES_CIPHERSUITES)
  784. if( strcmp( "MBEDTLS_REMOVE_3DES_CIPHERSUITES", config ) == 0 )
  785. {
  786. MACRO_EXPANSION_TO_STR( MBEDTLS_REMOVE_3DES_CIPHERSUITES );
  787. return( 0 );
  788. }
  789. #endif /* MBEDTLS_REMOVE_3DES_CIPHERSUITES */
  790. #if defined(MBEDTLS_ECP_DP_SECP192R1_ENABLED)
  791. if( strcmp( "MBEDTLS_ECP_DP_SECP192R1_ENABLED", config ) == 0 )
  792. {
  793. MACRO_EXPANSION_TO_STR( MBEDTLS_ECP_DP_SECP192R1_ENABLED );
  794. return( 0 );
  795. }
  796. #endif /* MBEDTLS_ECP_DP_SECP192R1_ENABLED */
  797. #if defined(MBEDTLS_ECP_DP_SECP224R1_ENABLED)
  798. if( strcmp( "MBEDTLS_ECP_DP_SECP224R1_ENABLED", config ) == 0 )
  799. {
  800. MACRO_EXPANSION_TO_STR( MBEDTLS_ECP_DP_SECP224R1_ENABLED );
  801. return( 0 );
  802. }
  803. #endif /* MBEDTLS_ECP_DP_SECP224R1_ENABLED */
  804. #if defined(MBEDTLS_ECP_DP_SECP256R1_ENABLED)
  805. if( strcmp( "MBEDTLS_ECP_DP_SECP256R1_ENABLED", config ) == 0 )
  806. {
  807. MACRO_EXPANSION_TO_STR( MBEDTLS_ECP_DP_SECP256R1_ENABLED );
  808. return( 0 );
  809. }
  810. #endif /* MBEDTLS_ECP_DP_SECP256R1_ENABLED */
  811. #if defined(MBEDTLS_ECP_DP_SECP384R1_ENABLED)
  812. if( strcmp( "MBEDTLS_ECP_DP_SECP384R1_ENABLED", config ) == 0 )
  813. {
  814. MACRO_EXPANSION_TO_STR( MBEDTLS_ECP_DP_SECP384R1_ENABLED );
  815. return( 0 );
  816. }
  817. #endif /* MBEDTLS_ECP_DP_SECP384R1_ENABLED */
  818. #if defined(MBEDTLS_ECP_DP_SECP521R1_ENABLED)
  819. if( strcmp( "MBEDTLS_ECP_DP_SECP521R1_ENABLED", config ) == 0 )
  820. {
  821. MACRO_EXPANSION_TO_STR( MBEDTLS_ECP_DP_SECP521R1_ENABLED );
  822. return( 0 );
  823. }
  824. #endif /* MBEDTLS_ECP_DP_SECP521R1_ENABLED */
  825. #if defined(MBEDTLS_ECP_DP_SECP192K1_ENABLED)
  826. if( strcmp( "MBEDTLS_ECP_DP_SECP192K1_ENABLED", config ) == 0 )
  827. {
  828. MACRO_EXPANSION_TO_STR( MBEDTLS_ECP_DP_SECP192K1_ENABLED );
  829. return( 0 );
  830. }
  831. #endif /* MBEDTLS_ECP_DP_SECP192K1_ENABLED */
  832. #if defined(MBEDTLS_ECP_DP_SECP224K1_ENABLED)
  833. if( strcmp( "MBEDTLS_ECP_DP_SECP224K1_ENABLED", config ) == 0 )
  834. {
  835. MACRO_EXPANSION_TO_STR( MBEDTLS_ECP_DP_SECP224K1_ENABLED );
  836. return( 0 );
  837. }
  838. #endif /* MBEDTLS_ECP_DP_SECP224K1_ENABLED */
  839. #if defined(MBEDTLS_ECP_DP_SECP256K1_ENABLED)
  840. if( strcmp( "MBEDTLS_ECP_DP_SECP256K1_ENABLED", config ) == 0 )
  841. {
  842. MACRO_EXPANSION_TO_STR( MBEDTLS_ECP_DP_SECP256K1_ENABLED );
  843. return( 0 );
  844. }
  845. #endif /* MBEDTLS_ECP_DP_SECP256K1_ENABLED */
  846. #if defined(MBEDTLS_ECP_DP_BP256R1_ENABLED)
  847. if( strcmp( "MBEDTLS_ECP_DP_BP256R1_ENABLED", config ) == 0 )
  848. {
  849. MACRO_EXPANSION_TO_STR( MBEDTLS_ECP_DP_BP256R1_ENABLED );
  850. return( 0 );
  851. }
  852. #endif /* MBEDTLS_ECP_DP_BP256R1_ENABLED */
  853. #if defined(MBEDTLS_ECP_DP_BP384R1_ENABLED)
  854. if( strcmp( "MBEDTLS_ECP_DP_BP384R1_ENABLED", config ) == 0 )
  855. {
  856. MACRO_EXPANSION_TO_STR( MBEDTLS_ECP_DP_BP384R1_ENABLED );
  857. return( 0 );
  858. }
  859. #endif /* MBEDTLS_ECP_DP_BP384R1_ENABLED */
  860. #if defined(MBEDTLS_ECP_DP_BP512R1_ENABLED)
  861. if( strcmp( "MBEDTLS_ECP_DP_BP512R1_ENABLED", config ) == 0 )
  862. {
  863. MACRO_EXPANSION_TO_STR( MBEDTLS_ECP_DP_BP512R1_ENABLED );
  864. return( 0 );
  865. }
  866. #endif /* MBEDTLS_ECP_DP_BP512R1_ENABLED */
  867. #if defined(MBEDTLS_ECP_DP_CURVE25519_ENABLED)
  868. if( strcmp( "MBEDTLS_ECP_DP_CURVE25519_ENABLED", config ) == 0 )
  869. {
  870. MACRO_EXPANSION_TO_STR( MBEDTLS_ECP_DP_CURVE25519_ENABLED );
  871. return( 0 );
  872. }
  873. #endif /* MBEDTLS_ECP_DP_CURVE25519_ENABLED */
  874. #if defined(MBEDTLS_ECP_DP_CURVE448_ENABLED)
  875. if( strcmp( "MBEDTLS_ECP_DP_CURVE448_ENABLED", config ) == 0 )
  876. {
  877. MACRO_EXPANSION_TO_STR( MBEDTLS_ECP_DP_CURVE448_ENABLED );
  878. return( 0 );
  879. }
  880. #endif /* MBEDTLS_ECP_DP_CURVE448_ENABLED */
  881. #if defined(MBEDTLS_ECP_NIST_OPTIM)
  882. if( strcmp( "MBEDTLS_ECP_NIST_OPTIM", config ) == 0 )
  883. {
  884. MACRO_EXPANSION_TO_STR( MBEDTLS_ECP_NIST_OPTIM );
  885. return( 0 );
  886. }
  887. #endif /* MBEDTLS_ECP_NIST_OPTIM */
  888. #if defined(MBEDTLS_ECP_NO_INTERNAL_RNG)
  889. if( strcmp( "MBEDTLS_ECP_NO_INTERNAL_RNG", config ) == 0 )
  890. {
  891. MACRO_EXPANSION_TO_STR( MBEDTLS_ECP_NO_INTERNAL_RNG );
  892. return( 0 );
  893. }
  894. #endif /* MBEDTLS_ECP_NO_INTERNAL_RNG */
  895. #if defined(MBEDTLS_ECP_RESTARTABLE)
  896. if( strcmp( "MBEDTLS_ECP_RESTARTABLE", config ) == 0 )
  897. {
  898. MACRO_EXPANSION_TO_STR( MBEDTLS_ECP_RESTARTABLE );
  899. return( 0 );
  900. }
  901. #endif /* MBEDTLS_ECP_RESTARTABLE */
  902. #if defined(MBEDTLS_ECDH_LEGACY_CONTEXT)
  903. if( strcmp( "MBEDTLS_ECDH_LEGACY_CONTEXT", config ) == 0 )
  904. {
  905. MACRO_EXPANSION_TO_STR( MBEDTLS_ECDH_LEGACY_CONTEXT );
  906. return( 0 );
  907. }
  908. #endif /* MBEDTLS_ECDH_LEGACY_CONTEXT */
  909. #if defined(MBEDTLS_ECDSA_DETERMINISTIC)
  910. if( strcmp( "MBEDTLS_ECDSA_DETERMINISTIC", config ) == 0 )
  911. {
  912. MACRO_EXPANSION_TO_STR( MBEDTLS_ECDSA_DETERMINISTIC );
  913. return( 0 );
  914. }
  915. #endif /* MBEDTLS_ECDSA_DETERMINISTIC */
  916. #if defined(MBEDTLS_KEY_EXCHANGE_PSK_ENABLED)
  917. if( strcmp( "MBEDTLS_KEY_EXCHANGE_PSK_ENABLED", config ) == 0 )
  918. {
  919. MACRO_EXPANSION_TO_STR( MBEDTLS_KEY_EXCHANGE_PSK_ENABLED );
  920. return( 0 );
  921. }
  922. #endif /* MBEDTLS_KEY_EXCHANGE_PSK_ENABLED */
  923. #if defined(MBEDTLS_KEY_EXCHANGE_DHE_PSK_ENABLED)
  924. if( strcmp( "MBEDTLS_KEY_EXCHANGE_DHE_PSK_ENABLED", config ) == 0 )
  925. {
  926. MACRO_EXPANSION_TO_STR( MBEDTLS_KEY_EXCHANGE_DHE_PSK_ENABLED );
  927. return( 0 );
  928. }
  929. #endif /* MBEDTLS_KEY_EXCHANGE_DHE_PSK_ENABLED */
  930. #if defined(MBEDTLS_KEY_EXCHANGE_ECDHE_PSK_ENABLED)
  931. if( strcmp( "MBEDTLS_KEY_EXCHANGE_ECDHE_PSK_ENABLED", config ) == 0 )
  932. {
  933. MACRO_EXPANSION_TO_STR( MBEDTLS_KEY_EXCHANGE_ECDHE_PSK_ENABLED );
  934. return( 0 );
  935. }
  936. #endif /* MBEDTLS_KEY_EXCHANGE_ECDHE_PSK_ENABLED */
  937. #if defined(MBEDTLS_KEY_EXCHANGE_RSA_PSK_ENABLED)
  938. if( strcmp( "MBEDTLS_KEY_EXCHANGE_RSA_PSK_ENABLED", config ) == 0 )
  939. {
  940. MACRO_EXPANSION_TO_STR( MBEDTLS_KEY_EXCHANGE_RSA_PSK_ENABLED );
  941. return( 0 );
  942. }
  943. #endif /* MBEDTLS_KEY_EXCHANGE_RSA_PSK_ENABLED */
  944. #if defined(MBEDTLS_KEY_EXCHANGE_RSA_ENABLED)
  945. if( strcmp( "MBEDTLS_KEY_EXCHANGE_RSA_ENABLED", config ) == 0 )
  946. {
  947. MACRO_EXPANSION_TO_STR( MBEDTLS_KEY_EXCHANGE_RSA_ENABLED );
  948. return( 0 );
  949. }
  950. #endif /* MBEDTLS_KEY_EXCHANGE_RSA_ENABLED */
  951. #if defined(MBEDTLS_KEY_EXCHANGE_DHE_RSA_ENABLED)
  952. if( strcmp( "MBEDTLS_KEY_EXCHANGE_DHE_RSA_ENABLED", config ) == 0 )
  953. {
  954. MACRO_EXPANSION_TO_STR( MBEDTLS_KEY_EXCHANGE_DHE_RSA_ENABLED );
  955. return( 0 );
  956. }
  957. #endif /* MBEDTLS_KEY_EXCHANGE_DHE_RSA_ENABLED */
  958. #if defined(MBEDTLS_KEY_EXCHANGE_ECDHE_RSA_ENABLED)
  959. if( strcmp( "MBEDTLS_KEY_EXCHANGE_ECDHE_RSA_ENABLED", config ) == 0 )
  960. {
  961. MACRO_EXPANSION_TO_STR( MBEDTLS_KEY_EXCHANGE_ECDHE_RSA_ENABLED );
  962. return( 0 );
  963. }
  964. #endif /* MBEDTLS_KEY_EXCHANGE_ECDHE_RSA_ENABLED */
  965. #if defined(MBEDTLS_KEY_EXCHANGE_ECDHE_ECDSA_ENABLED)
  966. if( strcmp( "MBEDTLS_KEY_EXCHANGE_ECDHE_ECDSA_ENABLED", config ) == 0 )
  967. {
  968. MACRO_EXPANSION_TO_STR( MBEDTLS_KEY_EXCHANGE_ECDHE_ECDSA_ENABLED );
  969. return( 0 );
  970. }
  971. #endif /* MBEDTLS_KEY_EXCHANGE_ECDHE_ECDSA_ENABLED */
  972. #if defined(MBEDTLS_KEY_EXCHANGE_ECDH_ECDSA_ENABLED)
  973. if( strcmp( "MBEDTLS_KEY_EXCHANGE_ECDH_ECDSA_ENABLED", config ) == 0 )
  974. {
  975. MACRO_EXPANSION_TO_STR( MBEDTLS_KEY_EXCHANGE_ECDH_ECDSA_ENABLED );
  976. return( 0 );
  977. }
  978. #endif /* MBEDTLS_KEY_EXCHANGE_ECDH_ECDSA_ENABLED */
  979. #if defined(MBEDTLS_KEY_EXCHANGE_ECDH_RSA_ENABLED)
  980. if( strcmp( "MBEDTLS_KEY_EXCHANGE_ECDH_RSA_ENABLED", config ) == 0 )
  981. {
  982. MACRO_EXPANSION_TO_STR( MBEDTLS_KEY_EXCHANGE_ECDH_RSA_ENABLED );
  983. return( 0 );
  984. }
  985. #endif /* MBEDTLS_KEY_EXCHANGE_ECDH_RSA_ENABLED */
  986. #if defined(MBEDTLS_KEY_EXCHANGE_ECJPAKE_ENABLED)
  987. if( strcmp( "MBEDTLS_KEY_EXCHANGE_ECJPAKE_ENABLED", config ) == 0 )
  988. {
  989. MACRO_EXPANSION_TO_STR( MBEDTLS_KEY_EXCHANGE_ECJPAKE_ENABLED );
  990. return( 0 );
  991. }
  992. #endif /* MBEDTLS_KEY_EXCHANGE_ECJPAKE_ENABLED */
  993. #if defined(MBEDTLS_PK_PARSE_EC_EXTENDED)
  994. if( strcmp( "MBEDTLS_PK_PARSE_EC_EXTENDED", config ) == 0 )
  995. {
  996. MACRO_EXPANSION_TO_STR( MBEDTLS_PK_PARSE_EC_EXTENDED );
  997. return( 0 );
  998. }
  999. #endif /* MBEDTLS_PK_PARSE_EC_EXTENDED */
  1000. #if defined(MBEDTLS_ERROR_STRERROR_DUMMY)
  1001. if( strcmp( "MBEDTLS_ERROR_STRERROR_DUMMY", config ) == 0 )
  1002. {
  1003. MACRO_EXPANSION_TO_STR( MBEDTLS_ERROR_STRERROR_DUMMY );
  1004. return( 0 );
  1005. }
  1006. #endif /* MBEDTLS_ERROR_STRERROR_DUMMY */
  1007. #if defined(MBEDTLS_GENPRIME)
  1008. if( strcmp( "MBEDTLS_GENPRIME", config ) == 0 )
  1009. {
  1010. MACRO_EXPANSION_TO_STR( MBEDTLS_GENPRIME );
  1011. return( 0 );
  1012. }
  1013. #endif /* MBEDTLS_GENPRIME */
  1014. #if defined(MBEDTLS_FS_IO)
  1015. if( strcmp( "MBEDTLS_FS_IO", config ) == 0 )
  1016. {
  1017. MACRO_EXPANSION_TO_STR( MBEDTLS_FS_IO );
  1018. return( 0 );
  1019. }
  1020. #endif /* MBEDTLS_FS_IO */
  1021. #if defined(MBEDTLS_NO_DEFAULT_ENTROPY_SOURCES)
  1022. if( strcmp( "MBEDTLS_NO_DEFAULT_ENTROPY_SOURCES", config ) == 0 )
  1023. {
  1024. MACRO_EXPANSION_TO_STR( MBEDTLS_NO_DEFAULT_ENTROPY_SOURCES );
  1025. return( 0 );
  1026. }
  1027. #endif /* MBEDTLS_NO_DEFAULT_ENTROPY_SOURCES */
  1028. #if defined(MBEDTLS_NO_PLATFORM_ENTROPY)
  1029. if( strcmp( "MBEDTLS_NO_PLATFORM_ENTROPY", config ) == 0 )
  1030. {
  1031. MACRO_EXPANSION_TO_STR( MBEDTLS_NO_PLATFORM_ENTROPY );
  1032. return( 0 );
  1033. }
  1034. #endif /* MBEDTLS_NO_PLATFORM_ENTROPY */
  1035. #if defined(MBEDTLS_ENTROPY_FORCE_SHA256)
  1036. if( strcmp( "MBEDTLS_ENTROPY_FORCE_SHA256", config ) == 0 )
  1037. {
  1038. MACRO_EXPANSION_TO_STR( MBEDTLS_ENTROPY_FORCE_SHA256 );
  1039. return( 0 );
  1040. }
  1041. #endif /* MBEDTLS_ENTROPY_FORCE_SHA256 */
  1042. #if defined(MBEDTLS_ENTROPY_NV_SEED)
  1043. if( strcmp( "MBEDTLS_ENTROPY_NV_SEED", config ) == 0 )
  1044. {
  1045. MACRO_EXPANSION_TO_STR( MBEDTLS_ENTROPY_NV_SEED );
  1046. return( 0 );
  1047. }
  1048. #endif /* MBEDTLS_ENTROPY_NV_SEED */
  1049. #if defined(MBEDTLS_PSA_CRYPTO_KEY_ID_ENCODES_OWNER)
  1050. if( strcmp( "MBEDTLS_PSA_CRYPTO_KEY_ID_ENCODES_OWNER", config ) == 0 )
  1051. {
  1052. MACRO_EXPANSION_TO_STR( MBEDTLS_PSA_CRYPTO_KEY_ID_ENCODES_OWNER );
  1053. return( 0 );
  1054. }
  1055. #endif /* MBEDTLS_PSA_CRYPTO_KEY_ID_ENCODES_OWNER */
  1056. #if defined(MBEDTLS_MEMORY_DEBUG)
  1057. if( strcmp( "MBEDTLS_MEMORY_DEBUG", config ) == 0 )
  1058. {
  1059. MACRO_EXPANSION_TO_STR( MBEDTLS_MEMORY_DEBUG );
  1060. return( 0 );
  1061. }
  1062. #endif /* MBEDTLS_MEMORY_DEBUG */
  1063. #if defined(MBEDTLS_MEMORY_BACKTRACE)
  1064. if( strcmp( "MBEDTLS_MEMORY_BACKTRACE", config ) == 0 )
  1065. {
  1066. MACRO_EXPANSION_TO_STR( MBEDTLS_MEMORY_BACKTRACE );
  1067. return( 0 );
  1068. }
  1069. #endif /* MBEDTLS_MEMORY_BACKTRACE */
  1070. #if defined(MBEDTLS_PK_RSA_ALT_SUPPORT)
  1071. if( strcmp( "MBEDTLS_PK_RSA_ALT_SUPPORT", config ) == 0 )
  1072. {
  1073. MACRO_EXPANSION_TO_STR( MBEDTLS_PK_RSA_ALT_SUPPORT );
  1074. return( 0 );
  1075. }
  1076. #endif /* MBEDTLS_PK_RSA_ALT_SUPPORT */
  1077. #if defined(MBEDTLS_PKCS1_V15)
  1078. if( strcmp( "MBEDTLS_PKCS1_V15", config ) == 0 )
  1079. {
  1080. MACRO_EXPANSION_TO_STR( MBEDTLS_PKCS1_V15 );
  1081. return( 0 );
  1082. }
  1083. #endif /* MBEDTLS_PKCS1_V15 */
  1084. #if defined(MBEDTLS_PKCS1_V21)
  1085. if( strcmp( "MBEDTLS_PKCS1_V21", config ) == 0 )
  1086. {
  1087. MACRO_EXPANSION_TO_STR( MBEDTLS_PKCS1_V21 );
  1088. return( 0 );
  1089. }
  1090. #endif /* MBEDTLS_PKCS1_V21 */
  1091. #if defined(MBEDTLS_PSA_CRYPTO_BUILTIN_KEYS)
  1092. if( strcmp( "MBEDTLS_PSA_CRYPTO_BUILTIN_KEYS", config ) == 0 )
  1093. {
  1094. MACRO_EXPANSION_TO_STR( MBEDTLS_PSA_CRYPTO_BUILTIN_KEYS );
  1095. return( 0 );
  1096. }
  1097. #endif /* MBEDTLS_PSA_CRYPTO_BUILTIN_KEYS */
  1098. #if defined(MBEDTLS_PSA_CRYPTO_CLIENT)
  1099. if( strcmp( "MBEDTLS_PSA_CRYPTO_CLIENT", config ) == 0 )
  1100. {
  1101. MACRO_EXPANSION_TO_STR( MBEDTLS_PSA_CRYPTO_CLIENT );
  1102. return( 0 );
  1103. }
  1104. #endif /* MBEDTLS_PSA_CRYPTO_CLIENT */
  1105. #if defined(MBEDTLS_PSA_CRYPTO_DRIVERS)
  1106. if( strcmp( "MBEDTLS_PSA_CRYPTO_DRIVERS", config ) == 0 )
  1107. {
  1108. MACRO_EXPANSION_TO_STR( MBEDTLS_PSA_CRYPTO_DRIVERS );
  1109. return( 0 );
  1110. }
  1111. #endif /* MBEDTLS_PSA_CRYPTO_DRIVERS */
  1112. #if defined(MBEDTLS_PSA_CRYPTO_EXTERNAL_RNG)
  1113. if( strcmp( "MBEDTLS_PSA_CRYPTO_EXTERNAL_RNG", config ) == 0 )
  1114. {
  1115. MACRO_EXPANSION_TO_STR( MBEDTLS_PSA_CRYPTO_EXTERNAL_RNG );
  1116. return( 0 );
  1117. }
  1118. #endif /* MBEDTLS_PSA_CRYPTO_EXTERNAL_RNG */
  1119. #if defined(MBEDTLS_PSA_CRYPTO_SPM)
  1120. if( strcmp( "MBEDTLS_PSA_CRYPTO_SPM", config ) == 0 )
  1121. {
  1122. MACRO_EXPANSION_TO_STR( MBEDTLS_PSA_CRYPTO_SPM );
  1123. return( 0 );
  1124. }
  1125. #endif /* MBEDTLS_PSA_CRYPTO_SPM */
  1126. #if defined(MBEDTLS_PSA_INJECT_ENTROPY)
  1127. if( strcmp( "MBEDTLS_PSA_INJECT_ENTROPY", config ) == 0 )
  1128. {
  1129. MACRO_EXPANSION_TO_STR( MBEDTLS_PSA_INJECT_ENTROPY );
  1130. return( 0 );
  1131. }
  1132. #endif /* MBEDTLS_PSA_INJECT_ENTROPY */
  1133. #if defined(MBEDTLS_RSA_NO_CRT)
  1134. if( strcmp( "MBEDTLS_RSA_NO_CRT", config ) == 0 )
  1135. {
  1136. MACRO_EXPANSION_TO_STR( MBEDTLS_RSA_NO_CRT );
  1137. return( 0 );
  1138. }
  1139. #endif /* MBEDTLS_RSA_NO_CRT */
  1140. #if defined(MBEDTLS_SELF_TEST)
  1141. if( strcmp( "MBEDTLS_SELF_TEST", config ) == 0 )
  1142. {
  1143. MACRO_EXPANSION_TO_STR( MBEDTLS_SELF_TEST );
  1144. return( 0 );
  1145. }
  1146. #endif /* MBEDTLS_SELF_TEST */
  1147. #if defined(MBEDTLS_SHA256_SMALLER)
  1148. if( strcmp( "MBEDTLS_SHA256_SMALLER", config ) == 0 )
  1149. {
  1150. MACRO_EXPANSION_TO_STR( MBEDTLS_SHA256_SMALLER );
  1151. return( 0 );
  1152. }
  1153. #endif /* MBEDTLS_SHA256_SMALLER */
  1154. #if defined(MBEDTLS_SHA512_SMALLER)
  1155. if( strcmp( "MBEDTLS_SHA512_SMALLER", config ) == 0 )
  1156. {
  1157. MACRO_EXPANSION_TO_STR( MBEDTLS_SHA512_SMALLER );
  1158. return( 0 );
  1159. }
  1160. #endif /* MBEDTLS_SHA512_SMALLER */
  1161. #if defined(MBEDTLS_SHA512_NO_SHA384)
  1162. if( strcmp( "MBEDTLS_SHA512_NO_SHA384", config ) == 0 )
  1163. {
  1164. MACRO_EXPANSION_TO_STR( MBEDTLS_SHA512_NO_SHA384 );
  1165. return( 0 );
  1166. }
  1167. #endif /* MBEDTLS_SHA512_NO_SHA384 */
  1168. #if defined(MBEDTLS_SSL_ALL_ALERT_MESSAGES)
  1169. if( strcmp( "MBEDTLS_SSL_ALL_ALERT_MESSAGES", config ) == 0 )
  1170. {
  1171. MACRO_EXPANSION_TO_STR( MBEDTLS_SSL_ALL_ALERT_MESSAGES );
  1172. return( 0 );
  1173. }
  1174. #endif /* MBEDTLS_SSL_ALL_ALERT_MESSAGES */
  1175. #if defined(MBEDTLS_SSL_RECORD_CHECKING)
  1176. if( strcmp( "MBEDTLS_SSL_RECORD_CHECKING", config ) == 0 )
  1177. {
  1178. MACRO_EXPANSION_TO_STR( MBEDTLS_SSL_RECORD_CHECKING );
  1179. return( 0 );
  1180. }
  1181. #endif /* MBEDTLS_SSL_RECORD_CHECKING */
  1182. #if defined(MBEDTLS_SSL_DTLS_CONNECTION_ID)
  1183. if( strcmp( "MBEDTLS_SSL_DTLS_CONNECTION_ID", config ) == 0 )
  1184. {
  1185. MACRO_EXPANSION_TO_STR( MBEDTLS_SSL_DTLS_CONNECTION_ID );
  1186. return( 0 );
  1187. }
  1188. #endif /* MBEDTLS_SSL_DTLS_CONNECTION_ID */
  1189. #if defined(MBEDTLS_SSL_ASYNC_PRIVATE)
  1190. if( strcmp( "MBEDTLS_SSL_ASYNC_PRIVATE", config ) == 0 )
  1191. {
  1192. MACRO_EXPANSION_TO_STR( MBEDTLS_SSL_ASYNC_PRIVATE );
  1193. return( 0 );
  1194. }
  1195. #endif /* MBEDTLS_SSL_ASYNC_PRIVATE */
  1196. #if defined(MBEDTLS_SSL_CONTEXT_SERIALIZATION)
  1197. if( strcmp( "MBEDTLS_SSL_CONTEXT_SERIALIZATION", config ) == 0 )
  1198. {
  1199. MACRO_EXPANSION_TO_STR( MBEDTLS_SSL_CONTEXT_SERIALIZATION );
  1200. return( 0 );
  1201. }
  1202. #endif /* MBEDTLS_SSL_CONTEXT_SERIALIZATION */
  1203. #if defined(MBEDTLS_SSL_DEBUG_ALL)
  1204. if( strcmp( "MBEDTLS_SSL_DEBUG_ALL", config ) == 0 )
  1205. {
  1206. MACRO_EXPANSION_TO_STR( MBEDTLS_SSL_DEBUG_ALL );
  1207. return( 0 );
  1208. }
  1209. #endif /* MBEDTLS_SSL_DEBUG_ALL */
  1210. #if defined(MBEDTLS_SSL_ENCRYPT_THEN_MAC)
  1211. if( strcmp( "MBEDTLS_SSL_ENCRYPT_THEN_MAC", config ) == 0 )
  1212. {
  1213. MACRO_EXPANSION_TO_STR( MBEDTLS_SSL_ENCRYPT_THEN_MAC );
  1214. return( 0 );
  1215. }
  1216. #endif /* MBEDTLS_SSL_ENCRYPT_THEN_MAC */
  1217. #if defined(MBEDTLS_SSL_EXTENDED_MASTER_SECRET)
  1218. if( strcmp( "MBEDTLS_SSL_EXTENDED_MASTER_SECRET", config ) == 0 )
  1219. {
  1220. MACRO_EXPANSION_TO_STR( MBEDTLS_SSL_EXTENDED_MASTER_SECRET );
  1221. return( 0 );
  1222. }
  1223. #endif /* MBEDTLS_SSL_EXTENDED_MASTER_SECRET */
  1224. #if defined(MBEDTLS_SSL_FALLBACK_SCSV)
  1225. if( strcmp( "MBEDTLS_SSL_FALLBACK_SCSV", config ) == 0 )
  1226. {
  1227. MACRO_EXPANSION_TO_STR( MBEDTLS_SSL_FALLBACK_SCSV );
  1228. return( 0 );
  1229. }
  1230. #endif /* MBEDTLS_SSL_FALLBACK_SCSV */
  1231. #if defined(MBEDTLS_SSL_KEEP_PEER_CERTIFICATE)
  1232. if( strcmp( "MBEDTLS_SSL_KEEP_PEER_CERTIFICATE", config ) == 0 )
  1233. {
  1234. MACRO_EXPANSION_TO_STR( MBEDTLS_SSL_KEEP_PEER_CERTIFICATE );
  1235. return( 0 );
  1236. }
  1237. #endif /* MBEDTLS_SSL_KEEP_PEER_CERTIFICATE */
  1238. #if defined(MBEDTLS_SSL_HW_RECORD_ACCEL)
  1239. if( strcmp( "MBEDTLS_SSL_HW_RECORD_ACCEL", config ) == 0 )
  1240. {
  1241. MACRO_EXPANSION_TO_STR( MBEDTLS_SSL_HW_RECORD_ACCEL );
  1242. return( 0 );
  1243. }
  1244. #endif /* MBEDTLS_SSL_HW_RECORD_ACCEL */
  1245. #if defined(MBEDTLS_SSL_CBC_RECORD_SPLITTING)
  1246. if( strcmp( "MBEDTLS_SSL_CBC_RECORD_SPLITTING", config ) == 0 )
  1247. {
  1248. MACRO_EXPANSION_TO_STR( MBEDTLS_SSL_CBC_RECORD_SPLITTING );
  1249. return( 0 );
  1250. }
  1251. #endif /* MBEDTLS_SSL_CBC_RECORD_SPLITTING */
  1252. #if defined(MBEDTLS_SSL_RENEGOTIATION)
  1253. if( strcmp( "MBEDTLS_SSL_RENEGOTIATION", config ) == 0 )
  1254. {
  1255. MACRO_EXPANSION_TO_STR( MBEDTLS_SSL_RENEGOTIATION );
  1256. return( 0 );
  1257. }
  1258. #endif /* MBEDTLS_SSL_RENEGOTIATION */
  1259. #if defined(MBEDTLS_SSL_SRV_SUPPORT_SSLV2_CLIENT_HELLO)
  1260. if( strcmp( "MBEDTLS_SSL_SRV_SUPPORT_SSLV2_CLIENT_HELLO", config ) == 0 )
  1261. {
  1262. MACRO_EXPANSION_TO_STR( MBEDTLS_SSL_SRV_SUPPORT_SSLV2_CLIENT_HELLO );
  1263. return( 0 );
  1264. }
  1265. #endif /* MBEDTLS_SSL_SRV_SUPPORT_SSLV2_CLIENT_HELLO */
  1266. #if defined(MBEDTLS_SSL_SRV_RESPECT_CLIENT_PREFERENCE)
  1267. if( strcmp( "MBEDTLS_SSL_SRV_RESPECT_CLIENT_PREFERENCE", config ) == 0 )
  1268. {
  1269. MACRO_EXPANSION_TO_STR( MBEDTLS_SSL_SRV_RESPECT_CLIENT_PREFERENCE );
  1270. return( 0 );
  1271. }
  1272. #endif /* MBEDTLS_SSL_SRV_RESPECT_CLIENT_PREFERENCE */
  1273. #if defined(MBEDTLS_SSL_MAX_FRAGMENT_LENGTH)
  1274. if( strcmp( "MBEDTLS_SSL_MAX_FRAGMENT_LENGTH", config ) == 0 )
  1275. {
  1276. MACRO_EXPANSION_TO_STR( MBEDTLS_SSL_MAX_FRAGMENT_LENGTH );
  1277. return( 0 );
  1278. }
  1279. #endif /* MBEDTLS_SSL_MAX_FRAGMENT_LENGTH */
  1280. #if defined(MBEDTLS_SSL_PROTO_SSL3)
  1281. if( strcmp( "MBEDTLS_SSL_PROTO_SSL3", config ) == 0 )
  1282. {
  1283. MACRO_EXPANSION_TO_STR( MBEDTLS_SSL_PROTO_SSL3 );
  1284. return( 0 );
  1285. }
  1286. #endif /* MBEDTLS_SSL_PROTO_SSL3 */
  1287. #if defined(MBEDTLS_SSL_PROTO_TLS1)
  1288. if( strcmp( "MBEDTLS_SSL_PROTO_TLS1", config ) == 0 )
  1289. {
  1290. MACRO_EXPANSION_TO_STR( MBEDTLS_SSL_PROTO_TLS1 );
  1291. return( 0 );
  1292. }
  1293. #endif /* MBEDTLS_SSL_PROTO_TLS1 */
  1294. #if defined(MBEDTLS_SSL_PROTO_TLS1_1)
  1295. if( strcmp( "MBEDTLS_SSL_PROTO_TLS1_1", config ) == 0 )
  1296. {
  1297. MACRO_EXPANSION_TO_STR( MBEDTLS_SSL_PROTO_TLS1_1 );
  1298. return( 0 );
  1299. }
  1300. #endif /* MBEDTLS_SSL_PROTO_TLS1_1 */
  1301. #if defined(MBEDTLS_SSL_PROTO_TLS1_2)
  1302. if( strcmp( "MBEDTLS_SSL_PROTO_TLS1_2", config ) == 0 )
  1303. {
  1304. MACRO_EXPANSION_TO_STR( MBEDTLS_SSL_PROTO_TLS1_2 );
  1305. return( 0 );
  1306. }
  1307. #endif /* MBEDTLS_SSL_PROTO_TLS1_2 */
  1308. #if defined(MBEDTLS_SSL_PROTO_TLS1_3_EXPERIMENTAL)
  1309. if( strcmp( "MBEDTLS_SSL_PROTO_TLS1_3_EXPERIMENTAL", config ) == 0 )
  1310. {
  1311. MACRO_EXPANSION_TO_STR( MBEDTLS_SSL_PROTO_TLS1_3_EXPERIMENTAL );
  1312. return( 0 );
  1313. }
  1314. #endif /* MBEDTLS_SSL_PROTO_TLS1_3_EXPERIMENTAL */
  1315. #if defined(MBEDTLS_SSL_PROTO_DTLS)
  1316. if( strcmp( "MBEDTLS_SSL_PROTO_DTLS", config ) == 0 )
  1317. {
  1318. MACRO_EXPANSION_TO_STR( MBEDTLS_SSL_PROTO_DTLS );
  1319. return( 0 );
  1320. }
  1321. #endif /* MBEDTLS_SSL_PROTO_DTLS */
  1322. #if defined(MBEDTLS_SSL_ALPN)
  1323. if( strcmp( "MBEDTLS_SSL_ALPN", config ) == 0 )
  1324. {
  1325. MACRO_EXPANSION_TO_STR( MBEDTLS_SSL_ALPN );
  1326. return( 0 );
  1327. }
  1328. #endif /* MBEDTLS_SSL_ALPN */
  1329. #if defined(MBEDTLS_SSL_DTLS_ANTI_REPLAY)
  1330. if( strcmp( "MBEDTLS_SSL_DTLS_ANTI_REPLAY", config ) == 0 )
  1331. {
  1332. MACRO_EXPANSION_TO_STR( MBEDTLS_SSL_DTLS_ANTI_REPLAY );
  1333. return( 0 );
  1334. }
  1335. #endif /* MBEDTLS_SSL_DTLS_ANTI_REPLAY */
  1336. #if defined(MBEDTLS_SSL_DTLS_HELLO_VERIFY)
  1337. if( strcmp( "MBEDTLS_SSL_DTLS_HELLO_VERIFY", config ) == 0 )
  1338. {
  1339. MACRO_EXPANSION_TO_STR( MBEDTLS_SSL_DTLS_HELLO_VERIFY );
  1340. return( 0 );
  1341. }
  1342. #endif /* MBEDTLS_SSL_DTLS_HELLO_VERIFY */
  1343. #if defined(MBEDTLS_SSL_DTLS_SRTP)
  1344. if( strcmp( "MBEDTLS_SSL_DTLS_SRTP", config ) == 0 )
  1345. {
  1346. MACRO_EXPANSION_TO_STR( MBEDTLS_SSL_DTLS_SRTP );
  1347. return( 0 );
  1348. }
  1349. #endif /* MBEDTLS_SSL_DTLS_SRTP */
  1350. #if defined(MBEDTLS_SSL_DTLS_CLIENT_PORT_REUSE)
  1351. if( strcmp( "MBEDTLS_SSL_DTLS_CLIENT_PORT_REUSE", config ) == 0 )
  1352. {
  1353. MACRO_EXPANSION_TO_STR( MBEDTLS_SSL_DTLS_CLIENT_PORT_REUSE );
  1354. return( 0 );
  1355. }
  1356. #endif /* MBEDTLS_SSL_DTLS_CLIENT_PORT_REUSE */
  1357. #if defined(MBEDTLS_SSL_DTLS_BADMAC_LIMIT)
  1358. if( strcmp( "MBEDTLS_SSL_DTLS_BADMAC_LIMIT", config ) == 0 )
  1359. {
  1360. MACRO_EXPANSION_TO_STR( MBEDTLS_SSL_DTLS_BADMAC_LIMIT );
  1361. return( 0 );
  1362. }
  1363. #endif /* MBEDTLS_SSL_DTLS_BADMAC_LIMIT */
  1364. #if defined(MBEDTLS_SSL_SESSION_TICKETS)
  1365. if( strcmp( "MBEDTLS_SSL_SESSION_TICKETS", config ) == 0 )
  1366. {
  1367. MACRO_EXPANSION_TO_STR( MBEDTLS_SSL_SESSION_TICKETS );
  1368. return( 0 );
  1369. }
  1370. #endif /* MBEDTLS_SSL_SESSION_TICKETS */
  1371. #if defined(MBEDTLS_SSL_EXPORT_KEYS)
  1372. if( strcmp( "MBEDTLS_SSL_EXPORT_KEYS", config ) == 0 )
  1373. {
  1374. MACRO_EXPANSION_TO_STR( MBEDTLS_SSL_EXPORT_KEYS );
  1375. return( 0 );
  1376. }
  1377. #endif /* MBEDTLS_SSL_EXPORT_KEYS */
  1378. #if defined(MBEDTLS_SSL_SERVER_NAME_INDICATION)
  1379. if( strcmp( "MBEDTLS_SSL_SERVER_NAME_INDICATION", config ) == 0 )
  1380. {
  1381. MACRO_EXPANSION_TO_STR( MBEDTLS_SSL_SERVER_NAME_INDICATION );
  1382. return( 0 );
  1383. }
  1384. #endif /* MBEDTLS_SSL_SERVER_NAME_INDICATION */
  1385. #if defined(MBEDTLS_SSL_TRUNCATED_HMAC)
  1386. if( strcmp( "MBEDTLS_SSL_TRUNCATED_HMAC", config ) == 0 )
  1387. {
  1388. MACRO_EXPANSION_TO_STR( MBEDTLS_SSL_TRUNCATED_HMAC );
  1389. return( 0 );
  1390. }
  1391. #endif /* MBEDTLS_SSL_TRUNCATED_HMAC */
  1392. #if defined(MBEDTLS_SSL_TRUNCATED_HMAC_COMPAT)
  1393. if( strcmp( "MBEDTLS_SSL_TRUNCATED_HMAC_COMPAT", config ) == 0 )
  1394. {
  1395. MACRO_EXPANSION_TO_STR( MBEDTLS_SSL_TRUNCATED_HMAC_COMPAT );
  1396. return( 0 );
  1397. }
  1398. #endif /* MBEDTLS_SSL_TRUNCATED_HMAC_COMPAT */
  1399. #if defined(MBEDTLS_SSL_VARIABLE_BUFFER_LENGTH)
  1400. if( strcmp( "MBEDTLS_SSL_VARIABLE_BUFFER_LENGTH", config ) == 0 )
  1401. {
  1402. MACRO_EXPANSION_TO_STR( MBEDTLS_SSL_VARIABLE_BUFFER_LENGTH );
  1403. return( 0 );
  1404. }
  1405. #endif /* MBEDTLS_SSL_VARIABLE_BUFFER_LENGTH */
  1406. #if defined(MBEDTLS_TEST_CONSTANT_FLOW_MEMSAN)
  1407. if( strcmp( "MBEDTLS_TEST_CONSTANT_FLOW_MEMSAN", config ) == 0 )
  1408. {
  1409. MACRO_EXPANSION_TO_STR( MBEDTLS_TEST_CONSTANT_FLOW_MEMSAN );
  1410. return( 0 );
  1411. }
  1412. #endif /* MBEDTLS_TEST_CONSTANT_FLOW_MEMSAN */
  1413. #if defined(MBEDTLS_TEST_CONSTANT_FLOW_VALGRIND)
  1414. if( strcmp( "MBEDTLS_TEST_CONSTANT_FLOW_VALGRIND", config ) == 0 )
  1415. {
  1416. MACRO_EXPANSION_TO_STR( MBEDTLS_TEST_CONSTANT_FLOW_VALGRIND );
  1417. return( 0 );
  1418. }
  1419. #endif /* MBEDTLS_TEST_CONSTANT_FLOW_VALGRIND */
  1420. #if defined(MBEDTLS_TEST_HOOKS)
  1421. if( strcmp( "MBEDTLS_TEST_HOOKS", config ) == 0 )
  1422. {
  1423. MACRO_EXPANSION_TO_STR( MBEDTLS_TEST_HOOKS );
  1424. return( 0 );
  1425. }
  1426. #endif /* MBEDTLS_TEST_HOOKS */
  1427. #if defined(MBEDTLS_THREADING_ALT)
  1428. if( strcmp( "MBEDTLS_THREADING_ALT", config ) == 0 )
  1429. {
  1430. MACRO_EXPANSION_TO_STR( MBEDTLS_THREADING_ALT );
  1431. return( 0 );
  1432. }
  1433. #endif /* MBEDTLS_THREADING_ALT */
  1434. #if defined(MBEDTLS_THREADING_PTHREAD)
  1435. if( strcmp( "MBEDTLS_THREADING_PTHREAD", config ) == 0 )
  1436. {
  1437. MACRO_EXPANSION_TO_STR( MBEDTLS_THREADING_PTHREAD );
  1438. return( 0 );
  1439. }
  1440. #endif /* MBEDTLS_THREADING_PTHREAD */
  1441. #if defined(MBEDTLS_USE_PSA_CRYPTO)
  1442. if( strcmp( "MBEDTLS_USE_PSA_CRYPTO", config ) == 0 )
  1443. {
  1444. MACRO_EXPANSION_TO_STR( MBEDTLS_USE_PSA_CRYPTO );
  1445. return( 0 );
  1446. }
  1447. #endif /* MBEDTLS_USE_PSA_CRYPTO */
  1448. #if defined(MBEDTLS_PSA_CRYPTO_CONFIG)
  1449. if( strcmp( "MBEDTLS_PSA_CRYPTO_CONFIG", config ) == 0 )
  1450. {
  1451. MACRO_EXPANSION_TO_STR( MBEDTLS_PSA_CRYPTO_CONFIG );
  1452. return( 0 );
  1453. }
  1454. #endif /* MBEDTLS_PSA_CRYPTO_CONFIG */
  1455. #if defined(MBEDTLS_VERSION_FEATURES)
  1456. if( strcmp( "MBEDTLS_VERSION_FEATURES", config ) == 0 )
  1457. {
  1458. MACRO_EXPANSION_TO_STR( MBEDTLS_VERSION_FEATURES );
  1459. return( 0 );
  1460. }
  1461. #endif /* MBEDTLS_VERSION_FEATURES */
  1462. #if defined(MBEDTLS_X509_ALLOW_EXTENSIONS_NON_V3)
  1463. if( strcmp( "MBEDTLS_X509_ALLOW_EXTENSIONS_NON_V3", config ) == 0 )
  1464. {
  1465. MACRO_EXPANSION_TO_STR( MBEDTLS_X509_ALLOW_EXTENSIONS_NON_V3 );
  1466. return( 0 );
  1467. }
  1468. #endif /* MBEDTLS_X509_ALLOW_EXTENSIONS_NON_V3 */
  1469. #if defined(MBEDTLS_X509_ALLOW_UNSUPPORTED_CRITICAL_EXTENSION)
  1470. if( strcmp( "MBEDTLS_X509_ALLOW_UNSUPPORTED_CRITICAL_EXTENSION", config ) == 0 )
  1471. {
  1472. MACRO_EXPANSION_TO_STR( MBEDTLS_X509_ALLOW_UNSUPPORTED_CRITICAL_EXTENSION );
  1473. return( 0 );
  1474. }
  1475. #endif /* MBEDTLS_X509_ALLOW_UNSUPPORTED_CRITICAL_EXTENSION */
  1476. #if defined(MBEDTLS_X509_TRUSTED_CERTIFICATE_CALLBACK)
  1477. if( strcmp( "MBEDTLS_X509_TRUSTED_CERTIFICATE_CALLBACK", config ) == 0 )
  1478. {
  1479. MACRO_EXPANSION_TO_STR( MBEDTLS_X509_TRUSTED_CERTIFICATE_CALLBACK );
  1480. return( 0 );
  1481. }
  1482. #endif /* MBEDTLS_X509_TRUSTED_CERTIFICATE_CALLBACK */
  1483. #if defined(MBEDTLS_X509_CHECK_KEY_USAGE)
  1484. if( strcmp( "MBEDTLS_X509_CHECK_KEY_USAGE", config ) == 0 )
  1485. {
  1486. MACRO_EXPANSION_TO_STR( MBEDTLS_X509_CHECK_KEY_USAGE );
  1487. return( 0 );
  1488. }
  1489. #endif /* MBEDTLS_X509_CHECK_KEY_USAGE */
  1490. #if defined(MBEDTLS_X509_CHECK_EXTENDED_KEY_USAGE)
  1491. if( strcmp( "MBEDTLS_X509_CHECK_EXTENDED_KEY_USAGE", config ) == 0 )
  1492. {
  1493. MACRO_EXPANSION_TO_STR( MBEDTLS_X509_CHECK_EXTENDED_KEY_USAGE );
  1494. return( 0 );
  1495. }
  1496. #endif /* MBEDTLS_X509_CHECK_EXTENDED_KEY_USAGE */
  1497. #if defined(MBEDTLS_X509_RSASSA_PSS_SUPPORT)
  1498. if( strcmp( "MBEDTLS_X509_RSASSA_PSS_SUPPORT", config ) == 0 )
  1499. {
  1500. MACRO_EXPANSION_TO_STR( MBEDTLS_X509_RSASSA_PSS_SUPPORT );
  1501. return( 0 );
  1502. }
  1503. #endif /* MBEDTLS_X509_RSASSA_PSS_SUPPORT */
  1504. #if defined(MBEDTLS_ZLIB_SUPPORT)
  1505. if( strcmp( "MBEDTLS_ZLIB_SUPPORT", config ) == 0 )
  1506. {
  1507. MACRO_EXPANSION_TO_STR( MBEDTLS_ZLIB_SUPPORT );
  1508. return( 0 );
  1509. }
  1510. #endif /* MBEDTLS_ZLIB_SUPPORT */
  1511. #if defined(MBEDTLS_AESNI_C)
  1512. if( strcmp( "MBEDTLS_AESNI_C", config ) == 0 )
  1513. {
  1514. MACRO_EXPANSION_TO_STR( MBEDTLS_AESNI_C );
  1515. return( 0 );
  1516. }
  1517. #endif /* MBEDTLS_AESNI_C */
  1518. #if defined(MBEDTLS_AES_C)
  1519. if( strcmp( "MBEDTLS_AES_C", config ) == 0 )
  1520. {
  1521. MACRO_EXPANSION_TO_STR( MBEDTLS_AES_C );
  1522. return( 0 );
  1523. }
  1524. #endif /* MBEDTLS_AES_C */
  1525. #if defined(MBEDTLS_ARC4_C)
  1526. if( strcmp( "MBEDTLS_ARC4_C", config ) == 0 )
  1527. {
  1528. MACRO_EXPANSION_TO_STR( MBEDTLS_ARC4_C );
  1529. return( 0 );
  1530. }
  1531. #endif /* MBEDTLS_ARC4_C */
  1532. #if defined(MBEDTLS_ASN1_PARSE_C)
  1533. if( strcmp( "MBEDTLS_ASN1_PARSE_C", config ) == 0 )
  1534. {
  1535. MACRO_EXPANSION_TO_STR( MBEDTLS_ASN1_PARSE_C );
  1536. return( 0 );
  1537. }
  1538. #endif /* MBEDTLS_ASN1_PARSE_C */
  1539. #if defined(MBEDTLS_ASN1_WRITE_C)
  1540. if( strcmp( "MBEDTLS_ASN1_WRITE_C", config ) == 0 )
  1541. {
  1542. MACRO_EXPANSION_TO_STR( MBEDTLS_ASN1_WRITE_C );
  1543. return( 0 );
  1544. }
  1545. #endif /* MBEDTLS_ASN1_WRITE_C */
  1546. #if defined(MBEDTLS_BASE64_C)
  1547. if( strcmp( "MBEDTLS_BASE64_C", config ) == 0 )
  1548. {
  1549. MACRO_EXPANSION_TO_STR( MBEDTLS_BASE64_C );
  1550. return( 0 );
  1551. }
  1552. #endif /* MBEDTLS_BASE64_C */
  1553. #if defined(MBEDTLS_BIGNUM_C)
  1554. if( strcmp( "MBEDTLS_BIGNUM_C", config ) == 0 )
  1555. {
  1556. MACRO_EXPANSION_TO_STR( MBEDTLS_BIGNUM_C );
  1557. return( 0 );
  1558. }
  1559. #endif /* MBEDTLS_BIGNUM_C */
  1560. #if defined(MBEDTLS_BLOWFISH_C)
  1561. if( strcmp( "MBEDTLS_BLOWFISH_C", config ) == 0 )
  1562. {
  1563. MACRO_EXPANSION_TO_STR( MBEDTLS_BLOWFISH_C );
  1564. return( 0 );
  1565. }
  1566. #endif /* MBEDTLS_BLOWFISH_C */
  1567. #if defined(MBEDTLS_CAMELLIA_C)
  1568. if( strcmp( "MBEDTLS_CAMELLIA_C", config ) == 0 )
  1569. {
  1570. MACRO_EXPANSION_TO_STR( MBEDTLS_CAMELLIA_C );
  1571. return( 0 );
  1572. }
  1573. #endif /* MBEDTLS_CAMELLIA_C */
  1574. #if defined(MBEDTLS_ARIA_C)
  1575. if( strcmp( "MBEDTLS_ARIA_C", config ) == 0 )
  1576. {
  1577. MACRO_EXPANSION_TO_STR( MBEDTLS_ARIA_C );
  1578. return( 0 );
  1579. }
  1580. #endif /* MBEDTLS_ARIA_C */
  1581. #if defined(MBEDTLS_CCM_C)
  1582. if( strcmp( "MBEDTLS_CCM_C", config ) == 0 )
  1583. {
  1584. MACRO_EXPANSION_TO_STR( MBEDTLS_CCM_C );
  1585. return( 0 );
  1586. }
  1587. #endif /* MBEDTLS_CCM_C */
  1588. #if defined(MBEDTLS_CERTS_C)
  1589. if( strcmp( "MBEDTLS_CERTS_C", config ) == 0 )
  1590. {
  1591. MACRO_EXPANSION_TO_STR( MBEDTLS_CERTS_C );
  1592. return( 0 );
  1593. }
  1594. #endif /* MBEDTLS_CERTS_C */
  1595. #if defined(MBEDTLS_CHACHA20_C)
  1596. if( strcmp( "MBEDTLS_CHACHA20_C", config ) == 0 )
  1597. {
  1598. MACRO_EXPANSION_TO_STR( MBEDTLS_CHACHA20_C );
  1599. return( 0 );
  1600. }
  1601. #endif /* MBEDTLS_CHACHA20_C */
  1602. #if defined(MBEDTLS_CHACHAPOLY_C)
  1603. if( strcmp( "MBEDTLS_CHACHAPOLY_C", config ) == 0 )
  1604. {
  1605. MACRO_EXPANSION_TO_STR( MBEDTLS_CHACHAPOLY_C );
  1606. return( 0 );
  1607. }
  1608. #endif /* MBEDTLS_CHACHAPOLY_C */
  1609. #if defined(MBEDTLS_CIPHER_C)
  1610. if( strcmp( "MBEDTLS_CIPHER_C", config ) == 0 )
  1611. {
  1612. MACRO_EXPANSION_TO_STR( MBEDTLS_CIPHER_C );
  1613. return( 0 );
  1614. }
  1615. #endif /* MBEDTLS_CIPHER_C */
  1616. #if defined(MBEDTLS_CMAC_C)
  1617. if( strcmp( "MBEDTLS_CMAC_C", config ) == 0 )
  1618. {
  1619. MACRO_EXPANSION_TO_STR( MBEDTLS_CMAC_C );
  1620. return( 0 );
  1621. }
  1622. #endif /* MBEDTLS_CMAC_C */
  1623. #if defined(MBEDTLS_CTR_DRBG_C)
  1624. if( strcmp( "MBEDTLS_CTR_DRBG_C", config ) == 0 )
  1625. {
  1626. MACRO_EXPANSION_TO_STR( MBEDTLS_CTR_DRBG_C );
  1627. return( 0 );
  1628. }
  1629. #endif /* MBEDTLS_CTR_DRBG_C */
  1630. #if defined(MBEDTLS_DEBUG_C)
  1631. if( strcmp( "MBEDTLS_DEBUG_C", config ) == 0 )
  1632. {
  1633. MACRO_EXPANSION_TO_STR( MBEDTLS_DEBUG_C );
  1634. return( 0 );
  1635. }
  1636. #endif /* MBEDTLS_DEBUG_C */
  1637. #if defined(MBEDTLS_DES_C)
  1638. if( strcmp( "MBEDTLS_DES_C", config ) == 0 )
  1639. {
  1640. MACRO_EXPANSION_TO_STR( MBEDTLS_DES_C );
  1641. return( 0 );
  1642. }
  1643. #endif /* MBEDTLS_DES_C */
  1644. #if defined(MBEDTLS_DHM_C)
  1645. if( strcmp( "MBEDTLS_DHM_C", config ) == 0 )
  1646. {
  1647. MACRO_EXPANSION_TO_STR( MBEDTLS_DHM_C );
  1648. return( 0 );
  1649. }
  1650. #endif /* MBEDTLS_DHM_C */
  1651. #if defined(MBEDTLS_ECDH_C)
  1652. if( strcmp( "MBEDTLS_ECDH_C", config ) == 0 )
  1653. {
  1654. MACRO_EXPANSION_TO_STR( MBEDTLS_ECDH_C );
  1655. return( 0 );
  1656. }
  1657. #endif /* MBEDTLS_ECDH_C */
  1658. #if defined(MBEDTLS_ECDSA_C)
  1659. if( strcmp( "MBEDTLS_ECDSA_C", config ) == 0 )
  1660. {
  1661. MACRO_EXPANSION_TO_STR( MBEDTLS_ECDSA_C );
  1662. return( 0 );
  1663. }
  1664. #endif /* MBEDTLS_ECDSA_C */
  1665. #if defined(MBEDTLS_ECJPAKE_C)
  1666. if( strcmp( "MBEDTLS_ECJPAKE_C", config ) == 0 )
  1667. {
  1668. MACRO_EXPANSION_TO_STR( MBEDTLS_ECJPAKE_C );
  1669. return( 0 );
  1670. }
  1671. #endif /* MBEDTLS_ECJPAKE_C */
  1672. #if defined(MBEDTLS_ECP_C)
  1673. if( strcmp( "MBEDTLS_ECP_C", config ) == 0 )
  1674. {
  1675. MACRO_EXPANSION_TO_STR( MBEDTLS_ECP_C );
  1676. return( 0 );
  1677. }
  1678. #endif /* MBEDTLS_ECP_C */
  1679. #if defined(MBEDTLS_ENTROPY_C)
  1680. if( strcmp( "MBEDTLS_ENTROPY_C", config ) == 0 )
  1681. {
  1682. MACRO_EXPANSION_TO_STR( MBEDTLS_ENTROPY_C );
  1683. return( 0 );
  1684. }
  1685. #endif /* MBEDTLS_ENTROPY_C */
  1686. #if defined(MBEDTLS_ERROR_C)
  1687. if( strcmp( "MBEDTLS_ERROR_C", config ) == 0 )
  1688. {
  1689. MACRO_EXPANSION_TO_STR( MBEDTLS_ERROR_C );
  1690. return( 0 );
  1691. }
  1692. #endif /* MBEDTLS_ERROR_C */
  1693. #if defined(MBEDTLS_GCM_C)
  1694. if( strcmp( "MBEDTLS_GCM_C", config ) == 0 )
  1695. {
  1696. MACRO_EXPANSION_TO_STR( MBEDTLS_GCM_C );
  1697. return( 0 );
  1698. }
  1699. #endif /* MBEDTLS_GCM_C */
  1700. #if defined(MBEDTLS_HAVEGE_C)
  1701. if( strcmp( "MBEDTLS_HAVEGE_C", config ) == 0 )
  1702. {
  1703. MACRO_EXPANSION_TO_STR( MBEDTLS_HAVEGE_C );
  1704. return( 0 );
  1705. }
  1706. #endif /* MBEDTLS_HAVEGE_C */
  1707. #if defined(MBEDTLS_HKDF_C)
  1708. if( strcmp( "MBEDTLS_HKDF_C", config ) == 0 )
  1709. {
  1710. MACRO_EXPANSION_TO_STR( MBEDTLS_HKDF_C );
  1711. return( 0 );
  1712. }
  1713. #endif /* MBEDTLS_HKDF_C */
  1714. #if defined(MBEDTLS_HMAC_DRBG_C)
  1715. if( strcmp( "MBEDTLS_HMAC_DRBG_C", config ) == 0 )
  1716. {
  1717. MACRO_EXPANSION_TO_STR( MBEDTLS_HMAC_DRBG_C );
  1718. return( 0 );
  1719. }
  1720. #endif /* MBEDTLS_HMAC_DRBG_C */
  1721. #if defined(MBEDTLS_NIST_KW_C)
  1722. if( strcmp( "MBEDTLS_NIST_KW_C", config ) == 0 )
  1723. {
  1724. MACRO_EXPANSION_TO_STR( MBEDTLS_NIST_KW_C );
  1725. return( 0 );
  1726. }
  1727. #endif /* MBEDTLS_NIST_KW_C */
  1728. #if defined(MBEDTLS_MD_C)
  1729. if( strcmp( "MBEDTLS_MD_C", config ) == 0 )
  1730. {
  1731. MACRO_EXPANSION_TO_STR( MBEDTLS_MD_C );
  1732. return( 0 );
  1733. }
  1734. #endif /* MBEDTLS_MD_C */
  1735. #if defined(MBEDTLS_MD2_C)
  1736. if( strcmp( "MBEDTLS_MD2_C", config ) == 0 )
  1737. {
  1738. MACRO_EXPANSION_TO_STR( MBEDTLS_MD2_C );
  1739. return( 0 );
  1740. }
  1741. #endif /* MBEDTLS_MD2_C */
  1742. #if defined(MBEDTLS_MD4_C)
  1743. if( strcmp( "MBEDTLS_MD4_C", config ) == 0 )
  1744. {
  1745. MACRO_EXPANSION_TO_STR( MBEDTLS_MD4_C );
  1746. return( 0 );
  1747. }
  1748. #endif /* MBEDTLS_MD4_C */
  1749. #if defined(MBEDTLS_MD5_C)
  1750. if( strcmp( "MBEDTLS_MD5_C", config ) == 0 )
  1751. {
  1752. MACRO_EXPANSION_TO_STR( MBEDTLS_MD5_C );
  1753. return( 0 );
  1754. }
  1755. #endif /* MBEDTLS_MD5_C */
  1756. #if defined(MBEDTLS_MEMORY_BUFFER_ALLOC_C)
  1757. if( strcmp( "MBEDTLS_MEMORY_BUFFER_ALLOC_C", config ) == 0 )
  1758. {
  1759. MACRO_EXPANSION_TO_STR( MBEDTLS_MEMORY_BUFFER_ALLOC_C );
  1760. return( 0 );
  1761. }
  1762. #endif /* MBEDTLS_MEMORY_BUFFER_ALLOC_C */
  1763. #if defined(MBEDTLS_NET_C)
  1764. if( strcmp( "MBEDTLS_NET_C", config ) == 0 )
  1765. {
  1766. MACRO_EXPANSION_TO_STR( MBEDTLS_NET_C );
  1767. return( 0 );
  1768. }
  1769. #endif /* MBEDTLS_NET_C */
  1770. #if defined(MBEDTLS_OID_C)
  1771. if( strcmp( "MBEDTLS_OID_C", config ) == 0 )
  1772. {
  1773. MACRO_EXPANSION_TO_STR( MBEDTLS_OID_C );
  1774. return( 0 );
  1775. }
  1776. #endif /* MBEDTLS_OID_C */
  1777. #if defined(MBEDTLS_PADLOCK_C)
  1778. if( strcmp( "MBEDTLS_PADLOCK_C", config ) == 0 )
  1779. {
  1780. MACRO_EXPANSION_TO_STR( MBEDTLS_PADLOCK_C );
  1781. return( 0 );
  1782. }
  1783. #endif /* MBEDTLS_PADLOCK_C */
  1784. #if defined(MBEDTLS_PEM_PARSE_C)
  1785. if( strcmp( "MBEDTLS_PEM_PARSE_C", config ) == 0 )
  1786. {
  1787. MACRO_EXPANSION_TO_STR( MBEDTLS_PEM_PARSE_C );
  1788. return( 0 );
  1789. }
  1790. #endif /* MBEDTLS_PEM_PARSE_C */
  1791. #if defined(MBEDTLS_PEM_WRITE_C)
  1792. if( strcmp( "MBEDTLS_PEM_WRITE_C", config ) == 0 )
  1793. {
  1794. MACRO_EXPANSION_TO_STR( MBEDTLS_PEM_WRITE_C );
  1795. return( 0 );
  1796. }
  1797. #endif /* MBEDTLS_PEM_WRITE_C */
  1798. #if defined(MBEDTLS_PK_C)
  1799. if( strcmp( "MBEDTLS_PK_C", config ) == 0 )
  1800. {
  1801. MACRO_EXPANSION_TO_STR( MBEDTLS_PK_C );
  1802. return( 0 );
  1803. }
  1804. #endif /* MBEDTLS_PK_C */
  1805. #if defined(MBEDTLS_PK_PARSE_C)
  1806. if( strcmp( "MBEDTLS_PK_PARSE_C", config ) == 0 )
  1807. {
  1808. MACRO_EXPANSION_TO_STR( MBEDTLS_PK_PARSE_C );
  1809. return( 0 );
  1810. }
  1811. #endif /* MBEDTLS_PK_PARSE_C */
  1812. #if defined(MBEDTLS_PK_WRITE_C)
  1813. if( strcmp( "MBEDTLS_PK_WRITE_C", config ) == 0 )
  1814. {
  1815. MACRO_EXPANSION_TO_STR( MBEDTLS_PK_WRITE_C );
  1816. return( 0 );
  1817. }
  1818. #endif /* MBEDTLS_PK_WRITE_C */
  1819. #if defined(MBEDTLS_PKCS5_C)
  1820. if( strcmp( "MBEDTLS_PKCS5_C", config ) == 0 )
  1821. {
  1822. MACRO_EXPANSION_TO_STR( MBEDTLS_PKCS5_C );
  1823. return( 0 );
  1824. }
  1825. #endif /* MBEDTLS_PKCS5_C */
  1826. #if defined(MBEDTLS_PKCS11_C)
  1827. if( strcmp( "MBEDTLS_PKCS11_C", config ) == 0 )
  1828. {
  1829. MACRO_EXPANSION_TO_STR( MBEDTLS_PKCS11_C );
  1830. return( 0 );
  1831. }
  1832. #endif /* MBEDTLS_PKCS11_C */
  1833. #if defined(MBEDTLS_PKCS12_C)
  1834. if( strcmp( "MBEDTLS_PKCS12_C", config ) == 0 )
  1835. {
  1836. MACRO_EXPANSION_TO_STR( MBEDTLS_PKCS12_C );
  1837. return( 0 );
  1838. }
  1839. #endif /* MBEDTLS_PKCS12_C */
  1840. #if defined(MBEDTLS_PLATFORM_C)
  1841. if( strcmp( "MBEDTLS_PLATFORM_C", config ) == 0 )
  1842. {
  1843. MACRO_EXPANSION_TO_STR( MBEDTLS_PLATFORM_C );
  1844. return( 0 );
  1845. }
  1846. #endif /* MBEDTLS_PLATFORM_C */
  1847. #if defined(MBEDTLS_POLY1305_C)
  1848. if( strcmp( "MBEDTLS_POLY1305_C", config ) == 0 )
  1849. {
  1850. MACRO_EXPANSION_TO_STR( MBEDTLS_POLY1305_C );
  1851. return( 0 );
  1852. }
  1853. #endif /* MBEDTLS_POLY1305_C */
  1854. #if defined(MBEDTLS_PSA_CRYPTO_C)
  1855. if( strcmp( "MBEDTLS_PSA_CRYPTO_C", config ) == 0 )
  1856. {
  1857. MACRO_EXPANSION_TO_STR( MBEDTLS_PSA_CRYPTO_C );
  1858. return( 0 );
  1859. }
  1860. #endif /* MBEDTLS_PSA_CRYPTO_C */
  1861. #if defined(MBEDTLS_PSA_CRYPTO_SE_C)
  1862. if( strcmp( "MBEDTLS_PSA_CRYPTO_SE_C", config ) == 0 )
  1863. {
  1864. MACRO_EXPANSION_TO_STR( MBEDTLS_PSA_CRYPTO_SE_C );
  1865. return( 0 );
  1866. }
  1867. #endif /* MBEDTLS_PSA_CRYPTO_SE_C */
  1868. #if defined(MBEDTLS_PSA_CRYPTO_STORAGE_C)
  1869. if( strcmp( "MBEDTLS_PSA_CRYPTO_STORAGE_C", config ) == 0 )
  1870. {
  1871. MACRO_EXPANSION_TO_STR( MBEDTLS_PSA_CRYPTO_STORAGE_C );
  1872. return( 0 );
  1873. }
  1874. #endif /* MBEDTLS_PSA_CRYPTO_STORAGE_C */
  1875. #if defined(MBEDTLS_PSA_ITS_FILE_C)
  1876. if( strcmp( "MBEDTLS_PSA_ITS_FILE_C", config ) == 0 )
  1877. {
  1878. MACRO_EXPANSION_TO_STR( MBEDTLS_PSA_ITS_FILE_C );
  1879. return( 0 );
  1880. }
  1881. #endif /* MBEDTLS_PSA_ITS_FILE_C */
  1882. #if defined(MBEDTLS_RIPEMD160_C)
  1883. if( strcmp( "MBEDTLS_RIPEMD160_C", config ) == 0 )
  1884. {
  1885. MACRO_EXPANSION_TO_STR( MBEDTLS_RIPEMD160_C );
  1886. return( 0 );
  1887. }
  1888. #endif /* MBEDTLS_RIPEMD160_C */
  1889. #if defined(MBEDTLS_RSA_C)
  1890. if( strcmp( "MBEDTLS_RSA_C", config ) == 0 )
  1891. {
  1892. MACRO_EXPANSION_TO_STR( MBEDTLS_RSA_C );
  1893. return( 0 );
  1894. }
  1895. #endif /* MBEDTLS_RSA_C */
  1896. #if defined(MBEDTLS_SHA1_C)
  1897. if( strcmp( "MBEDTLS_SHA1_C", config ) == 0 )
  1898. {
  1899. MACRO_EXPANSION_TO_STR( MBEDTLS_SHA1_C );
  1900. return( 0 );
  1901. }
  1902. #endif /* MBEDTLS_SHA1_C */
  1903. #if defined(MBEDTLS_SHA256_C)
  1904. if( strcmp( "MBEDTLS_SHA256_C", config ) == 0 )
  1905. {
  1906. MACRO_EXPANSION_TO_STR( MBEDTLS_SHA256_C );
  1907. return( 0 );
  1908. }
  1909. #endif /* MBEDTLS_SHA256_C */
  1910. #if defined(MBEDTLS_SHA512_C)
  1911. if( strcmp( "MBEDTLS_SHA512_C", config ) == 0 )
  1912. {
  1913. MACRO_EXPANSION_TO_STR( MBEDTLS_SHA512_C );
  1914. return( 0 );
  1915. }
  1916. #endif /* MBEDTLS_SHA512_C */
  1917. #if defined(MBEDTLS_SSL_CACHE_C)
  1918. if( strcmp( "MBEDTLS_SSL_CACHE_C", config ) == 0 )
  1919. {
  1920. MACRO_EXPANSION_TO_STR( MBEDTLS_SSL_CACHE_C );
  1921. return( 0 );
  1922. }
  1923. #endif /* MBEDTLS_SSL_CACHE_C */
  1924. #if defined(MBEDTLS_SSL_COOKIE_C)
  1925. if( strcmp( "MBEDTLS_SSL_COOKIE_C", config ) == 0 )
  1926. {
  1927. MACRO_EXPANSION_TO_STR( MBEDTLS_SSL_COOKIE_C );
  1928. return( 0 );
  1929. }
  1930. #endif /* MBEDTLS_SSL_COOKIE_C */
  1931. #if defined(MBEDTLS_SSL_TICKET_C)
  1932. if( strcmp( "MBEDTLS_SSL_TICKET_C", config ) == 0 )
  1933. {
  1934. MACRO_EXPANSION_TO_STR( MBEDTLS_SSL_TICKET_C );
  1935. return( 0 );
  1936. }
  1937. #endif /* MBEDTLS_SSL_TICKET_C */
  1938. #if defined(MBEDTLS_SSL_CLI_C)
  1939. if( strcmp( "MBEDTLS_SSL_CLI_C", config ) == 0 )
  1940. {
  1941. MACRO_EXPANSION_TO_STR( MBEDTLS_SSL_CLI_C );
  1942. return( 0 );
  1943. }
  1944. #endif /* MBEDTLS_SSL_CLI_C */
  1945. #if defined(MBEDTLS_SSL_SRV_C)
  1946. if( strcmp( "MBEDTLS_SSL_SRV_C", config ) == 0 )
  1947. {
  1948. MACRO_EXPANSION_TO_STR( MBEDTLS_SSL_SRV_C );
  1949. return( 0 );
  1950. }
  1951. #endif /* MBEDTLS_SSL_SRV_C */
  1952. #if defined(MBEDTLS_SSL_TLS_C)
  1953. if( strcmp( "MBEDTLS_SSL_TLS_C", config ) == 0 )
  1954. {
  1955. MACRO_EXPANSION_TO_STR( MBEDTLS_SSL_TLS_C );
  1956. return( 0 );
  1957. }
  1958. #endif /* MBEDTLS_SSL_TLS_C */
  1959. #if defined(MBEDTLS_THREADING_C)
  1960. if( strcmp( "MBEDTLS_THREADING_C", config ) == 0 )
  1961. {
  1962. MACRO_EXPANSION_TO_STR( MBEDTLS_THREADING_C );
  1963. return( 0 );
  1964. }
  1965. #endif /* MBEDTLS_THREADING_C */
  1966. #if defined(MBEDTLS_TIMING_C)
  1967. if( strcmp( "MBEDTLS_TIMING_C", config ) == 0 )
  1968. {
  1969. MACRO_EXPANSION_TO_STR( MBEDTLS_TIMING_C );
  1970. return( 0 );
  1971. }
  1972. #endif /* MBEDTLS_TIMING_C */
  1973. #if defined(MBEDTLS_VERSION_C)
  1974. if( strcmp( "MBEDTLS_VERSION_C", config ) == 0 )
  1975. {
  1976. MACRO_EXPANSION_TO_STR( MBEDTLS_VERSION_C );
  1977. return( 0 );
  1978. }
  1979. #endif /* MBEDTLS_VERSION_C */
  1980. #if defined(MBEDTLS_X509_USE_C)
  1981. if( strcmp( "MBEDTLS_X509_USE_C", config ) == 0 )
  1982. {
  1983. MACRO_EXPANSION_TO_STR( MBEDTLS_X509_USE_C );
  1984. return( 0 );
  1985. }
  1986. #endif /* MBEDTLS_X509_USE_C */
  1987. #if defined(MBEDTLS_X509_CRT_PARSE_C)
  1988. if( strcmp( "MBEDTLS_X509_CRT_PARSE_C", config ) == 0 )
  1989. {
  1990. MACRO_EXPANSION_TO_STR( MBEDTLS_X509_CRT_PARSE_C );
  1991. return( 0 );
  1992. }
  1993. #endif /* MBEDTLS_X509_CRT_PARSE_C */
  1994. #if defined(MBEDTLS_X509_CRL_PARSE_C)
  1995. if( strcmp( "MBEDTLS_X509_CRL_PARSE_C", config ) == 0 )
  1996. {
  1997. MACRO_EXPANSION_TO_STR( MBEDTLS_X509_CRL_PARSE_C );
  1998. return( 0 );
  1999. }
  2000. #endif /* MBEDTLS_X509_CRL_PARSE_C */
  2001. #if defined(MBEDTLS_X509_CSR_PARSE_C)
  2002. if( strcmp( "MBEDTLS_X509_CSR_PARSE_C", config ) == 0 )
  2003. {
  2004. MACRO_EXPANSION_TO_STR( MBEDTLS_X509_CSR_PARSE_C );
  2005. return( 0 );
  2006. }
  2007. #endif /* MBEDTLS_X509_CSR_PARSE_C */
  2008. #if defined(MBEDTLS_X509_CREATE_C)
  2009. if( strcmp( "MBEDTLS_X509_CREATE_C", config ) == 0 )
  2010. {
  2011. MACRO_EXPANSION_TO_STR( MBEDTLS_X509_CREATE_C );
  2012. return( 0 );
  2013. }
  2014. #endif /* MBEDTLS_X509_CREATE_C */
  2015. #if defined(MBEDTLS_X509_CRT_WRITE_C)
  2016. if( strcmp( "MBEDTLS_X509_CRT_WRITE_C", config ) == 0 )
  2017. {
  2018. MACRO_EXPANSION_TO_STR( MBEDTLS_X509_CRT_WRITE_C );
  2019. return( 0 );
  2020. }
  2021. #endif /* MBEDTLS_X509_CRT_WRITE_C */
  2022. #if defined(MBEDTLS_X509_CSR_WRITE_C)
  2023. if( strcmp( "MBEDTLS_X509_CSR_WRITE_C", config ) == 0 )
  2024. {
  2025. MACRO_EXPANSION_TO_STR( MBEDTLS_X509_CSR_WRITE_C );
  2026. return( 0 );
  2027. }
  2028. #endif /* MBEDTLS_X509_CSR_WRITE_C */
  2029. #if defined(MBEDTLS_XTEA_C)
  2030. if( strcmp( "MBEDTLS_XTEA_C", config ) == 0 )
  2031. {
  2032. MACRO_EXPANSION_TO_STR( MBEDTLS_XTEA_C );
  2033. return( 0 );
  2034. }
  2035. #endif /* MBEDTLS_XTEA_C */
  2036. #if defined(MBEDTLS_MPI_WINDOW_SIZE)
  2037. if( strcmp( "MBEDTLS_MPI_WINDOW_SIZE", config ) == 0 )
  2038. {
  2039. MACRO_EXPANSION_TO_STR( MBEDTLS_MPI_WINDOW_SIZE );
  2040. return( 0 );
  2041. }
  2042. #endif /* MBEDTLS_MPI_WINDOW_SIZE */
  2043. #if defined(MBEDTLS_MPI_MAX_SIZE)
  2044. if( strcmp( "MBEDTLS_MPI_MAX_SIZE", config ) == 0 )
  2045. {
  2046. MACRO_EXPANSION_TO_STR( MBEDTLS_MPI_MAX_SIZE );
  2047. return( 0 );
  2048. }
  2049. #endif /* MBEDTLS_MPI_MAX_SIZE */
  2050. #if defined(MBEDTLS_CTR_DRBG_ENTROPY_LEN)
  2051. if( strcmp( "MBEDTLS_CTR_DRBG_ENTROPY_LEN", config ) == 0 )
  2052. {
  2053. MACRO_EXPANSION_TO_STR( MBEDTLS_CTR_DRBG_ENTROPY_LEN );
  2054. return( 0 );
  2055. }
  2056. #endif /* MBEDTLS_CTR_DRBG_ENTROPY_LEN */
  2057. #if defined(MBEDTLS_CTR_DRBG_RESEED_INTERVAL)
  2058. if( strcmp( "MBEDTLS_CTR_DRBG_RESEED_INTERVAL", config ) == 0 )
  2059. {
  2060. MACRO_EXPANSION_TO_STR( MBEDTLS_CTR_DRBG_RESEED_INTERVAL );
  2061. return( 0 );
  2062. }
  2063. #endif /* MBEDTLS_CTR_DRBG_RESEED_INTERVAL */
  2064. #if defined(MBEDTLS_CTR_DRBG_MAX_INPUT)
  2065. if( strcmp( "MBEDTLS_CTR_DRBG_MAX_INPUT", config ) == 0 )
  2066. {
  2067. MACRO_EXPANSION_TO_STR( MBEDTLS_CTR_DRBG_MAX_INPUT );
  2068. return( 0 );
  2069. }
  2070. #endif /* MBEDTLS_CTR_DRBG_MAX_INPUT */
  2071. #if defined(MBEDTLS_CTR_DRBG_MAX_REQUEST)
  2072. if( strcmp( "MBEDTLS_CTR_DRBG_MAX_REQUEST", config ) == 0 )
  2073. {
  2074. MACRO_EXPANSION_TO_STR( MBEDTLS_CTR_DRBG_MAX_REQUEST );
  2075. return( 0 );
  2076. }
  2077. #endif /* MBEDTLS_CTR_DRBG_MAX_REQUEST */
  2078. #if defined(MBEDTLS_CTR_DRBG_MAX_SEED_INPUT)
  2079. if( strcmp( "MBEDTLS_CTR_DRBG_MAX_SEED_INPUT", config ) == 0 )
  2080. {
  2081. MACRO_EXPANSION_TO_STR( MBEDTLS_CTR_DRBG_MAX_SEED_INPUT );
  2082. return( 0 );
  2083. }
  2084. #endif /* MBEDTLS_CTR_DRBG_MAX_SEED_INPUT */
  2085. #if defined(MBEDTLS_HMAC_DRBG_RESEED_INTERVAL)
  2086. if( strcmp( "MBEDTLS_HMAC_DRBG_RESEED_INTERVAL", config ) == 0 )
  2087. {
  2088. MACRO_EXPANSION_TO_STR( MBEDTLS_HMAC_DRBG_RESEED_INTERVAL );
  2089. return( 0 );
  2090. }
  2091. #endif /* MBEDTLS_HMAC_DRBG_RESEED_INTERVAL */
  2092. #if defined(MBEDTLS_HMAC_DRBG_MAX_INPUT)
  2093. if( strcmp( "MBEDTLS_HMAC_DRBG_MAX_INPUT", config ) == 0 )
  2094. {
  2095. MACRO_EXPANSION_TO_STR( MBEDTLS_HMAC_DRBG_MAX_INPUT );
  2096. return( 0 );
  2097. }
  2098. #endif /* MBEDTLS_HMAC_DRBG_MAX_INPUT */
  2099. #if defined(MBEDTLS_HMAC_DRBG_MAX_REQUEST)
  2100. if( strcmp( "MBEDTLS_HMAC_DRBG_MAX_REQUEST", config ) == 0 )
  2101. {
  2102. MACRO_EXPANSION_TO_STR( MBEDTLS_HMAC_DRBG_MAX_REQUEST );
  2103. return( 0 );
  2104. }
  2105. #endif /* MBEDTLS_HMAC_DRBG_MAX_REQUEST */
  2106. #if defined(MBEDTLS_HMAC_DRBG_MAX_SEED_INPUT)
  2107. if( strcmp( "MBEDTLS_HMAC_DRBG_MAX_SEED_INPUT", config ) == 0 )
  2108. {
  2109. MACRO_EXPANSION_TO_STR( MBEDTLS_HMAC_DRBG_MAX_SEED_INPUT );
  2110. return( 0 );
  2111. }
  2112. #endif /* MBEDTLS_HMAC_DRBG_MAX_SEED_INPUT */
  2113. #if defined(MBEDTLS_ECP_MAX_BITS)
  2114. if( strcmp( "MBEDTLS_ECP_MAX_BITS", config ) == 0 )
  2115. {
  2116. MACRO_EXPANSION_TO_STR( MBEDTLS_ECP_MAX_BITS );
  2117. return( 0 );
  2118. }
  2119. #endif /* MBEDTLS_ECP_MAX_BITS */
  2120. #if defined(MBEDTLS_ECP_WINDOW_SIZE)
  2121. if( strcmp( "MBEDTLS_ECP_WINDOW_SIZE", config ) == 0 )
  2122. {
  2123. MACRO_EXPANSION_TO_STR( MBEDTLS_ECP_WINDOW_SIZE );
  2124. return( 0 );
  2125. }
  2126. #endif /* MBEDTLS_ECP_WINDOW_SIZE */
  2127. #if defined(MBEDTLS_ECP_FIXED_POINT_OPTIM)
  2128. if( strcmp( "MBEDTLS_ECP_FIXED_POINT_OPTIM", config ) == 0 )
  2129. {
  2130. MACRO_EXPANSION_TO_STR( MBEDTLS_ECP_FIXED_POINT_OPTIM );
  2131. return( 0 );
  2132. }
  2133. #endif /* MBEDTLS_ECP_FIXED_POINT_OPTIM */
  2134. #if defined(MBEDTLS_ENTROPY_MAX_SOURCES)
  2135. if( strcmp( "MBEDTLS_ENTROPY_MAX_SOURCES", config ) == 0 )
  2136. {
  2137. MACRO_EXPANSION_TO_STR( MBEDTLS_ENTROPY_MAX_SOURCES );
  2138. return( 0 );
  2139. }
  2140. #endif /* MBEDTLS_ENTROPY_MAX_SOURCES */
  2141. #if defined(MBEDTLS_ENTROPY_MAX_GATHER)
  2142. if( strcmp( "MBEDTLS_ENTROPY_MAX_GATHER", config ) == 0 )
  2143. {
  2144. MACRO_EXPANSION_TO_STR( MBEDTLS_ENTROPY_MAX_GATHER );
  2145. return( 0 );
  2146. }
  2147. #endif /* MBEDTLS_ENTROPY_MAX_GATHER */
  2148. #if defined(MBEDTLS_ENTROPY_MIN_HARDWARE)
  2149. if( strcmp( "MBEDTLS_ENTROPY_MIN_HARDWARE", config ) == 0 )
  2150. {
  2151. MACRO_EXPANSION_TO_STR( MBEDTLS_ENTROPY_MIN_HARDWARE );
  2152. return( 0 );
  2153. }
  2154. #endif /* MBEDTLS_ENTROPY_MIN_HARDWARE */
  2155. #if defined(MBEDTLS_MEMORY_ALIGN_MULTIPLE)
  2156. if( strcmp( "MBEDTLS_MEMORY_ALIGN_MULTIPLE", config ) == 0 )
  2157. {
  2158. MACRO_EXPANSION_TO_STR( MBEDTLS_MEMORY_ALIGN_MULTIPLE );
  2159. return( 0 );
  2160. }
  2161. #endif /* MBEDTLS_MEMORY_ALIGN_MULTIPLE */
  2162. #if defined(MBEDTLS_PLATFORM_STD_MEM_HDR)
  2163. if( strcmp( "MBEDTLS_PLATFORM_STD_MEM_HDR", config ) == 0 )
  2164. {
  2165. MACRO_EXPANSION_TO_STR( MBEDTLS_PLATFORM_STD_MEM_HDR );
  2166. return( 0 );
  2167. }
  2168. #endif /* MBEDTLS_PLATFORM_STD_MEM_HDR */
  2169. #if defined(MBEDTLS_PLATFORM_STD_CALLOC)
  2170. if( strcmp( "MBEDTLS_PLATFORM_STD_CALLOC", config ) == 0 )
  2171. {
  2172. MACRO_EXPANSION_TO_STR( MBEDTLS_PLATFORM_STD_CALLOC );
  2173. return( 0 );
  2174. }
  2175. #endif /* MBEDTLS_PLATFORM_STD_CALLOC */
  2176. #if defined(MBEDTLS_PLATFORM_STD_FREE)
  2177. if( strcmp( "MBEDTLS_PLATFORM_STD_FREE", config ) == 0 )
  2178. {
  2179. MACRO_EXPANSION_TO_STR( MBEDTLS_PLATFORM_STD_FREE );
  2180. return( 0 );
  2181. }
  2182. #endif /* MBEDTLS_PLATFORM_STD_FREE */
  2183. #if defined(MBEDTLS_PLATFORM_STD_EXIT)
  2184. if( strcmp( "MBEDTLS_PLATFORM_STD_EXIT", config ) == 0 )
  2185. {
  2186. MACRO_EXPANSION_TO_STR( MBEDTLS_PLATFORM_STD_EXIT );
  2187. return( 0 );
  2188. }
  2189. #endif /* MBEDTLS_PLATFORM_STD_EXIT */
  2190. #if defined(MBEDTLS_PLATFORM_STD_TIME)
  2191. if( strcmp( "MBEDTLS_PLATFORM_STD_TIME", config ) == 0 )
  2192. {
  2193. MACRO_EXPANSION_TO_STR( MBEDTLS_PLATFORM_STD_TIME );
  2194. return( 0 );
  2195. }
  2196. #endif /* MBEDTLS_PLATFORM_STD_TIME */
  2197. #if defined(MBEDTLS_PLATFORM_STD_FPRINTF)
  2198. if( strcmp( "MBEDTLS_PLATFORM_STD_FPRINTF", config ) == 0 )
  2199. {
  2200. MACRO_EXPANSION_TO_STR( MBEDTLS_PLATFORM_STD_FPRINTF );
  2201. return( 0 );
  2202. }
  2203. #endif /* MBEDTLS_PLATFORM_STD_FPRINTF */
  2204. #if defined(MBEDTLS_PLATFORM_STD_PRINTF)
  2205. if( strcmp( "MBEDTLS_PLATFORM_STD_PRINTF", config ) == 0 )
  2206. {
  2207. MACRO_EXPANSION_TO_STR( MBEDTLS_PLATFORM_STD_PRINTF );
  2208. return( 0 );
  2209. }
  2210. #endif /* MBEDTLS_PLATFORM_STD_PRINTF */
  2211. #if defined(MBEDTLS_PLATFORM_STD_SNPRINTF)
  2212. if( strcmp( "MBEDTLS_PLATFORM_STD_SNPRINTF", config ) == 0 )
  2213. {
  2214. MACRO_EXPANSION_TO_STR( MBEDTLS_PLATFORM_STD_SNPRINTF );
  2215. return( 0 );
  2216. }
  2217. #endif /* MBEDTLS_PLATFORM_STD_SNPRINTF */
  2218. #if defined(MBEDTLS_PLATFORM_STD_EXIT_SUCCESS)
  2219. if( strcmp( "MBEDTLS_PLATFORM_STD_EXIT_SUCCESS", config ) == 0 )
  2220. {
  2221. MACRO_EXPANSION_TO_STR( MBEDTLS_PLATFORM_STD_EXIT_SUCCESS );
  2222. return( 0 );
  2223. }
  2224. #endif /* MBEDTLS_PLATFORM_STD_EXIT_SUCCESS */
  2225. #if defined(MBEDTLS_PLATFORM_STD_EXIT_FAILURE)
  2226. if( strcmp( "MBEDTLS_PLATFORM_STD_EXIT_FAILURE", config ) == 0 )
  2227. {
  2228. MACRO_EXPANSION_TO_STR( MBEDTLS_PLATFORM_STD_EXIT_FAILURE );
  2229. return( 0 );
  2230. }
  2231. #endif /* MBEDTLS_PLATFORM_STD_EXIT_FAILURE */
  2232. #if defined(MBEDTLS_PLATFORM_STD_NV_SEED_READ)
  2233. if( strcmp( "MBEDTLS_PLATFORM_STD_NV_SEED_READ", config ) == 0 )
  2234. {
  2235. MACRO_EXPANSION_TO_STR( MBEDTLS_PLATFORM_STD_NV_SEED_READ );
  2236. return( 0 );
  2237. }
  2238. #endif /* MBEDTLS_PLATFORM_STD_NV_SEED_READ */
  2239. #if defined(MBEDTLS_PLATFORM_STD_NV_SEED_WRITE)
  2240. if( strcmp( "MBEDTLS_PLATFORM_STD_NV_SEED_WRITE", config ) == 0 )
  2241. {
  2242. MACRO_EXPANSION_TO_STR( MBEDTLS_PLATFORM_STD_NV_SEED_WRITE );
  2243. return( 0 );
  2244. }
  2245. #endif /* MBEDTLS_PLATFORM_STD_NV_SEED_WRITE */
  2246. #if defined(MBEDTLS_PLATFORM_STD_NV_SEED_FILE)
  2247. if( strcmp( "MBEDTLS_PLATFORM_STD_NV_SEED_FILE", config ) == 0 )
  2248. {
  2249. MACRO_EXPANSION_TO_STR( MBEDTLS_PLATFORM_STD_NV_SEED_FILE );
  2250. return( 0 );
  2251. }
  2252. #endif /* MBEDTLS_PLATFORM_STD_NV_SEED_FILE */
  2253. #if defined(MBEDTLS_PLATFORM_CALLOC_MACRO)
  2254. if( strcmp( "MBEDTLS_PLATFORM_CALLOC_MACRO", config ) == 0 )
  2255. {
  2256. MACRO_EXPANSION_TO_STR( MBEDTLS_PLATFORM_CALLOC_MACRO );
  2257. return( 0 );
  2258. }
  2259. #endif /* MBEDTLS_PLATFORM_CALLOC_MACRO */
  2260. #if defined(MBEDTLS_PLATFORM_FREE_MACRO)
  2261. if( strcmp( "MBEDTLS_PLATFORM_FREE_MACRO", config ) == 0 )
  2262. {
  2263. MACRO_EXPANSION_TO_STR( MBEDTLS_PLATFORM_FREE_MACRO );
  2264. return( 0 );
  2265. }
  2266. #endif /* MBEDTLS_PLATFORM_FREE_MACRO */
  2267. #if defined(MBEDTLS_PLATFORM_EXIT_MACRO)
  2268. if( strcmp( "MBEDTLS_PLATFORM_EXIT_MACRO", config ) == 0 )
  2269. {
  2270. MACRO_EXPANSION_TO_STR( MBEDTLS_PLATFORM_EXIT_MACRO );
  2271. return( 0 );
  2272. }
  2273. #endif /* MBEDTLS_PLATFORM_EXIT_MACRO */
  2274. #if defined(MBEDTLS_PLATFORM_TIME_MACRO)
  2275. if( strcmp( "MBEDTLS_PLATFORM_TIME_MACRO", config ) == 0 )
  2276. {
  2277. MACRO_EXPANSION_TO_STR( MBEDTLS_PLATFORM_TIME_MACRO );
  2278. return( 0 );
  2279. }
  2280. #endif /* MBEDTLS_PLATFORM_TIME_MACRO */
  2281. #if defined(MBEDTLS_PLATFORM_TIME_TYPE_MACRO)
  2282. if( strcmp( "MBEDTLS_PLATFORM_TIME_TYPE_MACRO", config ) == 0 )
  2283. {
  2284. MACRO_EXPANSION_TO_STR( MBEDTLS_PLATFORM_TIME_TYPE_MACRO );
  2285. return( 0 );
  2286. }
  2287. #endif /* MBEDTLS_PLATFORM_TIME_TYPE_MACRO */
  2288. #if defined(MBEDTLS_PLATFORM_FPRINTF_MACRO)
  2289. if( strcmp( "MBEDTLS_PLATFORM_FPRINTF_MACRO", config ) == 0 )
  2290. {
  2291. MACRO_EXPANSION_TO_STR( MBEDTLS_PLATFORM_FPRINTF_MACRO );
  2292. return( 0 );
  2293. }
  2294. #endif /* MBEDTLS_PLATFORM_FPRINTF_MACRO */
  2295. #if defined(MBEDTLS_PLATFORM_PRINTF_MACRO)
  2296. if( strcmp( "MBEDTLS_PLATFORM_PRINTF_MACRO", config ) == 0 )
  2297. {
  2298. MACRO_EXPANSION_TO_STR( MBEDTLS_PLATFORM_PRINTF_MACRO );
  2299. return( 0 );
  2300. }
  2301. #endif /* MBEDTLS_PLATFORM_PRINTF_MACRO */
  2302. #if defined(MBEDTLS_PLATFORM_SNPRINTF_MACRO)
  2303. if( strcmp( "MBEDTLS_PLATFORM_SNPRINTF_MACRO", config ) == 0 )
  2304. {
  2305. MACRO_EXPANSION_TO_STR( MBEDTLS_PLATFORM_SNPRINTF_MACRO );
  2306. return( 0 );
  2307. }
  2308. #endif /* MBEDTLS_PLATFORM_SNPRINTF_MACRO */
  2309. #if defined(MBEDTLS_PLATFORM_VSNPRINTF_MACRO)
  2310. if( strcmp( "MBEDTLS_PLATFORM_VSNPRINTF_MACRO", config ) == 0 )
  2311. {
  2312. MACRO_EXPANSION_TO_STR( MBEDTLS_PLATFORM_VSNPRINTF_MACRO );
  2313. return( 0 );
  2314. }
  2315. #endif /* MBEDTLS_PLATFORM_VSNPRINTF_MACRO */
  2316. #if defined(MBEDTLS_PLATFORM_NV_SEED_READ_MACRO)
  2317. if( strcmp( "MBEDTLS_PLATFORM_NV_SEED_READ_MACRO", config ) == 0 )
  2318. {
  2319. MACRO_EXPANSION_TO_STR( MBEDTLS_PLATFORM_NV_SEED_READ_MACRO );
  2320. return( 0 );
  2321. }
  2322. #endif /* MBEDTLS_PLATFORM_NV_SEED_READ_MACRO */
  2323. #if defined(MBEDTLS_PLATFORM_NV_SEED_WRITE_MACRO)
  2324. if( strcmp( "MBEDTLS_PLATFORM_NV_SEED_WRITE_MACRO", config ) == 0 )
  2325. {
  2326. MACRO_EXPANSION_TO_STR( MBEDTLS_PLATFORM_NV_SEED_WRITE_MACRO );
  2327. return( 0 );
  2328. }
  2329. #endif /* MBEDTLS_PLATFORM_NV_SEED_WRITE_MACRO */
  2330. #if defined(MBEDTLS_CHECK_RETURN)
  2331. if( strcmp( "MBEDTLS_CHECK_RETURN", config ) == 0 )
  2332. {
  2333. MACRO_EXPANSION_TO_STR( MBEDTLS_CHECK_RETURN );
  2334. return( 0 );
  2335. }
  2336. #endif /* MBEDTLS_CHECK_RETURN */
  2337. #if defined(MBEDTLS_IGNORE_RETURN)
  2338. if( strcmp( "MBEDTLS_IGNORE_RETURN", config ) == 0 )
  2339. {
  2340. MACRO_EXPANSION_TO_STR( MBEDTLS_IGNORE_RETURN );
  2341. return( 0 );
  2342. }
  2343. #endif /* MBEDTLS_IGNORE_RETURN */
  2344. #if defined(MBEDTLS_PSA_HMAC_DRBG_MD_TYPE)
  2345. if( strcmp( "MBEDTLS_PSA_HMAC_DRBG_MD_TYPE", config ) == 0 )
  2346. {
  2347. MACRO_EXPANSION_TO_STR( MBEDTLS_PSA_HMAC_DRBG_MD_TYPE );
  2348. return( 0 );
  2349. }
  2350. #endif /* MBEDTLS_PSA_HMAC_DRBG_MD_TYPE */
  2351. #if defined(MBEDTLS_PSA_KEY_SLOT_COUNT)
  2352. if( strcmp( "MBEDTLS_PSA_KEY_SLOT_COUNT", config ) == 0 )
  2353. {
  2354. MACRO_EXPANSION_TO_STR( MBEDTLS_PSA_KEY_SLOT_COUNT );
  2355. return( 0 );
  2356. }
  2357. #endif /* MBEDTLS_PSA_KEY_SLOT_COUNT */
  2358. #if defined(MBEDTLS_SSL_CACHE_DEFAULT_TIMEOUT)
  2359. if( strcmp( "MBEDTLS_SSL_CACHE_DEFAULT_TIMEOUT", config ) == 0 )
  2360. {
  2361. MACRO_EXPANSION_TO_STR( MBEDTLS_SSL_CACHE_DEFAULT_TIMEOUT );
  2362. return( 0 );
  2363. }
  2364. #endif /* MBEDTLS_SSL_CACHE_DEFAULT_TIMEOUT */
  2365. #if defined(MBEDTLS_SSL_CACHE_DEFAULT_MAX_ENTRIES)
  2366. if( strcmp( "MBEDTLS_SSL_CACHE_DEFAULT_MAX_ENTRIES", config ) == 0 )
  2367. {
  2368. MACRO_EXPANSION_TO_STR( MBEDTLS_SSL_CACHE_DEFAULT_MAX_ENTRIES );
  2369. return( 0 );
  2370. }
  2371. #endif /* MBEDTLS_SSL_CACHE_DEFAULT_MAX_ENTRIES */
  2372. #if defined(MBEDTLS_SSL_MAX_CONTENT_LEN)
  2373. if( strcmp( "MBEDTLS_SSL_MAX_CONTENT_LEN", config ) == 0 )
  2374. {
  2375. MACRO_EXPANSION_TO_STR( MBEDTLS_SSL_MAX_CONTENT_LEN );
  2376. return( 0 );
  2377. }
  2378. #endif /* MBEDTLS_SSL_MAX_CONTENT_LEN */
  2379. #if defined(MBEDTLS_SSL_IN_CONTENT_LEN)
  2380. if( strcmp( "MBEDTLS_SSL_IN_CONTENT_LEN", config ) == 0 )
  2381. {
  2382. MACRO_EXPANSION_TO_STR( MBEDTLS_SSL_IN_CONTENT_LEN );
  2383. return( 0 );
  2384. }
  2385. #endif /* MBEDTLS_SSL_IN_CONTENT_LEN */
  2386. #if defined(MBEDTLS_SSL_CID_IN_LEN_MAX)
  2387. if( strcmp( "MBEDTLS_SSL_CID_IN_LEN_MAX", config ) == 0 )
  2388. {
  2389. MACRO_EXPANSION_TO_STR( MBEDTLS_SSL_CID_IN_LEN_MAX );
  2390. return( 0 );
  2391. }
  2392. #endif /* MBEDTLS_SSL_CID_IN_LEN_MAX */
  2393. #if defined(MBEDTLS_SSL_CID_OUT_LEN_MAX)
  2394. if( strcmp( "MBEDTLS_SSL_CID_OUT_LEN_MAX", config ) == 0 )
  2395. {
  2396. MACRO_EXPANSION_TO_STR( MBEDTLS_SSL_CID_OUT_LEN_MAX );
  2397. return( 0 );
  2398. }
  2399. #endif /* MBEDTLS_SSL_CID_OUT_LEN_MAX */
  2400. #if defined(MBEDTLS_SSL_CID_PADDING_GRANULARITY)
  2401. if( strcmp( "MBEDTLS_SSL_CID_PADDING_GRANULARITY", config ) == 0 )
  2402. {
  2403. MACRO_EXPANSION_TO_STR( MBEDTLS_SSL_CID_PADDING_GRANULARITY );
  2404. return( 0 );
  2405. }
  2406. #endif /* MBEDTLS_SSL_CID_PADDING_GRANULARITY */
  2407. #if defined(MBEDTLS_SSL_TLS1_3_PADDING_GRANULARITY)
  2408. if( strcmp( "MBEDTLS_SSL_TLS1_3_PADDING_GRANULARITY", config ) == 0 )
  2409. {
  2410. MACRO_EXPANSION_TO_STR( MBEDTLS_SSL_TLS1_3_PADDING_GRANULARITY );
  2411. return( 0 );
  2412. }
  2413. #endif /* MBEDTLS_SSL_TLS1_3_PADDING_GRANULARITY */
  2414. #if defined(MBEDTLS_SSL_OUT_CONTENT_LEN)
  2415. if( strcmp( "MBEDTLS_SSL_OUT_CONTENT_LEN", config ) == 0 )
  2416. {
  2417. MACRO_EXPANSION_TO_STR( MBEDTLS_SSL_OUT_CONTENT_LEN );
  2418. return( 0 );
  2419. }
  2420. #endif /* MBEDTLS_SSL_OUT_CONTENT_LEN */
  2421. #if defined(MBEDTLS_SSL_DTLS_MAX_BUFFERING)
  2422. if( strcmp( "MBEDTLS_SSL_DTLS_MAX_BUFFERING", config ) == 0 )
  2423. {
  2424. MACRO_EXPANSION_TO_STR( MBEDTLS_SSL_DTLS_MAX_BUFFERING );
  2425. return( 0 );
  2426. }
  2427. #endif /* MBEDTLS_SSL_DTLS_MAX_BUFFERING */
  2428. #if defined(MBEDTLS_SSL_DEFAULT_TICKET_LIFETIME)
  2429. if( strcmp( "MBEDTLS_SSL_DEFAULT_TICKET_LIFETIME", config ) == 0 )
  2430. {
  2431. MACRO_EXPANSION_TO_STR( MBEDTLS_SSL_DEFAULT_TICKET_LIFETIME );
  2432. return( 0 );
  2433. }
  2434. #endif /* MBEDTLS_SSL_DEFAULT_TICKET_LIFETIME */
  2435. #if defined(MBEDTLS_PSK_MAX_LEN)
  2436. if( strcmp( "MBEDTLS_PSK_MAX_LEN", config ) == 0 )
  2437. {
  2438. MACRO_EXPANSION_TO_STR( MBEDTLS_PSK_MAX_LEN );
  2439. return( 0 );
  2440. }
  2441. #endif /* MBEDTLS_PSK_MAX_LEN */
  2442. #if defined(MBEDTLS_SSL_COOKIE_TIMEOUT)
  2443. if( strcmp( "MBEDTLS_SSL_COOKIE_TIMEOUT", config ) == 0 )
  2444. {
  2445. MACRO_EXPANSION_TO_STR( MBEDTLS_SSL_COOKIE_TIMEOUT );
  2446. return( 0 );
  2447. }
  2448. #endif /* MBEDTLS_SSL_COOKIE_TIMEOUT */
  2449. #if defined(MBEDTLS_TLS_EXT_CID)
  2450. if( strcmp( "MBEDTLS_TLS_EXT_CID", config ) == 0 )
  2451. {
  2452. MACRO_EXPANSION_TO_STR( MBEDTLS_TLS_EXT_CID );
  2453. return( 0 );
  2454. }
  2455. #endif /* MBEDTLS_TLS_EXT_CID */
  2456. #if defined(MBEDTLS_X509_MAX_INTERMEDIATE_CA)
  2457. if( strcmp( "MBEDTLS_X509_MAX_INTERMEDIATE_CA", config ) == 0 )
  2458. {
  2459. MACRO_EXPANSION_TO_STR( MBEDTLS_X509_MAX_INTERMEDIATE_CA );
  2460. return( 0 );
  2461. }
  2462. #endif /* MBEDTLS_X509_MAX_INTERMEDIATE_CA */
  2463. #if defined(MBEDTLS_X509_MAX_FILE_PATH_LEN)
  2464. if( strcmp( "MBEDTLS_X509_MAX_FILE_PATH_LEN", config ) == 0 )
  2465. {
  2466. MACRO_EXPANSION_TO_STR( MBEDTLS_X509_MAX_FILE_PATH_LEN );
  2467. return( 0 );
  2468. }
  2469. #endif /* MBEDTLS_X509_MAX_FILE_PATH_LEN */
  2470. #if defined(MBEDTLS_TLS_DEFAULT_ALLOW_SHA1_IN_KEY_EXCHANGE)
  2471. if( strcmp( "MBEDTLS_TLS_DEFAULT_ALLOW_SHA1_IN_KEY_EXCHANGE", config ) == 0 )
  2472. {
  2473. MACRO_EXPANSION_TO_STR( MBEDTLS_TLS_DEFAULT_ALLOW_SHA1_IN_KEY_EXCHANGE );
  2474. return( 0 );
  2475. }
  2476. #endif /* MBEDTLS_TLS_DEFAULT_ALLOW_SHA1_IN_KEY_EXCHANGE */
  2477. #if defined(MBEDTLS_PLATFORM_ZEROIZE_ALT)
  2478. if( strcmp( "MBEDTLS_PLATFORM_ZEROIZE_ALT", config ) == 0 )
  2479. {
  2480. MACRO_EXPANSION_TO_STR( MBEDTLS_PLATFORM_ZEROIZE_ALT );
  2481. return( 0 );
  2482. }
  2483. #endif /* MBEDTLS_PLATFORM_ZEROIZE_ALT */
  2484. #if defined(MBEDTLS_PLATFORM_GMTIME_R_ALT)
  2485. if( strcmp( "MBEDTLS_PLATFORM_GMTIME_R_ALT", config ) == 0 )
  2486. {
  2487. MACRO_EXPANSION_TO_STR( MBEDTLS_PLATFORM_GMTIME_R_ALT );
  2488. return( 0 );
  2489. }
  2490. #endif /* MBEDTLS_PLATFORM_GMTIME_R_ALT */
  2491. #if defined(MBEDTLS_ECDH_VARIANT_EVEREST_ENABLED)
  2492. if( strcmp( "MBEDTLS_ECDH_VARIANT_EVEREST_ENABLED", config ) == 0 )
  2493. {
  2494. MACRO_EXPANSION_TO_STR( MBEDTLS_ECDH_VARIANT_EVEREST_ENABLED );
  2495. return( 0 );
  2496. }
  2497. #endif /* MBEDTLS_ECDH_VARIANT_EVEREST_ENABLED */
  2498. /* If the symbol is not found, return an error */
  2499. return( 1 );
  2500. }
  2501. #if defined(_MSC_VER)
  2502. #pragma warning(pop)
  2503. #endif /* _MSC_VER */