gnupg.git
16 years ago* gpgkeys_ldap.c (get_key): Some compilers (RISC OS, HPUX c89) don't like
David Shaw [Mon, 9 Sep 2002 20:36:12 +0000 (20:36 +0000)]
* gpgkeys_ldap.c (get_key): Some compilers (RISC OS, HPUX c89) don't like
using variables as array initializers.

16 years ago* gpgkeys_hkp.c (send_key): Use CRLF in headers.
David Shaw [Mon, 9 Sep 2002 20:16:24 +0000 (20:16 +0000)]
* gpgkeys_hkp.c (send_key): Use CRLF in headers.

16 years ago* g10.c (add_group): Use '=' to separate group name from group members.
David Shaw [Mon, 9 Sep 2002 19:21:58 +0000 (19:21 +0000)]
* g10.c (add_group): Use '=' to separate group name from group members.
Use a better error message for when no = is found.

* hkp.c (hkp_export): Use CRLF in headers.

16 years ago* NEWS: typo.
David Shaw [Mon, 9 Sep 2002 16:40:14 +0000 (16:40 +0000)]
* NEWS: typo.

* configure.ac: Add a link test for LDAP without -lresolv for HPUX.
Remove "hstrerror" test as it is no longer needed.

16 years ago* gpg-agent.c (create_private_keys_directory)
Werner Koch [Mon, 9 Sep 2002 10:15:21 +0000 (10:15 +0000)]
* gpg-agent.c (create_private_keys_directory)
(create_directories): New.
(main): Try to create a home directory.

16 years ago2002-09-04 Neal H. Walfield <neal@g10code.de>
Neal Walfield [Thu, 5 Sep 2002 16:28:31 +0000 (16:28 +0000)]
2002-09-04  Neal H. Walfield  <neal@g10code.de>

* gpg-agent.c (main): Use sigaction, not signal.

16 years ago2002-09-04 Neal H. Walfield <neal@g10code.de>
Neal Walfield [Thu, 5 Sep 2002 16:24:16 +0000 (16:24 +0000)]
2002-09-04  Neal H. Walfield  <neal@g10code.de>

* vasprintf.c (vasprintf) [va_copy]: Use va_copy.
[!va_copy && __va_copy]: Use __va_copy.
[!va_copy && !__va_copy]: Only now fall back to using memcpy.

16 years ago2002-09-03 Neal H. Walfield <neal@g10code.de>
Neal Walfield [Thu, 5 Sep 2002 16:21:43 +0000 (16:21 +0000)]
2002-09-03  Neal H. Walfield  <neal@g10code.de>

* findkey.c: Include <fcntl.h>.
(agent_write_private_key): Prefer POSIX compatibity, open and
fdopen, over the simplicity of GNU extensions, fopen(file, "x").

16 years ago2002-09-04 Neal H. Walfield <neal@g10code.de>
Neal Walfield [Thu, 5 Sep 2002 00:44:29 +0000 (00:44 +0000)]
2002-09-04  Neal H. Walfield  <neal@g10code.de>

* Makefile.am (inittests.stamp): Do not set LD_LIBRARY_PATH, but
rather prepend it.  Be more robust and prefer printf over echo -n.

16 years ago2002-09-04 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Wed, 4 Sep 2002 13:04:49 +0000 (13:04 +0000)]
2002-09-04  Marcus Brinkmann  <marcus@g10code.de>

* asschk.c (start_server): Close the parent's file descriptors in
the child.
(read_assuan): Variable NREAD removed.  Cut off the received line
currectly if more than one line was read.

16 years ago2002-09-03 Neal H. Walfield <neal@cs.uml.edu>
Neal Walfield [Wed, 4 Sep 2002 03:16:09 +0000 (03:16 +0000)]
2002-09-03  Neal H. Walfield  <neal@cs.uml.edu>

* Makefile.am (inittests.stamp): Construct an LD_LIBRARY_PATH from
LDFLAGS.

16 years ago* mainproc.c (print_pkenc_list): Don't increment the error counter when
David Shaw [Wed, 4 Sep 2002 02:48:47 +0000 (02:48 +0000)]
* mainproc.c (print_pkenc_list): Don't increment the error counter when
printing the list of keys a message was encrypted to.  This would make gpg
give a non-zero exit code even for completely valid messages if the
message was encrypted to more than one key that the user owned.

