Commit Graph

3007 Commits

Author SHA1 Message Date
Werner Koch
43da549e6a * key.c (gpgme_key_get_ulong_attr): Swapped use of can_encrypt and
can_certify to return the requested values.
2002-04-23 09:06:22 +00:00
Marcus Brinkmann
09635ef2e6 doc/
2002-04-23  Marcus Brinkmann  <marcus@g10code.de>

	* gpgme.texi (Passphrase Callback): Document that either return
	argument can be NULL.
	(Progress Meter Callback): Likewise.

gpgme/
2002-04-23  Marcus Brinkmann  <marcus@g10code.de>

	* gpgme.c (gpgme_get_progress_cb): Allow either return parameter
	to be NULL.
	(gpgme_get_passphrase_cb): Likewise.
2002-04-22 22:06:09 +00:00
Marcus Brinkmann
025866092e doc/
2002-04-22  Marcus Brinkmann  <marcus@g10code.de>

	* gpgme.texi (Passphrase Callback): Fix small typo.  Document the
	new function gpgme_get_passphrase_cb.
	(Progress Meter Callback): Document the new function
	gpgme_get_progress_cb.

gpgme/
2002-04-22  Marcus Brinkmann  <marcus@g10code.de>

	* gpgme.c (gpgme_get_passphrase_cb): New function.
	(gpgme_get_progress_cb): New function.
	* gpgme.h: Add new prototypes for gpgme_get_passphrase_cb and
	gpgme_get_progress_cb.
2002-04-22 21:58:26 +00:00
Matthias Kalle Dalheimer
2ee47693c0 More fixes for certificate generation 2002-04-18 19:26:03 +00:00
Matthias Kalle Dalheimer
9da6baf11f Additional parameter for returning the cert length 2002-04-18 07:38:15 +00:00
Karl-Heinz Zimmer
76cc7612bd report both the error-Id and the error-text to the calling program when signing or encrypting of mails could not be done 2002-04-17 15:00:53 +00:00
Matthias Kalle Dalheimer
0fc18236a2 Implemented requesting certs 2002-04-17 14:16:53 +00:00
Marcus Brinkmann
7cb3972a1a 2002-04-16 Marcus Brinkmann <marcus@g10code.de>
* gpgme.texi (Creating a Signature): Fix function name.  Reported
	by Wichert Ackerman <wichert@debian.org>.

2002-03-29  Marcus Brinkmann  <marcus@g10code.de>

	* gpgme.texi (direntry): End index entry with a full stop.
	Patch submitted by Jose Carlos Garcia Sogo <jsogo@debian.org>.
2002-04-16 12:24:02 +00:00
Marcus Brinkmann
990e6924d1 2002-04-05 Marcus Brinkmann <marcus@g10code.de>
* acconfig.h: File removed.
	* configure.ac (NEED_GPG_VERSION): Add description.
	(NEED_GPGSM_VERSION): Likewise.
	(HAVE_DOSISH_SYSTEM): Likewise.
	(HAVE_DRIVE_LETTERS): Likewise.
	(GPG_PATH): Likewise.
	(GPGSM_PATH): Likewise.
	* acinclude.m4 (GNUPG_CHECK_TYPEDEF): Likewise.
2002-04-04 23:31:11 +00:00
Marcus Brinkmann
d30f21c528 2002-04-05 Marcus Brinkmann <marcus@g10code,de>
* gpgsm/Makefile.am (./trustlist.txt): Put more into this file to
	prevent use of gpg-agent.
	(./gpg-agent.conf): Remove target.
	(all-local): Remove ./gpg-agent.conf.
2002-04-04 23:01:31 +00:00
Marcus Brinkmann
9f4af70d4b 2002-04-05 Marcus Brinkmann <marcus@g10code.de>
* gpgsm/t-keylist.c (main): Use gpgme_engine_check_version instead
	gpgme_check_engine.
	* gpgsm/t-encrypt.c (main): Likewise.
