aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* new cryptplug function importCertificateFromMem()Steffen Hansen2002-07-313-3/+54
|
* 2002-07-29 Marcus Brinkmann <[email protected]>Marcus Brinkmann2002-07-292-0/+6
| | | | | * rungpg.c (_gpgme_gpg_op_edit): Use --with-colons.
* Add items about the edit key operation.Marcus Brinkmann2002-07-281-0/+7
|
* 2002-07-28 Marcus Brinkmann <[email protected]>Marcus Brinkmann2002-07-283-1/+166
| | | | | | * gpg/t-edit.c: New file. * gpg/Makefile (TESTS): Add t-edit.
* 2002-07-28 Marcus Brinkmann <[email protected]>Marcus Brinkmann2002-07-2833-320/+686
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * data.c (gpgme_data_read): For GPGME_DATA_TYPE_NONE, return EOF instead an error. The following changes make it possible to flush an inbound data pipe before invoking a command handler: * posix-io.c (_gpgme_io_select): Accept new argument NONBLOCK to _gpgme_io_select. Set timeout of 0 if this is set. * w32-io.c (_gpgme_io_select): Likewise. * io.h: Add new argument NONBLOCK to _gpgme_io_select prototype. * wait.c (do_select): Add new argument to _gpgme_io_select invocation. * rungpg.h (_gpgme_gpg_set_command_handler): Add new argument linked_data to prototype. * engine.h (_gpgme_engine_set_command_handler): Likewise. * engine.c (_gpgme_engine_set_command_handler): Likewise. * passphrase.c (_gpgme_passphrase_start): Pass NULL as linked_data argument to _gpgme_engine_set_command_handler. * rungpg.c (struct gpg_object_s): New members linked_data and linked_idx in CMD. (_gpgme_gpg_new): Initialize those new members. (_gpgme_gpg_set_command_handler): Accept new argument linked_data. (build_argv): Handle linked_data in the same hack as cb_data. (read_status): If linked_data is in use, flush the pipe before activating the command handler. * gpgme.h: Add prototypes for gpgme_op_edit_start and gpgme_op_edit. The next changes export the status codes to the user: * decrypt.c (_gpgme_decrypt_status_handler): Likewise, also prefix all STATUS_ with GPGME_. * delete.c (delete_status_handler): Likewise. * decrypt-verify.c (decrypt_verify_status_handler): Likewise. * encrypt.c (_gpgme_encrypt_status_handler): Likewise. (_gpgme_encrypt_sym_status_handler): Likewise. * encrypt-sign.c (encrypt_sign_status_handler): Likewise. * engine-gpgsm.c (parse_status): Likewise. (gpgsm_status_handler): Likewise. (gpgsm_set_recipients): Likewise. * export.c (export_status_handler): Likewise. * genkey.c (genkey_status_handler): Likewise. * import.c (append_xml_impinfo): Likewise. (import_status_handler): Likewise. * keylist.c (keylist_status_handler): Likewise. * passphrase.c (_gpgme_passphrase_status_handler): Likewise. (command_handler): Likewise. * progress.c (_gpgme_progress_status_handler): Likewise. * sign.c (_gpgme_sign_status_handler): Likewise. * trustlist.c (trustlist_status_handler): Likewise. * verify.c (_gpgme_verify_status_handler): Likewise. * gpgme.h (GpgmeEditCb): New type. * rungpg.h (GpgStatusCode): Rename and move to ... * gpgme.h (GpgmeStatusCode): ... this and here. * Makefile.am (status-table.h): Run mkstatus on gpgme.h, not rungpg.h. * mkstatus: Prefix STATUS with GPGME_. * rungpg.h (GpgStatusHandler, GpgCommandHandler): Change type accordingly. * ops.h (_gpgme_verify_status_handler, _gpgme_decrypt_status_handler, _gpgme_sign_status_handler, _gpgme_encrypt_status_handler, _gpgme_passphrase_status_handler, _gpgme_progress_status_handler): Likewise. * rungpg.c (struct gpg_object_s): Likewise for CMD.code. These changes add an edit operation to GPGME: * context.h (struct gpgme_context_s): New member RESULT.edit. * ops.h: Add prototype for _gpgme_release_edit_result and _gpgme_passphrase_command_handler. * passphrase.c (command_handler): Make non-static and rename to ... (_gpgme_passphrase_command_handler): ... this. (_gpgme_passphrase_start): Use new name for command handler. * types.h: Add EditResult type. * gpgme.c (_gpgme_release_result): Release EDIT result. * edit.c: New file. * Makefile.am (libgpgme_la_SOURCES): Add edit.c. (libgpgme_la_LDADD): Rename to libgpgme_la_LIBADD, and include assuan_libobjs. (assuan_libobjs): New variable, set this instead libgpgme_la_LIBADD. * engine.h (_gpgme_engine_op_edit): New prototype. * engine.c (_gpgme_engine_op_edit): New function. * rungpg.h (_gpgme_gpg_op_edit): New prototype. * rungpg.c (_gpgme_gpg_op_edit): New function.
* Update the file.Marcus Brinkmann2002-07-271-7/+0
|
* 2002-07-27 Marcus Brinkmann <[email protected]>Marcus Brinkmann2002-07-272-1/+9
| | | | | | * delete.c (delete_problem): New case ambigious specification. (delete_status_handler): Handle new case (poorly).
* 2002-07-25 Marcus Brinkmann <[email protected]>Marcus Brinkmann2002-07-252-1/+6
| | | | | | * gpgme.texi (Deleting Keys): Say that secret keys might not be deleted.
* 2002-07-25 Marcus Brinkmann <[email protected]>Marcus Brinkmann2002-07-252-2/+61
| | | | | * engine-gpgsm.c (_gpgme_gpgsm_op_delete): Implement this.
* Update version information.Marcus Brinkmann2002-07-251-3/+3
|
* Update version requirement.Marcus Brinkmann2002-07-251-1/+1
|
* 2002-07-25 Marcus Brinkmann <[email protected]>Marcus Brinkmann2002-07-253-6/+14
| | | | | | | | * 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-25 Marcus Brinkmann <[email protected]>Marcus Brinkmann2002-07-258-9/+47
| | | | | | | | | | | | | | | | * Makefile.am (libgpgme_la_LDADD): Add @LIBOBJS@ for vasprintf and fopencookie. * vasprintf.c: Update to more recent libiberty version. * debug.h: Replace #elsif with #elif. Submitted by St�phane Corth�sy: * util.h (vasprintf): Correct prototype. * encrypt-sign.c: Include <stddef.h>. (encrypt_sign_status_handler): Change type of ENCRYPT_INFO_LEN to size_t. * ath-pthread.c: Include <stdlib.h>, not <malloc.h>. * ath-pth.c: Likewise.
* 2002-07-25 Marcus Brinkmann <[email protected]>Marcus Brinkmann2002-07-252-0/+4
| | | | | * rungpg.c (_gpgme_gpg_new): Always set utf8 as charset.
* 2002-07-25 Marcus Brinkmann <[email protected]>Marcus Brinkmann2002-07-252-0/+9
| | | | | | | | * key.c (gpgme_key_get_as_xml): Add OTRUST attribute. Requested by St�phane Corth�sy. (gpgme_key_get_string_attr): Add GPGME_ATTR_SIG_SUMMARY case to silence gcc warning.
* 2002-07-25 Marcus Brinkmann <[email protected]>Marcus Brinkmann2002-07-252-1/+5
| | | | | | * gpgme.texi (Manipulating Data Buffers): Mention that backend tries to detect encoding automatically.
* 2002-07-25 Marcus Brinkmann <[email protected]>Marcus Brinkmann2002-07-252-1/+18
| | | | | | * gpgme.texi (Information About Keys): Document (badly) the new key attributes.
* 2002-07-25 Marcus Brinkmann <[email protected]>Marcus Brinkmann2002-07-252-1/+4
| | | | | | * rungpg.c (_gpgme_gpg_op_keylist_ext): Skip empty string patterns. Reported by St�phane Corth�sy.
* 2002-07-25 Marcus Brinkmann <[email protected]>Marcus Brinkmann2002-07-252-1/+6
| | | | | | * wait.c (fdt_global): Make static. Reported by St�phane Corth�sy.
* CRASH prevention fix: Memory was overwritten if there were more than 1 email ↵Karl-Heinz Zimmer2002-07-041-1/+1
| | | | address in a signature certificate found in checkMessageSignature() function.
* fixing bug #1154Karl-Heinz Zimmer2002-07-031-3/+54
|
* * gpgmeplug.c (nextCertificate): Actually free the entire arrayWerner Koch2002-07-032-2/+8
| | | | | | and don't loop over tmp_dn and double free the first item. Spotted by Bernhard Herzog.
* 2002-07-03 Marcus Brinkmann <[email protected]>Marcus Brinkmann2002-07-032-14/+579
| | | | | | | | | * gpgme.texi (Run Control): Update this section. (Waiting For Completion): Likewise for this subsection. (Cancelling an Operation): Likewise for this subsection. (Using External Event Loops): New subsection with several subsubsections.
* 2002-07-03 Marcus Brinkmann <[email protected]>Marcus Brinkmann2002-07-033-1/+262
| | | | | | * gpg/t-eventloop.c: New file. * gpg/Makefile (TESTS): Add t-eventloop.
* 2002-07-03 Marcus Brinkmann <[email protected]>Marcus Brinkmann2002-07-0315-95/+242
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * gpgme.c (gpgme_set_io_cbs): Deal with CTX being NULL. * gpgme.c (_gpgme_op_event_cb_user): New function. * op-support.c (_gpgme_op_reset): Support a new mode of operation for private or user event loop. Use new user event callback wrapper. * trustlist.c (gpgme_op_trustlist_start): Use this new mode. * keylist.c (gpgme_op_keylist_start): Likewise. * rungpg.c (_gpgme_gpg_io_event): New function. * rungpg.h (_gpgme_gpg_io_event): New prototype. * engine-gpgsm.c (_gpgme_gpg_io_event): New function. * engine-gpgsm.h (_gpgme_gpgsm_io_event): New prototype. * engine.c (_gpgme_engine_io_event): New function. * engine.h (_gpgme_engine_io_event): New prototype. * keylist.c (finish_key): Call _gpgme_engine_io_event, and move the real work for the default IO callback routines to ... (_gpgme_op_keylist_event_cb): ... here. New function. * trustlist.c (trustlist_colon_handler): Signal GPGME_EVENT_NEXT_TRUSTITEM. Move queue manipulation to ... (_gpgme_op_trustlist_event_cb): ... here. New function. * gpgme.c (_gpgme_op_event_cb): Call _gpgme_op_keylist_event_cb and _gpgme_op_trustlist_event_cb when appropriate. * ops.h (_gpgme_op_keylist_event_cb): New prototype. (_gpgme_op_trustlist_event_cb): Likewise. * op-support.c (_gpgme_op_reset): Add comment why we don't use the user provided event handler directly. * gpgme.h (GpgmeRegisterIOCb): Return GpgmeError value, and TAG in a pointer argument. * wait.c (_gpgme_add_io_cb): Likewise. * wait.h (_gpgme_add_io_cb): Likewise for prototype. * rungpg.c (_gpgme_gpg_add_io_cb): Call IO_CBS->add with new argument. Fix up error handling. * engine-gpgsm.c (_gpgme_gpgsm_add_io_cb): Call IO_CBS->add with new argument, fix up error handling.
* Fix news item.Marcus Brinkmann2002-07-021-1/+1
|
* make sure key used for signing _can_ signdd9jn_pre_test_20020702Karl-Heinz Zimmer2002-07-021-12/+21
|
* * configure.ac: Bumbed version number to 0.3.9; add a comment onWerner Koch2002-07-026-6/+96
| | | | | | | | | | when to change it. * gpgme.spec.in: New. Contributed by Wojciech Polak. * Makefile.am (dist-hook): New. * AUTHORS: Added Wojciech and bug reporting addresses.
* auto updated version number.Werner Koch2002-07-021-1/+1
|
* typo fix in comment.Werner Koch2002-07-021-1/+1
|
* (xstrdup): Oops, obviously I calculated the length wrong whenWerner Koch2002-07-012-1/+5
| | | | | | coded this. Tsss, wrote xstrdup some hundreds times but missed it this time. Thanks to Steffen Hansen for noticing it.
* * gpgmeplug.c (findCertificates): Reintroduced a free which mustWerner Koch2002-07-012-112/+100
| | | | | | | | | | | | | | | | | | | | have been removed after my last fix. This avoids a memory leak when a fingerprint was not found. Removed the double loop increment in the code to release the arrays. (make_fingerprint): Removed superfluous check on retrun value of xmalloc. (safe_free): Removed. Changed all callers to use a regular free and at appropriate palces set the free pointer to NULL. That safe_free stuff seems to have been copied verbatim from some Mutt example code I posted. (storeNewCharPtr): Use xmalloc instead of an unchecked malloc. Removed superfluous string termination. (parseAddress): Use xmalloc instead of an unchecked malloc. (nextAddress): Ditto. * gpgmeplug.c: Moved a few helper functions more to the top. Fixed comment syntax. Merged a copyright notice somewhere in the middle of the file with the one at the top.
* Fixed memory corruption bugSteffen Hansen2002-07-011-6/+10
|
* avoid another memory leak in checkMessageSignature()Karl-Heinz Zimmer2002-07-011-9/+4
|
* * gpgmeplug.c (findCertificates): Reintroduced a free which mustWerner Koch2002-07-012-2/+9
| | | | | | | have been removed after my last fix. This avoids a memory leak when a fingerprint was not found. Removed the double loop increment in the code to release the arrays.
* replace many comment lines by just one single commentKarl-Heinz Zimmer2002-06-281-5/+5
|
* Make it compile. :-(Karl-Heinz Zimmer2002-06-281-4/+4
|
* Removed silly "free( dn )" statement forgotten during my last changes in ↵Karl-Heinz Zimmer2002-06-281-2/+1
| | | | findCertificates().
* * gpgmeplug.c (xmalloc): New.Werner Koch2002-06-282-29/+64
| | | | | | | | | | | | | (safe_malloc): Removed this macro and replaced it at all places without return values checks by xmalloc. (xstrdup): New. Replaces funny named macro with different semantics. Changed all callers to the new semantic. (findCertificates): Don't free duplicate free the FPR array values. Removed the unneeded initialization. Replaces the gcc-ish use dynamic allocation of automatic variables by repalce maxCerts with a macro MAXCERTS. Made some comments Real C (tm). (startListCertificates): Removed uneeded cast from xmalloc.
* * gpgmeplug.c: new macro days_to_seconds().Bernhard Reiter2002-06-282-12/+18
| | | | | | | | | | this also fixes the dividing factor. (signatureCertificateDaysLeftToExpiry) (preceiverCertificateDaysLeftToExpiry): using the new macro (caCertificateDaysLeftToExpiry) (rootCertificateDaysLeftToExpiry): using new macro in deactivated code.
* internal AEgypten bugfix #1131: get full list of emails stored in ↵Karl-Heinz Zimmer2002-06-282-250/+292
| | | | certificated used for signing a received message
* 2002-06-28 Marcus Brinkmann <[email protected]>Marcus Brinkmann2002-06-282-1/+8
| | | | | | * keylist.c (gpgme_op_keylist_ext_start): Always use our own FD table (eg use synchronous mode).
* 2002-06-28 Marcus Brinkmann <[email protected]>Marcus Brinkmann2002-06-282-9/+7
| | | | | | | * gpgme.texi (Multi Threading): Remove item about the need to synchronize anything against gpgme_wait (except gpgme_wait itself).
* 2002-06-28 Marcus Brinkmann <[email protected]>Marcus Brinkmann2002-06-285-62/+115
| | | | | | | | | | | | | | | | | | | | | | | * ops.h (_gpgme_wait_on_condition): Remove HANG argument from prototype and change return type to GpgmeError. (_gpgme_wait_one): New prototype. * wait.c (gpgme_wait): Replace with the meat from _gpgme_wait_on_condition here, and remove the support for conditions. (_gpgme_wait_on_condition): Remove HANG argument from prototype and change return type to GpgmeError. Replace with meat from _gpgme_wait_one and add support for conditions. (_gpgme_wait_one): Just call _gpgme_wait_on_condition without condition. * keylist.c (gpgme_op_keylist_ext_start): Always use our own FD table (eg use synchronous mode). (gpgme_op_keylist_next): Remove HANG argument from _gpgme_wait_on_condition. Check its return value. * trustlist.c (gpgme_op_trustlist_start): Always use our own FD table (eg use synchronous mode). (gpgme_op_trustlist_next): Remove HANG argument from _gpgme_wait_on_condition. Check its return value.
* doc/Marcus Brinkmann2002-06-274-20/+26
| | | | | | | | | | | | | 2002-06-27 Marcus Brinkmann <[email protected]> * gpgme.texi (Information About Keys): Fix documentation for IDX. (Information About Trust Items): Likewise. gpgme/ 2002-06-27 Marcus Brinkmann <[email protected]> * gpgme.h: Fix documentation of key attribute retrieval functions.
* use gpgme_op_keylist_ext_startSteffen Hansen2002-06-272-3/+6
|
* handle truncated dataSteffen Hansen2002-06-273-4/+14
|
* Missing implementation bug fixed: Return both error id and error plain text ↵Karl-Heinz Zimmer2002-06-272-3/+19
| | | | from decryptMessage().
* Bugfix: enable function receiverCertificateDaysLeftToExpiry().Karl-Heinz Zimmer2002-06-261-2/+34
|
* * gpgsm/t-import.c (print_op_info): New.Werner Koch2002-06-267-5/+56
| | | | | | | | | | | | | | | | (main): Print operation info. * engine-gpgsm.c (map_assuan_error): Map No_Data_Available to EOF. * import.c (append_xml_impinfo): Kludge to print fingerprint instead of keyid for use with gpgsm. (import_status_handler): Set a flag to know whether any import occured. (gpgme_op_import): Reurn -1 if no certificate ewas imported. * gpgme.texi (Importing Keys): Document the return value -1 of gpgme_op_import.