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

Side by Side Diff: net/test/ct_test_util.h

Issue 92443002: Extract Certificate Transparency SCTs from stapled OCSP responses (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@extract_scts
Patch Set: Fix C++11 compile error Created 7 years 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
« no previous file with comments | « net/socket/ssl_client_socket_unittest.cc ('k') | net/test/ct_test_util.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 #ifndef NET_CERT_CT_TEST_UTIL_H_ 5 #ifndef NET_CERT_CT_TEST_UTIL_H_
6 #define NET_CERT_CT_TEST_UTIL_H_ 6 #define NET_CERT_CT_TEST_UTIL_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 43
44 // SCT for the X509Certificate provided above. 44 // SCT for the X509Certificate provided above.
45 void GetX509CertSCT(scoped_refptr<SignedCertificateTimestamp>* sct); 45 void GetX509CertSCT(scoped_refptr<SignedCertificateTimestamp>* sct);
46 46
47 // SCT for the Precertificate log entry provided above. 47 // SCT for the Precertificate log entry provided above.
48 void GetPrecertSCT(scoped_refptr<SignedCertificateTimestamp>* sct); 48 void GetPrecertSCT(scoped_refptr<SignedCertificateTimestamp>* sct);
49 49
50 // Issuer key hash 50 // Issuer key hash
51 std::string GetDefaultIssuerKeyHash(); 51 std::string GetDefaultIssuerKeyHash();
52 52
53 // Fake OCSP response with an embedded SCT list.
54 std::string GetDerEncodedFakeOCSPResponse();
55
56 // The SCT list embedded in the response above.
57 std::string GetFakeOCSPExtensionValue();
58
59 // The cert the OCSP response is for.
60 std::string GetDerEncodedFakeOCSPResponseCert();
61
62 // The issuer of the previous cert.
63 std::string GetDerEncodedFakeOCSPResponseIssuerCert();
64
53 } // namespace ct 65 } // namespace ct
54 66
55 } // namespace net 67 } // namespace net
56 68
57 #endif // NET_CERT_CT_TEST_UTIL_H_ 69 #endif // NET_CERT_CT_TEST_UTIL_H_
OLDNEW
« no previous file with comments | « net/socket/ssl_client_socket_unittest.cc ('k') | net/test/ct_test_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698