aboutsummaryrefslogtreecommitdiff
path: root/src/identity/test_identity.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2019-05-08 14:54:42 +0200
committerChristian Grothoff <christian@grothoff.org>2019-05-08 14:54:42 +0200
commit1b80ff9ee79b3fbe2028a8c22a01e45e9131cda2 (patch)
tree742185e47289bbed654eb641bf8f3d2409ee7976 /src/identity/test_identity.c
parentfba6afbd58e0b37b33850db4b1341dbf9392d1f3 (diff)
downloadgnunet-1b80ff9ee79b3fbe2028a8c22a01e45e9131cda2.tar.gz
gnunet-1b80ff9ee79b3fbe2028a8c22a01e45e9131cda2.zip
make generated ego key available in continuation when creating egos
Diffstat (limited to 'src/identity/test_identity.c')
-rw-r--r--src/identity/test_identity.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/identity/test_identity.c b/src/identity/test_identity.c
index cfd759050..163394801 100644
--- a/src/identity/test_identity.c
+++ b/src/identity/test_identity.c
@@ -253,12 +253,15 @@ success_rename_cont (void *cls,
253 * Called with events about created ego. 253 * Called with events about created ego.
254 * 254 *
255 * @param cls NULL 255 * @param cls NULL
256 * @param pk private key of the ego, or NULL on error
256 * @param emsg error message 257 * @param emsg error message
257 */ 258 */
258static void 259static void
259create_cb (void *cls, 260create_cb (void *cls,
261 const struct GNUNET_CRYPTO_EcdsaPrivateKey *pk,
260 const char *emsg) 262 const char *emsg)
261{ 263{
264 GNUNET_assert (NULL != pk);
262 GNUNET_assert (NULL == emsg); 265 GNUNET_assert (NULL == emsg);
263 op = GNUNET_IDENTITY_rename (h, 266 op = GNUNET_IDENTITY_rename (h,
264 "test-id", 267 "test-id",