From 1033acd92db83c3c87d071ef6debe9b1d0628b46 Mon Sep 17 00:00:00 2001 From: Steve Holme Date: Thu, 6 Nov 2014 10:23:08 +0000 Subject: http_digest: Added required SSPI based variables to digest structure --- lib/http_digest.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'lib/http_digest.c') diff --git a/lib/http_digest.c b/lib/http_digest.c index a75ca9d59..f52c8dd22 100644 --- a/lib/http_digest.c +++ b/lib/http_digest.c @@ -79,6 +79,7 @@ CURLcode Curl_output_digest(struct connectdata *conn, char *tmp; char *response; size_t len; + bool have_chlg; /* Point to the address of the pointer that holds the string to send to the server, which is for a plain host or for a HTTP proxy */ @@ -116,7 +117,13 @@ CURLcode Curl_output_digest(struct connectdata *conn, if(!passwdp) passwdp=""; - if(!d->nonce) { +#if defined(USE_WINDOWS_SSPI) + have_chlg = d->input_token ? TRUE : FALSE; +#else + have_chlg = d->nonce ? TRUE : FALSE; +#endif + + if(!have_chlg) { authp->done = FALSE; return CURLE_OK; } -- cgit v1.2.3