Andrew Bettison
c5bf770c20
Fix bug in new RESTful MeshMS newsince logic
...
Introduced in a4be1b0
, caused malformed JSON (missing comma)
2014-11-19 22:57:16 +10:30
Andrew Bettison
e633c0fa0a
"rhizome add file" manifest field=value varargs
...
Now a new manifest can be formed, and an existing manifest modified, by
giving "field=value" or "!field" command-line arguments at the end of
the "rhizome add file" command (after the <bsk> argument).
This makes it easier to script rhizome operations.
2014-11-19 13:26:50 +10:30
Andrew Bettison
c95807b002
Refactor manifest parsing
...
Consolidate tests for valid field names and values into
one place
2014-11-19 13:17:40 +10:30
Andrew Bettison
ff339011b4
Refactor Rhizome manifest parsing
...
Now the parsing code uses the set/del functions for all supported
manifest fields, so no duplicate logic any more
2014-11-19 10:49:13 +10:30
Andrew Bettison
2f1843858d
Support unrecognised manifest fields
...
Refactor Rhizome manifest parsing in preparation for command-line
field assignment
2014-11-19 10:47:31 +10:30
Andrew Bettison
bc197ef01d
Add alloca_strndup() and strncpy_nul()
2014-11-19 10:47:31 +10:30
Andrew Bettison
6bf4cf0735
Add performance timing to http server functions
2014-11-17 14:10:00 +10:30
Andrew Bettison
081f7ab8c8
Add recent bundle secret improvements to RESTful API
...
The "#passphrase" notation was already supported, and now the RESTful
API can be used to create and update anonymous and authored bundles
using only the bundle secret, just like the CLI.
2014-11-14 17:31:08 +10:30
Andrew Bettison
65d6005cbf
Create authored bundle from bundle secret
...
Improve the logic in rhizome_fill_manifest() to handle the case where
the secret and author are both supplied, by setting the BK field so the
secret can be recovered from the manifest later
2014-11-14 13:11:44 +10:30
Andrew Bettison
e743e4d7f9
Create authorless bundle from bundle secret
...
Until now, the bundle secret was never used to create a new bundle,
only to update a bundle whose secret was known from its creation.
2014-11-14 13:11:44 +10:30
Andrew Bettison
d8f26a76ee
Accept '#passphrase' for bundle secret arguments
...
As well as a hex string. Applies to CLI and also REST API.
Maximum pass phrase length is 80 ASCII chars.
2014-11-14 13:11:44 +10:30
Andrew Bettison
c1d8383226
Add strn_digest_passphrase()
...
Uses SHA512 internally
2014-11-14 13:11:44 +10:30
Andrew Bettison
c3fdb12991
Fix assert_stdout_add_file() Rhizome test function
...
Correct 'author' and 'secret' fieldnames to '.author' and
'.secret'
2014-11-14 13:11:43 +10:30
Andrew Bettison
1cbc2a365b
Improve Rhizome AddUpdateSameVersion test
...
If 'rhizome add file' command does not return status 1,
then cat the standard error (log) to the test log
2014-11-14 13:11:43 +10:30
Andrew Bettison
b7b2ad845c
Refactor meshms seed string generation
2014-11-14 13:11:43 +10:30
Andrew Bettison
0a8f6b2bb1
Cosmetic improvements to "str.h"
2014-11-13 09:59:51 +10:30
Andrew Bettison
db96dfe0f4
Add SHA512_Final_Len() et al
...
An optimisation: programmers can now easily take just a part
of the digest without needing an intermediate buffer to hold
the entire digest
2014-11-13 09:59:21 +10:30
Andrew Bettison
7248d660e3
Fix non-deterministic assertion failure under load
2014-11-12 23:09:00 +10:30
Andrew Bettison
a4be1b0b0c
Fix RESTful MeshMS newsince ACK logic
...
/restful/meshms/newsince/SID1/SID2/newsince/TOKEN/messagelist.json now
always lists an ACK as soon as it is received, instead of waiting for a
message to arrive as well.
2014-11-12 23:09:00 +10:30
Andrew Bettison
3c4703feb4
Reduce DB locking issues in RESTful tests
...
Add environment variable SERVALD_RHIZOME_DB_RETRY_LIMIT to extend the
Rhizome DB retry period, set it to 60 seconds in RESTful tests to
override the default 5 seconds
2014-11-12 23:08:19 +10:30
Andrew Bettison
005489ab40
Improve overlay_mdp.c log error messages
2014-11-11 12:57:15 +10:30
Tobias Wooldridge
a4e1942d30
Adds file:// protocol to CORS allowed paths for the sake of Safari on iOS
2014-11-10 14:45:56 +10:30
Jeremy Lakeman
6ab2cc5bb6
Only support one keyring pin per open file
2014-10-31 15:30:07 +10:30
Jeremy Lakeman
851144ea0a
Refactor keyring identity iteration
2014-10-31 15:19:59 +10:30
Jeremy Lakeman
7e403af715
Tidy up indenting
2014-10-31 15:19:59 +10:30
Tobias Wooldridge
e79e74feb9
Exposes a list of configured identities through the REST API at /keyring/identities.json
2014-10-31 15:19:59 +10:30
gardners
ba4cd5e7b4
initialise length field in netmask_addr
2014-10-31 15:18:22 +10:30
gardners
45cffb4b2b
fix missing netmask argument for openwrt compilation.
2014-10-31 15:10:03 +10:30
gardners
6dca9fe6bf
ensure netmask is set when initialising an interface.
2014-10-31 15:01:22 +10:30
Jeremy Lakeman
3b9075344f
Allow write to return less bytes than we asked for, or zero
2014-10-31 13:45:46 +10:30
Jeremy Lakeman
3a1828ec2a
Don't force the caller to initialise the address buffer length
2014-10-31 13:45:46 +10:30
gardners
6536953703
add debug output to diagnose interface selection based on
...
received address of packet.
2014-10-31 12:26:58 +10:30
Jeremy Lakeman
a92b3ff29d
Fix compilation warning
2014-10-30 13:37:12 +10:30
Jeremy Lakeman
1848493468
New messages bump the conversation to the top
2014-10-27 11:08:02 +10:30
Jeremy Lakeman
bcd9575b54
Fix minor compilation issues on CentOS.
...
- ensure size_t is defined when compiling xprintf.h
- declare overlay_route_record as a union field in overlay_route_record to avoid alignment issues
- set the result of fwrite and fputs
- support slightly older git version
2014-10-20 12:35:21 +10:30
Jeremy Lakeman
fd0b7eda59
Pass PIE flags for compiling on Android L
2014-10-13 14:14:28 +10:30
Jeremy Lakeman
98ffa90b72
Log the source of monitor errors
2014-10-03 11:16:41 +09:30
Jeremy Lakeman
b33b0e7b54
Stop an existing dna helper on config reload
2014-10-02 10:49:20 +09:30
Jeremy Lakeman
e0557be6e9
Send ANSWERED message even if we never see RINGING
2014-10-01 15:53:19 +09:30
Jeremy Lakeman
cfa2b0e4cd
Fix codec and local extension parsing
2014-10-01 15:53:19 +09:30
Jeremy Lakeman
91d3f78f8e
Revert slack ping delivery in routing tests
2014-10-01 15:53:18 +09:30
gardners
2296196f7b
Add config option to select packet radio type.
2014-10-01 15:52:14 +09:30
gardners
db5daa20ee
fix OSX build errors.
2014-10-01 15:52:14 +09:30
Jeremy Lakeman
4440cf3af0
Allow for different routes per packet destination
2014-09-23 14:54:22 +09:30
Jeremy Lakeman
c7e397cadf
Trace network paths that are supposed to exist
2014-09-23 14:54:22 +09:30
Jeremy Lakeman
8667060ae0
Add Java API rebind for mdp sockets
2014-09-16 14:41:59 +09:30
Jeremy Lakeman
68bd515241
Content type might be null if the connection is terminated
2014-09-16 11:23:31 +09:30
Jeremy Lakeman
7474e8afea
Fix mdp support and Java API for binding to all keys in the keyring
2014-09-16 11:22:26 +09:30
Jeremy Lakeman
ff6b15748d
Add keyring list command that also outputs tags
2014-09-15 15:59:01 +09:30
Jeremy Lakeman
12c02255a1
Allow Java mdp protocols to specify the port to listen on
2014-09-15 14:39:26 +09:30