case 5:
case 6:
case 7:
+ case 8:
+ case 13:
wsi->xor_mask = xor_mask_05;
debug("libwebsocket_parse calling handshake_04\n");
if (handshake_0405(context, wsi))
case LWS_RXPS_NEW:
switch (wsi->ietf_spec_revision) {
- /* Firefox 4.0b6 likes this as of 30 Oct */
+ /* Firefox 4.0b6 likes this as of 30 Oct 2010 */
case 0:
if (c == 0xff)
wsi->lws_rx_parse_state = LWS_RXPS_SEEN_76_FF;
wsi->lws_rx_parse_state = LWS_RXPS_04_MASK_NONCE_1;
break;
case 7:
+ case 8:
+ case 13:
/*
* no prepended frame key any more
*/
case 5:
case 6:
case 7:
+ case 8:
+ case 13:
/*
* 04 logical framing from the spec (all this is masked when
* incoming and has to be unmasked)
return -1;
switch (wsi->ietf_spec_revision) {
- /* chrome likes this as of 30 Oct */
- /* Firefox 4.0b6 likes this as of 30 Oct */
+ /* chrome likes this as of 30 Oct 2010 */
+ /* Firefox 4.0b6 likes this as of 30 Oct 2010 */
case 0:
if ((protocol & 0xf) == LWS_WRITE_BINARY) {
/* in binary mode we send 7-bit used length blocks */
break;
case 7:
+ case 8:
+ case 13:
if (masked7) {
pre += 4;
dropmask = &buf[0 - pre];
#define MAX_BROADCAST_PAYLOAD 2048
#define LWS_MAX_PROTOCOLS 10
#define LWS_MAX_EXTENSIONS_ACTIVE 10
-#define SPEC_LATEST_SUPPORTED 7
+#define SPEC_LATEST_SUPPORTED 13
#define MAX_WEBSOCKET_04_KEY_LEN 128
#define SYSTEM_RANDOM_FILEPATH "/dev/urandom"