gpgme.git
21 years ago2003-09-30 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Tue, 30 Sep 2003 17:19:13 +0000 (17:19 +0000)]
2003-09-30  Marcus Brinkmann  <marcus@g10code.de>

* gpgme.c (gpgme_hash_algo_name): Change name of RMD160 to
RIPEMD160, name of TIGER to TIGER192, name of CRC32-RFC1510 to
CRC32RFC1510, and name of CRC24-RFC2440 to CRC24RFC2440.

21 years agodoc/
Marcus Brinkmann [Sun, 14 Sep 2003 14:48:48 +0000 (14:48 +0000)]
doc/
2003-09-14  Marcus Brinkmann  <marcus@g10code.de>

* gpgme.texi (Multi Threading): Correct documentation on memory
synchronization requirement.

tests/
2003-09-14  Marcus Brinkmann  <marcus@g10code.de>

* gpg/t-thread1.c (main): Call init_gpgme here.
(initialize_gpgme): Function removed.

21 years ago2003-09-14 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Sun, 14 Sep 2003 01:32:41 +0000 (01:32 +0000)]
2003-09-14  Marcus Brinkmann  <marcus@g10code.de>

* gpg/t-thread1.c: New file.
* gpg/Makefile.am (TESTS): Add t-thread1.c.
(t_thread1_LDADD): New variable.
(LDADD): Remove GPG Error lib.
* gpgsm/Makefile.am (LDADD): Likewise.

21 years agoInclude "t-support.h".
Marcus Brinkmann [Sun, 14 Sep 2003 01:05:06 +0000 (01:05 +0000)]
Include "t-support.h".

21 years agoRequire libgpg-error 0.5.
Marcus Brinkmann [Sun, 14 Sep 2003 00:41:39 +0000 (00:41 +0000)]
Require libgpg-error 0.5.

21 years agoUpdate release list.
Marcus Brinkmann [Sun, 14 Sep 2003 00:34:48 +0000 (00:34 +0000)]
Update release list.

21 years ago2003-09-14 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Sun, 14 Sep 2003 00:30:53 +0000 (00:30 +0000)]
2003-09-14  Marcus Brinkmann  <marcus@g10code.de>

* gpg/t-import.c (main): Likewise.
* gpg/t-keylist-sig.c (main): Likewise.
* gpg/t-keylist.c (main): Likewise.
* gpg/t-sign.c (main): Likewise.
* gpg/t-signers.c (main): Likewise.
* gpg/t-trustlist.c (main): Likewise.
* gpgsm/t-support.h: Include <stdlib.h> and <locale.h>.
(init_gpgme): New function.
* gpg/t-support.h: Likewise.
* gpgsm/t-verify.c (main): Call init_gpgme.
* gpgsm/t-decrypt.c (main): Likewise.
* gpgsm/t-encrypt.c (main): Likewise.
* gpgsm/t-export.c (main): Likewise.
* gpgsm/t-genkey.c (main): Likewise.
* gpgsm/t-import.c (main): Likewise.
* gpgsm/t-keylist.c (main): Likewise.
* gpgsm/t-sign.c (main): Likewise.
* gpg/t-verify.c (main): Call init_gpgme.
* gpg/t-decrypt-verify.c (main): Likewise.
* gpg/t-decrypt.c (main): Likewise.
* gpg/t-edit.c (main): Likewise.
* gpg/t-encrypt-sign.c (main): Likewise.
* gpg/t-encrypt-sym.c (main): Likewise.
* gpg/t-encrypt.c (main): Likewise.
* gpg/t-eventloop.c (main): Likewise.
* gpg/t-export.c (main): Likewise.
* gpg/t-genkey.c (main): Likewise.

21 years ago2003-09-14 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Sun, 14 Sep 2003 00:29:42 +0000 (00:29 +0000)]
2003-09-14  Marcus Brinkmann  <marcus@g10code.de>

* gpgme.h: Add prototype for gpgme_set_locale.

21 years ago2003-09-14 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Sun, 14 Sep 2003 00:06:22 +0000 (00:06 +0000)]
2003-09-14  Marcus Brinkmann  <marcus@g10code.de>

* gpgme.h: Define macro _GPGME_INLINE depending on the compiler
characteristics and use that instead __inline__.

21 years agodoc/
Marcus Brinkmann [Sun, 14 Sep 2003 00:02:41 +0000 (00:02 +0000)]
doc/
2003-09-14  Marcus Brinkmann  <marcus@g10code.de>

* gpgme.texi (Locale): New section.
(Multi Threading): Set locale in example.

gpgme/
2003-09-14  Marcus Brinkmann  <marcus@g10code.de>

* context.h (struct gpgme_context): New members lc_ctype and
lc_messages.
* gpgme.c: Include <locale.h>.
(def_lc_lock, def_lc_ctype, def_lc_messages): New static
variables.
(gpgme_set_locale): New function.
* engine.c (_gpgme_engine_new): Add arguments lc_ctype and
lc_messages.
* engine.h (_gpgme_engine_new): Likewise.
* engine-gpgsm.c (gpgsm_new): Likewise.
* rungpg.c (gpg_new): Likewise.
* engine-backend.h (struct engine_ops): Likewise to NEW.
* op-support.c (_gpgme_op_reset): Likewise to invocation of
_gpgme_engine_new.

21 years agodoc/
Marcus Brinkmann [Sat, 13 Sep 2003 21:45:13 +0000 (21:45 +0000)]
doc/
2003-09-13  Marcus Brinkmann  <marcus@g10code.de>

* gpgme.texi (Error Strings): Add gpgme_strerror_r.

gpgme/
2003-09-13  Marcus Brinkmann  <marcus@g10code.de>

* gpgme.h (gpgme_strerror_r): New prototype.
* error.c (gpgme_strerror_r): New function.

21 years ago2003-09-13 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Sat, 13 Sep 2003 18:04:16 +0000 (18:04 +0000)]
2003-09-13  Marcus Brinkmann  <marcus@g10code.de>

* gpgme.texi (Multi Threading): Update documentation.

21 years ago2003-09-13 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Sat, 13 Sep 2003 17:45:04 +0000 (17:45 +0000)]
2003-09-13  Marcus Brinkmann  <marcus@g10code.de>

* acinclude.m4: Remove libtool cruft, add jm_GLIBC21.
* configure.ac: Add check for getenv_r, and call jm_GLIBC21.
Define HAVE_THREAD_SAFE_GETENV if appropriate.

gpgme/
2003-09-13  Marcus Brinkmann  <marcus@g10code.de>

* get-env.c: New file.
* util.h (_gpgme_getenv): Add prototype.
* Makefile.am (libgpgme_real_la_SOURCES): Add get-env.c.
* rungpg.c (build_argv): Use _gpgme_getenv.
* debug.c (debug_init): Likewise.
* engine-gpgsm.c (gpgsm_new): Likewise.
(gpgsm_new): Use ttyname_r.
* w32-io.c (_gpgme_io_spawn): Disable debugging for now.

