-typo
[oweals/gnunet.git] / src / gns / gnunet-service-gns_resolver.h
index 466e931756b8fa801fffc3570e4c1322d38cba7d..1d236b427ff7ebcaf7879178db55b91476dbef4f 100644 (file)
@@ -59,7 +59,7 @@ struct AuthorityChain
   /**
    * (local) name of the authority 
    */
-  char name[MAX_DNS_LABEL_LENGTH];
+  char name[GNUNET_DNSPARSER_MAX_LABEL_LENGTH];
 
   /**
    * was the ns entry fresh 
@@ -201,7 +201,7 @@ struct ResolverHandle
   /**
    * The name to resolve 
    */
-  char name[MAX_DNS_NAME_LENGTH];
+  char name[GNUNET_DNSPARSER_MAX_NAME_LENGTH];
 
   /**
    * has this query been answered? how many matches 
@@ -221,7 +221,7 @@ struct ResolverHandle
   /**
    * the name of the authoritative zone to query 
    */
-  char authority_name[MAX_DNS_LABEL_LENGTH];
+  char authority_name[GNUNET_DNSPARSER_MAX_LABEL_LENGTH];
 
   /**
    * a handle for dht lookups. should be NULL if no lookups are in progress 
@@ -246,12 +246,12 @@ struct ResolverHandle
   /**
    * a synthesized dns name 
    */
-  char dns_name[MAX_DNS_NAME_LENGTH];
+  char dns_name[GNUNET_DNSPARSER_MAX_NAME_LENGTH];
 
   /**
    * the authoritative dns zone 
    */
-  char dns_zone[MAX_DNS_NAME_LENGTH];
+  char dns_zone[GNUNET_DNSPARSER_MAX_NAME_LENGTH];
 
   /**
    * the address of the DNS server FIXME not needed? 
@@ -327,7 +327,7 @@ struct ResolverHandle
    * private key of an/our authoritative zone
    * can be NULL but automatical PKEY import will not work
    */
-  struct GNUNET_CRYPTO_RsaPrivateKey *priv_key;
+  struct GNUNET_CRYPTO_EccPrivateKey *priv_key;
 
   /**
    * the heap node associated with this lookup, null if timeout is set
@@ -361,7 +361,7 @@ struct RecordLookupHandle
   /**
    * the name to look up 
    */
-  char name[MAX_DNS_NAME_LENGTH];
+  char name[GNUNET_DNSPARSER_MAX_NAME_LENGTH];
 
   /**
    * Method to call on record resolution result 
@@ -394,7 +394,7 @@ struct NameShortenHandle
   /**
    * result of shorten 
    */
-  char result[MAX_DNS_NAME_LENGTH];
+  char result[GNUNET_DNSPARSER_MAX_NAME_LENGTH];
 
   /**
    * root zone 
@@ -409,7 +409,7 @@ struct NameShortenHandle
   /**
    * name of private zone 
    */
-  char private_zone_name[MAX_DNS_LABEL_LENGTH];
+  char private_zone_name[GNUNET_DNSPARSER_MAX_LABEL_LENGTH];
 
   /**
    * shorten zone 
@@ -419,7 +419,7 @@ struct NameShortenHandle
   /**
    * name of shorten zone 
    */
-  char shorten_zone_name[MAX_DNS_LABEL_LENGTH];
+  char shorten_zone_name[GNUNET_DNSPARSER_MAX_LABEL_LENGTH];
 
 };
 
@@ -432,12 +432,12 @@ struct GetNameAuthorityHandle
   /**
    * the name to look up authority for 
    */
-  char name[MAX_DNS_NAME_LENGTH];
+  char name[GNUNET_DNSPARSER_MAX_NAME_LENGTH];
 
   /**
    * the result 
    */
-  char result[MAX_DNS_NAME_LENGTH];
+  char result[GNUNET_DNSPARSER_MAX_NAME_LENGTH];
   
   /**
    * Method to call on result 
@@ -469,12 +469,12 @@ struct GetPseuAuthorityHandle
   /**
    * the name to store the zone under 
    */
-  char name[MAX_DNS_LABEL_LENGTH];
+  char name[GNUNET_DNSPARSER_MAX_LABEL_LENGTH];
 
   /**
    * test name to store the zone under 
    */
-  char test_name[MAX_DNS_LABEL_LENGTH];
+  char test_name[GNUNET_DNSPARSER_MAX_LABEL_LENGTH];
   
   /**
    * the zone of our authority 
@@ -484,7 +484,7 @@ struct GetPseuAuthorityHandle
   /**
    * the private key of the zone to store the pseu in 
    */
-  struct GNUNET_CRYPTO_RsaPrivateKey *key;
+  struct GNUNET_CRYPTO_EccPrivateKey *key;
 
   /**
    * a handle for dht lookups. should be NULL if no lookups are in progress 
@@ -573,7 +573,7 @@ gns_resolver_lookup_record (struct GNUNET_CRYPTO_ShortHashCode zone,
                            struct GNUNET_CRYPTO_ShortHashCode pzone,
                            uint32_t record_type,
                            const char* name,
-                           struct GNUNET_CRYPTO_RsaPrivateKey *key,
+                           struct GNUNET_CRYPTO_EccPrivateKey *key,
                            struct GNUNET_TIME_Relative timeout,
                            int only_cached,
                            RecordLookupProcessor proc,
@@ -624,8 +624,9 @@ gns_resolver_get_authority (struct GNUNET_CRYPTO_ShortHashCode zone,
                            GetAuthorityResultProcessor proc,
                            void* proc_cls);
 
+
 /**
- * Generic function to check for TLDs
+ * Generic function to check for TLDs.  Checks if "name" ends in ".tld"
  *
  * @param name the name to check
  * @param tld the tld to check
@@ -636,6 +637,7 @@ is_tld (const char* name,
        const char* tld);
 
 
+
 /**
  * Checks for gads/zkey
  */