sdp: gstmikey: gst_mikey_message_to_caps: extract ROC from first crypto session
authorBart Van Severen <bart.vanseveren@barco.com>
Wed, 14 Dec 2022 09:29:27 +0000 (10:29 +0100)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Fri, 27 Jan 2023 01:58:48 +0000 (01:58 +0000)
commitf04878c216f4397f6cd2ae099f807fb6bd387f87
tree865f2a3da90e79d185270230da29d0760b501c9c
parent4a433f170ebee0a49459f4bf401634c7534f13e9
sdp: gstmikey: gst_mikey_message_to_caps: extract ROC from first crypto session

We need the ROC to decrypt a SRTP stream as the ROC is part of the AES IV.
So look for first crypto session, from which we can get the ROC and find corresponding
crypto policy.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3818>
subprojects/gst-plugins-base/gst-libs/gst/sdp/gstmikey.c