diff --git a/include/ocpp/common/websocket/websocket_libwebsockets.hpp b/include/ocpp/common/websocket/websocket_libwebsockets.hpp index b27ca4f61..98488a6cd 100644 --- a/include/ocpp/common/websocket/websocket_libwebsockets.hpp +++ b/include/ocpp/common/websocket/websocket_libwebsockets.hpp @@ -56,7 +56,7 @@ class WebsocketLibwebsockets final : public WebsocketBase { /// \return True if it was successful, false otherwise bool initialize_connection_options(std::shared_ptr& new_connection_data); - bool tls_init(struct ssl_ctx_st* ctx, const std::string& path_chain, const std::string& path_key, bool custom_key, + bool tls_init(struct ssl_ctx_st* ctx, const std::string& path_chain, const std::string& path_key, std::optional& password); /// \brief Websocket processing thread loop diff --git a/lib/ocpp/common/websocket/websocket_libwebsockets.cpp b/lib/ocpp/common/websocket/websocket_libwebsockets.cpp index e781d15f8..4913aac6c 100644 --- a/lib/ocpp/common/websocket/websocket_libwebsockets.cpp +++ b/lib/ocpp/common/websocket/websocket_libwebsockets.cpp @@ -59,7 +59,6 @@ template <> class std::default_delete { namespace ocpp { -using evse_security::is_custom_private_key_file; using evse_security::OpenSSLProvider; enum class EConnectionState { @@ -445,7 +444,7 @@ static const struct lws_protocols protocols[] = {{local_protocol_name, callback_ LWS_PROTOCOL_LIST_TERM}; bool WebsocketLibwebsockets::tls_init(SSL_CTX* ctx, const std::string& path_chain, const std::string& path_key, - bool custom_key, std::optional& password) { + std::optional& password) { auto rc = SSL_CTX_set_cipher_list(ctx, this->connection_options.supported_ciphers_12.c_str()); if (rc != 1) { EVLOG_debug << "SSL_CTX_set_cipher_list return value: " << rc; @@ -653,22 +652,9 @@ bool WebsocketLibwebsockets::initialize_connection_options(std::shared_ptr