akwizgran
6942a368d4
Don't share groups unless the contact supports the client.
2018-04-29 16:40:26 +01:00
akwizgran
c4e9b6f2ab
Remove debug logging.
2018-04-29 16:40:26 +01:00
akwizgran
05deaf42e3
Store and exchange client minor versions.
...
These don't affect client visibility.
2018-04-29 16:40:26 +01:00
akwizgran
2e570ba50d
Rename client version to major version.
2018-04-29 16:40:23 +01:00
akwizgran
cadb17987c
Use client versioning for messaging.
2018-04-29 16:39:54 +01:00
akwizgran
e76f114a72
Use client versioning for introductions.
2018-04-29 16:39:54 +01:00
akwizgran
cb11b55a9a
Use client versioning for transport properties.
2018-04-29 16:39:54 +01:00
akwizgran
f4c5855dd8
Use client versioning for private groups.
2018-04-29 16:39:53 +01:00
akwizgran
be309057cd
Use client versioning for blogs and forums.
2018-04-29 16:39:53 +01:00
akwizgran
cf396c2ce2
Check whether contact group exists before using it.
2018-04-29 16:39:53 +01:00
akwizgran
a9f77f0f90
Add a method for getting a client's visibility.
2018-04-29 16:39:53 +01:00
akwizgran
cc6fed0298
Add javadocs.
2018-04-29 16:39:53 +01:00
akwizgran
66137d4cfa
Add method for comparing visibilities.
2018-04-29 16:39:52 +01:00
akwizgran
114044ee5f
Use client version to register validators, delivery hooks.
2018-04-29 16:39:52 +01:00
akwizgran
1197d65d8d
Extract ClientVersion inner class.
2018-04-29 16:39:52 +01:00
akwizgran
85c11f8e1f
Remove redundant checks when adding contacts.
...
Hooks are now called exactly once per contact.
2018-04-29 16:39:52 +01:00
akwizgran
8c00f2417b
Add client version to groups table.
2018-04-29 16:39:51 +01:00
akwizgran
a38f39207f
Initial implementation of client versioning client.
2018-04-29 16:39:51 +01:00
akwizgran
b7874365a3
Expose getMessageIds() through DatabaseComponent interface.
2018-04-29 16:39:51 +01:00
akwizgran
196caa7b45
Update ID of transport properties client.
2018-04-29 16:39:51 +01:00
akwizgran
3fd6ce2313
Fix javadoc.
2018-04-29 16:39:50 +01:00
akwizgran
c42852cde2
Merge branch '1213-update-transport-keys' into 'master'
...
Update transport keys in-place to retain key set IDs
Closes #1213
See merge request akwizgran/briar!779
2018-04-29 15:00:02 +00:00
Torsten Grote
a38b0a8527
Merge branch 'bluetooth-connection-limiter' into 'master'
...
Don't make or accept Bluetooth contact connections during key agreement
See merge request akwizgran/briar!770
2018-04-29 14:42:00 +00:00
Torsten Grote
79d6fd28de
Merge branch '474-alice-flag' into 'master'
...
IntroduceeProtocolEngine uses wrong role when adding keys
See merge request akwizgran/briar!780
2018-04-29 02:27:18 +00:00
akwizgran
68132d893b
IntroduceeProtocolEngine uses wrong role when adding keys.
2018-04-28 23:04:08 +01:00
akwizgran
6b011d2a7d
Update transport keys in-place to retain key set IDs.
2018-04-28 22:15:59 +01:00
akwizgran
d7492df81c
Skip UTestTest, which literally fails at random.
2018-04-28 14:52:56 +01:00
Torsten Grote
ebf73716bb
Merge branch '474-manual-decline' into 'master'
...
Don't automatically respond to declined introductions
See merge request akwizgran/briar!777
2018-04-28 13:46:40 +00:00
akwizgran
6e42377b74
Don't automatically respond to declined introduction.
2018-04-28 00:11:45 +01:00
akwizgran
e8f33c0e6e
Merge branch 'introduction-ui-messages' into 'master'
...
Fix introduction response messages in UI and some minor fixes
Closes #923
See merge request akwizgran/briar!776
2018-04-27 21:42:10 +00:00
Torsten Grote
5f6af4e40f
Fix introduction response messages in UI and some minor fixes
2018-04-27 16:22:10 -03:00
Torsten Grote
55a329a879
Merge branch '474-automatic-decline' into 'master'
...
Send automatic decline when other introducee declines
See merge request akwizgran/briar!775
2018-04-27 17:58:45 +00:00
akwizgran
23f0864d8b
Don't track invisible decline message.
2018-04-27 18:35:07 +01:00
akwizgran
c0dfe3e85a
Sent automatic decline when other introducee declines.
2018-04-27 17:33:24 +01:00
Torsten Grote
31b69577e8
Merge branch '474-introduction-client' into 'master'
...
New Introduction Protocol
Closes #308 , #377 , #474 , and #613
See merge request akwizgran/briar!758
2018-04-27 14:43:01 +00:00
Torsten Grote
99dba69c87
Only add transport properties and keys when the contact was added
...
This will be changed once we have a way to reset state for peers
that were contacts already at some point in the past.
One contact might have deleted the other, but not vice versa.
So they have mismatching state that needs to be reset.
See #2 for more information.
2018-04-27 11:30:18 -03:00
Torsten Grote
44f5a9db1e
Address last review comments
2018-04-27 11:04:08 -03:00
Torsten Grote
80a9689316
Address second round of review comments
2018-04-26 20:39:17 -03:00
Torsten Grote
337f7e7b8f
Unify introduction response methods and handle ProtocolStateException
...
It is possible that a remote DECLINE message arrives short before the
user responds to the introduction.
This will cause a ProtocolStateException which (for now) is just caught
and a generic (existing) error message will be shown.
2018-04-26 18:18:31 -03:00
Torsten Grote
f8f98ed95d
Properly handle DECLINE messages in START state
...
Previously, DECLINE messages let directly to the START state
for introducer and introducees.
So incoming ACCEPT and DECLINE messages needed to be ignored in START state
introducing undefined behavior into the protocol.
This is fixed with this commit by adding two additional states
to the introducer state machine as well as making use of the existing
LOCAL_DECLINED state for the introducees.
2018-04-26 18:00:57 -03:00
Torsten Grote
bd5504de26
Add a MAC to the ACTIVATE message to prevent the introducer to fake them
...
A fake ACTIVATE message would cause us to activate the transport keys
before the contact has received our auth message,
which would compromise forward secrecy.
2018-04-26 16:56:38 -03:00
Torsten Grote
0e04044ebb
Ensure that incoming messages are expected in the current state
...
Previously, the introducer would process and forward invalid messages by
the introducees. This commit adds the necessary checks and tests.
2018-04-26 11:18:04 -03:00
Torsten Grote
0a5d408686
Add a test for when one introducee had deleted the other one
2018-04-25 14:42:17 -03:00
Torsten Grote
f94db28035
Handle and test introductions to existing contacts
2018-04-25 13:30:51 -03:00
Torsten Grote
b291fcd2cd
Only allow new introductions in START state
...
When the user attempts an introduction, instead of the introduction
message input field, an explanatory text will be shown and the
introduction can not be made until the last one has been finished.
2018-04-25 12:05:15 -03:00
Torsten Grote
94a6137a42
Also validate encoded message in MessageEncoder test
2018-04-25 10:52:32 -03:00
Torsten Grote
72e9a9d807
Address first round of review comments for new IntroductionClient
2018-04-25 10:43:56 -03:00
Torsten Grote
a9b678df32
Remove broken and deprecated MessageQueue as it is not needed anymore
...
Closes #308
2018-04-25 10:14:04 -03:00
Torsten Grote
f81ef30b47
Replace old introduction client with new one
2018-04-25 10:14:01 -03:00
Torsten Grote
1bc29fec06
IntroductionManager and Protocol Engines
2018-04-25 10:13:41 -03:00