194 |
|
|
195 |
u32 u = key->subkeys->expires; |
u32 u = key->subkeys->expires; |
196 |
if (!u) |
if (!u) |
197 |
return "never"; |
return _("never"); |
198 |
return get_key_expire_date (u); |
return get_key_expire_date (u); |
199 |
} |
} |
200 |
|
|
240 |
free (uid); |
free (uid); |
241 |
s = key->ctx->subkeys->keyid; |
s = key->ctx->subkeys->keyid; |
242 |
if (do_fill_seckeylist (dlg, s)) { |
if (do_fill_seckeylist (dlg, s)) { |
243 |
msg_box( dlg, _("No valid secret key found."), _("Key Signing"), MB_ERR ); |
msg_box (dlg, _("No valid secret key found."), _("Key Signing"), MB_ERR); |
244 |
EndDialog( dlg, FALSE ); |
EndDialog (dlg, FALSE); |
245 |
} |
} |
246 |
SetDlgItemText (dlg, IDC_KEYSIGN_INFOS, keymsg); |
SetDlgItemText (dlg, IDC_KEYSIGN_INFOS, keymsg); |
247 |
#ifndef LANG_DE |
#ifndef LANG_DE |
248 |
SetDlgItemText (dlg, IDC_KEYSIGN_LOCAL, _("Sign local only (non exportable signature)")); |
SetDlgItemText (dlg, IDC_KEYSIGN_LOCAL, _("Sign local only (non exportable signature)")); |
249 |
SetDlgItemText (dlg, IDC_KEYSIGN_EXPSIG, _("Signature expires on")); |
SetDlgItemText (dlg, IDC_KEYSIGN_EXPSIG, _("Signature expires on")); |
250 |
SetDlgItemText (dlg, IDC_KEYSIGN_NREV, _("Sign non-revocably")); |
SetDlgItemText (dlg, IDC_KEYSIGN_NREV, _("Sign non-revocably")); |
251 |
|
SetDlgItemText (dlg, IDC_KEYSIGN_ASKLEVEL, _("&Ask for certification level")); |
252 |
|
SetDlgItemText (dlg, IDC_KEYSIGN_PWDINF, _("Passphrase")); |
253 |
#endif |
#endif |
254 |
CheckDlgButton (dlg, IDC_KEYSIGN_LOCAL, BST_CHECKED); |
CheckDlgButton (dlg, IDC_KEYSIGN_LOCAL, BST_CHECKED); |
255 |
CheckDlgButton (dlg, IDC_KEYSIGN_EXPSIG, BST_UNCHECKED); |
CheckDlgButton (dlg, IDC_KEYSIGN_EXPSIG, BST_UNCHECKED); |
257 |
EnableWindow (GetDlgItem (dlg, IDC_KEYSIGN_EXPIRES), FALSE); |
EnableWindow (GetDlgItem (dlg, IDC_KEYSIGN_EXPIRES), FALSE); |
258 |
if (reg_prefs.expert == 0) |
if (reg_prefs.expert == 0) |
259 |
ShowWindow (GetDlgItem (dlg, IDC_KEYSIGN_NREV), SW_HIDE); |
ShowWindow (GetDlgItem (dlg, IDC_KEYSIGN_NREV), SW_HIDE); |
260 |
SetForegroundWindow( dlg ); |
SetForegroundWindow (dlg); |
261 |
h = GetDlgItem( dlg, IDC_KEYSIGN_PASSPHRASE ); |
h = GetDlgItem (dlg, IDC_KEYSIGN_PASSPHRASE); |
262 |
SetFocus( h ); |
SetFocus (h); |
263 |
return FALSE; |
return FALSE; |
264 |
|
|
265 |
case WM_DESTROY: |
case WM_DESTROY: |