From 34405ec9569d8b397169b31f7ca2ec2bbc1d2708 Mon Sep 17 00:00:00 2001 From: Marcello Stanisci Date: Tue, 3 Nov 2015 16:49:14 +0100 Subject: [PATCH] minor change to comments --- src/include/taler_mint_service.h | 3 ++- src/mint-lib/mint_api_handle.c | 3 ++- 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 ();