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_QUIC_CRYPTO_PROOF_SOURCE_CHROMIUM_H_ | 5 #ifndef NET_QUIC_CRYPTO_PROOF_SOURCE_CHROMIUM_H_ |
6 #define NET_QUIC_CRYPTO_PROOF_SOURCE_CHROMIUM_H_ | 6 #define NET_QUIC_CRYPTO_PROOF_SOURCE_CHROMIUM_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 18 matching lines...) Expand all Loading... |
29 // and the PKCS#8 RSA private key in |key_path|. | 29 // and the PKCS#8 RSA private key in |key_path|. |
30 bool Initialize(const base::FilePath& cert_path, | 30 bool Initialize(const base::FilePath& cert_path, |
31 const base::FilePath& key_path); | 31 const base::FilePath& key_path); |
32 | 32 |
33 // ProofSource interface | 33 // ProofSource interface |
34 bool GetProof(const IPAddressNumber& server_ip, | 34 bool GetProof(const IPAddressNumber& server_ip, |
35 const std::string& hostname, | 35 const std::string& hostname, |
36 const std::string& server_config, | 36 const std::string& server_config, |
37 bool ecdsa_ok, | 37 bool ecdsa_ok, |
38 const std::vector<std::string>** out_certs, | 38 const std::vector<std::string>** out_certs, |
39 std::string* out_signature) override; | 39 std::string* out_signature, |
| 40 std::string* out_leaf_cert_sct) override; |
40 | 41 |
41 private: | 42 private: |
42 scoped_ptr<crypto::RSAPrivateKey> private_key_; | 43 scoped_ptr<crypto::RSAPrivateKey> private_key_; |
43 std::vector<std::string> certificates_; | 44 std::vector<std::string> certificates_; |
44 | 45 |
45 DISALLOW_COPY_AND_ASSIGN(ProofSourceChromium); | 46 DISALLOW_COPY_AND_ASSIGN(ProofSourceChromium); |
46 }; | 47 }; |
47 | 48 |
48 } // namespace net | 49 } // namespace net |
49 | 50 |
50 #endif // NET_QUIC_CRYPTO_PROOF_SOURCE_CHROMIUM_H_ | 51 #endif // NET_QUIC_CRYPTO_PROOF_SOURCE_CHROMIUM_H_ |
OLD | NEW |