Harden marathon-tested OTA and hardware paths
Add durable TempRadio, ACL, clock, bridge, GPS/I2C, USB logging, and Indicator recovery safeguards together with expanded automation, build/profile contracts, release metadata, and the hardware validation ledger.
This commit is contained in:
1 parent
f873e51b43
commit
8920c35da5
109 files changed
+18697
-1094
No files matched your search
@@ -10,6 +10,7 @@
|
||||
#include <string.h>
|
||||
#include "ed_25519.h"
|
||||
#include "mbedtls/base64.h"
|
||||
#include "UsbLogging.h"
|
||||
|
||||
// Base64 URL encoding table (without padding)
|
||||
static const char base64url_chars[] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_";
|
||||
@@ -87,7 +88,11 @@ bool JWTHelper::createAuthToken(
|
||||
#if !defined(PORTABLE_MQTT_OBSERVER)
|
||||
int verify_result = ed25519_verify(signature, (const unsigned char*)signingInput, signingInputLen, public_key);
|
||||
if (verify_result != 1) {
|
||||
if (Serial.availableForWrite() > 0) Serial.println("JWTHelper: Signature verification failed!");
|
||||
if (mesh::isUsbLoggingEnabled()
|
||||
&& mesh::usbLoggingPort().availableForWrite() > 0) {
|
||||
mesh::usbLoggingPort().println(
|
||||
"JWTHelper: Signature verification failed!");
|
||||
}
|
||||
return false;
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in new issue
Block a user