]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
msh3: get msh3 version from MsH3Version
authorYusuke Nakamura <yusuke1994525@gmail.com>
Sat, 30 Apr 2022 08:51:22 +0000 (10:51 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Sat, 30 Apr 2022 08:51:22 +0000 (10:51 +0200)
Closes #8762

docs/HTTP3.md
lib/vquic/msh3.c

index d56c568aa6a981c5910b13c7fb4929dc88f4a617..f48fbd8b24805f66c456b4d140f8a43d412972da 100644 (file)
@@ -144,7 +144,7 @@ Build curl:
 
 Build msh3:
 
-     % git clone -b v0.3.0 --single-branch --recursive https://github.com/nibanks/msh3
+     % git clone --depth 1 --recursive https://github.com/nibanks/msh3
      % cd msh3 && mkdir build && cd build
      % cmake -G 'Unix Makefiles' -DCMAKE_BUILD_TYPE=RelWithDebInfo ..
      % cmake --build .
@@ -165,7 +165,7 @@ Run from `/usr/local/bin/curl`.
 
 Build msh3:
 
-     % git clone -b v0.3.0 --single-branch --recursive https://github.com/nibanks/msh3
+     % git clone --depth 1 --recursive https://github.com/nibanks/msh3
      % cd msh3 && mkdir build && cd build
      % cmake -G 'Visual Studio 17 2022' -DCMAKE_BUILD_TYPE=RelWithDebInfo ..
      % cmake --build . --config Release
index 798ba0b774478baa691448777d97c0103be50088..f7bd315be1bab005e9bf6d7072e73f34d94c14ba 100644 (file)
@@ -95,7 +95,9 @@ static const MSH3_REQUEST_IF msh3_request_if = {
 
 void Curl_quic_ver(char *p, size_t len)
 {
-  (void)msnprintf(p, len, "msh3/%s", "0.3.0");
+  uint32_t v[4];
+  MsH3Version(v);
+  (void)msnprintf(p, len, "msh3/%d.%d.%d.%d", v[0], v[1], v[2], v[3]);
 }
 
 CURLcode Curl_quic_connect(struct Curl_easy *data,