Dr. David von Oheimb 60c3d732b7 CMP app: fix file output of certs and cert lists on non-existing cert(s) il y a 1 an
..
certs 61203c2c59 test: add test case for deadlock reported in #19643 il y a 1 an
ct 92c03668c0 Add config_diagnostics to our configuration files. il y a 2 ans
d2i-tests a378a46985 add test for CVE-2016-7053 il y a 7 ans
helpers a8086e6bfc stack: Do not add error if pop/shift/value accesses outside of the stack il y a 1 an
ocsp-tests 121738d1cb Fix OCSP_basic_verify() cert chain construction in case bs->certs is NULL il y a 6 ans
recipes 60c3d732b7 CMP app: fix file output of certs and cert lists on non-existing cert(s) il y a 1 an
smime-certs 6c73ca4a2f signature: Clamp PSS salt len to MD len il y a 1 an
smime-eml 61203c2c59 test: add test case for deadlock reported in #19643 il y a 1 an
ssl-tests b67cb09f8d Add support for compressed certificates (RFC8879) il y a 1 an
testutil f2a6f83862 Cleanup : directly include of `internal/nelem.h` when required. il y a 1 an
CAtsa.cnf 92c03668c0 Add config_diagnostics to our configuration files. il y a 2 ans
README-dev.md 473664aafd always use the same perl in $PATH il y a 2 ans
README-external.md fa66f62ebb Add external testing with oqsprovider il y a 2 ans
README.md c678f68a19 test: document the random test ordering env variable il y a 3 ans
README.ssltest.md eec204f4b1 Make running individual ssl-test easier il y a 2 ans
aborttest.c 909f1a2e51 Following the license change, modify the boilerplates in test/ il y a 5 ans
acvp_test.c 2cba2e160d Fix the checks of EVP_PKEY_CTX_set/get_* functions il y a 2 ans
acvp_test.inc 3a1ee3c199 Drop OPENSSL_NO_RSA everywhere il y a 3 ans
aesgcmtest.c 3fd255acb7 Remove FIPS condition on IV gen test. il y a 1 an
afalgtest.c 6f6a5e0c7c Fix a memory leak in the afalg engine il y a 2 ans
algorithmid_test.c 2349d7ba57 Fix the return check of OBJ_obj2txt il y a 2 ans
asn1_decode_test.c aff636a489 Update copyright year il y a 3 ans
asn1_dsa_internal_test.c eec0ad10b9 Update copyright year il y a 3 ans
asn1_encode_test.c 54b4053130 Update copyright year il y a 2 ans
asn1_internal_test.c b79da97cf8 Allow OBJ_create() to create an OBJ and NID with a NULL OID il y a 1 an
asn1_string_table_test.c 275a7b9e5e typo ANS1 -> ASN1 il y a 5 ans
asn1_time_test.c 1555c86e5f Cast values to match printf format strings. il y a 1 an
asynciotest.c 20f8bc7255 test cleanup: move helper .c and .h files to test/helpers/ il y a 3 ans
asynctest.c c5d061290b test: Fix memory leak of asynctest il y a 1 an
bad_dtls_test.c c2f7614fb7 Fix the checks of RAND_bytes il y a 2 ans
bftest.c 1287dabd0b fix some code with obvious wrong coding style il y a 2 ans
bio_callback_test.c 38fc02a708 Update copyright year il y a 3 ans
bio_comp_test.c bb2bbd53d4 Fix a compilation failure in bio_comp_test.c il y a 1 an
bio_core_test.c 11efa7d45b BIO_new_from_core_bio: Fix heap-use-after-free after attach il y a 3 ans
bio_dgram_test.c 681c461910 test: condition out code that relies on CHACHA. il y a 1 an
bio_enc_test.c fecb3aae22 Update copyright year il y a 2 ans
bio_memleak_test.c 9e5bd8923b Fix SMIME_crlf_copy() to properly report an error il y a 1 an
bio_prefix_text.c a9ed63f1d1 BIO_set_indent: fix return check il y a 2 ans
bio_readbuffer_test.c 251c48183b Fix DER reading from stdin for BIO_f_readbuffer il y a 3 ans
bio_tfo_test.c d272ef5372 Fix asan finding in bio_tfo_test il y a 1 an
bioprinttest.c c4683009ad TEST: Adjust test/bioprinttest.c to behave like the testutil routines il y a 4 ans
bn_internal_test.c 8020d79b40 Update copyright year il y a 3 ans
bn_rand_range.h 5d2f3e4a6c Test of uniformity of BN_rand_range output. il y a 5 ans
bntest.c dd1d7bcb69 Improve FIPS RSA keygen performance. il y a 1 an
bntests.pl 909f1a2e51 Following the license change, modify the boilerplates in test/ il y a 5 ans
build.info d3db25f568 Implement OSSL_PROVIDER_get0_default_search_path, add docs and tests. il y a 1 an
build_wincrypt_test.c 3c58d44749 Move types.h #undefs for wincrypt.h compatibility il y a 2 ans
ca-and-certs.cnf 92c03668c0 Add config_diagnostics to our configuration files. il y a 2 ans
ca_internals_test.c 6097eb2152 libcrypto and test: rename asn1_string_to_time_t to ossl_asn1_string_to_time_t il y a 1 an
casttest.c 33388b44b6 Update copyright year il y a 4 ans
cert_comp_test.c dc45bfb4b4 Fix coverity 1516095 deadcode il y a 1 an
chacha_internal_test.c 25f2138b0a Reorganize private crypto header files il y a 4 ans
cipher_overhead_test.c a28d06f3e9 Update copyright year il y a 3 ans
cipherbytes_test.c 6ac1cd10ba Fix safestack issues in ssl.h il y a 3 ans
cipherlist_test.c d1b26ddbf6 Allow cipher strings to be given using its standard name il y a 2 ans
ciphername_test.c 6ac1cd10ba Fix safestack issues in ssl.h il y a 3 ans
clienthellotest.c 1287dabd0b fix some code with obvious wrong coding style il y a 2 ans
cmactest.c a370ff8daa Add a CMAC test il y a 4 ans
cmp_asn_test.c 357bfe7345 CMP+CRMF: fix formatting nits in crypto/, include/, and test/ il y a 1 an
cmp_client_test.c 6ea44d07a7 cmp_client_test.c: add tests for OSSL_CMP_CTX_get_status il y a 1 an
cmp_ctx_test.c 2da163cb73 CMP: add API functions OSSL_CMP_CTX_get0_libctx() and OSSL_CMP_CTX_get0_propq() il y a 1 an
cmp_hdr_test.c 357bfe7345 CMP+CRMF: fix formatting nits in crypto/, include/, and test/ il y a 1 an
cmp_msg_test.c 357bfe7345 CMP+CRMF: fix formatting nits in crypto/, include/, and test/ il y a 1 an
cmp_protect_test.c 357bfe7345 CMP+CRMF: fix formatting nits in crypto/, include/, and test/ il y a 1 an
cmp_server_test.c 7df56adac7 CMP: Add missing getter functions to CRMF API and CMP API il y a 3 ans
cmp_status_test.c 357bfe7345 CMP+CRMF: fix formatting nits in crypto/, include/, and test/ il y a 1 an
cmp_vfy_test.c 97446da7e0 test: cmp_vfy_test: fix defined but unused il y a 1 an
cms-examples.pl 909f1a2e51 Following the license change, modify the boilerplates in test/ il y a 5 ans
cmsapitest.c d8eb0e1988 tests: clear error queue before executing a testcase il y a 1 an
conf_include_test.c 711d5a2fc0 test: avoid memory leaks on errors il y a 3 ans
confdump.c 38fc02a708 Update copyright year il y a 3 ans
constant_time_test.c 1287dabd0b fix some code with obvious wrong coding style il y a 2 ans
context_internal_test.c fecb3aae22 Update copyright year il y a 2 ans
crltest.c fecb3aae22 Update copyright year il y a 2 ans
ct_test.c fecb3aae22 Update copyright year il y a 2 ans
ctype_internal_test.c 25f2138b0a Reorganize private crypto header files il y a 4 ans
curve448_internal_test.c 836080a89a Support all five EdDSA instances from RFC 8032 il y a 1 an
d2i_test.c 33388b44b6 Update copyright year il y a 4 ans
dane-cross.in 7585073892 Apply the correct Apache v2 license il y a 2 ans
danetest.c 79b2a2f2ee add OSSL_STACK_OF_X509_free() for commonly used pattern il y a 2 ans
danetest.in 909f1a2e51 Following the license change, modify the boilerplates in test/ il y a 5 ans
danetest.pem 170b735820 DANE support for X509_verify_cert() il y a 8 ans
data.bin c150a94857 TEST: Make our test data binary il y a 3 ans
data2.bin cede07dc51 Remove the external BoringSSL test il y a 3 ans
default-and-fips.cnf 92c03668c0 Add config_diagnostics to our configuration files. il y a 2 ans
default-and-legacy.cnf 92c03668c0 Add config_diagnostics to our configuration files. il y a 2 ans
default.cnf 92c03668c0 Add config_diagnostics to our configuration files. il y a 2 ans
defltfips_test.c 9d987de3aa Fix copyrights il y a 2 ans
destest.c cc350c8822 Add unit tests for weak key and key parity checks il y a 2 ans
dhkem_test.inc 78c44b0594 Add HPKE DHKEM provider support for EC, X25519 and X448. il y a 1 an
dhtest.c fecb3aae22 Update copyright year il y a 2 ans
drbgtest.c 04d07ffbed Workaround egd rand source deficiencies il y a 1 an
dsa_no_digest_size_test.c 33388b44b6 Update copyright year il y a 4 ans
dsatest.c 12e055991e dsatest: Properly detect failure in generate/sign/verify il y a 2 ans
dtls_mtu_test.c 38b051a1fe SSL object refactoring using SSL_CONNECTION object il y a 1 an
dtlstest.c a29ad912b8 Add additional messages to the DTLS dropped records test il y a 1 an
dtlsv1listentest.c 909f1a2e51 Following the license change, modify the boilerplates in test/ il y a 5 ans
ec_internal_test.c d93f154d5a Add test for EC_KEY_set_private_key() il y a 1 an
ecdsatest.c c2f7614fb7 Fix the checks of RAND_bytes il y a 2 ans
ecdsatest.h ae4186b004 Fix header file include guard names il y a 4 ans
ecstresstest.c e493d6e0ca APPS & TEST: Use ossl_[u]intmax_t rather than [u]intmax_t il y a 3 ans
ectest.c 15c8df8108 Potential null pointer reference il y a 1 an
endecode_test.c e1289d90d0 With fips provider 3.0.0 skip tests related to explicit curves handling il y a 1 an
endecoder_legacy_test.c 01fb4bff9b test: fix coverity 1469427 Improper use of negative value (NEGATIVE_RETURNS) il y a 3 ans
enginetest.c fecb3aae22 Update copyright year il y a 2 ans
errtest.c 5a9dbfc58a err: clear flags better when clearing errors. il y a 3 ans
event_queue_test.c d13c8b7725 Make OSSL_TIME a structure il y a 1 an
evp_extra_test.c b794476df7 Fix the check of EVP_PKEY_decrypt_init il y a 1 an
evp_extra_test2.c 667a8501f0 Add test for EVP_PKEY_Q_keygen il y a 1 an
evp_fetch_prov_test.c fecb3aae22 Update copyright year il y a 2 ans
evp_kdf_test.c e8add4d379 SSKDF with KMAC should return SIZE_MAX when EVP_KDF_CTX_get_kdf_size() il y a 1 an
evp_libctx_test.c ccc860a77e Revert "Remove conditional FIPS dependence for 3DES" il y a 1 an
evp_pkey_ctx_new_from_name.c 2d96bfd957 Testing the EVP_PKEY_CTX_new_from_name without preliminary init il y a 2 ans
evp_pkey_dhkem_test.c 78c44b0594 Add HPKE DHKEM provider support for EC, X25519 and X448. il y a 1 an
evp_pkey_dparams_test.c fecb3aae22 Update copyright year il y a 2 ans
evp_pkey_provided_test.c a16e86683e Honor OSSL_PKEY_PARAM_EC_POINT_CONVERSION_FORMAT as set and default to UNCOMPRESSED il y a 1 an
evp_test.c 12c20c5486 Drop a spurious printf in evp_test.c il y a 1 an
exdatatest.c 3c2bdd7df9 Update copyright year il y a 3 ans
exptest.c 30667f5c30 Limit size of modulus for bn_mul_mont and BN_mod_exp_mont_consttime il y a 1 an
ext_internal_test.c b67cb09f8d Add support for compressed certificates (RFC8879) il y a 1 an
fake_rsaprov.c e5202fbd46 Add test for EVP_PKEY_eq il y a 1 an
fake_rsaprov.h e5202fbd46 Add test for EVP_PKEY_eq il y a 1 an
fatalerrtest.c 20f8bc7255 test cleanup: move helper .c and .h files to test/helpers/ il y a 3 ans
ffc_internal_test.c 5f311b10ab ossl_ffc_params_copy: Copy the keylength too il y a 1 an
filterprov.c b0001d0cf2 provider: add an unquery function to allow providers to clean up. il y a 3 ans
filterprov.h b0001d0cf2 provider: add an unquery function to allow providers to clean up. il y a 3 ans
fips-alt.cnf ca7cac886b Add some testing for the case where the FIPS provider fails to load il y a 2 ans
fips-and-base.cnf 92c03668c0 Add config_diagnostics to our configuration files. il y a 2 ans
fips.cnf 92c03668c0 Add config_diagnostics to our configuration files. il y a 2 ans
fips_version_test.c e1289d90d0 With fips provider 3.0.0 skip tests related to explicit curves handling il y a 1 an
generate_buildtest.pl 909f1a2e51 Following the license change, modify the boilerplates in test/ il y a 5 ans
generate_ssl_tests.pl 38fc02a708 Update copyright year il y a 3 ans
gmdifftest.c a7a7e6e3a6 Reduce the runtime/output from the gmdiff test il y a 3 ans
hexstr_test.c 3c2bdd7df9 Update copyright year il y a 3 ans
hmactest.c 27f7f52765 Add test case to verify that the use after free issue is fixed. il y a 2 ans
hpke_test.c cae72eefc3 prevent HPKE sender setting seq unwisely il y a 1 an
http_test.c a497a90213 http_test.c: Simplify constant init of 'server_args' struct for gcc-4.8.x il y a 2 ans
ideatest.c 33388b44b6 Update copyright year il y a 4 ans
igetest.c 7573fe1af5 Deprecate the AES_ige_*() functions il y a 4 ans
insta.priv.pem db226bf20f Remove executable mode attributes of non-executable files il y a 2 ans
insta_ca.cert.pem db226bf20f Remove executable mode attributes of non-executable files il y a 2 ans
keymgmt_internal_test.c a63fa5f711 Replace "a RSA" with "an RSA" il y a 1 an
legacy.cnf 92c03668c0 Add config_diagnostics to our configuration files. il y a 2 ans
lhash_test.c 5317b6ee1f Add deprecation macro for 3.1 and deprecate OPENSSL_LH_stats il y a 2 ans
list_test.c 3077341126 list: add debug sanity checks il y a 1 an
localetest.c cf91a2b3c1 Include the e_os.h before string.h il y a 2 ans
mdc2_internal_test.c 33388b44b6 Update copyright year il y a 4 ans
mdc2test.c f2a6f83862 Cleanup : directly include of `internal/nelem.h` when required. il y a 1 an
membio_test.c 3bfc58ad6f Add a test for BIO_s_mem() when using datagrams il y a 1 an
memleaktest.c aff636a489 Update copyright year il y a 3 ans
modes_internal_test.c 1287dabd0b fix some code with obvious wrong coding style il y a 2 ans
moduleloadtest.c 3c2bdd7df9 Update copyright year il y a 3 ans
namemap_internal_test.c 3c2bdd7df9 Update copyright year il y a 3 ans
ocspapitest.c 180c8d7ae5 ocspapitest: use TEST_true to report the exact failure il y a 1 an
ossl_store_test.c 1287dabd0b fix some code with obvious wrong coding style il y a 2 ans
p_test.c fecb3aae22 Update copyright year il y a 2 ans
packettest.c 6292519cd8 QUIC: Enable building with QUIC support disabled il y a 1 an
param_build_test.c b49cf27388 test/param_build_test.c: test zero BIGNUM il y a 1 an
params_api_test.c fecb3aae22 Update copyright year il y a 2 ans
params_conversion_test.c fecb3aae22 Update copyright year il y a 2 ans
params_test.c fecb3aae22 Update copyright year il y a 2 ans
pbelutest.c 909f1a2e51 Following the license change, modify the boilerplates in test/ il y a 5 ans
pbetest.c 9d987de3aa Fix copyrights il y a 2 ans
pem_read_depr_test.c 54b4053130 Update copyright year il y a 2 ans
pemtest.c 54b4053130 Update copyright year il y a 2 ans
pkcs12_api_test.c e869c867c1 Allow PKCS12 export to set arbitrary bag attributes il y a 1 an
pkcs12_format_test.c f2a6f83862 Cleanup : directly include of `internal/nelem.h` when required. il y a 1 an
pkcs7-1.pem d02b48c63a Import of old SSLeay release: SSLeay 0.8.1b il y a 25 ans
pkcs7.pem d02b48c63a Import of old SSLeay release: SSLeay 0.8.1b il y a 25 ans
pkcs7_test.c f505161e62 Fix PKCS7_verify to not have an error stack if it succeeds. il y a 3 ans
pkey_meth_kdf_test.c eec0ad10b9 Update copyright year il y a 3 ans
pkey_meth_test.c 0f84cbc3e2 Update copyright year il y a 3 ans
pkits-test.pl 909f1a2e51 Following the license change, modify the boilerplates in test/ il y a 5 ans
poly1305_internal_test.c 3d5a7578e0 Add ChaCha related ciphers to default provider il y a 4 ans
priority_queue_test.c f0a4935827 test: add priority queue unit test il y a 2 ans
property_test.c 92a25e24e6 Fix occasional assertion failure when storing properties il y a 1 an
prov_config_test.c 194fcc9ae0 Add a test for running the config twice il y a 2 ans
provfetchtest.c fecb3aae22 Update copyright year il y a 2 ans
provider_default_search_path_test.c d3db25f568 Implement OSSL_PROVIDER_get0_default_search_path, add docs and tests. il y a 1 an
provider_fallback_test.c 38fc02a708 Update copyright year il y a 3 ans
provider_internal_test.c c59fc87b33 Don't attempt to deactive child providers if we don't need to il y a 2 ans
provider_internal_test.cnf.in 92c03668c0 Add config_diagnostics to our configuration files. il y a 2 ans
provider_pkey_test.c e5202fbd46 Add test for EVP_PKEY_eq il y a 1 an
provider_status_test.c 866376432b Add test for provider gettables il y a 2 ans
provider_test.c fecb3aae22 Update copyright year il y a 2 ans
proxy.cnf 92c03668c0 Add config_diagnostics to our configuration files. il y a 2 ans
punycode_test.c 905ba92439 punycode: update to use WPACKET instead of using custom range checking il y a 1 an
quic_ackm_test.c 4d32f5332f Updates for OSSL_TIME changes il y a 1 an
quic_cfq_test.c 6db5cb8448 QUIC CFQ Fixes il y a 1 an
quic_fc_test.c 508e087c4c QUIC Flow Control il y a 1 an
quic_fifd_test.c 05f97354bb QUIC TXP: Fix bug in send stream handling, cleanup il y a 1 an
quic_record_test.c d7668ff213 QUIC DEMUX: Allow MTU to vary over time and autodetect MTU il y a 1 an
quic_record_test_util.h 70d45893d0 QUIC Wire Encoding: Support Retry Integrity Tag Calculation il y a 1 an
quic_stream_test.c 6d5d5fc9a9 QUIC RX: Support refcounted packets and eliminate wrapper il y a 1 an
quic_txp_test.c d7668ff213 QUIC DEMUX: Allow MTU to vary over time and autodetect MTU il y a 1 an
quic_txpim_test.c d77aea5916 QUIC TXPIM il y a 1 an
quic_wire_test.c 70d45893d0 QUIC Wire Encoding: Support Retry Integrity Tag Calculation il y a 1 an
quicapitest.c b940f943a2 QUIC: Temporarily disable front-end API tests il y a 1 an
rand_status_test.c 4516bf7422 rand: instantiate the DRBGs upon first use. il y a 3 ans
rand_test.c a87c3247ca Remove redundant RAND_get0_private() call il y a 2 ans
rc2test.c 33388b44b6 Update copyright year il y a 4 ans
rc4test.c 33388b44b6 Update copyright year il y a 4 ans
rc5test.c 33388b44b6 Update copyright year il y a 4 ans
rdcpu_sanitytest.c fecb3aae22 Update copyright year il y a 2 ans
recordlentest.c d8eb0e1988 tests: clear error queue before executing a testcase il y a 1 an
rsa_complex.c 2de00f4f1e djgpp: Skip test/rsa_complex.c il y a 1 an
rsa_mp_test.c 7efc653c43 Make RSA_generate_multi_prime_key() not segfault if e is NULL. il y a 1 an
rsa_sp800_56b_test.c a8d9bd8114 Update copyright year il y a 2 ans
rsa_test.c 36a4637e15 Fix use of uninitialized memory in test_rsa_oaep il y a 3 ans
run_tests.pl fecb3aae22 Update copyright year il y a 2 ans
safe_math_test.c fecb3aae22 Update copyright year il y a 2 ans
sanitytest.c fecb3aae22 Update copyright year il y a 2 ans
secmemtest.c fecb3aae22 Update copyright year il y a 2 ans
serverinfo.pem c655f40ed2 Require ServerInfo PEMs to be named "BEGIN SERVERINFO FOR"... il y a 10 ans
serverinfo2.pem b878afae4b Add a SERVERINFOV2 format test file il y a 7 ans
servername_test.c 66325793cc test: fix coverity 1451534: improper use of negative value il y a 3 ans
session.pem 6cf2dbd9fa Don't store the ticket nonce in the session il y a 6 ans
sha_test.c 43ba1573ce test: add test cases for SHAxxx helper functions il y a 3 ans
shibboleth.pfx 70bf33d182 Add PKCS#12 UTF-8 interoperability test. il y a 7 ans
shlibloadtest.c 3c2bdd7df9 Update copyright year il y a 3 ans
simpledynamic.c 54b4053130 Update copyright year il y a 2 ans
simpledynamic.h 0652197407 TEST: Modify simpledynamic.[ch] to allow use on VMS as well il y a 3 ans
siphash_internal_test.c fecb3aae22 Update copyright year il y a 2 ans
sm2_internal_test.c f087ebcb2e feat: Add sm2 signature test case from GM/T 0003.5-2012 il y a 2 ans
sm3_internal_test.c 7585073892 Apply the correct Apache v2 license il y a 2 ans
sm4_internal_test.c 3c2bdd7df9 Update copyright year il y a 3 ans
smcont.bin 5771017d06 apps/cms.c: Correct -sign output and -verify input with -binary il y a 3 ans
smcont.txt 382bb0b294 test/smcont.txt: trigger assertion in bio_enc.c. il y a 7 ans
smcont_zero.txt 947fb81345 Tests for processing zero-length content in SMIME format il y a 3 ans
sparse_array_test.c 38fc02a708 Update copyright year il y a 3 ans
srptest.c a28d06f3e9 Update copyright year il y a 3 ans
ssl_cert_table_internal_test.c 1555c86e5f Cast values to match printf format strings. il y a 1 an
ssl_ctx_test.c 454afd9866 Update copyright year il y a 4 ans
ssl_old_test.c 7e3cacac94 Update COMP_METHOD il y a 1 an
ssl_test.c 08e4901298 Add a test_ssl_new testcase il y a 2 ans
ssl_test.tmpl f4941736a9 test/ssl_test.tmpl: make it work with elderly perl. il y a 7 ans
ssl_test_ctx_test.c 20f8bc7255 test cleanup: move helper .c and .h files to test/helpers/ il y a 3 ans
ssl_test_ctx_test.cnf 433deaffce Use .cnf for config files, not .conf il y a 4 ans
sslapitest.c 2dded44a49 Fix `no-ec enable-ktls` build il y a 1 an
sslbuffertest.c ee05588dab Check whether buffers have actually been allocated/freed il y a 1 an
sslcorrupttest.c d8eb0e1988 tests: clear error queue before executing a testcase il y a 1 an
stack_test.c 1287dabd0b fix some code with obvious wrong coding style il y a 2 ans
sysdefault.cnf 6b9d3b7c5e Add oid_section to sysdefault.cnf to test adding new oids il y a 2 ans
sysdefaulttest.c 909f1a2e51 Following the license change, modify the boilerplates in test/ il y a 5 ans
test.cnf 91f2b15f2e TEST: Prefer using precomputed RSA and DH keys for more efficient tests il y a 3 ans
test_test.c 6162a2402d test: placate Clang's --Wbitwise-instead-of-logical il y a 2 ans
testcrl.pem d02b48c63a Import of old SSLeay release: SSLeay 0.8.1b il y a 25 ans
testdsa.pem 79a578b902 Add private/public key conversion tests il y a 9 ans
testdsapub.pem 79a578b902 Add private/public key conversion tests il y a 9 ans
testec-p112r1.pem 33b9bb45a4 TEST: Check property query support of apps/pkey il y a 1 an
testec-p256.pem 79a578b902 Add private/public key conversion tests il y a 9 ans
testecpub-p256.pem 79a578b902 Add private/public key conversion tests il y a 9 ans
tested25519.pem 81722fdf2e More testing for CLI usage of Ed25519 and Ed448 keys il y a 4 ans
tested25519pub.pem 81722fdf2e More testing for CLI usage of Ed25519 and Ed448 keys il y a 4 ans
tested448.pem 81722fdf2e More testing for CLI usage of Ed25519 and Ed448 keys il y a 4 ans
tested448pub.pem 81722fdf2e More testing for CLI usage of Ed25519 and Ed448 keys il y a 4 ans
testp7.pem dcb1ef5c22 Change PKCS#7 test data to take account of removal of il y a 24 ans
testreq2.pem d02b48c63a Import of old SSLeay release: SSLeay 0.8.1b il y a 25 ans
testrsa.pem 10203a3472 Support writing RSA keys using the traditional format again il y a 3 ans
testrsa2048.pem 8d17cca5b8 Add fips checks for rsa encryption il y a 3 ans
testrsa2048pub.pem e9e6827445 Test that signatures using hash name commands work properly il y a 1 an
testrsa_withattrs.der 6dbb277627 Tests for creating req from PKCS8 keys with extra attrs il y a 3 ans
testrsa_withattrs.pem 6dbb277627 Tests for creating req from PKCS8 keys with extra attrs il y a 3 ans
testrsapss.pem a2a5506b93 rsa_kmgmt: Return OSSL_PKEY_PARAM_DEFAULT_DIGEST for unrestricted PSS keys il y a 3 ans
testrsapssmandatory.pem bbde856619 RSA: properly generate algorithm identifier for RSA-PSS signatures il y a 3 ans
testrsapub.pem 79a578b902 Add private/public key conversion tests il y a 9 ans
testsid.pem c22ad9b64a Regenerate testsid.pem il y a 3 ans
testutil.h fe84acc227 test: add two comparision options to fips version test utility code il y a 1 an
testx509.pem 1e41dadfa7 Extend X509 cert checks and error reporting in v3_{purp,crld}.c and x509_{set,vfy}.c il y a 3 ans
threadpool_test.c c48c32807f Split out thread pool tests into threadpool_test il y a 1 an
threadstest.c c48c32807f Split out thread pool tests into threadpool_test il y a 1 an
threadstest.h 235776b2c7 test: add test case to reliably reproduce RAND leak during POST il y a 3 ans
threadstest_fips.c 235776b2c7 test: add test case to reliably reproduce RAND leak during POST il y a 3 ans
time_offset_test.c 909f1a2e51 Following the license change, modify the boilerplates in test/ il y a 5 ans
timing_load_creds.c adf289b5b6 timing_load_creds requires POSIX1.2001 due to rusage il y a 1 an
tls-provider.c fecb3aae22 Update copyright year il y a 2 ans
tls13ccstest.c 1287dabd0b fix some code with obvious wrong coding style il y a 2 ans
tls13encryptiontest.c 22094d11a7 Rename SSL3_RECORD to TLS_RL_RECORD il y a 1 an
tls13secretstest.c b92fc4ae18 Remove some redundant code il y a 1 an
trace_api_test.c e64a169fc6 Add testcase for OSSL_trace_set_callback() il y a 1 an
uitest.c 5755c11fd6 Fix the checks of UI_add_input_string il y a 2 ans
upcallstest.c fecb3aae22 Update copyright year il y a 2 ans
user_property_test.c 5725ab8087 property: add test case for setting default user properties before fetching il y a 3 ans
v3-cert1.pem d02b48c63a Import of old SSLeay release: SSLeay 0.8.1b il y a 25 ans
v3-cert2.pem d02b48c63a Import of old SSLeay release: SSLeay 0.8.1b il y a 25 ans
v3_ca_exts.cnf 9495cfbc22 make various test CA certs RFC 5280 compliant w.r.t. X509 extensions il y a 3 ans
v3ext.c 26cfa4cd85 Fix coverity issues in X509v3_addr il y a 1 an
v3nametest.c b147b9daf1 test/v3nametest.c: Add check for OPENSSL_malloc il y a 2 ans
verify_extra_test.c fecb3aae22 Update copyright year il y a 2 ans
versions.c 909f1a2e51 Following the license change, modify the boilerplates in test/ il y a 5 ans
wpackettest.c 6292519cd8 QUIC: Enable building with QUIC support disabled il y a 1 an
x509_check_cert_pkey_test.c f5afac4bda Update copyright year il y a 3 ans
x509_dup_cert_test.c f541419c79 Remove unused variable 'sctx' il y a 2 ans
x509_internal_test.c a8d9bd8114 Update copyright year il y a 2 ans
x509_test.c 29d4d8e80e Add test for X509 sign TBS cache regression. il y a 1 an
x509_time_test.c 9929c81702 apps & al : Fix various typos, repeated words, align some spelling to LDP. il y a 1 an
x509aux.c f2a6f83862 Cleanup : directly include of `internal/nelem.h` when required. il y a 1 an

