gpgme/tests/gpg
Werner Koch b8159eadb5
core: New API functions gpgme_set_sender, gpgme_get_sender.
* src/context.h (struct gpgme_context): Add field 'sender'.
* src/gpgme.c: Include mbox-util.h.
(gpgme_release): Free SENDER.
(gpgme_set_sender): New.
(gpgme_get_sender): New.
* src/gpgme.def, src/libgpgme.vers: Add new functions.

* src/engine-gpg.c (append_args_from_sender): New.
(gpg_encrypt_sign, gpg_sign): Call append_args_from_sender.
(gpg_verify): Add arg CTX.  Call append_args_from_sender/
* src/engine-gpgsm.c (gpgsm_verify): Add dummy arg CTX.
* src/engine-uiserver.c (uiserver_verify): Ditto.
* src/engine.c (_gpgme_engine_op_verify): Add arg CTX.
* src/verify.c (verify_start): Pass CTX to engine function.

* tests/gpg/t-verify.c (main): Add some checks for new functions.
* tests/run-sign.c (main): Add option --sender.
* tests/run-verify.c (main): Ditto.

Signed-off-by: Werner Koch <wk@gnupg.org>
2016-10-25 17:28:01 +02:00
..
.gitignore tests: Add test for cancellation 2016-09-22 09:12:43 +02:00
7A030357C0F253A5BBCD282FFC4E521B37558F5C Make test suite workable with GnuPG 2.1. 2013-08-12 14:32:21 +02:00
13CBE3758AFE42B5E5E2AE4CED27AFA455E3F87F Make test suite workable with GnuPG 2.1. 2013-08-12 14:32:21 +02:00
13CD0F3BDF24BE53FE192D62F18737256FF6E4FD Make test suite workable with GnuPG 2.1. 2013-08-12 14:32:21 +02:00
76F7E2B35832976B50A27A282D9B87E44577EB66 Make test suite workable with GnuPG 2.1. 2013-08-12 14:32:21 +02:00
A0747D5F9425E6664F4FFBEED20FBCA79FDED2BD Make test suite workable with GnuPG 2.1. 2013-08-12 14:32:21 +02:00
cipher-1.asc 2001-11-22 Marcus Brinkmann <marcus@g10code.de> 2001-11-22 03:01:26 +00:00
cipher-2.asc 2001-11-22 Marcus Brinkmann <marcus@g10code.de> 2001-11-22 03:01:26 +00:00
final.test Fix test suite for GnuPG 2.1 which uses pubring.kbx. 2015-06-08 10:43:29 +02:00
geheim.txt move some file encodings to UTF-8 2016-09-23 16:08:33 +02:00
initial.test Fix test suite for GnuPG 2.1 which uses pubring.kbx. 2015-06-08 10:43:29 +02:00
Makefile.am tests: Add test for cancellation 2016-09-22 09:12:43 +02:00
mkdemodirs.in Add gpgme_io_write and gpgme_io_read. 2009-06-09 16:01:02 +00:00
pinentry 2008-01-10 Marcus Brinkmann <marcus@g10code.de> 2008-01-10 04:33:34 +00:00
pubdemo.asc Add a test for expired subkeys 2005-10-19 08:23:23 +00:00
pubkey-1.asc Update GPGME test suite for use with GnuPG 2.1. 2011-04-27 18:03:46 +02:00
secdemo.asc Update GPGME test suite for use with GnuPG 2.1. 2011-04-27 18:03:46 +02:00
seckey-1.asc Update GPGME test suite for use with GnuPG 2.1. 2011-04-27 18:03:46 +02:00
t-cancel.c tests: Make t-cancel more portable. 2016-10-14 16:32:59 +02:00
t-decrypt-verify.c tests: Mark lots of unused vars and fix const mismatches. 2016-09-13 20:48:06 +02:00
t-decrypt.c tests: Mark lots of unused vars and fix const mismatches. 2016-09-13 20:48:06 +02:00
t-edit.c core: New function gpgme_op_interact, deprecate gpgme_op_edit. 2016-09-15 11:39:43 +02:00
t-encrypt-large.c tests: Mark lots of unused vars and fix const mismatches. 2016-09-13 20:48:06 +02:00
t-encrypt-mixed.c tests: Mark lots of unused vars and fix const mismatches. 2016-09-13 20:48:06 +02:00
t-encrypt-sign.c tests: Mark lots of unused vars and fix const mismatches. 2016-09-13 20:48:06 +02:00
t-encrypt-sym.c tests: Mark lots of unused vars and fix const mismatches. 2016-09-13 20:48:06 +02:00
t-encrypt.c tests: Mark lots of unused vars and fix const mismatches. 2016-09-13 20:48:06 +02:00
t-eventloop.c tests: Fix select usage in t-eventloop 2016-09-22 09:12:43 +02:00
t-export.c tests: Mark lots of unused vars and fix const mismatches. 2016-09-13 20:48:06 +02:00
t-file-name.c tests: Mark lots of unused vars and fix const mismatches. 2016-09-13 20:48:06 +02:00
t-genkey.c tests: Mark lots of unused vars and fix const mismatches. 2016-09-13 20:48:06 +02:00
t-gpgconf.c tests: Mark lots of unused vars and fix const mismatches. 2016-09-13 20:48:06 +02:00
t-import.c tests: Mark lots of unused vars and fix const mismatches. 2016-09-13 20:48:06 +02:00
t-keylist-sig.c tests: Mark lots of unused vars and fix const mismatches. 2016-09-13 20:48:06 +02:00
t-keylist.c tests: Mark lots of unused vars and fix const mismatches. 2016-09-13 20:48:06 +02:00
t-sig-notation.c tests: Fix blunder. 2016-09-27 12:49:24 +02:00
t-sign.c tests: Mark lots of unused vars and fix const mismatches. 2016-09-13 20:48:06 +02:00
t-signers.c tests: Mark lots of unused vars and fix const mismatches. 2016-09-13 20:48:06 +02:00
t-support.h tests: Mark lots of unused vars and fix const mismatches. 2016-09-13 20:48:06 +02:00
t-thread1.c tests: Mark lots of unused vars and fix const mismatches. 2016-09-13 20:48:06 +02:00
t-trustlist.c tests: Mark lots of unused vars and fix const mismatches. 2016-09-13 20:48:06 +02:00
t-verify.c core: New API functions gpgme_set_sender, gpgme_get_sender. 2016-10-25 17:28:01 +02:00
t-wait.c tests: Mark lots of unused vars and fix const mismatches. 2016-09-13 20:48:06 +02:00