26 |
#include <windows.h> |
#include <windows.h> |
27 |
#include <time.h> |
#include <time.h> |
28 |
|
|
29 |
|
#include "resource.h" |
30 |
#include "wptGPG.h" |
#include "wptGPG.h" |
31 |
#include "wptCommonCtl.h" |
#include "wptCommonCtl.h" |
32 |
#include "wptKeylist.h" |
#include "wptKeylist.h" |
33 |
#include "wptNLS.h" |
#include "wptNLS.h" |
|
#include "wptUTF8.h" |
|
34 |
#include "wptErrors.h" |
#include "wptErrors.h" |
35 |
#include "wptTypes.h" |
#include "wptTypes.h" |
36 |
#include "wptW32API.h" |
#include "wptW32API.h" |
37 |
|
#include "wptVersion.h" |
38 |
|
|
39 |
|
|
40 |
/* Is the given signature an user-id signature? */ |
/* Is the given signature an user-id signature? */ |
57 |
{5, 68, (char *)_("Expiration")}, |
{5, 68, (char *)_("Expiration")}, |
58 |
{6, 56, (char *)_("Algorithm")}, |
{6, 56, (char *)_("Algorithm")}, |
59 |
{0, 0, NULL} |
{0, 0, NULL} |
60 |
}; |
}; |
61 |
int j, rc = 0; |
int j, rc = 0; |
62 |
|
|
63 |
rc = listview_new (&c); |
rc = listview_new (&c); |
67 |
for (j=0; implist[j].fieldname != NULL; j++) |
for (j=0; implist[j].fieldname != NULL; j++) |
68 |
listview_add_column (c, &implist[j]); |
listview_add_column (c, &implist[j]); |
69 |
listview_set_ext_style (c); |
listview_set_ext_style (c); |
70 |
|
listview_del_all_items (c); |
71 |
*lv = c; |
*lv = c; |
72 |
return 0; |
return 0; |
73 |
} |
} |
147 |
else |
else |
148 |
attr = uid->uid; |
attr = uid->uid; |
149 |
if (attr && strlen (attr)) { |
if (attr && strlen (attr)) { |
150 |
char *uid_utf8 = utf8_to_wincp (attr, strlen (attr)); |
char *p = uid? m_strdup (attr) : indent_string (attr, 2); |
|
char *p = uid? m_strdup (uid_utf8) : indent_string (uid_utf8, 2); |
|
151 |
listview_add_sub_item (lv, pos, 0, p); |
listview_add_sub_item (lv, pos, 0, p); |
|
free (uid_utf8); |
|
152 |
free_if_alloc (p); |
free_if_alloc (p); |
153 |
} |
} |
154 |
else { |
else { |