OLD | NEW |
(Empty) | |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "net/cert/ct_ev_whitelist.h" |
| 6 |
| 7 #include <set> |
| 8 |
| 9 #include "base/big_endian.h" |
| 10 #include "base/lazy_instance.h" |
| 11 |
| 12 namespace net { |
| 13 |
| 14 namespace ct { |
| 15 |
| 16 class DefaultEVCertsWhitelist : public EVCertsWhitelist { |
| 17 public: |
| 18 DefaultEVCertsWhitelist() {} |
| 19 |
| 20 virtual bool ContainsCertificateHash( |
| 21 const std::string& certificate_hash) const OVERRIDE { |
| 22 return true; |
| 23 } |
| 24 |
| 25 virtual bool IsValid() const OVERRIDE { return true; } |
| 26 |
| 27 private: |
| 28 virtual ~DefaultEVCertsWhitelist() {} |
| 29 }; |
| 30 |
| 31 namespace { |
| 32 |
| 33 base::LazyInstance<DefaultEVCertsWhitelist>::Leaky g_default_ev_whitelist = |
| 34 LAZY_INSTANCE_INITIALIZER; |
| 35 |
| 36 } // namespace |
| 37 |
| 38 EVCertsWhitelist* GetDefaultEVCertsWhitelist() { |
| 39 return &(g_default_ev_whitelist.Get()); |
| 40 } |
| 41 |
| 42 } // namespace ct |
| 43 |
| 44 } // namespace net |
OLD | NEW |