diff options
author | Brian Gix <brian.gix@intel.com> | 2020-01-30 10:59:20 -0800 |
---|---|---|
committer | Brian Gix <brian.gix@intel.com> | 2020-01-30 11:03:47 -0800 |
commit | 243a46b6cac9e329b93df351936f5f65e6132e91 (patch) | |
tree | 133937aaa1b2a681142b54500989b901b59d2f3f /mesh/model.c | |
parent | 525d1ec340b23af19b0a3064180e54631c58d29e (diff) | |
download | bluez-243a46b6cac9e329b93df351936f5f65e6132e91.tar.gz |
mesh: Move Replay Protection to mesh/net.c
The specification calls for a flatter Replay Protection List that
applies to all processed messages, regardless of which credentials
were used to secure them. So storage and checking is now centralized
in mesh/net.c
Diffstat (limited to 'mesh/model.c')
-rw-r--r-- | mesh/model.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mesh/model.c b/mesh/model.c index 6d7674ee5..0018c7cff 100644 --- a/mesh/model.c +++ b/mesh/model.c @@ -1000,7 +1000,7 @@ bool mesh_model_rx(struct mesh_node *node, bool szmict, uint32_t seq0, if (key_aid != APP_AID_DEV) { uint16_t crpl = node_get_crpl(node); - if (appkey_msg_in_replay_cache(net, (uint16_t) decrypt_idx, src, + if (net_msg_in_replay_cache(net, (uint16_t) decrypt_idx, src, crpl, seq, iv_index)) { result = true; goto done; |