build.info 31 KB

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