| 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 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 184 const uint8_t* context, | 184 const uint8_t* context, |
| 185 size_t context_len, | 185 size_t context_len, |
| 186 bool use_context, | 186 bool use_context, |
| 187 uint8_t* result, | 187 uint8_t* result, |
| 188 size_t result_len); | 188 size_t result_len); |
| 189 | 189 |
| 190 // DTLS-SRTP interface | 190 // DTLS-SRTP interface |
| 191 virtual bool SetDtlsSrtpCryptoSuites(const std::vector<int>& crypto_suites); | 191 virtual bool SetDtlsSrtpCryptoSuites(const std::vector<int>& crypto_suites); |
| 192 virtual bool GetDtlsSrtpCryptoSuite(int* crypto_suite); | 192 virtual bool GetDtlsSrtpCryptoSuite(int* crypto_suite); |
| 193 | 193 |
| 194 // Returns true if a TLS connection has been established. |
| 195 // The only difference between this and "GetState() == SE_OPEN" is that if |
| 196 // the peer certificate digest hasn't been verified, the state will still be |
| 197 // SS_OPENING but IsTlsConnected should return true. |
| 198 virtual bool IsTlsConnected() = 0; |
| 199 |
| 194 // Capabilities testing | 200 // Capabilities testing |
| 195 static bool HaveDtls(); | 201 static bool HaveDtls(); |
| 196 static bool HaveDtlsSrtp(); | 202 static bool HaveDtlsSrtp(); |
| 197 static bool HaveExporter(); | 203 static bool HaveExporter(); |
| 198 static bool IsBoringSsl(); | 204 static bool IsBoringSsl(); |
| 199 | 205 |
| 200 // Returns true iff the supplied cipher is deemed to be strong. | 206 // Returns true iff the supplied cipher is deemed to be strong. |
| 201 // TODO(torbjorng): Consider removing the KeyType argument. | 207 // TODO(torbjorng): Consider removing the KeyType argument. |
| 202 static bool IsAcceptableCipher(int cipher, KeyType key_type); | 208 static bool IsAcceptableCipher(int cipher, KeyType key_type); |
| 203 static bool IsAcceptableCipher(const std::string& cipher, KeyType key_type); | 209 static bool IsAcceptableCipher(const std::string& cipher, KeyType key_type); |
| (...skipping 11 matching lines...) Expand all Loading... |
| 215 | 221 |
| 216 // If true (default), the client is required to provide a certificate during | 222 // If true (default), the client is required to provide a certificate during |
| 217 // handshake. If no certificate is given, handshake fails. This applies to | 223 // handshake. If no certificate is given, handshake fails. This applies to |
| 218 // server mode only. | 224 // server mode only. |
| 219 bool client_auth_enabled_; | 225 bool client_auth_enabled_; |
| 220 }; | 226 }; |
| 221 | 227 |
| 222 } // namespace rtc | 228 } // namespace rtc |
| 223 | 229 |
| 224 #endif // WEBRTC_BASE_SSLSTREAMADAPTER_H_ | 230 #endif // WEBRTC_BASE_SSLSTREAMADAPTER_H_ |
| OLD | NEW |