[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [taler-exchange] 02/03: Do not include legally expired keys
From: |
gnunet |
Subject: |
[GNUnet-SVN] [taler-exchange] 02/03: Do not include legally expired keys into /keys response. |
Date: |
Fri, 05 Apr 2019 19:32:02 +0200 |
This is an automated email from the git hooks/post-receive script.
marcello pushed a commit to branch master
in repository exchange.
commit a19baaccf3c93390a0c40395454c667440f6b2bd
Author: Marcello Stanisci <address@hidden>
AuthorDate: Fri Apr 5 16:29:48 2019 +0200
Do not include legally expired keys into /keys response.
---
src/exchange/taler-exchange-httpd_keystate.c | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/src/exchange/taler-exchange-httpd_keystate.c
b/src/exchange/taler-exchange-httpd_keystate.c
index 0ee3806f..ad1883ba 100644
--- a/src/exchange/taler-exchange-httpd_keystate.c
+++ b/src/exchange/taler-exchange-httpd_keystate.c
@@ -1494,6 +1494,13 @@ reload_public_denoms_cb (void *cls,
struct ResponseFactoryContext *rfc = cls;
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 !=
GNUNET_CONTAINER_multihashmap_get (rfc->key_state->denomkey_map,
&issue->properties.denom_hash))
--
To stop receiving notification emails like this one, please contact
address@hidden