diff options
Diffstat (limited to 'src/conversation')
-rw-r--r-- | src/conversation/gnunet-conversation-gtk_egos.c | 8 | ||||
-rw-r--r-- | src/conversation/gnunet-conversation-gtk_import.c | 20 |
2 files changed, 14 insertions, 14 deletions
diff --git a/src/conversation/gnunet-conversation-gtk_egos.c b/src/conversation/gnunet-conversation-gtk_egos.c index 91ed2de7..430eda40 100644 --- a/src/conversation/gnunet-conversation-gtk_egos.c +++ b/src/conversation/gnunet-conversation-gtk_egos.c | |||
@@ -171,19 +171,18 @@ gnunet_conversation_gtk_ego_copy_button_clicked_cb (GtkButton *button, | |||
171 | { | 171 | { |
172 | struct GNUNET_IDENTITY_Ego *ego; | 172 | struct GNUNET_IDENTITY_Ego *ego; |
173 | const gchar *label; | 173 | const gchar *label; |
174 | const struct GNUNET_IDENTITY_PrivateKey *priv; | ||
175 | struct GNUNET_IDENTITY_PublicKey pub; | 174 | struct GNUNET_IDENTITY_PublicKey pub; |
176 | const char *zkey; | 175 | const char *zkey; |
177 | char *uri; | 176 | char *uri; |
178 | GtkClipboard *cb; | 177 | GtkClipboard *cb; |
179 | 178 | ||
180 | label = gtk_entry_get_text (GTK_ENTRY ( | 179 | label = gtk_entry_get_text (GTK_ENTRY ( |
181 | GCG_get_main_window_object ("gnunet_conversation_gtk_ego_label_entry"))); | 180 | GCG_get_main_window_object ( |
181 | "gnunet_conversation_gtk_ego_label_entry"))); | ||
182 | GNUNET_break ((NULL != label) && (0 != strlen (label))); | 182 | GNUNET_break ((NULL != label) && (0 != strlen (label))); |
183 | ego = GCG_EGOS_get_selected_ego (); | 183 | ego = GCG_EGOS_get_selected_ego (); |
184 | GNUNET_break (NULL != ego); | 184 | GNUNET_break (NULL != ego); |
185 | priv = GNUNET_IDENTITY_ego_get_private_key (ego); | 185 | GNUNET_IDENTITY_ego_get_public_key (ego, &pub); |
186 | GNUNET_IDENTITY_ego_get_public_key (priv, &pub); | ||
187 | zkey = GNUNET_GNSRECORD_pkey_to_zkey (&pub); | 186 | zkey = GNUNET_GNSRECORD_pkey_to_zkey (&pub); |
188 | GNUNET_asprintf (&uri, "gnunet://gns/%s.%s/", label, zkey); | 187 | GNUNET_asprintf (&uri, "gnunet://gns/%s.%s/", label, zkey); |
189 | cb = gtk_clipboard_get (GDK_SELECTION_CLIPBOARD); | 188 | cb = gtk_clipboard_get (GDK_SELECTION_CLIPBOARD); |
@@ -227,4 +226,5 @@ GCG_EGOS_shutdown () | |||
227 | } | 226 | } |
228 | } | 227 | } |
229 | 228 | ||
229 | |||
230 | /* end of gnunet-conversation-gtk_egos.c */ | 230 | /* end of gnunet-conversation-gtk_egos.c */ |
diff --git a/src/conversation/gnunet-conversation-gtk_import.c b/src/conversation/gnunet-conversation-gtk_import.c index 002a1f71..cc16d386 100644 --- a/src/conversation/gnunet-conversation-gtk_import.c +++ b/src/conversation/gnunet-conversation-gtk_import.c | |||
@@ -99,9 +99,9 @@ static int private_record; | |||
99 | * operation. | 99 | * operation. |
100 | * | 100 | * |
101 | * @param cls NULL | 101 | * @param cls NULL |
102 | * @param success #GNUNET_SYSERR on failure (including timeout/queue drop/failure to validate) | 102 | * @param success #GNUNET_SYSERR on failure (including timeout/queue |
103 | * #GNUNET_NO if content was already there | 103 | * drop/failure to validate) #GNUNET_NO if content was already there #GNUNET_YES |
104 | * #GNUNET_YES (or other positive value) on success | 104 | * (or other positive value) on success |
105 | * @param emsg NULL on success, otherwise an error message | 105 | * @param emsg NULL on success, otherwise an error message |
106 | */ | 106 | */ |
107 | static void | 107 | static void |
@@ -195,9 +195,9 @@ GSC_add_contact (const gchar *name, const gchar *address) | |||
195 | * add operation. Finish 'add phone' operation. | 195 | * add operation. Finish 'add phone' operation. |
196 | * | 196 | * |
197 | * @param cls closure | 197 | * @param cls closure |
198 | * @param success #GNUNET_SYSERR on failure (including timeout/queue drop/failure to validate) | 198 | * @param success #GNUNET_SYSERR on failure (including timeout/queue |
199 | * #GNUNET_NO if content was already there or not found | 199 | * drop/failure to validate) #GNUNET_NO if content was already there or not |
200 | * #GNUNET_YES (or other positive value) on success | 200 | * found #GNUNET_YES (or other positive value) on success |
201 | * @param emsg NULL on success, otherwise an error message | 201 | * @param emsg NULL on success, otherwise an error message |
202 | */ | 202 | */ |
203 | static void | 203 | static void |
@@ -344,7 +344,7 @@ finish_shutdown () | |||
344 | GNUNET_SCHEDULER_add_now (&async_disconnect, NULL); | 344 | GNUNET_SCHEDULER_add_now (&async_disconnect, NULL); |
345 | GNUNET_free (my_rd_data); | 345 | GNUNET_free (my_rd_data); |
346 | memset (&my_rd, 0, sizeof (my_rd)); | 346 | memset (&my_rd, 0, sizeof (my_rd)); |
347 | GNUNET_CRYPTO_ecdsa_key_clear (&zone_pkey); | 347 | memset (&zone_pkey, 0, sizeof (zone_pkey)); |
348 | } | 348 | } |
349 | 349 | ||
350 | 350 | ||
@@ -354,9 +354,9 @@ finish_shutdown () | |||
354 | * with 'add phone' operation if one is pending. | 354 | * with 'add phone' operation if one is pending. |
355 | * | 355 | * |
356 | * @param cls closure | 356 | * @param cls closure |
357 | * @param success #GNUNET_SYSERR on failure (including timeout/queue drop/failure to validate) | 357 | * @param success #GNUNET_SYSERR on failure (including timeout/queue |
358 | * #GNUNET_NO if content was already there or not found | 358 | * drop/failure to validate) #GNUNET_NO if content was already there or not |
359 | * #GNUNET_YES (or other positive value) on success | 359 | * found #GNUNET_YES (or other positive value) on success |
360 | * @param emsg NULL on success, otherwise an error message | 360 | * @param emsg NULL on success, otherwise an error message |
361 | */ | 361 | */ |
362 | static void | 362 | static void |