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

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

Issue 1403863002: Enable exporting SSLKEYLOGFILE on Android w/ command line arguments (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: wrapping up 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 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 // Export SSL key material to be logged to the specified file if platform
118 // supports OPENSSL. Must be called before SSLClientSockets are created.
davidben 2015/10/15 19:08:23 Nit: supports OPENSSL -> uses OpenSSL
Zhongyi Shi 2015/10/15 19:47:57 Done.
119 static void SetSSLKeyLogFile(const std::string& ssl_keylog_file);
120
117 // Returns true if |error| is OK or |load_flags| ignores certificate errors 121 // Returns true if |error| is OK or |load_flags| ignores certificate errors
118 // and |error| is a certificate error. 122 // and |error| is a certificate error.
119 static bool IgnoreCertError(int error, int load_flags); 123 static bool IgnoreCertError(int error, int load_flags);
120 124
121 // ClearSessionCache clears the SSL session cache, used to resume SSL 125 // ClearSessionCache clears the SSL session cache, used to resume SSL
122 // sessions. 126 // sessions.
123 static void ClearSessionCache(); 127 static void ClearSessionCache();
124 128
125 // Returns the ChannelIDService used by this socket, or NULL if 129 // Returns the ChannelIDService used by this socket, or NULL if
126 // channel ids are not supported. 130 // channel ids are not supported.
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
195 bool signed_cert_timestamps_received_; 199 bool signed_cert_timestamps_received_;
196 // True if a stapled OCSP response was received. 200 // True if a stapled OCSP response was received.
197 bool stapled_ocsp_response_received_; 201 bool stapled_ocsp_response_received_;
198 // Protocol negotiation extension used. 202 // Protocol negotiation extension used.
199 SSLNegotiationExtension negotiation_extension_; 203 SSLNegotiationExtension negotiation_extension_;
200 }; 204 };
201 205
202 } // namespace net 206 } // namespace net
203 207
204 #endif // NET_SOCKET_SSL_CLIENT_SOCKET_H_ 208 #endif // NET_SOCKET_SSL_CLIENT_SOCKET_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698