aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* * options.h, g10.c (main), keylist.c (list_keyblock_print): AddDavid Shaw2004-02-114-4/+23
| | | | | | "show-unusable-subkeys" list-option to show revoked and/or expired subkeys.
* * keyedit.c (keyedit_menu): Prompt for subkey removal for both secret andDavid Shaw2004-02-117-21/+73
| | | | | | | | | | | | | | 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.
* * keygen.c (keygen_set_std_prefs): Build the default preferences list atDavid Shaw2004-02-108-65/+111
| | | | | | | | | | | | | | | | | | | | | | 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.
* * clearsig.test, sigs.test: Properly detect RSA being missing, and use theDavid Shaw2004-02-093-4/+9
| | | | | proper key for doing an RSA test.
* * DETAILS: Details for --list-config.David Shaw2004-01-303-7/+81
| | | | | * gpg.sgml: Document --ungroup and --list-config.
* * g10.c (main, rm_group): Add --ungroup command to remove a particularDavid Shaw2004-01-306-34/+75
| | | | | | | | | | | | 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.
* * getkey.c: Set MAX_PK_CACHE_ENTRIES and MAX_UID_CACHE_ENTRIES toDavid Shaw2004-01-285-26/+79
| | | | | | | | | | | | | | | 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.
* * NEWS: Note --enable-key-cache, the OpenBSD/i386 and HPPA fixes, andDavid Shaw2004-01-284-2/+48
| | | | | | | | Elgamal removal. * README, configure.ac: Add --enable-key-cache=SIZE configure option. This sets the key/uid cache size. Default is 4096.
* * mainproc.c (list_node): Show sigs with --verbose.David Shaw2004-01-246-16/+45
| | | | | | | | | * 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.
* * g10.c (list_config): New function to dump config options to stdout.David Shaw2004-01-222-15/+169
| | | | | | | | | 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.
* * packet.h, getkey.c (merge_selfsigs, merge_selfsigs_main), pkclist.cDavid Shaw2004-01-224-11/+21
| | | | | | (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.
* * keyedit.c (print_and_check_one_sig, keyedit_menu): Use the COLUMNSDavid Shaw2004-01-212-1/+18
| | | | | | environment variable (if any) to hint how wide the terminal is. Disabled on _WIN32. Suggested by Janusz A. Urbanowicz.
* * keylist.c (set_attrib_fd): Open attribute fd in binary mode. This isn'tDavid Shaw2004-01-212-3/+8
| | | | | meaningful on POSIX systems, but the Mingw builds aren't exactly POSIX.
* hppa1.1/udiv-qrnnd.S: Alignment fix from Lamont Jones for Debian.David Shaw2004-01-212-0/+6
|
* * trustdb.c (reset_trust_records): New, faster, implementation thatDavid Shaw2004-01-212-86/+31
| | | | | doesn't involve a keyring scan. (clear_validity): Removed.
* * g10.c (main), keydb.h, keydb.c (keydb_rebuild_caches), keyring.h,David Shaw2004-01-207-12/+30
| | | | | | | | | | | 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.
* * sig-check.c (check_key_signature2): Comments.David Shaw2004-01-193-10/+29
| | | | | | | * 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).
* * misc.c (print_cipher_algo_note): May as well call Rijndael AESDavid Shaw2004-01-173-12/+18
| | | | | | | | at this point. * keygen.c (do_create), misc.c (openpgp_pk_algo_usage): Remove the last bits of Elgamal type 20 support.
* * cipher.h: Remove the old CIPHER_ALGO_RINJDAEL values. is_ELGAMAL() nowDavid Shaw2004-01-172-9/+11
| | | | | only matches type 16 and not type 20.
* * cipher.c (setup_cipher_table): May as well call Rijndael AES at thisDavid Shaw2004-01-172-4/+7
| | | | | point.
* * pubkey.c (setup_pubkey_table), elgamal.c (sign, verify, test_keys,David Shaw2004-01-173-182/+13
| | | | | | elg_sign, elg_verify, elg_get_info): Remove the last bits of Elgamal type 20 support.
* * argparse.c (default_strusage): Update copyright date. (initialize):David Shaw2004-01-163-24/+48
| | | | | | | | | Avoid a number of -Wformat-nonliteral warnings. These aren't actual problems, but the warnings bothered me. * miscutil.c (print_string2): New variation on print_string that allows two delimiters. (print_string): Call print_string2 to do work.
* * util.h: Add prototype for print_string2().David Shaw2004-01-162-1/+7
|
* (send_key): Add a content type.Werner Koch2004-01-132-0/+8
|
* * configure.ac: Use -Wformat-nonliteral in maintainer-mode.Werner Koch2004-01-132-0/+5
|
* * gpgkeys_hkp.c (search_key): Catch a mangled input file (useful ifDavid Shaw2004-01-123-5/+22
| | | | | | | | something other than GnuPG is calling the program). (main): Avoid possible pre-string write. Noted by Christian Biere. * gpgkeys_ldap.c (main): Avoid possible pre-string write.
* * configure.ac: Include stdio.h when checking for bzlib.h. Solaris 9 has aDavid Shaw2004-01-123-1/+15
| | | | | | | | very old bzip2 library and we can at least guarantee that it won't fail because of the lack of stdio.h. * THANKS: Added Phong Nguyen, who found the Elgamal signing key problem.
* * convert-from-106, lspgpot: Check for gpg binary before proceeding.David Shaw2004-01-124-7/+24
| | | | | | | | Don't hardcode the path to gpg. * gpgsplit.c (handle_bzip2): Remove two cut and paste typecast errors. Noted by Stefan Bellon.
* * config.links: OpenBSD 3.4 is now ELF, so use the proper assembler codeDavid Shaw2004-01-125-31/+102
| | | | | | | | | | | | | | | for that. Use the portable C MPI code for OpenBSD before 3.4, and remove the special i386-openbsd assembly directory. * Makefile.am: Add the portable C links to DISTCLEANFILES. Noted by Nelson H. F. Beebe. * mpi-mpow.c (build_index): s/index/idx/ to avoid gcc warning. From Werner on stable branch. * longlong.h: Added PowerPC 64 bit code from GPM-4.1.2 but didn't enable it yet. From Werner on stable branch.
* Use the portable C MPI code for OpenBSD before 3.4, and remove the specialDavid Shaw2004-01-1210-774/+0
| | | | | i386-openbsd assembly directory.
* * gpg.sgml: Fix a few minor typos. Clarify what --textmode is useful for.David Shaw2004-01-082-60/+90
| | | | | | | | | | | | | * gpg.sgml: List proper documentation URL. Note that addrevoker takes an optional "sensitive" argument. Remind that $GNUPGHOME can be used instead of --homedir. Clarify --no-default-keyring, and note why it may not take effect if there are no other keyrings present. Remove --pgp2 from the list of --pgpXes that are just for bad preference lists. Explain more why locking memory pages is good. * gpg.sgml: Add an example of what an exclamation mark is, as people seem to miss it often.
* Only use ZLib module on RISC OS when configuredStefan Bellon2004-01-032-2/+7
|
* * clearsig.test, conventional-mdc.test, conventional.test, defs.inc,David Shaw2003-12-3115-873/+1041
| | | | | | | | | | encrypt-dsa.test, encrypt.test, genkey1024.test, plain-1.asc, plain-1-pgp.asc, plain-2.asc, plain-3.asc, pubring.asc, secring.asc, sigs.test: Rework tests to work properly with a gpg binary that doesn't have all ciphers and all pk algos. Basically, we test for the ciphers we have, only test signing with non-160-bit hashes with RSA (we test all hashes as hashes). Test all key lengths of AES.
* * options.h, g10.c (main), import.c (parse_import_options, import_one,David Shaw2003-12-315-16/+31
| | | | | | import_secret_one), keyserver.c (keyserver_refresh): Change --merge-only to --import-option merge-only. Deprecate --merge-only.
* * g10m.c: Dead code. Remove.David Shaw2003-12-303-99/+7
| | | | | * Makefile.am: Don't compile g10m.c.
* * idea-stub.c (load_module, idea_get_info): Return the proper type forDavid Shaw2003-12-302-19/+11
| | | | | idea_get_info from inside load_module. From Stefan Bellon.
* * rijndael.c, rndunix.c, twofish.c: Remove dead IS_MODULE code.David Shaw2003-12-306-190/+10
| | | | | | | * g10c.c: Dead code. Remove. * Makefile.am: Don't compile g10c.c.
* * g10u.c: Dead code. Remove.David Shaw2003-12-304-41/+11
| | | | | | | | * Makefile.am: Don't compile g10u.c. * iobuf.c (block_filter): Properly handle a partial body stream that ends with a 5-byte length.
* * misc.c (pull_in_libs): Dead code. Removed.David Shaw2003-12-308-45/+67
| | | | | | | | | | | | | | | | | | | | | | | * 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.
* * gpgkeys_hkp.c (send_key, get_key, main): Work with new HTTP code thatDavid Shaw2003-12-282-13/+37
| | | | | | | passes the proxy in from the outside. If the command file sends a proxy, use it. If it sends "http-proxy" with no arguments, use $http_proxy from the environment.
* * options.h, g10.c (main), keyserver.c (keyserver_opts,David Shaw2003-12-284-8/+9
| | | | | | | 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.
* * http.h: Pass the http proxy from outside rather than pulling it from theDavid Shaw2003-12-282-9/+16
| | | | | evironment.
* * http.c (send_request, http_open_document, http_open): Pass the httpDavid Shaw2003-12-282-29/+22
| | | | | proxy from outside rather than pulling it from the evironment.
* * keyserver.c (argsep): New variation on strsep that knows about optionalDavid Shaw2003-12-282-23/+60
| | | | | arguments. (parse_keyserver_options): Use it here for optional arguments.
* cleaned up RISC OS code and removed lots of unnecessary stuffStefan Bellon2003-12-2823-156/+197
|
* * keyserver.c (strip_leading_space, get_arg): New.David Shaw2003-12-282-1/+50
| | | | | | | (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.
* * main.h, misc.c (parse_options): Add a "noisy" flag to enable and disableDavid Shaw2003-12-287-20/+35
| | | | | | | | | 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.
* * build-packet.c (write_fake_data, do_secret_key), seckey-cert.cDavid Shaw2003-12-174-11/+17
| | | | | | | | (do_check): Use an unsigned length for mpi_get_opaque. * options.h: It's impolite to assign -1 to an unsigned opt.force_ownertrust.
* * mpiutil.c (mpi_set_opaque, mpi_get_opaque): Make the length of an opaqueDavid Shaw2003-12-172-2/+7
| | | | | MPI unsigned.
* * mpi.h (gcry_mpi, mpi_get_opaque, mpi_set_opaque): Make nbits and theDavid Shaw2003-12-172-3/+6
| | | | | length of an opaque MPI unsigned.