[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnunet] 04/06: -minor additional cleanup
From: |
gnunet |
Subject: |
[gnunet] 04/06: -minor additional cleanup |
Date: |
Tue, 14 Nov 2023 17:59:17 +0100 |
This is an automated email from the git hooks/post-receive script.
thejackimonster pushed a commit to branch master
in repository gnunet.
commit 3965ca9651d523cd59678f60d9da7061039e378b
Author: TheJackiMonster <thejackimonster@gmail.com>
AuthorDate: Fri Nov 10 23:33:19 2023 +0100
-minor additional cleanup
Signed-off-by: TheJackiMonster <thejackimonster@gmail.com>
---
po/POTFILES.in | 3 +++
src/include/gnunet_crypto_lib.h | 12 ++++++++----
src/include/gnunet_messenger_service.h | 25 +++++++++++++++----------
src/util/crypto_ecc_setup.c | 15 ++++++++++-----
4 files changed, 36 insertions(+), 19 deletions(-)
diff --git a/po/POTFILES.in b/po/POTFILES.in
index bc8be7a54..be88491cc 100644
--- a/po/POTFILES.in
+++ b/po/POTFILES.in
@@ -228,6 +228,9 @@ src/messenger/messenger_api_contact_store.c
src/messenger/messenger_api_handle.c
src/messenger/messenger_api_list_tunnels.c
src/messenger/messenger_api_message.c
+src/messenger/messenger_api_message_kind.c
+src/messenger/messenger_api_peer_store.c
+src/messenger/messenger_api_queue_messages.c
src/messenger/messenger_api_room.c
src/messenger/messenger_api_util.c
src/messenger/plugin_gnsrecord_messenger.c
diff --git a/src/include/gnunet_crypto_lib.h b/src/include/gnunet_crypto_lib.h
index 2a975a440..4fb5d8874 100644
--- a/src/include/gnunet_crypto_lib.h
+++ b/src/include/gnunet_crypto_lib.h
@@ -1655,8 +1655,10 @@ GNUNET_CRYPTO_get_peer_identity (const struct
GNUNET_CONFIGURATION_Handle *cfg,
* could not be retrieved
*/
enum GNUNET_GenericReturnValue
-GNUNET_CRYPTO_sign_by_peer_identity (const struct GNUNET_CONFIGURATION_Handle
*cfg,
- const struct
GNUNET_CRYPTO_EccSignaturePurpose *purpose,
+GNUNET_CRYPTO_sign_by_peer_identity (const struct
+ GNUNET_CONFIGURATION_Handle *cfg,
+ const struct
+ GNUNET_CRYPTO_EccSignaturePurpose
*purpose,
struct GNUNET_CRYPTO_EddsaSignature *sig);
@@ -1672,8 +1674,10 @@ GNUNET_CRYPTO_sign_by_peer_identity (const struct
GNUNET_CONFIGURATION_Handle *c
*/
enum GNUNET_GenericReturnValue
GNUNET_CRYPTO_verify_peer_identity (uint32_t purpose,
- const struct
GNUNET_CRYPTO_EccSignaturePurpose * validate,
- const struct GNUNET_CRYPTO_EddsaSignature
*sig,
+ const struct
+ GNUNET_CRYPTO_EccSignaturePurpose
*validate,
+ const struct
+ GNUNET_CRYPTO_EddsaSignature *sig,
const struct GNUNET_PeerIdentity
*identity);
diff --git a/src/include/gnunet_messenger_service.h
b/src/include/gnunet_messenger_service.h
index 475f8e32e..5b03ddecf 100644
--- a/src/include/gnunet_messenger_service.h
+++ b/src/include/gnunet_messenger_service.h
@@ -94,7 +94,7 @@ struct GNUNET_MESSENGER_RoomEntryRecord
GNUNET_NETWORK_STRUCT_END
-GNUNET_NETWORK_STRUCT_BEGIN
+ GNUNET_NETWORK_STRUCT_BEGIN
/**
* A room details record specifies a custom name for a given room and
@@ -105,7 +105,7 @@ struct GNUNET_MESSENGER_RoomDetailsRecord
/**
* The custom name for the room.
*/
- char name [256];
+ char name[256];
/**
* The flags of the room.
@@ -575,8 +575,10 @@ enum GNUNET_MESSENGER_MessageFlags
typedef void
(*GNUNET_MESSENGER_MessageCallback) (void *cls,
struct GNUNET_MESSENGER_Room *room,
- const struct GNUNET_MESSENGER_Contact
*sender,
- const struct GNUNET_MESSENGER_Message
*message,
+ const struct
+ GNUNET_MESSENGER_Contact *sender,
+ const struct
+ GNUNET_MESSENGER_Message *message,
const struct GNUNET_HashCode *hash,
enum GNUNET_MESSENGER_MessageFlags flags);
@@ -589,9 +591,10 @@ typedef void
* @param[in] contact Contact handle
*/
typedef int
-(*GNUNET_MESSENGER_MemberCallback) (void* cls,
+(*GNUNET_MESSENGER_MemberCallback) (void *cls,
struct GNUNET_MESSENGER_Room *room,
- const struct GNUNET_MESSENGER_Contact
*contact);
+ const struct
+ GNUNET_MESSENGER_Contact *contact);
/**
* Set up a handle for the messenger related functions and connects to all
necessary services. It will use the
@@ -763,7 +766,8 @@ GNUNET_MESSENGER_get_sender (const struct
GNUNET_MESSENGER_Room *room,
* @return Name of <i>contact</i> or NULL
*/
const char*
-GNUNET_MESSENGER_contact_get_name (const struct GNUNET_MESSENGER_Contact
*contact);
+GNUNET_MESSENGER_contact_get_name (const struct
+ GNUNET_MESSENGER_Contact *contact);
/**
* Get the public key used by the <i>contact</i> or NULL if the anonymous key
was used.
@@ -772,7 +776,8 @@ GNUNET_MESSENGER_contact_get_name (const struct
GNUNET_MESSENGER_Contact *contac
* @return Public key used by <i>contact</i> or NULL
*/
const struct GNUNET_IDENTITY_PublicKey*
-GNUNET_MESSENGER_contact_get_key (const struct GNUNET_MESSENGER_Contact
*contact);
+GNUNET_MESSENGER_contact_get_key (const struct
+ GNUNET_MESSENGER_Contact *contact);
/**
* Send a <i>message</i> into a <i>room</i>. If you opened the <i>room</i> all
entered members will receive the
@@ -795,7 +800,7 @@ GNUNET_MESSENGER_contact_get_key (const struct
GNUNET_MESSENGER_Contact *contact
void
GNUNET_MESSENGER_send_message (struct GNUNET_MESSENGER_Room *room,
struct GNUNET_MESSENGER_Message *message,
- const struct GNUNET_MESSENGER_Contact* contact);
+ const struct GNUNET_MESSENGER_Contact *contact);
/**
* Get the message in a <i>room</i> identified by its <i>hash</i>.
@@ -821,7 +826,7 @@ GNUNET_MESSENGER_get_message (const struct
GNUNET_MESSENGER_Room *room,
int
GNUNET_MESSENGER_iterate_members (struct GNUNET_MESSENGER_Room *room,
GNUNET_MESSENGER_MemberCallback callback,
- void* cls);
+ void *cls);
#if 0 /* keep Emacsens' auto-indent happy */
{
diff --git a/src/util/crypto_ecc_setup.c b/src/util/crypto_ecc_setup.c
index dd49049bc..2ee9ed931 100644
--- a/src/util/crypto_ecc_setup.c
+++ b/src/util/crypto_ecc_setup.c
@@ -290,8 +290,10 @@ GNUNET_CRYPTO_get_peer_identity (const struct
GNUNET_CONFIGURATION_Handle *cfg,
enum GNUNET_GenericReturnValue
-GNUNET_CRYPTO_sign_by_peer_identity (const struct GNUNET_CONFIGURATION_Handle
*cfg,
- const struct
GNUNET_CRYPTO_EccSignaturePurpose *purpose,
+GNUNET_CRYPTO_sign_by_peer_identity (const struct
+ GNUNET_CONFIGURATION_Handle *cfg,
+ const struct
+ GNUNET_CRYPTO_EccSignaturePurpose
*purpose,
struct GNUNET_CRYPTO_EddsaSignature *sig)
{
struct GNUNET_CRYPTO_EddsaPrivateKey *priv;
@@ -309,11 +311,14 @@ GNUNET_CRYPTO_sign_by_peer_identity (const struct
GNUNET_CONFIGURATION_Handle *c
enum GNUNET_GenericReturnValue
GNUNET_CRYPTO_verify_peer_identity (uint32_t purpose,
- const struct
GNUNET_CRYPTO_EccSignaturePurpose * validate,
- const struct GNUNET_CRYPTO_EddsaSignature
*sig,
+ const struct
+ GNUNET_CRYPTO_EccSignaturePurpose
*validate,
+ const struct
+ GNUNET_CRYPTO_EddsaSignature *sig,
const struct GNUNET_PeerIdentity *identity)
{
- return GNUNET_CRYPTO_eddsa_verify_ (purpose, validate, sig,
&identity->public_key);
+ return GNUNET_CRYPTO_eddsa_verify_ (purpose, validate, sig,
+ &identity->public_key);
}
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
- [gnunet] branch master updated (8e8c3f1e1 -> b8672206e), gnunet, 2023/11/14
- [gnunet] 04/06: -minor additional cleanup,
gnunet <=
- [gnunet] 02/06: MESSENGER: Fix remaining test failure, gnunet, 2023/11/14
- [gnunet] 05/06: MESSENGER: Reduce priority of enqueued messages to start with initial join message, gnunet, 2023/11/14
- [gnunet] 03/06: MESSENGER: Uncrustify code, gnunet, 2023/11/14
- [gnunet] 01/06: MESSENGER: Separate peer and member signed messages, gnunet, 2023/11/14
- [gnunet] 06/06: Merge branch 'master' of ssh://git.gnunet.org/gnunet, gnunet, 2023/11/14