diff options
Diffstat (limited to 'src/namestore/plugin_namestore_postgres.c')
-rw-r--r-- | src/namestore/plugin_namestore_postgres.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/namestore/plugin_namestore_postgres.c b/src/namestore/plugin_namestore_postgres.c index 04100567c..358fd35d6 100644 --- a/src/namestore/plugin_namestore_postgres.c +++ b/src/namestore/plugin_namestore_postgres.c | |||
@@ -180,13 +180,13 @@ database_setup (struct Plugin *plugin) | |||
180 | static int | 180 | static int |
181 | namestore_postgres_store_records (void *cls, | 181 | namestore_postgres_store_records (void *cls, |
182 | const struct | 182 | const struct |
183 | GNUNET_CRYPTO_EcdsaPrivateKey *zone_key, | 183 | GNUNET_IDENTITY_PrivateKey *zone_key, |
184 | const char *label, | 184 | const char *label, |
185 | unsigned int rd_count, | 185 | unsigned int rd_count, |
186 | const struct GNUNET_GNSRECORD_Data *rd) | 186 | const struct GNUNET_GNSRECORD_Data *rd) |
187 | { | 187 | { |
188 | struct Plugin *plugin = cls; | 188 | struct Plugin *plugin = cls; |
189 | struct GNUNET_CRYPTO_EcdsaPublicKey pkey; | 189 | struct GNUNET_IDENTITY_PublicKey pkey; |
190 | uint64_t rvalue; | 190 | uint64_t rvalue; |
191 | uint32_t rd_count32 = (uint32_t) rd_count; | 191 | uint32_t rd_count32 = (uint32_t) rd_count; |
192 | ssize_t data_size; | 192 | ssize_t data_size; |
@@ -197,7 +197,7 @@ namestore_postgres_store_records (void *cls, | |||
197 | for (unsigned int i = 0; i < rd_count; i++) | 197 | for (unsigned int i = 0; i < rd_count; i++) |
198 | if (GNUNET_GNSRECORD_TYPE_PKEY == rd[i].record_type) | 198 | if (GNUNET_GNSRECORD_TYPE_PKEY == rd[i].record_type) |
199 | { | 199 | { |
200 | GNUNET_break (sizeof(struct GNUNET_CRYPTO_EcdsaPublicKey) == | 200 | GNUNET_break (sizeof(struct GNUNET_IDENTITY_PublicKey) == |
201 | rd[i].data_size); | 201 | rd[i].data_size); |
202 | GNUNET_memcpy (&pkey, | 202 | GNUNET_memcpy (&pkey, |
203 | rd[i].data, | 203 | rd[i].data, |
@@ -296,7 +296,7 @@ struct ParserContext | |||
296 | /** | 296 | /** |
297 | * Zone key, NULL if part of record. | 297 | * Zone key, NULL if part of record. |
298 | */ | 298 | */ |
299 | const struct GNUNET_CRYPTO_EcdsaPrivateKey *zone_key; | 299 | const struct GNUNET_IDENTITY_PrivateKey *zone_key; |
300 | 300 | ||
301 | /** | 301 | /** |
302 | * Number of results still to return (counted down by | 302 | * Number of results still to return (counted down by |
@@ -330,7 +330,7 @@ parse_result_call_iterator (void *cls, | |||
330 | size_t data_size; | 330 | size_t data_size; |
331 | uint32_t record_count; | 331 | uint32_t record_count; |
332 | char *label; | 332 | char *label; |
333 | struct GNUNET_CRYPTO_EcdsaPrivateKey zk; | 333 | struct GNUNET_IDENTITY_PrivateKey zk; |
334 | struct GNUNET_PQ_ResultSpec rs_with_zone[] = { | 334 | struct GNUNET_PQ_ResultSpec rs_with_zone[] = { |
335 | GNUNET_PQ_result_spec_uint64 ("seq", &serial), | 335 | GNUNET_PQ_result_spec_uint64 ("seq", &serial), |
336 | GNUNET_PQ_result_spec_uint32 ("record_count", &record_count), | 336 | GNUNET_PQ_result_spec_uint32 ("record_count", &record_count), |
@@ -407,7 +407,7 @@ parse_result_call_iterator (void *cls, | |||
407 | static int | 407 | static int |
408 | namestore_postgres_lookup_records (void *cls, | 408 | namestore_postgres_lookup_records (void *cls, |
409 | const struct | 409 | const struct |
410 | GNUNET_CRYPTO_EcdsaPrivateKey *zone, | 410 | GNUNET_IDENTITY_PrivateKey *zone, |
411 | const char *label, | 411 | const char *label, |
412 | GNUNET_NAMESTORE_RecordIterator iter, | 412 | GNUNET_NAMESTORE_RecordIterator iter, |
413 | void *iter_cls) | 413 | void *iter_cls) |
@@ -457,7 +457,7 @@ namestore_postgres_lookup_records (void *cls, | |||
457 | static int | 457 | static int |
458 | namestore_postgres_iterate_records (void *cls, | 458 | namestore_postgres_iterate_records (void *cls, |
459 | const struct | 459 | const struct |
460 | GNUNET_CRYPTO_EcdsaPrivateKey *zone, | 460 | GNUNET_IDENTITY_PrivateKey *zone, |
461 | uint64_t serial, | 461 | uint64_t serial, |
462 | uint64_t limit, | 462 | uint64_t limit, |
463 | GNUNET_NAMESTORE_RecordIterator iter, | 463 | GNUNET_NAMESTORE_RecordIterator iter, |
@@ -524,9 +524,9 @@ namestore_postgres_iterate_records (void *cls, | |||
524 | static int | 524 | static int |
525 | namestore_postgres_zone_to_name (void *cls, | 525 | namestore_postgres_zone_to_name (void *cls, |
526 | const struct | 526 | const struct |
527 | GNUNET_CRYPTO_EcdsaPrivateKey *zone, | 527 | GNUNET_IDENTITY_PrivateKey *zone, |
528 | const struct | 528 | const struct |
529 | GNUNET_CRYPTO_EcdsaPublicKey *value_zone, | 529 | GNUNET_IDENTITY_PublicKey *value_zone, |
530 | GNUNET_NAMESTORE_RecordIterator iter, | 530 | GNUNET_NAMESTORE_RecordIterator iter, |
531 | void *iter_cls) | 531 | void *iter_cls) |
532 | { | 532 | { |