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

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

Issue 1337673002: 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/mediasession.h ('k') | talk/session/media/mediasession_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: talk/session/media/mediasession.cc
diff --git a/talk/session/media/mediasession.cc b/talk/session/media/mediasession.cc
index 66d0caf9d774cd9dc3b80b9f79e7d551b6e5f2a6..99e1ea393600970a4795dc479c97fc718f98666b 100644
--- a/talk/session/media/mediasession.cc
+++ b/talk/session/media/mediasession.cc
@@ -155,25 +155,24 @@ bool FindMatchingCrypto(const CryptoParamsVec& cryptos,
void GetSupportedAudioCryptoSuites(
std::vector<std::string>* crypto_suites) {
#ifdef HAVE_SRTP
- crypto_suites->push_back(CS_AES_CM_128_HMAC_SHA1_32);
- crypto_suites->push_back(CS_AES_CM_128_HMAC_SHA1_80);
+ crypto_suites->push_back(rtc::CS_AES_CM_128_HMAC_SHA1_32);
+ crypto_suites->push_back(rtc::CS_AES_CM_128_HMAC_SHA1_80);
#endif
}
void GetSupportedVideoCryptoSuites(
std::vector<std::string>* crypto_suites) {
- GetSupportedDefaultCryptoSuites(crypto_suites);
+ GetDefaultSrtpCryptoSuiteNames(crypto_suites);
}
void GetSupportedDataCryptoSuites(
std::vector<std::string>* crypto_suites) {
- GetSupportedDefaultCryptoSuites(crypto_suites);
+ GetDefaultSrtpCryptoSuiteNames(crypto_suites);
}
-void GetSupportedDefaultCryptoSuites(
- std::vector<std::string>* crypto_suites) {
+void GetDefaultSrtpCryptoSuiteNames(std::vector<std::string>* crypto_suites) {
#ifdef HAVE_SRTP
- crypto_suites->push_back(CS_AES_CM_128_HMAC_SHA1_80);
+ crypto_suites->push_back(rtc::CS_AES_CM_128_HMAC_SHA1_80);
#endif
}
@@ -188,8 +187,9 @@ static bool SelectCrypto(const MediaContentDescription* offer,
for (CryptoParamsVec::const_iterator i = cryptos.begin();
i != cryptos.end(); ++i) {
- if (CS_AES_CM_128_HMAC_SHA1_80 == i->cipher_suite ||
- (CS_AES_CM_128_HMAC_SHA1_32 == i->cipher_suite && audio && !bundle)) {
+ if (rtc::CS_AES_CM_128_HMAC_SHA1_80 == i->cipher_suite ||
+ (rtc::CS_AES_CM_128_HMAC_SHA1_32 == i->cipher_suite && audio &&
+ !bundle)) {
return CreateCryptoParams(i->tag, i->cipher_suite, crypto);
}
}
« no previous file with comments | « talk/session/media/mediasession.h ('k') | talk/session/media/mediasession_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698