build.info 32 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851
  1. SUBDIRS=ossl_shim
  2. # TODO: use ../apps/libapps.a instead of direct ../apps/lib source.
  3. # This can't currently be done, because some of its units drag in too many
  4. # unresolved references that don't apply here.
  5. # Most of all, ../apps/lib/apps.c needs to be divided in smaller pieces to
  6. # be useful here.
  7. #
  8. # Auxiliary program source (copied from ../apps/build.info)
  9. IF[{- $config{target} =~ /^(?:VC-|mingw)/ -}]
  10. # It's called 'init', but doesn't have much 'init' in it...
  11. $AUXLIBAPPSSRC=../apps/lib/win32_init.c
  12. ENDIF
  13. IF[{- $config{target} =~ /^vms-/ -}]
  14. $AUXLIBAPPSSRC=../apps/lib/vms_term_sock.c ../apps/lib/vms_decc_argv.c
  15. ENDIF
  16. $LIBAPPSSRC=../apps/lib/opt.c $AUXLIBAPPSSRC
  17. IF[{- !$disabled{tests} -}]
  18. LIBS{noinst,has_main}=libtestutil.a
  19. SOURCE[libtestutil.a]=testutil/basic_output.c testutil/output_helpers.c \
  20. testutil/driver.c testutil/tests.c testutil/cb.c testutil/stanza.c \
  21. testutil/format_output.c \
  22. testutil/test_cleanup.c testutil/main.c testutil/testutil_init.c \
  23. testutil/options.c testutil/test_options.c testutil/provider.c \
  24. testutil/apps_mem.c testutil/random.c $LIBAPPSSRC
  25. INCLUDE[libtestutil.a]=../include ../apps/include ..
  26. DEPEND[libtestutil.a]=../libcrypto
  27. PROGRAMS{noinst}= \
  28. confdump \
  29. versions \
  30. aborttest test_test pkcs12_format_test \
  31. sanitytest rsa_complex exdatatest bntest \
  32. ectest ecstresstest gmdifftest pbelutest \
  33. destest mdc2test \
  34. exptest \
  35. evp_pkey_provided_test evp_test evp_extra_test evp_extra_test2 \
  36. evp_fetch_prov_test acvp_test evp_libctx_test ossl_store_test \
  37. v3nametest v3ext \
  38. evp_pkey_provided_test evp_test evp_extra_test evp_extra_test2 \
  39. evp_fetch_prov_test v3nametest v3ext \
  40. crltest danetest bad_dtls_test lhash_test sparse_array_test \
  41. conf_include_test params_api_test params_conversion_test \
  42. constant_time_test verify_extra_test clienthellotest \
  43. packettest asynctest secmemtest srptest memleaktest stack_test \
  44. dtlsv1listentest ct_test threadstest afalgtest d2i_test \
  45. ssl_test_ctx_test ssl_test x509aux cipherlist_test asynciotest \
  46. bio_callback_test bio_memleak_test param_build_test \
  47. bioprinttest sslapitest dtlstest sslcorrupttest \
  48. bio_enc_test pkey_meth_test pkey_meth_kdf_test evp_kdf_test uitest \
  49. cipherbytes_test \
  50. asn1_encode_test asn1_decode_test asn1_string_table_test \
  51. x509_time_test x509_dup_cert_test x509_check_cert_pkey_test \
  52. recordlentest drbgtest rand_status_test sslbuffertest \
  53. time_offset_test pemtest ssl_cert_table_internal_test ciphername_test \
  54. http_test servername_test ocspapitest fatalerrtest tls13ccstest \
  55. sysdefaulttest errtest ssl_ctx_test gosttest \
  56. context_internal_test aesgcmtest params_test evp_pkey_dparams_test \
  57. keymgmt_internal_test hexstr_test provider_status_test defltfips_test
  58. IF[{- !$disabled{'deprecated-3.0'} -}]
  59. PROGRAMS{noinst}=enginetest
  60. ENDIF
  61. SOURCE[confdump]=confdump.c
  62. INCLUDE[confdump]=../include ../apps/include
  63. DEPEND[confdump]=../libcrypto
  64. SOURCE[versions]=versions.c
  65. INCLUDE[versions]=../include ../apps/include
  66. DEPEND[versions]=../libcrypto
  67. SOURCE[aborttest]=aborttest.c
  68. INCLUDE[aborttest]=../include ../apps/include
  69. DEPEND[aborttest]=../libcrypto
  70. SOURCE[sanitytest]=sanitytest.c
  71. INCLUDE[sanitytest]=../include ../apps/include
  72. DEPEND[sanitytest]=../libcrypto libtestutil.a
  73. SOURCE[rsa_complex]=rsa_complex.c
  74. INCLUDE[rsa_complex]=../include ../apps/include
  75. SOURCE[test_test]=test_test.c
  76. INCLUDE[test_test]=../include ../apps/include
  77. DEPEND[test_test]=../libcrypto libtestutil.a
  78. SOURCE[exdatatest]=exdatatest.c
  79. INCLUDE[exdatatest]=../include ../apps/include
  80. DEPEND[exdatatest]=../libcrypto libtestutil.a
  81. SOURCE[bntest]=bntest.c
  82. INCLUDE[bntest]=../include ../apps/include
  83. DEPEND[bntest]=../libcrypto libtestutil.a
  84. SOURCE[ectest]=ectest.c
  85. INCLUDE[ectest]=../include ../apps/include
  86. DEPEND[ectest]=../libcrypto libtestutil.a
  87. SOURCE[ecstresstest]=ecstresstest.c
  88. INCLUDE[ecstresstest]=../include ../apps/include
  89. DEPEND[ecstresstest]=../libcrypto libtestutil.a
  90. SOURCE[gmdifftest]=gmdifftest.c
  91. INCLUDE[gmdifftest]=../include ../apps/include
  92. DEPEND[gmdifftest]=../libcrypto libtestutil.a
  93. SOURCE[pbelutest]=pbelutest.c
  94. INCLUDE[pbelutest]=../include ../apps/include
  95. DEPEND[pbelutest]=../libcrypto libtestutil.a
  96. SOURCE[mdc2test]=mdc2test.c
  97. INCLUDE[mdc2test]=../include ../apps/include
  98. DEPEND[mdc2test]=../libcrypto libtestutil.a
  99. SOURCE[enginetest]=enginetest.c
  100. INCLUDE[enginetest]=../include ../apps/include
  101. DEPEND[enginetest]=../libcrypto libtestutil.a
  102. SOURCE[exptest]=exptest.c
  103. INCLUDE[exptest]=../include ../apps/include
  104. DEPEND[exptest]=../libcrypto libtestutil.a
  105. SOURCE[fatalerrtest]=fatalerrtest.c ssltestlib.c
  106. INCLUDE[fatalerrtest]=../include ../apps/include
  107. DEPEND[fatalerrtest]=../libcrypto ../libssl libtestutil.a
  108. SOURCE[tls13ccstest]=tls13ccstest.c ssltestlib.c
  109. INCLUDE[tls13ccstest]=../include ../apps/include
  110. DEPEND[tls13ccstest]=../libcrypto ../libssl libtestutil.a
  111. SOURCE[evp_test]=evp_test.c
  112. INCLUDE[evp_test]=../include ../apps/include
  113. DEPEND[evp_test]=../libcrypto libtestutil.a
  114. IF[{- $disabled{legacy} || !$target{dso_scheme} -}]
  115. DEFINE[evp_test]=NO_LEGACY_MODULE
  116. ENDIF
  117. SOURCE[evp_extra_test]=evp_extra_test.c
  118. INCLUDE[evp_extra_test]=../include ../apps/include
  119. DEPEND[evp_extra_test]=../libcrypto.a libtestutil.a
  120. SOURCE[evp_extra_test2]=evp_extra_test2.c
  121. INCLUDE[evp_extra_test2]=../include ../apps/include
  122. DEPEND[evp_extra_test2]=../libcrypto libtestutil.a
  123. SOURCE[evp_libctx_test]=evp_libctx_test.c
  124. INCLUDE[evp_libctx_test]=../include ../apps/include
  125. DEPEND[evp_libctx_test]=../libcrypto.a libtestutil.a
  126. SOURCE[evp_fetch_prov_test]=evp_fetch_prov_test.c
  127. INCLUDE[evp_fetch_prov_test]=../include ../apps/include
  128. DEPEND[evp_fetch_prov_test]=../libcrypto libtestutil.a
  129. IF[{- $disabled{fips} || !$target{dso_scheme} -}]
  130. DEFINE[evp_extra_test]=NO_FIPS_MODULE
  131. ENDIF
  132. SOURCE[evp_pkey_provided_test]=evp_pkey_provided_test.c
  133. INCLUDE[evp_pkey_provided_test]=../include ../apps/include
  134. DEPEND[evp_pkey_provided_test]=../libcrypto.a libtestutil.a
  135. IF[{- !$disabled{acvp-tests} -}]
  136. SOURCE[acvp_test]=acvp_test.c
  137. INCLUDE[acvp_test]=../include ../apps/include
  138. DEPEND[acvp_test]=../libcrypto.a libtestutil.a
  139. ENDIF
  140. SOURCE[ossl_store_test]=ossl_store_test.c
  141. INCLUDE[ossl_store_test]=../include ../apps/include
  142. DEPEND[ossl_store_test]=../libcrypto.a libtestutil.a
  143. SOURCE[provider_status_test]=provider_status_test.c
  144. INCLUDE[provider_status_test]=../include ../apps/include
  145. DEPEND[provider_status_test]=../libcrypto.a libtestutil.a
  146. IF[{- !$disabled{'deprecated-3.0'} -}]
  147. PROGRAMS{noinst}=igetest bftest casttest
  148. SOURCE[igetest]=igetest.c
  149. INCLUDE[igetest]=../include ../apps/include
  150. DEPEND[igetest]=../libcrypto libtestutil.a
  151. SOURCE[bftest]=bftest.c
  152. INCLUDE[bftest]=../include ../apps/include
  153. DEPEND[bftest]=../libcrypto libtestutil.a
  154. SOURCE[casttest]=casttest.c
  155. INCLUDE[casttest]=../include ../apps/include
  156. DEPEND[casttest]=../libcrypto libtestutil.a
  157. ENDIF
  158. SOURCE[v3nametest]=v3nametest.c
  159. INCLUDE[v3nametest]=../include ../apps/include
  160. DEPEND[v3nametest]=../libcrypto libtestutil.a
  161. SOURCE[crltest]=crltest.c
  162. INCLUDE[crltest]=../include ../apps/include
  163. DEPEND[crltest]=../libcrypto libtestutil.a
  164. SOURCE[v3ext]=v3ext.c
  165. INCLUDE[v3ext]=../include ../apps/include
  166. DEPEND[v3ext]=../libcrypto libtestutil.a
  167. SOURCE[danetest]=danetest.c
  168. INCLUDE[danetest]=../include ../apps/include
  169. DEPEND[danetest]=../libcrypto ../libssl libtestutil.a
  170. SOURCE[constant_time_test]=constant_time_test.c
  171. INCLUDE[constant_time_test]=../include ../apps/include
  172. DEPEND[constant_time_test]=../libcrypto libtestutil.a
  173. SOURCE[verify_extra_test]=verify_extra_test.c
  174. INCLUDE[verify_extra_test]=../include ../apps/include
  175. DEPEND[verify_extra_test]=../libcrypto libtestutil.a
  176. SOURCE[clienthellotest]=clienthellotest.c
  177. INCLUDE[clienthellotest]=../include ../apps/include
  178. DEPEND[clienthellotest]=../libcrypto ../libssl libtestutil.a
  179. SOURCE[bad_dtls_test]=bad_dtls_test.c
  180. INCLUDE[bad_dtls_test]=../include ../apps/include
  181. DEPEND[bad_dtls_test]=../libcrypto ../libssl libtestutil.a
  182. SOURCE[packettest]=packettest.c
  183. INCLUDE[packettest]=../include ../apps/include
  184. DEPEND[packettest]=../libcrypto libtestutil.a
  185. SOURCE[asynctest]=asynctest.c
  186. INCLUDE[asynctest]=../include ../apps/include
  187. DEPEND[asynctest]=../libcrypto
  188. SOURCE[secmemtest]=secmemtest.c
  189. INCLUDE[secmemtest]=../include ../apps/include
  190. DEPEND[secmemtest]=../libcrypto libtestutil.a
  191. SOURCE[srptest]=srptest.c
  192. INCLUDE[srptest]=../include ../apps/include
  193. DEPEND[srptest]=../libcrypto libtestutil.a
  194. SOURCE[memleaktest]=memleaktest.c
  195. INCLUDE[memleaktest]=../include ../apps/include
  196. DEPEND[memleaktest]=../libcrypto libtestutil.a
  197. SOURCE[pkcs12_format_test]=pkcs12_format_test.c pkcs12_helper.c
  198. INCLUDE[pkcs12_format_test]=../include ../apps/include
  199. DEPEND[pkcs12_format_test]=../libcrypto libtestutil.a
  200. SOURCE[stack_test]=stack_test.c
  201. INCLUDE[stack_test]=../include ../apps/include
  202. DEPEND[stack_test]=../libcrypto libtestutil.a
  203. SOURCE[lhash_test]=lhash_test.c
  204. INCLUDE[lhash_test]=../include ../apps/include
  205. DEPEND[lhash_test]=../libcrypto libtestutil.a
  206. SOURCE[dtlsv1listentest]=dtlsv1listentest.c
  207. INCLUDE[dtlsv1listentest]=../include ../apps/include
  208. DEPEND[dtlsv1listentest]=../libssl libtestutil.a
  209. SOURCE[ct_test]=ct_test.c
  210. INCLUDE[ct_test]=../include ../apps/include
  211. DEPEND[ct_test]=../libcrypto libtestutil.a
  212. SOURCE[threadstest]=threadstest.c
  213. INCLUDE[threadstest]=../include ../apps/include
  214. DEPEND[threadstest]=../libcrypto libtestutil.a
  215. SOURCE[afalgtest]=afalgtest.c
  216. INCLUDE[afalgtest]=../include ../apps/include
  217. DEPEND[afalgtest]=../libcrypto libtestutil.a
  218. SOURCE[d2i_test]=d2i_test.c
  219. INCLUDE[d2i_test]=../include ../apps/include
  220. DEPEND[d2i_test]=../libcrypto libtestutil.a
  221. SOURCE[ssl_test_ctx_test]=ssl_test_ctx_test.c ssl_test_ctx.c
  222. INCLUDE[ssl_test_ctx_test]=../include ../apps/include
  223. DEPEND[ssl_test_ctx_test]=../libcrypto ../libssl libtestutil.a
  224. SOURCE[ssl_test]=ssl_test.c ssl_test_ctx.c handshake_helper.c
  225. INCLUDE[ssl_test]=../include ../apps/include
  226. DEPEND[ssl_test]=../libcrypto ../libssl libtestutil.a
  227. SOURCE[cipherlist_test]=cipherlist_test.c
  228. INCLUDE[cipherlist_test]=../include ../apps/include
  229. DEPEND[cipherlist_test]=../libcrypto ../libssl libtestutil.a
  230. INCLUDE[ssl_test_ctx.o]=../include
  231. INCLUDE[handshake_helper.o]=.. ../include
  232. INCLUDE[pkcs12_helper.o]=.. ../include
  233. INCLUDE[ssltestlib.o]=.. ../include
  234. INCLUDE[cmp_testlib.o]=.. ../include ../apps/include
  235. SOURCE[x509aux]=x509aux.c
  236. INCLUDE[x509aux]=../include ../apps/include
  237. DEPEND[x509aux]=../libcrypto libtestutil.a
  238. SOURCE[asynciotest]=asynciotest.c ssltestlib.c
  239. INCLUDE[asynciotest]=../include ../apps/include
  240. DEPEND[asynciotest]=../libcrypto ../libssl libtestutil.a
  241. SOURCE[bio_callback_test]=bio_callback_test.c
  242. INCLUDE[bio_callback_test]=../include ../apps/include
  243. DEPEND[bio_callback_test]=../libcrypto libtestutil.a
  244. SOURCE[bio_memleak_test]=bio_memleak_test.c
  245. INCLUDE[bio_memleak_test]=../include ../apps/include
  246. DEPEND[bio_memleak_test]=../libcrypto libtestutil.a
  247. SOURCE[bioprinttest]=bioprinttest.c
  248. INCLUDE[bioprinttest]=../include ../apps/include
  249. DEPEND[bioprinttest]=../libcrypto libtestutil.a
  250. SOURCE[params_api_test]=params_api_test.c
  251. INCLUDE[params_api_test]=../include ../apps/include
  252. DEPEND[params_api_test]=../libcrypto libtestutil.a
  253. SOURCE[params_conversion_test]=params_conversion_test.c
  254. INCLUDE[params_conversion_test]=../include ../apps/include
  255. DEPEND[params_conversion_test]=../libcrypto libtestutil.a
  256. SOURCE[param_build_test]=param_build_test.c
  257. INCLUDE[param_build_test]=../include ../apps/include
  258. DEPEND[param_build_test]=../libcrypto.a libtestutil.a
  259. SOURCE[sslapitest]=sslapitest.c ssltestlib.c filterprov.c tls-provider.c
  260. INCLUDE[sslapitest]=../include ../apps/include ..
  261. DEPEND[sslapitest]=../libcrypto ../libssl libtestutil.a
  262. SOURCE[defltfips_test]=defltfips_test.c
  263. INCLUDE[defltfips_test]=../include ../apps/include
  264. DEPEND[defltfips_test]=../libcrypto libtestutil.a
  265. SOURCE[ocspapitest]=ocspapitest.c
  266. INCLUDE[ocspapitest]=../include ../apps/include
  267. DEPEND[ocspapitest]=../libcrypto libtestutil.a
  268. IF[{- !$disabled{sock} -}]
  269. PROGRAMS{noinst}=http_test
  270. ENDIF
  271. SOURCE[http_test]=http_test.c
  272. INCLUDE[http_test]=../include ../apps/include
  273. DEPEND[http_test]=../libcrypto libtestutil.a
  274. SOURCE[dtlstest]=dtlstest.c ssltestlib.c
  275. INCLUDE[dtlstest]=../include ../apps/include
  276. DEPEND[dtlstest]=../libcrypto ../libssl libtestutil.a
  277. SOURCE[sslcorrupttest]=sslcorrupttest.c ssltestlib.c
  278. INCLUDE[sslcorrupttest]=../include ../apps/include
  279. DEPEND[sslcorrupttest]=../libcrypto ../libssl libtestutil.a
  280. SOURCE[bio_enc_test]=bio_enc_test.c
  281. INCLUDE[bio_enc_test]=../include ../apps/include
  282. DEPEND[bio_enc_test]=../libcrypto libtestutil.a
  283. SOURCE[pkey_meth_test]=pkey_meth_test.c
  284. INCLUDE[pkey_meth_test]=../include ../apps/include
  285. DEPEND[pkey_meth_test]=../libcrypto libtestutil.a
  286. SOURCE[pkey_meth_kdf_test]=pkey_meth_kdf_test.c
  287. INCLUDE[pkey_meth_kdf_test]=../include ../apps/include
  288. DEPEND[pkey_meth_kdf_test]=../libcrypto libtestutil.a
  289. SOURCE[evp_kdf_test]=evp_kdf_test.c
  290. INCLUDE[evp_kdf_test]=../include ../apps/include
  291. DEPEND[evp_kdf_test]=../libcrypto libtestutil.a
  292. SOURCE[evp_pkey_dparams_test]=evp_pkey_dparams_test.c
  293. INCLUDE[evp_pkey_dparams_test]=../include ../apps/include
  294. DEPEND[evp_pkey_dparams_test]=../libcrypto libtestutil.a
  295. SOURCE[x509_time_test]=x509_time_test.c
  296. INCLUDE[x509_time_test]=../include ../apps/include
  297. DEPEND[x509_time_test]=../libcrypto libtestutil.a
  298. SOURCE[recordlentest]=recordlentest.c ssltestlib.c
  299. INCLUDE[recordlentest]=../include ../apps/include
  300. DEPEND[recordlentest]=../libcrypto ../libssl libtestutil.a
  301. SOURCE[drbgtest]=drbgtest.c
  302. INCLUDE[drbgtest]=../include ../apps/include
  303. DEPEND[drbgtest]=../libcrypto.a libtestutil.a
  304. SOURCE[rand_status_test]=rand_status_test.c
  305. INCLUDE[rand_status_test]=../include ../apps/include
  306. DEPEND[rand_status_test]=../libcrypto libtestutil.a
  307. SOURCE[x509_dup_cert_test]=x509_dup_cert_test.c
  308. INCLUDE[x509_dup_cert_test]=../include ../apps/include
  309. DEPEND[x509_dup_cert_test]=../libcrypto libtestutil.a
  310. SOURCE[x509_check_cert_pkey_test]=x509_check_cert_pkey_test.c
  311. INCLUDE[x509_check_cert_pkey_test]=../include ../apps/include
  312. DEPEND[x509_check_cert_pkey_test]=../libcrypto libtestutil.a
  313. SOURCE[pemtest]=pemtest.c
  314. INCLUDE[pemtest]=../include ../apps/include
  315. DEPEND[pemtest]=../libcrypto libtestutil.a
  316. SOURCE[ssl_cert_table_internal_test]=ssl_cert_table_internal_test.c
  317. INCLUDE[ssl_cert_table_internal_test]=.. ../include ../apps/include
  318. DEPEND[ssl_cert_table_internal_test]=../libcrypto libtestutil.a
  319. SOURCE[ciphername_test]=ciphername_test.c
  320. INCLUDE[ciphername_test]=../include ../apps/include
  321. DEPEND[ciphername_test]=../libcrypto ../libssl libtestutil.a
  322. SOURCE[http_test]=http_test.c
  323. INCLUDE[http_test]=../include ../apps/include
  324. DEPEND[http_test]=../libcrypto libtestutil.a
  325. SOURCE[servername_test]=servername_test.c ssltestlib.c
  326. INCLUDE[servername_test]=../include ../apps/include
  327. DEPEND[servername_test]=../libcrypto ../libssl libtestutil.a
  328. IF[{- !$disabled{cms} -}]
  329. PROGRAMS{noinst}=cmsapitest
  330. SOURCE[cmsapitest]=cmsapitest.c
  331. INCLUDE[cmsapitest]=../include ../apps/include
  332. DEPEND[cmsapitest]=../libcrypto libtestutil.a
  333. ENDIF
  334. IF[{- !$disabled{psk} -}]
  335. PROGRAMS{noinst}=dtls_mtu_test
  336. SOURCE[dtls_mtu_test]=dtls_mtu_test.c ssltestlib.c
  337. INCLUDE[dtls_mtu_test]=.. ../include ../apps/include
  338. DEPEND[dtls_mtu_test]=../libcrypto ../libssl libtestutil.a
  339. ENDIF
  340. IF[{- !$disabled{shared} -}]
  341. PROGRAMS{noinst}=shlibloadtest
  342. SOURCE[shlibloadtest]=shlibloadtest.c
  343. INCLUDE[shlibloadtest]=../include ../apps/include
  344. ENDIF
  345. # cipher_overhead_test uses internal symbols, so it must be linked with
  346. # the static libraries
  347. PROGRAMS{noinst}=cipher_overhead_test
  348. SOURCE[cipher_overhead_test]=cipher_overhead_test.c
  349. INCLUDE[cipher_overhead_test]=.. ../include ../apps/include
  350. DEPEND[cipher_overhead_test]=../libcrypto.a ../libssl.a libtestutil.a
  351. SOURCE[uitest]=uitest.c ../apps/lib/apps_ui.c
  352. INCLUDE[uitest]=.. ../include ../apps/include
  353. DEPEND[uitest]=../libcrypto ../libssl libtestutil.a
  354. SOURCE[cipherbytes_test]=cipherbytes_test.c
  355. INCLUDE[cipherbytes_test]=../include ../apps/include
  356. DEPEND[cipherbytes_test]=../libcrypto ../libssl libtestutil.a
  357. SOURCE[asn1_encode_test]=asn1_encode_test.c
  358. INCLUDE[asn1_encode_test]=../include ../apps/include
  359. DEPEND[asn1_encode_test]=../libcrypto libtestutil.a
  360. SOURCE[asn1_decode_test]=asn1_decode_test.c
  361. INCLUDE[asn1_decode_test]=../include ../apps/include
  362. DEPEND[asn1_decode_test]=../libcrypto libtestutil.a
  363. SOURCE[asn1_string_table_test]=asn1_string_table_test.c
  364. INCLUDE[asn1_string_table_test]=../include ../apps/include
  365. DEPEND[asn1_string_table_test]=../libcrypto libtestutil.a
  366. SOURCE[time_offset_test]=time_offset_test.c
  367. INCLUDE[time_offset_test]=../include ../apps/include
  368. DEPEND[time_offset_test]=../libcrypto libtestutil.a
  369. SOURCE[conf_include_test]=conf_include_test.c
  370. INCLUDE[conf_include_test]=../include ../apps/include
  371. DEPEND[conf_include_test]=../libcrypto libtestutil.a
  372. IF[{- !$disabled{cmp} -}]
  373. PROGRAMS{noinst}=cmp_asn_test cmp_ctx_test cmp_status_test cmp_hdr_test \
  374. cmp_protect_test cmp_msg_test cmp_vfy_test \
  375. cmp_server_test cmp_client_test
  376. ENDIF
  377. SOURCE[cmp_asn_test]=cmp_asn_test.c cmp_testlib.c
  378. INCLUDE[cmp_asn_test]=.. ../include ../apps/include
  379. DEPEND[cmp_asn_test]=../libcrypto.a libtestutil.a
  380. SOURCE[cmp_ctx_test]=cmp_ctx_test.c cmp_testlib.c
  381. INCLUDE[cmp_ctx_test]=.. ../include ../apps/include
  382. DEPEND[cmp_ctx_test]=../libcrypto.a libtestutil.a
  383. SOURCE[cmp_hdr_test]=cmp_hdr_test.c cmp_testlib.c
  384. INCLUDE[cmp_hdr_test]=.. ../include ../apps/include
  385. DEPEND[cmp_hdr_test]=../libcrypto.a libtestutil.a
  386. SOURCE[cmp_status_test]=cmp_status_test.c cmp_testlib.c
  387. INCLUDE[cmp_status_test]=.. ../include ../apps/include
  388. DEPEND[cmp_status_test]=../libcrypto.a libtestutil.a
  389. SOURCE[cmp_protect_test]=cmp_protect_test.c cmp_testlib.c
  390. INCLUDE[cmp_protect_test]=.. ../include ../apps/include
  391. DEPEND[cmp_protect_test]=../libcrypto.a libtestutil.a
  392. SOURCE[cmp_msg_test]=cmp_msg_test.c cmp_testlib.c
  393. INCLUDE[cmp_msg_test]=.. ../include ../apps/include
  394. DEPEND[cmp_msg_test]=../libcrypto.a libtestutil.a
  395. SOURCE[cmp_vfy_test]=cmp_vfy_test.c cmp_testlib.c
  396. INCLUDE[cmp_vfy_test]=.. ../include ../apps/include
  397. DEPEND[cmp_vfy_test]=../libcrypto.a libtestutil.a
  398. SOURCE[cmp_server_test]=cmp_server_test.c cmp_testlib.c
  399. INCLUDE[cmp_server_test]=.. ../include ../apps/include
  400. DEPEND[cmp_server_test]=../libcrypto.a libtestutil.a
  401. SOURCE[cmp_client_test]=cmp_client_test.c cmp_testlib.c ../apps/cmp_mock_srv.c
  402. INCLUDE[cmp_client_test]=.. ../include ../apps/include
  403. DEPEND[cmp_client_test]=../libcrypto.a libtestutil.a
  404. # Internal test programs. These are essentially a collection of internal
  405. # test routines. Some of them need to reach internal symbols that aren't
  406. # available through the shared library (at least on Linux, Solaris, Windows
  407. # and VMS, where the exported symbols are those listed in util/*.num), these
  408. # programs are forcibly linked with the static libraries, where all symbols
  409. # are always available.
  410. IF[1]
  411. PROGRAMS{noinst}=asn1_internal_test modes_internal_test x509_internal_test \
  412. tls13encryptiontest wpackettest ctype_internal_test \
  413. rdrand_sanitytest property_test ideatest rsa_mp_test \
  414. rsa_sp800_56b_test bn_internal_test ecdsatest rsa_test \
  415. rc2test rc4test rc5test hmactest ffc_internal_test \
  416. asn1_dsa_internal_test dsatest dsa_no_digest_size_test \
  417. dhtest ssltest_old
  418. IF[{- !$disabled{poly1305} -}]
  419. PROGRAMS{noinst}=poly1305_internal_test
  420. ENDIF
  421. IF[{- !$disabled{chacha} -}]
  422. PROGRAMS{noinst}=chacha_internal_test
  423. ENDIF
  424. IF[{- !$disabled{siphash} -}]
  425. PROGRAMS{noinst}=siphash_internal_test
  426. ENDIF
  427. IF[{- !$disabled{sm2} -}]
  428. PROGRAMS{noinst}=sm2_internal_test
  429. ENDIF
  430. IF[{- !$disabled{sm4} -}]
  431. PROGRAMS{noinst}=sm4_internal_test
  432. ENDIF
  433. IF[{- !$disabled{ec} -}]
  434. PROGRAMS{noinst}=ec_internal_test curve448_internal_test
  435. ENDIF
  436. IF[{- !$disabled{cmac} -}]
  437. PROGRAMS{noinst}=cmactest
  438. ENDIF
  439. SOURCE[poly1305_internal_test]=poly1305_internal_test.c
  440. INCLUDE[poly1305_internal_test]=.. ../include ../apps/include
  441. DEPEND[poly1305_internal_test]=../libcrypto.a libtestutil.a
  442. SOURCE[chacha_internal_test]=chacha_internal_test.c
  443. INCLUDE[chacha_internal_test]=.. ../include ../apps/include
  444. DEPEND[chacha_internal_test]=../libcrypto.a libtestutil.a
  445. SOURCE[asn1_internal_test]=asn1_internal_test.c
  446. INCLUDE[asn1_internal_test]=.. ../include ../apps/include
  447. DEPEND[asn1_internal_test]=../libcrypto.a libtestutil.a
  448. SOURCE[modes_internal_test]=modes_internal_test.c
  449. INCLUDE[modes_internal_test]=.. ../include ../apps/include
  450. DEPEND[modes_internal_test]=../libcrypto.a libtestutil.a
  451. SOURCE[x509_internal_test]=x509_internal_test.c
  452. INCLUDE[x509_internal_test]=.. ../include ../apps/include
  453. DEPEND[x509_internal_test]=../libcrypto.a libtestutil.a
  454. SOURCE[rsa_test]=rsa_test.c
  455. INCLUDE[rsa_test]=../include ../apps/include
  456. DEPEND[rsa_test]=../libcrypto.a libtestutil.a
  457. SOURCE[rsa_mp_test]=rsa_mp_test.c
  458. INCLUDE[rsa_mp_test]=../include ../apps/include
  459. DEPEND[rsa_mp_test]=../libcrypto.a libtestutil.a
  460. SOURCE[ecdsatest]=ecdsatest.c
  461. INCLUDE[ecdsatest]=../include ../apps/include
  462. DEPEND[ecdsatest]=../libcrypto.a libtestutil.a
  463. SOURCE[dsatest]=dsatest.c
  464. INCLUDE[dsatest]=../include ../apps/include
  465. DEPEND[dsatest]=../libcrypto.a libtestutil.a
  466. SOURCE[dsa_no_digest_size_test]=dsa_no_digest_size_test.c
  467. INCLUDE[dsa_no_digest_size_test]=../include ../apps/include
  468. DEPEND[dsa_no_digest_size_test]=../libcrypto.a libtestutil.a
  469. SOURCE[tls13encryptiontest]=tls13encryptiontest.c
  470. INCLUDE[tls13encryptiontest]=.. ../include ../apps/include
  471. DEPEND[tls13encryptiontest]=../libcrypto ../libssl.a libtestutil.a
  472. SOURCE[ideatest]=ideatest.c
  473. INCLUDE[ideatest]=../include ../apps/include
  474. DEPEND[ideatest]=../libcrypto.a libtestutil.a
  475. SOURCE[wpackettest]=wpackettest.c
  476. INCLUDE[wpackettest]=../include ../apps/include
  477. DEPEND[wpackettest]=../libcrypto ../libssl.a libtestutil.a
  478. SOURCE[property_test]=property_test.c
  479. INCLUDE[property_test]=.. ../include ../apps/include
  480. DEPEND[property_test]=../libcrypto.a libtestutil.a
  481. SOURCE[ctype_internal_test]=ctype_internal_test.c
  482. INCLUDE[ctype_internal_test]=.. ../include ../apps/include
  483. DEPEND[ctype_internal_test]=../libcrypto.a libtestutil.a
  484. SOURCE[sparse_array_test]=sparse_array_test.c
  485. INCLUDE[sparse_array_test]=../include ../apps/include
  486. DEPEND[sparse_array_test]=../libcrypto.a libtestutil.a
  487. SOURCE[dhtest]=dhtest.c
  488. INCLUDE[dhtest]=../include ../apps/include
  489. DEPEND[dhtest]=../libcrypto.a libtestutil.a
  490. SOURCE[hmactest]=hmactest.c
  491. INCLUDE[hmactest]=../include ../apps/include
  492. DEPEND[hmactest]=../libcrypto.a libtestutil.a
  493. IF[{- !$disabled{cmac} -}]
  494. SOURCE[cmactest]=cmactest.c
  495. INCLUDE[cmactest]=../include ../apps/include
  496. DEPEND[cmactest]=../libcrypto.a libtestutil.a
  497. ENDIF
  498. SOURCE[siphash_internal_test]=siphash_internal_test.c
  499. INCLUDE[siphash_internal_test]=.. ../include ../apps/include
  500. DEPEND[siphash_internal_test]=../libcrypto.a libtestutil.a
  501. SOURCE[sm2_internal_test]=sm2_internal_test.c
  502. INCLUDE[sm2_internal_test]=../include ../apps/include
  503. DEPEND[sm2_internal_test]=../libcrypto.a libtestutil.a
  504. SOURCE[sm4_internal_test]=sm4_internal_test.c
  505. INCLUDE[sm4_internal_test]=.. ../include ../apps/include
  506. DEPEND[sm4_internal_test]=../libcrypto.a libtestutil.a
  507. SOURCE[destest]=destest.c
  508. INCLUDE[destest]=../include ../apps/include
  509. DEPEND[destest]=../libcrypto.a libtestutil.a
  510. SOURCE[rc2test]=rc2test.c
  511. INCLUDE[rc2test]=../include ../apps/include
  512. DEPEND[rc2test]=../libcrypto.a libtestutil.a
  513. SOURCE[rc4test]=rc4test.c
  514. INCLUDE[rc4test]=../include ../apps/include
  515. DEPEND[rc4test]=../libcrypto.a libtestutil.a
  516. SOURCE[rc5test]=rc5test.c
  517. INCLUDE[rc5test]=../include ../apps/include
  518. DEPEND[rc5test]=../libcrypto.a libtestutil.a
  519. SOURCE[ec_internal_test]=ec_internal_test.c
  520. INCLUDE[ec_internal_test]=../include ../crypto/ec ../apps/include
  521. DEPEND[ec_internal_test]=../libcrypto.a libtestutil.a
  522. SOURCE[curve448_internal_test]=curve448_internal_test.c
  523. INCLUDE[curve448_internal_test]=.. ../include ../apps/include ../crypto/ec/curve448
  524. DEPEND[curve448_internal_test]=../libcrypto.a libtestutil.a
  525. SOURCE[rc4test]=rc4test.c
  526. INCLUDE[rc4test]=../include ../apps/include
  527. DEPEND[rc4test]=../libcrypto.a libtestutil.a
  528. SOURCE[rdrand_sanitytest]=rdrand_sanitytest.c
  529. INCLUDE[rdrand_sanitytest]=../include ../apps/include
  530. DEPEND[rdrand_sanitytest]=../libcrypto.a libtestutil.a
  531. SOURCE[rsa_sp800_56b_test]=rsa_sp800_56b_test.c
  532. INCLUDE[rsa_sp800_56b_test]=.. ../include ../crypto/rsa ../apps/include
  533. DEPEND[rsa_sp800_56b_test]=../libcrypto.a libtestutil.a
  534. SOURCE[bn_internal_test]=bn_internal_test.c
  535. INCLUDE[bn_internal_test]=.. ../include ../crypto/bn ../apps/include
  536. DEPEND[bn_internal_test]=../libcrypto.a libtestutil.a
  537. SOURCE[asn1_dsa_internal_test]=asn1_dsa_internal_test.c
  538. INCLUDE[asn1_dsa_internal_test]=.. ../include ../apps/include
  539. DEPEND[asn1_dsa_internal_test]=../libcrypto.a libtestutil.a
  540. SOURCE[keymgmt_internal_test]=keymgmt_internal_test.c
  541. INCLUDE[keymgmt_internal_test]=.. ../include ../apps/include
  542. DEPEND[keymgmt_internal_test]=../libcrypto.a libtestutil.a
  543. SOURCE[ffc_internal_test]=ffc_internal_test.c
  544. INCLUDE[ffc_internal_test]=.. ../include ../apps/include
  545. DEPEND[ffc_internal_test]=../libcrypto.a libtestutil.a
  546. IF[{- !$disabled{mdc2} -}]
  547. PROGRAMS{noinst}=mdc2_internal_test
  548. ENDIF
  549. SOURCE[mdc2_internal_test]=mdc2_internal_test.c
  550. INCLUDE[mdc2_internal_test]=.. ../include ../apps/include
  551. DEPEND[mdc2_internal_test]=../libcrypto.a libtestutil.a
  552. SOURCE[ssltest_old]=ssltest_old.c
  553. INCLUDE[ssltest_old]=.. ../include ../apps/include
  554. DEPEND[ssltest_old]=../libcrypto.a ../libssl.a
  555. ENDIF
  556. PROGRAMS{noinst}=asn1_time_test
  557. SOURCE[asn1_time_test]=asn1_time_test.c
  558. INCLUDE[asn1_time_test]=../include ../apps/include
  559. DEPEND[asn1_time_test]=../libcrypto libtestutil.a
  560. # We disable this test completely in a shared build because it deliberately
  561. # redefines some internal libssl symbols. This doesn't work in a non-shared
  562. # build
  563. IF[{- !$disabled{shared} -}]
  564. PROGRAMS{noinst}=tls13secretstest
  565. SOURCE[tls13secretstest]=tls13secretstest.c
  566. DEFINE[tls13secretstest]=OPENSSL_NO_KTLS
  567. SOURCE[tls13secretstest]= ../ssl/tls13_enc.c ../crypto/packet.c
  568. INCLUDE[tls13secretstest]=.. ../include ../apps/include
  569. DEPEND[tls13secretstest]=../libcrypto ../libssl libtestutil.a
  570. ENDIF
  571. SOURCE[sslbuffertest]=sslbuffertest.c ssltestlib.c
  572. INCLUDE[sslbuffertest]=../include ../apps/include
  573. DEPEND[sslbuffertest]=../libcrypto ../libssl libtestutil.a
  574. SOURCE[sysdefaulttest]=sysdefaulttest.c
  575. INCLUDE[sysdefaulttest]=../include ../apps/include
  576. DEPEND[sysdefaulttest]=../libcrypto ../libssl libtestutil.a
  577. SOURCE[errtest]=errtest.c
  578. INCLUDE[errtest]=../include ../apps/include
  579. DEPEND[errtest]=../libcrypto libtestutil.a
  580. SOURCE[gosttest]=gosttest.c ssltestlib.c
  581. INCLUDE[gosttest]=../include ../apps/include ..
  582. DEPEND[gosttest]=../libcrypto ../libssl libtestutil.a
  583. SOURCE[aesgcmtest]=aesgcmtest.c
  584. INCLUDE[aesgcmtest]=../include ../apps/include ..
  585. DEPEND[aesgcmtest]=../libcrypto libtestutil.a
  586. PROGRAMS{noinst}=context_internal_test
  587. SOURCE[context_internal_test]=context_internal_test.c
  588. INCLUDE[context_internal_test]=.. ../include ../apps/include
  589. DEPEND[context_internal_test]=../libcrypto.a libtestutil.a
  590. PROGRAMS{noinst}=provider_internal_test
  591. DEFINE[provider_internal_test]=PROVIDER_INIT_FUNCTION_NAME=p_test_init
  592. SOURCE[provider_internal_test]=provider_internal_test.c p_test.c
  593. INCLUDE[provider_internal_test]=../include ../apps/include
  594. DEPEND[provider_internal_test]=../libcrypto.a libtestutil.a
  595. PROGRAMS{noinst}=provider_test
  596. DEFINE[provider_test]=PROVIDER_INIT_FUNCTION_NAME=p_test_init
  597. SOURCE[provider_test]=provider_test.c p_test.c
  598. INCLUDE[provider_test]=../include ../apps/include
  599. DEPEND[provider_test]=../libcrypto.a libtestutil.a
  600. IF[{- !$disabled{module} -}]
  601. MODULES{noinst}=p_test
  602. SOURCE[p_test]=p_test.c
  603. INCLUDE[p_test]=../include
  604. IF[{- defined $target{shared_defflag} -}]
  605. SOURCE[p_test]=p_test.ld
  606. GENERATE[p_test.ld]=../util/providers.num
  607. ENDIF
  608. ENDIF
  609. IF[{- $disabled{module} || !$target{dso_scheme} -}]
  610. DEFINE[provider_test]=NO_PROVIDER_MODULE
  611. DEFINE[provider_internal_test]=NO_PROVIDER_MODULE
  612. ENDIF
  613. DEPEND[]=provider_internal_test.cnf
  614. GENERATE[provider_internal_test.cnf]=provider_internal_test.cnf.in
  615. PROGRAMS{noinst}=provider_fallback_test
  616. SOURCE[provider_fallback_test]=provider_fallback_test.c
  617. INCLUDE[provider_fallback_test]=../include ../apps/include
  618. DEPEND[provider_fallback_test]=../libcrypto libtestutil.a
  619. PROGRAMS{noinst}=params_test
  620. SOURCE[params_test]=params_test.c
  621. INCLUDE[params_test]=.. ../include ../apps/include
  622. DEPEND[params_test]=../libcrypto.a libtestutil.a
  623. PROGRAMS{noinst}=hexstr_test
  624. SOURCE[hexstr_test]=hexstr_test.c
  625. INCLUDE[hexstr_test]=.. ../include ../apps/include
  626. DEPEND[hexstr_test]=../libcrypto.a libtestutil.a
  627. PROGRAMS{noinst}=endecode_test
  628. SOURCE[endecode_test]=endecode_test.c
  629. INCLUDE[endecode_test]=.. ../include ../apps/include
  630. DEPEND[endecode_test]=../libcrypto.a libtestutil.a
  631. PROGRAMS{noinst}=endecoder_legacy_test
  632. SOURCE[endecoder_legacy_test]=endecoder_legacy_test.c
  633. INCLUDE[endecoder_legacy_test]=.. ../include ../apps/include
  634. DEPEND[endecoder_legacy_test]=../libcrypto.a libtestutil.a
  635. PROGRAMS{noinst}=namemap_internal_test
  636. SOURCE[namemap_internal_test]=namemap_internal_test.c
  637. INCLUDE[namemap_internal_test]=.. ../include ../apps/include
  638. DEPEND[namemap_internal_test]=../libcrypto.a libtestutil.a
  639. PROGRAMS{noinst}=bio_prefix_text
  640. SOURCE[bio_prefix_text]=bio_prefix_text.c $LIBAPPSSRC
  641. INCLUDE[bio_prefix_text]=.. ../include ../apps/include
  642. DEPEND[bio_prefix_text]=../libcrypto
  643. ENDIF
  644. SOURCE[ssl_ctx_test]=ssl_ctx_test.c
  645. INCLUDE[ssl_ctx_test]=../include ../apps/include
  646. DEPEND[ssl_ctx_test]=../libcrypto ../libssl libtestutil.a
  647. {-
  648. use File::Spec::Functions;
  649. use File::Basename;
  650. use OpenSSL::Glob;
  651. my @nogo_headers = ( "asn1_mac.h",
  652. "opensslconf.h",
  653. "__decc_include_prologue.h",
  654. "__decc_include_epilogue.h" );
  655. my @nogo_headers_re = ( qr/.*err\.h/ );
  656. my @headerfiles = glob catfile($sourcedir,
  657. updir(), "include", "openssl", "*.h");
  658. foreach my $headerfile (@headerfiles) {
  659. my $name = basename($headerfile, ".h");
  660. next if $disabled{$name};
  661. next if grep { $_ eq lc("$name.h") } @nogo_headers;
  662. next if grep { lc("$name.h") =~ m/$_/i } @nogo_headers_re;
  663. $OUT .= <<"_____";
  664. PROGRAMS{noinst}=buildtest_c_$name
  665. SOURCE[buildtest_c_$name]=buildtest_$name.c
  666. GENERATE[buildtest_$name.c]=generate_buildtest.pl $name
  667. INCLUDE[buildtest_c_$name]=../include
  668. DEPEND[buildtest_c_$name]=../libssl ../libcrypto
  669. _____
  670. $OUT .= <<"_____" if $config{CXX} && !$disabled{"buildtest-c++"};
  671. PROGRAMS{noinst}=buildtest_cc_$name
  672. SOURCE[buildtest_cc_$name]=buildtest_$name.cc
  673. GENERATE[buildtest_$name.cc]=generate_buildtest.pl $name
  674. INCLUDE[buildtest_cc_$name]=../include
  675. DEPEND[buildtest_cc_$name]=../libssl ../libcrypto
  676. _____
  677. }
  678. -}