diff options
author | Bart Polot <bart@net.in.tum.de> | 2013-06-26 00:18:51 +0000 |
---|---|---|
committer | Bart Polot <bart@net.in.tum.de> | 2013-06-26 00:18:51 +0000 |
commit | 05861a8004f061831ee419c4ccc093faa7ad0fe5 (patch) | |
tree | d3a269725ce6a07f219507c012ae0c30de0e067e /src/mesh/gnunet-service-mesh-new.c | |
parent | bf37c41f92cf8506e0d726b23262f12e27a6c7c4 (diff) | |
download | gnunet-05861a8004f061831ee419c4ccc093faa7ad0fe5.tar.gz gnunet-05861a8004f061831ee419c4ccc093faa7ad0fe5.zip |
- separate key generation from path managemente
Diffstat (limited to 'src/mesh/gnunet-service-mesh-new.c')
-rw-r--r-- | src/mesh/gnunet-service-mesh-new.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/src/mesh/gnunet-service-mesh-new.c b/src/mesh/gnunet-service-mesh-new.c index 5a5db8698..3be45aec8 100644 --- a/src/mesh/gnunet-service-mesh-new.c +++ b/src/mesh/gnunet-service-mesh-new.c | |||
@@ -4974,8 +4974,6 @@ key_generation_cb (void *cls, | |||
4974 | const char *emsg) | 4974 | const char *emsg) |
4975 | { | 4975 | { |
4976 | const struct GNUNET_CONFIGURATION_Handle *c = cls; | 4976 | const struct GNUNET_CONFIGURATION_Handle *c = cls; |
4977 | struct MeshPeerInfo *peer; | ||
4978 | struct MeshPeerPath *p; | ||
4979 | 4977 | ||
4980 | keygen = NULL; | 4978 | keygen = NULL; |
4981 | if (NULL == pk) | 4979 | if (NULL == pk) |
@@ -5017,13 +5015,6 @@ key_generation_cb (void *cls, | |||
5017 | 5015 | ||
5018 | announce_id_task = GNUNET_SCHEDULER_add_now (&announce_id, cls); | 5016 | announce_id_task = GNUNET_SCHEDULER_add_now (&announce_id, cls); |
5019 | 5017 | ||
5020 | /* Create a peer_info for the local peer */ | ||
5021 | peer = peer_get (&my_full_id); | ||
5022 | p = path_new (1); | ||
5023 | p->peers[0] = myid; | ||
5024 | GNUNET_PEER_change_rc (myid, 1); | ||
5025 | peer_info_add_path (peer, p, GNUNET_YES); | ||
5026 | |||
5027 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Mesh service running\n"); | 5018 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Mesh service running\n"); |
5028 | } | 5019 | } |
5029 | 5020 | ||