From 2905f7cd66679d3e5660c2e1e86b99730929fa24 Mon Sep 17 00:00:00 2001 From: Jonathan Schleifer Date: Tue, 1 Aug 2017 20:49:39 +0200 Subject: [PATCH] Fix compilation with OpenSSL 1.1 --- src/SSLSocket.m | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/SSLSocket.m b/src/SSLSocket.m index f1822ac..3633664 100644 --- a/src/SSLSocket.m +++ b/src/SSLSocket.m @@ -115,6 +115,8 @@ locking_callback(int mode, int n, const char *file, int line) return; CRYPTO_set_id_callback(&get_thread_id); + /* OpenSSL >= 1.1 defines the line above to a nop */ + (void)get_thread_id; /* Generate number of mutexes needed */ m = CRYPTO_num_locks(); @@ -123,6 +125,8 @@ locking_callback(int mode, int n, const char *file, int line) of_mutex_new(&ssl_mutexes[m]); CRYPTO_set_locking_callback(&locking_callback); + /* OpenSSL >= 1.1 defines the line above to a nop */ + (void)locking_callback; SSL_library_init();