summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoragl@chromium.org <agl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-07-23 20:35:12 +0000
committeragl@chromium.org <agl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-07-23 20:35:12 +0000
commitf324cce9f59858e24b59258271d186f84c3f3f1a (patch)
tree6f9f81bcdb18caf5966d77742ca0c0187f2bc2e9
parenta63a99265292e792b1ba022b06d91dbbb9c235bc (diff)
downloadchromium_src-f324cce9f59858e24b59258271d186f84c3f3f1a.zip
chromium_src-f324cce9f59858e24b59258271d186f84c3f3f1a.tar.gz
chromium_src-f324cce9f59858e24b59258271d186f84c3f3f1a.tar.bz2
Add sunshinepress.org to the list of renegotiation extension required hosts.
(Requested by a representative of Wikileaks.) http://codereview.chromium.org/3054010/show git-svn-id: svn://svn.chromium.org/chrome/trunk/src@53508 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r--net/base/ssl_config_service.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/net/base/ssl_config_service.cc b/net/base/ssl_config_service.cc
index 06dc610..67ed45f 100644
--- a/net/base/ssl_config_service.cc
+++ b/net/base/ssl_config_service.cc
@@ -32,12 +32,14 @@ bool SSLConfigService::IsKnownStrictTLSServer(const std::string& hostname) {
//
// If this list starts growing, it'll need to be something more efficient
// than a linear list.
- static const char kStrictServers[][20] = {
+ static const char kStrictServers[][22] = {
"www.google.com",
"mail.google.com",
"www.gmail.com",
"docs.google.com",
"clients1.google.com",
+ "sunshinepress.org",
+ "www.sunshinepress.org",
// Removed until we update the XMPP servers with the renegotiation
// extension.
@@ -45,6 +47,7 @@ bool SSLConfigService::IsKnownStrictTLSServer(const std::string& hostname) {
};
for (size_t i = 0; i < arraysize(kStrictServers); i++) {
+ // Note that the hostname is normalised to lower-case by this point.
if (strcmp(hostname.c_str(), kStrictServers[i]) == 0)
return true;
}