From 6df94b8c5f259e00b4eaf754f6b57aa543427eeb Mon Sep 17 00:00:00 2001 From: Kenjiro Nakayama Date: Wed, 7 Aug 2024 09:18:32 +0900 Subject: [PATCH] Allow LibreSSL to use X25519 As LibreSSL already supports X25519. Also NID_X25519 variable is also defined. Hence, this patch allows LibreSSL to use X25519. --- include/picotls/openssl.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/picotls/openssl.h b/include/picotls/openssl.h index 205500ad..40d1376b 100644 --- a/include/picotls/openssl.h +++ b/include/picotls/openssl.h @@ -61,7 +61,7 @@ extern ptls_key_exchange_algorithm_t ptls_openssl_secp521r1; #ifdef EVP_PKEY_ED25519 #define PTLS_OPENSSL_HAVE_ED25519 1 #endif -#if defined(NID_X25519) && !defined(LIBRESSL_VERSION_NUMBER) +#if defined(NID_X25519) #define PTLS_OPENSSL_HAVE_X25519 1 #define PTLS_OPENSSL_HAS_X25519 1 /* deprecated; use HAVE_ */ extern ptls_key_exchange_algorithm_t ptls_openssl_x25519;