2002-04-04 22:22:56 +00:00
Karl-Heinz Zimmer
8f2ab92657 [bug #997] changed 'micalg=pgp-sha1' into 'micalg=sha1' for S/MIME mails 2002-04-03 14:30:51 +00:00
Karl-Heinz Zimmer
02a9610df2 now using gpgme_recipients_add_name instead of gpgme_recipients_add_name_with_validity, see Werner's comment to bug #950 as of Fri, Mar 22 2002 17.15.26 2002-04-02 11:52:55 +00:00
Werner Koch
d31ded8699 *** empty log message *** 2002-04-01 08:51:06 +00:00
Werner Koch
bf58937986 Released 0.3.5 2002-04-01 08:40:10 +00:00
Werner Koch
aa20d6a45a * gpgme.h (GpgmeAttr): Add values for issuer and chaining.
* key.h (gpgme_key_s): Add issuer and chaining elements for X509.
* keylist.c (keylist_colon_handler): Store them.
* key.c	(gpgme_key_release): Free them.
(gpgme_key_get_as_xml,gpgme_key_get_string_attr): Print them.
2002-03-28 17:43:02 +00:00
Werner Koch
dd2cb388a9 * Makefile.am (libgpgme_la_SOURCES): Add mutex.h 2002-03-26 10:15:22 +00:00
Werner Koch
a5914229c4 * gpgmeplug.c: Converted it to real C; i.e. use standard comments -
we are doing ISO C 90.  Transalted a few German remarks and
commented on some things.
2002-03-23 11:35:31 +00:00
Karl-Heinz Zimmer
a88628979f bugfix on new binary-encrypting/signing code 2002-03-22 17:06:43 +00:00
Karl-Heinz Zimmer
cf04fed2de interface change: signMessage() and encryptMessage() now return an additional 'cipherLen' parameter to enable us to handle binary cipher data 2002-03-22 10:40:24 +00:00
Karl-Heinz Zimmer
70251d0f5f changed code according to our hack before CeBIT, we are giving *binary* data to the decryptMessage() and to the checkMessageSignature() methode instead of passing base64 encoded data to them 2002-03-21 21:48:33 +00:00
Werner Koch
30cacfe62c * util.h (struct) [!HAVE_FOPENCOOKIE]: Make sure off_t and ssize_t
are defined.
2002-03-21 19:48:12 +00:00
Matthias Kalle Dalheimer
770116c84f More feature selectors
Plugin says which features it supports
2002-03-21 13:14:20 +00:00
Marcus Brinkmann
6cee0a4f3f 2002-03-17 Marcus Brinkmann <marcus@g10code.de>
* configure.ac: Add automake conditional HAVE_DOSISH_SYSTEM.

gpgme/
2002-03-18  Marcus Brinkmann  <marcus@g10code.de>

	* Makefile.am (system_components): New variable, set depending on
	HAVE_DOSISH_SYSTEM.
	(libgpgme_la_SOURCES): Use system_components.  Remove `syshdr.h'.
	* syshdr.h: File removed.

	* posix-io.c: Remove !HAVE_DOSISH_SYSTEM safeguard.  Clean up source.
	* posix-sema.c: Likewise.
	* posix-util.c: Likewise.

	* w32-io.c: Remove HAVE_DOSISH_SYSTEM safeguard.
	* w32-sema.c: Likewise.
	* w32-util.c: Likewise.

	* posix-io.c: Include `unistd.h', do not include `syshdr.h'.
	* posix-sema.c: Likewise.
	* w32-io.c: Include `io.h', do not include `syshdr.h'
	* w32-sema.c: Likewise.
	* w32-util.c: Likewise.
	* data.c: Do not include `syshdr.h'.
	* wait.c: Likewise.
	* wait.h: Code cleanup.

	* mutex.h: New file.
	* posix-sema.c: Implement.
2002-03-18 00:04:06 +00:00
Marcus Brinkmann
5a24e01ee8 2002-03-17 Marcus Brinkmann <marcus@g10code.de>
* gpgme.texi (Detailed Results): Fix syntax error in last change.
2002-03-18 00:01:51 +00:00
Werner Koch
cb95583ffe removed all the .cvsignre files - they should be local 2002-03-10 18:41:02 +00:00
Werner Koch
d901ebf3b9 Minor doc fixes 2002-03-10 18:35:33 +00:00
Karl-Heinz Zimmer
9c94500486 bugfix in findCertificates function 2002-03-09 16:46:36 +00:00
Karl-Heinz Zimmer
3ec1930ae3 Bugfix: forgot to initialize the list of certificates in findCertificates() before adding the found entries 2002-03-08 18:13:20 +00:00
Karl-Heinz Zimmer
ed9f9969e3 New feature: Ask user which certificate is to be taken when more than one found by the crypto plug-in for a single recipient. - NOTE: This code is not working correctly (yet) so we allways get some *all* keys that are stored by gpg instead of the right key information. 2002-03-08 15:44:09 +00:00
Steffen Hansen
af75bafc1b A little better address-parsing. Not real rfc822 yet, but at least it fetches
the address between < and > now if they are present.
2002-03-08 00:51:25 +00:00
Matthias Kalle Dalheimer
06cc124c5c Support for various warnings about expiring encryption certificates.
Support for checking encryption certificate paths.

Needs GPGME support.
2002-03-07 21:18:27 +00:00
Werner Koch
a86b6932a9 * gpgme.h (gpgme_op_keylist_ext_start): Add prototype. 2002-03-07 19:49:40 +00:00
Steffen Hansen
abd3200211 encryptMessage() now accepts a comma separated list of addressees 2002-03-07 14:10:07 +00:00
Werner Koch
b1970a759e * gpgmeplug.c (signMessage): Fixed offbyone. Don't include the
EOS character into the signature.
(checkMessageSignature): Ditto.
2002-03-06 17:23:17 +00:00
Marcus Brinkmann
12edab6492 Adjust requirement for GpgSM version according to configure.ac. 2002-03-06 15:35:09 +00:00
Marcus Brinkmann
748aa18dc6 doc/
2002-03-06  Marcus Brinkmann  <marcus@g10code.de>

	* gpgme.texi (Encrypting a Plaintext): Document symmetric
	encryption.

gpgme/
2002-03-06  Marcus Brinkmann  <marcus@g10code.de>

	* encrypt.c (_gpgme_encrypt_sym_status_handler): New function.
	(gpgme_op_encrypt_start): New variable SYMMETRIC, set it if RECP
	is null, and if it is set, use _gpgme_encrypt_sym_status_handler
	as status handler and run _gpgme_passphrase_start.
	* rungpg.c (_gpgme_gpg_op_encrypt): If RECP is zero, do symmetric
	encryption.
	* engine-gpgsm.c (_gpgme_gpgsm_op_encrypt): If RECP is zero,
	return error value.

	* rungpg.c (_gpgme_gpg_op_verify): Add "--" argument.

tests/
2002-03-06  Marcus Brinkmann  <marcus@g10code.de>

	* gpg/t-encrypt-sym.c: New file.
	* gpg/Makefile.am (TESTS): Add t-encrypt-sym.
2002-03-06 01:40:25 +00:00
Marcus Brinkmann
7c308977d0 2002-03-06 Marcus Brinkmann <marcus@g10code.de>
* gpgme.texi (Error Strings): Add example.
	* gpgme.texi (Listing Keys): Likewise.
2002-03-06 00:33:50 +00:00
Karl-Heinz Zimmer
704a1b05b3 Changed interface: additionally we now pass the following parameters into the checkMessageSignature function: bool signatureIsBinary - telling us whether the signature is armored ASCII or binary data, int signatureLen - holding the TRUE length of the signature if (and only if) this is binary data 2002-03-05 21:23:58 +00:00
Marcus Brinkmann
b0bfb987af 2002-03-05 Marcus Brinkmann <marcus@g10code.de>
* gpg/Makefile.am (CLEANFILES): Remove random_seed, which is now
	in DISTCLEANFILES.
2002-03-05 20:22:06 +00:00
Werner Koch
6616ce295f * configure.ac: Bumbed version to 0.3.4-cvs to continue development. 2002-03-04 11:39:52 +00:00
Werner Koch
bcd5749348 * gpg/Makefile.am (DISTCLEANFILES): Added.
* configure.ac: Bumbed LT version numbers to (7,1,0), requires
gpgsm 0.3.1.
2002-03-04 11:16:11 +00:00
Marcus Brinkmann
2ea755aaf4 2002-03-03 Marcus Brinkmann <marcus@g10code.de>
* configure.ac (AC_INIT): Change version number to snapshot CVS
	version.
2002-03-03 19:40:13 +00:00
Marcus Brinkmann
3c9959368e doc/
2002-03-03  Marcus Brinkmann  <marcus@g10code.de>

	* gpgme.texi (Information About Keys): Document GPGME_ATTR_EXPIRE.

gpgme/
2002-03-03  Marcus Brinkmann  <marcus@g10code.de>

	* passphrase.c (_gpgme_passphrase_status_handler): Also set the
	error No_Passphrase if only a bad passphrase was provided.
2002-03-03 17:37:34 +00:00
Marcus Brinkmann
7d0eebf41a doc/
2002-03-03  Marcus Brinkmann  <marcus@g10code.de>

	* gpgme.texi (Verify): Document verification of normal and
	cleartext signatures.

gpgme/
2002-03-03  Marcus Brinkmann  <marcus@g10code.de>

	* rungpg.c (_gpgme_gpg_op_verify): If TEXT is of mode
	GPGME_DATA_MODE_IN, construct a command line that stores the
	plaintext in TEXT.
	* verify.c (gpgme_op_verify_start): Accept TEXT being
	uninitialized, and in this case interpret SIG as a normal or
	cleartext signature and TEXT as a return data object.
	* engine-gpgsm.c (_gpgme_gpgsm_op_verify): Likewise.

tests/
2002-03-03  Marcus Brinkmann  <marcus@g10code.de>

	* gpg/t-verify.c (main): Add a few more sanity checks, and a check
	for normal signatures.
2002-03-03 16:46:33 +00:00
Marcus Brinkmann
a38a8c4daa 2002-03-03 Marcus Brinkmann <marcus@g10code.de>
* engine-gpgsm.c (_gpgme_gpgsm_op_keylist_ext) [!ENABLE_GPGSM]:
	Add stub function.
2002-03-03 14:50:29 +00:00
Matthias Kalle Dalheimer
cea9be523e Support for warning when a CRL expires 2002-03-01 17:54:26 +00:00
Matthias Kalle Dalheimer
bf3eccd564 Support for asking the for the PIN a certain number of times. 2002-03-01 16:55:50 +00:00
Matthias Kalle Dalheimer
8b21fdb6b8 Support for checking whether the signer's email address is contained in
his certificate.
2002-02-28 12:09:45 +00:00
Werner Koch
0857c5cfdd * key.h (subkey_s): New member expires_at.
* keylist.c (keylist_colon_handler): Set it here
* key.c (gpgme_key_get_as_xml,gpgme_key_get_ulong_attr): Return it.
2002-02-28 09:53:56 +00:00