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

Unified Diff: net/cert/cert_verify_proc_whitelist.cc

Issue 2784933002: Mitigate spoofing attempt using Latin letters. (Closed)
Patch Set: add similarity check unittests Created 3 years, 8 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/cert_verify_proc_whitelist.cc
diff --git a/net/cert/cert_verify_proc_whitelist.cc b/net/cert/cert_verify_proc_whitelist.cc
index 2ba4166d4d831d536fd4e682da876dc575fa0451..496a25e355ae9d49effb380842a1c09bc1b12ac6 100644
--- a/net/cert/cert_verify_proc_whitelist.cc
+++ b/net/cert/cert_verify_proc_whitelist.cc
@@ -6,7 +6,7 @@
#include <cstdlib>
-#include "net/base/lookup_string_in_fixed_set.h"
+#include "base/lookup_string_in_fixed_set.h"
#include "net/cert/x509_certificate.h"
namespace net {
@@ -116,14 +116,14 @@ bool IsWhitelistedHost(const unsigned char* graph,
size_t domain_length = end - start - 1;
if (domain_length == 0)
return false;
- if (LookupStringInFixedSet(graph, graph_length, domain_str,
- domain_length) != kDafsaNotFound) {
+ if (base::LookupStringInFixedSet(graph, graph_length, domain_str,
+ domain_length) != base::kDafsaNotFound) {
return true;
}
}
- return LookupStringInFixedSet(graph, graph_length, host.data(), end) !=
- kDafsaNotFound;
+ return base::LookupStringInFixedSet(graph, graph_length, host.data(), end) !=
+ base::kDafsaNotFound;
}
} // namespace net

Powered by Google App Engine
This is Rietveld 408576698