Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
http_negotiate_sspi: Fixed endless unauthorized loop in commit 6bc7619
If the server rejects our authentication attempt and curl hasn't called CompleteAuthToken() then the status variable will be SEC_I_CONTINUE_NEEDED and not SEC_E_OK. As such the existing detection mechanism for determining whether or not the authentication process has finished is not sufficient. However, the WWW-Authenticate: Negotiate header line will not contain any data when the server has exhausted the negotiation, so we can use that coupled with the already allocated context pointer.
- Loading branch information