Ticket #9127: test.patch

File test.patch, 652 bytes (added by Andriy Gelman, 6 years ago)
  • libavformat/httpauth.c

    diff --git a/libavformat/httpauth.c b/libavformat/httpauth.c
    index 4f79c78edc..ef82c01d36 100644
    a b void ff_http_auth_handle_header(HTTPAuthState *state, const char *key,  
    101101                               state);
    102102        } else if (av_stristart(value, "Digest ", &p) &&
    103103                   state->auth_type <= HTTP_AUTH_DIGEST) {
     104
     105            if (!strcmp(state->digest_params.algorithm, "MD5"))
     106                return;
     107
    104108            state->auth_type = HTTP_AUTH_DIGEST;
    105109            memset(&state->digest_params, 0, sizeof(DigestParams));
    106110            state->realm[0] = 0;