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

Side by Side Diff: net/http/transport_security_state_static.h

Issue 359803002: net: add HSTS and pinning for Dropbox. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: ... Created 6 years, 5 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // This file is automatically generated by transport_security_state_static_gener ate.go 5 // This file is automatically generated by transport_security_state_static_gener ate.go
6 6
7 #ifndef NET_HTTP_TRANSPORT_SECURITY_STATE_STATIC_H_ 7 #ifndef NET_HTTP_TRANSPORT_SECURITY_STATE_STATIC_H_
8 #define NET_HTTP_TRANSPORT_SECURITY_STATE_STATIC_H_ 8 #define NET_HTTP_TRANSPORT_SECURITY_STATE_STATIC_H_
9 9
10 // These are SubjectPublicKeyInfo hashes for public key pinning. The 10 // These are SubjectPublicKeyInfo hashes for public key pinning. The
(...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after
219 "\x15\x67\xe7\xf2\xab\xaf\xd6\x2b\x67\x75"; 219 "\x15\x67\xe7\xf2\xab\xaf\xd6\x2b\x67\x75";
220 220
221 static const char kSPKIHash_GlobalSignRootCA_R2[] = 221 static const char kSPKIHash_GlobalSignRootCA_R2[] =
222 "\xa5\x06\x8a\x78\xcf\x84\xbd\x74\x32\xdd" 222 "\xa5\x06\x8a\x78\xcf\x84\xbd\x74\x32\xdd"
223 "\x58\xf9\x65\xeb\x3a\x55\xe7\xc7\x80\xdc"; 223 "\x58\xf9\x65\xeb\x3a\x55\xe7\xc7\x80\xdc";
224 224
225 static const char kSPKIHash_GlobalSignRootCA_R3[] = 225 static const char kSPKIHash_GlobalSignRootCA_R3[] =
226 "\xf7\x93\x19\xef\xdf\xc1\xf5\x20\xfb\xac" 226 "\xf7\x93\x19\xef\xdf\xc1\xf5\x20\xfb\xac"
227 "\x85\x55\x2c\xf2\xd2\x8f\x5a\xb9\xca\x0b"; 227 "\x85\x55\x2c\xf2\xd2\x8f\x5a\xb9\xca\x0b";
228 228
229 static const char kSPKIHash_EntrustRootEC1[] =
230 "\x07\x23\x2d\x45\x65\x87\xb9\xd7\xb1\xd9"
231 "\x7d\xd1\xc5\xfb\x65\xc5\x89\xbf\x92\x96";
232
233 static const char kSPKIHash_TheGoDaddyGroupClass2[] =
234 "\xee\xe5\x9f\x1e\x2a\xa5\x44\xc3\xcb\x25"
235 "\x43\xa6\x9a\x5b\xd4\x6a\x25\xbc\xbb\x8e";
236
237 static const char kSPKIHash_GoDaddyRoot_G2[] =
238 "\x21\x0f\x2c\x89\xf7\xc4\xcd\x5d\x1b\x82"
239 "\x5e\x38\xd6\xc6\x59\x3b\xa6\x93\x75\xae";
240
241 static const char kSPKIHash_GoDaddySecure[] =
242 "\xba\x2e\xb5\xa8\x3e\x13\x23\xd9\x53\x4b"
243 "\x5e\x65\xbc\xe7\xa3\x13\x5d\xd0\xa9\x96";
244
245 static const char kSPKIHash_ThawtePremiumServer[] =
246 "\x5f\xf3\x24\x6c\x8f\x91\x24\xaf\x9b\x5f"
247 "\x3e\xb0\x34\x6a\xf4\x2d\x5c\xa8\x5d\xcc";
248
249 static const char kSPKIHash_ThawtePrimaryRootCA_G2[] =
250 "\x6a\x25\x23\x9d\x62\x75\xcd\x52\x21\x69"
251 "\x5c\x31\xe9\x89\xc4\xd5\x38\xb8\xc4\xea";
252
253 static const char kSPKIHash_ThawtePrimaryRootCA_G3[] =
254 "\xab\x76\x88\xf4\xe5\xe1\x38\xc9\xe9\x50"
255 "\x17\xcd\xcd\xb3\x18\x17\xb3\x3e\x8c\xf5";
256
257 static const char kSPKIHash_ThawtePrimaryRootCA[] =
258 "\x6c\xca\xbd\x7d\xb4\x7e\x94\xa5\x75\x99"
259 "\x01\xb6\xa7\xdf\xd4\x5d\x1c\x09\x1c\xcc";
260
229 // The following is static data describing the hosts that are hardcoded with 261 // The following is static data describing the hosts that are hardcoded with
230 // certificate pins or HSTS information. 262 // certificate pins or HSTS information.
231 263
232 // kNoRejectedPublicKeys is a placeholder for when no public keys are rejected. 264 // kNoRejectedPublicKeys is a placeholder for when no public keys are rejected.
233 static const char* const kNoRejectedPublicKeys[] = { 265 static const char* const kNoRejectedPublicKeys[] = {
234 NULL, 266 NULL,
235 }; 267 };
236 268
237 static const char* const kTestAcceptableCerts[] = { 269 static const char* const kTestAcceptableCerts[] = {
238 kSPKIHash_TestSPKI, 270 kSPKIHash_TestSPKI,
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
369 401
370 static const char* const kLavabitAcceptableCerts[] = { 402 static const char* const kLavabitAcceptableCerts[] = {
371 kSPKIHash_Libertylavabitcom, 403 kSPKIHash_Libertylavabitcom,
372 NULL, 404 NULL,
373 }; 405 };
374 #define kLavabitPins { \ 406 #define kLavabitPins { \
375 kLavabitAcceptableCerts, \ 407 kLavabitAcceptableCerts, \
376 kNoRejectedPublicKeys, \ 408 kNoRejectedPublicKeys, \
377 } 409 }
378 410
411 static const char* const kDropboxAcceptableCerts[] = {
412 kSPKIHash_DigiCertAssuredIDRoot,
413 kSPKIHash_DigiCertGlobalRoot,
414 kSPKIHash_DigiCertEVRoot,
415 kSPKIHash_EntrustRootEC1,
416 kSPKIHash_Entrust_G2,
417 kSPKIHash_Entrust_EV,
418 kSPKIHash_Entrust_2048,
419 kSPKIHash_GeoTrustGlobal,
420 kSPKIHash_GeoTrustPrimary_G2,
421 kSPKIHash_GeoTrustPrimary_G3,
422 kSPKIHash_GeoTrustPrimary,
423 kSPKIHash_TheGoDaddyGroupClass2,
424 kSPKIHash_GoDaddyRoot_G2,
425 kSPKIHash_GoDaddySecure,
426 kSPKIHash_ThawtePremiumServer,
427 kSPKIHash_ThawtePrimaryRootCA_G2,
428 kSPKIHash_ThawtePrimaryRootCA_G3,
429 kSPKIHash_ThawtePrimaryRootCA,
430 NULL,
431 };
432 #define kDropboxPins { \
433 kDropboxAcceptableCerts, \
434 kNoRejectedPublicKeys, \
435 }
436
379 #define kNoPins {\ 437 #define kNoPins {\
380 NULL, NULL, \ 438 NULL, NULL, \
381 } 439 }
382 440
383 static const struct HSTSPreload kPreloadedSTS[] = { 441 static const struct HSTSPreload kPreloadedSTS[] = {
384 {25, true, "\013pinningtest\007appspot\003com", false, kTestPins, DOMAIN_APPSP OT_COM }, 442 {25, true, "\013pinningtest\007appspot\003com", false, kTestPins, DOMAIN_APPSP OT_COM },
385 {12, true, "\006google\003com", false, kGooglePins, DOMAIN_GOOGLE_COM }, 443 {12, true, "\006google\003com", false, kGooglePins, DOMAIN_GOOGLE_COM },
386 {19, true, "\006wallet\006google\003com", true, kGooglePins, DOMAIN_GOOGLE_COM }, 444 {19, true, "\006wallet\006google\003com", true, kGooglePins, DOMAIN_GOOGLE_COM },
387 {21, true, "\010checkout\006google\003com", true, kGooglePins, DOMAIN_GOOGLE_C OM }, 445 {21, true, "\010checkout\006google\003com", true, kGooglePins, DOMAIN_GOOGLE_C OM },
388 {19, true, "\006chrome\006google\003com", true, kGooglePins, DOMAIN_GOOGLE_COM }, 446 {19, true, "\006chrome\006google\003com", true, kGooglePins, DOMAIN_GOOGLE_COM },
(...skipping 596 matching lines...) Expand 10 before | Expand all | Expand 10 after
985 {21, false, "\017tinfoilsecurity\003com", true, kNoPins, DOMAIN_NOT_PINNED }, 1043 {21, false, "\017tinfoilsecurity\003com", true, kNoPins, DOMAIN_NOT_PINNED },
986 {25, false, "\003www\017tinfoilsecurity\003com", true, kNoPins, DOMAIN_NOT_PIN NED }, 1044 {25, false, "\003www\017tinfoilsecurity\003com", true, kNoPins, DOMAIN_NOT_PIN NED },
987 {11, false, "\006imouto\002my", true, kNoPins, DOMAIN_NOT_PINNED }, 1045 {11, false, "\006imouto\002my", true, kNoPins, DOMAIN_NOT_PINNED },
988 {13, true, "\010vocaloid\002my", true, kNoPins, DOMAIN_NOT_PINNED }, 1046 {13, true, "\010vocaloid\002my", true, kNoPins, DOMAIN_NOT_PINNED },
989 {17, true, "\006sakaki\005anime\002my", true, kNoPins, DOMAIN_NOT_PINNED }, 1047 {17, true, "\006sakaki\005anime\002my", true, kNoPins, DOMAIN_NOT_PINNED },
990 {18, true, "\007reviews\005anime\002my", true, kNoPins, DOMAIN_NOT_PINNED }, 1048 {18, true, "\007reviews\005anime\002my", true, kNoPins, DOMAIN_NOT_PINNED },
991 {17, true, "\004miku\007hatsune\002my", true, kNoPins, DOMAIN_NOT_PINNED }, 1049 {17, true, "\004miku\007hatsune\002my", true, kNoPins, DOMAIN_NOT_PINNED },
992 {19, true, "\012webcollect\003org\002uk", true, kNoPins, DOMAIN_NOT_PINNED }, 1050 {19, true, "\012webcollect\003org\002uk", true, kNoPins, DOMAIN_NOT_PINNED },
993 {24, false, "\003www\016capitainetrain\003com", true, kNoPins, DOMAIN_NOT_PINN ED }, 1051 {24, false, "\003www\016capitainetrain\003com", true, kNoPins, DOMAIN_NOT_PINN ED },
994 {22, true, "\010accounts\007firefox\003com", true, kNoPins, DOMAIN_NOT_PINNED }, 1052 {22, true, "\010accounts\007firefox\003com", true, kNoPins, DOMAIN_NOT_PINNED },
1053 {13, false, "\007dropbox\003com", true, kDropboxPins, DOMAIN_DROPBOX_COM },
1054 {17, true, "\003www\007dropbox\003com", true, kDropboxPins, DOMAIN_DROPBOX_COM },
995 }; 1055 };
996 static const size_t kNumPreloadedSTS = ARRAYSIZE_UNSAFE(kPreloadedSTS); 1056 static const size_t kNumPreloadedSTS = ARRAYSIZE_UNSAFE(kPreloadedSTS);
997 1057
998 static const struct HSTSPreload kPreloadedSNISTS[] = { 1058 static const struct HSTSPreload kPreloadedSNISTS[] = {
999 {11, false, "\005gmail\003com", true, kGooglePins, DOMAIN_GMAIL_COM }, 1059 {11, false, "\005gmail\003com", true, kGooglePins, DOMAIN_GMAIL_COM },
1000 {16, false, "\012googlemail\003com", true, kGooglePins, DOMAIN_GOOGLEMAIL_COM }, 1060 {16, false, "\012googlemail\003com", true, kGooglePins, DOMAIN_GOOGLEMAIL_COM },
1001 {15, false, "\003www\005gmail\003com", true, kGooglePins, DOMAIN_GMAIL_COM }, 1061 {15, false, "\003www\005gmail\003com", true, kGooglePins, DOMAIN_GMAIL_COM },
1002 {20, false, "\003www\012googlemail\003com", true, kGooglePins, DOMAIN_GOOGLEMA IL_COM }, 1062 {20, false, "\003www\012googlemail\003com", true, kGooglePins, DOMAIN_GOOGLEMA IL_COM },
1003 {22, true, "\020google-analytics\003com", false, kGooglePins, DOMAIN_GOOGLE_AN ALYTICS_COM }, 1063 {22, true, "\020google-analytics\003com", false, kGooglePins, DOMAIN_GOOGLE_AN ALYTICS_COM },
1004 {18, true, "\014googlegroups\003com", false, kGooglePins, DOMAIN_GOOGLEGROUPS_ COM }, 1064 {18, true, "\014googlegroups\003com", false, kGooglePins, DOMAIN_GOOGLEGROUPS_ COM },
1005 {13, true, "\007mykolab\003com", true, kNoPins, DOMAIN_NOT_PINNED }, 1065 {13, true, "\007mykolab\003com", true, kNoPins, DOMAIN_NOT_PINNED },
1006 {17, true, "\013semenkovich\003com", true, kNoPins, DOMAIN_NOT_PINNED }, 1066 {17, true, "\013semenkovich\003com", true, kNoPins, DOMAIN_NOT_PINNED },
1007 }; 1067 };
1008 static const size_t kNumPreloadedSNISTS = ARRAYSIZE_UNSAFE(kPreloadedSNISTS); 1068 static const size_t kNumPreloadedSNISTS = ARRAYSIZE_UNSAFE(kPreloadedSNISTS);
1009 1069
1010 #endif // NET_HTTP_TRANSPORT_SECURITY_STATE_STATIC_H_ 1070 #endif // NET_HTTP_TRANSPORT_SECURITY_STATE_STATIC_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698