Enable GSS-Negotiate support in libsoup
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 14 Mar 2016 15:13:48 +0000 (15:13 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 14 Mar 2016 15:13:48 +0000 (15:13 +0000)
https://bugs.webkit.org/show_bug.cgi?id=155354

Patch by Tomas Popela <tpopela@redhat.com> on 2016-03-14
Reviewed by Carlos Garcia Campos.

Enable the SOUP_TYPE_AUTH_NEGOTIATE feature if libsoup was compiled
with the GSS-Negotiate support.

* platform/network/soup/SoupNetworkSession.cpp:
(WebCore::SoupNetworkSession::SoupNetworkSession):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@198127 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebCore/ChangeLog
Source/WebCore/platform/network/soup/SoupNetworkSession.cpp

index 6996bfe..56b8685 100644 (file)
@@ -1,3 +1,16 @@
+2016-03-14  Tomas Popela  <tpopela@redhat.com>
+
+        Enable GSS-Negotiate support in libsoup
+        https://bugs.webkit.org/show_bug.cgi?id=155354
+
+        Reviewed by Carlos Garcia Campos.
+
+        Enable the SOUP_TYPE_AUTH_NEGOTIATE feature if libsoup was compiled
+        with the GSS-Negotiate support.
+
+        * platform/network/soup/SoupNetworkSession.cpp:
+        (WebCore::SoupNetworkSession::SoupNetworkSession):
+
 2016-03-14  Ryosuke Niwa  <rniwa@webkit.org>
 
         Add slotchange event
index 8c684fa..7686578 100644 (file)
@@ -110,6 +110,14 @@ SoupNetworkSession::SoupNetworkSession(SoupCookieJar* cookieJar)
         SOUP_SESSION_USE_THREAD_CONTEXT, TRUE,
         nullptr);
 
+#if SOUP_CHECK_VERSION(2, 53, 92)
+    if (soup_auth_negotiate_supported()) {
+        g_object_set(m_soupSession.get(),
+            SOUP_SESSION_ADD_FEATURE_BY_TYPE, SOUP_TYPE_AUTH_NEGOTIATE,
+            nullptr);
+    }
+#endif
+
     setupLogger();
 
     g_signal_connect(m_soupSession.get(), "authenticate", G_CALLBACK(authenticateCallback), nullptr);