diff options
-rw-r--r-- | src/gns/gnunet-service-gns.c | 3 | ||||
-rw-r--r-- | src/gnsrecord/gnsrecord_crypto.c | 2 | ||||
-rw-r--r-- | src/include/gnunet_gnsrecord_lib.h | 6 | ||||
-rw-r--r-- | src/namestore/gnunet-namestore.c | 5 | ||||
-rw-r--r-- | src/namestore/gnunet-service-namestore.c | 3 |
5 files changed, 6 insertions, 13 deletions
diff --git a/src/gns/gnunet-service-gns.c b/src/gns/gnunet-service-gns.c index 1f21c103a..d9eae6a09 100644 --- a/src/gns/gnunet-service-gns.c +++ b/src/gns/gnunet-service-gns.c | |||
@@ -416,8 +416,7 @@ convert_records_for_export (const struct GNUNET_GNSRECORD_Data *rd, | |||
416 | rd_public_count = 0; | 416 | rd_public_count = 0; |
417 | now = GNUNET_TIME_absolute_get (); | 417 | now = GNUNET_TIME_absolute_get (); |
418 | for (i=0;i<rd_count;i++) | 418 | for (i=0;i<rd_count;i++) |
419 | if (0 == (rd[i].flags & (GNUNET_GNSRECORD_RF_PRIVATE | | 419 | if (0 == (rd[i].flags & GNUNET_GNSRECORD_RF_PRIVATE)) |
420 | GNUNET_GNSRECORD_RF_PENDING))) | ||
421 | { | 420 | { |
422 | rd_public[rd_public_count] = rd[i]; | 421 | rd_public[rd_public_count] = rd[i]; |
423 | if (0 != (rd[i].flags & GNUNET_GNSRECORD_RF_RELATIVE_EXPIRATION)) | 422 | if (0 != (rd[i].flags & GNUNET_GNSRECORD_RF_RELATIVE_EXPIRATION)) |
diff --git a/src/gnsrecord/gnsrecord_crypto.c b/src/gnsrecord/gnsrecord_crypto.c index 8cf8e532f..8c0bb9e14 100644 --- a/src/gnsrecord/gnsrecord_crypto.c +++ b/src/gnsrecord/gnsrecord_crypto.c | |||
@@ -243,8 +243,6 @@ GNUNET_GNSRECORD_block_decrypt (const struct GNUNET_GNSRECORD_Block *block, | |||
243 | j = 0; | 243 | j = 0; |
244 | for (i=0;i<rd_count;i++) | 244 | for (i=0;i<rd_count;i++) |
245 | { | 245 | { |
246 | if (0 != (rd[i].flags & GNUNET_GNSRECORD_RF_PENDING)) | ||
247 | continue; /* PENDING should never be used */ | ||
248 | if (0 != (rd[i].flags & GNUNET_GNSRECORD_RF_RELATIVE_EXPIRATION)) | 246 | if (0 != (rd[i].flags & GNUNET_GNSRECORD_RF_RELATIVE_EXPIRATION)) |
249 | { | 247 | { |
250 | /* encrypted blocks must never have relative expiration times, skip! */ | 248 | /* encrypted blocks must never have relative expiration times, skip! */ |
diff --git a/src/include/gnunet_gnsrecord_lib.h b/src/include/gnunet_gnsrecord_lib.h index 3713d8d11..e9b1bb868 100644 --- a/src/include/gnunet_gnsrecord_lib.h +++ b/src/include/gnunet_gnsrecord_lib.h | |||
@@ -104,10 +104,10 @@ enum GNUNET_GNSRECORD_Flags | |||
104 | GNUNET_GNSRECORD_RF_PRIVATE = 2, | 104 | GNUNET_GNSRECORD_RF_PRIVATE = 2, |
105 | 105 | ||
106 | /** | 106 | /** |
107 | * This record was added automatically by the system | 107 | * This flag is currently unused; former RF_PENDING flag |
108 | * and is pending user confimation. | 108 | * |
109 | * GNUNET_GNSRECORD_RF_UNUSED = 4, | ||
109 | */ | 110 | */ |
110 | GNUNET_GNSRECORD_RF_PENDING = 4, | ||
111 | 111 | ||
112 | /** | 112 | /** |
113 | * This expiration time of the record is a relative | 113 | * This expiration time of the record is a relative |
diff --git a/src/namestore/gnunet-namestore.c b/src/namestore/gnunet-namestore.c index 470381868..c2f5941e3 100644 --- a/src/namestore/gnunet-namestore.c +++ b/src/namestore/gnunet-namestore.c | |||
@@ -419,8 +419,7 @@ display_record (void *cls, | |||
419 | s, | 419 | s, |
420 | ets, | 420 | ets, |
421 | (0 != (rd[i].flags & GNUNET_GNSRECORD_RF_PRIVATE)) ? "PRIVATE" : "PUBLIC", | 421 | (0 != (rd[i].flags & GNUNET_GNSRECORD_RF_PRIVATE)) ? "PRIVATE" : "PUBLIC", |
422 | (0 != (rd[i].flags & GNUNET_GNSRECORD_RF_SHADOW_RECORD)) ? "SHADOW" : "", | 422 | (0 != (rd[i].flags & GNUNET_GNSRECORD_RF_SHADOW_RECORD)) ? "SHADOW" : ""); |
423 | (0 != (rd[i].flags & GNUNET_GNSRECORD_RF_PENDING)) ? "PENDING" : ""); | ||
424 | GNUNET_free (s); | 423 | GNUNET_free (s); |
425 | } | 424 | } |
426 | FPRINTF (stdout, "%s", "\n"); | 425 | FPRINTF (stdout, "%s", "\n"); |
@@ -552,8 +551,6 @@ get_existing_record (void *cls, | |||
552 | rde->flags |= GNUNET_GNSRECORD_RF_SHADOW_RECORD; | 551 | rde->flags |= GNUNET_GNSRECORD_RF_SHADOW_RECORD; |
553 | if (1 != is_public) | 552 | if (1 != is_public) |
554 | rde->flags |= GNUNET_GNSRECORD_RF_PRIVATE; | 553 | rde->flags |= GNUNET_GNSRECORD_RF_PRIVATE; |
555 | if (1 == is_pending) | ||
556 | rde->flags |= GNUNET_GNSRECORD_RF_PENDING; | ||
557 | if (GNUNET_YES == etime_is_rel) | 554 | if (GNUNET_YES == etime_is_rel) |
558 | { | 555 | { |
559 | rde->expiration_time = etime_rel.rel_value_us; | 556 | rde->expiration_time = etime_rel.rel_value_us; |
diff --git a/src/namestore/gnunet-service-namestore.c b/src/namestore/gnunet-service-namestore.c index 7b020f5a1..7def61886 100644 --- a/src/namestore/gnunet-service-namestore.c +++ b/src/namestore/gnunet-service-namestore.c | |||
@@ -1310,8 +1310,7 @@ zone_iterate_proc (void *cls, | |||
1310 | rd); | 1310 | rd); |
1311 | do_refresh_block = GNUNET_NO; | 1311 | do_refresh_block = GNUNET_NO; |
1312 | for (i=0;i<rd_count;i++) | 1312 | for (i=0;i<rd_count;i++) |
1313 | if( (0 != (rd[i].flags & GNUNET_GNSRECORD_RF_RELATIVE_EXPIRATION)) && | 1313 | if (0 != (rd[i].flags & GNUNET_GNSRECORD_RF_RELATIVE_EXPIRATION)) |
1314 | (0 == (rd[i].flags & GNUNET_GNSRECORD_RF_PENDING)) ) | ||
1315 | { | 1314 | { |
1316 | do_refresh_block = GNUNET_YES; | 1315 | do_refresh_block = GNUNET_YES; |
1317 | break; | 1316 | break; |