2007-04-26 Marcus Brinkmann <marcus@g10code.de>
[gnupg.git] / g10 / ChangeLog
blobc7a190e60742842d517b6624cce4e86fdbf8eb6b
1 2007-04-26  Marcus Brinkmann  <marcus@g10code.de>
3         * passphrase.c (passphrase_to_dek): Write missing passphrase
4         status message in case of cancellation.
6 2007-04-16  Werner Koch  <wk@g10code.com>
8         * build-packet.c (mpi_write): Made buffer a bit larger.  Reported
9         by Alexander Feigl.
11 2007-04-13  Werner Koch  <wk@g10code.com>
13         * call-agent.c (start_agent): Don't use log_error when using the
14         fallback hack to start the agent.  This is bug 782.
16 2007-04-05  David Shaw  <dshaw@jabberwocky.com>
18         From STABLE-BRANCH-1-4
20         * parse-packet.c (parse_marker): New.  Enforce that the marker
21         contains 'P', 'G', 'P', and nothing but.
22         (parse): Call it here.
23         (skip_packet): No longer need to handle marker packets here.
25 2007-03-14  David Shaw  <dshaw@jabberwocky.com>
27         From STABLE-BRANCH-1-4
29         * keyserver.c: Windows Vista doesn't grok X_OK and so fails
30         access() tests.  Previous versions interpreted X_OK as F_OK
31         anyway, so we'll just use F_OK directly.
33 2007-03-09  David Shaw  <dshaw@jabberwocky.com>
35         From STABLE-BRANCH-1-4
37         * parse-packet.c (parse_signature): It's hex.
39         * getkey.c (merge_selfsigs_subkey): Avoid listing the contents of
40         a backsig when list mode is on.  Noted by Timo Schulz.
42 2007-03-08  Werner Koch  <wk@g10code.com>
44         * plaintext.c (handle_plaintext): Add two extra fflush for stdout.
46 2007-03-08  David Shaw  <dshaw@jabberwocky.com>  (wk)
48         * keyedit.c (keyedit_menu): If we modify the keyblock (via
49         fix_keyblock() or collapse_uids()) make sure we reprocess the
50         keyblock so the flags are correct.  Noted by Robin H. Johnson.
52         * getkey.c (fixup_uidnode): Properly clear flags that don't apply
53         to us (revoked, expired) so that we can reprocess a uid.
55 2007-03-05  Werner Koch  <wk@g10code.com>
57         Converted this file to UTF-8.
58         
59         Ported David and my multiple messages changes from 1.4.7.
61         * options.h, gpg.c (main), mainproc.c (check_sig_and_print): Allow
62         multiple sig verification again as this is protected via the
63         multiple-messages code.  New option --allow-multiple-messages and
64         --no variant.
65         * status.h (STATUS_ERROR): New status code.
66         * status.c (get_status_string): Ditto.
67         * mainproc.c (proc_plaintext): Emit it if multiple messages are
68         detected. Error out if more than one plaintext packet is
69         encountered.    
70         * mainproc.c (literals_seen): New.
72 2007-02-26  Werner Koch  <wk@g10code.com>
74         * gpg.c (main): Add verify option show-primary-uid-only.
75         * options.h (VERIFY_SHOW_PRIMARY_UID_ONLY): New.
76         * mainproc.c (check_sig_and_print): Implement it.
78 2007-02-22  Werner Koch  <wk@g10code.com>
80         * encr-data.c (decrypt_data): Correctly test for unknown algorithm.
81         * import.c (check_prefs): Ditto.
82         * keyedit.c (show_prefs): Ditto.
83         * mainproc.c (proc_symkey_enc): Ditto.
85 2007-02-06  Werner Koch  <wk@g10code.com>
87         * export.c (do_export_stream): Allow reset-subkey-passwd along
88         with sexp-format.
90 2007-02-04  Werner Koch  <wk@g10code.com>
92         * parse-packet.c (parse_signature): Limit bytes read for an
93         unknown alogorithm.  Fixes Debian bug#402592.
95 2007-01-31  Werner Koch  <wk@g10code.com>
97         * verify.c (verify_signatures): Do no dereference a NULL afx.
99         * passphrase.c (passphrase_get): Set the cancel flag on all error
100         from the agent.  Fixes a bug reported by Tom Duerbusch.
102 2007-01-30  Werner Koch  <wk@g10code.com>
104         * status.c (write_status_begin_signing): New.
105         * sign.c (sign_file, sign_symencrypt_file): Call it.
106         * textfilter.c (copy_clearsig_text): Call it.
108         * call-agent.c (agent_scd_pksign): Pass --hash-rmd160 to SCD if
109         required.
111         * gpg.c (main): Let --no-use-agent and --gpg-agent-info print a
112         warning.  
113         * misc.c (obsolete_option): New.
115 2007-01-29  Werner Koch  <wk@g10code.com>
117         * pkclist.c (do_we_trust_pre): Issue a user-id-hint status code. 
119 2007-01-15  Werner Koch  <wk@g10code.com>
121         * parse-packet.c (read_protected_v3_mpi): Make sure to stop
122         reading even for corrupted packets.
123         * keygen.c (generate_user_id): Need to allocate one byte more.
124         Reported by Felix von Leitner.
126 2006-12-21  Werner Koch  <wk@g10code.com>
128         * gpg.c (main): New command --server.
129         * gpg.h (struct server_control_s, ctrl_t): New.
130         * server.c: New.
131         * verify.c (gpg_verify): New.
132         * mainproc.c (mainproc_context): Made SIGNED_DATA a structure.
133         (proc_signature_packets_by_fd): New.
134         (proc_compressed_cb): Divert depending on SIGNED_DATA.
135         * plaintext.c (hash_datafile_by_fd): New.
136         * mainproc.c (proc_tree): Use it here.
138         * verify.c (verify_signatures): Init AFX only when needed.
139         Don't leak a context on error.
140         (verify_one_file): Don't leak a context on error.
142 2006-12-07  Werner Koch  <wk@g10code.com>
144         * openfile.c (copy_options_file): Use log_info instead of
145         log_error to avoid an error return of gpg due to a missing
146         skeleton file.
148 2006-12-07  David Shaw  <dshaw@jabberwocky.com>
150         * Makefile.am: Link to iconv for jnlib dependency.
152 2006-12-05  Werner Koch  <wk@g10code.com>
154         * passphrase.c (passphrase_to_dek): Handle a Cancel request
155         correctly.  [Bug#737]
156         * mainproc.c (proc_symkey_enc): Removed workaround for bogus cancel
157         processing.
158         * encode.c (encode_simple): Distinguish error message between
159         cancel and invalid passphrase.
160         (setup_symkey): Ditto.
161         * sign.c (sign_symencrypt_file): Ditto
162         * keyedit.c (change_passphrase): Allow cancellation.
163         * keygen.c (do_ask_passphrase): New arg R_CANCELED.
164         (generate_keypair): Handle a passphrase cancellation.
165         (generate_raw_key): Ditto.
166         (generate_subkeypair): Ditto.
168 2006-12-04  Werner Koch  <wk@g10code.com>
170         * filter.h (armor_filter_context_t): New element REFCOUNT.
171         * armor.c (armor_filter): Made static.
172         (push_armor_filter, release_armor_context, new_armor_context): New.
173         (armor_filter): Release the context.
174         * gpg.c (main): Use new armor context functions and
175         push_armor_filter.
176         * export.c (do_export): Ditto.
177         * encode.c (encode_simple, encode_crypt): Ditto.
178         * decrypt.c (decrypt_message, decrypt_messages): Ditto.
179         * dearmor.c (dearmor_file, enarmor_file): Ditto.
180         * verify.c (verify_signatures, verify_one_file): Ditto.
181         * sign.c (sign_file, clearsign_file, sign_symencrypt_file): Ditto.
182         * revoke.c (gen_desig_revoke, gen_revoke): Ditto.
183         * keyserver.c (keyserver_spawn): Ditto.
184         * keygen.c (output_control_s): Turn AFX fields into pointers.
185         (read_parameter_file): Allocate and release AFX fields.
186         (do_generate_keypair): Use push_armor_filter.
187         * import.c (import): Replace iobuf_push_filter2 hack by the new
188         armor context stuff.
190 2006-12-03  Werner Koch  <wk@g10code.com>
192         * filter.h: New element REFCOUNT.
193         (handle_progress): Remove prototype.
194         * progress.c (new_progress_context, release_progress_context): New.
195         (progress_filter): Use new function to release context.  Made static.
196         (handle_progress): Bumb reference counter.  No more check for
197         enabled progress as this is handled by new_progress_context.
198         * verify.c (verify_signatures, verify_one_file): Replace stack
199         based progress context by a heap based one.
200         * sign.c (sign_file, clearsign_file, sign_symencrypt_file): Ditto.
201         * plaintext.c (ask_for_detached_datafile, hash_datafiles): Ditto.
202         * encode.c (encode_simple, encode_crypt): Ditto.
203         * decrypt.c (decrypt_message, decrypt_messages): Ditto. 
205         * keyedit.c (menu_clean): Made strings translatable.
207 2006-12-03  David Shaw  <dshaw@jabberwocky.com>
209         * keyedit.c (menu_clean): Show "already minimized" rather than
210         "already clean" when a minimized key is minimized again.  From
211         Dirk Traulsen.
213 2006-12-02  David Shaw  <dshaw@jabberwocky.com>
215         * options.h, gpg.c (main), passphrase.c (passphrase_to_dek): Add
216         --passphrase-repeat option to control how many times gpg will
217         re-prompt for a passphrase to ensure the user has typed it
218         correctly.  Defaults to 1.
220 2006-12-02  Werner Koch  <wk@g10code.com>
222         * encr-data.c: Allocate DFX context on the heap and not on the
223         stack.  Changes at several places.  Fixes CVE-2006-6235.
224         
225 2006-11-27  Werner Koch  <wk@g10code.com>
227         * openfile.c (ask_outfile_name): Fixed buffer overflow occurring
228         if make_printable_string returns a longer string.  Fixes bug 728.
230 2006-11-21  Werner Koch  <wk@g10code.com>
232         * Makefile.am (needed_libs): libgnu needs to come after libcommon.
234         * keygen.c (ask_expire_interval): Print y2038 warning only for 32
235         bit time_t.
236         (save_unprotected_key_to_card): Made RSA_N_LEN et al a size_t.
237         Cast printf args.
238         (get_parameter_algo): Allow "ELG" as alias for "ELG-E".
240         * seckey-cert.c (do_check): Made NBYTES a size_t.
241         (do_check): Made NDATA a size_t.
242         (protect_secret_key): Made NARR a size_t.
243         (protect_secret_key): Made NVYES a size_t.
244         * pubkey-enc.c (get_it): Made INDATALEN a size_t. 
245         (get_it): Made NFRAME a size_t.
246         * keyid.c (hash_public_key): Made NBITS an unsigned int.
247         * misc.c (checksum_mpi): Made NBYTES a size_t. 
248         (openpgp_pk_test_algo2): Made USE_BUF a size_t.
249         * seskey.c (encode_session_key): Made NFRAME a size_t.
250         (do_encode_md): Ditto.
251         (encode_md_value): Cast size_t argument of printf.
252         (encode_md_value): Ditto.
254 2006-11-10  Werner Koch  <wk@g10code.com>
256         * parse-packet.c (mpi_read): Changed NREAD to size_t to match the
257         gcry_mpi-scan prototype. 
258         (mpi_read): Fixed double increment of bytes read to correctly
259         detect overlong MPIs.
261 2006-11-05  Werner Koch  <wk@g10code.com>
263         * gpg.c (main): Remove the default --require-cross-certification.
264         * options.skel: Enable require-cross-certification.
266 2006-10-31  Werner Koch  <wk@g10code.com>
268         * pkclist.c (warn_missing_aes_from_pklist): New.
269         * encode.c (encrypt_filter, encode_crypt): Use it here.
271 2006-10-27  Werner Koch  <wk@g10code.com>
273         * pkclist.c (warn_missing_mdc_from_pklist): New.
274         * encode.c (use_mdc): Use it here.
276 2006-10-24  Marcus Brinkmann  <marcus@g10code.de>
278         * Makefile.am (AM_CFLAGS): Add $(LIBASSUAN_CFLAGS).
280 2006-10-23  Werner Koch  <wk@g10code.com>
282         * gpg.c (main): New command --gpgconf-test.
284         * Makefile.am (bzip2_source): New.
286 2006-10-20  Werner Koch  <wk@g10code.com>
288         * getkey.c (classify_user_id): Reserve '&' for search by keygrip.
290 2006-10-19  Werner Koch  <wk@g10code.com>
292         * keygen.c (get_parameter_algo): Add special case for ELG_E which
293         is not supported by libgcrypt's mapping function.
295 2006-10-18  Werner Koch  <wk@g10code.com>
297         * keyid.c (v3_keyid): Don't use mempcy as we need to hold the
298         keyids in the native endian format.
300         * import.c (import_print_stats): Use log_printf.
302         * build-packet.c (do_public_key): Care about mpi_write errors.
303         (do_secret_key, do_pubkey_enc, do_signature): Ditto. 
304         (mpi_write): Print an extra warning on error.
306 2006-10-17  Werner Koch  <wk@g10code.com>
308         * Makefile.am (LDADD): Replaced W32LIBS by NETLIBS.
310 2006-10-12  David Shaw  <dshaw@jabberwocky.com>
312         * parse-packet.c (parse_symkeyenc): Show the unpacked as well as
313         the packed s2k iteration count.
315         * main.h, options.h, gpg.c (encode_s2k_iterations, main),
316         passphrase.c (hash_passphrase): Add --s2k-count option to specify
317         the number of s2k hash iterations.
319 2006-10-08  Werner Koch  <wk@g10code.com>
321         * gpgv.c: Remove the tty stubs as we are now required to link to
322         tty anyway (it is included in libcommand and has dependencies to
323         other modules as well).
325         * keyedit.c (keyedit_menu): Use keyedit_completion only if
326         readline is available.  It would be better to move this code into
327         gpgrlhelp.c
329 2006-10-06  Werner Koch  <wk@g10code.com>
331         * Makefile.am (AM_CFLAGS): Use PTH version of libassuan.
333 2006-10-06  David Shaw  <dshaw@jabberwocky.com>
335         * keyserver.c (keyserver_spawn): Write the 16-digit keyid rather
336         than whatever key selector the user used on the command line.
338 2006-10-05  Werner Koch  <wk@g10code.com>
340         * status.c (progress_cb): Changed to libgcrypt API.
341         (set_status_fd): Register the progress cb.
343         * seskey.c (encode_md_value): Check that the hash algo is valid
344         before getting the OID. 
346 2006-10-04  Werner Koch  <wk@g10code.com>
348         * passphrase.c: Allow for a static passphrase in batch mode.
349         
350         * call-agent.c (agent_havekey): Removed.
351         (percent_plus_escape): New.
352         (agent_get_passphrase): New.
353         (agent_clear_passphrase): New.
355         * passphrase.c: Changed so that we always require the agent.
356         (agent_send_option, agent_send_all_options, agent_open): Removed.
357         (agent_get_passphrase): Cleaned up.  Does now use the call-agent
358         functions.  Renamed to
359         (passphrase_get): .. this.  Changed all callers.
360         (passphrase_clear_cache): Rewritten.
361         (passphrase_to_dek, hash_passphrase): Re-indented.
363         * gpg.c (main): Made --use-agent a dummy option.
364         * seckey-cert.c (check_secret_key): We require the agent, so always
365         allow for 3 tries.
367         * gpg.c (main): Print a warning if -sat has been used.
368         (main): Removed the special treatment of the -k option. -k is now
369         an alias for --list-keys.
370         (main): Removed --list-ownertrust.
372 2006-10-02  Werner Koch  <wk@g10code.com>
374         * encr-data.c (decrypt_data, mdc_decode_filter): Check the MDC
375         right here and don't let parse-packet handle the MDC.
377 2006-09-29  Werner Koch  <wk@g10code.com>
379         * compress.c (do_uncompress): Removed use of Z_PARTIAL_FLUSH.
380         This is outdated and old zlib versions which still require it have
381         security problems.
383 2006-09-27  Werner Koch  <wk@g10code.com>
385         Replaced all STRLIST by strlist_t.
387 2006-09-21  Werner Koch  <wk@g10code.com>
389         * signal.c (got_fatal_signal): Replaced readline stuff by a tty
390         function.
392         * Makefile.am (LDADD): Include libgpgrl.a.
394         * gpg.c (main): Call gpg_rl_initialize.
396         * keyedit.c: Removed double inclusion of stdio.h.
398 2006-09-20  Werner Koch  <wk@g10code.com>
400         * call-agent.c: Include asshelp.h.
401         (start_agent): Use send_pinentry_environment.
403 2006-09-14  Werner Koch  <wk@g10code.com>
405         Replaced all call gpg_error_from_errno(errno) by
406         gpg_error_from_syserror().
408 2006-09-13  Werner Koch  <wk@g10code.com>
410         * gpg.c (main): Made --require-cross-certification the default. 
412 2006-09-06  Marcus Brinkmann  <marcus@g10code.de>
414         * Makefile.am (gpg2_LDADD, gpgv2_LDADD): Replace -lassuan and
415         -lgpg-error with $(LIBASSUAN_LIBS) and $(GPG_ERROR_LIBS).
416         (AM_CFLAGS): Add $(LIBASSUAN_CFLAGS) and $(GPG_ERROR_CFLAGS).
418 2006-09-06  Werner Koch  <wk@g10code.com>
420         * gpg.c (main): Enable new assuan API.
421         * call-agent.c: Changed to new Assuan API.
423 2006-09-01  Werner Koch  <wk@g10code.com>
425         * call-agent.c: Do not force using the pipe server.
427         * gpg.c (main): Enable card related commands.
429 2006-08-22  Werner Koch  <wk@g10code.com>
431         * mainproc.c (proc_plaintext): Fixed a #warning
433 2006-08-21  Werner Koch  <wk@g10code.com>
435         * skclist.c (random_is_faked): Implemented.
436         (is_insecure): Also test for the old uppercase version of the
437         insecure string.
438         * gpg.c (main): Renamed --quick-random to debug-quick-quick-random.
440         * gpg.c (print_mds): Do not use the USE_SHA macros.
442         * mainproc.c (proc_encrypted): Remove assign inside condition for
443         better readibility.
445         * packet.h: Moved consts to new header ../common/openpgpdefs.h.
447 2006-08-16  Werner Koch  <wk@g10code.com>
449         * keyserver.c (GPGKEYS_PREFIX): Rename to gpg2keys_.  This is so
450         that we can install helpers from 1.4 and 2 without conflicts and
451         first of all don't get lost with weird bug reports.
453         * keyid.c (serialno_and_fpr_from_sk): New. Actually lost during
454         the last 1.4 to 1.9 merge.
456         * gpg.c (list_config): Output ccid-reader-id only for gnupg 1.
458         * call-agent.c (agent_scd_writekey): New.
459         (inq_writekey_parms): New.
461         * gpgv.c: Include call-agent.h for use by stubs.
463         * misc.c: Include call-agent.h for use by get_signature_count.
465 2006-07-27  Werner Koch  <wk@g10code.com>
467         * parse-packet.c (parse_comment): Cap comments at 65k.
468         (parse_gpg_control): Skip too large control packets.
470 2006-07-24  David Shaw  <dshaw@jabberwocky.com>  (wk)
472         * keydb.h, pkclist.c (select_algo_from_prefs, algo_available):
473         Pass a union for preference hints rather than doing void * games.
475         * sign.c (sign_file): Use it here.
477         * sign.c (sign_file): When signing with multiple DSA keys, one
478         being DSA1 and one being DSA2 and encrypting at the same time, if
479         the recipient preferences give a hash that can work with the DSA2
480         key, then allow the DSA1 key to be promoted rather than giving up
481         and using hash_for().
483         * pkclist.c (algo_available): Automatically enable DSA2 mode when
484         handling a key that clearly isn't DSA1 (i.e. q!=160).
486 2006-06-30  Werner Koch  <wk@g10code.com>
488         * misc.c (checksum_mpi): No need for nbits as they are alredy
489         included in the buffer.
491 2006-06-29  Werner Koch  <wk@g10code.com>
493         * parse-packet.c (parse_signature, parse_key): Need store the
494         length of opaque data as number of bits. 
495         * card-util.c (card_store_subkey): Ditto.
497         * mainproc.c (print_pkenc_list, check_sig_and_print): Replaced
498         log_get_stream by calls to log_printf.  This avoids the extra LFs
499         inserted by the logging function. They are a bit too smart
500         sometimes.
501         * pkclist.c (do_show_revocation_reason): Print final LF through
502         log_printf to avoid extra LFs.
503         * pubkey-enc.c (get_it): Ditto.
505         * seskey.c (encode_md_value): Fix call to gcry.
507 2006-06-27  Werner Koch  <wk@g10code.com>
509         Applied patches from 1.4.x (2006-05-22 to 2006-06-23) from David:
511         * keygen.c (keygen_upd_std_prefs, keygen_add_std_prefs)
512         (proc_parameter_file): Add --default-keyserver-url to specify a
513         keyserver URL at key generation time, and "Keyserver:" keyword for
514         doing the same through a batch file.
515         * options.h, gpg.c (main): Ditto.
517         * sign.c (do_sign): For now don't accept a truncated hash even
518         for DSA1 keys (be liberal in what you accept, etc).
520         * import.c (import_one): Add a flag (from_sk) so we don't check
521         prefs on an autoconverted public key.  The check should only
522         happen on the sk side.  Noted by Dirk Traulsen.
524         * keygen.c (gen_card_key): Add optional argument to return a
525         pointer (not a copy) of the stub secret key for the secret key we
526         just generated on the card.
527         (generate_card_subkeypair): Use it here so that the signing key on
528         the card can use the card to generate the 0x19 backsig on the
529         primary key.  Noted by Janko Heilgeist and Jonas Oberg.
531         * parse-packet.c (parse_user_id): Cap the user ID size at 2048
532         bytes.  This prevents a memory allocation attack with a very large
533         user ID.  A very large packet length could even cause the
534         allocation (a u32) to wrap around to a small number.  Noted by
535         Evgeny Legerov on full-disclosure.
537         * keygen.c (gen_dsa): Allow generating DSA2 keys.  Allow
538         specifying sizes > 1024 when --enable-dsa2 is set.  The size of q
539         is set automatically based on the key size.
540         (ask_keysize, generate_keypair): Ask for DSA size when
541         --enable-dsa2 is set.
543         * exec.c (make_tempdir) [W32]: Fix bug with a temporary directory
544         on W32 that is over 256 bytes long.  Noted by Israel G. Lugo.
546         * gpg.c (reopen_std): New function to reopen fd 0, 1, or 2 if we
547         are called with them closed.  This is to protect our
548         keyring/trustdb files from corruption if they get attached to one
549         of the standard fds.  Print a warning if possible that this has
550         happened, and fail completely if we cannot reopen (should never
551         happen).
552         (main): Call it here.
553         
554         * parse-packet.c (dump_sig_subpkt, parse_signature): Fix meaning
555         of key expiration and sig expiration subpackets - zero means
556         "never expire" according to 2440, not "expire instantly".
557         * build-packet.c (build_sig_subpkt_from_sig): Ditto.
558         * getkey.c (fixup_uidnode, merge_selfsigs_main)
559         (merge_selfsigs_subkey): Ditto.
560         * keygen.c (keygen_add_key_expire): Ditto.
562         * getkey.c (get_pubkey_byname)
563         * import.c (import_one): Fix key selection problem when
564         auto-key-locate returns a list of keys, not all of which are
565         usable (revoked, expired, etc).  Noted by Simon Josefsson.
567 2006-05-24  Werner Koch  <wk@g10code.com>
569         * keyid.c (hash_public_key): Do not double hash the length bytes,
570         they are already included by mpi_print.
572         * misc.c (openpgp_pk_test_algo2): Get test call right.
574         * misc.c (string_to_cipher_algo, string_to_digest_algo): New.
575         * keygen.c (keygen_set_std_prefs): use them here.
576         * gpg.c (main): and here.
578 2006-05-23  Werner Koch  <wk@g10code.com>
580         * card-util.c (generate_card_keys): Removed temporary kludge for
581         generate_keypair.
583         * call-agent.c (agent_scd_setattr): Add arg SERIALNO.
584         (agent_scd_genkey): Ditto.
585         (agent_scd_change_pin): Ditto.
587         * call-agent.h (struct agent_card_info_s): Updated to match the
588         one of 1.4.3.
590         * Makefile.am (LDADD): Include ZLIBS.
592         * gpgv.c: Removed stubs not anymore useful due to libgcrypt.
594 2006-05-22  Werner Koch  <wk@g10code.com>
596         * keyserver.c (keyidlist): Replaced mpi_get_keyid by v3_keyid.
597         * keydb.h (v3_keyid): Added.
599         * import.c (import): Better initialize KEYBLOCK as to quiet
600         compiler warning.
602         * skclist.c (random_is_faked): New.
604         * mainproc.c: Include pka.h.
606 2006-05-19  Werner Koch  <wk@g10code.com>
608         * misc.c (openpgp_pk_test_algo2): Need to use gcry_pk_algo_info
609         directly.
610         (string_count_chr): New.
612         * armor.c (parse_header_line): Use renamed function
613         length_sans_trailing_ws.
615         * options.h, gpg.c: Option --strict is not used thus removed code
616         but kept option.
618 2006-04-28  David Shaw  <dshaw@jabberwocky.com>  (wk)
619         
620         * keyserver.c (direct_uri_map): New.
621         (keyserver_spawn): Used here to add "_uri" to certain gpgkeys_xxx
622         helpers when the meaning is different if a path is provided (i.e. 
623         ldap).
624         (keyserver_import_cert): Show warning if there is a CERT
625         fingerprint, but no --keyserver set.
627         * keyserver.c: Fix build problem with platforms that stick libcurl
628         in a place not in the regular include search path.
630         * options.h, gpg.c (main): Add --enable-dsa2 and --disable-dsa2.
631         Defaults to disable.
633         * pkclist.c (algo_available): If --enable-dsa2 is set, we're
634         allowed to truncate hashes to fit DSA keys.
636         * sign.c (match_dsa_hash): New.  Return the best match hash for a
637         given q size.
638         (do_sign, hash_for, sign_file): When signing with a DSA key, if it
639         has q==160, assume it is an old DSA key and don't allow truncation
640         unless --enable-dsa2 is also set.  q!=160 always allows truncation
641         since they must be DSA2 keys.
642         (make_keysig_packet): If the user doesn't specify a
643         --cert-digest-algo, use match_dsa_hash to pick the best hash for
644         key signatures.
646         * gpg.c (print_mds): Add SHA-224.
647         * armor.c (armor_filter, parse_hash_header): Add SHA-224.
649         * sign.c (write_plaintext_packet):
650         Factor common literal packet setup code from here, to...
651         * encode.c (encode_simple): .. there.
652         
653         * main.h, plaintext.c (setup_plaintext_name): Here. New. Make sure
654         the literal packet filename field is UTF-8 encoded.
656         * options.h, gpg.c (main): Make sure --set-filename is UTF-8
657         encoded and note when filenames are already UTF-8.
659         * keyedit.c (menu_backsign): Give some more verbose errors when we
660         have no need to backsign.
662         * getkey.c (parse_auto_key_locate): Fix dupe-removal code.
664         * keyedit.c (menu_backsign): Allow backsigning even if the secret
665         subkey doesn't have a binding signature.
667         * armor.c (radix64_read): Don't report EOF when reading only a pad
668         (=) character.  The EOF actually starts after the pad.
670         * gpg.c (main): Make --export, --send-keys, --recv-keys,
671         --refresh-keys, and --fetch-keys follow their arguments from left
672         to right.  Suggested by Peter Palfrader.
674 2006-04-18  Werner Koch  <wk@g10code.com>
676         * tdbio.c (open_db, migrate_from_v2): Removed feature to migration
677         from old trustdb version 2.
679         * gpg.c, mainproc.c: Removed pipemode feature.
681         * status.c: Removed shared memory coprocess stuff
683         Merged with current gpg 1.4.3 code.
684         
685         * keygen.c, keyid.c, misc.c, openfile.c, verify.c, trustdb.c
686         * textfilter.c, tdbio.c, tdbdump.c, status.c, skclist.c, signal.c
687         * sign.c, sig-check.c, seskey.c, seckey-cert.c, revoke.c
688         * pubkey-enc.c, progress.c, plaintext.c, pkclist.c, photoid.c
689         * passphrase.c, parse-packet.c, mdfilter.c, mainproc.c
690         * keyserver.c, keyring.c, keylist.c, keyedit.c, keydb.c, kbnode.c
691         * import.c, getkey.c, gpgv.c, helptext.c, free-packet.c
692         * build-packet.c, cipher.c, compress.c, dearmor.c, decrypt.c
693         * delkey.c, encr-data.c, encode.c, exec.c, export.c
694         * gpg.c, armor.c: Updated from gnupg-1.4.3 and merged back gcry and
695         gnupg-1.9 related changes.
696         * trustdb.h, tdbio.h, status.h, photoid.h, packet.h, options.h
697         * main.h, keyserver-internal.h, keyring.h, keydb.h, filter.h
698         * exec.h: Ditto.
699         * global.h: Removed after merging constants with gpg.h.
700         * comment.c, pipemode.c: Removed.
701         * card-util.c: Updated from gnupg-1.4.3.
702         * compress-bz2.c: New.
703         
704 2005-06-15  Werner Koch  <wk@g10code.com>
706         * g10.c (print_hashline, add_group): Fixes for signed/unsigned
707         pointer mismatch warnings.
709 2005-06-01  Werner Koch  <wk@g10code.com>
711         * mkdtemp.c: Removed.
712         * exec.c: Include mkdtemp.h
714 2004-12-21  Werner Koch  <wk@g10code.com>
716         * gpgv.c, g10.c (main): Use default_hoemdir ().
718 2004-12-18  Werner Koch  <wk@g10code.com>
720         * gpg.h (map_assuan_err): Define in terms of
721         map_assuan_err_with_source.
723 2004-12-15  Werner Koch  <wk@g10code.com>
725         * Makefile.am (LDADD): Remove ZLIBS.
727 2004-10-22  Werner Koch  <wk@g10code.com>
729         * g10.c (main): Display a bit fat warning that this gpg should not
730         be used.
732         * card-util.c (fetch_url): Disable for gnupg 1.9
733         (card_generate_subkey): Ditto.
734         (card_store_subkey): Ditto.
736 2004-09-30  Werner Koch  <wk@g10code.com>
738         * gpgv.c (i18n_init): Always use LC_ALL.
740         * Makefile.am (LDADD): Adjusted for gettext 0.14.
742 2004-09-20  Werner Koch  <wk@g10code.com>
744         * keyedit.c (show_key_with_all_names): Print the card S/N.
746 2004-09-11  Moritz Schulte  <moritz@g10code.com>
748         * openfile.c (copy_options_file): Fixed last commit (added a `+').
750 2004-08-31  Werner Koch  <wk@g10code.de>
752         * openfile.c (copy_options_file): Use gpg-conf.skel. Better take
753         the length of SKELEXT into account, someone might make it larger.
754         * Makefile.am: Install options.skel as gpg-conf.skel.
756 2004-08-18  Marcus Brinkmann  <marcus@g10code.de>
758         * passphrase.c (agent_get_passphrase): Fix detection of gpg-agent
759         cancellation.
761 2004-07-01  Werner Koch  <wk@gnupg.org>
763         * card-util.c (change_login): Kludge to allow reading data from a
764         file.
765         (card_edit): Pass ARG_STRING to change_login.
766         (card_status): Print CA fingerprints.
767         (change_cafpr): New.
768         (card_edit): New command CAFPR.
770         * call-agent.h: Add members for CA fingerprints.
771         * call-agent.c (agent_release_card_info): Invalid them.
772         (learn_status_cb): Store them.
774 2004-04-30  Werner Koch  <wk@gnupg.org>
776         * g10.c (main) <gpgconf>: Use gpg.conf and not /dev/null as
777         default filename.
779 2004-04-28  Werner Koch  <wk@gnupg.org>
781         * card-util.c (card_edit): Remove PIN verification.
782         (generate_card_keys): New arg SERIALNO.  Do PIN verification here
783         after resetting forced_chv1.
785 2004-04-26  Werner Koch  <wk@gnupg.org>
787         * card-util.c (change_name): Check that the NAME is not too long.
788         (change_url): Likewise.
789         (change_login): Likewise.
791 2004-03-23  Werner Koch  <wk@gnupg.org>
793         * g10.c: New options --gpgconf-list, --debug-level and --log-file
794         (set_debug): Add arg DEBUG_LEVEL.
795         (main): Look at less and less version specific config files.  From
796         gnupg 1.3.
798 2004-02-17  Werner Koch  <wk@gnupg.org>
800         * call-agent.c (start_agent): Ignore an empty GPG_AGENT_INFO.
801         * passphrase.c (agent_open): Ditto.
803 2004-02-12  Werner Koch  <wk@gnupg.org>
805         * gpgv.c: Removed g10defs.h.
807         * Makefile.am: Include cmacros.am for common flags.
809 2004-02-11  Werner Koch  <wk@gnupg.org>
811         * openfile.c (try_make_homedir): Use GNUPG_DEFAULT_HOMEDIR.
812         * gpgv.c (main): Ditto.
813         * g10.c (main): Ditto.
815 2004-01-19  Moritz Schulte  <mo@g10code.com>
817         * keygen.c (do_generate_keypair): Print member fname, instead of
818         newfname, again.
819         (do_generate_keypair): Don't try to execute certain pieces of code
820         in case an error occured.
821         (gen_card_key): Don't print out a message, which is already
822         printed by do_generate_keypair().
824 2004-01-18  Moritz Schulte  <mo@g10code.com>
826         * keygen.c (do_generate_keypair): Print member fname, instead of
827         newfname.
829 2003-12-17  Werner Koch  <wk@gnupg.org>
831         * card-util.c (print_name): Fixed bad format string usage.
832         (print_isoname): Ditto.
834         * trustdb.c (check_regexp): s/exp/expr/.
836         * keyedit.c (trustsig_prompt): Removed a "> 255" term; it is
837         always false due to the data type.
838         
839         * passphrase.c (agent_get_passphrase): Use xasprintf and avoid
840         non-literal format strings.
842         * tdbio.c (upd_hashtable, drop_from_hashtable, lookup_hashtable):
843         Fixed log_error format string bugs.  Kudos to the now working
844         gcc-3.3 -Wformat-nonliteral and Florian Weimer's investigations in
845         gnupg 1.2.3.
847 2003-12-15  Werner Koch  <wk@gnupg.org>
849         * seckey-cert.c (protect_secret_key): Use gry_create_nonce for the
850         IV; there is not need for real strong random here and it even
851         better protect the random bits used for the key.
853 2003-11-16  Moritz Schulte  <mo@g10code.com>
855         * signal.c: Removed unused file.
857 2003-11-10  Moritz Schulte  <mo@g10code.com>
859         * Makefile.am (INCLUDES): Added: @LIBGCRYPT_CFLAGS@.
861 2003-10-25  Werner Koch  <wk@gnupg.org>
863         * call-agent.c (learn_status_cb, scd_genkey_cb): Fixed faulty use
864         of !spacep().
866 2003-10-20  Werner Koch  <wk@gnupg.org>
868         * card-util.c (card_edit): New command "passwd".  Add logic to
869         check the PIN in advance.
870         (card_status): Add new args to return the serial number.  Changed
871         all callers.
872         * call-agent.c (agent_scd_checkpin): New.
874 2003-10-08  Werner Koch  <wk@gnupg.org>
876         * call-agent.c (agent_scd_getattr): Don't clear the passed info
877         structure, so that it can indeed be updated.
879         * card-util.c (fpr_is_zero): New.
880         (generate_card_keys): New.
881         (card_edit): New command "generate".
882         * keygen.c (generate_keypair): New arg CARD_SERIALNO, removed call
883         to check_smartcard.
884         (check_smartcard,show_smartcard): Removed.
885         (show_sha1_fpr,fpr_is_zero): Removed.
887 2003-10-01  Werner Koch  <wk@gnupg.org>
889         * card-util.c: Tweaked to use this source also under 1.3. 
891 2003-09-30  Werner Koch  <wk@gnupg.org>
893         * keylist.c (print_card_serialno): New.
894         (list_keyblock_print): Use it here.
896         * card-util.c (toggle_forcesig): New.
897         (card_edit): New command "forcesig".
898         
899         * card-util.c (print_name, print_isoname): Use 0 and not LF fro
900         the max_n arg of tty_print_utf8_string2.
902         * call-agent.c (agent_scd_getattr): New.
903         (learn_status_cb): Release values before assignment so that it can
904         be used by getattr to update the structure.
905         
906         * card-util.c (change_pin): Simplified.  We now have only a PIN
907         and an Admin PIN.
909 2003-09-27  Werner Koch  <wk@gnupg.org>
911         * sign.c (do_sign): Removed disabled testcode.
913 2003-09-26  Timo Schulz  <twoaday@freakmail.de>
915         * card_status (card_status): Do not use fputs since the fp
916         parameter can be NULL. This fixes a segv.
917         
918 2003-09-24  Werner Koch  <wk@gnupg.org>
920         * card-util.c (print_isoname,card_status): Handle opt.with_colons.
921         (print_sha1_fpr_colon): New.
923 2003-09-23  Werner Koch  <wk@gnupg.org>
925         Merged most of David Shaw's changes in 1.3 since 2003-06-03.
926         
927         * Makefile.am: Include W32LIBS where appropriate.
929         * armor.c (parse_hash_header,armor_filter): Drop TIGER/192 support.
930         * g10.c (print_hex,print_mds): Ditto.
931         * pkclist.c (algo_available): Ditto.
933         * armor.c (armor_filter): Allow using --comment multiple times to
934         get multiple Comment header lines.  --no-comments resets list.
935         * options.h, g10.c (main): Ditto. Deprecate --default-comment in
936         favor of --no-comments.
938         * g10.c (main): Trim --help to commonly used options.  Remove -f.
940         * g10.c (main): Add --multifile as an alias to turn --encrypt into
941         --encrypt-files (plus --verify-files, --decrypt-files).  Error out
942         if --multifile is used with the commands that don't support it yet.
944         * encode.c (use_mdc), g10.c (main): Use RFC1991 and RFC2440
945         directly to check for MDC usability.  Do not set the force_mdc or
946         disable_mdc flags since there is no point any longer.
947         
948         * g10.c (main): Use "keyserver-url" instead of
949         "preferred-keyserver" for the sake of short and simple commands.
950         (add_keyserver_url): Clarify a few strings.  It's a
951         "preferred keyserver URL".
952         * keyedit.c (keyedit_menu): Ditto.
953         * sign.c (mk_notation_policy_etc): Ditto. 
955         * main.h, keygen.c (keygen_add_keyserver_url): Signature callback
956         for adding a keyserver URL.
957         * keyedit.c (keyedit_menu, menu_set_keyserver_url): New command to
958         set preferred keyserver to specified (or all) user IDs.
959         * build-packet.c (build_sig_subpkt): Set preferred keyserver flag
960         while building a preferred keyserver subpacket.
962         * keylist.c (show_policy_url, show_keyserver_url): URLs might be
963         UTF8.
965         * keyedit.c (menu_addrevoker): Fix leaking a few bytes.
967         * keyedit.c (show_key_with_all_names): Use list-option
968         show-long-keyid in main --edit-key display.
970         * keyedit.c (print_and_check_one_sig): Use list-option
971         show-long-keyid in --edit-key "check" function.
973         * passphrase.c (agent_send_all_options): Make use of $GPG_TTY.
975         * g10.c (main): Disable use-agent if passphrase-fd is given
976         later. Suggested by Kurt Garloff.
978         * exec.c, g10.c, gpgv.c, passphrase.c, photoid.c:
979         s/__MINGW32__/_WIN32/ to help building on native Windows
980         compilers.  Requested by Brian Gladman.  From Werner on stable
981         branch.
983         * options.h, g10.c (main): Add list-option
984         list-preferred-keyserver.
986         * keyedit.c (change_passphrase): When responding 'no' to the blank
987         passphrase question, re-prompt for a new passphrase.  This is bug
988         #202.
990         * mainproc.c (check_sig_and_print): Use two different preferred
991         keyserver displays - one if the key is not present (to tell the
992         user where to get the key), the other if it is present (to tell
993         the user where the key can be refreshed).
995         * packet.h, parse-packet.c (parse_signature): Set flag if a
996         preferred keyserver is present.
998         * keylist.c (list_keyblock_print): Show keyserver url in listings
999         with list-option show-keyserver-url.
1001         * mainproc.c (check_sig_and_print): Get the uid validity before
1002         printing any sig results to avoid munging the output with trustdb
1003         warnings.
1005         * g10.c (main): Don't include --show-keyring in --help as it is
1006         deprecated.
1008         * options.skel: Note that keyserver.pgp.com isn't synchronized,
1009         and explain the roundrobin a bit better.
1011         * sig-check.c (check_key_signature2), import.c (import_one,
1012         import_revoke_cert, chk_self_sigs, delete_inv_parts,
1013         collapse_uids, merge_blocks): Make much quieter during import of
1014         slightly munged, but recoverable, keys. Use log_error for
1015         unrecoverable import failures.
1017         * keyring.c (keyring_rebuild_cache): Comment.
1019         * sign.c (mk_notation_and_policy): Making a v3 signature with
1020         notations or policy urls is an error, not an info (i.e. increment
1021         the errorcount). Don't print the notation or policy url to stdout
1022         since it can be mixed into the output stream when piping and munge
1023         the stream.
1025         * packet.h, sig-check.c (signature_check2, do_check,
1026         do_check_messages): Provide a signing-key-is-revoked flag.  Change
1027         all callers.
1029         * status.h, status.c (get_status_string): New REVKEYSIG status tag
1030         for a good signature from a revoked key.
1032         * mainproc.c (do_check_sig, check_sig_and_print): Use it here.
1034         * import.c (import_revoke_cert, merge_blocks, merge_sigs): Compare
1035         actual signatures on import rather than using keyid or class
1036         matching.  This does not change actual behavior with a key, but
1037         does mean that all sigs are imported whether they will be used or
1038         not.
1040         * parse-packet.c (parse_signature): Don't give "signature packet
1041         without xxxx" warnings for experimental pk algorithms.  An
1042         experimental algorithm may not have a notion of (for example) a
1043         keyid (i.e. PGP's x.509 stuff).
1045         * options.h, g10.c (main), keylist.c (list_keyblock_print),
1046         keyedit.c (print_and_check_one_sig): New "show-sig-expire"
1047         list-option to show signature expiration dates (if any).
1049         * options.h, g10.c (main, add_keyserver_url): Add
1050         --sig-preferred-keyserver to implant a "where to get my key"
1051         subpacket into a signature.
1053         * sign.c (mk_notation_and_policy): Rename to
1054         mk_notation_policy_etc and add preferred keyserver support for
1055         signatures.
1057         * keygen.c (do_add_key_flags): Don't set the certify flag for
1058         subkeys.
1059         (ask_algo): Provide key flags for DSA, Elgamal_e, and Elgamal
1060         subkeys.
1061         (generate_keypair): Provide key flags for the default DSA/Elgamal
1062         keys.
1064         * sig-check.c (signature_check, signature_check2,
1065         check_key_signature, check_key_signature2): Allow passing NULLs
1066         for unused parameters in the x2 form of each function to avoid the
1067         need for dummy variables. getkey.c, mainproc.c: Change all
1068         callers.
1070         * trustdb.h, trustdb.c (read_trust_options): New.  Returns items
1071         from the trustdb version record.
1072         * keylist.c (public_key_list): Use it here for the new "tru"
1073         record.
1074         * gpgv.c (read_trust_options): Stub.
1076         * keyedit.c (show_key_with_all_names): Use list-option
1077         show-validity in --edit-key interface as well.
1079         * options.h, g10.c (main), mainproc.c (check_sig_and_print): Add
1080         verify-options "show-validity" and "show-long-keyid" to show
1081         trustdb validity and long keyids during (file) signature
1082         verification.
1084         * packet.h, main.h, sig-check.c (signature_check2)
1085         (check_key_signature2, do_check): If ret_pk is set, fill in the pk
1086         used to verify the signature.  Change all callers in getkey.c,
1087         mainproc.c, and sig-check.c.
1089         * keylist.c (list_keyblock_colon): Use the ret_pk from above to
1090         put the fingerprint of the signing key in "sig" records during a
1091         --with-colons --check-sigs.  This requires --no-sig-cache as well
1092         since we don't cache fingerprints.
1094         * parse-packet.c (parse_signature): No need to reserve 8 bytes for
1095         the unhashed signature cache any longer.
1097         * misc.c (pct_expando): Add two new expandos - signer's
1098         fingerprint (%g), and signer's primary fingerprint (%p).
1100         * g10.c (main): Add --rfc2440 alias for --openpgp since in a few
1101         months, they won't be the same thing.
1103         * keyserver.c (parse_keyserver_uri): Accept "http" as an alias for
1104         "hkp", since it is occasionally written that way.
1105         (keyserver_spawn): Use ascii_isspace to avoid locale issues.
1107         * keygen.c (ask_user_id): Make --allow-freeform-uid apply to the
1108         email field as well as the name field, and allow mixing fields
1109         when it is set.
1111         * trustdb.c (validate_one_keyblock): Certifications on revoked or
1112         expired uids do not count in the web of trust.
1114         * signal.c (init_one_signal, pause_on_sigusr, do_block): Only use
1115         sigprocmask() if we have sigset_t, and only use sigaction() if we
1116         have struct sigaction.  This is for Forte c89 on Solaris which
1117         seems to define only the function call half of the two pairs by
1118         default.
1119         (pause_on_sigusr): Typo.
1120         (do_block): If we can't use sigprocmask() and sigset_t, try to get
1121         the number of signals from NSIG as well as MAXSIG, and if we
1122         can't, fail with an explanation.
1124         * signal.c, tdbio.c: Comment out the transaction code.  It was not
1125         used in this version, and was causing some build problems on
1126         quasi-posix platforms (Solaris and Forte c89).
1128         * keylist.c (list_keyblock_colon): Don't include validity values
1129         when listing secret keys since they can be incorrect and/or
1130         misleading.  This is a temporary kludge, and will be handled
1131         properly in 1.9/2.0.
1133         * mainproc.c (check_sig_and_print): Only show the "key available
1134         from" preferred keyserver line if the key is not currently
1135         present.
1137         * keyedit.c (sign_uids): Do not sign expired uids without --expert
1138         (same behavior as revoked uids).  Do not allow signing a user ID
1139         without a self-signature.  --expert overrides.  Add additional
1140         prompt to the signature level question.
1141         (menu_expire): When changing expiration dates, don't replace
1142         selfsigs on revoked uids since this would effectively unrevoke
1143         them. There is also no point in replacing expired selfsigs.  This
1144         is bug #181
1146         * g10.c (add_notation_data): Make sure that only ascii is passed
1147         to iscntrl.  Noted by Christian Biere.
1148         * getkey.c (classify_user_id2): Replaced isspace by spacep
1149         * keygen.c (ask_user_id): Ditto.
1150         (get_parameter_algo): Ditto.
1151         * keyedit.c (keyedit_menu): Ditto.
1152         * tdbdump.c (import_ownertrust): Ditto.  s/isxdigit/hexdigitp/.
1153         * revoke.c (ask_revocation_reason): 
1154         * keyserver.c (keyserver_spawn): Dito.
1156         * parse-packet.c (parse): Disallow old style partial length for
1157         all key material packets to avoid possible corruption of keyrings.
1159         * import.c (import_keys_internal): Invalidate the cache so that
1160         the file descriptor gets closed.  Fixes bug reported by Juan
1161         F. Codagnone.
1163         * options.h, g10.c (main), main.h, keylist.c (show_keyserver_url),
1164         mainproc.c (check_sig_and_print), parse-packet.c (dump_sig_subpkt,
1165         parse_one_sig_subpkt, can_handle_critical): Add read-only support
1166         for preferred keyserver subpackets.  They're basically policy URLs
1167         with a different name.  Add a verify-option
1168         "show-preferred-keyserver" to turn them on and off (on by default,
1169         as per stable branch).
1171         * g10.c (main): Add "--set-notation" as alias to "--notation-data"
1172         this is to make things consistent with --set-policy-url meaning
1173         both sigs and certs.
1175         * options.h, g10.c (main), keylist.c (list_keyblock_print): Add
1176         "show-validity" and "show-long-keyid" list-options.
1178         * gpgv.c (get_validity, trust_value_to_string): Stubs.
1180         * g10.c (main): Use SAFE_VERSION instead of VERSION in the
1181         version-specific gpg.conf file so it can be overridden on RISCOS.
1183         * keyedit.c (show_key_with_all_names): Fix assertion failure when
1184         using toggle to see a secret key.  Reported by Maxim Britov.
1187 2003-09-22  Timo Schulz  <twoaday@freakmail.de>
1189         * card-util.c (card_status): Free pk in case of an error
1190         and return if the card is no OpenPGP card.
1191         
1192 2003-09-18  Werner Koch  <wk@gnupg.org>
1194         * g10.c: New command --card-edit.
1195         * card-util.c (card_status): Use tty_fprintf for all output.
1196         (print_sha1_fpr, print_isoname): Ditto.
1197         (get_one_name,change_name, change_url, change_login,change_lang)
1198         (change_sex): New; taken from keygen.c.
1199         * keygen.c (smartcard_get_one_name, smartcard_change_name) 
1200         (smartcard_change_url, smartcard_change_login_data) 
1201         (smartcard_change_lang, smartcard_change_sex): Removed.
1202         (check_smartcard): Removed most menu items.
1204 2003-09-06  Werner Koch  <wk@gnupg.org>
1206         * misc.c (openpgp_pk_algo_usage): Allow AUTH where SIGN is allowed.
1208         * keygen.c (ask_passphrase): No need to allocated S2K in secure
1209         memory.
1211 2003-09-04  Werner Koch  <wk@gnupg.org>
1213         * keygen.c (do_add_key_flags, parse_parameter_usage) 
1214         (do_generate_keypair): Add support the proposed AUTH key flag.
1215         * getkey.c (fixup_uidnode, merge_selfsigs_main) 
1216         (merge_selfsigs_subkey, premerge_public_with_secret): Ditto.
1217         * keylist.c (print_capabilities): Ditto.
1219 2003-08-25  Timo Schulz  <twoaday@freakmail.de>
1221         * pkglue.c (mpi_from_sexp): New. Used to factor out
1222         some common code.
1223         
1224 2003-08-24  Werner Koch  <wk@gnupg.org>
1226         * keygen.c (do_generate_keypair): Print a reminder to use --gen-revoke.
1228 2003-08-18  Timo Schulz  <twoaday@freakmail.de>
1230         * encode.c (encode_sesskey): Checked the code and removed
1231         the warning since all compatibility checks with PGP succeeded.
1232         * mainproc.c (symkey_decrypt_sesskey): Better check for the
1233         algorithm and check the return values of some functions.
1234         * mdc.c (use_mdc): Simplified.
1235         
1236 2003-08-07  Werner Koch  <wk@gnupg.org>
1238         * pkglue.c (pk_sign): Fix last change.
1239         (pk_verify): Check for valid DATA array so that we don't segv in
1240         Libgcrypt.
1241         (pk_verify): Ditto.
1243 2003-08-06  Werner Koch  <wk@gnupg.org>
1245         * pkglue.c (pk_sign): Allow signing using RSA.
1247 2003-08-05  Werner Koch  <wk@gnupg.org>
1249         * Makefile.am (install-data-local): Dropped check for the ancient
1250         gpgm tool.
1251         (bin_PROGRAMS): Renamed gpg to gpg2 and gpgv to gpgv2.  This is so
1252         that it won't conflict with the current stable version of gpg.
1254         * pkglue.c (pk_check_secret_key): New.
1255         * seckey-cert.c (do_check): Reenable this test here again.
1257         * g10.c (main): Add command -K as an alias for
1258         --list-secret-keys. Command "-k" is now an alias to --list-keys.
1259         Remove special treatment of -kv and -kvv.
1260         (set_cmd): Ditto.
1261         (main): Strip a "-cvs" suffix when testing for a version specific
1262         config file.
1264         * status.h, status.c, g10.c [USE_SHM_COPROCESSING]: Removed.  This
1265         is not any longer available.
1267 2003-07-29  Werner Koch  <wk@gnupg.org>
1269         * g10.c (main): Add secmem features and set the random seed file.
1270         (g10_exit): Update the random seed file.
1272         * parse-packet.c (parse_signature,read_protected_v3_mpi)
1273         (parse_key): Fixed use of mpi_set_opaque.
1274         * keygen.c (gen_card_key): Ditto.
1276 2003-07-28  Werner Koch  <wk@gnupg.org>
1278         * status.c (progress_cb): Adjusted for use with Libcgrypt.
1279         (set_status_fd): Register that callback.
1281         * keygen.c (smartcard_change_login_data): New.
1282         (smartcard_change_lang): New.
1283         (smartcard_change_sex): New.
1284         (check_smartcard): Add menu entries to edit the above.
1285         (gen_elg,gen_dsa,gen_rsa): Reimplemented in terms of Libgcrypt.
1286         (genhelp_protect, genhelp_factors, key_from_sexp): New.
1287         * comment.c (make_comment_node_from_buffer): New.
1288         (make_comment_node): Reimplemented in terms of above.
1290 2003-07-27  Werner Koch  <wk@gnupg.org>
1292         Adjusted for gcry_mpi_print and gcry_mpi_scan API change.
1294 2003-07-24  Werner Koch  <wk@gnupg.org>
1296         * g10.c: New command --card-status.
1297         * card-util.c (card_status): New.
1298         * call-agent.c (learn_status_cb): Parse more information.
1300         * keylist.c (print_pubkey_info): Add FP arg for optional printing
1301         to a stream.  Changed all callers.
1303 2003-07-23  Werner Koch  <wk@gnupg.org>
1305         * keygen.c (generate_keypair): Create an AUTHKEYTYPE entry for cards.
1306         (do_generate_keypair): Abd generate the authkey.
1307         (check_smartcard): Changed menu accordingly.
1309 2003-07-22  Werner Koch  <wk@gnupg.org>
1311         * g10.c: New command --change-pin.
1312         * card-util.c: New.
1313         * call-agent.c (agent_scd_change_pin): New.
1314         (agent_release_card_info): New.
1315         * keygen.c (check_smartcard): Use it here.
1317 2003-07-16  Werner Koch  <wk@gnupg.org>
1319         * export.c (parse_export_options): New option sexp-format.
1320         (export_seckeys,export_secsubkeys): Check sexp-format option.
1321         (do_export): Ignore armor for sexp format.
1322         (do_export_stream): Handle sexp-format.
1323         (write_sexp_line,write_sexp_keyparm, build_sexp_seckey): New.
1324         (build_sexp): New.
1326 2003-07-03  Werner Koch  <wk@gnupg.org>
1328         * options.h (DBG_CIPHER): Reintroduced it. 
1329         * seskey.c (encode_session_key): Debug output of the session key.
1331         * pubkey-enc.c (get_it): Handle card case.
1332         * call-agent.c (agent_scd_pkdecrypt): New.
1333         * pkglue.c (pk_encrypt): Add RSA support.
1335         * g10.c (main): Default to --use-agent.
1337         * keygen.c (show_smartcard): Print info about the public key.
1338         (check_smartcard): Check for existing key here.
1339         (gen_card_key): And not anymore here.
1340         (fpr_is_zero): New.
1341         (generate_keypair): Generate both keys for a card.
1342         (smartcard_change_url): Nw.
1344 2003-07-02  Werner Koch  <wk@gnupg.org>
1346         * seckey-cert.c (is_secret_key_protected): Let it handle mode 1002.
1348 2003-07-01  Werner Koch  <wk@gnupg.org>
1350         * keygen.c (gen_card_key): Obviously we should use the creation
1351         date received from SCDAEMON, so that the fingerprints will match.
1352         * sign.c (do_sign): Pass the serialno to the sign code.
1353         * keyid.c (serialno_and_fpr_from_sk): New.
1355 2003-06-30  Werner Koch  <wk@gnupg.org>
1357         * call-agent.h (agent_card_info_s): Add field serialno.
1358         * call-agent.c (store_serialno): New.
1359         (learn_status_cb): Store the serial number.
1360         * keygen.c (gen_card_key): Store the serial number
1361         (check_smartcard): New argument to return the serial number.
1362         (generate_keypair): Get the serial number from check_smartcard and
1363         store it as a parameter.
1364         * parse-packet.c (parse_key): Use the protect.iv field to store the
1365         serial number.
1366         * build-packet.c (do_secret_key): Write the serial number.
1368 2003-06-27  Werner Koch  <wk@gnupg.org>
1370         * seckey-cert.c (check_secret_key): Bypass the unprotection for
1371         mode 1002.
1372         * sign.c (do_sign): Handle card case (i.e. mode 1002).
1374 2003-06-26  Werner Koch  <wk@gnupg.org>
1376         * build-packet.c (do_secret_key): Implement special protection
1377         mode 1002.
1378         * parse-packet.c (parse_key): Likewise.
1380         * keygen.c (smartcard_gen_key): New.
1381         * call-agent.c (agent_scd_setattr): New.
1383 2003-06-24  Werner Koch  <wk@gnupg.org>
1385         * Makefile.am: Removed signal.c
1387         * g10.c (emergency_cleanup): New.
1388         (main): Use gnupg_init_signals and register malloc for assuan.
1390 2003-06-23  Werner Koch  <wk@gnupg.org>
1392         * keyid.c (do_fingerprint_md): Made it work again.
1394 2003-06-19  Werner Koch  <wk@gnupg.org>
1396         Fixed all "==" comparisons against error code constants to use
1397         gpg_err_code().
1399         * import.c (import_secret_one): 
1400         (import_revoke_cert): 
1401         (chk_self_sigs): 
1403         * misc.c (openpgp_md_map_name): Check also for the Hx format.
1404         (openpgp_cipher_map_name): Check also for the Sx format.
1405         (pubkey_get_npkey): Adjusted for changed gcrypt API.
1406         (pubkey_get_nskey): Ditto.
1407         (pubkey_get_nsig): Ditto.
1408         (pubkey_get_nenc): Ditto.
1410 2003-06-18  Werner Koch  <wk@gnupg.org>
1412         Finished the bulk of changes for gnupg 1.9.  This included
1413         switching to libgcrypt functions, using shared error codes from
1414         libgpg-error, replacing the old functions we used to have in
1415         ../util by those in ../jnlib and ../common, renaming the malloc
1416         functions and a couple of types.  Note, that not all changes are
1417         listed below becuause they are too similar and done at far too
1418         many places.  As of today the code builds using the current
1419         libgcrypt from CVS but it is very unlikely that it actually works.
1420         
1421         * sig-check.c (cmp_help): Removed.  Was never used.
1423         * pkglue.c: New. Most stuff taken from gnupg 1.1.2.
1424         * pkglue.h: New.
1426         * misc.c (pull_in_libs): Removed.
1428         * keygen.c (count_chr): New.
1429         (ask_user_id): Removed faked RNG support.
1431         * misc.c (openpgp_md_map_name,openpgp_cipher_map_name)
1432         (openpgp_pk_map_name): New.
1434         * skclist.c (build_sk_list): Removed faked RNG support.
1435         (is_insecure): Removed.
1437         * comment.c (make_mpi_comment_node): Use gcry MPI print function.
1439         * keyid.c (v3_keyid): New.
1441         * misc.c (mpi_write,mpi_write_opaque,mpi_read,mpi_read_opaque)
1442         (mpi_print): New.  Taken from gnupg 1.1.2.
1443         (checksum_mpi): Replaced by implementation from 1.1.2.
1445         * g10.c (my_strusage): Renamed from strusage and return NULL
1446         instead calling a default function.
1447         (add_to_strlist2): New.  Taken from ../util/strgutil.c of gnupg 1.2.
1449         * plaintext.c (handle_plaintext): New arg CREATE_FILE to cope with
1450         the fact that gpg-error does not have this error code anymore.
1452         * mainproc.c (symkey_decrypt_sesskey): Ditto.
1454         * seskey.c (make_session_key): Adjusted for use with libgcrypt.
1455         (encode_session_key): Ditto.
1456         (do_encode_md): Ditto.
1457         (encode_md_value): Ditto.
1459         * keyring.c: Use libgpg-error instead of READ_ERROR etc.
1461         * g10.c: Adjusted all algorithm name/id mapping functions.
1462         (set_debug): Pass MPI and CRYPTO debug values to libgcrypt.
1464         * Makefile.am (INCLUDES): Define LOCALEDIR and the default error
1465         source.
1467         * g10.c (i18n_init): s/G10_LOCALEDIR/LOCALEDIR/.
1469         Renamed m_alloc et al to xmalloc et al.
1470         s/g10_errstr/gpg_strerror/
1471         s/MPI/gcry_mpi_t/
1472         Adjusted all md_open calls to the libgcrypt API.
1473         
1474         * build-packet.c (do_comment): Return error code from iobuf write
1475         function.
1476         (do_user_id): Ditto.
1477         (do_public_key): Ditto.
1479         * Makefile.am: Add new files, link gpg with libgpg-error.
1480         * g10.c, options.h: New option --agent-program.
1481         * call-agent.c: New.
1482         * gpg.h, call-agent.h: New.
1484 2003-06-03  David Shaw  <dshaw@jabberwocky.com>
1486         * options.h, g10.c (main), keylist.c (list_keyblock_print): Add
1487         "show-validity" and "show-long-keyid" list-options.
1489         * gpgv.c (get_validity, trust_value_to_string): Stubs.
1491         * g10.c (main): Use SAFE_VERSION instead of VERSION in the
1492         version-specific gpg.conf file so it can be overridden on RISCOS.
1494 2003-06-01  David Shaw  <dshaw@jabberwocky.com>
1496         * g10.c (main), keylist.c (show_policy_url, show_notation),
1497         mainproc.c (check_sig_and_print): Emulate the old policy and
1498         notation behavior (display by default).  Send to status-fd whether
1499         it is displayed on the screen or not.
1501         * g10.c (main): Since we now have some options in devel that won't
1502         work in a stable branch gpg.conf file, try for a version-specific
1503         gpg.conf-VERSION file before falling back to gpg.conf.
1505         * main.h, options.h: Move various option flags to options.h.
1507 2003-05-31  David Shaw  <dshaw@jabberwocky.com>
1509         * mainproc.c (check_sig_and_print), main.h, keylist.c
1510         (show_policy, show_notation): Collapse the old print_notation_data
1511         into show_policy() and show_notation() so there is only one
1512         function to print notations and policy URLs.
1514         * options.h, main.h, g10.c (main), keyedit.c
1515         (print_and_check_one_sig), keylist.c (list_one,
1516         list_keyblock_print), pkclist.c (do_edit_ownertrust), sign.c
1517         (mk_notation_and_policy): New "list-options" and "verify-options"
1518         commands.  These replace the existing
1519         --show-photos/--no-show-photos,
1520         --show-notation/--no-show-notation,
1521         --show-policy-url/--no-show-policy-url, and --show-keyring
1522         options.  The new method is more flexible since a user can specify
1523         (for example) showing photos during sig verification, but not in
1524         key listings.  The old options are emulated.
1526         * main.h, misc.c (parse_options): New general option line
1527         parser. Fix the bug in the old version that did not handle report
1528         syntax errors after a valid entry.
1530         * import.c (parse_import_options), export.c
1531         (parse_export_options): Call it here instead of duplicating the
1532         code.
1534 2003-05-30  David Shaw  <dshaw@jabberwocky.com>
1536         * keylist.c (list_one): Don't show the keyring filename when in
1537         --with-colons mode.  Actually translate "Keyring" string.
1539         * mainproc.c (proc_tree): We can't currently handle multiple
1540         signatures of different classes or digests (we'd pretty much have
1541         to run a different hash context for each), but if they are all the
1542         same, make an exception.  This is Debian bug #194292.
1544         * sig-check.c (check_key_signature2): Make string translatable.
1546         * packet.h, getkey.c (fixup_uidnode): Mark real primary uids
1547         differently than assumed primaries.
1549         * keyedit.c (no_primary_warning): Use the differently marked
1550         primaries here in a new function to warn when an --edit-key
1551         command might rearrange the self-sig dates enough to change which
1552         uid is primary.
1553         (menu_expire, menu_set_preferences): Use no_primary_warning()
1554         here.
1556         * Makefile.am: Use @DLLIBS@ for -ldl.
1558 2003-05-26  David Shaw  <dshaw@jabberwocky.com>
1560         * getkey.c (premerge_public_with_secret): Made "no secret subkey
1561         for" warning a verbose item and translatable. (From wk on stable
1562         branch)
1564         * sig-check.c (check_key_signature2): Made "no subkey for subkey
1565         binding packet" a verbose item instead of a !quiet one.  There are
1566         too many garbled keys out in the wild. (From wk on stable branch)
1568         * filter.h: Remove const from WHAT. (From wk on stable branch)
1570         * progress.c (handle_progress): Store a copy of
1571         NAME. (progress_filter): Release WHAT, make sure not to print a
1572         NULL WHAT. (From wk on stable branch)
1574         * openfile.c (open_sigfile): Adjust free for new progress
1575         semantics. (From wk on stable branch)
1577         * plaintext.c (ask_for_detached_datafile): Don't dealloc
1578         pfx->WHAT. (From wk on stable branch)
1580         * seckey-cert.c (do_check): Issue the RSA_OR_IDEA status when the
1581         cipher algo is IDEA to make it easier to track down the
1582         problem. (From twoaday on stable branch)
1583         
1584 2003-05-24  David Shaw  <dshaw@jabberwocky.com>
1586         * armor.c, g10.c, kbnode.c, misc.c, pkclist.c, sign.c,
1587         build-packet.c, getkey.c, keydb.c, openfile.c, plaintext.c,
1588         status.c, gpgv.c, keygen.c, options.h, sig-check.c, tdbio.h,
1589         encode.c, mainproc.c, parse-packet.c, signal.c, textfilter.c: Edit
1590         all preprocessor instructions to remove whitespace before the '#'.
1591         This is not required by C89, but there are some compilers out
1592         there that don't like it.
1594 2003-05-21  David Shaw  <dshaw@jabberwocky.com>
1596         * trustdb.h, trustdb.c (is_disabled), gpgv.c (is_disabled): Rename
1597         is_disabled to cache_disabled_value, which now takes a pk and not
1598         just the keyid. This is for speed since there is no need to
1599         re-fetch a key when we already have that key handy.  Cache the
1600         result of the check so we don't need to hit the trustdb more than
1601         once.
1602         
1603         * getkey.c (skip_disabled): New function to get a pk and call
1604         is_disabled on it. (key_byname): Use it here.
1605         
1606         * packet.h, getkey.c (skip_disabled), keylist.c
1607         (print_capabilities): New "pk_is_disabled" macro to retrieve the
1608         cached disabled value if available, and fill it in via
1609         cache_disabled_value if not available.
1611         * trustdb.c (get_validity): Cache the disabled value since we have
1612         it handy and it might be useful later.
1614         * parse-packet.c (parse_key): Clear disabled flag when parsing a
1615         new key.  Just in case someone forgets to clear the whole key.
1617         * getkey.c (merge_selfsigs_main): Add an "if all else fails" path
1618         for setting a single user ID primary when there are multiple set
1619         primaries all at the same second, or no primaries set and the most
1620         recent user IDs are at the same second, or no signed user IDs at
1621         all. This is arbitrary, but deterministic.
1623         * exec.h, photoid.h: Add copyright message.
1625         * keylist.c (list_keyblock_print): Don't dump attribs for
1626         revoked/expired/etc uids for non-colon key listings.  This is for
1627         consistency with --show-photos.
1629         * main.h, keylist.c (dump_attribs), mainproc.c
1630         (check_sig_and_print): Dump attribs if --attrib-fd is set when
1631         verifying signatures.
1632         
1633         * g10.c (main): New --gnupg option to disable the various
1634         --openpgp, --pgpX, etc. options.  This is the same as --no-XXXX
1635         for those options.
1637         * revoke.c (ask_revocation_reason): Clear old reason if user
1638         elects to repeat question.  This is bug 153.
1640         * keyedit.c (sign_uids): Show keyid of the key making the
1641         signature.
1643 2003-05-21  Werner Koch  <wk@gnupg.org>
1645         * progress.c (handle_progress)
1646         * sign.c (write_plaintext_packet)
1647         * encode.c (encode_simple,encode_crypt): Make sure that a filename
1648         of "-" is considered to be stdin so that iobuf_get_filelength
1649         won't get called.  This fixes bug 156 reported by Gregery Barton.
1651 2003-05-02  David Shaw  <dshaw@jabberwocky.com>
1653         * packet.h, build-packet.c (build_sig_subpkt), export.c
1654         (do_export_stream), import.c (remove_bad_stuff, import),
1655         parse-packet.c (dump_sig_subpkt, parse_one_sig_subpkt): Remove
1656         vestigal code for the old sig cache subpacket.  This wasn't
1657         completely harmless as it caused subpacket 101 to disappear on
1658         import and export.
1660         * options.h, armor.c, cipher.c, g10.c, keyedit.c, pkclist.c,
1661         sign.c, encode.c, getkey.c, revoke.c: The current flags for
1662         different levels of PGP-ness are massively complex.  This is step
1663         one in simplifying them. No functional change yet, just use a
1664         macro to check for compliance level.
1666         * sign.c (sign_file): Fix bug that causes spurious compression
1667         preference warning.
1669         * sign.c (clearsign_file): Fix bug that prevents proper warning
1670         message from appearing when clearsigning in --pgp2 mode with a
1671         non-v3 RSA key.
1673         * main.h, misc.c (compliance_option_string, compliance_string,
1674         compliance_failure), pkclist.c (build_pk_list), sign.c (sign_file,
1675         clearsign_file), encode.c (encode_crypt,
1676         write_pubkey_enc_from_list): New functions to put the "this
1677         message may not be usable...." warning in one place.
1679         * options.h, g10.c (main): Part two of the simplification.  Use a
1680         single enum to indicate what we are compliant to (1991, 2440,
1681         PGPx, etc.)
1683         * g10.c (main): Show errors for failure in export, send-keys,
1684         recv-keys, and refresh-keys.
1686         * options.h, g10.c (main): Give algorithm warnings for algorithms
1687         chosen against the --pgpX and --openpgp rules.
1689         * keydb.h, pkclist.c (algo_available): Make TIGER192 invalid in
1690         --openpgp mode.
1692         * sign.c (sign_file), pkclist.c (algo_available): Allow passing a
1693         hint of 0.
1695 2003-05-01  David Shaw  <dshaw@jabberwocky.com>
1697         * tdbio.c (create_version_record): Only create new trustdbs with
1698         TM_CLASSIC or TM_PGP.
1700         * trustdb.h, trustdb.c (trust_string, get_ownertrust_string,
1701         get_validity_string, ask_ownertrust, validate_keys), pkclist.c
1702         (do_edit_ownertrust): Rename trust_string to trust_value_to_string
1703         for naming consistency.
1705         * trustdb.h, trustdb.c (string_to_trust_value): New function to
1706         translate a string to a trust value.
1708         * g10.c (main): Use string_to_trust_value here for
1709         --force-ownertrust.
1710         
1711         * options.h, g10.c (main), trustdb.c (trust_model_string,
1712         init_trustdb, check_trustdb, update_trustdb, get_validity,
1713         validate_one_keyblock): An "OpenPGP" trust model is misleading
1714         since there is no official OpenPGP trust model.  Use "PGP"
1715         instead.
1717 2003-04-30  David Shaw  <dshaw@jabberwocky.com>
1719         * build-packet.c (build_sig_subpkt): Comments.
1721         * exec.c (exec_write): Cast NULL to void* to properly terminate
1722         varargs list.
1724         * keyedit.c (show_key_with_all_names): Just for safety, catch an
1725         invalid pk algorithm.
1727         * sign.c (make_keysig_packet): Crucial that the call to mksubpkt
1728         comes LAST before the calls to finalize the sig as that makes it
1729         possible for the mksubpkt function to get a reliable pointer to
1730         the subpacket area.
1732         * pkclist.c (do_we_trust_pre): If an untrusted key was chosen by a
1733         particular user ID, use that ID as the one to ask about when
1734         prompting whether to use the key anyway.
1735         (build_pk_list): Similar change here when adding keys to the
1736         recipient list.
1738         * trustdb.c (update_validity): Fix bug that prevented more than
1739         one validity record per trust record.
1740         (get_validity): When retrieving validity for a (user) supplied
1741         user ID, return the validity for that user ID only, and do not
1742         fall back to the general key validity.
1743         (validate_one_keyblock): Some commentary on whether
1744         non-self-signed user IDs belong in the web of trust (arguably,
1745         they do).
1747 2003-04-27  David Shaw  <dshaw@jabberwocky.com>
1749         * g10.c (main): Add --no-textmode.
1751         * export.c (do_export_stream), keyedit.c (show_key_with_all_names,
1752         menu_addrevoker), mainproc.c (check_sig_and_print), photoid.c
1753         (show_photos), sign.c (mk_notation_and_policy), trustdb.c
1754         (get_validity, reset_trust_records, validate_keys): Make some
1755         strings translatable.
1757         * mainproc.c (check_sig_and_print): Show digest algorithm and sig
1758         class when verifying a sig with --verbose on, and add version, pk
1759         and hash algorithms and sig class to VALIDSIG.
1760         
1761         * parse-packet.c (enum_sig_subpkt): Make a warning message a
1762         --verbose warning message since we don't need to warn every time
1763         we see an unknown critical (we only need to invalidate the
1764         signature).
1766         * trustdb.c (init_trustdb): Check the trustdb options even with
1767         TM_AUTO since the auto may become TM_CLASSIC or TM_OPENPGP.
1769 2003-04-26  David Shaw  <dshaw@jabberwocky.com>
1771         * sign.c (do_sign): Show the hash used when making a signature in
1772         verbose mode.
1774         * tdbio.h, tdbio.c (tdbio_read_model): New function to return the
1775         trust model used in a given trustdb.
1777         * options.h, g10.c (main), trustdb.c (init_trustdb, check_trustdb,
1778         update_trustdb): Use tdbio_read_model to implement an "auto" trust
1779         model which is set via the trustdb.
1781 2003-04-23  David Shaw  <dshaw@jabberwocky.com>
1783         * import.c (import_revoke_cert): Remove ultimate trust when
1784         revoking an ultimately trusted key.
1786         * keyedit.c (sign_uids): Allow replacing expired signatures.
1787         Allow duplicate signatures with --expert.
1789         * pkclist.c (check_signatures_trust): Don't display a null
1790         fingerprint when checking a signature with --always-trust enabled.
1792         * filter.h (progress_filter_context_t), progress.c
1793         (handle_progress), plaintext.c (ask_for_detached_datafile,
1794         hash_datafiles): Fix compiler warnings.  Make "what" constant.
1796         * build-packet.c (do_plaintext): Do not create invalid literal
1797         packets with >255-byte names.
1799 2003-04-15  Werner Koch  <wk@gnupg.org>
1801         * Makefile.am (AM_CFLAGS): Make use of AM_CFLAGS and AM_LDFLAGS.
1803         * g10.c, options.h: New option --enable-progress-filter.
1804         * progress.c (handle_progress): Make use of it.
1806 2003-04-15  Marcus Brinkmann  <marcus@g10code.de>
1808         * progress.c: New file.
1809         * Makefile.am (common_source): Add progress.c.
1810         * filter.h (progress_filter_context_t): New type.
1811         (progress_filter, handle_progress): New prototypes.
1812         * main.h (open_sigfile): New argument for prototype.
1813         * openfile.c (open_sigfile): New argument to install progress
1814         filter.
1815         * encode.c (encode_simple): New variable PFX.  Register
1816         progress filter.  Install text_filter after that.
1817         (encode_crypt): Likewise.
1818         * sign.c (sign_file): Likewise.
1819         (clearsign_file): Likewise.
1820         * decrypt.c (decrypt_message): Likewise.
1821         (decrypt_messages): Likewise.
1822         * verify.c (verify_signatures): Likewise.
1823         (verify_one_file): Likewise.
1824         * plaintext.c (hash_datafiles): Likewise.
1825         (ask_for_detached_datafile): Likewise.
1827 2003-04-10  Werner Koch  <wk@gnupg.org>
1829         * passphrase.c (read_passphrase_from_fd): Do a dummy read if the
1830         agent is to be used.  Noted by Ingo Klöcker.
1831         (agent_get_passphrase): Inhibit caching when we have no
1832         fingerprint.  This is required for key generation as well as for
1833         symmetric only encryption.
1835         * passphrase .c (agent_get_passphrase): New arg CANCELED.
1836         (passphrase_to_dek): Ditto.  Passed to above.  Changed all
1837         callers to pass NULL.
1838         * seckey-cert.c (do_check): New arg CANCELED.
1839         (check_secret_key): Terminate loop when canceled.
1841         * keyedit.c (change_passphrase): Pass ERRTEXT untranslated to
1842         passphrase_to_dek and translate where appropriate.
1843         * seckey-cert.c (check_secret_key): Ditto.
1844         * keygen.c (ask_passphrase): Ditto.
1845         * passphrase.c (agent_get_passphrase): Translate the TRYAGAIN_TEXT.
1846         Switch the codeset to utf-8.
1848 2003-04-09  Werner Koch  <wk@gnupg.org>
1850         * decrypt.c (decrypt_messages): Fixed error handling; the function
1851         used to re-loop with same file after an error.  Reported by Joseph
1852         Walton.
1854 2003-04-08  David Shaw  <dshaw@jabberwocky.com>
1856         * main.h, g10.c (main), import.c (parse_import_options,
1857         fix_pks_corruption): It's really PKS corruption, not HKP
1858         corruption.  Keep the old repair-hkp-subkey-bug command as an
1859         alias.
1861         * g10.c (main): Rename --no-version to --no-emit-version for
1862         consistency.  Keep --no-version as an alias.
1864 2003-04-04  David Shaw  <dshaw@jabberwocky.com>
1866         * pkclist.c (algo_available): PGP 8 can use the SHA-256 hash.
1868         * sign.c (sign_file, clearsign_file, sign_symencrypt_file): Remove
1869         unused code.
1871 2003-04-01  Werner Koch  <wk@gnupg.org>
1873         * mainproc.c (check_sig_and_print): Add primary key fpr to VALIDSIG
1874         status.
1876 2003-03-24  David Shaw  <dshaw@jabberwocky.com>
1878         * keydb.h: Err on the side of making an unknown signature a SIG
1879         rather than a CERT.
1881         * import.c (delete_inv_parts): Discard any key signatures that
1882         aren't key types (i.e. 0x00, 0x01, etc.)
1884         * g10.c (main): Add deprecated option warning for
1885         --list-ownertrust.  Add --compression-algo alias for
1886         --compress-algo.  Change --version output strings to match
1887         "showpref" strings, and make translatable.
1889         * status.c (do_get_from_fd): Accept 'y' as well as 'Y' for
1890         --command-fd boolean input.
1892         * trustdb.c: Fix typo (DISABLE_REGEXP -> DISABLE_REGEX)
1894         * keyedit.c (show_key_with_all_names_colon): Show no-ks-modify
1895         flag.
1897 2003-03-11  David Shaw  <dshaw@jabberwocky.com>
1899         * options.h, g10.c (main), keyserver.c (kopts): Add "try-dns-srv"
1900         keyserver option.  Defaults to on.
1902         * passphrase.c (agent_get_passphrase): Fix memory leak with
1903         symmetric messages.  Fix segfault with symmetric messages.  Fix
1904         incorrect prompt with symmetric messages.
1906 2003-03-10  Werner Koch  <wk@gnupg.org>
1908         * compress.c (init_uncompress): Use a 15 bit window size so that
1909         the output of implementations which don't run for PGP 2
1910         compatibility won't get garbled.
1912 2003-03-04  David Shaw  <dshaw@jabberwocky.com>
1914         * trustdb.c (validate_keys): Mask the ownertrust when building the
1915         list of fully valid keys so that disabled keys are still counted
1916         in the web of trust.
1917         (get_ownertrust_with_min): Do the same for the minimum ownertrust
1918         calculation.
1920         * parse-packet.c (dump_sig_subpkt): Show the notation names for
1921         not-human-readable notations.  Fix cosmetic off-by-one length
1922         counter.
1924         * options.skel: Add explantion and commented-out
1925         "no-mangle-dos-filenames".
1927         * mainproc.c (proc_encrypted): Make string translatable.
1929         * keyserver.c (keyserver_spawn): Quote ':', '%', and any 8-bit
1930         characters in the uid strings sent to the keyserver helper.
1932         * keyring.c (keyring_rebuild_cache): Lock the keyring while
1933         rebuilding the signature caches to prevent another gpg from
1934         tampering with the temporary copy.
1936         * keygen.c (keygen_set_std_prefs): Include AES192 and AES256 in
1937         default prefs.
1939         * keyedit.c (show_prefs): Make strings translatable.
1941         * keydb.c: Double the maximum number of keyrings to 40.
1943         * gpgv.c (main): Fix bug #113 - gpgv should accept the
1944         --ignore-time-conflict option.
1946         * g10.c (main): --openpgp disables --pgpX.  Double the amount of
1947         secure memory to 32k (keys are getting bigger these days).
1949         * Makefile.am: Makefile.am: Use @CAPLIBS@ to link in -lcap if we
1950         are using capabilities.
1952 2003-02-26  David Shaw  <dshaw@jabberwocky.com>
1954         * keyserver.c (keyserver_spawn): Include various pieces of
1955         information about the key in the data sent to the keyserver
1956         helper.  This allows the helper to use it in instructing a remote
1957         server which may not have any actual OpenPGP smarts in parsing
1958         keys.
1960         * main.h, export.c (export_pubkeys_stream, do_export_stream): Add
1961         ability to return only the first match in an exported keyblock for
1962         keyserver usage.  This should be replaced at some point with a
1963         more flexible solution where each key can be armored seperately.
1965 2003-02-22  David Shaw  <dshaw@jabberwocky.com>
1967         * sign.c (sign_file): Do not push textmode filter onto an unopened
1968         IOBUF (segfault).  Noted by Marcus Brinkmann.  Push and
1969         reinitialize textmode filter for each file in a multiple file
1970         list.
1972         * packet.h, getkey.c (fixup_uidnode), keyedit.c (show_prefs): Set
1973         and show the keyserver no-modify flag.
1975         * keygen.c (add_keyserver_modify): New.
1976         (keygen_upd_std_prefs): Call it here.
1977         (keygen_set_std_prefs): Accept "ks-modify" and "no-ks-modify" as
1978         prefs to set and unset keyserver modify flag.
1980         * g10.c (main): Accept "s1" in addition to "idea" to match the
1981         other ciphers.
1983         * main.h, misc.c (idea_cipher_warn): We don't need this if IDEA
1984         has been disabled.
1986 2003-02-21  David Shaw  <dshaw@jabberwocky.com>
1988         * keygen.c (keygen_set_std_prefs): Don't put AES or CAST5 in
1989         default prefs if they are disabled.
1991         * g10.c (main): Use 3DES instead of CAST5 if we don't have CAST5
1992         support.  Use 3DES for the s2k cipher in --openpgp mode.
1993         (print_mds): #ifdef all of the optional digest algorithms.
1995 2003-02-12  David Shaw  <dshaw@jabberwocky.com>
1997         * keydb.h, getkey.c (classify_user_id, classify_user_id2): Make
1998         'exact' a per-desc item.  Merge into one function since
1999         'force_exact' is no longer needed.
2000         (key_byname): Use new classify_user_id function, and new exact
2001         flag in KEYDB_SEARCH_DESC.
2003         * keyring.h, keyring.c (keyring_search): Return an optional index
2004         to show which KEYDB_SEARCH_DESC was the matching one.
2006         * keydb.h, keydb.c (keydb_search): Rename to keydb_search2, and
2007         pass the optional index to keyring_search.  Add a macro version of
2008         keydb_search that calls this new function.
2010         * export.c (do_export_stream): If the keyid! syntax is used,
2011         export only that specified key.  If the key in question is a
2012         subkey, export the primary plus that subkey only.
2014 2003-02-11  David Shaw  <dshaw@jabberwocky.com>
2016         * exec.c (set_exec_path): Add debugging line.
2018         * g10.c (print_hex, print_mds): Print long hash strings a lot
2019         neater.  This assumes at least an 80-character display, as there
2020         are a few other similar assumptions here and there.  Users who
2021         need unformatted hashes can still use with-colons.  Check that
2022         SHA384 and 512 are available before using them as they are no
2023         longer always available.
2025         * Makefile.am: Use a local copy of libexecdir along with @PACKAGE@
2026         as GNUPG_LIBEXECDIR so it can be easily overridden at make time.
2028 2003-02-04  David Shaw  <dshaw@jabberwocky.com>
2030         * armor.c (parse_hash_header, armor_filter): Accept the new SHAs
2031         in the armor Hash: header.
2033         * g10.c (print_hex): Print long hash strings a little neater.
2034         (print_mds): Add the new SHAs to the hash list.
2036 2003-02-02  David Shaw  <dshaw@jabberwocky.com>
2038         * keyedit.c (menu_revuid): Properly handle a nonselfsigned uid on
2039         a v4 key (treat as a v4 revocation).
2041         * import.c (print_import_check): Do not re-utf8 convert user IDs.
2043 2003-01-27  David Shaw  <dshaw@jabberwocky.com>
2045         * mainproc.c (list_node): Show signature expiration date in
2046         with-colons sig records.
2048         * keylist.c (list_keyblock_colon), mainproc.c (list_node): Show
2049         trust sig information in with-colons sig records.
2051 2003-01-16  David Shaw  <dshaw@jabberwocky.com>
2053         * g10.c (add_group): Trim whitespace after a group name so it does
2054         not matter where the user puts the = sign.
2056         * options.skel: Comment out the first three lines in case someone
2057         manually copies the skel file to their homedir.
2059         * sign.c (clearsign_file): Only use pgp2mode with v3 keys and
2060         MD5. This matches what we do when decoding such messages and
2061         prevents creating a message (v3+RIPEMD/160) that we can't verify.
2063         * sig-check.c (signature_check2): Use G10ERR_GENERAL as the error
2064         for signature digest conflict.  BAD_SIGN implies that a signature
2065         was checked and we may try and print out a user ID for a key that
2066         doesn't exist.
2068 2003-01-15  David Shaw  <dshaw@jabberwocky.com>
2070         * trustdb.c (init_trustdb, get_validity): Don't use a changed
2071         trust model to indicate a dirty trustdb, and never auto-rebuild a
2072         dirty trustdb with the "always" trust model.
2074         * g10.c (add_group): Last commit missed the \t ;)
2076 2003-01-14  David Shaw  <dshaw@jabberwocky.com>
2078         * packet.h, parse-packet.c (setup_user_id), free-packet.c
2079         (free_user_id), keydb.h, keyid.c (namehash_from_uid): New function
2080         to rmd160-hash the contents of a user ID packet and cache it in
2081         the uid object.
2083         * keylist.c (list_keyblock_colon): Use namehash in field 8 of
2084         uids.  Show dates for creation (selfsig date), and expiration in
2085         fields 6 and 7.
2087         * trustdb.c (get_validity, get_validity_counts, update_validity):
2088         Use new namehash function rather than hashing it locally.
2090 2003-01-14  Werner Koch  <wk@gnupg.org>
2092         * g10.c (add_group): Fixed group parsing to allow more than one
2093         delimiter in a row and also allow tab as delimiter.
2095 2003-01-12  David Shaw  <dshaw@jabberwocky.com>
2097         * tdbio.c (tdbio_set_dbname): Fix assertion failure with
2098         non-fully-qualified trustdb names.
2100 2003-01-11  David Shaw  <dshaw@jabberwocky.com>
2102         * trustdb.c (get_validity_info, get_ownertrust_info,
2103         trust_letter): Simplify by returning a ? for error directly.
2105         * keyedit.c (show_key_with_all_names): Use get_validity_string and
2106         get_ownertrust_string to show full word versions of trust
2107         (i.e. "full" instead of 'f').
2109         * trustdb.h, trustdb.c (get_ownertrust_string,
2110         get_validity_string): Same as get_ownertrust_info, and
2111         get_validity_info, except returns a full string.
2113         * trustdb.c (get_ownertrust_with_min): New.  Same as
2114         'get_ownertrust' but takes the min_ownertrust value into account.
2116 2003-01-10  David Shaw  <dshaw@jabberwocky.com>
2118         * armor.c (armor_filter): Comment about PGP's end of line tab
2119         problem.
2121         * trustdb.h, trustdb.c (trust_letter): Make
2122         static. (get_ownertrust_info, get_validity_info): Don't mask the
2123         trust level twice.
2125         * trustdb.h, gpgv.c, trustdb.c (get_validity, get_validity_info),
2126         keylist.c (list_keyblock_colon), keyedit.c
2127         (show_key_with_all_names_colon, menu_revuid): Pass a user ID in
2128         rather than a namehash, so we only have to do the hashing in one
2129         place.
2131         * packet.h, pkclist.c (build_pk_list), free-packet.c
2132         (release_public_key_parts): Remove unused namehash element for
2133         public keys.
2135 2003-01-07  David Shaw  <dshaw@jabberwocky.com>
2137         * keygen.c (keygen_set_std_prefs): Warn when setting an IDEA
2138         preference when IDEA is not available.
2140 2003-01-06  David Shaw  <dshaw@jabberwocky.com>
2142         * trustdb.c (get_validity_info): 'd' for disabled is not a
2143         validity value any more.
2145         * packet.h, tdbio.h, tdbio.c (tdbio_read_record,
2146         tdbio_write_record), trustdb.c (update_validity): Store temporary
2147         full & marginal counts in the trustdb.
2148         (clear_validity, get_validity_counts): Return and clear temp
2149         counts.
2150         (store_validation_status): Keep track of which keyids have been
2151         stored.
2152         (validate_one_keyblock, validate_key_list): Use per-uid copies of
2153         the full & marginal counts so they can be recalled for multiple
2154         levels.
2155         (validate_keys): Only use unused keys for each new round.
2156         (reset_unconnected_keys): Rename to reset_trust_records, and only
2157         skip specifically excluded records.
2159         * keylist.c (print_capabilities): Show 'D' for disabled keys in
2160         capabilities section.
2162         * trustdb.c (is_disabled): Remove incorrect comment.
2164 2003-01-03  David Shaw  <dshaw@jabberwocky.com>
2166         * import.c (import_one): Only do the work to create the status
2167         display for interactive import if status is enabled.
2169         * keyring.c (keyring_search): skipfnc didn't work properly with
2170         non-keyid searches.  Noted by Stefan Bellon.
2172         * getkey.c (merge_selfsigs_main): Remove some unused code and make
2173         sure that the pk selfsigversion member accounts for 1F direct
2174         sigs.
2176 2003-01-02  Werner Koch  <wk@gnupg.org>
2178         * keydb.c (keydb_add_resource): Don't assume that try_make_homedir
2179         terminates but check again for the existence of the directory and
2180         continue then.
2181         * openfile.c (copy_options_file): Print a warning if the skeleton
2182         file has active options.
2184 2002-12-29  David Shaw  <dshaw@jabberwocky.com>
2186         * getkey.c (merge_selfsigs_main), main.h, sig-check.c
2187         (check_key_signature2): Pass the ultimately trusted pk directly to
2188         check_key_signature2 to avoid going through the key selection
2189         mechanism.  This prevents a deadly embrace when two keys without
2190         selfsigs each sign the other.
2192 2002-12-27  David Shaw  <dshaw@jabberwocky.com>
2194         * keyserver.c (keyserver_refresh): Don't print the "refreshing..."
2195         line if there are no keys to refresh or if there is no keyserver
2196         set.
2198         * getkey.c (merge_selfsigs_main): Any valid user ID should make a
2199         key valid, not just the last one.  This also fixes Debian bug
2200         #174276.
2202 2002-12-27  Stefan Bellon  <sbellon@sbellon.de>
2204         * import.c (print_import_check): Changed int to size_t.
2206 2002-12-27  David Shaw  <dshaw@jabberwocky.com>
2208         * keyedit.c (keyedit_menu, menu_revuid): Add "revuid" feature to
2209         revoke a user ID.  This is the same as issuing a revocation for
2210         the self-signature, but a much simpler interface to do it.
2212 2002-12-26  David Shaw  <dshaw@jabberwocky.com>
2214         * keydb.h, getkey.c (key_byname): Flag to enable or disable
2215         including disabled keys.  Keys specified via keyid (i.e. 0x...)
2216         are always included.
2218         * getkey.c (get_pubkey_byname, get_seckey_byname2,
2219         get_seckey_bynames), keyedit.c (keyedit_menu, menu_addrevoker):
2220         Include disabled keys in these functions.
2222         * pkclist.c (build_pk_list): Do not include disabled keys for -r
2223         or the key prompt.  Do include disabled keys for the default key
2224         and --encrypt-to.
2226         * trustdb.h, trustdb.c (is_disabled): New skipfnc for skipping
2227         disabled keys.
2229         * gpgv.c (is_disabled): Stub.
2231         * keygen.c (keygen_add_key_expire): Properly handle updating a key
2232         expiration to a no-expiration value.
2234         * keyedit.c (enable_disable_key): Comment.
2236         * import.c (import_one): When in interactive mode and --verbose,
2237         don't repeat some key information twice.
2239 2002-12-22  Timo Schulz  <ts@winpt.org>
2240         
2241         * import.c (print_import_check): New.
2242         (import_one): Use it here.
2243         Use merge_keys_and_selfsig in the interactive mode to avoid
2244         wrong key information.
2245         * status.h: Add new status code.
2246         * status.c: Ditto.
2247         
2248 2002-12-13  David Shaw  <dshaw@jabberwocky.com>
2250         * pkclist.c (do_we_trust): Tweak language to refer to the "named
2251         user" rather than "owner".  Noted by Stefan Bellon.
2253         * trustdb.h, trustdb.c (trustdb_pending_check): New function to
2254         check if the trustdb needs a check.
2256         * import.c (import_keys_internal): Used here so we don't rebuild
2257         the trustdb if it is still clean.
2258         (import_one, chk_self_sigs): Only mark trustdb dirty if the key
2259         that is being imported has any sigs other than self-sigs.
2260         Suggested by Adrian von Bidder.
2262         * options.skel: Include the required '=' sign in the sample
2263         'group' option.  Noted by Stefan Bellon.
2265         * import.c (chk_self_sigs): Don't try and check a subkey as if it
2266         was a signature.
2268 2002-12-11  David Shaw  <dshaw@jabberwocky.com>
2270         * tdbio.c (tdbio_read_record, tdbio_write_record): Compact the
2271         RECTYPE_TRUST records a bit.
2273         * g10.c (main): Comment out --list-trust-path until it can be
2274         implemented.
2276         * import.c (import_one): Warn when importing an Elgamal primary
2277         that this may take some time (to verify self-sigs).
2278         (chk_self_sigs): Try and cache all self-sigs so the keyblock is
2279         written to the keyring with a good rich cache.
2281         * keygen.c (ask_algo): Make the Elgamal sign+encrypt warning
2282         stronger, and remove the RSA sign+encrypt warning.
2284 2002-12-06  Stefan Bellon  <sbellon@sbellon.de>
2286         * options.h: Fixed typo (mangle_dos_names instead of
2287         mangle_dos_filenames).
2289 2002-12-05  Werner Koch  <wk@gnupg.org>
2291         * g10.c: New options --[no-]mangle-dos-filenames.
2292         * options.h (opt): Added mangle-dos-filenames.
2293         * openfile.c (open_outfile) [USE_ONLY_8DOT3]: Truncate the
2294         filename only when this option is set; this is the default.
2296 2002-12-04  David Shaw  <dshaw@jabberwocky.com>
2298         * main.h, keyedit.c, keygen.c: Back out previous (2002-12-01)
2299         change.  Minimal isn't always best.
2301         * sign.c (update_keysig_packet): Use the current time rather then
2302         a modification of the original signature time.  Make sure that
2303         this doesn't cause a time warp.
2305         * keygen.c (keygen_add_key_expire): Properly handle a key
2306         expiration date in the past (use a duration of 0).
2308         * keyedit.c (menu_expire): Use update_keysig_packet so any sig
2309         subpackets are maintained during the update.
2311         * build-packet.c (build_sig_subpkt): Mark sig expired or unexpired
2312         when the sig expiration subpacket is added.
2313         (build_sig_subpkt_from_sig): Handle making an expiration subpacket
2314         from a sig that has already expired (use a duration of 0).
2316         * packet.h, sign.c (update_keysig_packet), keyedit.c
2317         (menu_set_primary_uid, menu_set_preferences): Add ability to issue
2318         0x18 subkey binding sigs to update_keysig_packet and change all
2319         callers.
2321         * trustdb.c (validate_keys): Show trust parameters when building
2322         the trustdb, and make sure that the version record update was
2323         successful.
2324         (init_trustdb): If the current parameters aren't what was used for
2325         building the trustdb, the trustdb is invalid.
2327         * tbio.c (tdbio_db_matches_options): Update to work with new
2328         trustdbs.
2330 2002-12-03  David Shaw  <dshaw@jabberwocky.com>
2332         * tdbio.h, tdbio.c (tdbio_read_record, tdbio_write_record): Store
2333         trust model in the trustdb version record.
2334         (tdbio_update_version_record): New function to update version
2335         record values during a trustdb check or update.
2336         (tdbio_dump_record): Show trust model in dump.
2338         * trustdb.c (validate_keys): Call tdbio_update_version_record on
2339         success so that the correct options are stored in the trustdb.
2341         * options.h: rearrange trust models so that CLASSIC is 0 and
2342         OPENPGP is 1.
2344         * options.h, g10.c (main), encode.c (write_pubkey_enc_from_list),
2345         pkclist.c (algo_available), revoke.c (gen_revoke): Add --pgp8
2346         mode.  This is basically identical to --pgp7 in all ways except
2347         that signing subkeys, v4 data sigs (including expiration), and SK
2348         comments are allowed.
2350         * getkey.c (finish_lookup): Comment.
2352         * main.h, keylist.c (reorder_keyblock), keyedit.c (keyedit_menu):
2353         Reorder user ID display in the --edit-key menu to match that of
2354         the --list-keys display.
2356         * g10.c (add_notation_data): Fix initialization.
2358 2002-12-01  David Shaw  <dshaw@jabberwocky.com>
2360         * keyedit.c (menu_expire): Don't lose key flags when changing the
2361         expiration date of a subkey.  This is not the most optimal
2362         solution, but it is minimal change on the stable branch.
2364         * main.h, keygen.c (do_copy_key_flags): New function to copy key
2365         flags, if any, from one sig to another.
2366         (do_add_key_expire): New function to add key expiration to a sig.
2367         (keygen_copy_flags_add_expire): New version of
2368         keygen_add_key_expire that also copies key flags.
2369         (keygen_add_key_flags_and_expire): Use do_add_key_expire.
2371         * import.c (fix_hkp_corruption): Comment.
2373 2002-11-25  Stefan Bellon  <sbellon@sbellon.de>
2375         * plaintext.c (handle_plaintext) [__riscos__]: If nooutput is set,
2376         no filetype is needed obviously.
2378 2002-11-24  David Shaw  <dshaw@jabberwocky.com>
2380         * main.h, misc.c (default_cipher_algo, default_compress_algo):
2381         New.  Return the default algorithm by trying
2382         --cipher-algo/--compress-algo, then the first item in the pref
2383         list, then s2k-cipher-algo or ZIP.
2385         * sign.c (sign_file, sign_symencrypt_file), encode.c
2386         (encode_simple, encode_crypt): Call default_cipher_algo and
2387         default_compress_algo to get algorithms.
2389         * g10.c (main): Allow pref selection for compress algo with
2390         --openpgp.
2392         * mainproc.c (proc_encrypted): Use --s2k-digest-algo for
2393         passphrase mangling rather than --digest-algo.
2395         * sign.c (hash_for): If --digest-algo is not set, but
2396         --personal-digest-preferences is, then use the first hash
2397         algorithm in the personal list.  If the signing algorithm is DSA,
2398         then use the first 160-bit hash algorithm in the personal list.
2399         If --pgp2 is set and it's a v3 RSA key, use MD5.
2401         * g10.c (main), keydb.c (keydb_add_resource,
2402         keydb_locate_writable): Rename --default-keyring as
2403         --primary-keyring.  Stefan wins the naming contest.
2405 2002-11-23  David Shaw  <dshaw@jabberwocky.com>
2407         * g10.c (add_notation_data): Disallow notation names that do not
2408         contain a '@', unless --expert is set.  This is to help prevent
2409         people from polluting the (as yet unused) IETF namespace.
2411         * main.h: Comments about default algorithms.
2413         * photoid.c (image_type_to_string): Comments about 3-letter file
2414         extensions.
2416         * encode.c (encode_simple), passphrase.c (passphrase_to_dek),
2417         sign.c (sign_symencrypt_file): Use --s2k-digest-algo for
2418         passphrase mangling rather than --digest-algo.
2420 2002-11-21  David Shaw  <dshaw@jabberwocky.com>
2422         * keygen.c (keygen_set_std_prefs): Properly handle an empty
2423         preference string.
2425         * misc.c (string_to_compress_algo): "none" is a bad choice since
2426         it conflicts with the "none" in setpref.
2428 2002-11-14  David Shaw  <dshaw@jabberwocky.com>
2430         * g10.c (main): Allow compression algorithm names as the argument
2431         to --compress-algo.  The old algorithm names still work for
2432         backwards compatibility.
2434         * misc.c (string_to_compress_algo): Allow "none" as an alias for
2435         "uncompressed".
2437 2002-11-13  Stefan Bellon  <sbellon@sbellon.de>
2439         * getkey.c (get_pubkey_byfprint_fast): Fixed type incompatibility,
2440         was unsigned char instead of byte.
2442 2002-11-13  David Shaw  <dshaw@jabberwocky.com>
2444         * encode.c (encode_simple): Make sure that files larger than about
2445         4G use partial length encoding.  This is required because OpenPGP
2446         allows only for 32 bit length fields.  From Werner on stable
2447         branch.
2449         * getkey.c (get_pubkey_direct): Renamed to...
2450         (get_pubkey_fast): this and made extern.
2451         (get_pubkey_byfprint_fast): New.  From Werner on stable branch.
2453         * keydb.h, import.c (import_one): Use get_pubkey_fast instead of
2454         get_pubkey.  We don't need a merged key and actually this might
2455         lead to recursions.
2456         (revocation_present): Likewise for search by fingerprint.  From
2457         Werner on stable branch.
2459         * g10.c (main): Try to create the trustdb even for non-colon-mode
2460         list-key operations.  This is required because getkey needs to
2461         know whether a a key is ultimately trusted.  From Werner on stable
2462         branch.
2463         
2464         * exec.c [__CYGWIN32__]: Keep cygwin separate from Mingw32;
2465         we don't need it here as it behaves more like a Posix system.
2466         From Werner on stable branch.
2468         * passphrase.c (agent_get_passphrase): Ditto.  From Werner on
2469         stable branch.
2471         * tdbio.c (MY_O_BINARY): Need binary mode with Cygwin.  From
2472         Werner on stable branch.
2474         * g10.c, gpgv.c (main) [__CYGWIN32__]: Don't get the homedir from
2475         the registry.  From Werner on stable branch.
2476         
2477         * keyedit.c (show_key_with_all_names_colon): Make --with-colons
2478         --edit display match the validity and trust of --with-colons
2479         --list-keys.
2481         * passphrase.c (agent_send_all_options): Fix compile warning.
2483         * keylist.c (list_keyblock_colon): Validity for subkeys should
2484         match that of the primary key, and not that of the last user ID.
2486         * getkey.c (merge_selfsigs): Revoked/expired/invalid primary keys
2487         carry these facts onto all their subkeys, but only after the
2488         subkey has a chance to be marked valid.  This is to fix an
2489         incorrect "invalid public key" error verifying a signature made by
2490         a revoked signing subkey, with a valid unrevoked primary key.
2492 2002-11-09  Werner Koch  <wk@gnupg.org>
2494         * passphrase.c (agent_send_all_options): Use tty_get_ttyname to
2495         get the default ttyname.
2497 2002-11-07  David Shaw  <dshaw@jabberwocky.com>
2499         * keyring.h, keyring.c (keyring_register_filename): Return the
2500         pointer if a given keyring is registered twice.
2502         * keydb.h, keydb.c (keydb_add_resource): Use flags to indicate a
2503         default keyring.
2504         (keydb_locate_writable): Prefer the default keyring if possible.
2506         * g10.c (main): Add --default-keyring option.
2508 2002-11-06  David Shaw  <dshaw@jabberwocky.com>
2510         * options.h, g10.c (main), trustdb.c (ask_ownertrust): Add
2511         --force-ownertrust option for debugging purposes.  This allows
2512         setting a whole keyring to a given trust during an
2513         --update-trustdb.  Not for normal use - it's just easier than
2514         hitting "4" all the time to test a large trustdb.
2516         * pubkey-enc.c (get_session_key): With hidden recipients or try a
2517         given passphrase against all secret keys rather than trying all
2518         secret keys in turn.  Don't if --try-all-secrets or --status-fd is
2519         enabled.
2521         * passphrase.c (passphrase_to_dek): Mode 1 means do a regular
2522         passphrase query, but don't prompt with the key info.
2524         * seckey-cert.c (do_check, check_secret_key): A negative ask count
2525         means to enable passphrase mode 1.
2527         * keydb.h, getkey.c (enum_secret_keys): Add flag to include
2528         secret-parts-missing keys (or not) in the list.
2530 2002-11-05  David Shaw  <dshaw@jabberwocky.com>
2532         * keyserver.c (keyserver_search_prompt): When --with-colons is
2533         enabled, don't try and fit the search output to the screen size -
2534         just dump the whole list.
2536 2002-11-04  David Shaw  <dshaw@jabberwocky.com>
2538         * keyserver.c (keyserver_search_prompt): When --with-colons is
2539         enabled, just dump the raw keyserver protocol to stdout and don't
2540         print the menu.
2542         * keyserver.c (show_prompt): Don't show a prompt when command-fd
2543         is being used.
2545         * trustdb.c (trust_model_string, check_trustdb, update_trustdb,
2546         validate_one_keyblock): It's not clear what a trustdb rebuild or
2547         check means with a trust model other than "classic" or "openpgp",
2548         so disallow this.
2550 2002-11-03  David Shaw  <dshaw@jabberwocky.com>
2552         * options.h, g10.c (main): Add --trust-model option.  Current
2553         models are "openpgp" which is classic+trustsigs, "classic" which
2554         is classic only, and "always" which is the same as the current
2555         option --always-trust (which still works).  Default is "openpgp".
2557         * trustdb.c (validate_one_keyblock): Use "openpgp" trust model to
2558         enable trust sigs.
2560         * gpgv.c (main), mainproc.c (check_sig_and_print), pkclist.c
2561         (do_we_trust, do_we_trust_pre, check_signatures_trust): Use new
2562         --trust-model option in place of --always-trust.
2564         * keyedit.c (sign_mk_attrib, trustsig_prompt, sign_uids,
2565         keyedit_menu): Prompt for and create a trust signature with
2566         "tsign".  This is functional, but needs better UI text.
2568         * build-packet.c (build_sig_subpkt): Able to build trust and
2569         regexp subpackets.
2571         * pkclist.c (do_edit_ownertrust): Comment.
2573 2002-11-02  David Shaw  <dshaw@jabberwocky.com>
2575         * keygen.c (set_one_pref, keygen_set_std_prefs): Allow using the
2576         full algorithm name (CAST5, SHA1) rather than the short form (S3,
2577         H2).
2579         * main.h, keygen.c (keygen_get_std_prefs), keyedit.c
2580         (keyedit_menu): Return and use a fake uid packet rather than a
2581         string since we already have a nice parser/printer in
2582         keyedit.c:show_prefs.
2584         * main.h, misc.c (string_to_compress_algo): New.
2586 2002-11-01  David Shaw  <dshaw@jabberwocky.com>
2588         * g10.c (main): Add --no-throw-keyid.
2590         * keydb.h, encode.c (write_pubkey_enc_from_list), g10.c (main),
2591         pkclist.c (build_pk_list): Add --hidden-recipient (-R) and
2592         --hidden-encrypt-to, which do a single-user variation on
2593         --throw-keyid.  The "hide this key" flag is carried in bit 0 of
2594         the pk_list flags field.
2596         * keyserver.c (parse_keyrec): Fix shadowing warning.
2598 2002-10-31  Stefan Bellon  <sbellon@sbellon.de>
2600         * compress.c (init_compress) [__riscos__]: Use
2601         riscos_load_module() to load ZLib module.
2603         * g10.c (main) [__riscos__]: Renames due to changes in riscos.c
2604         (e.g. prefixes all RISC OS specific functions with riscos_*).
2605         * photoid.c (show_photos) [__riscos__]: Likewise.
2606         * signal.c (got_fatal_signal) [__riscos__]: Likewise.
2608         * trustdb.c (check_regexp) [__riscos__]: Branch to RISC OS RegEx
2609         handling.
2611 2002-10-31  David Shaw  <dshaw@jabberwocky.com>
2613         * build-packet.c (do_plaintext), encode.c (encode_sesskey,
2614         encode_simple, encode_crypt), sign.c (write_plaintext_packet): Use
2615         wipememory() instead of memset() to wipe sensitive memory as the
2616         memset() might be optimized away.
2618 2002-10-30  David Shaw  <dshaw@jabberwocky.com>
2620         * trustdb.c (check_regexp): Modern regexps require REG_EXTENDED.
2622 2002-10-29  David Shaw  <dshaw@jabberwocky.com>
2624         * packet.h, trustdb.h, trustdb.c (trust_string): New.  Return a
2625         string like "fully trusted", "marginally trusted", etc.
2626         (get_min_ownertrust): New.  Return minimum ownertrust.
2627         (update_min_ownertrust): New.  Set minimum ownertrust.
2628         (check_regexp): New.  Check a regular epression against a user ID.
2629         (ask_ownertrust): Allow specifying a minimum value.
2630         (get_ownertrust_info): Follow the minimum ownertrust when
2631         returning a letter.
2632         (clear_validity): Remove minimum ownertrust when a key becomes
2633         invalid.
2634         (release_key_items): Release regexp along with the rest of the
2635         info.
2636         (validate_one_keyblock, validate_keys): Build a trust sig chain
2637         while validating.  Call check_regexp for regexps.  Use the minimum
2638         ownertrust if the user does not specify a genuine ownertrust.
2640         * pkclist.c (do_edit_ownertrust): Only allow user to select a
2641         trust level greater than the minimum value.
2643         * parse-packet.c (can_handle_critical): Can handle critical trust
2644         and regexp subpackets.
2646         * trustdb.h, trustdb.c (clear_ownertrusts), delkey.c
2647         (do_delete_key), import.c (import_one): Rename clear_ownertrust to
2648         clear_ownertrusts and have it clear the min_ownertrust value as
2649         well.
2651         * keylist.c (list_keyblock_print): Indent uid to match pub and
2652         sig.
2654         * keyedit.c (print_and_check_one_sig, show_key_and_fingerprint,
2655         menu_addrevoker), keylist.c (list_keyblock_print,
2656         print_fingerprint): Show "T" or the trust depth for trust
2657         signatures, and add spaces to some strings to make room for it.
2659         * packet.h, parse-packet.c (dump_sig_subpkt, parse_one_sig_subpkt,
2660         parse_signature): Parse trust signature values.
2662         * tdbio.h, tdbio.c (tdbio_read_record, tdbio_write_record):
2663         Reserve a byte for the minimum ownertrust value (for use with
2664         trust signatures).
2666 2002-10-29  Stefan Bellon  <sbellon@sbellon.de>
2668         * build-packet.c (calc_plaintext, do_plaintext): Removed RISC OS
2669         specific filetype parts (it's now done in make_basename()).
2671         * plaintext.c (handle_plaintext): Tidied up RISC OS specific
2672         filetype parts.
2674         * encode.c (encode_simple, encode_crypt): Added argument to
2675         make_basename() call.
2677         * sign.c (write_plaintext_packet): Added argument to
2678         make_basename() call.
2680 2002-10-28  Stefan Bellon  <sbellon@sbellon.de>
2682         * build-packet.c (calc_plaintext, do_plaintext): Added filetype
2683         handling for RISC OS' file types.
2685         * plaintext.c (handle_plaintext) [__riscos__]: Added filetype
2686         handling for RISC OS' file types.
2688 2002-10-23  David Shaw  <dshaw@jabberwocky.com>
2690         * main.h, import.c (sec_to_pub_keyblock, import_secret_one,
2691         parse_import_options), g10.c (main): New import-option
2692         "convert-sk-to-pk" to convert a secret key into a public key
2693         during import.  It is on by default.
2695 2002-10-23  Werner Koch  <wk@gnupg.org>
2697         * pubkey-enc.c (get_it): Fix segv, test for revoked only when PK
2698         has been assigned.
2700 2002-10-18  Timo Schulz  <ts@winpt.org>
2702         * keylist.c: (print_pubkey_info): New.
2703         (print_seckey_info): New.
2704         * main.h: Prototypes for the new functions.       
2705         * delkey.c (do_delete_key): Use it here.
2706         * revoke.c (gen_desig_revoke): Ditto.
2707         
2708 2002-10-17  Werner Koch  <wk@gnupg.org>
2710         * pkclist.c (do_edit_ownertrust): Show all user IDs.  This should
2711         be enhanced to also show the current trust level.  Suggested by
2712         Florian Weimer.
2714 2002-10-17  David Shaw  <dshaw@jabberwocky.com>
2716         * g10.c (main): Handle --strict and --no-strict from the command
2717         line before the options file is loaded.
2719 2002-10-15  David Shaw  <dshaw@jabberwocky.com>
2721         * g10.c (main): Disable --textmode when encrypting (symmetric or
2722         pk) in --pgp2 mode as PGP 2 can't handle the unknown length
2723         literal packet.  Reported by Michael Richardson.
2725 2002-10-14  David Shaw  <dshaw@jabberwocky.com>
2727         * keyserver-internal.h, keyserver.c (print_keyrec, parse_keyrec,
2728         show_prompt, keyserver_search_prompt, keyserver_spawn): Go to
2729         version 1 of the keyserver protocol.  This is a better design,
2730         similar to --with-colons, that allows for keys with multiple user
2731         IDs rather than using multiple keys.  It also matches the machine
2732         readable pksd format.  Also use a prettier --search-keys listing
2733         format that can fill different size windows (currently set at 24
2734         lines).
2736 2002-10-12  Werner Koch  <wk@gnupg.org>
2738         * keygen.c (print_status_key_created): New.
2739         (do_generate_keypair): Use it to print the fingerprint.
2740         (generate_subkeypair): Likewise.
2742 2002-10-11  David Shaw  <dshaw@jabberwocky.com>
2744         * keyedit.c (menu_addrevoker): Properly back out if the signature
2745         fails.  Also, do not allow appointing the same revoker twice, and
2746         report ALREADY_SIGNED if the user tries it.
2748 2002-10-07  David Shaw  <dshaw@jabberwocky.com>
2750         * import.c (import_keys_internal): Missed one s/inp/inp2/.
2752         * keylist.c (print_capabilities): Properly indicate per-key
2753         capabilities of sign&encrypt primary keys that have
2754         secret-parts-missing (i.e. no capabilities at all)
2756         * mainproc.c (symkey_decrypt_sesskey): Fix compiler warning.
2758 2002-10-04  David Shaw  <dshaw@jabberwocky.com>
2760         * getkey.c (get_pubkey_direct): Don't cache keys retrieved via
2761         this function as they may not have all their fields filled in.
2763         * sig-check.c (signature_check2): Use new is_primary flag to check
2764         rather than comparing main_keyid with keyid as this still works in
2765         the case of a not fully filled in pk.
2767 2002-10-04  Werner Koch  <wk@gnupg.org>
2769         * import.c (import_keys_internal): s/inp/inp2/ to avoid shadowing
2770         warning.
2772         * passphrase.c (agent_get_passphrase): Fixed signed/unsigned char
2773         problem in %-escaping.  Noted by Ingo Klöcker.
2775 2002-10-03  David Shaw  <dshaw@jabberwocky.com>
2777         * options.h, g10.c (main): Add --strict and --no-strict to switch
2778         the log_warning severity level from info to error.
2780         * keylist.c (print_capabilities): Secret-parts-missing keys should
2781         show that fact in the capabilities, and only primary signing keys
2782         can certify other keys.
2784         * packet.h, parse_packet.c (parse_key): Add is_primary flag for
2785         public keys (it already exists for secret keys).
2787 2002-10-02  David Shaw  <dshaw@jabberwocky.com>
2789         * import.c (import_secret_one): Check for an illegal (>110)
2790         protection cipher when importing a secret key.
2792         * keylist.c (list_keyblock_print): Show a '#' for a
2793         secret-parts-missing key.
2795         * parse_packet.c (parse_key): Some comments.
2797         * revoke.c (gen_revoke): Remove some debugging code.
2799         * trustdb.c (verify_own_keys): Make trusted-key a non-deprecated
2800         option again.
2802         * seckey-cert.c (do_check): Don't give the IDEA warning unless the
2803         cipher in question is in fact IDEA.
2805 2002-10-01  David Shaw  <dshaw@jabberwocky.com>
2807         * import.c (import_one): Make sure that a newly imported key
2808         starts with a clean ownertrust.
2810 2002-10-01  Werner Koch  <wk@gnupg.org>
2812         * getkey.c (get_pubkey_direct): New.
2813         (merge_selfsigs_main): Use it here to look for an ultimately
2814         trusted key.  Using the full get_pubkey might lead to an
2815         infinitive recursion.
2817 2002-09-29  David Shaw  <dshaw@jabberwocky.com>
2819         * keyserver.c (parse_keyserver_uri): Force the keyserver URI
2820         scheme to lowercase to be case-insensitive.
2822 2002-09-28  David Shaw  <dshaw@jabberwocky.com>
2824         * export.c (do_export_stream): Comment.
2826         * sig-check.c (check_key_signature2): Properly handle a
2827         non-designated revocation import.
2829 2002-09-26  Werner Koch  <wk@gnupg.org>
2831         * g10.c (set_homedir): New. Changed all direct assignments to use
2832         this.
2833         * gpgv.c (set_homedir): Ditto.
2835 2002-09-25  David Shaw  <dshaw@jabberwocky.com>
2837         * Makefile.am: Link gpg with EGDLIBS (i.e. NETLIBS) as EGD uses
2838         sockets.  Remove the old NETLIBS variable since the keyserver
2839         stuff is no longer internal.
2841 2002-09-24  David Shaw  <dshaw@jabberwocky.com>
2843         * import.c (import_keys_stream): Fix compiler type warning.
2845         * keyring.c (keyring_rebuild_cache), sig-check.c
2846         (check_key_signature2), import.c (import, chk_self_sigs): Minor
2847         language cleanups.
2849 2002-09-23  Stefan Bellon  <sbellon@sbellon.de>
2851         * main.h: Introduced fast-import as import option. Removed
2852         fast as separate option from prototypes.
2853         * import.c (parse_import_options): Added fast-import option.
2854         (import_*): Removed fast as separate option.
2855         * g10.c (main): Added option fast-import, removed old fast
2856         as separate argument.
2857         * keyserver.c (keyserver_spawn): Removed old fast as separate
2858         argument.
2860 2002-09-22  Stefan Bellon  <sbellon@sbellon.de>
2862         * import.c (import_keys, import_keys_stream,
2863         import_keys_internal): Added trustdb update/check to key import if
2864         not fast-import and interactive set/no-auto-check-trustdb unset.
2865         Avoided function clone by introducing import_keys_internal.
2867 2002-09-19  David Shaw  <dshaw@jabberwocky.com>
2869         * keyserver.c (keyserver_spawn): Properly handle line truncation.
2870         Don't leak memory (~10-20 bytes) on searches.
2871         (keyserver_search_prompt): Cleanup.
2873         * keylist.c (list_keyblock_colon): Show 1F direct key signatures
2874         in --with-colons listing.
2876 2002-09-16  David Shaw  <dshaw@jabberwocky.com>
2878         * keyedit.c (menu_addrevoker): The direct key signature for
2879         revocation keys must be at least v4 to carry the revocation key
2880         subpacket.  Add a PGP 2.x warning for revocation keys.
2882 2002-09-14  David Shaw  <dshaw@jabberwocky.com>
2884         * g10.c (check_permissions): Rearrange strings to make translating
2885         easier (don't incorporate string parts).
2887         * keyedit.c (sign_uids): Make strings translatable.
2889         * sig-check.c (check_key_signature2): Make string translatable.
2891 2002-09-13  David Shaw  <dshaw@jabberwocky.com>
2893         * getkey.c (check_revocation_keys): Move....
2894         * main.h, sig-check.c (check_revocation_keys): to here.  Also
2895         return the signature_check error code rather than 0/1 and cache
2896         the sig result.
2898         * sig-check.c (check_key_signature2): Divert to
2899         check_revocation_keys if a revocation sig is made by someone other
2900         than the pk owner.
2902         * getkey.c (merge_selfsigs_main): Tidy.
2904 2002-09-13  Werner Koch  <wk@gnupg.org>
2906         * g10.c (main) [__MINGW32__]: Activate oLoadExtension.
2908 2002-09-12  David Shaw  <dshaw@jabberwocky.com>
2910         * Makefile.am, hkp.c, hkp.h, keyserver.c (keyserver_work): Remove
2911         internal HKP support.
2913         * keyserver.c (keyserver_spawn): Remove whitespace after keyserver
2914         commands.
2916 2002-09-10  David Shaw  <dshaw@jabberwocky.com>
2918         * exec.c (expand_args): Remove loop left over from earlier
2919         implementation.
2920         (exec_write): Missed one tick.
2922 2002-09-10  Werner Koch  <wk@gnupg.org>
2924         * g10.c, options.h: Removed option --emulate-checksum-bug.
2925         * misc.c (checksum_u16_nobug): Removed.
2926         (checksum_u16): Removed the bug emulation.
2927         (checksum_mpi): Ditto.
2928         (checksum_mpi_counted_nbits): Removed and replaced all calls
2929         with checksum_mpi.
2931         * parse-packet.c (read_protected_v3_mpi): New.
2932         (parse_key): Use it here to store it as an opaque MPI.
2933         * seckey-cert.c (do_check): Changed the v3 unprotection to the new
2934         why to store these keys.
2935         (protect_secret_key): Likewise.
2936         * build-packet.c (do_secret_key): And changed the writing.
2938         * tdbio.c (tdbio_set_dbname, open_db): Use new macro MY_O_BINARY
2939         to avoid silly ifdefs.
2940         (open_db): Fallback to RDONLY so that gpg may be used from a
2941         RO-medium.
2943         * encode.c (encode_simple): Make sure we don't use an ESK packet
2944         when we don't have a salt in the S2K.
2946         * misc.c (pct_expando) <case f>: Make sure that LEN is initialized.
2948         * exec.c (exec_finish): Use ticks to denote filenames in messages.
2949         (make_tempdir, exec_write): Changed format of messages.
2951         * keyserver.c (print_keyinfo): Release USERID in on error.
2952         (keyserver_work) [!DISABLE_KEYSERVER_HELPERS]: Exclude the unused
2953         code.
2955 2002-09-09  Werner Koch  <wk@gnupg.org>
2957         * parse-packet.c (make_attribute_uidname): Add new ar MAX_NAMELEN
2958         for sanity checks.  Changed both callers. Limit the size of an %s.
2960         * options.skel: Comment lock-once out, so that this file does not
2961         change anything when copied to a new home directory.
2962         * openfile.c (try_make_homedir): Don't exit after copying the
2963         option skeleton.
2965         * options.h: Don't use a comma when declaring variables over more
2966         than one line.
2968         * mainproc.c (symkey_decrypt_sesskey): Check length of the session
2969         key.
2971         * hkp.c (dehtmlize): Use ascii_tolower to protect against weird
2972         locales.  Cast the argument for isspace for the sake of broken
2973         HP/UXes.
2974         (parse_hkp_index): s/ascii_memcasecmp/ascii_strncasecmp/.
2976         * g10.c: Removed option --emulate-3des-s2k-bug.
2978         * passphrase.c (hash_passphrase): Was used here.
2980         * export.c (parse_export_options)
2981         * keyserver.c (parse_keyserver_options)
2982         * import.c (parse_import_options)
2983         * g10.c (check_permissions): s/ascii_memcasecmp/ascii_strncasecmp/.
2985 2002-09-09  David Shaw  <dshaw@jabberwocky.com>
2987         * g10.c (add_group): Use '=' to separate group name from group
2988         members.  Use a better error message for when no = is found.
2990         * hkp.c (hkp_export): Use CRLF in headers.
2992 2002-09-03  David Shaw  <dshaw@jabberwocky.com>
2994         * mainproc.c (print_pkenc_list): Don't increment the error counter
2995         when printing the list of keys a message was encrypted to.  This
2996         would make gpg give a non-zero exit code even for completely valid
2997         messages if the message was encrypted to more than one key that
2998         the user owned.
3000 2002-09-02  Werner Koch  <wk@gnupg.org>
3002         * g10.c (main): Try to set a default character set.  Print the
3003         used one in verbosity level 3.
3004         * gpgv.c (main): Try to set a default character set.
3006         * status.c, status.h (STATUS_IMPORT_OK): New.
3007         * import.c (import_one,import_secret_one): Print new status.
3009 2002-08-30  David Shaw  <dshaw@jabberwocky.com>
3011         * pkclist.c (build_pk_list): Add new status code to indicate an
3012         untrusted user.  This (or a disabled key) fail with "unavailable
3013         pubkey" (G10ERR_UNU_PUBKEY).
3015         * pkclist.c (build_pk_list): Fail if any recipient keys are
3016         unusable.
3018         * options.skel: The PGP LDAP keyserver is back.  Use MIT keyserver
3019         as a sample rather than cryptnet as cryptnet does not support
3020         searching yet.
3022         * keyedit.c (show_key_with_all_names): Fix error message
3023         (preferences are userid/selfsig and not key specific).
3025 2002-08-30  Werner Koch  <wk@gnupg.org>
3027         * pkclist.c (do_we_trust_pre): Changed the wording of a warning.
3029         * encode.c (encode_simple,encode_crypt): Use new style CTB for
3030         compressssed packets when using MDC.  We need to do this so that
3031         concatenated messages are properly decrypted.  Old style
3032         compression assumes that it is the last packet; given that we
3033         can't determine the length in advance, the uncompressor does not
3034         know where to start.  Actually we should use the new CTB always
3035         but this would break PGP 2 compatibility.
3037         * parse-packet.c (parse): Special treatment for new style CTB
3038         compressed packets.
3040         * build-packet.c (do_mdc): Removed. Was not used.
3041         (do_encrypted_mdc): Count in the version number and the MDC packet.
3043 2002-08-28  David Shaw  <dshaw@jabberwocky.com>
3045         * sig-check.c (do_check_messages, do_check): Show keyid in error
3046         messages.
3048         * keyserver.c (print_keyinfo): More readable key listings for
3049         --search-keys responses.
3051 2002-08-26  David Shaw  <dshaw@jabberwocky.com>
3053         * hkp.c (parse_hkp_index, dehtmlize): Move HTML functionality into
3054         new "dehtmlize" function.  Remove HTML before trying to parse each
3055         line from the keyserver.  If the keyserver provides key type
3056         information in the listing, use it.
3058 2002-08-23  David Shaw  <dshaw@jabberwocky.com>
3060         * sig-check.c (do_check, do_check_messages): Emit the usual sig
3061         warnings even for cached sigs.  This also serves to protect
3062         against missing a sig expiring while cached.
3064         * getkey.c (merge_selfsigs_main): Don't check UID self-sigs twice.
3066 2002-08-22  David Shaw  <dshaw@jabberwocky.com>
3068         * import.c (clean_subkeys, chk_self_sigs): Merge clean_subkeys
3069         into chk_self_sigs.  This improves efficiency as the same
3070         signatures are not checked multiple times.  Clarify when a subkey
3071         is revoked (any revocation signature, even if it is dated before
3072         the binding signature).
3074         * getkey.c (merge_selfsigs_subkey): Subkey revocation comments.
3076         * keylist.c (list_one): Stats are only for public key listings.
3078         * g10.c (main), options.skel: Default should be include-revoked
3079         for keyserver operations.
3081 2002-08-21  Werner Koch  <wk@gnupg.org>
3083         * import.c (import_print_stats): Print new non_imported counter
3084         which is currently not used because we terminate on errors.
3086 2002-08-20  David Shaw  <dshaw@jabberwocky.com>
3088         * options.skel: Document no-include-attributes for
3089         keyserver-options.
3091         * keylist.c, keyedit.c, keyserver.c, sign.c: Some TODOs and
3092         comments.
3094         * export.c (do_export_stream): Fix noop bug in exporting sensitive
3095         revocation keys.
3097         * pkclist.c (do_edit_ownertrust): Comment out the option for
3098         showing trust paths until it can be implemented.
3100 2002-08-19  Werner Koch  <wk@gnupg.org>
3102         * getkey.c (get_user_id_native): Renamed to ..
3103         (get_user_id_printable): this.  Filter out all dangerous
3104         characters.  Checked all usages.
3105         (get_user_id_string_native): Renamed to..
3106         (get_user_id_string_printable): this.  Filter out all dangerous
3107         characters.  Checked all usages.
3108         * keyedit.c (show_basic_key_info): New.
3109         * keylist.c (print_fingerprint): New mode 3.
3110         * import.c (import_one): Use new function to display the user ID.
3112 2002-08-16  Timo Schulz  <ts@winpt.org>
3114         * g10.c (main): Enable opt.interactive.
3116         * import.c (import_one): Ask the user if the key shall be
3117         imported when the interactive mode is used. Useful to extract
3118         selected keys from a file.
3119         
3120 2002-08-16  Werner Koch  <wk@gnupg.org>
3122         * seckey-cert.c: Workaround to allow decryption of v3 keys created
3123         with a bug in the mpi_get_secure_buffer.
3125 2002-08-14  David Shaw  <dshaw@jabberwocky.com>
3127         * hkp.c (parse_hkp_index): Properly handle really large keys
3128         (5 digit key length) in HKP searches.
3130 2002-08-13  David Shaw  <dshaw@jabberwocky.com>
3132         * encode.c (encode_simple): Fix problem with using compression
3133         algo 2 and symmetric compressed files.
3135         * encode.c (encode_simple, encode_crypt): If we are not using a
3136         MDC, compress even if a file is already compressed.  This is to
3137         help against the chosen ciphertext attack.
3139         * pkclist.c (select_algo_from_prefs): Fix requested algorithm bug
3140         so the request succeeds even if the requested algorithm is not the
3141         first found.
3143         * cipher.c (write_header), encode.c (use_mdc, encode_simple,
3144         encode_crypt, encrypt_filter), g10.c (main): Be more eager to use
3145         a MDC.  We use a MDC if the keys directly support it, if the keys
3146         list AES (any) or TWOFISH anywhere in the prefs, or if the cipher
3147         chosen does not have a 64 bit blocksize.
3149 2002-08-08  David Shaw  <dshaw@jabberwocky.com>
3151         * options.skel: Some language tweaks, and remove the
3152         load-extension section for random gatherers.
3154         * keyring.c (create_tmp_file, rename_tmp_file): Create tmp files
3155         with user-only permissions, but restore the original permissions
3156         if the user has something special set.
3158         * openfile.c (copy_options_file): Create new options file
3159         (gpg.conf) with user-only permissions.
3161         * keydb.c (keydb_add_resource): Create new keyrings with user-only
3162         permissions.
3164         * tdbio.c (tdbio_set_dbname): Create new trustdbs with user-only
3165         permissions.
3167 2002-08-07  David Shaw  <dshaw@jabberwocky.com>
3169         * sig-check.c (signature_check2): Sanity check that the md has a
3170         context for the hash that the sig is expecting.  This can happen
3171         if a onepass sig header does not match the actual sig, and also if
3172         the clearsign "Hash:" header is missing or does not match the
3173         actual sig.
3175         * keyedit.c (menu_revsig): Properly show a uid is revoked without
3176         restarting gpg.  This is Debian bug 124219, though their supplied
3177         patch will not do the right thing.
3179         * main.h, tdbio.c (tdbio_set_dbname), misc.c (removed
3180         check_permissions), keydb.c (keydb_add_resource), g10.c (main,
3181         check_permissions): Significant reworking of the permission check
3182         mechanism.  The new behavior is to check everything in the homedir
3183         by checking the homedir itself.  If the user wants to put
3184         (possibly shared) keyrings outside the homedir, they are not
3185         checked.  The options file and any extension files are checked
3186         wherever they are, as well as their enclosing directories.  This
3187         is Debian bug 147760.
3188         
3189 2002-08-06  Stefan Bellon  <sbellon@sbellon.de>
3191         * g10.c (main): Use of EXTSEP_S in new gpg.conf string.
3192         * openfile.c (copy_options_file): Ditto.
3194 2002-08-06  David Shaw  <dshaw@jabberwocky.com>
3196         * options.h, g10.c (main), mainproc.c (proc_encrypted):
3197         --ignore-mdc-error option to turn a MDC check error into a
3198         warning.
3200         * encode.c (encode_crypt), g10.c (main), sign.c (sign_file,
3201         clearsign_file): Use the same --pgpX warning string everywhere to
3202         ease translations.
3204         * encode.c (write_pubkey_enc_from_list): Warn when using
3205         --throw-keyid with --pgpX.  Noted by Vedaal Nistar.
3207         * revoke.c (export_minimal_pk, gen_desig_revoke, gen_revoke):
3208         Export a minimal pk along with the revocation cert when in --pgpX
3209         mode so that PGP can import it.
3211 2002-08-06  Werner Koch  <wk@gnupg.org>
3213         * options.skel: Changed comments.
3215         * g10.c (main): Try to use "gpg.conf" as default option file.
3216         * openfile.c (copy_options_file): Changed name of created file.
3218 2002-08-02  Werner Koch  <wk@gnupg.org>
3220         * Makefile.am (LDFLAGS): Removed DYNLINK_LDFLAGS.
3222 2002-07-30  David Shaw  <dshaw@jabberwocky.com>
3224         * options.h, g10.c (main), mainproc.c (proc_encrypted): Return a
3225         decryption failed error if a MDC does not verify.  Warn if a MDC
3226         is not present (can disable via --no-mdc-warning).
3228         * exec.c (exec_write), g10.c (main), keyserver.c
3229         (keyserver_spawn): Use new DISABLE_KEYSERVER_PATH rather than
3230         FIXED_EXEC_PATH.
3232 2002-07-28  David Shaw  <dshaw@jabberwocky.com>
3234         * sig-check.c (do_check): Properly validate v4 sigs with no hashed
3235         section at all.
3237 2002-07-25  Werner Koch  <wk@gnupg.org>
3239         * delkey.c (do_delete_key): Always allow to delete a key in batch mode
3240         when specified by fingerprint.  Suggested by Enzo Michelangeli.
3242 2002-07-25  David Shaw  <dshaw@jabberwocky.com>
3244         * keyedit.c (menu_revsig): Change "revsig" to honor selected uids
3245         so the user can revoke sigs from particular uids only.
3247         * keylist.c (list_keyblock_print): Don't display expired uids in
3248         --list-keys unless -v and not --list-sigs (just like revoked
3249         uids).
3251         * exec.c, export.c, import.c, keyedit.c, keyserver.c, misc.c:
3252         "Warning" -> "WARNING"
3254 2002-07-24  David Shaw  <dshaw@jabberwocky.com>
3256         * main.h, import.c (parse_import_options, fix_hkp_corruption,
3257         import_one, delete_inv_parts), g10.c (main): New import-option
3258         "repair-hkp-subkey-bug", which repairs as much as possible the HKP
3259         mangling multiple subkeys bug.  It is on by default for keyserver
3260         receives, and off by default for regular --import.
3262         * main.h, import.c (import, import_one, delete_inv_parts), hkp.c
3263         (hkp_ask_import), keyserver.c (keyserver_spawn): Use keyserver
3264         import options when doing keyserver receives.
3266         * options.h, exec.h, exec.c (set_exec_path, exec_write), g10.c
3267         (main), keyserver.c (keyserver_spawn): If the user does not use
3268         "exec-path", completely replace $PATH with GNUPG_LIBEXECDIR before
3269         calling the keyserver helper.  If the user does use "exec-path",
3270         append GNUPG_LIBEXECDIR after the specified path.
3272 2002-07-23  David Shaw  <dshaw@jabberwocky.com>
3274         * import.c (parse_import_options), export.c
3275         (parse_export_options): Fix offset problem with reversed ("no-")
3276         meanings.
3278         * import.c (delete_inv_parts): Discard subkey signatures (0x18 and
3279         0x28) if found in the userid section of the key.
3281         * sig-check.c (signature_check2): Signatures made by invalid
3282         subkeys (bad/missing binding sig) are also invalid.
3284         * keylist.c (print_fingerprint): Show the primary as well as the
3285         secondary key fingerprint in modes 1 & 2.
3287 2002-07-22  David Shaw  <dshaw@jabberwocky.com>
3289         * options.h, main.h, g10.c (main), import.c
3290         (parse_import_options, delete_inv_parts), keyserver.c
3291         (parse_keyserver_options): add new --import-options option.  The
3292         only current flag is "allow-local-sigs".
3294         * g10.c (main): Don't disable MDC in pgp7 mode.
3296         * options.h, g10.c (main), keyserver.c (parse_keyserver_options):
3297         Remove old keyserver-option include-attributes now that there is
3298         an export-option for the same thing.
3300         * options.h, main.h, export.c (parse_export_options,
3301         do_export_stream), g10.c (main): add new --export-options option.
3302         Current flags are "include-non-rfc", "include-local-sigs",
3303         "include-attributes", and "include-sensitive-revkeys".
3305         * options.h, hkp.c (hkp_export), keyserver.c
3306         (parse_keyserver_options, keyserver_spawn): try passing unknown
3307         keyserver options to export options, and if successful, use them
3308         when doing a keyserver --send-key.
3310         * build-packet.c (build_sig_subpkt): We do not generate
3311         SIGSUBPKT_PRIV_VERIFY_CACHE anymore.
3313         * revoke.c (gen_desig_revoke): Lots more comments about including
3314         sensitive revkeys along with the revocation sig itself.
3316         * keyserver.c (parse_keyserver_options): Simpler implementation
3317         that can skip one pass over the options.
3319 2002-07-18  David Shaw  <dshaw@jabberwocky.com>
3321         * keyedit.c (keyedit_menu, menu_addrevoker): Allow specifying
3322         "sensitive" as an argument to an addrevoker command.  This sets
3323         the 0x40 sensitive revoker flag.
3325         * revoke.c (gen_desig_revoke): When generating a designated
3326         revocation, include the direct key sig that contains the
3327         designated revoker subpacket.  This allows sensitive designated
3328         revocation subpackets to be exported.  Also indicate which
3329         revokers are sensitive in the first place.
3331 2002-07-17  David Shaw  <dshaw@jabberwocky.com>
3333         * keyedit.c (show_key_with_all_names_colon): The 0x40 class bit in
3334         a designated revoker means "sensitive", not "local".  It's
3335         exportable under the right circumstances.
3337         * main.h, options.h, export.c (do_export_stream), g10.c (main),
3338         hkp.c (hkp_export), keyserver.c (keyserver_spawn: Add a flag to
3339         skip attribute packets and their signatures while exporting.  This
3340         is to accomodate keyservers (pksd again) that choke on attributes.
3341         Use keyserver-option "include-attributes" to control it.  This
3342         defaults to ON (i.e. don't skip).
3344 2002-07-09  David Shaw  <dshaw@jabberwocky.com>
3346         * options.h, keyserver.c (parse_keyserver_uri, keyserver_spawn,
3347         keyserver_work), hkp.c (hkp_ask_import, hkp_export, hkp_search):
3348         Use a much more strict reading of RFC-2396 for the keyserver URIs.
3349         Specifically, don't try and be smart about checking the value of
3350         ":port" so long as it is all digits, and properly handle opaque
3351         data (those scheme specific parts that do not start with "//").
3353 2002-07-04  David Shaw  <dshaw@jabberwocky.com>
3355         * photoid.c (get_default_photo_command, show_photos): Honor
3356         FIXED_PHOTO_VIEWER and DISABLE_PHOTO_VIEWER.
3358         * mainproc.c (check_sig_and_print): Use --show-photos to show
3359         photos when verifying a sig made by a key with a photo.
3361         * keyserver.c (parse_keyserver_uri): Properly parse a URI with no
3362         :port section and an empty file path, but with a terminating '/'.
3363         (keyserver_work): Honor DISABLE_KEYSERVER_HELPERS.
3365         * hkp.c (hkp_ask_import): Display keyserver URI as a URI, but only
3366         if verbose.
3368         * exec.c, g10.c: USE_EXEC_PATH -> FIXED_EXEC_PATH
3370 2002-07-03  David Shaw  <dshaw@jabberwocky.com>
3372         * exec.h, exec.c (set_exec_path, exec_write), g10.c (main): If
3373         USE_EXEC_PATH is defined at compile time, use it to lock the
3374         exec-path and not allow the user to change it.
3376 2002-07-02  David Shaw  <dshaw@jabberwocky.com>
3378         * options.h, g10.c (main), keyserver.c (keyserver_refresh):
3379         Maintain and use the original keyserver URI for cosmetics rather
3380         than trying to recreate it when needed.
3382         * mainproc.c (check_sig_and_print): Properly disregard expired
3383         uids.  Make sure that the first uid listed is a real uid and not
3384         an attribute (attributes should only be listed in the "aka"
3385         section).  When there are no valid textual userids, try for an
3386         invalid textual userid before using any attribute uid.
3388 2002-07-01  David Shaw  <dshaw@jabberwocky.com>
3390         * options.skel: Fix a few typos, clarify "group", and remove
3391         sample photo viewers for Win32 since they are the defaults now.
3393         * parse-packet.c (make_attribute_uidname), keylist.c
3394         (dump_attribs): Fix two typecast warnings.
3396         * packet.h, build-packet.c (build_attribute_subpkt), exec.c
3397         (expand_args), mkdtemp.c (mkdtemp), photoid.c
3398         (parse_image_header): Fix some signedness compiler warnings.
3400 2002-07-01  Werner Koch  <wk@gnupg.org>
3402         * photoid.c (get_default_photo_command): Also use __MINGW32__
3403         instead of HAVE_DOSISH_SYSTEM.
3405         * encode.c (encode_symmetric): Do not use the new encryption code.
3407 2002-06-30  Werner Koch  <wk@gnupg.org>
3409         * photoid.c: Use __MINGW32__ to include windows because
3410         HAVE_DOSISH_SYSTEM is also set for OS/2 and plain DOS.  Provide
3411         constant missing in older mingw installations. 
3413 2002-06-21  Stefan Bellon  <sbellon@sbellon.de>
3415         * g10.c [__riscos__]: Moved RISC OS specific stuff to util/riscos.c
3416         and include/util.h.
3418         * gpgv.c [__riscos__]: Likewise.
3420 2002-06-20  David Shaw  <dshaw@jabberwocky.com>
3422         * keydb.h, pkclist.c (select_algo_from_prefs): Allow passing a
3423         suggested algorithm which will be used if available.
3425         * encode.c (encode_crypt, encrypt_filter), sign.c (sign_file): Use
3426         new select_algo_from_prefs feature to check if forcing an
3427         algorithm would violate the recipient preferences.
3429         * photoid.c (get_default_photo_command, show_photos): Use
3430         different default viewers on different platforms.  Currently we
3431         have Win 9x, Win NT (2k, xp), Mac OSX, RISC OS, and "everybody
3432         else".  These are #ifdefs as much as possible to avoid clutter.
3434         * g10.c (strusage, build_list), keyedit.c (show_prefs), main.h,
3435         misc.c (compress_algo_to_string, check_compress_algo), pkclist.c
3436         (algo_available), keygen.c (keygen_set_std_prefs): New
3437         algo_to_string and check functions for compress algorithms.
3439 2002-06-20  Werner Koch  <wk@gnupg.org>
3441         * misc.c (setsysinfo): Removed a #warning for Alpha's uniligedn
3442         trap disabling - it is quite possible that this is a debug relict.
3444 2002-06-20  Stefan Bellon  <sbellon@sbellon.de>
3446         * g10.c [__riscos__]: Added image file system feature.
3448         * gpgv.c [__riscos__]: Added image file system feature.
3450         * photoid.c (show_photos) [__riscos__]: Set RISC OS filetype of
3451         photo id according to MIME type.
3453 2002-06-19  David Shaw  <dshaw@jabberwocky.com>
3455         * hkp.c (parse_hkp_index): Don't leak memory when failing out of a
3456         bad HKP keyserver.
3458         * g10.c (add_notation_data): Relax slightly the rules as to what
3459         can go into a notation name - 2440 allows "@", for example.
3461 2002-06-17  David Shaw  <dshaw@jabberwocky.com>
3463         * import.c (clean_subkeys, import_one): Only allow at most 1
3464         binding sig and at most 1 revocation sig on a subkey, as per
3465         2440:11.1.
3467         * hkp.c (parse_hkp_index, hkp_search): Error if the keyserver
3468         returns an unparseable HKP response.
3470 2002-06-15  David Shaw  <dshaw@jabberwocky.com>
3472         * keyedit.c (show_key_with_all_names), keylist.c
3473         (list_keyblock_print): Show "[expired]" before expired uids.
3475         * keyedit.c (show_key_with_all_names_colon), mainproc.c
3476         (list_node), keylist.c (list_keyblock_colon): Show flag 'e' for
3477         expired user ids.  Use "uat" for user attribute packets instead of
3478         "uid".  Also use '<count> <length>' rather than the fake user id
3479         string on attributes.
3481         * keygen.c (keygen_add_revkey): Remove unused code.
3483         * misc.c (check_permissions): Check directory permissions
3484         properly - they are not special files.
3486         * pkclist.c (expand_id, expand_group, build_pk_list): When
3487         expanding groups before building a pk list, inherit flags from the
3488         original pre-expanded string.
3490         * pubkey-enc.c (is_algo_in_prefs): Don't use prefs from expired
3491         uids.
3493 2002-06-14  David Shaw  <dshaw@jabberwocky.com>
3495         * free-packet.c (copy_signature): Properly copy a signature that
3496         carries a revocation key on it.
3498         * pkclist.c (expand_id, expand_group, build_pk_list): Groups now
3499         work properly when used in the "Enter the user ID" prompt.
3501 2002-06-14  David Shaw  <dshaw@jabberwocky.com>
3503         * keyedit.c (show_key_with_all_names): Display warning if a user
3504         tries to show prefs on a v3 key with a v3 selfsig.
3506         * kbnode.c (dump_kbnode): Show if a uid is expired.
3508         * import.c (merge_blocks, import_revoke_cert): Show user ID
3509         receiving a revocation certificate.
3511         * free-packet.c (cmp_user_ids): Properly compare attribute ids.
3513         * pkclist.c (expand_groups): Maintain the strlist flags while
3514         expanding.  Members of an expansion inherit their flags from the
3515         expansion key.
3517         * options.h, cipher.c (write_header), g10.c (main), keygen.c
3518         (keygen_set_std_prefs): remove the personal_mdc flag.  It no
3519         longer serves a purpose now that the personal preference lists are
3520         split into cipher/digest/zip.
3522 2002-06-14  Timo Schulz  <ts@winpt.org>
3524         * skclist.c (is_insecure): Implemented.
3525         
3526 2002-06-12  David Shaw  <dshaw@jabberwocky.com>
3528         * keyserver.c (keyserver_spawn): Properly handle PROGRAM responses
3529         when they have a CRLF ending.  Noted by Keith Ray.
3531         * keyserver.c (keyserver_spawn): Handle CRLF endings from
3532         keyserver helpers.  Also don't leak the last line worth of memory
3533         from the keyserver response.
3535         * main.h, misc.c (deprecated_warning): New function to warn about
3536         deprecated options and commands.
3538         * g10.c (main), keyserver-internal.h, keyserver.c
3539         (parse_keyserver_uri): Use new deprecated function to warn about
3540         honor-http-proxy, auto-key-retrieve, and x-broken-hkp.
3542 2002-06-11  David Shaw  <dshaw@jabberwocky.com>
3544         * Makefile.am: link gpg with NETLIBS for the built-in HKP access.
3546 2002-06-10  David Shaw  <dshaw@jabberwocky.com>
3548         * options.h, keyserver.c (keyserver_opts), g10.c (main): New
3549         keyserver option "include-subkeys".  This feature already existed,
3550         but now can be turned off.  It defaults to on.
3552         * options.h, keyserver.c (parse_keyserver_options,
3553         keyserver_spawn): There are now enough options to justify making a
3554         structure for the keyserver options rather than a page of
3555         if-then-else-if-then-etc.
3557         * getkey.c (merge_keys_and_selfsig, merge_selfsigs_main): Fix bug
3558         in calculating key expiration dates.
3560 2002-06-09  David Shaw  <dshaw@jabberwocky.com>
3562         * keydb.h, getkey.c (get_user_id_native), import.c (import_one):
3563         Display user ID while importing a key.  Note this applies to both
3564         --import and keyserver --recv-keys.
3566         * exec.c (exec_finish): Log unnatural exit (core dump, killed
3567         manually, etc) for fork/exec/pipe child processes.
3569 2002-06-08  Timo Schulz  <ts@winpt.org>
3571         * encode.c (encode_symmetric): Disable the compat flag
3572         when the expert mode is enabled.
3573         
3574 2002-06-07  David Shaw  <dshaw@jabberwocky.com>
3576         * options.skel, options.h, main.h, keydb.h, pkclist.c
3577         (build_pk_list, expand_groups), g10.c (main, add_group): Add new
3578         "group" command to allow one name to expand into multiple keys.
3579         For simplicity, and to avoid potential loops, we only expand once
3580         - you can't make an alias that points to an alias.
3582         * main.h, g10.c (main), keygen.c (build_personal_digest_list):
3583         Simplify the default digest list - there is really no need for the
3584         other hashes since they will never be used after SHA-1 in the
3585         list.
3587         * options.skel, options.h, g10.c (main), hkp.c (hkp_ask_import,
3588         hkp_export, hkp_search), keyserver.c (parse_keyserver_options,
3589         parse_keyserver_uri, keyserver_work, keyserver_refresh): Make the
3590         "x-broken-hkp" keyserver scheme into keyserver-option
3591         "broken-http-proxy".  Move honor_http_proxy into
3592         keyserver_options.  Canonicalize the three variations of "hkp",
3593         "x-hkp", and "x-broken-hkp" into "hkp".
3595 2002-06-07  Stefan Bellon  <sbellon@sbellon.de>
3597         * g10.c [__riscos__]: Added --attribute-file to do the same as
3598         --attribute-fd, but with a filename not a fd as argument.
3599         Added magic symbol for RISC OS to use different memory management.
3601         * gpgv.c [__riscos__]: Added magic symbol for RISC OS to use
3602         different memory management.
3604 2002-06-06  David Shaw  <dshaw@jabberwocky.com>
3606         * main.h, g10.c (main), keygen.c (build_personal_digest_list): Put
3607         in a default digest preference list consisting of SHA-1, followed
3608         by every other installed digest except MD5.  Note this is the same
3609         as having no digest preference at all except for SHA-1 being
3610         favored.
3612         * options.h, g10.c (main), keygen.c (keygen_set_std_prefs),
3613         pkclist.c (select_algo_from_prefs): Split
3614         --personal-preference-list into three:
3615         --personal-{cipher|digest|compress}-preferences.  This allows a
3616         user to set one without affecting another (i.e. setting only a
3617         digest pref doesn't imply an empty cipher pref).
3619         * exec.c (exec_read): This is a safer way of guessing the return
3620         value of system().  Noted by Stefan Bellon.
3622 2002-06-05  David Shaw  <dshaw@jabberwocky.com>
3624         * hkp.c (parse_hkp_index): Be more robust with keyservers
3625         returning very unparseable responses.
3627         * exec.c (exec_read): Catch and display an error when the remote
3628         process exits unnaturally (i.e. segfault) so the user knows what
3629         happened.  Also fix exec_write stub which has a different number
3630         of arguments now.
3632 2002-06-05  Timo Schulz  <ts@winpt.org>
3634         * encode.c (encode_simple): Ignore the new mode for RFC1991.
3635         * mainproc.c (symkey_decrypt_sesskey): Better check for weird
3636         keysizes.
3637         
3638 2002-06-05  Timo Schulz  <ts@winpt.org>
3640         * encode.c (encode_sesskey): New.
3641         (encode_simple): Use it here. But by default we use the compat
3642         mode which supress to generate encrypted session keys.
3643         
3644 2002-06-05  Timo Schulz  <ts@winpt.org>
3646         * mainproc.c (symkey_decrypt_sesskey): New.
3647         (proc_symkey_enc): Support for encrypted session keys.
3648         
3649 2002-06-04  David Shaw  <dshaw@jabberwocky.com>
3651         * sign.c (hash_for, sign_file): When encrypting and signing at the
3652         same time, consult the various hash prefs to pick a hash algorithm
3653         to use.  Pass in a 160-bit hint if any of the signing keys are
3654         DSA.
3656         * keydb.h, pkclist.c (select_algo_from_prefs, algo_available):
3657         Pass a "hints" opaque pointer in to let the caller give hints as
3658         to what algorithms would be acceptable.  The only current hint is
3659         for PREFTYPE_HASH to require a 160-bit hash for DSA.  Change all
3660         callers in encode.c (encode_crypt, encrypt_filter) and sign.c
3661         (sign_file).  If we settle on MD5 as the best algorithm based
3662         solely on recepient keys and SHA1 is also a possibility, use SHA1
3663         unless the user intentionally chose MD5.  This is as per 2440:13.
3665         * exec.c (make_tempdir): Fix duplicated filename problem.
3667 2002-06-03  David Shaw  <dshaw@jabberwocky.com>
3669         * packet.h, parse-packet.c (enum_sig_subpkt): Report back from
3670         enum_sig_subpkt when a subpacket is critical and change all
3671         callers in keylist.c (show_policy_url, show_notation), mainproc.c
3672         (print_notation_data), and pkclist.c (do_show_revocation_reason).
3674         * keylist.c (show_policy_url, show_notation): Display if the
3675         policy or notation is critical.
3676         
3677 2002-06-03  David Shaw  <dshaw@jabberwocky.com>
3679         * main.h, g10.c (main), keylist.c (dump_attribs, set_attrib_fd,
3680         list_keyblock_print, list_keyblock_colon), status.h, status.c
3681         (get_status_string): New --attribute-fd feature to dump the
3682         contents of attribute subpackets for frontends.  If --status-fd is
3683         also used, then a new status tag ATTRIBUTE is provided for each
3684         subpacket.
3686         * packet.h, getkey.c (fixup_uidnode, merge_selfsigs_main,
3687         merge_selfsigs_subkey), parse-packet.c (setup_user_id): Keep track
3688         of the expiration time of a user ID, and while we're at it, use
3689         the expired flag from the selfsig rather than reparsing the
3690         SIG_EXPIRE subpacket.
3692         * photoid.c (generate_photo_id): When adding a new photo ID,
3693         showing the photo for confirmation is not safe when noninteractive
3694         since the "user" may not be able to dismiss a viewer window.
3695         Noted by Timo Schulz.
3696         
3697 2002-06-03  David Shaw  <dshaw@jabberwocky.com>
3699         * options.skel: Sample photo viewers for Win32.
3701         * misc.c (pct_expando): Use the seckey for %k/%K if the pubkey is
3702         not available.
3704         * photoid.h, photoid.c (show_photos): Include the seckey in case a
3705         user tries to view a photo on a secret key, and change all callers
3706         in keyedit.c (menu_showphoto), keylist.c (list_keyblock_print),
3707         and photoid.c (generate_photo_id).
3709 2002-06-02  David Shaw  <dshaw@jabberwocky.com>
3711         * photoid.c (show_photos): Work properly when not called with a
3712         public key.
3714 2002-05-31  David Shaw  <dshaw@jabberwocky.com>
3716         * sign.c (mk_notation_and_policy): Free unneeded buffer.
3718         * hkp.c (parse_hkp_index): Properly handle the '&' character
3719         (i.e. "&amp;") in HKP responses.
3721         * getkey.c (merge_selfsigs_main): Fix reversed expiration time
3722         check with self-sigs.
3724         * keyedit.c (sign_uids): When making a new self-sig on a v3 key,
3725         make a v3 self-sig unless it is currently a v3 self-sig being
3726         promoted to v4.
3728 2002-05-31  Timo Schulz  <ts@winpt.org>
3730         * pkclist.c (do_show_revocation_reason): Don't use capital
3731         letters for non-interactive output.
3732         (show_revocation_reason): Now it is global.
3733         * pubkey-enc.c (get_it): Show if the key has been revoked.
3734         
3735 2002-05-30  David Shaw  <dshaw@jabberwocky.com>
3737         * sign.c (write_signature_packets, sign_file, clearsign_file,
3738         sign_symencrypt_file): Make a v4 signature if a policy URL or
3739         notation is set, unless v3 sigs are forced via rfc1991 or
3740         force-v3-sigs.  Also remove some doubled code and clarify an error
3741         message (we don't sign in PGP2 mode - just detach-sign).
3743         * parse-packet.c (parse_one_sig_subpkt): Add KS_FLAGS to the "any
3744         size" section.
3746 2002-05-29  David Shaw  <dshaw@jabberwocky.com>
3748         * keygen.c (keygen_set_std_prefs, add_feature_mdc): Use "mdc" and
3749         "no-mdc" in the prefs string to allow switching on and off the MDC
3750         feature.  This is needed to properly export a key from GnuPG for
3751         use on PGP which does not support MDC - without this, MDC-capable
3752         implementations will still try and generate MDCs which will break
3753         PGP.
3755         * keygen.c (keygen_get_std_prefs): Show "[mdc]" in prefs string if
3756         it is enabled.
3758         * options.h, g10.c (main), cipher.c (write_header), keygen.c
3759         (keygen_set_std_prefs): For consistency, allow the user to specify
3760         mdc/no-mdc in the --personal-preference-list.  If disabled, it
3761         acts just like --disable-mdc.
3763 2002-05-29  David Shaw  <dshaw@jabberwocky.com>
3765         * options.h, exec.c: Add some debugging info, using the 1024 debug
3766         flag.
3768         * exec.c (win_system): New system()-like function for win32 that
3769         does not return until the child process terminates.  Of course,
3770         this doesn't help if the process itself exits before it is
3771         finished.
3773 2002-05-29  Werner Koch  <wk@gnupg.org>
3775         * encode.c (encode_simple): Intialize PKT when --no-literal is used.
3777         * keyedit.c (show_key_with_all_names_colon): Renamed the record
3778         for revocation keys to "rvk".
3780 2002-05-27  Werner Koch  <wk@gnupg.org>
3782         * keyedit.c (show_key_with_all_names_colon): New.
3783         (show_key_with_all_names): Divert to new function when required.
3784         Sanitize printing of revoker name.
3786 2002-05-27  David Shaw  <dshaw@jabberwocky.com>
3788         * build-packet.c (build_sig_subpkt): Handle setting sig flags for
3789         certain subpacket types (notation, policy url, exportable,
3790         revocable).  keyedit.c (sign_mk_attrib): Flags no longer need to
3791         be set here.
3793         * packet.h, parse-packet.c (parse_one_sig_subpkt), build-packet.c
3794         (build_sig_subpkt): Call parse_one_sig_subpkt to sanity check
3795         buffer lengths before building a sig subpacket.
3797 2002-05-26  David Shaw  <dshaw@jabberwocky.com>
3799         * sign.c (mk_notation_and_policy): Include secret key to enable %s
3800         expandos, and pass notations through pct_expando as well.
3802         * main.h, misc.c (pct_expando): Add %s and %S expandos for
3803         signer's keyid.
3805 2002-05-25  David Shaw  <dshaw@jabberwocky.com>
3807         * g10.c (strusage, build_list): Add compress algorithms to
3808         --version list.  Show algorithm numbers when --verbose --version
3809         is done.
3811 2002-05-22  David Shaw  <dshaw@jabberwocky.com>
3813         * options.h, main.h, keygen.c (keygen_set_set_prefs,
3814         keygen_get_std_prefs, keygen_upd_std_prefs), keyedit.c
3815         (keyedit_menu), g10.c (main), pkclist.c (select_algo_from_prefs):
3816         Add --personal-preference-list which allows the user to factor in
3817         their own preferred algorithms when the preference lists are
3818         consulted.  Obviously, this does not let the user violate a
3819         recepient's preferences (and the RFC) - this only influences the
3820         ranking of the agreed-on (and available) algorithms from the
3821         recepients.  Suggested by David Hollenberg.
3823         * options.h, keygen.c (keygen_set_std_prefs), g10.c (main): Rename
3824         --preference-list to --default-preference-list (as that is what it
3825         really is), and make it a true default in that if the user selects
3826         "default" they get this list and not the compiled-in list.
3828 2002-05-22  Werner Koch  <wk@gnupg.org>
3830         * g10.c (main): Add missing LF in a info printout and made it
3831         translatable.  Noted by Michael Tokarev.
3833 2002-05-21  Werner Koch  <wk@gnupg.org>
3835         * g10.c (main): Removed the undef of USE_SHM_COPROCESSING which
3836         was erroneously introduced on 2002-01-09.
3838         * signal.c (got_fatal_signal): Don't write the Nul to stderr.
3839         Reported by David Hollenberg.
3841 2002-05-18  David Shaw  <dshaw@jabberwocky.com>
3843         * main.h, g10.c (main), revoke.c (gen_desig_revoke): Generate a
3844         designated revocation via --desig-revoke
3846         * keyedit.c (keyedit_menu, menu_addrevoker): New "addrevoker"
3847         command to add a designated revoker to a key.
3849 2002-05-17  David Shaw  <dshaw@jabberwocky.com>
3851         * gpgv.c: Add stub for get_ownertrust().
3853         * g10.c (main): --allow-freeform-uid should be implied by
3854         OpenPGP.  Add --no-allow-freeform-uid.
3856         * keyedit.c (sign_uids): Issue a warning when signing a
3857         non-selfsigned uid.
3859         * getkey.c (merge_selfsigs_main): If a key has no selfsigs, and
3860         allow-non-selfsigned-uid is not set, still try and make the key
3861         valid by checking all uids for a signature from an ultimately
3862         trusted key.
3864 2002-05-16  David Shaw  <dshaw@jabberwocky.com>
3866         * main.h, keygen.c (keygen_add_revkey): Add revocation key
3867         subpackets to a signature (callable by
3868         make_keysig_packet). (write_direct_sig): Write a 1F direct key
3869         signature. (parse_revocation_key): Parse a string in
3870         algo:fpr:sensitive format into a revocation
3871         key. (get_parameter_revkey, do_generate_keypair): Call above
3872         functions when prompted from a batch key generation file.
3874         * build-packet.c (build_sig_subpkt): Allow multiple revocation key
3875         subpackets in a single sig.
3877         * keydb.h, getkey.c (get_seckey_byfprint): Same as
3878         get_pubkey_byfprint, except for secret keys.  We only know the
3879         fingerprint of a revocation key, so this is needed to retrieve the
3880         secret key needed to issue a revokation.
3882         * packet.h, parse-packet.c (parse_signature, parse_revkeys): Split
3883         revkey parsing off into a new function that can be used to reparse
3884         after manipulating the revkey list.
3886         * sign.c (make_keysig_packet): Ability to make 1F direct key
3887         signatures.
3889 2002-05-15  David Shaw  <dshaw@jabberwocky.com>
3891         * options.skel: keyserver.pgp.com is gone, so list pgp.surfnet.nl
3892         as a sample LDAP server instead.
3894         * getkey.c (merge_selfsigs_main): Properly handle multiple
3895         revocation keys in a single packet.  Properly handle revocation
3896         keys that are in out-of-order packets.  Remove duplicates in
3897         revocation key list.
3899 2002-05-14  Timo Schulz   <ts@winpt.org>
3901         * exec.c (make_tempdir) [MINGW32]: Added missing '\'.
3902         
3903 2002-05-14  Stefan Bellon  <sbellon@sbellon.de>
3905         * exec.c (make_tempdir): Make use of EXTSEP_S instead of hardcoded
3906         dot as extension separator.
3908 2002-05-13  David Shaw  <dshaw@jabberwocky.com>
3910         * photoid.c (show_photos): Use the long keyid as the filename for
3911         the photo.  Use the short keyid as the filename on 8.3 systems.
3913         * exec.h, exec.c (make_tempdir, exec_write, exec_finish): Allow
3914         caller to specify filename.  This should make things easier on
3915         windows and macs where the file extension is required, but a whole
3916         filename is even better.
3918         * keyedit.c (show_key_with_all_names, show_prefs): Show proper
3919         prefs for a v4 key uid with no selfsig at all.
3921         * misc.c (check_permissions): Don't check permissions on
3922         non-normal files (pipes, character devices, etc.)
3924 2002-05-11  Werner Koch  <wk@gnupg.org>
3926         * mainproc.c (proc_symkey_enc): Avoid segv in case the parser
3927         encountered an invalid packet.
3929         * keyserver.c (keyserver_export): Get confirmation before sending
3930         all keys.
3932 2002-05-10  Stefan Bellon  <sbellon@sbellon.de>
3934         * g10.c, hkp.c, keyedit.c, keyserver.c: Replaced all occurrances
3935         of strcasecmp with ascii_strcasecmp and all occurrances of
3936         strncasecmp with ascii_memcasecmp.
3938 2002-05-10  David Shaw  <dshaw@jabberwocky.com>
3940         * packet.h, getkey.c (fixup_uidnode), keyedit.c (show_prefs): Show
3941         assumed prefs for hash and compression as well as the cipher pref.
3942         Show assumed prefs if there are no prefs at all on a v4
3943         self-signed key.
3945         * options.h, g10.c (main), sign.c (make_keysig_packet): New
3946         --cert-digest-algo function to override the default key signing
3947         hash algorithm.
3949 2002-05-09  David Shaw  <dshaw@jabberwocky.com>
3951         * getkey.c (merge_selfsigs_main): Make sure the revocation key
3952         list starts clean as this function may be called more than once
3953         (e.g. from functions in --edit).
3955         * g10.c, encode.c (encode_crypt), sign.c (sign_file,
3956         sign_symencrypt_file): Make --compress-algo work like the
3957         documentation says.  It should be like --cipher-algo and
3958         --digest-algo in that it can override the preferences calculation
3959         and impose the setting the user wants.  No --compress-algo setting
3960         allows the usual preferences calculation to take place.
3962         * main.h, compress.c (compress_filter): use new
3963         DEFAULT_COMPRESS_ALGO define, and add a sanity check for compress
3964         algo value.
3966 2002-05-08  David Shaw  <dshaw@jabberwocky.com>
3968         * pkclist.c (select_algo_from_prefs): There is an assumed
3969         compression preference for uncompressed data.
3971 2002-05-07  David Shaw  <dshaw@jabberwocky.com>
3973         * options.h, g10.c (main), getkey.c (finish_lookup), pkclist.c
3974         (algo_available): --pgp7, identical to --pgp6 except that it
3975         permits a few algorithms that PGP 7 added: AES128, AES192, AES256,
3976         and TWOFISH.  Any more of these --pgpX flags, and it'll be time to
3977         start looking at a generic --emulate-pgp X option.
3979         * export.c (do_export_stream): Warn the user when exporting a
3980         secret key if it or any of its secret subkeys are protected with
3981         SHA1 while simple_sk_checksum is set.
3983         * parse-packet.c (parse_key): Show when the SHA1 protection is
3984         used in --list-packets.
3986         * options.h, build-packet.c (do_comment), g10.c (main): Rename
3987         --no-comment as --sk-comments/--no-sk-comments (--no-comment still
3988         works) and make the default be --no-sk-comments.
3990 2002-05-07  Werner Koch  <wk@gnupg.org>
3992         * keygen.c (get_parameter_algo): Never allow generation of the
3993         deprecated RSA-E or RSA-S flavors of PGP RSA.
3994         (ask_algo): Allow generation of RSA sign and encrypt in expert
3995         mode.  Don't allow ElGamal S+E unless in expert mode.
3996         * helptext.c: Added entry keygen.algo.rsa_se.
3998 2002-05-07  David Shaw  <dshaw@jabberwocky.com>
4000         * keyedit.c (sign_uids): If --expert is set, allow re-signing a
4001         uid to promote a v3 self-sig to a v4 one.  This essentially
4002         deletes the old v3 self-sig and replaces it with a v4 one.
4004         * packet.h, parse-packet.c (parse_key), getkey.c
4005         (merge_keys_and_selfsig, merge_selfsigs_main): a v3 key with a v4
4006         self-sig must never let the v4 self-sig express a key expiration
4007         time that extends beyond the original v3 expiration time.
4009 2002-05-06  David Shaw  <dshaw@jabberwocky.com>
4011         * keyedit.c (sign_uids): When making a self-signature via "sign"
4012         don't ask about sig level or expiration, and include the usual
4013         preferences and such for v4 self-sigs.  (menu_set_preferences):
4014         Convert uids from UTF8 to native before printing.
4016         * keyedit.c (sign_uids): Convert uids from UTF8 to native before
4017         printing.  (menu_set_primary_uid): Show error if the user tries to
4018         make a uid with a v3 self-sig primary.
4020 2002-05-05  David Shaw  <dshaw@jabberwocky.com>
4022         * import.c (import_one): When merging with a key we already have,
4023         don't let a key conflict (same keyid but different key) stop the
4024         import: just skip the bad key and continue.
4026         * exec.c (make_tempdir): Under Win32, don't try environment
4027         variables for temp directories - GetTempDir tries environment
4028         variables internally, and it's better not to second-guess it in
4029         case MS adds some sort of temp dir handling to Windows at some
4030         point.
4032 2002-05-05  Timo Schulz  <ts@winpt.org>
4034         * mainproc.c (proc_symkey_enc): Don't ask for a passphrase
4035         in the list only mode.
4036         
4037 2002-05-05  David Shaw  <dshaw@jabberwocky.com>
4039         * keyserver.c (keyserver_refresh): --refresh-keys implies
4040         --merge-only so as not to import keys with keyids that match the
4041         ones being refreshed.  Noted by Florian Weimer.
4043 2002-05-04  Stefan Bellon  <sbellon@sbellon.de>
4045         * free-packet.c (copy_public_key): Don't call m_alloc(0), therefore
4046         added consistency check for revkey and numrefkeys.
4048         * getkey.c (check_revocation_keys): Added consistency check for
4049         revkey and numrefkeys.
4051         * keyedit.c (show_key_with_all_names): Likewise.
4053 2002-05-03  David Shaw  <dshaw@jabberwocky.com>
4055         * photoid.c: Provide default image viewer for Win32.
4057         * misc.c (pct_expando): %t means extension, not name ("jpg", not
4058         "jpeg").
4060         * keyserver.c (keyserver_spawn), photoid.c (show_photos), exec.h,
4061         exec.c: Allow the caller to determine the temp file extension when
4062         starting an exec_write and change all callers.
4064         * keyedit.c (sign_uids): Nonrevocable key signatures cause an
4065         automatic promotion to v4.
4067         * exec.c: Provide stubs for exec_ functions when NO_EXEC is
4068         defined.
4070 2002-05-02  David Shaw  <dshaw@jabberwocky.com>
4072         * photoid.h, photoid.c (parse_image_header, image_type_to_string):
4073         Useful functions to return data about an image.
4075         * packet.h, parse-packet.c (make_attribute_uidname,
4076         parse_attribute_subpkts, parse_attribute), photoid.h, photoid.c
4077         (show_photos): Handle multiple images in a single attribute
4078         packet.
4080         * main.h, misc.c (pct_expando), sign.c (mk_notation_and_policy),
4081         photoid.c (show_photos): Simpler expando code that does not
4082         require using compile-time string sizes.  Call
4083         image_type_to_string to get image strings (i.e. "jpg",
4084         "image/jpeg").  Change all callers.
4086         * keyedit.c (menu_showphoto), keylist.c (list_keyblock_print):
4087         Allow viewing multiple images within a single attribute packet.
4089         * gpgv.c: Various stubs for link happiness.
4091 2002-05-02  David Shaw  <dshaw@jabberwocky.com>
4093         * build-packet.c (build_sig_subpkt), keyedit.c (sign_uids),
4094         options.h, sign.c (mk_notation_and_policy), g10.c (main,
4095         add_notation_data, add_policy_url (new), check_policy_url
4096         (removed)): Allow multiple policy URLs on a given signature.
4097         Split "--notation-data" into "--cert-notation" and
4098         "--sig-notation" so the user can set different policies for key
4099         and data signing.  For backwards compatibility, "--notation-data"
4100         sets both, as before.
4102 2002-05-02  Werner Koch  <wk@gnupg.org>
4104         * options.skel: Removed the comment on trusted-keys because this
4105         option is now deprecated.
4107 2002-05-01  David Shaw  <dshaw@jabberwocky.com>
4109         * keyedit.c (menu_adduid): 2440bis04 says that multiple attribute
4110         packets on a given key are legal.
4112         * keyserver.c (keyserver_refresh): the fake v3 keyid hack applies
4113         to "mailto" URLs as well since they are also served by pksd.
4115 2002-04-29  Werner Koch  <wk@gnupg.org>
4117         Added a copyright year for files changed this year.
4119 2002-04-25  Werner Koch  <wk@gnupg.org>
4121         * g10.c, options.h: New options --display, --ttyname, --ttytype,
4122         --lc-ctype, --lc-messages to be used with future versions of the
4123         gpg-agent. 
4124         * passphrase.c (agent_send_option,agent_send_all_options): New.
4125         (agent_open): Send options to the agent.
4127         * trustdb.c (update_ownertrust, clear_ownertrust): Do an explicit
4128         do_sync because revalidation_mark does it only if when the
4129         timestamp actually changes.
4131 2002-04-23  David Shaw  <dshaw@jabberwocky.com>
4133         * main.h, keygen.c (do_generate_keypair), keylist.c
4134         (print_signature_stats, list_all, list_one, list_keyblock,
4135         list_keyblock_print, list_keyblock_colon): After generating a new
4136         key, show the key information (name, keyid, fingerprint, etc.)
4137         Also do not print uncheckable signatures (missing key..) in
4138         --check-sigs.  Print statistics (N missing keys, etc.) after
4139         --check-sigs.
4141         * keyedit.c (sign_uids): When signing a key with an expiration
4142         date on it, the "Do you want your signature to expire at the same
4143         time?" question should default to YES.
4145 2002-04-22  David Shaw  <dshaw@jabberwocky.com>
4147         * parse-packet.c (parse_plaintext), packet.h, plaintext.c
4148         (handle_plaintext): Fix bug in handling literal packets with
4149         zero-length data (no data was being confused with partial body
4150         length).
4152         * misc.c (pct_expando), options.skel: %t means extension ("jpg").
4153         %T means MIME type ("image/jpeg").
4155         * import.c (import_one): Only trigger trust update if the keyring
4156         is actually changed.
4158         * export.c (do_export_stream): Missing a m_free.
4160 2002-04-22  Stefan Bellon  <sbellon@sbellon.de>
4162         * keyid.c (expirestr_from_sk, expirestr_from_sig): Added _() to
4163         string constant.
4165         * exec.c (make_tempdir) [__riscos__]: Better placement of
4166         temporary file.
4168 2002-04-20  David Shaw  <dshaw@jabberwocky.com>
4170         * keygen.c (generate_subkeypair): 2440bis04 adds that creating
4171         subkeys on v3 keys is a MUST NOT.
4173         * getkey.c (finish_lookup): The --pgp6 "use the primary key"
4174         behavior should only apply while data signing and not encryption.
4175         Noted by Roger Sondermann.
4177 2002-04-19  Werner Koch  <wk@gnupg.org>
4179         * keygen.c (keygen_set_std_prefs): Put back 3DES because the RFC
4180         says it is good form to do so.
4182 2002-04-19  David Shaw  <dshaw@jabberwocky.com>
4184         * keyedit.c (menu_deluid): Only cause a trust update if we delete
4185         a non-revoked user id.
4187         * hkp.c (hkp_ask_import), keyserver.c (parse_keyserver_options,
4188         keyserver_spawn), options.h: Remove fast-import keyserver option
4189         (no longer meaningful).
4191         * g10.c (main), keyedit.c (sign_uids), options.h: Change
4192         --default-check-level to --default-cert-check-level as it makes
4193         clear what it operates on.
4195         * g10.c (main): --pgp6 also implies --no-ask-sig-expire.
4197         * delkey.c (do_delete_key): Comment.
4199         * keyedit.c (sign_uids, keyedit_menu, menu_deluid, menu_delsig,
4200         menu_expire, menu_revsig, menu_revkey): Only force a trustdb check
4201         if we did something that changes it.
4203         * g10.c: add "--auto-check-trustdb" to override a
4204         "--no-auto-check-trustdb"
4206 2002-04-19  Werner Koch  <wk@gnupg.org>
4208         * tdbio.c (tdbio_write_nextcheck): Return a status whether the
4209         stamp was actually changed.
4210         * trustdb.c (revalidation_mark): Sync the changes.  Removed the
4211         sync operation done by its callers.
4212         (get_validity): Add logic for maintaining a pending_check flag.
4213         (clear_ownertrust): New.
4214         
4215         * keyedit.c (sign_uids): Don't call revalidation_mark depending on
4216         primary_pk.
4217         (keyedit_menu): Call revalidation_mark after "trust".
4218         (show_key_with_all_names): Print a warning on the wrong listed key
4219         validity.
4221         * delkey.c (do_delete_key): Clear the owenertrust information when
4222         deleting a public key.
4223         
4224 2002-04-18  Werner Koch  <wk@gnupg.org>
4226         * seskey.c (encode_md_value): Print an error message if a wrong
4227         digest algorithm is used with DSA.  Changed all callers to cope
4228         with a NULL return.  Problem noted by Imad R. Faiad.
4230 2002-04-18  David Shaw  <dshaw@jabberwocky.com>
4232         * trustdb.c (mark_usable_uid_certs): Properly handle nonrevocable
4233         signatures that can expire.  In short, the only thing that can
4234         override an unexpired nonrevocable signature is another unexpired
4235         nonrevocable signature.
4237         * getkey.c (finish_lookup): Always use primary signing key for
4238         signatures when --pgp6 is on since pgp6 and 7 do not understand
4239         signatures made by signing subkeys.
4241 2002-04-18  Werner Koch  <wk@gnupg.org>
4243         * trustdb.c (validate_keys): Never schedule a nextcheck into the
4244         past.
4245         (validate_key_list): New arg curtime use it to set next_expire.
4246         (validate_one_keyblock): Take the current time from the caller.
4247         (clear_validity, reset_unconnected_keys): New.
4248         (validate_keys): Reset all unconnected keys.
4250         * getkey.c (premerge_public_with_secret): Fixed 0x12345678! syntax
4251         for use with secret keys.
4252         (lookup): Advance the searchmode after a search FIRST.
4254         * seckey-cert.c (do_check): Always calculate the old checksum for
4255         use after unprotection.
4257         * g10.c, options.skel: New option --no-escape-from.  Made
4258         --escape-from and --force-v3-sigs the default and removed them
4259         from the options skeleton.
4261 2002-04-16  Werner Koch  <wk@gnupg.org>
4263         * parse-packet.c (parse_key): Support a SHA1 checksum as per
4264         draft-rfc2440-bis04.
4265         * packet.h (PKT_secret_key): Add field sha1chk.
4266         * seckey-cert.c (do_check): Check the SHA1 checksum
4267         (protect_secret_key): And create it.
4268         * build-packet.c (do_secret_key): Mark it as sha-1 protected.
4269         * g10.c, options.h: New option --simple-sk-checksum.
4271 2002-04-13  David Shaw  <dshaw@jabberwocky.com>
4273         * parse-packet.c (parse_signature): Minor fix - signatures should
4274         expire at their expiration time and not one second later.
4276         * keygen.c (proc_parameter_file): Allow specifying preferences
4277         string (i.e. "s5 s2 z1 z2", etc) in a batchmode key generation
4278         file.
4280         * keyedit.c (keyedit_menu): Print standard error message when
4281         signing a revoked key (no new translation).
4283         * getkey.c (merge_selfsigs): Get the default set of key prefs from
4284         the real (not attribute) primary uid.
4286 2002-04-12  David Shaw  <dshaw@jabberwocky.com>
4288         * pkclist.c (build_pk_list): Fix bug that allowed a key to be
4289         selected twice in batch mode if one instance was the default
4290         recipient and the other was an encrypt-to.  Noted by Stefan
4291         Bellon.
4293         * parse-packet.c (dump_sig_subpkt): Show data in trust and regexp
4294         sig subpackets.
4296         * keyedit.c (keyedit_menu): Use new function real_uids_left to
4297         prevent deleting the last real (i.e. non-attribute) uid.  Again,
4298         according to the attribute draft. (menu_showphoto): Make another
4299         string translatable.
4301 2002-04-11  David Shaw  <dshaw@jabberwocky.com>
4303         * build-packet.c (build_sig_subpkt): Delete subpackets from both
4304         hashed and unhashed area on update.  (find_subpkt): No longer
4305         needed.
4307         * keyedit.c (sign_uids): With --pgp2 on, refuse to sign a v3 key
4308         with a v4 signature.  As usual, --expert overrides.  Try to tweak
4309         some strings to a closer match so they can all be translated in
4310         one place.  Use different helptext keys to allow different help
4311         text for different questions.
4313         * keygen.c (keygen_upd_std_prefs): Remove preferences from both
4314         hashed and unhashed areas if they are not going to be used.
4316 2002-04-10  David Shaw  <dshaw@jabberwocky.com>
4318         * misc.c (pct_expando), options.skel: Use %t to indicate type of a
4319         photo ID (in this version, it's always "jpeg").  Also tweak string
4320         expansion loop to minimize reallocs.
4322         * mainproc.c (do_check_sig): Variable type fix.
4324         * keyedit.c (menu_set_primary_uid): Differentiate between true
4325         user IDs and attribute user IDs when making one of them primary.
4326         That is, if we are making a user ID primary, we alter user IDs.
4327         If we are making an attribute packet primary, we alter attribute
4328         packets.  This matches the language in the latest attribute packet
4329         draft.
4331         * keyedit.c (sign_uids): No need for the empty string hack.
4333         * getkey.c (fixup_uidnode): Only accept preferences from the
4334         hashed segment of the self-sig.
4336 2002-04-10  Werner Koch  <wk@gnupg.org>
4338         * tdbio.c (migrate_from_v2): Fixed the offset to read the old
4339         ownertrust value and only add entries to the table if we really
4340         have a value.
4342 2002-04-08  David Shaw  <dshaw@jabberwocky.com>
4344         * status.h, status.c (get_status_string): Add KEYEXPIRED, EXPSIG,
4345         and EXPKEYSIG.  Add "deprecated-use-keyexpired-instead" to
4346         SIGEXPIRED.
4348         * sig-check.c (do_check): Start transition from SIGEXPIRED to
4349         KEYEXPIRED, since the actual event is signature verification by an
4350         expired key and not an expired signature. (do_signature_check,
4351         packet.h): Rename as signature_check2, make public, and change all
4352         callers.
4354         * mainproc.c (check_sig_and_print, do_check_sig): Use status
4355         EXPSIG for an expired, but good, signature.  Add the expiration
4356         time (or 0) to the VALIDSIG status line.  Use status KEYEXPSIG for
4357         a good signature from an expired key.
4359         * g10.c (main): remove checks for no arguments now that argparse
4360         does it.
4362 2002-04-06  Werner Koch  <wk@gnupg.org>
4364         * keyring.c (keyring_get_keyblock): Disable the keylist mode here.
4366         * encode.c (encode_simple, encode_crypt): Only test on compressed
4367         files if a compress level was not explicity set.
4369         * keygen.c (keygen_set_std_prefs): Removed Blowfish and Twofish
4370         from the list of default preferences, swapped the preferences of
4371         RMD160 and SHA1.  Don't include a preference to 3DES unless the
4372         IDEA kludge gets used.
4374         * free-packet.c (free_packet): call free_encrypted also for
4375         PKT_ENCRYPTED_MDC.
4377         * compress.c (release_context): New.
4378         (handle_compressed): Allocate the context and setup a closure to
4379         release the context.  This is required because there is no
4380         guarantee that the filter gets popped from the chain at the end
4381         of the function.  Problem noted by Timo and probably also the
4382         cause for a couple of other reports.
4383         (compress_filter): Use the release function if set.
4385         * tdbio.c [__CYGWIN32__]: Don't rename ftruncate.  Noted by
4386         Disastry.
4388         * parse-packet.c (parse_signature): Put parens around a bit test.
4390         * exec.c (make_tempdir): Double backslash for TMP directory
4391         creation under Windows.  Better strlen the DIRSEP_S constants for
4392         allocation measurements.
4394         * decrypt.c (decrypt_messages): Release the passphrase aquired
4395         by get_last_passphrase.
4397 2002-04-02  Werner Koch  <wk@gnupg.org>
4399         * Makefile.am (EXTRA_DIST): Removed OPTIONS an pubring.asc - they
4400         are no longer of any use. 
4402 2002-04-03  David Shaw  <dshaw@jabberwocky.com>
4404         * keyserver.c (parse_keyserver_options): fix auto-key-retrieve to
4405         actually work as a keyserver-option (noted by Roger Sondermann).
4407         * keylist.c (reorder_keyblock): do not reorder the primary
4408         attribute packet - the first user ID must be a genuine one.
4410 2002-03-31  David Shaw  <dshaw@jabberwocky.com>
4412         * keylist.c (list_keyblock_colon): Fix ownertrust display with
4413         --with-colons.
4415         * keygen.c (generate_user_id), photoid.c (generate_photo_id):
4416         Properly initialize the user ID refcount.  A few more "y/n" ->
4417         "y/N" in photoid.c.
4419         * keyedit.c (ask_revoke_sig): Warn the user if they are about to
4420         revoke an expired sig (not a problem, but they should know).  Also
4421         tweak a few prompts to change "y/n" to "y/N", which is how most
4422         other prompts are written.
4424         * keyserver.c (keyserver_search_prompt): Control-d escapes the
4425         keyserver search prompt.
4427         * pkclist.c (show_revocation_reason & callers): If a subkey is
4428         considered revoked solely because the parent key is revoked, print
4429         the revocation reason from the parent key.
4431         * trustdb.c (get_validity): Allow revocation/expiration to apply
4432         to a uid/key with no entry in the trustdb.
4434 2002-03-29  David Shaw  <dshaw@jabberwocky.com>
4436         * keyserver.c (printunquoted): unquote backslashes from keyserver
4437         searches
4439         * hkp.c (write_quoted): quote backslashes from keyserver searches
4441 2002-03-26  Werner Koch  <wk@gnupg.org>
4443         * keygen.c (ask_keysize): Removed the warning for key sizes > 1536.
4445 2002-03-25  Werner Koch  <wk@gnupg.org>
4447         * keyedit.c (sign_uids): Use 2 strings and not a %s so that
4448         translations can be done the right way.
4449         * helptext.c: Fixed small typo.
4451 2002-03-23  David Shaw  <dshaw@jabberwocky.com>
4453         * import.c (append_uid, merge_sigs): it is okay to import
4454         completely non-signed uids now (with --allow-non-selfsigned-uid).
4456         * getkey.c (get_primary_uid, merge_selfsigs_main): do not choose
4457         an attribute packet (i.e. photo) as primary uid.  This prevents
4458         oddities like "Good signature from [image of size 2671]".  This is
4459         still not perfect (one can still select an attribute packet as
4460         primary in --edit), but is closer to the way the draft is going.
4462         * g10.c (build_list): algorithms should include 110.
4464         * g10.c (main): --pgp2 implies --no-ask-sig-expire and
4465         --no-ask-cert-expire as those would cause a v4 sig/cert.
4467         * armor.c (is_armor_header): be more lenient in what constitutes a
4468         valid armor header (i.e. -----BEGIN blah blah-----) as some
4469         Windows programs seem to add spaces at the end.  --openpgp makes
4470         it strict again.
4472 2002-03-18  David Shaw  <dshaw@jabberwocky.com>
4474         * keyserver.c (keyserver_search_prompt): Properly handle a "no
4475         keys found" case from the internal HKP code (external HKP is ok).
4476         Also, make a COUNT -1 (i.e. streamed) keyserver response a little
4477         more efficient.
4479         * g10.c (main): Add --no-allow-non-selfsigned-uid
4481 2002-03-17  David Shaw  <dshaw@jabberwocky.com>
4483         * g10.c (main): --openpgp implies --allow-non-selfsigned-uid.
4485         * getkey.c (merge_selfsigs_main): If none of the uids are primary
4486         (because none are valid) then pick the first to be primary (but
4487         still invalid).  This is for cosmetics in case some display needs
4488         to print a user ID from a non-selfsigned key.  Also use
4489         --allow-non-selfsigned-uid to make such a key valid and not
4490         --always-trust.  The key is *not* automatically trusted via
4491         --allow-non-selfsigned-uid.
4493         * mainproc.c (check_sig_and_print): Make sure non-selfsigned uids
4494         print [uncertain] on verification even though one is primary now.
4496         * getkey.c (merge_selfsigs): If the main key is not valid, then
4497         neither are the subkeys.
4499         * import.c (import_one): Allow --allow-non-selfsigned-uid to work
4500         on completely unsigned keys.  Print the uids in UTF8.  Remove
4501         mark_non_selfsigned_uids_valid().
4503         * keyedit.c (show_key_with_all_names): Show revocation key as
4504         UTF8.
4506         * sign.c (clearsign_file): Allow --not-dash-escaped to work with
4507         v3 keys.
4509 2002-03-14  Werner Koch  <wk@gnupg.org>
4511         * main.h: Changed the default algorithms to CAST5 and SHA1.
4513 2002-03-13  David Shaw  <dshaw@jabberwocky.com>
4515         * import.c (chk_self_sigs): Show which user ID a bad self-sig
4516         (invald sig or unsupported public key algorithm) resides on.
4518         * import.c (chk_self_sigs): any valid self-sig should mark a user
4519         ID or subkey as valid - otherwise, an attacker could DoS the user
4520         by inventing a bogus invalid self-signature.
4522 2002-03-07  David Shaw  <dshaw@jabberwocky.com>
4524         * g10.c (main): make a few more strings translatable.
4526         * options.h, options.skel, g10.c (main), gpgv.c, mainproc.c
4527         (check_sig_and_print), keyserver.c (parse_keyserver_options):
4528         --auto-key-retrieve should really be a keyserver-option variable.
4530         * import.c (revocation_present): new function to print a warning
4531         if a key is imported that has been revoked by designated revoker,
4532         but the designated revoker is not present to verify the
4533         revocation.  If keyserver-options auto-key-retrieve is set, try
4534         and fetch the designated revoker from the keyserver.
4536         * import.c (import_one): call revocation_present after importing a
4537         new key.  Note that this applies to --import, --recv-keys, and
4538         --search-keys.
4539         
4540         * keyserver-internal.h, keyserver.c (keyserver_import_fprint):
4541         import via fingerprint (for revocation keys).
4543         * keyserver.c (keyserver_import_keyid): much simpler
4544         implementation now that we're using KEYDB_SEARCH_DESC internally.
4546 2002-03-04  David Shaw  <dshaw@jabberwocky.com>
4548         * revoke.c (gen_revoke): do not prompt for revocation reason for
4549         v3 revocations (unless force-v4-certs is on) since they wouldn't
4550         be used anyway.
4552         * keyedit.c (menu_revsig): show the status of the sigs
4553         (exportable? revocable?) to the user before prompting for which
4554         sig to revoke.  Also, make sure that local signatures get local
4555         revocations.
4557         * keyedit.c (ask_revoke_sig): remind the user which sigs are
4558         local.
4560         * g10.c (main): Add "exec-path" variable to override PATH for
4561         execing programs.
4563         * export.c (do_export_stream): properly check return code from
4564         classify_user_id to catch unclassifiable keys.
4566 2002-03-03  David Shaw  <dshaw@jabberwocky.com>
4568         * parse-packet.c (parse_signature): variable type tweak for RISC
4569         OS (from Stefan)
4571 2002-02-28  David Shaw  <dshaw@jabberwocky.com>
4573         * getkey.c (check_revocation_keys): New function to check a
4574         revocation against a list of potential revocation keys.  Note the
4575         loop-breaking code here.  This is to prevent blowing up if A is
4576         B's revocation key, while B is also A's.  Note also that this is
4577         written so that a revoked revoker can still issue revocations:
4578         i.e. If A revokes B, but A is revoked, B is still revoked.  I'm
4579         not completely convinced this is the proper behavior, but it
4580         matches how PGP does it.  It does at least have the advantage of
4581         much simpler code - my first version of this had lots of loop
4582         maintaining code so you could chain revokers many levels deep and
4583         if D was revoked, C was not, which meant that B was, and so on.
4584         It was sort of scary, actually.
4586         * getkey.c (merge_selfsigs_main): Add any revocation keys onto the
4587         pk.  This is particularly interesting since we normally only get
4588         data from the most recent 1F signature, but you need multiple 1F
4589         sigs to properly handle revocation keys (PGP does it this way, and
4590         a revocation key could be marked "sensitive" and hence in a
4591         different signature).  Also, if a pk has a revocation key set,
4592         check for revocation sigs that were not made by us - if made by a
4593         valid revocation key, mark the pk revoked.
4595         * packet.h, getkey.c (cache_public_key): do not cache key if
4596         "dont_cache" is set.  This allows the revocation key code to look
4597         up a key and return information that may be inaccurate to prevent
4598         loops without caching the fake data.
4600         * packet.h, sig-check.c (do_signature_check): Record if a
4601         signature was made by a revoked pk.
4603         * packet.h, parse-packet.c (parse_one_sig_subpkt,
4604         can_handle_critical, parse_signature): Get revocation key
4605         information out of direct sigs.
4606         
4607         * keylist.c (list_keyblock_print): don't assume that the presence
4608         of a 0x20 signature means the key is revoked.  With revocation
4609         keys, this may not be true if the revocation key is not around to
4610         verify it or if verification failed.  Also, 0x1F should get listed
4611         as "sig", and not "unexpected signature class".
4613         * keyedit.c (show_key_with_all_names): Add a flag for printing
4614         revoker information and change all callers.
4616         * import.c (merge_blocks): merge in any new direct key (0x1F)
4617         sigs.
4619         * import.c (import_revoke_cert): don't keep processing after a
4620         revocation is rejected.
4621         
4622         * import.c (delete_inv_parts): Allow importing a revocation
4623         signature even if it was not issued by the key.  This allows a
4624         revocation key to issue it.  Of course, the sig still needs to be
4625         checked before we trust it.
4627         * free-packet.c (copy_public_key): Include a new copy of the
4628         revocation keys when duping a pk.
4630         * free-packet.c (free_seckey_enc, release_public_key_parts): Free
4631         any revocation keys that are attached to a sig or pk.
4633         * export.c (do_export_stream): Do not export signatures with
4634         "sensitive" revocation keys in them.
4636 2002-02-27  David Shaw  <dshaw@jabberwocky.com>
4638         * export.c (do_export_stream): Do not include v3 keys in a
4639         --export-secret-subkeys export.
4641         * getkey.c (merge_selfsigs_main): If a key isn't valid (say,
4642         because of no self-signature), allow --always-trust to force it
4643         valid so it can be trusted.
4645 2002-02-25  David Shaw  <dshaw@jabberwocky.com>
4647         * hkp.c (hkp_ask_import), hkp.h, keyserver.c (all): treat key
4648         lists internally as fingerprints when possible.  All this is via
4649         KEYDB_SEARCH_DESC - no point in reinventing the wheel. This allows
4650         the helper program to search the keyserver by fingerprint if
4651         desired (and the keyserver supports it).  Note that automatic
4652         fingerprint promotion during refresh only applies to v4 keys as a
4653         v4 fingerprint can be easily changed into a long or short key id,
4654         and a v3 cannot.
4656         * pubkey-enc.c, getkey.c, misc.c, main.h: Take two copies of
4657         hextobyte() from pubkey-enc.c and getkey.c and make them into one
4658         copy in misc.c.
4660 2002-02-22  David Shaw  <dshaw@jabberwocky.com>
4662         * keyserver.c (keyserver_search_prompt): Detect a "no keys found"
4663         case even if the helper program does not explicitly say how many
4664         keys were found.
4666         * hkp.c (parse_hkp_index): Bug fix - don't report non-revoked keys
4667         as revoked in HKP key searches.
4669 2002-02-19  Werner Koch  <wk@gnupg.org>
4671         * parse-packet.c (parse_trust): Made parsing more robust.
4673 2002-02-19  David Shaw  <dshaw@jabberwocky.com>
4675         * hkp.c (parse_hkp_index): Catch corruption in HKP index lines
4676         (can be caused by broken or malicious keyservers).
4678         * keyserver.c (keyserver_work): Add KEYSERVER_NOT_SUPPORTED for
4679         unsupported actions (say, a keyserver that has no way to search,
4680         or a readonly keyserver that has no way to add).  Also add a
4681         USE_EXTERNAL_HKP define to disable the internal HKP keyserver
4682         code.
4684 2002-02-14  Werner Koch  <wk@gnupg.org>
4686         * g10.c: New option --no-use-agent. 
4688         * pkclist.c (check_signatures_trust): Always print the warning for
4689         unknown and undefined trust.  Removed the did_add cruft.  Reported
4690         by Janusz A. Urbanowicz.
4692 2002-02-11  David Shaw  <dshaw@jabberwocky.com>
4694         * hkp.c (parse_hkp_index): Bug fix - properly handle user IDs with
4695         colons (":") in them while HKP searching.
4697 2002-02-09  David Shaw  <dshaw@jabberwocky.com>
4699         * misc.c (pct_expando): More comments.
4701         * keydb.h, sign.c (mk_notation_and_policy): Clarify what is a sig
4702         and what is a cert.  A sig has sigclass 0x00, 0x01, 0x02, or 0x40,
4703         and everything else is a cert.
4705         * g10.c (main), keyedit.c (keyedit_menu): Add a "nrlsign" for
4706         nonrevocable and local key signatures.
4708         * g10.c (main): Add a --no-force-mdc to undo --force-mdc.
4710         * options.h, g10.c (main), cipher.c (write_header): Add a knob to
4711         --disable-mdc/--no-disable-mdc.  Off by default, of course, but is
4712         used in --pgp2 and --pgp6 modes.
4713         
4714         * pkclist.c (build_pk_list): Allow specifying multiple users in
4715         the "Enter the user ID" loop.  Enter a blank line to stop.  Show
4716         each key+id as it is added.
4718         * keylist.c (show_policy_url), mainproc.c (print_notation_data):
4719         It is not illegal (though possibly silly) to have multiple policy
4720         URLs in a given signature, so print all that are present.
4721         
4722         * hkp.c (hkp_search): More efficient implementation of URL-ifying
4723         code.
4725 2002-02-04  David Shaw  <dshaw@jabberwocky.com>
4727         * main.h, misc.c (pct_expando): New function to generalize
4728         %-expando processing in any arbitrary string.
4730         * photoid.c (show_photo): Call the new pct_expando function rather
4731         than expand strings internally.
4732         
4733         * sign.c (mk_notation_and_policy): Show policy URLs and notations
4734         when making a signature if show-policy/show-notation is on.
4735         %-expand policy URLs during generation.  This lets the user have
4736         policy URLs of the form "http://notary.jabberwocky.com/keysign/%K"
4737         which will generate a per-signature policy URL.
4739         * main.h, keylist.c (show_policy_url, show_notation): Add amount
4740         to indent so the same function can be used in key listings as well
4741         as during sig generation.  Change all callers.
4743 2002-02-04  David Shaw  <dshaw@jabberwocky.com>
4745         * keyserver.c, options.h (parse_keyserver_options, keyidlist):
4746         Workaround for the pksd and OKS keyserver bug that calculates v4
4747         RSA keyids as if they were v3.  The workaround/hack is to fetch
4748         both the v4 (e.g. 99242560) and v3 (e.g. 68FDDBC7) keyids.  This
4749         only happens for key refresh while using the HKP scheme and the
4750         refresh-add-fake-v3-keyids keyserver option must be set.  This
4751         should stay off by default.
4753 2002-02-03  David Shaw  <dshaw@jabberwocky.com>
4755         * keyserver.c (keyserver_spawn): Bug fix - do not append keys to
4756         each other when --sending more than one.
4758 2002-02-02  David Shaw  <dshaw@jabberwocky.com>
4760         * options.h, g10.c (main), keyedit.c (sign_uids), sign.c
4761         (mk_notation_and_policy): Split "--set-policy-url" into
4762         "--cert-policy-url" and "--sig-policy-url" so the user can set
4763         different policies for key and data signing.  For backwards
4764         compatibility, "--set-policy-url" sets both, as before.
4766 2002-01-30  Werner Koch  <wk@gnupg.org>
4768         * g10.c (main): --gen-random --armor does now output a base64
4769         encoded string.
4771 2002-01-28  David Shaw  <dshaw@jabberwocky.com>
4773         * g10.c (main), options.h, pkclist.c (algo_available): --pgp6
4774         flag.  This is not nearly as involved as --pgp2.  In short, it
4775         turns off force_mdc, turns on no_comment, escape_from, and
4776         force_v3_sigs, and sets compression to 1.  It also restricts the
4777         user to IDEA (if present), 3DES, CAST5, MD5, SHA1, and RIPEMD160.
4778         See the comments above algo_available() for lots of discussion on
4779         why you would want to do this.
4781 2002-01-27  David Shaw  <dshaw@jabberwocky.com>
4783         * keygen.c (keygen_set_std_prefs): Comment
4785         * keyedit.c (sign_uids): Bug fix - when signing with multiple
4786         secret keys at the same time, make sure each key gets the sigclass
4787         prompt.
4789         * exec.c (exec_finish): Close the iobuf and FILE before trying to
4790         waitpid, so the remote process will get a SIGPIPE and exit.  This
4791         is only a factor when using a pipe to communicate.
4793         * exec.c (exec_write): Disable cache-on-close of the fd iobuf (is
4794         this right?  Why is a fd iobuf cached at all?)
4796 2002-01-26  Werner Koch  <wk@gnupg.org>
4798         * g10.c, options.h: New option --gpg-agent-info
4799         * passphrase.c (agent_open): Let it override the environment info.
4800         * seckey-cert.c (check_secret_key): Always try 3 times when the
4801         agent is enabled.
4802         * options.skel: Describe --use-agent.
4804 2002-01-24  David Shaw  <dshaw@jabberwocky.com>
4806         * pubkey-enc.c (is_algo_in_prefs, get_it): Only check preferences
4807         against keys with v4 self sigs - there is really little point in
4808         warning for every single non-IDEA message encrypted to an old key.
4810         * pkclist.c (select_algo_from_prefs): Only put in the fake IDEA
4811         preference if --pgp2 is on.
4813         * mainproc.c (check_sig_and_print): Print "Expired" for expired
4814         but good signatures (this still prints "BAD" for expired but bad
4815         signatures).
4817 2002-01-23  David Shaw  <dshaw@jabberwocky.com>
4819         * keygen.c (ask_keysize): Cosmetic: don't present a RSA signing
4820         key as a "keypair" which can be 768 bits long (as RSA minimum is
4821         1024).
4823         * pubkey-enc.c (is_algo_in_prefs): Allow IDEA as a fake preference
4824         for v3 keys with v3 selfsigs.
4826 2002-01-22  David Shaw  <dshaw@jabberwocky.com>
4828         * packet.h, getkey.c (merge_selfsigs_main), pkclist.c
4829         (select_algo_from_prefs): Implement the fake IDEA preference as
4830         per RFC2440:12.1.  This doesn't mean that IDEA will be used (the
4831         plugin may not be present), but it does mean that a v3 key with a
4832         v3 selfsig has an implicit IDEA preference instead of 3DES.  v3
4833         keys with v4 selfsigs use preferences as normal.
4835         * encode.c (encode_crypt): if select_algo_from_prefs fails, this
4836         means that we could not find a cipher that both keys like.  Since
4837         all v4 keys have an implicit 3DES preference, this means there is
4838         a v3 key with a v3 selfsig in the list.  Use 3DES in this case as
4839         it is the safest option (we know the v4 key can handle it, and
4840         we'll just hope the v3 key is being used in an implementation that
4841         can handle it).  If --pgp2 is on, warn the user what we're doing
4842         since it'll probably break PGP2 compatibility.
4844         * g10.c (main): Do not force using IDEA for encrypted files in
4845         --pgp2 mode - let the fake IDEA preference choose this for us for
4846         better compatibility when encrypting to multiple keys, only some
4847         of which are v3.
4849         * keygen.c (keygen_set_std_prefs): Put 3DES on the end of the
4850         default cipher pref list (RFC2440: "...it is good form to place it
4851         there explicitly.").  If the user has the IDEA plugin installed,
4852         put a preference for IDEA *after* 3DES to effectively disable its
4853         use for everything except encrypting along with v3 keys.
4855         * encode.c, g10.c, sign.c: Change the PGP2 warning line from
4856         "... will not be usable ..." to "... may not be usable ..." as the
4857         user could be using one of the enhanced PGP2 variations.
4859         * helptext.c: Revise the sign_uid.class help text as suggested by
4860         Stefan.
4861         
4862 2002-01-20  Werner Koch  <wk@gnupg.org>
4864         * passphrase.c (passphrase_to_dek): Add tryagain_text arg to be
4865         used with the agent.  Changed all callers.
4866         (agent_get_passphrase): Likewise and send it to the agent
4867         * seckey-cert.c (do_check): New arg tryagain_text.
4868         (check_secret_key): Pass the string to do_check.
4869         * keygen.c (ask_passphrase): Set the error text is required.
4870         * keyedit.c (change_passphrase): Ditto.
4872         * passphrase.c (agent_open): Disable opt.use_agent in case of a
4873         problem with the agent. 
4874         (agent_get_passphrase): Ditto.
4875         (passphrase_clear_cache): Ditto.
4877 2002-01-19  Werner Koch  <wk@gnupg.org>
4879         * passphrase.c (agent_open): Add support for the new Assuan based
4880         gpg-agent.  New arg to return the used protocol version.
4881         (agent_get_passphrase): Implemented new protocol here.
4882         (passphrase_clear_cache): Ditto.
4883         (readline): New.
4884         
4885 2002-01-15  Timo Schulz  <ts@winpt.org>
4887         * encode.c (encode_crypt_files): Fail if --output is used.
4888         
4889         * g10.c: New command --decrypt-files.
4891         * decrypt.c (decrypt_messages): New.
4892         
4893 2002-01-09  David Shaw  <dshaw@jabberwocky.com>
4895         * g10.c, misc.c, gpgv.c: move idea_cipher_warn to misc.c so gpgv.c
4896         doesn't need a stub for it any longer.
4898         * g10.c (get_temp_dir), main.h: no longer used (it's in exec.c now)
4900         * g10.c (main), delkey.c (delete_keys), main.h : Allow
4901         --delete-key (now --delete-keys, though --delete-key still works,
4902         of course) to delete multiple keys in one go.  This applies to
4903         --delete-secret-key(s) and --delete-secret-and-public-key(s) as
4904         well.
4906 2002-01-09  Timo Schulz  <ts@winpt.org>
4908         * encode.c (encode_crypt_files): Now it behaves like verify_files.
4909         
4910         * g10.c (main): We don't need to check argc for encode_crypt_files
4911         any longer.
4913 2002-01-09  Timo Schulz  <ts@winpt.org>
4915         * exec.c: Include windows.h for dosish systems.
4917 2002-01-08  Timo Schulz  <ts@winpt.org>
4919         * g10.c (main): New description for --encrypt-files.
4921 2002-01-08  Werner Koch  <wk@gnupg.org>
4923         * g10.c (main): Must register the secring for encryption because
4924         it is needed to figure out the default recipient.  Reported by
4925         Roger Sondermann.
4927 2002-01-05  David Shaw  <dshaw@jabberwocky.com>
4929         * keyedit.c (menu_adduid): Require --expert before adding a photo
4930         ID to a v3 key, and before adding a second photo ID to any key.
4932         * keyedit.c (keyedit_menu): Don't allow adding photo IDs in
4933         rfc1991 or pgp2 mode.
4935         * getkey.c (merge_selfsigs_subkey): Permit v3 subkeys.  Believe it
4936         or not, this is allowed by rfc 2440, and both PGP 6 and PGP 7 work
4937         fine with them.
4939         * g10.c, options.h, keyedit.c, sign.c: Move the "ask for
4940         expiration" switch off of --expert, which was getting quite
4941         overloaded, and onto ask-sig-expire and ask-cert-expire.  Both
4942         default to off.
4944         * g10.c (main): Change the default compression algo to 1, to be
4945         more OpenPGP compliant (PGP also uses this, so it'll help with
4946         interoperability problems as well).
4948         * encode.c (encode_crypt): Handle compression algo 2, since the
4949         default is now 1.
4951         * build-packet.c (build_attribute_subpkt): Fix off-by-one error.
4953 2002-01-05  Werner Koch  <wk@gnupg.org>
4955         * g10.c (main): Do not register the secret keyrings for certain
4956         commands.
4958         * keydb.c (keydb_add_resource): Use access to test for keyring
4959         existence.  This avoids cached opened files which are bad under
4960         RISC OS.
4962 2002-01-04  David Shaw  <dshaw@jabberwocky.com>
4964         * sign.c (sign_file, sign_symencrypt_file): always use one-pass
4965         packets unless rfc1991 is enabled.  This allows a signature made
4966         with a v3 key to work in PGP 6 and 7.  Signatures made with v4
4967         keys are unchanged.
4969         * g10.c (main): Disallow non-detached signatures in PGP2 mode.
4970         Move the "you must use files and not pipes" PGP2 warning up so all
4971         the PGP2 stuff is together.
4973         * encode.c (encode_simple): Use the actual filesize instead of
4974         partial length packets in the internal literal packet from a
4975         symmetric message.  This breaks PGP5(?), but fixes PGP2, 6, and 7.
4976         It's a decent tradeoff.  Note there was only an issue with
4977         old-style RFC1991 symmetric messages.  2440-style messages in 6
4978         and 7 work with or without partial length packets.
4980 2002-01-03  David Shaw  <dshaw@jabberwocky.com>
4982         * g10.c (main): Removed --no-default-check-level option, as it is
4983         not consistent with other "default" options.  Plus, it is the same
4984         as saying --default-check-level 0.
4986         * exec.c (exec_read): Disallow caching tempfile from child
4987         process, as this keeps the file handle open and can cause unlink
4988         problems on some platforms.
4990         * keyserver.c (keyserver_search_prompt): Minor tweak - don't
4991         bother to transform keyids into textual form if they're just going
4992         to be transformed back to numbers.
4994 2002-01-03  Timo Schulz <ts@winpt.org>
4996         * g10.c: New command --encrypt-files.
4997     
4998         * verify.c (print_file_status): Removed the static because
4999         encode_crypt_files also uses this function.
5001         * main.h (print_files_status): New.
5002         (encode_crypt_files): New.
5004         * encode.c (encode_crypt_files): New.
5006 2002-01-02  Stefan Bellon  <sbellon@sbellon.de>
5008         * keyserver.c: Moved util.h include down in order to avoid
5009         redefinition problems on RISC OS.
5011         * keyring.c (keyring_lock): Only lock keyrings that are writable.
5013         * keyring.c (keyring_update_keyblock): Close unused iobuf.
5015         * hkp.c (parse_hkp_index, hkp_search) [__riscos__]: Changed
5016         unsigned char* to char* because of compiler issues.
5018         * exec.c (exec_finish) [__riscos__]: Invalidate close cache so
5019         that file can be unlinked.
5021 2001-12-28  David Shaw  <dshaw@jabberwocky.com>
5023         * g10.c (main): Use a different strlist to check extensions since
5024         they need to be handled seperately now.
5026         * misc.c,main.h (check_permissions): Properly handle permission
5027         and ownership checks on files in the lib directory
5028         (e.g. /usr/local/lib/gnupg), which are owned by root and are
5029         world-readable, and change all callers to specify extension or
5030         per-user file.
5032         * photoid.c (show_photo), keyserver.c (keyserver_spawn): Bug fix -
5033         don't call exec_finish if exec_write fails.
5035         * keyserver.c (keyserver_spawn): Look for OPTIONS from the
5036         keyserver helper - specifically, a "OUTOFBAND" option for the
5037         email keyserver.
5039         * mainproc.c (list_node), keylist.c (list_keyblock_colon),
5040         import.c (delete_inv_parts), export.c (do_export_stream): Use
5041         signature flags for exportability check rather than re-parsing the
5042         subpacket.
5044         * keyid.c, keydb.h (get_lsign_letter): No longer needed.
5046 2001-12-27  David Shaw  <dshaw@jabberwocky.com>
5048         * exec.c (exec_finish): Show errors when temp files cannot be
5049         deleted for whatever reason.
5051         * exec.c (exec_read): Don't rely on WEXITSTATUS being present.
5053         * exec.c (make_tempdir): Add temp file creator for win32.  Don't
5054         create an incoming temp file if the exec is write-only.
5056         * keyserver.c (keyserver_spawn): Clean up error handling, for when
5057         the spawn fails.
5059         * photoid.c (show_photo): Clean up error handling.
5061         * misc.c (check_permissions): Neaten.
5063 2001-12-25  David Shaw  <dshaw@jabberwocky.com>
5065         * mkdtemp.c (mkdtemp): Add copyleft info and tweak the 'X' counter
5066         to be a bit simpler.
5068         * keyserver.c, photoid.c: Remove unused headers left over from
5069         when the exec functions lived there.
5071 2001-12-23  Timo Schulz <ts@winpt.org>
5073         * misc.c (check_permissions): Do not use it for W32 systems.
5075         * tdbio.c (migrate_from_v2): Define ftruncate as chsize() for W32.
5077         * mkdtemp.c: W32 support.
5079         * photoid.c: Ditto.
5081         * exec.c: Ditto.
5083 2001-12-22  David Shaw  <dshaw@jabberwocky.com>
5085         * exec.c (make_tempdir): avoid compiler warning with const
5087         * mkdtemp.c (mkdtemp): catch the empty ("") string case in case
5088         someone repurposes mkdtemp at some point.
5090         * photoid.c (generate_photo_id, show_photo): some type changes
5091         from Stefan Bellon.
5093         * exec.c (make_tempdir): handle Win32 systems, suggested by Timo
5094         Schulz.
5096 2001-12-22  Werner Koch  <wk@gnupg.org>
5098         * encode.c (encode_simple, encode_crypt): i18n 2 strings.
5100 2001-12-22  Timo Schulz <ts@winpt.org>
5101         
5102         * encode.c (encode_simple, encode_crypt): Use is_file_compressed
5103         to avoid to compress compressed files.
5105 2001-12-22  Werner Koch  <wk@gnupg.org>
5107         * keyserver.c (keyserver_spawn): Removed some variables
5108         declaration due to shadowing warnings.
5110         * build-packet.c (build_attribute_subpkt): s/index/idx/ to avoid
5111         compiler warnig due to index(3).
5113         * getkey.c (get_ctx_handle): Use KEYDB_HANDLE as return value.
5114         * keylist.c (list_one): Made resname const.
5116         * keyedit.c (keyedit_menu): Allow "addphoto" only when --openpgp is
5117         not used.
5119         * options.skel: Changed one example photo viewer to qiv.
5121 2001-12-21  David Shaw  <dshaw@jabberwocky.com>
5123         * Makefile.am: add exec.c, exec.h, photoid.c, and photoid.h
5125         * build-packet.c (build_attribute_subpkt): new function to build
5126         the raw attribute subpacket.  Note that attribute subpackets have
5127         the same format as signature subpackets.
5129         * exec.c: new file with generic exec-a-program functionality.
5130         Used by both photo IDs and keyserver helpers.  This is pretty much
5131         the same code that used to be keyserver specific, with some
5132         changes to be usable generically.
5134         * free-packet.c (free_attributes (new)): function to free an
5135         attribute packet.
5136         
5137         * gpgv.c: added stub show_photo
5138         
5139         * keyedit.c (keyedit_menu, menu_adduid, menu_showphoto): can add a
5140         photo (calls generate_photo_id), or display a photo (calls
5141         show_photo) from the --edit menu.  New commands are "addphoto",
5142         and "delphoto" (same as "deluid").
5144         * keylist.c (list_keyblock_print): show photos during key list if
5145         --show-photos enabled.
5146         
5147         * keyserver.c (keyserver_spawn): use the generic exec_xxx
5148         functions to call keyserver helper.
5150         * g10.c, options.h: three new options - --{no-}show-photos, and
5151         --photo-viewer to give the command line to display a picture.
5153         * options.skel: instructions for the photo viewer
5154         
5155         * parse-packet.c (parse_user_id, setup_user_id (new)): common code
5156         for both user IDs and attribute IDs moved to setup_user_id.
5158         * parse-packet.c (make_attribute_uidname (new)): constructs a fake
5159         "name" for attribute packets (e.g. "[image of size ...]")
5161         * parse-packet.c (parse_attribute (replaces parse_photo_id),
5162         parse_attribute_subpkts): Builds an array of individual
5163         attributes.  Currently only handles attribute image / type jpeg
5164         subpackets.
5166         * sign.c (hash_uid): Fix bug in signing attribute (formerly
5167         photo_id) packets.
5169         * packet.h, and callers: globally change "photo_id" to "attribute"
5170         and add structures for attributes.  The packet format is generic
5171         attributes, even though the only attribute type thus far defined
5172         is jpeg.
5174 2001-12-21  David Shaw  <dshaw@jabberwocky.com>
5176         * parse-packet.c (can_handle_critical): Can handle critical
5177         revocation subpackets now.
5179         * trustdb.c (mark_usable_uid_certs): Disregard revocations for
5180         nonrevocable sigs.  Note that this allows a newer revocable
5181         signature to override an older nonrevocable signature.
5183         * sign.c (make_keysig_packet): add a duration field and change all
5184         callers.  This makes make_keysig_packet closer to
5185         write_signature_packets and removes some duplicated expiration
5186         code.
5188         * keyedit.c (keyedit_menu, menu_revsig, sign_uids,
5189         sign_mk_attrib): Add nrsign command, don't allow revoking a
5190         nonrevocable signature,
5192         * g10.c (main): Add --nrsign option to nonrevocably sign a key
5193         from the command line.
5195         * build-packet.c (build_sig_subpkt_from_sig): Comment to explain
5196         the use of CRITICAL.
5198 2001-12-21  Werner Koch  <wk@gnupg.org>
5200         * g10.c. options.h : New option --show-keyring
5201         * getkey.c (get_ctx_handle): New.
5202         * keylist.c (list_one): Implement option here.  By David Champion. 
5204 2001-12-20  David Shaw  <dshaw@jabberwocky.com>
5206         * keyserver.c (keyserver_spawn): Use mkdtemp() to make temp
5207         directory.
5209         * mkdtemp.c: replacement function for those platforms that don't
5210         have mkdtemp (make a temp directory securely).
5212 2001-12-19  David Shaw  <dshaw@jabberwocky.com>
5214         * misc.c (check_permissions): New function to stat() and ensure
5215         the permissions of GNUPGHOME and the files have safe permissions.
5217         * keydb.c (keydb_add_resource): Check keyring permissions.
5219         * tdbio.c (tdbio_set_dbname): Check permissions of trustdb.gpg
5221         * keyserver.c (keyserver_spawn): Disable keyserver schemes that
5222         involve running external programs if the options file has unsafe
5223         permissions or ownership.
5225         * g10.c, options.h: New option --no-permission-warning to disable
5226         the permission warning message(s).  This also permits use of the
5227         keyserver if it had been disabled (see above).  Also check the
5228         permissions/ownership of random_seed.
5229         
5230         * keyserver.c (keyserver_spawn): The new glibc prints a warning
5231         when using mktemp() (the code was already secure, but the warning
5232         was bound to cause confusion).  Use a different implementation
5233         based on get_random_bits() instead.  Also try a few times to get
5234         the temp dir before giving up.
5236 2001-12-19  Werner Koch  <wk@gnupg.org>
5238         * g10.c, passphrase.c [CYGWIN32]: Allow this as an alias for MINGW32.
5240 2001-12-18  David Shaw  <dshaw@jabberwocky.com>
5242         * g10.c (idea_cipher_warn): Add a flag to show the warning always
5243         or once per session and change all callers (show always except for
5244         the secret key protection and unknown cipher from an encrypted
5245         message errors).  Also make the strings translatable.
5247         * pubkey-enc.c (get_it): Add the IDEA cipher warning if the user
5248         tries to decrypt an IDEA encrypted message without the IDEA
5249         plugin.
5251         * keyserver.c (parse_keyserver_uri): More strict checking of the
5252         keyserver URI.  Specifically, fail if the ":port" section is
5253         anything except a number between 1 and 65535.
5255 2001-12-17  David Shaw  <dshaw@jabberwocky.com>
5257         * keyserver.c (print_keyinfo): No need to check for
5258         control/illegal characters, as utf8_to_native does this for us.
5260         * mainproc.c (proc_encrypted): Use generic IDEA warning.
5262         * gpgv.c: add stub for idea_cipher_warn
5264         * g10.c, hkp.c, keyserver.c: Fix capitalization and plural issues.
5266         * encode.c (encode_crypt), sign.c (sign_file, clearsign_file):
5267         disable pgp2 mode after the message is no longer pgp2 compatible.
5269         * g10.c (main): Tweak the PGP2.x IDEA warning to use the generic
5270         warning, and not merely fail if the IDEA plugin isn't there.
5272         * g10.c (main, idea_cipher_warn), keygen.c (set_one_pref),
5273         seckey-cert.c (do_check): Add a generic IDEA warning for when the
5274         IDEA plugin is not present.  This pops up when the user uses
5275         "--cipher-algo idea", when setpref is used to set a "S1"
5276         preference, and when a secret key protected with IDEA is used.
5278 2001-12-15  Werner Koch  <wk@gnupg.org>
5280         * keyserver.c (keyserver_spawn): Assert that we have dropped privs.
5282 2001-12-13  Werner Koch  <wk@gnupg.org>
5284         * pubkey-enc.c (get_session_key): Check that the public key
5285         algorithm is indeed usable for en/decryption.  This avoid a
5286         strange error message from pubkey_decrypt if for some reasons a
5287         bad algorithm indentifier is passed.
5289 2001-12-12  David Shaw  <dshaw@jabberwocky.com>
5291         * Fixed some types for portability.  Noted by Stefan Bellon.
5293 2001-12-11  Werner Koch  <wk@gnupg.org>
5295         * hkp.c (hkp_export): Do not print possible control characters
5296         from a keyserver response.
5297         (parse_hkp_index): Made uid an unsigned char* because it is passed to
5298         isspace().
5299         (hkp_search): Ditto for the char* vars.
5301         * g10.c (main): Print the IDEA warning also for -c and -se.
5302         
5303         * g10.c (get_temp_dir): Assert that we have dropped privs
5305         * encode.c (encode_crypt): Include the first key into the --pgp2
5306         check.
5308 2001-12-07  David Shaw  <dshaw@jabberwocky.com>
5310         * g10.c, options.h: New option --pgp2.  This is identical to
5311         "--rfc1991 --cipher-algo idea --compress-algo 1 --digest-algo md5
5312         --force_v3_sigs" with the addition of an warning to advise the
5313         user not to use a pipe (which would break pgp2 compatibility).
5315         * encode.c (encode_crypt): warn if the user tries to encrypt to
5316         any key that is not RSA and <= 2048 bits when the --pgp2 option is
5317         used.
5319         * sign.c (sign_file, clearsign_file): When using --pgp2, make a v3
5320         sig, and warn if the signature is made with a non-v3 key.
5322 2001-12-05  David Shaw  <dshaw@jabberwocky.com>
5324         * sign.c (sign_file, clearsign_file, sign_symencrypt_file): Prompt
5325         for sig expiration if --expert is set and --force-v3-sigs is not
5326         set (v3 sigs cannot expire).
5328         * mainproc.c (check_sig_and_print): After checking a sig, print
5329         expiration status.  This causes a error return if the sig is
5330         expired.
5332         * build-packet.c (build_sig_subpkt_from_sig): Include a critical
5333         sig expiration subpacket if the sig is to expire.
5335         * keyedit.c (sign_uids): Do not sign an expired key unless
5336         --expert is set, in which case prompt.  Also, offer to expire a
5337         signature when the key the user is signing expires.
5339         * keygen.c (ask_expire_interval): Add a value to determine whether
5340         to prompt for a key or sig expiration and change all callers.
5342         * keyid.c: New functions: expirestr_from_sig and
5343         colon_expirestr_from_sig.
5345         * keylist.c (list_keyblock_colon): Show sig expiration date in the
5346         --with-colons listing.
5348         * sign.c (make_keysig_packet, write_signature_packets): Pass in an
5349         optional timestamp for the signature packet, and change all
5350         callers.
5352         * keyedit.c (sign_mk_attrib): Include a critical expiration
5353         subpacket in the signature if an expiration date is given.
5355 2001-12-04  David Shaw  <dshaw@jabberwocky.com>
5357         * keyedit.c (sign_uids): If the user tries to sign a
5358         locally-signed key, allow the cert to be promoted to a full
5359         exportable signature.  This essentially deletes the old
5360         non-exportable sig, and replaces it with a new exportable one.
5362 2001-12-04  David Shaw  <dshaw@jabberwocky.com>
5364         * keyedit.c (keyedit_menu): Do not allow signing a revoked key
5365         unless --expert is set, and ask even then.
5367         * keyedit.c (sign_uids): Do not allow signing a revoked UID unless
5368         --expert is set, and ask even then.
5370         * g10.c, options.h : New option --expert
5372 2001-11-16  David Shaw  <dshaw@jabberwocky.com>
5374         * Allow the user to select no compression via "--compress-algo 0"
5375         on the command line.
5377         * keyedit.c (show_prefs): Show compression preferences in the
5378         long-form "showpref" style.
5380         * keygen.c (set_one_pref): Permit setting a no-compression ("Z0")
5381         preference.
5383         * getkey.c (fixup_uidnode): Fix compression preference corruption
5384         bug.
5386 2001-12-02  David Shaw  <dshaw@jabberwocky.com>
5388         * g10.c: Add advisory --for-your-eyes-only option as per section
5389         5.9 of 2440.
5391 2001-12-05  David Shaw  <dshaw@jabberwocky.com>
5393         * Force a V4 sig if the user has a notation or policy URL set.
5395 2001-12-04  David Shaw  <dshaw@jabberwocky.com>
5397         * g10.c: Add options --keyserver-options, --temp-directory, and
5398         auto-key-retrieve (the opposite of no-auto-key-retrieve).
5400         * hkp.c (hkp_search): New function to handle searching a HKP
5401         keyserver for a key
5403         * hkp.c (hkp_ask_import, hkp_export): Pretty large changes to make
5404         them communicate via the generic functions in keyserver.c
5406         * keyserver.c: new file with generic keyserver routines for
5407         getting keys from a keyserver, sending keys to a keyserver, and
5408         searching for keys on a keyserver.  Calls the internal HKP stuff
5409         in hkp.c for HKP keyserver functions.  Other calls are handled by
5410         an external program which is spawned and written to and read from
5411         via pipes.  Platforms that don't have pipes use temp files.
5413 2001-11-20  David Shaw  <dshaw@jabberwocky.com>
5415         * options.h, g10.c: New options show-notation, no-show-notation,
5416         default-check-level, no-default-check-level, show-policy-url,
5417         no-show-policy-url.
5419         * packet.h, sign.c (make_keysig_packet), parse-packet.c
5420         (parse_signature), free-packet.c (free_seckey_enc): Fill in
5421         structures for notation, policy, sig class, exportability, etc.
5423         * keyedit.c, keylist.c (print_and_check_one_sig,
5424         list_keyblock_print): Show flags in signature display for cert
5425         details (class, local, notation, policy, revocable).  If selected,
5426         show the notation and policy url.
5428         * keyedit.c (sign_uids): Prompt for and use different key sig
5429         classes.
5431         * helptext.c (helptexts): Add help text to explain different
5432         key signature classes
5434 2001-11-26  David Shaw  <dshaw@jabberwocky.com>
5436         * trustdb.c (mark_usable_uid_certs): Fix segfault from bad
5437         initialization and fix reversed key signature expiration check.
5439 2001-11-09  Werner Koch  <wk@gnupg.org>
5441         * export.c (do_export_stream): Put all given names into a search
5442         description and change the loop so that all matching names are
5443         returned.
5445 2001-11-08  Werner Koch  <wk@gnupg.org>
5447         * pubkey-enc.c (get_it): To reduce the number of questions on the
5448         MLs print the the name of cipher algorithm 1 with the error message.
5450         * mainproc.c: Changed the way old rfc1991 encryption cipher is
5451         selected. Based on a patch by W Lewis.
5453         * pkclist.c (do_edit_ownertrust): Allow to skip over keys, the non
5454         working "show info" is now assigned to "i" 
5455         * trustdb.c (ask_ownertrust, validate_keys): Implement a real quit
5456         here.  Both are by David Shaw.
5457         
5458         * trustdb.c (validate_keys): Make sure next_exipire is initialized.
5460         * sign.c (make_keysig_packet): Use SHA-1 with v4 RSA keys.
5462         * g10.c, options.h : New option --[no-]froce-v4-certs.
5463         * sign.c (make_keysig_packet): Create v4 sigs on v4 keys even with
5464         a v3 key.  Use that new option.  By David Shaw
5466         * revoke.c (ask_revocation_reason): Allow to select "no reason".
5467         By David Shaw.
5469         * keyid.c (fingerprint_from_sk): Calculation of an v3 fpr was
5470         plain wrong - nearly the same code in fingerprint_from_pk is correct.
5472         * build-packet.c (do_secret_key): Added a few comments to the code.
5474 2001-11-07  Werner Koch  <wk@gnupg.org>
5476         * g10.c (main): Print a warning when -r is used w/o encryption.
5477         Suggested by Pascal Scheffers.
5479 2001-10-23  Werner Koch  <wk@gnupg.org>
5481         * keyedit.c (keyedit_menu): Changed helptext for showpref
5482         command.  Suggested by Reinhard Wobst.
5484         * keyring.c (keyring_search): When marking the offtbl ready, take
5485         into account that we may have more than one keyring.
5487 2001-10-22  Werner Koch  <wk@gnupg.org>
5489         * Makefile.am: Do not use OMIT_DEPENDENCIES
5491         * build-packet.c (build_sig_subpkt): Default is now to put all
5492         types of subpackets into the hashed area and only list those which
5493         should go into the unhashed area.
5495 2001-10-18  Werner Koch  <wk@gnupg.org>
5497         * keydb.c (keydb_add_resource): Rearranged the way we keep track
5498         of the resource. There will now be an entry for each keyring here
5499         and not in keyring.c itself.  Store a token to allow creation of a
5500         keyring handle.  Changed all functions to utilize this new design.
5501         (keydb_locate_writable): Make a real implementation.
5502         * keyring.c (next_kr): Removed and changed all callers to set the
5503         resource directly from the one given with the handle.
5504         (keyring_is_writable): New. 
5505         (keyring_rebuild_cache): Add an arg to pass the token from keydb.
5507 2001-10-17  Werner Koch  <wk@gnupg.org>
5509         * keyring.c (keyring_search): Enabled word search mode but print a
5510         warning that it is buggy.
5511         
5512 2001-10-11  Werner Koch  <wk@gnupg.org>
5514         * hkp.c (hkp_ask_import): No more need to set the port number for
5515         the x-hkp scheme. 
5516         (hkp_export): Ditto.
5518 2001-10-06  Stefan Bellon  <sbellon@sbellon.de>
5520         * passphrase.c [__riscos__]: Disabled agent specific stuff.
5521         * g10.c: New option --no-force-v3-sigs.
5523 2001-10-04  Werner Koch  <wk@gnupg.org>
5525         * export.c (do_export_stream): Do not push the compress filter
5526         here because the context would run out of scope due to the
5527         iobuf_close done by the caller.
5528         (do_export): Do it here instead. 
5530 2001-09-28  Werner Koch  <wk@gnupg.org>
5532         * keyedit.c (sign_uids): Always use the primary key to sign keys.
5533         * getkey.c (finish_lookup): Hack to return only the primary key if
5534         a certification key has been requested.
5536         * trustdb.c (cmp_kid_for_make_key_array): Renamed to
5537         (validate_one_keyblock): this and changed arg for direct calling.
5538         (make_key_array): Renamed to
5539         (validate_one_keyblock): this and changed args for direct calling.
5540         (mark_usable_uid_certs, validate_one_keyblock)
5541         (validate_key_list): Add next_expire arg to keep track of
5542         expiration times.  
5543         (validate_keys): Ditto for UTKs and write the stamp.
5545         * tdbio.c (migrate_from_v2): Check return code of tbdio_sync.
5547         * tdbdump.c (import_ownertrust): Do a tdbio_sync().
5549         * keyring.c: Made the offtbl an global object.
5551 2001-09-27  Werner Koch  <wk@gnupg.org>
5553         * pkclist.c (do_edit_ownertrust): Allow settin of ultimate trust.
5555         * trustdb.c (mark_keyblock_seen): New.
5556         (make_key_array): Use it to mark the subkeys too.
5557         (validate_keys): Store validity for ultimatly trusted keys.
5559 2001-09-26  Werner Koch  <wk@gnupg.org>
5561         * pkclist.c (check_signatures_trust, do_we_trust): Removed the
5562         invocation of add_ownertrust. Minor changes to the wording.
5563         (add_ownertrust, add_ownertrust_cb): Removed.
5565         * trustdb.c (get_validity): Allow to lookup the validity using a
5566         subkey.
5568         * trustdb.c (new_key_hash_table): Increased the table size to 1024
5569         and changed the masks accordingly.
5570         (validate): Changed stats printing.
5571         (mark_usable_uid_certs): New.
5572         (cmp_kid_for_make_key_array): Does now check the signatures and
5573         figures out a usable one.
5575 2001-09-25  Werner Koch  <wk@gnupg.org>
5577         * keyring.c (new_offset_item,release_offset_items)
5578         (new_offset_hash_table, lookup_offset_hash_table)
5579         (update_offset_hash_table, update_offset_hash_table_from_kb): New.
5580         (keyring_search): Use a offset table to optimize search for
5581         unknown keys.
5582         (keyring_update_keyblock, keyring_insert_keyblock): Insert new
5583         offsets.
5584         * getkey.c (MAX_UNK_CACHE_ENTRIES): Removed the unknown keys
5585         caching code.
5587         * g10.c, options.h, import.c: Removed the entire
5588         allow-secret-key-import stuff because the validity is now
5589         controlled by other means.
5591         * g10.c: New command --rebuild-keydb-caches.
5592         * keydb.c (keydb_rebuild_caches): New.
5593         * keyring.c (do_copy): Moved some code to
5594         (create_tmp_file, rename_tmp_file, write_keyblock): new functions.
5595         (keyring_rebuild_cache): New.
5597         * packet.h (PKT_ring_trust): Add sigcache field.
5598         * parse-packet.c (parse_trust): Parse sigcache.
5599         * keyring.c (do_copy): Always insert a sigcache packet.
5600         (keyring_get_keyblock): Copy the sigcache packet to the signature.
5601         * sig-check.c (cache_sig_result): Renamed from
5602         cache_selfsig_result. Changed implementation to use the flag bits
5603         and changed all callers.
5604         (mdc_kludge_check): Removed this unused code.
5605         (do_check): Do not set the sig flags here.
5607         * import.c (read_block): Make sure that ring_trust packets are
5608         never imported.
5609         * export.c (do_export_stream): and never export them.
5611         * trustdb.c (make_key_array): Skip revoked and expired keys.
5613 2001-09-24  Werner Koch  <wk@gnupg.org>
5615         * g10.c, options.h: New option --no-auto-check-trustdb.
5617         * keygen.c (do_generate_keypair): Set newly created keys to
5618         ultimately trusted.
5620         * tdbio.h, tdbio.c: Removed all support for records DIR, KEY, UID,
5621         PREF, SIG, SDIR and CACH. Changed migration function to work
5622         direct on the file.
5623         (tdbio_read_nextcheck): New.
5624         (tdbio_write_nextcheck): New. 
5626 2001-09-21  Werner Koch  <wk@gnupg.org>
5628         Revamped the entire key validation system.
5629         * trustdb.c: Complete rewrite. No more validation on demand,
5630         removed some functions, adjusted to all callers to use the new 
5631         and much simpler interface. Does not use the LID anymore.
5632         * tdbio.c, tdbio.h: Add new record types trust and valid. Wrote a
5633         migration function to convert to the new trustdb layout.
5634         * getkey.c (classify_user_id2): Do not allow the use of the "#"
5635         prefix. 
5636         * keydb.h: Removed the TDBIDX mode add a skipfnc to the
5637         descriptor.
5638         * keyring.c (keyring_search): Implemented skipfnc.
5640         * passphrase.c (agent_open): Add missing bracket.  Include windows.h.
5642 2001-09-19  Werner Koch  <wk@gnupg.org>
5644         * keylist.c (print_fingerprint): Renamed from fingerprint, made
5645         global available. Added new arg to control the print style.
5646         * mainproc.c (print_fingerprint): Removed. 
5647         * pkclist.c (print_fpr, fpr_info): Removed and changed callers to
5648         use print_fingerprint.
5649         * keyedit.c (show_fingerprint): Ditto.
5651         * passphrase.c (writen, readn)
5652         (agent_open, agent_close)
5653         (agent_get_passphrase)
5654         (passphrase_clear_cache): Support for W32.  Contributed by Timo.
5656         * import.c (import_one): Release keydb handles at 2 more places.
5658         * keyring.c (keyring_release): Close the iobuf.
5659         (keyring_get_keyblock): Init ret_kb to NULL and store error contidion.
5661         * import.c (import_new_stats_handle): New. 
5662         (import_release_stats_handle): New.
5663         (import_print_stats): Renamed from static fnc print_stats.
5664         (import_keys, import_keys_stream): Add an optional status handle
5665         arg and changed all callers.
5666         * hkp.c (hkp_ask_import): Add an stats_handle arg and changed all
5667         callers.
5669         * mainproc.c (print_pkenc_list): Use print_utf8_string2().
5671 2001-09-18  Werner Koch  <wk@gnupg.org>
5673         * g10.c: New command --refresh-keys.
5674         * hkp.c (hkp_refresh_keys): New. Contributed by Timo Schulz.
5676         * parse-packet.c (parse): Stop on impossible packet lengths.
5678 2001-09-17  Werner Koch  <wk@gnupg.org>
5680         * mainproc.c (print_notation_data): Wrap notation data status lines
5681         after 50 chars.
5682         
5683         * mainproc.c (proc_pubkey_enc): Make option try-all-secrets work.
5684         By disastry@saiknes.lv.
5686 2001-09-14  Werner Koch  <wk@gnupg.org>
5688         * parse-packet.c (dump_sig_subpkt): List key server preferences
5689         and show the revocable flag correctly. Contributed by David Shaw.
5691 2001-09-09  Werner Koch  <wk@gnupg.org>
5693         * keyedit.c (keyedit_menu): No need to define another p.
5695         * keylist.c (print_capabilities): s/used/use/ so that it
5696         does not shadow a global.
5697         * sign.c (sign_file): Renamed arg encrypt to encryptflag
5698         * keygen.c: Replaced all "usage" by "use".
5699         * misc.c (openpgp_pk_algo_usage): Ditto.
5701         * pubkey-enc.c (get_it): Renamed arg k to enc so that the later
5702         defined k does not shadow it.
5704         * parse-packet.c (parse_gpg_control): No need to define another i.
5706         * getkey.c (get_pubkey_byfprint): Must use the enum values and not
5707         the fprint_len.
5708         * keyring.c (keyring_search): Removed a non-sense break.  Both
5709         bugs pointed out by Stefan.
5711 2001-09-07  Werner Koch  <wk@gnupg.org>
5713         * status.c, status.h: Added NO_RECP and ALREADY_SIGNED.
5714         * pkclist.c (build_pk_list): Issue NO_RECP.
5715         * keyedit.c (sign_uids): Added experimental ALREADY_SIGNED
5717         * hkp.c (hkp_import): Use log_error. Bug reported by Neal H
5718         Walfield. 
5720         * getkey.c (classify_user_id2): Change args to take the desc union
5721         direct.  It was a stupid idea to pass the individual fields of an
5722         union to this function. Changed all callers.
5723         (classify_user_id): Ditto and allow to pass NULL as the description.
5725 2001-09-06  Werner Koch  <wk@gnupg.org>
5727         * getkey.c (fixup_uidnode): Features flag is now a bit vector.
5728         * keygen.c (add_feature_mdc): Ditto.
5730         Revamped the entire key I/O code to be prepared for other ways of
5731         key storages and to get rid of the existing shit.  GDBM support has
5732         gone.
5733         * keydb.c: New
5734         * keyring.c, keyring.h: New.
5735         * ringedit.c: Removed.  Moved some stuff to keyring.c
5736         * getkey.c: Changed everything related to the key retrieving
5737         functions which are now using the keydb_ functions.  
5738         (prepare_search, word_match_chars, word_match)
5739         (prepare_word_match, compare_name): Moved to keyring.c
5740         (get_pubkey_byname): Removed ctx arg and add ret_kdbhd
5741         arg.  Changed all callers.
5742         (key_byname): Use get_pubkey_end to release the context and take
5743         new ret_kbdhd arg.  Changed all callers.
5744         (classify_user_id2): Fill the 16 byte fingerprint up with 4 null
5745         bytes not with zero bytes of value 4, tsss.
5746         * import.c (import_one): Updated to use the new keydb interface.
5747         (import_secret_one): Ditto.
5748         (import_revoke_cert): Ditto.
5749         * delkey.c (do_delete_key): Ditto. 
5750         * keyedit.c (keyedit_menu): Ditto.
5751         (get_keyblock_byname): Removed.
5752         * revoke.c (gen_revoke): Ditto. 
5753         * export.c (do_export_stream): Ditto.
5754         * trustdb.c (update_trustdb): Ditto.
5755         * g10.c, gpgv.c (main): Renamed add_keyblock_resource to
5756         keydb_add_resource. 
5757         * Makefile.am:  Added and removed files.
5759         * keydb.h: Moved KBNODE typedef and MAX_FINGERPRINT_LEN to
5760         * global.h: this new header.
5761         
5762 2001-09-03  Werner Koch  <wk@gnupg.org>
5764         * passphrase.c (agent_get_passphrase): Changed nread to size_t.
5765         (passphrase_clear_cache): Ditto.
5767         * keyid.c (mk_datestr): Avoid trigraphs.
5768         (fingerprint_from_pk): Cache the keyid in the pk.
5770         * options.h: Add opt.with_fingerprint so that we know whether the
5771         corresponding options was used.
5772         * g10.c (main): Set it here.
5773         * pkclist.c (check_signatures_trust): Always print fingerprint
5774         when this option is used.  Mixed a minor memory leak.
5776         * status.c, status.h: New status INV_RECP.
5777         * pkclist.c (build_pk_list): Issue this status.
5779 2001-08-31  Werner Koch  <wk@gnupg.org>
5781         * parse-packet.c (parse_key,parse_pubkeyenc)
5782         (parse_signature): Return error on reading bad MPIs.
5783         
5784         * mainproc.c (check_sig_and_print): Always print the user ID even
5785         if it is not bound by a signature.  Use the primary UID in the
5786         status messages and encode them in UTF-8
5787         * status.c (write_status_text_and_buffer): New.
5789 2001-08-30  Werner Koch  <wk@gnupg.org>
5791         * packet.h (sigsubpkttype_t): Add SIGSUBPKT_FEATURES.
5792         (PKT_public_key, PKT_user_id): Add a flag for it.
5793         * parse-packet.c, build-packet.c: Add support for them.
5794         * getkey.c (fixup_uidnode, merge_selfsigs): Set the MDC flags.
5795         * keygen.c (add_feature_mdc): New.
5796         (keygen_upd_std_prefs): Always set the MDC feature.
5797         * keyedit.c (show_prefs): List the MDC flag
5798         * pkclist.c (select_mdc_from_pklist): New.
5799         * encode.c (encode_crypt, encrypt_filter): Test whether MDC
5800         should be used.
5801         * cipher.c (write_header): Set MDC use depending on the above test.
5802         Print more status info.
5804         * delkey.c (do_delete_key): Kludge to delete a secret key with no
5805         public key available.
5807         * ringedit.c (find_secret_keyblock_direct): New.
5808         * getkey.c (seckey_available): Simplified.
5810         * ringedit.c (cmp_seckey): Now compares the secret key against the
5811         public key while ignoring all secret parts.
5812         (keyring_search): Use a public key packet as arg.  Allow to search
5813         for subnkeys
5814         (search): Likewise. Changed all callers.
5815         (find_secret_keyblock_bypk): New.
5816         (find_secret_keyblock_byname): First locate the pubkey and then
5817         find the correponding secret key.
5818         * parse-packet.c (parse): Renamed pkttype arg to onlykeypkts and
5819         changed code accordingly.  Changed all callers.
5820         (search_packet): Removed pkttype arg.
5821         * keyedit.c (keyedit_menu): First locate the public key and then
5822         try to locate a secret key.
5824         * ringedit.c (locate_keyblock_by_fpr): Removed.
5825         (locate_keyblock_by_keyid): Removed.
5826         (find_keyblock_bysk): Removed.
5828         * sig-check.c (check_key_signature2): Print the keyid along with
5829         the wrong sig class errors.
5831 2001-08-24  Werner Koch  <wk@gnupg.org>
5833         * sign.c (sign_file): Stripped the disabled comment packet code.
5834         (sign_file, sign_symencrypt_file): Moved common code to ..
5835         (write_onepass_sig_packets): .. this new function.
5836         (sign_file, clearsign_file, sign_symencrypt_file): Moved common
5837         code to 
5838         (write_signature_packets): this new function.
5839         (write_signature_packets, make_keysig_packet)
5840         (update_keysig_packet): Moved common code to 
5841         (hash_uid, hash_sigclass_to_magic): these new functions
5842         (sign_file, sign_symencrypt_file): Moved common code to 
5843         (write_plaintext_packet):  this new function.
5845 2001-08-21  Stefan Bellon  <sbellon@sbellon.de>
5847         * trustdb.c (query_trust_info): Changed trustlevel to signed int.
5848         * g10.c [__riscos__]: Fixed handling of --use-agent --lock-multiple.
5850 2001-08-20  Werner Koch  <wk@gnupg.org>
5852         * encr-data.c (decrypt_data): Keep track on whether we already
5853         printed information about the used algorithm.
5854         * mainproc.c (proc_encrypted): Removed the non-working IDEA hack
5855         and print a message about the assumed algorithm.
5856         * passphrase.c (passphrase_to_dek): Use the same algorithm as above.
5857         (proc_symkey_enc): Print the algorithm, so that the user knows it
5858         before entering the passphrase.
5859         (proc_pubkey_enc, proc_pubkey_enc): Zero the DEK out.
5860         * encode.c (encode_crypt, encrypt_filter): Ditto.
5862         * g10.c: Allow for --sign --symmetric.
5863         * sign.c (sign_and_symencrypt): New.
5865         Applied patches from Stefan Bellon <sbellon@sbellon.de> to support
5866         RISC OS.  Nearly all of these patches are identified by the
5867         __riscos__ macro.
5868         * compress.c: Added a couple of casts.
5869         * g10.c [__riscos__]: Some patches and new options foo-file similar
5870         to all foo-fd options.
5871         * gpgv.c, openfile.c, ringedit.c, tdbio.c: Minor fixes.  Mainly
5872         replaced hardcoded path separators with EXTSEP_S like macros.  
5873         * passprase.c [__riscos__]: Disabled agent stuff
5874         * trustdb.c (check_trust): Changed r_trustlevel to signed int to
5875         avoid mismatch problems in pkclist.c
5876         * pkclist.c (add_ownertrust): Ditto.
5877         * plaintext.c (handle_plaintext) [__riscos__]: Print a note when
5878         file can't be created.
5879         * options.h [__riscos__]: Use an extern unless included from the
5880         main module.
5881         * signal.c (got_fatal_signal) [__riscos__]: Close all files.
5882         
5883 2001-08-14  Werner Koch  <wk@gnupg.org>
5885         * keygen.c (ask_algo): New arg r_usage.  Allow for RSA keys.
5886         (gen_rsa): Enabled the code.
5887         (do_create): Enabled RSA branch.
5888         (parse_parameter_usage): New.
5889         (proc_parameter_file): Handle usage parameter.
5890         (read_parameter_file): Ditto.
5891         (generate_keypair): Ditto.
5892         (generate_subkeypair): Ditto.
5893         (do_generate_keypair): Ditto.
5894         (do_add_key_flags): New.
5895         (keygen_add_std_prefs): Use the new function.
5896         (keygen_add_key_flags_and_expire): New.
5897         (write_selfsig, write_keybinding): Handle new usage arg.
5898         * build-packet.c (build_sig_subpkt): Make sure that key flags go
5899         into the hashed area.
5900         
5901         * keygen.c (write_uid): Initialize the reference cunter.
5903         * keyedit.c (keyedit_menu): No more need to update the trustdb for
5904         preferences.  Added calls to merge keblock.
5906         * kbnode.c (dump_kbnode): Print some more flags.
5908 2001-08-10  Werner Koch  <wk@gnupg.org>
5910         Revamped the preference handling.
5912         * packet.h (prefitem_t, preftype_t): New.
5913         (PKT_public_key): Added a uid field.
5914         (PKT_user_id): Added field to store preferences and a reference
5915         counter.
5916         * parse-packet.c (parse_user_id,parse_photo_id): Initialize them
5917         * free-packet.c (free_user_id): Free them.
5918         (copy_user_id): Removed.
5919         (scopy_user_id): New. 
5920         (cmp_user_ids): Optimized for identical pointers.
5921         (release_public_key_parts): Release the uid.
5922         (copy_public_key_with_new_namehash): Removed.
5923         (copy_prefs): New.
5924         * keyedit.c (menu_adduid): Use the new shallow copy user id.
5925         (show_prefs): Adjusted implementation.
5926         (keyedit_menu): No more need to update the trustdb after changing
5927         preferences.
5928         * getkey.c (fixup_uidnode): Store preferences.
5929         (find_by_name): Return a user id packet and remove namehash stuff.
5930         (lookup): Removed the unused namehash stuff.
5931         (finish_lookup): Added foundu arg.
5932         (pk_from_block): Removed the namehash arg and changed all callers.
5933         (merge_selfsigs): Copy prefs to all keys.
5934         * trustdb.c (get_pref_data): Removed.
5935         (is_algo_in_prefs): Removed.
5936         (make_pref_record): Deleted and removed all class.
5937         * pkclist.c (select_algo_from_prefs): Adjusted for the new
5938         preference implementation.
5939         * pubkey-enc.c (is_algo_in_prefs): New.
5940         (get_it): Use that new function. 
5942 2001-08-09  Werner Koch  <wk@gnupg.org>
5944         * build-packet.c (build_sig_subpkt): Fixed calculation of
5945         newarea->size.
5947         * g10.c (main): New option "--preference-list"
5948         * keyedit.c (keyedit_menu): New commands "setpref" and "updpref".
5949         (menu_set_preferences): New.
5950         * keygen.c (keygen_set_std_prefs): New.
5951         (set_one_pref): New.
5952         (check_zip_algo): New.
5953         (keygen_get_std_prefs): New.
5954         (keygen_upd_std_prefs): New
5955         (keygen_add_std_prefs): Move the pref setting code into the above fnc.
5956         * build-packet.c (build_sig_subpkt): Updated the list of allowed
5957         to update subpackets.
5959 2001-08-08  Werner Koch  <wk@gnupg.org>
5961         * packet.h (subpktarea_t): New.
5962         (PKT_signature): Use that type for hashed_data and unhashed_data and
5963         removed the _data prefix from those fields.  Changed all users.
5964         * parse-packet.c (parse_signature): Changed allocation for that.
5965         (parse_sig_subpkt): Changed declaration
5966         (enum_sig_subpkt): Ditto and changed implementation accordingly.
5967         * free-packet.c (cp_subpktarea): Renamed from cp_data_block and
5968         adjusted implementation. Changed caller.
5969         * sig-check.c (mdc_kludge_check): Adjusted the hashing.
5970         (do_check): Ditto.
5971         * sign.c (sign_file, clearsign_file, make_keysig_packet,
5972         update_keysig_packet): Ditto.
5973         * build-packet.c (build_sig_subpkt): Partial rewrite.
5974         (find_subpkt): Adjusted and made static.
5975         (delete_sig_subpkt): Adjusted.
5976         (do_signature): Ditto.
5978         * keygen.c (ask_keysize): Do not print the notes about suggested
5979         key sizes if just a DSA key is generated.
5981         * trustdb.c (add_ultimate_key): s/log_error/log_info/ for
5982         duplicated inserted trusted keys.
5984 2001-08-07  Werner Koch  <wk@gnupg.org>
5986         * sign.c (sleep): Redefine for W32.
5988         * g10.c, options.h: Set new flag opt.no_homedir_creation when
5989         --no-options is given.
5990         * openfile.c (try_make_homedir): Don't create the homedir in that case.
5992 2001-08-03  Werner Koch  <wk@gnupg.org>
5994         * armor.c (armor_filter): Removed the default comment string
5995         because it could get us in trouble due to translations using non
5996         ascii characters.
5998 2001-08-01  Werner Koch  <wk@gnupg.org>
6000         * keylist.c (list_keyblock_print): Do not list revoked UIDs unless
6001         in verbose mode and we do no signature listing.
6003         * getkey.c (finish_lookup): Skip subkeys which are not yet valid.
6004         * g10.c, options.h: New option --ignore-valid-from.
6006         * sign.c (make_keysig_packet): Added new sigversion argument to
6007         allow the caller to force generation of required signature
6008         version. Changed all callers. Suggested by Thomas Roessler.
6010         * keyedit.c (sign_uids): Force v4 signature generation for local
6011         sigs.  Removed the check for local signature and pre-v4 keys.
6013 2001-07-27  Werner Koch  <wk@gnupg.org>
6015         * keyedit.c (sign_uids): Check that we are not trying to to a
6016         lsign with a pre-v4 key.  Bug noticed by Thomas Roessler.
6018 2001-07-26  Werner Koch  <wk@gnupg.org>
6020         * parse-packet.c (parse_photo_id): Reset all variables.
6021         * getkey.c (merge_selfsigs_main): Removed checks on PHOTO_ID
6022         because this is handled identically to a user ID.
6024 2001-07-06  Werner Koch  <wk@gnupg.org>
6026         * cipher.c (write_header): Don't use MDC with --rfc1991.  Suggested
6027         by disastry@saiknes.lv.
6029 2001-07-05  Werner Koch  <wk@gnupg.org>
6031         * g10.c, options.h: New option --preserve-permissions.
6032         * ringedit.c (add_keyblock_resource): Use it here
6033         (keyring_copy): and here.
6035         * trustdb.c (verify_own_keys): Be more silent on --quiet.
6036         Suggested by Thomas Roessler.
6037         * sig-check.c (check_key_signature2): Ditto.
6038         * mainproc.c (proc_encrypted, proc_tree): Ditto
6039         * getkey.c (lookup): Ditto.
6041 2001-07-04  Werner Koch  <wk@gnupg.org>
6043         * ringedit.c (add_keyblock_resource): Restore filename in case of error.
6045 2001-06-25  Werner Koch  <wk@gnupg.org>
6047         * kbnode.c (dump_kbnode): Print the signature timestamp.
6049         * keyedit.c (keyedit_menu): New menu point "primary".
6050         (change_primary_uid_cb): New.
6051         (menu_set_primary_uid): New.
6052         * sign.c (update_keysig_packet): New.
6053         * build-packet.c (build_sig_subpkt): Put the primary UID flag into
6054         the hashed area. Allow update of some more packets.
6056 2001-06-15  Werner Koch  <wk@gnupg.org>
6058         * getkey.c (merge_selfsigs): Exit gracefully when a secret key is
6059         encountered.  May happen if a secret key is in public keyring.
6060         Reported by Francesco Potorti.
6061         
6062 2001-06-12  Werner Koch  <wk@gnupg.org>
6064         * getkey.c (compare_name): Use ascii_memistr(), ascii_memcasecmp()
6065         * keyedit.c (keyedit_menu): Use ascii_strcasecmp().
6066         * armor.c (radix64_read): Use ascii_toupper().  
6067         * ringedit.c (do_bm_search): Ditto.
6068         * keygen.c (read_parameter_file): Ditto.
6069         * openfile.c (CMP_FILENAME): Ditto.
6070         * g10.c (i18n_init): We can now use just LC_ALL.
6072 2001-05-29  Werner Koch  <wk@gnupg.org>
6074         * keygen.c (generate_subkeypair): Print a warning if a subkey is
6075         created on a v3 key. Suggested by Brian M. Carlson.
6077 2001-05-27  Werner Koch  <wk@gnupg.org>
6079         * keyid.c (get_lsign_letter): New.
6080         * keylist.c (list_keyblock_colon): Use it here.
6081         * mainproc.c (list_node): and here.
6083         * getkey.c, packet.h, free-packet.c: Removed that useless key
6084         created field; I dunno why I introducded this at all - the
6085         creation time is always bound to the key packet and subject to
6086         fingerprint calculation etc.
6088         * getkey.c (fixup_uidnode): Add keycreated arg and use this
6089         instead of the signature timestamp to calculate the
6090         help_key_expire.  Bug reported by David R. Bergstein.
6091         (merge_selfsigs_main): Correct key expiration time calculation.
6092         (merge_selfsigs_subkey): Ditto.
6094 2001-05-25  Werner Koch  <wk@gnupg.org>
6096         * revoke.c (gen_revoke): Add a cast to a tty_printf arg.
6097         * delkey.c (do_delete_key): Ditto.
6098         * keyedit.c (print_and_check_one_sig): Ditto.
6099         (ask_revoke_sig): Ditto.
6100         (menu_revsig): Ditto.
6101         (check_all_keysigs): Removed unused arg.
6103 2001-05-23  Werner Koch  <wk@gnupg.org>
6105         * g10.c (opts): Typo fix by Robert C. Ames.
6107 2001-05-06  Werner Koch  <wk@gnupg.org>
6109         * revoke.c: Small typo fix
6111 2001-05-04  Werner Koch  <wk@gnupg.org>
6113         * passphrase.c (passphrase_clear_cache): Shortcut if agent usage
6114         is not enabled.
6116 2001-05-01  Werner Koch  <wk@gnupg.org>
6118         * passphrase.c (writen): Replaced ssize_t by int.  Thanks to 
6119         to Robert Joop for reporting that SunOS 4.1.4 does not have it.
6121 2001-04-28  Werner Koch  <wk@gnupg.org>
6123         * getkey.c (merge_public_with_secret): pkttype was not set to subkey.
6125 2001-04-27  Werner Koch  <wk@gnupg.org>
6127         * skclist.c (build_sk_list): Changed one log_debug to log_info.
6129 2001-04-25  Werner Koch  <wk@gnupg.org>
6131         * keyedit.c (show_prefs): Add a verbose mode.
6132         (show_key_with_all_names): Pass verbose flag for special value of
6133         with_pref.
6134         (keyedit_menu): New command "showpref"
6135         (show_key_with_all_names): Mark revoked uids and the primary key.
6137 2001-04-24  Werner Koch  <wk@gnupg.org>
6139         * getkey.c (get_primary_uid): Return a different string in case of
6140         error and made it translatable.
6142         * build-packet.c (do_secret_key): Ugly, we wrote a zero
6143         instead of the computed ndays.  Thanks to M Taylor for complaining
6144         about a secret key import problem.
6146 2001-04-23  Werner Koch  <wk@gnupg.org>
6148         * hkp.c (hkp_ask_import): Allow to specify a port number for the 
6149         keyserver.  Add a kudge to set the no_shutdown flag.
6150         (hkp_export): Ditto.
6151         * options.skel: Document the changes 
6153 2001-04-20  Werner Koch  <wk@gnupg.org>
6155         * options.skel: Add some more comments.
6157 2001-04-19  Werner Koch  <wk@gnupg.org>
6159         * keyid.c (mk_datestr): New.  Handles negative times.  We must do
6160         this because Windoze segvs on negative times passed to gmtime().
6161         Changed all datestr_from function to use this one.
6163         * keyid.c, keyid.h (colon_strtime): New. To implement the
6164         fixed-list-mode.
6165         (colon_datestr_from_pk): New.
6166         (colon_datestr_from_sk): New.
6167         (colon_datestr_from_sig): New.
6168         * keylist.c (list_keyblock_colon): Use these functions here.
6169         * mainproc.c (list_node): Ditto.
6171 2001-04-18  Werner Koch  <wk@gnupg.org>
6173         * openfile.c (open_sigfile): Fixed the handling of ".sign".
6174         * mainproc.c (proc_tree): Use iobuf_get_real_fname.
6175         Both are by Vincent Broman.
6177 2001-04-14  Werner Koch  <wk@gnupg.org>
6179         * getkey.c (fixup_uidnode): Removed check for !sig which is
6180         pointless here.  Thanks to Jan Niehusmann.
6182 2001-04-10  Werner Koch  <wk@gnupg.org>
6184         * sig-check.c (check_key_signature2): Use log_info instead of
6185         log_error so that messed up keys do not let gpg return an error.
6186         Suggested by Christian Kurz.
6188         * getkey.c (merge_selfsigs_main): Do a fixup_uidnode only if we
6189         have both, uid and sig.  Thanks to M Taylor.
6191 2001-04-05  Werner Koch  <wk@gnupg.org>
6193         * armor.c (unarmor_pump_new,unarmor_pump_release): New.
6194         (unarmor_pump): New. 
6195         * pipemode.c (pipemode_filter): Use the unarmor_pump to handle
6196         armored or non-armored detached signatures.  We can't use the
6197         regular armor_filter because this does only check for armored
6198         signatures the very first time.  In pipemode we may have a mix of
6199         armored and binary detached signatures.
6200         * mainproc.c (proc_tree): Do not print the "old style" notice when
6201         this is a pipemode processes detached signature.
6202         (proc_plaintext): Special handling of pipemode detached sigs.
6204         * packet.h (CTRLPKT_PLAINTEXT_MARK): New.
6205         * parse-packet.c (create_gpg_control): New.
6206         * kbnode.c (dump_kbnode): Support it here.
6207         * mainproc.c (check_sig_and_print): Fixed the check for bad
6208         sequences of multiple signatures.
6209         (proc_plaintext): Add the marker packet.
6210         (proc_tree): We can now check multiple detached signatures.
6212 2001-04-02  Werner Koch  <wk@gnupg.org>
6214         The length of encrypted packets for blocksizes != 8 was not
6215         correct encoded.  I think this is a minor problem, because we
6216         usually use partial length packets.  Kudos to Kahil D. Jallad for
6217         pointing this out.
6218         * packet.h: Add extralen to PKT_encrypted.
6219         * cipher.c (write_header): Set extralen.
6220         * build-packet.c (do_encrypted): Use extralen instead of const 10.
6221         (do_encrypted_mdc): Ditto.
6222         * parse-packet.c (parse_encrypted): Set extralen to 0 because we
6223         don't know it here.
6225 2001-03-30  Werner Koch  <wk@gnupg.org>
6227         * getkey.c (premerge_public_with_secret): Changed wording an add
6228         the keyID to the info message.
6230 2001-03-29  Werner Koch  <wk@gnupg.org>
6232         * getkey.c (premerge_public_with_secret): Use log_info instead of
6233         log_error when no secret key was found for a public one.
6234         Fix the usage if the secret parts of a key are not available.
6236         * openfile.c (ask_outfile_name): Trim spaces.
6237         (open_outfile): Allow to enter an alternate filename.  Thanks to
6238         Stefan Bellon.
6239         * plaintext.c (handle_plaintext): Ditto.
6241 2001-03-28  Werner Koch  <wk@gnupg.org>
6243         * mainproc.c (do_check_sig): Allow direct key and subkey
6244         revocation signature.
6245         * sig-check.c (check_key_signature2): Check direct key signatures.
6246         Print the signature class along with an error.
6248 2001-03-27  Werner Koch  <wk@gnupg.org>
6250         * packet.h: Add a missing typedef to an enum.  Thanks to Stefan Bellon.
6252         * g10.c: New option --no-sig-create-check.
6253         * sign.c (do_sign): Implement it here.
6254         * g10.c: New option --no-sig-cache.
6255         * sig-check.c (check_key_signature2): Implement it here.
6256         (cache_selfsig_result): and here.
6258         * keylist.c (list_keyblock): Removed debugging stuff.
6260         * getkey.c (cache_public_key): Made global.
6261         * keygen.c (write_selfsig, write_keybinding): Cache the new key.
6263         * getkey.c (key_byname): Add new arg secmode and changed all
6264         callers to request explicitly the mode.  Deriving this information
6265         from the other supplied parameters does not work if neither pk nor
6266         sk are supplied.
6268 2001-03-25  Werner Koch  <wk@gnupg.org>
6270         * packet.h (ctrlpkttype_t): New.
6271         * mainproc.c (add_gpg_control,proc_plaintext,proc_tree): Use the
6272         new enum values.
6273         * pipemode.c (make_control): Ditto.
6274         * armor.c (armor_filter): Ditto.
6276 2001-03-24  Werner Koch  <wk@gnupg.org>
6278         * sign.c (do_sign): Verify the signature right after creation.
6280 2001-03-23  Werner Koch  <wk@gnupg.org>
6282         * status.c, status.h (STATUS_UNEXPECTED): New.
6283         * mainproc.c (do_proc_packets): And emit it here.
6285 2001-03-21  Werner Koch  <wk@gnupg.org>
6287         * status.c: Add sys/types.h so that it runs on Ultrix.  Reported
6288         by Georg Schwarz.x
6290         * build-packet.c (build_sig_subpkt): Fixed generaton of packet
6291         length header in case where 2 bytes headers are needed.  Thanks to
6292         Piotr Krukowiecki.
6294 2001-03-19  Werner Koch  <wk@gnupg.org>
6296         * g10.c (main): the default keyring is no always used unless
6297         --no-default-keyring is given.  
6299         * ringedit.c (add_keyblock_resource): invalidate cache after file
6300         creation.
6302 2001-03-15  Werner Koch  <wk@gnupg.org>
6304         * keygen.c (ask_algo): Changed the warning of the ElGamal S+E Algo.
6306         * keylist.c (print_capabilities): New.
6307         (list_keyblock_colon): and use it here.
6309 2001-03-13  Werner Koch  <wk@gnupg.org>
6311         * main.c, options.h: New option --fixed_list_mode.
6312         * keylist.c (list_keyblock_colon): use it here.
6314         * getkey.c (merge_keys_and_selfsig): Divert merging of public keys
6315         to the function used in key selection..
6316         * keylist.c (is_uid_valid): Removed.
6317         (list_keyblock): Splitted into ..
6318         (list_keyblock_print, list_keyblock_colon): .. these.
6319         functions.  Changed them to use the flags set in the key lookup code.
6320         (reorder_keyblock): New, so that primary user IDs are listed first.
6322         * ringedit.c (keyring_copy): flush the new iobuf chaces before
6323         rename or remove operations.  This is mainly needed for W32.
6325         * hkp.c [HAVE_DOSISH_SYSTEM]: Removed the disabled code because we
6326         have now W32 socket support in ../util/http.c
6328         * skclist.c (key_present_in_sk_list): New.
6329         (is_duplicated_entry): New.
6330         (build_sk_list): Check for duplicates and do that before unlocking.
6332 2001-03-12  Werner Koch  <wk@gnupg.org>
6334         * armor.c (parse_header_line): Removed double empty line check.
6335         (parse_header_line): Replaced trim_trailing_ws with a counting
6336         function so that we can adjust for the next read.
6338         * options.skel: Fixed 3 typos. By Thomas Klausner. Replaced the
6339         keyserver example by a better working server. 
6341         * parse-packet.c (parse_symkeyenc): Return Invalid_Packet on error.
6342         (parse_pubkeyenc): Ditto.
6343         (parse_onepass_sig): Ditto.
6344         (parse_plaintext): Ditto.
6345         (parse_encrypted): Ditto.
6346         (parse_signature): Return error at other places too.
6347         (parse_key): Ditto.
6348         * g10.c (main): Set opt.list_packets to another value when invoked
6349         with the --list-packets command.
6350         * mainproc.c (do_proc_packets): Don's stop processing when running
6351         under --list-packets command.
6353         * signal.c (do_sigaction): Removed.
6354         (init_one_signal): New to replace the above.  Needed to support
6355         systems without sigactions. Suggested by Dave Dykstra.
6356         (got_fatal_signal,init_signals): Use the above here. 
6357         (do_block): Use sigset() if sigprocmask() is not available.
6359         * armor.c (parse_hash_header): Test on TIGER192, which is the
6360         correct value as per rfc2440.  By Edwin Woudt.
6362 2001-03-08  Werner Koch  <wk@gnupg.org>
6364         * misc.c: Include time.h. By James Troup.
6366         * getkey.c: Re-enabled the unknown user Id and PK caches and
6367         increased their sizes.
6369         * getkey.c (merge_selfsigs_main): Set expire date and continue
6370         processing even if we found a revoked key.
6371         (merge_selfsigs_subkeys): Ditto.
6372         
6373         * packet.h: Add an is_revoked flag to the user_id packet.
6374         * getkey.c (fixup_uidnode): Set that flag here.
6375         (merge_selfsigs_main): Fix so that the latest signature is used to
6376         find the self-signature for an UID.
6377         * parse-packet.c (parse_user_id): Zero out all fields.
6378         * mainproc.c (check_sig_and_print): Print the primary user ID
6379         according the the node flag and then all other non-revoked user IDs.
6380         (is_uid_revoked): Removed; it is now handled by the key selection code.
6381         
6382         Changed the year list of all copyright notices.
6383         
6384 2001-03-07  Werner Koch  <wk@gnupg.org>
6386         * getkey.c (finish_lookup): Print an info message only in verbose mode.
6388 2001-03-05  Werner Koch  <wk@gnupg.org>
6390         * packet.h: Replaced sigsubpkt_t value 101 by PRIV_VERIFY_CACHE.
6391         We have never used the old value, so we can do this without any harm.
6392         * parse-packet.c (dump_sig_subpkt): Ditto.
6393         (parse_one_sig_subpkt): Parse that new sub packet.
6394         * build-packet.c (build_sig_subpkt): Removed the old one from the
6395         hashed area.
6396         (delete_sig_subpkt): New.
6397         (build_sig_subpkt): Allow an update of that new subpkt.
6398         * sig-check.c (check_key_signature2): Add verification caching
6399         (cache_selfsig_result): New.
6400         * export.c (do_export_stream): Delete that sig subpkt before exporting.
6401         * import.c (remove_bad_stuff): New.
6402         (import): Apply that function to all imported data 
6404 2001-03-03  Werner Koch  <wk@gnupg.org>
6406         * getkey.c: Introduced a new lookup context flag "exact" and used 
6407         it in all place where we once used primary.
6408         (classify_user_id2): Replaced the old function and add an extra
6409         argument to return whether an exact keyID has been requested.
6410         (key_byname): Removed the unused ctx.primary flag
6411         (get_seckey_byname2): Ditto.
6412         (finish_lookup): Changed debugging output.
6414 2001-03-02  Werner Koch  <wk@gnupg.org>
6416         * keylist.c (list_one): Remove the merge key calls. 
6418 2001-03-01  Werner Koch  <wk@gnupg.org>
6420         * getkey.c (finish_lookup): Don't use it if we no specific usage
6421         has been requested.
6422         (merge_selfsigs_main): fix UID only if we have an signature.
6423         (lookup): Return UNU_PUBKEY etc. instead of NO_PUBKEY if we found
6424         a key but the requested usage does not allow this key.
6425         * import.c (import_one): Take UNU_PUBKEY into account.
6426         * mainproc.c (list_node): Ditto.
6427         * keylist.c (list_keyblock): Ditto.
6428         * keyedit.c (print_and_check_one_sig): Ditto. 
6430 2001-02-09  Werner Koch  <wk@gnupg.org>
6432         * delkey.c (delete_key): Removed that silly assert which rendered
6433         the whole new stuff meaningless.
6435 2001-02-08  Werner Koch  <wk@gnupg.org>
6437         * getkey.c (key_byname): It can happen that we have both, sk and pk
6438         NULL, fix for that.
6440         * parse-packet.c (parse_one_sig_subpkt): Add support for
6441         primary_uid and key_flags.
6442         (can_handle_critical): Ditto
6444         * parse-packet.c (parse_encrypted): Fixed listing of pktlen for
6445         MDC packets.
6447         * getkey.c: Backported the version of this file from gpg 1.1. this
6448         involved some changes in other files too.
6449         * parse-packet.c (parse_key): Clear req_usage.
6450         * skclist.c (build_sk_list): Use req_usage to pass the usage
6451         information to the lookup function.
6452         * pkclist.c (build_pk_list): Ditto.
6453         * free-packet.c (copy_public_parts_to_secret_key): New.
6454         * keydb.h: Add IS_* macros to check the sig_class.
6455         * misc.c (openpgp_cipher_test_algo): New.
6456         (openpgp_pk_test_algo): New.
6457         (openpgp_pk_algo_usage): New.
6458         (openpgp_md_test_algo): New.
6459         * packet.h: Add a few fields to PKT_{public,secret}_key and
6460         PKT_user_id.
6461         * seckey-cert.c (do_check): Use the new main_keyid field.
6463 2001-02-04  Werner Koch  <wk@gnupg.org>
6465         * encr-data.c (decrypt_data): Catch error when we had problems to
6466         parse the encrypted packet. By Timo.
6468 2001-01-29  Werner Koch  <wk@gnupg.org>
6470         * g10.c (main): --batch does now set nogreeting.
6472         * delkey.c (do_delete_key): Fixed delete-both functionality.
6474 2001-01-22  Werner Koch  <wk@gnupg.org>
6476         * g10.c: New command --delete-secret-and-public-key.
6477         * delkey.c (delete_key): Add new arg allow_both.
6478         (do_delete_key): Move most stuff from above to this new function.
6480 2001-01-12  Werner Koch  <wk@gnupg.org>
6482         * passphrase.c (passphrase_to_dek): Use MD5 when IDEA is installed
6483         and we have no S2K.
6484         * mainproc.c (proc_encrypted): Likewise
6486 2001-01-11  Werner Koch  <wk@gnupg.org>
6488         * sig-check.c (do_check): Print the signature key expire message
6489         only in verbose mode and added the keyID.
6491 2001-01-09  Werner Koch  <wk@gnupg.org>
6493         * status.c, status.h: New status USERID_HINT. 
6494         (write_status_text): Replace LF and CR int text by C-escape sequence.
6496         * passphrase.c (passphrase_to_dek): Fixed the NEED_PASSPHRASE
6497         output.  It does now always print 2 keyIDs.  Emit the new
6498         USERID_HINT.
6500 2001-01-08  Werner Koch  <wk@gnupg.org>
6502         * g10.c, options.h: New option --no-expensive-trust-checks.
6503         * keylist.c (list_keyblock): Act on this option.
6505 2001-01-04  Werner Koch  <wk@gnupg.org>
6507         * g10.c (main): Set homedir only in the pre-parsing phase and
6508         replace backslashes in the W32 version.
6510 2001-01-03  Werner Koch  <wk@gnupg.org>
6512         * status.c, status.h : New status KEY_CREATED
6513         * keygen.c (do_generate_keypair,generate_subkeypair): Emit it.
6515 2000-12-28  Werner Koch  <wk@gnupg.org>
6517         * signal.c (got_fatal_signal): Remove lockfiles here because the
6518         atexit stuff does not work due to the use of raise. Suggested by
6519         Peter Fales.
6520         * gpgv.c (remove_lockfiles): New stub.
6521         
6522 2000-12-19  Werner Koch  <wk@gnupg.org>
6524         * status.c, status.h (cpr_get_no_help): New.
6525         * keyedit.c (keyedit_menu): Use it here because we have our own
6526         help list here.
6528 2000-12-18  Werner Koch  <wk@gnupg.org>
6530         * mainproc.c (print_failed_pkenc): Don't print the sometimes
6531         confusing message about unavailabe secret key.  Renamed ...
6532         (print_pkenc_list): ... to this and introduced failed arg.
6533         (proc_encrypted): Print the failed encryption keys and then
6534         the one to be used.
6535         (proc_pubkey_enc): Store also the key we are going to use.
6537         * mainproc.c (check_sig_and_print): Don't list revoked user IDs.
6538         (is_uid_revoked): New.
6540 2000-12-08  Werner Koch  <wk@gnupg.org>
6542         * pipemode.c: Made the command work.  Currently only for
6543         non-armored detached signatures.
6544         * mainproc.c (release_list): Reset the new pipemode vars.
6545         (add_gpg_control): Handle the control packets for pipemode
6546         * status.c, status.h: New stati {BEGIN,END}_STREAM.
6548 2000-12-07  Werner Koch  <wk@gnupg.org>
6550         * g10.c: New option --allow-secret-key-import.
6551         * import.c (import_keys,import_keys_stream): Honor this option.
6552         (import): New arg allow_secret and pass that arg down to ...
6553         (import_secret_one): to this and print a warning if secret key
6554         importing is not allowed.
6556 2000-12-05  Werner Koch  <wk@gnupg.org>
6558         * cipher.c (cipher_filter): Moved the end_encryption status ...
6559         * encode.c (encode_simple,encode_crypt): to here
6560         * sign.c (sign_file): and here.
6562         * status.c (mywrite): Removed.
6563         (get_status_string): Removed the LFs from the strings.
6564         (set_status_fd,is_status_enabed,write_status_text,
6565         write_status_buffer): Replaced all mywrite by stdio calls and use
6566         fdopen to create a strem.  This is needed to make things smoother
6567         in the W32 version.
6569 2000-12-04  Werner Koch  <wk@gnupg.org>
6571         * import.c (merge_blocks): Increment n_sigs for revocations.
6573 2000-11-30  Werner Koch  <wk@gnupg.org>
6575         * g10.c (main): Use iobuf_translate_file_handle for all options
6576         with filehandles as arguments.  This is function does some magic
6577         for the W32 API.
6579         * verify.c (verify_signatures): Add a comment rant about the
6580         detached signature problem.
6581         * mainproc.c (proc_tree): Issue an error if a detached signature
6582         is assumed but a standard one was found.
6583         * plaintext.c (hash_datafiles): Don't fall back to read signature
6584         from stdin.
6585         * openfile.c (open_sigfile): Print verbose message only if the
6586         file could be accessed.
6588 2000-11-24  Werner Koch  <wk@gnupg.org>
6590         * passphrase.c [HAVE_DOSISH_SYSTEM]: Disabled all the agent stuff.
6592 2000-11-16  Werner Koch  <wk@gnupg.org>
6594         * g10.c: New option --use-agent
6595         * passphrase.c (agent_open,agent_close): New.
6596         (agent_get_passphrase,agent_clear_passphrase): New.
6597         (passphrase_clear_cache): New.
6598         (passphrase_to_dek): Use the agent here.
6599         * seckey-cert.c (do_check): Clear cached passphrases.
6601 2000-11-15  Werner Koch  <wk@gnupg.org>
6603         * status.c (write_status_text): Moved the big switch to ...
6604         (get_status_string): ... new function.
6605         (write_status_buffer): New.
6607         * status.c (mywrite): New and replaced all write() by this.
6609         * status.c, status.h: Add 3 status lcodes for notaions and policy.
6610         * mainproc.c (print_notation_data): Do status output of notations.
6611         
6612 2000-11-13  Werner Koch  <wk@gnupg.org>
6614         * sign.c (clearsign_file): Use LF macro to print linefeed.
6615         
6616 2000-11-11  Paul Eggert  <eggert@twinsun.com>
6618         Clean up the places in the code that incorrectly use "long" or
6619         "unsigned long" for file offsets.  The correct type to use is
6620         "off_t".  The difference is important on large-file hosts,
6621         where "off_t" is longer than "long".
6623         * keydb.h (struct keyblock_pos_struct.offset):
6624         Use off_t, not ulong, for file offsets.
6625         * packet.h (dbg_search_packet, dbg_copy_some_packets,
6626         search_packet, copy_some_packets): Likewise.
6627         * parse-packet.c (parse, dbg_search_packet, search_packet,
6628         dbg_copy_some_packets, copy_some_packets): Likewise.
6629         * ringedit.c (keyring_search): Likewise.
6631         * parse-packet.c (parse): Do not use %lu to report file
6632         offsets in error diagnostics; it's not portable.
6633         * ringedit.c (keyring_search): Likewise.
6635 2000-11-09  Werner Koch  <wk@gnupg.org>
6637         * g10.c (main): New option --enable-special-filenames.
6639 2000-11-07  Werner Koch  <wk@gnupg.org>
6641         * g10.c (main): New command --pipemode.
6642         * pipemode.c: New.
6644 2000-10-23  Werner Koch  <wk@gnupg.org>
6646         * armor.c (armor_filter): Changed output of hdrlines, so that a CR
6647         is emitted for DOS systems.
6649         * keygen.c (read_parameter_file): Add a cast for isspace().
6651         * status.c (myread): Use SIGINT instead of SIGHUP for DOS. 
6653 2000-10-19  Werner Koch  <wk@gnupg.org>
6655         * g10.c: New option --ignore-crc-error
6656         * armor.c (invalid_crc): New.
6657         (radix64_read): Act on new option.
6659         * openfile.c (try_make_homedir): Klaus Singvogel fixed a stupid
6660         error introduced on Sep 6th. 
6662 2000-10-18  Werner Koch  <wk@gnupg.org>
6664         * misc.c (print_cipher_algo_note): Don't print the note for AES.
6665         Changed wording.
6667 2000-10-16  Werner Koch  <wk@gnupg.org>
6669         * mainproc.c (do_proc_packets): Hack to fix the problem that
6670         signatures are not detected when there is a MDC packet but no
6671         compression packet.
6672         
6673         * g10.c (print_hashline): New.
6674         (print_mds): Use above func with --with-colons.
6676         * mainproc.c (check_sig_and_print): Detect multiple signatures
6677         and don't verify them.
6679 2000-10-14  Werner Koch  <wk@gnupg.org>
6681         * mainproc.c (add_onepass_sig): There is an easier solution to the
6682         error fixed yesterday; just check that we only have onepass
6683         packets.  However, the other solution provides an cleaner
6684         interface and opens the path to get access to other information
6685         from the armore headers.
6686         (release_list): Reset some more variables.
6688 2000-10-13  Werner Koch  <wk@gnupg.org>
6690         * mainproc.c (add_gpg_control): New.
6691         (do_proc_packets): use it.
6692         (proc_plaintext): Changed logic to detect clearsigns.
6693         (proc_tree): Check the cleartext sig with some new code.
6695         * packet.h: New packet PKT_GPG_CONTROL.
6696         * parse-packet.c (parse_gpg_control): New.
6697         * misc.c (get_session_marker): New.
6698         * armor.c (armor_filter): Replaced the faked 1-pass packet by the
6699         new control packet.
6701         * keyedit.c (keyedit_menu): Allow batchmode with a command_fd. 
6702         * status.c (my_read): New.
6703         (do_get_from_fd): use it.
6705 2000-10-12  Werner Koch  <wk@gnupg.org>
6707         * keygen.c (keygen_add_std_prefs): Add Rijndael to the prefs.
6709 2000-10-07  Werner Koch  <wk@gnupg.org>
6711         * gpgv.c: Add more stubs for ununsed code to make the binary smaller.
6713 Wed Oct  4 15:50:18 CEST 2000  Werner Koch  <wk@openit.de>
6715         * sign.c (hash_for): New arg to take packet version in account, changed
6716         call callers.
6718         * gpgv.c: New.
6719         * Makefile.am: Rearranged source files so that gpgv can be build with
6720         at least files as possible.
6722 Mon Sep 18 12:13:52 CEST 2000  Werner Koch  <wk@openit.de>
6724         * hkp.c (not_implemented): Print a notice for W32
6726 Fri Sep 15 18:40:36 CEST 2000  Werner Koch  <wk@openit.de>
6728         * keygen.c (keygen_add_std_prefs): Changed order of preferences to
6729         twofish, cast5, blowfish.
6731         * pkclist.c (algo_available): Removed hack to disable Twofish.
6733 Thu Sep 14 17:45:11 CEST 2000  Werner Koch  <wk@openit.de>
6735         * parse-packet.c (dump_sig_subpkt): Dump key flags. Print special
6736         warning in case of faked ARRs.
6738         * getkey.c (finsih_lookup): Hack so that for v4 RSA keys the subkey
6739         is used for encryption.
6741 Thu Sep 14 14:20:38 CEST 2000  Werner Koch  <wk@openit.de>
6743         * g10.c (main): Default S2K algorithms are now SHA1 and CAST5 - this
6744         should solve a lot of compatibility problems with other OpenPGP
6745         apps because those algorithms are SHOULD and not optional.  The old
6746         way to force it was by using the --openpgp option whith the drawback 
6747         that this would disable a couple of workarounds for PGP.
6749         * g10.c (main): Don't set --quite along with --no-tty.  By Frank Tobin.
6751         * misc.c (disable_core_dump): Don't display a warning here but a return
6752         a status value and ...
6753         * g10.c (main): ...print warnining here. Suggested by Sam Roberts.
6755 Wed Sep 13 18:12:34 CEST 2000  Werner Koch  <wk@openit.de>
6757         * keyedit.c (keyedit_menu): Allow to use "debug" on the secret key.
6759         * ringedit.c (cmp_seckey): Fix for v4 RSA keys.
6760         * seckey-cert.c (do_check): Workaround for PGP 7 bug.
6762 Wed Sep  6 17:55:47 CEST 2000  Werner Koch  <wk@openit.de>
6764         * misc.c (print_pubkey_algo_note): Do not print the RSA notice.
6765         * sig-check.c (do_signature_check): Do not emit the RSA status message.
6766         * pubkey-enc.c (get_session_key): Ditto.
6768         * encode.c (encode_simple, encode_crypt): Fix for large files.
6769         * sign.c (sign_file): Ditto.
6771 Wed Sep  6 14:59:09 CEST 2000  Werner Koch  <wk@openit.de>
6773         * passphrase.c (hash_passphrase): Removed funny assert.  Reported by
6774         David Mathog.
6776         * openfile.c (try_make_homedir): Changes for non-Posix systems.
6777         * g10.c (main): Take the default homedir from macro.
6779         * g10.c: The --trusted-key option is back.
6780         * trustdb.c (verify_own_key): Handle this option.
6781         (add_ultimate_key): Moved stuff from verify_own_key to this new func.
6782         (register_trusted_key): New.
6784 Fri Aug 25 16:05:38 CEST 2000  Werner Koch  <wk@openit.de>
6786         * parse-packet.c (dump_sig_subpkt): Print info about the ARR.
6788         * openfile.c (overwrite_filep): Always return okay if the file is
6789         called /dev/null. 
6790         (make_outfile_name): Add ".sign" to the list of know extensions.
6791         (open_sigfile): Ditto.
6793 Wed Aug 23 19:52:51 CEST 2000  Werner Koch  <wk@openit.de>
6795         * g10.c: New option --allow-freeform-uid. By Jeroen C. van Gelderen.
6796         * keygen.c (ask_user_id): Implemented here.
6798 Fri Aug  4 14:23:05 CEST 2000  Werner Koch  <wk@openit.de>
6800   * status.c (do_get_from_fd): Ooops, we used fd instead of opt.command_fd.
6801   Thanks to Michael Tokarev.
6803 Tue Aug  1 20:06:23 CEST 2000  Werner Koch  <wk@openit.de>
6805   * g10.c: New opttion --try-all-secrets on suggestion from Matthias Urlichs.
6806   * pubkey-enc.c (get_session_key): Quite easy to implement here.
6808 Thu Jul 27 17:33:04 CEST 2000  Werner Koch  <wk@openit.de>
6810   * g10.c: New option --merge-only.  Suggested by Brendan O'Dea.
6811   * import.c (import_one): Implemented it here
6812   (import_secret_one): Ditto.
6813   (print_stats): and give some stats.
6815 Thu Jul 27 12:01:00 CEST 2000  Werner Koch  <wk@openit.de>
6817   * g10.c: New options --show-session-key and --override-session-key
6818   * pubkey-enc.c (hextobyte): New.
6819   (get_override_session_key): New.
6820   * mainproc.c (proc_pubkey_enc): Add session-key stuff.
6821   * status.h, status.c (STATUS_SESSION_KEY): New.
6823 Thu Jul 27 10:02:38 CEST 2000  Werner Koch  <wk@openit.de>
6825   * g10.c (main): Use setmode(O_BINARY) for MSDOS while generating random bytes
6826   (print_mds): Likewise for stdin.
6827   * plaintext.c (handle_plaintext): Likewise for stdout.
6829 Mon Jul 24 10:30:17 CEST 2000  Werner Koch  <wk@openit.de>
6831   * keyedit.c (menu_expire): expire date for primary key can be set again.
6833 Wed Jul 19 11:26:43 CEST 2000  Werner Koch  <wk@openit.de>
6835   * keylist.c (is_uid_valid): New.
6836   (list_keyblock): Print validity information for all user IDs.  Note, this
6837   has to be done at other places too; for now we have only minimal support.
6839 Wed Jul 12 13:32:06 CEST 2000  Werner Koch  <wk@openit.de>
6841   * helptext.c, pkclist.c: s/superseeded/superseded/
6843 Mon Jul 10 16:08:57 CEST 2000  Werner Koch  <wk@openit.de>
6845   * parse-packet.c (enum_sig_subpkt): Fixed testing on crtitical bit in case
6846   of a NULL buffer.  Reported by Peter Marschall.
6848 Wed Jul  5 13:28:45 CEST 2000  Werner Koch  <wk@openit.de>
6850   * keyedit.c, keyid.c: Add some _()
6852   * argparse.c:  Changed the flag to suppress --version handling to also
6853   suppress --help.
6855 Wed Jun 28 11:54:44 CEST 2000  Werner Koch  <wk@openit.de>
6857   * armor.c (armor_filter): Set sigclass to 0 in case of non-dash-escaped
6858   clearsig.  This makes this mode work again.
6860   * mainproc.c (proc_tree): Fixed handling of one-pass-sig packets in textmode.
6861   Disabled the ugly workaround for PGP 5 - let's see whether thi breaks less
6862   cases. Found by Ted Cabeen.
6864   * options.h (DBG_HASHING): New.  All commented md_start_debug are now
6865   controlled by this debug option.
6867   * sign.c (print_status_sig_created): New and called from 2 places.
6869   * keygen.c (gen_rsa): New, but commented.
6870   (ask_algo): Commented support for RSA.
6872   * seckey-cert.c (protect_secret_key): Started to fix the code for v4 RSA
6873   keys - it is not solved yet. However, we have time until, Sep 20th ;)
6875 Wed Jun 14 12:27:09 CEST 2000  Werner Koch  <wk@openit.de>
6877   * status.c (init_shm_coprocessing): Changed the sequence of the get,attach
6878   to cope with the changes in newer Linux kernels.  This bug has been found
6879   by <dmitri@advantrix.com> who also proposed this solution.  Hopefully
6880   this does not break gpg on to many systems.
6882   * cipher.c (write_header): Protect the IV with the MDC too.
6883   * encr-data.c (decrypt_data): Likewise.
6885 Fri Jun  9 10:09:52 CEST 2000  Werner Koch  <wk@openit.de>
6887   * g10.c: New options --no-auto-key-retrieve
6888   * options.h (auto_key_retrieve): New.
6889   * mainproc.c (check_sig_and_print): Implemented that.
6891 Wed Jun  7 19:19:09 CEST 2000  Werner Koch  <wk@openit.de>
6893   * sig-check.c (do_check): Use EMULATE_MDENCODE also on v4 packets.
6895 Wed Jun  7 17:25:38 CEST 2000  Werner Koch  <wk@openit.de>
6897   * cipher.c (write_header): Use plain CFB mode for MDC encrypted packets.
6898   * encr-data.c (decrypt_data): Ditto.
6900 Mon Jun  5 23:41:54 CEST 2000  Werner Koch  <wk@openit.de>
6902   * seskey.c (do_encode_md, encode_md_value): Add new arg v3compathack to work
6903   around a bug in old versions.
6904   * sig-check.c (do_check): use the aboved workaround when enabled.
6905   * g10.c: New option --emulate-md-decode-bug
6907 Mon Jun  5 12:37:43 CEST 2000  Werner Koch  <wk@openit.de>
6909   * build-packet.c (do_mdc): New.
6910   (do_encrypted_mdc): Changed for the new proposal.
6911   * parse-packet.c (parse_mdc): New.
6912   (parse_encrypted): Fixed for the new proposal.
6913   * packet.h (PKT_MDC): New.
6914   * cipher.c (cipher_filter): Build the MDC packet here.
6915   * g10.c (main): Enable --force-mdc.
6916   * encr-data.c (mdc_decode_filter): Fixed for new MDC method
6918   * options.h(rfc2440): New.
6919   * g10.c (main): Changed the selected values for --openpgp to not include
6920   optional algorithms.
6922 Thu May 18 11:38:54 CEST 2000  Werner Koch  <wk@openit.de>
6924         * keyedit.c (keyedit_menu): Add a keyword arg to the prompt.
6926         * status.c, status.h: Added 3 new status tokens.
6927         * status.c (do_get_from_fd): New.
6928         (cpr_enabled,cpr_get,cpr_get_hidden,cpr_kill_prompt,
6929          cpr_get_answer_is_yes,cpr_get_answer_yes_no_quit): Modified to work
6930          with the new function.
6931         * g10.c: Add new option --command-fd.
6933         * status.c (progress_cb): New.
6934         (set_status_fd): Register progress functions
6936 Fri May 12 14:01:20 CEST 2000  Werner Koch  <wk@openit.de>
6938         * delkey.c (delete_key): Add 2 new status messages
6939         * status.c, status.h (STATUS_DELETE_PROBLEM): New.
6941         Fixed years of copyright in all source files.
6943 Mon May  1 17:08:14 CEST 2000  Werner Koch  <wk@openit.de>
6945         * trustdb.c (propagate_validity): Fixed the bug that only one uid
6946         gets fully trusted even when all are signed by an ultimate key.
6948 Mon May  1 15:38:04 CEST 2000  Werner Koch  <wk@openit.de>
6950         * getkey.c (key_byname): Always returned a defined context.  Fixed
6951         a segv for invalid user id specifications. Reported by Walter Koch.
6953         * getkey.c (get_user_id): I18ned "no user id" string. By Walter.
6955         * pkclist.c (do_show_revocation_reason): Typo fixes.
6956         * helptext.c: Ditto.
6958         * armor.c (armor_filter): Fixed some CRLF issues.  By Mike McEwan.
6960 Fri Apr 14 19:37:08 CEST 2000  Werner Koch  <wk@openit.de>
6962         * pkclist.c (do_show_revocation_reason): New.
6963         (show_revocation_reason): New and called at various places.
6965         * g10.c (main): Fixed small typo.
6967         * pkclist.c (do_we_trust): Act on always_trust but not for revoked
6968         keys. Suggested by Chip Salzenberg.
6970         * g10.c: New option --lock-never.
6972         * ringedit.c (get_writable_keyblock_file): New.
6973         * keygen.c (do_generate_keypair): Use this instead of the hardwired one.
6975         * keygen.c (ask_user_id): Check that the email address is in the
6976         correct field.  Suggested by Christian Kurz.
6978 Mon Apr 10 13:34:19 CEST 2000  Werner Koch  <wk@openit.de>
6980         * keyedit.c (show_key_with_all_names): s/sbb/ssb/
6982 Tue Mar 28 14:26:58 CEST 2000  Werner Koch  <wk@openit.de>
6984         * trustdb.c (verify_own_keys): Do not print warning about unprotected
6985         key when in quiet mode.
6987 Wed Mar 22 13:50:24 CET 2000  Werner Koch  <wk@openit.de>
6989         * mainproc.c (print_userid): Do UTF8 conversion before printing.
6990         * import.c (import_one): Ditto.
6991         (import_secret_one): Ditto.
6992         (delete_inv_parts): Ditto.
6994 Thu Mar 16 16:20:23 CET 2000  Werner Koch  <wk@openit.de>
6996         * keylist.c (print_key_data): Handle a NULL pk gracefully.
6998         * getkey.c (merge_one_pk_and_selfsig): Fixed silly code for
6999         getting the primary keys keyID but kept using the one from the
7000         subkey.
7001         * pubkey-enc.c (get_it): Print a note for expired subkeys.
7003         * getkey.c (has_expired): New.
7004         (subkeys_expiretime): New.
7005         (finish_lookup): Check for expired subkeys needed for encryption.
7006         (merge_keys_and_selfsig): Fixed expiration date merging for subkeys.
7008         * keylist.c (list_keyblock): Print expiration time for "sub".
7009         (list_one): Add missing merging for public keys.
7010         * mainproc.c (list_node): Ditto.
7012 2000-03-14 13:49:38  Werner Koch  (wk@habibti.openit.de)
7014         * keygen.c (keyedit_menu): Do not allow to use certain commands
7015         while the secret key is selected.
7017 2000-03-09 12:53:09  Werner Koch  (wk@habibti.openit.de)
7019         * keygen.c (ask_expire_interval): Movede parsig to ...
7020         (parse_expire_string): ... this new function. And some new control
7021         commands.
7022         (proc_parameter_file): Add expire date parsing.
7023         (do_generate_keypair): Allow the use of specified output files.
7025 2000-03-08 10:38:38  Werner Koch  (wk@habibti.openit.de)
7027         * keygen.c (ask_algo): Removed is_v4 return value and the commented
7028         code to create Elg keys in a v3 packet. Removed the rounding
7029         of key sizes here.
7030         (do_create): Likewise removed arg v4_packet.
7031         (gen_elg): Likewise removed arg version. Now rounding keysizes here.
7032         (gen_dsa): Rounding keysize now here.
7033         (release_parameter_list): New
7034         (get_parameter*): New.
7035         (proc_parameter_file): New.
7036         (read_parameter_file): New.
7037         (generate_keypair): Splitted. Now uses read_parameter_file when in
7038         batch mode.  Additional argument to specify a parameter file.
7039         (do_generate_keypair): Main bulk of above fucntion and uses the
7040         parameter list.
7041         (do_create): Don't print long notice in batch mode.
7042         * g10.c (main): Allow batched key generation.
7044 Thu Mar  2 15:37:46 CET 2000  Werner Koch  <wk@gnupg.de>
7046         * pubkey-enc.c (get_it): Print a note about unknown cipher algos.
7048         * g10.c (opts): Add a note to the help listing about the man page
7049         and removed some options from the help listing.
7051         * keyedit.c (print_and_check_one_sig): Use a new function to truncate
7052         the output of the user ID.  Suggested by Jan-Benedict Glaw.
7054 Wed Feb 23 10:07:57 CET 2000  Werner Koch  <wk@gnupg.de>
7056         * helptext.c: typo fix.
7058 Thu Feb 17 13:39:32 CET 2000  Werner Koch  <wk@gnupg.de>
7060         * revoke.c: Removed a bunch of commented code.
7062         * packet.h (SIGSUBPKT_REVOC_REASON): New.
7063         * build-packet.c (build_sig_subpkt): Support new sub packet.
7064         * parse-packet.c (parse_one_sig_subpkt): Ditto.
7065         (dump_sig_subpkt): Ditto.
7066         * revoke.c (ask_revocation_reason): New.
7067         (release_revocation_reason_info): New.
7068         (revocation_reason_build_cb): New.
7069         (gen_revoke): Ask for reason.
7070         * main.h (struct revocation_reason_info): Add declaration.
7071         * keyedit.c (menu_revsig): Add support for revocation reason.
7072         (menu_revkey): Ditto.
7073         (sign_uid_mk_attrib): Renamed to ...
7074         (sign_mk_attrib): ... this, made static and add support for reasons.
7076 Tue Feb 15 08:48:13 CET 2000  Werner Koch  <wk@gnupg.de>
7078         * build-packet.c (build_packet): Fixed fixing of old comment packets.
7080         * import.c (import_keys): Fixed importing from stdin when called with
7081         nnames set to zero as it normally happens.
7083 Mon Feb 14 14:30:20 CET 2000  Werner Koch  <wk@gnupg.de>
7085         * sig-check.c (check_key_signature2): Add new arg r_expired.
7086         (do_signature_check): New arg to pass it down to ...
7087         (do_check): New arg r-expire which is set when the signature
7088         has expired.
7089         * trustdb.c (check_sig_record): Set SIGF_EXPIRED flag and set
7090         the expiretime to zero so that thi signature will not be checked
7091         anymore.
7093 Fri Feb 11 17:44:40 CET 2000  Werner Koch  <wk@gnupg.de>
7095         * g10.c (g10_exit): Update the random seed_file.
7096         (main): Set the random seed file.  New option --no-random-seed-file.
7098 Thu Feb 10 17:39:44 CET 2000  Werner Koch  <wk@gnupg.de>
7100         * keyedit.c (menu_expire): Fixed segv due to unitialized sub_pk.
7101         By Rémi.
7103 Thu Feb 10 11:39:41 CET 2000  Werner Koch  <wk@gnupg.de>
7105         * keylist.c (list_keyblock): Don't print warnings in the middle of
7106         regulat output lines.  By Rémi.
7108         * sig-check.c: Include options.h
7110 Wed Feb  9 15:33:44 CET 2000  Werner Koch  <wk@gnupg.de>
7112         * gpg.c: New option --ignore-time-conflict
7113         * sig-check.c (do_check): Implemented this option.
7114         * trustdb.c (check_trust): Ditto.
7115         * sign.c (do_sign): Ditto.
7116         * keygen.c (generate_subkeypair): Ditto.
7118         * encode.c (encode_simple): use iobuf_cancel after open failure.
7119         Reported by Huy Le.
7121 Fri Jan 14 18:32:01 CET 2000  Werner Koch  <wk@gnupg.de>
7123         * packet.h (STRING2KEY): Changed mode from byte to int.
7124         * parse-packet.c (parse_key): Add the special GNU protection stuff
7125         * build-packet.c (so_secret_key): Ditto.
7126         * seckey-cert.c (do_check): Ditto.
7127         * keyedit.c (change_passphrase): Ditto.
7128         * export.c (export_secsubkeys): New.
7129         (do_export_stream): Hack to export the primary key using mode 1001.
7130         * g10.c: New command --export-secret-subkeys
7132 Thu Jan 13 19:31:58 CET 2000  Werner Koch  <wk@gnupg.de>
7134         * armor.c (is_armored): Check for 1-pass-sig packets. Reported by
7135         David Hallinan <hallinan@rtd.com>.
7136         (armor_filter): Replaced one LF by the LF macro.  Reported by
7137         Wolfgang Redtenbacher.
7139 Wed Jan  5 11:51:17 CET 2000  Werner Koch  <wk@gnupg.de>
7141         * g10.c (main): Reset new global flag opt.pgp2_workarounds
7142         when --openpgp is used.
7143         * mainproc.c (proc_plaintext): Do the PGP2,5 workarounds only
7144         when the global flag is set.
7145         (proc_tree): Ditto.
7146         * textfilter.c (copy_clearsig_text): Ditto.
7147         * armor.c (armor_filter): Ditto.
7149         * g10.c: New option --list-only
7150         * mainproc.c (proc_tree): Don't do it if opt.list_only is active.
7151         (proc_pubkey_enc): Implement option.
7153         * status.h, status.c ({BEGIN,END}_{EN,DE}CRYPTION): New.
7154         * cipher.c (cipher_filter): New status outputs.
7155         * mainproc.c (proc_encrypted): New status outputs.
7157 Fri Dec 31 14:08:15 CET 1999  Werner Koch  <wk@gnupg.de>
7159         * armor.c (armor_filter): Made the "Comment:" header translatable.
7161         * hkp.c (hkp_import): Make sure that the program does not return
7162         success when there is a connection problem.  Reported by Phillip Jones.
7164 Sun Dec 19 15:22:26 CET 1999  Werner Koch  <wk@gnupg.de>
7166         * armor.c (LF): Use this new macro at all places where a line LF
7167         is needed.  This way DOSish textfiles should be created when the
7168         input data is also in dos mode.
7169         * sign.c (LF): Ditto.
7170         * textfilter.c (LF): Ditto.
7171         (copy_clearsig_text): Disabled the forcing of CR,LF sequences
7172         for DOS systems.
7174         * plaintext.c (handle_plaintext): Fixes for line endings on DOS.
7175         and react on a LF in cleartext.
7176         * armor.c (fake_packet): Restore the original line ending after
7177         removing trailing spaces.
7179         * signal.c (got_fatal_signal): DOS fix.
7181 Thu Dec 16 10:07:58 CET 1999  Werner Koch  <wk@gnupg.de>
7183         * mainproc.c (print_failed_pkenc): Fix for unknown algorithm.
7184         Found by fygrave@epr0.org.
7186 Thu Dec  9 10:31:05 CET 1999  Werner Koch  <wk@gnupg.de>
7188         * hkp.c: i18n the strings.
7190 Sat Dec  4 15:32:20 CET 1999  Werner Koch  <wk@gnupg.de>
7192         * trustdb.c (verify_key): Shortcut for ultimately trusted keys.
7194 Sat Dec  4 12:30:28 CET 1999  Werner Koch  <wk@gnupg.de>
7196         * pkclist.c (build_pk_list): Validate the trust using the namehash
7197         if this one has been set by the key lookup.
7199         * g10.c: Add --delete-secret-key to the help page.
7201         * openfile.c (copy_options_file): Made static.
7202         (try_make_homedir): New.
7203         * ringedit.c (add_keyblock_resource): Use the try_make_hoemdir logic.
7204         * tdbio.c (tdbio_set_dbname): Likewise.
7206         * keygen.c (generate_user_id): Use m_alloc_clear() here. We should
7207         better use an allocation function specific to the user_id packet.
7209         * keygen.c (keygen_add_std_prefs): Changed symmetric preferences
7210         to include Blowfish again.  This is due to it's better speed compared
7211         to CAST5.
7213         * g10.c (strusage): Print the home directory.
7215         * armor.c (armor_filter): Take action on the cancel control msg.
7216         * filter.h (armor_filter_context_t): Add cancel flag.
7218 Mon Nov 29 21:52:11 CET 1999  Werner Koch  <wk@gnupg.de>
7220         * g10.c: New option --fast-list-mode ..
7221         * keylist.c (list_keyblock): .. and implemented.
7222         * mainproc.c (list_node): Ditto.
7224         * import.c (mark_non_selfsigned_uids_valid): Fixed the case that there
7225         is a uid without any packet following.
7227 Mon Nov 22 11:14:53 CET 1999  Werner Koch  <wk@gnupg.de>
7229         * mainproc.c (proc_plaintext): Never enable the hash processing
7230         when skip_verify is active.
7232         * armor.c (parse_header_line): Stop parsing on a WS line too.
7233         Suggested by Aric Cyr.
7235         * tdbdump.c (HEXTOBIN): Changed the name of the argument, so that
7236         traditional cpp don't mess up the macros. Suggested by Jos Backus.
7238         * mainproc.c (list_node): Print the PK algo in the --with-colon mode.
7239         * keylist.c (list_keyblock): Ditto.
7241         * signal.c (got_fatal_signal): Found the reason why exit(8) did not
7242         work - it is better to set the disposition back to default before
7243         raising the signal.  Print the notice on stderr always.
7245 Fri Nov 12 20:33:19 CET 1999  Werner Koch  <wk@gnupg.de>
7247         * g10.c (make_username): Swapped the logic.
7248         * keylist.c (public_key_list): Now takes a STRLIST as arg and moved
7249         the creation ot this list to the caller, so that he can copy with
7250         UTF-conversion of user IDs.  Changed all callers.
7251         (secret_key_list): Likewise.
7253         * getkey.c (get_user_id_string_native): New and ...
7254         * encode.c (write_pubkey_enc_from_list): ... use it here.
7256         * pubring.asc: Updated.
7258         * packet.h (PKT_PHOTO_ID): New.
7259         * parse-packet.c (parse_photo_id): New.
7260         * build-packet.c (do_user_id: Handle photo IDs.
7261         (build_packet): Change CTB for photo IDs
7262         * free-packet.c (free_user_id): Release memory used for photo IDs
7263         * sig-check.c (hash_uid_node): Handle photo IDs too.
7264         * trustdb.c (print_uid_from_keyblock): Hash photo ID.
7265         (make_uid_records): Ditto.
7266         * getkey.c (find_by_name): Ditto.
7267         * keyedit.c (show_prefs): Ditto.
7268         * keylist.c (list_keyblock): Ditto.
7270 Thu Oct 28 16:08:20 CEST 1999  Werner Koch  <wk@gnupg.de>
7272         * keygen.c (ask_expire_interval): Print a warning for systems
7273         with a signed 32 time_t if the exiration time is beyoind 2038.
7275 Fri Oct  8 20:40:50 CEST 1999  Werner Koch  <wk@gnupg.de>
7277         * ringedit.c (enum_keyblocks): The last fix way really stupid;
7278         reverted and set rt to Unknown.
7280 Fri Oct  8 20:32:01 CEST 1999  Werner Koch  <wk@gnupg.de>
7282         * ringedit.c (enum_keyblocks): Zero the entire kbpos out on open.
7284         * g10.c (oEntropyDLL): Removed option.
7285         (main): Made the warning on development versions more verbose.
7287         * g10.c (oHonorHttpProxy): New option.
7288         * hkp.c (hkp_ask_import,hkp_export): Implement this option.
7289         * options.skel: Enable this option for new installations
7291 Mon Oct  4 21:23:04 CEST 1999  Werner Koch  <wk@gnupg.de>
7293         * import.c (import_keys): Changed calling interface, adjusted caller.
7294         (import): Moved printing of stats out ...
7295         (print_stats): New. ... to here.
7296         (import_keys_stream): Call stats print here.
7297         (import_keys): Print stats as totals for all files.
7299         * tdbio.h (DIRF_NEWKEYS): New
7300         * tdbio.c (tdbio_dump_record): Print the new flag.
7301         * trustdb.c (check_trust_record): New arg sigs_only.  Adapted all
7302         callers.
7303         (do_update_trust_record): Removed recheck arg and add a new sigs_only
7304         do we can later improve on the performance.  Changed all callers too.
7305         (check_trustdb): Evalutate the new flag and add a status output.
7306         Do a check when the dir record has not been checked.
7307         (build_cert_tree): Evaluate the new flag.
7308         (check_trust): Ditto.  Do a trust_record check, when the dir record
7309         is not marked as checked.
7310         (mark_fresh_keys): New.
7311         (clear_lid_table): New.
7312         (sync_trustdb): New.
7313         * import.c (import_keys): Call sync_trustdb() after processing.
7314         (import_keys_stream): Ditto.
7315         * tdbdump.c (import_ownertrust): Ditto.
7317         * import.c (import_revoke_cert): Notify the trust DB.
7318         (do_update_trust_record): Use |= to set the REVOKED bit and not &=;
7319         shame on me for this bad copy+paste introduced bug.
7320         (do_we_trust): Add trustmask to allow revoked key override to work.
7321         Chnaged are to allow return of a mofified trustlevel. Adapted the
7322         one caller.
7324         * g10.c: New options --emulate-3des-s2k-bug
7325         * passphrase.c (hash_passphrase): Implemented above.
7327         * mainproc.c (proc_tree): Check for standalone signatures.
7328         (do_check_sig): Print a notice for a standalone revocation
7329         (check_sig_and_print): Do not print an error for unchecked standalone
7330         revocations.
7332 Tue Sep 28 20:54:37 CEST 1999  Werner Koch  <wk@gnupg.de>
7334         * encode.c (encode_simple): Use new CTB when we don't have the
7335         length of the file.  This is somewhat strange as the comment above
7336         indicates that this part is actually fixed for PGP 5 - maybe I simply
7337         lost the source line, tsss.
7339         * armor.c (armor_filter): Set a flag if no OpenPGP data has been found.
7340         * verify.c (verify_signatures): Add an error helptext.
7342 Thu Sep 23 19:24:30 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
7344         * openfile.c (open_outfile): Fixed the 8dot3 handling.
7346         * passphrase.c (passphrase_to_dek): Print uid using utf8 func.
7347         * delkey.c (delete_key): Ditto.
7348         * pkclist.c (show_paths,do_edit_ownertrust,do_we_trust): Ditto
7349         (do_we_trust_pre): Ditto.
7350         * trustdb.c (print_user_id,check_uidsigs): Ditto.
7351         * revoke.c (gen_revoke,ask_revoke_sig): Ditto.
7353 Thu Sep 23 09:52:58 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
7355         * verify.c (print_file_status): New.
7356         (verify_one_file): Moved status print to th new fnc. Add error status.
7357         * status.c, status.h (STATUS_FILE_ERROR): New
7359 Wed Sep 22 10:14:17 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
7361         * openfile.c (make_outfile_name): Use case-insenstive compare for
7362         DOS systems.  Add ".pgp" to the list of know extensions.
7363         (open_outfile): For DOS systems try to replace the suffiy instead of
7364         appending it.
7366         * status.c, status.h: Add STATUS_FILE_{START,DONE}.
7367         * verify.c (verify_one_file): Emit these new stati.
7369         * sign.c (clearsign_file): Avoid duplicated Entries in the "Hash:"
7370         line.  Those headers are now only _not_ printed when there are
7371         only old-style keys _and_ all hashs are MD5.
7373 Mon Sep 20 12:24:41 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
7376         * verify.c (verify_files, ferify_one_file): New.
7377         * g10.c:  New command --verify-files
7379 Fri Sep 17 12:56:42 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
7381         * g10.c: Add UK spelling as alias for armor options ;-)
7383         * import.c (append_uid): Fixed a SEGV when there is no selfsig and
7384         no subkey.
7385         (merge_sigs): Ditto.  Removed the assertion.
7387 Wed Sep 15 16:22:17 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
7389         * g10.c: New option --entropy-dll-name
7391 Mon Sep 13 10:51:29 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
7393         * signal.c (got_fatal_signal): Print message using write(2) and
7394         only for development versions.
7396 Mon Sep  6 19:59:08 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
7398         * tdbio.c (tdbio_set_dbname): Use mkdir macro
7399         * ringedit.c (add_keyblock_resource): Ditto.
7401 Fri Sep  3 10:04:45 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
7403         * pkclist.c (build_pk_list): Skip keys set with --encrypt-to also
7404         when asking for a key.
7406         * plaintext.c (handle_plaintext): Make sure that we don't read a
7407         second EOF in the read loop for partial length packets.
7409         * mainproc.c (check_sig_and_print): print user ID as utf-8.
7411 Thu Sep  2 16:40:55 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
7413         * import.c (merge_blocks): First add new subkeys, then merge subkey
7414         certificates.
7415         (merge_sigs): Don't merge subkey signatures here.
7417 Wed Sep  1 15:30:44 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
7419         * keygen.c (ask_expire_interval): Fixed bug related to cpr_xx (tnx
7420         Francis J. Lacoste).
7422 Tue Aug 31 17:20:44 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
7424         * plaintext.c (do_hash): Hash CR,LF for a single CR.
7425         (ask_for_detached_datafile): Changed arguments to be closer to
7426         those of hash_datafiles and cleanup the code a bit.
7427         * mainproc.c (proc_tree): Workaround for pgp5 textmode detached
7428         signatures.  Changed behavior of asking for data file to be the same
7429         as with provided data files.
7431         * keylist.c (list_keyblock): Use UTF8 print functions.
7433 Mon Aug 30 20:38:33 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
7435         * import.c (chk_self_sigs): some s/log_error/log_info/ so that gpg
7436         does not return an error if a key has some invalid packets.
7438         * helptext.c: Fixed some typos and changed the way the
7439         translation works.  The english text is now the keyword for gettext
7440         and not anymore the keyword supplied to the function.  Done after
7441         some discussion with Walter who thinks this is much easier for the
7442         translators.
7444         * misc.c (disable_core_dumps): Don't do it for DOSish systems.
7446         * signal.c (signal_name): Bounds check on signum.
7448 Wed Aug  4 10:34:18 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
7450         * pubring.asc: Updated.
7452         * pkclist.c (do_we_trust_pre,check_signatures_trust): Do not print
7453         the warning about --always_trust when --quiet is used.
7455         * pkclist.c (fpr_info): New and called at several places.
7457         * parse-packet.c (dump_sig_subpkt): List revocation key contents.
7459 Mon Jul 26 09:34:46 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
7461         * pkclist.c (build_pk_list): Fixed typo in format string.
7463         * trustdb.c (create_shadow_dir): Don't translate the error string.
7465         * g10.c (main): Fixed spelling of user-id.
7466         * getkey.c (find_by_name_pk,find_by_name_sk,
7467         find_by_keyid,find_by_keyid_sk): Ditto and translate it.
7468         * import.c (mark_non_selfsigned_uids_valid,delete_inv_parts): Ditto.
7471 Mon Jul 26 01:01:39 CEST 1999  Michael Roth <mroth@nessie.de>
7473         * g10.c, options.h: New options --no-literal and --set-filesize
7475         * encode.c (encode_simple, encode_crypt): Support for the options
7476         --no-literal and --set-filesize.
7478         * sign.c (sign_file): ditto.
7480 Fri Jul 23 13:53:03 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
7483         * ringedit.c (enum_keyblocks): Removed annoying error message in cases
7484         when we have no keyring at all to enum.
7486         * getkey.c (classify_user_id): Rewrote to relax the recognition of
7487         keyIDs and fingerprints (Michael).
7489         * mainproc.c (check_sig_and_print): Print status NO_PUBKEY.
7490         (print_failed_pkenc): Print status NO_SECKEY.
7492         * import.c (mark_non_selfsigned_uids_valid): New.
7493         * g10.c: New option --allow-non-selfsigned-uid.
7495         * pkclist.c (print_fpr): New.
7496         (do_we_trust_pre): Print the fpr before asking whether to use the key
7497         anyway.
7498         (do_edit_ownertrust): Likewise.
7500 Thu Jul 22 20:03:03 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
7503         * ringedit.c (enum_keyblocks): Removed annoying error message in cases
7504         when we have no keyring at all to enum.
7506         * getkey.c (classify_user_id): Rewrote to relax the recognition of
7507         keyIDs and fingerprints (Michael).
7509         * mainproc.c (check_sig_and_print): Print status NO_PUBKEY.
7510         (print_failed_pkenc): Print status NO_SECKEY.
7512         * import.c (mark_non_selfsigned_uids_valid): New.
7513         * g10.c: New option --allow-non-selfsigned-uid.
7515 Thu Jul 15 10:15:35 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
7517         * g10.c: New options --disable-{cipher,pubkey}-algo.
7519 Wed Jul 14 19:42:08 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
7521         * status.h (STATUS_IMPORTED): New.
7522         * import.c (import): Print some status information (Holger Schurig).
7524         * g10.c (main): Make --no-greeting work again. Add a warning when
7525         --force-mds is used.
7527 Tue Jul 13 17:39:25 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
7529         * pkclist.c (do_edit_ownertrust): Changed the way help works.
7530         (build_pk_list): Implemented default recipient stuff.
7531         * g10.c: New options --default-recipient[-self]
7532         (main): Suppress greeting in most cases, entering a passphrase or
7533         a missing value is not considered to be interactive use.
7534         Merged --print-md and --print-mds; the latter is now obsolete.
7535         Changed the way --gen-random works and documented it.
7536         Changed the way --gen-prime works and add a man entry.
7537         * g10.c (MAINTAINER_OPTIONS): Removed.
7539 Mon Jul 12 18:45:57 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
7541         * keyedit.c (keyedit_menu): Add arg sign_mode and changed callers
7542         * g10.c (main): New command --lsign-key.
7544 Mon Jul 12 14:55:34 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
7546         * mainproc.c (kidlist_item): New.
7547         (release_list): Release failed pk-enc-list.
7548         (print_failed_pkenc): New
7549         (proc_encrypted): Print info about failed PK enc.
7551         * openfile.c (make_outfile_name): s/error/info/
7553         * passphrase.c (passphrase_to_dek): Return an empty passphrase when
7554         in batch mode and don't make the warning message fatal
7555         * seckey-cert.c (check_secret_key): Try only once when in batch mode.
7557         * g10.c (make_username): New.
7559 Thu Jul  8 16:21:27 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
7562         * packet.h (PKT_ring_trust): New
7563         * parse-packet.c (parse_trust): Store trust value
7564         * build-packet (build_packet): Ignore ring trust packets.
7565         * mainproc.c (add_ring_trust): New.
7566         (list_node): Print "rtv" records.
7567         * g10.c: New option --with-fingerprint.
7569         * trustdb.c (verify_own_keys): Don't insert if we are dry running
7570         (check_trust): Ditto.
7572 Wed Jul  7 13:08:40 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
7574         * Makefile.am: Support for libtool.
7576         * keygen.c (ask_expire_interval): Hack to allow for an expire date.
7578         * trustdb.c (do_update_trust_record,update_trust_record): Splitted.
7579         (check_trust_record): New.
7580         (check_trust,build_cert_tree): Check the dir record as needed.
7581         (upd_pref_record): Removed.
7582         (make_pref_record): New.
7583         (propagate_validity): Stop as soon as we have enough validity.
7585         * tbdio.c (MAX_CACHE_ENTRIES_HARD): Increased the limit.
7588 Fri Jul  2 11:45:54 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
7590         * g10.c (g10_exit): Dump random stats.
7592         * sig-check.c (check_key_signature,check_key_signature2): Enhanced
7593         version and wrapper for old function.
7594         (do_signature_check,signature_check): Ditto.
7596 Thu Jul  1 12:47:31 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
7599         * keyedit.c (show_key_with_all_names): Print a notice for disabled keys.
7600         (enable_disable_keys): Add functionality
7601         * pkclist.c (edit_ownertrust): preserve disabled state.
7602         (build_pk_list): Skip disabled keys.
7603         * trustdb.c (upd_one_ownertrust): Ditto.
7604         (build_cert_tree): Mask the ownertrust.
7605         (trust_letter): Mask the value.
7606         (do_check): Take disabled flag into account.
7608         * passphrase.c (passphrase_to_dek): Add a pubkey_algo arg and changed
7609         all callers.
7611         * g10.c (utf8_strings): 2 new options.
7613         * trustdb.c (insert_trust_record_by_pk): New, replaces the next one.
7614         (insert_trust_record): Now takes a keyblock as arg.  Changed all
7615         callers to use the appropritae function.
7617         * openfile.c (ask_outfile_name): New.
7618         * plaintext.c (handle_plaintext): Ask for filename if there is
7619         no valid syntax. Don't use fname varbatim but filter it.
7621 Tue Jun 29 21:44:25 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
7624         * trustdb.h (TRUST_FLAG_DISABLED): New.
7626         * status.c (USE_CAPABILITIES): Capabilities support (Remi).
7628         * tdbio.c : Added new fields to the DIR record.
7629         (tdbio_write_record): Fixed the update of the hash tables.
7630         (tdbio_delete_record): Drop the record from the hash tables.
7631         (drop_from_hashtbl): New.
7633         * status.c (cpr_get): Special online help mode.
7634         * helptext.c ("keyedit.cmd"): Removed.
7635         * keyedit.c (keyedit_menu): Use only help system.
7636         (enable_disable_key): New bit doies not yet work.
7638 Sat Jun 26 12:15:59 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
7641         * dearmor.c (enarmor_file): Fixed comment string.
7642         * tdbdump.c (export_ownertrust): Text fix.
7643         * tbio.c (tdbio_invalid): Ditto.
7645         * parse-packet.c (parse_key): Made temp buffer larger.
7647         * Makefile.am (install-data-local): Add missing backslashes
7649 Tue Jun 15 12:21:08 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
7651         * g10.c (main): Made iterated+salted the default S2K method.
7653         * Makefile.am (install-data-local): Use DESTDIR.
7655         * passphrase.c (passphrase_to_dek): Emit missing-passphrase while in
7656         batchmode.
7658         * parse-packet.c (parse_pubkeyenc): Fixed a SEGV.
7660 Mon Jun 14 21:18:54 CEST 1999 Michael Roth <mroth@nessie.de>
7662         * g10.c: New options --openpgp, --no-tty, --emit-version,
7663           --default-comment and --lock-multiple
7665 Thu Jun 10 14:18:23 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
7667         * free-packet.c (free_encrypted): Fixed EOF case (Remi).
7668         (free_plaintext): Ditto.
7670         * helptext.c (keyedit.delsig.unknown): New (Remi).
7671         * keyedit.c (print_and_check_one_sig): Add arg print_without_key and
7672         changed all callers to make use of it (Remi):
7674 Tue Jun  8 13:36:25 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
7676         * keylist.c (print_key_data): New and called elsewhere.
7677         * g10.c: New option --with-key-data
7679 Wed Jun  2 14:17:19 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
7681         * mainproc.c (proc_tree): Yet another bad hack to cope with
7682         broken pgp2 created detached messages in textmode.
7684 Tue Jun  1 16:01:46 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
7686         * openfile.c (make_outfile_name): New.
7687         * plaintext.c (handle_plaintext): Outputfile is now the inputfile
7688         without the suffix.
7689         * g10.c: New option --use-embedded-filename
7691 Mon May 31 19:41:10 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
7693         * g10.c (main): Fix for SHM init (Michael).
7695         * compress.c, encr-data.c, mdfilter.c,
7696           plaintext.c, free-packet.c: Speed patches (Rémi).
7698 Thu May 27 09:40:55 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
7700         * status.c (cpr_get_answer_yes_no_quit): New.
7701         * keyedit.c (menu_delsig): New.
7702         (check_all_keysigs): Splitted.
7703         (print_and_check_one_sig): New.
7705 Wed May 26 14:36:29 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
7707         * build-packet.c (build_sig_subpkt): Support large packets.
7708         * parse-packet.c (enum_sig_subpkt): Replaces parse_sig_subpkt.
7709         * mainproc.c (print_notation_data): Print all notation packets.
7710         * g10.c (add_notation_data): Add a way to specify the critical flag.
7711         (main): Add option --set-policy-url.
7712         (check_policy_url): Basic checks.
7713         * sign.c (mk_notation_and_policy): Replaces mk_notation.
7715         * parse-packet.c (can_handle_critical): Moved decision whether we can
7716         handle critical subpacket to an extra function.
7718 Tue May 25 19:50:32 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
7720         * sign.c (sign_file): Always use compression algo 1 for signed
7721         onyl file becuase we can´ be sure the the verifier supports other
7722         algorithms.
7724         * build-packet.c (build_sig_subpkt): Support for notation data.
7725         * sign.c (sign_file,clearsign_file,make_keysig_packet): Ditto.
7726         (mk_notation): New.
7727         * g10.c (add_notation_data): New and add option -N
7728         * mainproc.c (print_notation_data): New.
7729         (check_sig_and_print): Print any notation data of the signed text.
7731 Sun May 23 14:20:22 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
7733         * pkclist.c (check_signatures_trust): Print a warning and return
7734         immediateley if opt.always_trust is true.
7736         * g10.c (main): Corrected handling of no-default-keyring
7738         * pkclist.c (algo_available): Disable Twofish until we have settled
7739         how to do the MDC.
7741         * hkp.c: Disable everything for mingw32
7743 Sat May 22 22:47:26 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
7745         * mainproc.c (check_sig_and_print): Add sig creation time to the
7746         VALIDSIG status output. Add more info to the ERRSIG output.
7747         * sig-check.c (signature_check): Add sig time after epoch to SIG_ID.
7749         * import.c (import_one): Merge duplicate user IDs.
7750         (collapse_uids): New.
7751         * kbnode.c (move_kbnode): New.
7752         (remove_kbnode): New.
7753         * keyedit.c (keyedit_menu): Call collapse_uids.
7755         * g10.c: new option --logger-fd.
7757         * import.c: s/log_*_f/log_*/
7759 Thu May 20 14:04:08 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
7761         * misc.c (pull_in_libs): do the volatile only for gcc
7763         * sig-check (signature_check): Emit SIG_iD only for classes 0 and 1.
7765         * armor.c (armor_filter): Add detection of PGP2 created clearsigs.
7766         (fake_packet): A tab is not a WS for pgp2 - handle this.
7767         * textfilter.c (len_without_trailing_chars): New.
7768         (copy_clearsig_text): Add pgp2mode arg.
7769         * sign.c (clearsign_file): pass old_style to the above fnc.
7772 Wed May 19 16:04:30 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
7774         * g10.c: New option --interactive.
7776         * mainproc.c (proc_plaintext): Add workaround for pgp2 bug
7777         (do_check_sig): Ditto.
7778         (proc_tree): Ditto.
7779         * plaintext.c (do_hash): Ditto.
7780         (hash_datafiles): Ditto, add an arg, changed all callers.
7781         * mdfilter.c (md_filter): Add support for the alternate hash context.
7783 Mon May 17 21:54:43 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
7785         * parse-packet.c (parse_encrypted): Support for PKT_ENCRYPTED_MDC.
7786         * build-packet.c (do_encrypted_mdc): Ditto.
7787         * cipher.c (write_header): Add mdc hashing.
7788         (cipher_filter): write out the hash.
7789         * mainproc.c (do_proc_packets): Add PKT_ENCRYPTED_MDC.
7790         * encr-data.c (decrypt_data): Add mdc hashing.
7791         (mdc_decode_filter): New.
7793         * parse-packet.c (parse_sig_subpkt): Fixed stupid bug for subpkt
7794         length calculation
7795         (parse_signature): Fixed even more stupid bug.
7797 Sat May  8 19:28:08 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
7799         * build-packet.c (do_signature): Removed MDC hack.
7800         * encode.c (encode_crypt_mdc): Removed.
7801         * mainproc.c (do_check_sig): Removed MDC hack.
7802         (check_sig_and_print): Ditto.
7803         * parse-packet.c (parse_signature): Ditto.
7804         * sig-check.c (mdc_kludge_check): Ditto.
7805         * free-packte.c (copy_signature, free_seckey_enc): Ditto.
7807         * parse-packet.c (parse_signature,parse_key): Store data of
7808         unknown algorithms with mpi_set_opaque inseatd of the old
7809         faked data stuff.
7810         (read_rest): Removed.
7811         (read_rest2): Renamed to read_rest
7812         * build-packet.c (write_fake_data): Use mpi_get_opaque.
7813         * free-packet.c (cp_fake_data): Removed and cahnged all callers
7814         to use mpi_copy.
7815         (free_pubkey_enc,free_seckey_enc,release_public_key_parts,
7816          release_secret_key_parts): Use mpi_free for opaque data.
7818 Thu May  6 14:18:17 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
7820         * trustdb.c (check_trust): Check for revoked subkeys.
7821         * pkclist.c (do_we_trust): Handled revoked subkeys.
7822         (do_we_trust_pre): Ditto.
7823         (check_signatures_trust): Ditto.
7825         * build-packet.c (hash_public_key): Fix for ancient g10 keys.
7827         * mainproc.c (do_proc_packets): Return EOF if no data has been read.
7828         * g10.c (main): Catch errors for default operation.
7830 Thu Apr 29 12:29:22 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
7832         * sign.c (sign_file): Fixed hashing in case of no subpackets.
7833         (clearsign_file): Ditto.
7834         (make_keysig_packet): Ditto.
7836 Wed Apr 28 13:03:03 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
7838         * keyedit.c (keyedit_menu): Add new command revkey.
7839         * (menu_revkey): New.
7842 Mon Apr 26 17:48:15 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
7844         * parse-packet.c (parse_signature): Add the MDC hack.
7845         * build-packet.c (do_signature): Ditto.
7846         * free-packet.c (free_seckey_enc,copy_signature,cmp_signatures): Ditto.
7847         * mainproc.c (do_check_sig): Ditto.
7848         * sig-check.c (mdc_kludge_check): New.
7849         * encode.c (encrypt_mdc_file): New.
7851         * keyedit.c (check_all_keysigs): List revocations.
7852         * (menu_revsig): New.
7853         * sign (make_keysig_packet): Support for class 0x30.
7855 Sun Apr 18 20:48:15 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
7857         * pkclist.c (select_algo_from_prefs): Fixed the case that one key
7858         has no preferences (Remi Guyomarch).
7860         keylist.c (list_keyblock): ulti_hack to propagate trust to all uids.
7862 Sun Apr 18 10:11:28 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
7864         * seckey-cert.c (do_check): Use real IV instead of a 0 one, so that
7865         it works even if the length of the IV doesn't match the blocksize.
7866         Removed the save_iv stuff.
7867         (protect_secret_key): Likewise.  Create the IV here.
7868         * packet.h (PKT_secret_key): Increased size of IV field and add a
7869         ivlen field.
7870         * parse-packet.c (parse_key): Use the len protect.ivlen.
7871         * build-packet.c (do_secret_key). Ditto.
7873         * getkey.c (key_byname): Close keyblocks.
7875         * Makefile.am (gpgm): Removed this
7876         * g10.c: Merged gpg and gpgm
7878         * import.c (import): Utilize option quiet.
7879         * tdbio.c (tdbio_set_dbname): Ditto.
7880         * ringedit.c (add_keyblock_resource,keyring_copy): Ditto.
7882         * keyedit.c (sign_uids): Add some batch support.
7884         * g10.c (main): add call to tty_batchmode.
7886 Fri Apr  9 12:26:25 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
7888         * status.c (write_status_text): Some more status codes.
7889         * passphrase_to_dek (passphrase_to_dek): add a status code.
7890         * seckey_cert.c (check_secret_key): Likewise.
7892         * encr-data.c (decrypt_data): Reverse the last changes
7893         * cipher.c (write_header): Ditto.
7895         * parse-packet.c (parse_key): Dropped kludge for ancient blowfish mode.
7897 Thu Apr  8 09:35:53 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
7899         * mainproc.c (proc_encrypted): Add a new status output
7900         * passphrase.c (passphrase_to_dek): Ditto.
7901         * status.h status.c: Add new status tokens.
7903 Wed Apr  7 20:51:39 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
7905         * encr-data.c (decrypt_data): Fixes for 128 bit blocksize
7906         * cipher.c (write_header): Ditto.
7907         * seckey-cert.c (do_check): Ditto.
7908         (protect_secret_key). Ditto.
7909         * misc.c (print_cipher_algo_note): Twofish is now a standard algo.
7911         * keygen.c (do_create): Fixed spelling (Gaël Quéri)
7912         (ask_keysize): Only allow keysizes up to 4096
7914         * ringedit.c (add_keyblock_resource): chmod newly created secrings.
7916         * import.c (delete_inv_parts): Fixed accidently deleted subkeys.
7918 Tue Apr  6 19:58:12 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
7920         * armor.c: Removed duped include (John Bley)
7921         * mainproc.c: Ditto.
7923         * build-packet.c (hash_public_key): Fixed hashing of the header.
7925         * import.c (delete_inv_parts): Allow import of own non-exportable sigs.
7927 Sat Mar 20 13:59:47 CET 1999  Werner Koch  <wk@isil.d.shuttle.de>
7929         * armor.c (fake_packet): Fix for not not-dash-escaped
7931 Sat Mar 20 11:44:21 CET 1999  Werner Koch  <wk@isil.d.shuttle.de>
7933         * g10.c (main): Added command --recv-keys
7934         * hkp.c (hkp_import): New.
7936 Wed Mar 17 13:09:03 CET 1999  Werner Koch  <wk@isil.d.shuttle.de>
7938         * trustdb.c (check_trust): add new arg add_fnc and changed all callers.
7939         (do_check): Ditto.
7940         (verify_key): Ditto.
7941         (propagate_validity): Use the new add_fnc arg.
7942         (print_user_id): Add the FILE arg.
7943         (propagate_ownertrust): New.
7944         * pkclist.c (add_ownertrust_cb): New and changed the add_ownertrust
7945         logic.
7947         * getkey.c (get_keyblock_bylid): New.
7948         * trustdb.c (print_uid_from_keyblock): New.
7949         (dump_tn_tree_with_colons): New.
7950         (list_trust_path): Add colon print mode.
7952         * trustdb.c (insert_trust_record): Always use the primary key.
7954         * encode.c (encode_simple): Added text_mode filter (Rémi Guyomarch)
7955         (encode_crypt): Ditto.
7957         * mainproc.c (proc_pubkey_enc): Added status ENC_TO.
7958         * armor.c (armor_filter): Added status NODATA.
7959         * passphrase.c (passphrase_to_dek): Always print NEED_PASSPHRASE
7960         * seckey_cert.c (check_secret_key): Added BAD_PASS status.
7962         * g10.c (main): Set g10_opt_homedir.
7964 Sun Mar 14 19:34:36 CET 1999  Werner Koch  <wk@isil.d.shuttle.de>
7966         * keygen.c (do_create): Changed wording of the note (Hugh Daniel)
7968 Thu Mar 11 16:39:46 CET 1999  Werner Koch  <wk@isil.d.shuttle.de>
7970         * tdbdump.c: New
7972         * trustdb.c (walk_sigrecs,do_list_sigs,list_sigs,
7973         list_records,list_trustdb,export_ownertrust,import_ownertrust): Moved
7974         to tdbdump.c
7975         (init_trustdb): renamed to setup_trustdb.  Changed all callers.
7976         (do_init_trustdb): renamed to init_trustdb().
7977         * trustdb.c (die_invalid_db): replaced by tdbio_invalid.
7978         * tdbio.c (tdbio_invalid): New.
7980         * import.c (delete_inv_parts): Skip non exportable signatures.
7981         * keyedit.c (sign_uid_mk_attrib): New.
7982         (sign_uids): Add the local argument.
7983         (keyedit_menu): New "lsign" command.
7984         * trustdb.c (register_trusted_key): Removed this and all related stuff.
7985         * g10.c (oTrustedKey): Removed option.
7987         * tdbio.h (dir.valcheck): New trustdb field.
7988         * tdbio.c: Add support for this field
7989         (tdbio_read_modify_stamp): New.
7990         (tdbio_write_modify_stamp): New.
7991         * trustdb.c (do_check): Check against this field. Removed cache update.
7992         (verify_key): Add cache update.
7993         (upd_uid_record): Some functional changes.
7994         (upd_cert_record): Ditto
7996 Wed Mar 10 11:26:18 CET 1999  Werner Koch  <wk@isil.d.shuttle.de>
7998         * keylist.c (list_keyblock): Fixed segv in uid. Print 'u' as
7999         validity of sks.
8001 Mon Mar  8 20:47:17 CET 1999  Werner Koch  <wk@isil.d.shuttle.de>
8003         * getkey.c (classify_user_id): Add new mode 12 (#<lid>).
8005         * seckey-cert.c (check_secret_key): replaced error by info.
8007         * trustdb.c (query_trust_info): Add another arg, changed all callers.
8008         (check_trust): Ditto.
8009         (do_check): Ditto.
8010         (verify_key): Handle namehash.
8011         * keylist.c (list_keyblock): print trust info for user ids.
8013         * sig-check.c (signature_check): Add sig-created to status output.
8015 Tue Mar  2 16:44:57 CET 1999  Werner Koch  <wk@isil.d.shuttle.de>
8017         * textfilter.c (copy_clearsig_text): New.
8018         (clearsign): Removed.
8019         * sign.c (clearsign_file): does not use textfiler anymore.
8021         * keygen.c (ask_user_id): print a note about the used charset.
8023 Tue Mar  2 10:38:42 CET 1999  Werner Koch  <wk@isil.d.shuttle.de>
8025         * sig-check.c (signature_check): sig-id now works for all algos.
8027         * armor.c (armor_filter): Fixed armor bypassing.
8029 Sun Feb 28 19:11:00 CET 1999  Werner Koch  <wk@isil.d.shuttle.de>
8031         * keygen.c (ask_user_id): Don't change the case of email addresses.
8032         (has_invalid_email_chars): Adjusted.
8034         * keylist.c (list_one): Really list serect keys (Remi Guyomarch)
8036         * keyedit.c (menu_select_uid): Add some braces to make egcs happy.
8037         (menu_select_key): Ditto.
8039         * mainproc.c (do_proc_packets): List sym-enc packets (Remi Guyomarch)
8041 Fri Feb 26 17:55:41 CET 1999  Werner Koch  <wk@isil.d.shuttle.de>
8043         * pkclist.c (build_pk_list): Return error if there are no recipients.
8045         * sig-check.c (signature_check): New signature id feature.
8046         * armor.c (make_radic64_string): New.
8048         * mainproc.c (proc_pubkey_enc): early check for seckey availability.
8050         * pkclist.c (do_we_trust_pre): print user id before asking.
8052         * ringedit.c (add_keyblock_resource,get_keyblock_handle): Cleaner
8053         handling of default resource.
8056 Thu Feb 25 18:47:39 CET 1999  Werner Koch  <wk@isil.d.shuttle.de>
8058         * pkclist.c (algo_available): New.
8059         (select_algo_from_prefs): Check whether algo is available.
8061         * ringedit.c (keyring_copy): Take care of opt.dry_run.
8062         (do_gdbm_store): Ditto.
8063         * openfile.c (open_outfile). Ditto.
8064         (copy_options_file): Ditto.
8065         * trustdb.c (update_trustdb): Ditto.
8066         (clear_trust_checked_flag): Ditto.
8067         (update_trust_record): Ditto.
8068         (insert_trust_record): Ditto.
8070 Wed Feb 24 11:07:27 CET 1999  Werner Koch  <wk@isil.d.shuttle.de>
8072         * keylist.c (secret_key_list): Now really list the secret key.
8074         * trustdb.c (do_init_trustdb): New. Init is now deferred.
8076 Mon Feb 22 20:04:00 CET 1999  Werner Koch  <wk@isil.d.shuttle.de>
8078         * getkey.c (lookup_sk): Return G10ERR_NO_SECKEY and not x_PUBKEY.
8080 Fri Feb 19 15:49:15 CET 1999  Werner Koch  <wk@isil.d.shuttle.de>
8082         * pkclist.c (select_algo_from_prefs): retrieve LID if not there.
8084         * armor.c (fake_packet): Replaced ugly lineending handling.
8086         * g10.c (oNoEncryptTo): New.
8087         * pkclist.c (build_pk_list): Implemented this option.
8089         * g10.c (main): Greeting is now printed to stderr and not to tty.
8090         Use add_to_strlist() instead of direct coding.
8092         * import.c (import): Use iobuf_push_filter2.
8094         * mainproc.c (check_sig_and_print): Print all user ids
8095         for good signatures.
8096         * getkey.c (get_pubkeyblock): New.
8098         * import.c (chk_self_sigs): Fixed SEGV for unbounded class 0x18 keys.
8099         (delete_inv_parts): Delete special marked packets.
8101 Tue Feb 16 14:10:02 CET 1999  Werner Koch  <wk@isil.d.shuttle.de>
8103         * g10.c (main): New option --encrypt-to
8105         * pkclist.c (build_pk_list): Implemented encrypt-to.
8107         * parse-packet.c (parse_user_id): Removed the hack to work with
8108         utf-8 strings.
8110         * g10.c (main): Install lockfile cleanup handler.
8111         * tdbio.c (cleanup): Removed: this is now handled by dotlock.
8113 Sat Feb 13 14:13:04 CET 1999  Werner Koch  <wk@isil.d.shuttle.de>
8115         * tdbio.c (tdbio_set_dbname): Init lockhandle for a new trustdb
8117 Wed Feb 10 17:15:39 CET 1999  Werner Koch  <wk@isil.d.shuttle.de>
8119         * g10.c (main): check for development version now in configure
8121         * tdbio.c (tdbio_write_record): Add uid.validity
8122         (tdbio_read_record) : Ditto.
8123         (tdbio_dump_record) : Ditto.
8125         * keygen.c (keygen_add_std_prefs): Replaced Blowfish by Twofish,
8126         removed MD5 and Tiger.
8127         * pubkey-enc.c (get_it): Suppress warning about missing Blowfish
8128         in preferences in certain cases.
8130         * ringedit.c (lock_rentry,unlock_rentry): New.
8132         * getkey.c (key_byname): Pass ret_kb down to lookup_xx.
8134         * armor.c (armor_filter): No output of of empty comment lines.
8135         Add option --no-version to suppress the output of the version string.
8137         * getkey.c: Release the getkey context for auto context variables.
8139 Sun Jan 24 18:16:26 CET 1999  Werner Koch  <wk@isil.d.shuttle.de>
8141         * getkey.c: Changed the internal design to allow simultaneous
8142         lookup of multible user ids
8143         (get_pubkey_bynames): New.
8144         (get_seckey_bynames): New.
8145         (get_seckey_next): New.
8146         (get_seckey_end): New.
8147         * keylist.c (list_one): Use the new functions.
8149         * keylist.c (list_keyblock): add a newline for normal listings.
8151         * g10.c (--recipient): New option name to replace --remote-user
8154 Wed Jan 20 18:59:49 CET 1999  Werner Koch  <wk@isil.d.shuttle.de>
8156         * textfilter.c: Mostly rewritten
8157         * plaintext.c (handle_plaintext): Use now text_filter semantics.
8159 Tue Jan 19 19:34:58 CET 1999  Werner Koch  <wk@isil.d.shuttle.de>
8161         * export.c (export_pubkeys_stream): New.
8162         (do_export_stream): New.
8163         * g10.c (aSendKeys): New command.
8164         * hkp.c (hkp_export): New.
8166         * compress.c (do_uncompress): Hack for algo 1 and 1.1.3
8168 Sun Jan 17 11:04:33 CET 1999  Werner Koch  <wk@isil.d.shuttle.de>
8170         * textfilter.c (text_filter): Now uses iobuf_read_line().
8171         (read_line): Removed.
8173         * armor.c (trim_trailing_spaces): Removed and replaced
8174         by trim_trailing_ws from libutil
8176 Sat Jan 16 12:03:27 CET 1999  Werner Koch  <wk@isil.d.shuttle.de>
8178         * hkp.c (hkp_ask_import): Use only the short keyid
8180 Sat Jan 16 09:27:30 CET 1999  Werner Koch  <wk@isil.d.shuttle.de>
8182         * import.c (import_key_stream): New
8183         (import): New, moved most of import_keys here.
8184         * g10.c: New option --keyserver
8185         * mainproc.c (check_sig_and_print): Hook to import a pubkey.
8187         * pref.c pref.h : Removed
8189         * hkp.c hkp.h: New
8191 Wed Jan 13 14:10:15 CET 1999  Werner Koch  <wk@isil.d.shuttle.de>
8193         * armor.c (radix64_read): Print an error if a bad armor was detected.
8195 Wed Jan 13 12:49:36 CET 1999  Werner Koch  <wk@isil.d.shuttle.de>
8197         * armor.c (radix64_read): Now handles malformed armors produced
8198         by some buggy MUAs.
8200 Tue Jan 12 11:17:18 CET 1999  Werner Koch  <wk@isil.d.shuttle.de>
8202         * ringedit.c (find_keyblock_bysk): New.
8204         * skc_list.c (is_insecure): New.
8205         (build_sk_list): usage check for insecure keys.
8207         * import.c (chk_self_sigs): Add handling for subkeys.
8208         (delete_inv_parts): Skip unsigned subkeys
8210         * sig-check.c (do_check): Print info if the signature is older
8211         than the key.
8212         * keygen.c (generate_subkeypair): Fail on time warp.
8213         * sign.c (do_sign): Ditto.
8215 Sun Jan 10 15:10:02 CET 1999  Werner Koch  <wk@isil.d.shuttle.de>
8217         * armor.c (fake_packet): Fixed not-dash-escaped bug.
8219 Sat Jan  9 16:02:23 CET 1999  Werner Koch  <wk@isil.d.shuttle.de>
8221         * sig-check.c (do_check): Output time diff on error
8223         * status.c (STATUS_VALIDSIG): New.
8224         (is_status_enabled): New.
8225         * mainproc.c (check_sig_and_print): Issue that status message.
8227         * plaintext.c (special_md_putc): Removed
8229         * armor.c (armor_filter): print error for truncated lines.
8231         * free-packet.c (free_encrypted): Revomed call to set_block_mode.
8232         (free_plaintext): Ditto.
8234 Thu Jan  7 18:00:58 CET 1999  Werner Koch  <wk@isil.d.shuttle.de>
8236         * pkclist.c (add_ownertrust): Fixed return value.
8238         * encr-data.c (decrypt_data): Disabled iobuf_set_limit and
8239         iobuf_pop_filter stuff.
8240         * compress.c (handle_compressed): Disabled iobuf_pop_filter.
8242         * packet.h (PKT_secret_key): Add is_primary flag.
8243         * parse-packet.c (parse_key): Set this flag.
8244         * passphrase.c (passphrase_to_dek): Kludge to print the primary
8245         keyid - changed the API: keyid must now hold 2 keyids.
8246         * getkey.c (get_primary_seckey): New.
8247         * seckey-cert.c (do_check): pass primary keyid to passphrase query
8249         * tbdio.c (open_db): removed the atexit
8250         (tdbio_set_dbname): and moved it to here.
8252         * armor.c: Rewrote large parts.
8254 Tue Dec 29 19:55:38 CET 1998  Werner Koch  <wk@isil.d.shuttle.de>
8256         * revoke.c (gen_revoke): Removed compression.
8258         * pkclist.c (do_we_trust_pre): special check for revoked keys
8260         * trustdb.c (update_trust_record): Fixed revoke flag.
8262 Tue Dec 29 14:41:47 CET 1998  Werner Koch  <wk@isil.d.shuttle.de>
8264         * misc.c (disable_core_dumps): Check for EINVAL (Atari)
8266         * getkey (merge_one_pk_and_selfsig): Fixed search of expiredate.
8267         (merge_keys_and_selfsig): Ditto.
8269         * free-packet.c (cmp_public_keys): cmp expire only for v3 packets
8270         (cmp_secret_keys): Ditto.
8271         (cmp_public_secret_key): Ditto.
8273 Wed Dec 23 17:12:24 CET 1998  Werner Koch  <wk@isil.d.shuttle.de>
8275         * armor.c (find_header): Reset not_dashed at every header
8277 Wed Dec 23 13:18:14 CET 1998  Werner Koch  <wk@isil.d.shuttle.de>
8279         * pkclist.c (add_ownertrust): Refresh validity values.
8281         * trustdb.c (enum_cert_paths_print): New arg refresh.
8283         * ringedit.c: Fixed problems fix keyrings
8284         * parse-packet.c (dbg_parse_packet): New debug functions.
8286         * getkey.c (getkey_disable_caches): New.
8287         * import.c (import_keys): Disable caches.
8289 Thu Dec 17 18:31:15 CET 1998  Werner Koch  <wk@isil.d.shuttle.de>
8291         * misc.c (trap_unaligned): Only for glibc 1
8293         * sign.c (write_dash_escaped): Now escapes "From " lines
8294         * g10.c: New option --escape-from-lines
8296         * trustdb.c (sort_tsl_list): New
8297         (list_trust_path): Now prints sorted list.
8298         (enum_cert_paths): Likewise.
8299         (enum_cert_paths_print): New.
8300         (print_paths): New printing format.
8301         * pkclist.c (add_ownertrust): New arg quit.
8302         (edit_ownertrust): New quit selection and does not query
8303         the recipients ownertrust anymore.
8304         (add_ownertrust): Print the ceritficate path.
8307 Mon Dec 14 21:18:49 CET 1998  Werner Koch  <wk@isil.d.shuttle.de>
8309         * parse-packet.c (parse_signature): Now checks for critical bit
8310         (parse_sig_subpkt): Splitted.
8311         (parse_one_sig_subpkt): New.
8312         * sig-check.c (do_check): handle critical bit.
8314 Sun Dec 13 14:10:56 CET 1998  Werner Koch  <wk@isil.d.shuttle.de>
8316         * pcklist.c (select_algo_from_prefs): Preferences should
8317         now work (lost the != ? )
8319 Thu Dec 10 20:15:36 CET 1998  Werner Koch  <wk@isil.d.shuttle.de>
8321         * ringedit.c (gdbm_store): Fix for inserts
8323         * g10.c (main): New option --export-all
8324         * export.c (export_pubkeys): New arg.
8325         (do_export): Now may skip old keys.
8327         * status.c: Minor patches for Sun's cc
8329         * keygen.c (ask_algo): Disabled v3 ElGamal choice, rearranged
8330          the numbers.  Add a warning question when a sign+encrypt key
8331          is selected.
8333         * g10.c (do_not_use_RSA): Removed.
8334         * misc.c (print_pubkey_algo_note): New as replacement for the
8335         do_not_use_RSA() and chnaged all callers.
8336         (print_cipher_algo_note): New.
8337         (print_hash_algo_note): New.
8339         * cipher.c (write_header): Add a call to print_cipher_algo_note.
8340         * seckey-cert.c (protect_secret_key): Ditto
8341         * sign.c (do_sign): Add a call to print_digest_algo_note.
8343         * getkey.c (get_long_user_id_string): New.
8344         * mainproc.c (check_sig_and_print): Changed the format of the
8345         status output.
8347         * encrypt.c (write_pubkey_enc_from_list): print used symmetric cipher.
8349         * pkclist.c (do_we_trust): Changed a message.
8351 Wed Dec  9 13:41:06 CET 1998  Werner Koch  <wk@isil.d.shuttle.de>
8353         * misc.c (trap_unaligned) [ALPHA]: Only if UAC_SIGBUS is defined.
8355         * sign.c (write_dash_escaped): Add the forgotten patch by Brian Moore.
8357         * compress.c (do_uncompress): Fixed the inflating bug.
8360 Tue Dec  8 13:15:16 CET 1998  Werner Koch  <wk@isil.d.shuttle.de>
8362         * trustdb.c (upd_uid_record): Now uses the newest self-signature
8363         (insert_trust_record): Now calls update with recheck set to true.
8364         (register_trusted_key): New.
8365         (verify_own_keys): Enhanced by list of trusted keys.
8367         * g10.c (main): Print a warning when a devel version is used.
8368         (main): New option --trusted-key
8370         * import.c (merge_blocks): Fixed merging of new user ids and
8371         added merging of subkeys.
8372         (append_uid): Ditto.
8373         (merge_keysig): New.
8374         (append_key): New.
8375         * getkey.c (merge_one_pk_and_selfsig): Get the expiration time
8376         from the newest self-signature.
8377         (merge_keys_and_selfsig): Ditto.
8379         * free-packet.c (cmp_secret_key): New.
8382 Fri Nov 27 21:37:41 CET 1998  Werner Koch  <wk@isil.d.shuttle.de>
8384         * g10.c: New option --lock-once
8385         * tdbio.c (open_db): Add an atexit
8386         (cleanup): New.
8387         (tdbio_sync): Add locking.
8388         (tdbio_end_transaction): Ditto.
8389         (put_record_into_cache): Ditto.
8390         * ringedit.c (keyring_copy): Ditto.
8391         (cleanup): New.
8392         (add_keyblock_resource): Add an atexit.
8394 Fri Nov 27 15:30:24 CET 1998  Werner Koch  <wk@isil.d.shuttle.de>
8396          * armor.c (find_header): Another fix for clearsigs.
8398 Fri Nov 27 12:39:29 CET 1998  Werner Koch  <wk@isil.d.shuttle.de>
8401         * status.c (display_help): Removed.
8402         * helptext.c: New and removed the N_() from all cpr_gets.
8405 Fri Nov 20 16:54:52 1998  Werner Koch  (wk@isil.d.shuttle.de)
8407         * g10.c (main): New option --not-dash-escaped
8408         * sign.c (write_dashed_escaped): Ditto.
8409         * armor.c (find_header): Support for NotDashEscaped header.
8411         * getkey.c: print "disabled cache.." only if verbose is used.
8413 Thu Nov 19 07:17:31 1998  Werner Koch  <werner.koch@guug.de>
8415         * parse-packet.c (dump_sig_subpkt): Fixed expire listing
8416         * getkey.c (merge_keys_and_selfsig): Fixed expire calculation.
8417         (merge_one_pk_and_selfsig): Ditto.
8418         * keyedit.c (menu_expire). Ditto.
8419         * keygen.c (keygen_add_key_expire): Ditto.
8420         (ask_expire_interval): New and changed all local function to use
8421         this instead.
8422         (keygen_add_key_expire): Opaque should now be a public key;
8423         changed all callers.
8425         * parse.packet.c (parse): use skip_rest to skip packets.
8427         * keyedit.c (keyedit_menu): New arg for cmdline cmds.
8429 Wed Nov 18 20:33:50 1998  Werner Koch  (wk@isil.d.shuttle.de)
8431         * trustdb.c (check_trustdb): Now rechecks all gived userids.
8432         (collect_paths): Some fixes.
8433         (upd_pref_records): Skips empty items, evaluate all items.
8435         * parse-packet.c (dump_sig_subpkt): Better listing of prefs.
8436         (skip_packet): Now knows about marker packet
8438         * g10.c: removed cmd "--edit-sig".
8440         * pubring.asc: Updated.
8442 Sat Nov 14 14:01:29 1998  Werner Koch  (wk@isil.d.shuttle.de)
8444         * g10.c (main): Changed syntax of --list-trust-path
8445         * trustdb.c (list_trust_path): Replaced max_depth by
8446         opt.max_cert_depth
8448 Fri Nov 13 07:39:58 1998  Werner Koch  <werner.koch@guug.de>
8450         * trustdb.c (collect_paths): Removed a warning message.
8451         (enum_trust_web): Removed.
8452         (enum_cert_paths): New.
8453         * pkclist.c (add_ownertrust): Changed to use enum_cert_paths.
8454         (edit_ownertrust): Now list ceritficates on request.
8455         (show_paths): New.
8457 Wed Nov 11 18:05:44 1998  Werner Koch  <werner.koch@guug.de>
8459         * g10.c (main): New option --max-cert-depth
8460         * tdbio.h: add new fields to ver and dir record.
8461         * tdbio.c: read/write/dump of these fields.
8462         (tdbio_db_matches_options): New.
8463         * trustdb.c: replaced MAC_CERT_DEPTH by opt.max_cert_depth.
8464         (do_check): cache validity and changed other functions
8465         to reset the cached value.
8467         * keylist.c (list_one): Now lists the ownertrust.
8468         * mainproc.c (list_node): Ditto.
8470 Tue Nov 10 10:08:59 1998  Werner Koch  (wk@isil.d.shuttle.de)
8472         * g10.c (g10_exit): Now looks at the new g10_errors_seen.
8473         * mainproc.c (check_sig_and_print): Sets g10_errors_seen.
8475         * *.c : i18n many more strings.
8477         * ringedit.c (locate_keyblock_by_keyid): Add HAVE_LIBGDBM
8478         (locate_keyblock_by_fpr): Ditto.
8480         * g10.c (main): removed unsused "int errors".
8481         (main): Add new option --charset.
8483         * g10.c (main): special message for the unix newbie.
8485 Mon Nov  9 07:17:42 1998  Werner Koch  <werner.koch@guug.de>
8487         * getkey.c (finish_lookup): Kludge to prefere algo 16.
8489         * trustdb.c (new_lid_table): Clear cached item.
8491         * status.c (cpr_get_utf8): New.
8492         * pkclist.c (build_pk_list): Uses this.
8494 Sun Nov  8 17:20:39 1998  Werner Koch  (wk@isil.d.shuttle.de)
8496         * mainproc.c (check_sig_and_print): Why did I use strlen()-1
8497         in the printf? - This truncated the TZ.
8499 Sat Nov  7 15:57:28 1998  me,,,  (wk@tobold)
8501         * getkey.c (lookup): Changes to support a read_next.
8502         (get_pubkey): Fixed a memory leak.
8504         * keylist.c (list_one): Now lists all matching user IDs.
8506 Tue Nov  3 16:19:21 1998  Werner Koch  (wk@isil.d.shuttle.de)
8508         * keygen.c (ask_user_id): Now converted to UTF-8
8510         * g10.c (main): Kludge for pgp clearsigs and textmode.
8512 Fri Oct 30 16:40:39 1998  me,,,  (wk@tobold)
8514         * signal.c (block_all_signals): New.
8515         (unblock_all_signals): New
8516         * tdbio.c (tdbio_end_transaction): Now blocks all signals.
8518         * trustdb.c (new_lid_table): Changed the representation of the
8519         former local_lid_info stuff.
8521         * trustdb.c (update_trust_record): Reorganized the whole thing.
8522         * sig-check.c (check_key_signature): Now handles class 0x28
8525 Wed Oct 28 18:56:33 1998  me,,,  (wk@tobold)
8527         * export.c (do_export): Takes care of the exportable sig flag.
8529 Tue Oct 27 14:53:04 1998  Werner Koch  (wk@isil.d.shuttle.de)
8531         * trustdb.c (update_trust_record): New "fast" parameter.
8533 Sun Oct 25 19:32:05 1998  Werner Koch  (wk@isil.d.shuttle.de)
8535         * openfile.c (copy_options_File): New.
8536         * ringedit.c (add_keyblock_resource): Creates options file
8537         * tdbio.c (tdbio_set_dbname): Ditto.
8539 Sat Oct 24 14:10:53 1998  brian moore <bem@cmc.net>
8541         * mainproc.c (proc_pubkey_enc): Don't release the DEK
8542         (do_proc_packets): Ditto.
8544 Fri Oct 23 06:49:38 1998  me,,,  (wk@tobold)
8546         * keyedit.c (keyedit_menu): Comments are now allowed
8548         * trustdb.c: Rewrote large parts.
8551 Thu Oct 22 15:56:45 1998  Michael Roth  (mroth@nessie.de)
8553         * encode.c: (encode_simple): Only the plain filename without
8554         a given directory is stored in generated packets.
8555         (encode_crypt): Ditto.
8557         * sign.c: (sign_file) Ditto.
8560 Thu Oct 22 10:53:41 1998  Werner Koch  (wk@isil.d.shuttle.de)
8562         * trustdb.c (update_trust_record): Add new optional arg.
8564         * import.c (import_keys): Add statistics output
8565         * trustdb.c (update_trustdb): Ditto.
8566         (insert_trustdb): Ditto.
8568         * tdbio.c (tdbio_begin_transaction): New.
8569         (tdbio_end_transaction): New.
8570         (tdbio_cancel_transaction): New.
8572         * g10.c (main): New option --quit.
8574         * trustdb.c (check_hint_sig): No tests for user-id w/o sig.
8575         This caused an assert while checking the sigs.
8577         * trustdb.c (upd_sig_record): Splitted into several functions.
8579         * import.c (import_keys): New arg "fast".
8580         * g10.c (main): New command --fast-import.
8582 Wed Oct 21 18:19:36 1998  Michael Roth <mroth@nessie.de>
8584         * ringedit.c (add_keyblock_resource): Directory is now created.
8585         * tdbio.c (tdbio_set_dbname): New info message.
8587 Wed Oct 21 11:52:04 1998  Werner Koch  (wk@isil.d.shuttle.de)
8589         * trustdb.c (update_trustdb): released keyblock in loop.
8591         * keylist.c (list_block): New.
8592         (list_all): Changed to use list_block.
8594         * trustdb.c: Completed support for GDBM
8596         * sign.c (only_old_style): Changed the way force_v3 is handled
8597         (sign_file): Ditto.
8598         (clearsign_file): Ditto.
8600         * keygen.c (has_invalid_email_chars): Splitted into mailbox and
8601         host part.
8603         * keylist.c (list_one): Add a merge_keys_and_selfsig.
8604         * mainproc.c (proc_tree): Ditto.
8606 Sun Oct 18 11:49:03 1998  Werner Koch  (wk@isil.d.shuttle.de)
8608         * sign.c (only_old_style): Add option force_v3_sigs
8609         (sign_file): Fixed a bug in sig->version
8610         (clearsign_file): Ditto.
8612         * parse-packet.c (dump_sig_subpkt): New
8614         * keyedit.c (menu_expire): New.
8615         * free-packet.c (cmp_signatures): New
8618 Sat Oct 17 10:22:39 1998  Werner Koch  (wk@isil.d.shuttle.de)
8620         * armor.c: changed output line length from 72 to 64.
8622         * keyedit.c (fix_keyblock): New.
8624 Fri Oct 16 10:24:47 1998  Werner Koch  (wk@isil.d.shuttle.de)
8626         * trustdb.c: Rewrote most.
8627         * tdbio.c: Add cache and generalized hash tables.
8629         * options.h (ENABLE_COMMENT_PACKETS): New but undef'ed.
8630         * encode.c, sign.c, keygen.c: Disabled comment packets.
8631         * export.c (do_export): Comment packets are never exported,
8632         except for those in the secret keyring.
8634         * g10.c (main): Removed option do-no-export-rsa; should be
8635         be replaced by a secpial tool.
8636         * export.c (do_export): Removed the code for the above option.
8638         * armor.c (find_header): Support for new only_keyblocks.
8639         * import.c (import_keys): Only looks for keyblock armors.
8641         * packet.h: replaced valid_days by expiredate and changed all users.
8642         * build-packet.c (do_public_key): calculates valid-days
8643         (do_secret_key): Ditto.
8644         * parse-packet.c (parse_key): expiredate is calucated from the
8645         valid_period in v3 packets.
8646         * keyid.c (do_fingerprint_md): calculates valid_dates.
8648         * keygen.c (add_key_expire): fixed key expiration time for v4 packets.
8650         * armor.c (find_header): A LF in the first 28 bytes
8651         was skipped for non-armored data.
8653 Thu Oct  8 11:35:51 1998  Werner Koch  (wk@isil.d.shuttle.de)
8655         * armor.c (is_armored): Add test on old comment packets.
8657         * tdbio.c (tdbio_search_dir_bypk): fixed memory leak.
8659         * getkey.c: Changed the caching algorithms.
8661 Wed Oct  7 19:33:28 1998  Werner Koch  (wk@isil.d.shuttle.de)
8663         * kbnodes.c (unused_nodes): New.
8665 Wed Oct  7 11:15:36 1998  Werner Koch  (wk@isil.d.shuttle.de)
8667         * keyedit.c (sign_uids): Fixed a problem with SK which could caused
8668         a save of an unprotected key.
8669         (menu_adduid): Ditto.
8671         * keyedit.c (keyedit_menu): Prefs are now correctly listed for
8672         new user ids.
8674         * trustdb.c (update_trust_record): New.
8675         (insert_trust_record): Now makes use of update_trust_record.
8677 Tue Oct  6 16:18:03 1998  Werner Koch  (wk@isil.d.shuttle.de)
8679         * trustdb.c (read_record): replaces most of the tdbio_read_records.
8680         (write_record): Ditto.
8682 Sat Oct  3 11:01:21 1998  Werner Koch  (wk@isil.d.shuttle.de)
8684         * keygen.c (ask_alogo): enable ElGamal enc-only only for addmode.
8686 Wed Sep 30 10:15:33 1998  Werner Koch  (wk@isil.d.shuttle.de)
8688         * import.c (import_one): Fixed update of wrong keyblock.
8690 Tue Sep 29 08:32:08 1998  me,,,  (wk@tobold)
8692         * mainproc.c (proc_plaintext): Display note for special filename.
8693         * plaintext.c (handle_plaintext): Suppress output of special file.
8695 Mon Sep 28 12:57:12 1998  Werner Koch  (wk@isil.d.shuttle.de)
8697         * g10.c (verify_own_keys): Add warning if a key is not protected.
8699         * passphrase (hash_passphrase): Fixed iterated+salted mode and
8700         setup for keysizes > hashsize.
8702         * g10.c (main): New options: --s2k-{cipher,digest,mode}.
8704 Fri Sep 25 09:34:23 1998  Werner Koch  (wk@isil.d.shuttle.de)
8706         * g10.c: Chnaged some help texts.
8708 Tue Sep 22 19:34:39 1998  Werner Koch  (wk@isil.d.shuttle.de)
8710         * passphrase.c (read_passphrase_from_fd): fixed bug for long
8711         passphrases.
8713 Mon Sep 21 11:28:05 1998  Werner Koch  (wk@(none))
8715         * getkey.c (lookup): Add code to use the sub key if the primary one
8716         does not match the usage.
8718         * armor.c (armor_filter): New error message: no valid data found.
8719         (radix64_read): Changes to support multiple messages.
8720         (i18n.h): New.
8721         * mainproc.c (add_onepass_sig): bug fix.
8723 Mon Sep 21 08:03:16 1998  Werner Koch  (wk@isil.d.shuttle.de)
8725         * pkclist.c (do_we_trust): Add keyid to most messages.
8727         * passphrase.c (read_passphrase_from_fd): New.
8728         (have_static_passphrase): New
8729         (get_passphrase_fd): Removed.
8730         (set_passphrase_fd): Removed.
8731         * g10.c (main): passphrase is now read here.
8733         * keyedit.c (keyedit_menu): "help" texts should now translate fine.
8735 Mon Sep 21 06:40:02 1998  Werner Koch  (wk@isil.d.shuttle.de)
8737         * encode.c (encode_simple): Now disables compression
8738         when --rfc1991 is used.
8739         (encode_crypt): Ditto.
8741 Fri Sep 18 16:50:32 1998  Werner Koch  (wk@isil.d.shuttle.de)
8743         * getkey.c (merge_key_and_selfsig): New.
8745 Fri Sep 18 10:20:11 1998  Werner Koch  (wk@isil.d.shuttle.de)
8747         * pkclist.c (select_algo_from_prefs): Removed 3DES kludge.
8749         * seskey.c (make_session_key): Fixed SERIOUS bug introduced
8750         by adding the weak key detection code.
8752         * sign.c (sign_file): Changed aremor header in certain cases.
8754 Tue Sep 15 17:52:55 1998  Werner Koch  (wk@isil.d.shuttle.de)
8756         * mainproc.c (check_sig_and_print): Replaced ascime by asctimestamp.
8758 Mon Sep 14 11:40:52 1998  Werner Koch  (wk@isil.d.shuttle.de)
8760         * seskey.c (make_session_key): Now detects weak keys.
8762         * trustdb (clear_trust_checked_flag): New.
8764         * plaintext.c (handle_plaintext): Does no anymore suppress CR from
8765         cleartext signed messages.
8767 Sun Sep 13 12:54:29 1998  Werner Koch  (wk@isil.d.shuttle.de)
8769         * trustdb.c (insert_trust_record): Fixed a stupid bug in the free
8770         liunked list loops.
8772 Sat Sep 12 15:49:16 1998  Werner Koch  (wk@isil.d.shuttle.de)
8774         * status.c (remove_shmid): New.
8775         (init_shm_comprocess): Now sets permission to the real uid.
8777 Wed Sep  9 11:15:03 1998  Werner Koch  (wk@isil.d.shuttle.de)
8779         * packet.h (PKT_pubkey_enc): New flah throw_keyid, and add logic to
8780         implement it.
8781         * g10.c (main): New Option --throw-keyid
8783         * getkey.c (enum_secret_keys): Add new ar and changed all callers.
8785 Tue Sep  8 20:04:09 1998  Werner Koch  (wk@isil.d.shuttle.de)
8787         * delkey.c (delete_key): Moved from keyedit.c.
8789 Mon Sep  7 16:37:52 1998  Werner Koch  (wk@isil.d.shuttle.de)
8791         * build-packet.c (calc_length_header): New arg new_ctb to correctly
8792         calculate the length of new style packets.
8794         * armor.c (is_armored): Checks for symkey_enc packets.
8796         * pkclist.c (select_algo_from_prefs): 3DEs substitute is now CAST5.
8798 Tue Aug 11 17:54:50 1998  Werner Koch  (wk@isil.d.shuttle.de)
8800         * build-packet.c (do_secret_key): Fixed handling of old keys.
8802         * getkey.c (compare_name): Fixed exact and email matching
8804         * openfile.c (open_outfile): Changed arguments and all callers.
8806 Tue Aug 11 09:14:35 1998  Werner Koch  (wk@isil.d.shuttle.de)
8808         * encode.c (encode_simple): Applied option set-filename and comment.
8809         (encode_crypt): Ditto.
8810         * sign.c (sign_file): Ditto.
8811         * armor.c (armor_filter): Applied option comment.
8813         * encode.c (encode_crypt): Moved init_packet to the begin.
8814         (encode_simple): add an init_packet().
8816         * comment (write_comment): Now enforces a hash sign as the 1st byte.
8818         * import.c (import_one): Add explanation for "no user ids".
8820         * compress.c (do_uncompress): Applied Brian Warner's patch to support
8821         zlib 1.1.3 etc.
8823         * trustdb.c (check_trust): Fixed a problem after inserting new keys.
8825         * getkey (lookup): do not return the primary key if usage is given
8826         (lookup_sk): Ditto and take usage into account.
8828         * status.c (cpr_get_answer_is_yes): add display_help.
8830 Mon Aug 10 10:11:28 1998  Werner Koch  (wk@isil.d.shuttle.de)
8832         * getkey.c (lookup_sk): Now always returns the primary if arg
8833         primary is true.
8834         (lookup): Likewise.
8835         (get_pubkey_byname): Now returns the primary key
8836         (get_seckey_byname): Ditto.
8839 Mon Aug 10 08:34:03 1998  Werner Koch  (wk@isil.d.shuttle.de)
8841         * keyid.c (pubkey_letter): ELG_E is now a small g.
8843 Sat Aug  8 17:26:12 1998  Werner Koch  (wk@isil.d.shuttle.de)
8845         * openfile (overwrite_filep): Changed semantics and all callers.
8847 Sat Aug  8 12:17:07 1998  Werner Koch  (wk@isil.d.shuttle.de)
8849         * status.c (display_help): New.
8851 Thu Aug  6 16:30:41 1998  Werner Koch,mobil,,,  (wk@tobold)
8853         * seskey.c (encode_session_key): Now uses get_random_bits().
8855 Thu Aug  6 07:34:56 1998  Werner Koch,mobil,,,  (wk@tobold)
8857         * ringedit.c (keyring_copy): No more backupfiles for
8858         secret keyrings and add additional warning in case of
8859         a failed secret keyring operation.
8861 Wed Aug  5 11:54:37 1998  Werner Koch  (wk@isil.d.shuttle.de)
8863         * g10.c (check_opts): Moved to main.  Changed def_cipher_algo
8864         semantics and chnaged all users.
8866         * pubkey-enc.c (get_sssion_key): New informational output
8867         about preferences.
8869         * parse-packet.c (parse_symkeyenc): Fixed salted+iterated S2K
8870         (parse_key): Ditto.
8871         * build-packet.c (do_secret_key): Ditto.
8872         (do_symkey_enc): Ditto.
8874 Tue Aug  4 08:59:10 1998  Werner Koch  (wk@isil.d.shuttle.de)
8876         * getkey.c (enum_secret_keys): Now returns only primary keys.
8878         * getkey (lookup): Now sets the new namehash field.
8880         * parse-packet.c (parse_sig_subpkt2): New.
8882         * sign.c (sign_file): one-pass sigs are now emiited reverse.
8883         Preference data is considered when selecting the compress algo.
8885 Wed Jul 29 12:53:03 1998  Werner Koch  (wk@isil.d.shuttle.de)
8887         * free-packet.c (copy_signature): New.
8889         * keygen.c (generate_subkeypair): rewritten
8890         * g10.c (aKeyadd): Removed option --add-key
8892 Mon Jul 27 10:37:28 1998  Werner Koch  (wk@isil.d.shuttle.de)
8894         * seckey-cert.c (do_check): Additional check on cipher blocksize.
8895         (protect_secret_key): Ditto.
8896         * encr-data.c: Support for other blocksizes.
8897         * cipher.c (write_header): Ditto.
8899 Fri Jul 24 16:47:59 1998  Werner Koch  (wk@isil.d.shuttle.de)
8901         * kbnode.c (insert_kbnode): Changed semantics and all callers.
8902         * keyedit.c : More or less a complete rewrite
8904 Wed Jul 22 17:10:04 1998  Werner Koch  (wk@isil.d.shuttle.de)
8906         * build-packet.c (write_sign_packet_header): New.
8908 Tue Jul 21 14:37:09 1998  Werner Koch  (wk@isil.d.shuttle.de)
8910         * import.c (import_one): Now creates a trustdb record.
8912         * g10.c (main): New command --check-trustdb
8914 Mon Jul 20 11:15:07 1998  Werner Koch  (wk@isil.d.shuttle.de)
8916         * genkey.c (generate_keypair): Default key is now DSA with
8917         encryption only ElGamal subkey.
8919 Thu Jul 16 10:58:33 1998  Werner Koch  (wk@isil.d.shuttle.de)
8921         * keyid.c (keyid_from_fingerprint): New.
8922         * getkey.c (get_pubkey_byfprint): New.
8924 Tue Jul 14 18:09:51 1998  Werner Koch  (wk@isil.d.shuttle.de)
8926         * keyid.c (fingerprint_from_pk): Add argument and changed all callers.
8927         (fingerprint_from_sk): Ditto.
8929 Tue Jul 14 10:10:03 1998  Werner Koch  (wk@isil.d.shuttle.de)
8931         * plaintext.c (handle_plaintext): Now returns create error if
8932         the file could not be created or the user responded not to overwrite
8933         the file.
8934         * mainproc.c (proc_plaintext): Tries again if the file could not
8935         be created to check the signature without output.
8937         * misc.c (disable_core_dumps): New.
8938         * g10.c (main): disable coredumps for gpg
8940         * g10.c (MAINTAINER_OPTIONS): New to disable some options
8942 Mon Jul 13 16:47:54 1998  Werner Koch  (wk@isil.d.shuttle.de)
8944         * plaintext.c (hash_datafiles): New arg for better support of
8945         detached sigs. Changed all callers.
8946         * mainproc.c (proc_signature_packets): Ditto.
8948         * g10.c (main): New option "compress-sigs"
8949         * sig.c (sign_file): detached signatures are not anymore compressed
8950         unless the option --compress-sigs is used.
8952 Thu Jul  9 19:54:54 1998  Werner Koch  (wk@isil.d.shuttle.de)
8954         * armor.c: Fixes to allow zero length cleartext signatures
8956 Thu Jul  9 14:52:47 1998  Werner Koch  (wk@isil.d.shuttle.de)
8958         * g10.c (build_list): Now drops setuid.
8959         (main): Changed the way keyrings  and algorithms are registered .
8961 Wed Jul  8 14:17:30 1998  Werner Koch  (wk@isil.d.shuttle.de)
8963         * packet.h (PKT_public_key): Add field keyid.
8964         * parse-packet.c (parse_key): Reset the above field.
8965         * keyid.c (keyid_from_pk): Use above field as cache.
8967         * tdbio.c, tdbio.h: New
8968         * trustdb.c: Moved some functions to tdbio.c.
8969         (print_keyid): New.
8971         * pkclist.c (check_signatures_trust): New.
8973 Wed Jul  8 10:45:28 1998  Werner Koch  (wk@isil.d.shuttle.de)
8975         * plaintext.c (special_md_putc): New.
8976         (handle_plaintext): add clearsig argument
8977         * mainproc.c (proc_plaintext): detection of clearsig
8978         * sign.c (write_dased_escaped): Changed clearsig format
8980 Tue Jul  7 18:56:19 1998  Werner Koch  (wk@isil.d.shuttle.de)
8982         * armor.c (find_header): Now makes sure that there is only one
8983         empty line for clearsigs, as this is what OP now says.
8985 Mon Jul  6 13:09:07 1998  Werner Koch  (wk@isil.d.shuttle.de)
8987         * g10.c (main): New option default-secret-key
8988         * getkey.c (get_seckey_byname): support for this option.
8990 Mon Jul  6 09:03:49 1998  Werner Koch  (wk@isil.d.shuttle.de)
8992         * getkey.c (add_keyring): Keyrings are now added to end of the
8993         list of keyrings.  The first added keyringwill be created.
8994         (add_secret_keyring): Likewise.
8996         * ringedit.c (add_keyblock_resource): Files are created here.
8998         * g10.c (aNOP): Removed
9000         * getkey.c (lookup): Add checking of usage for name lookups
9001         * packet.h (pubkey_usage): Add a field which may be used to store
9002         usage capabilities.
9003         * pkclist.c (build_pk_list): getkey now called with usage arg.
9004         * skclist.c (build_sk_list): Ditto.
9006         * sign.c (clearsign_file): Fixed "Hash:" headers
9008 Sat Jul  4 13:33:31 1998  Werner Koch  (wk@isil.d.shuttle.de)
9010         * trustdb.c (list_ownertrust): New.
9011         * g10.c (aListOwnerTrust): New.
9013         * g10.c (def_pubkey_algo): Removed.
9015         * trustdb.c (verify_private_data): Removed and also the call to it.
9016         (sign_private_data): Removed.
9018 Fri Jul  3 13:26:10 1998  Werner Koch  (wk@isil.d.shuttle.de)
9020         * g10.c (aEditKey): was aEditSig. Changed usage msg.
9022         * keyedit.c: Done some i18n stuff.
9024         * g10.c (do_not_use_RSA): New.
9025         * sign.c (do_sign): Add call to above function.
9026         * encode.c (write_pubkey_enc_from_list): Ditto.
9028 Thu Jul  2 21:01:25 1998  Werner Koch  (wk@isil.d.shuttle.de)
9030         * parse-packet.c: Now is able sto store data of unknown
9031         algorithms.
9032         * free-packet.c: Support for this.
9033         * build-packet.c: Can write data of packet with unknown algos.
9035 Thu Jul  2 11:46:36 1998  Werner Koch  (wk@isil.d.shuttle.de)
9037         * parse-packet.c (parse): fixed 4 byte length header
9039 Wed Jul  1 12:36:55 1998  Werner Koch  (wk@isil.d.shuttle.de)
9041         * packet.h (new_ctb): New field for some packets
9042         * build-packet.c (build_packet): Support for new_ctb
9043         * parse-packet.c (parse): Ditto.
9045 Mon Jun 29 12:54:45 1998  Werner Koch  (wk@isil.d.shuttle.de)
9047         * packet.h: changed all "_cert" to "_key", "subcert" to "subkey".
9049         * free-packet.c (free_packet): Removed memory leak for subkeys.
9051 Sun Jun 28 18:32:27 1998  Werner Koch  (wk@isil.d.shuttle.de)
9053         * import.c (import_keys): Renamed from import_pubkeys.
9054         (import_secret_one): New.
9056         * g10.c (aExportSecret): New.
9058         * export.c (export_seckeys): New.
9060         * parse-packet.c (parse_certificate): Cleaned up.
9061         (parse_packet): Trust packets are now considered as unknown.
9062         (parse_pubkey_warning): New.
9064 Fri Jun 26 10:37:35 1998  Werner Koch  (wk@isil.d.shuttle.de)
9066         * keygen.c (has_invalid_email_chars): New.
9068 Wed Jun 24 16:40:22 1998  Werner Koch  (wk@isil.d.shuttle.de)
9070         * armor.c (armor_filter): Now creates valid onepass_sig packets
9071         with all detected hash algorithms.
9072         * mainproc.c (proc_plaintext): Now uses the hash algos as specified
9073         in the onepass_sig packets (if there are any)
9075 Mon Jun 22 11:54:08 1998  Werner Koch  (wk@isil.d.shuttle.de)
9077         * plaintext.c (handle_plaintext): add arg to disable outout
9078         * mainproc.c (proc_plaintext): disable output when in sigs_only mode.
9080 Thu Jun 18 13:17:27 1998  Werner Koch  (wk@isil.d.shuttle.de)
9082         * keygen.c: Removed all rsa packet stuff, chnaged defaults
9083         for key generation.
9085 Sun Jun 14 21:28:31 1998  Werner Koch  (wk@isil.d.shuttle.de)
9087         * misc.c (checksum_u16): Fixed a stupid bug which caused a
9088         wrong checksum calculation for the secret key protection and
9089         add a backward compatibility option.
9090         * g10.c (main): Add option --emulate-checksum-bug.
9092 Thu Jun 11 13:26:44 1998  Werner Koch  (wk@isil.d.shuttle.de)
9094         * packet.h: Major changes to the structure of public key material
9095         which is now stored in an array and not anaymore in a union of
9096         algorithm specific structures.  These is needed to make the system
9097         more extendable and makes a lot of stuff much simpler. Changed
9098         all over the system.
9100         * dsa.c, rsa.c, elg.c: Removed.
9102 Wed Jun 10 07:22:02 1998  Werner Koch,mobil,,,  (wk@tobold)
9104         * g10.c ("load-extension"): New option.
9106 Mon Jun  8 22:23:37 1998  Werner Koch  (wk@isil.d.shuttle.de)
9108         * seckey-cert.c (do_check): Removed cipher constants
9109         (protect_secret_key): Ditto.
9111 Fri May 29 10:00:28 1998  Werner Koch  (wk@isil.d.shuttle.de)
9113         * trustdb.c (query_trust_info): New.
9114         * keylist.c (list_one): Add output of trust info
9115         * mainproc (list_node): ditto.
9116         * g10.c (main): full trustdb init if -with-colons and any of the
9117         key list modes.
9119 Thu May 28 10:34:42 1998  Werner Koch  (wk@isil.d.shuttle.de)
9121         * status.c (STATUS_RSA_OR_IDEA): New.
9122         * sig-check.c (check_signature): Output special status message.
9123         * pubkey-enc.c (get_session_key): Ditto.
9125         * mainproc.c (check_sig_and_print): Changed format of output.
9126         * passpharse.c (passphrase_to_dek): Likewise.
9128 Wed May 27 13:46:48 1998  Werner Koch  (wk@isil.d.shuttle.de)
9130         * g10.c (aListSecretKeys): New option --list-secret-keys
9131         * keylist.c (std_key_list): Renamed to public_key_list.
9132         (secret_key_list): New
9133         (list_one, list_all): Add support for secret keys.
9134         * getkey.c (get_secret_keyring): New.
9135         * mainproc.c (list_node): Add option --with-colons for secret keys
9137         * sig-check.c (check_key_signature): detection of selfsigs
9138         * mainproc.c (list_node): fixed listing.
9140         * g10.c (aListSecretKeys): New option --always-trust
9141         * pkclist.c (do_we_trust): Override per option added
9143         * status.c (write_status_text): Add a prefix to every output line.
9145 Wed May 27 07:49:21 1998  Werner Koch  (wk@isil.d.shuttle.de)
9147         * g10 (--compress-keys): New.
9148         * options.h (compress_keys): New.
9149         * export.c (export_pubkeys): Only compresses with the new option.
9151 Tue May 26 11:24:33 1998  Werner Koch  (wk@isil.d.shuttle.de)
9153         * passphrase.c (get_last_passphrase): New
9154         (set_next_passphrase): New.
9155         (passphrase_to_dek): add support for the above functions.
9156         * keyedit.c (make_keysig_packet): Add sigclass 0x18,
9157         changed all callers due to a new argument.
9158         * keygen.c (write_keybinding): New
9159         (generate_subkeypair): Add functionality
9160         (ask_algo, ask_keysize, ask_valid_days): Broke out of generate_keypair
9161         (ask_user_id, ask_passphrase): Ditto.
9163 Thu May 21 11:26:13 1998  Werner Koch  (wk@isil.d.shuttle.de)
9165         * g10.c,gpgd.c (main): Does now return an int, so that egcs does
9166         not complain.
9168         * armor.c (fake_packet): Removed erro message and add a noticed
9169         that this part should be fixed.
9171         * sign.c (sign_file): Compression now comes in front of encryption.
9172         * encode.c (encode_simple): Ditto.
9173         (encode_crypt): Ditto.
9175 Tue May 19 16:18:19 1998  Werner Koch  (wk@isil.d.shuttle.de)
9177         * armor.c (fake_packet): Changed assertion to log_error
9179 Sat May 16 16:02:06 1998  Werner Koch  (wk@isil.d.shuttle.de)
9181         * build-packet.c (build_packet): Add SUBKEY packets.
9183 Fri May 15 17:57:23 1998  Werner Koch  (wk@isil.d.shuttle.de)
9185         * sign.c (hash_for): New and used in all places here.
9186         * main.h (DEFAULT_): new macros.
9187         * g10.c  (opt.def_digest_algo): Now set to 0
9189         * compress.c (init_compress): Add support for algo 1
9190         * options.h (def_compress_algo): New
9191         * g10.c (main): New option --compress-algo
9193 Fri May 15 13:23:59 1998  Werner Koch  (wk@isil.d.shuttle.de)
9195         * g10.c (print_mds): New feature to print only one hash,
9196         chnaged formatting.
9198 Thu May 14 15:36:24 1998  Werner Koch  (wk@isil.d.shuttle.de)
9200         * misc.c (trap_unaligned) [__alpha__]: New
9201         * g10.c (trap_unaligned): Add call to this to track down SIGBUS
9202         on Alphas (to avoid the slow emulation code).
9204 Wed May 13 11:48:27 1998  Werner Koch  (wk@isil.d.shuttle.de)
9206         * build-packet.c (do_signature): Support for v4 pakets.
9207         * keyedit.c (make_keysig_packet): Ditto.
9208         * build-packet.c (build_sig_subpkt_from_sig): New.
9209         (build_sig_subpkt): New.
9211         * elg.c (g10_elg_sign): removed keyid_from_skc.
9212         * dsa.c (g10_dsa_sign): Ditto.
9213         * rsa.c (g10_rsa_sign): Ditto.
9214         * keyedit.c (make_keysig_packet): Add call to keyid_from_skc
9216         * sign.c (clearsign_file): Support for v4 signatures.
9217         (sign_file): Ditto.
9219 Wed May  6 09:31:24 1998  Werner Koch  (wk@isil.d.shuttle.de)
9221         * parse-packet.c (do_parse): add support for 5 byte length leader.
9222         (parse_subpkt): Ditto.
9223         * build-packet.c (write_new_header): Ditto.
9225         * packet.h (SIGSUBPKT_): New constants.
9226         * parse-packet.c (parse_sig_subpkt): Changed name, made global,
9227         and arg to return packet length, chnaged all callers
9230 Tue May  5 22:11:59 1998  Werner Koch  (wk@isil.d.shuttle.de)
9232         * keygen.c (gen_dsa): New.
9233         * build_packet.c (do_secret_cert): Support for DSA
9235 Mon May  4 19:01:25 1998  Werner Koch  (wk@isil.d.shuttle.de)
9237         * compress.c: doubled buffer sizes
9238         * parse-packet.c (do_plaintext): now uses iobuf_read/write.
9240 Mon May  4 09:35:53 1998  Werner Koch  (wk@isil.d.shuttle.de)
9242         * seskey.c (encode_md_value): Add optional argument hash_algo,
9243         changed all callers.
9245         * passphrase.c (make_dek_from_passphrase): Removed
9246         * (get_passhrase_hash): Changed name to passphrase_to_dek, add arg,
9247         changed all callers.
9249         * all: Introduced the new ELG identifier and added support for the
9250         encryption only one (which is okay to use by GNUPG for signatures).
9252 Sun May  3 17:50:26 1998  Werner Koch  (wk@isil.d.shuttle.de)
9254         * packet.h (PKT_OLD_COMMENT): New name for type 16.
9255         * parse-packet.c (parse_comment): Now uses type 61
9257 Fri May  1 12:44:39 1998  Werner Koch,mobil,,,  (wk@tobold)
9259         * packet.h (count): Chnaged s2k count from byte to u32.
9260         * seckey-cert.c (do_check): Changed s2k algo 3 to 4, changed
9261         reading of count.
9262         * build-packet.c (do_secret_cert): ditto.
9263         * parse-packet.c (parse_certificate): ditto.
9265         * parse-packet.c (parse_symkeyenc): New.
9266         * build-packet.c (do_symkey_enc): New.
9268 Thu Apr 30 16:33:34 1998  Werner Koch  (wk@isil.d.shuttle.de)
9270         * sign.c (clearsign_file): Fixed "Hash: " armor line.
9272 Tue Apr 28 14:27:42 1998  Werner Koch  (wk@isil.d.shuttle.de)
9274         * parse-packet.c (parse_subpkt): Some new types.
9276 Mon Apr 27 12:53:59 1998  Werner Koch  (wk@isil.d.shuttle.de)
9278         * g10.c (main): Add option --skip-verify.
9279         * mainproc.c (check_sig_and_print): Ditto.
9281         * g10.c (print_mds): Add output for Tiger.
9283         * sign.c (sign_file): Now uses partial length headers if used
9284         in canonical textmode (kludge to fix a bug).
9286         * parse-packet.c (parse_certificate): Changed BLOWFISH id.
9287         * pubkey-enc.c (get_session_key): Ditto.
9288         * seskey.c (make_session_key): Ditto.
9289         * seckey-cert.c (protect_secret_key,do_check): Add BLOWFISH160.
9291 Fri Apr 24 17:38:48 1998  Werner Koch,mobil,,,  (wk@tobold)
9293         * sig-check.c (check_key_signature): Add sig-class 0x14..0x17
9294         * keyedit.c (sign-key): Some changes to start with support of
9295         the above new sig-classes.
9297 Wed Apr 22 09:01:57 1998  Werner Koch,mobil,,,  (wk@tobold)
9299         * getkey.c (compare_name): add email matching
9301 Tue Apr 21 16:17:12 1998  Werner Koch,mobil,,,  (wk@tobold)
9303         * armor.c (armor_filter): fixed missing last LF before CSUM.
9305 Thu Apr  9 11:35:22 1998  Werner Koch  (wk@isil.d.shuttle.de)
9307         * seckey-cert.c (do_check): New; combines all the check functions
9308         into one.
9310         * sign.c: removed all key management functions
9311         * keyedit.c: New.
9313 Thu Apr  9 09:49:36 1998  Werner Koch  (wk@isil.d.shuttle.de)
9315         * import.c (chk_self_sigs): Changed an error message.
9317 Wed Apr  8 16:19:39 1998  Werner Koch  (wk@isil.d.shuttle.de)
9319         * packet.h: packet structs now uses structs from the pubkey,
9320         removed all copy operations from packet to pubkey structs.
9322 Wed Apr  8 13:40:33 1998  Werner Koch  (wk@isil.d.shuttle.de)
9324         * trustdb.c (verify_own_certs): Fixed "public key not found".
9326         * getkey.c (key_byname): New, combines public and secret key search.
9328         * pkclist.c (build_pkc_list): Add new arg usage, changed all callers.
9329         * skclist.c (build_skc_list): Likewise.
9331         * ringedit.c (find_keyblock, keyring_search2): Removed.
9333 Wed Apr  8 09:47:21 1998  Werner Koch  (wk@isil.d.shuttle.de)
9335         * sig-check.c (do_check): Applied small fix from Ulf Möller.
9337 Tue Apr  7 19:28:07 1998  Werner Koch  (wk@isil.d.shuttle.de)
9339         * cipher.c, encr-data.c, seckey-cert.c: Now uses cipher_xxxx
9340         functions instead of blowfish_xxx or cast_xxx
9342 Tue Apr  7 11:04:02 1998  Werner Koch  (wk@isil.d.shuttle.de)
9344         * Makefile.am (g10maint.o): Changed the way it is created.
9346 Mon Apr  6 11:17:08 1998  Werner Koch  (wk@isil.d.shuttle.de)
9348         * misc.c: New.
9349         * keygen.c (checksum,checksum_u16,checksum_mpi): Moved to misc.c
9350         * seckey-cert.c: Kludge for wrong ELG checksum implementation.
9352 Sat Apr  4 20:07:01 1998  Werner Koch  (wk@isil.d.shuttle.de)
9354         * cipher.c (cipher_filter): Support for CAST5
9355         * encr-data.c (decode_filter): Ditto.
9356         (decrypt_data): Ditto.
9357         * seskey.c (make_session_key): Ditto.
9358         * seckey-cert.c (check_elg, check_dsa): Ditto,
9359         (protect_secret_key): Ditto.
9360         * pubkey-enc.c (get_session_key): Ditto.
9361         * passphrase.c (hash_passphrase): Ditto.
9363 Thu Apr  2 20:22:35 1998  Werner Koch  (wk@isil.d.shuttle.de)
9365         * gpgd.c: New
9367 Thu Apr  2 10:38:16 1998  Werner Koch  (wk@isil.d.shuttle.de)
9369         * keygen.c (generate_keypair): Add valid_days stuff.
9370         * trustdb.c (check_trust): Add check for valid_days.
9372 Wed Apr  1 16:15:58 1998  Werner Koch  (wk@isil.d.shuttle.de)
9374         * keygen.c (generate_keypair): Addional question whether the
9375         selected large keysize is really needed.
9377 Wed Apr  1 15:56:33 1998  Werner Koch  (wk@isil.d.shuttle.de)
9379         * seckey-cert.c (protect_secret_key): merged protect_xxx to here.
9381 Wed Apr  1 10:34:46 1998  Werner Koch  (wk@isil.d.shuttle.de)
9383         * Makefile.am (g10maint.c): Changed creation rule, so that it works
9384         on FreeBSD (missing CFLAGS).
9386         * parse-packet.c (parse_subkey): Removed.
9388 Thu Mar 19 15:22:36 1998  Werner Koch  (wk@isil.d.shuttle.de)
9390         * ringedit.c (keyring_enum): Fixed problem with reading too
9391         many packets. Add support to read secret keyrings.
9393         * getkey.c (scan_keyring): Removed
9394         (lookup): New to replace scan_keyring.
9395         (scan_secret_keyring): Removed.
9396         (lookup_skc): New.
9398 Wed Mar 18 11:47:34 1998  Werner Koch  (wk@isil.d.shuttle.de)
9400         * ringedit.c (enum_keyblocks): New read mode 11.
9402         * keyid.c (elg_fingerprint_md): New and changed all other functions
9403         to call this if the packet version is 4 or above.
9405 Tue Mar 17 20:46:16 1998  Werner Koch  (wk@isil.d.shuttle.de)
9407         * parse-packet.c (parse_certificate): Add listing support for subkeys.
9409 Tue Mar 17 20:32:22 1998  Werner Koch  (wk@isil.d.shuttle.de)
9411         * armor.c (is_armored): Allow marker packet.
9413 Thu Mar 12 13:36:49 1998  Werner Koch  (wk@isil.d.shuttle.de)
9415         * trustdb.c (check_trust): Checks timestamp of pubkey.
9416         * sig-check. (do_check): Compares timestamps.
9418 Tue Mar 10 17:01:56 1998  Werner Koch  (wk@isil.d.shuttle.de)
9420         * g10.c (main): Add call to init_signals.
9421         * signal.c: New.
9423 Mon Mar  9 12:43:42 1998  Werner Koch  (wk@isil.d.shuttle.de)
9425         * dsa.c: New
9426         * packet.h, free-packet.c, parse-packet.c : Add support for DSA
9427         * sig-check.c, getkey.c, keyid.c, ringedit.c: Ditto.
9428         * seckey-cert.c: Ditto.
9430         * packet.h : Moved .digest_algo of signature packets to outer
9431         structure. Changed all references
9433 Sun Mar  8 13:06:42 1998  Werner Koch  (wk@isil.d.shuttle.de)
9435         * openfile.c : Support for stdout filename "-".
9437         * mainproc.c (check_sig_and_print): Enhanced status output:
9438         * status.c (write_status_text): New.
9440 Fri Mar  6 16:10:54 1998  Werner Koch  (wk@isil.d.shuttle.de)
9442         * kbnode.c (clone_kbnode): Fixed private_flag.
9444         * mainproc.c (list_node): Output of string "Revoked" as user-id.
9446 Fri Mar  6 14:26:39 1998  Werner Koch  (wk@isil.d.shuttle.de)
9448         * g10.c (main): Add userids to "-kv" and cleaned up this stuff.
9450 Fri Mar  6 12:45:58 1998  Werner Koch  (wk@isil.d.shuttle.de)
9452         * g10.c (main): Changed semantics of the list-... commands
9453         and added a new one. Removed option "-d"
9455         * decrypt.c: New.
9457         * trustdb.c (init_trustdb): Autocreate directory only if it ends
9458         in "/.gnupg".
9460 Thu Mar  5 12:12:11 1998  Werner Koch  (wk@isil.d.shuttle.de)
9462         * mainproc.c (do_proc_packets): New. Common part of proc_packet.
9463         (proc_signature_packets): special version to handle signature data.
9464         * verify.c: New.
9465         * g10.c (aVerify): New.
9466         * plaintext.c (hash_datafiles): New.
9467         * compress.c (handle_compressed): Add callback arg, changed caller.
9469 Thu Mar  5 10:20:06 1998  Werner Koch  (wk@isil.d.shuttle.de)
9471         * g10.c: Is nom the common source for gpg and gpgm
9472         * g10maint.c: Removed
9473         * Makefile.am: Add rule to build g10maint.c
9475 Thu Mar  5 08:43:59 1998  Werner Koch  (wk@isil.d.shuttle.de)
9477         * g10.c (main): Changed the way clear text sigs are faked.
9479 Wed Mar  4 19:47:37 1998  Werner Koch  (wk@isil.d.shuttle.de)
9481         * g10maint.c (aMuttKeyList): New
9482         * keylist.c: New.
9484 Wed Mar  4 17:20:33 1998  Werner Koch  (wk@isil.d.shuttle.de)
9486         * getkey.c (get_pubkey_byname): Kludge to allow 0x prefix.
9488 Tue Mar  3 13:46:55 1998  Werner Koch  (wk@isil.d.shuttle.de)
9490         * g10maint.c (main): New option --gen-random.
9492 Tue Mar  3 09:50:08 1998  Werner Koch  (wk@isil.d.shuttle.de)
9494         * g10.c (aDeleteSecretKey): New.
9495         (aEditSig): Add option "--edit-key" as synonym for "--edit-sig".
9496         (aDeleteSecretKey): New.
9497         * getkey.c (seckey_available): New.
9498         * sign.c (delete_key): Enhanced to delete secret keys, changed all
9499         callers.
9501 Mon Mar  2 21:23:48 1998  Werner Koch  (wk@isil.d.shuttle.de)
9503         * pkc_list.c (build_pkc_list): Add interactive input of user ID.
9505 Mon Mar  2 20:54:05 1998  Werner Koch  (wk@isil.d.shuttle.de)
9507         * pkclist.c (do_we_trust_pre): New.
9508         (add_ownertrust): Add message.
9509         * trustdb.c (enum_trust_web): Quick fix.
9511 Mon Mar  2 13:50:53 1998  Werner Koch  (wk@isil.d.shuttle.de)
9513         * g10.c (main): New action aDeleteKey
9514         * sign.c (delete_key): New.
9516 Sun Mar  1 16:38:58 1998  Werner Koch  (wk@isil.d.shuttle.de)
9518         * trustdb.c (do_check): No returns TRUST_UNDEFINED instead of
9519         eof error.
9521 Fri Feb 27 18:14:03 1998  Werner Koch  (wk@isil.d.shuttle.de)
9523         * armor.c (find_header): Removed trailing CR on headers.
9525 Fri Feb 27 18:02:48 1998  Werner Koch  (wk@isil.d.shuttle.de)
9527         * ringedit.c (keyring_search) [MINGW32]: Open and close file here
9528         because rename does not work on open files. Chnaged callers.
9530 Fri Feb 27 16:43:11 1998  Werner Koch  (wk@isil.d.shuttle.de)
9532         * sig-check.c (do_check): Add an md_enable.
9533         * mainproc.c (do_check_sig): Use md_open in case of detached sig
9534         (proc_tree): Take detached sigs into account.
9536 Fri Feb 27 15:22:46 1998  Werner Koch  (wk@isil.d.shuttle.de)
9538         * g10.c (main): Make use of GNUPGHOME envvar.
9539         * g10main.c (main): Ditto.
9541 Wed Feb 25 11:40:04 1998  Werner Koch  (wk@isil.d.shuttle.de)
9543         * plaintext.c (ask_for_detached_datafile): add opt.verbose to
9544         info output.
9546         * openfile.c (open_sigfile): Try also name ending in ".asc"
9548 Wed Feb 25 08:41:00 1998  Werner Koch  (wk@isil.d.shuttle.de)
9550         * keygen.c (generate_keypair): Fixed memory overflow.
9552 Tue Feb 24 15:51:55 1998  Werner Koch  (wk@isil.d.shuttle.de)
9554         * parse-packet.c (parse_certificate): Support for S2K.
9555         * build-packet.c (do_secret_cert): Ditto.
9556         * keygen.c (gen_elg): Ditto.
9557         * seckey-cert.c (check_elg): Ditto
9558         (protect_elg): Ditto.
9559         * sign.c (chnage_passphrase): Ditto.
9560         * passphrase.c (get_passphrase_hash): Support for a salt and
9561         changed all callers.
9562         (make_dek_from_passphrase): Ditto.
9564 Tue Feb 24 12:30:56 1998  Werner Koch  (wk@isil.d.shuttle.de)
9566         * build-packet.c (hash_public_cert): Disabled debug output.
9568 Fri Feb 20 17:22:28 1998  Werner Koch  (wk@isil.d.shuttle.de)
9570         * trustdb.c (init_trustdb) [MINGW32]: Removed 2nd mkdir arg.
9571         (keyring_copy) [MINGW32]: Add a remove prior to the renames.
9573 Wed Feb 18 18:39:02 1998  Werner Koch  (wk@isil.d.shuttle.de)
9575         * Makefile.am (OMIT_DEPENDENCIES): New.
9577         * rsa.c: Replaced log_bug by BUG.
9579 Wed Feb 18 13:35:58 1998  Werner Koch  (wk@isil.d.shuttle.de)
9581         * mainproc.c (do_check_sig): Now uses hash_public_cert.
9582         * parse-packet.c (parse_certificate): Removed hashing.
9583         * packet.h (public_cert): Removed hash variable.
9584         * free-packet.c (copy_public_cert, free_public_cert): Likewise.
9586         * sig-check.c (check_key_signatures): Changed semantics.
9588 Wed Feb 18 12:11:28 1998  Werner Koch  (wk@isil.d.shuttle.de)
9590         * trustdb.c (do_check): Add handling for revocation certificates.
9591         (build_sigrecs): Ditto.
9592         (check_sigs): Ditto.
9594 Wed Feb 18 09:31:04 1998  Werner Koch  (wk@isil.d.shuttle.de)
9596         * armor.c (armor_filter): Add afx->hdrlines.
9597         * revoke.c (gen_revoke): Add comment line.
9598         * dearmor.c (enarmor_file): Ditto.
9600         * sig-check.c (check_key_signature): Add handling for class 0x20.
9601         * mainproc.c : Ditto.
9603 Tue Feb 17 21:24:17 1998  Werner Koch  (wk@isil.d.shuttle.de)
9605         * armor.c : Add header lines "...ARMORED FILE .."
9606         * dearmor.c (enarmor_file): New.
9607         * g10maint.c (main): New option "--enarmor"
9609 Tue Feb 17 19:03:33 1998  Werner Koch  (wk@isil.d.shuttle.de)
9611         * mainproc.c : Changed a lot, because the packets are now stored
9612         a simple linlked list and not anymore in a complicatd tree structure.
9614 Tue Feb 17 10:14:48 1998  Werner Koch  (wk@isil.d.shuttle.de)
9616         * free_packet.c (cmp_public_certs): New.
9617         (cmp_user_ids): New.
9619         * kbnode.c (clone_kbnode): New.
9620         (release_kbnode): Add clone support.
9622         * ringedit.c (find_keyblock_bypkc): New.
9624         * sign.c (remove_keysigs): Self signatures are now skipped,
9625         changed arguments and all callers.
9627         * import.c : Add functionality.
9629 Tue Feb 17 09:31:40 1998  Werner Koch  (wk@isil.d.shuttle.de)
9631         * options.h (homedir): New option.
9632         * g10.c, g10maint.c, getkey.c, keygen.c, trustdb.c (opt.homedir): New.
9634         * trustdb.c (init_trustdb): mkdir for hoem directory
9635         (sign_private_data): Renamed "sig" to "g10.sig"
9637 Mon Feb 16 20:02:03 1998  Werner Koch  (wk@isil.d.shuttle.de)
9639         * kbnode.c (commit_kbnode): New.
9640         (delete_kbnode): removed unused first arg. Changed all Callers.
9642         * ringedit.c (keyblock_resource_name): New.
9643         (get_keyblock_handle): NULL for filename returns default resource.
9645 Mon Feb 16 19:38:48 1998  Werner Koch  (wk@isil.d.shuttle.de)
9647         * sig-check.s (check_key_signature): Now uses the supplied
9648         public key to check the signature and not any more the one
9649         from the getkey.c
9650         (do_check): New.
9651         (check_signature): Most work moved to do_check.
9653 Mon Feb 16 14:48:57 1998  Werner Koch  (wk@isil.d.shuttle.de)
9655         * armor.c (find_header): Fixed another bug.
9657 Mon Feb 16 12:18:34 1998  Werner Koch  (wk@isil.d.shuttle.de)
9659         * getkey.c (scan_keyring): Add handling of compressed keyrings.
9661 Mon Feb 16 10:44:51 1998  Werner Koch  (wk@isil.d.shuttle.de)
9663         * g10.c, g10maint.c (strusage): Rewrote.
9664         (build_list): New
9666 Mon Feb 16 08:58:41 1998  Werner Koch  (wk@isil.d.shuttle.de)
9668         * armor.c (use_armor): New.
9670 Sat Feb 14 14:30:57 1998  Werner Koch  (wk@isil.d.shuttle.de)
9672         * mainproc.c (proc_tree): Sigclass fix.
9674 Sat Feb 14 14:16:33 1998  Werner Koch  (wk@isil.d.shuttle.de)
9676         * armor.c (armor_filter): Changed version and comment string.
9677         * encode.c, sign.c, keygen.c: Changed all comment packet strings.
9679 Sat Feb 14 12:39:24 1998  Werner Koch  (wk@isil.d.shuttle.de)
9681         * g10.c (aGenRevoke): New command.
9682         * revoke.c: New.
9683         * sign.c (make_keysig_packet): Add support for sigclass 0x20.
9685 Fri Feb 13 20:18:14 1998  Werner Koch  (wk@isil.d.shuttle.de)
9687         * ringedit.c (enum_keyblocks, keyring_enum): New.
9689 Fri Feb 13 19:33:40 1998  Werner Koch  (wk@isil.d.shuttle.de)
9691         * export.c: Add functionality.
9693         * keygen.c (generate_keypair): Moved the leading comment behind the
9694         key packet.
9695         * kbnode.c (walk_kbnode): Fixed.
9697         * g10.c (main): listing armored keys now work.
9699 Fri Feb 13 16:17:43 1998  Werner Koch  (wk@isil.d.shuttle.de)
9701         * parse-packet.c (parse_publickey, parse_signature): Fixed calls
9702         to mpi_read used for ELG b.
9704 Fri Feb 13 15:13:23 1998  Werner Koch  (wk@isil.d.shuttle.de)
9706         * g10.c (main): changed formatting of help output.
9708 Thu Feb 12 22:24:42 1998  Werner Koch  (wk@frodo)
9710         * pubkey-enc.c (get_session_key): rewritten
9713  Copyright 1998,1999,2000,2001,2002,2003,2004,2005,
9714            2006,2007 Free Software Foundation, Inc.
9716  This file is free software; as a special exception the author gives
9717  unlimited permission to copy and/or distribute it, with or without
9718  modifications, as long as this notice is preserved.
9720  This file is distributed in the hope that it will be useful, but
9721  WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
9722  implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.