From 5e7098e11581b6b3a4083a1c17889ed817e8ac22 Mon Sep 17 00:00:00 2001 From: Bernd Edlinger Date: Tue, 11 Jan 2022 12:10:35 +0100 Subject: [PATCH] Remove unsafe call to OPENSSL_cpuid_setup This function is inherently thread-unsafe, and moreover it is unnecessary here, because OPENSSL_init_crypto always calls it in a thread-safe way. Reviewed-by: Matt Caswell Reviewed-by: Paul Dale (Merged from https://github.com/openssl/openssl/pull/17468) --- crypto/engine/eng_all.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/crypto/engine/eng_all.c b/crypto/engine/eng_all.c index b675ed7892..c570aeda3d 100644 --- a/crypto/engine/eng_all.c +++ b/crypto/engine/eng_all.c @@ -12,9 +12,6 @@ void ENGINE_load_builtin_engines(void) { - /* Some ENGINEs need this */ - OPENSSL_cpuid_setup(); - OPENSSL_init_crypto(OPENSSL_INIT_ENGINE_ALL_BUILTIN, NULL); } -- 2.34.1