[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnunet-gtk] branch master updated: fix new identity usage
From: |
gnunet |
Subject: |
[gnunet-gtk] branch master updated: fix new identity usage |
Date: |
Wed, 21 Oct 2020 16:47:18 +0200 |
This is an automated email from the git hooks/post-receive script.
martin-schanzenbach pushed a commit to branch master
in repository gnunet-gtk.
The following commit(s) were added to refs/heads/master by this push:
new 83e92462 fix new identity usage
83e92462 is described below
commit 83e924626b78d05693b6b8761c9242259f5f1f0c
Author: Martin Schanzenbach <mschanzenbach@posteo.de>
AuthorDate: Wed Oct 21 16:39:55 2020 +0200
fix new identity usage
---
src/conversation/gnunet-conversation-gtk_import.c | 2 +-
src/fs/gnunet-fs-gtk_main-window-search.c | 7 +------
src/namestore/gnunet-namestore-gtk.c | 8 ++++----
3 files changed, 6 insertions(+), 11 deletions(-)
diff --git a/src/conversation/gnunet-conversation-gtk_import.c
b/src/conversation/gnunet-conversation-gtk_import.c
index 5f72df04..002a1f71 100644
--- a/src/conversation/gnunet-conversation-gtk_import.c
+++ b/src/conversation/gnunet-conversation-gtk_import.c
@@ -154,7 +154,7 @@ GSC_add_contact (const gchar *name, const gchar *address)
{
type = GNUNET_GNSRECORD_TYPE_PKEY;
value = &rvalue;
- value_size = sizeof (struct GNUNET_IDENTITY_PublicKey);
+ value_size = GNUNET_IDENTITY_key_get_length (&rvalue);
}
else
{
diff --git a/src/fs/gnunet-fs-gtk_main-window-search.c
b/src/fs/gnunet-fs-gtk_main-window-search.c
index 10209a3d..d23cb656 100644
--- a/src/fs/gnunet-fs-gtk_main-window-search.c
+++ b/src/fs/gnunet-fs-gtk_main-window-search.c
@@ -133,11 +133,6 @@ handle_gns_result (void *cls,
{
if (GNUNET_GNSRECORD_TYPE_PKEY != rd[i].record_type)
continue;
- if (sizeof (struct GNUNET_IDENTITY_PublicKey) != rd[i].data_size)
- {
- GNUNET_break_op (0);
- continue;
- }
uri = GNUNET_FS_uri_sks_create (rd[i].data, sl->keywords);
search_for_uri (uri, sl->anonymity_level);
abort_search_lookup (sl);
@@ -413,7 +408,7 @@ save_pseudonym_with_nick (struct PseuLookupContext *lctx,
const char *nick)
/* show the window */
gtk_window_present (GTK_WINDOW (lctx->progress_dialog));
memset (&rd, 0, sizeof (rd));
- rd.data_size = sizeof (struct GNUNET_IDENTITY_PublicKey);
+ rd.data_size = GNUNET_IDENTITY_key_get_length (&lctx->pkey);
rd.data = &lctx->pkey;
rd.flags = GNUNET_GNSRECORD_RF_PRIVATE;
rd.expiration_time = GNUNET_TIME_UNIT_FOREVER_ABS.abs_value_us;
diff --git a/src/namestore/gnunet-namestore-gtk.c
b/src/namestore/gnunet-namestore-gtk.c
index aad4bbd2..15167f31 100644
--- a/src/namestore/gnunet-namestore-gtk.c
+++ b/src/namestore/gnunet-namestore-gtk.c
@@ -3126,11 +3126,11 @@ gnunet_namestore_gtk_zone_add_button_clicked_cb
(GtkButton *button,
label = gtk_entry_get_text (entry);
gtk_label_set_markup (status_label, _ ("Creating zone"));
gtk_widget_set_sensitive (main_window, FALSE);
- iop = GNUNET_IDENTITY_create (identity,
- label,
- NULL,
+ iop = GNUNET_IDENTITY_create (identity,
+ label,
+ NULL,
GNUNET_IDENTITY_TYPE_ECDSA,
- &iop_create_cont,
+ &iop_create_cont,
NULL);
gtk_entry_set_text (entry, "");
}
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [gnunet-gtk] branch master updated: fix new identity usage,
gnunet <=