diff options
Diffstat (limited to 'src/transport/transport_api_cmd_connecting_peers.c')
-rw-r--r-- | src/transport/transport_api_cmd_connecting_peers.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/transport/transport_api_cmd_connecting_peers.c b/src/transport/transport_api_cmd_connecting_peers.c index 09ca9e54c..39c7db450 100644 --- a/src/transport/transport_api_cmd_connecting_peers.c +++ b/src/transport/transport_api_cmd_connecting_peers.c | |||
@@ -91,7 +91,7 @@ connect_peers_run (void *cls, | |||
91 | char *hello; | 91 | char *hello; |
92 | // size_t *hello_size; | 92 | // size_t *hello_size; |
93 | enum GNUNET_NetworkType nt = 0; | 93 | enum GNUNET_NetworkType nt = 0; |
94 | char *peer_id; | 94 | // char *peer_id; |
95 | struct GNUNET_PeerIdentity *id; | 95 | struct GNUNET_PeerIdentity *id; |
96 | struct GNUNET_PeerIdentity *other = GNUNET_new (struct GNUNET_PeerIdentity); | 96 | struct GNUNET_PeerIdentity *other = GNUNET_new (struct GNUNET_PeerIdentity); |
97 | uint32_t num; | 97 | uint32_t num; |
@@ -122,12 +122,12 @@ connect_peers_run (void *cls, | |||
122 | if (2 == num) | 122 | if (2 == num) |
123 | { | 123 | { |
124 | addr = "tcp-192.168.15.2:60002"; | 124 | addr = "tcp-192.168.15.2:60002"; |
125 | peer_id = "F2F3X9G1YNCTXKK7A4J6M4ZM4BBSKC9DEXZVHCWQ475M0C7PNWCG"; | 125 | // peer_id = "F2F3X9G1YNCTXKK7A4J6M4ZM4BBSKC9DEXZVHCWQ475M0C7PNWCG"; |
126 | } | 126 | } |
127 | else | 127 | else |
128 | { | 128 | { |
129 | addr = "tcp-192.168.15.1:60002"; | 129 | addr = "tcp-192.168.15.1:60002"; |
130 | peer_id = "4TTC9WBSVP9RJT6DVEZ7E0TDW7TQXC11NR1EMR2F8ARS87WZ2730"; | 130 | // peer_id = "4TTC9WBSVP9RJT6DVEZ7E0TDW7TQXC11NR1EMR2F8ARS87WZ2730"; |
131 | } | 131 | } |
132 | 132 | ||
133 | priv_key = GNUNET_TESTING_hostkey_get (tl_system, | 133 | priv_key = GNUNET_TESTING_hostkey_get (tl_system, |
@@ -137,16 +137,16 @@ connect_peers_run (void *cls, | |||
137 | GNUNET_CRYPTO_eddsa_key_get_public (priv_key, | 137 | GNUNET_CRYPTO_eddsa_key_get_public (priv_key, |
138 | pub_key); | 138 | pub_key); |
139 | 139 | ||
140 | GNUNET_CRYPTO_eddsa_public_key_from_string (peer_id, | 140 | /*GNUNET_CRYPTO_eddsa_public_key_from_string (peer_id, |
141 | strlen (peer_id), | 141 | strlen (peer_id), |
142 | &peer->public_key); | 142 | &peer->public_key);*/ |
143 | 143 | ||
144 | peer->public_key = *pub_key; | 144 | peer->public_key = *pub_key; |
145 | 145 | ||
146 | LOG (GNUNET_ERROR_TYPE_ERROR, | 146 | LOG (GNUNET_ERROR_TYPE_ERROR, |
147 | "\nnum: %u\n peer_id: %s\n pub_key %s\n", | 147 | "num: %u id: %s pub_key %s\n", |
148 | num, | 148 | num, |
149 | peer_id, | 149 | GNUNET_i2s_full (id), |
150 | GNUNET_CRYPTO_eddsa_public_key_to_string (pub_key)); | 150 | GNUNET_CRYPTO_eddsa_public_key_to_string (pub_key)); |
151 | 151 | ||
152 | cps->id = peer; | 152 | cps->id = peer; |