aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorTomas Mraz <tomas@openssl.org>2024-05-02 17:31:22 +0200
committerTomas Mraz <tomas@openssl.org>2024-05-09 09:20:58 +0200
commitfb6584987a43553b161b44fe9ede06651d4042f0 (patch)
tree61c50a6460f7f35fd1bfe1cf34771f83a157e50b /test
parent3e191f487907a474b6bd6e497043d1560972e7d7 (diff)
downloadopenssl-fb6584987a43553b161b44fe9ede06651d4042f0.zip
openssl-fb6584987a43553b161b44fe9ede06651d4042f0.tar.gz
openssl-fb6584987a43553b161b44fe9ede06651d4042f0.tar.bz2
OSSL_LIB_CTX_load_config() must not be called concurrently on same libctx
The semantics of such concurrent call is not defined. Reviewed-by: Paul Dale <ppzgs1@gmail.com> Reviewed-by: Neil Horman <nhorman@openssl.org> (Merged from https://github.com/openssl/openssl/pull/24275)
Diffstat (limited to 'test')
-rw-r--r--test/threadstest.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/test/threadstest.c b/test/threadstest.c
index 9a961bb..2d05255 100644
--- a/test/threadstest.c
+++ b/test/threadstest.c
@@ -1076,19 +1076,6 @@ static int test_obj_add(void)
1, default_provider);
}
-static void test_lib_ctx_load_config_worker(void)
-{
- if (!TEST_int_eq(OSSL_LIB_CTX_load_config(multi_libctx, config_file), 1))
- multi_set_success(0);
-}
-
-static int test_lib_ctx_load_config(void)
-{
- return thread_run_test(&test_lib_ctx_load_config_worker,
- MAXIMUM_THREADS, &test_lib_ctx_load_config_worker,
- 1, default_provider);
-}
-
#if !defined(OPENSSL_NO_DGRAM) && !defined(OPENSSL_NO_SOCK)
static BIO *multi_bio1, *multi_bio2;
@@ -1275,7 +1262,6 @@ int setup_tests(void)
#endif
ADD_TEST(test_multi_load_unload_provider);
ADD_TEST(test_obj_add);
- ADD_TEST(test_lib_ctx_load_config);
#if !defined(OPENSSL_NO_DGRAM) && !defined(OPENSSL_NO_SOCK)
ADD_TEST(test_bio_dgram_pair);
#endif