1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-11-13 22:08:52 +01:00
Commit Graph

1100 Commits

Author SHA1 Message Date
David Shaw
c28abad3b6 * sha512.c: Use the U64_C() macro rather than blindly suffixing with LL.
U64_C is defined in include/types.h and uses the correct suffix depending
on the underlying type of u64.
2003-05-09 22:33:21 +00:00
David Shaw
47e1b3f993 * types.h: Add typedef and initializer macro for 64-bit unsigned type. 2003-05-09 22:01:33 +00:00
David Shaw
0e429a976b * configure.ac: Simpler implementation for the 64-bit question - we don't
need to verify compiler support with a test program since we just cast
everything to the proper type.  This also means that cross compiling
doesn't become a problem.
2003-05-09 21:59:09 +00:00
David Shaw
6957239566 * g10.c (main): New --gnupg option to disable the various --openpgp,
--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.
2003-05-09 16:05:24 +00:00
David Shaw
66f51ba19f * mds.test: Note that missing algorithms are not errors. 2003-05-09 15:27:35 +00:00
David Shaw
74a0287acf * sha512.c: Suffix all 64-bit constants with LL. Note this makes this
file non-c89 compliant.  That is okay since we have an autoconf check for
this, and many c89 compilers support LL anyway.
2003-05-09 15:17:28 +00:00
David Shaw
fce597623b * configure.ac: Check for 64-bit types, and how well the compiler supports
them (LL) before enabling TIGER/192, SHA-384, or SHA-512.
2003-05-09 15:11:12 +00:00
David Shaw
f20f778c85 * cipher.c (fast_random_poll): Only use times() if we HAVE_TIMES. 2003-05-08 21:53:32 +00:00
David Shaw
7ee7c76121 * README: Remove note about HP/UX inline problem since autoconf now
handles this automatically.

* configure.ac: Remove some stuff no longer needed with newer autoconf.
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.
2003-05-08 21:37:20 +00:00
David Shaw
0e57fe4e94 * revoke.c (ask_revocation_reason): Clear old reason if user elects to
repeat question.  This is bug 153.
2003-05-07 14:18:14 +00:00
David Shaw
53f2944998 * keyedit.c (sign_uids): Show keyid of the key making the signature.
* trustdb.h, trustdb.c (is_disabled), keylist.c (print_capabilities),
gpgv.c (is_disabled): is_disabled 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.

* getkey.c (skip_disabled): New function to get a pk and call is_disabled
on it. (key_byname): Use it here.
2003-05-07 14:04:27 +00:00
David Shaw
879014e14b * g10.c (main): Show errors for failure in export, send-keys, recv-keys,
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.
2003-05-03 03:17:00 +00:00
David Shaw
1db0d1e0a2 * cipher.h: Add constants for compression algorithms. 2003-05-03 01:32:34 +00:00
David Shaw
5d283fdd8b * 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), 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.)
2003-05-02 21:41:43 +00:00
David Shaw
37ec8572e8 * 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.
2003-05-02 19:22:00 +00:00
David Shaw
1855498166 * defs.inc: Fix shell warning messages. 2003-05-02 04:33:21 +00:00
David Shaw
620afaecb5 * packet.h, build-packet.c (build_sig_subpkt), export.c
(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.
2003-05-02 02:57:23 +00:00
Werner Koch
55ddaeb1b5 post release version number update 2003-05-01 15:43:40 +00:00
Werner Koch
7711b00bec Released 1.2.2 2003-05-01 14:27:05 +00:00
Werner Koch
171bbcc290 * defs.inc (pgmname): Make sure there is a valid options file. 2003-05-01 14:26:24 +00:00
Werner Koch
3a299b40f0 * faq.raw: List years of copyright notice separately. 2003-05-01 14:25:08 +00:00
Werner Koch
a6225ed998 * mk-w32-dist: Don't iconv {hu,sk,zh_TW}.po. 2003-05-01 14:24:23 +00:00
Werner Koch
bd1e8c59fc Update of most translations for the 1.2.2 release. 2003-05-01 11:02:48 +00:00
David Shaw
2facae056d * NEWS: Note trust bug fix. 2003-05-01 02:58:31 +00:00
David Shaw
4b502c70bf * 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).
2003-04-30 04:45:25 +00:00
David Shaw
f09fe68e76 * gpg.sgml: Some general language tweaks. Note default algo for
--symmetric.  --export-ownertrust takes no args.  Document
--no-escape-from-lines.  Fix escaped "<From" to be ">From".
2003-04-30 02:54:58 +00:00
David Shaw
3d6785d902 * NEWS: Add note about TIGER being dropped from OpenPGP.
* README: Add note about the HP/UX inline problem.  Fix all URLs to point
to the right place in the reorganized gnupg.org web pages.  Some minor
language fixes.
2003-04-29 22:15:07 +00:00
David Shaw
dbc5f65127 * README: Add note about the HP/UX inline problem. Fix bug reporting URL. 2003-04-29 14:29:00 +00:00
David Shaw
952cd8769e * gettextP.h: Add comment for HP/UX users. Local fix for GnuPG. 2003-04-29 13:18:12 +00:00
Werner Koch
e934896789 * 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.
* getkey.c (premerge_public_with_secret): Made "no secret subkey
for" warning a verbose item and translatable.
2003-04-29 07:21:08 +00:00
Werner Koch
d174920691 * filter.h: Remove const from WHAT.
* progress.c (handle_progress): Store a copy of NAME.
(progress_filter): Release WHAT, make sure not to print a NULL WHAT.
* openfile.c (open_sigfile): Adjust free for new progress semantics.
* plaintext.c (ask_for_detached_datafile): Don't dealloc pfx->WHAT.
2003-04-29 07:15:25 +00:00
David Shaw
e30006a769 * build-packet.c (build_sig_subpkt): Comments.
* 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.
2003-04-28 22:00:31 +00:00
David Shaw
625c3ef091 * sign.c (mk_notation_and_policy): Make some strings translatable. 2003-04-27 20:01:10 +00:00
David Shaw
f5e9289b82 * sign.c (mk_notation_and_policy): Make some strings translatable. 2003-04-27 19:57:05 +00:00
David Shaw
e9bb40b4d3 * NEWS: Add sig version, pk algo, hash algo, and sig class to VALIDSIG.
* BUGS: Fix bug reporting URL.
2003-04-27 04:16:19 +00:00
David Shaw
8d97fc48fe * gpg.sgml: Document --no-textmode and --no-use-agent. Clarify the
interoperability section.

