[WK2][Soup] Implement NetworkProcess::allowSpecificHTTPSCertificateForHost
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 11 Dec 2013 10:00:59 +0000 (10:00 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 11 Dec 2013 10:00:59 +0000 (10:00 +0000)
https://bugs.webkit.org/show_bug.cgi?id=125557

Patch by Kwang Yul Seo <skyul@company100.net> on 2013-12-11
Reviewed by Carlos Garcia Campos.

Do what WebProcess::allowSpecificHTTPSCertificateForHost does.

* NetworkProcess/soup/NetworkProcessSoup.cpp:
(WebKit::NetworkProcess::allowSpecificHTTPSCertificateForHost):

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

Source/WebKit2/ChangeLog
Source/WebKit2/NetworkProcess/soup/NetworkProcessSoup.cpp

index f54c2988c441cb25d9940e9a7e0b5008e4bfefd6..89ed792552f2d7f027f91ce513738cf5ec9e7581 100644 (file)
@@ -1,3 +1,15 @@
+2013-12-11  Kwang Yul Seo  <skyul@company100.net>
+
+        [WK2][Soup] Implement NetworkProcess::allowSpecificHTTPSCertificateForHost
+        https://bugs.webkit.org/show_bug.cgi?id=125557
+
+        Reviewed by Carlos Garcia Campos.
+
+        Do what WebProcess::allowSpecificHTTPSCertificateForHost does.
+
+        * NetworkProcess/soup/NetworkProcessSoup.cpp:
+        (WebKit::NetworkProcess::allowSpecificHTTPSCertificateForHost):
+
 2013-12-10  Mark Rowe  <mrowe@apple.com>
 
         <http://webkit.org/b/125556> WebKit doesn't deal with longer bundle versions correctly
index 2e7843f10ce57aa8cff1ccd8c3832ef794432468..fb1f6742e187bd9f9af66d4743e4f2f26bea6933 100644 (file)
@@ -28,6 +28,7 @@
 #if ENABLE(NETWORK_PROCESS)
 #include "NetworkProcess.h"
 
+#include "CertificateInfo.h"
 #include "NetworkProcessCreationParameters.h"
 #include "ResourceCachesToClear.h"
 #include <WebCore/FileSystem.h>
@@ -111,9 +112,9 @@ void NetworkProcess::setIgnoreTLSErrors(bool ignoreTLSErrors)
     ResourceHandle::setIgnoreSSLErrors(ignoreTLSErrors);
 }
 
-void NetworkProcess::allowSpecificHTTPSCertificateForHost(const CertificateInfo&, const String&)
+void NetworkProcess::allowSpecificHTTPSCertificateForHost(const CertificateInfo& certificateInfo, const String& host)
 {
-    notImplemented();
+    WebCore::ResourceHandle::setClientCertificate(host, certificateInfo.certificate());
 }
 
 void NetworkProcess::clearCacheForAllOrigins(uint32_t cachesToClear)