diff options
author | Martin Schanzenbach <mschanzenbach@posteo.de> | 2012-03-19 18:51:32 +0000 |
---|---|---|
committer | Martin Schanzenbach <mschanzenbach@posteo.de> | 2012-03-19 18:51:32 +0000 |
commit | d2fb255905f0c93f50db2112594307bb1265742c (patch) | |
tree | e3e9c7387e66ebae147ff4e32224baea046b5ff8 /src/gns/gnunet-service-gns_resolver.h | |
parent | cdd5f401a24438425da10a11992c2bfd9992df47 (diff) | |
download | gnunet-d2fb255905f0c93f50db2112594307bb1265742c.tar.gz gnunet-d2fb255905f0c93f50db2112594307bb1265742c.zip |
-new short hashes, new short hash cmp
Diffstat (limited to 'src/gns/gnunet-service-gns_resolver.h')
-rw-r--r-- | src/gns/gnunet-service-gns_resolver.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/gns/gnunet-service-gns_resolver.h b/src/gns/gnunet-service-gns_resolver.h index 4f857825c..326aff22d 100644 --- a/src/gns/gnunet-service-gns_resolver.h +++ b/src/gns/gnunet-service-gns_resolver.h | |||
@@ -19,7 +19,7 @@ struct AuthorityChain | |||
19 | struct AuthorityChain *next; | 19 | struct AuthorityChain *next; |
20 | 20 | ||
21 | /* the zone hash of the authority */ | 21 | /* the zone hash of the authority */ |
22 | GNUNET_HashCode zone; | 22 | struct GNUNET_CRYPTO_ShortHashCode zone; |
23 | 23 | ||
24 | /* (local) name of the authority */ | 24 | /* (local) name of the authority */ |
25 | char name[MAX_DNS_LABEL_LENGTH]; | 25 | char name[MAX_DNS_LABEL_LENGTH]; |
@@ -99,7 +99,7 @@ struct ResolverHandle | |||
99 | int answered; | 99 | int answered; |
100 | 100 | ||
101 | /* the authoritative zone to query */ | 101 | /* the authoritative zone to query */ |
102 | GNUNET_HashCode authority; | 102 | struct GNUNET_CRYPTO_ShortHashCode authority; |
103 | 103 | ||
104 | /* the name of the authoritative zone to query */ | 104 | /* the name of the authoritative zone to query */ |
105 | char authority_name[MAX_DNS_LABEL_LENGTH]; | 105 | char authority_name[MAX_DNS_LABEL_LENGTH]; |
@@ -200,10 +200,10 @@ struct GetPseuAuthorityHandle | |||
200 | char new_name[MAX_DNS_LABEL_LENGTH]; | 200 | char new_name[MAX_DNS_LABEL_LENGTH]; |
201 | 201 | ||
202 | /* the zone of discovered authority */ | 202 | /* the zone of discovered authority */ |
203 | GNUNET_HashCode new_zone; | 203 | struct GNUNET_CRYPTO_ShortHashCode new_zone; |
204 | 204 | ||
205 | /* the zone of our authority */ | 205 | /* the zone of our authority */ |
206 | GNUNET_HashCode zone; | 206 | struct GNUNET_CRYPTO_ShortHashCode zone; |
207 | 207 | ||
208 | /* the private key of the zone to store the pseu in */ | 208 | /* the private key of the zone to store the pseu in */ |
209 | struct GNUNET_CRYPTO_RsaPrivateKey *key; | 209 | struct GNUNET_CRYPTO_RsaPrivateKey *key; |
@@ -238,7 +238,7 @@ gns_resolver_init(struct GNUNET_NAMESTORE_Handle *nh, | |||
238 | * @param cls the closure to pass to proc | 238 | * @param cls the closure to pass to proc |
239 | */ | 239 | */ |
240 | void | 240 | void |
241 | gns_resolver_lookup_record(GNUNET_HashCode zone, | 241 | gns_resolver_lookup_record(struct GNUNET_CRYPTO_ShortHashCode zone, |
242 | uint32_t record_type, | 242 | uint32_t record_type, |
243 | const char* name, | 243 | const char* name, |
244 | struct GNUNET_CRYPTO_RsaPrivateKey *key, | 244 | struct GNUNET_CRYPTO_RsaPrivateKey *key, |
@@ -246,7 +246,7 @@ gns_resolver_lookup_record(GNUNET_HashCode zone, | |||
246 | void* cls); | 246 | void* cls); |
247 | 247 | ||
248 | void | 248 | void |
249 | gns_resolver_shorten_name(GNUNET_HashCode zone, | 249 | gns_resolver_shorten_name(struct GNUNET_CRYPTO_ShortHashCode zone, |
250 | const char* name, | 250 | const char* name, |
251 | ShortenResultProcessor proc, | 251 | ShortenResultProcessor proc, |
252 | void* cls); | 252 | void* cls); |
@@ -261,7 +261,7 @@ gns_resolver_shorten_name(GNUNET_HashCode zone, | |||
261 | * @param cls the closure to pass to the processor | 261 | * @param cls the closure to pass to the processor |
262 | */ | 262 | */ |
263 | void | 263 | void |
264 | gns_resolver_get_authority(GNUNET_HashCode zone, | 264 | gns_resolver_get_authority(struct GNUNET_CRYPTO_ShortHashCode zone, |
265 | const char* name, | 265 | const char* name, |
266 | GetAuthorityResultProcessor proc, | 266 | GetAuthorityResultProcessor proc, |
267 | void* cls); | 267 | void* cls); |