Skip to content
This repository was archived by the owner on Apr 27, 2026. It is now read-only.

Commit 13751e4

Browse files
mlitrestephenredhat
authored andcommitted
fix(ocpp16): Send invalid fw signature security event (#1125)
Invalid firmware signature security event is forced as a critical event to comply with TC_081_CS. Signed-off-by: Martin Litre <mnlitre@gmail.com>
1 parent c8f74b3 commit 13751e4

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

lib/ocpp/v16/charge_point_impl.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3041,7 +3041,8 @@ void ChargePointImpl::signed_firmware_update_status_notification(FirmwareStatusE
30413041
this->message_dispatcher->dispatch_call(call, initiated_by_trigger_message);
30423042

30433043
if (status == FirmwareStatusEnumType::InvalidSignature) {
3044-
this->securityEventNotification(ocpp::security_events::INVALIDFIRMWARESIGNATURE, std::nullopt, true);
3044+
// Force critical status to send event to comply with TC_081_CS
3045+
this->securityEventNotification(ocpp::security_events::INVALIDFIRMWARESIGNATURE, std::nullopt, true, true);
30453046
}
30463047

30473048
if (this->firmware_update_is_pending) {

0 commit comments

Comments
 (0)