aboutsummaryrefslogtreecommitdiff
path: root/src/namestore/namestore.h
diff options
context:
space:
mode:
authorMatthias Wachs <wachs@net.in.tum.de>2012-03-19 17:11:46 +0000
committerMatthias Wachs <wachs@net.in.tum.de>2012-03-19 17:11:46 +0000
commit5a943624e2634d632ee2bf3a78c25b0aeae3813e (patch)
treee1fb2539304003d54d0d1e6ea0fdfd3730eb697c /src/namestore/namestore.h
parent34243a1a0c04ef5723a327124f96e2571ac5fd2e (diff)
downloadgnunet-5a943624e2634d632ee2bf3a78c25b0aeae3813e.tar.gz
gnunet-5a943624e2634d632ee2bf3a78c25b0aeae3813e.zip
- usage of short hashes
Diffstat (limited to 'src/namestore/namestore.h')
-rw-r--r--src/namestore/namestore.h19
1 files changed, 15 insertions, 4 deletions
diff --git a/src/namestore/namestore.h b/src/namestore/namestore.h
index 48e021f6d..c7af82dc3 100644
--- a/src/namestore/namestore.h
+++ b/src/namestore/namestore.h
@@ -47,6 +47,17 @@
47#define GNUNET_MESSAGE_TYPE_NAMESTORE_ZONE_ITERATION_STOP 448 47#define GNUNET_MESSAGE_TYPE_NAMESTORE_ZONE_ITERATION_STOP 448
48 48
49/** 49/**
50 * Convert a short hash to a string (for printing debug messages).
51 * This is one of the very few calls in the entire API that is
52 * NOT reentrant!
53 *
54 * @param hc the short hash code
55 * @return string form; will be overwritten by next call to GNUNET_h2s.
56 */
57const char *
58GNUNET_short_h2s (const struct GNUNET_CRYPTO_ShortHashCode * hc);
59
60/**
50 * Sign name and records 61 * Sign name and records
51 * 62 *
52 * @param key the private key 63 * @param key the private key
@@ -150,7 +161,7 @@ struct LookupNameMessage
150 /** 161 /**
151 * The zone 162 * The zone
152 */ 163 */
153 GNUNET_HashCode zone; 164 struct GNUNET_CRYPTO_ShortHashCode zone;
154 165
155 /** 166 /**
156 * Requested record type 167 * Requested record type
@@ -419,12 +430,12 @@ struct ZoneToNameMessage
419 /** 430 /**
420 * The hash of public key of the zone to look up in 431 * The hash of public key of the zone to look up in
421 */ 432 */
422 GNUNET_HashCode zone; 433 struct GNUNET_CRYPTO_ShortHashCode zone;
423 434
424 /** 435 /**
425 * The hash of the public key of the target zone 436 * The hash of the public key of the target zone
426 */ 437 */
427 GNUNET_HashCode value_zone; 438 struct GNUNET_CRYPTO_ShortHashCode value_zone;
428}; 439};
429 440
430/** 441/**
@@ -487,7 +498,7 @@ struct ZoneIterationStartMessage
487 /** 498 /**
488 * Zone hash 499 * Zone hash
489 */ 500 */
490 GNUNET_HashCode zone; 501 struct GNUNET_CRYPTO_ShortHashCode zone;
491 502
492 /** 503 /**
493 * Which flags must be included 504 * Which flags must be included