[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnunet] branch master updated: -fix warnings
From: |
gnunet |
Subject: |
[gnunet] branch master updated: -fix warnings |
Date: |
Sat, 24 Aug 2024 18:20:58 +0200 |
This is an automated email from the git hooks/post-receive script.
grothoff pushed a commit to branch master
in repository gnunet.
The following commit(s) were added to refs/heads/master by this push:
new dfc29e52d -fix warnings
dfc29e52d is described below
commit dfc29e52da3a6ab0a5b142227ad8e3a2173d6d69
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Sat Aug 24 18:20:52 2024 +0200
-fix warnings
---
contrib/handbook | 2 +-
src/lib/util/test_crypto_hkdf.c | 19 ++++++++-----------
src/lib/util/test_crypto_hpke.c | 4 +---
3 files changed, 10 insertions(+), 15 deletions(-)
diff --git a/contrib/handbook b/contrib/handbook
index 77a011d42..57e146d7f 160000
--- a/contrib/handbook
+++ b/contrib/handbook
@@ -1 +1 @@
-Subproject commit 77a011d421b3d0c89f1c7006c00280ba6c7c4199
+Subproject commit 57e146d7f375860cc3e12ae127c90c215e343a2f
diff --git a/src/lib/util/test_crypto_hkdf.c b/src/lib/util/test_crypto_hkdf.c
index 8da218367..134c4816d 100644
--- a/src/lib/util/test_crypto_hkdf.c
+++ b/src/lib/util/test_crypto_hkdf.c
@@ -26,16 +26,13 @@
* @todo: test for out_len < hash_len
* @author Nils Durner
*/
-
-#include "gnunet_common.h"
#include "platform.h"
#include <gcrypt.h>
-
-
#include "gnunet_util_lib.h"
+
void
-tc1 ()
+tc1 (void)
{
unsigned char ikm[22] =
{ 0x0b, 0x0b, 0x0b, 0x0b, 0x0b, 0x0b, 0x0b, 0x0b, 0x0b, 0x0b,
@@ -55,9 +52,9 @@ tc1 ()
struct GNUNET_ShortHashCode prk;
memset (result, 0, sizeof(result));
- GNUNET_CRYPTO_hkdf_extract(&prk, salt, sizeof(salt), ikm, sizeof(ikm));
+ GNUNET_CRYPTO_hkdf_extract (&prk, salt, sizeof(salt), ikm, sizeof(ikm));
GNUNET_assert (GNUNET_CRYPTO_hkdf_expand
- (result, l, &prk, info, sizeof(info),
+ (result, l, &prk, info, sizeof(info),
NULL) == GNUNET_YES);
GNUNET_assert (memcmp (result, okm, l) == 0);
GNUNET_assert (memcmp (result + l, "\0", 2) == 0);
@@ -104,7 +101,7 @@ tc2 ()
struct GNUNET_ShortHashCode prk;
memset (result, 0, sizeof(result));
- GNUNET_CRYPTO_hkdf_extract(&prk, salt, sizeof(salt), ikm, sizeof(ikm));
+ GNUNET_CRYPTO_hkdf_extract (&prk, salt, sizeof(salt), ikm, sizeof(ikm));
GNUNET_assert (GNUNET_CRYPTO_hkdf_expand
(result, l, &prk, info, sizeof(info),
NULL) == GNUNET_YES);
@@ -129,7 +126,7 @@ tc3 ()
struct GNUNET_ShortHashCode prk;
memset (result, 0, sizeof(result));
- GNUNET_CRYPTO_hkdf_extract(&prk, NULL, 0, ikm, sizeof(ikm));
+ GNUNET_CRYPTO_hkdf_extract (&prk, NULL, 0, ikm, sizeof(ikm));
GNUNET_assert (GNUNET_CRYPTO_hkdf_expand
(result, l, &prk, NULL, 0, NULL) == GNUNET_YES);
GNUNET_assert (memcmp (result, okm, l) == 0);
@@ -163,7 +160,7 @@ tc8 ()
memset (result, 0, sizeof(result));
GNUNET_assert (GNUNET_CRYPTO_hkdf_gnunet
(result, l, salt, sizeof(salt),
- ikm, sizeof(ikm), info, sizeof(info),
+ ikm, sizeof(ikm), info, sizeof(info),
NULL) == GNUNET_YES);
GNUNET_assert (memcmp (result, okm, l) == 0);
GNUNET_assert (memcmp (result + l, "\0", 2) == 0);
@@ -184,7 +181,7 @@ main ()
tc6 ();*/
/* Additional tests */
- //tc7 ();
+ // tc7 ();
tc8 ();
return 0;
diff --git a/src/lib/util/test_crypto_hpke.c b/src/lib/util/test_crypto_hpke.c
index e07b9adcf..4778cdaa4 100644
--- a/src/lib/util/test_crypto_hpke.c
+++ b/src/lib/util/test_crypto_hpke.c
@@ -23,8 +23,6 @@
* @brief testcase for KEMs including RFC9180 DHKEM
* @author Martin Schanzenbach
*/
-
-#include "gnunet_common.h"
#include "platform.h"
#include "gnunet_util_lib.h"
@@ -515,7 +513,7 @@ test_mode_auth_psk ()
test_ct,
sizeof test_ct,
test_pt, NULL));
- GNUNET_assert (0 == memcmp
(rfc9180_a2_pt, test_pt, sizeof test_pt));
+ GNUNET_assert (0 == memcmp (rfc9180_a2_pt, test_pt, sizeof test_pt));
return 0;
}
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [gnunet] branch master updated: -fix warnings,
gnunet <=