[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 f54c298..89ed792 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 2e7843f..fb1f674 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)