summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2020-08-06 20:43:08 +0200
committerGravatar Nikias Bassen2020-08-06 20:43:08 +0200
commit170e1c445e8c930f4ee9dddfb9f1bcf24c089962 (patch)
tree5c5d9333e20ceaeb6adcb465b7f863fccd4cf809
parentae0c89c928f0e0e8e97b4b29c094494404a8a838 (diff)
downloadlibimobiledevice-170e1c445e8c930f4ee9dddfb9f1bcf24c089962.tar.gz
libimobiledevice-170e1c445e8c930f4ee9dddfb9f1bcf24c089962.tar.bz2
idevice: Fix build with LibreSSL
-rw-r--r--src/idevice.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/idevice.c b/src/idevice.c
index fea1e03..47c9ab4 100644
--- a/src/idevice.c
+++ b/src/idevice.c
@@ -1015,7 +1015,7 @@ LIBIMOBILEDEVICE_API idevice_error_t idevice_connection_enable_ssl(idevice_conne
return ret;
}
-#if OPENSSL_VERSION_NUMBER >= 0x10100000L
+#if OPENSSL_VERSION_NUMBER >= 0x10100000L && !defined(LIBRESSL_VERSION_NUMBER)
SSL_CTX_set_security_level(ssl_ctx, 0);
#endif