Index: webrtc/p2p/base/transportchannel.cc |
diff --git a/webrtc/p2p/base/transportchannel.cc b/webrtc/p2p/base/transportchannel.cc |
index 63d84494e5485eb55b542def562c39c9a7df1398..9662f0ae6c7cbe5fb0ef1312be9fe5314de9e20f 100644 |
--- a/webrtc/p2p/base/transportchannel.cc |
+++ b/webrtc/p2p/base/transportchannel.cc |
@@ -54,4 +54,13 @@ void TransportChannel::set_dtls_state(DtlsTransportState state) { |
SignalDtlsState(this); |
} |
+// TODO(guoweis): Remove this function once everything is moved away. |
+bool TransportChannel::SetSrtpCiphers(const std::vector<std::string>& ciphers) { |
+ std::vector<int> crypto_suites; |
+ for (const auto cipher : ciphers) { |
+ crypto_suites.push_back(rtc::SrtpCryptoSuiteFromName(cipher)); |
+ } |
+ return SetSrtpCryptoSuites(crypto_suites); |
+} |
+ |
} // namespace cricket |