iterate_active_signing_keys.h (1847B)
1 /* 2 This file is part of TALER 3 Copyright (C) 2022 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/donau-database/iterate_active_signing_keys.h 18 * @brief implementation of the iterate_active_signing_keys function for Postgres 19 * @author Johannes Casaburi 20 */ 21 #ifndef DONAU_DATABASE_ITERATE_ACTIVE_SIGNING_KEYS_H 22 #define DONAU_DATABASE_ITERATE_ACTIVE_SIGNING_KEYS_H 23 24 #include "donaudb_lib.h" 25 26 /** 27 * Signature of a function called with information about the donau's 28 * signing keys. 29 * 30 * @param cls closure with a `struct DH_KeyStateHandle *` 31 * @param donau_pub public key of the donau 32 * @param meta meta data information about the signing type (expirations) 33 */ 34 typedef void 35 (*DONAUDB_IterateActiveSigningKeysCallback)( 36 void *cls, 37 const struct DONAU_DonauPublicKeyP *donau_pub, 38 struct DONAUDB_SignkeyMetaData *meta); 39 40 /** 41 * Obtain information about the enabled wire accounts of the exchange. 42 * 43 * @param cls closure 44 * @param cb function to call on each account 45 * @param cb_cls closure for @a cb 46 * @return transaction status code 47 */ 48 enum GNUNET_DB_QueryStatus 49 DONAUDB_iterate_active_signing_keys ( 50 struct DONAUDB_PostgresContext *ctx, 51 DONAUDB_IterateActiveSigningKeysCallback cb, 52 void *cb_cls); 53 54 #endif