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

Side by Side Diff: webrtc/base/sslstreamadapter.h

Issue 2526433002: Only use BoringSSL time callback in unit tests. (Closed)
Patch Set: Merging with master. Created 4 years 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 | « webrtc/base/opensslstreamadapter.cc ('k') | webrtc/base/sslstreamadapter.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 /* 1 /*
2 * Copyright 2004 The WebRTC Project Authors. All rights reserved. 2 * Copyright 2004 The WebRTC Project Authors. All rights reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source 5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 10
(...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after
237 // Returns true iff the supplied cipher is deemed to be strong. 237 // Returns true iff the supplied cipher is deemed to be strong.
238 // TODO(torbjorng): Consider removing the KeyType argument. 238 // TODO(torbjorng): Consider removing the KeyType argument.
239 static bool IsAcceptableCipher(int cipher, KeyType key_type); 239 static bool IsAcceptableCipher(int cipher, KeyType key_type);
240 static bool IsAcceptableCipher(const std::string& cipher, KeyType key_type); 240 static bool IsAcceptableCipher(const std::string& cipher, KeyType key_type);
241 241
242 // TODO(guoweis): Move this away from a static class method. Currently this is 242 // TODO(guoweis): Move this away from a static class method. Currently this is
243 // introduced such that any caller could depend on sslstreamadapter.h without 243 // introduced such that any caller could depend on sslstreamadapter.h without
244 // depending on specific SSL implementation. 244 // depending on specific SSL implementation.
245 static std::string SslCipherSuiteToName(int cipher_suite); 245 static std::string SslCipherSuiteToName(int cipher_suite);
246 246
247 // Use our timeutils.h source of timing in BoringSSL, allowing us to test
248 // using a fake clock.
249 static void enable_time_callback_for_testing();
250
247 sigslot::signal1<SSLHandshakeError> SignalSSLHandshakeError; 251 sigslot::signal1<SSLHandshakeError> SignalSSLHandshakeError;
248 252
249 private: 253 private:
250 // If true, the server certificate need not match the configured 254 // If true, the server certificate need not match the configured
251 // server_name, and in fact missing certificate authority and other 255 // server_name, and in fact missing certificate authority and other
252 // verification errors are ignored. 256 // verification errors are ignored.
253 bool ignore_bad_cert_; 257 bool ignore_bad_cert_;
254 258
255 // If true (default), the client is required to provide a certificate during 259 // If true (default), the client is required to provide a certificate during
256 // handshake. If no certificate is given, handshake fails. This applies to 260 // handshake. If no certificate is given, handshake fails. This applies to
257 // server mode only. 261 // server mode only.
258 bool client_auth_enabled_; 262 bool client_auth_enabled_;
259 }; 263 };
260 264
261 } // namespace rtc 265 } // namespace rtc
262 266
263 #endif // WEBRTC_BASE_SSLSTREAMADAPTER_H_ 267 #endif // WEBRTC_BASE_SSLSTREAMADAPTER_H_
OLDNEW
« no previous file with comments | « webrtc/base/opensslstreamadapter.cc ('k') | webrtc/base/sslstreamadapter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698