16 years agonew test certs and messages
Werner Koch [Tue, 3 Sep 2002 14:54:18 +0000 (14:54 +0000)]
new test certs and messages

16 years ago* gpgsm.c (main): Disable the internal libgcrypt locking.
Werner Koch [Tue, 3 Sep 2002 14:53:53 +0000 (14:53 +0000)]
* gpgsm.c (main): Disable the internal libgcrypt locking.

16 years ago* gnupg.7: New mini man page.
Werner Koch [Mon, 2 Sep 2002 13:50:05 +0000 (13:50 +0000)]
* gnupg.7: New mini man page.

* README: Removed the note about a development version so that we
later don't forget this.  Minor other changes.

16 years ago* mk-w32-dist: Include more man pages and gpg split. Changed name
Werner Koch [Mon, 2 Sep 2002 13:44:29 +0000 (13:44 +0000)]
* mk-w32-dist: Include more man pages and gpg split.  Changed name
of ZIP file to better indicate that this is a command line version.

16 years agoMoved some items from TODO to NEWS.
Werner Koch [Mon, 2 Sep 2002 10:59:54 +0000 (10:59 +0000)]
Moved some items from TODO to NEWS.

16 years ago* g10.c (main): Try to set a default character set. Print the
Werner Koch [Mon, 2 Sep 2002 10:59:04 +0000 (10:59 +0000)]
* g10.c (main): Try to set a default character set.  Print the
used one in verbosity level 3.
* gpgv.c (main): Try to set a default character set.

* status.c, status.h (STATUS_IMPORT_OK): New.
* import.c (import_one,import_secret_one): Print new status.

16 years ago* gpg.sgml: Updated the charset option.
Werner Koch [Mon, 2 Sep 2002 10:58:46 +0000 (10:58 +0000)]
* gpg.sgml: Updated the charset option.

* DETAILS: Added status IMPORT_OK.

16 years ago* strgutil.c (set_native_charset): Allow NULL as argument to use
Werner Koch [Mon, 2 Sep 2002 10:58:30 +0000 (10:58 +0000)]
* strgutil.c (set_native_charset): Allow NULL as argument to use
nl_langinfo for selection.  Mapped latin-15 to latin-1.

16 years ago* gnupg.7: New mini man page.
Werner Koch [Mon, 2 Sep 2002 08:47:38 +0000 (08:47 +0000)]
* gnupg.7: New mini man page.

16 years ago* gpg.sgml: Document keyserver-option include-subkeys. Note that
David Shaw [Fri, 30 Aug 2002 19:28:33 +0000 (19:28 +0000)]
* gpg.sgml: Document keyserver-option include-subkeys.  Note that
honor-http-proxy is a keyserver-option now.

* DETAILS: Add "Key not trusted" to INV_RECP status code.

16 years ago* pkclist.c (build_pk_list): Add new status code to indicate an untrusted
David Shaw [Fri, 30 Aug 2002 19:21:55 +0000 (19:21 +0000)]
* pkclist.c (build_pk_list): Add new status code to indicate an untrusted
user.  This (or a disabled key) fail with "unavailable pubkey"
(G10ERR_UNU_PUBKEY).

16 years ago* pkclist.c (build_pk_list): Fail if any recipient keys are unusable.
David Shaw [Fri, 30 Aug 2002 18:01:32 +0000 (18:01 +0000)]
* pkclist.c (build_pk_list): Fail if any recipient keys are unusable.

* options.skel: The PGP LDAP keyserver is back.  Use MIT keyserver as a
sample rather than cryptnet as cryptnet does not support searching yet.

* keyedit.c (show_key_with_all_names): Fix error message (preferences are
userid/selfsig and not key specific).

16 years ago* iobuf.c (block_filter): Removed the assert, so that one can pass
Werner Koch [Fri, 30 Aug 2002 16:37:09 +0000 (16:37 +0000)]
* iobuf.c (block_filter): Removed the assert, so that one can pass
the first character of a message and use the block filter for
non partial length encoded packets.

16 years ago* configure.ac (random_modules): Reworked the code to select the
Werner Koch [Fri, 30 Aug 2002 16:36:08 +0000 (16:36 +0000)]
* configure.ac (random_modules): Reworked the code to select the
random module.  Define USE_ALL_RANDOM_MODULES for value all.

