remove all support for pre v13 protocols

Since v13 was defined as the released ietf version the older versions
are deprecated.  This patch strips out everything to do with the older
versions and gets rid of the option to send stuff unmasked.

The in-tree md5 implementation is then also deleted as nothing needs
it any more, 1280 loc are shed in all

Signed-off-by: Andy Green <andy.green@linaro.org>
diff --git a/test-server/test-client.c b/test-server/test-client.c
index 348196b..b556a17 100644
--- a/test-server/test-client.c
+++ b/test-server/test-client.c
@@ -184,7 +184,6 @@
 	{ "debug",      required_argument,      NULL, 'd' },
 	{ "port",	required_argument,	NULL, 'p' },
 	{ "ssl",	no_argument,		NULL, 's' },
-	{ "killmask",	no_argument,		NULL, 'k' },
 	{ "version",	required_argument,	NULL, 'v' },
 	{ "undeflated",	no_argument,		NULL, 'u' },
 	{ "nomux",	no_argument,		NULL, 'n' },
@@ -213,7 +212,7 @@
 		goto usage;
 
 	while (n >= 0) {
-		n = getopt_long(argc, argv, "nuv:khsp:d:l", options, NULL);
+		n = getopt_long(argc, argv, "nuv:hsp:d:l", options, NULL);
 		if (n < 0)
 			continue;
 		switch (n) {
@@ -229,9 +228,6 @@
 		case 'l':
 			longlived = 1;
 			break;
-		case 'k':
-			opts = LWS_WRITE_CLIENT_IGNORE_XOR_MASK;
-			break;
 		case 'v':
 			ietf_version = atoi(optarg);
 			break;
diff --git a/test-server/test-fraggle.c b/test-server/test-fraggle.c
index abff7bc..f2c8d7c 100644
--- a/test-server/test-fraggle.c
+++ b/test-server/test-fraggle.c
@@ -231,7 +231,6 @@
 	{ "debug",	required_argument,	NULL, 'd' },
 	{ "port",	required_argument,	NULL, 'p' },
 	{ "ssl",	no_argument,		NULL, 's' },
-	{ "killmask",	no_argument,		NULL, 'k' },
 	{ "interface",  required_argument,	NULL, 'i' },
 	{ "client",	no_argument,		NULL, 'c' },
 	{ NULL, 0, 0, 0 }
@@ -255,11 +254,11 @@
 	int server_port = port;
 
 	fprintf(stderr, "libwebsockets test fraggle\n"
-			"(C) Copyright 2010-2011 Andy Green <andy@warmcat.com> "
+			"(C) Copyright 2010-2013 Andy Green <andy@warmcat.com> "
 						    "licensed under LGPL2.1\n");
 
 	while (n >= 0) {
-		n = getopt_long(argc, argv, "ci:khsp:d:", options, NULL);
+		n = getopt_long(argc, argv, "ci:hsp:d:", options, NULL);
 		if (n < 0)
 			continue;
 		switch (n) {
@@ -269,9 +268,6 @@
 		case 's':
 			use_ssl = 1;
 			break;
-		case 'k':
-			opts = LWS_SERVER_OPTION_DEFEAT_CLIENT_MASK;
-			break;
 		case 'p':
 			port = atoi(optarg);
 			server_port = port;
diff --git a/test-server/test-server.c b/test-server/test-server.c
index 51b65ce..c98fe0f 100644
--- a/test-server/test-server.c
+++ b/test-server/test-server.c
@@ -489,7 +489,6 @@
 	{ "debug",	required_argument,	NULL, 'd' },
 	{ "port",	required_argument,	NULL, 'p' },
 	{ "ssl",	no_argument,		NULL, 's' },
-	{ "killmask",	no_argument,		NULL, 'k' },
 	{ "interface",  required_argument,	NULL, 'i' },
 	{ "closetest",  no_argument,		NULL, 'c' },
 #ifndef NO_DAEMONIZE
@@ -523,7 +522,7 @@
 #endif
 
 	while (n >= 0) {
-		n = getopt_long(argc, argv, "ci:khsp:d:D", options, NULL);
+		n = getopt_long(argc, argv, "ci:hsp:d:D", options, NULL);
 		if (n < 0)
 			continue;
 		switch (n) {
@@ -539,9 +538,6 @@
 		case 's':
 			use_ssl = 1;
 			break;
-		case 'k':
-			opts = LWS_SERVER_OPTION_DEFEAT_CLIENT_MASK;
-			break;
 		case 'p':
 			port = atoi(optarg);
 			break;