Index: talk/session/media/srtpfilter.cc |
diff --git a/talk/session/media/srtpfilter.cc b/talk/session/media/srtpfilter.cc |
index f7ab0bed18ba1482329cc5a20cff60c5288318d0..33e42c09d4a1d0575245b60c7c9cfcba170c1aef 100644 |
--- a/talk/session/media/srtpfilter.cc |
+++ b/talk/session/media/srtpfilter.cc |
@@ -73,6 +73,8 @@ |
namespace cricket { |
+const char CS_AES_CM_128_HMAC_SHA1_80[] = "AES_CM_128_HMAC_SHA1_80"; |
+const char CS_AES_CM_128_HMAC_SHA1_32[] = "AES_CM_128_HMAC_SHA1_32"; |
const int SRTP_MASTER_KEY_BASE64_LEN = SRTP_MASTER_KEY_LEN * 4 / 3; |
const int SRTP_MASTER_KEY_KEY_LEN = 16; |
const int SRTP_MASTER_KEY_SALT_LEN = 14; |
@@ -661,10 +663,10 @@ |
srtp_policy_t policy; |
memset(&policy, 0, sizeof(policy)); |
- if (cs == rtc::CS_AES_CM_128_HMAC_SHA1_80) { |
+ if (cs == CS_AES_CM_128_HMAC_SHA1_80) { |
crypto_policy_set_aes_cm_128_hmac_sha1_80(&policy.rtp); |
crypto_policy_set_aes_cm_128_hmac_sha1_80(&policy.rtcp); |
- } else if (cs == rtc::CS_AES_CM_128_HMAC_SHA1_32) { |
+ } else if (cs == CS_AES_CM_128_HMAC_SHA1_32) { |
crypto_policy_set_aes_cm_128_hmac_sha1_32(&policy.rtp); // rtp is 32, |
crypto_policy_set_aes_cm_128_hmac_sha1_80(&policy.rtcp); // rtcp still 80 |
} else { |