summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2019-08-12 10:04:50 +0200
committerDaniel Stenberg <daniel@haxx.se>2019-08-12 13:37:08 +0200
commit1a2df1518ad8653f248e8e9de47f28448d2dc399 (patch)
tree4e0a2ede1693337571baaaaf014e4d70ee0ec6f8 /lib
parent551806255fb484eff52e36273dbd20c593e19542 (diff)
downloadcurl-1a2df1518ad8653f248e8e9de47f28448d2dc399.tar.gz
curl_version_info: offer quic (and h3) library info
Closes #4216
Diffstat (limited to 'lib')
-rw-r--r--lib/version.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/lib/version.c b/lib/version.c
index c1b5a1c51..5a969b943 100644
--- a/lib/version.c
+++ b/lib/version.c
@@ -395,7 +395,8 @@ static curl_version_info_data version_info = {
0, /* brotli_ver_num */
NULL, /* brotli version */
0, /* nghttp2 version number */
- NULL /* nghttp2 version string */
+ NULL, /* nghttp2 version string */
+ NULL /* quic library string */
};
curl_version_info_data *curl_version_info(CURLversion stamp)
@@ -479,6 +480,14 @@ curl_version_info_data *curl_version_info(CURLversion stamp)
}
#endif
+#ifdef ENABLE_QUIC
+ {
+ static char quicbuffer[80];
+ Curl_quic_ver(quicbuffer, sizeof(quicbuffer));
+ version_info.quic_version = quicbuffer;
+ }
+#endif
+
(void)stamp; /* avoid compiler warnings, we don't use this */
initialized = true;