337 |
ke->setLocalUser (k); |
ke->setLocalUser (k); |
338 |
|
|
339 |
err = ke->signKey (type, sig_class_choice, expires? keymsg : "0"); |
err = ke->signKey (type, sig_class_choice, expires? keymsg : "0"); |
340 |
memset (&pwd, 0, sizeof pwd); |
wipememory (pwd, sizeof (pwd)); |
341 |
if (err) { |
if (err) { |
342 |
delete ke; |
delete ke; |
343 |
msg_box (dlg, gpgme_strerror (err), _("Key Signing"), MB_ERR); |
msg_box (dlg, gpgme_strerror (err), _("Key Signing"), MB_ERR); |
344 |
return TRUE; |
return TRUE; |
345 |
} |
} |
346 |
if (ke->getResult () != 0) |
if (ke->getResult () != 0) |
347 |
msg_box (dlg, _("This key is already signed by your key"), _("Key Signing"), MB_INFO); |
msg_box (dlg, _("This key is already signed by your key"), |
348 |
|
_("Key Signing"), MB_INFO); |
349 |
else { |
else { |
350 |
status_box (dlg, _("Key successfully signed."), PGM_NAME); |
status_box (dlg, _("Key successfully signed."), PGM_NAME); |
351 |
key->update = 1; |
key->update = 1; |