[FFmpeg-devel] RTSP over HTTP tunnel authentication

Martin Storsjö martin
Fri Jun 18 09:35:12 CEST 2010


On Tue, 15 Jun 2010, Martin Storsj? wrote:

> On Tue, 15 Jun 2010, Stas Oskin wrote:
> 
> > > I didn't seen this behaviour when I've tested it with DSS at least. If you
> > > do have such a sample, please share it with me. Until that, we'll just be
> > > arguing back and forth without actually getting anywhere.
> > >
> > >
> > I just sent you an URL in private. And I'm not arguing :) - just trying to
> > explain there are other approaches then DSS one, which actually become more
> > popular.
> 
> Ok, I'll have a look at that URL.

After testing with the sample URL that Stas provided, I've made some 
patches that solve this relatively cleanly, IMO.

After thinking a bit more about how digest auth works in these scenarios, 
copying the whole auth state struct to the second http session is quite 
correct, as long as we don't do any further requests with the first 
session. It works fine with both digest and basic auth with the sample 
URLs. (As an interesting side note, QuickTime Player failed to negotiate 
the digest auth properly, while our http auth code worked just fine, with 
these patches.)

Ronald, Luca, any opinions?

// Martin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-ff_url_join-Don-t-add-any-at-char-if-the-auth-is-an-.patch
Type: text/x-diff
Size: 882 bytes
Desc: 
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20100618/acf4dc4c/attachment.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-RTSP-Add-the-auth-credentials-to-the-HTTP-tunnel-URL.patch
Type: text/x-diff
Size: 889 bytes
Desc: 
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20100618/acf4dc4c/attachment-0001.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0003-HTTP-Add-a-function-for-getting-a-pointer-to-the-aut.patch
Type: text/x-diff
Size: 1833 bytes
Desc: 
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20100618/acf4dc4c/attachment-0002.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0004-RTSP-Use-the-same-authentication-for-the-HTTP-POST-s.patch
Type: text/x-diff
Size: 1924 bytes
Desc: 
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20100618/acf4dc4c/attachment-0003.patch>



More information about the ffmpeg-devel mailing list