From 126cd5b3fff4a6d78400e16d121fd381c47e20af Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sun, 15 Mar 2015 18:08:04 +0100 Subject: identifying where key_io still needs to be adapted --- src/mint/key_io.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/mint/key_io.c') diff --git a/src/mint/key_io.c b/src/mint/key_io.c index ad06da62..98c4f5ff 100644 --- a/src/mint/key_io.c +++ b/src/mint/key_io.c @@ -71,7 +71,7 @@ signkeys_iterate_dir_iter (void *cls, if (nread != sizeof (struct TALER_MINT_SignKeyIssuePriv)) { GNUNET_log (GNUNET_ERROR_TYPE_WARNING, - "Invalid signkey file: `%s'\n", + "Invalid signkey file `%s': wrong size\n", filename); return GNUNET_OK; } @@ -137,6 +137,8 @@ TALER_MINT_read_denom_key (const char *filename, offset = sizeof (struct TALER_MINT_DenomKeyIssuePriv) - offsetof (struct TALER_MINT_DenomKeyIssuePriv, issue.signature); + /* FIXME: this is very wrong, does not support variable-size + encoding of RSA keys (private or public!) */ if (GNUNET_OK != GNUNET_DISK_file_size (filename, &size, GNUNET_YES, @@ -319,7 +321,6 @@ TALER_MINT_denomkeys_iterate (const char *mint_base_dir, void *it_cls) { char *dir; - size_t len; struct DenomkeysIterateContext dic; int ret; -- cgit v1.2.3