mirror of
https://github.com/curl/curl.git
synced 2026-08-25 13:53:37 +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
|
|
@ -710,7 +710,7 @@ static CURLcode auth_create_digest_http_message(
|
|||
if(result)
|
||||
return result;
|
||||
|
||||
result = curlx_base64_encode(cnoncebuf, sizeof(cnoncebuf),
|
||||
result = curlx_base64_encode((uint8_t *)cnoncebuf, sizeof(cnoncebuf),
|
||||
&cnonce, &cnonce_sz);
|
||||
if(result)
|
||||
return result;
|
||||
|
|
|
|||
|
|
@ -301,7 +301,7 @@ CURLcode Curl_auth_create_spnego_message(struct negotiatedata *nego,
|
|||
char **outptr, size_t *outlen)
|
||||
{
|
||||
/* Base64 encode the already generated response */
|
||||
CURLcode result = curlx_base64_encode((const char *)nego->output_token,
|
||||
CURLcode result = curlx_base64_encode(nego->output_token,
|
||||
nego->output_token_length, outptr,
|
||||
outlen);
|
||||
if(!result && (!*outptr || !*outlen)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue