diff options
author | Christian Grothoff <christian@grothoff.org> | 2022-06-29 08:31:00 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2022-06-29 08:31:00 +0200 |
commit | 3b091cd5dee9338850d5d1052f55d019624221c2 (patch) | |
tree | 23ad6c90a4fbc5b19bff8288c6f62f574ea1370a /src/exchange/taler-exchange-httpd_keys.h | |
parent | 09479c55957530db6be17ed0f3a8a556b4a50cd0 (diff) |
-fix /keys initialization DB logic
Diffstat (limited to 'src/exchange/taler-exchange-httpd_keys.h')
-rw-r--r-- | src/exchange/taler-exchange-httpd_keys.h | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/src/exchange/taler-exchange-httpd_keys.h b/src/exchange/taler-exchange-httpd_keys.h index 1edf9c46..6d0cb5b5 100644 --- a/src/exchange/taler-exchange-httpd_keys.h +++ b/src/exchange/taler-exchange-httpd_keys.h @@ -175,6 +175,18 @@ TEH_keys_get_state (void); /** + * Obtain the key state. Should ONLY be used + * directly if @a management_only is true. Otherwise use #TEH_keys_get_state(). + * + * @param management_only if we should NOT run finish_keys_response() + * because we only need the state for the /management/keys API + * @return NULL on error + */ +struct TEH_KeyStateHandle * +TEH_keys_get_state2 (bool management_only); + + +/** * Something changed in the database. Rebuild all key states. This function * should be called if the exchange learns about a new signature from an * auditor or our master key. @@ -485,6 +497,7 @@ TEH_keys_management_get_keys_handler (const struct TEH_RequestHandler *rh, * Load fees and expiration times (!) for the denomination type configured for * the denomination matching @a h_denom_pub. * + * @param ksh key state to load fees from * @param h_denom_pub hash of the denomination public key * to use to derive the section name of the configuration to use * @param[out] denom_pub set to the denomination public key (to be freed by caller!) @@ -494,7 +507,8 @@ TEH_keys_management_get_keys_handler (const struct TEH_RequestHandler *rh, * #GNUNET_SYSERR on hard errors */ enum GNUNET_GenericReturnValue -TEH_keys_load_fees (const struct TALER_DenominationHashP *h_denom_pub, +TEH_keys_load_fees (struct TEH_KeyStateHandle *ksh, + const struct TALER_DenominationHashP *h_denom_pub, struct TALER_DenominationPublicKey *denom_pub, struct TALER_EXCHANGEDB_DenominationKeyMetaData *meta); |