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:
Stefan Eissing 2025-11-27 13:18:09 +01:00 committed by Daniel Stenberg
parent fd5a117a67
commit bbb929112b
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2
19 changed files with 33 additions and 30 deletions

View file

@ -1213,7 +1213,8 @@ static CURLcode oldap_recv(struct Curl_easy *data, int sockindex, char *buf,
/* Binary value, encode to base64. */
if(bvals[i].bv_len)
result = curlx_base64_encode(bvals[i].bv_val, bvals[i].bv_len,
result = curlx_base64_encode((uint8_t *)bvals[i].bv_val,
bvals[i].bv_len,
&val_b64, &val_b64_sz);
if(!result)
result = client_write(data, STRCONST(": "), val_b64, val_b64_sz,