http_digest: Added SSPI based challenge decoding code

This commit is contained in:
Steve Holme 2014-11-06 11:42:49 +00:00
Родитель 21fa0d86b1
Коммит f0d3be29f2
1 изменённых файлов: 8 добавлений и 3 удалений

Просмотреть файл

@ -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;
}
/*