diff options
author | Dan Winship <danw@gnome.org> | 2011-10-20 17:27:34 -0400 |
---|---|---|
committer | Dan Winship <danw@gnome.org> | 2011-11-13 15:11:57 -0500 |
commit | 67824e6224409f77fa397a0d6bb2eab5e6cc8081 (patch) | |
tree | 4371fa42ed47e27bf9b8018858d9706d5fb26d5a /tests/ntlm-test.c | |
parent | d350aedcf06ae86de7b615e963d39cb699723230 (diff) | |
download | libsoup-67824e6224409f77fa397a0d6bb2eab5e6cc8081.tar.gz |
SoupAuthManagerNTLM: allow non-ASCII usernames/passwords
Switch to using the Unicode-encoded form of NTLM, so that non-ASCII
usernames/passwords will work.
Also, add a "-n" option to tests/get to make it use NTLM, and make
SoupAuthManagerNTLM allow passwords-in-URLs.
Based on a patch from Joachim Breitner, sponsored by ITOMIG GmbH and
the City of Böblingen.
https://bugzilla.gnome.org/show_bug.cgi?id=576838
Diffstat (limited to 'tests/ntlm-test.c')
-rw-r--r-- | tests/ntlm-test.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/ntlm-test.c b/tests/ntlm-test.c index cd74b15f..46ac46e6 100644 --- a/tests/ntlm-test.c +++ b/tests/ntlm-test.c @@ -41,7 +41,7 @@ typedef enum { #define NTLM_CHALLENGE "TlRMTVNTUAACAAAADAAMADAAAAABAoEAASNFZ4mrze8AAAAAAAAAAGIAYgA8AAAARABPAE0AQQBJAE4AAgAMAEQATwBNAEEASQBOAAEADABTAEUAUgBWAEUAUgAEABQAZABvAG0AYQBpAG4ALgBjAG8AbQADACIAcwBlAHIAdgBlAHIALgBkAG8AbQBhAGkAbgAuAGMAbwBtAAAAAAA=" -#define NTLM_RESPONSE_USER(response) ((response)[87] == 'h' ? NTLM_AUTHENTICATED_ALICE : NTLM_AUTHENTICATED_BOB) +#define NTLM_RESPONSE_USER(response) ((response)[102] == 'E' ? NTLM_AUTHENTICATED_ALICE : NTLM_AUTHENTICATED_BOB) static void clear_state (gpointer connections, GObject *ex_connection) |