aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_escrow_lib.h
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/include/gnunet_escrow_lib.h
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/include/gnunet_escrow_lib.h')
-rw-r--r--src/include/gnunet_escrow_lib.h14
1 files changed, 9 insertions, 5 deletions
diff --git a/src/include/gnunet_escrow_lib.h b/src/include/gnunet_escrow_lib.h
index 7d9d39dce..dddf5e030 100644
--- a/src/include/gnunet_escrow_lib.h
+++ b/src/include/gnunet_escrow_lib.h
@@ -75,6 +75,11 @@ struct GNUNET_ESCROW_Anchor
75 enum GNUNET_ESCROW_Key_Escrow_Method method; 75 enum GNUNET_ESCROW_Key_Escrow_Method method;
76 76
77 /** 77 /**
78 * The name of the ego that was put in escrow.
79 */
80 char *egoName;
81
82 /**
78 * The size of the anchor data. 83 * The size of the anchor data.
79 */ 84 */
80 uint32_t size; 85 uint32_t size;
@@ -305,8 +310,7 @@ GNUNET_ESCROW_put (
305 * Get the escrowed data back 310 * Get the escrowed data back
306 * 311 *
307 * @param h the handle for the escrow component 312 * @param h the handle for the escrow component
308 * @param escrowAnchor the escrow anchor returned by the GNUNET_ESCROW_put method 313 * @param anchor the escrow anchor returned by the GNUNET_ESCROW_put method
309 * @param egoName the name of the ego to get back
310 * @param method the escrow method to use 314 * @param method the escrow method to use
311 * @param cb function to call with the restored ego on completion 315 * @param cb function to call with the restored ego on completion
312 * @param cb_cls closure for @a cb 316 * @param cb_cls closure for @a cb
@@ -316,8 +320,7 @@ GNUNET_ESCROW_put (
316struct GNUNET_ESCROW_Operation * 320struct GNUNET_ESCROW_Operation *
317GNUNET_ESCROW_get ( 321GNUNET_ESCROW_get (
318 struct GNUNET_ESCROW_Handle *h, 322 struct GNUNET_ESCROW_Handle *h,
319 struct GNUNET_ESCROW_Anchor *escrowAnchor, 323 struct GNUNET_ESCROW_Anchor *anchor,
320 const char *egoName,
321 enum GNUNET_ESCROW_Key_Escrow_Method method, 324 enum GNUNET_ESCROW_Key_Escrow_Method method,
322 GNUNET_ESCROW_EgoContinuation cb, 325 GNUNET_ESCROW_EgoContinuation cb,
323 void *cb_cls); 326 void *cb_cls);
@@ -371,7 +374,8 @@ GNUNET_ESCROW_get_status (
371 * @param anchorString the encoded escrow anchor string 374 * @param anchorString the encoded escrow anchor string
372 * @param method the escrow method to use 375 * @param method the escrow method to use
373 * 376 *
374 * @return the deserialized data packed into a GNUNET_ESCROW_Anchor struct 377 * @return the deserialized data packed into a GNUNET_ESCROW_Anchor struct,
378 * NULL if we failed to parse the string
375 */ 379 */
376struct GNUNET_ESCROW_Anchor * 380struct GNUNET_ESCROW_Anchor *
377GNUNET_ESCROW_anchor_string_to_data ( 381GNUNET_ESCROW_anchor_string_to_data (