diff options
author | Marcus Brinkmann <[email protected]> | 2012-02-08 14:26:17 +0000 |
---|---|---|
committer | Marcus Brinkmann <[email protected]> | 2012-02-08 14:26:17 +0000 |
commit | dae3073aaa8b7feb1c844fdaf711f79141b9cc65 (patch) | |
tree | 5e298888803b5e9f6ba2656759bb76a6c27c6d5e /tests/gpg/t-decrypt-verify.c | |
parent | Link the thread test to pthread. (diff) | |
download | gpgme-dae3073aaa8b7feb1c844fdaf711f79141b9cc65.tar.gz gpgme-dae3073aaa8b7feb1c844fdaf711f79141b9cc65.zip |
Use gpgme interface for error handling to avoid linking with gpg-error.
* tests/t-data.c, tests/run-export.c, tests/run-keylist.c,
tests/run-support.h, tests/run-verify.c, tests/gpg/t-decrypt-verify.c,
tests/gpg/t-edit.c, tests/gpg/t-eventloop.c, tests/gpg/t-keylist-sig.c,
tests/gpg/t-keylist.c, tests/gpg/t-support.h, tests/gpg/t-trustlist.c,
tests/gpg/t-verify.c, tests/gpg/t-wait.c, tests/gpgsm/cms-decrypt.c,
tests/gpgsm/cms-keylist.c, tests/gpgsm/t-keylist.c,
tests/gpgsm/t-support.h, tests/gpgsm/t-verify.c,
tests/opassuan/t-command.c: Use gpgme interface for gpg-error functions.
Diffstat (limited to 'tests/gpg/t-decrypt-verify.c')
-rw-r--r-- | tests/gpg/t-decrypt-verify.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/gpg/t-decrypt-verify.c b/tests/gpg/t-decrypt-verify.c index 697d3834..113aec13 100644 --- a/tests/gpg/t-decrypt-verify.c +++ b/tests/gpg/t-decrypt-verify.c @@ -61,7 +61,7 @@ check_verify_result (gpgme_verify_result_t result, unsigned int summary, __FILE__, __LINE__, sig->fpr); exit (1); } - if (gpg_err_code (sig->status) != status) + if (gpgme_err_code (sig->status) != status) { fprintf (stderr, "%s:%i: Unexpected signature status: %s\n", __FILE__, __LINE__, gpgme_strerror (sig->status)); @@ -85,7 +85,7 @@ check_verify_result (gpgme_verify_result_t result, unsigned int summary, __FILE__, __LINE__, sig->validity); exit (1); } - if (gpg_err_code (sig->validity_reason) != GPG_ERR_NO_ERROR) + if (gpgme_err_code (sig->validity_reason) != GPG_ERR_NO_ERROR) { fprintf (stderr, "%s:%i: Unexpected validity reason: %s\n", __FILE__, __LINE__, gpgme_strerror (sig->validity_reason)); |