aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/auditor/Makefile.am23
-rw-r--r--src/auditor/taler-auditor-httpd.c105
-rw-r--r--src/auditor/taler-auditor-httpd.h2
-rw-r--r--src/auditor/taler-auditor-httpd_amount-arithmetic-inconsistency-del.c62
-rw-r--r--src/auditor/taler-auditor-httpd_amount-arithmetic-inconsistency-del.h42
-rw-r--r--src/auditor/taler-auditor-httpd_bad-sig-losses-del.c77
-rw-r--r--src/auditor/taler-auditor-httpd_bad-sig-losses-del.h58
-rw-r--r--src/auditor/taler-auditor-httpd_closure-lags-del.c79
-rw-r--r--src/auditor/taler-auditor-httpd_closure-lags-del.h58
-rw-r--r--src/auditor/taler-auditor-httpd_coin-inconsistency-del.c65
-rw-r--r--src/auditor/taler-auditor-httpd_coin-inconsistency-del.h59
-rw-r--r--src/auditor/taler-auditor-httpd_delete_generic.c99
-rw-r--r--src/auditor/taler-auditor-httpd_delete_generic.h (renamed from src/auditordb/pg_del_emergency_by_count.h)34
-rw-r--r--src/auditor/taler-auditor-httpd_denomination-key-validity-withdraw-inconsistency-del.c90
-rw-r--r--src/auditor/taler-auditor-httpd_denomination-key-validity-withdraw-inconsistency-del.h60
-rw-r--r--src/auditor/taler-auditor-httpd_denomination-pending-del.c78
-rw-r--r--src/auditor/taler-auditor-httpd_denomination-pending-del.h59
-rw-r--r--src/auditor/taler-auditor-httpd_denominations-without-sigs-del.c78
-rw-r--r--src/auditor/taler-auditor-httpd_denominations-without-sigs-del.h59
-rw-r--r--src/auditor/taler-auditor-httpd_deposit-confirmation-del.c71
-rw-r--r--src/auditor/taler-auditor-httpd_deposit-confirmation-del.h62
-rw-r--r--src/auditor/taler-auditor-httpd_emergency-by-count-del.c75
-rw-r--r--src/auditor/taler-auditor-httpd_emergency-by-count-del.h58
-rw-r--r--src/auditor/taler-auditor-httpd_emergency-del.c78
-rw-r--r--src/auditor/taler-auditor-httpd_emergency-del.h58
-rw-r--r--src/auditor/taler-auditor-httpd_fee-time-inconsistency-del.c78
-rw-r--r--src/auditor/taler-auditor-httpd_fee-time-inconsistency-del.h58
-rw-r--r--src/auditor/taler-auditor-httpd_misattribution-in-inconsistency-del.c79
-rw-r--r--src/auditor/taler-auditor-httpd_misattribution-in-inconsistency-del.h59
-rw-r--r--src/auditor/taler-auditor-httpd_purse-not-closed-inconsistencies-del.c79
-rw-r--r--src/auditor/taler-auditor-httpd_purse-not-closed-inconsistencies-del.h56
-rw-r--r--src/auditor/taler-auditor-httpd_refreshes-hanging-del.c80
-rw-r--r--src/auditor/taler-auditor-httpd_refreshes-hanging-del.h56
-rw-r--r--src/auditor/taler-auditor-httpd_reserve-balance-insufficient-inconsistency-del.c86
-rw-r--r--src/auditor/taler-auditor-httpd_reserve-balance-insufficient-inconsistency-del.h56
-rw-r--r--src/auditor/taler-auditor-httpd_reserve-balance-summary-wrong-inconsistency-del.c86
-rw-r--r--src/auditor/taler-auditor-httpd_reserve-balance-summary-wrong-inconsistency-del.h57
-rw-r--r--src/auditor/taler-auditor-httpd_reserve-in-inconsistency-del.c78
-rw-r--r--src/auditor/taler-auditor-httpd_reserve-in-inconsistency-del.h57
-rw-r--r--src/auditor/taler-auditor-httpd_reserve-not-closed-inconsistency-del.c81
-rw-r--r--src/auditor/taler-auditor-httpd_reserve-not-closed-inconsistency-del.h57
-rw-r--r--src/auditor/taler-auditor-httpd_row-inconsistency-del.c67
-rw-r--r--src/auditor/taler-auditor-httpd_row-inconsistency-del.h59
-rw-r--r--src/auditor/taler-auditor-httpd_row-minor-inconsistencies-del.c78
-rw-r--r--src/auditor/taler-auditor-httpd_row-minor-inconsistencies-del.h57
-rw-r--r--src/auditor/taler-auditor-httpd_wire-format-inconsistency-del.c78
-rw-r--r--src/auditor/taler-auditor-httpd_wire-format-inconsistency-del.h59
-rw-r--r--src/auditor/taler-auditor-httpd_wire-out-inconsistency-del.c78
-rw-r--r--src/auditor/taler-auditor-httpd_wire-out-inconsistency-del.h59
-rw-r--r--src/auditordb/Makefile.am24
-rw-r--r--src/auditordb/pg_del_amount_arithmetic_inconsistency.c41
-rw-r--r--src/auditordb/pg_del_amount_arithmetic_inconsistency.h36
-rw-r--r--src/auditordb/pg_del_auditor_closure_lags.c41
-rw-r--r--src/auditordb/pg_del_auditor_closure_lags.h35
-rw-r--r--src/auditordb/pg_del_auditor_progress.c42
-rw-r--r--src/auditordb/pg_del_auditor_progress.h35
-rw-r--r--src/auditordb/pg_del_bad_sig_losses.c41
-rw-r--r--src/auditordb/pg_del_bad_sig_losses.h35
-rw-r--r--src/auditordb/pg_del_coin_inconsistency.c41
-rw-r--r--src/auditordb/pg_del_coin_inconsistency.h36
-rw-r--r--src/auditordb/pg_del_denomination_key_validity_withdraw_inconsistency.c41
-rw-r--r--src/auditordb/pg_del_denomination_key_validity_withdraw_inconsistency.h35
-rw-r--r--src/auditordb/pg_del_denomination_pending.c42
-rw-r--r--src/auditordb/pg_del_denomination_pending.h36
-rw-r--r--src/auditordb/pg_del_denominations_without_sigs.c42
-rw-r--r--src/auditordb/pg_del_denominations_without_sigs.h36
-rw-r--r--src/auditordb/pg_del_emergency.c41
-rw-r--r--src/auditordb/pg_del_emergency_by_count.c42
-rw-r--r--src/auditordb/pg_del_fee_time_inconsistency.c43
-rw-r--r--src/auditordb/pg_del_fee_time_inconsistency.h35
-rw-r--r--src/auditordb/pg_del_misattribution_in_inconsistency.c42
-rw-r--r--src/auditordb/pg_del_misattribution_in_inconsistency.h36
-rw-r--r--src/auditordb/pg_del_purse_not_closed_inconsistencies.c42
-rw-r--r--src/auditordb/pg_del_purse_not_closed_inconsistencies.h35
-rw-r--r--src/auditordb/pg_del_refreshes_hanging.c41
-rw-r--r--src/auditordb/pg_del_refreshes_hanging.h35
-rw-r--r--src/auditordb/pg_del_reserve_balance_insufficient_inconsistency.c42
-rw-r--r--src/auditordb/pg_del_reserve_balance_insufficient_inconsistency.h34
-rw-r--r--src/auditordb/pg_del_reserve_balance_summary_wrong_inconsistency.c42
-rw-r--r--src/auditordb/pg_del_reserve_balance_summary_wrong_inconsistency.h36
-rw-r--r--src/auditordb/pg_del_reserve_in_inconsistency.c42
-rw-r--r--src/auditordb/pg_del_reserve_in_inconsistency.h36
-rw-r--r--src/auditordb/pg_del_reserve_not_closed_inconsistency.c42
-rw-r--r--src/auditordb/pg_del_reserve_not_closed_inconsistency.h36
-rw-r--r--src/auditordb/pg_del_row_inconsistency.c40
-rw-r--r--src/auditordb/pg_del_row_inconsistency.h36
-rw-r--r--src/auditordb/pg_del_row_minor_inconsistencies.c42
-rw-r--r--src/auditordb/pg_del_row_minor_inconsistencies.h36
-rw-r--r--src/auditordb/pg_del_wire_format_inconsistency.c42
-rw-r--r--src/auditordb/pg_del_wire_format_inconsistency.h36
-rw-r--r--src/auditordb/pg_del_wire_out_inconsistency.c42
-rw-r--r--src/auditordb/pg_del_wire_out_inconsistency.h36
-rw-r--r--src/auditordb/pg_delete_generic.c85
-rw-r--r--src/auditordb/pg_delete_generic.h (renamed from src/auditordb/pg_del_emergency.h)21
-rw-r--r--src/auditordb/pg_helper.c26
-rw-r--r--src/auditordb/pg_helper.h2
-rw-r--r--src/auditordb/pg_update_generic_suppressed.c4
-rw-r--r--src/auditordb/pg_update_generic_suppressed.h2
-rw-r--r--src/auditordb/plugin_auditordb_postgres.c4
-rw-r--r--src/include/taler_auditordb_lib.h27
-rw-r--r--src/include/taler_auditordb_plugin.h7
101 files changed, 342 insertions, 4714 deletions
diff --git a/src/auditor/Makefile.am b/src/auditor/Makefile.am
index e2344f17d..c1035fad3 100644
--- a/src/auditor/Makefile.am
+++ b/src/auditor/Makefile.am
@@ -195,34 +195,23 @@ 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-del.c taler-auditor-httpd_deposit-confirmation-del.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-del.c taler-auditor-httpd_amount-arithmetic-inconsistency-del.h \
- taler-auditor-httpd_coin-inconsistency-del.c taler-auditor-httpd_coin-inconsistency-del.h \
- taler-auditor-httpd_row-inconsistency-del.c taler-auditor-httpd_row-inconsistency-del.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-del.c taler-auditor-httpd_emergency-del.h \
taler-auditor-httpd_emergency-by-count-get.c taler-auditor-httpd_emergency-by-count-get.h \
- taler-auditor-httpd_emergency-by-count-del.c taler-auditor-httpd_emergency-by-count-del.h \
taler-auditor-httpd_denomination-key-validity-withdraw-inconsistency-get.c taler-auditor-httpd_denomination-key-validity-withdraw-inconsistency-get.h \
- taler-auditor-httpd_denomination-key-validity-withdraw-inconsistency-del.c taler-auditor-httpd_denomination-key-validity-withdraw-inconsistency-del.h \
taler-auditor-httpd_purse-not-closed-inconsistencies-get.c taler-auditor-httpd_purse-not-closed-inconsistencies-get.h \
- taler-auditor-httpd_purse-not-closed-inconsistencies-del.c taler-auditor-httpd_purse-not-closed-inconsistencies-del.h \
taler-auditor-httpd_reserve-balance-insufficient-inconsistency-get.c taler-auditor-httpd_reserve-balance-insufficient-inconsistency-get.h \
taler-auditor-httpd_patch_generic_suppressed.c taler-auditor-httpd_patch_generic_suppressed.h \
- taler-auditor-httpd_reserve-balance-insufficient-inconsistency-del.c taler-auditor-httpd_reserve-balance-insufficient-inconsistency-del.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-del.c taler-auditor-httpd_bad-sig-losses-del.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_closure-lags-del.c taler-auditor-httpd_closure-lags-del.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_refreshes-hanging-del.c taler-auditor-httpd_refreshes-hanging-del.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 \
@@ -232,38 +221,28 @@ taler_auditor_httpd_SOURCES = \
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-del.c taler-auditor-httpd_reserve-in-inconsistency-del.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-del.c taler-auditor-httpd_reserve-not-closed-inconsistency-del.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-del.c taler-auditor-httpd_denominations-without-sigs-del.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-del.c taler-auditor-httpd_misattribution-in-inconsistency-del.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-del.c taler-auditor-httpd_denomination-pending-del.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-del.c taler-auditor-httpd_wire-format-inconsistency-del.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-del.c taler-auditor-httpd_wire-out-inconsistency-del.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-del.c taler-auditor-httpd_reserve-balance-summary-wrong-inconsistency-del.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-del.c taler-auditor-httpd_row-minor-inconsistencies-del.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-del.c taler-auditor-httpd_fee-time-inconsistency-del.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 \
diff --git a/src/auditor/taler-auditor-httpd.c b/src/auditor/taler-auditor-httpd.c
index dc8f9fd91..9dadf7f9e 100644
--- a/src/auditor/taler-auditor-httpd.c
+++ b/src/auditor/taler-auditor-httpd.c
@@ -72,6 +72,7 @@
#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"
@@ -420,7 +421,8 @@ handle_mhd_request (void *cls,
{ "/monitoring/deposit-confirmation", MHD_HTTP_METHOD_DELETE,
"application/json",
NULL, 0,
- &TAH_DEPOSIT_CONFIRMATION_handler_delete, MHD_HTTP_OK, true },
+ &TAH_delete_handler_generic, MHD_HTTP_OK, true,
+ .table = TALER_AUDITORDB_DEPOSIT_CONFIRMATION },
{ "/monitoring/amount-arithmetic-inconsistency", MHD_HTTP_METHOD_GET,
"application/json",
NULL, 0,
@@ -428,7 +430,8 @@ handle_mhd_request (void *cls,
{ "/monitoring/amount-arithmetic-inconsistency", MHD_HTTP_METHOD_DELETE,
"application/json",
NULL, 0,
- &TAH_AMOUNT_ARITHMETIC_INCONSISTENCY_handler_delete, MHD_HTTP_OK, true },
+ &TAH_delete_handler_generic, MHD_HTTP_OK, true,
+ .table = TALER_AUDITORDB_AMOUNT_ARITHMETIC_INCONSISTENCY },
{
"/monitoring/amount-arithmetic-inconsistency",
MHD_HTTP_METHOD_PATCH,
@@ -438,7 +441,7 @@ handle_mhd_request (void *cls,
&TAH_patch_handler_generic_suppressed,
MHD_HTTP_OK,
true,
- .table = TALER_AUDITORDB_AMOUNT_ARITHMETIC_INCONSISTENCY
+ .table = TALER_AUDITORDB_AMOUNT_ARITHMETIC_INCONSISTENCY_SUPPRESS
},
{ "/monitoring/coin-inconsistency", MHD_HTTP_METHOD_GET,
"application/json",
@@ -447,7 +450,8 @@ handle_mhd_request (void *cls,
{ "/monitoring/coin-inconsistency", MHD_HTTP_METHOD_DELETE,
"application/json",
NULL, 0,
- &TAH_COIN_INCONSISTENCY_handler_delete, MHD_HTTP_OK, true },
+ &TAH_delete_handler_generic, MHD_HTTP_OK, true,
+ .table = TALER_AUDITORDB_COIN_INCONSISTENCY },
{ "/monitoring/coin-inconsistency", MHD_HTTP_METHOD_PATCH,
"application/json",
NULL, 0,
@@ -459,7 +463,8 @@ handle_mhd_request (void *cls,
{ "/monitoring/row-inconsistency", MHD_HTTP_METHOD_DELETE,
"application/json",
NULL, 0,
- &TAH_ROW_INCONSISTENCY_handler_delete, MHD_HTTP_OK, true },
+ &TAH_delete_handler_generic, MHD_HTTP_OK, true,
+ .table = TALER_AUDITORDB_ROW_INCONSISTENCY},
{ "/monitoring/row-inconsistency", MHD_HTTP_METHOD_PATCH,
"application/json",
NULL, 0,
@@ -472,8 +477,9 @@ handle_mhd_request (void *cls,
{ "/monitoring/bad-sig-losses", MHD_HTTP_METHOD_DELETE,
"application/json",
NULL, 0,
- &TAH_BAD_SIG_LOSSES_handler_delete,
- MHD_HTTP_OK, true },
+ &TAH_delete_handler_generic,
+ MHD_HTTP_OK, true,
+ .table = TALER_AUDITORDB_BAD_SIG_LOSSES},
{ "/monitoring/bad-sig-losses", MHD_HTTP_METHOD_PATCH,
"application/json",
NULL, 0,
@@ -487,8 +493,9 @@ handle_mhd_request (void *cls,
{ "/monitoring/closure-lags", MHD_HTTP_METHOD_DELETE,
"application/json",
NULL, 0,
- &TAH_CLOSURE_LAGS_handler_delete,
- MHD_HTTP_OK, true },
+ &TAH_delete_handler_generic,
+ MHD_HTTP_OK, true,
+ .table = TALER_AUDITORDB_CLOSURE_LAGS },
{ "/monitoring/closure-lags", MHD_HTTP_METHOD_PATCH,
"application/json",
NULL, 0,
@@ -502,8 +509,9 @@ handle_mhd_request (void *cls,
{ "/monitoring/emergency", MHD_HTTP_METHOD_DELETE,
"application/json",
NULL, 0,
- &TAH_EMERGENCY_handler_delete,
- MHD_HTTP_OK, true },
+ &TAH_delete_handler_generic,
+ MHD_HTTP_OK, true,
+ .table = TALER_AUDITORDB_EMERGENCY },
{ "/monitoring/emergency", MHD_HTTP_METHOD_PATCH,
"application/json",
NULL, 0,
@@ -517,8 +525,9 @@ handle_mhd_request (void *cls,
{ "/monitoring/refreshes-hanging", MHD_HTTP_METHOD_DELETE,
"application/json",
NULL, 0,
- &TAH_REFRESHES_HANGING_handler_delete,
- MHD_HTTP_OK, true },
+ &TAH_delete_handler_generic,
+ MHD_HTTP_OK, true,
+ .table = TALER_AUDITORDB_REFRESHES_HANGING },
{ "/monitoring/refreshes-hanging", MHD_HTTP_METHOD_PATCH,
"application/json",
NULL, 0,
@@ -534,8 +543,9 @@ handle_mhd_request (void *cls,
MHD_HTTP_METHOD_DELETE,
"application/json",
NULL, 0,
- &TAH_DENOMINATION_KEY_VALIDITY_WITHDRAW_INCONSISTENCY_handler_delete,
- MHD_HTTP_OK, true },
+ &TAH_delete_handler_generic,
+ MHD_HTTP_OK, true,
+ .table = TALER_AUDITORDB_DENOMINATION_KEY_VALIDITY_WITHDRAW_INCONSISTENCY },
{ "/monitoring/denomination-key-validity-withdraw-inconsistency",
MHD_HTTP_METHOD_PATCH,
"application/json",
@@ -552,8 +562,9 @@ handle_mhd_request (void *cls,
MHD_HTTP_METHOD_DELETE,
"application/json",
NULL, 0,
- &TAH_RESERVE_BALANCE_INSUFFICIENT_INCONSISTENCY_handler_delete,
- MHD_HTTP_OK, true },
+ &TAH_delete_handler_generic,
+ MHD_HTTP_OK, true,
+ .table = TALER_AUDITORDB_RESERVE_BALANCE_INSUFFICIENT_INCONSISTENCY },
{ "/monitoring/reserve-balance-insufficient-inconsistency",
MHD_HTTP_METHOD_PATCH,
"application/json",
@@ -568,8 +579,9 @@ handle_mhd_request (void *cls,
{ "/monitoring/purse-not-closed-inconsistencies", MHD_HTTP_METHOD_DELETE,
"application/json",
NULL, 0,
- &TAH_PURSE_NOT_CLOSED_INCONSISTENCIES_handler_delete,
- MHD_HTTP_OK, true },
+ &TAH_delete_handler_generic,
+ MHD_HTTP_OK, true,
+ .table = TALER_AUDITORDB_PURSE_NOT_CLOSED_INCONSISTENCY },
{ "/monitoring/purse-not-closed-inconsistencies", MHD_HTTP_METHOD_PATCH,
"application/json",
NULL, 0,
@@ -583,8 +595,9 @@ handle_mhd_request (void *cls,
{ "/monitoring/emergency-by-count", MHD_HTTP_METHOD_DELETE,
"application/json",
NULL, 0,
- &TAH_EMERGENCY_BY_COUNT_handler_delete,
- MHD_HTTP_OK, true },
+ &TAH_delete_handler_generic,
+ MHD_HTTP_OK, true,
+ .table = TALER_AUDITORDB_EMERGENCY_BY_COUNT },
{ "/monitoring/emergency-by-count", MHD_HTTP_METHOD_PATCH,
"application/json",
NULL, 0,
@@ -598,8 +611,9 @@ handle_mhd_request (void *cls,
{ "/monitoring/reserve-in-inconsistency", MHD_HTTP_METHOD_DELETE,
"application/json",
NULL, 0,
- &TAH_RESERVE_IN_INCONSISTENCY_handler_delete,
- MHD_HTTP_OK, true },
+ &TAH_delete_handler_generic,
+ MHD_HTTP_OK, true,
+ .table = TALER_AUDITORDB_RESERVE_IN_INCONSISTENCY },
{ "/monitoring/reserve-in-inconsistency", MHD_HTTP_METHOD_PATCH,
"application/json",
NULL, 0,
@@ -613,8 +627,9 @@ handle_mhd_request (void *cls,
{ "/monitoring/reserve-not-closed-inconsistency", MHD_HTTP_METHOD_DELETE,
"application/json",
NULL, 0,
- &TAH_RESERVE_NOT_CLOSED_INCONSISTENCY_handler_delete,
- MHD_HTTP_OK, true },
+ &TAH_delete_handler_generic,
+ MHD_HTTP_OK, true,
+ .table = TALER_AUDITORDB_RESERVE_NOT_CLOSED_INCONSISTENCY },
{ "/monitoring/reserve-not-closed-inconsistency", MHD_HTTP_METHOD_PATCH,
"application/json",
NULL, 0,
@@ -628,8 +643,9 @@ handle_mhd_request (void *cls,
{ "/monitoring/denominations-without-sigs", MHD_HTTP_METHOD_DELETE,
"application/json",
NULL, 0,
- &TAH_DENOMINATIONS_WITHOUT_SIGS_handler_delete,
- MHD_HTTP_OK, true },
+ &TAH_delete_handler_generic,
+ MHD_HTTP_OK, true,
+ .table = TALER_AUDITORDB_DENOMINATIONS_WITHOUT_SIG },
{ "/monitoring/denominations-without-sigs", MHD_HTTP_METHOD_PATCH,
"application/json",
NULL, 0,
@@ -643,8 +659,9 @@ handle_mhd_request (void *cls,
{ "/monitoring/misattribution-in-inconsistency", MHD_HTTP_METHOD_DELETE,
"application/json",
NULL, 0,
- &TAH_MISATTRIBUTION_IN_INCONSISTENCY_handler_delete,
- MHD_HTTP_OK, true },
+ &TAH_delete_handler_generic,
+ MHD_HTTP_OK, true,
+ .table = TALER_AUDITORDB_MISATTRIBUTION_IN_INCONSISTENCY },
{ "/monitoring/misattribution-in-inconsistency", MHD_HTTP_METHOD_PATCH,
"application/json",
NULL, 0,
@@ -673,8 +690,9 @@ handle_mhd_request (void *cls,
{ "/monitoring/denomination-pending", MHD_HTTP_METHOD_DELETE,
"application/json",
NULL, 0,
- &TAH_DENOMINATION_PENDING_handler_delete,
- MHD_HTTP_OK, true },
+ &TAH_delete_handler_generic,
+ MHD_HTTP_OK, true,
+ .table = TALER_AUDITORDB_DENOMINATION_PENDING },
{ "/monitoring/historic-reserve-summary", MHD_HTTP_METHOD_GET,
"application/json",
NULL, 0,
@@ -688,8 +706,9 @@ handle_mhd_request (void *cls,
{ "/monitoring/wire-format-inconsistency", MHD_HTTP_METHOD_DELETE,
"application/json",
NULL, 0,
- &TAH_WIRE_FORMAT_INCONSISTENCY_handler_delete,
- MHD_HTTP_OK, true },
+ &TAH_delete_handler_generic,
+ MHD_HTTP_OK, true,
+ .table = TALER_AUDITORDB_WIRE_FORMAT_INCONSISTENCY },
{ "/monitoring/wire-format-inconsistency", MHD_HTTP_METHOD_PATCH,
"application/json",
NULL, 0,
@@ -703,8 +722,9 @@ handle_mhd_request (void *cls,
{ "/monitoring/wire-out-inconsistency", MHD_HTTP_METHOD_DELETE,
"application/json",
NULL, 0,
- &TAH_WIRE_OUT_INCONSISTENCY_handler_delete,
- MHD_HTTP_OK, true },
+ &TAH_delete_handler_generic,
+ MHD_HTTP_OK, true,
+ .table = TALER_AUDITORDB_WIRE_OUT_INCONSISTENCY },
{ "/monitoring/wire-out-inconsistency", MHD_HTTP_METHOD_PATCH,
"application/json",
NULL, 0,
@@ -720,8 +740,9 @@ handle_mhd_request (void *cls,
MHD_HTTP_METHOD_DELETE,
"application/json",
NULL, 0,
- &TAH_RESERVE_BALANCE_SUMMARY_WRONG_INCONSISTENCY_handler_delete,
- MHD_HTTP_OK, true },
+ &TAH_delete_handler_generic,
+ MHD_HTTP_OK, true,
+ .table = TALER_AUDITORDB_RESERVE_BALANCE_SUMMARY_WRONG_INCONSISTENCY },
{ "/monitoring/reserve-balance-summary-wrong-inconsistency",
MHD_HTTP_METHOD_PATCH,
"application/json",
@@ -736,8 +757,9 @@ handle_mhd_request (void *cls,
{ "/monitoring/row-minor-inconsistencies", MHD_HTTP_METHOD_DELETE,
"application/json",
NULL, 0,
- &TAH_ROW_MINOR_INCONSISTENCIES_handler_delete,
- MHD_HTTP_OK, true },
+ &TAH_delete_handler_generic,
+ MHD_HTTP_OK, true,
+ .table = TALER_AUDITORDB_ROW_MINOR_INCONSISTENCY },
{ "/monitoring/row-minor-inconsistencies", MHD_HTTP_METHOD_PATCH,
"application/json",
NULL, 0,
@@ -751,8 +773,9 @@ handle_mhd_request (void *cls,
{ "/monitoring/fee-time-inconsistency", MHD_HTTP_METHOD_DELETE,
"application/json",
NULL, 0,
- &TAH_FEE_TIME_INCONSISTENCY_handler_delete,
- MHD_HTTP_OK, true },
+ &TAH_delete_handler_generic,
+ MHD_HTTP_OK, true,
+ .table = TALER_AUDITORDB_FEE_TIME_INCONSISTENCY },
{ "/monitoring/fee-time-inconsistency", MHD_HTTP_METHOD_PATCH,
"application/json",
NULL, 0,
diff --git a/src/auditor/taler-auditor-httpd.h b/src/auditor/taler-auditor-httpd.h
index 3480508aa..4c023a3ed 100644
--- a/src/auditor/taler-auditor-httpd.h
+++ b/src/auditor/taler-auditor-httpd.h
@@ -108,7 +108,7 @@ struct TAH_RequestHandler
*/
bool requires_auth;
- enum TALER_AUDITORDB_SuppressableTables table;
+ enum TALER_AUDITORDB_DeletableSuppressableTables table;
};
diff --git a/src/auditor/taler-auditor-httpd_amount-arithmetic-inconsistency-del.c b/src/auditor/taler-auditor-httpd_amount-arithmetic-inconsistency-del.c
deleted file mode 100644
index 050b6c0f5..000000000
--- a/src/auditor/taler-auditor-httpd_amount-arithmetic-inconsistency-del.c
+++ /dev/null
@@ -1,62 +0,0 @@
-#include "taler-auditor-httpd_amount-arithmetic-inconsistency-del.h"
-
-
-MHD_RESULT
-TAH_AMOUNT_ARITHMETIC_INCONSISTENCY_handler_delete (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;
-
- 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,
- "row could not be found");
-
- 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);
- }
-
-
- // execute the transaction
- qs = TAH_plugin->delete_amount_arithmetic_inconsistency (TAH_plugin->cls,
- row_id);
-
- if (0 > qs)
- {
- // goes in here if there was an error with the transaction
- GNUNET_break (GNUNET_DB_STATUS_HARD_ERROR == qs);
- TALER_LOG_WARNING (
- "Failed to handle DELETE /amount-arithmetic-inconsistency/ %s\n",
- args[1]);
- return TALER_MHD_reply_with_error (connection,
- MHD_HTTP_NOT_FOUND,
- TALER_EC_AUDITOR_RESOURCE_NOT_FOUND,
- "row could not be found");
-
- }
-
- // on success?
- return TALER_MHD_REPLY_JSON_PACK (connection,
- MHD_HTTP_NO_CONTENT,
- GNUNET_JSON_pack_string ("status",
- "AMOUNT_ARITHMETIC_INCONSISTENCY_OK"));
-
-} \ No newline at end of file
diff --git a/src/auditor/taler-auditor-httpd_amount-arithmetic-inconsistency-del.h b/src/auditor/taler-auditor-httpd_amount-arithmetic-inconsistency-del.h
deleted file mode 100644
index 90bc3696f..000000000
--- a/src/auditor/taler-auditor-httpd_amount-arithmetic-inconsistency-del.h
+++ /dev/null
@@ -1,42 +0,0 @@
-#ifndef SRC_TALER_AUDITOR_HTTPD_AMOUNT_ARITHMETIC_INCONSISTENCY_DEL_H
-#define SRC_TALER_AUDITOR_HTTPD_AMOUNT_ARITHMETIC_INCONSISTENCY_DEL_H
-
-#include <microhttpd.h>
-#include "taler-auditor-httpd.h"
-
-/**
- * Initialize subsystem.
- */
-void
-TEAH_AMOUNT_ARITHMETIC_INCONSISTENCY_DELETE_init (void);
-
-/**
- * Shut down subsystem.
- */
-void
-TEAH_AMOUNT_ARITHMETIC_INCONSISTENCY_DELETE_done (void);
-
-/**
- * Handle a "/deposit-confirmation" request. Parses the JSON, and, if
- * successful, checks the signatures and stores the result in the DB.
- *
- * @param rh context of the handler
- * @param connection the MHD connection to handle
- * @param[in,out] connection_cls the connection's closure (can be updated)
- * @param upload_data upload data
- * @param[in,out] upload_data_size number of bytes (left) in @a upload_data
- * @param args NULL-terminated array of remaining parts of the URI broken up at '/'
- * @return MHD result code
- */
-MHD_RESULT
-TAH_AMOUNT_ARITHMETIC_INCONSISTENCY_handler_delete (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_AMOUNT_ARITHMETIC_INCONSISTENCY_DEL_H
diff --git a/src/auditor/taler-auditor-httpd_bad-sig-losses-del.c b/src/auditor/taler-auditor-httpd_bad-sig-losses-del.c
deleted file mode 100644
index b2333ff57..000000000
--- a/src/auditor/taler-auditor-httpd_bad-sig-losses-del.c
+++ /dev/null
@@ -1,77 +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 "taler-auditor-httpd_bad-sig-losses-del.h"
-
-
-MHD_RESULT
-TAH_BAD_SIG_LOSSES_handler_delete (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;
-
- 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,
- "row could not be found");
-
- 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);
- }
-
-
- // execute the transaction
- qs = TAH_plugin->delete_bad_sig_losses (TAH_plugin->cls,
- row_id);
-
- if (0 == qs)
- {
- // goes in here if there was an error with the transaction
- GNUNET_break (GNUNET_DB_STATUS_HARD_ERROR == qs);
- TALER_LOG_WARNING (
- "Failed to handle DELETE /bad-sig-losses/ %s",
- args[1]);
- return TALER_MHD_reply_with_error (connection,
- MHD_HTTP_NOT_FOUND,
- TALER_EC_AUDITOR_RESOURCE_NOT_FOUND,
- "row could not be found");
-
- }
-
- // on success?
- return TALER_MHD_REPLY_JSON_PACK (connection,
- MHD_HTTP_NO_CONTENT,
- GNUNET_JSON_pack_string ("status",
- "BAD_SIG_LOSSES_OK"));
-
-}
diff --git a/src/auditor/taler-auditor-httpd_bad-sig-losses-del.h b/src/auditor/taler-auditor-httpd_bad-sig-losses-del.h
deleted file mode 100644
index 9073aa216..000000000
--- a/src/auditor/taler-auditor-httpd_bad-sig-losses-del.h
+++ /dev/null
@@ -1,58 +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 TALER_AUDITOR_HTTPD_BAD_SIG_LOSSES_DEL_H
-#define TALER_AUDITOR_HTTPD_BAD_SIG_LOSSES_DEL_H
-
-
-#include <microhttpd.h>
-#include "taler-auditor-httpd.h"
-
-/**
- * Initialize subsystem.
- */
-void
-TEAH_BAD_SIG_LOSSES_DELETE_init (void);
-
-/**
- * Shut down subsystem.
- */
-void
-TEAH_BAD_SIG_LOSSES_DELETE_done (void);
-
-/**
- * Handle a "/bad-sig-losses" request. Parses the JSON, and, if
- * successful, checks the signatures and stores the result in the DB.
- *
- * @param rh context of the handler
- * @param connection the MHD connection to handle
- * @param[in,out] connection_cls the connection's closure (can be updated)
- * @param upload_data upload data
- * @param[in,out] upload_data_size number of bytes (left) in @a upload_data
- * @param args NULL-terminated array of remaining parts of the URI broken up at '/'
- * @return MHD result code
- */
-MHD_RESULT
-TAH_BAD_SIG_LOSSES_handler_delete (
- 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_closure-lags-del.c b/src/auditor/taler-auditor-httpd_closure-lags-del.c
deleted file mode 100644
index abf62393f..000000000
--- a/src/auditor/taler-auditor-httpd_closure-lags-del.c
+++ /dev/null
@@ -1,79 +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 "taler-auditor-httpd_closure-lags-del.h"
-
-
-MHD_RESULT
-TAH_CLOSURE_LAGS_handler_delete (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;
-
- 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,
- "row could not be found");
-
- 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);
- }
-
-
- // execute the transaction
- qs = TAH_plugin->delete_auditor_closure_lags (TAH_plugin->cls,
- row_id);
-
- if (0 > qs)
- {
- // goes in here if there was an error with the transaction
- GNUNET_break (GNUNET_DB_STATUS_HARD_ERROR == qs);
- TALER_LOG_WARNING (
- "Failed to handle DELETE /closure-lags/ %s\n",
- args[1]);
- return TALER_MHD_reply_with_error (connection,
- MHD_HTTP_NOT_FOUND,
- TALER_EC_AUDITOR_RESOURCE_NOT_FOUND,
- "row could not be found");
-
- }
-
- // on success?
- return TALER_MHD_REPLY_JSON_PACK (connection,
- MHD_HTTP_NO_CONTENT,
- GNUNET_JSON_pack_string ("status",
- "CLOSURE_LAGS_OK"))
- ;
-
-}
diff --git a/src/auditor/taler-auditor-httpd_closure-lags-del.h b/src/auditor/taler-auditor-httpd_closure-lags-del.h
deleted file mode 100644
index fbc2b03e1..000000000
--- a/src/auditor/taler-auditor-httpd_closure-lags-del.h
+++ /dev/null
@@ -1,58 +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_DEL_H
-#define SRC_TALER_AUDITOR_HTTPD_CLOSURE_LAGS_DEL_H
-
-
-#include <microhttpd.h>
-#include "taler-auditor-httpd.h"
-
-/**
-* Initialize subsystem.
-*/
-void
-TEAH_CLOSURE_LAGS_DELETE_init (void);
-
-/**
-* Shut down subsystem.
-*/
-void
-TEAH_CLOSURE_LAGS_DELETE_done (void);
-
-/**
- * Handle a "/closure-lags" request. Parses the JSON, and, if
- * successful, checks the signatures and stores the result in the DB.
- *
- * @param rh context of the handler
- * @param connection the MHD connection to handle
- * @param[in,out] connection_cls the connection's closure (can be updated)
- * @param upload_data upload data
- * @param[in,out] upload_data_size number of bytes (left) in @a upload_data
- * @param args NULL-terminated array of remaining parts of the URI broken up at '/'
- * @return MHD result code
- */
-MHD_RESULT
-TAH_CLOSURE_LAGS_handler_delete (
- 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-del.c b/src/auditor/taler-auditor-httpd_coin-inconsistency-del.c
deleted file mode 100644
index 1c35d3f48..000000000
--- a/src/auditor/taler-auditor-httpd_coin-inconsistency-del.c
+++ /dev/null
@@ -1,65 +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 "taler-auditor-httpd_coin-inconsistency-del.h"
-
-MHD_RESULT
-TAH_COIN_INCONSISTENCY_handler_delete (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;
-
- uint64_t row_id = atoi (args[1]);
-
- 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);
- }
-
-
- // execute the transaction
- qs = TAH_plugin->delete_coin_inconsistency (TAH_plugin->cls,row_id);
-
- if (0 > qs)
- {
- // goes in here if there was an error with the transaction
- GNUNET_break (GNUNET_DB_STATUS_HARD_ERROR == qs);
- TALER_LOG_WARNING ("Failed to handle DELETE /coin-inconsistency/ %s\n",
- args[1]);
- return TALER_MHD_reply_with_error (connection,
- MHD_HTTP_NOT_FOUND,
- TALER_EC_AUDITOR_RESOURCE_NOT_FOUND,
- "row could not be found");
-
- }
-
- // on success?
- return TALER_MHD_REPLY_JSON_PACK (connection,
- MHD_HTTP_NO_CONTENT,
- GNUNET_JSON_pack_string ("status",
- "COIN_INCONSISTENCY_OK"));
-
-} \ No newline at end of file
diff --git a/src/auditor/taler-auditor-httpd_coin-inconsistency-del.h b/src/auditor/taler-auditor-httpd_coin-inconsistency-del.h
deleted file mode 100644
index 65fabd05a..000000000
--- a/src/auditor/taler-auditor-httpd_coin-inconsistency-del.h
+++ /dev/null
@@ -1,59 +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_DEL_H
-#define SRC_TALER_AUDITOR_HTTPD_COIN_INCONSISTENCY_DEL_H
-
-
-#include <gnunet/gnunet_util_lib.h>
-#include <microhttpd.h>
-#include "taler-auditor-httpd.h"
-
-/**
- * Initialize subsystem.
- */
-void
-TEAH_COIN_INCONSISTENCY_DELETE_init (void);
-
-/**
- * Shut down subsystem.
- */
-void
-TEAH_COIN_INCONSISTENCY_DELETE_done (void);
-
-/**
- * Handle a "/deposit-confirmation" request. Parses the JSON, and, if
- * successful, checks the signatures and stores the result in the DB.
- *
- * @param rh context of the handler
- * @param connection the MHD connection to handle
- * @param[in,out] connection_cls the connection's closure (can be updated)
- * @param upload_data upload data
- * @param[in,out] upload_data_size number of bytes (left) in @a upload_data
- * @param args NULL-terminated array of remaining parts of the URI broken up at '/'
- * @return MHD result code
- */
-MHD_RESULT
-TAH_COIN_INCONSISTENCY_handler_delete (
- 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_delete_generic.c b/src/auditor/taler-auditor-httpd_delete_generic.c
new file mode 100644
index 000000000..f10daf328
--- /dev/null
+++ b/src/auditor/taler-auditor-httpd_delete_generic.c
@@ -0,0 +1,99 @@
+/*
+ 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"
+
+
+MHD_RESULT
+TAH_delete_handler_generic (
+ 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;
+ unsigned long long row_id;
+
+ (void) connection_cls;
+ 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);
+ }
+
+ if ( (NULL == args[1]) ||
+ (1 != sscanf (args[1],
+ "%llu",
+ &row_id)) )
+ {
+ GNUNET_break_op (0);
+ return TALER_MHD_reply_with_error (connection,
+ MHD_HTTP_BAD_REQUEST,
+ TALER_EC_AUDITOR_RESOURCE_NOT_FOUND,
+ "no row id specified");
+ }
+
+ {
+
+ /* execute transaction */
+ qs = TAH_plugin->delete_generic (TAH_plugin->cls,
+ rh->table,
+ row_id);
+
+ switch (qs)
+ {
+ case GNUNET_DB_STATUS_HARD_ERROR:
+ GNUNET_break (0);
+ return TALER_MHD_reply_with_error (connection,
+ MHD_HTTP_INTERNAL_SERVER_ERROR,
+ TALER_EC_GENERIC_DB_STORE_FAILED,
+ "db store failed");
+ case GNUNET_DB_STATUS_SOFT_ERROR:
+ GNUNET_break (0);
+ return TALER_MHD_reply_with_error (connection,
+ MHD_HTTP_INTERNAL_SERVER_ERROR,
+ TALER_EC_GENERIC_INTERNAL_INVARIANT_FAILURE,
+ "unexpected serialization problem");
+ 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 delete executed");
+ case GNUNET_DB_STATUS_SUCCESS_ONE_RESULT:
+ return TALER_MHD_reply_static (connection,
+ MHD_HTTP_NO_CONTENT,
+ NULL,
+ NULL,
+ 0);
+ }
+ GNUNET_break (0);
+ return MHD_NO;
+}
diff --git a/src/auditordb/pg_del_emergency_by_count.h b/src/auditor/taler-auditor-httpd_delete_generic.h
index 52f7f4db8..77f257822 100644
--- a/src/auditordb/pg_del_emergency_by_count.h
+++ b/src/auditor/taler-auditor-httpd_delete_generic.h
@@ -14,22 +14,24 @@
TALER; see the file COPYING. If not, see <http://www.gnu.org/licenses/>
*/
-#ifndef SRC_PG_DEL_EMERGENCY_BY_COUNT_H
-#define SRC_PG_DEL_EMERGENCY_BY_COUNT_H
-
-#include "taler_util.h"
-#include "taler_auditordb_plugin.h"
-
-/**
- * Delete a row from the emergency by count table.
- *
- * @param cls the @e cls of this struct with the plugin-specific state
- * @param row_id row to delete
- * @return query transaction status
+
+#ifndef TALER_AUDITOR_HTTPD_DELETE_GENERIC_H
+#define TALER_AUDITOR_HTTPD_DELETE_GENERIC_H
+
+#include <gnunet/gnunet_util_lib.h>
+#include <microhttpd.h>
+#include "taler-auditor-httpd.h"
+
+/*
+ * FIXME: add comment
*/
-enum GNUNET_DB_QueryStatus
-TAH_PG_del_emergency_by_count (
- void *cls,
- uint64_t row_id);
+MHD_RESULT
+TAH_delete_handler_generic(
+ 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-del.c b/src/auditor/taler-auditor-httpd_denomination-key-validity-withdraw-inconsistency-del.c
deleted file mode 100644
index 01b243e9d..000000000
--- a/src/auditor/taler-auditor-httpd_denomination-key-validity-withdraw-inconsistency-del.c
+++ /dev/null
@@ -1,90 +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 \
- "taler-auditor-httpd_denomination-key-validity-withdraw-inconsistency-del.h"
-
-
-MHD_RESULT
-TAH_DENOMINATION_KEY_VALIDITY_WITHDRAW_INCONSISTENCY_handler_delete (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;
-
- 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,
- "row could not be found");
-
- 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);
- }
-
-
- // execute the transaction
- qs = TAH_plugin->delete_denomination_key_validity_withdraw_inconsistency (
- TAH_plugin->cls,
- row_id);
-
- if (0 > qs)
- {
- // goes in here if there was an error with the transaction
- GNUNET_break (GNUNET_DB_STATUS_HARD_ERROR == qs);
- TALER_LOG_WARNING (
- "Failed to handle DELETE /denomination-key-validity-withdraw-inconsistency/ %s",
- args[1]);
- return TALER_MHD_reply_with_error (connection,
- MHD_HTTP_NOT_FOUND,
- TALER_EC_AUDITOR_RESOURCE_NOT_FOUND,
- "row could not be found");
-
- }
-
- // on success?
- return TALER_MHD_REPLY_JSON_PACK (connection,
- MHD_HTTP_NO_CONTENT,
- GNUNET_JSON_pack_string ("status",
- "DENOMINATION_KEY_VALIDITY_WITHDRAW_INCONSISTENCY_OK"));
-
-}
diff --git a/src/auditor/taler-auditor-httpd_denomination-key-validity-withdraw-inconsistency-del.h b/src/auditor/taler-auditor-httpd_denomination-key-validity-withdraw-inconsistency-del.h
deleted file mode 100644
index ce0df1f09..000000000
--- a/src/auditor/taler-auditor-httpd_denomination-key-validity-withdraw-inconsistency-del.h
+++ /dev/null
@@ -1,60 +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_DEL_H
-#define \
- SRC_TALER_AUDITOR_HTTPD_DENOMINATION_KEY_VALIDITY_WITHDRAW_INCONSISTENCY_DEL_H
-
-
-#include <microhttpd.h>
-#include "taler-auditor-httpd.h"
-
-/**
- * Initialize subsystem.
- */
-void
-TEAH_DENOMINATION_KEY_VALIDITY_WITHDRAW_INCONSISTENCY_DELETE_init (void);
-
-/**
- * Shut down subsystem.
- */
-void
-TEAH_DENOMINATION_KEY_VALIDITY_WITHDRAW_INCONSISTENCY_DELETE_done (void);
-
-/**
- * Handle a "/denomination-key-validity-withdraw-inconsistency" request. Parses the JSON, and, if
- * successful, checks the signatures and stores the result in the DB.
- *
- * @param rh context of the handler
- * @param connection the MHD connection to handle
- * @param[in,out] connection_cls the connection's closure (can be updated)
- * @param upload_data upload data
- * @param[in,out] upload_data_size number of bytes (left) in @a upload_data
- * @param args NULL-terminated array of remaining parts of the URI broken up at '/'
- * @return MHD result code
- */
-MHD_RESULT
-TAH_DENOMINATION_KEY_VALIDITY_WITHDRAW_INCONSISTENCY_handler_delete (
- 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-del.c b/src/auditor/taler-auditor-httpd_denomination-pending-del.c
deleted file mode 100644
index e275f33f7..000000000
--- a/src/auditor/taler-auditor-httpd_denomination-pending-del.c
+++ /dev/null
@@ -1,78 +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 "taler-auditor-httpd_denomination-pending-del.h"
-
-
-MHD_RESULT
-TAH_DENOMINATION_PENDING_handler_delete (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;
-
- 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,
- "row could not be found");
-
- 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);
- }
-
-
- // execute the transaction
- qs = TAH_plugin->delete_denomination_pending (TAH_plugin->cls,
- row_id);
-
- if (0 == qs)
- {
- // goes in here if there was an error with the transaction
- GNUNET_break (GNUNET_DB_STATUS_HARD_ERROR == qs);
- TALER_LOG_WARNING (
- "Failed to handle DELETE /denomination-pending/ %s",
- args[1]);
- return TALER_MHD_reply_with_error (connection,
- MHD_HTTP_NOT_FOUND,
- TALER_EC_AUDITOR_RESOURCE_NOT_FOUND,
- "row could not be found");
-
- }
-
- // on success?
- return TALER_MHD_REPLY_JSON_PACK (connection,
- MHD_HTTP_NO_CONTENT,
- GNUNET_JSON_pack_string ("status",
- "DENOMINATION_PENDING_OK"));
-
-}
diff --git a/src/auditor/taler-auditor-httpd_denomination-pending-del.h b/src/auditor/taler-auditor-httpd_denomination-pending-del.h
deleted file mode 100644
index 4def8a5e7..000000000
--- a/src/auditor/taler-auditor-httpd_denomination-pending-del.h
+++ /dev/null
@@ -1,59 +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_DEL_H
-#define SRC_TALER_AUDITOR_HTTPD_DENOMINATION_PENDING_DEL_H
-
-
-#include <microhttpd.h>
-#include "taler-auditor-httpd.h"
-
-/**
- * Initialize subsystem.
- */
-void
-TEAH_DENOMINATION_PENDING_DELETE_init (void);
-
-/**
- * Shut down subsystem.
- */
-void
-TEAH_DENOMINATION_PENDING_DELETE_done (void);
-
-/**
- * Handle a "/denomination-pending" request. Parses the JSON, and, if
- * successful, checks the signatures and stores the result in the DB.
- *
- * @param rh context of the handler
- * @param connection the MHD connection to handle
- * @param[in,out] connection_cls the connection's closure (can be updated)
- * @param upload_data upload data
- * @param[in,out] upload_data_size number of bytes (left) in @a upload_data
- * @param args NULL-terminated array of remaining parts of the URI broken up at '/'
- * @return MHD result code
- */
-MHD_RESULT
-TAH_DENOMINATION_PENDING_handler_delete (
- 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-del.c b/src/auditor/taler-auditor-httpd_denominations-without-sigs-del.c
deleted file mode 100644
index e94b4532c..000000000
--- a/src/auditor/taler-auditor-httpd_denominations-without-sigs-del.c
+++ /dev/null
@@ -1,78 +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 "taler-auditor-httpd_denominations-without-sigs-del.h"
-
-
-MHD_RESULT
-TAH_DENOMINATIONS_WITHOUT_SIGS_handler_delete (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;
-
- 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,
- "row could not be found");
-
- 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);
- }
-
-
- // execute the transaction
- qs = TAH_plugin->delete_denominations_without_sigs (TAH_plugin->cls,
- row_id);
-
- if (0 == qs)
- {
- // goes in here if there was an error with the transaction
- GNUNET_break (GNUNET_DB_STATUS_HARD_ERROR == qs);
- TALER_LOG_WARNING (
- "Failed to handle DELETE /denominations-without-sigs/ %s",
- args[1]);
- return TALER_MHD_reply_with_error (connection,
- MHD_HTTP_NOT_FOUND,
- TALER_EC_AUDITOR_RESOURCE_NOT_FOUND,
- "row could not be found");
-
- }
-
- // on success?
- return TALER_MHD_REPLY_JSON_PACK (connection,
- MHD_HTTP_NO_CONTENT,
- GNUNET_JSON_pack_string ("status",
- "DENOMINATIONS_WITHOUT_SIGS_OK"));
-
-}
diff --git a/src/auditor/taler-auditor-httpd_denominations-without-sigs-del.h b/src/auditor/taler-auditor-httpd_denominations-without-sigs-del.h
deleted file mode 100644
index b7d8786ef..000000000
--- a/src/auditor/taler-auditor-httpd_denominations-without-sigs-del.h
+++ /dev/null
@@ -1,59 +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_DEL_H
-#define SRC_TALER_AUDITOR_HTTPD_DENOMINATIONS_WITHOUT_SIGS_DEL_H
-
-
-#include <microhttpd.h>
-#include "taler-auditor-httpd.h"
-
-/**
- * Initialize subsystem.
- */
-void
-TEAH_DENOMINATIONS_WITHOUT_SIGS_DELETE_init (void);
-
-/**
- * Shut down subsystem.
- */
-void
-TEAH_DENOMINATIONS_WITHOUT_SIGS_DELETE_done (void);
-
-/**
- * Handle a "/denominations-without-sigs" request. Parses the JSON, and, if
- * successful, checks the signatures and stores the result in the DB.
- *
- * @param rh context of the handler
- * @param connection the MHD connection to handle
- * @param[in,out] connection_cls the connection's closure (can be updated)
- * @param upload_data upload data
- * @param[in,out] upload_data_size number of bytes (left) in @a upload_data
- * @param args NULL-terminated array of remaining parts of the URI broken up at '/'
- * @return MHD result code
- */
-MHD_RESULT
-TAH_DENOMINATIONS_WITHOUT_SIGS_handler_delete (
- 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-del.c b/src/auditor/taler-auditor-httpd_deposit-confirmation-del.c
deleted file mode 100644
index fadd7d479..000000000
--- a/src/auditor/taler-auditor-httpd_deposit-confirmation-del.c
+++ /dev/null
@@ -1,71 +0,0 @@
-/*
- This file is part of TALER
- Copyright (C) 2014-2024 Taler Systems SA
-
- TALER is free software; you can redistribute it and/or modify it under the
- terms of the GNU Affero 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 Affero General Public License for more details.
-
- You should have received a copy of the GNU Affero General Public License along with
- TALER; see the file COPYING. If not, see <http://www.gnu.org/licenses/>
-*/
-/**
- * @file taler-auditor-httpd_deposit-confirmation-del.c
- * @brief Handle /deposit-confirmation delete request;
- * Remove the specified entry from the database
- * @author Cedric Zwahlen
- */
-#include "taler-auditor-httpd_deposit-confirmation-del.h"
-
-
-MHD_RESULT
-TAH_DEPOSIT_CONFIRMATION_handler_delete (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;
-
- uint64_t row_id = atoi (args[1]);
-
- 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);
- }
-
-
- // execute the transaction
- qs = TAH_plugin->delete_deposit_confirmation (TAH_plugin->cls,row_id);
-
- if (0 > qs)
- {
- // goes in here if there was an error with the transaction
- GNUNET_break (GNUNET_DB_STATUS_HARD_ERROR == qs);
- TALER_LOG_WARNING ("Failed to handle DELETE /deposit-confirmation/ %s\n",
- args[1]);
- return TALER_MHD_reply_with_error (connection,
- MHD_HTTP_NOT_FOUND,
- TALER_EC_EXCHANGE_DEPOSITS_GET_NOT_FOUND,
- "row could not be found");
-
- }
-
- // on success?
- return TALER_MHD_REPLY_JSON_PACK (connection,
- MHD_HTTP_NO_CONTENT,
- GNUNET_JSON_pack_string ("status",
- "DEPOSIT_CONFIRMATION_OK"));
-
-}
diff --git a/src/auditor/taler-auditor-httpd_deposit-confirmation-del.h b/src/auditor/taler-auditor-httpd_deposit-confirmation-del.h
deleted file mode 100644
index 032fd8aac..000000000
--- a/src/auditor/taler-auditor-httpd_deposit-confirmation-del.h
+++ /dev/null
@@ -1,62 +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 Affero 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 Affero General Public License for more details.
-
- You should have received a copy of the GNU Affero General Public License along with
- TALER; see the file COPYING. If not, see <http://www.gnu.org/licenses/>
-*/
-/**
- * @file taler-auditor-httpd_deposit-confirmation-del.h
- * @brief Handle DELETE /deposit-confirmation requests
- * @author Cedric Zwahlen
- */
-#ifndef TALER_AUDITOR_HTTPD_DEPOSIT_CONFIRMATION_DEL_H
-#define TALER_AUDITOR_HTTPD_DEPOSIT_CONFIRMATION_DEL_H
-
-#include <gnunet/gnunet_util_lib.h>
-#include <microhttpd.h>
-#include "taler-auditor-httpd.h"
-
-/**
- * Initialize subsystem.
- */
-void
-TEAH_DEPOSIT_CONFIRMATION_DELETE_init (void);
-
-/**
- * Shut down subsystem.
- */
-void
-TEAH_DEPOSIT_CONFIRMATION_DELETE_done (void);
-
-/**
- * Handle a "/deposit-confirmation" request. Parses the JSON, and, if
- * successful, checks the signatures and stores the result in the DB.
- *
- * @param rh context of the handler
- * @param connection the MHD connection to handle
- * @param[in,out] connection_cls the connection's closure (can be updated)
- * @param upload_data upload data
- * @param[in,out] upload_data_size number of bytes (left) in @a upload_data
- * @param args NULL-terminated array of remaining parts of the URI broken up at '/'
- * @return MHD result code
- */
-MHD_RESULT
-TAH_DEPOSIT_CONFIRMATION_handler_delete (
- 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-del.c b/src/auditor/taler-auditor-httpd_emergency-by-count-del.c
deleted file mode 100644
index b58dc765c..000000000
--- a/src/auditor/taler-auditor-httpd_emergency-by-count-del.c
+++ /dev/null
@@ -1,75 +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 "taler-auditor-httpd_emergency-by-count-del.h"
-
-
-MHD_RESULT
-TAH_EMERGENCY_BY_COUNT_handler_delete (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;
- 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,
- "row could not be found");
-
- 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);
- }
-
-
- // execute the transaction
- qs = TAH_plugin->delete_emergency_by_count (TAH_plugin->cls,
- row_id);
-
- if (0 > qs)
- {
- // goes in here if there was an error with the transaction
- GNUNET_break (GNUNET_DB_STATUS_HARD_ERROR == qs);
- TALER_LOG_WARNING (
- "Failed to handle DELETE /emergency-by-count/ %s\n",
- args[1]);
- return TALER_MHD_reply_with_error (connection,
- MHD_HTTP_NOT_FOUND,
- TALER_EC_AUDITOR_RESOURCE_NOT_FOUND,
- "row could not be found");
-
- }
-
- // on success?
- return TALER_MHD_REPLY_JSON_PACK (connection,
- MHD_HTTP_NO_CONTENT,
- GNUNET_JSON_pack_string ("status",
- "EMERGENCY_BY_COUNT_OK"));
-}
diff --git a/src/auditor/taler-auditor-httpd_emergency-by-count-del.h b/src/auditor/taler-auditor-httpd_emergency-by-count-del.h
deleted file mode 100644
index f8cd7bd00..000000000
--- a/src/auditor/taler-auditor-httpd_emergency-by-count-del.h
+++ /dev/null
@@ -1,58 +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_DEL_H
-#define SRC_TALER_AUDITOR_HTTPD_EMERGENCY_BY_COUNT_DEL_H
-
-
-#include <microhttpd.h>
-#include "taler-auditor-httpd.h"
-
-/**
-* Initialize subsystem.
-*/
-void
-TEAH_EMERGENCY_BY_COUNT_DELETE_init (void);
-
-/**
-* Shut down subsystem.
-*/
-void
-TEAH_EMERGENCY_BY_COUNT_DELETE_done (void);
-
-/**
-* Handle a "/emergency-by-count" request. Parses the JSON, and, if
-* successful, checks the signatures and stores the result in the DB.
-*
-* @param rh context of the handler
-* @param connection the MHD connection to handle
-* @param[in,out] connection_cls the connection's closure (can be updated)
-* @param upload_data upload data
-* @param[in,out] upload_data_size number of bytes (left) in @a upload_data
- * @param args NULL-terminated array of remaining parts of the URI broken up at '/'
-* @return MHD result code
-*/
-MHD_RESULT
-TAH_EMERGENCY_BY_COUNT_handler_delete (
- 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-del.c b/src/auditor/taler-auditor-httpd_emergency-del.c
deleted file mode 100644
index 014190f08..000000000
--- a/src/auditor/taler-auditor-httpd_emergency-del.c
+++ /dev/null
@@ -1,78 +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 "taler-auditor-httpd_emergency-del.h"
-
-
-MHD_RESULT
-TAH_EMERGENCY_handler_delete (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;
-
- 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,
- "row could not be found");
-
- 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);
- }
-
-
- // execute the transaction
- qs = TAH_plugin->delete_emergency (TAH_plugin->cls,
- row_id);
-
- if (0 > qs)
- {
- // goes in here if there was an error with the transaction
- GNUNET_break (GNUNET_DB_STATUS_HARD_ERROR == qs);
- TALER_LOG_WARNING (
- "Failed to handle DELETE /emergency/ %s\n",
- args[1]);
- return TALER_MHD_reply_with_error (connection,
- MHD_HTTP_NOT_FOUND,
- TALER_EC_AUDITOR_RESOURCE_NOT_FOUND,
- "row could not be found");
-
- }
-
- // on success?
- return TALER_MHD_REPLY_JSON_PACK (connection,
- MHD_HTTP_NO_CONTENT,
- GNUNET_JSON_pack_string ("status",
- "EMERGENCY_OK"));
-
-}
diff --git a/src/auditor/taler-auditor-httpd_emergency-del.h b/src/auditor/taler-auditor-httpd_emergency-del.h
deleted file mode 100644
index 16928dee7..000000000
--- a/src/auditor/taler-auditor-httpd_emergency-del.h
+++ /dev/null
@@ -1,58 +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_DEL_H
-#define SRC_TALER_AUDITOR_HTTPD_EMERGENCY_DEL_H
-
-
-#include <microhttpd.h>
-#include "taler-auditor-httpd.h"
-
-/**
-* Initialize subsystem.
-*/
-void
-TEAH_EMERGENCY_DELETE_init (void);
-
-/**
-* Shut down subsystem.
-*/
-void
-TEAH_EMERGENCY_DELETE_done (void);
-
-/**
- * Handle a "/emergency" request. Parses the JSON, and, if
- * successful, checks the signatures and stores the result in the DB.
- *
- * @param rh context of the handler
- * @param connection the MHD connection to handle
- * @param[in,out] connection_cls the connection's closure (can be updated)
- * @param upload_data upload data
- * @param[in,out] upload_data_size number of bytes (left) in @a upload_data
- * @param args NULL-terminated array of remaining parts of the URI broken up at '/'
- * @return MHD result code
- */
-MHD_RESULT
-TAH_EMERGENCY_handler_delete (
- 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_fee-time-inconsistency-del.c b/src/auditor/taler-auditor-httpd_fee-time-inconsistency-del.c
deleted file mode 100644
index 377db21ad..000000000
--- a/src/auditor/taler-auditor-httpd_fee-time-inconsistency-del.c
+++ /dev/null
@@ -1,78 +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 "taler-auditor-httpd_fee-time-inconsistency-del.h"
-
-
-MHD_RESULT
-TAH_FEE_TIME_INCONSISTENCY_handler_delete (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;
-
- 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,
- "row could not be found");
-
- 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);
- }
-
-
- // execute the transaction
- qs = TAH_plugin->delete_fee_time_inconsistency (TAH_plugin->cls,
- row_id);
-
- if (0 > qs)
- {
- // goes in here if there was an error with the transaction
- GNUNET_break (GNUNET_DB_STATUS_HARD_ERROR == qs);
- TALER_LOG_WARNING (
- "Failed to handle DELETE /fee-time-inconsistency/ %s\n",
- args[1]);
- return TALER_MHD_reply_with_error (connection,
- MHD_HTTP_NOT_FOUND,
- TALER_EC_AUDITOR_RESOURCE_NOT_FOUND,
- "row could not be found");
-
- }
-
- // on success?
- return TALER_MHD_REPLY_JSON_PACK (connection,
- MHD_HTTP_NO_CONTENT,
- GNUNET_JSON_pack_string ("status",
- "FEE_TIME_INCONSISTENCY_OK"));
-
-}
diff --git a/src/auditor/taler-auditor-httpd_fee-time-inconsistency-del.h b/src/auditor/taler-auditor-httpd_fee-time-inconsistency-del.h
deleted file mode 100644
index 549b6b2b0..000000000
--- a/src/auditor/taler-auditor-httpd_fee-time-inconsistency-del.h
+++ /dev/null
@@ -1,58 +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_DEL_H
-#define SRC_TALER_AUDITOR_HTTPD_FEE_TIME_INCONSISTENCY_DEL_H
-
-
-#include <microhttpd.h>
-#include "taler-auditor-httpd.h"
-
-/**
-* Initialize subsystem.
-*/
-void
-TEAH_FEE_TIME_INCONSISTENCY_DELETE_init (void);
-
-/**
-* Shut down subsystem.
-*/
-void
-TEAH_FEE_TIME_INCONSISTENCY_DELETE_done (void);
-
-/**
- * Handle a "/fee-time-inconsistency" request. Parses the JSON, and, if
- * successful, checks the signatures and stores the result in the DB.
- *
- * @param rh context of the handler
- * @param connection the MHD connection to handle
- * @param[in,out] connection_cls the connection's closure (can be updated)
- * @param upload_data upload data
- * @param[in,out] upload_data_size number of bytes (left) in @a upload_data
- * @param args NULL-terminated array of remaining parts of the URI broken up at '/'
- * @return MHD result code
- */
-MHD_RESULT
-TAH_FEE_TIME_INCONSISTENCY_handler_delete (
- 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_misattribution-in-inconsistency-del.c b/src/auditor/taler-auditor-httpd_misattribution-in-inconsistency-del.c
deleted file mode 100644
index e6fe726fa..000000000
--- a/src/auditor/taler-auditor-httpd_misattribution-in-inconsistency-del.c
+++ /dev/null
@@ -1,79 +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 "taler-auditor-httpd_misattribution-in-inconsistency-del.h"
-
-
-MHD_RESULT
-TAH_MISATTRIBUTION_IN_INCONSISTENCY_handler_delete (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;
-
- 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,
- "row could not be found");
-
- 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);
- }
-
-
- // execute the transaction
- qs = TAH_plugin->delete_misattribution_in_inconsistency (TAH_plugin->cls,
- row_id);
-
- if (0 == qs)
- {
- // goes in here if there was an error with the transaction
- GNUNET_break (GNUNET_DB_STATUS_HARD_ERROR == qs);
- TALER_LOG_WARNING (
- "Failed to handle DELETE /misattribution-in-inconsistency/ %s",
- args[1]);
- return TALER_MHD_reply_with_error (connection,
- MHD_HTTP_NOT_FOUND,
- TALER_EC_AUDITOR_RESOURCE_NOT_FOUND,
- "row could not be found");
-
- }
-
- // on success?
- return TALER_MHD_REPLY_JSON_PACK (connection,
- MHD_HTTP_NO_CONTENT,
- GNUNET_JSON_pack_string ("status",
- "MISATTRIBUTION_IN_INCONSISTENCY_OK"));
-
-}
diff --git a/src/auditor/taler-auditor-httpd_misattribution-in-inconsistency-del.h b/src/auditor/taler-auditor-httpd_misattribution-in-inconsistency-del.h
deleted file mode 100644
index 57b86ecf7..000000000
--- a/src/auditor/taler-auditor-httpd_misattribution-in-inconsistency-del.h
+++ /dev/null
@@ -1,59 +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_DEL_H
-#define SRC_TALER_AUDITOR_HTTPD_MISATTRIBUTION_IN_INCONSISTENCY_DEL_H
-
-
-#include <microhttpd.h>
-#include "taler-auditor-httpd.h"
-
-/**
- * Initialize subsystem.
- */
-void
-TEAH_MISATTRIBUTION_IN_INCONSISTENCY_DELETE_init (void);
-
-/**
- * Shut down subsystem.
- */
-void
-TEAH_MISATTRIBUTION_IN_INCONSISTENCY_DELETE_done (void);
-
-/**
- * Handle a "/misattribution-in-inconsistency" request. Parses the JSON, and, if
- * successful, checks the signatures and stores the result in the DB.
- *
- * @param rh context of the handler
- * @param connection the MHD connection to handle
- * @param[in,out] connection_cls the connection's closure (can be updated)
- * @param upload_data upload data
- * @param[in,out] upload_data_size number of bytes (left) in @a upload_data
- * @param args NULL-terminated array of remaining parts of the URI broken up at '/'
- * @return MHD result code
- */
-MHD_RESULT
-TAH_MISATTRIBUTION_IN_INCONSISTENCY_handler_delete (
- 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_purse-not-closed-inconsistencies-del.c b/src/auditor/taler-auditor-httpd_purse-not-closed-inconsistencies-del.c
deleted file mode 100644
index 0310e9b52..000000000
--- a/src/auditor/taler-auditor-httpd_purse-not-closed-inconsistencies-del.c
+++ /dev/null
@@ -1,79 +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 "taler-auditor-httpd_purse-not-closed-inconsistencies-del.h"
-
-
-MHD_RESULT
-TAH_PURSE_NOT_CLOSED_INCONSISTENCIES_handler_delete (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;
-
- 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,
- "row could not be found");
-
- 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);
- }
-
-
- // execute the transaction
- qs = TAH_plugin->delete_purse_not_closed_inconsistencies (TAH_plugin->cls,
- row_id);
-
- if (0 > qs)
- {
- // goes in here if there was an error with the transaction
- GNUNET_break (GNUNET_DB_STATUS_HARD_ERROR == qs);
- TALER_LOG_WARNING (
- "Failed to handle DELETE /purse-not-closed-inconsistencies/ %s\n",
- args[1]);
- return TALER_MHD_reply_with_error (connection,
- MHD_HTTP_NOT_FOUND,
- TALER_EC_AUDITOR_RESOURCE_NOT_FOUND,
- "row could not be found");
-
- }
-
- // on success?
- return TALER_MHD_REPLY_JSON_PACK (connection,
- MHD_HTTP_NO_CONTENT,
- GNUNET_JSON_pack_string ("status",
- "PURSE_NOT_CLOSED_INCONSISTENCIES_OK"));
-
-}
diff --git a/src/auditor/taler-auditor-httpd_purse-not-closed-inconsistencies-del.h b/src/auditor/taler-auditor-httpd_purse-not-closed-inconsistencies-del.h
deleted file mode 100644
index 620a55aa1..000000000
--- a/src/auditor/taler-auditor-httpd_purse-not-closed-inconsistencies-del.h
+++ /dev/null
@@ -1,56 +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_DEL_H
-#define SRC_TALER_AUDITOR_HTTPD_PURSE_NOT_CLOSED_INCONSISTENCIES_DEL_H
-
-
-#include <microhttpd.h>
-#include "taler-auditor-httpd.h"
-
-/**
-* Initialize subsystem.
-*/
-void
-TEAH_PURSE_NOT_CLOSED_INCONSISTENCIES_DELETE_init (void);
-
-/**
-* Shut down subsystem.
-*/
-void
-TEAH_PURSE_NOT_CLOSED_INCONSISTENCIES_DELETE_done (void);
-
-/**
- * Handle a "/purse-not-closed-inconsistencies" request. Parses the JSON, and, if
- * successful, checks the signatures and stores the result in the DB.
- *
- * @param rh context of the handler
- * @param connection the MHD connection to handle
- * @param[in,out] connection_cls the connection's closure (can be updated)
- * @param upload_data upload data
- * @param[in,out] upload_data_size number of bytes (left) in @a upload_data
- * @param args NULL-terminated array of remaining parts of the URI broken up at '/'
- * @return MHD result code
- */
-MHD_RESULT
-TAH_PURSE_NOT_CLOSED_INCONSISTENCIES_handler_delete (
- 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_refreshes-hanging-del.c b/src/auditor/taler-auditor-httpd_refreshes-hanging-del.c
deleted file mode 100644
index bbe1e8e2c..000000000
--- a/src/auditor/taler-auditor-httpd_refreshes-hanging-del.c
+++ /dev/null
@@ -1,80 +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 "taler-auditor-httpd_refreshes-hanging-del.h"
-
-
-MHD_RESULT
-TAH_REFRESHES_HANGING_handler_delete (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;
-
- 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,
- "row could not be found");
-
- 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);
- }
-
-
- // execute the transaction
- qs = TAH_plugin->delete_refreshes_hanging (TAH_plugin->cls,
- row_id);
-
- if (0 > qs)
- {
- // goes in here if there was an error with the transaction
- GNUNET_break (GNUNET_DB_STATUS_HARD_ERROR == qs);
- TALER_LOG_WARNING (
- "Failed to handle DELETE /refreshes-hanging/ %s\n",
- args[1]);
- return TALER_MHD_reply_with_error (connection,
- MHD_HTTP_NOT_FOUND,
- TALER_EC_AUDITOR_RESOURCE_NOT_FOUND,
- "row could not be found");
-
- }
-
- // on success?
- return TALER_MHD_REPLY_JSON_PACK (connection,
- MHD_HTTP_NO_CONTENT,
- GNUNET_JSON_pack_string ("status",
- "REFRESHES_HANGING_OK"));
-
-
-}
diff --git a/src/auditor/taler-auditor-httpd_refreshes-hanging-del.h b/src/auditor/taler-auditor-httpd_refreshes-hanging-del.h
deleted file mode 100644
index b1a4f0cbf..000000000
--- a/src/auditor/taler-auditor-httpd_refreshes-hanging-del.h
+++ /dev/null
@@ -1,56 +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_DEL_H
-#define SRC_TALER_AUDITOR_HTTPD_REFRESHES_HANGING_DEL_H
-
-
-#include <microhttpd.h>
-#include "taler-auditor-httpd.h"
-
-/**
-* Initialize subsystem.
-*/
-void
-TEAH_REFRESHES_HANGING_DELETE_init (void);
-
-/**
-* Shut down subsystem.
-*/
-void
-TEAH_REFRESHES_HANGING_DELETE_done (void);
-
-/**
- * Handle a "/refreshes-hanging" request. Parses the JSON, and, if
- * successful, checks the signatures and stores the result in the DB.
- *
- * @param rh context of the handler
- * @param connection the MHD connection to handle
- * @param[in,out] connection_cls the connection's closure (can be updated)
- * @param upload_data upload data
- * @param[in,out] upload_data_size number of bytes (left) in @a upload_data
- * @param args NULL-terminated array of remaining parts of the URI broken up at '/'
- * @return MHD result code
- */
-MHD_RESULT
-TAH_REFRESHES_HANGING_handler_delete (
- 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_reserve-balance-insufficient-inconsistency-del.c b/src/auditor/taler-auditor-httpd_reserve-balance-insufficient-inconsistency-del.c
deleted file mode 100644
index 29acb4249..000000000
--- a/src/auditor/taler-auditor-httpd_reserve-balance-insufficient-inconsistency-del.c
+++ /dev/null
@@ -1,86 +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 "taler-auditor-httpd_reserve-balance-insufficient-inconsistency-del.h"
-
-
-MHD_RESULT
-TAH_RESERVE_BALANCE_INSUFFICIENT_INCONSISTENCY_handler_delete (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;
-
- 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,
- "row could not be found");
-
- 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);
- }
-
-
- // execute the transaction
- qs = TAH_plugin->delete_reserve_balance_insufficient_inconsistency (
- TAH_plugin->cls,
- row_id);
-
- if (0 == qs)
- {
- // goes in here if there was an error with the transaction
- GNUNET_break (GNUNET_DB_STATUS_HARD_ERROR == qs);
- TALER_LOG_WARNING (
- "Failed to handle DELETE /reserve-balance-insufficient-inconsistency/ %s\n",
- args[1]);
- return TALER_MHD_reply_with_error (connection,
- MHD_HTTP_NOT_FOUND,
- TALER_EC_AUDITOR_RESOURCE_NOT_FOUND,
- "row could not be found");
-
- }
-
- // on success?
- return TALER_MHD_REPLY_JSON_PACK (connection,
- MHD_HTTP_NO_CONTENT,
- GNUNET_JSON_pack_string ("status",
- "RESERVE_BALANCE_INSUFFICIENT_INCONSISTENCY_OK"));
-
-}
diff --git a/src/auditor/taler-auditor-httpd_reserve-balance-insufficient-inconsistency-del.h b/src/auditor/taler-auditor-httpd_reserve-balance-insufficient-inconsistency-del.h
deleted file mode 100644
index 42937e4b2..000000000
--- a/src/auditor/taler-auditor-httpd_reserve-balance-insufficient-inconsistency-del.h
+++ /dev/null
@@ -1,56 +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 TALER_AUDITOR_HTTPD_RESERVE_BALANCE_INSUFFICIENT_INCONSISTENCY_DEL_H
-#define TALER_AUDITOR_HTTPD_RESERVE_BALANCE_INSUFFICIENT_INCONSISTENCY_DEL_H
-
-
-#include <microhttpd.h>
-#include "taler-auditor-httpd.h"
-
-/**
-* Initialize subsystem.
-*/
-void
-TEAH_RESERVE_BALANCE_INSUFFICIENT_INCONSISTENCY_DELETE_init (void);
-
-/**
- * Shut down subsystem.
- */
-void
-TEAH_RESERVE_BALANCE_INSUFFICIENT_INCONSISTENCY_DELETE_done (void);
-
-/**
- * Handle a "/reserve-balance-insufficient-inconsistency" request. Parses the JSON, and, if
- * successful, checks the signatures and stores the result in the DB.
- *
- * @param rh context of the handler
- * @param connection the MHD connection to handle
- * @param[in,out] connection_cls the connection's closure (can be updated)
- * @param upload_data upload data
- * @param[in,out] upload_data_size number of bytes (left) in @a upload_data
- * @param args NULL-terminated array of remaining parts of the URI broken up at '/'
- * @return MHD result code
- */
-MHD_RESULT
-TAH_RESERVE_BALANCE_INSUFFICIENT_INCONSISTENCY_handler_delete (
- 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_reserve-balance-summary-wrong-inconsistency-del.c b/src/auditor/taler-auditor-httpd_reserve-balance-summary-wrong-inconsistency-del.c
deleted file mode 100644
index 2a1eda133..000000000
--- a/src/auditor/taler-auditor-httpd_reserve-balance-summary-wrong-inconsistency-del.c
+++ /dev/null
@@ -1,86 +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 "taler-auditor-httpd_reserve-balance-summary-wrong-inconsistency-del.h"
-
-
-MHD_RESULT
-TAH_RESERVE_BALANCE_SUMMARY_WRONG_INCONSISTENCY_handler_delete (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;
-
- 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,
- "row could not be found");
-
- 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);
- }
-
-
- // execute the transaction
- qs = TAH_plugin->delete_reserve_balance_summary_wrong_inconsistency (
- TAH_plugin->cls,
- row_id);
-
- if (0 == qs)
- {
- // goes in here if there was an error with the transaction
- GNUNET_break (GNUNET_DB_STATUS_HARD_ERROR == qs);
- TALER_LOG_WARNING (
- "Failed to handle DELETE /reserve-balance-summary-wrong-inconsistency/ %s",
- args[1]);
- return TALER_MHD_reply_with_error (connection,
- MHD_HTTP_NOT_FOUND,
- TALER_EC_AUDITOR_RESOURCE_NOT_FOUND,
- "row could not be found");
-
- }
-
- // on success?
- return TALER_MHD_REPLY_JSON_PACK (connection,
- MHD_HTTP_NO_CONTENT,
- GNUNET_JSON_pack_string ("status",
- "RESERVE_BALANCE_SUMMARY_WRONG_INCONSISTENCY_OK"));
-
-}
diff --git a/src/auditor/taler-auditor-httpd_reserve-balance-summary-wrong-inconsistency-del.h b/src/auditor/taler-auditor-httpd_reserve-balance-summary-wrong-inconsistency-del.h
deleted file mode 100644
index f269b52f5..000000000
--- a/src/auditor/taler-auditor-httpd_reserve-balance-summary-wrong-inconsistency-del.h
+++ /dev/null
@@ -1,57 +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 TALER_AUDITOR_HTTPD_RESERVE_BALANCE_SUMMARY_WRONG_INCONSISTENCY_DEL_H
-#define TALER_AUDITOR_HTTPD_RESERVE_BALANCE_SUMMARY_WRONG_INCONSISTENCY_DEL_H
-
-
-#include <microhttpd.h>
-#include "taler-auditor-httpd.h"
-
-/**
- * Initialize subsystem.
- */
-void
-TEAH_RESERVE_BALANCE_SUMMARY_WRONG_INCONSISTENCY_DELETE_init (void);
-
-/**
- * Shut down subsystem.
- */
-void
-TEAH_RESERVE_BALANCE_SUMMARY_WRONG_INCONSISTENCY_DELETE_done (void);
-
-/**
- * Handle a "/reserve-balance-summary-wrong-inconsistency" request. Parses the JSON, and, if
- * successful, checks the signatures and stores the result in the DB.
- *
- * @param rh context of the handler
- * @param connection the MHD connection to handle
- * @param[in,out] connection_cls the connection's closure (can be updated)
- * @param upload_data upload data
- * @param[in,out] upload_data_size number of bytes (left) in @a upload_data
- * @param args NULL-terminated array of remaining parts of the URI broken up at '/'
- * @return MHD result code
- */
-MHD_RESULT
-TAH_RESERVE_BALANCE_SUMMARY_WRONG_INCONSISTENCY_handler_delete (
- 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_reserve-in-inconsistency-del.c b/src/auditor/taler-auditor-httpd_reserve-in-inconsistency-del.c
deleted file mode 100644
index 4096c3d0a..000000000
--- a/src/auditor/taler-auditor-httpd_reserve-in-inconsistency-del.c
+++ /dev/null
@@ -1,78 +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 "taler-auditor-httpd_reserve-in-inconsistency-del.h"
-
-
-MHD_RESULT
-TAH_RESERVE_IN_INCONSISTENCY_handler_delete (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;
-
- 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,
- "row could not be found");
-
- 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);
- }
-
-
- // execute the transaction
- qs = TAH_plugin->delete_reserve_in_inconsistency (TAH_plugin->cls,
- row_id);
-
- if (0 == qs)
- {
- // goes in here if there was an error with the transaction
- GNUNET_break (GNUNET_DB_STATUS_HARD_ERROR == qs);
- TALER_LOG_WARNING (
- "Failed to handle DELETE /reserve-in-inconsistency/ %s",
- args[1]);
- return TALER_MHD_reply_with_error (connection,
- MHD_HTTP_NOT_FOUND,
- TALER_EC_AUDITOR_RESOURCE_NOT_FOUND,
- "row could not be found");
-
- }
-
- // on success?
- return TALER_MHD_REPLY_JSON_PACK (connection,
- MHD_HTTP_NO_CONTENT,
- GNUNET_JSON_pack_string ("status",
- "RESERVE_IN_INCONSISTENCY_OK"));
-
-}
diff --git a/src/auditor/taler-auditor-httpd_reserve-in-inconsistency-del.h b/src/auditor/taler-auditor-httpd_reserve-in-inconsistency-del.h
deleted file mode 100644
index 12cc7f63d..000000000
--- a/src/auditor/taler-auditor-httpd_reserve-in-inconsistency-del.h
+++ /dev/null
@@ -1,57 +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_DEL_H
-#define SRC_TALER_AUDITOR_HTTPD_RESERVE_IN_INCONSISTENCY_DEL_H
-
-
-#include <microhttpd.h>
-#include "taler-auditor-httpd.h"
-
-/**
- * Initialize subsystem.
- */
-void
-TEAH_RESERVE_IN_INCONSISTENCY_DELETE_init (void);
-
-/**
- * Shut down subsystem.
- */
-void
-TEAH_RESERVE_IN_INCONSISTENCY_DELETE_done (void);
-
-/**
- * Handle a "/reserve-in-inconsistency" request. Parses the JSON, and, if
- * successful, checks the signatures and stores the result in the DB.
- *
- * @param rh context of the handler
- * @param connection the MHD connection to handle
- * @param[in,out] connection_cls the connection's closure (can be updated)
- * @param upload_data upload data
- * @param[in,out] upload_data_size number of bytes (left) in @a upload_data
- * @param args NULL-terminated array of remaining parts of the URI broken up at '/'
- * @return MHD result code
- */
-MHD_RESULT
-TAH_RESERVE_IN_INCONSISTENCY_handler_delete (
- 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_reserve-not-closed-inconsistency-del.c b/src/auditor/taler-auditor-httpd_reserve-not-closed-inconsistency-del.c
deleted file mode 100644
index 9d9e45094..000000000
--- a/src/auditor/taler-auditor-httpd_reserve-not-closed-inconsistency-del.c
+++ /dev/null
@@ -1,81 +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 "taler-auditor-httpd_reserve-not-closed-inconsistency-del.h"
-
-
-MHD_RESULT
-TAH_RESERVE_NOT_CLOSED_INCONSISTENCY_handler_delete (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;
-
- 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,
- "row could not be found");
-
- 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);
- }
-
-
- // execute the transaction
- qs = TAH_plugin->delete_reserve_not_closed_inconsistency (TAH_plugin->cls,
- row_id);
-
- if (0 == qs)
- {
- // goes in here if there was an error with the transaction
- GNUNET_break (GNUNET_DB_STATUS_HARD_ERROR == qs);
- TALER_LOG_WARNING (
- "Failed to handle DELETE /reserve-not-closed-inconsistency/ %s",
- args[1]);
- return TALER_MHD_reply_with_error (connection,
- MHD_HTTP_NOT_FOUND,
- TALER_EC_AUDITOR_RESOURCE_NOT_FOUND,
- "row could not be found");
-
- }
-
- // on success?
- return TALER_MHD_REPLY_JSON_PACK (connection,
- MHD_HTTP_NO_CONTENT,
- GNUNET_JSON_pack_string ("status",
- "RESERVE_NOT_CLOSED_INCONSISTENCY_OK"));
-
-
-}
diff --git a/src/auditor/taler-auditor-httpd_reserve-not-closed-inconsistency-del.h b/src/auditor/taler-auditor-httpd_reserve-not-closed-inconsistency-del.h
deleted file mode 100644
index 4f12a813b..000000000
--- a/src/auditor/taler-auditor-httpd_reserve-not-closed-inconsistency-del.h
+++ /dev/null
@@ -1,57 +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_DEL_H
-#define SRC_TALER_AUDITOR_HTTPD_RESERVE_NOT_CLOSED_INCONSISTENCY_DEL_H
-
-
-#include <microhttpd.h>
-#include "taler-auditor-httpd.h"
-
-/**
- * Initialize subsystem.
- */
-void
-TEAH_RESERVE_NOT_CLOSED_INCONSISTENCY_DELETE_init (void);
-
-/**
- * Shut down subsystem.
- */
-void
-TEAH_RESERVE_NOT_CLOSED_INCONSISTENCY_DELETE_done (void);
-
-/**
- * Handle a "/reserve-not-closed-inconsistency" request. Parses the JSON, and, if
- * successful, checks the signatures and stores the result in the DB.
- *
- * @param rh context of the handler
- * @param connection the MHD connection to handle
- * @param[in,out] connection_cls the connection's closure (can be updated)
- * @param upload_data upload data
- * @param[in,out] upload_data_size number of bytes (left) in @a upload_data
- * @param args NULL-terminated array of remaining parts of the URI broken up at '/'
- * @return MHD result code
- */
-MHD_RESULT
-TAH_RESERVE_NOT_CLOSED_INCONSISTENCY_handler_delete (
- 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_row-inconsistency-del.c b/src/auditor/taler-auditor-httpd_row-inconsistency-del.c
deleted file mode 100644
index 98f848161..000000000
--- a/src/auditor/taler-auditor-httpd_row-inconsistency-del.c
+++ /dev/null
@@ -1,67 +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 "taler-auditor-httpd_row-inconsistency-del.h"
-
-
-MHD_RESULT
-TAH_ROW_INCONSISTENCY_handler_delete (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;
-
- uint64_t row_id = atoi (args[1]);
-
-
- 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);
- }
-
-
- // execute the transaction
- qs = TAH_plugin->delete_row_inconsistency (TAH_plugin->cls,row_id);
-
- if (0 > qs)
- {
- // goes in here if there was an error with the transaction
- GNUNET_break (GNUNET_DB_STATUS_HARD_ERROR == qs);
- TALER_LOG_WARNING ("Failed to handle DELETE /row-inconsistency/ %s\n",
- args[1]);
- return TALER_MHD_reply_with_error (connection,
- MHD_HTTP_NOT_FOUND,
- TALER_EC_AUDITOR_RESOURCE_NOT_FOUND,
- "row could not be found");
-
- }
-
- // on success?
- return TALER_MHD_REPLY_JSON_PACK (connection,
- MHD_HTTP_NO_CONTENT,
- GNUNET_JSON_pack_string ("status",
- "ROW_INCONSISTENCY_OK"));
-
-} \ No newline at end of file
diff --git a/src/auditor/taler-auditor-httpd_row-inconsistency-del.h b/src/auditor/taler-auditor-httpd_row-inconsistency-del.h
deleted file mode 100644
index 6611d9812..000000000
--- a/src/auditor/taler-auditor-httpd_row-inconsistency-del.h
+++ /dev/null
@@ -1,59 +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_DEL_H
-#define SRC_TALER_AUDITOR_HTTPD_ROW_INCONSISTENCY_DEL_H
-
-
-#include <gnunet/gnunet_util_lib.h>
-#include <microhttpd.h>
-#include "taler-auditor-httpd.h"
-
-/**
- * Initialize subsystem.
- */
-void
-TEAH_ROW_INCONSISTENCY_DELETE_init (void);
-
-/**
- * Shut down subsystem.
- */
-void
-TEAH_ROW_INCONSISTENCY_DELETE_done (void);
-
-/**
- * Handle a "/deposit-confirmation" request. Parses the JSON, and, if
- * successful, checks the signatures and stores the result in the DB.
- *
- * @param rh context of the handler
- * @param connection the MHD connection to handle
- * @param[in,out] connection_cls the connection's closure (can be updated)
- * @param upload_data upload data
- * @param[in,out] upload_data_size number of bytes (left) in @a upload_data
- * @param args NULL-terminated array of remaining parts of the URI broken up at '/'
- * @return MHD result code
- */
-MHD_RESULT
-TAH_ROW_INCONSISTENCY_handler_delete (
- 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_row-minor-inconsistencies-del.c b/src/auditor/taler-auditor-httpd_row-minor-inconsistencies-del.c
deleted file mode 100644
index 3748a627f..000000000
--- a/src/auditor/taler-auditor-httpd_row-minor-inconsistencies-del.c
+++ /dev/null
@@ -1,78 +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 "taler-auditor-httpd_row-minor-inconsistencies-del.h"
-
-
-MHD_RESULT
-TAH_ROW_MINOR_INCONSISTENCIES_handler_delete (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;
-
- 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,
- "row could not be found");
-
- 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);
- }
-
-
- // execute the transaction
- qs = TAH_plugin->delete_row_minor_inconsistencies (TAH_plugin->cls,
- row_id);
-
- if (0 == qs)
- {
- // goes in here if there was an error with the transaction
- GNUNET_break (GNUNET_DB_STATUS_HARD_ERROR == qs);
- TALER_LOG_WARNING (
- "Failed to handle DELETE /row-minor-inconsistencies/ %s",
- args[1]);
- return TALER_MHD_reply_with_error (connection,
- MHD_HTTP_NOT_FOUND,
- TALER_EC_AUDITOR_RESOURCE_NOT_FOUND,
- "row could not be found");
-
- }
-
- // on success?
- return TALER_MHD_REPLY_JSON_PACK (connection,
- MHD_HTTP_NO_CONTENT,
- GNUNET_JSON_pack_string ("status",
- "ROW_MINOR_INCONSISTENCIES_OK"));
-
-}
diff --git a/src/auditor/taler-auditor-httpd_row-minor-inconsistencies-del.h b/src/auditor/taler-auditor-httpd_row-minor-inconsistencies-del.h
deleted file mode 100644
index 802607201..000000000
--- a/src/auditor/taler-auditor-httpd_row-minor-inconsistencies-del.h
+++ /dev/null
@@ -1,57 +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_DEL_H
-#define SRC_TALER_AUDITOR_HTTPD_ROW_MINOR_INCONSISTENCIES_DEL_H
-
-
-#include <microhttpd.h>
-#include "taler-auditor-httpd.h"
-
-/**
- * Initialize subsystem.
- */
-void
-TEAH_ROW_MINOR_INCONSISTENCIES_DELETE_init (void);
-
-/**
- * Shut down subsystem.
- */
-void
-TEAH_ROW_MINOR_INCONSISTENCIES_DELETE_done (void);
-
-/**
- * Handle a "/row-minor-inconsistencies" request. Parses the JSON, and, if
- * successful, checks the signatures and stores the result in the DB.
- *
- * @param rh context of the handler
- * @param connection the MHD connection to handle
- * @param[in,out] connection_cls the connection's closure (can be updated)
- * @param upload_data upload data
- * @param[in,out] upload_data_size number of bytes (left) in @a upload_data
- * @param args NULL-terminated array of remaining parts of the URI broken up at '/'
- * @return MHD result code
- */
-MHD_RESULT
-TAH_ROW_MINOR_INCONSISTENCIES_handler_delete (
- 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_wire-format-inconsistency-del.c b/src/auditor/taler-auditor-httpd_wire-format-inconsistency-del.c
deleted file mode 100644
index d26e860be..000000000
--- a/src/auditor/taler-auditor-httpd_wire-format-inconsistency-del.c
+++ /dev/null
@@ -1,78 +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 "taler-auditor-httpd_wire-format-inconsistency-del.h"
-
-
-MHD_RESULT
-TAH_WIRE_FORMAT_INCONSISTENCY_handler_delete (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;
-
- 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,
- "row could not be found");
-
- 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);
- }
-
-
- // execute the transaction
- qs = TAH_plugin->delete_wire_format_inconsistency (TAH_plugin->cls,
- row_id);
-
- if (0 == qs)
- {
- // goes in here if there was an error with the transaction
- GNUNET_break (GNUNET_DB_STATUS_HARD_ERROR == qs);
- TALER_LOG_WARNING (
- "Failed to handle DELETE /wire-format-inconsistency/ %s",
- args[1]);
- return TALER_MHD_reply_with_error (connection,
- MHD_HTTP_NOT_FOUND,
- TALER_EC_AUDITOR_RESOURCE_NOT_FOUND,
- "row could not be found");
-
- }
-
- // on success?
- return TALER_MHD_REPLY_JSON_PACK (connection,
- MHD_HTTP_NO_CONTENT,
- GNUNET_JSON_pack_string ("status",
- "WIRE_FORMAT_INCONSISTENCY_OK"));
-
-}
diff --git a/src/auditor/taler-auditor-httpd_wire-format-inconsistency-del.h b/src/auditor/taler-auditor-httpd_wire-format-inconsistency-del.h
deleted file mode 100644
index 67bf64db1..000000000
--- a/src/auditor/taler-auditor-httpd_wire-format-inconsistency-del.h
+++ /dev/null
@@ -1,59 +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_DEL_H
-#define SRC_TALER_AUDITOR_HTTPD_WIRE_FORMAT_INCONSISTENCY_DEL_H
-
-
-#include <microhttpd.h>
-#include "taler-auditor-httpd.h"
-
-/**
- * Initialize subsystem.
- */
-void
-TEAH_WIRE_FORMAT_INCONSISTENCY_DELETE_init (void);
-
-/**
- * Shut down subsystem.
- */
-void
-TEAH_WIRE_FORMAT_INCONSISTENCY_DELETE_done (void);
-
-/**
- * Handle a "/wire-format-inconsistency" request. Parses the JSON, and, if
- * successful, checks the signatures and stores the result in the DB.
- *
- * @param rh context of the handler
- * @param connection the MHD connection to handle
- * @param[in,out] connection_cls the connection's closure (can be updated)
- * @param upload_data upload data
- * @param[in,out] upload_data_size number of bytes (left) in @a upload_data
- * @param args NULL-terminated array of remaining parts of the URI broken up at '/'
- * @return MHD result code
- */
-MHD_RESULT
-TAH_WIRE_FORMAT_INCONSISTENCY_handler_delete (
- 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_wire-out-inconsistency-del.c b/src/auditor/taler-auditor-httpd_wire-out-inconsistency-del.c
deleted file mode 100644
index b28eb9699..000000000
--- a/src/auditor/taler-auditor-httpd_wire-out-inconsistency-del.c
+++ /dev/null
@@ -1,78 +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 "taler-auditor-httpd_wire-out-inconsistency-del.h"
-
-
-MHD_RESULT
-TAH_WIRE_OUT_INCONSISTENCY_handler_delete (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;
-
- 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,
- "row could not be found");
-
- 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);
- }
-
-
- // execute the transaction
- qs = TAH_plugin->delete_wire_out_inconsistency (TAH_plugin->cls,
- row_id);
-
- if (0 == qs)
- {
- // goes in here if there was an error with the transaction
- GNUNET_break (GNUNET_DB_STATUS_HARD_ERROR == qs);
- TALER_LOG_WARNING (
- "Failed to handle DELETE /wire-out-inconsistency/ %s",
- args[1]);
- return TALER_MHD_reply_with_error (connection,
- MHD_HTTP_NOT_FOUND,
- TALER_EC_AUDITOR_RESOURCE_NOT_FOUND,
- "row could not be found");
-
- }
-
- // on success?
- return TALER_MHD_REPLY_JSON_PACK (connection,
- MHD_HTTP_NO_CONTENT,
- GNUNET_JSON_pack_string ("status",
- "WIRE_OUT_INCONSISTENCY_OK"));
-
-}
diff --git a/src/auditor/taler-auditor-httpd_wire-out-inconsistency-del.h b/src/auditor/taler-auditor-httpd_wire-out-inconsistency-del.h
deleted file mode 100644
index 54db5ef55..000000000
--- a/src/auditor/taler-auditor-httpd_wire-out-inconsistency-del.h
+++ /dev/null
@@ -1,59 +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_DEL_H
-#define SRC_TALER_AUDITOR_HTTPD_WIRE_OUT_INCONSISTENCY_DEL_H
-
-
-#include <microhttpd.h>
-#include "taler-auditor-httpd.h"
-
-/**
- * Initialize subsystem.
- */
-void
-TEAH_WIRE_OUT_INCONSISTENCY_DELETE_init (void);
-
-/**
- * Shut down subsystem.
- */
-void
-TEAH_WIRE_OUT_INCONSISTENCY_DELETE_done (void);
-
-/**
- * Handle a "/wire-out-inconsistency" request. Parses the JSON, and, if
- * successful, checks the signatures and stores the result in the DB.
- *
- * @param rh context of the handler
- * @param connection the MHD connection to handle
- * @param[in,out] connection_cls the connection's closure (can be updated)
- * @param upload_data upload data
- * @param[in,out] upload_data_size number of bytes (left) in @a upload_data
- * @param args NULL-terminated array of remaining parts of the URI broken up at '/'
- * @return MHD result code
- */
-MHD_RESULT
-TAH_WIRE_OUT_INCONSISTENCY_handler_delete (
- 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/auditordb/Makefile.am b/src/auditordb/Makefile.am
index 10649e9e4..198084996 100644
--- a/src/auditordb/Makefile.am
+++ b/src/auditordb/Makefile.am
@@ -61,8 +61,6 @@ endif
libtaler_plugin_auditordb_postgres_la_SOURCES = \
plugin_auditordb_postgres.c \
pg_helper.h pg_helper.c \
- pg_delete_deposit_confirmations.c pg_delete_deposit_confirmations.h \
- pg_delete_pending_deposit.c pg_delete_pending_deposit.h \
pg_delete_purse_info.c pg_delete_purse_info.h \
pg_del_denomination_balance.h pg_del_denomination_balance.c \
pg_del_reserve_info.c pg_del_reserve_info.h \
@@ -98,32 +96,21 @@ libtaler_plugin_auditordb_postgres_la_SOURCES = \
pg_insert_amount_arithmetic_inconsistency.c pg_insert_amount_arithmetic_inconsistency.h \
pg_insert_coin_inconsistency.c pg_insert_coin_inconsistency.h \
pg_insert_row_inconsistency.c pg_insert_row_inconsistency.h \
- pg_del_amount_arithmetic_inconsistency.c pg_del_amount_arithmetic_inconsistency.h \
- pg_del_coin_inconsistency.c pg_del_coin_inconsistency.h \
- pg_del_row_inconsistency.c pg_del_row_inconsistency.h \
- pg_del_emergency.c pg_del_emergency.h \
pg_insert_emergency.c pg_insert_emergency.h \
pg_get_emergency.c pg_get_emergency.h \
- pg_del_emergency_by_count.c pg_del_emergency_by_count.h \
pg_insert_emergency_by_count.c pg_insert_emergency_by_count.h \
pg_get_emergency_by_count.c pg_get_emergency_by_count.h \
- pg_del_denomination_key_validity_withdraw_inconsistency.c pg_del_denomination_key_validity_withdraw_inconsistency.h \
pg_insert_denomination_key_validity_withdraw_inconsistency.c pg_insert_denomination_key_validity_withdraw_inconsistency.h \
pg_get_denomination_key_validity_withdraw_inconsistency.c pg_get_denomination_key_validity_withdraw_inconsistency.h \
- pg_del_purse_not_closed_inconsistencies.c pg_del_purse_not_closed_inconsistencies.h \
pg_insert_purse_not_closed_inconsistencies.c pg_insert_purse_not_closed_inconsistencies.h \
pg_get_purse_not_closed_inconsistencies.c pg_get_purse_not_closed_inconsistencies.h \
- pg_del_reserve_balance_insufficient_inconsistency.c pg_del_reserve_balance_insufficient_inconsistency.h \
pg_insert_reserve_balance_insufficient_inconsistency.c pg_insert_reserve_balance_insufficient_inconsistency.h \
pg_get_reserve_balance_insufficient_inconsistency.c pg_get_reserve_balance_insufficient_inconsistency.h \
-pg_del_bad_sig_losses.c pg_del_bad_sig_losses.h \
pg_insert_bad_sig_losses.c pg_insert_bad_sig_losses.h \
pg_get_bad_sig_losses.c pg_get_bad_sig_losses.h \
pg_update_bad_sig_losses.c pg_update_bad_sig_losses.h \
-pg_del_auditor_closure_lags.c pg_del_auditor_closure_lags.h \
pg_insert_auditor_closure_lags.c pg_insert_auditor_closure_lags.h \
pg_get_auditor_closure_lags.c pg_get_auditor_closure_lags.h \
-pg_del_refreshes_hanging.c pg_del_refreshes_hanging.h \
pg_insert_refreshes_hanging.c pg_insert_refreshes_hanging.h \
pg_get_refreshes_hanging.c pg_get_refreshes_hanging.h \
pg_update_emergency_by_count.c pg_update_emergency_by_count.h \
@@ -136,19 +123,15 @@ pg_update_refreshes_hanging.c pg_update_refreshes_hanging.h \
pg_update_emergency.c pg_update_emergency.h \
pg_update_closure_lags.c pg_update_closure_lags.h \
pg_get_reserve_in_inconsistency.c pg_get_reserve_in_inconsistency.h \
-pg_del_reserve_in_inconsistency.c pg_del_reserve_in_inconsistency.h \
pg_insert_reserve_in_inconsistency.c pg_insert_reserve_in_inconsistency.h \
pg_update_reserve_in_inconsistency.c pg_update_reserve_in_inconsistency.h \
pg_get_reserve_not_closed_inconsistency.c pg_get_reserve_not_closed_inconsistency.h \
-pg_del_reserve_not_closed_inconsistency.c pg_del_reserve_not_closed_inconsistency.h \
pg_insert_reserve_not_closed_inconsistency.c pg_insert_reserve_not_closed_inconsistency.h \
pg_update_reserve_not_closed_inconsistency.c pg_update_reserve_not_closed_inconsistency.h \
pg_get_denominations_without_sigs.c pg_get_denominations_without_sigs.h \
-pg_del_denominations_without_sigs.c pg_del_denominations_without_sigs.h \
pg_insert_denominations_without_sigs.c pg_insert_denominations_without_sigs.h \
pg_update_denominations_without_sigs.c pg_update_denominations_without_sigs.h \
pg_get_misattribution_in_inconsistency.c pg_get_misattribution_in_inconsistency.h \
-pg_del_misattribution_in_inconsistency.c pg_del_misattribution_in_inconsistency.h \
pg_insert_misattribution_in_inconsistency.c pg_insert_misattribution_in_inconsistency.h \
pg_update_misattribution_in_inconsistency.c pg_update_misattribution_in_inconsistency.h \
pg_update_balance.c pg_update_balance.h \
@@ -156,30 +139,23 @@ pg_get_reserves.c pg_get_reserves.h \
pg_get_purses.c pg_get_purses.h \
pg_insert_historic_denom_revenue.c pg_insert_historic_denom_revenue.h \
pg_get_denomination_pending.c pg_get_denomination_pending.h \
-pg_del_denomination_pending.c pg_del_denomination_pending.h \
pg_insert_denomination_pending.c pg_insert_denomination_pending.h \
pg_update_denomination_pending.c pg_update_denomination_pending.h \
pg_get_exchange_signkeys.c pg_get_exchange_signkeys.h \
pg_get_wire_format_inconsistency.c pg_get_wire_format_inconsistency.h \
-pg_del_wire_format_inconsistency.c pg_del_wire_format_inconsistency.h \
pg_insert_wire_format_inconsistency.c pg_insert_wire_format_inconsistency.h \
pg_update_wire_format_inconsistency.c pg_update_wire_format_inconsistency.h \
pg_get_wire_out_inconsistency.c pg_get_wire_out_inconsistency.h \
-pg_del_wire_out_inconsistency.c pg_del_wire_out_inconsistency.h \
pg_insert_wire_out_inconsistency.c pg_insert_wire_out_inconsistency.h \
pg_delete_wire_out_inconsistency_if_matching.c pg_delete_wire_out_inconsistency_if_matching.h \
pg_update_wire_out_inconsistency.c pg_update_wire_out_inconsistency.h \
pg_get_reserve_balance_summary_wrong_inconsistency.c pg_get_reserve_balance_summary_wrong_inconsistency.h \
-pg_del_reserve_balance_summary_wrong_inconsistency.c pg_del_reserve_balance_summary_wrong_inconsistency.h \
pg_insert_reserve_balance_summary_wrong_inconsistency.c pg_insert_reserve_balance_summary_wrong_inconsistency.h \
pg_update_reserve_balance_summary_wrong_inconsistency.c pg_update_reserve_balance_summary_wrong_inconsistency.h \
pg_get_row_minor_inconsistencies.c pg_get_row_minor_inconsistencies.h \
-pg_del_row_minor_inconsistencies.c pg_del_row_minor_inconsistencies.h \
pg_insert_row_minor_inconsistencies.c pg_insert_row_minor_inconsistencies.h \
pg_update_row_minor_inconsistencies.c pg_update_row_minor_inconsistencies.h \
-pg_del_auditor_progress.c pg_del_auditor_progress.h \
pg_get_fee_time_inconsistency.c pg_get_fee_time_inconsistency.h \
-pg_del_fee_time_inconsistency.c pg_del_fee_time_inconsistency.h \
pg_insert_fee_time_inconsistency.c pg_insert_fee_time_inconsistency.h \
pg_update_fee_time_inconsistency.c pg_update_fee_time_inconsistency.h \
pg_get_balances.c pg_get_balances.h \
diff --git a/src/auditordb/pg_del_amount_arithmetic_inconsistency.c b/src/auditordb/pg_del_amount_arithmetic_inconsistency.c
deleted file mode 100644
index 5af3bdda7..000000000
--- a/src/auditordb/pg_del_amount_arithmetic_inconsistency.c
+++ /dev/null
@@ -1,41 +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 "pg_del_amount_arithmetic_inconsistency.h"
-
-#include "taler_pq_lib.h"
-#include "pg_helper.h"
-
-enum GNUNET_DB_QueryStatus
-TAH_PG_del_amount_arithmetic_inconsistency (
- void *cls,
- uint64_t row_id)
-{
- struct PostgresClosure *pg = cls;
- struct GNUNET_PQ_QueryParam params[] = {
- GNUNET_PQ_query_param_uint64 (&row_id),
- GNUNET_PQ_query_param_end
- };
-
- PREPARE (pg,
- "auditor_delete_amount_arithmetic_inconsistency",
- "DELETE"
- " FROM auditor_amount_arithmetic_inconsistency"
- " WHERE row_id=$1;");
- return GNUNET_PQ_eval_prepared_non_select (pg->conn,
- "auditor_delete_amount_arithmetic_inconsistency",
- params);
-}
diff --git a/src/auditordb/pg_del_amount_arithmetic_inconsistency.h b/src/auditordb/pg_del_amount_arithmetic_inconsistency.h
deleted file mode 100644
index ff7f12cf2..000000000
--- a/src/auditordb/pg_del_amount_arithmetic_inconsistency.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_PG_DEL_AMOUNT_ARITHMETIC_INCONSISTENCY_H
-#define SRC_PG_DEL_AMOUNT_ARITHMETIC_INCONSISTENCY_H
-
-#include "taler_util.h"
-#include "taler_json_lib.h"
-#include "taler_auditordb_plugin.h"
-
-/**
- * Delete a row from the deposit confirmations table.
- *
- * @param cls the @e cls of this struct with the plugin-specific state
- * @param row_id row to delete
- * @return query transaction status
- */
-enum GNUNET_DB_QueryStatus
-TAH_PG_del_amount_arithmetic_inconsistency (
- void *cls,
- uint64_t row_id);
-
-#endif // SRC_PG_DEL_AMOUNT_ARITHMETIC_INCONSISTENCY_H
diff --git a/src/auditordb/pg_del_auditor_closure_lags.c b/src/auditordb/pg_del_auditor_closure_lags.c
deleted file mode 100644
index 89f230af3..000000000
--- a/src/auditordb/pg_del_auditor_closure_lags.c
+++ /dev/null
@@ -1,41 +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 "pg_del_auditor_closure_lags.h"
-
-#include "taler_pq_lib.h"
-#include "pg_helper.h"
-
-enum GNUNET_DB_QueryStatus
-TAH_PG_del_auditor_closure_lags (
- void *cls,
- uint64_t row_id)
-{
- struct PostgresClosure *pg = cls;
- struct GNUNET_PQ_QueryParam params[] = {
- GNUNET_PQ_query_param_uint64 (&row_id),
- GNUNET_PQ_query_param_end
- };
-
- PREPARE (pg,
- "auditor_delete_auditor_closure_lags",
- "DELETE"
- " FROM auditor_closure_lags"
- " WHERE row_id=$1;");
- return GNUNET_PQ_eval_prepared_non_select (pg->conn,
- "auditor_delete_auditor_closure_lags",
- params);
-} \ No newline at end of file
diff --git a/src/auditordb/pg_del_auditor_closure_lags.h b/src/auditordb/pg_del_auditor_closure_lags.h
deleted file mode 100644
index 7c6f2db51..000000000
--- a/src/auditordb/pg_del_auditor_closure_lags.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_PG_DEL_AUDITOR_CLOSURE_LAGS_H
-#define SRC_PG_DEL_AUDITOR_CLOSURE_LAGS_H
-
-#include "taler_util.h"
-#include "taler_auditordb_plugin.h"
-
-/**
- * Delete a row from the auditor closure lags table.
- *
- * @param cls the @e cls of this struct with the plugin-specific state
- * @param row_id row to delete
- * @return query transaction status
- */
-enum GNUNET_DB_QueryStatus
-TAH_PG_del_auditor_closure_lags (
- void *cls,
- uint64_t row_id);
-
-#endif // SRC_PG_DEL_AUDITOR_CLOSURE_LAGS_H
diff --git a/src/auditordb/pg_del_auditor_progress.c b/src/auditordb/pg_del_auditor_progress.c
deleted file mode 100644
index 087e2783c..000000000
--- a/src/auditordb/pg_del_auditor_progress.c
+++ /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/>
- */
-
-#include "pg_del_auditor_progress.h"
-
-
-#include "taler_pq_lib.h"
-#include "pg_helper.h"
-
-enum GNUNET_DB_QueryStatus
-TAH_PG_del_progress (
- void *cls,
- uint64_t row_id)
-{
- struct PostgresClosure *pg = cls;
- struct GNUNET_PQ_QueryParam params[] = {
- GNUNET_PQ_query_param_uint64 (&row_id),
- GNUNET_PQ_query_param_end
- };
-
- PREPARE (pg,
- "auditor_delete_auditor_closure_lags",
- "DELETE"
- " FROM auditor_progress"
- " WHERE row_id=$1;");
- return GNUNET_PQ_eval_prepared_non_select (pg->conn,
- "auditor_delete_auditor_closure_lags",
- params);
-} \ No newline at end of file
diff --git a/src/auditordb/pg_del_auditor_progress.h b/src/auditordb/pg_del_auditor_progress.h
deleted file mode 100644
index 51e974040..000000000
--- a/src/auditordb/pg_del_auditor_progress.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_PG_DEL_AUDITOR_PROGRESS_H
-#define SRC_PG_DEL_AUDITOR_PROGRESS_H
-
-#include "taler_util.h"
-#include "taler_auditordb_plugin.h"
-
-/**
- * Delete a row from the progress table.
- *
- * @param cls the @e cls of this struct with the plugin-specific state
- * @param row_id row to delete
- * @return query transaction status
- */
-enum GNUNET_DB_QueryStatus
-TAH_PG_del_progress (
- void *cls,
- uint64_t row_id);
-
-#endif // SRC_PG_DEL_AUDITOR_PROGRESS_H
diff --git a/src/auditordb/pg_del_bad_sig_losses.c b/src/auditordb/pg_del_bad_sig_losses.c
deleted file mode 100644
index 2bf48642c..000000000
--- a/src/auditordb/pg_del_bad_sig_losses.c
+++ /dev/null
@@ -1,41 +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 "pg_del_bad_sig_losses.h"
-
-#include "taler_pq_lib.h"
-#include "pg_helper.h"
-
-enum GNUNET_DB_QueryStatus
-TAH_PG_del_bad_sig_losses (
- void *cls,
- uint64_t row_id)
-{
- struct PostgresClosure *pg = cls;
- struct GNUNET_PQ_QueryParam params[] = {
- GNUNET_PQ_query_param_uint64 (&row_id),
- GNUNET_PQ_query_param_end
- };
-
- PREPARE (pg,
- "auditor_delete_bad_sig_losses",
- "DELETE"
- " FROM auditor_bad_sig_losses"
- " WHERE row_id=$1;");
- return GNUNET_PQ_eval_prepared_non_select (pg->conn,
- "auditor_delete_bad_sig_losses",
- params);
-} \ No newline at end of file
diff --git a/src/auditordb/pg_del_bad_sig_losses.h b/src/auditordb/pg_del_bad_sig_losses.h
deleted file mode 100644
index 4881e8715..000000000
--- a/src/auditordb/pg_del_bad_sig_losses.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_PG_DEL_BAD_SIG_LOSSES_H
-#define SRC_PG_DEL_BAD_SIG_LOSSES_H
-
-#include "taler_util.h"
-#include "taler_auditordb_plugin.h"
-
-/**
- * Delete a row from the bad sig losses table.
- *
- * @param cls the @e cls of this struct with the plugin-specific state
- * @param row_id row to delete
- * @return query transaction status
- */
-enum GNUNET_DB_QueryStatus
-TAH_PG_del_bad_sig_losses (
- void *cls,
- uint64_t row_id);
-
-#endif // SRC_PG_DEL_BAD_SIG_LOSSES_H
diff --git a/src/auditordb/pg_del_coin_inconsistency.c b/src/auditordb/pg_del_coin_inconsistency.c
deleted file mode 100644
index d1426c955..000000000
--- a/src/auditordb/pg_del_coin_inconsistency.c
+++ /dev/null
@@ -1,41 +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 "pg_del_coin_inconsistency.h"
-
-#include "taler_pq_lib.h"
-#include "pg_helper.h"
-
-enum GNUNET_DB_QueryStatus
-TAH_PG_del_coin_inconsistency (
- void *cls,
- uint64_t row_id)
-{
- struct PostgresClosure *pg = cls;
- struct GNUNET_PQ_QueryParam params[] = {
- GNUNET_PQ_query_param_uint64 (&row_id),
- GNUNET_PQ_query_param_end
- };
-
- PREPARE (pg,
- "auditor_delete_coin_inconsistency",
- "DELETE"
- " FROM auditor_coin_inconsistency"
- " WHERE row_id=$1;");
- return GNUNET_PQ_eval_prepared_non_select (pg->conn,
- "auditor_delete_coin_inconsistency",
- params);
-}
diff --git a/src/auditordb/pg_del_coin_inconsistency.h b/src/auditordb/pg_del_coin_inconsistency.h
deleted file mode 100644
index 8fc43c1c5..000000000
--- a/src/auditordb/pg_del_coin_inconsistency.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_PG_DEL_COIN_INCONSISTENCY_H
-#define SRC_PG_DEL_COIN_INCONSISTENCY_H
-
-#include "taler_util.h"
-#include "taler_json_lib.h"
-#include "taler_auditordb_plugin.h"
-
-/**
- * Delete a row from the coin inconsistency table.
- *
- * @param cls the @e cls of this struct with the plugin-specific state
- * @param row_id row to delete
- * @return query transaction status
- */
-enum GNUNET_DB_QueryStatus
-TAH_PG_del_coin_inconsistency (
- void *cls,
- uint64_t row_id);
-
-#endif // SRC_PG_DEL_COIN_INCONSISTENCY_H
diff --git a/src/auditordb/pg_del_denomination_key_validity_withdraw_inconsistency.c b/src/auditordb/pg_del_denomination_key_validity_withdraw_inconsistency.c
deleted file mode 100644
index fa8d01580..000000000
--- a/src/auditordb/pg_del_denomination_key_validity_withdraw_inconsistency.c
+++ /dev/null
@@ -1,41 +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 "pg_del_denomination_key_validity_withdraw_inconsistency.h"
-
-#include "taler_pq_lib.h"
-#include "pg_helper.h"
-
-enum GNUNET_DB_QueryStatus
-TAH_PG_del_denomination_key_validity_withdraw_inconsistency (
- void *cls,
- uint64_t row_id)
-{
- struct PostgresClosure *pg = cls;
- struct GNUNET_PQ_QueryParam params[] = {
- GNUNET_PQ_query_param_uint64 (&row_id),
- GNUNET_PQ_query_param_end
- };
-
- PREPARE (pg,
- "auditor_delete_denomination_key_validity_withdraw_inconsistency",
- "DELETE"
- " FROM auditor_denomination_key_validity_withdraw_inconsistency"
- " WHERE row_id=$1;");
- return GNUNET_PQ_eval_prepared_non_select (pg->conn,
- "auditor_delete_denomination_key_validity_withdraw_inconsistency",
- params);
-} \ No newline at end of file
diff --git a/src/auditordb/pg_del_denomination_key_validity_withdraw_inconsistency.h b/src/auditordb/pg_del_denomination_key_validity_withdraw_inconsistency.h
deleted file mode 100644
index 9c11dd768..000000000
--- a/src/auditordb/pg_del_denomination_key_validity_withdraw_inconsistency.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_PG_DEL_DENOMINATION_KEY_VALIDITY_WITHDRAW_INCONSISTENCY_H
-#define SRC_PG_DEL_DENOMINATION_KEY_VALIDITY_WITHDRAW_INCONSISTENCY_H
-
-#include "taler_util.h"
-#include "taler_auditordb_plugin.h"
-
-/**
- * Delete a row from the denom key validity withdraw inconsistency table.
- *
- * @param cls the @e cls of this struct with the plugin-specific state
- * @param row_id row to delete
- * @return query transaction status
- */
-enum GNUNET_DB_QueryStatus
-TAH_PG_del_denomination_key_validity_withdraw_inconsistency (
- void *cls,
- uint64_t row_id);
-
-#endif // SRC_PG_DEL_DENOMINATION_KEY_VALIDITY_WITHDRAW_INCONSISTENCY_H
diff --git a/src/auditordb/pg_del_denomination_pending.c b/src/auditordb/pg_del_denomination_pending.c
deleted file mode 100644
index ac5ab7211..000000000
--- a/src/auditordb/pg_del_denomination_pending.c
+++ /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/>
- */
-
-
-#include "pg_del_denomination_pending.h"
-
-#include "taler_pq_lib.h"
-#include "pg_helper.h"
-
-enum GNUNET_DB_QueryStatus
-TAH_PG_del_denomination_pending (
- void *cls,
- uint64_t row_id)
-{
- struct PostgresClosure *pg = cls;
- struct GNUNET_PQ_QueryParam params[] = {
- GNUNET_PQ_query_param_uint64 (&row_id),
- GNUNET_PQ_query_param_end
- };
-
- PREPARE (pg,
- "auditor_delete_denomination_pending",
- "DELETE"
- " FROM auditor_denomination_pending"
- " WHERE row_id=$1;");
- return GNUNET_PQ_eval_prepared_non_select (pg->conn,
- "auditor_delete_denomination_pending",
- params);
-}
diff --git a/src/auditordb/pg_del_denomination_pending.h b/src/auditordb/pg_del_denomination_pending.h
deleted file mode 100644
index 91e7fea59..000000000
--- a/src/auditordb/pg_del_denomination_pending.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_PG_DEL_DENOMINATION_PENDING_H
-#define SRC_PG_DEL_DENOMINATION_PENDING_H
-
-#include "taler_util.h"
-#include "taler_auditordb_plugin.h"
-
-/**
- * Delete a row from the bad sig losses table.
- *
- * @param cls the @e cls of this struct with the plugin-specific state
- * @param row_id row to delete
- * @return query transaction status
- */
-enum GNUNET_DB_QueryStatus
-TAH_PG_del_denomination_pending (
- void *cls,
- uint64_t row_id);
-
-#endif // SRC_PG_DEL_DENOMINATION_PENDING_H
diff --git a/src/auditordb/pg_del_denominations_without_sigs.c b/src/auditordb/pg_del_denominations_without_sigs.c
deleted file mode 100644
index 03c222105..000000000
--- a/src/auditordb/pg_del_denominations_without_sigs.c
+++ /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/>
- */
-
-
-#include "pg_del_denominations_without_sigs.h"
-
-#include "taler_pq_lib.h"
-#include "pg_helper.h"
-
-enum GNUNET_DB_QueryStatus
-TAH_PG_del_denominations_without_sigs (
- void *cls,
- uint64_t row_id)
-{
- struct PostgresClosure *pg = cls;
- struct GNUNET_PQ_QueryParam params[] = {
- GNUNET_PQ_query_param_uint64 (&row_id),
- GNUNET_PQ_query_param_end
- };
-
- PREPARE (pg,
- "auditor_delete_denominations_without_sigs",
- "DELETE"
- " FROM auditor_denominations_without_sigs"
- " WHERE row_id=$1;");
- return GNUNET_PQ_eval_prepared_non_select (pg->conn,
- "auditor_delete_denominations_without_sigs",
- params);
-}
diff --git a/src/auditordb/pg_del_denominations_without_sigs.h b/src/auditordb/pg_del_denominations_without_sigs.h
deleted file mode 100644
index ae090b5c8..000000000
--- a/src/auditordb/pg_del_denominations_without_sigs.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_PG_DEL_DENOMINATIONS_WITHOUT_SIGS_H
-#define SRC_PG_DEL_DENOMINATIONS_WITHOUT_SIGS_H
-
-#include "taler_util.h"
-#include "taler_auditordb_plugin.h"
-
-/**
- * Delete a row from the bad sig losses table.
- *
- * @param cls the @e cls of this struct with the plugin-specific state
- * @param row_id row to delete
- * @return query transaction status
- */
-enum GNUNET_DB_QueryStatus
-TAH_PG_del_denominations_without_sigs (
- void *cls,
- uint64_t row_id);
-
-#endif // SRC_PG_DEL_DENOMINATIONS_WITHOUT_SIGS_H
diff --git a/src/auditordb/pg_del_emergency.c b/src/auditordb/pg_del_emergency.c
deleted file mode 100644
index 8160dc582..000000000
--- a/src/auditordb/pg_del_emergency.c
+++ /dev/null
@@ -1,41 +0,0 @@
-/*
- This file is part of TALER
- Copyright (C) 2022 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 "pg_del_emergency.h"
-
-#include "taler_pq_lib.h"
-#include "pg_helper.h"
-
-enum GNUNET_DB_QueryStatus
-TAH_PG_del_emergency (
- void *cls,
- uint64_t row_id)
-{
- struct PostgresClosure *pg = cls;
- struct GNUNET_PQ_QueryParam params[] = {
- GNUNET_PQ_query_param_uint64 (&row_id),
- GNUNET_PQ_query_param_end
- };
-
- PREPARE (pg,
- "auditor_delete_emergency",
- "DELETE"
- " FROM auditor_emergency"
- " WHERE row_id=$1;");
- return GNUNET_PQ_eval_prepared_non_select (pg->conn,
- "auditor_delete_emergency",
- params);
-} \ No newline at end of file
diff --git a/src/auditordb/pg_del_emergency_by_count.c b/src/auditordb/pg_del_emergency_by_count.c
deleted file mode 100644
index 84ab0def0..000000000
--- a/src/auditordb/pg_del_emergency_by_count.c
+++ /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/>
- */
-
-#include "pg_del_emergency_by_count.h"
-
-#include "taler_pq_lib.h"
-#include "pg_helper.h"
-
-
-enum GNUNET_DB_QueryStatus
-TAH_PG_del_emergency_by_count (
- void *cls,
- uint64_t row_id)
-{
- struct PostgresClosure *pg = cls;
- struct GNUNET_PQ_QueryParam params[] = {
- GNUNET_PQ_query_param_uint64 (&row_id),
- GNUNET_PQ_query_param_end
- };
-
- PREPARE (pg,
- "auditor_delete_emergency_by_count",
- "DELETE"
- " FROM auditor_emergency_by_count"
- " WHERE row_id=$1;");
- return GNUNET_PQ_eval_prepared_non_select (pg->conn,
- "auditor_delete_emergency_by_count",
- params);
-} \ No newline at end of file
diff --git a/src/auditordb/pg_del_fee_time_inconsistency.c b/src/auditordb/pg_del_fee_time_inconsistency.c
deleted file mode 100644
index 94fbff42f..000000000
--- a/src/auditordb/pg_del_fee_time_inconsistency.c
+++ /dev/null
@@ -1,43 +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 "pg_del_fee_time_inconsistency.h"
-
-#include "taler_pq_lib.h"
-#include "pg_helper.h"
-
-
-enum GNUNET_DB_QueryStatus
-TAH_PG_del_fee_time_inconsistency (
- void *cls,
- uint64_t row_id)
-{
- struct PostgresClosure *pg = cls;
- struct GNUNET_PQ_QueryParam params[] = {
- GNUNET_PQ_query_param_uint64 (&row_id),
- GNUNET_PQ_query_param_end
- };
-
- PREPARE (pg,
- "auditor_delete_fee_time_inconsistency",
- "DELETE"
- " FROM auditor_fee_time_inconsistency"
- " WHERE row_id=$1;");
- return GNUNET_PQ_eval_prepared_non_select (pg->conn,
- "auditor_delete_fee_time_inconsistency",
- params);
-} \ No newline at end of file
diff --git a/src/auditordb/pg_del_fee_time_inconsistency.h b/src/auditordb/pg_del_fee_time_inconsistency.h
deleted file mode 100644
index 49b7e253e..000000000
--- a/src/auditordb/pg_del_fee_time_inconsistency.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_PG_DEL_FEE_TIME_INCONSISTENCY_H
-#define SRC_PG_DEL_FEE_TIME_INCONSISTENCY_H
-
-#include "taler_util.h"
-#include "taler_auditordb_plugin.h"
-
-/**
- * Delete a row from the dee time inconsistency table.
- *
- * @param cls the @e cls of this struct with the plugin-specific state
- * @param row_id row to delete
- * @return query transaction status
- */
-enum GNUNET_DB_QueryStatus
-TAH_PG_del_fee_time_inconsistency (
- void *cls,
- uint64_t row_id);
-
-#endif // SRC_PG_DEL_FEE_TIME_INCONSISTENCY_H
diff --git a/src/auditordb/pg_del_misattribution_in_inconsistency.c b/src/auditordb/pg_del_misattribution_in_inconsistency.c
deleted file mode 100644
index c3ebd0fc6..000000000
--- a/src/auditordb/pg_del_misattribution_in_inconsistency.c
+++ /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/>
- */
-
-
-#include "pg_del_misattribution_in_inconsistency.h"
-
-#include "taler_pq_lib.h"
-#include "pg_helper.h"
-
-enum GNUNET_DB_QueryStatus
-TAH_PG_del_misattribution_in_inconsistency (
- void *cls,
- uint64_t row_id)
-{
- struct PostgresClosure *pg = cls;
- struct GNUNET_PQ_QueryParam params[] = {
- GNUNET_PQ_query_param_uint64 (&row_id),
- GNUNET_PQ_query_param_end
- };
-
- PREPARE (pg,
- "auditor_delete_misattribution_in_inconsistency",
- "DELETE"
- " FROM auditor_misattribution_in_inconsistency"
- " WHERE row_id=$1;");
- return GNUNET_PQ_eval_prepared_non_select (pg->conn,
- "auditor_delete_misattribution_in_inconsistency",
- params);
-}
diff --git a/src/auditordb/pg_del_misattribution_in_inconsistency.h b/src/auditordb/pg_del_misattribution_in_inconsistency.h
deleted file mode 100644
index 916c53dd8..000000000
--- a/src/auditordb/pg_del_misattribution_in_inconsistency.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_PG_DEL_MISATTRIBUTION_IN_INCONSISTENCY_H
-#define SRC_PG_DEL_MISATTRIBUTION_IN_INCONSISTENCY_H
-
-#include "taler_util.h"
-#include "taler_auditordb_plugin.h"
-
-/**
- * Delete a row from the bad sig losses table.
- *
- * @param cls the @e cls of this struct with the plugin-specific state
- * @param row_id row to delete
- * @return query transaction status
- */
-enum GNUNET_DB_QueryStatus
-TAH_PG_del_misattribution_in_inconsistency (
- void *cls,
- uint64_t row_id);
-
-#endif // SRC_PG_DEL_MISATTRIBUTION_IN_INCONSISTENCY_H
diff --git a/src/auditordb/pg_del_purse_not_closed_inconsistencies.c b/src/auditordb/pg_del_purse_not_closed_inconsistencies.c
deleted file mode 100644
index 3bc82f1e9..000000000
--- a/src/auditordb/pg_del_purse_not_closed_inconsistencies.c
+++ /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/>
- */
-
-#include "pg_del_purse_not_closed_inconsistencies.h"
-
-#include "taler_pq_lib.h"
-#include "pg_helper.h"
-
-
-enum GNUNET_DB_QueryStatus
-TAH_PG_del_purse_not_closed_inconsistencies (
- void *cls,
- uint64_t row_id)
-{
- struct PostgresClosure *pg = cls;
- struct GNUNET_PQ_QueryParam params[] = {
- GNUNET_PQ_query_param_uint64 (&row_id),
- GNUNET_PQ_query_param_end
- };
-
- PREPARE (pg,
- "auditor_delete_purse_not_closed_inconsistencies",
- "DELETE"
- " FROM auditor_purse_not_closed_inconsistencies"
- " WHERE row_id=$1;");
- return GNUNET_PQ_eval_prepared_non_select (pg->conn,
- "auditor_delete_purse_not_closed_inconsistencies",
- params);
-} \ No newline at end of file
diff --git a/src/auditordb/pg_del_purse_not_closed_inconsistencies.h b/src/auditordb/pg_del_purse_not_closed_inconsistencies.h
deleted file mode 100644
index 25d4305e2..000000000
--- a/src/auditordb/pg_del_purse_not_closed_inconsistencies.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_PG_DEL_PURSE_NOT_CLOSED_INCONSISTENCIES_H
-#define SRC_PG_DEL_PURSE_NOT_CLOSED_INCONSISTENCIES_H
-
-#include "taler_util.h"
-#include "taler_auditordb_plugin.h"
-
-/**
- * Delete a row from the purse not closed inconsistency table.
- *
- * @param cls the @e cls of this struct with the plugin-specific state
- * @param row_id row to delete
- * @return query transaction status
- */
-enum GNUNET_DB_QueryStatus
-TAH_PG_del_purse_not_closed_inconsistencies (
- void *cls,
- uint64_t row_id);
-
-#endif // SRC_PG_DEL_PURSE_NOT_CLOSED_INCONSISTENCIES_H
diff --git a/src/auditordb/pg_del_refreshes_hanging.c b/src/auditordb/pg_del_refreshes_hanging.c
deleted file mode 100644
index 43a1cbba1..000000000
--- a/src/auditordb/pg_del_refreshes_hanging.c
+++ /dev/null
@@ -1,41 +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 "pg_del_refreshes_hanging.h"
-
-#include "taler_pq_lib.h"
-#include "pg_helper.h"
-
-enum GNUNET_DB_QueryStatus
-TAH_PG_del_refreshes_hanging (
- void *cls,
- uint64_t row_id)
-{
- struct PostgresClosure *pg = cls;
- struct GNUNET_PQ_QueryParam params[] = {
- GNUNET_PQ_query_param_uint64 (&row_id),
- GNUNET_PQ_query_param_end
- };
-
- PREPARE (pg,
- "auditor_delete_refreshes_hanging",
- "DELETE"
- " FROM auditor_refreshes_hanging"
- " WHERE row_id=$1;");
- return GNUNET_PQ_eval_prepared_non_select (pg->conn,
- "auditor_delete_refreshes_hanging",
- params);
-} \ No newline at end of file
diff --git a/src/auditordb/pg_del_refreshes_hanging.h b/src/auditordb/pg_del_refreshes_hanging.h
deleted file mode 100644
index f2cdee95e..000000000
--- a/src/auditordb/pg_del_refreshes_hanging.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_PG_DEL_REFRESHES_HANGING_H
-#define SRC_PG_DEL_REFRESHES_HANGING_H
-
-#include "taler_util.h"
-#include "taler_auditordb_plugin.h"
-
-/**
- * Delete a row from the refreshes hanging table.
- *
- * @param cls the @e cls of this struct with the plugin-specific state
- * @param row_id row to delete
- * @return query transaction status
- */
-enum GNUNET_DB_QueryStatus
-TAH_PG_del_refreshes_hanging (
- void *cls,
- uint64_t row_id);
-
-#endif // SRC_PG_DEL_REFRESHES_HANGING_H
diff --git a/src/auditordb/pg_del_reserve_balance_insufficient_inconsistency.c b/src/auditordb/pg_del_reserve_balance_insufficient_inconsistency.c
deleted file mode 100644
index 001969e51..000000000
--- a/src/auditordb/pg_del_reserve_balance_insufficient_inconsistency.c
+++ /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/>
- */
-
-#include "pg_del_reserve_balance_insufficient_inconsistency.h"
-
-
-#include "taler_pq_lib.h"
-#include "pg_helper.h"
-
-enum GNUNET_DB_QueryStatus
-TAH_PG_del_reserve_balance_insufficient_inconsistency (
- void *cls,
- uint64_t row_id)
-{
- struct PostgresClosure *pg = cls;
- struct GNUNET_PQ_QueryParam params[] = {
- GNUNET_PQ_query_param_uint64 (&row_id),
- GNUNET_PQ_query_param_end
- };
-
- PREPARE (pg,
- "auditor_delete_reserve_balance_insufficient_inconsistency",
- "DELETE"
- " FROM auditor_reserve_balance_insufficient_inconsistency"
- " WHERE row_id=$1;");
- return GNUNET_PQ_eval_prepared_non_select (pg->conn,
- "auditor_delete_reserve_balance_insufficient_inconsistency",
- params);
-} \ No newline at end of file
diff --git a/src/auditordb/pg_del_reserve_balance_insufficient_inconsistency.h b/src/auditordb/pg_del_reserve_balance_insufficient_inconsistency.h
deleted file mode 100644
index 783dea493..000000000
--- a/src/auditordb/pg_del_reserve_balance_insufficient_inconsistency.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_PG_DEL_RESERVE_BALANCE_INSUFFICIENT_INCONSISTENCY_H
-#define SRC_PG_DEL_RESERVE_BALANCE_INSUFFICIENT_INCONSISTENCY_H
-
-#include "taler_util.h"
-#include "taler_auditordb_plugin.h"
-
-/**
- * Delete a row from the reserve balance insufficient inconsistency table.
- *
- * @param cls the @e cls of this struct with the plugin-specific state
- * @param row_id row to delete
- * @return query transaction status
- */
-enum GNUNET_DB_QueryStatus
-TAH_PG_del_reserve_balance_insufficient_inconsistency (
- void *cls,
- uint64_t row_id);
-
-#endif // SRC_PG_DEL_RESERVE_BALANCE_INSUFFICIENT_INCONSISTENCY_H
diff --git a/src/auditordb/pg_del_reserve_balance_summary_wrong_inconsistency.c b/src/auditordb/pg_del_reserve_balance_summary_wrong_inconsistency.c
deleted file mode 100644
index 33a31c220..000000000
--- a/src/auditordb/pg_del_reserve_balance_summary_wrong_inconsistency.c
+++ /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/>
- */
-
-
-#include "pg_del_reserve_balance_summary_wrong_inconsistency.h"
-
-#include "taler_pq_lib.h"
-#include "pg_helper.h"
-
-enum GNUNET_DB_QueryStatus
-TAH_PG_del_reserve_balance_summary_wrong_inconsistency (
- void *cls,
- uint64_t row_id)
-{
- struct PostgresClosure *pg = cls;
- struct GNUNET_PQ_QueryParam params[] = {
- GNUNET_PQ_query_param_uint64 (&row_id),
- GNUNET_PQ_query_param_end
- };
-
- PREPARE (pg,
- "auditor_delete_reserve_balance_summary_wrong_inconsistency",
- "DELETE"
- " FROM auditor_reserve_balance_summary_wrong_inconsistency"
- " WHERE row_id=$1;");
- return GNUNET_PQ_eval_prepared_non_select (pg->conn,
- "auditor_delete_reserve_balance_summary_wrong_inconsistency",
- params);
-}
diff --git a/src/auditordb/pg_del_reserve_balance_summary_wrong_inconsistency.h b/src/auditordb/pg_del_reserve_balance_summary_wrong_inconsistency.h
deleted file mode 100644
index aa08c193e..000000000
--- a/src/auditordb/pg_del_reserve_balance_summary_wrong_inconsistency.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_PG_DEL_RESERVE_BALANCE_SUMMARY_WRONG_INCONSISTENCY_H
-#define SRC_PG_DEL_RESERVE_BALANCE_SUMMARY_WRONG_INCONSISTENCY_H
-
-#include "taler_util.h"
-#include "taler_auditordb_plugin.h"
-
-/**
- * Delete a row from the bad sig losses table.
- *
- * @param cls the @e cls of this struct with the plugin-specific state
- * @param row_id row to delete
- * @return query transaction status
- */
-enum GNUNET_DB_QueryStatus
-TAH_PG_del_reserve_balance_summary_wrong_inconsistency (
- void *cls,
- uint64_t row_id);
-
-#endif // SRC_PG_DEL_RESERVE_BALANCE_SUMMARY_WRONG_INCONSISTENCY_H
diff --git a/src/auditordb/pg_del_reserve_in_inconsistency.c b/src/auditordb/pg_del_reserve_in_inconsistency.c
deleted file mode 100644
index a24f3c36e..000000000
--- a/src/auditordb/pg_del_reserve_in_inconsistency.c
+++ /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/>
- */
-
-
-#include "pg_del_reserve_in_inconsistency.h"
-
-#include "taler_pq_lib.h"
-#include "pg_helper.h"
-
-enum GNUNET_DB_QueryStatus
-TAH_PG_del_reserve_in_inconsistency (
- void *cls,
- uint64_t row_id)
-{
- struct PostgresClosure *pg = cls;
- struct GNUNET_PQ_QueryParam params[] = {
- GNUNET_PQ_query_param_uint64 (&row_id),
- GNUNET_PQ_query_param_end
- };
-
- PREPARE (pg,
- "auditor_delete_reserve_in_inconsistency",
- "DELETE"
- " FROM auditor_reserve_in_inconsistency"
- " WHERE row_id=$1;");
- return GNUNET_PQ_eval_prepared_non_select (pg->conn,
- "auditor_delete_reserve_in_inconsistency",
- params);
-}
diff --git a/src/auditordb/pg_del_reserve_in_inconsistency.h b/src/auditordb/pg_del_reserve_in_inconsistency.h
deleted file mode 100644
index 7db76b247..000000000
--- a/src/auditordb/pg_del_reserve_in_inconsistency.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_PG_DEL_RESERVE_IN_INCONSISTENCY_H
-#define SRC_PG_DEL_RESERVE_IN_INCONSISTENCY_H
-
-#include "taler_util.h"
-#include "taler_auditordb_plugin.h"
-
-/**
- * Delete a row from the bad sig losses table.
- *
- * @param cls the @e cls of this struct with the plugin-specific state
- * @param row_id row to delete
- * @return query transaction status
- */
-enum GNUNET_DB_QueryStatus
-TAH_PG_del_reserve_in_inconsistency (
- void *cls,
- uint64_t row_id);
-
-#endif // SRC_PG_DEL_RESERVE_IN_INCONSISTENCY_H
diff --git a/src/auditordb/pg_del_reserve_not_closed_inconsistency.c b/src/auditordb/pg_del_reserve_not_closed_inconsistency.c
deleted file mode 100644
index 25ebf7178..000000000
--- a/src/auditordb/pg_del_reserve_not_closed_inconsistency.c
+++ /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/>
- */
-
-
-#include "pg_del_reserve_not_closed_inconsistency.h"
-
-#include "taler_pq_lib.h"
-#include "pg_helper.h"
-
-enum GNUNET_DB_QueryStatus
-TAH_PG_del_reserve_not_closed_inconsistency (
- void *cls,
- uint64_t row_id)
-{
- struct PostgresClosure *pg = cls;
- struct GNUNET_PQ_QueryParam params[] = {
- GNUNET_PQ_query_param_uint64 (&row_id),
- GNUNET_PQ_query_param_end
- };
-
- PREPARE (pg,
- "auditor_delete_reserve_not_closed_inconsistency",
- "DELETE"
- " FROM auditor_reserve_not_closed_inconsistency"
- " WHERE row_id=$1;");
- return GNUNET_PQ_eval_prepared_non_select (pg->conn,
- "auditor_delete_reserve_not_closed_inconsistency",
- params);
-}
diff --git a/src/auditordb/pg_del_reserve_not_closed_inconsistency.h b/src/auditordb/pg_del_reserve_not_closed_inconsistency.h
deleted file mode 100644
index dc71fb2c3..000000000
--- a/src/auditordb/pg_del_reserve_not_closed_inconsistency.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_PG_DEL_RESERVE_NOT_CLOSED_INCONSISTENCY_H
-#define SRC_PG_DEL_RESERVE_NOT_CLOSED_INCONSISTENCY_H
-
-#include "taler_util.h"
-#include "taler_auditordb_plugin.h"
-
-/**
- * Delete a row from the bad sig losses table.
- *
- * @param cls the @e cls of this struct with the plugin-specific state
- * @param row_id row to delete
- * @return query transaction status
- */
-enum GNUNET_DB_QueryStatus
-TAH_PG_del_reserve_not_closed_inconsistency (
- void *cls,
- uint64_t row_id);
-
-#endif // SRC_PG_DEL_RESERVE_NOT_CLOSED_INCONSISTENCY_H
diff --git a/src/auditordb/pg_del_row_inconsistency.c b/src/auditordb/pg_del_row_inconsistency.c
deleted file mode 100644
index f4ab9e068..000000000
--- a/src/auditordb/pg_del_row_inconsistency.c
+++ /dev/null
@@ -1,40 +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 "pg_del_row_inconsistency.h"
-#include "taler_pq_lib.h"
-#include "pg_helper.h"
-
-enum GNUNET_DB_QueryStatus
-TAH_PG_del_row_inconsistency (
- void *cls,
- uint64_t row_id)
-{
- struct PostgresClosure *pg = cls;
- struct GNUNET_PQ_QueryParam params[] = {
- GNUNET_PQ_query_param_uint64 (&row_id),
- GNUNET_PQ_query_param_end
- };
-
- PREPARE (pg,
- "auditor_delete_row_inconsistency",
- "DELETE"
- " FROM auditor_row_inconsistency"
- " WHERE row_id=$1;");
- return GNUNET_PQ_eval_prepared_non_select (pg->conn,
- "auditor_delete_row_inconsistency",
- params);
-}
diff --git a/src/auditordb/pg_del_row_inconsistency.h b/src/auditordb/pg_del_row_inconsistency.h
deleted file mode 100644
index 2584f5265..000000000
--- a/src/auditordb/pg_del_row_inconsistency.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_PG_DEL_ROW_INCONSISTENCY_H
-#define SRC_PG_DEL_ROW_INCONSISTENCY_H
-
-#include "taler_util.h"
-#include "taler_json_lib.h"
-#include "taler_auditordb_plugin.h"
-
-/**
- * Delete a row from the deposit confirmations table.
- *
- * @param cls the @e cls of this struct with the plugin-specific state
- * @param row_id row to delete
- * @return query transaction status
- */
-enum GNUNET_DB_QueryStatus
-TAH_PG_del_row_inconsistency (
- void *cls,
- uint64_t row_id);
-
-#endif // SRC_PG_DEL_ROW_INCONSISTENCY_H
diff --git a/src/auditordb/pg_del_row_minor_inconsistencies.c b/src/auditordb/pg_del_row_minor_inconsistencies.c
deleted file mode 100644
index 00d8d58e8..000000000
--- a/src/auditordb/pg_del_row_minor_inconsistencies.c
+++ /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/>
- */
-
-
-#include "pg_del_row_minor_inconsistencies.h"
-
-#include "taler_pq_lib.h"
-#include "pg_helper.h"
-
-enum GNUNET_DB_QueryStatus
-TAH_PG_del_row_minor_inconsistencies (
- void *cls,
- uint64_t row_id)
-{
- struct PostgresClosure *pg = cls;
- struct GNUNET_PQ_QueryParam params[] = {
- GNUNET_PQ_query_param_uint64 (&row_id),
- GNUNET_PQ_query_param_end
- };
-
- PREPARE (pg,
- "auditor_delete_row_minor_inconsistencies",
- "DELETE"
- " FROM auditor_row_minor_inconsistencies"
- " WHERE row_id=$1;");
- return GNUNET_PQ_eval_prepared_non_select (pg->conn,
- "auditor_delete_row_minor_inconsistencies",
- params);
-}
diff --git a/src/auditordb/pg_del_row_minor_inconsistencies.h b/src/auditordb/pg_del_row_minor_inconsistencies.h
deleted file mode 100644
index 06b719cd3..000000000
--- a/src/auditordb/pg_del_row_minor_inconsistencies.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_PG_DEL_ROW_MINOR_INCONSISTENCIES_H
-#define SRC_PG_DEL_ROW_MINOR_INCONSISTENCIES_H
-
-#include "taler_util.h"
-#include "taler_auditordb_plugin.h"
-
-/**
- * Delete a row from the bad sig losses table.
- *
- * @param cls the @e cls of this struct with the plugin-specific state
- * @param row_id row to delete
- * @return query transaction status
- */
-enum GNUNET_DB_QueryStatus
-TAH_PG_del_row_minor_inconsistencies (
- void *cls,
- uint64_t row_id);
-
-#endif // SRC_PG_DEL_ROW_MINOR_INCONSISTENCIES_H
diff --git a/src/auditordb/pg_del_wire_format_inconsistency.c b/src/auditordb/pg_del_wire_format_inconsistency.c
deleted file mode 100644
index ec55a8bb6..000000000
--- a/src/auditordb/pg_del_wire_format_inconsistency.c
+++ /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/>
- */
-
-
-#include "pg_del_wire_format_inconsistency.h"
-
-#include "taler_pq_lib.h"
-#include "pg_helper.h"
-
-enum GNUNET_DB_QueryStatus
-TAH_PG_del_wire_format_inconsistency (
- void *cls,
- uint64_t row_id)
-{
- struct PostgresClosure *pg = cls;
- struct GNUNET_PQ_QueryParam params[] = {
- GNUNET_PQ_query_param_uint64 (&row_id),
- GNUNET_PQ_query_param_end
- };
-
- PREPARE (pg,
- "auditor_delete_wire_format_inconsistency",
- "DELETE"
- " FROM auditor_wire_format_inconsistency"
- " WHERE row_id=$1;");
- return GNUNET_PQ_eval_prepared_non_select (pg->conn,
- "auditor_delete_wire_format_inconsistency",
- params);
-}
diff --git a/src/auditordb/pg_del_wire_format_inconsistency.h b/src/auditordb/pg_del_wire_format_inconsistency.h
deleted file mode 100644
index ca7384180..000000000
--- a/src/auditordb/pg_del_wire_format_inconsistency.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_PG_DEL_WIRE_FORMAT_INCONSISTENCY_H
-#define SRC_PG_DEL_WIRE_FORMAT_INCONSISTENCY_H
-
-#include "taler_util.h"
-#include "taler_auditordb_plugin.h"
-
-/**
- * Delete a row from the bad sig losses table.
- *
- * @param cls the @e cls of this struct with the plugin-specific state
- * @param row_id row to delete
- * @return query transaction status
- */
-enum GNUNET_DB_QueryStatus
-TAH_PG_del_wire_format_inconsistency (
- void *cls,
- uint64_t row_id);
-
-#endif // SRC_PG_DEL_WIRE_FORMAT_INCONSISTENCY_H
diff --git a/src/auditordb/pg_del_wire_out_inconsistency.c b/src/auditordb/pg_del_wire_out_inconsistency.c
deleted file mode 100644
index 1e318a5be..000000000
--- a/src/auditordb/pg_del_wire_out_inconsistency.c
+++ /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/>
- */
-
-
-#include "pg_del_wire_out_inconsistency.h"
-
-#include "taler_pq_lib.h"
-#include "pg_helper.h"
-
-enum GNUNET_DB_QueryStatus
-TAH_PG_del_wire_out_inconsistency (
- void *cls,
- uint64_t row_id)
-{
- struct PostgresClosure *pg = cls;
- struct GNUNET_PQ_QueryParam params[] = {
- GNUNET_PQ_query_param_uint64 (&row_id),
- GNUNET_PQ_query_param_end
- };
-
- PREPARE (pg,
- "auditor_delete_wire_out_inconsistency",
- "DELETE"
- " FROM auditor_wire_out_inconsistency"
- " WHERE row_id=$1;");
- return GNUNET_PQ_eval_prepared_non_select (pg->conn,
- "auditor_delete_wire_out_inconsistency",
- params);
-}
diff --git a/src/auditordb/pg_del_wire_out_inconsistency.h b/src/auditordb/pg_del_wire_out_inconsistency.h
deleted file mode 100644
index 759459424..000000000
--- a/src/auditordb/pg_del_wire_out_inconsistency.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_PG_DEL_WIRE_OUT_INCONSISTENCY_H
-#define SRC_PG_DEL_WIRE_OUT_INCONSISTENCY_H
-
-#include "taler_util.h"
-#include "taler_auditordb_plugin.h"
-
-/**
- * Delete a row from the bad sig losses table.
- *
- * @param cls the @e cls of this struct with the plugin-specific state
- * @param row_id row to delete
- * @return query transaction status
- */
-enum GNUNET_DB_QueryStatus
-TAH_PG_del_wire_out_inconsistency (
- void *cls,
- uint64_t row_id);
-
-#endif // SRC_PG_DEL_WIRE_OUT_INCONSISTENCY_H
diff --git a/src/auditordb/pg_delete_generic.c b/src/auditordb/pg_delete_generic.c
new file mode 100644
index 000000000..800004465
--- /dev/null
+++ b/src/auditordb/pg_delete_generic.c
@@ -0,0 +1,85 @@
+/*
+ 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 "taler_pq_lib.h"
+#include "pg_helper.h"
+#include "pg_delete_generic.h"
+
+struct Preparations
+{
+ /**
+ * Database reconnect counter.
+ */
+ unsigned long long cnt;
+
+ /**
+ * Which DB did we do prepare for.
+ */
+ struct PostgresClosure *pg;
+
+};
+
+enum GNUNET_DB_QueryStatus
+TAH_PG_delete_generic (
+ void *cls,
+ enum TALER_AUDITORDB_DeletableSuppressableTables table,
+ uint64_t row_id)
+{
+ struct PostgresClosure *pg = cls;
+ struct GNUNET_PQ_QueryParam params[] = {
+ GNUNET_PQ_query_param_uint64 (&row_id),
+ GNUNET_PQ_query_param_end
+ };
+ static struct Preparations preps[
+ TALER_AUDITORDB_DELETABLESUPPRESSABLE_TABLES_MAX];
+
+ struct Preparations *prep = &preps[table];
+ const char *table_name = TAH_PG_get_deletable_suppressable_table_name(table);
+ char statement_name[256];
+
+ GNUNET_snprintf (statement_name,
+ sizeof (statement_name),
+ "delete_%s",
+ table_name);
+ if ( (pg != prep->pg) ||
+ (prep->cnt < pg->prep_gen) )
+ {
+ char sql[256];
+ struct GNUNET_PQ_PreparedStatement ps[] = {
+ GNUNET_PQ_make_prepare (statement_name,
+ sql),
+ GNUNET_PQ_PREPARED_STATEMENT_END
+ };
+
+ GNUNET_snprintf (sql,
+ sizeof (sql),
+ "DELETE FROM %s"
+ " WHERE row_id=$1",
+ table_name);
+ if (GNUNET_OK !=
+ GNUNET_PQ_prepare_statements (pg->conn,
+ ps))
+ {
+ GNUNET_break (0);
+ return GNUNET_DB_STATUS_HARD_ERROR;
+ }
+ prep->pg = pg;
+ prep->cnt = pg->prep_gen;
+ }
+ return GNUNET_PQ_eval_prepared_non_select (pg->conn,
+ statement_name,
+ params);
+}
diff --git a/src/auditordb/pg_del_emergency.h b/src/auditordb/pg_delete_generic.h
index 91cef7363..c37a403c1 100644
--- a/src/auditordb/pg_del_emergency.h
+++ b/src/auditordb/pg_delete_generic.h
@@ -13,23 +13,26 @@
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_PG_DEL_EMERGENCY_H
-#define SRC_PG_DEL_EMERGENCY_H
+/**
+ * @file pg_delete_generic.h
+ * @brief implementation of the delete_generic function
+ * @author Nic Eigel
+ */
+#ifndef PG_DELETE_GENERIC_H
+#define PG_DELETE_GENERIC_H
#include "taler_util.h"
+#include "taler_json_lib.h"
#include "taler_auditordb_plugin.h"
/**
- * Delete a row from the denom key validity withdraw inconsistency table.
- *
- * @param cls the plugin-specific state
- * @param row_id row to delete
- * @return query transaction status
+ // FIXME: add comments
+ * @return transaction status code
*/
enum GNUNET_DB_QueryStatus
-TAH_PG_del_emergency (
+TAH_PG_delete_generic (
void *cls,
+ enum TALER_AUDITORDB_DeletableSuppressableTables table,
uint64_t row_id);
#endif
diff --git a/src/auditordb/pg_helper.c b/src/auditordb/pg_helper.c
index 242b85efd..446e685f3 100644
--- a/src/auditordb/pg_helper.c
+++ b/src/auditordb/pg_helper.c
@@ -26,15 +26,37 @@
const char *
-TAH_PG_get_table_name (enum TALER_AUDITORDB_SuppressableTables table)
+TAH_PG_get_deletable_suppressable_table_name (enum TALER_AUDITORDB_DeletableSuppressableTables table)
{
const char *tables[] = {
"auditor_amount_arithmetic_inconsistency",
+ "auditor_closure_lags",
+ "auditor_progress",
+ "auditor_bad_sig_losses",
+ "auditor_coin_inconsistency",
+ "auditor_denomination_key_validity_withdraw_inconsistency",
+ "auditor_denomination_pending",
+ "auditor_denomination_without_sig",
+ "auditor_deposit_confirmation",
+ "auditor_emergency",
+ "auditor_emergency_by_count",
+ "auditor_fee_time_inconsistency",
+ "auditor_misattribution_in_inconsistency",
+ "auditor_purse_not_closed_inconsistency",
+ "auditor_refreshes_haning",
+ "auditor_reserve_balance_insufficient_inconsistency",
+ "auditor_reserve_balance_summary_wrong_inconsistency",
+ "auditor_reserve_in_inconsistency",
+ "auditor_reserve_not_closed_inconsistency",
+ "auditor_row_inconsistency",
+ "auditor_row_minor_inconsistency",
+ "auditor_wire_format_inconsistency",
+ "auditor_wire_out_inconsistency",
NULL,
};
if ( (table < 0) ||
- (table >= TALER_AUDITORDB_SUPPRESSABLE_TABLES_MAX))
+ (table >= TALER_AUDITORDB_DELETABLESUPPRESSABLE_TABLES_MAX))
{
GNUNET_break (0);
return NULL;
diff --git a/src/auditordb/pg_helper.h b/src/auditordb/pg_helper.h
index 9f354c2c1..f2c17f01c 100644
--- a/src/auditordb/pg_helper.h
+++ b/src/auditordb/pg_helper.h
@@ -27,7 +27,7 @@
// FIXME: comment
const char *
-TAH_PG_get_table_name (enum TALER_AUDITORDB_SuppressableTables table);
+TAH_PG_get_deletable_suppressable_table_name (enum TALER_AUDITORDB_DeletableSuppressableTables table);
/**
diff --git a/src/auditordb/pg_update_generic_suppressed.c b/src/auditordb/pg_update_generic_suppressed.c
index 21002a185..de17fc397 100644
--- a/src/auditordb/pg_update_generic_suppressed.c
+++ b/src/auditordb/pg_update_generic_suppressed.c
@@ -47,10 +47,10 @@ TAH_PG_update_generic_suppressed (
GNUNET_PQ_query_param_end
};
static struct Preparations preps[
- TALER_AUDITORDB_SUPPRESSABLE_TABLES_MAX];
+ TALER_AUDITORDB_DELETABLESUPPRESSABLE_TABLES_MAX];
struct Preparations *prep = &preps[table];
- const char *table_name = TAH_PG_get_table_name (table);
+ const char *table_name = TAH_PG_get_deletable_suppressable_table_name(table);
char statement_name[256];
GNUNET_snprintf (statement_name,
diff --git a/src/auditordb/pg_update_generic_suppressed.h b/src/auditordb/pg_update_generic_suppressed.h
index fffea794a..ab4202891 100644
--- a/src/auditordb/pg_update_generic_suppressed.h
+++ b/src/auditordb/pg_update_generic_suppressed.h
@@ -33,7 +33,7 @@
enum GNUNET_DB_QueryStatus
TAH_PG_update_generic_suppressed (
void *cls,
- enum TALER_AUDITORDB_SuppressableTables table,
+ enum TALER_AUDITORDB_DeletableSuppressableTables table,
uint64_t row_id,
bool suppressed);
diff --git a/src/auditordb/plugin_auditordb_postgres.c b/src/auditordb/plugin_auditordb_postgres.c
index 877475d17..6af19c9f1 100644
--- a/src/auditordb/plugin_auditordb_postgres.c
+++ b/src/auditordb/plugin_auditordb_postgres.c
@@ -23,6 +23,7 @@
#include "taler_pq_lib.h"
#include <pthread.h>
#include <libpq-fe.h>
+#include "pg_delete_generic.h"
#include "pg_delete_deposit_confirmations.h"
#include "pg_delete_pending_deposit.h"
#include "pg_delete_purse_info.h"
@@ -599,6 +600,9 @@ libtaler_plugin_auditordb_postgres_init (void *cls)
= &TAH_PG_insert_balance;
plugin->update_generic_suppressed
= &TAH_PG_update_generic_suppressed;
+ plugin->delete_generic
+ = &TAH_PG_delete_generic;
+
plugin->update_auditor_progress
= &TAH_PG_update_auditor_progress;
diff --git a/src/include/taler_auditordb_lib.h b/src/include/taler_auditordb_lib.h
index 552788719..f64aef8c2 100644
--- a/src/include/taler_auditordb_lib.h
+++ b/src/include/taler_auditordb_lib.h
@@ -24,19 +24,40 @@
#define TALER_AUDITORDB_LIB_H
-enum TALER_AUDITORDB_SuppressableTables
+enum TALER_AUDITORDB_DeletableSuppressableTables
{
/**
* For auditor_amount_arithmetic_inconsistency table.
*/
TALER_AUDITORDB_AMOUNT_ARITHMETIC_INCONSISTENCY,
+ TALER_AUDITORDB_CLOSURE_LAGS,
+ TALER_AUDITORDB_PROGRESS,
+ TALER_AUDITORDB_BAD_SIG_LOSSES,
+ TALER_AUDITORDB_COIN_INCONSISTENCY,
+ TALER_AUDITORDB_DENOMINATION_KEY_VALIDITY_WITHDRAW_INCONSISTENCY,
+ TALER_AUDITORDB_DENOMINATION_PENDING,
+ TALER_AUDITORDB_DENOMINATIONS_WITHOUT_SIG,
+ TALER_AUDITORDB_DEPOSIT_CONFIRMATION,
+ TALER_AUDITORDB_EMERGENCY,
+ TALER_AUDITORDB_EMERGENCY_BY_COUNT,
+ TALER_AUDITORDB_FEE_TIME_INCONSISTENCY,
+ TALER_AUDITORDB_MISATTRIBUTION_IN_INCONSISTENCY,
+ TALER_AUDITORDB_PURSE_NOT_CLOSED_INCONSISTENCY,
+ TALER_AUDITORDB_REFRESHES_HANGING,
+ TALER_AUDITORDB_RESERVE_BALANCE_INSUFFICIENT_INCONSISTENCY,
+ TALER_AUDITORDB_RESERVE_BALANCE_SUMMARY_WRONG_INCONSISTENCY,
+ TALER_AUDITORDB_RESERVE_IN_INCONSISTENCY,
+ TALER_AUDITORDB_RESERVE_NOT_CLOSED_INCONSISTENCY,
+ TALER_AUDITORDB_ROW_INCONSISTENCY,
+ TALER_AUDITORDB_ROW_MINOR_INCONSISTENCY,
+ TALER_AUDITORDB_WIRE_FORMAT_INCONSISTENCY,
+ TALER_AUDITORDB_WIRE_OUT_INCONSISTENCY,
/**
* Terminal.
*/
- TALER_AUDITORDB_SUPPRESSABLE_TABLES_MAX
+ TALER_AUDITORDB_DELETABLESUPPRESSABLE_TABLES_MAX
};
-
/**
* Initialize the plugin.
*
diff --git a/src/include/taler_auditordb_plugin.h b/src/include/taler_auditordb_plugin.h
index febfe3dc0..6b1b2e3eb 100644
--- a/src/include/taler_auditordb_plugin.h
+++ b/src/include/taler_auditordb_plugin.h
@@ -1529,10 +1529,15 @@ struct TALER_AUDITORDB_Plugin
enum GNUNET_DB_QueryStatus
(*update_generic_suppressed)(
void *cls,
- enum TALER_AUDITORDB_SuppressableTables table,
+ enum TALER_AUDITORDB_DeletableSuppressableTables table,
uint64_t row_id,
bool suppressed);
+ enum GNUNET_DB_QueryStatus
+ (*delete_generic)(
+ void *cls,
+ enum TALER_AUDITORDB_DeletableSuppressableTables table,
+ uint64_t row_id);
enum GNUNET_DB_QueryStatus
(*update_emergency_by_count)(