Commit Graph

1590 Commits

Author SHA1 Message Date
Marcus Brinkmann
247eecaab9 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.
2001-12-18 19:54:00 +00:00
Werner Koch
ac53a44dfa * acinclude.m4 (GNUPG_FIX_HDR_VERSION): Fixed for new automake. 2001-12-18 18:46:00 +00:00
Marcus Brinkmann
d1384aabc5 2001-12-17 Marcus Brinkmann <marcus@g10code.de>
* engine-gpgsm.c (_gpgme_gpgsm_set_colon_line_handler): New
	function [!ENABLE_GPGSM].
2001-12-17 17:08:32 +00:00
Marcus Brinkmann
2a866e025c 2001-12-16 Marcus Brinkmann <marcus@g10code.de>
* gpgsm/Makefile: Rename `pubcerts.kbx' to `pubring.kbx'.
2001-12-16 18:38:03 +00:00
Marcus Brinkmann
5e667d3c1d 2001-12-15 Marcus Brinkmann <marcus@g10code.de>
* gpgsm/t-keylist.c (check_two_contexts): Set protocols.
2001-12-15 14:13:18 +00:00
Marcus Brinkmann
21b09f74e6 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>
2001-12-14 22:32:31 +00:00
Marcus Brinkmann
017c62f464 Small code cleanup. 2001-12-14 22:03:11 +00:00
Marcus Brinkmann
6493b00042 2001-12-14 Marcus Brinkmann <marcus@g10code.de>
* engine-gpgsm.c (_gpgme_gpgsm_op_verify): Put TEXT into
	message_data, not SIG.
2001-12-14 22:02:43 +00:00
Marcus Brinkmann
35e79617a7 2001-12-14 Marcus Brinkmann <marcus@g10code.de>
* gpgsm/t-sign.c: New file.
	* gpgsm/Makefile.am (TESTS): Add t-sign.
2001-12-14 20:23:18 +00:00
Marcus Brinkmann
63ac7b34b4 2001-12-14 Marcus Brinkmann <marcus@g10code.de>
* engine-gpgsm.c: Revert last change.
2001-12-14 20:20:12 +00:00
Marcus Brinkmann
27b771dbd6 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.
2001-12-14 19:29:44 +00:00
Marcus Brinkmann
9a9eb1dcec 2001-12-14 Marcus Brinkmann <marcus@g10code.de>
* gpgsm/t-verify.c: New file.
	* gpgsm/Makefile.am (TESTS): Add t-verify.
2001-12-14 16:08:54 +00:00
Marcus Brinkmann
a54c0a05b5 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.
2001-12-14 15:35:29 +00:00
Marcus Brinkmann
22bdb71f6a 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.
2001-12-14 14:43:38 +00:00
Marcus Brinkmann
f1cca1847c Add items about all the new software included. 2001-12-14 01:39:05 +00:00
Marcus Brinkmann
3c1ee80648 Change history, doubleplusgood. 2001-12-14 01:27:58 +00:00
Marcus Brinkmann
c6cf950f9e 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.
2001-12-14 01:22:00 +00:00
Marcus Brinkmann
0913218bcc 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.
2001-12-14 00:49:38 +00:00
Marcus Brinkmann
0c05b3d8bd Revert last change. 2001-12-14 00:29:29 +00:00
Marcus Brinkmann
341835864e 2001-12-14 Marcus Brinkmann <marcus@g10code.de>
* assuan-defs.h (LINELENGTH): Define as ASSUAN_LINELENGTH.
	assuan.h: Define ASSUAN_LINELENGTH.
2001-12-13 23:12:37 +00:00
Marcus Brinkmann
f2232e8bc2 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.
2001-12-13 22:36:03 +00:00
Marcus Brinkmann
77a72c0d5e 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.
2001-12-13 22:12:06 +00:00
Marcus Brinkmann
4a55249ee6 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.
2001-12-13 22:02:08 +00:00
Marcus Brinkmann
831692ebf7 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.
2001-12-13 21:51:30 +00:00
Marcus Brinkmann
0dba5161e2 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.
2001-12-13 21:38:11 +00:00
Marcus Brinkmann
05394e788e 2001-12-13 Marcus Brinkmann <marcus@gnu.org>
* assuan-buffer.c (assuan_read_line): Fix order of execution to
	get correct return values.
