[Bug 703264] srtp: Key is required even if cipher and auth are null

GStreamer (bugzilla.gnome.org) bugzilla at gnome.org
Tue Aug 6 07:04:05 PDT 2013


https://bugzilla.gnome.org/show_bug.cgi?id=703264
  GStreamer | gst-plugins-bad | 1.x

Morgan Lindqvist <Morgan.Lindqvist> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|FIXED                       |

--- Comment #3 from Morgan Lindqvist <Morgan.Lindqvist at ericsson.com> 2013-08-06 14:03:58 UTC ---
This fix did not solve the whole problem.

The request was to be able to disable the SRTP element if the remote side did
not support SRTP (without need for modifying the pipeline).

The above solution only makes it possible to disable encryption and
authentication for RTP and encryption for RTCP without having to provide a key.
The authentication is still there for RTCP. Since the SRTP RTCP receiver
requires the authentication information the current solution drops all incoming
RTCP reports.

The logic in the srtp library that correctly drops the RTCP messages can be
found here.
https://github.com/cisco/libsrtp/blob/master/srtp/srtp.c#L1895

The logic that always set the header can be found here:
https://github.com/cisco/libsrtp/blob/master/srtp/srtp.c#L1707

The reason for this behaviour is that the specification requires that RTCP
always is authenticated when SRTP is used.

One way of solving this would be to enable pass-through if all encryption and
authentication is disabled. This would also avoid copying of buffers.

-- 
Configure bugmail: https://bugzilla.gnome.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the gstreamer-bugs mailing list