mirror of
https://github.com/curl/curl.git
synced 2026-07-28 00:53:06 +03:00
lib: add a Curl_bufref_uptr() function and use it
Function Curl_bufref_ptr() now returns a const char *. New function Curl_bufref_uptr() returns a const unsigned char *. Usage and doc updated. Closes #19827
This commit is contained in:
parent
39d1976b7f
commit
f39b8a1174
13 changed files with 40 additions and 23 deletions
|
|
@ -69,7 +69,7 @@ CURLcode Curl_auth_create_cram_md5_message(const struct bufref *chlg,
|
|||
|
||||
/* Update the digest with the given challenge */
|
||||
if(Curl_bufref_len(chlg))
|
||||
Curl_HMAC_update(ctxt, Curl_bufref_ptr(chlg),
|
||||
Curl_HMAC_update(ctxt, Curl_bufref_uptr(chlg),
|
||||
curlx_uztoui(Curl_bufref_len(chlg)));
|
||||
|
||||
/* Finalise the digest */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue