]> sjero.net Git - wget/commitdiff
[svn] Another contributed fix...
authorhniksic <devnull@localhost>
Thu, 2 Nov 2000 01:06:57 +0000 (17:06 -0800)
committerhniksic <devnull@localhost>
Thu, 2 Nov 2000 01:06:57 +0000 (17:06 -0800)
src/http.c

index 37b9872451e703fba363ff5cc0bb41d71ab0d723..6131b3c7d96ae6d3d3f150c437ecda22b20c0169 100644 (file)
@@ -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);