aboutsummaryrefslogtreecommitdiff
path: root/src/namestore/gnunet-service-namestore.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/namestore/gnunet-service-namestore.c')
-rw-r--r--src/namestore/gnunet-service-namestore.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/namestore/gnunet-service-namestore.c b/src/namestore/gnunet-service-namestore.c
index a4e463642..749552dca 100644
--- a/src/namestore/gnunet-service-namestore.c
+++ b/src/namestore/gnunet-service-namestore.c
@@ -442,12 +442,12 @@ get_block_expiration_time (unsigned int rd_count, const struct GNUNET_NAMESTORE_
442 { 442 {
443 if (0 != (rd[c].flags & GNUNET_NAMESTORE_RF_RELATIVE_EXPIRATION)) 443 if (0 != (rd[c].flags & GNUNET_NAMESTORE_RF_RELATIVE_EXPIRATION))
444 { 444 {
445 rt.rel_value = rd[c].expiration_time; 445 rt.rel_value_us = rd[c].expiration_time;
446 at = GNUNET_TIME_relative_to_absolute (rt); 446 at = GNUNET_TIME_relative_to_absolute (rt);
447 } 447 }
448 else 448 else
449 { 449 {
450 at.abs_value = rd[c].expiration_time; 450 at.abs_value_us = rd[c].expiration_time;
451 } 451 }
452 expire = GNUNET_TIME_absolute_min (at, expire); 452 expire = GNUNET_TIME_absolute_min (at, expire);
453 } 453 }
@@ -742,16 +742,16 @@ handle_lookup_name_it (void *cls,
742 { 742 {
743 GNUNET_break (GNUNET_YES == authoritative); 743 GNUNET_break (GNUNET_YES == authoritative);
744 rd_modified = GNUNET_YES; 744 rd_modified = GNUNET_YES;
745 re.rel_value = rd[c].expiration_time; 745 re.rel_value_us = rd[c].expiration_time;
746 e = GNUNET_TIME_relative_to_absolute (re); 746 e = GNUNET_TIME_relative_to_absolute (re);
747 } 747 }
748 else 748 else
749 { 749 {
750 e.abs_value = rd[c].expiration_time; 750 e.abs_value_us = rd[c].expiration_time;
751 } 751 }
752 /* found matching record, copy and convert flags to public format */ 752 /* found matching record, copy and convert flags to public format */
753 rd_selected[copied_elements] = rd[c]; /* shallow copy! */ 753 rd_selected[copied_elements] = rd[c]; /* shallow copy! */
754 rd_selected[copied_elements].expiration_time = e.abs_value; 754 rd_selected[copied_elements].expiration_time = e.abs_value_us;
755 if (0 != (rd_selected[copied_elements].flags & 755 if (0 != (rd_selected[copied_elements].flags &
756 (GNUNET_NAMESTORE_RF_RELATIVE_EXPIRATION | GNUNET_NAMESTORE_RF_AUTHORITY))) 756 (GNUNET_NAMESTORE_RF_RELATIVE_EXPIRATION | GNUNET_NAMESTORE_RF_AUTHORITY)))
757 { 757 {
@@ -1609,8 +1609,8 @@ zone_iteraterate_proc (void *cls,
1609 (0 != (rd[c].flags & GNUNET_NAMESTORE_RF_RELATIVE_EXPIRATION)) ) 1609 (0 != (rd[c].flags & GNUNET_NAMESTORE_RF_RELATIVE_EXPIRATION)) )
1610 { 1610 {
1611 /* should convert relative-to-absolute expiration time */ 1611 /* should convert relative-to-absolute expiration time */
1612 rt.rel_value = rd[c].expiration_time; 1612 rt.rel_value_us = rd[c].expiration_time;
1613 rd_filtered[c].expiration_time = GNUNET_TIME_relative_to_absolute (rt).abs_value; 1613 rd_filtered[c].expiration_time = GNUNET_TIME_relative_to_absolute (rt).abs_value_us;
1614 rd_filtered[c].flags &= ~ GNUNET_NAMESTORE_RF_RELATIVE_EXPIRATION; 1614 rd_filtered[c].flags &= ~ GNUNET_NAMESTORE_RF_RELATIVE_EXPIRATION;
1615 } 1615 }
1616 /* we NEVER keep the 'authority' flag */ 1616 /* we NEVER keep the 'authority' flag */
@@ -1637,10 +1637,10 @@ zone_iteraterate_proc (void *cls,
1637 1637
1638 1638
1639 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 1639 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
1640 "Creating signature for `%s' in zone `%s' with %u records and expiration %llu\n", 1640 "Creating signature for `%s' in zone `%s' with %u records and expiration %s\n",
1641 name, GNUNET_NAMESTORE_short_h2s(&zone_hash), 1641 name, GNUNET_NAMESTORE_short_h2s(&zone_hash),
1642 rd_count_filtered, 1642 rd_count_filtered,
1643 (unsigned long long) expire.abs_value); 1643 GNUNET_STRINGS_absolute_time_to_string (expire));
1644 /* TODO 1) AB: New publishing 1644 /* TODO 1) AB: New publishing
1645 * - Create HDKF(Q,i) 1645 * - Create HDKF(Q,i)
1646 * - Encrypt record block R with HKDF: HDKF(Q,i) == E(R) 1646 * - Encrypt record block R with HKDF: HDKF(Q,i) == E(R)
@@ -1671,9 +1671,9 @@ zone_iteraterate_proc (void *cls,
1671 if (NULL != signature) 1671 if (NULL != signature)
1672 { 1672 {
1673 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 1673 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
1674 "Using provided signature for `%s' in zone `%s' with %u records and expiration %llu\n", 1674 "Using provided signature for `%s' in zone `%s' with %u records and expiration %s\n",
1675 name, GNUNET_NAMESTORE_short_h2s (&zone_hash), rd_count_filtered, 1675 name, GNUNET_NAMESTORE_short_h2s (&zone_hash), rd_count_filtered,
1676 (unsigned long long) expire.abs_value); 1676 GNUNET_STRINGS_absolute_time_to_string (expire));
1677 return; 1677 return;
1678 } 1678 }
1679 } 1679 }