aboutsummaryrefslogtreecommitdiff
path: root/lib/curl_sasl.c
diff options
context:
space:
mode:
authorSteve Holme <steve_holme@hotmail.com>2014-11-05 17:56:47 +0000
committerSteve Holme <steve_holme@hotmail.com>2014-11-05 17:58:07 +0000
commit259f4f3d01f42ef4744318daa9e0c1fbbf8123b5 (patch)
treeafc5fdc6a9d167e87dae9e9cfd9827406f4a9ee6 /lib/curl_sasl.c
parentf697d7fdd5bc977fbd030d2fcd3573a5ffae940c (diff)
sasl: Fixed HTTP digest challenges with spaces between auth parameters
Broken as part of the rework, in commit 7e6d51a73c, to assist with the addition of HTTP digest via Windows SSPI.
Diffstat (limited to 'lib/curl_sasl.c')
-rw-r--r--lib/curl_sasl.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/curl_sasl.c b/lib/curl_sasl.c
index fd2585e3d..5ef7151da 100644
--- a/lib/curl_sasl.c
+++ b/lib/curl_sasl.c
@@ -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")) {