From 478fe22c01a4873e528422abfb4a7f390158e40e Mon Sep 17 00:00:00 2001 From: Bart Polot Date: Fri, 6 Dec 2013 13:00:54 +0000 Subject: [PATCH] -wip --- src/mesh/gnunet-mesh.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/mesh/gnunet-mesh.c b/src/mesh/gnunet-mesh.c index bef8b75ac..6faee5cb0 100644 --- a/src/mesh/gnunet-mesh.c +++ b/src/mesh/gnunet-mesh.c @@ -106,7 +106,20 @@ shutdown_task (void *cls, static void create_channel (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) { + struct GNUNET_PeerIdentity pid; + if (GNUNET_OK != + GNUNET_CRYPTO_eddsa_public_key_from_string (target_id, + strlen (target_id), + &pid.public_key)) + { + FPRINTF (stderr, + _("Invalid target `%s'\n"), + target_id); + GNUNET_SCHEDULER_shutdown(); + return; + } +// GNUNET_MESH_channel_create () } -- 2.25.1