Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1095)

Unified Diff: net/cert/ct_log_verifier.cc

Issue 2108833005: Adds domain names for all qualified CT logs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Updates command-line documentation Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: net/cert/ct_log_verifier.cc
diff --git a/net/cert/ct_log_verifier.cc b/net/cert/ct_log_verifier.cc
index 45adabe4862c8e4cf661250e11ee0c1f69cd4fcb..0626baa9d3051745121188d632dfc6b3a1eca11b 100644
--- a/net/cert/ct_log_verifier.cc
+++ b/net/cert/ct_log_verifier.cc
@@ -58,20 +58,24 @@ const EVP_MD* GetEvpAlg(ct::DigitallySigned::HashAlgorithm alg) {
scoped_refptr<const CTLogVerifier> CTLogVerifier::Create(
const base::StringPiece& public_key,
const base::StringPiece& description,
- const base::StringPiece& url) {
+ const base::StringPiece& url,
+ const base::StringPiece& dns_domain) {
GURL log_url(url.as_string());
if (!log_url.is_valid())
return nullptr;
- scoped_refptr<CTLogVerifier> result(new CTLogVerifier(description, log_url));
+ scoped_refptr<CTLogVerifier> result(
+ new CTLogVerifier(description, log_url, dns_domain));
if (!result->Init(public_key))
return nullptr;
return result;
}
CTLogVerifier::CTLogVerifier(const base::StringPiece& description,
- const GURL& url)
+ const GURL& url,
+ const base::StringPiece& dns_domain)
: description_(description.as_string()),
url_(url),
+ dns_domain_(dns_domain.as_string()),
hash_algorithm_(ct::DigitallySigned::HASH_ALGO_NONE),
signature_algorithm_(ct::DigitallySigned::SIG_ALGO_ANONYMOUS),
public_key_(NULL) {

Powered by Google App Engine
This is Rietveld 408576698