summaryrefslogtreecommitdiff
path: root/src/backend/anastasis-httpd.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/backend/anastasis-httpd.c')
-rw-r--r--src/backend/anastasis-httpd.c15
1 files changed, 11 insertions, 4 deletions
diff --git a/src/backend/anastasis-httpd.c b/src/backend/anastasis-httpd.c
index 8350ee7..fd5ffc3 100644
--- a/src/backend/anastasis-httpd.c
+++ b/src/backend/anastasis-httpd.c
@@ -708,12 +708,12 @@ run (void *cls,
}
if (GNUNET_OK !=
GNUNET_CONFIGURATION_get_value_string (config,
- "anastasis",
+ "anastasis-merchant-backend",
"PAYMENT_BACKEND_URL",
&AH_backend_url))
{
GNUNET_log_config_missing (GNUNET_ERROR_TYPE_ERROR,
- "anastasis",
+ "anastasis-merchant-backend",
"PAYMENT_BACKEND_URL");
GNUNET_SCHEDULER_shutdown ();
return;
@@ -726,7 +726,7 @@ run (void *cls,
strlen ("http://"))) )
{
GNUNET_log_config_invalid (GNUNET_ERROR_TYPE_ERROR,
- "anastasis",
+ "anastasis-merchant-backend",
"PAYMENT_BACKEND_URL",
"Must be HTTP(S) URL");
GNUNET_SCHEDULER_shutdown ();
@@ -739,7 +739,7 @@ run (void *cls,
AH_backend_url)) )
{
GNUNET_log_config_invalid (GNUNET_ERROR_TYPE_ERROR,
- "anastasis",
+ "anastasis-merchant-backend",
"PAYMENT_BACKEND_URL",
"Must have domain name");
GNUNET_SCHEDULER_shutdown ();
@@ -823,6 +823,13 @@ run (void *cls,
certfile,
keyfile,
keypass);
+ if (NULL == apikey)
+ {
+ (void) GNUNET_CONFIGURATION_get_value_string (config,
+ "anastasis-merchant-backend",
+ "API_KEY",
+ &apikey);
+ }
if (NULL != apikey)
{
char *auth_header;