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

Side by Side Diff: webrtc/api/peerconnectioninterface.h

Issue 2815513012: Negotiate the same SRTP crypto suites for every DTLS association formed. (Closed)
Patch Set: Prefer 32-bit HMAC by default. Also cleaning up some things. 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
« no previous file with comments | « no previous file | webrtc/base/sslstreamadapter.h » ('j') | webrtc/base/sslstreamadapter.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2012 The WebRTC project authors. All Rights Reserved. 2 * Copyright 2012 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 860 matching lines...) Expand 10 before | Expand all | Expand 10 after
871 871
872 // Sets the maximum supported protocol version. The highest version 872 // Sets the maximum supported protocol version. The highest version
873 // supported by both ends will be used for the connection, i.e. if one 873 // supported by both ends will be used for the connection, i.e. if one
874 // party supports DTLS 1.0 and the other DTLS 1.2, DTLS 1.0 will be used. 874 // party supports DTLS 1.0 and the other DTLS 1.2, DTLS 1.0 will be used.
875 rtc::SSLProtocolVersion ssl_max_version = rtc::SSL_PROTOCOL_DTLS_12; 875 rtc::SSLProtocolVersion ssl_max_version = rtc::SSL_PROTOCOL_DTLS_12;
876 876
877 // Sets crypto related options, e.g. enabled cipher suites. 877 // Sets crypto related options, e.g. enabled cipher suites.
878 rtc::CryptoOptions crypto_options; 878 rtc::CryptoOptions crypto_options;
879 }; 879 };
880 880
881 // Set the options to be used for subsequently created PeerConnections.
881 virtual void SetOptions(const Options& options) = 0; 882 virtual void SetOptions(const Options& options) = 0;
882 883
883 virtual rtc::scoped_refptr<PeerConnectionInterface> CreatePeerConnection( 884 virtual rtc::scoped_refptr<PeerConnectionInterface> CreatePeerConnection(
884 const PeerConnectionInterface::RTCConfiguration& configuration, 885 const PeerConnectionInterface::RTCConfiguration& configuration,
885 std::unique_ptr<cricket::PortAllocator> allocator, 886 std::unique_ptr<cricket::PortAllocator> allocator,
886 std::unique_ptr<rtc::RTCCertificateGeneratorInterface> cert_generator, 887 std::unique_ptr<rtc::RTCCertificateGeneratorInterface> cert_generator,
887 PeerConnectionObserver* observer) = 0; 888 PeerConnectionObserver* observer) = 0;
888 889
889 // Deprecated; should use RTCConfiguration for everything that previously 890 // Deprecated; should use RTCConfiguration for everything that previously
890 // used constraints. 891 // used constraints.
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after
1093 cricket::WebRtcVideoEncoderFactory* encoder_factory, 1094 cricket::WebRtcVideoEncoderFactory* encoder_factory,
1094 cricket::WebRtcVideoDecoderFactory* decoder_factory) { 1095 cricket::WebRtcVideoDecoderFactory* decoder_factory) {
1095 return CreatePeerConnectionFactory( 1096 return CreatePeerConnectionFactory(
1096 worker_and_network_thread, worker_and_network_thread, signaling_thread, 1097 worker_and_network_thread, worker_and_network_thread, signaling_thread,
1097 default_adm, encoder_factory, decoder_factory); 1098 default_adm, encoder_factory, decoder_factory);
1098 } 1099 }
1099 1100
1100 } // namespace webrtc 1101 } // namespace webrtc
1101 1102
1102 #endif // WEBRTC_API_PEERCONNECTIONINTERFACE_H_ 1103 #endif // WEBRTC_API_PEERCONNECTIONINTERFACE_H_
OLDNEW
« no previous file with comments | « no previous file | webrtc/base/sslstreamadapter.h » ('j') | webrtc/base/sslstreamadapter.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698