commit 34405ec9569d8b397169b31f7ca2ec2bbc1d2708
parent c2a40aa83924fd88b9c1ec0084f87109b01a8324
Author: Marcello Stanisci <marcello.stanisci@inria.fr>
Date: Tue, 3 Nov 2015 16:49:14 +0100
minor change to comments
Diffstat:
3 files changed, 9 insertions(+), 2 deletions(-)
diff --git 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
@@ -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
@@ -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 ();