21 years ago2003-09-03 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Wed, 3 Sep 2003 20:58:38 +0000 (20:58 +0000)]
2003-09-03  Marcus Brinkmann  <marcus@g10code.de>

* gpgme-config.in: Use $libdir, not @libdir@, for the echo
command.

21 years agoDocument thread changes.
Marcus Brinkmann [Wed, 3 Sep 2003 01:18:25 +0000 (01:18 +0000)]
Document thread changes.

21 years ago2003-09-03 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Wed, 3 Sep 2003 01:15:56 +0000 (01:15 +0000)]
2003-09-03  Marcus Brinkmann  <marcus@g10code.de>

* configure.ac: Remove GPGME_CONFIG_LIBS and GPGME_CONFIG_CFLAGS.

doc/
2003-09-03  Marcus Brinkmann  <marcus@g10code.de>

* gpgme.texi (Header): We don't use the assuan namespace anymore.
Document new thread options.

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

* gpgme-config.in: Rewritten.
* gpgme.m4: Rewritten.

21 years agoDocument some more problems.
Marcus Brinkmann [Tue, 2 Sep 2003 22:44:46 +0000 (22:44 +0000)]
Document some more problems.

21 years ago2003-08-14 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Tue, 2 Sep 2003 22:00:37 +0000 (22:00 +0000)]
2003-08-14  Marcus Brinkmann  <marcus@g10code.de>

* gpg/t-sign.c (check_result): Change output format for signature
class to unsigned int.
* gpg/t-signers.c (check_result): Likewise.
* gpg/t-encrypt-sign.c (check_result): Likewise.
* gpgsm/t-sign.c (check_result): Likewise.

21 years ago2003-09-02 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Tue, 2 Sep 2003 21:46:31 +0000 (21:46 +0000)]
2003-09-02  Marcus Brinkmann  <marcus@g10code.de>

* configure.ac: Move invocation of AC_CANONICAL_HOST up to
suppress warning by autoconf.

21 years ago2003-08-30 Robert Schiele <rschiele@uni-mannheim.de>
Marcus Brinkmann [Tue, 2 Sep 2003 18:04:22 +0000 (18:04 +0000)]
2003-08-30  Robert Schiele <rschiele@uni-mannheim.de>

* gpgme.spec.in: %{_infodir}/dir is not packaged,
remove to prevent checking failure.

21 years ago2003-08-18 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Wed, 20 Aug 2003 20:41:18 +0000 (20:41 +0000)]
2003-08-18  Marcus Brinkmann  <marcus@g10code.de>

*configure.ac (AM_PATH_GPG_ERROR): Require 0.3.

assuan/
See README.1st.

gpgme/
2003-08-19  Marcus Brinkmann  <marcus@g10code.de>

The ath files (ath.h, ath.c, ath-pth.c, ath-pthread.c,
ath-compat.c, ath-pth-compat.c and ath-pthread-compat.c) have been
updated to have better thread support, and the Makefile.am was
changed to reflect that.

* util.h [!HAVE_FOPENCOOKIE]: Remove fopencookie declaration.
* engine-gpgsm.c (gpgsm_assuan_simple_command): Set ERR to return
value of status_fnc.
* rungpg.c (start): Return SAVED_ERRNO, not errno.

21 years ago2003-08-18 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Wed, 20 Aug 2003 20:20:46 +0000 (20:20 +0000)]
2003-08-18  Marcus Brinkmann  <marcus@g10code.de>

*configure.ac (AM_PATH_GPG_ERROR): Require 0.3.

assuan/
See README.1st.

gpgme/
2003-08-19  Marcus Brinkmann  <marcus@g10code.de>

The ath files (ath.h, ath.c, ath-pth.c, ath-pthread.c,
ath-compat.c, ath-pth-compat.c and ath-pthread-compat.c) have been
updated to have better thread support, and the Makefile.am was
changed to reflect that.

* util.h [!HAVE_FOPENCOOKIE]: Remove fopencookie declaration.
* engine-gpgsm.c (gpgsm_assuan_simple_command): Set ERR to return
value of status_fnc.
* rungpg.c (start): Return SAVED_ERRNO, not errno.

21 years ago2003-08-18 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Mon, 18 Aug 2003 19:17:08 +0000 (19:17 +0000)]
2003-08-18  Marcus Brinkmann  <marcus@g10code.de>

* configure.ac: If building Assuan, check for funopen and
fopencookie, and make isascii, putc_unlocked and memrchr
replacement functions.

assuan/
Update to the latest assuan version.

gpgme/
2003-08-18  Marcus Brinkmann  <marcus@g10code.de>

* funopen.c, putc_unlocked.c, isascii.c, memrchr.c: New files.
* fopencookie.c: File removed.

21 years ago2003-08-15 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Thu, 14 Aug 2003 22:54:42 +0000 (22:54 +0000)]
2003-08-15  Marcus Brinkmann  <marcus@g10code.de>

* gpgme-config.in: Put gpg-error related flags after gpgme's.

21 years agodoc/
Marcus Brinkmann [Thu, 14 Aug 2003 17:32:18 +0000 (17:32 +0000)]
doc/
2003-08-14  Marcus Brinkmann  <marcus@g10code.de>

* gpgme.texi (Creating a Signature): Change type of member class
to unsigned int.

gpgme/
2003-08-14  Marcus Brinkmann  <marcus@g10code.de>

* gpgme.h (struct _gpgme_new_signature): Rename member CLASS to
_OBSOLETE_CLASS, add member CLASS with type unsigned int.
* sign.c (parse_sig_created): Also set SIG->_unused_class for
backward compatibility.

tests/
2003-08-14  Marcus Brinkmann  <marcus@g10code.de>

* gpg/t-sign.c (check_result): Change output format for signature
class to unsigned int.

21 years agoAdd info about bug fix.
Marcus Brinkmann [Mon, 4 Aug 2003 21:13:49 +0000 (21:13 +0000)]
Add info about bug fix.

21 years agodoc/
Marcus Brinkmann [Mon, 4 Aug 2003 21:11:11 +0000 (21:11 +0000)]
doc/
2003-08-04  Marcus Brinkmann  <marcus@g10code.de>

* gpgme.texi (Verify): Get error code from SIG->status in the code
for gpgme_get_sig_status.

gpgme/
2003-08-04  Marcus Brinkmann  <marcus@g10code.de>

* verify.c (parse_new_sig): Fix status parsing case.

21 years agodoc/
Marcus Brinkmann [Thu, 31 Jul 2003 16:59:36 +0000 (16:59 +0000)]
doc/
2003-07-31  Marcus Brinkmann  <marcus@g10code.de>

* gpgme.texi (Key Management): Add can_authenticate flag.

gpgme/
2003-07-31  Marcus Brinkmann  <marcus@g10code.de>

* gpgme.h (struct _gpgme_subkey): Add flag CAN_AUTHENTICATE.
Lower _UNUSED to 23 bits.
(struct _gpgme_key): Likewise.
* keylist.c (set_mainkey_capability): Support 'a' and 'A'.
(set_subkey_capability): Support 'a'.

