aboutsummaryrefslogtreecommitdiff
path: root/src/auditor/taler-auditor-httpd.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/auditor/taler-auditor-httpd.c')
-rw-r--r--src/auditor/taler-auditor-httpd.c88
1 files changed, 46 insertions, 42 deletions
diff --git a/src/auditor/taler-auditor-httpd.c b/src/auditor/taler-auditor-httpd.c
index 3ae0176b5..a7864e98b 100644
--- a/src/auditor/taler-auditor-httpd.c
+++ b/src/auditor/taler-auditor-httpd.c
@@ -353,7 +353,7 @@ handle_mhd_request (void *cls,
"application/json",
NULL, 0,
&TAH_delete_handler_generic, MHD_HTTP_OK, true,
- .table = TALER_AUDITORDB_DEPOSIT_CONFIRMATION },
+ .table = TALER_AUDITORDB_DEPOSIT_CONFIRMATION },
{ "/monitoring/amount-arithmetic-inconsistency", MHD_HTTP_METHOD_GET,
"application/json",
NULL, 0,
@@ -362,7 +362,7 @@ handle_mhd_request (void *cls,
"application/json",
NULL, 0,
&TAH_delete_handler_generic, MHD_HTTP_OK, true,
- .table = TALER_AUDITORDB_AMOUNT_ARITHMETIC_INCONSISTENCY },
+ .table = TALER_AUDITORDB_AMOUNT_ARITHMETIC_INCONSISTENCY },
{
"/monitoring/amount-arithmetic-inconsistency",
MHD_HTTP_METHOD_PATCH,
@@ -382,12 +382,12 @@ handle_mhd_request (void *cls,
"application/json",
NULL, 0,
&TAH_delete_handler_generic, MHD_HTTP_OK, true,
- .table = TALER_AUDITORDB_COIN_INCONSISTENCY },
+ .table = TALER_AUDITORDB_COIN_INCONSISTENCY },
{ "/monitoring/coin-inconsistency", MHD_HTTP_METHOD_PATCH,
"application/json",
NULL, 0,
&TAH_patch_handler_generic_suppressed, MHD_HTTP_OK, true,
- .table = TALER_AUDITORDB_COIN_INCONSISTENCY },
+ .table = TALER_AUDITORDB_COIN_INCONSISTENCY },
{ "/monitoring/row-inconsistency", MHD_HTTP_METHOD_GET,
"application/json",
NULL, 0,
@@ -401,7 +401,7 @@ handle_mhd_request (void *cls,
"application/json",
NULL, 0,
&TAH_patch_handler_generic_suppressed, MHD_HTTP_OK, true,
- .table = TALER_AUDITORDB_ROW_INCONSISTENCY },
+ .table = TALER_AUDITORDB_ROW_INCONSISTENCY },
{ "/monitoring/bad-sig-losses", MHD_HTTP_METHOD_GET,
"application/json",
NULL, 0,
@@ -418,7 +418,7 @@ handle_mhd_request (void *cls,
NULL, 0,
&TAH_patch_handler_generic_suppressed,
MHD_HTTP_OK, true,
- .table = TALER_AUDITORDB_BAD_SIG_LOSSES },
+ .table = TALER_AUDITORDB_BAD_SIG_LOSSES },
{ "/monitoring/closure-lags", MHD_HTTP_METHOD_GET,
"application/json",
NULL, 0,
@@ -429,13 +429,13 @@ handle_mhd_request (void *cls,
NULL, 0,
&TAH_delete_handler_generic,
MHD_HTTP_OK, true,
- .table = TALER_AUDITORDB_CLOSURE_LAGS },
+ .table = TALER_AUDITORDB_CLOSURE_LAGS },
{ "/monitoring/closure-lags", MHD_HTTP_METHOD_PATCH,
"application/json",
NULL, 0,
&TAH_patch_handler_generic_suppressed,
MHD_HTTP_OK, true,
- .table = TALER_AUDITORDB_CLOSURE_LAGS },
+ .table = TALER_AUDITORDB_CLOSURE_LAGS },
{ "/monitoring/emergency", MHD_HTTP_METHOD_GET,
"application/json",
NULL, 0,
@@ -446,13 +446,13 @@ handle_mhd_request (void *cls,
NULL, 0,
&TAH_delete_handler_generic,
MHD_HTTP_OK, true,
- .table = TALER_AUDITORDB_EMERGENCY },
+ .table = TALER_AUDITORDB_EMERGENCY },
{ "/monitoring/emergency", MHD_HTTP_METHOD_PATCH,
"application/json",
NULL, 0,
&TAH_patch_handler_generic_suppressed,
MHD_HTTP_OK, true,
- .table = TALER_AUDITORDB_EMERGENCY },
+ .table = TALER_AUDITORDB_EMERGENCY },
{ "/monitoring/refreshes-hanging", MHD_HTTP_METHOD_GET,
"application/json",
NULL, 0,
@@ -463,13 +463,13 @@ handle_mhd_request (void *cls,
NULL, 0,
&TAH_delete_handler_generic,
MHD_HTTP_OK, true,
- .table = TALER_AUDITORDB_REFRESHES_HANGING },
+ .table = TALER_AUDITORDB_REFRESHES_HANGING },
{ "/monitoring/refreshes-hanging", MHD_HTTP_METHOD_PATCH,
"application/json",
NULL, 0,
&TAH_patch_handler_generic_suppressed,
MHD_HTTP_OK, true,
- .table = TALER_AUDITORDB_REFRESHES_HANGING },
+ .table = TALER_AUDITORDB_REFRESHES_HANGING },
{ "/monitoring/denomination-key-validity-withdraw-inconsistency",
MHD_HTTP_METHOD_GET,
"application/json",
@@ -482,14 +482,16 @@ handle_mhd_request (void *cls,
NULL, 0,
&TAH_delete_handler_generic,
MHD_HTTP_OK, true,
- .table = TALER_AUDITORDB_DENOMINATION_KEY_VALIDITY_WITHDRAW_INCONSISTENCY },
+ .table = TALER_AUDITORDB_DENOMINATION_KEY_VALIDITY_WITHDRAW_INCONSISTENCY}
+ ,
{ "/monitoring/denomination-key-validity-withdraw-inconsistency",
MHD_HTTP_METHOD_PATCH,
"application/json",
NULL, 0,
&TAH_patch_handler_generic_suppressed,
MHD_HTTP_OK, true,
- .table = TALER_AUDITORDB_DENOMINATION_KEY_VALIDITY_WITHDRAW_INCONSISTENCY },
+ .table = TALER_AUDITORDB_DENOMINATION_KEY_VALIDITY_WITHDRAW_INCONSISTENCY}
+ ,
{ "/monitoring/reserve-balance-insufficient-inconsistency",
MHD_HTTP_METHOD_GET,
"application/json",
@@ -502,14 +504,14 @@ handle_mhd_request (void *cls,
NULL, 0,
&TAH_delete_handler_generic,
MHD_HTTP_OK, true,
- .table = TALER_AUDITORDB_RESERVE_BALANCE_INSUFFICIENT_INCONSISTENCY },
+ .table = TALER_AUDITORDB_RESERVE_BALANCE_INSUFFICIENT_INCONSISTENCY },
{ "/monitoring/reserve-balance-insufficient-inconsistency",
MHD_HTTP_METHOD_PATCH,
"application/json",
NULL, 0,
&TAH_patch_handler_generic_suppressed,
MHD_HTTP_OK, true,
- .table = TALER_AUDITORDB_RESERVE_BALANCE_INSUFFICIENT_INCONSISTENCY },
+ .table = TALER_AUDITORDB_RESERVE_BALANCE_INSUFFICIENT_INCONSISTENCY },
{ "/monitoring/purse-not-closed-inconsistencies", MHD_HTTP_METHOD_GET,
"application/json",
NULL, 0,
@@ -520,13 +522,13 @@ handle_mhd_request (void *cls,
NULL, 0,
&TAH_delete_handler_generic,
MHD_HTTP_OK, true,
- .table = TALER_AUDITORDB_PURSE_NOT_CLOSED_INCONSISTENCY },
+ .table = TALER_AUDITORDB_PURSE_NOT_CLOSED_INCONSISTENCY },
{ "/monitoring/purse-not-closed-inconsistencies", MHD_HTTP_METHOD_PATCH,
"application/json",
NULL, 0,
&TAH_patch_handler_generic_suppressed,
MHD_HTTP_OK, true,
- .table = TALER_AUDITORDB_PURSE_NOT_CLOSED_INCONSISTENCY },
+ .table = TALER_AUDITORDB_PURSE_NOT_CLOSED_INCONSISTENCY },
{ "/monitoring/emergency-by-count", MHD_HTTP_METHOD_GET,
"application/json",
NULL, 0,
@@ -537,13 +539,13 @@ handle_mhd_request (void *cls,
NULL, 0,
&TAH_delete_handler_generic,
MHD_HTTP_OK, true,
- .table = TALER_AUDITORDB_EMERGENCY_BY_COUNT },
+ .table = TALER_AUDITORDB_EMERGENCY_BY_COUNT },
{ "/monitoring/emergency-by-count", MHD_HTTP_METHOD_PATCH,
"application/json",
NULL, 0,
&TAH_patch_handler_generic_suppressed,
MHD_HTTP_OK, true,
- .table = TALER_AUDITORDB_EMERGENCY_BY_COUNT },
+ .table = TALER_AUDITORDB_EMERGENCY_BY_COUNT },
{ "/monitoring/reserve-in-inconsistency", MHD_HTTP_METHOD_GET,
"application/json",
NULL, 0,
@@ -554,13 +556,13 @@ handle_mhd_request (void *cls,
NULL, 0,
&TAH_delete_handler_generic,
MHD_HTTP_OK, true,
- .table = TALER_AUDITORDB_RESERVE_IN_INCONSISTENCY },
+ .table = TALER_AUDITORDB_RESERVE_IN_INCONSISTENCY },
{ "/monitoring/reserve-in-inconsistency", MHD_HTTP_METHOD_PATCH,
"application/json",
NULL, 0,
&TAH_patch_handler_generic_suppressed,
MHD_HTTP_OK, true,
- .table = TALER_AUDITORDB_RESERVE_IN_INCONSISTENCY },
+ .table = TALER_AUDITORDB_RESERVE_IN_INCONSISTENCY },
{ "/monitoring/reserve-not-closed-inconsistency", MHD_HTTP_METHOD_GET,
"application/json",
NULL, 0,
@@ -571,13 +573,13 @@ handle_mhd_request (void *cls,
NULL, 0,
&TAH_delete_handler_generic,
MHD_HTTP_OK, true,
- .table = TALER_AUDITORDB_RESERVE_NOT_CLOSED_INCONSISTENCY },
+ .table = TALER_AUDITORDB_RESERVE_NOT_CLOSED_INCONSISTENCY },
{ "/monitoring/reserve-not-closed-inconsistency", MHD_HTTP_METHOD_PATCH,
"application/json",
NULL, 0,
&TAH_patch_handler_generic_suppressed,
MHD_HTTP_OK, true,
- .table = TALER_AUDITORDB_RESERVE_NOT_CLOSED_INCONSISTENCY },
+ .table = TALER_AUDITORDB_RESERVE_NOT_CLOSED_INCONSISTENCY },
{ "/monitoring/denominations-without-sigs", MHD_HTTP_METHOD_GET,
"application/json",
NULL, 0,
@@ -588,13 +590,13 @@ handle_mhd_request (void *cls,
NULL, 0,
&TAH_delete_handler_generic,
MHD_HTTP_OK, true,
- .table = TALER_AUDITORDB_DENOMINATIONS_WITHOUT_SIG },
+ .table = TALER_AUDITORDB_DENOMINATIONS_WITHOUT_SIG },
{ "/monitoring/denominations-without-sigs", MHD_HTTP_METHOD_PATCH,
"application/json",
NULL, 0,
&TAH_patch_handler_generic_suppressed,
MHD_HTTP_OK, true,
- .table = TALER_AUDITORDB_DENOMINATIONS_WITHOUT_SIG },
+ .table = TALER_AUDITORDB_DENOMINATIONS_WITHOUT_SIG },
{ "/monitoring/misattribution-in-inconsistency", MHD_HTTP_METHOD_GET,
"application/json",
NULL, 0,
@@ -605,13 +607,13 @@ handle_mhd_request (void *cls,
NULL, 0,
&TAH_delete_handler_generic,
MHD_HTTP_OK, true,
- .table = TALER_AUDITORDB_MISATTRIBUTION_IN_INCONSISTENCY },
+ .table = TALER_AUDITORDB_MISATTRIBUTION_IN_INCONSISTENCY },
{ "/monitoring/misattribution-in-inconsistency", MHD_HTTP_METHOD_PATCH,
"application/json",
NULL, 0,
&TAH_patch_handler_generic_suppressed,
MHD_HTTP_OK, true,
- .table = TALER_AUDITORDB_MISATTRIBUTION_IN_INCONSISTENCY },
+ .table = TALER_AUDITORDB_MISATTRIBUTION_IN_INCONSISTENCY },
{ "/monitoring/reserves", MHD_HTTP_METHOD_GET,
"application/json",
NULL, 0,
@@ -637,7 +639,7 @@ handle_mhd_request (void *cls,
NULL, 0,
&TAH_delete_handler_generic,
MHD_HTTP_OK, true,
- .table = TALER_AUDITORDB_DENOMINATION_PENDING },
+ .table = TALER_AUDITORDB_DENOMINATION_PENDING },
{ "/monitoring/historic-reserve-summary", MHD_HTTP_METHOD_GET,
"application/json",
NULL, 0,
@@ -653,13 +655,13 @@ handle_mhd_request (void *cls,
NULL, 0,
&TAH_delete_handler_generic,
MHD_HTTP_OK, true,
- .table = TALER_AUDITORDB_WIRE_FORMAT_INCONSISTENCY },
+ .table = TALER_AUDITORDB_WIRE_FORMAT_INCONSISTENCY },
{ "/monitoring/wire-format-inconsistency", MHD_HTTP_METHOD_PATCH,
"application/json",
NULL, 0,
&TAH_patch_handler_generic_suppressed,
MHD_HTTP_OK, true,
- .table = TALER_AUDITORDB_WIRE_FORMAT_INCONSISTENCY },
+ .table = TALER_AUDITORDB_WIRE_FORMAT_INCONSISTENCY },
{ "/monitoring/wire-out-inconsistency", MHD_HTTP_METHOD_GET,
"application/json",
NULL, 0,
@@ -670,13 +672,13 @@ handle_mhd_request (void *cls,
NULL, 0,
&TAH_delete_handler_generic,
MHD_HTTP_OK, true,
- .table = TALER_AUDITORDB_WIRE_OUT_INCONSISTENCY },
+ .table = TALER_AUDITORDB_WIRE_OUT_INCONSISTENCY },
{ "/monitoring/wire-out-inconsistency", MHD_HTTP_METHOD_PATCH,
"application/json",
NULL, 0,
&TAH_patch_handler_generic_suppressed,
MHD_HTTP_OK, true,
- .table = TALER_AUDITORDB_WIRE_OUT_INCONSISTENCY },
+ .table = TALER_AUDITORDB_WIRE_OUT_INCONSISTENCY },
{ "/monitoring/reserve-balance-summary-wrong-inconsistency",
MHD_HTTP_METHOD_GET,
"application/json",
@@ -689,14 +691,14 @@ handle_mhd_request (void *cls,
NULL, 0,
&TAH_delete_handler_generic,
MHD_HTTP_OK, true,
- .table = TALER_AUDITORDB_RESERVE_BALANCE_SUMMARY_WRONG_INCONSISTENCY },
+ .table = TALER_AUDITORDB_RESERVE_BALANCE_SUMMARY_WRONG_INCONSISTENCY },
{ "/monitoring/reserve-balance-summary-wrong-inconsistency",
MHD_HTTP_METHOD_PATCH,
"application/json",
NULL, 0,
&TAH_patch_handler_generic_suppressed,
MHD_HTTP_OK, true,
- .table = TALER_AUDITORDB_RESERVE_BALANCE_SUMMARY_WRONG_INCONSISTENCY },
+ .table = TALER_AUDITORDB_RESERVE_BALANCE_SUMMARY_WRONG_INCONSISTENCY },
{ "/monitoring/row-minor-inconsistencies", MHD_HTTP_METHOD_GET,
"application/json",
NULL, 0,
@@ -707,13 +709,13 @@ handle_mhd_request (void *cls,
NULL, 0,
&TAH_delete_handler_generic,
MHD_HTTP_OK, true,
- .table = TALER_AUDITORDB_ROW_MINOR_INCONSISTENCY },
+ .table = TALER_AUDITORDB_ROW_MINOR_INCONSISTENCY },
{ "/monitoring/row-minor-inconsistencies", MHD_HTTP_METHOD_PATCH,
"application/json",
NULL, 0,
&TAH_patch_handler_generic_suppressed,
MHD_HTTP_OK, true,
- .table = TALER_AUDITORDB_ROW_MINOR_INCONSISTENCY },
+ .table = TALER_AUDITORDB_ROW_MINOR_INCONSISTENCY },
{ "/monitoring/fee-time-inconsistency", MHD_HTTP_METHOD_GET,
"application/json",
NULL, 0,
@@ -724,13 +726,13 @@ handle_mhd_request (void *cls,
NULL, 0,
&TAH_delete_handler_generic,
MHD_HTTP_OK, true,
- .table = TALER_AUDITORDB_FEE_TIME_INCONSISTENCY },
+ .table = TALER_AUDITORDB_FEE_TIME_INCONSISTENCY },
{ "/monitoring/fee-time-inconsistency", MHD_HTTP_METHOD_PATCH,
"application/json",
NULL, 0,
&TAH_patch_handler_generic_suppressed,
MHD_HTTP_OK, true,
- .table = TALER_AUDITORDB_FEE_TIME_INCONSISTENCY },
+ .table = TALER_AUDITORDB_FEE_TIME_INCONSISTENCY },
{ "/monitoring/balances", MHD_HTTP_METHOD_GET,
"application/json",
NULL, 0,
@@ -893,7 +895,7 @@ not_found:
}
#define NOT_FOUND \
- "<html><title>404: not found</title><body>auditor endpoints have been moved to /monitoring/...</body></html>"
+ "<html><title>404: not found</title><body>auditor endpoints have been moved to /monitoring/...</body></html>"
return TALER_MHD_reply_static (connection,
MHD_HTTP_NOT_FOUND,
"text/html",
@@ -913,14 +915,16 @@ static enum GNUNET_GenericReturnValue
auditor_serve_process_config (void)
{
if (NULL ==
- (TAH_plugin = TALER_AUDITORDB_plugin_load (cfg)))
+ (TAH_plugin = TALER_AUDITORDB_plugin_load (cfg,
+ false)))
{
GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
"Failed to initialize DB subsystem to interact with auditor database\n");
return GNUNET_SYSERR;
}
if (NULL ==
- (TAH_eplugin = TALER_EXCHANGEDB_plugin_load (cfg)))
+ (TAH_eplugin = TALER_EXCHANGEDB_plugin_load (cfg,
+ false)))
{
GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
"Failed to initialize DB subsystem to query exchange database\n");