summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2015-06-18 14:04:42 +0200
committerChristian Grothoff <christian@grothoff.org>2015-06-18 14:04:42 +0200
commitb696e1db1d1fb266e9ae29c1aea74c6d0d38546c (patch)
tree22fa27c2ad93d678e588250ee108a189ff9613cf
parentd589293557115910482af2c89cd6c5df5a10cd30 (diff)
downloadexchange-b696e1db1d1fb266e9ae29c1aea74c6d0d38546c.tar.gz
exchange-b696e1db1d1fb266e9ae29c1aea74c6d0d38546c.tar.bz2
exchange-b696e1db1d1fb266e9ae29c1aea74c6d0d38546c.zip
fix range check, make messages clearer
-rw-r--r--src/mint-lib/Makefile.am6
-rw-r--r--src/mint-tools/taler-mint-keyup.c7
2 files changed, 10 insertions, 3 deletions
diff --git a/src/mint-lib/Makefile.am b/src/mint-lib/Makefile.am
index d5940e9c..0ea52479 100644
--- a/src/mint-lib/Makefile.am
+++ b/src/mint-lib/Makefile.am
@@ -33,3 +33,9 @@ test_mint_api_LDADD = \
$(top_builddir)/src/util/libtalerutil.la \
-lgnunetutil \
-ljansson
+
+EXTRA_DIST = \
+ test-mint-home/config/mint-common.conf \
+ test-mint-home/master.priv \
+ test-mint-home/denomkeys/ \
+ test-mint-home/signkeys/
diff --git a/src/mint-tools/taler-mint-keyup.c b/src/mint-tools/taler-mint-keyup.c
index 70c66443..5eff6f58 100644
--- a/src/mint-tools/taler-mint-keyup.c
+++ b/src/mint-tools/taler-mint-keyup.c
@@ -502,12 +502,13 @@ mint_keys_update_signkeys ()
"legal_duration",
&legal_duration))
{
- GNUNET_log_config_missing (GNUNET_ERROR_TYPE_ERROR,
+ GNUNET_log_config_invalid (GNUNET_ERROR_TYPE_ERROR,
"mint_keys",
- "legal_duration");
+ "legal_duration",
+ "fails to specify valid timeframe");
return GNUNET_SYSERR;
}
- if (signkey_duration.rel_value_us < legal_duration.rel_value_us)
+ if (signkey_duration.rel_value_us > legal_duration.rel_value_us)
{
GNUNET_log_config_invalid (GNUNET_ERROR_TYPE_ERROR,
"mint_keys",