[FFmpeg-devel] [PATCH] Add support for digest auth in the http and rtsp protocols
Ronald S. Bultje
rsbultje
Wed Mar 24 18:39:58 CET 2010
Hi,
On Tue, Mar 23, 2010 at 12:36 PM, Martin Storsj? <martin at martin.st> wrote:
> Also, I fixed the av_stristart usage, checking for "Basic " or "Digest ",
> to fix cases if new methods start with the same string. Is this ok, or
> should I be even more pedantic and just check that the following char is
> whitespace? The RFC doesn't seem to specify any particular delimiter at
> all here.
"Basic " is fine.
> + } else if (!strcmp(key, "Authentication-Info")) {
unused, so I'd remove this line (at least from this patch).
> +typedef struct {
> + HTTPAuthType auth_type;
> + HTTPAuthType best_seen_auth_type;
> +} HTTPAuthState;
what's the difference between these two? Right now you're only using
one of them so it might be possible to remove one of the two.
Also, a feature request, if possible I'd like you to parse the "realm"
in both Basic and Digest, for error messages related to 40x. e.g.
http.c could emit "permission denied, missing username/password in
realm %s" in certain cases, that'd be helpful in making ffmpeg a bit
more userfriendly.
Ronald
More information about the ffmpeg-devel
mailing list