aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Add 2002 as copyright year for files changed recently without updating theMarcus Brinkmann2002-02-069-9/+9
| | | | | year.
* Some minor source code cleanup.Marcus Brinkmann2002-02-061-23/+23
|
* 2002-02-06 Marcus Brinkmann <[email protected]>Marcus Brinkmann2002-02-062-2/+5
| | | | | | * rungpg.c (_gpgme_gpg_op_keylist): Remove handling of keylist mode (for now).
* Update some items.Marcus Brinkmann2002-02-061-14/+13
|
* Fill in some missing repetitive "Likewise." explanations.Marcus Brinkmann2002-02-061-7/+7
|
* doc/Marcus Brinkmann2002-02-0616-52/+85
| | | | | | | | | | | | | | | | | | | | | | | | | | | 2002-02-06 Marcus Brinkmann <[email protected]> * gpgme.texi (Waiting For Completion): Adjust doc to changes in the code. gpgme/ 2002-02-06 Marcus Brinkmann <[email protected]> * wait.c (gpgme_wait): Add new argument STATUS, in which the status of the returned context is returned. (_gpgme_wait_on_condition): Rework the function a bit, to make it aware of cancelled processes, and to allow to use gpgme_wait with CTX being NULL (as documented in the source). (struct proc_s): New member REPORTED. * gpgme.h: Fix prototype. * verify.c (gpgme_op_verify): Fix use of gpgme_wait. * sign.c (gpgme_op_sign): * import.c (gpgme_op_import): * genkey.c (gpgme_op_genkey): * export.c (gpgme_op_export): * encrypt.c (gpgme_op_encrypt): * delete.c (gpgme_op_delete): * decrypt-verify.c (gpgme_op_decrypt_verify):
* doc/Marcus Brinkmann2002-02-067-26/+120
| | | | | | | | | | | | | | | | | | | | 2002-02-06 Marcus Brinkmann <[email protected]> * gpgme.texi (Key Listing Mode): Update documentation. gpgme/ 2002-02-06 Marcus Brinkmann <[email protected]> * gpgme.c (gpgme_set_keylist_mode): Possibly return an error value. (gpgme_get_keylist_mode): New function. (gpgme_new): Set the default for keylist_mode member of CTX. * gpgme.h (gpgme_set_keylist_mode): Fix prototype. (gpgme_get_keylist_mode): New prototype. (GPGME_KEYLIST_MODE_LOCAL): New macro. (GPGME_KEYLIST_MODE_EXTERN): Likewise..
* 2002-02-02 Marcus Brinkmann <[email protected]>Marcus Brinkmann2002-02-0223-695/+914
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch has gotten a bit large... mmh. The main thing that happens here is that error values are now not determined in the operation function after gpgme_wait completed, but in the status handler when EOF is received. It should always be the case that either an error is flagged or EOF is received, so that after a gpgme_wait you should never have the situation that no error is flagged and EOF is not received. One problem is that the engine status handlers don't have access to the context, a horrible kludge works around this for now. All errors that happen during a pending operation should be catched and reported in ctx->error, including out-of-core and cancellation. This rounds up neatly a couple of loose ends, and makes it possible to pass up any errors in the communication with the backend as well. As a bonus, there will be a function to access gpgme->wait, so that the operations can truly be implemented with their _start function. * engine-gpgsm.c (gpgsm_status_handler): Horrible kludge to report error back to the context. * rungpg.c (gpg_status_handler): Same horrible kludge applied here. * engine-gpgsm.c (gpgsm_assuan_simple_command): Add error checking. * wait.c (_gpgme_wait_on_condition): If canceled, set CTX->error to a value indication that. * verify.c (add_notation): Set error, not out_of_core. (finish_sig): Likewise. (gpgme_op_verify_start): Don't clear out_of_core. (_gpgme_verify_status_handler): At EOF, clean up the notation data. (gpgme_op_verify): And don't do it here. * trustlist.c (trustlist_status_handler): Check error, not out_of_core. (gpgme_op_trustlist_start): Don't clear out_of_core. (gpgme_op_trustlist_next): Check error, not out_of_core. (gpgme_op_trustlist_end): Likewise. * ops.h (test_and_allocate_result): New macro. (_gpgme_passphrase_result): Remove prototype. * delete.c (gpgme_op_delete): Return error from context. (delete_status_handler): Use macro test_and_allocate_result. Perform error checking at EOF. (gpgme_op_delete_start): Release result. * passphrase.c (_gpgme_passphrase_status_handler): Use macro test_and_allocate_result, and perform error checking here. (_gpgme_passphrase_result): Function removed. * sign.c (gpgme_op_sign_start): Do not set out_of_core to zero. (gpgme_op_sign): Just return the error value from the context. (sign_status_handler): Only progress if no error is set yet. If we process an EOF, set the resulting error value (if any). * decrypt.c (_gpgme_decrypt_result): Function removed. (create_result_struct): Function removed. (_gpgme_decrypt_status_handler): Use macro test_and_allocate_result, caclulate error on EOF, do not progress with errors. (_gpgme_decrypt_start): Do not set out_of_core to zero. (gpgme_op_decrypt): Just return the error value from the context. * encrypt.c (encrypt_status_handler): Perform the error checking here. (gpgme_op_encrypt_start): Do not clear out_of_core. * export.c (export_status_handler): Return if error is set in context. (gpgme_op_export_start): Release result. (gpgme_op_export): Return error from context. * decrypt-verify.c (gpgme_op_decrypt_verify): Return the error in the context. * genkey.c (genkey_status_handler): Use macro test_and_allocate_result. Perform error checking at EOF. (gpgme_op_genkey): Just return the error from context. * import.c (gpgme_op_import): Return the error from context. (import_status_handler): Use macro test_and_allocate_result. * keylist.c (gpgme_op_keylist_start): Do not clear out_of_core. (gpgme_op_keylist_next): Return error of context. (keylist_colon_handler): Set error instead out_of_code. (finish_key): Likewise. * context.h: Remove member out_of_core, add member error. * gpgme.c (_gpgme_release_result): Clear error flag. * engine.h (_gpgme_engine_get_error): New prototype. * engine.c (_gpgme_engine_get_error): New function. * engine-gpgsm.c (_gpgme_gpgsm_get_error): New function. * engine-gpgsm.c (map_assuan_error): New function. (gpgsm_assuan_simple_command): Change return type to GpgmeError, use the new function to map error values. (gpgsm_set_fd): Change return type tp GpgmeError. (_gpgme_gpgsm_op_decrypt): Change type of ERR to GpgmeError. (gpgsm_set_recipients): Likewise. Change type of return value equivalently. Adjust error values. (_gpgme_gpgsm_op_import): Likewise. (_gpgme_gpgsm_op_sign): Likewise. (struct gpgsm_object_s): New member error. (gpgsm_status_handler): Set error if error occurs. Determine error number from ERR line received. If assuan_read_line fails, terminate the connection.
* 2002-02-01 Marcus Brinkmann <[email protected]>Marcus Brinkmann2002-02-012-0/+5
| | | | | * Makefile.am (MOSTLYCLEANFILES): New variable.
* 2002-02-01 Marcus Brinkmann <[email protected]>Marcus Brinkmann2002-02-013-1/+10
| | | | | | | | * Makefile.am (EXTRA_gpgme_openpgp_la_SOURCES): New variable. (EXTRA_gpgme_smime_la_SOURCES): Likewise. * gpgmeplug.c (passphrase_cb): Fix type of third argument.
* Update to latest version.Marcus Brinkmann2002-02-013-1/+10
|
* 2002-02-01 Marcus Brinkmann <[email protected]>Marcus Brinkmann2002-02-012-0/+10
| | | | | | * engine-gpgsm.c (gpgsm_status_handler): At error, terminate the connection to the server.
* Really add this file.Marcus Brinkmann2002-01-311-0/+80
|
* doc/Marcus Brinkmann2002-01-3112-50/+108
| | | | | | | | | | | | | | | | | | | | | | | | | | | 2002-01-31 Marcus Brinkmann <[email protected]> * gpgme.texi (Generating Keys): Document error at creation failure. gpgme/ 2002-01-31 Marcus Brinkmann <[email protected]> * rungpg.h: Add STATUS_KEY_CREATED. * progress.c: New file. * Makefile.am (libgpgme_la_SOURCES): Add progress.c. * genkey.c (genkey_status_handler): Use _gpgme_progress_status_handler. Add check for status. (struct genkey_result_s): New structure. (_gpgme_release_genkey_result): New function. (gpgme_op_genkey): Check for error. * gpgme.c (_gpgme_release_result): Call _gpgme_release_genkey_result. * ops.h (_gpgme_release_genkey_result): Add prototype. * types.h (GenKeyResult): New type. * context.h (gpgme_context_s): Add GenKeyResult to member result.
* 2002-01-30 Marcus Brinkmann <[email protected]>Marcus Brinkmann2002-01-302-2/+8
| | | | | * gpgme.texi (Deleting Keys): Document new error values.
* 2002-01-30 Marcus Brinkmann <[email protected]>Marcus Brinkmann2002-01-307-17/+92
| | | | | | | | | | | | | | | | | * gpgme.c (_gpgme_release_result): Call _gpgme_release_delete_result. * ops.h (_gpgme_release_delete_result): Add prototype. * types.h (DeleteResult): New type. * context.h (gpgme_context_s): Add DeleteResult to member result. * delete.c (enum delete_problem): New type. (struct delete_result_s): New structure. (_gpgme_release_delete_result): New function. (delete_status_handler): Implement more status codes. (gpgme_op_delete): Return error on failure. * import.c (MAX_IMPORTED_FIELDS): Bump up to 14.
* doc/Marcus Brinkmann2002-01-3011-87/+267
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 2002-01-30 Marcus Brinkmann <[email protected]> * gpgme.texi (Importing Keys): Add reference to gpgme_get_op_info. gpgme/ 2002-01-30 Marcus Brinkmann <[email protected]> * import.c (struct import_result_s): New structure. (_gpgme_release_import_result): New function. (append_xml_impinfo): Likewise. (import_status_handler): Implement. * gpgme.c (_gpgme_release_result): Add call to _gpgme_release_import_result. * ops.h (_gpgme_release_impoer_result): Add prototype. * types.h (ImportResult): New type. * context.h (gpgme_context_s): Add ImportResult to member result. * encrypt.c (gpgme_op_encrypt): Code clean up. tests/ 2002-01-30 Marcus Brinkmann <[email protected]> * gpg/t-import.c (print_op_info): New function. (main): Use it.
* Be a bit clearer.Marcus Brinkmann2002-01-301-2/+2
|
* 2002-01-30 Marcus Brinkmann <[email protected]>Marcus Brinkmann2002-01-302-16/+22
| | | | | * gpgme.texi: Some spell checking.
* Add more about status handler.Marcus Brinkmann2002-01-301-1/+1
|
* doc/Marcus Brinkmann2002-01-304-247/+658
| | | | | | | | | | | | | | 2002-01-30 Marcus Brinkmann <[email protected]> * gpgme.texi: Add all the gpgme_op_*_start functions. Fill the concept index with many, many entries. gpgme/ 2002-01-30 Marcus Brinkmann <[email protected]> * gpgme.h: Add lots of comment and fix the formatting. Add gpgme_trustlist_end prototype.
* Add copyright year.Marcus Brinkmann2002-01-292-2/+2
|
* doc/Marcus Brinkmann2002-01-296-157/+300
| | | | | | | | | | | | | | | | | 2002-01-29 Marcus Brinkmann <[email protected]> * gpgme.texi (Run Control): New section. (Verify): Docuent gpgme_get_notation. (More Information): New section describing gpgme_get_op_info. gpgme/ 2002-01-29 Marcus Brinkmann <[email protected]> * gpgme.h: Add new type GpgmeIdleFunc. Change type of gpgme_register_idle to return and accept this type. * wait.c (gpgme_register_idle): Fix type. Save and return old value of idle_function.
* * engine-gpgsm.c (_gpgme_gpgsm_op_keylist): Implement secret only mode.Werner Koch2002-01-293-5/+34
| | | | | | * keylist.c (keylist_colon_handler): Add support for the new "crs" record type.
* Delete obsolete item.Marcus Brinkmann2002-01-221-2/+0
|
* Some small updates.Marcus Brinkmann2002-01-223-6/+8
|
* 2002-01-22 Marcus Brinkmann <[email protected]>Marcus Brinkmann2002-01-223-2/+11
| | | | | | | | | | * engine-gpgsm.c (_gpgme_gpgsm_release): Call assuan_disconnect, not assuan_pipe_disconnect. * Makefile.am (libgpgme_la_LIBADD): Change to link assuan and jnlib (needed by assuan) statically into libgpgme. Linking a static library into a shared library this way is not portable.
* 2002-01-22 Marcus Brinkmann <[email protected]>Marcus Brinkmann2002-01-222-6/+14
| | | | | * configure.ac (HAVE_JNLIB_LOGGING): Define always for assuan.
* Update to current version in newpg module.Marcus Brinkmann2002-01-2223-309/+1372
|
* Remove obsolete item.Marcus Brinkmann2002-01-221-1/+0
|
* doc/Marcus Brinkmann2002-01-2212-12/+31
| | | | | | | | | | | | | | | | | | | | | | 2002-01-22 Marcus Brinkmann <[email protected]> * gpgme.texi (Passphrase callback): Change GpgmePassphraseCb's R_HD type from void* to void**. gpgme/ 2002-01-22 Marcus Brinkmann <[email protected]> * gpgme.h (GpgmePassphraseCb): Change type of R_HD from void* to void**. tests/ 2002-01-22 Marcus Brinkmann <[email protected]> * gpg/t-signers.c (passphrase_cb): Change type of r_hd to void**. * gpg/t-sign.c (passphrase_cb): Likewise. * gpg/t-decrypt-verify.c (passphrase_cb): Likewise. * gpg/t-decrypt.c (passphrase_cb): Likewise.
* doc/Marcus Brinkmann2002-01-227-8/+26
| | | | | | | | | | | | | | | 2002-01-22 Marcus Brinkmann <[email protected]> * gpgme.texi (Creating data buffers): Change gpgme_data_new_from_filepart's LENGTH type from off_t to size_t. gpgme/ 2002-01-22 Marcus Brinkmann <[email protected]> * data.c (gpgme_data_new_from_filepart): Change type of LENGTH from off_t to size_t. * gpgme.h: Likewise.
* 2002-01-22 Marcus Brinkmann <[email protected]>Marcus Brinkmann2002-01-2212-232/+269
| | | | | | | | | | | | | | | | | | | | | | | | | * wait.c (_gpgme_wait_on_condition): If the process finished, reset the pending flag. Also if the operation was cancelled. (struct proc_s): Rename READY to DONE. (wait_item_s): Likewise. (set_process_ready): Rename to ... (set_process_done): ... this. (_gpgme_remove_proc_from_wait_queue): Call set_process_done instead set_process_ready. (_gpgme_wait_on_condition): Likewise. (do_select): Rename READY to DONE. * verify.c (gpgme_op_verify): Do not set pending to zero here. * sign.c (gpgme_op_sign): Likewise. * import.c (gpgme_op_import): Likewise. * genkey.c (gpgme_op_genkey): Likewise. * export.c (gpgme_op_export): Likewise. * encrypt.c (gpgme_op_encrypt): Likewise. * delete.c (gpgme_op_delete): Likewise. * decrypt-verify.c (gpgme_op_decrypt_verify): Likewise. * decrypt.c (gpgme_op_decrypt): Likewise.
* Fix copyright year.Marcus Brinkmann2002-01-221-1/+1
|
* Some more items.Marcus Brinkmann2002-01-221-0/+5
|
* 2002-01-22 Marcus Brinkmann <[email protected]>Marcus Brinkmann2002-01-222-15/+16
| | | | | * export.c: Cleanup.
* 2002-01-22 Marcus Brinkmann <[email protected]>Marcus Brinkmann2002-01-222-13/+119
| | | | | | | | * gpgme.texi (Generating keys): New subsection. (Exporting keys): Likewise. (Importing keys): Likewise. (Deleting keys): Likewise.
* 2002-01-16 Marcus Brinkmann <[email protected]>Marcus Brinkmann2002-01-163-1/+44
| | | | | | | * gpgme-openpgp.c: New file. * Makefile.am (gpgme_openpgp_la_SOURCES): Replace gpgmeplug.c with gpgme-openpgp.c.
* 2002-01-16 Marcus Brinkmann <[email protected]>Marcus Brinkmann2002-01-162-1/+3
| | | | | | | | | * gpgme.texi: g10Code -> g10 Code * gpgme.texi (Top): Complete detailmenu. * gpgme.texi: Convert embarassing cruft to the real thing.
* 2002-01-16 Marcus Brinkmann <[email protected]>Marcus Brinkmann2002-01-162-0/+7
| | | | | * gpgme.texi (Top): Complete detailmenu.
* 2002-01-16 Marcus Brinkmann <[email protected]>Marcus Brinkmann2002-01-162-1/+5
| | | | | * gpgme.texi: Convert embarassing cruft to the real thing.
* Update all these funny copright notices.Marcus Brinkmann2002-01-164-5/+3
|
* Add information about --enable-maintainer-mode, which is required to builtMarcus Brinkmann2002-01-161-9/+4
| | | | | the documentation from CVS.
* * There is a Texinfo manual documenting the API.Marcus Brinkmann2002-01-161-0/+5
| | | | | | * New interface gpgme_op_trustlist_end() to match gpgme_op_keylist_end.
* 2002-01-15 Marcus Brinkmann <[email protected]>Marcus Brinkmann2002-01-162-169/+206
| | | | | | | * trustlist.c: Various source clean ups. (my_isdigit): Removed. (gpgme_op_trustlist_end): New function.
* 2002-01-16 Marcus Brinkmann <[email protected]>Marcus Brinkmann2002-01-165-4/+2655
| | | | | | | | | | * ChangeLog: New file. * gpgme.texi: Likewise. * gpl.texi: Likewise. * fdl.texi: Likewise. * Makefile.am (info_TEXINFOS): New variable. (gpgme_TEXINFOS): Likewise.
* New items about various things.Marcus Brinkmann2002-01-151-1/+29
|
* 2002-01-13 Marcus Brinkmann <[email protected]>Marcus Brinkmann2002-01-153-530/+609
| | | | | | | | | | | | | | | | | | | * gpgme.c: Various source clean ups, like renaming C to CTX where appropriate. (gpgme_new): Clear R_CTX before starting the work. (my_isdigit): Removed. (my_isxdigit): Likewise. * data.c: Various source clean ups. (gpgme_data_new_from_mem): Check BUFFER after clearing R_DH. (gpgme_data_new_with_read_cb): Similar for READ_CB. (gpgme_data_new_from_file): Loop over fread while EINTR. (gpgme_data_new_from_filepart): Rediddled a bit. Allow LENGTH to be zero. Loop over fread while EINTR. (my_isdigit): Removed. (my_isxdigit): Likewise.
* Added copyright statement for 2002.Marcus Brinkmann2002-01-151-0/+1
|
* 2002-01-15 Marcus Brinkmann <[email protected]>Marcus Brinkmann2002-01-153-11/+15
| | | | | | | | | * gpgmeplug.c: Renamed to ... * gpgme-openpgp.c: ... this. New file. * gpgsmplug.c: Renamed to ... * gpgme-smime.c: ... this. new file. * Makefile.am: Rewritten to use libtool's module functionality.