From f77dabefd80b05173e602de94865b5cdffb3495e Mon Sep 17 00:00:00 2001 From: Max Khon Date: Mon, 6 Feb 2017 23:40:51 +0600 Subject: digest_sspi: Fix nonce-count generation in HTTP digest - on the first invocation: keep security context returned by InitializeSecurityContext() - on subsequent invocations: use MakeSignature() instead of InitializeSecurityContext() to generate HTTP digest response Bug: https://github.com/curl/curl/issues/870 Reported-by: Andreas Roth Closes https://github.com/curl/curl/pull/1251 --- lib/urldata.h | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/urldata.h') diff --git a/lib/urldata.h b/lib/urldata.h index c17e42cc0..648b3e81d 100644 --- a/lib/urldata.h +++ b/lib/urldata.h @@ -408,6 +408,7 @@ struct digestdata { #if defined(USE_WINDOWS_SSPI) BYTE *input_token; size_t input_token_len; + CtxtHandle *http_context; #else char *nonce; char *cnonce; -- cgit v1.2.3