aboutsummaryrefslogtreecommitdiff
path: root/src/escrow/plugin_escrow_plaintext.c
diff options
context:
space:
mode:
authorjospaeth <spaethj@in.tum.de>2020-08-08 17:11:05 +0200
committerjospaeth <spaethj@in.tum.de>2020-08-08 17:11:05 +0200
commit7dc7d65cd35ac00c7495d81da4456b73c1928b11 (patch)
treea8d6ebd7562abe31827c60442399d9e83d67da1a /src/escrow/plugin_escrow_plaintext.c
parent41cfd97254ab205c8405f21900d26a6c2ab88127 (diff)
downloadgnunet-7dc7d65cd35ac00c7495d81da4456b73c1928b11.tar.gz
gnunet-7dc7d65cd35ac00c7495d81da4456b73c1928b11.zip
begin implementation of the GNS escrow
Diffstat (limited to 'src/escrow/plugin_escrow_plaintext.c')
-rw-r--r--src/escrow/plugin_escrow_plaintext.c15
1 files changed, 6 insertions, 9 deletions
diff --git a/src/escrow/plugin_escrow_plaintext.c b/src/escrow/plugin_escrow_plaintext.c
index f4bd26f19..7de922104 100644
--- a/src/escrow/plugin_escrow_plaintext.c
+++ b/src/escrow/plugin_escrow_plaintext.c
@@ -357,12 +357,11 @@ handle_restore_error (void *cls)
357struct ESCROW_PluginOperationWrapper * 357struct ESCROW_PluginOperationWrapper *
358restore_plaintext_key_escrow (struct GNUNET_ESCROW_Handle *h, 358restore_plaintext_key_escrow (struct GNUNET_ESCROW_Handle *h,
359 struct GNUNET_ESCROW_Anchor *escrowAnchor, 359 struct GNUNET_ESCROW_Anchor *escrowAnchor,
360 char *egoName, 360 const char *egoName,
361 ESCROW_Plugin_Continuation cb, 361 ESCROW_Plugin_Continuation cb,
362 uint32_t op_id) 362 uint32_t op_id)
363{ 363{
364 struct GNUNET_CRYPTO_EcdsaPrivateKey pk; 364 struct GNUNET_CRYPTO_EcdsaPrivateKey pk;
365 struct GNUNET_IDENTITY_Operation *id_op;
366 struct ESCROW_PluginOperationWrapper *plugin_op_wrap; 365 struct ESCROW_PluginOperationWrapper *plugin_op_wrap;
367 struct ESCROW_PlaintextPluginOperation *p_op; 366 struct ESCROW_PlaintextPluginOperation *p_op;
368 struct ESCROW_Plugin_EgoContinuationWrapper *w; 367 struct ESCROW_Plugin_EgoContinuationWrapper *w;
@@ -403,13 +402,11 @@ restore_plaintext_key_escrow (struct GNUNET_ESCROW_Handle *h,
403 return plugin_op_wrap; 402 return plugin_op_wrap;
404 } 403 }
405 404
406 id_op = GNUNET_IDENTITY_create (identity_handle, 405 p_op->id_op = GNUNET_IDENTITY_create (identity_handle,
407 egoName, 406 egoName,
408 &pk, 407 &pk,
409 &create_finished, 408 &create_finished,
410 p_op); 409 p_op);
411
412 p_op->id_op = id_op;
413 410
414 return plugin_op_wrap; 411 return plugin_op_wrap;
415} 412}