mikey: Generate the correct SRTP policy

https://bugzilla.gnome.org/show_bug.cgi?id=774911
This commit is contained in:
Ulf Olsson 2016-11-23 13:48:06 +01:00 committed by Edward Hervey
parent 7e4697ec98
commit a4c1dfe4cd

View file

@ -2264,6 +2264,7 @@ gst_mikey_message_new_from_caps (GstCaps * caps)
gst_mikey_payload_sp_add_param (payload, GST_MIKEY_SP_SRTP_ENC_KEY_LEN, 1, gst_mikey_payload_sp_add_param (payload, GST_MIKEY_SP_SRTP_ENC_KEY_LEN, 1,
&byte); &byte);
/* only HMAC-SHA1 */ /* only HMAC-SHA1 */
byte = 1;
gst_mikey_payload_sp_add_param (payload, GST_MIKEY_SP_SRTP_AUTH_ALG, 1, gst_mikey_payload_sp_add_param (payload, GST_MIKEY_SP_SRTP_AUTH_ALG, 1,
&byte); &byte);
/* authentication key length */ /* authentication key length */
@ -2271,6 +2272,7 @@ gst_mikey_message_new_from_caps (GstCaps * caps)
gst_mikey_payload_sp_add_param (payload, GST_MIKEY_SP_SRTP_AUTH_KEY_LEN, 1, gst_mikey_payload_sp_add_param (payload, GST_MIKEY_SP_SRTP_AUTH_KEY_LEN, 1,
&byte); &byte);
/* we enable encryption on RTP and RTCP */ /* we enable encryption on RTP and RTCP */
byte = 1;
gst_mikey_payload_sp_add_param (payload, GST_MIKEY_SP_SRTP_SRTP_ENC, 1, gst_mikey_payload_sp_add_param (payload, GST_MIKEY_SP_SRTP_SRTP_ENC, 1,
&byte); &byte);
gst_mikey_payload_sp_add_param (payload, GST_MIKEY_SP_SRTP_SRTCP_ENC, 1, gst_mikey_payload_sp_add_param (payload, GST_MIKEY_SP_SRTP_SRTCP_ENC, 1,