aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* * options.h, g10.c (main), keylist.c (list_keyblock_print): AddDavid Shaw2003-06-035-34/+122
| | | | | | | | | | "show-validity" and "show-long-keyid" list-options. * gpgv.c (get_validity, trust_value_to_string): Stubs. * g10.c (main): Use SAFE_VERSION instead of VERSION in the version-specific gpg.conf file so it can be overridden on RISCOS.
* * configure.ac: Define SAFE_VERSION so that RISCOS can override it andDavid Shaw2003-06-032-0/+8
| | | | | remove invalid chars.
* * g10.c (main), keylist.c (show_policy_url, show_notation), mainproc.cDavid Shaw2003-06-015-58/+103
| | | | | | | | | | | | | (check_sig_and_print): Emulate the old policy and notation behavior (display by default). Send to status-fd whether it is displayed on the screen or not. * g10.c (main): Since we now have some options in devel that won't work in a stable branch gpg.conf file, try for a version-specific gpg.conf-VERSION file before falling back to gpg.conf. * main.h, options.h: Move various option flags to options.h.
* * mainproc.c (check_sig_and_print), main.h, keylist.c (show_policy,David Shaw2003-05-319-93/+157
| | | | | | | | | | | | | | | | | show_notation): Collapse the old print_notation_data into show_policy() and show_notation() so there is only one function to print notations and policy URLs. * options.h, main.h, g10.c (main), keyedit.c (print_and_check_one_sig), keylist.c (list_one, list_keyblock_print), pkclist.c (do_edit_ownertrust), sign.c (mk_notation_and_policy): New "list-options" and "verify-options" commands. These replace the existing --show-photos/--no-show-photos, --show-notation/--no-show-notation, --show-policy-url/--no-show-policy-url, and --show-keyring options. The new method is more flexible since a user can specify (for example) showing photos during sig verification, but not in key listings. The old options are emulated.
* * main.h, misc.c (parse_options): New general option line parser. Fix theDavid Shaw2003-05-315-72/+60
| | | | | | | | | bug in the old version that did not handle report syntax errors after a valid entry. * import.c (parse_import_options), export.c (parse_export_options): Call it here instead of duplicating the code.
* * keylist.c (list_one): Don't show the keyring filename when inDavid Shaw2003-05-318-27/+116
| | | | | | | | | | | | | | | | | | | | | | --with-colons mode. Actually translate "Keyring" string. * mainproc.c (proc_tree): We can't currently handle multiple signatures of different classes or digests (we'd pretty much have to run a different hash context for each), but if they are all the same, make an exception. This is Debian bug #194292. * sig-check.c (check_key_signature2): Make string translatable. * packet.h, getkey.c (fixup_uidnode): Mark real primary uids differently than assumed primaries. * keyedit.c (no_primary_warning): Use the differently marked primaries here in a new function to warn when an --edit-key command might rearrange the self-sig dates enough to change which uid is primary. (menu_expire, menu_set_preferences): Use no_primary_warning() here. * Makefile.am: Use @DLLIBS@ for -ldl.
* * gpgkeys_hkp.c, gpgkeys_ldap.c: #include <getopt.h> if it is available.David Shaw2003-05-314-5/+24
| | | | | | | | | | Also include extern references for optarg and optind since there is no guarantee that any header file will include them. Standards? We don't need no stinkin' standards * Makefile.am: Use @GETOPT@ to pull in libiberty on those platforms that need it.
* * Makefile.am: Some cleanup, and use DLLIBS for -ldl.David Shaw2003-05-312-20/+12
|
* * srv.h, srv.c: Include windows.h with MINGW32.David Shaw2003-05-313-1/+13
|
* * configure.ac: Put wsock32 in NETLIBS. Put zlib in ZLIBS. Put dl inDavid Shaw2003-05-313-25/+26
| | | | | | | DLLIBS. Check for getopt.h if available. Look for getopt() in libiberty if libc doesn't have it. Enable GPGKEYS_HKP after AC_PROG_CC so that any needed extension (i.e. ".exe") is defined.
* Bumbed version number after releaseWerner Koch2003-05-272-1/+5
|
* About to release 1.3.2V1-3-2Werner Koch2003-05-279-1051/+1771
|
* * NEWS: Document --gnupg and the deprecation of --no-openpgp andDavid Shaw2003-05-262-0/+10
| | | | | --no-pgpX.
* * defs.inc (pgmname): Make sure there is a valid options file. (From wk onDavid Shaw2003-05-263-4/+20
| | | | | | | stable branch) * mds.test: Note that missing algorithms are not errors.
* * mk-w32-dist: Don't iconv {hu,sk,zh_TW}.po. (From wk on stable branch)David Shaw2003-05-262-3/+8
|
* * gpg.sgml, gpgv.sgml: Small SGML fixes. (From wk on stable branch)David Shaw2003-05-264-6/+34
| | | | | | | * gnupg-w32.reg: Use HLM for the program and make sure the entries are created. Suggested by [email protected]. (From wk on stable branch)CVS: ----------------------------------------------------------------------
* * getkey.c (premerge_public_with_secret): Made "no secret subkey for"David Shaw2003-05-268-19/+54
| | | | | | | | | | | | | | | | | | | | | | | | | warning a verbose item and translatable. (From wk on stable branch) * sig-check.c (check_key_signature2): Made "no subkey for subkey binding packet" a verbose item instead of a !quiet one. There are too many garbled keys out in the wild. (From wk on stable branch) * filter.h: Remove const from WHAT. (From wk on stable branch) * progress.c (handle_progress): Store a copy of NAME. (progress_filter): Release WHAT, make sure not to print a NULL WHAT. (From wk on stable branch) * openfile.c (open_sigfile): Adjust free for new progress semantics. (From wk on stable branch) * plaintext.c (ask_for_detached_datafile): Don't dealloc pfx->WHAT. (From wk on stable branch) * seckey-cert.c (do_check): Issue the RSA_OR_IDEA status when the cipher algo is IDEA to make it easier to track down the problem. (From twoaday on stable branch)
* * Makefile.am: Make use of AM_CFLAGS. (From wk on stable branch)David Shaw2003-05-262-2/+6
|
* * POTFILES.in: Added a couple of missing source files. Noted by PascalDavid Shaw2003-05-262-3/+14
| | | | | Hartig and Walter Koch. (From wk on stable branch)
* * armor.c, g10.c, kbnode.c, misc.c, pkclist.c, sign.c, build-packet.c,David Shaw2003-05-2423-190/+190
| | | | | | | | | getkey.c, keydb.c, openfile.c, plaintext.c, status.c, gpgv.c, keygen.c, options.h, sig-check.c, tdbio.h, encode.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.
* * bftest.c, crlf.c, mk-tdata.c, mpicalc.c, shmtest.c: Edit allDavid Shaw2003-05-246-45/+46
| | | | | | | 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.
* * bithelp.h, des.c, random.c, rndlinux.c, sha1.c, blowfish.c, elgamal.c,David Shaw2003-05-2420-196/+179
| | | | | | | | rijndael.c, rndunix.c, sha256.c, cast5.c, idea-stub.c, rmd160.c, rndw32.c, sha512.c, md5.c, rmd160test.c, rsa.c, tiger.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.
* * mpicoder.c, mpi-inline.h, mpi-inv.c, mpiutil.c, mpih-div.c,David Shaw2003-05-248-85/+83
| | | | | | | mpi-internal.h, mpi-scan.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.
* * argparse.c, dotlock.c, fileutil.c, iobuf.c, miscutil.c,David Shaw2003-05-2412-278/+277
| | | | | | | | simple-gettext.c, errors.c, http.c, memory.c, secmem.c, ttyio.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.
* * cipher.h, i18n.h, iobuf.h, memory.h, mpi.h, types.h, util.h: Edit allDavid Shaw2003-05-248-137/+139
| | | | | | | 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.
* * configure.ac: Edit preprocessor instructions in g10defs.h to removeDavid Shaw2003-05-242-13/+19
| | | | | | whitespace before the '#'. This is not required by C89, but there are some compilers out there that don't like it.
* * gpg.sgml: Document --trustdb-name. Document --gnupg in a new complianceDavid Shaw2003-05-242-40/+72
| | | | | | section, and remove the various --no-PGPX options. Deprecate --no-comment in favor of --no-sk-comments.
* * trustdb.h, trustdb.c (is_disabled), gpgv.c (is_disabled): RenameDavid Shaw2003-05-2115-79/+236
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | is_disabled to cache_disabled_value, which now takes a pk and not just the keyid. This is for speed since there is no need to re-fetch a key when we already have that key handy. Cache the result of the check so we don't need to hit the trustdb more than once. * getkey.c (skip_disabled): New function to get a pk and call is_disabled on it. (key_byname): Use it here. * 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.c (get_validity): Cache the disabled value since we have it handy and it might be useful later. * parse-packet.c (parse_key): Clear disabled flag when parsing a new key. Just in case someone forgets to clear the whole key. * getkey.c (merge_selfsigs_main): Add an "if all else fails" path for setting a single user ID primary when there are multiple set primaries all at the same second, or no primaries set and the most recent user IDs are at the same second, or no signed user IDs at all. This is arbitrary, but deterministic. * exec.h, photoid.h: Add copyright message. * keylist.c (list_keyblock_print): Don't dump attribs for revoked/expired/etc uids for non-colon key listings. This is for consistency with --show-photos. * main.h, keylist.c (dump_attribs), mainproc.c (check_sig_and_print): Dump attribs if --attrib-fd is set when verifying signatures. * g10.c (main): New --gnupg option to disable the various --openpgp, --pgpX, etc. options. This is the same as --no-XXXX for those options. * revoke.c (ask_revocation_reason): Clear old reason if user elects to repeat question. This is bug 153. * keyedit.c (sign_uids): Show keyid of the key making the signature.
* * fileutil.c (is_file_compressed): Fixed checking for "-" filename.Werner Koch2003-05-212-2/+6
|
* * progress.c (handle_progress)Werner Koch2003-05-214-6/+18
| | | | | | | | * sign.c (write_plaintext_packet) * encode.c (encode_simple,encode_crypt): Make sure that a filename of "-" is considered to be stdin so that iobuf_get_filelength won't get called. This fixes bug 156 reported by Gregery Barton.
* * cipher.c (setup_cipher_table): #ifdef IDEA.David Shaw2003-05-157-598/+629
| | | | | | | | | | | | | | | * random.c (fast_random_poll): Only use times() if we HAVE_TIMES. * sha512.c, tiger.c: Use the U64_C() macro to specify 64-bit constants. U64_C is defined in include/types.h and uses the correct suffix depending on the underlying type of u64. * idea-stub.c (load_module): Catch an error if the idea module file is unloadable for some reason (unreadable, bad permissions, etc.) * md.c (string_to_digest_algo): Give a warning about TIGER192 not being part of OpenPGP.
* * types.h: Add initializer macros for 64-bit unsigned type.David Shaw2003-05-142-1/+9
|
* * configure.ac: Remove some stuff no longer needed with newer autoconf.David Shaw2003-05-114-77/+123
| | | | | | | | | | | | | | | Use AC_GNU_SOURCE instead of defining _GNU_SOURCE manually. Add check for strchr() for gettext. Add "ngettext" check for gettext, since that check supposedly implies a check for bind_textdomain_codeset. Add check for times() for random.c. Fix URL for EGD. Make --enable-old-tiger match the stable branch as a separate item. * NEWS: "OpenPGP" trust model is now "PGP". Add note about TIGER being dropped from OpenPGP. Note trust bug fix. * README: Fix all URLs to point to the right place in the reorganized gnupg.org web pages. Some minor language fixes.
* * gpg.sgml: Some general language tweaks. Note default algo forDavid Shaw2003-05-042-38/+48
| | | | | | | --symmetric. --export-ownertrust takes no args. Document --no-escape-from-lines. Fix escaped "<From" to be ">From". Make "openpgp" trust model into "pgp".
* * packet.h, build-packet.c (build_sig_subpkt), export.cDavid Shaw2003-05-0320-261/+380
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (do_export_stream), import.c (remove_bad_stuff, import), parse-packet.c (dump_sig_subpkt, parse_one_sig_subpkt): Remove vestigal code for the old sig cache subpacket. This wasn't completely harmless as it caused subpacket 101 to disappear on import and export. * options.h, armor.c, cipher.c, g10.c, keyedit.c, pkclist.c, sign.c, 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. * sign.c (sign_file): Fix bug that causes spurious compression preference 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), pkclist.c (build_pk_list), 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.) * g10.c (main): Show errors for failure in export, send-keys, recv-keys, and refresh-keys. * 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.
* * cipher.h: Add constants for compression algorithms.David Shaw2003-05-032-0/+8
|
* * tdbio.c (create_version_record): Only create new trustdbs withDavid Shaw2003-05-017-29/+75
| | | | | | | | | | | | | | | | | | | | TM_CLASSIC or TM_PGP. * trustdb.h, trustdb.c (trust_string, get_ownertrust_string, get_validity_string, ask_ownertrust, validate_keys), pkclist.c (do_edit_ownertrust): Rename trust_string to trust_value_to_string for naming consistency. * trustdb.h, trustdb.c (string_to_trust_value): New function to translate a string to a trust value. * g10.c (main): Use string_to_trust_value here for --force-ownertrust. * options.h, g10.c (main), trustdb.c (trust_model_string, init_trustdb, check_trustdb, update_trustdb, get_validity, validate_one_keyblock): An "OpenPGP" trust model is misleading since there is no official OpenPGP trust model. Use "PGP" instead.
* * build-packet.c (build_sig_subpkt): Comments.David Shaw2003-04-307-30/+109
| | | | | | | | | | | | | | | | | | | | | | | | | * exec.c (exec_write): Cast NULL to void* to properly terminate varargs list. * keyedit.c (show_key_with_all_names): Just for safety, catch an invalid pk algorithm. * sign.c (make_keysig_packet): Crucial that the call to mksubpkt comes LAST before the calls to finalize the sig as that makes it possible for the mksubpkt function to get a reliable pointer to the subpacket area. * pkclist.c (do_we_trust_pre): If an untrusted key was chosen by a particular user ID, use that ID as the one to ask about when prompting whether to use the key anyway. (build_pk_list): Similar change here when adding keys to the recipient list. * trustdb.c (update_validity): Fix bug that prevented more than one validity record per trust record. (get_validity): When retrieving validity for a (user) supplied user ID, return the validity for that user ID only, and do not fall back to the general key validity. (validate_one_keyblock): Some commentary on whether non-self-signed user IDs belong in the web of trust (arguably, they do).
* * gettextP.h: Add comment for HP/UX users. Local fix for GnuPG.David Shaw2003-04-302-0/+10
|
* * scdaemon.c: New options --print-atr and --reader-portWerner Koch2003-04-298-11/+378
| | | | | | | * apdu.c, apdu.h: New * card.c, card-p15.c, card-dinsig.c: Allow build without OpenSC.
* * Makefile.am: Use libassuan. Don't override LDFLAGS anymore.Werner Koch2003-04-294-32/+33
| | | | | * server.c (register_commands): Adjust for new Assuan semantics.
* * Makefile.am (LDFLAGS): Removed.Werner Koch2003-04-293-19/+21
| | | | | * command.c (register_commands): Adjusted for new Assuan semantics.
* * util.h (fopencokokie): Removed prototype and struct.Werner Koch2003-04-293-23/+10
| | | | | * maperror.c: Use system assuan.h
* * command.c (register_commands): Adjusted for new Assuan semantics.Werner Koch2003-04-293-30/+34
| | | | | * Makefile.am: Don't override LDFLAGS.
* Removed assuan because we now use libassuanWerner Koch2003-04-2917-3595/+0
|
* * DETAILS (VALIDSIG): Add version, pk algo, digest algo, sig class, and aDavid Shaw2003-04-273-30/+49
| | | | | | | | | | reserved field for flags in a future version. * gpg.sgml: Document --no-textmode and --no-use-agent. Clarify the interoperability section. Clarify that "hkp corruption" (repair-hkp-subkey-bug) is really "pks corruption" (repair-pks-subkey-bug).
* * BUGS: Fix bug reporting URL.David Shaw2003-04-273-5/+38
| | | | | | | | * NEWS: Add sig version, pk algo, hash algo, and sig class to VALIDSIG. Add notes about SRV, the "subkeyid!" syntax, configure options to disable various algorithms, and the ability to change the keyserver no-modify flag.
* * g10.c (main): Add --no-textmode.David Shaw2003-04-278-29/+70
| | | | | | | | | | | | | | | | | | | * export.c (do_export_stream), keyedit.c (show_key_with_all_names, menu_addrevoker), mainproc.c (check_sig_and_print), photoid.c (show_photos), sign.c (mk_notation_and_policy), trustdb.c (get_validity, reset_trust_records, validate_keys): Make some strings translatable. * mainproc.c (check_sig_and_print): Show digest algorithm and sig class when verifying a sig with --verbose on, and add version, pk and hash algorithms and sig class to VALIDSIG. * parse-packet.c (enum_sig_subpkt): Make a warning message a --verbose warning message since we don't need to warn every time we see an unknown critical (we only need to invalidate the signature). * trustdb.c (init_trustdb): Check the trustdb options even with TM_AUTO since the auto may become TM_CLASSIC or TM_OPENPGP.
* * sign.c (do_sign): Show the hash used when making a signature in verboseDavid Shaw2003-04-267-26/+68
| | | | | | | | | | | | mode. * tdbio.h, tdbio.c (tdbio_read_model): New function to return the trust model used in a given trustdb. * options.h, g10.c (main), trustdb.c (init_trustdb, check_trustdb, update_trustdb): Use tdbio_read_model to implement an "auto" trust model which is set via the trustdb.
* * config.links: Re-disable assembler on Darwin. Darwin 6.5 broke itDavid Shaw2003-04-252-5/+9
| | | | | again.