aboutsummaryrefslogtreecommitdiff
path: root/websocksy.h
diff options
context:
space:
mode:
authorcbdev <cb@cbcdn.com>2019-05-18 13:12:46 +0200
committercbdev <cb@cbcdn.com>2019-05-18 13:12:46 +0200
commitff94e4518d417d88f2fabdfca7025e68ce21849b (patch)
tree22232e7187cf5e7e9b03be84691a2b4f12de0645 /websocksy.h
parentd28b5eb2960e80d80e967a3f01ce70e1fa457808 (diff)
downloadwebsocksy-ff94e4518d417d88f2fabdfca7025e68ce21849b.tar.gz
websocksy-ff94e4518d417d88f2fabdfca7025e68ce21849b.tar.bz2
websocksy-ff94e4518d417d88f2fabdfca7025e68ce21849b.zip
Complete WS connection establishment
Diffstat (limited to 'websocksy.h')
-rw-r--r--websocksy.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/websocksy.h b/websocksy.h
index 794b4ed..275b9ab 100644
--- a/websocksy.h
+++ b/websocksy.h
@@ -1,12 +1,14 @@
#include <stdint.h>
#include <stdlib.h>
+#include <nettle/sha1.h>
+#include <nettle/base64.h>
#define WS_MAX_LINE 16384
typedef enum {
ws_new = 0,
ws_http,
- ws_rfc6455
+ ws_open
} ws_state;
struct {