diff options
-rw-r--r-- | core/DHT.c | 1 | ||||
-rw-r--r-- | core/Messenger.c | 1 | ||||
-rw-r--r-- | other/DHT_bootstrap.c | 1 | ||||
-rw-r--r-- | other/bootstrap_serverdaemon/DHT_bootstrap_daemon.c | 1 | ||||
-rw-r--r-- | testing/DHT_test.c | 1 |
5 files changed, 1 insertions, 4 deletions
@@ -1169,6 +1169,7 @@ DHT *new_DHT(Net_Crypto *c) | |||
1169 | networking_registerhandler(c->lossless_udp->net, NET_PACKET_PING_RESPONSE, &handle_ping_response, temp); | 1169 | networking_registerhandler(c->lossless_udp->net, NET_PACKET_PING_RESPONSE, &handle_ping_response, temp); |
1170 | networking_registerhandler(c->lossless_udp->net, NET_PACKET_GET_NODES, &handle_getnodes, temp); | 1170 | networking_registerhandler(c->lossless_udp->net, NET_PACKET_GET_NODES, &handle_getnodes, temp); |
1171 | networking_registerhandler(c->lossless_udp->net, NET_PACKET_SEND_NODES, &handle_sendnodes, temp); | 1171 | networking_registerhandler(c->lossless_udp->net, NET_PACKET_SEND_NODES, &handle_sendnodes, temp); |
1172 | init_cryptopackets(temp); | ||
1172 | cryptopacket_registerhandler(c, CRYPTO_PACKET_NAT_PING, &handle_NATping, temp); | 1173 | cryptopacket_registerhandler(c, CRYPTO_PACKET_NAT_PING, &handle_NATping, temp); |
1173 | return temp; | 1174 | return temp; |
1174 | } | 1175 | } |
diff --git a/core/Messenger.c b/core/Messenger.c index dd24ab09..c5dd8a40 100644 --- a/core/Messenger.c +++ b/core/Messenger.c | |||
@@ -660,7 +660,6 @@ Messenger *initMessenger(void) | |||
660 | friendreq_init(&(m->fr), m->net_crypto); | 660 | friendreq_init(&(m->fr), m->net_crypto); |
661 | LANdiscovery_init(m->dht); | 661 | LANdiscovery_init(m->dht); |
662 | set_nospam(&(m->fr), random_int()); | 662 | set_nospam(&(m->fr), random_int()); |
663 | init_cryptopackets(m->dht); | ||
664 | 663 | ||
665 | return m; | 664 | return m; |
666 | } | 665 | } |
diff --git a/other/DHT_bootstrap.c b/other/DHT_bootstrap.c index 5d97b37a..c0d4fcc6 100644 --- a/other/DHT_bootstrap.c +++ b/other/DHT_bootstrap.c | |||
@@ -86,7 +86,6 @@ int main(int argc, char *argv[]) | |||
86 | IP ip; | 86 | IP ip; |
87 | ip.i = 0; | 87 | ip.i = 0; |
88 | DHT *dht = new_DHT(new_net_crypto(new_networking(ip, PORT))); | 88 | DHT *dht = new_DHT(new_net_crypto(new_networking(ip, PORT))); |
89 | init_cryptopackets(dht); | ||
90 | manage_keys(dht); | 89 | manage_keys(dht); |
91 | printf("Public key: "); | 90 | printf("Public key: "); |
92 | uint32_t i; | 91 | uint32_t i; |
diff --git a/other/bootstrap_serverdaemon/DHT_bootstrap_daemon.c b/other/bootstrap_serverdaemon/DHT_bootstrap_daemon.c index 81ac538b..7604b1e0 100644 --- a/other/bootstrap_serverdaemon/DHT_bootstrap_daemon.c +++ b/other/bootstrap_serverdaemon/DHT_bootstrap_daemon.c | |||
@@ -321,7 +321,6 @@ int main(int argc, char *argv[]) | |||
321 | manage_keys(dht, server_conf.keys_file); | 321 | manage_keys(dht, server_conf.keys_file); |
322 | errno = tmperr; | 322 | errno = tmperr; |
323 | 323 | ||
324 | init_cryptopackets(dht); | ||
325 | /* Public key */ | 324 | /* Public key */ |
326 | int i; | 325 | int i; |
327 | printf("\nPublic Key: "); | 326 | printf("\nPublic Key: "); |
diff --git a/testing/DHT_test.c b/testing/DHT_test.c index 8ab9157e..53369794 100644 --- a/testing/DHT_test.c +++ b/testing/DHT_test.c | |||
@@ -136,7 +136,6 @@ int main(int argc, char *argv[]) | |||
136 | ip.i = 0; | 136 | ip.i = 0; |
137 | 137 | ||
138 | DHT *dht = new_DHT(new_net_crypto(new_networking(ip, PORT))); | 138 | DHT *dht = new_DHT(new_net_crypto(new_networking(ip, PORT))); |
139 | init_cryptopackets(dht); | ||
140 | 139 | ||
141 | if (argc < 4) { | 140 | if (argc < 4) { |
142 | printf("usage %s ip port public_key\n", argv[0]); | 141 | printf("usage %s ip port public_key\n", argv[0]); |