gpgme.git
17 years ago2001-12-18 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Tue, 18 Dec 2001 21:02:35 +0000 (21:02 +0000)]
2001-12-18  Marcus Brinkmann  <marcus@g10code.de>

* rungpg.c (struct reap_s, reap_list, reap_list_lock): Moved to ...
* engine.c (struct reap_s, reap_list, reap_list_lock): ... here.
Include `time.h', `sys/types.h', `assert.h', and `sema.h'.

* rungpg.c (_gpgme_engine_add_child_to_reap_list): New function.
(do_reaping, _gpgme_gpg_housecleaning): Moved to ...
* engine.c (do_reaping, _gpgme_engine_housecleaning): ... here.
* rungpg.c (_gpgme_gpg_release): Replace code that is now in its
own function by call to _gpgme_engine_add_child_to_reap_list().

* wait.c: Include `engine.h'.
(run_idle): Call _gpgme_engine_housecleaning(), not
_gpgme_gpg_housecleaning().

17 years agoadded debug message to encrypt() function
Karl-Heinz Zimmer [Tue, 18 Dec 2001 20:13:08 +0000 (20:13 +0000)]
added debug message to encrypt() function

17 years ago2001-12-18 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Tue, 18 Dec 2001 19:54:00 +0000 (19:54 +0000)]
2001-12-18  Marcus Brinkmann  <marcus@g10code.de>

* key.c (_gpgme_key_append_name): Append, not prepend, the uid.
Initialize the next field of the uid structure.
(gpgme_key_get_as_xml): Do not list last uid first.

17 years ago* acinclude.m4 (GNUPG_FIX_HDR_VERSION): Fixed for new automake.
Werner Koch [Tue, 18 Dec 2001 18:46:00 +0000 (18:46 +0000)]
* acinclude.m4 (GNUPG_FIX_HDR_VERSION): Fixed for new automake.

17 years ago2001-12-17 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Mon, 17 Dec 2001 17:08:32 +0000 (17:08 +0000)]
2001-12-17  Marcus Brinkmann  <marcus@g10code.de>

* engine-gpgsm.c (_gpgme_gpgsm_set_colon_line_handler): New
function [!ENABLE_GPGSM].

17 years ago2001-12-16 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Sun, 16 Dec 2001 18:38:03 +0000 (18:38 +0000)]
2001-12-16  Marcus Brinkmann  <marcus@g10code.de>

* gpgsm/Makefile: Rename `pubcerts.kbx' to `pubring.kbx'.

17 years ago2001-12-15 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Sat, 15 Dec 2001 14:13:18 +0000 (14:13 +0000)]
2001-12-15  Marcus Brinkmann  <marcus@g10code.de>

* gpgsm/t-keylist.c (check_two_contexts): Set protocols.

17 years ago2001-12-14 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Fri, 14 Dec 2001 22:32:31 +0000 (22:32 +0000)]
2001-12-14  Marcus Brinkmann  <marcus@g10code.de>

* 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  <marcus@g10code.de>

17 years agoSmall code cleanup.
Marcus Brinkmann [Fri, 14 Dec 2001 22:03:11 +0000 (22:03 +0000)]
Small code cleanup.

17 years ago2001-12-14 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Fri, 14 Dec 2001 22:02:43 +0000 (22:02 +0000)]
2001-12-14  Marcus Brinkmann  <marcus@g10code.de>

* engine-gpgsm.c (_gpgme_gpgsm_op_verify): Put TEXT into
message_data, not SIG.

17 years ago2001-12-14 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Fri, 14 Dec 2001 20:23:18 +0000 (20:23 +0000)]
2001-12-14  Marcus Brinkmann  <marcus@g10code.de>

* gpgsm/t-sign.c: New file.
* gpgsm/Makefile.am (TESTS): Add t-sign.

17 years ago2001-12-14 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Fri, 14 Dec 2001 20:20:12 +0000 (20:20 +0000)]
2001-12-14  Marcus Brinkmann  <marcus@g10code.de>

* engine-gpgsm.c: Revert last change.

17 years ago2001-12-14 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Fri, 14 Dec 2001 19:29:44 +0000 (19:29 +0000)]
2001-12-14  Marcus Brinkmann  <marcus@g10code.de>

* gpgsm/t-decrypt.c: New file.
* gpgsm/567064FE6D14A17B2D811ABB407728BC558AA455: Likewise.
* gpgsm/Makefile.am (TESTS): Add t-decrypt.
(key_id): New variable.
(all-local): New target ./private-keys-v1.d/$(key_id) added.
(./private-keys-v1.d/$(key_id)): New target.

17 years ago2001-12-14 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Fri, 14 Dec 2001 16:08:54 +0000 (16:08 +0000)]
2001-12-14  Marcus Brinkmann  <marcus@g10code.de>

