From 7d809d1f4c2dda593f810c2bf5b924a9332891ab Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sat, 7 Aug 2021 16:33:33 +0200 Subject: -even better --- src/lib/auditor_api_deposit_confirmation.c | 3 +-- src/lib/exchange_api_handle.c | 4 +--- 2 files changed, 2 insertions(+), 5 deletions(-) (limited to 'src') diff --git a/src/lib/auditor_api_deposit_confirmation.c b/src/lib/auditor_api_deposit_confirmation.c index 93d7d557a..9c13c3f0f 100644 --- a/src/lib/auditor_api_deposit_confirmation.c +++ b/src/lib/auditor_api_deposit_confirmation.c @@ -227,8 +227,7 @@ verify_signatures (const struct GNUNET_HashCode *h_wire, TALER_LOG_WARNING ("Invalid signature on exchange signing key!\n"); return GNUNET_SYSERR; } - if (GNUNET_TIME_relative_is_zero ( - GNUNET_TIME_absolute_get_remaining (ep_end))) + if (GNUNET_TIME_absolute_is_past (ep_end)) { GNUNET_break (0); TALER_LOG_WARNING ("Exchange signing key is no longer valid!\n"); diff --git a/src/lib/exchange_api_handle.c b/src/lib/exchange_api_handle.c index 32234ee66..dfd5a3dc6 100644 --- a/src/lib/exchange_api_handle.c +++ b/src/lib/exchange_api_handle.c @@ -1079,9 +1079,7 @@ TALER_EXCHANGE_check_keys_current (struct TALER_EXCHANGE_Handle *exchange, exchange->state = MHS_INIT; } if ( (! force_download) && - (! GNUNET_TIME_relative_is_zero ( - GNUNET_TIME_absolute_get_remaining ( - exchange->key_data_expiration)) ) ) + (GNUNET_TIME_absolute_is_future (exchange->key_data_expiration)) ) return exchange->key_data_expiration; if (NULL == exchange->retry_task) exchange->retry_task = GNUNET_SCHEDULER_add_now (&request_keys, -- cgit v1.2.3