Files
openssl-1_0_0/0001-Set-FIPS-thread-id-callback.patch
Tomáš Chvátal 15b42fbdaf Accepting request 538704 from home:vitezslav_cizek:branches:security:tls
- Update to 1.0.2m
  OpenSSL Security Advisory [02 Nov 2017]
  * bn_sqrx8x_internal carry bug on x86_64
    (CVE-2017-3736) (bsc#1066242)
  * Malformed X.509 IPAddressFamily could cause OOB read
    (CVE-2017-3735) (bsc#1056058)
- refreshed openssl-1.0.2i-fips.patch
- revert upstream commit 0ab24083a16c8a4dd35833031bbeaeb0437a7219
  as we don't have the added function and FIPS is not interesting
  for openSUSE anyway
  * added 0001-Set-FIPS-thread-id-callback.patch

OBS-URL: https://build.opensuse.org/request/show/538704
OBS-URL: https://build.opensuse.org/package/show/security:tls/openssl-1_0_0?expand=0&rev=31
2017-11-03 12:35:05 +00:00

40 lines
989 B
Diff

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(+)
diff --git a/crypto/cryptlib.c b/crypto/cryptlib.c
index 1925428f5e..5fab45b2ec 100644
--- a/crypto/cryptlib.c
+++ b/crypto/cryptlib.c
@@ -469,11 +469,18 @@ void CRYPTO_THREADID_set_pointer(CRYPTO_THREADID *id, void *ptr)
}
}
+#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;
}
--
2.13.6