diff options
author | Bart Polot <bart@net.in.tum.de> | 2013-12-06 13:00:54 +0000 |
---|---|---|
committer | Bart Polot <bart@net.in.tum.de> | 2013-12-06 13:00:54 +0000 |
commit | 478fe22c01a4873e528422abfb4a7f390158e40e (patch) | |
tree | e536f681a3475ca8b69ec9e3a6b4d45a8e4c128b /src | |
parent | ebf035785a6d3616d2b430dc197934e4bb935299 (diff) | |
download | gnunet-478fe22c01a4873e528422abfb4a7f390158e40e.tar.gz gnunet-478fe22c01a4873e528422abfb4a7f390158e40e.zip |
-wip
Diffstat (limited to 'src')
-rw-r--r-- | src/mesh/gnunet-mesh.c | 13 |
1 files changed, 13 insertions, 0 deletions
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, | |||
106 | static void | 106 | static void |
107 | create_channel (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | 107 | create_channel (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) |
108 | { | 108 | { |
109 | struct GNUNET_PeerIdentity pid; | ||
109 | 110 | ||
111 | if (GNUNET_OK != | ||
112 | GNUNET_CRYPTO_eddsa_public_key_from_string (target_id, | ||
113 | strlen (target_id), | ||
114 | &pid.public_key)) | ||
115 | { | ||
116 | FPRINTF (stderr, | ||
117 | _("Invalid target `%s'\n"), | ||
118 | target_id); | ||
119 | GNUNET_SCHEDULER_shutdown(); | ||
120 | return; | ||
121 | } | ||
122 | // GNUNET_MESH_channel_create () | ||
110 | } | 123 | } |
111 | 124 | ||
112 | 125 | ||