[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [gnurl] 110/220: curl_version_info: offer quic (and h3) lib
From: |
gnunet |
Subject: |
[GNUnet-SVN] [gnurl] 110/220: curl_version_info: offer quic (and h3) library info |
Date: |
Thu, 12 Sep 2019 17:27:50 +0200 |
This is an automated email from the git hooks/post-receive script.
ng0 pushed a commit to branch master
in repository gnurl.
commit 1a2df1518ad8653f248e8e9de47f28448d2dc399
Author: Daniel Stenberg <address@hidden>
AuthorDate: Mon Aug 12 10:04:50 2019 +0200
curl_version_info: offer quic (and h3) library info
Closes #4216
---
docs/libcurl/curl_version_info.3 | 9 +++++++++
include/curl/curl.h | 3 ++-
lib/version.c | 11 ++++++++++-
3 files changed, 21 insertions(+), 2 deletions(-)
diff --git a/docs/libcurl/curl_version_info.3 b/docs/libcurl/curl_version_info.3
index 07cdf0c47..0c4006740 100644
--- a/docs/libcurl/curl_version_info.3
+++ b/docs/libcurl/curl_version_info.3
@@ -78,6 +78,15 @@ typedef struct {
(MAJOR << 24) | (MINOR << 12) | PATCH */
const char *brotli_version; /* human readable string. */
+ /* when 'age is CURLVERSION_SIXTH or alter (7.66.0 or later), these fields
+ also exist */
+ unsigned int nghttp2_ver_num; /* Numeric nghttp2 version
+ (MAJOR << 16) | (MINOR << 8) | PATCH */
+ const char *nghttp2_version; /* human readable string. */
+
+ char *quic_version; /* human readable quic (+ HTTP/3) library +
+ version or NULL */
+
} curl_version_info_data;
.fi
diff --git a/include/curl/curl.h b/include/curl/curl.h
index 9429355a9..9131f117d 100644
--- a/include/curl/curl.h
+++ b/include/curl/curl.h
@@ -2762,7 +2762,8 @@ typedef struct {
unsigned int nghttp2_ver_num; /* Numeric nghttp2 version
(MAJOR << 16) | (MINOR << 8) | PATCH */
const char *nghttp2_version; /* human readable string. */
-
+ char *quic_version; /* human readable quic (+ HTTP/3) library +
+ version or NULL */
} curl_version_info_data;
#define CURL_VERSION_IPV6 (1<<0) /* IPv6-enabled */
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;
--
To stop receiving notification emails like this one, please contact
address@hidden.
- [GNUnet-SVN] [gnurl] 81/220: curl: have -w's 'http_version' show '3' for HTTP/3, (continued)
- [GNUnet-SVN] [gnurl] 81/220: curl: have -w's 'http_version' show '3' for HTTP/3, gnunet, 2019/09/12
- [GNUnet-SVN] [gnurl] 118/220: nss: use TLSv1.3 as default if supported, gnunet, 2019/09/12
- [GNUnet-SVN] [gnurl] 100/220: ngtcp2: use ngtcp2_settings_default and specify initial_ts, gnunet, 2019/09/12
- [GNUnet-SVN] [gnurl] 101/220: ngtcp2: Send ALPN h3-22, gnunet, 2019/09/12
- [GNUnet-SVN] [gnurl] 92/220: RELEASE-NOTES: synced, gnunet, 2019/09/12
- [GNUnet-SVN] [gnurl] 97/220: HTTP3.md: Update quiche build instructions, gnunet, 2019/09/12
- [GNUnet-SVN] [gnurl] 96/220: CURLOPT_H3: removed, gnunet, 2019/09/12
- [GNUnet-SVN] [gnurl] 91/220: alt-svc: add protocol version selection masking, gnunet, 2019/09/12
- [GNUnet-SVN] [gnurl] 98/220: ngtcp2: make the QUIC handshake work, gnunet, 2019/09/12
- [GNUnet-SVN] [gnurl] 108/220: RELEASE-NOTES: synced, gnunet, 2019/09/12
- [GNUnet-SVN] [gnurl] 110/220: curl_version_info: offer quic (and h3) library info,
gnunet <=
- [GNUnet-SVN] [gnurl] 122/220: CURLOPT_ALTSVC.3: use a "" file name to not load from a file, gnunet, 2019/09/12
- [GNUnet-SVN] [gnurl] 113/220: docs/HTTP3: simplify quiche build instruction, gnunet, 2019/09/12
- [GNUnet-SVN] [gnurl] 116/220: curl_version_info.3: mentioned ALTSVC and HTTP3, gnunet, 2019/09/12
- [GNUnet-SVN] [gnurl] 121/220: vauth: Use CURLE_AUTH_ERROR for auth function errors, gnunet, 2019/09/12
- [GNUnet-SVN] [gnurl] 125/220: quiche: happy eyeballs, gnunet, 2019/09/12
- [GNUnet-SVN] [gnurl] 119/220: examples: add http3.c, altsvc.c and http3-present.c, gnunet, 2019/09/12
- [GNUnet-SVN] [gnurl] 127/220: multi: getsock improvements for QUIC connecting, gnunet, 2019/09/12
- [GNUnet-SVN] [gnurl] 86/220: docs/EXPERIMENTAL: explain what it means and what's experimental now, gnunet, 2019/09/12
- [GNUnet-SVN] [gnurl] 73/220: tests: Fix the line endings for the SASL alt-auth tests, gnunet, 2019/09/12
- [GNUnet-SVN] [gnurl] 84/220: curl: use CURLINFO_PROTOCOL to check for HTTP(s), gnunet, 2019/09/12