openssl/test/recipes
Rich Salz c0452248ea Ignore dups in X509_STORE_add_*
X509_STORE_add_cert and X509_STORE_add_crl are changed to return
success if the object to be added was already found in the store, rather
than returning an error.

Raise errors if empty or malformed files are read when loading certificates
and CRLs.

Remove NULL checks and allow a segv to occur.
Add error handing for all calls to X509_STORE_add_c{ert|tl}

Refactor these two routines into one.

Bring the unit test for duplicate certificates up to date using the test
framework.

Reviewed-by: Richard Levitte <levitte@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/2830)
2017-04-20 15:33:42 -04:00
..
04-test_pem_data Add AGL's "beer mug" PEM file as another test input 2017-02-28 21:23:26 +01:00
15-test_ecparam_data Improve testing of elliptic curve validation 2017-03-20 06:40:16 +01:00
95-test_external_krb5_data Add external krb5 test support 2017-04-18 19:10:25 +02:00
95-test_external_pyca_data 95-test_external_pyca_data/cryptography.py: only install for testing 2017-03-21 23:24:34 +01:00
01-test_abort.t tests: Shut the shell up unless verbose 2016-06-06 10:03:01 +02:00
01-test_sanity.t Platform sanity test 2016-07-08 15:56:55 -04:00
01-test_symbol_presence.t Correct detection of group end in map file when testing symbol presence 2016-09-06 00:48:13 +02:00
01-test_test.t Test infrastructure additions. 2017-03-29 08:51:43 +10:00
02-test_lhash.t Add unit tests for the lhash functionality. 2017-03-16 20:24:49 -04:00
02-test_ordinals.t Reset executable bits on files where not needed. 2017-03-03 09:13:40 +01:00
02-test_stack.t Rename the test_stack recipe file name to be consistent with the rest of the 2017-03-16 11:36:11 +01:00
03-test_exdata.t Exdata test was never enabled. 2017-02-28 13:50:40 -05:00
03-test_internal_asn1.t test/recipes/03-test_internal_*: call setup() first. 2017-03-15 12:16:48 +01:00
03-test_internal_chacha.t Fix a few internals tests 2017-03-20 11:24:33 +01:00
03-test_internal_mdc2.t Split test/recipes/03_test_internal.t into individual tests 2017-03-10 20:18:56 +01:00
03-test_internal_modes.t test/recipes/03-test_internal_*: call setup() first. 2017-03-15 12:16:48 +01:00
03-test_internal_poly1305.t Fix a few internals tests 2017-03-20 11:24:33 +01:00
03-test_internal_siphash.t Fix a few internals tests 2017-03-20 11:24:33 +01:00
03-test_internal_x509.t test/recipes/03-test_internal_*: call setup() first. 2017-03-15 12:16:48 +01:00
03-test_ui.t Add a test "uitest" 2017-01-11 18:27:27 +01:00
04-test_asn1_encode.t Add a test of encoding and decoding LONG, INT32, UINT32, INT64 and UINT64 2017-04-04 11:29:23 +02:00
04-test_bioprint.t Convert more tests to framework 2017-04-18 14:50:00 -04:00
04-test_pem.t Add AGL's "beer mug" PEM file as another test input 2017-02-28 21:23:26 +01:00
05-test_bf.t Unified copyright for test recipes 2016-04-22 07:58:47 -04:00
05-test_cast.t Unified copyright for test recipes 2016-04-22 07:58:47 -04:00
05-test_des.t Unified copyright for test recipes 2016-04-22 07:58:47 -04:00
05-test_hmac.t Unified copyright for test recipes 2016-04-22 07:58:47 -04:00
05-test_idea.t Unified copyright for test recipes 2016-04-22 07:58:47 -04:00
05-test_md2.t Unified copyright for test recipes 2016-04-22 07:58:47 -04:00
05-test_mdc2.t Unified copyright for test recipes 2016-04-22 07:58:47 -04:00
05-test_rand.t Unified copyright for test recipes 2016-04-22 07:58:47 -04:00
05-test_rc2.t Unified copyright for test recipes 2016-04-22 07:58:47 -04:00
05-test_rc4.t Revert rc4test removal, it performs additional tests not in evptests.txt 2017-02-28 16:08:42 +00:00
05-test_rc5.t Unified copyright for test recipes 2016-04-22 07:58:47 -04:00
05-test_sha1.t Unified copyright for test recipes 2016-04-22 07:58:47 -04:00
05-test_sha256.t Unified copyright for test recipes 2016-04-22 07:58:47 -04:00
05-test_sha512.t Unified copyright for test recipes 2016-04-22 07:58:47 -04:00
10-test_bn.t Make bntest be (mostly) file-based. 2016-11-28 12:26:05 -05:00
10-test_exp.t Unified copyright for test recipes 2016-04-22 07:58:47 -04:00
15-test_dh.t Unified copyright for test recipes 2016-04-22 07:58:47 -04:00
15-test_dsa.t Add conversion test for MSBLOB format. 2016-11-17 03:53:03 +00:00
15-test_ec.t Unified copyright for test recipes 2016-04-22 07:58:47 -04:00
15-test_ecdsa.t Unified copyright for test recipes 2016-04-22 07:58:47 -04:00
15-test_ecparam.t Disable 15-test_ecparam.t when configured no-ec2m 2017-04-02 21:53:06 +02:00
15-test_genrsa.t Fix an endless loop in rsa_builtin_keygen. 2017-03-06 09:54:17 -05:00
15-test_rsa.t Don't run MSBLOB conversion tests when RSA or DSA are disabled 2017-01-04 15:29:03 +01:00
15-test_rsapss.t Rather use -out parameter than redirect stdout 2017-03-14 17:21:24 +01:00
20-test_enc.t Adapt 20-test_enc.t and 20-test_enc_more.t to use statusvar 2017-03-21 16:12:29 +01:00
20-test_enc_more.t Adapt 20-test_enc.t and 20-test_enc_more.t to use statusvar 2017-03-21 16:12:29 +01:00
20-test_passwd.t 'openssl passwd' command can now compute AIX MD5-based passwords hashes. 2017-01-21 10:44:23 -05:00
25-test_crl.t Add a couple of test to check CRL fingerprint 2017-01-28 20:07:04 +01:00
25-test_d2i.t Fix no-cms (CVE-2016-7053) 2016-11-10 13:04:11 +00:00
25-test_pkcs7.t Unified copyright for test recipes 2016-04-22 07:58:47 -04:00
25-test_req.t Make 25-test_gen.t and 25-test_req.t into one 2016-06-04 09:43:26 +02:00
25-test_sid.t Add needed module in 25-test_sid.t 2017-02-09 11:12:06 +01:00
25-test_verify.t Extend mkcert.sh to support nameConstraints generation and more complex 2016-07-11 23:30:04 +01:00
25-test_x509.t Add test for -nameout output 2017-03-14 15:18:07 -04:00
30-test_afalg.t Unified copyright for test recipes 2016-04-22 07:58:47 -04:00
30-test_engine.t Unified copyright for test recipes 2016-04-22 07:58:47 -04:00
30-test_evp.t Unified copyright for test recipes 2016-04-22 07:58:47 -04:00
30-test_evp_extra.t Unified copyright for test recipes 2016-04-22 07:58:47 -04:00
30-test_pbelu.t Unified copyright for test recipes 2016-04-22 07:58:47 -04:00
30-test_pkey_meth.t Add test to check EVP_PKEY method ordering. 2016-11-20 00:22:02 +00:00
40-test_rehash.t test_rehash does nothing, have it do something 2017-02-13 05:05:38 +01:00
60-test_x509_dup_cert.t Ignore dups in X509_STORE_add_* 2017-04-20 15:33:42 -04:00
60-test_x509_store.t Fix test_x509_store 2017-02-17 14:59:44 +01:00
60-test_x509_time.t X509 time: tighten validation per RFC 5280 2017-02-24 17:37:08 +01:00
70-test_asyncio.t Test recipes: remove duplicate OpenSSL::Test usage 2016-11-02 18:14:04 +01:00
70-test_bad_dtls.t Add basic test for Cisco DTLS1_BAD_VER and record replay handling 2016-08-04 20:56:24 +01:00
70-test_clienthello.t Add tests for the padding extension 2017-03-16 15:37:41 +00:00
70-test_key_share.t Reset executable bits on files where not needed. 2017-03-03 09:13:40 +01:00
70-test_packet.t Unified copyright for test recipes 2016-04-22 07:58:47 -04:00
70-test_recordlen.t Add a test to check that we correctly handle record overflows 2017-03-06 20:07:40 +00:00
70-test_renegotiation.t Reset executable bits on files where not needed. 2017-03-03 09:13:40 +01:00
70-test_sslcbcpadding.t test_sslcbcpadding only makes sense <TLS1.3 2016-11-07 15:52:33 +00:00
70-test_sslcertstatus.t Reset executable bits on files where not needed. 2017-03-03 09:13:40 +01:00
70-test_sslextension.t Add a test for the TLSv1.3 downgrade mechanism 2017-03-24 14:07:11 +00:00
70-test_sslmessages.t Reset executable bits on files where not needed. 2017-03-03 09:13:40 +01:00
70-test_sslrecords.t More typo fixes 2017-03-29 07:14:29 +02:00
70-test_sslsessiontick.t Reset executable bits on files where not needed. 2017-03-03 09:13:40 +01:00
70-test_sslsigalgs.t Fix no-ec 2017-03-06 10:40:18 +00:00
70-test_sslsignature.t Reset executable bits on files where not needed. 2017-03-03 09:13:40 +01:00
70-test_sslskewith0p.t Reset executable bits on files where not needed. 2017-03-03 09:13:40 +01:00
70-test_sslversions.t Add a test for the TLSv1.3 downgrade mechanism 2017-03-24 14:07:11 +00:00
70-test_sslvertol.t Reset executable bits on files where not needed. 2017-03-03 09:13:40 +01:00
70-test_tls13cookie.t Add a test for TLSv1.3 cookies 2017-03-04 23:39:00 +00:00
70-test_tls13downgrade.t Add a test for the TLSv1.3 downgrade mechanism 2017-03-24 14:07:11 +00:00
70-test_tls13hrr.t Add some HRR tests 2017-03-16 14:20:38 +00:00
70-test_tls13kexmodes.t Reset executable bits on files where not needed. 2017-03-03 09:13:40 +01:00
70-test_tls13messages.t Reset executable bits on files where not needed. 2017-03-03 09:13:40 +01:00
70-test_tls13psk.t Add some more PSK tests 2017-03-16 14:20:38 +00:00
70-test_tlsextms.t Fixed various style issues in the key_share code 2016-11-16 10:09:46 +00:00
70-test_verify_extra.t Unified copyright for test recipes 2016-04-22 07:58:47 -04:00
70-test_wpacket.t Enable wpacket test on shared builds 2017-01-30 10:18:24 +00:00
80-test_ca.t -precert doesn't work when configured no-ct, don't try to test it then 2017-03-02 18:27:17 +01:00
80-test_cipherbytes.t Tests for SSL_bytes_to_cipher_list() 2017-02-23 19:40:25 +01:00
80-test_cipherlist.t Add final(?) set of copyrights. 2016-06-01 11:27:25 -04:00
80-test_cms.t add CMS SHA1 signing test 2016-11-25 20:50:58 +00:00
80-test_ct.t Unified copyright for test recipes 2016-04-22 07:58:47 -04:00
80-test_dane.t Unified copyright for test recipes 2016-04-22 07:58:47 -04:00
80-test_dtls.t Test recipes: remove duplicate OpenSSL::Test usage 2016-11-02 18:14:04 +01:00
80-test_dtls_mtu.t Add test cases for DTLS_get_data_mtu() 2016-11-02 14:00:11 +00:00
80-test_dtlsv1listen.t Unified copyright for test recipes 2016-04-22 07:58:47 -04:00
80-test_ocsp.t Unified copyright for test recipes 2016-04-22 07:58:47 -04:00
80-test_pkcs12.t Windows: UTF-8 opt-in for command-line arguments and console input. 2016-08-25 11:56:28 +01:00
80-test_ssl_new.t Port remaining old DTLS tests 2017-03-14 15:16:27 +01:00
80-test_ssl_old.t Fix 80-test_ssl_old.t: only count the ciphers if there are any. 2017-03-22 11:12:48 +01:00
80-test_ssl_test_ctx.t Unified copyright for test recipes 2016-04-22 07:58:47 -04:00
80-test_sslcorrupt.t Fix the no-tls option 2016-11-10 13:04:11 +00:00
80-test_tsa.t Unified copyright for test recipes 2016-04-22 07:58:47 -04:00
80-test_x509aux.t Fix i2d_X509_AUX, update docs and add tests 2016-05-11 01:46:06 -04:00
90-test_async.t Unified copyright for test recipes 2016-04-22 07:58:47 -04:00
90-test_bio_enc.t Add test/bio_enc_test.c. 2016-08-21 23:34:26 +02:00
90-test_constant_time.t Unified copyright for test recipes 2016-04-22 07:58:47 -04:00
90-test_gmdiff.t Unified copyright for test recipes 2016-04-22 07:58:47 -04:00
90-test_ige.t Unified copyright for test recipes 2016-04-22 07:58:47 -04:00
90-test_memleak.t Unified copyright for test recipes 2016-04-22 07:58:47 -04:00
90-test_overhead.t Add unit test for ssl_cipher_get_overhead() 2016-11-02 14:00:11 +00:00
90-test_secmem.t Unified copyright for test recipes 2016-04-22 07:58:47 -04:00
90-test_shlibload.t Don't assume to know the shared library extension 2016-11-04 00:19:14 +01:00
90-test_srp.t Unified copyright for test recipes 2016-04-22 07:58:47 -04:00
90-test_sslapi.t Test recipes: remove duplicate OpenSSL::Test usage 2016-11-02 18:14:04 +01:00
90-test_threads.t Reset executable bits on files where not needed. 2017-03-03 09:13:40 +01:00
90-test_tls13encryption.t Add a test for TLSv1.3 encryption using the new nonce construction 2016-11-29 23:31:10 +00:00
90-test_tls13secrets.t Add a test for the TLS1.3 secret generation 2016-11-09 14:08:14 +00:00
90-test_v3name.t Unified copyright for test recipes 2016-04-22 07:58:47 -04:00
95-test_external_boringssl.t OpenSSL::Test: supported filtered command output 2017-04-12 15:53:09 +02:00
95-test_external_krb5.t Fix test/recipes/95-test_external_krb5.t 2017-04-20 13:30:08 +02:00
95-test_external_pyca.t Refuse to run the PYCA external test if configured 'no-shared' 2017-03-21 23:24:34 +01:00
99-test_fuzz.t Reset executable bits on files where not needed. 2017-03-03 09:13:40 +01:00
ocsp-response.der Extend test_tls13messages 2016-11-23 15:31:21 +00:00
tconversion.pl Add conversion test for MSBLOB format. 2016-11-17 03:53:03 +00:00