aboutsummaryrefslogtreecommitdiff
path: root/src/namestore/plugin_gtk_namestore_pkey.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/namestore/plugin_gtk_namestore_pkey.c')
-rw-r--r--src/namestore/plugin_gtk_namestore_pkey.c46
1 files changed, 24 insertions, 22 deletions
diff --git a/src/namestore/plugin_gtk_namestore_pkey.c b/src/namestore/plugin_gtk_namestore_pkey.c
index c31ca79b..3e5d0321 100644
--- a/src/namestore/plugin_gtk_namestore_pkey.c
+++ b/src/namestore/plugin_gtk_namestore_pkey.c
@@ -1,22 +1,22 @@
1/* 1/*
2 * This file is part of GNUnet 2 * This file is part of GNUnet
3 * Copyright (C) 2009-2013 GNUnet e.V. 3 * Copyright (C) 2009-2013 GNUnet e.V.
4 * 4 *
5 * GNUnet is free software; you can redistribute it and/or modify 5 * GNUnet is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published 6 * it under the terms of the GNU General Public License as published
7 * by the Free Software Foundation; either version 3, or (at your 7 * by the Free Software Foundation; either version 3, or (at your
8 * option) any later version. 8 * option) any later version.
9 * 9 *
10 * GNUnet is distributed in the hope that it will be useful, but 10 * GNUnet is distributed in the hope that it will be useful, but
11 * WITHOUT ANY WARRANTY; without even the implied warranty of 11 * WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * General Public License for more details. 13 * General Public License for more details.
14 * 14 *
15 * You should have received a copy of the GNU General Public License 15 * You should have received a copy of the GNU General Public License
16 * along with GNUnet; see the file COPYING. If not, write to the 16 * along with GNUnet; see the file COPYING. If not, write to the
17 * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 17 * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18 * Boston, MA 02110-1301, USA. 18 * Boston, MA 02110-1301, USA.
19 */ 19 */
20 20
21/** 21/**
22 * @file namestore/plugin_gtk_namestore_pkey.c 22 * @file namestore/plugin_gtk_namestore_pkey.c
@@ -108,8 +108,9 @@ pkey_validate (void *cls, GtkBuilder *builder)
108 (GNUNET_OK != 108 (GNUNET_OK !=
109 GNUNET_CRYPTO_ecdsa_public_key_from_string (preedit, 109 GNUNET_CRYPTO_ecdsa_public_key_from_string (preedit,
110 strlen (preedit), 110 strlen (preedit),
111 &pub))) 111 &pub.ecdsa_key)))
112 return GNUNET_SYSERR; 112 return GNUNET_SYSERR;
113 pub.type = GNUNET_IDENTITY_TYPE_ECDSA;
113 return GNUNET_OK; 114 return GNUNET_OK;
114} 115}
115 116
@@ -126,9 +127,9 @@ libgnunet_plugin_gtk_namestore_pkey_init (void *cls)
126 struct GNUNET_GTK_NAMESTORE_PluginEnvironment *env = cls; 127 struct GNUNET_GTK_NAMESTORE_PluginEnvironment *env = cls;
127 struct GNUNET_GTK_NAMESTORE_PluginFunctions *plugin; 128 struct GNUNET_GTK_NAMESTORE_PluginFunctions *plugin;
128 static struct GNUNET_GTK_NAMESTORE_Symbol symbols[] = 129 static struct GNUNET_GTK_NAMESTORE_Symbol symbols[] =
129 {{"GNS_edit_dialog_pkey_entry_changed_cb", 130 {{"GNS_edit_dialog_pkey_entry_changed_cb",
130 G_CALLBACK (GNS_edit_dialog_pkey_entry_changed_cb)}, 131 G_CALLBACK (GNS_edit_dialog_pkey_entry_changed_cb)},
131 {NULL, NULL}}; 132 {NULL, NULL}};
132 133
133 plugin = GNUNET_new (struct GNUNET_GTK_NAMESTORE_PluginFunctions); 134 plugin = GNUNET_new (struct GNUNET_GTK_NAMESTORE_PluginFunctions);
134 plugin->cls = env; 135 plugin->cls = env;
@@ -157,4 +158,5 @@ libgnunet_plugin_gtk_namestore_pkey_done (void *cls)
157 return NULL; 158 return NULL;
158} 159}
159 160
161
160/* end of plugin_gtk_namestore_pkey.c */ 162/* end of plugin_gtk_namestore_pkey.c */