]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
openssl: identify the "quictls" backend correctly
authorDaniel Stenberg <daniel@haxx.se>
Sat, 4 Nov 2023 22:36:40 +0000 (23:36 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Sun, 5 Nov 2023 16:34:49 +0000 (17:34 +0100)
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

index c6407de7fd050fe123e19ebb14e60690b5d6f578..61b77f2bbf0ef6e20e34bf09b7143210bb3eb49a 100644 (file)
 #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)