bool ArgumentCoder<ResourceError>::decodePlatformData(ArgumentDecoder& decoder, ResourceError& resourceError) { PlatformCertificateInfo certificateInfo; if (!decoder.decode(certificateInfo)) return false; resourceError.setCertificate(certificateInfo.certificate()); resourceError.setTLSErrors(certificateInfo.tlsErrors()); return true; }
void WebProcess::allowSpecificHTTPSCertificateForHost(const PlatformCertificateInfo& certificateInfo, const String& host) { WebCore::ResourceHandle::setClientCertificate(host, certificateInfo.certificate()); }