Add support for a -notls switch, for consistency's sake.
[mmh] / uip / post.c
index b24f571..83e008d 100644 (file)
@@ -127,9 +127,11 @@ static struct swit switches[] = {
     { "port server port name/number", 4 },
 #define TLSSW                   36
     { "tls", TLSminc(-3) },
-#define FILEPROCSW              37
+#define NTLSSW                   37
+    { "notls", TLSminc(-5) },
+#define FILEPROCSW              38
     { "fileproc", -4 },
-#define MHLPROCSW               38
+#define MHLPROCSW               39
     { "mhlproc", -3 },
     { NULL, 0 }
 };
@@ -494,6 +496,10 @@ main (int argc, char **argv)
                    tls++;
                    continue;
 
+               case NTLSSW:
+                   tls = 0;
+                   continue;
+
                case FILEPROCSW:
                    if (!(cp = *argp++) || *cp == '-')
                        adios (NULL, "missing argument to %s", argp[-2]);