Implemented authentication for websocket connection

This commit is contained in:
Shuanglei Tao
2016-09-25 00:56:53 +08:00
parent b31676520c
commit 9174d6116c
5 changed files with 67 additions and 32 deletions

View File

@@ -18,9 +18,7 @@
#include <assert.h>
#ifdef __APPLE__
#include <util.h>
#else
#include <pty.h>
#endif
@@ -43,6 +41,7 @@ struct pty_data {
struct tty_client {
bool exit;
bool initialized;
bool authenticated;
char hostname[100];
char address[50];