Skip to content

Commit

Permalink
server: disable tls 1.0/1.1 by default for openssl
Browse files Browse the repository at this point in the history
  • Loading branch information
tsl0922 committed Jul 4, 2022
1 parent a41c05e commit 8b6b71e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/server.c
Expand Up @@ -532,6 +532,9 @@ int main(int argc, char **argv) {
if (ssl) {
info.ssl_cert_filepath = cert_path;
info.ssl_private_key_filepath = key_path;
#ifndef LWS_WITH_MBEDTLS
info.ssl_options_set = SSL_OP_NO_TLSv1 | SSL_OP_NO_TLSv1_1;
#endif
if (strlen(ca_path) > 0) {
info.ssl_ca_filepath = ca_path;
info.options |= LWS_SERVER_OPTION_REQUIRE_VALID_OPENSSL_CLIENT_CERT;
Expand Down

0 comments on commit 8b6b71e

Please sign in to comment.