summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2020-12-20 17:10:09 +0100
committerChristian Grothoff <christian@grothoff.org>2020-12-20 17:10:09 +0100
commit699916056b7aae5f8afda12968e0046e9cc7003e (patch)
tree03a0e11b0f7575026d1c9b4096c00b90fcc1d7cb /src/lib
parent6a73629aee0f04c0ab9c26329250299d3457c97e (diff)
downloadexchange-699916056b7aae5f8afda12968e0046e9cc7003e.tar.gz
exchange-699916056b7aae5f8afda12968e0046e9cc7003e.tar.bz2
exchange-699916056b7aae5f8afda12968e0046e9cc7003e.zip
misc doxygen fixes
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/exchange_api_handle.c58
-rw-r--r--src/lib/exchange_api_wire.c1
2 files changed, 5 insertions, 54 deletions
diff --git a/src/lib/exchange_api_handle.c b/src/lib/exchange_api_handle.c
index 3d386e09..49af08b1 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;
@@ -1115,34 +1104,6 @@ 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.
*
* @param exchange the exchange handle.
@@ -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 f70c0086..8534d54c 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 */
}