From 3b35279b16c4c0fc43d2bd81ce1dfcda950d2122 Mon Sep 17 00:00:00 2001 From: yhirose Date: Sat, 18 Dec 2021 00:21:41 -0500 Subject: [PATCH] Added SSLServer::ssl_context() --- httplib.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/httplib.h b/httplib.h index cab599b..dedada5 100644 --- a/httplib.h +++ b/httplib.h @@ -1382,6 +1382,8 @@ public: bool is_valid() const override; + SSL_CTX *ssl_context() const; + private: bool process_and_close_socket(socket_t sock) override; @@ -7192,6 +7194,8 @@ inline SSLServer::~SSLServer() { inline bool SSLServer::is_valid() const { return ctx_; } +inline SSL_CTX *SSLServer::ssl_context() const { return ctx_; } + inline bool SSLServer::process_and_close_socket(socket_t sock) { auto ssl = detail::ssl_new( sock, ctx_, ctx_mutex_,