aboutsummaryrefslogtreecommitdiff
path: root/src/gns/gns_api.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2014-03-04 11:26:26 +0000
committerChristian Grothoff <christian@grothoff.org>2014-03-04 11:26:26 +0000
commit5c779811684d383940d6e3766ace4bdce7bc0ae6 (patch)
treec8aeeee7e987d8d69f8bd195f02428c49028f9ae /src/gns/gns_api.c
parent6927a8b2ec77eb4403dab98ae7df8d9e882ba6ae (diff)
downloadgnunet-5c779811684d383940d6e3766ace4bdce7bc0ae6.tar.gz
gnunet-5c779811684d383940d6e3766ace4bdce7bc0ae6.zip
-presumably better fix for instantly resolving names in master zone
Diffstat (limited to 'src/gns/gns_api.c')
-rw-r--r--src/gns/gns_api.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gns/gns_api.c b/src/gns/gns_api.c
index 66bd005cf..9f7f28b71 100644
--- a/src/gns/gns_api.c
+++ b/src/gns/gns_api.c
@@ -523,7 +523,7 @@ GNUNET_GNS_lookup_cancel (struct GNUNET_GNS_LookupRequest *lr)
523 * @param name the name to look up 523 * @param name the name to look up
524 * @param zone the zone to start the resolution in 524 * @param zone the zone to start the resolution in
525 * @param type the record type to look up 525 * @param type the record type to look up
526 * @param only_cached #GNUNET_YES to only check locally (not in the DHT) 526 * @param options local options for the lookup
527 * @param shorten_zone_key the private key of the shorten zone (can be NULL) 527 * @param shorten_zone_key the private key of the shorten zone (can be NULL)
528 * @param proc processor to call on result 528 * @param proc processor to call on result
529 * @param proc_cls closure for @a proc 529 * @param proc_cls closure for @a proc
@@ -534,7 +534,7 @@ GNUNET_GNS_lookup (struct GNUNET_GNS_Handle *handle,
534 const char *name, 534 const char *name,
535 const struct GNUNET_CRYPTO_EcdsaPublicKey *zone, 535 const struct GNUNET_CRYPTO_EcdsaPublicKey *zone,
536 uint32_t type, 536 uint32_t type,
537 int only_cached, 537 enum GNUNET_GNS_LocalOptions options,
538 const struct GNUNET_CRYPTO_EcdsaPrivateKey *shorten_zone_key, 538 const struct GNUNET_CRYPTO_EcdsaPrivateKey *shorten_zone_key,
539 GNUNET_GNS_LookupResultProcessor proc, 539 GNUNET_GNS_LookupResultProcessor proc,
540 void *proc_cls) 540 void *proc_cls)
@@ -576,7 +576,7 @@ GNUNET_GNS_lookup (struct GNUNET_GNS_Handle *handle,
576 lookup_msg->header.type = htons (GNUNET_MESSAGE_TYPE_GNS_LOOKUP); 576 lookup_msg->header.type = htons (GNUNET_MESSAGE_TYPE_GNS_LOOKUP);
577 lookup_msg->header.size = htons (msize); 577 lookup_msg->header.size = htons (msize);
578 lookup_msg->id = htonl (lr->r_id); 578 lookup_msg->id = htonl (lr->r_id);
579 lookup_msg->only_cached = htons (only_cached); 579 lookup_msg->options = htons ((uint16_t) options);
580 lookup_msg->zone = *zone; 580 lookup_msg->zone = *zone;
581 lookup_msg->type = htonl (type); 581 lookup_msg->type = htonl (type);
582 if (NULL != shorten_zone_key) 582 if (NULL != shorten_zone_key)