21 years agodoc/
Marcus Brinkmann [Thu, 31 Jul 2003 16:01:13 +0000 (16:01 +0000)]
doc/
2003-07-31  Marcus Brinkmann  <marcus@g10code.de>

* gpgme.texi (Listing Keys): Document GPG_ERR_AMBIGUOUS_NAME for
gpgme_get_key.

gpgme/
2003-07-31  Marcus Brinkmann  <marcus@g10code.de>

* keylist.c (gpgme_get_key): Check if there is more than one key
listed, and return GPG_ERR_AMBIGUOUS_NAME in that case.

21 years ago2003-07-31 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Thu, 31 Jul 2003 15:57:35 +0000 (15:57 +0000)]
2003-07-31  Marcus Brinkmann  <marcus@g10code.de>

* configure.ac (AC_INIT): Bump version to 0.4.3.

21 years ago2003-07-31 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Thu, 31 Jul 2003 15:44:32 +0000 (15:44 +0000)]
2003-07-31  Marcus Brinkmann  <marcus@g10code.de>

* gpg/t-verify.c (check_result): Change type of SUMMARY to
unsigned int.
* gpg/t-decrypt-verify.c (check_verify_result): Likewise.
* gpg/t-keylist-sig.c (keys): Change type of member CLASS to
unsigned int.
* t-data.c (read_cb): Change type of AMOUNT to unsigned int.
* t-version.c (version): Remove unused variable.

21 years ago2003-07-31 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Thu, 31 Jul 2003 15:44:02 +0000 (15:44 +0000)]
2003-07-31  Marcus Brinkmann  <marcus@g10code.de>

* util.h (_gpgme_decode_c_string): Change type of LEN argument to
size_t.
(_gpgme_decode_percent_string): Likewise.
* conversion.c (_gpgme_decode_c_string): Likewise.
(_gpgme_decode_percent_string): Likewise.
(_gpgme_map_gnupg_error): Change type of I to unsigned int.
* signers.c (gpgme_signers_clear): Likewise.
(gpgme_signers_enum): New unsigned variable SEQNO, set to SEQ.
Use SEQNO instead SEQ.
* wait.c (fd_table_put): Change type of I and J to unsigned int.
* wait-global.c (_gpgme_wait_global_event_cb): Change type of IDX
to unsigned int.
(gpgme_wait): Change type of I and IDX to unsigned int.
* wait-private.c (_gpgme_wait_on_condition): Change type of IDX
and I to unsigned int.
* posix-io.c (_gpgme_io_close): Cast return value of macro DIM to
int to suppress gcc warning.
(_gpgme_io_set_close_notify): Likewise.
(_gpgme_io_select): Change type of I to unsigned int.
* engine.c (gpgme_get_engine_info): Change type of PROTO to
unsigned int.
* wait-user.c (_gpgme_user_io_cb_handler): Change type of IDX and
I to unsigned int.

21 years ago2003-07-30 Marcus Brinkmann <marcus@g10code.de> gpgme-0-4-2
Marcus Brinkmann [Wed, 30 Jul 2003 12:56:28 +0000 (12:56 +0000)]
2003-07-30  Marcus Brinkmann  <marcus@g10code.de>

* configure.ac (LIBGPGME_LT_REVISION): Bump up to 1.

Released 0.4.2.

21 years agoAdd item about configure check for gpg and gpgsm warning.
Marcus Brinkmann [Wed, 30 Jul 2003 12:43:14 +0000 (12:43 +0000)]
Add item about configure check for gpg and gpgsm warning.

21 years agoUpdate information about todo items.
Marcus Brinkmann [Wed, 30 Jul 2003 12:41:57 +0000 (12:41 +0000)]
Update information about todo items.

21 years agoAdd task for verify.
Marcus Brinkmann [Tue, 29 Jul 2003 20:04:35 +0000 (20:04 +0000)]
Add task for verify.

21 years ago2003-07-29 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Tue, 29 Jul 2003 19:34:03 +0000 (19:34 +0000)]
2003-07-29  Marcus Brinkmann  <marcus@g10code.de>

* decrypt-verify.c (decrypt_verify_status_handler): Expand silly
and wrong expression.
* encrypt-sign.c (encrypt_sign_status_handler): Likewise.
* encrypt.c (encrypt_sym_status_handler): Likewise.
* sign.c (sign_status_handler): Likewise.
* verify.c (verify_status_handler): Likewise.
* decrypt.c (decrypt_status_handler): Likewise.

21 years ago2003-07-29 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Tue, 29 Jul 2003 18:49:06 +0000 (18:49 +0000)]
2003-07-29  Marcus Brinkmann  <marcus@g10code.de>

* Makefile.am (EXTRA_DIST): Remove variable.

21 years ago2003-07-29 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Tue, 29 Jul 2003 18:46:30 +0000 (18:46 +0000)]
2003-07-29  Marcus Brinkmann  <marcus@g10code.de>

* gpgme.texi (Encrypting a Plaintext): Bad passphrase is only
possible with symmetric encryption, change the wording to reflect
that.

* gpgme.texi (Creating a Signature): Document
GPG_ERR_UNUSABLE_SECKEY.

21 years ago2003-07-29 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Tue, 29 Jul 2003 18:31:46 +0000 (18:31 +0000)]
2003-07-29  Marcus Brinkmann  <marcus@g10code.de>

* gpgme.texi (Creating a Signature): Document
GPG_ERR_UNUSABLE_SECKEY.

21 years agoAdd item about result structures.
Marcus Brinkmann [Tue, 29 Jul 2003 18:27:31 +0000 (18:27 +0000)]
Add item about result structures.

21 years ago2003-07-29 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Tue, 29 Jul 2003 18:25:27 +0000 (18:25 +0000)]
2003-07-29  Marcus Brinkmann  <marcus@g10code.de>

* gpgme.texi (Encrypting a Plaintext): Mention encrypt and sign
operations in result function.
(Creating a Signature): Likewise.

21 years ago2003-07-29 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Tue, 29 Jul 2003 18:20:09 +0000 (18:20 +0000)]
2003-07-29  Marcus Brinkmann  <marcus@g10code.de>

* engine.c (gpgme_get_engine_info): Initialize NULL.

21 years ago2003-07-23 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Mon, 28 Jul 2003 12:09:42 +0000 (12:09 +0000)]
2003-07-23  Marcus Brinkmann  <marcus@g10code.de>

* gpgme.texi (Key Listing Mode): Remove word duplication.
(Listing Keys): Remove mentioning of force argument.
(Verify): Don't mention r_stat.  Fix some typos.
(Decrypt and Verify): Correct info how to get the result.  Don't
mention r_stat.
(Manipulating Data Buffers): Fix documentation of return value.
(Listing Keys): Update examples.
(Decrypt): Result might also be available when operation failed.
(Verify): Result might also be available when operation failed.
All spotted by St�phane Corth�sy.

21 years ago2003-07-23 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Mon, 28 Jul 2003 12:09:04 +0000 (12:09 +0000)]
2003-07-23  Marcus Brinkmann  <marcus@g10code.de>

