X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=src%2Fnamestore%2Ftest_namestore_api_remove_not_existing_record.c;h=9e0b22ea51dc32fc5eab8e50d560f485e7e57e60;hb=dc40d894157a9eeee4c72f8cb974fd48e1a98a1b;hp=a85bc8c05eaf2d78d4ddc7452243af2571e48375;hpb=fe76c075e315c0351e2fe465434ae39087daf014;p=oweals%2Fgnunet.git diff --git a/src/namestore/test_namestore_api_remove_not_existing_record.c b/src/namestore/test_namestore_api_remove_not_existing_record.c index a85bc8c05..9e0b22ea5 100644 --- a/src/namestore/test_namestore_api_remove_not_existing_record.c +++ b/src/namestore/test_namestore_api_remove_not_existing_record.c @@ -77,7 +77,7 @@ endbadly (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) GNUNET_NAMESTORE_disconnect (nsh); nsh = NULL; if (privkey != NULL) - GNUNET_CRYPTO_ecc_key_free (privkey); + GNUNET_free (privkey); privkey = NULL; GNUNET_free_non_null (s_name); res = 1; @@ -99,7 +99,7 @@ end (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) GNUNET_free (s_rd); if (privkey != NULL) - GNUNET_CRYPTO_ecc_key_free (privkey); + GNUNET_free (privkey); privkey = NULL; if (nsh != NULL) GNUNET_NAMESTORE_disconnect (nsh); @@ -158,7 +158,7 @@ create_record (unsigned int count) rd = GNUNET_malloc (count * sizeof (struct GNUNET_NAMESTORE_RecordData)); for (c = 0; c < count; c++) { - rd[c].expiration_time = GNUNET_TIME_absolute_get().abs_value; + rd[c].expiration_time = GNUNET_TIME_absolute_get().abs_value_us; rd[c].record_type = TEST_RECORD_TYPE; rd[c].data_size = TEST_RECORD_DATALEN; rd[c].data = GNUNET_malloc(TEST_RECORD_DATALEN); @@ -198,7 +198,7 @@ run (void *cls, GNUNET_NAMESTORE_records_serialize(RECORDS, s_rd, rd_ser_len, rd_ser); /* sign */ - et.abs_value = s_rd[0].expiration_time; + et.abs_value_us = s_rd[0].expiration_time; s_signature = GNUNET_NAMESTORE_create_signature(privkey, et, s_name, s_rd, RECORDS); /* create random zone hash */