[ruby/openssl] ssl: update TLS1_3_VERSION workaround for older LibreSSL versions

The macro is now defined by default in LibreSSL 3.4+. Let's document it
for future readers.

https://github.com/ruby/openssl/commit/935698e9f9
This commit is contained in:
Kazuki Yamaguchi 2022-10-17 16:52:46 +09:00
parent 7c073cc112
commit d6c16dd3e6

View File

@ -14,8 +14,7 @@
#define numberof(ary) (int)(sizeof(ary)/sizeof((ary)[0])) #define numberof(ary) (int)(sizeof(ary)/sizeof((ary)[0]))
#if !defined(TLS1_3_VERSION) && \ #if !defined(TLS1_3_VERSION) && \
defined(LIBRESSL_VERSION_NUMBER) && \ OSSL_LIBRESSL_PREREQ(3, 2, 0) && !OSSL_LIBRESSL_PREREQ(3, 4, 0)
LIBRESSL_VERSION_NUMBER >= 0x3020000fL
# define TLS1_3_VERSION 0x0304 # define TLS1_3_VERSION 0x0304
#endif #endif