| OLD | NEW |
| 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 Loading... |
| 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 | |
| 65 } // namespace ct | 53 } // namespace ct |
| 66 | 54 |
| 67 } // namespace net | 55 } // namespace net |
| 68 | 56 |
| 69 #endif // NET_CERT_CT_TEST_UTIL_H_ | 57 #endif // NET_CERT_CT_TEST_UTIL_H_ |
| OLD | NEW |