diff options
author | Christian Grothoff <christian@grothoff.org> | 2013-10-16 20:21:27 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2013-10-16 20:21:27 +0000 |
commit | accfd6bd85274da2f19e7230c8da6b273cfb2ece (patch) | |
tree | 60966194963795ff07b4da94f4efb6c46d6a23cf /src/gns | |
parent | 3d670727232e79b7e49a1df7ba9260db4e5798a0 (diff) | |
download | gnunet-accfd6bd85274da2f19e7230c8da6b273cfb2ece.tar.gz gnunet-accfd6bd85274da2f19e7230c8da6b273cfb2ece.zip |
-another renaming fest for GNUNET_NAMESTORE_ to GNUNET_GNSRECORD_ symbols that were moved
Diffstat (limited to 'src/gns')
-rw-r--r-- | src/gns/gns.h | 2 | ||||
-rw-r--r-- | src/gns/gns_api.c | 4 | ||||
-rw-r--r-- | src/gns/gnunet-dns2gns.c | 4 | ||||
-rw-r--r-- | src/gns/gnunet-gns-helper-service-w32.c | 2 | ||||
-rw-r--r-- | src/gns/gnunet-gns-proxy.c | 4 | ||||
-rw-r--r-- | src/gns/gnunet-gns.c | 2 | ||||
-rw-r--r-- | src/gns/gnunet-service-gns.c | 26 | ||||
-rw-r--r-- | src/gns/gnunet-service-gns_interceptor.c | 8 | ||||
-rw-r--r-- | src/gns/gnunet-service-gns_resolver.c | 46 | ||||
-rw-r--r-- | src/gns/gnunet-service-gns_resolver.h | 2 | ||||
-rw-r--r-- | src/gns/gnunet-service-gns_shorten.c | 34 | ||||
-rw-r--r-- | src/gns/plugin_block_gns.c | 10 | ||||
-rw-r--r-- | src/gns/test_gns_proxy.c | 2 | ||||
-rw-r--r-- | src/gns/test_gns_pseu_shorten.c | 38 | ||||
-rw-r--r-- | src/gns/test_gns_revocation.c | 6 | ||||
-rw-r--r-- | src/gns/test_gns_simple_shorten.c | 4 | ||||
-rw-r--r-- | src/gns/test_gns_simple_srv_lookup.c | 6 | ||||
-rw-r--r-- | src/gns/test_gns_simple_zkey_lookup.c | 6 |
18 files changed, 103 insertions, 103 deletions
diff --git a/src/gns/gns.h b/src/gns/gns.h index 17a7c7323..b3cd10304 100644 --- a/src/gns/gns.h +++ b/src/gns/gns.h | |||
@@ -109,7 +109,7 @@ struct GNUNET_GNS_ClientLookupResultMessage | |||
109 | */ | 109 | */ |
110 | uint32_t rd_count GNUNET_PACKED; | 110 | uint32_t rd_count GNUNET_PACKED; |
111 | 111 | ||
112 | /* followed by rd_count GNUNET_NAMESTORE_RecordData structs*/ | 112 | /* followed by rd_count GNUNET_GNSRECORD_Data structs*/ |
113 | 113 | ||
114 | }; | 114 | }; |
115 | 115 | ||
diff --git a/src/gns/gns_api.c b/src/gns/gns_api.c index 3d58922ad..95c2d54b3 100644 --- a/src/gns/gns_api.c +++ b/src/gns/gns_api.c | |||
@@ -366,7 +366,7 @@ process_lookup_reply (struct GNUNET_GNS_LookupRequest *qe, | |||
366 | struct GNUNET_GNS_Handle *handle = qe->gns_handle; | 366 | struct GNUNET_GNS_Handle *handle = qe->gns_handle; |
367 | struct PendingMessage *p = (struct PendingMessage *) &qe[1]; | 367 | struct PendingMessage *p = (struct PendingMessage *) &qe[1]; |
368 | uint32_t rd_count = ntohl (msg->rd_count); | 368 | uint32_t rd_count = ntohl (msg->rd_count); |
369 | struct GNUNET_NAMESTORE_RecordData rd[rd_count]; | 369 | struct GNUNET_GNSRECORD_Data rd[rd_count]; |
370 | size_t mlen; | 370 | size_t mlen; |
371 | 371 | ||
372 | if (GNUNET_YES != p->transmitted) | 372 | if (GNUNET_YES != p->transmitted) |
@@ -378,7 +378,7 @@ process_lookup_reply (struct GNUNET_GNS_LookupRequest *qe, | |||
378 | } | 378 | } |
379 | mlen = ntohs (msg->header.size); | 379 | mlen = ntohs (msg->header.size); |
380 | mlen -= sizeof (struct GNUNET_GNS_ClientLookupResultMessage); | 380 | mlen -= sizeof (struct GNUNET_GNS_ClientLookupResultMessage); |
381 | if (GNUNET_SYSERR == GNUNET_NAMESTORE_records_deserialize (mlen, | 381 | if (GNUNET_SYSERR == GNUNET_GNSRECORD_records_deserialize (mlen, |
382 | (const char*) &msg[1], | 382 | (const char*) &msg[1], |
383 | rd_count, | 383 | rd_count, |
384 | rd)) | 384 | rd)) |
diff --git a/src/gns/gnunet-dns2gns.c b/src/gns/gnunet-dns2gns.c index 6b7afdb59..3d55bc045 100644 --- a/src/gns/gnunet-dns2gns.c +++ b/src/gns/gnunet-dns2gns.c | |||
@@ -296,7 +296,7 @@ dns_result_processor (void *cls, | |||
296 | static void | 296 | static void |
297 | result_processor (void *cls, | 297 | result_processor (void *cls, |
298 | uint32_t rd_count, | 298 | uint32_t rd_count, |
299 | const struct GNUNET_NAMESTORE_RecordData *rd) | 299 | const struct GNUNET_GNSRECORD_Data *rd) |
300 | { | 300 | { |
301 | struct Request *request = cls; | 301 | struct Request *request = cls; |
302 | struct GNUNET_DNSPARSER_Packet *packet; | 302 | struct GNUNET_DNSPARSER_Packet *packet; |
@@ -316,7 +316,7 @@ result_processor (void *cls, | |||
316 | //packet->flags.opcode = GNUNET_TUN_DNS_OPCODE_STATUS; // ??? | 316 | //packet->flags.opcode = GNUNET_TUN_DNS_OPCODE_STATUS; // ??? |
317 | for (i=0;i<rd_count;i++) | 317 | for (i=0;i<rd_count;i++) |
318 | { | 318 | { |
319 | // FIXME: do we need to hanlde #GNUNET_NAMESTORE_RF_SHADOW_RECORD | 319 | // FIXME: do we need to hanlde #GNUNET_GNSRECORD_RF_SHADOW_RECORD |
320 | // here? Or should we do this in libgnunetgns? | 320 | // here? Or should we do this in libgnunetgns? |
321 | rec.expiration_time.abs_value_us = rd[i].expiration_time; | 321 | rec.expiration_time.abs_value_us = rd[i].expiration_time; |
322 | switch (rd[i].record_type) | 322 | switch (rd[i].record_type) |
diff --git a/src/gns/gnunet-gns-helper-service-w32.c b/src/gns/gnunet-gns-helper-service-w32.c index 78eb1e0a3..02afa7ac2 100644 --- a/src/gns/gnunet-gns-helper-service-w32.c +++ b/src/gns/gnunet-gns-helper-service-w32.c | |||
@@ -244,7 +244,7 @@ MarshallWSAQUERYSETW (WSAQUERYSETW *qs, GUID *sc) | |||
244 | static void | 244 | static void |
245 | process_ip_lookup_result (void* cls, | 245 | process_ip_lookup_result (void* cls, |
246 | uint32_t rd_count, | 246 | uint32_t rd_count, |
247 | const struct GNUNET_NAMESTORE_RecordData *rd) | 247 | const struct GNUNET_GNSRECORD_Data *rd) |
248 | { | 248 | { |
249 | int i, j, csanum; | 249 | int i, j, csanum; |
250 | struct request *rq = (struct request *) cls; | 250 | struct request *rq = (struct request *) cls; |
diff --git a/src/gns/gnunet-gns-proxy.c b/src/gns/gnunet-gns-proxy.c index 93f33218b..f41d820eb 100644 --- a/src/gns/gnunet-gns-proxy.c +++ b/src/gns/gnunet-gns-proxy.c | |||
@@ -2208,11 +2208,11 @@ signal_socks_success (struct Socks5Request *s5r) | |||
2208 | static void | 2208 | static void |
2209 | handle_gns_result (void *cls, | 2209 | handle_gns_result (void *cls, |
2210 | uint32_t rd_count, | 2210 | uint32_t rd_count, |
2211 | const struct GNUNET_NAMESTORE_RecordData *rd) | 2211 | const struct GNUNET_GNSRECORD_Data *rd) |
2212 | { | 2212 | { |
2213 | struct Socks5Request *s5r = cls; | 2213 | struct Socks5Request *s5r = cls; |
2214 | uint32_t i; | 2214 | uint32_t i; |
2215 | const struct GNUNET_NAMESTORE_RecordData *r; | 2215 | const struct GNUNET_GNSRECORD_Data *r; |
2216 | int got_ip; | 2216 | int got_ip; |
2217 | 2217 | ||
2218 | s5r->gns_lookup = NULL; | 2218 | s5r->gns_lookup = NULL; |
diff --git a/src/gns/gnunet-gns.c b/src/gns/gnunet-gns.c index 736fb8af2..864d1d0ad 100644 --- a/src/gns/gnunet-gns.c +++ b/src/gns/gnunet-gns.c | |||
@@ -138,7 +138,7 @@ do_shutdown (void *cls, | |||
138 | */ | 138 | */ |
139 | static void | 139 | static void |
140 | process_lookup_result (void *cls, uint32_t rd_count, | 140 | process_lookup_result (void *cls, uint32_t rd_count, |
141 | const struct GNUNET_NAMESTORE_RecordData *rd) | 141 | const struct GNUNET_GNSRECORD_Data *rd) |
142 | { | 142 | { |
143 | const char *name = cls; | 143 | const char *name = cls; |
144 | uint32_t i; | 144 | uint32_t i; |
diff --git a/src/gns/gnunet-service-gns.c b/src/gns/gnunet-service-gns.c index d3728ee00..ff574c3a1 100644 --- a/src/gns/gnunet-service-gns.c +++ b/src/gns/gnunet-service-gns.c | |||
@@ -321,14 +321,14 @@ put_gns_record (void *cls, | |||
321 | const struct GNUNET_CRYPTO_EcdsaPrivateKey *key, | 321 | const struct GNUNET_CRYPTO_EcdsaPrivateKey *key, |
322 | const char *name, | 322 | const char *name, |
323 | unsigned int rd_count, | 323 | unsigned int rd_count, |
324 | const struct GNUNET_NAMESTORE_RecordData *rd) | 324 | const struct GNUNET_GNSRECORD_Data *rd) |
325 | { | 325 | { |
326 | struct GNUNET_NAMESTORE_Block *block; | 326 | struct GNUNET_GNSRECORD_Block *block; |
327 | struct GNUNET_HashCode query; | 327 | struct GNUNET_HashCode query; |
328 | struct GNUNET_TIME_Absolute expire; | 328 | struct GNUNET_TIME_Absolute expire; |
329 | struct GNUNET_TIME_Absolute now; | 329 | struct GNUNET_TIME_Absolute now; |
330 | size_t block_size; | 330 | size_t block_size; |
331 | struct GNUNET_NAMESTORE_RecordData rd_public[rd_count]; | 331 | struct GNUNET_GNSRECORD_Data rd_public[rd_count]; |
332 | unsigned int rd_public_count; | 332 | unsigned int rd_public_count; |
333 | unsigned int i; | 333 | unsigned int i; |
334 | 334 | ||
@@ -387,13 +387,13 @@ put_gns_record (void *cls, | |||
387 | rd_public_count = 0; | 387 | rd_public_count = 0; |
388 | now = GNUNET_TIME_absolute_get (); | 388 | now = GNUNET_TIME_absolute_get (); |
389 | for (i=0;i<rd_count;i++) | 389 | for (i=0;i<rd_count;i++) |
390 | if (0 == (rd[i].flags & (GNUNET_NAMESTORE_RF_PRIVATE | | 390 | if (0 == (rd[i].flags & (GNUNET_GNSRECORD_RF_PRIVATE | |
391 | GNUNET_NAMESTORE_RF_PENDING))) | 391 | GNUNET_GNSRECORD_RF_PENDING))) |
392 | { | 392 | { |
393 | rd_public[rd_public_count] = rd[i]; | 393 | rd_public[rd_public_count] = rd[i]; |
394 | if (0 != (rd[i].flags & GNUNET_NAMESTORE_RF_RELATIVE_EXPIRATION)) | 394 | if (0 != (rd[i].flags & GNUNET_GNSRECORD_RF_RELATIVE_EXPIRATION)) |
395 | { | 395 | { |
396 | rd_public[rd_public_count].flags &= ~GNUNET_NAMESTORE_RF_RELATIVE_EXPIRATION; | 396 | rd_public[rd_public_count].flags &= ~GNUNET_GNSRECORD_RF_RELATIVE_EXPIRATION; |
397 | rd_public[rd_public_count].expiration_time += now.abs_value_us; | 397 | rd_public[rd_public_count].expiration_time += now.abs_value_us; |
398 | } | 398 | } |
399 | rd_public_count++; | 399 | rd_public_count++; |
@@ -406,9 +406,9 @@ put_gns_record (void *cls, | |||
406 | NULL); | 406 | NULL); |
407 | return; | 407 | return; |
408 | } | 408 | } |
409 | expire = GNUNET_NAMESTORE_record_get_expiration_time (rd_public_count, | 409 | expire = GNUNET_GNSRECORD_record_get_expiration_time (rd_public_count, |
410 | rd_public); | 410 | rd_public); |
411 | block = GNUNET_NAMESTORE_block_create (key, | 411 | block = GNUNET_GNSRECORD_block_create (key, |
412 | expire, | 412 | expire, |
413 | name, | 413 | name, |
414 | rd_public, | 414 | rd_public, |
@@ -416,7 +416,7 @@ put_gns_record (void *cls, | |||
416 | block_size = ntohl (block->purpose.size) | 416 | block_size = ntohl (block->purpose.size) |
417 | + sizeof (struct GNUNET_CRYPTO_EcdsaSignature) | 417 | + sizeof (struct GNUNET_CRYPTO_EcdsaSignature) |
418 | + sizeof (struct GNUNET_CRYPTO_EcdsaPublicKey); | 418 | + sizeof (struct GNUNET_CRYPTO_EcdsaPublicKey); |
419 | GNUNET_NAMESTORE_query_from_private_key (key, | 419 | GNUNET_GNSRECORD_query_from_private_key (key, |
420 | name, | 420 | name, |
421 | &query); | 421 | &query); |
422 | 422 | ||
@@ -475,7 +475,7 @@ publish_zone_dht_start (void *cls, | |||
475 | static void | 475 | static void |
476 | send_lookup_response (void* cls, | 476 | send_lookup_response (void* cls, |
477 | uint32_t rd_count, | 477 | uint32_t rd_count, |
478 | const struct GNUNET_NAMESTORE_RecordData *rd) | 478 | const struct GNUNET_GNSRECORD_Data *rd) |
479 | { | 479 | { |
480 | struct ClientLookupHandle *clh = cls; | 480 | struct ClientLookupHandle *clh = cls; |
481 | struct GNUNET_GNS_ClientLookupResultMessage *rmsg; | 481 | struct GNUNET_GNS_ClientLookupResultMessage *rmsg; |
@@ -486,13 +486,13 @@ send_lookup_response (void* cls, | |||
486 | "LOOKUP_RESULT", | 486 | "LOOKUP_RESULT", |
487 | rd_count); | 487 | rd_count); |
488 | 488 | ||
489 | len = GNUNET_NAMESTORE_records_get_size (rd_count, rd); | 489 | len = GNUNET_GNSRECORD_records_get_size (rd_count, rd); |
490 | rmsg = GNUNET_malloc (len + sizeof (struct GNUNET_GNS_ClientLookupResultMessage)); | 490 | rmsg = GNUNET_malloc (len + sizeof (struct GNUNET_GNS_ClientLookupResultMessage)); |
491 | rmsg->header.type = htons (GNUNET_MESSAGE_TYPE_GNS_LOOKUP_RESULT); | 491 | rmsg->header.type = htons (GNUNET_MESSAGE_TYPE_GNS_LOOKUP_RESULT); |
492 | rmsg->header.size = htons (len + sizeof(struct GNUNET_GNS_ClientLookupResultMessage)); | 492 | rmsg->header.size = htons (len + sizeof(struct GNUNET_GNS_ClientLookupResultMessage)); |
493 | rmsg->id = clh->request_id; | 493 | rmsg->id = clh->request_id; |
494 | rmsg->rd_count = htonl (rd_count); | 494 | rmsg->rd_count = htonl (rd_count); |
495 | GNUNET_NAMESTORE_records_serialize (rd_count, rd, len, | 495 | GNUNET_GNSRECORD_records_serialize (rd_count, rd, len, |
496 | (char*) &rmsg[1]); | 496 | (char*) &rmsg[1]); |
497 | GNUNET_SERVER_notification_context_unicast (nc, | 497 | GNUNET_SERVER_notification_context_unicast (nc, |
498 | clh->client, | 498 | clh->client, |
diff --git a/src/gns/gnunet-service-gns_interceptor.c b/src/gns/gnunet-service-gns_interceptor.c index 61568c438..efa6e49bb 100644 --- a/src/gns/gnunet-service-gns_interceptor.c +++ b/src/gns/gnunet-service-gns_interceptor.c | |||
@@ -97,7 +97,7 @@ static struct InterceptLookupHandle *ilh_tail; | |||
97 | */ | 97 | */ |
98 | static void | 98 | static void |
99 | reply_to_dns (void *cls, uint32_t rd_count, | 99 | reply_to_dns (void *cls, uint32_t rd_count, |
100 | const struct GNUNET_NAMESTORE_RecordData *rd) | 100 | const struct GNUNET_GNSRECORD_Data *rd) |
101 | { | 101 | { |
102 | struct InterceptLookupHandle *ilh = cls; | 102 | struct InterceptLookupHandle *ilh = cls; |
103 | struct GNUNET_DNSPARSER_Packet *packet = ilh->packet; | 103 | struct GNUNET_DNSPARSER_Packet *packet = ilh->packet; |
@@ -125,7 +125,7 @@ reply_to_dns (void *cls, uint32_t rd_count, | |||
125 | 125 | ||
126 | packet->answers = answer_records; | 126 | packet->answers = answer_records; |
127 | packet->additional_records = additional_records; | 127 | packet->additional_records = additional_records; |
128 | /* FIXME: need to handle #GNUNET_NAMESTORE_RF_SHADOW_RECORD option | 128 | /* FIXME: need to handle #GNUNET_GNSRECORD_RF_SHADOW_RECORD option |
129 | (by ignoring records where this flag is set if there is any | 129 | (by ignoring records where this flag is set if there is any |
130 | other record of that type in the result set) */ | 130 | other record of that type in the result set) */ |
131 | for (i=0; i < rd_count; i++) | 131 | for (i=0; i < rd_count; i++) |
@@ -183,7 +183,7 @@ reply_to_dns (void *cls, uint32_t rd_count, | |||
183 | answer_records[i - skip_answers].data.raw.data = (char*)rd[i].data; | 183 | answer_records[i - skip_answers].data.raw.data = (char*)rd[i].data; |
184 | break; | 184 | break; |
185 | } | 185 | } |
186 | GNUNET_break (0 == (rd[i - skip_answers].flags & GNUNET_NAMESTORE_RF_RELATIVE_EXPIRATION)); | 186 | GNUNET_break (0 == (rd[i - skip_answers].flags & GNUNET_GNSRECORD_RF_RELATIVE_EXPIRATION)); |
187 | answer_records[i - skip_answers].expiration_time.abs_value_us = rd[i].expiration_time; | 187 | answer_records[i - skip_answers].expiration_time.abs_value_us = rd[i].expiration_time; |
188 | answer_records[i - skip_answers].dns_traffic_class = GNUNET_TUN_DNS_CLASS_INTERNET; | 188 | answer_records[i - skip_answers].dns_traffic_class = GNUNET_TUN_DNS_CLASS_INTERNET; |
189 | } | 189 | } |
@@ -240,7 +240,7 @@ reply_to_dns (void *cls, uint32_t rd_count, | |||
240 | additional_records[i - skip_additional].data.raw.data = (char*)rd[i].data; | 240 | additional_records[i - skip_additional].data.raw.data = (char*)rd[i].data; |
241 | break; | 241 | break; |
242 | } | 242 | } |
243 | GNUNET_break (0 == (rd[i - skip_additional].flags & GNUNET_NAMESTORE_RF_RELATIVE_EXPIRATION)); | 243 | GNUNET_break (0 == (rd[i - skip_additional].flags & GNUNET_GNSRECORD_RF_RELATIVE_EXPIRATION)); |
244 | additional_records[i - skip_additional].expiration_time.abs_value_us = rd[i].expiration_time; | 244 | additional_records[i - skip_additional].expiration_time.abs_value_us = rd[i].expiration_time; |
245 | additional_records[i - skip_additional].dns_traffic_class = GNUNET_TUN_DNS_CLASS_INTERNET; | 245 | additional_records[i - skip_additional].dns_traffic_class = GNUNET_TUN_DNS_CLASS_INTERNET; |
246 | } | 246 | } |
diff --git a/src/gns/gnunet-service-gns_resolver.c b/src/gns/gnunet-service-gns_resolver.c index ad256430c..e0d395a55 100644 --- a/src/gns/gnunet-service-gns_resolver.c +++ b/src/gns/gnunet-service-gns_resolver.c | |||
@@ -504,7 +504,7 @@ translate_dot_plus (struct GNS_ResolverHandle *rh, | |||
504 | "%.*s.%s", | 504 | "%.*s.%s", |
505 | (int) (s_len - 2), | 505 | (int) (s_len - 2), |
506 | name, | 506 | name, |
507 | GNUNET_NAMESTORE_pkey_to_zkey (&rh->ac_tail->authority_info.gns_authority)); | 507 | GNUNET_GNSRECORD_pkey_to_zkey (&rh->ac_tail->authority_info.gns_authority)); |
508 | GNUNET_free (name); | 508 | GNUNET_free (name); |
509 | return ret; | 509 | return ret; |
510 | } | 510 | } |
@@ -598,7 +598,7 @@ transmit_lookup_dns_result (struct GNS_ResolverHandle *rh) | |||
598 | for (pos = rh->dns_result_head; NULL != pos; pos = pos->next) | 598 | for (pos = rh->dns_result_head; NULL != pos; pos = pos->next) |
599 | n++; | 599 | n++; |
600 | { | 600 | { |
601 | struct GNUNET_NAMESTORE_RecordData rd[n]; | 601 | struct GNUNET_GNSRECORD_Data rd[n]; |
602 | 602 | ||
603 | i = 0; | 603 | i = 0; |
604 | for (pos = rh->dns_result_head; NULL != pos; pos = pos->next) | 604 | for (pos = rh->dns_result_head; NULL != pos; pos = pos->next) |
@@ -608,12 +608,12 @@ transmit_lookup_dns_result (struct GNS_ResolverHandle *rh) | |||
608 | rd[i].record_type = pos->record_type; | 608 | rd[i].record_type = pos->record_type; |
609 | if (0 == pos->expiration_time) | 609 | if (0 == pos->expiration_time) |
610 | { | 610 | { |
611 | rd[i].flags = GNUNET_NAMESTORE_RF_RELATIVE_EXPIRATION; | 611 | rd[i].flags = GNUNET_GNSRECORD_RF_RELATIVE_EXPIRATION; |
612 | rd[i].expiration_time = 0; | 612 | rd[i].expiration_time = 0; |
613 | } | 613 | } |
614 | else | 614 | else |
615 | { | 615 | { |
616 | rd[i].flags = GNUNET_NAMESTORE_RF_NONE; | 616 | rd[i].flags = GNUNET_GNSRECORD_RF_NONE; |
617 | rd[i].expiration_time = pos->expiration_time; | 617 | rd[i].expiration_time = pos->expiration_time; |
618 | } | 618 | } |
619 | i++; | 619 | i++; |
@@ -785,7 +785,7 @@ dns_result_parser (void *cls, | |||
785 | /* convert from (parsed) DNS to (binary) GNS format! */ | 785 | /* convert from (parsed) DNS to (binary) GNS format! */ |
786 | rd_count = p->num_answers + p->num_authority_records + p->num_additional_records; | 786 | rd_count = p->num_answers + p->num_authority_records + p->num_additional_records; |
787 | { | 787 | { |
788 | struct GNUNET_NAMESTORE_RecordData rd[rd_count]; | 788 | struct GNUNET_GNSRECORD_Data rd[rd_count]; |
789 | unsigned int skip; | 789 | unsigned int skip; |
790 | char buf[UINT16_MAX]; | 790 | char buf[UINT16_MAX]; |
791 | size_t buf_off; | 791 | size_t buf_off; |
@@ -1064,7 +1064,7 @@ handle_gns_cname_result (struct GNS_ResolverHandle *rh, | |||
1064 | static void | 1064 | static void |
1065 | handle_gns_resolution_result (void *cls, | 1065 | handle_gns_resolution_result (void *cls, |
1066 | unsigned int rd_count, | 1066 | unsigned int rd_count, |
1067 | const struct GNUNET_NAMESTORE_RecordData *rd); | 1067 | const struct GNUNET_GNSRECORD_Data *rd); |
1068 | 1068 | ||
1069 | 1069 | ||
1070 | /** | 1070 | /** |
@@ -1088,13 +1088,13 @@ vpn_allocation_cb (void *cls, | |||
1088 | { | 1088 | { |
1089 | struct VpnContext *vpn_ctx = cls; | 1089 | struct VpnContext *vpn_ctx = cls; |
1090 | struct GNS_ResolverHandle *rh = vpn_ctx->rh; | 1090 | struct GNS_ResolverHandle *rh = vpn_ctx->rh; |
1091 | struct GNUNET_NAMESTORE_RecordData rd[vpn_ctx->rd_count]; | 1091 | struct GNUNET_GNSRECORD_Data rd[vpn_ctx->rd_count]; |
1092 | unsigned int i; | 1092 | unsigned int i; |
1093 | 1093 | ||
1094 | vpn_ctx->vpn_request = NULL; | 1094 | vpn_ctx->vpn_request = NULL; |
1095 | rh->vpn_ctx = NULL; | 1095 | rh->vpn_ctx = NULL; |
1096 | GNUNET_assert (GNUNET_OK == | 1096 | GNUNET_assert (GNUNET_OK == |
1097 | GNUNET_NAMESTORE_records_deserialize (vpn_ctx->rd_data_size, | 1097 | GNUNET_GNSRECORD_records_deserialize (vpn_ctx->rd_data_size, |
1098 | vpn_ctx->rd_data, | 1098 | vpn_ctx->rd_data, |
1099 | vpn_ctx->rd_count, | 1099 | vpn_ctx->rd_count, |
1100 | rd)); | 1100 | rd)); |
@@ -1143,7 +1143,7 @@ vpn_allocation_cb (void *cls, | |||
1143 | static void | 1143 | static void |
1144 | handle_gns_resolution_result (void *cls, | 1144 | handle_gns_resolution_result (void *cls, |
1145 | unsigned int rd_count, | 1145 | unsigned int rd_count, |
1146 | const struct GNUNET_NAMESTORE_RecordData *rd) | 1146 | const struct GNUNET_GNSRECORD_Data *rd) |
1147 | { | 1147 | { |
1148 | struct GNS_ResolverHandle *rh = cls; | 1148 | struct GNS_ResolverHandle *rh = cls; |
1149 | struct AuthorityChain *ac; | 1149 | struct AuthorityChain *ac; |
@@ -1163,13 +1163,13 @@ handle_gns_resolution_result (void *cls, | |||
1163 | size_t scratch_off; | 1163 | size_t scratch_off; |
1164 | size_t scratch_start; | 1164 | size_t scratch_start; |
1165 | size_t off; | 1165 | size_t off; |
1166 | struct GNUNET_NAMESTORE_RecordData rd_new[rd_count]; | 1166 | struct GNUNET_GNSRECORD_Data rd_new[rd_count]; |
1167 | unsigned int rd_off; | 1167 | unsigned int rd_off; |
1168 | 1168 | ||
1169 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | 1169 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, |
1170 | "Resolution succeeded for `%s' in zone %s, got %u records\n", | 1170 | "Resolution succeeded for `%s' in zone %s, got %u records\n", |
1171 | rh->ac_tail->label, | 1171 | rh->ac_tail->label, |
1172 | GNUNET_NAMESTORE_z2s (&rh->ac_tail->authority_info.gns_authority), | 1172 | GNUNET_GNSRECORD_z2s (&rh->ac_tail->authority_info.gns_authority), |
1173 | rd_count); | 1173 | rd_count); |
1174 | if (0 == rh->name_resolution_pos) | 1174 | if (0 == rh->name_resolution_pos) |
1175 | { | 1175 | { |
@@ -1230,10 +1230,10 @@ handle_gns_resolution_result (void *cls, | |||
1230 | vpn_ctx = GNUNET_new (struct VpnContext); | 1230 | vpn_ctx = GNUNET_new (struct VpnContext); |
1231 | rh->vpn_ctx = vpn_ctx; | 1231 | rh->vpn_ctx = vpn_ctx; |
1232 | vpn_ctx->rh = rh; | 1232 | vpn_ctx->rh = rh; |
1233 | vpn_ctx->rd_data_size = GNUNET_NAMESTORE_records_get_size (rd_count, | 1233 | vpn_ctx->rd_data_size = GNUNET_GNSRECORD_records_get_size (rd_count, |
1234 | rd); | 1234 | rd); |
1235 | vpn_ctx->rd_data = GNUNET_malloc (vpn_ctx->rd_data_size); | 1235 | vpn_ctx->rd_data = GNUNET_malloc (vpn_ctx->rd_data_size); |
1236 | (void) GNUNET_NAMESTORE_records_serialize (rd_count, | 1236 | (void) GNUNET_GNSRECORD_records_serialize (rd_count, |
1237 | rd, | 1237 | rd, |
1238 | vpn_ctx->rd_data_size, | 1238 | vpn_ctx->rd_data_size, |
1239 | vpn_ctx->rd_data); | 1239 | vpn_ctx->rd_data); |
@@ -1720,7 +1720,7 @@ handle_dht_response (void *cls, | |||
1720 | { | 1720 | { |
1721 | struct GNS_ResolverHandle *rh = cls; | 1721 | struct GNS_ResolverHandle *rh = cls; |
1722 | struct AuthorityChain *ac = rh->ac_tail; | 1722 | struct AuthorityChain *ac = rh->ac_tail; |
1723 | const struct GNUNET_NAMESTORE_Block *block; | 1723 | const struct GNUNET_GNSRECORD_Block *block; |
1724 | struct CacheOps *co; | 1724 | struct CacheOps *co; |
1725 | 1725 | ||
1726 | GNUNET_DHT_get_stop (rh->get_handle); | 1726 | GNUNET_DHT_get_stop (rh->get_handle); |
@@ -1729,7 +1729,7 @@ handle_dht_response (void *cls, | |||
1729 | rh->dht_heap_node = NULL; | 1729 | rh->dht_heap_node = NULL; |
1730 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | 1730 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, |
1731 | "Handling response from the DHT\n"); | 1731 | "Handling response from the DHT\n"); |
1732 | if (size < sizeof (struct GNUNET_NAMESTORE_Block)) | 1732 | if (size < sizeof (struct GNUNET_GNSRECORD_Block)) |
1733 | { | 1733 | { |
1734 | /* how did this pass DHT block validation!? */ | 1734 | /* how did this pass DHT block validation!? */ |
1735 | GNUNET_break (0); | 1735 | GNUNET_break (0); |
@@ -1750,7 +1750,7 @@ handle_dht_response (void *cls, | |||
1750 | return; | 1750 | return; |
1751 | } | 1751 | } |
1752 | if (GNUNET_OK != | 1752 | if (GNUNET_OK != |
1753 | GNUNET_NAMESTORE_block_decrypt (block, | 1753 | GNUNET_GNSRECORD_block_decrypt (block, |
1754 | &ac->authority_info.gns_authority, | 1754 | &ac->authority_info.gns_authority, |
1755 | ac->label, | 1755 | ac->label, |
1756 | &handle_gns_resolution_result, | 1756 | &handle_gns_resolution_result, |
@@ -1783,7 +1783,7 @@ handle_dht_response (void *cls, | |||
1783 | */ | 1783 | */ |
1784 | static void | 1784 | static void |
1785 | handle_namestore_block_response (void *cls, | 1785 | handle_namestore_block_response (void *cls, |
1786 | const struct GNUNET_NAMESTORE_Block *block) | 1786 | const struct GNUNET_GNSRECORD_Block *block) |
1787 | { | 1787 | { |
1788 | struct GNS_ResolverHandle *rh = cls; | 1788 | struct GNS_ResolverHandle *rh = cls; |
1789 | struct GNS_ResolverHandle *rx; | 1789 | struct GNS_ResolverHandle *rx; |
@@ -1792,7 +1792,7 @@ handle_namestore_block_response (void *cls, | |||
1792 | const struct GNUNET_CRYPTO_EcdsaPublicKey *auth = &ac->authority_info.gns_authority; | 1792 | const struct GNUNET_CRYPTO_EcdsaPublicKey *auth = &ac->authority_info.gns_authority; |
1793 | struct GNUNET_HashCode query; | 1793 | struct GNUNET_HashCode query; |
1794 | 1794 | ||
1795 | GNUNET_NAMESTORE_query_from_public_key (auth, | 1795 | GNUNET_GNSRECORD_query_from_public_key (auth, |
1796 | label, | 1796 | label, |
1797 | &query); | 1797 | &query); |
1798 | GNUNET_assert (NULL != rh->namestore_qe); | 1798 | GNUNET_assert (NULL != rh->namestore_qe); |
@@ -1805,7 +1805,7 @@ handle_namestore_block_response (void *cls, | |||
1805 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | 1805 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, |
1806 | "Starting DHT lookup for `%s' in zone %s\n", | 1806 | "Starting DHT lookup for `%s' in zone %s\n", |
1807 | ac->label, | 1807 | ac->label, |
1808 | GNUNET_NAMESTORE_z2s (&ac->authority_info.gns_authority)); | 1808 | GNUNET_GNSRECORD_z2s (&ac->authority_info.gns_authority)); |
1809 | GNUNET_assert (NULL == rh->get_handle); | 1809 | GNUNET_assert (NULL == rh->get_handle); |
1810 | rh->get_handle = GNUNET_DHT_get_start (dht_handle, | 1810 | rh->get_handle = GNUNET_DHT_get_start (dht_handle, |
1811 | GNUNET_BLOCK_TYPE_GNS_NAMERECORD, | 1811 | GNUNET_BLOCK_TYPE_GNS_NAMERECORD, |
@@ -1834,7 +1834,7 @@ handle_namestore_block_response (void *cls, | |||
1834 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | 1834 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, |
1835 | "Resolution failed for `%s' in zone %s (DHT lookup not permitted by configuration)\n", | 1835 | "Resolution failed for `%s' in zone %s (DHT lookup not permitted by configuration)\n", |
1836 | ac->label, | 1836 | ac->label, |
1837 | GNUNET_NAMESTORE_z2s (&ac->authority_info.gns_authority)); | 1837 | GNUNET_GNSRECORD_z2s (&ac->authority_info.gns_authority)); |
1838 | rh->proc (rh->proc_cls, 0, NULL); | 1838 | rh->proc (rh->proc_cls, 0, NULL); |
1839 | GNS_resolver_lookup_cancel (rh); | 1839 | GNS_resolver_lookup_cancel (rh); |
1840 | return; | 1840 | return; |
@@ -1842,7 +1842,7 @@ handle_namestore_block_response (void *cls, | |||
1842 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | 1842 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, |
1843 | "Decrypting block from the namestore\n"); | 1843 | "Decrypting block from the namestore\n"); |
1844 | if (GNUNET_OK != | 1844 | if (GNUNET_OK != |
1845 | GNUNET_NAMESTORE_block_decrypt (block, | 1845 | GNUNET_GNSRECORD_block_decrypt (block, |
1846 | auth, | 1846 | auth, |
1847 | label, | 1847 | label, |
1848 | &handle_gns_resolution_result, | 1848 | &handle_gns_resolution_result, |
@@ -1870,8 +1870,8 @@ recursive_gns_resolution_namestore (struct GNS_ResolverHandle *rh) | |||
1870 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | 1870 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, |
1871 | "Starting GNS resolution for `%s' in zone %s\n", | 1871 | "Starting GNS resolution for `%s' in zone %s\n", |
1872 | ac->label, | 1872 | ac->label, |
1873 | GNUNET_NAMESTORE_z2s (&ac->authority_info.gns_authority)); | 1873 | GNUNET_GNSRECORD_z2s (&ac->authority_info.gns_authority)); |
1874 | GNUNET_NAMESTORE_query_from_public_key (&ac->authority_info.gns_authority, | 1874 | GNUNET_GNSRECORD_query_from_public_key (&ac->authority_info.gns_authority, |
1875 | ac->label, | 1875 | ac->label, |
1876 | &query); | 1876 | &query); |
1877 | rh->namestore_qe = GNUNET_NAMESTORE_lookup_block (namestore_handle, | 1877 | rh->namestore_qe = GNUNET_NAMESTORE_lookup_block (namestore_handle, |
diff --git a/src/gns/gnunet-service-gns_resolver.h b/src/gns/gnunet-service-gns_resolver.h index 06273766a..12d2eec11 100644 --- a/src/gns/gnunet-service-gns_resolver.h +++ b/src/gns/gnunet-service-gns_resolver.h | |||
@@ -66,7 +66,7 @@ struct GNS_ResolverHandle; | |||
66 | */ | 66 | */ |
67 | typedef void (*GNS_ResultProcessor)(void *cls, | 67 | typedef void (*GNS_ResultProcessor)(void *cls, |
68 | uint32_t rd_count, | 68 | uint32_t rd_count, |
69 | const struct GNUNET_NAMESTORE_RecordData *rd); | 69 | const struct GNUNET_GNSRECORD_Data *rd); |
70 | 70 | ||
71 | 71 | ||
72 | /** | 72 | /** |
diff --git a/src/gns/gnunet-service-gns_shorten.c b/src/gns/gnunet-service-gns_shorten.c index 3ec03a5ef..3e612e862 100644 --- a/src/gns/gnunet-service-gns_shorten.c +++ b/src/gns/gnunet-service-gns_shorten.c | |||
@@ -181,7 +181,7 @@ create_pkey_cont (void* cls, | |||
181 | static void | 181 | static void |
182 | process_pseu_lookup_ns (void *cls, | 182 | process_pseu_lookup_ns (void *cls, |
183 | unsigned int rd_count, | 183 | unsigned int rd_count, |
184 | const struct GNUNET_NAMESTORE_RecordData *rd); | 184 | const struct GNUNET_GNSRECORD_Data *rd); |
185 | 185 | ||
186 | 186 | ||
187 | /** | 187 | /** |
@@ -193,7 +193,7 @@ process_pseu_lookup_ns (void *cls, | |||
193 | */ | 193 | */ |
194 | static void | 194 | static void |
195 | process_pseu_block_ns (void *cls, | 195 | process_pseu_block_ns (void *cls, |
196 | const struct GNUNET_NAMESTORE_Block *block) | 196 | const struct GNUNET_GNSRECORD_Block *block) |
197 | { | 197 | { |
198 | struct GetPseuAuthorityHandle *gph = cls; | 198 | struct GetPseuAuthorityHandle *gph = cls; |
199 | struct GNUNET_CRYPTO_EcdsaPublicKey pub; | 199 | struct GNUNET_CRYPTO_EcdsaPublicKey pub; |
@@ -207,7 +207,7 @@ process_pseu_block_ns (void *cls, | |||
207 | GNUNET_CRYPTO_ecdsa_key_get_public (&gph->shorten_zone_key, | 207 | GNUNET_CRYPTO_ecdsa_key_get_public (&gph->shorten_zone_key, |
208 | &pub); | 208 | &pub); |
209 | if (GNUNET_OK != | 209 | if (GNUNET_OK != |
210 | GNUNET_NAMESTORE_block_decrypt (block, | 210 | GNUNET_GNSRECORD_block_decrypt (block, |
211 | &pub, | 211 | &pub, |
212 | gph->current_label, | 212 | gph->current_label, |
213 | &process_pseu_lookup_ns, | 213 | &process_pseu_lookup_ns, |
@@ -237,7 +237,7 @@ perform_pseu_lookup (struct GetPseuAuthorityHandle *gph, | |||
237 | &pub); | 237 | &pub); |
238 | GNUNET_free_non_null (gph->current_label); | 238 | GNUNET_free_non_null (gph->current_label); |
239 | gph->current_label = GNUNET_strdup (label); | 239 | gph->current_label = GNUNET_strdup (label); |
240 | GNUNET_NAMESTORE_query_from_public_key (&pub, | 240 | GNUNET_GNSRECORD_query_from_public_key (&pub, |
241 | label, | 241 | label, |
242 | &query); | 242 | &query); |
243 | gph->namestore_task = GNUNET_NAMESTORE_lookup_block (namestore_handle, | 243 | gph->namestore_task = GNUNET_NAMESTORE_lookup_block (namestore_handle, |
@@ -258,10 +258,10 @@ perform_pseu_lookup (struct GetPseuAuthorityHandle *gph, | |||
258 | static void | 258 | static void |
259 | process_pseu_lookup_ns (void *cls, | 259 | process_pseu_lookup_ns (void *cls, |
260 | unsigned int rd_count, | 260 | unsigned int rd_count, |
261 | const struct GNUNET_NAMESTORE_RecordData *rd) | 261 | const struct GNUNET_GNSRECORD_Data *rd) |
262 | { | 262 | { |
263 | struct GetPseuAuthorityHandle *gph = cls; | 263 | struct GetPseuAuthorityHandle *gph = cls; |
264 | struct GNUNET_NAMESTORE_RecordData new_pkey; | 264 | struct GNUNET_GNSRECORD_Data new_pkey; |
265 | 265 | ||
266 | gph->namestore_task = NULL; | 266 | gph->namestore_task = NULL; |
267 | if (rd_count > 0) | 267 | if (rd_count > 0) |
@@ -285,15 +285,15 @@ process_pseu_lookup_ns (void *cls, | |||
285 | /* name is available */ | 285 | /* name is available */ |
286 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | 286 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, |
287 | "Shortening `%s' to `%s'\n", | 287 | "Shortening `%s' to `%s'\n", |
288 | GNUNET_NAMESTORE_z2s (&gph->target_zone), | 288 | GNUNET_GNSRECORD_z2s (&gph->target_zone), |
289 | gph->current_label); | 289 | gph->current_label); |
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_GNSRECORD_TYPE_PKEY; | 293 | new_pkey.record_type = GNUNET_GNSRECORD_TYPE_PKEY; |
294 | new_pkey.flags = GNUNET_NAMESTORE_RF_NONE | 294 | new_pkey.flags = GNUNET_GNSRECORD_RF_NONE |
295 | | GNUNET_NAMESTORE_RF_PRIVATE | 295 | | GNUNET_GNSRECORD_RF_PRIVATE |
296 | | GNUNET_NAMESTORE_RF_PENDING; | 296 | | GNUNET_GNSRECORD_RF_PENDING; |
297 | gph->namestore_task | 297 | gph->namestore_task |
298 | = GNUNET_NAMESTORE_records_store (namestore_handle, | 298 | = GNUNET_NAMESTORE_records_store (namestore_handle, |
299 | &gph->shorten_zone_key, | 299 | &gph->shorten_zone_key, |
@@ -358,7 +358,7 @@ handle_auth_discovery_timeout (void *cls, | |||
358 | static void | 358 | static void |
359 | process_auth_records (void *cls, | 359 | process_auth_records (void *cls, |
360 | unsigned int rd_count, | 360 | unsigned int rd_count, |
361 | const struct GNUNET_NAMESTORE_RecordData *rd) | 361 | const struct GNUNET_GNSRECORD_Data *rd) |
362 | { | 362 | { |
363 | struct GetPseuAuthorityHandle *gph = cls; | 363 | struct GetPseuAuthorityHandle *gph = cls; |
364 | unsigned int i; | 364 | unsigned int i; |
@@ -412,7 +412,7 @@ process_auth_discovery_dht_result (void* cls, | |||
412 | const void *data) | 412 | const void *data) |
413 | { | 413 | { |
414 | struct GetPseuAuthorityHandle *gph = cls; | 414 | struct GetPseuAuthorityHandle *gph = cls; |
415 | const struct GNUNET_NAMESTORE_Block *block; | 415 | const struct GNUNET_GNSRECORD_Block *block; |
416 | 416 | ||
417 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | 417 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, |
418 | "Got DHT result for PSEU request\n"); | 418 | "Got DHT result for PSEU request\n"); |
@@ -428,7 +428,7 @@ process_auth_discovery_dht_result (void* cls, | |||
428 | process_pseu_result (gph, NULL); | 428 | process_pseu_result (gph, NULL); |
429 | return; | 429 | return; |
430 | } | 430 | } |
431 | if (size < sizeof (struct GNUNET_NAMESTORE_Block)) | 431 | if (size < sizeof (struct GNUNET_GNSRECORD_Block)) |
432 | { | 432 | { |
433 | /* how did this pass DHT block validation!? */ | 433 | /* how did this pass DHT block validation!? */ |
434 | GNUNET_break (0); | 434 | GNUNET_break (0); |
@@ -447,7 +447,7 @@ process_auth_discovery_dht_result (void* cls, | |||
447 | return; | 447 | return; |
448 | } | 448 | } |
449 | if (GNUNET_OK != | 449 | if (GNUNET_OK != |
450 | GNUNET_NAMESTORE_block_decrypt (block, | 450 | GNUNET_GNSRECORD_block_decrypt (block, |
451 | &gph->target_zone, | 451 | &gph->target_zone, |
452 | GNUNET_GNS_TLD_PLUS, | 452 | GNUNET_GNS_TLD_PLUS, |
453 | &process_auth_records, | 453 | &process_auth_records, |
@@ -476,7 +476,7 @@ process_zone_to_name_discover (void *cls, | |||
476 | const struct GNUNET_CRYPTO_EcdsaPrivateKey *zone_key, | 476 | const struct GNUNET_CRYPTO_EcdsaPrivateKey *zone_key, |
477 | const char *name, | 477 | const char *name, |
478 | unsigned int rd_len, | 478 | unsigned int rd_len, |
479 | const struct GNUNET_NAMESTORE_RecordData *rd) | 479 | const struct GNUNET_GNSRECORD_Data *rd) |
480 | { | 480 | { |
481 | struct GetPseuAuthorityHandle* gph = cls; | 481 | struct GetPseuAuthorityHandle* gph = cls; |
482 | struct GNUNET_HashCode lookup_key; | 482 | struct GNUNET_HashCode lookup_key; |
@@ -492,7 +492,7 @@ process_zone_to_name_discover (void *cls, | |||
492 | return; | 492 | return; |
493 | } | 493 | } |
494 | /* record does not yet exist, go into DHT to find PSEU record */ | 494 | /* record does not yet exist, go into DHT to find PSEU record */ |
495 | GNUNET_NAMESTORE_query_from_public_key (&gph->target_zone, | 495 | GNUNET_GNSRECORD_query_from_public_key (&gph->target_zone, |
496 | GNUNET_GNS_TLD_PLUS, | 496 | GNUNET_GNS_TLD_PLUS, |
497 | &lookup_key); | 497 | &lookup_key); |
498 | gph->timeout_task = GNUNET_SCHEDULER_add_delayed (DHT_LOOKUP_TIMEOUT, | 498 | gph->timeout_task = GNUNET_SCHEDULER_add_delayed (DHT_LOOKUP_TIMEOUT, |
@@ -533,7 +533,7 @@ GNS_shorten_start (const char *original_label, | |||
533 | } | 533 | } |
534 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | 534 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, |
535 | "Starting shortening process for `%s' with old label `%s'\n", | 535 | "Starting shortening process for `%s' with old label `%s'\n", |
536 | GNUNET_NAMESTORE_z2s (pub), | 536 | GNUNET_GNSRECORD_z2s (pub), |
537 | original_label); | 537 | original_label); |
538 | gph = GNUNET_new (struct GetPseuAuthorityHandle); | 538 | gph = GNUNET_new (struct GetPseuAuthorityHandle); |
539 | gph->shorten_zone_key = *shorten_zone; | 539 | gph->shorten_zone_key = *shorten_zone; |
diff --git a/src/gns/plugin_block_gns.c b/src/gns/plugin_block_gns.c index ad2e6594e..65cf69f72 100644 --- a/src/gns/plugin_block_gns.c +++ b/src/gns/plugin_block_gns.c | |||
@@ -61,7 +61,7 @@ block_plugin_gns_evaluate (void *cls, enum GNUNET_BLOCK_Type type, | |||
61 | size_t xquery_size, const void *reply_block, | 61 | size_t xquery_size, const void *reply_block, |
62 | size_t reply_block_size) | 62 | size_t reply_block_size) |
63 | { | 63 | { |
64 | const struct GNUNET_NAMESTORE_Block *block; | 64 | const struct GNUNET_GNSRECORD_Block *block; |
65 | struct GNUNET_HashCode h; | 65 | struct GNUNET_HashCode h; |
66 | struct GNUNET_HashCode chash; | 66 | struct GNUNET_HashCode chash; |
67 | struct GNUNET_HashCode mhash; | 67 | struct GNUNET_HashCode mhash; |
@@ -79,7 +79,7 @@ block_plugin_gns_evaluate (void *cls, enum GNUNET_BLOCK_Type type, | |||
79 | } | 79 | } |
80 | 80 | ||
81 | /* this is a reply */ | 81 | /* this is a reply */ |
82 | if (reply_block_size < sizeof (struct GNUNET_NAMESTORE_Block)) | 82 | if (reply_block_size < sizeof (struct GNUNET_GNSRECORD_Block)) |
83 | { | 83 | { |
84 | GNUNET_break_op (0); | 84 | GNUNET_break_op (0); |
85 | return GNUNET_BLOCK_EVALUATION_RESULT_INVALID; | 85 | return GNUNET_BLOCK_EVALUATION_RESULT_INVALID; |
@@ -100,7 +100,7 @@ block_plugin_gns_evaluate (void *cls, enum GNUNET_BLOCK_Type type, | |||
100 | return GNUNET_BLOCK_EVALUATION_RESULT_INVALID; | 100 | return GNUNET_BLOCK_EVALUATION_RESULT_INVALID; |
101 | } | 101 | } |
102 | if (GNUNET_OK != | 102 | if (GNUNET_OK != |
103 | GNUNET_NAMESTORE_block_verify (block)) | 103 | GNUNET_GNSRECORD_block_verify (block)) |
104 | { | 104 | { |
105 | GNUNET_break_op (0); | 105 | GNUNET_break_op (0); |
106 | return GNUNET_BLOCK_EVALUATION_RESULT_INVALID; | 106 | return GNUNET_BLOCK_EVALUATION_RESULT_INVALID; |
@@ -140,11 +140,11 @@ block_plugin_gns_get_key (void *cls, enum GNUNET_BLOCK_Type type, | |||
140 | const void *reply_block, size_t reply_block_size, | 140 | const void *reply_block, size_t reply_block_size, |
141 | struct GNUNET_HashCode *key) | 141 | struct GNUNET_HashCode *key) |
142 | { | 142 | { |
143 | const struct GNUNET_NAMESTORE_Block *block; | 143 | const struct GNUNET_GNSRECORD_Block *block; |
144 | 144 | ||
145 | if (type != GNUNET_BLOCK_TYPE_GNS_NAMERECORD) | 145 | if (type != GNUNET_BLOCK_TYPE_GNS_NAMERECORD) |
146 | return GNUNET_SYSERR; | 146 | return GNUNET_SYSERR; |
147 | if (reply_block_size < sizeof (struct GNUNET_NAMESTORE_Block)) | 147 | if (reply_block_size < sizeof (struct GNUNET_GNSRECORD_Block)) |
148 | { | 148 | { |
149 | GNUNET_break_op (0); | 149 | GNUNET_break_op (0); |
150 | return GNUNET_BLOCK_EVALUATION_RESULT_INVALID; | 150 | return GNUNET_BLOCK_EVALUATION_RESULT_INVALID; |
diff --git a/src/gns/test_gns_proxy.c b/src/gns/test_gns_proxy.c index 25127d747..eac9e4449 100644 --- a/src/gns/test_gns_proxy.c +++ b/src/gns/test_gns_proxy.c | |||
@@ -365,7 +365,7 @@ run (void *cls, | |||
365 | { | 365 | { |
366 | enum MHD_FLAG flags; | 366 | enum MHD_FLAG flags; |
367 | struct GNUNET_CRYPTO_EcdsaPrivateKey *host_key; | 367 | struct GNUNET_CRYPTO_EcdsaPrivateKey *host_key; |
368 | struct GNUNET_NAMESTORE_RecordData rd; | 368 | struct GNUNET_GNSRECORD_Data rd; |
369 | char *zone_keyfile; | 369 | char *zone_keyfile; |
370 | 370 | ||
371 | namestore = GNUNET_NAMESTORE_connect (cfg); | 371 | namestore = GNUNET_NAMESTORE_connect (cfg); |
diff --git a/src/gns/test_gns_pseu_shorten.c b/src/gns/test_gns_pseu_shorten.c index 6bcc18999..5214db8f8 100644 --- a/src/gns/test_gns_pseu_shorten.c +++ b/src/gns/test_gns_pseu_shorten.c | |||
@@ -181,7 +181,7 @@ process_shorten_result (void* cls, const char* sname) | |||
181 | 181 | ||
182 | static void | 182 | static void |
183 | on_lookup_result (void *cls, uint32_t rd_count, | 183 | on_lookup_result (void *cls, uint32_t rd_count, |
184 | const struct GNUNET_NAMESTORE_RecordData *rd) | 184 | const struct GNUNET_GNSRECORD_Data *rd) |
185 | { | 185 | { |
186 | struct in_addr a; | 186 | struct in_addr a; |
187 | int i; | 187 | int i; |
@@ -266,9 +266,9 @@ put_pseu_dht (void *cls, int success) | |||
266 | uint32_t rd_payload_length; | 266 | uint32_t rd_payload_length; |
267 | char* nrb_data = NULL; | 267 | char* nrb_data = NULL; |
268 | struct GNUNET_CRYPTO_EcdsaSignature *sig; | 268 | struct GNUNET_CRYPTO_EcdsaSignature *sig; |
269 | struct GNUNET_NAMESTORE_RecordData rd; | 269 | struct GNUNET_GNSRECORD_Data rd; |
270 | 270 | ||
271 | memset (&rd, 0, sizeof (struct GNUNET_NAMESTORE_RecordData)); | 271 | memset (&rd, 0, sizeof (struct GNUNET_GNSRECORD_Data)); |
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; |
@@ -288,7 +288,7 @@ put_pseu_dht (void *cls, int success) | |||
288 | 1, | 288 | 1, |
289 | &rd, | 289 | &rd, |
290 | sig)); | 290 | sig)); |
291 | rd_payload_length = GNUNET_NAMESTORE_records_get_size (1, &rd); | 291 | rd_payload_length = GNUNET_GNSRECORD_records_get_size (1, &rd); |
292 | nrb = GNUNET_malloc(rd_payload_length + strlen(GNUNET_GNS_MASTERZONE_STR) + 1 | 292 | nrb = GNUNET_malloc(rd_payload_length + strlen(GNUNET_GNS_MASTERZONE_STR) + 1 |
293 | + sizeof(struct GNSNameRecordBlock)); | 293 | + sizeof(struct GNSNameRecordBlock)); |
294 | nrb->signature = *sig; | 294 | nrb->signature = *sig; |
@@ -299,7 +299,7 @@ put_pseu_dht (void *cls, int success) | |||
299 | nrb_data = (char*)&nrb[1]; | 299 | nrb_data = (char*)&nrb[1]; |
300 | nrb_data += strlen(GNUNET_GNS_MASTERZONE_STR) + 1; | 300 | nrb_data += strlen(GNUNET_GNS_MASTERZONE_STR) + 1; |
301 | 301 | ||
302 | if (-1 == GNUNET_NAMESTORE_records_serialize (1, | 302 | if (-1 == GNUNET_GNSRECORD_records_serialize (1, |
303 | &rd, | 303 | &rd, |
304 | rd_payload_length, | 304 | rd_payload_length, |
305 | nrb_data)) | 305 | nrb_data)) |
@@ -354,7 +354,7 @@ put_www_dht (void *cls, int success) | |||
354 | uint32_t rd_payload_length; | 354 | uint32_t rd_payload_length; |
355 | char* nrb_data = NULL; | 355 | char* nrb_data = NULL; |
356 | struct GNUNET_CRYPTO_EcdsaSignature *sig; | 356 | struct GNUNET_CRYPTO_EcdsaSignature *sig; |
357 | struct GNUNET_NAMESTORE_RecordData rd; | 357 | struct GNUNET_GNSRECORD_Data rd; |
358 | char* ip = TEST_IP; | 358 | char* ip = TEST_IP; |
359 | struct in_addr *web = GNUNET_malloc(sizeof(struct in_addr)); | 359 | struct in_addr *web = GNUNET_malloc(sizeof(struct in_addr)); |
360 | 360 | ||
@@ -363,7 +363,7 @@ put_www_dht (void *cls, int success) | |||
363 | rd.data_size = sizeof(struct in_addr); | 363 | rd.data_size = sizeof(struct in_addr); |
364 | rd.data = web; | 364 | rd.data = web; |
365 | rd.record_type = GNUNET_DNSPARSER_TYPE_A; | 365 | rd.record_type = GNUNET_DNSPARSER_TYPE_A; |
366 | rd.flags = GNUNET_NAMESTORE_RF_NONE; | 366 | rd.flags = GNUNET_GNSRECORD_RF_NONE; |
367 | 367 | ||
368 | sig = GNUNET_NAMESTORE_create_signature(alice_key, | 368 | sig = GNUNET_NAMESTORE_create_signature(alice_key, |
369 | GNUNET_TIME_UNIT_FOREVER_ABS, | 369 | GNUNET_TIME_UNIT_FOREVER_ABS, |
@@ -376,7 +376,7 @@ put_www_dht (void *cls, int success) | |||
376 | 1, | 376 | 1, |
377 | &rd, | 377 | &rd, |
378 | sig)); | 378 | sig)); |
379 | rd_payload_length = GNUNET_NAMESTORE_records_get_size (1, &rd); | 379 | rd_payload_length = GNUNET_GNSRECORD_records_get_size (1, &rd); |
380 | nrb = GNUNET_malloc(rd_payload_length + strlen(TEST_RECORD_NAME) + 1 | 380 | nrb = GNUNET_malloc(rd_payload_length + strlen(TEST_RECORD_NAME) + 1 |
381 | + sizeof(struct GNSNameRecordBlock)); | 381 | + sizeof(struct GNSNameRecordBlock)); |
382 | nrb->signature = *sig; | 382 | nrb->signature = *sig; |
@@ -387,7 +387,7 @@ put_www_dht (void *cls, int success) | |||
387 | nrb_data = (char*)&nrb[1]; | 387 | nrb_data = (char*)&nrb[1]; |
388 | nrb_data += strlen(TEST_RECORD_NAME) + 1; | 388 | nrb_data += strlen(TEST_RECORD_NAME) + 1; |
389 | 389 | ||
390 | if (-1 == GNUNET_NAMESTORE_records_serialize (1, | 390 | if (-1 == GNUNET_GNSRECORD_records_serialize (1, |
391 | &rd, | 391 | &rd, |
392 | rd_payload_length, | 392 | rd_payload_length, |
393 | nrb_data)) | 393 | nrb_data)) |
@@ -442,13 +442,13 @@ put_pkey_dht (void *cls, int32_t success, const char *emsg) | |||
442 | uint32_t rd_payload_length; | 442 | uint32_t rd_payload_length; |
443 | char* nrb_data = NULL; | 443 | char* nrb_data = NULL; |
444 | struct GNUNET_CRYPTO_EcdsaSignature *sig; | 444 | struct GNUNET_CRYPTO_EcdsaSignature *sig; |
445 | struct GNUNET_NAMESTORE_RecordData rd; | 445 | struct GNUNET_GNSRECORD_Data rd; |
446 | 446 | ||
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_GNSRECORD_TYPE_PKEY; | 450 | rd.record_type = GNUNET_GNSRECORD_TYPE_PKEY; |
451 | rd.flags = GNUNET_NAMESTORE_RF_NONE; | 451 | rd.flags = GNUNET_GNSRECORD_RF_NONE; |
452 | 452 | ||
453 | sig = GNUNET_NAMESTORE_create_signature (bob_key, | 453 | sig = GNUNET_NAMESTORE_create_signature (bob_key, |
454 | GNUNET_TIME_UNIT_FOREVER_ABS, | 454 | GNUNET_TIME_UNIT_FOREVER_ABS, |
@@ -456,7 +456,7 @@ put_pkey_dht (void *cls, int32_t success, const char *emsg) | |||
456 | &rd, | 456 | &rd, |
457 | 1); | 457 | 1); |
458 | 458 | ||
459 | rd_payload_length = GNUNET_NAMESTORE_records_get_size (1, &rd); | 459 | rd_payload_length = GNUNET_GNSRECORD_records_get_size (1, &rd); |
460 | nrb = GNUNET_malloc(rd_payload_length + strlen(TEST_AUTHORITY_ALICE) + 1 | 460 | nrb = GNUNET_malloc(rd_payload_length + strlen(TEST_AUTHORITY_ALICE) + 1 |
461 | + sizeof(struct GNSNameRecordBlock)); | 461 | + sizeof(struct GNSNameRecordBlock)); |
462 | nrb->signature = *sig; | 462 | nrb->signature = *sig; |
@@ -467,7 +467,7 @@ put_pkey_dht (void *cls, int32_t success, const char *emsg) | |||
467 | nrb_data = (char*)&nrb[1]; | 467 | nrb_data = (char*)&nrb[1]; |
468 | nrb_data += strlen(TEST_AUTHORITY_ALICE) + 1; | 468 | nrb_data += strlen(TEST_AUTHORITY_ALICE) + 1; |
469 | 469 | ||
470 | if (-1 == GNUNET_NAMESTORE_records_serialize (1, | 470 | if (-1 == GNUNET_GNSRECORD_records_serialize (1, |
471 | &rd, | 471 | &rd, |
472 | rd_payload_length, | 472 | rd_payload_length, |
473 | nrb_data)) | 473 | nrb_data)) |
@@ -514,12 +514,12 @@ put_pkey_dht (void *cls, int32_t success, const char *emsg) | |||
514 | static void | 514 | static void |
515 | fin_init_zone (void *cls, int32_t success, const char *emsg) | 515 | fin_init_zone (void *cls, int32_t success, const char *emsg) |
516 | { | 516 | { |
517 | struct GNUNET_NAMESTORE_RecordData rd; | 517 | struct GNUNET_GNSRECORD_Data rd; |
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_GNSRECORD_TYPE_PKEY; | 521 | rd.record_type = GNUNET_GNSRECORD_TYPE_PKEY; |
522 | rd.flags = GNUNET_NAMESTORE_RF_NONE; | 522 | rd.flags = GNUNET_GNSRECORD_RF_NONE; |
523 | 523 | ||
524 | GNUNET_NAMESTORE_record_put_by_authority (namestore_handle, | 524 | GNUNET_NAMESTORE_record_put_by_authority (namestore_handle, |
525 | our_key, | 525 | our_key, |
@@ -534,13 +534,13 @@ static void | |||
534 | cont_init_zone (void *cls, int32_t success, const char *emsg) | 534 | cont_init_zone (void *cls, int32_t success, const char *emsg) |
535 | { | 535 | { |
536 | 536 | ||
537 | struct GNUNET_NAMESTORE_RecordData rd; | 537 | struct GNUNET_GNSRECORD_Data rd; |
538 | 538 | ||
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_GNSRECORD_TYPE_PKEY; | 542 | rd.record_type = GNUNET_GNSRECORD_TYPE_PKEY; |
543 | rd.flags = GNUNET_NAMESTORE_RF_NONE; | 543 | rd.flags = GNUNET_GNSRECORD_RF_NONE; |
544 | 544 | ||
545 | GNUNET_NAMESTORE_record_put_by_authority (namestore_handle, | 545 | GNUNET_NAMESTORE_record_put_by_authority (namestore_handle, |
546 | priv_key, | 546 | priv_key, |
@@ -559,7 +559,7 @@ do_check (void *cls, | |||
559 | char *private_keyfile; | 559 | char *private_keyfile; |
560 | char *shorten_keyfile; | 560 | char *shorten_keyfile; |
561 | char *our_keyfile; | 561 | char *our_keyfile; |
562 | struct GNUNET_NAMESTORE_RecordData rd; | 562 | struct GNUNET_GNSRECORD_Data rd; |
563 | 563 | ||
564 | cfg = ccfg; | 564 | cfg = ccfg; |
565 | die_task = GNUNET_SCHEDULER_add_delayed (TIMEOUT, &end_badly, NULL); | 565 | die_task = GNUNET_SCHEDULER_add_delayed (TIMEOUT, &end_badly, NULL); |
@@ -641,7 +641,7 @@ do_check (void *cls, | |||
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_GNSRECORD_TYPE_PKEY; | 643 | rd.record_type = GNUNET_GNSRECORD_TYPE_PKEY; |
644 | rd.flags = GNUNET_NAMESTORE_RF_NONE; | 644 | rd.flags = GNUNET_GNSRECORD_RF_NONE; |
645 | 645 | ||
646 | GNUNET_NAMESTORE_record_put_by_authority (namestore_handle, | 646 | GNUNET_NAMESTORE_record_put_by_authority (namestore_handle, |
647 | our_key, | 647 | our_key, |
diff --git a/src/gns/test_gns_revocation.c b/src/gns/test_gns_revocation.c index 555e44a20..738bda318 100644 --- a/src/gns/test_gns_revocation.c +++ b/src/gns/test_gns_revocation.c | |||
@@ -104,7 +104,7 @@ shutdown_task (void *cls, | |||
104 | 104 | ||
105 | static void | 105 | static void |
106 | on_lookup_result(void *cls, uint32_t rd_count, | 106 | on_lookup_result(void *cls, uint32_t rd_count, |
107 | const struct GNUNET_NAMESTORE_RecordData *rd) | 107 | const struct GNUNET_GNSRECORD_Data *rd) |
108 | { | 108 | { |
109 | struct in_addr a; | 109 | struct in_addr a; |
110 | int i; | 110 | int i; |
@@ -216,7 +216,7 @@ do_check (void *cls, | |||
216 | GNUNET_CRYPTO_ecdsa_key_get_public (alice_key, &alice_pkey); | 216 | GNUNET_CRYPTO_ecdsa_key_get_public (alice_key, &alice_pkey); |
217 | GNUNET_CRYPTO_ecdsa_key_get_public (bob_key, &bob_pkey); | 217 | GNUNET_CRYPTO_ecdsa_key_get_public (bob_key, &bob_pkey); |
218 | 218 | ||
219 | struct GNUNET_NAMESTORE_RecordData rd; | 219 | struct GNUNET_GNSRECORD_Data rd; |
220 | char* ip = TEST_IP; | 220 | char* ip = TEST_IP; |
221 | struct in_addr *web = GNUNET_malloc(sizeof(struct in_addr)); | 221 | struct in_addr *web = GNUNET_malloc(sizeof(struct in_addr)); |
222 | rd.expiration_time = UINT64_MAX; | 222 | rd.expiration_time = UINT64_MAX; |
@@ -227,7 +227,7 @@ do_check (void *cls, | |||
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_GNSRECORD_TYPE_PKEY; | 229 | rd.record_type = GNUNET_GNSRECORD_TYPE_PKEY; |
230 | rd.flags = GNUNET_NAMESTORE_RF_NONE; | 230 | rd.flags = GNUNET_GNSRECORD_RF_NONE; |
231 | 231 | ||
232 | GNUNET_NAMESTORE_record_put_by_authority (namestore_handle, | 232 | GNUNET_NAMESTORE_record_put_by_authority (namestore_handle, |
233 | alice_key, | 233 | alice_key, |
diff --git a/src/gns/test_gns_simple_shorten.c b/src/gns/test_gns_simple_shorten.c index 2b4543f4e..74fe77446 100644 --- a/src/gns/test_gns_simple_shorten.c +++ b/src/gns/test_gns_simple_shorten.c | |||
@@ -246,7 +246,7 @@ void do_check (void *cls, | |||
246 | GNUNET_CRYPTO_short_hash(&priv_pkey, sizeof(priv_pkey), &priv_zone); | 246 | GNUNET_CRYPTO_short_hash(&priv_pkey, sizeof(priv_pkey), &priv_zone); |
247 | GNUNET_CRYPTO_short_hash(&short_pkey, sizeof(short_pkey), &short_zone); | 247 | GNUNET_CRYPTO_short_hash(&short_pkey, sizeof(short_pkey), &short_zone); |
248 | 248 | ||
249 | struct GNUNET_NAMESTORE_RecordData rd; | 249 | struct GNUNET_GNSRECORD_Data rd; |
250 | char* ip = TEST_IP; | 250 | char* ip = TEST_IP; |
251 | struct in_addr *web = GNUNET_malloc(sizeof(struct in_addr)); | 251 | struct in_addr *web = GNUNET_malloc(sizeof(struct in_addr)); |
252 | rd.expiration_time = UINT64_MAX; | 252 | rd.expiration_time = UINT64_MAX; |
@@ -257,7 +257,7 @@ void do_check (void *cls, | |||
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_GNSRECORD_TYPE_PKEY; | 259 | rd.record_type = GNUNET_GNSRECORD_TYPE_PKEY; |
260 | rd.flags = GNUNET_NAMESTORE_RF_NONE; | 260 | rd.flags = GNUNET_GNSRECORD_RF_NONE; |
261 | 261 | ||
262 | /* put bob into our zone */ | 262 | /* put bob into our zone */ |
263 | GNUNET_NAMESTORE_record_put_by_authority (namestore_handle, | 263 | 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 162e9dc93..ce8478d7d 100644 --- a/src/gns/test_gns_simple_srv_lookup.c +++ b/src/gns/test_gns_simple_srv_lookup.c | |||
@@ -104,7 +104,7 @@ static void shutdown_task (void *cls, | |||
104 | 104 | ||
105 | static void | 105 | static void |
106 | on_lookup_result(void *cls, uint32_t rd_count, | 106 | on_lookup_result(void *cls, uint32_t rd_count, |
107 | const struct GNUNET_NAMESTORE_RecordData *rd) | 107 | const struct GNUNET_GNSRECORD_Data *rd) |
108 | { | 108 | { |
109 | int i; | 109 | int i; |
110 | uint16_t *srv_data; | 110 | uint16_t *srv_data; |
@@ -219,7 +219,7 @@ do_check (void *cls, | |||
219 | GNUNET_CRYPTO_ecdsa_key_get_public (alice_key, &alice_pkey); | 219 | GNUNET_CRYPTO_ecdsa_key_get_public (alice_key, &alice_pkey); |
220 | GNUNET_CRYPTO_ecdsa_key_get_public (bob_key, &bob_pkey); | 220 | GNUNET_CRYPTO_ecdsa_key_get_public (bob_key, &bob_pkey); |
221 | 221 | ||
222 | struct GNUNET_NAMESTORE_RecordData rd; | 222 | struct GNUNET_GNSRECORD_Data rd; |
223 | char* ip = TEST_IP; | 223 | char* ip = TEST_IP; |
224 | struct in_addr *sipserver = GNUNET_malloc (sizeof (struct in_addr)); | 224 | struct in_addr *sipserver = GNUNET_malloc (sizeof (struct in_addr)); |
225 | srv_data = GNUNET_malloc (sizeof (struct GNUNET_TUN_DnsSrvRecord) + strlen (TEST_SRV_NAME) + 1); | 225 | srv_data = GNUNET_malloc (sizeof (struct GNUNET_TUN_DnsSrvRecord) + strlen (TEST_SRV_NAME) + 1); |
@@ -235,7 +235,7 @@ do_check (void *cls, | |||
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_GNSRECORD_TYPE_PKEY; | 237 | rd.record_type = GNUNET_GNSRECORD_TYPE_PKEY; |
238 | rd.flags = GNUNET_NAMESTORE_RF_NONE; | 238 | rd.flags = GNUNET_GNSRECORD_RF_NONE; |
239 | 239 | ||
240 | GNUNET_NAMESTORE_record_put_by_authority (namestore_handle, | 240 | GNUNET_NAMESTORE_record_put_by_authority (namestore_handle, |
241 | alice_key, | 241 | alice_key, |
diff --git a/src/gns/test_gns_simple_zkey_lookup.c b/src/gns/test_gns_simple_zkey_lookup.c index 6e8ec9ff4..6907362b8 100644 --- a/src/gns/test_gns_simple_zkey_lookup.c +++ b/src/gns/test_gns_simple_zkey_lookup.c | |||
@@ -105,7 +105,7 @@ shutdown_task (void *cls, | |||
105 | 105 | ||
106 | static void | 106 | static void |
107 | on_lookup_result(void *cls, uint32_t rd_count, | 107 | on_lookup_result(void *cls, uint32_t rd_count, |
108 | const struct GNUNET_NAMESTORE_RecordData *rd) | 108 | const struct GNUNET_GNSRECORD_Data *rd) |
109 | { | 109 | { |
110 | struct in_addr a; | 110 | struct in_addr a; |
111 | int i; | 111 | int i; |
@@ -233,7 +233,7 @@ do_check (void *cls, | |||
233 | GNUNET_CRYPTO_ecdsa_key_get_public (alice_key, &alice_pkey); | 233 | GNUNET_CRYPTO_ecdsa_key_get_public (alice_key, &alice_pkey); |
234 | GNUNET_CRYPTO_ecdsa_key_get_public (bob_key, &bob_pkey); | 234 | GNUNET_CRYPTO_ecdsa_key_get_public (bob_key, &bob_pkey); |
235 | 235 | ||
236 | struct GNUNET_NAMESTORE_RecordData rd; | 236 | struct GNUNET_GNSRECORD_Data rd; |
237 | char* ip = TEST_IP; | 237 | char* ip = TEST_IP; |
238 | struct in_addr *web = GNUNET_malloc(sizeof(struct in_addr)); | 238 | struct in_addr *web = GNUNET_malloc(sizeof(struct in_addr)); |
239 | rd.expiration_time = UINT64_MAX; | 239 | rd.expiration_time = UINT64_MAX; |
@@ -244,7 +244,7 @@ do_check (void *cls, | |||
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_GNSRECORD_TYPE_PKEY; | 246 | rd.record_type = GNUNET_GNSRECORD_TYPE_PKEY; |
247 | rd.flags = GNUNET_NAMESTORE_RF_NONE; | 247 | rd.flags = GNUNET_GNSRECORD_RF_NONE; |
248 | 248 | ||
249 | GNUNET_NAMESTORE_record_put_by_authority (namestore_handle, | 249 | GNUNET_NAMESTORE_record_put_by_authority (namestore_handle, |
250 | alice_key, | 250 | alice_key, |