aboutsummaryrefslogtreecommitdiff
path: root/lib/http_ntlm.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2007-08-14 10:28:21 +0000
committerDaniel Stenberg <daniel@haxx.se>2007-08-14 10:28:21 +0000
commit2f8f12e82eb69922f1144f047f77083677f9f767 (patch)
treec9f679f4e6ffb3bf7a2ad56e063f3223116da027 /lib/http_ntlm.c
parent5cdcc2b3aad86e4d29c701e37a82386299541d0a (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/http_ntlm.c')
-rw-r--r--lib/http_ntlm.c7
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"