diff --git a/src/include/taler_exchange_service.h b/src/include/taler_exchange_service.h index a88c336fd..fd5238b04 100644 --- a/src/include/taler_exchange_service.h +++ b/src/include/taler_exchange_service.h @@ -2664,7 +2664,7 @@ TALER_EXCHANGE_management_post_extensions ( * @param ph handle of the operation to cancel */ void -TALER_EXCHANGE_management_post_extensions_cancel ( +TALER_EXCHANGE_post_management_extensions_cancel ( struct TALER_EXCHANGE_ManagementPostExtensionsHandle *ph); diff --git a/src/lib/exchange_api_management_post_extensions.c b/src/lib/exchange_api_management_post_extensions.c index 3d9201793..e4572471d 100644 --- a/src/lib/exchange_api_management_post_extensions.c +++ b/src/lib/exchange_api_management_post_extensions.c @@ -116,7 +116,7 @@ handle_post_extensions_finished (void *cls, &hr); ph->cb = NULL; } - TALER_EXCHANGE_management_post_extensions_cancel (ph); + TALER_EXCHANGE_post_management_extensions_cancel (ph); } @@ -130,11 +130,12 @@ TALER_EXCHANGE_management_post_extensions ( { struct TALER_EXCHANGE_ManagementPostExtensionsHandle *ph; // FIXME-oec: TODO! + CURL *eh = NULL; /* - CURL *eh; json_t *body; json_t *denom_sigs; json_t *signkey_sigs; + */ ph = GNUNET_new (struct TALER_EXCHANGE_ManagementPostExtensionsHandle); ph->cb = cb; @@ -150,6 +151,7 @@ TALER_EXCHANGE_management_post_extensions ( GNUNET_free (ph); return NULL; } + /* denom_sigs = json_array (); GNUNET_assert (NULL != denom_sigs); for (unsigned int i = 0; inum_denom_sigs; i++) @@ -207,17 +209,17 @@ TALER_EXCHANGE_management_post_extensions ( GNUNET_assert (CURLE_OK == curl_easy_setopt (eh, CURLOPT_URL, ph->url)); + */ ph->job = GNUNET_CURL_job_add2 (ctx, eh, ph->post_ctx.headers, - &handle_post_keys_finished, + &handle_post_extensions_finished, ph); if (NULL == ph->job) { - TALER_EXCHANGE_post_management_keys_cancel (ph); + TALER_EXCHANGE_post_management_extensions_cancel (ph); return NULL; } - */ return ph; }