diff options
author | Christian Grothoff <christian@grothoff.org> | 2019-02-14 13:41:46 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2019-02-14 13:41:46 +0100 |
commit | e56ed85f4f11f3daec80326f7d43635281b3806b (patch) | |
tree | 33d9b9523a6e1a38e4ee0264927f9e89892a4af8 /src/exchangedb/exchangedb_signkeys.c | |
parent | 9ff3c2fce5835dff2100a80f27b7f620aaa50783 (diff) | |
download | exchange-e56ed85f4f11f3daec80326f7d43635281b3806b.tar.xz |
preparations for #5536
Diffstat (limited to 'src/exchangedb/exchangedb_signkeys.c')
-rw-r--r-- | src/exchangedb/exchangedb_signkeys.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/exchangedb/exchangedb_signkeys.c b/src/exchangedb/exchangedb_signkeys.c index 866bf4d3d..3c9f1630a 100644 --- a/src/exchangedb/exchangedb_signkeys.c +++ b/src/exchangedb/exchangedb_signkeys.c @@ -73,6 +73,12 @@ signkeys_iterate_dir_iter (void *cls, (unsigned int) sizeof (struct TALER_EXCHANGEDB_PrivateSigningKeyInformationP)); return GNUNET_OK; } + if (0 == GNUNET_TIME_absolute_get_remaining + (GNUNET_TIME_absolute_ntoh (issue.issue.expire)).rel_value_us) + { + /* FIXME: #5536: we should delete this file, the + private key is no longer needed (and return SYSERR!) */ + } return skc->it (skc->it_cls, filename, &issue); |