sync

Backup service to store encrypted wallet databases (experimental)
Log | Files | Refs | Submodules | README | LICENSE

commit 761e91ba9f43aee658ccb970966a2cc4b4ad5b35
parent f762cbd23368f4c6eb0e42b168927ac25293332a
Author: ms <ms@taler.net>
Date:   Mon, 14 Jun 2021 15:28:49 +0200

fetch apikey from config

Diffstat:
Msrc/sync/sync-httpd.c | 13+++++++------
1 file changed, 7 insertions(+), 6 deletions(-)

diff --git a/src/sync/sync-httpd.c b/src/sync/sync-httpd.c @@ -608,7 +608,13 @@ run (void *cls, certfile, keyfile, keypass); - if (NULL != apikey) + + // Case where APIKEY is needed. + if (GNUNET_OK == + GNUNET_CONFIGURATION_get_value_string (config, + "sync", + "APIKEY", + &apikey)) { char *auth_header; @@ -696,11 +702,6 @@ main (int argc, "KEYFILEPASSPHRASE", "passphrase needed to decrypt the TLS client private key file", &keypass), - GNUNET_GETOPT_option_string ('K', - "apikey", - "APIKEY", - "API key to use in the HTTP request", - &apikey), GNUNET_GETOPT_option_string ('t', "type", "CERTTYPE",