2006-09-06 Marcus Brinkmann <marcus@g10code.de>
[gnupg.git] / g10 / ChangeLog
blob55c8a15d5d9576368ae3a72b07886c6516018f41
1 2006-09-06  Werner Koch  <wk@g10code.com>
3         * gpg.c (main): Enable new assuan API.
4         * call-agent.c: Changed to new Assuan API.
6 2006-09-01  Werner Koch  <wk@g10code.com>
8         * call-agent.c: Do not force using the pipe server.
10         * gpg.c (main): Enable card related commands.
12 2006-08-22  Werner Koch  <wk@g10code.com>
14         * mainproc.c (proc_plaintext): Fixed a #warning
16 2006-08-21  Werner Koch  <wk@g10code.com>
18         * skclist.c (random_is_faked): Implemented.
19         (is_insecure): Also test for the old uppercase version of the
20         insecure string.
21         * gpg.c (main): Renamed --quick-random to debug-quick-quick-random.
23         * gpg.c (print_mds): Do not use the USE_SHA macros.
25         * mainproc.c (proc_encrypted): Remove assign inside condition for
26         better readibility.
28         * packet.h: Moved consts to new header ../common/openpgpdefs.h.
30 2006-08-16  Werner Koch  <wk@g10code.com>
32         * keyserver.c (GPGKEYS_PREFIX): Rename to gpg2keys_.  This is so
33         that we can install helpers from 1.4 and 2 without conflicts and
34         first of all don't get lost with weird bug reports.
36         * keyid.c (serialno_and_fpr_from_sk): New. Actually lost during
37         the last 1.4 to 1.9 merge.
39         * gpg.c (list_config): Output ccid-reader-id only for gnupg 1.
41         * call-agent.c (agent_scd_writekey): New.
42         (inq_writekey_parms): New.
44         * gpgv.c: Include call-agent.h for use by stubs.
46         * misc.c: Include call-agent.h for use by get_signature_count.
48 2006-07-27  Werner Koch  <wk@g10code.com>
50         * parse-packet.c (parse_comment): Cap comments at 65k.
51         (parse_gpg_control): Skip too large control packets.
53 2006-07-24  David Shaw  <dshaw@jabberwocky.com>  (wk)
55         * keydb.h, pkclist.c (select_algo_from_prefs, algo_available):
56         Pass a union for preference hints rather than doing void * games.
58         * sign.c (sign_file): Use it here.
60         * sign.c (sign_file): When signing with multiple DSA keys, one
61         being DSA1 and one being DSA2 and encrypting at the same time, if
62         the recipient preferences give a hash that can work with the DSA2
63         key, then allow the DSA1 key to be promoted rather than giving up
64         and using hash_for().
66         * pkclist.c (algo_available): Automatically enable DSA2 mode when
67         handling a key that clearly isn't DSA1 (i.e. q!=160).
69 2006-06-30  Werner Koch  <wk@g10code.com>
71         * misc.c (checksum_mpi): No need for nbits as they are alredy
72         included in the buffer.
74 2006-06-29  Werner Koch  <wk@g10code.com>
76         * parse-packet.c (parse_signature, parse_key): Need store the
77         length of opaque data as number of bits. 
78         * card-util.c (card_store_subkey): Ditto.
80         * mainproc.c (print_pkenc_list, check_sig_and_print): Replaced
81         log_get_stream by calls to log_printf.  This avoids the extra LFs
82         inserted by the logging function. They are a bit too smart
83         sometimes.
84         * pkclist.c (do_show_revocation_reason): Print final LF through
85         log_printf to avoid extra LFs.
86         * pubkey-enc.c (get_it): Ditto.
88         * seskey.c (encode_md_value): Fix call to gcry.
90 2006-06-27  Werner Koch  <wk@g10code.com>
92         Applied patches from 1.4.x (2006-05-22 to 2006-06-23) from David:
94         * keygen.c (keygen_upd_std_prefs, keygen_add_std_prefs)
95         (proc_parameter_file): Add --default-keyserver-url to specify a
96         keyserver URL at key generation time, and "Keyserver:" keyword for
97         doing the same through a batch file.
98         * options.h, gpg.c (main): Ditto.
100         * sign.c (do_sign): For now don't accept a truncated hash even
101         for DSA1 keys (be liberal in what you accept, etc).
103         * import.c (import_one): Add a flag (from_sk) so we don't check
104         prefs on an autoconverted public key.  The check should only
105         happen on the sk side.  Noted by Dirk Traulsen.
107         * keygen.c (gen_card_key): Add optional argument to return a
108         pointer (not a copy) of the stub secret key for the secret key we
109         just generated on the card.
110         (generate_card_subkeypair): Use it here so that the signing key on
111         the card can use the card to generate the 0x19 backsig on the
112         primary key.  Noted by Janko Heilgeist and Jonas Oberg.
114         * parse-packet.c (parse_user_id): Cap the user ID size at 2048
115         bytes.  This prevents a memory allocation attack with a very large
116         user ID.  A very large packet length could even cause the
117         allocation (a u32) to wrap around to a small number.  Noted by
118         Evgeny Legerov on full-disclosure.
120         * keygen.c (gen_dsa): Allow generating DSA2 keys.  Allow
121         specifying sizes > 1024 when --enable-dsa2 is set.  The size of q
122         is set automatically based on the key size.
123         (ask_keysize, generate_keypair): Ask for DSA size when
124         --enable-dsa2 is set.
126         * exec.c (make_tempdir) [W32]: Fix bug with a temporary directory
127         on W32 that is over 256 bytes long.  Noted by Israel G. Lugo.
129         * gpg.c (reopen_std): New function to reopen fd 0, 1, or 2 if we
130         are called with them closed.  This is to protect our
131         keyring/trustdb files from corruption if they get attached to one
132         of the standard fds.  Print a warning if possible that this has
133         happened, and fail completely if we cannot reopen (should never
134         happen).
135         (main): Call it here.
136         
137         * parse-packet.c (dump_sig_subpkt, parse_signature): Fix meaning
138         of key expiration and sig expiration subpackets - zero means
139         "never expire" according to 2440, not "expire instantly".
140         * build-packet.c (build_sig_subpkt_from_sig): Ditto.
141         * getkey.c (fixup_uidnode, merge_selfsigs_main)
142         (merge_selfsigs_subkey): Ditto.
143         * keygen.c (keygen_add_key_expire): Ditto.
145         * getkey.c (get_pubkey_byname)
146         * import.c (import_one): Fix key selection problem when
147         auto-key-locate returns a list of keys, not all of which are
148         usable (revoked, expired, etc).  Noted by Simon Josefsson.
150 2006-05-24  Werner Koch  <wk@g10code.com>
152         * keyid.c (hash_public_key): Do not double hash the length bytes,
153         they are already included by mpi_print.
155         * misc.c (openpgp_pk_test_algo2): Get test call right.
157         * misc.c (string_to_cipher_algo, string_to_digest_algo): New.
158         * keygen.c (keygen_set_std_prefs): use them here.
159         * gpg.c (main): and here.
161 2006-05-23  Werner Koch  <wk@g10code.com>
163         * card-util.c (generate_card_keys): Removed temporary kludge for
164         generate_keypair.
166         * call-agent.c (agent_scd_setattr): Add arg SERIALNO.
167         (agent_scd_genkey): Ditto.
168         (agent_scd_change_pin): Ditto.
170         * call-agent.h (struct agent_card_info_s): Updated to match the
171         one of 1.4.3.
173         * Makefile.am (LDADD): Include ZLIBS.
175         * gpgv.c: Removed stubs not anymore useful due to libgcrypt.
177 2006-05-22  Werner Koch  <wk@g10code.com>
179         * keyserver.c (keyidlist): Replaced mpi_get_keyid by v3_keyid.
180         * keydb.h (v3_keyid): Added.
182         * import.c (import): Better initialize KEYBLOCK as to quiet
183         compiler warning.
185         * skclist.c (random_is_faked): New.
187         * mainproc.c: Include pka.h.
189 2006-05-19  Werner Koch  <wk@g10code.com>
191         * misc.c (openpgp_pk_test_algo2): Need to use gcry_pk_algo_info
192         directly.
193         (string_count_chr): New.
195         * armor.c (parse_header_line): Use renamed function
196         length_sans_trailing_ws.
198         * options.h, gpg.c: Option --strict is not used thus removed code
199         but kept option.
201 2006-04-28  David Shaw  <dshaw@jabberwocky.com>  (wk)
202         
203         * keyserver.c (direct_uri_map): New.
204         (keyserver_spawn): Used here to add "_uri" to certain gpgkeys_xxx
205         helpers when the meaning is different if a path is provided (i.e. 
206         ldap).
207         (keyserver_import_cert): Show warning if there is a CERT
208         fingerprint, but no --keyserver set.
210         * keyserver.c: Fix build problem with platforms that stick libcurl
211         in a place not in the regular include search path.
213         * options.h, gpg.c (main): Add --enable-dsa2 and --disable-dsa2.
214         Defaults to disable.
216         * pkclist.c (algo_available): If --enable-dsa2 is set, we're
217         allowed to truncate hashes to fit DSA keys.
219         * sign.c (match_dsa_hash): New.  Return the best match hash for a
220         given q size.
221         (do_sign, hash_for, sign_file): When signing with a DSA key, if it
222         has q==160, assume it is an old DSA key and don't allow truncation
223         unless --enable-dsa2 is also set.  q!=160 always allows truncation
224         since they must be DSA2 keys.
225         (make_keysig_packet): If the user doesn't specify a
226         --cert-digest-algo, use match_dsa_hash to pick the best hash for
227         key signatures.
229         * gpg.c (print_mds): Add SHA-224.
230         * armor.c (armor_filter, parse_hash_header): Add SHA-224.
232         * sign.c (write_plaintext_packet):
233         Factor common literal packet setup code from here, to...
234         * encode.c (encode_simple): .. there.
235         
236         * main.h, plaintext.c (setup_plaintext_name): Here. New. Make sure
237         the literal packet filename field is UTF-8 encoded.
239         * options.h, gpg.c (main): Make sure --set-filename is UTF-8
240         encoded and note when filenames are already UTF-8.
242         * keyedit.c (menu_backsign): Give some more verbose errors when we
243         have no need to backsign.
245         * getkey.c (parse_auto_key_locate): Fix dupe-removal code.
247         * keyedit.c (menu_backsign): Allow backsigning even if the secret
248         subkey doesn't have a binding signature.
250         * armor.c (radix64_read): Don't report EOF when reading only a pad
251         (=) character.  The EOF actually starts after the pad.
253         * gpg.c (main): Make --export, --send-keys, --recv-keys,
254         --refresh-keys, and --fetch-keys follow their arguments from left
255         to right.  Suggested by Peter Palfrader.
257 2006-04-18  Werner Koch  <wk@g10code.com>
259         * tdbio.c (open_db, migrate_from_v2): Removed feature to migration
260         from old trustdb version 2.
262         * gpg.c, mainproc.c: Removed pipemode feature.
264         * status.c: Removed shared memory coprocess stuff
266         Merged with current gpg 1.4.3 code.
267         
268         * keygen.c, keyid.c, misc.c, openfile.c, verify.c, trustdb.c
269         * textfilter.c, tdbio.c, tdbdump.c, status.c, skclist.c, signal.c
270         * sign.c, sig-check.c, seskey.c, seckey-cert.c, revoke.c
271         * pubkey-enc.c, progress.c, plaintext.c, pkclist.c, photoid.c
272         * passphrase.c, parse-packet.c, mdfilter.c, mainproc.c
273         * keyserver.c, keyring.c, keylist.c, keyedit.c, keydb.c, kbnode.c
274         * import.c, getkey.c, gpgv.c, helptext.c, free-packet.c
275         * build-packet.c, cipher.c, compress.c, dearmor.c, decrypt.c
276         * delkey.c, encr-data.c, encode.c, exec.c, export.c
277         * gpg.c, armor.c: Updated from gnupg-1.4.3 and merged back gcry and
278         gnupg-1.9 related changes.
279         * trustdb.h, tdbio.h, status.h, photoid.h, packet.h, options.h
280         * main.h, keyserver-internal.h, keyring.h, keydb.h, filter.h
281         * exec.h: Ditto.
282         * global.h: Removed after merging constants with gpg.h.
283         * comment.c, pipemode.c: Removed.
284         * card-util.c: Updated from gnupg-1.4.3.
285         * compress-bz2.c: New.
286         
287 2005-06-15  Werner Koch  <wk@g10code.com>
289         * g10.c (print_hashline, add_group): Fixes for signed/unsigned
290         pointer mismatch warnings.
292 2005-06-01  Werner Koch  <wk@g10code.com>
294         * mkdtemp.c: Removed.
295         * exec.c: Include mkdtemp.h
297 2004-12-21  Werner Koch  <wk@g10code.com>
299         * gpgv.c, g10.c (main): Use default_hoemdir ().
301 2004-12-18  Werner Koch  <wk@g10code.com>
303         * gpg.h (map_assuan_err): Define in terms of
304         map_assuan_err_with_source.
306 2004-12-15  Werner Koch  <wk@g10code.com>
308         * Makefile.am (LDADD): Remove ZLIBS.
310 2004-10-22  Werner Koch  <wk@g10code.com>
312         * g10.c (main): Display a bit fat warning that this gpg should not
313         be used.
315         * card-util.c (fetch_url): Disable for gnupg 1.9
316         (card_generate_subkey): Ditto.
317         (card_store_subkey): Ditto.
319 2004-09-30  Werner Koch  <wk@g10code.com>
321         * gpgv.c (i18n_init): Always use LC_ALL.
323         * Makefile.am (LDADD): Adjusted for gettext 0.14.
325 2004-09-20  Werner Koch  <wk@g10code.com>
327         * keyedit.c (show_key_with_all_names): Print the card S/N.
329 2004-09-11  Moritz Schulte  <moritz@g10code.com>
331         * openfile.c (copy_options_file): Fixed last commit (added a `+').
333 2004-08-31  Werner Koch  <wk@g10code.de>
335         * openfile.c (copy_options_file): Use gpg-conf.skel. Better take
336         the length of SKELEXT into account, someone might make it larger.
337         * Makefile.am: Install options.skel as gpg-conf.skel.
339 2004-08-18  Marcus Brinkmann  <marcus@g10code.de>
341         * passphrase.c (agent_get_passphrase): Fix detection of gpg-agent
342         cancellation.
344 2004-07-01  Werner Koch  <wk@gnupg.org>
346         * card-util.c (change_login): Kludge to allow reading data from a
347         file.
348         (card_edit): Pass ARG_STRING to change_login.
349         (card_status): Print CA fingerprints.
350         (change_cafpr): New.
351         (card_edit): New command CAFPR.
353         * call-agent.h: Add members for CA fingerprints.
354         * call-agent.c (agent_release_card_info): Invalid them.
355         (learn_status_cb): Store them.
357 2004-04-30  Werner Koch  <wk@gnupg.org>
359         * g10.c (main) <gpgconf>: Use gpg.conf and not /dev/null as
360         default filename.
362 2004-04-28  Werner Koch  <wk@gnupg.org>
364         * card-util.c (card_edit): Remove PIN verification.
365         (generate_card_keys): New arg SERIALNO.  Do PIN verification here
366         after resetting forced_chv1.
368 2004-04-26  Werner Koch  <wk@gnupg.org>
370         * card-util.c (change_name): Check that the NAME is not too long.
371         (change_url): Likewise.
372         (change_login): Likewise.
374 2004-03-23  Werner Koch  <wk@gnupg.org>
376         * g10.c: New options --gpgconf-list, --debug-level and --log-file
377         (set_debug): Add arg DEBUG_LEVEL.
378         (main): Look at less and less version specific config files.  From
379         gnupg 1.3.
381 2004-02-17  Werner Koch  <wk@gnupg.org>
383         * call-agent.c (start_agent): Ignore an empty GPG_AGENT_INFO.
384         * passphrase.c (agent_open): Ditto.
386 2004-02-12  Werner Koch  <wk@gnupg.org>
388         * gpgv.c: Removed g10defs.h.
390         * Makefile.am: Include cmacros.am for common flags.
392 2004-02-11  Werner Koch  <wk@gnupg.org>
394         * openfile.c (try_make_homedir): Use GNUPG_DEFAULT_HOMEDIR.
395         * gpgv.c (main): Ditto.
396         * g10.c (main): Ditto.
398 2004-01-19  Moritz Schulte  <mo@g10code.com>
400         * keygen.c (do_generate_keypair): Print member fname, instead of
401         newfname, again.
402         (do_generate_keypair): Don't try to execute certain pieces of code
403         in case an error occured.
404         (gen_card_key): Don't print out a message, which is already
405         printed by do_generate_keypair().
407 2004-01-18  Moritz Schulte  <mo@g10code.com>
409         * keygen.c (do_generate_keypair): Print member fname, instead of
410         newfname.
412 2003-12-17  Werner Koch  <wk@gnupg.org>
414         * card-util.c (print_name): Fixed bad format string usage.
415         (print_isoname): Ditto.
417         * trustdb.c (check_regexp): s/exp/expr/.
419         * keyedit.c (trustsig_prompt): Removed a "> 255" term; it is
420         always false due to the data type.
421         
422         * passphrase.c (agent_get_passphrase): Use xasprintf and avoid
423         non-literal format strings.
425         * tdbio.c (upd_hashtable, drop_from_hashtable, lookup_hashtable):
426         Fixed log_error format string bugs.  Kudos to the now working
427         gcc-3.3 -Wformat-nonliteral and Florian Weimer's investigations in
428         gnupg 1.2.3.
430 2003-12-15  Werner Koch  <wk@gnupg.org>
432         * seckey-cert.c (protect_secret_key): Use gry_create_nonce for the
433         IV; there is not need for real strong random here and it even
434         better protect the random bits used for the key.
436 2003-11-16  Moritz Schulte  <mo@g10code.com>
438         * signal.c: Removed unused file.
440 2003-11-10  Moritz Schulte  <mo@g10code.com>
442         * Makefile.am (INCLUDES): Added: @LIBGCRYPT_CFLAGS@.
444 2003-10-25  Werner Koch  <wk@gnupg.org>
446         * call-agent.c (learn_status_cb, scd_genkey_cb): Fixed faulty use
447         of !spacep().
449 2003-10-20  Werner Koch  <wk@gnupg.org>
451         * card-util.c (card_edit): New command "passwd".  Add logic to
452         check the PIN in advance.
453         (card_status): Add new args to return the serial number.  Changed
454         all callers.
455         * call-agent.c (agent_scd_checkpin): New.
457 2003-10-08  Werner Koch  <wk@gnupg.org>
459         * call-agent.c (agent_scd_getattr): Don't clear the passed info
460         structure, so that it can indeed be updated.
462         * card-util.c (fpr_is_zero): New.
463         (generate_card_keys): New.
464         (card_edit): New command "generate".
465         * keygen.c (generate_keypair): New arg CARD_SERIALNO, removed call
466         to check_smartcard.
467         (check_smartcard,show_smartcard): Removed.
468         (show_sha1_fpr,fpr_is_zero): Removed.
470 2003-10-01  Werner Koch  <wk@gnupg.org>
472         * card-util.c: Tweaked to use this source also under 1.3. 
474 2003-09-30  Werner Koch  <wk@gnupg.org>
476         * keylist.c (print_card_serialno): New.
477         (list_keyblock_print): Use it here.
479         * card-util.c (toggle_forcesig): New.
480         (card_edit): New command "forcesig".
481         
482         * card-util.c (print_name, print_isoname): Use 0 and not LF fro
483         the max_n arg of tty_print_utf8_string2.
485         * call-agent.c (agent_scd_getattr): New.
486         (learn_status_cb): Release values before assignment so that it can
487         be used by getattr to update the structure.
488         
489         * card-util.c (change_pin): Simplified.  We now have only a PIN
490         and an Admin PIN.
492 2003-09-27  Werner Koch  <wk@gnupg.org>
494         * sign.c (do_sign): Removed disabled testcode.
496 2003-09-26  Timo Schulz  <twoaday@freakmail.de>
498         * card_status (card_status): Do not use fputs since the fp
499         parameter can be NULL. This fixes a segv.
500         
501 2003-09-24  Werner Koch  <wk@gnupg.org>
503         * card-util.c (print_isoname,card_status): Handle opt.with_colons.
504         (print_sha1_fpr_colon): New.
506 2003-09-23  Werner Koch  <wk@gnupg.org>
508         Merged most of David Shaw's changes in 1.3 since 2003-06-03.
509         
510         * Makefile.am: Include W32LIBS where appropriate.
512         * armor.c (parse_hash_header,armor_filter): Drop TIGER/192 support.
513         * g10.c (print_hex,print_mds): Ditto.
514         * pkclist.c (algo_available): Ditto.
516         * armor.c (armor_filter): Allow using --comment multiple times to
517         get multiple Comment header lines.  --no-comments resets list.
518         * options.h, g10.c (main): Ditto. Deprecate --default-comment in
519         favor of --no-comments.
521         * g10.c (main): Trim --help to commonly used options.  Remove -f.
523         * g10.c (main): Add --multifile as an alias to turn --encrypt into
524         --encrypt-files (plus --verify-files, --decrypt-files).  Error out
525         if --multifile is used with the commands that don't support it yet.
527         * encode.c (use_mdc), g10.c (main): Use RFC1991 and RFC2440
528         directly to check for MDC usability.  Do not set the force_mdc or
529         disable_mdc flags since there is no point any longer.
530         
531         * g10.c (main): Use "keyserver-url" instead of
532         "preferred-keyserver" for the sake of short and simple commands.
533         (add_keyserver_url): Clarify a few strings.  It's a
534         "preferred keyserver URL".
535         * keyedit.c (keyedit_menu): Ditto.
536         * sign.c (mk_notation_policy_etc): Ditto. 
538         * main.h, keygen.c (keygen_add_keyserver_url): Signature callback
539         for adding a keyserver URL.
540         * keyedit.c (keyedit_menu, menu_set_keyserver_url): New command to
541         set preferred keyserver to specified (or all) user IDs.
542         * build-packet.c (build_sig_subpkt): Set preferred keyserver flag
543         while building a preferred keyserver subpacket.
545         * keylist.c (show_policy_url, show_keyserver_url): URLs might be
546         UTF8.
548         * keyedit.c (menu_addrevoker): Fix leaking a few bytes.
550         * keyedit.c (show_key_with_all_names): Use list-option
551         show-long-keyid in main --edit-key display.
553         * keyedit.c (print_and_check_one_sig): Use list-option
554         show-long-keyid in --edit-key "check" function.
556         * passphrase.c (agent_send_all_options): Make use of $GPG_TTY.
558         * g10.c (main): Disable use-agent if passphrase-fd is given
559         later. Suggested by Kurt Garloff.
561         * exec.c, g10.c, gpgv.c, passphrase.c, photoid.c:
562         s/__MINGW32__/_WIN32/ to help building on native Windows
563         compilers.  Requested by Brian Gladman.  From Werner on stable
564         branch.
566         * options.h, g10.c (main): Add list-option
567         list-preferred-keyserver.
569         * keyedit.c (change_passphrase): When responding 'no' to the blank
570         passphrase question, re-prompt for a new passphrase.  This is bug
571         #202.
573         * mainproc.c (check_sig_and_print): Use two different preferred
574         keyserver displays - one if the key is not present (to tell the
575         user where to get the key), the other if it is present (to tell
576         the user where the key can be refreshed).
578         * packet.h, parse-packet.c (parse_signature): Set flag if a
579         preferred keyserver is present.
581         * keylist.c (list_keyblock_print): Show keyserver url in listings
582         with list-option show-keyserver-url.
584         * mainproc.c (check_sig_and_print): Get the uid validity before
585         printing any sig results to avoid munging the output with trustdb
586         warnings.
588         * g10.c (main): Don't include --show-keyring in --help as it is
589         deprecated.
591         * options.skel: Note that keyserver.pgp.com isn't synchronized,
592         and explain the roundrobin a bit better.
594         * sig-check.c (check_key_signature2), import.c (import_one,
595         import_revoke_cert, chk_self_sigs, delete_inv_parts,
596         collapse_uids, merge_blocks): Make much quieter during import of
597         slightly munged, but recoverable, keys. Use log_error for
598         unrecoverable import failures.
600         * keyring.c (keyring_rebuild_cache): Comment.
602         * sign.c (mk_notation_and_policy): Making a v3 signature with
603         notations or policy urls is an error, not an info (i.e. increment
604         the errorcount). Don't print the notation or policy url to stdout
605         since it can be mixed into the output stream when piping and munge
606         the stream.
608         * packet.h, sig-check.c (signature_check2, do_check,
609         do_check_messages): Provide a signing-key-is-revoked flag.  Change
610         all callers.
612         * status.h, status.c (get_status_string): New REVKEYSIG status tag
613         for a good signature from a revoked key.
615         * mainproc.c (do_check_sig, check_sig_and_print): Use it here.
617         * import.c (import_revoke_cert, merge_blocks, merge_sigs): Compare
618         actual signatures on import rather than using keyid or class
619         matching.  This does not change actual behavior with a key, but
620         does mean that all sigs are imported whether they will be used or
621         not.
623         * parse-packet.c (parse_signature): Don't give "signature packet
624         without xxxx" warnings for experimental pk algorithms.  An
625         experimental algorithm may not have a notion of (for example) a
626         keyid (i.e. PGP's x.509 stuff).
628         * options.h, g10.c (main), keylist.c (list_keyblock_print),
629         keyedit.c (print_and_check_one_sig): New "show-sig-expire"
630         list-option to show signature expiration dates (if any).
632         * options.h, g10.c (main, add_keyserver_url): Add
633         --sig-preferred-keyserver to implant a "where to get my key"
634         subpacket into a signature.
636         * sign.c (mk_notation_and_policy): Rename to
637         mk_notation_policy_etc and add preferred keyserver support for
638         signatures.
640         * keygen.c (do_add_key_flags): Don't set the certify flag for
641         subkeys.
642         (ask_algo): Provide key flags for DSA, Elgamal_e, and Elgamal
643         subkeys.
644         (generate_keypair): Provide key flags for the default DSA/Elgamal
645         keys.
647         * sig-check.c (signature_check, signature_check2,
648         check_key_signature, check_key_signature2): Allow passing NULLs
649         for unused parameters in the x2 form of each function to avoid the
650         need for dummy variables. getkey.c, mainproc.c: Change all
651         callers.
653         * trustdb.h, trustdb.c (read_trust_options): New.  Returns items
654         from the trustdb version record.
655         * keylist.c (public_key_list): Use it here for the new "tru"
656         record.
657         * gpgv.c (read_trust_options): Stub.
659         * keyedit.c (show_key_with_all_names): Use list-option
660         show-validity in --edit-key interface as well.
662         * options.h, g10.c (main), mainproc.c (check_sig_and_print): Add
663         verify-options "show-validity" and "show-long-keyid" to show
664         trustdb validity and long keyids during (file) signature
665         verification.
667         * packet.h, main.h, sig-check.c (signature_check2)
668         (check_key_signature2, do_check): If ret_pk is set, fill in the pk
669         used to verify the signature.  Change all callers in getkey.c,
670         mainproc.c, and sig-check.c.
672         * keylist.c (list_keyblock_colon): Use the ret_pk from above to
673         put the fingerprint of the signing key in "sig" records during a
674         --with-colons --check-sigs.  This requires --no-sig-cache as well
675         since we don't cache fingerprints.
677         * parse-packet.c (parse_signature): No need to reserve 8 bytes for
678         the unhashed signature cache any longer.
680         * misc.c (pct_expando): Add two new expandos - signer's
681         fingerprint (%g), and signer's primary fingerprint (%p).
683         * g10.c (main): Add --rfc2440 alias for --openpgp since in a few
684         months, they won't be the same thing.
686         * keyserver.c (parse_keyserver_uri): Accept "http" as an alias for
687         "hkp", since it is occasionally written that way.
688         (keyserver_spawn): Use ascii_isspace to avoid locale issues.
690         * keygen.c (ask_user_id): Make --allow-freeform-uid apply to the
691         email field as well as the name field, and allow mixing fields
692         when it is set.
694         * trustdb.c (validate_one_keyblock): Certifications on revoked or
695         expired uids do not count in the web of trust.
697         * signal.c (init_one_signal, pause_on_sigusr, do_block): Only use
698         sigprocmask() if we have sigset_t, and only use sigaction() if we
699         have struct sigaction.  This is for Forte c89 on Solaris which
700         seems to define only the function call half of the two pairs by
701         default.
702         (pause_on_sigusr): Typo.
703         (do_block): If we can't use sigprocmask() and sigset_t, try to get
704         the number of signals from NSIG as well as MAXSIG, and if we
705         can't, fail with an explanation.
707         * signal.c, tdbio.c: Comment out the transaction code.  It was not
708         used in this version, and was causing some build problems on
709         quasi-posix platforms (Solaris and Forte c89).
711         * keylist.c (list_keyblock_colon): Don't include validity values
712         when listing secret keys since they can be incorrect and/or
713         misleading.  This is a temporary kludge, and will be handled
714         properly in 1.9/2.0.
716         * mainproc.c (check_sig_and_print): Only show the "key available
717         from" preferred keyserver line if the key is not currently
718         present.
720         * keyedit.c (sign_uids): Do not sign expired uids without --expert
721         (same behavior as revoked uids).  Do not allow signing a user ID
722         without a self-signature.  --expert overrides.  Add additional
723         prompt to the signature level question.
724         (menu_expire): When changing expiration dates, don't replace
725         selfsigs on revoked uids since this would effectively unrevoke
726         them. There is also no point in replacing expired selfsigs.  This
727         is bug #181
729         * g10.c (add_notation_data): Make sure that only ascii is passed
730         to iscntrl.  Noted by Christian Biere.
731         * getkey.c (classify_user_id2): Replaced isspace by spacep
732         * keygen.c (ask_user_id): Ditto.
733         (get_parameter_algo): Ditto.
734         * keyedit.c (keyedit_menu): Ditto.
735         * tdbdump.c (import_ownertrust): Ditto.  s/isxdigit/hexdigitp/.
736         * revoke.c (ask_revocation_reason): 
737         * keyserver.c (keyserver_spawn): Dito.
739         * parse-packet.c (parse): Disallow old style partial length for
740         all key material packets to avoid possible corruption of keyrings.
742         * import.c (import_keys_internal): Invalidate the cache so that
743         the file descriptor gets closed.  Fixes bug reported by Juan
744         F. Codagnone.
746         * options.h, g10.c (main), main.h, keylist.c (show_keyserver_url),
747         mainproc.c (check_sig_and_print), parse-packet.c (dump_sig_subpkt,
748         parse_one_sig_subpkt, can_handle_critical): Add read-only support
749         for preferred keyserver subpackets.  They're basically policy URLs
750         with a different name.  Add a verify-option
751         "show-preferred-keyserver" to turn them on and off (on by default,
752         as per stable branch).
754         * g10.c (main): Add "--set-notation" as alias to "--notation-data"
755         this is to make things consistent with --set-policy-url meaning
756         both sigs and certs.
758         * options.h, g10.c (main), keylist.c (list_keyblock_print): Add
759         "show-validity" and "show-long-keyid" list-options.
761         * gpgv.c (get_validity, trust_value_to_string): Stubs.
763         * g10.c (main): Use SAFE_VERSION instead of VERSION in the
764         version-specific gpg.conf file so it can be overridden on RISCOS.
766         * keyedit.c (show_key_with_all_names): Fix assertion failure when
767         using toggle to see a secret key.  Reported by Maxim Britov.
770 2003-09-22  Timo Schulz  <twoaday@freakmail.de>
772         * card-util.c (card_status): Free pk in case of an error
773         and return if the card is no OpenPGP card.
774         
775 2003-09-18  Werner Koch  <wk@gnupg.org>
777         * g10.c: New command --card-edit.
778         * card-util.c (card_status): Use tty_fprintf for all output.
779         (print_sha1_fpr, print_isoname): Ditto.
780         (get_one_name,change_name, change_url, change_login,change_lang)
781         (change_sex): New; taken from keygen.c.
782         * keygen.c (smartcard_get_one_name, smartcard_change_name) 
783         (smartcard_change_url, smartcard_change_login_data) 
784         (smartcard_change_lang, smartcard_change_sex): Removed.
785         (check_smartcard): Removed most menu items.
787 2003-09-06  Werner Koch  <wk@gnupg.org>
789         * misc.c (openpgp_pk_algo_usage): Allow AUTH where SIGN is allowed.
791         * keygen.c (ask_passphrase): No need to allocated S2K in secure
792         memory.
794 2003-09-04  Werner Koch  <wk@gnupg.org>
796         * keygen.c (do_add_key_flags, parse_parameter_usage) 
797         (do_generate_keypair): Add support the proposed AUTH key flag.
798         * getkey.c (fixup_uidnode, merge_selfsigs_main) 
799         (merge_selfsigs_subkey, premerge_public_with_secret): Ditto.
800         * keylist.c (print_capabilities): Ditto.
802 2003-08-25  Timo Schulz  <twoaday@freakmail.de>
804         * pkglue.c (mpi_from_sexp): New. Used to factor out
805         some common code.
806         
807 2003-08-24  Werner Koch  <wk@gnupg.org>
809         * keygen.c (do_generate_keypair): Print a reminder to use --gen-revoke.
811 2003-08-18  Timo Schulz  <twoaday@freakmail.de>
813         * encode.c (encode_sesskey): Checked the code and removed
814         the warning since all compatibility checks with PGP succeeded.
815         * mainproc.c (symkey_decrypt_sesskey): Better check for the
816         algorithm and check the return values of some functions.
817         * mdc.c (use_mdc): Simplified.
818         
819 2003-08-07  Werner Koch  <wk@gnupg.org>
821         * pkglue.c (pk_sign): Fix last change.
822         (pk_verify): Check for valid DATA array so that we don't segv in
823         Libgcrypt.
824         (pk_verify): Ditto.
826 2003-08-06  Werner Koch  <wk@gnupg.org>
828         * pkglue.c (pk_sign): Allow signing using RSA.
830 2003-08-05  Werner Koch  <wk@gnupg.org>
832         * Makefile.am (install-data-local): Dropped check for the ancient
833         gpgm tool.
834         (bin_PROGRAMS): Renamed gpg to gpg2 and gpgv to gpgv2.  This is so
835         that it won't conflict with the current stable version of gpg.
837         * pkglue.c (pk_check_secret_key): New.
838         * seckey-cert.c (do_check): Reenable this test here again.
840         * g10.c (main): Add command -K as an alias for
841         --list-secret-keys. Command "-k" is now an alias to --list-keys.
842         Remove special treatment of -kv and -kvv.
843         (set_cmd): Ditto.
844         (main): Strip a "-cvs" suffix when testing for a version specific
845         config file.
847         * status.h, status.c, g10.c [USE_SHM_COPROCESSING]: Removed.  This
848         is not any longer available.
850 2003-07-29  Werner Koch  <wk@gnupg.org>
852         * g10.c (main): Add secmem features and set the random seed file.
853         (g10_exit): Update the random seed file.
855         * parse-packet.c (parse_signature,read_protected_v3_mpi)
856         (parse_key): Fixed use of mpi_set_opaque.
857         * keygen.c (gen_card_key): Ditto.
859 2003-07-28  Werner Koch  <wk@gnupg.org>
861         * status.c (progress_cb): Adjusted for use with Libcgrypt.
862         (set_status_fd): Register that callback.
864         * keygen.c (smartcard_change_login_data): New.
865         (smartcard_change_lang): New.
866         (smartcard_change_sex): New.
867         (check_smartcard): Add menu entries to edit the above.
868         (gen_elg,gen_dsa,gen_rsa): Reimplemented in terms of Libgcrypt.
869         (genhelp_protect, genhelp_factors, key_from_sexp): New.
870         * comment.c (make_comment_node_from_buffer): New.
871         (make_comment_node): Reimplemented in terms of above.
873 2003-07-27  Werner Koch  <wk@gnupg.org>
875         Adjusted for gcry_mpi_print and gcry_mpi_scan API change.
877 2003-07-24  Werner Koch  <wk@gnupg.org>
879         * g10.c: New command --card-status.
880         * card-util.c (card_status): New.
881         * call-agent.c (learn_status_cb): Parse more information.
883         * keylist.c (print_pubkey_info): Add FP arg for optional printing
884         to a stream.  Changed all callers.
886 2003-07-23  Werner Koch  <wk@gnupg.org>
888         * keygen.c (generate_keypair): Create an AUTHKEYTYPE entry for cards.
889         (do_generate_keypair): Abd generate the authkey.
890         (check_smartcard): Changed menu accordingly.
892 2003-07-22  Werner Koch  <wk@gnupg.org>
894         * g10.c: New command --change-pin.
895         * card-util.c: New.
896         * call-agent.c (agent_scd_change_pin): New.
897         (agent_release_card_info): New.
898         * keygen.c (check_smartcard): Use it here.
900 2003-07-16  Werner Koch  <wk@gnupg.org>
902         * export.c (parse_export_options): New option sexp-format.
903         (export_seckeys,export_secsubkeys): Check sexp-format option.
904         (do_export): Ignore armor for sexp format.
905         (do_export_stream): Handle sexp-format.
906         (write_sexp_line,write_sexp_keyparm, build_sexp_seckey): New.
907         (build_sexp): New.
909 2003-07-03  Werner Koch  <wk@gnupg.org>
911         * options.h (DBG_CIPHER): Reintroduced it. 
912         * seskey.c (encode_session_key): Debug output of the session key.
914         * pubkey-enc.c (get_it): Handle card case.
915         * call-agent.c (agent_scd_pkdecrypt): New.
916         * pkglue.c (pk_encrypt): Add RSA support.
918         * g10.c (main): Default to --use-agent.
920         * keygen.c (show_smartcard): Print info about the public key.
921         (check_smartcard): Check for existing key here.
922         (gen_card_key): And not anymore here.
923         (fpr_is_zero): New.
924         (generate_keypair): Generate both keys for a card.
925         (smartcard_change_url): Nw.
927 2003-07-02  Werner Koch  <wk@gnupg.org>
929         * seckey-cert.c (is_secret_key_protected): Let it handle mode 1002.
931 2003-07-01  Werner Koch  <wk@gnupg.org>
933         * keygen.c (gen_card_key): Obviously we should use the creation
934         date received from SCDAEMON, so that the fingerprints will match.
935         * sign.c (do_sign): Pass the serialno to the sign code.
936         * keyid.c (serialno_and_fpr_from_sk): New.
938 2003-06-30  Werner Koch  <wk@gnupg.org>
940         * call-agent.h (agent_card_info_s): Add field serialno.
941         * call-agent.c (store_serialno): New.
942         (learn_status_cb): Store the serial number.
943         * keygen.c (gen_card_key): Store the serial number
944         (check_smartcard): New argument to return the serial number.
945         (generate_keypair): Get the serial number from check_smartcard and
946         store it as a parameter.
947         * parse-packet.c (parse_key): Use the protect.iv field to store the
948         serial number.
949         * build-packet.c (do_secret_key): Write the serial number.
951 2003-06-27  Werner Koch  <wk@gnupg.org>
953         * seckey-cert.c (check_secret_key): Bypass the unprotection for
954         mode 1002.
955         * sign.c (do_sign): Handle card case (i.e. mode 1002).
957 2003-06-26  Werner Koch  <wk@gnupg.org>
959         * build-packet.c (do_secret_key): Implement special protection
960         mode 1002.
961         * parse-packet.c (parse_key): Likewise.
963         * keygen.c (smartcard_gen_key): New.
964         * call-agent.c (agent_scd_setattr): New.
966 2003-06-24  Werner Koch  <wk@gnupg.org>
968         * Makefile.am: Removed signal.c
970         * g10.c (emergency_cleanup): New.
971         (main): Use gnupg_init_signals and register malloc for assuan.
973 2003-06-23  Werner Koch  <wk@gnupg.org>
975         * keyid.c (do_fingerprint_md): Made it work again.
977 2003-06-19  Werner Koch  <wk@gnupg.org>
979         Fixed all "==" comparisons against error code constants to use
980         gpg_err_code().
982         * import.c (import_secret_one): 
983         (import_revoke_cert): 
984         (chk_self_sigs): 
986         * misc.c (openpgp_md_map_name): Check also for the Hx format.
987         (openpgp_cipher_map_name): Check also for the Sx format.
988         (pubkey_get_npkey): Adjusted for changed gcrypt API.
989         (pubkey_get_nskey): Ditto.
990         (pubkey_get_nsig): Ditto.
991         (pubkey_get_nenc): Ditto.
993 2003-06-18  Werner Koch  <wk@gnupg.org>
995         Finished the bulk of changes for gnupg 1.9.  This included
996         switching to libgcrypt functions, using shared error codes from
997         libgpg-error, replacing the old functions we used to have in
998         ../util by those in ../jnlib and ../common, renaming the malloc
999         functions and a couple of types.  Note, that not all changes are
1000         listed below becuause they are too similar and done at far too
1001         many places.  As of today the code builds using the current
1002         libgcrypt from CVS but it is very unlikely that it actually works.
1003         
1004         * sig-check.c (cmp_help): Removed.  Was never used.
1006         * pkglue.c: New. Most stuff taken from gnupg 1.1.2.
1007         * pkglue.h: New.
1009         * misc.c (pull_in_libs): Removed.
1011         * keygen.c (count_chr): New.
1012         (ask_user_id): Removed faked RNG support.
1014         * misc.c (openpgp_md_map_name,openpgp_cipher_map_name)
1015         (openpgp_pk_map_name): New.
1017         * skclist.c (build_sk_list): Removed faked RNG support.
1018         (is_insecure): Removed.
1020         * comment.c (make_mpi_comment_node): Use gcry MPI print function.
1022         * keyid.c (v3_keyid): New.
1024         * misc.c (mpi_write,mpi_write_opaque,mpi_read,mpi_read_opaque)
1025         (mpi_print): New.  Taken from gnupg 1.1.2.
1026         (checksum_mpi): Replaced by implementation from 1.1.2.
1028         * g10.c (my_strusage): Renamed from strusage and return NULL
1029         instead calling a default function.
1030         (add_to_strlist2): New.  Taken from ../util/strgutil.c of gnupg 1.2.
1032         * plaintext.c (handle_plaintext): New arg CREATE_FILE to cope with
1033         the fact that gpg-error does not have this error code anymore.
1035         * mainproc.c (symkey_decrypt_sesskey): Ditto.
1037         * seskey.c (make_session_key): Adjusted for use with libgcrypt.
1038         (encode_session_key): Ditto.
1039         (do_encode_md): Ditto.
1040         (encode_md_value): Ditto.
1042         * keyring.c: Use libgpg-error instead of READ_ERROR etc.
1044         * g10.c: Adjusted all algorithm name/id mapping functions.
1045         (set_debug): Pass MPI and CRYPTO debug values to libgcrypt.
1047         * Makefile.am (INCLUDES): Define LOCALEDIR and the default error
1048         source.
1050         * g10.c (i18n_init): s/G10_LOCALEDIR/LOCALEDIR/.
1052         Renamed m_alloc et al to xmalloc et al.
1053         s/g10_errstr/gpg_strerror/
1054         s/MPI/gcry_mpi_t/
1055         Adjusted all md_open calls to the libgcrypt API.
1056         
1057         * build-packet.c (do_comment): Return error code from iobuf write
1058         function.
1059         (do_user_id): Ditto.
1060         (do_public_key): Ditto.
1062         * Makefile.am: Add new files, link gpg with libgpg-error.
1063         * g10.c, options.h: New option --agent-program.
1064         * call-agent.c: New.
1065         * gpg.h, call-agent.h: New.
1067 2003-06-03  David Shaw  <dshaw@jabberwocky.com>
1069         * options.h, g10.c (main), keylist.c (list_keyblock_print): Add
1070         "show-validity" and "show-long-keyid" list-options.
1072         * gpgv.c (get_validity, trust_value_to_string): Stubs.
1074         * g10.c (main): Use SAFE_VERSION instead of VERSION in the
1075         version-specific gpg.conf file so it can be overridden on RISCOS.
1077 2003-06-01  David Shaw  <dshaw@jabberwocky.com>
1079         * g10.c (main), keylist.c (show_policy_url, show_notation),
1080         mainproc.c (check_sig_and_print): Emulate the old policy and
1081         notation behavior (display by default).  Send to status-fd whether
1082         it is displayed on the screen or not.
1084         * g10.c (main): Since we now have some options in devel that won't
1085         work in a stable branch gpg.conf file, try for a version-specific
1086         gpg.conf-VERSION file before falling back to gpg.conf.
1088         * main.h, options.h: Move various option flags to options.h.
1090 2003-05-31  David Shaw  <dshaw@jabberwocky.com>
1092         * mainproc.c (check_sig_and_print), main.h, keylist.c
1093         (show_policy, show_notation): Collapse the old print_notation_data
1094         into show_policy() and show_notation() so there is only one
1095         function to print notations and policy URLs.
1097         * options.h, main.h, g10.c (main), keyedit.c
1098         (print_and_check_one_sig), keylist.c (list_one,
1099         list_keyblock_print), pkclist.c (do_edit_ownertrust), sign.c
1100         (mk_notation_and_policy): New "list-options" and "verify-options"
1101         commands.  These replace the existing
1102         --show-photos/--no-show-photos,
1103         --show-notation/--no-show-notation,
1104         --show-policy-url/--no-show-policy-url, and --show-keyring
1105         options.  The new method is more flexible since a user can specify
1106         (for example) showing photos during sig verification, but not in
1107         key listings.  The old options are emulated.
1109         * main.h, misc.c (parse_options): New general option line
1110         parser. Fix the bug in the old version that did not handle report
1111         syntax errors after a valid entry.
1113         * import.c (parse_import_options), export.c
1114         (parse_export_options): Call it here instead of duplicating the
1115         code.
1117 2003-05-30  David Shaw  <dshaw@jabberwocky.com>
1119         * keylist.c (list_one): Don't show the keyring filename when in
1120         --with-colons mode.  Actually translate "Keyring" string.
1122         * mainproc.c (proc_tree): We can't currently handle multiple
1123         signatures of different classes or digests (we'd pretty much have
1124         to run a different hash context for each), but if they are all the
1125         same, make an exception.  This is Debian bug #194292.
1127         * sig-check.c (check_key_signature2): Make string translatable.
1129         * packet.h, getkey.c (fixup_uidnode): Mark real primary uids
1130         differently than assumed primaries.
1132         * keyedit.c (no_primary_warning): Use the differently marked
1133         primaries here in a new function to warn when an --edit-key
1134         command might rearrange the self-sig dates enough to change which
1135         uid is primary.
1136         (menu_expire, menu_set_preferences): Use no_primary_warning()
1137         here.
1139         * Makefile.am: Use @DLLIBS@ for -ldl.
1141 2003-05-26  David Shaw  <dshaw@jabberwocky.com>
1143         * getkey.c (premerge_public_with_secret): Made "no secret subkey
1144         for" warning a verbose item and translatable. (From wk on stable
1145         branch)
1147         * sig-check.c (check_key_signature2): Made "no subkey for subkey
1148         binding packet" a verbose item instead of a !quiet one.  There are
1149         too many garbled keys out in the wild. (From wk on stable branch)
1151         * filter.h: Remove const from WHAT. (From wk on stable branch)
1153         * progress.c (handle_progress): Store a copy of
1154         NAME. (progress_filter): Release WHAT, make sure not to print a
1155         NULL WHAT. (From wk on stable branch)
1157         * openfile.c (open_sigfile): Adjust free for new progress
1158         semantics. (From wk on stable branch)
1160         * plaintext.c (ask_for_detached_datafile): Don't dealloc
1161         pfx->WHAT. (From wk on stable branch)
1163         * seckey-cert.c (do_check): Issue the RSA_OR_IDEA status when the
1164         cipher algo is IDEA to make it easier to track down the
1165         problem. (From twoaday on stable branch)
1166         
1167 2003-05-24  David Shaw  <dshaw@jabberwocky.com>
1169         * armor.c, g10.c, kbnode.c, misc.c, pkclist.c, sign.c,
1170         build-packet.c, getkey.c, keydb.c, openfile.c, plaintext.c,
1171         status.c, gpgv.c, keygen.c, options.h, sig-check.c, tdbio.h,
1172         encode.c, mainproc.c, parse-packet.c, signal.c, textfilter.c: Edit
1173         all preprocessor instructions to remove whitespace before the '#'.
1174         This is not required by C89, but there are some compilers out
1175         there that don't like it.
1177 2003-05-21  David Shaw  <dshaw@jabberwocky.com>
1179         * trustdb.h, trustdb.c (is_disabled), gpgv.c (is_disabled): Rename
1180         is_disabled to cache_disabled_value, which now takes a pk and not
1181         just the keyid. This is for speed since there is no need to
1182         re-fetch a key when we already have that key handy.  Cache the
1183         result of the check so we don't need to hit the trustdb more than
1184         once.
1185         
1186         * getkey.c (skip_disabled): New function to get a pk and call
1187         is_disabled on it. (key_byname): Use it here.
1188         
1189         * packet.h, getkey.c (skip_disabled), keylist.c
1190         (print_capabilities): New "pk_is_disabled" macro to retrieve the
1191         cached disabled value if available, and fill it in via
1192         cache_disabled_value if not available.
1194         * trustdb.c (get_validity): Cache the disabled value since we have
1195         it handy and it might be useful later.
1197         * parse-packet.c (parse_key): Clear disabled flag when parsing a
1198         new key.  Just in case someone forgets to clear the whole key.
1200         * getkey.c (merge_selfsigs_main): Add an "if all else fails" path
1201         for setting a single user ID primary when there are multiple set
1202         primaries all at the same second, or no primaries set and the most
1203         recent user IDs are at the same second, or no signed user IDs at
1204         all. This is arbitrary, but deterministic.
1206         * exec.h, photoid.h: Add copyright message.
1208         * keylist.c (list_keyblock_print): Don't dump attribs for
1209         revoked/expired/etc uids for non-colon key listings.  This is for
1210         consistency with --show-photos.
1212         * main.h, keylist.c (dump_attribs), mainproc.c
1213         (check_sig_and_print): Dump attribs if --attrib-fd is set when
1214         verifying signatures.
1215         
1216         * g10.c (main): New --gnupg option to disable the various
1217         --openpgp, --pgpX, etc. options.  This is the same as --no-XXXX
1218         for those options.
1220         * revoke.c (ask_revocation_reason): Clear old reason if user
1221         elects to repeat question.  This is bug 153.
1223         * keyedit.c (sign_uids): Show keyid of the key making the
1224         signature.
1226 2003-05-21  Werner Koch  <wk@gnupg.org>
1228         * progress.c (handle_progress)
1229         * sign.c (write_plaintext_packet)
1230         * encode.c (encode_simple,encode_crypt): Make sure that a filename
1231         of "-" is considered to be stdin so that iobuf_get_filelength
1232         won't get called.  This fixes bug 156 reported by Gregery Barton.
1234 2003-05-02  David Shaw  <dshaw@jabberwocky.com>
1236         * packet.h, build-packet.c (build_sig_subpkt), export.c
1237         (do_export_stream), import.c (remove_bad_stuff, import),
1238         parse-packet.c (dump_sig_subpkt, parse_one_sig_subpkt): Remove
1239         vestigal code for the old sig cache subpacket.  This wasn't
1240         completely harmless as it caused subpacket 101 to disappear on
1241         import and export.
1243         * options.h, armor.c, cipher.c, g10.c, keyedit.c, pkclist.c,
1244         sign.c, encode.c, getkey.c, revoke.c: The current flags for
1245         different levels of PGP-ness are massively complex.  This is step
1246         one in simplifying them. No functional change yet, just use a
1247         macro to check for compliance level.
1249         * sign.c (sign_file): Fix bug that causes spurious compression
1250         preference warning.
1252         * sign.c (clearsign_file): Fix bug that prevents proper warning
1253         message from appearing when clearsigning in --pgp2 mode with a
1254         non-v3 RSA key.
1256         * main.h, misc.c (compliance_option_string, compliance_string,
1257         compliance_failure), pkclist.c (build_pk_list), sign.c (sign_file,
1258         clearsign_file), encode.c (encode_crypt,
1259         write_pubkey_enc_from_list): New functions to put the "this
1260         message may not be usable...." warning in one place.
1262         * options.h, g10.c (main): Part two of the simplification.  Use a
1263         single enum to indicate what we are compliant to (1991, 2440,
1264         PGPx, etc.)
1266         * g10.c (main): Show errors for failure in export, send-keys,
1267         recv-keys, and refresh-keys.
1269         * options.h, g10.c (main): Give algorithm warnings for algorithms
1270         chosen against the --pgpX and --openpgp rules.
1272         * keydb.h, pkclist.c (algo_available): Make TIGER192 invalid in
1273         --openpgp mode.
1275         * sign.c (sign_file), pkclist.c (algo_available): Allow passing a
1276         hint of 0.
1278 2003-05-01  David Shaw  <dshaw@jabberwocky.com>
1280         * tdbio.c (create_version_record): Only create new trustdbs with
1281         TM_CLASSIC or TM_PGP.
1283         * trustdb.h, trustdb.c (trust_string, get_ownertrust_string,
1284         get_validity_string, ask_ownertrust, validate_keys), pkclist.c
1285         (do_edit_ownertrust): Rename trust_string to trust_value_to_string
1286         for naming consistency.
1288         * trustdb.h, trustdb.c (string_to_trust_value): New function to
1289         translate a string to a trust value.
1291         * g10.c (main): Use string_to_trust_value here for
1292         --force-ownertrust.
1293         
1294         * options.h, g10.c (main), trustdb.c (trust_model_string,
1295         init_trustdb, check_trustdb, update_trustdb, get_validity,
1296         validate_one_keyblock): An "OpenPGP" trust model is misleading
1297         since there is no official OpenPGP trust model.  Use "PGP"
1298         instead.
1300 2003-04-30  David Shaw  <dshaw@jabberwocky.com>
1302         * build-packet.c (build_sig_subpkt): Comments.
1304         * exec.c (exec_write): Cast NULL to void* to properly terminate
1305         varargs list.
1307         * keyedit.c (show_key_with_all_names): Just for safety, catch an
1308         invalid pk algorithm.
1310         * sign.c (make_keysig_packet): Crucial that the call to mksubpkt
1311         comes LAST before the calls to finalize the sig as that makes it
1312         possible for the mksubpkt function to get a reliable pointer to
1313         the subpacket area.
1315         * pkclist.c (do_we_trust_pre): If an untrusted key was chosen by a
1316         particular user ID, use that ID as the one to ask about when
1317         prompting whether to use the key anyway.
1318         (build_pk_list): Similar change here when adding keys to the
1319         recipient list.
1321         * trustdb.c (update_validity): Fix bug that prevented more than
1322         one validity record per trust record.
1323         (get_validity): When retrieving validity for a (user) supplied
1324         user ID, return the validity for that user ID only, and do not
1325         fall back to the general key validity.
1326         (validate_one_keyblock): Some commentary on whether
1327         non-self-signed user IDs belong in the web of trust (arguably,
1328         they do).
1330 2003-04-27  David Shaw  <dshaw@jabberwocky.com>
1332         * g10.c (main): Add --no-textmode.
1334         * export.c (do_export_stream), keyedit.c (show_key_with_all_names,
1335         menu_addrevoker), mainproc.c (check_sig_and_print), photoid.c
1336         (show_photos), sign.c (mk_notation_and_policy), trustdb.c
1337         (get_validity, reset_trust_records, validate_keys): Make some
1338         strings translatable.
1340         * mainproc.c (check_sig_and_print): Show digest algorithm and sig
1341         class when verifying a sig with --verbose on, and add version, pk
1342         and hash algorithms and sig class to VALIDSIG.
1343         
1344         * parse-packet.c (enum_sig_subpkt): Make a warning message a
1345         --verbose warning message since we don't need to warn every time
1346         we see an unknown critical (we only need to invalidate the
1347         signature).
1349         * trustdb.c (init_trustdb): Check the trustdb options even with
1350         TM_AUTO since the auto may become TM_CLASSIC or TM_OPENPGP.
1352 2003-04-26  David Shaw  <dshaw@jabberwocky.com>
1354         * sign.c (do_sign): Show the hash used when making a signature in
1355         verbose mode.
1357         * tdbio.h, tdbio.c (tdbio_read_model): New function to return the
1358         trust model used in a given trustdb.
1360         * options.h, g10.c (main), trustdb.c (init_trustdb, check_trustdb,
1361         update_trustdb): Use tdbio_read_model to implement an "auto" trust
1362         model which is set via the trustdb.
1364 2003-04-23  David Shaw  <dshaw@jabberwocky.com>
1366         * import.c (import_revoke_cert): Remove ultimate trust when
1367         revoking an ultimately trusted key.
1369         * keyedit.c (sign_uids): Allow replacing expired signatures.
1370         Allow duplicate signatures with --expert.
1372         * pkclist.c (check_signatures_trust): Don't display a null
1373         fingerprint when checking a signature with --always-trust enabled.
1375         * filter.h (progress_filter_context_t), progress.c
1376         (handle_progress), plaintext.c (ask_for_detached_datafile,
1377         hash_datafiles): Fix compiler warnings.  Make "what" constant.
1379         * build-packet.c (do_plaintext): Do not create invalid literal
1380         packets with >255-byte names.
1382 2003-04-15  Werner Koch  <wk@gnupg.org>
1384         * Makefile.am (AM_CFLAGS): Make use of AM_CFLAGS and AM_LDFLAGS.
1386         * g10.c, options.h: New option --enable-progress-filter.
1387         * progress.c (handle_progress): Make use of it.
1389 2003-04-15  Marcus Brinkmann  <marcus@g10code.de>
1391         * progress.c: New file.
1392         * Makefile.am (common_source): Add progress.c.
1393         * filter.h (progress_filter_context_t): New type.
1394         (progress_filter, handle_progress): New prototypes.
1395         * main.h (open_sigfile): New argument for prototype.
1396         * openfile.c (open_sigfile): New argument to install progress
1397         filter.
1398         * encode.c (encode_simple): New variable PFX.  Register
1399         progress filter.  Install text_filter after that.
1400         (encode_crypt): Likewise.
1401         * sign.c (sign_file): Likewise.
1402         (clearsign_file): Likewise.
1403         * decrypt.c (decrypt_message): Likewise.
1404         (decrypt_messages): Likewise.
1405         * verify.c (verify_signatures): Likewise.
1406         (verify_one_file): Likewise.
1407         * plaintext.c (hash_datafiles): Likewise.
1408         (ask_for_detached_datafile): Likewise.
1410 2003-04-10  Werner Koch  <wk@gnupg.org>
1412         * passphrase.c (read_passphrase_from_fd): Do a dummy read if the
1413         agent is to be used.  Noted by Ingo Klöcker.
1414         (agent_get_passphrase): Inhibit caching when we have no
1415         fingerprint.  This is required for key generation as well as for
1416         symmetric only encryption.
1418         * passphrase .c (agent_get_passphrase): New arg CANCELED.
1419         (passphrase_to_dek): Ditto.  Passed to above.  Changed all
1420         callers to pass NULL.
1421         * seckey-cert.c (do_check): New arg CANCELED.
1422         (check_secret_key): Terminate loop when canceled.
1424         * keyedit.c (change_passphrase): Pass ERRTEXT untranslated to
1425         passphrase_to_dek and translate where appropriate.
1426         * seckey-cert.c (check_secret_key): Ditto.
1427         * keygen.c (ask_passphrase): Ditto.
1428         * passphrase.c (agent_get_passphrase): Translate the TRYAGAIN_TEXT.
1429         Switch the codeset to utf-8.
1431 2003-04-09  Werner Koch  <wk@gnupg.org>
1433         * decrypt.c (decrypt_messages): Fixed error handling; the function
1434         used to re-loop with same file after an error.  Reported by Joseph
1435         Walton.
1437 2003-04-08  David Shaw  <dshaw@jabberwocky.com>
1439         * main.h, g10.c (main), import.c (parse_import_options,
1440         fix_pks_corruption): It's really PKS corruption, not HKP
1441         corruption.  Keep the old repair-hkp-subkey-bug command as an
1442         alias.
1444         * g10.c (main): Rename --no-version to --no-emit-version for
1445         consistency.  Keep --no-version as an alias.
1447 2003-04-04  David Shaw  <dshaw@jabberwocky.com>
1449         * pkclist.c (algo_available): PGP 8 can use the SHA-256 hash.
1451         * sign.c (sign_file, clearsign_file, sign_symencrypt_file): Remove
1452         unused code.
1454 2003-04-01  Werner Koch  <wk@gnupg.org>
1456         * mainproc.c (check_sig_and_print): Add primary key fpr to VALIDSIG
1457         status.
1459 2003-03-24  David Shaw  <dshaw@jabberwocky.com>
1461         * keydb.h: Err on the side of making an unknown signature a SIG
1462         rather than a CERT.
1464         * import.c (delete_inv_parts): Discard any key signatures that
1465         aren't key types (i.e. 0x00, 0x01, etc.)
1467         * g10.c (main): Add deprecated option warning for
1468         --list-ownertrust.  Add --compression-algo alias for
1469         --compress-algo.  Change --version output strings to match
1470         "showpref" strings, and make translatable.
1472         * status.c (do_get_from_fd): Accept 'y' as well as 'Y' for
1473         --command-fd boolean input.
1475         * trustdb.c: Fix typo (DISABLE_REGEXP -> DISABLE_REGEX)
1477         * keyedit.c (show_key_with_all_names_colon): Show no-ks-modify
1478         flag.
1480 2003-03-11  David Shaw  <dshaw@jabberwocky.com>
1482         * options.h, g10.c (main), keyserver.c (kopts): Add "try-dns-srv"
1483         keyserver option.  Defaults to on.
1485         * passphrase.c (agent_get_passphrase): Fix memory leak with
1486         symmetric messages.  Fix segfault with symmetric messages.  Fix
1487         incorrect prompt with symmetric messages.
1489 2003-03-10  Werner Koch  <wk@gnupg.org>
1491         * compress.c (init_uncompress): Use a 15 bit window size so that
1492         the output of implementations which don't run for PGP 2
1493         compatibility won't get garbled.
1495 2003-03-04  David Shaw  <dshaw@jabberwocky.com>
1497         * trustdb.c (validate_keys): Mask the ownertrust when building the
1498         list of fully valid keys so that disabled keys are still counted
1499         in the web of trust.
1500         (get_ownertrust_with_min): Do the same for the minimum ownertrust
1501         calculation.
1503         * parse-packet.c (dump_sig_subpkt): Show the notation names for
1504         not-human-readable notations.  Fix cosmetic off-by-one length
1505         counter.
1507         * options.skel: Add explantion and commented-out
1508         "no-mangle-dos-filenames".
1510         * mainproc.c (proc_encrypted): Make string translatable.
1512         * keyserver.c (keyserver_spawn): Quote ':', '%', and any 8-bit
1513         characters in the uid strings sent to the keyserver helper.
1515         * keyring.c (keyring_rebuild_cache): Lock the keyring while
1516         rebuilding the signature caches to prevent another gpg from
1517         tampering with the temporary copy.
1519         * keygen.c (keygen_set_std_prefs): Include AES192 and AES256 in
1520         default prefs.
1522         * keyedit.c (show_prefs): Make strings translatable.
1524         * keydb.c: Double the maximum number of keyrings to 40.
1526         * gpgv.c (main): Fix bug #113 - gpgv should accept the
1527         --ignore-time-conflict option.
1529         * g10.c (main): --openpgp disables --pgpX.  Double the amount of
1530         secure memory to 32k (keys are getting bigger these days).
1532         * Makefile.am: Makefile.am: Use @CAPLIBS@ to link in -lcap if we
1533         are using capabilities.
1535 2003-02-26  David Shaw  <dshaw@jabberwocky.com>
1537         * keyserver.c (keyserver_spawn): Include various pieces of
1538         information about the key in the data sent to the keyserver
1539         helper.  This allows the helper to use it in instructing a remote
1540         server which may not have any actual OpenPGP smarts in parsing
1541         keys.
1543         * main.h, export.c (export_pubkeys_stream, do_export_stream): Add
1544         ability to return only the first match in an exported keyblock for
1545         keyserver usage.  This should be replaced at some point with a
1546         more flexible solution where each key can be armored seperately.
1548 2003-02-22  David Shaw  <dshaw@jabberwocky.com>
1550         * sign.c (sign_file): Do not push textmode filter onto an unopened
1551         IOBUF (segfault).  Noted by Marcus Brinkmann.  Push and
1552         reinitialize textmode filter for each file in a multiple file
1553         list.
1555         * packet.h, getkey.c (fixup_uidnode), keyedit.c (show_prefs): Set
1556         and show the keyserver no-modify flag.
1558         * keygen.c (add_keyserver_modify): New.
1559         (keygen_upd_std_prefs): Call it here.
1560         (keygen_set_std_prefs): Accept "ks-modify" and "no-ks-modify" as
1561         prefs to set and unset keyserver modify flag.
1563         * g10.c (main): Accept "s1" in addition to "idea" to match the
1564         other ciphers.
1566         * main.h, misc.c (idea_cipher_warn): We don't need this if IDEA
1567         has been disabled.
1569 2003-02-21  David Shaw  <dshaw@jabberwocky.com>
1571         * keygen.c (keygen_set_std_prefs): Don't put AES or CAST5 in
1572         default prefs if they are disabled.
1574         * g10.c (main): Use 3DES instead of CAST5 if we don't have CAST5
1575         support.  Use 3DES for the s2k cipher in --openpgp mode.
1576         (print_mds): #ifdef all of the optional digest algorithms.
1578 2003-02-12  David Shaw  <dshaw@jabberwocky.com>
1580         * keydb.h, getkey.c (classify_user_id, classify_user_id2): Make
1581         'exact' a per-desc item.  Merge into one function since
1582         'force_exact' is no longer needed.
1583         (key_byname): Use new classify_user_id function, and new exact
1584         flag in KEYDB_SEARCH_DESC.
1586         * keyring.h, keyring.c (keyring_search): Return an optional index
1587         to show which KEYDB_SEARCH_DESC was the matching one.
1589         * keydb.h, keydb.c (keydb_search): Rename to keydb_search2, and
1590         pass the optional index to keyring_search.  Add a macro version of
1591         keydb_search that calls this new function.
1593         * export.c (do_export_stream): If the keyid! syntax is used,
1594         export only that specified key.  If the key in question is a
1595         subkey, export the primary plus that subkey only.
1597 2003-02-11  David Shaw  <dshaw@jabberwocky.com>
1599         * exec.c (set_exec_path): Add debugging line.
1601         * g10.c (print_hex, print_mds): Print long hash strings a lot
1602         neater.  This assumes at least an 80-character display, as there
1603         are a few other similar assumptions here and there.  Users who
1604         need unformatted hashes can still use with-colons.  Check that
1605         SHA384 and 512 are available before using them as they are no
1606         longer always available.
1608         * Makefile.am: Use a local copy of libexecdir along with @PACKAGE@
1609         as GNUPG_LIBEXECDIR so it can be easily overridden at make time.
1611 2003-02-04  David Shaw  <dshaw@jabberwocky.com>
1613         * armor.c (parse_hash_header, armor_filter): Accept the new SHAs
1614         in the armor Hash: header.
1616         * g10.c (print_hex): Print long hash strings a little neater.
1617         (print_mds): Add the new SHAs to the hash list.
1619 2003-02-02  David Shaw  <dshaw@jabberwocky.com>
1621         * keyedit.c (menu_revuid): Properly handle a nonselfsigned uid on
1622         a v4 key (treat as a v4 revocation).
1624         * import.c (print_import_check): Do not re-utf8 convert user IDs.
1626 2003-01-27  David Shaw  <dshaw@jabberwocky.com>
1628         * mainproc.c (list_node): Show signature expiration date in
1629         with-colons sig records.
1631         * keylist.c (list_keyblock_colon), mainproc.c (list_node): Show
1632         trust sig information in with-colons sig records.
1634 2003-01-16  David Shaw  <dshaw@jabberwocky.com>
1636         * g10.c (add_group): Trim whitespace after a group name so it does
1637         not matter where the user puts the = sign.
1639         * options.skel: Comment out the first three lines in case someone
1640         manually copies the skel file to their homedir.
1642         * sign.c (clearsign_file): Only use pgp2mode with v3 keys and
1643         MD5. This matches what we do when decoding such messages and
1644         prevents creating a message (v3+RIPEMD/160) that we can't verify.
1646         * sig-check.c (signature_check2): Use G10ERR_GENERAL as the error
1647         for signature digest conflict.  BAD_SIGN implies that a signature
1648         was checked and we may try and print out a user ID for a key that
1649         doesn't exist.
1651 2003-01-15  David Shaw  <dshaw@jabberwocky.com>
1653         * trustdb.c (init_trustdb, get_validity): Don't use a changed
1654         trust model to indicate a dirty trustdb, and never auto-rebuild a
1655         dirty trustdb with the "always" trust model.
1657         * g10.c (add_group): Last commit missed the \t ;)
1659 2003-01-14  David Shaw  <dshaw@jabberwocky.com>
1661         * packet.h, parse-packet.c (setup_user_id), free-packet.c
1662         (free_user_id), keydb.h, keyid.c (namehash_from_uid): New function
1663         to rmd160-hash the contents of a user ID packet and cache it in
1664         the uid object.
1666         * keylist.c (list_keyblock_colon): Use namehash in field 8 of
1667         uids.  Show dates for creation (selfsig date), and expiration in
1668         fields 6 and 7.
1670         * trustdb.c (get_validity, get_validity_counts, update_validity):
1671         Use new namehash function rather than hashing it locally.
1673 2003-01-14  Werner Koch  <wk@gnupg.org>
1675         * g10.c (add_group): Fixed group parsing to allow more than one
1676         delimiter in a row and also allow tab as delimiter.
1678 2003-01-12  David Shaw  <dshaw@jabberwocky.com>
1680         * tdbio.c (tdbio_set_dbname): Fix assertion failure with
1681         non-fully-qualified trustdb names.
1683 2003-01-11  David Shaw  <dshaw@jabberwocky.com>
1685         * trustdb.c (get_validity_info, get_ownertrust_info,
1686         trust_letter): Simplify by returning a ? for error directly.
1688         * keyedit.c (show_key_with_all_names): Use get_validity_string and
1689         get_ownertrust_string to show full word versions of trust
1690         (i.e. "full" instead of 'f').
1692         * trustdb.h, trustdb.c (get_ownertrust_string,
1693         get_validity_string): Same as get_ownertrust_info, and
1694         get_validity_info, except returns a full string.
1696         * trustdb.c (get_ownertrust_with_min): New.  Same as
1697         'get_ownertrust' but takes the min_ownertrust value into account.
1699 2003-01-10  David Shaw  <dshaw@jabberwocky.com>
1701         * armor.c (armor_filter): Comment about PGP's end of line tab
1702         problem.
1704         * trustdb.h, trustdb.c (trust_letter): Make
1705         static. (get_ownertrust_info, get_validity_info): Don't mask the
1706         trust level twice.
1708         * trustdb.h, gpgv.c, trustdb.c (get_validity, get_validity_info),
1709         keylist.c (list_keyblock_colon), keyedit.c
1710         (show_key_with_all_names_colon, menu_revuid): Pass a user ID in
1711         rather than a namehash, so we only have to do the hashing in one
1712         place.
1714         * packet.h, pkclist.c (build_pk_list), free-packet.c
1715         (release_public_key_parts): Remove unused namehash element for
1716         public keys.
1718 2003-01-07  David Shaw  <dshaw@jabberwocky.com>
1720         * keygen.c (keygen_set_std_prefs): Warn when setting an IDEA
1721         preference when IDEA is not available.
1723 2003-01-06  David Shaw  <dshaw@jabberwocky.com>
1725         * trustdb.c (get_validity_info): 'd' for disabled is not a
1726         validity value any more.
1728         * packet.h, tdbio.h, tdbio.c (tdbio_read_record,
1729         tdbio_write_record), trustdb.c (update_validity): Store temporary
1730         full & marginal counts in the trustdb.
1731         (clear_validity, get_validity_counts): Return and clear temp
1732         counts.
1733         (store_validation_status): Keep track of which keyids have been
1734         stored.
1735         (validate_one_keyblock, validate_key_list): Use per-uid copies of
1736         the full & marginal counts so they can be recalled for multiple
1737         levels.
1738         (validate_keys): Only use unused keys for each new round.
1739         (reset_unconnected_keys): Rename to reset_trust_records, and only
1740         skip specifically excluded records.
1742         * keylist.c (print_capabilities): Show 'D' for disabled keys in
1743         capabilities section.
1745         * trustdb.c (is_disabled): Remove incorrect comment.
1747 2003-01-03  David Shaw  <dshaw@jabberwocky.com>
1749         * import.c (import_one): Only do the work to create the status
1750         display for interactive import if status is enabled.
1752         * keyring.c (keyring_search): skipfnc didn't work properly with
1753         non-keyid searches.  Noted by Stefan Bellon.
1755         * getkey.c (merge_selfsigs_main): Remove some unused code and make
1756         sure that the pk selfsigversion member accounts for 1F direct
1757         sigs.
1759 2003-01-02  Werner Koch  <wk@gnupg.org>
1761         * keydb.c (keydb_add_resource): Don't assume that try_make_homedir
1762         terminates but check again for the existence of the directory and
1763         continue then.
1764         * openfile.c (copy_options_file): Print a warning if the skeleton
1765         file has active options.
1767 2002-12-29  David Shaw  <dshaw@jabberwocky.com>
1769         * getkey.c (merge_selfsigs_main), main.h, sig-check.c
1770         (check_key_signature2): Pass the ultimately trusted pk directly to
1771         check_key_signature2 to avoid going through the key selection
1772         mechanism.  This prevents a deadly embrace when two keys without
1773         selfsigs each sign the other.
1775 2002-12-27  David Shaw  <dshaw@jabberwocky.com>
1777         * keyserver.c (keyserver_refresh): Don't print the "refreshing..."
1778         line if there are no keys to refresh or if there is no keyserver
1779         set.
1781         * getkey.c (merge_selfsigs_main): Any valid user ID should make a
1782         key valid, not just the last one.  This also fixes Debian bug
1783         #174276.
1785 2002-12-27  Stefan Bellon  <sbellon@sbellon.de>
1787         * import.c (print_import_check): Changed int to size_t.
1789 2002-12-27  David Shaw  <dshaw@jabberwocky.com>
1791         * keyedit.c (keyedit_menu, menu_revuid): Add "revuid" feature to
1792         revoke a user ID.  This is the same as issuing a revocation for
1793         the self-signature, but a much simpler interface to do it.
1795 2002-12-26  David Shaw  <dshaw@jabberwocky.com>
1797         * keydb.h, getkey.c (key_byname): Flag to enable or disable
1798         including disabled keys.  Keys specified via keyid (i.e. 0x...)
1799         are always included.
1801         * getkey.c (get_pubkey_byname, get_seckey_byname2,
1802         get_seckey_bynames), keyedit.c (keyedit_menu, menu_addrevoker):
1803         Include disabled keys in these functions.
1805         * pkclist.c (build_pk_list): Do not include disabled keys for -r
1806         or the key prompt.  Do include disabled keys for the default key
1807         and --encrypt-to.
1809         * trustdb.h, trustdb.c (is_disabled): New skipfnc for skipping
1810         disabled keys.
1812         * gpgv.c (is_disabled): Stub.
1814         * keygen.c (keygen_add_key_expire): Properly handle updating a key
1815         expiration to a no-expiration value.
1817         * keyedit.c (enable_disable_key): Comment.
1819         * import.c (import_one): When in interactive mode and --verbose,
1820         don't repeat some key information twice.
1822 2002-12-22  Timo Schulz  <ts@winpt.org>
1823         
1824         * import.c (print_import_check): New.
1825         (import_one): Use it here.
1826         Use merge_keys_and_selfsig in the interactive mode to avoid
1827         wrong key information.
1828         * status.h: Add new status code.
1829         * status.c: Ditto.
1830         
1831 2002-12-13  David Shaw  <dshaw@jabberwocky.com>
1833         * pkclist.c (do_we_trust): Tweak language to refer to the "named
1834         user" rather than "owner".  Noted by Stefan Bellon.
1836         * trustdb.h, trustdb.c (trustdb_pending_check): New function to
1837         check if the trustdb needs a check.
1839         * import.c (import_keys_internal): Used here so we don't rebuild
1840         the trustdb if it is still clean.
1841         (import_one, chk_self_sigs): Only mark trustdb dirty if the key
1842         that is being imported has any sigs other than self-sigs.
1843         Suggested by Adrian von Bidder.
1845         * options.skel: Include the required '=' sign in the sample
1846         'group' option.  Noted by Stefan Bellon.
1848         * import.c (chk_self_sigs): Don't try and check a subkey as if it
1849         was a signature.
1851 2002-12-11  David Shaw  <dshaw@jabberwocky.com>
1853         * tdbio.c (tdbio_read_record, tdbio_write_record): Compact the
1854         RECTYPE_TRUST records a bit.
1856         * g10.c (main): Comment out --list-trust-path until it can be
1857         implemented.
1859         * import.c (import_one): Warn when importing an Elgamal primary
1860         that this may take some time (to verify self-sigs).
1861         (chk_self_sigs): Try and cache all self-sigs so the keyblock is
1862         written to the keyring with a good rich cache.
1864         * keygen.c (ask_algo): Make the Elgamal sign+encrypt warning
1865         stronger, and remove the RSA sign+encrypt warning.
1867 2002-12-06  Stefan Bellon  <sbellon@sbellon.de>
1869         * options.h: Fixed typo (mangle_dos_names instead of
1870         mangle_dos_filenames).
1872 2002-12-05  Werner Koch  <wk@gnupg.org>
1874         * g10.c: New options --[no-]mangle-dos-filenames.
1875         * options.h (opt): Added mangle-dos-filenames.
1876         * openfile.c (open_outfile) [USE_ONLY_8DOT3]: Truncate the
1877         filename only when this option is set; this is the default.
1879 2002-12-04  David Shaw  <dshaw@jabberwocky.com>
1881         * main.h, keyedit.c, keygen.c: Back out previous (2002-12-01)
1882         change.  Minimal isn't always best.
1884         * sign.c (update_keysig_packet): Use the current time rather then
1885         a modification of the original signature time.  Make sure that
1886         this doesn't cause a time warp.
1888         * keygen.c (keygen_add_key_expire): Properly handle a key
1889         expiration date in the past (use a duration of 0).
1891         * keyedit.c (menu_expire): Use update_keysig_packet so any sig
1892         subpackets are maintained during the update.
1894         * build-packet.c (build_sig_subpkt): Mark sig expired or unexpired
1895         when the sig expiration subpacket is added.
1896         (build_sig_subpkt_from_sig): Handle making an expiration subpacket
1897         from a sig that has already expired (use a duration of 0).
1899         * packet.h, sign.c (update_keysig_packet), keyedit.c
1900         (menu_set_primary_uid, menu_set_preferences): Add ability to issue
1901         0x18 subkey binding sigs to update_keysig_packet and change all
1902         callers.
1904         * trustdb.c (validate_keys): Show trust parameters when building
1905         the trustdb, and make sure that the version record update was
1906         successful.
1907         (init_trustdb): If the current parameters aren't what was used for
1908         building the trustdb, the trustdb is invalid.
1910         * tbio.c (tdbio_db_matches_options): Update to work with new
1911         trustdbs.
1913 2002-12-03  David Shaw  <dshaw@jabberwocky.com>
1915         * tdbio.h, tdbio.c (tdbio_read_record, tdbio_write_record): Store
1916         trust model in the trustdb version record.
1917         (tdbio_update_version_record): New function to update version
1918         record values during a trustdb check or update.
1919         (tdbio_dump_record): Show trust model in dump.
1921         * trustdb.c (validate_keys): Call tdbio_update_version_record on
1922         success so that the correct options are stored in the trustdb.
1924         * options.h: rearrange trust models so that CLASSIC is 0 and
1925         OPENPGP is 1.
1927         * options.h, g10.c (main), encode.c (write_pubkey_enc_from_list),
1928         pkclist.c (algo_available), revoke.c (gen_revoke): Add --pgp8
1929         mode.  This is basically identical to --pgp7 in all ways except
1930         that signing subkeys, v4 data sigs (including expiration), and SK
1931         comments are allowed.
1933         * getkey.c (finish_lookup): Comment.
1935         * main.h, keylist.c (reorder_keyblock), keyedit.c (keyedit_menu):
1936         Reorder user ID display in the --edit-key menu to match that of
1937         the --list-keys display.
1939         * g10.c (add_notation_data): Fix initialization.
1941 2002-12-01  David Shaw  <dshaw@jabberwocky.com>
1943         * keyedit.c (menu_expire): Don't lose key flags when changing the
1944         expiration date of a subkey.  This is not the most optimal
1945         solution, but it is minimal change on the stable branch.
1947         * main.h, keygen.c (do_copy_key_flags): New function to copy key
1948         flags, if any, from one sig to another.
1949         (do_add_key_expire): New function to add key expiration to a sig.
1950         (keygen_copy_flags_add_expire): New version of
1951         keygen_add_key_expire that also copies key flags.
1952         (keygen_add_key_flags_and_expire): Use do_add_key_expire.
1954         * import.c (fix_hkp_corruption): Comment.
1956 2002-11-25  Stefan Bellon  <sbellon@sbellon.de>
1958         * plaintext.c (handle_plaintext) [__riscos__]: If nooutput is set,
1959         no filetype is needed obviously.
1961 2002-11-24  David Shaw  <dshaw@jabberwocky.com>
1963         * main.h, misc.c (default_cipher_algo, default_compress_algo):
1964         New.  Return the default algorithm by trying
1965         --cipher-algo/--compress-algo, then the first item in the pref
1966         list, then s2k-cipher-algo or ZIP.
1968         * sign.c (sign_file, sign_symencrypt_file), encode.c
1969         (encode_simple, encode_crypt): Call default_cipher_algo and
1970         default_compress_algo to get algorithms.
1972         * g10.c (main): Allow pref selection for compress algo with
1973         --openpgp.
1975         * mainproc.c (proc_encrypted): Use --s2k-digest-algo for
1976         passphrase mangling rather than --digest-algo.
1978         * sign.c (hash_for): If --digest-algo is not set, but
1979         --personal-digest-preferences is, then use the first hash
1980         algorithm in the personal list.  If the signing algorithm is DSA,
1981         then use the first 160-bit hash algorithm in the personal list.
1982         If --pgp2 is set and it's a v3 RSA key, use MD5.
1984         * g10.c (main), keydb.c (keydb_add_resource,
1985         keydb_locate_writable): Rename --default-keyring as
1986         --primary-keyring.  Stefan wins the naming contest.
1988 2002-11-23  David Shaw  <dshaw@jabberwocky.com>
1990         * g10.c (add_notation_data): Disallow notation names that do not
1991         contain a '@', unless --expert is set.  This is to help prevent
1992         people from polluting the (as yet unused) IETF namespace.
1994         * main.h: Comments about default algorithms.
1996         * photoid.c (image_type_to_string): Comments about 3-letter file
1997         extensions.
1999         * encode.c (encode_simple), passphrase.c (passphrase_to_dek),
2000         sign.c (sign_symencrypt_file): Use --s2k-digest-algo for
2001         passphrase mangling rather than --digest-algo.
2003 2002-11-21  David Shaw  <dshaw@jabberwocky.com>
2005         * keygen.c (keygen_set_std_prefs): Properly handle an empty
2006         preference string.
2008         * misc.c (string_to_compress_algo): "none" is a bad choice since
2009         it conflicts with the "none" in setpref.
2011 2002-11-14  David Shaw  <dshaw@jabberwocky.com>
2013         * g10.c (main): Allow compression algorithm names as the argument
2014         to --compress-algo.  The old algorithm names still work for
2015         backwards compatibility.
2017         * misc.c (string_to_compress_algo): Allow "none" as an alias for
2018         "uncompressed".
2020 2002-11-13  Stefan Bellon  <sbellon@sbellon.de>
2022         * getkey.c (get_pubkey_byfprint_fast): Fixed type incompatibility,
2023         was unsigned char instead of byte.
2025 2002-11-13  David Shaw  <dshaw@jabberwocky.com>
2027         * encode.c (encode_simple): Make sure that files larger than about
2028         4G use partial length encoding.  This is required because OpenPGP
2029         allows only for 32 bit length fields.  From Werner on stable
2030         branch.
2032         * getkey.c (get_pubkey_direct): Renamed to...
2033         (get_pubkey_fast): this and made extern.
2034         (get_pubkey_byfprint_fast): New.  From Werner on stable branch.
2036         * keydb.h, import.c (import_one): Use get_pubkey_fast instead of
2037         get_pubkey.  We don't need a merged key and actually this might
2038         lead to recursions.
2039         (revocation_present): Likewise for search by fingerprint.  From
2040         Werner on stable branch.
2042         * g10.c (main): Try to create the trustdb even for non-colon-mode
2043         list-key operations.  This is required because getkey needs to
2044         know whether a a key is ultimately trusted.  From Werner on stable
2045         branch.
2046         
2047         * exec.c [__CYGWIN32__]: Keep cygwin separate from Mingw32;
2048         we don't need it here as it behaves more like a Posix system.
2049         From Werner on stable branch.
2051         * passphrase.c (agent_get_passphrase): Ditto.  From Werner on
2052         stable branch.
2054         * tdbio.c (MY_O_BINARY): Need binary mode with Cygwin.  From
2055         Werner on stable branch.
2057         * g10.c, gpgv.c (main) [__CYGWIN32__]: Don't get the homedir from
2058         the registry.  From Werner on stable branch.
2059         
2060         * keyedit.c (show_key_with_all_names_colon): Make --with-colons
2061         --edit display match the validity and trust of --with-colons
2062         --list-keys.
2064         * passphrase.c (agent_send_all_options): Fix compile warning.
2066         * keylist.c (list_keyblock_colon): Validity for subkeys should
2067         match that of the primary key, and not that of the last user ID.
2069         * getkey.c (merge_selfsigs): Revoked/expired/invalid primary keys
2070         carry these facts onto all their subkeys, but only after the
2071         subkey has a chance to be marked valid.  This is to fix an
2072         incorrect "invalid public key" error verifying a signature made by
2073         a revoked signing subkey, with a valid unrevoked primary key.
2075 2002-11-09  Werner Koch  <wk@gnupg.org>
2077         * passphrase.c (agent_send_all_options): Use tty_get_ttyname to
2078         get the default ttyname.
2080 2002-11-07  David Shaw  <dshaw@jabberwocky.com>
2082         * keyring.h, keyring.c (keyring_register_filename): Return the
2083         pointer if a given keyring is registered twice.
2085         * keydb.h, keydb.c (keydb_add_resource): Use flags to indicate a
2086         default keyring.
2087         (keydb_locate_writable): Prefer the default keyring if possible.
2089         * g10.c (main): Add --default-keyring option.
2091 2002-11-06  David Shaw  <dshaw@jabberwocky.com>
2093         * options.h, g10.c (main), trustdb.c (ask_ownertrust): Add
2094         --force-ownertrust option for debugging purposes.  This allows
2095         setting a whole keyring to a given trust during an
2096         --update-trustdb.  Not for normal use - it's just easier than
2097         hitting "4" all the time to test a large trustdb.
2099         * pubkey-enc.c (get_session_key): With hidden recipients or try a
2100         given passphrase against all secret keys rather than trying all
2101         secret keys in turn.  Don't if --try-all-secrets or --status-fd is
2102         enabled.
2104         * passphrase.c (passphrase_to_dek): Mode 1 means do a regular
2105         passphrase query, but don't prompt with the key info.
2107         * seckey-cert.c (do_check, check_secret_key): A negative ask count
2108         means to enable passphrase mode 1.
2110         * keydb.h, getkey.c (enum_secret_keys): Add flag to include
2111         secret-parts-missing keys (or not) in the list.
2113 2002-11-05  David Shaw  <dshaw@jabberwocky.com>
2115         * keyserver.c (keyserver_search_prompt): When --with-colons is
2116         enabled, don't try and fit the search output to the screen size -
2117         just dump the whole list.
2119 2002-11-04  David Shaw  <dshaw@jabberwocky.com>
2121         * keyserver.c (keyserver_search_prompt): When --with-colons is
2122         enabled, just dump the raw keyserver protocol to stdout and don't
2123         print the menu.
2125         * keyserver.c (show_prompt): Don't show a prompt when command-fd
2126         is being used.
2128         * trustdb.c (trust_model_string, check_trustdb, update_trustdb,
2129         validate_one_keyblock): It's not clear what a trustdb rebuild or
2130         check means with a trust model other than "classic" or "openpgp",
2131         so disallow this.
2133 2002-11-03  David Shaw  <dshaw@jabberwocky.com>
2135         * options.h, g10.c (main): Add --trust-model option.  Current
2136         models are "openpgp" which is classic+trustsigs, "classic" which
2137         is classic only, and "always" which is the same as the current
2138         option --always-trust (which still works).  Default is "openpgp".
2140         * trustdb.c (validate_one_keyblock): Use "openpgp" trust model to
2141         enable trust sigs.
2143         * gpgv.c (main), mainproc.c (check_sig_and_print), pkclist.c
2144         (do_we_trust, do_we_trust_pre, check_signatures_trust): Use new
2145         --trust-model option in place of --always-trust.
2147         * keyedit.c (sign_mk_attrib, trustsig_prompt, sign_uids,
2148         keyedit_menu): Prompt for and create a trust signature with
2149         "tsign".  This is functional, but needs better UI text.
2151         * build-packet.c (build_sig_subpkt): Able to build trust and
2152         regexp subpackets.
2154         * pkclist.c (do_edit_ownertrust): Comment.
2156 2002-11-02  David Shaw  <dshaw@jabberwocky.com>
2158         * keygen.c (set_one_pref, keygen_set_std_prefs): Allow using the
2159         full algorithm name (CAST5, SHA1) rather than the short form (S3,
2160         H2).
2162         * main.h, keygen.c (keygen_get_std_prefs), keyedit.c
2163         (keyedit_menu): Return and use a fake uid packet rather than a
2164         string since we already have a nice parser/printer in
2165         keyedit.c:show_prefs.
2167         * main.h, misc.c (string_to_compress_algo): New.
2169 2002-11-01  David Shaw  <dshaw@jabberwocky.com>
2171         * g10.c (main): Add --no-throw-keyid.
2173         * keydb.h, encode.c (write_pubkey_enc_from_list), g10.c (main),
2174         pkclist.c (build_pk_list): Add --hidden-recipient (-R) and
2175         --hidden-encrypt-to, which do a single-user variation on
2176         --throw-keyid.  The "hide this key" flag is carried in bit 0 of
2177         the pk_list flags field.
2179         * keyserver.c (parse_keyrec): Fix shadowing warning.
2181 2002-10-31  Stefan Bellon  <sbellon@sbellon.de>
2183         * compress.c (init_compress) [__riscos__]: Use
2184         riscos_load_module() to load ZLib module.
2186         * g10.c (main) [__riscos__]: Renames due to changes in riscos.c
2187         (e.g. prefixes all RISC OS specific functions with riscos_*).
2188         * photoid.c (show_photos) [__riscos__]: Likewise.
2189         * signal.c (got_fatal_signal) [__riscos__]: Likewise.
2191         * trustdb.c (check_regexp) [__riscos__]: Branch to RISC OS RegEx
2192         handling.
2194 2002-10-31  David Shaw  <dshaw@jabberwocky.com>
2196         * build-packet.c (do_plaintext), encode.c (encode_sesskey,
2197         encode_simple, encode_crypt), sign.c (write_plaintext_packet): Use
2198         wipememory() instead of memset() to wipe sensitive memory as the
2199         memset() might be optimized away.
2201 2002-10-30  David Shaw  <dshaw@jabberwocky.com>
2203         * trustdb.c (check_regexp): Modern regexps require REG_EXTENDED.
2205 2002-10-29  David Shaw  <dshaw@jabberwocky.com>
2207         * packet.h, trustdb.h, trustdb.c (trust_string): New.  Return a
2208         string like "fully trusted", "marginally trusted", etc.
2209         (get_min_ownertrust): New.  Return minimum ownertrust.
2210         (update_min_ownertrust): New.  Set minimum ownertrust.
2211         (check_regexp): New.  Check a regular epression against a user ID.
2212         (ask_ownertrust): Allow specifying a minimum value.
2213         (get_ownertrust_info): Follow the minimum ownertrust when
2214         returning a letter.
2215         (clear_validity): Remove minimum ownertrust when a key becomes
2216         invalid.
2217         (release_key_items): Release regexp along with the rest of the
2218         info.
2219         (validate_one_keyblock, validate_keys): Build a trust sig chain
2220         while validating.  Call check_regexp for regexps.  Use the minimum
2221         ownertrust if the user does not specify a genuine ownertrust.
2223         * pkclist.c (do_edit_ownertrust): Only allow user to select a
2224         trust level greater than the minimum value.
2226         * parse-packet.c (can_handle_critical): Can handle critical trust
2227         and regexp subpackets.
2229         * trustdb.h, trustdb.c (clear_ownertrusts), delkey.c
2230         (do_delete_key), import.c (import_one): Rename clear_ownertrust to
2231         clear_ownertrusts and have it clear the min_ownertrust value as
2232         well.
2234         * keylist.c (list_keyblock_print): Indent uid to match pub and
2235         sig.
2237         * keyedit.c (print_and_check_one_sig, show_key_and_fingerprint,
2238         menu_addrevoker), keylist.c (list_keyblock_print,
2239         print_fingerprint): Show "T" or the trust depth for trust
2240         signatures, and add spaces to some strings to make room for it.
2242         * packet.h, parse-packet.c (dump_sig_subpkt, parse_one_sig_subpkt,
2243         parse_signature): Parse trust signature values.
2245         * tdbio.h, tdbio.c (tdbio_read_record, tdbio_write_record):
2246         Reserve a byte for the minimum ownertrust value (for use with
2247         trust signatures).
2249 2002-10-29  Stefan Bellon  <sbellon@sbellon.de>
2251         * build-packet.c (calc_plaintext, do_plaintext): Removed RISC OS
2252         specific filetype parts (it's now done in make_basename()).
2254         * plaintext.c (handle_plaintext): Tidied up RISC OS specific
2255         filetype parts.
2257         * encode.c (encode_simple, encode_crypt): Added argument to
2258         make_basename() call.
2260         * sign.c (write_plaintext_packet): Added argument to
2261         make_basename() call.
2263 2002-10-28  Stefan Bellon  <sbellon@sbellon.de>
2265         * build-packet.c (calc_plaintext, do_plaintext): Added filetype
2266         handling for RISC OS' file types.
2268         * plaintext.c (handle_plaintext) [__riscos__]: Added filetype
2269         handling for RISC OS' file types.
2271 2002-10-23  David Shaw  <dshaw@jabberwocky.com>
2273         * main.h, import.c (sec_to_pub_keyblock, import_secret_one,
2274         parse_import_options), g10.c (main): New import-option
2275         "convert-sk-to-pk" to convert a secret key into a public key
2276         during import.  It is on by default.
2278 2002-10-23  Werner Koch  <wk@gnupg.org>
2280         * pubkey-enc.c (get_it): Fix segv, test for revoked only when PK
2281         has been assigned.
2283 2002-10-18  Timo Schulz  <ts@winpt.org>
2285         * keylist.c: (print_pubkey_info): New.
2286         (print_seckey_info): New.
2287         * main.h: Prototypes for the new functions.       
2288         * delkey.c (do_delete_key): Use it here.
2289         * revoke.c (gen_desig_revoke): Ditto.
2290         
2291 2002-10-17  Werner Koch  <wk@gnupg.org>
2293         * pkclist.c (do_edit_ownertrust): Show all user IDs.  This should
2294         be enhanced to also show the current trust level.  Suggested by
2295         Florian Weimer.
2297 2002-10-17  David Shaw  <dshaw@jabberwocky.com>
2299         * g10.c (main): Handle --strict and --no-strict from the command
2300         line before the options file is loaded.
2302 2002-10-15  David Shaw  <dshaw@jabberwocky.com>
2304         * g10.c (main): Disable --textmode when encrypting (symmetric or
2305         pk) in --pgp2 mode as PGP 2 can't handle the unknown length
2306         literal packet.  Reported by Michael Richardson.
2308 2002-10-14  David Shaw  <dshaw@jabberwocky.com>
2310         * keyserver-internal.h, keyserver.c (print_keyrec, parse_keyrec,
2311         show_prompt, keyserver_search_prompt, keyserver_spawn): Go to
2312         version 1 of the keyserver protocol.  This is a better design,
2313         similar to --with-colons, that allows for keys with multiple user
2314         IDs rather than using multiple keys.  It also matches the machine
2315         readable pksd format.  Also use a prettier --search-keys listing
2316         format that can fill different size windows (currently set at 24
2317         lines).
2319 2002-10-12  Werner Koch  <wk@gnupg.org>
2321         * keygen.c (print_status_key_created): New.
2322         (do_generate_keypair): Use it to print the fingerprint.
2323         (generate_subkeypair): Likewise.
2325 2002-10-11  David Shaw  <dshaw@jabberwocky.com>
2327         * keyedit.c (menu_addrevoker): Properly back out if the signature
2328         fails.  Also, do not allow appointing the same revoker twice, and
2329         report ALREADY_SIGNED if the user tries it.
2331 2002-10-07  David Shaw  <dshaw@jabberwocky.com>
2333         * import.c (import_keys_internal): Missed one s/inp/inp2/.
2335         * keylist.c (print_capabilities): Properly indicate per-key
2336         capabilities of sign&encrypt primary keys that have
2337         secret-parts-missing (i.e. no capabilities at all)
2339         * mainproc.c (symkey_decrypt_sesskey): Fix compiler warning.
2341 2002-10-04  David Shaw  <dshaw@jabberwocky.com>
2343         * getkey.c (get_pubkey_direct): Don't cache keys retrieved via
2344         this function as they may not have all their fields filled in.
2346         * sig-check.c (signature_check2): Use new is_primary flag to check
2347         rather than comparing main_keyid with keyid as this still works in
2348         the case of a not fully filled in pk.
2350 2002-10-04  Werner Koch  <wk@gnupg.org>
2352         * import.c (import_keys_internal): s/inp/inp2/ to avoid shadowing
2353         warning.
2355         * passphrase.c (agent_get_passphrase): Fixed signed/unsigned char
2356         problem in %-escaping.  Noted by Ingo Klöcker.
2358 2002-10-03  David Shaw  <dshaw@jabberwocky.com>
2360         * options.h, g10.c (main): Add --strict and --no-strict to switch
2361         the log_warning severity level from info to error.
2363         * keylist.c (print_capabilities): Secret-parts-missing keys should
2364         show that fact in the capabilities, and only primary signing keys
2365         can certify other keys.
2367         * packet.h, parse_packet.c (parse_key): Add is_primary flag for
2368         public keys (it already exists for secret keys).
2370 2002-10-02  David Shaw  <dshaw@jabberwocky.com>
2372         * import.c (import_secret_one): Check for an illegal (>110)
2373         protection cipher when importing a secret key.
2375         * keylist.c (list_keyblock_print): Show a '#' for a
2376         secret-parts-missing key.
2378         * parse_packet.c (parse_key): Some comments.
2380         * revoke.c (gen_revoke): Remove some debugging code.
2382         * trustdb.c (verify_own_keys): Make trusted-key a non-deprecated
2383         option again.
2385         * seckey-cert.c (do_check): Don't give the IDEA warning unless the
2386         cipher in question is in fact IDEA.
2388 2002-10-01  David Shaw  <dshaw@jabberwocky.com>
2390         * import.c (import_one): Make sure that a newly imported key
2391         starts with a clean ownertrust.
2393 2002-10-01  Werner Koch  <wk@gnupg.org>
2395         * getkey.c (get_pubkey_direct): New.
2396         (merge_selfsigs_main): Use it here to look for an ultimately
2397         trusted key.  Using the full get_pubkey might lead to an
2398         infinitive recursion.
2400 2002-09-29  David Shaw  <dshaw@jabberwocky.com>
2402         * keyserver.c (parse_keyserver_uri): Force the keyserver URI
2403         scheme to lowercase to be case-insensitive.
2405 2002-09-28  David Shaw  <dshaw@jabberwocky.com>
2407         * export.c (do_export_stream): Comment.
2409         * sig-check.c (check_key_signature2): Properly handle a
2410         non-designated revocation import.
2412 2002-09-26  Werner Koch  <wk@gnupg.org>
2414         * g10.c (set_homedir): New. Changed all direct assignments to use
2415         this.
2416         * gpgv.c (set_homedir): Ditto.
2418 2002-09-25  David Shaw  <dshaw@jabberwocky.com>
2420         * Makefile.am: Link gpg with EGDLIBS (i.e. NETLIBS) as EGD uses
2421         sockets.  Remove the old NETLIBS variable since the keyserver
2422         stuff is no longer internal.
2424 2002-09-24  David Shaw  <dshaw@jabberwocky.com>
2426         * import.c (import_keys_stream): Fix compiler type warning.
2428         * keyring.c (keyring_rebuild_cache), sig-check.c
2429         (check_key_signature2), import.c (import, chk_self_sigs): Minor
2430         language cleanups.
2432 2002-09-23  Stefan Bellon  <sbellon@sbellon.de>
2434         * main.h: Introduced fast-import as import option. Removed
2435         fast as separate option from prototypes.
2436         * import.c (parse_import_options): Added fast-import option.
2437         (import_*): Removed fast as separate option.
2438         * g10.c (main): Added option fast-import, removed old fast
2439         as separate argument.
2440         * keyserver.c (keyserver_spawn): Removed old fast as separate
2441         argument.
2443 2002-09-22  Stefan Bellon  <sbellon@sbellon.de>
2445         * import.c (import_keys, import_keys_stream,
2446         import_keys_internal): Added trustdb update/check to key import if
2447         not fast-import and interactive set/no-auto-check-trustdb unset.
2448         Avoided function clone by introducing import_keys_internal.
2450 2002-09-19  David Shaw  <dshaw@jabberwocky.com>
2452         * keyserver.c (keyserver_spawn): Properly handle line truncation.
2453         Don't leak memory (~10-20 bytes) on searches.
2454         (keyserver_search_prompt): Cleanup.
2456         * keylist.c (list_keyblock_colon): Show 1F direct key signatures
2457         in --with-colons listing.
2459 2002-09-16  David Shaw  <dshaw@jabberwocky.com>
2461         * keyedit.c (menu_addrevoker): The direct key signature for
2462         revocation keys must be at least v4 to carry the revocation key
2463         subpacket.  Add a PGP 2.x warning for revocation keys.
2465 2002-09-14  David Shaw  <dshaw@jabberwocky.com>
2467         * g10.c (check_permissions): Rearrange strings to make translating
2468         easier (don't incorporate string parts).
2470         * keyedit.c (sign_uids): Make strings translatable.
2472         * sig-check.c (check_key_signature2): Make string translatable.
2474 2002-09-13  David Shaw  <dshaw@jabberwocky.com>
2476         * getkey.c (check_revocation_keys): Move....
2477         * main.h, sig-check.c (check_revocation_keys): to here.  Also
2478         return the signature_check error code rather than 0/1 and cache
2479         the sig result.
2481         * sig-check.c (check_key_signature2): Divert to
2482         check_revocation_keys if a revocation sig is made by someone other
2483         than the pk owner.
2485         * getkey.c (merge_selfsigs_main): Tidy.
2487 2002-09-13  Werner Koch  <wk@gnupg.org>
2489         * g10.c (main) [__MINGW32__]: Activate oLoadExtension.
2491 2002-09-12  David Shaw  <dshaw@jabberwocky.com>
2493         * Makefile.am, hkp.c, hkp.h, keyserver.c (keyserver_work): Remove
2494         internal HKP support.
2496         * keyserver.c (keyserver_spawn): Remove whitespace after keyserver
2497         commands.
2499 2002-09-10  David Shaw  <dshaw@jabberwocky.com>
2501         * exec.c (expand_args): Remove loop left over from earlier
2502         implementation.
2503         (exec_write): Missed one tick.
2505 2002-09-10  Werner Koch  <wk@gnupg.org>
2507         * g10.c, options.h: Removed option --emulate-checksum-bug.
2508         * misc.c (checksum_u16_nobug): Removed.
2509         (checksum_u16): Removed the bug emulation.
2510         (checksum_mpi): Ditto.
2511         (checksum_mpi_counted_nbits): Removed and replaced all calls
2512         with checksum_mpi.
2514         * parse-packet.c (read_protected_v3_mpi): New.
2515         (parse_key): Use it here to store it as an opaque MPI.
2516         * seckey-cert.c (do_check): Changed the v3 unprotection to the new
2517         why to store these keys.
2518         (protect_secret_key): Likewise.
2519         * build-packet.c (do_secret_key): And changed the writing.
2521         * tdbio.c (tdbio_set_dbname, open_db): Use new macro MY_O_BINARY
2522         to avoid silly ifdefs.
2523         (open_db): Fallback to RDONLY so that gpg may be used from a
2524         RO-medium.
2526         * encode.c (encode_simple): Make sure we don't use an ESK packet
2527         when we don't have a salt in the S2K.
2529         * misc.c (pct_expando) <case f>: Make sure that LEN is initialized.
2531         * exec.c (exec_finish): Use ticks to denote filenames in messages.
2532         (make_tempdir, exec_write): Changed format of messages.
2534         * keyserver.c (print_keyinfo): Release USERID in on error.
2535         (keyserver_work) [!DISABLE_KEYSERVER_HELPERS]: Exclude the unused
2536         code.
2538 2002-09-09  Werner Koch  <wk@gnupg.org>
2540         * parse-packet.c (make_attribute_uidname): Add new ar MAX_NAMELEN
2541         for sanity checks.  Changed both callers. Limit the size of an %s.
2543         * options.skel: Comment lock-once out, so that this file does not
2544         change anything when copied to a new home directory.
2545         * openfile.c (try_make_homedir): Don't exit after copying the
2546         option skeleton.
2548         * options.h: Don't use a comma when declaring variables over more
2549         than one line.
2551         * mainproc.c (symkey_decrypt_sesskey): Check length of the session
2552         key.
2554         * hkp.c (dehtmlize): Use ascii_tolower to protect against weird
2555         locales.  Cast the argument for isspace for the sake of broken
2556         HP/UXes.
2557         (parse_hkp_index): s/ascii_memcasecmp/ascii_strncasecmp/.
2559         * g10.c: Removed option --emulate-3des-s2k-bug.
2561         * passphrase.c (hash_passphrase): Was used here.
2563         * export.c (parse_export_options)
2564         * keyserver.c (parse_keyserver_options)
2565         * import.c (parse_import_options)
2566         * g10.c (check_permissions): s/ascii_memcasecmp/ascii_strncasecmp/.
2568 2002-09-09  David Shaw  <dshaw@jabberwocky.com>
2570         * g10.c (add_group): Use '=' to separate group name from group
2571         members.  Use a better error message for when no = is found.
2573         * hkp.c (hkp_export): Use CRLF in headers.
2575 2002-09-03  David Shaw  <dshaw@jabberwocky.com>
2577         * mainproc.c (print_pkenc_list): Don't increment the error counter
2578         when printing the list of keys a message was encrypted to.  This
2579         would make gpg give a non-zero exit code even for completely valid
2580         messages if the message was encrypted to more than one key that
2581         the user owned.
2583 2002-09-02  Werner Koch  <wk@gnupg.org>
2585         * g10.c (main): Try to set a default character set.  Print the
2586         used one in verbosity level 3.
2587         * gpgv.c (main): Try to set a default character set.
2589         * status.c, status.h (STATUS_IMPORT_OK): New.
2590         * import.c (import_one,import_secret_one): Print new status.
2592 2002-08-30  David Shaw  <dshaw@jabberwocky.com>
2594         * pkclist.c (build_pk_list): Add new status code to indicate an
2595         untrusted user.  This (or a disabled key) fail with "unavailable
2596         pubkey" (G10ERR_UNU_PUBKEY).
2598         * pkclist.c (build_pk_list): Fail if any recipient keys are
2599         unusable.
2601         * options.skel: The PGP LDAP keyserver is back.  Use MIT keyserver
2602         as a sample rather than cryptnet as cryptnet does not support
2603         searching yet.
2605         * keyedit.c (show_key_with_all_names): Fix error message
2606         (preferences are userid/selfsig and not key specific).
2608 2002-08-30  Werner Koch  <wk@gnupg.org>
2610         * pkclist.c (do_we_trust_pre): Changed the wording of a warning.
2612         * encode.c (encode_simple,encode_crypt): Use new style CTB for
2613         compressssed packets when using MDC.  We need to do this so that
2614         concatenated messages are properly decrypted.  Old style
2615         compression assumes that it is the last packet; given that we
2616         can't determine the length in advance, the uncompressor does not
2617         know where to start.  Actually we should use the new CTB always
2618         but this would break PGP 2 compatibility.
2620         * parse-packet.c (parse): Special treatment for new style CTB
2621         compressed packets.
2623         * build-packet.c (do_mdc): Removed. Was not used.
2624         (do_encrypted_mdc): Count in the version number and the MDC packet.
2626 2002-08-28  David Shaw  <dshaw@jabberwocky.com>
2628         * sig-check.c (do_check_messages, do_check): Show keyid in error
2629         messages.
2631         * keyserver.c (print_keyinfo): More readable key listings for
2632         --search-keys responses.
2634 2002-08-26  David Shaw  <dshaw@jabberwocky.com>
2636         * hkp.c (parse_hkp_index, dehtmlize): Move HTML functionality into
2637         new "dehtmlize" function.  Remove HTML before trying to parse each
2638         line from the keyserver.  If the keyserver provides key type
2639         information in the listing, use it.
2641 2002-08-23  David Shaw  <dshaw@jabberwocky.com>
2643         * sig-check.c (do_check, do_check_messages): Emit the usual sig
2644         warnings even for cached sigs.  This also serves to protect
2645         against missing a sig expiring while cached.
2647         * getkey.c (merge_selfsigs_main): Don't check UID self-sigs twice.
2649 2002-08-22  David Shaw  <dshaw@jabberwocky.com>
2651         * import.c (clean_subkeys, chk_self_sigs): Merge clean_subkeys
2652         into chk_self_sigs.  This improves efficiency as the same
2653         signatures are not checked multiple times.  Clarify when a subkey
2654         is revoked (any revocation signature, even if it is dated before
2655         the binding signature).
2657         * getkey.c (merge_selfsigs_subkey): Subkey revocation comments.
2659         * keylist.c (list_one): Stats are only for public key listings.
2661         * g10.c (main), options.skel: Default should be include-revoked
2662         for keyserver operations.
2664 2002-08-21  Werner Koch  <wk@gnupg.org>
2666         * import.c (import_print_stats): Print new non_imported counter
2667         which is currently not used because we terminate on errors.
2669 2002-08-20  David Shaw  <dshaw@jabberwocky.com>
2671         * options.skel: Document no-include-attributes for
2672         keyserver-options.
2674         * keylist.c, keyedit.c, keyserver.c, sign.c: Some TODOs and
2675         comments.
2677         * export.c (do_export_stream): Fix noop bug in exporting sensitive
2678         revocation keys.
2680         * pkclist.c (do_edit_ownertrust): Comment out the option for
2681         showing trust paths until it can be implemented.
2683 2002-08-19  Werner Koch  <wk@gnupg.org>
2685         * getkey.c (get_user_id_native): Renamed to ..
2686         (get_user_id_printable): this.  Filter out all dangerous
2687         characters.  Checked all usages.
2688         (get_user_id_string_native): Renamed to..
2689         (get_user_id_string_printable): this.  Filter out all dangerous
2690         characters.  Checked all usages.
2691         * keyedit.c (show_basic_key_info): New.
2692         * keylist.c (print_fingerprint): New mode 3.
2693         * import.c (import_one): Use new function to display the user ID.
2695 2002-08-16  Timo Schulz  <ts@winpt.org>
2697         * g10.c (main): Enable opt.interactive.
2699         * import.c (import_one): Ask the user if the key shall be
2700         imported when the interactive mode is used. Useful to extract
2701         selected keys from a file.
2702         
2703 2002-08-16  Werner Koch  <wk@gnupg.org>
2705         * seckey-cert.c: Workaround to allow decryption of v3 keys created
2706         with a bug in the mpi_get_secure_buffer.
2708 2002-08-14  David Shaw  <dshaw@jabberwocky.com>
2710         * hkp.c (parse_hkp_index): Properly handle really large keys
2711         (5 digit key length) in HKP searches.
2713 2002-08-13  David Shaw  <dshaw@jabberwocky.com>
2715         * encode.c (encode_simple): Fix problem with using compression
2716         algo 2 and symmetric compressed files.
2718         * encode.c (encode_simple, encode_crypt): If we are not using a
2719         MDC, compress even if a file is already compressed.  This is to
2720         help against the chosen ciphertext attack.
2722         * pkclist.c (select_algo_from_prefs): Fix requested algorithm bug
2723         so the request succeeds even if the requested algorithm is not the
2724         first found.
2726         * cipher.c (write_header), encode.c (use_mdc, encode_simple,
2727         encode_crypt, encrypt_filter), g10.c (main): Be more eager to use
2728         a MDC.  We use a MDC if the keys directly support it, if the keys
2729         list AES (any) or TWOFISH anywhere in the prefs, or if the cipher
2730         chosen does not have a 64 bit blocksize.
2732 2002-08-08  David Shaw  <dshaw@jabberwocky.com>
2734         * options.skel: Some language tweaks, and remove the
2735         load-extension section for random gatherers.
2737         * keyring.c (create_tmp_file, rename_tmp_file): Create tmp files
2738         with user-only permissions, but restore the original permissions
2739         if the user has something special set.
2741         * openfile.c (copy_options_file): Create new options file
2742         (gpg.conf) with user-only permissions.
2744         * keydb.c (keydb_add_resource): Create new keyrings with user-only
2745         permissions.
2747         * tdbio.c (tdbio_set_dbname): Create new trustdbs with user-only
2748         permissions.
2750 2002-08-07  David Shaw  <dshaw@jabberwocky.com>
2752         * sig-check.c (signature_check2): Sanity check that the md has a
2753         context for the hash that the sig is expecting.  This can happen
2754         if a onepass sig header does not match the actual sig, and also if
2755         the clearsign "Hash:" header is missing or does not match the
2756         actual sig.
2758         * keyedit.c (menu_revsig): Properly show a uid is revoked without
2759         restarting gpg.  This is Debian bug 124219, though their supplied
2760         patch will not do the right thing.
2762         * main.h, tdbio.c (tdbio_set_dbname), misc.c (removed
2763         check_permissions), keydb.c (keydb_add_resource), g10.c (main,
2764         check_permissions): Significant reworking of the permission check
2765         mechanism.  The new behavior is to check everything in the homedir
2766         by checking the homedir itself.  If the user wants to put
2767         (possibly shared) keyrings outside the homedir, they are not
2768         checked.  The options file and any extension files are checked
2769         wherever they are, as well as their enclosing directories.  This
2770         is Debian bug 147760.
2771         
2772 2002-08-06  Stefan Bellon  <sbellon@sbellon.de>
2774         * g10.c (main): Use of EXTSEP_S in new gpg.conf string.
2775         * openfile.c (copy_options_file): Ditto.
2777 2002-08-06  David Shaw  <dshaw@jabberwocky.com>
2779         * options.h, g10.c (main), mainproc.c (proc_encrypted):
2780         --ignore-mdc-error option to turn a MDC check error into a
2781         warning.
2783         * encode.c (encode_crypt), g10.c (main), sign.c (sign_file,
2784         clearsign_file): Use the same --pgpX warning string everywhere to
2785         ease translations.
2787         * encode.c (write_pubkey_enc_from_list): Warn when using
2788         --throw-keyid with --pgpX.  Noted by Vedaal Nistar.
2790         * revoke.c (export_minimal_pk, gen_desig_revoke, gen_revoke):
2791         Export a minimal pk along with the revocation cert when in --pgpX
2792         mode so that PGP can import it.
2794 2002-08-06  Werner Koch  <wk@gnupg.org>
2796         * options.skel: Changed comments.
2798         * g10.c (main): Try to use "gpg.conf" as default option file.
2799         * openfile.c (copy_options_file): Changed name of created file.
2801 2002-08-02  Werner Koch  <wk@gnupg.org>
2803         * Makefile.am (LDFLAGS): Removed DYNLINK_LDFLAGS.
2805 2002-07-30  David Shaw  <dshaw@jabberwocky.com>
2807         * options.h, g10.c (main), mainproc.c (proc_encrypted): Return a
2808         decryption failed error if a MDC does not verify.  Warn if a MDC
2809         is not present (can disable via --no-mdc-warning).
2811         * exec.c (exec_write), g10.c (main), keyserver.c
2812         (keyserver_spawn): Use new DISABLE_KEYSERVER_PATH rather than
2813         FIXED_EXEC_PATH.
2815 2002-07-28  David Shaw  <dshaw@jabberwocky.com>
2817         * sig-check.c (do_check): Properly validate v4 sigs with no hashed
2818         section at all.
2820 2002-07-25  Werner Koch  <wk@gnupg.org>
2822         * delkey.c (do_delete_key): Always allow to delete a key in batch mode
2823         when specified by fingerprint.  Suggested by Enzo Michelangeli.
2825 2002-07-25  David Shaw  <dshaw@jabberwocky.com>
2827         * keyedit.c (menu_revsig): Change "revsig" to honor selected uids
2828         so the user can revoke sigs from particular uids only.
2830         * keylist.c (list_keyblock_print): Don't display expired uids in
2831         --list-keys unless -v and not --list-sigs (just like revoked
2832         uids).
2834         * exec.c, export.c, import.c, keyedit.c, keyserver.c, misc.c:
2835         "Warning" -> "WARNING"
2837 2002-07-24  David Shaw  <dshaw@jabberwocky.com>
2839         * main.h, import.c (parse_import_options, fix_hkp_corruption,
2840         import_one, delete_inv_parts), g10.c (main): New import-option
2841         "repair-hkp-subkey-bug", which repairs as much as possible the HKP
2842         mangling multiple subkeys bug.  It is on by default for keyserver
2843         receives, and off by default for regular --import.
2845         * main.h, import.c (import, import_one, delete_inv_parts), hkp.c
2846         (hkp_ask_import), keyserver.c (keyserver_spawn): Use keyserver
2847         import options when doing keyserver receives.
2849         * options.h, exec.h, exec.c (set_exec_path, exec_write), g10.c
2850         (main), keyserver.c (keyserver_spawn): If the user does not use
2851         "exec-path", completely replace $PATH with GNUPG_LIBEXECDIR before
2852         calling the keyserver helper.  If the user does use "exec-path",
2853         append GNUPG_LIBEXECDIR after the specified path.
2855 2002-07-23  David Shaw  <dshaw@jabberwocky.com>
2857         * import.c (parse_import_options), export.c
2858         (parse_export_options): Fix offset problem with reversed ("no-")
2859         meanings.
2861         * import.c (delete_inv_parts): Discard subkey signatures (0x18 and
2862         0x28) if found in the userid section of the key.
2864         * sig-check.c (signature_check2): Signatures made by invalid
2865         subkeys (bad/missing binding sig) are also invalid.
2867         * keylist.c (print_fingerprint): Show the primary as well as the
2868         secondary key fingerprint in modes 1 & 2.
2870 2002-07-22  David Shaw  <dshaw@jabberwocky.com>
2872         * options.h, main.h, g10.c (main), import.c
2873         (parse_import_options, delete_inv_parts), keyserver.c
2874         (parse_keyserver_options): add new --import-options option.  The
2875         only current flag is "allow-local-sigs".
2877         * g10.c (main): Don't disable MDC in pgp7 mode.
2879         * options.h, g10.c (main), keyserver.c (parse_keyserver_options):
2880         Remove old keyserver-option include-attributes now that there is
2881         an export-option for the same thing.
2883         * options.h, main.h, export.c (parse_export_options,
2884         do_export_stream), g10.c (main): add new --export-options option.
2885         Current flags are "include-non-rfc", "include-local-sigs",
2886         "include-attributes", and "include-sensitive-revkeys".
2888         * options.h, hkp.c (hkp_export), keyserver.c
2889         (parse_keyserver_options, keyserver_spawn): try passing unknown
2890         keyserver options to export options, and if successful, use them
2891         when doing a keyserver --send-key.
2893         * build-packet.c (build_sig_subpkt): We do not generate
2894         SIGSUBPKT_PRIV_VERIFY_CACHE anymore.
2896         * revoke.c (gen_desig_revoke): Lots more comments about including
2897         sensitive revkeys along with the revocation sig itself.
2899         * keyserver.c (parse_keyserver_options): Simpler implementation
2900         that can skip one pass over the options.
2902 2002-07-18  David Shaw  <dshaw@jabberwocky.com>
2904         * keyedit.c (keyedit_menu, menu_addrevoker): Allow specifying
2905         "sensitive" as an argument to an addrevoker command.  This sets
2906         the 0x40 sensitive revoker flag.
2908         * revoke.c (gen_desig_revoke): When generating a designated
2909         revocation, include the direct key sig that contains the
2910         designated revoker subpacket.  This allows sensitive designated
2911         revocation subpackets to be exported.  Also indicate which
2912         revokers are sensitive in the first place.
2914 2002-07-17  David Shaw  <dshaw@jabberwocky.com>
2916         * keyedit.c (show_key_with_all_names_colon): The 0x40 class bit in
2917         a designated revoker means "sensitive", not "local".  It's
2918         exportable under the right circumstances.
2920         * main.h, options.h, export.c (do_export_stream), g10.c (main),
2921         hkp.c (hkp_export), keyserver.c (keyserver_spawn: Add a flag to
2922         skip attribute packets and their signatures while exporting.  This
2923         is to accomodate keyservers (pksd again) that choke on attributes.
2924         Use keyserver-option "include-attributes" to control it.  This
2925         defaults to ON (i.e. don't skip).
2927 2002-07-09  David Shaw  <dshaw@jabberwocky.com>
2929         * options.h, keyserver.c (parse_keyserver_uri, keyserver_spawn,
2930         keyserver_work), hkp.c (hkp_ask_import, hkp_export, hkp_search):
2931         Use a much more strict reading of RFC-2396 for the keyserver URIs.
2932         Specifically, don't try and be smart about checking the value of
2933         ":port" so long as it is all digits, and properly handle opaque
2934         data (those scheme specific parts that do not start with "//").
2936 2002-07-04  David Shaw  <dshaw@jabberwocky.com>
2938         * photoid.c (get_default_photo_command, show_photos): Honor
2939         FIXED_PHOTO_VIEWER and DISABLE_PHOTO_VIEWER.
2941         * mainproc.c (check_sig_and_print): Use --show-photos to show
2942         photos when verifying a sig made by a key with a photo.
2944         * keyserver.c (parse_keyserver_uri): Properly parse a URI with no
2945         :port section and an empty file path, but with a terminating '/'.
2946         (keyserver_work): Honor DISABLE_KEYSERVER_HELPERS.
2948         * hkp.c (hkp_ask_import): Display keyserver URI as a URI, but only
2949         if verbose.
2951         * exec.c, g10.c: USE_EXEC_PATH -> FIXED_EXEC_PATH
2953 2002-07-03  David Shaw  <dshaw@jabberwocky.com>
2955         * exec.h, exec.c (set_exec_path, exec_write), g10.c (main): If
2956         USE_EXEC_PATH is defined at compile time, use it to lock the
2957         exec-path and not allow the user to change it.
2959 2002-07-02  David Shaw  <dshaw@jabberwocky.com>
2961         * options.h, g10.c (main), keyserver.c (keyserver_refresh):
2962         Maintain and use the original keyserver URI for cosmetics rather
2963         than trying to recreate it when needed.
2965         * mainproc.c (check_sig_and_print): Properly disregard expired
2966         uids.  Make sure that the first uid listed is a real uid and not
2967         an attribute (attributes should only be listed in the "aka"
2968         section).  When there are no valid textual userids, try for an
2969         invalid textual userid before using any attribute uid.
2971 2002-07-01  David Shaw  <dshaw@jabberwocky.com>
2973         * options.skel: Fix a few typos, clarify "group", and remove
2974         sample photo viewers for Win32 since they are the defaults now.
2976         * parse-packet.c (make_attribute_uidname), keylist.c
2977         (dump_attribs): Fix two typecast warnings.
2979         * packet.h, build-packet.c (build_attribute_subpkt), exec.c
2980         (expand_args), mkdtemp.c (mkdtemp), photoid.c
2981         (parse_image_header): Fix some signedness compiler warnings.
2983 2002-07-01  Werner Koch  <wk@gnupg.org>
2985         * photoid.c (get_default_photo_command): Also use __MINGW32__
2986         instead of HAVE_DOSISH_SYSTEM.
2988         * encode.c (encode_symmetric): Do not use the new encryption code.
2990 2002-06-30  Werner Koch  <wk@gnupg.org>
2992         * photoid.c: Use __MINGW32__ to include windows because
2993         HAVE_DOSISH_SYSTEM is also set for OS/2 and plain DOS.  Provide
2994         constant missing in older mingw installations. 
2996 2002-06-21  Stefan Bellon  <sbellon@sbellon.de>
2998         * g10.c [__riscos__]: Moved RISC OS specific stuff to util/riscos.c
2999         and include/util.h.
3001         * gpgv.c [__riscos__]: Likewise.
3003 2002-06-20  David Shaw  <dshaw@jabberwocky.com>
3005         * keydb.h, pkclist.c (select_algo_from_prefs): Allow passing a
3006         suggested algorithm which will be used if available.
3008         * encode.c (encode_crypt, encrypt_filter), sign.c (sign_file): Use
3009         new select_algo_from_prefs feature to check if forcing an
3010         algorithm would violate the recipient preferences.
3012         * photoid.c (get_default_photo_command, show_photos): Use
3013         different default viewers on different platforms.  Currently we
3014         have Win 9x, Win NT (2k, xp), Mac OSX, RISC OS, and "everybody
3015         else".  These are #ifdefs as much as possible to avoid clutter.
3017         * g10.c (strusage, build_list), keyedit.c (show_prefs), main.h,
3018         misc.c (compress_algo_to_string, check_compress_algo), pkclist.c
3019         (algo_available), keygen.c (keygen_set_std_prefs): New
3020         algo_to_string and check functions for compress algorithms.
3022 2002-06-20  Werner Koch  <wk@gnupg.org>
3024         * misc.c (setsysinfo): Removed a #warning for Alpha's uniligedn
3025         trap disabling - it is quite possible that this is a debug relict.
3027 2002-06-20  Stefan Bellon  <sbellon@sbellon.de>
3029         * g10.c [__riscos__]: Added image file system feature.
3031         * gpgv.c [__riscos__]: Added image file system feature.
3033         * photoid.c (show_photos) [__riscos__]: Set RISC OS filetype of
3034         photo id according to MIME type.
3036 2002-06-19  David Shaw  <dshaw@jabberwocky.com>
3038         * hkp.c (parse_hkp_index): Don't leak memory when failing out of a
3039         bad HKP keyserver.
3041         * g10.c (add_notation_data): Relax slightly the rules as to what
3042         can go into a notation name - 2440 allows "@", for example.
3044 2002-06-17  David Shaw  <dshaw@jabberwocky.com>
3046         * import.c (clean_subkeys, import_one): Only allow at most 1
3047         binding sig and at most 1 revocation sig on a subkey, as per
3048         2440:11.1.
3050         * hkp.c (parse_hkp_index, hkp_search): Error if the keyserver
3051         returns an unparseable HKP response.
3053 2002-06-15  David Shaw  <dshaw@jabberwocky.com>
3055         * keyedit.c (show_key_with_all_names), keylist.c
3056         (list_keyblock_print): Show "[expired]" before expired uids.
3058         * keyedit.c (show_key_with_all_names_colon), mainproc.c
3059         (list_node), keylist.c (list_keyblock_colon): Show flag 'e' for
3060         expired user ids.  Use "uat" for user attribute packets instead of
3061         "uid".  Also use '<count> <length>' rather than the fake user id
3062         string on attributes.
3064         * keygen.c (keygen_add_revkey): Remove unused code.
3066         * misc.c (check_permissions): Check directory permissions
3067         properly - they are not special files.
3069         * pkclist.c (expand_id, expand_group, build_pk_list): When
3070         expanding groups before building a pk list, inherit flags from the
3071         original pre-expanded string.
3073         * pubkey-enc.c (is_algo_in_prefs): Don't use prefs from expired
3074         uids.
3076 2002-06-14  David Shaw  <dshaw@jabberwocky.com>
3078         * free-packet.c (copy_signature): Properly copy a signature that
3079         carries a revocation key on it.
3081         * pkclist.c (expand_id, expand_group, build_pk_list): Groups now
3082         work properly when used in the "Enter the user ID" prompt.
3084 2002-06-14  David Shaw  <dshaw@jabberwocky.com>
3086         * keyedit.c (show_key_with_all_names): Display warning if a user
3087         tries to show prefs on a v3 key with a v3 selfsig.
3089         * kbnode.c (dump_kbnode): Show if a uid is expired.
3091         * import.c (merge_blocks, import_revoke_cert): Show user ID
3092         receiving a revocation certificate.
3094         * free-packet.c (cmp_user_ids): Properly compare attribute ids.
3096         * pkclist.c (expand_groups): Maintain the strlist flags while
3097         expanding.  Members of an expansion inherit their flags from the
3098         expansion key.
3100         * options.h, cipher.c (write_header), g10.c (main), keygen.c
3101         (keygen_set_std_prefs): remove the personal_mdc flag.  It no
3102         longer serves a purpose now that the personal preference lists are
3103         split into cipher/digest/zip.
3105 2002-06-14  Timo Schulz  <ts@winpt.org>
3107         * skclist.c (is_insecure): Implemented.
3108         
3109 2002-06-12  David Shaw  <dshaw@jabberwocky.com>
3111         * keyserver.c (keyserver_spawn): Properly handle PROGRAM responses
3112         when they have a CRLF ending.  Noted by Keith Ray.
3114         * keyserver.c (keyserver_spawn): Handle CRLF endings from
3115         keyserver helpers.  Also don't leak the last line worth of memory
3116         from the keyserver response.
3118         * main.h, misc.c (deprecated_warning): New function to warn about
3119         deprecated options and commands.
3121         * g10.c (main), keyserver-internal.h, keyserver.c
3122         (parse_keyserver_uri): Use new deprecated function to warn about
3123         honor-http-proxy, auto-key-retrieve, and x-broken-hkp.
3125 2002-06-11  David Shaw  <dshaw@jabberwocky.com>
3127         * Makefile.am: link gpg with NETLIBS for the built-in HKP access.
3129 2002-06-10  David Shaw  <dshaw@jabberwocky.com>
3131         * options.h, keyserver.c (keyserver_opts), g10.c (main): New
3132         keyserver option "include-subkeys".  This feature already existed,
3133         but now can be turned off.  It defaults to on.
3135         * options.h, keyserver.c (parse_keyserver_options,
3136         keyserver_spawn): There are now enough options to justify making a
3137         structure for the keyserver options rather than a page of
3138         if-then-else-if-then-etc.
3140         * getkey.c (merge_keys_and_selfsig, merge_selfsigs_main): Fix bug
3141         in calculating key expiration dates.
3143 2002-06-09  David Shaw  <dshaw@jabberwocky.com>
3145         * keydb.h, getkey.c (get_user_id_native), import.c (import_one):
3146         Display user ID while importing a key.  Note this applies to both
3147         --import and keyserver --recv-keys.
3149         * exec.c (exec_finish): Log unnatural exit (core dump, killed
3150         manually, etc) for fork/exec/pipe child processes.
3152 2002-06-08  Timo Schulz  <ts@winpt.org>
3154         * encode.c (encode_symmetric): Disable the compat flag
3155         when the expert mode is enabled.
3156         
3157 2002-06-07  David Shaw  <dshaw@jabberwocky.com>
3159         * options.skel, options.h, main.h, keydb.h, pkclist.c
3160         (build_pk_list, expand_groups), g10.c (main, add_group): Add new
3161         "group" command to allow one name to expand into multiple keys.
3162         For simplicity, and to avoid potential loops, we only expand once
3163         - you can't make an alias that points to an alias.
3165         * main.h, g10.c (main), keygen.c (build_personal_digest_list):
3166         Simplify the default digest list - there is really no need for the
3167         other hashes since they will never be used after SHA-1 in the
3168         list.
3170         * options.skel, options.h, g10.c (main), hkp.c (hkp_ask_import,
3171         hkp_export, hkp_search), keyserver.c (parse_keyserver_options,
3172         parse_keyserver_uri, keyserver_work, keyserver_refresh): Make the
3173         "x-broken-hkp" keyserver scheme into keyserver-option
3174         "broken-http-proxy".  Move honor_http_proxy into
3175         keyserver_options.  Canonicalize the three variations of "hkp",
3176         "x-hkp", and "x-broken-hkp" into "hkp".
3178 2002-06-07  Stefan Bellon  <sbellon@sbellon.de>
3180         * g10.c [__riscos__]: Added --attribute-file to do the same as
3181         --attribute-fd, but with a filename not a fd as argument.
3182         Added magic symbol for RISC OS to use different memory management.
3184         * gpgv.c [__riscos__]: Added magic symbol for RISC OS to use
3185         different memory management.
3187 2002-06-06  David Shaw  <dshaw@jabberwocky.com>
3189         * main.h, g10.c (main), keygen.c (build_personal_digest_list): Put
3190         in a default digest preference list consisting of SHA-1, followed
3191         by every other installed digest except MD5.  Note this is the same
3192         as having no digest preference at all except for SHA-1 being
3193         favored.
3195         * options.h, g10.c (main), keygen.c (keygen_set_std_prefs),
3196         pkclist.c (select_algo_from_prefs): Split
3197         --personal-preference-list into three:
3198         --personal-{cipher|digest|compress}-preferences.  This allows a
3199         user to set one without affecting another (i.e. setting only a
3200         digest pref doesn't imply an empty cipher pref).
3202         * exec.c (exec_read): This is a safer way of guessing the return
3203         value of system().  Noted by Stefan Bellon.
3205 2002-06-05  David Shaw  <dshaw@jabberwocky.com>
3207         * hkp.c (parse_hkp_index): Be more robust with keyservers
3208         returning very unparseable responses.
3210         * exec.c (exec_read): Catch and display an error when the remote
3211         process exits unnaturally (i.e. segfault) so the user knows what
3212         happened.  Also fix exec_write stub which has a different number
3213         of arguments now.
3215 2002-06-05  Timo Schulz  <ts@winpt.org>
3217         * encode.c (encode_simple): Ignore the new mode for RFC1991.
3218         * mainproc.c (symkey_decrypt_sesskey): Better check for weird
3219         keysizes.
3220         
3221 2002-06-05  Timo Schulz  <ts@winpt.org>
3223         * encode.c (encode_sesskey): New.
3224         (encode_simple): Use it here. But by default we use the compat
3225         mode which supress to generate encrypted session keys.
3226         
3227 2002-06-05  Timo Schulz  <ts@winpt.org>
3229         * mainproc.c (symkey_decrypt_sesskey): New.
3230         (proc_symkey_enc): Support for encrypted session keys.
3231         
3232 2002-06-04  David Shaw  <dshaw@jabberwocky.com>
3234         * sign.c (hash_for, sign_file): When encrypting and signing at the
3235         same time, consult the various hash prefs to pick a hash algorithm
3236         to use.  Pass in a 160-bit hint if any of the signing keys are
3237         DSA.
3239         * keydb.h, pkclist.c (select_algo_from_prefs, algo_available):
3240         Pass a "hints" opaque pointer in to let the caller give hints as
3241         to what algorithms would be acceptable.  The only current hint is
3242         for PREFTYPE_HASH to require a 160-bit hash for DSA.  Change all
3243         callers in encode.c (encode_crypt, encrypt_filter) and sign.c
3244         (sign_file).  If we settle on MD5 as the best algorithm based
3245         solely on recepient keys and SHA1 is also a possibility, use SHA1
3246         unless the user intentionally chose MD5.  This is as per 2440:13.
3248         * exec.c (make_tempdir): Fix duplicated filename problem.
3250 2002-06-03  David Shaw  <dshaw@jabberwocky.com>
3252         * packet.h, parse-packet.c (enum_sig_subpkt): Report back from
3253         enum_sig_subpkt when a subpacket is critical and change all
3254         callers in keylist.c (show_policy_url, show_notation), mainproc.c
3255         (print_notation_data), and pkclist.c (do_show_revocation_reason).
3257         * keylist.c (show_policy_url, show_notation): Display if the
3258         policy or notation is critical.
3259         
3260 2002-06-03  David Shaw  <dshaw@jabberwocky.com>
3262         * main.h, g10.c (main), keylist.c (dump_attribs, set_attrib_fd,
3263         list_keyblock_print, list_keyblock_colon), status.h, status.c
3264         (get_status_string): New --attribute-fd feature to dump the
3265         contents of attribute subpackets for frontends.  If --status-fd is
3266         also used, then a new status tag ATTRIBUTE is provided for each
3267         subpacket.
3269         * packet.h, getkey.c (fixup_uidnode, merge_selfsigs_main,
3270         merge_selfsigs_subkey), parse-packet.c (setup_user_id): Keep track
3271         of the expiration time of a user ID, and while we're at it, use
3272         the expired flag from the selfsig rather than reparsing the
3273         SIG_EXPIRE subpacket.
3275         * photoid.c (generate_photo_id): When adding a new photo ID,
3276         showing the photo for confirmation is not safe when noninteractive
3277         since the "user" may not be able to dismiss a viewer window.
3278         Noted by Timo Schulz.
3279         
3280 2002-06-03  David Shaw  <dshaw@jabberwocky.com>
3282         * options.skel: Sample photo viewers for Win32.
3284         * misc.c (pct_expando): Use the seckey for %k/%K if the pubkey is
3285         not available.
3287         * photoid.h, photoid.c (show_photos): Include the seckey in case a
3288         user tries to view a photo on a secret key, and change all callers
3289         in keyedit.c (menu_showphoto), keylist.c (list_keyblock_print),
3290         and photoid.c (generate_photo_id).
3292 2002-06-02  David Shaw  <dshaw@jabberwocky.com>
3294         * photoid.c (show_photos): Work properly when not called with a
3295         public key.
3297 2002-05-31  David Shaw  <dshaw@jabberwocky.com>
3299         * sign.c (mk_notation_and_policy): Free unneeded buffer.
3301         * hkp.c (parse_hkp_index): Properly handle the '&' character
3302         (i.e. "&amp;") in HKP responses.
3304         * getkey.c (merge_selfsigs_main): Fix reversed expiration time
3305         check with self-sigs.
3307         * keyedit.c (sign_uids): When making a new self-sig on a v3 key,
3308         make a v3 self-sig unless it is currently a v3 self-sig being
3309         promoted to v4.
3311 2002-05-31  Timo Schulz  <ts@winpt.org>
3313         * pkclist.c (do_show_revocation_reason): Don't use capital
3314         letters for non-interactive output.
3315         (show_revocation_reason): Now it is global.
3316         * pubkey-enc.c (get_it): Show if the key has been revoked.
3317         
3318 2002-05-30  David Shaw  <dshaw@jabberwocky.com>
3320         * sign.c (write_signature_packets, sign_file, clearsign_file,
3321         sign_symencrypt_file): Make a v4 signature if a policy URL or
3322         notation is set, unless v3 sigs are forced via rfc1991 or
3323         force-v3-sigs.  Also remove some doubled code and clarify an error
3324         message (we don't sign in PGP2 mode - just detach-sign).
3326         * parse-packet.c (parse_one_sig_subpkt): Add KS_FLAGS to the "any
3327         size" section.
3329 2002-05-29  David Shaw  <dshaw@jabberwocky.com>
3331         * keygen.c (keygen_set_std_prefs, add_feature_mdc): Use "mdc" and
3332         "no-mdc" in the prefs string to allow switching on and off the MDC
3333         feature.  This is needed to properly export a key from GnuPG for
3334         use on PGP which does not support MDC - without this, MDC-capable
3335         implementations will still try and generate MDCs which will break
3336         PGP.
3338         * keygen.c (keygen_get_std_prefs): Show "[mdc]" in prefs string if
3339         it is enabled.
3341         * options.h, g10.c (main), cipher.c (write_header), keygen.c
3342         (keygen_set_std_prefs): For consistency, allow the user to specify
3343         mdc/no-mdc in the --personal-preference-list.  If disabled, it
3344         acts just like --disable-mdc.
3346 2002-05-29  David Shaw  <dshaw@jabberwocky.com>
3348         * options.h, exec.c: Add some debugging info, using the 1024 debug
3349         flag.
3351         * exec.c (win_system): New system()-like function for win32 that
3352         does not return until the child process terminates.  Of course,
3353         this doesn't help if the process itself exits before it is
3354         finished.
3356 2002-05-29  Werner Koch  <wk@gnupg.org>
3358         * encode.c (encode_simple): Intialize PKT when --no-literal is used.
3360         * keyedit.c (show_key_with_all_names_colon): Renamed the record
3361         for revocation keys to "rvk".
3363 2002-05-27  Werner Koch  <wk@gnupg.org>
3365         * keyedit.c (show_key_with_all_names_colon): New.
3366         (show_key_with_all_names): Divert to new function when required.
3367         Sanitize printing of revoker name.
3369 2002-05-27  David Shaw  <dshaw@jabberwocky.com>
3371         * build-packet.c (build_sig_subpkt): Handle setting sig flags for
3372         certain subpacket types (notation, policy url, exportable,
3373         revocable).  keyedit.c (sign_mk_attrib): Flags no longer need to
3374         be set here.
3376         * packet.h, parse-packet.c (parse_one_sig_subpkt), build-packet.c
3377         (build_sig_subpkt): Call parse_one_sig_subpkt to sanity check
3378         buffer lengths before building a sig subpacket.
3380 2002-05-26  David Shaw  <dshaw@jabberwocky.com>
3382         * sign.c (mk_notation_and_policy): Include secret key to enable %s
3383         expandos, and pass notations through pct_expando as well.
3385         * main.h, misc.c (pct_expando): Add %s and %S expandos for
3386         signer's keyid.
3388 2002-05-25  David Shaw  <dshaw@jabberwocky.com>
3390         * g10.c (strusage, build_list): Add compress algorithms to
3391         --version list.  Show algorithm numbers when --verbose --version
3392         is done.
3394 2002-05-22  David Shaw  <dshaw@jabberwocky.com>
3396         * options.h, main.h, keygen.c (keygen_set_set_prefs,
3397         keygen_get_std_prefs, keygen_upd_std_prefs), keyedit.c
3398         (keyedit_menu), g10.c (main), pkclist.c (select_algo_from_prefs):
3399         Add --personal-preference-list which allows the user to factor in
3400         their own preferred algorithms when the preference lists are
3401         consulted.  Obviously, this does not let the user violate a
3402         recepient's preferences (and the RFC) - this only influences the
3403         ranking of the agreed-on (and available) algorithms from the
3404         recepients.  Suggested by David Hollenberg.
3406         * options.h, keygen.c (keygen_set_std_prefs), g10.c (main): Rename
3407         --preference-list to --default-preference-list (as that is what it
3408         really is), and make it a true default in that if the user selects
3409         "default" they get this list and not the compiled-in list.
3411 2002-05-22  Werner Koch  <wk@gnupg.org>
3413         * g10.c (main): Add missing LF in a info printout and made it
3414         translatable.  Noted by Michael Tokarev.
3416 2002-05-21  Werner Koch  <wk@gnupg.org>
3418         * g10.c (main): Removed the undef of USE_SHM_COPROCESSING which
3419         was erroneously introduced on 2002-01-09.
3421         * signal.c (got_fatal_signal): Don't write the Nul to stderr.
3422         Reported by David Hollenberg.
3424 2002-05-18  David Shaw  <dshaw@jabberwocky.com>
3426         * main.h, g10.c (main), revoke.c (gen_desig_revoke): Generate a
3427         designated revocation via --desig-revoke
3429         * keyedit.c (keyedit_menu, menu_addrevoker): New "addrevoker"
3430         command to add a designated revoker to a key.
3432 2002-05-17  David Shaw  <dshaw@jabberwocky.com>
3434         * gpgv.c: Add stub for get_ownertrust().
3436         * g10.c (main): --allow-freeform-uid should be implied by
3437         OpenPGP.  Add --no-allow-freeform-uid.
3439         * keyedit.c (sign_uids): Issue a warning when signing a
3440         non-selfsigned uid.
3442         * getkey.c (merge_selfsigs_main): If a key has no selfsigs, and
3443         allow-non-selfsigned-uid is not set, still try and make the key
3444         valid by checking all uids for a signature from an ultimately
3445         trusted key.
3447 2002-05-16  David Shaw  <dshaw@jabberwocky.com>
3449         * main.h, keygen.c (keygen_add_revkey): Add revocation key
3450         subpackets to a signature (callable by
3451         make_keysig_packet). (write_direct_sig): Write a 1F direct key
3452         signature. (parse_revocation_key): Parse a string in
3453         algo:fpr:sensitive format into a revocation
3454         key. (get_parameter_revkey, do_generate_keypair): Call above
3455         functions when prompted from a batch key generation file.
3457         * build-packet.c (build_sig_subpkt): Allow multiple revocation key
3458         subpackets in a single sig.
3460         * keydb.h, getkey.c (get_seckey_byfprint): Same as
3461         get_pubkey_byfprint, except for secret keys.  We only know the
3462         fingerprint of a revocation key, so this is needed to retrieve the
3463         secret key needed to issue a revokation.
3465         * packet.h, parse-packet.c (parse_signature, parse_revkeys): Split
3466         revkey parsing off into a new function that can be used to reparse
3467         after manipulating the revkey list.
3469         * sign.c (make_keysig_packet): Ability to make 1F direct key
3470         signatures.
3472 2002-05-15  David Shaw  <dshaw@jabberwocky.com>
3474         * options.skel: keyserver.pgp.com is gone, so list pgp.surfnet.nl
3475         as a sample LDAP server instead.
3477         * getkey.c (merge_selfsigs_main): Properly handle multiple
3478         revocation keys in a single packet.  Properly handle revocation
3479         keys that are in out-of-order packets.  Remove duplicates in
3480         revocation key list.
3482 2002-05-14  Timo Schulz   <ts@winpt.org>
3484         * exec.c (make_tempdir) [MINGW32]: Added missing '\'.
3485         
3486 2002-05-14  Stefan Bellon  <sbellon@sbellon.de>
3488         * exec.c (make_tempdir): Make use of EXTSEP_S instead of hardcoded
3489         dot as extension separator.
3491 2002-05-13  David Shaw  <dshaw@jabberwocky.com>
3493         * photoid.c (show_photos): Use the long keyid as the filename for
3494         the photo.  Use the short keyid as the filename on 8.3 systems.
3496         * exec.h, exec.c (make_tempdir, exec_write, exec_finish): Allow
3497         caller to specify filename.  This should make things easier on
3498         windows and macs where the file extension is required, but a whole
3499         filename is even better.
3501         * keyedit.c (show_key_with_all_names, show_prefs): Show proper
3502         prefs for a v4 key uid with no selfsig at all.
3504         * misc.c (check_permissions): Don't check permissions on
3505         non-normal files (pipes, character devices, etc.)
3507 2002-05-11  Werner Koch  <wk@gnupg.org>
3509         * mainproc.c (proc_symkey_enc): Avoid segv in case the parser
3510         encountered an invalid packet.
3512         * keyserver.c (keyserver_export): Get confirmation before sending
3513         all keys.
3515 2002-05-10  Stefan Bellon  <sbellon@sbellon.de>
3517         * g10.c, hkp.c, keyedit.c, keyserver.c: Replaced all occurrances
3518         of strcasecmp with ascii_strcasecmp and all occurrances of
3519         strncasecmp with ascii_memcasecmp.
3521 2002-05-10  David Shaw  <dshaw@jabberwocky.com>
3523         * packet.h, getkey.c (fixup_uidnode), keyedit.c (show_prefs): Show
3524         assumed prefs for hash and compression as well as the cipher pref.
3525         Show assumed prefs if there are no prefs at all on a v4
3526         self-signed key.
3528         * options.h, g10.c (main), sign.c (make_keysig_packet): New
3529         --cert-digest-algo function to override the default key signing
3530         hash algorithm.
3532 2002-05-09  David Shaw  <dshaw@jabberwocky.com>
3534         * getkey.c (merge_selfsigs_main): Make sure the revocation key
3535         list starts clean as this function may be called more than once
3536         (e.g. from functions in --edit).
3538         * g10.c, encode.c (encode_crypt), sign.c (sign_file,
3539         sign_symencrypt_file): Make --compress-algo work like the
3540         documentation says.  It should be like --cipher-algo and
3541         --digest-algo in that it can override the preferences calculation
3542         and impose the setting the user wants.  No --compress-algo setting
3543         allows the usual preferences calculation to take place.
3545         * main.h, compress.c (compress_filter): use new
3546         DEFAULT_COMPRESS_ALGO define, and add a sanity check for compress
3547         algo value.
3549 2002-05-08  David Shaw  <dshaw@jabberwocky.com>
3551         * pkclist.c (select_algo_from_prefs): There is an assumed
3552         compression preference for uncompressed data.
3554 2002-05-07  David Shaw  <dshaw@jabberwocky.com>
3556         * options.h, g10.c (main), getkey.c (finish_lookup), pkclist.c
3557         (algo_available): --pgp7, identical to --pgp6 except that it
3558         permits a few algorithms that PGP 7 added: AES128, AES192, AES256,
3559         and TWOFISH.  Any more of these --pgpX flags, and it'll be time to
3560         start looking at a generic --emulate-pgp X option.
3562         * export.c (do_export_stream): Warn the user when exporting a
3563         secret key if it or any of its secret subkeys are protected with
3564         SHA1 while simple_sk_checksum is set.
3566         * parse-packet.c (parse_key): Show when the SHA1 protection is
3567         used in --list-packets.
3569         * options.h, build-packet.c (do_comment), g10.c (main): Rename
3570         --no-comment as --sk-comments/--no-sk-comments (--no-comment still
3571         works) and make the default be --no-sk-comments.
3573 2002-05-07  Werner Koch  <wk@gnupg.org>
3575         * keygen.c (get_parameter_algo): Never allow generation of the
3576         deprecated RSA-E or RSA-S flavors of PGP RSA.
3577         (ask_algo): Allow generation of RSA sign and encrypt in expert
3578         mode.  Don't allow ElGamal S+E unless in expert mode.
3579         * helptext.c: Added entry keygen.algo.rsa_se.
3581 2002-05-07  David Shaw  <dshaw@jabberwocky.com>
3583         * keyedit.c (sign_uids): If --expert is set, allow re-signing a
3584         uid to promote a v3 self-sig to a v4 one.  This essentially
3585         deletes the old v3 self-sig and replaces it with a v4 one.
3587         * packet.h, parse-packet.c (parse_key), getkey.c
3588         (merge_keys_and_selfsig, merge_selfsigs_main): a v3 key with a v4
3589         self-sig must never let the v4 self-sig express a key expiration
3590         time that extends beyond the original v3 expiration time.
3592 2002-05-06  David Shaw  <dshaw@jabberwocky.com>
3594         * keyedit.c (sign_uids): When making a self-signature via "sign"
3595         don't ask about sig level or expiration, and include the usual
3596         preferences and such for v4 self-sigs.  (menu_set_preferences):
3597         Convert uids from UTF8 to native before printing.
3599         * keyedit.c (sign_uids): Convert uids from UTF8 to native before
3600         printing.  (menu_set_primary_uid): Show error if the user tries to
3601         make a uid with a v3 self-sig primary.
3603 2002-05-05  David Shaw  <dshaw@jabberwocky.com>
3605         * import.c (import_one): When merging with a key we already have,
3606         don't let a key conflict (same keyid but different key) stop the
3607         import: just skip the bad key and continue.
3609         * exec.c (make_tempdir): Under Win32, don't try environment
3610         variables for temp directories - GetTempDir tries environment
3611         variables internally, and it's better not to second-guess it in
3612         case MS adds some sort of temp dir handling to Windows at some
3613         point.
3615 2002-05-05  Timo Schulz  <ts@winpt.org>
3617         * mainproc.c (proc_symkey_enc): Don't ask for a passphrase
3618         in the list only mode.
3619         
3620 2002-05-05  David Shaw  <dshaw@jabberwocky.com>
3622         * keyserver.c (keyserver_refresh): --refresh-keys implies
3623         --merge-only so as not to import keys with keyids that match the
3624         ones being refreshed.  Noted by Florian Weimer.
3626 2002-05-04  Stefan Bellon  <sbellon@sbellon.de>
3628         * free-packet.c (copy_public_key): Don't call m_alloc(0), therefore
3629         added consistency check for revkey and numrefkeys.
3631         * getkey.c (check_revocation_keys): Added consistency check for
3632         revkey and numrefkeys.
3634         * keyedit.c (show_key_with_all_names): Likewise.
3636 2002-05-03  David Shaw  <dshaw@jabberwocky.com>
3638         * photoid.c: Provide default image viewer for Win32.
3640         * misc.c (pct_expando): %t means extension, not name ("jpg", not
3641         "jpeg").
3643         * keyserver.c (keyserver_spawn), photoid.c (show_photos), exec.h,
3644         exec.c: Allow the caller to determine the temp file extension when
3645         starting an exec_write and change all callers.
3647         * keyedit.c (sign_uids): Nonrevocable key signatures cause an
3648         automatic promotion to v4.
3650         * exec.c: Provide stubs for exec_ functions when NO_EXEC is
3651         defined.
3653 2002-05-02  David Shaw  <dshaw@jabberwocky.com>
3655         * photoid.h, photoid.c (parse_image_header, image_type_to_string):
3656         Useful functions to return data about an image.
3658         * packet.h, parse-packet.c (make_attribute_uidname,
3659         parse_attribute_subpkts, parse_attribute), photoid.h, photoid.c
3660         (show_photos): Handle multiple images in a single attribute
3661         packet.
3663         * main.h, misc.c (pct_expando), sign.c (mk_notation_and_policy),
3664         photoid.c (show_photos): Simpler expando code that does not
3665         require using compile-time string sizes.  Call
3666         image_type_to_string to get image strings (i.e. "jpg",
3667         "image/jpeg").  Change all callers.
3669         * keyedit.c (menu_showphoto), keylist.c (list_keyblock_print):
3670         Allow viewing multiple images within a single attribute packet.
3672         * gpgv.c: Various stubs for link happiness.
3674 2002-05-02  David Shaw  <dshaw@jabberwocky.com>
3676         * build-packet.c (build_sig_subpkt), keyedit.c (sign_uids),
3677         options.h, sign.c (mk_notation_and_policy), g10.c (main,
3678         add_notation_data, add_policy_url (new), check_policy_url
3679         (removed)): Allow multiple policy URLs on a given signature.
3680         Split "--notation-data" into "--cert-notation" and
3681         "--sig-notation" so the user can set different policies for key
3682         and data signing.  For backwards compatibility, "--notation-data"
3683         sets both, as before.
3685 2002-05-02  Werner Koch  <wk@gnupg.org>
3687         * options.skel: Removed the comment on trusted-keys because this
3688         option is now deprecated.
3690 2002-05-01  David Shaw  <dshaw@jabberwocky.com>
3692         * keyedit.c (menu_adduid): 2440bis04 says that multiple attribute
3693         packets on a given key are legal.
3695         * keyserver.c (keyserver_refresh): the fake v3 keyid hack applies
3696         to "mailto" URLs as well since they are also served by pksd.
3698 2002-04-29  Werner Koch  <wk@gnupg.org>
3700         Added a copyright year for files changed this year.
3702 2002-04-25  Werner Koch  <wk@gnupg.org>
3704         * g10.c, options.h: New options --display, --ttyname, --ttytype,
3705         --lc-ctype, --lc-messages to be used with future versions of the
3706         gpg-agent. 
3707         * passphrase.c (agent_send_option,agent_send_all_options): New.
3708         (agent_open): Send options to the agent.
3710         * trustdb.c (update_ownertrust, clear_ownertrust): Do an explicit
3711         do_sync because revalidation_mark does it only if when the
3712         timestamp actually changes.
3714 2002-04-23  David Shaw  <dshaw@jabberwocky.com>
3716         * main.h, keygen.c (do_generate_keypair), keylist.c
3717         (print_signature_stats, list_all, list_one, list_keyblock,
3718         list_keyblock_print, list_keyblock_colon): After generating a new
3719         key, show the key information (name, keyid, fingerprint, etc.)
3720         Also do not print uncheckable signatures (missing key..) in
3721         --check-sigs.  Print statistics (N missing keys, etc.) after
3722         --check-sigs.
3724         * keyedit.c (sign_uids): When signing a key with an expiration
3725         date on it, the "Do you want your signature to expire at the same
3726         time?" question should default to YES.
3728 2002-04-22  David Shaw  <dshaw@jabberwocky.com>
3730         * parse-packet.c (parse_plaintext), packet.h, plaintext.c
3731         (handle_plaintext): Fix bug in handling literal packets with
3732         zero-length data (no data was being confused with partial body
3733         length).
3735         * misc.c (pct_expando), options.skel: %t means extension ("jpg").
3736         %T means MIME type ("image/jpeg").
3738         * import.c (import_one): Only trigger trust update if the keyring
3739         is actually changed.
3741         * export.c (do_export_stream): Missing a m_free.
3743 2002-04-22  Stefan Bellon  <sbellon@sbellon.de>
3745         * keyid.c (expirestr_from_sk, expirestr_from_sig): Added _() to
3746         string constant.
3748         * exec.c (make_tempdir) [__riscos__]: Better placement of
3749         temporary file.
3751 2002-04-20  David Shaw  <dshaw@jabberwocky.com>
3753         * keygen.c (generate_subkeypair): 2440bis04 adds that creating
3754         subkeys on v3 keys is a MUST NOT.
3756         * getkey.c (finish_lookup): The --pgp6 "use the primary key"
3757         behavior should only apply while data signing and not encryption.
3758         Noted by Roger Sondermann.
3760 2002-04-19  Werner Koch  <wk@gnupg.org>
3762         * keygen.c (keygen_set_std_prefs): Put back 3DES because the RFC
3763         says it is good form to do so.
3765 2002-04-19  David Shaw  <dshaw@jabberwocky.com>
3767         * keyedit.c (menu_deluid): Only cause a trust update if we delete
3768         a non-revoked user id.
3770         * hkp.c (hkp_ask_import), keyserver.c (parse_keyserver_options,
3771         keyserver_spawn), options.h: Remove fast-import keyserver option
3772         (no longer meaningful).
3774         * g10.c (main), keyedit.c (sign_uids), options.h: Change
3775         --default-check-level to --default-cert-check-level as it makes
3776         clear what it operates on.
3778         * g10.c (main): --pgp6 also implies --no-ask-sig-expire.
3780         * delkey.c (do_delete_key): Comment.
3782         * keyedit.c (sign_uids, keyedit_menu, menu_deluid, menu_delsig,
3783         menu_expire, menu_revsig, menu_revkey): Only force a trustdb check
3784         if we did something that changes it.
3786         * g10.c: add "--auto-check-trustdb" to override a
3787         "--no-auto-check-trustdb"
3789 2002-04-19  Werner Koch  <wk@gnupg.org>
3791         * tdbio.c (tdbio_write_nextcheck): Return a status whether the
3792         stamp was actually changed.
3793         * trustdb.c (revalidation_mark): Sync the changes.  Removed the
3794         sync operation done by its callers.
3795         (get_validity): Add logic for maintaining a pending_check flag.
3796         (clear_ownertrust): New.
3797         
3798         * keyedit.c (sign_uids): Don't call revalidation_mark depending on
3799         primary_pk.
3800         (keyedit_menu): Call revalidation_mark after "trust".
3801         (show_key_with_all_names): Print a warning on the wrong listed key
3802         validity.
3804         * delkey.c (do_delete_key): Clear the owenertrust information when
3805         deleting a public key.
3806         
3807 2002-04-18  Werner Koch  <wk@gnupg.org>
3809         * seskey.c (encode_md_value): Print an error message if a wrong
3810         digest algorithm is used with DSA.  Changed all callers to cope
3811         with a NULL return.  Problem noted by Imad R. Faiad.
3813 2002-04-18  David Shaw  <dshaw@jabberwocky.com>
3815         * trustdb.c (mark_usable_uid_certs): Properly handle nonrevocable
3816         signatures that can expire.  In short, the only thing that can
3817         override an unexpired nonrevocable signature is another unexpired
3818         nonrevocable signature.
3820         * getkey.c (finish_lookup): Always use primary signing key for
3821         signatures when --pgp6 is on since pgp6 and 7 do not understand
3822         signatures made by signing subkeys.
3824 2002-04-18  Werner Koch  <wk@gnupg.org>
3826         * trustdb.c (validate_keys): Never schedule a nextcheck into the
3827         past.
3828         (validate_key_list): New arg curtime use it to set next_expire.
3829         (validate_one_keyblock): Take the current time from the caller.
3830         (clear_validity, reset_unconnected_keys): New.
3831         (validate_keys): Reset all unconnected keys.
3833         * getkey.c (premerge_public_with_secret): Fixed 0x12345678! syntax
3834         for use with secret keys.
3835         (lookup): Advance the searchmode after a search FIRST.
3837         * seckey-cert.c (do_check): Always calculate the old checksum for
3838         use after unprotection.
3840         * g10.c, options.skel: New option --no-escape-from.  Made
3841         --escape-from and --force-v3-sigs the default and removed them
3842         from the options skeleton.
3844 2002-04-16  Werner Koch  <wk@gnupg.org>
3846         * parse-packet.c (parse_key): Support a SHA1 checksum as per
3847         draft-rfc2440-bis04.
3848         * packet.h (PKT_secret_key): Add field sha1chk.
3849         * seckey-cert.c (do_check): Check the SHA1 checksum
3850         (protect_secret_key): And create it.
3851         * build-packet.c (do_secret_key): Mark it as sha-1 protected.
3852         * g10.c, options.h: New option --simple-sk-checksum.
3854 2002-04-13  David Shaw  <dshaw@jabberwocky.com>
3856         * parse-packet.c (parse_signature): Minor fix - signatures should
3857         expire at their expiration time and not one second later.
3859         * keygen.c (proc_parameter_file): Allow specifying preferences
3860         string (i.e. "s5 s2 z1 z2", etc) in a batchmode key generation
3861         file.
3863         * keyedit.c (keyedit_menu): Print standard error message when
3864         signing a revoked key (no new translation).
3866         * getkey.c (merge_selfsigs): Get the default set of key prefs from
3867         the real (not attribute) primary uid.
3869 2002-04-12  David Shaw  <dshaw@jabberwocky.com>
3871         * pkclist.c (build_pk_list): Fix bug that allowed a key to be
3872         selected twice in batch mode if one instance was the default
3873         recipient and the other was an encrypt-to.  Noted by Stefan
3874         Bellon.
3876         * parse-packet.c (dump_sig_subpkt): Show data in trust and regexp
3877         sig subpackets.
3879         * keyedit.c (keyedit_menu): Use new function real_uids_left to
3880         prevent deleting the last real (i.e. non-attribute) uid.  Again,
3881         according to the attribute draft. (menu_showphoto): Make another
3882         string translatable.
3884 2002-04-11  David Shaw  <dshaw@jabberwocky.com>
3886         * build-packet.c (build_sig_subpkt): Delete subpackets from both
3887         hashed and unhashed area on update.  (find_subpkt): No longer
3888         needed.
3890         * keyedit.c (sign_uids): With --pgp2 on, refuse to sign a v3 key
3891         with a v4 signature.  As usual, --expert overrides.  Try to tweak
3892         some strings to a closer match so they can all be translated in
3893         one place.  Use different helptext keys to allow different help
3894         text for different questions.
3896         * keygen.c (keygen_upd_std_prefs): Remove preferences from both
3897         hashed and unhashed areas if they are not going to be used.
3899 2002-04-10  David Shaw  <dshaw@jabberwocky.com>
3901         * misc.c (pct_expando), options.skel: Use %t to indicate type of a
3902         photo ID (in this version, it's always "jpeg").  Also tweak string
3903         expansion loop to minimize reallocs.
3905         * mainproc.c (do_check_sig): Variable type fix.
3907         * keyedit.c (menu_set_primary_uid): Differentiate between true
3908         user IDs and attribute user IDs when making one of them primary.
3909         That is, if we are making a user ID primary, we alter user IDs.
3910         If we are making an attribute packet primary, we alter attribute
3911         packets.  This matches the language in the latest attribute packet
3912         draft.
3914         * keyedit.c (sign_uids): No need for the empty string hack.
3916         * getkey.c (fixup_uidnode): Only accept preferences from the
3917         hashed segment of the self-sig.
3919 2002-04-10  Werner Koch  <wk@gnupg.org>
3921         * tdbio.c (migrate_from_v2): Fixed the offset to read the old
3922         ownertrust value and only add entries to the table if we really
3923         have a value.
3925 2002-04-08  David Shaw  <dshaw@jabberwocky.com>
3927         * status.h, status.c (get_status_string): Add KEYEXPIRED, EXPSIG,
3928         and EXPKEYSIG.  Add "deprecated-use-keyexpired-instead" to
3929         SIGEXPIRED.
3931         * sig-check.c (do_check): Start transition from SIGEXPIRED to
3932         KEYEXPIRED, since the actual event is signature verification by an
3933         expired key and not an expired signature. (do_signature_check,
3934         packet.h): Rename as signature_check2, make public, and change all
3935         callers.
3937         * mainproc.c (check_sig_and_print, do_check_sig): Use status
3938         EXPSIG for an expired, but good, signature.  Add the expiration
3939         time (or 0) to the VALIDSIG status line.  Use status KEYEXPSIG for
3940         a good signature from an expired key.
3942         * g10.c (main): remove checks for no arguments now that argparse
3943         does it.
3945 2002-04-06  Werner Koch  <wk@gnupg.org>
3947         * keyring.c (keyring_get_keyblock): Disable the keylist mode here.
3949         * encode.c (encode_simple, encode_crypt): Only test on compressed
3950         files if a compress level was not explicity set.
3952         * keygen.c (keygen_set_std_prefs): Removed Blowfish and Twofish
3953         from the list of default preferences, swapped the preferences of
3954         RMD160 and SHA1.  Don't include a preference to 3DES unless the
3955         IDEA kludge gets used.
3957         * free-packet.c (free_packet): call free_encrypted also for
3958         PKT_ENCRYPTED_MDC.
3960         * compress.c (release_context): New.
3961         (handle_compressed): Allocate the context and setup a closure to
3962         release the context.  This is required because there is no
3963         guarabntee that the filter gets popped from the chain at the end
3964         of the function.  Problem noted by Timo and probably also the
3965         cause for a couple of other reports.
3966         (compress_filter): Use the release function if set.
3968         * tdbio.c [__CYGWIN32__]: Don't rename ftruncate.  Noted by
3969         Disastry.
3971         * parse-packet.c (parse_signature): Put parens around a bit test.
3973         * exec.c (make_tempdir): Double backslash for TMP directory
3974         creation under Windows.  Better strlen the DIRSEP_S constants for
3975         allocation measurements.
3977         * decrypt.c (decrypt_messages): Release the passphrase aquired
3978         by get_last_passphrase.
3980 2002-04-02  Werner Koch  <wk@gnupg.org>
3982         * Makefile.am (EXTRA_DIST): Removed OPTIONS an pubring.asc - they
3983         are no longer of any use. 
3985 2002-04-03  David Shaw  <dshaw@jabberwocky.com>
3987         * keyserver.c (parse_keyserver_options): fix auto-key-retrieve to
3988         actually work as a keyserver-option (noted by Roger Sondermann).
3990         * keylist.c (reorder_keyblock): do not reorder the primary
3991         attribute packet - the first user ID must be a genuine one.
3993 2002-03-31  David Shaw  <dshaw@jabberwocky.com>
3995         * keylist.c (list_keyblock_colon): Fix ownertrust display with
3996         --with-colons.
3998         * keygen.c (generate_user_id), photoid.c (generate_photo_id):
3999         Properly initialize the user ID refcount.  A few more "y/n" ->
4000         "y/N" in photoid.c.
4002         * keyedit.c (ask_revoke_sig): Warn the user if they are about to
4003         revoke an expired sig (not a problem, but they should know).  Also
4004         tweak a few prompts to change "y/n" to "y/N", which is how most
4005         other prompts are written.
4007         * keyserver.c (keyserver_search_prompt): Control-d escapes the
4008         keyserver search prompt.
4010         * pkclist.c (show_revocation_reason & callers): If a subkey is
4011         considered revoked solely because the parent key is revoked, print
4012         the revocation reason from the parent key.
4014         * trustdb.c (get_validity): Allow revocation/expiration to apply
4015         to a uid/key with no entry in the trustdb.
4017 2002-03-29  David Shaw  <dshaw@jabberwocky.com>
4019         * keyserver.c (printunquoted): unquote backslashes from keyserver
4020         searches
4022         * hkp.c (write_quoted): quote backslashes from keyserver searches
4024 2002-03-26  Werner Koch  <wk@gnupg.org>
4026         * keygen.c (ask_keysize): Removed the warning for key sizes > 1536.
4028 2002-03-25  Werner Koch  <wk@gnupg.org>
4030         * keyedit.c (sign_uids): Use 2 strings and not a %s so that
4031         translations can be done the right way.
4032         * helptext.c: Fixed small typo.
4034 2002-03-23  David Shaw  <dshaw@jabberwocky.com>
4036         * import.c (append_uid, merge_sigs): it is okay to import
4037         completely non-signed uids now (with --allow-non-selfsigned-uid).
4039         * getkey.c (get_primary_uid, merge_selfsigs_main): do not choose
4040         an attribute packet (i.e. photo) as primary uid.  This prevents
4041         oddities like "Good signature from [image of size 2671]".  This is
4042         still not perfect (one can still select an attribute packet as
4043         primary in --edit), but is closer to the way the draft is going.
4045         * g10.c (build_list): algorithms should include 110.
4047         * g10.c (main): --pgp2 implies --no-ask-sig-expire and
4048         --no-ask-cert-expire as those would cause a v4 sig/cert.
4050         * armor.c (is_armor_header): be more lenient in what constitutes a
4051         valid armor header (i.e. -----BEGIN blah blah-----) as some
4052         Windows programs seem to add spaces at the end.  --openpgp makes
4053         it strict again.
4055 2002-03-18  David Shaw  <dshaw@jabberwocky.com>
4057         * keyserver.c (keyserver_search_prompt): Properly handle a "no
4058         keys found" case from the internal HKP code (external HKP is ok).
4059         Also, make a COUNT -1 (i.e. streamed) keyserver response a little
4060         more efficient.
4062         * g10.c (main): Add --no-allow-non-selfsigned-uid
4064 2002-03-17  David Shaw  <dshaw@jabberwocky.com>
4066         * g10.c (main): --openpgp implies --allow-non-selfsigned-uid.
4068         * getkey.c (merge_selfsigs_main): If none of the uids are primary
4069         (because none are valid) then pick the first to be primary (but
4070         still invalid).  This is for cosmetics in case some display needs
4071         to print a user ID from a non-selfsigned key.  Also use
4072         --allow-non-selfsigned-uid to make such a key valid and not
4073         --always-trust.  The key is *not* automatically trusted via
4074         --allow-non-selfsigned-uid.
4076         * mainproc.c (check_sig_and_print): Make sure non-selfsigned uids
4077         print [uncertain] on verification even though one is primary now.
4079         * getkey.c (merge_selfsigs): If the main key is not valid, then
4080         neither are the subkeys.
4082         * import.c (import_one): Allow --allow-non-selfsigned-uid to work
4083         on completely unsigned keys.  Print the uids in UTF8.  Remove
4084         mark_non_selfsigned_uids_valid().
4086         * keyedit.c (show_key_with_all_names): Show revocation key as
4087         UTF8.
4089         * sign.c (clearsign_file): Allow --not-dash-escaped to work with
4090         v3 keys.
4092 2002-03-14  Werner Koch  <wk@gnupg.org>
4094         * main.h: Changed the default algorithms to CAST5 and SHA1.
4096 2002-03-13  David Shaw  <dshaw@jabberwocky.com>
4098         * import.c (chk_self_sigs): Show which user ID a bad self-sig
4099         (invald sig or unsupported public key algorithm) resides on.
4101         * import.c (chk_self_sigs): any valid self-sig should mark a user
4102         ID or subkey as valid - otherwise, an attacker could DoS the user
4103         by inventing a bogus invalid self-signature.
4105 2002-03-07  David Shaw  <dshaw@jabberwocky.com>
4107         * g10.c (main): make a few more strings translatable.
4109         * options.h, options.skel, g10.c (main), gpgv.c, mainproc.c
4110         (check_sig_and_print), keyserver.c (parse_keyserver_options):
4111         --auto-key-retrieve should really be a keyserver-option variable.
4113         * import.c (revocation_present): new function to print a warning
4114         if a key is imported that has been revoked by designated revoker,
4115         but the designated revoker is not present to verify the
4116         revocation.  If keyserver-options auto-key-retrieve is set, try
4117         and fetch the designated revoker from the keyserver.
4119         * import.c (import_one): call revocation_present after importing a
4120         new key.  Note that this applies to --import, --recv-keys, and
4121         --search-keys.
4122         
4123         * keyserver-internal.h, keyserver.c (keyserver_import_fprint):
4124         import via fingerprint (for revocation keys).
4126         * keyserver.c (keyserver_import_keyid): much simpler
4127         implementation now that we're using KEYDB_SEARCH_DESC internally.
4129 2002-03-04  David Shaw  <dshaw@jabberwocky.com>
4131         * revoke.c (gen_revoke): do not prompt for revocation reason for
4132         v3 revocations (unless force-v4-certs is on) since they wouldn't
4133         be used anyway.
4135         * keyedit.c (menu_revsig): show the status of the sigs
4136         (exportable? revocable?) to the user before prompting for which
4137         sig to revoke.  Also, make sure that local signatures get local
4138         revocations.
4140         * keyedit.c (ask_revoke_sig): remind the user which sigs are
4141         local.
4143         * g10.c (main): Add "exec-path" variable to override PATH for
4144         execing programs.
4146         * export.c (do_export_stream): properly check return code from
4147         classify_user_id to catch unclassifiable keys.
4149 2002-03-03  David Shaw  <dshaw@jabberwocky.com>
4151         * parse-packet.c (parse_signature): variable type tweak for RISC
4152         OS (from Stefan)
4154 2002-02-28  David Shaw  <dshaw@jabberwocky.com>
4156         * getkey.c (check_revocation_keys): New function to check a
4157         revocation against a list of potential revocation keys.  Note the
4158         loop-breaking code here.  This is to prevent blowing up if A is
4159         B's revocation key, while B is also A's.  Note also that this is
4160         written so that a revoked revoker can still issue revocations:
4161         i.e. If A revokes B, but A is revoked, B is still revoked.  I'm
4162         not completely convinced this is the proper behavior, but it
4163         matches how PGP does it.  It does at least have the advantage of
4164         much simpler code - my first version of this had lots of loop
4165         maintaining code so you could chain revokers many levels deep and
4166         if D was revoked, C was not, which meant that B was, and so on.
4167         It was sort of scary, actually.
4169         * getkey.c (merge_selfsigs_main): Add any revocation keys onto the
4170         pk.  This is particularly interesting since we normally only get
4171         data from the most recent 1F signature, but you need multiple 1F
4172         sigs to properly handle revocation keys (PGP does it this way, and
4173         a revocation key could be marked "sensitive" and hence in a
4174         different signature).  Also, if a pk has a revocation key set,
4175         check for revocation sigs that were not made by us - if made by a
4176         valid revocation key, mark the pk revoked.
4178         * packet.h, getkey.c (cache_public_key): do not cache key if
4179         "dont_cache" is set.  This allows the revocation key code to look
4180         up a key and return information that may be inaccurate to prevent
4181         loops without caching the fake data.
4183         * packet.h, sig-check.c (do_signature_check): Record if a
4184         signature was made by a revoked pk.
4186         * packet.h, parse-packet.c (parse_one_sig_subpkt,
4187         can_handle_critical, parse_signature): Get revocation key
4188         information out of direct sigs.
4189         
4190         * keylist.c (list_keyblock_print): don't assume that the presence
4191         of a 0x20 signature means the key is revoked.  With revocation
4192         keys, this may not be true if the revocation key is not around to
4193         verify it or if verification failed.  Also, 0x1F should get listed
4194         as "sig", and not "unexpected signature class".
4196         * keyedit.c (show_key_with_all_names): Add a flag for printing
4197         revoker information and change all callers.
4199         * import.c (merge_blocks): merge in any new direct key (0x1F)
4200         sigs.
4202         * import.c (import_revoke_cert): don't keep processing after a
4203         revocation is rejected.
4204         
4205         * import.c (delete_inv_parts): Allow importing a revocation
4206         signature even if it was not issued by the key.  This allows a
4207         revocation key to issue it.  Of course, the sig still needs to be
4208         checked before we trust it.
4210         * free-packet.c (copy_public_key): Include a new copy of the
4211         revocation keys when duping a pk.
4213         * free-packet.c (free_seckey_enc, release_public_key_parts): Free
4214         any revocation keys that are attached to a sig or pk.
4216         * export.c (do_export_stream): Do not export signatures with
4217         "sensitive" revocation keys in them.
4219 2002-02-27  David Shaw  <dshaw@jabberwocky.com>
4221         * export.c (do_export_stream): Do not include v3 keys in a
4222         --export-secret-subkeys export.
4224         * getkey.c (merge_selfsigs_main): If a key isn't valid (say,
4225         because of no self-signature), allow --always-trust to force it
4226         valid so it can be trusted.
4228 2002-02-25  David Shaw  <dshaw@jabberwocky.com>
4230         * hkp.c (hkp_ask_import), hkp.h, keyserver.c (all): treat key
4231         lists internally as fingerprints when possible.  All this is via
4232         KEYDB_SEARCH_DESC - no point in reinventing the wheel. This allows
4233         the helper program to search the keyserver by fingerprint if
4234         desired (and the keyserver supports it).  Note that automatic
4235         fingerprint promotion during refresh only applies to v4 keys as a
4236         v4 fingerprint can be easily changed into a long or short key id,
4237         and a v3 cannot.
4239         * pubkey-enc.c, getkey.c, misc.c, main.h: Take two copies of
4240         hextobyte() from pubkey-enc.c and getkey.c and make them into one
4241         copy in misc.c.
4243 2002-02-22  David Shaw  <dshaw@jabberwocky.com>
4245         * keyserver.c (keyserver_search_prompt): Detect a "no keys found"
4246         case even if the helper program does not explicitly say how many
4247         keys were found.
4249         * hkp.c (parse_hkp_index): Bug fix - don't report non-revoked keys
4250         as revoked in HKP key searches.
4252 2002-02-19  Werner Koch  <wk@gnupg.org>
4254         * parse-packet.c (parse_trust): Made parsing more robust.
4256 2002-02-19  David Shaw  <dshaw@jabberwocky.com>
4258         * hkp.c (parse_hkp_index): Catch corruption in HKP index lines
4259         (can be caused by broken or malicious keyservers).
4261         * keyserver.c (keyserver_work): Add KEYSERVER_NOT_SUPPORTED for
4262         unsupported actions (say, a keyserver that has no way to search,
4263         or a readonly keyserver that has no way to add).  Also add a
4264         USE_EXTERNAL_HKP define to disable the internal HKP keyserver
4265         code.
4267 2002-02-14  Werner Koch  <wk@gnupg.org>
4269         * g10.c: New option --no-use-agent. 
4271         * pkclist.c (check_signatures_trust): Always print the warning for
4272         unknown and undefined trust.  Removed the did_add cruft.  Reported
4273         by Janusz A. Urbanowicz.
4275 2002-02-11  David Shaw  <dshaw@jabberwocky.com>
4277         * hkp.c (parse_hkp_index): Bug fix - properly handle user IDs with
4278         colons (":") in them while HKP searching.
4280 2002-02-09  David Shaw  <dshaw@jabberwocky.com>
4282         * misc.c (pct_expando): More comments.
4284         * keydb.h, sign.c (mk_notation_and_policy): Clarify what is a sig
4285         and what is a cert.  A sig has sigclass 0x00, 0x01, 0x02, or 0x40,
4286         and everything else is a cert.
4288         * g10.c (main), keyedit.c (keyedit_menu): Add a "nrlsign" for
4289         nonrevocable and local key signatures.
4291         * g10.c (main): Add a --no-force-mdc to undo --force-mdc.
4293         * options.h, g10.c (main), cipher.c (write_header): Add a knob to
4294         --disable-mdc/--no-disable-mdc.  Off by default, of course, but is
4295         used in --pgp2 and --pgp6 modes.
4296         
4297         * pkclist.c (build_pk_list): Allow specifying multiple users in
4298         the "Enter the user ID" loop.  Enter a blank line to stop.  Show
4299         each key+id as it is added.
4301         * keylist.c (show_policy_url), mainproc.c (print_notation_data):
4302         It is not illegal (though possibly silly) to have multiple policy
4303         URLs in a given signature, so print all that are present.
4304         
4305         * hkp.c (hkp_search): More efficient implementation of URL-ifying
4306         code.
4308 2002-02-04  David Shaw  <dshaw@jabberwocky.com>
4310         * main.h, misc.c (pct_expando): New function to generalize
4311         %-expando processing in any arbitrary string.
4313         * photoid.c (show_photo): Call the new pct_expando function rather
4314         than expand strings internally.
4315         
4316         * sign.c (mk_notation_and_policy): Show policy URLs and notations
4317         when making a signature if show-policy/show-notation is on.
4318         %-expand policy URLs during generation.  This lets the user have
4319         policy URLs of the form "http://notary.jabberwocky.com/keysign/%K"
4320         which will generate a per-signature policy URL.
4322         * main.h, keylist.c (show_policy_url, show_notation): Add amount
4323         to indent so the same function can be used in key listings as well
4324         as during sig generation.  Change all callers.
4326 2002-02-04  David Shaw  <dshaw@jabberwocky.com>
4328         * keyserver.c, options.h (parse_keyserver_options, keyidlist):
4329         Workaround for the pksd and OKS keyserver bug that calculates v4
4330         RSA keyids as if they were v3.  The workaround/hack is to fetch
4331         both the v4 (e.g. 99242560) and v3 (e.g. 68FDDBC7) keyids.  This
4332         only happens for key refresh while using the HKP scheme and the
4333         refresh-add-fake-v3-keyids keyserver option must be set.  This
4334         should stay off by default.
4336 2002-02-03  David Shaw  <dshaw@jabberwocky.com>
4338         * keyserver.c (keyserver_spawn): Bug fix - do not append keys to
4339         each other when --sending more than one.
4341 2002-02-02  David Shaw  <dshaw@jabberwocky.com>
4343         * options.h, g10.c (main), keyedit.c (sign_uids), sign.c
4344         (mk_notation_and_policy): Split "--set-policy-url" into
4345         "--cert-policy-url" and "--sig-policy-url" so the user can set
4346         different policies for key and data signing.  For backwards
4347         compatibility, "--set-policy-url" sets both, as before.
4349 2002-01-30  Werner Koch  <wk@gnupg.org>
4351         * g10.c (main): --gen-random --armor does now output a base64
4352         encoded string.
4354 2002-01-28  David Shaw  <dshaw@jabberwocky.com>
4356         * g10.c (main), options.h, pkclist.c (algo_available): --pgp6
4357         flag.  This is not nearly as involved as --pgp2.  In short, it
4358         turns off force_mdc, turns on no_comment, escape_from, and
4359         force_v3_sigs, and sets compression to 1.  It also restricts the
4360         user to IDEA (if present), 3DES, CAST5, MD5, SHA1, and RIPEMD160.
4361         See the comments above algo_available() for lots of discussion on
4362         why you would want to do this.
4364 2002-01-27  David Shaw  <dshaw@jabberwocky.com>
4366         * keygen.c (keygen_set_std_prefs): Comment
4368         * keyedit.c (sign_uids): Bug fix - when signing with multiple
4369         secret keys at the same time, make sure each key gets the sigclass
4370         prompt.
4372         * exec.c (exec_finish): Close the iobuf and FILE before trying to
4373         waitpid, so the remote process will get a SIGPIPE and exit.  This
4374         is only a factor when using a pipe to communicate.
4376         * exec.c (exec_write): Disable cache-on-close of the fd iobuf (is
4377         this right?  Why is a fd iobuf cached at all?)
4379 2002-01-26  Werner Koch  <wk@gnupg.org>
4381         * g10.c, options.h: New option --gpg-agent-info
4382         * passphrase.c (agent_open): Let it override the environment info.
4383         * seckey-cert.c (check_secret_key): Always try 3 times when the
4384         agent is enabled.
4385         * options.skel: Describe --use-agent.
4387 2002-01-24  David Shaw  <dshaw@jabberwocky.com>
4389         * pubkey-enc.c (is_algo_in_prefs, get_it): Only check preferences
4390         against keys with v4 self sigs - there is really little point in
4391         warning for every single non-IDEA message encrypted to an old key.
4393         * pkclist.c (select_algo_from_prefs): Only put in the fake IDEA
4394         preference if --pgp2 is on.
4396         * mainproc.c (check_sig_and_print): Print "Expired" for expired
4397         but good signatures (this still prints "BAD" for expired but bad
4398         signatures).
4400 2002-01-23  David Shaw  <dshaw@jabberwocky.com>
4402         * keygen.c (ask_keysize): Cosmetic: don't present a RSA signing
4403         key as a "keypair" which can be 768 bits long (as RSA minimum is
4404         1024).
4406         * pubkey-enc.c (is_algo_in_prefs): Allow IDEA as a fake preference
4407         for v3 keys with v3 selfsigs.
4409 2002-01-22  David Shaw  <dshaw@jabberwocky.com>
4411         * packet.h, getkey.c (merge_selfsigs_main), pkclist.c
4412         (select_algo_from_prefs): Implement the fake IDEA preference as
4413         per RFC2440:12.1.  This doesn't mean that IDEA will be used (the
4414         plugin may not be present), but it does mean that a v3 key with a
4415         v3 selfsig has an implicit IDEA preference instead of 3DES.  v3
4416         keys with v4 selfsigs use preferences as normal.
4418         * encode.c (encode_crypt): if select_algo_from_prefs fails, this
4419         means that we could not find a cipher that both keys like.  Since
4420         all v4 keys have an implicit 3DES preference, this means there is
4421         a v3 key with a v3 selfsig in the list.  Use 3DES in this case as
4422         it is the safest option (we know the v4 key can handle it, and
4423         we'll just hope the v3 key is being used in an implementation that
4424         can handle it).  If --pgp2 is on, warn the user what we're doing
4425         since it'll probably break PGP2 compatibility.
4427         * g10.c (main): Do not force using IDEA for encrypted files in
4428         --pgp2 mode - let the fake IDEA preference choose this for us for
4429         better compatibility when encrypting to multiple keys, only some
4430         of which are v3.
4432         * keygen.c (keygen_set_std_prefs): Put 3DES on the end of the
4433         default cipher pref list (RFC2440: "...it is good form to place it
4434         there explicitly.").  If the user has the IDEA plugin installed,
4435         put a preference for IDEA *after* 3DES to effectively disable its
4436         use for everything except encrypting along with v3 keys.
4438         * encode.c, g10.c, sign.c: Change the PGP2 warning line from
4439         "... will not be usable ..." to "... may not be usable ..." as the
4440         user could be using one of the enhanced PGP2 variations.
4442         * helptext.c: Revise the sign_uid.class help text as suggested by
4443         Stefan.
4444         
4445 2002-01-20  Werner Koch  <wk@gnupg.org>
4447         * passphrase.c (passphrase_to_dek): Add tryagain_text arg to be
4448         used with the agent.  Changed all callers.
4449         (agent_get_passphrase): Likewise and send it to the agent
4450         * seckey-cert.c (do_check): New arg tryagain_text.
4451         (check_secret_key): Pass the string to do_check.
4452         * keygen.c (ask_passphrase): Set the error text is required.
4453         * keyedit.c (change_passphrase): Ditto.
4455         * passphrase.c (agent_open): Disable opt.use_agent in case of a
4456         problem with the agent. 
4457         (agent_get_passphrase): Ditto.
4458         (passphrase_clear_cache): Ditto.
4460 2002-01-19  Werner Koch  <wk@gnupg.org>
4462         * passphrase.c (agent_open): Add support for the new Assuan based
4463         gpg-agent.  New arg to return the used protocol version.
4464         (agent_get_passphrase): Implemented new protocol here.
4465         (passphrase_clear_cache): Ditto.
4466         (readline): New.
4467         
4468 2002-01-15  Timo Schulz  <ts@winpt.org>
4470         * encode.c (encode_crypt_files): Fail if --output is used.
4471         
4472         * g10.c: New command --decrypt-files.
4474         * decrypt.c (decrypt_messages): New.
4475         
4476 2002-01-09  David Shaw  <dshaw@jabberwocky.com>
4478         * g10.c, misc.c, gpgv.c: move idea_cipher_warn to misc.c so gpgv.c
4479         doesn't need a stub for it any longer.
4481         * g10.c (get_temp_dir), main.h: no longer used (it's in exec.c now)
4483         * g10.c (main), delkey.c (delete_keys), main.h : Allow
4484         --delete-key (now --delete-keys, though --delete-key still works,
4485         of course) to delete multiple keys in one go.  This applies to
4486         --delete-secret-key(s) and --delete-secret-and-public-key(s) as
4487         well.
4489 2002-01-09  Timo Schulz  <ts@winpt.org>
4491         * encode.c (encode_crypt_files): Now it behaves like verify_files.
4492         
4493         * g10.c (main): We don't need to check argc for encode_crypt_files
4494         any longer.
4496 2002-01-09  Timo Schulz  <ts@winpt.org>
4498         * exec.c: Include windows.h for dosish systems.
4500 2002-01-08  Timo Schulz  <ts@winpt.org>
4502         * g10.c (main): New description for --encrypt-files.
4504 2002-01-08  Werner Koch  <wk@gnupg.org>
4506         * g10.c (main): Must register the secring for encryption because
4507         it is needed to figure out the default recipient.  Reported by
4508         Roger Sondermann.
4510 2002-01-05  David Shaw  <dshaw@jabberwocky.com>
4512         * keyedit.c (menu_adduid): Require --expert before adding a photo
4513         ID to a v3 key, and before adding a second photo ID to any key.
4515         * keyedit.c (keyedit_menu): Don't allow adding photo IDs in
4516         rfc1991 or pgp2 mode.
4518         * getkey.c (merge_selfsigs_subkey): Permit v3 subkeys.  Believe it
4519         or not, this is allowed by rfc 2440, and both PGP 6 and PGP 7 work
4520         fine with them.
4522         * g10.c, options.h, keyedit.c, sign.c: Move the "ask for
4523         expiration" switch off of --expert, which was getting quite
4524         overloaded, and onto ask-sig-expire and ask-cert-expire.  Both
4525         default to off.
4527         * g10.c (main): Change the default compression algo to 1, to be
4528         more OpenPGP compliant (PGP also uses this, so it'll help with
4529         interoperability problems as well).
4531         * encode.c (encode_crypt): Handle compression algo 2, since the
4532         default is now 1.
4534         * build-packet.c (build_attribute_subpkt): Fix off-by-one error.
4536 2002-01-05  Werner Koch  <wk@gnupg.org>
4538         * g10.c (main): Do not register the secret keyrings for certain
4539         commands.
4541         * keydb.c (keydb_add_resource): Use access to test for keyring
4542         existence.  This avoids cached opened files which are bad under
4543         RISC OS.
4545 2002-01-04  David Shaw  <dshaw@jabberwocky.com>
4547         * sign.c (sign_file, sign_symencrypt_file): always use one-pass
4548         packets unless rfc1991 is enabled.  This allows a signature made
4549         with a v3 key to work in PGP 6 and 7.  Signatures made with v4
4550         keys are unchanged.
4552         * g10.c (main): Disallow non-detached signatures in PGP2 mode.
4553         Move the "you must use files and not pipes" PGP2 warning up so all
4554         the PGP2 stuff is together.
4556         * encode.c (encode_simple): Use the actual filesize instead of
4557         partial length packets in the internal literal packet from a
4558         symmetric message.  This breaks PGP5(?), but fixes PGP2, 6, and 7.
4559         It's a decent tradeoff.  Note there was only an issue with
4560         old-style RFC1991 symmetric messages.  2440-style messages in 6
4561         and 7 work with or without partial length packets.
4563 2002-01-03  David Shaw  <dshaw@jabberwocky.com>
4565         * g10.c (main): Removed --no-default-check-level option, as it is
4566         not consistent with other "default" options.  Plus, it is the same
4567         as saying --default-check-level 0.
4569         * exec.c (exec_read): Disallow caching tempfile from child
4570         process, as this keeps the file handle open and can cause unlink
4571         problems on some platforms.
4573         * keyserver.c (keyserver_search_prompt): Minor tweak - don't
4574         bother to transform keyids into textual form if they're just going
4575         to be transformed back to numbers.
4577 2002-01-03  Timo Schulz <ts@winpt.org>
4579         * g10.c: New command --encrypt-files.
4580     
4581         * verify.c (print_file_status): Removed the static because
4582         encode_crypt_files also uses this function.
4584         * main.h (print_files_status): New.
4585         (encode_crypt_files): New.
4587         * encode.c (encode_crypt_files): New.
4589 2002-01-02  Stefan Bellon  <sbellon@sbellon.de>
4591         * keyserver.c: Moved util.h include down in order to avoid
4592         redefinition problems on RISC OS.
4594         * keyring.c (keyring_lock): Only lock keyrings that are writable.
4596         * keyring.c (keyring_update_keyblock): Close unused iobuf.
4598         * hkp.c (parse_hkp_index, hkp_search) [__riscos__]: Changed
4599         unsigned char* to char* because of compiler issues.
4601         * exec.c (exec_finish) [__riscos__]: Invalidate close cache so
4602         that file can be unlinked.
4604 2001-12-28  David Shaw  <dshaw@jabberwocky.com>
4606         * g10.c (main): Use a different strlist to check extensions since
4607         they need to be handled seperately now.
4609         * misc.c,main.h (check_permissions): Properly handle permission
4610         and ownership checks on files in the lib directory
4611         (e.g. /usr/local/lib/gnupg), which are owned by root and are
4612         world-readable, and change all callers to specify extension or
4613         per-user file.
4615         * photoid.c (show_photo), keyserver.c (keyserver_spawn): Bug fix -
4616         don't call exec_finish if exec_write fails.
4618         * keyserver.c (keyserver_spawn): Look for OPTIONS from the
4619         keyserver helper - specifically, a "OUTOFBAND" option for the
4620         email keyserver.
4622         * mainproc.c (list_node), keylist.c (list_keyblock_colon),
4623         import.c (delete_inv_parts), export.c (do_export_stream): Use
4624         signature flags for exportability check rather than re-parsing the
4625         subpacket.
4627         * keyid.c, keydb.h (get_lsign_letter): No longer needed.
4629 2001-12-27  David Shaw  <dshaw@jabberwocky.com>
4631         * exec.c (exec_finish): Show errors when temp files cannot be
4632         deleted for whatever reason.
4634         * exec.c (exec_read): Don't rely on WEXITSTATUS being present.
4636         * exec.c (make_tempdir): Add temp file creator for win32.  Don't
4637         create an incoming temp file if the exec is write-only.
4639         * keyserver.c (keyserver_spawn): Clean up error handling, for when
4640         the spawn fails.
4642         * photoid.c (show_photo): Clean up error handling.
4644         * misc.c (check_permissions): Neaten.
4646 2001-12-25  David Shaw  <dshaw@jabberwocky.com>
4648         * mkdtemp.c (mkdtemp): Add copyleft info and tweak the 'X' counter
4649         to be a bit simpler.
4651         * keyserver.c, photoid.c: Remove unused headers left over from
4652         when the exec functions lived there.
4654 2001-12-23  Timo Schulz <ts@winpt.org>
4656         * misc.c (check_permissions): Do not use it for W32 systems.
4658         * tdbio.c (migrate_from_v2): Define ftruncate as chsize() for W32.
4660         * mkdtemp.c: W32 support.
4662         * photoid.c: Ditto.
4664         * exec.c: Ditto.
4666 2001-12-22  David Shaw  <dshaw@jabberwocky.com>
4668         * exec.c (make_tempdir): avoid compiler warning with const
4670         * mkdtemp.c (mkdtemp): catch the empty ("") string case in case
4671         someone repurposes mkdtemp at some point.
4673         * photoid.c (generate_photo_id, show_photo): some type changes
4674         from Stefan Bellon.
4676         * exec.c (make_tempdir): handle Win32 systems, suggested by Timo
4677         Schulz.
4679 2001-12-22  Werner Koch  <wk@gnupg.org>
4681         * encode.c (encode_simple, encode_crypt): i18n 2 strings.
4683 2001-12-22  Timo Schulz <ts@winpt.org>
4684         
4685         * encode.c (encode_simple, encode_crypt): Use is_file_compressed
4686         to avoid to compress compressed files.
4688 2001-12-22  Werner Koch  <wk@gnupg.org>
4690         * keyserver.c (keyserver_spawn): Removed some variables
4691         declaration due to shadowing warnings.
4693         * build-packet.c (build_attribute_subpkt): s/index/idx/ to avoid
4694         compiler warnig due to index(3).
4696         * getkey.c (get_ctx_handle): Use KEYDB_HANDLE as return value.
4697         * keylist.c (list_one): Made resname const.
4699         * keyedit.c (keyedit_menu): Allow "addphoto" only when --openpgp is
4700         not used.
4702         * options.skel: Changed one example photo viewer to qiv.
4704 2001-12-21  David Shaw  <dshaw@jabberwocky.com>
4706         * Makefile.am: add exec.c, exec.h, photoid.c, and photoid.h
4708         * build-packet.c (build_attribute_subpkt): new function to build
4709         the raw attribute subpacket.  Note that attribute subpackets have
4710         the same format as signature subpackets.
4712         * exec.c: new file with generic exec-a-program functionality.
4713         Used by both photo IDs and keyserver helpers.  This is pretty much
4714         the same code that used to be keyserver specific, with some
4715         changes to be usable generically.
4717         * free-packet.c (free_attributes (new)): function to free an
4718         attribute packet.
4719         
4720         * gpgv.c: added stub show_photo
4721         
4722         * keyedit.c (keyedit_menu, menu_adduid, menu_showphoto): can add a
4723         photo (calls generate_photo_id), or display a photo (calls
4724         show_photo) from the --edit menu.  New commands are "addphoto",
4725         and "delphoto" (same as "deluid").
4727         * keylist.c (list_keyblock_print): show photos during key list if
4728         --show-photos enabled.
4729         
4730         * keyserver.c (keyserver_spawn): use the generic exec_xxx
4731         functions to call keyserver helper.
4733         * g10.c, options.h: three new options - --{no-}show-photos, and
4734         --photo-viewer to give the command line to display a picture.
4736         * options.skel: instructions for the photo viewer
4737         
4738         * parse-packet.c (parse_user_id, setup_user_id (new)): common code
4739         for both user IDs and attribute IDs moved to setup_user_id.
4741         * parse-packet.c (make_attribute_uidname (new)): constructs a fake
4742         "name" for attribute packets (e.g. "[image of size ...]")
4744         * parse-packet.c (parse_attribute (replaces parse_photo_id),
4745         parse_attribute_subpkts): Builds an array of individual
4746         attributes.  Currently only handles attribute image / type jpeg
4747         subpackets.
4749         * sign.c (hash_uid): Fix bug in signing attribute (formerly
4750         photo_id) packets.
4752         * packet.h, and callers: globally change "photo_id" to "attribute"
4753         and add structures for attributes.  The packet format is generic
4754         attributes, even though the only attribute type thus far defined
4755         is jpeg.
4757 2001-12-21  David Shaw  <dshaw@jabberwocky.com>
4759         * parse-packet.c (can_handle_critical): Can handle critical
4760         revocation subpackets now.
4762         * trustdb.c (mark_usable_uid_certs): Disregard revocations for
4763         nonrevocable sigs.  Note that this allows a newer revocable
4764         signature to override an older nonrevocable signature.
4766         * sign.c (make_keysig_packet): add a duration field and change all
4767         callers.  This makes make_keysig_packet closer to
4768         write_signature_packets and removes some duplicated expiration
4769         code.
4771         * keyedit.c (keyedit_menu, menu_revsig, sign_uids,
4772         sign_mk_attrib): Add nrsign command, don't allow revoking a
4773         nonrevocable signature,
4775         * g10.c (main): Add --nrsign option to nonrevocably sign a key
4776         from the command line.
4778         * build-packet.c (build_sig_subpkt_from_sig): Comment to explain
4779         the use of CRITICAL.
4781 2001-12-21  Werner Koch  <wk@gnupg.org>
4783         * g10.c. options.h : New option --show-keyring
4784         * getkey.c (get_ctx_handle): New.
4785         * keylist.c (list_one): Implement option here.  By David Champion. 
4787 2001-12-20  David Shaw  <dshaw@jabberwocky.com>
4789         * keyserver.c (keyserver_spawn): Use mkdtemp() to make temp
4790         directory.
4792         * mkdtemp.c: replacement function for those platforms that don't
4793         have mkdtemp (make a temp directory securely).
4795 2001-12-19  David Shaw  <dshaw@jabberwocky.com>
4797         * misc.c (check_permissions): New function to stat() and ensure
4798         the permissions of GNUPGHOME and the files have safe permissions.
4800         * keydb.c (keydb_add_resource): Check keyring permissions.
4802         * tdbio.c (tdbio_set_dbname): Check permissions of trustdb.gpg
4804         * keyserver.c (keyserver_spawn): Disable keyserver schemes that
4805         involve running external programs if the options file has unsafe
4806         permissions or ownership.
4808         * g10.c, options.h: New option --no-permission-warning to disable
4809         the permission warning message(s).  This also permits use of the
4810         keyserver if it had been disabled (see above).  Also check the
4811         permissions/ownership of random_seed.
4812         
4813         * keyserver.c (keyserver_spawn): The new glibc prints a warning
4814         when using mktemp() (the code was already secure, but the warning
4815         was bound to cause confusion).  Use a different implementation
4816         based on get_random_bits() instead.  Also try a few times to get
4817         the temp dir before giving up.
4819 2001-12-19  Werner Koch  <wk@gnupg.org>
4821         * g10.c, passphrase.c [CYGWIN32]: Allow this as an alias for MINGW32.
4823 2001-12-18  David Shaw  <dshaw@jabberwocky.com>
4825         * g10.c (idea_cipher_warn): Add a flag to show the warning always
4826         or once per session and change all callers (show always except for
4827         the secret key protection and unknown cipher from an encrypted
4828         message errors).  Also make the strings translatable.
4830         * pubkey-enc.c (get_it): Add the IDEA cipher warning if the user
4831         tries to decrypt an IDEA encrypted message without the IDEA
4832         plugin.
4834         * keyserver.c (parse_keyserver_uri): More strict checking of the
4835         keyserver URI.  Specifically, fail if the ":port" section is
4836         anything except a number between 1 and 65535.
4838 2001-12-17  David Shaw  <dshaw@jabberwocky.com>
4840         * keyserver.c (print_keyinfo): No need to check for
4841         control/illegal characters, as utf8_to_native does this for us.
4843         * mainproc.c (proc_encrypted): Use generic IDEA warning.
4845         * gpgv.c: add stub for idea_cipher_warn
4847         * g10.c, hkp.c, keyserver.c: Fix capitalization and plural issues.
4849         * encode.c (encode_crypt), sign.c (sign_file, clearsign_file):
4850         disable pgp2 mode after the message is no longer pgp2 compatible.
4852         * g10.c (main): Tweak the PGP2.x IDEA warning to use the generic
4853         warning, and not merely fail if the IDEA plugin isn't there.
4855         * g10.c (main, idea_cipher_warn), keygen.c (set_one_pref),
4856         seckey-cert.c (do_check): Add a generic IDEA warning for when the
4857         IDEA plugin is not present.  This pops up when the user uses
4858         "--cipher-algo idea", when setpref is used to set a "S1"
4859         preference, and when a secret key protected with IDEA is used.
4861 2001-12-15  Werner Koch  <wk@gnupg.org>
4863         * keyserver.c (keyserver_spawn): Assert that we have dropped privs.
4865 2001-12-13  Werner Koch  <wk@gnupg.org>
4867         * pubkey-enc.c (get_session_key): Check that the public key
4868         algorithm is indeed usable for en/decryption.  This avoid a
4869         strange error message from pubkey_decrypt if for some reasons a
4870         bad algorithm indentifier is passed.
4872 2001-12-12  David Shaw  <dshaw@jabberwocky.com>
4874         * Fixed some types for portability.  Noted by Stefan Bellon.
4876 2001-12-11  Werner Koch  <wk@gnupg.org>
4878         * hkp.c (hkp_export): Do not print possible control characters
4879         from a keyserver response.
4880         (parse_hkp_index): Made uid an unsigned char* because it is passed to
4881         isspace().
4882         (hkp_search): Ditto for the char* vars.
4884         * g10.c (main): Print the IDEA warning also for -c and -se.
4885         
4886         * g10.c (get_temp_dir): Assert that we have dropped privs
4888         * encode.c (encode_crypt): Include the first key into the --pgp2
4889         check.
4891 2001-12-07  David Shaw  <dshaw@jabberwocky.com>
4893         * g10.c, options.h: New option --pgp2.  This is identical to
4894         "--rfc1991 --cipher-algo idea --compress-algo 1 --digest-algo md5
4895         --force_v3_sigs" with the addition of an warning to advise the
4896         user not to use a pipe (which would break pgp2 compatibility).
4898         * encode.c (encode_crypt): warn if the user tries to encrypt to
4899         any key that is not RSA and <= 2048 bits when the --pgp2 option is
4900         used.
4902         * sign.c (sign_file, clearsign_file): When using --pgp2, make a v3
4903         sig, and warn if the signature is made with a non-v3 key.
4905 2001-12-05  David Shaw  <dshaw@jabberwocky.com>
4907         * sign.c (sign_file, clearsign_file, sign_symencrypt_file): Prompt
4908         for sig expiration if --expert is set and --force-v3-sigs is not
4909         set (v3 sigs cannot expire).
4911         * mainproc.c (check_sig_and_print): After checking a sig, print
4912         expiration status.  This causes a error return if the sig is
4913         expired.
4915         * build-packet.c (build_sig_subpkt_from_sig): Include a critical
4916         sig expiration subpacket if the sig is to expire.
4918         * keyedit.c (sign_uids): Do not sign an expired key unless
4919         --expert is set, in which case prompt.  Also, offer to expire a
4920         signature when the key the user is signing expires.
4922         * keygen.c (ask_expire_interval): Add a value to determine whether
4923         to prompt for a key or sig expiration and change all callers.
4925         * keyid.c: New functions: expirestr_from_sig and
4926         colon_expirestr_from_sig.
4928         * keylist.c (list_keyblock_colon): Show sig expiration date in the
4929         --with-colons listing.
4931         * sign.c (make_keysig_packet, write_signature_packets): Pass in an
4932         optional timestamp for the signature packet, and change all
4933         callers.
4935         * keyedit.c (sign_mk_attrib): Include a critical expiration
4936         subpacket in the signature if an expiration date is given.
4938 2001-12-04  David Shaw  <dshaw@jabberwocky.com>
4940         * keyedit.c (sign_uids): If the user tries to sign a
4941         locally-signed key, allow the cert to be promoted to a full
4942         exportable signature.  This essentially deletes the old
4943         non-exportable sig, and replaces it with a new exportable one.
4945 2001-12-04  David Shaw  <dshaw@jabberwocky.com>
4947         * keyedit.c (keyedit_menu): Do not allow signing a revoked key
4948         unless --expert is set, and ask even then.
4950         * keyedit.c (sign_uids): Do not allow signing a revoked UID unless
4951         --expert is set, and ask even then.
4953         * g10.c, options.h : New option --expert
4955 2001-11-16  David Shaw  <dshaw@jabberwocky.com>
4957         * Allow the user to select no compression via "--compress-algo 0"
4958         on the command line.
4960         * keyedit.c (show_prefs): Show compression preferences in the
4961         long-form "showpref" style.
4963         * keygen.c (set_one_pref): Permit setting a no-compression ("Z0")
4964         preference.
4966         * getkey.c (fixup_uidnode): Fix compression preference corruption
4967         bug.
4969 2001-12-02  David Shaw  <dshaw@jabberwocky.com>
4971         * g10.c: Add advisory --for-your-eyes-only option as per section
4972         5.9 of 2440.
4974 2001-12-05  David Shaw  <dshaw@jabberwocky.com>
4976         * Force a V4 sig if the user has a notation or policy URL set.
4978 2001-12-04  David Shaw  <dshaw@jabberwocky.com>
4980         * g10.c: Add options --keyserver-options, --temp-directory, and
4981         auto-key-retrieve (the opposite of no-auto-key-retrieve).
4983         * hkp.c (hkp_search): New function to handle searching a HKP
4984         keyserver for a key
4986         * hkp.c (hkp_ask_import, hkp_export): Pretty large changes to make
4987         them communicate via the generic functions in keyserver.c
4989         * keyserver.c: new file with generic keyserver routines for
4990         getting keys from a keyserver, sending keys to a keyserver, and
4991         searching for keys on a keyserver.  Calls the internal HKP stuff
4992         in hkp.c for HKP keyserver functions.  Other calls are handled by
4993         an external program which is spawned and written to and read from
4994         via pipes.  Platforms that don't have pipes use temp files.
4996 2001-11-20  David Shaw  <dshaw@jabberwocky.com>
4998         * options.h, g10.c: New options show-notation, no-show-notation,
4999         default-check-level, no-default-check-level, show-policy-url,
5000         no-show-policy-url.
5002         * packet.h, sign.c (make_keysig_packet), parse-packet.c
5003         (parse_signature), free-packet.c (free_seckey_enc): Fill in
5004         structures for notation, policy, sig class, exportability, etc.
5006         * keyedit.c, keylist.c (print_and_check_one_sig,
5007         list_keyblock_print): Show flags in signature display for cert
5008         details (class, local, notation, policy, revocable).  If selected,
5009         show the notation and policy url.
5011         * keyedit.c (sign_uids): Prompt for and use different key sig
5012         classes.
5014         * helptext.c (helptexts): Add help text to explain different
5015         key signature classes
5017 2001-11-26  David Shaw  <dshaw@jabberwocky.com>
5019         * trustdb.c (mark_usable_uid_certs): Fix segfault from bad
5020         initialization and fix reversed key signature expiration check.
5022 2001-11-09  Werner Koch  <wk@gnupg.org>
5024         * export.c (do_export_stream): Put all given names into a search
5025         description and change the loop so that all matching names are
5026         returned.
5028 2001-11-08  Werner Koch  <wk@gnupg.org>
5030         * pubkey-enc.c (get_it): To reduce the number of questions on the
5031         MLs print the the name of cipher algorithm 1 with the error message.
5033         * mainproc.c: Changed the way old rfc1991 encryption cipher is
5034         selected. Based on a patch by W Lewis.
5036         * pkclist.c (do_edit_ownertrust): Allow to skip over keys, the non
5037         working "show info" is now assigned to "i" 
5038         * trustdb.c (ask_ownertrust, validate_keys): Implement a real quit
5039         here.  Both are by David Shaw.
5040         
5041         * trustdb.c (validate_keys): Make sure next_exipire is initialized.
5043         * sign.c (make_keysig_packet): Use SHA-1 with v4 RSA keys.
5045         * g10.c, options.h : New option --[no-]froce-v4-certs.
5046         * sign.c (make_keysig_packet): Create v4 sigs on v4 keys even with
5047         a v3 key.  Use that new option.  By David Shaw
5049         * revoke.c (ask_revocation_reason): Allow to select "no reason".
5050         By David Shaw.
5052         * keyid.c (fingerprint_from_sk): Calculation of an v3 fpr was
5053         plain wrong - nearly the same code in fingerprint_from_pk is correct.
5055         * build-packet.c (do_secret_key): Added a few comments to the code.
5057 2001-11-07  Werner Koch  <wk@gnupg.org>
5059         * g10.c (main): Print a warning when -r is used w/o encryption.
5060         Suggested by Pascal Scheffers.
5062 2001-10-23  Werner Koch  <wk@gnupg.org>
5064         * keyedit.c (keyedit_menu): Changed helptext for showpref
5065         command.  Suggested by Reinhard Wobst.
5067         * keyring.c (keyring_search): When marking the offtbl ready, take
5068         into account that we may have more than one keyring.
5070 2001-10-22  Werner Koch  <wk@gnupg.org>
5072         * Makefile.am: Do not use OMIT_DEPENDENCIES
5074         * build-packet.c (build_sig_subpkt): Default is now to put all
5075         types of subpackets into the hashed area and only list those which
5076         should go into the unhashed area.
5078 2001-10-18  Werner Koch  <wk@gnupg.org>
5080         * keydb.c (keydb_add_resource): Rearranged the way we keep track
5081         of the resource. There will now be an entry for each keyring here
5082         and not in keyring.c itself.  Store a token to allow creation of a
5083         keyring handle.  Changed all functions to utilize this new design.
5084         (keydb_locate_writable): Make a real implementation.
5085         * keyring.c (next_kr): Removed and changed all callers to set the
5086         resource directly from the one given with the handle.
5087         (keyring_is_writable): New. 
5088         (keyring_rebuild_cache): Add an arg to pass the token from keydb.
5090 2001-10-17  Werner Koch  <wk@gnupg.org>
5092         * keyring.c (keyring_search): Enabled word search mode but print a
5093         warning that it is buggy.
5094         
5095 2001-10-11  Werner Koch  <wk@gnupg.org>
5097         * hkp.c (hkp_ask_import): No more need to set the port number for
5098         the x-hkp scheme. 
5099         (hkp_export): Ditto.
5101 2001-10-06  Stefan Bellon  <sbellon@sbellon.de>
5103         * passphrase.c [__riscos__]: Disabled agent specific stuff.
5104         * g10.c: New option --no-force-v3-sigs.
5106 2001-10-04  Werner Koch  <wk@gnupg.org>
5108         * export.c (do_export_stream): Do not push the compress filter
5109         here because the context would run out of scope due to the
5110         iobuf_close done by the caller.
5111         (do_export): Do it here instead. 
5113 2001-09-28  Werner Koch  <wk@gnupg.org>
5115         * keyedit.c (sign_uids): Always use the primary key to sign keys.
5116         * getkey.c (finish_lookup): Hack to return only the primary key if
5117         a certification key has been requested.
5119         * trustdb.c (cmp_kid_for_make_key_array): Renamed to
5120         (validate_one_keyblock): this and changed arg for direct calling.
5121         (make_key_array): Renamed to
5122         (validate_one_keyblock): this and changed args for direct calling.
5123         (mark_usable_uid_certs, validate_one_keyblock)
5124         (validate_key_list): Add next_expire arg to keep track of
5125         expiration times.  
5126         (validate_keys): Ditto for UTKs and write the stamp.
5128         * tdbio.c (migrate_from_v2): Check return code of tbdio_sync.
5130         * tdbdump.c (import_ownertrust): Do a tdbio_sync().
5132         * keyring.c: Made the offtbl an global object.
5134 2001-09-27  Werner Koch  <wk@gnupg.org>
5136         * pkclist.c (do_edit_ownertrust): Allow settin of ultimate trust.
5138         * trustdb.c (mark_keyblock_seen): New.
5139         (make_key_array): Use it to mark the subkeys too.
5140         (validate_keys): Store validity for ultimatly trusted keys.
5142 2001-09-26  Werner Koch  <wk@gnupg.org>
5144         * pkclist.c (check_signatures_trust, do_we_trust): Removed the
5145         invocation of add_ownertrust. Minor changes to the wording.
5146         (add_ownertrust, add_ownertrust_cb): Removed.
5148         * trustdb.c (get_validity): Allow to lookup the validity using a
5149         subkey.
5151         * trustdb.c (new_key_hash_table): Increased the table size to 1024
5152         and changed the masks accordingly.
5153         (validate): Changed stats printing.
5154         (mark_usable_uid_certs): New.
5155         (cmp_kid_for_make_key_array): Does now check the signatures and
5156         figures out a usable one.
5158 2001-09-25  Werner Koch  <wk@gnupg.org>
5160         * keyring.c (new_offset_item,release_offset_items)
5161         (new_offset_hash_table, lookup_offset_hash_table)
5162         (update_offset_hash_table, update_offset_hash_table_from_kb): New.
5163         (keyring_search): Use a offset table to optimize search for
5164         unknown keys.
5165         (keyring_update_keyblock, keyring_insert_keyblock): Insert new
5166         offsets.
5167         * getkey.c (MAX_UNK_CACHE_ENTRIES): Removed the unknown keys
5168         caching code.
5170         * g10.c, options.h, import.c: Removed the entire
5171         allow-secret-key-import stuff because the validity is now
5172         controlled by other means.
5174         * g10.c: New command --rebuild-keydb-caches.
5175         * keydb.c (keydb_rebuild_caches): New.
5176         * keyring.c (do_copy): Moved some code to
5177         (create_tmp_file, rename_tmp_file, write_keyblock): new functions.
5178         (keyring_rebuild_cache): New.
5180         * packet.h (PKT_ring_trust): Add sigcache field.
5181         * parse-packet.c (parse_trust): Parse sigcache.
5182         * keyring.c (do_copy): Always insert a sigcache packet.
5183         (keyring_get_keyblock): Copy the sigcache packet to the signature.
5184         * sig-check.c (cache_sig_result): Renamed from
5185         cache_selfsig_result. Changed implementation to use the flag bits
5186         and changed all callers.
5187         (mdc_kludge_check): Removed this unused code.
5188         (do_check): Do not set the sig flags here.
5190         * import.c (read_block): Make sure that ring_trust packets are
5191         never imported.
5192         * export.c (do_export_stream): and never export them.
5194         * trustdb.c (make_key_array): Skip revoked and expired keys.
5196 2001-09-24  Werner Koch  <wk@gnupg.org>
5198         * g10.c, options.h: New option --no-auto-check-trustdb.
5200         * keygen.c (do_generate_keypair): Set newly created keys to
5201         ultimately trusted.
5203         * tdbio.h, tdbio.c: Removed all support for records DIR, KEY, UID,
5204         PREF, SIG, SDIR and CACH. Changed migration function to work
5205         direct on the file.
5206         (tdbio_read_nextcheck): New.
5207         (tdbio_write_nextcheck): New. 
5209 2001-09-21  Werner Koch  <wk@gnupg.org>
5211         Revamped the entire key validation system.
5212         * trustdb.c: Complete rewrite. No more validation on demand,
5213         removed some functions, adjusted to all callers to use the new 
5214         and much simpler interface. Does not use the LID anymore.
5215         * tdbio.c, tdbio.h: Add new record types trust and valid. Wrote a
5216         migration function to convert to the new trustdb layout.
5217         * getkey.c (classify_user_id2): Do not allow the use of the "#"
5218         prefix. 
5219         * keydb.h: Removed the TDBIDX mode add a skipfnc to the
5220         descriptor.
5221         * keyring.c (keyring_search): Implemented skipfnc.
5223         * passphrase.c (agent_open): Add missing bracket.  Include windows.h.
5225 2001-09-19  Werner Koch  <wk@gnupg.org>
5227         * keylist.c (print_fingerprint): Renamed from fingerprint, made
5228         global available. Added new arg to control the print style.
5229         * mainproc.c (print_fingerprint): Removed. 
5230         * pkclist.c (print_fpr, fpr_info): Removed and changed callers to
5231         use print_fingerprint.
5232         * keyedit.c (show_fingerprint): Ditto.
5234         * passphrase.c (writen, readn)
5235         (agent_open, agent_close)
5236         (agent_get_passphrase)
5237         (passphrase_clear_cache): Support for W32.  Contributed by Timo.
5239         * import.c (import_one): Release keydb handles at 2 more places.
5241         * keyring.c (keyring_release): Close the iobuf.
5242         (keyring_get_keyblock): Init ret_kb to NULL and store error contidion.
5244         * import.c (import_new_stats_handle): New. 
5245         (import_release_stats_handle): New.
5246         (import_print_stats): Renamed from static fnc print_stats.
5247         (import_keys, import_keys_stream): Add an optional status handle
5248         arg and changed all callers.
5249         * hkp.c (hkp_ask_import): Add an stats_handle arg and changed all
5250         callers.
5252         * mainproc.c (print_pkenc_list): Use print_utf8_string2().
5254 2001-09-18  Werner Koch  <wk@gnupg.org>
5256         * g10.c: New command --refresh-keys.
5257         * hkp.c (hkp_refresh_keys): New. Contributed by Timo Schulz.
5259         * parse-packet.c (parse): Stop on impossible packet lengths.
5261 2001-09-17  Werner Koch  <wk@gnupg.org>
5263         * mainproc.c (print_notation_data): Wrap notation data status lines
5264         after 50 chars.
5265         
5266         * mainproc.c (proc_pubkey_enc): Make option try-all-secrets work.
5267         By disastry@saiknes.lv.
5269 2001-09-14  Werner Koch  <wk@gnupg.org>
5271         * parse-packet.c (dump_sig_subpkt): List key server preferences
5272         and show the revocable flag correctly. Contributed by David Shaw.
5274 2001-09-09  Werner Koch  <wk@gnupg.org>
5276         * keyedit.c (keyedit_menu): No need to define another p.
5278         * keylist.c (print_capabilities): s/used/use/ so that it
5279         does not shadow a global.
5280         * sign.c (sign_file): Renamed arg encrypt to encryptflag
5281         * keygen.c: Replaced all "usage" by "use".
5282         * misc.c (openpgp_pk_algo_usage): Ditto.
5284         * pubkey-enc.c (get_it): Renamed arg k to enc so that the later
5285         defined k does not shadow it.
5287         * parse-packet.c (parse_gpg_control): No need to define another i.
5289         * getkey.c (get_pubkey_byfprint): Must use the enum values and not
5290         the fprint_len.
5291         * keyring.c (keyring_search): Removed a non-sense break.  Both
5292         bugs pointed out by Stefan.
5294 2001-09-07  Werner Koch  <wk@gnupg.org>
5296         * status.c, status.h: Added NO_RECP and ALREADY_SIGNED.
5297         * pkclist.c (build_pk_list): Issue NO_RECP.
5298         * keyedit.c (sign_uids): Added experimental ALREADY_SIGNED
5300         * hkp.c (hkp_import): Use log_error. Bug reported by Neal H
5301         Walfield. 
5303         * getkey.c (classify_user_id2): Change args to take the desc union
5304         direct.  It was a stupid idea to pass the individual fields of an
5305         union to this function. Changed all callers.
5306         (classify_user_id): Ditto and allow to pass NULL as the description.
5308 2001-09-06  Werner Koch  <wk@gnupg.org>
5310         * getkey.c (fixup_uidnode): Features flag is now a bit vector.
5311         * keygen.c (add_feature_mdc): Ditto.
5313         Revamped the entire key I/O code to be prepared for other ways of
5314         key storages and to get rid of the existing shit.  GDBM support has
5315         gone.
5316         * keydb.c: New
5317         * keyring.c, keyring.h: New.
5318         * ringedit.c: Removed.  Moved some stuff to keyring.c
5319         * getkey.c: Changed everything related to the key retrieving
5320         functions which are now using the keydb_ functions.  
5321         (prepare_search, word_match_chars, word_match)
5322         (prepare_word_match, compare_name): Moved to keyring.c
5323         (get_pubkey_byname): Removed ctx arg and add ret_kdbhd
5324         arg.  Changed all callers.
5325         (key_byname): Use get_pubkey_end to release the context and take
5326         new ret_kbdhd arg.  Changed all callers.
5327         (classify_user_id2): Fill the 16 byte fingerprint up with 4 null
5328         bytes not with zero bytes of value 4, tsss.
5329         * import.c (import_one): Updated to use the new keydb interface.
5330         (import_secret_one): Ditto.
5331         (import_revoke_cert): Ditto.
5332         * delkey.c (do_delete_key): Ditto. 
5333         * keyedit.c (keyedit_menu): Ditto.
5334         (get_keyblock_byname): Removed.
5335         * revoke.c (gen_revoke): Ditto. 
5336         * export.c (do_export_stream): Ditto.
5337         * trustdb.c (update_trustdb): Ditto.
5338         * g10.c, gpgv.c (main): Renamed add_keyblock_resource to
5339         keydb_add_resource. 
5340         * Makefile.am:  Added and removed files.
5342         * keydb.h: Moved KBNODE typedef and MAX_FINGERPRINT_LEN to
5343         * global.h: this new header.
5344         
5345 2001-09-03  Werner Koch  <wk@gnupg.org>
5347         * passphrase.c (agent_get_passphrase): Changed nread to size_t.
5348         (passphrase_clear_cache): Ditto.
5350         * keyid.c (mk_datestr): Avoid trigraphs.
5351         (fingerprint_from_pk): Cache the keyid in the pk.
5353         * options.h: Add opt.with_fingerprint so that we know whether the
5354         corresponding options was used.
5355         * g10.c (main): Set it here.
5356         * pkclist.c (check_signatures_trust): Always print fingerprint
5357         when this option is used.  Mixed a minor memory leak.
5359         * status.c, status.h: New status INV_RECP.
5360         * pkclist.c (build_pk_list): Issue this status.
5362 2001-08-31  Werner Koch  <wk@gnupg.org>
5364         * parse-packet.c (parse_key,parse_pubkeyenc)
5365         (parse_signature): Return error on reading bad MPIs.
5366         
5367         * mainproc.c (check_sig_and_print): Always print the user ID even
5368         if it is not bound by a signature.  Use the primary UID in the
5369         status messages and encode them in UTF-8
5370         * status.c (write_status_text_and_buffer): New.
5372 2001-08-30  Werner Koch  <wk@gnupg.org>
5374         * packet.h (sigsubpkttype_t): Add SIGSUBPKT_FEATURES.
5375         (PKT_public_key, PKT_user_id): Add a flag for it.
5376         * parse-packet.c, build-packet.c: Add support for them.
5377         * getkey.c (fixup_uidnode, merge_selfsigs): Set the MDC flags.
5378         * keygen.c (add_feature_mdc): New.
5379         (keygen_upd_std_prefs): Always set the MDC feature.
5380         * keyedit.c (show_prefs): List the MDC flag
5381         * pkclist.c (select_mdc_from_pklist): New.
5382         * encode.c (encode_crypt, encrypt_filter): Test whether MDC
5383         should be used.
5384         * cipher.c (write_header): Set MDC use depending on the above test.
5385         Print more status info.
5387         * delkey.c (do_delete_key): Kludge to delete a secret key with no
5388         public key available.
5390         * ringedit.c (find_secret_keyblock_direct): New.
5391         * getkey.c (seckey_available): Simplified.
5393         * ringedit.c (cmp_seckey): Now compares the secret key against the
5394         public key while ignoring all secret parts.
5395         (keyring_search): Use a public key packet as arg.  Allow to search
5396         for subnkeys
5397         (search): Likewise. Changed all callers.
5398         (find_secret_keyblock_bypk): New.
5399         (find_secret_keyblock_byname): First locate the pubkey and then
5400         find the correponding secret key.
5401         * parse-packet.c (parse): Renamed pkttype arg to onlykeypkts and
5402         changed code accordingly.  Changed all callers.
5403         (search_packet): Removed pkttype arg.
5404         * keyedit.c (keyedit_menu): First locate the public key and then
5405         try to locate a secret key.
5407         * ringedit.c (locate_keyblock_by_fpr): Removed.
5408         (locate_keyblock_by_keyid): Removed.
5409         (find_keyblock_bysk): Removed.
5411         * sig-check.c (check_key_signature2): Print the keyid along with
5412         the wrong sig class errors.
5414 2001-08-24  Werner Koch  <wk@gnupg.org>
5416         * sign.c (sign_file): Stripped the disabled comment packet code.
5417         (sign_file, sign_symencrypt_file): Moved common code to ..
5418         (write_onepass_sig_packets): .. this new function.
5419         (sign_file, clearsign_file, sign_symencrypt_file): Moved common
5420         code to 
5421         (write_signature_packets): this new function.
5422         (write_signature_packets, make_keysig_packet)
5423         (update_keysig_packet): Moved common code to 
5424         (hash_uid, hash_sigclass_to_magic): these new functions
5425         (sign_file, sign_symencrypt_file): Moved common code to 
5426         (write_plaintext_packet):  this new function.
5428 2001-08-21  Stefan Bellon  <sbellon@sbellon.de>
5430         * trustdb.c (query_trust_info): Changed trustlevel to signed int.
5431         * g10.c [__riscos__]: Fixed handling of --use-agent --lock-multiple.
5433 2001-08-20  Werner Koch  <wk@gnupg.org>
5435         * encr-data.c (decrypt_data): Keep track on whether we already
5436         printed information about the used algorithm.
5437         * mainproc.c (proc_encrypted): Removed the non-working IDEA hack
5438         and print a message about the assumed algorithm.
5439         * passphrase.c (passphrase_to_dek): Use the same algorithm as above.
5440         (proc_symkey_enc): Print the algorithm, so that the user knows it
5441         before entering the passphrase.
5442         (proc_pubkey_enc, proc_pubkey_enc): Zero the DEK out.
5443         * encode.c (encode_crypt, encrypt_filter): Ditto.
5445         * g10.c: Allow for --sign --symmetric.
5446         * sign.c (sign_and_symencrypt): New.
5448         Applied patches from Stefan Bellon <sbellon@sbellon.de> to support
5449         RISC OS.  Nearly all of these patches are identified by the
5450         __riscos__ macro.
5451         * compress.c: Added a couple of casts.
5452         * g10.c [__riscos__]: Some patches and new options foo-file similar
5453         to all foo-fd options.
5454         * gpgv.c, openfile.c, ringedit.c, tdbio.c: Minor fixes.  Mainly
5455         replaced hardcoded path separators with EXTSEP_S like macros.  
5456         * passprase.c [__riscos__]: Disabled agent stuff
5457         * trustdb.c (check_trust): Changed r_trustlevel to signed int to
5458         avoid mismatch problems in pkclist.c
5459         * pkclist.c (add_ownertrust): Ditto.
5460         * plaintext.c (handle_plaintext) [__riscos__]: Print a note when
5461         file can't be created.
5462         * options.h [__riscos__]: Use an extern unless included from the
5463         main module.
5464         * signal.c (got_fatal_signal) [__riscos__]: Close all files.
5465         
5466 2001-08-14  Werner Koch  <wk@gnupg.org>
5468         * keygen.c (ask_algo): New arg r_usage.  Allow for RSA keys.
5469         (gen_rsa): Enabled the code.
5470         (do_create): Enabled RSA branch.
5471         (parse_parameter_usage): New.
5472         (proc_parameter_file): Handle usage parameter.
5473         (read_parameter_file): Ditto.
5474         (generate_keypair): Ditto.
5475         (generate_subkeypair): Ditto.
5476         (do_generate_keypair): Ditto.
5477         (do_add_key_flags): New.
5478         (keygen_add_std_prefs): Use the new function.
5479         (keygen_add_key_flags_and_expire): New.
5480         (write_selfsig, write_keybinding): Handle new usage arg.
5481         * build-packet.c (build_sig_subpkt): Make sure that key flags go
5482         into the hashed area.
5483         
5484         * keygen.c (write_uid): Initialize the reference cunter.
5486         * keyedit.c (keyedit_menu): No more need to update the trustdb for
5487         preferences.  Added calls to merge keblock.
5489         * kbnode.c (dump_kbnode): Print some more flags.
5491 2001-08-10  Werner Koch  <wk@gnupg.org>
5493         Revamped the preference handling.
5495         * packet.h (prefitem_t, preftype_t): New.
5496         (PKT_public_key): Added a uid field.
5497         (PKT_user_id): Added field to store preferences and a reference
5498         counter.
5499         * parse-packet.c (parse_user_id,parse_photo_id): Initialize them
5500         * free-packet.c (free_user_id): Free them.
5501         (copy_user_id): Removed.
5502         (scopy_user_id): New. 
5503         (cmp_user_ids): Optimized for identical pointers.
5504         (release_public_key_parts): Release the uid.
5505         (copy_public_key_with_new_namehash): Removed.
5506         (copy_prefs): New.
5507         * keyedit.c (menu_adduid): Use the new shallow copy user id.
5508         (show_prefs): Adjusted implementation.
5509         (keyedit_menu): No more need to update the trustdb after changing
5510         preferences.
5511         * getkey.c (fixup_uidnode): Store preferences.
5512         (find_by_name): Return a user id packet and remove namehash stuff.
5513         (lookup): Removed the unused namehash stuff.
5514         (finish_lookup): Added foundu arg.
5515         (pk_from_block): Removed the namehash arg and changed all callers.
5516         (merge_selfsigs): Copy prefs to all keys.
5517         * trustdb.c (get_pref_data): Removed.
5518         (is_algo_in_prefs): Removed.
5519         (make_pref_record): Deleted and removed all class.
5520         * pkclist.c (select_algo_from_prefs): Adjusted for the new
5521         preference implementation.
5522         * pubkey-enc.c (is_algo_in_prefs): New.
5523         (get_it): Use that new function. 
5525 2001-08-09  Werner Koch  <wk@gnupg.org>
5527         * build-packet.c (build_sig_subpkt): Fixed calculation of
5528         newarea->size.
5530         * g10.c (main): New option "--preference-list"
5531         * keyedit.c (keyedit_menu): New commands "setpref" and "updpref".
5532         (menu_set_preferences): New.
5533         * keygen.c (keygen_set_std_prefs): New.
5534         (set_one_pref): New.
5535         (check_zip_algo): New.
5536         (keygen_get_std_prefs): New.
5537         (keygen_upd_std_prefs): New
5538         (keygen_add_std_prefs): Move the pref setting code into the above fnc.
5539         * build-packet.c (build_sig_subpkt): Updated the list of allowed
5540         to update subpackets.
5542 2001-08-08  Werner Koch  <wk@gnupg.org>
5544         * packet.h (subpktarea_t): New.
5545         (PKT_signature): Use that type for hashed_data and unhashed_data and
5546         removed the _data prefix from those fields.  Changed all users.
5547         * parse-packet.c (parse_signature): Changed allocation for that.
5548         (parse_sig_subpkt): Changed declaration
5549         (enum_sig_subpkt): Ditto and changed implementation accordingly.
5550         * free-packet.c (cp_subpktarea): Renamed from cp_data_block and
5551         adjusted implementation. Changed caller.
5552         * sig-check.c (mdc_kludge_check): Adjusted the hashing.
5553         (do_check): Ditto.
5554         * sign.c (sign_file, clearsign_file, make_keysig_packet,
5555         update_keysig_packet): Ditto.
5556         * build-packet.c (build_sig_subpkt): Partial rewrite.
5557         (find_subpkt): Adjusted and made static.
5558         (delete_sig_subpkt): Adjusted.
5559         (do_signature): Ditto.
5561         * keygen.c (ask_keysize): Do not print the notes about suggested
5562         key sizes if just a DSA key is generated.
5564         * trustdb.c (add_ultimate_key): s/log_error/log_info/ for
5565         duplicated inserted trusted keys.
5567 2001-08-07  Werner Koch  <wk@gnupg.org>
5569         * sign.c (sleep): Redefine for W32.
5571         * g10.c, options.h: Set new flag opt.no_homedir_creation when
5572         --no-options is given.
5573         * openfile.c (try_make_homedir): Don't create the homedir in that case.
5575 2001-08-03  Werner Koch  <wk@gnupg.org>
5577         * armor.c (armor_filter): Removed the default comment string
5578         because it could get us in trouble due to translations using non
5579         ascii characters.
5581 2001-08-01  Werner Koch  <wk@gnupg.org>
5583         * keylist.c (list_keyblock_print): Do not list revoked UIDs unless
5584         in verbose mode and we do no signature listing.
5586         * getkey.c (finish_lookup): Skip subkeys which are not yet valid.
5587         * g10.c, options.h: New option --ignore-valid-from.
5589         * sign.c (make_keysig_packet): Added new sigversion argument to
5590         allow the caller to force generation of required signature
5591         version. Changed all callers. Suggested by Thomas Roessler.
5593         * keyedit.c (sign_uids): Force v4 signature generation for local
5594         sigs.  Removed the check for local signature and pre-v4 keys.
5596 2001-07-27  Werner Koch  <wk@gnupg.org>
5598         * keyedit.c (sign_uids): Check that we are not trying to to a
5599         lsign with a pre-v4 key.  Bug noticed by Thomas Roessler.
5601 2001-07-26  Werner Koch  <wk@gnupg.org>
5603         * parse-packet.c (parse_photo_id): Reset all variables.
5604         * getkey.c (merge_selfsigs_main): Removed checks on PHOTO_ID
5605         because this is handled identically to a user ID.
5607 2001-07-06  Werner Koch  <wk@gnupg.org>
5609         * cipher.c (write_header): Don't use MDC with --rfc1991.  Suggested
5610         by disastry@saiknes.lv.
5612 2001-07-05  Werner Koch  <wk@gnupg.org>
5614         * g10.c, options.h: New option --preserve-permissions.
5615         * ringedit.c (add_keyblock_resource): Use it here
5616         (keyring_copy): and here.
5618         * trustdb.c (verify_own_keys): Be more silent on --quiet.
5619         Suggested by Thomas Roessler.
5620         * sig-check.c (check_key_signature2): Ditto.
5621         * mainproc.c (proc_encrypted, proc_tree): Ditto
5622         * getkey.c (lookup): Ditto.
5624 2001-07-04  Werner Koch  <wk@gnupg.org>
5626         * ringedit.c (add_keyblock_resource): Restore filename in case of error.
5628 2001-06-25  Werner Koch  <wk@gnupg.org>
5630         * kbnode.c (dump_kbnode): Print the signature timestamp.
5632         * keyedit.c (keyedit_menu): New menu point "primary".
5633         (change_primary_uid_cb): New.
5634         (menu_set_primary_uid): New.
5635         * sign.c (update_keysig_packet): New.
5636         * build-packet.c (build_sig_subpkt): Put the primary UID flag into
5637         the hashed area. Allow update of some more packets.
5639 2001-06-15  Werner Koch  <wk@gnupg.org>
5641         * getkey.c (merge_selfsigs): Exit gracefully when a secret key is
5642         encountered.  May happen if a secret key is in public keyring.
5643         Reported by Francesco Potorti.
5644         
5645 2001-06-12  Werner Koch  <wk@gnupg.org>
5647         * getkey.c (compare_name): Use ascii_memistr(), ascii_memcasecmp()
5648         * keyedit.c (keyedit_menu): Use ascii_strcasecmp().
5649         * armor.c (radix64_read): Use ascii_toupper().  
5650         * ringedit.c (do_bm_search): Ditto.
5651         * keygen.c (read_parameter_file): Ditto.
5652         * openfile.c (CMP_FILENAME): Ditto.
5653         * g10.c (i18n_init): We can now use just LC_ALL.
5655 2001-05-29  Werner Koch  <wk@gnupg.org>
5657         * keygen.c (generate_subkeypair): Print a warning if a subkey is
5658         created on a v3 key. Suggested by Brian M. Carlson.
5660 2001-05-27  Werner Koch  <wk@gnupg.org>
5662         * keyid.c (get_lsign_letter): New.
5663         * keylist.c (list_keyblock_colon): Use it here.
5664         * mainproc.c (list_node): and here.
5666         * getkey.c, packet.h, free-packet.c: Removed that useless key
5667         created field; I dunno why I introducded this at all - the
5668         creation time is always bound to the key packet and subject to
5669         fingerprint calculation etc.
5671         * getkey.c (fixup_uidnode): Add keycreated arg and use this
5672         instead of the signature timestamp to calculate the
5673         help_key_expire.  Bug reported by David R. Bergstein.
5674         (merge_selfsigs_main): Correct key expiration time calculation.
5675         (merge_selfsigs_subkey): Ditto.
5677 2001-05-25  Werner Koch  <wk@gnupg.org>
5679         * revoke.c (gen_revoke): Add a cast to a tty_printf arg.
5680         * delkey.c (do_delete_key): Ditto.
5681         * keyedit.c (print_and_check_one_sig): Ditto.
5682         (ask_revoke_sig): Ditto.
5683         (menu_revsig): Ditto.
5684         (check_all_keysigs): Removed unused arg.
5686 2001-05-23  Werner Koch  <wk@gnupg.org>
5688         * g10.c (opts): Typo fix by Robert C. Ames.
5690 2001-05-06  Werner Koch  <wk@gnupg.org>
5692         * revoke.c: Small typo fix
5694 2001-05-04  Werner Koch  <wk@gnupg.org>
5696         * passphrase.c (passphrase_clear_cache): Shortcut if agent usage
5697         is not enabled.
5699 2001-05-01  Werner Koch  <wk@gnupg.org>
5701         * passphrase.c (writen): Replaced ssize_t by int.  Thanks to 
5702         to Robert Joop for reporting that SunOS 4.1.4 does not have it.
5704 2001-04-28  Werner Koch  <wk@gnupg.org>
5706         * getkey.c (merge_public_with_secret): pkttype was not set to subkey.
5708 2001-04-27  Werner Koch  <wk@gnupg.org>
5710         * skclist.c (build_sk_list): Changed one log_debug to log_info.
5712 2001-04-25  Werner Koch  <wk@gnupg.org>
5714         * keyedit.c (show_prefs): Add a verbose mode.
5715         (show_key_with_all_names): Pass verbose flag for special value of
5716         with_pref.
5717         (keyedit_menu): New command "showpref"
5718         (show_key_with_all_names): Mark revoked uids and the primary key.
5720 2001-04-24  Werner Koch  <wk@gnupg.org>
5722         * getkey.c (get_primary_uid): Return a different string in case of
5723         error and made it translatable.
5725         * build-packet.c (do_secret_key): Ugly, we wrote a zero
5726         instead of the computed ndays.  Thanks to M Taylor for complaining
5727         about a secret key import problem.
5729 2001-04-23  Werner Koch  <wk@gnupg.org>
5731         * hkp.c (hkp_ask_import): Allow to specify a port number for the 
5732         keyserver.  Add a kudge to set the no_shutdown flag.
5733         (hkp_export): Ditto.
5734         * options.skel: Document the changes 
5736 2001-04-20  Werner Koch  <wk@gnupg.org>
5738         * options.skel: Add some more comments.
5740 2001-04-19  Werner Koch  <wk@gnupg.org>
5742         * keyid.c (mk_datestr): New.  Handles negative times.  We must do
5743         this because Windoze segvs on negative times passed to gmtime().
5744         Changed all datestr_from function to use this one.
5746         * keyid.c, keyid.h (colon_strtime): New. To implement the
5747         fixed-list-mode.
5748         (colon_datestr_from_pk): New.
5749         (colon_datestr_from_sk): New.
5750         (colon_datestr_from_sig): New.
5751         * keylist.c (list_keyblock_colon): Use these functions here.
5752         * mainproc.c (list_node): Ditto.
5754 2001-04-18  Werner Koch  <wk@gnupg.org>
5756         * openfile.c (open_sigfile): Fixed the handling of ".sign".
5757         * mainproc.c (proc_tree): Use iobuf_get_real_fname.
5758         Both are by Vincent Broman.
5760 2001-04-14  Werner Koch  <wk@gnupg.org>
5762         * getkey.c (fixup_uidnode): Removed check for !sig which is
5763         pointless here.  Thanks to Jan Niehusmann.
5765 2001-04-10  Werner Koch  <wk@gnupg.org>
5767         * sig-check.c (check_key_signature2): Use log_info instead of
5768         log_error so that messed up keys do not let gpg return an error.
5769         Suggested by Christian Kurz.
5771         * getkey.c (merge_selfsigs_main): Do a fixup_uidnode only if we
5772         have both, uid and sig.  Thanks to M Taylor.
5774 2001-04-05  Werner Koch  <wk@gnupg.org>
5776         * armor.c (unarmor_pump_new,unarmor_pump_release): New.
5777         (unarmor_pump): New. 
5778         * pipemode.c (pipemode_filter): Use the unarmor_pump to handle
5779         armored or non-armored detached signatures.  We can't use the
5780         regular armor_filter becuase this does only chack for armored
5781         signatures the very first time.  In pipemode we may have a mix of
5782         armored and binary detached signatures.
5783         * mainproc.c (proc_tree): Do not print the "old style" notice when
5784         this is a pipemode processes detached signature.
5785         (proc_plaintext): Special handling of pipemode detached sigs.
5787         * packet.h (CTRLPKT_PLAINTEXT_MARK): New.
5788         * parse-packet.c (create_gpg_control): New.
5789         * kbnode.c (dump_kbnode): Support it here.
5790         * mainproc.c (check_sig_and_print): Fixed the check for bad
5791         sequences of multiple signatures.
5792         (proc_plaintext): Add the marker packet.
5793         (proc_tree): We can now check multiple detached signatures.
5795 2001-04-02  Werner Koch  <wk@gnupg.org>
5797         The length of encrypted packets for blocksizes != 8 was not
5798         correct encoded.  I think this is a minor problem, because we
5799         usually use partial length packets.  Kudos to Kahil D. Jallad for
5800         pointing this out.
5801         * packet.h: Add extralen to PKT_encrypted.
5802         * cipher.c (write_header): Set extralen.
5803         * build-packet.c (do_encrypted): Use extralen instead of const 10.
5804         (do_encrypted_mdc): Ditto.
5805         * parse-packet.c (parse_encrypted): Set extralen to 0 because we
5806         don't know it here.
5808 2001-03-30  Werner Koch  <wk@gnupg.org>
5810         * getkey.c (premerge_public_with_secret): Changed wording an add
5811         the keyID to the info message.
5813 2001-03-29  Werner Koch  <wk@gnupg.org>
5815         * getkey.c (premerge_public_with_secret): Use log_info instead of
5816         log_error when no secret key was found for a public one.
5817         Fix the usage if the secret parts of a key are not available.
5819         * openfile.c (ask_outfile_name): Trim spaces.
5820         (open_outfile): Allow to enter an alternate filename.  Thanks to
5821         Stefan Bellon.
5822         * plaintext.c (handle_plaintext): Ditto.
5824 2001-03-28  Werner Koch  <wk@gnupg.org>
5826         * mainproc.c (do_check_sig): Allow direct key and subkey
5827         revocation signature.
5828         * sig-check.c (check_key_signature2): Check direct key signatures.
5829         Print the signature class along with an error.
5831 2001-03-27  Werner Koch  <wk@gnupg.org>
5833         * packet.h: Add a missing typedef to an enum.  Thanks to Stefan Bellon.
5835         * g10.c: New option --no-sig-create-check.
5836         * sign.c (do_sign): Implement it here.
5837         * g10.c: New option --no-sig-cache.
5838         * sig-check.c (check_key_signature2): Implement it here.
5839         (cache_selfsig_result): and here.
5841         * keylist.c (list_keyblock): Removed debugging stuff.
5843         * getkey.c (cache_public_key): Made global.
5844         * keygen.c (write_selfsig, write_keybinding): Cache the new key.
5846         * getkey.c (key_byname): Add new arg secmode and changed all
5847         callers to request explicitly the mode.  Deriving this information
5848         from the other supplied parameters does not work if neither pk nor
5849         sk are supplied.
5851 2001-03-25  Werner Koch  <wk@gnupg.org>
5853         * packet.h (ctrlpkttype_t): New.
5854         * mainproc.c (add_gpg_control,proc_plaintext,proc_tree): Use the
5855         new enum values.
5856         * pipemode.c (make_control): Ditto.
5857         * armor.c (armor_filter): Ditto.
5859 2001-03-24  Werner Koch  <wk@gnupg.org>
5861         * sign.c (do_sign): Verify the signature right after creation.
5863 2001-03-23  Werner Koch  <wk@gnupg.org>
5865         * status.c, status.h (STATUS_UNEXPECTED): New.
5866         * mainproc.c (do_proc_packets): And emit it here.
5868 2001-03-21  Werner Koch  <wk@gnupg.org>
5870         * status.c: Add sys/types.h so that it runs on Ultrix.  Reported
5871         by Georg Schwarz.x
5873         * build-packet.c (build_sig_subpkt): Fixed generaton of packet
5874         length header in case where 2 bytes headers are needed.  Thanks to
5875         Piotr Krukowiecki.
5877 2001-03-19  Werner Koch  <wk@gnupg.org>
5879         * g10.c (main): the default keyring is no always used unless
5880         --no-default-keyring is given.  
5882         * ringedit.c (add_keyblock_resource): invalidate cache after file
5883         creation.
5885 2001-03-15  Werner Koch  <wk@gnupg.org>
5887         * keygen.c (ask_algo): Changed the warning of the ElGamal S+E Algo.
5889         * keylist.c (print_capabilities): New.
5890         (list_keyblock_colon): and use it here.
5892 2001-03-13  Werner Koch  <wk@gnupg.org>
5894         * main.c, options.h: New option --fixed_list_mode.
5895         * keylist.c (list_keyblock_colon): use it here.
5897         * getkey.c (merge_keys_and_selfsig): Divert merging of public keys
5898         to the function used in key selection..
5899         * keylist.c (is_uid_valid): Removed.
5900         (list_keyblock): Splitted into ..
5901         (list_keyblock_print, list_keyblock_colon): .. these.
5902         functions.  Changed them to use the flags set in the key lookup code.
5903         (reorder_keyblock): New, so that primary user IDs are listed first.
5905         * ringedit.c (keyring_copy): flush the new iobuf chaces before
5906         rename or remove operations.  This is mainly needed for W32.
5908         * hkp.c [HAVE_DOSISH_SYSTEM]: Removed the disabled code because we
5909         have now W32 socket support in ../util/http.c
5911         * skclist.c (key_present_in_sk_list): New.
5912         (is_duplicated_entry): New.
5913         (build_sk_list): Check for duplicates and do that before unlocking.
5915 2001-03-12  Werner Koch  <wk@gnupg.org>
5917         * armor.c (parse_header_line): Removed double empty line check.
5918         (parse_header_line): Replaced trim_trailing_ws with a counting
5919         function so that we can adjust for the next read.
5921         * options.skel: Fixed 3 typos. By Thomas Klausner. Replaced the
5922         keyserver example by a better working server. 
5924         * parse-packet.c (parse_symkeyenc): Return Invalid_Packet on error.
5925         (parse_pubkeyenc): Ditto.
5926         (parse_onepass_sig): Ditto.
5927         (parse_plaintext): Ditto.
5928         (parse_encrypted): Ditto.
5929         (parse_signature): Return error at other places too.
5930         (parse_key): Ditto.
5931         * g10.c (main): Set opt.list_packets to another value when invoked
5932         with the --list-packets command.
5933         * mainproc.c (do_proc_packets): Don's stop processing when running
5934         under --list-packets command.
5936         * signal.c (do_sigaction): Removed.
5937         (init_one_signal): New to replace the above.  Needed to support
5938         systems without sigactions. Suggested by Dave Dykstra.
5939         (got_fatal_signal,init_signals): Use the above here. 
5940         (do_block): Use sigset() if sigprocmask() is not available.
5942         * armor.c (parse_hash_header): Test on TIGER192, which is the
5943         correct value as per rfc2440.  By Edwin Woudt.
5945 2001-03-08  Werner Koch  <wk@gnupg.org>
5947         * misc.c: Include time.h. By James Troup.
5949         * getkey.c: Re-enabled the unknown user Id and PK caches and
5950         increased their sizes.
5952         * getkey.c (merge_selfsigs_main): Set expire date and continue
5953         processing even if we found a revoked key.
5954         (merge_selfsigs_subkeys): Ditto.
5955         
5956         * packet.h: Add an is_revoked flag to the user_id packet.
5957         * getkey.c (fixup_uidnode): Set that flag here.
5958         (merge_selfsigs_main): Fix so that the latest signature is used to
5959         find the self-signature for an UID.
5960         * parse-packet.c (parse_user_id): Zero out all fields.
5961         * mainproc.c (check_sig_and_print): Print the primary user ID
5962         according the the node flag and then all other non-revoked user IDs.
5963         (is_uid_revoked): Removed; it is now handled by the key selection code.
5964         
5965         Changed the year list of all copyright notices.
5966         
5967 2001-03-07  Werner Koch  <wk@gnupg.org>
5969         * getkey.c (finish_lookup): Print an info message only in verbose mode.
5971 2001-03-05  Werner Koch  <wk@gnupg.org>
5973         * packet.h: Replaced sigsubpkt_t value 101 by PRIV_VERIFY_CACHE.
5974         We have never used the old value, so we can do this without any harm.
5975         * parse-packet.c (dump_sig_subpkt): Ditto.
5976         (parse_one_sig_subpkt): Parse that new sub packet.
5977         * build-packet.c (build_sig_subpkt): Removed the old one from the
5978         hashed area.
5979         (delete_sig_subpkt): New.
5980         (build_sig_subpkt): Allow an update of that new subpkt.
5981         * sig-check.c (check_key_signature2): Add verification caching
5982         (cache_selfsig_result): New.
5983         * export.c (do_export_stream): Delete that sig subpkt before exporting.
5984         * import.c (remove_bad_stuff): New.
5985         (import): Apply that function to all imported data 
5987 2001-03-03  Werner Koch  <wk@gnupg.org>
5989         * getkey.c: Introduced a new lookup context flag "exact" and used 
5990         it in all place where we once used primary.
5991         (classify_user_id2): Replaced the old function and add an extra
5992         argument to return whether an exact keyID has been requested.
5993         (key_byname): Removed the unused ctx.primary flag
5994         (get_seckey_byname2): Ditto.
5995         (finish_lookup): Changed debugging output.
5997 2001-03-02  Werner Koch  <wk@gnupg.org>
5999         * keylist.c (list_one): Remove the merge key calls. 
6001 2001-03-01  Werner Koch  <wk@gnupg.org>
6003         * getkey.c (finish_lookup): Don't use it if we no specific usage
6004         has been requested.
6005         (merge_selfsigs_main): fix UID only if we have an signature.
6006         (lookup): Return UNU_PUBKEY etc. instead of NO_PUBKEY if we found
6007         a key but the requested usage does not allow this key.
6008         * import.c (import_one): Take UNU_PUBKEY into account.
6009         * mainproc.c (list_node): Ditto.
6010         * keylist.c (list_keyblock): Ditto.
6011         * keyedit.c (print_and_check_one_sig): Ditto. 
6013 2001-02-09  Werner Koch  <wk@gnupg.org>
6015         * delkey.c (delete_key): Removed that silly assert which rendered
6016         the whole new stuff meaningless.
6018 2001-02-08  Werner Koch  <wk@gnupg.org>
6020         * getkey.c (key_byname): It can happen that we have both, sk and pk
6021         NULL, fix for that.
6023         * parse-packet.c (parse_one_sig_subpkt): Add support for
6024         primary_uid and key_flags.
6025         (can_handle_critical): Ditto
6027         * parse-packet.c (parse_encrypted): Fixed listing of pktlen for
6028         MDC packets.
6030         * getkey.c: Backported the version of this file from gpg 1.1. this
6031         involved some changes in other files too.
6032         * parse-packet.c (parse_key): Clear req_usage.
6033         * skclist.c (build_sk_list): Use req_usage to pass the usage
6034         information to the lookup function.
6035         * pkclist.c (build_pk_list): Ditto.
6036         * free-packet.c (copy_public_parts_to_secret_key): New.
6037         * keydb.h: Add IS_* macros to check the sig_class.
6038         * misc.c (openpgp_cipher_test_algo): New.
6039         (openpgp_pk_test_algo): New.
6040         (openpgp_pk_algo_usage): New.
6041         (openpgp_md_test_algo): New.
6042         * packet.h: Add a few fields to PKT_{public,secret}_key and
6043         PKT_user_id.
6044         * seckey-cert.c (do_check): Use the new main_keyid field.
6046 2001-02-04  Werner Koch  <wk@gnupg.org>
6048         * encr-data.c (decrypt_data): Catch error when we had problems to
6049         parse the encrypted packet. By Timo.
6051 2001-01-29  Werner Koch  <wk@gnupg.org>
6053         * g10.c (main): --batch does now set nogreeting.
6055         * delkey.c (do_delete_key): Fixed delete-both functionality.
6057 2001-01-22  Werner Koch  <wk@gnupg.org>
6059         * g10.c: New command --delete-secret-and-public-key.
6060         * delkey.c (delete_key): Add new arg allow_both.
6061         (do_delete_key): Move most stuff from above to this new function.
6063 2001-01-12  Werner Koch  <wk@gnupg.org>
6065         * passphrase.c (passphrase_to_dek): Use MD5 when IDEA is installed
6066         and we have no S2K.
6067         * mainproc.c (proc_encrypted): Likewise
6069 2001-01-11  Werner Koch  <wk@gnupg.org>
6071         * sig-check.c (do_check): Print the signature key expire message
6072         only in verbose mode and added the keyID.
6074 2001-01-09  Werner Koch  <wk@gnupg.org>
6076         * status.c, status.h: New status USERID_HINT. 
6077         (write_status_text): Replace LF and CR int text by C-escape sequence.
6079         * passphrase.c (passphrase_to_dek): Fixed the NEED_PASSPHRASE
6080         output.  It does now always print 2 keyIDs.  Emit the new
6081         USERID_HINT.
6083 2001-01-08  Werner Koch  <wk@gnupg.org>
6085         * g10.c, options.h: New option --no-expensive-trust-checks.
6086         * keylist.c (list_keyblock): Act on this option.
6088 2001-01-04  Werner Koch  <wk@gnupg.org>
6090         * g10.c (main): Set homedir only in the pre-parsing phase and
6091         replace backslashes in the W32 version.
6093 2001-01-03  Werner Koch  <wk@gnupg.org>
6095         * status.c, status.h : New status KEY_CREATED
6096         * keygen.c (do_generate_keypair,generate_subkeypair): Emit it.
6098 2000-12-28  Werner Koch  <wk@gnupg.org>
6100         * signal.c (got_fatal_signal): Remove lockfiles here because the
6101         atexit stuff does not work due to the use of raise. Suggested by
6102         Peter Fales.
6103         * gpgv.c (remove_lockfiles): New stub.
6104         
6105 2000-12-19  Werner Koch  <wk@gnupg.org>
6107         * status.c, status.h (cpr_get_no_help): New.
6108         * keyedit.c (keyedit_menu): Use it here because we have our own
6109         help list here.
6111 2000-12-18  Werner Koch  <wk@gnupg.org>
6113         * mainproc.c (print_failed_pkenc): Don't print the sometimes
6114         confusing message about unavailabe secret key.  Renamed ...
6115         (print_pkenc_list): ... to this and introduced failed arg.
6116         (proc_encrypted): Print the failed encryption keys and then
6117         the one to be used.
6118         (proc_pubkey_enc): Store also the key we are going to use.
6120         * mainproc.c (check_sig_and_print): Don't list revoked user IDs.
6121         (is_uid_revoked): New.
6123 2000-12-08  Werner Koch  <wk@gnupg.org>
6125         * pipemode.c: Made the command work.  Currently only for
6126         non-armored detached signatures.
6127         * mainproc.c (release_list): Reset the new pipemode vars.
6128         (add_gpg_control): Handle the control packets for pipemode
6129         * status.c, status.h: New stati {BEGIN,END}_STREAM.
6131 2000-12-07  Werner Koch  <wk@gnupg.org>
6133         * g10.c: New option --allow-secret-key-import.
6134         * import.c (import_keys,import_keys_stream): Honor this option.
6135         (import): New arg allow_secret and pass that arg down to ...
6136         (import_secret_one): to this and print a warning if secret key
6137         importing is not allowed.
6139 2000-12-05  Werner Koch  <wk@gnupg.org>
6141         * cipher.c (cipher_filter): Moved the end_encryption status ...
6142         * encode.c (encode_simple,encode_crypt): to here
6143         * sign.c (sign_file): and here.
6145         * status.c (mywrite): Removed.
6146         (get_status_string): Removed the LFs from the strings.
6147         (set_status_fd,is_status_enabed,write_status_text,
6148         write_status_buffer): Replaced all mywrite by stdio calls and use
6149         fdopen to create a strem.  This is needed to make things smoother
6150         in the W32 version.
6152 2000-12-04  Werner Koch  <wk@gnupg.org>
6154         * import.c (merge_blocks): Increment n_sigs for revocations.
6156 2000-11-30  Werner Koch  <wk@gnupg.org>
6158         * g10.c (main): Use iobuf_translate_file_handle for all options
6159         with filehandles as arguments.  This is function does some magic
6160         for the W32 API.
6162         * verify.c (verify_signatures): Add a comment rant about the
6163         detached signature problem.
6164         * mainproc.c (proc_tree): Issue an error if a detached signature
6165         is assumed but a standard one was found.
6166         * plaintext.c (hash_datafiles): Don't fall back to read signature
6167         from stdin.
6168         * openfile.c (open_sigfile): Print verbose message only if the
6169         file could be accessed.
6171 2000-11-24  Werner Koch  <wk@gnupg.org>
6173         * passphrase.c [HAVE_DOSISH_SYSTEM]: Disabled all the agent stuff.
6175 2000-11-16  Werner Koch  <wk@gnupg.org>
6177         * g10.c: New option --use-agent
6178         * passphrase.c (agent_open,agent_close): New.
6179         (agent_get_passphrase,agent_clear_passphrase): New.
6180         (passphrase_clear_cache): New.
6181         (passphrase_to_dek): Use the agent here.
6182         * seckey-cert.c (do_check): Clear cached passphrases.
6184 2000-11-15  Werner Koch  <wk@gnupg.org>
6186         * status.c (write_status_text): Moved the big switch to ...
6187         (get_status_string): ... new function.
6188         (write_status_buffer): New.
6190         * status.c (mywrite): New and replaced all write() by this.
6192         * status.c, status.h: Add 3 status lcodes for notaions and policy.
6193         * mainproc.c (print_notation_data): Do status output of notations.
6194         
6195 2000-11-13  Werner Koch  <wk@gnupg.org>
6197         * sign.c (clearsign_file): Use LF macro to print linefeed.
6198         
6199 2000-11-11  Paul Eggert  <eggert@twinsun.com>
6201         Clean up the places in the code that incorrectly use "long" or
6202         "unsigned long" for file offsets.  The correct type to use is
6203         "off_t".  The difference is important on large-file hosts,
6204         where "off_t" is longer than "long".
6206         * keydb.h (struct keyblock_pos_struct.offset):
6207         Use off_t, not ulong, for file offsets.
6208         * packet.h (dbg_search_packet, dbg_copy_some_packets,
6209         search_packet, copy_some_packets): Likewise.
6210         * parse-packet.c (parse, dbg_search_packet, search_packet,
6211         dbg_copy_some_packets, copy_some_packets): Likewise.
6212         * ringedit.c (keyring_search): Likewise.
6214         * parse-packet.c (parse): Do not use %lu to report file
6215         offsets in error diagnostics; it's not portable.
6216         * ringedit.c (keyring_search): Likewise.
6218 2000-11-09  Werner Koch  <wk@gnupg.org>
6220         * g10.c (main): New option --enable-special-filenames.
6222 2000-11-07  Werner Koch  <wk@gnupg.org>
6224         * g10.c (main): New command --pipemode.
6225         * pipemode.c: New.
6227 2000-10-23  Werner Koch  <wk@gnupg.org>
6229         * armor.c (armor_filter): Changed output of hdrlines, so that a CR
6230         is emitted for DOS systems.
6232         * keygen.c (read_parameter_file): Add a cast for isspace().
6234         * status.c (myread): Use SIGINT instead of SIGHUP for DOS. 
6236 2000-10-19  Werner Koch  <wk@gnupg.org>
6238         * g10.c: New option --ignore-crc-error
6239         * armor.c (invalid_crc): New.
6240         (radix64_read): Act on new option.
6242         * openfile.c (try_make_homedir): Klaus Singvogel fixed a stupid
6243         error introduced on Sep 6th. 
6245 2000-10-18  Werner Koch  <wk@gnupg.org>
6247         * misc.c (print_cipher_algo_note): Don't print the note for AES.
6248         Changed wording.
6250 2000-10-16  Werner Koch  <wk@gnupg.org>
6252         * mainproc.c (do_proc_packets): Hack to fix the problem that
6253         signatures are not detected when there is a MDC packet but no
6254         compression packet.
6255         
6256         * g10.c (print_hashline): New.
6257         (print_mds): Use above func with --with-colons.
6259         * mainproc.c (check_sig_and_print): Detect multiple signatures
6260         and don't verify them.
6262 2000-10-14  Werner Koch  <wk@gnupg.org>
6264         * mainproc.c (add_onepass_sig): There is an easier solution to the
6265         error fixed yesterday; just check that we only have onepass
6266         packets.  However, the other solution provides an cleaner
6267         interface and opens the path to get access to other information
6268         from the armore headers.
6269         (release_list): Reset some more variables.
6271 2000-10-13  Werner Koch  <wk@gnupg.org>
6273         * mainproc.c (add_gpg_control): New.
6274         (do_proc_packets): use it.
6275         (proc_plaintext): Changed logic to detect clearsigns.
6276         (proc_tree): Check the cleartext sig with some new code.
6278         * packet.h: New packet PKT_GPG_CONTROL.
6279         * parse-packet.c (parse_gpg_control): New.
6280         * misc.c (get_session_marker): New.
6281         * armor.c (armor_filter): Replaced the faked 1-pass packet by the
6282         new control packet.
6284         * keyedit.c (keyedit_menu): Allow batchmode with a command_fd. 
6285         * status.c (my_read): New.
6286         (do_get_from_fd): use it.
6288 2000-10-12  Werner Koch  <wk@gnupg.org>
6290         * keygen.c (keygen_add_std_prefs): Add Rijndael to the prefs.
6292 2000-10-07  Werner Koch  <wk@gnupg.org>
6294         * gpgv.c: Add more stubs for ununsed code to make the binary smaller.
6296 Wed Oct  4 15:50:18 CEST 2000  Werner Koch  <wk@openit.de>
6298         * sign.c (hash_for): New arg to take packet version in account, changed
6299         call callers.
6301         * gpgv.c: New.
6302         * Makefile.am: Rearranged source files so that gpgv can be build with
6303         at least files as possible.
6305 Mon Sep 18 12:13:52 CEST 2000  Werner Koch  <wk@openit.de>
6307         * hkp.c (not_implemented): Print a notice for W32
6309 Fri Sep 15 18:40:36 CEST 2000  Werner Koch  <wk@openit.de>
6311         * keygen.c (keygen_add_std_prefs): Changed order of preferences to
6312         twofish, cast5, blowfish.
6314         * pkclist.c (algo_available): Removed hack to disable Twofish.
6316 Thu Sep 14 17:45:11 CEST 2000  Werner Koch  <wk@openit.de>
6318         * parse-packet.c (dump_sig_subpkt): Dump key flags. Print special
6319         warning in case of faked ARRs.
6321         * getkey.c (finsih_lookup): Hack so that for v4 RSA keys the subkey
6322         is used for encryption.
6324 Thu Sep 14 14:20:38 CEST 2000  Werner Koch  <wk@openit.de>
6326         * g10.c (main): Default S2K algorithms are now SHA1 and CAST5 - this
6327         should solve a lot of compatibility problems with other OpenPGP
6328         apps because those algorithms are SHOULD and not optional.  The old
6329         way to force it was by using the --openpgp option whith the drawback 
6330         that this would disable a couple of workarounds for PGP.
6332         * g10.c (main): Don't set --quite along with --no-tty.  By Frank Tobin.
6334         * misc.c (disable_core_dump): Don't display a warning here but a return
6335         a status value and ...
6336         * g10.c (main): ...print warnining here. Suggested by Sam Roberts.
6338 Wed Sep 13 18:12:34 CEST 2000  Werner Koch  <wk@openit.de>
6340         * keyedit.c (keyedit_menu): Allow to use "debug" on the secret key.
6342         * ringedit.c (cmp_seckey): Fix for v4 RSA keys.
6343         * seckey-cert.c (do_check): Workaround for PGP 7 bug.
6345 Wed Sep  6 17:55:47 CEST 2000  Werner Koch  <wk@openit.de>
6347         * misc.c (print_pubkey_algo_note): Do not print the RSA notice.
6348         * sig-check.c (do_signature_check): Do not emit the RSA status message.
6349         * pubkey-enc.c (get_session_key): Ditto.
6351         * encode.c (encode_simple, encode_crypt): Fix for large files.
6352         * sign.c (sign_file): Ditto.
6354 Wed Sep  6 14:59:09 CEST 2000  Werner Koch  <wk@openit.de>
6356         * passphrase.c (hash_passphrase): Removed funny assert.  Reported by
6357         David Mathog.
6359         * openfile.c (try_make_homedir): Changes for non-Posix systems.
6360         * g10.c (main): Take the default homedir from macro.
6362         * g10.c: The --trusted-key option is back.
6363         * trustdb.c (verify_own_key): Handle this option.
6364         (add_ultimate_key): Moved stuff from verify_own_key to this new func.
6365         (register_trusted_key): New.
6367 Fri Aug 25 16:05:38 CEST 2000  Werner Koch  <wk@openit.de>
6369         * parse-packet.c (dump_sig_subpkt): Print info about the ARR.
6371         * openfile.c (overwrite_filep): Always return okay if the file is
6372         called /dev/null. 
6373         (make_outfile_name): Add ".sign" to the list of know extensions.
6374         (open_sigfile): Ditto.
6376 Wed Aug 23 19:52:51 CEST 2000  Werner Koch  <wk@openit.de>
6378         * g10.c: New option --allow-freeform-uid. By Jeroen C. van Gelderen.
6379         * keygen.c (ask_user_id): Implemented here.
6381 Fri Aug  4 14:23:05 CEST 2000  Werner Koch  <wk@openit.de>
6383   * status.c (do_get_from_fd): Ooops, we used fd instead of opt.command_fd.
6384   Thanks to Michael Tokarev.
6386 Tue Aug  1 20:06:23 CEST 2000  Werner Koch  <wk@openit.de>
6388   * g10.c: New opttion --try-all-secrets on suggestion from Matthias Urlichs.
6389   * pubkey-enc.c (get_session_key): Quite easy to implement here.
6391 Thu Jul 27 17:33:04 CEST 2000  Werner Koch  <wk@openit.de>
6393   * g10.c: New option --merge-only.  Suggested by Brendan O'Dea.
6394   * import.c (import_one): Implemented it here
6395   (import_secret_one): Ditto.
6396   (print_stats): and give some stats.
6398 Thu Jul 27 12:01:00 CEST 2000  Werner Koch  <wk@openit.de>
6400   * g10.c: New options --show-session-key and --override-session-key
6401   * pubkey-enc.c (hextobyte): New.
6402   (get_override_session_key): New.
6403   * mainproc.c (proc_pubkey_enc): Add session-key stuff.
6404   * status.h, status.c (STATUS_SESSION_KEY): New.
6406 Thu Jul 27 10:02:38 CEST 2000  Werner Koch  <wk@openit.de>
6408   * g10.c (main): Use setmode(O_BINARY) for MSDOS while generating random bytes
6409   (print_mds): Likewise for stdin.
6410   * plaintext.c (handle_plaintext): Likewise for stdout.
6412 Mon Jul 24 10:30:17 CEST 2000  Werner Koch  <wk@openit.de>
6414   * keyedit.c (menu_expire): expire date for primary key can be set again.
6416 Wed Jul 19 11:26:43 CEST 2000  Werner Koch  <wk@openit.de>
6418   * keylist.c (is_uid_valid): New.
6419   (list_keyblock): Print validity information for all user IDs.  Note, this
6420   has to be done at other places too; for now we have only minimal support.
6422 Wed Jul 12 13:32:06 CEST 2000  Werner Koch  <wk@openit.de>
6424   * helptext.c, pkclist.c: s/superseeded/superseded/
6426 Mon Jul 10 16:08:57 CEST 2000  Werner Koch  <wk@openit.de>
6428   * parse-packet.c (enum_sig_subpkt): Fixed testing on crtitical bit in case
6429   of a NULL buffer.  Reported by Peter Marschall.
6431 Wed Jul  5 13:28:45 CEST 2000  Werner Koch  <wk@openit.de>
6433   * keyedit.c, keyid.c: Add some _()
6435   * argparse.c:  Changed the flag to suppress --version handling to also
6436   suppress --help.
6438 Wed Jun 28 11:54:44 CEST 2000  Werner Koch  <wk@openit.de>
6440   * armor.c (armor_filter): Set sigclass to 0 in case of non-dash-escaped
6441   clearsig.  This makes this mode work again.
6443   * mainproc.c (proc_tree): Fixed handling of one-pass-sig packets in textmode.
6444   Disabled the ugly workaround for PGP 5 - let's see whether thi breaks less
6445   cases. Found by Ted Cabeen.
6447   * options.h (DBG_HASHING): New.  All commented md_start_debug are now
6448   controlled by this debug option.
6450   * sign.c (print_status_sig_created): New and called from 2 places.
6452   * keygen.c (gen_rsa): New, but commented.
6453   (ask_algo): Commented support for RSA.
6455   * seckey-cert.c (protect_secret_key): Started to fix the code for v4 RSA
6456   keys - it is not solved yet. However, we have time until, Sep 20th ;)
6458 Wed Jun 14 12:27:09 CEST 2000  Werner Koch  <wk@openit.de>
6460   * status.c (init_shm_coprocessing): Changed the sequence of the get,attach
6461   to cope with the changes in newer Linux kernels.  This bug has been found
6462   by <dmitri@advantrix.com> who also proposed this solution.  Hopefully
6463   this does not break gpg on to many systems.
6465   * cipher.c (write_header): Protect the IV with the MDC too.
6466   * encr-data.c (decrypt_data): Likewise.
6468 Fri Jun  9 10:09:52 CEST 2000  Werner Koch  <wk@openit.de>
6470   * g10.c: New options --no-auto-key-retrieve
6471   * options.h (auto_key_retrieve): New.
6472   * mainproc.c (check_sig_and_print): Implemented that.
6474 Wed Jun  7 19:19:09 CEST 2000  Werner Koch  <wk@openit.de>
6476   * sig-check.c (do_check): Use EMULATE_MDENCODE also on v4 packets.
6478 Wed Jun  7 17:25:38 CEST 2000  Werner Koch  <wk@openit.de>
6480   * cipher.c (write_header): Use plain CFB mode for MDC encrypted packets.
6481   * encr-data.c (decrypt_data): Ditto.
6483 Mon Jun  5 23:41:54 CEST 2000  Werner Koch  <wk@openit.de>
6485   * seskey.c (do_encode_md, encode_md_value): Add new arg v3compathack to work
6486   around a bug in old versions.
6487   * sig-check.c (do_check): use the aboved workaround when enabled.
6488   * g10.c: New option --emulate-md-decode-bug
6490 Mon Jun  5 12:37:43 CEST 2000  Werner Koch  <wk@openit.de>
6492   * build-packet.c (do_mdc): New.
6493   (do_encrypted_mdc): Changed for the new proposal.
6494   * parse-packet.c (parse_mdc): New.
6495   (parse_encrypted): Fixed for the new proposal.
6496   * packet.h (PKT_MDC): New.
6497   * cipher.c (cipher_filter): Build the MDC packet here.
6498   * g10.c (main): Enable --force-mdc.
6499   * encr-data.c (mdc_decode_filter): Fixed for new MDC method
6501   * options.h(rfc2440): New.
6502   * g10.c (main): Changed the selected values for --openpgp to not include
6503   optional algorithms.
6505 Thu May 18 11:38:54 CEST 2000  Werner Koch  <wk@openit.de>
6507         * keyedit.c (keyedit_menu): Add a keyword arg to the prompt.
6509         * status.c, status.h: Added 3 new status tokens.
6510         * status.c (do_get_from_fd): New.
6511         (cpr_enabled,cpr_get,cpr_get_hidden,cpr_kill_prompt,
6512          cpr_get_answer_is_yes,cpr_get_answer_yes_no_quit): Modified to work
6513          with the new function.
6514         * g10.c: Add new option --command-fd.
6516         * status.c (progress_cb): New.
6517         (set_status_fd): Register progress functions
6519 Fri May 12 14:01:20 CEST 2000  Werner Koch  <wk@openit.de>
6521         * delkey.c (delete_key): Add 2 new status messages
6522         * status.c, status.h (STATUS_DELETE_PROBLEM): New.
6524         Fixed years of copyright in all source files.
6526 Mon May  1 17:08:14 CEST 2000  Werner Koch  <wk@openit.de>
6528         * trustdb.c (propagate_validity): Fixed the bug that only one uid
6529         gets fully trusted even when all are signed by an ultimate key.
6531 Mon May  1 15:38:04 CEST 2000  Werner Koch  <wk@openit.de>
6533         * getkey.c (key_byname): Always returned a defined context.  Fixed
6534         a segv for invalid user id specifications. Reported by Walter Koch.
6536         * getkey.c (get_user_id): I18ned "no user id" string. By Walter.
6538         * pkclist.c (do_show_revocation_reason): Typo fixes.
6539         * helptext.c: Ditto.
6541         * armor.c (armor_filter): Fixed some CRLF issues.  By Mike McEwan.
6543 Fri Apr 14 19:37:08 CEST 2000  Werner Koch  <wk@openit.de>
6545         * pkclist.c (do_show_revocation_reason): New.
6546         (show_revocation_reason): New and called at various places.
6548         * g10.c (main): Fixed small typo.
6550         * pkclist.c (do_we_trust): Act on always_trust but not for revoked
6551         keys. Suggested by Chip Salzenberg.
6553         * g10.c: New option --lock-never.
6555         * ringedit.c (get_writable_keyblock_file): New.
6556         * keygen.c (do_generate_keypair): Use this instead of the hardwired one.
6558         * keygen.c (ask_user_id): Check that the email address is in the
6559         correct field.  Suggested by Christian Kurz.
6561 Mon Apr 10 13:34:19 CEST 2000  Werner Koch  <wk@openit.de>
6563         * keyedit.c (show_key_with_all_names): s/sbb/ssb/
6565 Tue Mar 28 14:26:58 CEST 2000  Werner Koch  <wk@openit.de>
6567         * trustdb.c (verify_own_keys): Do not print warning about unprotected
6568         key when in quiet mode.
6570 Wed Mar 22 13:50:24 CET 2000  Werner Koch  <wk@openit.de>
6572         * mainproc.c (print_userid): Do UTF8 conversion before printing.
6573         * import.c (import_one): Ditto.
6574         (import_secret_one): Ditto.
6575         (delete_inv_parts): Ditto.
6577 Thu Mar 16 16:20:23 CET 2000  Werner Koch  <wk@openit.de>
6579         * keylist.c (print_key_data): Handle a NULL pk gracefully.
6581         * getkey.c (merge_one_pk_and_selfsig): Fixed silly code for
6582         getting the primary keys keyID but kept using the one from the
6583         subkey.
6584         * pubkey-enc.c (get_it): Print a note for expired subkeys.
6586         * getkey.c (has_expired): New.
6587         (subkeys_expiretime): New.
6588         (finish_lookup): Check for expired subkeys needed for encryption.
6589         (merge_keys_and_selfsig): Fixed expiration date merging for subkeys.
6591         * keylist.c (list_keyblock): Print expiration time for "sub".
6592         (list_one): Add missing merging for public keys.
6593         * mainproc.c (list_node): Ditto.
6595 2000-03-14 13:49:38  Werner Koch  (wk@habibti.openit.de)
6597         * keygen.c (keyedit_menu): Do not allow to use certain commands
6598         while the secret key is selected.
6600 2000-03-09 12:53:09  Werner Koch  (wk@habibti.openit.de)
6602         * keygen.c (ask_expire_interval): Movede parsig to ...
6603         (parse_expire_string): ... this new function. And some new control
6604         commands.
6605         (proc_parameter_file): Add expire date parsing.
6606         (do_generate_keypair): Allow the use of specified output files.
6608 2000-03-08 10:38:38  Werner Koch  (wk@habibti.openit.de)
6610         * keygen.c (ask_algo): Removed is_v4 return value and the commented
6611         code to create Elg keys in a v3 packet. Removed the rounding
6612         of key sizes here.
6613         (do_create): Likewise removed arg v4_packet.
6614         (gen_elg): Likewise removed arg version. Now rounding keysizes here.
6615         (gen_dsa): Rounding keysize now here.
6616         (release_parameter_list): New
6617         (get_parameter*): New.
6618         (proc_parameter_file): New.
6619         (read_parameter_file): New.
6620         (generate_keypair): Splitted. Now uses read_parameter_file when in
6621         batch mode.  Additional argument to specify a parameter file.
6622         (do_generate_keypair): Main bulk of above fucntion and uses the
6623         parameter list.
6624         (do_create): Don't print long notice in batch mode.
6625         * g10.c (main): Allow batched key generation.
6627 Thu Mar  2 15:37:46 CET 2000  Werner Koch  <wk@gnupg.de>
6629         * pubkey-enc.c (get_it): Print a note about unknown cipher algos.
6631         * g10.c (opts): Add a note to the help listing about the man page
6632         and removed some options from the help listing.
6634         * keyedit.c (print_and_check_one_sig): Use a new function to truncate
6635         the output of the user ID.  Suggested by Jan-Benedict Glaw.
6637 Wed Feb 23 10:07:57 CET 2000  Werner Koch  <wk@gnupg.de>
6639         * helptext.c: typo fix.
6641 Thu Feb 17 13:39:32 CET 2000  Werner Koch  <wk@gnupg.de>
6643         * revoke.c: Removed a bunch of commented code.
6645         * packet.h (SIGSUBPKT_REVOC_REASON): New.
6646         * build-packet.c (build_sig_subpkt): Support new sub packet.
6647         * parse-packet.c (parse_one_sig_subpkt): Ditto.
6648         (dump_sig_subpkt): Ditto.
6649         * revoke.c (ask_revocation_reason): New.
6650         (release_revocation_reason_info): New.
6651         (revocation_reason_build_cb): New.
6652         (gen_revoke): Ask for reason.
6653         * main.h (struct revocation_reason_info): Add declaration.
6654         * keyedit.c (menu_revsig): Add support for revocation reason.
6655         (menu_revkey): Ditto.
6656         (sign_uid_mk_attrib): Renamed to ...
6657         (sign_mk_attrib): ... this, made static and add support for reasons.
6659 Tue Feb 15 08:48:13 CET 2000  Werner Koch  <wk@gnupg.de>
6661         * build-packet.c (build_packet): Fixed fixing of old comment packets.
6663         * import.c (import_keys): Fixed importing from stdin when called with
6664         nnames set to zero as it normally happens.
6666 Mon Feb 14 14:30:20 CET 2000  Werner Koch  <wk@gnupg.de>
6668         * sig-check.c (check_key_signature2): Add new arg r_expired.
6669         (do_signature_check): New arg to pass it down to ...
6670         (do_check): New arg r-expire which is set when the signature
6671         has expired.
6672         * trustdb.c (check_sig_record): Set SIGF_EXPIRED flag and set
6673         the expiretime to zero so that thi signature will not be checked
6674         anymore.
6676 Fri Feb 11 17:44:40 CET 2000  Werner Koch  <wk@gnupg.de>
6678         * g10.c (g10_exit): Update the random seed_file.
6679         (main): Set the random seed file.  New option --no-random-seed-file.
6681 Thu Feb 10 17:39:44 CET 2000  Werner Koch  <wk@gnupg.de>
6683         * keyedit.c (menu_expire): Fixed segv due to unitialized sub_pk.
6684         By Rémi.
6686 Thu Feb 10 11:39:41 CET 2000  Werner Koch  <wk@gnupg.de>
6688         * keylist.c (list_keyblock): Don't print warnings in the middle of
6689         regulat output lines.  By Rémi.
6691         * sig-check.c: Include options.h
6693 Wed Feb  9 15:33:44 CET 2000  Werner Koch  <wk@gnupg.de>
6695         * gpg.c: New option --ignore-time-conflict
6696         * sig-check.c (do_check): Implemented this option.
6697         * trustdb.c (check_trust): Ditto.
6698         * sign.c (do_sign): Ditto.
6699         * keygen.c (generate_subkeypair): Ditto.
6701         * encode.c (encode_simple): use iobuf_cancel after open failure.
6702         Reported by Huy Le.
6704 Fri Jan 14 18:32:01 CET 2000  Werner Koch  <wk@gnupg.de>
6706         * packet.h (STRING2KEY): Changed mode from byte to int.
6707         * parse-packet.c (parse_key): Add the special GNU protection stuff
6708         * build-packet.c (so_secret_key): Ditto.
6709         * seckey-cert.c (do_check): Ditto.
6710         * keyedit.c (change_passphrase): Ditto.
6711         * export.c (export_secsubkeys): New.
6712         (do_export_stream): Hack to export the primary key using mode 1001.
6713         * g10.c: New command --export-secret-subkeys
6715 Thu Jan 13 19:31:58 CET 2000  Werner Koch  <wk@gnupg.de>
6717         * armor.c (is_armored): Check for 1-pass-sig packets. Reported by
6718         David Hallinan <hallinan@rtd.com>.
6719         (armor_filter): Replaced one LF by the LF macro.  Reported by
6720         Wolfgang Redtenbacher.
6722 Wed Jan  5 11:51:17 CET 2000  Werner Koch  <wk@gnupg.de>
6724         * g10.c (main): Reset new global flag opt.pgp2_workarounds
6725         when --openpgp is used.
6726         * mainproc.c (proc_plaintext): Do the PGP2,5 workarounds only
6727         when the global flag is set.
6728         (proc_tree): Ditto.
6729         * textfilter.c (copy_clearsig_text): Ditto.
6730         * armor.c (armor_filter): Ditto.
6732         * g10.c: New option --list-only
6733         * mainproc.c (proc_tree): Don't do it if opt.list_only is active.
6734         (proc_pubkey_enc): Implement option.
6736         * status.h, status.c ({BEGIN,END}_{EN,DE}CRYPTION): New.
6737         * cipher.c (cipher_filter): New status outputs.
6738         * mainproc.c (proc_encrypted): New status outputs.
6740 Fri Dec 31 14:08:15 CET 1999  Werner Koch  <wk@gnupg.de>
6742         * armor.c (armor_filter): Made the "Comment:" header translatable.
6744         * hkp.c (hkp_import): Make sure that the program does not return
6745         success when there is a connection problem.  Reported by Phillip Jones.
6747 Sun Dec 19 15:22:26 CET 1999  Werner Koch  <wk@gnupg.de>
6749         * armor.c (LF): Use this new macro at all places where a line LF
6750         is needed.  This way DOSish textfiles should be created when the
6751         input data is also in dos mode.
6752         * sign.c (LF): Ditto.
6753         * textfilter.c (LF): Ditto.
6754         (copy_clearsig_text): Disabled the forcing of CR,LF sequences
6755         for DOS systems.
6757         * plaintext.c (handle_plaintext): Fixes for line endings on DOS.
6758         and react on a LF in cleartext.
6759         * armor.c (fake_packet): Restore the original line ending after
6760         removing trailing spaces.
6762         * signal.c (got_fatal_signal): DOS fix.
6764 Thu Dec 16 10:07:58 CET 1999  Werner Koch  <wk@gnupg.de>
6766         * mainproc.c (print_failed_pkenc): Fix for unknown algorithm.
6767         Found by fygrave@epr0.org.
6769 Thu Dec  9 10:31:05 CET 1999  Werner Koch  <wk@gnupg.de>
6771         * hkp.c: i18n the strings.
6773 Sat Dec  4 15:32:20 CET 1999  Werner Koch  <wk@gnupg.de>
6775         * trustdb.c (verify_key): Shortcut for ultimately trusted keys.
6777 Sat Dec  4 12:30:28 CET 1999  Werner Koch  <wk@gnupg.de>
6779         * pkclist.c (build_pk_list): Validate the trust using the namehash
6780         if this one has been set by the key lookup.
6782         * g10.c: Add --delete-secret-key to the help page.
6784         * openfile.c (copy_options_file): Made static.
6785         (try_make_homedir): New.
6786         * ringedit.c (add_keyblock_resource): Use the try_make_hoemdir logic.
6787         * tdbio.c (tdbio_set_dbname): Likewise.
6789         * keygen.c (generate_user_id): Use m_alloc_clear() here. We should
6790         better use an allocation function specific to the user_id packet.
6792         * keygen.c (keygen_add_std_prefs): Changed symmetric preferences
6793         to include Blowfish again.  This is due to it's better speed compared
6794         to CAST5.
6796         * g10.c (strusage): Print the home directory.
6798         * armor.c (armor_filter): Take action on the cancel control msg.
6799         * filter.h (armor_filter_context_t): Add cancel flag.
6801 Mon Nov 29 21:52:11 CET 1999  Werner Koch  <wk@gnupg.de>
6803         * g10.c: New option --fast-list-mode ..
6804         * keylist.c (list_keyblock): .. and implemented.
6805         * mainproc.c (list_node): Ditto.
6807         * import.c (mark_non_selfsigned_uids_valid): Fixed the case that there
6808         is a uid without any packet following.
6810 Mon Nov 22 11:14:53 CET 1999  Werner Koch  <wk@gnupg.de>
6812         * mainproc.c (proc_plaintext): Never enable the hash processing
6813         when skip_verify is active.
6815         * armor.c (parse_header_line): Stop parsing on a WS line too.
6816         Suggested by Aric Cyr.
6818         * tdbdump.c (HEXTOBIN): Changed the name of the argument, so that
6819         traditional cpp don't mess up the macros. Suggested by Jos Backus.
6821         * mainproc.c (list_node): Print the PK algo in the --with-colon mode.
6822         * keylist.c (list_keyblock): Ditto.
6824         * signal.c (got_fatal_signal): Found the reason why exit(8) did not
6825         work - it is better to set the disposition back to default before
6826         raising the signal.  Print the notice on stderr always.
6828 Fri Nov 12 20:33:19 CET 1999  Werner Koch  <wk@gnupg.de>
6830         * g10.c (make_username): Swapped the logic.
6831         * keylist.c (public_key_list): Now takes a STRLIST as arg and moved
6832         the creation ot this list to the caller, so that he can copy with
6833         UTF-conversion of user IDs.  Changed all callers.
6834         (secret_key_list): Likewise.
6836         * getkey.c (get_user_id_string_native): New and ...
6837         * encode.c (write_pubkey_enc_from_list): ... use it here.
6839         * pubring.asc: Updated.
6841         * packet.h (PKT_PHOTO_ID): New.
6842         * parse-packet.c (parse_photo_id): New.
6843         * build-packet.c (do_user_id: Handle photo IDs.
6844         (build_packet): Change CTB for photo IDs
6845         * free-packet.c (free_user_id): Release memory used for photo IDs
6846         * sig-check.c (hash_uid_node): Handle photo IDs too.
6847         * trustdb.c (print_uid_from_keyblock): Hash photo ID.
6848         (make_uid_records): Ditto.
6849         * getkey.c (find_by_name): Ditto.
6850         * keyedit.c (show_prefs): Ditto.
6851         * keylist.c (list_keyblock): Ditto.
6853 Thu Oct 28 16:08:20 CEST 1999  Werner Koch  <wk@gnupg.de>
6855         * keygen.c (ask_expire_interval): Print a warning for systems
6856         with a signed 32 time_t if the exiration time is beyoind 2038.
6858 Fri Oct  8 20:40:50 CEST 1999  Werner Koch  <wk@gnupg.de>
6860         * ringedit.c (enum_keyblocks): The last fix way really stupid;
6861         reverted and set rt to Unknown.
6863 Fri Oct  8 20:32:01 CEST 1999  Werner Koch  <wk@gnupg.de>
6865         * ringedit.c (enum_keyblocks): Zero the entire kbpos out on open.
6867         * g10.c (oEntropyDLL): Removed option.
6868         (main): Made the warning on development versions more verbose.
6870         * g10.c (oHonorHttpProxy): New option.
6871         * hkp.c (hkp_ask_import,hkp_export): Implement this option.
6872         * options.skel: Enable this option for new installations
6874 Mon Oct  4 21:23:04 CEST 1999  Werner Koch  <wk@gnupg.de>
6876         * import.c (import_keys): Changed calling interface, adjusted caller.
6877         (import): Moved printing of stats out ...
6878         (print_stats): New. ... to here.
6879         (import_keys_stream): Call stats print here.
6880         (import_keys): Print stats as totals for all files.
6882         * tdbio.h (DIRF_NEWKEYS): New
6883         * tdbio.c (tdbio_dump_record): Print the new flag.
6884         * trustdb.c (check_trust_record): New arg sigs_only.  Adapted all
6885         callers.
6886         (do_update_trust_record): Removed recheck arg and add a new sigs_only
6887         do we can later improve on the performance.  Changed all callers too.
6888         (check_trustdb): Evalutate the new flag and add a status output.
6889         Do a check when the dir record has not been checked.
6890         (build_cert_tree): Evaluate the new flag.
6891         (check_trust): Ditto.  Do a trust_record check, when the dir record
6892         is not marked as checked.
6893         (mark_fresh_keys): New.
6894         (clear_lid_table): New.
6895         (sync_trustdb): New.
6896         * import.c (import_keys): Call sync_trustdb() after processing.
6897         (import_keys_stream): Ditto.
6898         * tdbdump.c (import_ownertrust): Ditto.
6900         * import.c (import_revoke_cert): Notify the trust DB.
6901         (do_update_trust_record): Use |= to set the REVOKED bit and not &=;
6902         shame on me for this bad copy+paste introduced bug.
6903         (do_we_trust): Add trustmask to allow revoked key override to work.
6904         Chnaged are to allow return of a mofified trustlevel. Adapted the
6905         one caller.
6907         * g10.c: New options --emulate-3des-s2k-bug
6908         * passphrase.c (hash_passphrase): Implemented above.
6910         * mainproc.c (proc_tree): Check for standalone signatures.
6911         (do_check_sig): Print a notice for a standalone revocation
6912         (check_sig_and_print): Do not print an error for unchecked standalone
6913         revocations.
6915 Tue Sep 28 20:54:37 CEST 1999  Werner Koch  <wk@gnupg.de>
6917         * encode.c (encode_simple): Use new CTB when we don't have the
6918         length of the file.  This is somewhat strange as the comment above
6919         indicates that this part is actually fixed for PGP 5 - maybe I simply
6920         lost the source line, tsss.
6922         * armor.c (armor_filter): Set a flag if no OpenPGP data has been found.
6923         * verify.c (verify_signatures): Add an error helptext.
6925 Thu Sep 23 19:24:30 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
6927         * openfile.c (open_outfile): Fixed the 8dot3 handling.
6929         * passphrase.c (passphrase_to_dek): Print uid using utf8 func.
6930         * delkey.c (delete_key): Ditto.
6931         * pkclist.c (show_paths,do_edit_ownertrust,do_we_trust): Ditto
6932         (do_we_trust_pre): Ditto.
6933         * trustdb.c (print_user_id,check_uidsigs): Ditto.
6934         * revoke.c (gen_revoke,ask_revoke_sig): Ditto.
6936 Thu Sep 23 09:52:58 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
6938         * verify.c (print_file_status): New.
6939         (verify_one_file): Moved status print to th new fnc. Add error status.
6940         * status.c, status.h (STATUS_FILE_ERROR): New
6942 Wed Sep 22 10:14:17 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
6944         * openfile.c (make_outfile_name): Use case-insenstive compare for
6945         DOS systems.  Add ".pgp" to the list of know extensions.
6946         (open_outfile): For DOS systems try to replace the suffiy instead of
6947         appending it.
6949         * status.c, status.h: Add STATUS_FILE_{START,DONE}.
6950         * verify.c (verify_one_file): Emit these new stati.
6952         * sign.c (clearsign_file): Avoid duplicated Entries in the "Hash:"
6953         line.  Those headers are now only _not_ printed when there are
6954         only old-style keys _and_ all hashs are MD5.
6956 Mon Sep 20 12:24:41 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
6959         * verify.c (verify_files, ferify_one_file): New.
6960         * g10.c:  New command --verify-files
6962 Fri Sep 17 12:56:42 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
6964         * g10.c: Add UK spelling as alias for armor options ;-)
6966         * import.c (append_uid): Fixed a SEGV when there is no selfsig and
6967         no subkey.
6968         (merge_sigs): Ditto.  Removed the assertion.
6970 Wed Sep 15 16:22:17 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
6972         * g10.c: New option --entropy-dll-name
6974 Mon Sep 13 10:51:29 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
6976         * signal.c (got_fatal_signal): Print message using write(2) and
6977         only for development versions.
6979 Mon Sep  6 19:59:08 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
6981         * tdbio.c (tdbio_set_dbname): Use mkdir macro
6982         * ringedit.c (add_keyblock_resource): Ditto.
6984 Fri Sep  3 10:04:45 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
6986         * pkclist.c (build_pk_list): Skip keys set with --encrypt-to also
6987         when asking for a key.
6989         * plaintext.c (handle_plaintext): Make sure that we don't read a
6990         second EOF in the read loop for partial length packets.
6992         * mainproc.c (check_sig_and_print): print user ID as utf-8.
6994 Thu Sep  2 16:40:55 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
6996         * import.c (merge_blocks): First add new subkeys, then merge subkey
6997         certificates.
6998         (merge_sigs): Don't merge subkey signatures here.
7000 Wed Sep  1 15:30:44 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
7002         * keygen.c (ask_expire_interval): Fixed bug related to cpr_xx (tnx
7003         Francis J. Lacoste).
7005 Tue Aug 31 17:20:44 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
7007         * plaintext.c (do_hash): Hash CR,LF for a single CR.
7008         (ask_for_detached_datafile): Changed arguments to be closer to
7009         those of hash_datafiles and cleanup the code a bit.
7010         * mainproc.c (proc_tree): Workaround for pgp5 textmode detached
7011         signatures.  Changed behavior of asking for data file to be the same
7012         as with provided data files.
7014         * keylist.c (list_keyblock): Use UTF8 print functions.
7016 Mon Aug 30 20:38:33 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
7018         * import.c (chk_self_sigs): some s/log_error/log_info/ so that gpg
7019         does not return an error if a key has some invalid packets.
7021         * helptext.c: Fixed some typos and changed the way the
7022         translation works.  The english text is now the keyword for gettext
7023         and not anymore the keyword supplied to the function.  Done after
7024         some discussion with Walter who thinks this is much easier for the
7025         translators.
7027         * misc.c (disable_core_dumps): Don't do it for DOSish systems.
7029         * signal.c (signal_name): Bounds check on signum.
7031 Wed Aug  4 10:34:18 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
7033         * pubring.asc: Updated.
7035         * pkclist.c (do_we_trust_pre,check_signatures_trust): Do not print
7036         the warning about --always_trust when --quiet is used.
7038         * pkclist.c (fpr_info): New and called at several places.
7040         * parse-packet.c (dump_sig_subpkt): List revocation key contents.
7042 Mon Jul 26 09:34:46 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
7044         * pkclist.c (build_pk_list): Fixed typo in format string.
7046         * trustdb.c (create_shadow_dir): Don't translate the error string.
7048         * g10.c (main): Fixed spelling of user-id.
7049         * getkey.c (find_by_name_pk,find_by_name_sk,
7050         find_by_keyid,find_by_keyid_sk): Ditto and translate it.
7051         * import.c (mark_non_selfsigned_uids_valid,delete_inv_parts): Ditto.
7054 Mon Jul 26 01:01:39 CEST 1999  Michael Roth <mroth@nessie.de>
7056         * g10.c, options.h: New options --no-literal and --set-filesize
7058         * encode.c (encode_simple, encode_crypt): Support for the options
7059         --no-literal and --set-filesize.
7061         * sign.c (sign_file): ditto.
7063 Fri Jul 23 13:53:03 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
7066         * ringedit.c (enum_keyblocks): Removed annoying error message in cases
7067         when we have no keyring at all to enum.
7069         * getkey.c (classify_user_id): Rewrote to relax the recognition of
7070         keyIDs and fingerprints (Michael).
7072         * mainproc.c (check_sig_and_print): Print status NO_PUBKEY.
7073         (print_failed_pkenc): Print status NO_SECKEY.
7075         * import.c (mark_non_selfsigned_uids_valid): New.
7076         * g10.c: New option --allow-non-selfsigned-uid.
7078         * pkclist.c (print_fpr): New.
7079         (do_we_trust_pre): Print the fpr before asking whether to use the key
7080         anyway.
7081         (do_edit_ownertrust): Likewise.
7083 Thu Jul 22 20:03:03 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
7086         * ringedit.c (enum_keyblocks): Removed annoying error message in cases
7087         when we have no keyring at all to enum.
7089         * getkey.c (classify_user_id): Rewrote to relax the recognition of
7090         keyIDs and fingerprints (Michael).
7092         * mainproc.c (check_sig_and_print): Print status NO_PUBKEY.
7093         (print_failed_pkenc): Print status NO_SECKEY.
7095         * import.c (mark_non_selfsigned_uids_valid): New.
7096         * g10.c: New option --allow-non-selfsigned-uid.
7098 Thu Jul 15 10:15:35 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
7100         * g10.c: New options --disable-{cipher,pubkey}-algo.
7102 Wed Jul 14 19:42:08 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
7104         * status.h (STATUS_IMPORTED): New.
7105         * import.c (import): Print some status information (Holger Schurig).
7107         * g10.c (main): Make --no-greeting work again. Add a warning when
7108         --force-mds is used.
7110 Tue Jul 13 17:39:25 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
7112         * pkclist.c (do_edit_ownertrust): Changed the way help works.
7113         (build_pk_list): Implemented default recipient stuff.
7114         * g10.c: New options --default-recipient[-self]
7115         (main): Suppress greeting in most cases, entering a passphrase or
7116         a missing value is not considered to be interactive use.
7117         Merged --print-md and --print-mds; the latter is now obsolete.
7118         Changed the way --gen-random works and documented it.
7119         Changed the way --gen-prime works and add a man entry.
7120         * g10.c (MAINTAINER_OPTIONS): Removed.
7122 Mon Jul 12 18:45:57 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
7124         * keyedit.c (keyedit_menu): Add arg sign_mode and changed callers
7125         * g10.c (main): New command --lsign-key.
7127 Mon Jul 12 14:55:34 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
7129         * mainproc.c (kidlist_item): New.
7130         (release_list): Release failed pk-enc-list.
7131         (print_failed_pkenc): New
7132         (proc_encrypted): Print info about failed PK enc.
7134         * openfile.c (make_outfile_name): s/error/info/
7136         * passphrase.c (passphrase_to_dek): Return an empty passphrase when
7137         in batch mode and don't make the warning message fatal
7138         * seckey-cert.c (check_secret_key): Try only once when in batch mode.
7140         * g10.c (make_username): New.
7142 Thu Jul  8 16:21:27 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
7145         * packet.h (PKT_ring_trust): New
7146         * parse-packet.c (parse_trust): Store trust value
7147         * build-packet (build_packet): Ignore ring trust packets.
7148         * mainproc.c (add_ring_trust): New.
7149         (list_node): Print "rtv" records.
7150         * g10.c: New option --with-fingerprint.
7152         * trustdb.c (verify_own_keys): Don't insert if we are dry running
7153         (check_trust): Ditto.
7155 Wed Jul  7 13:08:40 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
7157         * Makefile.am: Support for libtool.
7159         * keygen.c (ask_expire_interval): Hack to allow for an expire date.
7161         * trustdb.c (do_update_trust_record,update_trust_record): Splitted.
7162         (check_trust_record): New.
7163         (check_trust,build_cert_tree): Check the dir record as needed.
7164         (upd_pref_record): Removed.
7165         (make_pref_record): New.
7166         (propagate_validity): Stop as soon as we have enough validity.
7168         * tbdio.c (MAX_CACHE_ENTRIES_HARD): Increased the limit.
7171 Fri Jul  2 11:45:54 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
7173         * g10.c (g10_exit): Dump random stats.
7175         * sig-check.c (check_key_signature,check_key_signature2): Enhanced
7176         version and wrapper for old function.
7177         (do_signature_check,signature_check): Ditto.
7179 Thu Jul  1 12:47:31 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
7182         * keyedit.c (show_key_with_all_names): Print a notice for disabled keys.
7183         (enable_disable_keys): Add functionality
7184         * pkclist.c (edit_ownertrust): preserve disabled state.
7185         (build_pk_list): Skip disabled keys.
7186         * trustdb.c (upd_one_ownertrust): Ditto.
7187         (build_cert_tree): Mask the ownertrust.
7188         (trust_letter): Mask the value.
7189         (do_check): Take disabled flag into account.
7191         * passphrase.c (passphrase_to_dek): Add a pubkey_algo arg and changed
7192         all callers.
7194         * g10.c (utf8_strings): 2 new options.
7196         * trustdb.c (insert_trust_record_by_pk): New, replaces the next one.
7197         (insert_trust_record): Now takes a keyblock as arg.  Changed all
7198         callers to use the appropritae function.
7200         * openfile.c (ask_outfile_name): New.
7201         * plaintext.c (handle_plaintext): Ask for filename if there is
7202         no valid syntax. Don't use fname varbatim but filter it.
7204 Tue Jun 29 21:44:25 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
7207         * trustdb.h (TRUST_FLAG_DISABLED): New.
7209         * status.c (USE_CAPABILITIES): Capabilities support (Remi).
7211         * tdbio.c : Added new fields to the DIR record.
7212         (tdbio_write_record): Fixed the update of the hash tables.
7213         (tdbio_delete_record): Drop the record from the hash tables.
7214         (drop_from_hashtbl): New.
7216         * status.c (cpr_get): Special online help mode.
7217         * helptext.c ("keyedit.cmd"): Removed.
7218         * keyedit.c (keyedit_menu): Use only help system.
7219         (enable_disable_key): New bit doies not yet work.
7221 Sat Jun 26 12:15:59 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
7224         * dearmor.c (enarmor_file): Fixed comment string.
7225         * tdbdump.c (export_ownertrust): Text fix.
7226         * tbio.c (tdbio_invalid): Ditto.
7228         * parse-packet.c (parse_key): Made temp buffer larger.
7230         * Makefile.am (install-data-local): Add missing backslashes
7232 Tue Jun 15 12:21:08 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
7234         * g10.c (main): Made iterated+salted the default S2K method.
7236         * Makefile.am (install-data-local): Use DESTDIR.
7238         * passphrase.c (passphrase_to_dek): Emit missing-passphrase while in
7239         batchmode.
7241         * parse-packet.c (parse_pubkeyenc): Fixed a SEGV.
7243 Mon Jun 14 21:18:54 CEST 1999 Michael Roth <mroth@nessie.de>
7245         * g10.c: New options --openpgp, --no-tty, --emit-version,
7246           --default-comment and --lock-multiple
7248 Thu Jun 10 14:18:23 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
7250         * free-packet.c (free_encrypted): Fixed EOF case (Remi).
7251         (free_plaintext): Ditto.
7253         * helptext.c (keyedit.delsig.unknown): New (Remi).
7254         * keyedit.c (print_and_check_one_sig): Add arg print_without_key and
7255         changed all callers to make use of it (Remi):
7257 Tue Jun  8 13:36:25 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
7259         * keylist.c (print_key_data): New and called elsewhere.
7260         * g10.c: New option --with-key-data
7262 Wed Jun  2 14:17:19 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
7264         * mainproc.c (proc_tree): Yet another bad hack to cope with
7265         broken pgp2 created detached messages in textmode.
7267 Tue Jun  1 16:01:46 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
7269         * openfile.c (make_outfile_name): New.
7270         * plaintext.c (handle_plaintext): Outputfile is now the inputfile
7271         without the suffix.
7272         * g10.c: New option --use-embedded-filename
7274 Mon May 31 19:41:10 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
7276         * g10.c (main): Fix for SHM init (Michael).
7278         * compress.c, encr-data.c, mdfilter.c,
7279           plaintext.c, free-packet.c: Speed patches (Rémi).
7281 Thu May 27 09:40:55 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
7283         * status.c (cpr_get_answer_yes_no_quit): New.
7284         * keyedit.c (menu_delsig): New.
7285         (check_all_keysigs): Splitted.
7286         (print_and_check_one_sig): New.
7288 Wed May 26 14:36:29 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
7290         * build-packet.c (build_sig_subpkt): Support large packets.
7291         * parse-packet.c (enum_sig_subpkt): Replaces parse_sig_subpkt.
7292         * mainproc.c (print_notation_data): Print all notation packets.
7293         * g10.c (add_notation_data): Add a way to specify the critical flag.
7294         (main): Add option --set-policy-url.
7295         (check_policy_url): Basic checks.
7296         * sign.c (mk_notation_and_policy): Replaces mk_notation.
7298         * parse-packet.c (can_handle_critical): Moved decision whether we can
7299         handle critical subpacket to an extra function.
7301 Tue May 25 19:50:32 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
7303         * sign.c (sign_file): Always use compression algo 1 for signed
7304         onyl file becuase we can´ be sure the the verifier supports other
7305         algorithms.
7307         * build-packet.c (build_sig_subpkt): Support for notation data.
7308         * sign.c (sign_file,clearsign_file,make_keysig_packet): Ditto.
7309         (mk_notation): New.
7310         * g10.c (add_notation_data): New and add option -N
7311         * mainproc.c (print_notation_data): New.
7312         (check_sig_and_print): Print any notation data of the signed text.
7314 Sun May 23 14:20:22 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
7316         * pkclist.c (check_signatures_trust): Print a warning and return
7317         immediateley if opt.always_trust is true.
7319         * g10.c (main): Corrected handling of no-default-keyring
7321         * pkclist.c (algo_available): Disable Twofish until we have settled
7322         how to do the MDC.
7324         * hkp.c: Disable everything for mingw32
7326 Sat May 22 22:47:26 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
7328         * mainproc.c (check_sig_and_print): Add sig creation time to the
7329         VALIDSIG status output. Add more info to the ERRSIG output.
7330         * sig-check.c (signature_check): Add sig time after epoch to SIG_ID.
7332         * import.c (import_one): Merge duplicate user IDs.
7333         (collapse_uids): New.
7334         * kbnode.c (move_kbnode): New.
7335         (remove_kbnode): New.
7336         * keyedit.c (keyedit_menu): Call collapse_uids.
7338         * g10.c: new option --logger-fd.
7340         * import.c: s/log_*_f/log_*/
7342 Thu May 20 14:04:08 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
7344         * misc.c (pull_in_libs): do the volatile only for gcc
7346         * sig-check (signature_check): Emit SIG_iD only for classes 0 and 1.
7348         * armor.c (armor_filter): Add detection of PGP2 created clearsigs.
7349         (fake_packet): A tab is not a WS for pgp2 - handle this.
7350         * textfilter.c (len_without_trailing_chars): New.
7351         (copy_clearsig_text): Add pgp2mode arg.
7352         * sign.c (clearsign_file): pass old_style to the above fnc.
7355 Wed May 19 16:04:30 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
7357         * g10.c: New option --interactive.
7359         * mainproc.c (proc_plaintext): Add workaround for pgp2 bug
7360         (do_check_sig): Ditto.
7361         (proc_tree): Ditto.
7362         * plaintext.c (do_hash): Ditto.
7363         (hash_datafiles): Ditto, add an arg, changed all callers.
7364         * mdfilter.c (md_filter): Add support for the alternate hash context.
7366 Mon May 17 21:54:43 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
7368         * parse-packet.c (parse_encrypted): Support for PKT_ENCRYPTED_MDC.
7369         * build-packet.c (do_encrypted_mdc): Ditto.
7370         * cipher.c (write_header): Add mdc hashing.
7371         (cipher_filter): write out the hash.
7372         * mainproc.c (do_proc_packets): Add PKT_ENCRYPTED_MDC.
7373         * encr-data.c (decrypt_data): Add mdc hashing.
7374         (mdc_decode_filter): New.
7376         * parse-packet.c (parse_sig_subpkt): Fixed stupid bug for subpkt
7377         length calculation
7378         (parse_signature): Fixed even more stupid bug.
7380 Sat May  8 19:28:08 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
7382         * build-packet.c (do_signature): Removed MDC hack.
7383         * encode.c (encode_crypt_mdc): Removed.
7384         * mainproc.c (do_check_sig): Removed MDC hack.
7385         (check_sig_and_print): Ditto.
7386         * parse-packet.c (parse_signature): Ditto.
7387         * sig-check.c (mdc_kludge_check): Ditto.
7388         * free-packte.c (copy_signature, free_seckey_enc): Ditto.
7390         * parse-packet.c (parse_signature,parse_key): Store data of
7391         unknown algorithms with mpi_set_opaque inseatd of the old
7392         faked data stuff.
7393         (read_rest): Removed.
7394         (read_rest2): Renamed to read_rest
7395         * build-packet.c (write_fake_data): Use mpi_get_opaque.
7396         * free-packet.c (cp_fake_data): Removed and cahnged all callers
7397         to use mpi_copy.
7398         (free_pubkey_enc,free_seckey_enc,release_public_key_parts,
7399          release_secret_key_parts): Use mpi_free for opaque data.
7401 Thu May  6 14:18:17 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
7403         * trustdb.c (check_trust): Check for revoked subkeys.
7404         * pkclist.c (do_we_trust): Handled revoked subkeys.
7405         (do_we_trust_pre): Ditto.
7406         (check_signatures_trust): Ditto.
7408         * build-packet.c (hash_public_key): Fix for ancient g10 keys.
7410         * mainproc.c (do_proc_packets): Return EOF if no data has been read.
7411         * g10.c (main): Catch errors for default operation.
7413 Thu Apr 29 12:29:22 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
7415         * sign.c (sign_file): Fixed hashing in case of no subpackets.
7416         (clearsign_file): Ditto.
7417         (make_keysig_packet): Ditto.
7419 Wed Apr 28 13:03:03 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
7421         * keyedit.c (keyedit_menu): Add new command revkey.
7422         * (menu_revkey): New.
7425 Mon Apr 26 17:48:15 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
7427         * parse-packet.c (parse_signature): Add the MDC hack.
7428         * build-packet.c (do_signature): Ditto.
7429         * free-packet.c (free_seckey_enc,copy_signature,cmp_signatures): Ditto.
7430         * mainproc.c (do_check_sig): Ditto.
7431         * sig-check.c (mdc_kludge_check): New.
7432         * encode.c (encrypt_mdc_file): New.
7434         * keyedit.c (check_all_keysigs): List revocations.
7435         * (menu_revsig): New.
7436         * sign (make_keysig_packet): Support for class 0x30.
7438 Sun Apr 18 20:48:15 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
7440         * pkclist.c (select_algo_from_prefs): Fixed the case that one key
7441         has no preferences (Remi Guyomarch).
7443         keylist.c (list_keyblock): ulti_hack to propagate trust to all uids.
7445 Sun Apr 18 10:11:28 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
7447         * seckey-cert.c (do_check): Use real IV instead of a 0 one, so that
7448         it works even if the length of the IV doesn't match the blocksize.
7449         Removed the save_iv stuff.
7450         (protect_secret_key): Likewise.  Create the IV here.
7451         * packet.h (PKT_secret_key): Increased size of IV field and add a
7452         ivlen field.
7453         * parse-packet.c (parse_key): Use the len protect.ivlen.
7454         * build-packet.c (do_secret_key). Ditto.
7456         * getkey.c (key_byname): Close keyblocks.
7458         * Makefile.am (gpgm): Removed this
7459         * g10.c: Merged gpg and gpgm
7461         * import.c (import): Utilize option quiet.
7462         * tdbio.c (tdbio_set_dbname): Ditto.
7463         * ringedit.c (add_keyblock_resource,keyring_copy): Ditto.
7465         * keyedit.c (sign_uids): Add some batch support.
7467         * g10.c (main): add call to tty_batchmode.
7469 Fri Apr  9 12:26:25 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
7471         * status.c (write_status_text): Some more status codes.
7472         * passphrase_to_dek (passphrase_to_dek): add a status code.
7473         * seckey_cert.c (check_secret_key): Likewise.
7475         * encr-data.c (decrypt_data): Reverse the last changes
7476         * cipher.c (write_header): Ditto.
7478         * parse-packet.c (parse_key): Dropped kludge for ancient blowfish mode.
7480 Thu Apr  8 09:35:53 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
7482         * mainproc.c (proc_encrypted): Add a new status output
7483         * passphrase.c (passphrase_to_dek): Ditto.
7484         * status.h status.c: Add new status tokens.
7486 Wed Apr  7 20:51:39 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
7488         * encr-data.c (decrypt_data): Fixes for 128 bit blocksize
7489         * cipher.c (write_header): Ditto.
7490         * seckey-cert.c (do_check): Ditto.
7491         (protect_secret_key). Ditto.
7492         * misc.c (print_cipher_algo_note): Twofish is now a standard algo.
7494         * keygen.c (do_create): Fixed spelling (Gaël Quéri)
7495         (ask_keysize): Only allow keysizes up to 4096
7497         * ringedit.c (add_keyblock_resource): chmod newly created secrings.
7499         * import.c (delete_inv_parts): Fixed accidently deleted subkeys.
7501 Tue Apr  6 19:58:12 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
7503         * armor.c: Removed duped include (John Bley)
7504         * mainproc.c: Ditto.
7506         * build-packet.c (hash_public_key): Fixed hashing of the header.
7508         * import.c (delete_inv_parts): Allow import of own non-exportable sigs.
7510 Sat Mar 20 13:59:47 CET 1999  Werner Koch  <wk@isil.d.shuttle.de>
7512         * armor.c (fake_packet): Fix for not not-dash-escaped
7514 Sat Mar 20 11:44:21 CET 1999  Werner Koch  <wk@isil.d.shuttle.de>
7516         * g10.c (main): Added command --recv-keys
7517         * hkp.c (hkp_import): New.
7519 Wed Mar 17 13:09:03 CET 1999  Werner Koch  <wk@isil.d.shuttle.de>
7521         * trustdb.c (check_trust): add new arg add_fnc and changed all callers.
7522         (do_check): Ditto.
7523         (verify_key): Ditto.
7524         (propagate_validity): Use the new add_fnc arg.
7525         (print_user_id): Add the FILE arg.
7526         (propagate_ownertrust): New.
7527         * pkclist.c (add_ownertrust_cb): New and changed the add_ownertrust
7528         logic.
7530         * getkey.c (get_keyblock_bylid): New.
7531         * trustdb.c (print_uid_from_keyblock): New.
7532         (dump_tn_tree_with_colons): New.
7533         (list_trust_path): Add colon print mode.
7535         * trustdb.c (insert_trust_record): Always use the primary key.
7537         * encode.c (encode_simple): Added text_mode filter (Rémi Guyomarch)
7538         (encode_crypt): Ditto.
7540         * mainproc.c (proc_pubkey_enc): Added status ENC_TO.
7541         * armor.c (armor_filter): Added status NODATA.
7542         * passphrase.c (passphrase_to_dek): Always print NEED_PASSPHRASE
7543         * seckey_cert.c (check_secret_key): Added BAD_PASS status.
7545         * g10.c (main): Set g10_opt_homedir.
7547 Sun Mar 14 19:34:36 CET 1999  Werner Koch  <wk@isil.d.shuttle.de>
7549         * keygen.c (do_create): Changed wording of the note (Hugh Daniel)
7551 Thu Mar 11 16:39:46 CET 1999  Werner Koch  <wk@isil.d.shuttle.de>
7553         * tdbdump.c: New
7555         * trustdb.c (walk_sigrecs,do_list_sigs,list_sigs,
7556         list_records,list_trustdb,export_ownertrust,import_ownertrust): Moved
7557         to tdbdump.c
7558         (init_trustdb): renamed to setup_trustdb.  Changed all callers.
7559         (do_init_trustdb): renamed to init_trustdb().
7560         * trustdb.c (die_invalid_db): replaced by tdbio_invalid.
7561         * tdbio.c (tdbio_invalid): New.
7563         * import.c (delete_inv_parts): Skip non exportable signatures.
7564         * keyedit.c (sign_uid_mk_attrib): New.
7565         (sign_uids): Add the local argument.
7566         (keyedit_menu): New "lsign" command.
7567         * trustdb.c (register_trusted_key): Removed this and all related stuff.
7568         * g10.c (oTrustedKey): Removed option.
7570         * tdbio.h (dir.valcheck): New trustdb field.
7571         * tdbio.c: Add support for this field
7572         (tdbio_read_modify_stamp): New.
7573         (tdbio_write_modify_stamp): New.
7574         * trustdb.c (do_check): Check against this field. Removed cache update.
7575         (verify_key): Add cache update.
7576         (upd_uid_record): Some functional changes.
7577         (upd_cert_record): Ditto
7579 Wed Mar 10 11:26:18 CET 1999  Werner Koch  <wk@isil.d.shuttle.de>
7581         * keylist.c (list_keyblock): Fixed segv in uid. Print 'u' as
7582         validity of sks.
7584 Mon Mar  8 20:47:17 CET 1999  Werner Koch  <wk@isil.d.shuttle.de>
7586         * getkey.c (classify_user_id): Add new mode 12 (#<lid>).
7588         * seckey-cert.c (check_secret_key): replaced error by info.
7590         * trustdb.c (query_trust_info): Add another arg, changed all callers.
7591         (check_trust): Ditto.
7592         (do_check): Ditto.
7593         (verify_key): Handle namehash.
7594         * keylist.c (list_keyblock): print trust info for user ids.
7596         * sig-check.c (signature_check): Add sig-created to status output.
7598 Tue Mar  2 16:44:57 CET 1999  Werner Koch  <wk@isil.d.shuttle.de>
7600         * textfilter.c (copy_clearsig_text): New.
7601         (clearsign): Removed.
7602         * sign.c (clearsign_file): does not use textfiler anymore.
7604         * keygen.c (ask_user_id): print a note about the used charset.
7606 Tue Mar  2 10:38:42 CET 1999  Werner Koch  <wk@isil.d.shuttle.de>
7608         * sig-check.c (signature_check): sig-id now works for all algos.
7610         * armor.c (armor_filter): Fixed armor bypassing.
7612 Sun Feb 28 19:11:00 CET 1999  Werner Koch  <wk@isil.d.shuttle.de>
7614         * keygen.c (ask_user_id): Don't change the case of email addresses.
7615         (has_invalid_email_chars): Adjusted.
7617         * keylist.c (list_one): Really list serect keys (Remi Guyomarch)
7619         * keyedit.c (menu_select_uid): Add some braces to make egcs happy.
7620         (menu_select_key): Ditto.
7622         * mainproc.c (do_proc_packets): List sym-enc packets (Remi Guyomarch)
7624 Fri Feb 26 17:55:41 CET 1999  Werner Koch  <wk@isil.d.shuttle.de>
7626         * pkclist.c (build_pk_list): Return error if there are no recipients.
7628         * sig-check.c (signature_check): New signature id feature.
7629         * armor.c (make_radic64_string): New.
7631         * mainproc.c (proc_pubkey_enc): early check for seckey availability.
7633         * pkclist.c (do_we_trust_pre): print user id before asking.
7635         * ringedit.c (add_keyblock_resource,get_keyblock_handle): Cleaner
7636         handling of default resource.
7639 Thu Feb 25 18:47:39 CET 1999  Werner Koch  <wk@isil.d.shuttle.de>
7641         * pkclist.c (algo_available): New.
7642         (select_algo_from_prefs): Check whether algo is available.
7644         * ringedit.c (keyring_copy): Take care of opt.dry_run.
7645         (do_gdbm_store): Ditto.
7646         * openfile.c (open_outfile). Ditto.
7647         (copy_options_file): Ditto.
7648         * trustdb.c (update_trustdb): Ditto.
7649         (clear_trust_checked_flag): Ditto.
7650         (update_trust_record): Ditto.
7651         (insert_trust_record): Ditto.
7653 Wed Feb 24 11:07:27 CET 1999  Werner Koch  <wk@isil.d.shuttle.de>
7655         * keylist.c (secret_key_list): Now really list the secret key.
7657         * trustdb.c (do_init_trustdb): New. Init is now deferred.
7659 Mon Feb 22 20:04:00 CET 1999  Werner Koch  <wk@isil.d.shuttle.de>
7661         * getkey.c (lookup_sk): Return G10ERR_NO_SECKEY and not x_PUBKEY.
7663 Fri Feb 19 15:49:15 CET 1999  Werner Koch  <wk@isil.d.shuttle.de>
7665         * pkclist.c (select_algo_from_prefs): retrieve LID if not there.
7667         * armor.c (fake_packet): Replaced ugly lineending handling.
7669         * g10.c (oNoEncryptTo): New.
7670         * pkclist.c (build_pk_list): Implemented this option.
7672         * g10.c (main): Greeting is now printed to stderr and not to tty.
7673         Use add_to_strlist() instead of direct coding.
7675         * import.c (import): Use iobuf_push_filter2.
7677         * mainproc.c (check_sig_and_print): Print all user ids
7678         for good signatures.
7679         * getkey.c (get_pubkeyblock): New.
7681         * import.c (chk_self_sigs): Fixed SEGV for unbounded class 0x18 keys.
7682         (delete_inv_parts): Delete special marked packets.
7684 Tue Feb 16 14:10:02 CET 1999  Werner Koch  <wk@isil.d.shuttle.de>
7686         * g10.c (main): New option --encrypt-to
7688         * pkclist.c (build_pk_list): Implemented encrypt-to.
7690         * parse-packet.c (parse_user_id): Removed the hack to work with
7691         utf-8 strings.
7693         * g10.c (main): Install lockfile cleanup handler.
7694         * tdbio.c (cleanup): Removed: this is now handled by dotlock.
7696 Sat Feb 13 14:13:04 CET 1999  Werner Koch  <wk@isil.d.shuttle.de>
7698         * tdbio.c (tdbio_set_dbname): Init lockhandle for a new trustdb
7700 Wed Feb 10 17:15:39 CET 1999  Werner Koch  <wk@isil.d.shuttle.de>
7702         * g10.c (main): check for development version now in configure
7704         * tdbio.c (tdbio_write_record): Add uid.validity
7705         (tdbio_read_record) : Ditto.
7706         (tdbio_dump_record) : Ditto.
7708         * keygen.c (keygen_add_std_prefs): Replaced Blowfish by Twofish,
7709         removed MD5 and Tiger.
7710         * pubkey-enc.c (get_it): Suppress warning about missing Blowfish
7711         in preferences in certain cases.
7713         * ringedit.c (lock_rentry,unlock_rentry): New.
7715         * getkey.c (key_byname): Pass ret_kb down to lookup_xx.
7717         * armor.c (armor_filter): No output of of empty comment lines.
7718         Add option --no-version to suppress the output of the version string.
7720         * getkey.c: Release the getkey context for auto context variables.
7722 Sun Jan 24 18:16:26 CET 1999  Werner Koch  <wk@isil.d.shuttle.de>
7724         * getkey.c: Changed the internal design to allow simultaneous
7725         lookup of multible user ids
7726         (get_pubkey_bynames): New.
7727         (get_seckey_bynames): New.
7728         (get_seckey_next): New.
7729         (get_seckey_end): New.
7730         * keylist.c (list_one): Use the new functions.
7732         * keylist.c (list_keyblock): add a newline for normal listings.
7734         * g10.c (--recipient): New option name to replace --remote-user
7737 Wed Jan 20 18:59:49 CET 1999  Werner Koch  <wk@isil.d.shuttle.de>
7739         * textfilter.c: Mostly rewritten
7740         * plaintext.c (handle_plaintext): Use now text_filter semantics.
7742 Tue Jan 19 19:34:58 CET 1999  Werner Koch  <wk@isil.d.shuttle.de>
7744         * export.c (export_pubkeys_stream): New.
7745         (do_export_stream): New.
7746         * g10.c (aSendKeys): New command.
7747         * hkp.c (hkp_export): New.
7749         * compress.c (do_uncompress): Hack for algo 1 and 1.1.3
7751 Sun Jan 17 11:04:33 CET 1999  Werner Koch  <wk@isil.d.shuttle.de>
7753         * textfilter.c (text_filter): Now uses iobuf_read_line().
7754         (read_line): Removed.
7756         * armor.c (trim_trailing_spaces): Removed and replaced
7757         by trim_trailing_ws from libutil
7759 Sat Jan 16 12:03:27 CET 1999  Werner Koch  <wk@isil.d.shuttle.de>
7761         * hkp.c (hkp_ask_import): Use only the short keyid
7763 Sat Jan 16 09:27:30 CET 1999  Werner Koch  <wk@isil.d.shuttle.de>
7765         * import.c (import_key_stream): New
7766         (import): New, moved most of import_keys here.
7767         * g10.c: New option --keyserver
7768         * mainproc.c (check_sig_and_print): Hook to import a pubkey.
7770         * pref.c pref.h : Removed
7772         * hkp.c hkp.h: New
7774 Wed Jan 13 14:10:15 CET 1999  Werner Koch  <wk@isil.d.shuttle.de>
7776         * armor.c (radix64_read): Print an error if a bad armor was detected.
7778 Wed Jan 13 12:49:36 CET 1999  Werner Koch  <wk@isil.d.shuttle.de>
7780         * armor.c (radix64_read): Now handles malformed armors produced
7781         by some buggy MUAs.
7783 Tue Jan 12 11:17:18 CET 1999  Werner Koch  <wk@isil.d.shuttle.de>
7785         * ringedit.c (find_keyblock_bysk): New.
7787         * skc_list.c (is_insecure): New.
7788         (build_sk_list): usage check for insecure keys.
7790         * import.c (chk_self_sigs): Add handling for subkeys.
7791         (delete_inv_parts): Skip unsigned subkeys
7793         * sig-check.c (do_check): Print info if the signature is older
7794         than the key.
7795         * keygen.c (generate_subkeypair): Fail on time warp.
7796         * sign.c (do_sign): Ditto.
7798 Sun Jan 10 15:10:02 CET 1999  Werner Koch  <wk@isil.d.shuttle.de>
7800         * armor.c (fake_packet): Fixed not-dash-escaped bug.
7802 Sat Jan  9 16:02:23 CET 1999  Werner Koch  <wk@isil.d.shuttle.de>
7804         * sig-check.c (do_check): Output time diff on error
7806         * status.c (STATUS_VALIDSIG): New.
7807         (is_status_enabled): New.
7808         * mainproc.c (check_sig_and_print): Issue that status message.
7810         * plaintext.c (special_md_putc): Removed
7812         * armor.c (armor_filter): print error for truncated lines.
7814         * free-packet.c (free_encrypted): Revomed call to set_block_mode.
7815         (free_plaintext): Ditto.
7817 Thu Jan  7 18:00:58 CET 1999  Werner Koch  <wk@isil.d.shuttle.de>
7819         * pkclist.c (add_ownertrust): Fixed return value.
7821         * encr-data.c (decrypt_data): Disabled iobuf_set_limit and
7822         iobuf_pop_filter stuff.
7823         * compress.c (handle_compressed): Disabled iobuf_pop_filter.
7825         * packet.h (PKT_secret_key): Add is_primary flag.
7826         * parse-packet.c (parse_key): Set this flag.
7827         * passphrase.c (passphrase_to_dek): Kludge to print the primary
7828         keyid - changed the API: keyid must now hold 2 keyids.
7829         * getkey.c (get_primary_seckey): New.
7830         * seckey-cert.c (do_check): pass primary keyid to passphrase query
7832         * tbdio.c (open_db): removed the atexit
7833         (tdbio_set_dbname): and moved it to here.
7835         * armor.c: Rewrote large parts.
7837 Tue Dec 29 19:55:38 CET 1998  Werner Koch  <wk@isil.d.shuttle.de>
7839         * revoke.c (gen_revoke): Removed compression.
7841         * pkclist.c (do_we_trust_pre): special check for revoked keys
7843         * trustdb.c (update_trust_record): Fixed revoke flag.
7845 Tue Dec 29 14:41:47 CET 1998  Werner Koch  <wk@isil.d.shuttle.de>
7847         * misc.c (disable_core_dumps): Check for EINVAL (Atari)
7849         * getkey (merge_one_pk_and_selfsig): Fixed search of expiredate.
7850         (merge_keys_and_selfsig): Ditto.
7852         * free-packet.c (cmp_public_keys): cmp expire only for v3 packets
7853         (cmp_secret_keys): Ditto.
7854         (cmp_public_secret_key): Ditto.
7856 Wed Dec 23 17:12:24 CET 1998  Werner Koch  <wk@isil.d.shuttle.de>
7858         * armor.c (find_header): Reset not_dashed at every header
7860 Wed Dec 23 13:18:14 CET 1998  Werner Koch  <wk@isil.d.shuttle.de>
7862         * pkclist.c (add_ownertrust): Refresh validity values.
7864         * trustdb.c (enum_cert_paths_print): New arg refresh.
7866         * ringedit.c: Fixed problems fix keyrings
7867         * parse-packet.c (dbg_parse_packet): New debug functions.
7869         * getkey.c (getkey_disable_caches): New.
7870         * import.c (import_keys): Disable caches.
7872 Thu Dec 17 18:31:15 CET 1998  Werner Koch  <wk@isil.d.shuttle.de>
7874         * misc.c (trap_unaligned): Only for glibc 1
7876         * sign.c (write_dash_escaped): Now escapes "From " lines
7877         * g10.c: New option --escape-from-lines
7879         * trustdb.c (sort_tsl_list): New
7880         (list_trust_path): Now prints sorted list.
7881         (enum_cert_paths): Likewise.
7882         (enum_cert_paths_print): New.
7883         (print_paths): New printing format.
7884         * pkclist.c (add_ownertrust): New arg quit.
7885         (edit_ownertrust): New quit selection and does not query
7886         the recipients ownertrust anymore.
7887         (add_ownertrust): Print the ceritficate path.
7890 Mon Dec 14 21:18:49 CET 1998  Werner Koch  <wk@isil.d.shuttle.de>
7892         * parse-packet.c (parse_signature): Now checks for critical bit
7893         (parse_sig_subpkt): Splitted.
7894         (parse_one_sig_subpkt): New.
7895         * sig-check.c (do_check): handle critical bit.
7897 Sun Dec 13 14:10:56 CET 1998  Werner Koch  <wk@isil.d.shuttle.de>
7899         * pcklist.c (select_algo_from_prefs): Preferences should
7900         now work (lost the != ? )
7902 Thu Dec 10 20:15:36 CET 1998  Werner Koch  <wk@isil.d.shuttle.de>
7904         * ringedit.c (gdbm_store): Fix for inserts
7906         * g10.c (main): New option --export-all
7907         * export.c (export_pubkeys): New arg.
7908         (do_export): Now may skip old keys.
7910         * status.c: Minor patches for Sun's cc
7912         * keygen.c (ask_algo): Disabled v3 ElGamal choice, rearranged
7913          the numbers.  Add a warning question when a sign+encrypt key
7914          is selected.
7916         * g10.c (do_not_use_RSA): Removed.
7917         * misc.c (print_pubkey_algo_note): New as replacement for the
7918         do_not_use_RSA() and chnaged all callers.
7919         (print_cipher_algo_note): New.
7920         (print_hash_algo_note): New.
7922         * cipher.c (write_header): Add a call to print_cipher_algo_note.
7923         * seckey-cert.c (protect_secret_key): Ditto
7924         * sign.c (do_sign): Add a call to print_digest_algo_note.
7926         * getkey.c (get_long_user_id_string): New.
7927         * mainproc.c (check_sig_and_print): Changed the format of the
7928         status output.
7930         * encrypt.c (write_pubkey_enc_from_list): print used symmetric cipher.
7932         * pkclist.c (do_we_trust): Changed a message.
7934 Wed Dec  9 13:41:06 CET 1998  Werner Koch  <wk@isil.d.shuttle.de>
7936         * misc.c (trap_unaligned) [ALPHA]: Only if UAC_SIGBUS is defined.
7938         * sign.c (write_dash_escaped): Add the forgotten patch by Brian Moore.
7940         * compress.c (do_uncompress): Fixed the inflating bug.
7943 Tue Dec  8 13:15:16 CET 1998  Werner Koch  <wk@isil.d.shuttle.de>
7945         * trustdb.c (upd_uid_record): Now uses the newest self-signature
7946         (insert_trust_record): Now calls update with recheck set to true.
7947         (register_trusted_key): New.
7948         (verify_own_keys): Enhanced by list of trusted keys.
7950         * g10.c (main): Print a warning when a devel version is used.
7951         (main): New option --trusted-key
7953         * import.c (merge_blocks): Fixed merging of new user ids and
7954         added merging of subkeys.
7955         (append_uid): Ditto.
7956         (merge_keysig): New.
7957         (append_key): New.
7958         * getkey.c (merge_one_pk_and_selfsig): Get the expiration time
7959         from the newest self-signature.
7960         (merge_keys_and_selfsig): Ditto.
7962         * free-packet.c (cmp_secret_key): New.
7965 Fri Nov 27 21:37:41 CET 1998  Werner Koch  <wk@isil.d.shuttle.de>
7967         * g10.c: New option --lock-once
7968         * tdbio.c (open_db): Add an atexit
7969         (cleanup): New.
7970         (tdbio_sync): Add locking.
7971         (tdbio_end_transaction): Ditto.
7972         (put_record_into_cache): Ditto.
7973         * ringedit.c (keyring_copy): Ditto.
7974         (cleanup): New.
7975         (add_keyblock_resource): Add an atexit.
7977 Fri Nov 27 15:30:24 CET 1998  Werner Koch  <wk@isil.d.shuttle.de>
7979          * armor.c (find_header): Another fix for clearsigs.
7981 Fri Nov 27 12:39:29 CET 1998  Werner Koch  <wk@isil.d.shuttle.de>
7984         * status.c (display_help): Removed.
7985         * helptext.c: New and removed the N_() from all cpr_gets.
7988 Fri Nov 20 16:54:52 1998  Werner Koch  (wk@isil.d.shuttle.de)
7990         * g10.c (main): New option --not-dash-escaped
7991         * sign.c (write_dashed_escaped): Ditto.
7992         * armor.c (find_header): Support for NotDashEscaped header.
7994         * getkey.c: print "disabled cache.." only if verbose is used.
7996 Thu Nov 19 07:17:31 1998  Werner Koch  <werner.koch@guug.de>
7998         * parse-packet.c (dump_sig_subpkt): Fixed expire listing
7999         * getkey.c (merge_keys_and_selfsig): Fixed expire calculation.
8000         (merge_one_pk_and_selfsig): Ditto.
8001         * keyedit.c (menu_expire). Ditto.
8002         * keygen.c (keygen_add_key_expire): Ditto.
8003         (ask_expire_interval): New and changed all local function to use
8004         this instead.
8005         (keygen_add_key_expire): Opaque should now be a public key;
8006         changed all callers.
8008         * parse.packet.c (parse): use skip_rest to skip packets.
8010         * keyedit.c (keyedit_menu): New arg for cmdline cmds.
8012 Wed Nov 18 20:33:50 1998  Werner Koch  (wk@isil.d.shuttle.de)
8014         * trustdb.c (check_trustdb): Now rechecks all gived userids.
8015         (collect_paths): Some fixes.
8016         (upd_pref_records): Skips empty items, evaluate all items.
8018         * parse-packet.c (dump_sig_subpkt): Better listing of prefs.
8019         (skip_packet): Now knows about marker packet
8021         * g10.c: removed cmd "--edit-sig".
8023         * pubring.asc: Updated.
8025 Sat Nov 14 14:01:29 1998  Werner Koch  (wk@isil.d.shuttle.de)
8027         * g10.c (main): Changed syntax of --list-trust-path
8028         * trustdb.c (list_trust_path): Replaced max_depth by
8029         opt.max_cert_depth
8031 Fri Nov 13 07:39:58 1998  Werner Koch  <werner.koch@guug.de>
8033         * trustdb.c (collect_paths): Removed a warning message.
8034         (enum_trust_web): Removed.
8035         (enum_cert_paths): New.
8036         * pkclist.c (add_ownertrust): Changed to use enum_cert_paths.
8037         (edit_ownertrust): Now list ceritficates on request.
8038         (show_paths): New.
8040 Wed Nov 11 18:05:44 1998  Werner Koch  <werner.koch@guug.de>
8042         * g10.c (main): New option --max-cert-depth
8043         * tdbio.h: add new fields to ver and dir record.
8044         * tdbio.c: read/write/dump of these fields.
8045         (tdbio_db_matches_options): New.
8046         * trustdb.c: replaced MAC_CERT_DEPTH by opt.max_cert_depth.
8047         (do_check): cache validity and changed other functions
8048         to reset the cached value.
8050         * keylist.c (list_one): Now lists the ownertrust.
8051         * mainproc.c (list_node): Ditto.
8053 Tue Nov 10 10:08:59 1998  Werner Koch  (wk@isil.d.shuttle.de)
8055         * g10.c (g10_exit): Now looks at the new g10_errors_seen.
8056         * mainproc.c (check_sig_and_print): Sets g10_errors_seen.
8058         * *.c : i18n many more strings.
8060         * ringedit.c (locate_keyblock_by_keyid): Add HAVE_LIBGDBM
8061         (locate_keyblock_by_fpr): Ditto.
8063         * g10.c (main): removed unsused "int errors".
8064         (main): Add new option --charset.
8066         * g10.c (main): special message for the unix newbie.
8068 Mon Nov  9 07:17:42 1998  Werner Koch  <werner.koch@guug.de>
8070         * getkey.c (finish_lookup): Kludge to prefere algo 16.
8072         * trustdb.c (new_lid_table): Clear cached item.
8074         * status.c (cpr_get_utf8): New.
8075         * pkclist.c (build_pk_list): Uses this.
8077 Sun Nov  8 17:20:39 1998  Werner Koch  (wk@isil.d.shuttle.de)
8079         * mainproc.c (check_sig_and_print): Why did I use strlen()-1
8080         in the printf? - This truncated the TZ.
8082 Sat Nov  7 15:57:28 1998  me,,,  (wk@tobold)
8084         * getkey.c (lookup): Changes to support a read_next.
8085         (get_pubkey): Fixed a memory leak.
8087         * keylist.c (list_one): Now lists all matching user IDs.
8089 Tue Nov  3 16:19:21 1998  Werner Koch  (wk@isil.d.shuttle.de)
8091         * keygen.c (ask_user_id): Now converted to UTF-8
8093         * g10.c (main): Kludge for pgp clearsigs and textmode.
8095 Fri Oct 30 16:40:39 1998  me,,,  (wk@tobold)
8097         * signal.c (block_all_signals): New.
8098         (unblock_all_signals): New
8099         * tdbio.c (tdbio_end_transaction): Now blocks all signals.
8101         * trustdb.c (new_lid_table): Changed the representation of the
8102         former local_lid_info stuff.
8104         * trustdb.c (update_trust_record): Reorganized the whole thing.
8105         * sig-check.c (check_key_signature): Now handles class 0x28
8108 Wed Oct 28 18:56:33 1998  me,,,  (wk@tobold)
8110         * export.c (do_export): Takes care of the exportable sig flag.
8112 Tue Oct 27 14:53:04 1998  Werner Koch  (wk@isil.d.shuttle.de)
8114         * trustdb.c (update_trust_record): New "fast" parameter.
8116 Sun Oct 25 19:32:05 1998  Werner Koch  (wk@isil.d.shuttle.de)
8118         * openfile.c (copy_options_File): New.
8119         * ringedit.c (add_keyblock_resource): Creates options file
8120         * tdbio.c (tdbio_set_dbname): Ditto.
8122 Sat Oct 24 14:10:53 1998  brian moore <bem@cmc.net>
8124         * mainproc.c (proc_pubkey_enc): Don't release the DEK
8125         (do_proc_packets): Ditto.
8127 Fri Oct 23 06:49:38 1998  me,,,  (wk@tobold)
8129         * keyedit.c (keyedit_menu): Comments are now allowed
8131         * trustdb.c: Rewrote large parts.
8134 Thu Oct 22 15:56:45 1998  Michael Roth  (mroth@nessie.de)
8136         * encode.c: (encode_simple): Only the plain filename without
8137         a given directory is stored in generated packets.
8138         (encode_crypt): Ditto.
8140         * sign.c: (sign_file) Ditto.
8143 Thu Oct 22 10:53:41 1998  Werner Koch  (wk@isil.d.shuttle.de)
8145         * trustdb.c (update_trust_record): Add new optional arg.
8147         * import.c (import_keys): Add statistics output
8148         * trustdb.c (update_trustdb): Ditto.
8149         (insert_trustdb): Ditto.
8151         * tdbio.c (tdbio_begin_transaction): New.
8152         (tdbio_end_transaction): New.
8153         (tdbio_cancel_transaction): New.
8155         * g10.c (main): New option --quit.
8157         * trustdb.c (check_hint_sig): No tests for user-id w/o sig.
8158         This caused an assert while checking the sigs.
8160         * trustdb.c (upd_sig_record): Splitted into several functions.
8162         * import.c (import_keys): New arg "fast".
8163         * g10.c (main): New command --fast-import.
8165 Wed Oct 21 18:19:36 1998  Michael Roth <mroth@nessie.de>
8167         * ringedit.c (add_keyblock_resource): Directory is now created.
8168         * tdbio.c (tdbio_set_dbname): New info message.
8170 Wed Oct 21 11:52:04 1998  Werner Koch  (wk@isil.d.shuttle.de)
8172         * trustdb.c (update_trustdb): released keyblock in loop.
8174         * keylist.c (list_block): New.
8175         (list_all): Changed to use list_block.
8177         * trustdb.c: Completed support for GDBM
8179         * sign.c (only_old_style): Changed the way force_v3 is handled
8180         (sign_file): Ditto.
8181         (clearsign_file): Ditto.
8183         * keygen.c (has_invalid_email_chars): Splitted into mailbox and
8184         host part.
8186         * keylist.c (list_one): Add a merge_keys_and_selfsig.
8187         * mainproc.c (proc_tree): Ditto.
8189 Sun Oct 18 11:49:03 1998  Werner Koch  (wk@isil.d.shuttle.de)
8191         * sign.c (only_old_style): Add option force_v3_sigs
8192         (sign_file): Fixed a bug in sig->version
8193         (clearsign_file): Ditto.
8195         * parse-packet.c (dump_sig_subpkt): New
8197         * keyedit.c (menu_expire): New.
8198         * free-packet.c (cmp_signatures): New
8201 Sat Oct 17 10:22:39 1998  Werner Koch  (wk@isil.d.shuttle.de)
8203         * armor.c: changed output line length from 72 to 64.
8205         * keyedit.c (fix_keyblock): New.
8207 Fri Oct 16 10:24:47 1998  Werner Koch  (wk@isil.d.shuttle.de)
8209         * trustdb.c: Rewrote most.
8210         * tdbio.c: Add cache and generalized hash tables.
8212         * options.h (ENABLE_COMMENT_PACKETS): New but undef'ed.
8213         * encode.c, sign.c, keygen.c: Disabled comment packets.
8214         * export.c (do_export): Comment packets are never exported,
8215         except for those in the secret keyring.
8217         * g10.c (main): Removed option do-no-export-rsa; should be
8218         be replaced by a secpial tool.
8219         * export.c (do_export): Removed the code for the above option.
8221         * armor.c (find_header): Support for new only_keyblocks.
8222         * import.c (import_keys): Only looks for keyblock armors.
8224         * packet.h: replaced valid_days by expiredate and changed all users.
8225         * build-packet.c (do_public_key): calculates valid-days
8226         (do_secret_key): Ditto.
8227         * parse-packet.c (parse_key): expiredate is calucated from the
8228         valid_period in v3 packets.
8229         * keyid.c (do_fingerprint_md): calculates valid_dates.
8231         * keygen.c (add_key_expire): fixed key expiration time for v4 packets.
8233         * armor.c (find_header): A LF in the first 28 bytes
8234         was skipped for non-armored data.
8236 Thu Oct  8 11:35:51 1998  Werner Koch  (wk@isil.d.shuttle.de)
8238         * armor.c (is_armored): Add test on old comment packets.
8240         * tdbio.c (tdbio_search_dir_bypk): fixed memory leak.
8242         * getkey.c: Changed the caching algorithms.
8244 Wed Oct  7 19:33:28 1998  Werner Koch  (wk@isil.d.shuttle.de)
8246         * kbnodes.c (unused_nodes): New.
8248 Wed Oct  7 11:15:36 1998  Werner Koch  (wk@isil.d.shuttle.de)
8250         * keyedit.c (sign_uids): Fixed a problem with SK which could caused
8251         a save of an unprotected key.
8252         (menu_adduid): Ditto.
8254         * keyedit.c (keyedit_menu): Prefs are now correctly listed for
8255         new user ids.
8257         * trustdb.c (update_trust_record): New.
8258         (insert_trust_record): Now makes use of update_trust_record.
8260 Tue Oct  6 16:18:03 1998  Werner Koch  (wk@isil.d.shuttle.de)
8262         * trustdb.c (read_record): replaces most of the tdbio_read_records.
8263         (write_record): Ditto.
8265 Sat Oct  3 11:01:21 1998  Werner Koch  (wk@isil.d.shuttle.de)
8267         * keygen.c (ask_alogo): enable ElGamal enc-only only for addmode.
8269 Wed Sep 30 10:15:33 1998  Werner Koch  (wk@isil.d.shuttle.de)
8271         * import.c (import_one): Fixed update of wrong keyblock.
8273 Tue Sep 29 08:32:08 1998  me,,,  (wk@tobold)
8275         * mainproc.c (proc_plaintext): Display note for special filename.
8276         * plaintext.c (handle_plaintext): Suppress output of special file.
8278 Mon Sep 28 12:57:12 1998  Werner Koch  (wk@isil.d.shuttle.de)
8280         * g10.c (verify_own_keys): Add warning if a key is not protected.
8282         * passphrase (hash_passphrase): Fixed iterated+salted mode and
8283         setup for keysizes > hashsize.
8285         * g10.c (main): New options: --s2k-{cipher,digest,mode}.
8287 Fri Sep 25 09:34:23 1998  Werner Koch  (wk@isil.d.shuttle.de)
8289         * g10.c: Chnaged some help texts.
8291 Tue Sep 22 19:34:39 1998  Werner Koch  (wk@isil.d.shuttle.de)
8293         * passphrase.c (read_passphrase_from_fd): fixed bug for long
8294         passphrases.
8296 Mon Sep 21 11:28:05 1998  Werner Koch  (wk@(none))
8298         * getkey.c (lookup): Add code to use the sub key if the primary one
8299         does not match the usage.
8301         * armor.c (armor_filter): New error message: no valid data found.
8302         (radix64_read): Changes to support multiple messages.
8303         (i18n.h): New.
8304         * mainproc.c (add_onepass_sig): bug fix.
8306 Mon Sep 21 08:03:16 1998  Werner Koch  (wk@isil.d.shuttle.de)
8308         * pkclist.c (do_we_trust): Add keyid to most messages.
8310         * passphrase.c (read_passphrase_from_fd): New.
8311         (have_static_passphrase): New
8312         (get_passphrase_fd): Removed.
8313         (set_passphrase_fd): Removed.
8314         * g10.c (main): passphrase is now read here.
8316         * keyedit.c (keyedit_menu): "help" texts should now translate fine.
8318 Mon Sep 21 06:40:02 1998  Werner Koch  (wk@isil.d.shuttle.de)
8320         * encode.c (encode_simple): Now disables compression
8321         when --rfc1991 is used.
8322         (encode_crypt): Ditto.
8324 Fri Sep 18 16:50:32 1998  Werner Koch  (wk@isil.d.shuttle.de)
8326         * getkey.c (merge_key_and_selfsig): New.
8328 Fri Sep 18 10:20:11 1998  Werner Koch  (wk@isil.d.shuttle.de)
8330         * pkclist.c (select_algo_from_prefs): Removed 3DES kludge.
8332         * seskey.c (make_session_key): Fixed SERIOUS bug introduced
8333         by adding the weak key detection code.
8335         * sign.c (sign_file): Changed aremor header in certain cases.
8337 Tue Sep 15 17:52:55 1998  Werner Koch  (wk@isil.d.shuttle.de)
8339         * mainproc.c (check_sig_and_print): Replaced ascime by asctimestamp.
8341 Mon Sep 14 11:40:52 1998  Werner Koch  (wk@isil.d.shuttle.de)
8343         * seskey.c (make_session_key): Now detects weak keys.
8345         * trustdb (clear_trust_checked_flag): New.
8347         * plaintext.c (handle_plaintext): Does no anymore suppress CR from
8348         cleartext signed messages.
8350 Sun Sep 13 12:54:29 1998  Werner Koch  (wk@isil.d.shuttle.de)
8352         * trustdb.c (insert_trust_record): Fixed a stupid bug in the free
8353         liunked list loops.
8355 Sat Sep 12 15:49:16 1998  Werner Koch  (wk@isil.d.shuttle.de)
8357         * status.c (remove_shmid): New.
8358         (init_shm_comprocess): Now sets permission to the real uid.
8360 Wed Sep  9 11:15:03 1998  Werner Koch  (wk@isil.d.shuttle.de)
8362         * packet.h (PKT_pubkey_enc): New flah throw_keyid, and add logic to
8363         implement it.
8364         * g10.c (main): New Option --throw-keyid
8366         * getkey.c (enum_secret_keys): Add new ar and changed all callers.
8368 Tue Sep  8 20:04:09 1998  Werner Koch  (wk@isil.d.shuttle.de)
8370         * delkey.c (delete_key): Moved from keyedit.c.
8372 Mon Sep  7 16:37:52 1998  Werner Koch  (wk@isil.d.shuttle.de)
8374         * build-packet.c (calc_length_header): New arg new_ctb to correctly
8375         calculate the length of new style packets.
8377         * armor.c (is_armored): Checks for symkey_enc packets.
8379         * pkclist.c (select_algo_from_prefs): 3DEs substitute is now CAST5.
8381 Tue Aug 11 17:54:50 1998  Werner Koch  (wk@isil.d.shuttle.de)
8383         * build-packet.c (do_secret_key): Fixed handling of old keys.
8385         * getkey.c (compare_name): Fixed exact and email matching
8387         * openfile.c (open_outfile): Changed arguments and all callers.
8389 Tue Aug 11 09:14:35 1998  Werner Koch  (wk@isil.d.shuttle.de)
8391         * encode.c (encode_simple): Applied option set-filename and comment.
8392         (encode_crypt): Ditto.
8393         * sign.c (sign_file): Ditto.
8394         * armor.c (armor_filter): Applied option comment.
8396         * encode.c (encode_crypt): Moved init_packet to the begin.
8397         (encode_simple): add an init_packet().
8399         * comment (write_comment): Now enforces a hash sign as the 1st byte.
8401         * import.c (import_one): Add explanation for "no user ids".
8403         * compress.c (do_uncompress): Applied Brian Warner's patch to support
8404         zlib 1.1.3 etc.
8406         * trustdb.c (check_trust): Fixed a problem after inserting new keys.
8408         * getkey (lookup): do not return the primary key if usage is given
8409         (lookup_sk): Ditto and take usage into account.
8411         * status.c (cpr_get_answer_is_yes): add display_help.
8413 Mon Aug 10 10:11:28 1998  Werner Koch  (wk@isil.d.shuttle.de)
8415         * getkey.c (lookup_sk): Now always returns the primary if arg
8416         primary is true.
8417         (lookup): Likewise.
8418         (get_pubkey_byname): Now returns the primary key
8419         (get_seckey_byname): Ditto.
8422 Mon Aug 10 08:34:03 1998  Werner Koch  (wk@isil.d.shuttle.de)
8424         * keyid.c (pubkey_letter): ELG_E is now a small g.
8426 Sat Aug  8 17:26:12 1998  Werner Koch  (wk@isil.d.shuttle.de)
8428         * openfile (overwrite_filep): Changed semantics and all callers.
8430 Sat Aug  8 12:17:07 1998  Werner Koch  (wk@isil.d.shuttle.de)
8432         * status.c (display_help): New.
8434 Thu Aug  6 16:30:41 1998  Werner Koch,mobil,,,  (wk@tobold)
8436         * seskey.c (encode_session_key): Now uses get_random_bits().
8438 Thu Aug  6 07:34:56 1998  Werner Koch,mobil,,,  (wk@tobold)
8440         * ringedit.c (keyring_copy): No more backupfiles for
8441         secret keyrings and add additional warning in case of
8442         a failed secret keyring operation.
8444 Wed Aug  5 11:54:37 1998  Werner Koch  (wk@isil.d.shuttle.de)
8446         * g10.c (check_opts): Moved to main.  Changed def_cipher_algo
8447         semantics and chnaged all users.
8449         * pubkey-enc.c (get_sssion_key): New informational output
8450         about preferences.
8452         * parse-packet.c (parse_symkeyenc): Fixed salted+iterated S2K
8453         (parse_key): Ditto.
8454         * build-packet.c (do_secret_key): Ditto.
8455         (do_symkey_enc): Ditto.
8457 Tue Aug  4 08:59:10 1998  Werner Koch  (wk@isil.d.shuttle.de)
8459         * getkey.c (enum_secret_keys): Now returns only primary keys.
8461         * getkey (lookup): Now sets the new namehash field.
8463         * parse-packet.c (parse_sig_subpkt2): New.
8465         * sign.c (sign_file): one-pass sigs are now emiited reverse.
8466         Preference data is considered when selecting the compress algo.
8468 Wed Jul 29 12:53:03 1998  Werner Koch  (wk@isil.d.shuttle.de)
8470         * free-packet.c (copy_signature): New.
8472         * keygen.c (generate_subkeypair): rewritten
8473         * g10.c (aKeyadd): Removed option --add-key
8475 Mon Jul 27 10:37:28 1998  Werner Koch  (wk@isil.d.shuttle.de)
8477         * seckey-cert.c (do_check): Additional check on cipher blocksize.
8478         (protect_secret_key): Ditto.
8479         * encr-data.c: Support for other blocksizes.
8480         * cipher.c (write_header): Ditto.
8482 Fri Jul 24 16:47:59 1998  Werner Koch  (wk@isil.d.shuttle.de)
8484         * kbnode.c (insert_kbnode): Changed semantics and all callers.
8485         * keyedit.c : More or less a complete rewrite
8487 Wed Jul 22 17:10:04 1998  Werner Koch  (wk@isil.d.shuttle.de)
8489         * build-packet.c (write_sign_packet_header): New.
8491 Tue Jul 21 14:37:09 1998  Werner Koch  (wk@isil.d.shuttle.de)
8493         * import.c (import_one): Now creates a trustdb record.
8495         * g10.c (main): New command --check-trustdb
8497 Mon Jul 20 11:15:07 1998  Werner Koch  (wk@isil.d.shuttle.de)
8499         * genkey.c (generate_keypair): Default key is now DSA with
8500         encryption only ElGamal subkey.
8502 Thu Jul 16 10:58:33 1998  Werner Koch  (wk@isil.d.shuttle.de)
8504         * keyid.c (keyid_from_fingerprint): New.
8505         * getkey.c (get_pubkey_byfprint): New.
8507 Tue Jul 14 18:09:51 1998  Werner Koch  (wk@isil.d.shuttle.de)
8509         * keyid.c (fingerprint_from_pk): Add argument and changed all callers.
8510         (fingerprint_from_sk): Ditto.
8512 Tue Jul 14 10:10:03 1998  Werner Koch  (wk@isil.d.shuttle.de)
8514         * plaintext.c (handle_plaintext): Now returns create error if
8515         the file could not be created or the user responded not to overwrite
8516         the file.
8517         * mainproc.c (proc_plaintext): Tries again if the file could not
8518         be created to check the signature without output.
8520         * misc.c (disable_core_dumps): New.
8521         * g10.c (main): disable coredumps for gpg
8523         * g10.c (MAINTAINER_OPTIONS): New to disable some options
8525 Mon Jul 13 16:47:54 1998  Werner Koch  (wk@isil.d.shuttle.de)
8527         * plaintext.c (hash_datafiles): New arg for better support of
8528         detached sigs. Changed all callers.
8529         * mainproc.c (proc_signature_packets): Ditto.
8531         * g10.c (main): New option "compress-sigs"
8532         * sig.c (sign_file): detached signatures are not anymore compressed
8533         unless the option --compress-sigs is used.
8535 Thu Jul  9 19:54:54 1998  Werner Koch  (wk@isil.d.shuttle.de)
8537         * armor.c: Fixes to allow zero length cleartext signatures
8539 Thu Jul  9 14:52:47 1998  Werner Koch  (wk@isil.d.shuttle.de)
8541         * g10.c (build_list): Now drops setuid.
8542         (main): Changed the way keyrings  and algorithms are registered .
8544 Wed Jul  8 14:17:30 1998  Werner Koch  (wk@isil.d.shuttle.de)
8546         * packet.h (PKT_public_key): Add field keyid.
8547         * parse-packet.c (parse_key): Reset the above field.
8548         * keyid.c (keyid_from_pk): Use above field as cache.
8550         * tdbio.c, tdbio.h: New
8551         * trustdb.c: Moved some functions to tdbio.c.
8552         (print_keyid): New.
8554         * pkclist.c (check_signatures_trust): New.
8556 Wed Jul  8 10:45:28 1998  Werner Koch  (wk@isil.d.shuttle.de)
8558         * plaintext.c (special_md_putc): New.
8559         (handle_plaintext): add clearsig argument
8560         * mainproc.c (proc_plaintext): detection of clearsig
8561         * sign.c (write_dased_escaped): Changed clearsig format
8563 Tue Jul  7 18:56:19 1998  Werner Koch  (wk@isil.d.shuttle.de)
8565         * armor.c (find_header): Now makes sure that there is only one
8566         empty line for clearsigs, as this is what OP now says.
8568 Mon Jul  6 13:09:07 1998  Werner Koch  (wk@isil.d.shuttle.de)
8570         * g10.c (main): New option default-secret-key
8571         * getkey.c (get_seckey_byname): support for this option.
8573 Mon Jul  6 09:03:49 1998  Werner Koch  (wk@isil.d.shuttle.de)
8575         * getkey.c (add_keyring): Keyrings are now added to end of the
8576         list of keyrings.  The first added keyringwill be created.
8577         (add_secret_keyring): Likewise.
8579         * ringedit.c (add_keyblock_resource): Files are created here.
8581         * g10.c (aNOP): Removed
8583         * getkey.c (lookup): Add checking of usage for name lookups
8584         * packet.h (pubkey_usage): Add a field which may be used to store
8585         usage capabilities.
8586         * pkclist.c (build_pk_list): getkey now called with usage arg.
8587         * skclist.c (build_sk_list): Ditto.
8589         * sign.c (clearsign_file): Fixed "Hash:" headers
8591 Sat Jul  4 13:33:31 1998  Werner Koch  (wk@isil.d.shuttle.de)
8593         * trustdb.c (list_ownertrust): New.
8594         * g10.c (aListOwnerTrust): New.
8596         * g10.c (def_pubkey_algo): Removed.
8598         * trustdb.c (verify_private_data): Removed and also the call to it.
8599         (sign_private_data): Removed.
8601 Fri Jul  3 13:26:10 1998  Werner Koch  (wk@isil.d.shuttle.de)
8603         * g10.c (aEditKey): was aEditSig. Changed usage msg.
8605         * keyedit.c: Done some i18n stuff.
8607         * g10.c (do_not_use_RSA): New.
8608         * sign.c (do_sign): Add call to above function.
8609         * encode.c (write_pubkey_enc_from_list): Ditto.
8611 Thu Jul  2 21:01:25 1998  Werner Koch  (wk@isil.d.shuttle.de)
8613         * parse-packet.c: Now is able sto store data of unknown
8614         algorithms.
8615         * free-packet.c: Support for this.
8616         * build-packet.c: Can write data of packet with unknown algos.
8618 Thu Jul  2 11:46:36 1998  Werner Koch  (wk@isil.d.shuttle.de)
8620         * parse-packet.c (parse): fixed 4 byte length header
8622 Wed Jul  1 12:36:55 1998  Werner Koch  (wk@isil.d.shuttle.de)
8624         * packet.h (new_ctb): New field for some packets
8625         * build-packet.c (build_packet): Support for new_ctb
8626         * parse-packet.c (parse): Ditto.
8628 Mon Jun 29 12:54:45 1998  Werner Koch  (wk@isil.d.shuttle.de)
8630         * packet.h: changed all "_cert" to "_key", "subcert" to "subkey".
8632         * free-packet.c (free_packet): Removed memory leak for subkeys.
8634 Sun Jun 28 18:32:27 1998  Werner Koch  (wk@isil.d.shuttle.de)
8636         * import.c (import_keys): Renamed from import_pubkeys.
8637         (import_secret_one): New.
8639         * g10.c (aExportSecret): New.
8641         * export.c (export_seckeys): New.
8643         * parse-packet.c (parse_certificate): Cleaned up.
8644         (parse_packet): Trust packets are now considered as unknown.
8645         (parse_pubkey_warning): New.
8647 Fri Jun 26 10:37:35 1998  Werner Koch  (wk@isil.d.shuttle.de)
8649         * keygen.c (has_invalid_email_chars): New.
8651 Wed Jun 24 16:40:22 1998  Werner Koch  (wk@isil.d.shuttle.de)
8653         * armor.c (armor_filter): Now creates valid onepass_sig packets
8654         with all detected hash algorithms.
8655         * mainproc.c (proc_plaintext): Now uses the hash algos as specified
8656         in the onepass_sig packets (if there are any)
8658 Mon Jun 22 11:54:08 1998  Werner Koch  (wk@isil.d.shuttle.de)
8660         * plaintext.c (handle_plaintext): add arg to disable outout
8661         * mainproc.c (proc_plaintext): disable output when in sigs_only mode.
8663 Thu Jun 18 13:17:27 1998  Werner Koch  (wk@isil.d.shuttle.de)
8665         * keygen.c: Removed all rsa packet stuff, chnaged defaults
8666         for key generation.
8668 Sun Jun 14 21:28:31 1998  Werner Koch  (wk@isil.d.shuttle.de)
8670         * misc.c (checksum_u16): Fixed a stupid bug which caused a
8671         wrong checksum calculation for the secret key protection and
8672         add a backward compatibility option.
8673         * g10.c (main): Add option --emulate-checksum-bug.
8675 Thu Jun 11 13:26:44 1998  Werner Koch  (wk@isil.d.shuttle.de)
8677         * packet.h: Major changes to the structure of public key material
8678         which is now stored in an array and not anaymore in a union of
8679         algorithm specific structures.  These is needed to make the system
8680         more extendable and makes a lot of stuff much simpler. Changed
8681         all over the system.
8683         * dsa.c, rsa.c, elg.c: Removed.
8685 Wed Jun 10 07:22:02 1998  Werner Koch,mobil,,,  (wk@tobold)
8687         * g10.c ("load-extension"): New option.
8689 Mon Jun  8 22:23:37 1998  Werner Koch  (wk@isil.d.shuttle.de)
8691         * seckey-cert.c (do_check): Removed cipher constants
8692         (protect_secret_key): Ditto.
8694 Fri May 29 10:00:28 1998  Werner Koch  (wk@isil.d.shuttle.de)
8696         * trustdb.c (query_trust_info): New.
8697         * keylist.c (list_one): Add output of trust info
8698         * mainproc (list_node): ditto.
8699         * g10.c (main): full trustdb init if -with-colons and any of the
8700         key list modes.
8702 Thu May 28 10:34:42 1998  Werner Koch  (wk@isil.d.shuttle.de)
8704         * status.c (STATUS_RSA_OR_IDEA): New.
8705         * sig-check.c (check_signature): Output special status message.
8706         * pubkey-enc.c (get_session_key): Ditto.
8708         * mainproc.c (check_sig_and_print): Changed format of output.
8709         * passpharse.c (passphrase_to_dek): Likewise.
8711 Wed May 27 13:46:48 1998  Werner Koch  (wk@isil.d.shuttle.de)
8713         * g10.c (aListSecretKeys): New option --list-secret-keys
8714         * keylist.c (std_key_list): Renamed to public_key_list.
8715         (secret_key_list): New
8716         (list_one, list_all): Add support for secret keys.
8717         * getkey.c (get_secret_keyring): New.
8718         * mainproc.c (list_node): Add option --with-colons for secret keys
8720         * sig-check.c (check_key_signature): detection of selfsigs
8721         * mainproc.c (list_node): fixed listing.
8723         * g10.c (aListSecretKeys): New option --always-trust
8724         * pkclist.c (do_we_trust): Override per option added
8726         * status.c (write_status_text): Add a prefix to every output line.
8728 Wed May 27 07:49:21 1998  Werner Koch  (wk@isil.d.shuttle.de)
8730         * g10 (--compress-keys): New.
8731         * options.h (compress_keys): New.
8732         * export.c (export_pubkeys): Only compresses with the new option.
8734 Tue May 26 11:24:33 1998  Werner Koch  (wk@isil.d.shuttle.de)
8736         * passphrase.c (get_last_passphrase): New
8737         (set_next_passphrase): New.
8738         (passphrase_to_dek): add support for the above functions.
8739         * keyedit.c (make_keysig_packet): Add sigclass 0x18,
8740         changed all callers due to a new argument.
8741         * keygen.c (write_keybinding): New
8742         (generate_subkeypair): Add functionality
8743         (ask_algo, ask_keysize, ask_valid_days): Broke out of generate_keypair
8744         (ask_user_id, ask_passphrase): Ditto.
8746 Thu May 21 11:26:13 1998  Werner Koch  (wk@isil.d.shuttle.de)
8748         * g10.c,gpgd.c (main): Does now return an int, so that egcs does
8749         not complain.
8751         * armor.c (fake_packet): Removed erro message and add a noticed
8752         that this part should be fixed.
8754         * sign.c (sign_file): Compression now comes in front of encryption.
8755         * encode.c (encode_simple): Ditto.
8756         (encode_crypt): Ditto.
8758 Tue May 19 16:18:19 1998  Werner Koch  (wk@isil.d.shuttle.de)
8760         * armor.c (fake_packet): Changed assertion to log_error
8762 Sat May 16 16:02:06 1998  Werner Koch  (wk@isil.d.shuttle.de)
8764         * build-packet.c (build_packet): Add SUBKEY packets.
8766 Fri May 15 17:57:23 1998  Werner Koch  (wk@isil.d.shuttle.de)
8768         * sign.c (hash_for): New and used in all places here.
8769         * main.h (DEFAULT_): new macros.
8770         * g10.c  (opt.def_digest_algo): Now set to 0
8772         * compress.c (init_compress): Add support for algo 1
8773         * options.h (def_compress_algo): New
8774         * g10.c (main): New option --compress-algo
8776 Fri May 15 13:23:59 1998  Werner Koch  (wk@isil.d.shuttle.de)
8778         * g10.c (print_mds): New feature to print only one hash,
8779         chnaged formatting.
8781 Thu May 14 15:36:24 1998  Werner Koch  (wk@isil.d.shuttle.de)
8783         * misc.c (trap_unaligned) [__alpha__]: New
8784         * g10.c (trap_unaligned): Add call to this to track down SIGBUS
8785         on Alphas (to avoid the slow emulation code).
8787 Wed May 13 11:48:27 1998  Werner Koch  (wk@isil.d.shuttle.de)
8789         * build-packet.c (do_signature): Support for v4 pakets.
8790         * keyedit.c (make_keysig_packet): Ditto.
8791         * build-packet.c (build_sig_subpkt_from_sig): New.
8792         (build_sig_subpkt): New.
8794         * elg.c (g10_elg_sign): removed keyid_from_skc.
8795         * dsa.c (g10_dsa_sign): Ditto.
8796         * rsa.c (g10_rsa_sign): Ditto.
8797         * keyedit.c (make_keysig_packet): Add call to keyid_from_skc
8799         * sign.c (clearsign_file): Support for v4 signatures.
8800         (sign_file): Ditto.
8802 Wed May  6 09:31:24 1998  Werner Koch  (wk@isil.d.shuttle.de)
8804         * parse-packet.c (do_parse): add support for 5 byte length leader.
8805         (parse_subpkt): Ditto.
8806         * build-packet.c (write_new_header): Ditto.
8808         * packet.h (SIGSUBPKT_): New constants.
8809         * parse-packet.c (parse_sig_subpkt): Changed name, made global,
8810         and arg to return packet length, chnaged all callers
8813 Tue May  5 22:11:59 1998  Werner Koch  (wk@isil.d.shuttle.de)
8815         * keygen.c (gen_dsa): New.
8816         * build_packet.c (do_secret_cert): Support for DSA
8818 Mon May  4 19:01:25 1998  Werner Koch  (wk@isil.d.shuttle.de)
8820         * compress.c: doubled buffer sizes
8821         * parse-packet.c (do_plaintext): now uses iobuf_read/write.
8823 Mon May  4 09:35:53 1998  Werner Koch  (wk@isil.d.shuttle.de)
8825         * seskey.c (encode_md_value): Add optional argument hash_algo,
8826         changed all callers.
8828         * passphrase.c (make_dek_from_passphrase): Removed
8829         * (get_passhrase_hash): Changed name to passphrase_to_dek, add arg,
8830         changed all callers.
8832         * all: Introduced the new ELG identifier and added support for the
8833         encryption only one (which is okay to use by GNUPG for signatures).
8835 Sun May  3 17:50:26 1998  Werner Koch  (wk@isil.d.shuttle.de)
8837         * packet.h (PKT_OLD_COMMENT): New name for type 16.
8838         * parse-packet.c (parse_comment): Now uses type 61
8840 Fri May  1 12:44:39 1998  Werner Koch,mobil,,,  (wk@tobold)
8842         * packet.h (count): Chnaged s2k count from byte to u32.
8843         * seckey-cert.c (do_check): Changed s2k algo 3 to 4, changed
8844         reading of count.
8845         * build-packet.c (do_secret_cert): ditto.
8846         * parse-packet.c (parse_certificate): ditto.
8848         * parse-packet.c (parse_symkeyenc): New.
8849         * build-packet.c (do_symkey_enc): New.
8851 Thu Apr 30 16:33:34 1998  Werner Koch  (wk@isil.d.shuttle.de)
8853         * sign.c (clearsign_file): Fixed "Hash: " armor line.
8855 Tue Apr 28 14:27:42 1998  Werner Koch  (wk@isil.d.shuttle.de)
8857         * parse-packet.c (parse_subpkt): Some new types.
8859 Mon Apr 27 12:53:59 1998  Werner Koch  (wk@isil.d.shuttle.de)
8861         * g10.c (main): Add option --skip-verify.
8862         * mainproc.c (check_sig_and_print): Ditto.
8864         * g10.c (print_mds): Add output for Tiger.
8866         * sign.c (sign_file): Now uses partial length headers if used
8867         in canonical textmode (kludge to fix a bug).
8869         * parse-packet.c (parse_certificate): Changed BLOWFISH id.
8870         * pubkey-enc.c (get_session_key): Ditto.
8871         * seskey.c (make_session_key): Ditto.
8872         * seckey-cert.c (protect_secret_key,do_check): Add BLOWFISH160.
8874 Fri Apr 24 17:38:48 1998  Werner Koch,mobil,,,  (wk@tobold)
8876         * sig-check.c (check_key_signature): Add sig-class 0x14..0x17
8877         * keyedit.c (sign-key): Some changes to start with support of
8878         the above new sig-classes.
8880 Wed Apr 22 09:01:57 1998  Werner Koch,mobil,,,  (wk@tobold)
8882         * getkey.c (compare_name): add email matching
8884 Tue Apr 21 16:17:12 1998  Werner Koch,mobil,,,  (wk@tobold)
8886         * armor.c (armor_filter): fixed missing last LF before CSUM.
8888 Thu Apr  9 11:35:22 1998  Werner Koch  (wk@isil.d.shuttle.de)
8890         * seckey-cert.c (do_check): New; combines all the check functions
8891         into one.
8893         * sign.c: removed all key management functions
8894         * keyedit.c: New.
8896 Thu Apr  9 09:49:36 1998  Werner Koch  (wk@isil.d.shuttle.de)
8898         * import.c (chk_self_sigs): Changed an error message.
8900 Wed Apr  8 16:19:39 1998  Werner Koch  (wk@isil.d.shuttle.de)
8902         * packet.h: packet structs now uses structs from the pubkey,
8903         removed all copy operations from packet to pubkey structs.
8905 Wed Apr  8 13:40:33 1998  Werner Koch  (wk@isil.d.shuttle.de)
8907         * trustdb.c (verify_own_certs): Fixed "public key not found".
8909         * getkey.c (key_byname): New, combines public and secret key search.
8911         * pkclist.c (build_pkc_list): Add new arg usage, changed all callers.
8912         * skclist.c (build_skc_list): Likewise.
8914         * ringedit.c (find_keyblock, keyring_search2): Removed.
8916 Wed Apr  8 09:47:21 1998  Werner Koch  (wk@isil.d.shuttle.de)
8918         * sig-check.c (do_check): Applied small fix from Ulf Möller.
8920 Tue Apr  7 19:28:07 1998  Werner Koch  (wk@isil.d.shuttle.de)
8922         * cipher.c, encr-data.c, seckey-cert.c: Now uses cipher_xxxx
8923         functions instead of blowfish_xxx or cast_xxx
8925 Tue Apr  7 11:04:02 1998  Werner Koch  (wk@isil.d.shuttle.de)
8927         * Makefile.am (g10maint.o): Changed the way it is created.
8929 Mon Apr  6 11:17:08 1998  Werner Koch  (wk@isil.d.shuttle.de)
8931         * misc.c: New.
8932         * keygen.c (checksum,checksum_u16,checksum_mpi): Moved to misc.c
8933         * seckey-cert.c: Kludge for wrong ELG checksum implementation.
8935 Sat Apr  4 20:07:01 1998  Werner Koch  (wk@isil.d.shuttle.de)
8937         * cipher.c (cipher_filter): Support for CAST5
8938         * encr-data.c (decode_filter): Ditto.
8939         (decrypt_data): Ditto.
8940         * seskey.c (make_session_key): Ditto.
8941         * seckey-cert.c (check_elg, check_dsa): Ditto,
8942         (protect_secret_key): Ditto.
8943         * pubkey-enc.c (get_session_key): Ditto.
8944         * passphrase.c (hash_passphrase): Ditto.
8946 Thu Apr  2 20:22:35 1998  Werner Koch  (wk@isil.d.shuttle.de)
8948         * gpgd.c: New
8950 Thu Apr  2 10:38:16 1998  Werner Koch  (wk@isil.d.shuttle.de)
8952         * keygen.c (generate_keypair): Add valid_days stuff.
8953         * trustdb.c (check_trust): Add check for valid_days.
8955 Wed Apr  1 16:15:58 1998  Werner Koch  (wk@isil.d.shuttle.de)
8957         * keygen.c (generate_keypair): Addional question whether the
8958         selected large keysize is really needed.
8960 Wed Apr  1 15:56:33 1998  Werner Koch  (wk@isil.d.shuttle.de)
8962         * seckey-cert.c (protect_secret_key): merged protect_xxx to here.
8964 Wed Apr  1 10:34:46 1998  Werner Koch  (wk@isil.d.shuttle.de)
8966         * Makefile.am (g10maint.c): Changed creation rule, so that it works
8967         on FreeBSD (missing CFLAGS).
8969         * parse-packet.c (parse_subkey): Removed.
8971 Thu Mar 19 15:22:36 1998  Werner Koch  (wk@isil.d.shuttle.de)
8973         * ringedit.c (keyring_enum): Fixed problem with reading too
8974         many packets. Add support to read secret keyrings.
8976         * getkey.c (scan_keyring): Removed
8977         (lookup): New to replace scan_keyring.
8978         (scan_secret_keyring): Removed.
8979         (lookup_skc): New.
8981 Wed Mar 18 11:47:34 1998  Werner Koch  (wk@isil.d.shuttle.de)
8983         * ringedit.c (enum_keyblocks): New read mode 11.
8985         * keyid.c (elg_fingerprint_md): New and changed all other functions
8986         to call this if the packet version is 4 or above.
8988 Tue Mar 17 20:46:16 1998  Werner Koch  (wk@isil.d.shuttle.de)
8990         * parse-packet.c (parse_certificate): Add listing support for subkeys.
8992 Tue Mar 17 20:32:22 1998  Werner Koch  (wk@isil.d.shuttle.de)
8994         * armor.c (is_armored): Allow marker packet.
8996 Thu Mar 12 13:36:49 1998  Werner Koch  (wk@isil.d.shuttle.de)
8998         * trustdb.c (check_trust): Checks timestamp of pubkey.
8999         * sig-check. (do_check): Compares timestamps.
9001 Tue Mar 10 17:01:56 1998  Werner Koch  (wk@isil.d.shuttle.de)
9003         * g10.c (main): Add call to init_signals.
9004         * signal.c: New.
9006 Mon Mar  9 12:43:42 1998  Werner Koch  (wk@isil.d.shuttle.de)
9008         * dsa.c: New
9009         * packet.h, free-packet.c, parse-packet.c : Add support for DSA
9010         * sig-check.c, getkey.c, keyid.c, ringedit.c: Ditto.
9011         * seckey-cert.c: Ditto.
9013         * packet.h : Moved .digest_algo of signature packets to outer
9014         structure. Changed all references
9016 Sun Mar  8 13:06:42 1998  Werner Koch  (wk@isil.d.shuttle.de)
9018         * openfile.c : Support for stdout filename "-".
9020         * mainproc.c (check_sig_and_print): Enhanced status output:
9021         * status.c (write_status_text): New.
9023 Fri Mar  6 16:10:54 1998  Werner Koch  (wk@isil.d.shuttle.de)
9025         * kbnode.c (clone_kbnode): Fixed private_flag.
9027         * mainproc.c (list_node): Output of string "Revoked" as user-id.
9029 Fri Mar  6 14:26:39 1998  Werner Koch  (wk@isil.d.shuttle.de)
9031         * g10.c (main): Add userids to "-kv" and cleaned up this stuff.
9033 Fri Mar  6 12:45:58 1998  Werner Koch  (wk@isil.d.shuttle.de)
9035         * g10.c (main): Changed semantics of the list-... commands
9036         and added a new one. Removed option "-d"
9038         * decrypt.c: New.
9040         * trustdb.c (init_trustdb): Autocreate directory only if it ends
9041         in "/.gnupg".
9043 Thu Mar  5 12:12:11 1998  Werner Koch  (wk@isil.d.shuttle.de)
9045         * mainproc.c (do_proc_packets): New. Common part of proc_packet.
9046         (proc_signature_packets): special version to handle signature data.
9047         * verify.c: New.
9048         * g10.c (aVerify): New.
9049         * plaintext.c (hash_datafiles): New.
9050         * compress.c (handle_compressed): Add callback arg, changed caller.
9052 Thu Mar  5 10:20:06 1998  Werner Koch  (wk@isil.d.shuttle.de)
9054         * g10.c: Is nom the common source for gpg and gpgm
9055         * g10maint.c: Removed
9056         * Makefile.am: Add rule to build g10maint.c
9058 Thu Mar  5 08:43:59 1998  Werner Koch  (wk@isil.d.shuttle.de)
9060         * g10.c (main): Changed the way clear text sigs are faked.
9062 Wed Mar  4 19:47:37 1998  Werner Koch  (wk@isil.d.shuttle.de)
9064         * g10maint.c (aMuttKeyList): New
9065         * keylist.c: New.
9067 Wed Mar  4 17:20:33 1998  Werner Koch  (wk@isil.d.shuttle.de)
9069         * getkey.c (get_pubkey_byname): Kludge to allow 0x prefix.
9071 Tue Mar  3 13:46:55 1998  Werner Koch  (wk@isil.d.shuttle.de)
9073         * g10maint.c (main): New option --gen-random.
9075 Tue Mar  3 09:50:08 1998  Werner Koch  (wk@isil.d.shuttle.de)
9077         * g10.c (aDeleteSecretKey): New.
9078         (aEditSig): Add option "--edit-key" as synonym for "--edit-sig".
9079         (aDeleteSecretKey): New.
9080         * getkey.c (seckey_available): New.
9081         * sign.c (delete_key): Enhanced to delete secret keys, changed all
9082         callers.
9084 Mon Mar  2 21:23:48 1998  Werner Koch  (wk@isil.d.shuttle.de)
9086         * pkc_list.c (build_pkc_list): Add interactive input of user ID.
9088 Mon Mar  2 20:54:05 1998  Werner Koch  (wk@isil.d.shuttle.de)
9090         * pkclist.c (do_we_trust_pre): New.
9091         (add_ownertrust): Add message.
9092         * trustdb.c (enum_trust_web): Quick fix.
9094 Mon Mar  2 13:50:53 1998  Werner Koch  (wk@isil.d.shuttle.de)
9096         * g10.c (main): New action aDeleteKey
9097         * sign.c (delete_key): New.
9099 Sun Mar  1 16:38:58 1998  Werner Koch  (wk@isil.d.shuttle.de)
9101         * trustdb.c (do_check): No returns TRUST_UNDEFINED instead of
9102         eof error.
9104 Fri Feb 27 18:14:03 1998  Werner Koch  (wk@isil.d.shuttle.de)
9106         * armor.c (find_header): Removed trailing CR on headers.
9108 Fri Feb 27 18:02:48 1998  Werner Koch  (wk@isil.d.shuttle.de)
9110         * ringedit.c (keyring_search) [MINGW32]: Open and close file here
9111         because rename does not work on open files. Chnaged callers.
9113 Fri Feb 27 16:43:11 1998  Werner Koch  (wk@isil.d.shuttle.de)
9115         * sig-check.c (do_check): Add an md_enable.
9116         * mainproc.c (do_check_sig): Use md_open in case of detached sig
9117         (proc_tree): Take detached sigs into account.
9119 Fri Feb 27 15:22:46 1998  Werner Koch  (wk@isil.d.shuttle.de)
9121         * g10.c (main): Make use of GNUPGHOME envvar.
9122         * g10main.c (main): Ditto.
9124 Wed Feb 25 11:40:04 1998  Werner Koch  (wk@isil.d.shuttle.de)
9126         * plaintext.c (ask_for_detached_datafile): add opt.verbose to
9127         info output.
9129         * openfile.c (open_sigfile): Try also name ending in ".asc"
9131 Wed Feb 25 08:41:00 1998  Werner Koch  (wk@isil.d.shuttle.de)
9133         * keygen.c (generate_keypair): Fixed memory overflow.
9135 Tue Feb 24 15:51:55 1998  Werner Koch  (wk@isil.d.shuttle.de)
9137         * parse-packet.c (parse_certificate): Support for S2K.
9138         * build-packet.c (do_secret_cert): Ditto.
9139         * keygen.c (gen_elg): Ditto.
9140         * seckey-cert.c (check_elg): Ditto
9141         (protect_elg): Ditto.
9142         * sign.c (chnage_passphrase): Ditto.
9143         * passphrase.c (get_passphrase_hash): Support for a salt and
9144         changed all callers.
9145         (make_dek_from_passphrase): Ditto.
9147 Tue Feb 24 12:30:56 1998  Werner Koch  (wk@isil.d.shuttle.de)
9149         * build-packet.c (hash_public_cert): Disabled debug output.
9151 Fri Feb 20 17:22:28 1998  Werner Koch  (wk@isil.d.shuttle.de)
9153         * trustdb.c (init_trustdb) [MINGW32]: Removed 2nd mkdir arg.
9154         (keyring_copy) [MINGW32]: Add a remove prior to the renames.
9156 Wed Feb 18 18:39:02 1998  Werner Koch  (wk@isil.d.shuttle.de)
9158         * Makefile.am (OMIT_DEPENDENCIES): New.
9160         * rsa.c: Replaced log_bug by BUG.
9162 Wed Feb 18 13:35:58 1998  Werner Koch  (wk@isil.d.shuttle.de)
9164         * mainproc.c (do_check_sig): Now uses hash_public_cert.
9165         * parse-packet.c (parse_certificate): Removed hashing.
9166         * packet.h (public_cert): Removed hash variable.
9167         * free-packet.c (copy_public_cert, free_public_cert): Likewise.
9169         * sig-check.c (check_key_signatures): Changed semantics.
9171 Wed Feb 18 12:11:28 1998  Werner Koch  (wk@isil.d.shuttle.de)
9173         * trustdb.c (do_check): Add handling for revocation certificates.
9174         (build_sigrecs): Ditto.
9175         (check_sigs): Ditto.
9177 Wed Feb 18 09:31:04 1998  Werner Koch  (wk@isil.d.shuttle.de)
9179         * armor.c (armor_filter): Add afx->hdrlines.
9180         * revoke.c (gen_revoke): Add comment line.
9181         * dearmor.c (enarmor_file): Ditto.
9183         * sig-check.c (check_key_signature): Add handling for class 0x20.
9184         * mainproc.c : Ditto.
9186 Tue Feb 17 21:24:17 1998  Werner Koch  (wk@isil.d.shuttle.de)
9188         * armor.c : Add header lines "...ARMORED FILE .."
9189         * dearmor.c (enarmor_file): New.
9190         * g10maint.c (main): New option "--enarmor"
9192 Tue Feb 17 19:03:33 1998  Werner Koch  (wk@isil.d.shuttle.de)
9194         * mainproc.c : Changed a lot, because the packets are now stored
9195         a simple linlked list and not anymore in a complicatd tree structure.
9197 Tue Feb 17 10:14:48 1998  Werner Koch  (wk@isil.d.shuttle.de)
9199         * free_packet.c (cmp_public_certs): New.
9200         (cmp_user_ids): New.
9202         * kbnode.c (clone_kbnode): New.
9203         (release_kbnode): Add clone support.
9205         * ringedit.c (find_keyblock_bypkc): New.
9207         * sign.c (remove_keysigs): Self signatures are now skipped,
9208         changed arguments and all callers.
9210         * import.c : Add functionality.
9212 Tue Feb 17 09:31:40 1998  Werner Koch  (wk@isil.d.shuttle.de)
9214         * options.h (homedir): New option.
9215         * g10.c, g10maint.c, getkey.c, keygen.c, trustdb.c (opt.homedir): New.
9217         * trustdb.c (init_trustdb): mkdir for hoem directory
9218         (sign_private_data): Renamed "sig" to "g10.sig"
9220 Mon Feb 16 20:02:03 1998  Werner Koch  (wk@isil.d.shuttle.de)
9222         * kbnode.c (commit_kbnode): New.
9223         (delete_kbnode): removed unused first arg. Changed all Callers.
9225         * ringedit.c (keyblock_resource_name): New.
9226         (get_keyblock_handle): NULL for filename returns default resource.
9228 Mon Feb 16 19:38:48 1998  Werner Koch  (wk@isil.d.shuttle.de)
9230         * sig-check.s (check_key_signature): Now uses the supplied
9231         public key to check the signature and not any more the one
9232         from the getkey.c
9233         (do_check): New.
9234         (check_signature): Most work moved to do_check.
9236 Mon Feb 16 14:48:57 1998  Werner Koch  (wk@isil.d.shuttle.de)
9238         * armor.c (find_header): Fixed another bug.
9240 Mon Feb 16 12:18:34 1998  Werner Koch  (wk@isil.d.shuttle.de)
9242         * getkey.c (scan_keyring): Add handling of compressed keyrings.
9244 Mon Feb 16 10:44:51 1998  Werner Koch  (wk@isil.d.shuttle.de)
9246         * g10.c, g10maint.c (strusage): Rewrote.
9247         (build_list): New
9249 Mon Feb 16 08:58:41 1998  Werner Koch  (wk@isil.d.shuttle.de)
9251         * armor.c (use_armor): New.
9253 Sat Feb 14 14:30:57 1998  Werner Koch  (wk@isil.d.shuttle.de)
9255         * mainproc.c (proc_tree): Sigclass fix.
9257 Sat Feb 14 14:16:33 1998  Werner Koch  (wk@isil.d.shuttle.de)
9259         * armor.c (armor_filter): Changed version and comment string.
9260         * encode.c, sign.c, keygen.c: Changed all comment packet strings.
9262 Sat Feb 14 12:39:24 1998  Werner Koch  (wk@isil.d.shuttle.de)
9264         * g10.c (aGenRevoke): New command.
9265         * revoke.c: New.
9266         * sign.c (make_keysig_packet): Add support for sigclass 0x20.
9268 Fri Feb 13 20:18:14 1998  Werner Koch  (wk@isil.d.shuttle.de)
9270         * ringedit.c (enum_keyblocks, keyring_enum): New.
9272 Fri Feb 13 19:33:40 1998  Werner Koch  (wk@isil.d.shuttle.de)
9274         * export.c: Add functionality.
9276         * keygen.c (generate_keypair): Moved the leading comment behind the
9277         key packet.
9278         * kbnode.c (walk_kbnode): Fixed.
9280         * g10.c (main): listing armored keys now work.
9282 Fri Feb 13 16:17:43 1998  Werner Koch  (wk@isil.d.shuttle.de)
9284         * parse-packet.c (parse_publickey, parse_signature): Fixed calls
9285         to mpi_read used for ELG b.
9287 Fri Feb 13 15:13:23 1998  Werner Koch  (wk@isil.d.shuttle.de)
9289         * g10.c (main): changed formatting of help output.
9291 Thu Feb 12 22:24:42 1998  Werner Koch  (wk@frodo)
9293         * pubkey-enc.c (get_session_key): rewritten
9296  Copyright 1998,1999,2000,2001,2002,2003,2004,2005,
9297            2006 Free Software Foundation, Inc.
9299  This file is free software; as a special exception the author gives
9300  unlimited permission to copy and/or distribute it, with or without
9301  modifications, as long as this notice is preserved.
9303  This file is distributed in the hope that it will be useful, but
9304  WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
9305  implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.