summaryrefslogtreecommitdiff
path: root/src/exchange/taler-exchange-httpd_management_auditors_AP_disable.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2021-12-14 16:04:32 +0100
committerChristian Grothoff <christian@grothoff.org>2021-12-14 16:04:40 +0100
commit1a1fafbd438f3f21a15c990d904e192b045d2391 (patch)
treecdd32023fd1d7c530caeae0487528d7eaac2aa29 /src/exchange/taler-exchange-httpd_management_auditors_AP_disable.c
parentbf54ee30d4727217264f470321cc2f91facf63cc (diff)
downloadexchange-1a1fafbd438f3f21a15c990d904e192b045d2391.tar.gz
exchange-1a1fafbd438f3f21a15c990d904e192b045d2391.tar.bz2
exchange-1a1fafbd438f3f21a15c990d904e192b045d2391.zip
introducing GNUNET_TIME_Timestamp, recoup now with amounts
Diffstat (limited to 'src/exchange/taler-exchange-httpd_management_auditors_AP_disable.c')
-rw-r--r--src/exchange/taler-exchange-httpd_management_auditors_AP_disable.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/exchange/taler-exchange-httpd_management_auditors_AP_disable.c b/src/exchange/taler-exchange-httpd_management_auditors_AP_disable.c
index 8b31fb139..5ae0cbd07 100644
--- a/src/exchange/taler-exchange-httpd_management_auditors_AP_disable.c
+++ b/src/exchange/taler-exchange-httpd_management_auditors_AP_disable.c
@@ -50,7 +50,7 @@ struct DelAuditorContext
/**
* Timestamp for checking against replay attacks.
*/
- struct GNUNET_TIME_Absolute validity_end;
+ struct GNUNET_TIME_Timestamp validity_end;
};
@@ -75,7 +75,7 @@ del_auditor (void *cls,
MHD_RESULT *mhd_ret)
{
struct DelAuditorContext *dac = cls;
- struct GNUNET_TIME_Absolute last_date;
+ struct GNUNET_TIME_Timestamp last_date;
enum GNUNET_DB_QueryStatus qs;
qs = TEH_plugin->lookup_auditor_timestamp (TEH_plugin->cls,
@@ -92,7 +92,9 @@ del_auditor (void *cls,
"lookup auditor");
return qs;
}
- if (last_date.abs_value_us > dac->validity_end.abs_value_us)
+ if (GNUNET_TIME_timestamp_cmp (last_date,
+ >,
+ dac->validity_end))
{
*mhd_ret = TALER_MHD_reply_with_error (
connection,
@@ -145,8 +147,8 @@ TEH_handler_management_auditors_AP_disable (
struct GNUNET_JSON_Specification spec[] = {
GNUNET_JSON_spec_fixed_auto ("master_sig",
&master_sig),
- TALER_JSON_spec_absolute_time ("validity_end",
- &dac.validity_end),
+ GNUNET_JSON_spec_timestamp ("validity_end",
+ &dac.validity_end),
GNUNET_JSON_spec_end ()
};
MHD_RESULT res;