Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(905)

Side by Side Diff: webrtc/base/sslstreamadapter.h

Issue 2761143002: Support encrypted RTP extensions (RFC 6904) (Closed)
Patch Set: Don't negotiate extension ids in SrtpFilter, more changes after feedback from Taylor. Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 CryptoOptions() {} 73 CryptoOptions() {}
74 74
75 // Helper method to return an instance of the CryptoOptions with GCM crypto 75 // Helper method to return an instance of the CryptoOptions with GCM crypto
76 // suites disabled. This method should be used instead of depending on current 76 // suites disabled. This method should be used instead of depending on current
77 // default values set by the constructor. 77 // default values set by the constructor.
78 static CryptoOptions NoGcm(); 78 static CryptoOptions NoGcm();
79 79
80 // Enable GCM crypto suites from RFC 7714 for SRTP. GCM will only be used 80 // Enable GCM crypto suites from RFC 7714 for SRTP. GCM will only be used
81 // if both sides enable it. 81 // if both sides enable it.
82 bool enable_gcm_crypto_suites = false; 82 bool enable_gcm_crypto_suites = false;
83
84 // If set to true, encrypted RTP header extensions as defined in RFC 6904
85 // will be negotiated. They will be only used if both peers support them.
86 bool enable_encrypted_rtp_header_extensions = false;
83 }; 87 };
84 88
85 // SSLStreamAdapter : A StreamInterfaceAdapter that does SSL/TLS. 89 // SSLStreamAdapter : A StreamInterfaceAdapter that does SSL/TLS.
86 // After SSL has been started, the stream will only open on successful 90 // After SSL has been started, the stream will only open on successful
87 // SSL verification of certificates, and the communication is 91 // SSL verification of certificates, and the communication is
88 // encrypted of course. 92 // encrypted of course.
89 // 93 //
90 // This class was written with SSLAdapter as a starting point. It 94 // This class was written with SSLAdapter as a starting point. It
91 // offers a similar interface, with two differences: there is no 95 // offers a similar interface, with two differences: there is no
92 // support for a restartable SSL connection, and this class has a 96 // support for a restartable SSL connection, and this class has a
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after
263 267
264 // If true (default), the client is required to provide a certificate during 268 // If true (default), the client is required to provide a certificate during
265 // handshake. If no certificate is given, handshake fails. This applies to 269 // handshake. If no certificate is given, handshake fails. This applies to
266 // server mode only. 270 // server mode only.
267 bool client_auth_enabled_; 271 bool client_auth_enabled_;
268 }; 272 };
269 273
270 } // namespace rtc 274 } // namespace rtc
271 275
272 #endif // WEBRTC_BASE_SSLSTREAMADAPTER_H_ 276 #endif // WEBRTC_BASE_SSLSTREAMADAPTER_H_
OLDNEW
« no previous file with comments | « webrtc/BUILD.gn ('k') | webrtc/config.h » ('j') | webrtc/config.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698