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

Side by Side Diff: net/quic/crypto/proof_verifier_chromium.h

Issue 18033005: Cleanup of OpenSSL/NSS implementation of ProofVerfifier release. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Implemented wtc's comments 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « net/quic/crypto/proof_test.cc ('k') | net/quic/crypto/proof_verifier_chromium.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_VERIFIER_CHROMIUM_H_ 5 #ifndef NET_QUIC_CRYPTO_PROOF_VERIFIER_CHROMIUM_H_
6 #define NET_QUIC_CRYPTO_PROOF_VERIFIER_CHROMIUM_H_ 6 #define NET_QUIC_CRYPTO_PROOF_VERIFIER_CHROMIUM_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/basictypes.h" 11 #include "base/basictypes.h"
12 #include "base/compiler_specific.h" 12 #include "base/compiler_specific.h"
13 #include "base/memory/scoped_ptr.h" 13 #include "base/memory/scoped_ptr.h"
14 #include "net/base/completion_callback.h" 14 #include "net/base/completion_callback.h"
15 #include "net/base/net_export.h" 15 #include "net/base/net_export.h"
16 #include "net/base/net_log.h" 16 #include "net/base/net_log.h"
17 #include "net/cert/cert_verify_result.h" 17 #include "net/cert/cert_verify_result.h"
18 #include "net/cert/x509_certificate.h" 18 #include "net/cert/x509_certificate.h"
19 #include "net/quic/crypto/proof_verifier.h" 19 #include "net/quic/crypto/proof_verifier.h"
20 20
21 namespace net { 21 namespace net {
22 22
23 class BoundNetLog;
24 class CertVerifier; 23 class CertVerifier;
25 class CertVerifyResult;
26 class SingleRequestCertVerifier; 24 class SingleRequestCertVerifier;
27 class X509Certificate;
28 25
29 // ProofVerifierChromium implements the QUIC ProofVerifier interface. 26 // ProofVerifierChromium implements the QUIC ProofVerifier interface.
30 // TODO(rtenneti): Add support for multiple requests for one ProofVerifier. 27 // TODO(rtenneti): Add support for multiple requests for one ProofVerifier.
31 class NET_EXPORT_PRIVATE ProofVerifierChromium : public ProofVerifier { 28 class NET_EXPORT_PRIVATE ProofVerifierChromium : public ProofVerifier {
32 public: 29 public:
33 explicit ProofVerifierChromium(CertVerifier* cert_verifier, 30 ProofVerifierChromium(CertVerifier* cert_verifier,
34 const BoundNetLog& net_log); 31 const BoundNetLog& net_log);
35 virtual ~ProofVerifierChromium(); 32 virtual ~ProofVerifierChromium();
36 33
37 // ProofVerifier interface 34 // ProofVerifier interface
38 virtual int VerifyProof(const std::string& hostname, 35 virtual int VerifyProof(const std::string& hostname,
39 const std::string& server_config, 36 const std::string& server_config,
40 const std::vector<std::string>& certs, 37 const std::vector<std::string>& certs,
41 const std::string& signature, 38 const std::string& signature,
42 std::string* error_details, 39 std::string* error_details,
43 const CompletionCallback& callback) OVERRIDE; 40 const CompletionCallback& callback) OVERRIDE;
44 41
(...skipping 22 matching lines...) Expand all
67 64
68 CompletionCallback callback_; 65 CompletionCallback callback_;
69 66
70 // The result of certificate verification. 67 // The result of certificate verification.
71 CertVerifyResult cert_verify_result_; 68 CertVerifyResult cert_verify_result_;
72 std::string* error_details_; 69 std::string* error_details_;
73 70
74 // X509Certificate from a chain of DER encoded certificates. 71 // X509Certificate from a chain of DER encoded certificates.
75 scoped_refptr<X509Certificate> cert_; 72 scoped_refptr<X509Certificate> cert_;
76 73
77 // |generation_counter| passed to VerifyProof call.
78 uint64 generation_counter_;
79
80 State next_state_; 74 State next_state_;
81 75
82 BoundNetLog net_log_; 76 BoundNetLog net_log_;
83 77
84 DISALLOW_COPY_AND_ASSIGN(ProofVerifierChromium); 78 DISALLOW_COPY_AND_ASSIGN(ProofVerifierChromium);
85 }; 79 };
86 80
87 } // namespace net 81 } // namespace net
88 82
89 #endif // NET_QUIC_CRYPTO_PROOF_VERIFIER_CHROMIUM_H_ 83 #endif // NET_QUIC_CRYPTO_PROOF_VERIFIER_CHROMIUM_H_
OLDNEW
« no previous file with comments | « net/quic/crypto/proof_test.cc ('k') | net/quic/crypto/proof_verifier_chromium.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698