Replace global variable and first task reference for cloning with tss_clone_list (#63)

Task Id of first task in vxtss symbol list is updated with 0 after it is terminated.

Co-authored-by: subhamgdeb <subhamgdeb>
Reviewed-on: http://13.234.246.121:3000/Neominds/ossl35vx69/pulls/63
Co-authored-by: Subham Gangdeb <subham.gangdeb@neominds.in>
Co-committed-by: Subham Gangdeb <subham.gangdeb@neominds.in>
This commit is contained in:
2026-07-30 20:45:01 +05:30
committed by neelimap
co-authored by subhamgdeb
parent bd330e941f
commit d6e76bcf3d
4 changed files with 245 additions and 187 deletions
@@ -378,15 +378,7 @@ 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");
}
tss_symlist_clone_entries_for_new_task("ossl_init_base");
#ifdef FIPS_MODULE
OSSL_LIB_CTX *ctx = arg;