1 |
/* wptClipImportDlg.cpp - WinPT key import dialog |
/* wptClipImportDlg.cpp - WinPT key import dialog |
2 |
* Copyright (C) 2001-2006 Timo Schulz |
* Copyright (C) 2001-2007 Timo Schulz |
3 |
* Copyright (C) 2005 g10 Code GmbH |
* Copyright (C) 2005 g10 Code GmbH |
4 |
* |
* |
5 |
* This file is part of WinPT. |
* This file is part of WinPT. |
13 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
14 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
15 |
* 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 |
|
16 |
*/ |
*/ |
17 |
#ifdef HAVE_CONFIG_H |
#ifdef HAVE_CONFIG_H |
18 |
#include <config.h> |
#include <config.h> |
41 |
print_import_status (gpgme_import_result_t res) |
print_import_status (gpgme_import_result_t res) |
42 |
{ |
{ |
43 |
gpgme_import_status_t st; |
gpgme_import_status_t st; |
|
const char *keyid; |
|
44 |
int new_keys = res->considered - res->unchanged; |
int new_keys = res->considered - res->unchanged; |
45 |
|
|
46 |
dialog_box_param (glob_hinst, (LPCSTR)IDD_WINPT_IMPORT_STAT, glob_hwnd, |
dialog_box_param (glob_hinst, (LPCSTR)IDD_WINPT_IMPORT_STAT, glob_hwnd, |
50 |
for (st=res->imports; st; st=st->next) { |
for (st=res->imports; st; st=st->next) { |
51 |
if (st->status == 0) /* nothing changed */ |
if (st->status == 0) /* nothing changed */ |
52 |
continue; |
continue; |
53 |
keyid = get_keyid_from_fpr (st->fpr); |
keycache_update (0, st->fpr); |
|
keycache_update (0, keyid); |
|
54 |
} |
} |
55 |
} |
} |
56 |
return !(res->unchanged == res->considered); |
return !(res->unchanged == res->considered); |