16 years ago* pkclist.c (do_we_trust_pre): Changed the wording of a warning.
Werner Koch [Fri, 30 Aug 2002 16:34:13 +0000 (16:34 +0000)]
* pkclist.c (do_we_trust_pre): Changed the wording of a warning.

* encode.c (encode_simple,encode_crypt): Use new style CTB for
compressssed packets when using MDC.  We need to do this so that
concatenated messages are properly decrypted.  Old style
compression assumes that it is the last packet; given that we
can't determine the length in advance, the uncompressor does not
know where to start.  Actually we should use the new CTB always
but this would break PGP 2 compatibility.
* parse-packet.c (parse): Special treatment for new style CTB
compressed packets.

* build-packet.c (do_mdc): Removed. Was not used.
(do_encrypted_mdc): Count the version number and the MDC packet.

16 years ago* random.c: Automagically detect the entrop gatherer when
Werner Koch [Fri, 30 Aug 2002 16:33:55 +0000 (16:33 +0000)]
* random.c: Automagically detect the entrop gatherer when
configure so.
* rndegd.c (rndegd_connect_socket): New.  Factored out from ..
(rndegd_gather_random): here and call it.
(do_read): Update the counter variables correctly.  This was not a
problem due to the way EGD works. Bug found by Christian Biere.

16 years ago* gpgkeys_hkp.c: (parse_hkp_index): Use same types on all platforms.
David Shaw [Wed, 28 Aug 2002 20:10:29 +0000 (20:10 +0000)]
* gpgkeys_hkp.c: (parse_hkp_index): Use same types on all platforms.
This was probably leftover from earlier code where the typing mattered.

16 years ago* sig-check.c (do_check_messages, do_check): Show keyid in error messages.
David Shaw [Wed, 28 Aug 2002 19:34:58 +0000 (19:34 +0000)]
* sig-check.c (do_check_messages, do_check): Show keyid in error messages.

* keyserver.c (print_keyinfo): More readable key listings for
--search-keys responses.

16 years ago* gpgkeys_hkp.c: Overall cleanup from iobuf conversion. Be consistent in
David Shaw [Wed, 28 Aug 2002 04:04:37 +0000 (04:04 +0000)]
* gpgkeys_hkp.c: Overall cleanup from iobuf conversion.  Be consistent in
m_alloc and malloc usage.  Remove include-disabled (meaningless on HKP).
RISC OS tweak.

16 years ago* gpgkeys_hkp.c, Makefile.am: Convert over to using iobufs.
David Shaw [Tue, 27 Aug 2002 19:11:36 +0000 (19:11 +0000)]
* gpgkeys_hkp.c, Makefile.am: Convert over to using iobufs.

16 years ago* configure.ac: Check type of mode_t.
David Shaw [Tue, 27 Aug 2002 18:10:51 +0000 (18:10 +0000)]
* configure.ac: Check type of mode_t.

16 years ago* gpgkeys_hkp.c (http_get, http_post): Use CRLF for line endings.
David Shaw [Tue, 27 Aug 2002 14:49:23 +0000 (14:49 +0000)]
* gpgkeys_hkp.c (http_get, http_post): Use CRLF for line endings.

16 years ago* NEWS: Clarify that --libexecdir is a configure option.
David Shaw [Tue, 27 Aug 2002 12:46:00 +0000 (12:46 +0000)]
* NEWS: Clarify that --libexecdir is a configure option.

* configure.ac: Check for hstrerror.

16 years ago* gpgkeys_hkp.c: Include util.h on RISC OS as per Stefan. Include a
David Shaw [Tue, 27 Aug 2002 12:44:18 +0000 (12:44 +0000)]
* gpgkeys_hkp.c: Include util.h on RISC OS as per Stefan.  Include a
replacement for hstrerror() for those platforms (such as RISC OS) that
don't have it.

16 years ago* Makefile.am: May as well include gpgkeys_hkp.c in the distribution now.
David Shaw [Mon, 26 Aug 2002 22:44:38 +0000 (22:44 +0000)]
* Makefile.am: May as well include gpgkeys_hkp.c in the distribution now.
It works well enough without proxies, and isn't built by default.  It
would be good to get some test experience with it.

