diff --git a/src/http.c b/src/http.c index 37b98724..6131b3c7 100644 --- a/src/http.c +++ b/src/http.c @@ -1708,7 +1708,9 @@ username=\"%s\", realm=\"%s\", nonce=\"%s\", uri=\"%s\", response=\"%s\"", static int 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 @@ -1727,6 +1729,8 @@ create_authorization_line (const char *au, const char *user, if (!strncasecmp (au, "Basic", 5)) wwwauth = basic_authentication_encode (user, passwd, "Authorization"); + if (!strncasecmp (au, "NTLM", 4)) + wwwauth = basic_authentication_encode (user, passwd, "Authorization"); #ifdef USE_DIGEST else if (!strncasecmp (au, "Digest", 6)) wwwauth = digest_authentication_encode (au, user, passwd, method, path);