]> git.ipfire.org Git - thirdparty/freeswitch.git/commit
FS-10370: Enable SRTP Key Padding
authorTrevor Alpeter <trevora@edge-net.net>
Tue, 13 Jun 2017 13:39:07 +0000 (09:39 -0400)
committerTrevor Alpeter <trevora@edge-net.net>
Tue, 13 Jun 2017 13:39:07 +0000 (09:39 -0400)
commit09174819a9a2a69d89aaafe25470d567a73d7bc6
tree6f053b88866544111aed4cc4f8f71ab262815a91
parentb4ada1b849d526e3d808fd22626b7d618289c537
FS-10370: Enable SRTP Key Padding

Some clients rely on Base64 padding characters (i.e., '=') to be present
in encoded SRTP key/salt strings to determine the length of the encoded
data. However, FreeSWITCH removes these characters before including the
encoded strings in the SDP. This causes those clients that rely on the
padding to truncate the encoded data and be unable to properly set up an
encrypted SRTP session.

This change introduces a channel flag named 'rtp_pad_srtp_keys'. When
this flag is enabled, FreeSWITCH includes the Base64 padding characters
in the SDP. This allows clients that rely on the padding to retrieve the
full key and salt values and successfully negotiate an SRTP stream with
FreeSWITCH.

FS-103070 #resolve
src/switch_core_media.c