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

Side by Side Diff: net/base/transport_security_state.cc

Issue 9663017: net: add OCSP tests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: ... Created 8 years, 9 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 #include "net/base/transport_security_state.h" 5 #include "net/base/transport_security_state.h"
6 6
7 #if defined(USE_OPENSSL) 7 #if defined(USE_OPENSSL)
8 #include <openssl/ecdsa.h> 8 #include <openssl/ecdsa.h>
9 #include <openssl/ssl.h> 9 #include <openssl/ssl.h>
10 #else // !defined(USE_OPENSSL) 10 #else // !defined(USE_OPENSSL)
(...skipping 1425 matching lines...) Expand 10 before | Expand all | Expand 10 after
1436 DOMAIN_NOT_PINNED }, 1436 DOMAIN_NOT_PINNED },
1437 {26, false , "\011developer\012mydigipass\003com", true, kNoPins, 1437 {26, false , "\011developer\012mydigipass\003com", true, kNoPins,
1438 DOMAIN_NOT_PINNED }, 1438 DOMAIN_NOT_PINNED },
1439 {30, false , "\003www\011developer\012mydigipass\003com", true, kNoPins, 1439 {30, false , "\003www\011developer\012mydigipass\003com", true, kNoPins,
1440 DOMAIN_NOT_PINNED }, 1440 DOMAIN_NOT_PINNED },
1441 {24, false , "\007sandbox\012mydigipass\003com", true, kNoPins, 1441 {24, false , "\007sandbox\012mydigipass\003com", true, kNoPins,
1442 DOMAIN_NOT_PINNED }, 1442 DOMAIN_NOT_PINNED },
1443 {28, false , "\003www\007sandbox\012mydigipass\003com", true, kNoPins, 1443 {28, false , "\003www\007sandbox\012mydigipass\003com", true, kNoPins,
1444 DOMAIN_NOT_PINNED }, 1444 DOMAIN_NOT_PINNED },
1445 {12, true, "\006crypto\003cat", true, kNoPins, DOMAIN_NOT_PINNED }, 1445 {12, true, "\006crypto\003cat", true, kNoPins, DOMAIN_NOT_PINNED },
1446 {25, true, "\014bigshinylock\006minazo\003net", true, kNoPins,
1447 DOMAIN_NOT_PINNED },
Ryan Sleevi 2012/03/09 22:07:54 Unrelated?
1448 1446
1449 {13, false, "\007twitter\003com", kTwitterHSTS, 1447 {13, false, "\007twitter\003com", kTwitterHSTS,
1450 kTwitterComPins, DOMAIN_TWITTER_COM }, 1448 kTwitterComPins, DOMAIN_TWITTER_COM },
1451 {17, true, "\003www\007twitter\003com", kTwitterHSTS, 1449 {17, true, "\003www\007twitter\003com", kTwitterHSTS,
1452 kTwitterComPins, DOMAIN_TWITTER_COM }, 1450 kTwitterComPins, DOMAIN_TWITTER_COM },
1453 {17, true, "\003api\007twitter\003com", kTwitterHSTS, 1451 {17, true, "\003api\007twitter\003com", kTwitterHSTS,
1454 kTwitterCDNPins, DOMAIN_TWITTER_COM }, 1452 kTwitterCDNPins, DOMAIN_TWITTER_COM },
1455 {19, true, "\005oauth\007twitter\003com", kTwitterHSTS, 1453 {19, true, "\005oauth\007twitter\003com", kTwitterHSTS,
1456 kTwitterComPins, DOMAIN_TWITTER_COM }, 1454 kTwitterComPins, DOMAIN_TWITTER_COM },
1457 {20, true, "\006mobile\007twitter\003com", kTwitterHSTS, 1455 {20, true, "\006mobile\007twitter\003com", kTwitterHSTS,
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after
1654 1652
1655 return true; 1653 return true;
1656 } 1654 }
1657 1655
1658 bool TransportSecurityState::DomainState::ShouldRedirectHTTPToHTTPS() 1656 bool TransportSecurityState::DomainState::ShouldRedirectHTTPToHTTPS()
1659 const { 1657 const {
1660 return mode == MODE_STRICT; 1658 return mode == MODE_STRICT;
1661 } 1659 }
1662 1660
1663 } // namespace 1661 } // namespace
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698