aboutsummaryrefslogtreecommitdiffstats
path: root/src/gpgme.h.in (unfollow)
Commit message (Collapse)AuthorFilesLines
2009-06-222009-06-22 Marcus Brinkmann <[email protected]>Marcus Brinkmann1-2/+10
* 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-3/+0
* 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-16Add support for gpg --fetch-keys.Werner Koch1-1/+4
2009-06-16Add new functions to import and export keys specified by gpgme_key_t.Werner Koch1-4/+27
Allow exporting keys to a keyserver.
2009-06-152009-06-15 Marcus Brinkmann <[email protected]>Marcus Brinkmann1-0/+4
* 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-09Add gpgme_io_write and gpgme_io_read.Werner Koch1-0/+5
Minor cleanups.
2009-05-28doc/Marcus Brinkmann1-1/+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-1/+2
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-91/+91
better maintainability and to help debugging.
2009-05-052009-05-05 Marcus Brinkmann <[email protected]>Marcus Brinkmann1-0/+11
* 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-03-18Add GPGME_KEYLIST_MODE_EPHEMERAL.Werner Koch1-0/+1
2009-02-24Chnaged the op-assuan interface.Werner Koch1-8/+11
2009-02-04Provide inforation about smartcards.Werner Koch1-1/+7
2009-01-26First take on the low-level assuan interface.Werner Koch1-1/+49
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-20Fix bug #818.Werner Koch1-5/+5
Use gpgme.h.in instead of in-place editing gpgme.h.
2008-08-112008-08-11 Marcus Brinkmann <[email protected]>Marcus Brinkmann1-1/+1
* 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-07-04Update automake scripts.Werner Koch1-1/+1
Minor doc changes.
2008-06-272008-06-27 Marcus Brinkmann <[email protected]>Marcus Brinkmann1-0/+3
* 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-25assuan/Marcus Brinkmann1-1/+1
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-19Add new types to the gpgconf interface.Werner Koch1-5/+12
Fix a parsing bug in gpgconf interface.
2008-06-04Include the GnuPG UI Server specification.Werner Koch1-1/+1
Change the license of the manual to GPLv3+.
2008-05-09Fixed a gpgconf problem under Windows.Werner Koch1-1/+1
2008-05-07Support --locate-keys feature of gpg.Werner Koch1-1/+1
2008-04-28Fixed a bug reading from gpgconf.Werner Koch1-1/+1
2008-02-14Chnages to supporta pinnetry notificationWerner Koch1-1/+1
2008-01-30(no commit message)Marcus Brinkmann1-1/+1
2008-01-28Fixed bug 876Werner Koch1-1/+1
2008-01-042008-01-04 Marcus Brinkmann <[email protected]>Marcus Brinkmann1-1/+159
* 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.
2007-11-22New API gpgme_op_getauditlog.Werner Koch1-0/+15
2007-11-20Suuport INV_RECP reason code 11.Werner Koch1-3/+2
Changed address paragraph in top comment.
2007-09-28Fixed the external event loop for glib.Werner Koch1-1/+1
Add a bit more tracing.
2007-09-272007-09-27 Marcus Brinkmann <[email protected]>Marcus Brinkmann1-1/+1
* 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-27doc/Marcus Brinkmann1-1/+2
2007-09-27 Marcus Brinkmann <[email protected]> * gpgme.texi (Protocols and Engines): Document GPGME_PROTOCOL_UNKNOWN. gpgme/ 2007-09-27 Marcus Brinkmann <[email protected]> * gpgme.h (gpgme_protocol_t): Add GPGME_PROTOCOL_UNKNOWN. * gpgme.c (gpgme_get_protocol_name): Implement support for GPGME_PROTOCOL_UNKNOWN.
2007-09-25Fixed a name clash under W32Werner Koch1-1/+1
2007-09-17Bumbed version number (still svn, though)Werner Koch1-1/+1
2007-09-17Fixed a W32bug in rungpg.cWerner Koch1-1/+1
2007-09-072007-09-07 Marcus Brinkmann <[email protected]>Marcus Brinkmann1-1/+1
* Makefile.am (libgpgme_qt_la_SOURCES): Move moc_kdpipeiodevice.cpp to EXTRA_DIST, as this is only included by another file (it's more like a header file than a cpp file, but automake doesn't know that).
2007-09-072007-09-07 Marcus Brinkmann <[email protected]>Marcus Brinkmann1-1/+1
* configure.ac: Work around for missing Qt cross compilation support. Check for glib and qt only on w32 targets. gpgme/ 2007-09-07 Marcus Brinkmann <[email protected]> * w32-qt-io.cpp (_gpgme_io_spawn): Fix several cast errors and typos. * w32-io.c (_gpgme_io_write): Use TRACE_SYSRES instead of TRACE_SYS. (libgpgme_qt_la_LIBADD): Add QT4_CORE_LIBS, not QT4_CORE_LIB.
2007-08-202007-08-20 Marcus Brinkmann <[email protected]>Marcus Brinkmann1-1/+2
* gpgme.h: Move include of gpg-error.h out of extern "C".
2007-08-07Add new signature_t member chain_model.Werner Koch1-2/+5
2007-08-02Improved debug support: Assuan logging is now directed to the gpgme debugWerner Koch1-2/+2
stream. Create processes detached.
2007-07-12Changes for W32Werner Koch1-1/+1
2007-07-042007-07-04 Marcus Brinkmann <[email protected]>Marcus Brinkmann1-1/+1
* assuan/Makefile.am (INCLUDES): Include $(top_srcdir)/gpgme. * assuan/assuan.h: Include <ath.h> instead of trying to duplicate the definitions.
2007-06-29Added target "online".Werner Koch1-1/+1
2007-03-05Post release updatesWerner Koch1-1/+1
2007-02-26Detect and bailo out on double plaintext messages.Werner Koch1-1/+1
2007-01-182007-01-18 Marcus Brinkmann <[email protected]>Marcus Brinkmann1-1/+1
* data.h (_gpgme_data_get_fd): Add prototype. (gpgme_data_get_fd_cb): New type. (struct _gpgme_data_cbs): New member get_fd. * data.c (_gpgme_data_get_fd): New function. * data-fd.c (fd_get_fd): New function. (fd_cbs): Add fd_get_fd. * data-stream.c (stream_get_fd): New function. (stream_cbs): Add stream_get_fd. * data-mem.c (mem_cbs): Add NULL for get_fd callback. * data-user.c (user_cbs): Likewise. * engine-gpgsm.c (gpgsm_set_fd) [USE_DESCRIPTOR_PASSING]: Try to short-cut by passing the data descriptor directly.
2007-01-08Fixes for building without gpgsm and for W32Werner Koch1-1/+1