aboutsummaryrefslogtreecommitdiff
path: root/src/transport/gnunet-service-transport_blacklist.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/transport/gnunet-service-transport_blacklist.c')
-rw-r--r--src/transport/gnunet-service-transport_blacklist.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/transport/gnunet-service-transport_blacklist.c b/src/transport/gnunet-service-transport_blacklist.c
index 628943a42..8f45a19b8 100644
--- a/src/transport/gnunet-service-transport_blacklist.c
+++ b/src/transport/gnunet-service-transport_blacklist.c
@@ -244,7 +244,7 @@ client_disconnect_notification (void *cls, struct GNUNET_SERVER_Client *client)
244 * @param option name of the option 244 * @param option name of the option
245 * @param value value of the option 245 * @param value value of the option
246 */ 246 */
247static void 247static void
248blacklist_cfg_iter (void *cls, const char *section, 248blacklist_cfg_iter (void *cls, const char *section,
249 const char *option, 249 const char *option,
250 const char *value) 250 const char *value)
@@ -255,10 +255,10 @@ blacklist_cfg_iter (void *cls, const char *section,
255 char *pos; 255 char *pos;
256 256
257 if (GNUNET_OK != GNUNET_CRYPTO_ecc_public_sign_key_from_string (option, 257 if (GNUNET_OK != GNUNET_CRYPTO_ecc_public_sign_key_from_string (option,
258 strlen (option), 258 strlen (option),
259 &peer.public_key)) 259 &peer.public_key))
260 return; 260 return;
261 261
262 if ((NULL == value) || (0 == strcmp(value, ""))) 262 if ((NULL == value) || (0 == strcmp(value, "")))
263 { 263 {
264 /* Blacklist whole peer */ 264 /* Blacklist whole peer */
@@ -295,9 +295,9 @@ read_blacklist_configuration (const struct GNUNET_CONFIGURATION_Handle *cfg,
295 char cfg_sect[512]; 295 char cfg_sect[512];
296 unsigned int res = 0; 296 unsigned int res = 0;
297 297
298 GNUNET_snprintf (cfg_sect, 298 GNUNET_snprintf (cfg_sect,
299 sizeof (cfg_sect), 299 sizeof (cfg_sect),
300 "transport-blacklist-%s", 300 "transport-blacklist-%s",
301 GNUNET_i2s_full (my_id)); 301 GNUNET_i2s_full (my_id));
302 GNUNET_CONFIGURATION_iterate_section_values (cfg, cfg_sect, &blacklist_cfg_iter, &res); 302 GNUNET_CONFIGURATION_iterate_section_values (cfg, cfg_sect, &blacklist_cfg_iter, &res);
303 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 303 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
@@ -636,7 +636,7 @@ GST_blacklist_add_peer (const struct GNUNET_PeerIdentity *peer,
636 blacklist = 636 blacklist =
637 GNUNET_CONTAINER_multipeermap_create (TRANSPORT_BLACKLIST_HT_SIZE, 637 GNUNET_CONTAINER_multipeermap_create (TRANSPORT_BLACKLIST_HT_SIZE,
638 GNUNET_NO); 638 GNUNET_NO);
639 639
640 GNUNET_CONTAINER_multipeermap_put (blacklist, peer, 640 GNUNET_CONTAINER_multipeermap_put (blacklist, peer,
641 transport, 641 transport,
642 GNUNET_CONTAINER_MULTIHASHMAPOPTION_MULTIPLE); 642 GNUNET_CONTAINER_MULTIHASHMAPOPTION_MULTIPLE);
@@ -653,7 +653,7 @@ GST_blacklist_add_peer (const struct GNUNET_PeerIdentity *peer,
653 * @return #GNUNET_OK if the entry does not match, #GNUNET_NO if it matches 653 * @return #GNUNET_OK if the entry does not match, #GNUNET_NO if it matches
654 */ 654 */
655static int 655static int
656test_blacklisted (void *cls, 656test_blacklisted (void *cls,
657 const struct GNUNET_PeerIdentity *key, 657 const struct GNUNET_PeerIdentity *key,
658 void *value) 658 void *value)
659{ 659{