[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [gnunet-gtk] branch master updated: fix identity assertion
From: |
gnunet |
Subject: |
[GNUnet-SVN] [gnunet-gtk] branch master updated: fix identity assertion |
Date: |
Tue, 18 Jun 2019 13:11:37 +0200 |
This is an automated email from the git hooks/post-receive script.
grothoff pushed a commit to branch master
in repository gnunet-gtk.
The following commit(s) were added to refs/heads/master by this push:
new 090c6e5d fix identity assertion
090c6e5d is described below
commit 090c6e5df68ee529e578b4d56b44d82f422b36bc
Author: Christian Grothoff <address@hidden>
AuthorDate: Tue Jun 18 13:10:46 2019 +0200
fix identity assertion
---
src/fs/gnunet-fs-gtk.c | 28 +++++++++++++++++++++++++++-
1 file changed, 27 insertions(+), 1 deletion(-)
diff --git a/src/fs/gnunet-fs-gtk.c b/src/fs/gnunet-fs-gtk.c
index 76e4154a..aa87f262 100644
--- a/src/fs/gnunet-fs-gtk.c
+++ b/src/fs/gnunet-fs-gtk.c
@@ -680,6 +680,32 @@ handle_sks_zone_identity (void *cls,
}
+/**
+ * We must pass a non-NULL callback to the identity service,
+ * but we don't actually care about the information here
+ * (we will use GNUNET_IDENTITY_get() if and when we do care).
+ *
+ * @param cls closure
+ * @param ego ego handle
+ * @param ctx context for application to store data for this ego
+ * (during the lifetime of this process, initially NULL)
+ * @param name name assigned by the user for this ego,
+ * NULL if the user just deleted the ego and it
+ * must thus no longer be used
+ */
+static void
+non_null_cb (void *cls,
+ struct GNUNET_IDENTITY_Ego *ego,
+ void **ctx,
+ const char *name)
+{
+ (void) cls;
+ (void) ego;
+ (void) ctx;
+ (void) name;
+}
+
+
/**
* Actual main function run right after GNUnet's scheduler
* is initialized. Initializes up GTK and Glade.
@@ -858,7 +884,7 @@ run (void *cls)
&main_context);
main_context.gns = GNUNET_GNS_connect (main_context.cfg);
main_context.identity =
- GNUNET_IDENTITY_connect (main_context.cfg, NULL, NULL);
+ GNUNET_IDENTITY_connect (main_context.cfg, &non_null_cb, NULL);
main_context.id_op = GNUNET_IDENTITY_get (main_context.identity,
"fs-sks",
&handle_sks_zone_identity,
--
To stop receiving notification emails like this one, please contact
address@hidden.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] [gnunet-gtk] branch master updated: fix identity assertion,
gnunet <=