Skip to content

Commit

Permalink
net: add crypto.is and simon.butcher.name to HSTS preloaded list.
Browse files Browse the repository at this point in the history
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@94091 0039d316-1c4b-4281-b951-d872f2087c98
  • Loading branch information
agl@chromium.org committed Jul 26, 2011
1 parent 53ac505 commit 2115d28
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
2 changes: 2 additions & 0 deletions net/base/transport_security_state.cc
Original file line number Diff line number Diff line change
Expand Up @@ -646,6 +646,8 @@ bool TransportSecurityState::IsPreloadedSTS(
{13, true, "\010uprotect\002it", true, 0 },
{14, false, "\010squareup\003com", true, 0 },
{9, true, "\004cert\002se", true, 0 },
{11, true, "\006crypto\002is", true, 0 },
{20, true, "\005simon\007butcher\004name", true, 0 },
#if defined(OS_CHROMEOS)
{13, false, "\007twitter\003com", true, 0 },
{17, false, "\003www\007twitter\003com", true, 0 },
Expand Down
14 changes: 14 additions & 0 deletions net/base/transport_security_state_unittest.cc
Original file line number Diff line number Diff line change
Expand Up @@ -621,6 +621,20 @@ TEST_F(TransportSecurityStateTest, Preloaded) {
EXPECT_TRUE(state->IsEnabledForHost(&domain_state,
"foo.cert.se",
false));

EXPECT_TRUE(state->IsEnabledForHost(&domain_state,
"crypto.is",
false));
EXPECT_TRUE(state->IsEnabledForHost(&domain_state,
"foo.crypto.is",
false));

EXPECT_TRUE(state->IsEnabledForHost(&domain_state,
"simon.butcher.name",
false));
EXPECT_TRUE(state->IsEnabledForHost(&domain_state,
"foo.simon.butcher.name",
false));
}

TEST_F(TransportSecurityStateTest, LongNames) {
Expand Down

0 comments on commit 2115d28

Please sign in to comment.