msh3: get msh3 version from MsH3Version

Closes #8762
This commit is contained in:
Yusuke Nakamura 2022-04-30 10:51:22 +02:00 committed by Daniel Stenberg
parent 279dfb620b
commit 2e2767a378
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2
2 changed files with 5 additions and 3 deletions

View 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

View 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,