2001-12-13 20:13:34 +00:00
Werner Koch
3634edf055 * 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.
2001-12-13 17:37:18 +00:00
Werner Koch
b41d06c0a1 * assuan-handler.c (assuan_get_active_fds): Fixed silly bug,
pretty obvious that nobody ever tested this function.
2001-12-13 17:37:04 +00:00
Karl-Heinz Zimmer
cfcac3496a improce memory handling 2001-12-13 15:13:09 +00:00
Werner Koch
9f84291722 .cvsigore updated - I still not tyhing they should go innto the cvs 2001-12-13 15:07:59 +00:00
Werner Koch
4922297af1 Set protocol to CMS to test gpgsm 2001-12-13 15:06:56 +00:00
Werner Koch
0b11af59c7 * 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.
2001-12-13 15:05:35 +00:00
Werner Koch
3de2384ea5 Updated Assuan to the current version 2001-12-13 15:04:36 +00:00
Werner Koch
70720764e1 *** empty log message *** 2001-12-13 13:24:33 +00:00
Karl-Heinz Zimmer
bc11308fa3 Corrected (for a second time) code status error from previous wrong CVS comits 2001-12-06 17:19:07 +00:00
Karl-Heinz Zimmer
08debc7ab2 Corrected code status error from previous wrong CVS comits 2001-12-06 16:59:09 +00:00
Marcus Brinkmann
8cd3d96f2d 2001-12-05 Marcus Brinkmann <marcus@g10code.de>
* engine-gpgsm.c (gpgsm_status_handler): Make it work with current
	version of assuan.
2001-12-05 20:38:50 +00:00
Marcus Brinkmann
62d0374e72 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.
2001-12-05 20:37:37 +00:00
Marcus Brinkmann
ba1e19e10b Add .cvsignore files. Suggested by Jan-Oliver Wagner <jan@intevation.de>. 2001-12-05 19:50:45 +00:00
Marcus Brinkmann
e9ece11e83 2001-12-05 Marcus Brinkmann <marcus@g10code.de>
* keylist.c (gpgme_op_keylist_next): Set pending to 0 if EOF
	occurs.
2001-12-05 13:23:59 +00:00
Marcus Brinkmann
e0da4fbd31 2001-11-29 Marcus Brinkmann <marcus@g10code.de>
* gpgmeplug.c (checkMessageSignature): Add call to gpgme_set_protocol.
2001-12-05 13:21:04 +00:00
Karl-Heinz Zimmer
ee33d9f146 added error detection to signing and encrypting methodes: this has to be improved furtheron 2001-11-29 12:29:55 +00:00
Matthias Kalle Dalheimer
4dcc18b102 Check for out-of-memory in signature verification 2001-11-26 16:43:00 +00:00
Karl-Heinz Zimmer
86490c114b enabled fetching meta data after checking of signature(s) 2001-11-26 15:54:12 +00:00
Marcus Brinkmann
a8c76a0f83 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>
2001-11-26 11:41:17 +00:00
Matthias Kalle Dalheimer
a0f861940e Filling the SignatureMetaData struct (the crucial code is #ifdef'd out for safety's sake)
Changes to SignatureMetaData
Added SignatureMetaDataExtendedInfo
2001-11-25 21:53:39 +00:00
Karl-Heinz Zimmer
aa51d5af33 changed specification of SignatureMetaData struct 2001-11-25 20:31:36 +00:00
Karl-Heinz Zimmer
9e24b66475 [Kalle] signature verification and decoding of encrypted mails 2001-11-25 15:23:21 +00:00
Karl-Heinz Zimmer
14aa91a95b Now gpgmeplug.c can also create encrypted and signed+encrypted S/MIME mails. 2001-11-25 05:07:44 +00:00
Karl-Heinz Zimmer
49b7969a49 adjusted 'encryptMessage' parameters: now also the addressee is given 2001-11-25 03:37:13 +00:00