skip keys in future keys if they already expired
This commit is contained in:
parent
453d122c30
commit
74ea2da2b0
@ -2312,6 +2312,8 @@ add_future_denomkey_cb (void *cls,
|
||||
h_denom_pub);
|
||||
if (NULL != dk)
|
||||
return GNUNET_OK; /* skip: this key is already active! */
|
||||
if (0 == hd->validity_duration.rel_value_us)
|
||||
return GNUNET_OK; /* this key already expired! */
|
||||
meta.start = hd->start_time;
|
||||
meta.expire_withdraw = GNUNET_TIME_absolute_add (meta.start,
|
||||
hd->validity_duration);
|
||||
@ -2386,6 +2388,8 @@ add_future_signkey_cb (void *cls,
|
||||
pid);
|
||||
if (NULL != sk)
|
||||
return GNUNET_OK; /* skip: this key is already active */
|
||||
if (0 == hsk->validity_duration.rel_value_us)
|
||||
return GNUNET_OK; /* this key already expired! */
|
||||
stamp_expire = GNUNET_TIME_absolute_add (hsk->start_time,
|
||||
hsk->validity_duration);
|
||||
legal_end = GNUNET_TIME_absolute_add (stamp_expire,
|
||||
|
@ -61,6 +61,11 @@ TALER_exchange_secmod_eddsa_verify (
|
||||
.duration = GNUNET_TIME_relative_hton (duration)
|
||||
};
|
||||
|
||||
GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
|
||||
"Verifying key `%s' with duration %s\n",
|
||||
TALER_B2S (exchange_pub),
|
||||
GNUNET_STRINGS_relative_time_to_string (duration,
|
||||
GNUNET_NO));
|
||||
return
|
||||
GNUNET_CRYPTO_eddsa_verify (TALER_SIGNATURE_SM_SIGNING_KEY,
|
||||
&ska,
|
||||
|
Loading…
Reference in New Issue
Block a user