summaryrefslogtreecommitdiffstats
path: root/net/tools
diff options
context:
space:
mode:
authorrtenneti@chromium.org <rtenneti@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-07-12 19:23:47 +0000
committerrtenneti@chromium.org <rtenneti@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-07-12 19:23:47 +0000
commita69af0522df416013f4233a94632ce4a4c854ebc (patch)
tree6fccae366ebe46c6fd8b494d502da40b595e448a /net/tools
parent17ed3b87579b34bb4838a8a05619e43909875f92 (diff)
downloadchromium_src-a69af0522df416013f4233a94632ce4a4c854ebc.zip
chromium_src-a69af0522df416013f4233a94632ce4a4c854ebc.tar.gz
chromium_src-a69af0522df416013f4233a94632ce4a4c854ebc.tar.bz2
Implement GetSSLInfo for QUIC/https connections.
- CertVerifyResult is saved in QuicCryptoClientConfig::CachedState after Proof is verified. - Because CertVerifyResult is not RefCounted, the data is copied into CachedState. - QuicCryptoClientStream uses CertVerifyResult from CachedState after handshake is completed. - QuicCryptoClientStream::GetSSLInfo fills SSLInfo data from CertVerifyResult. - UI uses SSLInfo to display connection status. - Hardcoded cipher_suite as TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 in SSLInfo. R=jar@chromium.org, agl@@chromium.org Review URL: https://chromiumcodereview.appspot.com/19037002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@211439 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/tools')
-rw-r--r--net/tools/quic/test_tools/quic_test_client.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/net/tools/quic/test_tools/quic_test_client.cc b/net/tools/quic/test_tools/quic_test_client.cc
index 9b5f261..b8ad0bb 100644
--- a/net/tools/quic/test_tools/quic_test_client.cc
+++ b/net/tools/quic/test_tools/quic_test_client.cc
@@ -6,6 +6,7 @@
#include "net/base/completion_callback.h"
#include "net/base/net_errors.h"
+#include "net/cert/cert_verify_result.h"
#include "net/cert/x509_certificate.h"
#include "net/quic/crypto/proof_verifier.h"
#include "net/tools/flip_server/balsa_headers.h"
@@ -28,10 +29,11 @@ class RecordingProofVerifier : public net::ProofVerifier {
const vector<string>& certs,
const string& signature,
string* error_details,
+ net::CertVerifyResult* cert_verify_result,
const net::CompletionCallback& callback) OVERRIDE {
common_name_.clear();
if (certs.empty()) {
- return false;
+ return net::ERR_FAILED;
}
// Convert certs to X509Certificate.