diff options
author | Martin Schanzenbach <mschanzenbach@posteo.de> | 2012-06-13 17:36:47 +0000 |
---|---|---|
committer | Martin Schanzenbach <mschanzenbach@posteo.de> | 2012-06-13 17:36:47 +0000 |
commit | 1f5326cd1032cbcc914c7809df1a64994eeebbe9 (patch) | |
tree | bd04389845d0b3096d98e3e97033040486108830 /src/include/gnunet_gns_service.h | |
parent | a8c5598ba43fcd61a5a340f14a3bab1613adbe7c (diff) | |
download | gnunet-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/include/gnunet_gns_service.h')
-rw-r--r-- | src/include/gnunet_gns_service.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/include/gnunet_gns_service.h b/src/include/gnunet_gns_service.h index 4d04addf9..5bebee633 100644 --- a/src/include/gnunet_gns_service.h +++ b/src/include/gnunet_gns_service.h | |||
@@ -128,6 +128,7 @@ typedef void (*GNUNET_GNS_LookupResultProcessor) (void *cls, | |||
128 | * @param name the name to look up | 128 | * @param name the name to look up |
129 | * @param type the GNUNET_GNS_RecordType to look for | 129 | * @param type the GNUNET_GNS_RecordType to look for |
130 | * @param only_cached GNUNET_NO to only check locally not DHT for performance | 130 | * @param only_cached GNUNET_NO to only check locally not DHT for performance |
131 | * @param shorten_key the private key of the shorten zone (can be NULL) | ||
131 | * @param proc function to call on result | 132 | * @param proc function to call on result |
132 | * @param proc_cls closure for processor | 133 | * @param proc_cls closure for processor |
133 | * | 134 | * |
@@ -138,6 +139,7 @@ GNUNET_GNS_lookup (struct GNUNET_GNS_Handle *handle, | |||
138 | const char * name, | 139 | const char * name, |
139 | enum GNUNET_GNS_RecordType type, | 140 | enum GNUNET_GNS_RecordType type, |
140 | int only_cached, | 141 | int only_cached, |
142 | struct GNUNET_CRYPTO_RsaPrivateKey *shorten_key, | ||
141 | GNUNET_GNS_LookupResultProcessor proc, | 143 | GNUNET_GNS_LookupResultProcessor proc, |
142 | void *proc_cls); | 144 | void *proc_cls); |
143 | 145 | ||
@@ -148,9 +150,9 @@ GNUNET_GNS_lookup (struct GNUNET_GNS_Handle *handle, | |||
148 | * @param handle handle to the GNS service | 150 | * @param handle handle to the GNS service |
149 | * @param name the name to look up | 151 | * @param name the name to look up |
150 | * @param zone the zone to start the resolution in | 152 | * @param zone the zone to start the resolution in |
151 | * @param shorten_zone the zone where to shorten names into | ||
152 | * @param type the GNUNET_GNS_RecordType to look for | 153 | * @param type the GNUNET_GNS_RecordType to look for |
153 | * @param only_cached GNUNET_NO to only check locally not DHT for performance | 154 | * @param only_cached GNUNET_NO to only check locally not DHT for performance |
155 | * @param shorten_key the private key of the shorten zone (can be NULL) | ||
154 | * @param proc function to call on result | 156 | * @param proc function to call on result |
155 | * @param proc_cls closure for processor | 157 | * @param proc_cls closure for processor |
156 | * | 158 | * |
@@ -160,9 +162,9 @@ struct GNUNET_GNS_QueueEntry * | |||
160 | GNUNET_GNS_lookup_zone (struct GNUNET_GNS_Handle *handle, | 162 | GNUNET_GNS_lookup_zone (struct GNUNET_GNS_Handle *handle, |
161 | const char * name, | 163 | const char * name, |
162 | struct GNUNET_CRYPTO_ShortHashCode *zone, | 164 | struct GNUNET_CRYPTO_ShortHashCode *zone, |
163 | struct GNUNET_CRYPTO_ShortHashCode *shorten_zone, | ||
164 | enum GNUNET_GNS_RecordType type, | 165 | enum GNUNET_GNS_RecordType type, |
165 | int only_cached, | 166 | int only_cached, |
167 | struct GNUNET_CRYPTO_RsaPrivateKey *shorten_key, | ||
166 | GNUNET_GNS_LookupResultProcessor proc, | 168 | GNUNET_GNS_LookupResultProcessor proc, |
167 | void *proc_cls); | 169 | void *proc_cls); |
168 | 170 | ||
@@ -202,7 +204,6 @@ GNUNET_GNS_shorten (struct GNUNET_GNS_Handle *handle, | |||
202 | * @param handle handle to the GNS service | 204 | * @param handle handle to the GNS service |
203 | * @param name the name to look up | 205 | * @param name the name to look up |
204 | * @param zone the zone to start the resolution in | 206 | * @param zone the zone to start the resolution in |
205 | * @param shorten_zone the zone where to shorten names into | ||
206 | * @param proc function to call on result | 207 | * @param proc function to call on result |
207 | * @param proc_cls closure for processor | 208 | * @param proc_cls closure for processor |
208 | * @return handle to the operation | 209 | * @return handle to the operation |
@@ -211,7 +212,6 @@ struct GNUNET_GNS_QueueEntry * | |||
211 | GNUNET_GNS_shorten_zone (struct GNUNET_GNS_Handle *handle, | 212 | GNUNET_GNS_shorten_zone (struct GNUNET_GNS_Handle *handle, |
212 | const char * name, | 213 | const char * name, |
213 | struct GNUNET_CRYPTO_ShortHashCode *zone, | 214 | struct GNUNET_CRYPTO_ShortHashCode *zone, |
214 | struct GNUNET_CRYPTO_ShortHashCode *shorten_zone, | ||
215 | GNUNET_GNS_ShortenResultProcessor proc, | 215 | GNUNET_GNS_ShortenResultProcessor proc, |
216 | void *proc_cls); | 216 | void *proc_cls); |
217 | 217 | ||