Skip to content
Commit 45085ba6 authored by Siddharth Chandrasekaran's avatar Siddharth Chandrasekaran Committed by Johan Hedberg
Browse files

mgmt/osdp: cp: disallow unexpected SC responses



When CP has a secure channel active, it should never receive a
REPLY_CCRYPT or REPLY_RMAC_I. Since these responses change the SC state,
let's also make sure that they are accepted only when they are
expected: in response to commands CMD_CHLNG and CMD_SCRYPT respectively.

Reported-by: default avatarEran Jacob <eran.jacob@otorio.com>
Signed-off-by: default avatarSiddharth Chandrasekaran <sidcha.dev@gmail.com>
parent 3b4c4588
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment