From 96b4c139ee9997f827e9559a186c9684a5978f4b Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Wed, 16 Dec 2020 12:56:35 +0100 Subject: add auditor-enable /-disable commands to taler-exchange-offline tool --- src/testing/testing_api_cmd_auditor_add.c | 23 +++++------------------ 1 file changed, 5 insertions(+), 18 deletions(-) (limited to 'src/testing/testing_api_cmd_auditor_add.c') diff --git a/src/testing/testing_api_cmd_auditor_add.c b/src/testing/testing_api_cmd_auditor_add.c index 5acb5c1e0..2c59f4194 100644 --- a/src/testing/testing_api_cmd_auditor_add.c +++ b/src/testing/testing_api_cmd_auditor_add.c @@ -117,24 +117,11 @@ auditor_add_run (void *cls, } else { - - /* now sign */ - { - struct TALER_MasterAddAuditorPS kv = { - .purpose.purpose = htonl (TALER_SIGNATURE_MASTER_ADD_AUDITOR), - .purpose.size = htonl (sizeof (kv)), - .start_date = GNUNET_TIME_absolute_hton (now), - .auditor_pub = is->auditor_pub, - }; - - GNUNET_CRYPTO_hash (is->auditor_url, - strlen (is->auditor_url) + 1, - &kv.h_auditor_url); - /* Finally sign ... */ - GNUNET_CRYPTO_eddsa_sign (&is->master_priv.eddsa_priv, - &kv, - &master_sig.eddsa_signature); - } + TALER_exchange_offline_auditor_add_sign (&is->auditor_pub, + is->auditor_url, + now, + &is->master_priv, + &master_sig); } ds->dh = TALER_EXCHANGE_management_enable_auditor ( is->ctx, -- cgit v1.2.3