aboutsummaryrefslogtreecommitdiff
path: root/src/identity/gnunet-service-identity.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2013-07-16 08:46:14 +0000
committerChristian Grothoff <christian@grothoff.org>2013-07-16 08:46:14 +0000
commitbaab42aeb0b5a6d2a782c9c8e9554908c66fa80c (patch)
treec079d90d6ebc8fef4d0ac7c11c4ae0da346cb04a /src/identity/gnunet-service-identity.c
parent31449563d0ca0dd0f08765325bd3930f7ed882e4 (diff)
-proper support for initial listing vs. monitor mode
Diffstat (limited to 'src/identity/gnunet-service-identity.c')
-rw-r--r--src/identity/gnunet-service-identity.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/identity/gnunet-service-identity.c b/src/identity/gnunet-service-identity.c
index 6c94f1c886..45c088e447 100644
--- a/src/identity/gnunet-service-identity.c
+++ b/src/identity/gnunet-service-identity.c
@@ -25,10 +25,6 @@
*
* The purpose of this service is to manage private keys that
* represent the various egos/pseudonyms/identities of a GNUnet user.
- *
- * FIXME:
- * - hint for 'end of initial list' is not implemented
- * (might ALSO be missing in client library!)
*/
#include "platform.h"
#include "gnunet_util_lib.h"
@@ -274,6 +270,7 @@ handle_start_message (void *cls, struct GNUNET_SERVER_Client *client,
const struct GNUNET_MessageHeader *message)
{
struct GNUNET_IDENTITY_UpdateMessage *um;
+ struct GNUNET_IDENTITY_UpdateMessage ume;
struct Ego *ego;
GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
@@ -285,6 +282,11 @@ handle_start_message (void *cls, struct GNUNET_SERVER_Client *client,
GNUNET_SERVER_notification_context_unicast (nc, client, &um->header, GNUNET_YES);
GNUNET_free (um);
}
+ ume.header.type = htons (GNUNET_MESSAGE_TYPE_IDENTITY_UPDATE);
+ ume.header.size = htons (sizeof (struct GNUNET_IDENTITY_UpdateMessage));
+ ume.pk_len = htons (0);
+ ume.name_len = htons (0);
+ GNUNET_SERVER_notification_context_unicast (nc, client, &ume.header, GNUNET_YES);
GNUNET_SERVER_receive_done (client, GNUNET_OK);
}