From 699916056b7aae5f8afda12968e0046e9cc7003e Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sun, 20 Dec 2020 17:10:09 +0100 Subject: misc doxygen fixes --- src/lib/exchange_api_handle.c | 58 ++++--------------------------------------- src/lib/exchange_api_wire.c | 1 - 2 files changed, 5 insertions(+), 54 deletions(-) (limited to 'src/lib') diff --git a/src/lib/exchange_api_handle.c b/src/lib/exchange_api_handle.c index 3d386e09f..49af08b13 100644 --- a/src/lib/exchange_api_handle.c +++ b/src/lib/exchange_api_handle.c @@ -215,17 +215,6 @@ struct TALER_EXCHANGE_Handle */ enum ExchangeHandleState state; - /** - * If #GNUNET_YES, use fake now given by the user, in - * request of "/keys". - */ - int with_now; - - /** - * Fake now given by the user. - */ - struct GNUNET_TIME_Absolute now; - }; @@ -1044,12 +1033,12 @@ decode_keys_json (const json_t *resp_obj, if (check_sig) { - struct TALER_ExchangeKeySetPS ks; + struct TALER_ExchangeKeySetPS ks = { + .purpose.size = htonl (sizeof (ks)), + .purpose.purpose = htonl (TALER_SIGNATURE_EXCHANGE_KEY_SET), + .list_issue_date = GNUNET_TIME_absolute_hton (key_data->list_issue_date) + }; - /* Validate signature... */ - ks.purpose.size = htonl (sizeof (ks)); - ks.purpose.purpose = htonl (TALER_SIGNATURE_EXCHANGE_KEY_SET); - ks.list_issue_date = GNUNET_TIME_absolute_hton (key_data->list_issue_date); GNUNET_CRYPTO_hash_context_finish (hash_context, &ks.hc); hash_context = NULL; @@ -1114,34 +1103,6 @@ static void request_keys (void *cls); -/** - * Set the fake now to be used when requesting "/keys". - * - * @param exchange exchange handle. - * @param now fake now to use. Note: this value will be - * used _until_ its use will be unset via @a TALER_EXCHANGE_unset_now() - */ -void -TALER_EXCHANGE_set_now (struct TALER_EXCHANGE_Handle *exchange, - struct GNUNET_TIME_Absolute now) -{ - exchange->with_now = GNUNET_YES; - exchange->now = now; -} - - -/** - * Unset the fake now to be used when requesting "/keys". - * - * @param exchange exchange handle. - */ -void -TALER_EXCHANGE_unset_now (struct TALER_EXCHANGE_Handle *exchange) -{ - exchange->with_now = GNUNET_NO; -} - - /** * Let the user set the last valid denomination time manually. * @@ -1940,15 +1901,6 @@ request_keys (void *cls) / 1000000LLU); } - if (GNUNET_YES == exchange->with_now) - { - TALER_LOG_DEBUG ("Faking now to GET /keys: %s\n", - GNUNET_STRINGS_absolute_time_to_string (exchange->now)); - sprintf (&url[strlen (url)], - "now=%llu&", - (unsigned long long) exchange->now.abs_value_us / 1000000LLU); - } - /* Clean the last '&'/'?' sign that we optimistically put. */ url[strlen (url) - 1] = '\0'; kr->url = TEAH_path_to_url (exchange, diff --git a/src/lib/exchange_api_wire.c b/src/lib/exchange_api_wire.c index f70c00864..8534d54c0 100644 --- a/src/lib/exchange_api_wire.c +++ b/src/lib/exchange_api_wire.c @@ -129,7 +129,6 @@ parse_fees (json_t *fees) if (0 == (len = json_array_size (fee_array))) { - GNUNET_break_op (0); GNUNET_free (fe); continue; /* skip */ } -- cgit v1.2.3