diff options
author | jospaeth <spaethj@in.tum.de> | 2020-09-04 21:08:25 +0200 |
---|---|---|
committer | jospaeth <spaethj@in.tum.de> | 2020-09-04 21:08:25 +0200 |
commit | a889768a2ffaa033ae36e6fc26d78203cfd84569 (patch) | |
tree | 38da3a3c53296da2b1455dd2ed42523f1945ac5f /src/escrow/plugin_escrow_plaintext.c | |
parent | 4456a5db60bea8a878f3fe822aa388c0d20c755a (diff) | |
download | gnunet-a889768a2ffaa033ae36e6fc26d78203cfd84569.tar.gz gnunet-a889768a2ffaa033ae36e6fc26d78203cfd84569.zip |
fix implementation of escrow STATUS
Diffstat (limited to 'src/escrow/plugin_escrow_plaintext.c')
-rw-r--r-- | src/escrow/plugin_escrow_plaintext.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/escrow/plugin_escrow_plaintext.c b/src/escrow/plugin_escrow_plaintext.c index 36c275a6b..41523a906 100644 --- a/src/escrow/plugin_escrow_plaintext.c +++ b/src/escrow/plugin_escrow_plaintext.c | |||
@@ -189,8 +189,8 @@ start_plaintext_key_escrow (struct GNUNET_ESCROW_Handle *h, | |||
189 | 189 | ||
190 | w->anchor = anchor; | 190 | w->anchor = anchor; |
191 | 191 | ||
192 | /* set the last escrow time */ | 192 | /* update escrow status, i.e. set the last escrow method */ |
193 | ESCROW_update_escrow_status (h, ego, "plaintext"); | 193 | ESCROW_update_escrow_status_put (h, ego, "plaintext"); |
194 | 194 | ||
195 | p_op->sched_task = GNUNET_SCHEDULER_add_now (&start_cont, plugin_op_wrap); | 195 | p_op->sched_task = GNUNET_SCHEDULER_add_now (&start_cont, plugin_op_wrap); |
196 | return plugin_op_wrap; | 196 | return plugin_op_wrap; |
@@ -280,6 +280,10 @@ verify_plaintext_key_escrow (struct GNUNET_ESCROW_Handle *h, | |||
280 | anchor->size) == 0 ? | 280 | anchor->size) == 0 ? |
281 | GNUNET_ESCROW_VALID : GNUNET_ESCROW_INVALID; | 281 | GNUNET_ESCROW_VALID : GNUNET_ESCROW_INVALID; |
282 | 282 | ||
283 | /* update the escrow status if valid */ | ||
284 | if (GNUNET_ESCROW_VALID == verificationResult) | ||
285 | ESCROW_update_escrow_status_verify (h, ego, "plaintext"); | ||
286 | |||
283 | w->verificationResult = verificationResult; | 287 | w->verificationResult = verificationResult; |
284 | p_op->sched_task = GNUNET_SCHEDULER_add_now (&verify_cont, plugin_op_wrap); | 288 | p_op->sched_task = GNUNET_SCHEDULER_add_now (&verify_cont, plugin_op_wrap); |
285 | return plugin_op_wrap; | 289 | return plugin_op_wrap; |