1
0
mirror of https://github.com/moparisthebest/wget synced 2024-07-03 16:38:41 -04:00

Do not test for impossible qop value

* http.c (digest_authentication_encode): Wget already errors out if
    qop != "auth". Then it makes no sense to test for qop == "auth-int"
    later on. Currently, Wget does not support the "auth-int" qop value
    and till nobidy requests, it may remain so.
This commit is contained in:
Darshit Shah 2015-09-22 16:36:40 +05:30
parent 12dfc03116
commit c387db6451

View File

@ -4684,7 +4684,7 @@ digest_authentication_encode (const char *au, const char *user,
md5_finish_ctx (&ctx, hash);
dump_hash (a2buf, hash);
if (qop && (!strcmp(qop, "auth") || !strcmp (qop, "auth-int")))
if (qop && !strcmp(qop, "auth"))
{
/* RFC 2617 Digest Access Authentication */
/* generate random hex string */