summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
Diffstat (limited to 'net')
-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 4f91091..6ee85d4 100644
--- a/net/base/transport_security_state.cc
+++ b/net/base/transport_security_state.cc
@@ -477,6 +477,7 @@ bool TransportSecurityState::IsPreloadedSTS(
{20, true, "\006market\007android\003com"},
{14, false, "\010lastpass\003com"},
{18, false, "\003www\010lastpass\003com"},
+ {14, true, "\010keyerror\003com"},
};
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 f703ab5..6ec34ad 100644
--- a/net/base/transport_security_state_unittest.cc
+++ b/net/base/transport_security_state_unittest.cc
@@ -410,6 +410,9 @@ TEST_F(TransportSecurityStateTest, Preloaded) {
EXPECT_TRUE(state->IsEnabledForHost(&domain_state, "lastpass.com"));
EXPECT_TRUE(state->IsEnabledForHost(&domain_state, "www.lastpass.com"));
EXPECT_FALSE(state->IsEnabledForHost(&domain_state, "blog.lastpass.com"));
+
+ EXPECT_TRUE(state->IsEnabledForHost(&domain_state, "keyerror.com"));
+ EXPECT_TRUE(state->IsEnabledForHost(&domain_state, "www.keyerror.com"));
}
TEST_F(TransportSecurityStateTest, LongNames) {