aboutsummaryrefslogtreecommitdiff
path: root/src/escrow/escrow_api.c
diff options
context:
space:
mode:
authorjospaeth <spaethj@in.tum.de>2020-08-03 12:40:13 +0200
committerjospaeth <spaethj@in.tum.de>2020-08-03 12:40:13 +0200
commit2822c5af3ef8f29ac2b5727ee3c13c6338852e58 (patch)
treed1bd6c5b6409fb82b4b01cc472860f484cc3232a /src/escrow/escrow_api.c
parentc44480a40fac3be1c586430c74c69bc0eda9eaf7 (diff)
downloadgnunet-2822c5af3ef8f29ac2b5727ee3c13c6338852e58.tar.gz
gnunet-2822c5af3ef8f29ac2b5727ee3c13c6338852e58.zip
remove renew from the API
Diffstat (limited to 'src/escrow/escrow_api.c')
-rw-r--r--src/escrow/escrow_api.c35
1 files changed, 0 insertions, 35 deletions
diff --git a/src/escrow/escrow_api.c b/src/escrow/escrow_api.c
index 20cae2f5c..5be53e713 100644
--- a/src/escrow/escrow_api.c
+++ b/src/escrow/escrow_api.c
@@ -234,40 +234,6 @@ GNUNET_ESCROW_put (struct GNUNET_ESCROW_Handle *h,
234} 234}
235 235
236 236
237/**
238 * Renew the escrow of the data related to the given escrow anchor
239 *
240 * @param h the handle for the escrow component
241 * @param escrowAnchor the escrow anchor returned by the GNUNET_ESCROW_put method
242 * @param method the escrow method to use
243 * @param cb function to call with the escrow anchor on completion
244 * @param cb_cls closure for @a cb
245 *
246 * @return handle to abort the operation
247 */
248struct GNUNET_ESCROW_Operation *
249GNUNET_ESCROW_renew (struct GNUNET_ESCROW_Handle *h,
250 struct GNUNET_ESCROW_Anchor *escrowAnchor,
251 enum GNUNET_ESCROW_Key_Escrow_Method method,
252 GNUNET_ESCROW_AnchorContinuation cb,
253 void *cb_cls)
254{
255 struct GNUNET_ESCROW_Operation *op;
256 const struct GNUNET_ESCROW_KeyPluginFunctions *api;
257
258 op = GNUNET_new (struct GNUNET_ESCROW_Operation);
259 op->h = h;
260 op->method = method;
261 op->cb_renew = cb;
262 op->cb_cls = cb_cls;
263
264 api = init_plugin (h, method);
265 api->renew_key_escrow (op, escrowAnchor);
266
267 return op;
268}
269
270
271static void 237static void
272handle_restore_key_result (void *cls) 238handle_restore_key_result (void *cls)
273{ 239{
@@ -458,7 +424,6 @@ GNUNET_ESCROW_cancel (struct GNUNET_ESCROW_Operation *op)
458 api->cancel_plugin_operation (op->plugin_op_wrap); 424 api->cancel_plugin_operation (op->plugin_op_wrap);
459 // TODO: check which callback is not NULL? 425 // TODO: check which callback is not NULL?
460 op->cb_put = NULL; 426 op->cb_put = NULL;
461 op->cb_renew = NULL;
462 op->cb_verify = NULL; 427 op->cb_verify = NULL;
463 op->cb_get = NULL; 428 op->cb_get = NULL;
464 GNUNET_free (op); 429 GNUNET_free (op);