* gpgme-config.in (gpg_error_libs): Quote GPG_ERROR_CFLAGS and
GPG_ERROR_LIBS when setting the corresponding variables.
Reported by St�phane Corth�sy.

21 years ago2003-07-22 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Tue, 22 Jul 2003 12:19:32 +0000 (12:19 +0000)]
2003-07-22  Marcus Brinkmann  <marcus@g10code.de>

* gpgme.texi (Error Sources): Fix cut and paste error.

21 years agoFill in missing info.
Marcus Brinkmann [Tue, 22 Jul 2003 11:48:43 +0000 (11:48 +0000)]
Fill in missing info.

21 years ago2003-07-22 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Tue, 22 Jul 2003 11:40:48 +0000 (11:40 +0000)]
2003-07-22  Marcus Brinkmann  <marcus@g10code.de>

* Makefile.am (AM_CPPFLAGS): New variable.
(LDADD): Add @GPG_ERROR_LIBS@.
* gpg/Makefile.am (AM_CPPFLAGS): New variable.
(LDADD): Add @GPG_ERROR_LIBS@.
* gpgsm/Makefile.am (AM_CPPFLAGS): New variable.
(LDADD): Add @GPG_ERROR_LIBS@.

21 years ago2003-07-22 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Tue, 22 Jul 2003 11:30:39 +0000 (11:30 +0000)]
2003-07-22  Marcus Brinkmann  <marcus@g10code.de>

* engine-gpgsm.c (set_recipients): Move declaration of NEWLEN to
the beginning of the block.

21 years ago2003-07-09 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Wed, 9 Jul 2003 00:49:58 +0000 (00:49 +0000)]
2003-07-09  Marcus Brinkmann  <marcus@g10code.de>

* gpgme.texi (Key Management): Clarify difference between can_sign
and can_certify.
(Information About Keys): Likewise for GPGME_ATTR_CAN_SIGN and
GPGME_ATTR_CAN_CERTIFY.

21 years agoUpdate.
Marcus Brinkmann [Tue, 8 Jul 2003 18:02:10 +0000 (18:02 +0000)]
Update.

21 years ago2003-07-08 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Tue, 8 Jul 2003 17:22:44 +0000 (17:22 +0000)]
2003-07-08  Marcus Brinkmann  <marcus@g10code.de>

* gpgme.texi (Progress Meter Callback): Change return type of
gpgme_progress_cb_t to void.

21 years ago2003-07-08 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Tue, 8 Jul 2003 17:11:06 +0000 (17:11 +0000)]
2003-07-08  Marcus Brinkmann  <marcus@g10code.de>

* configure.ac: Complain if libgpg-error is not found.

21 years agoAdd decrypt feature.
Marcus Brinkmann [Sat, 28 Jun 2003 12:45:16 +0000 (12:45 +0000)]
Add decrypt feature.

21 years ago2003-06-22 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Sun, 22 Jun 2003 21:09:58 +0000 (21:09 +0000)]
2003-06-22  Marcus Brinkmann  <marcus@g10code.de>

* gpgme.texi: Add 2003 to copyright notice.

* gpgme.texi (Header): Fix name space documentation on
libgpg-error.

21 years ago2003-06-22 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Sun, 22 Jun 2003 20:56:48 +0000 (20:56 +0000)]
2003-06-22  Marcus Brinkmann  <marcus@g10code.de>

* data-mem.c (mem_write): Copy original buffer content.

21 years agodoc/
Marcus Brinkmann [Sun, 22 Jun 2003 12:26:11 +0000 (12:26 +0000)]
doc/
2003-06-22  Marcus Brinkmann  <marcus@g10code.de>

* gpgme.texi (Multi Threading): Remove reference to
gpgme_recipients_t.

gpgme/
2003-06-22  Marcus Brinkmann  <marcus@g10code.de>

* gpgme.h (gpgme_user_ids_release, gpgme_user_ids_append): Remove
prototypes.

21 years ago2003-06-22 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Sun, 22 Jun 2003 12:24:45 +0000 (12:24 +0000)]
2003-06-22  Marcus Brinkmann  <marcus@g10code.de>

* configure.ac (AC_INIT): Bump version to 0.4.2.

21 years ago2003-06-06 Marcus Brinkmann <marcus@g10code.de> gpgme-0-4-1
Marcus Brinkmann [Fri, 6 Jun 2003 03:04:09 +0000 (03:04 +0000)]
2003-06-06  Marcus Brinkmann  <marcus@g10code.de>

* configure.ac (LIBGPGME_LT_CURRENT): Bump up to 11.

21 years ago2003-06-06 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Fri, 6 Jun 2003 02:35:45 +0000 (02:35 +0000)]
2003-06-06  Marcus Brinkmann  <marcus@g10code.de>

* configure.ac: Use AM_PATH_GPG_ERROR.

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

* Makefile.am (AM_CPPFLAGS): Add @GPG_ERROR_CFLAGS@.
* gpgme-config.in (gpg_error_libs, gpg_error_cflags): New variables.
Print them.

21 years agodoc/
Marcus Brinkmann [Fri, 6 Jun 2003 00:56:03 +0000 (00:56 +0000)]
doc/
2003-06-06  Marcus Brinkmann  <marcus@g10code.de>

* gpgme.texi (Crypto Operations): Rename gpgme_invalid_user_id_t
to gpgme_invalid_key_t.

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

* op-support.c (_gpgme_parse_inv_userid): Rename to
_gpgme_parse_inv_recp and change to new datatype.
* ops.h (_gpgme_parse_inv_key): Fix prototype.
* gpgme.h (struct _gpgme_invalid_user_id): Rename to
__gpgme_invalid_key.  Rename field ID to KEY.
(gpgme_invalid_user_id_t): Rename to gpgme_invalid_key_t.
(struct _gpgme_op_encrypt_result): Here, too.
(struct _gpgme_op_sign_result): Likewise.
* encrypt.c (struct op_data): Likewise.
(release_op_data): Likewise.
* sign.c (struct op_data): Likewise.
(release_op_data): Likewise.

21 years agoFix last change.
Marcus Brinkmann [Fri, 6 Jun 2003 00:26:54 +0000 (00:26 +0000)]
Fix last change.

21 years ago2003-06-06 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Fri, 6 Jun 2003 00:22:27 +0000 (00:22 +0000)]
2003-06-06  Marcus Brinkmann  <marcus@g10code.de>

* posix-io.c (_gpgme_io_read): Save errno across debug calls.
(_gpgme_io_write): Likewise.
(_gpgme_io_pipe): Likewise.
(_gpgme_io_select): Likewise.

21 years agoRemove obsolete item
Marcus Brinkmann [Fri, 6 Jun 2003 00:08:08 +0000 (00:08 +0000)]
Remove obsolete item

21 years ago2003-06-06 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Thu, 5 Jun 2003 23:39:28 +0000 (23:39 +0000)]
2003-06-06  Marcus Brinkmann  <marcus@g10code.de>

