Add MY_SIGNING_GW_REQUEST_SIGNATURES_FROM_ALL flag

This flag, when set in a gateway sketch will make the gateway
require all nodes to sign messages sent to it.
This commit is contained in:
Patrick Fallberg
2016-10-18 22:02:19 +02:00
parent 75aad5de35
commit afd7b7abbb
4 changed files with 33 additions and 7 deletions
+10
View File
@@ -365,6 +365,15 @@
*/
//#define MY_SIGNING_REQUEST_SIGNATURES
/**
* @def MY_SIGNING_GW_REQUEST_SIGNATURES_FROM_ALL
* @brief Enable this to have gateway require all nodes in the network to sign messages sent to it. @ref MY_SIGNING_REQUEST_SIGNATURES must also be set.
*
* Use this for maximum security, but be aware that every single node will have to be personalized before they can be used.
* Note that if this is enabled, and whitelisting is also enabled, whitelisting will also be in effect for all nodes.
*/
//#define MY_SIGNING_GW_REQUEST_SIGNATURES_FROM_ALL
/**
* @def MY_VERIFICATION_TIMEOUT_MS
* @brief Define a suitable timeout for a signature verification session
@@ -828,6 +837,7 @@
#define MY_SIGNING_ATSHA204
#define MY_SIGNING_SOFT
#define MY_SIGNING_REQUEST_SIGNATURES
#define MY_SIGNING_GW_REQUEST_SIGNATURES_FROM_ALL
#define MY_SIGNING_NODE_WHITELISTING {{.nodeId = GATEWAY_ADDRESS,.serial = {0x09,0x08,0x07,0x06,0x05,0x04,0x03,0x02,0x01}}}
#define MY_IS_RFM69HW
#define MY_PARENT_NODE_IS_STATIC