diff options
-rw-r--r-- | src/include/taler_mint_service.h | 3 | ||||
-rw-r--r-- | src/mint-lib/mint_api_handle.c | 3 | ||||
-rw-r--r-- | src/mint/taler-mint-httpd_keystate.c | 5 |
3 files changed, 9 insertions, 2 deletions
diff --git a/src/include/taler_mint_service.h b/src/include/taler_mint_service.h index 0222437ba..78650edfe 100644 --- a/src/include/taler_mint_service.h +++ b/src/include/taler_mint_service.h @@ -362,7 +362,8 @@ TALER_MINT_test_signing_key (const struct TALER_MINT_Keys *keys, * * @param keys the mint's key set * @param pk public key of the denomination to lookup - * @return details about the given denomination key + * @return details about the given denomination key, NULL if the key is not + * found */ const struct TALER_MINT_DenomPublicKey * TALER_MINT_get_denomination_key (const struct TALER_MINT_Keys *keys, diff --git a/src/mint-lib/mint_api_handle.c b/src/mint-lib/mint_api_handle.c index 61291389d..ef3da60ec 100644 --- a/src/mint-lib/mint_api_handle.c +++ b/src/mint-lib/mint_api_handle.c @@ -827,7 +827,8 @@ TALER_MINT_test_signing_key (const struct TALER_MINT_Keys *keys, * * @param keys the mint's key set * @param pk public key of the denomination to lookup - * @return details about the given denomination key + * @return details about the given denomination key, NULL if the key is + * not found */ const struct TALER_MINT_DenomPublicKey * TALER_MINT_get_denomination_key (const struct TALER_MINT_Keys *keys, diff --git a/src/mint/taler-mint-httpd_keystate.c b/src/mint/taler-mint-httpd_keystate.c index 8b2e8a37f..f1856e673 100644 --- a/src/mint/taler-mint-httpd_keystate.c +++ b/src/mint/taler-mint-httpd_keystate.c @@ -619,12 +619,17 @@ TMH_KS_acquire_ (const char *location) { key_state = GNUNET_new (struct TMH_KS_StateHandle); key_state->hash_context = GNUNET_CRYPTO_hash_context_start (); + + key_state->denom_keys_array = json_array (); GNUNET_assert (NULL != key_state->denom_keys_array); + key_state->sign_keys_array = json_array (); GNUNET_assert (NULL != key_state->sign_keys_array); + key_state->auditors_array = json_array (); GNUNET_assert (NULL != key_state->auditors_array); + key_state->denomkey_map = GNUNET_CONTAINER_multihashmap_create (32, GNUNET_NO); key_state->reload_time = GNUNET_TIME_absolute_get (); |