Utility to verify if a frame should be discarded or kept based on its security level.
More...
Utility to verify if a frame should be discarded or kept based on its security level.
◆ zwave_security_validation_is_s2_nif_downgrade_attack_detected()
| bool zwave_security_validation_is_s2_nif_downgrade_attack_detected |
( |
zwave_node_id_t |
node_id, |
|
|
const uint8_t * |
nif, |
|
|
uint8_t |
nif_length |
|
) |
| |
Verifies if a the S2 Command Class has disappeared from the NIF, whereas it was reported as supported previously.
- Parameters
-
| node_id | The NodeID for which the NIF is processed. |
| nif | Raw byte array for the NIF. |
| nif_length | The length of the byte array. |
- Returns
- True if the frame is accepted and should go through. False otherwise.
◆ zwave_security_validation_is_security_valid_for_control()
Verifies if a frame supported by another node can be accepted based on the security it was received on.
- Parameters
-
| connection | Connection Info object to use for the remote node information. |
- Returns
- True if the frame is accepted and should be accepted. False otherwise.
◆ zwave_security_validation_is_security_valid_for_support()
Verifies if a frame supported by us can be accepted based on the security it was received on.
- Parameters
-
| minimal_scheme | The minimal security scheme that the Command Class handler has registered. |
| connection | Connection Info object to use for the remote node information. |
- Returns
- True if the frame is accepted and should be accepted. False otherwise.