diff options
author | Carl Eugen Hoyos <cehoyos@ag.or.at> | 2014-02-26 09:51:06 +0100 |
---|---|---|
committer | Carl Eugen Hoyos <cehoyos@ag.or.at> | 2014-02-27 16:56:30 +0100 |
commit | 3ba056017f978ba69ea933c593f0e616b3632261 (patch) | |
tree | 14f82fdc1eab72b9a32559e876ac4f2db7e57551 | |
parent | 4f4cc43fd8514e0e3671c8c4d895dc4406437327 (diff) | |
download | ffmpeg-3ba056017f978ba69ea933c593f0e616b3632261.tar.gz |
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
-rw-r--r-- | libavformat/httpauth.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/httpauth.c b/libavformat/httpauth.c index 5ca48b9c1d..3f90975ff3 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]) { |