README-dev.md

Guidelines for test developers

How to add recipes

For any test that you want to perform, you write a script located in test/recipes/, named {nn}-test_{name}.t, where {nn} is a two digit number and {name} is a unique name of your choice.

Please note that if a test involves a new testing executable, you will need to do some additions in test/build.info. Please refer to the section "Changes to test/build.info" below.

Naming conventions

A test executable is named test/{name}test.c

A test recipe is named test/recipes/{nn}-test_{name}.t, where {nn} is a two digit number and {name} is a unique name of your choice.

The number {nn} is (somewhat loosely) grouped as follows:

00-04  sanity, internal and essential API tests
05-09  individual symmetric cipher algorithms
10-14  math (bignum)
15-19  individual asymmetric cipher algorithms
20-24  openssl commands (some otherwise not tested)
25-29  certificate forms, generation and verification
30-35  engine and evp
60-79  APIs:
   60  X509 subsystem
   61  BIO subsystem
   65  CMP subsystem
   70  PACKET layer
80-89  "larger" protocols (CA, CMS, OCSP, SSL, TSA)
90-98  misc
99     most time consuming tests [such as test_fuzz]

A recipe that just runs a test executable

A script that just runs a program looks like this:

#! /usr/bin/env perl

use OpenSSL::Test::Simple;

