OLD | NEW |
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 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
141 // kNextProtoNoOverlap: *proto is set to the first protocol in the | 141 // kNextProtoNoOverlap: *proto is set to the first protocol in the |
142 // supported list. | 142 // supported list. |
143 virtual NextProtoStatus GetNextProto(std::string* proto) = 0; | 143 virtual NextProtoStatus GetNextProto(std::string* proto) = 0; |
144 | 144 |
145 static NextProto NextProtoFromString(const std::string& proto_string); | 145 static NextProto NextProtoFromString(const std::string& proto_string); |
146 | 146 |
147 static const char* NextProtoToString(NextProto next_proto); | 147 static const char* NextProtoToString(NextProto next_proto); |
148 | 148 |
149 static const char* NextProtoStatusToString(const NextProtoStatus status); | 149 static const char* NextProtoStatusToString(const NextProtoStatus status); |
150 | 150 |
| 151 // Returns true if |error| is OK or |load_flags| ignores certificate errors |
| 152 // and |error| is a certificate error. |
151 static bool IgnoreCertError(int error, int load_flags); | 153 static bool IgnoreCertError(int error, int load_flags); |
152 | 154 |
153 // ClearSessionCache clears the SSL session cache, used to resume SSL | 155 // ClearSessionCache clears the SSL session cache, used to resume SSL |
154 // sessions. | 156 // sessions. |
155 static void ClearSessionCache(); | 157 static void ClearSessionCache(); |
156 | 158 |
157 // Get the maximum SSL version supported by the underlying library and | 159 // Get the maximum SSL version supported by the underlying library and |
158 // cryptographic implementation. | 160 // cryptographic implementation. |
159 static uint16 GetMaxSupportedSSLVersion(); | 161 static uint16 GetMaxSupportedSSLVersion(); |
160 | 162 |
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
255 bool signed_cert_timestamps_received_; | 257 bool signed_cert_timestamps_received_; |
256 // True if a stapled OCSP response was received. | 258 // True if a stapled OCSP response was received. |
257 bool stapled_ocsp_response_received_; | 259 bool stapled_ocsp_response_received_; |
258 // Protocol negotiation extension used. | 260 // Protocol negotiation extension used. |
259 SSLNegotiationExtension negotiation_extension_; | 261 SSLNegotiationExtension negotiation_extension_; |
260 }; | 262 }; |
261 | 263 |
262 } // namespace net | 264 } // namespace net |
263 | 265 |
264 #endif // NET_SOCKET_SSL_CLIENT_SOCKET_H_ | 266 #endif // NET_SOCKET_SSL_CLIENT_SOCKET_H_ |
OLD | NEW |