summaryrefslogtreecommitdiff
path: root/src/kyclogic/taler-exchange-kyc-tester.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2022-08-16 21:04:51 +0200
committerChristian Grothoff <christian@grothoff.org>2022-08-16 21:04:51 +0200
commitc62792638bd933b9e6fe57358c1233b7a48d6d3f (patch)
tree02fdf6d8fa82be51c83ea5f88b2dd164a41af0b3 /src/kyclogic/taler-exchange-kyc-tester.c
parentaf97071ad6446b851bbb8cd319a768eade952fee (diff)
downloadexchange-c62792638bd933b9e6fe57358c1233b7a48d6d3f.tar.gz
exchange-c62792638bd933b9e6fe57358c1233b7a48d6d3f.tar.bz2
exchange-c62792638bd933b9e6fe57358c1233b7a48d6d3f.zip
work on kycaid plugin response generation logic
Diffstat (limited to 'src/kyclogic/taler-exchange-kyc-tester.c')
-rw-r--r--src/kyclogic/taler-exchange-kyc-tester.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/kyclogic/taler-exchange-kyc-tester.c b/src/kyclogic/taler-exchange-kyc-tester.c
index 9d75b3ec8..740fcda7a 100644
--- a/src/kyclogic/taler-exchange-kyc-tester.c
+++ b/src/kyclogic/taler-exchange-kyc-tester.c
@@ -27,6 +27,7 @@
#include <limits.h>
#include "taler_mhd_lib.h"
#include "taler_json_lib.h"
+#include "taler_templating_lib.h"
#include "taler_crypto_lib.h"
#include "taler_kyclogic_lib.h"
#include "taler_kyclogic_plugin.h"
@@ -1239,6 +1240,7 @@ do_shutdown (void *cls)
GNUNET_CURL_gnunet_rc_destroy (exchange_curl_rc);
exchange_curl_rc = NULL;
}
+ TALER_TEMPLATING_done ();
}
@@ -1309,6 +1311,12 @@ run (void *cls,
(void) cls;
(void) args;
(void ) cfgfile;
+ if (GNUNET_OK !=
+ TALER_TEMPLATING_init ("exchange"))
+ {
+ GNUNET_break (0);
+ return;
+ }
if (print_h_payto)
{
char *s;
@@ -1322,6 +1330,8 @@ run (void *cls,
}
TALER_MHD_setup (TALER_MHD_GO_NONE);
TEKT_cfg = config;
+ GNUNET_SCHEDULER_add_shutdown (&do_shutdown,
+ NULL);
if (GNUNET_OK !=
TALER_KYCLOGIC_kyc_init (config))
{
@@ -1329,8 +1339,6 @@ run (void *cls,
GNUNET_SCHEDULER_shutdown ();
return;
}
- GNUNET_SCHEDULER_add_shutdown (&do_shutdown,
- NULL);
if (GNUNET_OK !=
exchange_serve_process_config ())
{