From d6c16dd3e67ea5aa58a2f17dc8aa8aa977ded99a Mon Sep 17 00:00:00 2001 From: Kazuki Yamaguchi Date: Mon, 17 Oct 2022 16:52:46 +0900 Subject: [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 --- ext/openssl/ossl_ssl.c | 3 +-- 1 file changed, 1 insertion(+), 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 -- cgit v1.2.3