diff options
author | schanzen <schanzen@140774ce-b5e7-0310-ab8b-a85725594a96> | 2012-06-13 17:36:47 +0000 |
---|---|---|
committer | schanzen <schanzen@140774ce-b5e7-0310-ab8b-a85725594a96> | 2012-06-13 17:36:47 +0000 |
commit | bccea13bf320709a61ae6e648c5200a3c1222dfa (patch) | |
tree | bd04389845d0b3096d98e3e97033040486108830 /src/include/gnunet_gns_service.h | |
parent | fc9cb819735b9de73abf6e42c039b23d17df1cbc (diff) |
- big shorten algorithm rewrite
- API change for lookup
- tests fixed
- introduces 3 zone system: root, private and shortened
git-svn-id: https://gnunet.org/svn/gnunet@21980 140774ce-b5e7-0310-ab8b-a85725594a96
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 4d04addf9c..5bebee633c 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, * @param name the name to look up * @param type the GNUNET_GNS_RecordType to look for * @param only_cached GNUNET_NO to only check locally not DHT for performance + * @param shorten_key the private key of the shorten zone (can be NULL) * @param proc function to call on result * @param proc_cls closure for processor * @@ -138,6 +139,7 @@ GNUNET_GNS_lookup (struct GNUNET_GNS_Handle *handle, const char * name, enum GNUNET_GNS_RecordType type, int only_cached, + struct GNUNET_CRYPTO_RsaPrivateKey *shorten_key, GNUNET_GNS_LookupResultProcessor proc, void *proc_cls); @@ -148,9 +150,9 @@ GNUNET_GNS_lookup (struct GNUNET_GNS_Handle *handle, * @param handle handle to the GNS service * @param name the name to look up * @param zone the zone to start the resolution in - * @param shorten_zone the zone where to shorten names into * @param type the GNUNET_GNS_RecordType to look for * @param only_cached GNUNET_NO to only check locally not DHT for performance + * @param shorten_key the private key of the shorten zone (can be NULL) * @param proc function to call on result * @param proc_cls closure for processor * @@ -160,9 +162,9 @@ struct GNUNET_GNS_QueueEntry * GNUNET_GNS_lookup_zone (struct GNUNET_GNS_Handle *handle, const char * name, struct GNUNET_CRYPTO_ShortHashCode *zone, - struct GNUNET_CRYPTO_ShortHashCode *shorten_zone, enum GNUNET_GNS_RecordType type, int only_cached, + struct GNUNET_CRYPTO_RsaPrivateKey *shorten_key, GNUNET_GNS_LookupResultProcessor proc, void *proc_cls); @@ -202,7 +204,6 @@ GNUNET_GNS_shorten (struct GNUNET_GNS_Handle *handle, * @param handle handle to the GNS service * @param name the name to look up * @param zone the zone to start the resolution in - * @param shorten_zone the zone where to shorten names into * @param proc function to call on result * @param proc_cls closure for processor * @return handle to the operation @@ -211,7 +212,6 @@ struct GNUNET_GNS_QueueEntry * GNUNET_GNS_shorten_zone (struct GNUNET_GNS_Handle *handle, const char * name, struct GNUNET_CRYPTO_ShortHashCode *zone, - struct GNUNET_CRYPTO_ShortHashCode *shorten_zone, GNUNET_GNS_ShortenResultProcessor proc, void *proc_cls); |