OLD | NEW |
---|---|
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 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
111 | 111 |
112 // Capabilities interfaces | 112 // Capabilities interfaces |
113 static bool HaveDtls(); | 113 static bool HaveDtls(); |
114 static bool HaveDtlsSrtp(); | 114 static bool HaveDtlsSrtp(); |
115 static bool HaveExporter(); | 115 static bool HaveExporter(); |
116 static bool IsBoringSsl(); | 116 static bool IsBoringSsl(); |
117 | 117 |
118 static bool IsAcceptableCipher(int cipher, KeyType key_type); | 118 static bool IsAcceptableCipher(int cipher, KeyType key_type); |
119 static bool IsAcceptableCipher(const std::string& cipher, KeyType key_type); | 119 static bool IsAcceptableCipher(const std::string& cipher, KeyType key_type); |
120 | 120 |
121 // Use our timeutils.h source of timing in BoringSSL, allowing us to test | |
122 // using a fake clock. | |
123 static void enable_time_callback_for_testing(); | |
pthatcher1
2016/11/29 00:32:40
EnableFakeClock?
| |
124 | |
121 protected: | 125 protected: |
122 void OnEvent(StreamInterface* stream, int events, int err) override; | 126 void OnEvent(StreamInterface* stream, int events, int err) override; |
123 | 127 |
124 private: | 128 private: |
125 enum SSLState { | 129 enum SSLState { |
126 // Before calling one of the StartSSL methods, data flows | 130 // Before calling one of the StartSSL methods, data flows |
127 // in clear text. | 131 // in clear text. |
128 SSL_NONE, | 132 SSL_NONE, |
129 SSL_WAIT, // waiting for the stream to open to start SSL negotiation | 133 SSL_WAIT, // waiting for the stream to open to start SSL negotiation |
130 SSL_CONNECTING, // SSL negotiation in progress | 134 SSL_CONNECTING, // SSL negotiation in progress |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
211 | 215 |
212 // Max. allowed protocol version | 216 // Max. allowed protocol version |
213 SSLProtocolVersion ssl_max_version_; | 217 SSLProtocolVersion ssl_max_version_; |
214 }; | 218 }; |
215 | 219 |
216 ///////////////////////////////////////////////////////////////////////////// | 220 ///////////////////////////////////////////////////////////////////////////// |
217 | 221 |
218 } // namespace rtc | 222 } // namespace rtc |
219 | 223 |
220 #endif // WEBRTC_BASE_OPENSSLSTREAMADAPTER_H__ | 224 #endif // WEBRTC_BASE_OPENSSLSTREAMADAPTER_H__ |
OLD | NEW |