From 86d4a4124e275f355320d51b0039931842a22a67 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Sat, 4 Nov 2023 23:36:40 +0100 Subject: [PATCH] openssl: identify the "quictls" backend correctly Since vanilla OpenSSL does not support the QUIC API I think it helps users to identify the correct OpenSSL fork in version output. The best (crude) way to do that right now seems to be to check if ngtcp2 support is enabled. Closes #12270 --- lib/vtls/openssl.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/vtls/openssl.c b/lib/vtls/openssl.c index c6407de7fd..61b77f2bbf 100644 --- a/lib/vtls/openssl.c +++ b/lib/vtls/openssl.c @@ -240,7 +240,11 @@ #elif defined(OPENSSL_IS_AWSLC) #define OSSL_PACKAGE "AWS-LC" #else -#define OSSL_PACKAGE "OpenSSL" +# if defined(USE_NGTCP2) && defined(USE_NGHTTP3) +# define OSSL_PACKAGE "quictls" +# else +# define OSSL_PACKAGE "OpenSSL" +#endif #endif #if (OPENSSL_VERSION_NUMBER >= 0x10100000L) -- 2.47.3