From 3c00044443de8d147d50f348b51cc0d828e8b3a9 Mon Sep 17 00:00:00 2001 From: UMU Date: Wed, 28 Jan 2026 18:40:10 +0800 Subject: [PATCH] Update TLS v1.3 context initialization with LibReSSL LibreSSL support TLS v1.3 from 3.2.0. See https://ftp.openbsd.org/pub/OpenBSD/LibreSSL/libressl-3.2.0-relnotes.txt Ref: #85 --- include/asio/ssl/impl/context.ipp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/asio/ssl/impl/context.ipp b/include/asio/ssl/impl/context.ipp index bb88816eea..fd481ad8c8 100644 --- a/include/asio/ssl/impl/context.ipp +++ b/include/asio/ssl/impl/context.ipp @@ -270,7 +270,7 @@ context::context(context::method m) // TLS v1.3. #if ((OPENSSL_VERSION_NUMBER >= 0x10101000L) \ - && !defined(LIBRESSL_VERSION_NUMBER)) \ + && (!defined(LIBRESSL_VERSION_NUMBER) || LIBRESSL_VERSION_NUMBER >= 0x3020000fL)) \ || defined(ASIO_USE_WOLFSSL) case context::tlsv13: handle_ = ::SSL_CTX_new(::TLS_method());