From: Daniel Stenberg Date: Sat, 4 Nov 2023 22:36:40 +0000 (+0100) Subject: openssl: identify the "quictls" backend correctly X-Git-Tag: curl-8_5_0~138 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=86d4a4124e275f355320d;p=thirdparty%2Fcurl.git 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 --- 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)