diff options
author | Kazuki Yamaguchi <[email protected]> | 2022-10-17 16:52:46 +0900 |
---|---|---|
committer | Kazuki Yamaguchi <[email protected]> | 2022-12-23 09:39:15 +0900 |
commit | d6c16dd3e67ea5aa58a2f17dc8aa8aa977ded99a (patch) | |
tree | 39cb6850a45281f4491eb417f3d434313487c104 /ext/openssl | |
parent | 7c073cc11221eb85ac0c55ec38ff4c9da22ca26c (diff) |
[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
Diffstat (limited to 'ext/openssl')
-rw-r--r-- | ext/openssl/ossl_ssl.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/ext/openssl/ossl_ssl.c b/ext/openssl/ossl_ssl.c index 41c5384ffd..0c4ea37431 100644 --- a/ext/openssl/ossl_ssl.c +++ b/ext/openssl/ossl_ssl.c @@ -14,8 +14,7 @@ #define numberof(ary) (int)(sizeof(ary)/sizeof((ary)[0])) #if !defined(TLS1_3_VERSION) && \ - defined(LIBRESSL_VERSION_NUMBER) && \ - LIBRESSL_VERSION_NUMBER >= 0x3020000fL + OSSL_LIBRESSL_PREREQ(3, 2, 0) && !OSSL_LIBRESSL_PREREQ(3, 4, 0) # define TLS1_3_VERSION 0x0304 #endif |