aboutsummaryrefslogtreecommitdiff
path: root/src/gns/gns_tld_api.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gns/gns_tld_api.c')
-rw-r--r--src/gns/gns_tld_api.c14
1 files changed, 7 insertions, 7 deletions
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 (