26 |
#include <windows.h> |
#include <windows.h> |
27 |
#include <time.h> |
#include <time.h> |
28 |
|
|
29 |
#include "../resource.h" |
#include "resource.h" |
30 |
#include "wptGPG.h" |
#include "wptGPG.h" |
31 |
#include "wptTypes.h" |
#include "wptTypes.h" |
32 |
#include "wptCommonCtl.h" |
#include "wptCommonCtl.h" |
105 |
If @not is NULL, it is assumed there is no data. |
If @not is NULL, it is assumed there is no data. |
106 |
@dlg is the handle to the calling dialog. */ |
@dlg is the handle to the calling dialog. */ |
107 |
static void |
static void |
108 |
show_notation_data (HWND dlg, gpgme_sig_notation_t not) |
show_notation_data (HWND dlg, gpgme_sig_notation_t nota) |
109 |
{ |
{ |
110 |
gpgme_sig_notation_t n; |
gpgme_sig_notation_t n; |
111 |
size_t len=0; |
size_t len=0; |
112 |
char *p; |
char *p; |
113 |
|
|
114 |
for (n=not; n; n = n->next) { |
for (n=nota; n; n = n->next) { |
115 |
if (n->name) |
if (n->name) |
116 |
len += strlen (n->name) + 1 + 2; |
len += strlen (n->name) + 1 + 2; |
117 |
else |
else |
123 |
if (!p) |
if (!p) |
124 |
BUG (NULL); |
BUG (NULL); |
125 |
strcpy (p, "Notation data:\n"); |
strcpy (p, "Notation data:\n"); |
126 |
for (n=not; n; n = n->next) { |
for (n=nota; n; n = n->next) { |
127 |
if (!n->name) |
if (!n->name) |
128 |
strcat (p, "policy url: "); |
strcat (p, "policy url: "); |
129 |
else { |
else { |