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 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
102 bool use_context, | 102 bool use_context, |
103 uint8_t* result, | 103 uint8_t* result, |
104 size_t result_len) override; | 104 size_t result_len) override; |
105 | 105 |
106 // DTLS-SRTP interface | 106 // DTLS-SRTP interface |
107 bool SetDtlsSrtpCryptoSuites(const std::vector<int>& crypto_suites) override; | 107 bool SetDtlsSrtpCryptoSuites(const std::vector<int>& crypto_suites) override; |
108 bool GetDtlsSrtpCryptoSuite(int* crypto_suite) override; | 108 bool GetDtlsSrtpCryptoSuite(int* crypto_suite) override; |
109 | 109 |
110 bool IsTlsConnected() override; | 110 bool IsTlsConnected() override; |
111 | 111 |
112 // Capabilities interfaces. | 112 // Capabilities interfaces |
| 113 static bool HaveDtls(); |
| 114 static bool HaveDtlsSrtp(); |
| 115 static bool HaveExporter(); |
113 static bool IsBoringSsl(); | 116 static bool IsBoringSsl(); |
114 | 117 |
115 static bool IsAcceptableCipher(int cipher, KeyType key_type); | 118 static bool IsAcceptableCipher(int cipher, KeyType key_type); |
116 static bool IsAcceptableCipher(const std::string& cipher, KeyType key_type); | 119 static bool IsAcceptableCipher(const std::string& cipher, KeyType key_type); |
117 | 120 |
118 // Use our timeutils.h source of timing in BoringSSL, allowing us to test | 121 // Use our timeutils.h source of timing in BoringSSL, allowing us to test |
119 // using a fake clock. | 122 // using a fake clock. |
120 static void enable_time_callback_for_testing(); | 123 static void enable_time_callback_for_testing(); |
121 | 124 |
122 protected: | 125 protected: |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
212 | 215 |
213 // Max. allowed protocol version | 216 // Max. allowed protocol version |
214 SSLProtocolVersion ssl_max_version_; | 217 SSLProtocolVersion ssl_max_version_; |
215 }; | 218 }; |
216 | 219 |
217 ///////////////////////////////////////////////////////////////////////////// | 220 ///////////////////////////////////////////////////////////////////////////// |
218 | 221 |
219 } // namespace rtc | 222 } // namespace rtc |
220 | 223 |
221 #endif // WEBRTC_BASE_OPENSSLSTREAMADAPTER_H__ | 224 #endif // WEBRTC_BASE_OPENSSLSTREAMADAPTER_H__ |
OLD | NEW |