diff options
| author | 2016-06-16 19:24:48 +0200 | |
|---|---|---|
| committer | 2016-06-16 19:24:48 +0200 | |
| commit | dc4c75d8a0a2ef557ac9ba0d2e080805621a3d98 (patch) | |
| tree | f5bc5672e6176cb39add5842d808532468a43851 | |
| parent | 6ce120c168b0f0a0146e505649864b5b07dc5093 (diff) | |
| download | libimobiledevice-dc4c75d8a0a2ef557ac9ba0d2e080805621a3d98.tar.gz libimobiledevice-dc4c75d8a0a2ef557ac9ba0d2e080805621a3d98.tar.bz2 | |
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.
| -rw-r--r-- | src/idevice.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 | |||
| 703 | } | 703 | } |
| 704 | BIO_set_fd(ssl_bio, (int)(long)connection->data, BIO_NOCLOSE); | 704 | BIO_set_fd(ssl_bio, (int)(long)connection->data, BIO_NOCLOSE); |
| 705 | 705 | ||
| 706 | SSL_CTX *ssl_ctx = SSL_CTX_new(SSLv23_method()); | 706 | SSL_CTX *ssl_ctx = SSL_CTX_new(SSLv3_method()); |
| 707 | if (ssl_ctx == NULL) { | 707 | if (ssl_ctx == NULL) { |
| 708 | debug_info("ERROR: Could not create SSL context."); | 708 | debug_info("ERROR: Could not create SSL context."); |
| 709 | BIO_free(ssl_bio); | 709 | BIO_free(ssl_bio); |
