From 6b434c626f6335f8174e0164ead61b3874752c4a Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sun, 29 Nov 2020 16:21:10 +0100 Subject: work on DB logic, add auditor_name to /management/auditors API --- src/include/taler_exchange_service.h | 2 ++ src/include/taler_exchangedb_plugin.h | 10 +++++----- 2 files changed, 7 insertions(+), 5 deletions(-) (limited to 'src/include') diff --git a/src/include/taler_exchange_service.h b/src/include/taler_exchange_service.h index 4ad05a688..19017eac1 100644 --- a/src/include/taler_exchange_service.h +++ b/src/include/taler_exchange_service.h @@ -2346,6 +2346,7 @@ struct TALER_EXCHANGE_ManagementAuditorEnableHandle; * @param url HTTP base URL for the exchange * @param auditor_pub the public signing key of the auditor * @param auditor_url base URL of the auditor + * @param auditor_name human readable name for the auditor * @param validity_start when was this decided? * @param master_sig signature affirming the auditor addition * @param cb function to call with the exchange's result @@ -2358,6 +2359,7 @@ TALER_EXCHANGE_management_enable_auditor ( const char *url, const struct TALER_AuditorPublicKeyP *auditor_pub, const char *auditor_url, + const char *auditor_name, struct GNUNET_TIME_Absolute validity_start, const struct TALER_MasterSignatureP *master_sig, TALER_EXCHANGE_ManagementAuditorEnableCallback cb, diff --git a/src/include/taler_exchangedb_plugin.h b/src/include/taler_exchangedb_plugin.h index 400d6a723..0f5e693d5 100644 --- a/src/include/taler_exchangedb_plugin.h +++ b/src/include/taler_exchangedb_plugin.h @@ -2997,9 +2997,9 @@ struct TALER_EXCHANGEDB_Plugin * @param session a session * @param auditor_pub key of the auditor * @param auditor_url base URL of the auditor's REST service + * @param auditor_name name of the auditor (for humans) * @param start_date date when the auditor was added by the offline system * (only to be used for replay detection) - * @param master_sig signature affirming the addition of the auditor * @return transaction status code */ enum GNUNET_DB_QueryStatus @@ -3007,8 +3007,8 @@ struct TALER_EXCHANGEDB_Plugin struct TALER_EXCHANGEDB_Session *session, const struct TALER_AuditorPublicKeyP *auditor_pub, const char *auditor_url, - struct GNUNET_TIME_Absolute start_date, - const struct TALER_MasterSignatureP *master_sig); + const char *auditor_name, + struct GNUNET_TIME_Absolute start_date); /** @@ -3018,9 +3018,9 @@ struct TALER_EXCHANGEDB_Plugin * @param session a session * @param auditor_pub key of the auditor (primary key for the existing record) * @param auditor_url base URL of the auditor's REST service, to be updated + * @param auditor_name name of the auditor (for humans) * @param change_date date when the auditor status was last changed * (only to be used for replay detection) - * @param master_sig signature affirming the change in status (enable or disable) * @param enabled true to enable, false to disable * @return transaction status code */ @@ -3029,8 +3029,8 @@ struct TALER_EXCHANGEDB_Plugin struct TALER_EXCHANGEDB_Session *session, const struct TALER_AuditorPublicKeyP *auditor_pub, const char *auditor_url, + const char *auditor_name, struct GNUNET_TIME_Absolute change_date, - const struct TALER_MasterSignatureP *master_sig, bool enabled); -- cgit v1.2.3