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 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
107 // kNextProtoNoOverlap: *proto is set to the first protocol in the | 107 // kNextProtoNoOverlap: *proto is set to the first protocol in the |
108 // supported list. | 108 // supported list. |
109 virtual NextProtoStatus GetNextProto(std::string* proto) const = 0; | 109 virtual NextProtoStatus GetNextProto(std::string* proto) const = 0; |
110 | 110 |
111 static NextProto NextProtoFromString(const std::string& proto_string); | 111 static NextProto NextProtoFromString(const std::string& proto_string); |
112 | 112 |
113 static const char* NextProtoToString(NextProto next_proto); | 113 static const char* NextProtoToString(NextProto next_proto); |
114 | 114 |
115 static const char* NextProtoStatusToString(const NextProtoStatus status); | 115 static const char* NextProtoStatusToString(const NextProtoStatus status); |
116 | 116 |
117 static void SetSSLKeyLogFile(std::string ssl_keylog_file); | |
Bryan McQuade
2015/10/15 01:05:26
suggest using 'const std::string&' rather than 'st
Bryan McQuade
2015/10/15 01:05:26
i'm wondering if we should #if defined(USE_OPENSSL
Zhongyi Shi
2015/10/15 02:02:04
Done.
| |
118 | |
117 // Returns true if |error| is OK or |load_flags| ignores certificate errors | 119 // Returns true if |error| is OK or |load_flags| ignores certificate errors |
118 // and |error| is a certificate error. | 120 // and |error| is a certificate error. |
119 static bool IgnoreCertError(int error, int load_flags); | 121 static bool IgnoreCertError(int error, int load_flags); |
120 | 122 |
121 // ClearSessionCache clears the SSL session cache, used to resume SSL | 123 // ClearSessionCache clears the SSL session cache, used to resume SSL |
122 // sessions. | 124 // sessions. |
123 static void ClearSessionCache(); | 125 static void ClearSessionCache(); |
124 | 126 |
125 // Returns the ChannelIDService used by this socket, or NULL if | 127 // Returns the ChannelIDService used by this socket, or NULL if |
126 // channel ids are not supported. | 128 // channel ids are not supported. |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
195 bool signed_cert_timestamps_received_; | 197 bool signed_cert_timestamps_received_; |
196 // True if a stapled OCSP response was received. | 198 // True if a stapled OCSP response was received. |
197 bool stapled_ocsp_response_received_; | 199 bool stapled_ocsp_response_received_; |
198 // Protocol negotiation extension used. | 200 // Protocol negotiation extension used. |
199 SSLNegotiationExtension negotiation_extension_; | 201 SSLNegotiationExtension negotiation_extension_; |
200 }; | 202 }; |
201 | 203 |
202 } // namespace net | 204 } // namespace net |
203 | 205 |
204 #endif // NET_SOCKET_SSL_CLIENT_SOCKET_H_ | 206 #endif // NET_SOCKET_SSL_CLIENT_SOCKET_H_ |
OLD | NEW |