[FFmpeg-devel] [PATCH] Add support for digest auth in the http and rtsp protocols

Martin Storsjö martin
Wed Mar 24 23:56:10 CET 2010


On Thu, 25 Mar 2010, Martin Storsj? wrote:

> On Wed, 24 Mar 2010, Ronald S. Bultje wrote:
> 
> > On Wed, Mar 24, 2010 at 5:57 PM, Martin Storsj? <martin at martin.st> wrote:
> 
> > > +/* Format a hexadecimal string. This absolutely must return lowercase
> > > + * hex digits, since the returned strings are included in hash calculations.
> > > + */
> > > +static void format_hash(char *str, int len, const uint8_t *hash, int size)
> > > +{
> > > +    int i;
> > > +    for (i = 0; i < size && 2*i < len; i++)
> > > +        snprintf(&str[2*i], len - 2*i, "%02x", hash[i]);
> > > +}
> > 
> > Can you add a int lowercase argument to ff_data_to_hex()? I think
> > that'd remove two lines from rdt.c also.
> 
> Sure. Example of such a patch attached, together with the digest patch.

Simplified version of this attached, adding a lowercase parameter to 
ff_data_to_hex.

// Martin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Add-a-lowercase-parameter-to-ff_data_to_hex.patch
Type: text/x-diff
Size: 2753 bytes
Desc: 
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20100325/ff4ca497/attachment.patch>



More information about the ffmpeg-devel mailing list