Commit Graph

1483 Commits

Author SHA1 Message Date
Marcus Brinkmann
6405d54bad assuan/
2008-10-30  Marcus Brinkmann  <marcus@g10code.de>

	* assuan-pipe-connect.c: Fix prototype for _gpgme_io_spawn.  Cast
	second argument in its invocation to silence gcc warning.

gpgme/
2008-10-30  Marcus Brinkmann  <marcus@g10code.de>

	* wait-private.c (_gpgme_wait_on_condition): Remove unused
	variable IDX.
	* wait-global.c: Include ops.h to silence gcc warning.
	(_gpgme_wait_global_event_cb): Pass error value directly.
	* wait-user.c: Include ops.h to silence gcc warning.

	* posix-io.c (_gpgme_io_spawn): Make ARGV argument const to
	silence gcc warning.  Cast argument to execv to silence warning.
	* w32-io.c (_gpgme_io_spawn): Likewise.
	* priv-io.h (_gpgme_io_spawn): Likewise for prototype.
2008-10-30 15:08:44 +00:00
Werner Koch
9c7489e8d1 use validated mode. 2008-10-30 14:41:23 +00:00
Werner Koch
66c64cfa05 new debug helper program 2008-10-30 13:23:42 +00:00
Werner Koch
6ce90fccd9 Fix last change. 2008-10-24 14:07:14 +00:00
Marcus Brinkmann
69b1a65fb8 2008-10-23 Marcus Brinkmann <marcus@g10code.de>
* rungpg.c (gpg_keylist_preprocess): Convert percent escaped
	string to C coded string.
2008-10-23 10:51:31 +00:00
Werner Koch
eae8d3830c Fix bug #818.
Use gpgme.h.in instead of in-place editing gpgme.h.
2008-10-20 15:59:19 +00:00
Marcus Brinkmann
4dd5ee9106 2008-10-18 Marcus Brinkmann <marcus@g10code.com>
* w32-util.c (find_program_in_registry): Don't define.
	(_gpgme_get_gpg_path, _gpgme_get_gpgsm_path)
	(_gpgme_get_gpgconf_path): Do not check for fooProgram in the
	registry anymore.  It is now no longer possible to overwrite the
	default location in that way.
2008-10-17 23:10:26 +00:00
Marcus Brinkmann
759d969528 Post-release changes. 2008-10-17 21:03:00 +00:00
Marcus Brinkmann
166a5593ad 2008-10-17 Marcus Brinkmann <marcus@g10code.com>
Release GPGME 1.1.7.

	* configure.ac (LIBGPGME_LT_REVISION): Bump for release.
2008-10-17 18:57:49 +00:00
Werner Koch
693e515832 Fix for mingw32 bug. 2008-10-17 11:15:48 +00:00
Marcus Brinkmann
4ae2ac9861 2008-09-23 Marcus Brinkmann <marcus@g10code.com>
* gpgme.c (gpgme_sig_notation_clear): Clear CTX->sig_notations.
	Submitted by "Daniel Mueller" <daniel@danm.de>
2008-09-23 10:52:09 +00:00
Moritz Schulte
a8be6e0da3 2008-09-19 Moritz <moritz@gnu.org>
* configure.ac: Remove bogus "esac".
2008-09-19 14:15:51 +00:00
Marcus Brinkmann
cf5100d27c 2008-09-16 Marcus Brinkmann <marcus@g10code.com>
* configure.ac (_XOPEN_SOURCE) [apple-darwin]: Define it.
2008-09-16 15:30:44 +00:00
Marcus Brinkmann
f300cd09b4 2008-09-16 Marcus Brinkmann <marcus@g10code.com>
* rungpg.c (gpg_new): Don't use errno with ttyname_r.
2008-09-16 15:23:23 +00:00
Marcus Brinkmann
26c0edc270 2008-08-11 Marcus Brinkmann <marcus@g10code.com>
* rungpg.c (gpg_cancel): Remove cmd fd before status fd.
        * gpgme.c (_gpgme_cancel_with_err): New function.
        (gpgme_cancel): Reimplement in terms of _gpgme_cancel_with_err.
        * wait-private.c (_gpgme_wait_on_condition): Use
        _gpgme_cancel_with_err.
        * wait-user.c (_gpgme_user_io_cb_handler): Likewise.
        * wait-global.c (_gpgme_wait_global_event_cb, gpgme_wait): Likewise.
2008-08-11 17:23:45 +00:00
Marcus Brinkmann
569829b6fd 2008-08-08 Marcus Brinkmann <marcus@g10code.com>
* rungpg.c (command_handler): Remove I/O callback on error, too.
2008-08-08 17:53:22 +00:00
Werner Koch
9c6bf32eea Add a module overview diagram. 2008-07-17 17:09:39 +00:00
Werner Koch
a60cbde709 Update automake scripts.
Minor doc changes.
2008-07-04 15:46:01 +00:00
Marcus Brinkmann
8bf7f5bd0c 2008-06-29 Marcus Brinkmann <marcus@ulysses.g10code.com>
* gpgme.c (gpgme_cancel_async): Remove unused variable.
2008-06-29 18:41:19 +00:00
Marcus Brinkmann
01baa339f9 2008-06-27 Marcus Brinkmann <marcus@g10code.de>
* libgpgme.vers: Add gpgme_cancel_async.
	* gpgme.def: Likewise.
2008-06-27 16:14:57 +00:00
Marcus Brinkmann
67ae7de4c5 Add gpgme_cancel_async 2008-06-27 16:08:35 +00:00
Marcus Brinkmann
695ec56ffb 2008-06-27 Marcus Brinkmann <marcus@g10code.de>
* gpgme.texi (Cancellation): Document gpgme_cancel_async.

gpgme/
2008-06-27  Marcus Brinkmann  <marcus@g10code.de>

	* context.h: Include "sema.h".
	(struct gpgme_context): New members lock and canceled.
	* gpgme.c (gpgme_new): Initialize lock.
	(gpgme_release): Destroy lock.
	(gpgme_cancel_async): New function.
	* op-support.c (_gpgme_op_reset): Reset the canceled flag.
	* wait-global.c (gpgme_wait): Check cancel flag before processing
	any I/O callbacks.
	* wait-private.c (_gpgme_wait_on_condition): Likewise.
	* wait-user.c (_gpgme_user_io_cb_handler): Likewise.
2008-06-27 16:07:33 +00:00
Werner Koch
eccdb17c30 Fix incompatibility with non-recent mingw runtimes. 2008-06-26 14:38:39 +00:00
Marcus Brinkmann
0560f3089b assuan/
2008-06-25  Marcus Brinkmann  <marcus@g10code.de>

	* assuan-pipe-connect.c (struct spawn_fd_item_s): Add new members.
	(HANDLE_TRANSLATION): New macro.
	(pipe_connect_gpgme): Adjust caller of _gpgme_io_spawn.
	[HANDLE_TRANSLATION]: Return translated handles.

gpgme/
2008-06-25  Marcus Brinkmann  <marcus@g10code.de>

	* gpgme-w32spawn.c: New file.
	* Makefile.am (libexec_PROGRAMS) [HAVE_W32_SYSTEM]: New variable
	with gpgme-w32spawn.
	* engine-gpgsm.c (gpgsm_new): Use server translated handles.
	(gpgsm_set_locale): Return early if locale value is NULL.
	* util.h (_gpgme_mkstemp)
	(_gpgme_get_w32spawn_path) [HAVE_W32_SYSTEM]: New function
	prototypes.
	* w32-util.c: Include <stdint.h>, <sys/stat.h> and <unistd.h>.
	(letters, mkstemp, _gpgme_mkstemp, _gpgme_get_w32spawn_path): New
	functions.
	* rungpg.c (gpg_decrypt, gpg_encrypt, gpg_encrypt_sign)
	(gpg_genkey, gpg_import, gpg_verify, gpg_sign): Pass data over
	special filename FD rather than stdin.
	(struct arg_and_data_s): Add member ARG_LOCP.
	(struct fd_data_map_s): Add member ARG_LOC.
	(struct engine_gpg): Add member ARG_LOC to status and colon.
	(_add_arg, add_arg_with_locp): New function.
	(add_arg_ext): Reimplement in terms of _add_arg.
	(gpg_new): Remember argument location for status FD.
	(build_argv): Set argument location if requested.  Also set
	argument location of fd_data_map for data items.
	(start): Adjust caller of _gpgme_io_spawn.
	* priv-io.h (struct spawn_fd_item_s): Add members peer_name and
	arg_loc.
	(_gpgme_io_spawn): Remove parent fd list argument.
	* posix-io.c (get_max_fds): New function.
	(_gpgme_io_dup): Add tracing.
	(_gpgme_io_spawn): Remove parent fd list.  Change meaning of child
	fd list to contain all child fds that should be inherited.  Close
	all other file descriptors after fork.
	* w32-io.c, w32-glib-io.c, w32-qt-io.c(_gpgme_io_spawn): Remove
	parent fd list.  Change meaning of child fd list to contain all
	child fds that should be inherited.  Do not inherit any file
	descriptors, but DuplicateHandle them.  Spawn process through
	wrapper process.  Provide wrapper process with a temporary file
	containing handle translation data.  Return translated handle
	names.
	* w32-io.c (reader): Add more tracing output.
	(_gpgme_io_read): Likewise.
	* engine-gpgconf.c (gpgconf_read): Adjust caller of
	_gpgme_io_spawn.
	* version.c (_gpgme_get_program_version): Likewise.
