aboutsummaryrefslogtreecommitdiff
path: root/src/gns/gns.h
diff options
context:
space:
mode:
authorMartin Schanzenbach <mschanzenbach@posteo.de>2012-06-11 14:59:04 +0000
committerMartin Schanzenbach <mschanzenbach@posteo.de>2012-06-11 14:59:04 +0000
commit8338aebe1b4be9e8cb27be564851a14a9ebb6b14 (patch)
treed9b37c09a7bf1226d899671765548d5fe0bad145 /src/gns/gns.h
parentc4ea2585c71c4d619f3f24f32c277a5fa6b5772a (diff)
downloadgnunet-8338aebe1b4be9e8cb27be564851a14a9ebb6b14.tar.gz
gnunet-8338aebe1b4be9e8cb27be564851a14a9ebb6b14.zip
new API for shorten key
Diffstat (limited to 'src/gns/gns.h')
-rw-r--r--src/gns/gns.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/gns/gns.h b/src/gns/gns.h
index 408b68606..80ebb1288 100644
--- a/src/gns/gns.h
+++ b/src/gns/gns.h
@@ -63,6 +63,16 @@ struct GNUNET_GNS_ClientLookupMessage
63 struct GNUNET_CRYPTO_ShortHashCode zone; 63 struct GNUNET_CRYPTO_ShortHashCode zone;
64 64
65 /** 65 /**
66 * Should we use a shorten zone?
67 */
68 uint32_t use_shorten_zone GNUNET_PACKED;
69
70 /**
71 * If use_shorten_zone is set use this zone for shortening
72 */
73 struct GNUNET_CRYPTO_ShortHashCode shorten_zone;
74
75 /**
66 * the type of record to look up 76 * the type of record to look up
67 */ 77 */
68 enum GNUNET_GNS_RecordType type; 78 enum GNUNET_GNS_RecordType type;
@@ -120,7 +130,17 @@ struct GNUNET_GNS_ClientShortenMessage
120 * If use_default_zone is empty this zone is used for lookup 130 * If use_default_zone is empty this zone is used for lookup
121 */ 131 */
122 struct GNUNET_CRYPTO_ShortHashCode zone; 132 struct GNUNET_CRYPTO_ShortHashCode zone;
133
134 /**
135 * Should we use a shorten zone?
136 */
137 uint32_t use_shorten_zone GNUNET_PACKED;
123 138
139 /**
140 * If use_shorten_zone is set use this zone for shortening
141 */
142 struct GNUNET_CRYPTO_ShortHashCode shorten_zone;
143
124 /* Followed by the name to shorten up */ 144 /* Followed by the name to shorten up */
125}; 145};
126 146