From dc4c75d8a0a2ef557ac9ba0d2e080805621a3d98 Mon Sep 17 00:00:00 2001 From: Nikias Bassen Date: Thu, 16 Jun 2016 19:24:48 +0200 Subject: Revert "Fix SSL version negotiation with newer versions of OpenSSL" This reverts commit 6ce120c168b0f0a0146e505649864b5b07dc5093. The change had the negative effect that connecting to older iOS devices wouldn't work anymore. --- src/idevice.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/idevice.c b/src/idevice.c index 4e8c56e..f2de6a3 100644 --- a/src/idevice.c +++ b/src/idevice.c @@ -703,7 +703,7 @@ LIBIMOBILEDEVICE_API idevice_error_t idevice_connection_enable_ssl(idevice_conne } BIO_set_fd(ssl_bio, (int)(long)connection->data, BIO_NOCLOSE); - SSL_CTX *ssl_ctx = SSL_CTX_new(SSLv23_method()); + SSL_CTX *ssl_ctx = SSL_CTX_new(SSLv3_method()); if (ssl_ctx == NULL) { debug_info("ERROR: Could not create SSL context."); BIO_free(ssl_bio); -- cgit v1.1-32-gdbae