insert_aml_staff.h (2228B)
1 /* 2 This file is part of TALER 3 Copyright (C) 2026 Taler Systems SA 4 5 TALER is free software; you can redistribute it and/or modify it under the 6 terms of the GNU General Public License as published by the Free Software 7 Foundation; either version 3, or (at your option) any later version. 8 9 TALER is distributed in the hope that it will be useful, but WITHOUT ANY 10 WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR 11 A PARTICULAR PURPOSE. See the GNU General Public License for more details. 12 13 You should have received a copy of the GNU General Public License along with 14 TALER; see the file COPYING. If not, see <http://www.gnu.org/licenses/> 15 */ 16 /** 17 * @file src/include/auditor-database/insert_aml_staff.h 18 * @brief implementation of the insert_aml_staff function for Postgres 19 * @author Christian Grothoff 20 */ 21 #ifndef AUDITOR_DATABASE_INSERT_AML_STAFF_H 22 #define AUDITOR_DATABASE_INSERT_AML_STAFF_H 23 24 #include "auditordb_lib.h" 25 26 27 /** 28 * Remember an AML staff status change we observed at the exchange. 29 * 30 * Does nothing if we already recorded this (@a decider_pub, @a last_change) 31 * pair, which is the normal case: the exchange keeps showing us the current 32 * status of every staff member on every round. 33 * 34 * @param pg the database context 35 * @param decider_pub public key of the staff member 36 * @param decider_name legal name of the staff member 37 * @param is_active true if the staff member may act from @a last_change on 38 * @param read_only true if the staff member has read-only access 39 * @param master_sig_valid true if the exchange's offline master key really 40 * did sign this status; a status that fails the check confers no 41 * authority but is still recorded, so that the finding is raised once 42 * rather than on every round 43 * @param last_change when the status took effect, as claimed by the exchange 44 * @return query result status 45 */ 46 enum GNUNET_DB_QueryStatus 47 TALER_AUDITORDB_insert_aml_staff ( 48 struct TALER_AUDITORDB_PostgresContext *pg, 49 const struct TALER_AmlOfficerPublicKeyP *decider_pub, 50 const char *decider_name, 51 bool is_active, 52 bool read_only, 53 bool master_sig_valid, 54 struct GNUNET_TIME_Timestamp last_change); 55 56 #endif