| 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 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 187 // Capabilities testing | 187 // Capabilities testing |
| 188 static bool HaveDtls(); | 188 static bool HaveDtls(); |
| 189 static bool HaveDtlsSrtp(); | 189 static bool HaveDtlsSrtp(); |
| 190 static bool HaveExporter(); | 190 static bool HaveExporter(); |
| 191 | 191 |
| 192 // Returns the default Ssl cipher used between streams of this class | 192 // Returns the default Ssl cipher used between streams of this class |
| 193 // for the given protocol version. This is used by the unit tests. | 193 // for the given protocol version. This is used by the unit tests. |
| 194 // TODO(guoweis): Move this away from a static class method. | 194 // TODO(guoweis): Move this away from a static class method. |
| 195 static int GetDefaultSslCipherForTest(SSLProtocolVersion version, | 195 static int GetDefaultSslCipherForTest(SSLProtocolVersion version, |
| 196 KeyType key_type); | 196 KeyType key_type); |
| 197 static bool IsAcceptableCipher(int cipher, |
| 198 SSLProtocolVersion version, |
| 199 KeyType key_type); |
| 200 static bool IsAcceptableCipher(std::string cipher, |
| 201 SSLProtocolVersion version, |
| 202 KeyType key_type); |
| 197 | 203 |
| 198 // TODO(guoweis): Move this away from a static class method. Currently this is | 204 // TODO(guoweis): Move this away from a static class method. Currently this is |
| 199 // introduced such that any caller could depend on sslstreamadapter.h without | 205 // introduced such that any caller could depend on sslstreamadapter.h without |
| 200 // depending on specific SSL implementation. | 206 // depending on specific SSL implementation. |
| 201 static std::string SslCipherSuiteToName(int cipher_suite); | 207 static std::string SslCipherSuiteToName(int cipher_suite); |
| 202 | 208 |
| 203 private: | 209 private: |
| 204 // If true, the server certificate need not match the configured | 210 // If true, the server certificate need not match the configured |
| 205 // server_name, and in fact missing certificate authority and other | 211 // server_name, and in fact missing certificate authority and other |
| 206 // verification errors are ignored. | 212 // verification errors are ignored. |
| 207 bool ignore_bad_cert_; | 213 bool ignore_bad_cert_; |
| 208 | 214 |
| 209 // If true (default), the client is required to provide a certificate during | 215 // If true (default), the client is required to provide a certificate during |
| 210 // handshake. If no certificate is given, handshake fails. This applies to | 216 // handshake. If no certificate is given, handshake fails. This applies to |
| 211 // server mode only. | 217 // server mode only. |
| 212 bool client_auth_enabled_; | 218 bool client_auth_enabled_; |
| 213 }; | 219 }; |
| 214 | 220 |
| 215 } // namespace rtc | 221 } // namespace rtc |
| 216 | 222 |
| 217 #endif // WEBRTC_BASE_SSLSTREAMADAPTER_H_ | 223 #endif // WEBRTC_BASE_SSLSTREAMADAPTER_H_ |
| OLD | NEW |