build.info 48 KB

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