seahorse r2170 - in trunk: . libseahorse
- From: sadam svn gnome org
- To: svn-commits-list gnome org
- Subject: seahorse r2170 - in trunk: . libseahorse
- Date: Thu, 17 Apr 2008 17:13:36 +0100 (BST)
Author: sadam
Date: Thu Apr 17 17:13:36 2008
New Revision: 2170
URL: http://svn.gnome.org/viewvc/seahorse?rev=2170&view=rev
Log:
2008-04-17 Adam Schreiber <sadam clemson edu>
* libseahorse/seahorse-hkp-source.c: Fix importing keys from hkp
keyservers.
Patch from Mackenzie Morgan. Fixes bug #528150
Modified:
trunk/ChangeLog
trunk/libseahorse/seahorse-hkp-source.c
Modified: trunk/libseahorse/seahorse-hkp-source.c
==============================================================================
--- trunk/libseahorse/seahorse-hkp-source.c (original)
+++ trunk/libseahorse/seahorse-hkp-source.c Thu Apr 17 17:13:36 2008
@@ -821,6 +821,7 @@
gchar *t;
SoupURI *uri;
const gchar *fpr;
+ gchar hexfpr[11];
GHashTable *form;
guint len;
GSList *l;
@@ -847,6 +848,9 @@
(GDestroyNotify)gpgmex_data_release);
}
+ /* prepend the hex prefix (0x) to make keyservers happy */
+ strncpy(hexfpr, "0x", 3);
+
form = g_hash_table_new (g_str_hash, g_str_equal);
for (l = keyids; l; l = g_slist_next (l)) {
@@ -855,10 +859,12 @@
len = strlen (fpr);
if (len > 8)
fpr += (len - 8);
+
+ strncpy(hexfpr + 2, fpr, 9);
/* The get key URI */
g_hash_table_insert (form, "op", "get");
- g_hash_table_insert (form, "search", (char *)fpr);
+ g_hash_table_insert (form, "search", (char *)hexfpr);
soup_uri_set_query_from_form (uri, form);
message = soup_message_new_from_uri ("GET", uri);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]