summaryrefslogtreecommitdiff
path: root/src/exchange/taler-exchange-httpd_management_auditors_AP_disable.c
diff options
context:
space:
mode:
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.c13
1 files changed, 8 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 7bf191f47..07e2933bb 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;
@@ -176,6 +178,7 @@ TEH_handler_management_auditors_AP_disable (
ret = TEH_DB_run_transaction (connection,
"del auditor",
+ TEH_MT_REQUEST_OTHER,
&res,
&del_auditor,
&dac);