diff options
author | Christian Grothoff <grothoff@gnunet.org> | 2023-09-01 14:27:48 +0200 |
---|---|---|
committer | Christian Grothoff <grothoff@gnunet.org> | 2023-09-01 14:27:48 +0200 |
commit | 35dcd4514a93ba0f5353ecd1194fc9b515f2aad4 (patch) | |
tree | 399d8f8fbebf5e8ac383fc318b7be08901279a31 /src/lib/merchant_api_get_template.c | |
parent | 858e3047b8b595ab693e16ce0bbe0b8983b072ed (diff) | |
download | merchant-35dcd4514a93ba0f5353ecd1194fc9b515f2aad4.tar.gz merchant-35dcd4514a93ba0f5353ecd1194fc9b515f2aad4.tar.bz2 merchant-35dcd4514a93ba0f5353ecd1194fc9b515f2aad4.zip |
new CRUD APIs for OTP devices and merchant accounts (fixes #7929, #7824), one minor test is still failing...
Diffstat (limited to 'src/lib/merchant_api_get_template.c')
-rw-r--r-- | src/lib/merchant_api_get_template.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/lib/merchant_api_get_template.c b/src/lib/merchant_api_get_template.c index 3e4a23a8..9bbcc93a 100644 --- a/src/lib/merchant_api_get_template.c +++ b/src/lib/merchant_api_get_template.c @@ -92,16 +92,13 @@ handle_get_template_finished (void *cls, { case MHD_HTTP_OK: { - uint32_t alg32; const json_t *contract; struct GNUNET_JSON_Specification spec[] = { GNUNET_JSON_spec_string ("template_description", &tgr.details.ok.template_description), - GNUNET_JSON_spec_uint32 ("pos_algorithm", - &alg32), GNUNET_JSON_spec_mark_optional ( - GNUNET_JSON_spec_string ("pos_key", - &tgr.details.ok.pos_key), + GNUNET_JSON_spec_string ("otp_id", + &tgr.details.ok.otp_id), NULL), GNUNET_JSON_spec_object_const ("template_contract", &contract), @@ -113,8 +110,6 @@ handle_get_template_finished (void *cls, spec, NULL, NULL)) { - tgr.details.ok.mca = - (enum TALER_MerchantConfirmationAlgorithm) alg32; tgr.details.ok.template_contract = contract; tgh->cb (tgh->cb_cls, &tgr); |