Skip to content

Commit 60495ea

Browse files
authored
Add new internal commands to exception list (#499)
1 parent ff89821 commit 60495ea

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

libraries/MySensors/core/MySigning.cpp

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -84,10 +84,12 @@ static bool skipSign(MyMessage &msg) {
8484
SIGN_DEBUG(PSTR("Skipping security for ACK on command %d type %d\n"), mGetCommand(msg), msg.type);
8585
return true;
8686
} else if (mGetCommand(msg) == C_INTERNAL &&
87-
(msg.type == I_NONCE_REQUEST || msg.type == I_NONCE_RESPONSE || msg.type == I_SIGNING_PRESENTATION ||
88-
msg.type == I_ID_REQUEST || msg.type == I_ID_RESPONSE ||
89-
msg.type == I_FIND_PARENT || msg.type == I_FIND_PARENT_RESPONSE ||
90-
msg.type == I_HEARTBEAT || msg.type == I_HEARTBEAT_RESPONSE)) {
87+
(msg.type == I_NONCE_REQUEST || msg.type == I_NONCE_RESPONSE || msg.type == I_SIGNING_PRESENTATION ||
88+
msg.type == I_ID_REQUEST || msg.type == I_ID_RESPONSE ||
89+
msg.type == I_FIND_PARENT || msg.type == I_FIND_PARENT_RESPONSE ||
90+
msg.type == I_HEARTBEAT || msg.type == I_HEARTBEAT_RESPONSE ||
91+
msg.type == I_PING || msg.type == I_PONG ||
92+
msg.type == I_REGISTRATION_REQUEST )) {
9193
SIGN_DEBUG(PSTR("Skipping security for command %d type %d\n"), mGetCommand(msg), msg.type);
9294
return true;
9395
} else if (mGetCommand(msg) == C_STREAM &&

0 commit comments

Comments
 (0)