[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:
parent
7c073cc112
commit
d6c16dd3e6
@ -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
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user