aboutsummaryrefslogtreecommitdiff
path: root/src/gns/gns.h
diff options
context:
space:
mode:
authorMartin Schanzenbach <mschanzenbach@posteo.de>2012-06-13 17:36:47 +0000
committerMartin Schanzenbach <mschanzenbach@posteo.de>2012-06-13 17:36:47 +0000
commit1f5326cd1032cbcc914c7809df1a64994eeebbe9 (patch)
treebd04389845d0b3096d98e3e97033040486108830 /src/gns/gns.h
parenta8c5598ba43fcd61a5a340f14a3bab1613adbe7c (diff)
downloadgnunet-1f5326cd1032cbcc914c7809df1a64994eeebbe9.tar.gz
gnunet-1f5326cd1032cbcc914c7809df1a64994eeebbe9.zip
- big shorten algorithm rewrite
- API change for lookup - tests fixed - introduces 3 zone system: root, private and shortened
Diffstat (limited to 'src/gns/gns.h')
-rw-r--r--src/gns/gns.h25
1 files changed, 6 insertions, 19 deletions
diff --git a/src/gns/gns.h b/src/gns/gns.h
index 686729dd7..e34d0a086 100644
--- a/src/gns/gns.h
+++ b/src/gns/gns.h
@@ -63,25 +63,22 @@ struct GNUNET_GNS_ClientLookupMessage
63 uint32_t use_default_zone GNUNET_PACKED; 63 uint32_t use_default_zone GNUNET_PACKED;
64 64
65 /** 65 /**
66 * If use_default_zone is empty this zone is used for lookup 66 * Is a shorten key attached?
67 */ 67 */
68 struct GNUNET_CRYPTO_ShortHashCode zone; 68 uint32_t have_key GNUNET_PACKED;
69 69
70 /** 70 /**
71 * Should we use a shorten zone? 71 * If use_default_zone is empty this zone is used for lookup
72 */
73 uint32_t use_shorten_zone GNUNET_PACKED;
74
75 /**
76 * If use_shorten_zone is set use this zone for shortening
77 */ 72 */
78 struct GNUNET_CRYPTO_ShortHashCode shorten_zone; 73 struct GNUNET_CRYPTO_ShortHashCode zone;
79 74
80 /** 75 /**
81 * the type of record to look up 76 * the type of record to look up
82 */ 77 */
83 enum GNUNET_GNS_RecordType type; 78 enum GNUNET_GNS_RecordType type;
84 79
80 /* Followed by the key for shorten (optional) see have_key */
81
85 /* Followed by the name to look up */ 82 /* Followed by the name to look up */
86}; 83};
87 84
@@ -136,16 +133,6 @@ struct GNUNET_GNS_ClientShortenMessage
136 */ 133 */
137 struct GNUNET_CRYPTO_ShortHashCode zone; 134 struct GNUNET_CRYPTO_ShortHashCode zone;
138 135
139 /**
140 * Should we use a shorten zone?
141 */
142 uint32_t use_shorten_zone GNUNET_PACKED;
143
144 /**
145 * If use_shorten_zone is set use this zone for shortening
146 */
147 struct GNUNET_CRYPTO_ShortHashCode shorten_zone;
148
149 /* Followed by the name to shorten up */ 136 /* Followed by the name to shorten up */
150}; 137};
151 138