build.info 27 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714
  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. # Auxilliary 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 ../apps/lib/bf_prefix.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 testutil/tap_bio.c \
  22. testutil/test_cleanup.c testutil/main.c testutil/init.c \
  23. testutil/options.c testutil/test_options.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. versions \
  29. aborttest test_test \
  30. sanitytest rsa_complex exdatatest bntest \
  31. ectest ecstresstest ecdsatest gmdifftest pbelutest ideatest \
  32. md2test \
  33. hmactest \
  34. rc2test rc4test rc5test \
  35. destest mdc2test \
  36. dhtest enginetest casttest \
  37. bftest ssltest_old dsatest dsa_no_digest_size_test exptest rsa_test \
  38. evp_test evp_extra_test evp_fetch_prov_test igetest v3nametest v3ext \
  39. crltest danetest bad_dtls_test lhash_test sparse_array_test \
  40. conf_include_test params_api_test params_conversion_test \
  41. constant_time_test verify_extra_test clienthellotest \
  42. packettest asynctest secmemtest srptest memleaktest stack_test \
  43. dtlsv1listentest ct_test threadstest afalgtest d2i_test \
  44. ssl_test_ctx_test ssl_test x509aux cipherlist_test asynciotest \
  45. bio_callback_test bio_memleak_test param_build_test \
  46. bioprinttest sslapitest dtlstest sslcorrupttest bio_enc_test \
  47. pkey_meth_test pkey_meth_kdf_test evp_kdf_test uitest \
  48. cipherbytes_test \
  49. asn1_encode_test asn1_decode_test asn1_string_table_test \
  50. x509_time_test x509_dup_cert_test x509_check_cert_pkey_test \
  51. recordlentest drbgtest sslbuffertest \
  52. recordlentest drbgtest drbg_cavs_test sslbuffertest \
  53. time_offset_test pemtest ssl_cert_table_internal_test ciphername_test \
  54. servername_test ocspapitest rsa_mp_test fatalerrtest tls13ccstest \
  55. sysdefaulttest errtest gosttest \
  56. context_internal_test aesgcmtest params_test evp_pkey_dparams_test
  57. SOURCE[versions]=versions.c
  58. INCLUDE[versions]=../include ../apps/include
  59. DEPEND[versions]=../libcrypto
  60. SOURCE[aborttest]=aborttest.c
  61. INCLUDE[aborttest]=../include ../apps/include
  62. DEPEND[aborttest]=../libcrypto
  63. SOURCE[sanitytest]=sanitytest.c
  64. INCLUDE[sanitytest]=../include ../apps/include
  65. DEPEND[sanitytest]=../libcrypto libtestutil.a
  66. SOURCE[rsa_complex]=rsa_complex.c
  67. INCLUDE[rsa_complex]=../include ../apps/include
  68. SOURCE[test_test]=test_test.c
  69. INCLUDE[test_test]=../include ../apps/include
  70. DEPEND[test_test]=../libcrypto libtestutil.a
  71. SOURCE[exdatatest]=exdatatest.c
  72. INCLUDE[exdatatest]=../include ../apps/include
  73. DEPEND[exdatatest]=../libcrypto libtestutil.a
  74. SOURCE[bntest]=bntest.c
  75. INCLUDE[bntest]=../include ../apps/include
  76. DEPEND[bntest]=../libcrypto libtestutil.a
  77. SOURCE[ectest]=ectest.c
  78. INCLUDE[ectest]=../include ../apps/include
  79. DEPEND[ectest]=../libcrypto libtestutil.a
  80. SOURCE[ecstresstest]=ecstresstest.c
  81. INCLUDE[ecstresstest]=../include ../apps/include
  82. DEPEND[ecstresstest]=../libcrypto libtestutil.a
  83. SOURCE[ecdsatest]=ecdsatest.c
  84. INCLUDE[ecdsatest]=../include ../apps/include
  85. DEPEND[ecdsatest]=../libcrypto libtestutil.a
  86. SOURCE[gmdifftest]=gmdifftest.c
  87. INCLUDE[gmdifftest]=../include ../apps/include
  88. DEPEND[gmdifftest]=../libcrypto libtestutil.a
  89. SOURCE[pbelutest]=pbelutest.c
  90. INCLUDE[pbelutest]=../include ../apps/include
  91. DEPEND[pbelutest]=../libcrypto libtestutil.a
  92. SOURCE[ideatest]=ideatest.c
  93. INCLUDE[ideatest]=../include ../apps/include
  94. DEPEND[ideatest]=../libcrypto libtestutil.a
  95. SOURCE[md2test]=md2test.c
  96. INCLUDE[md2test]=../include ../apps/include
  97. DEPEND[md2test]=../libcrypto libtestutil.a
  98. SOURCE[hmactest]=hmactest.c
  99. INCLUDE[hmactest]=../include ../apps/include
  100. DEPEND[hmactest]=../libcrypto libtestutil.a
  101. SOURCE[rc2test]=rc2test.c
  102. INCLUDE[rc2test]=../include ../apps/include
  103. DEPEND[rc2test]=../libcrypto libtestutil.a
  104. SOURCE[rc4test]=rc4test.c
  105. INCLUDE[rc4test]=../include ../apps/include
  106. DEPEND[rc4test]=../libcrypto libtestutil.a
  107. SOURCE[rc5test]=rc5test.c
  108. INCLUDE[rc5test]=../include ../apps/include
  109. DEPEND[rc5test]=../libcrypto libtestutil.a
  110. SOURCE[destest]=destest.c
  111. INCLUDE[destest]=../include ../apps/include
  112. DEPEND[destest]=../libcrypto libtestutil.a
  113. SOURCE[mdc2test]=mdc2test.c
  114. INCLUDE[mdc2test]=../include ../apps/include
  115. DEPEND[mdc2test]=../libcrypto libtestutil.a
  116. SOURCE[dhtest]=dhtest.c
  117. INCLUDE[dhtest]=../include ../apps/include
  118. DEPEND[dhtest]=../libcrypto libtestutil.a
  119. SOURCE[enginetest]=enginetest.c
  120. INCLUDE[enginetest]=../include ../apps/include
  121. DEPEND[enginetest]=../libcrypto libtestutil.a
  122. SOURCE[casttest]=casttest.c
  123. INCLUDE[casttest]=../include ../apps/include
  124. DEPEND[casttest]=../libcrypto libtestutil.a
  125. SOURCE[bftest]=bftest.c
  126. INCLUDE[bftest]=../include ../apps/include
  127. DEPEND[bftest]=../libcrypto libtestutil.a
  128. SOURCE[ssltest_old]=ssltest_old.c
  129. INCLUDE[ssltest_old]=.. ../include ../apps/include
  130. DEPEND[ssltest_old]=../libcrypto ../libssl
  131. SOURCE[dsatest]=dsatest.c
  132. INCLUDE[dsatest]=../include ../apps/include
  133. DEPEND[dsatest]=../libcrypto libtestutil.a
  134. SOURCE[dsa_no_digest_size_test]=dsa_no_digest_size_test.c
  135. INCLUDE[dsa_no_digest_size_test]=../include ../apps/include
  136. DEPEND[dsa_no_digest_size_test]=../libcrypto libtestutil.a
  137. SOURCE[exptest]=exptest.c
  138. INCLUDE[exptest]=../include ../apps/include
  139. DEPEND[exptest]=../libcrypto libtestutil.a
  140. SOURCE[rsa_test]=rsa_test.c
  141. INCLUDE[rsa_test]=../include ../apps/include
  142. DEPEND[rsa_test]=../libcrypto libtestutil.a
  143. SOURCE[rsa_mp_test]=rsa_mp_test.c
  144. INCLUDE[rsa_mp_test]=../include ../apps/include
  145. DEPEND[rsa_mp_test]=../libcrypto libtestutil.a
  146. SOURCE[fatalerrtest]=fatalerrtest.c ssltestlib.c
  147. INCLUDE[fatalerrtest]=../include ../apps/include
  148. DEPEND[fatalerrtest]=../libcrypto ../libssl libtestutil.a
  149. SOURCE[tls13ccstest]=tls13ccstest.c ssltestlib.c
  150. INCLUDE[tls13ccstest]=../include ../apps/include
  151. DEPEND[tls13ccstest]=../libcrypto ../libssl libtestutil.a
  152. SOURCE[evp_test]=evp_test.c
  153. INCLUDE[evp_test]=../include ../apps/include
  154. DEPEND[evp_test]=../libcrypto libtestutil.a
  155. IF[{- $disabled{legacy} || !$target{dso_scheme} -}]
  156. DEFINE[evp_test]=NO_LEGACY_MODULE
  157. ENDIF
  158. SOURCE[evp_extra_test]=evp_extra_test.c
  159. INCLUDE[evp_extra_test]=../include ../apps/include ../crypto/include
  160. DEPEND[evp_extra_test]=../libcrypto libtestutil.a
  161. SOURCE[evp_fetch_prov_test]=evp_fetch_prov_test.c
  162. INCLUDE[evp_fetch_prov_test]=../include ../apps/include ../crypto/include
  163. DEPEND[evp_fetch_prov_test]=../libcrypto libtestutil.a
  164. IF[{- $disabled{fips} || !$target{dso_scheme} -}]
  165. DEFINE[evp_extra_test]=NO_FIPS_MODULE
  166. ENDIF
  167. SOURCE[igetest]=igetest.c
  168. INCLUDE[igetest]=../include ../apps/include
  169. DEPEND[igetest]=../libcrypto libtestutil.a
  170. SOURCE[v3nametest]=v3nametest.c
  171. INCLUDE[v3nametest]=../include ../apps/include
  172. DEPEND[v3nametest]=../libcrypto libtestutil.a
  173. SOURCE[crltest]=crltest.c
  174. INCLUDE[crltest]=../include ../apps/include
  175. DEPEND[crltest]=../libcrypto libtestutil.a
  176. SOURCE[v3ext]=v3ext.c
  177. INCLUDE[v3ext]=../include ../apps/include
  178. DEPEND[v3ext]=../libcrypto libtestutil.a
  179. SOURCE[danetest]=danetest.c
  180. INCLUDE[danetest]=../include ../apps/include
  181. DEPEND[danetest]=../libcrypto ../libssl libtestutil.a
  182. SOURCE[constant_time_test]=constant_time_test.c
  183. INCLUDE[constant_time_test]=../include ../apps/include
  184. DEPEND[constant_time_test]=../libcrypto libtestutil.a
  185. SOURCE[verify_extra_test]=verify_extra_test.c
  186. INCLUDE[verify_extra_test]=../include ../apps/include
  187. DEPEND[verify_extra_test]=../libcrypto libtestutil.a
  188. SOURCE[clienthellotest]=clienthellotest.c
  189. INCLUDE[clienthellotest]=../include ../apps/include
  190. DEPEND[clienthellotest]=../libcrypto ../libssl libtestutil.a
  191. SOURCE[bad_dtls_test]=bad_dtls_test.c
  192. INCLUDE[bad_dtls_test]=../include ../apps/include
  193. DEPEND[bad_dtls_test]=../libcrypto ../libssl libtestutil.a
  194. SOURCE[packettest]=packettest.c
  195. INCLUDE[packettest]=../include ../apps/include
  196. DEPEND[packettest]=../libcrypto libtestutil.a
  197. SOURCE[asynctest]=asynctest.c
  198. INCLUDE[asynctest]=../include ../apps/include
  199. DEPEND[asynctest]=../libcrypto
  200. SOURCE[secmemtest]=secmemtest.c
  201. INCLUDE[secmemtest]=../include ../apps/include
  202. DEPEND[secmemtest]=../libcrypto libtestutil.a
  203. SOURCE[srptest]=srptest.c
  204. INCLUDE[srptest]=../include ../apps/include
  205. DEPEND[srptest]=../libcrypto libtestutil.a
  206. SOURCE[memleaktest]=memleaktest.c
  207. INCLUDE[memleaktest]=../include ../apps/include
  208. DEPEND[memleaktest]=../libcrypto libtestutil.a
  209. SOURCE[stack_test]=stack_test.c
  210. INCLUDE[stack_test]=../include ../apps/include
  211. DEPEND[stack_test]=../libcrypto libtestutil.a
  212. SOURCE[lhash_test]=lhash_test.c
  213. INCLUDE[lhash_test]=../include ../apps/include
  214. DEPEND[lhash_test]=../libcrypto libtestutil.a
  215. SOURCE[dtlsv1listentest]=dtlsv1listentest.c
  216. INCLUDE[dtlsv1listentest]=../include ../apps/include
  217. DEPEND[dtlsv1listentest]=../libssl libtestutil.a
  218. SOURCE[ct_test]=ct_test.c
  219. INCLUDE[ct_test]=../include ../apps/include
  220. DEPEND[ct_test]=../libcrypto libtestutil.a
  221. SOURCE[threadstest]=threadstest.c
  222. INCLUDE[threadstest]=../include ../apps/include
  223. DEPEND[threadstest]=../libcrypto libtestutil.a
  224. SOURCE[afalgtest]=afalgtest.c
  225. INCLUDE[afalgtest]=../include ../apps/include
  226. DEPEND[afalgtest]=../libcrypto libtestutil.a
  227. SOURCE[d2i_test]=d2i_test.c
  228. INCLUDE[d2i_test]=../include ../apps/include
  229. DEPEND[d2i_test]=../libcrypto libtestutil.a
  230. SOURCE[ssl_test_ctx_test]=ssl_test_ctx_test.c ssl_test_ctx.c
  231. INCLUDE[ssl_test_ctx_test]=../include ../apps/include
  232. DEPEND[ssl_test_ctx_test]=../libcrypto ../libssl libtestutil.a
  233. SOURCE[ssl_test]=ssl_test.c ssl_test_ctx.c handshake_helper.c
  234. INCLUDE[ssl_test]=../include ../apps/include
  235. DEPEND[ssl_test]=../libcrypto ../libssl libtestutil.a
  236. SOURCE[cipherlist_test]=cipherlist_test.c
  237. INCLUDE[cipherlist_test]=../include ../apps/include
  238. DEPEND[cipherlist_test]=../libcrypto ../libssl libtestutil.a
  239. INCLUDE[ssl_test_ctx.o]=../include
  240. INCLUDE[handshake_helper.o]=.. ../include
  241. INCLUDE[ssltestlib.o]=.. ../include
  242. INCLUDE[cmp_testlib.o]=.. ../include ../apps/include
  243. SOURCE[x509aux]=x509aux.c
  244. INCLUDE[x509aux]=../include ../apps/include
  245. DEPEND[x509aux]=../libcrypto libtestutil.a
  246. SOURCE[asynciotest]=asynciotest.c ssltestlib.c
  247. INCLUDE[asynciotest]=../include ../apps/include
  248. DEPEND[asynciotest]=../libcrypto ../libssl libtestutil.a
  249. SOURCE[bio_callback_test]=bio_callback_test.c
  250. INCLUDE[bio_callback_test]=../include ../apps/include
  251. DEPEND[bio_callback_test]=../libcrypto libtestutil.a
  252. SOURCE[bio_memleak_test]=bio_memleak_test.c
  253. INCLUDE[bio_memleak_test]=../include ../apps/include
  254. DEPEND[bio_memleak_test]=../libcrypto libtestutil.a
  255. SOURCE[bioprinttest]=bioprinttest.c
  256. INCLUDE[bioprinttest]=../include ../apps/include
  257. DEPEND[bioprinttest]=../libcrypto libtestutil.a
  258. SOURCE[params_api_test]=params_api_test.c
  259. INCLUDE[params_api_test]=../include ../apps/include
  260. DEPEND[params_api_test]=../libcrypto libtestutil.a
  261. SOURCE[params_conversion_test]=params_conversion_test.c
  262. INCLUDE[params_conversion_test]=../include ../apps/include
  263. DEPEND[params_conversion_test]=../libcrypto libtestutil.a
  264. SOURCE[param_build_test]=param_build_test.c
  265. INCLUDE[param_build_test]=../include ../apps/include
  266. DEPEND[param_build_test]=../libcrypto.a libtestutil.a
  267. SOURCE[sslapitest]=sslapitest.c ssltestlib.c
  268. INCLUDE[sslapitest]=../include ../apps/include ..
  269. DEPEND[sslapitest]=../libcrypto ../libssl libtestutil.a
  270. SOURCE[ocspapitest]=ocspapitest.c
  271. INCLUDE[ocspapitest]=../include ../apps/include
  272. DEPEND[ocspapitest]=../libcrypto libtestutil.a
  273. SOURCE[dtlstest]=dtlstest.c ssltestlib.c
  274. INCLUDE[dtlstest]=../include ../apps/include
  275. DEPEND[dtlstest]=../libcrypto ../libssl libtestutil.a
  276. SOURCE[sslcorrupttest]=sslcorrupttest.c ssltestlib.c
  277. INCLUDE[sslcorrupttest]=../include ../apps/include
  278. DEPEND[sslcorrupttest]=../libcrypto ../libssl libtestutil.a
  279. SOURCE[bio_enc_test]=bio_enc_test.c
  280. INCLUDE[bio_enc_test]=../include ../apps/include
  281. DEPEND[bio_enc_test]=../libcrypto libtestutil.a
  282. SOURCE[pkey_meth_test]=pkey_meth_test.c
  283. INCLUDE[pkey_meth_test]=../include ../apps/include
  284. DEPEND[pkey_meth_test]=../libcrypto libtestutil.a
  285. SOURCE[pkey_meth_kdf_test]=pkey_meth_kdf_test.c
  286. INCLUDE[pkey_meth_kdf_test]=../include ../apps/include
  287. DEPEND[pkey_meth_kdf_test]=../libcrypto libtestutil.a
  288. SOURCE[evp_kdf_test]=evp_kdf_test.c
  289. INCLUDE[evp_kdf_test]=../include ../apps/include
  290. DEPEND[evp_kdf_test]=../libcrypto libtestutil.a
  291. SOURCE[evp_pkey_dparams_test]=evp_pkey_dparams_test.c
  292. INCLUDE[evp_pkey_dparams_test]=../include ../apps/include
  293. DEPEND[evp_pkey_dparams_test]=../libcrypto libtestutil.a
  294. SOURCE[x509_time_test]=x509_time_test.c
  295. INCLUDE[x509_time_test]=../include ../apps/include
  296. DEPEND[x509_time_test]=../libcrypto libtestutil.a
  297. SOURCE[recordlentest]=recordlentest.c ssltestlib.c
  298. INCLUDE[recordlentest]=../include ../apps/include
  299. DEPEND[recordlentest]=../libcrypto ../libssl libtestutil.a
  300. SOURCE[drbgtest]=drbgtest.c
  301. INCLUDE[drbgtest]=../include ../apps/include ../crypto/include
  302. DEPEND[drbgtest]=../libcrypto.a libtestutil.a
  303. SOURCE[drbg_cavs_test]=drbg_cavs_test.c drbg_cavs_data_ctr.c \
  304. drbg_cavs_data_hash.c drbg_cavs_data_hmac.c
  305. INCLUDE[drbg_cavs_test]=../include ../apps/include . .. ../crypto/include
  306. DEPEND[drbg_cavs_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[servername_test]=servername_test.c ssltestlib.c
  323. INCLUDE[servername_test]=../include ../apps/include
  324. DEPEND[servername_test]=../libcrypto ../libssl libtestutil.a
  325. IF[{- !$disabled{cms} -}]
  326. PROGRAMS{noinst}=cmsapitest
  327. SOURCE[cmsapitest]=cmsapitest.c
  328. INCLUDE[cmsapitest]=../include ../apps/include
  329. DEPEND[cmsapitest]=../libcrypto libtestutil.a
  330. ENDIF
  331. IF[{- !$disabled{psk} -}]
  332. PROGRAMS{noinst}=dtls_mtu_test
  333. SOURCE[dtls_mtu_test]=dtls_mtu_test.c ssltestlib.c
  334. INCLUDE[dtls_mtu_test]=.. ../include ../apps/include
  335. DEPEND[dtls_mtu_test]=../libcrypto ../libssl libtestutil.a
  336. ENDIF
  337. IF[{- !$disabled{shared} -}]
  338. PROGRAMS{noinst}=shlibloadtest
  339. SOURCE[shlibloadtest]=shlibloadtest.c
  340. INCLUDE[shlibloadtest]=../include ../apps/include ../crypto/include
  341. ENDIF
  342. IF[{- $disabled{shared} -}]
  343. PROGRAMS{noinst}=cipher_overhead_test
  344. SOURCE[cipher_overhead_test]=cipher_overhead_test.c
  345. INCLUDE[cipher_overhead_test]=.. ../include ../apps/include
  346. DEPEND[cipher_overhead_test]=../libcrypto ../libssl libtestutil.a
  347. ENDIF
  348. SOURCE[uitest]=uitest.c ../apps/lib/apps_ui.c
  349. INCLUDE[uitest]=.. ../include ../apps/include
  350. DEPEND[uitest]=../libcrypto ../libssl libtestutil.a
  351. SOURCE[cipherbytes_test]=cipherbytes_test.c
  352. INCLUDE[cipherbytes_test]=../include ../apps/include
  353. DEPEND[cipherbytes_test]=../libcrypto ../libssl libtestutil.a
  354. SOURCE[asn1_encode_test]=asn1_encode_test.c
  355. INCLUDE[asn1_encode_test]=../include ../apps/include
  356. DEPEND[asn1_encode_test]=../libcrypto libtestutil.a
  357. SOURCE[asn1_decode_test]=asn1_decode_test.c
  358. INCLUDE[asn1_decode_test]=../include ../apps/include
  359. DEPEND[asn1_decode_test]=../libcrypto libtestutil.a
  360. SOURCE[asn1_string_table_test]=asn1_string_table_test.c
  361. INCLUDE[asn1_string_table_test]=../include ../apps/include
  362. DEPEND[asn1_string_table_test]=../libcrypto libtestutil.a
  363. SOURCE[time_offset_test]=time_offset_test.c
  364. INCLUDE[time_offset_test]=../include ../apps/include
  365. DEPEND[time_offset_test]=../libcrypto libtestutil.a
  366. SOURCE[conf_include_test]=conf_include_test.c
  367. INCLUDE[conf_include_test]=../include ../apps/include
  368. DEPEND[conf_include_test]=../libcrypto libtestutil.a
  369. IF[{- !$disabled{cmp} -}]
  370. PROGRAMS{noinst}=cmp_asn_test cmp_ctx_test
  371. ENDIF
  372. SOURCE[cmp_asn_test]=cmp_asn_test.c cmp_testlib.c
  373. INCLUDE[cmp_asn_test]=.. ../include ../apps/include
  374. DEPEND[cmp_asn_test]=../libcrypto.a libtestutil.a
  375. SOURCE[cmp_ctx_test]=cmp_ctx_test.c cmp_testlib.c
  376. INCLUDE[cmp_ctx_test]=.. ../include ../apps/include
  377. DEPEND[cmp_ctx_test]=../libcrypto.a libtestutil.a
  378. # Internal test programs. These are essentially a collection of internal
  379. # test routines. Some of them need to reach internal symbols that aren't
  380. # available through the shared library (at least on Linux, Solaris, Windows
  381. # and VMS, where the exported symbols are those listed in util/*.num), these
  382. # programs are forcibly linked with the static libraries, where all symbols
  383. # are always available.
  384. IF[1]
  385. PROGRAMS{noinst}=asn1_internal_test modes_internal_test x509_internal_test \
  386. tls13encryptiontest wpackettest ctype_internal_test \
  387. rdrand_sanitytest property_test \
  388. rsa_sp800_56b_test bn_internal_test \
  389. asn1_dsa_internal_test
  390. IF[{- !$disabled{poly1305} -}]
  391. PROGRAMS{noinst}=poly1305_internal_test
  392. ENDIF
  393. IF[{- !$disabled{chacha} -}]
  394. PROGRAMS{noinst}=chacha_internal_test
  395. ENDIF
  396. IF[{- !$disabled{siphash} -}]
  397. PROGRAMS{noinst}=siphash_internal_test
  398. ENDIF
  399. IF[{- !$disabled{sm2} -}]
  400. PROGRAMS{noinst}=sm2_internal_test
  401. ENDIF
  402. IF[{- !$disabled{sm4} -}]
  403. PROGRAMS{noinst}=sm4_internal_test
  404. ENDIF
  405. IF[{- !$disabled{ec} -}]
  406. PROGRAMS{noinst}=ec_internal_test curve448_internal_test
  407. ENDIF
  408. SOURCE[poly1305_internal_test]=poly1305_internal_test.c
  409. INCLUDE[poly1305_internal_test]=.. ../include ../apps/include ../crypto/include
  410. DEPEND[poly1305_internal_test]=../libcrypto.a libtestutil.a
  411. SOURCE[chacha_internal_test]=chacha_internal_test.c
  412. INCLUDE[chacha_internal_test]=.. ../include ../apps/include ../crypto/include
  413. DEPEND[chacha_internal_test]=../libcrypto.a libtestutil.a
  414. SOURCE[asn1_internal_test]=asn1_internal_test.c
  415. INCLUDE[asn1_internal_test]=.. ../include ../apps/include ../crypto/include
  416. DEPEND[asn1_internal_test]=../libcrypto.a libtestutil.a
  417. SOURCE[modes_internal_test]=modes_internal_test.c
  418. INCLUDE[modes_internal_test]=.. ../include ../apps/include ../crypto/include
  419. DEPEND[modes_internal_test]=../libcrypto.a libtestutil.a
  420. SOURCE[x509_internal_test]=x509_internal_test.c
  421. INCLUDE[x509_internal_test]=.. ../include ../apps/include
  422. DEPEND[x509_internal_test]=../libcrypto.a libtestutil.a
  423. SOURCE[tls13encryptiontest]=tls13encryptiontest.c
  424. INCLUDE[tls13encryptiontest]=.. ../include ../apps/include
  425. DEPEND[tls13encryptiontest]=../libcrypto ../libssl.a libtestutil.a
  426. SOURCE[wpackettest]=wpackettest.c
  427. INCLUDE[wpackettest]=../include ../apps/include
  428. DEPEND[wpackettest]=../libcrypto ../libssl.a libtestutil.a
  429. SOURCE[property_test]=property_test.c
  430. INCLUDE[property_test]=.. ../include ../apps/include
  431. DEPEND[property_test]=../libcrypto.a libtestutil.a
  432. SOURCE[ctype_internal_test]=ctype_internal_test.c
  433. INCLUDE[ctype_internal_test]=.. ../include ../apps/include
  434. DEPEND[ctype_internal_test]=../libcrypto.a libtestutil.a
  435. SOURCE[sparse_array_test]=sparse_array_test.c
  436. INCLUDE[sparse_array_test]=../crypto/include ../include ../apps/include
  437. DEPEND[sparse_array_test]=../libcrypto.a libtestutil.a
  438. SOURCE[siphash_internal_test]=siphash_internal_test.c
  439. INCLUDE[siphash_internal_test]=.. ../include ../apps/include ../crypto/include
  440. DEPEND[siphash_internal_test]=../libcrypto.a libtestutil.a
  441. SOURCE[sm2_internal_test]=sm2_internal_test.c
  442. INCLUDE[sm2_internal_test]=../include ../apps/include ../crypto/include
  443. DEPEND[sm2_internal_test]=../libcrypto.a libtestutil.a
  444. SOURCE[sm4_internal_test]=sm4_internal_test.c
  445. INCLUDE[sm4_internal_test]=.. ../include ../apps/include ../crypto/include
  446. DEPEND[sm4_internal_test]=../libcrypto.a libtestutil.a
  447. SOURCE[ec_internal_test]=ec_internal_test.c
  448. INCLUDE[ec_internal_test]=../include ../crypto/ec ../apps/include ../crypto/include
  449. DEPEND[ec_internal_test]=../libcrypto.a libtestutil.a
  450. SOURCE[curve448_internal_test]=curve448_internal_test.c
  451. INCLUDE[curve448_internal_test]=.. ../include ../apps/include ../crypto/ec/curve448
  452. DEPEND[curve448_internal_test]=../libcrypto.a libtestutil.a
  453. SOURCE[rdrand_sanitytest]=rdrand_sanitytest.c
  454. INCLUDE[rdrand_sanitytest]=../include ../apps/include
  455. DEPEND[rdrand_sanitytest]=../libcrypto.a libtestutil.a
  456. SOURCE[rsa_sp800_56b_test]=rsa_sp800_56b_test.c
  457. INCLUDE[rsa_sp800_56b_test]=.. ../include ../crypto/rsa ../apps/include
  458. DEPEND[rsa_sp800_56b_test]=../libcrypto.a libtestutil.a
  459. SOURCE[bn_internal_test]=bn_internal_test.c
  460. INCLUDE[bn_internal_test]=.. ../include ../crypto/bn ../apps/include
  461. DEPEND[bn_internal_test]=../libcrypto.a libtestutil.a
  462. SOURCE[asn1_dsa_internal_test]=asn1_dsa_internal_test.c
  463. INCLUDE[asn1_dsa_internal_test]=.. ../include ../apps/include ../crypto/include
  464. DEPEND[asn1_dsa_internal_test]=../libcrypto.a libtestutil.a
  465. ENDIF
  466. IF[{- !$disabled{mdc2} -}]
  467. PROGRAMS{noinst}=mdc2_internal_test
  468. ENDIF
  469. SOURCE[mdc2_internal_test]=mdc2_internal_test.c
  470. INCLUDE[mdc2_internal_test]=.. ../include ../apps/include
  471. DEPEND[mdc2_internal_test]=../libcrypto libtestutil.a
  472. PROGRAMS{noinst}=asn1_time_test
  473. SOURCE[asn1_time_test]=asn1_time_test.c
  474. INCLUDE[asn1_time_test]=../include ../apps/include
  475. DEPEND[asn1_time_test]=../libcrypto libtestutil.a
  476. # We disable this test completely in a shared build because it deliberately
  477. # redefines some internal libssl symbols. This doesn't work in a non-shared
  478. # build
  479. IF[{- !$disabled{shared} -}]
  480. PROGRAMS{noinst}=tls13secretstest
  481. SOURCE[tls13secretstest]=tls13secretstest.c
  482. SOURCE[tls13secretstest]= ../ssl/tls13_enc.c ../crypto/packet.c
  483. INCLUDE[tls13secretstest]=.. ../include ../apps/include
  484. DEPEND[tls13secretstest]=../libcrypto ../libssl libtestutil.a
  485. ENDIF
  486. SOURCE[sslbuffertest]=sslbuffertest.c ssltestlib.c
  487. INCLUDE[sslbuffertest]=../include ../apps/include
  488. DEPEND[sslbuffertest]=../libcrypto ../libssl libtestutil.a
  489. SOURCE[sysdefaulttest]=sysdefaulttest.c
  490. INCLUDE[sysdefaulttest]=../include ../apps/include
  491. DEPEND[sysdefaulttest]=../libcrypto ../libssl libtestutil.a
  492. SOURCE[errtest]=errtest.c
  493. INCLUDE[errtest]=../include ../apps/include
  494. DEPEND[errtest]=../libcrypto libtestutil.a
  495. SOURCE[gosttest]=gosttest.c ssltestlib.c
  496. INCLUDE[gosttest]=../include ../apps/include ..
  497. DEPEND[gosttest]=../libcrypto ../libssl libtestutil.a
  498. SOURCE[aesgcmtest]=aesgcmtest.c
  499. INCLUDE[aesgcmtest]=../include ../apps/include ..
  500. DEPEND[aesgcmtest]=../libcrypto libtestutil.a
  501. PROGRAMS{noinst}=context_internal_test
  502. SOURCE[context_internal_test]=context_internal_test.c
  503. INCLUDE[context_internal_test]=.. ../include ../apps/include
  504. DEPEND[context_internal_test]=../libcrypto.a libtestutil.a
  505. PROGRAMS{noinst}=provider_internal_test
  506. DEFINE[provider_internal_test]=PROVIDER_INIT_FUNCTION_NAME=p_test_init
  507. SOURCE[provider_internal_test]=provider_internal_test.c p_test.c
  508. INCLUDE[provider_internal_test]=../include ../apps/include
  509. DEPEND[provider_internal_test]=../libcrypto.a libtestutil.a
  510. PROGRAMS{noinst}=provider_test
  511. DEFINE[provider_test]=PROVIDER_INIT_FUNCTION_NAME=p_test_init
  512. SOURCE[provider_test]=provider_test.c p_test.c
  513. INCLUDE[provider_test]=../include ../apps/include
  514. DEPEND[provider_test]=../libcrypto.a libtestutil.a
  515. IF[{- !$disabled{module} -}]
  516. MODULES{noinst}=p_test
  517. SOURCE[p_test]=p_test.c
  518. INCLUDE[p_test]=../include
  519. IF[{- defined $target{shared_defflag} -}]
  520. SOURCE[p_test]=p_test.ld
  521. GENERATE[p_test.ld]=../util/providers.num
  522. ENDIF
  523. ENDIF
  524. IF[{- $disabled{module} || !$target{dso_scheme} -}]
  525. DEFINE[provider_test]=NO_PROVIDER_MODULE
  526. DEFINE[provider_internal_test]=NO_PROVIDER_MODULE
  527. ENDIF
  528. DEPEND[]=provider_internal_test.conf
  529. GENERATE[provider_internal_test.conf]=provider_internal_test.conf.in
  530. PROGRAMS{noinst}=params_test
  531. SOURCE[params_test]=params_test.c
  532. INCLUDE[params_test]=.. ../include ../apps/include
  533. DEPEND[params_test]=../libcrypto.a libtestutil.a
  534. PROGRAMS{noinst}=namemap_internal_test
  535. SOURCE[namemap_internal_test]=namemap_internal_test.c
  536. INCLUDE[namemap_internal_test]=.. ../include ../apps/include
  537. DEPEND[namemap_internal_test]=../libcrypto.a libtestutil.a
  538. ENDIF
  539. {-
  540. use File::Spec::Functions;
  541. use File::Basename;
  542. use OpenSSL::Glob;
  543. my @nogo_headers = ( "asn1_mac.h",
  544. "opensslconf.h",
  545. "__decc_include_prologue.h",
  546. "__decc_include_epilogue.h" );
  547. my @nogo_headers_re = ( qr/.*err\.h/ );
  548. my @headerfiles = glob catfile($sourcedir,
  549. updir(), "include", "openssl", "*.h");
  550. foreach my $headerfile (@headerfiles) {
  551. my $name = basename($headerfile, ".h");
  552. next if $disabled{$name};
  553. next if grep { $_ eq lc("$name.h") } @nogo_headers;
  554. next if grep { lc("$name.h") =~ m/$_/i } @nogo_headers_re;
  555. $OUT .= <<"_____";
  556. PROGRAMS{noinst}=buildtest_c_$name
  557. SOURCE[buildtest_c_$name]=buildtest_$name.c
  558. GENERATE[buildtest_$name.c]=generate_buildtest.pl $name
  559. INCLUDE[buildtest_c_$name]=../include
  560. DEPEND[buildtest_c_$name]=../libssl ../libcrypto
  561. _____
  562. $OUT .= <<"_____" if $config{CXX} && !$disabled{"buildtest-c++"};
  563. PROGRAMS{noinst}=buildtest_cc_$name
  564. SOURCE[buildtest_cc_$name]=buildtest_$name.cc
  565. GENERATE[buildtest_$name.cc]=generate_buildtest.pl $name
  566. INCLUDE[buildtest_cc_$name]=../include
  567. DEPEND[buildtest_cc_$name]=../libssl ../libcrypto
  568. _____
  569. }
  570. -}