Karl-Heinz Zimmer [Fri, 31 May 2002 12:00:18 +0000 (12:00 +0000)]
Bugfix: use fingerprint as found in "fpr" only if no key was found by gpgme_get_sig_key()
Karl-Heinz Zimmer [Fri, 31 May 2002 11:08:54 +0000 (11:08 +0000)]
Matze's patch for showing colored bars at S/MIME messages as well as at OpenPGP messages.
Karl-Heinz Zimmer [Fri, 31 May 2002 09:28:58 +0000 (09:28 +0000)]
more error handling
Steffen Hansen [Thu, 30 May 2002 17:19:11 +0000 (17:19 +0000)]
small fix
Werner Koch [Thu, 30 May 2002 09:06:45 +0000 (09:06 +0000)]
* key.c (gpgme_key_get_string_attr): Return NULL when asking for
an issuer with IDX > 0. We don't support altIssuerNames for now.
Steffen Hansen [Thu, 30 May 2002 06:24:19 +0000 (06:24 +0000)]
* cryptplug.h, gpgmeplug.c: Added certificate info listing functions.
Not yet complete.
Converted more C99 style comments to "classic" style.
Marcus Brinkmann [Sun, 26 May 2002 20:12:51 +0000 (20:12 +0000)]
2002-05-26 Marcus Brinkmann <marcus@g10code.de>
* gpgme.texi: Some typographical correctons throughout.
Marcus Brinkmann [Sun, 26 May 2002 19:51:53 +0000 (19:51 +0000)]
2002-05-26 Marcus Brinkmann <marcus@g10code.de>
* gpg/Makefile.am (all-local): Remove dependency on ./secring.gpg.
(./secring.gpg): Remove target, and move all rules for this target
to ...
(./pubring.gpg): ... here. This was necessary because GnuPG 1.0.7
does create an empty secring.gpg file when importing public keys.
Werner Koch [Wed, 22 May 2002 06:35:07 +0000 (06:35 +0000)]
* engine-gpgsm.c (_gpgme_gpgsm_op_keylist_ext): Aehmm, added
missing variable definition. Oohh - Marcus was faster.
Marcus Brinkmann [Wed, 22 May 2002 01:22:57 +0000 (01:22 +0000)]
2002-05-22 Marcus Brinkmann <marcus@gnu.org>
* engine-gpgsm.c (_gpgme_gpgsm_op_keylist_ext): Fix last change.
Werner Koch [Tue, 21 May 2002 15:14:35 +0000 (15:14 +0000)]
* engine-gpgsm.c (_gpgme_gpgsm_op_keylist)
(_gpgme_gpgsm_op_keylist_ext): Pass the keylist mode to gpgsm.
* configure.ac (NEED_GPGSM_VERSION): We need gpgsm 0.3.7.
Werner Koch [Fri, 10 May 2002 10:42:45 +0000 (10:42 +0000)]
* key.h (gpgme_key_s): Add OTRUST.
* keylist.c (set_ownertrust): New.
(keylist_colon_handler): Get the ownertrust value
* key.c (gpgme_key_get_string_attr,gpgme_key_get_ulong_attr):
Return that value.
Marcus Brinkmann [Thu, 9 May 2002 06:49:40 +0000 (06:49 +0000)]
2002-05-09 Marcus Brinkmann <marcus@g10code.de>
* gpgme.texi (Using Automake): New section.
Marcus Brinkmann [Thu, 9 May 2002 06:49:09 +0000 (06:49 +0000)]
Bump version numbers in requirements.
Marcus Brinkmann [Thu, 9 May 2002 03:39:18 +0000 (03:39 +0000)]
2002-05-09 Marcus Brinkmann <marcus@g10code.de>
* gpgme.texi (Multi Threading): Escape { and }.
Marcus Brinkmann [Thu, 9 May 2002 03:38:12 +0000 (03:38 +0000)]
doc/
2002-05-09 Marcus Brinkmann <marcus@g10code.de>
* gpgme.texi (Overview): Replace note about thread-safeness.
(Multi Threading): New section.
gpgme/
2002-05-08 Marcus Brinkmann <marcus@g10code.de>
* w32-util.c: New static variable GET_PATH_LOCK.
(_gpgme_get_gpg_path): Remove superfluous NULL initializer.
Take lock while determining path.
(_gpgme_get_gpgsm_path): Likewise.
* version.c (do_subsystem_inits): Set DONE to 1 after
initialization.
(gpgme_get_engine_info): New variable ENGINE_INFO_LOCK. Take lock
while determining engine info.
* rungpg.c (_gpgme_gpg_get_version): New variable
GPG_VERSION_LOCK. Take the lock while determining the program
version.
* posix-io.c: Include "sema.h".
(_gpgme_io_spawn): New variable FIXED_SIGNALS_LOCK. Take the lock
while fixing the signals.
(_gpgme_io_select): Make READFDS and WRITEFDS non-static.
* key.c: Include "sema.h". New globals KEY_CACHE_LOCK and
KEY_REF_LOCK.
(capabilities_to_string): Make STRINGS very const.
(_gpgme_key_cache_add): Lock the key cache.
(_gpgme_key_cache_get): Likewise.
(gpgme_key_ref, gpgme_key_release): Lock the key_ref_lock.
* import.c (append_xml_impinfo): Make IMPORTED_FIELDS and
IMPORT_RES_FIELDS very const. Make FIELD and FIELD_NAME a litle
const.
* engine.c (_gpgme_engine_get_info): New variable
ENGINE_INFO_LOCK. Take lock while determining engine info.
* engine-gpgsm.c: Include "sema.h".
(_gpgme_gpgsm_get_version): New variable GPGSM_VERSION_LOCK. Take
lock while getting program version.
Karl-Heinz Zimmer [Wed, 8 May 2002 12:14:13 +0000 (12:14 +0000)]
revoce the previous commit, this was done erroneously
Karl-Heinz Zimmer [Wed, 8 May 2002 12:05:17 +0000 (12:05 +0000)]
Include the protocol parameter of multipart/.. content-type messages into double quotes to fullify requirements of the german government (see BSI document Technische Grundlagen - Tailoring MTTv2, page 60)
Marcus Brinkmann [Wed, 8 May 2002 04:22:07 +0000 (04:22 +0000)]
Add some items and comments.
Marcus Brinkmann [Wed, 8 May 2002 04:04:12 +0000 (04:04 +0000)]
2002-05-08 Marcus Brinkmann <marcus@g10code.de>
* debug.h: New file.
* Makefile.am (libgpgme_la_SOURCES): Add debug.h.
* util.h: Removed all prototypes and declarations related to
debugging. Include "debug.h".
* debug.c (debug_level): Comment variable and remove superfluous
zero initializer.
(errfp): Likewise.
(_gpgme_debug_enabled): Function removed.
(struct debug_control_s): Definition removed.
(_gpgme_debug_level): Function removed.
(_gpgme_debug_begin): Rewritten to use vasprintf. Accept a
pritnf-style format specification and a variable number of
arguments.
(_gpgme_debug_add): Rewritten using vasprintf. Expect that format
starts out with "%s" for simplicity.
(_gpgme_debug_end): Rewritten using vasprintf. Do not accept a
TEXT argument anymore.
* posix-io.c (_gpgme_io_select): Use new level argument for
DEBUG_BEGIN instead explicit if construct.
* debug.c (debug_init): Remove superfluous zero initializer,
remove volatile flag of INITIALIZED. Do not use the
double-checked locking algorithm, it is fundamentally flawed and
will empty your fridge (on a more serious note, despite the
volatile flag it doesn't give you the guarantee you would expect,
for example on a DEC Alpha or an SMP machine. The volatile only
serializes accesses to the volatile variable, but not to the other
variables).
Marcus Brinkmann [Wed, 8 May 2002 03:57:42 +0000 (03:57 +0000)]
2002-05-08 Marcus Brinkmann <marcus@g10code.de>
* debug.h: New file.
* Makefile.am (libgpgme_la_SOURCES): Add debug.h.
* util.h: Removed all prototypes and declarations related to
debugging. Include "debug.h".
* debug.c (debug_level): Comment variable and remove superfluous
zero initializer.
(errfp): Likewise.
(_gpgme_debug_enabled): Function removed.
(struct debug_control_s): Definition removed.
(_gpgme_debug_level): Function removed.
(_gpgme_debug_begin): Rewritten to use vasprintf. Accept a
pritnf-style format specification and a variable number of
arguments.
(_gpgme_debug_add): Rewritten using vasprintf. Expect that format
starts out with "%s" for simplicity.
(_gpgme_debug_end): Rewritten using vasprintf. Do not accept a
TEXT argument anymore.
* posix-io.c (_gpgme_io_select): Use new level argument for
DEBUG_BEGIN instead explicit if construct.
* debug.c (debug_init): Remove superfluous zero initializer,
remove volatile flag of INITIALIZED. Do not use the
double-checked locking algorithm, it is fundamentally flawed and
will empty your fridge (on a more serious note, despite the
volatile flag it doesn't give you the guarantee you would expect,
for example on a DEC Alpha or an SMP machine. The volatile only
serializes accesses to the volatile variable, but not to the other
variables).
Marcus Brinkmann [Wed, 8 May 2002 03:06:16 +0000 (03:06 +0000)]
2002-05-08 Marcus Brinkmann <marcus@g10code.de>
* gpgsm/t-verify.c (validity_string): New.
(print_sig_stat): Print expire time and validity.
(status_string): Add new exipred stati.
Karl-Heinz Zimmer [Tue, 7 May 2002 10:40:48 +0000 (10:40 +0000)]
Bugfix don't use binary signatures for OpenPGP
Werner Koch [Fri, 3 May 2002 20:08:21 +0000 (20:08 +0000)]
Bumbed version number to *-cvs
Repo Admin [Fri, 3 May 2002 19:49:04 +0000 (19:49 +0000)]
This commit was manufactured by cvs2svn to create tag 'V0-3-6'.
Werner Koch [Fri, 3 May 2002 19:49:04 +0000 (19:49 +0000)]
released 0.3.6
Werner Koch [Fri, 3 May 2002 18:20:24 +0000 (18:20 +0000)]
* gpgme.texi (Manipulating Data Buffers): Changed some data types
to void*.
(Protocol Selection): Added gpgme_get_protocol.
(Verify): Updated to include the new attribute fucntions and
status codes.
Werner Koch [Fri, 3 May 2002 18:20:06 +0000 (18:20 +0000)]
* engine-gpgsm.c (_gpgme_gpgsm_new): Redirect any gpgsm error
output to /dev/null.
* verify.c (gpgme_get_sig_key): Set the protocol of the listctx.
* gpgme.c (gpgme_get_protocol): New.
* data.c (gpgme_data_write): Changed type of BUFFER to void*.
(gpgme_data_read): Ditto.
* verify.c (_gpgme_verify_status_handler): Handle TRUST_* status
lines so that a claim can be made without looking up the key.
(gpgme_get_sig_string_attr): New.
(gpgme_get_sig_ulong_attr): New.
* gpgme.h (GpgmeAttr): Added GPGME_ATTR_SIG_STATUS.
* gpgme.h (GpgmeSigStat): Add _GOOD_EXP and _GOOD_EXPKEY.
* verify.c (_gpgme_verify_status_handler, finish_sig): Handle
these new status codes. Store the expiration time
Werner Koch [Fri, 3 May 2002 18:19:44 +0000 (18:19 +0000)]
* assuan-pipe-connect.c (assuan_pipe_connect2): New to extend
assuan_pipe_connect with some flags. Implemented a bitbucket for
stderr.
Werner Koch [Fri, 3 May 2002 14:07:22 +0000 (14:07 +0000)]
* gpg/t-verify.c (validity_string): New.
(print_sig_stat): Print expire time and validity.
(status_string): Add new exipred stati.
Werner Koch [Fri, 3 May 2002 14:06:56 +0000 (14:06 +0000)]
* verify.c (_gpgme_verify_status_handler): Handle TRUST_* status
lines so that a claim can be made without looking up the key.
(gpgme_get_sig_string_attr): New.
(gpgme_get_sig_ulong_attr): New.
* gpgme.h (GpgmeAttr): Added GPGME_ATTR_SIG_STATUS.
* rungpg.h: Add new status codes from gpg 1.0.7 and formatted the
list to align with the status.h file from gnupg.
* gpgme.h (GpgmeSigStat): Add _GOOD_EXP and _GOOD_EXPKEY.
* verify.c (_gpgme_verify_status_handler, finish_sig): Handle
these new status codes. Store the expiration time
Werner Koch [Sat, 27 Apr 2002 12:17:56 +0000 (12:17 +0000)]
* gpgme.texi (Manipulating Data Buffers): New type GpgmeDataEncoding.
Werner Koch [Sat, 27 Apr 2002 12:16:48 +0000 (12:16 +0000)]
* gpgme.h (GpgmeData_Encoding): New.
* data.c (gpgme_data_get_encoding,gpgme_data_set_encoding): New.
* engine-gpgsm.c (map_input_enc): New. Use it in all local
functions where the INPUT command gets send.
Marcus Brinkmann [Sat, 27 Apr 2002 12:11:52 +0000 (12:11 +0000)]
2002-04-27 Marcus Brinkmann <marcus@g10code.de>
* engine-gpgsm.c (_gpgme_gpgsm_op_verify): Close the output
descriptor only when we don't need it anymore. Close the message
descriptor if we don't need it.
Karl-Heinz Zimmer [Sat, 27 Apr 2002 05:32:39 +0000 (05:32 +0000)]
allow checking of Opaque Signed message data
Werner Koch [Fri, 26 Apr 2002 12:38:27 +0000 (12:38 +0000)]
* Makefile.am: Create libtool libraries.
* Makefile.am (libgpgme_la_LIBADD): Use libtool libraries.
* Makefile.am: Create libtool libraries
Marcus Brinkmann [Thu, 25 Apr 2002 00:36:03 +0000 (00:36 +0000)]
2002-04-25 Marcus Brinkmann <marcus@g10code.de>
* rungpg.c (_gpgme_gpg_release): Call gpgme_data_release on
GPG->cmd.cb_data, not xfree.
Marcus Brinkmann [Wed, 24 Apr 2002 22:46:25 +0000 (22:46 +0000)]
2002-04-25 Marcus Brinkmann <marcus@g10code.de>
* engine-gpgsm.c (_gpgme_gpgsm_new): Set the display, ttyname,
ttytype, lc_ctype and lc_messages options in the server.
Marcus Brinkmann [Wed, 24 Apr 2002 02:21:12 +0000 (02:21 +0000)]
2002-04-24 Marcus Brinkmann <marcus@g10code.de>
* engine-gpgsm.c (map_assuan_error): Add new error codes.
Marcus Brinkmann [Wed, 24 Apr 2002 01:55:58 +0000 (01:55 +0000)]
Update assuan and jnlib to
20020424 from newpg.
Werner Koch [Tue, 23 Apr 2002 09:06:22 +0000 (09:06 +0000)]
* key.c (gpgme_key_get_ulong_attr): Swapped use of can_encrypt and
can_certify to return the requested values.
Marcus Brinkmann [Mon, 22 Apr 2002 22:06:09 +0000 (22:06 +0000)]
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.
Marcus Brinkmann [Mon, 22 Apr 2002 21:58:26 +0000 (21:58 +0000)]
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.
Matthias Kalle Dalheimer [Thu, 18 Apr 2002 19:26:03 +0000 (19:26 +0000)]
More fixes for certificate generation
Matthias Kalle Dalheimer [Thu, 18 Apr 2002 07:38:15 +0000 (07:38 +0000)]
Additional parameter for returning the cert length
Karl-Heinz Zimmer [Wed, 17 Apr 2002 15:00:53 +0000 (15:00 +0000)]
report both the error-Id and the error-text to the calling program when signing or encrypting of mails could not be done
Matthias Kalle Dalheimer [Wed, 17 Apr 2002 14:16:53 +0000 (14:16 +0000)]
Implemented requesting certs
Marcus Brinkmann [Tue, 16 Apr 2002 12:24:02 +0000 (12:24 +0000)]
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>.
Marcus Brinkmann [Thu, 4 Apr 2002 23:31:11 +0000 (23:31 +0000)]
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.
Marcus Brinkmann [Thu, 4 Apr 2002 23:01:31 +0000 (23:01 +0000)]
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.
Marcus Brinkmann [Thu, 4 Apr 2002 22:22:56 +0000 (22:22 +0000)]
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.
Karl-Heinz Zimmer [Wed, 3 Apr 2002 14:30:51 +0000 (14:30 +0000)]
[bug #997] changed 'micalg=pgp-sha1' into 'micalg=sha1' for S/MIME mails
Karl-Heinz Zimmer [Tue, 2 Apr 2002 11:52:55 +0000 (11:52 +0000)]
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
Repo Admin [Mon, 1 Apr 2002 08:51:06 +0000 (08:51 +0000)]
This commit was manufactured by cvs2svn to create tag 'V0-3-5'.
Werner Koch [Mon, 1 Apr 2002 08:51:06 +0000 (08:51 +0000)]
*** empty log message ***
Werner Koch [Mon, 1 Apr 2002 08:40:10 +0000 (08:40 +0000)]
Released 0.3.5
Werner Koch [Thu, 28 Mar 2002 17:43:02 +0000 (17:43 +0000)]
* 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.
Werner Koch [Tue, 26 Mar 2002 10:15:22 +0000 (10:15 +0000)]
* Makefile.am (libgpgme_la_SOURCES): Add mutex.h
Werner Koch [Sat, 23 Mar 2002 11:35:31 +0000 (11:35 +0000)]
* 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.
Karl-Heinz Zimmer [Fri, 22 Mar 2002 17:06:43 +0000 (17:06 +0000)]
bugfix on new binary-encrypting/signing code
Karl-Heinz Zimmer [Fri, 22 Mar 2002 10:40:24 +0000 (10:40 +0000)]
interface change: signMessage() and encryptMessage() now return an additional 'cipherLen' parameter to enable us to handle binary cipher data
Karl-Heinz Zimmer [Thu, 21 Mar 2002 21:48:33 +0000 (21:48 +0000)]
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
Werner Koch [Thu, 21 Mar 2002 19:48:12 +0000 (19:48 +0000)]
* util.h (struct) [!HAVE_FOPENCOOKIE]: Make sure off_t and ssize_t
are defined.
Matthias Kalle Dalheimer [Thu, 21 Mar 2002 13:14:20 +0000 (13:14 +0000)]
More feature selectors
Plugin says which features it supports
Marcus Brinkmann [Mon, 18 Mar 2002 00:04:06 +0000 (00:04 +0000)]
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.
Marcus Brinkmann [Mon, 18 Mar 2002 00:01:51 +0000 (00:01 +0000)]
2002-03-17 Marcus Brinkmann <marcus@g10code.de>
* gpgme.texi (Detailed Results): Fix syntax error in last change.
Werner Koch [Sun, 10 Mar 2002 18:41:02 +0000 (18:41 +0000)]
removed all the .cvsignre files - they should be local
Werner Koch [Sun, 10 Mar 2002 18:35:33 +0000 (18:35 +0000)]
Minor doc fixes
Karl-Heinz Zimmer [Sat, 9 Mar 2002 16:46:36 +0000 (16:46 +0000)]
bugfix in findCertificates function
Karl-Heinz Zimmer [Fri, 8 Mar 2002 18:13:20 +0000 (18:13 +0000)]
Bugfix: forgot to initialize the list of certificates in findCertificates() before adding the found entries
Karl-Heinz Zimmer [Fri, 8 Mar 2002 15:44:09 +0000 (15:44 +0000)]
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.
Steffen Hansen [Fri, 8 Mar 2002 00:51:25 +0000 (00:51 +0000)]
A little better address-parsing. Not real rfc822 yet, but at least it fetches
the address between < and > now if they are present.
Matthias Kalle Dalheimer [Thu, 7 Mar 2002 21:18:27 +0000 (21:18 +0000)]
Support for various warnings about expiring encryption certificates.
Support for checking encryption certificate paths.
Needs GPGME support.
Werner Koch [Thu, 7 Mar 2002 19:49:40 +0000 (19:49 +0000)]
* gpgme.h (gpgme_op_keylist_ext_start): Add prototype.
Steffen Hansen [Thu, 7 Mar 2002 14:10:07 +0000 (14:10 +0000)]
encryptMessage() now accepts a comma separated list of addressees
Werner Koch [Wed, 6 Mar 2002 17:23:17 +0000 (17:23 +0000)]
* gpgmeplug.c (signMessage): Fixed offbyone. Don't include the
EOS character into the signature.
(checkMessageSignature): Ditto.
Marcus Brinkmann [Wed, 6 Mar 2002 15:35:09 +0000 (15:35 +0000)]
Adjust requirement for GpgSM version according to configure.ac.
Marcus Brinkmann [Wed, 6 Mar 2002 01:40:25 +0000 (01:40 +0000)]
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.
Marcus Brinkmann [Wed, 6 Mar 2002 00:33:50 +0000 (00:33 +0000)]
2002-03-06 Marcus Brinkmann <marcus@g10code.de>
* gpgme.texi (Error Strings): Add example.
* gpgme.texi (Listing Keys): Likewise.
Karl-Heinz Zimmer [Tue, 5 Mar 2002 21:23:58 +0000 (21:23 +0000)]
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
Marcus Brinkmann [Tue, 5 Mar 2002 20:22:06 +0000 (20:22 +0000)]
2002-03-05 Marcus Brinkmann <marcus@g10code.de>
* gpg/Makefile.am (CLEANFILES): Remove random_seed, which is now
in DISTCLEANFILES.
Werner Koch [Mon, 4 Mar 2002 11:39:52 +0000 (11:39 +0000)]
* configure.ac: Bumbed version to 0.3.4-cvs to continue development.
Repo Admin [Mon, 4 Mar 2002 11:16:11 +0000 (11:16 +0000)]
This commit was manufactured by cvs2svn to create tag 'V0-3-4'.
Werner Koch [Mon, 4 Mar 2002 11:16:11 +0000 (11:16 +0000)]
* gpg/Makefile.am (DISTCLEANFILES): Added.
* configure.ac: Bumbed LT version numbers to (7,1,0), requires
gpgsm 0.3.1.
Marcus Brinkmann [Sun, 3 Mar 2002 19:40:13 +0000 (19:40 +0000)]
2002-03-03 Marcus Brinkmann <marcus@g10code.de>
* configure.ac (AC_INIT): Change version number to snapshot CVS
version.
Marcus Brinkmann [Sun, 3 Mar 2002 17:37:34 +0000 (17:37 +0000)]
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.
Marcus Brinkmann [Sun, 3 Mar 2002 16:46:33 +0000 (16:46 +0000)]
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.
Marcus Brinkmann [Sun, 3 Mar 2002 14:50:29 +0000 (14:50 +0000)]
2002-03-03 Marcus Brinkmann <marcus@g10code.de>
* engine-gpgsm.c (_gpgme_gpgsm_op_keylist_ext) [!ENABLE_GPGSM]:
Add stub function.
Matthias Kalle Dalheimer [Fri, 1 Mar 2002 17:54:26 +0000 (17:54 +0000)]
Support for warning when a CRL expires
Matthias Kalle Dalheimer [Fri, 1 Mar 2002 16:55:50 +0000 (16:55 +0000)]
Support for asking the for the PIN a certain number of times.
Matthias Kalle Dalheimer [Thu, 28 Feb 2002 12:09:45 +0000 (12:09 +0000)]
Support for checking whether the signer's email address is contained in
his certificate.
Werner Koch [Thu, 28 Feb 2002 09:53:56 +0000 (09:53 +0000)]
* 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.
Matthias Kalle Dalheimer [Thu, 28 Feb 2002 09:16:25 +0000 (09:16 +0000)]
*** empty log message ***
Matthias Kalle Dalheimer [Thu, 28 Feb 2002 09:14:39 +0000 (09:14 +0000)]
Implemented warning when the certificates used for signing are about to
expire
Matthias Kalle Dalheimer [Thu, 28 Feb 2002 07:49:13 +0000 (07:49 +0000)]
Marked up where g10 needs to implement the selection of the signature algorithm
Werner Koch [Thu, 28 Feb 2002 07:29:08 +0000 (07:29 +0000)]
Removed the gpgme_set_signature_algorithm stuff. We can't add a
function to our API without discussion the consequences of. By design
the signature algorithm is a property of the signer's key and can't be
set arbitrary. The library is named GnuPG Made Easy so we should not
burden the user with an API to select stuff which can only be done by
the backend. Changes in gpgme require support by the backend. If we
have the requirement to implement it, it will be done as a global
configuration option for signers or as meta-data asscociated with a
certificates for recipients. I habe not found this as a requirement of
the Aegypten project.
Matthias Kalle Dalheimer [Wed, 27 Feb 2002 20:59:20 +0000 (20:59 +0000)]
select the signature algorithm - dummy in gpgme.c
Marcus Brinkmann [Wed, 27 Feb 2002 00:59:31 +0000 (00:59 +0000)]
doc/
2002-02-27 Marcus Brinkmann <marcus@g10code.de>
* gpgme.texi (Listing Keys): Document gpgme_op_keylist_ext_start.
gpgme/
2002-02-27 Marcus Brinkmann <marcus@g10code.de>
* rungpg.h (_gpgme_gpg_op_keylist_ext): New prototype.
* rungpg.c (_gpgme_gpg_op_keylist_ext): New function.
* engine-gpgsm.h (_gpgme_gpgsm_op_keylist_ext): New prototype.
* engine-gpgsm.c (_gpgme_gpgsm_op_keylist_ext): New function.
* engine.h (_gpgme_engine_op_keylist_ext): New prototype.
* engine.c (_gpgme_engine_op_keylist_ext): New function.
* keylist.c (gpgme_op_keylist_ext_start): New function.
Marcus Brinkmann [Tue, 26 Feb 2002 23:39:58 +0000 (23:39 +0000)]
doc/
2002-02-27 Marcus Brinkmann <marcus@g10code.de>
* gpgme.texi (Encrypting a Plaintext): Document
GPGME_Invalid_Recipients.
(Error Values): Likewise.
gpgme/
2002-02-27 Marcus Brinkmann <marcus@g10code.de>
* gpgme.h: Add new error code GPGME_Invalid_Recipient.
* encrypt.c (struct encrypt_result_s): New member invalid_recipients,
rename no_recipients to no_valid_recipients.
(_gpgme_encrypt_status_handler): Include error for invalid
recipients.
* engine-gpgsm.c (gpgsm_set_recipients): Change type of first
argument to GpgsmObject. Use that to report back the status about
the recipients.
Marcus Brinkmann [Tue, 26 Feb 2002 23:19:19 +0000 (23:19 +0000)]
2002-02-27 Marcus Brinkmann <marcus@g10code.de>
* gpgmeplug.c (signMessage): Fix code syntax.