Files
firmware/test/support/MockMeshService.h
Benjamin Faershtein 1e982fa78c Sign plaintext packets in licensed mode (#10969)
* feat: sign licensed plaintext packets

Preserve and publish identity keys in licensed mode so existing XEdDSA signatures can authenticate plaintext traffic. Sign licensed broadcasts and direct messages when they fit, while keeping PKI encryption disabled and normal routing behavior unchanged.

* fix(security): persist licensed channel sanitation

* fix(security): close licensed migration lifecycle gaps

* fix(security): address licensed signing review feedback

* test: restore signing globals from Unity teardown

* fix(baseui): allow confirmed ham region selection

* fix(baseui): guard region picker validation

* style: trunk fmt

---------

Co-authored-by: Ben Meadors <benmmeadors@gmail.com>
Co-authored-by: Austin <vidplace7@gmail.com>
2026-07-27 02:57:15 +00:00

17 lines
484 B
C++

#pragma once
// Release-to-pool MeshService stub shared by the native suites: handlers that raise client
// notifications must not leak them across thousands of iterations (LSan turns the run RED).
#include "mesh/MeshService.h"
class MockMeshService : public MeshService
{
public:
void sendClientNotification(meshtastic_ClientNotification *n) override
{
notificationCount++;
releaseClientNotificationToPool(n);
}
uint32_t notificationCount = 0;
};