From d87213038d0a428adb3e91432a1b7f6ae4817993 Mon Sep 17 00:00:00 2001 From: orbea Date: Tue, 11 Apr 2023 08:55:46 -0700 Subject: idevice: Update for LibreSSL >= 3.6.0 Since LibreSSL 3.6.0 SSL_CTX_set_security_level() has been available. --- src/idevice.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/idevice.c b/src/idevice.c index 2f4e9ce..19b171c 100644 --- a/src/idevice.c +++ b/src/idevice.c @@ -1223,7 +1223,8 @@ LIBIMOBILEDEVICE_API idevice_error_t idevice_connection_enable_ssl(idevice_conne return ret; } -#if OPENSSL_VERSION_NUMBER >= 0x10100000L && !defined(LIBRESSL_VERSION_NUMBER) +#if OPENSSL_VERSION_NUMBER >= 0x10100000L && !defined(LIBRESSL_VERSION_NUMBER) || \ + (defined(LIBRESSL_VERSION_NUMBER) && (LIBRESSL_VERSION_NUMBER >= 0x3060000fL)) SSL_CTX_set_security_level(ssl_ctx, 0); #endif -- cgit v1.1-32-gdbae