diff options
| author | Özgür Kesim <oec-taler@kesim.org> | 2023-05-12 13:40:22 +0200 | 
|---|---|---|
| committer | Özgür Kesim <oec-taler@kesim.org> | 2023-05-12 13:40:22 +0200 | 
| commit | 4833234df63d7da774299b336adb925e700bd4b4 (patch) | |
| tree | abb478b860c2d3f292ded9364300ce73b1d60d11 /src/exchange-tools/taler-auditor-offline.c | |
| parent | 9130cda9e775131d3ced613b7f238a4c9e43ad5a (diff) | |
| parent | ff1a28319fe31741958a0b1cfa761fd44878db45 (diff) | |
Merge branch 'master' into age-withdraw
Diffstat (limited to 'src/exchange-tools/taler-auditor-offline.c')
| -rw-r--r-- | src/exchange-tools/taler-auditor-offline.c | 23 | 
1 files changed, 8 insertions, 15 deletions
| diff --git a/src/exchange-tools/taler-auditor-offline.c b/src/exchange-tools/taler-auditor-offline.c index 53135d9f..f239c11a 100644 --- a/src/exchange-tools/taler-auditor-offline.c +++ b/src/exchange-tools/taler-auditor-offline.c @@ -644,26 +644,19 @@ do_upload (char *const *args)   * a particular exchange and what keys the exchange is using.   *   * @param cls closure with the `char **` remaining args - * @param hr HTTP response data - * @param keys information about the various keys used - *        by the exchange, NULL if /keys failed - * @param compat protocol compatibility information + * @param kr response data   */  static void  keys_cb (    void *cls, -  const struct TALER_EXCHANGE_HttpResponse *hr, -  const struct TALER_EXCHANGE_Keys *keys, -  enum TALER_EXCHANGE_VersionCompatibility compat) +  const struct TALER_EXCHANGE_KeysResponse *kr)  {    char *const *args = cls; -  (void) keys; -  (void) compat; -  switch (hr->http_status) +  switch (kr->hr.http_status)    {    case MHD_HTTP_OK: -    if (! json_is_object (hr->reply)) +    if (! json_is_object (kr->hr.reply))      {        GNUNET_break (0);        TALER_EXCHANGE_disconnect (exchange); @@ -676,9 +669,9 @@ keys_cb (    default:      fprintf (stderr,               "Failed to download keys: %s (HTTP status: %u/%u)\n", -             hr->hint, -             hr->http_status, -             (unsigned int) hr->ec); +             kr->hr.hint, +             kr->hr.http_status, +             (unsigned int) kr->hr.ec);      TALER_EXCHANGE_disconnect (exchange);      exchange = NULL;      test_shutdown (); @@ -689,7 +682,7 @@ keys_cb (      GNUNET_JSON_pack_string ("operation",                               OP_INPUT_KEYS),      GNUNET_JSON_pack_object_incref ("arguments", -                                    (json_t *) hr->reply)); +                                    (json_t *) kr->hr.reply));    if (NULL == args[0])    {      json_dumpf (in, | 
