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

Unified Diff: talk/session/media/channel.cc

Issue 1380603005: Revert of Change WebRTC SslCipher to be exposed as number only. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc@master
Patch Set: Created 5 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « talk/session/media/channel.h ('k') | talk/session/media/channel_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: talk/session/media/channel.cc
diff --git a/talk/session/media/channel.cc b/talk/session/media/channel.cc
index 56209800fa7eddb8ecd4fd01e26d2f86bbf6a137..5a6b7e198f16cb8380790e82d4eda8bc958e4c2a 100644
--- a/talk/session/media/channel.cc
+++ b/talk/session/media/channel.cc
@@ -816,9 +816,9 @@
// We always use the default SRTP ciphers for RTCP, but we may use different
// ciphers for RTP depending on the media type.
if (!rtcp) {
- GetSrtpCryptoSuiteNames(&ciphers);
+ GetSrtpCiphers(&ciphers);
} else {
- GetDefaultSrtpCryptoSuiteNames(&ciphers);
+ GetSupportedDefaultCryptoSuites(&ciphers);
}
return tc->SetSrtpCiphers(ciphers);
}
@@ -841,7 +841,7 @@
std::string selected_cipher;
- if (!channel->GetSrtpCryptoSuite(&selected_cipher)) {
+ if (!channel->GetSrtpCipher(&selected_cipher)) {
LOG(LS_ERROR) << "No DTLS-SRTP selected cipher";
return false;
}
@@ -1627,8 +1627,7 @@
}
}
-void VoiceChannel::GetSrtpCryptoSuiteNames(
- std::vector<std::string>* ciphers) const {
+void VoiceChannel::GetSrtpCiphers(std::vector<std::string>* ciphers) const {
GetSupportedAudioCryptoSuites(ciphers);
}
@@ -2061,8 +2060,7 @@
}
}
-void VideoChannel::GetSrtpCryptoSuiteNames(
- std::vector<std::string>* ciphers) const {
+void VideoChannel::GetSrtpCiphers(std::vector<std::string>* ciphers) const {
GetSupportedVideoCryptoSuites(ciphers);
}
@@ -2397,8 +2395,7 @@
}
}
-void DataChannel::GetSrtpCryptoSuiteNames(
- std::vector<std::string>* ciphers) const {
+void DataChannel::GetSrtpCiphers(std::vector<std::string>* ciphers) const {
GetSupportedDataCryptoSuites(ciphers);
}
« no previous file with comments | « talk/session/media/channel.h ('k') | talk/session/media/channel_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698