aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* * 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.
* * configure.ac: Big warning that TIGER/192 is being removed from theDavid Shaw2003-04-233-6/+27
| | | | | | | standard, and make it disabled by default. * README: Put back proper copyright line. Remove mention of TIGER/192.
* * import.c (import_revoke_cert): Remove ultimate trust when revoking anDavid Shaw2003-04-238-18/+89
| | | | | | | | | | | | | | | | | | ultimately trusted key. * keyedit.c (sign_uids): Allow replacing expired signatures. Allow duplicate signatures with --expert. * pkclist.c (check_signatures_trust): Don't display a null fingerprint when checking a signature with --always-trust enabled. * filter.h (progress_filter_context_t), progress.c (handle_progress), plaintext.c (ask_for_detached_datafile, hash_datafiles): Fix compiler warnings. Make "what" constant. * build-packet.c (do_plaintext): Do not create invalid literal packets with >255-byte names.
* * Makefile.am, options.in: Rename options.in to options since it no longerDavid Shaw2003-04-235-22/+54
| | | | | | | | | needs to be a generated file. * sigs.test: TODO note to add the new SHAs when we start generating them. * mds.test: Test the new SHAs.
* * Makefile.am (AM_CFLAGS): Make use of AM_CFLAGS and AM_LDFLAGS.Werner Koch2003-04-1513-17/+209
| | | | | | * g10.c, options.h: New option --enable-progress-filter. * progress.c (handle_progress): Make use of it.
* * gpg.sgml: Document --enable-progress-filter.Werner Koch2003-04-152-1/+15
|
* * configure.ac (HAVE_DOSISH_SYSTEM): New automake conditional.Werner Koch2003-04-153-7/+17
|
* * longlong.h (umul_ppmm): Support SH3 and SH4. Thanks toWerner Koch2003-04-152-2/+8
| | | | | [email protected].
* * md.c (md_start_debug): Need to open the file in binary mode.Werner Koch2003-04-152-2/+6
|
* * acinclude.m4 (GNUPG_CHECK_ENDIAN): Fix quoting of r.e. usingWerner Koch2003-04-152-1/+6
| | | | | quadrigraphs.
* * srv.c (main): Test against wwwkeys.pgp.net.David Shaw2003-04-133-2/+10
| | | | | | * srv.h: Grr. The RH7.3 Linux man page defines the fourth arg of dn_expand as unsigned char*, but it is really char* according to resolv.h.
* * passphrase.c (read_passphrase_from_fd): Do a dummy read if theWerner Koch2003-04-1011-67/+175
| | | | | | | | | | | | | | | | | | | | | agent is to be used. Noted by Ingo Kl�cker. (agent_get_passphrase): Inhibit caching when we have no fingerprint. This is required for key generation as well as for symmetric only encryption. * passphrase .c (agent_get_passphrase): New arg CANCELED. (passphrase_to_dek): Ditto. Passed to above. Changed all callers to pass NULL. * seckey-cert.c (do_check): New arg CANCELED. (check_secret_key): Terminate loop when canceled. * keyedit.c (change_passphrase): Pass ERRTEXT untranslated to passphrase_to_dek and translate where appropriate. * seckey-cert.c (check_secret_key): Ditto. * keygen.c (ask_passphrase): Ditto. * passphrase.c (agent_get_passphrase): Translate the TRYAGAIN_TEXT. Switch the codeset to utf-8.
* * main.h, g10.c (main), import.c (parse_import_options,David Shaw2003-04-094-10/+22
| | | | | | | | | 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.
* * gpgkeys_hkp.c (dehtmlize, parse_hkp_index): Fix memory corruption bug onDavid Shaw2003-04-092-1/+8
| | | | | some platforms.
* * autogen.sh: Add options to build for coldfire and uClinux.Werner Koch2003-04-082-2/+121
|
* * Makefile.am (EXTRA_DIST): Add autogen.sh wrapper.Werner Koch2003-04-082-2/+6
|
* Add primary key fingerprint to VALIDSIG status.Werner Koch2003-04-085-9/+43
|
* * DETAILS: Don't specify which hash is used to make up the namehash sinceDavid Shaw2003-04-075-874/+1192
| | | | | | | | | | | | | it may change in the future. * samplekeys.asc: Updated. * gpg.sgml: Document "revuid". Clarify that --openpgp resets --pgpX. Some cleanup of --no-xxx options, make sure that all SGML tags are closed, clarify --pgp8 allows SHA-256, and document --no-emit-version. * Makefile.am: Allow CVS version to build without faqprog.pl.
* * dcigettext.c (plural_lookup): Name conflict on some platforms withDavid Shaw2003-04-072-5/+10
| | | | | "index". Local fix for GnuPG.
* * configure.ac: Use much more accurate method to determine whetherDavid Shaw2003-04-075-32/+56
| | | | | | | | | | | | | DNS SRV is usable. * README: Document the various --disable-xxx switches, and add a note about existing keys that may use one of the missing ciphers as a preference. Update copyright date. * NEWS: Add note about SHA-256/384/512. * acinclude.m4: Fix URL to faqprog.pl.
* * pkclist.c (algo_available): PGP 8 can use the SHA-256 hash.David Shaw2003-04-043-21/+29
| | | | | | * sign.c (sign_file, clearsign_file, sign_symencrypt_file): Remove unused code.
* * keydb.h: Err on the side of making an unknown signature a SIG ratherDavid Shaw2003-03-247-14/+48
| | | | | | | | | | | | | | | | | | | than a CERT. * import.c (delete_inv_parts): Discard any key signatures that aren't key types (i.e. 0x00, 0x01, etc.) * 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. * status.c (do_get_from_fd): Accept 'y' as well as 'Y' for --command-fd boolean input. * trustdb.c: Fix typo (DISABLE_REGEXP -> DISABLE_REGEX) * keyedit.c (show_key_with_all_names_colon): Show no-ks-modify flag.