diff options
Diffstat (limited to 'src/escrow/plugin_escrow_plaintext.c')
-rw-r--r-- | src/escrow/plugin_escrow_plaintext.c | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/escrow/plugin_escrow_plaintext.c b/src/escrow/plugin_escrow_plaintext.c index 623504a6b..8e2c2204b 100644 --- a/src/escrow/plugin_escrow_plaintext.c +++ b/src/escrow/plugin_escrow_plaintext.c | |||
@@ -121,6 +121,7 @@ start_cont (void *cls) | |||
121 | struct ESCROW_PlaintextPluginOperation *p_op; | 121 | struct ESCROW_PlaintextPluginOperation *p_op; |
122 | 122 | ||
123 | p_op = (struct ESCROW_PlaintextPluginOperation*)plugin_op_wrap->plugin_op; | 123 | p_op = (struct ESCROW_PlaintextPluginOperation*)plugin_op_wrap->plugin_op; |
124 | p_op->sched_task = NULL; | ||
124 | p_op->cont (p_op->anchor_wrap); | 125 | p_op->cont (p_op->anchor_wrap); |
125 | 126 | ||
126 | cleanup_plugin_operation (plugin_op_wrap); | 127 | cleanup_plugin_operation (plugin_op_wrap); |
@@ -203,6 +204,7 @@ verify_cont (void *cls) | |||
203 | struct ESCROW_PlaintextPluginOperation *p_op; | 204 | struct ESCROW_PlaintextPluginOperation *p_op; |
204 | 205 | ||
205 | p_op = (struct ESCROW_PlaintextPluginOperation*)plugin_op_wrap->plugin_op; | 206 | p_op = (struct ESCROW_PlaintextPluginOperation*)plugin_op_wrap->plugin_op; |
207 | p_op->sched_task = NULL; | ||
206 | p_op->cont (p_op->verify_wrap); | 208 | p_op->cont (p_op->verify_wrap); |
207 | 209 | ||
208 | cleanup_plugin_operation (plugin_op_wrap); | 210 | cleanup_plugin_operation (plugin_op_wrap); |
@@ -257,10 +259,17 @@ verify_plaintext_key_escrow (struct GNUNET_ESCROW_Handle *h, | |||
257 | p_op->sched_task = GNUNET_SCHEDULER_add_now (&verify_cont, plugin_op_wrap); | 259 | p_op->sched_task = GNUNET_SCHEDULER_add_now (&verify_cont, plugin_op_wrap); |
258 | return plugin_op_wrap; | 260 | return plugin_op_wrap; |
259 | } | 261 | } |
262 | if (GNUNET_ESCROW_KEY_PLAINTEXT != anchor->method) | ||
263 | { | ||
264 | w->verificationResult = GNUNET_ESCROW_INVALID; | ||
265 | w->emsg = _ ("This anchor was not created using plaintext escrow!\n"); | ||
266 | p_op->sched_task = GNUNET_SCHEDULER_add_now (&verify_cont, plugin_op_wrap); | ||
267 | return plugin_op_wrap; | ||
268 | } | ||
260 | if (0 != strcmp (ego->name, anchor->egoName)) | 269 | if (0 != strcmp (ego->name, anchor->egoName)) |
261 | { | 270 | { |
262 | w->verificationResult = GNUNET_ESCROW_INVALID; | 271 | w->verificationResult = GNUNET_ESCROW_INVALID; |
263 | w->emsg = _ ("This anchor was not created when putting ego that in escrow!\n"); | 272 | w->emsg = _ ("This anchor was not created when putting that ego in escrow!\n"); |
264 | p_op->sched_task = GNUNET_SCHEDULER_add_now (&verify_cont, plugin_op_wrap); | 273 | p_op->sched_task = GNUNET_SCHEDULER_add_now (&verify_cont, plugin_op_wrap); |
265 | return plugin_op_wrap; | 274 | return plugin_op_wrap; |
266 | } | 275 | } |
@@ -355,6 +364,7 @@ handle_restore_error (void *cls) | |||
355 | struct ESCROW_PlaintextPluginOperation *p_op; | 364 | struct ESCROW_PlaintextPluginOperation *p_op; |
356 | 365 | ||
357 | p_op = (struct ESCROW_PlaintextPluginOperation*)plugin_op_wrap->plugin_op; | 366 | p_op = (struct ESCROW_PlaintextPluginOperation*)plugin_op_wrap->plugin_op; |
367 | p_op->sched_task = NULL; | ||
358 | p_op->cont (p_op->ego_wrap); | 368 | p_op->cont (p_op->ego_wrap); |
359 | 369 | ||
360 | cleanup_plugin_operation (plugin_op_wrap); | 370 | cleanup_plugin_operation (plugin_op_wrap); |