summaryrefslogtreecommitdiffstats
path: root/net/base
diff options
context:
space:
mode:
authoragl@chromium.org <agl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-11-08 15:21:02 +0000
committeragl@chromium.org <agl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-11-08 15:21:02 +0000
commit1dc82a0a41a4b88f59fc2ad8a3908ae7ce39ef95 (patch)
treea1a3dbb6d51701b315c22bdf518fe4cf7e429592 /net/base
parentac99c6dec82d38a43aa8958dcd1f2a908771aaca (diff)
downloadchromium_src-1dc82a0a41a4b88f59fc2ad8a3908ae7ce39ef95.zip
chromium_src-1dc82a0a41a4b88f59fc2ad8a3908ae7ce39ef95.tar.gz
chromium_src-1dc82a0a41a4b88f59fc2ad8a3908ae7ce39ef95.tar.bz2
net: add neg9.org to the HSTS Preloaded list.
Requested by Ian Gallagher. BUG=none TEST=net_unittests git-svn-id: svn://svn.chromium.org/chrome/trunk/src@65375 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/base')
-rw-r--r--net/base/transport_security_state.cc1
-rw-r--r--net/base/transport_security_state_unittest.cc3
2 files changed, 4 insertions, 0 deletions
diff --git a/net/base/transport_security_state.cc b/net/base/transport_security_state.cc
index dc87c10..3014e21 100644
--- a/net/base/transport_security_state.cc
+++ b/net/base/transport_security_state.cc
@@ -410,6 +410,7 @@ bool TransportSecurityState::IsPreloadedSTS(
{12, true, "\006jottit\003com"},
{19, true, "\015sunshinepress\003org"},
{21, false, "\003www\013noisebridge\003net"},
+ {10, false, "\004neg9\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 c4a173c..2a06501 100644
--- a/net/base/transport_security_state_unittest.cc
+++ b/net/base/transport_security_state_unittest.cc
@@ -342,6 +342,9 @@ TEST_F(TransportSecurityStateTest, Preloaded) {
EXPECT_TRUE(state->IsEnabledForHost(&domain_state, "www.noisebridge.net"));
EXPECT_FALSE(state->IsEnabledForHost(&domain_state, "noisebridge.net"));
EXPECT_FALSE(state->IsEnabledForHost(&domain_state, "foo.noisebridge.net"));
+
+ EXPECT_TRUE(state->IsEnabledForHost(&domain_state, "neg9.org"));
+ EXPECT_FALSE(state->IsEnabledForHost(&domain_state, "www.neg9.org"));
}
TEST_F(TransportSecurityStateTest, LongNames) {