summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2021-02-24 16:13:01 +0100
committerChristian Grothoff <christian@grothoff.org>2021-02-24 16:13:01 +0100
commitcf67e601342bafea2ab6dc9d0aae10610c3a0004 (patch)
treebf87f072187fd5cf74b2385ec1ebcc0d6fecbf34
parent70d4b0054b3eea652eb3eafd2b7715289848a50f (diff)
downloadexchange-cf67e601342bafea2ab6dc9d0aae10610c3a0004.tar.gz
exchange-cf67e601342bafea2ab6dc9d0aae10610c3a0004.tar.bz2
exchange-cf67e601342bafea2ab6dc9d0aae10610c3a0004.zip
use PUBLIC_KEY from configuration in upload step
-rw-r--r--src/exchange-tools/taler-auditor-offline.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/exchange-tools/taler-auditor-offline.c b/src/exchange-tools/taler-auditor-offline.c
index e20efde1f..eeec26012 100644
--- a/src/exchange-tools/taler-auditor-offline.c
+++ b/src/exchange-tools/taler-auditor-offline.c
@@ -539,13 +539,13 @@ do_upload (char *const *args)
{
char *exchange_url;
- if (GNUNET_YES == GNUNET_is_zero (&TALER_ARL_auditor_pub))
+ if (GNUNET_YES == GNUNET_is_zero (&auditor_pub))
{
/* private key not available, try configuration for public key */
char *auditor_public_key_str;
if (GNUNET_OK !=
- GNUNET_CONFIGURATION_get_value_string (c,
+ GNUNET_CONFIGURATION_get_value_string (kcfg,
"auditor",
"PUBLIC_KEY",
&auditor_public_key_str))
@@ -553,7 +553,9 @@ do_upload (char *const *args)
GNUNET_log_config_missing (GNUNET_ERROR_TYPE_ERROR,
"auditor",
"PUBLIC_KEY");
- return GNUNET_SYSERR;
+ global_ret = 4;
+ test_shutdown ();
+ return;
}
if (GNUNET_OK !=
GNUNET_CRYPTO_eddsa_public_key_from_string (
@@ -566,7 +568,9 @@ do_upload (char *const *args)
"PUBLIC_KEY",
"invalid key");
GNUNET_free (auditor_public_key_str);
- return GNUNET_SYSERR;
+ global_ret = 4;
+ test_shutdown ();
+ return;
}
GNUNET_free (auditor_public_key_str);
}