Blame SOURCES/0001-idevice-Update-GnuTLS-code-to-support-iOS-10.patch

97434d
From 72643b2b83990b9cf97cc84b285b30763d44a72d Mon Sep 17 00:00:00 2001
97434d
From: "Jay Freeman (saurik)" <saurik@saurik.com>
97434d
Date: Tue, 2 Aug 2016 03:08:04 -0700
97434d
Subject: [PATCH] idevice: Update GnuTLS code to support iOS 10
97434d
97434d
As of iOS 10 beta 4, the GnuTLS implementation idevice_connection_enable_ssl
97434d
needs to be updated to support TLS. Using +VERS-TLS-ALL did not work on some
97434d
of the devices I tested and I wasn't sure how to fix it, but +VERS-TLS1.0 is
97434d
working on every device I've tested: iOS 9.0.2, 10.0b4, 8.1.1, 6.0, and 3.0.
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 1dcdae2..b6dfe4e 100644
97434d
--- a/src/idevice.c
97434d
+++ b/src/idevice.c
97434d
@@ -774,7 +774,7 @@ LIBIMOBILEDEVICE_API idevice_error_t idevice_connection_enable_ssl(idevice_conne
97434d
 	gnutls_certificate_client_set_retrieve_function(ssl_data_loc->certificate, internal_cert_callback);
97434d
 #endif
97434d
 	gnutls_init(&ssl_data_loc->session, GNUTLS_CLIENT);
97434d
-	gnutls_priority_set_direct(ssl_data_loc->session, "NONE:+VERS-SSL3.0:+ANON-DH:+RSA:+AES-128-CBC:+AES-256-CBC:+SHA1:+MD5:+COMP-NULL", NULL);
97434d
+	gnutls_priority_set_direct(ssl_data_loc->session, "NONE:+VERS-TLS1.0:+ANON-DH:+RSA:+AES-128-CBC:+AES-256-CBC:+SHA1:+MD5:+COMP-NULL", NULL);
97434d
 	gnutls_credentials_set(ssl_data_loc->session, GNUTLS_CRD_CERTIFICATE, ssl_data_loc->certificate);
97434d
 	gnutls_session_set_ptr(ssl_data_loc->session, ssl_data_loc);
97434d
 
97434d
-- 
97434d
2.9.3
97434d