Andrew Bettison
c176d23726
Add 'sid:' field to output of "reverse lookup"
...
Use sid_t in more places
2013-02-15 19:34:24 +10:30
Andrew Bettison
788b3e37b2
Fix JNI argv parsing: throw exception on NULL
...
Add new 'jni' test case to ensure this works
2013-02-15 19:33:12 +10:30
Andrew Bettison
c42260f5f9
Replace "add did" command with improved "keyring add did"
...
Output is same format as "keyring add" command
Fixed minor bug in rolling a random DID -- last byte was not random
Some code improvements, including better support for sid_t
2013-02-14 16:06:01 +10:30
Andrew Bettison
e86a129d49
Refactor: rename some cli.h structs
...
Now all symbols defined in cli.h start with or contain "cli_"
2013-02-13 17:43:24 +10:30
Andrew Bettison
f66a894a63
Improve keyring PIN handling
...
Replace explicit [<pin,pin...>] command-line arguments with --entry-pin=<pin>
options. Update test scripts accordlingly.
Add --keyring-pin=<pin> option (with one test case).
2013-02-13 16:49:52 +10:30
Andrew Bettison
fcb6600cd6
Rewrite command-line parser
...
Now supports optional args followed by non-optional.
2013-02-12 18:00:37 +10:30
Jeremy Lakeman
3a93fee8a5
New JNI interface to better support cursor result sets
2013-01-23 14:43:50 +10:30
Jeremy Lakeman
ad01836d0e
Use database query to respond to rhizome list, add name argument
2013-01-17 11:45:45 +10:30
Jeremy Lakeman
b25ff45438
Importing the same bundle twice returns duplicate flag
2013-01-15 10:32:48 +10:30
Jeremy Lakeman
2d66a150b8
Output manifest version for consistency
2013-01-14 09:23:29 +10:30
Jeremy Lakeman
5a82bfcf31
Add support for importing and exporting a file with an appended manifest
2013-01-11 14:30:52 +10:30
Jeremy Lakeman
7825f9dbd2
Combine manifest and file extraction into one method that can also do both
2013-01-11 14:30:51 +10:30
Jeremy Lakeman
9d6b1ae660
Treat empty bsk the same as null
2013-01-11 14:29:40 +10:30
Jeremy Lakeman
2b480c1d1a
Reinstate filesize and hash file extract output
2013-01-04 12:01:40 +10:30
Jeremy Lakeman
fd96c5bd76
Add bsk to correct command
2013-01-04 12:01:39 +10:30
Jeremy Lakeman
28a05baa54
Enable encryption of rhizome payloads
2013-01-03 16:12:24 +10:30
Jeremy Lakeman
dc43b83c80
Tidy up rhizome secret handling to improve reusability
2013-01-03 12:14:13 +10:30
Jeremy Lakeman
8b045dd1a6
Extract files based on the manifest id
...
Renamed rhizome extract file to rhizome dump file
Added rhizome extract file [manifest] [filepath] [pins]
Modified tests to use the appropriate command, assuming that MeshMS payloads will be encrypted
2013-01-02 12:58:05 +10:30
Jeremy Lakeman
6c7ba438a3
Refactor rhizome extract manifest into more useful methods
2013-01-02 11:15:03 +10:30
Jeremy Lakeman
898cddfcd3
Tidy up rhizome extract return code
2012-12-31 13:21:37 +10:30
Jeremy Lakeman
72bc597e92
Add encryption support to writing of rhizome content
2012-12-27 09:39:10 +10:30
Jeremy Lakeman
f64de66b34
Refactor add via HTTP to be equivalent to command line add
2012-12-20 15:36:07 +10:30
Jeremy Lakeman
181d1363f1
Migrate command line import to new storage api
2012-12-19 16:16:49 +10:30
Jeremy Lakeman
c5d76a057f
Add storage api for importing files
2012-12-18 10:51:12 +10:30
Jeremy Lakeman
b2a0f8caf5
Rhizome add streams directly into the database
2012-12-17 15:41:27 +10:30
Andrew Bettison
8d5862d599
Server daemon reloads config every 1 sec
2012-12-14 16:48:12 +10:30
Andrew Bettison
fe3e7da5c6
Fix configuration loading logic
...
If configuration is bad, do not execute commands except those with the
PERMISSIVE_CONFIG property.
Flush log buffer immediately after clearing cf_limbo flag, in case there are no
further log messages that would cause the flush. (Fixes bug that an unrecognised
command produced no log output.)
More block comments in log.c.
2012-12-14 16:48:12 +10:30
Andrew Bettison
476479cdb4
Permissive log file loading for 'stop' and 'help' commands
2012-12-13 17:36:14 +10:30
Andrew Bettison
5985df751d
Overhaul debug flags
...
Replace debugflags_t and DEBUG_XXX bit masks with config schema "debug.xxx"
entries.
No more support for "debug.all".
2012-12-11 15:59:46 +10:30
Andrew Bettison
96d524200c
Support 'config get' var pattern matching
2012-12-10 15:26:35 +10:30
Andrew Bettison
96e686c680
servald 'stop' command loads config permissively
2012-12-07 15:57:40 +10:30
Andrew Bettison
8425882ffc
Merge branch 'newconfig' into 'master'
...
Conflicts:
commandline.c
conf.h
dataformats.c
log.h
overlay_address.c
overlay_interface.c
packetformats.c
rhizome.c
serval.h
tests/directory_service
vomp_console.c
2012-12-07 14:09:55 +10:30
Andrew Bettison
b4f6aa5ea2
Improve 'config schema' output to include NODE parsing functions
2012-12-07 10:57:05 +10:30
Andrew Bettison
21509e0b67
Add 'config schema' command to dump schema
...
That was easy.
2012-12-06 17:54:30 +10:30
Andrew Bettison
fe042bfa64
Servald 'config [ set|del ... ] ... ' command
...
Update all test scripts to avoid repetitive executeOk_servald invocations.
2012-12-06 12:31:19 +10:30
Jeremy Lakeman
3dfd64f4da
Add manually triggered network scan command
2012-12-05 15:13:47 +10:30
Andrew Bettison
93c38a764d
Improve servald 'config' 'set' and 'del' commands
...
Return exit status 2 if the new config is invalid in any way.
2012-12-04 18:20:53 +10:30
Andrew Bettison
71ed78e058
Make all 'config' tests pass
...
Change a test case: configuration options are now case sensitive.
Fix config file load and parse logic in conf.c, always copy 'debug' flags
from config.debug.
The config schema 'interfaces' option is no longer MANDATORY.
Introduce new CLIFLAG_PERMISSIVE_CONFIG to supress bad-config ERROR messages
from the 'config set' and 'config get' commands.
Refactor cli_execute() into cli_parse() and cli_invoke(). Use *const* struct
command_line_option everywhere.
2012-12-04 16:52:49 +10:30
Andrew Bettison
caa209fc1d
Integrate new config into servald
...
Not passing any tests yet, but compiles and links and simple uses do not
SEGV.
2012-12-04 14:12:28 +10:30
Jeremy Lakeman
d5f78bcffe
Rework reachable link flags for simpler bitmask tests
2012-11-30 14:38:09 +10:30
Jeremy Lakeman
e0878644fe
Add command to dump routing table
2012-11-28 15:43:58 +10:30
Jeremy Lakeman
f159e15901
Simplify payload length storage
2012-11-28 15:43:57 +10:30
Jeremy Lakeman
7322fbce71
Fix ping message format
2012-11-20 10:25:33 +10:30
Andrew Bettison
21a0f31ae4
Merge branch 'whacktmps' into 'master'
2012-11-15 13:41:45 +10:30
Andrew Bettison
6395f757cc
Fix bugs in earlier conf/log recursion logic
...
Reinstate better recursion control in conf.c, remove from log.c.
Add <kludge> comment to "config set" code, add the same kludge to "config
del".
2012-11-15 12:38:17 +10:30
Andrew Bettison
f2d6c6d522
Kludge "config set" to fix Batphone upgrade bug
2012-11-14 13:16:23 +10:30
Jeremy Lakeman
7c6cdac1b2
Improve command line usage information
2012-11-14 12:27:47 +10:30
Jeremy Lakeman
10bde11918
Remove resolution of peer details from node info command
2012-11-14 12:17:41 +10:30
Jeremy Lakeman
dd93f201e3
Add separate reverse lookup command
2012-11-14 12:17:14 +10:30
Andrew Bettison
5751569b59
Rhizome extract manifest to '-' writes to output
...
Instead of specifying a file path, if the file is given as '-' then the content
of the manifest is output in the 'manifest' key-value pair instead of written
to a file.
2012-11-07 20:29:12 +10:30