mirror of
https://github.com/meshtastic/firmware.git
synced 2025-04-28 18:47:40 +00:00
Move security migrate to if has_security
This commit is contained in:
parent
0e7253d309
commit
b4cbea1b3d
@ -124,6 +124,12 @@ NodeDB::NodeDB()
|
|||||||
|
|
||||||
// Include our owner in the node db under our nodenum
|
// Include our owner in the node db under our nodenum
|
||||||
meshtastic_NodeInfoLite *info = getOrCreateMeshNode(getNodeNum());
|
meshtastic_NodeInfoLite *info = getOrCreateMeshNode(getNodeNum());
|
||||||
|
if (!config.has_security) {
|
||||||
|
config.has_security = true;
|
||||||
|
config.security.serial_enabled = config.device.serial_enabled;
|
||||||
|
config.security.bluetooth_logging_enabled = config.bluetooth.device_logging_enabled;
|
||||||
|
config.security.is_managed = config.device.is_managed;
|
||||||
|
}
|
||||||
#if !(MESHTASTIC_EXCLUDE_PKI)
|
#if !(MESHTASTIC_EXCLUDE_PKI)
|
||||||
// Calculate Curve25519 public and private keys
|
// Calculate Curve25519 public and private keys
|
||||||
printBytes("Old Pubkey", config.security.public_key.bytes, 32);
|
printBytes("Old Pubkey", config.security.public_key.bytes, 32);
|
||||||
|
Loading…
Reference in New Issue
Block a user