GNUnet 0.26.2-114-g7c6b613e3
 
Loading...
Searching...
No Matches
gnunet-service-messenger_member.c
Go to the documentation of this file.
1/*
2 This file is part of GNUnet.
3 Copyright (C) 2020--2026 GNUnet e.V.
4
5 GNUnet is free software: you can redistribute it and/or modify it
6 under the terms of the GNU Affero General Public License as published
7 by the Free Software Foundation, either version 3 of the License,
8 or (at your option) any later version.
9
10 GNUnet is distributed in the hope that it will be useful, but
11 WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Affero General Public License for more details.
14
15 You should have received a copy of the GNU Affero General Public License
16 along with this program. If not, see <http://www.gnu.org/licenses/>.
17
18 SPDX-License-Identifier: AGPL3.0-or-later
19 */
26#include "platform.h"
28
30
31#include "messenger_api_util.h"
32
35 const struct GNUNET_ShortHashCode *id)
36{
37 struct GNUNET_MESSENGER_Member *member;
38
40
41 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Create new member: %s\n",
42 GNUNET_sh2s (id));
43
44 member = GNUNET_new (struct GNUNET_MESSENGER_Member);
45 member->store = store;
46
47 if (id)
48 GNUNET_memcpy (&(member->id), id, sizeof(member->id));
49 else if (GNUNET_YES != generate_free_member_id (&(member->id),
50 store->members))
51 {
52 GNUNET_free (member);
53 return NULL;
54 }
55
58
59 return member;
60}
61
62
65 const struct GNUNET_HashCode *key,
66 void *value)
67{
69
71
72 session = value;
73
74 destroy_member_session (session);
75 return GNUNET_YES;
76}
77
78
81 const struct GNUNET_ShortHashCode *key,
82 void *value)
83{
84 struct GNUNET_MESSENGER_Subscription *subscription;
85
87
88 subscription = value;
89
90 destroy_subscription (subscription);
91 return GNUNET_YES;
92}
93
94
95void
113
114
115const struct GNUNET_ShortHashCode*
117{
118 GNUNET_assert (member);
119
120 return &(member->id);
121}
122
123
126 const char *filename)
127{
128 struct GNUNET_MESSENGER_Member *member;
129
130 GNUNET_assert ((cls) && (filename));
131
132 member = cls;
133
135 {
136 char *directory;
137
138 GNUNET_asprintf (&directory, "%s%c", filename, DIR_SEPARATOR);
139
140 load_member_session (member, directory);
141 GNUNET_free (directory);
142 }
143
144 return GNUNET_OK;
145}
146
147
148void
150 const char *directory)
151{
153 struct GNUNET_MESSENGER_Member *member;
154 char *config_file;
155
156 GNUNET_assert ((store) && (directory));
157
158 GNUNET_asprintf (&config_file, "%s%s", directory, "member.cfg");
159
160 member = NULL;
161
163 goto free_config;
164
165 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Load member configuration: %s\n",
167
169
170 if (! cfg)
171 goto free_config;
172
174 {
176
177 if (GNUNET_OK != GNUNET_CONFIGURATION_get_data (cfg, "member", "id", &id,
178 sizeof(id)))
179 goto destroy_config;
180
181 member = add_store_member (store, &id);
182 }
183
184destroy_config:
186
187free_config:
189
190 if (! member)
191 return;
192
193 {
194 char *scan_dir;
195 GNUNET_asprintf (&scan_dir, "%s%s%c", directory, "sessions", DIR_SEPARATOR);
196
199
200 GNUNET_free (scan_dir);
201 }
202}
203
204
207 const struct GNUNET_HashCode *key,
208 void *value)
209{
210 const char *sessions_directory;
211 char *load_dir;
212
213 GNUNET_assert ((cls) && (key));
214
215 sessions_directory = cls;
216
217 GNUNET_asprintf (&load_dir, "%s%s%c", sessions_directory, GNUNET_h2s (key),
219
220 {
221 struct GNUNET_MESSENGER_SrvMemberSession *session;
222
224
225 session = value;
226
228 load_member_session_next (session, load_dir);
229 }
230
231 GNUNET_free (load_dir);
232 return GNUNET_YES;
233}
234
235
236void
238 const char *directory)
239{
240 char *load_dir;
241
242 GNUNET_assert ((member) && (directory));
243
244 GNUNET_asprintf (&load_dir, "%s%s%c", directory, "sessions", DIR_SEPARATOR);
245
247 iterate_load_next_session, load_dir);
248
249 GNUNET_free (load_dir);
250}
251
252
255 const struct GNUNET_HashCode *key,
256 void *value)
257{
258 const char *sessions_directory;
259 char *save_dir;
260
261 GNUNET_assert ((cls) && (key));
262
263 sessions_directory = cls;
264
265 GNUNET_asprintf (&save_dir, "%s%s%c", sessions_directory, GNUNET_h2s (key),
267
268 {
269 struct GNUNET_MESSENGER_SrvMemberSession *session;
270
272
273 session = value;
274
275 if ((GNUNET_YES == GNUNET_DISK_directory_test (save_dir, GNUNET_NO)) ||
277 save_member_session (session, save_dir);
278 }
279
280 GNUNET_free (save_dir);
281 return GNUNET_YES;
282}
283
284
285void
287 const char *directory)
288{
290 char *config_file;
291 char *id_data;
292
293 GNUNET_assert ((member) && (directory));
294
295 GNUNET_asprintf (&config_file, "%s%s", directory, "member.cfg");
296
297 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Save member configuration: %s\n",
299
301
302 if (! cfg)
303 goto free_config;
304
305 id_data = GNUNET_STRINGS_data_to_string_alloc (&(member->id),
306 sizeof(member->id));
307
308 if (id_data)
309 {
310 GNUNET_CONFIGURATION_set_value_string (cfg, "member", "id", id_data);
311
312 GNUNET_free (id_data);
313 }
314
317
318free_config:
320
321 {
322 char *save_dir;
323 GNUNET_asprintf (&save_dir, "%s%s%c", directory, "sessions", DIR_SEPARATOR);
324
325 if ((GNUNET_YES == GNUNET_DISK_directory_test (save_dir, GNUNET_NO)) ||
328 iterate_save_session, save_dir);
329
330 GNUNET_free (save_dir);
331 }
332}
333
334
335static void
337 session,
339{
340 GNUNET_assert ((session) && (next));
341
342 if (session == next)
343 return;
344
345 if (next->next)
346 sync_session_contact_from_next (session, next->next);
347 else
348 session->contact = next->contact;
349}
350
351
354 const struct GNUNET_HashCode *key,
355 void *value)
356{
357 struct GNUNET_MESSENGER_SrvMemberSession *session;
358
360
361 session = value;
362
363 if (session->next)
364 sync_session_contact_from_next (session, session->next);
365
366 return GNUNET_YES;
367}
368
369
370void
378
379
383{
384 struct GNUNET_HashCode hash;
385
386 GNUNET_assert ((member) && (public_key));
387
388 GNUNET_CRYPTO_hash (public_key, sizeof(*public_key), &hash);
389
390 return GNUNET_CONTAINER_multihashmap_get (member->sessions, &hash);
391}
392
393
401
404 const struct GNUNET_HashCode *key,
405 void *value)
406{
408 struct GNUNET_MESSENGER_SrvMemberSession *session;
409
410 GNUNET_assert ((cls) && (value));
411
412 search = cls;
413 session = value;
414
415 if (GNUNET_OK != verify_member_session_as_sender (session, search->message,
416 search->hash))
417 return GNUNET_YES;
418
419 search->match = session;
420 return GNUNET_NO;
421}
422
423
427{
428 struct GNUNET_MESSENGER_SrvMemberSession *session;
429
431
433
434 if (session)
435 return session;
436
438
439 if (session)
440 add_member_session (member, session);
441
442 return session;
443}
444
445
448 const struct GNUNET_MESSENGER_Message *message,
449 const struct GNUNET_HashCode *hash)
450{
451 GNUNET_assert ((member) && (message) && (hash) &&
452 (0 == GNUNET_memcmp (&(member->id),
453 &(message->header.sender_id))));
454
455 if (GNUNET_MESSENGER_KIND_JOIN == message->header.kind)
456 return try_member_session (member, &(message->body.join.key));
457
458 {
460
461 search.message = message;
462 search.hash = hash;
463
464 search.match = NULL;
467
468 return search.match;
469 }
470}
471
472
473void
475 struct GNUNET_MESSENGER_SrvMemberSession *session)
476{
477 const struct GNUNET_CRYPTO_BlindablePublicKey *public_key;
478 struct GNUNET_HashCode hash;
479
480 if (! session)
481 return;
482
483 GNUNET_assert ((member) && (session->member == member));
484
485 public_key = get_member_session_public_key (session);
486 GNUNET_CRYPTO_hash (public_key, sizeof(*public_key), &hash);
487
489 member->sessions, &hash, session,
492 "Adding a member session failed: %s\n",
493 GNUNET_h2s (&hash));
494}
495
496
497void
499 struct GNUNET_MESSENGER_SrvMemberSession *session)
500{
501 const struct GNUNET_CRYPTO_BlindablePublicKey *public_key;
502 struct GNUNET_HashCode hash;
503
504 GNUNET_assert ((member) && (session) && (session->member == member));
505
506 public_key = get_member_session_public_key (session);
507 GNUNET_CRYPTO_hash (public_key, sizeof(*public_key), &hash);
508
510 &hash, session))
512 "Removing a member session failed: %s\n",
513 GNUNET_h2s (&hash));
514}
515
516
522
525 const struct GNUNET_HashCode *key,
526 void *value)
527{
529 struct GNUNET_MESSENGER_SrvMemberSession *session;
530
531 GNUNET_assert ((cls) && (value));
532
533 iterate = cls;
534 session = value;
535
536 return iterate->it (iterate->cls, get_member_session_public_key (session),
537 session);
538}
539
540
541int
544 void *cls)
545{
547
548 GNUNET_assert ((member) && (member->sessions) && (it));
549
550 iterate.it = it;
551 iterate.cls = cls;
552
555 &iterate);
556}
557
558
559void
561 struct GNUNET_MESSENGER_Subscription *subscription)
562{
563 const struct GNUNET_ShortHashCode *discourse;
564
565 GNUNET_assert ((member) && (member->subscriptions) && (subscription));
566
567 discourse = get_subscription_discourse (subscription);
568
570 member->subscriptions, discourse, subscription,
573 "Adding a member subscription failed: %s\n",
574 GNUNET_sh2s (discourse));
575}
576
577
578void
580 struct GNUNET_MESSENGER_Subscription *subscription)
581{
582 const struct GNUNET_ShortHashCode *discourse;
583
584 GNUNET_assert ((member) && (member->subscriptions) && (subscription));
585
586 discourse = get_subscription_discourse (subscription);
587
589 ,
590 discourse,
591 subscription))
593 "Removing a member subscription failed: %s\n",
594 GNUNET_sh2s (discourse));
595}
596
597
606
607
608int
static struct GNUNET_CONFIGURATION_Handle * cfg
Our configuration.
Definition gnunet-arm.c:108
static char * config_file
Set to the name of the config file used.
Definition gnunet-arm.c:83
struct GNUNET_HashCode key
The key used in the DHT.
static char * filename
static struct GNUNET_IDENTITY_Handle * id
Handle to IDENTITY.
static char * value
Value of the record to add/remove.
struct GNUNET_REGEX_Search * search
static enum GNUNET_GenericReturnValue iterate_member_sessions_it(void *cls, const struct GNUNET_HashCode *key, void *value)
void add_member_subscription(struct GNUNET_MESSENGER_Member *member, struct GNUNET_MESSENGER_Subscription *subscription)
Adds a given subscription to a member.
const struct GNUNET_ShortHashCode * get_member_id(const struct GNUNET_MESSENGER_Member *member)
Returns the current id of a given member.
static struct GNUNET_MESSENGER_SrvMemberSession * try_member_session(struct GNUNET_MESSENGER_Member *member, const struct GNUNET_CRYPTO_BlindablePublicKey *public_key)
struct GNUNET_MESSENGER_SrvMemberSession * get_member_session(const struct GNUNET_MESSENGER_Member *member, const struct GNUNET_CRYPTO_BlindablePublicKey *public_key)
Returns the member session of a member identified by a given public key.
void save_member(struct GNUNET_MESSENGER_Member *member, const char *directory)
Saves data from a member into a directory which can be load to restore the member completely.
struct GNUNET_MESSENGER_SrvMemberSession * get_member_session_of(struct GNUNET_MESSENGER_Member *member, const struct GNUNET_MESSENGER_Message *message, const struct GNUNET_HashCode *hash)
Returns the member session of a member using a public key which can verify the signature of a given m...
static enum GNUNET_GenericReturnValue iterate_sync_session_contact(void *cls, const struct GNUNET_HashCode *key, void *value)
void destroy_member(struct GNUNET_MESSENGER_Member *member)
Destroys a member and frees its memory fully.
struct GNUNET_MESSENGER_Subscription * get_member_subscription(struct GNUNET_MESSENGER_Member *member, const struct GNUNET_ShortHashCode *discourse)
Returns the active subscription of a given member to a selected discourse.
static enum GNUNET_GenericReturnValue iterate_destroy_subscription(void *cls, const struct GNUNET_ShortHashCode *key, void *value)
static enum GNUNET_GenericReturnValue iterate_destroy_session(void *cls, const struct GNUNET_HashCode *key, void *value)
struct GNUNET_MESSENGER_Member * create_member(struct GNUNET_MESSENGER_MemberStore *store, const struct GNUNET_ShortHashCode *id)
Creates and allocates a new member of a room with an optionally defined or random id.
void remove_member_subscription(struct GNUNET_MESSENGER_Member *member, struct GNUNET_MESSENGER_Subscription *subscription)
Removes a given subscription from a member.
void remove_member_session(struct GNUNET_MESSENGER_Member *member, struct GNUNET_MESSENGER_SrvMemberSession *session)
Removes a given member session from its member.
void load_member_next_sessions(const struct GNUNET_MESSENGER_Member *member, const char *directory)
Loads data about next sessions from a directory into an empty loaded member which does not contain a ...
static enum GNUNET_GenericReturnValue iterate_load_next_session(void *cls, const struct GNUNET_HashCode *key, void *value)
static void sync_session_contact_from_next(struct GNUNET_MESSENGER_SrvMemberSession *session, struct GNUNET_MESSENGER_SrvMemberSession *next)
void sync_member_contacts(struct GNUNET_MESSENGER_Member *member)
Synchronizes contacts between all sessions from a given member and other sessions which are linked to...
int iterate_member_subscriptions(struct GNUNET_MESSENGER_Member *member, GNUNET_MESSENGER_SubscriptionIteratorCallback it, void *cls)
Iterate through all subscriptions of a given member and call the provided iterator callback with a se...
void add_member_session(struct GNUNET_MESSENGER_Member *member, struct GNUNET_MESSENGER_SrvMemberSession *session)
Adds a given member session to its member.
int iterate_member_sessions(struct GNUNET_MESSENGER_Member *member, GNUNET_MESSENGER_MemberIteratorCallback it, void *cls)
Iterate through all member sessions currently connected to a given member and call the provided itera...
void load_member(struct GNUNET_MESSENGER_MemberStore *store, const char *directory)
Loads data from a directory into a new allocated and created member of a store if the required inform...
static enum GNUNET_GenericReturnValue callback_scan_for_sessions(void *cls, const char *filename)
static enum GNUNET_GenericReturnValue iterate_search_session(void *cls, const struct GNUNET_HashCode *key, void *value)
static enum GNUNET_GenericReturnValue iterate_save_session(void *cls, const struct GNUNET_HashCode *key, void *value)
enum GNUNET_GenericReturnValue(* GNUNET_MESSENGER_SubscriptionIteratorCallback)(void *cls, const struct GNUNET_ShortHashCode *discourse, struct GNUNET_MESSENGER_Subscription *subscription)
struct GNUNET_MESSENGER_SrvMemberSession * create_member_session(struct GNUNET_MESSENGER_Member *member, const struct GNUNET_CRYPTO_BlindablePublicKey *pubkey)
Creates and allocates a new member session of a member with a given public key.
void destroy_member_session(struct GNUNET_MESSENGER_SrvMemberSession *session)
Destroys a member session and frees its memory fully.
enum GNUNET_GenericReturnValue verify_member_session_as_sender(const struct GNUNET_MESSENGER_SrvMemberSession *session, const struct GNUNET_MESSENGER_Message *message, const struct GNUNET_HashCode *hash)
Verifies a given member session as sender of a selected message and its hash.
const struct GNUNET_CRYPTO_BlindablePublicKey * get_member_session_public_key(const struct GNUNET_MESSENGER_SrvMemberSession *session)
Returns the public key of a given member session.
void load_member_session(struct GNUNET_MESSENGER_Member *member, const char *directory)
Loads data from a directory into a new allocated and created member session of a member if the requir...
void load_member_session_next(struct GNUNET_MESSENGER_SrvMemberSession *session, const char *directory)
Loads the connection from one session to another through the next attribute.
void save_member_session(struct GNUNET_MESSENGER_SrvMemberSession *session, const char *directory)
Saves data from a member session into a directory which can be load to restore the member session com...
struct GNUNET_MESSENGER_Member * add_store_member(struct GNUNET_MESSENGER_MemberStore *store, const struct GNUNET_ShortHashCode *id)
Adds a member to a store under a specific id and returns it on success.
enum GNUNET_GenericReturnValue(* GNUNET_MESSENGER_MemberIteratorCallback)(void *cls, const struct GNUNET_CRYPTO_BlindablePublicKey *public_key, struct GNUNET_MESSENGER_SrvMemberSession *session)
const struct GNUNET_ShortHashCode * get_subscription_discourse(const struct GNUNET_MESSENGER_Subscription *subscription)
void destroy_subscription(struct GNUNET_MESSENGER_Subscription *subscription)
enum GNUNET_GenericReturnValue GNUNET_CONFIGURATION_get_data(const struct GNUNET_CONFIGURATION_Handle *cfg, const char *section, const char *option, void *buf, size_t buf_size)
Get Crockford32-encoded fixed-size binary data from a configuration.
struct GNUNET_CONFIGURATION_Handle * GNUNET_CONFIGURATION_create(const struct GNUNET_OS_ProjectData *pd)
Create a new configuration object.
void GNUNET_CONFIGURATION_set_value_string(struct GNUNET_CONFIGURATION_Handle *cfg, const char *section, const char *option, const char *value)
Set a configuration value that should be a string.
void GNUNET_CONFIGURATION_destroy(struct GNUNET_CONFIGURATION_Handle *cfg)
Destroy configuration object.
enum GNUNET_GenericReturnValue GNUNET_CONFIGURATION_parse(struct GNUNET_CONFIGURATION_Handle *cfg, const char *filename)
Parse a configuration file, add all of the options in the file to the configuration environment.
enum GNUNET_GenericReturnValue GNUNET_CONFIGURATION_write(struct GNUNET_CONFIGURATION_Handle *cfg, const char *filename)
Write configuration file.
enum GNUNET_GenericReturnValue GNUNET_DISK_file_test(const char *fil)
Check that fil corresponds to a filename (of a file that exists and that is not a directory).
Definition disk.c:557
enum GNUNET_GenericReturnValue GNUNET_DISK_directory_test(const char *fil, int is_readable)
Test if fil is a directory and listable.
Definition disk.c:466
enum GNUNET_GenericReturnValue GNUNET_DISK_directory_create(const char *dir)
Implementation of "mkdir -p".
Definition disk.c:573
int GNUNET_DISK_directory_scan(const char *dir_name, GNUNET_FileNameCallback callback, void *callback_cls)
Scan a directory for files.
Definition disk.c:881
void GNUNET_CRYPTO_hash(const void *block, size_t size, struct GNUNET_HashCode *ret)
Compute hash of a given block.
Definition crypto_hash.c:41
int GNUNET_CONTAINER_multihashmap_iterate(struct GNUNET_CONTAINER_MultiHashMap *map, GNUNET_CONTAINER_MultiHashMapIteratorCallback it, void *it_cls)
Iterate over all entries in the map.
enum GNUNET_GenericReturnValue(* GNUNET_CONTAINER_ShortmapIterator)(void *cls, const struct GNUNET_ShortHashCode *key, void *value)
Iterator over hash map entries.
void * GNUNET_CONTAINER_multihashmap_get(const struct GNUNET_CONTAINER_MultiHashMap *map, const struct GNUNET_HashCode *key)
Given a key find a value in the map matching the key.
enum GNUNET_GenericReturnValue GNUNET_CONTAINER_multihashmap_remove(struct GNUNET_CONTAINER_MultiHashMap *map, const struct GNUNET_HashCode *key, const void *value)
Remove the given key-value pair from the map.
struct GNUNET_CONTAINER_MultiShortmap * GNUNET_CONTAINER_multishortmap_create(unsigned int len, int do_not_copy_keys)
Create a multi peer map (hash map for public keys of peers).
enum GNUNET_GenericReturnValue GNUNET_CONTAINER_multishortmap_put(struct GNUNET_CONTAINER_MultiShortmap *map, const struct GNUNET_ShortHashCode *key, void *value, enum GNUNET_CONTAINER_MultiHashMapOption opt)
Store a key-value pair in the map.
enum GNUNET_GenericReturnValue GNUNET_CONTAINER_multihashmap_put(struct GNUNET_CONTAINER_MultiHashMap *map, const struct GNUNET_HashCode *key, void *value, enum GNUNET_CONTAINER_MultiHashMapOption opt)
Store a key-value pair in the map.
void * GNUNET_CONTAINER_multishortmap_get(const struct GNUNET_CONTAINER_MultiShortmap *map, const struct GNUNET_ShortHashCode *key)
Given a key find a value in the map matching the key.
void GNUNET_CONTAINER_multihashmap_destroy(struct GNUNET_CONTAINER_MultiHashMap *map)
Destroy a hash map.
int GNUNET_CONTAINER_multishortmap_iterate(struct GNUNET_CONTAINER_MultiShortmap *map, GNUNET_CONTAINER_ShortmapIterator it, void *it_cls)
Iterate over all entries in the map.
struct GNUNET_CONTAINER_MultiHashMap * GNUNET_CONTAINER_multihashmap_create(unsigned int len, int do_not_copy_keys)
Create a multi hash map.
void GNUNET_CONTAINER_multishortmap_destroy(struct GNUNET_CONTAINER_MultiShortmap *map)
Destroy a hash map.
int GNUNET_CONTAINER_multishortmap_remove(struct GNUNET_CONTAINER_MultiShortmap *map, const struct GNUNET_ShortHashCode *key, const void *value)
Remove the given key-value pair from the map.
@ GNUNET_CONTAINER_MULTIHASHMAPOPTION_UNIQUE_FAST
, ' bother checking if a value already exists (faster than GNUNET_CONTAINER_MULTIHASHMAPOPTION_UNIQUE...
#define GNUNET_log(kind,...)
#define GNUNET_memcmp(a, b)
Compare memory in a and b, where both must be of the same pointer type.
#define GNUNET_memcpy(dst, src, n)
Call memcpy() but check for n being 0 first.
GNUNET_GenericReturnValue
Named constants for return values.
@ GNUNET_OK
@ GNUNET_YES
@ GNUNET_NO
#define GNUNET_assert(cond)
Use this for fatal errors that cannot be handled.
const char * GNUNET_sh2s(const struct GNUNET_ShortHashCode *shc)
Convert a short hash value to a string (for printing debug messages).
const char * GNUNET_h2s(const struct GNUNET_HashCode *hc)
Convert a hash value to a string (for printing debug messages).
@ GNUNET_ERROR_TYPE_WARNING
@ GNUNET_ERROR_TYPE_DEBUG
int int GNUNET_asprintf(char **buf, const char *format,...) __attribute__((format(printf
Like asprintf, just portable.
#define GNUNET_new(type)
Allocate a struct or union of the given type.
#define GNUNET_free(ptr)
Wrapper around free.
@ GNUNET_MESSENGER_KIND_JOIN
The join kind.
const struct GNUNET_OS_ProjectData * GNUNET_OS_project_data_gnunet(void)
Return default project data used by 'libgnunetutil' for GNUnet.
char * GNUNET_STRINGS_data_to_string_alloc(const void *buf, size_t size)
Return the base32crockford encoding of the given buffer.
Definition strings.c:812
enum GNUNET_GenericReturnValue generate_free_member_id(struct GNUNET_ShortHashCode *id, const struct GNUNET_CONTAINER_MultiShortmap *members)
Tries to generate an unused member id and store it into the id parameter.
#define DIR_SEPARATOR
Definition platform.h:166
An identity key as per LSD0001.
A 512-bit hashcode.
const struct GNUNET_MESSENGER_Message * message
struct GNUNET_MESSENGER_SrvMemberSession * match
struct GNUNET_CONTAINER_MultiShortmap * members
struct GNUNET_CONTAINER_MultiHashMap * sessions
struct GNUNET_CONTAINER_MultiShortmap * subscriptions
struct GNUNET_MESSENGER_MemberStore * store
struct GNUNET_MESSENGER_MessageJoin join
enum GNUNET_MESSENGER_MessageKind kind
The kind of the message.
struct GNUNET_ShortHashCode sender_id
The senders id inside of the room the message was sent in.
struct GNUNET_CRYPTO_BlindablePublicKey key
The senders blindable public key to verify its signatures.
struct GNUNET_MESSENGER_MessageHeader header
Header.
struct GNUNET_MESSENGER_MessageBody body
Body.
struct GNUNET_MESSENGER_SrvMemberSession * next
struct GNUNET_CRYPTO_BlindablePublicKey public_key
A 256-bit hashcode.