Commit Graph

1393 Commits

Author SHA1 Message Date
David Shaw 4cee9a453a * NEWS: Note that 1.4 won't have Elgamal sign+encrypt support at all. 2003-12-21 18:19:33 +00:00
David Shaw e9fabace03 * gpg.sgml: Add an example of what an exclamation mark is, as people seem
to miss it often.
2003-12-21 14:32:15 +00:00
David Shaw c6f07b53b2 * getkey.c (get_pubkey_fast): This one is sort of obscure. get_pubkey_fast
returns the primary key when requesting a subkey, so if a user has a key
signed by a subkey (we don't do this, but used to), AND that key is not
self-signed, AND the algorithm of the subkey in question is not present in
GnuPG, AND the algorithm of the primary key that owns the subkey in
question is present in GnuPG, then we will try and verify the subkey
signature using the primary key algorithm and hit a BUG().  The fix is to
not return a hit if the keyid is not the primary.  All other users of
get_pubkey_fast already expect a primary only.
2003-12-10 14:57:38 +00:00
David Shaw 34b2ea2bf6 * gpg.sgml: Fix a few missing semicolons in & entities. Noted by
Christian Biere.  Some minor grammar fixes.  Remove the "host -l pgp.net |
grep wwwkeys" advice since the nameserver no longer all allow zone
transfers.  Replace it with a mention of hkp://subkeys.pgp.net.
2003-12-07 19:56:58 +00:00
David Shaw 23e102f2e7 * gpgkeys_ldap.c (main): Avoid possible pre-string write.
* gpgkeys_hkp.c (parse_hkp_index, dehtmlize): Fix memory corruption bug on
some platforms.  From devel. (search_key): Catch a mangled input file
(useful if something other than GnuPG is calling the program). (main):
Avoid possible pre-string write.  Noted by Christian Biere.
2003-12-06 01:41:00 +00:00
David Shaw bb0d9f0658 * http.c (send_request): Add a Host: header for virtual hosts. 2003-12-06 01:11:01 +00:00
David Shaw f3178ed16e * defs.inc, pubring.asc, secring.asc, plain-1.asc, plain-2.asc,
plain-3.asc: Remove the old v3 Elgamal keys and replace with RSA+Elgamal
and RSA s+e.
2003-12-05 05:11:02 +00:00
David Shaw f9fffa826c * getkey.c (merge_selfsigs_main, merge_selfsigs_subkey,
get_seckey_byname2): Disallow use of encrypt-only v3 Elgamal keys for
anything except revocations.

* sign.c (do_sign): Add Elgamal encrypt-only keys to the signature
catchall.

* trustdb.c (mark_usable_uid_certs): Disallow signatures to and from
Elgamal encrypt-only keys in the trustdb.  Granted, this sounds strange,
but there are historical keys that fit this description.
2003-12-05 04:13:47 +00:00
Werner Koch f7264fb7f6 More of Brian Gladman's contributed files. 2003-12-03 15:21:08 +00:00
Werner Koch 069ab845d1 * zh_TW.po, fi.po: Updated from upstream.
* be.po: New.
* de.po: Updated.
* ru.po: Added.  New version by Maxim Britov.
2003-12-03 15:18:42 +00:00
Werner Koch 50201ba062 Added Brian Gladman's contributions 2003-12-03 15:14:03 +00:00
Werner Koch 6970faab8f * mainproc.c (check_sig_and_print): Removed the "0x" again.
Reverts change from 2003-10-03.

* THANKS: Added Phong Nguyen, who found the Elgamal signing key
problem.

* configure.ac (ALL_LINGUAS): Added a Russian translation; thanks
to Maxim Britov.  Added Belarusion; thanks to Ales Nyakhaychyk.
2003-12-03 15:11:23 +00:00
David Shaw 02d27268ca * miscutil.c (answer_is_yes_no_default, answer_is_yes_no_quit): Don't use
alternate strings when not needed so we don't have to re-translate them.
Hopefully the comment will be enough to indicate multiple match strings.
2003-12-03 13:35:09 +00:00
David Shaw 2af7f3b03d * gpgsplit.c (write_part): Split off decompression code. (handle_zlib):
Move it here. (handle_bzip2): Add this to handle BZIP2 compressed
messages.
2003-12-03 03:26:37 +00:00
David Shaw 2a3150cd7c * NEWS: Note that Elgamal sign+encrypt keys are not part of the web of
trust.
2003-12-02 05:50:11 +00:00
David Shaw e399da2ed0 * cipher.h: Make cipher list match 2440bis-09. 2003-12-02 05:24:55 +00:00
David Shaw 39e551985d * g10.c (strusage, main): Show development version warning in --version
output.

* trustdb.c (mark_usable_uid_certs): Disallow signatures to and from an
Elgamal signing key in the trustdb.
2003-12-02 05:22:42 +00:00
David Shaw a2d7e4b27c * config.links: Show target in asm-syntax.h file and include targets for
K*BSD (GNU userland with BSD kernel).
2003-12-02 05:13:35 +00:00
David Shaw b4fcffbf88 * README: Add --with-zlib, --with-bzip2, and --without-bzip2. 2003-12-01 00:26:30 +00:00
David Shaw e1ff4a3305 * README: Update version number. Add BZIP2. Remove Elgamal sign+encrypt. 2003-11-30 23:58:42 +00:00
David Shaw b713d8464f * keygen.c (ask_algo): Remove ability to generate Elgamal sign+encrypt
keys.
2003-11-29 22:59:10 +00:00
David Shaw 96afb2dcfb * NEWS: Note that the only thing we will generate with an Elgamal
sign+encrypt key is a revocation.
2003-11-29 22:45:48 +00:00
David Shaw 74e3c5ac7d * revoke.c (gen_desig_revoke): Specify in the comment when a designated
revocation is generated.

* getkey.c (merge_selfsigs_main, merge_selfsigs_subkey,
get_seckey_byname2): Disallow use of sign+encrypt Elgamal keys for
anything except revocations.

* sign.c (do_sign): Catchall for any Elgamal signatures except
revocations.
2003-11-29 22:44:05 +00:00
David Shaw dfd8b9d8d3 * elgamal.c (gen_k): New arg SMALL_K. (sign): Use it here with SMALL_K set
to false (do_encrypt): and here with SMALL_K set to true.  From Werner on
devel branch.
2003-11-29 20:07:39 +00:00
David Shaw 60cdcf61f5 * trustdb.c (validate_keys): Reset the trustdb before checking if we have
any ultimately trusted keys.  This ensures that if we lose all our
ultimately trusted keys, we don't leave behind the old validity
calculations.
2003-11-29 15:03:31 +00:00
Werner Koch 5dc9a30878 * gpgkeys_hkp.c (get_key): Fixed bad use of fprintf w/o format
string.
2003-11-27 12:18:20 +00:00
David Shaw 78b2e8a17d * Makefile.am: Include TRANSLATE in distributed files. 2003-11-21 01:16:28 +00:00
David Shaw e81f523ca2 * util.h: Add prototype for match_multistr(). 2003-11-21 01:02:46 +00:00
David Shaw f909811a73 * seskey.c (do_encode_md): Comment about earlier (pre-PGP 2.3) encodings.
* misc.c (compress_algo_to_string): Translate "Uncompressed". Requested by
Tommi Vainikainen.
2003-11-21 00:55:41 +00:00
David Shaw 38722f4caa * miscutil.c (match_multistr): New. Match against each segment in a
string with tokens separated by |. (answer_is_yes_no_default,
answer_is_yes_no_quit): Use it here to enable alternate translations.
2003-11-21 00:54:20 +00:00
David Shaw de199636e9 * TRANSLATE: New, note to translators about the yes|yes multiple match
syntax.

* gpg.sgml: Document --compress-level.  Some minor tweaks to other
entries.
2003-11-20 13:02:42 +00:00
David Shaw 31ea8b4b08 * config.links: sparc64 assembler doesn't work on FreeBSD or OpenBSD
either.
2003-11-17 04:06:11 +00:00
David Shaw 4e4a23de9e * compress-bz2.c (init_compress): Compression level 0 is not meaningful
for bzip2.
2003-11-15 23:49:44 +00:00
David Shaw 964cb93108 * g10.c: Add --compress-level (same as -z). 2003-11-15 13:40:20 +00:00
David Shaw 444ccb2fad * NEWS: Note BZIP2 and --symmetric --encrypt. 2003-11-13 03:54:54 +00:00
David Shaw 96f429ecee * mainproc.c (proc_symkey_enc): Don't show algorithm information when
--quiet is set.  Suggested by Duncan Harris.  Also don't fail with BUG()
when processing a --symmetric message with a cipher we don't have.

* pkclist.c (build_pk_list): Revert last change.  There are too many side
effects for stable.
2003-11-06 05:12:20 +00:00
David Shaw 71e1d13238 * pkclist.c (build_pk_list): Show all recipients rather than showing each
recipient as they are added.
2003-11-01 01:03:10 +00:00
David Shaw ef3f432bc5 * misc.c (compress_algo_to_string, check_compress_algo): Add bzip2.
* g10.c (main): Add read-only warning.

* compress.c (compress_filter): Make static to help force the use of
push_compress_filter.  Remove default algorithm setting since that is done
in push_compress_filter now.

* main.h: Use named algorithm.

* filter.h, compress.c (push_compress_filter, push_compress_filter2): New.
Figure out which is the appropriate compression filter to use, and push it
into place.

* compress.c (handle_compressed), encode.c (encode_simple, encode_crypt),
sign.c (sign_file, sign_symencrypt_file), import.c (read_block), export.c
(do_export): Use push_compress_filter instead of pushing the compression
filter ourselves.

* compress-bz2.c: New.  Bzlib versions of the compression filter routines.

* Makefile.am: Include compress-bz2.c if bz2lib is available.
2003-10-31 04:57:17 +00:00
David Shaw 5c8f990e85 Missed a line 2003-10-31 04:45:32 +00:00
David Shaw ba38a9c7b7 * configure.ac: Locate libbz2 for bzip2 compression support. 2003-10-31 04:29:38 +00:00
David Shaw 38282fca0c * cipher.h: Add COMPRESS_ALGO_BZIP2. 2003-10-31 00:51:33 +00:00
David Shaw 0a20226c6d * configure.ac (DLLIBS): Work properly on platforms where dlopen and
friends are in libc instead of libdl.
2003-10-27 12:46:18 +00:00
David Shaw ef0ade2d78 * mainproc.c (proc_symkey_enc, proc_encrypted): Keep a count of the number
of passphrases that can decrypt a symmetric or mixed symmetric/pk message
and include it in the list of keys shown to the user.
2003-10-26 23:17:47 +00:00
David Shaw ea4d713e88 * mainproc.c (symkey_decrypt_sesskey): There is no way to tell the
difference here between a bad passphrase and a cipher algorithm that we
don't have, so use a error message that makes that clear. Use the actual
list of ciphers when checking whether a cipher is invalid.  Return error
if the decrypted cipher algorithm is invalid. (proc_symkey_enc): In a
mixed passphrase/pk message, if a valid dek already exists from decrypting
via pk, do not try to process the passphrase. (proc_symkey_enc): Indicate
when we're decrypting a session key as opposed to decrypting data.  If a
passphrase is invalid, discard the dek so we'll keep trying.
2003-10-26 02:31:48 +00:00
Werner Koch 5c67438a67 * secmem.c (lock_pool) [_AIX]: Don't use plock. 2003-10-23 07:47:02 +00:00
Werner Koch 1865540567 * configure.ac (PRINTABLE_OS_NAME): Remove special case for The
Hurd; Robert Millan reported that the uname test is now
sufficient.
2003-10-21 12:54:28 +00:00
Werner Koch 5c5c4b51ba * longlong.h: Added PowerPC 64 bit code from GPM-4.1.2 but didn't
enabled it yet.
2003-10-21 12:54:13 +00:00
David Shaw cc1e739560 * g10.c (main): Fix --export-all do actually do something different than
--export.
2003-10-17 03:56:30 +00:00
Werner Koch 66716c7349 * POTFILES.in (cipher/primegen.c): Added.
* primegen.c (gen_prime): Bail out if we try to generate a prime
with less than 16 bits.
2003-10-10 09:19:52 +00:00
Werner Koch 240923a492 * primegen.c (gen_prime): Bail out if NBITS is zero. This is
Debian bug #213989 reported by Max <rusmir@tula.net>.
2003-10-06 12:09:30 +00:00