Add verifiers for known logs

This commit is contained in:
Kevin Sawicki 2016-09-21 09:48:17 -07:00
parent d435df77f8
commit 39a69467ed

View file

@ -22,6 +22,8 @@
#include "content/public/common/content_switches.h"
#include "net/base/host_mapping_rules.h"
#include "net/cert/cert_verifier.h"
#include "net/cert/ct_known_logs.h"
#include "net/cert/ct_log_verifier.h"
#include "net/cert/ct_policy_enforcer.h"
#include "net/cert/multi_log_ct_verifier.h"
#include "net/cookies/cookie_monster.h"
@ -276,7 +278,9 @@ net::URLRequestContext* URLRequestContextGetter::GetURLRequestContext() {
new net::HttpServerPropertiesImpl);
storage_->set_http_server_properties(std::move(server_properties));
cert_transparency_verifier_.reset(new net::MultiLogCTVerifier());
auto multi_log_ct_verifier = new net::MultiLogCTVerifier();
multi_log_ct_verifier->AddLogs(net::ct::CreateLogVerifiersForKnownLogs());
cert_transparency_verifier_.reset(multi_log_ct_verifier);
ct_policy_enforcer_.reset(new net::CTPolicyEnforcer());
net::HttpNetworkSession::Params network_session_params;