summaryrefslogtreecommitdiffhomepage
path: root/src/event/ngx_event_openssl.h
diff options
context:
space:
mode:
authorSergey Kandaurov <pluknet@nginx.com>2023-12-25 21:15:48 +0400
committerSergey Kandaurov <pluknet@nginx.com>2023-12-25 21:15:48 +0400
commitf255815f5d161fab0dd310fe826d4f7572e141f2 (patch)
tree27b61dc5fa379e77c63f1ee82bbaf279572efead /src/event/ngx_event_openssl.h
parentd7923960a824d0dd9f4b0c35101e68d71692d1e9 (diff)
downloadnginx-f255815f5d161fab0dd310fe826d4f7572e141f2.tar.gz
nginx-f255815f5d161fab0dd310fe826d4f7572e141f2.tar.bz2
SSL: reasonable version for LibreSSL adjusted.
OPENSSL_VERSION_NUMBER is now redefined to 0x1010000fL for LibreSSL 3.5.0 and above. Building with older LibreSSL versions, such as 2.8.0, may now produce warnings (see cab37803ebb3) and may require appropriate compiler options to suppress them. Notably, this allows to start using SSL_get0_verified_chain() appeared in OpenSSL 1.1.0 and LibreSSL 3.5.0, without additional macro tests. Prodded by Ilya Shipitsin.
Diffstat (limited to 'src/event/ngx_event_openssl.h')
-rw-r--r--src/event/ngx_event_openssl.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/event/ngx_event_openssl.h b/src/event/ngx_event_openssl.h
index c062f912c..ebb2c35bf 100644
--- a/src/event/ngx_event_openssl.h
+++ b/src/event/ngx_event_openssl.h
@@ -45,7 +45,7 @@
#if (defined LIBRESSL_VERSION_NUMBER && OPENSSL_VERSION_NUMBER == 0x20000000L)
#undef OPENSSL_VERSION_NUMBER
-#if (LIBRESSL_VERSION_NUMBER >= 0x2080000fL)
+#if (LIBRESSL_VERSION_NUMBER >= 0x3050000fL)
#define OPENSSL_VERSION_NUMBER 0x1010000fL
#else
#define OPENSSL_VERSION_NUMBER 0x1000107fL