diff options
author | Christian Grothoff <christian@grothoff.org> | 2017-04-07 22:37:00 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2017-04-07 22:37:00 +0200 |
commit | 209076ebd35458aaf61f4a8a4b71e127e4eda440 (patch) | |
tree | 4d0fa8a3f12be5485e6768fed9231be68bc39ad8 /src/exchange/taler-exchange-httpd_keystate.c | |
parent | ef6d9cc56d3e3830750d76df1db48bc3d7d10f41 (diff) | |
download | exchange-209076ebd35458aaf61f4a8a4b71e127e4eda440.tar.gz exchange-209076ebd35458aaf61f4a8a4b71e127e4eda440.tar.bz2 exchange-209076ebd35458aaf61f4a8a4b71e127e4eda440.zip |
implement denomination key revocation logic in exchangedb and taler-exchange-keyup (part of #3887)
Diffstat (limited to 'src/exchange/taler-exchange-httpd_keystate.c')
-rw-r--r-- | src/exchange/taler-exchange-httpd_keystate.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/exchange/taler-exchange-httpd_keystate.c b/src/exchange/taler-exchange-httpd_keystate.c index e754eb4fc..164f61abb 100644 --- a/src/exchange/taler-exchange-httpd_keystate.c +++ b/src/exchange/taler-exchange-httpd_keystate.c @@ -210,6 +210,7 @@ TALER_EXCHANGE_conf_duration_provide () * @param cls closure * @param dki the denomination key issue * @param alias coin alias + * @param was_revoked #GNUNET_YES if @a dki has been revoked * @return #GNUNET_OK to continue to iterate, * #GNUNET_NO to stop iteration with no error, * #GNUNET_SYSERR to abort iteration with error! @@ -217,7 +218,8 @@ TALER_EXCHANGE_conf_duration_provide () static int reload_keys_denom_iter (void *cls, const char *alias, - const struct TALER_EXCHANGEDB_DenominationKeyIssueInformation *dki) + const struct TALER_EXCHANGEDB_DenominationKeyIssueInformation *dki, + int was_revoked) { struct TEH_KS_StateHandle *ctx = cls; struct GNUNET_TIME_Absolute now; @@ -674,6 +676,7 @@ TEH_KS_acquire_ (const char *location) "Loading keys from `%s'\n", TEH_exchange_directory); if (-1 == TALER_EXCHANGEDB_denomination_keys_iterate (TEH_exchange_directory, + &TEH_master_public_key, &reload_keys_denom_iter, key_state)) { |