diff options
author | Roman Smrž <roman.smrz@seznam.cz> | 2022-07-27 22:01:50 +0200 |
---|---|---|
committer | Roman Smrž <roman.smrz@seznam.cz> | 2022-07-27 22:01:50 +0200 |
commit | 5cfdbc49647b6be943d01e4ab141b705e9e5c86d (patch) | |
tree | a3ed953b8d9176a785fa4612d852d3e6412dfce1 /include/erebos | |
parent | 384961428e3b47f8af803e2c7520d5ca69cc4926 (diff) |
Explicit identities in pairing request
Actual device identities can change at any point during the pairing
process, so it is necessary to fix the ones used for nonce confirmation
and just initially verify that they belong to the respective sides.
Diffstat (limited to 'include/erebos')
-rw-r--r-- | include/erebos/pairing.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/erebos/pairing.h b/include/erebos/pairing.h index 936b3ac..ea349a9 100644 --- a/include/erebos/pairing.h +++ b/include/erebos/pairing.h @@ -83,6 +83,8 @@ private: struct State { mutex lock; StatePhase phase; + optional<Identity> idReq; + optional<Identity> idRsp; vector<uint8_t> nonce; vector<uint8_t> peerCheck; promise<Outcome> outcome; |