Commit Graph

3362 Commits

Author SHA1 Message Date
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
gardners
952bb219b7 Fixed nacl-prepare-sources so that it lets us actually build a real
libdna with NaCl crypto lib built in (yay)
2011-10-18 22:23:45 +10:30
gardners
89e72e35e9 Progress towards building NaCl in with DNA as a total shared library.
Fixed big problem with building of NaCl include files.
Some issues remain, working on those now.
2011-10-18 19:39:01 +10:30
gardners
f55a6525a2 Added hooks and code to build and link to NaCl static library
(static is always the safer option for crypto libraries to avoid
nasty run-time suprises)
2011-10-17 08:11:05 +10:30
gardners
6ad98c6128 added nacl public domain source tar to avoid need to download
during compilation (in case someone wants to build off line, or
in a cross-compiler without internet access)
2011-10-16 22:34:25 +10:30
gardners
fff5c5ddae Added code to build NaCl in with Serval DNA when doing a JNI build. 2011-10-16 22:11:43 +10:30
gardners
60e391ecd5 fixing an out-by-one error in ACTION_GET packet handling. 2011-10-06 09:27:04 +10:30
gardners
d5d2bd16b3 added further debug output to chase down corrupt packet errors. 2011-10-06 09:16:47 +10:30
gardners
5566dddad1 Added some extra debugging for stray HLR record creation. 2011-10-06 09:06:20 +10:30
gardners
51f181b16f Added missing @ to end of SIP address when seeding HLR 2011-10-06 03:51:29 +10:30
gardners
28c8fcfbc9 Fixed nasty bug in createHlr() that was corrupting HLR file. 2011-10-03 13:28:07 +10:30
gardners
613d542061 you guessed it, more catching corrupt hlr dramas 2011-10-02 21:54:59 +10:30
gardners
d9163053d3 more corrupt hlr catches 2011-10-02 21:41:13 +10:30