mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-14 19:59:05 +01:00
Double-check the initiator flag and transport ID of incoming
connections, and invert the flag for the responder's side.
This commit is contained in:
@@ -10,5 +10,5 @@ public interface ConnectionWriterFactory {
|
||||
boolean initiator, TransportId t, long connection, byte[] secret);
|
||||
|
||||
ConnectionWriter createConnectionWriter(OutputStream out, long capacity,
|
||||
byte[] encryptedIv, byte[] secret);
|
||||
TransportId t, byte[] encryptedIv, byte[] secret);
|
||||
}
|
||||
|
||||
@@ -5,8 +5,8 @@ import net.sf.briar.api.TransportId;
|
||||
|
||||
public interface StreamConnectionFactory {
|
||||
|
||||
void createIncomingConnection(ContactId c, StreamTransportConnection s,
|
||||
byte[] encryptedIv);
|
||||
void createIncomingConnection(TransportId t, ContactId c,
|
||||
StreamTransportConnection s, byte[] encryptedIv);
|
||||
|
||||
void createOutgoingConnection(TransportId t, ContactId c,
|
||||
StreamTransportConnection s);
|
||||
|
||||
Reference in New Issue
Block a user