simple_test("test_{name}", "{name}test", "{name}");

{name} is the unique name you have chosen for your test.

The second argument to simple_test is the test executable, and simple_test expects it to be located in test/

For documentation on OpenSSL::Test::Simple, do perldoc util/perl/OpenSSL/Test/Simple.pm.

A recipe that runs a more complex test

For more complex tests, you will need to read up on Test::More and OpenSSL::Test. Test::More is normally preinstalled, do man Test::More for documentation. For OpenSSL::Test, do perldoc util/perl/OpenSSL/Test.pm.

A script to start from could be this:

#! /usr/bin/env perl

use strict;
use warnings;
use OpenSSL::Test;

setup("test_{name}");

plan tests => 2;                # The number of tests being performed

ok(test1, "test1");
ok(test2, "test1");

sub test1
{
    # test feature 1
}

sub test2
{
    # test feature 2
}

Changes to test/build.info

Whenever a new test involves a new test executable you need to do the following (at all times, replace {NAME} and {name} with the name of your test):

  • add {name} to the list of programs under PROGRAMS_NO_INST

  • create a three line description of how to build the test, you will have to modify the include paths and source files if you don't want to use the basic test framework:

    SOURCE[{name}]={name}.c INCLUDE[{name}]=.. ../include ../apps/include DEPEND[{name}]=../libcrypto libtestutil.a

