goto err;
OPENSSL_cpuid_setup();
- if (!init_thread())
+ if (!ossl_init_thread())
return 0;
base_inited = 1;
err_free_strings_int();
}
- cleanup_thread();
-
/*
* Note that cleanup order is important:
* - rand_cleanup_int could call an ENGINE's RAND cleanup function so
OSSL_TRACE(INIT, "OPENSSL_cleanup: openssl_ctx_default_deinit()\n");
openssl_ctx_default_deinit();
+ ossl_cleanup_thread();
+
OSSL_TRACE(INIT, "OPENSSL_cleanup: bio_cleanup()\n");
bio_cleanup();