diff options
author | Jay Freeman (saurik) | 2016-08-02 03:08:04 -0700 |
---|---|---|
committer | Jay Freeman (saurik) | 2016-08-02 03:08:04 -0700 |
commit | 72643b2b83990b9cf97cc84b285b30763d44a72d (patch) | |
tree | 98103fc396cd52e17cc9bf700dffae1b6b2d976e | |
parent | 18811d92c940018aeb3916780960d8f085eb9f32 (diff) | |
download | libimobiledevice-72643b2b83990b9cf97cc84b285b30763d44a72d.tar.gz libimobiledevice-72643b2b83990b9cf97cc84b285b30763d44a72d.tar.bz2 |
idevice: Update GnuTLS code to support iOS 10
As of iOS 10 beta 4, the GnuTLS implementation idevice_connection_enable_ssl
needs to be updated to support TLS. Using +VERS-TLS-ALL did not work on some
of the devices I tested and I wasn't sure how to fix it, but +VERS-TLS1.0 is
working on every device I've tested: iOS 9.0.2, 10.0b4, 8.1.1, 6.0, and 3.0.
-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 1dcdae2..b6dfe4e 100644 --- a/src/idevice.c +++ b/src/idevice.c @@ -774,7 +774,7 @@ LIBIMOBILEDEVICE_API idevice_error_t idevice_connection_enable_ssl(idevice_conne gnutls_certificate_client_set_retrieve_function(ssl_data_loc->certificate, internal_cert_callback); #endif gnutls_init(&ssl_data_loc->session, GNUTLS_CLIENT); - 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); + 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); gnutls_credentials_set(ssl_data_loc->session, GNUTLS_CRD_CERTIFICATE, ssl_data_loc->certificate); gnutls_session_set_ptr(ssl_data_loc->session, ssl_data_loc); |