summaryrefslogtreecommitdiff
path: root/src/util/taler-exchange-secmod-rsa.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2021-12-08 12:42:22 +0100
committerChristian Grothoff <christian@grothoff.org>2021-12-08 12:42:22 +0100
commit98e44f33a766f049085d7f76d2a11a3ad1d91d57 (patch)
treeb35681a45882f4ee1ac36d57324e6847404e2d55 /src/util/taler-exchange-secmod-rsa.c
parenta7273486382c69b23356a110700665b18911d0db (diff)
downloadexchange-98e44f33a766f049085d7f76d2a11a3ad1d91d57.tar.gz
exchange-98e44f33a766f049085d7f76d2a11a3ad1d91d57.tar.bz2
exchange-98e44f33a766f049085d7f76d2a11a3ad1d91d57.zip
add missing preflight
Diffstat (limited to 'src/util/taler-exchange-secmod-rsa.c')
-rw-r--r--src/util/taler-exchange-secmod-rsa.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/util/taler-exchange-secmod-rsa.c b/src/util/taler-exchange-secmod-rsa.c
index 3b06a56ed..e121e9ab6 100644
--- a/src/util/taler-exchange-secmod-rsa.c
+++ b/src/util/taler-exchange-secmod-rsa.c
@@ -868,6 +868,19 @@ update_keys (struct Denomination *denom,
bool *wake)
{
/* create new denomination keys */
+ if (NULL != denom->keys_tail)
+ GNUNET_log (GNUNET_ERROR_TYPE_INFO,
+ "Updating keys of denomination `%s', last key %s valid for another %s\n",
+ denom->section,
+ GNUNET_h2s (&denom->keys_tail->h_rsa.hash),
+ GNUNET_STRINGS_relative_time_to_string (
+ GNUNET_TIME_absolute_get_remaining (
+ GNUNET_TIME_absolute_subtract (
+ GNUNET_TIME_absolute_add (
+ denom->keys_tail->anchor,
+ denom->duration_withdraw),
+ overlap_duration)),
+ GNUNET_YES));
while ( (NULL == denom->keys_tail) ||
GNUNET_TIME_absolute_is_past (
GNUNET_TIME_absolute_subtract (