2008-06-25 16:52:31 +00:00
Werner Koch
d0fe86179c Updated example. 2008-06-25 01:44:50 +00:00
Werner Koch
b0a5687a16 Updated the example. 2008-06-20 10:40:52 +00:00
Werner Koch
5a19f6d421 Fix parsing of long lines. 2008-06-20 09:53:54 +00:00
Werner Koch
63ea0d6663 Add example.
Update gpgconf test.
2008-06-19 18:38:28 +00:00
Werner Koch
9e4169fcec Add new types to the gpgconf interface.
Fix a parsing bug in gpgconf interface.
2008-06-19 17:37:31 +00:00
Werner Koch
1358096083 Add missing file. 2008-06-05 10:56:40 +00:00
Werner Koch
f54ea0e32c Include the GnuPG UI Server specification.
Change the license of the manual to GPLv3+.
2008-06-04 14:14:38 +00:00
Werner Koch
bae4861914 Fixed a gpgconf problem under Windows. 2008-05-09 08:26:28 +00:00
Werner Koch
b72c001283 Support --locate-keys feature of gpg. 2008-05-07 15:41:14 +00:00
Werner Koch
14d099181c Allow for engine version lines with a suffix. 2008-05-06 08:13:39 +00:00
Werner Koch
914ace7a37 Fixed a bug reading from gpgconf. 2008-04-28 18:42:56 +00:00
Marcus Brinkmann
a69c74e4ef 2008-04-22 Marcus Brinkmann <marcus@g10code.de>
* w32-qt-io.cpp, kdpipeiodevice.cpp: New versions from Frank
	Osterfeld, implement blocking select.
2008-04-22 11:20:50 +00:00
Marcus Brinkmann
3dcae464f4 doc/
2008-03-11  Marcus Brinkmann  <marcus@g10code.de>

	* gpgme.texi (File Based Data Buffers): Document the need for
	blocking operations.
	(Callback Based Data Buffers): Likewise.

gpgme/
2008-03-11  Marcus Brinkmann  <marcus@g10code.de>

	* data.c (gpgme_data_read, gpgme_data_write): Retry on EINTR.
2008-03-11 16:05:40 +00:00
Marcus Brinkmann
27fccc3f01 2008-03-06 Marcus Brinkmann <marcus@g10code.de>
* key.c (_gpgme_key_add_sig): Terminate UID in case SRC is NULL.
	Reported by Marc Mutz.
2008-03-06 14:54:11 +00:00
Marcus Brinkmann
95a12bd084 2008-03-05 Marcus Brinkmann <marcus@g10code.de>
* decrypt.c (release_op_data): Release OPD->result.recipients.
	* encrypt.c (release_op_data): Release invalid_recipient.
2008-03-05 19:58:41 +00:00
Marcus Brinkmann
639df34f65 2008-03-05 Marcus Brinkmann <marcus@g10code.de>
* gpgme.texi (Library Version Check): Rename snippet function to
	init_gpgme.
	(I/O Callback Example): Call it here.
2008-03-05 12:00:57 +00:00
Marcus Brinkmann
8b83471079 2008-02-15 Marcus Brinkmann <marcus@g10code.de>
* engine-gpgconf.c (gpgconf_read): Fix end-of-line handline.
2008-02-15 23:07:29 +00:00
Marcus Brinkmann
ca17a12d3a Add item. 2008-02-15 23:02:26 +00:00
Werner Koch
3756fd0f06 Chnages to supporta pinnetry notification 2008-02-14 19:51:21 +00:00
Marcus Brinkmann
2ac285d691 2008-01-30 14:17:26 +00:00
Marcus Brinkmann
2cf46b3ca9 2008-01-30 Marcus Brinkmann <marcus@g10code.de>
* kdpipeiodevice.cpp: New version by Frank Osterfeld, fixes race
	condition.
2008-01-30 13:24:21 +00:00
Marcus Brinkmann
2b5033018f 2008-01-28 Marcus Brinkmann <marcus@g10code.de>
* gpg/Makefile.am (DISTCLEANFILES): Add pubring.kbx~.
2008-01-28 19:49:40 +00:00
Marcus Brinkmann
ef430d7828 2008-01-28 Marcus Brinkmann <marcus@g10code.de>
* gpgme.texi: Document that data encoding affects some output data
	objects now.
2008-01-28 19:41:26 +00:00
Marcus Brinkmann
cd096c8316 2008-01-28 Marcus Brinkmann <marcus@g10code.de>
* engine-gpgsm.c (map_input_enc): Rename to ...
	(map_data_enc): ... this.  Also change all callers.
	(gpgsm_encrypt, gpgsm_export, gpgsm_export_ext, gpgsm_genkey)
	(gpgsm_sign): Set encoding for output.
2008-01-28 19:25:35 +00:00
Werner Koch
f9f9a70ec7 Fixed bug 876 2008-01-28 18:46:08 +00:00
Marcus Brinkmann
bc617afe5f 2008-01-14 Marcus Brinkmann <marcus@g10code.de>
* engine-gpgconf.c (gpgconf_config_load_cb): Fix program_name
	field.
2008-01-14 17:34:21 +00:00