mirror of
https://github.com/curl/curl.git
synced 2026-06-08 12:14:15 +03:00
GHA/windows: add MSVC wolfSSL job with test
Fix the file of wolfssl.c because of this warning/error: ``` curl\lib\vtls\wolfssl.c(1017,42): error C2220: the following warning is treated as an error [curl\bld\lib\libcurl_object.vcxproj] curl\lib\vtls\wolfssl.c(1017,42): warning C4267: 'function': conversion from 'size_t' to 'unsigned long', possible loss of data [curl\bld\lib\libcurl_object.vcxproj] ``` `size_t` in MSVC is different. Change it to `unsigned long` because `wolfSSL_ERR_error_string_n` last argument is defined as `unsigned long`. Closes #14193
This commit is contained in:
parent
09cdf7e531
commit
dfbdcb93ae
2 changed files with 9 additions and 1 deletions
|
|
@ -1009,7 +1009,8 @@ wolfssl_connect_step1(struct Curl_cfilter *cf, struct Curl_easy *data)
|
|||
}
|
||||
|
||||
|
||||
static char *wolfssl_strerror(unsigned long error, char *buf, size_t size)
|
||||
static char *wolfssl_strerror(unsigned long error, char *buf,
|
||||
unsigned long size)
|
||||
{
|
||||
DEBUGASSERT(size);
|
||||
*buf = '\0';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue