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

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

Issue 2132623002: Landing Recent QUIC changes until 2016-07-02 02:45 UTC (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removing comment about RPCs Created 4 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
« no previous file with comments | « net/quic/crypto/proof_test.cc ('k') | net/quic/crypto/proof_verifier_chromium.h » ('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 (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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_H_ 5 #ifndef NET_QUIC_CRYPTO_PROOF_VERIFIER_H_
6 #define NET_QUIC_CRYPTO_PROOF_VERIFIER_H_ 6 #define NET_QUIC_CRYPTO_PROOF_VERIFIER_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 // QUIC_SUCCESS. On failure, it returns QUIC_FAILURE and sets |*error_details| 63 // QUIC_SUCCESS. On failure, it returns QUIC_FAILURE and sets |*error_details|
64 // to a description of the problem. In either case it may set |*details|, 64 // to a description of the problem. In either case it may set |*details|,
65 // which the caller takes ownership of. 65 // which the caller takes ownership of.
66 // 66 //
67 // |context| specifies an implementation specific struct (which may be nullptr 67 // |context| specifies an implementation specific struct (which may be nullptr
68 // for some implementations) that provides useful information for the 68 // for some implementations) that provides useful information for the
69 // verifier, e.g. logging handles. 69 // verifier, e.g. logging handles.
70 // 70 //
71 // This function may also return QUIC_PENDING, in which case the ProofVerifier 71 // This function may also return QUIC_PENDING, in which case the ProofVerifier
72 // will call back, on the original thread, via |callback| when complete. 72 // will call back, on the original thread, via |callback| when complete.
73 // In this case, the ProofVerifier will take ownership of |callback|.
74 // 73 //
75 // The signature uses SHA-256 as the hash function and PSS padding in the 74 // The signature uses SHA-256 as the hash function and PSS padding in the
76 // case of RSA. 75 // case of RSA.
77 virtual QuicAsyncStatus VerifyProof( 76 virtual QuicAsyncStatus VerifyProof(
78 const std::string& hostname, 77 const std::string& hostname,
79 const uint16_t port, 78 const uint16_t port,
80 const std::string& server_config, 79 const std::string& server_config,
81 QuicVersion quic_version, 80 QuicVersion quic_version,
82 base::StringPiece chlo_hash, 81 base::StringPiece chlo_hash,
83 const std::vector<std::string>& certs, 82 const std::vector<std::string>& certs,
84 const std::string& cert_sct, 83 const std::string& cert_sct,
85 const std::string& signature, 84 const std::string& signature,
86 const ProofVerifyContext* context, 85 const ProofVerifyContext* context,
87 std::string* error_details, 86 std::string* error_details,
88 std::unique_ptr<ProofVerifyDetails>* details, 87 std::unique_ptr<ProofVerifyDetails>* details,
89 ProofVerifierCallback* callback) = 0; 88 std::unique_ptr<ProofVerifierCallback> callback) = 0;
90 }; 89 };
91 90
92 } // namespace net 91 } // namespace net
93 92
94 #endif // NET_QUIC_CRYPTO_PROOF_VERIFIER_H_ 93 #endif // NET_QUIC_CRYPTO_PROOF_VERIFIER_H_
OLDNEW
« no previous file with comments | « net/quic/crypto/proof_test.cc ('k') | net/quic/crypto/proof_verifier_chromium.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698