Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(833)

Unified Diff: net/http/transport_security_state_static.h

Issue 45373002: net: add pinning for liberty.lavabit.com. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Reupload due to 500 error. Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/http/transport_security_state.cc ('k') | net/http/transport_security_state_static.certs » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/http/transport_security_state_static.h
diff --git a/net/http/transport_security_state_static.h b/net/http/transport_security_state_static.h
index be1f854b74bbbbf9288503ebb604bce1af2915b8..3bfc41bfc6cb9d70892b19b0179c49ade0ff5a6c 100644
--- a/net/http/transport_security_state_static.h
+++ b/net/http/transport_security_state_static.h
@@ -246,6 +246,10 @@ static const char kSPKIHash_CryptoCat1[] =
"\x4c\x87\xce\x85\x2c\xf4\xc0\x4d\x67\xa9"
"\xe0\xec\x51\x0c\x7f\x3b\x14\xb3\xe9\xc9";
+static const char kSPKIHash_Libertylavabitcom[] =
+ "\x41\xbb\x3b\x8b\xc7\xcf\x3d\x13\x3f\x17"
+ "\xb3\x25\x7e\xe4\x03\xca\x8a\x5c\x6d\x36";
+
// The following is static data describing the hosts that are hardcoded with
// certificate pins or HSTS information.
@@ -399,6 +403,15 @@ static const char* const kCryptoCatAcceptableCerts[] = {
kNoRejectedPublicKeys, \
}
+static const char* const kLavabitAcceptableCerts[] = {
+ kSPKIHash_Libertylavabitcom,
+ NULL,
+};
+#define kLavabitPins { \
+ kLavabitAcceptableCerts, \
+ kNoRejectedPublicKeys, \
+}
+
#define kNoPins {\
NULL, NULL, \
}
@@ -880,6 +893,7 @@ static const struct HSTSPreload kPreloadedSTS[] = {
{12, true, "\006cybozu\003com", true, kNoPins, DOMAIN_NOT_PINNED },
{17, true, "\013davidlyness\003com", true, kNoPins, DOMAIN_NOT_PINNED },
{12, true, "\006medium\003com", true, kNoPins, DOMAIN_NOT_PINNED },
+ {21, true, "\007liberty\007lavabit\003com", true, kLavabitPins, DOMAIN_LAVABIT_COM },
};
static const size_t kNumPreloadedSTS = ARRAYSIZE_UNSAFE(kPreloadedSTS);
« no previous file with comments | « net/http/transport_security_state.cc ('k') | net/http/transport_security_state_static.certs » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698