diff options
author | jospaeth <spaethj@in.tum.de> | 2020-08-10 18:45:30 +0200 |
---|---|---|
committer | jospaeth <spaethj@in.tum.de> | 2020-08-10 18:45:30 +0200 |
commit | f2fb911d529db3787b15e39b8a41e081ea626e41 (patch) | |
tree | 606d866cc25a4b8b4bb6deead07bc6282df16b94 /src/escrow/escrow_api.c | |
parent | b2ebdaca4d0d3a4f1fac2f2f83cdedf4123a43b8 (diff) | |
download | gnunet-f2fb911d529db3787b15e39b8a41e081ea626e41.tar.gz gnunet-f2fb911d529db3787b15e39b8a41e081ea626e41.zip |
continue start_gns_escrow, add user secret string
Diffstat (limited to 'src/escrow/escrow_api.c')
-rw-r--r-- | src/escrow/escrow_api.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/escrow/escrow_api.c b/src/escrow/escrow_api.c index acf17c500..26a11ca18 100644 --- a/src/escrow/escrow_api.c +++ b/src/escrow/escrow_api.c | |||
@@ -231,6 +231,7 @@ handle_start_escrow_result (void *cls) | |||
231 | * | 231 | * |
232 | * @param h the handle for the escrow component | 232 | * @param h the handle for the escrow component |
233 | * @param ego the identity ego to put in escrow | 233 | * @param ego the identity ego to put in escrow |
234 | * @param userSecret the user secret (e.g. for derivation of escrow identities) | ||
234 | * @param method the escrow method to use | 235 | * @param method the escrow method to use |
235 | * @param cb function to call with the escrow anchor on completion | 236 | * @param cb function to call with the escrow anchor on completion |
236 | * @param cb_cls closure for @a cb | 237 | * @param cb_cls closure for @a cb |
@@ -240,6 +241,7 @@ handle_start_escrow_result (void *cls) | |||
240 | struct GNUNET_ESCROW_Operation * | 241 | struct GNUNET_ESCROW_Operation * |
241 | GNUNET_ESCROW_put (struct GNUNET_ESCROW_Handle *h, | 242 | GNUNET_ESCROW_put (struct GNUNET_ESCROW_Handle *h, |
242 | struct GNUNET_IDENTITY_Ego *ego, | 243 | struct GNUNET_IDENTITY_Ego *ego, |
244 | char *userSecret, | ||
243 | enum GNUNET_ESCROW_Key_Escrow_Method method, | 245 | enum GNUNET_ESCROW_Key_Escrow_Method method, |
244 | GNUNET_ESCROW_AnchorContinuation cb, | 246 | GNUNET_ESCROW_AnchorContinuation cb, |
245 | void *cb_cls) | 247 | void *cb_cls) |
@@ -256,7 +258,11 @@ GNUNET_ESCROW_put (struct GNUNET_ESCROW_Handle *h, | |||
256 | GNUNET_CONTAINER_DLL_insert_tail (h->op_head, h->op_tail, op); | 258 | GNUNET_CONTAINER_DLL_insert_tail (h->op_head, h->op_tail, op); |
257 | 259 | ||
258 | api = init_plugin (h, method); | 260 | api = init_plugin (h, method); |
259 | op->plugin_op_wrap = api->start_key_escrow (h, ego, &handle_start_escrow_result, op->id); | 261 | op->plugin_op_wrap = api->start_key_escrow (h, |
262 | ego, | ||
263 | userSecret, | ||
264 | &handle_start_escrow_result, | ||
265 | op->id); | ||
260 | 266 | ||
261 | return op; | 267 | return op; |
262 | } | 268 | } |