aboutsummaryrefslogtreecommitdiffstats
path: root/g10/ChangeLog (unfollow)
Commit message (Collapse)AuthorFilesLines
2004-02-26* delkey.c (do_delete_key): Allow deleting a public key with a secretDavid Shaw1-0/+13
present if --expert is set. * plaintext.c (handle_plaintext): Make bytecount static so it works with multiple literal packets inside a message. * encode.c, helptext.c (keygen.algo, keygen.algo.elg_se), keygen.c (ask_algo), sig-check.c (do_check_messages), skclist.c (build_sk_list): Rename "ElGamal" to "Elgamal" as that is the proper spelling nowadays. Suggested by Jon Callas.
2004-02-24* plaintext.c: Copyright.David Shaw1-0/+15
* encode.c (encode_simple): Show cipher with --verbose. * options.h, g10.c (main), keyedit.c (sign_keys): Add --ask-cert-level option to enable cert level prompts during sigs. Defaults to on. Simplify --default-cert-check-level to --default-cert-level. If ask-cert-level is off, or batch is on, use the default-cert-level as the cert level. * options.h, g10.c (main), trustdb.c (mark_usable_uid_certs): Simplify --min-cert-check-level to --min-cert-level.
2004-02-23* options.h, g10.c (main), trustdb.c (mark_usable_uid_certs): AddDavid Shaw1-0/+7
--min-cert-check-level option to specify minimum cert check level. Defaults to 2 (so 0x11 sigs are ignored). 0x10 sigs cannot be ignored.
2004-02-22* plaintext.c (handle_plaintext): Properly handle a --max-output of zeroDavid Shaw1-0/+3
(do not limit output at all).
2004-02-22* keyserver.c (keyserver_spawn): Use the full 64-bit keyid in the INFODavid Shaw1-0/+5
header lines, and include "sig:" records for the benefit of people who store their keys in LDAP servers. It makes it easy to do queries for things like "all keys signed by Isabella".
2004-02-21* main.h, misc.c (hextobyte): Removed. It's in libutil.a now.David Shaw1-0/+4
2004-02-20* keyserver.c (keyserver_export): Disallow user strings that aren't keyDavid Shaw1-0/+6
IDs. (keyserver_import): Clarify error message. (keyserver_spawn): Properly handle 8 bit characters in user IDs in the info lines during SEND.
2004-02-20* mkdtemp.c: Removed.David Shaw1-0/+10
* Makefile.am: We get mkdtemp.c from libutil.a now, so don't link with @LIBOBJS@. * keyserver.c (keyserver_spawn): Pass the scheme to the keyserver helper.
2004-02-18* options.h, g10.c (main), plaintext.c (handle_plaintext): AddDavid Shaw1-0/+5
--max-output option to help people deal with decompression bombs.
2004-02-15* build-packet.c (do_user_id): Do not force a header for attribute packetsDavid Shaw1-0/+6
as they require a new CTB, and we don't support forced headers for new CTBs yet.
2004-02-15* build-packet.c (write_header2): If a suggested header length is providedDavid Shaw1-0/+14
along with a zero length, interpret this as an actual zero length packet and not as an indeterminate length packet. (do_comment, do_user_id): Use it here as these packets might be naturally zero length. * parse-packet.c (parse): Show packet type when failing due to an indeterminate length packet. * misc.c (parse_options): Only provide args for the true (i.e. not "no-xxx") form of options.
2004-02-14* keyserver.c (argsep): Move to misc.c.David Shaw1-0/+6
* main.h, misc.c (parse_options), export.c (parse_export_options), import.c (parse_import_options), g10.c (main): Use it here to allow for options with optional arguments. Change all callers.
2004-02-14* import.c (check_prefs): Some language fixes. (sec_to_pub_keyblock,David Shaw1-0/+6
import_secret_one): Without knowing the number of MPIs there are, we cannot try and sk-to-pk-ize a key.
2004-02-12* import.c (check_prefs): New function to check preferences on a publicDavid Shaw1-0/+8
key to ensure that it does not advertise any that we cannot fulfill. Use the keyedit command list function to optionally rewrite the prefs. (import_one, import_secret_one): Use it here when importing a public key that we have the secret half of, or when importing a secret key that we have the public half of.
2004-02-12* main.h, keyedit.c (keyedit_menu): Remove sign_mode and enhance the moreDavid Shaw1-0/+6
general command list functionality to replace it. * g10.c (main): Use the general command functionality to implement --sign-key, --lsign-key, --nrsign-key, and --nrlsign-key.
2004-02-12* import.c (import_one): Do the revocation check even in the case when aDavid Shaw1-0/+7
key, a revocation key set in a direct key signature, and a revocation from that revocation key, all arrive piecemeal. Needless to say, this is pretty obscure.
2004-02-11* options.h, g10.c (main), keylist.c (list_keyblock_print): AddDavid Shaw1-0/+6
"show-unusable-subkeys" list-option to show revoked and/or expired subkeys.
2004-02-11* keyedit.c (keyedit_menu): Prompt for subkey removal for both secret andDavid Shaw1-0/+13
public subkeys. * keylist.c (list_keyblock_print), keyedit.c (show_key_with_all_names): Show the revocation date of a key/subkey, and general formatting work. * packet.h, getkey.c (merge_selfsigs_main, merge_selfsigs_subkey, merge_selfsigs): Keep track of the revocation date of a key. * keydb.h, keyid.c (revokestr_from_pk): New function to print the revocation date of a key.
2004-02-10* keygen.c (keygen_set_std_prefs): Build the default preferences list atDavid Shaw1-0/+24
runtime as it properly handles algorithms disabled at build or run time. * getkey.c (merge_selfsigs_main): Properly handle expired user IDs when the expired self-sig is not the only self-sig. * misc.c (compress_algo_to_string): Return NULL on failure like all of the other xxxx_algo_to_string() functions. * mainproc.c (list_node): Minor spacing tweak to match --list-keys output. * keylist.c (list_keyblock_print), mainproc.c (list_node): Mark revoked subkeys as revoked. Requested by Matthew Wilcox. Revoked overrides expiration when both apply. * keyedit.c (show_prefs): Use compress algo constants. (show_basic_key_info): Make revoked and expired tags translatable. * g10.c (rm_group): Properly ungroup from a list of groups.
2004-01-30* g10.c (main, rm_group): Add --ungroup command to remove a particularDavid Shaw1-0/+14
group. (add_group): When adding a group with the same name as an already existing group, merge the two groups. (list_config): Show an error message when listing a config item that doesn't exist. (main): Replace -z0 trick for no compression. * packet.h, keyedit.c (show_key_with_all_names_colon), keylist.c (list_keyblock_colon), mainproc.c (list_node, proc_tree): Minor cleanup to remove local_id, which is no longer used.
2004-01-28* getkey.c: Set MAX_PK_CACHE_ENTRIES and MAX_UID_CACHE_ENTRIES toDavid Shaw1-0/+15
PK_UID_CACHE_SIZE (set in ./configure). * getkey.c (get_pubkey): When reading key data into the cache, properly handle keys that are partially (pk, no UIDs) cached already. This is Debian bug #176425 and #229549. * compress.c (init_compress, push_compress_filter2): Do the right thing (i.e. nothing) with compress algo 0. * main.h, decrypt.c (decrypt_messages): Accept filenames to decrypt on stdin. This is bug #253.
2004-01-24* mainproc.c (list_node): Show sigs with --verbose.David Shaw1-0/+10
* options.h, g10.c (set_screen_dimensions): New function to look at COLUMNS and LINES. * keyserver.c (parse_keyrec, keyserver_search_prompt), keyedit.c (print_and_check_one_sig): Use new screen dimension variables.
2004-01-22* g10.c (list_config): New function to dump config options to stdout.David Shaw1-2/+14
Currently requires --with-colons. (collapse_args): New function to turn argc/argv into a single string. (main): Use it here to pass list_config() more than one argument as a single string. (print_algo_numbers): Helper to print algorithm number for --list-config "pubkey", "cipher", "hash"/"digest", and "compress" config options.
2004-01-22* packet.h, getkey.c (merge_selfsigs, merge_selfsigs_main), pkclist.cDavid Shaw1-0/+5
(check_signatures_trust): Indicate who has revoked a key (the owner or a designated revoker). If a key was revoked by both, prefer the owner.
2004-01-21* keyedit.c (print_and_check_one_sig, keyedit_menu): Use the COLUMNSDavid Shaw1-0/+7
environment variable (if any) to hint how wide the terminal is. Disabled on _WIN32. Suggested by Janusz A. Urbanowicz.
2004-01-21* keylist.c (set_attrib_fd): Open attribute fd in binary mode. This isn'tDavid Shaw1-0/+4
meaningful on POSIX systems, but the Mingw builds aren't exactly POSIX.
2004-01-21* trustdb.c (reset_trust_records): New, faster, implementation thatDavid Shaw1-0/+4
doesn't involve a keyring scan. (clear_validity): Removed.
2004-01-20* g10.c (main), keydb.h, keydb.c (keydb_rebuild_caches), keyring.h,David Shaw1-0/+11
keyring.c (keyring_rebuild_cache): Add "noisy" flag so cache rebuilds can remain noisy when called for itself, and quiet when called as part of the trustdb rebuild. * trustdb.c (validate_keys): Rebuild the sig caches before building the trustdb. Note that this is going to require some architectual re-thinking, as it is agonizingly slow.
2004-01-19* sig-check.c (check_key_signature2): Comments.David Shaw1-0/+8
* keyring.c (keyring_rebuild_cache): Clear sig cache for any signatures that we can no longer process (say, if the user removed support for a necessary pubkey or digest algorithm).
2004-01-17* misc.c (print_cipher_algo_note): May as well call Rijndael AESDavid Shaw1-2/+11
at this point. * keygen.c (do_create), misc.c (openpgp_pk_algo_usage): Remove the last bits of Elgamal type 20 support.
2004-01-03Only use ZLib module on RISC OS when configuredStefan Bellon1-0/+5
2003-12-31* options.h, g10.c (main), import.c (parse_import_options, import_one,David Shaw1-0/+7
import_secret_one), keyserver.c (keyserver_refresh): Change --merge-only to --import-option merge-only. Deprecate --merge-only.
2003-12-30* misc.c (pull_in_libs): Dead code. Removed.David Shaw1-0/+24
* sig-check.c (check_revocation_keys): Comments. * getkey.c (merge_selfsigs_main): Don't bother to check designated revoker sigs if the key is already revoked. * packet.h, getkey.c (merge_selfsigs_main): New "maybe_revoked" flag on PKs. It is set when there is a revocation signature from a valid revocation key, but the revocation key is not present to verify the signature. * pkclist.c (check_signatures_trust): Use it here to give a warning when showing key trust. * compress-bz2.c: Include stdio.h. Solaris 9 has a very old bzip2 library and we can at least guarantee that it won't fail because of the lack of stdio.h. * tdbio.c: Fixed format string bugs related to the use of DB_NAME. Reported by Florian Weimer.
2003-12-28* options.h, g10.c (main), keyserver.c (keyserver_opts,David Shaw1-0/+6
parse_keyserver_uri): honor-http-proxy is no longer an option since we can do the same thing with http-proxy with no arguments. Also remove broken-http-proxy since it can be better handled in the HTTP helper.
2003-12-28* keyserver.c (argsep): New variation on strsep that knows about optionalDavid Shaw1-0/+6
arguments. (parse_keyserver_options): Use it here for optional arguments.
2003-12-28cleaned up RISC OS code and removed lots of unnecessary stuffStefan Bellon1-0/+8
2003-12-28* keyserver.c (strip_leading_space, get_arg): New.David Shaw1-0/+5
(parse_keyserver_options): Use them here to allow arguments to keyserver-options. Since none of our options need arguments yet, just pass them through whole to the keyserver helper.
2003-12-28* main.h, misc.c (parse_options): Add a "noisy" flag to enable and disableDavid Shaw1-0/+9
the messages about which option didn't match or matched ambiguously. Change all callers (g10.c, keyserver.c). * main.h, import.c (import_options), export.c (export_options): Pass the noisy flag through.
2003-12-17* build-packet.c (write_fake_data, do_secret_key), seckey-cert.cDavid Shaw1-0/+6
(do_check): Use an unsigned length for mpi_get_opaque. * options.h: It's impolite to assign -1 to an unsigned opt.force_ownertrust.
2003-12-17* sig-check.c (cmp_help, do_check), sign.c (do_sign): Remove old unusedDavid Shaw1-0/+7
code. * keyid.c (keyid_from_sk): Make sure lowbits is initialized.
2003-12-13* sig-check.c (do_check): Move the signing algo and hash checks fromDavid Shaw1-0/+12
here... (signature_check2): ... to here. (check_key_signature2): ... and here. This is a minor optimization to avoid fetching a key (which can be expensive, especially if it is not self-signed, and there are many key signatures on it which need to be checked for ultimate trust) if the signature would have failed anyway because of algorithm or hash problems.
2003-12-11* packet.h, build-packet.c (hash_public_key): Remove function ...David Shaw1-0/+23
* keydb.h, keyid.c (hash_public_key, do_fingerprint_md): ... and make a new one here that shares code with the fingerprint calculations. This removes some duplicated functionality, and is also around 14% faster. (Every bit helps). * import.c (import_one): No longer need the Elgamal import warning. * 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* keyid.c (do_fingerprint_md): Remove the rules to hash the old v3 ElgamalDavid Shaw1-0/+3
keys. They are no longer needed.
2003-12-10* keyid.c (keyid_from_sk, keyid_from_pk, fingerprint_from_pk,David Shaw1-0/+4
fingerprint_from_sk): Enforce the v3-is-only-RSA rule. Anything that isn't RSA gets a zero keyid and fingerprint.
2003-12-10* keyid.c (do_fingerprint_md): Properly handle hashing of keys that weDavid Shaw1-0/+9
don't know the structure of by using the opaque MPI. (do_fingerprint_md_sk): We cannot calculate the fingerprint from a secret key unless we know the structure (since we can't leave off the secret key parts), so fail early..... (keyid_from_sk, fingerprint_from_sk): .... and return all zeroes.
2003-12-04* g10.c (strusage, main): Show development version warning in --versionDavid Shaw1-0/+5
output. (main): Set --bzip2-compress-level to the default value at startup. Remove --emulate-checksum-bug noop.
2003-12-04* options.h, g10.c (main), main.h, seskey.c (do_encode_md,David Shaw1-0/+7
encode_md_value), sig-check.c (do_check), sign.c (do_sign): Remove --emulate-md-encode-bug as it only applied to Elgamal signatures, which are going away.
2003-11-30* mainproc.c (proc_symkey_enc, proc_encrypted): Add ability to useDavid Shaw1-0/+9
--override-session-key on --symmetric messages (new-style or old-style). (proc_pubkey_enc): Move code to show session key from here to proc_encrypted() so it can work with any type of message. Suggested by Michael Young.
2003-11-30* trustdb.c (validate_keys): Reset the trustdb before checking if we haveDavid Shaw1-0/+14
any ultimately trusted keys. This ensures that if we lose all our ultimately trusted keys, we don't leave behind the old validity calculations. Noted by Peter Palfrader. * 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): Remove Elgamal check since we are removing type 20 keys altogether.
2003-11-27* pkclist.c (build_pk_list): Do not allow an empty PK list in interactiveDavid Shaw1-2/+5
mode. * getkey.c (get_seckey_byname2): Disallow use of sign+encrypt Elgamal keys.