summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2020-11-29 16:21:10 +0100
committerChristian Grothoff <christian@grothoff.org>2020-11-29 16:21:10 +0100
commit6b434c626f6335f8174e0164ead61b3874752c4a (patch)
treef26d256d8912721de26413ef259975112aab4e09 /src/lib
parent3240844e48dc62b80c6167558677bcd7b83dd3c0 (diff)
downloadexchange-6b434c626f6335f8174e0164ead61b3874752c4a.tar.gz
exchange-6b434c626f6335f8174e0164ead61b3874752c4a.tar.bz2
exchange-6b434c626f6335f8174e0164ead61b3874752c4a.zip
work on DB logic, add auditor_name to /management/auditors API
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/exchange_api_management_auditor_enable.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/lib/exchange_api_management_auditor_enable.c b/src/lib/exchange_api_management_auditor_enable.c
index dedc9e43..3556cdb3 100644
--- a/src/lib/exchange_api_management_auditor_enable.c
+++ b/src/lib/exchange_api_management_auditor_enable.c
@@ -126,6 +126,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,
@@ -149,9 +150,11 @@ TALER_EXCHANGE_management_enable_auditor (
GNUNET_free (ah);
return NULL;
}
- body = json_pack ("{s:s, s:o, s:o, s:o}",
- "master_sig",
+ body = json_pack ("{s:s, s:s, s:o, s:o, s:o}",
+ "auditor_url",
auditor_url,
+ "auditor_name",
+ auditor_name,
"auditor_pub",
GNUNET_JSON_from_data_auto (auditor_pub),
"master_sig",