aboutsummaryrefslogtreecommitdiff
path: root/src/transport/gnunet-service-transport_validation.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2015-02-02 22:28:47 +0000
committerChristian Grothoff <christian@grothoff.org>2015-02-02 22:28:47 +0000
commit43b1f6976d55ad0abecbf7c4d1f514286550fb3f (patch)
treeb6b14bd6a5a29d190d3e24f0a6e02a7ea14b443f /src/transport/gnunet-service-transport_validation.c
parent69c3a52cfa679175da8f06bdcb8e2e4195465e44 (diff)
downloadgnunet-43b1f6976d55ad0abecbf7c4d1f514286550fb3f.tar.gz
gnunet-43b1f6976d55ad0abecbf7c4d1f514286550fb3f.zip
-removing dead code, chvc_ was not used at all
Diffstat (limited to 'src/transport/gnunet-service-transport_validation.c')
-rw-r--r--src/transport/gnunet-service-transport_validation.c44
1 files changed, 1 insertions, 43 deletions
diff --git a/src/transport/gnunet-service-transport_validation.c b/src/transport/gnunet-service-transport_validation.c
index d0a731789..ab3fbe8f3 100644
--- a/src/transport/gnunet-service-transport_validation.c
+++ b/src/transport/gnunet-service-transport_validation.c
@@ -251,7 +251,7 @@ struct ValidationEntry
251 uint32_t challenge; 251 uint32_t challenge;
252 252
253 /** 253 /**
254 * When passing the address in 'add_valid_peer_address', did we 254 * When passing the address in #add_valid_peer_address(), did we
255 * copy the address to the HELLO yet? 255 * copy the address to the HELLO yet?
256 */ 256 */
257 int copied; 257 int copied;
@@ -279,41 +279,6 @@ struct ValidationEntry
279 279
280 280
281/** 281/**
282 * Context of currently active requests to peerinfo
283 * for validation of HELLOs.
284 */
285struct CheckHelloValidatedContext
286{
287
288 /**
289 * This is a doubly-linked list.
290 */
291 struct CheckHelloValidatedContext *next;
292
293 /**
294 * This is a doubly-linked list.
295 */
296 struct CheckHelloValidatedContext *prev;
297
298 /**
299 * Hello that we are validating.
300 */
301 const struct GNUNET_HELLO_Message *hello;
302
303};
304
305
306/**
307 * Head of linked list of HELLOs awaiting validation.
308 */
309static struct CheckHelloValidatedContext *chvc_head;
310
311/**
312 * Tail of linked list of HELLOs awaiting validation
313 */
314static struct CheckHelloValidatedContext *chvc_tail;
315
316/**
317 * Map of PeerIdentities to 'struct ValidationEntry*'s (addresses 282 * Map of PeerIdentities to 'struct ValidationEntry*'s (addresses
318 * of the given peer that we are currently validating, have validated 283 * of the given peer that we are currently validating, have validated
319 * or are blocked from re-validation for a while). 284 * or are blocked from re-validation for a while).
@@ -936,17 +901,10 @@ GST_validation_start (unsigned int max_fds)
936void 901void
937GST_validation_stop () 902GST_validation_stop ()
938{ 903{
939 struct CheckHelloValidatedContext *chvc;
940
941 GNUNET_CONTAINER_multipeermap_iterate (validation_map, 904 GNUNET_CONTAINER_multipeermap_iterate (validation_map,
942 &cleanup_validation_entry, NULL); 905 &cleanup_validation_entry, NULL);
943 GNUNET_CONTAINER_multipeermap_destroy (validation_map); 906 GNUNET_CONTAINER_multipeermap_destroy (validation_map);
944 validation_map = NULL; 907 validation_map = NULL;
945 while (NULL != (chvc = chvc_head))
946 {
947 GNUNET_CONTAINER_DLL_remove (chvc_head, chvc_tail, chvc);
948 GNUNET_free (chvc);
949 }
950 GNUNET_PEERINFO_notify_cancel (pnc); 908 GNUNET_PEERINFO_notify_cancel (pnc);
951} 909}
952 910