gardners
b7b795d4fc
manifest reading now reads and can verify signatures.
...
Still incomplete. Doesn't yet count verify errors etc.
2011-12-21 07:46:12 +10:30
gardners
a159edf152
updating manifests now correctly removes old files and old
...
versions of the manifest.
group subscriptions not yet implemented, and reading of signatures
not yet implemented. Controls on group membership and pushing files
to groups not yet implemented. Group ciphers not yet implemented.
2011-12-20 22:09:49 +10:30
gardners
745cade469
Further work on getting signatures and signed manifests working.
...
Some work on updating existing manifests, although some cascading
consequences need addressing (in particular checking if the file
associated with the old version of the manifest still needs to hang
about, and if so, whether its highest priority has changed).
2011-12-20 17:27:24 +10:30
gardners
4719281f03
Added keypair storage and retrieval (still pending encryption of
...
stored secrets, but the framework is there).
2011-12-20 15:57:25 +10:30
gardners
cc09a0f994
Some database schema tweaks and additional checks on manifests when
...
importing (we now need to have either the key for the manifest, or to
be creating the manifest).
2011-12-20 15:48:26 +10:30
gardners
8fca64d630
Importing bundles into the rhizome database now works.
...
Signing and groups are still missing for the moment.
2011-12-20 14:16:17 +10:30
gardners
a50c56ac92
Importing of a bundle into the database now seems to work.
...
(group membership not currently handled, signing not currently
handled).
2011-12-20 13:24:09 +10:30
gardners
312eaa397b
Significant progress on Rhizome.
...
Manifest reading and writing to disk (not database) seems okay now.
Working on database side of things next.
2011-12-20 11:25:52 +10:30
gardners
01278a5773
Only fetch libsqlite.so when missing.
2011-12-19 09:09:03 +10:30
gardners
9c3cc04b3a
Improved BYTE_ORDER detection for Android cross-compilation.
2011-12-19 09:06:34 +10:30
gardners
34075ce84d
Fixed an NaCl macro name issue for Android NDK cross-compile
2011-12-19 09:03:30 +10:30
gardners
17f0b5da10
Moved BYTE_ORDER definition to Android.mk
2011-12-19 09:01:03 +10:30
gardners
d5004e15d2
Fix various Android NDK build issues
...
(specify endianness, copy libsqlite.so from an Android phone
for link templating)
2011-12-19 08:56:25 +10:30
gardners
b775e48042
further NaCl macro name fix for Android cross-compilation.
2011-12-19 08:28:39 +10:30
gardners
16d22d41a3
Fixed crypto structure size specifications to specify the exact
...
crypto implementation (wise anyway, but required for our Android
cross-compile of NaCl).
2011-12-19 08:22:34 +10:30
gardners
c110e46a08
fixes to previous commit.
2011-12-19 08:10:02 +10:30
gardners
000dd2db55
Moved rhizome prototypes into separate header file.
...
(needed for android building where undefined functions are
an error, not a warning).
2011-12-19 08:04:31 +10:30
gardners
328c24b770
Should now use built-in sqlite3 library on Android.
2011-12-19 05:55:10 +10:30
gardners
c0a6b1ff12
Added rhizome and sqlite3 to Android build process.
...
(sqlite3 can be removed once we work out how to link to the
existing sqlite implementation on Android).
2011-12-19 05:47:52 +10:30
gardners
1628d5cbfb
Added command line options to DNA to import a rhizome bundle.
2011-12-19 05:46:34 +10:30
gardners
6ec1d6032f
Further work towards sqlite3 backend for rhizome.
...
Wrote function to store file to db iff it is not stored already,
and update the priority flag on the stored file.
Uses blobio to progressively load large blobs to make it friendly
on small memory systems.
2011-12-17 12:11:32 +10:30
gardners
6a433857e4
Substantial preparatory work towards Rhizome/MeshMS store-and-forward
...
services in Serval DNA.
2011-12-13 19:34:12 +10:30
gardners
ab3813f127
Added new -m command line option to show multiple responses.
2011-12-04 17:48:51 +10:30
gardners
3939001501
Supressed some spurious output.
2011-12-04 17:48:34 +10:30
gardners
6548a63b8e
And fixed the bug introduced in that fix.
2011-12-04 17:03:27 +10:30
gardners
6e12f6d514
Fixed ARP table parser bug that meant only first entry got picked up.
2011-12-04 17:02:09 +10:30
gardners
3f2abe76c3
Improved debug output for reading arp table.
2011-12-04 15:54:56 +10:30
gardners
158a0fa698
Added debug output for showing peers found via various means.
2011-12-04 09:22:40 +10:30
gardners
cd346861d1
added parsing of arp table to find peers in the face of transient loss
...
of broadcast reception by peers.
2011-12-02 17:16:26 +10:30
gardners
45dcebc048
Fixed broadcast calculation bug.
2011-12-02 15:19:27 +10:30
gardners
70b287a1c9
Adding more robust broadcast address detection.
2011-12-02 14:39:14 +10:30
gardners
3e58d867b7
Found and fixed string termination issue in Asterisk module.
2011-12-02 11:37:41 +10:30
gardners
0bae6992c0
Fixed bug with blank recvaddr fields when getting replies.
...
(there is still some ugly strangeness in the passing around of
recvaddr structures for no apparent reason.)
2011-12-02 09:59:47 +10:30
gardners
1c9f7dff12
Reinforced null termination of string when appending IP to @ in
...
resolution.
2011-12-02 05:45:07 +10:30
gardners
e1b34d40d7
Fixed some build issues for Asterisk application.
2011-12-02 05:44:32 +10:30
gardners
2aab552ef7
Simplified shell command for removing try.c and measure.c files
...
to work with sh as well as bash.
2011-11-22 11:49:37 +10:30
gardners
5ca2880bea
Merge branch 'master' of github.com:servalproject/serval-dna
2011-11-22 09:20:37 +10:30
gardners
551b454acd
Added extra check for extraneous measure.c files.
2011-11-22 09:19:50 +10:30
Jeremy Lakeman
ccb86b45e9
Tidy up build process
2011-11-03 11:23:19 +10:30
gardners
5837499f0d
Fixed bug in jni.c for CryptoBoxOpen.
2011-10-27 12:32:58 +10:30
gardners
6e5ef709e3
Added missing file.
2011-10-25 14:15:19 +10:30
gardners
ba6354e758
Fixed a bug where the build process would be skipped due to
...
incorrectly thinking that libnacl.a already exists, when it doesnt.
2011-10-25 13:39:56 +10:30
gardners
933d2c8aff
Added test code for NaCl.
2011-10-25 13:39:14 +10:30
gardners
b2070da074
Added my own version of randombytes() that works properly and eventually
...
times out if it can't succeed for wrapping into java. Timeouts vital as
it lives in a critical section.
2011-10-23 19:49:17 +10:30
gardners
4636cd6577
Added wrapper for safe supply of random bytes for use in Java side.
2011-10-23 18:54:10 +10:30
gardners
77757f550d
renamed methods for having all native methods in once class (required
...
by Java that one library loads into one class only).
Also added what I believe to be sane and efficient array access for
CryptoBox (use same approach for other calls as we write the JNI
interfaces).
2011-10-23 15:53:44 +10:30
gardners
62e3931498
Fixed jni.c to actually be right (the _00024 was a bit hard to guess).
2011-10-21 20:48:47 +10:30
gardners
58446ba5e5
Added initial JNI wrapper.
2011-10-21 10:56:49 +10:30
gardners
1fb83dbf0d
Android linker is really dumb, so made simple dlopen() based wrapper
...
to pull in the DNA/NaCl library and run the DNA main function from
there. So now dna binary still works, but uses libdnalib, so that we don't
need to duplicate NaCl library for dna binary versus access from in Java
(once we make the JNI wrappers for the functions we care about).
2011-10-18 23:45:46 +10:30
gardners
cc500aeea2
Modified to build libdnalib and dna binary that uses that shared lib.
...
This sets the scene for making libdnalib also a JNI-compliant library
that we can use from Java to get access to the NaCl primitives, and
possibly even run DNA operations directly.
2011-10-18 22:37:08 +10:30