aboutsummaryrefslogtreecommitdiffstats
path: root/tests (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Remove all trailing whitespace from source filesWerner Koch2012-09-259-65/+65
| | | | | -- Command used: sed -i 's,[ \t]*$,,' FILE
* .gitignore: flesh out rules and add subdirectory-.gitignores.W. Trevor King2012-04-204-0/+60
|
* Use gpgme interface for error handling to avoid linking with gpg-error.Marcus Brinkmann2012-02-0820-53/+49
| | | | | | | | | | | * 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.
* Link the thread test to pthread.Marcus Brinkmann2012-02-081-1/+1
| | | | * tests/gpg/Makefile.am (t_thread1_LDADD): Add -lpthread.
* Generate the ChangeLog from commit logs.Werner Koch2011-12-022-16/+24
| | | | | | | | | | | | | | | * build-aux/gitlog-to-changelog: New script. Taken from gnulib. * build-aux/git-log-fix: New file. * build-aux/git-log-footer: New file. * build-aux/git-hook/commit-msg: New script. * doc/HACKING: New file. * ChangeLog: New file. * Makefile.am (EXTRA_DIST): Add new files. (gen-ChangeLog): New. (dist-hook): Run gen-ChangeLog. * autogen.sh: Install commit-msg hook for git. Rename all ChangeLog files to ChangeLog-2011.
* Clean up the tests correctly.Marcus Brinkmann2011-05-113-6/+22
|
* Make sure an existing agent doesn't interfere with test suite generation.Marcus Brinkmann2011-05-062-0/+9
|
* Improve import tests for GnuPG 2.1.Marcus Brinkmann2011-05-032-1/+10
|
* Update GPGME test suite for use with GnuPG 2.1.Marcus Brinkmann2011-04-278-746/+127
|
* Prepare for a new protocol.Werner Koch2009-11-033-4/+20
| | | | | Comment clarification.
* 2009-10-26 Marcus Brinkmann <[email protected]>Marcus Brinkmann2009-10-262-12/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * configure.ac (NEED_GPG_VERSION_DEFAULT): Bump to 1.4.0 as 1.3.0 was development versions only. tests/ 2009-10-26 Marcus Brinkmann <[email protected]> * opassuan/t-command.c: Update to new interface. src/ 2009-10-26 Marcus Brinkmann <[email protected]> * gpgme.h.in (struct gpgme_io_event_done_data) (gpgme_io_event_done_data_t): New types. (struct _gpgme_op_assuan_result): Deprecate the err member. (gpgme_op_assuan_result): Deprecate (for now). (gpgme_op_assuan_transact_ext): New prototype. (gpgme_op_assuan_transact): Deprecate. (struct _gpgme_op_g13_result): Replace with ... (struct _gpgme_op_vfs_mount_result): ... this. (gpgme_op_g13_mount): Replace with ... (gpgme_op_vfs_mount): ... this. * gpgme.def (gpgme_op_assuan_transact_ext, gpgme_wait_ext) (gpgme_op_vfs_mount_result, gpgme_op_vfs_mount): New. (gpgme_op_g13_mount): Remove. * libgpgme.vers: Likewise. * engine-backend.h (struct engine_ops): Remove RESULT_CB and RESULT_CB_VALUE args in opassuan_transact member. Add CANCEL_OP member. * ops.h (_gpgme_cancel_with_err, _gpgme_wait_on_condition): Add OP_ERR argument. (_gpgme_wait_one_ext): New prototype. * context.h (ctx_op_data_id_t): Add OPDATA_VFS_MOUNT. * engine-g13.c (g13_cancel_op): New function. (parse_status): Remove declaration. (g13_assuan_simple_command): Do nothing with status lines for now. (status_handler): Update opaque value access. (_gpgme_engine_ops_g13): Add new cancel_op member. * gpgme.c (_gpgme_cancel_with_err): Add new parameter OP_ERR. Handle operational errors. (gpgme_cancel, gpgme_io_read, gpgme_io_write): Add debug output. * data.c (_gpgme_data_inbound_handler) (_gpgme_data_outbound_handler): Adjust opaque value access. * engine-gpg.c (command_handler, status_handler) (colon_line_handler): Likewise. * engine-gpgsm.c (status_handler): Likewise. * engine-gpg.c (_gpgme_engine_ops_gpg): Add cancel_op member. * engine-gpgsm.c (_gpgme_engine_ops_gpgsm): Likewise. * g13.c: Rewritten (and will be rewritten again). * engine.h (_gpgme_engine_op_assuan_transact): Remove result_cb and result_cb_value parameters from prototype. (_gpgme_engine_cancel_op): New prototype. * engine.c (engine_ops) [! ENABLE_ASSUAN]: Add missing comma. (_gpgme_engine_op_assuan_transact): Remove result_cb and result_cb_value parameter. (_gpgme_engine_cancel_op): New function. * wait.h (_gpgme_run_io_cb): Add new argument OP_ERR. (struct io_cb_data): New struct to pass opaque data and get a op_err return value. Needed because we can't modify I/O callback handler signature because it is exposed to the user. * wait.c (_gpgme_run_io_cb): Add OP_ERR parameter. Handle operational errors. * wait-user.c (_gpgme_user_io_cb_handler): Handle operational errors. * wait-private.c (_gpgme_wait_on_condition): New argument to retrieve the operational result. Handle operational errors in session based protocols. (_gpgme_wait_one_ext): New function. (_gpgme_wait_one): Pass argument in invocation of _gpgme_wait_on_condition. * wait-global.c (struct ctx_list_item): Add member OP_ERR. (ctx_done): New argument OP_ERR. (ctx_wait): New argument OP_ERR. (gpgme_wait_ext): New function based on gpgme_wait but handling operational errors. (gpgme_wait): Implement in term of gpgme_wait_ext. * keylist.c (gpgme_op_keylist_next): Pass argument in invocation of _gpgme_wait_on_condition. * trustlist.c (gpgme_op_trustlist_next): Pass argument in invocation of _gpgme_wait_on_condition. * engine-assuan.c (struct engine_llass): Replace members RESULT_CB and RESULT_CB_VALUE by LAST_OP_ERR. (_gpgme_engine_assuan_last_op_err): Add this hack function. (llass_cancel_op): New function. (_gpgme_engine_llass_ops): Add cancel_op member. (llass_status_handler): Update opaque value access. (llass_transact): Remove RESULT_CB and RESULT_CB_VALUE arguments. * opassuan.c: Move compat hacks to the end of file. (opassuan_start): Do not set OPD->result.err. Do not pass RESULT_Cb and CTX to _gpgme_engine_op_assuan_transact. (gpgme_op_assuan_transact_ext): New function.
* Add new debug helperWerner Koch2009-10-153-3/+252
|
* Fix detection of invalid signer keys.Werner Koch2009-08-064-1/+203
| | | | | Support the new INV_SGNR status code.
* Add issing file.Werner Koch2009-07-081-0/+188
|
* Inmplement import from keys for GPGSM.Werner Koch2009-07-072-2/+18
| | | | | Add option --cms to run-keylist test program.
* Move gpg test programs to the top test directory.Werner Koch2009-07-076-10/+25
|
* 2009-06-22 Marcus Brinkmann <[email protected]>Marcus Brinkmann2009-06-223-3/+34
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * configure.ac: Add AC_TYPE_UINTPTR_T. * assuan/assuan.h [_ASSUAN_IN_GPGME_BUILD_ASSUAN]: Declare _gpgme_io_connect. src/ 2009-06-22 Marcus Brinkmann <[email protected]> * debug.h: Everywhere, use %p instead of 0x%x to print pointer. [HAVE_STDINT_H]: Include <stdint.h>. (_TRACE, TRACE, TRACE0, TRACE1, TRACE2, TRACE3, TRACE6): Cast tag to (uintptr_t) before casting it to (void*) to silence GCC warning. * gpgme.h.in (_GPGME_DEPRECATED_OUTSIDE_GPGME): New macro. * sign.c (_GPGME_IN_GPGME): Define it. * keylist.c (_GPGME_IN_GPGME): Define it. * debug.c (_gpgme_debug_begin, _gpgme_debug_add): Handle error in vasprintf and asprintf. * priv-io.h: Include <sys/socket.h>. Declare _gpgme_io_connect. tests/ 2009-06-22 Marcus Brinkmann <[email protected]> * gpg/t-support.h (passphrase_cb): Implement write() according to the book to silence compiler warning. * gpgsm/t-support.h (passphrase_cb): Likewise.
* Add support for gpg --fetch-keys.Werner Koch2009-06-166-69/+195
|
* Add new functions to import and export keys specified by gpgme_key_t.Werner Koch2009-06-165-2/+487
| | | | | Allow exporting keys to a keyserver.
* Add gpgme_io_write and gpgme_io_read.Werner Koch2009-06-094-6/+16
| | | | | Minor cleanups.
* * Makefile.am (DISTCHECK_CONFIGURE_FLAGS): Specify --with-gpg.Moritz Schulte2009-04-193-6/+22
| | | | | | | | | | | | * gpg/Makefile.am (EXTRA_DIST): Replaced mkdemodirs with mkdemodirs.in. (mkdemodirs): New target. (clean-local): Added command for removing mkdemodirs script. (./Alpha/Secret.gpg): Added dependency on mkdemodirs. * gpg/mkdemodirs: Renamed to ... * gpg/mkdemodirs.in: ... here. * gpg/mkdemodirs.in (GPG): Derive value from @GPG@ instead of hard-coding "gpg".
* Chnaged the op-assuan interface.Werner Koch2009-02-242-7/+35
|
* Provide inforation about smartcards.Werner Koch2009-02-042-0/+25
|
* First take on the low-level assuan interface.Werner Koch2009-01-264-3/+164
|
* 2008-12-03 Marcus Brinkmann <[email protected]>Marcus Brinkmann2008-12-034-3/+8
| | | | | | * Makefile.am (INCLUDES): Fix path to include file. * gpg/Makefile.am (INCLUDES), gpgsm/Makefile.am (INCLUDES): Likewise.
* Fix SIGPIPE ignoring regression.Werner Koch2008-11-183-1/+117
| | | | | Fix unsupported algorithm detection.
* 008-11-03 Marcus Brinkmann <[email protected]>Marcus Brinkmann2008-11-034-6/+12
| | | | | | | | | | | | | | | | | | | | * configure.ac: Replace gpgme paths with src. * gpgme: Move to ... * src: ... this new directory. assuan/ 2008-11-03 Marcus Brinkmann <[email protected]> * Makefile.am (INCLUDES): Replace gpgme path with src. tests/ 2008-11-03 Marcus Brinkmann <[email protected]> * gpgsm/Makefile.am (INCLUDES, LDADD): Replace gpgme path with src. * gpg/Makefile.am (INCLUDES, LDADD, t_thread1_LDADD): Likewise. * Makefile.am (LDADD): Likewise.
* use validated mode.Werner Koch2008-10-301-0/+3
|
* new debug helper programWerner Koch2008-10-302-1/+123
|
* Add example.Werner Koch2008-06-192-1/+10
| | | | | Update gpgconf test.
* 2008-01-28 Marcus Brinkmann <[email protected]>Marcus Brinkmann2008-01-282-1/+5
| | | | | * gpg/Makefile.am (DISTCLEANFILES): Add pubring.kbx~.
* 2008-01-10 Marcus Brinkmann <[email protected]>Marcus Brinkmann2008-01-102-8/+18
| | | | | * gpg/t-gpgconf.c (main): Allow for dirmngr not to be available.
* 2008-01-10 Marcus Brinkmann <[email protected]>Marcus Brinkmann2008-01-102-1/+3
| | | | | * gpg/Makefile.am (./gpg-agent.conf): Correct pinentry path.
* 2008-01-10 Marcus Brinkmann <[email protected]>Marcus Brinkmann2008-01-103-3/+34
| | | | | | | | * gpg/pinentry: New file. * gpg/Makefile.am (DISTCLEANFILES, all-local): Add gpg-agent.conf (./gpg-agent.conf): New target. (EXTRA_DIST): Add pinentry.
* 2008-01-10 Marcus Brinkmann <[email protected]>Marcus Brinkmann2008-01-102-0/+9
| | | | | * gpg/t-gpgconf.c (main): Exit early if compiled without gpgconf.
* 2008-01-04 Marcus Brinkmann <[email protected]>gpgme-1.1.6Marcus Brinkmann2008-01-042-1/+3
| | | | | * gpg/Makefile.am (CLEANFILES): Add pubring.kbx and dirmngr.conf.
* 2008-01-04 Marcus Brinkmann <[email protected]>Marcus Brinkmann2008-01-045-5/+321
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * configure.ac: Support gpgconf. gpgme/ 2008-01-04 Marcus Brinkmann <[email protected]> * Makefile.am (gpgconf_components): New variable. (main_sources): Add gpgconf.c. * gpgme.h (gpgme_protocol_t): New protocol GPGME_PROTOCOL_GPGCONF. (gpgme_conf_level_t, gpgme_conf_type_t, gpgme_conf_arg_t) (gpgme_conf_opt_t, gpgme_conf_comp_t, gpgme_conf_arg_new) (gpgme_conf_arg_release, gpgme_conf_opt_change) (gpgme_conf_release, gpgme_op_conf_load, gpgme_op_conf_save): New types. * gpgconf.c, engine-gpgconf.c: New files. * engine.h: (_gpgme_engine_op_conf_load, (_gpgme_engine_op_conf_save): New prototypes. * op-support.c (_gpgme_op_reset): Ignore not implemented locale function. * posix-util.c (_gpgme_get_gpgconf_path): New function. * w32-util.c (_gpgme_get_gpgconf_path): New function. * engine-gpgsm.c: (_gpgme_engine_ops_gpgsm): Add stubs for conf_load and conf_save. * rungpg.c: (_gpgme_engine_ops_gpg): Add stubs for conf_load and conf_save. * gpgme.def: Add new gpgconf related interfaces. * libgpgme.vers: Likewise. * util.h (_gpgme_get_gpgconf_path): New prototype. * gpgme.h (gpgme_protocol_t): Add GPGME_PROTOCOL_GPGCONF. * engine-backend.h (_gpgme_engine_ops_gpgconf): New prototype. (struct engine_ops): Add members for conf_load and conf_save. * engine.c (engine_ops): Add _gpgme_engine_ops_gpgconf. (_gpgme_engine_op_conf_load, (_gpgme_engine_op_conf_save): New functions. (gpgme_get_engine_info): Allow protocol GPGME_PROTOCOL_GPGCONF. tests/ 2008-01-04 Marcus Brinkmann <[email protected]> * Makefile.am (TESTS_ENVIRONMENT): Use absolute path for GNUPGHOME. * gpg/Makefile.am (TESTS_ENVIRONMENT): Use absolute path for GNUPGHOME. * gpgsm/Makefile.am (TESTS_ENVIRONMENT): Use absolute path for GNUPGHOME. * gpg/Makefile.am (TESTS): Add t-gpgconf. t-gpgconf.c: New file.
* Made autolog feature for if --enable-fd-passing has not been enabled.Werner Koch2007-11-261-1/+1
| | | | | Pass HTML glag to test program.
* 2007-11-23 Marcus Brinkmann <[email protected]>Marcus Brinkmann2007-11-232-1/+6
| | | | | * gpgsm/t-verify.c (show_auditlog): Check for GPG_ERR_ASS_UNKNOWN_CMD.
* Make getauditlog work. For now only when configured with --enable-fd-passing.Werner Koch2007-11-232-10/+27
|
* New API gpgme_op_getauditlog.Werner Koch2007-11-221-0/+17
|
* 2007-09-27 Marcus Brinkmann <[email protected]>Marcus Brinkmann2007-09-275-9/+37
| | | | | | | | | | | | | | | | | | | | | | * assuan-pipe-connect.c (pipe_connect_gpgme): Do not close process handle here. Use this function also on Unix systems. gpgme/ 2007-09-27 Marcus Brinkmann <[email protected]> * w32-glib-io.c (_gpgme_io_spawn), w32-qt-io.cpp (_gpgme_io_spawn), w32-io.c (_gpgme_io_spawn): Close the process handle, return 0. tests/ 2007-09-27 Marcus Brinkmann <[email protected]> * t-engine-info.c (check_engine_info): Fix debug output. * gpg/Makefile.am (tests_unix): New variable. (TESTS): Use it. * gpg/t-support.h (passphrase_cb) [HAVE_W32_SYSTEM]: Use WriteFile instead of write. * gpg/t-wait.c [HAVE_W32_SYSTEM]: Define sleep as _sleep.
* 2007-09-14 Marcus Brinkmann <[email protected]>Marcus Brinkmann2007-09-132-0/+6
| | | | | * gpgsm/t-verify.c (main): Release TEXT and SIG.
* 2007-07-12 Marcus Brinkmann <[email protected]>Marcus Brinkmann2007-07-122-1/+5
| | | | | * gpgsm/Makefile.am (key_id): Change := into =.
* Changes for W32Werner Koch2007-07-122-0/+7
|
* Detect and bailo out on double plaintext messages.Werner Koch2007-02-262-0/+36
|
* 2006-12-02 Marcus Brinkmann <[email protected]>Marcus Brinkmann2006-12-022-0/+14
| | | | | | * gpgsm/t-keylist.c (main): Skip unknown keys. Newer versions of GPGSM import more keys than older ones.
* Basic PKA support.Werner Koch2005-12-201-0/+7
|
* * Fixed a bug in that the fingerprints of subkeys are not available.Werner Koch2005-12-064-9/+15
| | | | | | | * Clarified usage of the SECRET flag in key listings. It is now reset for stub keys.
* Add a test for expired subkeysWerner Koch2005-10-194-884/+924
|