[vlc-devel] [Videolan-devel] [PATCH] Add Dynamic CSA update functionality

Kaloyan Kovachev kkovachev at varna.net
Fri Jun 6 17:41:16 CEST 2008


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/

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0005-Return-correct-results-and-read-the-key-in-use-just.patch
Type: text/x-patch
Size: 1890 bytes
Desc: not available
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20080606/643f2ccd/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0006-Add-the-callbacks-and-locks-for-the-dynamic-CSA-upda.patch
Type: text/x-patch
Size: 11855 bytes
Desc: not available
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20080606/643f2ccd/attachment-0001.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0007-Add-telnet-access-to-CSA-managment.patch
Type: text/x-patch
Size: 4041 bytes
Desc: not available
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20080606/643f2ccd/attachment-0002.bin>


More information about the vlc-devel mailing list