summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2016-06-15 02:01:36 +0200
committerGravatar Nikias Bassen2016-06-15 02:01:36 +0200
commit6ce120c168b0f0a0146e505649864b5b07dc5093 (patch)
treed17b8b8cf428cf46260d4441d7463c1bc17059b9
parent2a5868411c57e25802d2f16fd6b77601f10d0b72 (diff)
downloadlibimobiledevice-6ce120c168b0f0a0146e505649864b5b07dc5093.tar.gz
libimobiledevice-6ce120c168b0f0a0146e505649864b5b07dc5093.tar.bz2
Fix SSL version negotiation with newer versions of OpenSSL
-rw-r--r--src/idevice.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/idevice.c b/src/idevice.c
index f2de6a3..4e8c56e 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(SSLv3_method());
+ SSL_CTX *ssl_ctx = SSL_CTX_new(SSLv23_method());
if (ssl_ctx == NULL) {
debug_info("ERROR: Could not create SSL context.");
BIO_free(ssl_bio);