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

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

Issue 1378613004: Set Token-Binding HTTP header (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@tb-tls-ext-new
Patch Set: rebase Created 5 years, 2 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 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 static bool IgnoreCertError(int error, int load_flags); 119 static bool IgnoreCertError(int error, int load_flags);
120 120
121 // ClearSessionCache clears the SSL session cache, used to resume SSL 121 // ClearSessionCache clears the SSL session cache, used to resume SSL
122 // sessions. 122 // sessions.
123 static void ClearSessionCache(); 123 static void ClearSessionCache();
124 124
125 // Returns the ChannelIDService used by this socket, or NULL if 125 // Returns the ChannelIDService used by this socket, or NULL if
126 // channel ids are not supported. 126 // channel ids are not supported.
127 virtual ChannelIDService* GetChannelIDService() const = 0; 127 virtual ChannelIDService* GetChannelIDService() const = 0;
128 128
129 // Returns the provided token binding as a serialized TokenBinding struct as
130 // defined in section 3 of draft-ietf-tokbind-protocol-02. This method has
131 // undefined behavior if the token_binding_negotiated field of SSLInfo is
132 // false (as set by GetSSLInfo).
133 virtual std::string GetProvidedTokenBinding() = 0;
134
129 // Returns the state of the handshake when it failed, or |SSL_FAILURE_NONE| if 135 // Returns the state of the handshake when it failed, or |SSL_FAILURE_NONE| if
130 // the handshake succeeded. This is used to classify causes of the TLS version 136 // the handshake succeeded. This is used to classify causes of the TLS version
131 // fallback. 137 // fallback.
132 virtual SSLFailureState GetSSLFailureState() const = 0; 138 virtual SSLFailureState GetSSLFailureState() const = 0;
133 139
134 protected: 140 protected:
135 void set_negotiation_extension( 141 void set_negotiation_extension(
136 SSLNegotiationExtension negotiation_extension) { 142 SSLNegotiationExtension negotiation_extension) {
137 negotiation_extension_ = negotiation_extension; 143 negotiation_extension_ = negotiation_extension;
138 } 144 }
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
204 bool signed_cert_timestamps_received_; 210 bool signed_cert_timestamps_received_;
205 // True if a stapled OCSP response was received. 211 // True if a stapled OCSP response was received.
206 bool stapled_ocsp_response_received_; 212 bool stapled_ocsp_response_received_;
207 // Protocol negotiation extension used. 213 // Protocol negotiation extension used.
208 SSLNegotiationExtension negotiation_extension_; 214 SSLNegotiationExtension negotiation_extension_;
209 }; 215 };
210 216
211 } // namespace net 217 } // namespace net
212 218
213 #endif // NET_SOCKET_SSL_CLIENT_SOCKET_H_ 219 #endif // NET_SOCKET_SSL_CLIENT_SOCKET_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698