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

Side by Side Diff: net/cert/ct_ev_whitelist.cc

Issue 547603002: Certificate Transparency: Code for unpacking EV cert hashes whitelist (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Avoiding globals in favour of passing the SSLConfigService around Created 6 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 unified diff | Download patch
OLDNEW
(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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698