mirror of
https://github.com/yhirose/cpp-httplib.git
synced 2026-10-18 11:09:39 +00:00
Added SSLServer::ssl_context()
This commit is contained in:
1 parent
27deb44df5
commit
3b35279b16
1 file changed
+4
@@ -1382,6 +1382,8 @@ public:
|
|||||||
|
|
||||||
bool is_valid() const override;
|
bool is_valid() const override;
|
||||||
|
|
||||||
|
SSL_CTX *ssl_context() const;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
bool process_and_close_socket(socket_t sock) override;
|
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 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) {
|
inline bool SSLServer::process_and_close_socket(socket_t sock) {
|
||||||
auto ssl = detail::ssl_new(
|
auto ssl = detail::ssl_new(
|
||||||
sock, ctx_, ctx_mutex_,
|
sock, ctx_, ctx_mutex_,
|
||||||
|
|||||||
Reference in new issue
Block a user