Remove support for unbound transport keys.

This commit is contained in:
akwizgran
2018-04-26 23:28:13 +01:00
parent e83d8bb700
commit 89a4d1922b
18 changed files with 122 additions and 502 deletions

View File

@@ -453,12 +453,11 @@ class IntroduceeProtocolEngine
.getContact(txn, s.getRemote().author.getId(),
localAuthor.getId());
// bind the keys to the new contact
// add the keys to the new contact
//noinspection ConstantConditions
keys = keyManager
.addUnboundKeys(txn, new SecretKey(s.getMasterKey()),
timestamp, s.getLocal().alice);
keyManager.bindKeys(txn, c.getId(), keys);
.addContact(txn, c.getId(), new SecretKey(s.getMasterKey()),
timestamp, s.getLocal().alice, false);
// add signed transport properties for the contact
//noinspection ConstantConditions