summaryrefslogtreecommitdiff
path: root/src/exchange
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2022-11-04 14:54:13 +0100
committerChristian Grothoff <christian@grothoff.org>2022-11-04 14:54:17 +0100
commit576384b26e808302287ee7b7a22e9b95b66cc656 (patch)
tree0c8da17c4d37b9acd3b0aeb4ed3855d7900b5ceb /src/exchange
parentbcaccec009def3c72adc8538fd379121e672924c (diff)
downloadexchange-576384b26e808302287ee7b7a22e9b95b66cc656.tar.gz
exchange-576384b26e808302287ee7b7a22e9b95b66cc656.tar.bz2
exchange-576384b26e808302287ee7b7a22e9b95b66cc656.zip
return base url as part of /keys
Diffstat (limited to 'src/exchange')
-rw-r--r--src/exchange/taler-exchange-httpd_batch-deposit.c2
-rw-r--r--src/exchange/taler-exchange-httpd_keys.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/src/exchange/taler-exchange-httpd_batch-deposit.c b/src/exchange/taler-exchange-httpd_batch-deposit.c
index cc0e71312..7a3ea0fa4 100644
--- a/src/exchange/taler-exchange-httpd_batch-deposit.c
+++ b/src/exchange/taler-exchange-httpd_batch-deposit.c
@@ -526,7 +526,7 @@ parse_coin (struct MHD_Connection *connection,
TALER_MHD_reply_with_error (connection,
MHD_HTTP_FORBIDDEN,
TALER_EC_EXCHANGE_DEPOSIT_COIN_SIGNATURE_INVALID,
- NULL))
+ TALER_B2S (&deposit->coin.coin_pub)))
? GNUNET_NO
: GNUNET_SYSERR;
}
diff --git a/src/exchange/taler-exchange-httpd_keys.c b/src/exchange/taler-exchange-httpd_keys.c
index 30c336539..b4f4bacfb 100644
--- a/src/exchange/taler-exchange-httpd_keys.c
+++ b/src/exchange/taler-exchange-httpd_keys.c
@@ -1852,6 +1852,8 @@ create_krd (struct TEH_KeyStateHandle *ksh,
keys = GNUNET_JSON_PACK (
GNUNET_JSON_pack_string ("version",
EXCHANGE_PROTOCOL_VERSION),
+ GNUNET_JSON_pack_string ("base_url",
+ TEH_base_url),
GNUNET_JSON_pack_string ("currency",
TEH_currency),
GNUNET_JSON_pack_data_auto ("master_public_key",