summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2023-01-11 13:00:03 +0100
committerGravatar Nikias Bassen2023-01-11 13:00:03 +0100
commit9a5e78fe56267d6c721c92055c3ae9702bd25871 (patch)
treeab4d7477b2918b204b5d59ba0894371fae3e724f /src
parenta15a31611d61379297ec45c2a5d34ab57dfb958d (diff)
downloadlibimobiledevice-9a5e78fe56267d6c721c92055c3ae9702bd25871.tar.gz
libimobiledevice-9a5e78fe56267d6c721c92055c3ae9702bd25871.tar.bz2
idevice: Use more reliable version check macro for OpenSSL 3 specific things
OpenSSL versions pre 3.0 do not define OPENSSL_VERSION_MAJOR etc.
Diffstat (limited to 'src')
-rw-r--r--src/idevice.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/idevice.c b/src/idevice.c
index 12d9bb3..03e2c40 100644
--- a/src/idevice.c
+++ b/src/idevice.c
@@ -1205,7 +1205,7 @@ LIBIMOBILEDEVICE_API idevice_error_t idevice_connection_enable_ssl(idevice_conne
SSL_CTX_set_max_proto_version(ssl_ctx, TLS1_VERSION);
}
#endif
-#if (OPENSSL_VERSION_MAJOR >= 3)
+#if OPENSSL_VERSION_NUMBER >= 0x30000000L
#if defined(SSL_OP_IGNORE_UNEXPECTED_EOF)
/*
* For OpenSSL 3 and later, mark close_notify alerts as optional.