From 33872cd3768ea226cc214fda14378b91d5bf4aa1 Mon Sep 17 00:00:00 2001 From: Andy Green Date: Sun, 24 Apr 2011 05:49:44 +0100 Subject: [PATCH] carry over 06 stuff to 07 Signed-off-by: Andy Green --- lib/client-handshake.c | 1 + lib/handshake.c | 1 + lib/parsers.c | 1 + 3 files changed, 3 insertions(+) diff --git a/lib/client-handshake.c b/lib/client-handshake.c index de306a6..adcee07 100644 --- a/lib/client-handshake.c +++ b/lib/client-handshake.c @@ -108,6 +108,7 @@ libwebsocket_client_connect(struct libwebsocket_context *context, break; case 5: case 6: + case 7: wsi->xor_mask = xor_mask_05; break; default: diff --git a/lib/handshake.c b/lib/handshake.c index bac5f7f..46197ff 100644 --- a/lib/handshake.c +++ b/lib/handshake.c @@ -670,6 +670,7 @@ libwebsocket_read(struct libwebsocket_context *context, struct libwebsocket *wsi break; case 5: case 6: + case 7: wsi->xor_mask = xor_mask_05; debug("libwebsocket_parse calling handshake_04\n"); if (handshake_0405(wsi)) diff --git a/lib/parsers.c b/lib/parsers.c index 263b36d..5238600 100644 --- a/lib/parsers.c +++ b/lib/parsers.c @@ -1295,6 +1295,7 @@ int libwebsocket_write(struct libwebsocket *wsi, unsigned char *buf, case 4: case 5: case 6: + case 7: switch (protocol & 0xf) { case LWS_WRITE_TEXT: n = LWS_WS_OPCODE_04__TEXT_FRAME; -- 2.7.4