summaryrefslogtreecommitdiff
path: root/src/exchange/taler-exchange-httpd_responses.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2020-12-14 15:42:32 +0100
committerChristian Grothoff <christian@grothoff.org>2020-12-14 15:42:32 +0100
commitb5d88fc2d1832fd27bdd7df0860c07ae3c61312c (patch)
treebc279533511c65d9f5dabdb1d03d7ee0bf156888 /src/exchange/taler-exchange-httpd_responses.c
parent468fc9d1a1bcf3eb771519a746c5e3218ee121e3 (diff)
downloadexchange-b5d88fc2d1832fd27bdd7df0860c07ae3c61312c.tar.gz
exchange-b5d88fc2d1832fd27bdd7df0860c07ae3c61312c.tar.bz2
exchange-b5d88fc2d1832fd27bdd7df0860c07ae3c61312c.zip
activating implementation of #6175
Diffstat (limited to 'src/exchange/taler-exchange-httpd_responses.c')
-rw-r--r--src/exchange/taler-exchange-httpd_responses.c41
1 files changed, 21 insertions, 20 deletions
diff --git a/src/exchange/taler-exchange-httpd_responses.c b/src/exchange/taler-exchange-httpd_responses.c
index 32b44ffc..c0ec6d95 100644
--- a/src/exchange/taler-exchange-httpd_responses.c
+++ b/src/exchange/taler-exchange-httpd_responses.c
@@ -29,6 +29,7 @@
#include "taler_json_lib.h"
#include "taler_mhd_lib.h"
#include "taler-exchange-httpd_keystate.h"
+#include "taler-exchange-httpd_keys.h"
/**
@@ -256,10 +257,10 @@ TEH_RESPONSE_compile_transaction_history (
TALER_amount_hton (&pc.recoup_amount,
&pr->value);
- if (GNUNET_OK !=
- TEH_KS_sign (&pc,
- &epub,
- &esig))
+ if (TALER_EC_NONE !=
+ TEH_keys_exchange_sign (&pc,
+ &epub,
+ &esig))
{
GNUNET_break (0);
json_decref (history);
@@ -309,10 +310,10 @@ TEH_RESPONSE_compile_transaction_history (
TALER_amount_hton (&pc.recoup_amount,
&recoup->value);
- if (GNUNET_OK !=
- TEH_KS_sign (&pc,
- &epub,
- &esig))
+ if (TALER_EC_NONE !=
+ TEH_keys_exchange_sign (&pc,
+ &epub,
+ &esig))
{
GNUNET_break (0);
json_decref (history);
@@ -366,10 +367,10 @@ TEH_RESPONSE_compile_transaction_history (
TALER_amount_hton (&pc.recoup_amount,
&pr->value);
- if (GNUNET_OK !=
- TEH_KS_sign (&pc,
- &epub,
- &esig))
+ if (TALER_EC_NONE !=
+ TEH_keys_exchange_sign (&pc,
+ &epub,
+ &esig))
{
GNUNET_break (0);
json_decref (history);
@@ -610,10 +611,10 @@ TEH_RESPONSE_compile_reserve_history (
TALER_amount_hton (&pc.recoup_amount,
&recoup->value);
- if (GNUNET_OK !=
- TEH_KS_sign (&pc,
- &pub,
- &sig))
+ if (TALER_EC_NONE !=
+ TEH_keys_exchange_sign (&pc,
+ &pub,
+ &sig))
{
GNUNET_break (0);
json_decref (json_history);
@@ -686,10 +687,10 @@ TEH_RESPONSE_compile_reserve_history (
GNUNET_CRYPTO_hash (closing->receiver_account_details,
strlen (closing->receiver_account_details) + 1,
&rcc.h_wire);
- if (GNUNET_OK !=
- TEH_KS_sign (&rcc,
- &pub,
- &sig))
+ if (TALER_EC_NONE !=
+ TEH_keys_exchange_sign (&rcc,
+ &pub,
+ &sig))
{
GNUNET_break (0);
json_decref (json_history);