| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 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 | 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_QUIC_CRYPTO_PROOF_VERIFIER_H_ | 5 #ifndef NET_QUIC_CRYPTO_PROOF_VERIFIER_H_ |
| 6 #define NET_QUIC_CRYPTO_PROOF_VERIFIER_H_ | 6 #define NET_QUIC_CRYPTO_PROOF_VERIFIER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 // for some implementations) that provides useful information for the | 68 // for some implementations) that provides useful information for the |
| 69 // verifier, e.g. logging handles. | 69 // verifier, e.g. logging handles. |
| 70 // | 70 // |
| 71 // This function may also return QUIC_PENDING, in which case the ProofVerifier | 71 // This function may also return QUIC_PENDING, in which case the ProofVerifier |
| 72 // will call back, on the original thread, via |callback| when complete. | 72 // will call back, on the original thread, via |callback| when complete. |
| 73 // In this case, the ProofVerifier will take ownership of |callback|. | 73 // In this case, the ProofVerifier will take ownership of |callback|. |
| 74 // | 74 // |
| 75 // The signature uses SHA-256 as the hash function and PSS padding in the | 75 // The signature uses SHA-256 as the hash function and PSS padding in the |
| 76 // case of RSA. | 76 // case of RSA. |
| 77 virtual QuicAsyncStatus VerifyProof(const std::string& hostname, | 77 virtual QuicAsyncStatus VerifyProof(const std::string& hostname, |
| 78 const uint16_t port, |
| 78 const std::string& server_config, | 79 const std::string& server_config, |
| 79 QuicVersion quic_version, | 80 QuicVersion quic_version, |
| 80 base::StringPiece chlo_hash, | 81 base::StringPiece chlo_hash, |
| 81 const std::vector<std::string>& certs, | 82 const std::vector<std::string>& certs, |
| 82 const std::string& cert_sct, | 83 const std::string& cert_sct, |
| 83 const std::string& signature, | 84 const std::string& signature, |
| 84 const ProofVerifyContext* context, | 85 const ProofVerifyContext* context, |
| 85 std::string* error_details, | 86 std::string* error_details, |
| 86 scoped_ptr<ProofVerifyDetails>* details, | 87 scoped_ptr<ProofVerifyDetails>* details, |
| 87 ProofVerifierCallback* callback) = 0; | 88 ProofVerifierCallback* callback) = 0; |
| 88 }; | 89 }; |
| 89 | 90 |
| 90 } // namespace net | 91 } // namespace net |
| 91 | 92 |
| 92 #endif // NET_QUIC_CRYPTO_PROOF_VERIFIER_H_ | 93 #endif // NET_QUIC_CRYPTO_PROOF_VERIFIER_H_ |
| OLD | NEW |