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

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

Issue 947453003: IgnoreCertError should check if the error is a certificate error. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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 | « no previous file | net/socket/ssl_client_socket.cc » ('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) 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
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
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_
OLDNEW
« no previous file with comments | « no previous file | net/socket/ssl_client_socket.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698