From c1d0a7d2e64fd7c6bd041a5259cf212b3aabd414 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Tue, 16 Aug 2022 14:06:46 +0200 Subject: -move templating logic to libtalertemplating of exchange --- src/backend/taler-merchant-httpd.c | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) (limited to 'src/backend/taler-merchant-httpd.c') diff --git a/src/backend/taler-merchant-httpd.c b/src/backend/taler-merchant-httpd.c index d5bc19d6..d95dafdc 100644 --- a/src/backend/taler-merchant-httpd.c +++ b/src/backend/taler-merchant-httpd.c @@ -25,6 +25,7 @@ #include #include #include +#include #include #include "taler-merchant-httpd_auditors.h" #include "taler-merchant-httpd_config.h" @@ -70,7 +71,7 @@ #include "taler-merchant-httpd_reserves.h" #include "taler-merchant-httpd_spa.h" #include "taler-merchant-httpd_statics.h" -#include "taler-merchant-httpd_templating.h" + /** * Fixme: document. @@ -306,6 +307,7 @@ do_shutdown (void *cls) GNUNET_CONTAINER_multihashmap_destroy (TMH_by_id_map); TMH_by_id_map = NULL; } + TALER_TEMPLATING_done (); } @@ -1140,7 +1142,7 @@ url_handler (void *cls, MHD_HTTP_METHOD_HEAD)) method = MHD_HTTP_METHOD_GET; /* MHD will deal with the rest */ - + /* Find out the merchant backend instance for the request. * If there is an instance, remove the instance specification * from the beginning of the request URL. */ @@ -1443,12 +1445,12 @@ url_handler (void *cls, &hc->instance->auth.auth_salt, &hc->instance->auth.auth_hash)); else /* Are the credentials provided OK for CLI override? */ - auth_ok |= ( use_default && - (NULL != TMH_default_auth) && - (NULL != auth) && - (! auth_malformed) && - (0 == strcmp (auth, - TMH_default_auth)) ); + auth_ok |= (use_default && + (NULL != TMH_default_auth) && + (NULL != auth) && + (! auth_malformed) && + (0 == strcmp (auth, + TMH_default_auth)) ); if (! auth_ok) { if (auth_malformed) @@ -1778,7 +1780,7 @@ run (void *cls, "merchant", "FORCE_AUDIT")) TMH_force_audit = GNUNET_YES; - TMH_templating_init (); + TALER_TEMPLATING_init ("merchant"); if (GNUNET_OK != TMH_spa_init ()) { -- cgit v1.2.3