]> granicus.if.org Git - curl/commit
digest_sspi: Handle 'stale=TRUE' directive in HTTP digest
authorJay Satiro <raysatiro@yahoo.com>
Tue, 26 Jul 2016 05:46:23 +0000 (01:46 -0400)
committerJay Satiro <raysatiro@yahoo.com>
Tue, 21 Feb 2017 06:04:59 +0000 (01:04 -0500)
commitaf5fbb14bb4fd86cdc5bf2c9f1f2b3b5d8d2af66
tree06cc25f1951966802f96d248f0a4a78bd64dfda0
parentde1c1a8d8564e8d80ce384b19572228d87e7d8bc
digest_sspi: Handle 'stale=TRUE' directive in HTTP digest

- If the server has provided another challenge use it as the replacement
  input token if stale=TRUE. Otherwise previous credentials have failed
  so return CURLE_LOGIN_DENIED.

Prior to this change the stale directive was ignored and if another
challenge was received it would cause error CURLE_BAD_CONTENT_ENCODING.

Ref: https://tools.ietf.org/html/rfc2617#page-10

Bug: https://github.com/curl/curl/issues/928
Reported-by: tarek112@users.noreply.github.com
lib/vauth/digest_sspi.c