| 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_SOURCE_H_ | 5 #ifndef NET_QUIC_CRYPTO_PROOF_SOURCE_H_ |
| 6 #define NET_QUIC_CRYPTO_PROOF_SOURCE_H_ | 6 #define NET_QUIC_CRYPTO_PROOF_SOURCE_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 26 matching lines...) Expand all Loading... |
| 37 // somewhat static. However, since they aren't bounded, the ProofSource may | 37 // somewhat static. However, since they aren't bounded, the ProofSource may |
| 38 // wish to evicit entries from that cache, thus the caller takes ownership of | 38 // wish to evicit entries from that cache, thus the caller takes ownership of |
| 39 // |*out_signature|. | 39 // |*out_signature|. |
| 40 // | 40 // |
| 41 // |hostname| may be empty to signify that a default certificate should be | 41 // |hostname| may be empty to signify that a default certificate should be |
| 42 // used. | 42 // used. |
| 43 // | 43 // |
| 44 // This function may be called concurrently. | 44 // This function may be called concurrently. |
| 45 virtual bool GetProof(const std::string& hostname, | 45 virtual bool GetProof(const std::string& hostname, |
| 46 const std::string& server_config, | 46 const std::string& server_config, |
| 47 bool ecdsa_ok, |
| 47 const std::vector<std::string>** out_certs, | 48 const std::vector<std::string>** out_certs, |
| 48 std::string* out_signature) = 0; | 49 std::string* out_signature) = 0; |
| 49 }; | 50 }; |
| 50 | 51 |
| 51 } // namespace net | 52 } // namespace net |
| 52 | 53 |
| 53 #endif // NET_QUIC_CRYPTO_PROOF_SOURCE_H_ | 54 #endif // NET_QUIC_CRYPTO_PROOF_SOURCE_H_ |
| OLD | NEW |