aboutsummaryrefslogtreecommitdiff
path: root/src/gns/gnunet-service-gns_resolver.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2018-04-23 12:42:00 +0200
committerChristian Grothoff <christian@grothoff.org>2018-04-23 12:42:00 +0200
commite1f46c052dca3cd7a390f18f97b10162fe537a15 (patch)
treedaa43ca3b189b6f86425801dc94413a71a04a66c /src/gns/gnunet-service-gns_resolver.c
parentff4d7b51f37f61633766664647e9b148af1e4f0a (diff)
downloadgnunet-e1f46c052dca3cd7a390f18f97b10162fe537a15.tar.gz
gnunet-e1f46c052dca3cd7a390f18f97b10162fe537a15.zip
move to @ for empty label, fix empty-label resolution bug in GNS API, install gnunet-zoneimport and add man page
Diffstat (limited to 'src/gns/gnunet-service-gns_resolver.c')
-rw-r--r--src/gns/gnunet-service-gns_resolver.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gns/gnunet-service-gns_resolver.c b/src/gns/gnunet-service-gns_resolver.c
index 74eb47f29..745a2f3bd 100644
--- a/src/gns/gnunet-service-gns_resolver.c
+++ b/src/gns/gnunet-service-gns_resolver.c
@@ -2096,14 +2096,14 @@ handle_gns_resolution_result (void *cls,
2096 rd_off++; 2096 rd_off++;
2097 if (GNUNET_GNSRECORD_TYPE_PKEY != rh->record_type) 2097 if (GNUNET_GNSRECORD_TYPE_PKEY != rh->record_type)
2098 { 2098 {
2099 /* try to resolve "+" */ 2099 /* try to resolve "@" */
2100 struct AuthorityChain *ac; 2100 struct AuthorityChain *ac;
2101 2101
2102 ac = GNUNET_new (struct AuthorityChain); 2102 ac = GNUNET_new (struct AuthorityChain);
2103 ac->rh = rh; 2103 ac->rh = rh;
2104 ac->gns_authority = GNUNET_YES; 2104 ac->gns_authority = GNUNET_YES;
2105 ac->authority_info.gns_authority = pub; 2105 ac->authority_info.gns_authority = pub;
2106 ac->label = GNUNET_strdup (GNUNET_GNS_MASTERZONE_STR); 2106 ac->label = GNUNET_strdup (GNUNET_GNS_EMPTY_LABEL_AT);
2107 ac->suggested_shortening_label = NULL; 2107 ac->suggested_shortening_label = NULL;
2108 ac->shortening_started = GNUNET_NO; 2108 ac->shortening_started = GNUNET_NO;
2109 GNUNET_CONTAINER_DLL_insert_tail (rh->ac_head, 2109 GNUNET_CONTAINER_DLL_insert_tail (rh->ac_head,
@@ -2629,8 +2629,8 @@ start_resolver_lookup (void *cls)
2629 ac->suggested_shortening_label = NULL; 2629 ac->suggested_shortening_label = NULL;
2630 if (NULL == ac->label) 2630 if (NULL == ac->label)
2631 /* name was just the "TLD", so we default to label 2631 /* name was just the "TLD", so we default to label
2632 #GNUNET_GNS_MASTERZONE_STR */ 2632 #GNUNET_GNS_EMPTY_LABEL_AT */
2633 ac->label = GNUNET_strdup (GNUNET_GNS_MASTERZONE_STR); 2633 ac->label = GNUNET_strdup (GNUNET_GNS_EMPTY_LABEL_AT);
2634 ac->gns_authority = GNUNET_YES; 2634 ac->gns_authority = GNUNET_YES;
2635 ac->authority_info.gns_authority = rh->authority_zone; 2635 ac->authority_info.gns_authority = rh->authority_zone;
2636 GNUNET_CONTAINER_DLL_insert_tail (rh->ac_head, 2636 GNUNET_CONTAINER_DLL_insert_tail (rh->ac_head,