1 |
/* wptKeyserverSearchDlg.cpp - Keyserver Searching |
/* wptKeyserverSearchDlg.cpp - Keyserver Searching |
2 |
* Copyright (C) 2001-2006 Timo Schulz |
* Copyright (C) 2001-2007 Timo Schulz |
3 |
* |
* |
4 |
* This file is part of WinPT. |
* This file is part of WinPT. |
5 |
* |
* |
12 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
13 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
14 |
* GNU General Public License for more details. |
* GNU General Public License for more details. |
|
* |
|
|
* You should have received a copy of the GNU General Public License |
|
|
* along with WinPT; if not, write to the Free Software Foundation, |
|
|
* Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA |
|
15 |
*/ |
*/ |
16 |
#ifdef HAVE_CONFIG_H |
#ifdef HAVE_CONFIG_H |
17 |
#include <config.h> |
#include <config.h> |
34 |
/* Default threshold for key items. */ |
/* Default threshold for key items. */ |
35 |
#define MAX_N_KEYS 64 |
#define MAX_N_KEYS 64 |
36 |
|
|
|
|
|
37 |
/* Symbolic column IDs. */ |
/* Symbolic column IDs. */ |
38 |
enum { KSS_COL_BITS = 0, KSS_COL_ALGO, |
enum { KSS_COL_BITS = 0, KSS_COL_ALGO, |
39 |
KSS_COL_KEYID, KSS_COL_DATE, KSS_COL_UID }; |
KSS_COL_KEYID, KSS_COL_DATE, KSS_COL_UID }; |
148 |
|
|
149 |
listview_get_item_text (lv, n, KSS_COL_KEYID, keyid, DIM (keyid)-1); |
listview_get_item_text (lv, n, KSS_COL_KEYID, keyid, DIM (keyid)-1); |
150 |
rc = hkp_recv_key2 (dlg, ksc->name, ksc->port, keyid, 0, &fpr); |
rc = hkp_recv_key2 (dlg, ksc->name, ksc->port, keyid, 0, &fpr); |
151 |
if (!rc && fpr != NULL) { |
if (!rc && fpr != NULL) |
152 |
keycache_update (0, fpr); |
keycache_update (0, fpr); |
153 |
free_if_alloc (fpr); |
free_if_alloc (fpr); |
|
} |
|
154 |
} |
} |
155 |
} |
} |
156 |
|
|