mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-30 12:10:37 +00:00
test: enable SRTP only on RTSPS
We only want to enable SRTP when doing rtsp over TLS so that we can exchange the keys in a secure way.
This commit is contained in:
parent
131e1d6c77
commit
96f7c61a15
1 changed files with 3 additions and 1 deletions
|
@ -140,8 +140,10 @@ main (int argc, char *argv[])
|
||||||
GST_RTSP_PERM_MEDIA_FACTORY_CONSTRUCT, G_TYPE_BOOLEAN, TRUE, NULL);
|
GST_RTSP_PERM_MEDIA_FACTORY_CONSTRUCT, G_TYPE_BOOLEAN, TRUE, NULL);
|
||||||
gst_rtsp_media_factory_set_permissions (factory, permissions);
|
gst_rtsp_media_factory_set_permissions (factory, permissions);
|
||||||
gst_rtsp_permissions_unref (permissions);
|
gst_rtsp_permissions_unref (permissions);
|
||||||
#endif
|
#ifdef WITH_TLS
|
||||||
gst_rtsp_media_factory_set_profiles (factory, GST_RTSP_PROFILE_SAVP);
|
gst_rtsp_media_factory_set_profiles (factory, GST_RTSP_PROFILE_SAVP);
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
/* attach the test factory to the /test url */
|
/* attach the test factory to the /test url */
|
||||||
gst_rtsp_mount_points_add_factory (mounts, "/test", factory);
|
gst_rtsp_mount_points_add_factory (mounts, "/test", factory);
|
||||||
|
|
Loading…
Reference in a new issue