Commit 259f4f3d authored by Steve Holme's avatar Steve Holme
Browse files

sasl: Fixed HTTP digest challenges with spaces between auth parameters

Broken as part of the rework, in commit 7e6d51a7, to assist with the
addition of HTTP digest via Windows SSPI.
parent f697d7fd
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -746,6 +746,10 @@ CURLcode Curl_sasl_decode_digest_http_message(const char *chlg,
    char value[DIGEST_MAX_VALUE_LENGTH];
    char content[DIGEST_MAX_CONTENT_LENGTH];

    /* Pass all additional spaces here */
    while(*chlg && ISSPACE(*chlg))
      chlg++;

    /* Extract a value=content pair */
    if(!sasl_digest_get_pair(chlg, value, content, &chlg)) {
      if(Curl_raw_equal(value, "nonce")) {