From 3df2a873b5b9197c9ccb689ac5eebdb43697e530 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Thu, 18 Jun 2015 16:24:01 +0200 Subject: fix generation of signing keys by keyup tool --- src/mintdb/mintdb_keyio.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'src/mintdb/mintdb_keyio.c') diff --git a/src/mintdb/mintdb_keyio.c b/src/mintdb/mintdb_keyio.c index 44baee85..7109c983 100644 --- 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, -- cgit v1.2.3