You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by zw...@apache.org on 2017/07/10 23:54:14 UTC
[trafficserver] branch 7.1.x updated: Fix compile problem with
openSSL 1.1.
This is an automated email from the ASF dual-hosted git repository.
zwoop pushed a commit to branch 7.1.x
in repository https://gitbox.apache.org/repos/asf/trafficserver.git
The following commit(s) were added to refs/heads/7.1.x by this push:
new aaf3fd6 Fix compile problem with openSSL 1.1.
aaf3fd6 is described below
commit aaf3fd6d05e976e115acd5f685fa104786fe1562
Author: Alan M. Carroll <am...@apache.org>
AuthorDate: Sun Jul 9 10:06:17 2017 -0500
Fix compile problem with openSSL 1.1.
(cherry picked from commit 4a62837fa374c3edc1bab1ae938977fbe4fedc4d)
---
iocore/net/SSLUtils.cc | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/iocore/net/SSLUtils.cc b/iocore/net/SSLUtils.cc
index 3b2c2a0..863d80d 100644
--- a/iocore/net/SSLUtils.cc
+++ b/iocore/net/SSLUtils.cc
@@ -139,14 +139,16 @@ static InkHashTable *ssl_cipher_name_table = nullptr;
* may use pthreads and openssl without confusing us here. (TS-2271).
*/
+#if !defined(CRYPTO_THREADID_set_callback)
static void
SSL_pthreads_thread_id(CRYPTO_THREADID *id)
{
CRYPTO_THREADID_set_numeric(id, (unsigned long)pthread_self());
}
+#endif
// The locking callback goes away with openssl 1.1 and CRYPTO_LOCK is on longer defined
-#ifdef CRYPTO_LOCK
+#if defined(CRYPTO_LOCK) && !defined(CRYPTO_set_locking_callback)
static void
SSL_locking_callback(int mode, int type, const char *file, int line)
{
@@ -863,7 +865,9 @@ SSLInitializeLibrary()
}
CRYPTO_set_locking_callback(SSL_locking_callback);
+#if !defined(CRYPTO_THREADID_set_callback)
CRYPTO_THREADID_set_callback(SSL_pthreads_thread_id);
+#endif
CRYPTO_set_dynlock_create_callback(ssl_dyn_create_callback);
CRYPTO_set_dynlock_lock_callback(ssl_dyn_lock_callback);
CRYPTO_set_dynlock_destroy_callback(ssl_dyn_destroy_callback);
--
To stop receiving notification emails like this one, please contact
['"commits@trafficserver.apache.org" <co...@trafficserver.apache.org>'].