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

Side by Side Diff: net/cert/single_log_ct_verifier.h

Issue 27026002: CT: Adding preliminary Certificate Transparency support to Chromium. Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Distinguish between SCTs from unknown logs and unverified ones Created 7 years, 1 month 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
« no previous file with comments | « net/cert/ct_verify_result.cc ('k') | net/cert/single_log_ct_verifier.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright (c) 2013 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 #ifndef NET_CERT_SINGLE_LOG_CT_VERIFIER_H_
6 #define NET_CERT_SINGLE_LOG_CT_VERIFIER_H_
7
8 #include <string>
9
10 #include "base/memory/scoped_ptr.h"
11 #include "net/base/net_export.h"
12 #include "net/cert/ct_verifier.h"
13
14 namespace net {
15
16 namespace ct {
17 struct LogEntry;
18 } // namespace ct
19 class CTLogVerifier;
20
21 class NET_EXPORT SingleLogCTVerifier : public CTVerifier {
22 public:
23 explicit SingleLogCTVerifier(scoped_ptr<CTLogVerifier> log_verifier);
24 virtual ~SingleLogCTVerifier();
25
26 // CTVerifier implementation:
27 virtual int Verify(X509Certificate* cert,
28 X509Certificate* verified_cert,
29 ct::CTVerifyResult* result,
30 const CompletionCallback& callback,
31 const BoundNetLog& net_log) OVERRIDE;
32
33 private:
34 SingleLogCTVerifier();
35
36 bool VerifySCTs(const std::string& encoded_sct_list,
37 const ct::LogEntry& expected_entry,
38 ct::CTVerifyResult* result);
39
40 scoped_ptr<CTLogVerifier> log_;
41
42 DISALLOW_COPY_AND_ASSIGN(SingleLogCTVerifier);
43 };
44
45 } // namespace net
46
47 #endif // NET_CERT_SINGLE_LOG_CT_VERIFIER_H_
OLDNEW
« no previous file with comments | « net/cert/ct_verify_result.cc ('k') | net/cert/single_log_ct_verifier.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698