mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-14 03:39:05 +01:00
Second part of key rotation implementation. Work in progress.
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
package net.sf.briar.api.transport;
|
||||
|
||||
import net.sf.briar.api.ContactId;
|
||||
import net.sf.briar.api.db.DbException;
|
||||
import net.sf.briar.api.protocol.TransportId;
|
||||
|
||||
@@ -14,5 +15,12 @@ public interface ConnectionRecogniser {
|
||||
* expected, or null if the connection was not expected.
|
||||
*/
|
||||
ConnectionContext acceptConnection(TransportId t, byte[] tag)
|
||||
throws DbException;
|
||||
throws DbException;
|
||||
|
||||
void addWindow(ContactId c, TransportId t, long period, boolean alice,
|
||||
byte[] secret, long centre, byte[] bitmap) throws DbException;
|
||||
|
||||
void removeWindow(ContactId c, TransportId t, long period);
|
||||
|
||||
void removeWindows(ContactId c);
|
||||
}
|
||||
|
||||
@@ -1,12 +0,0 @@
|
||||
package net.sf.briar.api.transport;
|
||||
|
||||
import java.util.Set;
|
||||
|
||||
public interface ConnectionWindow {
|
||||
|
||||
boolean isSeen(long connection);
|
||||
|
||||
void setSeen(long connection);
|
||||
|
||||
Set<Long> getUnseen();
|
||||
}
|
||||
Reference in New Issue
Block a user