aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_escrow_lib.h
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/include/gnunet_escrow_lib.h
parentc44480a40fac3be1c586430c74c69bc0eda9eaf7 (diff)
downloadgnunet-2822c5af3ef8f29ac2b5727ee3c13c6338852e58.tar.gz
gnunet-2822c5af3ef8f29ac2b5727ee3c13c6338852e58.zip
remove renew from the API
Diffstat (limited to 'src/include/gnunet_escrow_lib.h')
-rw-r--r--src/include/gnunet_escrow_lib.h31
1 files changed, 2 insertions, 29 deletions
diff --git a/src/include/gnunet_escrow_lib.h b/src/include/gnunet_escrow_lib.h
index aea081319..10b7df886 100644
--- a/src/include/gnunet_escrow_lib.h
+++ b/src/include/gnunet_escrow_lib.h
@@ -56,8 +56,7 @@ enum GNUNET_ESCROW_Key_Escrow_Method {
56 */ 56 */
57enum GNUNET_ESCROW_Verification_Result { 57enum GNUNET_ESCROW_Verification_Result {
58 GNUNET_ESCROW_VALID, 58 GNUNET_ESCROW_VALID,
59 GNUNET_ESCROW_INVALID, 59 GNUNET_ESCROW_INVALID
60 GNUNET_ESCROW_RENEW_NEEDED
61}; 60};
62 61
63 62
@@ -91,7 +90,7 @@ typedef void (*GNUNET_ESCROW_EgoCreateContinuation) (
91 const struct GNUNET_IDENTITY_Ego *ego); 90 const struct GNUNET_IDENTITY_Ego *ego);
92 91
93/** 92/**
94 * Continuation for PUT and RENEW operations. 93 * Continuation for PUT operations.
95 * 94 *
96 * @param cls closure 95 * @param cls closure
97 * @param escrowAnchor the escrow anchor needed to get the data back 96 * @param escrowAnchor the escrow anchor needed to get the data back
@@ -114,7 +113,6 @@ typedef void (*GNUNET_ESCROW_EgoContinuation) (
114 * @param cls closure 113 * @param cls closure
115 * @param verificationResult the result of the verification, i.e. 114 * @param verificationResult the result of the verification, i.e.
116 * GNUNET_ESCROW_VALID if the escrow could successfully by restored, 115 * GNUNET_ESCROW_VALID if the escrow could successfully by restored,
117 * GNUNET_ESCROW_RENEW_NEEDED if the escrow needs to be renewed,
118 * GNUNET_ESCROW_INVALID otherwise 116 * GNUNET_ESCROW_INVALID otherwise
119 */ 117 */
120typedef void (*GNUNET_ESCROW_VerifyContinuation) ( 118typedef void (*GNUNET_ESCROW_VerifyContinuation) (
@@ -194,11 +192,6 @@ struct GNUNET_ESCROW_Operation
194 GNUNET_ESCROW_AnchorContinuation cb_put; 192 GNUNET_ESCROW_AnchorContinuation cb_put;
195 193
196 /** 194 /**
197 * Continuation for a RENEW operation.
198 */
199 GNUNET_ESCROW_AnchorContinuation cb_renew;
200
201 /**
202 * Continuation for a GET operation. 195 * Continuation for a GET operation.
203 */ 196 */
204 GNUNET_ESCROW_EgoContinuation cb_get; 197 GNUNET_ESCROW_EgoContinuation cb_get;
@@ -258,26 +251,6 @@ GNUNET_ESCROW_put (
258 251
259 252
260/** 253/**
261 * Renew the escrow of the data related to the given escrow anchor
262 *
263 * @param h the handle for the escrow component
264 * @param escrowAnchor the escrow anchor returned by the GNUNET_ESCROW_put method
265 * @param method the escrow method to use
266 * @param cb function to call with the escrow anchor on completion
267 * @param cb_cls closure for @a cb
268 *
269 * @return handle to abort the operation
270 */
271struct GNUNET_ESCROW_Operation *
272GNUNET_ESCROW_renew (
273 struct GNUNET_ESCROW_Handle *h,
274 struct GNUNET_ESCROW_Anchor *escrowAnchor,
275 enum GNUNET_ESCROW_Key_Escrow_Method method,
276 GNUNET_ESCROW_AnchorContinuation cb,
277 void *cb_cls);
278
279
280/**
281 * Get the escrowed data back 254 * Get the escrowed data back
282 * 255 *
283 * @param h the handle for the escrow component 256 * @param h the handle for the escrow component