Index: pc/srtptransport.h |
diff --git a/pc/srtptransport.h b/pc/srtptransport.h |
index 9f20e1d8f662cd5cfc20139f5f88e99360be54f9..5f3643654423f34dbd5ea2c7fa7d9ebfc0204208 100644 |
--- a/pc/srtptransport.h |
+++ b/pc/srtptransport.h |
@@ -115,11 +115,19 @@ class SrtpTransport : public RtpTransportInternal { |
void ResetParams(); |
- // Set the header extension ids that should be encrypted for the given source. |
+ // Set the header extension ids that should be encrypted. |
// This method doesn't immediately update the SRTP session with the new IDs, |
// and you need to call SetRtpParams for that to happen. |
- void SetEncryptedHeaderExtensionIds(cricket::ContentSource source, |
- const std::vector<int>& extension_ids); |
+ |
+ void SetSendEncryptedHeaderExtensionIds( |
+ const std::vector<int>& send_extension_ids) { |
+ send_encrypted_header_extension_ids_ = send_extension_ids; |
+ } |
+ |
+ void SetRecvEncryptedHeaderExtensionIds( |
+ const std::vector<int>& recv_extension_ids) { |
+ recv_encrypted_header_extension_ids_ = recv_extension_ids; |
+ } |
// If external auth is enabled, SRTP will write a dummy auth tag that then |
// later must get replaced before the packet is sent out. Only supported for |