mirror of
https://github.com/curl/curl.git
synced 2026-08-25 12:23:44 +03:00
Andrew Wansink provided an NTLM bugfix: in the case the server sets the flag
NTLMFLAG_NEGOTIATE_UNICODE, we need to filter it off because libcurl doesn't unicode encode the strings it packs into the NTLM authenticate packet.
This commit is contained in:
parent
5cdcc2b3aa
commit
2f8f12e82e
3 changed files with 16 additions and 2 deletions
|
|
@ -917,6 +917,13 @@ CURLcode Curl_output_ntlm(struct connectdata *conn,
|
|||
useroff = domoff + domlen;
|
||||
hostoff = useroff + userlen;
|
||||
|
||||
/*
|
||||
* In the case the server sets the flag NTLMFLAG_NEGOTIATE_UNICODE, we
|
||||
* need to filter it off because libcurl doesn't UNICODE encode the
|
||||
* strings it packs into the NTLM authenticate packet.
|
||||
*/
|
||||
ntlm->flags &= ~NTLMFLAG_NEGOTIATE_UNICODE;
|
||||
|
||||
/* Create the big type-3 message binary blob */
|
||||
size = snprintf((char *)ntlmbuf, sizeof(ntlmbuf),
|
||||
NTLMSSP_SIGNATURE "%c"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue