diff options
author | toughengineer <paul.skeptic@yandex.ru> | 2017-07-08 02:10:08 +0200 |
---|---|---|
committer | Marcel Raad <Marcel.Raad@teamviewer.com> | 2018-04-16 20:43:21 +0200 |
commit | bc4b8c9717c8972acf1f8d6383b127b5c8ef3e72 (patch) | |
tree | 2fd661d5a829e90e76c47727c235ccf9a4d76c0e /lib/urldata.h | |
parent | 2d4c2152c9eb3dbdf943de46ed8fc11285f1b90b (diff) | |
download | curl-bc4b8c9717c8972acf1f8d6383b127b5c8ef3e72.tar.gz |
ntlm_sspi: fix authentication using Credential Manager
If you pass empty user/pass asking curl to use Windows Credential
Storage (as stated in the docs) and it has valid credentials for the
domain, e.g.
curl -v -u : --ntlm example.com
currently authentication fails.
This change fixes it by providing proper SPN string to the SSPI API
calls.
Fixes https://github.com/curl/curl/issues/1622
Closes https://github.com/curl/curl/pull/1660
Diffstat (limited to 'lib/urldata.h')
-rw-r--r-- | lib/urldata.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/urldata.h b/lib/urldata.h index 196aa6395..d439dc3d6 100644 --- a/lib/urldata.h +++ b/lib/urldata.h @@ -328,6 +328,7 @@ struct ntlmdata { BYTE *output_token; BYTE *input_token; size_t input_token_len; + TCHAR *spn; #else unsigned int flags; unsigned char nonce[8]; |