Blame SOURCES/0001-Fix-SSL-version-negotiation-for-newer-versions-of-Op.patch

97434d
From 13bf235cac2201747de11652cf14fe2714ca0718 Mon Sep 17 00:00:00 2001
97434d
From: David Weinstein <dweinst@insitusec.com>
97434d
Date: Mon, 21 Mar 2016 17:45:59 -0400
97434d
Subject: [PATCH] Fix SSL version negotiation for newer versions of OpenSSL
97434d
97434d
Depending on the OpenSSL version (and custom distribution patches), `SSLv3_method()`
97434d
would return NULL on some systems and also `SSLv23_method()` fails with some older
97434d
iOS versions...
97434d
---
97434d
 src/idevice.c | 2 +-
97434d
 1 file changed, 1 insertion(+), 1 deletion(-)
97434d
97434d
diff --git a/src/idevice.c b/src/idevice.c
97434d
index f2de6a3..1dcdae2 100644
97434d
--- a/src/idevice.c
97434d
+++ b/src/idevice.c
97434d
@@ -703,7 +703,7 @@ LIBIMOBILEDEVICE_API idevice_error_t idevice_connection_enable_ssl(idevice_conne
97434d
 	}
97434d
 	BIO_set_fd(ssl_bio, (int)(long)connection->data, BIO_NOCLOSE);
97434d
 
97434d
-	SSL_CTX *ssl_ctx = SSL_CTX_new(SSLv3_method());
97434d
+	SSL_CTX *ssl_ctx = SSL_CTX_new(TLSv1_method());
97434d
 	if (ssl_ctx == NULL) {
97434d
 		debug_info("ERROR: Could not create SSL context.");
97434d
 		BIO_free(ssl_bio);
97434d
-- 
97434d
2.9.3
97434d