* rungpg.c (struct engine_gpg): Remove arg_error.
(add_arg): Don't set arg_error.
(add_data): Likewise.
(start): Don't check arg_error.
(gpg_new): Check return value of add_arg.
* verify.c (parse_notation): Free allocated memory at error.

21 years agodoc/
Marcus Brinkmann [Thu, 5 Jun 2003 23:20:29 +0000 (23:20 +0000)]
doc/
2003-06-06  Marcus Brinkmann  <marcus@g10code.de>

* gpgme.texi: Change error codes to GPG_ERR_* variants.
(Error Handling): Rewritten.

gpgme/
2003-06-05  Marcus Brinkmann  <marcus@g10code.de>

Everywhere: Use libgpg-error error codes.

* Makefile.am (EXTRA_DIST): Remove mkerrors.
(BUILT_SOURCES): Remove errors.c.
(MOSTLYCLEANFILES): Likewise.
(libgpgme_la_SOURCES): Likewise.  Add error.c.
(errors.c): Remove target.
* mkerrors: File removed.
* error.c: New file.

* gpgme.h (gpgme_error_t): Change to type gpg_error_t.
(gpgme_err_code_t, gpgme_err_source_t): New types.
(gpgme_err_code, gpgme_err_source, gpgme_error, gpgme_err_make):
New static inline functions.
(gpgme_strsource, gpgme_err_code_from_errno,
gpgme_err_code_to_errno, gpgme_err_make_from_errno,
gpgme_error_from_errno): New prototypes.

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

Everywhere: Use libgpg-error error codes.

* gpg/Makefile.am (noinst_HEADERS): New variable.
* gpg/t-support.h: New file.
* gpgsm/Makefile.am (noinst_HEADERS): New variable.
* gpgsm/t-support.h: New file.

21 years agodoc/
Marcus Brinkmann [Thu, 29 May 2003 03:21:02 +0000 (03:21 +0000)]
doc/
2003-05-29  Marcus Brinkmann  <marcus@g10code.de>

* gpgme.texi (Exporting Keys): Change and document prototypes.
Add new gpgme_op_export_ext and gpgme_op_export_ext_start
variants.
(Selecting Recipients): Section removed.
(Encrypting a Plaintext): Change prototypes and document the
changes.

gpgme/
2003-05-29  Marcus Brinkmann  <marcus@g10code.de>

* gpgme.h (gpgme_op_export_start): Change second arg to const char *.
(gpgme_op_export): Likewise.
(gpgme_op_export_ext_start): New prototype.
(gpgme_op_export_ext): Likewise.
* engine.h: Likewise for _gpgme_engine_op_export and
_gpgme_engine_op_export_ext.
* engine-backend.h (struct engine_ops): Change second argument of
prototype of export to const char *, and add reserverd int as
third argument.  Add prototype for export_ext.
* engine.c (_gpgme_engine_op_export_ext): New function.
(_gpgme_engine_op_export): Change second argument of prototype of
export to const char *, and add reserverd int as third argument.
* rungpg.c (gpg_export): Change second argument of prototype of
export to const char *, and add reserverd int as third argument.
(gpg_export_ext): New function.
(gpg_keylist_ext): Break loop at error.
(_gpgme_engine_ops_gpg): Add gpg_export_ext.
* engine-gpgsm.c (gpgsm_export): Change second argument of
prototype of export to const char *, and add reserverd int as
third argument.
(gpgsm_export_ext): New function.
(_gpgme_engine_ops_gpgsm): Add gpgsm_export_ext.
* export.c (export_start): Change second argument of prototype of
export to const char *, and add reserverd int as third argument.
(gpgme_op_export_start): Likewise.
(export_ext_start): New function.
(gpgme_op_export_ext_start): Likewise.
(gpgme_op_export_ext): Likewise.

* gpgme.h (gpgme_keylist_mode_t): New type for anonymous enum.
(gpgme_sigsum_t): New type for anonymous enum.

* encrypt-sign.c (encrypt_sign_start): Check for errors earlier,
and return an error if RECP is not set.

* Makefile.am (libgpgme_la_SOURCES): Remove user-id.c.
* user-id.c: Remove file.
* ops.h: Remove prototype for _gpgme_user_ids_all_valid.
* gpgme.h (gpgme_encrypt_flags_t): New type.
(gpgme_op_encrypt_start): Change second parameter to type
gpgme_key_t[], and add third parameter.
(gpgme_op_encrypt): Likewise.
(gpgme_op_encrypt_sign_start): Likewise.
(gpgme_op_encrypt_sign): Likewise.
* encrypt.c (encrypt_start): Likewise.
(gpgme_op_encrypt_start): Likewise.
(gpgme_op_encrypt): Likewise.  Pass flags to engine.
* encrypt-sign.c (encrypt_sign_start): Likewise.
(gpgme_op_encrypt_sign_start): Likewise.
(gpgme_op_encrypt_sign): Likewise.
* engine-backend.h (struct engine_ops): Likewise for prototypes of
encrypt and encrypt_sign.
* engine.h: Likewise for prototypes of _gpgme_engine_op_encrypt
and _gpgme_engine_op_encrypt_sign.
* engine.c (_gpgme_engine_op_encrypt): Likewise.
(_gpgme_engine_op_encrypt_sign): Likewise.
* rungpg.c (gpg_encrypt): Likewise.
(gpg_encrypt_sign): Likewise.
* rungpg.c (gpg_encrypt): Check flags for always trust option.
* engine-gpgsm.c (gpgsm_encrypt): Likewise.
(set_recipients): Rewritten to use keys instead user IDs.
* rungpg.c (append_args_from_recipients): Rewritten to use keys
instead user IDs.
* encrypt.c (_gpgme_encrypt_status_handler): Change errors
returned to GPGME_Invalid_Key and GPGME_General_Error.

tests/
2003-05-29  Marcus Brinkmann  <marcus@g10code.de>

* gpg/t-encrypt-sym.c (main): Adapt to new syntax.
* gpg/t-encrypt.c (main): Likewise.
* gpg/t-eventloop.c (main): Likewise.
* gpg/t-encrypt-sign.c (main): Likewise.
* gpgsm/t-export.c (main): Likewise.
* gpgsm/t-encrypt.c (main): Likewise.

21 years agoFix typo.
Marcus Brinkmann [Wed, 28 May 2003 02:11:25 +0000 (02:11 +0000)]
Fix typo.

21 years ago2003-05-28 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Wed, 28 May 2003 01:59:25 +0000 (01:59 +0000)]
2003-05-28  Marcus Brinkmann  <marcus@g10code.de>

* engine-gpgsm.c: Rename GpgsmObject to engine_gpgsm_t.
(struct gpgsm_object_s): Rename to struct engine_gpgsm.
* rungpg.c: Rename GpgObject to engine_gpg_t.
(struct gpg_object_s): Rename to struct engine_gpg.

21 years ago2003-05-28 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Wed, 28 May 2003 01:52:58 +0000 (01:52 +0000)]
2003-05-28  Marcus Brinkmann  <marcus@g10code.de>

