aboutsummaryrefslogtreecommitdiff
path: root/src/namecache/plugin_namecache_postgres.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_postgres.c
parentc14e3a2769ff0f15fdbb32797e37e43ce2344fa3 (diff)
downloadgnunet-96c802b46be51e5c45f34e2de823f787d26c2929.tar.gz
gnunet-96c802b46be51e5c45f34e2de823f787d26c2929.zip
- towards crypto agility; wip
Diffstat (limited to 'src/namecache/plugin_namecache_postgres.c')
-rw-r--r--src/namecache/plugin_namecache_postgres.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/namecache/plugin_namecache_postgres.c b/src/namecache/plugin_namecache_postgres.c
index 654a3ae81..3c8fc4555 100644
--- a/src/namecache/plugin_namecache_postgres.c
+++ b/src/namecache/plugin_namecache_postgres.c
@@ -183,7 +183,7 @@ namecache_postgres_cache_block (void *cls,
183 struct Plugin *plugin = cls; 183 struct Plugin *plugin = cls;
184 struct GNUNET_HashCode query; 184 struct GNUNET_HashCode query;
185 size_t block_size = ntohl (block->purpose.size) 185 size_t block_size = ntohl (block->purpose.size)
186 + sizeof(struct GNUNET_CRYPTO_EcdsaPublicKey) 186 + sizeof(struct GNUNET_IDENTITY_PublicKey)
187 + sizeof(struct GNUNET_CRYPTO_EcdsaSignature); 187 + sizeof(struct GNUNET_CRYPTO_EcdsaSignature);
188 struct GNUNET_PQ_QueryParam params[] = { 188 struct GNUNET_PQ_QueryParam params[] = {
189 GNUNET_PQ_query_param_auto_from_type (&query), 189 GNUNET_PQ_query_param_auto_from_type (&query),
@@ -195,7 +195,7 @@ namecache_postgres_cache_block (void *cls,
195 195
196 namecache_postgres_expire_blocks (plugin); 196 namecache_postgres_expire_blocks (plugin);
197 GNUNET_CRYPTO_hash (&block->derived_key, 197 GNUNET_CRYPTO_hash (&block->derived_key,
198 sizeof(struct GNUNET_CRYPTO_EcdsaPublicKey), 198 sizeof(struct GNUNET_IDENTITY_PublicKey),
199 &query); 199 &query);
200 if (block_size > 64 * 65536) 200 if (block_size > 64 * 65536)
201 { 201 {
@@ -265,7 +265,7 @@ namecache_postgres_lookup_block (void *cls,
265 } 265 }
266 if ((bsize < sizeof(*block)) || 266 if ((bsize < sizeof(*block)) ||
267 (bsize != ntohl (block->purpose.size) 267 (bsize != ntohl (block->purpose.size)
268 + sizeof(struct GNUNET_CRYPTO_EcdsaPublicKey) 268 + sizeof(struct GNUNET_IDENTITY_PublicKey)
269 + sizeof(struct GNUNET_CRYPTO_EcdsaSignature))) 269 + sizeof(struct GNUNET_CRYPTO_EcdsaSignature)))
270 { 270 {
271 GNUNET_break (0); 271 GNUNET_break (0);