16 years ago* gpgkeys_hkp.c (main): Don't warn about include-subkeys - it isn't
David Shaw [Mon, 26 Aug 2002 19:26:56 +0000 (19:26 +0000)]
* gpgkeys_hkp.c (main): Don't warn about include-subkeys - it isn't
unsupported, it's actually non-meaningful in the context of HKP (yet).

16 years ago* gpgkeys_hkp.c (parse_hkp_index, dehtmlize): Move HTML functionality into
David Shaw [Mon, 26 Aug 2002 19:22:48 +0000 (19:22 +0000)]
* gpgkeys_hkp.c (parse_hkp_index, dehtmlize): Move HTML functionality into
new "dehtmlize" function.  Remove HTML before trying to parse each line
from the keyserver.  If the keyserver provides key type information in the
listing, use it.  (Copy over from g10/hkp.c).

16 years ago* hkp.c (parse_hkp_index, dehtmlize): Move HTML functionality into new
David Shaw [Mon, 26 Aug 2002 19:07:59 +0000 (19:07 +0000)]
* hkp.c (parse_hkp_index, dehtmlize): Move HTML functionality into new
"dehtmlize" function.  Remove HTML before trying to parse each line from
the keyserver.  If the keyserver provides key type information in the
listing, use it.

16 years ago* longlong.h: Remove space between \ and newline. gcc is complaining.
David Shaw [Sat, 24 Aug 2002 15:01:05 +0000 (15:01 +0000)]
* longlong.h: Remove space between \ and newline. gcc is complaining.

16 years ago* sig-check.c (do_check, do_check_messages): Emit the usual sig warnings
David Shaw [Fri, 23 Aug 2002 20:59:48 +0000 (20:59 +0000)]
* sig-check.c (do_check, do_check_messages): Emit the usual sig warnings
even for cached sigs.  This also serves to protect against missing a sig
expiring while cached.

* getkey.c (merge_selfsigs_main): Don't check UID self-sigs twice.

16 years ago* faq.raw: Updated. New Maintainer is David D. Scribner.
Werner Koch [Fri, 23 Aug 2002 08:43:46 +0000 (08:43 +0000)]
* faq.raw: Updated.  New Maintainer is David D. Scribner.

16 years agoInclude intl/ in the CVS again; otherwise we are not able to
Werner Koch [Fri, 23 Aug 2002 08:02:08 +0000 (08:02 +0000)]
Include intl/ in the CVS again; otherwise we are not able to
re-recreate a distribution from CVS.
Some minor other fixes.

16 years ago* gpg.sgml: Clarify meaning of keyserver option include-revoked.
David Shaw [Thu, 22 Aug 2002 17:48:47 +0000 (17:48 +0000)]
* gpg.sgml: Clarify meaning of keyserver option include-revoked.

16 years ago* import.c (clean_subkeys, chk_self_sigs): Merge clean_subkeys into
David Shaw [Thu, 22 Aug 2002 17:47:42 +0000 (17:47 +0000)]
* import.c (clean_subkeys, chk_self_sigs): Merge clean_subkeys into
chk_self_sigs.  This improves efficiency as the same signatures are not
checked multiple times.  Clarify when a subkey is revoked (any revocation
signature, even if it is dated before the binding signature).

* getkey.c (merge_selfsigs_subkey): Subkey revocation comments.

* keylist.c (list_one): Stats are only for public key listings.

* g10.c (main), options.skel: Default should be include-revoked for
keyserver operations.

16 years ago* query.c (agent_askpin): Provide the default desc text depending NEWPG-0-9-1
Werner Koch [Thu, 22 Aug 2002 09:47:39 +0000 (09:47 +0000)]
* query.c (agent_askpin): Provide the default desc text depending
on the pininfo.  Do the basic PIN verification only when
min_digist is set.

16 years ago* import.c (print_imported_summary): Cleaned up. Print new
Werner Koch [Wed, 21 Aug 2002 15:41:21 +0000 (15:41 +0000)]
* import.c (print_imported_summary): Cleaned up.  Print new
not_imported value.
(check_and_store): Update non_imported counter.
(print_import_problem): New.
(check_and_store): Print error status message.
* server.c (get_status_string): Added STATUS_IMPORT_PROBLEM.

