crypto: Reset the verification state of our identity if the master keys change.

master
Damir Jelić 2020-08-20 15:13:55 +02:00
parent 89b56b5af8
commit 398edbbe0c
1 changed files with 4 additions and 0 deletions

View File

@ -448,6 +448,10 @@ impl OwnUserIdentity {
self.self_signing_key = self_signing_key;
self.user_signing_key = user_signing_key;
if self.master_key != master_key {
self.verified.store(false, Ordering::SeqCst)
}
self.master_key = master_key;
Ok(())