128 |
int _class; |
int _class; |
129 |
} ctx; |
} ctx; |
130 |
const char *fmt_templ = _("%s %s signature"); |
const char *fmt_templ = _("%s %s signature"); |
131 |
|
char *s; |
132 |
|
|
133 |
switch (msg) { |
switch (msg) { |
134 |
case WM_SYSCOMMAND: |
case WM_SYSCOMMAND: |
169 |
SetDlgItemInt (dlg, IDC_SIGPROPS_CLASS, ctx._class, FALSE); |
SetDlgItemInt (dlg, IDC_SIGPROPS_CLASS, ctx._class, FALSE); |
170 |
if (ctx.exportable) |
if (ctx.exportable) |
171 |
CheckDlgButton (dlg, IDC_SIGPROPS_EXP, BST_CHECKED); |
CheckDlgButton (dlg, IDC_SIGPROPS_EXP, BST_CHECKED); |
172 |
if (!get_pubkey (ks->keyid+8, &issuer)) { |
if (!get_pubkey (ks->keyid+8, &issuer)) |
173 |
char *uid = utf8_to_native (issuer->uids->uid); |
s = utf8_to_native (issuer->uids->uid); |
|
SetDlgItemText (dlg, IDC_SIGPROPS_ISSUER, uid); |
|
|
safe_free (uid); |
|
|
} |
|
174 |
else |
else |
175 |
SetDlgItemText (dlg, IDC_SIGPROPS_ISSUER, _(" user ID not found")); |
s = strdup (_(" user ID not found")); |
176 |
|
SetDlgItemText (dlg, IDC_SIGPROPS_ISSUER, s); |
177 |
|
safe_free (s); |
178 |
if (ks->expires == 0) { |
if (ks->expires == 0) { |
179 |
ShowWindow (GetDlgItem (dlg, IDC_SIGPROPS_EXPSTR), SW_HIDE); |
ShowWindow (GetDlgItem (dlg, IDC_SIGPROPS_EXPSTR), SW_HIDE); |
180 |
ShowWindow (GetDlgItem (dlg, IDC_SIGPROPS_EXPDATE), SW_HIDE); |
ShowWindow (GetDlgItem (dlg, IDC_SIGPROPS_EXPDATE), SW_HIDE); |
382 |
static struct winpt_key_s *k; |
static struct winpt_key_s *k; |
383 |
gpgme_key_sig_t ks; |
gpgme_key_sig_t ks; |
384 |
HWND sl; |
HWND sl; |
385 |
char inf[384], *utf8_uid; |
char inf[384]; |
386 |
int idx = 0; |
int idx = 0; |
387 |
|
|
388 |
switch (msg) { |
switch (msg) { |
391 |
if (!k) |
if (!k) |
392 |
BUG (0); |
BUG (0); |
393 |
if (k->uid) { |
if (k->uid) { |
394 |
utf8_uid = utf8_to_native (k->uid); |
char *p = utf8_to_native (k->uid); |
395 |
_snprintf (inf, DIM (inf)-1, _("Signature List for \"%s\""), utf8_uid); |
_snprintf (inf, DIM (inf)-1, _("Signature List for \"%s\""), p); |
396 |
safe_free (utf8_uid); |
safe_free (p); |
397 |
} |
} |
398 |
SetWindowText (dlg, inf); |
SetWindowText (dlg, inf); |
399 |
SetDlgItemText (dlg, IDC_KEYSIG_RECVKEY, _("&Receive Key")); |
SetDlgItemText (dlg, IDC_KEYSIG_RECVKEY, _("&Receive Key")); |