16 years ago* errors.h: Added STATUS_IMPORT_PROBLEM.
Werner Koch [Wed, 21 Aug 2002 15:41:11 +0000 (15:41 +0000)]
* errors.h: Added STATUS_IMPORT_PROBLEM.

16 years ago* import.c (import_print_stats): Print new non_imported counter
Werner Koch [Wed, 21 Aug 2002 14:59:05 +0000 (14:59 +0000)]
* import.c (import_print_stats): Print new non_imported counter
which is currently not used becuase we terminate on errors.

16 years ago* query.c (agent_askpin): Hack to show the right default prompt. NEWPG-0-9-0
Werner Koch [Wed, 21 Aug 2002 11:11:04 +0000 (11:11 +0000)]
* query.c (agent_askpin): Hack to show the right default prompt.
(agent_get_passphrase): Ditto.

* Makefile.am: Renamed the binary protect-tool to gpg-protect-tool.
* protect-tool.c: Removed the note about internal use only.

* gpg-agent.c (main): New option --daemon so that the program is
not accidently started in the background.

16 years agouse setlocale().
Werner Koch [Wed, 21 Aug 2002 11:10:44 +0000 (11:10 +0000)]
use setlocale().

16 years ago* scdaemon.c (main): New option --daemon so that the program is
Werner Koch [Wed, 21 Aug 2002 08:19:12 +0000 (08:19 +0000)]
* scdaemon.c (main): New option --daemon so that the program is
not accidently started in the background.

16 years ago* vasprintf.c: Hack to handle NULL for %s.
Werner Koch [Wed, 21 Aug 2002 08:18:43 +0000 (08:18 +0000)]
* vasprintf.c: Hack to handle NULL for %s.

16 years ago* divert-scd.c (getpin_cb): Pass a more descritive text to the
Werner Koch [Wed, 21 Aug 2002 08:18:23 +0000 (08:18 +0000)]
* divert-scd.c (getpin_cb): Pass a more descritive text to the
pinentry.

* Makefile.am: Renamed the binary protect-tool to gpg-protect-tool.
* protect-tool.c: Removed the note about internal use only.

* gpg-agent.c (main): New option --daemon so that the program is
not accidently started in the background.

16 years ago* options.skel: Document no-include-attributes for keyserver-options.
David Shaw [Tue, 20 Aug 2002 17:16:33 +0000 (17:16 +0000)]
* options.skel: Document no-include-attributes for keyserver-options.

16 years ago* gpgsm.c (main): Use the log file only in server mode.
Werner Koch [Tue, 20 Aug 2002 13:09:53 +0000 (13:09 +0000)]
* gpgsm.c (main): Use the log file only in server mode.

* import.c (print_imported_summary): New.
(check_and_store): Update the counters, take new argument.
(import_one): Factored out core of gpgsm_import.
(gpgsm_import): Print counters.
(gpgsm_import_files): New.
* gpgsm.c (main): Use the new function for import.

16 years ago* DETAILS: Clarify that trust letters 'q' and '-' can be treated
David Shaw [Tue, 20 Aug 2002 12:56:51 +0000 (12:56 +0000)]
* DETAILS: Clarify that trust letters 'q' and '-' can be treated
identically.

* gpg.sgml: Document --ignore-mdc-error.

16 years ago* keylist.c, keyedit.c, keyserver.c, sign.c: Some TODOs and comments.
David Shaw [Tue, 20 Aug 2002 12:45:57 +0000 (12:45 +0000)]
* keylist.c, keyedit.c, keyserver.c, sign.c: Some TODOs and comments.

* export.c (do_export_stream): Fix noop bug in exporting sensitive
revocation keys.

* pkclist.c (do_edit_ownertrust): Comment out the option for showing trust
paths until it can be implemented.

16 years ago* gpgkeys_hkp.c (get_key, parse_hkp_index): Bring over latest code from
David Shaw [Mon, 19 Aug 2002 21:14:57 +0000 (21:14 +0000)]
* gpgkeys_hkp.c (get_key, parse_hkp_index): Bring over latest code from
g10/hkp.c.

* gpgkeys_ldap.c (get_key): Fix cosmetic URL display problem (extra ":" at
the end).

16 years ago* NEWS: Document new ways to enable MDC, and change in automatic
David Shaw [Mon, 19 Aug 2002 19:38:18 +0000 (19:38 +0000)]
* NEWS: Document new ways to enable MDC, and change in automatic
compression disabling.

