akwizgran
4050c17a9a
Recompiled jSSC for Java 1.5.
2012-11-30 12:50:03 +00:00
akwizgran
79aee8141a
Logging for modem plugin.
2012-11-30 12:11:49 +00:00
akwizgran
7afd2d8f74
Don't accept an unreasonably large window size.
2012-11-27 15:38:55 +00:00
akwizgran
80543984be
Use whole buffers for reads and writes.
2012-11-27 15:16:56 +00:00
akwizgran
705b87b97c
Writes to the reliability layer should be asynchronous.
...
The flow control window will limit the amount of buffered data.
2012-11-27 14:51:34 +00:00
akwizgran
f8210e1b13
Wake any readers that are waiting for data when the modem hangs up.
2012-11-27 14:40:21 +00:00
akwizgran
4869a8034b
Removed unnecessary synchronization.
2012-11-27 00:09:33 +00:00
akwizgran
116e194185
Replace the modem instance if an exception occurs.
2012-11-27 00:05:25 +00:00
akwizgran
14f2fd1995
Code cleanup, fixed potential NullPointerException if never connected.
2012-11-27 00:00:52 +00:00
akwizgran
a0c015352d
Reliability layer for the modem plugin (untested).
2012-11-26 23:54:17 +00:00
akwizgran
38a8799a7c
Removed stack traces.
2012-11-26 23:53:15 +00:00
akwizgran
f487d4f48a
Don't allow input or output streams to be used after hanging up.
2012-11-26 22:26:07 +00:00
akwizgran
4f37cb0837
The not operator is quite important.
2012-11-26 21:26:35 +00:00
akwizgran
2a293b5018
Use a fresh receive queue for each call.
...
This prevents a caller from getting stale data and/or a stale EOF marker
if a previous caller didn't consume the queue.
2012-11-26 16:16:36 +00:00
akwizgran
98f1f26fcf
Give names to threads for debugging purposes.
2012-11-26 14:48:10 +00:00
akwizgran
721a6b8950
First pass at a modem plugin.
2012-11-26 14:09:18 +00:00
akwizgran
6cc8463209
First pass at a modem plugin (unfinished).
2012-11-24 13:35:23 +00:00
akwizgran
d706363866
Removed unnecessary throws declarations.
2012-11-24 13:35:04 +00:00
akwizgran
dc932764ec
You can't use an AtomicBoolean as a semaphore.
2012-11-24 12:32:45 +00:00
akwizgran
9a3157c3e6
Removed unnecessary locking.
2012-11-24 11:46:49 +00:00
akwizgran
eb237e5bb0
Expose transport ID through plugin factory so it's available earlier.
2012-11-24 11:13:12 +00:00
akwizgran
d90b4f4bc5
Allow Plugin.start() to fail gracefully; removed unnecessary locking.
2012-11-24 10:50:20 +00:00
akwizgran
66c155e41c
Moved blocking operations off the serial port's event thread.
2012-11-23 22:41:12 +00:00
akwizgran
f40abf1a18
Safer not to create a new queue for each connection (race condition).
2012-11-23 22:36:47 +00:00
akwizgran
61f4dce408
Try to leave the serial port in a reusable state if an exception occurs.
2012-11-23 18:00:34 +00:00
akwizgran
91cb3ce7a9
Modem implementation using jSSC (untested).
2012-11-23 17:49:04 +00:00
akwizgran
df4e153837
Accidentally conflated two identically named fields.
2012-11-21 15:03:07 +00:00
akwizgran
a84df182e1
Updated JNA to 3.5.1.
2012-11-20 16:45:45 +00:00
akwizgran
71ee618a11
Patched Netlib to track changes in Bouncy/Spongy Castle.
...
Netlib was assuming that PEMReader would return a specific class when
parsing a public key; the latest version returns a different class.
Also patched the descriptor parser to accept fingerprint lines with or
without the opt keyword.
2012-11-20 16:28:39 +00:00
akwizgran
e416f3ba23
Updated Spongy Castle libs, added scpkix lib required by Silvertunnel.
2012-11-20 15:09:50 +00:00
akwizgran
9d57ff1177
Patched Netlib to use SC rather than BC and removed GeoIP database.
2012-11-16 19:07:50 +00:00
akwizgran
5c4ae3f7ad
Upgraded Netlib to 0.14.
2012-11-16 18:14:39 +00:00
akwizgran
7811f09854
Moved unfinished plugin code to sandpit repo.
2012-11-16 17:23:05 +00:00
akwizgran
267a105539
Moved some work off the UI thread and fixed a potential memory leak.
2012-11-15 01:31:08 +00:00
akwizgran
a5cedbfc75
Removed the Add Another Contact button.
2012-11-15 01:30:35 +00:00
akwizgran
fe74f765ee
Hide the soft keyboard after entering invitation/confirmation codes.
2012-11-15 01:04:30 +00:00
akwizgran
5298977015
Refactored invitation code to allow the UI to save & restore its state.
...
Android UI elements can be destroyed and recreated at any time, and they
can only store serialisable state, so references to long-running tasks
have to take the form of serialisable handles. This is pretty ugly -
it's easy to create memory leaks if you don't clean up stale
handle/reference mappings - but it's less ugly than the common solution
of using static variables to hold references.
2012-11-15 00:45:32 +00:00
akwizgran
3e8c6081ef
Use an unlimited read timeout for TCP sockets.
2012-11-15 00:09:05 +00:00
akwizgran
e8a4d77864
Android Bluetooth code cleanup.
2012-11-13 15:44:49 +00:00
akwizgran
18cd0c5f34
Android Bluetooth sockets will fail to connect during discovery.
2012-11-13 15:30:17 +00:00
akwizgran
3355851e35
No point having public ID fields on package-private classes.
2012-11-13 14:17:29 +00:00
akwizgran
29751dcf6f
Interface may be null if there are no suitable network interfaces.
2012-11-13 13:52:08 +00:00
akwizgran
eb4e7da354
Interface may be null if there are no suitable network interfaces.
2012-11-13 13:46:43 +00:00
akwizgran
f69f6b3d43
A real working implementation of the invitation protocol.
2012-11-13 12:26:33 +00:00
akwizgran
54ca7decbf
Added a missing accessor method to CryptoComponent.
2012-11-13 11:53:31 +00:00
akwizgran
eedfa592d2
Stub implementation of the invitation protocol (works on Android).
2012-11-13 11:08:47 +00:00
akwizgran
514bec5101
Requesting focus doesn't have the expected effect.
2012-11-13 11:07:46 +00:00
akwizgran
e1fb603d6b
Keep the service running until the JVM shuts down.
2012-11-13 11:07:20 +00:00
akwizgran
8fffc93bbc
Rewrote Android invitation wizard to use Views instead of Activities.
2012-11-12 16:39:01 +00:00
akwizgran
538c3e1b08
Use an executor for polling; fixed comparison bugs in PollerImpl.
2012-11-12 14:32:31 +00:00
akwizgran
3940614203
Use Holo Light theme if it's available, otherwise Light.
2012-11-07 15:16:42 +00:00
akwizgran
ccff166650
Moved hello world code into its own package, fixed service injection.
2012-11-07 15:07:08 +00:00
akwizgran
e3b6775760
Exclude Android-specific classes from non-Android ant build.
2012-11-07 12:58:54 +00:00
akwizgran
5aec95332d
Use RoboGuice for injection into Android activities.
2012-11-07 12:29:06 +00:00
akwizgran
8279cd14c9
Use light theme with dark icons (works on older versions).
2012-11-07 10:57:23 +00:00
akwizgran
aa5fc4b866
Minor layout changes.
2012-11-06 19:18:05 +00:00
akwizgran
f959ef99ea
Various layout fixes, moved remaining layout from XML to Java.
2012-11-06 18:34:55 +00:00
akwizgran
2046ed0cac
Merged Android invitation UI from add_contact repo.
2012-11-06 15:04:01 +00:00
akwizgran
2eb943ee2a
Translatable names for plugins, for use in the UI.
2012-11-06 13:54:19 +00:00
akwizgran
91f4967124
Simplified AndroidExecutor API.
2012-11-06 13:48:26 +00:00
akwizgran
42383001f1
Start the port-mapper on demand, delete mappings at shutdown.
2012-11-05 15:08:48 +00:00
akwizgran
fdfb3fee87
Advertise the external address if the internal address and port match.
2012-11-05 14:03:00 +00:00
akwizgran
0f04ea5496
UPnP port mapper using the Weupnp library (untested).
2012-11-02 19:38:57 +00:00
akwizgran
ba07c00907
Removed unused Bluetooth code; use public API if available.
2012-11-02 17:58:48 +00:00
akwizgran
74b8a95a23
Corrected names of TCP plugins.
2012-11-02 15:43:24 +00:00
akwizgran
614f463b35
Added factory for LanTcpPlugin.
2012-11-02 15:40:22 +00:00
akwizgran
5bf72047b4
Enumerating network interfaces requires the INTERNET permission.
2012-11-02 15:39:20 +00:00
akwizgran
031bb09f83
Separated TCP plugin into LAN and WAN plugins and renamed package.
2012-11-02 15:08:35 +00:00
akwizgran
6515c54238
Moved currently unused i18n code to sandpit repo.
2012-11-02 15:07:57 +00:00
akwizgran
11ea898bab
Erase the tag key after use.
2012-11-02 12:25:13 +00:00
akwizgran
c0c6af7a86
Renamed an inner class.
2012-11-01 18:48:08 +00:00
akwizgran
38ed9d69bf
Wrap java.util.Timer in an interface so it can be mocked.
2012-10-31 14:26:59 +00:00
akwizgran
8ed68f36e4
Code cleanup: import static.
2012-10-31 00:36:48 +00:00
akwizgran
3fa433f7fe
We only need Bluetooth discoverabilty when accepting an invitation.
2012-10-31 00:18:48 +00:00
akwizgran
7562c2cee8
Unregister receivers using the provided context.
2012-10-31 00:14:23 +00:00
akwizgran
8a2b43eee6
Class names were out of date after merging changes from Afsnit repo.
2012-10-31 00:10:05 +00:00
akwizgran
2f7e2e16cf
Merged changes from the afsnit repo.
...
The project is now built as an Android project (via Eclipse or
ant). Tests have been moved to a separate project so they can exist
outside the Android build process. A basic Android app structure has
been created. A Bluetooth plugin for Android has been added, and the
Bluetooth plugin for J2SE has been modified to use the same techniques.
2012-10-30 23:04:52 +00:00
akwizgran
a66da73d37
Moved currently unused i18n code out of build path.
2012-10-30 20:37:31 +00:00
akwizgran
e6ac5494fc
Restructured project prior to merging changes from Afsnit repo.
2012-10-30 20:30:50 +00:00
akwizgran
0ffdaf89c0
More checks for duplicate keys in maps.
2012-10-24 23:48:55 +01:00
akwizgran
e78b94b815
Check for duplicate keys when updating maps.
2012-10-24 23:39:12 +01:00
akwizgran
1b8478df84
Derive and store secrets when a contact transport is added.
2012-10-24 23:34:46 +01:00
akwizgran
79a8d1c19d
Removed an unnecessary variable.
2012-10-24 20:34:48 +01:00
akwizgran
aef83df55f
The connection recogniser doesn't need to store newly added windows.
2012-10-24 20:32:55 +01:00
akwizgran
9b00a6f029
Remove dead secrets from the connection recogniser.
2012-10-24 20:13:00 +01:00
akwizgran
d940c637c2
Fixed key derivation issues, moved tag encoding into crypto component.
2012-10-24 20:05:18 +01:00
akwizgran
5628342c58
Cancel the timer thread when stopping the key manager.
2012-10-24 19:16:26 +01:00
akwizgran
c0143611b8
Fixed a SQL typo and a race condition.
...
The typo caused the select statement to be under-selective; the race
condition could have occurred if a contact transport was removed while
an outgoing connection was being created.
2012-10-24 19:15:03 +01:00
akwizgran
27e50b8495
Implemented KeyManager (untested).
...
A test is failing due to key derivation errors - must be fixed!
2012-10-24 18:16:17 +01:00
akwizgran
cc6e9d53ad
Allow duplex connections' dispose() methods to throw IOExceptions.
2012-10-19 21:52:53 +01:00
akwizgran
21f177d695
Clone secrets so each copy can be erased at the appropriate time.
2012-10-19 21:42:11 +01:00
akwizgran
a12d5ac340
Removed tag from connection context.
2012-10-19 21:19:52 +01:00
akwizgran
708e4f87dc
Fixed some bugs and cleaned up code in TransportConnectionRecogniser.
2012-10-19 21:05:21 +01:00
akwizgran
79c3ef572d
Convert connection windows to and from bitmaps.
2012-10-13 23:59:11 +01:00
akwizgran
7739bcdd06
Second part of key rotation implementation. Work in progress.
2012-10-08 18:15:25 +01:00
akwizgran
021b3c5a62
Code cleanup: "static final" is unnecessary in interfaces.
2012-09-27 10:49:46 +01:00
akwizgran
7f94707dab
Code cleanup: import static.
2012-09-27 10:44:07 +01:00
akwizgran
e534722d60
Removed invitation code from simplex plugins, cleaned up Gmail plugin.
2012-09-26 12:34:37 +01:00
akwizgran
36cd02128c
Unit tests and fixes for DatabaseComponent(Impl).
2012-09-26 11:38:26 +01:00
akwizgran
b2ee1b5332
Unit tests and a bug fix for key management methods in JdbcDatabase.
2012-09-25 17:09:59 +01:00