Generic form of C test executables

#include "testutil.h"

static int my_test(void)
{
    int testresult = 0;                 /* Assume the test will fail    */
    int observed;

    observed = function();              /* Call the code under test     */
    if (!TEST_int_eq(observed, 2))      /* Check the result is correct  */
        goto end;                       /* Exit on failure - optional   */

    testresult = 1;                     /* Mark the test case a success */
end:
    cleanup();                          /* Any cleanup you require      */
    return testresult;
}

int setup_tests(void)
{
    ADD_TEST(my_test);                  /* Add each test separately     */
    return 1;                           /* Indicate success             */
}

You should use the TEST_xxx macros provided by testutil.h to test all failure conditions. These macros produce an error message in a standard format if the condition is not met (and nothing if the condition is met). Additional information can be presented with the TEST_info macro that takes a printf format string and arguments. TEST_error is useful for complicated conditions, it also takes a printf format string and argument. In all cases the TEST_xxx macros are guaranteed to evaluate their arguments exactly once. This means that expressions with side effects are allowed as parameters. Thus,

if (!TEST_ptr(ptr = OPENSSL_malloc(..)))

works fine and can be used in place of:

ptr = OPENSSL_malloc(..);
if (!TEST_ptr(ptr))

The former produces a more meaningful message on failure than the latter.

Note that the test infrastructure automatically sets up all required environment variables (such as OPENSSL_MODULES, OPENSSL_CONF, etc.) for the tests. Individual tests may choose to override the default settings as required.