Index: webrtc/p2p/base/transportcontroller.cc |
diff --git a/webrtc/p2p/base/transportcontroller.cc b/webrtc/p2p/base/transportcontroller.cc |
index f06a180088608301c7d73560a346b42383b69481..beff291d111bd55a47b2b4eec8021bd0f7492adf 100644 |
--- a/webrtc/p2p/base/transportcontroller.cc |
+++ b/webrtc/p2p/base/transportcontroller.cc |
@@ -65,23 +65,17 @@ class TransportController::ChannelPair { |
RTC_DISALLOW_COPY_AND_ASSIGN(ChannelPair); |
}; |
-TransportController::TransportController(rtc::Thread* signaling_thread, |
- rtc::Thread* network_thread, |
- PortAllocator* port_allocator, |
- bool redetermine_role_on_ice_restart) |
+TransportController::TransportController( |
+ rtc::Thread* signaling_thread, |
+ rtc::Thread* network_thread, |
+ PortAllocator* port_allocator, |
+ bool redetermine_role_on_ice_restart, |
+ const rtc::CryptoOptions& crypto_options) |
: signaling_thread_(signaling_thread), |
network_thread_(network_thread), |
port_allocator_(port_allocator), |
redetermine_role_on_ice_restart_(redetermine_role_on_ice_restart) {} |
-TransportController::TransportController(rtc::Thread* signaling_thread, |
- rtc::Thread* network_thread, |
- PortAllocator* port_allocator) |
- : TransportController(signaling_thread, |
- network_thread, |
- port_allocator, |
- true) {} |
- |
TransportController::~TransportController() { |
// Channel destructors may try to send packets, so this needs to happen on |
// the network thread. |
@@ -362,7 +356,7 @@ DtlsTransportInternal* TransportController::CreateDtlsTransportChannel_n( |
const std::string&, |
int, |
IceTransportInternal* ice) { |
- DtlsTransport* dtls = new DtlsTransport(ice); |
+ DtlsTransport* dtls = new DtlsTransport(ice, crypto_options_); |
dtls->SetSslMaxProtocolVersion(ssl_max_version_); |
return dtls; |
} |