[FFmpeg-cvslog] lavf/httpauth: Do case-insensitive http header checks.

Carl Eugen Hoyos git at videolan.org
Sat Sep 3 14:58:44 EEST 2016


ffmpeg | branch: master | Carl Eugen Hoyos <cehoyos at ag.or.at> | Sat Sep  3 13:56:40 2016 +0200| [8f0bd1d9bad5b8aa42b5b4cec103cc4afed5eab6] | committer: Carl Eugen Hoyos

lavf/httpauth: Do case-insensitive http header checks.

Tested by trac user NTAuthority.
Fixes ticket #5786.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=8f0bd1d9bad5b8aa42b5b4cec103cc4afed5eab6
---

 libavformat/httpauth.c | 4 ++--
 libavformat/version.h  | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/libavformat/httpauth.c b/libavformat/httpauth.c
index 18cf36b..2d42ab2 100644
--- a/libavformat/httpauth.c
+++ b/libavformat/httpauth.c
@@ -90,7 +90,7 @@ static void choose_qop(char *qop, int size)
 void ff_http_auth_handle_header(HTTPAuthState *state, const char *key,
                                 const char *value)
 {
-    if (!strcmp(key, "WWW-Authenticate") || !strcmp(key, "Proxy-Authenticate")) {
+    if (!av_strcasecmp(key, "WWW-Authenticate") || !av_strcasecmp(key, "Proxy-Authenticate")) {
         const char *p;
         if (av_stristart(value, "Basic ", &p) &&
             state->auth_type <= HTTP_AUTH_BASIC) {
@@ -112,7 +112,7 @@ void ff_http_auth_handle_header(HTTPAuthState *state, const char *key,
             if (!av_strcasecmp(state->digest_params.stale, "true"))
                 state->stale = 1;
         }
-    } else if (!strcmp(key, "Authentication-Info")) {
+    } else if (!av_strcasecmp(key, "Authentication-Info")) {
         ff_parse_key_value(value, (ff_parse_key_val_cb) handle_digest_update,
                            state);
     }
diff --git a/libavformat/version.h b/libavformat/version.h
index f3da968..9a9efee 100644
--- a/libavformat/version.h
+++ b/libavformat/version.h
@@ -33,7 +33,7 @@
 // Also please add any ticket numbers that you believe might be affected here
 #define LIBAVFORMAT_VERSION_MAJOR  57
 #define LIBAVFORMAT_VERSION_MINOR  48
-#define LIBAVFORMAT_VERSION_MICRO 101
+#define LIBAVFORMAT_VERSION_MICRO 102
 
 #define LIBAVFORMAT_VERSION_INT AV_VERSION_INT(LIBAVFORMAT_VERSION_MAJOR, \
                                                LIBAVFORMAT_VERSION_MINOR, \



More information about the ffmpeg-cvslog mailing list