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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
71 CryptoOptions() {} | 71 CryptoOptions() {} |
72 | 72 |
73 // Helper method to return an instance of the CryptoOptions with GCM crypto | 73 // Helper method to return an instance of the CryptoOptions with GCM crypto |
74 // suites disabled. This method should be used instead of depending on current | 74 // suites disabled. This method should be used instead of depending on current |
75 // default values set by the constructor. | 75 // default values set by the constructor. |
76 static CryptoOptions NoGcm(); | 76 static CryptoOptions NoGcm(); |
77 | 77 |
78 // Enable GCM crypto suites from RFC 7714 for SRTP. GCM will only be used | 78 // Enable GCM crypto suites from RFC 7714 for SRTP. GCM will only be used |
79 // if both sides enable it. | 79 // if both sides enable it. |
80 bool enable_gcm_crypto_suites = false; | 80 bool enable_gcm_crypto_suites = false; |
| 81 |
| 82 // If set to true, encrypted RTP header extensions as defined in RFC 6904 |
| 83 // will be negotiated. They will only be used if both peers support them. |
| 84 bool enable_encrypted_rtp_header_extensions = false; |
81 }; | 85 }; |
82 | 86 |
83 // Returns supported crypto suites, given |crypto_options|. | 87 // Returns supported crypto suites, given |crypto_options|. |
84 // CS_AES_CM_128_HMAC_SHA1_32 will be preferred by default. | 88 // CS_AES_CM_128_HMAC_SHA1_32 will be preferred by default. |
85 std::vector<int> GetSupportedDtlsSrtpCryptoSuites( | 89 std::vector<int> GetSupportedDtlsSrtpCryptoSuites( |
86 const rtc::CryptoOptions& crypto_options); | 90 const rtc::CryptoOptions& crypto_options); |
87 | 91 |
88 // SSLStreamAdapter : A StreamInterfaceAdapter that does SSL/TLS. | 92 // SSLStreamAdapter : A StreamInterfaceAdapter that does SSL/TLS. |
89 // After SSL has been started, the stream will only open on successful | 93 // After SSL has been started, the stream will only open on successful |
90 // SSL verification of certificates, and the communication is | 94 // SSL verification of certificates, and the communication is |
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
266 | 270 |
267 // If true (default), the client is required to provide a certificate during | 271 // If true (default), the client is required to provide a certificate during |
268 // handshake. If no certificate is given, handshake fails. This applies to | 272 // handshake. If no certificate is given, handshake fails. This applies to |
269 // server mode only. | 273 // server mode only. |
270 bool client_auth_enabled_; | 274 bool client_auth_enabled_; |
271 }; | 275 }; |
272 | 276 |
273 } // namespace rtc | 277 } // namespace rtc |
274 | 278 |
275 #endif // WEBRTC_RTC_BASE_SSLSTREAMADAPTER_H_ | 279 #endif // WEBRTC_RTC_BASE_SSLSTREAMADAPTER_H_ |
OLD | NEW |