query_config.c 72 KB

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