[FFmpeg-devel] [PATCH] Add support for digest auth in the http and rtsp protocols
Michael Niedermayer
michaelni
Thu Mar 25 00:51:28 CET 2010
On Thu, Mar 25, 2010 at 12:56:10AM +0200, Martin Storsj? wrote:
> 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
> internal.h | 2 +-
> rdt.c | 3 +--
> sdp.c | 2 +-
> utils.c | 9 +++++++--
> 4 files changed, 10 insertions(+), 6 deletions(-)
> b09efdf20fbe3cd415d177dd5250cf881906772b 0001-Add-a-lowercase-parameter-to-ff_data_to_hex.patch
> commit 019eec20f4818edd78499db61f4dc3623050e977
> Author: Martin Storsjo <martin at martin.st>
> Date: Thu Mar 25 00:42:42 2010 +0200
>
> Add a "lowercase" parameter to ff_data_to_hex
ok
[...]
--
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
In fact, the RIAA has been known to suggest that students drop out
of college or go to community college in order to be able to afford
settlements. -- The RIAA
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20100325/ca38c8e3/attachment.pgp>
More information about the ffmpeg-devel
mailing list