-fix uninit and fix leak
[oweals/gnunet.git] / src / gns / gnunet-service-gns_resolver.h
index 650c5c568ac5ff19d0cc0002f9d9f4609be67e25..1d236b427ff7ebcaf7879178db55b91476dbef4f 100644 (file)
@@ -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
@@ -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
  */