diff options
author | jospaeth <spaethj@in.tum.de> | 2020-08-08 21:29:12 +0200 |
---|---|---|
committer | jospaeth <spaethj@in.tum.de> | 2020-08-08 21:29:12 +0200 |
commit | a2280bff1c996cfe70326602c0204f8637c2c20b (patch) | |
tree | 084bfa8c580b1470ffb0b43dfb6c3b895bd21fe8 /src/escrow/plugin_escrow_gns.c | |
parent | 7dc7d65cd35ac00c7495d81da4456b73c1928b11 (diff) | |
download | gnunet-a2280bff1c996cfe70326602c0204f8637c2c20b.tar.gz gnunet-a2280bff1c996cfe70326602c0204f8637c2c20b.zip |
store escrow status to config
Diffstat (limited to 'src/escrow/plugin_escrow_gns.c')
-rw-r--r-- | src/escrow/plugin_escrow_gns.c | 16 |
1 files changed, 3 insertions, 13 deletions
diff --git a/src/escrow/plugin_escrow_gns.c b/src/escrow/plugin_escrow_gns.c index 8a3d4e033..8c2ac0de4 100644 --- a/src/escrow/plugin_escrow_gns.c +++ b/src/escrow/plugin_escrow_gns.c | |||
@@ -432,7 +432,7 @@ create_escrow_identities (struct ESCROW_GnsPluginOperation *p_op, | |||
432 | */ | 432 | */ |
433 | struct ESCROW_PluginOperationWrapper * | 433 | struct ESCROW_PluginOperationWrapper * |
434 | start_gns_key_escrow (struct GNUNET_ESCROW_Handle *h, | 434 | start_gns_key_escrow (struct GNUNET_ESCROW_Handle *h, |
435 | const struct GNUNET_IDENTITY_Ego *ego, | 435 | struct GNUNET_IDENTITY_Ego *ego, |
436 | GNUNET_SCHEDULER_TaskCallback cb, | 436 | GNUNET_SCHEDULER_TaskCallback cb, |
437 | uint32_t op_id) | 437 | uint32_t op_id) |
438 | { | 438 | { |
@@ -605,24 +605,14 @@ restore_gns_key_escrow (struct GNUNET_ESCROW_Handle *h, | |||
605 | * | 605 | * |
606 | * @param h the handle for the escrow component | 606 | * @param h the handle for the escrow component |
607 | * @param ego the identity ego of which the status has to be obtained | 607 | * @param ego the identity ego of which the status has to be obtained |
608 | * @param escrowAnchor the escrow anchor needed to restore the key | ||
609 | * | 608 | * |
610 | * @return the status of the escrow packed into a GNUNET_ESCROW_Status struct | 609 | * @return the status of the escrow packed into a GNUNET_ESCROW_Status struct |
611 | */ | 610 | */ |
612 | struct GNUNET_ESCROW_Status * | 611 | struct GNUNET_ESCROW_Status * |
613 | gns_get_status (struct GNUNET_ESCROW_Handle *h, | 612 | gns_get_status (struct GNUNET_ESCROW_Handle *h, |
614 | const struct GNUNET_IDENTITY_Ego *ego, | 613 | struct GNUNET_IDENTITY_Ego *ego) |
615 | struct GNUNET_ESCROW_Anchor *escrowAnchor) | ||
616 | { | 614 | { |
617 | struct GNUNET_ESCROW_Status *status; | 615 | return ESCROW_get_escrow_status (h, ego); |
618 | |||
619 | status = GNUNET_new (struct GNUNET_ESCROW_Status); | ||
620 | // TODO: get the correct time values | ||
621 | status->last_escrow_time = GNUNET_TIME_absolute_get (); | ||
622 | status->next_recommended_escrow_time = GNUNET_TIME_absolute_get (); | ||
623 | // END TODO | ||
624 | |||
625 | return status; | ||
626 | } | 616 | } |
627 | 617 | ||
628 | 618 | ||