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 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 // Capabilities interfaces | 110 // Capabilities interfaces |
111 static bool HaveDtls(); | 111 static bool HaveDtls(); |
112 static bool HaveDtlsSrtp(); | 112 static bool HaveDtlsSrtp(); |
113 static bool HaveExporter(); | 113 static bool HaveExporter(); |
| 114 static bool IsBoringSsl(); |
114 | 115 |
115 static bool IsAcceptableCipher(int cipher, KeyType key_type); | 116 static bool IsAcceptableCipher(int cipher, KeyType key_type); |
116 static bool IsAcceptableCipher(const std::string& cipher, KeyType key_type); | 117 static bool IsAcceptableCipher(const std::string& cipher, KeyType key_type); |
117 | 118 |
118 protected: | 119 protected: |
119 void OnEvent(StreamInterface* stream, int events, int err) override; | 120 void OnEvent(StreamInterface* stream, int events, int err) override; |
120 | 121 |
121 private: | 122 private: |
122 enum SSLState { | 123 enum SSLState { |
123 // Before calling one of the StartSSL methods, data flows | 124 // Before calling one of the StartSSL methods, data flows |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
208 | 209 |
209 // Max. allowed protocol version | 210 // Max. allowed protocol version |
210 SSLProtocolVersion ssl_max_version_; | 211 SSLProtocolVersion ssl_max_version_; |
211 }; | 212 }; |
212 | 213 |
213 ///////////////////////////////////////////////////////////////////////////// | 214 ///////////////////////////////////////////////////////////////////////////// |
214 | 215 |
215 } // namespace rtc | 216 } // namespace rtc |
216 | 217 |
217 #endif // WEBRTC_BASE_OPENSSLSTREAMADAPTER_H__ | 218 #endif // WEBRTC_BASE_OPENSSLSTREAMADAPTER_H__ |
OLD | NEW |