-use new GNUNET_TIME_relative_is_zero API
This commit is contained in:
parent
d1b57be304
commit
3cdf7dfaaa
@ -227,7 +227,8 @@ verify_signatures (const struct GNUNET_HashCode *h_wire,
|
||||
TALER_LOG_WARNING ("Invalid signature on exchange signing key!\n");
|
||||
return GNUNET_SYSERR;
|
||||
}
|
||||
if (0 == GNUNET_TIME_absolute_get_remaining (ep_end).rel_value_us)
|
||||
if (GNUNET_TIME_relative_is_zero (
|
||||
GNUNET_TIME_absolute_get_remaining (ep_end)))
|
||||
{
|
||||
GNUNET_break (0);
|
||||
TALER_LOG_WARNING ("Exchange signing key is no longer valid!\n");
|
||||
|
@ -1079,8 +1079,9 @@ TALER_EXCHANGE_check_keys_current (struct TALER_EXCHANGE_Handle *exchange,
|
||||
exchange->state = MHS_INIT;
|
||||
}
|
||||
if ( (! force_download) &&
|
||||
(0 < GNUNET_TIME_absolute_get_remaining (
|
||||
exchange->key_data_expiration).rel_value_us) )
|
||||
(! GNUNET_TIME_relative_is_zero (
|
||||
GNUNET_TIME_absolute_get_remaining (
|
||||
exchange->key_data_expiration)) ) )
|
||||
return exchange->key_data_expiration;
|
||||
if (NULL == exchange->retry_task)
|
||||
exchange->retry_task = GNUNET_SCHEDULER_add_now (&request_keys,
|
||||
|
Loading…
Reference in New Issue
Block a user