* DETAILS (VALIDSIG): Add version, pk algo, digest algo, sig class, and a
reserved field for flags in a future version.
2003-04-27 04:12:47 +00:00
David Shaw
5cf9c2f1f2 * mainproc.c (check_sig_and_print): Show sig class when verifying a sig
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.
2003-04-27 04:10:04 +00:00
David Shaw
2e6d0dd2e0 * mainproc.c (check_sig_and_print): Show digest algorithm when verifying a
sig with --verbose on.

* parse-packet.c (enum_sig_subpkt): Make a warning message a --verbose
warning message since the devel version can make signatures that trigger
it each time.
2003-04-26 21:35:22 +00:00
David Shaw
9b6afa4fab * hkp.c (hkp_ask_import, hkp_export, hkp_search): Make sure to allocate
space for the ":port" text in HKP URLs.
2003-04-25 03:53:17 +00:00
Werner Koch
4b0f7e337f * POTFILES.in: Added a couple of missing source files. Noted by
Pascal Hartig and Walter Koch.

* configure.ac (ALL_LINGUAS): Added Hungarian translation by Nagy
Ferenc L�szl�.
2003-04-24 11:12:35 +00:00
David Shaw
c192355ff1 * configure.ac: "TIGER" -> "TIGER/192".
* README: Put back proper copyright line.
2003-04-23 19:48:39 +00:00
David Shaw
7ad4e2db30 * config.links: Put back proper copyright line. 2003-04-23 19:35:24 +00:00
David Shaw
61f8d31f93 * Makefile.am, options.in: Rename options.in to options since it no longer
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.
2003-04-23 19:31:25 +00:00
Werner Koch
a524209170 Reverted recent changes in the copyright notices. We can't use a
range of years but must list each year we have prepared a release
and applied a textual change to a file.  It is common that some
files are not changed in a couple of years and a range would not
allow to express this.
2003-04-23 10:17:41 +00:00
Werner Koch
5c32c4093b Changed text 2003-04-23 10:15:08 +00:00
Werner Koch
13e8ba70ac * gnupg-w32.reg: Use HLM for the program and make sure the entries
are created.  Suggested by danielc@analysisandsolutions.com.
2003-04-23 10:13:33 +00:00
David Shaw
b4584740ed * config.links: Re-disable assembler on Darwin. Darwin 6.5 broke it
again.
2003-04-23 05:11:19 +00:00
David Shaw
0727326e4e * plaintext.c (ask_for_detached_datafile, hash_datafiles): Fix compiler
warnings.
2003-04-22 04:23:31 +00:00
David Shaw
338be86caf * 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): Fix
compiler warnings.  Make "what" constant.

* build-packet.c (do_plaintext): Do not create invalid literal packets
with >255-byte names.
2003-04-22 04:10:22 +00:00
Werner Koch
048a078fc6 fixed some fuzziness right before 1.2.2rc2 2003-04-16 08:42:37 +00:00