[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnunet] branch master updated: -minor style fixes
From: |
gnunet |
Subject: |
[gnunet] branch master updated: -minor style fixes |
Date: |
Mon, 10 Jul 2023 16:18:27 +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 ea22b4fe7 -minor style fixes
ea22b4fe7 is described below
commit ea22b4fe7d6ed7096d82c92a8bfab18e32df79b3
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Mon Jul 10 16:18:19 2023 +0200
-minor style fixes
---
src/curl/curl.c | 2 +-
src/util/crypto_hash.c | 11 ++++++-----
2 files changed, 7 insertions(+), 6 deletions(-)
diff --git a/src/curl/curl.c b/src/curl/curl.c
index 68c99dd75..ee4b568df 100644
--- a/src/curl/curl.c
+++ b/src/curl/curl.c
@@ -285,7 +285,7 @@ GNUNET_CURL_enable_async_scope_header (struct
GNUNET_CURL_Context *ctx,
}
-int
+enum GNUNET_GenericReturnValue
GNUNET_CURL_is_valid_scope_id (const char *scope_id)
{
if (strlen (scope_id) >= 64)
diff --git a/src/util/crypto_hash.c b/src/util/crypto_hash.c
index 95c5c3480..4f3acde77 100644
--- a/src/util/crypto_hash.c
+++ b/src/util/crypto_hash.c
@@ -73,7 +73,7 @@ GNUNET_CRYPTO_hash_from_string2 (const char *enc,
size_t enclen,
struct GNUNET_HashCode *result)
{
- char upper_enc[enclen+1];
+ char upper_enc[enclen + 1];
char *up_ptr = upper_enc;
if (GNUNET_OK != GNUNET_STRINGS_utf8_toupper (enc, up_ptr))
@@ -142,6 +142,7 @@ GNUNET_CRYPTO_hash_xor (const struct GNUNET_HashCode *a,
GNUNET_static_assert (8 == sizeof (unsigned long long));
GNUNET_static_assert (0 == sizeof (*a) % sizeof (unsigned long long));
+
for (int i = sizeof (*result) / sizeof (*llr) - 1; i>=0; i--)
llr[i] = lla[i] ^ llb[i];
}
@@ -156,18 +157,18 @@ GNUNET_CRYPTO_hash_to_aes_key (
GNUNET_assert (GNUNET_YES ==
GNUNET_CRYPTO_kdf (
skey,
- sizeof(struct GNUNET_CRYPTO_SymmetricSessionKey),
+ sizeof(*skey),
"Hash key derivation",
strlen ("Hash key derivation"),
- hc, sizeof(struct GNUNET_HashCode),
+ hc, sizeof(*hc),
NULL, 0));
GNUNET_assert (GNUNET_YES ==
GNUNET_CRYPTO_kdf (
iv,
- sizeof(struct GNUNET_CRYPTO_SymmetricInitializationVector),
+ sizeof(*iv),
"Initialization vector derivation",
strlen ("Initialization vector derivation"),
- hc, sizeof(struct GNUNET_HashCode),
+ hc, sizeof(*hc),
NULL, 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: -minor style fixes,
gnunet <=