From 9c9b5646c4095acf1af2ae09b6930fb82da360c5 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Thu, 11 Dec 2014 14:09:06 +0000 Subject: [PATCH] respect new CADET limit --- src/scalarproduct/gnunet-service-scalarproduct_alice.c | 2 +- src/scalarproduct/gnunet-service-scalarproduct_bob.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/scalarproduct/gnunet-service-scalarproduct_alice.c b/src/scalarproduct/gnunet-service-scalarproduct_alice.c index 42041dabf..be5ae1e13 100644 --- a/src/scalarproduct/gnunet-service-scalarproduct_alice.c +++ b/src/scalarproduct/gnunet-service-scalarproduct_alice.c @@ -861,7 +861,7 @@ element_cmp (const void *a, * Maximum number of elements we can put into a single cryptodata * message */ -#define ELEMENT_CAPACITY ((GNUNET_SERVER_MAX_MESSAGE_SIZE - 1 - sizeof (struct AliceCryptodataMessage)) / sizeof (struct GNUNET_CRYPTO_PaillierCiphertext)) +#define ELEMENT_CAPACITY ((GNUNET_CONSTANTS_MAX_CADET_MESSAGE_SIZE - sizeof (struct AliceCryptodataMessage)) / sizeof (struct GNUNET_CRYPTO_PaillierCiphertext)) /** diff --git a/src/scalarproduct/gnunet-service-scalarproduct_bob.c b/src/scalarproduct/gnunet-service-scalarproduct_bob.c index 29e2d7eed..2c6d607e5 100644 --- a/src/scalarproduct/gnunet-service-scalarproduct_bob.c +++ b/src/scalarproduct/gnunet-service-scalarproduct_bob.c @@ -542,7 +542,7 @@ bob_cadet_done_cb (void *cls) /** * Maximum count of elements we can put into a multipart message */ -#define ELEMENT_CAPACITY ((GNUNET_SERVER_MAX_MESSAGE_SIZE - 1 - sizeof (struct BobCryptodataMultipartMessage)) / sizeof (struct GNUNET_CRYPTO_PaillierCiphertext)) +#define ELEMENT_CAPACITY ((GNUNET_CONSTANTS_MAX_CADET_MESSAGE_SIZE - sizeof (struct BobCryptodataMultipartMessage)) / sizeof (struct GNUNET_CRYPTO_PaillierCiphertext)) /** -- 2.25.1