1 |
/* wptKeyCacheDlg.cpp - Key caching dialog |
/* wptKeyCacheDlg.cpp - Key caching dialog |
2 |
* Copyright (C) 2000-2005 Timo Schulz |
* Copyright (C) 2000-2006 Timo Schulz |
3 |
* Copyright (C) 2005 g10 Code GmbH |
* Copyright (C) 2005, 2006 g10 Code GmbH |
4 |
* |
* |
5 |
* This file is part of WinPT. |
* This file is part of WinPT. |
6 |
* |
* |
18 |
* along with WinPT; if not, write to the Free Software Foundation, |
* along with WinPT; if not, write to the Free Software Foundation, |
19 |
* Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA |
* Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA |
20 |
*/ |
*/ |
|
|
|
21 |
#ifdef HAVE_CONFIG_H |
#ifdef HAVE_CONFIG_H |
22 |
#include <config.h> |
#include <config.h> |
23 |
#endif |
#endif |
38 |
keycache_dlg_proc (HWND dlg, UINT msg, WPARAM wparam, LPARAM lparam) |
keycache_dlg_proc (HWND dlg, UINT msg, WPARAM wparam, LPARAM lparam) |
39 |
{ |
{ |
40 |
gpgme_error_t err; |
gpgme_error_t err; |
41 |
refresh_cache_s * rcs; |
refresh_cache_s *rcs; |
42 |
char * pubring = NULL, * secring = NULL; |
char *pubring = NULL; |
43 |
|
char *secring = NULL; |
44 |
|
|
45 |
switch( msg ) { |
switch( msg ) { |
46 |
case WM_INITDIALOG: |
case WM_INITDIALOG: |
64 |
if (rcs->tr_update) |
if (rcs->tr_update) |
65 |
gpg_rebuild_cache (NULL); |
gpg_rebuild_cache (NULL); |
66 |
if (rcs->kr_update) { |
if (rcs->kr_update) { |
|
keycache_set_reload (rcs->kr_reload); |
|
67 |
err = keycache_init (pubring, secring); |
err = keycache_init (pubring, secring); |
68 |
if (err) |
if (err) |
69 |
msg_box (dlg, gpgme_strerror (err), _("Key Cache"), MB_ERR); |
msg_box (dlg, gpgme_strerror (err), _("Key Cache"), MB_ERR); |