exchange

Base system with REST service to issue digital coins, run by the payment service provider
Log | Files | Refs | Submodules | README | LICENSE

commit 37bf816873ac6b8b4e2e69e9c7037046d971dfff
parent 45ec06a0e88b9270b71bbcda163f5d90807f6a87
Author: Christian Grothoff <christian@grothoff.org>
Date:   Thu, 18 Jun 2015 16:38:47 +0200

wq
Merge branch 'master' of git+ssh://taler.net/var/git/mint

Diffstat:
Msrc/mint-tools/taler-mint-keyup.c | 4++--
Msrc/mintdb/mintdb_keyio.c | 11++++++-----
2 files changed, 8 insertions(+), 7 deletions(-)

diff --git a/src/mint-tools/taler-mint-keyup.c b/src/mint-tools/taler-mint-keyup.c @@ -555,9 +555,9 @@ mint_keys_update_signkeys () &signkey_issue); nwrite = GNUNET_DISK_fn_write (skf, &signkey_issue, - sizeof (struct TALER_MintSigningKeyValidityPS), + sizeof (struct TALER_MINTDB_PrivateSigningKeyInformationP), GNUNET_DISK_PERM_USER_WRITE | GNUNET_DISK_PERM_USER_READ); - if (nwrite != sizeof (struct TALER_MintSigningKeyValidityPS)) + if (sizeof (struct TALER_MINTDB_PrivateSigningKeyInformationP) != nwrite) { fprintf (stderr, "Failed to write to file `%s': %s\n", diff --git a/src/mintdb/mintdb_keyio.c b/src/mintdb/mintdb_keyio.c @@ -44,9 +44,8 @@ struct SignkeysIterateContext /** - * Function called on each file in the directory with - * our signing keys. Parses the file and calls the - * iterator from @a cls. + * Function called on each file in the directory with our signing + * keys. Parses the file and calls the iterator from @a cls. * * @param cls the `struct SignkeysIterateContext *` * @param filename name of the file to parse @@ -68,8 +67,10 @@ signkeys_iterate_dir_iter (void *cls, if (nread != sizeof (struct TALER_MINTDB_PrivateSigningKeyInformationP)) { GNUNET_log (GNUNET_ERROR_TYPE_WARNING, - "Invalid signkey file `%s': wrong size\n", - filename); + "Invalid signkey file `%s': wrong size (%d, expected %u)\n", + filename, + (int) nread, + sizeof (struct TALER_MINTDB_PrivateSigningKeyInformationP)); return GNUNET_OK; } return skc->it (skc->it_cls,