aboutsummaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2020-12-04 21:34:53 +0100
committerChristian Grothoff <christian@grothoff.org>2020-12-04 21:34:53 +0100
commit8338d4574fd60134180ad248350125ec69b63b90 (patch)
tree9f1604e219c1cffb1c7cfeef3659e64c1bd91b67 /src/lib
parentefc07a55918b5393c60c5850ffa0d1a01db92165 (diff)
improve/test taler-exchange-offline
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/exchange_api_management_revoke_denomination_key.c5
-rw-r--r--src/lib/exchange_api_management_revoke_signing_key.c5
-rw-r--r--src/lib/exchange_api_management_wire_disable.c5
-rw-r--r--src/lib/exchange_api_management_wire_enable.c5
4 files changed, 20 insertions, 0 deletions
diff --git a/src/lib/exchange_api_management_revoke_denomination_key.c b/src/lib/exchange_api_management_revoke_denomination_key.c
index fa2962038..722c13ab9 100644
--- a/src/lib/exchange_api_management_revoke_denomination_key.c
+++ b/src/lib/exchange_api_management_revoke_denomination_key.c
@@ -89,6 +89,11 @@ handle_revoke_denomination_finished (void *cls,
rh->job = NULL;
switch (response_code)
{
+ case 0:
+ /* no reply */
+ hr.ec = TALER_EC_GENERIC_INVALID_RESPONSE;
+ hr.hint = "server offline?";
+ break;
case MHD_HTTP_NO_CONTENT:
break;
case MHD_HTTP_FORBIDDEN:
diff --git a/src/lib/exchange_api_management_revoke_signing_key.c b/src/lib/exchange_api_management_revoke_signing_key.c
index 3e8b7f63f..c58f7bdbc 100644
--- a/src/lib/exchange_api_management_revoke_signing_key.c
+++ b/src/lib/exchange_api_management_revoke_signing_key.c
@@ -86,6 +86,11 @@ handle_revoke_signing_finished (void *cls,
rh->job = NULL;
switch (response_code)
{
+ case 0:
+ /* no reply */
+ hr.ec = TALER_EC_GENERIC_INVALID_RESPONSE;
+ hr.hint = "server offline?";
+ break;
case MHD_HTTP_NO_CONTENT:
break;
case MHD_HTTP_FORBIDDEN:
diff --git a/src/lib/exchange_api_management_wire_disable.c b/src/lib/exchange_api_management_wire_disable.c
index 157d146b8..f7fc719d9 100644
--- a/src/lib/exchange_api_management_wire_disable.c
+++ b/src/lib/exchange_api_management_wire_disable.c
@@ -86,6 +86,11 @@ handle_auditor_disable_finished (void *cls,
wh->job = NULL;
switch (response_code)
{
+ case 0:
+ /* no reply */
+ hr.ec = TALER_EC_GENERIC_INVALID_RESPONSE;
+ hr.hint = "server offline?";
+ break;
case MHD_HTTP_NO_CONTENT:
break;
case MHD_HTTP_FORBIDDEN:
diff --git a/src/lib/exchange_api_management_wire_enable.c b/src/lib/exchange_api_management_wire_enable.c
index 9be4dfb12..6755c1698 100644
--- a/src/lib/exchange_api_management_wire_enable.c
+++ b/src/lib/exchange_api_management_wire_enable.c
@@ -86,6 +86,11 @@ handle_auditor_enable_finished (void *cls,
wh->job = NULL;
switch (response_code)
{
+ case 0:
+ /* no reply */
+ hr.ec = TALER_EC_GENERIC_INVALID_RESPONSE;
+ hr.hint = "server offline?";
+ break;
case MHD_HTTP_NO_CONTENT:
break;
case MHD_HTTP_FORBIDDEN: