projects
/
platform
/
upstream
/
gst-plugins-good.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f932da3
)
rtspsrc: make random number for the CSB
author
Wim Taymans
<wtaymans@redhat.com>
Thu, 3 Apr 2014 15:39:30 +0000
(17:39 +0200)
committer
Wim Taymans
<wtaymans@redhat.com>
Thu, 3 Apr 2014 15:39:30 +0000
(17:39 +0200)
As recommended in the RFC
gst/rtsp/gstrtspsrc.c
patch
|
blob
|
history
diff --git
a/gst/rtsp/gstrtspsrc.c
b/gst/rtsp/gstrtspsrc.c
index
9a7ba5b
..
5d1cc35
100644
(file)
--- a/
gst/rtsp/gstrtspsrc.c
+++ b/
gst/rtsp/gstrtspsrc.c
@@
-5827,7
+5827,7
@@
gst_rtspsrc_stream_make_keymgmt (GstRTSPSrc * src, GstRTSPStream * stream)
msg = gst_mikey_message_new ();
/* unencrypted MIKEY message, we send this over TLS so this is allowed */
gst_mikey_message_set_info (msg, GST_MIKEY_VERSION, GST_MIKEY_TYPE_PSK_INIT,
- FALSE, GST_MIKEY_PRF_MIKEY_1,
0
, GST_MIKEY_MAP_TYPE_SRTP);
+ FALSE, GST_MIKEY_PRF_MIKEY_1,
g_random_int ()
, GST_MIKEY_MAP_TYPE_SRTP);
/* add policy '0' for our SSRC */
gst_mikey_message_add_cs_srtp (msg, 0, stream->ssrc, 0);
/* timestamp is now */