mirror of
https://github.com/yhirose/cpp-httplib
synced 2024-11-21 14:29:10 -07:00
Use newer version-flexible TLS/SSL method (#904)
This commit is contained in:
parent
28e07bca16
commit
14c6d526b4
1 changed files with 1 additions and 1 deletions
|
@ -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_,
|
||||
|
|
Loading…
Reference in a new issue