diff options
Diffstat (limited to 'src/idevice.c')
| -rw-r--r-- | src/idevice.c | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/src/idevice.c b/src/idevice.c index 5a9d49b..3676b5c 100644 --- a/src/idevice.c +++ b/src/idevice.c | |||
| @@ -586,19 +586,7 @@ idevice_error_t idevice_connection_enable_ssl(idevice_connection_t connection) | |||
| 586 | gnutls_certificate_allocate_credentials(&ssl_data_loc->certificate); | 586 | gnutls_certificate_allocate_credentials(&ssl_data_loc->certificate); |
| 587 | gnutls_certificate_client_set_retrieve_function (ssl_data_loc->certificate, internal_cert_callback); | 587 | gnutls_certificate_client_set_retrieve_function (ssl_data_loc->certificate, internal_cert_callback); |
| 588 | gnutls_init(&ssl_data_loc->session, GNUTLS_CLIENT); | 588 | gnutls_init(&ssl_data_loc->session, GNUTLS_CLIENT); |
| 589 | { | 589 | 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); |
| 590 | int protocol_priority[16] = { GNUTLS_SSL3, 0 }; | ||
| 591 | int kx_priority[16] = { GNUTLS_KX_ANON_DH, GNUTLS_KX_RSA, 0 }; | ||
| 592 | int cipher_priority[16] = { GNUTLS_CIPHER_AES_128_CBC, GNUTLS_CIPHER_AES_256_CBC, 0 }; | ||
| 593 | int mac_priority[16] = { GNUTLS_MAC_SHA1, GNUTLS_MAC_MD5, 0 }; | ||
| 594 | int comp_priority[16] = { GNUTLS_COMP_NULL, 0 }; | ||
| 595 | |||
| 596 | gnutls_cipher_set_priority(ssl_data_loc->session, cipher_priority); | ||
| 597 | gnutls_compression_set_priority(ssl_data_loc->session, comp_priority); | ||
| 598 | gnutls_kx_set_priority(ssl_data_loc->session, kx_priority); | ||
| 599 | gnutls_protocol_set_priority(ssl_data_loc->session, protocol_priority); | ||
| 600 | gnutls_mac_set_priority(ssl_data_loc->session, mac_priority); | ||
| 601 | } | ||
| 602 | gnutls_credentials_set(ssl_data_loc->session, GNUTLS_CRD_CERTIFICATE, ssl_data_loc->certificate); | 590 | gnutls_credentials_set(ssl_data_loc->session, GNUTLS_CRD_CERTIFICATE, ssl_data_loc->certificate); |
| 603 | gnutls_session_set_ptr(ssl_data_loc->session, ssl_data_loc); | 591 | gnutls_session_set_ptr(ssl_data_loc->session, ssl_data_loc); |
| 604 | 592 | ||
