]> git.ipfire.org Git - thirdparty/squid.git/blobdiff - src/anyp/ProtocolType.h
Source Format Enforcement (#1234)
[thirdparty/squid.git] / src / anyp / ProtocolType.h
index bdafd7e8be92da10b944d7b2018fbd40a0dfc700..6e5ef8f431e16b09cdc692f183ef65d219525463 100644 (file)
@@ -1,13 +1,20 @@
+/*
+ * Copyright (C) 1996-2023 The Squid Software Foundation and contributors
+ *
+ * Squid software is distributed under GPLv2+ license and includes
+ * contributions from numerous individuals and organizations.
+ * Please see the COPYING and CONTRIBUTORS files for details.
+ */
+
 #ifndef _SQUID_SRC_ANYP_PROTOCOLTYPE_H
 #define _SQUID_SRC_ANYP_PROTOCOLTYPE_H
 
-#if HAVE_OSTREAM
 #include <ostream>
-#endif
 
 namespace AnyP
 {
 
+// TODO order by current protocol popularity (eg HTTPS before FTP)
 /**
  * List of all protocols known and supported.
  * This is a combined list. It is used as type-codes where needed and
@@ -20,7 +27,6 @@ typedef enum {
     PROTO_HTTPS,
     PROTO_COAP,
     PROTO_COAPS,
-    PROTO_GOPHER,
     PROTO_WAIS,
     PROTO_CACHE_OBJECT,
     PROTO_ICP,
@@ -29,8 +35,10 @@ typedef enum {
 #endif
     PROTO_URN,
     PROTO_WHOIS,
-    PROTO_INTERNAL, // miss on an internal object such as an icon
     PROTO_ICY,
+    PROTO_TLS,
+    PROTO_SSL,
+    PROTO_AUTHORITY_FORM,
     PROTO_UNKNOWN,
     PROTO_MAX
 } ProtocolType;
@@ -54,3 +62,4 @@ operator <<(std::ostream &os, ProtocolType const &p)
 } // namespace AnyP
 
 #endif /* _SQUID_SRC_ANYP_PROTOCOLTYPE_H */
+