aboutsummaryrefslogtreecommitdiffstats
path: root/src/ChangeLog (unfollow)
Commit message (Collapse)AuthorFilesLines
2009-08-06Fix detection of invalid signer keys.Werner Koch1-0/+13
Support the new INV_SGNR status code.
2009-07-07Inmplement import from keys for GPGSM.Werner Koch1-0/+7
Add option --cms to run-keylist test program.
2009-07-07* engine-gpgsm.c (gpgsm_import): Return an error for unknown dataWerner Koch1-0/+5
encodings.
2009-06-222009-06-22 Marcus Brinkmann <[email protected]>Marcus Brinkmann1-0/+17
* 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.
2009-06-182009-06-18 Marcus Brinkmann <[email protected]>Marcus Brinkmann1-0/+3
* gpgme.h.in (GPGME_CONF_PATHNAME): Revert last change, it's back! (GPA still uses it...).
2009-06-182009-06-18 Marcus Brinkmann <[email protected]>Marcus Brinkmann1-0/+3
* gpgme.def: Fix stupid typo. * w32-io.c (_gpgme_io_pipe): Add missing declaration.
2009-06-182009-06-18 Marcus Brinkmann <[email protected]>Marcus Brinkmann1-0/+9
* gpgme.h.in (GPGME_CONF_PATHNAME): Remove obsolete macro. * w32-io.c (_gpgme_io_pipe): Allocate reader/writer thread right away. (_gpgme_io_read, _gpgme_io_write, _gpgme_io_select) (_gpgme_io_dup): Never allocate threads here. (find_writer, find_reader): Check return value of thread creation function.
2009-06-182009-06-18 Marcus Brinkmann <[email protected]>Marcus Brinkmann1-0/+7
* context.h (CTX_OP_DATA_MAGIC): New macro. (struct ctx_op_data): New member MAGIC. * op-support.c (_gpgme_op_data_lookup): Initialize magic. * gpgme.c (gpgme_result_unref, gpgme_result_ref): Check magic.
2009-06-172009-06-16 Marcus Brinkmann <[email protected]>Marcus Brinkmann1-0/+2
* gpgme.c (gpgme_result_unref): Hot fix to release a lock.
2009-06-16Add support for gpg --fetch-keys.Werner Koch1-0/+8
2009-06-16doc/Marcus Brinkmann1-0/+5
2009-06-16 Marcus Brinkmann <[email protected]> * gpgme.texi (Result Management): New section. src/ 2009-06-16 Marcus Brinkmann <[email protected]> * gpgme.c (result_ref_lock): New global variable. (gpgme_result_ref, gpgme_result_unref): use it.
2009-06-16Add new functions to import and export keys specified by gpgme_key_t.Werner Koch1-0/+31
Allow exporting keys to a keyserver.
2009-06-152009-06-15 Marcus Brinkmann <[email protected]>Marcus Brinkmann1-0/+11
* gpgme.h.in (gpgme_result_ref, gpgme_result_unref): Add prototypes. * gpgme.def, libgpgme.vers (gpgme_result_ref, gpgme_result_unref): Add these. * context.h (struct ctx_op_data): Add member "references". * gpgme.c (gpgme_result_ref, gpgme_result_unref): New functions. (_gpgme_release_result): Use gpgme_result_unref. * op-support.c (_gpgme_op_data_lookup): Initialize references.
2009-06-12Improved W32 SetForegroundWindow hacks.Werner Koch1-0/+23
2009-06-09Fix possible assert in the card edit.Werner Koch1-0/+2
2009-06-09Add gpgme_io_write and gpgme_io_read.Werner Koch1-0/+7
Minor cleanups.
2009-06-09Do not distribute gpgme.h.Werner Koch1-0/+4
2009-06-09Define error code.Werner Koch1-0/+4
2009-05-28doc/Marcus Brinkmann1-0/+13
2009-05-28 Marcus Brinkmann <[email protected]> * gpgme.texi (Library Version Check): Document selftest error. (Creating Contexts): Likewise. src/ 2009-05-28 Marcus Brinkmann <[email protected]> * gpgme.h.in (gpgme_check_version_internal): New prototype. (gpgme_check_version): New macro, overriding function of the same name. * libgpgme.vers, gpgme.def: Add gpgme_check_version_internal.o * context.h (_gpgme_selftest): New variable declaration. * version.c: Include "context.h". (gpgme_check_version): Set _gpgme_selftest on success. (gpgme_check_version_internal): New function. * gpgme.c (_gpgme_selftest): Define it. (gpgme_new): Check the selftest result.
2009-05-18doc/Marcus Brinkmann1-0/+7
2009-05-18 Marcus Brinkmann <[email protected]> * gpgme.texi (Encrypting a Plaintext): Document GPGME_ENCRYPT_NO_ENCRYPT_TO. src/ 2009-05-18 Marcus Brinkmann <[email protected]> * gpgme.h.in (gpgme_encrypt_flags_t): Add GPGME_ENCRYPT_NO_ENCRYPT_TO. * engine-gpg.c (gpg_encrypt): Pass --no-encrypt-to to gpg if GPGME_ENCRYPT_NO_ENCRYPT_TO flag is set.
2009-05-14* gpgme.h.in (gpgme_status_code_t): Explicitly initialize forWerner Koch1-0/+5
better maintainability and to help debugging.
2009-05-052009-05-05 Marcus Brinkmann <[email protected]>Marcus Brinkmann1-0/+4
* configure.ac: Add infrastructure for compile time check of _FILE_OFFSET_BITS. src/ 2009-05-05 Marcus Brinkmann <[email protected]> * gpgme.h.in: Add compile time check for _FILE_OFFSET_BITS.
2009-04-152009-04-15 Marcus Brinkmann <[email protected]>Marcus Brinkmann1-0/+5
* posix-io.c (_gpgme_io_socket, _gpgme_io_connect): New functions. * w32-io.c (_gpgme_io_connect): Fix stupid error.
2009-04-08assuan/Marcus Brinkmann1-0/+19
2009-04-08 Marcus Brinkmann <[email protected]> * assuan.h (_gpgme_io_socket): New prototype. (_ASSUAN_CUSTOM_IO, _assuan_custom_close, _assuan_custom_read) (_assuan_custom_write, _assuan_custom_pipe, _assuan_custom_socket) (_assuan_custom_connect): New macros. * assuan-socket.c (_assuan_close, _assuan_sock_new) (_assuan_sock_connect) [_ASSUAN_CUSTOM_IO]: Use custom I/O function. * assuan-buffer.c (assuan_read_line): Do not handle EAGAIN anymore. * assuan-client.c (_assuan_read_from_server): Likewise. * assuan-handler.c (process_next): Likewise * assuan-inquire.c (assuan_inquire): Likewise. src/ 2009-04-08 Marcus Brinkmann <[email protected]> * w32-glib-io.c (giochannel_table): New members used, fd, socket. (find_channel): Drop CREATE argument. (new_dummy_channel_from_fd, new_channel_from_fd) (new_channel_from_socket): New functions. (_gpgm_io_fd2str): Implement for sockets. (_gpgme_io_write, _gpgme_io_read): Translate EAGAIN errors correctly. (_gpgme_io_pipe): Fix for new channel bookkeeping. (_gpgme_io_close, _gpgme_io_dup): Likewise. (wsa2errno, _gpgme_io_socket, _gpgme_io_connect): New. * w32-io.c (MAX_READERS, MAX_WRITERS): Bump up to 40. (wsa2errno, _gpgme_io_socket, _gpgme_io_connect): New. * w32-qt-io.cpp (_gpgme_io_socket, _gpgme_io_connect): New stubs. * version.c [HAVE_W32_SYSTEM]: Include "windows.h. (do_subsystem_inits) [HAVE_W32_SYSTEM]: Call WSAStartup. * engine-assuan.c (llass_status_handler): Ignore EAGAIN errors.
2009-03-18Add GPGME_KEYLIST_MODE_EPHEMERAL.Werner Koch1-0/+5
2009-03-13Fix locale problem, e.g. for et_ET.Werner Koch1-0/+4
2009-02-24Chnaged the op-assuan interface.Werner Koch1-0/+17
2009-02-04Fix spawn prototype for w32 glib and qt versions.Werner Koch1-0/+6
2009-02-04Provide inforation about smartcards.Werner Koch1-0/+8
2009-01-26First take on the low-level assuan interface.Werner Koch1-15/+48
2009-01-19Renamed rungpg.c to engine-gpg.c for conistency.Werner Koch1-1/+6
2008-12-032008-12-03 Marcus Brinkmann <[email protected]>Marcus Brinkmann1-0/+4
* Makefile.am (status-table.h): Use $(builddir) to find gpgme.h.
2008-11-18Fix SIGPIPE ignoring regression.Werner Koch1-3/+11
Fix unsupported algorithm detection.
2008-11-03008-11-03 Marcus Brinkmann <[email protected]>Marcus Brinkmann1-0/+0
* 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.
2008-10-30assuan/Marcus Brinkmann1-0/+13
2008-10-30 Marcus Brinkmann <[email protected]> * 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 <[email protected]> * 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-24Fix last change.Werner Koch1-0/+4
2008-10-232008-10-23 Marcus Brinkmann <[email protected]>Marcus Brinkmann1-0/+5
* rungpg.c (gpg_keylist_preprocess): Convert percent escaped string to C coded string.
2008-10-20Fix bug #818.Werner Koch1-0/+9
Use gpgme.h.in instead of in-place editing gpgme.h.
2008-10-172008-10-18 Marcus Brinkmann <[email protected]>Marcus Brinkmann1-0/+8
* 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-17Fix for mingw32 bug.Werner Koch1-0/+5
2008-09-232008-09-23 Marcus Brinkmann <[email protected]>Marcus Brinkmann1-0/+5
* gpgme.c (gpgme_sig_notation_clear): Clear CTX->sig_notations. Submitted by "Daniel Mueller" <[email protected]>
2008-09-162008-09-16 Marcus Brinkmann <[email protected]>Marcus Brinkmann1-1/+5
* rungpg.c (gpg_new): Don't use errno with ttyname_r.
2008-08-112008-08-11 Marcus Brinkmann <[email protected]>Marcus Brinkmann1-0/+10
* 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-082008-08-08 Marcus Brinkmann <[email protected]>Marcus Brinkmann1-0/+4
* rungpg.c (command_handler): Remove I/O callback on error, too.
2008-06-292008-06-29 Marcus Brinkmann <[email protected]>Marcus Brinkmann1-0/+4
* gpgme.c (gpgme_cancel_async): Remove unused variable.
2008-06-272008-06-27 Marcus Brinkmann <[email protected]>Marcus Brinkmann1-0/+3
* libgpgme.vers: Add gpgme_cancel_async. * gpgme.def: Likewise.
2008-06-272008-06-27 Marcus Brinkmann <[email protected]>Marcus Brinkmann1-0/+13
* gpgme.texi (Cancellation): Document gpgme_cancel_async. gpgme/ 2008-06-27 Marcus Brinkmann <[email protected]> * 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-26Fix incompatibility with non-recent mingw runtimes.Werner Koch1-0/+6
2008-06-25assuan/Marcus Brinkmann1-0/+46
2008-06-25 Marcus Brinkmann <[email protected]> * 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 <[email protected]> * 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-20Fix parsing of long lines.Werner Koch1-0/+6