From 3ba056017f978ba69ea933c593f0e616b3632261 Mon Sep 17 00:00:00 2001 From: Carl Eugen Hoyos Date: Wed, 26 Feb 2014 09:51:06 +0100 Subject: Fix http authentication. Add parenthesis around "MD5" in the request string as required by RFC 2069. Fixes ticket #3417. Reported and tested by Haarman Analyzed-by: Eugen-Andrei Gavriloaie --- libavformat/httpauth.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libavformat/httpauth.c') diff --git a/libavformat/httpauth.c b/libavformat/httpauth.c index 5ca48b9..3f90975 100644 --- a/libavformat/httpauth.c +++ b/libavformat/httpauth.c @@ -225,7 +225,7 @@ static char *make_digest_auth(HTTPAuthState *state, const char *username, av_strlcatf(authstr, len, ",uri=\"%s\"", uri); av_strlcatf(authstr, len, ",response=\"%s\"", response); if (digest->algorithm[0]) - av_strlcatf(authstr, len, ",algorithm=%s", digest->algorithm); + av_strlcatf(authstr, len, ",algorithm=\"%s\"", digest->algorithm); if (digest->opaque[0]) av_strlcatf(authstr, len, ",opaque=\"%s\"", digest->opaque); if (digest->qop[0]) { -- cgit v1.1