aboutsummaryrefslogtreecommitdiff
path: root/src/gns/gnunet-service-gns_resolver.h
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2012-10-30 20:52:14 +0000
committerChristian Grothoff <christian@grothoff.org>2012-10-30 20:52:14 +0000
commitc95ddb3eac0292511af734768441444098b90be9 (patch)
tree0f9797ab72aba90fb820aca16ff4078040f6f2bb /src/gns/gnunet-service-gns_resolver.h
parentee1230fff885b67efbae4fd194e7c62c93903ae3 (diff)
downloadgnunet-c95ddb3eac0292511af734768441444098b90be9.tar.gz
gnunet-c95ddb3eac0292511af734768441444098b90be9.zip
-more cleanup and input validation fixes
Diffstat (limited to 'src/gns/gnunet-service-gns_resolver.h')
-rw-r--r--src/gns/gnunet-service-gns_resolver.h26
1 files changed, 13 insertions, 13 deletions
diff --git a/src/gns/gnunet-service-gns_resolver.h b/src/gns/gnunet-service-gns_resolver.h
index 466e93175..650c5c568 100644
--- a/src/gns/gnunet-service-gns_resolver.h
+++ b/src/gns/gnunet-service-gns_resolver.h
@@ -59,7 +59,7 @@ struct AuthorityChain
59 /** 59 /**
60 * (local) name of the authority 60 * (local) name of the authority
61 */ 61 */
62 char name[MAX_DNS_LABEL_LENGTH]; 62 char name[GNUNET_DNSPARSER_MAX_LABEL_LENGTH];
63 63
64 /** 64 /**
65 * was the ns entry fresh 65 * was the ns entry fresh
@@ -201,7 +201,7 @@ struct ResolverHandle
201 /** 201 /**
202 * The name to resolve 202 * The name to resolve
203 */ 203 */
204 char name[MAX_DNS_NAME_LENGTH]; 204 char name[GNUNET_DNSPARSER_MAX_NAME_LENGTH];
205 205
206 /** 206 /**
207 * has this query been answered? how many matches 207 * has this query been answered? how many matches
@@ -221,7 +221,7 @@ struct ResolverHandle
221 /** 221 /**
222 * the name of the authoritative zone to query 222 * the name of the authoritative zone to query
223 */ 223 */
224 char authority_name[MAX_DNS_LABEL_LENGTH]; 224 char authority_name[GNUNET_DNSPARSER_MAX_LABEL_LENGTH];
225 225
226 /** 226 /**
227 * a handle for dht lookups. should be NULL if no lookups are in progress 227 * a handle for dht lookups. should be NULL if no lookups are in progress
@@ -246,12 +246,12 @@ struct ResolverHandle
246 /** 246 /**
247 * a synthesized dns name 247 * a synthesized dns name
248 */ 248 */
249 char dns_name[MAX_DNS_NAME_LENGTH]; 249 char dns_name[GNUNET_DNSPARSER_MAX_NAME_LENGTH];
250 250
251 /** 251 /**
252 * the authoritative dns zone 252 * the authoritative dns zone
253 */ 253 */
254 char dns_zone[MAX_DNS_NAME_LENGTH]; 254 char dns_zone[GNUNET_DNSPARSER_MAX_NAME_LENGTH];
255 255
256 /** 256 /**
257 * the address of the DNS server FIXME not needed? 257 * the address of the DNS server FIXME not needed?
@@ -361,7 +361,7 @@ struct RecordLookupHandle
361 /** 361 /**
362 * the name to look up 362 * the name to look up
363 */ 363 */
364 char name[MAX_DNS_NAME_LENGTH]; 364 char name[GNUNET_DNSPARSER_MAX_NAME_LENGTH];
365 365
366 /** 366 /**
367 * Method to call on record resolution result 367 * Method to call on record resolution result
@@ -394,7 +394,7 @@ struct NameShortenHandle
394 /** 394 /**
395 * result of shorten 395 * result of shorten
396 */ 396 */
397 char result[MAX_DNS_NAME_LENGTH]; 397 char result[GNUNET_DNSPARSER_MAX_NAME_LENGTH];
398 398
399 /** 399 /**
400 * root zone 400 * root zone
@@ -409,7 +409,7 @@ struct NameShortenHandle
409 /** 409 /**
410 * name of private zone 410 * name of private zone
411 */ 411 */
412 char private_zone_name[MAX_DNS_LABEL_LENGTH]; 412 char private_zone_name[GNUNET_DNSPARSER_MAX_LABEL_LENGTH];
413 413
414 /** 414 /**
415 * shorten zone 415 * shorten zone
@@ -419,7 +419,7 @@ struct NameShortenHandle
419 /** 419 /**
420 * name of shorten zone 420 * name of shorten zone
421 */ 421 */
422 char shorten_zone_name[MAX_DNS_LABEL_LENGTH]; 422 char shorten_zone_name[GNUNET_DNSPARSER_MAX_LABEL_LENGTH];
423 423
424}; 424};
425 425
@@ -432,12 +432,12 @@ struct GetNameAuthorityHandle
432 /** 432 /**
433 * the name to look up authority for 433 * the name to look up authority for
434 */ 434 */
435 char name[MAX_DNS_NAME_LENGTH]; 435 char name[GNUNET_DNSPARSER_MAX_NAME_LENGTH];
436 436
437 /** 437 /**
438 * the result 438 * the result
439 */ 439 */
440 char result[MAX_DNS_NAME_LENGTH]; 440 char result[GNUNET_DNSPARSER_MAX_NAME_LENGTH];
441 441
442 /** 442 /**
443 * Method to call on result 443 * Method to call on result
@@ -469,12 +469,12 @@ struct GetPseuAuthorityHandle
469 /** 469 /**
470 * the name to store the zone under 470 * the name to store the zone under
471 */ 471 */
472 char name[MAX_DNS_LABEL_LENGTH]; 472 char name[GNUNET_DNSPARSER_MAX_LABEL_LENGTH];
473 473
474 /** 474 /**
475 * test name to store the zone under 475 * test name to store the zone under
476 */ 476 */
477 char test_name[MAX_DNS_LABEL_LENGTH]; 477 char test_name[GNUNET_DNSPARSER_MAX_LABEL_LENGTH];
478 478
479 /** 479 /**
480 * the zone of our authority 480 * the zone of our authority