aboutsummaryrefslogtreecommitdiffstats
path: root/g10/g10.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* * configure.ac (ALL_LINGUAS): Removed.Werner Koch2004-08-091-0/+7
| | | | | | | | | | | | | | | * Makefile.am (LDADD): Replaced INTLLIBS by LIBINTL. * Makefile.am (gpgkeys_hkp_LDADD): Replaced INTLLIBS by LIBINTL. * ca.po: Updated. * autogen.sh: Run aclocal with -I m4. * Makefile.am: Replaced INTLLIBS by LIBINTL. * Makefile.am (http-test): Replaced INTLLIBS by LIBINTL.
* New alias --throw-keyid for --throw-keyids, so that itWerner Koch2004-07-301-0/+1
| | | | | continues to work in old configuration files. Noted by Jens Adam.
* * g10.c (main): Alias --charset as --display-charset to help avoid theDavid Shaw2004-06-011-3/+4
| | | | | | | | continuing confusion and make room for possible changes in devel. * parse-packet.c (parse_plaintext): Show the hex value for the literal packet mode since it may not be printable.
* * g10.c (main): --no-use-embedded-filename.David Shaw2004-04-011-0/+3
| | | | | | | | * plaintext.c (handle_plaintext): Accept 'u' as a plaintext mode that requires end of line conversion. This is being considered for a UTF8 text packet. If this doesn't take place, no major harm done. If it does take place, we'll get a jump on starting the changeover.
* *** empty log message ***Werner Koch2004-03-291-11/+55
|
* * options.h, g10.c (main), compress-bz2.c (init_uncompress): BackportDavid Shaw2004-03-251-1/+4
| | | | | | --bzip2-decompress-lowmem since we do handle receiving a bzip2 message on the stable branch.
* * encode.c (encode_simple): Show cipher with --verbose.David Shaw2004-02-241-14/+22
| | | | | | | | | | | | * 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.
* * options.h, g10.c (main), trustdb.c (mark_usable_uid_certs): AddDavid Shaw2004-02-231-4/+13
| | | | | | | | | --min-cert-check-level option to specify minimum cert check level. Defaults to 1 (so no sigs are ignored). 0x10 sigs cannot be ignored. * options.h, g10.c (main), plaintext.c (handle_plaintext): Add --max-output option to help people deal with decompression bombs.
* * g10.c (rm_group): Properly ungroup from a list of groups.David Shaw2004-02-101-0/+1
|
* * g10.c (main, rm_group): Add --ungroup command to remove a particularDavid Shaw2004-01-281-7/+52
| | | | | | | 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.
* * g10.c (list_config): Add "version" tag for --list-config.David Shaw2004-01-211-24/+31
|
* * g10.c (collapse_args): New function to turn argc/argv into a singleDavid Shaw2004-01-161-19/+106
| | | | | | | | string. (main): Use it here to pass list_config() more than one argument as a single string. (print_algo_numbers): Helper to print algorithm numbers. (list_config): Use it here for "pubkey", "cipher", "hash"/"digest", and "compress" config options.
* * g10.c (list_config, main): New function to dump config options toDavid Shaw2004-01-131-18/+67
| | | | | | | stdout. Currently requires --with-colons. * getkey.c, keylist.c, packet.h, pkclist.c: Fix copyright dates.
* * g10.c (strusage, main): Show development version warning in --versionDavid Shaw2003-12-021-5/+24
| | | | | | | | output. * trustdb.c (mark_usable_uid_certs): Disallow signatures to and from an Elgamal signing key in the trustdb.
* * g10.c: Add --compress-level (same as -z).David Shaw2003-11-151-1/+1
|
* * misc.c (compress_algo_to_string, check_compress_algo): Add bzip2.David Shaw2003-10-311-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | * 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.
* * g10.c (main): Fix --export-all do actually do something different thanDavid Shaw2003-10-171-4/+6
| | | | | --export.
* * g10.c (main): Add --no-groups to zero --group list.David Shaw2003-10-011-6/+22
| | | | | | | | | | | | | | | * encode.c (encode_simple): Allow for 32 bytes (256 bits) of symmetrically encrypted session key. Use --s2k-cipher-algo to choose cipher, rather than --cipher-algo. This code is never actually called in stable, but better to fix it here in case we branch in the future. * parse-packet.c (parse_subkeyenc): Call it a "symmetrically encrypted session key" since "session key decryption key" is just baffling. Neaten --list-packets output. * pubkey-enc.c (get_it): Always show cipher-not-in-prefs warning unless --quiet is set.
* * g10.c (main): Deprecate --no-comment in favor of --no-sk-comments.David Shaw2003-09-231-1/+6
|
* * g10.c (main): Deprecate -f in favor of --encrypt-files.David Shaw2003-09-121-3/+8
|
* * g10.c (main): Error out if --multifile is used with the commands thatDavid Shaw2003-09-091-0/+31
| | | | | | don't support it yet (--sign, --clearsign, --detach-sign, --symmetric, and --store).
* * g10.c (main): Add --multifile as an alias to turn --encrypt intoDavid Shaw2003-09-051-40/+43
| | | | | | | | | --encrypt-files (plus --verify-files, --decrypt-files). * encode.c (use_mdc), g10.c (main): Use RFC1991 and RFC2440 directly to check for MDC usability. Do not set the force_mdc or disable_mdc flags since there is no point any longer.
* Changed a lot of __MINGW32__ to _WIN32. This should help a bit inWerner Koch2003-07-301-2/+2
| | | | | building with native Windows compilers. On request by Brian Gladman.
* * g10.c (main): Disable use-agent if passphrase-fd is givenWerner Koch2003-07-301-0/+1
| | | | | later. Suggested by Kurt Garloff.
* * keyedit.c (sign_uids): Add additional prompt to the signature levelDavid Shaw2003-06-191-0/+3
| | | | | | | | | | question. (menu_expire): When changing expiration dates, don't replace selfsigs on revoked uids since this would effectively unrevoke them. There is also no point in replacing expired selfsigs. This is bug #181. * g10.c (main): Add --rfc2440 alias for --openpgp since in a few months, they won't be the same thing.
* Make sure that only ascii is passed to isfoo functions.Werner Koch2003-06-071-3/+3
|
* * options.skel: Use new hkp://subkeys.pgp.net as sample keyserver sinceDavid Shaw2003-06-041-5/+6
| | | | | | | | | | | | | | they at least handle subkeys correctly. * mainproc.c (print_notation_data), parse-packet.c (dump_sig_subpkt, parse_one_sig_subpkt, can_handle_critical): Add read-only support for preferred keyserver subpackets. They're basically policy URLs with a different name. * g10.c (main): Add "--set-notation" as alias to "--notation-data" this is to make things consistent with --set-policy-url meaning both sigs and certs.
* * armor.c, g10.c, kbnode.c, misc.c, pkclist.c, sign.c, build-packet.c,David Shaw2003-05-221-18/+18
| | | | | | | | | getkey.c, keydb.c, openfile.c, plaintext.c, status.c, gpgv.c, keygen.c, options.h, sig-check.c, tdbio.h, encode.c, hkp.c, mainproc.c, parse-packet.c, signal.c, textfilter.c: Edit all preprocessor instructions to remove whitespace before the '#'. This is not required by C89, but there are some compilers out there that don't like it.
* * g10.c (main): New --gnupg option to disable the various --openpgp,David Shaw2003-05-091-18/+11
| | | | | | | | | | | | | | | | --pgpX, etc. options. This is the same as --no-XXXX for those options. * packet.h, getkey.c (skip_disabled), keylist.c (print_capabilities): New "pk_is_disabled" macro to retrieve the cached disabled value if available, and fill it in via cache_disabled_value if not available. * trustdb.h, gpgv.c (is_disabled), trustdb.c (is_disabled): Rename to cache_disabled_value. Cache the result of the check so we don't need to hit the trustdb more than once. * trustdb.c (get_validity): Cache the disabled value since we have it handy and it might be useful later.
* * g10.c (main): Show errors for failure in export, send-keys, recv-keys,David Shaw2003-05-031-9/+79
| | | | | | | | | | | | | | | | and refresh-keys. * keyserver.c (keyserver_work): Range check the TCP port for HKP. * options.h, g10.c (main): Give algorithm warnings for algorithms chosen against the --pgpX and --openpgp rules. * keydb.h, pkclist.c (algo_available): Make TIGER192 invalid in --openpgp mode. * sign.c (sign_file), pkclist.c (algo_available): Allow passing a hint of 0.
* * sign.c (sign_file): Fix bug that causes spurious compression preferenceDavid Shaw2003-05-021-110/+94
| | | | | | | | | | | | | | | | warning. * sign.c (clearsign_file): Fix bug that prevents proper warning message from appearing when clearsigning in --pgp2 mode with a non-v3 RSA key. * main.h, misc.c (compliance_option_string, compliance_string, compliance_failure), sign.c (sign_file, clearsign_file), encode.c (encode_crypt, write_pubkey_enc_from_list): New functions to put the "this message may not be usable...." warning in one place. * options.h, g10.c (main): Part two of the simplification. Use a single enum to indicate what we are compliant to (1991, 2440, PGPx, etc.)
* * options.h, armor.c, cipher.c, g10.c, keyedit.c, pkclist.c, sign.c,David Shaw2003-05-021-25/+25
| | | | | | | encode.c, getkey.c, revoke.c: The current flags for different levels of PGP-ness are massively complex. This is step one in simplifying them. No functional change yet, just use a macro to check for compliance level.
* * mainproc.c (check_sig_and_print): Show sig class when verifying a sigDavid Shaw2003-04-271-0/+3
| | | | | | | | | | | | | with --verbose on, and add version, pk and hash algorithms and sig class to VALIDSIG. * g10.c (main): Add --no-textmode. * export.c (do_export_stream), keyedit.c (show_key_with_all_names, menu_addrevoker), mainproc.c (check_sig_and_print), photoid.c (show_photos), trustdb.c (get_validity, reset_trust_records, validate_keys): Make some strings translatable.
* * g10.c, options.h: New option --enable-progress-filter.Werner Koch2003-04-151-1/+5
| | | | | * progress.c (handle_progress): Make use of it.
* Reverted recent changes to --output. This is the stable branch and itWerner Koch2003-04-141-3/+0
| | | | | might break applications.
* Forgot to sync the CVS. Check in the code again.Timo Schulz2003-04-131-0/+3
|
* * hkp.c (dehtmlize): Fix bug #121 (memory corruption on some platforms).David Shaw2003-04-091-4/+5
| | | | | | | | | | | | | | | | Special thanks to Michael C. Toren for his help in lining up a sparc to test this fix on. * keyserver.c (keyserver_work): Call out error for keyserver helper with a different version than us. * main.h, g10.c (main), import.c (parse_import_options, fix_pks_corruption): It's really PKS corruption, not HKP corruption. Keep the old repair-hkp-subkey-bug command as an alias. * g10.c (main): Rename --no-version to --no-emit-version for consistency. Keep --no-version as an alias.
* * status.c (do_get_from_fd): Accept 'y' as well as 'Y' for --command-fdDavid Shaw2003-03-211-6/+11
| | | | | | | | | boolean input. * g10.c (main): Add deprecated option warning for --list-ownertrust. Add --compression-algo alias for --compress-algo. Change --version output strings to match "showpref" strings, and make translatable.
* * trustdb.c (validate_keys): Mask the ownertrust when building the list ofDavid Shaw2003-02-261-2/+2
| | | | | | | | | | | | fully valid keys so that disabled keys are still counted in the web of trust. * gpgv.c (main): Fix bug #113 - gpgv should accept the --ignore-time-conflict option. * g10.c (main): Use 3DES for the s2k cipher in --openpgp mode. Double the amount of secure memory to 32k (keys are getting bigger these days).
* * g10.c (main): --openpgp disables --pgpX.David Shaw2003-02-231-0/+4
| | | | | * keyedit.c (show_prefs): Make strings translatable.
* * g10.c (print_mds): Check that SHA384 and 512 are available before usingDavid Shaw2003-02-111-6/+12
| | | | | | | | | them as they are no longer always available. * exec.c (set_exec_path): Add debugging line. * Makefile.am: Use the more correct @PACKAGE@ rather than "gnupg".
* * g10.c (print_hex, print_mds): Print long hash strings a lot neater.David Shaw2003-02-051-57/+88
| | | | | | | This assumes at least an 80-character display, as there are a few other similar assumptions here and there. Users who need unformatted hashes can still use with-colons.
* * armor.c (parse_hash_header, armor_filter): Accept the new SHAs in theDavid Shaw2003-02-041-13/+25
| | | | | | | | armor Hash: header. * g10.c (print_hex): Print long hash strings a little neater. (print_mds): Add the new SHAs to the hash list.
* * g10.c (add_group): Trim whitespace after a group name so it does notDavid Shaw2003-01-161-0/+2
| | | | | matter where the user puts the = sign.
* * g10.c (add_group): Fixed group parsing to allow more than oneWerner Koch2003-01-141-2/+5
| | | | | delimiter in a row and also allow tab as delimiter.
* * mainproc.c (proc_tree): Handle multiple detached sigs concatenatedDavid Shaw2002-12-111-1/+2
| | | | | | | together by warning the user and processing only the first. * g10.c (main): Comment out --list-trust-path until it can be implemented.
* * g10.c: New options --[no-]mangle-dos-filenames.Werner Koch2002-12-051-15/+14
| | | | | | | | | * options.h (opt): Added mangle-dos-filenames. * openfile.c (open_outfile) [USE_ONLY_8DOT3]: Truncate the filename only when this option is set; this is the default. NOT YET TESTED!
* * options.h, g10.c (main), encode.c (write_pubkey_enc_from_list),David Shaw2002-12-031-10/+24
| | | | | | | | | pkclist.c (algo_available), revoke.c (gen_revoke): Add --pgp8 mode. This is basically identical to --pgp7 in all ways except that signing subkeys, v4 data sigs (including expiration), and SK comments are allowed. * getkey.c (finish_lookup): Comment.
* * main.h, keylist.c (reorder_keyblock), keyedit.c (keyedit_menu): ReorderDavid Shaw2002-12-031-1/+1
| | | | | | | | | | | user ID display in the --edit-key menu to match that of the --list-keys display. * tdbio.c (tdbio_read_record, tdbio_write_record): Comments to reserve a byte for trust model in the devel version. * g10.c (add_notation_data): Fix initialization.
* * g10.c (add_notation_data): Disallow notation names that do not contain aDavid Shaw2002-11-241-4/+27
| | | | | | | | | | | | | | '@', unless --expert is set. This is to help prevent people from polluting the (as yet unused) IETF namespace. * main.h: Comments about default algorithms. * photoid.c (image_type_to_string): Comments about 3-letter file extensions. * g10.c (main): Add --strict and --no-strict as no-ops to smooth transition when the devel GnuPG becomes the stable one.