Mercurial > hg > nginx
comparison src/event/ngx_event_openssl.h @ 9200:ee40e2b1d083
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.
author | Sergey Kandaurov <pluknet@nginx.com> |
---|---|
date | Mon, 25 Dec 2023 21:15:48 +0400 |
parents | 0f4f781e57c1 |
children | 03cdd806c0f2 |
comparison
equal
deleted
inserted
replaced
9199:875cd36b8617 | 9200:ee40e2b1d083 |
---|---|
43 #define NGX_SSL_NAME "OpenSSL" | 43 #define NGX_SSL_NAME "OpenSSL" |
44 | 44 |
45 | 45 |
46 #if (defined LIBRESSL_VERSION_NUMBER && OPENSSL_VERSION_NUMBER == 0x20000000L) | 46 #if (defined LIBRESSL_VERSION_NUMBER && OPENSSL_VERSION_NUMBER == 0x20000000L) |
47 #undef OPENSSL_VERSION_NUMBER | 47 #undef OPENSSL_VERSION_NUMBER |
48 #if (LIBRESSL_VERSION_NUMBER >= 0x2080000fL) | 48 #if (LIBRESSL_VERSION_NUMBER >= 0x3050000fL) |
49 #define OPENSSL_VERSION_NUMBER 0x1010000fL | 49 #define OPENSSL_VERSION_NUMBER 0x1010000fL |
50 #else | 50 #else |
51 #define OPENSSL_VERSION_NUMBER 0x1000107fL | 51 #define OPENSSL_VERSION_NUMBER 0x1000107fL |
52 #endif | 52 #endif |
53 #endif | 53 #endif |