* context.h (struct gpgme_context): Change EngineObject to
engine_object_t.
(enum ctx_op_data_type): Rename to ctx_op_data_id_t.
(ctx_op_data_t): New type.
(struct gpgme_context): Use it.
* ops.h (_gpgme_op_data_lookup): Use new type name.
* op-support.c (_gpgme_op_data_lookup): Likewise.
* engine.c: Rename EngineObject to engine_t in the file.  Also
EngineStatusHandler to engine_status_handler_t,
EngineCommandHandler to engine_command_handler_t and
EngineColonLineHandler to engine_colon_line_handler.
* rungpg.c (start): Likewise.
* engine-gpgsm.c: Likewise.
* engine-backend.h (struct engine_ops): Likewise
* engine.h (struct engine_object_s): Rename to struct engine.
(EngineObject): Rename to engine_t.  Also everywhere else in the
file.
(EngineStatusHandler): Rename to engine_status_handler_t.
(EngineColonLineHandler): Rename to engine_colon_line_handler_t.
(EngineCommandHandler): Rename to engine_command_handler_t.

* engine-gpgsm.c (gpgsm_export): Fix bug in last change.

21 years ago2003-05-28 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Wed, 28 May 2003 01:50:15 +0000 (01:50 +0000)]
2003-05-28  Marcus Brinkmann  <marcus@g10code.de>

* gpgsm/t-encrypt.c (main): Likewise.
* gpgsm/t-export.c (main): Likewise.

21 years agoFix comment.
Marcus Brinkmann [Wed, 28 May 2003 01:18:51 +0000 (01:18 +0000)]
Fix comment.

21 years agodoc/
Marcus Brinkmann [Wed, 28 May 2003 01:15:38 +0000 (01:15 +0000)]
doc/
2003-05-28  Marcus Brinkmann  <marcus@g10code.de>

* gpgme.texi (Exporting Keys): Change argument type from
gpgme_recipient_t to gpgme_user_id_t.
(Encrypting a Plaintext): Likewise.
(Selecting Recipients): Rewritten.

gpgme/
2003-05-28  Marcus Brinkmann  <marcus@g10code.de>

* Makefile.am (libgpgme_la_SOURCES): Remove recipient.c, add
user-id.c.
* gpgme.h (gpgme_recipients_t): Removed.
(gpgme_recipients_new, gpgme_recipients_release,
gpgme_recipients_add_name,
gpgme_recipients_add_name_with_validity, gpgme_recipients_count,
gpgme_recipients_enum_open, gpgme_recipients_enum_read,
gpgme_recipients_enum_close): Removed.
(gpgme_op_encrypt, gpgme_op_encrypt_start, gpgme_op_encrypt_sign,
gpgme_op_encrypt_sign_start, gpgme_op_export_start,
gpgme_op_export): Change second argument to gpgme_user_id_t.
(gpgme_user_ids_release): New prototype.
(gpgme_user_ids_append): Likewise.
* ops.h (_gpgme_recipients_all_valid): Remove.
(_gpgme_user_ids_all_valid): Add.
* context.h (struct gpgme_recipients): Removed.
* user-id.c: New file.
* recipient.c: Removed file.
* rungpg.c (append_args_from_recipients): Change last arg to
gpgme_user_id_t.  Reimplement.
(gpg_encrypt): Change second arg to gpgme_user_id_t.
(gpg_encrypt_sign): Likewise.
(gpg_export): Likewise.  Rewrite user ID list code.
* engine.c (_gpgme_engine_op_encrypt): Change second arg to
gpgme_user_id_t.
(_gpgme_engine_op_encrypt_sign): Likewise.
(_gpgme_engine_op_export): Likewise.
* engine.h (_gpgme_engine_op_encrypt, _gpgme_engine_op_encrypt_sign,
_gpgme_engine_op_export): Likewise.
* engine-gpgsm.c (set_recipients): Likewise.  Rewrite loop code.
(gpgsm_encrypt): Likewise.
(gpgsm_export): Likewise.
* engine-backend.h (struct engine_ops): Likewise for members
ENCRYPT, ENCRYPT_SIGN and EXPORT.
* export.c (export_start, gpgme_op_export_start, gpgme_op_export):
Likewise.
* encrypt.c (encrypt_start): Likewise.  Don't check for count of
recipients.
(gpgme_op_encrypt_start): Likewise.
(gpgme_op_encrypt): Likewise.
* encrypt-sign.c (encrypt_sign_start): Likewise.
(gpgme_op_encrypt_sign): Likewise.
(gpgme_op_encrypt_sign_start): Likewise.

tests/
2003-05-28  Marcus Brinkmann  <marcus@g10code.de>

* gpg/t-eventloop.c (main): Rewrite recipient management.
* gpg/t-encrypt-sign.c (main): Likewise.
* gpg/t-encrypt.c (main): Likewise.
* gpg/t-export.c (main): Likewise.

21 years ago2003-05-27 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Tue, 27 May 2003 09:00:02 +0000 (09:00 +0000)]
2003-05-27  Marcus Brinkmann  <marcus@g10code.de>

* gpgme.h (struct _gpgme_op_import_result): Add skipped_new_keys.
* import.c (parse_import_res): Add skipped_new_keys parser.

21 years agoFix last changes.
Marcus Brinkmann [Tue, 27 May 2003 08:31:33 +0000 (08:31 +0000)]
Fix last changes.

21 years ago2003-05-27 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Tue, 27 May 2003 08:18:04 +0000 (08:18 +0000)]
2003-05-27  Marcus Brinkmann  <marcus@g10code.de>

* op-support.c (_gpgme_parse_inv_userid): Add missing break
statements.
* encrypt.c (gpgme_op_encrypt): Use gpgme_error_t instead of int.

21 years agoFix last change.
Marcus Brinkmann [Tue, 27 May 2003 05:45:06 +0000 (05:45 +0000)]
Fix last change.

21 years ago2003-05-27 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Tue, 27 May 2003 05:41:43 +0000 (05:41 +0000)]
2003-05-27  Marcus Brinkmann  <marcus@g10code.de>

* gpgme.texi (Protocol Selection): Do not use @acronym in @node
because that breaks texi2dvi.

21 years ago2003-05-27 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Tue, 27 May 2003 05:07:19 +0000 (05:07 +0000)]
2003-05-27  Marcus Brinkmann  <marcus@g10code.de>

* gpg/Makefile.am (TESTS): Order t-keylist and t-keylist-sig after
t-import.
* gpg/t-edit.c (edit_fnc): Work around gpg 1.2.2 bug by resetting
primary uid after setting expiration date.
* gpg/t-keylist.c: Change order of user IDs.
* gpg/t-keylist-sig.c: Likewise.
* gpg/t-import.c: Add support for gpg in CVS.

21 years ago2003-05-27 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Tue, 27 May 2003 03:06:37 +0000 (03:06 +0000)]
2003-05-27  Marcus Brinkmann  <marcus@g10code.de>

* t-data.c: Remove TEST_OUT_CB.
(main): Likewise.
* gpg/t-trustlist.c (main): Access ITEM directly.

