build.info 42 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101
  1. # TODO: use ../apps/libapps.a instead of direct ../apps/lib source.
  2. # This can't currently be done, because some of its units drag in too many
  3. # unresolved references that don't apply here.
  4. # Most of all, ../apps/lib/apps.c needs to be divided in smaller pieces to
  5. # be useful here.
  6. #
  7. # Auxiliary program source (copied from ../apps/build.info)
  8. IF[{- $config{target} =~ /^(?:VC-|mingw|BC-)/ -}]
  9. # It's called 'init', but doesn't have much 'init' in it...
  10. $AUXLIBAPPSSRC=../apps/lib/win32_init.c
  11. ENDIF
  12. IF[{- $config{target} =~ /^vms-/ -}]
  13. $AUXLIBAPPSSRC=../apps/lib/vms_term_sock.c ../apps/lib/vms_decc_argv.c
  14. ENDIF
  15. # Program init source, that don't have direct linkage with the rest of the
  16. # source, and can therefore not be part of a library.
  17. IF[{- !$disabled{uplink} -}]
  18. $INITSRC=../ms/applink.c
  19. ENDIF
  20. $LIBAPPSSRC=../apps/lib/opt.c $AUXLIBAPPSSRC
  21. IF[{- !$disabled{tests} -}]
  22. LIBS{noinst,has_main}=libtestutil.a
  23. SOURCE[libtestutil.a]=testutil/basic_output.c testutil/output.c \
  24. testutil/driver.c testutil/tests.c testutil/cb.c testutil/stanza.c \
  25. testutil/format_output.c testutil/load.c testutil/fake_random.c \
  26. testutil/test_cleanup.c testutil/main.c testutil/testutil_init.c \
  27. testutil/options.c testutil/test_options.c testutil/provider.c \
  28. testutil/apps_shims.c testutil/random.c $LIBAPPSSRC
  29. INCLUDE[libtestutil.a]=../include ../apps/include ..
  30. DEPEND[libtestutil.a]=../libcrypto
  31. PROGRAMS{noinst}= \
  32. confdump \
  33. versions \
  34. aborttest test_test pkcs12_format_test pkcs12_api_test \
  35. sanitytest rsa_complex exdatatest bntest \
  36. ecstresstest gmdifftest pbelutest \
  37. destest mdc2test sha_test \
  38. exptest pbetest localetest evp_pkey_ctx_new_from_name \
  39. evp_pkey_provided_test evp_test evp_extra_test evp_extra_test2 \
  40. evp_fetch_prov_test evp_libctx_test ossl_store_test \
  41. v3nametest v3ext punycode_test \
  42. evp_pkey_provided_test evp_test evp_extra_test evp_extra_test2 \
  43. evp_fetch_prov_test v3nametest v3ext \
  44. crltest danetest bad_dtls_test lhash_test sparse_array_test \
  45. conf_include_test params_api_test params_conversion_test \
  46. constant_time_test safe_math_test verify_extra_test clienthellotest \
  47. packettest asynctest secmemtest srptest memleaktest stack_test \
  48. dtlsv1listentest ct_test threadstest afalgtest d2i_test \
  49. ssl_test_ctx_test ssl_test x509aux cipherlist_test asynciotest \
  50. bio_callback_test bio_memleak_test bio_core_test bio_dgram_test param_build_test \
  51. bioprinttest sslapitest dtlstest sslcorrupttest \
  52. bio_enc_test pkey_meth_test pkey_meth_kdf_test evp_kdf_test uitest \
  53. cipherbytes_test threadstest_fips threadpool_test \
  54. asn1_encode_test asn1_decode_test asn1_string_table_test \
  55. x509_time_test x509_dup_cert_test x509_check_cert_pkey_test \
  56. recordlentest drbgtest rand_status_test sslbuffertest \
  57. time_offset_test pemtest ssl_cert_table_internal_test ciphername_test \
  58. http_test servername_test ocspapitest fatalerrtest tls13ccstest \
  59. sysdefaulttest errtest ssl_ctx_test build_wincrypt_test \
  60. context_internal_test aesgcmtest params_test evp_pkey_dparams_test \
  61. keymgmt_internal_test hexstr_test provider_status_test defltfips_test \
  62. bio_readbuffer_test user_property_test pkcs7_test upcallstest \
  63. provfetchtest prov_config_test rand_test ca_internals_test \
  64. bio_tfo_test membio_test bio_dgram_test list_test fips_version_test \
  65. x509_test hpke_test
  66. IF[{- !$disabled{'deprecated-3.0'} -}]
  67. PROGRAMS{noinst}=enginetest
  68. ENDIF
  69. IF[{- !$disabled{quic} -}]
  70. PROGRAMS{noinst}=priority_queue_test event_queue_test
  71. ENDIF
  72. IF[{- !$disabled{comp} && (!$disabled{brotli} || !$disabled{zstd} || !$disabled{zlib}) -}]
  73. PROGRAMS{noinst}=cert_comp_test
  74. ENDIF
  75. SOURCE[confdump]=confdump.c
  76. INCLUDE[confdump]=../include ../apps/include
  77. DEPEND[confdump]=../libcrypto
  78. SOURCE[versions]=versions.c
  79. INCLUDE[versions]=../include ../apps/include
  80. DEPEND[versions]=../libcrypto
  81. SOURCE[aborttest]=aborttest.c
  82. INCLUDE[aborttest]=../include ../apps/include
  83. DEPEND[aborttest]=../libcrypto
  84. SOURCE[sanitytest]=sanitytest.c
  85. INCLUDE[sanitytest]=../include ../apps/include
  86. DEPEND[sanitytest]=../libcrypto libtestutil.a
  87. SOURCE[rand_test]=rand_test.c
  88. INCLUDE[rand_test]=../include ../apps/include
  89. DEPEND[rand_test]=../libcrypto libtestutil.a
  90. SOURCE[rsa_complex]=rsa_complex.c
  91. INCLUDE[rsa_complex]=../include ../apps/include
  92. SOURCE[test_test]=test_test.c
  93. INCLUDE[test_test]=../include ../apps/include
  94. DEPEND[test_test]=../libcrypto libtestutil.a
  95. SOURCE[exdatatest]=exdatatest.c
  96. INCLUDE[exdatatest]=../include ../apps/include
  97. DEPEND[exdatatest]=../libcrypto libtestutil.a
  98. SOURCE[bntest]=bntest.c
  99. INCLUDE[bntest]=../include ../apps/include
  100. DEPEND[bntest]=../libcrypto libtestutil.a
  101. SOURCE[ectest]=ectest.c
  102. INCLUDE[ectest]=../include ../apps/include
  103. DEPEND[ectest]=../libcrypto.a libtestutil.a
  104. SOURCE[ecstresstest]=ecstresstest.c
  105. INCLUDE[ecstresstest]=../include ../apps/include
  106. DEPEND[ecstresstest]=../libcrypto libtestutil.a
  107. SOURCE[gmdifftest]=gmdifftest.c
  108. INCLUDE[gmdifftest]=../include ../apps/include
  109. DEPEND[gmdifftest]=../libcrypto libtestutil.a
  110. SOURCE[pbelutest]=pbelutest.c
  111. INCLUDE[pbelutest]=../include ../apps/include
  112. DEPEND[pbelutest]=../libcrypto libtestutil.a
  113. SOURCE[mdc2test]=mdc2test.c
  114. INCLUDE[mdc2test]=../include ../apps/include
  115. DEPEND[mdc2test]=../libcrypto libtestutil.a
  116. SOURCE[sha_test]=sha_test.c
  117. INCLUDE[sha_test]=../include ../apps/include
  118. DEPEND[sha_test]=../libcrypto libtestutil.a
  119. SOURCE[enginetest]=enginetest.c
  120. INCLUDE[enginetest]=../include ../apps/include
  121. DEPEND[enginetest]=../libcrypto libtestutil.a
  122. SOURCE[exptest]=exptest.c
  123. INCLUDE[exptest]=../include ../apps/include
  124. DEPEND[exptest]=../libcrypto libtestutil.a
  125. SOURCE[localetest]=localetest.c
  126. INCLUDE[localetest]=../include ../apps/include
  127. DEPEND[localetest]=../libcrypto libtestutil.a
  128. SOURCE[evp_pkey_ctx_new_from_name]=evp_pkey_ctx_new_from_name.c
  129. INCLUDE[evp_pkey_ctx_new_from_name]=../include ../apps/include
  130. DEPEND[evp_pkey_ctx_new_from_name]=../libcrypto
  131. SOURCE[pbetest]=pbetest.c
  132. INCLUDE[pbetest]=../include ../apps/include
  133. DEPEND[pbetest]=../libcrypto libtestutil.a
  134. SOURCE[fatalerrtest]=fatalerrtest.c helpers/ssltestlib.c
  135. INCLUDE[fatalerrtest]=../include ../apps/include
  136. DEPEND[fatalerrtest]=../libcrypto ../libssl libtestutil.a
  137. SOURCE[tls13ccstest]=tls13ccstest.c helpers/ssltestlib.c
  138. INCLUDE[tls13ccstest]=../include ../apps/include
  139. DEPEND[tls13ccstest]=../libcrypto ../libssl libtestutil.a
  140. SOURCE[upcallstest]=upcallstest.c
  141. INCLUDE[upcallstest]=../include ../apps/include
  142. DEPEND[upcallstest]=../libcrypto libtestutil.a
  143. SOURCE[user_property_test]=user_property_test.c
  144. INCLUDE[user_property_test]=../include ../apps/include
  145. DEPEND[user_property_test]=../libcrypto libtestutil.a
  146. SOURCE[evp_test]=evp_test.c
  147. INCLUDE[evp_test]=../include ../apps/include
  148. DEPEND[evp_test]=../libcrypto libtestutil.a
  149. IF[{- $disabled{legacy} || !$target{dso_scheme} -}]
  150. DEFINE[evp_test]=NO_LEGACY_MODULE
  151. ENDIF
  152. SOURCE[evp_extra_test]=evp_extra_test.c
  153. INCLUDE[evp_extra_test]=../include ../apps/include
  154. DEPEND[evp_extra_test]=../libcrypto.a libtestutil.a
  155. SOURCE[hpke_test]=hpke_test.c
  156. INCLUDE[hpke_test]=../include ../apps/include
  157. DEPEND[hpke_test]=../libcrypto.a libtestutil.a
  158. SOURCE[evp_extra_test2]=evp_extra_test2.c $INITSRC
  159. INCLUDE[evp_extra_test2]=../include ../apps/include
  160. DEPEND[evp_extra_test2]=../libcrypto libtestutil.a
  161. SOURCE[evp_libctx_test]=evp_libctx_test.c
  162. INCLUDE[evp_libctx_test]=../include ../apps/include
  163. DEPEND[evp_libctx_test]=../libcrypto.a libtestutil.a
  164. SOURCE[evp_fetch_prov_test]=evp_fetch_prov_test.c
  165. INCLUDE[evp_fetch_prov_test]=../include ../apps/include
  166. DEPEND[evp_fetch_prov_test]=../libcrypto libtestutil.a
  167. SOURCE[provfetchtest]=provfetchtest.c
  168. INCLUDE[provfetchtest]=../include ../apps/include
  169. DEPEND[provfetchtest]=../libcrypto.a libtestutil.a
  170. SOURCE[prov_config_test]=prov_config_test.c
  171. INCLUDE[prov_config_test]=../include ../apps/include
  172. DEPEND[prov_config_test]=../libcrypto.a libtestutil.a
  173. SOURCE[evp_pkey_provided_test]=evp_pkey_provided_test.c
  174. INCLUDE[evp_pkey_provided_test]=../include ../apps/include
  175. DEPEND[evp_pkey_provided_test]=../libcrypto.a libtestutil.a
  176. IF[{- !$disabled{'acvp-tests'} -}]
  177. PROGRAMS{noinst}=acvp_test
  178. SOURCE[acvp_test]=acvp_test.c
  179. INCLUDE[acvp_test]=../include ../apps/include
  180. DEPEND[acvp_test]=../libcrypto.a libtestutil.a
  181. ENDIF
  182. SOURCE[ossl_store_test]=ossl_store_test.c
  183. INCLUDE[ossl_store_test]=../include ../apps/include
  184. DEPEND[ossl_store_test]=../libcrypto.a libtestutil.a
  185. SOURCE[provider_status_test]=provider_status_test.c
  186. INCLUDE[provider_status_test]=../include ../apps/include
  187. DEPEND[provider_status_test]=../libcrypto.a libtestutil.a
  188. SOURCE[evp_pkey_dhkem_test]=evp_pkey_dhkem_test.c
  189. INCLUDE[evp_pkey_dhkem_test]=../include ../apps/include
  190. DEPEND[evp_pkey_dhkem_test]=../libcrypto.a libtestutil.a
  191. IF[{- !$disabled{'deprecated-3.0'} -}]
  192. PROGRAMS{noinst}=igetest bftest casttest
  193. SOURCE[igetest]=igetest.c
  194. INCLUDE[igetest]=../include ../apps/include
  195. DEPEND[igetest]=../libcrypto libtestutil.a
  196. SOURCE[bftest]=bftest.c
  197. INCLUDE[bftest]=../include ../apps/include
  198. DEPEND[bftest]=../libcrypto libtestutil.a
  199. SOURCE[casttest]=casttest.c
  200. INCLUDE[casttest]=../include ../apps/include
  201. DEPEND[casttest]=../libcrypto libtestutil.a
  202. ENDIF
  203. SOURCE[v3nametest]=v3nametest.c
  204. INCLUDE[v3nametest]=../include ../apps/include
  205. DEPEND[v3nametest]=../libcrypto libtestutil.a
  206. SOURCE[crltest]=crltest.c
  207. INCLUDE[crltest]=../include ../apps/include
  208. DEPEND[crltest]=../libcrypto libtestutil.a
  209. SOURCE[v3ext]=v3ext.c
  210. INCLUDE[v3ext]=../include ../apps/include
  211. DEPEND[v3ext]=../libcrypto libtestutil.a
  212. SOURCE[danetest]=danetest.c
  213. INCLUDE[danetest]=../include ../apps/include
  214. DEPEND[danetest]=../libcrypto ../libssl libtestutil.a
  215. SOURCE[constant_time_test]=constant_time_test.c
  216. INCLUDE[constant_time_test]=../include ../apps/include
  217. DEPEND[constant_time_test]=../libcrypto libtestutil.a
  218. SOURCE[safe_math_test]=safe_math_test.c
  219. INCLUDE[safe_math_test]=../include ../apps/include
  220. DEPEND[safe_math_test]=../libcrypto libtestutil.a
  221. SOURCE[verify_extra_test]=verify_extra_test.c
  222. INCLUDE[verify_extra_test]=../include ../apps/include
  223. DEPEND[verify_extra_test]=../libcrypto libtestutil.a
  224. SOURCE[clienthellotest]=clienthellotest.c
  225. INCLUDE[clienthellotest]=../include ../apps/include
  226. DEPEND[clienthellotest]=../libcrypto ../libssl libtestutil.a
  227. SOURCE[bad_dtls_test]=bad_dtls_test.c
  228. INCLUDE[bad_dtls_test]=../include ../apps/include
  229. DEPEND[bad_dtls_test]=../libcrypto ../libssl libtestutil.a
  230. SOURCE[packettest]=packettest.c ../crypto/quic_vlint.c
  231. INCLUDE[packettest]=../include ../apps/include
  232. DEPEND[packettest]=../libcrypto libtestutil.a
  233. SOURCE[quic_wire_test]=quic_wire_test.c
  234. INCLUDE[quic_wire_test]=../include ../apps/include
  235. DEPEND[quic_wire_test]=../libcrypto.a ../libssl.a libtestutil.a
  236. SOURCE[quic_record_test]=quic_record_test.c
  237. INCLUDE[quic_record_test]=../include ../apps/include
  238. DEPEND[quic_record_test]=../libcrypto.a ../libssl.a libtestutil.a
  239. SOURCE[quic_fc_test]=quic_fc_test.c
  240. INCLUDE[quic_fc_test]=../include ../apps/include
  241. DEPEND[quic_fc_test]=../libcrypto.a ../libssl.a libtestutil.a
  242. SOURCE[quic_stream_test]=quic_stream_test.c
  243. INCLUDE[quic_stream_test]=../include ../apps/include
  244. DEPEND[quic_stream_test]=../libcrypto.a ../libssl.a libtestutil.a
  245. SOURCE[quic_cfq_test]=quic_cfq_test.c
  246. INCLUDE[quic_cfq_test]=../include ../apps/include
  247. DEPEND[quic_cfq_test]=../libcrypto.a ../libssl.a libtestutil.a
  248. SOURCE[quic_txpim_test]=quic_txpim_test.c
  249. INCLUDE[quic_txpim_test]=../include ../apps/include
  250. DEPEND[quic_txpim_test]=../libcrypto.a ../libssl.a libtestutil.a
  251. SOURCE[quic_fifd_test]=quic_fifd_test.c
  252. INCLUDE[quic_fifd_test]=../include ../apps/include
  253. DEPEND[quic_fifd_test]=../libcrypto.a ../libssl.a libtestutil.a
  254. SOURCE[quic_txp_test]=quic_txp_test.c
  255. INCLUDE[quic_txp_test]=../include ../apps/include
  256. DEPEND[quic_txp_test]=../libcrypto.a ../libssl.a libtestutil.a
  257. SOURCE[asynctest]=asynctest.c
  258. INCLUDE[asynctest]=../include ../apps/include
  259. DEPEND[asynctest]=../libcrypto
  260. SOURCE[secmemtest]=secmemtest.c
  261. INCLUDE[secmemtest]=../include ../apps/include
  262. DEPEND[secmemtest]=../libcrypto libtestutil.a
  263. SOURCE[srptest]=srptest.c
  264. INCLUDE[srptest]=../include ../apps/include
  265. DEPEND[srptest]=../libcrypto libtestutil.a
  266. SOURCE[memleaktest]=memleaktest.c
  267. INCLUDE[memleaktest]=../include ../apps/include
  268. DEPEND[memleaktest]=../libcrypto libtestutil.a
  269. SOURCE[pkcs12_format_test]=pkcs12_format_test.c helpers/pkcs12.c
  270. INCLUDE[pkcs12_format_test]=../include ../apps/include
  271. DEPEND[pkcs12_format_test]=../libcrypto libtestutil.a
  272. SOURCE[pkcs12_api_test]=pkcs12_api_test.c helpers/pkcs12.c
  273. INCLUDE[pkcs12_api_test]=../include ../apps/include
  274. DEPEND[pkcs12_api_test]=../libcrypto libtestutil.a
  275. SOURCE[pkcs7_test]=pkcs7_test.c
  276. INCLUDE[pkcs7_test]=../include ../apps/include
  277. DEPEND[pkcs7_test]=../libcrypto libtestutil.a
  278. SOURCE[punycode_test]=punycode_test.c
  279. INCLUDE[punycode_test]=../include ../apps/include
  280. DEPEND[punycode_test]=../libcrypto.a libtestutil.a
  281. SOURCE[stack_test]=stack_test.c
  282. INCLUDE[stack_test]=../include ../apps/include
  283. DEPEND[stack_test]=../libcrypto libtestutil.a
  284. SOURCE[lhash_test]=lhash_test.c
  285. INCLUDE[lhash_test]=../include ../apps/include
  286. DEPEND[lhash_test]=../libcrypto libtestutil.a
  287. SOURCE[dtlsv1listentest]=dtlsv1listentest.c
  288. INCLUDE[dtlsv1listentest]=../include ../apps/include
  289. DEPEND[dtlsv1listentest]=../libssl libtestutil.a
  290. SOURCE[ct_test]=ct_test.c
  291. INCLUDE[ct_test]=../include ../apps/include
  292. DEPEND[ct_test]=../libcrypto libtestutil.a
  293. SOURCE[threadpool_test]=threadpool_test.c
  294. INCLUDE[threadpool_test]=.. ../include ../apps/include
  295. DEPEND[threadpool_test]=../libcrypto.a libtestutil.a
  296. SOURCE[threadstest]=threadstest.c
  297. INCLUDE[threadstest]=.. ../include ../apps/include
  298. DEPEND[threadstest]=../libcrypto.a libtestutil.a
  299. SOURCE[threadstest_fips]=threadstest_fips.c
  300. INCLUDE[threadstest_fips]=../include ../apps/include
  301. DEPEND[threadstest_fips]=../libcrypto libtestutil.a
  302. SOURCE[afalgtest]=afalgtest.c
  303. INCLUDE[afalgtest]=../include ../apps/include
  304. DEPEND[afalgtest]=../libcrypto libtestutil.a
  305. SOURCE[d2i_test]=d2i_test.c
  306. INCLUDE[d2i_test]=../include ../apps/include
  307. DEPEND[d2i_test]=../libcrypto libtestutil.a
  308. SOURCE[ssl_test_ctx_test]=ssl_test_ctx_test.c helpers/ssl_test_ctx.c
  309. INCLUDE[ssl_test_ctx_test]=../include ../apps/include
  310. DEPEND[ssl_test_ctx_test]=../libcrypto ../libssl libtestutil.a
  311. SOURCE[ssl_test]=ssl_test.c helpers/ssl_test_ctx.c helpers/handshake.c
  312. IF[{- !$disabled{'srp'} -}]
  313. SOURCE[ssl_test]=helpers/handshake_srp.c
  314. ENDIF
  315. INCLUDE[ssl_test]=../include ../apps/include
  316. DEPEND[ssl_test]=../libcrypto ../libssl libtestutil.a
  317. SOURCE[cipherlist_test]=cipherlist_test.c
  318. INCLUDE[cipherlist_test]=../include ../apps/include
  319. DEPEND[cipherlist_test]=../libcrypto ../libssl libtestutil.a
  320. INCLUDE[helpers/ssl_test_ctx.o]=../include
  321. INCLUDE[helpers/handshake.o]=.. ../include
  322. INCLUDE[helpers/pkcs12.o]=.. ../include
  323. INCLUDE[helpers/ssltestlib.o]=.. ../include
  324. INCLUDE[helpers/cmp_testlib.o]=.. ../include ../apps/include
  325. SOURCE[x509aux]=x509aux.c
  326. INCLUDE[x509aux]=../include ../apps/include
  327. DEPEND[x509aux]=../libcrypto libtestutil.a
  328. SOURCE[asynciotest]=asynciotest.c helpers/ssltestlib.c
  329. INCLUDE[asynciotest]=../include ../apps/include
  330. DEPEND[asynciotest]=../libcrypto ../libssl libtestutil.a
  331. SOURCE[bio_callback_test]=bio_callback_test.c
  332. INCLUDE[bio_callback_test]=../include ../apps/include
  333. DEPEND[bio_callback_test]=../libcrypto libtestutil.a
  334. SOURCE[bio_readbuffer_test]=bio_readbuffer_test.c
  335. INCLUDE[bio_readbuffer_test]=../include ../apps/include
  336. DEPEND[bio_readbuffer_test]=../libcrypto libtestutil.a
  337. SOURCE[bio_memleak_test]=bio_memleak_test.c
  338. INCLUDE[bio_memleak_test]=../include ../apps/include
  339. DEPEND[bio_memleak_test]=../libcrypto libtestutil.a
  340. SOURCE[bioprinttest]=bioprinttest.c
  341. INCLUDE[bioprinttest]=../include ../apps/include
  342. DEPEND[bioprinttest]=../libcrypto libtestutil.a
  343. SOURCE[bio_core_test]=bio_core_test.c
  344. INCLUDE[bio_core_test]=../include ../apps/include
  345. DEPEND[bio_core_test]=../libcrypto libtestutil.a
  346. SOURCE[bio_dgram_test]=bio_dgram_test.c
  347. INCLUDE[bio_dgram_test]=../include ../apps/include
  348. DEPEND[bio_dgram_test]=../libcrypto libtestutil.a
  349. SOURCE[bio_tfo_test]=bio_tfo_test.c
  350. INCLUDE[bio_tfo_test]=../include ../apps/include ..
  351. DEPEND[bio_tfo_test]=../libcrypto libtestutil.a
  352. SOURCE[membio_test]=membio_test.c
  353. INCLUDE[membio_test]=../include ../apps/include ..
  354. DEPEND[membio_test]=../libcrypto libtestutil.a
  355. SOURCE[bio_dgram_test]=bio_dgram_test.c
  356. INCLUDE[bio_dgram_test]=../include ../apps/include ..
  357. DEPEND[bio_dgram_test]=../libcrypto libtestutil.a
  358. SOURCE[params_api_test]=params_api_test.c
  359. INCLUDE[params_api_test]=../include ../apps/include
  360. DEPEND[params_api_test]=../libcrypto libtestutil.a
  361. SOURCE[params_conversion_test]=params_conversion_test.c
  362. INCLUDE[params_conversion_test]=../include ../apps/include
  363. DEPEND[params_conversion_test]=../libcrypto libtestutil.a
  364. SOURCE[param_build_test]=param_build_test.c
  365. INCLUDE[param_build_test]=../include ../apps/include
  366. DEPEND[param_build_test]=../libcrypto.a libtestutil.a
  367. SOURCE[sslapitest]=sslapitest.c helpers/ssltestlib.c filterprov.c tls-provider.c
  368. INCLUDE[sslapitest]=../include ../apps/include ..
  369. DEPEND[sslapitest]=../libcrypto ../libssl libtestutil.a
  370. SOURCE[defltfips_test]=defltfips_test.c
  371. INCLUDE[defltfips_test]=../include ../apps/include
  372. DEPEND[defltfips_test]=../libcrypto libtestutil.a
  373. SOURCE[fips_version_test]=fips_version_test.c
  374. INCLUDE[fips_version_test]=../include ../apps/include
  375. DEPEND[fips_version_test]=../libcrypto libtestutil.a
  376. SOURCE[ocspapitest]=ocspapitest.c
  377. INCLUDE[ocspapitest]=../include ../apps/include
  378. DEPEND[ocspapitest]=../libcrypto libtestutil.a
  379. IF[{- !$disabled{sock} -}]
  380. PROGRAMS{noinst}=http_test
  381. ENDIF
  382. SOURCE[http_test]=http_test.c
  383. INCLUDE[http_test]=../include ../apps/include
  384. DEPEND[http_test]=../libcrypto libtestutil.a
  385. SOURCE[dtlstest]=dtlstest.c helpers/ssltestlib.c
  386. INCLUDE[dtlstest]=../include ../apps/include
  387. DEPEND[dtlstest]=../libcrypto ../libssl libtestutil.a
  388. SOURCE[sslcorrupttest]=sslcorrupttest.c helpers/ssltestlib.c
  389. INCLUDE[sslcorrupttest]=../include ../apps/include
  390. DEPEND[sslcorrupttest]=../libcrypto ../libssl libtestutil.a
  391. SOURCE[bio_enc_test]=bio_enc_test.c
  392. INCLUDE[bio_enc_test]=../include ../apps/include
  393. DEPEND[bio_enc_test]=../libcrypto libtestutil.a
  394. SOURCE[pkey_meth_test]=pkey_meth_test.c
  395. INCLUDE[pkey_meth_test]=../include ../apps/include
  396. DEPEND[pkey_meth_test]=../libcrypto libtestutil.a
  397. SOURCE[pkey_meth_kdf_test]=pkey_meth_kdf_test.c
  398. INCLUDE[pkey_meth_kdf_test]=../include ../apps/include
  399. DEPEND[pkey_meth_kdf_test]=../libcrypto libtestutil.a
  400. SOURCE[evp_kdf_test]=evp_kdf_test.c
  401. INCLUDE[evp_kdf_test]=../include ../apps/include
  402. DEPEND[evp_kdf_test]=../libcrypto libtestutil.a
  403. SOURCE[evp_pkey_dparams_test]=evp_pkey_dparams_test.c
  404. INCLUDE[evp_pkey_dparams_test]=../include ../apps/include
  405. DEPEND[evp_pkey_dparams_test]=../libcrypto libtestutil.a
  406. SOURCE[x509_time_test]=x509_time_test.c
  407. INCLUDE[x509_time_test]=../include ../apps/include
  408. DEPEND[x509_time_test]=../libcrypto libtestutil.a
  409. SOURCE[x509_test]=x509_test.c
  410. INCLUDE[x509_test]=../include ../apps/include
  411. DEPEND[x509_test]=../libcrypto libtestutil.a
  412. SOURCE[recordlentest]=recordlentest.c helpers/ssltestlib.c
  413. INCLUDE[recordlentest]=../include ../apps/include
  414. DEPEND[recordlentest]=../libcrypto ../libssl libtestutil.a
  415. SOURCE[drbgtest]=drbgtest.c
  416. INCLUDE[drbgtest]=../include ../apps/include ../providers/common/include
  417. DEPEND[drbgtest]=../libcrypto.a libtestutil.a
  418. SOURCE[rand_status_test]=rand_status_test.c
  419. INCLUDE[rand_status_test]=../include ../apps/include
  420. DEPEND[rand_status_test]=../libcrypto libtestutil.a
  421. SOURCE[x509_dup_cert_test]=x509_dup_cert_test.c
  422. INCLUDE[x509_dup_cert_test]=../include ../apps/include
  423. DEPEND[x509_dup_cert_test]=../libcrypto libtestutil.a
  424. SOURCE[x509_check_cert_pkey_test]=x509_check_cert_pkey_test.c
  425. INCLUDE[x509_check_cert_pkey_test]=../include ../apps/include
  426. DEPEND[x509_check_cert_pkey_test]=../libcrypto libtestutil.a
  427. SOURCE[pemtest]=pemtest.c
  428. INCLUDE[pemtest]=../include ../apps/include
  429. DEPEND[pemtest]=../libcrypto libtestutil.a
  430. SOURCE[ssl_cert_table_internal_test]=ssl_cert_table_internal_test.c
  431. INCLUDE[ssl_cert_table_internal_test]=.. ../include ../apps/include
  432. DEPEND[ssl_cert_table_internal_test]=../libcrypto libtestutil.a
  433. SOURCE[ciphername_test]=ciphername_test.c
  434. INCLUDE[ciphername_test]=../include ../apps/include
  435. DEPEND[ciphername_test]=../libcrypto ../libssl libtestutil.a
  436. SOURCE[http_test]=http_test.c
  437. INCLUDE[http_test]=../include ../apps/include
  438. DEPEND[http_test]=../libcrypto libtestutil.a
  439. SOURCE[servername_test]=servername_test.c helpers/ssltestlib.c
  440. INCLUDE[servername_test]=../include ../apps/include
  441. DEPEND[servername_test]=../libcrypto ../libssl libtestutil.a
  442. IF[{- !$disabled{cms} -}]
  443. PROGRAMS{noinst}=cmsapitest
  444. SOURCE[cmsapitest]=cmsapitest.c
  445. INCLUDE[cmsapitest]=../include ../apps/include
  446. DEPEND[cmsapitest]=../libcrypto libtestutil.a
  447. ENDIF
  448. IF[{- !$disabled{psk} -}]
  449. PROGRAMS{noinst}=dtls_mtu_test
  450. SOURCE[dtls_mtu_test]=dtls_mtu_test.c helpers/ssltestlib.c
  451. INCLUDE[dtls_mtu_test]=.. ../include ../apps/include
  452. DEPEND[dtls_mtu_test]=../libcrypto ../libssl libtestutil.a
  453. ENDIF
  454. IF[{- !$disabled{shared} -}]
  455. PROGRAMS{noinst}=shlibloadtest
  456. SOURCE[shlibloadtest]=shlibloadtest.c simpledynamic.c
  457. INCLUDE[shlibloadtest]=../include ../apps/include
  458. PROGRAMS{noinst}=moduleloadtest
  459. SOURCE[moduleloadtest]=moduleloadtest.c simpledynamic.c
  460. INCLUDE[moduleloadtest]=../include ../apps/include
  461. ENDIF
  462. # cipher_overhead_test uses internal symbols, so it must be linked with
  463. # the static libraries
  464. PROGRAMS{noinst}=cipher_overhead_test
  465. SOURCE[cipher_overhead_test]=cipher_overhead_test.c
  466. INCLUDE[cipher_overhead_test]=.. ../include ../apps/include
  467. DEPEND[cipher_overhead_test]=../libcrypto.a ../libssl.a libtestutil.a
  468. SOURCE[uitest]=uitest.c ../apps/lib/apps_ui.c
  469. INCLUDE[uitest]=.. ../include ../apps/include
  470. DEPEND[uitest]=../libcrypto ../libssl libtestutil.a
  471. SOURCE[cipherbytes_test]=cipherbytes_test.c
  472. INCLUDE[cipherbytes_test]=../include ../apps/include
  473. DEPEND[cipherbytes_test]=../libcrypto ../libssl libtestutil.a
  474. SOURCE[asn1_encode_test]=asn1_encode_test.c
  475. INCLUDE[asn1_encode_test]=../include ../apps/include
  476. DEPEND[asn1_encode_test]=../libcrypto libtestutil.a
  477. SOURCE[asn1_decode_test]=asn1_decode_test.c
  478. INCLUDE[asn1_decode_test]=../include ../apps/include
  479. DEPEND[asn1_decode_test]=../libcrypto libtestutil.a
  480. SOURCE[asn1_string_table_test]=asn1_string_table_test.c
  481. INCLUDE[asn1_string_table_test]=../include ../apps/include
  482. DEPEND[asn1_string_table_test]=../libcrypto libtestutil.a
  483. SOURCE[time_offset_test]=time_offset_test.c
  484. INCLUDE[time_offset_test]=../include ../apps/include
  485. DEPEND[time_offset_test]=../libcrypto libtestutil.a
  486. SOURCE[conf_include_test]=conf_include_test.c
  487. INCLUDE[conf_include_test]=../include ../apps/include
  488. DEPEND[conf_include_test]=../libcrypto libtestutil.a
  489. IF[{- !$disabled{cmp} -}]
  490. PROGRAMS{noinst}=cmp_asn_test cmp_ctx_test cmp_status_test cmp_hdr_test \
  491. cmp_protect_test cmp_msg_test cmp_vfy_test \
  492. cmp_server_test cmp_client_test
  493. ENDIF
  494. SOURCE[cmp_asn_test]=cmp_asn_test.c helpers/cmp_testlib.c
  495. INCLUDE[cmp_asn_test]=.. ../include ../apps/include
  496. DEPEND[cmp_asn_test]=../libcrypto.a libtestutil.a
  497. SOURCE[cmp_ctx_test]=cmp_ctx_test.c helpers/cmp_testlib.c
  498. INCLUDE[cmp_ctx_test]=.. ../include ../apps/include
  499. DEPEND[cmp_ctx_test]=../libcrypto.a libtestutil.a
  500. SOURCE[cmp_hdr_test]=cmp_hdr_test.c helpers/cmp_testlib.c
  501. INCLUDE[cmp_hdr_test]=.. ../include ../apps/include
  502. DEPEND[cmp_hdr_test]=../libcrypto.a libtestutil.a
  503. SOURCE[cmp_status_test]=cmp_status_test.c helpers/cmp_testlib.c
  504. INCLUDE[cmp_status_test]=.. ../include ../apps/include
  505. DEPEND[cmp_status_test]=../libcrypto.a libtestutil.a
  506. SOURCE[cmp_protect_test]=cmp_protect_test.c helpers/cmp_testlib.c
  507. INCLUDE[cmp_protect_test]=.. ../include ../apps/include
  508. DEPEND[cmp_protect_test]=../libcrypto.a libtestutil.a
  509. SOURCE[cmp_msg_test]=cmp_msg_test.c helpers/cmp_testlib.c
  510. INCLUDE[cmp_msg_test]=.. ../include ../apps/include
  511. DEPEND[cmp_msg_test]=../libcrypto.a libtestutil.a
  512. SOURCE[cmp_vfy_test]=cmp_vfy_test.c helpers/cmp_testlib.c
  513. INCLUDE[cmp_vfy_test]=.. ../include ../apps/include
  514. DEPEND[cmp_vfy_test]=../libcrypto.a libtestutil.a
  515. SOURCE[cmp_server_test]=cmp_server_test.c helpers/cmp_testlib.c
  516. INCLUDE[cmp_server_test]=.. ../include ../apps/include
  517. DEPEND[cmp_server_test]=../libcrypto.a libtestutil.a
  518. SOURCE[cmp_client_test]=cmp_client_test.c helpers/cmp_testlib.c ../apps/lib/cmp_mock_srv.c
  519. INCLUDE[cmp_client_test]=.. ../include ../apps/include
  520. DEPEND[cmp_client_test]=../libcrypto.a libtestutil.a
  521. SOURCE[ca_internals_test]=ca_internals_test.c ../apps/ca.c ../apps/lib/apps.c \
  522. ../apps/lib/app_rand.c ../apps/lib/engine.c ../apps/lib/app_provider.c \
  523. ../apps/lib/app_libctx.c ../apps/lib/fmt.c ../apps/lib/apps_ui.c \
  524. ../apps/lib/app_x509.c ../crypto/asn1/a_time.c ../crypto/ctype.c
  525. INCLUDE[ca_internals_test]=.. ../include ../apps/include
  526. DEPEND[ca_internals_test]=libtestutil.a ../libssl
  527. # Internal test programs. These are essentially a collection of internal
  528. # test routines. Some of them need to reach internal symbols that aren't
  529. # available through the shared library (at least on Linux, Solaris, Windows
  530. # and VMS, where the exported symbols are those listed in util/*.num), these
  531. # programs are forcibly linked with the static libraries, where all symbols
  532. # are always available.
  533. IF[1]
  534. PROGRAMS{noinst}=asn1_internal_test modes_internal_test x509_internal_test \
  535. tls13encryptiontest wpackettest ctype_internal_test \
  536. rdcpu_sanitytest property_test ideatest rsa_mp_test \
  537. rsa_sp800_56b_test bn_internal_test ecdsatest rsa_test \
  538. rc2test rc4test rc5test hmactest ffc_internal_test \
  539. asn1_dsa_internal_test dsatest dsa_no_digest_size_test \
  540. dhtest ssl_old_test
  541. IF[{- !$disabled{poly1305} -}]
  542. PROGRAMS{noinst}=poly1305_internal_test
  543. ENDIF
  544. IF[{- !$disabled{chacha} -}]
  545. PROGRAMS{noinst}=chacha_internal_test
  546. ENDIF
  547. IF[{- !$disabled{siphash} -}]
  548. PROGRAMS{noinst}=siphash_internal_test
  549. ENDIF
  550. IF[{- !$disabled{sm2} -}]
  551. PROGRAMS{noinst}=sm2_internal_test
  552. ENDIF
  553. IF[{- !$disabled{sm3} -}]
  554. PROGRAMS{noinst}=sm3_internal_test
  555. ENDIF
  556. IF[{- !$disabled{sm4} -}]
  557. PROGRAMS{noinst}=sm4_internal_test
  558. ENDIF
  559. IF[{- !$disabled{ec} -}]
  560. PROGRAMS{noinst}=ectest ec_internal_test curve448_internal_test \
  561. evp_pkey_dhkem_test
  562. ENDIF
  563. IF[{- !$disabled{cmac} -}]
  564. PROGRAMS{noinst}=cmactest
  565. ENDIF
  566. SOURCE[poly1305_internal_test]=poly1305_internal_test.c
  567. INCLUDE[poly1305_internal_test]=.. ../include ../apps/include
  568. DEPEND[poly1305_internal_test]=../libcrypto.a libtestutil.a
  569. SOURCE[chacha_internal_test]=chacha_internal_test.c
  570. INCLUDE[chacha_internal_test]=.. ../include ../apps/include
  571. DEPEND[chacha_internal_test]=../libcrypto.a libtestutil.a
  572. SOURCE[asn1_internal_test]=asn1_internal_test.c
  573. INCLUDE[asn1_internal_test]=.. ../include ../apps/include
  574. DEPEND[asn1_internal_test]=../libcrypto.a libtestutil.a
  575. SOURCE[modes_internal_test]=modes_internal_test.c
  576. INCLUDE[modes_internal_test]=.. ../include ../apps/include
  577. DEPEND[modes_internal_test]=../libcrypto.a libtestutil.a
  578. SOURCE[x509_internal_test]=x509_internal_test.c
  579. INCLUDE[x509_internal_test]=.. ../include ../apps/include
  580. DEPEND[x509_internal_test]=../libcrypto.a libtestutil.a
  581. SOURCE[rsa_test]=rsa_test.c
  582. INCLUDE[rsa_test]=../include ../apps/include
  583. DEPEND[rsa_test]=../libcrypto.a libtestutil.a
  584. SOURCE[rsa_mp_test]=rsa_mp_test.c
  585. INCLUDE[rsa_mp_test]=../include ../apps/include
  586. DEPEND[rsa_mp_test]=../libcrypto.a libtestutil.a
  587. SOURCE[ecdsatest]=ecdsatest.c
  588. INCLUDE[ecdsatest]=../include ../apps/include
  589. DEPEND[ecdsatest]=../libcrypto.a libtestutil.a
  590. SOURCE[dsatest]=dsatest.c
  591. INCLUDE[dsatest]=../include ../apps/include
  592. DEPEND[dsatest]=../libcrypto.a libtestutil.a
  593. SOURCE[dsa_no_digest_size_test]=dsa_no_digest_size_test.c
  594. INCLUDE[dsa_no_digest_size_test]=../include ../apps/include
  595. DEPEND[dsa_no_digest_size_test]=../libcrypto.a libtestutil.a
  596. SOURCE[tls13encryptiontest]=tls13encryptiontest.c
  597. INCLUDE[tls13encryptiontest]=.. ../include ../apps/include
  598. DEPEND[tls13encryptiontest]=../libcrypto.a ../libssl.a libtestutil.a
  599. SOURCE[ideatest]=ideatest.c
  600. INCLUDE[ideatest]=../include ../apps/include
  601. DEPEND[ideatest]=../libcrypto.a libtestutil.a
  602. SOURCE[wpackettest]=wpackettest.c
  603. INCLUDE[wpackettest]=../include ../apps/include
  604. DEPEND[wpackettest]=../libcrypto.a ../libssl.a libtestutil.a
  605. SOURCE[property_test]=property_test.c
  606. INCLUDE[property_test]=.. ../include ../apps/include
  607. DEPEND[property_test]=../libcrypto.a libtestutil.a
  608. SOURCE[ctype_internal_test]=ctype_internal_test.c
  609. INCLUDE[ctype_internal_test]=.. ../include ../apps/include
  610. DEPEND[ctype_internal_test]=../libcrypto.a libtestutil.a
  611. SOURCE[sparse_array_test]=sparse_array_test.c
  612. INCLUDE[sparse_array_test]=../include ../apps/include
  613. DEPEND[sparse_array_test]=../libcrypto.a libtestutil.a
  614. IF[{- !$disabled{quic} -}]
  615. SOURCE[priority_queue_test]=priority_queue_test.c
  616. INCLUDE[priority_queue_test]=../include ../apps/include
  617. DEPEND[priority_queue_test]=../libcrypto ../libssl.a libtestutil.a
  618. SOURCE[event_queue_test]=event_queue_test.c
  619. INCLUDE[event_queue_test]=../include ../apps/include
  620. DEPEND[event_queue_test]=../libcrypto ../libssl.a libtestutil.a
  621. ENDIF
  622. SOURCE[dhtest]=dhtest.c
  623. INCLUDE[dhtest]=../include ../apps/include
  624. DEPEND[dhtest]=../libcrypto.a libtestutil.a
  625. SOURCE[list_test]=list_test.c
  626. INCLUDE[list_test]=../include ../apps/include
  627. DEPEND[list_test]=libtestutil.a
  628. SOURCE[hmactest]=hmactest.c
  629. INCLUDE[hmactest]=../include ../apps/include
  630. DEPEND[hmactest]=../libcrypto.a libtestutil.a
  631. IF[{- !$disabled{cmac} -}]
  632. SOURCE[cmactest]=cmactest.c
  633. INCLUDE[cmactest]=../include ../apps/include
  634. DEPEND[cmactest]=../libcrypto.a libtestutil.a
  635. ENDIF
  636. SOURCE[siphash_internal_test]=siphash_internal_test.c
  637. INCLUDE[siphash_internal_test]=.. ../include ../apps/include
  638. DEPEND[siphash_internal_test]=../libcrypto.a libtestutil.a
  639. SOURCE[sm2_internal_test]=sm2_internal_test.c
  640. INCLUDE[sm2_internal_test]=../include ../apps/include
  641. DEPEND[sm2_internal_test]=../libcrypto.a libtestutil.a
  642. SOURCE[sm3_internal_test]=sm3_internal_test.c
  643. INCLUDE[sm3_internal_test]=../include ../apps/include
  644. DEPEND[sm3_internal_test]=../libcrypto.a libtestutil.a
  645. SOURCE[sm4_internal_test]=sm4_internal_test.c
  646. INCLUDE[sm4_internal_test]=.. ../include ../apps/include
  647. DEPEND[sm4_internal_test]=../libcrypto.a libtestutil.a
  648. SOURCE[destest]=destest.c
  649. INCLUDE[destest]=../include ../apps/include
  650. DEPEND[destest]=../libcrypto.a libtestutil.a
  651. SOURCE[rc2test]=rc2test.c
  652. INCLUDE[rc2test]=../include ../apps/include
  653. DEPEND[rc2test]=../libcrypto.a libtestutil.a
  654. SOURCE[rc4test]=rc4test.c
  655. INCLUDE[rc4test]=../include ../apps/include
  656. DEPEND[rc4test]=../libcrypto.a libtestutil.a
  657. SOURCE[rc5test]=rc5test.c
  658. INCLUDE[rc5test]=../include ../apps/include
  659. DEPEND[rc5test]=../libcrypto.a libtestutil.a
  660. SOURCE[ec_internal_test]=ec_internal_test.c $INITSRC
  661. INCLUDE[ec_internal_test]=../include ../crypto/ec ../apps/include
  662. DEPEND[ec_internal_test]=../libcrypto.a libtestutil.a
  663. SOURCE[curve448_internal_test]=curve448_internal_test.c
  664. INCLUDE[curve448_internal_test]=.. ../include ../apps/include ../crypto/ec/curve448
  665. DEPEND[curve448_internal_test]=../libcrypto.a libtestutil.a
  666. SOURCE[rc4test]=rc4test.c
  667. INCLUDE[rc4test]=../include ../apps/include
  668. DEPEND[rc4test]=../libcrypto.a libtestutil.a
  669. SOURCE[rdcpu_sanitytest]=rdcpu_sanitytest.c
  670. INCLUDE[rdcpu_sanitytest]=../include ../apps/include ../crypto
  671. DEPEND[rdcpu_sanitytest]=../libcrypto.a libtestutil.a
  672. SOURCE[rsa_sp800_56b_test]=rsa_sp800_56b_test.c
  673. INCLUDE[rsa_sp800_56b_test]=.. ../include ../crypto/rsa ../apps/include
  674. DEPEND[rsa_sp800_56b_test]=../libcrypto.a libtestutil.a
  675. SOURCE[bn_internal_test]=bn_internal_test.c
  676. INCLUDE[bn_internal_test]=.. ../include ../crypto/bn ../apps/include
  677. DEPEND[bn_internal_test]=../libcrypto.a libtestutil.a
  678. SOURCE[asn1_dsa_internal_test]=asn1_dsa_internal_test.c
  679. INCLUDE[asn1_dsa_internal_test]=.. ../include ../apps/include
  680. DEPEND[asn1_dsa_internal_test]=../libcrypto.a libtestutil.a
  681. SOURCE[keymgmt_internal_test]=keymgmt_internal_test.c
  682. INCLUDE[keymgmt_internal_test]=.. ../include ../apps/include
  683. DEPEND[keymgmt_internal_test]=../libcrypto.a libtestutil.a
  684. SOURCE[ffc_internal_test]=ffc_internal_test.c
  685. INCLUDE[ffc_internal_test]=.. ../include ../apps/include
  686. DEPEND[ffc_internal_test]=../libcrypto.a libtestutil.a
  687. IF[{- !$disabled{mdc2} -}]
  688. PROGRAMS{noinst}=mdc2_internal_test
  689. ENDIF
  690. SOURCE[mdc2_internal_test]=mdc2_internal_test.c
  691. INCLUDE[mdc2_internal_test]=.. ../include ../apps/include
  692. DEPEND[mdc2_internal_test]=../libcrypto.a libtestutil.a
  693. SOURCE[ssl_old_test]=ssl_old_test.c helpers/predefined_dhparams.c
  694. INCLUDE[ssl_old_test]=.. ../include ../apps/include
  695. DEPEND[ssl_old_test]=../libcrypto.a ../libssl.a libtestutil.a
  696. PROGRAMS{noinst}=ext_internal_test
  697. SOURCE[ext_internal_test]=ext_internal_test.c
  698. INCLUDE[ext_internal_test]=.. ../include ../apps/include
  699. DEPEND[ext_internal_test]=../libcrypto.a ../libssl.a libtestutil.a
  700. PROGRAMS{noinst}=algorithmid_test
  701. SOURCE[algorithmid_test]=algorithmid_test.c
  702. INCLUDE[algorithmid_test]=../include ../apps/include
  703. DEPEND[algorithmid_test]=../libcrypto.a libtestutil.a
  704. ENDIF
  705. PROGRAMS{noinst}=asn1_time_test
  706. SOURCE[asn1_time_test]=asn1_time_test.c ../crypto/ctype.c \
  707. ../crypto/asn1/a_time.c
  708. INCLUDE[asn1_time_test]=../include ../apps/include
  709. DEPEND[asn1_time_test]=../libcrypto libtestutil.a
  710. # We disable this test completely in a shared build because it deliberately
  711. # redefines some internal libssl symbols. This doesn't work in a non-shared
  712. # build
  713. IF[{- !$disabled{shared} -}]
  714. PROGRAMS{noinst}=tls13secretstest
  715. SOURCE[tls13secretstest]=tls13secretstest.c
  716. DEFINE[tls13secretstest]=OPENSSL_NO_KTLS
  717. SOURCE[tls13secretstest]= ../ssl/tls13_enc.c ../crypto/packet.c ../crypto/quic_vlint.c
  718. INCLUDE[tls13secretstest]=.. ../include ../apps/include
  719. DEPEND[tls13secretstest]=../libcrypto ../libssl libtestutil.a
  720. ENDIF
  721. SOURCE[sslbuffertest]=sslbuffertest.c helpers/ssltestlib.c
  722. INCLUDE[sslbuffertest]=../include ../apps/include
  723. DEPEND[sslbuffertest]=../libcrypto ../libssl libtestutil.a
  724. SOURCE[sysdefaulttest]=sysdefaulttest.c
  725. INCLUDE[sysdefaulttest]=../include ../apps/include
  726. DEPEND[sysdefaulttest]=../libcrypto ../libssl libtestutil.a
  727. SOURCE[errtest]=errtest.c
  728. INCLUDE[errtest]=../include ../apps/include
  729. DEPEND[errtest]=../libcrypto libtestutil.a
  730. SOURCE[aesgcmtest]=aesgcmtest.c
  731. INCLUDE[aesgcmtest]=../include ../apps/include ..
  732. DEPEND[aesgcmtest]=../libcrypto libtestutil.a
  733. PROGRAMS{noinst}=context_internal_test
  734. SOURCE[context_internal_test]=context_internal_test.c
  735. INCLUDE[context_internal_test]=.. ../include ../apps/include
  736. DEPEND[context_internal_test]=../libcrypto.a libtestutil.a
  737. IF[{- !$disabled{zlib} || !$disabled{brotli} || !$disabled{zstd} -}]
  738. PROGRAMS{noinst}=bio_comp_test
  739. SOURCE[bio_comp_test]=bio_comp_test.c
  740. INCLUDE[bio_comp_test]=../include ../apps/include
  741. DEPEND[bio_comp_test]=../libcrypto.a libtestutil.a
  742. ENDIF
  743. PROGRAMS{noinst}=provider_internal_test
  744. DEFINE[provider_internal_test]=PROVIDER_INIT_FUNCTION_NAME=p_test_init
  745. SOURCE[provider_internal_test]=provider_internal_test.c p_test.c
  746. INCLUDE[provider_internal_test]=../include ../apps/include ..
  747. DEPEND[provider_internal_test]=../libcrypto.a libtestutil.a
  748. PROGRAMS{noinst}=provider_test
  749. DEFINE[provider_test]=PROVIDER_INIT_FUNCTION_NAME=p_test_init
  750. SOURCE[provider_test]=provider_test.c p_test.c
  751. INCLUDE[provider_test]=../include ../apps/include ..
  752. DEPEND[provider_test]=../libcrypto.a libtestutil.a
  753. IF[{- !$disabled{module} -}]
  754. MODULES{noinst}=p_test
  755. SOURCE[p_test]=p_test.c
  756. INCLUDE[p_test]=../include ..
  757. IF[{- defined $target{shared_defflag} -}]
  758. SOURCE[p_test]=p_test.ld
  759. GENERATE[p_test.ld]=../util/providers.num
  760. ENDIF
  761. ENDIF
  762. IF[{- $disabled{module} || !$target{dso_scheme} -}]
  763. DEFINE[provider_test]=NO_PROVIDER_MODULE
  764. DEFINE[provider_internal_test]=NO_PROVIDER_MODULE
  765. ENDIF
  766. DEPEND[]=provider_internal_test.cnf
  767. GENERATE[provider_internal_test.cnf]=provider_internal_test.cnf.in
  768. PROGRAMS{noinst}=provider_fallback_test
  769. SOURCE[provider_fallback_test]=provider_fallback_test.c
  770. INCLUDE[provider_fallback_test]=../include ../apps/include
  771. DEPEND[provider_fallback_test]=../libcrypto libtestutil.a
  772. PROGRAMS{noinst}=provider_pkey_test
  773. SOURCE[provider_pkey_test]=provider_pkey_test.c fake_rsaprov.c
  774. INCLUDE[provider_pkey_test]=../include ../apps/include
  775. DEPEND[provider_pkey_test]=../libcrypto libtestutil.a
  776. PROGRAMS{noinst}=params_test
  777. SOURCE[params_test]=params_test.c
  778. INCLUDE[params_test]=.. ../include ../apps/include
  779. DEPEND[params_test]=../libcrypto.a libtestutil.a
  780. PROGRAMS{noinst}=hexstr_test
  781. SOURCE[hexstr_test]=hexstr_test.c
  782. INCLUDE[hexstr_test]=.. ../include ../apps/include
  783. DEPEND[hexstr_test]=../libcrypto.a libtestutil.a
  784. PROGRAMS{noinst}=trace_api_test
  785. SOURCE[trace_api_test]=trace_api_test.c
  786. INCLUDE[trace_api_test]=.. ../include ../apps/include
  787. DEPEND[trace_api_test]=../libcrypto.a libtestutil.a
  788. PROGRAMS{noinst}=endecode_test
  789. SOURCE[endecode_test]=endecode_test.c helpers/predefined_dhparams.c
  790. INCLUDE[endecode_test]=.. ../include ../apps/include
  791. DEPEND[endecode_test]=../libcrypto.a libtestutil.a
  792. IF[{- !$disabled{module} && !$disabled{legacy} -}]
  793. DEFINE[endecode_test]=STATIC_LEGACY
  794. SOURCE[endecode_test]=../providers/legacyprov.c
  795. INCLUDE[endecode_test]=../providers/common/include \
  796. ../providers/implementations/include
  797. DEPEND[endecode_test]=../providers/liblegacy.a \
  798. ../providers/libcommon.a
  799. ENDIF
  800. IF[{- !$disabled{'deprecated-3.0'} -}]
  801. PROGRAMS{noinst}=endecoder_legacy_test
  802. SOURCE[endecoder_legacy_test]=endecoder_legacy_test.c
  803. INCLUDE[endecoder_legacy_test]=.. ../include ../apps/include
  804. DEPEND[endecoder_legacy_test]=../libcrypto.a libtestutil.a
  805. ENDIF
  806. PROGRAMS{noinst}=namemap_internal_test
  807. SOURCE[namemap_internal_test]=namemap_internal_test.c
  808. INCLUDE[namemap_internal_test]=.. ../include ../apps/include
  809. DEPEND[namemap_internal_test]=../libcrypto.a libtestutil.a
  810. PROGRAMS{noinst}=bio_prefix_text
  811. SOURCE[bio_prefix_text]=bio_prefix_text.c
  812. INCLUDE[bio_prefix_text]=.. ../include ../apps/include
  813. DEPEND[bio_prefix_text]=../libcrypto libtestutil.a
  814. IF[{- !$disabled{'deprecated-3.0'} -}]
  815. PROGRAMS{noinst}=pem_read_depr_test
  816. SOURCE[pem_read_depr_test]=pem_read_depr_test.c
  817. INCLUDE[pem_read_depr_test]=../include ../apps/include
  818. DEPEND[pem_read_depr_test]=../libcrypto libtestutil.a
  819. ENDIF
  820. ENDIF
  821. SOURCE[ssl_ctx_test]=ssl_ctx_test.c
  822. INCLUDE[ssl_ctx_test]=../include ../apps/include
  823. DEPEND[ssl_ctx_test]=../libcrypto ../libssl libtestutil.a
  824. SOURCE[build_wincrypt_test]=build_wincrypt_test.c
  825. INCLUDE[build_wincrypt_test]=../include
  826. DEPEND[build_wincrypt_test]=../libssl ../libcrypto
  827. IF[{- !$disabled{shared} -}]
  828. PROGRAMS{noinst}=timing_load_creds
  829. SOURCE[timing_load_creds]=timing_load_creds.c
  830. INCLUDE[timing_load_creds]=../include
  831. DEPEND[timing_load_creds]=../libcrypto.a
  832. ENDIF
  833. IF[{- !$disabled{'quic'} -}]
  834. PROGRAMS{noinst}=quicapitest quic_wire_test quic_ackm_test quic_record_test quic_fc_test quic_stream_test quic_cfq_test quic_txpim_test quic_fifd_test quic_txp_test
  835. ENDIF
  836. SOURCE[quicapitest]=quicapitest.c helpers/ssltestlib.c
  837. INCLUDE[quicapitest]=../include ../apps/include
  838. DEPEND[quicapitest]=../libcrypto ../libssl libtestutil.a
  839. SOURCE[quic_ackm_test]=quic_ackm_test.c
  840. INCLUDE[quic_ackm_test]=../include ../apps/include
  841. DEPEND[quic_ackm_test]=../libcrypto.a ../libssl.a libtestutil.a
  842. SOURCE[cert_comp_test]=cert_comp_test.c helpers/ssltestlib.c
  843. INCLUDE[cert_comp_test]=../include ../apps/include ..
  844. DEPEND[cert_comp_test]=../libcrypto ../libssl libtestutil.a
  845. {-
  846. use File::Spec::Functions;
  847. use File::Basename;
  848. use OpenSSL::Glob;
  849. my @nogo_headers = ( "asn1_mac.h",
  850. "opensslconf.h",
  851. "__decc_include_prologue.h",
  852. "__decc_include_epilogue.h" );
  853. my @nogo_headers_re = ( qr/.*err\.h/ );
  854. my @headerfiles = glob catfile($sourcedir,
  855. updir(), "include", "openssl", "*.h");
  856. foreach my $headerfile (@headerfiles) {
  857. my $name = basename($headerfile, ".h");
  858. next if $disabled{$name};
  859. next if grep { $_ eq lc("$name.h") } @nogo_headers;
  860. next if grep { lc("$name.h") =~ m/$_/i } @nogo_headers_re;
  861. $OUT .= <<"_____";
  862. PROGRAMS{noinst}=buildtest_c_$name
  863. SOURCE[buildtest_c_$name]=buildtest_$name.c
  864. GENERATE[buildtest_$name.c]=generate_buildtest.pl $name
  865. INCLUDE[buildtest_c_$name]=../include
  866. DEPEND[buildtest_c_$name]=../libssl ../libcrypto
  867. _____
  868. $OUT .= <<"_____" if $config{CXX} && !$disabled{"buildtest-c++"};
  869. PROGRAMS{noinst}=buildtest_cc_$name
  870. SOURCE[buildtest_cc_$name]=buildtest_$name.cc
  871. GENERATE[buildtest_$name.cc]=generate_buildtest.pl $name
  872. INCLUDE[buildtest_cc_$name]=../include
  873. DEPEND[buildtest_cc_$name]=../libssl ../libcrypto
  874. _____
  875. }
  876. -}