aboutsummaryrefslogtreecommitdiff
path: root/src/namestore/plugin_gtk_namestore_phone.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/namestore/plugin_gtk_namestore_phone.c')
-rw-r--r--src/namestore/plugin_gtk_namestore_phone.c46
1 files changed, 24 insertions, 22 deletions
diff --git a/src/namestore/plugin_gtk_namestore_phone.c b/src/namestore/plugin_gtk_namestore_phone.c
index 9d1576eb..843f4a15 100644
--- a/src/namestore/plugin_gtk_namestore_phone.c
+++ b/src/namestore/plugin_gtk_namestore_phone.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_phone.c 22 * @file namestore/plugin_gtk_namestore_phone.c
@@ -133,8 +133,9 @@ phone_validate (void *cls, GtkBuilder *builder)
133 (GNUNET_OK != 133 (GNUNET_OK !=
134 GNUNET_CRYPTO_ecdsa_public_key_from_string (preedit, 134 GNUNET_CRYPTO_ecdsa_public_key_from_string (preedit,
135 strlen (preedit), 135 strlen (preedit),
136 &pub))) 136 &pub.ecdsa_key)))
137 return GNUNET_SYSERR; 137 return GNUNET_SYSERR;
138 pub.type = GNUNET_IDENTITY_TYPE_ECDSA;
138 return GNUNET_OK; 139 return GNUNET_OK;
139} 140}
140 141
@@ -151,9 +152,9 @@ libgnunet_plugin_gtk_namestore_phone_init (void *cls)
151 struct GNUNET_GTK_NAMESTORE_PluginEnvironment *env = cls; 152 struct GNUNET_GTK_NAMESTORE_PluginEnvironment *env = cls;
152 struct GNUNET_GTK_NAMESTORE_PluginFunctions *plugin; 153 struct GNUNET_GTK_NAMESTORE_PluginFunctions *plugin;
153 static struct GNUNET_GTK_NAMESTORE_Symbol symbols[] = 154 static struct GNUNET_GTK_NAMESTORE_Symbol symbols[] =
154 {{"GNS_edit_dialog_phone_peer_entry_changed_cb", 155 {{"GNS_edit_dialog_phone_peer_entry_changed_cb",
155 G_CALLBACK (GNS_edit_dialog_phone_peer_entry_changed_cb)}, 156 G_CALLBACK (GNS_edit_dialog_phone_peer_entry_changed_cb)},
156 {NULL, NULL}}; 157 {NULL, NULL}};
157 158
158 plugin = GNUNET_new (struct GNUNET_GTK_NAMESTORE_PluginFunctions); 159 plugin = GNUNET_new (struct GNUNET_GTK_NAMESTORE_PluginFunctions);
159 plugin->cls = env; 160 plugin->cls = env;
@@ -182,4 +183,5 @@ libgnunet_plugin_gtk_namestore_phone_done (void *cls)
182 return NULL; 183 return NULL;
183} 184}
184 185
186
185/* end of plugin_gtk_namestore_phone.c */ 187/* end of plugin_gtk_namestore_phone.c */