mirror of
https://github.com/servalproject/serval-dna.git
synced 2025-01-29 15:43:56 +00:00
added rhizome.api.addfile.author config option to supply author SID
as hex if not supplying a manifest template. modified rhizomeprotocol test of manifest-less HTTP import to set that option. That test now passes. ALL rhizomeprotocol tests now pass. #9
This commit is contained in:
parent
2e907e6fff
commit
4e0c0064ba
@ -252,7 +252,9 @@ int rhizome_direct_form_received(rhizome_http_request *r)
|
||||
}
|
||||
DEBUGF("File name = '%s'",name);
|
||||
|
||||
const char *senderhex = rhizome_manifest_get(m, "sender", NULL, 0);
|
||||
const char *senderhex
|
||||
= rhizome_manifest_get(m, "sender", NULL, 0);
|
||||
if (!senderhex) senderhex=confValueGet("rhizome.api.addfile.author",NULL);
|
||||
unsigned char authorSid[SID_SIZE];
|
||||
if (senderhex) fromhexstr(authorSid,senderhex,SID_SIZE);
|
||||
const char *bskhex
|
||||
|
@ -332,6 +332,7 @@ setup_HttpAddLocal() {
|
||||
# set rhizome.api.* configuration variables
|
||||
set_instance +A
|
||||
executeOk_servald config set rhizome.api.addfile.uri "/rhizome/secretaddfile"
|
||||
executeOk_servald config set rhizome.api.addfile.author $SIDA
|
||||
|
||||
start_servald_instances +A
|
||||
wait_until rhizome_http_server_started +A
|
||||
|
Loading…
x
Reference in New Issue
Block a user