mirror of
https://github.com/curl/curl.git
synced 2026-04-14 22:21:41 +03:00
curlx_base64_encode: use uint8_t* for input
Change `inputbuff` parameter from `const char *` to `const uint8_t *` to reflect the binary nature of the input bytes. Half the code was casting unsigned char to signed already in calling. Closes #19722
This commit is contained in:
parent
fd5a117a67
commit
bbb929112b
19 changed files with 33 additions and 30 deletions
2
lib/ws.c
2
lib/ws.c
|
|
@ -1276,7 +1276,7 @@ CURLcode Curl_ws_request(struct Curl_easy *data, struct dynbuf *req)
|
|||
result = Curl_rand(data, rand, sizeof(rand));
|
||||
if(result)
|
||||
return result;
|
||||
result = curlx_base64_encode((char *)rand, sizeof(rand), &randstr, &randlen);
|
||||
result = curlx_base64_encode(rand, sizeof(rand), &randstr, &randlen);
|
||||
if(result)
|
||||
return result;
|
||||
DEBUGASSERT(randlen < sizeof(keyval));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue