diff options
author | Christian Grothoff <christian@grothoff.org> | 2016-05-05 15:03:43 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2016-05-05 15:03:43 +0200 |
commit | 6040adab4fa2e31f0df1503b9d2ef8c4ae0e1899 (patch) | |
tree | c725e2796f2d30c4f1abf1124e64138aa4a3fbf5 | |
parent | 6b1f4904ef011760f2a5c30698ab62652594fa6c (diff) |
fixing #4461
-rw-r--r-- | src/exchange-tools/taler-auditor-sign.c | 4 | ||||
-rw-r--r-- | src/exchange-tools/taler-exchange-keyup.c | 4 | ||||
-rw-r--r-- | src/exchange-tools/taler-exchange-wire.c | 4 |
3 files changed, 12 insertions, 0 deletions
diff --git a/src/exchange-tools/taler-auditor-sign.c b/src/exchange-tools/taler-auditor-sign.c index 3652bc9e6..e88953f30 100644 --- a/src/exchange-tools/taler-auditor-sign.c +++ b/src/exchange-tools/taler-auditor-sign.c @@ -216,6 +216,10 @@ main (int argc, "Auditor URL not given\n"); return 1; } + if (GNUNET_YES != GNUNET_DISK_file_test (auditor_key_file)) + GNUNET_log (GNUNET_ERROR_TYPE_INFO, + "Auditor private key `%s' does not exist yet, creating it!\n", + auditor_key_file); eddsa_priv = GNUNET_CRYPTO_eddsa_key_create_from_file (auditor_key_file); if (NULL == eddsa_priv) { diff --git a/src/exchange-tools/taler-exchange-keyup.c b/src/exchange-tools/taler-exchange-keyup.c index 155861936..706cb252e 100644 --- a/src/exchange-tools/taler-exchange-keyup.c +++ b/src/exchange-tools/taler-exchange-keyup.c @@ -950,6 +950,10 @@ run (void *cls, global_ret = 1; return; } + if (GNUNET_YES != GNUNET_DISK_file_test (masterkeyfile)) + GNUNET_log (GNUNET_ERROR_TYPE_INFO, + "Exchange master private key `%s' does not exist yet, creating it!\n", + masterkeyfile); eddsa_priv = GNUNET_CRYPTO_eddsa_key_create_from_file (masterkeyfile); if (NULL == eddsa_priv) { diff --git a/src/exchange-tools/taler-exchange-wire.c b/src/exchange-tools/taler-exchange-wire.c index 2c11e8421..81f292a1d 100644 --- a/src/exchange-tools/taler-exchange-wire.c +++ b/src/exchange-tools/taler-exchange-wire.c @@ -88,6 +88,10 @@ run (void *cls, global_ret = 1; return; } + if (GNUNET_YES != GNUNET_DISK_file_test (masterkeyfile)) + GNUNET_log (GNUNET_ERROR_TYPE_INFO, + "Exchange master private key `%s' does not exist yet, creating it!\n", + masterkeyfile); eddsa_priv = GNUNET_CRYPTO_eddsa_key_create_from_file (masterkeyfile); if (NULL == eddsa_priv) { |