merchant

Merchant backend to process payments, run by merchants
Log | Files | Refs | Submodules | README | LICENSE

commit a58a12866221cba8cc724e135bb66c9d6e613fe2
parent d9a1a0d844f58d61c8d0e07a440fe75aa6d785f6
Author: Christian Grothoff <christian@grothoff.org>
Date:   Fri, 18 Nov 2016 18:33:57 +0100

update merchant to match new wire_validate API

Diffstat:
Msrc/backend/taler-merchant-httpd.c | 13+++++++++----
1 file changed, 9 insertions(+), 4 deletions(-)

diff --git a/src/backend/taler-merchant-httpd.c b/src/backend/taler-merchant-httpd.c @@ -430,6 +430,7 @@ instances_iterator_cb (void *cls, /* used as hashmap keys */ struct GNUNET_HashCode h_pk; struct GNUNET_HashCode h_id; + char *emsg; iic = cls; substr = strstr (section, "merchant-instance-"); @@ -500,13 +501,17 @@ instances_iterator_cb (void *cls, instance_wiresection); GNUNET_free (instance_wiresection); - if (GNUNET_YES != iic->plugin->wire_validate (iic->plugin->cls, - mi->j_wire, - NULL)) + if (TALER_EC_NONE != + iic->plugin->wire_validate (iic->plugin->cls, + mi->j_wire, + NULL, + &emsg)) { GNUNET_log (GNUNET_ERROR_TYPE_ERROR, - "Malformed wireformat\n"); + "Malformed wireformat: %s\n", + emsg); + GNUNET_free (emsg); iic->ret |= GNUNET_SYSERR; }