tests: Avoid segv in run-verify due to Policy URLs
* tests/run-verify.c (print_result): Take care of Policy URLs. Signed-off-by: Werner Koch <wk@gnupg.org>
This commit is contained in:
parent
bdf7cd2e28
commit
ee8fad3ea0
@ -163,15 +163,22 @@ print_result (gpgme_verify_result_t result)
|
|||||||
);
|
);
|
||||||
for (nt = sig->notations; nt; nt = nt->next)
|
for (nt = sig->notations; nt; nt = nt->next)
|
||||||
{
|
{
|
||||||
printf (" notation ..: '%s'\n", nt->name);
|
if (nt->name)
|
||||||
if (strlen (nt->name) != nt->name_len)
|
{
|
||||||
printf (" warning : name larger (%d)\n", nt->name_len);
|
printf (" notation ..: '%s'\n", nt->name);
|
||||||
printf (" flags ...:%s%s (0x%02x)\n",
|
if (strlen (nt->name) != nt->name_len)
|
||||||
nt->critical? " critical":"",
|
printf (" warning : name larger (%d)\n", nt->name_len);
|
||||||
nt->human_readable? " human":"",
|
printf (" flags ...:%s%s (0x%02x)\n",
|
||||||
nt->flags);
|
nt->critical? " critical":"",
|
||||||
if (nt->value)
|
nt->human_readable? " human":"",
|
||||||
printf (" value ...: '%s'\n", nt->value);
|
nt->flags);
|
||||||
|
if (nt->value)
|
||||||
|
printf (" value ...: '%s'\n", nt->value);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
printf (" policy ....: '%s'\n", nt->value);
|
||||||
|
}
|
||||||
if ((nt->value?strlen (nt->value):0) != nt->value_len)
|
if ((nt->value?strlen (nt->value):0) != nt->value_len)
|
||||||
printf (" warning : value larger (%d)\n", nt->value_len);
|
printf (" warning : value larger (%d)\n", nt->value_len);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user