[vlc-devel] [Videolan-devel] [PATCH] Add Dynamic CSA update functionality
Kaloyan Kovachev
kkovachev at varna.net
Fri Jun 6 22:06:24 CEST 2008
just saw that vlc_mutex_init takes only one parameter now, so it should be just
+ vlc_mutex_init( &p_sys->demux_lock );
instead of
+ vlc_mutex_init( p_demux, &p_demux->p_sys->demux_lock );
and
+ vlc_mutex_init( p_mux, &p_demux->p_sys->demux_lock );
If there is something else I should fix, will include this change too in the
next version of the patch
On Fri, 6 Jun 2008 18:41:16 +0300, Kaloyan Kovachev wrote
> On Wed, 4 Jun 2008 23:24:03 +0300, Kaloyan Kovachev wrote
> > Hello list,
> > i have posted this initially to the videolan-devel list by mistake
> > (sorry about that), but here it is once again in the right place.
> >
> > I need to encrypt the streaming and to periodically change the key. The best
> > way i found was to use the both keys of the CSA encryption inside TS mux/demux
> > modules. The goal is to update the non active key on the streaming server via
> > telnet and on the client via mozilla plugin, Activex or telnet. Later on, by
> > switching the active key on the server (again via telnet) will be transparent
> > (without interruptions) for the client.
> >
> > These few patches are just the first part, which only makes use of the second
> > key and option to choose the active key on startup.
> >
> > The second part making it really "Dynamic CSA update" will need to be
> > rewritten as my approach was wrong, but hope to have something right soon.
> >
>
> And here it is for the telnet interface
>
> > On Wed, 4 Jun 2008 18:23:50 +0300, [UTF-8?]RГ©mi Denis-Courmont wrote
> > > Hello,
> > >
> > > + int i_res = VLC_EGENERIC;
> > > +
> > > + p_sys->csa = csa_New();
> > > +
> > > + i_res = csa_SetCW( ...
> > >
> > > Don't set variables if you never use the value.
> > > There are several occurences of this.
> > >
> > > --
> > > [UTF-8?]RГ©mi Denis-Courmont
> > > http://www.remlab.net/
More information about the vlc-devel
mailing list