1# TODO: use ../apps/libapps.a instead of direct ../apps/lib source. 2# This can't currently be done, because some of its units drag in too many 3# unresolved references that don't apply here. 4# Most of all, ../apps/lib/apps.c needs to be divided in smaller pieces to 5# be useful here. 6# 7# Auxiliary program source (copied from ../apps/build.info) 8IF[{- $config{target} =~ /^(?:VC-|mingw|BC-)/ -}] 9 # It's called 'init', but doesn't have much 'init' in it... 10 $AUXLIBAPPSSRC=../apps/lib/win32_init.c 11ENDIF 12IF[{- $config{target} =~ /^vms-/ -}] 13 $AUXLIBAPPSSRC=../apps/lib/vms_term_sock.c ../apps/lib/vms_decc_argv.c 14ENDIF 15# Program init source, that don't have direct linkage with the rest of the 16# source, and can therefore not be part of a library. 17IF[{- !$disabled{uplink} -}] 18 $INITSRC=../ms/applink.c 19ENDIF 20$LIBAPPSSRC=../apps/lib/opt.c $AUXLIBAPPSSRC 21 22IF[{- !$disabled{tests} -}] 23 LIBS{noinst,has_main}=libtestutil.a 24 SOURCE[libtestutil.a]=testutil/basic_output.c testutil/output.c \ 25 testutil/driver.c testutil/tests.c testutil/cb.c testutil/stanza.c \ 26 testutil/format_output.c testutil/load.c testutil/fake_random.c \ 27 testutil/test_cleanup.c testutil/main.c testutil/testutil_init.c \ 28 testutil/options.c testutil/test_options.c testutil/provider.c \ 29 testutil/apps_shims.c testutil/random.c testutil/helper.c $LIBAPPSSRC 30 INCLUDE[libtestutil.a]=../include ../apps/include .. 31 DEPEND[libtestutil.a]=../libcrypto 32 33 PROGRAMS{noinst}= \ 34 confdump \ 35 versions \ 36 aborttest test_test pkcs12_format_test pkcs12_api_test \ 37 sanitytest time_test rsa_complex exdatatest bntest \ 38 ecstresstest gmdifftest pbelutest \ 39 destest mdc2test sha_test \ 40 exptest pbetest localetest evp_pkey_ctx_new_from_name \ 41 evp_pkey_provided_test evp_test evp_extra_test evp_extra_test2 \ 42 evp_fetch_prov_test evp_libctx_test ossl_store_test \ 43 v3nametest v3ext punycode_test evp_byname_test \ 44 crltest danetest bad_dtls_test lhash_test sparse_array_test \ 45 conf_include_test params_api_test params_conversion_test \ 46 constant_time_test safe_math_test verify_extra_test clienthellotest \ 47 packettest asynctest secmemtest srptest memleaktest stack_test \ 48 dtlsv1listentest ct_test threadstest afalgtest d2i_test \ 49 ssl_test_ctx_test ssl_test x509aux cipherlist_test asynciotest \ 50 bio_callback_test bio_memleak_test bio_core_test bio_dgram_test param_build_test \ 51 bioprinttest sslapitest ssl_handshake_rtt_test dtlstest sslcorrupttest \ 52 bio_base64_test bio_enc_test pkey_meth_test pkey_meth_kdf_test evp_kdf_test uitest \ 53 cipherbytes_test threadstest_fips threadpool_test \ 54 asn1_encode_test asn1_decode_test asn1_string_table_test asn1_stable_parse_test \ 55 x509_time_test x509_dup_cert_test x509_check_cert_pkey_test \ 56 recordlentest drbgtest rand_status_test sslbuffertest \ 57 time_offset_test pemtest ssl_cert_table_internal_test ciphername_test \ 58 servername_test ocspapitest fatalerrtest tls13ccstest \ 59 sysdefaulttest errtest ssl_ctx_test build_wincrypt_test \ 60 context_internal_test aesgcmtest params_test evp_pkey_dparams_test \ 61 keymgmt_internal_test hexstr_test provider_status_test defltfips_test \ 62 bio_readbuffer_test user_property_test pkcs7_test upcallstest \ 63 provfetchtest prov_config_test rand_test \ 64 ca_internals_test bio_tfo_test membio_test bio_dgram_test list_test \ 65 fips_version_test x509_test hpke_test pairwise_fail_test \ 66 nodefltctxtest evp_xof_test x509_load_cert_file_test bio_meth_test \ 67 x509_acert_test x509_req_test strtoultest bio_pw_callback_test 68 69 IF[{- !$disabled{'rpk'} -}] 70 PROGRAMS{noinst}=rpktest 71 ENDIF 72 73 IF[{- !$disabled{'deprecated-3.0'} -}] 74 PROGRAMS{noinst}=enginetest 75 ENDIF 76 77 IF[{- !$disabled{quic} -}] 78 PROGRAMS{noinst}=priority_queue_test quicfaultstest quicapitest \ 79 quic_newcid_test quic_srt_gen_test 80 ENDIF 81 82 IF[{- !$disabled{qlog} -}] 83 PROGRAMS{noinst}=json_test quic_qlog_test 84 ENDIF 85 86 IF[{- !$disabled{comp} && (!$disabled{brotli} || !$disabled{zstd} || !$disabled{zlib}) -}] 87 PROGRAMS{noinst}=cert_comp_test 88 ENDIF 89 90 SOURCE[confdump]=confdump.c 91 INCLUDE[confdump]=../include ../apps/include 92 DEPEND[confdump]=../libcrypto 93 94 SOURCE[versions]=versions.c 95 INCLUDE[versions]=../include ../apps/include 96 DEPEND[versions]=../libcrypto 97 98 SOURCE[aborttest]=aborttest.c 99 INCLUDE[aborttest]=../include ../apps/include 100 DEPEND[aborttest]=../libcrypto 101 102 SOURCE[sanitytest]=sanitytest.c 103 INCLUDE[sanitytest]=../include ../apps/include 104 DEPEND[sanitytest]=../libcrypto.a libtestutil.a 105 106 SOURCE[time_test]=time_test.c 107 INCLUDE[time_test]=../include ../apps/include 108 DEPEND[time_test]=../libcrypto.a libtestutil.a 109 110 SOURCE[rand_test]=rand_test.c 111 INCLUDE[rand_test]=../include ../apps/include 112 DEPEND[rand_test]=../libcrypto.a libtestutil.a 113 114 SOURCE[rsa_complex]=rsa_complex.c 115 INCLUDE[rsa_complex]=../include ../apps/include 116 117 SOURCE[test_test]=test_test.c 118 INCLUDE[test_test]=../include ../apps/include 119 DEPEND[test_test]=../libcrypto libtestutil.a 120 121 SOURCE[exdatatest]=exdatatest.c 122 INCLUDE[exdatatest]=../include ../apps/include 123 DEPEND[exdatatest]=../libcrypto libtestutil.a 124 125 SOURCE[bntest]=bntest.c 126 INCLUDE[bntest]=../include ../apps/include 127 DEPEND[bntest]=../libcrypto libtestutil.a 128 129 SOURCE[ectest]=ectest.c 130 INCLUDE[ectest]=../include ../apps/include 131 DEPEND[ectest]=../libcrypto.a libtestutil.a 132 133 SOURCE[ecstresstest]=ecstresstest.c 134 INCLUDE[ecstresstest]=../include ../apps/include 135 DEPEND[ecstresstest]=../libcrypto libtestutil.a 136 137 SOURCE[gmdifftest]=gmdifftest.c 138 INCLUDE[gmdifftest]=../include ../apps/include 139 DEPEND[gmdifftest]=../libcrypto libtestutil.a 140 141 SOURCE[pbelutest]=pbelutest.c 142 INCLUDE[pbelutest]=../include ../apps/include 143 DEPEND[pbelutest]=../libcrypto libtestutil.a 144 145 SOURCE[mdc2test]=mdc2test.c 146 INCLUDE[mdc2test]=../include ../apps/include 147 DEPEND[mdc2test]=../libcrypto libtestutil.a 148 149 SOURCE[sha_test]=sha_test.c 150 INCLUDE[sha_test]=../include ../apps/include 151 DEPEND[sha_test]=../libcrypto libtestutil.a 152 153 SOURCE[enginetest]=enginetest.c 154 INCLUDE[enginetest]=../include ../apps/include 155 DEPEND[enginetest]=../libcrypto libtestutil.a 156 157 SOURCE[exptest]=exptest.c 158 INCLUDE[exptest]=../include ../apps/include 159 DEPEND[exptest]=../libcrypto libtestutil.a 160 161 SOURCE[localetest]=localetest.c 162 INCLUDE[localetest]=../include ../apps/include 163 DEPEND[localetest]=../libcrypto libtestutil.a 164 165 SOURCE[evp_pkey_ctx_new_from_name]=evp_pkey_ctx_new_from_name.c 166 INCLUDE[evp_pkey_ctx_new_from_name]=../include ../apps/include 167 DEPEND[evp_pkey_ctx_new_from_name]=../libcrypto 168 169 SOURCE[pbetest]=pbetest.c 170 INCLUDE[pbetest]=../include ../apps/include 171 DEPEND[pbetest]=../libcrypto libtestutil.a 172 173 SOURCE[fatalerrtest]=fatalerrtest.c helpers/ssltestlib.c 174 INCLUDE[fatalerrtest]=../include ../apps/include 175 DEPEND[fatalerrtest]=../libcrypto ../libssl libtestutil.a 176 177 SOURCE[tls13ccstest]=tls13ccstest.c helpers/ssltestlib.c 178 INCLUDE[tls13ccstest]=../include ../apps/include 179 DEPEND[tls13ccstest]=../libcrypto ../libssl libtestutil.a 180 181 SOURCE[upcallstest]=upcallstest.c 182 INCLUDE[upcallstest]=../include ../apps/include 183 DEPEND[upcallstest]=../libcrypto libtestutil.a 184 185 SOURCE[user_property_test]=user_property_test.c 186 INCLUDE[user_property_test]=../include ../apps/include 187 DEPEND[user_property_test]=../libcrypto libtestutil.a 188 189 SOURCE[evp_test]=evp_test.c 190 INCLUDE[evp_test]=../include ../apps/include 191 DEPEND[evp_test]=../libcrypto libtestutil.a 192 IF[{- $disabled{legacy} || !$target{dso_scheme} -}] 193 DEFINE[evp_test]=NO_LEGACY_MODULE 194 ENDIF 195 196 SOURCE[evp_extra_test]=evp_extra_test.c fake_rsaprov.c fake_pipelineprov.c 197 INCLUDE[evp_extra_test]=../include ../apps/include \ 198 ../providers/common/include \ 199 ../providers/implementations/include 200 DEPEND[evp_extra_test]=../libcrypto.a libtestutil.a 201 IF[{- !$disabled{module} && !$disabled{legacy} -}] 202 DEFINE[evp_extra_test]=STATIC_LEGACY 203 SOURCE[evp_extra_test]=../providers/legacyprov.c 204 DEPEND[evp_extra_test]=../providers/liblegacy.a \ 205 ../providers/libcommon.a 206 ENDIF 207 208 SOURCE[hpke_test]=hpke_test.c 209 INCLUDE[hpke_test]=../include ../apps/include 210 DEPEND[hpke_test]=../libcrypto.a libtestutil.a 211 212 SOURCE[evp_extra_test2]=evp_extra_test2.c $INITSRC tls-provider.c 213 INCLUDE[evp_extra_test2]=../include ../apps/include 214 DEPEND[evp_extra_test2]=../libcrypto libtestutil.a 215 216 SOURCE[evp_libctx_test]=evp_libctx_test.c 217 INCLUDE[evp_libctx_test]=../include ../apps/include 218 DEPEND[evp_libctx_test]=../libcrypto.a libtestutil.a 219 220 SOURCE[evp_fetch_prov_test]=evp_fetch_prov_test.c 221 INCLUDE[evp_fetch_prov_test]=../include ../apps/include 222 DEPEND[evp_fetch_prov_test]=../libcrypto libtestutil.a 223 224 SOURCE[provfetchtest]=provfetchtest.c 225 INCLUDE[provfetchtest]=../include ../apps/include 226 DEPEND[provfetchtest]=../libcrypto.a libtestutil.a 227 228 SOURCE[prov_config_test]=prov_config_test.c 229 INCLUDE[prov_config_test]=../include ../apps/include 230 DEPEND[prov_config_test]=../libcrypto.a libtestutil.a 231 232 SOURCE[evp_pkey_provided_test]=evp_pkey_provided_test.c 233 INCLUDE[evp_pkey_provided_test]=../include ../apps/include 234 DEPEND[evp_pkey_provided_test]=../libcrypto.a libtestutil.a 235 236 IF[{- !$disabled{'acvp-tests'} -}] 237 PROGRAMS{noinst}=acvp_test 238 239 SOURCE[acvp_test]=acvp_test.c 240 INCLUDE[acvp_test]=../include ../apps/include 241 DEPEND[acvp_test]=../libcrypto.a libtestutil.a 242 ENDIF 243 244 SOURCE[ossl_store_test]=ossl_store_test.c 245 INCLUDE[ossl_store_test]=../include ../apps/include 246 DEPEND[ossl_store_test]=../libcrypto.a libtestutil.a 247 248 SOURCE[provider_status_test]=provider_status_test.c 249 INCLUDE[provider_status_test]=../include ../apps/include 250 DEPEND[provider_status_test]=../libcrypto.a libtestutil.a 251 252 SOURCE[pairwise_fail_test]=pairwise_fail_test.c 253 INCLUDE[pairwise_fail_test]=../include ../apps/include 254 DEPEND[pairwise_fail_test]=../libcrypto.a libtestutil.a 255 256 SOURCE[nodefltctxtest]=nodefltctxtest.c 257 INCLUDE[nodefltctxtest]=../include ../apps/include 258 DEPEND[nodefltctxtest]=../libcrypto.a libtestutil.a 259 260 SOURCE[evp_pkey_dhkem_test]=evp_pkey_dhkem_test.c 261 INCLUDE[evp_pkey_dhkem_test]=../include ../apps/include 262 DEPEND[evp_pkey_dhkem_test]=../libcrypto.a libtestutil.a 263 264 IF[{- !$disabled{'deprecated-3.0'} -}] 265 PROGRAMS{noinst}=igetest bftest casttest 266 267 SOURCE[igetest]=igetest.c 268 INCLUDE[igetest]=../include ../apps/include 269 DEPEND[igetest]=../libcrypto libtestutil.a 270 271 SOURCE[bftest]=bftest.c 272 INCLUDE[bftest]=../include ../apps/include 273 DEPEND[bftest]=../libcrypto libtestutil.a 274 275 SOURCE[casttest]=casttest.c 276 INCLUDE[casttest]=../include ../apps/include 277 DEPEND[casttest]=../libcrypto libtestutil.a 278 ENDIF 279 280 SOURCE[v3nametest]=v3nametest.c 281 INCLUDE[v3nametest]=../include ../apps/include 282 DEPEND[v3nametest]=../libcrypto libtestutil.a 283 284 SOURCE[crltest]=crltest.c 285 INCLUDE[crltest]=../include ../apps/include 286 DEPEND[crltest]=../libcrypto libtestutil.a 287 288 SOURCE[v3ext]=v3ext.c 289 INCLUDE[v3ext]=../include ../apps/include 290 DEPEND[v3ext]=../libcrypto libtestutil.a 291 292 SOURCE[danetest]=danetest.c 293 INCLUDE[danetest]=../include ../apps/include 294 DEPEND[danetest]=../libcrypto ../libssl libtestutil.a 295 296 SOURCE[constant_time_test]=constant_time_test.c 297 INCLUDE[constant_time_test]=../include ../apps/include 298 DEPEND[constant_time_test]=../libcrypto libtestutil.a 299 300 SOURCE[safe_math_test]=safe_math_test.c 301 INCLUDE[safe_math_test]=../include ../apps/include 302 DEPEND[safe_math_test]=../libcrypto libtestutil.a 303 304 SOURCE[verify_extra_test]=verify_extra_test.c 305 INCLUDE[verify_extra_test]=../include ../apps/include 306 DEPEND[verify_extra_test]=../libcrypto libtestutil.a 307 308 SOURCE[clienthellotest]=clienthellotest.c 309 INCLUDE[clienthellotest]=../include ../apps/include 310 DEPEND[clienthellotest]=../libcrypto ../libssl libtestutil.a 311 312 SOURCE[bad_dtls_test]=bad_dtls_test.c 313 INCLUDE[bad_dtls_test]=../include ../apps/include 314 DEPEND[bad_dtls_test]=../libcrypto ../libssl libtestutil.a 315 316 SOURCE[packettest]=packettest.c ../crypto/quic_vlint.c 317 INCLUDE[packettest]=../include ../apps/include 318 DEPEND[packettest]=../libcrypto libtestutil.a 319 320 SOURCE[quic_wire_test]=quic_wire_test.c 321 INCLUDE[quic_wire_test]=../include ../apps/include 322 DEPEND[quic_wire_test]=../libcrypto.a ../libssl.a libtestutil.a 323 324 SOURCE[quic_record_test]=quic_record_test.c 325 INCLUDE[quic_record_test]=../include ../apps/include 326 DEPEND[quic_record_test]=../libcrypto.a ../libssl.a libtestutil.a 327 328 SOURCE[quic_fc_test]=quic_fc_test.c 329 INCLUDE[quic_fc_test]=../include ../apps/include 330 DEPEND[quic_fc_test]=../libcrypto.a ../libssl.a libtestutil.a 331 332 SOURCE[quic_stream_test]=quic_stream_test.c 333 INCLUDE[quic_stream_test]=../include ../apps/include 334 DEPEND[quic_stream_test]=../libcrypto.a ../libssl.a libtestutil.a 335 336 SOURCE[quic_cfq_test]=quic_cfq_test.c 337 INCLUDE[quic_cfq_test]=../include ../apps/include 338 DEPEND[quic_cfq_test]=../libcrypto.a ../libssl.a libtestutil.a 339 340 SOURCE[quic_txpim_test]=quic_txpim_test.c 341 INCLUDE[quic_txpim_test]=../include ../apps/include 342 DEPEND[quic_txpim_test]=../libcrypto.a ../libssl.a libtestutil.a 343 344 SOURCE[quic_srtm_test]=quic_srtm_test.c 345 INCLUDE[quic_srtm_test]=../include ../apps/include 346 DEPEND[quic_srtm_test]=../libcrypto.a ../libssl.a libtestutil.a 347 348 SOURCE[quic_lcidm_test]=quic_lcidm_test.c 349 INCLUDE[quic_lcidm_test]=../include ../apps/include 350 DEPEND[quic_lcidm_test]=../libcrypto.a ../libssl.a libtestutil.a 351 352 SOURCE[quic_rcidm_test]=quic_rcidm_test.c 353 INCLUDE[quic_rcidm_test]=../include ../apps/include 354 DEPEND[quic_rcidm_test]=../libcrypto.a ../libssl.a libtestutil.a 355 356 SOURCE[quic_fifd_test]=quic_fifd_test.c cc_dummy.c 357 INCLUDE[quic_fifd_test]=../include ../apps/include 358 DEPEND[quic_fifd_test]=../libcrypto.a ../libssl.a libtestutil.a 359 360 SOURCE[quic_txp_test]=quic_txp_test.c cc_dummy.c 361 INCLUDE[quic_txp_test]=../include ../apps/include 362 DEPEND[quic_txp_test]=../libcrypto.a ../libssl.a libtestutil.a 363 364 SOURCE[quic_tserver_test]=quic_tserver_test.c 365 INCLUDE[quic_tserver_test]=../include ../apps/include 366 DEPEND[quic_tserver_test]=../libcrypto.a ../libssl.a libtestutil.a 367 368 SOURCE[quic_client_test]=quic_client_test.c 369 INCLUDE[quic_client_test]=../include ../apps/include 370 DEPEND[quic_client_test]=../libcrypto.a ../libssl.a libtestutil.a 371 372 $QUICTESTHELPERS=helpers/quictestlib.c helpers/noisydgrambio.c helpers/pktsplitbio.c 373 374 SOURCE[quic_multistream_test]=quic_multistream_test.c helpers/ssltestlib.c $QUICTESTHELPERS 375 INCLUDE[quic_multistream_test]=../include ../apps/include 376 DEPEND[quic_multistream_test]=../libcrypto.a ../libssl.a libtestutil.a 377 378 IF[{- !$disabled{'qlog'} -}] 379 SOURCE[quic_qlog_test]=quic_qlog_test.c 380 INCLUDE[quic_qlog_test]=../include ../apps/include 381 DEPEND[quic_qlog_test]=../libcrypto.a ../libssl.a libtestutil.a 382 ENDIF 383 384 SOURCE[asynctest]=asynctest.c 385 INCLUDE[asynctest]=../include ../apps/include 386 DEPEND[asynctest]=../libcrypto 387 388 SOURCE[secmemtest]=secmemtest.c 389 INCLUDE[secmemtest]=../include ../apps/include 390 DEPEND[secmemtest]=../libcrypto libtestutil.a 391 392 SOURCE[srptest]=srptest.c 393 INCLUDE[srptest]=../include ../apps/include 394 DEPEND[srptest]=../libcrypto libtestutil.a 395 396 SOURCE[memleaktest]=memleaktest.c 397 INCLUDE[memleaktest]=../include ../apps/include 398 DEPEND[memleaktest]=../libcrypto libtestutil.a 399 400 SOURCE[pkcs12_format_test]=pkcs12_format_test.c helpers/pkcs12.c 401 INCLUDE[pkcs12_format_test]=../include ../apps/include 402 DEPEND[pkcs12_format_test]=../libcrypto libtestutil.a 403 404 SOURCE[pkcs12_api_test]=pkcs12_api_test.c helpers/pkcs12.c 405 INCLUDE[pkcs12_api_test]=../include ../apps/include 406 DEPEND[pkcs12_api_test]=../libcrypto libtestutil.a 407 408 SOURCE[pkcs7_test]=pkcs7_test.c 409 INCLUDE[pkcs7_test]=../include ../apps/include 410 DEPEND[pkcs7_test]=../libcrypto libtestutil.a 411 412 SOURCE[punycode_test]=punycode_test.c 413 INCLUDE[punycode_test]=../include ../apps/include 414 DEPEND[punycode_test]=../libcrypto.a libtestutil.a 415 416 SOURCE[evp_byname_test]=evp_byname_test.c 417 INCLUDE[evp_byname_test]=../include ../apps/include 418 DEPEND[evp_byname_test]=../libcrypto libtestutil.a 419 420 SOURCE[stack_test]=stack_test.c 421 INCLUDE[stack_test]=../include ../apps/include 422 DEPEND[stack_test]=../libcrypto libtestutil.a 423 424 SOURCE[lhash_test]=lhash_test.c 425 INCLUDE[lhash_test]=../include ../apps/include 426 DEPEND[lhash_test]=../libcrypto.a libtestutil.a 427 428 SOURCE[dtlsv1listentest]=dtlsv1listentest.c 429 INCLUDE[dtlsv1listentest]=../include ../apps/include 430 DEPEND[dtlsv1listentest]=../libssl libtestutil.a 431 432 SOURCE[ct_test]=ct_test.c 433 INCLUDE[ct_test]=../include ../apps/include 434 DEPEND[ct_test]=../libcrypto libtestutil.a 435 436 SOURCE[threadpool_test]=threadpool_test.c 437 INCLUDE[threadpool_test]=.. ../include ../apps/include 438 DEPEND[threadpool_test]=../libcrypto.a libtestutil.a 439 440 SOURCE[threadstest]=threadstest.c 441 INCLUDE[threadstest]=.. ../include ../apps/include 442 DEPEND[threadstest]=../libcrypto.a libtestutil.a 443 444 SOURCE[threadstest_fips]=threadstest_fips.c 445 INCLUDE[threadstest_fips]=../include ../apps/include 446 DEPEND[threadstest_fips]=../libcrypto libtestutil.a 447 448 SOURCE[afalgtest]=afalgtest.c 449 INCLUDE[afalgtest]=../include ../apps/include 450 DEPEND[afalgtest]=../libcrypto libtestutil.a 451 452 SOURCE[d2i_test]=d2i_test.c 453 INCLUDE[d2i_test]=../include ../apps/include 454 DEPEND[d2i_test]=../libcrypto libtestutil.a 455 456 SOURCE[ssl_test_ctx_test]=ssl_test_ctx_test.c helpers/ssl_test_ctx.c 457 INCLUDE[ssl_test_ctx_test]=../include ../apps/include 458 DEPEND[ssl_test_ctx_test]=../libcrypto ../libssl libtestutil.a 459 460 SOURCE[ssl_test]=ssl_test.c helpers/ssl_test_ctx.c helpers/handshake.c 461 IF[{- !$disabled{'srp'} -}] 462 SOURCE[ssl_test]=helpers/handshake_srp.c 463 ENDIF 464 INCLUDE[ssl_test]=../include ../apps/include 465 DEPEND[ssl_test]=../libcrypto ../libssl libtestutil.a 466 467 SOURCE[cipherlist_test]=cipherlist_test.c 468 INCLUDE[cipherlist_test]=../include ../apps/include 469 DEPEND[cipherlist_test]=../libcrypto ../libssl libtestutil.a 470 471 INCLUDE[helpers/ssl_test_ctx.o]=../include 472 INCLUDE[helpers/handshake.o]=.. ../include 473 INCLUDE[helpers/pkcs12.o]=.. ../include 474 INCLUDE[helpers/ssltestlib.o]=.. ../include 475 INCLUDE[helpers/cmp_testlib.o]=.. ../include ../apps/include 476 477 SOURCE[x509aux]=x509aux.c 478 INCLUDE[x509aux]=../include ../apps/include 479 DEPEND[x509aux]=../libcrypto libtestutil.a 480 481 SOURCE[asynciotest]=asynciotest.c helpers/ssltestlib.c 482 INCLUDE[asynciotest]=../include ../apps/include 483 DEPEND[asynciotest]=../libcrypto ../libssl libtestutil.a 484 485 SOURCE[bio_callback_test]=bio_callback_test.c 486 INCLUDE[bio_callback_test]=../include ../apps/include 487 DEPEND[bio_callback_test]=../libcrypto libtestutil.a 488 489 SOURCE[bio_readbuffer_test]=bio_readbuffer_test.c 490 INCLUDE[bio_readbuffer_test]=../include ../apps/include 491 DEPEND[bio_readbuffer_test]=../libcrypto libtestutil.a 492 493 SOURCE[bio_memleak_test]=bio_memleak_test.c 494 INCLUDE[bio_memleak_test]=../include ../apps/include 495 DEPEND[bio_memleak_test]=../libcrypto libtestutil.a 496 497 SOURCE[bio_meth_test]=bio_meth_test.c 498 INCLUDE[bio_meth_test]=../include ../apps/include 499 DEPEND[bio_meth_test]=../libcrypto libtestutil.a 500 501 SOURCE[bioprinttest]=bioprinttest.c 502 INCLUDE[bioprinttest]=../include ../apps/include 503 DEPEND[bioprinttest]=../libcrypto libtestutil.a 504 505 SOURCE[bio_core_test]=bio_core_test.c 506 INCLUDE[bio_core_test]=../include ../apps/include 507 DEPEND[bio_core_test]=../libcrypto libtestutil.a 508 509 SOURCE[bio_dgram_test]=bio_dgram_test.c 510 INCLUDE[bio_dgram_test]=../include ../apps/include 511 DEPEND[bio_dgram_test]=../libcrypto libtestutil.a 512 513 SOURCE[bio_tfo_test]=bio_tfo_test.c 514 INCLUDE[bio_tfo_test]=../include ../apps/include .. 515 DEPEND[bio_tfo_test]=../libcrypto libtestutil.a 516 517 SOURCE[membio_test]=membio_test.c 518 INCLUDE[membio_test]=../include ../apps/include .. 519 DEPEND[membio_test]=../libcrypto libtestutil.a 520 521 SOURCE[bio_dgram_test]=bio_dgram_test.c 522 INCLUDE[bio_dgram_test]=../include ../apps/include .. 523 DEPEND[bio_dgram_test]=../libcrypto libtestutil.a 524 525 SOURCE[params_api_test]=params_api_test.c 526 INCLUDE[params_api_test]=../include ../apps/include 527 DEPEND[params_api_test]=../libcrypto libtestutil.a 528 529 SOURCE[params_conversion_test]=params_conversion_test.c 530 INCLUDE[params_conversion_test]=../include ../apps/include 531 DEPEND[params_conversion_test]=../libcrypto libtestutil.a 532 533 SOURCE[param_build_test]=param_build_test.c 534 INCLUDE[param_build_test]=../include ../apps/include 535 DEPEND[param_build_test]=../libcrypto.a libtestutil.a 536 537 SOURCE[sslapitest]=sslapitest.c helpers/ssltestlib.c filterprov.c tls-provider.c 538 INCLUDE[sslapitest]=../include ../apps/include .. 539 DEPEND[sslapitest]=../libcrypto.a ../libssl.a libtestutil.a 540 541 SOURCE[ssl_handshake_rtt_test]=ssl_handshake_rtt_test.c helpers/ssltestlib.c 542 INCLUDE[ssl_handshake_rtt_test]=../include ../apps/include .. 543 DEPEND[ssl_handshake_rtt_test]=../libcrypto.a ../libssl.a libtestutil.a 544 545 SOURCE[rpktest]=rpktest.c helpers/ssltestlib.c 546 INCLUDE[rpktest]=../include ../apps/include .. 547 DEPEND[rpktest]=../libcrypto ../libssl libtestutil.a 548 549 SOURCE[defltfips_test]=defltfips_test.c 550 INCLUDE[defltfips_test]=../include ../apps/include 551 DEPEND[defltfips_test]=../libcrypto libtestutil.a 552 553 SOURCE[fips_version_test]=fips_version_test.c 554 INCLUDE[fips_version_test]=../include ../apps/include 555 DEPEND[fips_version_test]=../libcrypto libtestutil.a 556 557 SOURCE[ocspapitest]=ocspapitest.c 558 INCLUDE[ocspapitest]=../include ../apps/include 559 DEPEND[ocspapitest]=../libcrypto libtestutil.a 560 561 IF[{- !$disabled{sock} -}] 562 IF[{- !$disabled{http} -}] 563 PROGRAMS{noinst}=http_test 564 565 SOURCE[http_test]=http_test.c 566 INCLUDE[http_test]=../include ../apps/include 567 DEPEND[http_test]=../libcrypto libtestutil.a 568 ENDIF 569 570 PROGRAMS{noinst}=bio_addr_test 571 572 SOURCE[bio_addr_test]=bio_addr_test.c 573 INCLUDE[bio_addr_test]=../include ../apps/include 574 DEPEND[bio_addr_test]=../libcrypto libtestutil.a 575 ENDIF 576 577 SOURCE[dtlstest]=dtlstest.c helpers/ssltestlib.c 578 INCLUDE[dtlstest]=../include ../apps/include 579 DEPEND[dtlstest]=../libcrypto ../libssl libtestutil.a 580 581 SOURCE[sslcorrupttest]=sslcorrupttest.c helpers/ssltestlib.c 582 INCLUDE[sslcorrupttest]=../include ../apps/include 583 DEPEND[sslcorrupttest]=../libcrypto ../libssl libtestutil.a 584 585 SOURCE[bio_base64_test]=bio_base64_test.c 586 INCLUDE[bio_base64_test]=../include ../apps/include 587 DEPEND[bio_base64_test]=../libcrypto libtestutil.a 588 589 SOURCE[bio_enc_test]=bio_enc_test.c 590 INCLUDE[bio_enc_test]=../include ../apps/include 591 DEPEND[bio_enc_test]=../libcrypto libtestutil.a 592 593 SOURCE[pkey_meth_test]=pkey_meth_test.c 594 INCLUDE[pkey_meth_test]=../include ../apps/include 595 DEPEND[pkey_meth_test]=../libcrypto libtestutil.a 596 597 SOURCE[pkey_meth_kdf_test]=pkey_meth_kdf_test.c 598 INCLUDE[pkey_meth_kdf_test]=../include ../apps/include 599 DEPEND[pkey_meth_kdf_test]=../libcrypto libtestutil.a 600 601 SOURCE[evp_kdf_test]=evp_kdf_test.c 602 INCLUDE[evp_kdf_test]=../include ../apps/include 603 DEPEND[evp_kdf_test]=../libcrypto libtestutil.a 604 605 SOURCE[evp_xof_test]=evp_xof_test.c 606 INCLUDE[evp_xof_test]=../include ../apps/include 607 DEPEND[evp_xof_test]=../libcrypto libtestutil.a 608 609 SOURCE[evp_pkey_dparams_test]=evp_pkey_dparams_test.c 610 INCLUDE[evp_pkey_dparams_test]=../include ../apps/include 611 DEPEND[evp_pkey_dparams_test]=../libcrypto libtestutil.a 612 613 SOURCE[x509_time_test]=x509_time_test.c 614 INCLUDE[x509_time_test]=../include ../apps/include 615 DEPEND[x509_time_test]=../libcrypto libtestutil.a 616 617 SOURCE[x509_test]=x509_test.c 618 INCLUDE[x509_test]=../include ../apps/include 619 DEPEND[x509_test]=../libcrypto libtestutil.a 620 621 SOURCE[recordlentest]=recordlentest.c helpers/ssltestlib.c 622 INCLUDE[recordlentest]=../include ../apps/include 623 DEPEND[recordlentest]=../libcrypto ../libssl libtestutil.a 624 625 SOURCE[drbgtest]=drbgtest.c 626 INCLUDE[drbgtest]=../include ../apps/include ../providers/common/include \ 627 ../providers/fips/include 628 DEPEND[drbgtest]=../libcrypto.a libtestutil.a 629 630 SOURCE[rand_status_test]=rand_status_test.c 631 INCLUDE[rand_status_test]=../include ../apps/include 632 DEPEND[rand_status_test]=../libcrypto libtestutil.a 633 634 SOURCE[x509_dup_cert_test]=x509_dup_cert_test.c 635 INCLUDE[x509_dup_cert_test]=../include ../apps/include 636 DEPEND[x509_dup_cert_test]=../libcrypto libtestutil.a 637 638 SOURCE[x509_load_cert_file_test]=x509_load_cert_file_test.c 639 INCLUDE[x509_load_cert_file_test]=../include ../apps/include 640 DEPEND[x509_load_cert_file_test]=../libcrypto libtestutil.a 641 642 SOURCE[x509_check_cert_pkey_test]=x509_check_cert_pkey_test.c 643 INCLUDE[x509_check_cert_pkey_test]=../include ../apps/include 644 DEPEND[x509_check_cert_pkey_test]=../libcrypto libtestutil.a 645 646 SOURCE[pemtest]=pemtest.c 647 INCLUDE[pemtest]=../include ../apps/include 648 DEPEND[pemtest]=../libcrypto libtestutil.a 649 650 SOURCE[ssl_cert_table_internal_test]=ssl_cert_table_internal_test.c 651 INCLUDE[ssl_cert_table_internal_test]=.. ../include ../apps/include 652 DEPEND[ssl_cert_table_internal_test]=../libcrypto libtestutil.a 653 654 SOURCE[ciphername_test]=ciphername_test.c 655 INCLUDE[ciphername_test]=../include ../apps/include 656 DEPEND[ciphername_test]=../libcrypto ../libssl libtestutil.a 657 658 SOURCE[servername_test]=servername_test.c helpers/ssltestlib.c 659 INCLUDE[servername_test]=../include ../apps/include 660 DEPEND[servername_test]=../libcrypto ../libssl libtestutil.a 661 662 IF[{- !$disabled{cms} -}] 663 PROGRAMS{noinst}=cmsapitest 664 SOURCE[cmsapitest]=cmsapitest.c 665 INCLUDE[cmsapitest]=../include ../apps/include 666 DEPEND[cmsapitest]=../libcrypto libtestutil.a 667 ENDIF 668 669 IF[{- !$disabled{psk} -}] 670 PROGRAMS{noinst}=dtls_mtu_test 671 SOURCE[dtls_mtu_test]=dtls_mtu_test.c helpers/ssltestlib.c 672 INCLUDE[dtls_mtu_test]=.. ../include ../apps/include 673 DEPEND[dtls_mtu_test]=../libcrypto ../libssl libtestutil.a 674 ENDIF 675 676 IF[{- !$disabled{shared} -}] 677 PROGRAMS{noinst}=shlibloadtest 678 SOURCE[shlibloadtest]=shlibloadtest.c simpledynamic.c 679 INCLUDE[shlibloadtest]=../include ../apps/include 680 681 PROGRAMS{noinst}=moduleloadtest 682 SOURCE[moduleloadtest]=moduleloadtest.c simpledynamic.c 683 INCLUDE[moduleloadtest]=../include ../apps/include 684 ENDIF 685 686 # cipher_overhead_test uses internal symbols, so it must be linked with 687 # the static libraries 688 PROGRAMS{noinst}=cipher_overhead_test 689 SOURCE[cipher_overhead_test]=cipher_overhead_test.c 690 INCLUDE[cipher_overhead_test]=.. ../include ../apps/include 691 DEPEND[cipher_overhead_test]=../libcrypto.a ../libssl.a libtestutil.a 692 693 SOURCE[uitest]=uitest.c ../apps/lib/apps_ui.c 694 INCLUDE[uitest]=.. ../include ../apps/include 695 DEPEND[uitest]=../libcrypto ../libssl libtestutil.a 696 697 SOURCE[cipherbytes_test]=cipherbytes_test.c 698 INCLUDE[cipherbytes_test]=../include ../apps/include 699 DEPEND[cipherbytes_test]=../libcrypto ../libssl libtestutil.a 700 701 SOURCE[asn1_encode_test]=asn1_encode_test.c 702 INCLUDE[asn1_encode_test]=../include ../apps/include 703 DEPEND[asn1_encode_test]=../libcrypto libtestutil.a 704 705 SOURCE[asn1_decode_test]=asn1_decode_test.c 706 INCLUDE[asn1_decode_test]=../include ../apps/include 707 DEPEND[asn1_decode_test]=../libcrypto libtestutil.a 708 709 SOURCE[asn1_string_table_test]=asn1_string_table_test.c 710 INCLUDE[asn1_string_table_test]=../include ../apps/include 711 DEPEND[asn1_string_table_test]=../libcrypto libtestutil.a 712 713 SOURCE[asn1_stable_parse_test]=asn1_stable_parse_test.c 714 INCLUDE[asn1_stable_parse_test]=../include ../apps/include 715 DEPEND[asn1_stable_parse_test]=../libcrypto libtestutil.a 716 717 SOURCE[time_offset_test]=time_offset_test.c 718 INCLUDE[time_offset_test]=../include ../apps/include 719 DEPEND[time_offset_test]=../libcrypto libtestutil.a 720 721 SOURCE[conf_include_test]=conf_include_test.c 722 INCLUDE[conf_include_test]=../include ../apps/include 723 DEPEND[conf_include_test]=../libcrypto libtestutil.a 724 725 IF[{- !$disabled{cmp} -}] 726 PROGRAMS{noinst}=cmp_asn_test cmp_ctx_test cmp_status_test cmp_hdr_test \ 727 cmp_protect_test cmp_msg_test cmp_vfy_test \ 728 cmp_server_test cmp_client_test 729 ENDIF 730 731 SOURCE[cmp_asn_test]=cmp_asn_test.c helpers/cmp_testlib.c 732 INCLUDE[cmp_asn_test]=.. ../include ../apps/include 733 DEPEND[cmp_asn_test]=../libcrypto.a libtestutil.a 734 735 SOURCE[cmp_ctx_test]=cmp_ctx_test.c helpers/cmp_testlib.c 736 INCLUDE[cmp_ctx_test]=.. ../include ../apps/include 737 DEPEND[cmp_ctx_test]=../libcrypto.a libtestutil.a 738 739 SOURCE[cmp_hdr_test]=cmp_hdr_test.c helpers/cmp_testlib.c 740 INCLUDE[cmp_hdr_test]=.. ../include ../apps/include 741 DEPEND[cmp_hdr_test]=../libcrypto.a libtestutil.a 742 743 SOURCE[cmp_status_test]=cmp_status_test.c helpers/cmp_testlib.c 744 INCLUDE[cmp_status_test]=.. ../include ../apps/include 745 DEPEND[cmp_status_test]=../libcrypto.a libtestutil.a 746 747 SOURCE[cmp_protect_test]=cmp_protect_test.c helpers/cmp_testlib.c 748 INCLUDE[cmp_protect_test]=.. ../include ../apps/include 749 DEPEND[cmp_protect_test]=../libcrypto.a libtestutil.a 750 751 SOURCE[cmp_msg_test]=cmp_msg_test.c helpers/cmp_testlib.c 752 INCLUDE[cmp_msg_test]=.. ../include ../apps/include 753 DEPEND[cmp_msg_test]=../libcrypto.a libtestutil.a 754 755 SOURCE[cmp_vfy_test]=cmp_vfy_test.c helpers/cmp_testlib.c 756 INCLUDE[cmp_vfy_test]=.. ../include ../apps/include 757 DEPEND[cmp_vfy_test]=../libcrypto.a libtestutil.a 758 759 SOURCE[cmp_server_test]=cmp_server_test.c helpers/cmp_testlib.c 760 INCLUDE[cmp_server_test]=.. ../include ../apps/include 761 DEPEND[cmp_server_test]=../libcrypto.a libtestutil.a 762 763 SOURCE[cmp_client_test]=cmp_client_test.c helpers/cmp_testlib.c ../apps/lib/cmp_mock_srv.c 764 INCLUDE[cmp_client_test]=.. ../include ../apps/include 765 DEPEND[cmp_client_test]=../libcrypto.a libtestutil.a 766 767 SOURCE[ca_internals_test]=ca_internals_test.c ../apps/ca.c ../apps/lib/apps.c \ 768 ../apps/lib/app_rand.c ../apps/lib/engine.c ../apps/lib/app_provider.c \ 769 ../apps/lib/app_libctx.c ../apps/lib/fmt.c ../apps/lib/apps_ui.c \ 770 ../apps/lib/app_x509.c ../crypto/asn1/a_time.c ../crypto/ctype.c 771 INCLUDE[ca_internals_test]=.. ../include ../apps/include 772 DEPEND[ca_internals_test]=libtestutil.a ../libssl 773 774 # Internal test programs. These are essentially a collection of internal 775 # test routines. Some of them need to reach internal symbols that aren't 776 # available through the shared library (at least on Linux, Solaris, Windows 777 # and VMS, where the exported symbols are those listed in util/*.num), these 778 # programs are forcibly linked with the static libraries, where all symbols 779 # are always available. 780 IF[1] 781 PROGRAMS{noinst}=asn1_internal_test modes_internal_test x509_internal_test \ 782 tls13encryptiontest wpackettest ctype_internal_test \ 783 rdcpu_sanitytest property_test ideatest rsa_mp_test \ 784 rsa_sp800_56b_test bn_internal_test ecdsatest rsa_test \ 785 rc2test rc4test rc5test hmactest ffc_internal_test \ 786 asn1_dsa_internal_test dsatest dsa_no_digest_size_test \ 787 dhtest ssl_old_test 788 789 IF[{- !$disabled{poly1305} -}] 790 PROGRAMS{noinst}=poly1305_internal_test 791 ENDIF 792 IF[{- !$disabled{chacha} -}] 793 PROGRAMS{noinst}=chacha_internal_test 794 ENDIF 795 IF[{- !$disabled{siphash} -}] 796 PROGRAMS{noinst}=siphash_internal_test 797 ENDIF 798 IF[{- !$disabled{sm2} -}] 799 PROGRAMS{noinst}=sm2_internal_test 800 ENDIF 801 IF[{- !$disabled{sm3} -}] 802 PROGRAMS{noinst}=sm3_internal_test 803 ENDIF 804 IF[{- !$disabled{sm4} -}] 805 PROGRAMS{noinst}=sm4_internal_test 806 ENDIF 807 IF[{- !$disabled{ec} -}] 808 PROGRAMS{noinst}=ectest ec_internal_test evp_pkey_dhkem_test 809 ENDIF 810 IF[{- !$disabled{ecx} -}] 811 PROGRAMS{noinst}=curve448_internal_test 812 ENDIF 813 IF[{- !$disabled{cmac} -}] 814 PROGRAMS{noinst}=cmactest 815 ENDIF 816 817 SOURCE[poly1305_internal_test]=poly1305_internal_test.c 818 INCLUDE[poly1305_internal_test]=.. ../include ../apps/include 819 DEPEND[poly1305_internal_test]=../libcrypto.a libtestutil.a 820 821 SOURCE[chacha_internal_test]=chacha_internal_test.c 822 INCLUDE[chacha_internal_test]=.. ../include ../apps/include 823 DEPEND[chacha_internal_test]=../libcrypto.a libtestutil.a 824 825 SOURCE[asn1_internal_test]=asn1_internal_test.c 826 INCLUDE[asn1_internal_test]=.. ../include ../apps/include 827 DEPEND[asn1_internal_test]=../libcrypto.a libtestutil.a 828 829 SOURCE[modes_internal_test]=modes_internal_test.c 830 INCLUDE[modes_internal_test]=.. ../include ../apps/include 831 DEPEND[modes_internal_test]=../libcrypto.a libtestutil.a 832 833 SOURCE[x509_internal_test]=x509_internal_test.c 834 INCLUDE[x509_internal_test]=.. ../include ../apps/include 835 DEPEND[x509_internal_test]=../libcrypto.a libtestutil.a 836 837 SOURCE[rsa_test]=rsa_test.c 838 INCLUDE[rsa_test]=../include ../apps/include 839 DEPEND[rsa_test]=../libcrypto.a libtestutil.a 840 841 SOURCE[rsa_mp_test]=rsa_mp_test.c 842 INCLUDE[rsa_mp_test]=../include ../apps/include 843 DEPEND[rsa_mp_test]=../libcrypto.a libtestutil.a 844 845 SOURCE[ecdsatest]=ecdsatest.c 846 INCLUDE[ecdsatest]=../include ../apps/include 847 DEPEND[ecdsatest]=../libcrypto.a libtestutil.a 848 849 SOURCE[dsatest]=dsatest.c 850 INCLUDE[dsatest]=../include ../apps/include 851 DEPEND[dsatest]=../libcrypto.a libtestutil.a 852 853 SOURCE[dsa_no_digest_size_test]=dsa_no_digest_size_test.c 854 INCLUDE[dsa_no_digest_size_test]=../include ../apps/include 855 DEPEND[dsa_no_digest_size_test]=../libcrypto.a libtestutil.a 856 857 SOURCE[tls13encryptiontest]=tls13encryptiontest.c 858 INCLUDE[tls13encryptiontest]=.. ../include ../apps/include 859 DEPEND[tls13encryptiontest]=../libcrypto.a ../libssl.a libtestutil.a 860 861 SOURCE[ideatest]=ideatest.c 862 INCLUDE[ideatest]=../include ../apps/include 863 DEPEND[ideatest]=../libcrypto.a libtestutil.a 864 865 SOURCE[wpackettest]=wpackettest.c 866 INCLUDE[wpackettest]=../include ../apps/include 867 DEPEND[wpackettest]=../libcrypto.a ../libssl.a libtestutil.a 868 869 SOURCE[property_test]=property_test.c 870 INCLUDE[property_test]=.. ../include ../apps/include 871 DEPEND[property_test]=../libcrypto.a libtestutil.a 872 873 SOURCE[ctype_internal_test]=ctype_internal_test.c 874 INCLUDE[ctype_internal_test]=.. ../include ../apps/include 875 DEPEND[ctype_internal_test]=../libcrypto.a libtestutil.a 876 877 SOURCE[sparse_array_test]=sparse_array_test.c 878 INCLUDE[sparse_array_test]=../include ../apps/include 879 DEPEND[sparse_array_test]=../libcrypto.a libtestutil.a 880 881 IF[{- !$disabled{quic} -}] 882 SOURCE[priority_queue_test]=priority_queue_test.c 883 INCLUDE[priority_queue_test]=../include ../apps/include 884 DEPEND[priority_queue_test]=../libcrypto ../libssl.a libtestutil.a 885 886 SOURCE[quicfaultstest]=quicfaultstest.c helpers/ssltestlib.c $QUICTESTHELPERS 887 INCLUDE[quicfaultstest]=../include ../apps/include .. 888 DEPEND[quicfaultstest]=../libcrypto.a ../libssl.a libtestutil.a 889 890 SOURCE[quicapitest]=quicapitest.c helpers/ssltestlib.c $QUICTESTHELPERS 891 INCLUDE[quicapitest]=../include ../apps/include 892 DEPEND[quicapitest]=../libcrypto.a ../libssl.a libtestutil.a 893 894 SOURCE[quic_newcid_test]=quic_newcid_test.c helpers/ssltestlib.c $QUICTESTHELPERS 895 INCLUDE[quic_newcid_test]=../include ../apps/include .. 896 DEPEND[quic_newcid_test]=../libcrypto.a ../libssl.a libtestutil.a 897 898 SOURCE[quic_srt_gen_test]=quic_srt_gen_test.c helpers/ssltestlib.c $QUICTESTHELPERS 899 INCLUDE[quic_srt_gen_test]=../include ../apps/include .. 900 DEPEND[quic_srt_gen_test]=../libcrypto.a ../libssl.a libtestutil.a 901 ENDIF 902 903 IF[{- !$disabled{qlog} -}] 904 SOURCE[json_test]=json_test.c helpers/ssltestlib.c $QUICTESTHELPERS 905 INCLUDE[json_test]=../include ../apps/include 906 DEPEND[json_test]=../libcrypto.a ../libssl.a libtestutil.a 907 ENDIF 908 909 SOURCE[dhtest]=dhtest.c 910 INCLUDE[dhtest]=../include ../apps/include 911 DEPEND[dhtest]=../libcrypto.a libtestutil.a 912 913 SOURCE[list_test]=list_test.c 914 INCLUDE[list_test]=../include ../apps/include 915 DEPEND[list_test]=libtestutil.a 916 917 SOURCE[hmactest]=hmactest.c 918 INCLUDE[hmactest]=../include ../apps/include 919 DEPEND[hmactest]=../libcrypto.a libtestutil.a 920 921 IF[{- !$disabled{cmac} -}] 922 SOURCE[cmactest]=cmactest.c 923 INCLUDE[cmactest]=../include ../apps/include 924 DEPEND[cmactest]=../libcrypto.a libtestutil.a 925 ENDIF 926 927 SOURCE[siphash_internal_test]=siphash_internal_test.c 928 INCLUDE[siphash_internal_test]=.. ../include ../apps/include 929 DEPEND[siphash_internal_test]=../libcrypto.a libtestutil.a 930 931 SOURCE[sm2_internal_test]=sm2_internal_test.c 932 INCLUDE[sm2_internal_test]=../include ../apps/include 933 DEPEND[sm2_internal_test]=../libcrypto.a libtestutil.a 934 935 SOURCE[sm3_internal_test]=sm3_internal_test.c 936 INCLUDE[sm3_internal_test]=../include ../apps/include 937 DEPEND[sm3_internal_test]=../libcrypto.a libtestutil.a 938 939 SOURCE[sm4_internal_test]=sm4_internal_test.c 940 INCLUDE[sm4_internal_test]=.. ../include ../apps/include 941 DEPEND[sm4_internal_test]=../libcrypto.a libtestutil.a 942 943 SOURCE[destest]=destest.c 944 INCLUDE[destest]=../include ../apps/include 945 DEPEND[destest]=../libcrypto.a libtestutil.a 946 947 SOURCE[rc2test]=rc2test.c 948 INCLUDE[rc2test]=../include ../apps/include 949 DEPEND[rc2test]=../libcrypto.a libtestutil.a 950 951 SOURCE[rc4test]=rc4test.c 952 INCLUDE[rc4test]=../include ../apps/include 953 DEPEND[rc4test]=../libcrypto.a libtestutil.a 954 955 SOURCE[rc5test]=rc5test.c 956 INCLUDE[rc5test]=../include ../apps/include 957 DEPEND[rc5test]=../libcrypto.a libtestutil.a 958 959 SOURCE[ec_internal_test]=ec_internal_test.c $INITSRC 960 INCLUDE[ec_internal_test]=../include ../crypto/ec ../apps/include 961 DEPEND[ec_internal_test]=../libcrypto.a libtestutil.a 962 963 IF[{- !$disabled{ecx} -}] 964 SOURCE[curve448_internal_test]=curve448_internal_test.c 965 INCLUDE[curve448_internal_test]=.. ../include ../apps/include ../crypto/ec/curve448 966 DEPEND[curve448_internal_test]=../libcrypto.a libtestutil.a 967 ENDIF 968 969 SOURCE[rc4test]=rc4test.c 970 INCLUDE[rc4test]=../include ../apps/include 971 DEPEND[rc4test]=../libcrypto.a libtestutil.a 972 973 SOURCE[rdcpu_sanitytest]=rdcpu_sanitytest.c 974 INCLUDE[rdcpu_sanitytest]=../include ../apps/include ../crypto 975 DEPEND[rdcpu_sanitytest]=../libcrypto.a libtestutil.a 976 977 SOURCE[rsa_sp800_56b_test]=rsa_sp800_56b_test.c 978 INCLUDE[rsa_sp800_56b_test]=.. ../include ../crypto/rsa ../apps/include 979 DEPEND[rsa_sp800_56b_test]=../libcrypto.a libtestutil.a 980 981 IF[{- !$disabled{'deprecated-3.0'} -}] 982 PROGRAMS{noinst}=rsa_x931_test 983 SOURCE[rsa_x931_test]=rsa_x931_test.c 984 INCLUDE[rsa_x931_test]=.. ../include ../apps/include 985 DEPEND[rsa_x931_test]=../libcrypto.a libtestutil.a 986 ENDIF 987 988 SOURCE[bn_internal_test]=bn_internal_test.c 989 INCLUDE[bn_internal_test]=.. ../include ../crypto/bn ../apps/include 990 DEPEND[bn_internal_test]=../libcrypto.a libtestutil.a 991 992 SOURCE[asn1_dsa_internal_test]=asn1_dsa_internal_test.c 993 INCLUDE[asn1_dsa_internal_test]=.. ../include ../apps/include 994 DEPEND[asn1_dsa_internal_test]=../libcrypto.a libtestutil.a 995 996 SOURCE[keymgmt_internal_test]=keymgmt_internal_test.c 997 INCLUDE[keymgmt_internal_test]=.. ../include ../apps/include 998 DEPEND[keymgmt_internal_test]=../libcrypto.a libtestutil.a 999 1000 SOURCE[ffc_internal_test]=ffc_internal_test.c 1001 INCLUDE[ffc_internal_test]=.. ../include ../apps/include 1002 DEPEND[ffc_internal_test]=../libcrypto.a libtestutil.a 1003 1004 IF[{- !$disabled{mdc2} -}] 1005 PROGRAMS{noinst}=mdc2_internal_test 1006 ENDIF 1007 1008 SOURCE[mdc2_internal_test]=mdc2_internal_test.c 1009 INCLUDE[mdc2_internal_test]=.. ../include ../apps/include 1010 DEPEND[mdc2_internal_test]=../libcrypto.a libtestutil.a 1011 1012 SOURCE[ssl_old_test]=ssl_old_test.c helpers/predefined_dhparams.c 1013 INCLUDE[ssl_old_test]=.. ../include ../apps/include 1014 DEPEND[ssl_old_test]=../libcrypto.a ../libssl.a libtestutil.a 1015 1016 PROGRAMS{noinst}=ext_internal_test 1017 SOURCE[ext_internal_test]=ext_internal_test.c 1018 INCLUDE[ext_internal_test]=.. ../include ../apps/include 1019 DEPEND[ext_internal_test]=../libcrypto.a ../libssl.a libtestutil.a 1020 1021 PROGRAMS{noinst}=algorithmid_test 1022 SOURCE[algorithmid_test]=algorithmid_test.c 1023 INCLUDE[algorithmid_test]=../include ../apps/include 1024 DEPEND[algorithmid_test]=../libcrypto.a libtestutil.a 1025 ENDIF 1026 1027 PROGRAMS{noinst}=asn1_time_test 1028 SOURCE[asn1_time_test]=asn1_time_test.c ../crypto/ctype.c \ 1029 ../crypto/asn1/a_time.c 1030 INCLUDE[asn1_time_test]=../include ../apps/include 1031 DEPEND[asn1_time_test]=../libcrypto libtestutil.a 1032 1033 # We disable this test completely in a shared build because it deliberately 1034 # redefines some internal libssl symbols. This doesn't work in a non-shared 1035 # build 1036 IF[{- !$disabled{shared} -}] 1037 PROGRAMS{noinst}=tls13secretstest 1038 SOURCE[tls13secretstest]=tls13secretstest.c 1039 DEFINE[tls13secretstest]=OPENSSL_NO_KTLS 1040 SOURCE[tls13secretstest]= ../ssl/tls13_enc.c ../crypto/packet.c ../crypto/quic_vlint.c 1041 INCLUDE[tls13secretstest]=.. ../include ../apps/include 1042 DEPEND[tls13secretstest]=../libcrypto ../libssl libtestutil.a 1043 ENDIF 1044 1045 SOURCE[sslbuffertest]=sslbuffertest.c helpers/ssltestlib.c 1046 INCLUDE[sslbuffertest]=../include ../apps/include 1047 DEPEND[sslbuffertest]=../libcrypto ../libssl libtestutil.a 1048 1049 SOURCE[sysdefaulttest]=sysdefaulttest.c 1050 INCLUDE[sysdefaulttest]=../include ../apps/include 1051 DEPEND[sysdefaulttest]=../libcrypto ../libssl libtestutil.a 1052 1053 SOURCE[errtest]=errtest.c 1054 INCLUDE[errtest]=../include ../apps/include 1055 DEPEND[errtest]=../libcrypto libtestutil.a 1056 1057 SOURCE[aesgcmtest]=aesgcmtest.c 1058 INCLUDE[aesgcmtest]=../include ../apps/include .. 1059 DEPEND[aesgcmtest]=../libcrypto libtestutil.a 1060 1061 PROGRAMS{noinst}=context_internal_test 1062 SOURCE[context_internal_test]=context_internal_test.c 1063 INCLUDE[context_internal_test]=.. ../include ../apps/include 1064 DEPEND[context_internal_test]=../libcrypto.a libtestutil.a 1065 1066 IF[{- !$disabled{zlib} || !$disabled{brotli} || !$disabled{zstd} -}] 1067 PROGRAMS{noinst}=bio_comp_test 1068 SOURCE[bio_comp_test]=bio_comp_test.c 1069 INCLUDE[bio_comp_test]=../include ../apps/include 1070 DEPEND[bio_comp_test]=../libcrypto.a libtestutil.a 1071 ENDIF 1072 1073 PROGRAMS{noinst}=provider_internal_test 1074 DEFINE[provider_internal_test]=PROVIDER_INIT_FUNCTION_NAME=p_test_init 1075 SOURCE[provider_internal_test]=provider_internal_test.c p_test.c 1076 INCLUDE[provider_internal_test]=../include ../apps/include .. 1077 DEPEND[provider_internal_test]=../libcrypto.a libtestutil.a 1078 PROGRAMS{noinst}=provider_test 1079 DEFINE[provider_test]=PROVIDER_INIT_FUNCTION_NAME=p_test_init 1080 SOURCE[provider_test]=provider_test.c p_test.c 1081 INCLUDE[provider_test]=../include ../apps/include .. 1082 DEPEND[provider_test]=../libcrypto.a libtestutil.a 1083 IF[{- !$disabled{module} -}] 1084 MODULES{noinst}=p_test 1085 SOURCE[p_test]=p_test.c 1086 INCLUDE[p_test]=../include .. 1087 IF[{- defined $target{shared_defflag} -}] 1088 SOURCE[p_test]=p_test.ld 1089 GENERATE[p_test.ld]=../util/providers.num 1090 ENDIF 1091 MODULES{noinst}=p_minimal 1092 SOURCE[p_minimal]=p_minimal.c 1093 INCLUDE[p_minimal]=../include .. 1094 IF[{- defined $target{shared_defflag} -}] 1095 SOURCE[p_minimal]=p_minimal.ld 1096 GENERATE[p_minimal.ld]=../util/providers.num 1097 ENDIF 1098 ENDIF 1099 IF[{- $disabled{module} || !$target{dso_scheme} -}] 1100 DEFINE[provider_test]=NO_PROVIDER_MODULE 1101 DEFINE[prov_config_test]=NO_PROVIDER_MODULE 1102 DEFINE[provider_internal_test]=NO_PROVIDER_MODULE 1103 ENDIF 1104 DEPEND[]=provider_internal_test.cnf 1105 GENERATE[provider_internal_test.cnf]=provider_internal_test.cnf.in 1106 1107 PROGRAMS{noinst}=provider_fallback_test 1108 SOURCE[provider_fallback_test]=provider_fallback_test.c 1109 INCLUDE[provider_fallback_test]=../include ../apps/include 1110 DEPEND[provider_fallback_test]=../libcrypto libtestutil.a 1111 1112 PROGRAMS{noinst}=provider_pkey_test 1113 SOURCE[provider_pkey_test]=provider_pkey_test.c fake_rsaprov.c 1114 INCLUDE[provider_pkey_test]=../include ../apps/include 1115 DEPEND[provider_pkey_test]=../libcrypto libtestutil.a 1116 1117 PROGRAMS{noinst}=provider_default_search_path_test 1118 SOURCE[provider_default_search_path_test]=provider_default_search_path_test.c 1119 INCLUDE[provider_default_search_path_test]=../include ../apps/include 1120 DEPEND[provider_default_search_path_test]=../libcrypto libtestutil.a 1121 1122 PROGRAMS{noinst}=params_test 1123 SOURCE[params_test]=params_test.c 1124 INCLUDE[params_test]=.. ../include ../apps/include 1125 DEPEND[params_test]=../libcrypto.a libtestutil.a 1126 1127 PROGRAMS{noinst}=hexstr_test 1128 SOURCE[hexstr_test]=hexstr_test.c 1129 INCLUDE[hexstr_test]=.. ../include ../apps/include 1130 DEPEND[hexstr_test]=../libcrypto.a libtestutil.a 1131 1132 PROGRAMS{noinst}=trace_api_test 1133 SOURCE[trace_api_test]=trace_api_test.c 1134 INCLUDE[trace_api_test]=.. ../include ../apps/include 1135 DEPEND[trace_api_test]=../libcrypto.a libtestutil.a 1136 1137 PROGRAMS{noinst}=endecode_test 1138 SOURCE[endecode_test]=endecode_test.c helpers/predefined_dhparams.c 1139 INCLUDE[endecode_test]=.. ../include ../apps/include 1140 DEPEND[endecode_test]=../libcrypto.a libtestutil.a 1141 IF[{- !$disabled{module} && !$disabled{legacy} -}] 1142 DEFINE[endecode_test]=STATIC_LEGACY 1143 SOURCE[endecode_test]=../providers/legacyprov.c 1144 INCLUDE[endecode_test]=../providers/common/include \ 1145 ../providers/implementations/include 1146 DEPEND[endecode_test]=../providers/liblegacy.a \ 1147 ../providers/libcommon.a 1148 ENDIF 1149 1150 IF[{- !$disabled{'deprecated-3.0'} -}] 1151 PROGRAMS{noinst}=endecoder_legacy_test 1152 SOURCE[endecoder_legacy_test]=endecoder_legacy_test.c 1153 INCLUDE[endecoder_legacy_test]=.. ../include ../apps/include 1154 DEPEND[endecoder_legacy_test]=../libcrypto.a libtestutil.a 1155 ENDIF 1156 1157 PROGRAMS{noinst}=decoder_propq_test 1158 SOURCE[decoder_propq_test]=decoder_propq_test.c 1159 INCLUDE[decoder_propq_test]=.. ../include ../apps/include 1160 DEPEND[decoder_propq_test]=../libcrypto.a libtestutil.a 1161 1162 PROGRAMS{noinst}=namemap_internal_test 1163 SOURCE[namemap_internal_test]=namemap_internal_test.c 1164 INCLUDE[namemap_internal_test]=.. ../include ../apps/include 1165 DEPEND[namemap_internal_test]=../libcrypto.a libtestutil.a 1166 1167 PROGRAMS{noinst}=bio_prefix_text 1168 SOURCE[bio_prefix_text]=bio_prefix_text.c 1169 INCLUDE[bio_prefix_text]=.. ../include ../apps/include 1170 DEPEND[bio_prefix_text]=../libcrypto libtestutil.a 1171 1172 IF[{- !$disabled{'deprecated-3.0'} -}] 1173 PROGRAMS{noinst}=pem_read_depr_test 1174 SOURCE[pem_read_depr_test]=pem_read_depr_test.c 1175 INCLUDE[pem_read_depr_test]=../include ../apps/include 1176 DEPEND[pem_read_depr_test]=../libcrypto libtestutil.a 1177 ENDIF 1178ENDIF 1179 1180 SOURCE[ssl_ctx_test]=ssl_ctx_test.c 1181 INCLUDE[ssl_ctx_test]=../include ../apps/include 1182 DEPEND[ssl_ctx_test]=../libcrypto ../libssl libtestutil.a 1183 1184 SOURCE[build_wincrypt_test]=build_wincrypt_test.c 1185 INCLUDE[build_wincrypt_test]=../include 1186 DEPEND[build_wincrypt_test]=../libssl ../libcrypto 1187 1188 IF[{- !$disabled{shared} -}] 1189 PROGRAMS{noinst}=timing_load_creds 1190 SOURCE[timing_load_creds]=timing_load_creds.c 1191 INCLUDE[timing_load_creds]=../include 1192 DEPEND[timing_load_creds]=../libcrypto.a 1193 ENDIF 1194 1195 IF[{- !$disabled{'quic'} -}] 1196 PROGRAMS{noinst}=quic_wire_test quic_ackm_test quic_record_test 1197 PROGRAMS{noinst}=quic_fc_test quic_stream_test quic_cfq_test quic_txpim_test 1198 PROGRAMS{noinst}=quic_srtm_test quic_lcidm_test quic_rcidm_test 1199 PROGRAMS{noinst}=quic_fifd_test quic_txp_test quic_tserver_test 1200 PROGRAMS{noinst}=quic_client_test quic_cc_test quic_multistream_test 1201 ENDIF 1202 1203 SOURCE[quic_ackm_test]=quic_ackm_test.c cc_dummy.c 1204 INCLUDE[quic_ackm_test]=../include ../apps/include 1205 DEPEND[quic_ackm_test]=../libcrypto.a ../libssl.a libtestutil.a 1206 1207 SOURCE[quic_cc_test]=quic_cc_test.c 1208 INCLUDE[quic_cc_test]=../include ../apps/include 1209 DEPEND[quic_cc_test]=../libcrypto.a ../libssl.a libtestutil.a 1210 1211 SOURCE[cert_comp_test]=cert_comp_test.c helpers/ssltestlib.c 1212 INCLUDE[cert_comp_test]=../include ../apps/include .. 1213 DEPEND[cert_comp_test]=../libcrypto ../libssl libtestutil.a 1214 1215 SOURCE[x509_acert_test]=x509_acert_test.c 1216 INCLUDE[x509_acert_test]=../include ../apps/include 1217 DEPEND[x509_acert_test]=../libcrypto libtestutil.a 1218 1219 SOURCE[x509_req_test]=x509_req_test.c 1220 INCLUDE[x509_req_test]=../include ../apps/include 1221 DEPEND[x509_req_test]=../libcrypto libtestutil.a 1222 1223 SOURCE[strtoultest]=strtoultest.c 1224 INCLUDE[strtoultest]=../include ../apps/include 1225 DEPEND[strtoultest]=../libcrypto libtestutil.a 1226 1227 SOURCE[bio_pw_callback_test]=bio_pw_callback_test.c 1228 INCLUDE[bio_pw_callback_test]=../include ../apps/include 1229 DEPEND[bio_pw_callback_test]=../libcrypto libtestutil.a 1230 1231{- 1232 use File::Spec::Functions; 1233 use File::Basename; 1234 use OpenSSL::Glob; 1235 1236 my @nogo_headers = ( "asn1_mac.h", 1237 "opensslconf.h", 1238 "__decc_include_prologue.h", 1239 "__decc_include_epilogue.h" ); 1240 my @nogo_headers_re = ( qr/.*err\.h/ ); 1241 my @headerfiles = glob catfile($sourcedir, 1242 updir(), "include", "openssl", "*.h"); 1243 1244 foreach my $headerfile (@headerfiles) { 1245 my $name = basename($headerfile, ".h"); 1246 next if $disabled{$name}; 1247 next if grep { $_ eq lc("$name.h") } @nogo_headers; 1248 next if grep { lc("$name.h") =~ m/$_/i } @nogo_headers_re; 1249 $OUT .= <<"_____"; 1250 1251 PROGRAMS{noinst}=buildtest_c_$name 1252 SOURCE[buildtest_c_$name]=buildtest_$name.c 1253 GENERATE[buildtest_$name.c]=generate_buildtest.pl $name 1254 INCLUDE[buildtest_c_$name]=../include 1255 DEPEND[buildtest_c_$name]=../libssl ../libcrypto 1256_____ 1257 $OUT .= <<"_____" if $config{CXX} && !$disabled{"buildtest-c++"}; 1258 1259 PROGRAMS{noinst}=buildtest_cc_$name 1260 SOURCE[buildtest_cc_$name]=buildtest_$name.cc 1261 GENERATE[buildtest_$name.cc]=generate_buildtest.pl $name 1262 INCLUDE[buildtest_cc_$name]=../include 1263 DEPEND[buildtest_cc_$name]=../libssl ../libcrypto 1264_____ 1265 } 1266-} 1267