Do not include legally expired keys into /keys response.

This commit is contained in:
Marcello Stanisci 2019-04-05 16:29:48 +02:00
parent 32cdef2b62
commit a19baaccf3
No known key found for this signature in database
GPG Key ID: 8D526861953F4C0F

View File

@ -1494,6 +1494,13 @@ reload_public_denoms_cb (void *cls,
struct ResponseFactoryContext *rfc = cls; struct ResponseFactoryContext *rfc = cls;
struct TALER_EXCHANGEDB_DenominationKeyIssueInformation dki; struct TALER_EXCHANGEDB_DenominationKeyIssueInformation dki;
if (rfc->now.abs_value_us > GNUNET_TIME_absolute_ntoh
(issue->properties.expire_legal).abs_value_us)
{
/* Expired key, discard. */
return;
}
if (NULL != if (NULL !=
GNUNET_CONTAINER_multihashmap_get (rfc->key_state->denomkey_map, GNUNET_CONTAINER_multihashmap_get (rfc->key_state->denomkey_map,
&issue->properties.denom_hash)) &issue->properties.denom_hash))