aboutsummaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorTheJackiMonster <thejackimonster@gmail.com>2024-05-04 03:04:17 +0200
committerTheJackiMonster <thejackimonster@gmail.com>2024-05-04 03:04:17 +0200
commit820d9cb4234c4b990cc94f171a479e88c3c539ef (patch)
tree47e6dbc84d537af087036dc529912ce269eca8b3 /src/include
parent3280b82a0f949d94f98c3ca7eecba9d153ebe4f7 (diff)
downloadgnunet-820d9cb4234c4b990cc94f171a479e88c3c539ef.tar.gz
gnunet-820d9cb4234c4b990cc94f171a479e88c3c539ef.zip
MESSENGER: Adjust ticket message to ease supporting changes in reclaim service
Signed-off-by: TheJackiMonster <thejackimonster@gmail.com>
Diffstat (limited to 'src/include')
-rw-r--r--src/include/gnunet_messenger_service.h36
1 files changed, 5 insertions, 31 deletions
diff --git a/src/include/gnunet_messenger_service.h b/src/include/gnunet_messenger_service.h
index 4b3d6e441..6816a0ad4 100644
--- a/src/include/gnunet_messenger_service.h
+++ b/src/include/gnunet_messenger_service.h
@@ -39,21 +39,14 @@ extern "C" {
39#endif 39#endif
40#endif 40#endif
41 41
42#include "gnunet_common.h"
43#include "gnunet_configuration_lib.h"
44#include "gnunet_identity_service.h"
45#include "gnunet_reclaim_lib.h"
46#include "gnunet_reclaim_service.h"
47#include "gnunet_scheduler_lib.h"
48#include "gnunet_time_lib.h"
49#include "gnunet_util_lib.h" 42#include "gnunet_util_lib.h"
50 43
51/** 44/**
52 * Version number of GNUnet Messenger API. 45 * Version number of GNUnet Messenger API.
53 * 46 *
54 * Current version of the Messenger: 0.3 47 * Current version of the Messenger: 0.4
55 */ 48 */
56#define GNUNET_MESSENGER_VERSION 0x00000003 49#define GNUNET_MESSENGER_VERSION 0x00000004
57 50
58/** 51/**
59 * Identifier of GNUnet MESSENGER Service. 52 * Identifier of GNUnet MESSENGER Service.
@@ -536,14 +529,14 @@ struct GNUNET_MESSENGER_MessageConnection
536 * A ticket message body 529 * A ticket message body
537 * This allows to exchange ticket identifiers with an audience. 530 * This allows to exchange ticket identifiers with an audience.
538 * 531 *
539 * Message-body-size: 32 bytes 532 * Message-body-size: 0+ bytes
540 */ 533 */
541struct GNUNET_MESSENGER_MessageTicket 534struct GNUNET_MESSENGER_MessageTicket
542{ 535{
543 /** 536 /**
544 * The identifier of a RECLAIM ticket. 537 * The identifier of a ticket.
545 */ 538 */
546 struct GNUNET_RECLAIM_Ticket ticket; 539 char *identifier;
547}; 540};
548 541
549/** 542/**
@@ -1010,25 +1003,6 @@ GNUNET_MESSENGER_iterate_members (struct GNUNET_MESSENGER_Room *room,
1010 GNUNET_MESSENGER_MemberCallback callback, 1003 GNUNET_MESSENGER_MemberCallback callback,
1011 void *cls); 1004 void *cls);
1012 1005
1013/**
1014 * Send a <i>ticket</i> into a <i>room</i>. The ticket will automatically be converted
1015 * into a message to be sent only to its audience as a private message.
1016 *
1017 * A ticket can only be sent with this function if its issuer's public key is the one
1018 * being used by the messenger. The audience's public key is not allowed to be the
1019 * anonymous public key. The room needs to contain a member using the audience's public
1020 * key.
1021 * The <i>rp_uri</i> must contain the audience public key in SOME FORMAT TODO.
1022 *
1023 * @param[in,out] room Room handle
1024 * @param[in] ticket Ticket to send
1025 * @param[in] rp_uri The expected audience RP URI
1026 */
1027void
1028GNUNET_MESSENGER_send_ticket (struct GNUNET_MESSENGER_Room *room,
1029 const struct GNUNET_RECLAIM_Ticket *ticket,
1030 const char* rp_uri);
1031
1032#if 0 /* keep Emacsens' auto-indent happy */ 1006#if 0 /* keep Emacsens' auto-indent happy */
1033{ 1007{
1034#endif 1008#endif