aboutsummaryrefslogtreecommitdiffstats
path: root/tests/gpgsm/t-verify.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2003-11-19 15:15:33 +0000
committerWerner Koch <[email protected]>2003-11-19 15:15:33 +0000
commit82cb03cc834a911ad626435a1236bfb9a9241bb0 (patch)
treee72490c1327cf2c4b5dd52e244dc7a2796201fcc /tests/gpgsm/t-verify.c
parent* conversion.c (_gpgme_parse_timestamp): New. (diff)
downloadgpgme-82cb03cc834a911ad626435a1236bfb9a9241bb0.tar.gz
gpgme-82cb03cc834a911ad626435a1236bfb9a9241bb0.zip
* gpg/t-support.h (DIM): Added.
* gpg/t-verify.c (check_result): Rewrote test for notations because the order of notaions is not guaranteed. * gpgsm/t-support.h (fail_if_err): Also print the numeric values.
Diffstat (limited to '')
-rw-r--r--tests/gpgsm/t-verify.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/gpgsm/t-verify.c b/tests/gpgsm/t-verify.c
index 304fc2c6..6fb32a94 100644
--- a/tests/gpgsm/t-verify.c
+++ b/tests/gpgsm/t-verify.c
@@ -57,8 +57,9 @@ check_result (gpgme_verify_result_t result, int summary, char *fpr,
}
if (sig->summary != summary)
{
- fprintf (stderr, "%s:%i: Unexpected signature summary: 0x%x\n",
- __FILE__, __LINE__, sig->summary);
+ fprintf (stderr, "%s:%i: Unexpected signature summary: "
+ "want=0x%x have=0x%x\n",
+ __FILE__, __LINE__, summary, sig->summary);
exit (1);
}
if (strcmp (sig->fpr, fpr))
@@ -119,6 +120,7 @@ main (int argc, char **argv)
fail_if_err (err);
err = gpgme_data_new_from_mem (&sig, test_sig1, strlen (test_sig1), 0);
fail_if_err (err);
+
err = gpgme_op_verify (ctx, sig, text, NULL);
fail_if_err (err);
result = gpgme_op_verify_result (ctx);