143 |
s = _("Key(s) successfully received but nothing was changed."); |
s = _("Key(s) successfully received but nothing was changed."); |
144 |
else |
else |
145 |
s = _("Key(s) sucessfully received and imported."); |
s = _("Key(s) sucessfully received and imported."); |
146 |
// nice to have the amount of new signatures... |
// nice to have the amount of new signatures... |
147 |
gpgme_data_write (msg, s, strlen (s)); |
gpgme_data_write (msg, s, strlen (s)); |
148 |
gpgme_data_write (msg, "\n\n", 2); |
gpgme_data_write (msg, "\n\n", 2); |
149 |
|
|
268 |
fetch_key_from_keyserver (HWND dlg, gpgme_signature_t sig) |
fetch_key_from_keyserver (HWND dlg, gpgme_signature_t sig) |
269 |
{ |
{ |
270 |
const char *keyid; |
const char *keyid; |
271 |
|
char timebuf[128]; |
272 |
int id; |
int id; |
273 |
|
|
274 |
if (!sig->fpr) |
if (!sig->fpr) |
275 |
return FALSE; |
return FALSE; |
276 |
|
if (!get_locale_timedate (sig->timestamp, timebuf, DIM (timebuf)-1)) |
277 |
|
_snprintf (timebuf, DIM (timebuf)-1, "'unknown time'"); |
278 |
keyid = get_keyid_from_fpr (sig->fpr); |
keyid = get_keyid_from_fpr (sig->fpr); |
279 |
id = log_box (_("Verify"), MB_INFO|MB_YESNO, |
id = log_box (_("Verify"), MB_INFO|MB_YESNO, |
280 |
_("Signature made %s using %s key ID 0x%s\n" |
_("Signature made %s using %s key ID 0x%s\n" |
281 |
"Cannot check signature: public key not found\n\n" |
"Cannot check signature: public key not found\n\n" |
282 |
"Do you want to try to retrieve the key from the keyserver?"), |
"Do you want to try to retrieve the key from the keyserver?"), |
283 |
strtimestamp (sig->timestamp), |
timebuf, get_key_pubalgo (sig->pubkey_algo), keyid); |
|
get_key_pubalgo (sig->pubkey_algo), keyid); |
|
284 |
if (id == IDNO) { |
if (id == IDNO) { |
285 |
msg_box (dlg, get_gpg_sigstat (GPGME_SIGSUM_KEY_MISSING), |
msg_box (dlg, get_gpg_sigstat (GPGME_SIGSUM_KEY_MISSING), |
286 |
_("Verify"), MB_WARN); |
_("Verify"), MB_WARN); |