aboutsummaryrefslogtreecommitdiff
path: root/src/auditor
diff options
context:
space:
mode:
authorNic Eigel <nic@eigel.ch>2024-09-20 15:14:04 +0200
committerNic Eigel <nic@eigel.ch>2024-09-20 15:14:04 +0200
commit011c0388a55c8069bc990c1c96e37e3861d449a2 (patch)
tree49c474583fb0936d0ae183dda2c25a99dedb0a31 /src/auditor
parent856915a9558fb44afab21fc229b09833b77e92c2 (diff)
auditor api switch to generic update
Diffstat (limited to 'src/auditor')
-rw-r--r--src/auditor/Makefile.am22
-rw-r--r--src/auditor/taler-auditor-httpd.c137
-rw-r--r--src/auditor/taler-auditor-httpd_amount-arithmetic-inconsistency-upd.c148
-rw-r--r--src/auditor/taler-auditor-httpd_amount-arithmetic-inconsistency-upd.h33
-rw-r--r--src/auditor/taler-auditor-httpd_bad-sig-losses-upd.c147
-rw-r--r--src/auditor/taler-auditor-httpd_bad-sig-losses-upd.h33
-rw-r--r--src/auditor/taler-auditor-httpd_closure-lags-upd.c147
-rw-r--r--src/auditor/taler-auditor-httpd_closure-lags-upd.h34
-rw-r--r--src/auditor/taler-auditor-httpd_coin-inconsistency-upd.c147
-rw-r--r--src/auditor/taler-auditor-httpd_coin-inconsistency-upd.h34
-rw-r--r--src/auditor/taler-auditor-httpd_denomination-key-validity-withdraw-inconsistency-upd.c149
-rw-r--r--src/auditor/taler-auditor-httpd_denomination-key-validity-withdraw-inconsistency-upd.h36
-rw-r--r--src/auditor/taler-auditor-httpd_denomination-pending-upd.c147
-rw-r--r--src/auditor/taler-auditor-httpd_denomination-pending-upd.h34
-rw-r--r--src/auditor/taler-auditor-httpd_denominations-without-sigs-upd.c147
-rw-r--r--src/auditor/taler-auditor-httpd_denominations-without-sigs-upd.h34
-rw-r--r--src/auditor/taler-auditor-httpd_deposit-confirmation-upd.c147
-rw-r--r--src/auditor/taler-auditor-httpd_deposit-confirmation-upd.h34
-rw-r--r--src/auditor/taler-auditor-httpd_emergency-by-count-upd.c147
-rw-r--r--src/auditor/taler-auditor-httpd_emergency-by-count-upd.h34
-rw-r--r--src/auditor/taler-auditor-httpd_emergency-upd.c147
-rw-r--r--src/auditor/taler-auditor-httpd_emergency-upd.h34
-rw-r--r--src/auditor/taler-auditor-httpd_fee-time-inconsistency-upd.c147
-rw-r--r--src/auditor/taler-auditor-httpd_fee-time-inconsistency-upd.h34
-rw-r--r--src/auditor/taler-auditor-httpd_misattribution-in-inconsistency-upd.c148
-rw-r--r--src/auditor/taler-auditor-httpd_misattribution-in-inconsistency-upd.h35
-rw-r--r--src/auditor/taler-auditor-httpd_patch_generic_suppressed.c1
-rw-r--r--src/auditor/taler-auditor-httpd_purse-not-closed-inconsistencies-upd.c148
-rw-r--r--src/auditor/taler-auditor-httpd_purse-not-closed-inconsistencies-upd.h35
-rw-r--r--src/auditor/taler-auditor-httpd_refreshes-hanging-upd.c147
-rw-r--r--src/auditor/taler-auditor-httpd_refreshes-hanging-upd.h34
-rw-r--r--src/auditor/taler-auditor-httpd_reserve-balance-insufficient-inconsistency-upd.c148
-rw-r--r--src/auditor/taler-auditor-httpd_reserve-balance-insufficient-inconsistency-upd.h42
-rw-r--r--src/auditor/taler-auditor-httpd_reserve-balance-summary-wrong-inconsistency-upd.c148
-rw-r--r--src/auditor/taler-auditor-httpd_reserve-balance-summary-wrong-inconsistency-upd.h44
-rw-r--r--src/auditor/taler-auditor-httpd_reserve-in-inconsistency-upd.c147
-rw-r--r--src/auditor/taler-auditor-httpd_reserve-in-inconsistency-upd.h34
-rw-r--r--src/auditor/taler-auditor-httpd_reserve-not-closed-inconsistency-upd.c148
-rw-r--r--src/auditor/taler-auditor-httpd_reserve-not-closed-inconsistency-upd.h35
-rw-r--r--src/auditor/taler-auditor-httpd_row-inconsistency-upd.c147
-rw-r--r--src/auditor/taler-auditor-httpd_row-inconsistency-upd.h34
-rw-r--r--src/auditor/taler-auditor-httpd_row-minor-inconsistencies-upd.c147
-rw-r--r--src/auditor/taler-auditor-httpd_row-minor-inconsistencies-upd.h34
-rw-r--r--src/auditor/taler-auditor-httpd_wire-format-inconsistency-upd.c147
-rw-r--r--src/auditor/taler-auditor-httpd_wire-format-inconsistency-upd.h34
-rw-r--r--src/auditor/taler-auditor-httpd_wire-out-inconsistency-upd.c147
-rw-r--r--src/auditor/taler-auditor-httpd_wire-out-inconsistency-upd.h34
47 files changed, 55 insertions, 4116 deletions
diff --git a/src/auditor/Makefile.am b/src/auditor/Makefile.am
index c1035fad3..99a10fcd2 100644
--- a/src/auditor/Makefile.am
+++ b/src/auditor/Makefile.am
@@ -195,11 +195,9 @@ taler_auditor_httpd_SOURCES = \
taler-auditor-httpd_spa.c taler-auditor-httpd_spa.h \
taler-auditor-httpd_deposit-confirmation.c taler-auditor-httpd_deposit-confirmation.h \
taler-auditor-httpd_deposit-confirmation-get.c taler-auditor-httpd_deposit-confirmation-get.h \
- taler-auditor-httpd_deposit-confirmation-upd.c taler-auditor-httpd_deposit-confirmation-upd.h \
taler-auditor-httpd_amount-arithmetic-inconsistency-get.c taler-auditor-httpd_amount-arithmetic-inconsistency-get.h \
taler-auditor-httpd_coin-inconsistency-get.c taler-auditor-httpd_coin-inconsistency-get.h \
taler-auditor-httpd_row-inconsistency-get.c taler-auditor-httpd_row-inconsistency-get.h \
- taler-auditor-httpd_amount-arithmetic-inconsistency-upd.c taler-auditor-httpd_amount-arithmetic-inconsistency-upd.h \
taler-auditor-httpd_emergency-get.c taler-auditor-httpd_emergency-get.h \
taler-auditor-httpd_emergency-by-count-get.c taler-auditor-httpd_emergency-by-count-get.h \
taler-auditor-httpd_denomination-key-validity-withdraw-inconsistency-get.c taler-auditor-httpd_denomination-key-validity-withdraw-inconsistency-get.h \
@@ -208,43 +206,23 @@ taler_auditor_httpd_SOURCES = \
taler-auditor-httpd_patch_generic_suppressed.c taler-auditor-httpd_patch_generic_suppressed.h \
taler-auditor-httpd_delete_generic.c taler-auditor-httpd_delete_generic.h \
taler-auditor-httpd_bad-sig-losses-get.c taler-auditor-httpd_bad-sig-losses-get.h \
- taler-auditor-httpd_bad-sig-losses-upd.c taler-auditor-httpd_bad-sig-losses-upd.h \
taler-auditor-httpd_closure-lags-get.c taler-auditor-httpd_closure-lags-get.h \
taler-auditor-httpd_progress-get.c taler-auditor-httpd_progress-get.h \
taler-auditor-httpd_refreshes-hanging-get.c taler-auditor-httpd_refreshes-hanging-get.h \
- taler-auditor-httpd_emergency-by-count-upd.c taler-auditor-httpd_emergency-by-count-upd.h \
- taler-auditor-httpd_row-inconsistency-upd.c taler-auditor-httpd_row-inconsistency-upd.h \
- taler-auditor-httpd_purse-not-closed-inconsistencies-upd.c taler-auditor-httpd_purse-not-closed-inconsistencies-upd.h \
- taler-auditor-httpd_reserve-balance-insufficient-inconsistency-upd.c taler-auditor-httpd_reserve-balance-insufficient-inconsistency-upd.h \
- taler-auditor-httpd_coin-inconsistency-upd.c taler-auditor-httpd_coin-inconsistency-upd.h \
- taler-auditor-httpd_denomination-key-validity-withdraw-inconsistency-upd.c taler-auditor-httpd_denomination-key-validity-withdraw-inconsistency-upd.h \
- taler-auditor-httpd_refreshes-hanging-upd.c taler-auditor-httpd_refreshes-hanging-upd.h \
- taler-auditor-httpd_emergency-upd.c taler-auditor-httpd_emergency-upd.h \
- taler-auditor-httpd_closure-lags-upd.c taler-auditor-httpd_closure-lags-upd.h \
taler-auditor-httpd_reserve-in-inconsistency-get.c taler-auditor-httpd_reserve-in-inconsistency-get.h \
- taler-auditor-httpd_reserve-in-inconsistency-upd.c taler-auditor-httpd_reserve-in-inconsistency-upd.h \
taler-auditor-httpd_reserve-not-closed-inconsistency-get.c taler-auditor-httpd_reserve-not-closed-inconsistency-get.h \
- taler-auditor-httpd_reserve-not-closed-inconsistency-upd.c taler-auditor-httpd_reserve-not-closed-inconsistency-upd.h \
taler-auditor-httpd_denominations-without-sigs-get.c taler-auditor-httpd_denominations-without-sigs-get.h \
- taler-auditor-httpd_denominations-without-sigs-upd.c taler-auditor-httpd_denominations-without-sigs-upd.h \
taler-auditor-httpd_misattribution-in-inconsistency-get.c taler-auditor-httpd_misattribution-in-inconsistency-get.h \
- taler-auditor-httpd_misattribution-in-inconsistency-upd.c taler-auditor-httpd_misattribution-in-inconsistency-upd.h \
taler-auditor-httpd_reserves-get.c taler-auditor-httpd_reserves-get.h \
taler-auditor-httpd_purses-get.c taler-auditor-httpd_purses-get.h \
taler-auditor-httpd_historic-denomination-revenue-get.c taler-auditor-httpd_historic-denomination-revenue-get.h \
taler-auditor-httpd_denomination-pending-get.c taler-auditor-httpd_denomination-pending-get.h \
- taler-auditor-httpd_denomination-pending-upd.c taler-auditor-httpd_denomination-pending-upd.h \
taler-auditor-httpd_historic-reserve-summary-get.c taler-auditor-httpd_historic-reserve-summary-get.h \
taler-auditor-httpd_wire-format-inconsistency-get.c taler-auditor-httpd_wire-format-inconsistency-get.h \
- taler-auditor-httpd_wire-format-inconsistency-upd.c taler-auditor-httpd_wire-format-inconsistency-upd.h \
taler-auditor-httpd_wire-out-inconsistency-get.c taler-auditor-httpd_wire-out-inconsistency-get.h \
- taler-auditor-httpd_wire-out-inconsistency-upd.c taler-auditor-httpd_wire-out-inconsistency-upd.h \
taler-auditor-httpd_reserve-balance-summary-wrong-inconsistency-get.c taler-auditor-httpd_reserve-balance-summary-wrong-inconsistency-get.h \
- taler-auditor-httpd_reserve-balance-summary-wrong-inconsistency-upd.c taler-auditor-httpd_reserve-balance-summary-wrong-inconsistency-upd.h \
taler-auditor-httpd_row-minor-inconsistencies-get.c taler-auditor-httpd_row-minor-inconsistencies-get.h \
- taler-auditor-httpd_row-minor-inconsistencies-upd.c taler-auditor-httpd_row-minor-inconsistencies-upd.h \
taler-auditor-httpd_fee-time-inconsistency-get.c taler-auditor-httpd_fee-time-inconsistency-get.h \
- taler-auditor-httpd_fee-time-inconsistency-upd.c taler-auditor-httpd_fee-time-inconsistency-upd.h \
taler-auditor-httpd_balances-get.c taler-auditor-httpd_balances-get.h \
taler-auditor-httpd_mhd.c taler-auditor-httpd_mhd.h
taler_auditor_httpd_LDADD = \
diff --git a/src/auditor/taler-auditor-httpd.c b/src/auditor/taler-auditor-httpd.c
index b681543cb..3ae0176b5 100644
--- a/src/auditor/taler-auditor-httpd.c
+++ b/src/auditor/taler-auditor-httpd.c
@@ -34,81 +34,35 @@
#include "taler-auditor-httpd_deposit-confirmation.h"
#include "taler-auditor-httpd_deposit-confirmation-get.h"
#include "taler-auditor-httpd_amount-arithmetic-inconsistency-get.h"
-#include "taler-auditor-httpd_amount-arithmetic-inconsistency-upd.h"
#include "taler-auditor-httpd_coin-inconsistency-get.h"
#include "taler-auditor-httpd_row-inconsistency-get.h"
-
#include "taler-auditor-httpd_emergency-get.h"
-
#include "taler-auditor-httpd_emergency-by-count-get.h"
-
#include \
"taler-auditor-httpd_denomination-key-validity-withdraw-inconsistency-get.h"
-
#include "taler-auditor-httpd_purse-not-closed-inconsistencies-get.h"
-
#include "taler-auditor-httpd_reserve-balance-insufficient-inconsistency-get.h"
-
#include "taler-auditor-httpd_bad-sig-losses-get.h"
-#include "taler-auditor-httpd_bad-sig-losses-upd.h"
-
#include "taler-auditor-httpd_closure-lags-get.h"
-
#include "taler-auditor-httpd_refreshes-hanging-get.h"
-
#include "taler-auditor-httpd_mhd.h"
#include "taler-auditor-httpd.h"
-
#include "taler-auditor-httpd_delete_generic.h"
#include "taler-auditor-httpd_patch_generic_suppressed.h"
-#include "taler-auditor-httpd_emergency-by-count-upd.h"
-#include "taler-auditor-httpd_row-inconsistency-upd.h"
-#include "taler-auditor-httpd_purse-not-closed-inconsistencies-upd.h"
-#include "taler-auditor-httpd_reserve-balance-insufficient-inconsistency-upd.h"
-#include "taler-auditor-httpd_coin-inconsistency-upd.h"
-#include \
- "taler-auditor-httpd_denomination-key-validity-withdraw-inconsistency-upd.h"
-#include "taler-auditor-httpd_refreshes-hanging-upd.h"
-#include "taler-auditor-httpd_emergency-upd.h"
-#include "taler-auditor-httpd_closure-lags-upd.h"
-#include "taler-auditor-httpd_row-minor-inconsistencies-upd.h"
-
#include "taler-auditor-httpd_reserve-in-inconsistency-get.h"
-#include "taler-auditor-httpd_reserve-in-inconsistency-upd.h"
-
#include "taler-auditor-httpd_reserve-not-closed-inconsistency-get.h"
-#include "taler-auditor-httpd_reserve-not-closed-inconsistency-upd.h"
-
#include "taler-auditor-httpd_denominations-without-sigs-get.h"
-#include "taler-auditor-httpd_denominations-without-sigs-upd.h"
-
#include "taler-auditor-httpd_misattribution-in-inconsistency-get.h"
-#include "taler-auditor-httpd_misattribution-in-inconsistency-upd.h"
-
#include "taler-auditor-httpd_reserves-get.h"
#include "taler-auditor-httpd_purses-get.h"
-
#include "taler-auditor-httpd_historic-denomination-revenue-get.h"
#include "taler-auditor-httpd_historic-reserve-summary-get.h"
-
#include "taler-auditor-httpd_denomination-pending-get.h"
-#include "taler-auditor-httpd_denomination-pending-upd.h"
-
#include "taler-auditor-httpd_wire-format-inconsistency-get.h"
-#include "taler-auditor-httpd_wire-format-inconsistency-upd.h"
-
#include "taler-auditor-httpd_wire-out-inconsistency-get.h"
-#include "taler-auditor-httpd_wire-out-inconsistency-upd.h"
-
#include "taler-auditor-httpd_reserve-balance-summary-wrong-inconsistency-get.h"
-#include "taler-auditor-httpd_reserve-balance-summary-wrong-inconsistency-upd.h"
-
#include "taler-auditor-httpd_row-minor-inconsistencies-get.h"
-#include "taler-auditor-httpd_row-minor-inconsistencies-upd.h"
-
#include "taler-auditor-httpd_fee-time-inconsistency-get.h"
-#include "taler-auditor-httpd_fee-time-inconsistency-upd.h"
-
#include "taler-auditor-httpd_balances-get.h"
#include "taler-auditor-httpd_progress-get.h"
@@ -432,7 +386,8 @@ handle_mhd_request (void *cls,
{ "/monitoring/coin-inconsistency", MHD_HTTP_METHOD_PATCH,
"application/json",
NULL, 0,
- &TAH_COIN_INCONSISTENCY_handler_update, MHD_HTTP_OK, true },
+ &TAH_patch_handler_generic_suppressed, MHD_HTTP_OK, true,
+ .table = TALER_AUDITORDB_COIN_INCONSISTENCY },
{ "/monitoring/row-inconsistency", MHD_HTTP_METHOD_GET,
"application/json",
NULL, 0,
@@ -445,7 +400,8 @@ handle_mhd_request (void *cls,
{ "/monitoring/row-inconsistency", MHD_HTTP_METHOD_PATCH,
"application/json",
NULL, 0,
- &TAH_ROW_INCONSISTENCY_handler_update, MHD_HTTP_OK, true },
+ &TAH_patch_handler_generic_suppressed, MHD_HTTP_OK, true,
+ .table = TALER_AUDITORDB_ROW_INCONSISTENCY },
{ "/monitoring/bad-sig-losses", MHD_HTTP_METHOD_GET,
"application/json",
NULL, 0,
@@ -460,8 +416,9 @@ handle_mhd_request (void *cls,
{ "/monitoring/bad-sig-losses", MHD_HTTP_METHOD_PATCH,
"application/json",
NULL, 0,
- &TAH_BAD_SIG_LOSSES_handler_update,
- MHD_HTTP_OK, true },
+ &TAH_patch_handler_generic_suppressed,
+ MHD_HTTP_OK, true,
+ .table = TALER_AUDITORDB_BAD_SIG_LOSSES },
{ "/monitoring/closure-lags", MHD_HTTP_METHOD_GET,
"application/json",
NULL, 0,
@@ -476,8 +433,9 @@ handle_mhd_request (void *cls,
{ "/monitoring/closure-lags", MHD_HTTP_METHOD_PATCH,
"application/json",
NULL, 0,
- &TAH_CLOSURE_LAGS_handler_update,
- MHD_HTTP_OK, true },
+ &TAH_patch_handler_generic_suppressed,
+ MHD_HTTP_OK, true,
+ .table = TALER_AUDITORDB_CLOSURE_LAGS },
{ "/monitoring/emergency", MHD_HTTP_METHOD_GET,
"application/json",
NULL, 0,
@@ -492,8 +450,9 @@ handle_mhd_request (void *cls,
{ "/monitoring/emergency", MHD_HTTP_METHOD_PATCH,
"application/json",
NULL, 0,
- &TAH_EMERGENCY_handler_update,
- MHD_HTTP_OK, true },
+ &TAH_patch_handler_generic_suppressed,
+ MHD_HTTP_OK, true,
+ .table = TALER_AUDITORDB_EMERGENCY },
{ "/monitoring/refreshes-hanging", MHD_HTTP_METHOD_GET,
"application/json",
NULL, 0,
@@ -508,8 +467,9 @@ handle_mhd_request (void *cls,
{ "/monitoring/refreshes-hanging", MHD_HTTP_METHOD_PATCH,
"application/json",
NULL, 0,
- &TAH_REFRESHES_HANGING_handler_update,
- MHD_HTTP_OK, true },
+ &TAH_patch_handler_generic_suppressed,
+ MHD_HTTP_OK, true,
+ .table = TALER_AUDITORDB_REFRESHES_HANGING },
{ "/monitoring/denomination-key-validity-withdraw-inconsistency",
MHD_HTTP_METHOD_GET,
"application/json",
@@ -527,8 +487,9 @@ handle_mhd_request (void *cls,
MHD_HTTP_METHOD_PATCH,
"application/json",
NULL, 0,
- &TAH_DENOMINATION_KEY_VALIDITY_WITHDRAW_INCONSISTENCY_handler_update,
- MHD_HTTP_OK, true },
+ &TAH_patch_handler_generic_suppressed,
+ MHD_HTTP_OK, true,
+ .table = TALER_AUDITORDB_DENOMINATION_KEY_VALIDITY_WITHDRAW_INCONSISTENCY },
{ "/monitoring/reserve-balance-insufficient-inconsistency",
MHD_HTTP_METHOD_GET,
"application/json",
@@ -546,8 +507,9 @@ handle_mhd_request (void *cls,
MHD_HTTP_METHOD_PATCH,
"application/json",
NULL, 0,
- &TAH_RESERVE_BALANCE_INSUFFICIENT_INCONSISTENCY_handler_update,
- MHD_HTTP_OK, true },
+ &TAH_patch_handler_generic_suppressed,
+ MHD_HTTP_OK, true,
+ .table = TALER_AUDITORDB_RESERVE_BALANCE_INSUFFICIENT_INCONSISTENCY },
{ "/monitoring/purse-not-closed-inconsistencies", MHD_HTTP_METHOD_GET,
"application/json",
NULL, 0,
@@ -562,8 +524,9 @@ handle_mhd_request (void *cls,
{ "/monitoring/purse-not-closed-inconsistencies", MHD_HTTP_METHOD_PATCH,
"application/json",
NULL, 0,
- &TAH_PURSE_NOT_CLOSED_INCONSISTENCIES_handler_update,
- MHD_HTTP_OK, true },
+ &TAH_patch_handler_generic_suppressed,
+ MHD_HTTP_OK, true,
+ .table = TALER_AUDITORDB_PURSE_NOT_CLOSED_INCONSISTENCY },
{ "/monitoring/emergency-by-count", MHD_HTTP_METHOD_GET,
"application/json",
NULL, 0,
@@ -578,8 +541,9 @@ handle_mhd_request (void *cls,
{ "/monitoring/emergency-by-count", MHD_HTTP_METHOD_PATCH,
"application/json",
NULL, 0,
- &TAH_EMERGENCY_BY_COUNT_handler_update,
- MHD_HTTP_OK, true },
+ &TAH_patch_handler_generic_suppressed,
+ MHD_HTTP_OK, true,
+ .table = TALER_AUDITORDB_EMERGENCY_BY_COUNT },
{ "/monitoring/reserve-in-inconsistency", MHD_HTTP_METHOD_GET,
"application/json",
NULL, 0,
@@ -594,8 +558,9 @@ handle_mhd_request (void *cls,
{ "/monitoring/reserve-in-inconsistency", MHD_HTTP_METHOD_PATCH,
"application/json",
NULL, 0,
- &TAH_RESERVE_IN_INCONSISTENCY_handler_update,
- MHD_HTTP_OK, true },
+ &TAH_patch_handler_generic_suppressed,
+ MHD_HTTP_OK, true,
+ .table = TALER_AUDITORDB_RESERVE_IN_INCONSISTENCY },
{ "/monitoring/reserve-not-closed-inconsistency", MHD_HTTP_METHOD_GET,
"application/json",
NULL, 0,
@@ -610,8 +575,9 @@ handle_mhd_request (void *cls,
{ "/monitoring/reserve-not-closed-inconsistency", MHD_HTTP_METHOD_PATCH,
"application/json",
NULL, 0,
- &TAH_RESERVE_NOT_CLOSED_INCONSISTENCY_handler_update,
- MHD_HTTP_OK, true },
+ &TAH_patch_handler_generic_suppressed,
+ MHD_HTTP_OK, true,
+ .table = TALER_AUDITORDB_RESERVE_NOT_CLOSED_INCONSISTENCY },
{ "/monitoring/denominations-without-sigs", MHD_HTTP_METHOD_GET,
"application/json",
NULL, 0,
@@ -626,8 +592,9 @@ handle_mhd_request (void *cls,
{ "/monitoring/denominations-without-sigs", MHD_HTTP_METHOD_PATCH,
"application/json",
NULL, 0,
- &TAH_DENOMINATIONS_WITHOUT_SIGS_handler_update,
- MHD_HTTP_OK, true },
+ &TAH_patch_handler_generic_suppressed,
+ MHD_HTTP_OK, true,
+ .table = TALER_AUDITORDB_DENOMINATIONS_WITHOUT_SIG },
{ "/monitoring/misattribution-in-inconsistency", MHD_HTTP_METHOD_GET,
"application/json",
NULL, 0,
@@ -642,8 +609,9 @@ handle_mhd_request (void *cls,
{ "/monitoring/misattribution-in-inconsistency", MHD_HTTP_METHOD_PATCH,
"application/json",
NULL, 0,
- &TAH_MISATTRIBUTION_IN_INCONSISTENCY_handler_update,
- MHD_HTTP_OK, true },
+ &TAH_patch_handler_generic_suppressed,
+ MHD_HTTP_OK, true,
+ .table = TALER_AUDITORDB_MISATTRIBUTION_IN_INCONSISTENCY },
{ "/monitoring/reserves", MHD_HTTP_METHOD_GET,
"application/json",
NULL, 0,
@@ -689,8 +657,9 @@ handle_mhd_request (void *cls,
{ "/monitoring/wire-format-inconsistency", MHD_HTTP_METHOD_PATCH,
"application/json",
NULL, 0,
- &TAH_WIRE_FORMAT_INCONSISTENCY_handler_update,
- MHD_HTTP_OK, true },
+ &TAH_patch_handler_generic_suppressed,
+ MHD_HTTP_OK, true,
+ .table = TALER_AUDITORDB_WIRE_FORMAT_INCONSISTENCY },
{ "/monitoring/wire-out-inconsistency", MHD_HTTP_METHOD_GET,
"application/json",
NULL, 0,
@@ -705,8 +674,9 @@ handle_mhd_request (void *cls,
{ "/monitoring/wire-out-inconsistency", MHD_HTTP_METHOD_PATCH,
"application/json",
NULL, 0,
- &TAH_WIRE_OUT_INCONSISTENCY_handler_update,
- MHD_HTTP_OK, true },
+ &TAH_patch_handler_generic_suppressed,
+ MHD_HTTP_OK, true,
+ .table = TALER_AUDITORDB_WIRE_OUT_INCONSISTENCY },
{ "/monitoring/reserve-balance-summary-wrong-inconsistency",
MHD_HTTP_METHOD_GET,
"application/json",
@@ -724,8 +694,9 @@ handle_mhd_request (void *cls,
MHD_HTTP_METHOD_PATCH,
"application/json",
NULL, 0,
- &TAH_RESERVE_BALANCE_SUMMARY_WRONG_INCONSISTENCY_handler_update,
- MHD_HTTP_OK, true },
+ &TAH_patch_handler_generic_suppressed,
+ MHD_HTTP_OK, true,
+ .table = TALER_AUDITORDB_RESERVE_BALANCE_SUMMARY_WRONG_INCONSISTENCY },
{ "/monitoring/row-minor-inconsistencies", MHD_HTTP_METHOD_GET,
"application/json",
NULL, 0,
@@ -740,8 +711,9 @@ handle_mhd_request (void *cls,
{ "/monitoring/row-minor-inconsistencies", MHD_HTTP_METHOD_PATCH,
"application/json",
NULL, 0,
- &TAH_ROW_MINOR_INCONSISTENCIES_handler_update,
- MHD_HTTP_OK, true },
+ &TAH_patch_handler_generic_suppressed,
+ MHD_HTTP_OK, true,
+ .table = TALER_AUDITORDB_ROW_MINOR_INCONSISTENCY },
{ "/monitoring/fee-time-inconsistency", MHD_HTTP_METHOD_GET,
"application/json",
NULL, 0,
@@ -756,8 +728,9 @@ handle_mhd_request (void *cls,
{ "/monitoring/fee-time-inconsistency", MHD_HTTP_METHOD_PATCH,
"application/json",
NULL, 0,
- &TAH_FEE_TIME_INCONSISTENCY_handler_update,
- MHD_HTTP_OK, true },
+ &TAH_patch_handler_generic_suppressed,
+ MHD_HTTP_OK, true,
+ .table = TALER_AUDITORDB_FEE_TIME_INCONSISTENCY },
{ "/monitoring/balances", MHD_HTTP_METHOD_GET,
"application/json",
NULL, 0,
diff --git a/src/auditor/taler-auditor-httpd_amount-arithmetic-inconsistency-upd.c b/src/auditor/taler-auditor-httpd_amount-arithmetic-inconsistency-upd.c
deleted file mode 100644
index 642307a2d..000000000
--- a/src/auditor/taler-auditor-httpd_amount-arithmetic-inconsistency-upd.c
+++ /dev/null
@@ -1,148 +0,0 @@
-/*
- This file is part of TALER
- Copyright (C) 2024 Taler Systems SA
-
- TALER is free software; you can redistribute it and/or modify it under the
- terms of the GNU General Public License as published by the Free Software
- Foundation; either version 3, or (at your option) any later version.
-
- TALER is distributed in the hope that it will be useful, but WITHOUT ANY
- WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
- A PARTICULAR PURPOSE. See the GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License along with
- TALER; see the file COPYING. If not, see <http://www.gnu.org/licenses/>
- */
-
-
-#include "platform.h"
-#include <gnunet/gnunet_util_lib.h>
-#include <gnunet/gnunet_json_lib.h>
-#include <jansson.h>
-#include <microhttpd.h>
-#include <pthread.h>
-#include "taler_json_lib.h"
-#include "taler_mhd_lib.h"
-#include "taler-auditor-httpd.h"
-#include "taler-auditor-httpd_amount-arithmetic-inconsistency-upd.h"
-
-MHD_RESULT
-TAH_AMOUNT_ARITHMETIC_INCONSISTENCY_handler_update (
- struct TAH_RequestHandler *rh,
- struct MHD_Connection *connection,
- void **connection_cls,
- const char *upload_data,
- size_t *upload_data_size,
- const char *const args[])
-{
- enum GNUNET_DB_QueryStatus qs;
-
- if (GNUNET_SYSERR ==
- TAH_plugin->preflight (TAH_plugin->cls))
- {
- GNUNET_break (0);
- return TALER_MHD_reply_with_error (connection,
- MHD_HTTP_INTERNAL_SERVER_ERROR,
- TALER_EC_GENERIC_DB_SETUP_FAILED,
- NULL);
- }
-
- uint64_t row_id;
-
- if (args[1] != NULL)
- row_id = atoi (args[1]);
- else
- return TALER_MHD_reply_with_error (connection,
- MHD_HTTP_BAD_REQUEST,
- TALER_EC_AUDITOR_RESOURCE_NOT_FOUND,
- "no row id specified");
-
-
- struct TALER_AUDITORDB_Generic_Update gu;
-
- gu.row_id = row_id;
-
- struct GNUNET_JSON_Specification spec[] = {
-
- // GNUNET_JSON_spec_uint64 ("row_id", &gu.row_id),
- GNUNET_JSON_spec_bool ("suppressed", &gu.suppressed),
-
- GNUNET_JSON_spec_end ()
- };
-
- json_t *json;
-
- (void) rh;
- (void) connection_cls;
- (void) upload_data;
- (void) upload_data_size;
- {
- enum GNUNET_GenericReturnValue res;
-
- res = TALER_MHD_parse_post_json (connection,
- connection_cls,
- upload_data,
- upload_data_size,
- &json);
- if (GNUNET_SYSERR == res)
- return MHD_NO;
- if ((GNUNET_NO == res) ||
- (NULL == json))
- return MHD_YES;
- res = TALER_MHD_parse_json_data (connection,
- json,
- spec);
- if (GNUNET_SYSERR == res)
- {
- json_decref (json);
- return MHD_NO; /* hard failure */
- }
- if (GNUNET_NO == res)
- {
- json_decref (json);
- return MHD_YES; /* failure */
- }
- }
-
- /* execute transaction */
- qs = TAH_plugin->update_amount_arithmetic_inconsistency (TAH_plugin->cls,
- &gu);
-
- GNUNET_JSON_parse_free (spec);
- json_decref (json);
-
- MHD_RESULT ret = MHD_NO;
-
- switch (qs)
- {
- case GNUNET_DB_STATUS_HARD_ERROR:
- GNUNET_break (0);
- ret = TALER_MHD_reply_with_error (connection,
- MHD_HTTP_INTERNAL_SERVER_ERROR,
- TALER_EC_GENERIC_DB_STORE_FAILED,
- "update_account");
- break;
- case GNUNET_DB_STATUS_SOFT_ERROR:
- GNUNET_break (0);
- ret = TALER_MHD_reply_with_error (connection,
- MHD_HTTP_INTERNAL_SERVER_ERROR,
- TALER_EC_GENERIC_INTERNAL_INVARIANT_FAILURE,
- "unexpected serialization problem");
- break;
- case GNUNET_DB_STATUS_SUCCESS_NO_RESULTS:
- return TALER_MHD_reply_with_error (connection,
- MHD_HTTP_NOT_FOUND,
- TALER_EC_AUDITOR_RESOURCE_NOT_FOUND,
- "no updates executed");
- break;
- case GNUNET_DB_STATUS_SUCCESS_ONE_RESULT:
- ret = TALER_MHD_reply_static (connection,
- MHD_HTTP_NO_CONTENT,
- NULL,
- NULL,
- 0);
- break;
- }
-
- return ret;
-}
diff --git a/src/auditor/taler-auditor-httpd_amount-arithmetic-inconsistency-upd.h b/src/auditor/taler-auditor-httpd_amount-arithmetic-inconsistency-upd.h
deleted file mode 100644
index bbda9d3cd..000000000
--- a/src/auditor/taler-auditor-httpd_amount-arithmetic-inconsistency-upd.h
+++ /dev/null
@@ -1,33 +0,0 @@
-/*
- This file is part of TALER
- Copyright (C) 2024 Taler Systems SA
-
- TALER is free software; you can redistribute it and/or modify it under the
- terms of the GNU General Public License as published by the Free Software
- Foundation; either version 3, or (at your option) any later version.
-
- TALER is distributed in the hope that it will be useful, but WITHOUT ANY
- WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
- A PARTICULAR PURPOSE. See the GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License along with
- TALER; see the file COPYING. If not, see <http://www.gnu.org/licenses/>
- */
-
-#ifndef SRC_TALER_AUDITOR_HTTPD_AMOUNT_ARITHMETIC_INCONSISTENCY_UPD_H
-#define SRC_TALER_AUDITOR_HTTPD_AMOUNT_ARITHMETIC_INCONSISTENCY_UPD_H
-
-
-#include <microhttpd.h>
-#include "taler-auditor-httpd.h"
-
-MHD_RESULT
-TAH_AMOUNT_ARITHMETIC_INCONSISTENCY_handler_update (
- struct TAH_RequestHandler *rh,
- struct MHD_Connection *connection,
- void **connection_cls,
- const char *upload_data,
- size_t *upload_data_size,
- const char *const args[]);
-
-#endif
diff --git a/src/auditor/taler-auditor-httpd_bad-sig-losses-upd.c b/src/auditor/taler-auditor-httpd_bad-sig-losses-upd.c
deleted file mode 100644
index 1be070766..000000000
--- a/src/auditor/taler-auditor-httpd_bad-sig-losses-upd.c
+++ /dev/null
@@ -1,147 +0,0 @@
-/*
- This file is part of TALER
- Copyright (C) 2024 Taler Systems SA
-
- TALER is free software; you can redistribute it and/or modify it under the
- terms of the GNU General Public License as published by the Free Software
- Foundation; either version 3, or (at your option) any later version.
-
- TALER is distributed in the hope that it will be useful, but WITHOUT ANY
- WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
- A PARTICULAR PURPOSE. See the GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License along with
- TALER; see the file COPYING. If not, see <http://www.gnu.org/licenses/>
- */
-
-
-#include "platform.h"
-#include <gnunet/gnunet_util_lib.h>
-#include <gnunet/gnunet_json_lib.h>
-#include <jansson.h>
-#include <microhttpd.h>
-#include <pthread.h>
-#include "taler_json_lib.h"
-#include "taler_mhd_lib.h"
-#include "taler-auditor-httpd.h"
-#include "taler-auditor-httpd_bad-sig-losses-upd.h"
-
-MHD_RESULT
-TAH_BAD_SIG_LOSSES_handler_update (
- struct TAH_RequestHandler *rh,
- struct MHD_Connection *connection,
- void **connection_cls,
- const char *upload_data,
- size_t *upload_data_size,
- const char *const args[])
-{
- enum GNUNET_DB_QueryStatus qs;
-
- if (GNUNET_SYSERR ==
- TAH_plugin->preflight (TAH_plugin->cls))
- {
- GNUNET_break (0);
- return TALER_MHD_reply_with_error (connection,
- MHD_HTTP_INTERNAL_SERVER_ERROR,
- TALER_EC_GENERIC_DB_SETUP_FAILED,
- NULL);
- }
-
- uint64_t row_id;
-
- if (args[2] != NULL)
- row_id = atoi (args[2]);
- else
- return TALER_MHD_reply_with_error (connection,
- MHD_HTTP_BAD_REQUEST,
- TALER_EC_AUDITOR_RESOURCE_NOT_FOUND,
- "no row id specified");
-
-
- struct TALER_AUDITORDB_Generic_Update gu;
-
- gu.row_id = row_id;
-
- struct GNUNET_JSON_Specification spec[] = {
-
- // GNUNET_JSON_spec_uint64 ("row_id", &gu.row_id),
- GNUNET_JSON_spec_bool ("suppressed", &gu.suppressed),
-
- GNUNET_JSON_spec_end ()
- };
-
- json_t *json;
-
- (void) rh;
- (void) connection_cls;
- (void) upload_data;
- (void) upload_data_size;
- {
- enum GNUNET_GenericReturnValue res;
-
- res = TALER_MHD_parse_post_json (connection,
- connection_cls,
- upload_data,
- upload_data_size,
- &json);
- if (GNUNET_SYSERR == res)
- return MHD_NO;
- if ((GNUNET_NO == res) ||
- (NULL == json))
- return MHD_YES;
- res = TALER_MHD_parse_json_data (connection,
- json,
- spec);
- if (GNUNET_SYSERR == res)
- {
- json_decref (json);
- return MHD_NO; /* hard failure */
- }
- if (GNUNET_NO == res)
- {
- json_decref (json);
- return MHD_YES; /* failure */
- }
- }
-
- /* execute transaction */
- qs = TAH_plugin->update_bad_sig_losses (TAH_plugin->cls, &gu);
-
- GNUNET_JSON_parse_free (spec);
- json_decref (json);
-
- MHD_RESULT ret = MHD_NO;
-
- switch (qs)
- {
- case GNUNET_DB_STATUS_HARD_ERROR:
- GNUNET_break (0);
- ret = TALER_MHD_reply_with_error (connection,
- MHD_HTTP_INTERNAL_SERVER_ERROR,
- TALER_EC_GENERIC_DB_STORE_FAILED,
- "update_account");
- break;
- case GNUNET_DB_STATUS_SOFT_ERROR:
- GNUNET_break (0);
- ret = TALER_MHD_reply_with_error (connection,
- MHD_HTTP_INTERNAL_SERVER_ERROR,
- TALER_EC_GENERIC_INTERNAL_INVARIANT_FAILURE,
- "unexpected serialization problem");
- break;
- case GNUNET_DB_STATUS_SUCCESS_NO_RESULTS:
- return TALER_MHD_reply_with_error (connection,
- MHD_HTTP_NOT_FOUND,
- TALER_EC_AUDITOR_RESOURCE_NOT_FOUND,
- "no updates executed");
- break;
- case GNUNET_DB_STATUS_SUCCESS_ONE_RESULT:
- ret = TALER_MHD_reply_static (connection,
- MHD_HTTP_NO_CONTENT,
- NULL,
- NULL,
- 0);
- break;
- }
-
- return ret;
-}
diff --git a/src/auditor/taler-auditor-httpd_bad-sig-losses-upd.h b/src/auditor/taler-auditor-httpd_bad-sig-losses-upd.h
deleted file mode 100644
index 9ab5bfbc0..000000000
--- a/src/auditor/taler-auditor-httpd_bad-sig-losses-upd.h
+++ /dev/null
@@ -1,33 +0,0 @@
-/*
- This file is part of TALER
- Copyright (C) 2024 Taler Systems SA
-
- TALER is free software; you can redistribute it and/or modify it under the
- terms of the GNU General Public License as published by the Free Software
- Foundation; either version 3, or (at your option) any later version.
-
- TALER is distributed in the hope that it will be useful, but WITHOUT ANY
- WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
- A PARTICULAR PURPOSE. See the GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License along with
- TALER; see the file COPYING. If not, see <http://www.gnu.org/licenses/>
- */
-
-#ifndef SRC_TALER_AUDITOR_HTTPD_BAD_SIG_LOSSES_UPD_H
-#define SRC_TALER_AUDITOR_HTTPD_BAD_SIG_LOSSES_UPD_H
-
-
-#include <microhttpd.h>
-#include "taler-auditor-httpd.h"
-
-MHD_RESULT
-TAH_BAD_SIG_LOSSES_handler_update (struct TAH_RequestHandler *rh,
- struct MHD_Connection *
- connection,
- void **connection_cls,
- const char *upload_data,
- size_t *upload_data_size,
- const char *const args[]);
-
-#endif // SRC_TALER_AUDITOR_HTTPD_BAD_SIG_LOSSES_UPD_H
diff --git a/src/auditor/taler-auditor-httpd_closure-lags-upd.c b/src/auditor/taler-auditor-httpd_closure-lags-upd.c
deleted file mode 100644
index 9b043f974..000000000
--- a/src/auditor/taler-auditor-httpd_closure-lags-upd.c
+++ /dev/null
@@ -1,147 +0,0 @@
-/*
- This file is part of TALER
- Copyright (C) 2024 Taler Systems SA
-
- TALER is free software; you can redistribute it and/or modify it under the
- terms of the GNU General Public License as published by the Free Software
- Foundation; either version 3, or (at your option) any later version.
-
- TALER is distributed in the hope that it will be useful, but WITHOUT ANY
- WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
- A PARTICULAR PURPOSE. See the GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License along with
- TALER; see the file COPYING. If not, see <http://www.gnu.org/licenses/>
- */
-
-
-#include "platform.h"
-#include <gnunet/gnunet_util_lib.h>
-#include <gnunet/gnunet_json_lib.h>
-#include <jansson.h>
-#include <microhttpd.h>
-#include <pthread.h>
-#include "taler_json_lib.h"
-#include "taler_mhd_lib.h"
-#include "taler-auditor-httpd.h"
-#include "taler-auditor-httpd_closure-lags-upd.h"
-
-MHD_RESULT
-TAH_CLOSURE_LAGS_handler_update (
- struct TAH_RequestHandler *rh,
- struct MHD_Connection *connection,
- void **connection_cls,
- const char *upload_data,
- size_t *upload_data_size,
- const char *const args[])
-{
- enum GNUNET_DB_QueryStatus qs;
-
- if (GNUNET_SYSERR ==
- TAH_plugin->preflight (TAH_plugin->cls))
- {
- GNUNET_break (0);
- return TALER_MHD_reply_with_error (connection,
- MHD_HTTP_INTERNAL_SERVER_ERROR,
- TALER_EC_GENERIC_DB_SETUP_FAILED,
- NULL);
- }
-
- uint64_t row_id;
-
- if (args[2] != NULL)
- row_id = atoi (args[2]);
- else
- return TALER_MHD_reply_with_error (connection,
- MHD_HTTP_BAD_REQUEST,
- TALER_EC_AUDITOR_RESOURCE_NOT_FOUND,
- "no row id specified");
-
-
- struct TALER_AUDITORDB_Generic_Update gu;
-
- gu.row_id = row_id;
-
- struct GNUNET_JSON_Specification spec[] = {
-
- // GNUNET_JSON_spec_uint64 ("row_id", &gu.row_id),
- GNUNET_JSON_spec_bool ("suppressed", &gu.suppressed),
-
- GNUNET_JSON_spec_end ()
- };
-
- json_t *json;
-
- (void) rh;
- (void) connection_cls;
- (void) upload_data;
- (void) upload_data_size;
- {
- enum GNUNET_GenericReturnValue res;
-
- res = TALER_MHD_parse_post_json (connection,
- connection_cls,
- upload_data,
- upload_data_size,
- &json);
- if (GNUNET_SYSERR == res)
- return MHD_NO;
- if ((GNUNET_NO == res) ||
- (NULL == json))
- return MHD_YES;
- res = TALER_MHD_parse_json_data (connection,
- json,
- spec);
- if (GNUNET_SYSERR == res)
- {
- json_decref (json);
- return MHD_NO; /* hard failure */
- }
- if (GNUNET_NO == res)
- {
- json_decref (json);
- return MHD_YES; /* failure */
- }
- }
-
- /* execute transaction */
- qs = TAH_plugin->update_closure_lags (TAH_plugin->cls, &gu);
-
- GNUNET_JSON_parse_free (spec);
- json_decref (json);
-
- MHD_RESULT ret = MHD_NO;
-
- switch (qs)
- {
- case GNUNET_DB_STATUS_HARD_ERROR:
- GNUNET_break (0);
- ret = TALER_MHD_reply_with_error (connection,
- MHD_HTTP_INTERNAL_SERVER_ERROR,
- TALER_EC_GENERIC_DB_STORE_FAILED,
- "update_account");
- break;
- case GNUNET_DB_STATUS_SOFT_ERROR:
- GNUNET_break (0);
- ret = TALER_MHD_reply_with_error (connection,
- MHD_HTTP_INTERNAL_SERVER_ERROR,
- TALER_EC_GENERIC_INTERNAL_INVARIANT_FAILURE,
- "unexpected serialization problem");
- break;
- case GNUNET_DB_STATUS_SUCCESS_NO_RESULTS:
- return TALER_MHD_reply_with_error (connection,
- MHD_HTTP_NOT_FOUND,
- TALER_EC_AUDITOR_RESOURCE_NOT_FOUND,
- "no updates executed");
- break;
- case GNUNET_DB_STATUS_SUCCESS_ONE_RESULT:
- ret = TALER_MHD_reply_static (connection,
- MHD_HTTP_NO_CONTENT,
- NULL,
- NULL,
- 0);
- break;
- }
-
- return ret;
-}
diff --git a/src/auditor/taler-auditor-httpd_closure-lags-upd.h b/src/auditor/taler-auditor-httpd_closure-lags-upd.h
deleted file mode 100644
index b77146d12..000000000
--- a/src/auditor/taler-auditor-httpd_closure-lags-upd.h
+++ /dev/null
@@ -1,34 +0,0 @@
-/*
- This file is part of TALER
- Copyright (C) 2024 Taler Systems SA
-
- TALER is free software; you can redistribute it and/or modify it under the
- terms of the GNU General Public License as published by the Free Software
- Foundation; either version 3, or (at your option) any later version.
-
- TALER is distributed in the hope that it will be useful, but WITHOUT ANY
- WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
- A PARTICULAR PURPOSE. See the GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License along with
- TALER; see the file COPYING. If not, see <http://www.gnu.org/licenses/>
- */
-
-
-#ifndef SRC_TALER_AUDITOR_HTTPD_CLOSURE_LAGS_UPD_H
-#define SRC_TALER_AUDITOR_HTTPD_CLOSURE_LAGS_UPD_H
-
-
-#include <microhttpd.h>
-#include "taler-auditor-httpd.h"
-
-MHD_RESULT
-TAH_CLOSURE_LAGS_handler_update (
- struct TAH_RequestHandler *rh,
- struct MHD_Connection *connection,
- void **connection_cls,
- const char *upload_data,
- size_t *upload_data_size,
- const char *const args[]);
-
-#endif
diff --git a/src/auditor/taler-auditor-httpd_coin-inconsistency-upd.c b/src/auditor/taler-auditor-httpd_coin-inconsistency-upd.c
deleted file mode 100644
index 63dc00ca5..000000000
--- a/src/auditor/taler-auditor-httpd_coin-inconsistency-upd.c
+++ /dev/null
@@ -1,147 +0,0 @@
-/*
- This file is part of TALER
- Copyright (C) 2024 Taler Systems SA
-
- TALER is free software; you can redistribute it and/or modify it under the
- terms of the GNU General Public License as published by the Free Software
- Foundation; either version 3, or (at your option) any later version.
-
- TALER is distributed in the hope that it will be useful, but WITHOUT ANY
- WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
- A PARTICULAR PURPOSE. See the GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License along with
- TALER; see the file COPYING. If not, see <http://www.gnu.org/licenses/>
- */
-
-
-#include "platform.h"
-#include <gnunet/gnunet_util_lib.h>
-#include <gnunet/gnunet_json_lib.h>
-#include <jansson.h>
-#include <microhttpd.h>
-#include <pthread.h>
-#include "taler_json_lib.h"
-#include "taler_mhd_lib.h"
-#include "taler-auditor-httpd.h"
-#include "taler-auditor-httpd_coin-inconsistency-upd.h"
-
-MHD_RESULT
-TAH_COIN_INCONSISTENCY_handler_update (
- struct TAH_RequestHandler *rh,
- struct MHD_Connection *connection,
- void **connection_cls,
- const char *upload_data,
- size_t *upload_data_size,
- const char *const args[])
-{
- enum GNUNET_DB_QueryStatus qs;
-
- if (GNUNET_SYSERR ==
- TAH_plugin->preflight (TAH_plugin->cls))
- {
- GNUNET_break (0);
- return TALER_MHD_reply_with_error (connection,
- MHD_HTTP_INTERNAL_SERVER_ERROR,
- TALER_EC_GENERIC_DB_SETUP_FAILED,
- NULL);
- }
-
- uint64_t row_id;
-
- if (args[2] != NULL)
- row_id = atoi (args[2]);
- else
- return TALER_MHD_reply_with_error (connection,
- MHD_HTTP_BAD_REQUEST,
- TALER_EC_AUDITOR_RESOURCE_NOT_FOUND,
- "no row id specified");
-
-
- struct TALER_AUDITORDB_Generic_Update gu;
-
- gu.row_id = row_id;
-
- struct GNUNET_JSON_Specification spec[] = {
-
- // GNUNET_JSON_spec_uint64 ("row_id", &gu.row_id),
- GNUNET_JSON_spec_bool ("suppressed", &gu.suppressed),
-
- GNUNET_JSON_spec_end ()
- };
-
- json_t *json;
-
- (void) rh;
- (void) connection_cls;
- (void) upload_data;
- (void) upload_data_size;
- {
- enum GNUNET_GenericReturnValue res;
-
- res = TALER_MHD_parse_post_json (connection,
- connection_cls,
- upload_data,
- upload_data_size,
- &json);
- if (GNUNET_SYSERR == res)
- return MHD_NO;
- if ((GNUNET_NO == res) ||
- (NULL == json))
- return MHD_YES;
- res = TALER_MHD_parse_json_data (connection,
- json,
- spec);
- if (GNUNET_SYSERR == res)
- {
- json_decref (json);
- return MHD_NO; /* hard failure */
- }
- if (GNUNET_NO == res)
- {
- json_decref (json);
- return MHD_YES; /* failure */
- }
- }
-
- /* execute transaction */
- qs = TAH_plugin->update_coin_inconsistency (TAH_plugin->cls, &gu);
-
- GNUNET_JSON_parse_free (spec);
- json_decref (json);
-
- MHD_RESULT ret = MHD_NO;
-
- switch (qs)
- {
- case GNUNET_DB_STATUS_HARD_ERROR:
- GNUNET_break (0);
- ret = TALER_MHD_reply_with_error (connection,
- MHD_HTTP_INTERNAL_SERVER_ERROR,
- TALER_EC_GENERIC_DB_STORE_FAILED,
- "update_account");
- break;
- case GNUNET_DB_STATUS_SOFT_ERROR:
- GNUNET_break (0);
- ret = TALER_MHD_reply_with_error (connection,
- MHD_HTTP_INTERNAL_SERVER_ERROR,
- TALER_EC_GENERIC_INTERNAL_INVARIANT_FAILURE,
- "unexpected serialization problem");
- break;
- case GNUNET_DB_STATUS_SUCCESS_NO_RESULTS:
- return TALER_MHD_reply_with_error (connection,
- MHD_HTTP_NOT_FOUND,
- TALER_EC_AUDITOR_RESOURCE_NOT_FOUND,
- "no updates executed");
- break;
- case GNUNET_DB_STATUS_SUCCESS_ONE_RESULT:
- ret = TALER_MHD_reply_static (connection,
- MHD_HTTP_NO_CONTENT,
- NULL,
- NULL,
- 0);
- break;
- }
-
- return ret;
-}
diff --git a/src/auditor/taler-auditor-httpd_coin-inconsistency-upd.h b/src/auditor/taler-auditor-httpd_coin-inconsistency-upd.h
deleted file mode 100644
index f7a179ddf..000000000
--- a/src/auditor/taler-auditor-httpd_coin-inconsistency-upd.h
+++ /dev/null
@@ -1,34 +0,0 @@
-/*
- This file is part of TALER
- Copyright (C) 2024 Taler Systems SA
-
- TALER is free software; you can redistribute it and/or modify it under the
- terms of the GNU General Public License as published by the Free Software
- Foundation; either version 3, or (at your option) any later version.
-
- TALER is distributed in the hope that it will be useful, but WITHOUT ANY
- WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
- A PARTICULAR PURPOSE. See the GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License along with
- TALER; see the file COPYING. If not, see <http://www.gnu.org/licenses/>
- */
-
-
-#ifndef SRC_TALER_AUDITOR_HTTPD_COIN_INCONSISTENCY_UPD_H
-#define SRC_TALER_AUDITOR_HTTPD_COIN_INCONSISTENCY_UPD_H
-
-
-#include <microhttpd.h>
-#include "taler-auditor-httpd.h"
-
-MHD_RESULT
-TAH_COIN_INCONSISTENCY_handler_update (
- struct TAH_RequestHandler *rh,
- struct MHD_Connection *connection,
- void **connection_cls,
- const char *upload_data,
- size_t *upload_data_size,
- const char *const args[]);
-
-#endif
diff --git a/src/auditor/taler-auditor-httpd_denomination-key-validity-withdraw-inconsistency-upd.c b/src/auditor/taler-auditor-httpd_denomination-key-validity-withdraw-inconsistency-upd.c
deleted file mode 100644
index d83e701fb..000000000
--- a/src/auditor/taler-auditor-httpd_denomination-key-validity-withdraw-inconsistency-upd.c
+++ /dev/null
@@ -1,149 +0,0 @@
-/*
- This file is part of TALER
- Copyright (C) 2024 Taler Systems SA
-
- TALER is free software; you can redistribute it and/or modify it under the
- terms of the GNU General Public License as published by the Free Software
- Foundation; either version 3, or (at your option) any later version.
-
- TALER is distributed in the hope that it will be useful, but WITHOUT ANY
- WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
- A PARTICULAR PURPOSE. See the GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License along with
- TALER; see the file COPYING. If not, see <http://www.gnu.org/licenses/>
- */
-
-
-#include "platform.h"
-#include <gnunet/gnunet_util_lib.h>
-#include <gnunet/gnunet_json_lib.h>
-#include <jansson.h>
-#include <microhttpd.h>
-#include <pthread.h>
-#include "taler_json_lib.h"
-#include "taler_mhd_lib.h"
-#include "taler-auditor-httpd.h"
-#include \
- "taler-auditor-httpd_denomination-key-validity-withdraw-inconsistency-upd.h"
-
-MHD_RESULT
-TAH_DENOMINATION_KEY_VALIDITY_WITHDRAW_INCONSISTENCY_handler_update (
- struct TAH_RequestHandler *rh,
- struct MHD_Connection *connection,
- void **connection_cls,
- const char *upload_data,
- size_t *upload_data_size,
- const char *const args[])
-{
- enum GNUNET_DB_QueryStatus qs;
-
- if (GNUNET_SYSERR ==
- TAH_plugin->preflight (TAH_plugin->cls))
- {
- GNUNET_break (0);
- return TALER_MHD_reply_with_error (connection,
- MHD_HTTP_INTERNAL_SERVER_ERROR,
- TALER_EC_GENERIC_DB_SETUP_FAILED,
- NULL);
- }
-
- uint64_t row_id;
-
- if (args[2] != NULL)
- row_id = atoi (args[2]);
- else
- return TALER_MHD_reply_with_error (connection,
- MHD_HTTP_BAD_REQUEST,
- TALER_EC_AUDITOR_RESOURCE_NOT_FOUND,
- "no row id specified");
-
-
- struct TALER_AUDITORDB_Generic_Update gu;
-
- gu.row_id = row_id;
-
- struct GNUNET_JSON_Specification spec[] = {
-
- // GNUNET_JSON_spec_uint64 ("row_id", &gu.row_id),
- GNUNET_JSON_spec_bool ("suppressed", &gu.suppressed),
-
- GNUNET_JSON_spec_end ()
- };
-
- json_t *json;
-
- (void) rh;
- (void) connection_cls;
- (void) upload_data;
- (void) upload_data_size;
- {
- enum GNUNET_GenericReturnValue res;
-
- res = TALER_MHD_parse_post_json (connection,
- connection_cls,
- upload_data,
- upload_data_size,
- &json);
- if (GNUNET_SYSERR == res)
- return MHD_NO;
- if ((GNUNET_NO == res) ||
- (NULL == json))
- return MHD_YES;
- res = TALER_MHD_parse_json_data (connection,
- json,
- spec);
- if (GNUNET_SYSERR == res)
- {
- json_decref (json);
- return MHD_NO; /* hard failure */
- }
- if (GNUNET_NO == res)
- {
- json_decref (json);
- return MHD_YES; /* failure */
- }
- }
-
- /* execute transaction */
- qs = TAH_plugin->update_denomination_key_validity_withdraw_inconsistency (
- TAH_plugin->cls, &gu);
-
- GNUNET_JSON_parse_free (spec);
- json_decref (json);
-
- MHD_RESULT ret = MHD_NO;
-
- switch (qs)
- {
- case GNUNET_DB_STATUS_HARD_ERROR:
- GNUNET_break (0);
- ret = TALER_MHD_reply_with_error (connection,
- MHD_HTTP_INTERNAL_SERVER_ERROR,
- TALER_EC_GENERIC_DB_STORE_FAILED,
- "update_account");
- break;
- case GNUNET_DB_STATUS_SOFT_ERROR:
- GNUNET_break (0);
- ret = TALER_MHD_reply_with_error (connection,
- MHD_HTTP_INTERNAL_SERVER_ERROR,
- TALER_EC_GENERIC_INTERNAL_INVARIANT_FAILURE,
- "unexpected serialization problem");
- break;
- case GNUNET_DB_STATUS_SUCCESS_NO_RESULTS:
- return TALER_MHD_reply_with_error (connection,
- MHD_HTTP_NOT_FOUND,
- TALER_EC_AUDITOR_RESOURCE_NOT_FOUND,
- "no updates executed");
- break;
- case GNUNET_DB_STATUS_SUCCESS_ONE_RESULT:
- ret = TALER_MHD_reply_static (connection,
- MHD_HTTP_NO_CONTENT,
- NULL,
- NULL,
- 0);
- break;
- }
-
- return ret;
-}
diff --git a/src/auditor/taler-auditor-httpd_denomination-key-validity-withdraw-inconsistency-upd.h b/src/auditor/taler-auditor-httpd_denomination-key-validity-withdraw-inconsistency-upd.h
deleted file mode 100644
index 32267bf64..000000000
--- a/src/auditor/taler-auditor-httpd_denomination-key-validity-withdraw-inconsistency-upd.h
+++ /dev/null
@@ -1,36 +0,0 @@
-/*
- This file is part of TALER
- Copyright (C) 2024 Taler Systems SA
-
- TALER is free software; you can redistribute it and/or modify it under the
- terms of the GNU General Public License as published by the Free Software
- Foundation; either version 3, or (at your option) any later version.
-
- TALER is distributed in the hope that it will be useful, but WITHOUT ANY
- WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
- A PARTICULAR PURPOSE. See the GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License along with
- TALER; see the file COPYING. If not, see <http://www.gnu.org/licenses/>
- */
-
-
-#ifndef \
- SRC_TALER_AUDITOR_HTTPD_DENOMINATION_KEY_VALIDITY_WITHDRAW_INCONSISTENCY_UPD_H
-#define \
- SRC_TALER_AUDITOR_HTTPD_DENOMINATION_KEY_VALIDITY_WITHDRAW_INCONSISTENCY_UPD_H
-
-
-#include <microhttpd.h>
-#include "taler-auditor-httpd.h"
-
-MHD_RESULT
-TAH_DENOMINATION_KEY_VALIDITY_WITHDRAW_INCONSISTENCY_handler_update (
- struct TAH_RequestHandler *rh,
- struct MHD_Connection *connection,
- void **connection_cls,
- const char *upload_data,
- size_t *upload_data_size,
- const char *const args[]);
-
-#endif
diff --git a/src/auditor/taler-auditor-httpd_denomination-pending-upd.c b/src/auditor/taler-auditor-httpd_denomination-pending-upd.c
deleted file mode 100644
index 569cf87f0..000000000
--- a/src/auditor/taler-auditor-httpd_denomination-pending-upd.c
+++ /dev/null
@@ -1,147 +0,0 @@
-/*
- This file is part of TALER
- Copyright (C) 2024 Taler Systems SA
-
- TALER is free software; you can redistribute it and/or modify it under the
- terms of the GNU General Public License as published by the Free Software
- Foundation; either version 3, or (at your option) any later version.
-
- TALER is distributed in the hope that it will be useful, but WITHOUT ANY
- WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
- A PARTICULAR PURPOSE. See the GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License along with
- TALER; see the file COPYING. If not, see <http://www.gnu.org/licenses/>
- */
-
-
-#include "platform.h"
-#include <gnunet/gnunet_util_lib.h>
-#include <gnunet/gnunet_json_lib.h>
-#include <jansson.h>
-#include <microhttpd.h>
-#include <pthread.h>
-#include "taler_json_lib.h"
-#include "taler_mhd_lib.h"
-#include "taler-auditor-httpd.h"
-#include "taler-auditor-httpd_denomination-pending-upd.h"
-
-MHD_RESULT
-TAH_DENOMINATION_PENDING_handler_update (
- struct TAH_RequestHandler *rh,
- struct MHD_Connection *connection,
- void **connection_cls,
- const char *upload_data,
- size_t *upload_data_size,
- const char *const args[])
-{
- enum GNUNET_DB_QueryStatus qs;
-
- if (GNUNET_SYSERR ==
- TAH_plugin->preflight (TAH_plugin->cls))
- {
- GNUNET_break (0);
- return TALER_MHD_reply_with_error (connection,
- MHD_HTTP_INTERNAL_SERVER_ERROR,
- TALER_EC_GENERIC_DB_SETUP_FAILED,
- NULL);
- }
-
- uint64_t row_id;
-
- if (args[2] != NULL)
- row_id = atoi (args[2]);
- else
- return TALER_MHD_reply_with_error (connection,
- MHD_HTTP_BAD_REQUEST,
- TALER_EC_AUDITOR_RESOURCE_NOT_FOUND,
- "no row id specified");
-
-
- struct TALER_AUDITORDB_Generic_Update gu;
-
- gu.row_id = row_id;
-
- struct GNUNET_JSON_Specification spec[] = {
-
- // GNUNET_JSON_spec_uint64 ("row_id", &gu.row_id),
- GNUNET_JSON_spec_bool ("suppressed", &gu.suppressed),
-
- GNUNET_JSON_spec_end ()
- };
-
- json_t *json;
-
- (void) rh;
- (void) connection_cls;
- (void) upload_data;
- (void) upload_data_size;
- {
- enum GNUNET_GenericReturnValue res;
-
- res = TALER_MHD_parse_post_json (connection,
- connection_cls,
- upload_data,
- upload_data_size,
- &json);
- if (GNUNET_SYSERR == res)
- return MHD_NO;
- if ((GNUNET_NO == res) ||
- (NULL == json))
- return MHD_YES;
- res = TALER_MHD_parse_json_data (connection,
- json,
- spec);
- if (GNUNET_SYSERR == res)
- {
- json_decref (json);
- return MHD_NO; /* hard failure */
- }
- if (GNUNET_NO == res)
- {
- json_decref (json);
- return MHD_YES; /* failure */
- }
- }
-
- /* execute transaction */
- qs = TAH_plugin->update_denomination_pending (TAH_plugin->cls, &gu);
-
- GNUNET_JSON_parse_free (spec);
- json_decref (json);
-
- MHD_RESULT ret = MHD_NO;
-
- switch (qs)
- {
- case GNUNET_DB_STATUS_HARD_ERROR:
- GNUNET_break (0);
- ret = TALER_MHD_reply_with_error (connection,
- MHD_HTTP_INTERNAL_SERVER_ERROR,
- TALER_EC_GENERIC_DB_STORE_FAILED,
- "update_account");
- break;
- case GNUNET_DB_STATUS_SOFT_ERROR:
- GNUNET_break (0);
- ret = TALER_MHD_reply_with_error (connection,
- MHD_HTTP_INTERNAL_SERVER_ERROR,
- TALER_EC_GENERIC_INTERNAL_INVARIANT_FAILURE,
- "unexpected serialization problem");
- break;
- case GNUNET_DB_STATUS_SUCCESS_NO_RESULTS:
- return TALER_MHD_reply_with_error (connection,
- MHD_HTTP_NOT_FOUND,
- TALER_EC_AUDITOR_RESOURCE_NOT_FOUND,
- "no updates executed");
- break;
- case GNUNET_DB_STATUS_SUCCESS_ONE_RESULT:
- ret = TALER_MHD_reply_static (connection,
- MHD_HTTP_NO_CONTENT,
- NULL,
- NULL,
- 0);
- break;
- }
-
- return ret;
-}
diff --git a/src/auditor/taler-auditor-httpd_denomination-pending-upd.h b/src/auditor/taler-auditor-httpd_denomination-pending-upd.h
deleted file mode 100644
index 54800ad43..000000000
--- a/src/auditor/taler-auditor-httpd_denomination-pending-upd.h
+++ /dev/null
@@ -1,34 +0,0 @@
-/*
- This file is part of TALER
- Copyright (C) 2024 Taler Systems SA
-
- TALER is free software; you can redistribute it and/or modify it under the
- terms of the GNU General Public License as published by the Free Software
- Foundation; either version 3, or (at your option) any later version.
-
- TALER is distributed in the hope that it will be useful, but WITHOUT ANY
- WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
- A PARTICULAR PURPOSE. See the GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License along with
- TALER; see the file COPYING. If not, see <http://www.gnu.org/licenses/>
- */
-
-
-#ifndef SRC_TALER_AUDITOR_HTTPD_DENOMINATION_PENDING_UPD_H
-#define SRC_TALER_AUDITOR_HTTPD_DENOMINATION_PENDING_UPD_H
-
-
-#include <microhttpd.h>
-#include "taler-auditor-httpd.h"
-
-MHD_RESULT
-TAH_DENOMINATION_PENDING_handler_update (
- struct TAH_RequestHandler *rh,
- struct MHD_Connection *connection,
- void **connection_cls,
- const char *upload_data,
- size_t *upload_data_size,
- const char *const args[]);
-
-#endif
diff --git a/src/auditor/taler-auditor-httpd_denominations-without-sigs-upd.c b/src/auditor/taler-auditor-httpd_denominations-without-sigs-upd.c
deleted file mode 100644
index c903b86ee..000000000
--- a/src/auditor/taler-auditor-httpd_denominations-without-sigs-upd.c
+++ /dev/null
@@ -1,147 +0,0 @@
-/*
- This file is part of TALER
- Copyright (C) 2024 Taler Systems SA
-
- TALER is free software; you can redistribute it and/or modify it under the
- terms of the GNU General Public License as published by the Free Software
- Foundation; either version 3, or (at your option) any later version.
-
- TALER is distributed in the hope that it will be useful, but WITHOUT ANY
- WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
- A PARTICULAR PURPOSE. See the GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License along with
- TALER; see the file COPYING. If not, see <http://www.gnu.org/licenses/>
- */
-
-
-#include "platform.h"
-#include <gnunet/gnunet_util_lib.h>
-#include <gnunet/gnunet_json_lib.h>
-#include <jansson.h>
-#include <microhttpd.h>
-#include <pthread.h>
-#include "taler_json_lib.h"
-#include "taler_mhd_lib.h"
-#include "taler-auditor-httpd.h"
-#include "taler-auditor-httpd_denominations-without-sigs-upd.h"
-
-MHD_RESULT
-TAH_DENOMINATIONS_WITHOUT_SIGS_handler_update (
- struct TAH_RequestHandler *rh,
- struct MHD_Connection *connection,
- void **connection_cls,
- const char *upload_data,
- size_t *upload_data_size,
- const char *const args[])
-{
- enum GNUNET_DB_QueryStatus qs;
-
- if (GNUNET_SYSERR ==
- TAH_plugin->preflight (TAH_plugin->cls))
- {
- GNUNET_break (0);
- return TALER_MHD_reply_with_error (connection,
- MHD_HTTP_INTERNAL_SERVER_ERROR,
- TALER_EC_GENERIC_DB_SETUP_FAILED,
- NULL);
- }
-
- uint64_t row_id;
-
- if (args[2] != NULL)
- row_id = atoi (args[2]);
- else
- return TALER_MHD_reply_with_error (connection,
- MHD_HTTP_BAD_REQUEST,
- TALER_EC_AUDITOR_RESOURCE_NOT_FOUND,
- "no row id specified");
-
-
- struct TALER_AUDITORDB_Generic_Update gu;
-
- gu.row_id = row_id;
-
- struct GNUNET_JSON_Specification spec[] = {
-
- // GNUNET_JSON_spec_uint64 ("row_id", &gu.row_id),
- GNUNET_JSON_spec_bool ("suppressed", &gu.suppressed),
-
- GNUNET_JSON_spec_end ()
- };
-
- json_t *json;
-
- (void) rh;
- (void) connection_cls;
- (void) upload_data;
- (void) upload_data_size;
- {
- enum GNUNET_GenericReturnValue res;
-
- res = TALER_MHD_parse_post_json (connection,
- connection_cls,
- upload_data,
- upload_data_size,
- &json);
- if (GNUNET_SYSERR == res)
- return MHD_NO;
- if ((GNUNET_NO == res) ||
- (NULL == json))
- return MHD_YES;
- res = TALER_MHD_parse_json_data (connection,
- json,
- spec);
- if (GNUNET_SYSERR == res)
- {
- json_decref (json);
- return MHD_NO; /* hard failure */
- }
- if (GNUNET_NO == res)
- {
- json_decref (json);
- return MHD_YES; /* failure */
- }
- }
-
- /* execute transaction */
- qs = TAH_plugin->update_denominations_without_sigs (TAH_plugin->cls, &gu);
-
- GNUNET_JSON_parse_free (spec);
- json_decref (json);
-
- MHD_RESULT ret = MHD_NO;
-
- switch (qs)
- {
- case GNUNET_DB_STATUS_HARD_ERROR:
- GNUNET_break (0);
- ret = TALER_MHD_reply_with_error (connection,
- MHD_HTTP_INTERNAL_SERVER_ERROR,
- TALER_EC_GENERIC_DB_STORE_FAILED,
- "update_account");
- break;
- case GNUNET_DB_STATUS_SOFT_ERROR:
- GNUNET_break (0);
- ret = TALER_MHD_reply_with_error (connection,
- MHD_HTTP_INTERNAL_SERVER_ERROR,
- TALER_EC_GENERIC_INTERNAL_INVARIANT_FAILURE,
- "unexpected serialization problem");
- break;
- case GNUNET_DB_STATUS_SUCCESS_NO_RESULTS:
- return TALER_MHD_reply_with_error (connection,
- MHD_HTTP_NOT_FOUND,
- TALER_EC_AUDITOR_RESOURCE_NOT_FOUND,
- "no updates executed");
- break;
- case GNUNET_DB_STATUS_SUCCESS_ONE_RESULT:
- ret = TALER_MHD_reply_static (connection,
- MHD_HTTP_NO_CONTENT,
- NULL,
- NULL,
- 0);
- break;
- }
-
- return ret;
-}
diff --git a/src/auditor/taler-auditor-httpd_denominations-without-sigs-upd.h b/src/auditor/taler-auditor-httpd_denominations-without-sigs-upd.h
deleted file mode 100644
index df2980ecf..000000000
--- a/src/auditor/taler-auditor-httpd_denominations-without-sigs-upd.h
+++ /dev/null
@@ -1,34 +0,0 @@
-/*
- This file is part of TALER
- Copyright (C) 2024 Taler Systems SA
-
- TALER is free software; you can redistribute it and/or modify it under the
- terms of the GNU General Public License as published by the Free Software
- Foundation; either version 3, or (at your option) any later version.
-
- TALER is distributed in the hope that it will be useful, but WITHOUT ANY
- WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
- A PARTICULAR PURPOSE. See the GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License along with
- TALER; see the file COPYING. If not, see <http://www.gnu.org/licenses/>
- */
-
-
-#ifndef SRC_TALER_AUDITOR_HTTPD_DENOMINATIONS_WITHOUT_SIGS_UPD_H
-#define SRC_TALER_AUDITOR_HTTPD_DENOMINATIONS_WITHOUT_SIGS_UPD_H
-
-
-#include <microhttpd.h>
-#include "taler-auditor-httpd.h"
-
-MHD_RESULT
-TAH_DENOMINATIONS_WITHOUT_SIGS_handler_update (
- struct TAH_RequestHandler *rh,
- struct MHD_Connection *connection,
- void **connection_cls,
- const char *upload_data,
- size_t *upload_data_size,
- const char *const args[]);
-
-#endif
diff --git a/src/auditor/taler-auditor-httpd_deposit-confirmation-upd.c b/src/auditor/taler-auditor-httpd_deposit-confirmation-upd.c
deleted file mode 100644
index 6b2fc70ec..000000000
--- a/src/auditor/taler-auditor-httpd_deposit-confirmation-upd.c
+++ /dev/null
@@ -1,147 +0,0 @@
-/*
- This file is part of TALER
- Copyright (C) 2024 Taler Systems SA
-
- TALER is free software; you can redistribute it and/or modify it under the
- terms of the GNU General Public License as published by the Free Software
- Foundation; either version 3, or (at your option) any later version.
-
- TALER is distributed in the hope that it will be useful, but WITHOUT ANY
- WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
- A PARTICULAR PURPOSE. See the GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License along with
- TALER; see the file COPYING. If not, see <http://www.gnu.org/licenses/>
- */
-
-
-#include "platform.h"
-#include <gnunet/gnunet_util_lib.h>
-#include <gnunet/gnunet_json_lib.h>
-#include <jansson.h>
-#include <microhttpd.h>
-#include <pthread.h>
-#include "taler_json_lib.h"
-#include "taler_mhd_lib.h"
-#include "taler-auditor-httpd.h"
-#include "taler-auditor-httpd_deposit-confirmation-upd.h"
-
-MHD_RESULT
-TAH_DEPOSIT_CONFIRMATION_handler_update (
- struct TAH_RequestHandler *rh,
- struct MHD_Connection *connection,
- void **connection_cls,
- const char *upload_data,
- size_t *upload_data_size,
- const char *const args[])
-{
- enum GNUNET_DB_QueryStatus qs;
-
- if (GNUNET_SYSERR ==
- TAH_plugin->preflight (TAH_plugin->cls))
- {
- GNUNET_break (0);
- return TALER_MHD_reply_with_error (connection,
- MHD_HTTP_INTERNAL_SERVER_ERROR,
- TALER_EC_GENERIC_DB_SETUP_FAILED,
- NULL);
- }
-
- uint64_t row_id;
-
- if (args[2] != NULL)
- row_id = atoi (args[2]);
- else
- return TALER_MHD_reply_with_error (connection,
- MHD_HTTP_BAD_REQUEST,
- TALER_EC_AUDITOR_RESOURCE_NOT_FOUND,
- "no row id specified");
-
-
- struct TALER_AUDITORDB_Generic_Update gu;
-
- gu.row_id = row_id;
-
- struct GNUNET_JSON_Specification spec[] = {
-
- // GNUNET_JSON_spec_uint64 ("row_id", &gu.row_id),
- GNUNET_JSON_spec_bool ("suppressed", &gu.suppressed),
-
- GNUNET_JSON_spec_end ()
- };
-
- json_t *json;
-
- (void) rh;
- (void) connection_cls;
- (void) upload_data;
- (void) upload_data_size;
- {
- enum GNUNET_GenericReturnValue res;
-
- res = TALER_MHD_parse_post_json (connection,
- connection_cls,
- upload_data,
- upload_data_size,
- &json);
- if (GNUNET_SYSERR == res)
- return MHD_NO;
- if ((GNUNET_NO == res) ||
- (NULL == json))
- return MHD_YES;
- res = TALER_MHD_parse_json_data (connection,
- json,
- spec);
- if (GNUNET_SYSERR == res)
- {
- json_decref (json);
- return MHD_NO; /* hard failure */
- }
- if (GNUNET_NO == res)
- {
- json_decref (json);
- return MHD_YES; /* failure */
- }
- }
-
- /* execute transaction */
- qs = TAH_plugin->update_deposit_confirmations (TAH_plugin->cls, &gu);
-
- GNUNET_JSON_parse_free (spec);
- json_decref (json);
-
- MHD_RESULT ret = MHD_NO;
-
- switch (qs)
- {
- case GNUNET_DB_STATUS_HARD_ERROR:
- GNUNET_break (0);
- ret = TALER_MHD_reply_with_error (connection,
- MHD_HTTP_INTERNAL_SERVER_ERROR,
- TALER_EC_GENERIC_DB_STORE_FAILED,
- "update_account");
- break;
- case GNUNET_DB_STATUS_SOFT_ERROR:
- GNUNET_break (0);
- ret = TALER_MHD_reply_with_error (connection,
- MHD_HTTP_INTERNAL_SERVER_ERROR,
- TALER_EC_GENERIC_INTERNAL_INVARIANT_FAILURE,
- "unexpected serialization problem");
- break;
- case GNUNET_DB_STATUS_SUCCESS_NO_RESULTS:
- return TALER_MHD_reply_with_error (connection,
- MHD_HTTP_NOT_FOUND,
- TALER_EC_AUDITOR_RESOURCE_NOT_FOUND,
- "no updates executed");
- break;
- case GNUNET_DB_STATUS_SUCCESS_ONE_RESULT:
- ret = TALER_MHD_reply_static (connection,
- MHD_HTTP_NO_CONTENT,
- NULL,
- NULL,
- 0);
- break;
- }
-
- return ret;
-}
diff --git a/src/auditor/taler-auditor-httpd_deposit-confirmation-upd.h b/src/auditor/taler-auditor-httpd_deposit-confirmation-upd.h
deleted file mode 100644
index 764af917b..000000000
--- a/src/auditor/taler-auditor-httpd_deposit-confirmation-upd.h
+++ /dev/null
@@ -1,34 +0,0 @@
-/*
- This file is part of TALER
- Copyright (C) 2024 Taler Systems SA
-
- TALER is free software; you can redistribute it and/or modify it under the
- terms of the GNU General Public License as published by the Free Software
- Foundation; either version 3, or (at your option) any later version.
-
- TALER is distributed in the hope that it will be useful, but WITHOUT ANY
- WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
- A PARTICULAR PURPOSE. See the GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License along with
- TALER; see the file COPYING. If not, see <http://www.gnu.org/licenses/>
- */
-
-
-#ifndef SRC_TALER_AUDITOR_HTTPD_DEPOSIT_CONFIRMATION_UPD_H
-#define SRC_TALER_AUDITOR_HTTPD_DEPOSIT_CONFIRMATION_UPD_H
-
-
-#include <microhttpd.h>
-#include "taler-auditor-httpd.h"
-
-MHD_RESULT
-TAH_DEPOSIT_CONFIRMATION_handler_update (
- struct TAH_RequestHandler *rh,
- struct MHD_Connection *connection,
- void **connection_cls,
- const char *upload_data,
- size_t *upload_data_size,
- const char *const args[]);
-
-#endif
diff --git a/src/auditor/taler-auditor-httpd_emergency-by-count-upd.c b/src/auditor/taler-auditor-httpd_emergency-by-count-upd.c
deleted file mode 100644
index 37c92ab28..000000000
--- a/src/auditor/taler-auditor-httpd_emergency-by-count-upd.c
+++ /dev/null
@@ -1,147 +0,0 @@
-/*
- This file is part of TALER
- Copyright (C) 2024 Taler Systems SA
-
- TALER is free software; you can redistribute it and/or modify it under the
- terms of the GNU General Public License as published by the Free Software
- Foundation; either version 3, or (at your option) any later version.
-
- TALER is distributed in the hope that it will be useful, but WITHOUT ANY
- WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
- A PARTICULAR PURPOSE. See the GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License along with
- TALER; see the file COPYING. If not, see <http://www.gnu.org/licenses/>
- */
-
-
-#include "platform.h"
-#include <gnunet/gnunet_util_lib.h>
-#include <gnunet/gnunet_json_lib.h>
-#include <jansson.h>
-#include <microhttpd.h>
-#include <pthread.h>
-#include "taler_json_lib.h"
-#include "taler_mhd_lib.h"
-#include "taler-auditor-httpd.h"
-#include "taler-auditor-httpd_emergency-by-count-upd.h"
-
-MHD_RESULT
-TAH_EMERGENCY_BY_COUNT_handler_update (
- struct TAH_RequestHandler *rh,
- struct MHD_Connection *connection,
- void **connection_cls,
- const char *upload_data,
- size_t *upload_data_size,
- const char *const args[])
-{
- enum GNUNET_DB_QueryStatus qs;
-
- if (GNUNET_SYSERR ==
- TAH_plugin->preflight (TAH_plugin->cls))
- {
- GNUNET_break (0);
- return TALER_MHD_reply_with_error (connection,
- MHD_HTTP_INTERNAL_SERVER_ERROR,
- TALER_EC_GENERIC_DB_SETUP_FAILED,
- NULL);
- }
-
- uint64_t row_id;
-
- if (args[2] != NULL)
- row_id = atoi (args[2]);
- else
- return TALER_MHD_reply_with_error (connection,
- MHD_HTTP_BAD_REQUEST,
- TALER_EC_AUDITOR_RESOURCE_NOT_FOUND,
- "no row id specified");
-
-
- struct TALER_AUDITORDB_Generic_Update gu;
-
- gu.row_id = row_id;
-
- struct GNUNET_JSON_Specification spec[] = {
-
- // GNUNET_JSON_spec_uint64 ("row_id", &gu.row_id),
- GNUNET_JSON_spec_bool ("suppressed", &gu.suppressed),
-
- GNUNET_JSON_spec_end ()
- };
-
- json_t *json;
-
- (void) rh;
- (void) connection_cls;
- (void) upload_data;
- (void) upload_data_size;
- {
- enum GNUNET_GenericReturnValue res;
-
- res = TALER_MHD_parse_post_json (connection,
- connection_cls,
- upload_data,
- upload_data_size,
- &json);
- if (GNUNET_SYSERR == res)
- return MHD_NO;
- if ((GNUNET_NO == res) ||
- (NULL == json))
- return MHD_YES;
- res = TALER_MHD_parse_json_data (connection,
- json,
- spec);
- if (GNUNET_SYSERR == res)
- {
- json_decref (json);
- return MHD_NO; /* hard failure */
- }
- if (GNUNET_NO == res)
- {
- json_decref (json);
- return MHD_YES; /* failure */
- }
- }
-
- /* execute transaction */
- qs = TAH_plugin->update_emergency_by_count (TAH_plugin->cls, &gu);
-
- GNUNET_JSON_parse_free (spec);
- json_decref (json);
-
- MHD_RESULT ret = MHD_NO;
-
- switch (qs)
- {
- case GNUNET_DB_STATUS_HARD_ERROR:
- GNUNET_break (0);
- ret = TALER_MHD_reply_with_error (connection,
- MHD_HTTP_INTERNAL_SERVER_ERROR,
- TALER_EC_GENERIC_DB_STORE_FAILED,
- "update_account");
- break;
- case GNUNET_DB_STATUS_SOFT_ERROR:
- GNUNET_break (0);
- ret = TALER_MHD_reply_with_error (connection,
- MHD_HTTP_INTERNAL_SERVER_ERROR,
- TALER_EC_GENERIC_INTERNAL_INVARIANT_FAILURE,
- "unexpected serialization problem");
- break;
- case GNUNET_DB_STATUS_SUCCESS_NO_RESULTS:
- return TALER_MHD_reply_with_error (connection,
- MHD_HTTP_NOT_FOUND,
- TALER_EC_AUDITOR_RESOURCE_NOT_FOUND,
- "no updates executed");
- break;
- case GNUNET_DB_STATUS_SUCCESS_ONE_RESULT:
- ret = TALER_MHD_reply_static (connection,
- MHD_HTTP_NO_CONTENT,
- NULL,
- NULL,
- 0);
- break;
- }
-
- return ret;
-}
diff --git a/src/auditor/taler-auditor-httpd_emergency-by-count-upd.h b/src/auditor/taler-auditor-httpd_emergency-by-count-upd.h
deleted file mode 100644
index 15be00a9c..000000000
--- a/src/auditor/taler-auditor-httpd_emergency-by-count-upd.h
+++ /dev/null
@@ -1,34 +0,0 @@
-/*
- This file is part of TALER
- Copyright (C) 2024 Taler Systems SA
-
- TALER is free software; you can redistribute it and/or modify it under the
- terms of the GNU General Public License as published by the Free Software
- Foundation; either version 3, or (at your option) any later version.
-
- TALER is distributed in the hope that it will be useful, but WITHOUT ANY
- WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
- A PARTICULAR PURPOSE. See the GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License along with
- TALER; see the file COPYING. If not, see <http://www.gnu.org/licenses/>
- */
-
-
-#ifndef SRC_TALER_AUDITOR_HTTPD_EMERGENCY_BY_COUNT_UPD_H
-#define SRC_TALER_AUDITOR_HTTPD_EMERGENCY_BY_COUNT_UPD_H
-
-
-#include <microhttpd.h>
-#include "taler-auditor-httpd.h"
-
-MHD_RESULT
-TAH_EMERGENCY_BY_COUNT_handler_update (
- struct TAH_RequestHandler *rh,
- struct MHD_Connection *connection,
- void **connection_cls,
- const char *upload_data,
- size_t *upload_data_size,
- const char *const args[]);
-
-#endif
diff --git a/src/auditor/taler-auditor-httpd_emergency-upd.c b/src/auditor/taler-auditor-httpd_emergency-upd.c
deleted file mode 100644
index eba466a9f..000000000
--- a/src/auditor/taler-auditor-httpd_emergency-upd.c
+++ /dev/null
@@ -1,147 +0,0 @@
-/*
- This file is part of TALER
- Copyright (C) 2024 Taler Systems SA
-
- TALER is free software; you can redistribute it and/or modify it under the
- terms of the GNU General Public License as published by the Free Software
- Foundation; either version 3, or (at your option) any later version.
-
- TALER is distributed in the hope that it will be useful, but WITHOUT ANY
- WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
- A PARTICULAR PURPOSE. See the GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License along with
- TALER; see the file COPYING. If not, see <http://www.gnu.org/licenses/>
- */
-
-
-#include "platform.h"
-#include <gnunet/gnunet_util_lib.h>
-#include <gnunet/gnunet_json_lib.h>
-#include <jansson.h>
-#include <microhttpd.h>
-#include <pthread.h>
-#include "taler_json_lib.h"
-#include "taler_mhd_lib.h"
-#include "taler-auditor-httpd.h"
-#include "taler-auditor-httpd_emergency-upd.h"
-
-MHD_RESULT
-TAH_EMERGENCY_handler_update (
- struct TAH_RequestHandler *rh,
- struct MHD_Connection *connection,
- void **connection_cls,
- const char *upload_data,
- size_t *upload_data_size,
- const char *const args[])
-{
- enum GNUNET_DB_QueryStatus qs;
-
- if (GNUNET_SYSERR ==
- TAH_plugin->preflight (TAH_plugin->cls))
- {
- GNUNET_break (0);
- return TALER_MHD_reply_with_error (connection,
- MHD_HTTP_INTERNAL_SERVER_ERROR,
- TALER_EC_GENERIC_DB_SETUP_FAILED,
- NULL);
- }
-
- uint64_t row_id;
-
- if (args[2] != NULL)
- row_id = atoi (args[2]);
- else
- return TALER_MHD_reply_with_error (connection,
- MHD_HTTP_BAD_REQUEST,
- TALER_EC_AUDITOR_RESOURCE_NOT_FOUND,
- "no row id specified");
-
-
- struct TALER_AUDITORDB_Generic_Update gu;
-
- gu.row_id = row_id;
-
- struct GNUNET_JSON_Specification spec[] = {
-
- // GNUNET_JSON_spec_uint64 ("row_id", &gu.row_id),
- GNUNET_JSON_spec_bool ("suppressed", &gu.suppressed),
-
- GNUNET_JSON_spec_end ()
- };
-
- json_t *json;
-
- (void) rh;
- (void) connection_cls;
- (void) upload_data;
- (void) upload_data_size;
- {
- enum GNUNET_GenericReturnValue res;
-
- res = TALER_MHD_parse_post_json (connection,
- connection_cls,
- upload_data,
- upload_data_size,
- &json);
- if (GNUNET_SYSERR == res)
- return MHD_NO;
- if ((GNUNET_NO == res) ||
- (NULL == json))
- return MHD_YES;
- res = TALER_MHD_parse_json_data (connection,
- json,
- spec);
- if (GNUNET_SYSERR == res)
- {
- json_decref (json);
- return MHD_NO; /* hard failure */
- }
- if (GNUNET_NO == res)
- {
- json_decref (json);
- return MHD_YES; /* failure */
- }
- }
-
- /* execute transaction */
- qs = TAH_plugin->update_emergency (TAH_plugin->cls, &gu);
-
- GNUNET_JSON_parse_free (spec);
- json_decref (json);
-
- MHD_RESULT ret = MHD_NO;
-
- switch (qs)
- {
- case GNUNET_DB_STATUS_HARD_ERROR:
- GNUNET_break (0);
- ret = TALER_MHD_reply_with_error (connection,
- MHD_HTTP_INTERNAL_SERVER_ERROR,
- TALER_EC_GENERIC_DB_STORE_FAILED,
- "update_account");
- break;
- case GNUNET_DB_STATUS_SOFT_ERROR:
- GNUNET_break (0);
- ret = TALER_MHD_reply_with_error (connection,
- MHD_HTTP_INTERNAL_SERVER_ERROR,
- TALER_EC_GENERIC_INTERNAL_INVARIANT_FAILURE,
- "unexpected serialization problem");
- break;
- case GNUNET_DB_STATUS_SUCCESS_NO_RESULTS:
- return TALER_MHD_reply_with_error (connection,
- MHD_HTTP_NOT_FOUND,
- TALER_EC_AUDITOR_RESOURCE_NOT_FOUND,
- "no updates executed");
- break;
- case GNUNET_DB_STATUS_SUCCESS_ONE_RESULT:
- ret = TALER_MHD_reply_static (connection,
- MHD_HTTP_NO_CONTENT,
- NULL,
- NULL,
- 0);
- break;
- }
-
- return ret;
-}
diff --git a/src/auditor/taler-auditor-httpd_emergency-upd.h b/src/auditor/taler-auditor-httpd_emergency-upd.h
deleted file mode 100644
index 3e9161bcf..000000000
--- a/src/auditor/taler-auditor-httpd_emergency-upd.h
+++ /dev/null
@@ -1,34 +0,0 @@
-/*
- This file is part of TALER
- Copyright (C) 2024 Taler Systems SA
-
- TALER is free software; you can redistribute it and/or modify it under the
- terms of the GNU General Public License as published by the Free Software
- Foundation; either version 3, or (at your option) any later version.
-
- TALER is distributed in the hope that it will be useful, but WITHOUT ANY
- WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
- A PARTICULAR PURPOSE. See the GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License along with
- TALER; see the file COPYING. If not, see <http://www.gnu.org/licenses/>
- */
-
-
-#ifndef SRC_TALER_AUDITOR_HTTPD_EMERGENCY_UPD_H
-#define SRC_TALER_AUDITOR_HTTPD_EMERGENCY_UPD_H
-
-
-#include <microhttpd.h>
-#include "taler-auditor-httpd.h"
-
-MHD_RESULT
-TAH_EMERGENCY_handler_update (struct TAH_RequestHandler *rh,
- struct MHD_Connection *
- connection,
- void **connection_cls,
- const char *upload_data,
- size_t *upload_data_size,
- const char *const args[]);
-
-#endif // SRC_TALER_AUDITOR_HTTPD_EMERGENCY_UPD_H
diff --git a/src/auditor/taler-auditor-httpd_fee-time-inconsistency-upd.c b/src/auditor/taler-auditor-httpd_fee-time-inconsistency-upd.c
deleted file mode 100644
index 3b4cea024..000000000
--- a/src/auditor/taler-auditor-httpd_fee-time-inconsistency-upd.c
+++ /dev/null
@@ -1,147 +0,0 @@
-/*
- This file is part of TALER
- Copyright (C) 2024 Taler Systems SA
-
- TALER is free software; you can redistribute it and/or modify it under the
- terms of the GNU General Public License as published by the Free Software
- Foundation; either version 3, or (at your option) any later version.
-
- TALER is distributed in the hope that it will be useful, but WITHOUT ANY
- WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
- A PARTICULAR PURPOSE. See the GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License along with
- TALER; see the file COPYING. If not, see <http://www.gnu.org/licenses/>
- */
-
-
-#include "platform.h"
-#include <gnunet/gnunet_util_lib.h>
-#include <gnunet/gnunet_json_lib.h>
-#include <jansson.h>
-#include <microhttpd.h>
-#include <pthread.h>
-#include "taler_json_lib.h"
-#include "taler_mhd_lib.h"
-#include "taler-auditor-httpd.h"
-#include "taler-auditor-httpd_fee-time-inconsistency-upd.h"
-
-MHD_RESULT
-TAH_FEE_TIME_INCONSISTENCY_handler_update (
- struct TAH_RequestHandler *rh,
- struct MHD_Connection *connection,
- void **connection_cls,
- const char *upload_data,
- size_t *upload_data_size,
- const char *const args[])
-{
- enum GNUNET_DB_QueryStatus qs;
-
- if (GNUNET_SYSERR ==
- TAH_plugin->preflight (TAH_plugin->cls))
- {
- GNUNET_break (0);
- return TALER_MHD_reply_with_error (connection,
- MHD_HTTP_INTERNAL_SERVER_ERROR,
- TALER_EC_GENERIC_DB_SETUP_FAILED,
- NULL);
- }
-
- uint64_t row_id;
-
- if (args[2] != NULL)
- row_id = atoi (args[2]);
- else
- return TALER_MHD_reply_with_error (connection,
- MHD_HTTP_BAD_REQUEST,
- TALER_EC_AUDITOR_RESOURCE_NOT_FOUND,
- "no row id specified");
-
-
- struct TALER_AUDITORDB_Generic_Update gu;
-
- gu.row_id = row_id;
-
- struct GNUNET_JSON_Specification spec[] = {
-
- // GNUNET_JSON_spec_uint64 ("row_id", &gu.row_id),
- GNUNET_JSON_spec_bool ("suppressed", &gu.suppressed),
-
- GNUNET_JSON_spec_end ()
- };
-
- json_t *json;
-
- (void) rh;
- (void) connection_cls;
- (void) upload_data;
- (void) upload_data_size;
- {
- enum GNUNET_GenericReturnValue res;
-
- res = TALER_MHD_parse_post_json (connection,
- connection_cls,
- upload_data,
- upload_data_size,
- &json);
- if (GNUNET_SYSERR == res)
- return MHD_NO;
- if ((GNUNET_NO == res) ||
- (NULL == json))
- return MHD_YES;
- res = TALER_MHD_parse_json_data (connection,
- json,
- spec);
- if (GNUNET_SYSERR == res)
- {
- json_decref (json);
- return MHD_NO; /* hard failure */
- }
- if (GNUNET_NO == res)
- {
- json_decref (json);
- return MHD_YES; /* failure */
- }
- }
-
- /* execute transaction */
- qs = TAH_plugin->update_fee_time_inconsistency (TAH_plugin->cls, &gu);
-
- GNUNET_JSON_parse_free (spec);
- json_decref (json);
-
- MHD_RESULT ret = MHD_NO;
-
- switch (qs)
- {
- case GNUNET_DB_STATUS_HARD_ERROR:
- GNUNET_break (0);
- ret = TALER_MHD_reply_with_error (connection,
- MHD_HTTP_INTERNAL_SERVER_ERROR,
- TALER_EC_GENERIC_DB_STORE_FAILED,
- "update_account");
- break;
- case GNUNET_DB_STATUS_SOFT_ERROR:
- GNUNET_break (0);
- ret = TALER_MHD_reply_with_error (connection,
- MHD_HTTP_INTERNAL_SERVER_ERROR,
- TALER_EC_GENERIC_INTERNAL_INVARIANT_FAILURE,
- "unexpected serialization problem");
- break;
- case GNUNET_DB_STATUS_SUCCESS_NO_RESULTS:
- return TALER_MHD_reply_with_error (connection,
- MHD_HTTP_NOT_FOUND,
- TALER_EC_AUDITOR_RESOURCE_NOT_FOUND,
- "no updates executed");
- break;
- case GNUNET_DB_STATUS_SUCCESS_ONE_RESULT:
- ret = TALER_MHD_reply_static (connection,
- MHD_HTTP_NO_CONTENT,
- NULL,
- NULL,
- 0);
- break;
- }
-
- return ret;
-}
diff --git a/src/auditor/taler-auditor-httpd_fee-time-inconsistency-upd.h b/src/auditor/taler-auditor-httpd_fee-time-inconsistency-upd.h
deleted file mode 100644
index 04aa5c90d..000000000
--- a/src/auditor/taler-auditor-httpd_fee-time-inconsistency-upd.h
+++ /dev/null
@@ -1,34 +0,0 @@
-/*
- This file is part of TALER
- Copyright (C) 2024 Taler Systems SA
-
- TALER is free software; you can redistribute it and/or modify it under the
- terms of the GNU General Public License as published by the Free Software
- Foundation; either version 3, or (at your option) any later version.
-
- TALER is distributed in the hope that it will be useful, but WITHOUT ANY
- WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
- A PARTICULAR PURPOSE. See the GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License along with
- TALER; see the file COPYING. If not, see <http://www.gnu.org/licenses/>
- */
-
-
-#ifndef SRC_TALER_AUDITOR_HTTPD_FEE_TIME_INCONSISTENCY_UPD_H
-#define SRC_TALER_AUDITOR_HTTPD_FEE_TIME_INCONSISTENCY_UPD_H
-
-
-#include <microhttpd.h>
-#include "taler-auditor-httpd.h"
-
-MHD_RESULT
-TAH_FEE_TIME_INCONSISTENCY_handler_update (struct TAH_RequestHandler *rh,
- struct MHD_Connection *
- connection,
- void **connection_cls,
- const char *upload_data,
- size_t *upload_data_size,
- const char *const args[]);
-
-#endif // SRC_TALER_AUDITOR_HTTPD_FEE_TIME_INCONSISTENCY_UPD_H
diff --git a/src/auditor/taler-auditor-httpd_misattribution-in-inconsistency-upd.c b/src/auditor/taler-auditor-httpd_misattribution-in-inconsistency-upd.c
deleted file mode 100644
index 3a2a7cdd3..000000000
--- a/src/auditor/taler-auditor-httpd_misattribution-in-inconsistency-upd.c
+++ /dev/null
@@ -1,148 +0,0 @@
-/*
- This file is part of TALER
- Copyright (C) 2024 Taler Systems SA
-
- TALER is free software; you can redistribute it and/or modify it under the
- terms of the GNU General Public License as published by the Free Software
- Foundation; either version 3, or (at your option) any later version.
-
- TALER is distributed in the hope that it will be useful, but WITHOUT ANY
- WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
- A PARTICULAR PURPOSE. See the GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License along with
- TALER; see the file COPYING. If not, see <http://www.gnu.org/licenses/>
- */
-
-
-#include "platform.h"
-#include <gnunet/gnunet_util_lib.h>
-#include <gnunet/gnunet_json_lib.h>
-#include <jansson.h>
-#include <microhttpd.h>
-#include <pthread.h>
-#include "taler_json_lib.h"
-#include "taler_mhd_lib.h"
-#include "taler-auditor-httpd.h"
-#include "taler-auditor-httpd_misattribution-in-inconsistency-upd.h"
-
-MHD_RESULT
-TAH_MISATTRIBUTION_IN_INCONSISTENCY_handler_update (
- struct TAH_RequestHandler *rh,
- struct MHD_Connection *connection,
- void **connection_cls,
- const char *upload_data,
- size_t *upload_data_size,
- const char *const args[])
-{
- enum GNUNET_DB_QueryStatus qs;
-
- if (GNUNET_SYSERR ==
- TAH_plugin->preflight (TAH_plugin->cls))
- {
- GNUNET_break (0);
- return TALER_MHD_reply_with_error (connection,
- MHD_HTTP_INTERNAL_SERVER_ERROR,
- TALER_EC_GENERIC_DB_SETUP_FAILED,
- NULL);
- }
-
- uint64_t row_id;
-
- if (args[2] != NULL)
- row_id = atoi (args[2]);
- else
- return TALER_MHD_reply_with_error (connection,
- MHD_HTTP_BAD_REQUEST,
- TALER_EC_AUDITOR_RESOURCE_NOT_FOUND,
- "no row id specified");
-
-
- struct TALER_AUDITORDB_Generic_Update gu;
-
- gu.row_id = row_id;
-
- struct GNUNET_JSON_Specification spec[] = {
-
- // GNUNET_JSON_spec_uint64 ("row_id", &gu.row_id),
- GNUNET_JSON_spec_bool ("suppressed", &gu.suppressed),
-
- GNUNET_JSON_spec_end ()
- };
-
- json_t *json;
-
- (void) rh;
- (void) connection_cls;
- (void) upload_data;
- (void) upload_data_size;
- {
- enum GNUNET_GenericReturnValue res;
-
- res = TALER_MHD_parse_post_json (connection,
- connection_cls,
- upload_data,
- upload_data_size,
- &json);
- if (GNUNET_SYSERR == res)
- return MHD_NO;
- if ((GNUNET_NO == res) ||
- (NULL == json))
- return MHD_YES;
- res = TALER_MHD_parse_json_data (connection,
- json,
- spec);
- if (GNUNET_SYSERR == res)
- {
- json_decref (json);
- return MHD_NO; /* hard failure */
- }
- if (GNUNET_NO == res)
- {
- json_decref (json);
- return MHD_YES; /* failure */
- }
- }
-
- /* execute transaction */
- qs = TAH_plugin->update_misattribution_in_inconsistency (TAH_plugin->cls,
- &gu);
-
- GNUNET_JSON_parse_free (spec);
- json_decref (json);
-
- MHD_RESULT ret = MHD_NO;
-
- switch (qs)
- {
- case GNUNET_DB_STATUS_HARD_ERROR:
- GNUNET_break (0);
- ret = TALER_MHD_reply_with_error (connection,
- MHD_HTTP_INTERNAL_SERVER_ERROR,
- TALER_EC_GENERIC_DB_STORE_FAILED,
- "update_account");
- break;
- case GNUNET_DB_STATUS_SOFT_ERROR:
- GNUNET_break (0);
- ret = TALER_MHD_reply_with_error (connection,
- MHD_HTTP_INTERNAL_SERVER_ERROR,
- TALER_EC_GENERIC_INTERNAL_INVARIANT_FAILURE,
- "unexpected serialization problem");
- break;
- case GNUNET_DB_STATUS_SUCCESS_NO_RESULTS:
- return TALER_MHD_reply_with_error (connection,
- MHD_HTTP_NOT_FOUND,
- TALER_EC_AUDITOR_RESOURCE_NOT_FOUND,
- "no updates executed");
- break;
- case GNUNET_DB_STATUS_SUCCESS_ONE_RESULT:
- ret = TALER_MHD_reply_static (connection,
- MHD_HTTP_NO_CONTENT,
- NULL,
- NULL,
- 0);
- break;
- }
-
- return ret;
-}
diff --git a/src/auditor/taler-auditor-httpd_misattribution-in-inconsistency-upd.h b/src/auditor/taler-auditor-httpd_misattribution-in-inconsistency-upd.h
deleted file mode 100644
index 966c5e1d7..000000000
--- a/src/auditor/taler-auditor-httpd_misattribution-in-inconsistency-upd.h
+++ /dev/null
@@ -1,35 +0,0 @@
-/*
- This file is part of TALER
- Copyright (C) 2024 Taler Systems SA
-
- TALER is free software; you can redistribute it and/or modify it under the
- terms of the GNU General Public License as published by the Free Software
- Foundation; either version 3, or (at your option) any later version.
-
- TALER is distributed in the hope that it will be useful, but WITHOUT ANY
- WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
- A PARTICULAR PURPOSE. See the GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License along with
- TALER; see the file COPYING. If not, see <http://www.gnu.org/licenses/>
- */
-
-
-#ifndef SRC_TALER_AUDITOR_HTTPD_MISATTRIBUTION_IN_INCONSISTENCY_UPD_H
-#define SRC_TALER_AUDITOR_HTTPD_MISATTRIBUTION_IN_INCONSISTENCY_UPD_H
-
-
-#include <microhttpd.h>
-#include "taler-auditor-httpd.h"
-
-MHD_RESULT
-TAH_MISATTRIBUTION_IN_INCONSISTENCY_handler_update (struct
- TAH_RequestHandler *rh,
- struct MHD_Connection *
- connection,
- void **connection_cls,
- const char *upload_data,
- size_t *upload_data_size,
- const char *const args[]);
-
-#endif // SRC_TALER_AUDITOR_HTTPD_MISATTRIBUTION_IN_INCONSISTENCY_UPD_H
diff --git a/src/auditor/taler-auditor-httpd_patch_generic_suppressed.c b/src/auditor/taler-auditor-httpd_patch_generic_suppressed.c
index f58635c5b..fa2da2384 100644
--- a/src/auditor/taler-auditor-httpd_patch_generic_suppressed.c
+++ b/src/auditor/taler-auditor-httpd_patch_generic_suppressed.c
@@ -24,7 +24,6 @@
#include "taler_json_lib.h"
#include "taler_mhd_lib.h"
#include "taler-auditor-httpd.h"
-#include "taler-auditor-httpd_amount-arithmetic-inconsistency-upd.h"
MHD_RESULT
diff --git a/src/auditor/taler-auditor-httpd_purse-not-closed-inconsistencies-upd.c b/src/auditor/taler-auditor-httpd_purse-not-closed-inconsistencies-upd.c
deleted file mode 100644
index 10024be5e..000000000
--- a/src/auditor/taler-auditor-httpd_purse-not-closed-inconsistencies-upd.c
+++ /dev/null
@@ -1,148 +0,0 @@
-/*
- This file is part of TALER
- Copyright (C) 2024 Taler Systems SA
-
- TALER is free software; you can redistribute it and/or modify it under the
- terms of the GNU General Public License as published by the Free Software
- Foundation; either version 3, or (at your option) any later version.
-
- TALER is distributed in the hope that it will be useful, but WITHOUT ANY
- WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
- A PARTICULAR PURPOSE. See the GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License along with
- TALER; see the file COPYING. If not, see <http://www.gnu.org/licenses/>
- */
-
-
-#include "platform.h"
-#include <gnunet/gnunet_util_lib.h>
-#include <gnunet/gnunet_json_lib.h>
-#include <jansson.h>
-#include <microhttpd.h>
-#include <pthread.h>
-#include "taler_json_lib.h"
-#include "taler_mhd_lib.h"
-#include "taler-auditor-httpd.h"
-#include "taler-auditor-httpd_purse-not-closed-inconsistencies-upd.h"
-
-MHD_RESULT
-TAH_PURSE_NOT_CLOSED_INCONSISTENCIES_handler_update (
- struct TAH_RequestHandler *rh,
- struct MHD_Connection *connection,
- void **connection_cls,
- const char *upload_data,
- size_t *upload_data_size,
- const char *const args[])
-{
- enum GNUNET_DB_QueryStatus qs;
-
- if (GNUNET_SYSERR ==
- TAH_plugin->preflight (TAH_plugin->cls))
- {
- GNUNET_break (0);
- return TALER_MHD_reply_with_error (connection,
- MHD_HTTP_INTERNAL_SERVER_ERROR,
- TALER_EC_GENERIC_DB_SETUP_FAILED,
- NULL);
- }
-
- uint64_t row_id;
-
- if (args[2] != NULL)
- row_id = atoi (args[2]);
- else
- return TALER_MHD_reply_with_error (connection,
- MHD_HTTP_BAD_REQUEST,
- TALER_EC_AUDITOR_RESOURCE_NOT_FOUND,
- "no row id specified");
-
-
- struct TALER_AUDITORDB_Generic_Update gu;
-
- gu.row_id = row_id;
-
- struct GNUNET_JSON_Specification spec[] = {
-
- // GNUNET_JSON_spec_uint64 ("row_id", &gu.row_id),
- GNUNET_JSON_spec_bool ("suppressed", &gu.suppressed),
-
- GNUNET_JSON_spec_end ()
- };
-
- json_t *json;
-
- (void) rh;
- (void) connection_cls;
- (void) upload_data;
- (void) upload_data_size;
- {
- enum GNUNET_GenericReturnValue res;
-
- res = TALER_MHD_parse_post_json (connection,
- connection_cls,
- upload_data,
- upload_data_size,
- &json);
- if (GNUNET_SYSERR == res)
- return MHD_NO;
- if ((GNUNET_NO == res) ||
- (NULL == json))
- return MHD_YES;
- res = TALER_MHD_parse_json_data (connection,
- json,
- spec);
- if (GNUNET_SYSERR == res)
- {
- json_decref (json);
- return MHD_NO; /* hard failure */
- }
- if (GNUNET_NO == res)
- {
- json_decref (json);
- return MHD_YES; /* failure */
- }
- }
-
- /* execute transaction */
- qs = TAH_plugin->update_purse_not_closed_inconsistencies (TAH_plugin->cls,
- &gu);
-
- GNUNET_JSON_parse_free (spec);
- json_decref (json);
-
- MHD_RESULT ret = MHD_NO;
-
- switch (qs)
- {
- case GNUNET_DB_STATUS_HARD_ERROR:
- GNUNET_break (0);
- ret = TALER_MHD_reply_with_error (connection,
- MHD_HTTP_INTERNAL_SERVER_ERROR,
- TALER_EC_GENERIC_DB_STORE_FAILED,
- "update_account");
- break;
- case GNUNET_DB_STATUS_SOFT_ERROR:
- GNUNET_break (0);
- ret = TALER_MHD_reply_with_error (connection,
- MHD_HTTP_INTERNAL_SERVER_ERROR,
- TALER_EC_GENERIC_INTERNAL_INVARIANT_FAILURE,
- "unexpected serialization problem");
- break;
- case GNUNET_DB_STATUS_SUCCESS_NO_RESULTS:
- return TALER_MHD_reply_with_error (connection,
- MHD_HTTP_NOT_FOUND,
- TALER_EC_AUDITOR_RESOURCE_NOT_FOUND,
- "no updates executed");
- break;
- case GNUNET_DB_STATUS_SUCCESS_ONE_RESULT:
- ret = TALER_MHD_reply_static (connection,
- MHD_HTTP_NO_CONTENT,
- NULL,
- NULL,
- 0);
- break;
- }
-
- return ret;
-}
diff --git a/src/auditor/taler-auditor-httpd_purse-not-closed-inconsistencies-upd.h b/src/auditor/taler-auditor-httpd_purse-not-closed-inconsistencies-upd.h
deleted file mode 100644
index cd0b3f602..000000000
--- a/src/auditor/taler-auditor-httpd_purse-not-closed-inconsistencies-upd.h
+++ /dev/null
@@ -1,35 +0,0 @@
-/*
- This file is part of TALER
- Copyright (C) 2024 Taler Systems SA
-
- TALER is free software; you can redistribute it and/or modify it under the
- terms of the GNU General Public License as published by the Free Software
- Foundation; either version 3, or (at your option) any later version.
-
- TALER is distributed in the hope that it will be useful, but WITHOUT ANY
- WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
- A PARTICULAR PURPOSE. See the GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License along with
- TALER; see the file COPYING. If not, see <http://www.gnu.org/licenses/>
- */
-
-
-#ifndef SRC_TALER_AUDITOR_HTTPD_PURSE_NOT_CLOSED_INCONSISTENCIES_UPD_H
-#define SRC_TALER_AUDITOR_HTTPD_PURSE_NOT_CLOSED_INCONSISTENCIES_UPD_H
-
-
-#include <microhttpd.h>
-#include "taler-auditor-httpd.h"
-
-MHD_RESULT
-TAH_PURSE_NOT_CLOSED_INCONSISTENCIES_handler_update (struct
- TAH_RequestHandler *rh,
- struct MHD_Connection *
- connection,
- void **connection_cls,
- const char *upload_data,
- size_t *upload_data_size,
- const char *const args[]);
-
-#endif // SRC_TALER_AUDITOR_HTTPD_PURSE_NOT_CLOSED_INCONSISTENCIES_UPD_H
diff --git a/src/auditor/taler-auditor-httpd_refreshes-hanging-upd.c b/src/auditor/taler-auditor-httpd_refreshes-hanging-upd.c
deleted file mode 100644
index edcb3b7a3..000000000
--- a/src/auditor/taler-auditor-httpd_refreshes-hanging-upd.c
+++ /dev/null
@@ -1,147 +0,0 @@
-/*
- This file is part of TALER
- Copyright (C) 2024 Taler Systems SA
-
- TALER is free software; you can redistribute it and/or modify it under the
- terms of the GNU General Public License as published by the Free Software
- Foundation; either version 3, or (at your option) any later version.
-
- TALER is distributed in the hope that it will be useful, but WITHOUT ANY
- WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
- A PARTICULAR PURPOSE. See the GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License along with
- TALER; see the file COPYING. If not, see <http://www.gnu.org/licenses/>
- */
-
-
-#include "platform.h"
-#include <gnunet/gnunet_util_lib.h>
-#include <gnunet/gnunet_json_lib.h>
-#include <jansson.h>
-#include <microhttpd.h>
-#include <pthread.h>
-#include "taler_json_lib.h"
-#include "taler_mhd_lib.h"
-#include "taler-auditor-httpd.h"
-#include "taler-auditor-httpd_refreshes-hanging-upd.h"
-
-MHD_RESULT
-TAH_REFRESHES_HANGING_handler_update (
- struct TAH_RequestHandler *rh,
- struct MHD_Connection *connection,
- void **connection_cls,
- const char *upload_data,
- size_t *upload_data_size,
- const char *const args[])
-{
- enum GNUNET_DB_QueryStatus qs;
-
- if (GNUNET_SYSERR ==
- TAH_plugin->preflight (TAH_plugin->cls))
- {
- GNUNET_break (0);
- return TALER_MHD_reply_with_error (connection,
- MHD_HTTP_INTERNAL_SERVER_ERROR,
- TALER_EC_GENERIC_DB_SETUP_FAILED,
- NULL);
- }
-
- uint64_t row_id;
-
- if (args[2] != NULL)
- row_id = atoi (args[2]);
- else
- return TALER_MHD_reply_with_error (connection,
- MHD_HTTP_BAD_REQUEST,
- TALER_EC_AUDITOR_RESOURCE_NOT_FOUND,
- "no row id specified");
-
-
- struct TALER_AUDITORDB_Generic_Update gu;
-
- gu.row_id = row_id;
-
- struct GNUNET_JSON_Specification spec[] = {
-
- // GNUNET_JSON_spec_uint64 ("row_id", &gu.row_id),
- GNUNET_JSON_spec_bool ("suppressed", &gu.suppressed),
-
- GNUNET_JSON_spec_end ()
- };
-
- json_t *json;
-
- (void) rh;
- (void) connection_cls;
- (void) upload_data;
- (void) upload_data_size;
- {
- enum GNUNET_GenericReturnValue res;
-
- res = TALER_MHD_parse_post_json (connection,
- connection_cls,
- upload_data,
- upload_data_size,
- &json);
- if (GNUNET_SYSERR == res)
- return MHD_NO;
- if ((GNUNET_NO == res) ||
- (NULL == json))
- return MHD_YES;
- res = TALER_MHD_parse_json_data (connection,
- json,
- spec);
- if (GNUNET_SYSERR == res)
- {
- json_decref (json);
- return MHD_NO; /* hard failure */
- }
- if (GNUNET_NO == res)
- {
- json_decref (json);
- return MHD_YES; /* failure */
- }
- }
-
- /* execute transaction */
- qs = TAH_plugin->update_refreshes_hanging (TAH_plugin->cls, &gu);
-
- GNUNET_JSON_parse_free (spec);
- json_decref (json);
-
- MHD_RESULT ret = MHD_NO;
-
- switch (qs)
- {
- case GNUNET_DB_STATUS_HARD_ERROR:
- GNUNET_break (0);
- ret = TALER_MHD_reply_with_error (connection,
- MHD_HTTP_INTERNAL_SERVER_ERROR,
- TALER_EC_GENERIC_DB_STORE_FAILED,
- "update_account");
- break;
- case GNUNET_DB_STATUS_SOFT_ERROR:
- GNUNET_break (0);
- ret = TALER_MHD_reply_with_error (connection,
- MHD_HTTP_INTERNAL_SERVER_ERROR,
- TALER_EC_GENERIC_INTERNAL_INVARIANT_FAILURE,
- "unexpected serialization problem");
- break;
- case GNUNET_DB_STATUS_SUCCESS_NO_RESULTS:
- return TALER_MHD_reply_with_error (connection,
- MHD_HTTP_NOT_FOUND,
- TALER_EC_AUDITOR_RESOURCE_NOT_FOUND,
- "no updates executed");
- break;
- case GNUNET_DB_STATUS_SUCCESS_ONE_RESULT:
- ret = TALER_MHD_reply_static (connection,
- MHD_HTTP_NO_CONTENT,
- NULL,
- NULL,
- 0);
- break;
- }
-
- return ret;
-}
diff --git a/src/auditor/taler-auditor-httpd_refreshes-hanging-upd.h b/src/auditor/taler-auditor-httpd_refreshes-hanging-upd.h
deleted file mode 100644
index ffc241c55..000000000
--- a/src/auditor/taler-auditor-httpd_refreshes-hanging-upd.h
+++ /dev/null
@@ -1,34 +0,0 @@
-/*
- This file is part of TALER
- Copyright (C) 2024 Taler Systems SA
-
- TALER is free software; you can redistribute it and/or modify it under the
- terms of the GNU General Public License as published by the Free Software
- Foundation; either version 3, or (at your option) any later version.
-
- TALER is distributed in the hope that it will be useful, but WITHOUT ANY
- WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
- A PARTICULAR PURPOSE. See the GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License along with
- TALER; see the file COPYING. If not, see <http://www.gnu.org/licenses/>
- */
-
-
-#ifndef SRC_TALER_AUDITOR_HTTPD_REFRESHES_HANGING_UPD_H
-#define SRC_TALER_AUDITOR_HTTPD_REFRESHES_HANGING_UPD_H
-
-
-#include <microhttpd.h>
-#include "taler-auditor-httpd.h"
-
-MHD_RESULT
-TAH_REFRESHES_HANGING_handler_update (struct TAH_RequestHandler *rh,
- struct MHD_Connection *
- connection,
- void **connection_cls,
- const char *upload_data,
- size_t *upload_data_size,
- const char *const args[]);
-
-#endif // SRC_TALER_AUDITOR_HTTPD_REFRESHES_HANGING_UPD_H
diff --git a/src/auditor/taler-auditor-httpd_reserve-balance-insufficient-inconsistency-upd.c b/src/auditor/taler-auditor-httpd_reserve-balance-insufficient-inconsistency-upd.c
deleted file mode 100644
index d72915b06..000000000
--- a/src/auditor/taler-auditor-httpd_reserve-balance-insufficient-inconsistency-upd.c
+++ /dev/null
@@ -1,148 +0,0 @@
-/*
- This file is part of TALER
- Copyright (C) 2024 Taler Systems SA
-
- TALER is free software; you can redistribute it and/or modify it under the
- terms of the GNU General Public License as published by the Free Software
- Foundation; either version 3, or (at your option) any later version.
-
- TALER is distributed in the hope that it will be useful, but WITHOUT ANY
- WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
- A PARTICULAR PURPOSE. See the GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License along with
- TALER; see the file COPYING. If not, see <http://www.gnu.org/licenses/>
- */
-
-
-#include "platform.h"
-#include <gnunet/gnunet_util_lib.h>
-#include <gnunet/gnunet_json_lib.h>
-#include <jansson.h>
-#include <microhttpd.h>
-#include <pthread.h>
-#include "taler_json_lib.h"
-#include "taler_mhd_lib.h"
-#include "taler-auditor-httpd.h"
-#include "taler-auditor-httpd_reserve-balance-insufficient-inconsistency-upd.h"
-
-MHD_RESULT
-TAH_RESERVE_BALANCE_INSUFFICIENT_INCONSISTENCY_handler_update (
- struct TAH_RequestHandler *rh,
- struct MHD_Connection *connection,
- void **connection_cls,
- const char *upload_data,
- size_t *upload_data_size,
- const char *const args[])
-{
- enum GNUNET_DB_QueryStatus qs;
-
- if (GNUNET_SYSERR ==
- TAH_plugin->preflight (TAH_plugin->cls))
- {
- GNUNET_break (0);
- return TALER_MHD_reply_with_error (connection,
- MHD_HTTP_INTERNAL_SERVER_ERROR,
- TALER_EC_GENERIC_DB_SETUP_FAILED,
- NULL);
- }
-
- uint64_t row_id;
-
- if (args[2] != NULL)
- row_id = atoi (args[2]);
- else
- return TALER_MHD_reply_with_error (connection,
- MHD_HTTP_BAD_REQUEST,
- TALER_EC_AUDITOR_RESOURCE_NOT_FOUND,
- "no row id specified");
-
-
- struct TALER_AUDITORDB_Generic_Update gu;
-
- gu.row_id = row_id;
-
- struct GNUNET_JSON_Specification spec[] = {
-
- // GNUNET_JSON_spec_uint64 ("row_id", &gu.row_id),
- GNUNET_JSON_spec_bool ("suppressed", &gu.suppressed),
-
- GNUNET_JSON_spec_end ()
- };
-
- json_t *json;
-
- (void) rh;
- (void) connection_cls;
- (void) upload_data;
- (void) upload_data_size;
- {
- enum GNUNET_GenericReturnValue res;
-
- res = TALER_MHD_parse_post_json (connection,
- connection_cls,
- upload_data,
- upload_data_size,
- &json);
- if (GNUNET_SYSERR == res)
- return MHD_NO;
- if ((GNUNET_NO == res) ||
- (NULL == json))
- return MHD_YES;
- res = TALER_MHD_parse_json_data (connection,
- json,
- spec);
- if (GNUNET_SYSERR == res)
- {
- json_decref (json);
- return MHD_NO; /* hard failure */
- }
- if (GNUNET_NO == res)
- {
- json_decref (json);
- return MHD_YES; /* failure */
- }
- }
-
- /* execute transaction */
- qs = TAH_plugin->update_reserve_balance_insufficient_inconsistency (
- TAH_plugin->cls, &gu);
-
- GNUNET_JSON_parse_free (spec);
- json_decref (json);
-
- MHD_RESULT ret = MHD_NO;
-
- switch (qs)
- {
- case GNUNET_DB_STATUS_HARD_ERROR:
- GNUNET_break (0);
- ret = TALER_MHD_reply_with_error (connection,
- MHD_HTTP_INTERNAL_SERVER_ERROR,
- TALER_EC_GENERIC_DB_STORE_FAILED,
- "update_account");
- break;
- case GNUNET_DB_STATUS_SOFT_ERROR:
- GNUNET_break (0);
- ret = TALER_MHD_reply_with_error (connection,
- MHD_HTTP_INTERNAL_SERVER_ERROR,
- TALER_EC_GENERIC_INTERNAL_INVARIANT_FAILURE,
- "unexpected serialization problem");
- break;
- case GNUNET_DB_STATUS_SUCCESS_NO_RESULTS:
- return TALER_MHD_reply_with_error (connection,
- MHD_HTTP_NOT_FOUND,
- TALER_EC_AUDITOR_RESOURCE_NOT_FOUND,
- "no updates executed");
- break;
- case GNUNET_DB_STATUS_SUCCESS_ONE_RESULT:
- ret = TALER_MHD_reply_static (connection,
- MHD_HTTP_NO_CONTENT,
- NULL,
- NULL,
- 0);
- break;
- }
-
- return ret;
-}
diff --git a/src/auditor/taler-auditor-httpd_reserve-balance-insufficient-inconsistency-upd.h b/src/auditor/taler-auditor-httpd_reserve-balance-insufficient-inconsistency-upd.h
deleted file mode 100644
index 2b0df97dc..000000000
--- a/src/auditor/taler-auditor-httpd_reserve-balance-insufficient-inconsistency-upd.h
+++ /dev/null
@@ -1,42 +0,0 @@
-/*
- This file is part of TALER
- Copyright (C) 2024 Taler Systems SA
-
- TALER is free software; you can redistribute it and/or modify it under the
- terms of the GNU General Public License as published by the Free Software
- Foundation; either version 3, or (at your option) any later version.
-
- TALER is distributed in the hope that it will be useful, but WITHOUT ANY
- WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
- A PARTICULAR PURPOSE. See the GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License along with
- TALER; see the file COPYING. If not, see <http://www.gnu.org/licenses/>
- */
-
-
-#ifndef SRC_TALER_AUDITOR_HTTPD_RESERVE_BALANCE_INSUFFICIENT_INCONSISTENCY_UPD_H
-#define SRC_TALER_AUDITOR_HTTPD_RESERVE_BALANCE_INSUFFICIENT_INCONSISTENCY_UPD_H
-
-
-#include <microhttpd.h>
-#include "taler-auditor-httpd.h"
-
-MHD_RESULT
-TAH_RESERVE_BALANCE_INSUFFICIENT_INCONSISTENCY_handler_update (struct
- TAH_RequestHandler
- *rh,
- struct
- MHD_Connection *
- connection,
- void **
- connection_cls,
- const char *
- upload_data,
- size_t *
- upload_data_size,
- const char *const
- args[]);
-
-#endif \
- // SRC_TALER_AUDITOR_HTTPD_RESERVE_BALANCE_INSUFFICIENT_INCONSISTENCY_UPD_H
diff --git a/src/auditor/taler-auditor-httpd_reserve-balance-summary-wrong-inconsistency-upd.c b/src/auditor/taler-auditor-httpd_reserve-balance-summary-wrong-inconsistency-upd.c
deleted file mode 100644
index aa20c9ca7..000000000
--- a/src/auditor/taler-auditor-httpd_reserve-balance-summary-wrong-inconsistency-upd.c
+++ /dev/null
@@ -1,148 +0,0 @@
-/*
- This file is part of TALER
- Copyright (C) 2024 Taler Systems SA
-
- TALER is free software; you can redistribute it and/or modify it under the
- terms of the GNU General Public License as published by the Free Software
- Foundation; either version 3, or (at your option) any later version.
-
- TALER is distributed in the hope that it will be useful, but WITHOUT ANY
- WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
- A PARTICULAR PURPOSE. See the GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License along with
- TALER; see the file COPYING. If not, see <http://www.gnu.org/licenses/>
- */
-
-
-#include "platform.h"
-#include <gnunet/gnunet_util_lib.h>
-#include <gnunet/gnunet_json_lib.h>
-#include <jansson.h>
-#include <microhttpd.h>
-#include <pthread.h>
-#include "taler_json_lib.h"
-#include "taler_mhd_lib.h"
-#include "taler-auditor-httpd.h"
-#include "taler-auditor-httpd_reserve-balance-summary-wrong-inconsistency-upd.h"
-
-MHD_RESULT
-TAH_RESERVE_BALANCE_SUMMARY_WRONG_INCONSISTENCY_handler_update (
- struct TAH_RequestHandler *rh,
- struct MHD_Connection *connection,
- void **connection_cls,
- const char *upload_data,
- size_t *upload_data_size,
- const char *const args[])
-{
- enum GNUNET_DB_QueryStatus qs;
-
- if (GNUNET_SYSERR ==
- TAH_plugin->preflight (TAH_plugin->cls))
- {
- GNUNET_break (0);
- return TALER_MHD_reply_with_error (connection,
- MHD_HTTP_INTERNAL_SERVER_ERROR,
- TALER_EC_GENERIC_DB_SETUP_FAILED,
- NULL);
- }
-
- uint64_t row_id;
-
- if (args[2] != NULL)
- row_id = atoi (args[2]);
- else
- return TALER_MHD_reply_with_error (connection,
- MHD_HTTP_BAD_REQUEST,
- TALER_EC_AUDITOR_RESOURCE_NOT_FOUND,
- "no row id specified");
-
-
- struct TALER_AUDITORDB_Generic_Update gu;
-
- gu.row_id = row_id;
-
- struct GNUNET_JSON_Specification spec[] = {
-
- // GNUNET_JSON_spec_uint64 ("row_id", &gu.row_id),
- GNUNET_JSON_spec_bool ("suppressed", &gu.suppressed),
-
- GNUNET_JSON_spec_end ()
- };
-
- json_t *json;
-
- (void) rh;
- (void) connection_cls;
- (void) upload_data;
- (void) upload_data_size;
- {
- enum GNUNET_GenericReturnValue res;
-
- res = TALER_MHD_parse_post_json (connection,
- connection_cls,
- upload_data,
- upload_data_size,
- &json);
- if (GNUNET_SYSERR == res)
- return MHD_NO;
- if ((GNUNET_NO == res) ||
- (NULL == json))
- return MHD_YES;
- res = TALER_MHD_parse_json_data (connection,
- json,
- spec);
- if (GNUNET_SYSERR == res)
- {
- json_decref (json);
- return MHD_NO; /* hard failure */
- }
- if (GNUNET_NO == res)
- {
- json_decref (json);
- return MHD_YES; /* failure */
- }
- }
-
- /* execute transaction */
- qs = TAH_plugin->update_reserve_balance_summary_wrong_inconsistency (
- TAH_plugin->cls, &gu);
-
- GNUNET_JSON_parse_free (spec);
- json_decref (json);
-
- MHD_RESULT ret = MHD_NO;
-
- switch (qs)
- {
- case GNUNET_DB_STATUS_HARD_ERROR:
- GNUNET_break (0);
- ret = TALER_MHD_reply_with_error (connection,
- MHD_HTTP_INTERNAL_SERVER_ERROR,
- TALER_EC_GENERIC_DB_STORE_FAILED,
- "update_account");
- break;
- case GNUNET_DB_STATUS_SOFT_ERROR:
- GNUNET_break (0);
- ret = TALER_MHD_reply_with_error (connection,
- MHD_HTTP_INTERNAL_SERVER_ERROR,
- TALER_EC_GENERIC_INTERNAL_INVARIANT_FAILURE,
- "unexpected serialization problem");
- break;
- case GNUNET_DB_STATUS_SUCCESS_NO_RESULTS:
- return TALER_MHD_reply_with_error (connection,
- MHD_HTTP_NOT_FOUND,
- TALER_EC_AUDITOR_RESOURCE_NOT_FOUND,
- "no updates executed");
- break;
- case GNUNET_DB_STATUS_SUCCESS_ONE_RESULT:
- ret = TALER_MHD_reply_static (connection,
- MHD_HTTP_NO_CONTENT,
- NULL,
- NULL,
- 0);
- break;
- }
-
- return ret;
-}
diff --git a/src/auditor/taler-auditor-httpd_reserve-balance-summary-wrong-inconsistency-upd.h b/src/auditor/taler-auditor-httpd_reserve-balance-summary-wrong-inconsistency-upd.h
deleted file mode 100644
index 939b4e01a..000000000
--- a/src/auditor/taler-auditor-httpd_reserve-balance-summary-wrong-inconsistency-upd.h
+++ /dev/null
@@ -1,44 +0,0 @@
-/*
- This file is part of TALER
- Copyright (C) 2024 Taler Systems SA
-
- TALER is free software; you can redistribute it and/or modify it under the
- terms of the GNU General Public License as published by the Free Software
- Foundation; either version 3, or (at your option) any later version.
-
- TALER is distributed in the hope that it will be useful, but WITHOUT ANY
- WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
- A PARTICULAR PURPOSE. See the GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License along with
- TALER; see the file COPYING. If not, see <http://www.gnu.org/licenses/>
- */
-
-
-#ifndef \
- SRC_TALER_AUDITOR_HTTPD_RESERVE_BALANCE_SUMMARY_WRONG_INCONSISTENCY_UPD_H
-#define \
- SRC_TALER_AUDITOR_HTTPD_RESERVE_BALANCE_SUMMARY_WRONG_INCONSISTENCY_UPD_H
-
-
-#include <microhttpd.h>
-#include "taler-auditor-httpd.h"
-
-MHD_RESULT
-TAH_RESERVE_BALANCE_SUMMARY_WRONG_INCONSISTENCY_handler_update (struct
- TAH_RequestHandler
- *rh,
- struct
- MHD_Connection *
- connection,
- void **
- connection_cls,
- const char *
- upload_data,
- size_t *
- upload_data_size,
- const char *
- const args[]);
-
-#endif \
- // SRC_TALER_AUDITOR_HTTPD_RESERVE_BALANCE_SUMMARY_WRONG_INCONSISTENCY_UPD_H
diff --git a/src/auditor/taler-auditor-httpd_reserve-in-inconsistency-upd.c b/src/auditor/taler-auditor-httpd_reserve-in-inconsistency-upd.c
deleted file mode 100644
index c4707bb15..000000000
--- a/src/auditor/taler-auditor-httpd_reserve-in-inconsistency-upd.c
+++ /dev/null
@@ -1,147 +0,0 @@
-/*
- This file is part of TALER
- Copyright (C) 2024 Taler Systems SA
-
- TALER is free software; you can redistribute it and/or modify it under the
- terms of the GNU General Public License as published by the Free Software
- Foundation; either version 3, or (at your option) any later version.
-
- TALER is distributed in the hope that it will be useful, but WITHOUT ANY
- WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
- A PARTICULAR PURPOSE. See the GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License along with
- TALER; see the file COPYING. If not, see <http://www.gnu.org/licenses/>
- */
-
-
-#include "platform.h"
-#include <gnunet/gnunet_util_lib.h>
-#include <gnunet/gnunet_json_lib.h>
-#include <jansson.h>
-#include <microhttpd.h>
-#include <pthread.h>
-#include "taler_json_lib.h"
-#include "taler_mhd_lib.h"
-#include "taler-auditor-httpd.h"
-#include "taler-auditor-httpd_reserve-in-inconsistency-upd.h"
-
-MHD_RESULT
-TAH_RESERVE_IN_INCONSISTENCY_handler_update (
- struct TAH_RequestHandler *rh,
- struct MHD_Connection *connection,
- void **connection_cls,
- const char *upload_data,
- size_t *upload_data_size,
- const char *const args[])
-{
- enum GNUNET_DB_QueryStatus qs;
-
- if (GNUNET_SYSERR ==
- TAH_plugin->preflight (TAH_plugin->cls))
- {
- GNUNET_break (0);
- return TALER_MHD_reply_with_error (connection,
- MHD_HTTP_INTERNAL_SERVER_ERROR,
- TALER_EC_GENERIC_DB_SETUP_FAILED,
- NULL);
- }
-
- uint64_t row_id;
-
- if (args[2] != NULL)
- row_id = atoi (args[2]);
- else
- return TALER_MHD_reply_with_error (connection,
- MHD_HTTP_BAD_REQUEST,
- TALER_EC_AUDITOR_RESOURCE_NOT_FOUND,
- "no row id specified");
-
-
- struct TALER_AUDITORDB_Generic_Update gu;
-
- gu.row_id = row_id;
-
- struct GNUNET_JSON_Specification spec[] = {
-
- // GNUNET_JSON_spec_uint64 ("row_id", &gu.row_id),
- GNUNET_JSON_spec_bool ("suppressed", &gu.suppressed),
-
- GNUNET_JSON_spec_end ()
- };
-
- json_t *json;
-
- (void) rh;
- (void) connection_cls;
- (void) upload_data;
- (void) upload_data_size;
- {
- enum GNUNET_GenericReturnValue res;
-
- res = TALER_MHD_parse_post_json (connection,
- connection_cls,
- upload_data,
- upload_data_size,
- &json);
- if (GNUNET_SYSERR == res)
- return MHD_NO;
- if ((GNUNET_NO == res) ||
- (NULL == json))
- return MHD_YES;
- res = TALER_MHD_parse_json_data (connection,
- json,
- spec);
- if (GNUNET_SYSERR == res)
- {
- json_decref (json);
- return MHD_NO; /* hard failure */
- }
- if (GNUNET_NO == res)
- {
- json_decref (json);
- return MHD_YES; /* failure */
- }
- }
-
- /* execute transaction */
- qs = TAH_plugin->update_reserve_in_inconsistency (TAH_plugin->cls, &gu);
-
- GNUNET_JSON_parse_free (spec);
- json_decref (json);
-
- MHD_RESULT ret = MHD_NO;
-
- switch (qs)
- {
- case GNUNET_DB_STATUS_HARD_ERROR:
- GNUNET_break (0);
- ret = TALER_MHD_reply_with_error (connection,
- MHD_HTTP_INTERNAL_SERVER_ERROR,
- TALER_EC_GENERIC_DB_STORE_FAILED,
- "update_account");
- break;
- case GNUNET_DB_STATUS_SOFT_ERROR:
- GNUNET_break (0);
- ret = TALER_MHD_reply_with_error (connection,
- MHD_HTTP_INTERNAL_SERVER_ERROR,
- TALER_EC_GENERIC_INTERNAL_INVARIANT_FAILURE,
- "unexpected serialization problem");
- break;
- case GNUNET_DB_STATUS_SUCCESS_NO_RESULTS:
- return TALER_MHD_reply_with_error (connection,
- MHD_HTTP_NOT_FOUND,
- TALER_EC_AUDITOR_RESOURCE_NOT_FOUND,
- "no updates executed");
- break;
- case GNUNET_DB_STATUS_SUCCESS_ONE_RESULT:
- ret = TALER_MHD_reply_static (connection,
- MHD_HTTP_NO_CONTENT,
- NULL,
- NULL,
- 0);
- break;
- }
-
- return ret;
-}
diff --git a/src/auditor/taler-auditor-httpd_reserve-in-inconsistency-upd.h b/src/auditor/taler-auditor-httpd_reserve-in-inconsistency-upd.h
deleted file mode 100644
index 0f66574df..000000000
--- a/src/auditor/taler-auditor-httpd_reserve-in-inconsistency-upd.h
+++ /dev/null
@@ -1,34 +0,0 @@
-/*
- This file is part of TALER
- Copyright (C) 2024 Taler Systems SA
-
- TALER is free software; you can redistribute it and/or modify it under the
- terms of the GNU General Public License as published by the Free Software
- Foundation; either version 3, or (at your option) any later version.
-
- TALER is distributed in the hope that it will be useful, but WITHOUT ANY
- WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
- A PARTICULAR PURPOSE. See the GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License along with
- TALER; see the file COPYING. If not, see <http://www.gnu.org/licenses/>
- */
-
-
-#ifndef SRC_TALER_AUDITOR_HTTPD_RESERVE_IN_INCONSISTENCY_UPD_H
-#define SRC_TALER_AUDITOR_HTTPD_RESERVE_IN_INCONSISTENCY_UPD_H
-
-
-#include <microhttpd.h>
-#include "taler-auditor-httpd.h"
-
-MHD_RESULT
-TAH_RESERVE_IN_INCONSISTENCY_handler_update (struct TAH_RequestHandler *rh,
- struct MHD_Connection *
- connection,
- void **connection_cls,
- const char *upload_data,
- size_t *upload_data_size,
- const char *const args[]);
-
-#endif // SRC_TALER_AUDITOR_HTTPD_RESERVE_IN_INCONSISTENCY_UPD_H
diff --git a/src/auditor/taler-auditor-httpd_reserve-not-closed-inconsistency-upd.c b/src/auditor/taler-auditor-httpd_reserve-not-closed-inconsistency-upd.c
deleted file mode 100644
index 586b15cdc..000000000
--- a/src/auditor/taler-auditor-httpd_reserve-not-closed-inconsistency-upd.c
+++ /dev/null
@@ -1,148 +0,0 @@
-/*
- This file is part of TALER
- Copyright (C) 2024 Taler Systems SA
-
- TALER is free software; you can redistribute it and/or modify it under the
- terms of the GNU General Public License as published by the Free Software
- Foundation; either version 3, or (at your option) any later version.
-
- TALER is distributed in the hope that it will be useful, but WITHOUT ANY
- WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
- A PARTICULAR PURPOSE. See the GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License along with
- TALER; see the file COPYING. If not, see <http://www.gnu.org/licenses/>
- */
-
-
-#include "platform.h"
-#include <gnunet/gnunet_util_lib.h>
-#include <gnunet/gnunet_json_lib.h>
-#include <jansson.h>
-#include <microhttpd.h>
-#include <pthread.h>
-#include "taler_json_lib.h"
-#include "taler_mhd_lib.h"
-#include "taler-auditor-httpd.h"
-#include "taler-auditor-httpd_reserve-not-closed-inconsistency-upd.h"
-
-MHD_RESULT
-TAH_RESERVE_NOT_CLOSED_INCONSISTENCY_handler_update (
- struct TAH_RequestHandler *rh,
- struct MHD_Connection *connection,
- void **connection_cls,
- const char *upload_data,
- size_t *upload_data_size,
- const char *const args[])
-{
- enum GNUNET_DB_QueryStatus qs;
-
- if (GNUNET_SYSERR ==
- TAH_plugin->preflight (TAH_plugin->cls))
- {
- GNUNET_break (0);
- return TALER_MHD_reply_with_error (connection,
- MHD_HTTP_INTERNAL_SERVER_ERROR,
- TALER_EC_GENERIC_DB_SETUP_FAILED,
- NULL);
- }
-
- uint64_t row_id;
-
- if (args[2] != NULL)
- row_id = atoi (args[2]);
- else
- return TALER_MHD_reply_with_error (connection,
- MHD_HTTP_BAD_REQUEST,
- TALER_EC_AUDITOR_RESOURCE_NOT_FOUND,
- "no row id specified");
-
-
- struct TALER_AUDITORDB_Generic_Update gu;
-
- gu.row_id = row_id;
-
- struct GNUNET_JSON_Specification spec[] = {
-
- // GNUNET_JSON_spec_uint64 ("row_id", &gu.row_id),
- GNUNET_JSON_spec_bool ("suppressed", &gu.suppressed),
-
- GNUNET_JSON_spec_end ()
- };
-
- json_t *json;
-
- (void) rh;
- (void) connection_cls;
- (void) upload_data;
- (void) upload_data_size;
- {
- enum GNUNET_GenericReturnValue res;
-
- res = TALER_MHD_parse_post_json (connection,
- connection_cls,
- upload_data,
- upload_data_size,
- &json);
- if (GNUNET_SYSERR == res)
- return MHD_NO;
- if ((GNUNET_NO == res) ||
- (NULL == json))
- return MHD_YES;
- res = TALER_MHD_parse_json_data (connection,
- json,
- spec);
- if (GNUNET_SYSERR == res)
- {
- json_decref (json);
- return MHD_NO; /* hard failure */
- }
- if (GNUNET_NO == res)
- {
- json_decref (json);
- return MHD_YES; /* failure */
- }
- }
-
- /* execute transaction */
- qs = TAH_plugin->update_reserve_not_closed_inconsistency (TAH_plugin->cls,
- &gu);
-
- GNUNET_JSON_parse_free (spec);
- json_decref (json);
-
- MHD_RESULT ret = MHD_NO;
-
- switch (qs)
- {
- case GNUNET_DB_STATUS_HARD_ERROR:
- GNUNET_break (0);
- ret = TALER_MHD_reply_with_error (connection,
- MHD_HTTP_INTERNAL_SERVER_ERROR,
- TALER_EC_GENERIC_DB_STORE_FAILED,
- "update_account");
- break;
- case GNUNET_DB_STATUS_SOFT_ERROR:
- GNUNET_break (0);
- ret = TALER_MHD_reply_with_error (connection,
- MHD_HTTP_INTERNAL_SERVER_ERROR,
- TALER_EC_GENERIC_INTERNAL_INVARIANT_FAILURE,
- "unexpected serialization problem");
- break;
- case GNUNET_DB_STATUS_SUCCESS_NO_RESULTS:
- return TALER_MHD_reply_with_error (connection,
- MHD_HTTP_NOT_FOUND,
- TALER_EC_AUDITOR_RESOURCE_NOT_FOUND,
- "no updates executed");
- break;
- case GNUNET_DB_STATUS_SUCCESS_ONE_RESULT:
- ret = TALER_MHD_reply_static (connection,
- MHD_HTTP_NO_CONTENT,
- NULL,
- NULL,
- 0);
- break;
- }
-
- return ret;
-}
diff --git a/src/auditor/taler-auditor-httpd_reserve-not-closed-inconsistency-upd.h b/src/auditor/taler-auditor-httpd_reserve-not-closed-inconsistency-upd.h
deleted file mode 100644
index 7a8fa6d4e..000000000
--- a/src/auditor/taler-auditor-httpd_reserve-not-closed-inconsistency-upd.h
+++ /dev/null
@@ -1,35 +0,0 @@
-/*
- This file is part of TALER
- Copyright (C) 2024 Taler Systems SA
-
- TALER is free software; you can redistribute it and/or modify it under the
- terms of the GNU General Public License as published by the Free Software
- Foundation; either version 3, or (at your option) any later version.
-
- TALER is distributed in the hope that it will be useful, but WITHOUT ANY
- WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
- A PARTICULAR PURPOSE. See the GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License along with
- TALER; see the file COPYING. If not, see <http://www.gnu.org/licenses/>
- */
-
-
-#ifndef SRC_TALER_AUDITOR_HTTPD_RESERVE_NOT_CLOSED_INCONSISTENCY_UPD_H
-#define SRC_TALER_AUDITOR_HTTPD_RESERVE_NOT_CLOSED_INCONSISTENCY_UPD_H
-
-
-#include <microhttpd.h>
-#include "taler-auditor-httpd.h"
-
-MHD_RESULT
-TAH_RESERVE_NOT_CLOSED_INCONSISTENCY_handler_update (struct
- TAH_RequestHandler *rh,
- struct MHD_Connection *
- connection,
- void **connection_cls,
- const char *upload_data,
- size_t *upload_data_size,
- const char *const args[]);
-
-#endif // SRC_TALER_AUDITOR_HTTPD_RESERVE_NOT_CLOSED_INCONSISTENCY_UPD_H
diff --git a/src/auditor/taler-auditor-httpd_row-inconsistency-upd.c b/src/auditor/taler-auditor-httpd_row-inconsistency-upd.c
deleted file mode 100644
index 405af1414..000000000
--- a/src/auditor/taler-auditor-httpd_row-inconsistency-upd.c
+++ /dev/null
@@ -1,147 +0,0 @@
-/*
- This file is part of TALER
- Copyright (C) 2024 Taler Systems SA
-
- TALER is free software; you can redistribute it and/or modify it under the
- terms of the GNU General Public License as published by the Free Software
- Foundation; either version 3, or (at your option) any later version.
-
- TALER is distributed in the hope that it will be useful, but WITHOUT ANY
- WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
- A PARTICULAR PURPOSE. See the GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License along with
- TALER; see the file COPYING. If not, see <http://www.gnu.org/licenses/>
- */
-
-
-#include "platform.h"
-#include <gnunet/gnunet_util_lib.h>
-#include <gnunet/gnunet_json_lib.h>
-#include <jansson.h>
-#include <microhttpd.h>
-#include <pthread.h>
-#include "taler_json_lib.h"
-#include "taler_mhd_lib.h"
-#include "taler-auditor-httpd.h"
-#include "taler-auditor-httpd_row-inconsistency-upd.h"
-
-MHD_RESULT
-TAH_ROW_INCONSISTENCY_handler_update (
- struct TAH_RequestHandler *rh,
- struct MHD_Connection *connection,
- void **connection_cls,
- const char *upload_data,
- size_t *upload_data_size,
- const char *const args[])
-{
- enum GNUNET_DB_QueryStatus qs;
-
- if (GNUNET_SYSERR ==
- TAH_plugin->preflight (TAH_plugin->cls))
- {
- GNUNET_break (0);
- return TALER_MHD_reply_with_error (connection,
- MHD_HTTP_INTERNAL_SERVER_ERROR,
- TALER_EC_GENERIC_DB_SETUP_FAILED,
- NULL);
- }
-
- uint64_t row_id;
-
- if (args[2] != NULL)
- row_id = atoi (args[2]);
- else
- return TALER_MHD_reply_with_error (connection,
- MHD_HTTP_BAD_REQUEST,
- TALER_EC_AUDITOR_RESOURCE_NOT_FOUND,
- "no row id specified");
-
-
- struct TALER_AUDITORDB_Generic_Update gu;
-
- gu.row_id = row_id;
-
- struct GNUNET_JSON_Specification spec[] = {
-
- // GNUNET_JSON_spec_uint64 ("row_id", &gu.row_id),
- GNUNET_JSON_spec_bool ("suppressed", &gu.suppressed),
-
- GNUNET_JSON_spec_end ()
- };
-
- json_t *json;
-
- (void) rh;
- (void) connection_cls;
- (void) upload_data;
- (void) upload_data_size;
- {
- enum GNUNET_GenericReturnValue res;
-
- res = TALER_MHD_parse_post_json (connection,
- connection_cls,
- upload_data,
- upload_data_size,
- &json);
- if (GNUNET_SYSERR == res)
- return MHD_NO;
- if ((GNUNET_NO == res) ||
- (NULL == json))
- return MHD_YES;
- res = TALER_MHD_parse_json_data (connection,
- json,
- spec);
- if (GNUNET_SYSERR == res)
- {
- json_decref (json);
- return MHD_NO; /* hard failure */
- }
- if (GNUNET_NO == res)
- {
- json_decref (json);
- return MHD_YES; /* failure */
- }
- }
-
- /* execute transaction */
- qs = TAH_plugin->update_row_inconsistency (TAH_plugin->cls, &gu);
-
- GNUNET_JSON_parse_free (spec);
- json_decref (json);
-
- MHD_RESULT ret = MHD_NO;
-
- switch (qs)
- {
- case GNUNET_DB_STATUS_HARD_ERROR:
- GNUNET_break (0);
- ret = TALER_MHD_reply_with_error (connection,
- MHD_HTTP_INTERNAL_SERVER_ERROR,
- TALER_EC_GENERIC_DB_STORE_FAILED,
- "update_account");
- break;
- case GNUNET_DB_STATUS_SOFT_ERROR:
- GNUNET_break (0);
- ret = TALER_MHD_reply_with_error (connection,
- MHD_HTTP_INTERNAL_SERVER_ERROR,
- TALER_EC_GENERIC_INTERNAL_INVARIANT_FAILURE,
- "unexpected serialization problem");
- break;
- case GNUNET_DB_STATUS_SUCCESS_NO_RESULTS:
- return TALER_MHD_reply_with_error (connection,
- MHD_HTTP_NOT_FOUND,
- TALER_EC_AUDITOR_RESOURCE_NOT_FOUND,
- "no updates executed");
- break;
- case GNUNET_DB_STATUS_SUCCESS_ONE_RESULT:
- ret = TALER_MHD_reply_static (connection,
- MHD_HTTP_NO_CONTENT,
- NULL,
- NULL,
- 0);
- break;
- }
-
- return ret;
-}
diff --git a/src/auditor/taler-auditor-httpd_row-inconsistency-upd.h b/src/auditor/taler-auditor-httpd_row-inconsistency-upd.h
deleted file mode 100644
index 9b29d1e0d..000000000
--- a/src/auditor/taler-auditor-httpd_row-inconsistency-upd.h
+++ /dev/null
@@ -1,34 +0,0 @@
-/*
- This file is part of TALER
- Copyright (C) 2024 Taler Systems SA
-
- TALER is free software; you can redistribute it and/or modify it under the
- terms of the GNU General Public License as published by the Free Software
- Foundation; either version 3, or (at your option) any later version.
-
- TALER is distributed in the hope that it will be useful, but WITHOUT ANY
- WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
- A PARTICULAR PURPOSE. See the GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License along with
- TALER; see the file COPYING. If not, see <http://www.gnu.org/licenses/>
- */
-
-
-#ifndef SRC_TALER_AUDITOR_HTTPD_ROW_INCONSISTENCY_UPD_H
-#define SRC_TALER_AUDITOR_HTTPD_ROW_INCONSISTENCY_UPD_H
-
-
-#include <microhttpd.h>
-#include "taler-auditor-httpd.h"
-
-MHD_RESULT
-TAH_ROW_INCONSISTENCY_handler_update (struct TAH_RequestHandler *rh,
- struct MHD_Connection *
- connection,
- void **connection_cls,
- const char *upload_data,
- size_t *upload_data_size,
- const char *const args[]);
-
-#endif // SRC_TALER_AUDITOR_HTTPD_ROW_INCONSISTENCY_UPD_H
diff --git a/src/auditor/taler-auditor-httpd_row-minor-inconsistencies-upd.c b/src/auditor/taler-auditor-httpd_row-minor-inconsistencies-upd.c
deleted file mode 100644
index 515b2ea10..000000000
--- a/src/auditor/taler-auditor-httpd_row-minor-inconsistencies-upd.c
+++ /dev/null
@@ -1,147 +0,0 @@
-/*
- This file is part of TALER
- Copyright (C) 2024 Taler Systems SA
-
- TALER is free software; you can redistribute it and/or modify it under the
- terms of the GNU General Public License as published by the Free Software
- Foundation; either version 3, or (at your option) any later version.
-
- TALER is distributed in the hope that it will be useful, but WITHOUT ANY
- WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
- A PARTICULAR PURPOSE. See the GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License along with
- TALER; see the file COPYING. If not, see <http://www.gnu.org/licenses/>
- */
-
-
-#include "platform.h"
-#include <gnunet/gnunet_util_lib.h>
-#include <gnunet/gnunet_json_lib.h>
-#include <jansson.h>
-#include <microhttpd.h>
-#include <pthread.h>
-#include "taler_json_lib.h"
-#include "taler_mhd_lib.h"
-#include "taler-auditor-httpd.h"
-#include "taler-auditor-httpd_row-minor-inconsistencies-upd.h"
-
-MHD_RESULT
-TAH_ROW_MINOR_INCONSISTENCIES_handler_update (
- struct TAH_RequestHandler *rh,
- struct MHD_Connection *connection,
- void **connection_cls,
- const char *upload_data,
- size_t *upload_data_size,
- const char *const args[])
-{
- enum GNUNET_DB_QueryStatus qs;
-
- if (GNUNET_SYSERR ==
- TAH_plugin->preflight (TAH_plugin->cls))
- {
- GNUNET_break (0);
- return TALER_MHD_reply_with_error (connection,
- MHD_HTTP_INTERNAL_SERVER_ERROR,
- TALER_EC_GENERIC_DB_SETUP_FAILED,
- NULL);
- }
-
- uint64_t row_id;
-
- if (args[2] != NULL)
- row_id = atoi (args[2]);
- else
- return TALER_MHD_reply_with_error (connection,
- MHD_HTTP_BAD_REQUEST,
- TALER_EC_AUDITOR_RESOURCE_NOT_FOUND,
- "no row id specified");
-
-
- struct TALER_AUDITORDB_Generic_Update gu;
-
- gu.row_id = row_id;
-
- struct GNUNET_JSON_Specification spec[] = {
-
- // GNUNET_JSON_spec_uint64 ("row_id", &gu.row_id),
- GNUNET_JSON_spec_bool ("suppressed", &gu.suppressed),
-
- GNUNET_JSON_spec_end ()
- };
-
- json_t *json;
-
- (void) rh;
- (void) connection_cls;
- (void) upload_data;
- (void) upload_data_size;
- {
- enum GNUNET_GenericReturnValue res;
-
- res = TALER_MHD_parse_post_json (connection,
- connection_cls,
- upload_data,
- upload_data_size,
- &json);
- if (GNUNET_SYSERR == res)
- return MHD_NO;
- if ((GNUNET_NO == res) ||
- (NULL == json))
- return MHD_YES;
- res = TALER_MHD_parse_json_data (connection,
- json,
- spec);
- if (GNUNET_SYSERR == res)
- {
- json_decref (json);
- return MHD_NO; /* hard failure */
- }
- if (GNUNET_NO == res)
- {
- json_decref (json);
- return MHD_YES; /* failure */
- }
- }
-
- /* execute transaction */
- qs = TAH_plugin->update_row_minor_inconsistencies (TAH_plugin->cls, &gu);
-
- GNUNET_JSON_parse_free (spec);
- json_decref (json);
-
- MHD_RESULT ret = MHD_NO;
-
- switch (qs)
- {
- case GNUNET_DB_STATUS_HARD_ERROR:
- GNUNET_break (0);
- ret = TALER_MHD_reply_with_error (connection,
- MHD_HTTP_INTERNAL_SERVER_ERROR,
- TALER_EC_GENERIC_DB_STORE_FAILED,
- "update_account");
- break;
- case GNUNET_DB_STATUS_SOFT_ERROR:
- GNUNET_break (0);
- ret = TALER_MHD_reply_with_error (connection,
- MHD_HTTP_INTERNAL_SERVER_ERROR,
- TALER_EC_GENERIC_INTERNAL_INVARIANT_FAILURE,
- "unexpected serialization problem");
- break;
- case GNUNET_DB_STATUS_SUCCESS_NO_RESULTS:
- return TALER_MHD_reply_with_error (connection,
- MHD_HTTP_NOT_FOUND,
- TALER_EC_AUDITOR_RESOURCE_NOT_FOUND,
- "no updates executed");
- break;
- case GNUNET_DB_STATUS_SUCCESS_ONE_RESULT:
- ret = TALER_MHD_reply_static (connection,
- MHD_HTTP_NO_CONTENT,
- NULL,
- NULL,
- 0);
- break;
- }
-
- return ret;
-}
diff --git a/src/auditor/taler-auditor-httpd_row-minor-inconsistencies-upd.h b/src/auditor/taler-auditor-httpd_row-minor-inconsistencies-upd.h
deleted file mode 100644
index 8ff1fd16d..000000000
--- a/src/auditor/taler-auditor-httpd_row-minor-inconsistencies-upd.h
+++ /dev/null
@@ -1,34 +0,0 @@
-/*
- This file is part of TALER
- Copyright (C) 2024 Taler Systems SA
-
- TALER is free software; you can redistribute it and/or modify it under the
- terms of the GNU General Public License as published by the Free Software
- Foundation; either version 3, or (at your option) any later version.
-
- TALER is distributed in the hope that it will be useful, but WITHOUT ANY
- WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
- A PARTICULAR PURPOSE. See the GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License along with
- TALER; see the file COPYING. If not, see <http://www.gnu.org/licenses/>
- */
-
-
-#ifndef SRC_TALER_AUDITOR_HTTPD_ROW_MINOR_INCONSISTENCIES_UPD_H
-#define SRC_TALER_AUDITOR_HTTPD_ROW_MINOR_INCONSISTENCIES_UPD_H
-
-
-#include <microhttpd.h>
-#include "taler-auditor-httpd.h"
-
-MHD_RESULT
-TAH_ROW_MINOR_INCONSISTENCIES_handler_update (struct TAH_RequestHandler *rh,
- struct MHD_Connection *
- connection,
- void **connection_cls,
- const char *upload_data,
- size_t *upload_data_size,
- const char *const args[]);
-
-#endif // SRC_TALER_AUDITOR_HTTPD_ROW_MINOR_INCONSISTENCIES_UPD_H
diff --git a/src/auditor/taler-auditor-httpd_wire-format-inconsistency-upd.c b/src/auditor/taler-auditor-httpd_wire-format-inconsistency-upd.c
deleted file mode 100644
index de3b90c2d..000000000
--- a/src/auditor/taler-auditor-httpd_wire-format-inconsistency-upd.c
+++ /dev/null
@@ -1,147 +0,0 @@
-/*
- This file is part of TALER
- Copyright (C) 2024 Taler Systems SA
-
- TALER is free software; you can redistribute it and/or modify it under the
- terms of the GNU General Public License as published by the Free Software
- Foundation; either version 3, or (at your option) any later version.
-
- TALER is distributed in the hope that it will be useful, but WITHOUT ANY
- WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
- A PARTICULAR PURPOSE. See the GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License along with
- TALER; see the file COPYING. If not, see <http://www.gnu.org/licenses/>
- */
-
-
-#include "platform.h"
-#include <gnunet/gnunet_util_lib.h>
-#include <gnunet/gnunet_json_lib.h>
-#include <jansson.h>
-#include <microhttpd.h>
-#include <pthread.h>
-#include "taler_json_lib.h"
-#include "taler_mhd_lib.h"
-#include "taler-auditor-httpd.h"
-#include "taler-auditor-httpd_wire-format-inconsistency-upd.h"
-
-MHD_RESULT
-TAH_WIRE_FORMAT_INCONSISTENCY_handler_update (
- struct TAH_RequestHandler *rh,
- struct MHD_Connection *connection,
- void **connection_cls,
- const char *upload_data,
- size_t *upload_data_size,
- const char *const args[])
-{
- enum GNUNET_DB_QueryStatus qs;
-
- if (GNUNET_SYSERR ==
- TAH_plugin->preflight (TAH_plugin->cls))
- {
- GNUNET_break (0);
- return TALER_MHD_reply_with_error (connection,
- MHD_HTTP_INTERNAL_SERVER_ERROR,
- TALER_EC_GENERIC_DB_SETUP_FAILED,
- NULL);
- }
-
- uint64_t row_id;
-
- if (args[2] != NULL)
- row_id = atoi (args[2]);
- else
- return TALER_MHD_reply_with_error (connection,
- MHD_HTTP_BAD_REQUEST,
- TALER_EC_AUDITOR_RESOURCE_NOT_FOUND,
- "no row id specified");
-
-
- struct TALER_AUDITORDB_Generic_Update gu;
-
- gu.row_id = row_id;
-
- struct GNUNET_JSON_Specification spec[] = {
-
- // GNUNET_JSON_spec_uint64 ("row_id", &gu.row_id),
- GNUNET_JSON_spec_bool ("suppressed", &gu.suppressed),
-
- GNUNET_JSON_spec_end ()
- };
-
- json_t *json;
-
- (void) rh;
- (void) connection_cls;
- (void) upload_data;
- (void) upload_data_size;
- {
- enum GNUNET_GenericReturnValue res;
-
- res = TALER_MHD_parse_post_json (connection,
- connection_cls,
- upload_data,
- upload_data_size,
- &json);
- if (GNUNET_SYSERR == res)
- return MHD_NO;
- if ((GNUNET_NO == res) ||
- (NULL == json))
- return MHD_YES;
- res = TALER_MHD_parse_json_data (connection,
- json,
- spec);
- if (GNUNET_SYSERR == res)
- {
- json_decref (json);
- return MHD_NO; /* hard failure */
- }
- if (GNUNET_NO == res)
- {
- json_decref (json);
- return MHD_YES; /* failure */
- }
- }
-
- /* execute transaction */
- qs = TAH_plugin->update_wire_format_inconsistency (TAH_plugin->cls, &gu);
-
- GNUNET_JSON_parse_free (spec);
- json_decref (json);
-
- MHD_RESULT ret = MHD_NO;
-
- switch (qs)
- {
- case GNUNET_DB_STATUS_HARD_ERROR:
- GNUNET_break (0);
- ret = TALER_MHD_reply_with_error (connection,
- MHD_HTTP_INTERNAL_SERVER_ERROR,
- TALER_EC_GENERIC_DB_STORE_FAILED,
- "update_account");
- break;
- case GNUNET_DB_STATUS_SOFT_ERROR:
- GNUNET_break (0);
- ret = TALER_MHD_reply_with_error (connection,
- MHD_HTTP_INTERNAL_SERVER_ERROR,
- TALER_EC_GENERIC_INTERNAL_INVARIANT_FAILURE,
- "unexpected serialization problem");
- break;
- case GNUNET_DB_STATUS_SUCCESS_NO_RESULTS:
- return TALER_MHD_reply_with_error (connection,
- MHD_HTTP_NOT_FOUND,
- TALER_EC_AUDITOR_RESOURCE_NOT_FOUND,
- "no updates executed");
- break;
- case GNUNET_DB_STATUS_SUCCESS_ONE_RESULT:
- ret = TALER_MHD_reply_static (connection,
- MHD_HTTP_NO_CONTENT,
- NULL,
- NULL,
- 0);
- break;
- }
-
- return ret;
-}
diff --git a/src/auditor/taler-auditor-httpd_wire-format-inconsistency-upd.h b/src/auditor/taler-auditor-httpd_wire-format-inconsistency-upd.h
deleted file mode 100644
index 4ebf5b5ec..000000000
--- a/src/auditor/taler-auditor-httpd_wire-format-inconsistency-upd.h
+++ /dev/null
@@ -1,34 +0,0 @@
-/*
- This file is part of TALER
- Copyright (C) 2024 Taler Systems SA
-
- TALER is free software; you can redistribute it and/or modify it under the
- terms of the GNU General Public License as published by the Free Software
- Foundation; either version 3, or (at your option) any later version.
-
- TALER is distributed in the hope that it will be useful, but WITHOUT ANY
- WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
- A PARTICULAR PURPOSE. See the GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License along with
- TALER; see the file COPYING. If not, see <http://www.gnu.org/licenses/>
- */
-
-
-#ifndef SRC_TALER_AUDITOR_HTTPD_WIRE_FORMAT_INCONSISTENCY_UPD_H
-#define SRC_TALER_AUDITOR_HTTPD_WIRE_FORMAT_INCONSISTENCY_UPD_H
-
-
-#include <microhttpd.h>
-#include "taler-auditor-httpd.h"
-
-MHD_RESULT
-TAH_WIRE_FORMAT_INCONSISTENCY_handler_update (struct TAH_RequestHandler *rh,
- struct MHD_Connection *
- connection,
- void **connection_cls,
- const char *upload_data,
- size_t *upload_data_size,
- const char *const args[]);
-
-#endif // SRC_TALER_AUDITOR_HTTPD_WIRE_FORMAT_INCONSISTENCY_UPD_H
diff --git a/src/auditor/taler-auditor-httpd_wire-out-inconsistency-upd.c b/src/auditor/taler-auditor-httpd_wire-out-inconsistency-upd.c
deleted file mode 100644
index 0f889f737..000000000
--- a/src/auditor/taler-auditor-httpd_wire-out-inconsistency-upd.c
+++ /dev/null
@@ -1,147 +0,0 @@
-/*
- This file is part of TALER
- Copyright (C) 2024 Taler Systems SA
-
- TALER is free software; you can redistribute it and/or modify it under the
- terms of the GNU General Public License as published by the Free Software
- Foundation; either version 3, or (at your option) any later version.
-
- TALER is distributed in the hope that it will be useful, but WITHOUT ANY
- WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
- A PARTICULAR PURPOSE. See the GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License along with
- TALER; see the file COPYING. If not, see <http://www.gnu.org/licenses/>
- */
-
-
-#include "platform.h"
-#include <gnunet/gnunet_util_lib.h>
-#include <gnunet/gnunet_json_lib.h>
-#include <jansson.h>
-#include <microhttpd.h>
-#include <pthread.h>
-#include "taler_json_lib.h"
-#include "taler_mhd_lib.h"
-#include "taler-auditor-httpd.h"
-#include "taler-auditor-httpd_wire-out-inconsistency-upd.h"
-
-MHD_RESULT
-TAH_WIRE_OUT_INCONSISTENCY_handler_update (
- struct TAH_RequestHandler *rh,
- struct MHD_Connection *connection,
- void **connection_cls,
- const char *upload_data,
- size_t *upload_data_size,
- const char *const args[])
-{
- enum GNUNET_DB_QueryStatus qs;
-
- if (GNUNET_SYSERR ==
- TAH_plugin->preflight (TAH_plugin->cls))
- {
- GNUNET_break (0);
- return TALER_MHD_reply_with_error (connection,
- MHD_HTTP_INTERNAL_SERVER_ERROR,
- TALER_EC_GENERIC_DB_SETUP_FAILED,
- NULL);
- }
-
- uint64_t row_id;
-
- if (args[2] != NULL)
- row_id = atoi (args[2]);
- else
- return TALER_MHD_reply_with_error (connection,
- MHD_HTTP_BAD_REQUEST,
- TALER_EC_AUDITOR_RESOURCE_NOT_FOUND,
- "no row id specified");
-
-
- struct TALER_AUDITORDB_Generic_Update gu;
-
- gu.row_id = row_id;
-
- struct GNUNET_JSON_Specification spec[] = {
-
- // GNUNET_JSON_spec_uint64 ("row_id", &gu.row_id),
- GNUNET_JSON_spec_bool ("suppressed", &gu.suppressed),
-
- GNUNET_JSON_spec_end ()
- };
-
- json_t *json;
-
- (void) rh;
- (void) connection_cls;
- (void) upload_data;
- (void) upload_data_size;
- {
- enum GNUNET_GenericReturnValue res;
-
- res = TALER_MHD_parse_post_json (connection,
- connection_cls,
- upload_data,
- upload_data_size,
- &json);
- if (GNUNET_SYSERR == res)
- return MHD_NO;
- if ((GNUNET_NO == res) ||
- (NULL == json))
- return MHD_YES;
- res = TALER_MHD_parse_json_data (connection,
- json,
- spec);
- if (GNUNET_SYSERR == res)
- {
- json_decref (json);
- return MHD_NO; /* hard failure */
- }
- if (GNUNET_NO == res)
- {
- json_decref (json);
- return MHD_YES; /* failure */
- }
- }
-
- /* execute transaction */
- qs = TAH_plugin->update_wire_out_inconsistency (TAH_plugin->cls, &gu);
-
- GNUNET_JSON_parse_free (spec);
- json_decref (json);
-
- MHD_RESULT ret = MHD_NO;
-
- switch (qs)
- {
- case GNUNET_DB_STATUS_HARD_ERROR:
- GNUNET_break (0);
- ret = TALER_MHD_reply_with_error (connection,
- MHD_HTTP_INTERNAL_SERVER_ERROR,
- TALER_EC_GENERIC_DB_STORE_FAILED,
- "update_account");
- break;
- case GNUNET_DB_STATUS_SOFT_ERROR:
- GNUNET_break (0);
- ret = TALER_MHD_reply_with_error (connection,
- MHD_HTTP_INTERNAL_SERVER_ERROR,
- TALER_EC_GENERIC_INTERNAL_INVARIANT_FAILURE,
- "unexpected serialization problem");
- break;
- case GNUNET_DB_STATUS_SUCCESS_NO_RESULTS:
- return TALER_MHD_reply_with_error (connection,
- MHD_HTTP_NOT_FOUND,
- TALER_EC_AUDITOR_RESOURCE_NOT_FOUND,
- "no updates executed");
- break;
- case GNUNET_DB_STATUS_SUCCESS_ONE_RESULT:
- ret = TALER_MHD_reply_static (connection,
- MHD_HTTP_NO_CONTENT,
- NULL,
- NULL,
- 0);
- break;
- }
-
- return ret;
-}
diff --git a/src/auditor/taler-auditor-httpd_wire-out-inconsistency-upd.h b/src/auditor/taler-auditor-httpd_wire-out-inconsistency-upd.h
deleted file mode 100644
index 6b48d6a0e..000000000
--- a/src/auditor/taler-auditor-httpd_wire-out-inconsistency-upd.h
+++ /dev/null
@@ -1,34 +0,0 @@
-/*
- This file is part of TALER
- Copyright (C) 2024 Taler Systems SA
-
- TALER is free software; you can redistribute it and/or modify it under the
- terms of the GNU General Public License as published by the Free Software
- Foundation; either version 3, or (at your option) any later version.
-
- TALER is distributed in the hope that it will be useful, but WITHOUT ANY
- WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
- A PARTICULAR PURPOSE. See the GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License along with
- TALER; see the file COPYING. If not, see <http://www.gnu.org/licenses/>
- */
-
-
-#ifndef SRC_TALER_AUDITOR_HTTPD_WIRE_OUT_INCONSISTENCY_UPD_H
-#define SRC_TALER_AUDITOR_HTTPD_WIRE_OUT_INCONSISTENCY_UPD_H
-
-
-#include <microhttpd.h>
-#include "taler-auditor-httpd.h"
-
-MHD_RESULT
-TAH_WIRE_OUT_INCONSISTENCY_handler_update (struct TAH_RequestHandler *rh,
- struct MHD_Connection *
- connection,
- void **connection_cls,
- const char *upload_data,
- size_t *upload_data_size,
- const char *const args[]);
-
-#endif // SRC_TALER_AUDITOR_HTTPD_WIRE_OUT_INCONSISTENCY_UPD_H