Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(345)

Unified Diff: net/tools/quic/test_tools/quic_test_client.cc

Issue 20898003: Revert 213862 "net: make QUIC ProofVerifier more generic." (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1578/src/
Patch Set: Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/quic/quic_crypto_client_stream.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/tools/quic/test_tools/quic_test_client.cc
===================================================================
--- net/tools/quic/test_tools/quic_test_client.cc (revision 214032)
+++ net/tools/quic/test_tools/quic_test_client.cc (working copy)
@@ -24,19 +24,16 @@
class RecordingProofVerifier : public net::ProofVerifier {
public:
// ProofVerifier interface.
- virtual net::ProofVerifier::Status VerifyProof(
- const string& hostname,
- const string& server_config,
- const vector<string>& certs,
- const string& signature,
- string* error_details,
- scoped_ptr<net::ProofVerifyDetails>* details,
- net::ProofVerifierCallback* callback) OVERRIDE {
- delete callback;
-
+ virtual int VerifyProof(const string& hostname,
+ const string& server_config,
+ 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 FAILURE;
+ return net::ERR_FAILED;
}
// Convert certs to X509Certificate.
@@ -47,11 +44,11 @@
scoped_refptr<net::X509Certificate> cert =
net::X509Certificate::CreateFromDERCertChain(cert_pieces);
if (!cert.get()) {
- return FAILURE;
+ return net::ERR_FAILED;
}
common_name_ = cert->subject().GetDisplayName();
- return SUCCESS;
+ return net::OK;
}
const string& common_name() const { return common_name_; }
« no previous file with comments | « net/quic/quic_crypto_client_stream.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698