diff options
author | 2023-04-11 08:55:46 -0700 | |
---|---|---|
committer | 2023-12-16 00:50:57 +0100 | |
commit | d87213038d0a428adb3e91432a1b7f6ae4817993 (patch) | |
tree | bdf73887ae5715f00b5dddaea160b772760baee7 | |
parent | d86140ff5a8f2c6a006644dc8194f55ca6fd52c1 (diff) | |
download | libimobiledevice-d87213038d0a428adb3e91432a1b7f6ae4817993.tar.gz libimobiledevice-d87213038d0a428adb3e91432a1b7f6ae4817993.tar.bz2 |
idevice: Update for LibreSSL >= 3.6.0
Since LibreSSL 3.6.0 SSL_CTX_set_security_level() has been available.
-rw-r--r-- | src/idevice.c | 3 |
1 files changed, 2 insertions, 1 deletions
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 | |||
1223 | return ret; | 1223 | return ret; |
1224 | } | 1224 | } |
1225 | 1225 | ||
1226 | #if OPENSSL_VERSION_NUMBER >= 0x10100000L && !defined(LIBRESSL_VERSION_NUMBER) | 1226 | #if OPENSSL_VERSION_NUMBER >= 0x10100000L && !defined(LIBRESSL_VERSION_NUMBER) || \ |
1227 | (defined(LIBRESSL_VERSION_NUMBER) && (LIBRESSL_VERSION_NUMBER >= 0x3060000fL)) | ||
1227 | SSL_CTX_set_security_level(ssl_ctx, 0); | 1228 | SSL_CTX_set_security_level(ssl_ctx, 0); |
1228 | #endif | 1229 | #endif |
1229 | 1230 | ||