From a4dddf492403f9116adb7582d94f768387ccd21c Mon Sep 17 00:00:00 2001 From: Norman Ashley Date: Thu, 17 Oct 2024 22:19:02 -0400 Subject: [PATCH] Apply suggestions from code review Use of OQS_DLOPEN_OPENSSL needs a new API change to expose an OQS function that calls OPENSSL_thread_stop Signed-off-by: Norman Ashley --- tests/test_sig_stfl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_sig_stfl.c b/tests/test_sig_stfl.c index d90707806..687ff82a3 100644 --- a/tests/test_sig_stfl.c +++ b/tests/test_sig_stfl.c @@ -1008,7 +1008,7 @@ void *test_create_keys(void *arg) { struct lock_test_data *td = arg; printf("\n%s: Start Generate Keys\n", __func__); td->rc = sig_stfl_test_secret_key_lock(td->alg_name, td->katfile); -#if defined(OQS_USE_OPENSSL) +#if defined(OQS_USE_OPENSSL) && !defined(OQS_DLOPEN_OPENSSL) OPENSSL_thread_stop(); #endif printf("%s: End Generate Stateful Keys\n\n", __func__);