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> |
58 |
secring = get_gnupg_keyring (0, NO_STRICT); |
secring = get_gnupg_keyring (0, NO_STRICT); |
59 |
if (!secring) |
if (!secring) |
60 |
BUG (0); |
BUG (0); |
61 |
if (rcs->tr_update) |
if (rcs->sig_update) |
62 |
gpg_rebuild_cache (NULL); |
gpg_rebuild_cache (NULL); |
63 |
if (rcs->kr_update) |
if (rcs->kring_update) |
64 |
err = keycache_init (pubring, secring); |
err = keycache_init (pubring, secring); |
65 |
free_if_alloc (pubring); |
free_if_alloc (pubring); |
66 |
free_if_alloc (secring); |
free_if_alloc (secring); |
67 |
if (err) { |
if (err) { |
68 |
|
/* XXX: should we use gpg_check_return_code() to suggest |
69 |
|
to check the config file in case of errors?? */ |
70 |
msg_box (dlg, gpgme_strerror (err), _("Key Cache"), MB_ERR); |
msg_box (dlg, gpgme_strerror (err), _("Key Cache"), MB_ERR); |
71 |
EndDialog (dlg, 1); |
EndDialog (dlg, 1); |
72 |
} |
} |