aboutsummaryrefslogtreecommitdiff
path: root/src/gns
diff options
context:
space:
mode:
authorMartin Schanzenbach <mschanzenbach@posteo.de>2012-07-23 10:35:54 +0000
committerMartin Schanzenbach <mschanzenbach@posteo.de>2012-07-23 10:35:54 +0000
commit224e2df31bb37f31487d55e39d773f37e526d47e (patch)
tree80f965cd4a74a6fc58b231cf7688343bb2d3b043 /src/gns
parentb7ac7eba18d8fd9e80d250790efa329cc1f4e475 (diff)
downloadgnunet-224e2df31bb37f31487d55e39d773f37e526d47e.tar.gz
gnunet-224e2df31bb37f31487d55e39d773f37e526d47e.zip
-some notes for dns2gns
Diffstat (limited to 'src/gns')
-rw-r--r--src/gns/gnunet-dns2gns.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/gns/gnunet-dns2gns.c b/src/gns/gnunet-dns2gns.c
index 741c8dd00..c8b9567b8 100644
--- a/src/gns/gnunet-dns2gns.c
+++ b/src/gns/gnunet-dns2gns.c
@@ -241,7 +241,7 @@ result_processor (void *cls,
241 rec); 241 rec);
242 break; 242 break;
243 case GNUNET_DNSPARSER_TYPE_CNAME: 243 case GNUNET_DNSPARSER_TYPE_CNAME:
244 GNUNET_break (0); // FIXME: not implemented! 244 GNUNET_break (0); // FIXME: CNAME is handled by the GNS resolver! We never return this unless explicitly requested!
245 break; 245 break;
246 default: 246 default:
247 /* skip */ 247 /* skip */
@@ -316,6 +316,8 @@ handle_request (struct GNUNET_NETWORK_Handle *lsock,
316 (0 == strcasecmp (".zkey.eu", 316 (0 == strcasecmp (".zkey.eu",
317 &name[name_len - strlen (".zkey.eu")])) ) 317 &name[name_len - strlen (".zkey.eu")])) )
318 { 318 {
319 //FIXME here check if the top label after zkey.eu is a hash and append
320 //correct TLD appropriately
319 name[name_len - strlen (".zkey.eu")] = '\0'; 321 name[name_len - strlen (".zkey.eu")] = '\0';
320 strcat (name, ".gnunet"); /* little hack, only works because 322 strcat (name, ".gnunet"); /* little hack, only works because
321 ".zkey.eu" is longer than ".gnunet" */ 323 ".zkey.eu" is longer than ".gnunet" */
@@ -338,7 +340,7 @@ handle_request (struct GNUNET_NETWORK_Handle *lsock,
338 { 340 {
339 /* FIXME: do traditional *DNS* lookup; note that 341 /* FIXME: do traditional *DNS* lookup; note that
340 gnunet-service-dns already has code to do this; 342 gnunet-service-dns already has code to do this;
341 factor into library to share! */ 343 factor into library to share! Why not use GNUNET_RESOLVER here?*/
342 GNUNET_break (0); 344 GNUNET_break (0);
343 } 345 }
344 GNUNET_free (name); 346 GNUNET_free (name);