2
0
mirror of https://github.com/curl/curl.git synced 2025-04-24 16:40:32 +08:00

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 
This commit is contained in:
Daniel Stenberg 2023-11-04 23:36:40 +01:00
parent 859e88f653
commit 86d4a4124e
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

@ -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)