21 years ago2003-05-27 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Tue, 27 May 2003 02:54:36 +0000 (02:54 +0000)]
2003-05-27  Marcus Brinkmann  <marcus@g10code.de>

* encrypt.c (gpgme_op_encrypt_result): Use intermediate variable
HOOK to avoid compiler warning.  Don't ask, you don't want to know.
(_gpgme_encrypt_status_handler): Likewise.
(_gpgme_op_encrypt_init_result): Likewise.
* decrypt.c (gpgme_op_decrypt_result): Likewise.
(_gpgme_decrypt_status_handler): Likewise.
(_gpgme_op_decrypt_init_result): Likewise.
* verify.c (gpgme_op_verify_result): Likewise.
(_gpgme_verify_status_handler): Likewise.
(_gpgme_op_verify_init_result): Likewise.
* edit.c (edit_status_handler): Likewise.
(command_handler): Likewise.
(edit_start): Likewise.
* genkey.c (gpgme_op_genkey_result): Likewise.
(genkey_status_handler): Likewise.
(genkey_start): Likewise.
* import.c (gpgme_op_import_result): Likewise.
(import_status_handler): Likewise.
(_gpgme_op_import_start): Likewise.
* trustlist.c (gpgme_op_trustlist_next): Likewise.
(_gpgme_op_trustlist_event_cb): Likewise.
(gpgme_op_trustlist_start): Likewise.
* keylist.c (gpgme_op_keylist_result): Likewise.
(keylist_colon_handler): Likewise.
(keylist_status_handler): Likewise.
(_gpgme_op_keylist_event_cb): Likewise.
(gpgme_op_keylist_start): Likewise.
(gpgme_op_keylist_ext_start): Likewise.
(gpgme_op_keylist_next): Likewise.
* passphrase.c (_gpgme_passphrase_status_handler): Likewise.
(_gpgme_passphrase_command_handler_internal): Likewise.
* sign.c (gpgme_op_sign_result): Likewise.
(_gpgme_sign_status_handler): Likewise.
(_gpgme_op_sign_init_result): Likewise.

21 years ago2003-05-27 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Tue, 27 May 2003 02:26:55 +0000 (02:26 +0000)]
2003-05-27  Marcus Brinkmann  <marcus@g10code.de>

* passphrase.c (_gpgme_passphrase_command_handler_internal): Fix
access to pointer type.

21 years agoAdd more info.
Marcus Brinkmann [Tue, 27 May 2003 02:16:54 +0000 (02:16 +0000)]
Add more info.

21 years agoRemove file that is better provided by automake.
Marcus Brinkmann [Tue, 27 May 2003 01:52:32 +0000 (01:52 +0000)]
Remove file that is better provided by automake.

21 years agoReintroduce a check in edit_fnc.
Marcus Brinkmann [Tue, 27 May 2003 01:39:18 +0000 (01:39 +0000)]
Reintroduce a check in edit_fnc.

21 years agodoc/
Marcus Brinkmann [Tue, 27 May 2003 01:31:06 +0000 (01:31 +0000)]
doc/
2003-05-27  Marcus Brinkmann  <marcus@g10code.de>

* gpgme.texi (Passphrase Callback): Document new prototype.

gpgme/
2003-05-26  Marcus Brinkmann  <marcus@g10code.de>

* engine.h (EngineCommandHandler): Change last argument to int fd.
* gpgme.h (gpgme_passphrase_cb_t): Rewritten to take parts of the
description and fd.
(gpgme_edit_cb_t): Change last argument to int fd.
* ops.h (_gpgme_passphrase_command_handler_internal): New prototype.
* passphrase.c: Include <assert.h>.
(op_data_t): Rename userid_hint to uid_hint, remove last_pw_handle.
(release_op_data): Check values before calling free.
(_gpgme_passphrase_status_handler): Likewise.
(_gpgme_passphrase_command_handler_internal): New function.
(_gpgme_passphrase_command_handler): Rewritten.
* edit.c (edit_status_handler): Pass -1 as fd argument.
(command_handler): Update prototype.  New variable processed.  Use
it to store return value of
_gpgme_passphrase_command_handler_internal which is now used
instead _gpgme_passphrase_command_handler.  Use it also to check
if we should call the user's edit function.  Pass fd to user's
edit function.
* rungpg.c (struct gpg_object_s): Change type of cmd.cb_data to
void *.
(gpg_release): Check value before calling free.  Do not release
cmd.cb_data.
(command_cb): Function removed.
(command_handler): New function.  Thus we don't use a data object
for command handler stuff anymore, but handle it directly.  This
allows proper error reporting (cancel of passphrase requests, for
example).  Also all callbacks work via direct writes to the file
descriptor (so that passphrases are not kept in insecure memory).
(gpg_set_command_handler): Rewritten to use even more ugly hacks.
(read_status): Check cmd.keyword before calling free.  Install
command_handler as the I/O callback handler with GPG as private
data.

tests/
2003-05-27  Marcus Brinkmann  <marcus@g10code.de>

* (t-decrypt-verify.c, t-decrypt.c, t-edit.c, t-encrypt-sign.c,
t-encrypt-sym.c, t-sign.c, t-signers.c): Include <unistd.h>.
(passphrase_cb): Rewritten.
* t-edit.c (edit_fnc): Rewritten.

21 years agoUpdate Miguel's email address.
Marcus Brinkmann [Mon, 26 May 2003 22:01:50 +0000 (22:01 +0000)]
Update Miguel's email address.

21 years agoBump gpg version requirement.
Marcus Brinkmann [Mon, 26 May 2003 21:59:11 +0000 (21:59 +0000)]
Bump gpg version requirement.

21 years ago2003-05-26 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Mon, 26 May 2003 21:50:45 +0000 (21:50 +0000)]
2003-05-26  Marcus Brinkmann  <marcus@g10code.de>

* configure.ac (NEED_GPG_VERSION): Bump up to 1.2.2.

gpgme/
2003-05-26  Marcus Brinkmann  <marcus@g10code.de>

* rungpg.c (gpg_new): Add --enable-progress-filter to gpg
invocation.
* decrypt-verify.c (_gpgme_op_decrypt_verify_start): Rename to
decrypt_verify_start.
(gpgme_op_decrypt_verify_start): Call decrypt_verify_start.
(gpgme_op_decrypt_verify): Likewise.
* verify.c (verify_status_handler): New function that also calls
progress status handler.
(_gpgme_op_verify_start): Set status handler to verify_status_handler.
Rename to (verify_start).
(gpgme_op_verify_start): Call verify_start.
(gpgme_op_verify): Likewise.
* encrypt.c (encrypt_status_handler): New function.
(_gpgme_encrypt_sym_status_handler): Call progress status handler.
Make static.  Rename to encrypt_sym_status_handler.
(encrypt_start): Set status handler to encrypt_sym_status_handler
or encrypt_status_handler.
* sign.c (sign_status_handler): New function.
(sign_start): Set status handler to sign_status_handler.
* decrypt.c (decrypt_status_handler): New function that also calls
progress status handler.
(decrypt_start): Set status handler to decrypt_status_handler.
* encrypt-sign.c (encrypt_sign_status_handler): Likewise.
* decrypt-verify.c (decrypt_verify_status_handler): Call
_gpgme_progress_status_handler.

