diff options
Diffstat (limited to 'src/escrow/plugin_escrow_anastasis.c')
-rw-r--r-- | src/escrow/plugin_escrow_anastasis.c | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/src/escrow/plugin_escrow_anastasis.c b/src/escrow/plugin_escrow_anastasis.c index a66410099..3d3abdf29 100644 --- a/src/escrow/plugin_escrow_anastasis.c +++ b/src/escrow/plugin_escrow_anastasis.c | |||
@@ -48,18 +48,21 @@ struct ESCROW_PluginHandle ph; | |||
48 | * @param h the handle for the escrow component | 48 | * @param h the handle for the escrow component |
49 | * @param ego the identity ego containing the private key | 49 | * @param ego the identity ego containing the private key |
50 | * @param cb the function called upon completion | 50 | * @param cb the function called upon completion |
51 | * @param op_id unique ID of the respective ESCROW_Operation | ||
51 | * | 52 | * |
52 | * @return plugin operation wrapper | 53 | * @return plugin operation wrapper |
53 | */ | 54 | */ |
54 | struct ESCROW_PluginOperationWrapper * | 55 | struct ESCROW_PluginOperationWrapper * |
55 | start_anastasis_key_escrow (struct GNUNET_ESCROW_Handle *h, | 56 | start_anastasis_key_escrow (struct GNUNET_ESCROW_Handle *h, |
56 | const struct GNUNET_IDENTITY_Ego *ego, | 57 | const struct GNUNET_IDENTITY_Ego *ego, |
57 | GNUNET_SCHEDULER_TaskCallback cb) | 58 | GNUNET_SCHEDULER_TaskCallback cb, |
59 | uint32_t op_id) | ||
58 | { | 60 | { |
59 | struct ESCROW_Plugin_AnchorContinuationWrapper *w; | 61 | struct ESCROW_Plugin_AnchorContinuationWrapper *w; |
60 | 62 | ||
61 | w = GNUNET_new (struct ESCROW_Plugin_AnchorContinuationWrapper); | 63 | w = GNUNET_new (struct ESCROW_Plugin_AnchorContinuationWrapper); |
62 | w->h = h; | 64 | w->h = h; |
65 | w->op_id = op_id; | ||
63 | 66 | ||
64 | // TODO: implement | 67 | // TODO: implement |
65 | w->escrowAnchor = NULL; | 68 | w->escrowAnchor = NULL; |
@@ -75,6 +78,7 @@ start_anastasis_key_escrow (struct GNUNET_ESCROW_Handle *h, | |||
75 | * @param ego the identity ego containing the private key | 78 | * @param ego the identity ego containing the private key |
76 | * @param escrowAnchor the escrow anchor needed to restore the key | 79 | * @param escrowAnchor the escrow anchor needed to restore the key |
77 | * @param cb the function called upon completion | 80 | * @param cb the function called upon completion |
81 | * @param op_id unique ID of the respective ESCROW_Operation | ||
78 | * | 82 | * |
79 | * @return plugin operation wrapper | 83 | * @return plugin operation wrapper |
80 | */ | 84 | */ |
@@ -82,12 +86,14 @@ struct ESCROW_PluginOperationWrapper * | |||
82 | verify_anastasis_key_escrow (struct GNUNET_ESCROW_Handle *h, | 86 | verify_anastasis_key_escrow (struct GNUNET_ESCROW_Handle *h, |
83 | const struct GNUNET_IDENTITY_Ego *ego, | 87 | const struct GNUNET_IDENTITY_Ego *ego, |
84 | struct GNUNET_ESCROW_Anchor *escrowAnchor, | 88 | struct GNUNET_ESCROW_Anchor *escrowAnchor, |
85 | GNUNET_SCHEDULER_TaskCallback cb) | 89 | GNUNET_SCHEDULER_TaskCallback cb, |
90 | uint32_t op_id) | ||
86 | { | 91 | { |
87 | struct ESCROW_Plugin_VerifyContinuationWrapper *w; | 92 | struct ESCROW_Plugin_VerifyContinuationWrapper *w; |
88 | 93 | ||
89 | w = GNUNET_new (struct ESCROW_Plugin_VerifyContinuationWrapper); | 94 | w = GNUNET_new (struct ESCROW_Plugin_VerifyContinuationWrapper); |
90 | w->h = h; | 95 | w->h = h; |
96 | w->op_id = op_id; | ||
91 | 97 | ||
92 | // TODO: implement | 98 | // TODO: implement |
93 | w->verificationResult = GNUNET_ESCROW_INVALID; | 99 | w->verificationResult = GNUNET_ESCROW_INVALID; |
@@ -103,6 +109,7 @@ verify_anastasis_key_escrow (struct GNUNET_ESCROW_Handle *h, | |||
103 | * @param escrowAnchor the escrow anchor needed to restore the key | 109 | * @param escrowAnchor the escrow anchor needed to restore the key |
104 | * @param egoName the name of the ego to restore | 110 | * @param egoName the name of the ego to restore |
105 | * @param cb the function called upon completion | 111 | * @param cb the function called upon completion |
112 | * @param op_id unique ID of the respective ESCROW_Operation | ||
106 | * | 113 | * |
107 | * @return plugin operation wrapper | 114 | * @return plugin operation wrapper |
108 | */ | 115 | */ |
@@ -110,12 +117,14 @@ struct ESCROW_PluginOperationWrapper * | |||
110 | restore_anastasis_key_escrow (struct GNUNET_ESCROW_Handle *h, | 117 | restore_anastasis_key_escrow (struct GNUNET_ESCROW_Handle *h, |
111 | struct GNUNET_ESCROW_Anchor *escrowAnchor, | 118 | struct GNUNET_ESCROW_Anchor *escrowAnchor, |
112 | char *egoName, | 119 | char *egoName, |
113 | GNUNET_SCHEDULER_TaskCallback cb) | 120 | GNUNET_SCHEDULER_TaskCallback cb, |
121 | uint32_t op_id) | ||
114 | { | 122 | { |
115 | struct ESCROW_Plugin_EgoContinuationWrapper *w; | 123 | struct ESCROW_Plugin_EgoContinuationWrapper *w; |
116 | 124 | ||
117 | w = GNUNET_new (struct ESCROW_Plugin_EgoContinuationWrapper); | 125 | w = GNUNET_new (struct ESCROW_Plugin_EgoContinuationWrapper); |
118 | w->h = h; | 126 | w->h = h; |
127 | w->op_id = op_id; | ||
119 | 128 | ||
120 | // TODO: implement | 129 | // TODO: implement |
121 | w->ego = NULL; | 130 | w->ego = NULL; |