aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2019-08-19 23:04:45 +0200
committerDaniel Stenberg <daniel@haxx.se>2019-08-20 08:52:22 +0200
commit1a0dc6f6a31fe0c7dd83af9f6f4531b37cdd72a5 (patch)
tree072a3f338a265f4c2537c307c792e0dc0a815828
parent349c3f5a0820948eacd12b1b9b93a1aadcdd3ada (diff)
ngtcp2: use ngtcp2_version() to get the run-time version
... which of course doesn't have to be the same used at build-time. Function just recently merged in ngtcp2.
-rw-r--r--lib/vquic/ngtcp2.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/vquic/ngtcp2.c b/lib/vquic/ngtcp2.c
index bd24df35d..9a1fd1690 100644
--- a/lib/vquic/ngtcp2.c
+++ b/lib/vquic/ngtcp2.c
@@ -1149,8 +1149,9 @@ CURLcode Curl_quic_connect(struct connectdata *conn,
*/
int Curl_quic_ver(char *p, size_t len)
{
+ ngtcp2_info *ng2 = ngtcp2_version(0);
return msnprintf(p, len, " ngtcp2/%s nghttp3/%s",
- NGTCP2_VERSION, NGHTTP3_VERSION);
+ ng2->version_str, NGHTTP3_VERSION);
}
static int ng_getsock(struct connectdata *conn, curl_socket_t *socks)