diff options
Diffstat (limited to 'src/namecache/plugin_namecache_flat.c')
-rw-r--r-- | src/namecache/plugin_namecache_flat.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/namecache/plugin_namecache_flat.c b/src/namecache/plugin_namecache_flat.c index 24f4f2570..1775561e1 100644 --- a/src/namecache/plugin_namecache_flat.c +++ b/src/namecache/plugin_namecache_flat.c | |||
@@ -208,7 +208,7 @@ store_and_free_entries (void *cls, | |||
208 | size_t block_size; | 208 | size_t block_size; |
209 | 209 | ||
210 | block_size = ntohl (entry->block->purpose.size) | 210 | block_size = ntohl (entry->block->purpose.size) |
211 | + sizeof(struct GNUNET_CRYPTO_EcdsaPublicKey) | 211 | + sizeof(struct GNUNET_IDENTITY_PublicKey) |
212 | + sizeof(struct GNUNET_CRYPTO_EcdsaSignature); | 212 | + sizeof(struct GNUNET_CRYPTO_EcdsaSignature); |
213 | 213 | ||
214 | GNUNET_STRINGS_base64_encode ((char *) entry->block, | 214 | GNUNET_STRINGS_base64_encode ((char *) entry->block, |
@@ -320,10 +320,10 @@ namecache_cache_block (void *cls, | |||
320 | 320 | ||
321 | namecache_expire_blocks (plugin); | 321 | namecache_expire_blocks (plugin); |
322 | GNUNET_CRYPTO_hash (&block->derived_key, | 322 | GNUNET_CRYPTO_hash (&block->derived_key, |
323 | sizeof(struct GNUNET_CRYPTO_EcdsaPublicKey), | 323 | sizeof(struct GNUNET_IDENTITY_PublicKey), |
324 | &query); | 324 | &query); |
325 | block_size = ntohl (block->purpose.size) | 325 | block_size = ntohl (block->purpose.size) |
326 | + sizeof(struct GNUNET_CRYPTO_EcdsaPublicKey) | 326 | + sizeof(struct GNUNET_IDENTITY_PublicKey) |
327 | + sizeof(struct GNUNET_CRYPTO_EcdsaSignature); | 327 | + sizeof(struct GNUNET_CRYPTO_EcdsaSignature); |
328 | if (block_size > 64 * 65536) | 328 | if (block_size > 64 * 65536) |
329 | { | 329 | { |