* gpgsm/t-verify.c: New file.
* gpgsm/Makefile.am (TESTS): Add t-verify.

17 years ago2001-12-14 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Fri, 14 Dec 2001 15:35:29 +0000 (15:35 +0000)]
2001-12-14  Marcus Brinkmann  <marcus@g10code.de>

* configure.ac (GPG): Substitute this variable.
(GPGSM): Likewise.

tests/
CVS2001-12-14  Marcus Brinkmann  <marcus@g10code.de>

* 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.

17 years ago2001-12-14 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Fri, 14 Dec 2001 14:43:38 +0000 (14:43 +0000)]
2001-12-14  Marcus Brinkmann  <marcus@g10code.de>

* engine-gpgsm.c (gpgsm_status_handler): Freeze the output file
handler when ending this operation, otherwise the wait function
will sit on it.

17 years agoAdd items about all the new software included.
Marcus Brinkmann [Fri, 14 Dec 2001 01:39:05 +0000 (01:39 +0000)]
Add items about all the new software included.

17 years agoChange history, doubleplusgood.
Marcus Brinkmann [Fri, 14 Dec 2001 01:27:58 +0000 (01:27 +0000)]
Change history, doubleplusgood.

17 years ago2001-12-14 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Fri, 14 Dec 2001 01:22:00 +0000 (01:22 +0000)]
2001-12-14  Marcus Brinkmann  <marcus@g10code.de>

* assuan-buffer.c (_assuan_read_line): New variable ATTICLEN, use
it to save the number of bytes left over after the complete line.
Rediddle the code a bit to make it more clear what happens.

17 years agogpgme/
Marcus Brinkmann [Fri, 14 Dec 2001 00:49:38 +0000 (00:49 +0000)]
gpgme/
2001-12-14  Marcus Brinkmann  <marcus@g10code.de>

* 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  <marcus@g10code.de>

* gpgsm/t-keylist.c: New file.
* gpgsm/Makefile.am (TESTS): Add t-keylist.

17 years agoRevert last change.
Marcus Brinkmann [Fri, 14 Dec 2001 00:29:29 +0000 (00:29 +0000)]
Revert last change.

17 years ago2001-12-14 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Thu, 13 Dec 2001 23:12:37 +0000 (23:12 +0000)]
2001-12-14  Marcus Brinkmann  <marcus@g10code.de>

* assuan-defs.h (LINELENGTH): Define as ASSUAN_LINELENGTH.
assuan.h: Define ASSUAN_LINELENGTH.

17 years ago2001-12-13 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Thu, 13 Dec 2001 22:36:03 +0000 (22:36 +0000)]
2001-12-13  Marcus Brinkmann  <marcus@g10code.de>

* rungpg.c (_gpgme_gpg_spawn): Do not add the fds to the child
list that are not dup'ed, for those the close-on-exec flag is set
now.
* version.c (_gpgme_get_program_version): Remove first entry in
CFD, as the close-on-exec flag is now set for this fd.

17 years ago2001-12-13 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Thu, 13 Dec 2001 22:12:06 +0000 (22:12 +0000)]
2001-12-13  Marcus Brinkmann  <marcus@g10code.de>

* 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.

17 years ago2001-12-13 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Thu, 13 Dec 2001 22:02:08 +0000 (22:02 +0000)]
2001-12-13  Marcus Brinkmann  <marcus@g10code.de>

* 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.

17 years ago2001-12-13 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Thu, 13 Dec 2001 21:51:30 +0000 (21:51 +0000)]
2001-12-13  Marcus Brinkmann  <marcus@g10code.de>

* gpgsm/cert_dfn_pca01.der: New file.
* gpgsm/cert_dfn_pca15.der: Likewise.
* gpgsm/cert_g10code_test1.der: Likewise.
* gpgsm/t-import.c: Likewise.
* gpgsm/Makefile.am (EXTRADIST): Add new files.
(TESTS): Add t-import.

17 years ago2001-12-13 Marcus Brinkmann <marcus@gnu.org>
Marcus Brinkmann [Thu, 13 Dec 2001 21:38:11 +0000 (21:38 +0000)]
2001-12-13  Marcus Brinkmann  <marcus@gnu.org>

* assuan-connect.c (assuan_pipe_connect): Remove code that closes
all the little file descriptors we set up.

17 years ago2001-12-13 Marcus Brinkmann <marcus@gnu.org>
Marcus Brinkmann [Thu, 13 Dec 2001 20:13:34 +0000 (20:13 +0000)]
2001-12-13  Marcus Brinkmann  <marcus@gnu.org>

* assuan-buffer.c (assuan_read_line): Fix order of execution to
get correct return values.

17 years ago* engine-gpgsm.c (_gpgme_gpgsm_set_colon_line_handler): New.
Werner Koch [Thu, 13 Dec 2001 17:37:18 +0000 (17:37 +0000)]
* engine-gpgsm.c (_gpgme_gpgsm_set_colon_line_handler): New.
(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.

17 years ago* assuan-handler.c (assuan_get_active_fds): Fixed silly bug,
Werner Koch [Thu, 13 Dec 2001 17:37:04 +0000 (17:37 +0000)]
* assuan-handler.c (assuan_get_active_fds): Fixed silly bug,
pretty obvious that nobody ever tested this function.

17 years agoimproce memory handling
Karl-Heinz Zimmer [Thu, 13 Dec 2001 15:13:09 +0000 (15:13 +0000)]
improce memory handling

17 years ago.cvsigore updated - I still not tyhing they should go innto the cvs
Werner Koch [Thu, 13 Dec 2001 15:07:59 +0000 (15:07 +0000)]
.cvsigore updated - I still not tyhing they should go innto the cvs

17 years agoSet protocol to CMS to test gpgsm
Werner Koch [Thu, 13 Dec 2001 15:06:56 +0000 (15:06 +0000)]
Set protocol to CMS to test gpgsm

17 years ago* engine-gpgsm.c (_gpgme_gpgsm_op_keylist): Allow NULL for
Werner Koch [Thu, 13 Dec 2001 15:05:35 +0000 (15:05 +0000)]
* 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.
* 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.

17 years agoUpdated Assuan to the current version
Werner Koch [Thu, 13 Dec 2001 15:04:36 +0000 (15:04 +0000)]
Updated Assuan to the current version

17 years ago*** empty log message ***
Werner Koch [Thu, 13 Dec 2001 13:24:33 +0000 (13:24 +0000)]
*** empty log message ***

17 years agoCorrected (for a second time) code status error from previous wrong CVS comits
Karl-Heinz Zimmer [Thu, 6 Dec 2001 17:19:07 +0000 (17:19 +0000)]
Corrected (for a second time) code status error from previous wrong CVS comits

17 years agoCorrected code status error from previous wrong CVS comits
Karl-Heinz Zimmer [Thu, 6 Dec 2001 16:59:09 +0000 (16:59 +0000)]
Corrected code status error from previous wrong CVS comits

17 years ago2001-12-05 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Wed, 5 Dec 2001 20:38:50 +0000 (20:38 +0000)]
2001-12-05  Marcus Brinkmann  <marcus@g10code.de>

* engine-gpgsm.c (gpgsm_status_handler): Make it work with current
version of assuan.

17 years ago2001-12-05 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Wed, 5 Dec 2001 20:37:37 +0000 (20:37 +0000)]
2001-12-05  Marcus Brinkmann  <marcus@g10code.de>

* 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.

17 years agoAdd .cvsignore files. Suggested by Jan-Oliver Wagner <jan@intevation.de>.
Marcus Brinkmann [Wed, 5 Dec 2001 19:50:45 +0000 (19:50 +0000)]
Add .cvsignore files.  Suggested by Jan-Oliver Wagner <jan@intevation.de>.

17 years ago2001-12-05 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Wed, 5 Dec 2001 13:23:59 +0000 (13:23 +0000)]
2001-12-05  Marcus Brinkmann  <marcus@g10code.de>

* keylist.c (gpgme_op_keylist_next): Set pending to 0 if EOF
occurs.

17 years ago2001-11-29 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Wed, 5 Dec 2001 13:21:04 +0000 (13:21 +0000)]
2001-11-29  Marcus Brinkmann  <marcus@g10code.de>

* gpgmeplug.c (checkMessageSignature): Add call to gpgme_set_protocol.

17 years agoadded error detection to signing and encrypting methodes: this has to be improved...
Karl-Heinz Zimmer [Thu, 29 Nov 2001 12:29:55 +0000 (12:29 +0000)]
added error detection to signing and encrypting methodes: this has to be improved furtheron

17 years agoCheck for out-of-memory in signature verification
Matthias Kalle Dalheimer [Mon, 26 Nov 2001 16:43:00 +0000 (16:43 +0000)]
Check for out-of-memory in signature verification

17 years agoenabled fetching meta data after checking of signature(s)
Karl-Heinz Zimmer [Mon, 26 Nov 2001 15:54:12 +0000 (15:54 +0000)]
enabled fetching meta data after checking of signature(s)

17 years ago2001-11-26 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Mon, 26 Nov 2001 11:41:17 +0000 (11:41 +0000)]
2001-11-26  Marcus Brinkmann  <marcus@g10code.de>

* engine-gpgsm.c (_gpgme_gpgsm_op_sign): Fix stupid typo.
2001-11-23  Marcus Brinkmann  <marcus@g10code.de>

17 years agoFilling the SignatureMetaData struct (the crucial code is #ifdef'd out for safety...
Matthias Kalle Dalheimer [Sun, 25 Nov 2001 21:53:39 +0000 (21:53 +0000)]
Filling the SignatureMetaData struct (the crucial code is #ifdef'd out for safety's sake)
Changes to SignatureMetaData
Added SignatureMetaDataExtendedInfo

17 years agochanged specification of SignatureMetaData struct
Karl-Heinz Zimmer [Sun, 25 Nov 2001 20:31:36 +0000 (20:31 +0000)]
changed specification of SignatureMetaData struct

17 years ago[Kalle] signature verification and decoding of encrypted mails
Karl-Heinz Zimmer [Sun, 25 Nov 2001 15:23:21 +0000 (15:23 +0000)]
[Kalle] signature verification and decoding of encrypted mails

17 years agoNow gpgmeplug.c can also create encrypted and signed+encrypted S/MIME mails.
Karl-Heinz Zimmer [Sun, 25 Nov 2001 05:07:44 +0000 (05:07 +0000)]
Now gpgmeplug.c can also create encrypted and signed+encrypted S/MIME mails.

17 years agoadjusted 'encryptMessage' parameters: now also the addressee is given
Karl-Heinz Zimmer [Sun, 25 Nov 2001 03:37:13 +0000 (03:37 +0000)]
adjusted 'encryptMessage' parameters: now also the addressee is given

17 years agoGuess what.
Werner Koch [Sat, 24 Nov 2001 21:27:22 +0000 (21:27 +0000)]
Guess what.

17 years agoUpdated from canonical source location in GnuPG.
Werner Koch [Sat, 24 Nov 2001 21:22:18 +0000 (21:22 +0000)]
Updated from canonical source location in GnuPG.

17 years ago2001-11-24 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Sat, 24 Nov 2001 19:31:26 +0000 (19:31 +0000)]
2001-11-24  Marcus Brinkmann  <marcus@g10code.de>

* engine-gpgsm.c (gpgsm_status_handler): Don't break if bsearch fails.
Deal with assuan read line returning more than one line (for now).

17 years ago2001-11-24 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Sat, 24 Nov 2001 17:11:15 +0000 (17:11 +0000)]
2001-11-24  Marcus Brinkmann  <marcus@g10code.de>

* Makefile.am (libgpgsmplug_la_SOURCES): Fix source file.

17 years agosigning now returns only the SIGNATURE - not the original text - since building of...
Karl-Heinz Zimmer [Sat, 24 Nov 2001 10:51:55 +0000 (10:51 +0000)]
signing now returns only the SIGNATURE - not the original text - since building of the S/MIME object is done in the calling program (the MUA...)

17 years ago2001-11-23 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Fri, 23 Nov 2001 11:52:09 +0000 (11:52 +0000)]
2001-11-23  Marcus Brinkmann  <marcus@g10code.de>

* engine-gpgsm.c (_gpgme_gpgsm_op_sign): Implement it according to
the current protocol definition.

17 years agosigning of mail bodies is working now - buuuuut: I changed the behaviour of the ...
Karl-Heinz Zimmer [Fri, 23 Nov 2001 02:08:53 +0000 (02:08 +0000)]
signing of mail bodies is working now - buuuuut: I changed the behaviour of the 'signMessage()' function, it now returns *only* the signature part (with a trailing zero).  This is neccessary to avoid confugion at the KMail side: otherwise KMail might try to convert the whole MIME block into quoted printable - of course this is only allowed for the body part but not for the signature part.

17 years agoExplain more of the build system.
Marcus Brinkmann [Fri, 23 Nov 2001 01:12:04 +0000 (01:12 +0000)]
Explain more of the build system.

17 years ago2001-11-23 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Fri, 23 Nov 2001 00:48:51 +0000 (00:48 +0000)]
2001-11-23  Marcus Brinkmann  <marcus@g10code.de>

* engine-gpgsm.c (_gpgme_gpgsm_new): Set CLOEXEC flag for parent
ends of the pipe.

17 years ago2001-11-22 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Thu, 22 Nov 2001 21:27:41 +0000 (21:27 +0000)]
2001-11-22  Marcus Brinkmann  <marcus@g10code.de>

* 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.

17 years ago2001-11-22 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Thu, 22 Nov 2001 20:48:37 +0000 (20:48 +0000)]
2001-11-22  Marcus Brinkmann  <marcus@g10code.de>

* 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.

17 years ago2001-11-22 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Thu, 22 Nov 2001 18:48:53 +0000 (18:48 +0000)]
2001-11-22  Marcus Brinkmann  <marcus@g10code.de>

* gpgme.h (gpgme_set_protocol): New prototype.

2001-11-22  Marcus Brinkmann  <marcus@g10code.de>

* Makefile.am (libgpgsmplug_la_LIBADD): New variable.
(libgpgsmplug_la_LDFLAGS): Likewise.
(libgpgsmplug_la_SOURCES): Likewise.
(lib_LTLIBRARIES): Add libgpgsmplug.la.
(INCLUDES): Include the local gpgme.h.

* gpgmeplug.c (signMessage): Set protocol.
(GPGMEPLUG_PROTOCOL) [!GPGMEPLUG_PROTOCOL]: Set
GPGMEPLUG_PROTOCOL.
* gpgsmplug.c: New file.

17 years agoremoved stupid C bug (malloc of strlen(..) instead of 1+strlen)
Karl-Heinz Zimmer [Thu, 22 Nov 2001 17:32:21 +0000 (17:32 +0000)]
removed stupid C bug (malloc of strlen(..) instead of 1+strlen)

17 years ago2001-11-22 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Thu, 22 Nov 2001 15:22:27 +0000 (15:22 +0000)]
2001-11-22  Marcus Brinkmann  <marcus@g10code.de>

* engine-gpgsm.c (_gpgme_gpgsm_op_decrypt): New function.
(_gpgme_gpgsm_op_import): Likewise.

17 years ago2001-11-22 Marcus Brinkmann <marcus@gnu.org>
Marcus Brinkmann [Thu, 22 Nov 2001 13:47:46 +0000 (13:47 +0000)]
2001-11-22  Marcus Brinkmann  <marcus@gnu.org>

* engine-gpgsm.c: Shuffle around header inclusion a bit, to still
keep them seperate.
(_gpgme_set_status_handler) [!ENABLE_GPGSM]: New function.

17 years ago* engine-gpgsm.c: Include more headers so that NULL and mk_error
Werner Koch [Thu, 22 Nov 2001 10:29:52 +0000 (10:29 +0000)]
* engine-gpgsm.c: Include more headers so that NULL and mk_error
is defined even with an undefined GPGSM_PATH.

17 years agoNow send the signature back to the calling function (instead of just printing it...
Karl-Heinz Zimmer [Thu, 22 Nov 2001 09:36:53 +0000 (09:36 +0000)]
Now send the signature back to the calling function (instead of just printing it to stdout)

17 years ago2001-11-22 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Thu, 22 Nov 2001 03:08:58 +0000 (03:08 +0000)]
2001-11-22  Marcus Brinkmann  <marcus@g10code.de>

* 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.

17 years ago * assuan-connect.c (assuan_get_pid): New function.
Marcus Brinkmann [Thu, 22 Nov 2001 03:08:07 +0000 (03:08 +0000)]
* assuan-connect.c (assuan_get_pid): New function.
* assuan.h: Prototype.  Include sys/types.h for pid_t,
and stdio.h for FILE *.

17 years ago2001-11-22 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Thu, 22 Nov 2001 03:07:10 +0000 (03:07 +0000)]
2001-11-22  Marcus Brinkmann  <marcus@g10code.de>

* configure.ac (AC_CONFIG_FILES): Add tests/gpg/Makefile and
tests/gpgsm/Makefile.

17 years ago2001-11-22 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Thu, 22 Nov 2001 03:01:26 +0000 (03:01 +0000)]
2001-11-22  Marcus Brinkmann  <marcus@g10code.de>

* gpg/: New directory.
* Makefile.am, t-verify.c, t-encrypt.c, t-signers.c, t-trustlist.c,
t-sign.c, t-keylist.c, t-import.c, t-genkey.c, t-export.c,
t-decrypt-verify.c, t-decrypt.c, t-version.c, t-data.c, mkdemodirs.
cipher-1.asc, cipher-2.asc, geheim.txt, pubdemo.asc, pubkey-1.asc,
secdemo.asc, seckey-1.asc): Move to sub directory gpg/.

* gpg/Makefile.am (INCLUDES): Include gpgme/, not include/ and
intl/.
(LDD): Correct relative path to gpgme library.
(TESTS): Remove t-version and t-data.
* gpg/t-verify.c, gpg/t-encrypt.c, gpg/t-signers.c, gpg/t-trustlist.c,
gpg/t-sign.c, gpg/t-keylist.c, gpg/t-import.c, gpg/t-genkey.c,
gpg/t-export.c, gpg/t-decrypt-verify.c, gpg/t-decrypt.c,
t-version.c, t-data.c): Include gpgme.h, not "../gpgme/gpgme.h".

* Makefile.am: New file.
* gpgsm/: New directory.
* gpgsm/Makefile.am: New file.

17 years agocorrected includes
Karl-Heinz Zimmer [Wed, 21 Nov 2001 23:34:51 +0000 (23:34 +0000)]
corrected includes

17 years agocreate signature (and write it to stdout for testing)
Karl-Heinz Zimmer [Wed, 21 Nov 2001 23:23:24 +0000 (23:23 +0000)]
create signature (and write it to stdout for testing)

17 years agochange Makefile to create shared lib
Karl-Heinz Zimmer [Wed, 21 Nov 2001 23:20:49 +0000 (23:20 +0000)]
change Makefile to create shared lib

17 years agocosmetic change
Marcus Brinkmann [Wed, 21 Nov 2001 21:32:33 +0000 (21:32 +0000)]
cosmetic change

17 years ago2001-11-21 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Wed, 21 Nov 2001 21:31:07 +0000 (21:31 +0000)]
2001-11-21  Marcus Brinkmann  <marcus@g10code.de>

* Makefile.am (gpgmeplug): New variable, set to gpgmeplug if
[BUILD_GPGMEPLUG].
* configure.ac (AC_CONFIG_FILES): Add gpgmeplug/Makefile.
Support --enable-gpgmeplug.

17 years ago.
Marcus Brinkmann [Wed, 21 Nov 2001 21:09:50 +0000 (21:09 +0000)]
.

17 years ago2001-11-21 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Wed, 21 Nov 2001 21:08:02 +0000 (21:08 +0000)]
2001-11-21  Marcus Brinkmann  <marcus@g10code.de>

* gpgmeplug.c: Include config.h only if [HAVE_CONFIG_H].  Do not
include util.h.
(deinitialize): Use free, not _gpgme_free.
(setDirectoryServers): Use calloc, not xtrycalloc.  Use free, not
_gpgme_free.  Use malloc instead xtrymalloc.
(appendDirectoryServer): Use realloc, not xtryrealloc.

17 years ago2001-11-21 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Wed, 21 Nov 2001 20:54:39 +0000 (20:54 +0000)]
2001-11-21  Marcus Brinkmann  <marcus@g10code.de>

* autogen.sh: Tighten version dependencies.

17 years agofinished implementation of DirectoryServices storing/retrieving
Karl-Heinz Zimmer [Wed, 21 Nov 2001 16:57:54 +0000 (16:57 +0000)]
finished implementation of DirectoryServices storing/retrieving

17 years ago(security checkin) currently working on signing messages
Karl-Heinz Zimmer [Wed, 21 Nov 2001 14:18:52 +0000 (14:18 +0000)]
(security checkin) currently working on signing messages

17 years agoconfigure struct updated according to modified cryptplug.h
Karl-Heinz Zimmer [Wed, 21 Nov 2001 10:55:02 +0000 (10:55 +0000)]
configure struct updated according to modified cryptplug.h

17 years agoGPGME Plug-In initial checkin. Saving/restoring of configuration is working.
Karl-Heinz Zimmer [Wed, 21 Nov 2001 09:42:08 +0000 (09:42 +0000)]
GPGME Plug-In initial checkin.  Saving/restoring of configuration is working.

17 years agoAdded gpgmeplug/ for experiments
Werner Koch [Wed, 21 Nov 2001 09:21:56 +0000 (09:21 +0000)]
Added gpgmeplug/ for experiments

17 years agocorrect history, har har
Marcus Brinkmann [Wed, 21 Nov 2001 03:45:20 +0000 (03:45 +0000)]
correct history, har har

17 years agoadd some more items
Marcus Brinkmann [Wed, 21 Nov 2001 03:43:16 +0000 (03:43 +0000)]
add some more items

17 years ago2001-11-21 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Wed, 21 Nov 2001 03:40:17 +0000 (03:40 +0000)]
2001-11-21  Marcus Brinkmann  <marcus@g10code.de>

* context.h: Do not include rungpg.h, but engine.h.
(struct gpgme_context_s): Replace member gpg with engine.
* gpgme.c (gpgme_release): Release engine, not gpg.

* recipient.c (_gpgme_append_gpg_args_from_recifgpients): Function
moved ...
* rungpg.c (_gpgme_append_gpg_args_from_recipients): ... here.
Make static, change order of arguments, and return an error value.
* ops.h (_gpgme_append_gpg_args_from_recipients): Removed prototype.

* rungpg.h (_gpgme_gpg_op_verify): Add prototype.
(_gpgme_gpg_op_encrypt): Likewise.
(_gpgme_gpg_op_decrypt): Likewise.
(_gpgme_gpg_op_delete): Likewise.
(_gpgme_gpg_op_export): Likewise.
(_gpgme_gpg_op_genkey): Likewise.
(_gpgme_gpg_op_import): Likewise.
(_gpgme_gpg_op_keylist): Likewise.
(_gpgme_gpg_op_sign): Likewise.
(_gpgme_gpg_op_trustlist): Likewise.
* rungpg.c (_gpgme_gpg_op_verify): New function.
(_gpgme_gpg_op_encrypt): Likewise.
(_gpgme_gpg_op_decrypt): Likewise.
(_gpgme_gpg_op_delete): Likewise.
(_gpgme_gpg_op_export): Likewise.
(_gpgme_gpg_op_genkey): Likewise.
(_gpgme_gpg_op_import): Likewise.
(_gpgme_gpg_op_keylist): Likewise.
(_gpgme_gpg_op_sign): Likewise.
(_gpgme_gpg_op_trustlist): Likewise.

* engine.h (_gpgme_engine_set_status_handler): Add prototype.
(_gpgme_engine_set_command_handler): Likewise.
(_gpgme_engine_set_colon_line_handler): Likewise.
(_gpgme_engine_op_decrypt): Likewise.
(_gpgme_engine_op_delete): Likewise.
(_gpgme_engine_op_encrypt): Likewise.
(_gpgme_engine_op_export): Likewise.
(_gpgme_engine_op_genkey): Likewise.
(_gpgme_engine_op_import): Likewise.
(_gpgme_engine_op_keylist): Likewise.
(_gpgme_engine_op_sign): Likewise.
(_gpgme_engine_op_trustlist): Likewise.
(_gpgme_engine_op_verify): Likewise.
(_gpgme_engine_start): Likewise.
* engine.c (_gpgme_engine_set_status_handler): New function.
(_gpgme_engine_set_command_handler): Likewise.
(_gpgme_engine_set_colon_line_handler): Likewise.
(_gpgme_engine_op_decrypt): Likewise.
(_gpgme_engine_op_delete): Likewise.
(_gpgme_engine_op_encrypt): Likewise.
(_gpgme_engine_op_export): Likewise.
(_gpgme_engine_op_genkey): Likewise.
(_gpgme_engine_op_import): Likewise.
(_gpgme_engine_op_keylist): Likewise.
(_gpgme_engine_op_sign): Likewise.
(_gpgme_engine_op_trustlist): Likewise.
(_gpgme_engine_op_verify): Likewise.
(_gpgme_engine_start): Likewise.

* verify.c (gpgme_op_verify_start): Reimplement in terms of above
functions.
* encrypt.c (gpgme_op_encrypt_start): Likewise.
* decrypt.c (_gpgme_decrypt_start): Likewise.
* passphrase.c (_gpgme_passphrase_start): Likewise.
* keylist.c (gpgme_op_keylist_start): Likewise.

17 years ago2001-11-20 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Tue, 20 Nov 2001 06:04:15 +0000 (06:04 +0000)]
2001-11-20  Marcus Brinkmann  <marcus@g10code.de>

* 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.

17 years agoremove some CVS conflict cruft
Marcus Brinkmann [Tue, 20 Nov 2001 06:03:02 +0000 (06:03 +0000)]
remove some CVS conflict cruft

17 years ago2001-11-20 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Tue, 20 Nov 2001 06:01:24 +0000 (06:01 +0000)]
2001-11-20  Marcus Brinkmann  <marcus@g10code.de>

* 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.

17 years ago2001-11-20 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Tue, 20 Nov 2001 05:27:46 +0000 (05:27 +0000)]
2001-11-20  Marcus Brinkmann  <marcus@g10code.de>

* Makefile.am (SUBDIRS): Support building the assuan library
(currently if GPGSM_PATH is set)..
* configure.ac: Support building the assuan library.
* assuan: New directory, populated with the Assuan library
(copied from the newpg repository).

gpgme/
2001-11-20  Marcus Brinkmann  <marcus@g10code.de>

* Makefile.am (libgpgme_la_INCLUDES): Remove obsolete directive.
(AM_CPPFLAGS): New directive [BUILD_ASSUAN].
(libgpgme_la_LIBADD): Likewise.

17 years ago2001-11-20 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Tue, 20 Nov 2001 04:02:55 +0000 (04:02 +0000)]
2001-11-20  Marcus Brinkmann  <marcus@g10code.de>

* configure.ac (NEED_GPGSM_VERSION): New variable.  Treat it
similarly to NEED_GPGSM_VERSION.
* acconfig.h: Likewise.

17 years ago2001-11-20 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Tue, 20 Nov 2001 04:02:38 +0000 (04:02 +0000)]
2001-11-20  Marcus Brinkmann  <marcus@g10code.de>

* version.c: Remove global variables lineno and
tmp_engine_version.
(version_handler): Removed.
(_gpgme_get_program_version): New function.
(get_engine_info): Don't use context and version_handler,
but _gpgme_get_program_version.
* ops.h (_gpgme_get_program_version): Add prototype for
_gpgme_get_program_version (we expect to use it elsewhere soon).

17 years ago2001-11-18 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Sun, 18 Nov 2001 03:31:31 +0000 (03:31 +0000)]
2001-11-18  Marcus Brinkmann  <marcus@g10code.de>

* configure.in: Renamed to ...
* configure.ac: ... this.  Update to autoconf 2.52.  Lots of small
changes in the transition.  Support --with-gpg=PATH and
--with-gpgsm=PATH options.  Check if test suites can be run.
* acconfig.h: Add GPGSM_PATH.
* Makefile.am: New variable `tests', set to `tests' if
RUN_GPG_TESTS.
(SUBDIRS): Replace string `tests' with variable `tests'.

gpgme/
2001-11-18  Marcus Brinkmann  <marcus@g10code.de>

* configure.in: Renamed to ...
* configure.ac: ... this.  Update to autoconf 2.52.  Lots of small
changes in the transition.  Support --with-gpg=PATH and
--with-gpgsm=PATH options.  Check if test suites can be run.
* acconfig.h: Add GPGSM_PATH.
* Makefile.am: New variable `tests', set to `tests' if
RUN_GPG_TESTS.
(SUBDIRS): Replace string `tests' with variable `tests'.

17 years agoFix small error.
Marcus Brinkmann [Fri, 16 Nov 2001 12:13:01 +0000 (12:13 +0000)]
Fix small error.

17 years ago * TODO: Remove obsolete items, categorize another.
Marcus Brinkmann [Fri, 16 Nov 2001 01:44:49 +0000 (01:44 +0000)]
* TODO: Remove obsolete items, categorize another.

* NEWS: Add new feature decrypt-verify.

17 years agogpgme/
Marcus Brinkmann [Fri, 16 Nov 2001 01:37:06 +0000 (01:37 +0000)]
gpgme/
2001-11-16  Marcus Brinkmann  <marcus@g10code.de>

* decrypt-verify.c: New file.
* Makefile.am (libgpgme_la_SOURCES): Add decrypt-verify.c.
* types.h: Add decrypt-verify types.
* ops.h: Likewise.
* context.h: Add result type for decrypt-verify.
* gpgme.h: Add decrypt-verify prototypes.

* decrypt.c (decrypt_status_handler): Renamed to ...
(_gpgme_decrypt_status_handler): ... this.  Make non-static.
(_gpgme_decrypt_start): New function, derived from
gpgme_op_decrypt_start.
(gpgme_op_decrypt_start): Reimplement in terms of
_gpgme_decrypt_start.
(_gpgme_decrypt_result): New function to retrieve error value.
(gpgme_op_decrypt): Use _gpgme_decrypt_result.
* ops.h: Add prototypes for new functions.

* verify.c (verify_status_handler): Renamed to ...
(_gpgme_verify_status_handler): ... this.  Make non-static.
(gpgme_op_verify_start): Use new function name.
(intersect_stati): Renamed to ...
(_gpgme_intersect_stati): ... this.  Make non-static.
(gpgme_op_verify): Use new name.
* ops.h: Add prototypes for new functions.

tests/
2001-11-16  Marcus Brinkmann  <marcus@g10code.de>

* Makefile.am (TESTS): Add t-decrypt-verify.
* t-decrypt-verify.c: New file.
* cipher-2.asc: Likewise.

17 years ago2001-11-16 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Fri, 16 Nov 2001 00:20:11 +0000 (00:20 +0000)]
2001-11-16  Marcus Brinkmann  <marcus@g10code.de>

* passphrase.c: New file.
* Makefile.am (libgpgme_la_SOURCES): Add passphrase.c.
* ops.h (_gpgme_passphrase_result): Add prototypes from
passphrase.c.
* types.h: Likewise.
* context.h: Add member passphrase to result.
* gpgme.c (_gpgme_release_result): Release passphrase member.

* decrypt.c: Some formatting and variable name changes (like
CTX instead C).
(struct decrypt_result_s): Remove members now found in
passphrase result.
(_gpgme_release_decrypt_result): Don't release removed members.
(decrypt_status_handler): Call _gpgme_passphrase_status_handler,
and don't handle the cases catched there.
(command_handler): Removed.
(gpgme_op_decrypt_start): Don't set command handler, but invoke
_gpgme_passphrase_start which does it.
(gpgme_op_decrypt): Invoke _gpgme_passphrase_result and drop the
cases covered by it.

* sign.c Some formatting and variable name changes (like
CTX instead C).
(struct sign_result_s): Remove members now found in
passphrase result.
(_gpgme_release_sign_result): Don't release removed members.
(sign_status_handler): Call _gpgme_passphrase_status_handler,
and don't handle the cases catched there.
(command_handler): Removed.
(gpgme_op_sign_start): Don't set command handler, but invoke
_gpgme_passphrase_start which does it.
(gpgme_op_sign): Invoke _gpgme_passphrase_result and drop the
cases covered by it.