aboutsummaryrefslogtreecommitdiff
path: root/src/namecache/plugin_namecache_sqlite.c
diff options
context:
space:
mode:
authorMartin Schanzenbach <mschanzenbach@posteo.de>2020-10-14 19:47:32 +0200
committerMartin Schanzenbach <mschanzenbach@posteo.de>2020-10-15 12:11:18 +0200
commit96c802b46be51e5c45f34e2de823f787d26c2929 (patch)
tree457ccfd8f9a61563af86318739c4a8f964a57025 /src/namecache/plugin_namecache_sqlite.c
parentc14e3a2769ff0f15fdbb32797e37e43ce2344fa3 (diff)
downloadgnunet-96c802b46be51e5c45f34e2de823f787d26c2929.tar.gz
gnunet-96c802b46be51e5c45f34e2de823f787d26c2929.zip
- towards crypto agility; wip
Diffstat (limited to 'src/namecache/plugin_namecache_sqlite.c')
-rw-r--r--src/namecache/plugin_namecache_sqlite.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/namecache/plugin_namecache_sqlite.c b/src/namecache/plugin_namecache_sqlite.c
index c9d79ba2d..33970631b 100644
--- a/src/namecache/plugin_namecache_sqlite.c
+++ b/src/namecache/plugin_namecache_sqlite.c
@@ -333,7 +333,7 @@ namecache_sqlite_cache_block (void *cls,
333 struct GNUNET_HashCode query; 333 struct GNUNET_HashCode query;
334 struct GNUNET_TIME_Absolute expiration; 334 struct GNUNET_TIME_Absolute expiration;
335 size_t block_size = ntohl (block->purpose.size) 335 size_t block_size = ntohl (block->purpose.size)
336 + sizeof(struct GNUNET_CRYPTO_EcdsaPublicKey) 336 + sizeof(struct GNUNET_IDENTITY_PublicKey)
337 + sizeof(struct GNUNET_CRYPTO_EcdsaSignature); 337 + sizeof(struct GNUNET_CRYPTO_EcdsaSignature);
338 struct GNUNET_SQ_QueryParam del_params[] = { 338 struct GNUNET_SQ_QueryParam del_params[] = {
339 GNUNET_SQ_query_param_auto_from_type (&query), 339 GNUNET_SQ_query_param_auto_from_type (&query),
@@ -357,7 +357,7 @@ namecache_sqlite_cache_block (void *cls,
357 namecache_sqlite_expire_blocks (plugin); 357 namecache_sqlite_expire_blocks (plugin);
358 } 358 }
359 GNUNET_CRYPTO_hash (&block->derived_key, 359 GNUNET_CRYPTO_hash (&block->derived_key,
360 sizeof(struct GNUNET_CRYPTO_EcdsaPublicKey), 360 sizeof(block->derived_key),
361 &query); 361 &query);
362 expiration = GNUNET_TIME_absolute_ntoh (block->expiration_time); 362 expiration = GNUNET_TIME_absolute_ntoh (block->expiration_time);
363 GNUNET_log (GNUNET_ERROR_TYPE_INFO, 363 GNUNET_log (GNUNET_ERROR_TYPE_INFO,
@@ -500,7 +500,7 @@ namecache_sqlite_lookup_block (void *cls,
500 } 500 }
501 else if ((block_size < sizeof(struct GNUNET_GNSRECORD_Block)) || 501 else if ((block_size < sizeof(struct GNUNET_GNSRECORD_Block)) ||
502 (ntohl (block->purpose.size) 502 (ntohl (block->purpose.size)
503 + sizeof(struct GNUNET_CRYPTO_EcdsaPublicKey) 503 + sizeof(struct GNUNET_IDENTITY_PublicKey)
504 + sizeof(struct GNUNET_CRYPTO_EcdsaSignature) != block_size)) 504 + sizeof(struct GNUNET_CRYPTO_EcdsaSignature) != block_size))
505 { 505 {
506 GNUNET_break (0); 506 GNUNET_break (0);