diff options
author | Christian Grothoff <christian@grothoff.org> | 2020-03-15 20:08:38 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2020-03-15 20:08:38 +0100 |
commit | 4322bbf2f1722b4c53114901768772dabdb7e822 (patch) | |
tree | e2193282c2d179f2d3bdf32eb7aca7a6ba161f25 /src/exchange-tools/taler-exchange-keyup.c | |
parent | d7cfb11fc6a171ece9c233d67ec849ac391bc818 (diff) | |
download | exchange-4322bbf2f1722b4c53114901768772dabdb7e822.tar.xz |
move common logic to parse currency into libtalerutil
Diffstat (limited to 'src/exchange-tools/taler-exchange-keyup.c')
-rw-r--r-- | src/exchange-tools/taler-exchange-keyup.c | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/src/exchange-tools/taler-exchange-keyup.c b/src/exchange-tools/taler-exchange-keyup.c index b10a139a7..4513934bf 100644 --- a/src/exchange-tools/taler-exchange-keyup.c +++ b/src/exchange-tools/taler-exchange-keyup.c @@ -772,7 +772,7 @@ create_denomkey_issue ( GNUNET_assert (NULL != dki->denom_priv.rsa_private_key); dki->denom_pub.rsa_public_key = GNUNET_CRYPTO_rsa_private_key_get_public ( - dki->denom_priv.rsa_private_key); + dki->denom_priv.rsa_private_key); GNUNET_CRYPTO_rsa_public_key_hash (dki->denom_pub.rsa_public_key, &dki->issue.properties.denom_hash); dki->issue.properties.master = master_public_key; @@ -1174,14 +1174,9 @@ run (void *cls, (void) cfgfile; kcfg = cfg; if (GNUNET_OK != - GNUNET_CONFIGURATION_get_value_string (cfg, - "taler", - "CURRENCY", - ¤cy)) + TALER_config_get_currency (cfg, + ¤cy)) { - GNUNET_log_config_missing (GNUNET_ERROR_TYPE_ERROR, - "taler", - "CURRENCY"); global_ret = 1; return; } |