diff options
Diffstat (limited to 'src/namestore/test_namestore_api_zone_to_name.c')
-rw-r--r-- | src/namestore/test_namestore_api_zone_to_name.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/namestore/test_namestore_api_zone_to_name.c b/src/namestore/test_namestore_api_zone_to_name.c index e1fefec09..ea242c49e 100644 --- a/src/namestore/test_namestore_api_zone_to_name.c +++ b/src/namestore/test_namestore_api_zone_to_name.c | |||
@@ -187,7 +187,7 @@ run (void *cls, | |||
187 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Using PKEY `%s' \n", GNUNET_NAMESTORE_short_h2s (&s_zone_value)); | 187 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Using PKEY `%s' \n", GNUNET_NAMESTORE_short_h2s (&s_zone_value)); |
188 | 188 | ||
189 | struct GNUNET_NAMESTORE_RecordData rd; | 189 | struct GNUNET_NAMESTORE_RecordData rd; |
190 | rd.expiration_time = GNUNET_TIME_absolute_get().abs_value; | 190 | rd.expiration_time = GNUNET_TIME_absolute_get().abs_value_us; |
191 | rd.record_type = GNUNET_NAMESTORE_TYPE_PKEY; | 191 | rd.record_type = GNUNET_NAMESTORE_TYPE_PKEY; |
192 | rd.data_size = sizeof (struct GNUNET_CRYPTO_ShortHashCode); | 192 | rd.data_size = sizeof (struct GNUNET_CRYPTO_ShortHashCode); |
193 | rd.data = GNUNET_malloc(sizeof (struct GNUNET_CRYPTO_ShortHashCode)); | 193 | rd.data = GNUNET_malloc(sizeof (struct GNUNET_CRYPTO_ShortHashCode)); |
@@ -196,7 +196,7 @@ run (void *cls, | |||
196 | GNUNET_break (NULL != nsh); | 196 | GNUNET_break (NULL != nsh); |
197 | 197 | ||
198 | expire = GNUNET_TIME_absolute_get (); | 198 | expire = GNUNET_TIME_absolute_get (); |
199 | et.abs_value = rd.expiration_time; | 199 | et.abs_value_us = rd.expiration_time; |
200 | s_signature = GNUNET_NAMESTORE_create_signature(privkey, et, s_name, &rd, 1); | 200 | s_signature = GNUNET_NAMESTORE_create_signature(privkey, et, s_name, &rd, 1); |
201 | GNUNET_NAMESTORE_record_put(nsh, &pubkey, s_name, expire, 1, &rd, s_signature, put_cont, NULL); | 201 | GNUNET_NAMESTORE_record_put(nsh, &pubkey, s_name, expire, 1, &rd, s_signature, put_cont, NULL); |
202 | 202 | ||