aboutsummaryrefslogtreecommitdiff
path: root/src/transport/plugin_transport_http_server.c
diff options
context:
space:
mode:
authorMatthias Wachs <wachs@net.in.tum.de>2013-07-11 16:03:23 +0000
committerMatthias Wachs <wachs@net.in.tum.de>2013-07-11 16:03:23 +0000
commit6c558bec246145418131dbb8ced6261f7ad4efa8 (patch)
tree0c5b96cc0cb3d8cf50150d96ec8d8574fbd76d29 /src/transport/plugin_transport_http_server.c
parentf8f90fbb5bc4d4f6fd478ebfebfc25143719844f (diff)
downloadgnunet-6c558bec246145418131dbb8ced6261f7ad4efa8.tar.gz
gnunet-6c558bec246145418131dbb8ced6261f7ad4efa8.zip
enabling address check in validation
Diffstat (limited to 'src/transport/plugin_transport_http_server.c')
-rw-r--r--src/transport/plugin_transport_http_server.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/transport/plugin_transport_http_server.c b/src/transport/plugin_transport_http_server.c
index 0d072c9e9..347419bf6 100644
--- a/src/transport/plugin_transport_http_server.c
+++ b/src/transport/plugin_transport_http_server.c
@@ -657,12 +657,19 @@ http_server_plugin_address_suggested (void *cls, const void *addr,
657 struct HTTP_Server_Plugin *plugin = cls; 657 struct HTTP_Server_Plugin *plugin = cls;
658 struct HttpAddressWrapper *next; 658 struct HttpAddressWrapper *next;
659 struct HttpAddressWrapper *pos; 659 struct HttpAddressWrapper *pos;
660 660 struct HttpAddress *h_addr;
661 661GNUNET_break (0);
662 h_addr = (struct HttpAddress *) addr;
662 if ((NULL != plugin->ext_addr) && 663 if ((NULL != plugin->ext_addr) &&
663 GNUNET_YES == (http_common_cmp_addresses (addr, addrlen, 664 GNUNET_YES == (http_common_cmp_addresses (addr, addrlen,
664 plugin->ext_addr, plugin->ext_addr_len))) 665 plugin->ext_addr, plugin->ext_addr_len)))
666 {
667 if ((ntohl(h_addr->options) & HTTP_OPTIONS_VERIFY_CERTIFICATE) != HTTP_OPTIONS_VERIFY_CERTIFICATE)
668 GNUNET_break (0);
669 else
670 GNUNET_break (0);
665 return GNUNET_OK; 671 return GNUNET_OK;
672 }
666 673
667 next = plugin->addr_head; 674 next = plugin->addr_head;
668 while (NULL != (pos = next)) 675 while (NULL != (pos = next))