summaryrefslogtreecommitdiff
path: root/src/exchange-tools
diff options
context:
space:
mode:
authorÖzgür Kesim <oec-taler@kesim.org>2022-04-21 12:54:59 +0200
committerÖzgür Kesim <oec-taler@kesim.org>2022-04-21 12:54:59 +0200
commit137bd971544f3b0332af32e68ae37fb9e74bae69 (patch)
treedddda27b440a775e289a419cc3ead054a095c816 /src/exchange-tools
parent4af1772f1205de93cbf04e20c6dd2d309c7fe0df (diff)
downloadexchange-137bd971544f3b0332af32e68ae37fb9e74bae69.tar.gz
exchange-137bd971544f3b0332af32e68ae37fb9e74bae69.tar.bz2
exchange-137bd971544f3b0332af32e68ae37fb9e74bae69.zip
cleanup of extension API
- removed TALER_extensions_init() - added TALER_extension_age_restriction_register()
Diffstat (limited to 'src/exchange-tools')
-rw-r--r--src/exchange-tools/taler-exchange-offline.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/exchange-tools/taler-exchange-offline.c b/src/exchange-tools/taler-exchange-offline.c
index 3c96a522..3ba28f9d 100644
--- a/src/exchange-tools/taler-exchange-offline.c
+++ b/src/exchange-tools/taler-exchange-offline.c
@@ -3967,8 +3967,6 @@ do_extensions_sign (char *const *args)
struct TALER_MasterSignatureP sig;
const struct TALER_Extension *it;
- TALER_extensions_init ();
-
if (GNUNET_OK != TALER_extensions_load_taler_config (kcfg))
{
GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
@@ -4202,7 +4200,9 @@ run (void *cls,
}
/* load age mask, if age restriction is enabled */
- TALER_extensions_init ();
+ GNUNET_assert (GNUNET_OK ==
+ TALER_extension_age_restriction_register ());
+
if (GNUNET_OK != TALER_extensions_load_taler_config (kcfg))
{
GNUNET_log (GNUNET_ERROR_TYPE_ERROR,