| 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_LOG_VERIFIER_H_ | 5 #ifndef NET_CERT_CT_LOG_VERIFIER_H_ | 
| 6 #define NET_CERT_CT_LOG_VERIFIER_H_ | 6 #define NET_CERT_CT_LOG_VERIFIER_H_ | 
| 7 | 7 | 
| 8 #include <string> | 8 #include <string> | 
| 9 | 9 | 
| 10 #include "base/gtest_prod_util.h" | 10 #include "base/gtest_prod_util.h" | 
| 11 #include "base/memory/ref_counted.h" | 11 #include "base/memory/ref_counted.h" | 
| 12 #include "base/strings/string_piece.h" | 12 #include "base/strings/string_piece.h" | 
| 13 #include "net/base/net_export.h" | 13 #include "net/base/net_export.h" | 
| 14 #include "net/cert/signed_certificate_timestamp.h" | 14 #include "net/cert/signed_certificate_timestamp.h" | 
| 15 #include "url/gurl.h" | 15 #include "url/gurl.h" | 
| 16 | 16 | 
| 17 // Forward declare the crypto types to avoid having to include the full | 17 // Forward declare the crypto types to avoid having to include the full | 
| 18 // headers. | 18 // headers. | 
| 19 #if defined(USE_OPENSSL) |  | 
| 20 typedef struct evp_pkey_st EVP_PKEY; | 19 typedef struct evp_pkey_st EVP_PKEY; | 
| 21 #else |  | 
| 22 typedef struct SECKEYPublicKeyStr SECKEYPublicKey; |  | 
| 23 #endif |  | 
| 24 | 20 | 
| 25 namespace net { | 21 namespace net { | 
| 26 | 22 | 
| 27 namespace ct { | 23 namespace ct { | 
| 28 | 24 | 
| 29 struct SignedTreeHead; | 25 struct SignedTreeHead; | 
| 30 struct MerkleConsistencyProof; | 26 struct MerkleConsistencyProof; | 
| 31 | 27 | 
| 32 }  // namespace ct | 28 }  // namespace ct | 
| 33 | 29 | 
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 91   // Returns true if the signature and hash algorithms in |signature| | 87   // Returns true if the signature and hash algorithms in |signature| | 
| 92   // match those of the log | 88   // match those of the log | 
| 93   bool SignatureParametersMatch(const ct::DigitallySigned& signature) const; | 89   bool SignatureParametersMatch(const ct::DigitallySigned& signature) const; | 
| 94 | 90 | 
| 95   std::string key_id_; | 91   std::string key_id_; | 
| 96   std::string description_; | 92   std::string description_; | 
| 97   GURL url_; | 93   GURL url_; | 
| 98   ct::DigitallySigned::HashAlgorithm hash_algorithm_; | 94   ct::DigitallySigned::HashAlgorithm hash_algorithm_; | 
| 99   ct::DigitallySigned::SignatureAlgorithm signature_algorithm_; | 95   ct::DigitallySigned::SignatureAlgorithm signature_algorithm_; | 
| 100 | 96 | 
| 101 #if defined(USE_OPENSSL) |  | 
| 102   EVP_PKEY* public_key_; | 97   EVP_PKEY* public_key_; | 
| 103 #else |  | 
| 104   SECKEYPublicKey* public_key_; |  | 
| 105 #endif |  | 
| 106 }; | 98 }; | 
| 107 | 99 | 
| 108 }  // namespace net | 100 }  // namespace net | 
| 109 | 101 | 
| 110 #endif  // NET_CERT_CT_LOG_VERIFIER_H_ | 102 #endif  // NET_CERT_CT_LOG_VERIFIER_H_ | 
| OLD | NEW | 
|---|