mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-16 12:49:55 +01:00
Forwarded accept messages aren't visible to the introducee.
This commit is contained in:
@@ -265,8 +265,8 @@ class IntroducerProtocolEngine
|
|||||||
|
|
||||||
// Forward ACCEPT message
|
// Forward ACCEPT message
|
||||||
Introducee i = getOtherIntroducee(s, m.getGroupId());
|
Introducee i = getOtherIntroducee(s, m.getGroupId());
|
||||||
// The message will be visible to the introducee
|
// The forwarded message will not be visible to the introducee
|
||||||
long localTimestamp = getTimestampForVisibleMessage(txn, s, i);
|
long localTimestamp = getTimestampForInvisibleMessage(s, i);
|
||||||
Message sent = sendAcceptMessage(txn, i, localTimestamp,
|
Message sent = sendAcceptMessage(txn, i, localTimestamp,
|
||||||
m.getEphemeralPublicKey(), m.getAcceptTimestamp(),
|
m.getEphemeralPublicKey(), m.getAcceptTimestamp(),
|
||||||
m.getTransportProperties(), false);
|
m.getTransportProperties(), false);
|
||||||
@@ -326,8 +326,8 @@ class IntroducerProtocolEngine
|
|||||||
|
|
||||||
// Forward ACCEPT message
|
// Forward ACCEPT message
|
||||||
Introducee i = getOtherIntroducee(s, m.getGroupId());
|
Introducee i = getOtherIntroducee(s, m.getGroupId());
|
||||||
// The message will be visible to the introducee
|
// The forwarded message will not be visible to the introducee
|
||||||
long localTimestamp = getTimestampForVisibleMessage(txn, s, i);
|
long localTimestamp = getTimestampForInvisibleMessage(s, i);
|
||||||
Message sent = sendAcceptMessage(txn, i, localTimestamp,
|
Message sent = sendAcceptMessage(txn, i, localTimestamp,
|
||||||
m.getEphemeralPublicKey(), m.getAcceptTimestamp(),
|
m.getEphemeralPublicKey(), m.getAcceptTimestamp(),
|
||||||
m.getTransportProperties(), false);
|
m.getTransportProperties(), false);
|
||||||
@@ -379,7 +379,7 @@ class IntroducerProtocolEngine
|
|||||||
|
|
||||||
// Forward DECLINE message
|
// Forward DECLINE message
|
||||||
Introducee i = getOtherIntroducee(s, m.getGroupId());
|
Introducee i = getOtherIntroducee(s, m.getGroupId());
|
||||||
// The message will be visible to the introducee
|
// The forwarded message will be visible to the introducee
|
||||||
long localTimestamp = getTimestampForVisibleMessage(txn, s, i);
|
long localTimestamp = getTimestampForVisibleMessage(txn, s, i);
|
||||||
Message sent = sendDeclineMessage(txn, i, localTimestamp, false);
|
Message sent = sendDeclineMessage(txn, i, localTimestamp, false);
|
||||||
|
|
||||||
@@ -432,7 +432,7 @@ class IntroducerProtocolEngine
|
|||||||
|
|
||||||
// Forward DECLINE message
|
// Forward DECLINE message
|
||||||
Introducee i = getOtherIntroducee(s, m.getGroupId());
|
Introducee i = getOtherIntroducee(s, m.getGroupId());
|
||||||
// The message will be visible to the introducee
|
// The forwarded message will be visible to the introducee
|
||||||
long localTimestamp = getTimestampForVisibleMessage(txn, s, i);
|
long localTimestamp = getTimestampForVisibleMessage(txn, s, i);
|
||||||
Message sent = sendDeclineMessage(txn, i, localTimestamp, false);
|
Message sent = sendDeclineMessage(txn, i, localTimestamp, false);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user