[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnunet] branch master updated: MESSENGER: Update private message struct
From: |
gnunet |
Subject: |
[gnunet] branch master updated: MESSENGER: Update private message struct, increase service version to 0.2 |
Date: |
Fri, 08 Sep 2023 18:41:15 +0200 |
This is an automated email from the git hooks/post-receive script.
thejackimonster pushed a commit to branch master
in repository gnunet.
The following commit(s) were added to refs/heads/master by this push:
new 770981f81 MESSENGER: Update private message struct, increase service
version to 0.2
770981f81 is described below
commit 770981f81e3b83661348547a224643c81ef99f71
Author: TheJackiMonster <thejackimonster@gmail.com>
AuthorDate: Fri Sep 8 18:41:07 2023 +0200
MESSENGER: Update private message struct, increase service version to 0.2
Signed-off-by: TheJackiMonster <thejackimonster@gmail.com>
---
src/include/gnunet_messenger_service.h | 10 +++-------
src/messenger/messenger_api_message.c | 6 ------
2 files changed, 3 insertions(+), 13 deletions(-)
diff --git a/src/include/gnunet_messenger_service.h
b/src/include/gnunet_messenger_service.h
index d798c975a..5f4207d2f 100644
--- a/src/include/gnunet_messenger_service.h
+++ b/src/include/gnunet_messenger_service.h
@@ -1,6 +1,6 @@
/*
This file is part of GNUnet.
- Copyright (C) 2020--2022 GNUnet e.V.
+ Copyright (C) 2020--2023 GNUnet e.V.
GNUnet is free software: you can redistribute it and/or modify it
under the terms of the GNU Affero General Public License as published
@@ -50,9 +50,9 @@ extern "C" {
/**
* Version number of GNUnet Messenger API.
*
- * Current version of the Messenger: 0.1
+ * Current version of the Messenger: 0.2
*/
-#define GNUNET_MESSENGER_VERSION 0x00000001
+#define GNUNET_MESSENGER_VERSION 0x00000002
/**
* Identifier of GNUnet MESSENGER Service.
@@ -462,10 +462,6 @@ struct GNUNET_MESSENGER_MessageFile
*/
struct GNUNET_MESSENGER_MessagePrivate
{
- /**
- * The ECDH key to decrypt the message.
- */
- struct GNUNET_CRYPTO_EcdhePublicKey key;
/**
* The length of the encrypted message.
diff --git a/src/messenger/messenger_api_message.c
b/src/messenger/messenger_api_message.c
index 74b65bf71..31d0c94b8 100644
--- a/src/messenger/messenger_api_message.c
+++ b/src/messenger/messenger_api_message.c
@@ -233,9 +233,6 @@ get_message_body_kind_size (enum
GNUNET_MESSENGER_MessageKind kind)
length += member_size (struct GNUNET_MESSENGER_Message, body.file.hash);
length += member_size (struct GNUNET_MESSENGER_Message, body.file.name);
break;
- case GNUNET_MESSENGER_KIND_PRIVATE:
- length += member_size (struct GNUNET_MESSENGER_Message, body.privacy.key);
- break;
case GNUNET_MESSENGER_KIND_DELETE:
length += member_size (struct GNUNET_MESSENGER_Message,
body.deletion.hash);
length += member_size (struct GNUNET_MESSENGER_Message,
@@ -482,7 +479,6 @@ encode_message_body (enum GNUNET_MESSENGER_MessageKind kind,
body->file.uri)));
break;
case GNUNET_MESSENGER_KIND_PRIVATE:
- encode_step (buffer, offset, &(body->privacy.key));
encode_step_ext (buffer, offset, body->privacy.data, min (length - offset,
body->privacy.
length));
@@ -665,8 +661,6 @@ decode_message_body (enum GNUNET_MESSENGER_MessageKind
*kind,
decode_step_malloc (buffer, offset, body->file.uri, length - offset, 1);
break;
case GNUNET_MESSENGER_KIND_PRIVATE:
- decode_step (buffer, offset, &(body->privacy.key));
-
body->privacy.length = (length - offset);
decode_step_malloc (buffer, offset, body->privacy.data, length - offset,
0);
break;
--
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: MESSENGER: Update private message struct, increase service version to 0.2,
gnunet <=