akwizgran
ee641db600
Record the PID of the Tor process so we can make sure it gets killed.
2013-04-25 18:46:05 +01:00
akwizgran
6f206bf270
Use a shutdown hook to kill the Tor process if the plugin isn't stopped.
2013-04-25 15:37:20 +01:00
akwizgran
1f8c9cc977
Don't create lots of temporary File objects.
2013-04-25 15:18:36 +01:00
akwizgran
6c4c0926c5
Randomise initial polling intervals to spread out connection attempts.
2013-04-25 14:57:32 +01:00
akwizgran
db475577c8
Validate onion hostnames, only try to launch Tor on ARM, added comments.
2013-04-25 14:56:51 +01:00
akwizgran
3939ae6d60
Tor plugin for Android using native Tor binary, jtorctl and jsocks.
...
Only the ARM binary is included at present. Better control of the Tor
process is needed - it's possible for it to be left running when Briar
exits, and if the cookie file is deleted it's no longer possible to stop
the process.
2013-04-25 05:09:25 +01:00
akwizgran
1e5e78cc44
Use Integer.parseInt(String) to get a primitive int.
2013-04-25 05:07:26 +01:00
akwizgran
178c486a4a
Put Android plugins and Java SE plugins in separate modules.
2013-04-24 21:09:38 +01:00
akwizgran
9c61e4e01c
Cleaned up Bluetooth reflection code.
2013-04-24 11:33:21 +01:00
akwizgran
9e17db5db1
Added activities for managing blog and group subscriptions.
2013-04-18 21:28:04 +01:00
akwizgran
374bff2fb6
UI for setting and entering the password that encrypts the database key.
2013-04-16 14:49:14 +01:00
akwizgran
e343c9f4bb
Added PBKDF2 to crypto component.
2013-04-16 12:04:23 +01:00
akwizgran
24ff4b61c3
Create a fresh server socket for each binding attempt.
2013-04-15 14:55:07 +01:00
akwizgran
c5fa3d1841
Removed last connection time from Contact class, tightened up layouts.
2013-04-15 14:51:59 +01:00
akwizgran
2ef06f8564
Inlined constant values in SQL statements to improve readability.
2013-04-15 13:45:21 +01:00
akwizgran
42fd02d0b9
Messages in restricted groups should propagate without moderation.
...
If the group's owner is spamming, unsubscribe.
2013-04-15 12:22:12 +01:00
akwizgran
5a365f6ce9
Storing a new secret can cause more than one old secret to expire.
...
This depends on the (unspecified) order in which new secrets are stored.
For example, if the secrets for periods 0 - 2 are loaded in period 3,
the secrets for periods 3 and 4 will be stored; the secrets for periods
0 and 1 may expire separately if the secret for period 3 is stored
before the secret for period 4, or together if the secret for period 4
is stored before the secret for period 3.
2013-04-15 11:20:59 +01:00
akwizgran
da7657ff4d
Include author and rating in private message headers.
2013-04-14 21:15:23 +01:00
akwizgran
077efbbea1
Removed an unused database method.
2013-04-14 19:34:50 +01:00
akwizgran
e83f6bbbc0
Don't use exponential backoff between multicast packets.
2013-04-14 15:37:57 +01:00
akwizgran
3c677a8599
Give positive ratings to own pseudonyms and contacts' known pseudonyms.
2013-04-14 15:17:11 +01:00
akwizgran
8e9517ced0
Don't broadcast events for obsolete updates.
2013-04-14 15:16:18 +01:00
akwizgran
ab0917029e
Use executeBatch() for a batch update, not executeUpdate().
2013-04-14 14:37:44 +01:00
akwizgran
ec64a2771b
Cleaned up setRating() method.
2013-04-14 14:11:29 +01:00
akwizgran
1a8dbd1dbb
Added a method to get a list of available but not subscribed groups.
2013-04-13 23:33:21 +01:00
akwizgran
bbdfe30e78
Added a flag for making groups visible to future contacts.
2013-04-13 19:27:39 +01:00
akwizgran
4f58a8aee4
UNRATED rating should have ordinal 0 so it corresponds to SQL NULL.
2013-04-12 20:16:34 +01:00
akwizgran
398f752c34
Added a method for creating local groups.
2013-04-12 10:26:01 +01:00
akwizgran
0f63b22b34
Removed debug logging.
2013-04-11 13:15:43 +01:00
akwizgran
0c007dc4d2
Don't discard future messages within the maximum clock difference.
2013-04-11 13:13:21 +01:00
akwizgran
525d909d08
Avoid redundant derivation from dead secrets.
...
Find the newest dead secret for each endpoint, erase any others and
derive from the newest.
2013-04-11 12:09:35 +01:00
akwizgran
57624d79a8
Secrets referenced by the recogniser must not be erased by the manager.
...
This bug was causing crashes at shutdown when the connection recogniser
tried to derive tags from secrets that had been erased by the key
manager - the derived tags were not present in the recogniser's maps.
2013-04-11 11:48:54 +01:00
akwizgran
6f8982f3fd
Don't clone secrets until they're needed.
2013-04-11 11:29:57 +01:00
akwizgran
72fae48aef
Tests for key rotation.
2013-04-10 17:31:22 +01:00
akwizgran
5b5428bd8a
Duplicate current secrets may be derived from successive dead secrets.
2013-04-10 13:31:52 +01:00
akwizgran
60dee4611c
Validate key derivation inputs: always 32 bytes, never blank.
2013-04-10 12:48:25 +01:00
akwizgran
f1e12c630f
Several bug fixes for DuplexConnection, logging for ConnectionRegistry.
...
Some packet types weren't being generated or handled, connections
weren't properly disposed of when exceptions occurred.
2013-04-10 00:11:22 +01:00
akwizgran
0d0a0d3463
Minor logging changes for TCP plugins.
2013-04-10 00:06:25 +01:00
akwizgran
2daf2bf9d6
Documented the return value of incrementConnectionCounter().
2013-04-10 00:03:38 +01:00
akwizgran
12d28433de
Transport updates only contained one property per transport.
2013-04-10 00:01:50 +01:00
akwizgran
0958570405
Fixed invalid column indices - unit tests would have caught them.
2013-04-09 21:02:37 +01:00
akwizgran
84b34048ba
Don't make empty offers.
2013-04-09 20:13:59 +01:00
akwizgran
c3d193f398
Erase tag key after use.
2013-04-09 20:11:16 +01:00
akwizgran
d6ffe9b3d0
Incorrect key derivation flag was stored during invitation process.
2013-04-09 20:06:10 +01:00
akwizgran
433fe94e61
Fixed an ambiguous column name, removed some logging.
2013-04-09 17:24:16 +01:00
akwizgran
6a280944ba
Don't set socket timeout unless timeouts are expected.
2013-04-09 14:03:12 +01:00
akwizgran
de472ba2a6
Create an identity at startup if the database doesn't exist.
2013-04-08 16:01:52 +01:00
akwizgran
ce7e9e73c9
Fixed a wrong argument number in a prepared statement.
2013-04-07 21:10:08 +01:00
akwizgran
8c4ba716ff
Temporarily disabled IPv6 support.
...
Some devices don't support IPv6, so we'll need to bind separate IPv4 and
IPv6 sockets and advertise both addresses.
2013-04-07 20:38:49 +01:00
akwizgran
2de3160c90
Strip interface name from host address if present.
2013-04-07 20:13:37 +01:00