]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Disclaim support for all FTP AUTH commands,
authorAlex Rousskov <rousskov@measurement-factory.com>
Fri, 30 Aug 2013 04:57:44 +0000 (22:57 -0600)
committerAlex Rousskov <rousskov@measurement-factory.com>
Fri, 30 Aug 2013 04:57:44 +0000 (22:57 -0600)
even though some rare ones might work.

Documented reasons for disclaiming support.

src/client_side.cc

index 38f1c9f9a739e23be78b5296a46edbbb77e1ed98..eb72699df7b5d4577fd26b2ad4a6b852469b1ea7 100644 (file)
@@ -5860,14 +5860,21 @@ FtpSetReply(ClientSocketContext *context, const int code, const char *msg)
     http->storeEntry()->replaceHttpReply(reply);
 }
 
+/// Whether Squid FTP gateway supports a given feature (e.g., a command).
 static bool
 FtpSupportedCommand(const String &name)
 {
     static std::set<std::string> BlackList;
     if (BlackList.empty()) {
-        // FTP commands that Squid cannot gateway correctly:
+        /* Add FTP commands that Squid cannot gateway correctly */
+
+        // IPv6 connection addresses from RFC 2428
         BlackList.insert("EPRT");
         BlackList.insert("EPSV");
+
+        // we probably do not support AUTH TLS.* and AUTH SSL,
+        // but let's disclaim all AUTH support to KISS, for now
+        BlackList.insert("AUTH");
     }
 
     // we claim support for all commands that we do not know about