aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_escrow_lib.h
diff options
context:
space:
mode:
authorjospaeth <spaethj@in.tum.de>2020-07-18 14:35:59 +0200
committerjospaeth <spaethj@in.tum.de>2020-07-18 14:35:59 +0200
commit15ad508b20fbca46d8b9a8682a723b34098545bf (patch)
tree7800b9fd2cf6e6b36797bb8dc29356ae00a6f497 /src/include/gnunet_escrow_lib.h
parent646beac5ca85327b150affa034a5e9d1559382b1 (diff)
downloadgnunet-15ad508b20fbca46d8b9a8682a723b34098545bf.tar.gz
gnunet-15ad508b20fbca46d8b9a8682a723b34098545bf.zip
pass only ESCROW_Operation to the plugins
Diffstat (limited to 'src/include/gnunet_escrow_lib.h')
-rw-r--r--src/include/gnunet_escrow_lib.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/src/include/gnunet_escrow_lib.h b/src/include/gnunet_escrow_lib.h
index 9f879ecfc..4f6652e88 100644
--- a/src/include/gnunet_escrow_lib.h
+++ b/src/include/gnunet_escrow_lib.h
@@ -140,6 +140,11 @@ struct GNUNET_ESCROW_Operation
140 struct GNUNET_ESCROW_Handle *h; 140 struct GNUNET_ESCROW_Handle *h;
141 141
142 /** 142 /**
143 * Handle to an identity operation.
144 */
145 struct GNUNET_IDENTITY_Operation *id_op;
146
147 /**
143 * Continuation for a PUT operation. 148 * Continuation for a PUT operation.
144 */ 149 */
145 GNUNET_ESCROW_AnchorContinuation cb_put; 150 GNUNET_ESCROW_AnchorContinuation cb_put;
@@ -158,6 +163,11 @@ struct GNUNET_ESCROW_Operation
158 * Continuation for a VERIFY operation. 163 * Continuation for a VERIFY operation.
159 */ 164 */
160 GNUNET_ESCROW_VerifyContinuation cb_verify; 165 GNUNET_ESCROW_VerifyContinuation cb_verify;
166
167 /**
168 * Closure for a callback.
169 */
170 void *cb_cls;
161}; 171};
162 172
163 173
@@ -284,6 +294,21 @@ GNUNET_ESCROW_anchor_string_to_data (
284 enum GNUNET_ESCROW_Key_Escrow_Method method); 294 enum GNUNET_ESCROW_Key_Escrow_Method method);
285 295
286 296
297/**
298 * Serialize an escrow anchor (struct GNUNET_ESCROW_Anchor) into a string
299 *
300 * @param h the handle for the escrow component
301 * @param escrowAnchor the escrow anchor struct
302 * @param method the escrow method to use
303 *
304 * @return the encoded escrow anchor string
305 */
306char *
307GNUNET_ESCROW_anchor_data_to_string (struct GNUNET_ESCROW_Handle *h,
308 struct GNUNET_ESCROW_Anchor *escrowAnchor,
309 enum GNUNET_ESCROW_Key_Escrow_Method method);
310
311
287#if 0 /* keep Emacsens' auto-indent happy */ 312#if 0 /* keep Emacsens' auto-indent happy */
288{ 313{
289#endif 314#endif