mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-20 14:49:53 +01:00
Set a contacts handshake public key on receiving one
This commit is contained in:
@@ -159,6 +159,7 @@ public class HandshakeKeyExchangeManagerImpl extends ConversationClientImpl
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
PublicKey handshakePublicKey = new AgreementPublicKey(body.getRaw(0));
|
PublicKey handshakePublicKey = new AgreementPublicKey(body.getRaw(0));
|
||||||
|
contactManager.setHandshakePublicKey(txn, contactId, handshakePublicKey);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -194,6 +195,7 @@ public class HandshakeKeyExchangeManagerImpl extends ConversationClientImpl
|
|||||||
|
|
||||||
private void sendHandshakePublicKey(Transaction txn, Contact c)
|
private void sendHandshakePublicKey(Transaction txn, Contact c)
|
||||||
throws DbException {
|
throws DbException {
|
||||||
|
LOG.info("Sending our handshake public key to " + c.getAlias());
|
||||||
Group group = getContactGroup(c);
|
Group group = getContactGroup(c);
|
||||||
GroupId g = group.getId();
|
GroupId g = group.getId();
|
||||||
if (!db.containsGroup(txn, g)) db.addGroup(txn, group);
|
if (!db.containsGroup(txn, g)) db.addGroup(txn, group);
|
||||||
|
|||||||
Reference in New Issue
Block a user