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/identity/plugin_rest_identity.c | |
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/identity/plugin_rest_identity.c')
-rw-r--r-- | src/identity/plugin_rest_identity.c | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/src/identity/plugin_rest_identity.c b/src/identity/plugin_rest_identity.c index 89f590d3e..e6537070a 100644 --- a/src/identity/plugin_rest_identity.c +++ b/src/identity/plugin_rest_identity.c | |||
@@ -642,6 +642,26 @@ do_finished (void *cls, const char *emsg) | |||
642 | 642 | ||
643 | 643 | ||
644 | /** | 644 | /** |
645 | * Processing finished, when creating an ego. | ||
646 | * | ||
647 | * @param cls request handle | ||
648 | * @param private key of the ego, or NULL on error | ||
649 | * @param emsg error message | ||
650 | */ | ||
651 | static void | ||
652 | do_finished_create (void *cls, | ||
653 | const struct GNUNET_CRYPTO_EcdsaPrivateKey *pk, | ||
654 | const char *emsg) | ||
655 | { | ||
656 | struct RequestHandle *handle = cls; | ||
657 | |||
658 | (void) pk; | ||
659 | do_finished (handle, | ||
660 | emsg); | ||
661 | } | ||
662 | |||
663 | |||
664 | /** | ||
645 | * Processing edit ego with EgoEntry ego_entry | 665 | * Processing edit ego with EgoEntry ego_entry |
646 | * | 666 | * |
647 | * @param handle the struct RequestHandle | 667 | * @param handle the struct RequestHandle |
@@ -1014,7 +1034,7 @@ ego_create (struct GNUNET_REST_RequestHandle *con_handle, | |||
1014 | json_decref (data_js); | 1034 | json_decref (data_js); |
1015 | handle->response_code = MHD_HTTP_CREATED; | 1035 | handle->response_code = MHD_HTTP_CREATED; |
1016 | handle->op = GNUNET_IDENTITY_create (handle->identity_handle, handle->name, | 1036 | handle->op = GNUNET_IDENTITY_create (handle->identity_handle, handle->name, |
1017 | &do_finished, handle); | 1037 | &do_finished_create, handle); |
1018 | } | 1038 | } |
1019 | 1039 | ||
1020 | /** | 1040 | /** |