aboutsummaryrefslogtreecommitdiffstats
path: root/trunk/gpgme (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* 2002-09-13 Marcus Brinkmann <[email protected]>Marcus Brinkmann2002-09-132-2/+8
| | | | | | * keylist.c (keylist_status_handler): Do not call finish_key() here. (gpgme_op_keylist_ext_start): Set CTX->tmp_key to NULL.
* Regenerated.Marcus Brinkmann2002-09-131-1/+1
|
* 2002-09-03 Marcus Brinkmann <[email protected]>Marcus Brinkmann2002-09-032-2/+8
| | | | | | | * Makefile.am (assuan_libobjs): Remove @LTLIBOBJS@ as we link them into gpgme unconditionally. (libgpgme_la_LIBADD): Change @LIBOBJS@ into @LTLIBOBJS@.
* 2002-09-02 Marcus Brinkmann <[email protected]>Marcus Brinkmann2002-09-022-1/+5
| | | | | * Makefile.am (assuan_libobjs): Use @LTLIBOBJS@ instead @LIBOBJS@.
* 2002-09-02 Marcus Brinkmann <[email protected]>Marcus Brinkmann2002-09-022-2/+8
| | | | | | | * debug.c (_gpgme_debug_add): Test *LINE, not LINE. (_gpgme_debug_end): Likewise. Reported by Dr. Stefan Dalibor <[email protected]>.
* Wrap the lines nicer.Marcus Brinkmann2002-09-021-3/+6
|
* 2002-09-02 Marcus Brinkmann <[email protected]>Marcus Brinkmann2002-09-023-2/+11
| | | | | | | * posix-io.c (_gpgme_io_select): Don't use a non-constant struct initializer. * version.c (_gpgme_get_program_version): Likewise. Reported by Dr. Stefan Dalibor <[email protected]>.
* 2002-09-02 Marcus Brinkmann <[email protected]>Marcus Brinkmann2002-09-012-1/+4
| | | | | * conversion.c (_gpgme_decode_c_string): Set DESTP before modifying DEST.
* 2002-09-02 Marcus Brinkmann <[email protected]>Marcus Brinkmann2002-09-013-27/+31
| | | | | | | * conversion.c (_gpgme_decode_c_string): Fix off by one error in last change. * rungpg.c (_gpgme_append_gpg_args_from_signers): Move before _gpgme_op_edit so its prototype is known early on.
* 2002-09-02 Marcus Brinkmann <[email protected]>Marcus Brinkmann2002-09-016-68/+172
| | | | | | | | | | | | | * conversion.c: New file. * util.h: Add prototypes for _gpgme_decode_c_string and _gpgme_hextobyte. * keylist.c (keylist_colon_handler): Call _gpgme_decode_c_string on issuer name. * Makefile.am (libgpgme_la_SOURCES): Add conversion.c * key.c (_gpgme_key_append_name): Replace calls to hextobyte by calls to _gpgme_hextobyte. (hash_key): Likewise.
* 2002-09-01 Marcus Brinkmann <[email protected]>Marcus Brinkmann2002-09-012-2/+7
| | | | | | | * op-support.c (_gpgme_op_reset): Set CTX->pending after calling _gpgme_engine_release, as this will reset pending to zero in the event done callback on cancelled operations.
* 2002-08-30 Marcus Brinkmann <[email protected]>Marcus Brinkmann2002-08-316-6/+15
| | | | | | | | | * rungpg.c (_gpgme_gpg_op_edit): Add bogus ctx argument. * rungpg.h: Also to prototype. * engine.c (_gpgme_engine_op_edit): Likewise. * engine.h: Likewise. * edit.c (_gpgme_op_edit_start): Likewise.
* 2002-08-30 Marcus Brinkmann <[email protected]>Marcus Brinkmann2002-08-302-0/+7
| | | | | | * rungpg.c (_gpgme_gpg_op_edit): Add args from signers. Suggested by Miguel Coca <[email protected]>.
* * vasprintf.c (va_copy): Define macro if not yet defined.Werner Koch2002-08-291-1/+1
|
* * engine-gpgsm.c (_gpgme_gpgsm_op_sign): Implement signerWerner Koch2002-08-293-2/+35
| | | | | | selection. * vasprintf.c (va_copy): Define macro if not yet defined.
* 2002-08-29 Marcus Brinkmann <[email protected]>Marcus Brinkmann2002-08-293-2/+22
| | | | | | | * passphrase.c (_gpgme_passphrase_status_handler): Reset CTX->result.passphrase->no_passphrase if passphrase is given (good or bad). Submitted by Jean DIRAISON <[email protected]>.
* 2002-08-28 Marcus Brinkmann <[email protected]>Marcus Brinkmann2002-08-287-182/+100
| | | | | | | | | | | | | | | | | | | | | | * posix-io.c (_gpgme_io_spawn): Use a double-fork approach. Return 0 on success, -1 on error. * version.c (_gpgme_get_program_version): Don't wait for the child. * engine.c (_gpgme_engine_housecleaning): Function removed. (do_reaping): Likewise. (_gpgme_engine_add_child_to_reap_list): Likewise. (struct reap_s): Removed. (reap_list): Likewise. (reap_list_lock): Likewise. * engine.h (_gpgme_engine_io_event): Remove prototypes for _gpgme_engine_housecleaning and _gpgme_engine_add_child_to_reap_list. * rungpg.c (_gpgme_gpg_release): Don't add child to reap list. (struct gpg_object_s): Remove PID member. (_gpgme_gpg_new): Don't initialize GPG->pid. (_gpgme_gpg_spawn): Don't set GPG->pid. * wait.c (run_idle): Removed. (gpgme_wait): Run idle_function directly.
* 2002-08-21 Marcus Brinkmann <[email protected]>Marcus Brinkmann2002-08-284-10/+10
| | | | | | | | | * encrypt-sign.c (encrypt_sign_status_handler): Remove dead variables encrypt_info and encrypt_info_len. * trustlist.c (gpgme_op_trustlist_start): Set colon line handler. * posix-sema.c (sema_fatal): Remove function. All these reported by St�phane Corth�sy.
* * gpgme-config.in: Made --prefix work for --libs.Werner Koch2002-08-233-11/+37
|
* 2002-08-21 Marcus Brinkmann <[email protected]>Marcus Brinkmann2002-08-202-12/+7
| | | | | | * ath.h: Update list of symbols that get a prefix: Rename the ath_mutex_*_available symbols to ath_*_available.
* 2002-08-21 Marcus Brinkmann <[email protected]>Marcus Brinkmann2002-08-203-1/+56
| | | | | | | | | | | | | | | | * Makefile.am (SUBDIRS): Remove jnlib. * configure.ac: Don't check for unsigned short or unsigned long. Don't check for memicmp, strlwr, strtoul, memmove, stricmp. Make stpcpy a replaced function. Don't define HAVE_JNLIB_LOGGING. Don't generate jnlib/Makefile. gpgme/ 2002-08-21 Marcus Brinkmann <[email protected]> * stpcpy.c: New file from gnulib. * Makefile.am (assuan_libobjs): Remove jnlib.
* Replaced with a new and faster version. This does not anymore try toWerner Koch2002-08-202-145/+48
| | | | | | build test programs. If we really need test programs, we should add an option to gpgme-config to do so.
* doc/Marcus Brinkmann2002-08-203-5/+33
| | | | | | | | | | | | | | | | | | 2002-08-20 Marcus Brinkmann <[email protected]> * gpgme.texi (Importing Keys): Document gpgme_op_import_ext. gpgme/ 2002-08-20 Marcus Brinkmann <[email protected]> * gpgme.h: Add prototype for gpgme_op_import_ext. * import.c (struct import_result_s): New member `nr_considered'. Rename `any_imported' to `nr_imported'. (import_status_handler): Increment nr_imported. Set nr_considered if appropriate. (gpgme_op_import_ext): New function. (gpgme_op_import): Implement in terms of gpgme_op_import_ext.
* * vasprintf.c (int_vasprintf): Hack to handle NULL passed for %s.Werner Koch2002-08-202-1/+11
|
* 2002-08-20 Marcus Brinkmann <[email protected]>Marcus Brinkmann2002-08-203-17/+17
| | | | | | | * gpgme.c (_gpgme_set_op_info): Append data on subsequent calls. * encrypt-sign.c (encrypt_sign_status_handler): Remove op_info handling.
* * decrypt.c (is_token,skip_token): Duplicated from verify.cWerner Koch2002-08-192-1/+97
| | | | | | (gpgme_op_decrypt): Hack to properly return Decryption_Failed.. (_gpgme_decrypt_status_handler): Create an operation info.
* * key.h (struct certsig_s): New. Use it in gpgme_key_s.Werner Koch2002-08-147-24/+78
| | | | | | | | | | | | | | | | | | | | * key.c (gpgme_key_release): Release it. We need to add more code of course. (_gpgme_key_append_name): Use memset to intialize the struct. * gpgme.h (GPGME_KEYLIST_MODE_SIGS): New. * rungpg.c (_gpgme_gpg_op_keylist): Include sigs in listing depending non the list mode. * key.c (gpgme_key_get_string_attr): Use GPGME_ATTR_TYPE to return information about the key type (PGP or X.509). (gpgme_key_get_ulong_attr): Likewise. * keylist.c (keylist_colon_handler): Include 1 in the check for valid algorithms so that RSA is usable. Store the issuer name and serial number also for "crs" records. Parse the expire date for subkeys. (set_userid_flags): Put them onto the last appended key.
* Fixed a missing update in the fix to the update conflict ;)Marcus Brinkmann2002-08-021-1/+1
| | | | | (STATUS_EOF -> GPGME_STATUS_EOF).
* Fixed an update conflict.Werner Koch2002-08-012-12/+32
|
* 2002-07-29 Marcus Brinkmann <[email protected]>Marcus Brinkmann2002-07-292-0/+6
| | | | | * rungpg.c (_gpgme_gpg_op_edit): Use --with-colons.
* 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.
* 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-2/+61
| | | | | * engine-gpgsm.c (_gpgme_gpgsm_op_delete): Implement this.
* 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/+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.
* 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.
* auto updated version number.Werner Koch2002-07-021-1/+1
|
* typo fix in comment.Werner Koch2002-07-021-1/+1
|
* 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-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-272-6/+9
| | | | | | | | | | | | | 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.
* * gpgsm/t-import.c (print_op_info): New.Werner Koch2002-06-263-3/+27
| | | | | | | | | | | | | | | | (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.
* * engine-gpgsm.c (_gpgme_gpgsm_set_io_cbs) [ENABLE_GPGSM]: FixedWerner Koch2002-06-253-2/+8
| | | | | function arguments.
* 2002-06-25 Marcus Brinkmann <[email protected]>Marcus Brinkmann2002-06-253-4/+55
| | | | | | | | * engine-gpgsm.c (_gpgme_gpgsm_op_export): Only export the keys listed in RECP. * export.c (gpgme_op_export): If no data was returned, return GPGME_No_Recipients.
* 2002-06-25 Marcus Brinkmann <[email protected]>Marcus Brinkmann2002-06-252-2/+22
| | | | | * engine-gpgsm.c (_gpgme_gpgsm_op_export): Implement.
* 2002-06-21 Marcus Brinkmann <[email protected]>Marcus Brinkmann2002-06-212-36/+76
| | | | | | | | | | | | | | * engine-gpgsm.c (gpgsm_assuan_simple_command): Return ERR. (parse_status): New function. (gpgsm_status_handler): Use parse_status. (gpgsm_assuan_simple_command): Accept new arguments STATUS_FNC and STATUS_FNC_VALUE and process status messages. (gpgsm_set_recipients): Pass new arugments to gpgsm_assuan_simple_command. (gpgsm_set_fd): Likewise. (_gpgme_gpgsm_op_keylist): Likewise. (_gpgme_gpgsm_op_keylist_ext): Likewise. (_gpgme_gpgsm_op_sign): Likewise.
* 2002-06-21 Marcus Brinkmann <[email protected]>Marcus Brinkmann2002-06-212-0/+5
| | | | | * wait.c (_gpgme_remove_io_cb): Unlock FDT->lock.