diff options
author | Dan Winship <danw@gnome.org> | 2010-06-07 17:03:19 -0400 |
---|---|---|
committer | Dan Winship <danw@gnome.org> | 2010-12-09 12:04:51 +0100 |
commit | 815066543f0b34cffacac60c46e22dd6705dc76d (patch) | |
tree | 823c81a3e68ec5e939f562f3130f6c60ea5479e8 /tests/ntlm-test.c | |
parent | f4fed344602d061fed46c64a037feb1403982f28 (diff) | |
download | libsoup-815066543f0b34cffacac60c46e22dd6705dc76d.tar.gz libsoup-815066543f0b34cffacac60c46e22dd6705dc76d.tar.bz2 libsoup-815066543f0b34cffacac60c46e22dd6705dc76d.zip |
SoupSession, SoupAuthManagerNTLM: Use subfeatures for NTLM auth too
Deprecate SoupSession:use-ntlm in favor of using
soup_session_add_feature_by_type() with SOUP_TYPE_AUTH_NTLM.
Diffstat (limited to 'tests/ntlm-test.c')
-rw-r--r-- | tests/ntlm-test.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/ntlm-test.c b/tests/ntlm-test.c index 3c555ee6..cd74b15f 100644 --- a/tests/ntlm-test.c +++ b/tests/ntlm-test.c @@ -338,10 +338,10 @@ do_ntlm_round (SoupURI *base_uri, gboolean use_ntlm, const char *user) g_return_if_fail (use_ntlm || !alice); - session = soup_test_session_new ( - SOUP_TYPE_SESSION_ASYNC, - SOUP_SESSION_USE_NTLM, use_ntlm, - NULL); + session = soup_test_session_new (SOUP_TYPE_SESSION_ASYNC, NULL); + if (use_ntlm) + soup_session_add_feature_by_type (session, SOUP_TYPE_AUTH_NTLM); + if (user) { g_signal_connect (session, "authenticate", G_CALLBACK (authenticate), (char *)user); |