int url_canonicalize(struct url *);
int url_pack(struct url *, byte *);
int url_canon_split(byte *, byte *, byte *, struct url *);
+int url_auto_canonicalize(byte *, byte *);
uns identify_protocol(byte *);
int url_has_repeated_component(byte *url);
#define URL_PROTO_HTTP 1
#define URL_PROTO_FTP 2
#define URL_PROTO_FILE 3
-#define URL_PROTO_MAX 4
+#define URL_PROTO_SQL 4
+#define URL_PROTO_MAX 5
-#define URL_PNAMES { "unknown", "http", "ftp", "file" }
+#define URL_PNAMES { "unknown", "http", "ftp", "file", "sql" }
#define URL_DEFPORTS { ~0, 80, 21, 0 }
#define URL_PATH_FLAGS { 0, 1, 1, 1 }