From dc59cdaed0e9bfd905e85ea4280b5b2af9e700e1 Mon Sep 17 00:00:00 2001 From: Neelima P S Date: Wed, 10 Jun 2026 14:36:42 +0000 Subject: [PATCH] fix for : OpenSSL commands (rand,ecparam, dhparam) may not work first time after boot (#62) Co-authored-by: neelimap Reviewed-on: http://13.234.246.121:3000/Neominds/ossl35vx69/pulls/62 Co-authored-by: Neelima P S Co-committed-by: Neelima P S --- .../openssl/OPENSSL/openssl-3.5.0/crypto/initthread.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/vxworks-6.9/target/src/openssl/OPENSSL/openssl-3.5.0/crypto/initthread.c b/vxworks-6.9/target/src/openssl/OPENSSL/openssl-3.5.0/crypto/initthread.c index 0fc5ee99..e3815a1e 100644 --- a/vxworks-6.9/target/src/openssl/OPENSSL/openssl-3.5.0/crypto/initthread.c +++ b/vxworks-6.9/target/src/openssl/OPENSSL/openssl-3.5.0/crypto/initthread.c @@ -377,6 +377,17 @@ int ossl_init_thread_start(const void *index, void *arg, { THREAD_EVENT_HANDLER **hands; THREAD_EVENT_HANDLER *hand; + + TASK_ID tid = tss_symlist_get_first_tid("ossl_init_base"); + + if (tid != ERROR) { + tss_symlist_clone_entries_for_new_task(tid,"ossl_init_base"); + } + else + { + printf ("ERROR: ossl_init_thread_start(): tss_symlist_get_first_tid failed for ossl_init_base\n"); + } + #ifdef FIPS_MODULE OSSL_LIB_CTX *ctx = arg;