File 0024-CPPXT-110-OpenSSL-1.1-internalizes-locking.patch of Package xmltooling.15367
From 76daf28d24f2cccb1889562b7ddf033e6d5da9a0 Mon Sep 17 00:00:00 2001
From: Rod Widdowson <rdw@steadingsoftware.com>
Date: Tue, 19 Jul 2016 16:15:10 +0100
Subject: [PATCH 24/31] CPPXT-110 OpenSSL 1.1 internalizes locking.
https://issues.shibboleth.net/jira/browse/CPPXT-110
https://www.openssl.org/docs/manmaster/crypto/CRYPTO_THREAD_lock_free.html
"The old locking functions have been removed completely
without compatibility macros"
For now we just make the callback compile. More work TBD.
(reapplied - previously backed out in bae0dd53)
---
xmltooling/XMLToolingConfig.cpp | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/xmltooling/XMLToolingConfig.cpp b/xmltooling/XMLToolingConfig.cpp
index 6925a23..a8b4bb5 100644
--- a/xmltooling/XMLToolingConfig.cpp
+++ b/xmltooling/XMLToolingConfig.cpp
@@ -111,6 +111,15 @@ using namespace xmlsignature;
namespace {
static XMLToolingInternalConfig g_config;
#ifndef XMLTOOLING_NO_XMLSEC
+// NOTE:
+// "The old locking functions have been removed completely without compatibility macros"
+// see:
+// https://www.openssl.org/docs/manmaster/crypto/CRYPTO_THREAD_lock_free.html
+//
+// For now we just make the callback compile. More work TBD
+#ifndef CRYPTO_LOCK
+#define CRYPTO_LOCK 1
+#endif
static ptr_vector<Mutex> g_openssl_locks;
extern "C" void openssl_locking_callback(int mode,int n,const char *file,int line)
--
2.13.6