diff options
author | Christian Grothoff <christian@grothoff.org> | 2019-05-08 14:54:42 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2019-05-08 14:54:42 +0200 |
commit | 1b80ff9ee79b3fbe2028a8c22a01e45e9131cda2 (patch) | |
tree | 742185e47289bbed654eb641bf8f3d2409ee7976 /src/include | |
parent | fba6afbd58e0b37b33850db4b1341dbf9392d1f3 (diff) | |
download | gnunet-1b80ff9ee79b3fbe2028a8c22a01e45e9131cda2.tar.gz gnunet-1b80ff9ee79b3fbe2028a8c22a01e45e9131cda2.zip |
make generated ego key available in continuation when creating egos
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/gnunet_identity_service.h | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/src/include/gnunet_identity_service.h b/src/include/gnunet_identity_service.h index 086f924d6..043a71770 100644 --- a/src/include/gnunet_identity_service.h +++ b/src/include/gnunet_identity_service.h | |||
@@ -215,6 +215,20 @@ GNUNET_IDENTITY_disconnect (struct GNUNET_IDENTITY_Handle *h); | |||
215 | 215 | ||
216 | 216 | ||
217 | /** | 217 | /** |
218 | * Function called once the requested operation has | ||
219 | * been completed. | ||
220 | * | ||
221 | * @param cls closure | ||
222 | * @param pk private key, NULL on error | ||
223 | * @param emsg error message, NULL on success | ||
224 | */ | ||
225 | typedef void | ||
226 | (*GNUNET_IDENTITY_CreateContinuation)(void *cls, | ||
227 | const struct GNUNET_CRYPTO_EcdsaPrivateKey *pk, | ||
228 | const char *emsg); | ||
229 | |||
230 | |||
231 | /** | ||
218 | * Create a new ego with the given name. | 232 | * Create a new ego with the given name. |
219 | * | 233 | * |
220 | * @param id identity service to use | 234 | * @param id identity service to use |
@@ -226,7 +240,7 @@ GNUNET_IDENTITY_disconnect (struct GNUNET_IDENTITY_Handle *h); | |||
226 | struct GNUNET_IDENTITY_Operation * | 240 | struct GNUNET_IDENTITY_Operation * |
227 | GNUNET_IDENTITY_create (struct GNUNET_IDENTITY_Handle *id, | 241 | GNUNET_IDENTITY_create (struct GNUNET_IDENTITY_Handle *id, |
228 | const char *name, | 242 | const char *name, |
229 | GNUNET_IDENTITY_Continuation cont, | 243 | GNUNET_IDENTITY_CreateContinuation cont, |
230 | void *cont_cls); | 244 | void *cont_cls); |
231 | 245 | ||
232 | 246 | ||