/**
* (local) name of the authority
*/
- char name[MAX_DNS_LABEL_LENGTH];
+ char name[GNUNET_DNSPARSER_MAX_LABEL_LENGTH];
/**
* was the ns entry fresh
/**
* 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
/**
* 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
/**
* 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?
* 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
/**
* 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
/**
* result of shorten
*/
- char result[MAX_DNS_NAME_LENGTH];
+ char result[GNUNET_DNSPARSER_MAX_NAME_LENGTH];
/**
* root zone
/**
* name of private zone
*/
- char private_zone_name[MAX_DNS_LABEL_LENGTH];
+ char private_zone_name[GNUNET_DNSPARSER_MAX_LABEL_LENGTH];
/**
* shorten zone
/**
* name of shorten zone
*/
- char shorten_zone_name[MAX_DNS_LABEL_LENGTH];
+ char shorten_zone_name[GNUNET_DNSPARSER_MAX_LABEL_LENGTH];
};
/**
* 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
/**
* 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
/**
* 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
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,
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
const char* tld);
+
/**
- * Checks for gnunet/zkey
+ * Checks for gads/zkey
*/
-#define is_gnunet_tld(name) is_tld(name, GNUNET_GNS_TLD)
+#define is_gads_tld(name) is_tld(name, GNUNET_GNS_TLD)
#define is_zkey_tld(name) is_tld(name, GNUNET_GNS_TLD_ZKEY)