mirror of https://github.com/moparisthebest/curl
sasl: Fixed missing qop in the client's challenge-response message
Whilst the qop directive isn't required to be present in a client's response, as servers should assume a qop of "auth" if it isn't specified, some may return authentication failure if it is missing.
This commit is contained in:
parent
ba704878bd
commit
8342b6e1dc
|
@ -533,9 +533,11 @@ CURLcode Curl_sasl_create_digest_md5_message(struct SessionHandle *data,
|
||||||
|
|
||||||
/* Generate the response */
|
/* Generate the response */
|
||||||
response = aprintf("username=\"%s\",realm=\"%s\",nonce=\"%s\","
|
response = aprintf("username=\"%s\",realm=\"%s\",nonce=\"%s\","
|
||||||
"cnonce=\"%s\",nc=\"%s\",digest-uri=\"%s\",response=%s",
|
"cnonce=\"%s\",nc=\"%s\",digest-uri=\"%s\",response=%s,"
|
||||||
|
"qop=%s",
|
||||||
userp, realm, nonce,
|
userp, realm, nonce,
|
||||||
cnonce, nonceCount, uri, resp_hash_hex);
|
cnonce, nonceCount, uri, resp_hash_hex,
|
||||||
|
qop);
|
||||||
if(!response)
|
if(!response)
|
||||||
return CURLE_OUT_OF_MEMORY;
|
return CURLE_OUT_OF_MEMORY;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue