aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* * gpgsm/Makefile.am (DISTCLEANFILES): new.gpgme-0-3-8Werner Koch2002-06-252-0/+9
|
* * engine-gpgsm.c (_gpgme_gpgsm_set_io_cbs) [ENABLE_GPGSM]: FixedWerner Koch2002-06-253-2/+8
| | | | | function arguments.
* * configure.ac: Bumbed LT version to 9/3/0.Werner Koch2002-06-253-7/+14
| | | | | (NEED_GPGSM_VERSION): Need 0.3.8 due to fixed export command.
* importCertificate( const char* fpr )Steffen Hansen2002-06-253-13/+124
|
* Have additional secretOnly parameter at the findCertificates() function to ↵Karl-Heinz Zimmer2002-06-252-4/+6
| | | | allow for searching only secret keys.
* 2002-06-25 Marcus Brinkmann <[email protected]>Marcus Brinkmann2002-06-253-1/+97
| | | | | | * gpgsm/Makefile.am (TESTS): Add t-export. gpgsm/t-export.c: New file.
* 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.
* Disable debug outputKarl-Heinz Zimmer2002-06-241-2/+2
|
* Use fine DN parts reordering from within findCertificates() as well.Karl-Heinz Zimmer2002-06-241-52/+93
|
* 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.
* * gpgmeplug.c (reorder_dn): Added missing stdpart list terminator.Werner Koch2002-06-202-2/+7
| | | | | | | | BTW, why did you change the sequence of the parts. According to the specs there is no standard but our implementation has to make sure that it uses the same sequence everywhere. Adding the extra parts is useless because they are not defined in rfc2253 and thus can't occur.
* * gpgsm/t-sign.c (main): Also test a normal signature.Werner Koch2002-06-209-28/+39
| | | | | | | | | * gpg/Makefile (TESTS_ENVIRONMENT): Set GPG_AGENT_INFO empty. * gpg/t-signers.c, gpg/t-sign.c, gpg/t-encrypt-sym.c * gpg/t-encrypt-sign.c, gpg/t-decrypt.c * gpg/t-decrypt-verify.c (main): Changed the GPG_AGENT_INFO check to match the one in ../../gpgme/rungpg.c.
* * rungpg.c (build_argv): Ignore GPG_AGENT_INFO if set but empty.Werner Koch2002-06-202-1/+10
|
* * verify.c (calc_sig_summary): Set bad policy for wrong key usage.Werner Koch2002-06-205-20/+70
| | | | | | | | | | | | (skip_token): New. (_gpgme_verify_status_handler): Watch out for wrong key usage. (gpgme_get_sig_string_attr): Hack to return info on the key usage. Does now make use of the former RESERVED argument which has been renamed to WHATIDX. (gpgme_get_sig_ulong_attr): Renamed RESERVED to WHATIDX. * gpgme.texi (Verify): Explain the new whatidx variable.
* added some entries to DN normalization functionKarl-Heinz Zimmer2002-06-201-0/+11
|
* Show DN part names (CN=blah,O=blah...)Steffen Hansen2002-06-201-0/+4
|
* Bugfix #949: (a) call gpgme_check_version(NULL) during initialization and ↵Karl-Heinz Zimmer2002-06-192-2/+19
| | | | (b) provide additional function libVersion(void) to retrieve the library version used - this function has been added to the CryptPlug API as new *MUST* function for all implementations.
* Use gpgme_get_sig_ulong_attr(.., GPGME_ATTR_SIG_SUMMARY ) function to return ↵Karl-Heinz Zimmer2002-06-192-0/+67
| | | | extended signature status information from the CryptPlug to the calling process after trying to verify a signature.
* 2002-06-14 Marcus Brinkmann <[email protected]>Marcus Brinkmann2002-06-142-10/+40
| | | | | | | | | * wait.c (do_select): Return -1 on error, and 0 if nothing to run. (_gpgme_wait_one): Only set HANG to zero if do_select returned an error, or there are no more file descriptors to wait on. (_gpgme_wait_on_condition): Ignore return value from do_select for now.
* Cosmetic fix.Marcus Brinkmann2002-06-141-1/+1
|
* Update list.Marcus Brinkmann2002-06-141-3/+3
|
* Add items about I/O callbacks.Marcus Brinkmann2002-06-141-0/+11
|
* * verify.c (gpgme_op_verify): Make sure that we never access anWerner Koch2002-06-132-1/+6
| | | | | unitialized result structure.
* bugfix + change to the nextCertificate() function prototypeSteffen Hansen2002-06-132-6/+14
|
* tests/Werner Koch2002-06-1211-27/+212
| | | | | | | | | | | | | * gpgsm/t-keylist.c (doit): Print operation info if available. gpgme/ * keylist.c (struct keylist_result_s): New. (_gpgme_release_keylist_result): Release it here (keylist_status_handler): Handle truncated. (append_xml_keylistinfo): New. * gpgme.c (_gpgme_release_result): and use it here. * types.h: Declare the new type here. * context.h (struct gpgme_context_s): Use it here.
* Add Plugin configuration option to allow for sending of *opaque* signed ↵Karl-Heinz Zimmer2002-06-124-83/+238
| | | | messages. Unfortunately this is necessary for communication with some MS Outlook clients, e.g. TrustedMime is not able to understand Multipart/Signed messages. <sigh> NOTE: This breaks compabilitity with kdenetwork, so make sure to update the KDE sources as well...
* 2002-06-11 Marcus Brinkmann <[email protected]>Marcus Brinkmann2002-06-113-1/+25
| | | | | | | | * engine-gpgsm.c (_gpgme_gpgsm_release): Close status_cb.fd. (_gpgme_gpgsm_new): Duplicate status file descriptor, so we can use our own close notification mechanism without interfering with assuan.
* * gpgme.h: Add GPGME_ATTR_SIG_SUMMARY and the GPGME_SIGSUM_Werner Koch2002-06-1111-27/+187
| | | | | | | constants. * verify.c (calc_sig_summary): New. (gpgme_get_sig_ulong_attr): And use it here.
* support for listing of external certs (untested)Steffen Hansen2002-06-102-2/+4
|
* reorder issuer DN alsoSteffen Hansen2002-06-101-2/+14
|
* typecast to make khz happySteffen Hansen2002-06-101-1/+1
|
* 2002-06-10 Marcus Brinkmann <[email protected]>Marcus Brinkmann2002-06-1029-1256/+1724
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * engine-gpgsm.c (_gpgme_gpgsm_start): Move the code that sets the close notification for the status fd to ... (_gpgme_gpgsm_new): ... here. * wait.h: Include "sema.h". Remove prototypes of _gpgme_remove_proc_from_wait_queue and _gpgme_register_pipe_handler. Add prototypes of _gpgme_fd_table_init, _gpgme_fd_table_deinit, _gpgme_fd_table_put, _gpgme_add_io_cb, _gpgme_remove_io_cb, _gpgme_wait_event_cb and _gpgme_wait_one.. * wait.c: Remove global variables PROC_QUEUE, PROC_QUEUE_LOCK, FD_TABLE_SIZE, FD_TABLE, FD_TABLE_LOCK. New global variables FDT_GLOBAL, CTX_DONE_LIST, CTX_DONE_LIST_SIZE, CTX_DONE_LIST_LENGTH and CTX_DONE_LIST_LOCK. Remove struct proc_s. Replace struct wait_item_s. (_gpgme_fd_table_init): New function. (_gpgme_fd_table_deinit): Likewise. (_gpgme_fd_table_put): Likewise. (set_process_done): Remove function. (do_select): Take argument FDT. Use that to decide which fds to select on. (_gpgme_remove_proc_from_wait_queue): Remove function. (_gpgme_wait_event_cb): New function. (_gpgme_wait_one): Likewise. (_gpgme_register_pipe_hanldler): Remove function. (_gpgme_add_io_cb): New function. (_gpgme_remove_io_cb): Likewise. (_gpgme_freeze_fd): Remove function. (_gpgme_thaw_fd): Remove function. * rungpg.c (struct fd_data_map_s): Add new member TAG. (struct gpg_object_s): Likewise for STATUS and COLON. Add member IDX to CMD. Add new member IO_CBS. (close_notify_handler): New variables POSSIBLY_DONE and NOT_DONE. For each I/O callback, check if it should be unregistered. If all callbacks have been unregistered, trigger GPGME_EVENT_DONE. Remove member RUNNING. (_gpgme_gpg_new): Initialize new members. (_gpgme_gpg_release): Check PID not RUNNING. Don't call _gpgme_remove_proc_from_wait_queue. Close GPG->CMD.FD if set. (build_argv): Store away the index instead the file descriptor for CMD. (_gpgme_gpg_add_io_cb): New function. (_gpgme_gpg_spawn): Use _gpgme_gpg_add_io_cb to register IO callbacks. (gpg_status_handler): Change return type to void, remove PID argument, close filedescriptor if EOF or error occurs. (read_status): Use _gpgme_gpg_add_io_cb instead _gpgme_thaw_fd. Use IO_CBS->remove instead _gpgme_freeze_fd. (gpg_colon_line_handler): Change return type to void, remove PID argument, close filedescriptor if EOF or error occurs. (command_cb): Use IO_CBS->remove instead _gpgme_freeze_fd. (_gpgme_gpg_set_io_cbs): New function. * rungpg.h (_gpgme_gpg_set_io_cbs): Prototype for _gpgme_gpg_set_io_cbs. * gpgme.h (GpgmeIOCb): New type. (GpgmeRegisterIOCb): Likewise. (GpgmeRemoveIOCb): Likewise. (GpgmeEventIO): Likewise. (GpgmeEventIOCb): Likewise. (struct GpgmeIOCbs): New structure to hold I/O callbacks. (gpgme_set_op_io_cbs): New prototype. (gpgme_get_op_io_cbs): Likewise. * ops.h: New prototype for _gpgme_op_event_cb. Remove prototypes for _gpgme_freeze_fd and _gpgme_thaw_fd. Remove PID argument from _gpgme_data_inbound_handler and _gpgme_data_outbound_handler prototype. Add prototype for _gpgme_op_reset. Add synchronous argument to _gpgme_decrypt_start prototype. * io.h: Beautification. * gpgme.c: Include "wait.h". (gpgme_new): Initialize FDT. (gpgme_set_io_cbs): New function. (gpgme_get_io_cbs): Likewise. (_gpgme_op_event_cb): Likewise. * data.c (_gpgme_data_inbound_handler): Change return type to void. Drop PID argument. Close FD on error and EOF. (write_mem_data): Don't close FD here ... (write_cb_data): ... or here ... (_gpgme_data_outbound_handler): ... but here. Change return type to void. Drop PID argument. * context.h: Include "wait.h". (struct gpgme_context_s): New members FDT and IO_CBS. * op-support.c: New file. * Makefile.am (libgpgme_la_SOURCES): Add op-support.c. * ops.h: Add prototype for _gpgme_op_reset(). * decrypt.c (_gpgme_decrypt_start): New argument SYNCHRONOUS. Use _gpgme_op_reset. (gpgme_op_decrypt_start): Add synchronous argument. (gpgme_op_decrypt): Likewise. Use _gpgme_wait_one instead gpgme_wait. * delete.c (gpgme_op_delete_start): Rename to ... (_gpgme_op_delete_start): ... this. New argument SYNCHRONOUS. Use _gpgme_op_reset. Make function static. (gpgme_op_delete_start): Just a wrapper around _gpgme_op_delete_start now. (gpgme_op_delete): Add synchronous argument. Use _gpgme_wait_one instead gpgme_wait. * encrypt.c: Include "wait.h". (ggpgme_op_encrypt_start): Rename to ... (_gpgme_op_encrypt_start): ... this. New argument SYNCHRONOUS. Use _gpgme_op_reset. Make function static. (gpgme_op_encrypt_start): Just a wrapper around _gpgme_op_encrypt_start now. (gpgme_op_encrypt): Add synchronous argument. Use _gpgme_wait_one instead gpgme_wait. * encrypt_sign.c (gpgme_op_encrypt_sign_start): Rename to ... (_gpgme_op_encrypt_sign_start): ... this. New argument SYNCHRONOUS. Use _gpgme_op_reset. Make function static. (gpgme_op_encrypt_sign_start): Just a wrapper around _gpgme_op_encrypt_sign_start now. (gpgme_op_encrypt_sign): Add synchronous argument. Use _gpgme_wait_one instead gpgme_wait. * export.c (gpgme_op_export_start): Rename to ... (_gpgme_op_export_start): ... this. New argument SYNCHRONOUS. Use _gpgme_op_reset. Make function static. (gpgme_op_export_start): Just a wrapper around _gpgme_op_export_start now. (gpgme_op_export): Add synchronous argument. Use _gpgme_wait_one instead gpgme_wait. * genkey.c (gpgme_op_genkey_start): Rename to ... (_gpgme_op_genkey_start): ... this. New argument SYNCHRONOUS. Use _gpgme_op_reset. Make function static. (gpgme_op_genkey_start): Just a wrapper around _gpgme_op_genkey_start now. (gpgme_op_genkey): Add synchronous argument. Use _gpgme_wait_one instead gpgme_wait. * import.c (gpgme_op_import_start): Rename to ... (_gpgme_op_import_start): ... this. New argument SYNCHRONOUS. Use _gpgme_op_reset. Make function static. (gpgme_op_import_start): Just a wrapper around _gpgme_op_import_start now. (gpgme_op_import): Add synchronous argument. Use _gpgme_wait_one instead gpgme_wait. * keylist.c (gpgme_op_keylist_start): Use _gpgme_op_reset. (gpgme_op_keylist_ext_start): Likewise. * sign.c (gpgme_op_sign_start): Rename to ... (_gpgme_op_sign_start): ... this. New argument SYNCHRONOUS. Use _gpgme_op_reset. Make function static. (gpgme_op_sign_start): Just a wrapper around _gpgme_op_sign_start now. (gpgme_op_sign): Add synchronous argument. Use _gpgme_wait_one instead gpgme_wait. * trustlist.c (gpgme_op_trustlist_start): Use _gpgme_op_reset. * verify.c (gpgme_op_verify_start): Rename to ... (_gpgme_op_verify_start): ... this. New argument SYNCHRONOUS. Use _gpgme_op_reset. Make function static. (gpgme_op_verify_start): Just a wrapper around _gpgme_op_verify_start now. (gpgme_op_verify): Add synchronous argument. Use _gpgme_wait_one instead gpgme_wait. * engine-gpgsm.c (iocb_data_t): New type. (struct gpgsm_object_s): New member status_cb. Replace input_fd and input_data with input_cb. Replace output_fd and output_data with output_cb. Replace message_fd and message_data with message_cb. New member io_cbs. (_gpgme_gpgsm_new): Initialize all new members (and drop the old ones). (close_notify_handler): New variable POSSIBLY_DONE. For each I/O callback, check if it should be unregistered. If all callbacks have been unregistered, trigger GPGME_EVENT_DONE. (_gpgme_gpgsm_release): Remove variable PID. Use new variable names to close the file descriptors. (_gpgme_gpgsm_op_decrypt): Use new variable names, (_gpgme_gpgsm_op_encrypt): Likewise. (_gpgme_gpgsm_op_genkey): Likewise. (_gpgme_gpgsm_op_import): Likewise. (_gpgme_gpgsm_op_keylist): Likewise. (_gpgme_gpgsm_op_keylist_ext): Likewise. (_gpgme_gpgsm_op_sign): Likewise. (_gpgme_gpgsm_op_verify): Likewise. (gpgsm_status_handler): Drop argument PID. Change return type to void. Close status pipe before returning because of EOF or error. (_gpgme_gpgsm_add_io_cb): New function. (_gpgme_gpgsm_start): Use _gpgme_gpgsm_add_io_cb to register callback function. (_gpgme_gpgsm_set_io_cbs): New function. * engine-gpgsm.h: New prototype for _gpgme_gpgsm_set_io_cbs. * engine.c (_gpgme_engine_set_io_cbs): New function. * engine.h: New prototype for _gpgme_engine_set_io_cbs.
* more cert. info featuresSteffen Hansen2002-06-102-12/+86
|
* * gpgsm/t-encrypt.c (main): Add a simple option parser and allowWerner Koch2002-06-042-2/+30
| | | | | to specify an encryption key.
* Prepare everything for CVS hackery.Marcus Brinkmann2002-06-042-1/+8
|
* 2002-06-04 Marcus Brinkmann <[email protected]>gpgme-0-3-7Marcus Brinkmann2002-06-043-3/+12
| | | | | | | | | | Released 0.3.7. * configure.ac (AC_INIT): Set version to 0.3.7. (LIBGPGME_LT_REVISION): Add one. * README: Document version requirement correctly.
* Updates.Marcus Brinkmann2002-06-042-4/+10
|
* 2002-06-04 Marcus Brinkmann <[email protected]>Marcus Brinkmann2002-06-042-9/+36
| | | | | * gpgme.texi (Multi Threading): Document new autodetection.
* 2002-06-04 Marcus Brinkmann <[email protected]>Marcus Brinkmann2002-06-042-0/+6
| | | | | * Makefile.am (DISTCLEANFILES): New variable.
* 2002-06-04 Marcus Brinkmann <[email protected]>Marcus Brinkmann2002-06-042-1/+4
| | | | | * Makefile.am (libgpgme_la_SOURCES): Remove mutex.h.
* 2002-06-03 Marcus Brinkmann <[email protected]>Marcus Brinkmann2002-06-022-9/+28
| | | | | | | | * key.c: Include <ctype.h>. (_gpgme_key_append_name): Skip one more char when processing escaped char. Submitted by Marc Mutz <[email protected]>. Handle hexadecimal encodings. Also reported by Marc. Thanks!
* 2002-06-02 Marcus Brinkmann <[email protected]>Marcus Brinkmann2002-06-026-41/+3757
| | | | | | | | | | | | | | | | | * acinclude.m4: Fix Pth check so that it doesn't error out if pth is not found. gpgme/ 2002-06-02 Marcus Brinkmann <[email protected]> * ath.h: Enable the _gpgme_ prefix. Fix all those prefix macros. * posix-sema.c: Use that prefix here. * posix-io.c: Include "ath.h". (_gpgme_io_read): Use _gpgme_ath_read instead read. (_gpgme_io_write): Use _gpgme_ath_write instead write. (_gpgme_io_waitpid): Use _gpgme_ath_waitpid instead waitpid. (_gpgme_io_select): Use _gpgme_ath_select instead select.
* 2002-06-02 Marcus Brinkmann <[email protected]>Marcus Brinkmann2002-06-0211-179/+907
| | | | | | | | | | | | | | | | | | | | | | | * configure.ac: Add checks for Pth and pthreads. * acinclude.m4: Add slightly hacked check for pth (seems to be an autoconf version problem). gpgme/ 2002-06-02 Marcus Brinkmann <[email protected]> * Makefile.am (ath_components): New variable. (ath_components_pthread): Likewise. (ath_components_pth): Likewise. (system_components): Add ath_componentes. * ath.h: New file. * ath.c: Likewise. * ath-pthread.c: Likewise. * ath-pth.c: Likewise. * posix-sema.c (_gpgme_sema_cs_enter): Rework to use the ATH interface. * mutex.h: Remove file.
* sync our cryptplug.h with the version in KDE/libkdenetwork/ that was ↵Karl-Heinz Zimmer2002-06-011-4/+4
| | | | corrected my Marc Mutz.
* more cert infoSteffen Hansen2002-05-312-2/+353
|
* Bugfix: use fingerprint as found in "fpr" only if no key was found by ↵Karl-Heinz Zimmer2002-05-311-12/+3
| | | | gpgme_get_sig_key()
* Matze's patch for showing colored bars at S/MIME messages as well as at ↵Karl-Heinz Zimmer2002-05-312-378/+95
| | | | OpenPGP messages.
* more error handlingKarl-Heinz Zimmer2002-05-311-21/+111
|