From fa69887e52201eb348f1bfbecf72bdab5c57bd9c Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Thu, 24 Sep 2020 19:58:34 -0400 Subject: Implement TLS exchange with clients This probably leaves a bit to be desired tbh --- include/server.h | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'include/server.h') diff --git a/include/server.h b/include/server.h index ac3bcac..5624b52 100644 --- a/include/server.h +++ b/include/server.h @@ -1,5 +1,6 @@ #ifndef GMNISRV_SERVER #define GMNISRV_SERVER +#include #include #include @@ -8,11 +9,14 @@ struct gmnisrv_client { struct sockaddr addr; socklen_t addrlen; + int sockfd; - char buf[GEMINI_MAX_URL + 2]; - size_t bufln; + SSL *ssl; + BIO *bio; - int sockfd; + char buf[GEMINI_MAX_URL + 3]; + + struct gmnisrv_host *host; }; struct gmisrv_config; -- cgit v1.2.3