[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r31617 - gnunet-gtk/src/namestore
From: |
gnunet |
Subject: |
[GNUnet-SVN] r31617 - gnunet-gtk/src/namestore |
Date: |
Fri, 20 Dec 2013 15:24:05 +0100 |
Author: grothoff
Date: 2013-12-20 15:24:05 +0100 (Fri, 20 Dec 2013)
New Revision: 31617
Modified:
gnunet-gtk/src/namestore/plugin_gtk_namestore_vpn.c
Log:
-vpn contains now public key, not hash of public key
Modified: gnunet-gtk/src/namestore/plugin_gtk_namestore_vpn.c
===================================================================
--- gnunet-gtk/src/namestore/plugin_gtk_namestore_vpn.c 2013-12-20 14:23:53 UTC
(rev 31616)
+++ gnunet-gtk/src/namestore/plugin_gtk_namestore_vpn.c 2013-12-20 14:24:05 UTC
(rev 31617)
@@ -58,12 +58,12 @@
gchar *n_value,
GtkBuilder *builder)
{
- char s_peer[103 + 1];
+ char s_peer[53 + 1];
char s_serv[253 + 1];
unsigned int proto;
if (3 != SSCANF (n_value,
- "%u %103s %253s",
+ "%u %53s %253s",
&proto, s_peer, s_serv))
{
GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
@@ -138,14 +138,16 @@
{
GtkEditable *entry;
const gchar *preedit;
- struct GNUNET_HashCode hc;
+ struct GNUNET_CRYPTO_EddsaPublicKey pk;
entry = GTK_EDITABLE (gtk_builder_get_object (builder,
"edit_dialog_vpn_peer_entry")),
preedit = gtk_editable_get_chars (entry, 0, -1);
if ( (NULL == preedit) ||
(GNUNET_OK !=
- GNUNET_CRYPTO_hash_from_string (preedit, &hc)) )
+ GNUNET_CRYPTO_eddsa_public_key_from_string (preedit,
+ strlen (preedit),
+ &pk)) )
return GNUNET_SYSERR;
return GNUNET_OK;
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r31617 - gnunet-gtk/src/namestore,
gnunet <=