From 79ad6fd731ea7c52c089e37a45893b903be3e597 Mon Sep 17 00:00:00 2001 From: Dennis Gaebler Date: Fri, 24 Jul 2020 22:10:51 +0200 Subject: [PATCH] Reverse 35cbcbc --- src/idevice.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/idevice.c b/src/idevice.c index fea1e03..18487aa 100644 --- a/src/idevice.c +++ b/src/idevice.c @@ -922,7 +922,7 @@ static const char *ssl_error_to_string(int e) case SSL_ERROR_NONE: return "SSL_ERROR_NONE"; case SSL_ERROR_SSL: - return ERR_error_string(ERR_get_error(), NULL); + return "SSL_ERROR_SSL"; case SSL_ERROR_WANT_READ: return "SSL_ERROR_WANT_READ"; case SSL_ERROR_WANT_WRITE: @@ -1015,10 +1015,6 @@ LIBIMOBILEDEVICE_API idevice_error_t idevice_connection_enable_ssl(idevice_conne return ret; } -#if OPENSSL_VERSION_NUMBER >= 0x10100000L - SSL_CTX_set_security_level(ssl_ctx, 0); -#endif - #if OPENSSL_VERSION_NUMBER < 0x10100002L || \ (defined(LIBRESSL_VERSION_NUMBER) && (LIBRESSL_VERSION_NUMBER < 0x2060000fL)) /* force use of TLSv1 for older devices */ -- 2.27.0