[Bug 790315] srt: add stream encryption support

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Tue Nov 14 19:38:15 UTC 2017


https://bugzilla.gnome.org/show_bug.cgi?id=790315

Olivier CrĂȘte <olivier.crete at ocrete.ca> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #363558|none                        |needs-work
             status|                            |

--- Comment #4 from Olivier CrĂȘte <olivier.crete at ocrete.ca> ---
Review of attachment 363558:
 --> (https://bugzilla.gnome.org/review?bug=790315&attachment=363558)

Also squash with the other patch.

::: ext/srt/gstsrtbasesink.c
@@ +108,3 @@
+      break;
+    case PROP_KEY_LENGTH:
+      self->key_length = g_value_get_int (value);

g_return_if_fail (g_value_get_int (value) == 16 || .. == 32 || .. == 128);

::: ext/srt/gstsrtbasesrc.c
@@ +118,3 @@
+      break;
+    case PROP_KEY_LENGTH:
+      self->key_length = g_value_get_int (value);

same here

::: ext/srt/gstsrtserversink.c
@@ +325,3 @@
+    srt_setsockopt (priv->sock, 0, SRTO_PASSPHRASE,
+        base->passphrase, strlen (base->passphrase));
+    srt_setsockopt (priv->sock, 0, SRT_PBKEYLEN,

SRTO_

@@ +328,3 @@
+        &base->key_length, sizeof (int));
+
+    GST_WARNING ("passphrase ==> %s", base->passphrase);

GST_WARNING_OBJECT (sink, ...);

@@ +331,3 @@
+
+  } else {
+    GST_WARNING ("No passphrase");

same here

::: ext/srt/gstsrtserversrc.c
@@ +323,3 @@
+  if (base->passphrase != NULL && base->passphrase[0] != '\0') {
+    srt_setsockopt (priv->sock, 0, SRTO_PASSPHRASE,
+        base->passphrase, strlen (base->passphrase));

SRTO_

-- 
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