summaryrefslogtreecommitdiffstats
path: root/src/idevice.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/idevice.c')
-rw-r--r--src/idevice.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/idevice.c b/src/idevice.c
index 18487aa..fea1e03 100644
--- a/src/idevice.c
+++ b/src/idevice.c
@@ -922,7 +922,7 @@ static const char *ssl_error_to_string(int e)
922 case SSL_ERROR_NONE: 922 case SSL_ERROR_NONE:
923 return "SSL_ERROR_NONE"; 923 return "SSL_ERROR_NONE";
924 case SSL_ERROR_SSL: 924 case SSL_ERROR_SSL:
925 return "SSL_ERROR_SSL"; 925 return ERR_error_string(ERR_get_error(), NULL);
926 case SSL_ERROR_WANT_READ: 926 case SSL_ERROR_WANT_READ:
927 return "SSL_ERROR_WANT_READ"; 927 return "SSL_ERROR_WANT_READ";
928 case SSL_ERROR_WANT_WRITE: 928 case SSL_ERROR_WANT_WRITE:
@@ -1015,6 +1015,10 @@ LIBIMOBILEDEVICE_API idevice_error_t idevice_connection_enable_ssl(idevice_conne
1015 return ret; 1015 return ret;
1016 } 1016 }
1017 1017
1018#if OPENSSL_VERSION_NUMBER >= 0x10100000L
1019 SSL_CTX_set_security_level(ssl_ctx, 0);
1020#endif
1021
1018#if OPENSSL_VERSION_NUMBER < 0x10100002L || \ 1022#if OPENSSL_VERSION_NUMBER < 0x10100002L || \
1019 (defined(LIBRESSL_VERSION_NUMBER) && (LIBRESSL_VERSION_NUMBER < 0x2060000fL)) 1023 (defined(LIBRESSL_VERSION_NUMBER) && (LIBRESSL_VERSION_NUMBER < 0x2060000fL))
1020 /* force use of TLSv1 for older devices */ 1024 /* force use of TLSv1 for older devices */