37 |
#include "wptW32API.h" |
#include "wptW32API.h" |
38 |
#include "wptVersion.h" |
#include "wptVersion.h" |
39 |
#include "wptImport.h" |
#include "wptImport.h" |
40 |
|
#include "wptKeyManager.h" |
41 |
|
|
42 |
|
|
43 |
/* Import the PGP key data from the clipboard. |
/* Import the PGP key data from the clipboard. |
63 |
{ |
{ |
64 |
gpgme_import_status_t st; |
gpgme_import_status_t st; |
65 |
const char *keyid; |
const char *keyid; |
66 |
|
int new_keys = res->considered - res->unchanged; |
67 |
|
|
68 |
dialog_box_param (glob_hinst, (LPCSTR)IDD_WINPT_IMPORT_STAT, glob_hwnd, |
dialog_box_param (glob_hinst, (LPCSTR)IDD_WINPT_IMPORT_STAT, glob_hwnd, |
69 |
import_status_dlg_proc, (LPARAM)res, |
import_status_dlg_proc, (LPARAM)res, |
70 |
_("Key Import Statistics"), IDS_WINPT_IMPORT_STAT); |
_("Key Import Statistics"), IDS_WINPT_IMPORT_STAT); |
71 |
if (res->unchanged != res->considered) { |
if (new_keys > 0 && new_keys < KM_PRELOAD_KEYS) { |
72 |
for (st=res->imports; st; st=st->next) { |
for (st=res->imports; st; st=st->next) { |
73 |
if (st->status == 0) /* nothing changed */ |
if (st->status == 0) /* nothing changed */ |
74 |
continue; |
continue; |
144 |
return FALSE; |
return FALSE; |
145 |
} |
} |
146 |
res = gpgme_op_import_result (ctx); |
res = gpgme_op_import_result (ctx); |
147 |
upd = print_import_status (res); |
print_import_status (res); |
148 |
|
upd = res->considered - res->unchanged; |
149 |
if (res->no_user_id > 0) { |
if (res->no_user_id > 0) { |
150 |
msg_box (dlg, _("Key without a self signature was dectected!\n" |
msg_box (dlg, _("Key without a self signature was dectected!\n" |
151 |
"(This key is NOT usable for encryption, etc)\n" |
"(This key is NOT usable for encryption, etc)\n" |