Skip to content

Commit

Permalink
Add warning print in case we do use security level 0
Browse files Browse the repository at this point in the history
Signed-off-by: Marc Emmers <[email protected]>
  • Loading branch information
marcemmers committed Nov 1, 2024
1 parent 60980b5 commit 827328f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/ocpp/v201/connectivity_manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,10 @@ void ConnectivityManager::init_websocket() {

EVLOG_info << "Open websocket with NetworkConfigurationPriority: " << this->network_configuration_priority + 1
<< " which is configurationSlot " << config_slot_int;
if (connection_options.security_profile ==
security::OCPP_1_6_ONLY_UNSECURED_TRANSPORT_WITHOUT_BASIC_AUTHENTICATION) {
EVLOG_warning << "Using insecure security profile 0 without authentication";
}

if (const auto& active_network_profile_cv = ControllerComponentVariables::ActiveNetworkProfile;
active_network_profile_cv.variable.has_value()) {
Expand Down

0 comments on commit 827328f

Please sign in to comment.