diff options
Diffstat (limited to 'src/namestore/plugin_namestore_postgres.c')
-rw-r--r-- | src/namestore/plugin_namestore_postgres.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/namestore/plugin_namestore_postgres.c b/src/namestore/plugin_namestore_postgres.c index 546653d90..fba2b47b4 100644 --- a/src/namestore/plugin_namestore_postgres.c +++ b/src/namestore/plugin_namestore_postgres.c | |||
@@ -273,7 +273,7 @@ namestore_postgres_remove_records (void *cls, | |||
273 | */ | 273 | */ |
274 | static int | 274 | static int |
275 | namestore_postgres_put_records (void *cls, | 275 | namestore_postgres_put_records (void *cls, |
276 | const struct GNUNET_CRYPTO_EccPublicKey *zone_key, | 276 | const struct GNUNET_CRYPTO_EccPublicSignKey *zone_key, |
277 | struct GNUNET_TIME_Absolute expire, | 277 | struct GNUNET_TIME_Absolute expire, |
278 | const char *name, | 278 | const char *name, |
279 | unsigned int rd_count, | 279 | unsigned int rd_count, |
@@ -291,7 +291,7 @@ namestore_postgres_put_records (void *cls, | |||
291 | unsigned int i; | 291 | unsigned int i; |
292 | 292 | ||
293 | GNUNET_CRYPTO_short_hash (zone_key, | 293 | GNUNET_CRYPTO_short_hash (zone_key, |
294 | sizeof (struct GNUNET_CRYPTO_EccPublicKey), | 294 | sizeof (struct GNUNET_CRYPTO_EccPublicSignKey), |
295 | &zone); | 295 | &zone); |
296 | (void) namestore_postgres_remove_records (plugin, &zone, name); | 296 | (void) namestore_postgres_remove_records (plugin, &zone, name); |
297 | name_len = strlen (name); | 297 | name_len = strlen (name); |
@@ -331,7 +331,7 @@ namestore_postgres_put_records (void *cls, | |||
331 | (const char *) &rvalue_be | 331 | (const char *) &rvalue_be |
332 | }; | 332 | }; |
333 | int paramLengths[] = { | 333 | int paramLengths[] = { |
334 | sizeof (struct GNUNET_CRYPTO_EccPublicKey), | 334 | sizeof (struct GNUNET_CRYPTO_EccPublicSignKey), |
335 | name_len, | 335 | name_len, |
336 | sizeof (uint32_t), | 336 | sizeof (uint32_t), |
337 | data_size, | 337 | data_size, |
@@ -383,7 +383,7 @@ get_record_and_call_iterator (struct Plugin *plugin, | |||
383 | { | 383 | { |
384 | unsigned int record_count; | 384 | unsigned int record_count; |
385 | size_t data_size; | 385 | size_t data_size; |
386 | /* const struct GNUNET_CRYPTO_EccPublicKey *zone_key; */ | 386 | /* const struct GNUNET_CRYPTO_EccPublicSignKey *zone_key; */ |
387 | const struct GNUNET_CRYPTO_EccPrivateKey *zone_key; | 387 | const struct GNUNET_CRYPTO_EccPrivateKey *zone_key; |
388 | /* const struct GNUNET_CRYPTO_EccSignature *sig; */ | 388 | /* const struct GNUNET_CRYPTO_EccSignature *sig; */ |
389 | /* struct GNUNET_TIME_Absolute expiration; */ | 389 | /* struct GNUNET_TIME_Absolute expiration; */ |
@@ -413,7 +413,7 @@ get_record_and_call_iterator (struct Plugin *plugin, | |||
413 | } | 413 | } |
414 | GNUNET_assert (1 == cnt); | 414 | GNUNET_assert (1 == cnt); |
415 | if ((6 != PQnfields (res)) || | 415 | if ((6 != PQnfields (res)) || |
416 | (sizeof (struct GNUNET_CRYPTO_EccPublicKey) != PQgetlength (res, 0, 0)) || | 416 | (sizeof (struct GNUNET_CRYPTO_EccPublicSignKey) != PQgetlength (res, 0, 0)) || |
417 | (sizeof (uint32_t) != PQfsize (res, 2)) || | 417 | (sizeof (uint32_t) != PQfsize (res, 2)) || |
418 | (sizeof (uint64_t) != PQfsize (res, 4)) || | 418 | (sizeof (uint64_t) != PQfsize (res, 4)) || |
419 | (sizeof (struct GNUNET_CRYPTO_EccSignature) != PQgetlength (res, 0, 5))) | 419 | (sizeof (struct GNUNET_CRYPTO_EccSignature) != PQgetlength (res, 0, 5))) |
@@ -423,7 +423,7 @@ get_record_and_call_iterator (struct Plugin *plugin, | |||
423 | return GNUNET_SYSERR; | 423 | return GNUNET_SYSERR; |
424 | } | 424 | } |
425 | zone_key = (const struct GNUNET_CRYPTO_EccPrivateKey *) PQgetvalue (res, 0, 0); | 425 | zone_key = (const struct GNUNET_CRYPTO_EccPrivateKey *) PQgetvalue (res, 0, 0); |
426 | /* zone_key = (const struct GNUNET_CRYPTO_EccPublicKey *) PQgetvalue (res, 0, 0); */ | 426 | /* zone_key = (const struct GNUNET_CRYPTO_EccPublicSignKey *) PQgetvalue (res, 0, 0); */ |
427 | name = PQgetvalue (res, 0, 1); | 427 | name = PQgetvalue (res, 0, 1); |
428 | name_len = PQgetlength (res, 0, 1); | 428 | name_len = PQgetlength (res, 0, 1); |
429 | record_count = ntohl (*(uint32_t *) PQgetvalue (res, 0, 2)); | 429 | record_count = ntohl (*(uint32_t *) PQgetvalue (res, 0, 2)); |
@@ -563,7 +563,7 @@ namestore_postgres_iterate_records (void *cls, | |||
563 | static int | 563 | static int |
564 | namestore_postgres_zone_to_name (void *cls, | 564 | namestore_postgres_zone_to_name (void *cls, |
565 | const struct GNUNET_CRYPTO_EccPrivateKey *zone, | 565 | const struct GNUNET_CRYPTO_EccPrivateKey *zone, |
566 | const struct GNUNET_CRYPTO_EccPublicKey *value_zone, | 566 | const struct GNUNET_CRYPTO_EccPublicSignKey *value_zone, |
567 | GNUNET_NAMESTORE_RecordIterator iter, void *iter_cls) | 567 | GNUNET_NAMESTORE_RecordIterator iter, void *iter_cls) |
568 | { | 568 | { |
569 | #if 0 | 569 | #if 0 |