From 14c6d526b4eaf0eeb06369253722c98492323fdb Mon Sep 17 00:00:00 2001 From: James Young <61614414+w3b-net-au@users.noreply.github.com> Date: Tue, 13 Apr 2021 23:11:38 +1000 Subject: [PATCH] Use newer version-flexible TLS/SSL method (#904) --- httplib.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/httplib.h b/httplib.h index aff843e..48c0d30 100644 --- a/httplib.h +++ b/httplib.h @@ -6658,7 +6658,7 @@ static SSLInit sslinit_; inline SSLServer::SSLServer(const char *cert_path, const char *private_key_path, const char *client_ca_cert_file_path, const char *client_ca_cert_dir_path) { - ctx_ = SSL_CTX_new(SSLv23_server_method()); + ctx_ = SSL_CTX_new(TLS_method()); if (ctx_) { SSL_CTX_set_options(ctx_,