aboutsummaryrefslogtreecommitdiff
path: root/src/mint/taler-mint-httpd.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2015-06-12 10:46:42 +0200
committerChristian Grothoff <christian@grothoff.org>2015-06-12 10:46:42 +0200
commitfe6d7a5ae1b883f818538e1c0392624de5e88275 (patch)
treeab4f7a49c5755f1c3597e6d1a52f89ed4e8373b4 /src/mint/taler-mint-httpd.c
parent3724e3d1660b4a9a31c2a7e30d51c3f1734cba89 (diff)
downloadexchange-fe6d7a5ae1b883f818538e1c0392624de5e88275.tar.xz
ensure DKI information is in database before we start to use it (#3808)
Diffstat (limited to 'src/mint/taler-mint-httpd.c')
-rw-r--r--src/mint/taler-mint-httpd.c23
1 files changed, 14 insertions, 9 deletions
diff --git a/src/mint/taler-mint-httpd.c b/src/mint/taler-mint-httpd.c
index b9146c5d8..0d221444f 100644
--- a/src/mint/taler-mint-httpd.c
+++ b/src/mint/taler-mint-httpd.c
@@ -251,7 +251,7 @@ handle_mhd_request (void *cls,
"Only POST is allowed", 0,
&TMH_MHD_handler_send_json_pack_error, MHD_HTTP_METHOD_NOT_ALLOWED },
#endif
-
+
{ NULL, NULL, NULL, NULL, 0, 0 }
};
static struct TMH_RequestHandler h404 =
@@ -314,8 +314,9 @@ mint_serve_process_config (const char *mint_directory)
"currency",
&TMH_mint_currency_string))
{
- fprintf (stderr,
- "No currency given in mint configuration.");
+ GNUNET_log_config_missing (GNUNET_ERROR_TYPE_ERROR,
+ "mint",
+ "currency");
return GNUNET_SYSERR;
}
if (strlen (TMH_mint_currency_string) >= TALER_CURRENCY_LEN)
@@ -332,8 +333,9 @@ mint_serve_process_config (const char *mint_directory)
"wireformat",
&TMH_expected_wire_format))
{
- fprintf (stderr,
- "No wireformat given in mint configuration.");
+ GNUNET_log_config_missing (GNUNET_ERROR_TYPE_ERROR,
+ "mint",
+ "wireformat");
return GNUNET_SYSERR;
}
if (GNUNET_OK !=
@@ -342,8 +344,9 @@ mint_serve_process_config (const char *mint_directory)
"master_public_key",
&TMH_master_public_key_str))
{
- fprintf (stderr,
- "No master public key given in mint configuration.");
+ GNUNET_log_config_missing (GNUNET_ERROR_TYPE_ERROR,
+ "mint",
+ "master_public_key");
return GNUNET_SYSERR;
}
if (GNUNET_OK !=
@@ -372,8 +375,10 @@ mint_serve_process_config (const char *mint_directory)
"port",
&port))
{
- fprintf (stderr,
- "Missing or invalid configuration for the port of the mint\n");
+ GNUNET_log_config_invalid (GNUNET_ERROR_TYPE_ERROR,
+ "mint",
+ "port",
+ "port number required");
return GNUNET_SYSERR;
}