aboutsummaryrefslogtreecommitdiff
path: root/src/gns
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2013-10-16 11:39:55 +0000
committerChristian Grothoff <christian@grothoff.org>2013-10-16 11:39:55 +0000
commitb3db33d5679f3d4f05802d360da3d8a2fd7192f1 (patch)
treeb1ad38add710bceba3b13261174cfb0507bcf0c2 /src/gns
parentb6bfed8309e6b9b3286b8f608ad899bfb0a97205 (diff)
downloadgnunet-b3db33d5679f3d4f05802d360da3d8a2fd7192f1.tar.gz
gnunet-b3db33d5679f3d4f05802d360da3d8a2fd7192f1.zip
-rename fest for symbols moved from GNUNET_NAMESTORE_ to new GNUNET_GNSRECORD_ library
Diffstat (limited to 'src/gns')
-rw-r--r--src/gns/gnunet-gns-proxy.c4
-rw-r--r--src/gns/gnunet-gns.c8
-rw-r--r--src/gns/gnunet-service-gns_resolver.c12
-rw-r--r--src/gns/gnunet-service-gns_shorten.c4
-rw-r--r--src/gns/test_gns_proxy.c2
-rw-r--r--src/gns/test_gns_pseu_shorten.c10
-rw-r--r--src/gns/test_gns_revocation.c4
-rw-r--r--src/gns/test_gns_simple_shorten.c4
-rw-r--r--src/gns/test_gns_simple_srv_lookup.c2
-rw-r--r--src/gns/test_gns_simple_zkey_lookup.c2
10 files changed, 26 insertions, 26 deletions
diff --git a/src/gns/gnunet-gns-proxy.c b/src/gns/gnunet-gns-proxy.c
index 7265b9621..93f33218b 100644
--- a/src/gns/gnunet-gns-proxy.c
+++ b/src/gns/gnunet-gns-proxy.c
@@ -2275,10 +2275,10 @@ handle_gns_result (void *cls,
2275#endif 2275#endif
2276 } 2276 }
2277 break; 2277 break;
2278 case GNUNET_NAMESTORE_TYPE_VPN: 2278 case GNUNET_GNSRECORD_TYPE_VPN:
2279 GNUNET_break (0); /* should have been translated within GNS */ 2279 GNUNET_break (0); /* should have been translated within GNS */
2280 break; 2280 break;
2281 case GNUNET_NAMESTORE_TYPE_LEHO: 2281 case GNUNET_GNSRECORD_TYPE_LEHO:
2282 GNUNET_free_non_null (s5r->leho); 2282 GNUNET_free_non_null (s5r->leho);
2283 s5r->leho = GNUNET_strndup (r->data, 2283 s5r->leho = GNUNET_strndup (r->data,
2284 r->data_size); 2284 r->data_size);
diff --git a/src/gns/gnunet-gns.c b/src/gns/gnunet-gns.c
index 6772844b8..736fb8af2 100644
--- a/src/gns/gnunet-gns.c
+++ b/src/gns/gnunet-gns.c
@@ -157,10 +157,10 @@ process_lookup_result (void *cls, uint32_t rd_count,
157 for (i=0; i<rd_count; i++) 157 for (i=0; i<rd_count; i++)
158 { 158 {
159 if ( (rd[i].record_type != rtype) && 159 if ( (rd[i].record_type != rtype) &&
160 (GNUNET_NAMESTORE_TYPE_ANY != rtype) ) 160 (GNUNET_GNSRECORD_TYPE_ANY != rtype) )
161 continue; 161 continue;
162 typename = GNUNET_NAMESTORE_number_to_typename (rd[i].record_type); 162 typename = GNUNET_GNSRECORD_number_to_typename (rd[i].record_type);
163 string_val = GNUNET_NAMESTORE_value_to_string (rd[i].record_type, 163 string_val = GNUNET_GNSRECORD_value_to_string (rd[i].record_type,
164 rd[i].data, 164 rd[i].data,
165 rd[i].data_size); 165 rd[i].data_size);
166 if (NULL == string_val) 166 if (NULL == string_val)
@@ -196,7 +196,7 @@ lookup_with_keys (const struct GNUNET_CRYPTO_EcdsaPublicKey *pkey,
196 const struct GNUNET_CRYPTO_EcdsaPrivateKey *shorten_key) 196 const struct GNUNET_CRYPTO_EcdsaPrivateKey *shorten_key)
197{ 197{
198 if (NULL != lookup_type) 198 if (NULL != lookup_type)
199 rtype = GNUNET_NAMESTORE_typename_to_number (lookup_type); 199 rtype = GNUNET_GNSRECORD_typename_to_number (lookup_type);
200 else 200 else
201 rtype = GNUNET_DNSPARSER_TYPE_A; 201 rtype = GNUNET_DNSPARSER_TYPE_A;
202 202
diff --git a/src/gns/gnunet-service-gns_resolver.c b/src/gns/gnunet-service-gns_resolver.c
index f8b7e1a42..9b55dfcfc 100644
--- a/src/gns/gnunet-service-gns_resolver.c
+++ b/src/gns/gnunet-service-gns_resolver.c
@@ -1100,7 +1100,7 @@ vpn_allocation_cb (void *cls,
1100 rd)); 1100 rd));
1101 for (i=0;i<vpn_ctx->rd_count;i++) 1101 for (i=0;i<vpn_ctx->rd_count;i++)
1102 { 1102 {
1103 if (GNUNET_NAMESTORE_TYPE_VPN == rd[i].record_type) 1103 if (GNUNET_GNSRECORD_TYPE_VPN == rd[i].record_type)
1104 { 1104 {
1105 switch (af) 1105 switch (af)
1106 { 1106 {
@@ -1204,7 +1204,7 @@ handle_gns_resolution_result (void *cls,
1204 { 1204 {
1205 switch (rd[i].record_type) 1205 switch (rd[i].record_type)
1206 { 1206 {
1207 case GNUNET_NAMESTORE_TYPE_VPN: 1207 case GNUNET_GNSRECORD_TYPE_VPN:
1208 { 1208 {
1209 af = (GNUNET_DNSPARSER_TYPE_A == rh->record_type) ? AF_INET : AF_INET6; 1209 af = (GNUNET_DNSPARSER_TYPE_A == rh->record_type) ? AF_INET : AF_INET6;
1210 if (sizeof (struct GNUNET_TUN_GnsVpnRecord) < 1210 if (sizeof (struct GNUNET_TUN_GnsVpnRecord) <
@@ -1247,7 +1247,7 @@ handle_gns_resolution_result (void *cls,
1247 rh); 1247 rh);
1248 return; 1248 return;
1249 } 1249 }
1250 case GNUNET_NAMESTORE_TYPE_GNS2DNS: 1250 case GNUNET_GNSRECORD_TYPE_GNS2DNS:
1251 { 1251 {
1252 /* delegation to DNS */ 1252 /* delegation to DNS */
1253 goto do_recurse; 1253 goto do_recurse;
@@ -1418,7 +1418,7 @@ handle_gns_resolution_result (void *cls,
1418 GNUNET_DNSPARSER_free_srv (srv); 1418 GNUNET_DNSPARSER_free_srv (srv);
1419 } 1419 }
1420 break; 1420 break;
1421 case GNUNET_NAMESTORE_TYPE_PKEY: 1421 case GNUNET_GNSRECORD_TYPE_PKEY:
1422 /* tigger shortening */ 1422 /* tigger shortening */
1423 if (NULL != rh->shorten_key) 1423 if (NULL != rh->shorten_key)
1424 { 1424 {
@@ -1453,7 +1453,7 @@ handle_gns_resolution_result (void *cls,
1453 { 1453 {
1454 switch (rd[i].record_type) 1454 switch (rd[i].record_type)
1455 { 1455 {
1456 case GNUNET_NAMESTORE_TYPE_PKEY: 1456 case GNUNET_GNSRECORD_TYPE_PKEY:
1457 /* delegation to another zone */ 1457 /* delegation to another zone */
1458 if (sizeof (struct GNUNET_CRYPTO_EcdsaPublicKey) != 1458 if (sizeof (struct GNUNET_CRYPTO_EcdsaPublicKey) !=
1459 rd[i].data_size) 1459 rd[i].data_size)
@@ -1484,7 +1484,7 @@ handle_gns_resolution_result (void *cls,
1484 rh->task_id = GNUNET_SCHEDULER_add_now (&recursive_resolution, 1484 rh->task_id = GNUNET_SCHEDULER_add_now (&recursive_resolution,
1485 rh); 1485 rh);
1486 return; 1486 return;
1487 case GNUNET_NAMESTORE_TYPE_GNS2DNS: 1487 case GNUNET_GNSRECORD_TYPE_GNS2DNS:
1488 { 1488 {
1489 char *ns; 1489 char *ns;
1490 /* resolution continues within DNS */ 1490 /* resolution continues within DNS */
diff --git a/src/gns/gnunet-service-gns_shorten.c b/src/gns/gnunet-service-gns_shorten.c
index 3d3ac0094..3ec03a5ef 100644
--- a/src/gns/gnunet-service-gns_shorten.c
+++ b/src/gns/gnunet-service-gns_shorten.c
@@ -290,7 +290,7 @@ process_pseu_lookup_ns (void *cls,
290 new_pkey.expiration_time = UINT64_MAX; 290 new_pkey.expiration_time = UINT64_MAX;
291 new_pkey.data_size = sizeof (struct GNUNET_CRYPTO_EcdsaPublicKey); 291 new_pkey.data_size = sizeof (struct GNUNET_CRYPTO_EcdsaPublicKey);
292 new_pkey.data = &gph->target_zone; 292 new_pkey.data = &gph->target_zone;
293 new_pkey.record_type = GNUNET_NAMESTORE_TYPE_PKEY; 293 new_pkey.record_type = GNUNET_GNSRECORD_TYPE_PKEY;
294 new_pkey.flags = GNUNET_NAMESTORE_RF_NONE 294 new_pkey.flags = GNUNET_NAMESTORE_RF_NONE
295 | GNUNET_NAMESTORE_RF_PRIVATE 295 | GNUNET_NAMESTORE_RF_PRIVATE
296 | GNUNET_NAMESTORE_RF_PENDING; 296 | GNUNET_NAMESTORE_RF_PENDING;
@@ -365,7 +365,7 @@ process_auth_records (void *cls,
365 365
366 for (i=0; i < rd_count; i++) 366 for (i=0; i < rd_count; i++)
367 { 367 {
368 if (GNUNET_NAMESTORE_TYPE_PSEU == rd[i].record_type) 368 if (GNUNET_GNSRECORD_TYPE_PSEU == rd[i].record_type)
369 { 369 {
370 char pseu[rd[i].data_size + 1]; 370 char pseu[rd[i].data_size + 1];
371 371
diff --git a/src/gns/test_gns_proxy.c b/src/gns/test_gns_proxy.c
index 66a2eb091..25127d747 100644
--- a/src/gns/test_gns_proxy.c
+++ b/src/gns/test_gns_proxy.c
@@ -423,7 +423,7 @@ run (void *cls,
423 423
424 host_key = GNUNET_CRYPTO_ecdsa_key_create_from_file (zone_keyfile); 424 host_key = GNUNET_CRYPTO_ecdsa_key_create_from_file (zone_keyfile);
425 rd.expiration_time = GNUNET_TIME_UNIT_FOREVER_ABS.abs_value_us; 425 rd.expiration_time = GNUNET_TIME_UNIT_FOREVER_ABS.abs_value_us;
426 GNUNET_assert (GNUNET_OK == GNUNET_NAMESTORE_string_to_value (GNUNET_DNSPARSER_TYPE_A, 426 GNUNET_assert (GNUNET_OK == GNUNET_GNSRECORD_string_to_value (GNUNET_DNSPARSER_TYPE_A,
427 "127.0.0.1", 427 "127.0.0.1",
428 (void**)&rd.data, 428 (void**)&rd.data,
429 &rd.data_size)); 429 &rd.data_size));
diff --git a/src/gns/test_gns_pseu_shorten.c b/src/gns/test_gns_pseu_shorten.c
index f4c628cb0..6bcc18999 100644
--- a/src/gns/test_gns_pseu_shorten.c
+++ b/src/gns/test_gns_pseu_shorten.c
@@ -272,7 +272,7 @@ put_pseu_dht (void *cls, int success)
272 rd.expiration_time = GNUNET_TIME_UNIT_FOREVER_ABS.abs_value_us; 272 rd.expiration_time = GNUNET_TIME_UNIT_FOREVER_ABS.abs_value_us;
273 rd.data_size = strlen(TEST_PSEU_ALICE)+1; 273 rd.data_size = strlen(TEST_PSEU_ALICE)+1;
274 rd.data = TEST_PSEU_ALICE; 274 rd.data = TEST_PSEU_ALICE;
275 rd.record_type = GNUNET_NAMESTORE_TYPE_PSEU; 275 rd.record_type = GNUNET_GNSRECORD_TYPE_PSEU;
276 rd.flags = 0; 276 rd.flags = 0;
277 277
278 sig = GNUNET_NAMESTORE_create_signature(alice_key, 278 sig = GNUNET_NAMESTORE_create_signature(alice_key,
@@ -447,7 +447,7 @@ put_pkey_dht (void *cls, int32_t success, const char *emsg)
447 rd.expiration_time = UINT64_MAX; 447 rd.expiration_time = UINT64_MAX;
448 rd.data_size = sizeof(struct GNUNET_CRYPTO_ShortHashCode); 448 rd.data_size = sizeof(struct GNUNET_CRYPTO_ShortHashCode);
449 rd.data = &alice_hash; 449 rd.data = &alice_hash;
450 rd.record_type = GNUNET_NAMESTORE_TYPE_PKEY; 450 rd.record_type = GNUNET_GNSRECORD_TYPE_PKEY;
451 rd.flags = GNUNET_NAMESTORE_RF_NONE; 451 rd.flags = GNUNET_NAMESTORE_RF_NONE;
452 452
453 sig = GNUNET_NAMESTORE_create_signature (bob_key, 453 sig = GNUNET_NAMESTORE_create_signature (bob_key,
@@ -518,7 +518,7 @@ fin_init_zone (void *cls, int32_t success, const char *emsg)
518 rd.expiration_time = UINT64_MAX; 518 rd.expiration_time = UINT64_MAX;
519 rd.data_size = sizeof(struct GNUNET_CRYPTO_ShortHashCode); 519 rd.data_size = sizeof(struct GNUNET_CRYPTO_ShortHashCode);
520 rd.data = &bob_hash; 520 rd.data = &bob_hash;
521 rd.record_type = GNUNET_NAMESTORE_TYPE_PKEY; 521 rd.record_type = GNUNET_GNSRECORD_TYPE_PKEY;
522 rd.flags = GNUNET_NAMESTORE_RF_NONE; 522 rd.flags = GNUNET_NAMESTORE_RF_NONE;
523 523
524 GNUNET_NAMESTORE_record_put_by_authority (namestore_handle, 524 GNUNET_NAMESTORE_record_put_by_authority (namestore_handle,
@@ -539,7 +539,7 @@ cont_init_zone (void *cls, int32_t success, const char *emsg)
539 rd.expiration_time = UINT64_MAX; 539 rd.expiration_time = UINT64_MAX;
540 rd.data_size = sizeof(struct GNUNET_CRYPTO_ShortHashCode); 540 rd.data_size = sizeof(struct GNUNET_CRYPTO_ShortHashCode);
541 rd.data = &short_zone; 541 rd.data = &short_zone;
542 rd.record_type = GNUNET_NAMESTORE_TYPE_PKEY; 542 rd.record_type = GNUNET_GNSRECORD_TYPE_PKEY;
543 rd.flags = GNUNET_NAMESTORE_RF_NONE; 543 rd.flags = GNUNET_NAMESTORE_RF_NONE;
544 544
545 GNUNET_NAMESTORE_record_put_by_authority (namestore_handle, 545 GNUNET_NAMESTORE_record_put_by_authority (namestore_handle,
@@ -640,7 +640,7 @@ do_check (void *cls,
640 rd.expiration_time = UINT64_MAX; 640 rd.expiration_time = UINT64_MAX;
641 rd.data_size = sizeof(struct GNUNET_CRYPTO_ShortHashCode); 641 rd.data_size = sizeof(struct GNUNET_CRYPTO_ShortHashCode);
642 rd.data = &priv_zone; 642 rd.data = &priv_zone;
643 rd.record_type = GNUNET_NAMESTORE_TYPE_PKEY; 643 rd.record_type = GNUNET_GNSRECORD_TYPE_PKEY;
644 rd.flags = GNUNET_NAMESTORE_RF_NONE; 644 rd.flags = GNUNET_NAMESTORE_RF_NONE;
645 645
646 GNUNET_NAMESTORE_record_put_by_authority (namestore_handle, 646 GNUNET_NAMESTORE_record_put_by_authority (namestore_handle,
diff --git a/src/gns/test_gns_revocation.c b/src/gns/test_gns_revocation.c
index 5be15759a..555e44a20 100644
--- a/src/gns/test_gns_revocation.c
+++ b/src/gns/test_gns_revocation.c
@@ -226,7 +226,7 @@ do_check (void *cls,
226 226
227 rd.data_size = sizeof(struct GNUNET_CRYPTO_ShortHashCode); 227 rd.data_size = sizeof(struct GNUNET_CRYPTO_ShortHashCode);
228 rd.data = &bob_hash; 228 rd.data = &bob_hash;
229 rd.record_type = GNUNET_NAMESTORE_TYPE_PKEY; 229 rd.record_type = GNUNET_GNSRECORD_TYPE_PKEY;
230 rd.flags = GNUNET_NAMESTORE_RF_NONE; 230 rd.flags = GNUNET_NAMESTORE_RF_NONE;
231 231
232 GNUNET_NAMESTORE_record_put_by_authority (namestore_handle, 232 GNUNET_NAMESTORE_record_put_by_authority (namestore_handle,
@@ -254,7 +254,7 @@ do_check (void *cls,
254 NULL, 254 NULL,
255 NULL); 255 NULL);
256 rd.data_size = 0; 256 rd.data_size = 0;
257 rd.record_type = GNUNET_NAMESTORE_TYPE_REV; 257 rd.record_type = GNUNET_GNSRECORD_TYPE_REV;
258 258
259 GNUNET_NAMESTORE_record_put_by_authority (namestore_handle, 259 GNUNET_NAMESTORE_record_put_by_authority (namestore_handle,
260 bob_key, 260 bob_key,
diff --git a/src/gns/test_gns_simple_shorten.c b/src/gns/test_gns_simple_shorten.c
index a4cfa26dc..2b4543f4e 100644
--- a/src/gns/test_gns_simple_shorten.c
+++ b/src/gns/test_gns_simple_shorten.c
@@ -256,7 +256,7 @@ void do_check (void *cls,
256 256
257 rd.data_size = sizeof(struct GNUNET_CRYPTO_ShortHashCode); 257 rd.data_size = sizeof(struct GNUNET_CRYPTO_ShortHashCode);
258 rd.data = &bob_hash; 258 rd.data = &bob_hash;
259 rd.record_type = GNUNET_NAMESTORE_TYPE_PKEY; 259 rd.record_type = GNUNET_GNSRECORD_TYPE_PKEY;
260 rd.flags = GNUNET_NAMESTORE_RF_NONE; 260 rd.flags = GNUNET_NAMESTORE_RF_NONE;
261 261
262 /* put bob into our zone */ 262 /* put bob into our zone */
@@ -308,7 +308,7 @@ void do_check (void *cls,
308 308
309 rd.data_size = sizeof(struct GNUNET_CRYPTO_ShortHashCode); 309 rd.data_size = sizeof(struct GNUNET_CRYPTO_ShortHashCode);
310 rd.data = &alice_hash; 310 rd.data = &alice_hash;
311 rd.record_type = GNUNET_NAMESTORE_TYPE_PKEY; 311 rd.record_type = GNUNET_GNSRECORD_TYPE_PKEY;
312 GNUNET_free(sig); 312 GNUNET_free(sig);
313 313
314 GNUNET_NAMESTORE_record_put_by_authority (namestore_handle, 314 GNUNET_NAMESTORE_record_put_by_authority (namestore_handle,
diff --git a/src/gns/test_gns_simple_srv_lookup.c b/src/gns/test_gns_simple_srv_lookup.c
index f31ae6daa..162e9dc93 100644
--- a/src/gns/test_gns_simple_srv_lookup.c
+++ b/src/gns/test_gns_simple_srv_lookup.c
@@ -234,7 +234,7 @@ do_check (void *cls,
234 234
235 rd.data_size = sizeof(struct GNUNET_CRYPTO_ShortHashCode); 235 rd.data_size = sizeof(struct GNUNET_CRYPTO_ShortHashCode);
236 rd.data = &bob_hash; 236 rd.data = &bob_hash;
237 rd.record_type = GNUNET_NAMESTORE_TYPE_PKEY; 237 rd.record_type = GNUNET_GNSRECORD_TYPE_PKEY;
238 rd.flags = GNUNET_NAMESTORE_RF_NONE; 238 rd.flags = GNUNET_NAMESTORE_RF_NONE;
239 239
240 GNUNET_NAMESTORE_record_put_by_authority (namestore_handle, 240 GNUNET_NAMESTORE_record_put_by_authority (namestore_handle,
diff --git a/src/gns/test_gns_simple_zkey_lookup.c b/src/gns/test_gns_simple_zkey_lookup.c
index a808d2d9d..6e8ec9ff4 100644
--- a/src/gns/test_gns_simple_zkey_lookup.c
+++ b/src/gns/test_gns_simple_zkey_lookup.c
@@ -243,7 +243,7 @@ do_check (void *cls,
243 243
244 rd.data_size = sizeof(struct GNUNET_CRYPTO_ShortHashCode); 244 rd.data_size = sizeof(struct GNUNET_CRYPTO_ShortHashCode);
245 rd.data = &bob_hash; 245 rd.data = &bob_hash;
246 rd.record_type = GNUNET_NAMESTORE_TYPE_PKEY; 246 rd.record_type = GNUNET_GNSRECORD_TYPE_PKEY;
247 rd.flags = GNUNET_NAMESTORE_RF_NONE; 247 rd.flags = GNUNET_NAMESTORE_RF_NONE;
248 248
249 GNUNET_NAMESTORE_record_put_by_authority (namestore_handle, 249 GNUNET_NAMESTORE_record_put_by_authority (namestore_handle,