diff options
| author | ame <[email protected]> | 2026-02-15 04:08:16 -0600 |
|---|---|---|
| committer | ame <[email protected]> | 2026-02-15 04:08:16 -0600 |
| commit | db2611fcad18f73572dd1b344e4197536086be53 (patch) | |
| tree | 8d6df833110e57fa7d77753571acfda2ebb23f95 /src/net/common.h | |
| parent | 0a909a9dc5879e592d92c6eedeb59da8cf503392 (diff) | |
ssl server support, websocket upgrades, and net changes
Diffstat (limited to 'src/net/common.h')
| -rw-r--r-- | src/net/common.h | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/src/net/common.h b/src/net/common.h index 6bb161c..6d2f625 100644 --- a/src/net/common.h +++ b/src/net/common.h @@ -17,6 +17,7 @@ #include "../types/str.h" #include "../types/parray.h" #include "../types/map.h" +#include "ssl.h" #define max_con 200 //2^42 @@ -35,8 +36,16 @@ struct file_parse { int dash_count, table_idx; }; +struct net_data { + SSL* ssl; + SSL_CTX* ctx; + int sock; + str* buffer; +}; + typedef struct { - int fd, ser; + struct net_data* ctx; + int ser; int port; lua_State* L; struct sockaddr_in cli; @@ -51,6 +60,9 @@ struct lchar { struct net_server_state { int event_fd; + int ssl; + str* ssl_key; + str* ssl_crt; }; struct sarray_t { |
