247 |
SYSTEMTIME st; |
SYSTEMTIME st; |
248 |
HWND h; |
HWND h; |
249 |
char keymsg[2048], pwd[256]; |
char keymsg[2048], pwd[256]; |
|
char *uid = NULL; |
|
250 |
const char *keyid, *s; |
const char *keyid, *s; |
251 |
int type, expires=0, idx; |
int type, expires=0, idx; |
252 |
int sig_class = 0; |
int sig_class = 0; |
267 |
get_key_created (key->ctx->subkeys->timestamp), |
get_key_created (key->ctx->subkeys->timestamp), |
268 |
get_expire_date (key->ctx), |
get_expire_date (key->ctx), |
269 |
get_printable_fpr (key->ctx->subkeys->fpr), |
get_printable_fpr (key->ctx->subkeys->fpr), |
270 |
key->ctx->uids->uid); |
key->ext->uids->uid); |
271 |
s = key->ctx->subkeys->keyid; |
s = key->ctx->subkeys->keyid; |
272 |
if (do_fill_seckeylist (dlg, s)) { |
if (do_fill_seckeylist (dlg, s)) { |
273 |
msg_box (dlg, _("No valid secret key found."), _("Key Signing"), MB_ERR); |
msg_box (dlg, _("No valid secret key found."), _("Key Signing"), MB_ERR); |
275 |
break; |
break; |
276 |
} |
} |
277 |
do_check_protection (dlg); |
do_check_protection (dlg); |
278 |
SetDlgItemText_utf8 (dlg, IDC_KEYSIGN_INFOS, keymsg); |
SetDlgItemText (dlg, IDC_KEYSIGN_INFOS, keymsg); |
279 |
SetDlgItemText (dlg, IDC_KEYSIGN_LOCAL, _("Sign local only (non exportable signature)")); |
SetDlgItemText (dlg, IDC_KEYSIGN_LOCAL, _("Sign local only (non exportable signature)")); |
280 |
SetDlgItemText (dlg, IDC_KEYSIGN_EXPSIG, _("Signature expires on")); |
SetDlgItemText (dlg, IDC_KEYSIGN_EXPSIG, _("Signature expires on")); |
281 |
SetDlgItemText (dlg, IDC_KEYSIGN_NREV, _("Sign non-revocably")); |
SetDlgItemText (dlg, IDC_KEYSIGN_NREV, _("Sign non-revocably")); |