diff options
author | Christian Grothoff <christian@grothoff.org> | 2017-02-22 21:29:42 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2017-02-22 21:29:42 +0100 |
commit | cd9531932c72478a3f7c17eb78238daa2302b2ef (patch) | |
tree | 6f3fce90b69107a3ecc8649ff93323b0d09c3d7d /src/include/gnunet_gns_service.h | |
parent | 9bc1c69e28bb4ac07b9bf9f5ed2192f78912c5f3 (diff) | |
download | gnunet-cd9531932c72478a3f7c17eb78238daa2302b2ef.tar.gz gnunet-cd9531932c72478a3f7c17eb78238daa2302b2ef.zip |
remove support for reverse lookup and shortening from GNS (#4849)
Diffstat (limited to 'src/include/gnunet_gns_service.h')
-rw-r--r-- | src/include/gnunet_gns_service.h | 37 |
1 files changed, 2 insertions, 35 deletions
diff --git a/src/include/gnunet_gns_service.h b/src/include/gnunet_gns_service.h index 44f57014d..ccc868c05 100644 --- a/src/include/gnunet_gns_service.h +++ b/src/include/gnunet_gns_service.h | |||
@@ -1,6 +1,6 @@ | |||
1 | /* | 1 | /* |
2 | This file is part of GNUnet | 2 | This file is part of GNUnet |
3 | Copyright (C) 2012-2014 GNUnet e.V. | 3 | Copyright (C) 2012-2014, 2017 GNUnet e.V. |
4 | 4 | ||
5 | GNUnet is free software; you can redistribute it and/or modify | 5 | GNUnet is free software; you can redistribute it and/or modify |
6 | it under the terms of the GNU General Public License as published | 6 | it under the terms of the GNU General Public License as published |
@@ -95,16 +95,6 @@ typedef void | |||
95 | uint32_t rd_count, | 95 | uint32_t rd_count, |
96 | const struct GNUNET_GNSRECORD_Data *rd); | 96 | const struct GNUNET_GNSRECORD_Data *rd); |
97 | 97 | ||
98 | /** | ||
99 | * Iterator called on obtained result for a GNS lookup. | ||
100 | * | ||
101 | * @param cls closure | ||
102 | * @param name result of the reverse lookup | ||
103 | */ | ||
104 | typedef void | ||
105 | (*GNUNET_GNS_ReverseLookupResultProcessor) (void *cls, | ||
106 | const char* name); | ||
107 | |||
108 | 98 | ||
109 | /** | 99 | /** |
110 | * Options for the GNS lookup. | 100 | * Options for the GNS lookup. |
@@ -138,13 +128,8 @@ enum GNUNET_GNS_LocalOptions | |||
138 | * @param zone zone to look in | 128 | * @param zone zone to look in |
139 | * @param type the GNS record type to look for | 129 | * @param type the GNS record type to look for |
140 | * @param options local options for the lookup | 130 | * @param options local options for the lookup |
141 | * @param shorten_zone_key the private key of the shorten zone (can be NULL); | ||
142 | * specify to enable automatic shortening (given a PSEU | ||
143 | * record, if a given pseudonym is not yet used in the | ||
144 | * shorten zone, we automatically add the respective zone | ||
145 | * under that name) | ||
146 | * @param proc function to call on result | 131 | * @param proc function to call on result |
147 | * @param proc_cls closure for processor | 132 | * @param proc_cls closure for @a proc |
148 | * @return handle to the queued request | 133 | * @return handle to the queued request |
149 | */ | 134 | */ |
150 | struct GNUNET_GNS_LookupRequest * | 135 | struct GNUNET_GNS_LookupRequest * |
@@ -153,27 +138,9 @@ GNUNET_GNS_lookup (struct GNUNET_GNS_Handle *handle, | |||
153 | const struct GNUNET_CRYPTO_EcdsaPublicKey *zone, | 138 | const struct GNUNET_CRYPTO_EcdsaPublicKey *zone, |
154 | uint32_t type, | 139 | uint32_t type, |
155 | enum GNUNET_GNS_LocalOptions options, | 140 | enum GNUNET_GNS_LocalOptions options, |
156 | const struct GNUNET_CRYPTO_EcdsaPrivateKey *shorten_zone_key, | ||
157 | GNUNET_GNS_LookupResultProcessor proc, | 141 | GNUNET_GNS_LookupResultProcessor proc, |
158 | void *proc_cls); | 142 | void *proc_cls); |
159 | 143 | ||
160 | /** | ||
161 | * Perform an asynchronous reverse lookup operation on the GNS. | ||
162 | * | ||
163 | * @param handle handle to the GNS service | ||
164 | * @param zone_key zone to find a name for | ||
165 | * @param root_key our zone | ||
166 | * @param proc processor to call on result | ||
167 | * @param proc_cls closure for @a proc | ||
168 | * @return handle to the request | ||
169 | */ | ||
170 | struct GNUNET_GNS_ReverseLookupRequest * | ||
171 | GNUNET_GNS_reverse_lookup (struct GNUNET_GNS_Handle *handle, | ||
172 | const struct GNUNET_CRYPTO_EcdsaPublicKey *zone_key, | ||
173 | const struct GNUNET_CRYPTO_EcdsaPublicKey *root_key, | ||
174 | GNUNET_GNS_ReverseLookupResultProcessor proc, | ||
175 | void *proc_cls); | ||
176 | |||
177 | 144 | ||
178 | /** | 145 | /** |
179 | * Cancel pending lookup request | 146 | * Cancel pending lookup request |