Marcus Brinkmann
867ecae83f
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
3eafa7ca56
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
6cf36cb2fd
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
05b01a9818
Add a module overview diagram.
2008-07-17 17:09:39 +00:00
Werner Koch
0bccd0a3ba
Update automake scripts.
...
Minor doc changes.
2008-07-04 15:46:01 +00:00
Marcus Brinkmann
7a0d753ee7
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
331f6d2d75
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
bff63b5bb0
Add gpgme_cancel_async
2008-06-27 16:08:35 +00:00
Marcus Brinkmann
0b6c67debf
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
38782bb4a3
Fix incompatibility with non-recent mingw runtimes.
2008-06-26 14:38:39 +00:00
Marcus Brinkmann
e955933edf
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
c7e3d3a7c0
Updated example.
2008-06-25 01:44:50 +00:00
Werner Koch
c591ed2ec2
Updated the example.
2008-06-20 10:40:52 +00:00
Werner Koch
4fbd8dc73e
Fix parsing of long lines.
2008-06-20 09:53:54 +00:00
Werner Koch
67d8ff76de
Add example.
...
Update gpgconf test.
2008-06-19 18:38:28 +00:00
Werner Koch
481bcd9be5
Add new types to the gpgconf interface.
...
Fix a parsing bug in gpgconf interface.
2008-06-19 17:37:31 +00:00
Werner Koch
cf6c985081
Add missing file.
2008-06-05 10:56:40 +00:00
Werner Koch
b13f43201c
Include the GnuPG UI Server specification.
...
Change the license of the manual to GPLv3+.
2008-06-04 14:14:38 +00:00
Werner Koch
adeea8bf2f
Fixed a gpgconf problem under Windows.
2008-05-09 08:26:28 +00:00
Werner Koch
eeacf97306
Support --locate-keys feature of gpg.
2008-05-07 15:41:14 +00:00
Werner Koch
18ae693e03
Allow for engine version lines with a suffix.
2008-05-06 08:13:39 +00:00
Werner Koch
bbd21d3a1a
Fixed a bug reading from gpgconf.
2008-04-28 18:42:56 +00:00
Marcus Brinkmann
c7b175fc0c
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
a500974bb2
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
94901b6cfe
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
eedb685d6a
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
1ec4298674
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
9298440c7a
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
d8a9a71f4a
Add item.
2008-02-15 23:02:26 +00:00
Werner Koch
7643d22d7a
Chnages to supporta pinnetry notification
2008-02-14 19:51:21 +00:00
Marcus Brinkmann
b05043cdc7
2008-01-30 14:17:26 +00:00
Marcus Brinkmann
16cf58a0a5
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
da97e82bed
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
3617538db7
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
a04cf1bb58
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
a68fc6ec13
Fixed bug 876
2008-01-28 18:46:08 +00:00
Marcus Brinkmann
11666fe3f8
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
Marcus Brinkmann
03c9f8cb38
2008-01-10 Marcus Brinkmann <marcus@g10code.de>
...
* kdpipeiodevice.cpp: New version from Frank Osterfeld.
2008-01-10 13:38:34 +00:00
Marcus Brinkmann
6bde9d73fc
2008-01-10 Marcus Brinkmann <marcus@g10code.de>
...
* gpg/t-gpgconf.c (main): Allow for dirmngr not to be available.
2008-01-10 04:54:16 +00:00
Marcus Brinkmann
45ceff1baf
2008-01-10 Marcus Brinkmann <marcus@g10code.de>
...
* gpg/Makefile.am (./gpg-agent.conf): Correct pinentry path.
2008-01-10 04:40:25 +00:00
Marcus Brinkmann
d0f7436ecd
2008-01-10 Marcus Brinkmann <marcus@g10code.de>
...
* 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 04:33:34 +00:00
Marcus Brinkmann
873f42079a
2008-01-10 Marcus Brinkmann <marcus@g10code.de>
...
* engine-gpgconf.c (gpgconf_config_load_cb2): Handle the flag
NO_ARG_DESC.
2008-01-10 02:31:15 +00:00
Marcus Brinkmann
03dfc28520
2008-01-10 Marcus Brinkmann <marcus@g10code.de>
...
* gpg/t-gpgconf.c (main): Exit early if compiled without gpgconf.
2008-01-10 02:13:18 +00:00
Marcus Brinkmann
4c68beed7c
2008-01-04 Marcus Brinkmann <marcus@g10code.de>
...
* assuan-pipe-connect.c (_gpgme_io_pipe)
(_gpgme_io_spawn) [_ASSUAN_IN_GPGME_BUILD_ASSUAN]: Add prototypes
2008-01-04 16:06:42 +00:00
Marcus Brinkmann
f70bb5a223
Post-release dance.
2008-01-04 15:10:49 +00:00
Marcus Brinkmann
9caba5891e
2008-01-04 Marcus Brinkmann <marcus@g10code.de>
...
* gpg/Makefile.am (CLEANFILES): Add pubring.kbx and dirmngr.conf.
2008-01-04 14:40:45 +00:00
Marcus Brinkmann
401fa914f8
Prepare for release.
2008-01-04 14:34:08 +00:00
Marcus Brinkmann
c9b91ace91
2008-01-04 Marcus Brinkmann <marcus@g10code.de>
...
* configure.ac: Support gpgconf.
gpgme/
2008-01-04 Marcus Brinkmann <marcus@g10code.de>
* 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 <marcus@g10code.de>
* 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.
2008-01-04 14:31:15 +00:00
Marcus Brinkmann
ac371d1cc0
2007-11-28 Marcus Brinkmann <marcus@g10code.de>
...
* w32-util.c (_gpgme_get_gpg_path, _gpgme_get_gpgsm_path): Search
for installation directory. Remove old fallback default.
(find_program_in_inst_dir): New function.
2007-11-28 16:31:05 +00:00
Werner Koch
64e13ead63
Made autolog feature for if --enable-fd-passing has not been enabled.
...
Pass HTML glag to test program.
2007-11-26 10:59:11 +00:00