aboutsummaryrefslogtreecommitdiff
path: root/src/exchange/taler-exchange-httpd_link.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2022-02-14 23:02:25 +0100
committerChristian Grothoff <christian@grothoff.org>2022-02-14 23:02:25 +0100
commitbd77bcb52dcad4b761f3db0acaa6b71b112a31c2 (patch)
treef519ebc30bf0917d9f2e91667a20beac71284586 /src/exchange/taler-exchange-httpd_link.c
parentf4f40a31efd3028dec36c0b84a49617926b5f9c3 (diff)
-towards fixing the protocol
Diffstat (limited to 'src/exchange/taler-exchange-httpd_link.c')
-rw-r--r--src/exchange/taler-exchange-httpd_link.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/exchange/taler-exchange-httpd_link.c b/src/exchange/taler-exchange-httpd_link.c
index de10f8b8..47b803ff 100644
--- a/src/exchange/taler-exchange-httpd_link.c
+++ b/src/exchange/taler-exchange-httpd_link.c
@@ -91,7 +91,13 @@ handle_link_data (void *cls,
TALER_JSON_pack_exchange_withdraw_values ("ewv",
&pos->alg_values),
GNUNET_JSON_pack_data_auto ("link_sig",
- &pos->orig_coin_link_sig));
+ &pos->orig_coin_link_sig),
+ GNUNET_JSON_pack_allow_null (
+ pos->have_nonce
+ ? GNUNET_JSON_pack_data_auto ("cs_nonce",
+ &pos->nonce)
+ : GNUNET_JSON_pack_string ("cs_nonce",
+ NULL)));
if ( (NULL == obj) ||
(0 !=
json_array_append_new (list,