]> granicus.if.org Git - curl/commit
digest_sspi: Fix nonce-count generation in HTTP digest
authorMax Khon <fjoe@samodelkin.net>
Mon, 6 Feb 2017 17:40:51 +0000 (23:40 +0600)
committerJay Satiro <raysatiro@yahoo.com>
Mon, 20 Feb 2017 05:53:01 +0000 (00:53 -0500)
commitf77dabefd80b05173e602de94865b5cdffb3495e
treea5c37a704433f7787765b0d4bb20ee76e20ed4b7
parent889ca45ab896cc88b28bb9cc651f0bc1a8e54bc3
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
lib/vauth/digest_sspi.c
tests/data/Makefile.inc
tests/data/test1286 [new file with mode: 0644]