summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authoragl@chromium.org <agl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-12-21 16:03:24 +0000
committeragl@chromium.org <agl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-12-21 16:03:24 +0000
commit1669bebbef6fbcea0333ca5ed0303f1663093512 (patch)
tree4b5df9981a6eed40626c70fbccc77a0fc6e0e4ed /net
parentad56b506976c2e82111f16e31112fd0916dc44f0 (diff)
downloadchromium_src-1669bebbef6fbcea0333ca5ed0303f1663093512.zip
chromium_src-1669bebbef6fbcea0333ca5ed0303f1663093512.tar.gz
chromium_src-1669bebbef6fbcea0333ca5ed0303f1663093512.tar.bz2
net: add mayfirst.org to HSTS preloaded.
Requested by: Jamie McClelland BUG=none TEST=net_unittests git-svn-id: svn://svn.chromium.org/chrome/trunk/src@69833 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net')
-rw-r--r--net/base/transport_security_state.cc3
-rw-r--r--net/base/transport_security_state_unittest.cc5
2 files changed, 8 insertions, 0 deletions
diff --git a/net/base/transport_security_state.cc b/net/base/transport_security_state.cc
index 3e2d866..345aa69 100644
--- a/net/base/transport_security_state.cc
+++ b/net/base/transport_security_state.cc
@@ -431,6 +431,9 @@ bool TransportSecurityState::IsPreloadedSTS(
{10, false, "\004neg9\003org"},
{12, true, "\006riseup\003net"},
{11, false, "\006factor\002cc"},
+ {22, false, "\007members\010mayfirst\003org"},
+ {22, false, "\007support\010mayfirst\003org"},
+ {17, false, "\002id\010mayfirst\003org"},
};
static const size_t kNumPreloadedSTS = ARRAYSIZE_UNSAFE(kPreloadedSTS);
diff --git a/net/base/transport_security_state_unittest.cc b/net/base/transport_security_state_unittest.cc
index ac865e8..af4d422 100644
--- a/net/base/transport_security_state_unittest.cc
+++ b/net/base/transport_security_state_unittest.cc
@@ -360,6 +360,11 @@ TEST_F(TransportSecurityStateTest, Preloaded) {
EXPECT_TRUE(state->IsEnabledForHost(&domain_state, "factor.cc"));
EXPECT_FALSE(state->IsEnabledForHost(&domain_state, "www.factor.cc"));
+
+ EXPECT_TRUE(state->IsEnabledForHost(&domain_state, "members.mayfirst.org"));
+ EXPECT_TRUE(state->IsEnabledForHost(&domain_state, "support.mayfirst.org"));
+ EXPECT_TRUE(state->IsEnabledForHost(&domain_state, "id.mayfirst.org"));
+ EXPECT_FALSE(state->IsEnabledForHost(&domain_state, "www.mayfirst.org"));
}
TEST_F(TransportSecurityStateTest, LongNames) {