aboutsummaryrefslogtreecommitdiff
path: root/src/escrow/escrow_api.c
diff options
context:
space:
mode:
authorjospaeth <spaethj@in.tum.de>2020-08-29 22:28:23 +0200
committerjospaeth <spaethj@in.tum.de>2020-08-29 22:28:23 +0200
commitabd526c01164422a086374a1a96ca9ee5e781b01 (patch)
tree757b6f4431a1278b6d356138a6cd4a75dc87c58a /src/escrow/escrow_api.c
parent5f7d255ae5221c447367c4ac7a157ddcd27bcd57 (diff)
downloadgnunet-abd526c01164422a086374a1a96ca9ee5e781b01.tar.gz
gnunet-abd526c01164422a086374a1a96ca9ee5e781b01.zip
add egoName to the escrow anchor,
no need to pass it to the API in case of a GET operation
Diffstat (limited to 'src/escrow/escrow_api.c')
-rw-r--r--src/escrow/escrow_api.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/escrow/escrow_api.c b/src/escrow/escrow_api.c
index ddbf6a2b7..e35ba3e9e 100644
--- a/src/escrow/escrow_api.c
+++ b/src/escrow/escrow_api.c
@@ -295,8 +295,7 @@ handle_restore_key_result (void *cls)
295 * Get the escrowed data back 295 * Get the escrowed data back
296 * 296 *
297 * @param h the handle for the escrow component 297 * @param h the handle for the escrow component
298 * @param escrowAnchor the escrow anchor returned by the GNUNET_ESCROW_put method 298 * @param anchor the escrow anchor returned by the GNUNET_ESCROW_put method
299 * @param egoName the name of the ego to get back
300 * @param method the escrow method to use 299 * @param method the escrow method to use
301 * @param cb function to call with the restored ego on completion 300 * @param cb function to call with the restored ego on completion
302 * @param cb_cls closure for @a cb 301 * @param cb_cls closure for @a cb
@@ -305,8 +304,7 @@ handle_restore_key_result (void *cls)
305 */ 304 */
306struct GNUNET_ESCROW_Operation * 305struct GNUNET_ESCROW_Operation *
307GNUNET_ESCROW_get (struct GNUNET_ESCROW_Handle *h, 306GNUNET_ESCROW_get (struct GNUNET_ESCROW_Handle *h,
308 struct GNUNET_ESCROW_Anchor *escrowAnchor, 307 struct GNUNET_ESCROW_Anchor *anchor,
309 const char *egoName,
310 enum GNUNET_ESCROW_Key_Escrow_Method method, 308 enum GNUNET_ESCROW_Key_Escrow_Method method,
311 GNUNET_ESCROW_EgoContinuation cb, 309 GNUNET_ESCROW_EgoContinuation cb,
312 void *cb_cls) 310 void *cb_cls)
@@ -323,7 +321,7 @@ GNUNET_ESCROW_get (struct GNUNET_ESCROW_Handle *h,
323 GNUNET_CONTAINER_DLL_insert_tail (h->op_head, h->op_tail, op); 321 GNUNET_CONTAINER_DLL_insert_tail (h->op_head, h->op_tail, op);
324 322
325 api = init_plugin (h, method); 323 api = init_plugin (h, method);
326 op->plugin_op_wrap = api->restore_key (h, escrowAnchor, egoName, &handle_restore_key_result, op->id); 324 op->plugin_op_wrap = api->restore_key (h, anchor, &handle_restore_key_result, op->id);
327 325
328 return op; 326 return op;
329} 327}
@@ -420,7 +418,8 @@ GNUNET_ESCROW_get_status (struct GNUNET_ESCROW_Handle *h,
420 * @param anchorString the encoded escrow anchor string 418 * @param anchorString the encoded escrow anchor string
421 * @param method the escrow method to use 419 * @param method the escrow method to use
422 * 420 *
423 * @return the deserialized data packed into a GNUNET_ESCROW_Anchor struct 421 * @return the deserialized data packed into a GNUNET_ESCROW_Anchor struct,
422 * NULL if we failed to parse the string
424 */ 423 */
425struct GNUNET_ESCROW_Anchor * 424struct GNUNET_ESCROW_Anchor *
426GNUNET_ESCROW_anchor_string_to_data (struct GNUNET_ESCROW_Handle *h, 425GNUNET_ESCROW_anchor_string_to_data (struct GNUNET_ESCROW_Handle *h,