* configure.ac: No such thing as the "none" random gather any longer.

16 years agoShort note about interactive and import.
Werner Koch [Mon, 19 Aug 2002 08:42:57 +0000 (08:42 +0000)]
Short note about interactive and import.

16 years ago* getkey.c (get_user_id_native): Renamed to ..
Werner Koch [Mon, 19 Aug 2002 08:28:00 +0000 (08:28 +0000)]
* getkey.c (get_user_id_native): Renamed to ..
(get_user_id_printable): this.  Filter out all dangerous
characters.  Checked all usages.
(get_user_id_string_native): Renamed to..
(get_user_id_string_printable): this.  Filter out all dangerous
characters.  Checked all usages.
* keyedit.c (show_basic_key_info): New.
* keylist.c (print_fingerprint): New mode 3.
* import.c (import_one): Use new function to display the user ID.

16 years ago2002-08-16 Timo Schulz <ts@winpt.org>
Timo Schulz [Sun, 18 Aug 2002 17:24:21 +0000 (17:24 +0000)]
2002-08-16  Timo Schulz  <ts@winpt.org>

        * g10.c (main): enable opt.interactive.

        * import.c (import_one): Ask the user if the key shall be
        imported when the interactive mode is used. Useful to extract
        selected keys from a file.

16 years agoMade it compile.
Werner Koch [Fri, 16 Aug 2002 14:31:49 +0000 (14:31 +0000)]
Made it compile.

16 years ago* call-scd.c (learn_status_cb): Handle CERTINFO status.
Werner Koch [Fri, 16 Aug 2002 14:24:38 +0000 (14:24 +0000)]
* call-scd.c (learn_status_cb): Handle CERTINFO status.
(agent_card_learn): Add args for certinfo cb.
* learncard.c (release_certinfo,certinfo_cb): New.
(send_cert_back): New. With factored out code from ..
(agent_handle_learn): here.  Return certinfo stuff.

16 years ago* assuan.h: Renamed Bad_Certificate_Path to Bad_Certificate_Chain.
Werner Koch [Fri, 16 Aug 2002 14:24:25 +0000 (14:24 +0000)]
* assuan.h: Renamed Bad_Certificate_Path to Bad_Certificate_Chain.

16 years agoRenamed an error code.
Werner Koch [Fri, 16 Aug 2002 14:24:12 +0000 (14:24 +0000)]
Renamed an error code.

16 years ago* scdaemon.c: Include i18n.h.
Werner Koch [Fri, 16 Aug 2002 14:23:40 +0000 (14:23 +0000)]
* scdaemon.c: Include i18n.h.

* card-common.h (struct p15_private_s): Forward declaration.  Add
it to card_ctx_s.
* card.c (card_close): Make sure private data is released.
(card_enum_certs): New.
* card-p15.c (p15_release_private_data): New.
(init_private_data): New to work around an OpenSC weirdness.
(p15_enum_keypairs): Do an OpenSC get_objects only once.
(p15_enum_certs): New.
(card_p15_bind): Bind new function.
* command.c (cmd_learn): Return information about the certificates.

16 years agoRenamed some configure flags.
Werner Koch [Fri, 16 Aug 2002 14:23:23 +0000 (14:23 +0000)]
Renamed some configure flags.

16 years ago*** empty log message ***
Werner Koch [Fri, 16 Aug 2002 14:15:43 +0000 (14:15 +0000)]
*** empty log message ***

16 years ago* certpath.c: Renamed to ..
Werner Koch [Fri, 16 Aug 2002 14:09:23 +0000 (14:09 +0000)]
* certpath.c: Renamed to ..
* certchain.c: this. Renamed all all other usages of "path" in the
context of certificates to "chain".

16 years ago* call-agent.c (learn_cb): Special treatment when the issuer
Werner Koch [Fri, 16 Aug 2002 13:55:03 +0000 (13:55 +0000)]
* call-agent.c (learn_cb): Special treatment when the issuer
certificate is missing.

16 years ago* card-common.h (struct p15_private_s): Forward declaration. Add
Werner Koch [Fri, 16 Aug 2002 10:33:31 +0000 (10:33 +0000)]
* card-common.h (struct p15_private_s): Forward declaration.  Add
it to card_ctx_s.
* card.c (card_close): Make sure private data is released.
* card-p15.c (p15_release_private_data): New.
(init_private_data): New to work around an OpenSC weirdness.
(p15_enum_keypairs): Do an OpenSC get_objects only once.

