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

Side by Side Diff: net/socket/ssl_client_socket.h

Issue 1360633002: Implement Token Binding negotiation TLS extension (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@test-server-flags
Patch Set: rebase Created 5 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_SOCKET_SSL_CLIENT_SOCKET_H_ 5 #ifndef NET_SOCKET_SSL_CLIENT_SOCKET_H_
6 #define NET_SOCKET_SSL_CLIENT_SOCKET_H_ 6 #define NET_SOCKET_SSL_CLIENT_SOCKET_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/gtest_prod_util.h" 10 #include "base/gtest_prod_util.h"
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
160 ChannelIDService* channel_id_service, 160 ChannelIDService* channel_id_service,
161 bool negotiated_channel_id, 161 bool negotiated_channel_id,
162 bool channel_id_enabled, 162 bool channel_id_enabled,
163 bool supports_ecc); 163 bool supports_ecc);
164 164
165 // Returns whether TLS channel ID is enabled. 165 // Returns whether TLS channel ID is enabled.
166 static bool IsChannelIDEnabled( 166 static bool IsChannelIDEnabled(
167 const SSLConfig& ssl_config, 167 const SSLConfig& ssl_config,
168 ChannelIDService* channel_id_service); 168 ChannelIDService* channel_id_service);
169 169
170 // Returns whether Token Binding is enabled.
171 static bool IsTokenBindingEnabled(const SSLConfig& ssl_config,
172 ChannelIDService* channel_id_service);
173
170 // Determine if there is at least one enabled cipher suite that satisfies 174 // Determine if there is at least one enabled cipher suite that satisfies
171 // Section 9.2 of the HTTP/2 specification. Note that the server might still 175 // Section 9.2 of the HTTP/2 specification. Note that the server might still
172 // pick an inadequate cipher suite. 176 // pick an inadequate cipher suite.
173 static bool HasCipherAdequateForHTTP2( 177 static bool HasCipherAdequateForHTTP2(
174 const std::vector<uint16>& cipher_suites); 178 const std::vector<uint16>& cipher_suites);
175 179
176 // Determine if the TLS version required by Section 9.2 of the HTTP/2 180 // Determine if the TLS version required by Section 9.2 of the HTTP/2
177 // specification is enabled. Note that the server might still pick an 181 // specification is enabled. Note that the server might still pick an
178 // inadequate TLS version. 182 // inadequate TLS version.
179 static bool IsTLSVersionAdequateForHTTP2(const SSLConfig& ssl_config); 183 static bool IsTLSVersionAdequateForHTTP2(const SSLConfig& ssl_config);
(...skipping 21 matching lines...) Expand all
201 bool signed_cert_timestamps_received_; 205 bool signed_cert_timestamps_received_;
202 // True if a stapled OCSP response was received. 206 // True if a stapled OCSP response was received.
203 bool stapled_ocsp_response_received_; 207 bool stapled_ocsp_response_received_;
204 // Protocol negotiation extension used. 208 // Protocol negotiation extension used.
205 SSLNegotiationExtension negotiation_extension_; 209 SSLNegotiationExtension negotiation_extension_;
206 }; 210 };
207 211
208 } // namespace net 212 } // namespace net
209 213
210 #endif // NET_SOCKET_SSL_CLIENT_SOCKET_H_ 214 #endif // NET_SOCKET_SSL_CLIENT_SOCKET_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698