aboutsummaryrefslogtreecommitdiff
path: root/src/escrow/plugin_escrow_plaintext.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/escrow/plugin_escrow_plaintext.c')
-rw-r--r--src/escrow/plugin_escrow_plaintext.c8
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;