16 years agoRemoved a leftover conflict indicator.
Werner Koch [Fri, 16 Aug 2002 07:14:29 +0000 (07:14 +0000)]
Removed a leftover conflict indicator.

16 years ago* seckey-cert.c: Workaround to allow decryption of v3 keys created
Werner Koch [Fri, 16 Aug 2002 07:13:13 +0000 (07:13 +0000)]
* seckey-cert.c: Workaround to allow decryption of v3 keys created
with a bug in the mpi_get_secure_buffer.

16 years ago* hkp.c (parse_hkp_index): Properly handle really large keys (5 digit key
David Shaw [Wed, 14 Aug 2002 22:48:28 +0000 (22:48 +0000)]
* hkp.c (parse_hkp_index): Properly handle really large keys (5 digit key
length) in HKP searches.

16 years ago* encode.c (encode_simple): Fix problem with using compression algo 2 and
David Shaw [Tue, 13 Aug 2002 19:00:23 +0000 (19:00 +0000)]
* encode.c (encode_simple): Fix problem with using compression algo 2 and
symmetric compressed files.

* encode.c (encode_simple, encode_crypt): If we are not using a MDC,
compress even if a file is already compressed.  This is to help against
the chosen ciphertext attack.

* pkclist.c (select_algo_from_prefs): Fix requested algorithm bug so the
request succeeds even if the requested algorithm is not the first found.

* cipher.c (write_header), encode.c (use_mdc, encode_simple, encode_crypt,
encrypt_filter), g10.c (main): Be more eager to use a MDC.  We use a MDC
if the keys directly support it, if the keys list AES (any) or TWOFISH
anywhere in the prefs, or if the cipher chosen does not have a 64 bit
blocksize.

16 years ago* cipher.h: Add AES aliases for RIJNDAEL algo numbers.
David Shaw [Tue, 13 Aug 2002 18:44:25 +0000 (18:44 +0000)]
* cipher.h: Add AES aliases for RIJNDAEL algo numbers.

16 years ago* mpicoder.c (do_get_buffer): Don't remove leading zeros if the
Werner Koch [Tue, 13 Aug 2002 05:55:16 +0000 (05:55 +0000)]
* mpicoder.c (do_get_buffer): Don't remove leading zeros if the
MPI is marked as protected.

16 years ago* cipher.c: Include the DUMMY cipher only when the new ALLOW_DUMMY
Werner Koch [Mon, 12 Aug 2002 17:46:46 +0000 (17:46 +0000)]
* cipher.c: Include the DUMMY cipher only when the new ALLOW_DUMMY
is defined. It should only be defined for hard core debugging.

16 years agoMinor changes for gettext NEWPG-0-3-10
Werner Koch [Sat, 10 Aug 2002 11:25:32 +0000 (11:25 +0000)]
Minor changes for gettext

16 years ago* keylist.c (list_cert_colon): Print the short fingerprint in the
Werner Koch [Sat, 10 Aug 2002 09:14:21 +0000 (09:14 +0000)]
* keylist.c (list_cert_colon): Print the short fingerprint in the
key ID field.
* fingerprint.c (gpgsm_get_short_fingerprint): New.
* verify.c (gpgsm_verify): Print more verbose info for a good
signature.

16 years ago* keybox-search.c (blob_cmp_fpr_part): New.
Werner Koch [Sat, 10 Aug 2002 09:14:08 +0000 (09:14 +0000)]
* keybox-search.c (blob_cmp_fpr_part): New.
(has_short_kid, has_long_kid): Implemented.

16 years ago* decrypt.c (prepare_decryption): Hack to detected already
Werner Koch [Fri, 9 Aug 2002 21:01:03 +0000 (21:01 +0000)]
* decrypt.c (prepare_decryption): Hack to detected already
unpkcsedone keys.

16 years agoTweaked the build system so that make distcheck finanly said Well
Werner Koch [Fri, 9 Aug 2002 18:16:02 +0000 (18:16 +0000)]
Tweaked the build system so that make distcheck finanly said Well
Done.

16 years ago* signal.c: New. Taken from GnuPG 1.1.91.
Werner Koch [Fri, 9 Aug 2002 18:13:41 +0000 (18:13 +0000)]
* signal.c: New. Taken from GnuPG 1.1.91.

16 years agoMinor fixes
Werner Koch [Fri, 9 Aug 2002 18:13:24 +0000 (18:13 +0000)]
Minor fixes

16 years ago* gpgsm.c (emergency_cleanup): New.
Werner Koch [Fri, 9 Aug 2002 18:12:22 +0000 (18:12 +0000)]
* gpgsm.c (emergency_cleanup): New.
(main): Initialize the signal handler.

* sign.c (gpgsm_sign): Reset the hash context for subsequent
signers and release it at the end.

16 years ago* card.c (card_get_serial_and_stamp): Use the tokeinfo serial
Werner Koch [Fri, 9 Aug 2002 18:12:01 +0000 (18:12 +0000)]
* card.c (card_get_serial_and_stamp): Use the tokeinfo serial
number as a fallback. Add a special prefix for serial numbers.

16 years agoAdded distfiles kludge to distribute the content of the samplekeys directory.
Werner Koch [Fri, 9 Aug 2002 14:44:59 +0000 (14:44 +0000)]
Added distfiles kludge to distribute the content of the samplekeys directory.

16 years ago* options.skel: Some language tweaks, and remove the load-extension
David Shaw [Fri, 9 Aug 2002 02:23:42 +0000 (02:23 +0000)]
* options.skel: Some language tweaks, and remove the load-extension
section for random gatherers.

* keyring.c (create_tmp_file, rename_tmp_file): Create tmp files with
user-only permissions, but restore the original permissions if the user
has something special set.

* openfile.c (copy_options_file): Create new options file (gpg.conf) with
user-only permissions.

* keydb.c (keydb_add_resource): Create new keyrings with user-only
permissions.

16 years ago* Makefile.am, md.c (load_digest_module): Allow switching TIGER on and off
David Shaw [Thu, 8 Aug 2002 19:41:30 +0000 (19:41 +0000)]
* Makefile.am, md.c (load_digest_module): Allow switching TIGER on and off
via configure.

16 years ago* configure.ac: Add an --enable-tiger.
David Shaw [Thu, 8 Aug 2002 19:38:59 +0000 (19:38 +0000)]
* configure.ac: Add an --enable-tiger.

* NEWS: Clarify new permission checks.

16 years ago* tdbio.c (tdbio_set_dbname): Create new trustdbs with user-only
David Shaw [Thu, 8 Aug 2002 19:09:34 +0000 (19:09 +0000)]
* tdbio.c (tdbio_set_dbname): Create new trustdbs with user-only
permissions.

16 years ago* asschk.c: Added some new features.
Werner Koch [Thu, 8 Aug 2002 16:32:01 +0000 (16:32 +0000)]
* asschk.c: Added some new features.
* runtest, inittests: New.
* text-1.txt, text-2.txt, text-3.txt: New.
* text-1.osig.pem, text-1.dsig.pem, text-1.osig-bad.pem: New.
* text-2.osig.pem, text-2.osig-bad.pem: New.
* samplekeys : New directory
* sm-verify, sm-sign+verify: The first test scripts.

16 years ago* sig-check.c (signature_check2): Sanity check that the md has a context
David Shaw [Wed, 7 Aug 2002 19:53:27 +0000 (19:53 +0000)]
* sig-check.c (signature_check2): Sanity check that the md has a context
for the hash that the sig is expecting.  This can happen if a onepass sig
header does not match the actual sig, and also if the clearsign "Hash:"
header is missing or does not match the actual sig.

16 years ago* cipher.h: Add md_algo_present().
David Shaw [Wed, 7 Aug 2002 19:48:45 +0000 (19:48 +0000)]
* cipher.h: Add md_algo_present().

16 years ago* md.c (md_algo_present): New function to check if a given algo is in use
David Shaw [Wed, 7 Aug 2002 19:47:57 +0000 (19:47 +0000)]
* md.c (md_algo_present): New function to check if a given algo is in use
for a given MD_HANDLE.

16 years agoFirst test script. Still missing the environment setup.
Werner Koch [Wed, 7 Aug 2002 16:42:47 +0000 (16:42 +0000)]
First test script.  Still missing the environment setup.