aboutsummaryrefslogtreecommitdiffstats
path: root/src/engine-gpgsm.c (unfollow)
Commit message (Collapse)AuthorFilesLines
2002-02-012002-02-01 Marcus Brinkmann <[email protected]>Marcus Brinkmann1-0/+5
* engine-gpgsm.c (gpgsm_status_handler): At error, terminate the connection to the server.
2002-01-29* engine-gpgsm.c (_gpgme_gpgsm_op_keylist): Implement secret only mode.Werner Koch1-3/+11
* keylist.c (keylist_colon_handler): Add support for the new "crs" record type.
2002-01-222002-01-22 Marcus Brinkmann <[email protected]>Marcus Brinkmann1-1/+1
* 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.
2001-12-212001-12-21 Marcus Brinkmann <[email protected]>Marcus Brinkmann1-4/+4
* engine-gpgsm.c (_gpgme_gpgsm_new): Replace General_Error with Pipe_Error where appropriate.
2001-12-192001-12-19 Marcus Brinkmann <[email protected]>Marcus Brinkmann1-1/+6
* engine-gpgsm.c (_gpgme_gpgsm_new): New variable CHILD_FDS. Fill it with the servers fds, and pass it to assuan_pipe_connect.
2001-12-172001-12-17 Marcus Brinkmann <[email protected]>Marcus Brinkmann1-0/+6
* engine-gpgsm.c (_gpgme_gpgsm_set_colon_line_handler): New function [!ENABLE_GPGSM].
2001-12-142001-12-14 Marcus Brinkmann <[email protected]>Marcus Brinkmann1-1/+1
* engine-gpgsm.c (_gpgme_gpgsm_op_verify): Put TEXT into message_data, not SIG. (_gpgme_gpgsm_op_sign): Use `--detached', not `--detach'. * sign.c (sign_status_handler): Call _gpgme_passphrase_status_handler early. 2001-12-14 Marcus Brinkmann <[email protected]>
2001-12-142001-12-14 Marcus Brinkmann <[email protected]>Marcus Brinkmann1-1/+1
* engine-gpgsm.c (_gpgme_gpgsm_op_verify): Put TEXT into message_data, not SIG.
2001-12-142001-12-14 Marcus Brinkmann <[email protected]>Marcus Brinkmann1-2/+0
* engine-gpgsm.c: Revert last change.
2001-12-142001-12-14 Marcus Brinkmann <[email protected]>Marcus Brinkmann1-2/+2
* configure.ac (GPG): Substitute this variable. (GPGSM): Likewise. tests/ CVS2001-12-14 Marcus Brinkmann <[email protected]> * gpg/Makefile.am (GPG): Set to @GPG_PATH@. (./pubring.gpg): Use $(GPG) instead gpg. (./secring.gpg): Likewise. * gpgsm/t-import.c (main): Remove third test case. * gpgsm/Makefile.am (GPGSM): Set to @GPGSM@. (all-local): New target. (./pubcerts.kbx): Likewise. * gpgsm/t-encrypt.c: New file. * gpgsm/Makefile.am (TESTS): Add t-encrypt.
2001-12-142001-12-14 Marcus Brinkmann <[email protected]>Marcus Brinkmann1-0/+2
* engine-gpgsm.c (gpgsm_status_handler): Freeze the output file handler when ending this operation, otherwise the wait function will sit on it.
2001-12-14gpgme/Marcus Brinkmann1-27/+69
2001-12-14 Marcus Brinkmann <[email protected]> * engine-gpgsm.c (struct gpgsm_object_s): New member colon.attic. (_gpgme_gpgsm_new): Initialize some more members. (_gpgme_gpgsm_release): Free the colon line handler's attic line. (gpgsm_status_handler): Rework the inline-data processing. tests/ 2001-12-14 Marcus Brinkmann <[email protected]> * gpgsm/t-keylist.c: New file. * gpgsm/Makefile.am (TESTS): Add t-keylist.
2001-12-132001-12-13 Marcus Brinkmann <[email protected]>Marcus Brinkmann1-1/+2
* engine-gpgsm.c (_gpgme_gpgsm_op_encrypt): Do not add `armor' option to `ENCRYPT'. * engine-gpgsm.c (gpgsm_set_recipients): Free LINE when returning successfully.
2001-12-132001-12-13 Marcus Brinkmann <[email protected]>Marcus Brinkmann1-31/+54
* engine-gpgsm.c (close_notify_handler): New function. (_gpgme_gpgsm_new): Manage the file descriptors a bit differently. Do not set close-on-exec flags. (_gpgme_gpgsm_op_decrypt): Do not set message_fd to -1, this is done by the close handler. (_gpgme_gpgsm_op_encrypt): Likewise. (_gpgme_gpgsm_op_import): Likewise (also for output_fd). (_gpgme_gpgsm_op_keylist): Likewise (also for input_fd and output_fd). (_gpgme_gpgsm_op_sign): Likewise. (_gpgme_gpgsm_op_verify): Likewise, but for output_fd. * posix-io.c (_gpgme_io_pipe): Set the close-on-exec flag for the non-inherited file descriptor index of the pipe.
2001-12-13* engine-gpgsm.c (_gpgme_gpgsm_set_colon_line_handler): New.Werner Koch1-30/+83
(gpgsm_status_handler): Pass datalines to a colon handler * engine.c (_gpgme_engine_set_colon_line_handler): Set the colon handler for gpgsm. * engine-gpgsm.c (_gpgme_gpgsm_op_keylist): Allow NULL for pattern. (gpgsm_assuan_simple_command): Removed underscore from assuan_write_line. (_gpgme_gpgsm_start): Ditto. (gpgsm_assuan_simple_command): Replaced interal Assuan read function by the new assuan_read_line. Removed the use of the internal header. (gpgsm_status_handler): Ditto. Use the new assuan_pending_line. (_gpgme_gpgsm_start): Use the documented way to get an fd from assuan.
2001-12-13* engine-gpgsm.c (_gpgme_gpgsm_op_keylist): Allow NULL forWerner Koch1-4/+8
pattern. (gpgsm_assuan_simple_command): Removed underscore from assuan_write_line. (_gpgme_gpgsm_start): Ditto. * keylist.c (keylist_colon_handler): Handle "crt" records * key.h (gpgme_key_s): Add an x509 flag. * key.c (parse_x509_user_id): New. (_gpgme_key_append_name): Handle x.509 names. However, it does not yet work.
2001-12-052001-12-05 Marcus Brinkmann <[email protected]>Marcus Brinkmann1-17/+7
* engine-gpgsm.c (gpgsm_status_handler): Make it work with current version of assuan.
2001-12-052001-12-05 Marcus Brinkmann <[email protected]>Marcus Brinkmann1-11/+18
* engine-gpgsm.c (gpgsm_set_fd): Accept one more argument OPT. (_gpgme_gpgsm_op_encrypt): Pass armor argument to gpgsm_set_fd for output descriptor. (_gpgme_gpgsm_op_sign): Likewise.
2001-11-262001-11-26 Marcus Brinkmann <[email protected]>Marcus Brinkmann1-1/+1
* engine-gpgsm.c (_gpgme_gpgsm_op_sign): Fix stupid typo. 2001-11-23 Marcus Brinkmann <[email protected]>
2001-11-242001-11-24 Marcus Brinkmann <[email protected]>Marcus Brinkmann1-35/+53
* engine-gpgsm.c (gpgsm_status_handler): Don't break if bsearch fails. Deal with assuan read line returning more than one line (for now).
2001-11-232001-11-23 Marcus Brinkmann <[email protected]>Marcus Brinkmann1-2/+22
* engine-gpgsm.c (_gpgme_gpgsm_op_sign): Implement it according to the current protocol definition.
2001-11-232001-11-23 Marcus Brinkmann <[email protected]>Marcus Brinkmann1-0/+4
* engine-gpgsm.c (_gpgme_gpgsm_new): Set CLOEXEC flag for parent ends of the pipe.
2001-11-222001-11-22 Marcus Brinkmann <[email protected]>Marcus Brinkmann1-2/+36
* engine-gpgsm.c: Include stdlib.h and string.h. Also include, for now, rungpg.h and status-table.h. (gpgsm_status_handler): Implement more of the status handler.
2001-11-222001-11-22 Marcus Brinkmann <[email protected]>Marcus Brinkmann1-10/+212
* engine.c (_gpgme_engine_op_decrypt): Implement CMS case. (_gpgme_engine_op_delete): Likewise. (_gpgme_engine_op_encrypt): Likewise. (_gpgme_engine_op_export): Likewise. (_gpgme_engine_op_genkey): Likewise. (_gpgme_engine_op_keylist): Likewise. (_gpgme_engine_op_sign): Likewise. (_gpgme_engine_op_trustlist): Likewise. * engine-gpgsm.c (_gpgme_gpgsm_op_encrypt): New function. (gpgsm_assuan_simple_command): Likewise. (gpgsm_set_recipients): Likewise. (gpgsm_set_fd): Reimplement using gpgsm_assuan_simple_command. (_gpgme_gpgsm_op_delete): New function. (_gpgme_gpgsm_op_export): Likewise. (_gpgme_gpgsm_op_genkey): Likewise. (_gpgme_gpgsm_op_sign): Likewise. (_gpgme_gpgsm_op_keylist): Likewise. (_gpgme_gpgsm_op_trustlist): Likewise. (_gpgme_gpgsm_release): Release command. (_gpgme_gpgsm_op_decrypt): Allocate command. (_gpgme_gpgsm_op_import): Likewise. (gpgsm_status_handler): Also treat `ERR' strings as EOF.
2001-11-222001-11-22 Marcus Brinkmann <[email protected]>Marcus Brinkmann1-1/+57
* engine-gpgsm.c (_gpgme_gpgsm_op_decrypt): New function. (_gpgme_gpgsm_op_import): Likewise.
2001-11-222001-11-22 Marcus Brinkmann <[email protected]>Marcus Brinkmann1-4/+14
* engine-gpgsm.c: Shuffle around header inclusion a bit, to still keep them seperate. (_gpgme_set_status_handler) [!ENABLE_GPGSM]: New function.
2001-11-22* engine-gpgsm.c: Include more headers so that NULL and mk_errorWerner Koch1-2/+4
is defined even with an undefined GPGSM_PATH.
2001-11-222001-11-22 Marcus Brinkmann <[email protected]>Marcus Brinkmann1-7/+226
* rungpg.c (gpg_inbound_handler, write_mem_data, write_cb_data, gpg_outbound_handler): Moved to ... * data.c (_gpgme_data_inbound_handler, write_mem_data, write_cb_data, _gpgme_data_outbound_handler): ... here. Make the _gpgme_* ones non-static. * data.c: Include io.h. * ops.h (_gpgme_data_inbound_handler): New prototype. (_gpgme_data_outbound_handler): Likewise. (_gpgme_gpg_spawn): Use these new functions. * engine-gpgsm.h (_gpgme_gpgsm_op_decrypt, _gpgme_gpgsm_op_delete, _gpgme_gpgsm_op_encrypt, _gpgme_gpgsm_op_export, _gpgme_gpgsm_op_genkey, _gpgme_gpgsm_op_import, _gpgme_gpgsm_op_keylist, _gpgme_gpgsm_op_sign, _gpgme_gpgsm_op_trustlist, _gpgme_gpgsm_op_verify, _gpgme_gpgsm_start, _gpgme_gpgsm_set_status_handler): New prototype. Include <rungpg.h> for status handler function. * engine-gpgsm.c (struct gpgsm_object_s): New members input_fd, input_data, output_fd, output_data, message_fd, message_data, command and status. (_gpgme_gpgsm_new): Open input, output and message pipes before connecting to the client. Close server's ends afterwards. (_gpgme_gpgsm_release): Close open file descriptors. Remove server process from wait queue. (_gpgme_gpgsm_op_verify, _gpgme_gpgsm_start, _gpgme_gpgsm_set_status_handler, gpgms_status_handler): New function. * engine.c (_gpgme_engine_start): Implement for GPGME_PROTOCOL_CMS. (_gpgme_engine_set_status_handler): Likewise. (_gpgme_engine_op_verify): Likewise.
2001-11-202001-11-20 Marcus Brinkmann <[email protected]>Marcus Brinkmann1-0/+130
* types.h: Add types EngineObject and GpgsmObject. * Makefile.am (libgpgme_la_SOURCES): Add engine-gpgsm.h, engine-gpgsm.c, engine.h and engine.c. * engine.h: New file. * engine.c: Likewise. * engine-gpgsm.h: Likewise. * engine-gpgsm.c: Likewise. * rungpg.c (_gpgme_gpg_get_version): New function. (_gpgme_gpg_check_version): Likewise. * rungpg.h: Add prototypes for _gpgme_gpg_get_version and _gpgme_gpg_check_version. * version.c (compare_versions): Rename to ... (_gpgme_compare_versions): ... this. Make non-static. (gpgme_check_version): Use _gpgme_compare_versions rather than compare_versions. (gpgme_check_engine): Likewise. * ops.h (_gpgme_get_program_version): Add prototype.