aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/curl_sasl_sspi.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/lib/curl_sasl_sspi.c b/lib/curl_sasl_sspi.c
index fc8c6f86b..a65f95576 100644
--- a/lib/curl_sasl_sspi.c
+++ b/lib/curl_sasl_sspi.c
@@ -288,10 +288,15 @@ CURLcode Curl_sasl_create_digest_md5_message(struct SessionHandle *data,
CURLcode Curl_sasl_decode_digest_http_message(const char *chlg,
struct digestdata *digest)
{
- (void) chlg;
- (void) digest;
+ /* Clean up any former leftovers and initialise to defaults */
+ Curl_sasl_digest_cleanup(digest);
- return CURLE_NOT_BUILT_IN;
+ /* Simply store the challenge for use later */
+ digest->input_token = (BYTE *) strdup(chlg);
+ if(!digest->input_token)
+ return CURLE_OUT_OF_MEMORY;
+
+ return CURLE_OK;
}
/*