mirror of
https://github.com/moparisthebest/wget
synced 2024-07-03 16:38:41 -04:00
[svn] Another contributed fix...
This commit is contained in:
parent
6eb0870af0
commit
c6575c6382
@ -1708,7 +1708,9 @@ username=\"%s\", realm=\"%s\", nonce=\"%s\", uri=\"%s\", response=\"%s\"",
|
|||||||
static int
|
static int
|
||||||
known_authentication_scheme_p (const char *au)
|
known_authentication_scheme_p (const char *au)
|
||||||
{
|
{
|
||||||
return HACK_O_MATIC (au, "Basic") || HACK_O_MATIC (au, "Digest");
|
return HACK_O_MATIC (au, "Basic")
|
||||||
|
|| HACK_O_MATIC (au, "Digest")
|
||||||
|
|| HACK_O_MATIC (au, "NTLM");
|
||||||
}
|
}
|
||||||
|
|
||||||
#undef HACK_O_MATIC
|
#undef HACK_O_MATIC
|
||||||
@ -1727,6 +1729,8 @@ create_authorization_line (const char *au, const char *user,
|
|||||||
|
|
||||||
if (!strncasecmp (au, "Basic", 5))
|
if (!strncasecmp (au, "Basic", 5))
|
||||||
wwwauth = basic_authentication_encode (user, passwd, "Authorization");
|
wwwauth = basic_authentication_encode (user, passwd, "Authorization");
|
||||||
|
if (!strncasecmp (au, "NTLM", 4))
|
||||||
|
wwwauth = basic_authentication_encode (user, passwd, "Authorization");
|
||||||
#ifdef USE_DIGEST
|
#ifdef USE_DIGEST
|
||||||
else if (!strncasecmp (au, "Digest", 6))
|
else if (!strncasecmp (au, "Digest", 6))
|
||||||
wwwauth = digest_authentication_encode (au, user, passwd, method, path);
|
wwwauth = digest_authentication_encode (au, user, passwd, method, path);
|
||||||
|
Loading…
Reference in New Issue
Block a user