summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CMakeLists.txt2
-rw-r--r--http/http_connection.h2
-rw-r--r--include/sessions.hpp2
3 files changed, 3 insertions, 3 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 9303e4dae0..22bc6ad447 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -86,7 +86,7 @@ option (
BMCWEB_ENABLE_MUTUAL_TLS_AUTHENTICATION
"Enables authenticating users through TLS client certificates.
The BMCWEB_INSECURE_DISABLE_SSL must be OFF for this option to take effect."
- OFF
+ ON
)
# Insecure options. Every option that starts with a BMCWEB_INSECURE flag should
diff --git a/http/http_connection.h b/http/http_connection.h
index cce4a54a3e..7e92ea70ca 100644
--- a/http/http_connection.h
+++ b/http/http_connection.h
@@ -275,7 +275,7 @@ class Connection
SSL_set_session_id_context(
adaptor.native_handle(),
reinterpret_cast<const unsigned char*>(serverName.c_str()),
- serverName.length());
+ static_cast<unsigned int>(serverName.length()));
BMCWEB_LOG_DEBUG << this << " TLS is enabled on this connection.";
}
diff --git a/include/sessions.hpp b/include/sessions.hpp
index f197bff2de..4144705776 100644
--- a/include/sessions.hpp
+++ b/include/sessions.hpp
@@ -108,7 +108,7 @@ struct AuthConfigMethods
bool cookie = true;
bool sessionToken = true;
bool basic = true;
- bool tls = true;
+ bool tls = false;
void fromJson(const nlohmann::json& j)
{