Index: src/SSLSocket.m ================================================================== --- src/SSLSocket.m +++ src/SSLSocket.m @@ -113,18 +113,22 @@ if (self != [SSLSocket class]) 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(); ssl_mutexes = malloc(m * sizeof(of_mutex_t)); for (m--; m >= 0; m--) 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(); if ((ctx = SSL_CTX_new(SSLv23_method())) == NULL) @throw [OFInitializationFailedException