21 years ago2003-05-26 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Mon, 26 May 2003 19:43:40 +0000 (19:43 +0000)]
2003-05-26  Marcus Brinkmann  <marcus@g10code.de>

* conversion.c (_gpgme_decode_c_string): Add missing break
statement.

21 years ago2003-05-26 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Mon, 26 May 2003 19:13:15 +0000 (19:13 +0000)]
2003-05-26  Marcus Brinkmann  <marcus@g10code.de>

* recipient.c (gpgme_recipients_add_name_with_validity): Add one
to buffer to allocate.

21 years ago2003-05-19 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Sun, 18 May 2003 22:54:19 +0000 (22:54 +0000)]
2003-05-19  Marcus Brinkmann  <marcus@g10code.de>

* verify.c (parse_new_sig): Fix ERRSIG case.
Submitted by Benjamin Lee <benjaminlee@users.sf.net>.

21 years agoBeautify source code.
Marcus Brinkmann [Sun, 18 May 2003 21:08:43 +0000 (21:08 +0000)]
Beautify source code.

21 years ago2003-05-18 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Sun, 18 May 2003 20:45:24 +0000 (20:45 +0000)]
2003-05-18  Marcus Brinkmann  <marcus@g10code.de>

In all files, replace the Gpgme* type names with the new gpgme_*
type names.

doc/
2003-05-18  Marcus Brinkmann  <marcus@g10code.de>

* gpgme.texi (Header): Remove Gpgme as namespace prefix.  Add
_GPGME to namespace prefix.
* gpgme.texi (Multi Threading): Add note about link order.

gpgme/
2003-05-18  Marcus Brinkmann  <marcus@g10code.de>

* gpgme.h: The following types are renamed.  The old name is kept
as a deprecated typedef.
(GpgmeCtx): Rename to gpgme_ctx_t.
(GpgmeData): Rename to gpgme_data_t.
(GpgmeRecipients): Rename to gpgme_recipients_t.
(GpgmeError): Rename to gpgme_error_t.
(GpgmeDataEncoding): Rename to gpgme_data_encoding_t.
(GpgmePubKeyAlgo): Rename to gpgme_pubkey_algo_t.
(GpgmeHashAlgo): Rename to gpgme_hash_algo_t.
(GpgmeSigStat): Rename to gpgme_sig_stat_t.
(GpgmeSigMode): Rename to gpgme_sig_mode_t.
(GpgmeAttr): Rename to gpgme_attr_t.
(GpgmeValidity): Rename to gpgme_validity_t.
(GpgmeProtocol): Rename to gpgme_protocol_t.
(GpgmeStatusCode): Rename to gpgme_status_code_t.
(GpgmeEngineInfo): Rename to gpgme_engine_info_t.
(GpgmeSubkey): Rename to gpgme_subkey_t.
(GpgmeKeySig): Rename to gpgme_keysig_t.
(GpgmeUserID): Rename to gpgme_user_id_t.
(GpgmePassphraseCb): Rename to gpgme_passphrase_cb_t.
(GpgmeProgressCb): Rename to gpgme_progress_cb_t.
(GpgmeEditCb): Rename to gpgme_edit_cb_t.
(GpgmeIOCb): Rename to gpgme_io_cb_t.
(GpgmeRegisterIOCb): Rename to gpgme_register_io_cb_t.
(GpgmeRemoveIOCb): Rename to gpgme_remove_io_cb_t.
(GpgmeEventIO): Rename to gpgme_event_io_t.
(GpgmeEventIOCb): Rename to gpgme_event_io_cb_t.
(GpgmeIOCbs): Rename to gpgme_io_cbs.
(gpgme_io_cbs_t): New type.
(GpgmeDataReadCb): Rename to gpgme_data_read_cb_t.
(GpgmeDataWriteCb): Rename to gpgme_data_write_cb_t.
(GpgmeDataSeekCb): Rename to gpgme_data_seek_cb_t.
(GpgmeDataReleaseCb): Rename to gpgme_data_release_cb_t.
(GpgmeDataCbs): Rename to gpgme_data_cbs.
(gpgme_data_cbs_t): New type.
(GpgmeInvalidUserID): Rename to gpgme_invalid_user_id_t.
(GpgmeEncryptResult): Rename to gpgme_encrypt_result_t.
(GpgmeDecryptResult): Rename to gpgme_decrypt_result_t.
(GpgmeNewSignature): Rename to gpgme_new_signature_t.
(GpgmeSignResult): Rename to gpgme_sign_result_t.
(GpgmeSigNotation): Rename to gpgme_sig_notation_t.
(GpgmeSignature): Rename to gpgme_signature_t.
(GpgmeVerifyResult): Rename to gpgme_verify_result_t.
(GpgmeImportStatus): Rename to gpgme_import_status_t.
(GpgmeImportResult): Rename to gpgme_import_result_t.
(GpgmeGenKeyResult): Rename to gpgme_genkey_result_t.
(GpgmeKeyListResult): Rename to gpgme_keylist_result_t.
(GpgmeTrustItem): Rename to gpgme_trust_item_t.
* gpgme.h (gpgme_deprecated_error_t): New type, swallowing macros
GPGME_No_Recipients, GPGME_Invalid_Recipient and
GPGME_No_Passphrase.
* data.h (struct gpgme_data_s): Rename to struct gpgme_data.
* context.h (struct gpgme_context_s): Rename to struct
gpgme_context.
(struct gpgme_recipients_s): Rename to gpgme_recipients.

21 years ago2003-05-18 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Sun, 18 May 2003 14:39:56 +0000 (14:39 +0000)]
2003-05-18  Marcus Brinkmann  <marcus@g10code.de>

* keylist.c (finish_key): Clear OPD->tmp_uid.

21 years ago2003-05-18 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Sun, 18 May 2003 13:59:53 +0000 (13:59 +0000)]
2003-05-18  Marcus Brinkmann  <marcus@g10code.de>

* verify.c (_gpgme_verify_status_handler): Return GPGME_No_Data
for NODATA status without signatures.

21 years agoAdd item.
Marcus Brinkmann [Sun, 4 May 2003 23:53:53 +0000 (23:53 +0000)]
Add item.

21 years agoAdd items.
Marcus Brinkmann [Sun, 4 May 2003 23:53:00 +0000 (23:53 +0000)]
Add items.

21 years ago2003-05-05 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Sun, 4 May 2003 22:28:33 +0000 (22:28 +0000)]
2003-05-05  Marcus Brinkmann  <marcus@g10code.de>

* key.c (_gpgme_key_append_name): Use decoded string to parse user id.
(_gpgme_key_add_sig): Likewise.

21 years ago2003-05-04 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Sun, 4 May 2003 22:06:06 +0000 (22:06 +0000)]
2003-05-04  Marcus Brinkmann  <marcus@g10code.de>

* gpg/t-keylist-sig.c (main): Remove timestamp check.