[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-exchange] branch master updated: simplify further
From: |
gnunet |
Subject: |
[taler-exchange] branch master updated: simplify further |
Date: |
Thu, 17 Dec 2020 15:46:58 +0100 |
This is an automated email from the git hooks/post-receive script.
grothoff pushed a commit to branch master
in repository exchange.
The following commit(s) were added to refs/heads/master by this push:
new f930a8c9 simplify further
f930a8c9 is described below
commit f930a8c9d07d5331feace2850e181987d7d1a305
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Thu Dec 17 15:46:52 2020 +0100
simplify further
---
src/auditor/report-lib.c | 24 ++++++++++++------------
src/exchange-tools/taler-exchange-offline.c | 10 +---------
src/exchangedb/exchangedb_accounts.c | 11 -----------
src/include/taler_exchangedb_lib.h | 11 -----------
4 files changed, 13 insertions(+), 43 deletions(-)
diff --git a/src/auditor/report-lib.c b/src/auditor/report-lib.c
index 1243d340..481ee357 100644
--- a/src/auditor/report-lib.c
+++ b/src/auditor/report-lib.c
@@ -752,10 +752,10 @@ TALER_ARL_init (const struct GNUNET_CONFIGURATION_Handle
*c)
strlen (master_public_key_str),
&TALER_ARL_master_pub.eddsa_pub))
{
- GNUNET_log_config_malformed (GNUNET_ERROR_TYPE_ERROR,
- "exchange",
- "MASTER_PUBLIC_KEY",
- "invalid key");
+ GNUNET_log_config_invalid (GNUNET_ERROR_TYPE_ERROR,
+ "exchange",
+ "MASTER_PUBLIC_KEY",
+ "invalid key");
GNUNET_free (master_public_key_str);
return GNUNET_SYSERR;
}
@@ -772,7 +772,7 @@ TALER_ARL_init (const struct GNUNET_CONFIGURATION_Handle *c)
char *fn;
if (GNUNET_OK ==
- GNUNET_CONFIGURATION_get_value_filename (kcfg,
+ GNUNET_CONFIGURATION_get_value_filename (c,
"auditor",
"AUDITOR_PRIV_FILE",
&fn))
@@ -785,7 +785,7 @@ TALER_ARL_init (const struct GNUNET_CONFIGURATION_Handle *c)
&auditor_priv.eddsa_priv))
{
GNUNET_CRYPTO_eddsa_key_get_public (&auditor_priv.eddsa_priv,
- &auditor_pub.eddsa_pub);
+ &TALER_ARL_auditor_pub.eddsa_pub);
}
GNUNET_free (fn);
}
@@ -797,7 +797,7 @@ TALER_ARL_init (const struct GNUNET_CONFIGURATION_Handle *c)
char *auditor_public_key_str;
if (GNUNET_OK !=
- GNUNET_CONFIGURATION_get_value_string (TALER_ARL_cfg,
+ GNUNET_CONFIGURATION_get_value_string (c,
"auditor",
"PUBLIC_KEY",
&auditor_public_key_str))
@@ -810,13 +810,13 @@ TALER_ARL_init (const struct GNUNET_CONFIGURATION_Handle
*c)
if (GNUNET_OK !=
GNUNET_CRYPTO_eddsa_public_key_from_string (
auditor_public_key_str,
- strlen (auditor_master_public_key_str),
+ strlen (auditor_public_key_str),
&TALER_ARL_auditor_pub.eddsa_pub))
{
- GNUNET_log_config_malformed (GNUNET_ERROR_TYPE_ERROR,
- "auditor",
- "PUBLIC_KEY",
- "invalid key");
+ GNUNET_log_config_invalid (GNUNET_ERROR_TYPE_ERROR,
+ "auditor",
+ "PUBLIC_KEY",
+ "invalid key");
GNUNET_free (auditor_public_key_str);
return GNUNET_SYSERR;
}
diff --git a/src/exchange-tools/taler-exchange-offline.c
b/src/exchange-tools/taler-exchange-offline.c
index df30f801..5e065b5b 100644
--- a/src/exchange-tools/taler-exchange-offline.c
+++ b/src/exchange-tools/taler-exchange-offline.c
@@ -2618,14 +2618,6 @@ do_show (char *const *args)
}
GNUNET_JSON_parse_free (spec);
}
- /* do NOT consume input if next argument is '-' */
- if ( (NULL != args[0]) &&
- (0 == strcmp ("-",
- args[0])) )
- {
- next (args + 1);
- return;
- }
json_decref (in);
in = NULL;
next (args);
@@ -3053,7 +3045,7 @@ work (void *cls)
{
.name = "wire-fee",
.help =
- "sign wire fees for the given year (year, wire fee and closing fee
must be given as arguments)",
+ "sign wire fees for the given year (year, wire method, wire fee and
closing fee must be given as arguments)",
.cb = &do_set_wire_fee
},
{
diff --git a/src/exchangedb/exchangedb_accounts.c
b/src/exchangedb/exchangedb_accounts.c
index 7e3edf1c..922ab6da 100644
--- a/src/exchangedb/exchangedb_accounts.c
+++ b/src/exchangedb/exchangedb_accounts.c
@@ -76,7 +76,6 @@ check_for_account (void *cls,
struct FindAccountContext *ctx = cls;
char *method;
char *payto_uri;
- char *wire_response_filename;
if (0 != strncasecmp (section,
"exchange-account-",
@@ -104,18 +103,10 @@ check_for_account (void *cls,
GNUNET_free (payto_uri);
return;
}
- if (GNUNET_OK !=
- GNUNET_CONFIGURATION_get_value_filename (ctx->cfg,
- section,
- "WIRE_RESPONSE",
- &wire_response_filename))
- wire_response_filename = NULL;
{
struct TALER_EXCHANGEDB_AccountInfo ai = {
.section_name = section,
.method = method,
- .payto_uri = payto_uri,
- .wire_response_filename = wire_response_filename,
.debit_enabled = (GNUNET_YES ==
GNUNET_CONFIGURATION_get_value_yesno (
ctx->cfg,
@@ -130,9 +121,7 @@ check_for_account (void *cls,
ctx->cb (ctx->cb_cls,
&ai);
}
- GNUNET_free (payto_uri);
GNUNET_free (method);
- GNUNET_free (wire_response_filename);
}
diff --git a/src/include/taler_exchangedb_lib.h
b/src/include/taler_exchangedb_lib.h
index b68c0d66..c850c691 100644
--- a/src/include/taler_exchangedb_lib.h
+++ b/src/include/taler_exchangedb_lib.h
@@ -63,17 +63,6 @@ struct TALER_EXCHANGEDB_AccountInfo
*/
const char *method;
- /**
- * payto://-URL of the account.
- */
- const char *payto_uri;
-
- /**
- * Filename containing the signed /wire response, or NULL
- * if not given.
- */
- const char *wire_response_filename;
-
/**
* #GNUNET_YES if this account is enabed to be debited
* by the taler-exchange-aggregator.
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [taler-exchange] branch master updated: simplify further,
gnunet <=