aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_escrow_lib.h
diff options
context:
space:
mode:
authorjospaeth <spaethj@in.tum.de>2020-08-03 11:58:50 +0200
committerjospaeth <spaethj@in.tum.de>2020-08-03 11:58:50 +0200
commit1c09fd9efa3ce06b980b8e493644a7d271c52747 (patch)
treeb1c1dfaa305d0a9e8b8b6a1145df80e1538854db /src/include/gnunet_escrow_lib.h
parent7694804564e41a04e9d6e0909a59ee7ec3b7e627 (diff)
downloadgnunet-1c09fd9efa3ce06b980b8e493644a7d271c52747.tar.gz
gnunet-1c09fd9efa3ce06b980b8e493644a7d271c52747.zip
major restructuring of the escrow component
refine the several layers (CLI, API, plugins) and enable async execution
Diffstat (limited to 'src/include/gnunet_escrow_lib.h')
-rw-r--r--src/include/gnunet_escrow_lib.h32
1 files changed, 26 insertions, 6 deletions
diff --git a/src/include/gnunet_escrow_lib.h b/src/include/gnunet_escrow_lib.h
index 388f5a3e1..aea081319 100644
--- a/src/include/gnunet_escrow_lib.h
+++ b/src/include/gnunet_escrow_lib.h
@@ -97,7 +97,6 @@ typedef void (*GNUNET_ESCROW_EgoCreateContinuation) (
97 * @param escrowAnchor the escrow anchor needed to get the data back 97 * @param escrowAnchor the escrow anchor needed to get the data back
98 */ 98 */
99typedef void (*GNUNET_ESCROW_AnchorContinuation) ( 99typedef void (*GNUNET_ESCROW_AnchorContinuation) (
100 void *cls,
101 struct GNUNET_ESCROW_Anchor *escrowAnchor); 100 struct GNUNET_ESCROW_Anchor *escrowAnchor);
102 101
103/** 102/**
@@ -107,7 +106,6 @@ typedef void (*GNUNET_ESCROW_AnchorContinuation) (
107 * @param ego a new identity ego restored from the escrow 106 * @param ego a new identity ego restored from the escrow
108 */ 107 */
109typedef void (*GNUNET_ESCROW_EgoContinuation) ( 108typedef void (*GNUNET_ESCROW_EgoContinuation) (
110 void *cls,
111 const struct GNUNET_IDENTITY_Ego *ego); 109 const struct GNUNET_IDENTITY_Ego *ego);
112 110
113/** 111/**
@@ -120,7 +118,6 @@ typedef void (*GNUNET_ESCROW_EgoContinuation) (
120 * GNUNET_ESCROW_INVALID otherwise 118 * GNUNET_ESCROW_INVALID otherwise
121 */ 119 */
122typedef void (*GNUNET_ESCROW_VerifyContinuation) ( 120typedef void (*GNUNET_ESCROW_VerifyContinuation) (
123 void *cls,
124 int verificationResult); 121 int verificationResult);
125 122
126 123
@@ -167,6 +164,31 @@ struct GNUNET_ESCROW_Operation
167 struct GNUNET_ESCROW_Operation *prev; 164 struct GNUNET_ESCROW_Operation *prev;
168 165
169 /** 166 /**
167 * The used escrow method.
168 */
169 enum GNUNET_ESCROW_Key_Escrow_Method method;
170
171 /**
172 * The respective plugin operation
173 */
174 struct ESCROW_PluginOperationWrapper *plugin_op_wrap;
175
176 /**
177 * The escrow anchor.
178 */
179 struct GNUNET_ESCROW_Anchor *escrow_anchor;
180
181 /**
182 * The ego.
183 */
184 struct GNUNET_IDENTITY_Ego *ego;
185
186 /**
187 * The verification result.
188 */
189 enum GNUNET_ESCROW_Verification_Result verification_result;
190
191 /**
170 * Continuation for a PUT operation. 192 * Continuation for a PUT operation.
171 */ 193 */
172 GNUNET_ESCROW_AnchorContinuation cb_put; 194 GNUNET_ESCROW_AnchorContinuation cb_put;
@@ -336,11 +358,9 @@ GNUNET_ESCROW_anchor_data_to_string (struct GNUNET_ESCROW_Handle *h,
336 * be executed; this merely cancels the continuation. 358 * be executed; this merely cancels the continuation.
337 * 359 *
338 * @param op operation to cancel 360 * @param op operation to cancel
339 * @param method the escrow method to use
340 */ 361 */
341void 362void
342GNUNET_ESCROW_cancel (struct GNUNET_ESCROW_Operation *op, 363GNUNET_ESCROW_cancel (struct GNUNET_ESCROW_Operation *op);
343 enum GNUNET_ESCROW_Key_Escrow_Method method);
344 364
345 365
346#if 0 /* keep Emacsens' auto-indent happy */ 366#if 0 /* keep Emacsens' auto-indent happy */