aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_reclaim_service.h
diff options
context:
space:
mode:
authorMarkus Voggenreiter <Markus.Voggenreiter@tum.de>2019-10-23 21:50:46 +0200
committerSchanzenbach, Martin <mschanzenbach@posteo.de>2020-01-13 13:31:03 +0100
commitbb286cb253251e8210ed686dbde3dc8ecee16420 (patch)
tree4e7f625480adb0397df002f6e26bb6a3755ff3cc /src/include/gnunet_reclaim_service.h
parentc136a16600cd4f72d7def1af7b4aa7592310c898 (diff)
downloadgnunet-bb286cb253251e8210ed686dbde3dc8ecee16420.tar.gz
gnunet-bb286cb253251e8210ed686dbde3dc8ecee16420.zip
Preparation for Reference Type
Diffstat (limited to 'src/include/gnunet_reclaim_service.h')
-rw-r--r--src/include/gnunet_reclaim_service.h22
1 files changed, 21 insertions, 1 deletions
diff --git a/src/include/gnunet_reclaim_service.h b/src/include/gnunet_reclaim_service.h
index e7384fd06..eb6c1bc9e 100644
--- a/src/include/gnunet_reclaim_service.h
+++ b/src/include/gnunet_reclaim_service.h
@@ -117,7 +117,7 @@ typedef void (*GNUNET_RECLAIM_ContinuationWithStatus) (void *cls,
117 */ 117 */
118typedef void (*GNUNET_RECLAIM_AttributeResult) ( 118typedef void (*GNUNET_RECLAIM_AttributeResult) (
119 void *cls, const struct GNUNET_CRYPTO_EcdsaPublicKey *identity, 119 void *cls, const struct GNUNET_CRYPTO_EcdsaPublicKey *identity,
120 const struct GNUNET_RECLAIM_ATTRIBUTE_Claim *attr, 120 const struct GNUNET_RECLAIM_ATTRIBUTE_Claim *attr,
121 const struct GNUNET_RECLAIM_ATTESTATION_Claim *attest); 121 const struct GNUNET_RECLAIM_ATTESTATION_Claim *attest);
122 122
123 123
@@ -242,6 +242,26 @@ GNUNET_RECLAIM_get_attributes_start (
242 GNUNET_RECLAIM_AttributeResult proc, void *proc_cls, 242 GNUNET_RECLAIM_AttributeResult proc, void *proc_cls,
243 GNUNET_SCHEDULER_TaskCallback finish_cb, void *finish_cb_cls); 243 GNUNET_SCHEDULER_TaskCallback finish_cb, void *finish_cb_cls);
244 244
245/**
246 * Store an attestation reference. If the reference is already present,
247 * it is replaced with the new reference.
248 *
249 * @param h handle to the re:claimID service
250 * @param pkey private key of the identity
251 * @param attr the reference value
252 * @param exp_interval the relative expiration interval for the reference
253 * @param cont continuation to call when done
254 * @param cont_cls closure for @a cont
255 * @return handle to abort the request
256 */
257struct GNUNET_RECLAIM_Operation *
258GNUNET_RECLAIM_attestation_reference_store (
259 struct GNUNET_RECLAIM_Handle *h,
260 const struct GNUNET_CRYPTO_EcdsaPrivateKey *pkey,
261 const struct GNUNET_RECLAIM_ATTESTATION_REFERENCE *attr,
262 const struct GNUNET_TIME_Relative *exp_interval,
263 GNUNET_RECLAIM_ContinuationWithStatus cont,
264 void *cont_cls);
245 265
246/** 266/**
247 * Calls the record processor specified in #GNUNET_RECLAIM_get_attributes_start 267 * Calls the record processor specified in #GNUNET_RECLAIM_get_attributes_start