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(); | |
116 static bool IsBoringSsl(); | 113 static bool IsBoringSsl(); |
117 | 114 |
118 static bool IsAcceptableCipher(int cipher, KeyType key_type); | 115 static bool IsAcceptableCipher(int cipher, KeyType key_type); |
119 static bool IsAcceptableCipher(const std::string& cipher, KeyType key_type); | 116 static bool IsAcceptableCipher(const std::string& cipher, KeyType key_type); |
120 | 117 |
121 // Use our timeutils.h source of timing in BoringSSL, allowing us to test | 118 // Use our timeutils.h source of timing in BoringSSL, allowing us to test |
122 // using a fake clock. | 119 // using a fake clock. |
123 static void enable_time_callback_for_testing(); | 120 static void enable_time_callback_for_testing(); |
124 | 121 |
125 protected: | 122 protected: |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
215 | 212 |
216 // Max. allowed protocol version | 213 // Max. allowed protocol version |
217 SSLProtocolVersion ssl_max_version_; | 214 SSLProtocolVersion ssl_max_version_; |
218 }; | 215 }; |
219 | 216 |
220 ///////////////////////////////////////////////////////////////////////////// | 217 ///////////////////////////////////////////////////////////////////////////// |
221 | 218 |
222 } // namespace rtc | 219 } // namespace rtc |
223 | 220 |
224 #endif // WEBRTC_BASE_OPENSSLSTREAMADAPTER_H__ | 221 #endif // WEBRTC_BASE_OPENSSLSTREAMADAPTER_H__ |
OLD | NEW |