[MPlayer-dev-eng] http stream basic auth base64_encode() fix
jcd+mplayer at psu.edu
Tue Feb 28 19:15:04 CET 2006
On Tue, 28 Feb 2006, Dominik 'Rathann' Mierzejewski wrote:
> On Tuesday, 28 February 2006 at 18:15, Jeff D'Angelo wrote:
> > So that it conforms to RFC 2045:
> > <http://jeffdangelo.org/patches/>
> > MPlayer-1.0pre7try2.http_basic_auth_base64_encode.patch
> > MPlayer-cvs-main-20060228.http_basic_auth_base64_encode.patch
> > The two patch files are the same patch, but diffed against each of
> > MPlayer-1.0pre7try2 and today's main CVS copy, libmpdemux/http.c version
> > 1.34; both work equally well with the line offsets. These were done diff
> > -r -u, let me know if you prefer -c format.
> We prefer -u, thanks.
> > Tested successfully against an Icecast 2.2.0 server (Otto Audio Jukebox).
> > Let me know if you need anything else.
> Are there any public servers we can test against?
Well, in general public servers, by being "public," wouldn't want to set a
password, which is specifically what my patch addresses. I don't know of
many that way.
My friend who runs the Icecast server I used said he would be interested
in lending an account for a limited time test period; no this is not a
public server. Keep in mind it only allows one connection using the same
account at a time. As you would have others treat yours, treat his server
and content nice. :)
Password was so chosen, so that:
a) total number of characters (username, ':', password) % 3 = 1, thus
the basic auth base64 encoding would end in two '=' chars
b) '?' and '>' chars were placed at end of base64 encode input
octet tripplets so that I could demonstrate the '+' and '/'
characters in the encoding
Let me know when you are done testing.
Thanks for the quick response!
> MPlayer developer and RPMs maintainer: http://rpm.greysector.net/mplayer/
> There should be a science of discontent. People need hard times and oppression
> to develop psychic muscles.
> -- from "Collected Sayings of Muad'Dib" by the Princess Irulan
> MPlayer-dev-eng mailing list
> MPlayer-dev-eng at mplayerhq.hu
More information about the MPlayer-dev-eng