diff options
Diffstat (limited to 'src/include/gnunet_reclaim_service.h')
-rw-r--r-- | src/include/gnunet_reclaim_service.h | 22 |
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 | */ |
118 | typedef void (*GNUNET_RECLAIM_AttributeResult) ( | 118 | typedef 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 | */ | ||
257 | struct GNUNET_RECLAIM_Operation * | ||
258 | GNUNET_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 |