aboutsummaryrefslogtreecommitdiffstats
path: root/tests/gpg (follow)
Commit message (Collapse)AuthorAgeFilesLines
* doc/Marcus Brinkmann2002-11-191-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | 2002-11-19 Marcus Brinkmann <[email protected]> * gpgme.texi (Generating Keys): Document new argument to gpgme_op_genkey. gpgme/ 2002-11-19 Marcus Brinkmann <[email protected]> * genkey.c: Only include <config.h> if [HAVE_CONFIG_H]. (struct genkey_result_s): Add new member FPR. (_gpgme_release_genkey_result): Free RESULT->fpr if set. (genkey_status_handler): Extract the fingerprint from the status line. (gpgme_op_genkey): Add new argument FPR and return the fingerprint in it. * gpgme.h: Adjust prototype of gpgme_op_genkey. tests/ 2002-11-19 Marcus Brinkmann <[email protected]> * gpg/t-genkey.c (main): Add missing argument to gpgme_op_genkey invocation. CVSk: ----------------------------------------------------------------------
* gpgme/Marcus Brinkmann2002-10-0912-152/+172
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2002-10-08 Marcus Brinkmann <[email protected]> New data object component: * gpgme.h (GpgmeDataReadCb, GpgmeDataWriteCb, GpgmeDataSeekCb, GpgmeDataReleaseCb): New types. (struct GpgmeDataCbs): New structure. (gpgme_data_read): Changed prototype to match that of read() closely. (gpgme_data_write): Similar for write(). (gpgme_data_seek, gpgme_data_new_from_cbs, gpgme_data_new_from_fd, gpgme_data_new_from_stream): New prototypes. (gpgme_data_get_type, gpgme_check_engine): Prototype removed. * Makefile.am (libgpgme_la_SOURCES): Add data.h, data-fd.c, data-stream.c, data-mem.c, data-user.c and data-compat.c. * data.c: Reimplemented from scratch. * (data-compat.c, data-fd.c, data.h, data-mem.c, data-stream.c, data-user.c): New file. * context.h (struct gpgme_data_s): Removed. * conversion.c: Include <errno.h> and <sys/types.h>. (_gpgme_data_append): New function. * data.c (_gpgme_data_append_string): Move to ... * conversion.c (_gpgme_data_append_string): ... here. * data.c (_gpgme_data_append_for_xml): Move to ... * conversion.c (_gpgme_data_append_for_xml): ... here. * data.c (_gpgme_data_append_string_for_xml): Move to ... * conversion.c (_gpgme_data_append_string_for_xml): ... here. * data.c (_gpgme_data_append_percentstring_for_xml): Move to ... * conversion.c (_gpgme_data_append_percentstring_for_xml): ... here. * ops.h (_gpgme_data_get_mode, _gpgme_data_set_mode): Prototype removed. * types.h (GpgmeDataMode): Type removed. * decrypt.c (_gpgme_decrypt_start): Don't check data type or mode. * edit.c (_gpgme_op_edit_start): Likewise. * encrypt.c (_gpgme_op_encrypt_start): Likewise. * encrypt-sign.c (_gpgme_op_encrypt_sign_start): Likewise. * encrypt-sign.c (_gpgme_op_encrypt_sign_start): Likewise. * export.c (_gpgme_op_export_start): Likewise. * genkey.c (_gpgme_op_genkey_start): Likewise. * import.c (_gpgme_op_import_start): Likewise. * sign.c (_gpgme_op_sign_start): Likewise. * verify.c (_gpgme_op_verify_start): Likewise. * encrypt.c (gpgme_op_encrypt): Remove hack that returns invalid no recipient if no data was returned. * encrypt-sign.c (gpgme_op_encrypt_sign): Remove hack that returns no recipient if no data was returned. * encrypt-sign.c (gpgme_op_encrypt_sign): Remove hack that returns no recipient if no data was returned. * engine.c (_gpgme_engine_op_verify): Add new argument to differentiate detached from normal signatures. * engine.h (_gpgme_engine_op_verify): Likewise for prototype. * engine-gpgsm.c (_gpgme_gpgsm_op_verify): Likewise. Don't check mode of data argument. * engine-gpgsm.h (_gpgme_gpgsm_op_verify): Likewise for prototype. * gpgme.h (gpgme_op_verify_start): Likewise for prototype. (gpgme_op_verify): Likewise for prototype. * rungpg.c (_gpgme_gpg_op_verify): Likewise. * rungpg.h (_gpgme_gpg_op_verify): Likewise for prototype. * verify.c (_gpgme_op_verify_start): Likewise. (gpgme_op_verify_start): Likewise. (gpgme_op_verify): Likewise. * rungpg.c (struct arg_and_data_s): New member INBOUND to hold direction of data object. (_gpgme_gpg_add_data): Add new argument INBOUND. Use it to determine direction of data object. (_gpgme_gpg_add_pm_data, _gpgme_gpg_set_command_handler, _gpgme_gpg_op_decrypt, _gpgme_gpg_op_edit, _gpgme_gpg_op_encrypt, _gpgme_gpg_op_encrypt_sign, _gpgme_gpg_op_export, _gpgme_gpg_op_genkey, _gpgme_gpg_op_import, _gpgme_gpg_op_sign, _gpgme_gpg_op_verify): Add new argument to _gpgme_gpg_add_data invocation. (build_argv): Use new member INBOUND to determine direction of file descriptor. Don't check the data type. * rungpg.h (_gpgme_gpg_add_data): Add new argument to prototype. * gpgme.c (gpgme_get_op_info): Don't call _gpgme_data_get_as_string if CTX->op_info is NULL. * version.c (gpgme_check_engine): Function removed. tests/ 2002-10-09 Marcus Brinkmann <[email protected]> * gpg/t-decrypt.c (print_data): Update to new gpgme_data_read interface, and use gpgme_engine_check_version instead gpgme_check_version. * gpg/t-decrypt-verify.c (print_data): Likewise. * gpg/t-edit.c (main): Likewise. * gpg/t-encrypt.c (print_data): Likewise. * gpg/t-encrypt-sign.c (print_data): Likewise. * gpg/t-encrypt-sym.c (print_data): Likewise. * gpg/t-eventloop.c (print_data): Likewise. * gpg/t-export.c (print_data): Likewise. * gpg/t-sign.c (print_data): Likewise. * gpg/t-signers.c (print_data): Likewise. * gpgsm/t-decrypt.c (print_data): Likewise. * gpgsm/t-encrypt.c (print_data): Likewise. * gpgsm/t-export.c (print_data): Likewise. * gpgsm/t-sign.c (print_data): Likewise. * gpg/t-verify.c (main): Likewise for gpgme_op_verify. * gpgsm/t-verify.c (main): Likewise for gpgme_op_verify. * t-data.c (read_once_test): Likewise. (write_test): Update for new behaviour of data objects. (main): Remove type test.
* 2002-09-02 Marcus Brinkmann <[email protected]>Marcus Brinkmann2002-09-021-93/+105
| | | | | | * gpg/t-keylist.c (main): Test PATTERN for NULL before printing. Reported by Dr. Stefan Dalibor <[email protected]>.
* 2002-08-01 Marcus Brinkmann <[email protected]>Marcus Brinkmann2002-08-011-15/+31
| | | | | | * gpg/t-edit.c: Also add a test for the expire command (testing the passphrase callback).
* 2002-07-28 Marcus Brinkmann <[email protected]>Marcus Brinkmann2002-07-282-1/+161
| | | | | | * gpg/t-edit.c: New file. * gpg/Makefile (TESTS): Add t-edit.
* 2002-07-25 Marcus Brinkmann <[email protected]>Marcus Brinkmann2002-07-252-6/+7
| | | | | | | | * gpg/t-encrypt-sym.c (main): Change type of I to size_t and rename to LEN. * gpg/t-verify.c (main): Likewise. Submitted by St�phane Corth�sy.
* 2002-07-03 Marcus Brinkmann <[email protected]>Marcus Brinkmann2002-07-032-1/+257
| | | | | | * gpg/t-eventloop.c: New file. * gpg/Makefile (TESTS): Add t-eventloop.
* * gpgsm/t-sign.c (main): Also test a normal signature.Werner Koch2002-06-207-11/+29
| | | | | | | | | * gpg/Makefile (TESTS_ENVIRONMENT): Set GPG_AGENT_INFO empty. * gpg/t-signers.c, gpg/t-sign.c, gpg/t-encrypt-sym.c * gpg/t-encrypt-sign.c, gpg/t-decrypt.c * gpg/t-decrypt-verify.c (main): Changed the GPG_AGENT_INFO check to match the one in ../../gpgme/rungpg.c.
* 2002-05-26 Marcus Brinkmann <[email protected]>Marcus Brinkmann2002-05-261-4/+2
| | | | | | | | | * gpg/Makefile.am (all-local): Remove dependency on ./secring.gpg. (./secring.gpg): Remove target, and move all rules for this target to ... (./pubring.gpg): ... here. This was necessary because GnuPG 1.0.7 does create an empty secring.gpg file when importing public keys.
* * gpg/t-verify.c (validity_string): New.Werner Koch2002-05-031-3/+32
| | | | | | (print_sig_stat): Print expire time and validity. (status_string): Add new exipred stati.
* removed all the .cvsignre files - they should be localWerner Koch2002-03-101-7/+0
|
* doc/Marcus Brinkmann2002-03-062-2/+138
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 2002-03-06 Marcus Brinkmann <[email protected]> * gpgme.texi (Encrypting a Plaintext): Document symmetric encryption. gpgme/ 2002-03-06 Marcus Brinkmann <[email protected]> * encrypt.c (_gpgme_encrypt_sym_status_handler): New function. (gpgme_op_encrypt_start): New variable SYMMETRIC, set it if RECP is null, and if it is set, use _gpgme_encrypt_sym_status_handler as status handler and run _gpgme_passphrase_start. * rungpg.c (_gpgme_gpg_op_encrypt): If RECP is zero, do symmetric encryption. * engine-gpgsm.c (_gpgme_gpgsm_op_encrypt): If RECP is zero, return error value. * rungpg.c (_gpgme_gpg_op_verify): Add "--" argument. tests/ 2002-03-06 Marcus Brinkmann <[email protected]> * gpg/t-encrypt-sym.c: New file. * gpg/Makefile.am (TESTS): Add t-encrypt-sym.
* 2002-03-05 Marcus Brinkmann <[email protected]>Marcus Brinkmann2002-03-051-1/+1
| | | | | | * gpg/Makefile.am (CLEANFILES): Remove random_seed, which is now in DISTCLEANFILES.
* * gpg/Makefile.am (DISTCLEANFILES): Added.V0-3-4Werner Koch2002-03-041-0/+1
| | | | | | * configure.ac: Bumbed LT version numbers to (7,1,0), requires gpgsm 0.3.1.
* doc/Marcus Brinkmann2002-03-031-10/+50
| | | | | | | | | | | | | | | | | | | | | | | | | 2002-03-03 Marcus Brinkmann <[email protected]> * gpgme.texi (Verify): Document verification of normal and cleartext signatures. gpgme/ 2002-03-03 Marcus Brinkmann <[email protected]> * rungpg.c (_gpgme_gpg_op_verify): If TEXT is of mode GPGME_DATA_MODE_IN, construct a command line that stores the plaintext in TEXT. * verify.c (gpgme_op_verify_start): Accept TEXT being uninitialized, and in this case interpret SIG as a normal or cleartext signature and TEXT as a return data object. * engine-gpgsm.c (_gpgme_gpgsm_op_verify): Likewise. tests/ 2002-03-03 Marcus Brinkmann <[email protected]> * gpg/t-verify.c (main): Add a few more sanity checks, and a check for normal signatures.
* doc/Marcus Brinkmann2002-02-262-1/+140
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2002-02-26 Marcus Brinkmann <[email protected]> * gpgme.texi (Encrypting a Plaintext): Document gpgme_op_encrypt_sign and gpgme_op_encrypt_sign_start. gpgme/ 2002-02-25 Marcus Brinkmann <[email protected]> * engine.c (_gpgme_engine_op_encrypt_sign): New function. * engine.h (_gpgme_engine_op_encrypt_sign): New prototype. * rungpg.c (_gpgme_append_gpg_args_from_signers): New function. (_gpgme_gpg_op_sign): Use that new function. (_gpgme_gpg_op_encrypt_sign): New function. * rungpg.h (_gpgme_gpg_op_encrypt_sign): New prototype. * gpgme.h (gpgme_op_encrypt_sign_start): New prototype. (gpgme_op_encrypt_sign): Likewise. * Makefile.am (libgpgme_la_SOURCES): Add encrypt-sign.c. * ops.h (_gpgme_encrypt_status_handler): Add prototype. (_gpgme_sign_status_handler): Add prototype. * sign.c (sign_status_handler): Rename to ... (_gpgme_sign_status_handler): ... this and make non-static. * encrypt.c (encrypt_status_handler): Rename to ... (_gpgme_encrypt_status_handler): ... this and make non-static. * encrypt.c (gpgme_op_encrypt_start): Use new status handler name. * sign.c (gpgme_op_sign_start): Likewise. tests/ 2002-02-26 Marcus Brinkmann <[email protected]> * gpg/t-encrypt-sign.c: New file. * gpg/Makefile.am (TESTS): Add t-encrypt-sign.
* * gpgsm/Makefile.am (private-keys-v1.d): Don'tWerner Koch2002-02-131-1/+1
| | | | | fail when the directory already exists.
* 2002-02-12 Marcus Brinkmann <[email protected]>Marcus Brinkmann2002-02-121-1/+2
| | | | | | | | | | | | | | | * configure.ac (AC_INIT): Bump version to 0.3.3. * jnlib/Makefile.am: Rever to older version that includes xmalloc but not dotlock and some other files. Reported by St�phane Corth�sy. tests/ 2002-02-12 Marcus Brinkmann <[email protected]> * gpg/Makefile.am (CLEANFILES): New target. (distclean-local): Rename to ... (clean-local): ... this.
* doc/Marcus Brinkmann2002-01-301-0/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 2002-01-30 Marcus Brinkmann <[email protected]> * gpgme.texi (Importing Keys): Add reference to gpgme_get_op_info. gpgme/ 2002-01-30 Marcus Brinkmann <[email protected]> * import.c (struct import_result_s): New structure. (_gpgme_release_import_result): New function. (append_xml_impinfo): Likewise. (import_status_handler): Implement. * gpgme.c (_gpgme_release_result): Add call to _gpgme_release_import_result. * ops.h (_gpgme_release_impoer_result): Add prototype. * types.h (ImportResult): New type. * context.h (gpgme_context_s): Add ImportResult to member result. * encrypt.c (gpgme_op_encrypt): Code clean up. tests/ 2002-01-30 Marcus Brinkmann <[email protected]> * gpg/t-import.c (print_op_info): New function. (main): Use it.
* doc/Marcus Brinkmann2002-01-224-4/+4
| | | | | | | | | | | | | | | | | | | | | | 2002-01-22 Marcus Brinkmann <[email protected]> * gpgme.texi (Passphrase callback): Change GpgmePassphraseCb's R_HD type from void* to void**. gpgme/ 2002-01-22 Marcus Brinkmann <[email protected]> * gpgme.h (GpgmePassphraseCb): Change type of R_HD from void* to void**. tests/ 2002-01-22 Marcus Brinkmann <[email protected]> * gpg/t-signers.c (passphrase_cb): Change type of r_hd to void**. * gpg/t-sign.c (passphrase_cb): Likewise. * gpg/t-decrypt-verify.c (passphrase_cb): Likewise. * gpg/t-decrypt.c (passphrase_cb): Likewise.
* gpgme/Marcus Brinkmann2001-12-191-1/+0
| | | | | | | | | | | | | | | 2001-12-19 Marcus Brinkmann <[email protected]> * engine.c: Include `string.h'. Reported by St�phane Corth�sy. * version.c (get_engine_info): Remove prototype. tests/ 2001-12-19 Marcus Brinkmann <[email protected]> * gpg/t-decrypt-verify.c: Don't include `mcheck.h'. Reported by St�phane Corth�sy.
* Revert cruft from last check in.Marcus Brinkmann2001-12-191-13/+1
|
* updated .cvsignore filesWerner Koch2001-12-191-1/+13
|
* 2001-12-19 Marcus Brinkmann <[email protected]>Marcus Brinkmann2001-12-191-1/+1
| | | | | * gpg/Makefile.am (EXTRA_DIST): Add missing line continuation.
* 2001-12-14 Marcus Brinkmann <[email protected]>Marcus Brinkmann2001-12-141-9/+3
| | | | | | | | | | | | | | | | | | | | * configure.ac (GPG): Substitute this variable. (GPGSM): Likewise. tests/ CVS2001-12-14 Marcus Brinkmann <[email protected]> * gpg/Makefile.am (GPG): Set to @GPG_PATH@. (./pubring.gpg): Use $(GPG) instead gpg. (./secring.gpg): Likewise. * gpgsm/t-import.c (main): Remove third test case. * gpgsm/Makefile.am (GPGSM): Set to @GPGSM@. (all-local): New target. (./pubcerts.kbx): Likewise. * gpgsm/t-encrypt.c: New file. * gpgsm/Makefile.am (TESTS): Add t-encrypt.
* Revert last change.Marcus Brinkmann2001-12-141-6/+1
|
* Set protocol to CMS to test gpgsmWerner Koch2001-12-131-1/+3
|
* Add .cvsignore files. Suggested by Jan-Oliver Wagner <[email protected]>.Marcus Brinkmann2001-12-051-0/+7
|
* 2001-11-22 Marcus Brinkmann <[email protected]>Marcus Brinkmann2001-11-2220-0/+2923
* gpg/: New directory. * Makefile.am, t-verify.c, t-encrypt.c, t-signers.c, t-trustlist.c, t-sign.c, t-keylist.c, t-import.c, t-genkey.c, t-export.c, t-decrypt-verify.c, t-decrypt.c, t-version.c, t-data.c, mkdemodirs. cipher-1.asc, cipher-2.asc, geheim.txt, pubdemo.asc, pubkey-1.asc, secdemo.asc, seckey-1.asc): Move to sub directory gpg/. * gpg/Makefile.am (INCLUDES): Include gpgme/, not include/ and intl/. (LDD): Correct relative path to gpgme library. (TESTS): Remove t-version and t-data. * gpg/t-verify.c, gpg/t-encrypt.c, gpg/t-signers.c, gpg/t-trustlist.c, gpg/t-sign.c, gpg/t-keylist.c, gpg/t-import.c, gpg/t-genkey.c, gpg/t-export.c, gpg/t-decrypt-verify.c, gpg/t-decrypt.c, t-version.c, t-data.c): Include gpgme.h, not "../gpgme/gpgme.h". * Makefile.am: New file. * gpgsm/: New directory. * gpgsm/Makefile.am: New file.