File 0001-Set-FIPS-thread-id-callback.patch of Package openssl-1_0_0.24562

From 0ab24083a16c8a4dd35833031bbeaeb0437a7219 Mon Sep 17 00:00:00 2001
From: "Dr. Stephen Henson" <steve@openssl.org>
Date: Fri, 18 Aug 2017 17:58:05 +0100
Subject: [PATCH] Set FIPS thread id callback.

Fixes #4180

Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/4192)
---
 crypto/cryptlib.c | 7 +++++++
 1 file changed, 7 insertions(+)

Index: openssl-1.0.2p/crypto/cryptlib.c
===================================================================
--- openssl-1.0.2p.orig/crypto/cryptlib.c	2020-10-06 15:40:08.626406026 +0200
+++ openssl-1.0.2p/crypto/cryptlib.c	2020-10-06 15:40:09.506411558 +0200
@@ -469,18 +469,11 @@ void CRYPTO_THREADID_set_pointer(CRYPTO_
     }
 }
 
-#ifdef OPENSSL_FIPS
-extern int FIPS_crypto_threadid_set_callback(void (*func) (CRYPTO_THREADID *));
-#endif
-
 int CRYPTO_THREADID_set_callback(void (*func) (CRYPTO_THREADID *))
 {
     if (threadid_callback)
         return 0;
     threadid_callback = func;
-#ifdef OPENSSL_FIPS
-    FIPS_crypto_threadid_set_callback(func);
-#endif
     return 1;
 }
 
openSUSE Build Service is sponsored by