openssl/test/recipes
Shane Lontis 04cb5ec0b7 Add 'on demand self test' and status test to providers
The default and legacy providers currently return 1 for status and self test checks.
Added test to show the 3 different stages the self test can be run (for installation, loading and on demand).

For the fips provider:
  - If the on demand self test fails, then any subsequent fetches should also fail. To implement this the
    cached algorithms are flushed on failure.
  - getting the self test callback in the fips provider is a bit complicated since the callback hangs off the core
    libctx (as it is set by the application) not the actual fips library context. Also the callback can be set at
    any time not just during the OSSL_provider_init() so it is calculated each time before doing any self test.

Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/11752)
2020-08-09 18:06:52 +10:00
..
04-test_conf_data
04-test_params_conversion_data
04-test_pem_data Rename NOTES*, README*, VERSION, HACKING, LICENSE to .md or .txt 2020-07-05 11:29:43 +02:00
10-test_bn_data
15-test_ecparam_data
15-test_mp_rsa_data
15-test_rsaoaep_data Test RSA oaep in fips mode 2020-07-23 17:40:40 +10:00
25-test_rusext_data
30-test_evp_data Add evp_test fixes. 2020-08-07 14:29:00 +10:00
30-test_evp_pkey_provided
61-test_bio_prefix_data
65-test_cmp_client_data
65-test_cmp_msg_data
65-test_cmp_protect_data
65-test_cmp_server_data
65-test_cmp_vfy_data
80-test_cms_data
80-test_ocsp_data
81-test_cmp_cli_data Speed-up for tests in 81-test_cmp_cli_data/test_connection.csv 2020-06-22 16:41:24 +02:00
90-test_gost_data
90-test_includes_data
90-test_sslapi_data
90-test_store_data Fix 90-test_store.t for latest config, limits, providers, and disabled algos 2020-06-08 05:39:16 +02:00
95-test_external_gost_engine_data
95-test_external_krb5_data
95-test_external_pyca_data
01-test_abort.t
01-test_sanity.t
01-test_symbol_presence.t
01-test_test.t
02-test_errstr.t Fix trailing whitespace mismatch error when running 02-test_errstr. 2020-07-17 13:51:15 +10:00
02-test_internal_context.t
02-test_internal_ctype.t
02-test_internal_keymgmt.t
02-test_internal_provider.t
02-test_lhash.t
02-test_ordinals.t
02-test_sparse_array.t
02-test_stack.t
03-test_exdata.t
03-test_fipsinstall.t Use .cnf for config files, not .conf 2020-08-07 23:17:01 +10:00
03-test_internal_asn1_dsa.t
03-test_internal_asn1.t
03-test_internal_bn.t
03-test_internal_chacha.t
03-test_internal_curve448.t
03-test_internal_ec.t
03-test_internal_ffc.t
03-test_internal_mdc2.t
03-test_internal_modes.t
03-test_internal_namemap.t
03-test_internal_poly1305.t
03-test_internal_rsa_sp800_56b.t
03-test_internal_siphash.t
03-test_internal_sm2.t
03-test_internal_sm4.t
03-test_internal_ssl_cert_table.t
03-test_internal_x509.t
03-test_params_api.t
03-test_property.t
03-test_ui.t
04-test_asn1_decode.t
04-test_asn1_encode.t
04-test_asn1_string_table.t
04-test_bio_callback.t
04-test_bioprint.t
04-test_conf.t
04-test_err.t
04-test_hexstring.t
04-test_param_build.t
04-test_params_conversion.t
04-test_params.t
04-test_pem.t
04-test_provider_fallback.t Update copyright year 2020-06-25 14:13:12 +01:00
04-test_provider.t
04-test_serializer_deserializer.t TEST: Adjust the serdes test to include MSBLOB and PVK 2020-08-07 04:13:28 +02:00
05-test_bf.t
05-test_cast.t
05-test_cmac.t Update copyright year 2020-06-25 14:13:12 +01:00
05-test_des.t
05-test_hmac.t
05-test_idea.t
05-test_rand.t rand_drbg: remove RAND_DRBG. 2020-08-07 14:16:47 +10:00
05-test_rc2.t
05-test_rc4.t
05-test_rc5.t
06-test-rdrand.t
10-test_bn.t
10-test_exp.t
15-test_dh.t
15-test_dsa.t
15-test_ec.t
15-test_ecdsa.t
15-test_ecparam.t
15-test_gendh.t
15-test_gendsa.t
15-test_genec.t [test][15-test_genec] Improve EC tests with genpkey 2020-07-06 19:15:36 +03:00
15-test_genrsa.t Update RSA keygen to use sp800-56b by default 2020-06-10 08:59:56 +10:00
15-test_mp_rsa.t
15-test_out_option.t
15-test_rsa.t
15-test_rsaoaep.t Test RSA oaep in fips mode 2020-07-23 17:40:40 +10:00
15-test_rsapss.t
20-test_app.t Fix segfault in openssl app called with no args. 2020-06-18 09:03:32 +10:00
20-test_dgst.t Rename NOTES*, README*, VERSION, HACKING, LICENSE to .md or .txt 2020-07-05 11:29:43 +02:00
20-test_enc_more.t
20-test_enc.t
20-test_kdf.t
20-test_mac.t
20-test_passwd.t
20-test_pkeyutl.t Rename NOTES*, README*, VERSION, HACKING, LICENSE to .md or .txt 2020-07-05 11:29:43 +02:00
20-test_provider.t
25-test_crl.t
25-test_d2i.t
25-test_pkcs7.t
25-test_req.t
25-test_rusext.t
25-test_sid.t
25-test_verify_store.t Update copyright year 2020-06-04 14:33:57 +01:00
25-test_verify.t Fix issue 1418 by moving check of KU_KEY_CERT_SIGN and weakening check_issued() 2020-07-01 11:14:54 +02:00
25-test_x509.t Make x509 -force_pubkey test case with self-issued cert more realistic 2020-07-01 11:14:54 +02:00
30-test_acvp.t Make -provider_name and -section_name optional 2020-07-15 23:17:29 +02:00
30-test_aesgcm.t
30-test_afalg.t
30-test_engine.t Update copyright year 2020-08-06 13:22:30 +01:00
30-test_evp_extra.t Update copyright year 2020-06-25 14:13:12 +01:00
30-test_evp_fetch_prov.t Make -provider_name and -section_name optional 2020-07-15 23:17:29 +02:00
30-test_evp_kdf.t
30-test_evp_libctx.t Fix provider cipher reinit issue 2020-07-22 10:40:55 +10:00
30-test_evp_pkey_dparam.t
30-test_evp_pkey_provided.t
30-test_evp.t Add evp_test fixes. 2020-08-07 14:29:00 +10:00
30-test_pbelu.t
30-test_pkey_meth_kdf.t
30-test_pkey_meth.t
30-test_provider_status.t Add 'on demand self test' and status test to providers 2020-08-09 18:06:52 +10:00
40-test_rehash.t
60-test_x509_check_cert_pkey.t
60-test_x509_dup_cert.t
60-test_x509_store.t
60-test_x509_time.t
61-test_bio_prefix.t
65-test_cmp_asn.t
65-test_cmp_client.t
65-test_cmp_ctx.t
65-test_cmp_hdr.t
65-test_cmp_msg.t
65-test_cmp_protect.t
65-test_cmp_server.t
65-test_cmp_status.t
65-test_cmp_vfy.t
70-test_asyncio.t
70-test_bad_dtls.t
70-test_clienthello.t
70-test_comp.t
70-test_key_share.t
70-test_packet.t
70-test_recordlen.t
70-test_renegotiation.t Update copyright year 2020-07-16 14:47:04 +02:00
70-test_servername.t
70-test_sslcbcpadding.t
70-test_sslcertstatus.t
70-test_sslextension.t Update copyright year 2020-07-16 14:47:04 +02:00
70-test_sslmessages.t
70-test_sslrecords.t Update copyright year 2020-07-16 14:47:04 +02:00
70-test_sslsessiontick.t
70-test_sslsigalgs.t Reduce the security bits for MD5 and SHA1 based signatures in TLS 2020-06-27 08:41:40 +02:00
70-test_sslsignature.t
70-test_sslskewith0p.t
70-test_sslversions.t Reduce the security bits for MD5 and SHA1 based signatures in TLS 2020-06-27 08:41:40 +02:00
70-test_sslvertol.t
70-test_tls13alerts.t
70-test_tls13cookie.t
70-test_tls13downgrade.t Update copyright year 2020-07-16 14:47:04 +02:00
70-test_tls13hrr.t
70-test_tls13kexmodes.t
70-test_tls13messages.t
70-test_tls13psk.t
70-test_tlsextms.t
70-test_verify_extra.t Update copyright year 2020-07-16 14:47:04 +02:00
70-test_wpacket.t
71-test_ssl_ctx.t
80-test_ca.t Cleanup cert config files for tests 2020-06-03 09:56:56 +02:00
80-test_cipherbytes.t
80-test_cipherlist.t
80-test_ciphername.t
80-test_cms.t Change CMS tests to use a library context. 2020-08-09 17:34:52 +10:00
80-test_cmsapi.t
80-test_ct.t
80-test_dane.t
80-test_dtls_mtu.t
80-test_dtls.t
80-test_dtlsv1listen.t
80-test_http.t
80-test_ocsp.t TEST: Pass -no-CAstore in 80-test_ocsp.t 2020-06-23 12:25:48 +02:00
80-test_pkcs12.t Add new APIs to get PKCS12 secretBag OID and value 2020-08-07 07:59:48 +10:00
80-test_ssl_new.t Make -provider_name and -section_name optional 2020-07-15 23:17:29 +02:00
80-test_ssl_old.t Make -provider_name and -section_name optional 2020-07-15 23:17:29 +02:00
80-test_ssl_test_ctx.t
80-test_sslcorrupt.t
80-test_tsa.t Update copyright year 2020-08-06 13:22:30 +01:00
80-test_x509aux.t
81-test_cmp_cli.t 81-test_cmp_cli.t: Skip tests with mock server if server cannot be started 2020-08-03 08:31:32 +02:00
90-test_asn1_time.t
90-test_async.t
90-test_bio_enc.t
90-test_bio_memleak.t
90-test_constant_time.t
90-test_fatalerr.t
90-test_gmdiff.t
90-test_gost.t
90-test_ige.t
90-test_includes.t
90-test_memleak.t
90-test_overhead.t
90-test_secmem.t
90-test_shlibload.t
90-test_srp.t
90-test_sslapi.t Make -provider_name and -section_name optional 2020-07-15 23:17:29 +02:00
90-test_sslbuffers.t
90-test_store.t Deprecate -nodes in favor of -noenc in pkcs12 and req app 2020-07-28 09:17:56 +02:00
90-test_sysdefault.t
90-test_threads.t
90-test_time_offset.t
90-test_tls13ccs.t
90-test_tls13encryption.t
90-test_tls13secrets.t
90-test_v3name.t
95-test_external_boringssl.t
95-test_external_gost_engine.t Update copyright year 2020-06-04 14:33:57 +01:00
95-test_external_krb5.t Rename NOTES*, README*, VERSION, HACKING, LICENSE to .md or .txt 2020-07-05 11:29:43 +02:00
95-test_external_pyca.t
99-test_ecstress.t
99-test_fuzz.t 99-test_fuzz.t: Clean up and re-organize such that sub-tests could be split easily 2020-07-16 21:44:26 +02:00
fuzz.pl 99-test_fuzz.t: Clean up and re-organize such that sub-tests could be split easily 2020-07-16 21:44:26 +02:00
ocsp-response.der
tconversion.pl