added SSL

This commit is contained in:
Lorenzo Torres 2026-01-08 14:37:28 +01:00
parent d9ee2c56f2
commit 670e38a105
8 changed files with 142 additions and 22 deletions

View file

@ -2,11 +2,15 @@
#define CLIENT_H
#include <uv.h>
#include <openssl/ssl.h>
#include <stdint.h>
#include <stdbool.h>
struct client {
uv_tcp_t handle;
SSL *ssl;
BIO *rbio;
BIO *wbio;
uint32_t user_id;
uint32_t current_room_id;
bool is_authenticated;