2 This file is part of GNUnet.
3 Copyright (C) 2013 GNUnet e.V.
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.
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.
17 * @file identity/gnunet-service-identity.c
18 * @brief identity management service
19 * @author Christian Grothoff
21 * The purpose of this service is to manage private keys that
22 * represent the various egos/pseudonyms/identities of a GNUnet user.
25 * - auto-initialze default egos; maybe trigger default
26 * initializations (such as gnunet-gns-import.sh?)
29 #include "gnunet_util_lib.h"
30 #include "gnunet_constants.h"
31 #include "gnunet_protocols.h"
32 #include "gnunet_statistics_service.h"
33 #include "gnunet_identity_service.h"
38 * Information we keep about each ego.
44 * We keep egos in a DLL.
49 * We keep egos in a DLL.
54 * Private key of the ego.
56 struct GNUNET_CRYPTO_EcdsaPrivateKey *pk;
59 * String identifier for the ego.
67 * Handle to our current configuration.
69 static const struct GNUNET_CONFIGURATION_Handle *cfg;
72 * Handle to subsystem configuration which for each subsystem contains
73 * the name of the default ego.
75 static struct GNUNET_CONFIGURATION_Handle *subsystem_cfg;
78 * Handle to the statistics service.
80 static struct GNUNET_STATISTICS_Handle *stats;
83 * Notification context, simplifies client broadcasts.
85 static struct GNUNET_NotificationContext *nc;
88 * Directory where we store the identities.
90 static char *ego_directory;
93 * Configuration file name where subsystem information is kept.
95 static char *subsystem_cfg_file;
98 * Head of DLL of all egos.
100 static struct Ego *ego_head;
103 * Tail of DLL of all egos.
105 static struct Ego *ego_tail;
109 * Get the name of the file we use to store a given ego.
111 * @param ego ego for which we need the filename
112 * @return full filename for the given ego
115 get_ego_filename (struct Ego *ego)
119 GNUNET_asprintf (&filename,
128 * Called whenever a client is disconnected.
131 * @param client identification of the client
132 * @param app_ctx @a client
135 client_disconnect_cb (void *cls,
136 struct GNUNET_SERVICE_Client *client,
139 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
140 "Client %p disconnected\n",
146 * Add a client to our list of active clients.
149 * @param client client to add
150 * @param mq message queue for @a client
151 * @return internal namestore client structure for this client
154 client_connect_cb (void *cls,
155 struct GNUNET_SERVICE_Client *client,
156 struct GNUNET_MQ_Handle *mq)
162 * Task run during shutdown.
167 shutdown_task (void *cls)
173 GNUNET_notification_context_destroy (nc);
178 GNUNET_STATISTICS_destroy (stats, GNUNET_NO);
181 GNUNET_CONFIGURATION_destroy (subsystem_cfg);
182 subsystem_cfg = NULL;
183 GNUNET_free (subsystem_cfg_file);
184 subsystem_cfg_file = NULL;
185 GNUNET_free (ego_directory);
186 ego_directory = NULL;
187 while (NULL != (e = ego_head))
189 GNUNET_CONTAINER_DLL_remove (ego_head, ego_tail, e);
191 GNUNET_free (e->identifier);
198 * Send a result code back to the client.
200 * @param client client that should receive the result code
201 * @param result_code code to transmit
202 * @param emsg error message to include (or NULL for none)
205 send_result_code (struct GNUNET_SERVICE_Client *client,
206 uint32_t result_code,
209 struct ResultCodeMessage *rcm;
210 struct GNUNET_MQ_Envelope *env;
216 elen = strlen (emsg) + 1;
217 env = GNUNET_MQ_msg_extra (rcm,
219 GNUNET_MESSAGE_TYPE_IDENTITY_RESULT_CODE);
220 rcm->result_code = htonl (result_code);
222 GNUNET_memcpy (&rcm[1], emsg, elen);
223 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
224 "Sending result %d (%s) to client\n",
227 GNUNET_MQ_send (GNUNET_SERVICE_client_get_mq (client), env);
232 * Create an update message with information about the current state of an ego.
234 * @param ego ego to create message for
235 * @return corresponding update message
237 static struct GNUNET_MQ_Envelope *
238 create_update_message (struct Ego *ego)
240 struct UpdateMessage *um;
241 struct GNUNET_MQ_Envelope *env;
244 name_len = (NULL == ego->identifier) ? 0 : (strlen (ego->identifier) + 1);
245 env = GNUNET_MQ_msg_extra (um,
247 GNUNET_MESSAGE_TYPE_IDENTITY_UPDATE);
248 um->name_len = htons (name_len);
249 um->end_of_list = htons (GNUNET_NO);
250 um->private_key = *ego->pk;
251 GNUNET_memcpy (&um[1], ego->identifier, name_len);
257 * Create a set default message with information about the current state of an ego.
259 * @param ego ego to create message for
260 * @param servicename name of the service to provide in the message
261 * @return corresponding set default message
263 static struct GNUNET_MQ_Envelope *
264 create_set_default_message (struct Ego *ego,
265 const char *servicename)
267 struct SetDefaultMessage *sdm;
268 struct GNUNET_MQ_Envelope *env;
271 name_len = (NULL == servicename) ? 0 : (strlen (servicename) + 1);
272 env = GNUNET_MQ_msg_extra (sdm,
274 GNUNET_MESSAGE_TYPE_IDENTITY_SET_DEFAULT);
275 sdm->name_len = htons (name_len);
276 sdm->reserved = htons (0);
277 sdm->private_key = *ego->pk;
278 GNUNET_memcpy (&sdm[1], servicename, name_len);
284 * Handler for START message from client, sends information
285 * about all identities to the client immediately and
286 * adds the client to the notification context for future
290 * @param client who sent the message
291 * @param message the message received
294 handle_start_message (void *cls,
295 const struct GNUNET_MessageHeader *message)
297 struct UpdateMessage *ume;
298 struct GNUNET_SERVICE_Client *client = cls;
299 struct GNUNET_MQ_Envelope *env;
302 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
303 "Received START message from client\n");
304 GNUNET_SERVICE_client_mark_monitor (client);
305 GNUNET_SERVICE_client_disable_continue_warning (client);
306 GNUNET_notification_context_add (nc,
307 GNUNET_SERVICE_client_get_mq(client));
308 for (ego = ego_head; NULL != ego; ego = ego->next)
310 env = create_update_message (ego);
311 GNUNET_MQ_send (GNUNET_SERVICE_client_get_mq(client), env);
313 env = GNUNET_MQ_msg_extra (ume,
315 GNUNET_MESSAGE_TYPE_IDENTITY_UPDATE);
316 ume->end_of_list = htons (GNUNET_YES);
317 ume->name_len = htons (0);
318 GNUNET_MQ_send (GNUNET_SERVICE_client_get_mq(client), env);
319 GNUNET_SERVICE_client_continue (client);
323 * Checks a #GNUNET_MESSAGE_TYPE_IDENTITY_GET_DEFAULT message
325 * @param cls client sending the message
326 * @param msg message of type `struct GetDefaultMessage`
327 * @return #GNUNET_OK if @a msg is well-formed
330 check_get_default_message (void *cls,
331 const struct GetDefaultMessage *msg)
337 size = ntohs (msg->header.size);
338 if (size <= sizeof (struct GetDefaultMessage))
341 return GNUNET_SYSERR;
343 name = (const char *) &msg[1];
344 name_len = ntohs (msg->name_len);
345 if ( (name_len + sizeof (struct GetDefaultMessage) != size) ||
346 (0 != ntohs (msg->reserved)) ||
347 ('\0' != name[name_len - 1]) )
350 return GNUNET_SYSERR;
357 * Handler for GET_DEFAULT message from client, returns
358 * default identity for some service.
361 * @param client who sent the message
362 * @param message the message received
365 handle_get_default_message (void *cls,
366 const struct GetDefaultMessage *gdm)
368 struct GNUNET_MQ_Envelope *env;
369 struct GNUNET_SERVICE_Client *client = cls;
375 name = (const char *) &gdm[1];
376 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
377 "Received GET_DEFAULT for service `%s' from client\n",
380 GNUNET_CONFIGURATION_get_value_string (subsystem_cfg,
382 "DEFAULT_IDENTIFIER",
385 send_result_code (client, 1, gettext_noop ("no default known"));
386 GNUNET_SERVICE_client_continue (client);
389 for (ego = ego_head; NULL != ego; ego = ego->next)
391 if (0 == strcmp (ego->identifier,
394 env = create_set_default_message (ego,
396 GNUNET_MQ_send (GNUNET_SERVICE_client_get_mq (client), env);
397 GNUNET_SERVICE_client_continue (client);
398 GNUNET_free (identifier);
402 GNUNET_free (identifier);
403 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
404 "Failed to find ego `%s'\n",
406 send_result_code (client, 1,
407 gettext_noop ("default configured, but ego unknown (internal error)"));
408 GNUNET_SERVICE_client_continue (client);
413 * Compare the given two private keys for equality.
415 * @param pk1 one private key
416 * @param pk2 another private key
417 * @return 0 if the keys are equal
420 key_cmp (const struct GNUNET_CRYPTO_EcdsaPrivateKey *pk1,
421 const struct GNUNET_CRYPTO_EcdsaPrivateKey *pk2)
423 return memcmp (pk1, pk2, sizeof (struct GNUNET_CRYPTO_EcdsaPrivateKey));
427 * Checks a #GNUNET_MESSAGE_TYPE_IDENTITY_SET_DEFAULT message
429 * @param cls client sending the message
430 * @param msg message of type `struct SetDefaultMessage`
431 * @return #GNUNET_OK if @a msg is well-formed
434 check_set_default_message (void *cls,
435 const struct SetDefaultMessage *msg)
441 size = ntohs (msg->header.size);
442 if (size <= sizeof (struct SetDefaultMessage))
445 return GNUNET_SYSERR;
447 name_len = ntohs (msg->name_len);
448 GNUNET_break (0 == ntohs (msg->reserved));
449 if (name_len + sizeof (struct SetDefaultMessage) != size)
452 return GNUNET_SYSERR;
454 str = (const char *) &msg[1];
455 if ('\0' != str[name_len - 1])
458 return GNUNET_SYSERR;
464 * Handler for SET_DEFAULT message from client, updates
465 * default identity for some service.
468 * @param client who sent the message
469 * @param message the message received
472 handle_set_default_message (void *cls,
473 const struct SetDefaultMessage *sdm)
476 struct GNUNET_SERVICE_Client *client = cls;
479 str = (const char *) &sdm[1];
480 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
481 "Received SET_DEFAULT for service `%s' from client\n",
483 for (ego = ego_head; NULL != ego; ego = ego->next)
485 if (0 == key_cmp (ego->pk,
488 GNUNET_CONFIGURATION_set_value_string (subsystem_cfg,
490 "DEFAULT_IDENTIFIER",
493 GNUNET_CONFIGURATION_write (subsystem_cfg,
495 GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
496 _("Failed to write subsystem default identifier map to `%s'.\n"),
498 send_result_code (client, 0, NULL);
499 GNUNET_SERVICE_client_continue (client);
503 send_result_code (client, 1, _("Unknown ego specified for service (internal error)"));
504 GNUNET_SERVICE_client_continue (client);
509 * Send an updated message for the given ego to all listeners.
511 * @param ego ego to send the update for
514 notify_listeners (struct Ego *ego)
516 struct UpdateMessage *um;
519 name_len = (NULL == ego->identifier) ? 0 : (strlen (ego->identifier) + 1);
520 um = GNUNET_malloc (sizeof (struct UpdateMessage) + name_len);
521 um->header.type = htons (GNUNET_MESSAGE_TYPE_IDENTITY_UPDATE);
522 um->header.size = htons (sizeof (struct UpdateMessage) + name_len);
523 um->name_len = htons (name_len);
524 um->end_of_list = htons (GNUNET_NO);
525 um->private_key = *ego->pk;
526 GNUNET_memcpy (&um[1], ego->identifier, name_len);
527 GNUNET_notification_context_broadcast (nc,
534 * Checks a #GNUNET_MESSAGE_TYPE_IDENTITY_CREATE message
536 * @param cls client sending the message
537 * @param msg message of type `struct CreateRequestMessage`
538 * @return #GNUNET_OK if @a msg is well-formed
541 check_create_message (void *cls,
542 const struct CreateRequestMessage *msg)
549 size = ntohs (msg->header.size);
550 if (size <= sizeof (struct CreateRequestMessage))
553 return GNUNET_SYSERR;
555 name_len = ntohs (msg->name_len);
556 GNUNET_break (0 == ntohs (msg->reserved));
557 if (name_len + sizeof (struct CreateRequestMessage) != size)
560 return GNUNET_SYSERR;
562 str = (const char *) &msg[1];
563 if ('\0' != str[name_len - 1])
566 return GNUNET_SYSERR;
572 * Handler for CREATE message from client, creates
576 * @param client who sent the message
577 * @param message the message received
580 handle_create_message (void *cls,
581 const struct CreateRequestMessage *crm)
583 struct GNUNET_SERVICE_Client *client = cls;
588 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
589 "Received CREATE message from client\n");
590 str = (const char *) &crm[1];
591 for (ego = ego_head; NULL != ego; ego = ego->next)
593 if (0 == strcmp (ego->identifier,
596 send_result_code (client, 1, gettext_noop ("identifier already in use for another ego"));
597 GNUNET_SERVICE_client_continue (client);
601 ego = GNUNET_new (struct Ego);
602 ego->pk = GNUNET_new (struct GNUNET_CRYPTO_EcdsaPrivateKey);
603 *ego->pk = crm->private_key;
604 ego->identifier = GNUNET_strdup (str);
605 GNUNET_CONTAINER_DLL_insert (ego_head,
608 send_result_code (client, 0, NULL);
609 fn = get_ego_filename (ego);
610 (void) GNUNET_DISK_directory_create_for_file (fn);
611 if (sizeof (struct GNUNET_CRYPTO_EcdsaPrivateKey) !=
612 GNUNET_DISK_fn_write (fn,
614 sizeof (struct GNUNET_CRYPTO_EcdsaPrivateKey),
615 GNUNET_DISK_PERM_USER_READ |
616 GNUNET_DISK_PERM_USER_WRITE))
617 GNUNET_log_strerror_file (GNUNET_ERROR_TYPE_ERROR,
620 notify_listeners (ego);
621 GNUNET_SERVICE_client_continue (client);
626 * Closure for 'handle_ego_rename'.
633 const char *old_name;
638 const char *new_name;
642 * An ego was renamed; rename it in all subsystems where it is
643 * currently set as the default.
645 * @param cls the 'struct RenameContext'
646 * @param section a section in the configuration to process
649 handle_ego_rename (void *cls,
652 struct RenameContext *rc = cls;
656 GNUNET_CONFIGURATION_get_value_string (subsystem_cfg,
658 "DEFAULT_IDENTIFIER",
661 if (0 != strcmp (id, rc->old_name))
666 GNUNET_CONFIGURATION_set_value_string (subsystem_cfg,
668 "DEFAULT_IDENTIFIER",
674 * Checks a #GNUNET_MESSAGE_TYPE_IDENTITY_RENAME message
676 * @param cls client sending the message
677 * @param msg message of type `struct RenameMessage`
678 * @return #GNUNET_OK if @a msg is well-formed
681 check_rename_message (void *cls,
682 const struct RenameMessage *msg)
685 uint16_t old_name_len;
686 uint16_t new_name_len;
687 const char *old_name;
688 const char *new_name;
690 size = ntohs (msg->header.size);
691 if (size <= sizeof (struct RenameMessage))
694 return GNUNET_SYSERR;
696 old_name_len = ntohs (msg->old_name_len);
697 new_name_len = ntohs (msg->new_name_len);
698 old_name = (const char *) &msg[1];
699 new_name = &old_name[old_name_len];
700 if ( (old_name_len + new_name_len + sizeof (struct RenameMessage) != size) ||
701 ('\0' != old_name[old_name_len - 1]) ||
702 ('\0' != new_name[new_name_len - 1]) )
705 return GNUNET_SYSERR;
713 * Handler for RENAME message from client, creates
717 * @param client who sent the message
718 * @param message the message received
721 handle_rename_message (void *cls,
722 const struct RenameMessage *rm)
724 uint16_t old_name_len;
726 const char *old_name;
727 const char *new_name;
728 struct RenameContext rename_ctx;
729 struct GNUNET_SERVICE_Client *client = cls;
733 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
734 "Received RENAME message from client\n");
735 old_name_len = ntohs (rm->old_name_len);
736 old_name = (const char *) &rm[1];
737 new_name = &old_name[old_name_len];
739 /* check if new name is already in use */
740 for (ego = ego_head; NULL != ego; ego = ego->next)
742 if (0 == strcmp (ego->identifier,
745 send_result_code (client, 1, gettext_noop ("target name already exists"));
746 GNUNET_SERVICE_client_continue (client);
751 /* locate old name and, if found, perform rename */
752 for (ego = ego_head; NULL != ego; ego = ego->next)
754 if (0 == strcmp (ego->identifier,
757 fn_old = get_ego_filename (ego);
758 GNUNET_free (ego->identifier);
759 rename_ctx.old_name = old_name;
760 rename_ctx.new_name = new_name;
761 GNUNET_CONFIGURATION_iterate_sections (subsystem_cfg,
765 GNUNET_CONFIGURATION_write (subsystem_cfg,
767 GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
768 _("Failed to write subsystem default identifier map to `%s'.\n"),
770 ego->identifier = GNUNET_strdup (new_name);
771 fn_new = get_ego_filename (ego);
772 if (0 != RENAME (fn_old, fn_new))
773 GNUNET_log_strerror_file (GNUNET_ERROR_TYPE_WARNING, "rename", fn_old);
774 GNUNET_free (fn_old);
775 GNUNET_free (fn_new);
776 notify_listeners (ego);
777 send_result_code (client, 0, NULL);
778 GNUNET_SERVICE_client_continue (client);
783 /* failed to locate old name */
784 send_result_code (client, 1, gettext_noop ("no matching ego found"));
785 GNUNET_SERVICE_client_continue (client);
790 * An ego was removed, remove it from all subsystems where it is
791 * currently set as the default.
793 * @param cls name of the removed ego (const char *)
794 * @param section a section in the configuration to process
797 handle_ego_delete (void *cls,
800 const char *identifier = cls;
804 GNUNET_CONFIGURATION_get_value_string (subsystem_cfg,
806 "DEFAULT_IDENTIFIER",
809 if (0 != strcmp (id, identifier))
814 GNUNET_CONFIGURATION_set_value_string (subsystem_cfg,
816 "DEFAULT_IDENTIFIER",
822 * Checks a #GNUNET_MESSAGE_TYPE_IDENTITY_DELETE message
824 * @param cls client sending the message
825 * @param msg message of type `struct DeleteMessage`
826 * @return #GNUNET_OK if @a msg is well-formed
829 check_delete_message (void *cls,
830 const struct DeleteMessage *msg)
836 size = ntohs (msg->header.size);
837 if (size <= sizeof (struct DeleteMessage))
840 return GNUNET_SYSERR;
842 name = (const char *) &msg[1];
843 name_len = ntohs (msg->name_len);
844 if ( (name_len + sizeof (struct DeleteMessage) != size) ||
845 (0 != ntohs (msg->reserved)) ||
846 ('\0' != name[name_len - 1]) )
849 return GNUNET_SYSERR;
856 * Handler for DELETE message from client, creates
860 * @param client who sent the message
861 * @param message the message received
864 handle_delete_message (void *cls,
865 const struct DeleteMessage *dm)
870 struct GNUNET_SERVICE_Client *client = cls;
872 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
873 "Received DELETE message from client\n");
874 name = (const char *) &dm[1];
875 for (ego = ego_head; NULL != ego; ego = ego->next)
877 if (0 == strcmp (ego->identifier,
880 GNUNET_CONTAINER_DLL_remove (ego_head,
883 GNUNET_CONFIGURATION_iterate_sections (subsystem_cfg,
887 GNUNET_CONFIGURATION_write (subsystem_cfg,
889 GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
890 _("Failed to write subsystem default identifier map to `%s'.\n"),
892 fn = get_ego_filename (ego);
893 if (0 != UNLINK (fn))
894 GNUNET_log_strerror_file (GNUNET_ERROR_TYPE_WARNING, "unlink", fn);
896 GNUNET_free (ego->identifier);
897 ego->identifier = NULL;
898 notify_listeners (ego);
899 GNUNET_free (ego->pk);
901 send_result_code (client, 0, NULL);
902 GNUNET_SERVICE_client_continue (client);
907 send_result_code (client, 1, gettext_noop ("no matching ego found"));
908 GNUNET_SERVICE_client_continue (client);
913 * Process the given file from the "EGODIR". Parses the file
914 * and creates the respective 'struct Ego' in memory.
917 * @param filename name of the file to parse
918 * @return #GNUNET_OK to continue to iterate,
919 * #GNUNET_NO to stop iteration with no error,
920 * #GNUNET_SYSERR to abort iteration with error!
923 process_ego_file (void *cls,
924 const char *filename)
929 fn = strrchr (filename, (int) DIR_SEPARATOR);
935 ego = GNUNET_new (struct Ego);
936 ego->pk = GNUNET_CRYPTO_ecdsa_key_create_from_file (filename);
940 GNUNET_log (GNUNET_ERROR_TYPE_WARNING,
941 _("Failed to parse ego information in `%s'\n"),
945 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
948 ego->identifier = GNUNET_strdup (fn + 1);
949 GNUNET_CONTAINER_DLL_insert (ego_head,
957 * Handle network size estimate clients.
960 * @param server the initialized server
961 * @param c configuration to use
965 const struct GNUNET_CONFIGURATION_Handle *c,
966 struct GNUNET_SERVICE_Handle *service)
969 nc = GNUNET_notification_context_create (1);
971 GNUNET_CONFIGURATION_get_value_filename (cfg, "identity",
975 GNUNET_log_config_missing (GNUNET_ERROR_TYPE_ERROR, "identity", "EGODIR");
976 GNUNET_SCHEDULER_shutdown ();
980 GNUNET_CONFIGURATION_get_value_filename (cfg, "identity",
982 &subsystem_cfg_file))
984 GNUNET_log_config_missing (GNUNET_ERROR_TYPE_ERROR, "identity", "SUBSYSTEM_CFG");
985 GNUNET_SCHEDULER_shutdown ();
988 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
989 "Loading subsystem configuration `%s'\n",
991 subsystem_cfg = GNUNET_CONFIGURATION_create ();
993 GNUNET_DISK_file_test (subsystem_cfg_file)) &&
995 GNUNET_CONFIGURATION_parse (subsystem_cfg,
996 subsystem_cfg_file)) )
998 GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
999 _("Failed to parse subsystem identity configuration file `%s'\n"),
1000 subsystem_cfg_file);
1001 GNUNET_SCHEDULER_shutdown ();
1004 stats = GNUNET_STATISTICS_create ("identity", cfg);
1006 GNUNET_DISK_directory_create (ego_directory))
1008 GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
1009 _("Failed to create directory `%s' for storing egos\n"),
1012 GNUNET_DISK_directory_scan (ego_directory,
1015 GNUNET_SCHEDULER_add_shutdown (&shutdown_task,
1021 * Define "main" method using service macro.
1025 GNUNET_SERVICE_OPTION_NONE,
1028 &client_disconnect_cb,
1030 GNUNET_MQ_hd_fixed_size (start_message,
1031 GNUNET_MESSAGE_TYPE_IDENTITY_START,
1032 struct GNUNET_MessageHeader,
1034 GNUNET_MQ_hd_var_size (get_default_message,
1035 GNUNET_MESSAGE_TYPE_IDENTITY_GET_DEFAULT,
1036 struct GetDefaultMessage,
1038 GNUNET_MQ_hd_var_size (set_default_message,
1039 GNUNET_MESSAGE_TYPE_IDENTITY_SET_DEFAULT,
1040 struct SetDefaultMessage,
1042 GNUNET_MQ_hd_var_size (create_message,
1043 GNUNET_MESSAGE_TYPE_IDENTITY_CREATE,
1044 struct CreateRequestMessage,
1046 GNUNET_MQ_hd_var_size (rename_message,
1047 GNUNET_MESSAGE_TYPE_IDENTITY_RENAME,
1048 struct RenameMessage,
1050 GNUNET_MQ_hd_var_size (delete_message,
1051 GNUNET_MESSAGE_TYPE_IDENTITY_DELETE,
1052 struct DeleteMessage,
1054 GNUNET_MQ_handler_end());
1058 /* end of gnunet-service-identity.c */