/[winpt]/trunk/Src/wptClipImportDlg.cpp
ViewVC logotype

Annotation of /trunk/Src/wptClipImportDlg.cpp

Parent Directory Parent Directory | Revision Log Revision Log


Revision 286 - (hide annotations)
Fri Mar 9 19:34:17 2007 UTC (17 years, 11 months ago) by twoaday
File size: 1713 byte(s)
First part of the patch to fix the v3 verify problem.


1 werner 36 /* wptClipImportDlg.cpp - WinPT key import dialog
2 twoaday 286 * Copyright (C) 2001-2007 Timo Schulz
3 werner 36 * Copyright (C) 2005 g10 Code GmbH
4     *
5     * This file is part of WinPT.
6     *
7     * WinPT is free software; you can redistribute it and/or modify
8     * it under the terms of the GNU General Public License as published by
9     * the Free Software Foundation; either version 2 of the License, or
10     * (at your option) any later version.
11     *
12     * WinPT is distributed in the hope that it will be useful,
13     * but WITHOUT ANY WARRANTY; without even the implied warranty of
14     * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15     * GNU General Public License for more details.
16     */
17     #ifdef HAVE_CONFIG_H
18     #include <config.h>
19     #endif
20    
21     #include <windows.h>
22    
23 werner 47 #include "resource.h"
24 werner 36 #include "wptCrypto.h"
25     #include "wptGPG.h"
26     #include "wptCommonCtl.h"
27     #include "wptKeylist.h"
28     #include "wptNLS.h"
29     #include "wptErrors.h"
30     #include "wptTypes.h"
31     #include "wptContext.h" /* for passphrase_s */
32     #include "wptDlgs.h"
33     #include "wptW32API.h"
34     #include "wptVersion.h"
35     #include "wptImport.h"
36 twoaday 164 #include "wptKeyManager.h"
37 werner 36
38    
39     /* Load the import statistics dialog with the results from @res. */
40 twoaday 150 int
41 werner 36 print_import_status (gpgme_import_result_t res)
42     {
43 twoaday 150 gpgme_import_status_t st;
44 twoaday 164 int new_keys = res->considered - res->unchanged;
45 twoaday 150
46 werner 36 dialog_box_param (glob_hinst, (LPCSTR)IDD_WINPT_IMPORT_STAT, glob_hwnd,
47     import_status_dlg_proc, (LPARAM)res,
48     _("Key Import Statistics"), IDS_WINPT_IMPORT_STAT);
49 twoaday 164 if (new_keys > 0 && new_keys < KM_PRELOAD_KEYS) {
50 twoaday 150 for (st=res->imports; st; st=st->next) {
51     if (st->status == 0) /* nothing changed */
52     continue;
53 twoaday 286 keycache_update (0, st->fpr);
54 twoaday 150 }
55     }
56     return !(res->unchanged == res->considered);
57 werner 36 }

Properties

Name Value
svn:eol-style native

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26