Skip to content
This repository was archived by the owner on Dec 2, 2024. It is now read-only.

Commit 2905f7c

Browse files
committed
Fix compilation with OpenSSL 1.1
1 parent f5d7031 commit 2905f7c

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/SSLSocket.m

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,8 @@ + (void)initialize
115115
return;
116116

117117
CRYPTO_set_id_callback(&get_thread_id);
118+
/* OpenSSL >= 1.1 defines the line above to a nop */
119+
(void)get_thread_id;
118120

119121
/* Generate number of mutexes needed */
120122
m = CRYPTO_num_locks();
@@ -123,6 +125,8 @@ + (void)initialize
123125
of_mutex_new(&ssl_mutexes[m]);
124126

125127
CRYPTO_set_locking_callback(&locking_callback);
128+
/* OpenSSL >= 1.1 defines the line above to a nop */
129+
(void)locking_callback;
126130

127131
SSL_library_init();
128132

0 commit comments

Comments
 (0)