Hugo Landau 948c656c66 TX key update support, RX time and PN reporting, general refactoring há 2 anos atrás
..
certs 61a9767691 X509: add tests for purpose code signing in verify application há 2 anos atrás
ct 92c03668c0 Add config_diagnostics to our configuration files. há 3 anos atrás
d2i-tests a378a46985 add test for CVE-2016-7053 há 8 anos atrás
helpers 279754d419 Standardise type for epoch há 2 anos atrás
ocsp-tests 121738d1cb Fix OCSP_basic_verify() cert chain construction in case bs->certs is NULL há 7 anos atrás
recipes ec279ac211 QUIC Demuxer and Record Layer (RX Side) há 2 anos atrás
smime-certs 19914fec9b cms: Create test for for purpose verification in cms application há 2 anos atrás
ssl-tests 479b9adb88 Change the SCT issuer key to RSA 2048 há 2 anos atrás
testutil 416d0a638c QUIC wire format support há 2 anos atrás
CAtsa.cnf 92c03668c0 Add config_diagnostics to our configuration files. há 3 anos atrás
README-dev.md 473664aafd always use the same perl in $PATH há 3 anos atrás
README-external.md fa66f62ebb Add external testing with oqsprovider há 2 anos atrás
README.md c678f68a19 test: document the random test ordering env variable há 3 anos atrás
README.ssltest.md eec204f4b1 Make running individual ssl-test easier há 2 anos atrás
aborttest.c 909f1a2e51 Following the license change, modify the boilerplates in test/ há 6 anos atrás
acvp_test.c 2cba2e160d Fix the checks of EVP_PKEY_CTX_set/get_* functions há 2 anos atrás
acvp_test.inc 3a1ee3c199 Drop OPENSSL_NO_RSA everywhere há 3 anos atrás
aesgcmtest.c 8d9fec1781 Fix the incorrect checks of EVP_CIPHER_CTX_set_key_length há 2 anos atrás
afalgtest.c 6f6a5e0c7c Fix a memory leak in the afalg engine há 3 anos atrás
algorithmid_test.c 2349d7ba57 Fix the return check of OBJ_obj2txt há 3 anos atrás
asn1_decode_test.c aff636a489 Update copyright year há 3 anos atrás
asn1_dsa_internal_test.c eec0ad10b9 Update copyright year há 4 anos atrás
asn1_encode_test.c 54b4053130 Update copyright year há 3 anos atrás
asn1_internal_test.c 2296cc34f3 TEST: Check that i2d refuses to encode non-optional items with no content há 3 anos atrás
asn1_string_table_test.c 275a7b9e5e typo ANS1 -> ASN1 há 6 anos atrás
asn1_time_test.c 6097eb2152 libcrypto and test: rename asn1_string_to_time_t to ossl_asn1_string_to_time_t há 2 anos atrás
asynciotest.c 20f8bc7255 test cleanup: move helper .c and .h files to test/helpers/ há 4 anos atrás
asynctest.c fecb3aae22 Update copyright year há 2 anos atrás
bad_dtls_test.c c2f7614fb7 Fix the checks of RAND_bytes há 2 anos atrás
bftest.c 1287dabd0b fix some code with obvious wrong coding style há 3 anos atrás
bio_callback_test.c 38fc02a708 Update copyright year há 3 anos atrás
bio_core_test.c 11efa7d45b BIO_new_from_core_bio: Fix heap-use-after-free after attach há 3 anos atrás
bio_dgram_test.c 664e096cf9 BIO_dgram support for BIO_sendmmsg/BIO_recvmmsg há 2 anos atrás
bio_enc_test.c fecb3aae22 Update copyright year há 2 anos atrás
bio_memleak_test.c 54b4053130 Update copyright year há 3 anos atrás
bio_prefix_text.c a9ed63f1d1 BIO_set_indent: fix return check há 3 anos atrás
bio_readbuffer_test.c 251c48183b Fix DER reading from stdin for BIO_f_readbuffer há 3 anos atrás
bio_tfo_test.c d272ef5372 Fix asan finding in bio_tfo_test há 2 anos atrás
bioprinttest.c c4683009ad TEST: Adjust test/bioprinttest.c to behave like the testutil routines há 4 anos atrás
bn_internal_test.c 8020d79b40 Update copyright year há 3 anos atrás
bn_rand_range.h 5d2f3e4a6c Test of uniformity of BN_rand_range output. há 5 anos atrás
bntest.c a644cb7c1c [crypto/bn] BN_consttime_swap: remove superfluous early exit há 2 anos atrás
bntests.pl 909f1a2e51 Following the license change, modify the boilerplates in test/ há 6 anos atrás
build.info ec279ac211 QUIC Demuxer and Record Layer (RX Side) há 2 anos atrás
build_wincrypt_test.c 3c58d44749 Move types.h #undefs for wincrypt.h compatibility há 2 anos atrás
ca-and-certs.cnf 92c03668c0 Add config_diagnostics to our configuration files. há 3 anos atrás
ca_internals_test.c 6097eb2152 libcrypto and test: rename asn1_string_to_time_t to ossl_asn1_string_to_time_t há 2 anos atrás
casttest.c 33388b44b6 Update copyright year há 4 anos atrás
chacha_internal_test.c 25f2138b0a Reorganize private crypto header files há 5 anos atrás
cipher_overhead_test.c a28d06f3e9 Update copyright year há 3 anos atrás
cipherbytes_test.c 6ac1cd10ba Fix safestack issues in ssl.h há 4 anos atrás
cipherlist_test.c d1b26ddbf6 Allow cipher strings to be given using its standard name há 3 anos atrás
ciphername_test.c 6ac1cd10ba Fix safestack issues in ssl.h há 4 anos atrás
clienthellotest.c 1287dabd0b fix some code with obvious wrong coding style há 3 anos atrás
cmactest.c a370ff8daa Add a CMAC test há 4 anos atrás
cmp_asn_test.c fd009d763a test: remove TODOs há 3 anos atrás
cmp_client_test.c fecb3aae22 Update copyright year há 2 anos atrás
cmp_ctx_test.c 2c05607cd9 Fix ossl_x509v3_cache_extensions(): EXFLAG_NO_FINGERPRINT should not be an error há 2 anos atrás
cmp_hdr_test.c 3c0d0eca35 Work around a 32-bit mingw failure há 3 anos atrás
cmp_msg_test.c d2b6c06274 Ensure libctx/propq is propagated when handling X509_REQ há 3 anos atrás
cmp_protect_test.c 79b2a2f2ee add OSSL_STACK_OF_X509_free() for commonly used pattern há 2 anos atrás
cmp_server_test.c 7df56adac7 CMP: Add missing getter functions to CRMF API and CMP API há 3 anos atrás
cmp_status_test.c a8d9bd8114 Update copyright year há 3 anos atrás
cmp_vfy_test.c b6fbef1159 Add OSSL_CMP_CTX_get0_validatedSrvCert(), correcting OSSL_CMP_validate_msg() há 2 anos atrás
cms-examples.pl 909f1a2e51 Following the license change, modify the boilerplates in test/ há 6 anos atrás
cmsapitest.c 98b183d3c6 cmsapitest.c: add test case for CMS_EnvelopedData_decrypt() há 2 anos atrás
conf_include_test.c 711d5a2fc0 test: avoid memory leaks on errors há 3 anos atrás
confdump.c 38fc02a708 Update copyright year há 3 anos atrás
constant_time_test.c 1287dabd0b fix some code with obvious wrong coding style há 3 anos atrás
context_internal_test.c fecb3aae22 Update copyright year há 2 anos atrás
crltest.c fecb3aae22 Update copyright year há 2 anos atrás
ct_test.c fecb3aae22 Update copyright year há 2 anos atrás
ctype_internal_test.c 25f2138b0a Reorganize private crypto header files há 5 anos atrás
curve448_internal_test.c 3c2bdd7df9 Update copyright year há 3 anos atrás
d2i_test.c 33388b44b6 Update copyright year há 4 anos atrás
dane-cross.in 7585073892 Apply the correct Apache v2 license há 2 anos atrás
danetest.c 79b2a2f2ee add OSSL_STACK_OF_X509_free() for commonly used pattern há 2 anos atrás
danetest.in 909f1a2e51 Following the license change, modify the boilerplates in test/ há 6 anos atrás
danetest.pem 170b735820 DANE support for X509_verify_cert() há 8 anos atrás
data.bin c150a94857 TEST: Make our test data binary há 4 anos atrás
data2.bin cede07dc51 Remove the external BoringSSL test há 3 anos atrás
default-and-fips.cnf 92c03668c0 Add config_diagnostics to our configuration files. há 3 anos atrás
default-and-legacy.cnf 92c03668c0 Add config_diagnostics to our configuration files. há 3 anos atrás
default.cnf 92c03668c0 Add config_diagnostics to our configuration files. há 3 anos atrás
defltfips_test.c 9d987de3aa Fix copyrights há 2 anos atrás
destest.c cc350c8822 Add unit tests for weak key and key parity checks há 3 anos atrás
dhtest.c fecb3aae22 Update copyright year há 2 anos atrás
drbgtest.c c2f7614fb7 Fix the checks of RAND_bytes há 2 anos atrás
dsa_no_digest_size_test.c 33388b44b6 Update copyright year há 4 anos atrás
dsatest.c 12e055991e dsatest: Properly detect failure in generate/sign/verify há 3 anos atrás
dtls_mtu_test.c 38b051a1fe SSL object refactoring using SSL_CONNECTION object há 2 anos atrás
dtlstest.c 26dad42e9c Add a DTLSv1_listen() test há 2 anos atrás
dtlsv1listentest.c 909f1a2e51 Following the license change, modify the boilerplates in test/ há 6 anos atrás
ec_internal_test.c d93f154d5a Add test for EC_KEY_set_private_key() há 2 anos atrás
ecdsatest.c c2f7614fb7 Fix the checks of RAND_bytes há 2 anos atrás
ecdsatest.h ae4186b004 Fix header file include guard names há 5 anos atrás
ecstresstest.c e493d6e0ca APPS & TEST: Use ossl_[u]intmax_t rather than [u]intmax_t há 3 anos atrás
ectest.c 615a9b8798 d2i_PublicKey: Make it work with EC parameters in a provided key há 3 anos atrás
endecode_test.c fecb3aae22 Update copyright year há 2 anos atrás
endecoder_legacy_test.c 01fb4bff9b test: fix coverity 1469427 Improper use of negative value (NEGATIVE_RETURNS) há 3 anos atrás
enginetest.c fecb3aae22 Update copyright year há 2 anos atrás
errtest.c 5a9dbfc58a err: clear flags better when clearing errors. há 3 anos atrás
event_queue_test.c d13c8b7725 Make OSSL_TIME a structure há 2 anos atrás
evp_extra_test.c 3a1596f4e3 Add testcases for EVP_PKEY_get1_encoded_public_key há 2 anos atrás
evp_extra_test2.c d768f853bb Coverity 1507372: explicit null dereference há 2 anos atrás
evp_fetch_prov_test.c fecb3aae22 Update copyright year há 2 anos atrás
evp_kdf_test.c 0e9a265e42 Support different R_BITS lengths for KBKDF há 3 anos atrás
evp_libctx_test.c f15e3f3aa9 Fix the incorrect checks of EVP_CIPHER_CTX_rand_key há 2 anos atrás
evp_pkey_ctx_new_from_name.c 2d96bfd957 Testing the EVP_PKEY_CTX_new_from_name without preliminary init há 2 anos atrás
evp_pkey_dparams_test.c fecb3aae22 Update copyright year há 2 anos atrás
evp_pkey_provided_test.c babc818c3f Fix the checks of EVP_PKEY_private_check há 2 anos atrás
evp_test.c fc5888ccb6 test/evp_test: Test if EVP_DigestSign() set signature's length. há 2 anos atrás
exdatatest.c 3c2bdd7df9 Update copyright year há 3 anos atrás
exptest.c c2f7614fb7 Fix the checks of RAND_bytes há 2 anos atrás
fake_rsaprov.c f80cdee7c1 fix Coverity 1506709: error handling há 2 anos atrás
fake_rsaprov.h 051228353a test: fetching proper signature provider for non-exportable keys há 3 anos atrás
fatalerrtest.c 20f8bc7255 test cleanup: move helper .c and .h files to test/helpers/ há 4 anos atrás
ffc_internal_test.c 5f311b10ab ossl_ffc_params_copy: Copy the keylength too há 2 anos atrás
filterprov.c b0001d0cf2 provider: add an unquery function to allow providers to clean up. há 3 anos atrás
filterprov.h b0001d0cf2 provider: add an unquery function to allow providers to clean up. há 3 anos atrás
fips-alt.cnf ca7cac886b Add some testing for the case where the FIPS provider fails to load há 3 anos atrás
fips-and-base.cnf 92c03668c0 Add config_diagnostics to our configuration files. há 3 anos atrás
fips.cnf 92c03668c0 Add config_diagnostics to our configuration files. há 3 anos atrás
generate_buildtest.pl 909f1a2e51 Following the license change, modify the boilerplates in test/ há 6 anos atrás
generate_ssl_tests.pl 38fc02a708 Update copyright year há 3 anos atrás
gmdifftest.c a7a7e6e3a6 Reduce the runtime/output from the gmdiff test há 3 anos atrás
hexstr_test.c 3c2bdd7df9 Update copyright year há 3 anos atrás
hmactest.c 27f7f52765 Add test case to verify that the use after free issue is fixed. há 2 anos atrás
http_test.c a497a90213 http_test.c: Simplify constant init of 'server_args' struct for gcc-4.8.x há 2 anos atrás
ideatest.c 33388b44b6 Update copyright year há 4 anos atrás
igetest.c 7573fe1af5 Deprecate the AES_ige_*() functions há 5 anos atrás
insta.priv.pem db226bf20f Remove executable mode attributes of non-executable files há 3 anos atrás
insta_ca.cert.pem db226bf20f Remove executable mode attributes of non-executable files há 3 anos atrás
keymgmt_internal_test.c 115eb945ac Fix a mem leak in evp_pkey_export_to_provider há 2 anos atrás
legacy.cnf 92c03668c0 Add config_diagnostics to our configuration files. há 3 anos atrás
lhash_test.c 5317b6ee1f Add deprecation macro for 3.1 and deprecate OPENSSL_LH_stats há 2 anos atrás
localetest.c cf91a2b3c1 Include the e_os.h before string.h há 2 anos atrás
mdc2_internal_test.c 33388b44b6 Update copyright year há 4 anos atrás
mdc2test.c fecb3aae22 Update copyright year há 2 anos atrás
membio_test.c 3bfc58ad6f Add a test for BIO_s_mem() when using datagrams há 2 anos atrás
memleaktest.c aff636a489 Update copyright year há 3 anos atrás
modes_internal_test.c 1287dabd0b fix some code with obvious wrong coding style há 3 anos atrás
moduleloadtest.c 3c2bdd7df9 Update copyright year há 3 anos atrás
namemap_internal_test.c 3c2bdd7df9 Update copyright year há 3 anos atrás
ocspapitest.c 180c8d7ae5 ocspapitest: use TEST_true to report the exact failure há 2 anos atrás
ossl_store_test.c 1287dabd0b fix some code with obvious wrong coding style há 3 anos atrás
p_test.c fecb3aae22 Update copyright year há 2 anos atrás
packettest.c 416d0a638c QUIC wire format support há 2 anos atrás
param_build_test.c fecb3aae22 Update copyright year há 2 anos atrás
params_api_test.c fecb3aae22 Update copyright year há 2 anos atrás
params_conversion_test.c fecb3aae22 Update copyright year há 2 anos atrás
params_test.c fecb3aae22 Update copyright year há 2 anos atrás
pbelutest.c 909f1a2e51 Following the license change, modify the boilerplates in test/ há 6 anos atrás
pbetest.c 9d987de3aa Fix copyrights há 2 anos atrás
pem_read_depr_test.c 54b4053130 Update copyright year há 3 anos atrás
pemtest.c 54b4053130 Update copyright year há 3 anos atrás
pkcs12_api_test.c cfd24cde81 Add support for mac-less password-base PKCS12 files to PKCS12_parse API. há 2 anos atrás
pkcs12_format_test.c 1287dabd0b fix some code with obvious wrong coding style há 3 anos atrás
pkcs7-1.pem d02b48c63a Import of old SSLeay release: SSLeay 0.8.1b há 26 anos atrás
pkcs7.pem d02b48c63a Import of old SSLeay release: SSLeay 0.8.1b há 26 anos atrás
pkcs7_test.c f505161e62 Fix PKCS7_verify to not have an error stack if it succeeds. há 3 anos atrás
pkey_meth_kdf_test.c eec0ad10b9 Update copyright year há 4 anos atrás
pkey_meth_test.c 0f84cbc3e2 Update copyright year há 4 anos atrás
pkits-test.pl 909f1a2e51 Following the license change, modify the boilerplates in test/ há 6 anos atrás
poly1305_internal_test.c 3d5a7578e0 Add ChaCha related ciphers to default provider há 5 anos atrás
priority_queue_test.c f0a4935827 test: add priority queue unit test há 2 anos atrás
property_test.c 9f6841e9d8 test: add some unit tests for the property to string functions há 2 anos atrás
prov_config_test.c 194fcc9ae0 Add a test for running the config twice há 3 anos atrás
provfetchtest.c fecb3aae22 Update copyright year há 2 anos atrás
provider_fallback_test.c 38fc02a708 Update copyright year há 3 anos atrás
provider_internal_test.c c59fc87b33 Don't attempt to deactive child providers if we don't need to há 3 anos atrás
provider_internal_test.cnf.in 92c03668c0 Add config_diagnostics to our configuration files. há 3 anos atrás
provider_pkey_test.c dca637f50c Add test for try_key_ref() fallback handling há 2 anos atrás
provider_status_test.c 866376432b Add test for provider gettables há 3 anos atrás
provider_test.c fecb3aae22 Update copyright year há 2 anos atrás
proxy.cnf 92c03668c0 Add config_diagnostics to our configuration files. há 3 anos atrás
quic_ackm_test.c 4d32f5332f Updates for OSSL_TIME changes há 2 anos atrás
quic_record_test.c 948c656c66 TX key update support, RX time and PN reporting, general refactoring há 2 anos atrás
quic_wire_test.c ec279ac211 QUIC Demuxer and Record Layer (RX Side) há 2 anos atrás
quicapitest.c 26dad42e9c Add a DTLSv1_listen() test há 2 anos atrás
rand_status_test.c 4516bf7422 rand: instantiate the DRBGs upon first use. há 4 anos atrás
rand_test.c a87c3247ca Remove redundant RAND_get0_private() call há 3 anos atrás
rc2test.c 33388b44b6 Update copyright year há 4 anos atrás
rc4test.c 33388b44b6 Update copyright year há 4 anos atrás
rc5test.c 33388b44b6 Update copyright year há 4 anos atrás
rdcpu_sanitytest.c fecb3aae22 Update copyright year há 2 anos atrás
recordlentest.c a28d06f3e9 Update copyright year há 3 anos atrás
rsa_complex.c 909f1a2e51 Following the license change, modify the boilerplates in test/ há 6 anos atrás
rsa_mp_test.c 3a1ee3c199 Drop OPENSSL_NO_RSA everywhere há 3 anos atrás
rsa_sp800_56b_test.c a8d9bd8114 Update copyright year há 3 anos atrás
rsa_test.c 36a4637e15 Fix use of uninitialized memory in test_rsa_oaep há 3 anos atrás
run_tests.pl fecb3aae22 Update copyright year há 2 anos atrás
safe_math_test.c fecb3aae22 Update copyright year há 2 anos atrás
sanitytest.c fecb3aae22 Update copyright year há 2 anos atrás
secmemtest.c fecb3aae22 Update copyright year há 2 anos atrás
serverinfo.pem c655f40ed2 Require ServerInfo PEMs to be named "BEGIN SERVERINFO FOR"... há 11 anos atrás
serverinfo2.pem b878afae4b Add a SERVERINFOV2 format test file há 7 anos atrás
servername_test.c 66325793cc test: fix coverity 1451534: improper use of negative value há 3 anos atrás
session.pem 6cf2dbd9fa Don't store the ticket nonce in the session há 6 anos atrás
sha_test.c 43ba1573ce test: add test cases for SHAxxx helper functions há 3 anos atrás
shibboleth.pfx 70bf33d182 Add PKCS#12 UTF-8 interoperability test. há 8 anos atrás
shlibloadtest.c 3c2bdd7df9 Update copyright year há 3 anos atrás
simpledynamic.c 54b4053130 Update copyright year há 3 anos atrás
simpledynamic.h 0652197407 TEST: Modify simpledynamic.[ch] to allow use on VMS as well há 3 anos atrás
siphash_internal_test.c fecb3aae22 Update copyright year há 2 anos atrás
sm2_internal_test.c f087ebcb2e feat: Add sm2 signature test case from GM/T 0003.5-2012 há 3 anos atrás
sm3_internal_test.c 7585073892 Apply the correct Apache v2 license há 2 anos atrás
sm4_internal_test.c 3c2bdd7df9 Update copyright year há 3 anos atrás
smcont.bin 5771017d06 apps/cms.c: Correct -sign output and -verify input with -binary há 3 anos atrás
smcont.txt 382bb0b294 test/smcont.txt: trigger assertion in bio_enc.c. há 8 anos atrás
smcont_zero.txt 947fb81345 Tests for processing zero-length content in SMIME format há 4 anos atrás
sparse_array_test.c 38fc02a708 Update copyright year há 3 anos atrás
srptest.c a28d06f3e9 Update copyright year há 3 anos atrás
ssl_cert_table_internal_test.c 3c2bdd7df9 Update copyright year há 3 anos atrás
ssl_ctx_test.c 454afd9866 Update copyright year há 4 anos atrás
ssl_old_test.c b2feb9f0e3 test/ssl_old_test.c: Add check for OPENSSL_malloc há 2 anos atrás
ssl_test.c 08e4901298 Add a test_ssl_new testcase há 2 anos atrás
ssl_test.tmpl f4941736a9 test/ssl_test.tmpl: make it work with elderly perl. há 8 anos atrás
ssl_test_ctx_test.c 20f8bc7255 test cleanup: move helper .c and .h files to test/helpers/ há 4 anos atrás
ssl_test_ctx_test.cnf 433deaffce Use .cnf for config files, not .conf há 4 anos atrás
sslapitest.c 555dd9390b Convert serverinfo in SSL_CTX_use_serverinfo() to v2. há 2 anos atrás
sslbuffertest.c 20f8bc7255 test cleanup: move helper .c and .h files to test/helpers/ há 4 anos atrás
sslcorrupttest.c 1287dabd0b fix some code with obvious wrong coding style há 3 anos atrás
stack_test.c 1287dabd0b fix some code with obvious wrong coding style há 3 anos atrás
sysdefault.cnf 6b9d3b7c5e Add oid_section to sysdefault.cnf to test adding new oids há 3 anos atrás
sysdefaulttest.c 909f1a2e51 Following the license change, modify the boilerplates in test/ há 6 anos atrás
test.cnf 91f2b15f2e TEST: Prefer using precomputed RSA and DH keys for more efficient tests há 3 anos atrás
test_test.c 6162a2402d test: placate Clang's --Wbitwise-instead-of-logical há 2 anos atrás
testcrl.pem d02b48c63a Import of old SSLeay release: SSLeay 0.8.1b há 26 anos atrás
testdsa.pem 79a578b902 Add private/public key conversion tests há 9 anos atrás
testdsapub.pem 79a578b902 Add private/public key conversion tests há 9 anos atrás
testec-p112r1.pem 33b9bb45a4 TEST: Check property query support of apps/pkey há 2 anos atrás
testec-p256.pem 79a578b902 Add private/public key conversion tests há 9 anos atrás
testecpub-p256.pem 79a578b902 Add private/public key conversion tests há 9 anos atrás
tested25519.pem 81722fdf2e More testing for CLI usage of Ed25519 and Ed448 keys há 5 anos atrás
tested25519pub.pem 81722fdf2e More testing for CLI usage of Ed25519 and Ed448 keys há 5 anos atrás
tested448.pem 81722fdf2e More testing for CLI usage of Ed25519 and Ed448 keys há 5 anos atrás
tested448pub.pem 81722fdf2e More testing for CLI usage of Ed25519 and Ed448 keys há 5 anos atrás
testp7.pem dcb1ef5c22 Change PKCS#7 test data to take account of removal of há 24 anos atrás
testreq2.pem d02b48c63a Import of old SSLeay release: SSLeay 0.8.1b há 26 anos atrás
testrsa.pem 10203a3472 Support writing RSA keys using the traditional format again há 4 anos atrás
testrsa2048.pem 8d17cca5b8 Add fips checks for rsa encryption há 4 anos atrás
testrsa_withattrs.der 6dbb277627 Tests for creating req from PKCS8 keys with extra attrs há 3 anos atrás
testrsa_withattrs.pem 6dbb277627 Tests for creating req from PKCS8 keys with extra attrs há 3 anos atrás
testrsapss.pem a2a5506b93 rsa_kmgmt: Return OSSL_PKEY_PARAM_DEFAULT_DIGEST for unrestricted PSS keys há 3 anos atrás
testrsapssmandatory.pem bbde856619 RSA: properly generate algorithm identifier for RSA-PSS signatures há 3 anos atrás
testrsapub.pem 79a578b902 Add private/public key conversion tests há 9 anos atrás
testsid.pem c22ad9b64a Regenerate testsid.pem há 3 anos atrás
testutil.h 416d0a638c QUIC wire format support há 2 anos atrás
testx509.pem 1e41dadfa7 Extend X509 cert checks and error reporting in v3_{purp,crld}.c and x509_{set,vfy}.c há 4 anos atrás
threadstest.c ef7a9b44f0 Make OSSL_LIB_CTX_load_config thread safe há 2 anos atrás
threadstest.h 235776b2c7 test: add test case to reliably reproduce RAND leak during POST há 3 anos atrás
threadstest_fips.c 235776b2c7 test: add test case to reliably reproduce RAND leak during POST há 3 anos atrás
time_offset_test.c 909f1a2e51 Following the license change, modify the boilerplates in test/ há 6 anos atrás
timing_load_creds.c 45479dcee1 test/timing_load_creds.c: fix coding style and other (mostly minor) issues há 2 anos atrás
tls-provider.c fecb3aae22 Update copyright year há 2 anos atrás
tls13ccstest.c 1287dabd0b fix some code with obvious wrong coding style há 3 anos atrás
tls13encryptiontest.c a16f9d3366 Update the tls13encryptiontest for new read record layer há 2 anos atrás
tls13secretstest.c 19d0044448 Remove some redundant code há 2 anos atrás
uitest.c 5755c11fd6 Fix the checks of UI_add_input_string há 2 anos atrás
upcallstest.c fecb3aae22 Update copyright year há 2 anos atrás
user_property_test.c 5725ab8087 property: add test case for setting default user properties before fetching há 3 anos atrás
v3-cert1.pem d02b48c63a Import of old SSLeay release: SSLeay 0.8.1b há 26 anos atrás
v3-cert2.pem d02b48c63a Import of old SSLeay release: SSLeay 0.8.1b há 26 anos atrás
v3_ca_exts.cnf 9495cfbc22 make various test CA certs RFC 5280 compliant w.r.t. X509 extensions há 3 anos atrás
v3ext.c b91ad3c69c Fix a crash in v2i_IPAddrBlocks() há 2 anos atrás
v3nametest.c b147b9daf1 test/v3nametest.c: Add check for OPENSSL_malloc há 2 anos atrás
verify_extra_test.c fecb3aae22 Update copyright year há 2 anos atrás
versions.c 909f1a2e51 Following the license change, modify the boilerplates in test/ há 6 anos atrás
wpackettest.c c2f7614fb7 Fix the checks of RAND_bytes há 2 anos atrás
x509_check_cert_pkey_test.c f5afac4bda Update copyright year há 3 anos atrás
x509_dup_cert_test.c f541419c79 Remove unused variable 'sctx' há 3 anos atrás
x509_internal_test.c a8d9bd8114 Update copyright year há 3 anos atrás
x509_time_test.c 1f365708a3 Fix test code to not assume NUL terminated strings há 3 anos atrás
x509aux.c 4333b89f50 Update copyright year há 3 anos atrás

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.