Skip to content

Commit 76a02a3

Browse files
Require a minimum of TLS 1.2
TLS 1. is deprecated: https://www.ietf.org/rfc/rfc8996.html
1 parent c8bcaf8 commit 76a02a3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

httplib.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8718,7 +8718,7 @@ inline SSLServer::SSLServer(const char *cert_path, const char *private_key_path,
87188718
SSL_OP_NO_COMPRESSION |
87198719
SSL_OP_NO_SESSION_RESUMPTION_ON_RENEGOTIATION);
87208720

8721-
SSL_CTX_set_min_proto_version(ctx_, TLS1_1_VERSION);
8721+
SSL_CTX_set_min_proto_version(ctx_, TLS1_2_VERSION);
87228722

87238723
if (private_key_password != nullptr && (private_key_password[0] != '\0')) {
87248724
SSL_CTX_set_default_passwd_cb_userdata(
@@ -8750,7 +8750,7 @@ inline SSLServer::SSLServer(X509 *cert, EVP_PKEY *private_key,
87508750
SSL_OP_NO_COMPRESSION |
87518751
SSL_OP_NO_SESSION_RESUMPTION_ON_RENEGOTIATION);
87528752

8753-
SSL_CTX_set_min_proto_version(ctx_, TLS1_1_VERSION);
8753+
SSL_CTX_set_min_proto_version(ctx_, TLS1_2_VERSION);
87548754

87558755
if (SSL_CTX_use_certificate(ctx_, cert) != 1 ||
87568756
SSL_CTX_use_PrivateKey(ctx_, private_key) != 1) {

0 commit comments

Comments
 (0)