mirror of
https://github.com/chatmail/core.git
synced 2026-05-05 14:26:30 +03:00
use independent verification key
there are 3 key blobs in the database, gossip_key, public_key and verified_key. the verification_key should not change if, for any reasons, the public_key or the gossip_key changes.
This commit is contained in:
committed by
holger krekel
parent
f28a971b96
commit
6888554e9d
@@ -804,14 +804,14 @@ impl Contact {
|
||||
}
|
||||
|
||||
if let Some(peerstate) = peerstate {
|
||||
if peerstate.verified_key().is_some() {
|
||||
if peerstate.verified_key.is_some() {
|
||||
return VerifiedStatus::BidirectVerified;
|
||||
}
|
||||
}
|
||||
|
||||
let peerstate = Peerstate::from_addr(context, &context.sql, &self.addr);
|
||||
if let Some(ps) = peerstate {
|
||||
if ps.verified_key().is_some() {
|
||||
if ps.verified_key.is_some() {
|
||||
return VerifiedStatus::BidirectVerified;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user