| 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 210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 221 // DTLS-SRTP interface | 221 // DTLS-SRTP interface |
| 222 virtual bool SetDtlsSrtpCryptoSuites(const std::vector<int>& crypto_suites); | 222 virtual bool SetDtlsSrtpCryptoSuites(const std::vector<int>& crypto_suites); |
| 223 virtual bool GetDtlsSrtpCryptoSuite(int* crypto_suite); | 223 virtual bool GetDtlsSrtpCryptoSuite(int* crypto_suite); |
| 224 | 224 |
| 225 // Returns true if a TLS connection has been established. | 225 // Returns true if a TLS connection has been established. |
| 226 // The only difference between this and "GetState() == SE_OPEN" is that if | 226 // The only difference between this and "GetState() == SE_OPEN" is that if |
| 227 // the peer certificate digest hasn't been verified, the state will still be | 227 // the peer certificate digest hasn't been verified, the state will still be |
| 228 // SS_OPENING but IsTlsConnected should return true. | 228 // SS_OPENING but IsTlsConnected should return true. |
| 229 virtual bool IsTlsConnected() = 0; | 229 virtual bool IsTlsConnected() = 0; |
| 230 | 230 |
| 231 // Capabilities testing | 231 // Capabilities testing. |
| 232 static bool HaveDtls(); | 232 // Used to have "DTLS supported", "DTLS-SRTP supported" etc. methods, but now |
| 233 static bool HaveDtlsSrtp(); | 233 // that's assumed. |
| 234 static bool HaveExporter(); | |
| 235 static bool IsBoringSsl(); | 234 static bool IsBoringSsl(); |
| 236 | 235 |
| 237 // Returns true iff the supplied cipher is deemed to be strong. | 236 // Returns true iff the supplied cipher is deemed to be strong. |
| 238 // TODO(torbjorng): Consider removing the KeyType argument. | 237 // TODO(torbjorng): Consider removing the KeyType argument. |
| 239 static bool IsAcceptableCipher(int cipher, KeyType key_type); | 238 static bool IsAcceptableCipher(int cipher, KeyType key_type); |
| 240 static bool IsAcceptableCipher(const std::string& cipher, KeyType key_type); | 239 static bool IsAcceptableCipher(const std::string& cipher, KeyType key_type); |
| 241 | 240 |
| 242 // TODO(guoweis): Move this away from a static class method. Currently this is | 241 // TODO(guoweis): Move this away from a static class method. Currently this is |
| 243 // introduced such that any caller could depend on sslstreamadapter.h without | 242 // introduced such that any caller could depend on sslstreamadapter.h without |
| 244 // depending on specific SSL implementation. | 243 // depending on specific SSL implementation. |
| (...skipping 13 matching lines...) Expand all Loading... |
| 258 | 257 |
| 259 // If true (default), the client is required to provide a certificate during | 258 // If true (default), the client is required to provide a certificate during |
| 260 // handshake. If no certificate is given, handshake fails. This applies to | 259 // handshake. If no certificate is given, handshake fails. This applies to |
| 261 // server mode only. | 260 // server mode only. |
| 262 bool client_auth_enabled_; | 261 bool client_auth_enabled_; |
| 263 }; | 262 }; |
| 264 | 263 |
| 265 } // namespace rtc | 264 } // namespace rtc |
| 266 | 265 |
| 267 #endif // WEBRTC_BASE_SSLSTREAMADAPTER_H_ | 266 #endif // WEBRTC_BASE_SSLSTREAMADAPTER_H_ |
| OLD | NEW |