diff options
author | Daniel Stenberg <daniel@haxx.se> | 2007-08-14 10:28:21 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2007-08-14 10:28:21 +0000 |
commit | 2f8f12e82eb69922f1144f047f77083677f9f767 (patch) | |
tree | c9f679f4e6ffb3bf7a2ad56e063f3223116da027 /lib | |
parent | 5cdcc2b3aad86e4d29c701e37a82386299541d0a (diff) |
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.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/http_ntlm.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/http_ntlm.c b/lib/http_ntlm.c index 863ddf521..e50ace100 100644 --- a/lib/http_ntlm.c +++ b/lib/http_ntlm.c @@ -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" |