| Index: net/quic/crypto/proof_source_chromium.cc
|
| diff --git a/net/quic/crypto/proof_source_chromium.cc b/net/quic/crypto/proof_source_chromium.cc
|
| index 3a62346ed34ac1c311331ae2f207bd65f1054c03..a5c21c58794791be329076d43cb1031e759b5536 100644
|
| --- a/net/quic/crypto/proof_source_chromium.cc
|
| +++ b/net/quic/crypto/proof_source_chromium.cc
|
| @@ -151,4 +151,22 @@ bool ProofSourceChromium::GetProof(const IPAddress& server_ip,
|
| return true;
|
| }
|
|
|
| +void ProofSourceChromium::GetProof(const IPAddress& server_ip,
|
| + const std::string& hostname,
|
| + const std::string& server_config,
|
| + QuicVersion quic_version,
|
| + base::StringPiece chlo_hash,
|
| + bool ecdsa_ok,
|
| + std::unique_ptr<Callback> callback) {
|
| + // As a transitional implementation, just call the synchronous version of
|
| + // GetProof, then invoke the callback with the results and destroy it.
|
| + scoped_refptr<ProofSource::Chain> chain;
|
| + string signature;
|
| + string leaf_cert_sct;
|
| + const bool ok =
|
| + GetProof(server_ip, hostname, server_config, quic_version, chlo_hash,
|
| + ecdsa_ok, &chain, &signature, &leaf_cert_sct);
|
| + callback->Run(ok, chain, signature, leaf_cert_sct);
|
| +}
|
| +
|
| } // namespace net
|
|
|