aboutsummaryrefslogtreecommitdiff
path: root/src/gns
diff options
context:
space:
mode:
Diffstat (limited to 'src/gns')
-rw-r--r--src/gns/Makefile.am48
-rw-r--r--src/gns/gns_api.c8
-rw-r--r--src/gns/gns_tld_api.c14
-rw-r--r--src/gns/gnunet-bcd.c4
-rw-r--r--src/gns/gnunet-gns-import.c2
-rw-r--r--src/gns/gnunet-service-gns.c10
-rw-r--r--src/gns/gnunet-service-gns.h2
-rw-r--r--src/gns/gnunet-service-gns_interceptor.c2
-rw-r--r--src/gns/gnunet-service-gns_resolver.c16
-rw-r--r--src/gns/gnunet-service-gns_resolver.h2
-rw-r--r--src/gns/plugin_gnsrecord_gns.c10
11 files changed, 59 insertions, 59 deletions
diff --git a/src/gns/Makefile.am b/src/gns/Makefile.am
index 0c50bc83f..b1f4e5ab8 100644
--- a/src/gns/Makefile.am
+++ b/src/gns/Makefile.am
@@ -84,13 +84,13 @@ CLEANFILES = test_gnunet_gns.sh
84libgnunet_plugin_rest_gns_la_SOURCES = \ 84libgnunet_plugin_rest_gns_la_SOURCES = \
85 plugin_rest_gns.c 85 plugin_rest_gns.c
86libgnunet_plugin_rest_gns_la_LIBADD = \ 86libgnunet_plugin_rest_gns_la_LIBADD = \
87 $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \ 87 $(top_builddir)/src/lib/gnsrecord/libgnunetgnsrecord.la \
88 $(top_builddir)/src/gnsrecord/libgnunetgnsrecordjson.la \ 88 $(top_builddir)/src/lib/gnsrecord/libgnunetgnsrecordjson.la \
89 libgnunetgns.la \ 89 libgnunetgns.la \
90 $(top_builddir)/src/rest/libgnunetrest.la \ 90 $(top_builddir)/src/rest/libgnunetrest.la \
91 $(top_builddir)/src/identity/libgnunetidentity.la \ 91 $(top_builddir)/src/identity/libgnunetidentity.la \
92 $(top_builddir)/src/json/libgnunetjson.la \ 92 $(top_builddir)/src/json/libgnunetjson.la \
93 $(top_builddir)/src/util/libgnunetutil.la $(XLIBS) \ 93 $(top_builddir)/src/lib/util/libgnunetutil.la $(XLIBS) \
94 $(LTLIBINTL) -ljansson $(MHD_LIBS) 94 $(LTLIBINTL) -ljansson $(MHD_LIBS)
95libgnunet_plugin_rest_gns_la_LDFLAGS = \ 95libgnunet_plugin_rest_gns_la_LDFLAGS = \
96 $(GN_PLUGIN_LDFLAGS) 96 $(GN_PLUGIN_LDFLAGS)
@@ -100,9 +100,9 @@ libgnunet_plugin_rest_gns_la_CFLAGS = $(MHD_CFLAGS) $(AM_CFLAGS)
100libgnunet_plugin_gnsrecord_gns_la_SOURCES = \ 100libgnunet_plugin_gnsrecord_gns_la_SOURCES = \
101 plugin_gnsrecord_gns.c 101 plugin_gnsrecord_gns.c
102libgnunet_plugin_gnsrecord_gns_la_LIBADD = \ 102libgnunet_plugin_gnsrecord_gns_la_LIBADD = \
103 $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \ 103 $(top_builddir)/src/lib/gnsrecord/libgnunetgnsrecord.la \
104 $(top_builddir)/src/identity/libgnunetidentity.la \ 104 $(top_builddir)/src/identity/libgnunetidentity.la \
105 $(top_builddir)/src/util/libgnunetutil.la \ 105 $(top_builddir)/src/lib/util/libgnunetutil.la \
106 $(LTLIBINTL) 106 $(LTLIBINTL)
107libgnunet_plugin_gnsrecord_gns_la_LDFLAGS = \ 107libgnunet_plugin_gnsrecord_gns_la_LDFLAGS = \
108 $(GN_PLUGIN_LDFLAGS) 108 $(GN_PLUGIN_LDFLAGS)
@@ -112,9 +112,9 @@ gnunet_gns_SOURCES = \
112 gnunet-gns.c 112 gnunet-gns.c
113gnunet_gns_LDADD = \ 113gnunet_gns_LDADD = \
114 libgnunetgns.la \ 114 libgnunetgns.la \
115 $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \ 115 $(top_builddir)/src/lib/gnsrecord/libgnunetgnsrecord.la \
116 $(top_builddir)/src/identity/libgnunetidentity.la \ 116 $(top_builddir)/src/identity/libgnunetidentity.la \
117 $(top_builddir)/src/util/libgnunetutil.la \ 117 $(top_builddir)/src/lib/util/libgnunetutil.la \
118 $(LIBIDN) $(LIBIDN2) \ 118 $(LIBIDN) $(LIBIDN2) \
119 $(GN_LIBINTL) 119 $(GN_LIBINTL)
120 120
@@ -122,16 +122,16 @@ gnunet_gns_benchmark_SOURCES = \
122 gnunet-gns-benchmark.c 122 gnunet-gns-benchmark.c
123gnunet_gns_benchmark_LDADD = \ 123gnunet_gns_benchmark_LDADD = \
124 libgnunetgns.la \ 124 libgnunetgns.la \
125 $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \ 125 $(top_builddir)/src/lib/gnsrecord/libgnunetgnsrecord.la \
126 $(top_builddir)/src/identity/libgnunetidentity.la \ 126 $(top_builddir)/src/identity/libgnunetidentity.la \
127 $(top_builddir)/src/util/libgnunetutil.la \ 127 $(top_builddir)/src/lib/util/libgnunetutil.la \
128 $(GN_LIBINTL) 128 $(GN_LIBINTL)
129 129
130 130
131gnunet_bcd_SOURCES = \ 131gnunet_bcd_SOURCES = \
132 gnunet-bcd.c 132 gnunet-bcd.c
133gnunet_bcd_LDADD = \ 133gnunet_bcd_LDADD = \
134 $(top_builddir)/src/util/libgnunetutil.la \ 134 $(top_builddir)/src/lib/util/libgnunetutil.la \
135 $(top_builddir)/src/identity/libgnunetidentity.la \ 135 $(top_builddir)/src/identity/libgnunetidentity.la \
136 $(GN_LIBINTL) $(MHD_LIBS) 136 $(GN_LIBINTL) $(MHD_LIBS)
137gnunet_bcd_CFLAGS = $(MHD_CFLAGS) $(AM_CFLAGS) 137gnunet_bcd_CFLAGS = $(MHD_CFLAGS) $(AM_CFLAGS)
@@ -140,9 +140,9 @@ gnunet_bcd_CFLAGS = $(MHD_CFLAGS) $(AM_CFLAGS)
140gnunet_dns2gns_SOURCES = \ 140gnunet_dns2gns_SOURCES = \
141 gnunet-dns2gns.c 141 gnunet-dns2gns.c
142gnunet_dns2gns_LDADD = \ 142gnunet_dns2gns_LDADD = \
143 $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \ 143 $(top_builddir)/src/lib/gnsrecord/libgnunetgnsrecord.la \
144 libgnunetgns.la \ 144 libgnunetgns.la \
145 $(top_builddir)/src/util/libgnunetutil.la \ 145 $(top_builddir)/src/lib/util/libgnunetutil.la \
146 $(USE_VPN) \ 146 $(USE_VPN) \
147 $(top_builddir)/src/identity/libgnunetidentity.la \ 147 $(top_builddir)/src/identity/libgnunetidentity.la \
148 $(GN_LIBINTL) 148 $(GN_LIBINTL)
@@ -168,7 +168,7 @@ gnunet_gns_proxy_SOURCES = \
168gnunet_gns_proxy_LDADD = $(MHD_LIBS) @LIBCURL@ -lgnutls \ 168gnunet_gns_proxy_LDADD = $(MHD_LIBS) @LIBCURL@ -lgnutls \
169 libgnunetgns.la \ 169 libgnunetgns.la \
170 $(top_builddir)/src/identity/libgnunetidentity.la \ 170 $(top_builddir)/src/identity/libgnunetidentity.la \
171 $(top_builddir)/src/util/libgnunetutil.la \ 171 $(top_builddir)/src/lib/util/libgnunetutil.la \
172 $(GN_LIBINTL) 172 $(GN_LIBINTL)
173if HAVE_GNUTLS_DANE 173if HAVE_GNUTLS_DANE
174gnunet_gns_proxy_LDADD += -lgnutls-dane 174gnunet_gns_proxy_LDADD += -lgnutls-dane
@@ -178,7 +178,7 @@ gnunet_gns_proxy_CFLAGS = $(MHD_CFLAGS) @LIBCURL_CPPFLAGS@ $(AM_CFLAGS)
178test_gns_proxy_SOURCES = \ 178test_gns_proxy_SOURCES = \
179 test_gns_proxy.c 179 test_gns_proxy.c
180test_gns_proxy_LDADD = $(MHD_LIBS) @LIBCURL@ -lgnutls \ 180test_gns_proxy_LDADD = $(MHD_LIBS) @LIBCURL@ -lgnutls \
181 $(top_builddir)/src/util/libgnunetutil.la \ 181 $(top_builddir)/src/lib/util/libgnunetutil.la \
182 $(GN_LIBINTL) 182 $(GN_LIBINTL)
183test_gns_proxy_CFLAGS = $(MHD_CFLAGS) @LIBCURL_CPPFLAGS@ $(AM_CFLAGS) 183test_gns_proxy_CFLAGS = $(MHD_CFLAGS) @LIBCURL_CPPFLAGS@ $(AM_CFLAGS)
184 184
@@ -187,8 +187,8 @@ test_gns_proxy_CFLAGS = $(MHD_CFLAGS) @LIBCURL_CPPFLAGS@ $(AM_CFLAGS)
187#gnunet_gns_import_LDADD = \ 187#gnunet_gns_import_LDADD = \
188# $(top_builddir)/src/identity/libgnunetidentity.la \ 188# $(top_builddir)/src/identity/libgnunetidentity.la \
189# $(top_builddir)/src/namestore/libgnunetnamestore.la \ 189# $(top_builddir)/src/namestore/libgnunetnamestore.la \
190# $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \ 190# $(top_builddir)/src/lib/gnsrecord/libgnunetgnsrecord.la \
191# $(top_builddir)/src/util/libgnunetutil.la \ 191# $(top_builddir)/src/lib/util/libgnunetutil.la \
192# $(GN_LIBINTL) 192# $(GN_LIBINTL)
193 193
194 194
@@ -198,11 +198,11 @@ gnunet_service_gns_SOURCES = \
198 gnunet-service-gns_interceptor.c gnunet-service-gns_interceptor.h 198 gnunet-service-gns_interceptor.c gnunet-service-gns_interceptor.h
199gnunet_service_gns_LDADD = \ 199gnunet_service_gns_LDADD = \
200 -lm \ 200 -lm \
201 $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \ 201 $(top_builddir)/src/lib/gnsrecord/libgnunetgnsrecord.la \
202 $(top_builddir)/src/identity/libgnunetidentity.la \ 202 $(top_builddir)/src/identity/libgnunetidentity.la \
203 $(top_builddir)/src/revocation/libgnunetrevocation.la \ 203 $(top_builddir)/src/revocation/libgnunetrevocation.la \
204 $(top_builddir)/src/statistics/libgnunetstatistics.la \ 204 $(top_builddir)/src/statistics/libgnunetstatistics.la \
205 $(top_builddir)/src/util/libgnunetutil.la \ 205 $(top_builddir)/src/lib/util/libgnunetutil.la \
206 $(top_builddir)/src/dns/libgnunetdns.la \ 206 $(top_builddir)/src/dns/libgnunetdns.la \
207 $(top_builddir)/src/dht/libgnunetdht.la \ 207 $(top_builddir)/src/dht/libgnunetdht.la \
208 $(top_builddir)/src/namecache/libgnunetnamecache.la \ 208 $(top_builddir)/src/namecache/libgnunetnamecache.la \
@@ -214,9 +214,9 @@ libgnunetgns_la_SOURCES = \
214 gns_api.c gns_api.h \ 214 gns_api.c gns_api.h \
215 gns_tld_api.c gns.h 215 gns_tld_api.c gns.h
216libgnunetgns_la_LIBADD = \ 216libgnunetgns_la_LIBADD = \
217 $(top_builddir)/src/util/libgnunetutil.la $(XLIB) \ 217 $(top_builddir)/src/lib/util/libgnunetutil.la $(XLIB) \
218 $(top_builddir)/src/identity/libgnunetidentity.la \ 218 $(top_builddir)/src/identity/libgnunetidentity.la \
219 $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la 219 $(top_builddir)/src/lib/gnsrecord/libgnunetgnsrecord.la
220libgnunetgns_la_LDFLAGS = \ 220libgnunetgns_la_LDFLAGS = \
221 $(GN_LIBINTL) \ 221 $(GN_LIBINTL) \
222 $(GN_LIB_LDFLAGS) 222 $(GN_LIB_LDFLAGS)
@@ -225,11 +225,11 @@ libgnunetgns_la_LDFLAGS = \
225libgnunet_plugin_block_gns_la_SOURCES = \ 225libgnunet_plugin_block_gns_la_SOURCES = \
226 plugin_block_gns.c 226 plugin_block_gns.c
227libgnunet_plugin_block_gns_la_LIBADD = \ 227libgnunet_plugin_block_gns_la_LIBADD = \
228 $(top_builddir)/src/util/libgnunetutil.la \ 228 $(top_builddir)/src/lib/util/libgnunetutil.la \
229 $(top_builddir)/src/block/libgnunetblock.la \ 229 $(top_builddir)/src/lib/block/libgnunetblock.la \
230 $(top_builddir)/src/block/libgnunetblockgroup.la \ 230 $(top_builddir)/src/lib/block/libgnunetblockgroup.la \
231 $(top_builddir)/src/identity/libgnunetidentity.la \ 231 $(top_builddir)/src/identity/libgnunetidentity.la \
232 $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la 232 $(top_builddir)/src/lib/gnsrecord/libgnunetgnsrecord.la
233libgnunet_plugin_block_gns_la_LDFLAGS = \ 233libgnunet_plugin_block_gns_la_LDFLAGS = \
234 $(GN_LIBINTL) \ 234 $(GN_LIBINTL) \
235 $(GN_PLUGIN_LDFLAGS) 235 $(GN_PLUGIN_LDFLAGS)
diff --git a/src/gns/gns_api.c b/src/gns/gns_api.c
index 2e5ddc2b7..0dc7580f9 100644
--- a/src/gns/gns_api.c
+++ b/src/gns/gns_api.c
@@ -342,7 +342,7 @@ GNUNET_GNS_lookup_cancel (struct GNUNET_GNS_LookupRequest *lr)
342struct GNUNET_GNS_LookupRequest * 342struct GNUNET_GNS_LookupRequest *
343GNUNET_GNS_lookup_limited (struct GNUNET_GNS_Handle *handle, 343GNUNET_GNS_lookup_limited (struct GNUNET_GNS_Handle *handle,
344 const char *name, 344 const char *name,
345 const struct GNUNET_IDENTITY_PublicKey *zone, 345 const struct GNUNET_CRYPTO_PublicKey *zone,
346 uint32_t type, 346 uint32_t type,
347 enum GNUNET_GNS_LocalOptions options, 347 enum GNUNET_GNS_LocalOptions options,
348 uint16_t recursion_depth_limit, 348 uint16_t recursion_depth_limit,
@@ -376,7 +376,7 @@ GNUNET_GNS_lookup_limited (struct GNUNET_GNS_Handle *handle,
376 lr->lookup_proc = proc; 376 lr->lookup_proc = proc;
377 lr->proc_cls = proc_cls; 377 lr->proc_cls = proc_cls;
378 lr->r_id = handle->r_id_gen++; 378 lr->r_id = handle->r_id_gen++;
379 key_len = GNUNET_IDENTITY_public_key_get_length (zone); 379 key_len = GNUNET_CRYPTO_public_key_get_length (zone);
380 lr->env = GNUNET_MQ_msg_extra (lookup_msg, 380 lr->env = GNUNET_MQ_msg_extra (lookup_msg,
381 nlen + key_len, 381 nlen + key_len,
382 GNUNET_MESSAGE_TYPE_GNS_LOOKUP); 382 GNUNET_MESSAGE_TYPE_GNS_LOOKUP);
@@ -386,7 +386,7 @@ GNUNET_GNS_lookup_limited (struct GNUNET_GNS_Handle *handle,
386 lookup_msg->recursion_depth_limit 386 lookup_msg->recursion_depth_limit
387 = htons (recursion_depth_limit); 387 = htons (recursion_depth_limit);
388 lookup_msg->key_len = htonl (key_len); 388 lookup_msg->key_len = htonl (key_len);
389 written = GNUNET_IDENTITY_write_public_key_to_buffer (zone, 389 written = GNUNET_CRYPTO_write_public_key_to_buffer (zone,
390 buf, 390 buf,
391 key_len); 391 key_len);
392 GNUNET_assert (0 <= written); 392 GNUNET_assert (0 <= written);
@@ -420,7 +420,7 @@ GNUNET_GNS_lookup_limited (struct GNUNET_GNS_Handle *handle,
420struct GNUNET_GNS_LookupRequest* 420struct GNUNET_GNS_LookupRequest*
421GNUNET_GNS_lookup (struct GNUNET_GNS_Handle *handle, 421GNUNET_GNS_lookup (struct GNUNET_GNS_Handle *handle,
422 const char *name, 422 const char *name,
423 const struct GNUNET_IDENTITY_PublicKey *zone, 423 const struct GNUNET_CRYPTO_PublicKey *zone,
424 uint32_t type, 424 uint32_t type,
425 enum GNUNET_GNS_LocalOptions options, 425 enum GNUNET_GNS_LocalOptions options,
426 GNUNET_GNS_LookupResultProcessor proc, 426 GNUNET_GNS_LookupResultProcessor proc,
diff --git a/src/gns/gns_tld_api.c b/src/gns/gns_tld_api.c
index 78a70f14e..1ea87fd97 100644
--- a/src/gns/gns_tld_api.c
+++ b/src/gns/gns_tld_api.c
@@ -166,7 +166,7 @@ process_lookup_result (void *cls,
166 */ 166 */
167static void 167static void
168lookup_with_public_key (struct GNUNET_GNS_LookupWithTldRequest *ltr, 168lookup_with_public_key (struct GNUNET_GNS_LookupWithTldRequest *ltr,
169 const struct GNUNET_IDENTITY_PublicKey *pkey) 169 const struct GNUNET_CRYPTO_PublicKey *pkey)
170{ 170{
171 ltr->lr = GNUNET_GNS_lookup (ltr->gns_handle, 171 ltr->lr = GNUNET_GNS_lookup (ltr->gns_handle,
172 ltr->name, 172 ltr->name,
@@ -189,11 +189,11 @@ lookup_with_public_key (struct GNUNET_GNS_LookupWithTldRequest *ltr,
189 */ 189 */
190static void 190static void
191identity_zone_cb (void *cls, 191identity_zone_cb (void *cls,
192 const struct GNUNET_IDENTITY_PrivateKey *priv, 192 const struct GNUNET_CRYPTO_PrivateKey *priv,
193 const char *ego_name) 193 const char *ego_name)
194{ 194{
195 struct GNUNET_GNS_LookupWithTldRequest *ltr = cls; 195 struct GNUNET_GNS_LookupWithTldRequest *ltr = cls;
196 struct GNUNET_IDENTITY_PublicKey pkey; 196 struct GNUNET_CRYPTO_PublicKey pkey;
197 197
198 ltr->id_co = NULL; 198 ltr->id_co = NULL;
199 if (NULL == priv) 199 if (NULL == priv)
@@ -218,7 +218,7 @@ identity_zone_cb (void *cls,
218 ltr->options = GNUNET_GNS_LO_NO_DHT; 218 ltr->options = GNUNET_GNS_LO_NO_DHT;
219 else 219 else
220 ltr->options = GNUNET_GNS_LO_LOCAL_MASTER; 220 ltr->options = GNUNET_GNS_LO_LOCAL_MASTER;
221 GNUNET_IDENTITY_key_get_public (priv, &pkey); 221 GNUNET_CRYPTO_key_get_public (priv, &pkey);
222 lookup_with_public_key (ltr, &pkey); 222 lookup_with_public_key (ltr, &pkey);
223} 223}
224 224
@@ -248,7 +248,7 @@ GNUNET_GNS_lookup_with_tld (struct GNUNET_GNS_Handle *handle,
248 const char *tld; 248 const char *tld;
249 char *dot_tld; 249 char *dot_tld;
250 char *zonestr; 250 char *zonestr;
251 struct GNUNET_IDENTITY_PublicKey pkey; 251 struct GNUNET_CRYPTO_PublicKey pkey;
252 252
253 ltr = GNUNET_new (struct GNUNET_GNS_LookupWithTldRequest); 253 ltr = GNUNET_new (struct GNUNET_GNS_LookupWithTldRequest);
254 ltr->gns_handle = handle; 254 ltr->gns_handle = handle;
@@ -260,7 +260,7 @@ GNUNET_GNS_lookup_with_tld (struct GNUNET_GNS_Handle *handle,
260 /* start with trivial case: TLD is zkey */ 260 /* start with trivial case: TLD is zkey */
261 tld = get_tld (ltr->name); 261 tld = get_tld (ltr->name);
262 if (GNUNET_OK == 262 if (GNUNET_OK ==
263 GNUNET_IDENTITY_public_key_from_string (tld, &pkey)) 263 GNUNET_CRYPTO_public_key_from_string (tld, &pkey))
264 { 264 {
265 LOG (GNUNET_ERROR_TYPE_DEBUG, 265 LOG (GNUNET_ERROR_TYPE_DEBUG,
266 "`%s' seems to be a valid zone key\n", tld); 266 "`%s' seems to be a valid zone key\n", tld);
@@ -282,7 +282,7 @@ GNUNET_GNS_lookup_with_tld (struct GNUNET_GNS_Handle *handle,
282 &zonestr)) 282 &zonestr))
283 { 283 {
284 if (GNUNET_OK != 284 if (GNUNET_OK !=
285 GNUNET_IDENTITY_public_key_from_string (zonestr, 285 GNUNET_CRYPTO_public_key_from_string (zonestr,
286 &pkey)) 286 &pkey))
287 { 287 {
288 GNUNET_log_config_invalid ( 288 GNUNET_log_config_invalid (
diff --git a/src/gns/gnunet-bcd.c b/src/gns/gnunet-bcd.c
index 754f8ac6f..0f7fb6507 100644
--- a/src/gns/gnunet-bcd.c
+++ b/src/gns/gnunet-bcd.c
@@ -364,9 +364,9 @@ create_response (void *cls,
364 MHD_GET_ARGUMENT_KIND, 364 MHD_GET_ARGUMENT_KIND,
365 "gnspng"); 365 "gnspng");
366 366
367 struct GNUNET_IDENTITY_PublicKey pk; 367 struct GNUNET_CRYPTO_PublicKey pk;
368 if (NULL == gnskey 368 if (NULL == gnskey
369 || GNUNET_OK != GNUNET_IDENTITY_public_key_from_string (gnskey, &pk)) 369 || GNUNET_OK != GNUNET_CRYPTO_public_key_from_string (gnskey, &pk))
370 { 370 {
371 return MHD_queue_response (connection, 371 return MHD_queue_response (connection,
372 MHD_HTTP_BAD_REQUEST, 372 MHD_HTTP_BAD_REQUEST,
diff --git a/src/gns/gnunet-gns-import.c b/src/gns/gnunet-gns-import.c
index e99c4d3dd..5d4602682 100644
--- a/src/gns/gnunet-gns-import.c
+++ b/src/gns/gnunet-gns-import.c
@@ -168,7 +168,7 @@ check_pkey (unsigned int rd_len, const struct GNUNET_GNSRECORD_Data *rd,
168 char *pk, int *found_rec) 168 char *pk, int *found_rec)
169{ 169{
170 int i; 170 int i;
171 struct GNUNET_IDENTITY_PublicKey pubkey; 171 struct GNUNET_CRYPTO_PublicKey pubkey;
172 172
173 for (i = 0; i < rd_len; i++) 173 for (i = 0; i < rd_len; i++)
174 { 174 {
diff --git a/src/gns/gnunet-service-gns.c b/src/gns/gnunet-service-gns.c
index fc8de860d..aaf82a557 100644
--- a/src/gns/gnunet-service-gns.c
+++ b/src/gns/gnunet-service-gns.c
@@ -122,7 +122,7 @@ struct GNS_TopLevelDomain
122 /** 122 /**
123 * Public key associated with the @a tld. 123 * Public key associated with the @a tld.
124 */ 124 */
125 struct GNUNET_IDENTITY_PublicKey pkey; 125 struct GNUNET_CRYPTO_PublicKey pkey;
126 126
127 /** 127 /**
128 * Top-level domain as a string, including leading ".". 128 * Top-level domain as a string, including leading ".".
@@ -176,7 +176,7 @@ static struct GNS_TopLevelDomain *tld_tail;
176 */ 176 */
177int 177int
178GNS_find_tld (const char *tld_str, 178GNS_find_tld (const char *tld_str,
179 struct GNUNET_IDENTITY_PublicKey *pkey) 179 struct GNUNET_CRYPTO_PublicKey *pkey)
180{ 180{
181 if ('\0' == *tld_str) 181 if ('\0' == *tld_str)
182 return GNUNET_NO; 182 return GNUNET_NO;
@@ -420,7 +420,7 @@ handle_lookup (void *cls,
420{ 420{
421 struct GnsClient *gc = cls; 421 struct GnsClient *gc = cls;
422 struct ClientLookupHandle *clh; 422 struct ClientLookupHandle *clh;
423 struct GNUNET_IDENTITY_PublicKey zone; 423 struct GNUNET_CRYPTO_PublicKey zone;
424 const char *name; 424 const char *name;
425 size_t key_len; 425 size_t key_len;
426 size_t read; 426 size_t read;
@@ -434,7 +434,7 @@ handle_lookup (void *cls,
434 clh->gc = gc; 434 clh->gc = gc;
435 clh->request_id = sh_msg->id; 435 clh->request_id = sh_msg->id;
436 if ((GNUNET_SYSERR == 436 if ((GNUNET_SYSERR ==
437 GNUNET_IDENTITY_read_public_key_from_buffer (&sh_msg[1], 437 GNUNET_CRYPTO_read_public_key_from_buffer (&sh_msg[1],
438 key_len, 438 key_len,
439 &zone, 439 &zone,
440 &read)) || 440 &read)) ||
@@ -498,7 +498,7 @@ read_service_conf (void *cls,
498 const char *option, 498 const char *option,
499 const char *value) 499 const char *value)
500{ 500{
501 struct GNUNET_IDENTITY_PublicKey pk; 501 struct GNUNET_CRYPTO_PublicKey pk;
502 struct GNS_TopLevelDomain *tld; 502 struct GNS_TopLevelDomain *tld;
503 503
504 (void) cls; 504 (void) cls;
diff --git a/src/gns/gnunet-service-gns.h b/src/gns/gnunet-service-gns.h
index d4fb9ec9f..13e28349c 100644
--- a/src/gns/gnunet-service-gns.h
+++ b/src/gns/gnunet-service-gns.h
@@ -37,7 +37,7 @@
37 */ 37 */
38int 38int
39GNS_find_tld (const char *tld_str, 39GNS_find_tld (const char *tld_str,
40 struct GNUNET_IDENTITY_PublicKey *pkey); 40 struct GNUNET_CRYPTO_PublicKey *pkey);
41 41
42 42
43/** 43/**
diff --git a/src/gns/gnunet-service-gns_interceptor.c b/src/gns/gnunet-service-gns_interceptor.c
index 3358692da..f49d60b94 100644
--- a/src/gns/gnunet-service-gns_interceptor.c
+++ b/src/gns/gnunet-service-gns_interceptor.c
@@ -313,7 +313,7 @@ handle_dns_request (void *cls,
313{ 313{
314 struct GNUNET_DNSPARSER_Packet *p; 314 struct GNUNET_DNSPARSER_Packet *p;
315 struct InterceptLookupHandle *ilh; 315 struct InterceptLookupHandle *ilh;
316 struct GNUNET_IDENTITY_PublicKey zone; 316 struct GNUNET_CRYPTO_PublicKey zone;
317 317
318 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 318 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
319 "Hijacked a DNS request. Processing.\n"); 319 "Hijacked a DNS request. Processing.\n");
diff --git a/src/gns/gnunet-service-gns_resolver.c b/src/gns/gnunet-service-gns_resolver.c
index b6a81b3a1..aa0189b15 100644
--- a/src/gns/gnunet-service-gns_resolver.c
+++ b/src/gns/gnunet-service-gns_resolver.c
@@ -164,7 +164,7 @@ struct AuthorityChain
164 /** 164 /**
165 * The zone of the GNS authority 165 * The zone of the GNS authority
166 */ 166 */
167 struct GNUNET_IDENTITY_PublicKey gns_authority; 167 struct GNUNET_CRYPTO_PublicKey gns_authority;
168 168
169 struct 169 struct
170 { 170 {
@@ -264,7 +264,7 @@ struct GNS_ResolverHandle
264 /** 264 /**
265 * The top-level GNS authoritative zone to query 265 * The top-level GNS authoritative zone to query
266 */ 266 */
267 struct GNUNET_IDENTITY_PublicKey authority_zone; 267 struct GNUNET_CRYPTO_PublicKey authority_zone;
268 268
269 /** 269 /**
270 * called when resolution phase finishes 270 * called when resolution phase finishes
@@ -1213,7 +1213,7 @@ handle_gns_redirect_result (struct GNS_ResolverHandle *rh,
1213 const char *tld; 1213 const char *tld;
1214 struct AuthorityChain *ac; 1214 struct AuthorityChain *ac;
1215 int af; 1215 int af;
1216 struct GNUNET_IDENTITY_PublicKey zone; 1216 struct GNUNET_CRYPTO_PublicKey zone;
1217 1217
1218 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 1218 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
1219 "Handling GNS REDIRECT result `%s'\n", 1219 "Handling GNS REDIRECT result `%s'\n",
@@ -1644,7 +1644,7 @@ recursive_pkey_resolution (struct GNS_ResolverHandle *rh,
1644 const struct GNUNET_GNSRECORD_Data *rd) 1644 const struct GNUNET_GNSRECORD_Data *rd)
1645{ 1645{
1646 struct AuthorityChain *ac; 1646 struct AuthorityChain *ac;
1647 struct GNUNET_IDENTITY_PublicKey auth; 1647 struct GNUNET_CRYPTO_PublicKey auth;
1648 1648
1649 /* delegation to another zone */ 1649 /* delegation to another zone */
1650 if (GNUNET_OK != GNUNET_GNSRECORD_identity_from_data (rd->data, 1650 if (GNUNET_OK != GNUNET_GNSRECORD_identity_from_data (rd->data,
@@ -1703,7 +1703,7 @@ recursive_gns2dns_resolution (struct GNS_ResolverHandle *rh,
1703 char *n; 1703 char *n;
1704 size_t off; 1704 size_t off;
1705 struct Gns2DnsPending *gp; 1705 struct Gns2DnsPending *gp;
1706 struct GNUNET_IDENTITY_PublicKey zone; 1706 struct GNUNET_CRYPTO_PublicKey zone;
1707 struct sockaddr_in v4; 1707 struct sockaddr_in v4;
1708 struct sockaddr_in6 v6; 1708 struct sockaddr_in6 v6;
1709 1709
@@ -2173,7 +2173,7 @@ handle_gns_resolution_result (void *cls,
2173 case GNUNET_GNSRECORD_TYPE_PKEY: 2173 case GNUNET_GNSRECORD_TYPE_PKEY:
2174 case GNUNET_GNSRECORD_TYPE_EDKEY: 2174 case GNUNET_GNSRECORD_TYPE_EDKEY:
2175 { 2175 {
2176 struct GNUNET_IDENTITY_PublicKey pubkey; 2176 struct GNUNET_CRYPTO_PublicKey pubkey;
2177 if (rd[i].data_size < sizeof(uint32_t)) 2177 if (rd[i].data_size < sizeof(uint32_t))
2178 { 2178 {
2179 GNUNET_break_op (0); 2179 GNUNET_break_op (0);
@@ -2530,7 +2530,7 @@ handle_namecache_block_response (void *cls,
2530 struct GNS_ResolverHandle *rh = cls; 2530 struct GNS_ResolverHandle *rh = cls;
2531 struct AuthorityChain *ac = rh->ac_tail; 2531 struct AuthorityChain *ac = rh->ac_tail;
2532 const char *label = ac->label; 2532 const char *label = ac->label;
2533 const struct GNUNET_IDENTITY_PublicKey *auth = 2533 const struct GNUNET_CRYPTO_PublicKey *auth =
2534 &ac->authority_info.gns_authority; 2534 &ac->authority_info.gns_authority;
2535 struct GNUNET_HashCode query; 2535 struct GNUNET_HashCode query;
2536 2536
@@ -2790,7 +2790,7 @@ start_resolver_lookup (void *cls)
2790 * @return handle to cancel operation 2790 * @return handle to cancel operation
2791 */ 2791 */
2792struct GNS_ResolverHandle * 2792struct GNS_ResolverHandle *
2793GNS_resolver_lookup (const struct GNUNET_IDENTITY_PublicKey *zone, 2793GNS_resolver_lookup (const struct GNUNET_CRYPTO_PublicKey *zone,
2794 uint32_t record_type, 2794 uint32_t record_type,
2795 const char *name, 2795 const char *name,
2796 enum GNUNET_GNS_LocalOptions options, 2796 enum GNUNET_GNS_LocalOptions options,
diff --git a/src/gns/gnunet-service-gns_resolver.h b/src/gns/gnunet-service-gns_resolver.h
index b099c5d65..908af58e7 100644
--- a/src/gns/gnunet-service-gns_resolver.h
+++ b/src/gns/gnunet-service-gns_resolver.h
@@ -86,7 +86,7 @@ typedef void
86 * @return handle to cancel operation 86 * @return handle to cancel operation
87 */ 87 */
88struct GNS_ResolverHandle * 88struct GNS_ResolverHandle *
89GNS_resolver_lookup (const struct GNUNET_IDENTITY_PublicKey *zone, 89GNS_resolver_lookup (const struct GNUNET_CRYPTO_PublicKey *zone,
90 uint32_t record_type, 90 uint32_t record_type,
91 const char *name, 91 const char *name,
92 enum GNUNET_GNS_LocalOptions options, 92 enum GNUNET_GNS_LocalOptions options,
diff --git a/src/gns/plugin_gnsrecord_gns.c b/src/gns/plugin_gnsrecord_gns.c
index 7c1c9b2e6..65587172d 100644
--- a/src/gns/plugin_gnsrecord_gns.c
+++ b/src/gns/plugin_gnsrecord_gns.c
@@ -49,7 +49,7 @@ gns_value_to_string (void *cls,
49 size_t data_size) 49 size_t data_size)
50{ 50{
51 const char *cdata; 51 const char *cdata;
52 struct GNUNET_IDENTITY_PublicKey pk; 52 struct GNUNET_CRYPTO_PublicKey pk;
53 53
54 switch (type) 54 switch (type)
55 { 55 {
@@ -61,7 +61,7 @@ gns_value_to_string (void *cls,
61 type, 61 type,
62 &pk)) 62 &pk))
63 return NULL; 63 return NULL;
64 return GNUNET_IDENTITY_public_key_to_string (&pk); 64 return GNUNET_CRYPTO_public_key_to_string (&pk);
65 65
66 case GNUNET_GNSRECORD_TYPE_NICK: 66 case GNUNET_GNSRECORD_TYPE_NICK:
67 case GNUNET_GNSRECORD_TYPE_REDIRECT: 67 case GNUNET_GNSRECORD_TYPE_REDIRECT:
@@ -160,7 +160,7 @@ gns_string_to_value (void *cls,
160 void **data, 160 void **data,
161 size_t *data_size) 161 size_t *data_size)
162{ 162{
163 struct GNUNET_IDENTITY_PublicKey pk; 163 struct GNUNET_CRYPTO_PublicKey pk;
164 uint32_t record_type; 164 uint32_t record_type;
165 165
166 if (NULL == s) 166 if (NULL == s)
@@ -170,14 +170,14 @@ gns_string_to_value (void *cls,
170 case GNUNET_GNSRECORD_TYPE_PKEY: 170 case GNUNET_GNSRECORD_TYPE_PKEY:
171 case GNUNET_GNSRECORD_TYPE_EDKEY: 171 case GNUNET_GNSRECORD_TYPE_EDKEY:
172 if (GNUNET_OK != 172 if (GNUNET_OK !=
173 GNUNET_IDENTITY_public_key_from_string (s, &pk)) 173 GNUNET_CRYPTO_public_key_from_string (s, &pk))
174 { 174 {
175 GNUNET_log (GNUNET_ERROR_TYPE_ERROR, 175 GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
176 _ ("Unable to parse zone key record `%s'\n"), 176 _ ("Unable to parse zone key record `%s'\n"),
177 s); 177 s);
178 return GNUNET_SYSERR; 178 return GNUNET_SYSERR;
179 } 179 }
180 *data_size = GNUNET_IDENTITY_public_key_get_length (&pk); 180 *data_size = GNUNET_CRYPTO_public_key_get_length (&pk);
181 if (GNUNET_OK != 181 if (GNUNET_OK !=
182 GNUNET_GNSRECORD_data_from_identity (&pk, 182 GNUNET_GNSRECORD_data_from_identity (&pk,
183 (char **) data, 183 (char **) data,