diff options
Diffstat (limited to 'src/transport/gnunet-service-transport.c')
-rw-r--r-- | src/transport/gnunet-service-transport.c | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/src/transport/gnunet-service-transport.c b/src/transport/gnunet-service-transport.c index 93f064fd0..12db541ac 100644 --- a/src/transport/gnunet-service-transport.c +++ b/src/transport/gnunet-service-transport.c | |||
@@ -2612,13 +2612,11 @@ add_to_foreign_address_list (void *cls, | |||
2612 | * @param cls closure ('struct NeighbourList*') | 2612 | * @param cls closure ('struct NeighbourList*') |
2613 | * @param peer id of the peer, NULL for last call | 2613 | * @param peer id of the peer, NULL for last call |
2614 | * @param h hello message for the peer (can be NULL) | 2614 | * @param h hello message for the peer (can be NULL) |
2615 | * @param trust amount of trust we have in the peer (not used) | ||
2616 | */ | 2615 | */ |
2617 | static void | 2616 | static void |
2618 | add_hello_for_peer (void *cls, | 2617 | add_hello_for_peer (void *cls, |
2619 | const struct GNUNET_PeerIdentity *peer, | 2618 | const struct GNUNET_PeerIdentity *peer, |
2620 | const struct GNUNET_HELLO_Message *h, | 2619 | const struct GNUNET_HELLO_Message *h) |
2621 | uint32_t trust) | ||
2622 | { | 2620 | { |
2623 | struct NeighbourList *n = cls; | 2621 | struct NeighbourList *n = cls; |
2624 | 2622 | ||
@@ -2706,7 +2704,7 @@ setup_new_neighbour (const struct GNUNET_PeerIdentity *peer, | |||
2706 | if (do_hello) | 2704 | if (do_hello) |
2707 | { | 2705 | { |
2708 | n->piter = GNUNET_PEERINFO_iterate (peerinfo, peer, | 2706 | n->piter = GNUNET_PEERINFO_iterate (peerinfo, peer, |
2709 | 0, GNUNET_TIME_UNIT_FOREVER_REL, | 2707 | GNUNET_TIME_UNIT_FOREVER_REL, |
2710 | &add_hello_for_peer, n); | 2708 | &add_hello_for_peer, n); |
2711 | transmit_to_peer (NULL, NULL, 0, | 2709 | transmit_to_peer (NULL, NULL, 0, |
2712 | HELLO_ADDRESS_EXPIRATION, | 2710 | HELLO_ADDRESS_EXPIRATION, |
@@ -3870,13 +3868,11 @@ run_validation (void *cls, | |||
3870 | * @param cls closure | 3868 | * @param cls closure |
3871 | * @param peer id of the peer, NULL for last call | 3869 | * @param peer id of the peer, NULL for last call |
3872 | * @param h hello message for the peer (can be NULL) | 3870 | * @param h hello message for the peer (can be NULL) |
3873 | * @param trust amount of trust we have in the peer (not used) | ||
3874 | */ | 3871 | */ |
3875 | static void | 3872 | static void |
3876 | check_hello_validated (void *cls, | 3873 | check_hello_validated (void *cls, |
3877 | const struct GNUNET_PeerIdentity *peer, | 3874 | const struct GNUNET_PeerIdentity *peer, |
3878 | const struct GNUNET_HELLO_Message *h, | 3875 | const struct GNUNET_HELLO_Message *h) |
3879 | uint32_t trust) | ||
3880 | { | 3876 | { |
3881 | struct CheckHelloValidatedContext *chvc = cls; | 3877 | struct CheckHelloValidatedContext *chvc = cls; |
3882 | struct GNUNET_HELLO_Message *plain_hello; | 3878 | struct GNUNET_HELLO_Message *plain_hello; |
@@ -4088,7 +4084,6 @@ process_hello (struct TransportPlugin *plugin, | |||
4088 | (continuation will then schedule actual validation) */ | 4084 | (continuation will then schedule actual validation) */ |
4089 | chvc->piter = GNUNET_PEERINFO_iterate (peerinfo, | 4085 | chvc->piter = GNUNET_PEERINFO_iterate (peerinfo, |
4090 | &target, | 4086 | &target, |
4091 | 0, | ||
4092 | HELLO_VERIFICATION_TIMEOUT, | 4087 | HELLO_VERIFICATION_TIMEOUT, |
4093 | &check_hello_validated, chvc); | 4088 | &check_hello_validated, chvc); |
4094 | return GNUNET_OK; | 4089 | return GNUNET_OK; |