| Index: net/tools/quic/test_tools/quic_test_client.cc
|
| diff --git a/net/tools/quic/test_tools/quic_test_client.cc b/net/tools/quic/test_tools/quic_test_client.cc
|
| index 276daae11cf84606589414b0407fa50fc4a09f7c..b6f1768d14c2830be8fc13ee0289c2f5fa75f93d 100644
|
| --- a/net/tools/quic/test_tools/quic_test_client.cc
|
| +++ b/net/tools/quic/test_tools/quic_test_client.cc
|
| @@ -46,6 +46,7 @@ class RecordingProofVerifier : public ProofVerifier {
|
| QuicAsyncStatus VerifyProof(const string& hostname,
|
| const string& server_config,
|
| const vector<string>& certs,
|
| + const string& cert_sct,
|
| const string& signature,
|
| const ProofVerifyContext* context,
|
| string* error_details,
|
| @@ -71,13 +72,18 @@ class RecordingProofVerifier : public ProofVerifier {
|
| // }
|
| //
|
| // common_name_ = cert->subject().GetDisplayName();
|
| + cert_sct_ = cert_sct;
|
| +
|
| return QUIC_SUCCESS;
|
| }
|
|
|
| const string& common_name() const { return common_name_; }
|
|
|
| + const string& cert_sct() const { return cert_sct_; }
|
| +
|
| private:
|
| string common_name_;
|
| + string cert_sct_;
|
| };
|
|
|
| } // anonymous namespace
|
| @@ -387,6 +393,11 @@ const string& QuicTestClient::cert_common_name() const {
|
| ->common_name();
|
| }
|
|
|
| +const string& QuicTestClient::cert_sct() const {
|
| + return reinterpret_cast<RecordingProofVerifier*>(client_->proof_verifier())
|
| + ->cert_sct();
|
| +}
|
| +
|
| QuicTagValueMap QuicTestClient::GetServerConfig() const {
|
| QuicCryptoClientConfig* config = client_->crypto_config();
|
| QuicCryptoClientConfig::CachedState* state =
|
|
|