Dr. David von Oheimb d7cdb8b606 test/certs/setup.sh: Fix two glitches 3 gadi atpakaļ
..
certs d7cdb8b606 test/certs/setup.sh: Fix two glitches 3 gadi atpakaļ
ct 433deaffce Use .cnf for config files, not .conf 4 gadi atpakaļ
d2i-tests a378a46985 add test for CVE-2016-7053 7 gadi atpakaļ
helpers 20f8bc7255 test cleanup: move helper .c and .h files to test/helpers/ 3 gadi atpakaļ
ocsp-tests 121738d1cb Fix OCSP_basic_verify() cert chain construction in case bs->certs is NULL 6 gadi atpakaļ
ossl_shim e7a8fecd0b Add more diagnostics to ossl_shim 3 gadi atpakaļ
recipes 300e8c4bf1 Fix no-dsa 3 gadi atpakaļ
smime-certs 0f84cbc3e2 Update copyright year 3 gadi atpakaļ
ssl-tests 4be35545ae Fix no-dtls 3 gadi atpakaļ
testutil f7f10de305 Print random seed on test failure. 3 gadi atpakaļ
CAtsa.cnf 23f3993127 Remove RANDFILE settings from configuration files 4 gadi atpakaļ
README-dev.md 036cbb6bbf Rename NOTES*, README*, VERSION, HACKING, LICENSE to .md or .txt 4 gadi atpakaļ
README-external.md 1dc1ea182b Fix many MarkDown issues in {NOTES*,README*,HACKING,LICENSE}.md files 4 gadi atpakaļ
README.md a7da4d488d [test/recipes] Split test_fuzz into separate recipes 3 gadi atpakaļ
README.ssltest.md 257e9d03b0 Fix issues reported by markdownlint 4 gadi atpakaļ
aborttest.c 909f1a2e51 Following the license change, modify the boilerplates in test/ 5 gadi atpakaļ
acvp_test.c b425001010 Rename OPENSSL_CTX prefix to OSSL_LIB_CTX 3 gadi atpakaļ
acvp_test.inc 254b5dcabd ACVP: add test case for DRBG 3 gadi atpakaļ
aesgcmtest.c 37322687b0 Retire EVP_CTRL_GET_IV 3 gadi atpakaļ
afalgtest.c e39e295e20 Update copyright year 3 gadi atpakaļ
asn1_decode_test.c 936c2b9e93 Update source files for deprecation at 3.0 4 gadi atpakaļ
asn1_dsa_internal_test.c eec0ad10b9 Update copyright year 3 gadi atpakaļ
asn1_encode_test.c 936c2b9e93 Update source files for deprecation at 3.0 4 gadi atpakaļ
asn1_internal_test.c 25f2138b0a Reorganize private crypto header files 4 gadi atpakaļ
asn1_string_table_test.c 275a7b9e5e typo ANS1 -> ASN1 5 gadi atpakaļ
asn1_time_test.c 33388b44b6 Update copyright year 4 gadi atpakaļ
asynciotest.c 20f8bc7255 test cleanup: move helper .c and .h files to test/helpers/ 3 gadi atpakaļ
asynctest.c b425001010 Rename OPENSSL_CTX prefix to OSSL_LIB_CTX 3 gadi atpakaļ
bad_dtls_test.c 865adf97c9 Revert "The EVP_MAC functions have been renamed for consistency. The EVP_MAC_CTX_*" 3 gadi atpakaļ
bftest.c 33388b44b6 Update copyright year 4 gadi atpakaļ
bio_callback_test.c 909f1a2e51 Following the license change, modify the boilerplates in test/ 5 gadi atpakaļ
bio_enc_test.c 909f1a2e51 Following the license change, modify the boilerplates in test/ 5 gadi atpakaļ
bio_memleak_test.c 454afd9866 Update copyright year 4 gadi atpakaļ
bio_prefix_text.c 51a7c4b5f2 TEST: Add test recipe and help program to test BIO_f_prefix() 4 gadi atpakaļ
bioprinttest.c c4683009ad TEST: Adjust test/bioprinttest.c to behave like the testutil routines 4 gadi atpakaļ
bn_internal_test.c 454afd9866 Update copyright year 4 gadi atpakaļ
bn_rand_range.h 5d2f3e4a6c Test of uniformity of BN_rand_range output. 5 gadi atpakaļ
bntest.c eec0ad10b9 Update copyright year 3 gadi atpakaļ
bntests.pl 909f1a2e51 Following the license change, modify the boilerplates in test/ 5 gadi atpakaļ
build.info 527eb8d294 TEST: Add a simple module loader, and test the FIPS module with it 3 gadi atpakaļ
ca-and-certs.cnf 4e6e57cfcd Cleanup cert config files for tests 4 gadi atpakaļ
casttest.c 33388b44b6 Update copyright year 4 gadi atpakaļ
chacha_internal_test.c 25f2138b0a Reorganize private crypto header files 4 gadi atpakaļ
cipher_overhead_test.c 706457b7bd Reorganize local header files 4 gadi atpakaļ
cipherbytes_test.c 6ac1cd10ba Fix safestack issues in ssl.h 3 gadi atpakaļ
cipherlist_test.c 6ac1cd10ba Fix safestack issues in ssl.h 3 gadi atpakaļ
ciphername_test.c 6ac1cd10ba Fix safestack issues in ssl.h 3 gadi atpakaļ
clienthellotest.c 33388b44b6 Update copyright year 4 gadi atpakaļ
cmactest.c a370ff8daa Add a CMAC test 4 gadi atpakaļ
cmp_asn_test.c 20f8bc7255 test cleanup: move helper .c and .h files to test/helpers/ 3 gadi atpakaļ
cmp_client_test.c 20f8bc7255 test cleanup: move helper .c and .h files to test/helpers/ 3 gadi atpakaļ
cmp_ctx_test.c 20f8bc7255 test cleanup: move helper .c and .h files to test/helpers/ 3 gadi atpakaļ
cmp_hdr_test.c 20f8bc7255 test cleanup: move helper .c and .h files to test/helpers/ 3 gadi atpakaļ
cmp_msg_test.c 20f8bc7255 test cleanup: move helper .c and .h files to test/helpers/ 3 gadi atpakaļ
cmp_protect_test.c 20f8bc7255 test cleanup: move helper .c and .h files to test/helpers/ 3 gadi atpakaļ
cmp_server_test.c 20f8bc7255 test cleanup: move helper .c and .h files to test/helpers/ 3 gadi atpakaļ
cmp_status_test.c 20f8bc7255 test cleanup: move helper .c and .h files to test/helpers/ 3 gadi atpakaļ
cmp_vfy_test.c 20f8bc7255 test cleanup: move helper .c and .h files to test/helpers/ 3 gadi atpakaļ
cms-examples.pl 909f1a2e51 Following the license change, modify the boilerplates in test/ 5 gadi atpakaļ
cmsapitest.c e6623cfbff Fix safestack issues in x509.h 3 gadi atpakaļ
conf_include_test.c 23f3993127 Remove RANDFILE settings from configuration files 4 gadi atpakaļ
confdump.c e74e562f1c Fix safestack issues in conf.h 3 gadi atpakaļ
constant_time_test.c 706457b7bd Reorganize local header files 4 gadi atpakaļ
context_internal_test.c eec0ad10b9 Update copyright year 3 gadi atpakaļ
crltest.c e6623cfbff Fix safestack issues in x509.h 3 gadi atpakaļ
ct_test.c 9d01ac71a0 Fix safestack issues in ct.h 3 gadi atpakaļ
ctype_internal_test.c 25f2138b0a Reorganize private crypto header files 4 gadi atpakaļ
curve448_internal_test.c 8dbef010e7 Fix ecx so that is uses a settable propertyquery 3 gadi atpakaļ
d2i_test.c 33388b44b6 Update copyright year 4 gadi atpakaļ
danetest.c e6623cfbff Fix safestack issues in x509.h 3 gadi atpakaļ
danetest.in 909f1a2e51 Following the license change, modify the boilerplates in test/ 5 gadi atpakaļ
danetest.pem 170b735820 DANE support for X509_verify_cert() 8 gadi atpakaļ
data.bin c150a94857 TEST: Make our test data binary 3 gadi atpakaļ
data2.bin c150a94857 TEST: Make our test data binary 3 gadi atpakaļ
default-and-fips.cnf 1cd2c1f857 Update some nits around the FIPS module 4 gadi atpakaļ
default-and-legacy.cnf e2f72313cc test/recipes/30-test_evp.t: Modify to test with different providers 4 gadi atpakaļ
default.cnf e2f72313cc test/recipes/30-test_evp.t: Modify to test with different providers 4 gadi atpakaļ
defltfips_test.c bfa6aaab45 Test that EVP_default_properties_is_fips_enabled() works early 3 gadi atpakaļ
destest.c 33388b44b6 Update copyright year 4 gadi atpakaļ
dhtest.c 33388b44b6 Update copyright year 4 gadi atpakaļ
drbgtest.c 4f14a378f8 prov/drbg: cleanup some RAND_DRBG leftovers 3 gadi atpakaļ
drbgtest.h 909f1a2e51 Following the license change, modify the boilerplates in test/ 5 gadi atpakaļ
dsa_no_digest_size_test.c 33388b44b6 Update copyright year 4 gadi atpakaļ
dsatest.c f1d6670840 Swap to FIPS186-2 DSA generation outside of the FIPS module 3 gadi atpakaļ
dtls_mtu_test.c 20f8bc7255 test cleanup: move helper .c and .h files to test/helpers/ 3 gadi atpakaļ
dtlstest.c 20f8bc7255 test cleanup: move helper .c and .h files to test/helpers/ 3 gadi atpakaļ
dtlsv1listentest.c 909f1a2e51 Following the license change, modify the boilerplates in test/ 5 gadi atpakaļ
ec_internal_test.c fe2f8aecfe EC_KEY: add EC_KEY_decoded_from_explicit_params() 3 gadi atpakaļ
ecdsatest.c 7ee511d093 Add SM2 key management 3 gadi atpakaļ
ecdsatest.h ae4186b004 Fix header file include guard names 4 gadi atpakaļ
ecstresstest.c dd6b270618 Remove tab characters from C source files. 4 gadi atpakaļ
ectest.c c0f39ded68 Add Explicit EC parameter support to providers. 3 gadi atpakaļ
endecode_test.c 821d6f8c67 endecode_test.c: Fix build errors on OPENSSL_NO_{DH,DSA,EC,EC2M} 3 gadi atpakaļ
endecoder_legacy_test.c b03da688a2 Adapt everything else to the updated OSSL_ENCODER_CTX_new_by_EVP_PKEY() 3 gadi atpakaļ
enginetest.c 41bbba5375 EVP: deprecate the EVP_X_meth_ functions. 3 gadi atpakaļ
errtest.c abcca5078f TEST: Adapt test/errtest for the 'no-err' configuration 3 gadi atpakaļ
evp_extra_test.c d4c2f498a3 Don't test a deprecated function in a no-deprecated build 3 gadi atpakaļ
evp_extra_test2.c b425001010 Rename OPENSSL_CTX prefix to OSSL_LIB_CTX 3 gadi atpakaļ
evp_fetch_prov_test.c b425001010 Rename OPENSSL_CTX prefix to OSSL_LIB_CTX 3 gadi atpakaļ
evp_kdf_test.c 89cccbea51 Add EVP_KDF-X942 to the fips module 3 gadi atpakaļ
evp_libctx_test.c b03da688a2 Adapt everything else to the updated OSSL_ENCODER_CTX_new_by_EVP_PKEY() 3 gadi atpakaļ
evp_pkey_dparams_test.c 0191854154 evp_pkey_dparams_test.c: Fix build error on OPENSSL_NO_{DH,DSA,EC} 3 gadi atpakaļ
evp_pkey_provided_test.c b03da688a2 Adapt everything else to the updated OSSL_ENCODER_CTX_new_by_EVP_PKEY() 3 gadi atpakaļ
evp_test.c 89cccbea51 Add EVP_KDF-X942 to the fips module 3 gadi atpakaļ
exdatatest.c 00c405b365 Update copyright year 4 gadi atpakaļ
exptest.c 909f1a2e51 Following the license change, modify the boilerplates in test/ 5 gadi atpakaļ
fatalerrtest.c 20f8bc7255 test cleanup: move helper .c and .h files to test/helpers/ 3 gadi atpakaļ
ffc_internal_test.c 25e49af92a Deprecate more DH functions 3 gadi atpakaļ
filterprov.c a07dc8167b Fix instances of pointer addition with the NULL pointer 3 gadi atpakaļ
fips-and-base.cnf 39d9be390a Add CLI tests in FIPS configuration 3 gadi atpakaļ
fips.cnf bfa6aaab45 Test that EVP_default_properties_is_fips_enabled() works early 3 gadi atpakaļ
generate_buildtest.pl 909f1a2e51 Following the license change, modify the boilerplates in test/ 5 gadi atpakaļ
generate_ssl_tests.pl 33388b44b6 Update copyright year 4 gadi atpakaļ
gmdifftest.c 909f1a2e51 Following the license change, modify the boilerplates in test/ 5 gadi atpakaļ
gosttest.c 20f8bc7255 test cleanup: move helper .c and .h files to test/helpers/ 3 gadi atpakaļ
hexstr_test.c f32af93c92 Fix ERR_print_errors so that it matches the documented format in doc/man3/ERR_error_string.pod 4 gadi atpakaļ
hmactest.c 33388b44b6 Update copyright year 4 gadi atpakaļ
http_test.c e74e562f1c Fix safestack issues in conf.h 3 gadi atpakaļ
ideatest.c 33388b44b6 Update copyright year 4 gadi atpakaļ
igetest.c 7573fe1af5 Deprecate the AES_ige_*() functions 4 gadi atpakaļ
insta.priv.pem 8d9a4d833f Chunk 11 of CMP contribution to OpenSSL: CMP command-line interface 4 gadi atpakaļ
insta_ca.cert.pem 8d9a4d833f Chunk 11 of CMP contribution to OpenSSL: CMP command-line interface 4 gadi atpakaļ
keymgmt_internal_test.c d7e498ac55 Deprecate RSA harder 3 gadi atpakaļ
legacy.cnf e2f72313cc test/recipes/30-test_evp.t: Modify to test with different providers 4 gadi atpakaļ
lhash_test.c eec0ad10b9 Update copyright year 3 gadi atpakaļ
mdc2_internal_test.c 33388b44b6 Update copyright year 4 gadi atpakaļ
mdc2test.c 33388b44b6 Update copyright year 4 gadi atpakaļ
memleaktest.c ea7a952c8a test/memleaktest.c: Modify for use with address/leak sanitizer 4 gadi atpakaļ
modes_internal_test.c 33388b44b6 Update copyright year 4 gadi atpakaļ
moduleloadtest.c 527eb8d294 TEST: Add a simple module loader, and test the FIPS module with it 3 gadi atpakaļ
namemap_internal_test.c c720fc35f4 namemap: change ossl_namemap_empty() to do what the documentation says. 4 gadi atpakaļ
ocspapitest.c e6623cfbff Fix safestack issues in x509.h 3 gadi atpakaļ
ossl_store_test.c d27a8e922b TEST: Fix path length in test/ossl_store_test.c 3 gadi atpakaļ
p_test.c 363b1e5dae Make the naming scheme for dispatched functions more consistent 4 gadi atpakaļ
packettest.c 0d345f0e10 Make the PACKET/WPACKET code available to both libcrypto and libssl 5 gadi atpakaļ
param_build_test.c 5fdaa38feb params: add OSSL_PARAM helpers for time_t. 4 gadi atpakaļ
params_api_test.c e23d850ff3 Add and use internal header that implements endianness check 3 gadi atpakaļ
params_conversion_test.c 33388b44b6 Update copyright year 4 gadi atpakaļ
params_test.c 33388b44b6 Update copyright year 4 gadi atpakaļ
pbelutest.c 909f1a2e51 Following the license change, modify the boilerplates in test/ 5 gadi atpakaļ
pem_read_depr_test.c cdbd27bab4 Test various deprecated PEM_read_bio_* APIs 3 gadi atpakaļ
pemtest.c 909f1a2e51 Following the license change, modify the boilerplates in test/ 5 gadi atpakaļ
pkcs12_format_test.c 20f8bc7255 test cleanup: move helper .c and .h files to test/helpers/ 3 gadi atpakaļ
pkcs7-1.pem d02b48c63a Import of old SSLeay release: SSLeay 0.8.1b 25 gadi atpakaļ
pkcs7.pem d02b48c63a Import of old SSLeay release: SSLeay 0.8.1b 25 gadi atpakaļ
pkey_meth_kdf_test.c eec0ad10b9 Update copyright year 3 gadi atpakaļ
pkey_meth_test.c 0f84cbc3e2 Update copyright year 3 gadi atpakaļ
pkits-test.pl 909f1a2e51 Following the license change, modify the boilerplates in test/ 5 gadi atpakaļ
poly1305_internal_test.c 3d5a7578e0 Add ChaCha related ciphers to default provider 4 gadi atpakaļ
property_test.c b425001010 Rename OPENSSL_CTX prefix to OSSL_LIB_CTX 3 gadi atpakaļ
provider_fallback_test.c b425001010 Rename OPENSSL_CTX prefix to OSSL_LIB_CTX 3 gadi atpakaļ
provider_internal_test.c 29dc6e00f2 Load the config file by default 4 gadi atpakaļ
provider_internal_test.cnf.in 433deaffce Use .cnf for config files, not .conf 4 gadi atpakaļ
provider_status_test.c b425001010 Rename OPENSSL_CTX prefix to OSSL_LIB_CTX 3 gadi atpakaļ
provider_test.c 4e7991b497 Change OSSL_PARAM return size to not be a pointer. 5 gadi atpakaļ
proxy.cnf 4e6e57cfcd Cleanup cert config files for tests 4 gadi atpakaļ
rand_status_test.c 4516bf7422 rand: instantiate the DRBGs upon first use. 3 gadi atpakaļ
rc2test.c 33388b44b6 Update copyright year 4 gadi atpakaļ
rc4test.c 33388b44b6 Update copyright year 4 gadi atpakaļ
rc5test.c 33388b44b6 Update copyright year 4 gadi atpakaļ
rdrand_sanitytest.c 24fd8541d4 Remove extern declarations of OPENSSL_ia32cap_P 4 gadi atpakaļ
recordlentest.c 20f8bc7255 test cleanup: move helper .c and .h files to test/helpers/ 3 gadi atpakaļ
rsa_complex.c 909f1a2e51 Following the license change, modify the boilerplates in test/ 5 gadi atpakaļ
rsa_mp_test.c 23b2fc0b50 rsa: add ossl_ prefix to internal rsa_ calls. 3 gadi atpakaļ
rsa_sp800_56b_test.c d7e498ac55 Deprecate RSA harder 3 gadi atpakaļ
rsa_test.c 93c87f745d rsa_test: add return value check 3 gadi atpakaļ
run_tests.pl c804f2965e Make TAP::Harness and TAP::Parser optional. 3 gadi atpakaļ
sanitytest.c 909f1a2e51 Following the license change, modify the boilerplates in test/ 5 gadi atpakaļ
secmemtest.c 33388b44b6 Update copyright year 4 gadi atpakaļ
serverinfo.pem c655f40ed2 Require ServerInfo PEMs to be named "BEGIN SERVERINFO FOR"... 10 gadi atpakaļ
serverinfo2.pem b878afae4b Add a SERVERINFOV2 format test file 7 gadi atpakaļ
servername_test.c 20f8bc7255 test cleanup: move helper .c and .h files to test/helpers/ 3 gadi atpakaļ
session.pem 6cf2dbd9fa Don't store the ticket nonce in the session 6 gadi atpakaļ
shibboleth.pfx 70bf33d182 Add PKCS#12 UTF-8 interoperability test. 7 gadi atpakaļ
shlibloadtest.c 9800b1a0da TEST: Break out the local dynamic loading code from shlibloadtest.c 3 gadi atpakaļ
simpledynamic.c 9feb2fce65 Fix simpledynamic.c - a typo and missed a header 3 gadi atpakaļ
simpledynamic.h 9800b1a0da TEST: Break out the local dynamic loading code from shlibloadtest.c 3 gadi atpakaļ
siphash_internal_test.c 25f2138b0a Reorganize private crypto header files 4 gadi atpakaļ
sm2_internal_test.c 33388b44b6 Update copyright year 4 gadi atpakaļ
sm4_internal_test.c 25f2138b0a Reorganize private crypto header files 4 gadi atpakaļ
smcont.txt 382bb0b294 test/smcont.txt: trigger assertion in bio_enc.c. 7 gadi atpakaļ
smcont_zero.txt 947fb81345 Tests for processing zero-length content in SMIME format 3 gadi atpakaļ
sparse_array_test.c 25f2138b0a Reorganize private crypto header files 4 gadi atpakaļ
srptest.c 909f1a2e51 Following the license change, modify the boilerplates in test/ 5 gadi atpakaļ
ssl_cert_table_internal_test.c 706457b7bd Reorganize local header files 4 gadi atpakaļ
ssl_ctx_test.c 454afd9866 Update copyright year 4 gadi atpakaļ
ssl_old_test.c 20f8bc7255 test cleanup: move helper .c and .h files to test/helpers/ 3 gadi atpakaļ
ssl_test.c 20f8bc7255 test cleanup: move helper .c and .h files to test/helpers/ 3 gadi atpakaļ
ssl_test.tmpl f4941736a9 test/ssl_test.tmpl: make it work with elderly perl. 7 gadi atpakaļ
ssl_test_ctx_test.c 20f8bc7255 test cleanup: move helper .c and .h files to test/helpers/ 3 gadi atpakaļ
ssl_test_ctx_test.cnf 433deaffce Use .cnf for config files, not .conf 4 gadi atpakaļ
sslapitest.c 20f8bc7255 test cleanup: move helper .c and .h files to test/helpers/ 3 gadi atpakaļ
sslbuffertest.c 20f8bc7255 test cleanup: move helper .c and .h files to test/helpers/ 3 gadi atpakaļ
sslcorrupttest.c 20f8bc7255 test cleanup: move helper .c and .h files to test/helpers/ 3 gadi atpakaļ
stack_test.c eec0ad10b9 Update copyright year 3 gadi atpakaļ
sysdefault.cnf 8a5ed9dce8 Apply system_default configuration on SSL_CTX_new(). 6 gadi atpakaļ
sysdefaulttest.c 909f1a2e51 Following the license change, modify the boilerplates in test/ 5 gadi atpakaļ
test.cnf d462b5ff21 Add -section option to 'req' command 4 gadi atpakaļ
test_test.c e0249827b3 Fix --strict-warnings build 4 gadi atpakaļ
testcrl.pem d02b48c63a Import of old SSLeay release: SSLeay 0.8.1b 25 gadi atpakaļ
testdsa.pem 79a578b902 Add private/public key conversion tests 9 gadi atpakaļ
testdsapub.pem 79a578b902 Add private/public key conversion tests 9 gadi atpakaļ
testec-p256.pem 79a578b902 Add private/public key conversion tests 9 gadi atpakaļ
testecpub-p256.pem 79a578b902 Add private/public key conversion tests 9 gadi atpakaļ
tested25519.pem 81722fdf2e More testing for CLI usage of Ed25519 and Ed448 keys 4 gadi atpakaļ
tested25519pub.pem 81722fdf2e More testing for CLI usage of Ed25519 and Ed448 keys 4 gadi atpakaļ
tested448.pem 81722fdf2e More testing for CLI usage of Ed25519 and Ed448 keys 4 gadi atpakaļ
tested448pub.pem 81722fdf2e More testing for CLI usage of Ed25519 and Ed448 keys 4 gadi atpakaļ
testp7.pem dcb1ef5c22 Change PKCS#7 test data to take account of removal of 24 gadi atpakaļ
testreq2.pem d02b48c63a Import of old SSLeay release: SSLeay 0.8.1b 25 gadi atpakaļ
testrsa.pem 10203a3472 Support writing RSA keys using the traditional format again 3 gadi atpakaļ
testrsa2048.pem 8d17cca5b8 Add fips checks for rsa encryption 3 gadi atpakaļ
testrsapub.pem 79a578b902 Add private/public key conversion tests 9 gadi atpakaļ
testsid.pem 45f55f6a5b Remove SSLv2 support 9 gadi atpakaļ
testutil.h b425001010 Rename OPENSSL_CTX prefix to OSSL_LIB_CTX 3 gadi atpakaļ
testx509.pem 1e41dadfa7 Extend X509 cert checks and error reporting in v3_{purp,crld}.c and x509_{set,vfy}.c 3 gadi atpakaļ
threadstest.c 909f1a2e51 Following the license change, modify the boilerplates in test/ 5 gadi atpakaļ
time_offset_test.c 909f1a2e51 Following the license change, modify the boilerplates in test/ 5 gadi atpakaļ
tls-provider.c 3d914185b7 Constify OSSL_FUNC_keymgmt_has() 3 gadi atpakaļ
tls13ccstest.c 20f8bc7255 test cleanup: move helper .c and .h files to test/helpers/ 3 gadi atpakaļ
tls13encryptiontest.c ec27e619e8 Move MAC removal responsibility to the various protocol "enc" functions 4 gadi atpakaļ
tls13secretstest.c c48ffbcca1 SSL: refactor all SSLfatal() calls 3 gadi atpakaļ
uitest.c eec0ad10b9 Update copyright year 3 gadi atpakaļ
v3-cert1.pem d02b48c63a Import of old SSLeay release: SSLeay 0.8.1b 25 gadi atpakaļ
v3-cert2.pem d02b48c63a Import of old SSLeay release: SSLeay 0.8.1b 25 gadi atpakaļ
v3_ca_exts.cnf 4acd484d55 Make x509 -force_pubkey test case with self-issued cert more realistic 4 gadi atpakaļ
v3ext.c 33388b44b6 Update copyright year 4 gadi atpakaļ
v3nametest.c fb33f99409 coverity 1414446 out-of-bounds access: allocate \0 terminator byte to be safe 3 gadi atpakaļ
verify_extra_test.c e6623cfbff Fix safestack issues in x509.h 3 gadi atpakaļ
versions.c 909f1a2e51 Following the license change, modify the boilerplates in test/ 5 gadi atpakaļ
wpackettest.c 12cbb8e049 WPACKET: don't write DER length when we don't want to 4 gadi atpakaļ
x509_check_cert_pkey_test.c 33388b44b6 Update copyright year 4 gadi atpakaļ
x509_dup_cert_test.c 33388b44b6 Update copyright year 4 gadi atpakaļ
x509_internal_test.c 878dc8dd95 Join the x509 and x509v3 directories 5 gadi atpakaļ
x509_time_test.c 33388b44b6 Update copyright year 4 gadi atpakaļ
x509aux.c 33388b44b6 Update copyright year 4 gadi atpakaļ

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/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/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.