summaryrefslogtreecommitdiff
path: root/src/exchange/taler-exchange-httpd_deposit.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2020-07-05 21:54:11 +0200
committerChristian Grothoff <christian@grothoff.org>2020-07-05 21:54:11 +0200
commit54e63f01df85ee0470493c6d0de29576ce3371c4 (patch)
tree174ef13378081c4845a9f0adc52bcac97674aff2 /src/exchange/taler-exchange-httpd_deposit.c
parent6de49ea2c02e311e5f5366005bd3497a9bb25187 (diff)
downloadexchange-54e63f01df85ee0470493c6d0de29576ce3371c4.tar.gz
exchange-54e63f01df85ee0470493c6d0de29576ce3371c4.tar.bz2
exchange-54e63f01df85ee0470493c6d0de29576ce3371c4.zip
fix #6408: make sure all timestamps are always rounded when they arrive over JSON, or 400 the requester; similarly don't tolerate anything else as client
Diffstat (limited to 'src/exchange/taler-exchange-httpd_deposit.c')
-rw-r--r--src/exchange/taler-exchange-httpd_deposit.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/exchange/taler-exchange-httpd_deposit.c b/src/exchange/taler-exchange-httpd_deposit.c
index fe8fdf06..95143758 100644
--- a/src/exchange/taler-exchange-httpd_deposit.c
+++ b/src/exchange/taler-exchange-httpd_deposit.c
@@ -336,12 +336,12 @@ TEH_handler_deposit (struct MHD_Connection *connection,
&deposit.h_wire),
GNUNET_JSON_spec_fixed_auto ("coin_sig",
&deposit.csig),
- GNUNET_JSON_spec_absolute_time ("timestamp",
- &deposit.timestamp),
- GNUNET_JSON_spec_absolute_time ("refund_deadline",
- &deposit.refund_deadline),
- GNUNET_JSON_spec_absolute_time ("wire_transfer_deadline",
- &deposit.wire_deadline),
+ TALER_JSON_spec_absolute_time ("timestamp",
+ &deposit.timestamp),
+ TALER_JSON_spec_absolute_time ("refund_deadline",
+ &deposit.refund_deadline),
+ TALER_JSON_spec_absolute_time ("wire_transfer_deadline",
+ &deposit.wire_deadline),
GNUNET_JSON_spec_end ()
};