mirror of
https://github.com/curl/curl.git
synced 2026-04-14 22:31: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
|
|
@ -626,7 +626,8 @@ static CURLcode ldap_do(struct Curl_easy *data, bool *done)
|
|||
curl_strequal(";binary", attr + (attr_len - 7)) ) {
|
||||
/* Binary attribute, encode to base64. */
|
||||
if(vals[i]->bv_len) {
|
||||
result = curlx_base64_encode(vals[i]->bv_val, vals[i]->bv_len,
|
||||
result = curlx_base64_encode((uint8_t *)vals[i]->bv_val,
|
||||
vals[i]->bv_len,
|
||||
&val_b64, &val_b64_sz);
|
||||
if(result) {
|
||||
ldap_value_free_len(vals);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue