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

Unified Diff: net/quic/chromium/quic_chromium_client_session.h

Issue 2337253004: Update Token Binding code to the latest drafts (Closed)
Patch Set: Add call to CBS_len() Created 4 years, 3 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/http/proxy_connect_redirect_http_stream.cc ('k') | net/quic/chromium/quic_chromium_client_session.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/chromium/quic_chromium_client_session.h
diff --git a/net/quic/chromium/quic_chromium_client_session.h b/net/quic/chromium/quic_chromium_client_session.h
index f9aa8b81fa26389aec08c30829c17000167b70c2..61bb3a2981ac8ef9ef9161d561fd7ef259b4ae12 100644
--- a/net/quic/chromium/quic_chromium_client_session.h
+++ b/net/quic/chromium/quic_chromium_client_session.h
@@ -48,7 +48,8 @@ class SSLInfo;
class TransportSecurityState;
using TokenBindingSignatureMap =
- base::MRUCache<std::string, std::vector<uint8_t>>;
+ base::MRUCache<std::pair<TokenBindingType, std::string>,
+ std::vector<uint8_t>>;
namespace test {
class QuicChromiumClientSessionPeer;
@@ -197,9 +198,11 @@ class NET_EXPORT_PRIVATE QuicChromiumClientSession
// Gets the SSL connection information.
bool GetSSLInfo(SSLInfo* ssl_info) const;
- // Signs the exported keying material used for Token Binding using key |*key|
- // and puts the signature in |*out|. Returns a net error code.
+ // Generates the signature used in Token Binding using key |*key| and for a
+ // Token Binding of type |tb_type|, putting the signature in |*out|. Returns a
+ // net error code.
Error GetTokenBindingSignature(crypto::ECPrivateKey* key,
+ TokenBindingType tb_type,
std::vector<uint8_t>* out);
// Performs a crypto handshake with the server.
« no previous file with comments | « net/http/proxy_connect_redirect_http_stream.cc ('k') | net/quic/chromium/quic_chromium_client_session.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698