diff options
author | jospaeth <spaethj@in.tum.de> | 2020-08-05 13:15:25 +0200 |
---|---|---|
committer | jospaeth <spaethj@in.tum.de> | 2020-08-05 13:15:25 +0200 |
commit | e35aa4c6b22ae0ae81a23e973eda3655f29e29b5 (patch) | |
tree | e826aaf4e9ad0c1706778c6bbe6e56c0eb957dae /src/escrow/escrow_api.c | |
parent | 7d0910b473aff309d0ee9852d44f611cf897dbda (diff) | |
download | gnunet-e35aa4c6b22ae0ae81a23e973eda3655f29e29b5.tar.gz gnunet-e35aa4c6b22ae0ae81a23e973eda3655f29e29b5.zip |
add a API method for getting the escrow status
not yet working!
Diffstat (limited to 'src/escrow/escrow_api.c')
-rw-r--r-- | src/escrow/escrow_api.c | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/src/escrow/escrow_api.c b/src/escrow/escrow_api.c index 5b57f9244..446833758 100644 --- a/src/escrow/escrow_api.c +++ b/src/escrow/escrow_api.c | |||
@@ -350,6 +350,31 @@ GNUNET_ESCROW_verify (struct GNUNET_ESCROW_Handle *h, | |||
350 | 350 | ||
351 | 351 | ||
352 | /** | 352 | /** |
353 | * Get the status of an escrow, i.e. | ||
354 | * -> when the last escrow was | ||
355 | * -> when the next escrow is recommended | ||
356 | * | ||
357 | * @param h the handle for the escrow component | ||
358 | * @param ego the identity ego of which the escrow status has to be determined | ||
359 | * @param escrowAnchor the escrow anchor returned by the GNUNET_ESCROW_put method | ||
360 | * @param method the escrow method to use | ||
361 | * | ||
362 | * @return the status of the escrow packed into a GNUNET_ESCROW_Status struct | ||
363 | */ | ||
364 | struct GNUNET_ESCROW_Status * | ||
365 | GNUNET_ESCROW_get_status (struct GNUNET_ESCROW_Handle *h, | ||
366 | const struct GNUNET_IDENTITY_Ego *ego, | ||
367 | struct GNUNET_ESCROW_Anchor *escrowAnchor, | ||
368 | enum GNUNET_ESCROW_Key_Escrow_Method method) | ||
369 | { | ||
370 | const struct GNUNET_ESCROW_KeyPluginFunctions *api; | ||
371 | |||
372 | api = init_plugin (h, method); | ||
373 | return api->get_status (h, ego, escrowAnchor); | ||
374 | } | ||
375 | |||
376 | |||
377 | /** | ||
353 | * Deserialize an escrow anchor string (e.g. from command line) into a | 378 | * Deserialize an escrow anchor string (e.g. from command line) into a |
354 | * GNUNET_ESCROW_Anchor struct | 379 | * GNUNET_ESCROW_Anchor struct |
355 | * | 380 | * |