Print verbose instructions in case of a corrupted trustdb.
[gnupg.git] / g10 / ChangeLog
blob55be0eff954c87a9893e51d61b363866693bf5c0
1 2009-07-22  Werner Koch  <wk@g10code.com>
3         * gpg.c (main) <aFixTrustDB>: Show commands to run.
4         * trustdb.c (how_to_fix_the_trustdb): New.
5         * tdbio.c (tdbio_invalid): Show commands to re-create the trustdb.
6         Fixes bug#929.
8 2009-07-20  Werner Koch  <wk@g10code.com>
10         * keygen.c (generate_keypair): Allow Elgamal > 3072 in BOTH mode.
11         Reported by Jeroen Schot.  Fixes bug#1091.
13 2009-07-17  Werner Koch  <wk@g10code.com>
15         * keyring.c (keyring_rebuild_cache): Replace the assert by a
16         proper error message and allow to delete a bad keyblock.
18 2009-07-13  Werner Koch  <wk@g10code.com>
20         * exec.c: Fix function name indentation.
21         (expand_args): Simplify by using membuf functions.
22         (exec_write): Fix memory leak on error.
23         (w32_system): Use DETACHED_PROCESS so that a new console is not
24         created.
26 2009-07-09  Werner Koch  <wk@g10code.com>
28         * card-util.c (card_store_subkey): Do not restrict to 1024 bit keys.
29         Print an error message on write errors.
31         * gpg.c (main): Remove the SHA-1 default from the personal digest
32         list.  This was used in the past as a hack to avoid preferring
33         RMD-160.
35         * keygen.c (keygen_set_std_prefs): Remove RMD-160 from the list.
36         Change order to SHA-256, SHA-1, SHA-384, SHA-512, SHA-224.
37         (gen_dsa): Use a 256 bit Q for 2048 bit P.  Runt to FIPS allowed
38         values in non-expert mode.
40 2009-07-07  Werner Koch  <wk@g10code.com>
42         * gpg.c (set_opt_session_env): New.
43         (main): Allocate opt.session_env.  Use it for oDisplay, oTTYname,
44         oTTYtype and oXauthority.
46         * options.h: Include session_env.h.
47         (opt): Add field SESSION_ENV, remove obsolete fields.
48         
49         * call-agent.c (start_agent): Adjust start_new_gpg_agent for
50         changed args.
52 2009-06-24  Werner Koch  <wk@g10code.com>
54         * keyedit.c (menu_select_key): Remove dead assign to I.
55         (menu_select_uid): Ditto.
56         * keyring.c (keyring_search): Remove dead assign to NAME.
57         * card-util.c (card_edit): Remove useless DID_CHECKPIN.
58         * call-agent.c (unhexify_fpr): Remove dead op on N.
59         * passphrase.c (passphrase_to_dek_ext): Do not deref a NULL PW.
60         * revoke.c (gen_revoke): Remove unused malloc of PK.
61         * parse-packet.c (mpi_read): Init NREAD.
62         Reported by Fabian Keil.
64 2009-06-17  Werner Koch  <wk@g10code.com>
66         * parse-packet.c (parse): Use a casted -1 instead of a 32 bit
67         constant to check for a garbled package.  Fixes bug#1040.
69         * card-util.c (put_data_to_file, read_cert): New. 
70         (card_edit): Add command "readcert".
71         (fetch_url): Allow code also for this gnupg major version 2.
72         * call-agent.c (agent_scd_readcert): New.
74 2009-06-15  Werner Koch  <wk@g10code.com>
76         * keyserver.c (keyserver_search_prompt): No prompt in batch+colons
77         mode.
79 2009-06-09  Werner Koch  <wk@g10code.com>
81         * card-util.c (write_sc_op_status): New.
82         (change_pin): Use it.
83         (change_url, change_login, change_private_do, change_cert)
84         (change_lang, change_sex, change_cafpr, toggle_forcesig)
85         (check_pin_for_key_operation): Ditto.
87 2009-06-05  David Shaw  <dshaw@jabberwocky.com>
89         * gpg.c (main), misc.c (openpgp_cipher_test_algo): Remove Camellia
90         restriction.
92         * misc.c (map_cipher_openpgp_to_gcry), main.h: Add macros for
93         openpgp_cipher_open, openpgp_cipher_get_algo_keylen, and
94         openpgp_cipher_get_algo_blklen to wrap around the corresponding
95         gcry_* functions, but pass the algorithm number through
96         map_cipher_openpgp_to_gcry.  This is needed in case the gcry
97         algorithm number doesn't match the OpenPGP number (c.f. Camellia).
99         * encr-data.c, pubkey-enc.c, mainproc.c, cipher.c, encode.c,
100         seskey.c, passphrase.c, seckey-cert.c: Use new openpgp_cipher_*
101         macros here.
103 2009-06-02  Werner Koch  <wk@g10code.com>
105         * card-util.c (get_manufacturer): Add new manufacturer.
107 2009-05-26  Werner Koch  <wk@g10code.com>
109         * parse-packet.c (mpi_read): Workaround for zero-length MPI bug in
110         libgcrypt<1.5.0.
112 2009-05-22  Werner Koch  <wk@g10code.com>
114         * signal.c (got_fatal_signal): Call new function
115         tty_cleanup_after_signal.
117 2009-05-20  Werner Koch  <wk@g10code.com>
119         * gpg.c (main): Fix --fingerprint/--with-fingerprint command
120         detection.  Fixes bug#1044.
122         * keygen.c (ask_keysize): Allow selection of DSA key size even
123         without --enable-dsa2.
124         (gen_dsa): Remove size check.
126         * keygen.c (ask_key_flags): Fix bug in the translation check.
127         Fixes bug#1056.
128         
129 2009-05-18  Daiki Ueno  <ueno@unixuser.org>  (wk)
131         * encode.c (encode_simple): Tell passphrase_to_dek to cache
132         the passphrase.
133         (setup_symkey): Ditto.
134         * mainproc.c (proc_symkey_enc): Tell passphrase_to_dek to cache
135         the passphrase.
136         (proc_encrypted): Ditto.
137         * passphrase.c (hash_passphrase): Remove arg CREATE.
138         (passphrase_to_dek): New mode 3 and 4 for caching passphrase for
139         symmetric encryption.
141 2009-05-17  Werner Koch  <wk@g10code.com>
143         * keygen.c (ask_algo): Add arg R_SUBKEY_ALGO.  Change return value
144         semantics.  Change presented order of algorithms.  Make RSA+RSA
145         the default.
146         (generate_keypair): Adjust for change.
147         (ask_keysize): Add arg PRIMARY_KEYSIZE for subkey creation.
148         Change callers.
150 2009-05-15  Werner Koch  <wk@g10code.com>
152         * keygen.c (gen_card_key_with_backup): Get the size of the key
153         from the card.
154         * call-agent.h (struct agent_card_info_s): Add field KEY_ATTR.
155         * call-agent.c (learn_status_cb): Support KEY-ATTR.
156         * card-util.c (card_status): Print key attributes.
158 2009-05-15  Marcus Brinkmann  <marcus@g10code.de>
160         * gpg.c (gpgconf_list): Remove dead entry "allow-pka-lookup" (a
161         verify option for a couple of years now).
163 2009-05-14  Werner Koch  <wk@g10code.com>
165         * call-agent.c (agent_get_passphrase): Add arg CHECK.
166         * passphrase.c (passphrase_get): Pass new arg.
168         * keygen.c (gen_card_key_with_backup): Print a status error.
169         (do_generate_keypair): Ditto.
170         (do_ask_passphrase): Add arg MODE.
171         (generate_raw_key): Call with mode 1.
172         * passphrase.c (ask_passphrase): Remove becuase it is not used.
173         (passphrase_to_dek): Factor code out to ...
174         (passphrase_to_dek_ext): .. New.  Add args CUSTDESC and CUSTPROMPT.
176 2009-05-13  Werner Koch  <wk@g10code.com>
178         * keygen.c (parse_expire_string): Base ISO date string at noon.
179         Also allow full ISO timestamp.
181 2009-05-11  Werner Koch  <wk@g10code.com>
183         * parse-packet.c (parse_key): Print the key id in list mode.
185         * skclist.c (build_sk_list): Use log_info for "duplicated entry".
186         Fixes bug#1045.
188         * encode.c (encode_simple): Print empty file warning only in
189         verbose mode.  Closes bug#1039.
190         (encode_crypt): Ditto.
191         * sign.c (write_plaintext_packet): Ditto.
193 2009-05-10  David Shaw  <dshaw@jabberwocky.com>
195         * keyserver.c (keyserver_typemap): gpgkeys_hkp handles hkps as
196         well.  From 1.4.
198 2009-05-06  Werner Koch  <wk@g10code.com>
200         * getkey.c (finish_lookup): Remove dead code.
202         * keyring.c (keyring_get_keyblock): Fix memory leak due to ring
203         trust packets.  Fixes bug#1034.
205 2009-04-03  Werner Koch  <wk@g10code.com>
207         * gpgv.c (main): Open keyrings readonly.
208         * keydb.c (keydb_add_resource): Add readonly flag bit.
209         (keydb_rebuild_caches): Don't act on readonly resources.
211         * keyring.c (keyring_register_filename): Add arg READONLY. 
212         (struct keyring_name): Add field READONLY.
213         (keyring_is_writable): Implement readonly feature.
214         (keyring_update_keyblock): Return GPG_ERR_EACCES for readonly
215         keyrings.
216         (keyring_insert_keyblock, keyring_delete_keyblock): 
218 2009-04-01  Werner Koch  <wk@g10code.com>
220         * gpg.c (main): Properly handle UTF8 usernames with --sign-key and
221         --lsign-key.  From 1.4, David 2008-12-21.
223 2009-03-20  David Shaw  <dshaw@jabberwocky.com>  (wk)
225         * keyring.c (rename_tmp_file): Force a fsync (via iobuf_ioctl) on
226         secret keyring files to be extra safe on filesystems that may not
227         sync data and metadata together (ext4).  Also check return code
228         from the cache invalidation to make sure we're safe over NFS and
229         similar.
231 2009-03-31  Werner Koch  <wk@g10code.com>
233         * passphrase.c (ask_passphrase): Use percent_plus_unescape.
234         * misc.c (unescape_percent_string): Remove.
236         * call-agent.c (unescape_status_string): Chnage to use
237         percent_plus_unescape.
239 2009-03-25  Werner Koch  <wk@g10code.com>
241         * mainproc.c (print_pkenc_list): Use snprintf.
243 2009-03-17  Werner Koch  <wk@g10code.com>
245         * call-agent.c (my_percent_plus_escape): Remove.
246         (agent_get_passphrase): Rewrite using percent_plus_escape.
248 2009-03-17  Daiki Ueno  <ueno@unixuser.org>
250         * passphrase.c (passphrase_get): Add extra arg REPEAT and adjust
251         callers; remove special treatment for MODE==2.
252         (passphrase_to_dek): Move --passphrase-repeat handling to
253         gpg-agent.
255         * call-agent.c (agent_get_passphrase): Add extra arg REPEAT.
256         * call-agent.h: Ditto.
258 2009-03-16  Werner Koch  <wk@g10code.com>
260         * gpg.c (my_strusage): Revert last change.  Systems w/o a gpg1 may,
261         and actually do, install gpg2 as gpg.
262         * gpgv.c (my_strusage): Ditto.
264 2009-03-14  David Shaw  <dshaw@jabberwocky.com>
266         * gpg.c (my_strusage): gpg2 and gpgv2 (not gpg and gpgv).
267         * gpgv.c (my_strusage): Same.
269         * gpgv.c (my_strusage): Fix name of program in "Syntax" line.
271 2009-02-27  Werner Koch  <wk@g10code.com>
273         * call-agent.c (agent_scd_pksign, agent_scd_pkdecrypt): First send
274         the SERIALNO command.
276 2009-02-24  Werner Koch  <wk@g10code.com>
278         * pkglue.c (pk_verify): Return an error for improper DATA instead
279         of calling BUG().
281 2009-02-09  Werner Koch  <wk@g10code.com>
283         * keylist.c (print_capabilities): Take care of cert-only keys.
284         Fixes bug#998.
285         * keyedit.c (show_key_with_all_names_colon): Print the capabilities.
287 2009-01-26  Werner Koch  <wk@g10code.com>
289         * card-util.c (card_status): Detect a Geldkarte. 
291 2009-01-13  Werner Koch  <wk@g10code.com>
293         * call-agent.c (dummy_data_cb): New.
294         (agent_learn): Use it.
295         * card-util.c (card_status): Print type of non-OpenPGP card.
296         * call-agent.h (agent_card_info_s): Add field APPTYPE.
298 2009-01-12  Werner Koch  <wk@g10code.com>
300         * getkey.c (finish_lookup): Take care of keys with a zero
301         timestamp.  Reported by Peter Gutmann.
303 2009-01-08  Werner Koch  <wk@g10code.com>
305         * misc.c (has_invalid_email_chars): Let non-ascii pass through.
307         * cpr.c [USE_SHM_COPROCESSING]: Remove this code.
309 2008-12-12  Werner Koch  <wk@g10code.com>
311         * passphrase.c (passphrase_get): Write a STATUS_ERROR.
312         * cpr.c (write_status_error): New.
314         * Makefile.am (common_source): Add rmd160.h.
316 2008-12-11  Werner Koch  <wk@g10code.com>
318         * sig-check.c (signature_check2): Change algorithm used to compute
319         the SIG_ID.
320         (check_revocation_keys): Close message digest.
322         * rmd160.c, rmd160.h: New.  Based on code from GnuPG-1.4.
323         * t-rmd160.c: New.
324         * Makefile.am: Add support to run tests.
325         * keyid.c (namehash_from_uid): Use rmd160_hash_buffer.
327 2008-12-10  Werner Koch  <wk@g10code.com>
329         * trustdb.h (NAMEHASH_HASH): Remove unsued constant.
331         * gpg.c (print_mds): Print RMD160 only is enabled.
333         * keygen.c (keygen_set_std_prefs): Include RMD160 only if
334         available.
336 2008-12-09  Werner Koch  <wk@g10code.com>
338         * gpg.c (main) [IS_DEVELOPMENT_VERSION]: Fix strusage use.
340 2008-12-09  Werner Koch  <wk@g10code.com>
342         * keygen.c (proc_parameter_file): Check that key and subkey usages
343         are allowed.
345 2008-12-09  David Shaw  <dshaw@jabberwocky.com>  (wk)
347         * trustdb.c (validate_one_keyblock): Fix the trust signature
348         calculations so that we lower the trust depth of signatures to fit
349         within the current chain, rather than discarding any signature
350         that does not fit within the trust depth.
352 2008-12-09  Werner Koch  <wk@g10code.com>
354         * keyserver.c (show_prompt): Flush stdout.
356         * gpg.c (open_info_file): Add arg BINARY and adjust callers.
358         * gpg.c (main): Call i18n_init before init_common_subsystems.
359         * gpgv.c (main): Ditto.
361         * keylist.c (set_attrib_fd): Do not close ATTRIB_FP if it is the
362         log stream. 
363         (set_attrib_fd) [W32]: Set to binary mode.
364         (dump_attribs): Flush the stream after writing.
366 2008-12-05  Werner Koch  <wk@g10code.com>
368         * call-agent.c (percent_plus_escape): Rename to
369         my_percent_plus_escape and also escape the percent character.
370         Change all callers.
372 2008-11-18  Werner Koch  <wk@g10code.com>
374         * gpg.c (build_lib_list): Remove.
375         (make_libversion): New.
376         (my_strusage): Use it.
377         * gpgv.c (make_libversion): New.
378         (my_strusage): Print libgcrypt version.
380 2008-11-13  Werner Koch  <wk@g10code.com>
382         * gpgv.c: Use new ARGPARSE macros and re-indent.
384 2008-11-11  Werner Koch  <wk@g10code.com>
386         * gpg.c (opts): Use new ARGPARSE macros for clarity.
388 2008-10-24  Werner Koch  <wk@g10code.com>
390         * keyedit.c (change_passphrase): Clear passphrase cache.
392 2008-10-20  Werner Koch  <wk@g10code.com>
394         * gpgv.c: Mark all args of the stub fucntions as unused.
396         * card-util.c (generate_card_keys): Remove unused arg SERIALNO and
397         adjust caller.
398         
399         * build-packet.c (write_sign_packet_header): Mark unused arg.
400         * gpg.c (gpg_init_default_ctrl, gpg_deinit_default_ctrl): Ditto.
401         * getkey.c (skip_unusable): Ditto.
402         (write_version): Ditto.
403         * keydb.c (keydb_locate_writable): Ditto.
404         * keyring.c (update_offset_hash_table): Ditto.
405         (keyring_lock): Ditto.
406         * misc.c (register_secured_file): Ditto.
407         (unregister_secured_file): Ditto.
408         (is_secured_file): Ditto.
409         (is_secured_filename): Ditto.
410         * parse-packet.c (parse_marker): Ditto.
411         (parse_key, parse_attribute): Ditto.
412         (parse_trust, parse_compressed, parse_mdc, parse_gpg_control): Ditto.
413         * cpr.c (progress_cb): Ditto.
414         * passphrase.c (passphrase_clear_cache): Ditto.
415         (ask_passphrase): Ditto.
416         * keyedit.c (keyedit_completion): Ditto.
417         * import.c (import_revoke_cert): Ditto.
418         (chk_self_sigs, delete_inv_parts, append_uid): Ditto.
419         (merge_sigs, merge_keysigs, append_key): Ditto.
420         * trustdb.c (list_trust_path): Ditto.
421         (enum_cert_paths, enum_cert_paths_print): Ditto.
422         * tdbdump.c (list_trustdb): Ditto.
423         * keygen.c (keygen_upd_std_prefs): Ditto.
424         (genhelp_factors): Ditto.
425         * call-agent.c (agent_scd_setattr): Ditto.
426         (agent_scd_writekey, agent_scd_change_pin, agent_scd_genkey): Ditto.
427         (agent_clear_pin_cache): Ditto.
429         * server.c (option_handler): Mark non yet used arg.
430         (input_notify, output_notify): Ditto.
431         (cmd_recipient, cmd_signer, cmd_encrypt, cmd_decrypt, cmd_verify) 
432         (cmd_sign, cmd_import, cmd_export, cmd_delkeys, do_listkeys) 
433         (cmd_genkey): Ditto.
434         * verify.c (gpg_verify): Ditto.
436 2008-10-17  Werner Koch  <wk@g10code.com>
438         * main.h (idea_cipher_warn): Use do while construct in place of an
439         empty definition.
441 2008-10-03  David Shaw  <dshaw@jabberwocky.com>
443         * main.h, mainproc.c (check_sig_and_print)
444         * keylist.c (list_keyblock_print)
445         * pkclist.c (do_edit_ownertrust)
446         * keyedit.c (menu_showphoto)
447         * photoid.c (generate_photo_id, show_photos)
448         * misc.c (pct_expando): Add %v and %V expandos so
449          that displaying photo IDs can show the attribute validity
450          tag (%v) and string (%V).  Originally by Daniel Gillmor.
452 2008-09-29  Werner Koch  <wk@g10code.com>
454         * gpg.c (main): Remove -sat kludge.  Note that we printed a
455         warning for two years.
457         * seskey.c (encode_md_value): Remove extra gcry_md_test_algo since
458         it is not needed with Libgcrypt 1.4.
459         * skclist.c (random_is_faked): Simplify.
460         * sign.c (match_dsa_hash): Remove runtime check for SHA224.
461         * gpg.c (print_mds): Use GCRY_MD_SHA224 constant.
463 2008-09-25  David Shaw  <dshaw@jabberwocky.com>
465         * keyedit.c (keyedit_menu): Fix bug where a modified keyring loses
466         its modified status after a "clean" or "minimize" that doesn't
467         need to do anything.
469 2008-09-25  Werner Koch  <wk@g10code.com>
471         * parse-packet.c (parse): Remove special treatment for compressed
472         new style packets.  Fixes bug#931.
473         
474         * card-util.c (change_pin): Support setting of the reset code.
476 2008-09-24  Werner Koch  <wk@g10code.com>
478         * call-agent.h (struct agent_card_info_s): Add field IS_V2.
479         * call-agent.c (learn_status_cb): That that field.
481         * card-util.c (change_pin): Rename first arg to UNBLOCK_v2 and use
482         it this way.
483         (card_edit): Add new command UNBLOCK.
485 2008-09-23  David Shaw  <dshaw@jabberwocky.com>
487         * pkclist.c (select_algo_from_prefs): Redo function to rank prefs
488         and pick a consensus winner across all keys.
490 2008-09-16  Werner Koch  <wk@g10code.com>
492         * card-util.c (fpr_is_ff): New.
493         (card_status): Do not print general key info for an all-ff fpr.
494         (change_login, change_private_do): Factor common code out to ...
495         (get_data_from_file): .. new.
496         (change_cert): New.
497         (card_edit): Add command "writecert".
498         * call-agent.c (writecert_parm_s): New.
499         (inq_writecert_parms, agent_scd_writecert): New.
501 2008-09-04  David Shaw  <dshaw@jabberwocky.com>
503         * keyserver.c (keyserver_import_cert): Allow keyserver URLs in
504         addition to full URLs in CERT records.
506 2008-08-11  Werner Koch  <wk@g10code.com>
508         * keygen.c (ask_expire_interval): Check for time overflow of an
509         u32.  Fixes bug #947.
511 2008-08-01  Werner Koch  <wk@g10code.com>
513         * tdbio.c (open_db) [!EROFS]: Move closing parens out of the
514         ifdef.  Reported by Ken Takusagawa.
516 2008-06-25  Marcus Brinkmann  <marcus@g10code.de>
518         * gpg.c (enum cmd_and_opt_values): Remove option
519         oEnableW32HandleTranslation.
520         (opts): Remove option --enable-w32-handle-translation.
521         (main): Remove variable w32_handle_translation.
523 2008-06-19  Werner Koch  <wk@g10code.com>
525         * gpg.c (gpgconf_list): Add "group".
527 2008-06-18  Marcus Brinkmann  <marcus@g10code.de>
529         * gpg.c (enum cmd_and_opt_values): New option
530         oEnableW32HandleTranslation.
531         (opts): New option --enable-w32-handle-translation.
532         (main): New variable w32_handle_translation to keep track of
533         option.
535 2008-06-16  Werner Koch  <wk@g10code.com>
537         * keygen.c (output_control_s): Add ASK_PASSPHRASE.
538         (read_parameter_file): Add commands %ask-passphrase and
539         %no-ask-passphrase.
541 2008-06-11  Werner Koch  <wk@g10code.com>
543         * gpg.c: Make --fixed-list-mode a dummy.
544         * options.h (struct): Removed FIXED_LIST_MODE.
545         * keyid.c (colon_strtime, colon_datestr_from_pk) 
546         (colon_datestr_from_sk, colon_datestr_from_sig) 
547         (colon_expirestr_from_sig): Remove fixed_list_mode case.
548         * keylist.c (list_keyblock_colon): Ditto.  Remove all now unsed
549         code and reindent.
551 2008-05-31  Werner Koch  <wk@g10code.com>
553         * keygen.c (ask_user_id): Change the string printed as header of
554         the user ID generation.  Use code to not break existing
555         translations.  Suggested by Eric Tetz.
557 2008-05-08  Werner Koch  <wk@g10code.com>
559         * sig-check.c (do_check_messages): Print a revocation diagnostic
560         in verbose mode.
562 2008-05-07  Werner Koch  <wk@g10code.com>
564         * gpg.c: New command --locate-keys.  New options --with-sig-list
565         and --with-sig-check.
566         * keylist.c (locate_one): New.
567         (public_key_list): Add arg LOCATE_MODE and use locate_one.
568         * getkey.c (get_pubkey_byname): Fix nodefault case.  Add option
569         RETCTX, change all callers.
570         (struct getkey_ctx_s): Add field extra_ptr;
571         (get_pubkey_end): Free it.
573 2008-04-18  Werner Koch  <wk@g10code.com>
575         * misc.c (map_cipher_openpgp_to_gcry, map_cipher_gcry_to_openpgp) 
576         (openpgp_cipher_test_algo): Add camellia-192.
577         (openpgp_cipher_blocklen): New.
578         * parse-packet.c (parse_key): Use new function here.
580 2008-04-15  David Shaw  <dshaw@jabberwocky.com>
582         * getkey.c (merge_selfsigs_subkey): If there are multiple 0x19
583         backsigs, take the most recent one.
585 2008-04-08  Werner Koch  <wk@g10code.com>
587         * options.h (opt): Add AKL_NODEFAULT and AKL_LOCAL.
588         * getkey.c (parse_auto_key_locate): Parse them.
589         (get_pubkey_byname): Implement them.  Add arg NO_AKL and use that
590         in all cases where a local key is expected.
591         * import.c (import_one): Fill in the fingerprint in all cases.
592         Use log_get_stream.
593         * keyserver.c (keyserver_import_pka): Set FPR to NULL on error.
594         Return G10ERR_NO_PUBKEY if no PKA info is available or no key URI
595         is given in the PKA record..
596         (keyserver_import_cert): Return G10ERR_NO_PUBKEY if a CERT record
597         was not found.
599         * getkey.c (get_pubkey_byname): Release FPR in the error case.
600         Continue with next mechanism on error.  Better diagnostics.
602 2008-04-07  Werner Koch  <wk@g10code.com>
604         * keyserver.c (parse_keyserver_uri): Allow a default host name.
606         * getkey.c (get_pubkey_byname): Replace sprintf by bin2hex.
608 2008-04-02  Werner Koch  <wk@g10code.com>
610         * gpg.c (main): Do not allow DSA2 with a too old Libgcrypt.
612 2008-03-26  Werner Koch  <wk@g10code.com>
614         * tdbio.c (lookup_hashtable): Make cmp args const.
615         (cmp_trec_fpr): Make FPR const.
616         (tdbio_search_trust_byfpr): Remove cast.
618 2008-03-25  Werner Koch  <wk@g10code.com>
620         * keyserver.c (parse_keyrec): Take care of char defaulting to
621         unsigned when using hextobyte.
623 2008-03-25  David Shaw  <dshaw@jabberwocky.com>  (wk)
625         * import.c (collapse_uids): Fix bug 894: possible memory
626         corruption around deduplication of user IDs.
628 2008-03-25  Werner Koch  <wk@g10code.com>
630         * parse-packet.c (parse_key): Parse a secret key encrypted with
631         Camellia.
633         * options.skel: Make the default keyserver keys.gnupg.net.
635 2008-03-18  Werner Koch  <wk@g10code.com>
637         * seckey-cert.c (do_check): Use GCRYMPI_FMT_PGP for v3 keys.
638         Reported by Petr Cerny.
640 2008-03-13  Werner Koch  <wk@g10code.com>
642         * passphrase.c (PROMPTSTRING): Change string to me more similar to
643         the X.509 prompt.
645 2008-02-26  Werner Koch  <wk@g10code.com>
647         * getkey.c (get_pubkey_byname): Fix comment.
649 2008-02-14  Werner Koch  <wk@g10code.com>
651         * call-agent.c (default_inq_cb): New.
652         (agent_learn, agent_scd_getattr, agent_scd_pksign) 
653         (agent_scd_pkdecrypt, agent_scd_change_pin, agent_scd_checkpin) 
654         (agent_get_passphrase, agent_clear_passphrase): Use new callback.
655         (inq_writekey_parms): Fall back to the new callback for other
656         inquiries. 
657         (start_agent): Tell agent that we accept pinentry notifications.
659 2008-02-11  Werner Koch  <wk@g10code.com>
661         * server.c (cmd_getinfo): New. 
662         (register_commands): Register GETINFO.
664 2008-02-09  Marcus Brinkmann  <marcus@g10code.de>
666         * gpg.c (main): New variable default_configname.  Use it if
667         save_configname is NULL (can happen if default configfile does
668         not exist).  Move default configname determination to ...
669         (get_default_configname): ... this new function.
671 2008-01-30  Werner Koch  <wk@g10code.com>
673         * keydb.c (maybe_create_keyring): Fixed last change.
674         * tdbio.c (tdbio_set_dbname): Also test for forward slash.
676 2008-01-29  Werner Koch  <wk@g10code.com>
678         * keydb.c (maybe_create_keyring): Take care of a missing slash.
679         (maybe_create_keyring) [W32]: Also test for forward slash.
681 2008-01-26  Werner Koch  <wk@g10code.com>
683         * card-util.c (get_manufacturer): Add vendor 0004.
685 2008-01-02  Werner Koch  <wk@g10code.com>
687         * gpg.c: Add --logger-file as an alias for log-file.
689 2007-12-14  Werner Koch  <wk@g10code.com>
691         * gpg.c (main): Set opt.no_homedir_creation during the first option
692         parsing pass.
694 2007-12-12  Werner Koch  <wk@g10code.com>
696         * misc.c (print_pubkey_algo_note): Print a warning if a type 20
697         key is used.
698         (openpgp_pk_test_algo, openpgp_pk_test_algo2) 
699         (openpgp_pk_algo_usage): Allow type 20 keys only in rfc2440 mode.
701 2007-12-12  David Shaw  <dshaw@jabberwocky.com>  (wk)
703         * trustdb.c (sanitize_regexp): New.  Protect against dangerous
704         regexps (malloc bombs) by force-commenting any characters aside
705         from the ones we explicitly want.
706         (check_regexp): Use it here before passing the regexp to
707         regcomp().
709 2007-12-12  Werner Koch  <wk@g10code.com>
711         * misc.c (map_cipher_openpgp_to_gcry): New.  Used to map Camellia
712         algorithms to Gcrypt.
713         (openpgp_cipher_test_algo): Call new map function.  Replace
714         all remaining calls to gcry_cipher_test_algo by a call to this.
715         (openpgp_cipher_algo_name): New.  Replace all remaining calls to
716         gcry_cipher_algo_name by a call to this.
717         (map_cipher_gcry_to_openpgp): New.
718         (string_to_cipher_algo): Use it.
719         * gpg.c (main): Print a warning if Camellia support is build in.
720         
721         * gpg.c (print_algo_names): New.  From the 1.4 branch by David.
722         (list_config): Use it here for the "ciphername" and "digestname"
723         config items so we can get a script-parseable list of the names.
725         * parse-packet.c (parse_onepass_sig): Sigclass is hex, so include
726         the 0x.
728         * sign.c (match_dsa_hash): Remove conditional builds dending on
729         USE_SHAxxx.  We don't need this becuase it can be expected that
730         libgcrypt provides it.  However we need to runtime test for SHA244
731         becuase that is only available with libgcrypt 2.4.
733 2007-12-11  Werner Koch  <wk@g10code.com>
735         * mainproc.c (proc_pubkey_enc): Allow type 20 Elgamal key for
736         decryption.
738 2007-12-10  Werner Koch  <wk@g10code.com>
740         * import.c (auto_create_card_key_stub): Do not clear the entire
741         fingerprint.  This finally makes the stub creation work.  My past
742         tests seemed to work because there was a key with a all zero
743         fingerprint available (Elgamal signing keys).
745 2007-12-08  Werner Koch  <wk@g10code.com>
747         * misc.c (openpgp_pk_algo_usage): Allow Elgamal type 20 for
748         encryption.
750 2007-12-04  Werner Koch  <wk@g10code.com>
752         * helptext.c (get_help_from_file): New.
753         (display_online_help): Use it to geting the help through a file.
754         (helptexts): Remove.
756 2007-12-03  Werner Koch  <wk@g10code.com>
758         * keygen.c (ask_key_flags): Add a translation remark and implement
759         a workaround.
761         * gpg.c (reopen_std): Moved to ../common and renamed to
762         gnupg_reopen_std.
763         
764         * gpg.c: Remove second inclusion of fcntl.h.
766 2007-11-19  Werner Koch  <wk@g10code.com>
768         * keyedit.c (keyedit_menu): String grammar fix.
770 2007-11-15  Werner Koch  <wk@g10code.com>
772         * gpg.c (main): New option --xauthority.
773         * call-agent.c (start_agent): Adjust changed start_new_gpg_agent.
775 2007-11-12  Werner Koch  <wk@g10code.com>
777         * cpr.c (do_get_from_fd): s/bool/getbool/ to overcome problems
778         with Mac OS 10.5 which seems to include stdbool.h silently.
780 2007-11-07  Werner Koch  <wk@g10code.com>
782         Replace all includes of errors.h by status.h (found in common/).
784         * status.h: Remove.
785         * status.h: Move prototypes to main.h.
786         * status.c:  Rename to ..
787         * cpr.c: .. this.
788         (get_status_string): Remove.  We take this now from common/.
790 2007-10-25  David Shaw  <dshaw@jabberwocky.com>  (wk)
792         From 1.4 (October):
794         * gpg.c (main): Add --require-cross-certification to
795         --openpgp/--rfc4880 mode.
797         * gpg.c (main): Disable --rfc2440-text and --force-v3-sigs by
798         default.  Enable --require-cross-certification by default.
799         --openpgp (--rfc4880) is the same as --rfc2440 except with
800         "--enable-dsa2 --no-rfc2440-text --escape-from-lines".
802         * misc.c (compliance_option_string, compliance_failure): Minor
803         cleanup.
805         * armor.c (is_armor_header): Comment about 4880.
807         * options.h, gpg.c (main): Add --rfc4880, and make --openpgp an
808         alias to it.  --rfc2440 now stands alone.  For now, use the old
809         2440 defaults for 4880.
810         * misc.c (compliance_option_string): Ditto.
811         
812         * keyedit.c (keyedit_menu): Use compliance_option_string() instead
813         of printing the compliance modes here.
815 2007-10-25  David Shaw  <dshaw@jabberwocky.com>  (wk)
817         From 1.4 (September):
819         * import.c (collapse_uids): Significant speedup for de-duping user
820         IDs.
822 2007-10-25  David Shaw  <dshaw@jabberwocky.com>  (wk)
824         From 1.4 (July):
825         
826         * armor.c (parse_header_line): Improve test so that the header
827         test only allows "Hash" in the signed data section.
829         * armor.c (is_armor_tag): New.  Detect if an armor header matches
830         2440bis-21.
831         (parse_header_line): Call it here, as bis-21 requires warning the
832         user (but continuing to process the message) when seeing an
833         unknown header.
835         * encode.c (encode_crypt): Missed one call to
836         setup_plaintext_name().  This is bug#809.
838         * sign.c (mk_notation_policy_etc): Expect all sigs that this is
839         called for are >=v4.
840         (write_signature_packets, make_keysig_packet): Only call it for
841         >=v4 sigs.  This allows --force-v3-sigs and --force-v4-certs to
842         enable or disable notations, policies, and keyserver URLs.  This
843         is bug#800.
845 2007-10-19  Werner Koch  <wk@g10code.com>
847         * passphrase.c (passphrase_get): Use new utf8 switching fucntions.
849 2007-09-14  Werner Koch  <wk@g10code.com>
851         * gpg.c (build_lib_list): New.
852         (my_strusage): Print lib info.
854 2007-08-27  Werner Koch  <wk@g10code.com>
856         * trustdb.c (USE_INTERNAL_REGEX): Remove support.
858 2007-08-24  Werner Koch  <wk@g10code.com>
860         * keyring.c (keyring_register_filename): Use same_file_p().
862 2007-08-21  Werner Koch  <wk@g10code.com>
864         * misc.c (openpgp_md_test_algo): Remove rfc2440bis hash algorithms.
865         (openpgp_cipher_test_algo): Likewise for algos 5 and 6.
867 2007-08-02  Werner Koch  <wk@g10code.com>
869         * gpg.c: Include gc-opt-flags.h and remove their definition here.
871 2007-07-17  Werner Koch  <wk@g10code.com>
873         * gpg.c (gpgconf_list): Declare --encrypt-to and --default-key.
875         * card-util.c (get_manufacturer): Add the unmanaged S/N range.
877 2007-07-12  Werner Koch  <wk@g10code.com>
879         * gpg.c (main): Use translate_sys2libc_fd_int when passing an int
880         value.
881         * gpgv.c (main): Ditto.
883 2007-07-05  Werner Koch  <wk@g10code.com>
885         * card-util.c (card_generate_subkey, card_store_subkey): Enable
886         the code also for GnuPG-2.
888         * keygen.c (make_backsig): Add arg TIMESTAMP.
889         (write_keybinding): Add arg TIMESTAMP, pass it to make_backsig.
890         (write_direct_sig, write_selfsigs): Add arg TIMESTAMP.
891         (gen_elg, gen_dsa, gen_rsa): Add arg TIMESTAMP.
892         (do_create): Ditto.
893         (do_generate_keypair): Use the same timestamp for key creation
894         time and all key signatures. Return an error if write_direct_sig
895         for the secret key fails.
896         (generate_subkeypair): Ditto.
897         (gen_card_key): New arg TIMESTAMP.
898         (generate_card_subkeypair): Pass current time to gen_card_key.
899         (gen_card_key_with_backup): New arg TIMESTAMP.
900         (read_parameter_file): Add option Creation-Date.
901         (parse_creation_string): New.
902         (do_generate_keypair): Use the Creation-Date if available.
903         (save_unprotected_key_to_card): Use P for P and not D.
904         * call-agent.c (agent_scd_genkey): Add arg CREATETIME.
905         * keyedit.c (menu_backsign): Use the same timestamp for all backsigs.
907 2007-06-26  Werner Koch  <wk@g10code.com>
909         * openfile.c (try_make_homedir): Support W32; use standard_homedir.
911 2007-06-25  Werner Koch  <wk@g10code.com>
913         * gpg.c, gpgv.c: Include sysutils.h.
914         (main): Replace iobuf_translate_file_handle by
915         translate_sys2libc_fd.
916         
918 2007-06-21  Werner Koch  <wk@g10code.com>
920         * main.h: Include util.h.
922         * call-agent.c (start_agent): Factored almost all code out to
923         ../common/asshelp.c.
925         * gpg.h (ctrl_t): Remove.  It is now declared in ../common/util.h.
927 2007-06-20  Werner Koch  <wk@g10code.com>
929         * misc.c (setsysinfo, trap_unaligned): Remove.  It is also in
930         common/sysutils.c.
931         (disable_core_dumps, get_session_marker): 
933         * sign.c (sleep): Remove sleep wrapper.
935 2007-06-18  Marcus Brinkmann  <marcus@g10code.de>
937         * gpg.c (gpgconf_list): Percent escape output of --gpgconf-list.
939 2007-06-14  Werner Koch  <wk@g10code.com>
941         * call-agent.c (start_agent): Use gnupg_module_name.
943 2007-06-12  Werner Koch  <wk@g10code.com>
945         * openfile.c (copy_options_file): Use gnupg_datadir.
946         * misc.c (get_libexecdir): Remove.  Changed all callers to use
947         gnupg_libexecdir.
948         * gpg.c (check_permissions): Use gnupg_libdir.
950         * gpg.c (main): Replace some calls by init_common_subsystems.
951         * gpgv.c (main): Ditto.
953 2007-06-11  Werner Koch  <wk@g10code.com>
955         * Makefile.am (needed_libs): Use libcommonstd macro.
957         * gpgv.c (main) [W32]: Call pth_init.
958         * gpg.c (main) [W32]: Call pth_init.
960 2007-06-08  Werner Koch  <wk@g10code.com>
962         * Makefile.am (gpg2_LDADD): Syntax fix.
964 2007-06-06  Werner Koch  <wk@g10code.com>
966         * passphrase.c (passphrase_get) [!ENABLE_NLS]: Do not define
967         orig_codeset.
969         * Makefile.am (gpgv2_LDADD, gpg2_LDADD): Include LDADD before
970         libgcrypt.
972         * plaintext.c (handle_plaintext): Replace eof by eof_seen as W32's
973         io.h has a symbol with that name.
975         * misc.c: Do not include dynload.h.
976         (w32_shgetfolderpath): Remove. It is now in common/homedir.c.
978         * gpgv.c (i18n_init): Remove.
979         * gpg.c (i18n_init): Remove.
980         (main): Make --load-extension a dummy
982 2007-05-19  Marcus Brinkmann  <marcus@g10code.de>
984         * passphrase.c (passphrase_get): Use PACKAGE_GT, not PACKAGE.
986         * passphrase.c (passphrase_get): Free ORIG_CODESET on error.
988 2007-05-16  Werner Koch  <wk@g10code.com>
990         * sig-check.c (check_backsig): Check the digest algorithm before
991         using it.  Fixed bug 797.
993 2007-05-09  Werner Koch  <wk@g10code.com>
995         * openfile.c (overwrite_filep, open_outfile) [W32]: Need to use
996         just "nul".  Though, I am pretty sure that some MSDOS versions
997         grok the extra /dev/.
999 2007-05-07  Werner Koch  <wk@g10code.com>
1001         * openfile.c (open_outfile, overwrite_filep) [W32]: Use "/dev/nul".
1003 2007-05-02  David Shaw  <dshaw@jabberwocky.com>
1005         * packet.h, mainproc.c (reset_literals_seen): New function to
1006         reset the literals count.
1008         * verify.c (verify_one_file), decrypt.c (decrypt_messages): Call
1009         it here so we allow multiple literals in --multifile mode (in
1010         different files - not concatenated together).
1012 2007-04-26  Marcus Brinkmann  <marcus@g10code.de>
1014         * passphrase.c (passphrase_to_dek): Write missing passphrase
1015         status message in case of cancellation.
1017 2007-04-16  Werner Koch  <wk@g10code.com>
1019         * build-packet.c (mpi_write): Made buffer a bit larger.  Reported
1020         by Alexander Feigl.
1022 2007-04-13  Werner Koch  <wk@g10code.com>
1024         * call-agent.c (start_agent): Don't use log_error when using the
1025         fallback hack to start the agent.  This is bug 782.
1027 2007-04-05  David Shaw  <dshaw@jabberwocky.com>
1029         From STABLE-BRANCH-1-4
1031         * parse-packet.c (parse_marker): New.  Enforce that the marker
1032         contains 'P', 'G', 'P', and nothing but.
1033         (parse): Call it here.
1034         (skip_packet): No longer need to handle marker packets here.
1036 2007-03-14  David Shaw  <dshaw@jabberwocky.com>
1038         From STABLE-BRANCH-1-4
1040         * keyserver.c: Windows Vista doesn't grok X_OK and so fails
1041         access() tests.  Previous versions interpreted X_OK as F_OK
1042         anyway, so we'll just use F_OK directly.
1044 2007-03-09  David Shaw  <dshaw@jabberwocky.com>
1046         From STABLE-BRANCH-1-4
1048         * parse-packet.c (parse_signature): It's hex.
1050         * getkey.c (merge_selfsigs_subkey): Avoid listing the contents of
1051         a backsig when list mode is on.  Noted by Timo Schulz.
1053 2007-03-08  Werner Koch  <wk@g10code.com>
1055         * plaintext.c (handle_plaintext): Add two extra fflush for stdout.
1057 2007-03-08  David Shaw  <dshaw@jabberwocky.com>  (wk)
1059         * keyedit.c (keyedit_menu): If we modify the keyblock (via
1060         fix_keyblock() or collapse_uids()) make sure we reprocess the
1061         keyblock so the flags are correct.  Noted by Robin H. Johnson.
1063         * getkey.c (fixup_uidnode): Properly clear flags that don't apply
1064         to us (revoked, expired) so that we can reprocess a uid.
1066 2007-03-05  Werner Koch  <wk@g10code.com>
1068         Converted this file to UTF-8.
1069         
1070         Ported David and my multiple messages changes from 1.4.7.
1072         * options.h, gpg.c (main), mainproc.c (check_sig_and_print): Allow
1073         multiple sig verification again as this is protected via the
1074         multiple-messages code.  New option --allow-multiple-messages and
1075         --no variant.
1076         * status.h (STATUS_ERROR): New status code.
1077         * status.c (get_status_string): Ditto.
1078         * mainproc.c (proc_plaintext): Emit it if multiple messages are
1079         detected. Error out if more than one plaintext packet is
1080         encountered.    
1081         * mainproc.c (literals_seen): New.
1083 2007-02-26  Werner Koch  <wk@g10code.com>
1085         * gpg.c (main): Add verify option show-primary-uid-only.
1086         * options.h (VERIFY_SHOW_PRIMARY_UID_ONLY): New.
1087         * mainproc.c (check_sig_and_print): Implement it.
1089 2007-02-22  Werner Koch  <wk@g10code.com>
1091         * encr-data.c (decrypt_data): Correctly test for unknown algorithm.
1092         * import.c (check_prefs): Ditto.
1093         * keyedit.c (show_prefs): Ditto.
1094         * mainproc.c (proc_symkey_enc): Ditto.
1096 2007-02-06  Werner Koch  <wk@g10code.com>
1098         * export.c (do_export_stream): Allow reset-subkey-passwd along
1099         with sexp-format.
1101 2007-02-04  Werner Koch  <wk@g10code.com>
1103         * parse-packet.c (parse_signature): Limit bytes read for an
1104         unknown alogorithm.  Fixes Debian bug#402592.
1106 2007-01-31  Werner Koch  <wk@g10code.com>
1108         * verify.c (verify_signatures): Do no dereference a NULL afx.
1110         * passphrase.c (passphrase_get): Set the cancel flag on all error
1111         from the agent.  Fixes a bug reported by Tom Duerbusch.
1113 2007-01-30  Werner Koch  <wk@g10code.com>
1115         * status.c (write_status_begin_signing): New.
1116         * sign.c (sign_file, sign_symencrypt_file): Call it.
1117         * textfilter.c (copy_clearsig_text): Call it.
1119         * call-agent.c (agent_scd_pksign): Pass --hash-rmd160 to SCD if
1120         required.
1122         * gpg.c (main): Let --no-use-agent and --gpg-agent-info print a
1123         warning.  
1124         * misc.c (obsolete_option): New.
1126 2007-01-29  Werner Koch  <wk@g10code.com>
1128         * pkclist.c (do_we_trust_pre): Issue a user-id-hint status code. 
1130 2007-01-15  Werner Koch  <wk@g10code.com>
1132         * parse-packet.c (read_protected_v3_mpi): Make sure to stop
1133         reading even for corrupted packets.
1134         * keygen.c (generate_user_id): Need to allocate one byte more.
1135         Reported by Felix von Leitner.
1137 2006-12-21  Werner Koch  <wk@g10code.com>
1139         * gpg.c (main): New command --server.
1140         * gpg.h (struct server_control_s, ctrl_t): New.
1141         * server.c: New.
1142         * verify.c (gpg_verify): New.
1143         * mainproc.c (mainproc_context): Made SIGNED_DATA a structure.
1144         (proc_signature_packets_by_fd): New.
1145         (proc_compressed_cb): Divert depending on SIGNED_DATA.
1146         * plaintext.c (hash_datafile_by_fd): New.
1147         * mainproc.c (proc_tree): Use it here.
1149         * verify.c (verify_signatures): Init AFX only when needed.
1150         Don't leak a context on error.
1151         (verify_one_file): Don't leak a context on error.
1153 2006-12-07  Werner Koch  <wk@g10code.com>
1155         * openfile.c (copy_options_file): Use log_info instead of
1156         log_error to avoid an error return of gpg due to a missing
1157         skeleton file.
1159 2006-12-07  David Shaw  <dshaw@jabberwocky.com>
1161         * Makefile.am: Link to iconv for jnlib dependency.
1163 2006-12-05  Werner Koch  <wk@g10code.com>
1165         * passphrase.c (passphrase_to_dek): Handle a Cancel request
1166         correctly.  [Bug#737]
1167         * mainproc.c (proc_symkey_enc): Removed workaround for bogus cancel
1168         processing.
1169         * encode.c (encode_simple): Distinguish error message between
1170         cancel and invalid passphrase.
1171         (setup_symkey): Ditto.
1172         * sign.c (sign_symencrypt_file): Ditto
1173         * keyedit.c (change_passphrase): Allow cancellation.
1174         * keygen.c (do_ask_passphrase): New arg R_CANCELED.
1175         (generate_keypair): Handle a passphrase cancellation.
1176         (generate_raw_key): Ditto.
1177         (generate_subkeypair): Ditto.
1179 2006-12-04  Werner Koch  <wk@g10code.com>
1181         * filter.h (armor_filter_context_t): New element REFCOUNT.
1182         * armor.c (armor_filter): Made static.
1183         (push_armor_filter, release_armor_context, new_armor_context): New.
1184         (armor_filter): Release the context.
1185         * gpg.c (main): Use new armor context functions and
1186         push_armor_filter.
1187         * export.c (do_export): Ditto.
1188         * encode.c (encode_simple, encode_crypt): Ditto.
1189         * decrypt.c (decrypt_message, decrypt_messages): Ditto.
1190         * dearmor.c (dearmor_file, enarmor_file): Ditto.
1191         * verify.c (verify_signatures, verify_one_file): Ditto.
1192         * sign.c (sign_file, clearsign_file, sign_symencrypt_file): Ditto.
1193         * revoke.c (gen_desig_revoke, gen_revoke): Ditto.
1194         * keyserver.c (keyserver_spawn): Ditto.
1195         * keygen.c (output_control_s): Turn AFX fields into pointers.
1196         (read_parameter_file): Allocate and release AFX fields.
1197         (do_generate_keypair): Use push_armor_filter.
1198         * import.c (import): Replace iobuf_push_filter2 hack by the new
1199         armor context stuff.
1201 2006-12-03  Werner Koch  <wk@g10code.com>
1203         * filter.h: New element REFCOUNT.
1204         (handle_progress): Remove prototype.
1205         * progress.c (new_progress_context, release_progress_context): New.
1206         (progress_filter): Use new function to release context.  Made static.
1207         (handle_progress): Bumb reference counter.  No more check for
1208         enabled progress as this is handled by new_progress_context.
1209         * verify.c (verify_signatures, verify_one_file): Replace stack
1210         based progress context by a heap based one.
1211         * sign.c (sign_file, clearsign_file, sign_symencrypt_file): Ditto.
1212         * plaintext.c (ask_for_detached_datafile, hash_datafiles): Ditto.
1213         * encode.c (encode_simple, encode_crypt): Ditto.
1214         * decrypt.c (decrypt_message, decrypt_messages): Ditto. 
1216         * keyedit.c (menu_clean): Made strings translatable.
1218 2006-12-03  David Shaw  <dshaw@jabberwocky.com>
1220         * keyedit.c (menu_clean): Show "already minimized" rather than
1221         "already clean" when a minimized key is minimized again.  From
1222         Dirk Traulsen.
1224 2006-12-02  David Shaw  <dshaw@jabberwocky.com>
1226         * options.h, gpg.c (main), passphrase.c (passphrase_to_dek): Add
1227         --passphrase-repeat option to control how many times gpg will
1228         re-prompt for a passphrase to ensure the user has typed it
1229         correctly.  Defaults to 1.
1231 2006-12-02  Werner Koch  <wk@g10code.com>
1233         * encr-data.c: Allocate DFX context on the heap and not on the
1234         stack.  Changes at several places.  Fixes CVE-2006-6235.
1235         
1236 2006-11-27  Werner Koch  <wk@g10code.com>
1238         * openfile.c (ask_outfile_name): Fixed buffer overflow occurring
1239         if make_printable_string returns a longer string.  Fixes bug 728.
1241 2006-11-21  Werner Koch  <wk@g10code.com>
1243         * Makefile.am (needed_libs): libgnu needs to come after libcommon.
1245         * keygen.c (ask_expire_interval): Print y2038 warning only for 32
1246         bit time_t.
1247         (save_unprotected_key_to_card): Made RSA_N_LEN et al a size_t.
1248         Cast printf args.
1249         (get_parameter_algo): Allow "ELG" as alias for "ELG-E".
1251         * seckey-cert.c (do_check): Made NBYTES a size_t.
1252         (do_check): Made NDATA a size_t.
1253         (protect_secret_key): Made NARR a size_t.
1254         (protect_secret_key): Made NVYES a size_t.
1255         * pubkey-enc.c (get_it): Made INDATALEN a size_t. 
1256         (get_it): Made NFRAME a size_t.
1257         * keyid.c (hash_public_key): Made NBITS an unsigned int.
1258         * misc.c (checksum_mpi): Made NBYTES a size_t. 
1259         (openpgp_pk_test_algo2): Made USE_BUF a size_t.
1260         * seskey.c (encode_session_key): Made NFRAME a size_t.
1261         (do_encode_md): Ditto.
1262         (encode_md_value): Cast size_t argument of printf.
1263         (encode_md_value): Ditto.
1265 2006-11-10  Werner Koch  <wk@g10code.com>
1267         * parse-packet.c (mpi_read): Changed NREAD to size_t to match the
1268         gcry_mpi-scan prototype. 
1269         (mpi_read): Fixed double increment of bytes read to correctly
1270         detect overlong MPIs.
1272 2006-11-05  Werner Koch  <wk@g10code.com>
1274         * gpg.c (main): Remove the default --require-cross-certification.
1275         * options.skel: Enable require-cross-certification.
1277 2006-10-31  Werner Koch  <wk@g10code.com>
1279         * pkclist.c (warn_missing_aes_from_pklist): New.
1280         * encode.c (encrypt_filter, encode_crypt): Use it here.
1282 2006-10-27  Werner Koch  <wk@g10code.com>
1284         * pkclist.c (warn_missing_mdc_from_pklist): New.
1285         * encode.c (use_mdc): Use it here.
1287 2006-10-24  Marcus Brinkmann  <marcus@g10code.de>
1289         * Makefile.am (AM_CFLAGS): Add $(LIBASSUAN_CFLAGS).
1291 2006-10-23  Werner Koch  <wk@g10code.com>
1293         * gpg.c (main): New command --gpgconf-test.
1295         * Makefile.am (bzip2_source): New.
1297 2006-10-20  Werner Koch  <wk@g10code.com>
1299         * getkey.c (classify_user_id): Reserve '&' for search by keygrip.
1301 2006-10-19  Werner Koch  <wk@g10code.com>
1303         * keygen.c (get_parameter_algo): Add special case for ELG_E which
1304         is not supported by libgcrypt's mapping function.
1306 2006-10-18  Werner Koch  <wk@g10code.com>
1308         * keyid.c (v3_keyid): Don't use mempcy as we need to hold the
1309         keyids in the native endian format.
1311         * import.c (import_print_stats): Use log_printf.
1313         * build-packet.c (do_public_key): Care about mpi_write errors.
1314         (do_secret_key, do_pubkey_enc, do_signature): Ditto. 
1315         (mpi_write): Print an extra warning on error.
1317 2006-10-17  Werner Koch  <wk@g10code.com>
1319         * Makefile.am (LDADD): Replaced W32LIBS by NETLIBS.
1321 2006-10-12  David Shaw  <dshaw@jabberwocky.com>
1323         * parse-packet.c (parse_symkeyenc): Show the unpacked as well as
1324         the packed s2k iteration count.
1326         * main.h, options.h, gpg.c (encode_s2k_iterations, main),
1327         passphrase.c (hash_passphrase): Add --s2k-count option to specify
1328         the number of s2k hash iterations.
1330 2006-10-08  Werner Koch  <wk@g10code.com>
1332         * gpgv.c: Remove the tty stubs as we are now required to link to
1333         tty anyway (it is included in libcommand and has dependencies to
1334         other modules as well).
1336         * keyedit.c (keyedit_menu): Use keyedit_completion only if
1337         readline is available.  It would be better to move this code into
1338         gpgrlhelp.c
1340 2006-10-06  Werner Koch  <wk@g10code.com>
1342         * Makefile.am (AM_CFLAGS): Use PTH version of libassuan.
1344 2006-10-06  David Shaw  <dshaw@jabberwocky.com>
1346         * keyserver.c (keyserver_spawn): Write the 16-digit keyid rather
1347         than whatever key selector the user used on the command line.
1349 2006-10-05  Werner Koch  <wk@g10code.com>
1351         * status.c (progress_cb): Changed to libgcrypt API.
1352         (set_status_fd): Register the progress cb.
1354         * seskey.c (encode_md_value): Check that the hash algo is valid
1355         before getting the OID. 
1357 2006-10-04  Werner Koch  <wk@g10code.com>
1359         * passphrase.c: Allow for a static passphrase in batch mode.
1360         
1361         * call-agent.c (agent_havekey): Removed.
1362         (percent_plus_escape): New.
1363         (agent_get_passphrase): New.
1364         (agent_clear_passphrase): New.
1366         * passphrase.c: Changed so that we always require the agent.
1367         (agent_send_option, agent_send_all_options, agent_open): Removed.
1368         (agent_get_passphrase): Cleaned up.  Does now use the call-agent
1369         functions.  Renamed to
1370         (passphrase_get): .. this.  Changed all callers.
1371         (passphrase_clear_cache): Rewritten.
1372         (passphrase_to_dek, hash_passphrase): Re-indented.
1374         * gpg.c (main): Made --use-agent a dummy option.
1375         * seckey-cert.c (check_secret_key): We require the agent, so always
1376         allow for 3 tries.
1378         * gpg.c (main): Print a warning if -sat has been used.
1379         (main): Removed the special treatment of the -k option. -k is now
1380         an alias for --list-keys.
1381         (main): Removed --list-ownertrust.
1383 2006-10-02  Werner Koch  <wk@g10code.com>
1385         * encr-data.c (decrypt_data, mdc_decode_filter): Check the MDC
1386         right here and don't let parse-packet handle the MDC.
1388 2006-09-29  Werner Koch  <wk@g10code.com>
1390         * compress.c (do_uncompress): Removed use of Z_PARTIAL_FLUSH.
1391         This is outdated and old zlib versions which still require it have
1392         security problems.
1394 2006-09-27  Werner Koch  <wk@g10code.com>
1396         Replaced all STRLIST by strlist_t.
1398 2006-09-21  Werner Koch  <wk@g10code.com>
1400         * signal.c (got_fatal_signal): Replaced readline stuff by a tty
1401         function.
1403         * Makefile.am (LDADD): Include libgpgrl.a.
1405         * gpg.c (main): Call gpg_rl_initialize.
1407         * keyedit.c: Removed double inclusion of stdio.h.
1409 2006-09-20  Werner Koch  <wk@g10code.com>
1411         * call-agent.c: Include asshelp.h.
1412         (start_agent): Use send_pinentry_environment.
1414 2006-09-14  Werner Koch  <wk@g10code.com>
1416         Replaced all call gpg_error_from_errno(errno) by
1417         gpg_error_from_syserror().
1419 2006-09-13  Werner Koch  <wk@g10code.com>
1421         * gpg.c (main): Made --require-cross-certification the default. 
1423 2006-09-06  Marcus Brinkmann  <marcus@g10code.de>
1425         * Makefile.am (gpg2_LDADD, gpgv2_LDADD): Replace -lassuan and
1426         -lgpg-error with $(LIBASSUAN_LIBS) and $(GPG_ERROR_LIBS).
1427         (AM_CFLAGS): Add $(LIBASSUAN_CFLAGS) and $(GPG_ERROR_CFLAGS).
1429 2006-09-06  Werner Koch  <wk@g10code.com>
1431         * gpg.c (main): Enable new assuan API.
1432         * call-agent.c: Changed to new Assuan API.
1434 2006-09-01  Werner Koch  <wk@g10code.com>
1436         * call-agent.c: Do not force using the pipe server.
1438         * gpg.c (main): Enable card related commands.
1440 2006-08-22  Werner Koch  <wk@g10code.com>
1442         * mainproc.c (proc_plaintext): Fixed a #warning
1444 2006-08-21  Werner Koch  <wk@g10code.com>
1446         * skclist.c (random_is_faked): Implemented.
1447         (is_insecure): Also test for the old uppercase version of the
1448         insecure string.
1449         * gpg.c (main): Renamed --quick-random to debug-quick-quick-random.
1451         * gpg.c (print_mds): Do not use the USE_SHA macros.
1453         * mainproc.c (proc_encrypted): Remove assign inside condition for
1454         better readibility.
1456         * packet.h: Moved consts to new header ../common/openpgpdefs.h.
1458 2006-08-16  Werner Koch  <wk@g10code.com>
1460         * keyserver.c (GPGKEYS_PREFIX): Rename to gpg2keys_.  This is so
1461         that we can install helpers from 1.4 and 2 without conflicts and
1462         first of all don't get lost with weird bug reports.
1464         * keyid.c (serialno_and_fpr_from_sk): New. Actually lost during
1465         the last 1.4 to 1.9 merge.
1467         * gpg.c (list_config): Output ccid-reader-id only for gnupg 1.
1469         * call-agent.c (agent_scd_writekey): New.
1470         (inq_writekey_parms): New.
1472         * gpgv.c: Include call-agent.h for use by stubs.
1474         * misc.c: Include call-agent.h for use by get_signature_count.
1476 2006-07-27  Werner Koch  <wk@g10code.com>
1478         * parse-packet.c (parse_comment): Cap comments at 65k.
1479         (parse_gpg_control): Skip too large control packets.
1481 2006-07-24  David Shaw  <dshaw@jabberwocky.com>  (wk)
1483         * keydb.h, pkclist.c (select_algo_from_prefs, algo_available):
1484         Pass a union for preference hints rather than doing void * games.
1486         * sign.c (sign_file): Use it here.
1488         * sign.c (sign_file): When signing with multiple DSA keys, one
1489         being DSA1 and one being DSA2 and encrypting at the same time, if
1490         the recipient preferences give a hash that can work with the DSA2
1491         key, then allow the DSA1 key to be promoted rather than giving up
1492         and using hash_for().
1494         * pkclist.c (algo_available): Automatically enable DSA2 mode when
1495         handling a key that clearly isn't DSA1 (i.e. q!=160).
1497 2006-06-30  Werner Koch  <wk@g10code.com>
1499         * misc.c (checksum_mpi): No need for nbits as they are alredy
1500         included in the buffer.
1502 2006-06-29  Werner Koch  <wk@g10code.com>
1504         * parse-packet.c (parse_signature, parse_key): Need store the
1505         length of opaque data as number of bits. 
1506         * card-util.c (card_store_subkey): Ditto.
1508         * mainproc.c (print_pkenc_list, check_sig_and_print): Replaced
1509         log_get_stream by calls to log_printf.  This avoids the extra LFs
1510         inserted by the logging function. They are a bit too smart
1511         sometimes.
1512         * pkclist.c (do_show_revocation_reason): Print final LF through
1513         log_printf to avoid extra LFs.
1514         * pubkey-enc.c (get_it): Ditto.
1516         * seskey.c (encode_md_value): Fix call to gcry.
1518 2006-06-27  Werner Koch  <wk@g10code.com>
1520         Applied patches from 1.4.x (2006-05-22 to 2006-06-23) from David:
1522         * keygen.c (keygen_upd_std_prefs, keygen_add_std_prefs)
1523         (proc_parameter_file): Add --default-keyserver-url to specify a
1524         keyserver URL at key generation time, and "Keyserver:" keyword for
1525         doing the same through a batch file.
1526         * options.h, gpg.c (main): Ditto.
1528         * sign.c (do_sign): For now don't accept a truncated hash even
1529         for DSA1 keys (be liberal in what you accept, etc).
1531         * import.c (import_one): Add a flag (from_sk) so we don't check
1532         prefs on an autoconverted public key.  The check should only
1533         happen on the sk side.  Noted by Dirk Traulsen.
1535         * keygen.c (gen_card_key): Add optional argument to return a
1536         pointer (not a copy) of the stub secret key for the secret key we
1537         just generated on the card.
1538         (generate_card_subkeypair): Use it here so that the signing key on
1539         the card can use the card to generate the 0x19 backsig on the
1540         primary key.  Noted by Janko Heilgeist and Jonas Oberg.
1542         * parse-packet.c (parse_user_id): Cap the user ID size at 2048
1543         bytes.  This prevents a memory allocation attack with a very large
1544         user ID.  A very large packet length could even cause the
1545         allocation (a u32) to wrap around to a small number.  Noted by
1546         Evgeny Legerov on full-disclosure.
1548         * keygen.c (gen_dsa): Allow generating DSA2 keys.  Allow
1549         specifying sizes > 1024 when --enable-dsa2 is set.  The size of q
1550         is set automatically based on the key size.
1551         (ask_keysize, generate_keypair): Ask for DSA size when
1552         --enable-dsa2 is set.
1554         * exec.c (make_tempdir) [W32]: Fix bug with a temporary directory
1555         on W32 that is over 256 bytes long.  Noted by Israel G. Lugo.
1557         * gpg.c (reopen_std): New function to reopen fd 0, 1, or 2 if we
1558         are called with them closed.  This is to protect our
1559         keyring/trustdb files from corruption if they get attached to one
1560         of the standard fds.  Print a warning if possible that this has
1561         happened, and fail completely if we cannot reopen (should never
1562         happen).
1563         (main): Call it here.
1564         
1565         * parse-packet.c (dump_sig_subpkt, parse_signature): Fix meaning
1566         of key expiration and sig expiration subpackets - zero means
1567         "never expire" according to 2440, not "expire instantly".
1568         * build-packet.c (build_sig_subpkt_from_sig): Ditto.
1569         * getkey.c (fixup_uidnode, merge_selfsigs_main)
1570         (merge_selfsigs_subkey): Ditto.
1571         * keygen.c (keygen_add_key_expire): Ditto.
1573         * getkey.c (get_pubkey_byname)
1574         * import.c (import_one): Fix key selection problem when
1575         auto-key-locate returns a list of keys, not all of which are
1576         usable (revoked, expired, etc).  Noted by Simon Josefsson.
1578 2006-05-24  Werner Koch  <wk@g10code.com>
1580         * keyid.c (hash_public_key): Do not double hash the length bytes,
1581         they are already included by mpi_print.
1583         * misc.c (openpgp_pk_test_algo2): Get test call right.
1585         * misc.c (string_to_cipher_algo, string_to_digest_algo): New.
1586         * keygen.c (keygen_set_std_prefs): use them here.
1587         * gpg.c (main): and here.
1589 2006-05-23  Werner Koch  <wk@g10code.com>
1591         * card-util.c (generate_card_keys): Removed temporary kludge for
1592         generate_keypair.
1594         * call-agent.c (agent_scd_setattr): Add arg SERIALNO.
1595         (agent_scd_genkey): Ditto.
1596         (agent_scd_change_pin): Ditto.
1598         * call-agent.h (struct agent_card_info_s): Updated to match the
1599         one of 1.4.3.
1601         * Makefile.am (LDADD): Include ZLIBS.
1603         * gpgv.c: Removed stubs not anymore useful due to libgcrypt.
1605 2006-05-22  Werner Koch  <wk@g10code.com>
1607         * keyserver.c (keyidlist): Replaced mpi_get_keyid by v3_keyid.
1608         * keydb.h (v3_keyid): Added.
1610         * import.c (import): Better initialize KEYBLOCK as to quiet
1611         compiler warning.
1613         * skclist.c (random_is_faked): New.
1615         * mainproc.c: Include pka.h.
1617 2006-05-19  Werner Koch  <wk@g10code.com>
1619         * misc.c (openpgp_pk_test_algo2): Need to use gcry_pk_algo_info
1620         directly.
1621         (string_count_chr): New.
1623         * armor.c (parse_header_line): Use renamed function
1624         length_sans_trailing_ws.
1626         * options.h, gpg.c: Option --strict is not used thus removed code
1627         but kept option.
1629 2006-04-28  David Shaw  <dshaw@jabberwocky.com>  (wk)
1630         
1631         * keyserver.c (direct_uri_map): New.
1632         (keyserver_spawn): Used here to add "_uri" to certain gpgkeys_xxx
1633         helpers when the meaning is different if a path is provided (i.e. 
1634         ldap).
1635         (keyserver_import_cert): Show warning if there is a CERT
1636         fingerprint, but no --keyserver set.
1638         * keyserver.c: Fix build problem with platforms that stick libcurl
1639         in a place not in the regular include search path.
1641         * options.h, gpg.c (main): Add --enable-dsa2 and --disable-dsa2.
1642         Defaults to disable.
1644         * pkclist.c (algo_available): If --enable-dsa2 is set, we're
1645         allowed to truncate hashes to fit DSA keys.
1647         * sign.c (match_dsa_hash): New.  Return the best match hash for a
1648         given q size.
1649         (do_sign, hash_for, sign_file): When signing with a DSA key, if it
1650         has q==160, assume it is an old DSA key and don't allow truncation
1651         unless --enable-dsa2 is also set.  q!=160 always allows truncation
1652         since they must be DSA2 keys.
1653         (make_keysig_packet): If the user doesn't specify a
1654         --cert-digest-algo, use match_dsa_hash to pick the best hash for
1655         key signatures.
1657         * gpg.c (print_mds): Add SHA-224.
1658         * armor.c (armor_filter, parse_hash_header): Add SHA-224.
1660         * sign.c (write_plaintext_packet):
1661         Factor common literal packet setup code from here, to...
1662         * encode.c (encode_simple): .. there.
1663         
1664         * main.h, plaintext.c (setup_plaintext_name): Here. New. Make sure
1665         the literal packet filename field is UTF-8 encoded.
1667         * options.h, gpg.c (main): Make sure --set-filename is UTF-8
1668         encoded and note when filenames are already UTF-8.
1670         * keyedit.c (menu_backsign): Give some more verbose errors when we
1671         have no need to backsign.
1673         * getkey.c (parse_auto_key_locate): Fix dupe-removal code.
1675         * keyedit.c (menu_backsign): Allow backsigning even if the secret
1676         subkey doesn't have a binding signature.
1678         * armor.c (radix64_read): Don't report EOF when reading only a pad
1679         (=) character.  The EOF actually starts after the pad.
1681         * gpg.c (main): Make --export, --send-keys, --recv-keys,
1682         --refresh-keys, and --fetch-keys follow their arguments from left
1683         to right.  Suggested by Peter Palfrader.
1685 2006-04-18  Werner Koch  <wk@g10code.com>
1687         * tdbio.c (open_db, migrate_from_v2): Removed feature to migration
1688         from old trustdb version 2.
1690         * gpg.c, mainproc.c: Removed pipemode feature.
1692         * status.c: Removed shared memory coprocess stuff
1694         Merged with current gpg 1.4.3 code.
1695         
1696         * keygen.c, keyid.c, misc.c, openfile.c, verify.c, trustdb.c
1697         * textfilter.c, tdbio.c, tdbdump.c, status.c, skclist.c, signal.c
1698         * sign.c, sig-check.c, seskey.c, seckey-cert.c, revoke.c
1699         * pubkey-enc.c, progress.c, plaintext.c, pkclist.c, photoid.c
1700         * passphrase.c, parse-packet.c, mdfilter.c, mainproc.c
1701         * keyserver.c, keyring.c, keylist.c, keyedit.c, keydb.c, kbnode.c
1702         * import.c, getkey.c, gpgv.c, helptext.c, free-packet.c
1703         * build-packet.c, cipher.c, compress.c, dearmor.c, decrypt.c
1704         * delkey.c, encr-data.c, encode.c, exec.c, export.c
1705         * gpg.c, armor.c: Updated from gnupg-1.4.3 and merged back gcry and
1706         gnupg-1.9 related changes.
1707         * trustdb.h, tdbio.h, status.h, photoid.h, packet.h, options.h
1708         * main.h, keyserver-internal.h, keyring.h, keydb.h, filter.h
1709         * exec.h: Ditto.
1710         * global.h: Removed after merging constants with gpg.h.
1711         * comment.c, pipemode.c: Removed.
1712         * card-util.c: Updated from gnupg-1.4.3.
1713         * compress-bz2.c: New.
1714         
1715 2005-06-15  Werner Koch  <wk@g10code.com>
1717         * g10.c (print_hashline, add_group): Fixes for signed/unsigned
1718         pointer mismatch warnings.
1720 2005-06-01  Werner Koch  <wk@g10code.com>
1722         * mkdtemp.c: Removed.
1723         * exec.c: Include mkdtemp.h
1725 2004-12-21  Werner Koch  <wk@g10code.com>
1727         * gpgv.c, g10.c (main): Use default_hoemdir ().
1729 2004-12-18  Werner Koch  <wk@g10code.com>
1731         * gpg.h (map_assuan_err): Define in terms of
1732         map_assuan_err_with_source.
1734 2004-12-15  Werner Koch  <wk@g10code.com>
1736         * Makefile.am (LDADD): Remove ZLIBS.
1738 2004-10-22  Werner Koch  <wk@g10code.com>
1740         * g10.c (main): Display a bit fat warning that this gpg should not
1741         be used.
1743         * card-util.c (fetch_url): Disable for gnupg 1.9
1744         (card_generate_subkey): Ditto.
1745         (card_store_subkey): Ditto.
1747 2004-09-30  Werner Koch  <wk@g10code.com>
1749         * gpgv.c (i18n_init): Always use LC_ALL.
1751         * Makefile.am (LDADD): Adjusted for gettext 0.14.
1753 2004-09-20  Werner Koch  <wk@g10code.com>
1755         * keyedit.c (show_key_with_all_names): Print the card S/N.
1757 2004-09-11  Moritz Schulte  <moritz@g10code.com>
1759         * openfile.c (copy_options_file): Fixed last commit (added a `+').
1761 2004-08-31  Werner Koch  <wk@g10code.de>
1763         * openfile.c (copy_options_file): Use gpg-conf.skel. Better take
1764         the length of SKELEXT into account, someone might make it larger.
1765         * Makefile.am: Install options.skel as gpg-conf.skel.
1767 2004-08-18  Marcus Brinkmann  <marcus@g10code.de>
1769         * passphrase.c (agent_get_passphrase): Fix detection of gpg-agent
1770         cancellation.
1772 2004-07-01  Werner Koch  <wk@gnupg.org>
1774         * card-util.c (change_login): Kludge to allow reading data from a
1775         file.
1776         (card_edit): Pass ARG_STRING to change_login.
1777         (card_status): Print CA fingerprints.
1778         (change_cafpr): New.
1779         (card_edit): New command CAFPR.
1781         * call-agent.h: Add members for CA fingerprints.
1782         * call-agent.c (agent_release_card_info): Invalid them.
1783         (learn_status_cb): Store them.
1785 2004-04-30  Werner Koch  <wk@gnupg.org>
1787         * g10.c (main) <gpgconf>: Use gpg.conf and not /dev/null as
1788         default filename.
1790 2004-04-28  Werner Koch  <wk@gnupg.org>
1792         * card-util.c (card_edit): Remove PIN verification.
1793         (generate_card_keys): New arg SERIALNO.  Do PIN verification here
1794         after resetting forced_chv1.
1796 2004-04-26  Werner Koch  <wk@gnupg.org>
1798         * card-util.c (change_name): Check that the NAME is not too long.
1799         (change_url): Likewise.
1800         (change_login): Likewise.
1802 2004-03-23  Werner Koch  <wk@gnupg.org>
1804         * g10.c: New options --gpgconf-list, --debug-level and --log-file
1805         (set_debug): Add arg DEBUG_LEVEL.
1806         (main): Look at less and less version specific config files.  From
1807         gnupg 1.3.
1809 2004-02-17  Werner Koch  <wk@gnupg.org>
1811         * call-agent.c (start_agent): Ignore an empty GPG_AGENT_INFO.
1812         * passphrase.c (agent_open): Ditto.
1814 2004-02-12  Werner Koch  <wk@gnupg.org>
1816         * gpgv.c: Removed g10defs.h.
1818         * Makefile.am: Include cmacros.am for common flags.
1820 2004-02-11  Werner Koch  <wk@gnupg.org>
1822         * openfile.c (try_make_homedir): Use GNUPG_DEFAULT_HOMEDIR.
1823         * gpgv.c (main): Ditto.
1824         * g10.c (main): Ditto.
1826 2004-01-19  Moritz Schulte  <mo@g10code.com>
1828         * keygen.c (do_generate_keypair): Print member fname, instead of
1829         newfname, again.
1830         (do_generate_keypair): Don't try to execute certain pieces of code
1831         in case an error occured.
1832         (gen_card_key): Don't print out a message, which is already
1833         printed by do_generate_keypair().
1835 2004-01-18  Moritz Schulte  <mo@g10code.com>
1837         * keygen.c (do_generate_keypair): Print member fname, instead of
1838         newfname.
1840 2003-12-17  Werner Koch  <wk@gnupg.org>
1842         * card-util.c (print_name): Fixed bad format string usage.
1843         (print_isoname): Ditto.
1845         * trustdb.c (check_regexp): s/exp/expr/.
1847         * keyedit.c (trustsig_prompt): Removed a "> 255" term; it is
1848         always false due to the data type.
1849         
1850         * passphrase.c (agent_get_passphrase): Use xasprintf and avoid
1851         non-literal format strings.
1853         * tdbio.c (upd_hashtable, drop_from_hashtable, lookup_hashtable):
1854         Fixed log_error format string bugs.  Kudos to the now working
1855         gcc-3.3 -Wformat-nonliteral and Florian Weimer's investigations in
1856         gnupg 1.2.3.
1858 2003-12-15  Werner Koch  <wk@gnupg.org>
1860         * seckey-cert.c (protect_secret_key): Use gry_create_nonce for the
1861         IV; there is not need for real strong random here and it even
1862         better protect the random bits used for the key.
1864 2003-11-16  Moritz Schulte  <mo@g10code.com>
1866         * signal.c: Removed unused file.
1868 2003-11-10  Moritz Schulte  <mo@g10code.com>
1870         * Makefile.am (INCLUDES): Added: @LIBGCRYPT_CFLAGS@.
1872 2003-10-25  Werner Koch  <wk@gnupg.org>
1874         * call-agent.c (learn_status_cb, scd_genkey_cb): Fixed faulty use
1875         of !spacep().
1877 2003-10-20  Werner Koch  <wk@gnupg.org>
1879         * card-util.c (card_edit): New command "passwd".  Add logic to
1880         check the PIN in advance.
1881         (card_status): Add new args to return the serial number.  Changed
1882         all callers.
1883         * call-agent.c (agent_scd_checkpin): New.
1885 2003-10-08  Werner Koch  <wk@gnupg.org>
1887         * call-agent.c (agent_scd_getattr): Don't clear the passed info
1888         structure, so that it can indeed be updated.
1890         * card-util.c (fpr_is_zero): New.
1891         (generate_card_keys): New.
1892         (card_edit): New command "generate".
1893         * keygen.c (generate_keypair): New arg CARD_SERIALNO, removed call
1894         to check_smartcard.
1895         (check_smartcard,show_smartcard): Removed.
1896         (show_sha1_fpr,fpr_is_zero): Removed.
1898 2003-10-01  Werner Koch  <wk@gnupg.org>
1900         * card-util.c: Tweaked to use this source also under 1.3. 
1902 2003-09-30  Werner Koch  <wk@gnupg.org>
1904         * keylist.c (print_card_serialno): New.
1905         (list_keyblock_print): Use it here.
1907         * card-util.c (toggle_forcesig): New.
1908         (card_edit): New command "forcesig".
1909         
1910         * card-util.c (print_name, print_isoname): Use 0 and not LF fro
1911         the max_n arg of tty_print_utf8_string2.
1913         * call-agent.c (agent_scd_getattr): New.
1914         (learn_status_cb): Release values before assignment so that it can
1915         be used by getattr to update the structure.
1916         
1917         * card-util.c (change_pin): Simplified.  We now have only a PIN
1918         and an Admin PIN.
1920 2003-09-27  Werner Koch  <wk@gnupg.org>
1922         * sign.c (do_sign): Removed disabled testcode.
1924 2003-09-26  Timo Schulz  <twoaday@freakmail.de>
1926         * card_status (card_status): Do not use fputs since the fp
1927         parameter can be NULL. This fixes a segv.
1928         
1929 2003-09-24  Werner Koch  <wk@gnupg.org>
1931         * card-util.c (print_isoname,card_status): Handle opt.with_colons.
1932         (print_sha1_fpr_colon): New.
1934 2003-09-23  Werner Koch  <wk@gnupg.org>
1936         Merged most of David Shaw's changes in 1.3 since 2003-06-03.
1937         
1938         * Makefile.am: Include W32LIBS where appropriate.
1940         * armor.c (parse_hash_header,armor_filter): Drop TIGER/192 support.
1941         * g10.c (print_hex,print_mds): Ditto.
1942         * pkclist.c (algo_available): Ditto.
1944         * armor.c (armor_filter): Allow using --comment multiple times to
1945         get multiple Comment header lines.  --no-comments resets list.
1946         * options.h, g10.c (main): Ditto. Deprecate --default-comment in
1947         favor of --no-comments.
1949         * g10.c (main): Trim --help to commonly used options.  Remove -f.
1951         * g10.c (main): Add --multifile as an alias to turn --encrypt into
1952         --encrypt-files (plus --verify-files, --decrypt-files).  Error out
1953         if --multifile is used with the commands that don't support it yet.
1955         * encode.c (use_mdc), g10.c (main): Use RFC1991 and RFC2440
1956         directly to check for MDC usability.  Do not set the force_mdc or
1957         disable_mdc flags since there is no point any longer.
1958         
1959         * g10.c (main): Use "keyserver-url" instead of
1960         "preferred-keyserver" for the sake of short and simple commands.
1961         (add_keyserver_url): Clarify a few strings.  It's a
1962         "preferred keyserver URL".
1963         * keyedit.c (keyedit_menu): Ditto.
1964         * sign.c (mk_notation_policy_etc): Ditto. 
1966         * main.h, keygen.c (keygen_add_keyserver_url): Signature callback
1967         for adding a keyserver URL.
1968         * keyedit.c (keyedit_menu, menu_set_keyserver_url): New command to
1969         set preferred keyserver to specified (or all) user IDs.
1970         * build-packet.c (build_sig_subpkt): Set preferred keyserver flag
1971         while building a preferred keyserver subpacket.
1973         * keylist.c (show_policy_url, show_keyserver_url): URLs might be
1974         UTF8.
1976         * keyedit.c (menu_addrevoker): Fix leaking a few bytes.
1978         * keyedit.c (show_key_with_all_names): Use list-option
1979         show-long-keyid in main --edit-key display.
1981         * keyedit.c (print_and_check_one_sig): Use list-option
1982         show-long-keyid in --edit-key "check" function.
1984         * passphrase.c (agent_send_all_options): Make use of $GPG_TTY.
1986         * g10.c (main): Disable use-agent if passphrase-fd is given
1987         later. Suggested by Kurt Garloff.
1989         * exec.c, g10.c, gpgv.c, passphrase.c, photoid.c:
1990         s/__MINGW32__/_WIN32/ to help building on native Windows
1991         compilers.  Requested by Brian Gladman.  From Werner on stable
1992         branch.
1994         * options.h, g10.c (main): Add list-option
1995         list-preferred-keyserver.
1997         * keyedit.c (change_passphrase): When responding 'no' to the blank
1998         passphrase question, re-prompt for a new passphrase.  This is bug
1999         #202.
2001         * mainproc.c (check_sig_and_print): Use two different preferred
2002         keyserver displays - one if the key is not present (to tell the
2003         user where to get the key), the other if it is present (to tell
2004         the user where the key can be refreshed).
2006         * packet.h, parse-packet.c (parse_signature): Set flag if a
2007         preferred keyserver is present.
2009         * keylist.c (list_keyblock_print): Show keyserver url in listings
2010         with list-option show-keyserver-url.
2012         * mainproc.c (check_sig_and_print): Get the uid validity before
2013         printing any sig results to avoid munging the output with trustdb
2014         warnings.
2016         * g10.c (main): Don't include --show-keyring in --help as it is
2017         deprecated.
2019         * options.skel: Note that keyserver.pgp.com isn't synchronized,
2020         and explain the roundrobin a bit better.
2022         * sig-check.c (check_key_signature2), import.c (import_one,
2023         import_revoke_cert, chk_self_sigs, delete_inv_parts,
2024         collapse_uids, merge_blocks): Make much quieter during import of
2025         slightly munged, but recoverable, keys. Use log_error for
2026         unrecoverable import failures.
2028         * keyring.c (keyring_rebuild_cache): Comment.
2030         * sign.c (mk_notation_and_policy): Making a v3 signature with
2031         notations or policy urls is an error, not an info (i.e. increment
2032         the errorcount). Don't print the notation or policy url to stdout
2033         since it can be mixed into the output stream when piping and munge
2034         the stream.
2036         * packet.h, sig-check.c (signature_check2, do_check,
2037         do_check_messages): Provide a signing-key-is-revoked flag.  Change
2038         all callers.
2040         * status.h, status.c (get_status_string): New REVKEYSIG status tag
2041         for a good signature from a revoked key.
2043         * mainproc.c (do_check_sig, check_sig_and_print): Use it here.
2045         * import.c (import_revoke_cert, merge_blocks, merge_sigs): Compare
2046         actual signatures on import rather than using keyid or class
2047         matching.  This does not change actual behavior with a key, but
2048         does mean that all sigs are imported whether they will be used or
2049         not.
2051         * parse-packet.c (parse_signature): Don't give "signature packet
2052         without xxxx" warnings for experimental pk algorithms.  An
2053         experimental algorithm may not have a notion of (for example) a
2054         keyid (i.e. PGP's x.509 stuff).
2056         * options.h, g10.c (main), keylist.c (list_keyblock_print),
2057         keyedit.c (print_and_check_one_sig): New "show-sig-expire"
2058         list-option to show signature expiration dates (if any).
2060         * options.h, g10.c (main, add_keyserver_url): Add
2061         --sig-preferred-keyserver to implant a "where to get my key"
2062         subpacket into a signature.
2064         * sign.c (mk_notation_and_policy): Rename to
2065         mk_notation_policy_etc and add preferred keyserver support for
2066         signatures.
2068         * keygen.c (do_add_key_flags): Don't set the certify flag for
2069         subkeys.
2070         (ask_algo): Provide key flags for DSA, Elgamal_e, and Elgamal
2071         subkeys.
2072         (generate_keypair): Provide key flags for the default DSA/Elgamal
2073         keys.
2075         * sig-check.c (signature_check, signature_check2,
2076         check_key_signature, check_key_signature2): Allow passing NULLs
2077         for unused parameters in the x2 form of each function to avoid the
2078         need for dummy variables. getkey.c, mainproc.c: Change all
2079         callers.
2081         * trustdb.h, trustdb.c (read_trust_options): New.  Returns items
2082         from the trustdb version record.
2083         * keylist.c (public_key_list): Use it here for the new "tru"
2084         record.
2085         * gpgv.c (read_trust_options): Stub.
2087         * keyedit.c (show_key_with_all_names): Use list-option
2088         show-validity in --edit-key interface as well.
2090         * options.h, g10.c (main), mainproc.c (check_sig_and_print): Add
2091         verify-options "show-validity" and "show-long-keyid" to show
2092         trustdb validity and long keyids during (file) signature
2093         verification.
2095         * packet.h, main.h, sig-check.c (signature_check2)
2096         (check_key_signature2, do_check): If ret_pk is set, fill in the pk
2097         used to verify the signature.  Change all callers in getkey.c,
2098         mainproc.c, and sig-check.c.
2100         * keylist.c (list_keyblock_colon): Use the ret_pk from above to
2101         put the fingerprint of the signing key in "sig" records during a
2102         --with-colons --check-sigs.  This requires --no-sig-cache as well
2103         since we don't cache fingerprints.
2105         * parse-packet.c (parse_signature): No need to reserve 8 bytes for
2106         the unhashed signature cache any longer.
2108         * misc.c (pct_expando): Add two new expandos - signer's
2109         fingerprint (%g), and signer's primary fingerprint (%p).
2111         * g10.c (main): Add --rfc2440 alias for --openpgp since in a few
2112         months, they won't be the same thing.
2114         * keyserver.c (parse_keyserver_uri): Accept "http" as an alias for
2115         "hkp", since it is occasionally written that way.
2116         (keyserver_spawn): Use ascii_isspace to avoid locale issues.
2118         * keygen.c (ask_user_id): Make --allow-freeform-uid apply to the
2119         email field as well as the name field, and allow mixing fields
2120         when it is set.
2122         * trustdb.c (validate_one_keyblock): Certifications on revoked or
2123         expired uids do not count in the web of trust.
2125         * signal.c (init_one_signal, pause_on_sigusr, do_block): Only use
2126         sigprocmask() if we have sigset_t, and only use sigaction() if we
2127         have struct sigaction.  This is for Forte c89 on Solaris which
2128         seems to define only the function call half of the two pairs by
2129         default.
2130         (pause_on_sigusr): Typo.
2131         (do_block): If we can't use sigprocmask() and sigset_t, try to get
2132         the number of signals from NSIG as well as MAXSIG, and if we
2133         can't, fail with an explanation.
2135         * signal.c, tdbio.c: Comment out the transaction code.  It was not
2136         used in this version, and was causing some build problems on
2137         quasi-posix platforms (Solaris and Forte c89).
2139         * keylist.c (list_keyblock_colon): Don't include validity values
2140         when listing secret keys since they can be incorrect and/or
2141         misleading.  This is a temporary kludge, and will be handled
2142         properly in 1.9/2.0.
2144         * mainproc.c (check_sig_and_print): Only show the "key available
2145         from" preferred keyserver line if the key is not currently
2146         present.
2148         * keyedit.c (sign_uids): Do not sign expired uids without --expert
2149         (same behavior as revoked uids).  Do not allow signing a user ID
2150         without a self-signature.  --expert overrides.  Add additional
2151         prompt to the signature level question.
2152         (menu_expire): When changing expiration dates, don't replace
2153         selfsigs on revoked uids since this would effectively unrevoke
2154         them. There is also no point in replacing expired selfsigs.  This
2155         is bug #181
2157         * g10.c (add_notation_data): Make sure that only ascii is passed
2158         to iscntrl.  Noted by Christian Biere.
2159         * getkey.c (classify_user_id2): Replaced isspace by spacep
2160         * keygen.c (ask_user_id): Ditto.
2161         (get_parameter_algo): Ditto.
2162         * keyedit.c (keyedit_menu): Ditto.
2163         * tdbdump.c (import_ownertrust): Ditto.  s/isxdigit/hexdigitp/.
2164         * revoke.c (ask_revocation_reason): 
2165         * keyserver.c (keyserver_spawn): Dito.
2167         * parse-packet.c (parse): Disallow old style partial length for
2168         all key material packets to avoid possible corruption of keyrings.
2170         * import.c (import_keys_internal): Invalidate the cache so that
2171         the file descriptor gets closed.  Fixes bug reported by Juan
2172         F. Codagnone.
2174         * options.h, g10.c (main), main.h, keylist.c (show_keyserver_url),
2175         mainproc.c (check_sig_and_print), parse-packet.c (dump_sig_subpkt,
2176         parse_one_sig_subpkt, can_handle_critical): Add read-only support
2177         for preferred keyserver subpackets.  They're basically policy URLs
2178         with a different name.  Add a verify-option
2179         "show-preferred-keyserver" to turn them on and off (on by default,
2180         as per stable branch).
2182         * g10.c (main): Add "--set-notation" as alias to "--notation-data"
2183         this is to make things consistent with --set-policy-url meaning
2184         both sigs and certs.
2186         * options.h, g10.c (main), keylist.c (list_keyblock_print): Add
2187         "show-validity" and "show-long-keyid" list-options.
2189         * gpgv.c (get_validity, trust_value_to_string): Stubs.
2191         * g10.c (main): Use SAFE_VERSION instead of VERSION in the
2192         version-specific gpg.conf file so it can be overridden on RISCOS.
2194         * keyedit.c (show_key_with_all_names): Fix assertion failure when
2195         using toggle to see a secret key.  Reported by Maxim Britov.
2198 2003-09-22  Timo Schulz  <twoaday@freakmail.de>
2200         * card-util.c (card_status): Free pk in case of an error
2201         and return if the card is no OpenPGP card.
2202         
2203 2003-09-18  Werner Koch  <wk@gnupg.org>
2205         * g10.c: New command --card-edit.
2206         * card-util.c (card_status): Use tty_fprintf for all output.
2207         (print_sha1_fpr, print_isoname): Ditto.
2208         (get_one_name,change_name, change_url, change_login,change_lang)
2209         (change_sex): New; taken from keygen.c.
2210         * keygen.c (smartcard_get_one_name, smartcard_change_name) 
2211         (smartcard_change_url, smartcard_change_login_data) 
2212         (smartcard_change_lang, smartcard_change_sex): Removed.
2213         (check_smartcard): Removed most menu items.
2215 2003-09-06  Werner Koch  <wk@gnupg.org>
2217         * misc.c (openpgp_pk_algo_usage): Allow AUTH where SIGN is allowed.
2219         * keygen.c (ask_passphrase): No need to allocated S2K in secure
2220         memory.
2222 2003-09-04  Werner Koch  <wk@gnupg.org>
2224         * keygen.c (do_add_key_flags, parse_parameter_usage) 
2225         (do_generate_keypair): Add support the proposed AUTH key flag.
2226         * getkey.c (fixup_uidnode, merge_selfsigs_main) 
2227         (merge_selfsigs_subkey, premerge_public_with_secret): Ditto.
2228         * keylist.c (print_capabilities): Ditto.
2230 2003-08-25  Timo Schulz  <twoaday@freakmail.de>
2232         * pkglue.c (mpi_from_sexp): New. Used to factor out
2233         some common code.
2234         
2235 2003-08-24  Werner Koch  <wk@gnupg.org>
2237         * keygen.c (do_generate_keypair): Print a reminder to use --gen-revoke.
2239 2003-08-18  Timo Schulz  <twoaday@freakmail.de>
2241         * encode.c (encode_sesskey): Checked the code and removed
2242         the warning since all compatibility checks with PGP succeeded.
2243         * mainproc.c (symkey_decrypt_sesskey): Better check for the
2244         algorithm and check the return values of some functions.
2245         * mdc.c (use_mdc): Simplified.
2246         
2247 2003-08-07  Werner Koch  <wk@gnupg.org>
2249         * pkglue.c (pk_sign): Fix last change.
2250         (pk_verify): Check for valid DATA array so that we don't segv in
2251         Libgcrypt.
2252         (pk_verify): Ditto.
2254 2003-08-06  Werner Koch  <wk@gnupg.org>
2256         * pkglue.c (pk_sign): Allow signing using RSA.
2258 2003-08-05  Werner Koch  <wk@gnupg.org>
2260         * Makefile.am (install-data-local): Dropped check for the ancient
2261         gpgm tool.
2262         (bin_PROGRAMS): Renamed gpg to gpg2 and gpgv to gpgv2.  This is so
2263         that it won't conflict with the current stable version of gpg.
2265         * pkglue.c (pk_check_secret_key): New.
2266         * seckey-cert.c (do_check): Reenable this test here again.
2268         * g10.c (main): Add command -K as an alias for
2269         --list-secret-keys. Command "-k" is now an alias to --list-keys.
2270         Remove special treatment of -kv and -kvv.
2271         (set_cmd): Ditto.
2272         (main): Strip a "-cvs" suffix when testing for a version specific
2273         config file.
2275         * status.h, status.c, g10.c [USE_SHM_COPROCESSING]: Removed.  This
2276         is not any longer available.
2278 2003-07-29  Werner Koch  <wk@gnupg.org>
2280         * g10.c (main): Add secmem features and set the random seed file.
2281         (g10_exit): Update the random seed file.
2283         * parse-packet.c (parse_signature,read_protected_v3_mpi)
2284         (parse_key): Fixed use of mpi_set_opaque.
2285         * keygen.c (gen_card_key): Ditto.
2287 2003-07-28  Werner Koch  <wk@gnupg.org>
2289         * status.c (progress_cb): Adjusted for use with Libcgrypt.
2290         (set_status_fd): Register that callback.
2292         * keygen.c (smartcard_change_login_data): New.
2293         (smartcard_change_lang): New.
2294         (smartcard_change_sex): New.
2295         (check_smartcard): Add menu entries to edit the above.
2296         (gen_elg,gen_dsa,gen_rsa): Reimplemented in terms of Libgcrypt.
2297         (genhelp_protect, genhelp_factors, key_from_sexp): New.
2298         * comment.c (make_comment_node_from_buffer): New.
2299         (make_comment_node): Reimplemented in terms of above.
2301 2003-07-27  Werner Koch  <wk@gnupg.org>
2303         Adjusted for gcry_mpi_print and gcry_mpi_scan API change.
2305 2003-07-24  Werner Koch  <wk@gnupg.org>
2307         * g10.c: New command --card-status.
2308         * card-util.c (card_status): New.
2309         * call-agent.c (learn_status_cb): Parse more information.
2311         * keylist.c (print_pubkey_info): Add FP arg for optional printing
2312         to a stream.  Changed all callers.
2314 2003-07-23  Werner Koch  <wk@gnupg.org>
2316         * keygen.c (generate_keypair): Create an AUTHKEYTYPE entry for cards.
2317         (do_generate_keypair): Abd generate the authkey.
2318         (check_smartcard): Changed menu accordingly.
2320 2003-07-22  Werner Koch  <wk@gnupg.org>
2322         * g10.c: New command --change-pin.
2323         * card-util.c: New.
2324         * call-agent.c (agent_scd_change_pin): New.
2325         (agent_release_card_info): New.
2326         * keygen.c (check_smartcard): Use it here.
2328 2003-07-16  Werner Koch  <wk@gnupg.org>
2330         * export.c (parse_export_options): New option sexp-format.
2331         (export_seckeys,export_secsubkeys): Check sexp-format option.
2332         (do_export): Ignore armor for sexp format.
2333         (do_export_stream): Handle sexp-format.
2334         (write_sexp_line,write_sexp_keyparm, build_sexp_seckey): New.
2335         (build_sexp): New.
2337 2003-07-03  Werner Koch  <wk@gnupg.org>
2339         * options.h (DBG_CIPHER): Reintroduced it. 
2340         * seskey.c (encode_session_key): Debug output of the session key.
2342         * pubkey-enc.c (get_it): Handle card case.
2343         * call-agent.c (agent_scd_pkdecrypt): New.
2344         * pkglue.c (pk_encrypt): Add RSA support.
2346         * g10.c (main): Default to --use-agent.
2348         * keygen.c (show_smartcard): Print info about the public key.
2349         (check_smartcard): Check for existing key here.
2350         (gen_card_key): And not anymore here.
2351         (fpr_is_zero): New.
2352         (generate_keypair): Generate both keys for a card.
2353         (smartcard_change_url): Nw.
2355 2003-07-02  Werner Koch  <wk@gnupg.org>
2357         * seckey-cert.c (is_secret_key_protected): Let it handle mode 1002.
2359 2003-07-01  Werner Koch  <wk@gnupg.org>
2361         * keygen.c (gen_card_key): Obviously we should use the creation
2362         date received from SCDAEMON, so that the fingerprints will match.
2363         * sign.c (do_sign): Pass the serialno to the sign code.
2364         * keyid.c (serialno_and_fpr_from_sk): New.
2366 2003-06-30  Werner Koch  <wk@gnupg.org>
2368         * call-agent.h (agent_card_info_s): Add field serialno.
2369         * call-agent.c (store_serialno): New.
2370         (learn_status_cb): Store the serial number.
2371         * keygen.c (gen_card_key): Store the serial number
2372         (check_smartcard): New argument to return the serial number.
2373         (generate_keypair): Get the serial number from check_smartcard and
2374         store it as a parameter.
2375         * parse-packet.c (parse_key): Use the protect.iv field to store the
2376         serial number.
2377         * build-packet.c (do_secret_key): Write the serial number.
2379 2003-06-27  Werner Koch  <wk@gnupg.org>
2381         * seckey-cert.c (check_secret_key): Bypass the unprotection for
2382         mode 1002.
2383         * sign.c (do_sign): Handle card case (i.e. mode 1002).
2385 2003-06-26  Werner Koch  <wk@gnupg.org>
2387         * build-packet.c (do_secret_key): Implement special protection
2388         mode 1002.
2389         * parse-packet.c (parse_key): Likewise.
2391         * keygen.c (smartcard_gen_key): New.
2392         * call-agent.c (agent_scd_setattr): New.
2394 2003-06-24  Werner Koch  <wk@gnupg.org>
2396         * Makefile.am: Removed signal.c
2398         * g10.c (emergency_cleanup): New.
2399         (main): Use gnupg_init_signals and register malloc for assuan.
2401 2003-06-23  Werner Koch  <wk@gnupg.org>
2403         * keyid.c (do_fingerprint_md): Made it work again.
2405 2003-06-19  Werner Koch  <wk@gnupg.org>
2407         Fixed all "==" comparisons against error code constants to use
2408         gpg_err_code().
2410         * import.c (import_secret_one): 
2411         (import_revoke_cert): 
2412         (chk_self_sigs): 
2414         * misc.c (openpgp_md_map_name): Check also for the Hx format.
2415         (openpgp_cipher_map_name): Check also for the Sx format.
2416         (pubkey_get_npkey): Adjusted for changed gcrypt API.
2417         (pubkey_get_nskey): Ditto.
2418         (pubkey_get_nsig): Ditto.
2419         (pubkey_get_nenc): Ditto.
2421 2003-06-18  Werner Koch  <wk@gnupg.org>
2423         Finished the bulk of changes for gnupg 1.9.  This included
2424         switching to libgcrypt functions, using shared error codes from
2425         libgpg-error, replacing the old functions we used to have in
2426         ../util by those in ../jnlib and ../common, renaming the malloc
2427         functions and a couple of types.  Note, that not all changes are
2428         listed below becuause they are too similar and done at far too
2429         many places.  As of today the code builds using the current
2430         libgcrypt from CVS but it is very unlikely that it actually works.
2431         
2432         * sig-check.c (cmp_help): Removed.  Was never used.
2434         * pkglue.c: New. Most stuff taken from gnupg 1.1.2.
2435         * pkglue.h: New.
2437         * misc.c (pull_in_libs): Removed.
2439         * keygen.c (count_chr): New.
2440         (ask_user_id): Removed faked RNG support.
2442         * misc.c (openpgp_md_map_name,openpgp_cipher_map_name)
2443         (openpgp_pk_map_name): New.
2445         * skclist.c (build_sk_list): Removed faked RNG support.
2446         (is_insecure): Removed.
2448         * comment.c (make_mpi_comment_node): Use gcry MPI print function.
2450         * keyid.c (v3_keyid): New.
2452         * misc.c (mpi_write,mpi_write_opaque,mpi_read,mpi_read_opaque)
2453         (mpi_print): New.  Taken from gnupg 1.1.2.
2454         (checksum_mpi): Replaced by implementation from 1.1.2.
2456         * g10.c (my_strusage): Renamed from strusage and return NULL
2457         instead calling a default function.
2458         (add_to_strlist2): New.  Taken from ../util/strgutil.c of gnupg 1.2.
2460         * plaintext.c (handle_plaintext): New arg CREATE_FILE to cope with
2461         the fact that gpg-error does not have this error code anymore.
2463         * mainproc.c (symkey_decrypt_sesskey): Ditto.
2465         * seskey.c (make_session_key): Adjusted for use with libgcrypt.
2466         (encode_session_key): Ditto.
2467         (do_encode_md): Ditto.
2468         (encode_md_value): Ditto.
2470         * keyring.c: Use libgpg-error instead of READ_ERROR etc.
2472         * g10.c: Adjusted all algorithm name/id mapping functions.
2473         (set_debug): Pass MPI and CRYPTO debug values to libgcrypt.
2475         * Makefile.am (INCLUDES): Define LOCALEDIR and the default error
2476         source.
2478         * g10.c (i18n_init): s/G10_LOCALEDIR/LOCALEDIR/.
2480         Renamed m_alloc et al to xmalloc et al.
2481         s/g10_errstr/gpg_strerror/
2482         s/MPI/gcry_mpi_t/
2483         Adjusted all md_open calls to the libgcrypt API.
2484         
2485         * build-packet.c (do_comment): Return error code from iobuf write
2486         function.
2487         (do_user_id): Ditto.
2488         (do_public_key): Ditto.
2490         * Makefile.am: Add new files, link gpg with libgpg-error.
2491         * g10.c, options.h: New option --agent-program.
2492         * call-agent.c: New.
2493         * gpg.h, call-agent.h: New.
2495 2003-06-03  David Shaw  <dshaw@jabberwocky.com>
2497         * options.h, g10.c (main), keylist.c (list_keyblock_print): Add
2498         "show-validity" and "show-long-keyid" list-options.
2500         * gpgv.c (get_validity, trust_value_to_string): Stubs.
2502         * g10.c (main): Use SAFE_VERSION instead of VERSION in the
2503         version-specific gpg.conf file so it can be overridden on RISCOS.
2505 2003-06-01  David Shaw  <dshaw@jabberwocky.com>
2507         * g10.c (main), keylist.c (show_policy_url, show_notation),
2508         mainproc.c (check_sig_and_print): Emulate the old policy and
2509         notation behavior (display by default).  Send to status-fd whether
2510         it is displayed on the screen or not.
2512         * g10.c (main): Since we now have some options in devel that won't
2513         work in a stable branch gpg.conf file, try for a version-specific
2514         gpg.conf-VERSION file before falling back to gpg.conf.
2516         * main.h, options.h: Move various option flags to options.h.
2518 2003-05-31  David Shaw  <dshaw@jabberwocky.com>
2520         * mainproc.c (check_sig_and_print), main.h, keylist.c
2521         (show_policy, show_notation): Collapse the old print_notation_data
2522         into show_policy() and show_notation() so there is only one
2523         function to print notations and policy URLs.
2525         * options.h, main.h, g10.c (main), keyedit.c
2526         (print_and_check_one_sig), keylist.c (list_one,
2527         list_keyblock_print), pkclist.c (do_edit_ownertrust), sign.c
2528         (mk_notation_and_policy): New "list-options" and "verify-options"
2529         commands.  These replace the existing
2530         --show-photos/--no-show-photos,
2531         --show-notation/--no-show-notation,
2532         --show-policy-url/--no-show-policy-url, and --show-keyring
2533         options.  The new method is more flexible since a user can specify
2534         (for example) showing photos during sig verification, but not in
2535         key listings.  The old options are emulated.
2537         * main.h, misc.c (parse_options): New general option line
2538         parser. Fix the bug in the old version that did not handle report
2539         syntax errors after a valid entry.
2541         * import.c (parse_import_options), export.c
2542         (parse_export_options): Call it here instead of duplicating the
2543         code.
2545 2003-05-30  David Shaw  <dshaw@jabberwocky.com>
2547         * keylist.c (list_one): Don't show the keyring filename when in
2548         --with-colons mode.  Actually translate "Keyring" string.
2550         * mainproc.c (proc_tree): We can't currently handle multiple
2551         signatures of different classes or digests (we'd pretty much have
2552         to run a different hash context for each), but if they are all the
2553         same, make an exception.  This is Debian bug #194292.
2555         * sig-check.c (check_key_signature2): Make string translatable.
2557         * packet.h, getkey.c (fixup_uidnode): Mark real primary uids
2558         differently than assumed primaries.
2560         * keyedit.c (no_primary_warning): Use the differently marked
2561         primaries here in a new function to warn when an --edit-key
2562         command might rearrange the self-sig dates enough to change which
2563         uid is primary.
2564         (menu_expire, menu_set_preferences): Use no_primary_warning()
2565         here.
2567         * Makefile.am: Use @DLLIBS@ for -ldl.
2569 2003-05-26  David Shaw  <dshaw@jabberwocky.com>
2571         * getkey.c (premerge_public_with_secret): Made "no secret subkey
2572         for" warning a verbose item and translatable. (From wk on stable
2573         branch)
2575         * sig-check.c (check_key_signature2): Made "no subkey for subkey
2576         binding packet" a verbose item instead of a !quiet one.  There are
2577         too many garbled keys out in the wild. (From wk on stable branch)
2579         * filter.h: Remove const from WHAT. (From wk on stable branch)
2581         * progress.c (handle_progress): Store a copy of
2582         NAME. (progress_filter): Release WHAT, make sure not to print a
2583         NULL WHAT. (From wk on stable branch)
2585         * openfile.c (open_sigfile): Adjust free for new progress
2586         semantics. (From wk on stable branch)
2588         * plaintext.c (ask_for_detached_datafile): Don't dealloc
2589         pfx->WHAT. (From wk on stable branch)
2591         * seckey-cert.c (do_check): Issue the RSA_OR_IDEA status when the
2592         cipher algo is IDEA to make it easier to track down the
2593         problem. (From twoaday on stable branch)
2594         
2595 2003-05-24  David Shaw  <dshaw@jabberwocky.com>
2597         * armor.c, g10.c, kbnode.c, misc.c, pkclist.c, sign.c,
2598         build-packet.c, getkey.c, keydb.c, openfile.c, plaintext.c,
2599         status.c, gpgv.c, keygen.c, options.h, sig-check.c, tdbio.h,
2600         encode.c, mainproc.c, parse-packet.c, signal.c, textfilter.c: Edit
2601         all preprocessor instructions to remove whitespace before the '#'.
2602         This is not required by C89, but there are some compilers out
2603         there that don't like it.
2605 2003-05-21  David Shaw  <dshaw@jabberwocky.com>
2607         * trustdb.h, trustdb.c (is_disabled), gpgv.c (is_disabled): Rename
2608         is_disabled to cache_disabled_value, which now takes a pk and not
2609         just the keyid. This is for speed since there is no need to
2610         re-fetch a key when we already have that key handy.  Cache the
2611         result of the check so we don't need to hit the trustdb more than
2612         once.
2613         
2614         * getkey.c (skip_disabled): New function to get a pk and call
2615         is_disabled on it. (key_byname): Use it here.
2616         
2617         * packet.h, getkey.c (skip_disabled), keylist.c
2618         (print_capabilities): New "pk_is_disabled" macro to retrieve the
2619         cached disabled value if available, and fill it in via
2620         cache_disabled_value if not available.
2622         * trustdb.c (get_validity): Cache the disabled value since we have
2623         it handy and it might be useful later.
2625         * parse-packet.c (parse_key): Clear disabled flag when parsing a
2626         new key.  Just in case someone forgets to clear the whole key.
2628         * getkey.c (merge_selfsigs_main): Add an "if all else fails" path
2629         for setting a single user ID primary when there are multiple set
2630         primaries all at the same second, or no primaries set and the most
2631         recent user IDs are at the same second, or no signed user IDs at
2632         all. This is arbitrary, but deterministic.
2634         * exec.h, photoid.h: Add copyright message.
2636         * keylist.c (list_keyblock_print): Don't dump attribs for
2637         revoked/expired/etc uids for non-colon key listings.  This is for
2638         consistency with --show-photos.
2640         * main.h, keylist.c (dump_attribs), mainproc.c
2641         (check_sig_and_print): Dump attribs if --attrib-fd is set when
2642         verifying signatures.
2643         
2644         * g10.c (main): New --gnupg option to disable the various
2645         --openpgp, --pgpX, etc. options.  This is the same as --no-XXXX
2646         for those options.
2648         * revoke.c (ask_revocation_reason): Clear old reason if user
2649         elects to repeat question.  This is bug 153.
2651         * keyedit.c (sign_uids): Show keyid of the key making the
2652         signature.
2654 2003-05-21  Werner Koch  <wk@gnupg.org>
2656         * progress.c (handle_progress)
2657         * sign.c (write_plaintext_packet)
2658         * encode.c (encode_simple,encode_crypt): Make sure that a filename
2659         of "-" is considered to be stdin so that iobuf_get_filelength
2660         won't get called.  This fixes bug 156 reported by Gregery Barton.
2662 2003-05-02  David Shaw  <dshaw@jabberwocky.com>
2664         * packet.h, build-packet.c (build_sig_subpkt), export.c
2665         (do_export_stream), import.c (remove_bad_stuff, import),
2666         parse-packet.c (dump_sig_subpkt, parse_one_sig_subpkt): Remove
2667         vestigal code for the old sig cache subpacket.  This wasn't
2668         completely harmless as it caused subpacket 101 to disappear on
2669         import and export.
2671         * options.h, armor.c, cipher.c, g10.c, keyedit.c, pkclist.c,
2672         sign.c, encode.c, getkey.c, revoke.c: The current flags for
2673         different levels of PGP-ness are massively complex.  This is step
2674         one in simplifying them. No functional change yet, just use a
2675         macro to check for compliance level.
2677         * sign.c (sign_file): Fix bug that causes spurious compression
2678         preference warning.
2680         * sign.c (clearsign_file): Fix bug that prevents proper warning
2681         message from appearing when clearsigning in --pgp2 mode with a
2682         non-v3 RSA key.
2684         * main.h, misc.c (compliance_option_string, compliance_string,
2685         compliance_failure), pkclist.c (build_pk_list), sign.c (sign_file,
2686         clearsign_file), encode.c (encode_crypt,
2687         write_pubkey_enc_from_list): New functions to put the "this
2688         message may not be usable...." warning in one place.
2690         * options.h, g10.c (main): Part two of the simplification.  Use a
2691         single enum to indicate what we are compliant to (1991, 2440,
2692         PGPx, etc.)
2694         * g10.c (main): Show errors for failure in export, send-keys,
2695         recv-keys, and refresh-keys.
2697         * options.h, g10.c (main): Give algorithm warnings for algorithms
2698         chosen against the --pgpX and --openpgp rules.
2700         * keydb.h, pkclist.c (algo_available): Make TIGER192 invalid in
2701         --openpgp mode.
2703         * sign.c (sign_file), pkclist.c (algo_available): Allow passing a
2704         hint of 0.
2706 2003-05-01  David Shaw  <dshaw@jabberwocky.com>
2708         * tdbio.c (create_version_record): Only create new trustdbs with
2709         TM_CLASSIC or TM_PGP.
2711         * trustdb.h, trustdb.c (trust_string, get_ownertrust_string,
2712         get_validity_string, ask_ownertrust, validate_keys), pkclist.c
2713         (do_edit_ownertrust): Rename trust_string to trust_value_to_string
2714         for naming consistency.
2716         * trustdb.h, trustdb.c (string_to_trust_value): New function to
2717         translate a string to a trust value.
2719         * g10.c (main): Use string_to_trust_value here for
2720         --force-ownertrust.
2721         
2722         * options.h, g10.c (main), trustdb.c (trust_model_string,
2723         init_trustdb, check_trustdb, update_trustdb, get_validity,
2724         validate_one_keyblock): An "OpenPGP" trust model is misleading
2725         since there is no official OpenPGP trust model.  Use "PGP"
2726         instead.
2728 2003-04-30  David Shaw  <dshaw@jabberwocky.com>
2730         * build-packet.c (build_sig_subpkt): Comments.
2732         * exec.c (exec_write): Cast NULL to void* to properly terminate
2733         varargs list.
2735         * keyedit.c (show_key_with_all_names): Just for safety, catch an
2736         invalid pk algorithm.
2738         * sign.c (make_keysig_packet): Crucial that the call to mksubpkt
2739         comes LAST before the calls to finalize the sig as that makes it
2740         possible for the mksubpkt function to get a reliable pointer to
2741         the subpacket area.
2743         * pkclist.c (do_we_trust_pre): If an untrusted key was chosen by a
2744         particular user ID, use that ID as the one to ask about when
2745         prompting whether to use the key anyway.
2746         (build_pk_list): Similar change here when adding keys to the
2747         recipient list.
2749         * trustdb.c (update_validity): Fix bug that prevented more than
2750         one validity record per trust record.
2751         (get_validity): When retrieving validity for a (user) supplied
2752         user ID, return the validity for that user ID only, and do not
2753         fall back to the general key validity.
2754         (validate_one_keyblock): Some commentary on whether
2755         non-self-signed user IDs belong in the web of trust (arguably,
2756         they do).
2758 2003-04-27  David Shaw  <dshaw@jabberwocky.com>
2760         * g10.c (main): Add --no-textmode.
2762         * export.c (do_export_stream), keyedit.c (show_key_with_all_names,
2763         menu_addrevoker), mainproc.c (check_sig_and_print), photoid.c
2764         (show_photos), sign.c (mk_notation_and_policy), trustdb.c
2765         (get_validity, reset_trust_records, validate_keys): Make some
2766         strings translatable.
2768         * mainproc.c (check_sig_and_print): Show digest algorithm and sig
2769         class when verifying a sig with --verbose on, and add version, pk
2770         and hash algorithms and sig class to VALIDSIG.
2771         
2772         * parse-packet.c (enum_sig_subpkt): Make a warning message a
2773         --verbose warning message since we don't need to warn every time
2774         we see an unknown critical (we only need to invalidate the
2775         signature).
2777         * trustdb.c (init_trustdb): Check the trustdb options even with
2778         TM_AUTO since the auto may become TM_CLASSIC or TM_OPENPGP.
2780 2003-04-26  David Shaw  <dshaw@jabberwocky.com>
2782         * sign.c (do_sign): Show the hash used when making a signature in
2783         verbose mode.
2785         * tdbio.h, tdbio.c (tdbio_read_model): New function to return the
2786         trust model used in a given trustdb.
2788         * options.h, g10.c (main), trustdb.c (init_trustdb, check_trustdb,
2789         update_trustdb): Use tdbio_read_model to implement an "auto" trust
2790         model which is set via the trustdb.
2792 2003-04-23  David Shaw  <dshaw@jabberwocky.com>
2794         * import.c (import_revoke_cert): Remove ultimate trust when
2795         revoking an ultimately trusted key.
2797         * keyedit.c (sign_uids): Allow replacing expired signatures.
2798         Allow duplicate signatures with --expert.
2800         * pkclist.c (check_signatures_trust): Don't display a null
2801         fingerprint when checking a signature with --always-trust enabled.
2803         * filter.h (progress_filter_context_t), progress.c
2804         (handle_progress), plaintext.c (ask_for_detached_datafile,
2805         hash_datafiles): Fix compiler warnings.  Make "what" constant.
2807         * build-packet.c (do_plaintext): Do not create invalid literal
2808         packets with >255-byte names.
2810 2003-04-15  Werner Koch  <wk@gnupg.org>
2812         * Makefile.am (AM_CFLAGS): Make use of AM_CFLAGS and AM_LDFLAGS.
2814         * g10.c, options.h: New option --enable-progress-filter.
2815         * progress.c (handle_progress): Make use of it.
2817 2003-04-15  Marcus Brinkmann  <marcus@g10code.de>
2819         * progress.c: New file.
2820         * Makefile.am (common_source): Add progress.c.
2821         * filter.h (progress_filter_context_t): New type.
2822         (progress_filter, handle_progress): New prototypes.
2823         * main.h (open_sigfile): New argument for prototype.
2824         * openfile.c (open_sigfile): New argument to install progress
2825         filter.
2826         * encode.c (encode_simple): New variable PFX.  Register
2827         progress filter.  Install text_filter after that.
2828         (encode_crypt): Likewise.
2829         * sign.c (sign_file): Likewise.
2830         (clearsign_file): Likewise.
2831         * decrypt.c (decrypt_message): Likewise.
2832         (decrypt_messages): Likewise.
2833         * verify.c (verify_signatures): Likewise.
2834         (verify_one_file): Likewise.
2835         * plaintext.c (hash_datafiles): Likewise.
2836         (ask_for_detached_datafile): Likewise.
2838 2003-04-10  Werner Koch  <wk@gnupg.org>
2840         * passphrase.c (read_passphrase_from_fd): Do a dummy read if the
2841         agent is to be used.  Noted by Ingo Klöcker.
2842         (agent_get_passphrase): Inhibit caching when we have no
2843         fingerprint.  This is required for key generation as well as for
2844         symmetric only encryption.
2846         * passphrase .c (agent_get_passphrase): New arg CANCELED.
2847         (passphrase_to_dek): Ditto.  Passed to above.  Changed all
2848         callers to pass NULL.
2849         * seckey-cert.c (do_check): New arg CANCELED.
2850         (check_secret_key): Terminate loop when canceled.
2852         * keyedit.c (change_passphrase): Pass ERRTEXT untranslated to
2853         passphrase_to_dek and translate where appropriate.
2854         * seckey-cert.c (check_secret_key): Ditto.
2855         * keygen.c (ask_passphrase): Ditto.
2856         * passphrase.c (agent_get_passphrase): Translate the TRYAGAIN_TEXT.
2857         Switch the codeset to utf-8.
2859 2003-04-09  Werner Koch  <wk@gnupg.org>
2861         * decrypt.c (decrypt_messages): Fixed error handling; the function
2862         used to re-loop with same file after an error.  Reported by Joseph
2863         Walton.
2865 2003-04-08  David Shaw  <dshaw@jabberwocky.com>
2867         * main.h, g10.c (main), import.c (parse_import_options,
2868         fix_pks_corruption): It's really PKS corruption, not HKP
2869         corruption.  Keep the old repair-hkp-subkey-bug command as an
2870         alias.
2872         * g10.c (main): Rename --no-version to --no-emit-version for
2873         consistency.  Keep --no-version as an alias.
2875 2003-04-04  David Shaw  <dshaw@jabberwocky.com>
2877         * pkclist.c (algo_available): PGP 8 can use the SHA-256 hash.
2879         * sign.c (sign_file, clearsign_file, sign_symencrypt_file): Remove
2880         unused code.
2882 2003-04-01  Werner Koch  <wk@gnupg.org>
2884         * mainproc.c (check_sig_and_print): Add primary key fpr to VALIDSIG
2885         status.
2887 2003-03-24  David Shaw  <dshaw@jabberwocky.com>
2889         * keydb.h: Err on the side of making an unknown signature a SIG
2890         rather than a CERT.
2892         * import.c (delete_inv_parts): Discard any key signatures that
2893         aren't key types (i.e. 0x00, 0x01, etc.)
2895         * g10.c (main): Add deprecated option warning for
2896         --list-ownertrust.  Add --compression-algo alias for
2897         --compress-algo.  Change --version output strings to match
2898         "showpref" strings, and make translatable.
2900         * status.c (do_get_from_fd): Accept 'y' as well as 'Y' for
2901         --command-fd boolean input.
2903         * trustdb.c: Fix typo (DISABLE_REGEXP -> DISABLE_REGEX)
2905         * keyedit.c (show_key_with_all_names_colon): Show no-ks-modify
2906         flag.
2908 2003-03-11  David Shaw  <dshaw@jabberwocky.com>
2910         * options.h, g10.c (main), keyserver.c (kopts): Add "try-dns-srv"
2911         keyserver option.  Defaults to on.
2913         * passphrase.c (agent_get_passphrase): Fix memory leak with
2914         symmetric messages.  Fix segfault with symmetric messages.  Fix
2915         incorrect prompt with symmetric messages.
2917 2003-03-10  Werner Koch  <wk@gnupg.org>
2919         * compress.c (init_uncompress): Use a 15 bit window size so that
2920         the output of implementations which don't run for PGP 2
2921         compatibility won't get garbled.
2923 2003-03-04  David Shaw  <dshaw@jabberwocky.com>
2925         * trustdb.c (validate_keys): Mask the ownertrust when building the
2926         list of fully valid keys so that disabled keys are still counted
2927         in the web of trust.
2928         (get_ownertrust_with_min): Do the same for the minimum ownertrust
2929         calculation.
2931         * parse-packet.c (dump_sig_subpkt): Show the notation names for
2932         not-human-readable notations.  Fix cosmetic off-by-one length
2933         counter.
2935         * options.skel: Add explantion and commented-out
2936         "no-mangle-dos-filenames".
2938         * mainproc.c (proc_encrypted): Make string translatable.
2940         * keyserver.c (keyserver_spawn): Quote ':', '%', and any 8-bit
2941         characters in the uid strings sent to the keyserver helper.
2943         * keyring.c (keyring_rebuild_cache): Lock the keyring while
2944         rebuilding the signature caches to prevent another gpg from
2945         tampering with the temporary copy.
2947         * keygen.c (keygen_set_std_prefs): Include AES192 and AES256 in
2948         default prefs.
2950         * keyedit.c (show_prefs): Make strings translatable.
2952         * keydb.c: Double the maximum number of keyrings to 40.
2954         * gpgv.c (main): Fix bug #113 - gpgv should accept the
2955         --ignore-time-conflict option.
2957         * g10.c (main): --openpgp disables --pgpX.  Double the amount of
2958         secure memory to 32k (keys are getting bigger these days).
2960         * Makefile.am: Makefile.am: Use @CAPLIBS@ to link in -lcap if we
2961         are using capabilities.
2963 2003-02-26  David Shaw  <dshaw@jabberwocky.com>
2965         * keyserver.c (keyserver_spawn): Include various pieces of
2966         information about the key in the data sent to the keyserver
2967         helper.  This allows the helper to use it in instructing a remote
2968         server which may not have any actual OpenPGP smarts in parsing
2969         keys.
2971         * main.h, export.c (export_pubkeys_stream, do_export_stream): Add
2972         ability to return only the first match in an exported keyblock for
2973         keyserver usage.  This should be replaced at some point with a
2974         more flexible solution where each key can be armored seperately.
2976 2003-02-22  David Shaw  <dshaw@jabberwocky.com>
2978         * sign.c (sign_file): Do not push textmode filter onto an unopened
2979         IOBUF (segfault).  Noted by Marcus Brinkmann.  Push and
2980         reinitialize textmode filter for each file in a multiple file
2981         list.
2983         * packet.h, getkey.c (fixup_uidnode), keyedit.c (show_prefs): Set
2984         and show the keyserver no-modify flag.
2986         * keygen.c (add_keyserver_modify): New.
2987         (keygen_upd_std_prefs): Call it here.
2988         (keygen_set_std_prefs): Accept "ks-modify" and "no-ks-modify" as
2989         prefs to set and unset keyserver modify flag.
2991         * g10.c (main): Accept "s1" in addition to "idea" to match the
2992         other ciphers.
2994         * main.h, misc.c (idea_cipher_warn): We don't need this if IDEA
2995         has been disabled.
2997 2003-02-21  David Shaw  <dshaw@jabberwocky.com>
2999         * keygen.c (keygen_set_std_prefs): Don't put AES or CAST5 in
3000         default prefs if they are disabled.
3002         * g10.c (main): Use 3DES instead of CAST5 if we don't have CAST5
3003         support.  Use 3DES for the s2k cipher in --openpgp mode.
3004         (print_mds): #ifdef all of the optional digest algorithms.
3006 2003-02-12  David Shaw  <dshaw@jabberwocky.com>
3008         * keydb.h, getkey.c (classify_user_id, classify_user_id2): Make
3009         'exact' a per-desc item.  Merge into one function since
3010         'force_exact' is no longer needed.
3011         (key_byname): Use new classify_user_id function, and new exact
3012         flag in KEYDB_SEARCH_DESC.
3014         * keyring.h, keyring.c (keyring_search): Return an optional index
3015         to show which KEYDB_SEARCH_DESC was the matching one.
3017         * keydb.h, keydb.c (keydb_search): Rename to keydb_search2, and
3018         pass the optional index to keyring_search.  Add a macro version of
3019         keydb_search that calls this new function.
3021         * export.c (do_export_stream): If the keyid! syntax is used,
3022         export only that specified key.  If the key in question is a
3023         subkey, export the primary plus that subkey only.
3025 2003-02-11  David Shaw  <dshaw@jabberwocky.com>
3027         * exec.c (set_exec_path): Add debugging line.
3029         * g10.c (print_hex, print_mds): Print long hash strings a lot
3030         neater.  This assumes at least an 80-character display, as there
3031         are a few other similar assumptions here and there.  Users who
3032         need unformatted hashes can still use with-colons.  Check that
3033         SHA384 and 512 are available before using them as they are no
3034         longer always available.
3036         * Makefile.am: Use a local copy of libexecdir along with @PACKAGE@
3037         as GNUPG_LIBEXECDIR so it can be easily overridden at make time.
3039 2003-02-04  David Shaw  <dshaw@jabberwocky.com>
3041         * armor.c (parse_hash_header, armor_filter): Accept the new SHAs
3042         in the armor Hash: header.
3044         * g10.c (print_hex): Print long hash strings a little neater.
3045         (print_mds): Add the new SHAs to the hash list.
3047 2003-02-02  David Shaw  <dshaw@jabberwocky.com>
3049         * keyedit.c (menu_revuid): Properly handle a nonselfsigned uid on
3050         a v4 key (treat as a v4 revocation).
3052         * import.c (print_import_check): Do not re-utf8 convert user IDs.
3054 2003-01-27  David Shaw  <dshaw@jabberwocky.com>
3056         * mainproc.c (list_node): Show signature expiration date in
3057         with-colons sig records.
3059         * keylist.c (list_keyblock_colon), mainproc.c (list_node): Show
3060         trust sig information in with-colons sig records.
3062 2003-01-16  David Shaw  <dshaw@jabberwocky.com>
3064         * g10.c (add_group): Trim whitespace after a group name so it does
3065         not matter where the user puts the = sign.
3067         * options.skel: Comment out the first three lines in case someone
3068         manually copies the skel file to their homedir.
3070         * sign.c (clearsign_file): Only use pgp2mode with v3 keys and
3071         MD5. This matches what we do when decoding such messages and
3072         prevents creating a message (v3+RIPEMD/160) that we can't verify.
3074         * sig-check.c (signature_check2): Use G10ERR_GENERAL as the error
3075         for signature digest conflict.  BAD_SIGN implies that a signature
3076         was checked and we may try and print out a user ID for a key that
3077         doesn't exist.
3079 2003-01-15  David Shaw  <dshaw@jabberwocky.com>
3081         * trustdb.c (init_trustdb, get_validity): Don't use a changed
3082         trust model to indicate a dirty trustdb, and never auto-rebuild a
3083         dirty trustdb with the "always" trust model.
3085         * g10.c (add_group): Last commit missed the \t ;)
3087 2003-01-14  David Shaw  <dshaw@jabberwocky.com>
3089         * packet.h, parse-packet.c (setup_user_id), free-packet.c
3090         (free_user_id), keydb.h, keyid.c (namehash_from_uid): New function
3091         to rmd160-hash the contents of a user ID packet and cache it in
3092         the uid object.
3094         * keylist.c (list_keyblock_colon): Use namehash in field 8 of
3095         uids.  Show dates for creation (selfsig date), and expiration in
3096         fields 6 and 7.
3098         * trustdb.c (get_validity, get_validity_counts, update_validity):
3099         Use new namehash function rather than hashing it locally.
3101 2003-01-14  Werner Koch  <wk@gnupg.org>
3103         * g10.c (add_group): Fixed group parsing to allow more than one
3104         delimiter in a row and also allow tab as delimiter.
3106 2003-01-12  David Shaw  <dshaw@jabberwocky.com>
3108         * tdbio.c (tdbio_set_dbname): Fix assertion failure with
3109         non-fully-qualified trustdb names.
3111 2003-01-11  David Shaw  <dshaw@jabberwocky.com>
3113         * trustdb.c (get_validity_info, get_ownertrust_info,
3114         trust_letter): Simplify by returning a ? for error directly.
3116         * keyedit.c (show_key_with_all_names): Use get_validity_string and
3117         get_ownertrust_string to show full word versions of trust
3118         (i.e. "full" instead of 'f').
3120         * trustdb.h, trustdb.c (get_ownertrust_string,
3121         get_validity_string): Same as get_ownertrust_info, and
3122         get_validity_info, except returns a full string.
3124         * trustdb.c (get_ownertrust_with_min): New.  Same as
3125         'get_ownertrust' but takes the min_ownertrust value into account.
3127 2003-01-10  David Shaw  <dshaw@jabberwocky.com>
3129         * armor.c (armor_filter): Comment about PGP's end of line tab
3130         problem.
3132         * trustdb.h, trustdb.c (trust_letter): Make
3133         static. (get_ownertrust_info, get_validity_info): Don't mask the
3134         trust level twice.
3136         * trustdb.h, gpgv.c, trustdb.c (get_validity, get_validity_info),
3137         keylist.c (list_keyblock_colon), keyedit.c
3138         (show_key_with_all_names_colon, menu_revuid): Pass a user ID in
3139         rather than a namehash, so we only have to do the hashing in one
3140         place.
3142         * packet.h, pkclist.c (build_pk_list), free-packet.c
3143         (release_public_key_parts): Remove unused namehash element for
3144         public keys.
3146 2003-01-07  David Shaw  <dshaw@jabberwocky.com>
3148         * keygen.c (keygen_set_std_prefs): Warn when setting an IDEA
3149         preference when IDEA is not available.
3151 2003-01-06  David Shaw  <dshaw@jabberwocky.com>
3153         * trustdb.c (get_validity_info): 'd' for disabled is not a
3154         validity value any more.
3156         * packet.h, tdbio.h, tdbio.c (tdbio_read_record,
3157         tdbio_write_record), trustdb.c (update_validity): Store temporary
3158         full & marginal counts in the trustdb.
3159         (clear_validity, get_validity_counts): Return and clear temp
3160         counts.
3161         (store_validation_status): Keep track of which keyids have been
3162         stored.
3163         (validate_one_keyblock, validate_key_list): Use per-uid copies of
3164         the full & marginal counts so they can be recalled for multiple
3165         levels.
3166         (validate_keys): Only use unused keys for each new round.
3167         (reset_unconnected_keys): Rename to reset_trust_records, and only
3168         skip specifically excluded records.
3170         * keylist.c (print_capabilities): Show 'D' for disabled keys in
3171         capabilities section.
3173         * trustdb.c (is_disabled): Remove incorrect comment.
3175 2003-01-03  David Shaw  <dshaw@jabberwocky.com>
3177         * import.c (import_one): Only do the work to create the status
3178         display for interactive import if status is enabled.
3180         * keyring.c (keyring_search): skipfnc didn't work properly with
3181         non-keyid searches.  Noted by Stefan Bellon.
3183         * getkey.c (merge_selfsigs_main): Remove some unused code and make
3184         sure that the pk selfsigversion member accounts for 1F direct
3185         sigs.
3187 2003-01-02  Werner Koch  <wk@gnupg.org>
3189         * keydb.c (keydb_add_resource): Don't assume that try_make_homedir
3190         terminates but check again for the existence of the directory and
3191         continue then.
3192         * openfile.c (copy_options_file): Print a warning if the skeleton
3193         file has active options.
3195 2002-12-29  David Shaw  <dshaw@jabberwocky.com>
3197         * getkey.c (merge_selfsigs_main), main.h, sig-check.c
3198         (check_key_signature2): Pass the ultimately trusted pk directly to
3199         check_key_signature2 to avoid going through the key selection
3200         mechanism.  This prevents a deadly embrace when two keys without
3201         selfsigs each sign the other.
3203 2002-12-27  David Shaw  <dshaw@jabberwocky.com>
3205         * keyserver.c (keyserver_refresh): Don't print the "refreshing..."
3206         line if there are no keys to refresh or if there is no keyserver
3207         set.
3209         * getkey.c (merge_selfsigs_main): Any valid user ID should make a
3210         key valid, not just the last one.  This also fixes Debian bug
3211         #174276.
3213 2002-12-27  Stefan Bellon  <sbellon@sbellon.de>
3215         * import.c (print_import_check): Changed int to size_t.
3217 2002-12-27  David Shaw  <dshaw@jabberwocky.com>
3219         * keyedit.c (keyedit_menu, menu_revuid): Add "revuid" feature to
3220         revoke a user ID.  This is the same as issuing a revocation for
3221         the self-signature, but a much simpler interface to do it.
3223 2002-12-26  David Shaw  <dshaw@jabberwocky.com>
3225         * keydb.h, getkey.c (key_byname): Flag to enable or disable
3226         including disabled keys.  Keys specified via keyid (i.e. 0x...)
3227         are always included.
3229         * getkey.c (get_pubkey_byname, get_seckey_byname2,
3230         get_seckey_bynames), keyedit.c (keyedit_menu, menu_addrevoker):
3231         Include disabled keys in these functions.
3233         * pkclist.c (build_pk_list): Do not include disabled keys for -r
3234         or the key prompt.  Do include disabled keys for the default key
3235         and --encrypt-to.
3237         * trustdb.h, trustdb.c (is_disabled): New skipfnc for skipping
3238         disabled keys.
3240         * gpgv.c (is_disabled): Stub.
3242         * keygen.c (keygen_add_key_expire): Properly handle updating a key
3243         expiration to a no-expiration value.
3245         * keyedit.c (enable_disable_key): Comment.
3247         * import.c (import_one): When in interactive mode and --verbose,
3248         don't repeat some key information twice.
3250 2002-12-22  Timo Schulz  <ts@winpt.org>
3251         
3252         * import.c (print_import_check): New.
3253         (import_one): Use it here.
3254         Use merge_keys_and_selfsig in the interactive mode to avoid
3255         wrong key information.
3256         * status.h: Add new status code.
3257         * status.c: Ditto.
3258         
3259 2002-12-13  David Shaw  <dshaw@jabberwocky.com>
3261         * pkclist.c (do_we_trust): Tweak language to refer to the "named
3262         user" rather than "owner".  Noted by Stefan Bellon.
3264         * trustdb.h, trustdb.c (trustdb_pending_check): New function to
3265         check if the trustdb needs a check.
3267         * import.c (import_keys_internal): Used here so we don't rebuild
3268         the trustdb if it is still clean.
3269         (import_one, chk_self_sigs): Only mark trustdb dirty if the key
3270         that is being imported has any sigs other than self-sigs.
3271         Suggested by Adrian von Bidder.
3273         * options.skel: Include the required '=' sign in the sample
3274         'group' option.  Noted by Stefan Bellon.
3276         * import.c (chk_self_sigs): Don't try and check a subkey as if it
3277         was a signature.
3279 2002-12-11  David Shaw  <dshaw@jabberwocky.com>
3281         * tdbio.c (tdbio_read_record, tdbio_write_record): Compact the
3282         RECTYPE_TRUST records a bit.
3284         * g10.c (main): Comment out --list-trust-path until it can be
3285         implemented.
3287         * import.c (import_one): Warn when importing an Elgamal primary
3288         that this may take some time (to verify self-sigs).
3289         (chk_self_sigs): Try and cache all self-sigs so the keyblock is
3290         written to the keyring with a good rich cache.
3292         * keygen.c (ask_algo): Make the Elgamal sign+encrypt warning
3293         stronger, and remove the RSA sign+encrypt warning.
3295 2002-12-06  Stefan Bellon  <sbellon@sbellon.de>
3297         * options.h: Fixed typo (mangle_dos_names instead of
3298         mangle_dos_filenames).
3300 2002-12-05  Werner Koch  <wk@gnupg.org>
3302         * g10.c: New options --[no-]mangle-dos-filenames.
3303         * options.h (opt): Added mangle-dos-filenames.
3304         * openfile.c (open_outfile) [USE_ONLY_8DOT3]: Truncate the
3305         filename only when this option is set; this is the default.
3307 2002-12-04  David Shaw  <dshaw@jabberwocky.com>
3309         * main.h, keyedit.c, keygen.c: Back out previous (2002-12-01)
3310         change.  Minimal isn't always best.
3312         * sign.c (update_keysig_packet): Use the current time rather then
3313         a modification of the original signature time.  Make sure that
3314         this doesn't cause a time warp.
3316         * keygen.c (keygen_add_key_expire): Properly handle a key
3317         expiration date in the past (use a duration of 0).
3319         * keyedit.c (menu_expire): Use update_keysig_packet so any sig
3320         subpackets are maintained during the update.
3322         * build-packet.c (build_sig_subpkt): Mark sig expired or unexpired
3323         when the sig expiration subpacket is added.
3324         (build_sig_subpkt_from_sig): Handle making an expiration subpacket
3325         from a sig that has already expired (use a duration of 0).
3327         * packet.h, sign.c (update_keysig_packet), keyedit.c
3328         (menu_set_primary_uid, menu_set_preferences): Add ability to issue
3329         0x18 subkey binding sigs to update_keysig_packet and change all
3330         callers.
3332         * trustdb.c (validate_keys): Show trust parameters when building
3333         the trustdb, and make sure that the version record update was
3334         successful.
3335         (init_trustdb): If the current parameters aren't what was used for
3336         building the trustdb, the trustdb is invalid.
3338         * tbio.c (tdbio_db_matches_options): Update to work with new
3339         trustdbs.
3341 2002-12-03  David Shaw  <dshaw@jabberwocky.com>
3343         * tdbio.h, tdbio.c (tdbio_read_record, tdbio_write_record): Store
3344         trust model in the trustdb version record.
3345         (tdbio_update_version_record): New function to update version
3346         record values during a trustdb check or update.
3347         (tdbio_dump_record): Show trust model in dump.
3349         * trustdb.c (validate_keys): Call tdbio_update_version_record on
3350         success so that the correct options are stored in the trustdb.
3352         * options.h: rearrange trust models so that CLASSIC is 0 and
3353         OPENPGP is 1.
3355         * options.h, g10.c (main), encode.c (write_pubkey_enc_from_list),
3356         pkclist.c (algo_available), revoke.c (gen_revoke): Add --pgp8
3357         mode.  This is basically identical to --pgp7 in all ways except
3358         that signing subkeys, v4 data sigs (including expiration), and SK
3359         comments are allowed.
3361         * getkey.c (finish_lookup): Comment.
3363         * main.h, keylist.c (reorder_keyblock), keyedit.c (keyedit_menu):
3364         Reorder user ID display in the --edit-key menu to match that of
3365         the --list-keys display.
3367         * g10.c (add_notation_data): Fix initialization.
3369 2002-12-01  David Shaw  <dshaw@jabberwocky.com>
3371         * keyedit.c (menu_expire): Don't lose key flags when changing the
3372         expiration date of a subkey.  This is not the most optimal
3373         solution, but it is minimal change on the stable branch.
3375         * main.h, keygen.c (do_copy_key_flags): New function to copy key
3376         flags, if any, from one sig to another.
3377         (do_add_key_expire): New function to add key expiration to a sig.
3378         (keygen_copy_flags_add_expire): New version of
3379         keygen_add_key_expire that also copies key flags.
3380         (keygen_add_key_flags_and_expire): Use do_add_key_expire.
3382         * import.c (fix_hkp_corruption): Comment.
3384 2002-11-25  Stefan Bellon  <sbellon@sbellon.de>
3386         * plaintext.c (handle_plaintext) [__riscos__]: If nooutput is set,
3387         no filetype is needed obviously.
3389 2002-11-24  David Shaw  <dshaw@jabberwocky.com>
3391         * main.h, misc.c (default_cipher_algo, default_compress_algo):
3392         New.  Return the default algorithm by trying
3393         --cipher-algo/--compress-algo, then the first item in the pref
3394         list, then s2k-cipher-algo or ZIP.
3396         * sign.c (sign_file, sign_symencrypt_file), encode.c
3397         (encode_simple, encode_crypt): Call default_cipher_algo and
3398         default_compress_algo to get algorithms.
3400         * g10.c (main): Allow pref selection for compress algo with
3401         --openpgp.
3403         * mainproc.c (proc_encrypted): Use --s2k-digest-algo for
3404         passphrase mangling rather than --digest-algo.
3406         * sign.c (hash_for): If --digest-algo is not set, but
3407         --personal-digest-preferences is, then use the first hash
3408         algorithm in the personal list.  If the signing algorithm is DSA,
3409         then use the first 160-bit hash algorithm in the personal list.
3410         If --pgp2 is set and it's a v3 RSA key, use MD5.
3412         * g10.c (main), keydb.c (keydb_add_resource,
3413         keydb_locate_writable): Rename --default-keyring as
3414         --primary-keyring.  Stefan wins the naming contest.
3416 2002-11-23  David Shaw  <dshaw@jabberwocky.com>
3418         * g10.c (add_notation_data): Disallow notation names that do not
3419         contain a '@', unless --expert is set.  This is to help prevent
3420         people from polluting the (as yet unused) IETF namespace.
3422         * main.h: Comments about default algorithms.
3424         * photoid.c (image_type_to_string): Comments about 3-letter file
3425         extensions.
3427         * encode.c (encode_simple), passphrase.c (passphrase_to_dek),
3428         sign.c (sign_symencrypt_file): Use --s2k-digest-algo for
3429         passphrase mangling rather than --digest-algo.
3431 2002-11-21  David Shaw  <dshaw@jabberwocky.com>
3433         * keygen.c (keygen_set_std_prefs): Properly handle an empty
3434         preference string.
3436         * misc.c (string_to_compress_algo): "none" is a bad choice since
3437         it conflicts with the "none" in setpref.
3439 2002-11-14  David Shaw  <dshaw@jabberwocky.com>
3441         * g10.c (main): Allow compression algorithm names as the argument
3442         to --compress-algo.  The old algorithm names still work for
3443         backwards compatibility.
3445         * misc.c (string_to_compress_algo): Allow "none" as an alias for
3446         "uncompressed".
3448 2002-11-13  Stefan Bellon  <sbellon@sbellon.de>
3450         * getkey.c (get_pubkey_byfprint_fast): Fixed type incompatibility,
3451         was unsigned char instead of byte.
3453 2002-11-13  David Shaw  <dshaw@jabberwocky.com>
3455         * encode.c (encode_simple): Make sure that files larger than about
3456         4G use partial length encoding.  This is required because OpenPGP
3457         allows only for 32 bit length fields.  From Werner on stable
3458         branch.
3460         * getkey.c (get_pubkey_direct): Renamed to...
3461         (get_pubkey_fast): this and made extern.
3462         (get_pubkey_byfprint_fast): New.  From Werner on stable branch.
3464         * keydb.h, import.c (import_one): Use get_pubkey_fast instead of
3465         get_pubkey.  We don't need a merged key and actually this might
3466         lead to recursions.
3467         (revocation_present): Likewise for search by fingerprint.  From
3468         Werner on stable branch.
3470         * g10.c (main): Try to create the trustdb even for non-colon-mode
3471         list-key operations.  This is required because getkey needs to
3472         know whether a a key is ultimately trusted.  From Werner on stable
3473         branch.
3474         
3475         * exec.c [__CYGWIN32__]: Keep cygwin separate from Mingw32;
3476         we don't need it here as it behaves more like a Posix system.
3477         From Werner on stable branch.
3479         * passphrase.c (agent_get_passphrase): Ditto.  From Werner on
3480         stable branch.
3482         * tdbio.c (MY_O_BINARY): Need binary mode with Cygwin.  From
3483         Werner on stable branch.
3485         * g10.c, gpgv.c (main) [__CYGWIN32__]: Don't get the homedir from
3486         the registry.  From Werner on stable branch.
3487         
3488         * keyedit.c (show_key_with_all_names_colon): Make --with-colons
3489         --edit display match the validity and trust of --with-colons
3490         --list-keys.
3492         * passphrase.c (agent_send_all_options): Fix compile warning.
3494         * keylist.c (list_keyblock_colon): Validity for subkeys should
3495         match that of the primary key, and not that of the last user ID.
3497         * getkey.c (merge_selfsigs): Revoked/expired/invalid primary keys
3498         carry these facts onto all their subkeys, but only after the
3499         subkey has a chance to be marked valid.  This is to fix an
3500         incorrect "invalid public key" error verifying a signature made by
3501         a revoked signing subkey, with a valid unrevoked primary key.
3503 2002-11-09  Werner Koch  <wk@gnupg.org>
3505         * passphrase.c (agent_send_all_options): Use tty_get_ttyname to
3506         get the default ttyname.
3508 2002-11-07  David Shaw  <dshaw@jabberwocky.com>
3510         * keyring.h, keyring.c (keyring_register_filename): Return the
3511         pointer if a given keyring is registered twice.
3513         * keydb.h, keydb.c (keydb_add_resource): Use flags to indicate a
3514         default keyring.
3515         (keydb_locate_writable): Prefer the default keyring if possible.
3517         * g10.c (main): Add --default-keyring option.
3519 2002-11-06  David Shaw  <dshaw@jabberwocky.com>
3521         * options.h, g10.c (main), trustdb.c (ask_ownertrust): Add
3522         --force-ownertrust option for debugging purposes.  This allows
3523         setting a whole keyring to a given trust during an
3524         --update-trustdb.  Not for normal use - it's just easier than
3525         hitting "4" all the time to test a large trustdb.
3527         * pubkey-enc.c (get_session_key): With hidden recipients or try a
3528         given passphrase against all secret keys rather than trying all
3529         secret keys in turn.  Don't if --try-all-secrets or --status-fd is
3530         enabled.
3532         * passphrase.c (passphrase_to_dek): Mode 1 means do a regular
3533         passphrase query, but don't prompt with the key info.
3535         * seckey-cert.c (do_check, check_secret_key): A negative ask count
3536         means to enable passphrase mode 1.
3538         * keydb.h, getkey.c (enum_secret_keys): Add flag to include
3539         secret-parts-missing keys (or not) in the list.
3541 2002-11-05  David Shaw  <dshaw@jabberwocky.com>
3543         * keyserver.c (keyserver_search_prompt): When --with-colons is
3544         enabled, don't try and fit the search output to the screen size -
3545         just dump the whole list.
3547 2002-11-04  David Shaw  <dshaw@jabberwocky.com>
3549         * keyserver.c (keyserver_search_prompt): When --with-colons is
3550         enabled, just dump the raw keyserver protocol to stdout and don't
3551         print the menu.
3553         * keyserver.c (show_prompt): Don't show a prompt when command-fd
3554         is being used.
3556         * trustdb.c (trust_model_string, check_trustdb, update_trustdb,
3557         validate_one_keyblock): It's not clear what a trustdb rebuild or
3558         check means with a trust model other than "classic" or "openpgp",
3559         so disallow this.
3561 2002-11-03  David Shaw  <dshaw@jabberwocky.com>
3563         * options.h, g10.c (main): Add --trust-model option.  Current
3564         models are "openpgp" which is classic+trustsigs, "classic" which
3565         is classic only, and "always" which is the same as the current
3566         option --always-trust (which still works).  Default is "openpgp".
3568         * trustdb.c (validate_one_keyblock): Use "openpgp" trust model to
3569         enable trust sigs.
3571         * gpgv.c (main), mainproc.c (check_sig_and_print), pkclist.c
3572         (do_we_trust, do_we_trust_pre, check_signatures_trust): Use new
3573         --trust-model option in place of --always-trust.
3575         * keyedit.c (sign_mk_attrib, trustsig_prompt, sign_uids,
3576         keyedit_menu): Prompt for and create a trust signature with
3577         "tsign".  This is functional, but needs better UI text.
3579         * build-packet.c (build_sig_subpkt): Able to build trust and
3580         regexp subpackets.
3582         * pkclist.c (do_edit_ownertrust): Comment.
3584 2002-11-02  David Shaw  <dshaw@jabberwocky.com>
3586         * keygen.c (set_one_pref, keygen_set_std_prefs): Allow using the
3587         full algorithm name (CAST5, SHA1) rather than the short form (S3,
3588         H2).
3590         * main.h, keygen.c (keygen_get_std_prefs), keyedit.c
3591         (keyedit_menu): Return and use a fake uid packet rather than a
3592         string since we already have a nice parser/printer in
3593         keyedit.c:show_prefs.
3595         * main.h, misc.c (string_to_compress_algo): New.
3597 2002-11-01  David Shaw  <dshaw@jabberwocky.com>
3599         * g10.c (main): Add --no-throw-keyid.
3601         * keydb.h, encode.c (write_pubkey_enc_from_list), g10.c (main),
3602         pkclist.c (build_pk_list): Add --hidden-recipient (-R) and
3603         --hidden-encrypt-to, which do a single-user variation on
3604         --throw-keyid.  The "hide this key" flag is carried in bit 0 of
3605         the pk_list flags field.
3607         * keyserver.c (parse_keyrec): Fix shadowing warning.
3609 2002-10-31  Stefan Bellon  <sbellon@sbellon.de>
3611         * compress.c (init_compress) [__riscos__]: Use
3612         riscos_load_module() to load ZLib module.
3614         * g10.c (main) [__riscos__]: Renames due to changes in riscos.c
3615         (e.g. prefixes all RISC OS specific functions with riscos_*).
3616         * photoid.c (show_photos) [__riscos__]: Likewise.
3617         * signal.c (got_fatal_signal) [__riscos__]: Likewise.
3619         * trustdb.c (check_regexp) [__riscos__]: Branch to RISC OS RegEx
3620         handling.
3622 2002-10-31  David Shaw  <dshaw@jabberwocky.com>
3624         * build-packet.c (do_plaintext), encode.c (encode_sesskey,
3625         encode_simple, encode_crypt), sign.c (write_plaintext_packet): Use
3626         wipememory() instead of memset() to wipe sensitive memory as the
3627         memset() might be optimized away.
3629 2002-10-30  David Shaw  <dshaw@jabberwocky.com>
3631         * trustdb.c (check_regexp): Modern regexps require REG_EXTENDED.
3633 2002-10-29  David Shaw  <dshaw@jabberwocky.com>
3635         * packet.h, trustdb.h, trustdb.c (trust_string): New.  Return a
3636         string like "fully trusted", "marginally trusted", etc.
3637         (get_min_ownertrust): New.  Return minimum ownertrust.
3638         (update_min_ownertrust): New.  Set minimum ownertrust.
3639         (check_regexp): New.  Check a regular epression against a user ID.
3640         (ask_ownertrust): Allow specifying a minimum value.
3641         (get_ownertrust_info): Follow the minimum ownertrust when
3642         returning a letter.
3643         (clear_validity): Remove minimum ownertrust when a key becomes
3644         invalid.
3645         (release_key_items): Release regexp along with the rest of the
3646         info.
3647         (validate_one_keyblock, validate_keys): Build a trust sig chain
3648         while validating.  Call check_regexp for regexps.  Use the minimum
3649         ownertrust if the user does not specify a genuine ownertrust.
3651         * pkclist.c (do_edit_ownertrust): Only allow user to select a
3652         trust level greater than the minimum value.
3654         * parse-packet.c (can_handle_critical): Can handle critical trust
3655         and regexp subpackets.
3657         * trustdb.h, trustdb.c (clear_ownertrusts), delkey.c
3658         (do_delete_key), import.c (import_one): Rename clear_ownertrust to
3659         clear_ownertrusts and have it clear the min_ownertrust value as
3660         well.
3662         * keylist.c (list_keyblock_print): Indent uid to match pub and
3663         sig.
3665         * keyedit.c (print_and_check_one_sig, show_key_and_fingerprint,
3666         menu_addrevoker), keylist.c (list_keyblock_print,
3667         print_fingerprint): Show "T" or the trust depth for trust
3668         signatures, and add spaces to some strings to make room for it.
3670         * packet.h, parse-packet.c (dump_sig_subpkt, parse_one_sig_subpkt,
3671         parse_signature): Parse trust signature values.
3673         * tdbio.h, tdbio.c (tdbio_read_record, tdbio_write_record):
3674         Reserve a byte for the minimum ownertrust value (for use with
3675         trust signatures).
3677 2002-10-29  Stefan Bellon  <sbellon@sbellon.de>
3679         * build-packet.c (calc_plaintext, do_plaintext): Removed RISC OS
3680         specific filetype parts (it's now done in make_basename()).
3682         * plaintext.c (handle_plaintext): Tidied up RISC OS specific
3683         filetype parts.
3685         * encode.c (encode_simple, encode_crypt): Added argument to
3686         make_basename() call.
3688         * sign.c (write_plaintext_packet): Added argument to
3689         make_basename() call.
3691 2002-10-28  Stefan Bellon  <sbellon@sbellon.de>
3693         * build-packet.c (calc_plaintext, do_plaintext): Added filetype
3694         handling for RISC OS' file types.
3696         * plaintext.c (handle_plaintext) [__riscos__]: Added filetype
3697         handling for RISC OS' file types.
3699 2002-10-23  David Shaw  <dshaw@jabberwocky.com>
3701         * main.h, import.c (sec_to_pub_keyblock, import_secret_one,
3702         parse_import_options), g10.c (main): New import-option
3703         "convert-sk-to-pk" to convert a secret key into a public key
3704         during import.  It is on by default.
3706 2002-10-23  Werner Koch  <wk@gnupg.org>
3708         * pubkey-enc.c (get_it): Fix segv, test for revoked only when PK
3709         has been assigned.
3711 2002-10-18  Timo Schulz  <ts@winpt.org>
3713         * keylist.c: (print_pubkey_info): New.
3714         (print_seckey_info): New.
3715         * main.h: Prototypes for the new functions.       
3716         * delkey.c (do_delete_key): Use it here.
3717         * revoke.c (gen_desig_revoke): Ditto.
3718         
3719 2002-10-17  Werner Koch  <wk@gnupg.org>
3721         * pkclist.c (do_edit_ownertrust): Show all user IDs.  This should
3722         be enhanced to also show the current trust level.  Suggested by
3723         Florian Weimer.
3725 2002-10-17  David Shaw  <dshaw@jabberwocky.com>
3727         * g10.c (main): Handle --strict and --no-strict from the command
3728         line before the options file is loaded.
3730 2002-10-15  David Shaw  <dshaw@jabberwocky.com>
3732         * g10.c (main): Disable --textmode when encrypting (symmetric or
3733         pk) in --pgp2 mode as PGP 2 can't handle the unknown length
3734         literal packet.  Reported by Michael Richardson.
3736 2002-10-14  David Shaw  <dshaw@jabberwocky.com>
3738         * keyserver-internal.h, keyserver.c (print_keyrec, parse_keyrec,
3739         show_prompt, keyserver_search_prompt, keyserver_spawn): Go to
3740         version 1 of the keyserver protocol.  This is a better design,
3741         similar to --with-colons, that allows for keys with multiple user
3742         IDs rather than using multiple keys.  It also matches the machine
3743         readable pksd format.  Also use a prettier --search-keys listing
3744         format that can fill different size windows (currently set at 24
3745         lines).
3747 2002-10-12  Werner Koch  <wk@gnupg.org>
3749         * keygen.c (print_status_key_created): New.
3750         (do_generate_keypair): Use it to print the fingerprint.
3751         (generate_subkeypair): Likewise.
3753 2002-10-11  David Shaw  <dshaw@jabberwocky.com>
3755         * keyedit.c (menu_addrevoker): Properly back out if the signature
3756         fails.  Also, do not allow appointing the same revoker twice, and
3757         report ALREADY_SIGNED if the user tries it.
3759 2002-10-07  David Shaw  <dshaw@jabberwocky.com>
3761         * import.c (import_keys_internal): Missed one s/inp/inp2/.
3763         * keylist.c (print_capabilities): Properly indicate per-key
3764         capabilities of sign&encrypt primary keys that have
3765         secret-parts-missing (i.e. no capabilities at all)
3767         * mainproc.c (symkey_decrypt_sesskey): Fix compiler warning.
3769 2002-10-04  David Shaw  <dshaw@jabberwocky.com>
3771         * getkey.c (get_pubkey_direct): Don't cache keys retrieved via
3772         this function as they may not have all their fields filled in.
3774         * sig-check.c (signature_check2): Use new is_primary flag to check
3775         rather than comparing main_keyid with keyid as this still works in
3776         the case of a not fully filled in pk.
3778 2002-10-04  Werner Koch  <wk@gnupg.org>
3780         * import.c (import_keys_internal): s/inp/inp2/ to avoid shadowing
3781         warning.
3783         * passphrase.c (agent_get_passphrase): Fixed signed/unsigned char
3784         problem in %-escaping.  Noted by Ingo Klöcker.
3786 2002-10-03  David Shaw  <dshaw@jabberwocky.com>
3788         * options.h, g10.c (main): Add --strict and --no-strict to switch
3789         the log_warning severity level from info to error.
3791         * keylist.c (print_capabilities): Secret-parts-missing keys should
3792         show that fact in the capabilities, and only primary signing keys
3793         can certify other keys.
3795         * packet.h, parse_packet.c (parse_key): Add is_primary flag for
3796         public keys (it already exists for secret keys).
3798 2002-10-02  David Shaw  <dshaw@jabberwocky.com>
3800         * import.c (import_secret_one): Check for an illegal (>110)
3801         protection cipher when importing a secret key.
3803         * keylist.c (list_keyblock_print): Show a '#' for a
3804         secret-parts-missing key.
3806         * parse_packet.c (parse_key): Some comments.
3808         * revoke.c (gen_revoke): Remove some debugging code.
3810         * trustdb.c (verify_own_keys): Make trusted-key a non-deprecated
3811         option again.
3813         * seckey-cert.c (do_check): Don't give the IDEA warning unless the
3814         cipher in question is in fact IDEA.
3816 2002-10-01  David Shaw  <dshaw@jabberwocky.com>
3818         * import.c (import_one): Make sure that a newly imported key
3819         starts with a clean ownertrust.
3821 2002-10-01  Werner Koch  <wk@gnupg.org>
3823         * getkey.c (get_pubkey_direct): New.
3824         (merge_selfsigs_main): Use it here to look for an ultimately
3825         trusted key.  Using the full get_pubkey might lead to an
3826         infinitive recursion.
3828 2002-09-29  David Shaw  <dshaw@jabberwocky.com>
3830         * keyserver.c (parse_keyserver_uri): Force the keyserver URI
3831         scheme to lowercase to be case-insensitive.
3833 2002-09-28  David Shaw  <dshaw@jabberwocky.com>
3835         * export.c (do_export_stream): Comment.
3837         * sig-check.c (check_key_signature2): Properly handle a
3838         non-designated revocation import.
3840 2002-09-26  Werner Koch  <wk@gnupg.org>
3842         * g10.c (set_homedir): New. Changed all direct assignments to use
3843         this.
3844         * gpgv.c (set_homedir): Ditto.
3846 2002-09-25  David Shaw  <dshaw@jabberwocky.com>
3848         * Makefile.am: Link gpg with EGDLIBS (i.e. NETLIBS) as EGD uses
3849         sockets.  Remove the old NETLIBS variable since the keyserver
3850         stuff is no longer internal.
3852 2002-09-24  David Shaw  <dshaw@jabberwocky.com>
3854         * import.c (import_keys_stream): Fix compiler type warning.
3856         * keyring.c (keyring_rebuild_cache), sig-check.c
3857         (check_key_signature2), import.c (import, chk_self_sigs): Minor
3858         language cleanups.
3860 2002-09-23  Stefan Bellon  <sbellon@sbellon.de>
3862         * main.h: Introduced fast-import as import option. Removed
3863         fast as separate option from prototypes.
3864         * import.c (parse_import_options): Added fast-import option.
3865         (import_*): Removed fast as separate option.
3866         * g10.c (main): Added option fast-import, removed old fast
3867         as separate argument.
3868         * keyserver.c (keyserver_spawn): Removed old fast as separate
3869         argument.
3871 2002-09-22  Stefan Bellon  <sbellon@sbellon.de>
3873         * import.c (import_keys, import_keys_stream,
3874         import_keys_internal): Added trustdb update/check to key import if
3875         not fast-import and interactive set/no-auto-check-trustdb unset.
3876         Avoided function clone by introducing import_keys_internal.
3878 2002-09-19  David Shaw  <dshaw@jabberwocky.com>
3880         * keyserver.c (keyserver_spawn): Properly handle line truncation.
3881         Don't leak memory (~10-20 bytes) on searches.
3882         (keyserver_search_prompt): Cleanup.
3884         * keylist.c (list_keyblock_colon): Show 1F direct key signatures
3885         in --with-colons listing.
3887 2002-09-16  David Shaw  <dshaw@jabberwocky.com>
3889         * keyedit.c (menu_addrevoker): The direct key signature for
3890         revocation keys must be at least v4 to carry the revocation key
3891         subpacket.  Add a PGP 2.x warning for revocation keys.
3893 2002-09-14  David Shaw  <dshaw@jabberwocky.com>
3895         * g10.c (check_permissions): Rearrange strings to make translating
3896         easier (don't incorporate string parts).
3898         * keyedit.c (sign_uids): Make strings translatable.
3900         * sig-check.c (check_key_signature2): Make string translatable.
3902 2002-09-13  David Shaw  <dshaw@jabberwocky.com>
3904         * getkey.c (check_revocation_keys): Move....
3905         * main.h, sig-check.c (check_revocation_keys): to here.  Also
3906         return the signature_check error code rather than 0/1 and cache
3907         the sig result.
3909         * sig-check.c (check_key_signature2): Divert to
3910         check_revocation_keys if a revocation sig is made by someone other
3911         than the pk owner.
3913         * getkey.c (merge_selfsigs_main): Tidy.
3915 2002-09-13  Werner Koch  <wk@gnupg.org>
3917         * g10.c (main) [__MINGW32__]: Activate oLoadExtension.
3919 2002-09-12  David Shaw  <dshaw@jabberwocky.com>
3921         * Makefile.am, hkp.c, hkp.h, keyserver.c (keyserver_work): Remove
3922         internal HKP support.
3924         * keyserver.c (keyserver_spawn): Remove whitespace after keyserver
3925         commands.
3927 2002-09-10  David Shaw  <dshaw@jabberwocky.com>
3929         * exec.c (expand_args): Remove loop left over from earlier
3930         implementation.
3931         (exec_write): Missed one tick.
3933 2002-09-10  Werner Koch  <wk@gnupg.org>
3935         * g10.c, options.h: Removed option --emulate-checksum-bug.
3936         * misc.c (checksum_u16_nobug): Removed.
3937         (checksum_u16): Removed the bug emulation.
3938         (checksum_mpi): Ditto.
3939         (checksum_mpi_counted_nbits): Removed and replaced all calls
3940         with checksum_mpi.
3942         * parse-packet.c (read_protected_v3_mpi): New.
3943         (parse_key): Use it here to store it as an opaque MPI.
3944         * seckey-cert.c (do_check): Changed the v3 unprotection to the new
3945         why to store these keys.
3946         (protect_secret_key): Likewise.
3947         * build-packet.c (do_secret_key): And changed the writing.
3949         * tdbio.c (tdbio_set_dbname, open_db): Use new macro MY_O_BINARY
3950         to avoid silly ifdefs.
3951         (open_db): Fallback to RDONLY so that gpg may be used from a
3952         RO-medium.
3954         * encode.c (encode_simple): Make sure we don't use an ESK packet
3955         when we don't have a salt in the S2K.
3957         * misc.c (pct_expando) <case f>: Make sure that LEN is initialized.
3959         * exec.c (exec_finish): Use ticks to denote filenames in messages.
3960         (make_tempdir, exec_write): Changed format of messages.
3962         * keyserver.c (print_keyinfo): Release USERID in on error.
3963         (keyserver_work) [!DISABLE_KEYSERVER_HELPERS]: Exclude the unused
3964         code.
3966 2002-09-09  Werner Koch  <wk@gnupg.org>
3968         * parse-packet.c (make_attribute_uidname): Add new ar MAX_NAMELEN
3969         for sanity checks.  Changed both callers. Limit the size of an %s.
3971         * options.skel: Comment lock-once out, so that this file does not
3972         change anything when copied to a new home directory.
3973         * openfile.c (try_make_homedir): Don't exit after copying the
3974         option skeleton.
3976         * options.h: Don't use a comma when declaring variables over more
3977         than one line.
3979         * mainproc.c (symkey_decrypt_sesskey): Check length of the session
3980         key.
3982         * hkp.c (dehtmlize): Use ascii_tolower to protect against weird
3983         locales.  Cast the argument for isspace for the sake of broken
3984         HP/UXes.
3985         (parse_hkp_index): s/ascii_memcasecmp/ascii_strncasecmp/.
3987         * g10.c: Removed option --emulate-3des-s2k-bug.
3989         * passphrase.c (hash_passphrase): Was used here.
3991         * export.c (parse_export_options)
3992         * keyserver.c (parse_keyserver_options)
3993         * import.c (parse_import_options)
3994         * g10.c (check_permissions): s/ascii_memcasecmp/ascii_strncasecmp/.
3996 2002-09-09  David Shaw  <dshaw@jabberwocky.com>
3998         * g10.c (add_group): Use '=' to separate group name from group
3999         members.  Use a better error message for when no = is found.
4001         * hkp.c (hkp_export): Use CRLF in headers.
4003 2002-09-03  David Shaw  <dshaw@jabberwocky.com>
4005         * mainproc.c (print_pkenc_list): Don't increment the error counter
4006         when printing the list of keys a message was encrypted to.  This
4007         would make gpg give a non-zero exit code even for completely valid
4008         messages if the message was encrypted to more than one key that
4009         the user owned.
4011 2002-09-02  Werner Koch  <wk@gnupg.org>
4013         * g10.c (main): Try to set a default character set.  Print the
4014         used one in verbosity level 3.
4015         * gpgv.c (main): Try to set a default character set.
4017         * status.c, status.h (STATUS_IMPORT_OK): New.
4018         * import.c (import_one,import_secret_one): Print new status.
4020 2002-08-30  David Shaw  <dshaw@jabberwocky.com>
4022         * pkclist.c (build_pk_list): Add new status code to indicate an
4023         untrusted user.  This (or a disabled key) fail with "unavailable
4024         pubkey" (G10ERR_UNU_PUBKEY).
4026         * pkclist.c (build_pk_list): Fail if any recipient keys are
4027         unusable.
4029         * options.skel: The PGP LDAP keyserver is back.  Use MIT keyserver
4030         as a sample rather than cryptnet as cryptnet does not support
4031         searching yet.
4033         * keyedit.c (show_key_with_all_names): Fix error message
4034         (preferences are userid/selfsig and not key specific).
4036 2002-08-30  Werner Koch  <wk@gnupg.org>
4038         * pkclist.c (do_we_trust_pre): Changed the wording of a warning.
4040         * encode.c (encode_simple,encode_crypt): Use new style CTB for
4041         compressssed packets when using MDC.  We need to do this so that
4042         concatenated messages are properly decrypted.  Old style
4043         compression assumes that it is the last packet; given that we
4044         can't determine the length in advance, the uncompressor does not
4045         know where to start.  Actually we should use the new CTB always
4046         but this would break PGP 2 compatibility.
4048         * parse-packet.c (parse): Special treatment for new style CTB
4049         compressed packets.
4051         * build-packet.c (do_mdc): Removed. Was not used.
4052         (do_encrypted_mdc): Count in the version number and the MDC packet.
4054 2002-08-28  David Shaw  <dshaw@jabberwocky.com>
4056         * sig-check.c (do_check_messages, do_check): Show keyid in error
4057         messages.
4059         * keyserver.c (print_keyinfo): More readable key listings for
4060         --search-keys responses.
4062 2002-08-26  David Shaw  <dshaw@jabberwocky.com>
4064         * hkp.c (parse_hkp_index, dehtmlize): Move HTML functionality into
4065         new "dehtmlize" function.  Remove HTML before trying to parse each
4066         line from the keyserver.  If the keyserver provides key type
4067         information in the listing, use it.
4069 2002-08-23  David Shaw  <dshaw@jabberwocky.com>
4071         * sig-check.c (do_check, do_check_messages): Emit the usual sig
4072         warnings even for cached sigs.  This also serves to protect
4073         against missing a sig expiring while cached.
4075         * getkey.c (merge_selfsigs_main): Don't check UID self-sigs twice.
4077 2002-08-22  David Shaw  <dshaw@jabberwocky.com>
4079         * import.c (clean_subkeys, chk_self_sigs): Merge clean_subkeys
4080         into chk_self_sigs.  This improves efficiency as the same
4081         signatures are not checked multiple times.  Clarify when a subkey
4082         is revoked (any revocation signature, even if it is dated before
4083         the binding signature).
4085         * getkey.c (merge_selfsigs_subkey): Subkey revocation comments.
4087         * keylist.c (list_one): Stats are only for public key listings.
4089         * g10.c (main), options.skel: Default should be include-revoked
4090         for keyserver operations.
4092 2002-08-21  Werner Koch  <wk@gnupg.org>
4094         * import.c (import_print_stats): Print new non_imported counter
4095         which is currently not used because we terminate on errors.
4097 2002-08-20  David Shaw  <dshaw@jabberwocky.com>
4099         * options.skel: Document no-include-attributes for
4100         keyserver-options.
4102         * keylist.c, keyedit.c, keyserver.c, sign.c: Some TODOs and
4103         comments.
4105         * export.c (do_export_stream): Fix noop bug in exporting sensitive
4106         revocation keys.
4108         * pkclist.c (do_edit_ownertrust): Comment out the option for
4109         showing trust paths until it can be implemented.
4111 2002-08-19  Werner Koch  <wk@gnupg.org>
4113         * getkey.c (get_user_id_native): Renamed to ..
4114         (get_user_id_printable): this.  Filter out all dangerous
4115         characters.  Checked all usages.
4116         (get_user_id_string_native): Renamed to..
4117         (get_user_id_string_printable): this.  Filter out all dangerous
4118         characters.  Checked all usages.
4119         * keyedit.c (show_basic_key_info): New.
4120         * keylist.c (print_fingerprint): New mode 3.
4121         * import.c (import_one): Use new function to display the user ID.
4123 2002-08-16  Timo Schulz  <ts@winpt.org>
4125         * g10.c (main): Enable opt.interactive.
4127         * import.c (import_one): Ask the user if the key shall be
4128         imported when the interactive mode is used. Useful to extract
4129         selected keys from a file.
4130         
4131 2002-08-16  Werner Koch  <wk@gnupg.org>
4133         * seckey-cert.c: Workaround to allow decryption of v3 keys created
4134         with a bug in the mpi_get_secure_buffer.
4136 2002-08-14  David Shaw  <dshaw@jabberwocky.com>
4138         * hkp.c (parse_hkp_index): Properly handle really large keys
4139         (5 digit key length) in HKP searches.
4141 2002-08-13  David Shaw  <dshaw@jabberwocky.com>
4143         * encode.c (encode_simple): Fix problem with using compression
4144         algo 2 and symmetric compressed files.
4146         * encode.c (encode_simple, encode_crypt): If we are not using a
4147         MDC, compress even if a file is already compressed.  This is to
4148         help against the chosen ciphertext attack.
4150         * pkclist.c (select_algo_from_prefs): Fix requested algorithm bug
4151         so the request succeeds even if the requested algorithm is not the
4152         first found.
4154         * cipher.c (write_header), encode.c (use_mdc, encode_simple,
4155         encode_crypt, encrypt_filter), g10.c (main): Be more eager to use
4156         a MDC.  We use a MDC if the keys directly support it, if the keys
4157         list AES (any) or TWOFISH anywhere in the prefs, or if the cipher
4158         chosen does not have a 64 bit blocksize.
4160 2002-08-08  David Shaw  <dshaw@jabberwocky.com>
4162         * options.skel: Some language tweaks, and remove the
4163         load-extension section for random gatherers.
4165         * keyring.c (create_tmp_file, rename_tmp_file): Create tmp files
4166         with user-only permissions, but restore the original permissions
4167         if the user has something special set.
4169         * openfile.c (copy_options_file): Create new options file
4170         (gpg.conf) with user-only permissions.
4172         * keydb.c (keydb_add_resource): Create new keyrings with user-only
4173         permissions.
4175         * tdbio.c (tdbio_set_dbname): Create new trustdbs with user-only
4176         permissions.
4178 2002-08-07  David Shaw  <dshaw@jabberwocky.com>
4180         * sig-check.c (signature_check2): Sanity check that the md has a
4181         context for the hash that the sig is expecting.  This can happen
4182         if a onepass sig header does not match the actual sig, and also if
4183         the clearsign "Hash:" header is missing or does not match the
4184         actual sig.
4186         * keyedit.c (menu_revsig): Properly show a uid is revoked without
4187         restarting gpg.  This is Debian bug 124219, though their supplied
4188         patch will not do the right thing.
4190         * main.h, tdbio.c (tdbio_set_dbname), misc.c (removed
4191         check_permissions), keydb.c (keydb_add_resource), g10.c (main,
4192         check_permissions): Significant reworking of the permission check
4193         mechanism.  The new behavior is to check everything in the homedir
4194         by checking the homedir itself.  If the user wants to put
4195         (possibly shared) keyrings outside the homedir, they are not
4196         checked.  The options file and any extension files are checked
4197         wherever they are, as well as their enclosing directories.  This
4198         is Debian bug 147760.
4199         
4200 2002-08-06  Stefan Bellon  <sbellon@sbellon.de>
4202         * g10.c (main): Use of EXTSEP_S in new gpg.conf string.
4203         * openfile.c (copy_options_file): Ditto.
4205 2002-08-06  David Shaw  <dshaw@jabberwocky.com>
4207         * options.h, g10.c (main), mainproc.c (proc_encrypted):
4208         --ignore-mdc-error option to turn a MDC check error into a
4209         warning.
4211         * encode.c (encode_crypt), g10.c (main), sign.c (sign_file,
4212         clearsign_file): Use the same --pgpX warning string everywhere to
4213         ease translations.
4215         * encode.c (write_pubkey_enc_from_list): Warn when using
4216         --throw-keyid with --pgpX.  Noted by Vedaal Nistar.
4218         * revoke.c (export_minimal_pk, gen_desig_revoke, gen_revoke):
4219         Export a minimal pk along with the revocation cert when in --pgpX
4220         mode so that PGP can import it.
4222 2002-08-06  Werner Koch  <wk@gnupg.org>
4224         * options.skel: Changed comments.
4226         * g10.c (main): Try to use "gpg.conf" as default option file.
4227         * openfile.c (copy_options_file): Changed name of created file.
4229 2002-08-02  Werner Koch  <wk@gnupg.org>
4231         * Makefile.am (LDFLAGS): Removed DYNLINK_LDFLAGS.
4233 2002-07-30  David Shaw  <dshaw@jabberwocky.com>
4235         * options.h, g10.c (main), mainproc.c (proc_encrypted): Return a
4236         decryption failed error if a MDC does not verify.  Warn if a MDC
4237         is not present (can disable via --no-mdc-warning).
4239         * exec.c (exec_write), g10.c (main), keyserver.c
4240         (keyserver_spawn): Use new DISABLE_KEYSERVER_PATH rather than
4241         FIXED_EXEC_PATH.
4243 2002-07-28  David Shaw  <dshaw@jabberwocky.com>
4245         * sig-check.c (do_check): Properly validate v4 sigs with no hashed
4246         section at all.
4248 2002-07-25  Werner Koch  <wk@gnupg.org>
4250         * delkey.c (do_delete_key): Always allow to delete a key in batch mode
4251         when specified by fingerprint.  Suggested by Enzo Michelangeli.
4253 2002-07-25  David Shaw  <dshaw@jabberwocky.com>
4255         * keyedit.c (menu_revsig): Change "revsig" to honor selected uids
4256         so the user can revoke sigs from particular uids only.
4258         * keylist.c (list_keyblock_print): Don't display expired uids in
4259         --list-keys unless -v and not --list-sigs (just like revoked
4260         uids).
4262         * exec.c, export.c, import.c, keyedit.c, keyserver.c, misc.c:
4263         "Warning" -> "WARNING"
4265 2002-07-24  David Shaw  <dshaw@jabberwocky.com>
4267         * main.h, import.c (parse_import_options, fix_hkp_corruption,
4268         import_one, delete_inv_parts), g10.c (main): New import-option
4269         "repair-hkp-subkey-bug", which repairs as much as possible the HKP
4270         mangling multiple subkeys bug.  It is on by default for keyserver
4271         receives, and off by default for regular --import.
4273         * main.h, import.c (import, import_one, delete_inv_parts), hkp.c
4274         (hkp_ask_import), keyserver.c (keyserver_spawn): Use keyserver
4275         import options when doing keyserver receives.
4277         * options.h, exec.h, exec.c (set_exec_path, exec_write), g10.c
4278         (main), keyserver.c (keyserver_spawn): If the user does not use
4279         "exec-path", completely replace $PATH with GNUPG_LIBEXECDIR before
4280         calling the keyserver helper.  If the user does use "exec-path",
4281         append GNUPG_LIBEXECDIR after the specified path.
4283 2002-07-23  David Shaw  <dshaw@jabberwocky.com>
4285         * import.c (parse_import_options), export.c
4286         (parse_export_options): Fix offset problem with reversed ("no-")
4287         meanings.
4289         * import.c (delete_inv_parts): Discard subkey signatures (0x18 and
4290         0x28) if found in the userid section of the key.
4292         * sig-check.c (signature_check2): Signatures made by invalid
4293         subkeys (bad/missing binding sig) are also invalid.
4295         * keylist.c (print_fingerprint): Show the primary as well as the
4296         secondary key fingerprint in modes 1 & 2.
4298 2002-07-22  David Shaw  <dshaw@jabberwocky.com>
4300         * options.h, main.h, g10.c (main), import.c
4301         (parse_import_options, delete_inv_parts), keyserver.c
4302         (parse_keyserver_options): add new --import-options option.  The
4303         only current flag is "allow-local-sigs".
4305         * g10.c (main): Don't disable MDC in pgp7 mode.
4307         * options.h, g10.c (main), keyserver.c (parse_keyserver_options):
4308         Remove old keyserver-option include-attributes now that there is
4309         an export-option for the same thing.
4311         * options.h, main.h, export.c (parse_export_options,
4312         do_export_stream), g10.c (main): add new --export-options option.
4313         Current flags are "include-non-rfc", "include-local-sigs",
4314         "include-attributes", and "include-sensitive-revkeys".
4316         * options.h, hkp.c (hkp_export), keyserver.c
4317         (parse_keyserver_options, keyserver_spawn): try passing unknown
4318         keyserver options to export options, and if successful, use them
4319         when doing a keyserver --send-key.
4321         * build-packet.c (build_sig_subpkt): We do not generate
4322         SIGSUBPKT_PRIV_VERIFY_CACHE anymore.
4324         * revoke.c (gen_desig_revoke): Lots more comments about including
4325         sensitive revkeys along with the revocation sig itself.
4327         * keyserver.c (parse_keyserver_options): Simpler implementation
4328         that can skip one pass over the options.
4330 2002-07-18  David Shaw  <dshaw@jabberwocky.com>
4332         * keyedit.c (keyedit_menu, menu_addrevoker): Allow specifying
4333         "sensitive" as an argument to an addrevoker command.  This sets
4334         the 0x40 sensitive revoker flag.
4336         * revoke.c (gen_desig_revoke): When generating a designated
4337         revocation, include the direct key sig that contains the
4338         designated revoker subpacket.  This allows sensitive designated
4339         revocation subpackets to be exported.  Also indicate which
4340         revokers are sensitive in the first place.
4342 2002-07-17  David Shaw  <dshaw@jabberwocky.com>
4344         * keyedit.c (show_key_with_all_names_colon): The 0x40 class bit in
4345         a designated revoker means "sensitive", not "local".  It's
4346         exportable under the right circumstances.
4348         * main.h, options.h, export.c (do_export_stream), g10.c (main),
4349         hkp.c (hkp_export), keyserver.c (keyserver_spawn: Add a flag to
4350         skip attribute packets and their signatures while exporting.  This
4351         is to accomodate keyservers (pksd again) that choke on attributes.
4352         Use keyserver-option "include-attributes" to control it.  This
4353         defaults to ON (i.e. don't skip).
4355 2002-07-09  David Shaw  <dshaw@jabberwocky.com>
4357         * options.h, keyserver.c (parse_keyserver_uri, keyserver_spawn,
4358         keyserver_work), hkp.c (hkp_ask_import, hkp_export, hkp_search):
4359         Use a much more strict reading of RFC-2396 for the keyserver URIs.
4360         Specifically, don't try and be smart about checking the value of
4361         ":port" so long as it is all digits, and properly handle opaque
4362         data (those scheme specific parts that do not start with "//").
4364 2002-07-04  David Shaw  <dshaw@jabberwocky.com>
4366         * photoid.c (get_default_photo_command, show_photos): Honor
4367         FIXED_PHOTO_VIEWER and DISABLE_PHOTO_VIEWER.
4369         * mainproc.c (check_sig_and_print): Use --show-photos to show
4370         photos when verifying a sig made by a key with a photo.
4372         * keyserver.c (parse_keyserver_uri): Properly parse a URI with no
4373         :port section and an empty file path, but with a terminating '/'.
4374         (keyserver_work): Honor DISABLE_KEYSERVER_HELPERS.
4376         * hkp.c (hkp_ask_import): Display keyserver URI as a URI, but only
4377         if verbose.
4379         * exec.c, g10.c: USE_EXEC_PATH -> FIXED_EXEC_PATH
4381 2002-07-03  David Shaw  <dshaw@jabberwocky.com>
4383         * exec.h, exec.c (set_exec_path, exec_write), g10.c (main): If
4384         USE_EXEC_PATH is defined at compile time, use it to lock the
4385         exec-path and not allow the user to change it.
4387 2002-07-02  David Shaw  <dshaw@jabberwocky.com>
4389         * options.h, g10.c (main), keyserver.c (keyserver_refresh):
4390         Maintain and use the original keyserver URI for cosmetics rather
4391         than trying to recreate it when needed.
4393         * mainproc.c (check_sig_and_print): Properly disregard expired
4394         uids.  Make sure that the first uid listed is a real uid and not
4395         an attribute (attributes should only be listed in the "aka"
4396         section).  When there are no valid textual userids, try for an
4397         invalid textual userid before using any attribute uid.
4399 2002-07-01  David Shaw  <dshaw@jabberwocky.com>
4401         * options.skel: Fix a few typos, clarify "group", and remove
4402         sample photo viewers for Win32 since they are the defaults now.
4404         * parse-packet.c (make_attribute_uidname), keylist.c
4405         (dump_attribs): Fix two typecast warnings.
4407         * packet.h, build-packet.c (build_attribute_subpkt), exec.c
4408         (expand_args), mkdtemp.c (mkdtemp), photoid.c
4409         (parse_image_header): Fix some signedness compiler warnings.
4411 2002-07-01  Werner Koch  <wk@gnupg.org>
4413         * photoid.c (get_default_photo_command): Also use __MINGW32__
4414         instead of HAVE_DOSISH_SYSTEM.
4416         * encode.c (encode_symmetric): Do not use the new encryption code.
4418 2002-06-30  Werner Koch  <wk@gnupg.org>
4420         * photoid.c: Use __MINGW32__ to include windows because
4421         HAVE_DOSISH_SYSTEM is also set for OS/2 and plain DOS.  Provide
4422         constant missing in older mingw installations. 
4424 2002-06-21  Stefan Bellon  <sbellon@sbellon.de>
4426         * g10.c [__riscos__]: Moved RISC OS specific stuff to util/riscos.c
4427         and include/util.h.
4429         * gpgv.c [__riscos__]: Likewise.
4431 2002-06-20  David Shaw  <dshaw@jabberwocky.com>
4433         * keydb.h, pkclist.c (select_algo_from_prefs): Allow passing a
4434         suggested algorithm which will be used if available.
4436         * encode.c (encode_crypt, encrypt_filter), sign.c (sign_file): Use
4437         new select_algo_from_prefs feature to check if forcing an
4438         algorithm would violate the recipient preferences.
4440         * photoid.c (get_default_photo_command, show_photos): Use
4441         different default viewers on different platforms.  Currently we
4442         have Win 9x, Win NT (2k, xp), Mac OSX, RISC OS, and "everybody
4443         else".  These are #ifdefs as much as possible to avoid clutter.
4445         * g10.c (strusage, build_list), keyedit.c (show_prefs), main.h,
4446         misc.c (compress_algo_to_string, check_compress_algo), pkclist.c
4447         (algo_available), keygen.c (keygen_set_std_prefs): New
4448         algo_to_string and check functions for compress algorithms.
4450 2002-06-20  Werner Koch  <wk@gnupg.org>
4452         * misc.c (setsysinfo): Removed a #warning for Alpha's uniligedn
4453         trap disabling - it is quite possible that this is a debug relict.
4455 2002-06-20  Stefan Bellon  <sbellon@sbellon.de>
4457         * g10.c [__riscos__]: Added image file system feature.
4459         * gpgv.c [__riscos__]: Added image file system feature.
4461         * photoid.c (show_photos) [__riscos__]: Set RISC OS filetype of
4462         photo id according to MIME type.
4464 2002-06-19  David Shaw  <dshaw@jabberwocky.com>
4466         * hkp.c (parse_hkp_index): Don't leak memory when failing out of a
4467         bad HKP keyserver.
4469         * g10.c (add_notation_data): Relax slightly the rules as to what
4470         can go into a notation name - 2440 allows "@", for example.
4472 2002-06-17  David Shaw  <dshaw@jabberwocky.com>
4474         * import.c (clean_subkeys, import_one): Only allow at most 1
4475         binding sig and at most 1 revocation sig on a subkey, as per
4476         2440:11.1.
4478         * hkp.c (parse_hkp_index, hkp_search): Error if the keyserver
4479         returns an unparseable HKP response.
4481 2002-06-15  David Shaw  <dshaw@jabberwocky.com>
4483         * keyedit.c (show_key_with_all_names), keylist.c
4484         (list_keyblock_print): Show "[expired]" before expired uids.
4486         * keyedit.c (show_key_with_all_names_colon), mainproc.c
4487         (list_node), keylist.c (list_keyblock_colon): Show flag 'e' for
4488         expired user ids.  Use "uat" for user attribute packets instead of
4489         "uid".  Also use '<count> <length>' rather than the fake user id
4490         string on attributes.
4492         * keygen.c (keygen_add_revkey): Remove unused code.
4494         * misc.c (check_permissions): Check directory permissions
4495         properly - they are not special files.
4497         * pkclist.c (expand_id, expand_group, build_pk_list): When
4498         expanding groups before building a pk list, inherit flags from the
4499         original pre-expanded string.
4501         * pubkey-enc.c (is_algo_in_prefs): Don't use prefs from expired
4502         uids.
4504 2002-06-14  David Shaw  <dshaw@jabberwocky.com>
4506         * free-packet.c (copy_signature): Properly copy a signature that
4507         carries a revocation key on it.
4509         * pkclist.c (expand_id, expand_group, build_pk_list): Groups now
4510         work properly when used in the "Enter the user ID" prompt.
4512 2002-06-14  David Shaw  <dshaw@jabberwocky.com>
4514         * keyedit.c (show_key_with_all_names): Display warning if a user
4515         tries to show prefs on a v3 key with a v3 selfsig.
4517         * kbnode.c (dump_kbnode): Show if a uid is expired.
4519         * import.c (merge_blocks, import_revoke_cert): Show user ID
4520         receiving a revocation certificate.
4522         * free-packet.c (cmp_user_ids): Properly compare attribute ids.
4524         * pkclist.c (expand_groups): Maintain the strlist flags while
4525         expanding.  Members of an expansion inherit their flags from the
4526         expansion key.
4528         * options.h, cipher.c (write_header), g10.c (main), keygen.c
4529         (keygen_set_std_prefs): remove the personal_mdc flag.  It no
4530         longer serves a purpose now that the personal preference lists are
4531         split into cipher/digest/zip.
4533 2002-06-14  Timo Schulz  <ts@winpt.org>
4535         * skclist.c (is_insecure): Implemented.
4536         
4537 2002-06-12  David Shaw  <dshaw@jabberwocky.com>
4539         * keyserver.c (keyserver_spawn): Properly handle PROGRAM responses
4540         when they have a CRLF ending.  Noted by Keith Ray.
4542         * keyserver.c (keyserver_spawn): Handle CRLF endings from
4543         keyserver helpers.  Also don't leak the last line worth of memory
4544         from the keyserver response.
4546         * main.h, misc.c (deprecated_warning): New function to warn about
4547         deprecated options and commands.
4549         * g10.c (main), keyserver-internal.h, keyserver.c
4550         (parse_keyserver_uri): Use new deprecated function to warn about
4551         honor-http-proxy, auto-key-retrieve, and x-broken-hkp.
4553 2002-06-11  David Shaw  <dshaw@jabberwocky.com>
4555         * Makefile.am: link gpg with NETLIBS for the built-in HKP access.
4557 2002-06-10  David Shaw  <dshaw@jabberwocky.com>
4559         * options.h, keyserver.c (keyserver_opts), g10.c (main): New
4560         keyserver option "include-subkeys".  This feature already existed,
4561         but now can be turned off.  It defaults to on.
4563         * options.h, keyserver.c (parse_keyserver_options,
4564         keyserver_spawn): There are now enough options to justify making a
4565         structure for the keyserver options rather than a page of
4566         if-then-else-if-then-etc.
4568         * getkey.c (merge_keys_and_selfsig, merge_selfsigs_main): Fix bug
4569         in calculating key expiration dates.
4571 2002-06-09  David Shaw  <dshaw@jabberwocky.com>
4573         * keydb.h, getkey.c (get_user_id_native), import.c (import_one):
4574         Display user ID while importing a key.  Note this applies to both
4575         --import and keyserver --recv-keys.
4577         * exec.c (exec_finish): Log unnatural exit (core dump, killed
4578         manually, etc) for fork/exec/pipe child processes.
4580 2002-06-08  Timo Schulz  <ts@winpt.org>
4582         * encode.c (encode_symmetric): Disable the compat flag
4583         when the expert mode is enabled.
4584         
4585 2002-06-07  David Shaw  <dshaw@jabberwocky.com>
4587         * options.skel, options.h, main.h, keydb.h, pkclist.c
4588         (build_pk_list, expand_groups), g10.c (main, add_group): Add new
4589         "group" command to allow one name to expand into multiple keys.
4590         For simplicity, and to avoid potential loops, we only expand once
4591         - you can't make an alias that points to an alias.
4593         * main.h, g10.c (main), keygen.c (build_personal_digest_list):
4594         Simplify the default digest list - there is really no need for the
4595         other hashes since they will never be used after SHA-1 in the
4596         list.
4598         * options.skel, options.h, g10.c (main), hkp.c (hkp_ask_import,
4599         hkp_export, hkp_search), keyserver.c (parse_keyserver_options,
4600         parse_keyserver_uri, keyserver_work, keyserver_refresh): Make the
4601         "x-broken-hkp" keyserver scheme into keyserver-option
4602         "broken-http-proxy".  Move honor_http_proxy into
4603         keyserver_options.  Canonicalize the three variations of "hkp",
4604         "x-hkp", and "x-broken-hkp" into "hkp".
4606 2002-06-07  Stefan Bellon  <sbellon@sbellon.de>
4608         * g10.c [__riscos__]: Added --attribute-file to do the same as
4609         --attribute-fd, but with a filename not a fd as argument.
4610         Added magic symbol for RISC OS to use different memory management.
4612         * gpgv.c [__riscos__]: Added magic symbol for RISC OS to use
4613         different memory management.
4615 2002-06-06  David Shaw  <dshaw@jabberwocky.com>
4617         * main.h, g10.c (main), keygen.c (build_personal_digest_list): Put
4618         in a default digest preference list consisting of SHA-1, followed
4619         by every other installed digest except MD5.  Note this is the same
4620         as having no digest preference at all except for SHA-1 being
4621         favored.
4623         * options.h, g10.c (main), keygen.c (keygen_set_std_prefs),
4624         pkclist.c (select_algo_from_prefs): Split
4625         --personal-preference-list into three:
4626         --personal-{cipher|digest|compress}-preferences.  This allows a
4627         user to set one without affecting another (i.e. setting only a
4628         digest pref doesn't imply an empty cipher pref).
4630         * exec.c (exec_read): This is a safer way of guessing the return
4631         value of system().  Noted by Stefan Bellon.
4633 2002-06-05  David Shaw  <dshaw@jabberwocky.com>
4635         * hkp.c (parse_hkp_index): Be more robust with keyservers
4636         returning very unparseable responses.
4638         * exec.c (exec_read): Catch and display an error when the remote
4639         process exits unnaturally (i.e. segfault) so the user knows what
4640         happened.  Also fix exec_write stub which has a different number
4641         of arguments now.
4643 2002-06-05  Timo Schulz  <ts@winpt.org>
4645         * encode.c (encode_simple): Ignore the new mode for RFC1991.
4646         * mainproc.c (symkey_decrypt_sesskey): Better check for weird
4647         keysizes.
4648         
4649 2002-06-05  Timo Schulz  <ts@winpt.org>
4651         * encode.c (encode_sesskey): New.
4652         (encode_simple): Use it here. But by default we use the compat
4653         mode which supress to generate encrypted session keys.
4654         
4655 2002-06-05  Timo Schulz  <ts@winpt.org>
4657         * mainproc.c (symkey_decrypt_sesskey): New.
4658         (proc_symkey_enc): Support for encrypted session keys.
4659         
4660 2002-06-04  David Shaw  <dshaw@jabberwocky.com>
4662         * sign.c (hash_for, sign_file): When encrypting and signing at the
4663         same time, consult the various hash prefs to pick a hash algorithm
4664         to use.  Pass in a 160-bit hint if any of the signing keys are
4665         DSA.
4667         * keydb.h, pkclist.c (select_algo_from_prefs, algo_available):
4668         Pass a "hints" opaque pointer in to let the caller give hints as
4669         to what algorithms would be acceptable.  The only current hint is
4670         for PREFTYPE_HASH to require a 160-bit hash for DSA.  Change all
4671         callers in encode.c (encode_crypt, encrypt_filter) and sign.c
4672         (sign_file).  If we settle on MD5 as the best algorithm based
4673         solely on recepient keys and SHA1 is also a possibility, use SHA1
4674         unless the user intentionally chose MD5.  This is as per 2440:13.
4676         * exec.c (make_tempdir): Fix duplicated filename problem.
4678 2002-06-03  David Shaw  <dshaw@jabberwocky.com>
4680         * packet.h, parse-packet.c (enum_sig_subpkt): Report back from
4681         enum_sig_subpkt when a subpacket is critical and change all
4682         callers in keylist.c (show_policy_url, show_notation), mainproc.c
4683         (print_notation_data), and pkclist.c (do_show_revocation_reason).
4685         * keylist.c (show_policy_url, show_notation): Display if the
4686         policy or notation is critical.
4687         
4688 2002-06-03  David Shaw  <dshaw@jabberwocky.com>
4690         * main.h, g10.c (main), keylist.c (dump_attribs, set_attrib_fd,
4691         list_keyblock_print, list_keyblock_colon), status.h, status.c
4692         (get_status_string): New --attribute-fd feature to dump the
4693         contents of attribute subpackets for frontends.  If --status-fd is
4694         also used, then a new status tag ATTRIBUTE is provided for each
4695         subpacket.
4697         * packet.h, getkey.c (fixup_uidnode, merge_selfsigs_main,
4698         merge_selfsigs_subkey), parse-packet.c (setup_user_id): Keep track
4699         of the expiration time of a user ID, and while we're at it, use
4700         the expired flag from the selfsig rather than reparsing the
4701         SIG_EXPIRE subpacket.
4703         * photoid.c (generate_photo_id): When adding a new photo ID,
4704         showing the photo for confirmation is not safe when noninteractive
4705         since the "user" may not be able to dismiss a viewer window.
4706         Noted by Timo Schulz.
4707         
4708 2002-06-03  David Shaw  <dshaw@jabberwocky.com>
4710         * options.skel: Sample photo viewers for Win32.
4712         * misc.c (pct_expando): Use the seckey for %k/%K if the pubkey is
4713         not available.
4715         * photoid.h, photoid.c (show_photos): Include the seckey in case a
4716         user tries to view a photo on a secret key, and change all callers
4717         in keyedit.c (menu_showphoto), keylist.c (list_keyblock_print),
4718         and photoid.c (generate_photo_id).
4720 2002-06-02  David Shaw  <dshaw@jabberwocky.com>
4722         * photoid.c (show_photos): Work properly when not called with a
4723         public key.
4725 2002-05-31  David Shaw  <dshaw@jabberwocky.com>
4727         * sign.c (mk_notation_and_policy): Free unneeded buffer.
4729         * hkp.c (parse_hkp_index): Properly handle the '&' character
4730         (i.e. "&amp;") in HKP responses.
4732         * getkey.c (merge_selfsigs_main): Fix reversed expiration time
4733         check with self-sigs.
4735         * keyedit.c (sign_uids): When making a new self-sig on a v3 key,
4736         make a v3 self-sig unless it is currently a v3 self-sig being
4737         promoted to v4.
4739 2002-05-31  Timo Schulz  <ts@winpt.org>
4741         * pkclist.c (do_show_revocation_reason): Don't use capital
4742         letters for non-interactive output.
4743         (show_revocation_reason): Now it is global.
4744         * pubkey-enc.c (get_it): Show if the key has been revoked.
4745         
4746 2002-05-30  David Shaw  <dshaw@jabberwocky.com>
4748         * sign.c (write_signature_packets, sign_file, clearsign_file,
4749         sign_symencrypt_file): Make a v4 signature if a policy URL or
4750         notation is set, unless v3 sigs are forced via rfc1991 or
4751         force-v3-sigs.  Also remove some doubled code and clarify an error
4752         message (we don't sign in PGP2 mode - just detach-sign).
4754         * parse-packet.c (parse_one_sig_subpkt): Add KS_FLAGS to the "any
4755         size" section.
4757 2002-05-29  David Shaw  <dshaw@jabberwocky.com>
4759         * keygen.c (keygen_set_std_prefs, add_feature_mdc): Use "mdc" and
4760         "no-mdc" in the prefs string to allow switching on and off the MDC
4761         feature.  This is needed to properly export a key from GnuPG for
4762         use on PGP which does not support MDC - without this, MDC-capable
4763         implementations will still try and generate MDCs which will break
4764         PGP.
4766         * keygen.c (keygen_get_std_prefs): Show "[mdc]" in prefs string if
4767         it is enabled.
4769         * options.h, g10.c (main), cipher.c (write_header), keygen.c
4770         (keygen_set_std_prefs): For consistency, allow the user to specify
4771         mdc/no-mdc in the --personal-preference-list.  If disabled, it
4772         acts just like --disable-mdc.
4774 2002-05-29  David Shaw  <dshaw@jabberwocky.com>
4776         * options.h, exec.c: Add some debugging info, using the 1024 debug
4777         flag.
4779         * exec.c (win_system): New system()-like function for win32 that
4780         does not return until the child process terminates.  Of course,
4781         this doesn't help if the process itself exits before it is
4782         finished.
4784 2002-05-29  Werner Koch  <wk@gnupg.org>
4786         * encode.c (encode_simple): Intialize PKT when --no-literal is used.
4788         * keyedit.c (show_key_with_all_names_colon): Renamed the record
4789         for revocation keys to "rvk".
4791 2002-05-27  Werner Koch  <wk@gnupg.org>
4793         * keyedit.c (show_key_with_all_names_colon): New.
4794         (show_key_with_all_names): Divert to new function when required.
4795         Sanitize printing of revoker name.
4797 2002-05-27  David Shaw  <dshaw@jabberwocky.com>
4799         * build-packet.c (build_sig_subpkt): Handle setting sig flags for
4800         certain subpacket types (notation, policy url, exportable,
4801         revocable).  keyedit.c (sign_mk_attrib): Flags no longer need to
4802         be set here.
4804         * packet.h, parse-packet.c (parse_one_sig_subpkt), build-packet.c
4805         (build_sig_subpkt): Call parse_one_sig_subpkt to sanity check
4806         buffer lengths before building a sig subpacket.
4808 2002-05-26  David Shaw  <dshaw@jabberwocky.com>
4810         * sign.c (mk_notation_and_policy): Include secret key to enable %s
4811         expandos, and pass notations through pct_expando as well.
4813         * main.h, misc.c (pct_expando): Add %s and %S expandos for
4814         signer's keyid.
4816 2002-05-25  David Shaw  <dshaw@jabberwocky.com>
4818         * g10.c (strusage, build_list): Add compress algorithms to
4819         --version list.  Show algorithm numbers when --verbose --version
4820         is done.
4822 2002-05-22  David Shaw  <dshaw@jabberwocky.com>
4824         * options.h, main.h, keygen.c (keygen_set_set_prefs,
4825         keygen_get_std_prefs, keygen_upd_std_prefs), keyedit.c
4826         (keyedit_menu), g10.c (main), pkclist.c (select_algo_from_prefs):
4827         Add --personal-preference-list which allows the user to factor in
4828         their own preferred algorithms when the preference lists are
4829         consulted.  Obviously, this does not let the user violate a
4830         recepient's preferences (and the RFC) - this only influences the
4831         ranking of the agreed-on (and available) algorithms from the
4832         recepients.  Suggested by David Hollenberg.
4834         * options.h, keygen.c (keygen_set_std_prefs), g10.c (main): Rename
4835         --preference-list to --default-preference-list (as that is what it
4836         really is), and make it a true default in that if the user selects
4837         "default" they get this list and not the compiled-in list.
4839 2002-05-22  Werner Koch  <wk@gnupg.org>
4841         * g10.c (main): Add missing LF in a info printout and made it
4842         translatable.  Noted by Michael Tokarev.
4844 2002-05-21  Werner Koch  <wk@gnupg.org>
4846         * g10.c (main): Removed the undef of USE_SHM_COPROCESSING which
4847         was erroneously introduced on 2002-01-09.
4849         * signal.c (got_fatal_signal): Don't write the Nul to stderr.
4850         Reported by David Hollenberg.
4852 2002-05-18  David Shaw  <dshaw@jabberwocky.com>
4854         * main.h, g10.c (main), revoke.c (gen_desig_revoke): Generate a
4855         designated revocation via --desig-revoke
4857         * keyedit.c (keyedit_menu, menu_addrevoker): New "addrevoker"
4858         command to add a designated revoker to a key.
4860 2002-05-17  David Shaw  <dshaw@jabberwocky.com>
4862         * gpgv.c: Add stub for get_ownertrust().
4864         * g10.c (main): --allow-freeform-uid should be implied by
4865         OpenPGP.  Add --no-allow-freeform-uid.
4867         * keyedit.c (sign_uids): Issue a warning when signing a
4868         non-selfsigned uid.
4870         * getkey.c (merge_selfsigs_main): If a key has no selfsigs, and
4871         allow-non-selfsigned-uid is not set, still try and make the key
4872         valid by checking all uids for a signature from an ultimately
4873         trusted key.
4875 2002-05-16  David Shaw  <dshaw@jabberwocky.com>
4877         * main.h, keygen.c (keygen_add_revkey): Add revocation key
4878         subpackets to a signature (callable by
4879         make_keysig_packet). (write_direct_sig): Write a 1F direct key
4880         signature. (parse_revocation_key): Parse a string in
4881         algo:fpr:sensitive format into a revocation
4882         key. (get_parameter_revkey, do_generate_keypair): Call above
4883         functions when prompted from a batch key generation file.
4885         * build-packet.c (build_sig_subpkt): Allow multiple revocation key
4886         subpackets in a single sig.
4888         * keydb.h, getkey.c (get_seckey_byfprint): Same as
4889         get_pubkey_byfprint, except for secret keys.  We only know the
4890         fingerprint of a revocation key, so this is needed to retrieve the
4891         secret key needed to issue a revokation.
4893         * packet.h, parse-packet.c (parse_signature, parse_revkeys): Split
4894         revkey parsing off into a new function that can be used to reparse
4895         after manipulating the revkey list.
4897         * sign.c (make_keysig_packet): Ability to make 1F direct key
4898         signatures.
4900 2002-05-15  David Shaw  <dshaw@jabberwocky.com>
4902         * options.skel: keyserver.pgp.com is gone, so list pgp.surfnet.nl
4903         as a sample LDAP server instead.
4905         * getkey.c (merge_selfsigs_main): Properly handle multiple
4906         revocation keys in a single packet.  Properly handle revocation
4907         keys that are in out-of-order packets.  Remove duplicates in
4908         revocation key list.
4910 2002-05-14  Timo Schulz   <ts@winpt.org>
4912         * exec.c (make_tempdir) [MINGW32]: Added missing '\'.
4913         
4914 2002-05-14  Stefan Bellon  <sbellon@sbellon.de>
4916         * exec.c (make_tempdir): Make use of EXTSEP_S instead of hardcoded
4917         dot as extension separator.
4919 2002-05-13  David Shaw  <dshaw@jabberwocky.com>
4921         * photoid.c (show_photos): Use the long keyid as the filename for
4922         the photo.  Use the short keyid as the filename on 8.3 systems.
4924         * exec.h, exec.c (make_tempdir, exec_write, exec_finish): Allow
4925         caller to specify filename.  This should make things easier on
4926         windows and macs where the file extension is required, but a whole
4927         filename is even better.
4929         * keyedit.c (show_key_with_all_names, show_prefs): Show proper
4930         prefs for a v4 key uid with no selfsig at all.
4932         * misc.c (check_permissions): Don't check permissions on
4933         non-normal files (pipes, character devices, etc.)
4935 2002-05-11  Werner Koch  <wk@gnupg.org>
4937         * mainproc.c (proc_symkey_enc): Avoid segv in case the parser
4938         encountered an invalid packet.
4940         * keyserver.c (keyserver_export): Get confirmation before sending
4941         all keys.
4943 2002-05-10  Stefan Bellon  <sbellon@sbellon.de>
4945         * g10.c, hkp.c, keyedit.c, keyserver.c: Replaced all occurrances
4946         of strcasecmp with ascii_strcasecmp and all occurrances of
4947         strncasecmp with ascii_memcasecmp.
4949 2002-05-10  David Shaw  <dshaw@jabberwocky.com>
4951         * packet.h, getkey.c (fixup_uidnode), keyedit.c (show_prefs): Show
4952         assumed prefs for hash and compression as well as the cipher pref.
4953         Show assumed prefs if there are no prefs at all on a v4
4954         self-signed key.
4956         * options.h, g10.c (main), sign.c (make_keysig_packet): New
4957         --cert-digest-algo function to override the default key signing
4958         hash algorithm.
4960 2002-05-09  David Shaw  <dshaw@jabberwocky.com>
4962         * getkey.c (merge_selfsigs_main): Make sure the revocation key
4963         list starts clean as this function may be called more than once
4964         (e.g. from functions in --edit).
4966         * g10.c, encode.c (encode_crypt), sign.c (sign_file,
4967         sign_symencrypt_file): Make --compress-algo work like the
4968         documentation says.  It should be like --cipher-algo and
4969         --digest-algo in that it can override the preferences calculation
4970         and impose the setting the user wants.  No --compress-algo setting
4971         allows the usual preferences calculation to take place.
4973         * main.h, compress.c (compress_filter): use new
4974         DEFAULT_COMPRESS_ALGO define, and add a sanity check for compress
4975         algo value.
4977 2002-05-08  David Shaw  <dshaw@jabberwocky.com>
4979         * pkclist.c (select_algo_from_prefs): There is an assumed
4980         compression preference for uncompressed data.
4982 2002-05-07  David Shaw  <dshaw@jabberwocky.com>
4984         * options.h, g10.c (main), getkey.c (finish_lookup), pkclist.c
4985         (algo_available): --pgp7, identical to --pgp6 except that it
4986         permits a few algorithms that PGP 7 added: AES128, AES192, AES256,
4987         and TWOFISH.  Any more of these --pgpX flags, and it'll be time to
4988         start looking at a generic --emulate-pgp X option.
4990         * export.c (do_export_stream): Warn the user when exporting a
4991         secret key if it or any of its secret subkeys are protected with
4992         SHA1 while simple_sk_checksum is set.
4994         * parse-packet.c (parse_key): Show when the SHA1 protection is
4995         used in --list-packets.
4997         * options.h, build-packet.c (do_comment), g10.c (main): Rename
4998         --no-comment as --sk-comments/--no-sk-comments (--no-comment still
4999         works) and make the default be --no-sk-comments.
5001 2002-05-07  Werner Koch  <wk@gnupg.org>
5003         * keygen.c (get_parameter_algo): Never allow generation of the
5004         deprecated RSA-E or RSA-S flavors of PGP RSA.
5005         (ask_algo): Allow generation of RSA sign and encrypt in expert
5006         mode.  Don't allow ElGamal S+E unless in expert mode.
5007         * helptext.c: Added entry keygen.algo.rsa_se.
5009 2002-05-07  David Shaw  <dshaw@jabberwocky.com>
5011         * keyedit.c (sign_uids): If --expert is set, allow re-signing a
5012         uid to promote a v3 self-sig to a v4 one.  This essentially
5013         deletes the old v3 self-sig and replaces it with a v4 one.
5015         * packet.h, parse-packet.c (parse_key), getkey.c
5016         (merge_keys_and_selfsig, merge_selfsigs_main): a v3 key with a v4
5017         self-sig must never let the v4 self-sig express a key expiration
5018         time that extends beyond the original v3 expiration time.
5020 2002-05-06  David Shaw  <dshaw@jabberwocky.com>
5022         * keyedit.c (sign_uids): When making a self-signature via "sign"
5023         don't ask about sig level or expiration, and include the usual
5024         preferences and such for v4 self-sigs.  (menu_set_preferences):
5025         Convert uids from UTF8 to native before printing.
5027         * keyedit.c (sign_uids): Convert uids from UTF8 to native before
5028         printing.  (menu_set_primary_uid): Show error if the user tries to
5029         make a uid with a v3 self-sig primary.
5031 2002-05-05  David Shaw  <dshaw@jabberwocky.com>
5033         * import.c (import_one): When merging with a key we already have,
5034         don't let a key conflict (same keyid but different key) stop the
5035         import: just skip the bad key and continue.
5037         * exec.c (make_tempdir): Under Win32, don't try environment
5038         variables for temp directories - GetTempDir tries environment
5039         variables internally, and it's better not to second-guess it in
5040         case MS adds some sort of temp dir handling to Windows at some
5041         point.
5043 2002-05-05  Timo Schulz  <ts@winpt.org>
5045         * mainproc.c (proc_symkey_enc): Don't ask for a passphrase
5046         in the list only mode.
5047         
5048 2002-05-05  David Shaw  <dshaw@jabberwocky.com>
5050         * keyserver.c (keyserver_refresh): --refresh-keys implies
5051         --merge-only so as not to import keys with keyids that match the
5052         ones being refreshed.  Noted by Florian Weimer.
5054 2002-05-04  Stefan Bellon  <sbellon@sbellon.de>
5056         * free-packet.c (copy_public_key): Don't call m_alloc(0), therefore
5057         added consistency check for revkey and numrefkeys.
5059         * getkey.c (check_revocation_keys): Added consistency check for
5060         revkey and numrefkeys.
5062         * keyedit.c (show_key_with_all_names): Likewise.
5064 2002-05-03  David Shaw  <dshaw@jabberwocky.com>
5066         * photoid.c: Provide default image viewer for Win32.
5068         * misc.c (pct_expando): %t means extension, not name ("jpg", not
5069         "jpeg").
5071         * keyserver.c (keyserver_spawn), photoid.c (show_photos), exec.h,
5072         exec.c: Allow the caller to determine the temp file extension when
5073         starting an exec_write and change all callers.
5075         * keyedit.c (sign_uids): Nonrevocable key signatures cause an
5076         automatic promotion to v4.
5078         * exec.c: Provide stubs for exec_ functions when NO_EXEC is
5079         defined.
5081 2002-05-02  David Shaw  <dshaw@jabberwocky.com>
5083         * photoid.h, photoid.c (parse_image_header, image_type_to_string):
5084         Useful functions to return data about an image.
5086         * packet.h, parse-packet.c (make_attribute_uidname,
5087         parse_attribute_subpkts, parse_attribute), photoid.h, photoid.c
5088         (show_photos): Handle multiple images in a single attribute
5089         packet.
5091         * main.h, misc.c (pct_expando), sign.c (mk_notation_and_policy),
5092         photoid.c (show_photos): Simpler expando code that does not
5093         require using compile-time string sizes.  Call
5094         image_type_to_string to get image strings (i.e. "jpg",
5095         "image/jpeg").  Change all callers.
5097         * keyedit.c (menu_showphoto), keylist.c (list_keyblock_print):
5098         Allow viewing multiple images within a single attribute packet.
5100         * gpgv.c: Various stubs for link happiness.
5102 2002-05-02  David Shaw  <dshaw@jabberwocky.com>
5104         * build-packet.c (build_sig_subpkt), keyedit.c (sign_uids),
5105         options.h, sign.c (mk_notation_and_policy), g10.c (main,
5106         add_notation_data, add_policy_url (new), check_policy_url
5107         (removed)): Allow multiple policy URLs on a given signature.
5108         Split "--notation-data" into "--cert-notation" and
5109         "--sig-notation" so the user can set different policies for key
5110         and data signing.  For backwards compatibility, "--notation-data"
5111         sets both, as before.
5113 2002-05-02  Werner Koch  <wk@gnupg.org>
5115         * options.skel: Removed the comment on trusted-keys because this
5116         option is now deprecated.
5118 2002-05-01  David Shaw  <dshaw@jabberwocky.com>
5120         * keyedit.c (menu_adduid): 2440bis04 says that multiple attribute
5121         packets on a given key are legal.
5123         * keyserver.c (keyserver_refresh): the fake v3 keyid hack applies
5124         to "mailto" URLs as well since they are also served by pksd.
5126 2002-04-29  Werner Koch  <wk@gnupg.org>
5128         Added a copyright year for files changed this year.
5130 2002-04-25  Werner Koch  <wk@gnupg.org>
5132         * g10.c, options.h: New options --display, --ttyname, --ttytype,
5133         --lc-ctype, --lc-messages to be used with future versions of the
5134         gpg-agent. 
5135         * passphrase.c (agent_send_option,agent_send_all_options): New.
5136         (agent_open): Send options to the agent.
5138         * trustdb.c (update_ownertrust, clear_ownertrust): Do an explicit
5139         do_sync because revalidation_mark does it only if when the
5140         timestamp actually changes.
5142 2002-04-23  David Shaw  <dshaw@jabberwocky.com>
5144         * main.h, keygen.c (do_generate_keypair), keylist.c
5145         (print_signature_stats, list_all, list_one, list_keyblock,
5146         list_keyblock_print, list_keyblock_colon): After generating a new
5147         key, show the key information (name, keyid, fingerprint, etc.)
5148         Also do not print uncheckable signatures (missing key..) in
5149         --check-sigs.  Print statistics (N missing keys, etc.) after
5150         --check-sigs.
5152         * keyedit.c (sign_uids): When signing a key with an expiration
5153         date on it, the "Do you want your signature to expire at the same
5154         time?" question should default to YES.
5156 2002-04-22  David Shaw  <dshaw@jabberwocky.com>
5158         * parse-packet.c (parse_plaintext), packet.h, plaintext.c
5159         (handle_plaintext): Fix bug in handling literal packets with
5160         zero-length data (no data was being confused with partial body
5161         length).
5163         * misc.c (pct_expando), options.skel: %t means extension ("jpg").
5164         %T means MIME type ("image/jpeg").
5166         * import.c (import_one): Only trigger trust update if the keyring
5167         is actually changed.
5169         * export.c (do_export_stream): Missing a m_free.
5171 2002-04-22  Stefan Bellon  <sbellon@sbellon.de>
5173         * keyid.c (expirestr_from_sk, expirestr_from_sig): Added _() to
5174         string constant.
5176         * exec.c (make_tempdir) [__riscos__]: Better placement of
5177         temporary file.
5179 2002-04-20  David Shaw  <dshaw@jabberwocky.com>
5181         * keygen.c (generate_subkeypair): 2440bis04 adds that creating
5182         subkeys on v3 keys is a MUST NOT.
5184         * getkey.c (finish_lookup): The --pgp6 "use the primary key"
5185         behavior should only apply while data signing and not encryption.
5186         Noted by Roger Sondermann.
5188 2002-04-19  Werner Koch  <wk@gnupg.org>
5190         * keygen.c (keygen_set_std_prefs): Put back 3DES because the RFC
5191         says it is good form to do so.
5193 2002-04-19  David Shaw  <dshaw@jabberwocky.com>
5195         * keyedit.c (menu_deluid): Only cause a trust update if we delete
5196         a non-revoked user id.
5198         * hkp.c (hkp_ask_import), keyserver.c (parse_keyserver_options,
5199         keyserver_spawn), options.h: Remove fast-import keyserver option
5200         (no longer meaningful).
5202         * g10.c (main), keyedit.c (sign_uids), options.h: Change
5203         --default-check-level to --default-cert-check-level as it makes
5204         clear what it operates on.
5206         * g10.c (main): --pgp6 also implies --no-ask-sig-expire.
5208         * delkey.c (do_delete_key): Comment.
5210         * keyedit.c (sign_uids, keyedit_menu, menu_deluid, menu_delsig,
5211         menu_expire, menu_revsig, menu_revkey): Only force a trustdb check
5212         if we did something that changes it.
5214         * g10.c: add "--auto-check-trustdb" to override a
5215         "--no-auto-check-trustdb"
5217 2002-04-19  Werner Koch  <wk@gnupg.org>
5219         * tdbio.c (tdbio_write_nextcheck): Return a status whether the
5220         stamp was actually changed.
5221         * trustdb.c (revalidation_mark): Sync the changes.  Removed the
5222         sync operation done by its callers.
5223         (get_validity): Add logic for maintaining a pending_check flag.
5224         (clear_ownertrust): New.
5225         
5226         * keyedit.c (sign_uids): Don't call revalidation_mark depending on
5227         primary_pk.
5228         (keyedit_menu): Call revalidation_mark after "trust".
5229         (show_key_with_all_names): Print a warning on the wrong listed key
5230         validity.
5232         * delkey.c (do_delete_key): Clear the owenertrust information when
5233         deleting a public key.
5234         
5235 2002-04-18  Werner Koch  <wk@gnupg.org>
5237         * seskey.c (encode_md_value): Print an error message if a wrong
5238         digest algorithm is used with DSA.  Changed all callers to cope
5239         with a NULL return.  Problem noted by Imad R. Faiad.
5241 2002-04-18  David Shaw  <dshaw@jabberwocky.com>
5243         * trustdb.c (mark_usable_uid_certs): Properly handle nonrevocable
5244         signatures that can expire.  In short, the only thing that can
5245         override an unexpired nonrevocable signature is another unexpired
5246         nonrevocable signature.
5248         * getkey.c (finish_lookup): Always use primary signing key for
5249         signatures when --pgp6 is on since pgp6 and 7 do not understand
5250         signatures made by signing subkeys.
5252 2002-04-18  Werner Koch  <wk@gnupg.org>
5254         * trustdb.c (validate_keys): Never schedule a nextcheck into the
5255         past.
5256         (validate_key_list): New arg curtime use it to set next_expire.
5257         (validate_one_keyblock): Take the current time from the caller.
5258         (clear_validity, reset_unconnected_keys): New.
5259         (validate_keys): Reset all unconnected keys.
5261         * getkey.c (premerge_public_with_secret): Fixed 0x12345678! syntax
5262         for use with secret keys.
5263         (lookup): Advance the searchmode after a search FIRST.
5265         * seckey-cert.c (do_check): Always calculate the old checksum for
5266         use after unprotection.
5268         * g10.c, options.skel: New option --no-escape-from.  Made
5269         --escape-from and --force-v3-sigs the default and removed them
5270         from the options skeleton.
5272 2002-04-16  Werner Koch  <wk@gnupg.org>
5274         * parse-packet.c (parse_key): Support a SHA1 checksum as per
5275         draft-rfc2440-bis04.
5276         * packet.h (PKT_secret_key): Add field sha1chk.
5277         * seckey-cert.c (do_check): Check the SHA1 checksum
5278         (protect_secret_key): And create it.
5279         * build-packet.c (do_secret_key): Mark it as sha-1 protected.
5280         * g10.c, options.h: New option --simple-sk-checksum.
5282 2002-04-13  David Shaw  <dshaw@jabberwocky.com>
5284         * parse-packet.c (parse_signature): Minor fix - signatures should
5285         expire at their expiration time and not one second later.
5287         * keygen.c (proc_parameter_file): Allow specifying preferences
5288         string (i.e. "s5 s2 z1 z2", etc) in a batchmode key generation
5289         file.
5291         * keyedit.c (keyedit_menu): Print standard error message when
5292         signing a revoked key (no new translation).
5294         * getkey.c (merge_selfsigs): Get the default set of key prefs from
5295         the real (not attribute) primary uid.
5297 2002-04-12  David Shaw  <dshaw@jabberwocky.com>
5299         * pkclist.c (build_pk_list): Fix bug that allowed a key to be
5300         selected twice in batch mode if one instance was the default
5301         recipient and the other was an encrypt-to.  Noted by Stefan
5302         Bellon.
5304         * parse-packet.c (dump_sig_subpkt): Show data in trust and regexp
5305         sig subpackets.
5307         * keyedit.c (keyedit_menu): Use new function real_uids_left to
5308         prevent deleting the last real (i.e. non-attribute) uid.  Again,
5309         according to the attribute draft. (menu_showphoto): Make another
5310         string translatable.
5312 2002-04-11  David Shaw  <dshaw@jabberwocky.com>
5314         * build-packet.c (build_sig_subpkt): Delete subpackets from both
5315         hashed and unhashed area on update.  (find_subpkt): No longer
5316         needed.
5318         * keyedit.c (sign_uids): With --pgp2 on, refuse to sign a v3 key
5319         with a v4 signature.  As usual, --expert overrides.  Try to tweak
5320         some strings to a closer match so they can all be translated in
5321         one place.  Use different helptext keys to allow different help
5322         text for different questions.
5324         * keygen.c (keygen_upd_std_prefs): Remove preferences from both
5325         hashed and unhashed areas if they are not going to be used.
5327 2002-04-10  David Shaw  <dshaw@jabberwocky.com>
5329         * misc.c (pct_expando), options.skel: Use %t to indicate type of a
5330         photo ID (in this version, it's always "jpeg").  Also tweak string
5331         expansion loop to minimize reallocs.
5333         * mainproc.c (do_check_sig): Variable type fix.
5335         * keyedit.c (menu_set_primary_uid): Differentiate between true
5336         user IDs and attribute user IDs when making one of them primary.
5337         That is, if we are making a user ID primary, we alter user IDs.
5338         If we are making an attribute packet primary, we alter attribute
5339         packets.  This matches the language in the latest attribute packet
5340         draft.
5342         * keyedit.c (sign_uids): No need for the empty string hack.
5344         * getkey.c (fixup_uidnode): Only accept preferences from the
5345         hashed segment of the self-sig.
5347 2002-04-10  Werner Koch  <wk@gnupg.org>
5349         * tdbio.c (migrate_from_v2): Fixed the offset to read the old
5350         ownertrust value and only add entries to the table if we really
5351         have a value.
5353 2002-04-08  David Shaw  <dshaw@jabberwocky.com>
5355         * status.h, status.c (get_status_string): Add KEYEXPIRED, EXPSIG,
5356         and EXPKEYSIG.  Add "deprecated-use-keyexpired-instead" to
5357         SIGEXPIRED.
5359         * sig-check.c (do_check): Start transition from SIGEXPIRED to
5360         KEYEXPIRED, since the actual event is signature verification by an
5361         expired key and not an expired signature. (do_signature_check,
5362         packet.h): Rename as signature_check2, make public, and change all
5363         callers.
5365         * mainproc.c (check_sig_and_print, do_check_sig): Use status
5366         EXPSIG for an expired, but good, signature.  Add the expiration
5367         time (or 0) to the VALIDSIG status line.  Use status KEYEXPSIG for
5368         a good signature from an expired key.
5370         * g10.c (main): remove checks for no arguments now that argparse
5371         does it.
5373 2002-04-06  Werner Koch  <wk@gnupg.org>
5375         * keyring.c (keyring_get_keyblock): Disable the keylist mode here.
5377         * encode.c (encode_simple, encode_crypt): Only test on compressed
5378         files if a compress level was not explicity set.
5380         * keygen.c (keygen_set_std_prefs): Removed Blowfish and Twofish
5381         from the list of default preferences, swapped the preferences of
5382         RMD160 and SHA1.  Don't include a preference to 3DES unless the
5383         IDEA kludge gets used.
5385         * free-packet.c (free_packet): call free_encrypted also for
5386         PKT_ENCRYPTED_MDC.
5388         * compress.c (release_context): New.
5389         (handle_compressed): Allocate the context and setup a closure to
5390         release the context.  This is required because there is no
5391         guarantee that the filter gets popped from the chain at the end
5392         of the function.  Problem noted by Timo and probably also the
5393         cause for a couple of other reports.
5394         (compress_filter): Use the release function if set.
5396         * tdbio.c [__CYGWIN32__]: Don't rename ftruncate.  Noted by
5397         Disastry.
5399         * parse-packet.c (parse_signature): Put parens around a bit test.
5401         * exec.c (make_tempdir): Double backslash for TMP directory
5402         creation under Windows.  Better strlen the DIRSEP_S constants for
5403         allocation measurements.
5405         * decrypt.c (decrypt_messages): Release the passphrase aquired
5406         by get_last_passphrase.
5408 2002-04-02  Werner Koch  <wk@gnupg.org>
5410         * Makefile.am (EXTRA_DIST): Removed OPTIONS an pubring.asc - they
5411         are no longer of any use. 
5413 2002-04-03  David Shaw  <dshaw@jabberwocky.com>
5415         * keyserver.c (parse_keyserver_options): fix auto-key-retrieve to
5416         actually work as a keyserver-option (noted by Roger Sondermann).
5418         * keylist.c (reorder_keyblock): do not reorder the primary
5419         attribute packet - the first user ID must be a genuine one.
5421 2002-03-31  David Shaw  <dshaw@jabberwocky.com>
5423         * keylist.c (list_keyblock_colon): Fix ownertrust display with
5424         --with-colons.
5426         * keygen.c (generate_user_id), photoid.c (generate_photo_id):
5427         Properly initialize the user ID refcount.  A few more "y/n" ->
5428         "y/N" in photoid.c.
5430         * keyedit.c (ask_revoke_sig): Warn the user if they are about to
5431         revoke an expired sig (not a problem, but they should know).  Also
5432         tweak a few prompts to change "y/n" to "y/N", which is how most
5433         other prompts are written.
5435         * keyserver.c (keyserver_search_prompt): Control-d escapes the
5436         keyserver search prompt.
5438         * pkclist.c (show_revocation_reason & callers): If a subkey is
5439         considered revoked solely because the parent key is revoked, print
5440         the revocation reason from the parent key.
5442         * trustdb.c (get_validity): Allow revocation/expiration to apply
5443         to a uid/key with no entry in the trustdb.
5445 2002-03-29  David Shaw  <dshaw@jabberwocky.com>
5447         * keyserver.c (printunquoted): unquote backslashes from keyserver
5448         searches
5450         * hkp.c (write_quoted): quote backslashes from keyserver searches
5452 2002-03-26  Werner Koch  <wk@gnupg.org>
5454         * keygen.c (ask_keysize): Removed the warning for key sizes > 1536.
5456 2002-03-25  Werner Koch  <wk@gnupg.org>
5458         * keyedit.c (sign_uids): Use 2 strings and not a %s so that
5459         translations can be done the right way.
5460         * helptext.c: Fixed small typo.
5462 2002-03-23  David Shaw  <dshaw@jabberwocky.com>
5464         * import.c (append_uid, merge_sigs): it is okay to import
5465         completely non-signed uids now (with --allow-non-selfsigned-uid).
5467         * getkey.c (get_primary_uid, merge_selfsigs_main): do not choose
5468         an attribute packet (i.e. photo) as primary uid.  This prevents
5469         oddities like "Good signature from [image of size 2671]".  This is
5470         still not perfect (one can still select an attribute packet as
5471         primary in --edit), but is closer to the way the draft is going.
5473         * g10.c (build_list): algorithms should include 110.
5475         * g10.c (main): --pgp2 implies --no-ask-sig-expire and
5476         --no-ask-cert-expire as those would cause a v4 sig/cert.
5478         * armor.c (is_armor_header): be more lenient in what constitutes a
5479         valid armor header (i.e. -----BEGIN blah blah-----) as some
5480         Windows programs seem to add spaces at the end.  --openpgp makes
5481         it strict again.
5483 2002-03-18  David Shaw  <dshaw@jabberwocky.com>
5485         * keyserver.c (keyserver_search_prompt): Properly handle a "no
5486         keys found" case from the internal HKP code (external HKP is ok).
5487         Also, make a COUNT -1 (i.e. streamed) keyserver response a little
5488         more efficient.
5490         * g10.c (main): Add --no-allow-non-selfsigned-uid
5492 2002-03-17  David Shaw  <dshaw@jabberwocky.com>
5494         * g10.c (main): --openpgp implies --allow-non-selfsigned-uid.
5496         * getkey.c (merge_selfsigs_main): If none of the uids are primary
5497         (because none are valid) then pick the first to be primary (but
5498         still invalid).  This is for cosmetics in case some display needs
5499         to print a user ID from a non-selfsigned key.  Also use
5500         --allow-non-selfsigned-uid to make such a key valid and not
5501         --always-trust.  The key is *not* automatically trusted via
5502         --allow-non-selfsigned-uid.
5504         * mainproc.c (check_sig_and_print): Make sure non-selfsigned uids
5505         print [uncertain] on verification even though one is primary now.
5507         * getkey.c (merge_selfsigs): If the main key is not valid, then
5508         neither are the subkeys.
5510         * import.c (import_one): Allow --allow-non-selfsigned-uid to work
5511         on completely unsigned keys.  Print the uids in UTF8.  Remove
5512         mark_non_selfsigned_uids_valid().
5514         * keyedit.c (show_key_with_all_names): Show revocation key as
5515         UTF8.
5517         * sign.c (clearsign_file): Allow --not-dash-escaped to work with
5518         v3 keys.
5520 2002-03-14  Werner Koch  <wk@gnupg.org>
5522         * main.h: Changed the default algorithms to CAST5 and SHA1.
5524 2002-03-13  David Shaw  <dshaw@jabberwocky.com>
5526         * import.c (chk_self_sigs): Show which user ID a bad self-sig
5527         (invald sig or unsupported public key algorithm) resides on.
5529         * import.c (chk_self_sigs): any valid self-sig should mark a user
5530         ID or subkey as valid - otherwise, an attacker could DoS the user
5531         by inventing a bogus invalid self-signature.
5533 2002-03-07  David Shaw  <dshaw@jabberwocky.com>
5535         * g10.c (main): make a few more strings translatable.
5537         * options.h, options.skel, g10.c (main), gpgv.c, mainproc.c
5538         (check_sig_and_print), keyserver.c (parse_keyserver_options):
5539         --auto-key-retrieve should really be a keyserver-option variable.
5541         * import.c (revocation_present): new function to print a warning
5542         if a key is imported that has been revoked by designated revoker,
5543         but the designated revoker is not present to verify the
5544         revocation.  If keyserver-options auto-key-retrieve is set, try
5545         and fetch the designated revoker from the keyserver.
5547         * import.c (import_one): call revocation_present after importing a
5548         new key.  Note that this applies to --import, --recv-keys, and
5549         --search-keys.
5550         
5551         * keyserver-internal.h, keyserver.c (keyserver_import_fprint):
5552         import via fingerprint (for revocation keys).
5554         * keyserver.c (keyserver_import_keyid): much simpler
5555         implementation now that we're using KEYDB_SEARCH_DESC internally.
5557 2002-03-04  David Shaw  <dshaw@jabberwocky.com>
5559         * revoke.c (gen_revoke): do not prompt for revocation reason for
5560         v3 revocations (unless force-v4-certs is on) since they wouldn't
5561         be used anyway.
5563         * keyedit.c (menu_revsig): show the status of the sigs
5564         (exportable? revocable?) to the user before prompting for which
5565         sig to revoke.  Also, make sure that local signatures get local
5566         revocations.
5568         * keyedit.c (ask_revoke_sig): remind the user which sigs are
5569         local.
5571         * g10.c (main): Add "exec-path" variable to override PATH for
5572         execing programs.
5574         * export.c (do_export_stream): properly check return code from
5575         classify_user_id to catch unclassifiable keys.
5577 2002-03-03  David Shaw  <dshaw@jabberwocky.com>
5579         * parse-packet.c (parse_signature): variable type tweak for RISC
5580         OS (from Stefan)
5582 2002-02-28  David Shaw  <dshaw@jabberwocky.com>
5584         * getkey.c (check_revocation_keys): New function to check a
5585         revocation against a list of potential revocation keys.  Note the
5586         loop-breaking code here.  This is to prevent blowing up if A is
5587         B's revocation key, while B is also A's.  Note also that this is
5588         written so that a revoked revoker can still issue revocations:
5589         i.e. If A revokes B, but A is revoked, B is still revoked.  I'm
5590         not completely convinced this is the proper behavior, but it
5591         matches how PGP does it.  It does at least have the advantage of
5592         much simpler code - my first version of this had lots of loop
5593         maintaining code so you could chain revokers many levels deep and
5594         if D was revoked, C was not, which meant that B was, and so on.
5595         It was sort of scary, actually.
5597         * getkey.c (merge_selfsigs_main): Add any revocation keys onto the
5598         pk.  This is particularly interesting since we normally only get
5599         data from the most recent 1F signature, but you need multiple 1F
5600         sigs to properly handle revocation keys (PGP does it this way, and
5601         a revocation key could be marked "sensitive" and hence in a
5602         different signature).  Also, if a pk has a revocation key set,
5603         check for revocation sigs that were not made by us - if made by a
5604         valid revocation key, mark the pk revoked.
5606         * packet.h, getkey.c (cache_public_key): do not cache key if
5607         "dont_cache" is set.  This allows the revocation key code to look
5608         up a key and return information that may be inaccurate to prevent
5609         loops without caching the fake data.
5611         * packet.h, sig-check.c (do_signature_check): Record if a
5612         signature was made by a revoked pk.
5614         * packet.h, parse-packet.c (parse_one_sig_subpkt,
5615         can_handle_critical, parse_signature): Get revocation key
5616         information out of direct sigs.
5617         
5618         * keylist.c (list_keyblock_print): don't assume that the presence
5619         of a 0x20 signature means the key is revoked.  With revocation
5620         keys, this may not be true if the revocation key is not around to
5621         verify it or if verification failed.  Also, 0x1F should get listed
5622         as "sig", and not "unexpected signature class".
5624         * keyedit.c (show_key_with_all_names): Add a flag for printing
5625         revoker information and change all callers.
5627         * import.c (merge_blocks): merge in any new direct key (0x1F)
5628         sigs.
5630         * import.c (import_revoke_cert): don't keep processing after a
5631         revocation is rejected.
5632         
5633         * import.c (delete_inv_parts): Allow importing a revocation
5634         signature even if it was not issued by the key.  This allows a
5635         revocation key to issue it.  Of course, the sig still needs to be
5636         checked before we trust it.
5638         * free-packet.c (copy_public_key): Include a new copy of the
5639         revocation keys when duping a pk.
5641         * free-packet.c (free_seckey_enc, release_public_key_parts): Free
5642         any revocation keys that are attached to a sig or pk.
5644         * export.c (do_export_stream): Do not export signatures with
5645         "sensitive" revocation keys in them.
5647 2002-02-27  David Shaw  <dshaw@jabberwocky.com>
5649         * export.c (do_export_stream): Do not include v3 keys in a
5650         --export-secret-subkeys export.
5652         * getkey.c (merge_selfsigs_main): If a key isn't valid (say,
5653         because of no self-signature), allow --always-trust to force it
5654         valid so it can be trusted.
5656 2002-02-25  David Shaw  <dshaw@jabberwocky.com>
5658         * hkp.c (hkp_ask_import), hkp.h, keyserver.c (all): treat key
5659         lists internally as fingerprints when possible.  All this is via
5660         KEYDB_SEARCH_DESC - no point in reinventing the wheel. This allows
5661         the helper program to search the keyserver by fingerprint if
5662         desired (and the keyserver supports it).  Note that automatic
5663         fingerprint promotion during refresh only applies to v4 keys as a
5664         v4 fingerprint can be easily changed into a long or short key id,
5665         and a v3 cannot.
5667         * pubkey-enc.c, getkey.c, misc.c, main.h: Take two copies of
5668         hextobyte() from pubkey-enc.c and getkey.c and make them into one
5669         copy in misc.c.
5671 2002-02-22  David Shaw  <dshaw@jabberwocky.com>
5673         * keyserver.c (keyserver_search_prompt): Detect a "no keys found"
5674         case even if the helper program does not explicitly say how many
5675         keys were found.
5677         * hkp.c (parse_hkp_index): Bug fix - don't report non-revoked keys
5678         as revoked in HKP key searches.
5680 2002-02-19  Werner Koch  <wk@gnupg.org>
5682         * parse-packet.c (parse_trust): Made parsing more robust.
5684 2002-02-19  David Shaw  <dshaw@jabberwocky.com>
5686         * hkp.c (parse_hkp_index): Catch corruption in HKP index lines
5687         (can be caused by broken or malicious keyservers).
5689         * keyserver.c (keyserver_work): Add KEYSERVER_NOT_SUPPORTED for
5690         unsupported actions (say, a keyserver that has no way to search,
5691         or a readonly keyserver that has no way to add).  Also add a
5692         USE_EXTERNAL_HKP define to disable the internal HKP keyserver
5693         code.
5695 2002-02-14  Werner Koch  <wk@gnupg.org>
5697         * g10.c: New option --no-use-agent. 
5699         * pkclist.c (check_signatures_trust): Always print the warning for
5700         unknown and undefined trust.  Removed the did_add cruft.  Reported
5701         by Janusz A. Urbanowicz.
5703 2002-02-11  David Shaw  <dshaw@jabberwocky.com>
5705         * hkp.c (parse_hkp_index): Bug fix - properly handle user IDs with
5706         colons (":") in them while HKP searching.
5708 2002-02-09  David Shaw  <dshaw@jabberwocky.com>
5710         * misc.c (pct_expando): More comments.
5712         * keydb.h, sign.c (mk_notation_and_policy): Clarify what is a sig
5713         and what is a cert.  A sig has sigclass 0x00, 0x01, 0x02, or 0x40,
5714         and everything else is a cert.
5716         * g10.c (main), keyedit.c (keyedit_menu): Add a "nrlsign" for
5717         nonrevocable and local key signatures.
5719         * g10.c (main): Add a --no-force-mdc to undo --force-mdc.
5721         * options.h, g10.c (main), cipher.c (write_header): Add a knob to
5722         --disable-mdc/--no-disable-mdc.  Off by default, of course, but is
5723         used in --pgp2 and --pgp6 modes.
5724         
5725         * pkclist.c (build_pk_list): Allow specifying multiple users in
5726         the "Enter the user ID" loop.  Enter a blank line to stop.  Show
5727         each key+id as it is added.
5729         * keylist.c (show_policy_url), mainproc.c (print_notation_data):
5730         It is not illegal (though possibly silly) to have multiple policy
5731         URLs in a given signature, so print all that are present.
5732         
5733         * hkp.c (hkp_search): More efficient implementation of URL-ifying
5734         code.
5736 2002-02-04  David Shaw  <dshaw@jabberwocky.com>
5738         * main.h, misc.c (pct_expando): New function to generalize
5739         %-expando processing in any arbitrary string.
5741         * photoid.c (show_photo): Call the new pct_expando function rather
5742         than expand strings internally.
5743         
5744         * sign.c (mk_notation_and_policy): Show policy URLs and notations
5745         when making a signature if show-policy/show-notation is on.
5746         %-expand policy URLs during generation.  This lets the user have
5747         policy URLs of the form "http://notary.jabberwocky.com/keysign/%K"
5748         which will generate a per-signature policy URL.
5750         * main.h, keylist.c (show_policy_url, show_notation): Add amount
5751         to indent so the same function can be used in key listings as well
5752         as during sig generation.  Change all callers.
5754 2002-02-04  David Shaw  <dshaw@jabberwocky.com>
5756         * keyserver.c, options.h (parse_keyserver_options, keyidlist):
5757         Workaround for the pksd and OKS keyserver bug that calculates v4
5758         RSA keyids as if they were v3.  The workaround/hack is to fetch
5759         both the v4 (e.g. 99242560) and v3 (e.g. 68FDDBC7) keyids.  This
5760         only happens for key refresh while using the HKP scheme and the
5761         refresh-add-fake-v3-keyids keyserver option must be set.  This
5762         should stay off by default.
5764 2002-02-03  David Shaw  <dshaw@jabberwocky.com>
5766         * keyserver.c (keyserver_spawn): Bug fix - do not append keys to
5767         each other when --sending more than one.
5769 2002-02-02  David Shaw  <dshaw@jabberwocky.com>
5771         * options.h, g10.c (main), keyedit.c (sign_uids), sign.c
5772         (mk_notation_and_policy): Split "--set-policy-url" into
5773         "--cert-policy-url" and "--sig-policy-url" so the user can set
5774         different policies for key and data signing.  For backwards
5775         compatibility, "--set-policy-url" sets both, as before.
5777 2002-01-30  Werner Koch  <wk@gnupg.org>
5779         * g10.c (main): --gen-random --armor does now output a base64
5780         encoded string.
5782 2002-01-28  David Shaw  <dshaw@jabberwocky.com>
5784         * g10.c (main), options.h, pkclist.c (algo_available): --pgp6
5785         flag.  This is not nearly as involved as --pgp2.  In short, it
5786         turns off force_mdc, turns on no_comment, escape_from, and
5787         force_v3_sigs, and sets compression to 1.  It also restricts the
5788         user to IDEA (if present), 3DES, CAST5, MD5, SHA1, and RIPEMD160.
5789         See the comments above algo_available() for lots of discussion on
5790         why you would want to do this.
5792 2002-01-27  David Shaw  <dshaw@jabberwocky.com>
5794         * keygen.c (keygen_set_std_prefs): Comment
5796         * keyedit.c (sign_uids): Bug fix - when signing with multiple
5797         secret keys at the same time, make sure each key gets the sigclass
5798         prompt.
5800         * exec.c (exec_finish): Close the iobuf and FILE before trying to
5801         waitpid, so the remote process will get a SIGPIPE and exit.  This
5802         is only a factor when using a pipe to communicate.
5804         * exec.c (exec_write): Disable cache-on-close of the fd iobuf (is
5805         this right?  Why is a fd iobuf cached at all?)
5807 2002-01-26  Werner Koch  <wk@gnupg.org>
5809         * g10.c, options.h: New option --gpg-agent-info
5810         * passphrase.c (agent_open): Let it override the environment info.
5811         * seckey-cert.c (check_secret_key): Always try 3 times when the
5812         agent is enabled.
5813         * options.skel: Describe --use-agent.
5815 2002-01-24  David Shaw  <dshaw@jabberwocky.com>
5817         * pubkey-enc.c (is_algo_in_prefs, get_it): Only check preferences
5818         against keys with v4 self sigs - there is really little point in
5819         warning for every single non-IDEA message encrypted to an old key.
5821         * pkclist.c (select_algo_from_prefs): Only put in the fake IDEA
5822         preference if --pgp2 is on.
5824         * mainproc.c (check_sig_and_print): Print "Expired" for expired
5825         but good signatures (this still prints "BAD" for expired but bad
5826         signatures).
5828 2002-01-23  David Shaw  <dshaw@jabberwocky.com>
5830         * keygen.c (ask_keysize): Cosmetic: don't present a RSA signing
5831         key as a "keypair" which can be 768 bits long (as RSA minimum is
5832         1024).
5834         * pubkey-enc.c (is_algo_in_prefs): Allow IDEA as a fake preference
5835         for v3 keys with v3 selfsigs.
5837 2002-01-22  David Shaw  <dshaw@jabberwocky.com>
5839         * packet.h, getkey.c (merge_selfsigs_main), pkclist.c
5840         (select_algo_from_prefs): Implement the fake IDEA preference as
5841         per RFC2440:12.1.  This doesn't mean that IDEA will be used (the
5842         plugin may not be present), but it does mean that a v3 key with a
5843         v3 selfsig has an implicit IDEA preference instead of 3DES.  v3
5844         keys with v4 selfsigs use preferences as normal.
5846         * encode.c (encode_crypt): if select_algo_from_prefs fails, this
5847         means that we could not find a cipher that both keys like.  Since
5848         all v4 keys have an implicit 3DES preference, this means there is
5849         a v3 key with a v3 selfsig in the list.  Use 3DES in this case as
5850         it is the safest option (we know the v4 key can handle it, and
5851         we'll just hope the v3 key is being used in an implementation that
5852         can handle it).  If --pgp2 is on, warn the user what we're doing
5853         since it'll probably break PGP2 compatibility.
5855         * g10.c (main): Do not force using IDEA for encrypted files in
5856         --pgp2 mode - let the fake IDEA preference choose this for us for
5857         better compatibility when encrypting to multiple keys, only some
5858         of which are v3.
5860         * keygen.c (keygen_set_std_prefs): Put 3DES on the end of the
5861         default cipher pref list (RFC2440: "...it is good form to place it
5862         there explicitly.").  If the user has the IDEA plugin installed,
5863         put a preference for IDEA *after* 3DES to effectively disable its
5864         use for everything except encrypting along with v3 keys.
5866         * encode.c, g10.c, sign.c: Change the PGP2 warning line from
5867         "... will not be usable ..." to "... may not be usable ..." as the
5868         user could be using one of the enhanced PGP2 variations.
5870         * helptext.c: Revise the sign_uid.class help text as suggested by
5871         Stefan.
5872         
5873 2002-01-20  Werner Koch  <wk@gnupg.org>
5875         * passphrase.c (passphrase_to_dek): Add tryagain_text arg to be
5876         used with the agent.  Changed all callers.
5877         (agent_get_passphrase): Likewise and send it to the agent
5878         * seckey-cert.c (do_check): New arg tryagain_text.
5879         (check_secret_key): Pass the string to do_check.
5880         * keygen.c (ask_passphrase): Set the error text is required.
5881         * keyedit.c (change_passphrase): Ditto.
5883         * passphrase.c (agent_open): Disable opt.use_agent in case of a
5884         problem with the agent. 
5885         (agent_get_passphrase): Ditto.
5886         (passphrase_clear_cache): Ditto.
5888 2002-01-19  Werner Koch  <wk@gnupg.org>
5890         * passphrase.c (agent_open): Add support for the new Assuan based
5891         gpg-agent.  New arg to return the used protocol version.
5892         (agent_get_passphrase): Implemented new protocol here.
5893         (passphrase_clear_cache): Ditto.
5894         (readline): New.
5895         
5896 2002-01-15  Timo Schulz  <ts@winpt.org>
5898         * encode.c (encode_crypt_files): Fail if --output is used.
5899         
5900         * g10.c: New command --decrypt-files.
5902         * decrypt.c (decrypt_messages): New.
5903         
5904 2002-01-09  David Shaw  <dshaw@jabberwocky.com>
5906         * g10.c, misc.c, gpgv.c: move idea_cipher_warn to misc.c so gpgv.c
5907         doesn't need a stub for it any longer.
5909         * g10.c (get_temp_dir), main.h: no longer used (it's in exec.c now)
5911         * g10.c (main), delkey.c (delete_keys), main.h : Allow
5912         --delete-key (now --delete-keys, though --delete-key still works,
5913         of course) to delete multiple keys in one go.  This applies to
5914         --delete-secret-key(s) and --delete-secret-and-public-key(s) as
5915         well.
5917 2002-01-09  Timo Schulz  <ts@winpt.org>
5919         * encode.c (encode_crypt_files): Now it behaves like verify_files.
5920         
5921         * g10.c (main): We don't need to check argc for encode_crypt_files
5922         any longer.
5924 2002-01-09  Timo Schulz  <ts@winpt.org>
5926         * exec.c: Include windows.h for dosish systems.
5928 2002-01-08  Timo Schulz  <ts@winpt.org>
5930         * g10.c (main): New description for --encrypt-files.
5932 2002-01-08  Werner Koch  <wk@gnupg.org>
5934         * g10.c (main): Must register the secring for encryption because
5935         it is needed to figure out the default recipient.  Reported by
5936         Roger Sondermann.
5938 2002-01-05  David Shaw  <dshaw@jabberwocky.com>
5940         * keyedit.c (menu_adduid): Require --expert before adding a photo
5941         ID to a v3 key, and before adding a second photo ID to any key.
5943         * keyedit.c (keyedit_menu): Don't allow adding photo IDs in
5944         rfc1991 or pgp2 mode.
5946         * getkey.c (merge_selfsigs_subkey): Permit v3 subkeys.  Believe it
5947         or not, this is allowed by rfc 2440, and both PGP 6 and PGP 7 work
5948         fine with them.
5950         * g10.c, options.h, keyedit.c, sign.c: Move the "ask for
5951         expiration" switch off of --expert, which was getting quite
5952         overloaded, and onto ask-sig-expire and ask-cert-expire.  Both
5953         default to off.
5955         * g10.c (main): Change the default compression algo to 1, to be
5956         more OpenPGP compliant (PGP also uses this, so it'll help with
5957         interoperability problems as well).
5959         * encode.c (encode_crypt): Handle compression algo 2, since the
5960         default is now 1.
5962         * build-packet.c (build_attribute_subpkt): Fix off-by-one error.
5964 2002-01-05  Werner Koch  <wk@gnupg.org>
5966         * g10.c (main): Do not register the secret keyrings for certain
5967         commands.
5969         * keydb.c (keydb_add_resource): Use access to test for keyring
5970         existence.  This avoids cached opened files which are bad under
5971         RISC OS.
5973 2002-01-04  David Shaw  <dshaw@jabberwocky.com>
5975         * sign.c (sign_file, sign_symencrypt_file): always use one-pass
5976         packets unless rfc1991 is enabled.  This allows a signature made
5977         with a v3 key to work in PGP 6 and 7.  Signatures made with v4
5978         keys are unchanged.
5980         * g10.c (main): Disallow non-detached signatures in PGP2 mode.
5981         Move the "you must use files and not pipes" PGP2 warning up so all
5982         the PGP2 stuff is together.
5984         * encode.c (encode_simple): Use the actual filesize instead of
5985         partial length packets in the internal literal packet from a
5986         symmetric message.  This breaks PGP5(?), but fixes PGP2, 6, and 7.
5987         It's a decent tradeoff.  Note there was only an issue with
5988         old-style RFC1991 symmetric messages.  2440-style messages in 6
5989         and 7 work with or without partial length packets.
5991 2002-01-03  David Shaw  <dshaw@jabberwocky.com>
5993         * g10.c (main): Removed --no-default-check-level option, as it is
5994         not consistent with other "default" options.  Plus, it is the same
5995         as saying --default-check-level 0.
5997         * exec.c (exec_read): Disallow caching tempfile from child
5998         process, as this keeps the file handle open and can cause unlink
5999         problems on some platforms.
6001         * keyserver.c (keyserver_search_prompt): Minor tweak - don't
6002         bother to transform keyids into textual form if they're just going
6003         to be transformed back to numbers.
6005 2002-01-03  Timo Schulz <ts@winpt.org>
6007         * g10.c: New command --encrypt-files.
6008     
6009         * verify.c (print_file_status): Removed the static because
6010         encode_crypt_files also uses this function.
6012         * main.h (print_files_status): New.
6013         (encode_crypt_files): New.
6015         * encode.c (encode_crypt_files): New.
6017 2002-01-02  Stefan Bellon  <sbellon@sbellon.de>
6019         * keyserver.c: Moved util.h include down in order to avoid
6020         redefinition problems on RISC OS.
6022         * keyring.c (keyring_lock): Only lock keyrings that are writable.
6024         * keyring.c (keyring_update_keyblock): Close unused iobuf.
6026         * hkp.c (parse_hkp_index, hkp_search) [__riscos__]: Changed
6027         unsigned char* to char* because of compiler issues.
6029         * exec.c (exec_finish) [__riscos__]: Invalidate close cache so
6030         that file can be unlinked.
6032 2001-12-28  David Shaw  <dshaw@jabberwocky.com>
6034         * g10.c (main): Use a different strlist to check extensions since
6035         they need to be handled seperately now.
6037         * misc.c,main.h (check_permissions): Properly handle permission
6038         and ownership checks on files in the lib directory
6039         (e.g. /usr/local/lib/gnupg), which are owned by root and are
6040         world-readable, and change all callers to specify extension or
6041         per-user file.
6043         * photoid.c (show_photo), keyserver.c (keyserver_spawn): Bug fix -
6044         don't call exec_finish if exec_write fails.
6046         * keyserver.c (keyserver_spawn): Look for OPTIONS from the
6047         keyserver helper - specifically, a "OUTOFBAND" option for the
6048         email keyserver.
6050         * mainproc.c (list_node), keylist.c (list_keyblock_colon),
6051         import.c (delete_inv_parts), export.c (do_export_stream): Use
6052         signature flags for exportability check rather than re-parsing the
6053         subpacket.
6055         * keyid.c, keydb.h (get_lsign_letter): No longer needed.
6057 2001-12-27  David Shaw  <dshaw@jabberwocky.com>
6059         * exec.c (exec_finish): Show errors when temp files cannot be
6060         deleted for whatever reason.
6062         * exec.c (exec_read): Don't rely on WEXITSTATUS being present.
6064         * exec.c (make_tempdir): Add temp file creator for win32.  Don't
6065         create an incoming temp file if the exec is write-only.
6067         * keyserver.c (keyserver_spawn): Clean up error handling, for when
6068         the spawn fails.
6070         * photoid.c (show_photo): Clean up error handling.
6072         * misc.c (check_permissions): Neaten.
6074 2001-12-25  David Shaw  <dshaw@jabberwocky.com>
6076         * mkdtemp.c (mkdtemp): Add copyleft info and tweak the 'X' counter
6077         to be a bit simpler.
6079         * keyserver.c, photoid.c: Remove unused headers left over from
6080         when the exec functions lived there.
6082 2001-12-23  Timo Schulz <ts@winpt.org>
6084         * misc.c (check_permissions): Do not use it for W32 systems.
6086         * tdbio.c (migrate_from_v2): Define ftruncate as chsize() for W32.
6088         * mkdtemp.c: W32 support.
6090         * photoid.c: Ditto.
6092         * exec.c: Ditto.
6094 2001-12-22  David Shaw  <dshaw@jabberwocky.com>
6096         * exec.c (make_tempdir): avoid compiler warning with const
6098         * mkdtemp.c (mkdtemp): catch the empty ("") string case in case
6099         someone repurposes mkdtemp at some point.
6101         * photoid.c (generate_photo_id, show_photo): some type changes
6102         from Stefan Bellon.
6104         * exec.c (make_tempdir): handle Win32 systems, suggested by Timo
6105         Schulz.
6107 2001-12-22  Werner Koch  <wk@gnupg.org>
6109         * encode.c (encode_simple, encode_crypt): i18n 2 strings.
6111 2001-12-22  Timo Schulz <ts@winpt.org>
6112         
6113         * encode.c (encode_simple, encode_crypt): Use is_file_compressed
6114         to avoid to compress compressed files.
6116 2001-12-22  Werner Koch  <wk@gnupg.org>
6118         * keyserver.c (keyserver_spawn): Removed some variables
6119         declaration due to shadowing warnings.
6121         * build-packet.c (build_attribute_subpkt): s/index/idx/ to avoid
6122         compiler warnig due to index(3).
6124         * getkey.c (get_ctx_handle): Use KEYDB_HANDLE as return value.
6125         * keylist.c (list_one): Made resname const.
6127         * keyedit.c (keyedit_menu): Allow "addphoto" only when --openpgp is
6128         not used.
6130         * options.skel: Changed one example photo viewer to qiv.
6132 2001-12-21  David Shaw  <dshaw@jabberwocky.com>
6134         * Makefile.am: add exec.c, exec.h, photoid.c, and photoid.h
6136         * build-packet.c (build_attribute_subpkt): new function to build
6137         the raw attribute subpacket.  Note that attribute subpackets have
6138         the same format as signature subpackets.
6140         * exec.c: new file with generic exec-a-program functionality.
6141         Used by both photo IDs and keyserver helpers.  This is pretty much
6142         the same code that used to be keyserver specific, with some
6143         changes to be usable generically.
6145         * free-packet.c (free_attributes (new)): function to free an
6146         attribute packet.
6147         
6148         * gpgv.c: added stub show_photo
6149         
6150         * keyedit.c (keyedit_menu, menu_adduid, menu_showphoto): can add a
6151         photo (calls generate_photo_id), or display a photo (calls
6152         show_photo) from the --edit menu.  New commands are "addphoto",
6153         and "delphoto" (same as "deluid").
6155         * keylist.c (list_keyblock_print): show photos during key list if
6156         --show-photos enabled.
6157         
6158         * keyserver.c (keyserver_spawn): use the generic exec_xxx
6159         functions to call keyserver helper.
6161         * g10.c, options.h: three new options - --{no-}show-photos, and
6162         --photo-viewer to give the command line to display a picture.
6164         * options.skel: instructions for the photo viewer
6165         
6166         * parse-packet.c (parse_user_id, setup_user_id (new)): common code
6167         for both user IDs and attribute IDs moved to setup_user_id.
6169         * parse-packet.c (make_attribute_uidname (new)): constructs a fake
6170         "name" for attribute packets (e.g. "[image of size ...]")
6172         * parse-packet.c (parse_attribute (replaces parse_photo_id),
6173         parse_attribute_subpkts): Builds an array of individual
6174         attributes.  Currently only handles attribute image / type jpeg
6175         subpackets.
6177         * sign.c (hash_uid): Fix bug in signing attribute (formerly
6178         photo_id) packets.
6180         * packet.h, and callers: globally change "photo_id" to "attribute"
6181         and add structures for attributes.  The packet format is generic
6182         attributes, even though the only attribute type thus far defined
6183         is jpeg.
6185 2001-12-21  David Shaw  <dshaw@jabberwocky.com>
6187         * parse-packet.c (can_handle_critical): Can handle critical
6188         revocation subpackets now.
6190         * trustdb.c (mark_usable_uid_certs): Disregard revocations for
6191         nonrevocable sigs.  Note that this allows a newer revocable
6192         signature to override an older nonrevocable signature.
6194         * sign.c (make_keysig_packet): add a duration field and change all
6195         callers.  This makes make_keysig_packet closer to
6196         write_signature_packets and removes some duplicated expiration
6197         code.
6199         * keyedit.c (keyedit_menu, menu_revsig, sign_uids,
6200         sign_mk_attrib): Add nrsign command, don't allow revoking a
6201         nonrevocable signature,
6203         * g10.c (main): Add --nrsign option to nonrevocably sign a key
6204         from the command line.
6206         * build-packet.c (build_sig_subpkt_from_sig): Comment to explain
6207         the use of CRITICAL.
6209 2001-12-21  Werner Koch  <wk@gnupg.org>
6211         * g10.c. options.h : New option --show-keyring
6212         * getkey.c (get_ctx_handle): New.
6213         * keylist.c (list_one): Implement option here.  By David Champion. 
6215 2001-12-20  David Shaw  <dshaw@jabberwocky.com>
6217         * keyserver.c (keyserver_spawn): Use mkdtemp() to make temp
6218         directory.
6220         * mkdtemp.c: replacement function for those platforms that don't
6221         have mkdtemp (make a temp directory securely).
6223 2001-12-19  David Shaw  <dshaw@jabberwocky.com>
6225         * misc.c (check_permissions): New function to stat() and ensure
6226         the permissions of GNUPGHOME and the files have safe permissions.
6228         * keydb.c (keydb_add_resource): Check keyring permissions.
6230         * tdbio.c (tdbio_set_dbname): Check permissions of trustdb.gpg
6232         * keyserver.c (keyserver_spawn): Disable keyserver schemes that
6233         involve running external programs if the options file has unsafe
6234         permissions or ownership.
6236         * g10.c, options.h: New option --no-permission-warning to disable
6237         the permission warning message(s).  This also permits use of the
6238         keyserver if it had been disabled (see above).  Also check the
6239         permissions/ownership of random_seed.
6240         
6241         * keyserver.c (keyserver_spawn): The new glibc prints a warning
6242         when using mktemp() (the code was already secure, but the warning
6243         was bound to cause confusion).  Use a different implementation
6244         based on get_random_bits() instead.  Also try a few times to get
6245         the temp dir before giving up.
6247 2001-12-19  Werner Koch  <wk@gnupg.org>
6249         * g10.c, passphrase.c [CYGWIN32]: Allow this as an alias for MINGW32.
6251 2001-12-18  David Shaw  <dshaw@jabberwocky.com>
6253         * g10.c (idea_cipher_warn): Add a flag to show the warning always
6254         or once per session and change all callers (show always except for
6255         the secret key protection and unknown cipher from an encrypted
6256         message errors).  Also make the strings translatable.
6258         * pubkey-enc.c (get_it): Add the IDEA cipher warning if the user
6259         tries to decrypt an IDEA encrypted message without the IDEA
6260         plugin.
6262         * keyserver.c (parse_keyserver_uri): More strict checking of the
6263         keyserver URI.  Specifically, fail if the ":port" section is
6264         anything except a number between 1 and 65535.
6266 2001-12-17  David Shaw  <dshaw@jabberwocky.com>
6268         * keyserver.c (print_keyinfo): No need to check for
6269         control/illegal characters, as utf8_to_native does this for us.
6271         * mainproc.c (proc_encrypted): Use generic IDEA warning.
6273         * gpgv.c: add stub for idea_cipher_warn
6275         * g10.c, hkp.c, keyserver.c: Fix capitalization and plural issues.
6277         * encode.c (encode_crypt), sign.c (sign_file, clearsign_file):
6278         disable pgp2 mode after the message is no longer pgp2 compatible.
6280         * g10.c (main): Tweak the PGP2.x IDEA warning to use the generic
6281         warning, and not merely fail if the IDEA plugin isn't there.
6283         * g10.c (main, idea_cipher_warn), keygen.c (set_one_pref),
6284         seckey-cert.c (do_check): Add a generic IDEA warning for when the
6285         IDEA plugin is not present.  This pops up when the user uses
6286         "--cipher-algo idea", when setpref is used to set a "S1"
6287         preference, and when a secret key protected with IDEA is used.
6289 2001-12-15  Werner Koch  <wk@gnupg.org>
6291         * keyserver.c (keyserver_spawn): Assert that we have dropped privs.
6293 2001-12-13  Werner Koch  <wk@gnupg.org>
6295         * pubkey-enc.c (get_session_key): Check that the public key
6296         algorithm is indeed usable for en/decryption.  This avoid a
6297         strange error message from pubkey_decrypt if for some reasons a
6298         bad algorithm indentifier is passed.
6300 2001-12-12  David Shaw  <dshaw@jabberwocky.com>
6302         * Fixed some types for portability.  Noted by Stefan Bellon.
6304 2001-12-11  Werner Koch  <wk@gnupg.org>
6306         * hkp.c (hkp_export): Do not print possible control characters
6307         from a keyserver response.
6308         (parse_hkp_index): Made uid an unsigned char* because it is passed to
6309         isspace().
6310         (hkp_search): Ditto for the char* vars.
6312         * g10.c (main): Print the IDEA warning also for -c and -se.
6313         
6314         * g10.c (get_temp_dir): Assert that we have dropped privs
6316         * encode.c (encode_crypt): Include the first key into the --pgp2
6317         check.
6319 2001-12-07  David Shaw  <dshaw@jabberwocky.com>
6321         * g10.c, options.h: New option --pgp2.  This is identical to
6322         "--rfc1991 --cipher-algo idea --compress-algo 1 --digest-algo md5
6323         --force_v3_sigs" with the addition of an warning to advise the
6324         user not to use a pipe (which would break pgp2 compatibility).
6326         * encode.c (encode_crypt): warn if the user tries to encrypt to
6327         any key that is not RSA and <= 2048 bits when the --pgp2 option is
6328         used.
6330         * sign.c (sign_file, clearsign_file): When using --pgp2, make a v3
6331         sig, and warn if the signature is made with a non-v3 key.
6333 2001-12-05  David Shaw  <dshaw@jabberwocky.com>
6335         * sign.c (sign_file, clearsign_file, sign_symencrypt_file): Prompt
6336         for sig expiration if --expert is set and --force-v3-sigs is not
6337         set (v3 sigs cannot expire).
6339         * mainproc.c (check_sig_and_print): After checking a sig, print
6340         expiration status.  This causes a error return if the sig is
6341         expired.
6343         * build-packet.c (build_sig_subpkt_from_sig): Include a critical
6344         sig expiration subpacket if the sig is to expire.
6346         * keyedit.c (sign_uids): Do not sign an expired key unless
6347         --expert is set, in which case prompt.  Also, offer to expire a
6348         signature when the key the user is signing expires.
6350         * keygen.c (ask_expire_interval): Add a value to determine whether
6351         to prompt for a key or sig expiration and change all callers.
6353         * keyid.c: New functions: expirestr_from_sig and
6354         colon_expirestr_from_sig.
6356         * keylist.c (list_keyblock_colon): Show sig expiration date in the
6357         --with-colons listing.
6359         * sign.c (make_keysig_packet, write_signature_packets): Pass in an
6360         optional timestamp for the signature packet, and change all
6361         callers.
6363         * keyedit.c (sign_mk_attrib): Include a critical expiration
6364         subpacket in the signature if an expiration date is given.
6366 2001-12-04  David Shaw  <dshaw@jabberwocky.com>
6368         * keyedit.c (sign_uids): If the user tries to sign a
6369         locally-signed key, allow the cert to be promoted to a full
6370         exportable signature.  This essentially deletes the old
6371         non-exportable sig, and replaces it with a new exportable one.
6373 2001-12-04  David Shaw  <dshaw@jabberwocky.com>
6375         * keyedit.c (keyedit_menu): Do not allow signing a revoked key
6376         unless --expert is set, and ask even then.
6378         * keyedit.c (sign_uids): Do not allow signing a revoked UID unless
6379         --expert is set, and ask even then.
6381         * g10.c, options.h : New option --expert
6383 2001-11-16  David Shaw  <dshaw@jabberwocky.com>
6385         * Allow the user to select no compression via "--compress-algo 0"
6386         on the command line.
6388         * keyedit.c (show_prefs): Show compression preferences in the
6389         long-form "showpref" style.
6391         * keygen.c (set_one_pref): Permit setting a no-compression ("Z0")
6392         preference.
6394         * getkey.c (fixup_uidnode): Fix compression preference corruption
6395         bug.
6397 2001-12-02  David Shaw  <dshaw@jabberwocky.com>
6399         * g10.c: Add advisory --for-your-eyes-only option as per section
6400         5.9 of 2440.
6402 2001-12-05  David Shaw  <dshaw@jabberwocky.com>
6404         * Force a V4 sig if the user has a notation or policy URL set.
6406 2001-12-04  David Shaw  <dshaw@jabberwocky.com>
6408         * g10.c: Add options --keyserver-options, --temp-directory, and
6409         auto-key-retrieve (the opposite of no-auto-key-retrieve).
6411         * hkp.c (hkp_search): New function to handle searching a HKP
6412         keyserver for a key
6414         * hkp.c (hkp_ask_import, hkp_export): Pretty large changes to make
6415         them communicate via the generic functions in keyserver.c
6417         * keyserver.c: new file with generic keyserver routines for
6418         getting keys from a keyserver, sending keys to a keyserver, and
6419         searching for keys on a keyserver.  Calls the internal HKP stuff
6420         in hkp.c for HKP keyserver functions.  Other calls are handled by
6421         an external program which is spawned and written to and read from
6422         via pipes.  Platforms that don't have pipes use temp files.
6424 2001-11-20  David Shaw  <dshaw@jabberwocky.com>
6426         * options.h, g10.c: New options show-notation, no-show-notation,
6427         default-check-level, no-default-check-level, show-policy-url,
6428         no-show-policy-url.
6430         * packet.h, sign.c (make_keysig_packet), parse-packet.c
6431         (parse_signature), free-packet.c (free_seckey_enc): Fill in
6432         structures for notation, policy, sig class, exportability, etc.
6434         * keyedit.c, keylist.c (print_and_check_one_sig,
6435         list_keyblock_print): Show flags in signature display for cert
6436         details (class, local, notation, policy, revocable).  If selected,
6437         show the notation and policy url.
6439         * keyedit.c (sign_uids): Prompt for and use different key sig
6440         classes.
6442         * helptext.c (helptexts): Add help text to explain different
6443         key signature classes
6445 2001-11-26  David Shaw  <dshaw@jabberwocky.com>
6447         * trustdb.c (mark_usable_uid_certs): Fix segfault from bad
6448         initialization and fix reversed key signature expiration check.
6450 2001-11-09  Werner Koch  <wk@gnupg.org>
6452         * export.c (do_export_stream): Put all given names into a search
6453         description and change the loop so that all matching names are
6454         returned.
6456 2001-11-08  Werner Koch  <wk@gnupg.org>
6458         * pubkey-enc.c (get_it): To reduce the number of questions on the
6459         MLs print the the name of cipher algorithm 1 with the error message.
6461         * mainproc.c: Changed the way old rfc1991 encryption cipher is
6462         selected. Based on a patch by W Lewis.
6464         * pkclist.c (do_edit_ownertrust): Allow to skip over keys, the non
6465         working "show info" is now assigned to "i" 
6466         * trustdb.c (ask_ownertrust, validate_keys): Implement a real quit
6467         here.  Both are by David Shaw.
6468         
6469         * trustdb.c (validate_keys): Make sure next_exipire is initialized.
6471         * sign.c (make_keysig_packet): Use SHA-1 with v4 RSA keys.
6473         * g10.c, options.h : New option --[no-]froce-v4-certs.
6474         * sign.c (make_keysig_packet): Create v4 sigs on v4 keys even with
6475         a v3 key.  Use that new option.  By David Shaw
6477         * revoke.c (ask_revocation_reason): Allow to select "no reason".
6478         By David Shaw.
6480         * keyid.c (fingerprint_from_sk): Calculation of an v3 fpr was
6481         plain wrong - nearly the same code in fingerprint_from_pk is correct.
6483         * build-packet.c (do_secret_key): Added a few comments to the code.
6485 2001-11-07  Werner Koch  <wk@gnupg.org>
6487         * g10.c (main): Print a warning when -r is used w/o encryption.
6488         Suggested by Pascal Scheffers.
6490 2001-10-23  Werner Koch  <wk@gnupg.org>
6492         * keyedit.c (keyedit_menu): Changed helptext for showpref
6493         command.  Suggested by Reinhard Wobst.
6495         * keyring.c (keyring_search): When marking the offtbl ready, take
6496         into account that we may have more than one keyring.
6498 2001-10-22  Werner Koch  <wk@gnupg.org>
6500         * Makefile.am: Do not use OMIT_DEPENDENCIES
6502         * build-packet.c (build_sig_subpkt): Default is now to put all
6503         types of subpackets into the hashed area and only list those which
6504         should go into the unhashed area.
6506 2001-10-18  Werner Koch  <wk@gnupg.org>
6508         * keydb.c (keydb_add_resource): Rearranged the way we keep track
6509         of the resource. There will now be an entry for each keyring here
6510         and not in keyring.c itself.  Store a token to allow creation of a
6511         keyring handle.  Changed all functions to utilize this new design.
6512         (keydb_locate_writable): Make a real implementation.
6513         * keyring.c (next_kr): Removed and changed all callers to set the
6514         resource directly from the one given with the handle.
6515         (keyring_is_writable): New. 
6516         (keyring_rebuild_cache): Add an arg to pass the token from keydb.
6518 2001-10-17  Werner Koch  <wk@gnupg.org>
6520         * keyring.c (keyring_search): Enabled word search mode but print a
6521         warning that it is buggy.
6522         
6523 2001-10-11  Werner Koch  <wk@gnupg.org>
6525         * hkp.c (hkp_ask_import): No more need to set the port number for
6526         the x-hkp scheme. 
6527         (hkp_export): Ditto.
6529 2001-10-06  Stefan Bellon  <sbellon@sbellon.de>
6531         * passphrase.c [__riscos__]: Disabled agent specific stuff.
6532         * g10.c: New option --no-force-v3-sigs.
6534 2001-10-04  Werner Koch  <wk@gnupg.org>
6536         * export.c (do_export_stream): Do not push the compress filter
6537         here because the context would run out of scope due to the
6538         iobuf_close done by the caller.
6539         (do_export): Do it here instead. 
6541 2001-09-28  Werner Koch  <wk@gnupg.org>
6543         * keyedit.c (sign_uids): Always use the primary key to sign keys.
6544         * getkey.c (finish_lookup): Hack to return only the primary key if
6545         a certification key has been requested.
6547         * trustdb.c (cmp_kid_for_make_key_array): Renamed to
6548         (validate_one_keyblock): this and changed arg for direct calling.
6549         (make_key_array): Renamed to
6550         (validate_one_keyblock): this and changed args for direct calling.
6551         (mark_usable_uid_certs, validate_one_keyblock)
6552         (validate_key_list): Add next_expire arg to keep track of
6553         expiration times.  
6554         (validate_keys): Ditto for UTKs and write the stamp.
6556         * tdbio.c (migrate_from_v2): Check return code of tbdio_sync.
6558         * tdbdump.c (import_ownertrust): Do a tdbio_sync().
6560         * keyring.c: Made the offtbl an global object.
6562 2001-09-27  Werner Koch  <wk@gnupg.org>
6564         * pkclist.c (do_edit_ownertrust): Allow settin of ultimate trust.
6566         * trustdb.c (mark_keyblock_seen): New.
6567         (make_key_array): Use it to mark the subkeys too.
6568         (validate_keys): Store validity for ultimatly trusted keys.
6570 2001-09-26  Werner Koch  <wk@gnupg.org>
6572         * pkclist.c (check_signatures_trust, do_we_trust): Removed the
6573         invocation of add_ownertrust. Minor changes to the wording.
6574         (add_ownertrust, add_ownertrust_cb): Removed.
6576         * trustdb.c (get_validity): Allow to lookup the validity using a
6577         subkey.
6579         * trustdb.c (new_key_hash_table): Increased the table size to 1024
6580         and changed the masks accordingly.
6581         (validate): Changed stats printing.
6582         (mark_usable_uid_certs): New.
6583         (cmp_kid_for_make_key_array): Does now check the signatures and
6584         figures out a usable one.
6586 2001-09-25  Werner Koch  <wk@gnupg.org>
6588         * keyring.c (new_offset_item,release_offset_items)
6589         (new_offset_hash_table, lookup_offset_hash_table)
6590         (update_offset_hash_table, update_offset_hash_table_from_kb): New.
6591         (keyring_search): Use a offset table to optimize search for
6592         unknown keys.
6593         (keyring_update_keyblock, keyring_insert_keyblock): Insert new
6594         offsets.
6595         * getkey.c (MAX_UNK_CACHE_ENTRIES): Removed the unknown keys
6596         caching code.
6598         * g10.c, options.h, import.c: Removed the entire
6599         allow-secret-key-import stuff because the validity is now
6600         controlled by other means.
6602         * g10.c: New command --rebuild-keydb-caches.
6603         * keydb.c (keydb_rebuild_caches): New.
6604         * keyring.c (do_copy): Moved some code to
6605         (create_tmp_file, rename_tmp_file, write_keyblock): new functions.
6606         (keyring_rebuild_cache): New.
6608         * packet.h (PKT_ring_trust): Add sigcache field.
6609         * parse-packet.c (parse_trust): Parse sigcache.
6610         * keyring.c (do_copy): Always insert a sigcache packet.
6611         (keyring_get_keyblock): Copy the sigcache packet to the signature.
6612         * sig-check.c (cache_sig_result): Renamed from
6613         cache_selfsig_result. Changed implementation to use the flag bits
6614         and changed all callers.
6615         (mdc_kludge_check): Removed this unused code.
6616         (do_check): Do not set the sig flags here.
6618         * import.c (read_block): Make sure that ring_trust packets are
6619         never imported.
6620         * export.c (do_export_stream): and never export them.
6622         * trustdb.c (make_key_array): Skip revoked and expired keys.
6624 2001-09-24  Werner Koch  <wk@gnupg.org>
6626         * g10.c, options.h: New option --no-auto-check-trustdb.
6628         * keygen.c (do_generate_keypair): Set newly created keys to
6629         ultimately trusted.
6631         * tdbio.h, tdbio.c: Removed all support for records DIR, KEY, UID,
6632         PREF, SIG, SDIR and CACH. Changed migration function to work
6633         direct on the file.
6634         (tdbio_read_nextcheck): New.
6635         (tdbio_write_nextcheck): New. 
6637 2001-09-21  Werner Koch  <wk@gnupg.org>
6639         Revamped the entire key validation system.
6640         * trustdb.c: Complete rewrite. No more validation on demand,
6641         removed some functions, adjusted to all callers to use the new 
6642         and much simpler interface. Does not use the LID anymore.
6643         * tdbio.c, tdbio.h: Add new record types trust and valid. Wrote a
6644         migration function to convert to the new trustdb layout.
6645         * getkey.c (classify_user_id2): Do not allow the use of the "#"
6646         prefix. 
6647         * keydb.h: Removed the TDBIDX mode add a skipfnc to the
6648         descriptor.
6649         * keyring.c (keyring_search): Implemented skipfnc.
6651         * passphrase.c (agent_open): Add missing bracket.  Include windows.h.
6653 2001-09-19  Werner Koch  <wk@gnupg.org>
6655         * keylist.c (print_fingerprint): Renamed from fingerprint, made
6656         global available. Added new arg to control the print style.
6657         * mainproc.c (print_fingerprint): Removed. 
6658         * pkclist.c (print_fpr, fpr_info): Removed and changed callers to
6659         use print_fingerprint.
6660         * keyedit.c (show_fingerprint): Ditto.
6662         * passphrase.c (writen, readn)
6663         (agent_open, agent_close)
6664         (agent_get_passphrase)
6665         (passphrase_clear_cache): Support for W32.  Contributed by Timo.
6667         * import.c (import_one): Release keydb handles at 2 more places.
6669         * keyring.c (keyring_release): Close the iobuf.
6670         (keyring_get_keyblock): Init ret_kb to NULL and store error contidion.
6672         * import.c (import_new_stats_handle): New. 
6673         (import_release_stats_handle): New.
6674         (import_print_stats): Renamed from static fnc print_stats.
6675         (import_keys, import_keys_stream): Add an optional status handle
6676         arg and changed all callers.
6677         * hkp.c (hkp_ask_import): Add an stats_handle arg and changed all
6678         callers.
6680         * mainproc.c (print_pkenc_list): Use print_utf8_string2().
6682 2001-09-18  Werner Koch  <wk@gnupg.org>
6684         * g10.c: New command --refresh-keys.
6685         * hkp.c (hkp_refresh_keys): New. Contributed by Timo Schulz.
6687         * parse-packet.c (parse): Stop on impossible packet lengths.
6689 2001-09-17  Werner Koch  <wk@gnupg.org>
6691         * mainproc.c (print_notation_data): Wrap notation data status lines
6692         after 50 chars.
6693         
6694         * mainproc.c (proc_pubkey_enc): Make option try-all-secrets work.
6695         By disastry@saiknes.lv.
6697 2001-09-14  Werner Koch  <wk@gnupg.org>
6699         * parse-packet.c (dump_sig_subpkt): List key server preferences
6700         and show the revocable flag correctly. Contributed by David Shaw.
6702 2001-09-09  Werner Koch  <wk@gnupg.org>
6704         * keyedit.c (keyedit_menu): No need to define another p.
6706         * keylist.c (print_capabilities): s/used/use/ so that it
6707         does not shadow a global.
6708         * sign.c (sign_file): Renamed arg encrypt to encryptflag
6709         * keygen.c: Replaced all "usage" by "use".
6710         * misc.c (openpgp_pk_algo_usage): Ditto.
6712         * pubkey-enc.c (get_it): Renamed arg k to enc so that the later
6713         defined k does not shadow it.
6715         * parse-packet.c (parse_gpg_control): No need to define another i.
6717         * getkey.c (get_pubkey_byfprint): Must use the enum values and not
6718         the fprint_len.
6719         * keyring.c (keyring_search): Removed a non-sense break.  Both
6720         bugs pointed out by Stefan.
6722 2001-09-07  Werner Koch  <wk@gnupg.org>
6724         * status.c, status.h: Added NO_RECP and ALREADY_SIGNED.
6725         * pkclist.c (build_pk_list): Issue NO_RECP.
6726         * keyedit.c (sign_uids): Added experimental ALREADY_SIGNED
6728         * hkp.c (hkp_import): Use log_error. Bug reported by Neal H
6729         Walfield. 
6731         * getkey.c (classify_user_id2): Change args to take the desc union
6732         direct.  It was a stupid idea to pass the individual fields of an
6733         union to this function. Changed all callers.
6734         (classify_user_id): Ditto and allow to pass NULL as the description.
6736 2001-09-06  Werner Koch  <wk@gnupg.org>
6738         * getkey.c (fixup_uidnode): Features flag is now a bit vector.
6739         * keygen.c (add_feature_mdc): Ditto.
6741         Revamped the entire key I/O code to be prepared for other ways of
6742         key storages and to get rid of the existing shit.  GDBM support has
6743         gone.
6744         * keydb.c: New
6745         * keyring.c, keyring.h: New.
6746         * ringedit.c: Removed.  Moved some stuff to keyring.c
6747         * getkey.c: Changed everything related to the key retrieving
6748         functions which are now using the keydb_ functions.  
6749         (prepare_search, word_match_chars, word_match)
6750         (prepare_word_match, compare_name): Moved to keyring.c
6751         (get_pubkey_byname): Removed ctx arg and add ret_kdbhd
6752         arg.  Changed all callers.
6753         (key_byname): Use get_pubkey_end to release the context and take
6754         new ret_kbdhd arg.  Changed all callers.
6755         (classify_user_id2): Fill the 16 byte fingerprint up with 4 null
6756         bytes not with zero bytes of value 4, tsss.
6757         * import.c (import_one): Updated to use the new keydb interface.
6758         (import_secret_one): Ditto.
6759         (import_revoke_cert): Ditto.
6760         * delkey.c (do_delete_key): Ditto. 
6761         * keyedit.c (keyedit_menu): Ditto.
6762         (get_keyblock_byname): Removed.
6763         * revoke.c (gen_revoke): Ditto. 
6764         * export.c (do_export_stream): Ditto.
6765         * trustdb.c (update_trustdb): Ditto.
6766         * g10.c, gpgv.c (main): Renamed add_keyblock_resource to
6767         keydb_add_resource. 
6768         * Makefile.am:  Added and removed files.
6770         * keydb.h: Moved KBNODE typedef and MAX_FINGERPRINT_LEN to
6771         * global.h: this new header.
6772         
6773 2001-09-03  Werner Koch  <wk@gnupg.org>
6775         * passphrase.c (agent_get_passphrase): Changed nread to size_t.
6776         (passphrase_clear_cache): Ditto.
6778         * keyid.c (mk_datestr): Avoid trigraphs.
6779         (fingerprint_from_pk): Cache the keyid in the pk.
6781         * options.h: Add opt.with_fingerprint so that we know whether the
6782         corresponding options was used.
6783         * g10.c (main): Set it here.
6784         * pkclist.c (check_signatures_trust): Always print fingerprint
6785         when this option is used.  Mixed a minor memory leak.
6787         * status.c, status.h: New status INV_RECP.
6788         * pkclist.c (build_pk_list): Issue this status.
6790 2001-08-31  Werner Koch  <wk@gnupg.org>
6792         * parse-packet.c (parse_key,parse_pubkeyenc)
6793         (parse_signature): Return error on reading bad MPIs.
6794         
6795         * mainproc.c (check_sig_and_print): Always print the user ID even
6796         if it is not bound by a signature.  Use the primary UID in the
6797         status messages and encode them in UTF-8
6798         * status.c (write_status_text_and_buffer): New.
6800 2001-08-30  Werner Koch  <wk@gnupg.org>
6802         * packet.h (sigsubpkttype_t): Add SIGSUBPKT_FEATURES.
6803         (PKT_public_key, PKT_user_id): Add a flag for it.
6804         * parse-packet.c, build-packet.c: Add support for them.
6805         * getkey.c (fixup_uidnode, merge_selfsigs): Set the MDC flags.
6806         * keygen.c (add_feature_mdc): New.
6807         (keygen_upd_std_prefs): Always set the MDC feature.
6808         * keyedit.c (show_prefs): List the MDC flag
6809         * pkclist.c (select_mdc_from_pklist): New.
6810         * encode.c (encode_crypt, encrypt_filter): Test whether MDC
6811         should be used.
6812         * cipher.c (write_header): Set MDC use depending on the above test.
6813         Print more status info.
6815         * delkey.c (do_delete_key): Kludge to delete a secret key with no
6816         public key available.
6818         * ringedit.c (find_secret_keyblock_direct): New.
6819         * getkey.c (seckey_available): Simplified.
6821         * ringedit.c (cmp_seckey): Now compares the secret key against the
6822         public key while ignoring all secret parts.
6823         (keyring_search): Use a public key packet as arg.  Allow to search
6824         for subnkeys
6825         (search): Likewise. Changed all callers.
6826         (find_secret_keyblock_bypk): New.
6827         (find_secret_keyblock_byname): First locate the pubkey and then
6828         find the correponding secret key.
6829         * parse-packet.c (parse): Renamed pkttype arg to onlykeypkts and
6830         changed code accordingly.  Changed all callers.
6831         (search_packet): Removed pkttype arg.
6832         * keyedit.c (keyedit_menu): First locate the public key and then
6833         try to locate a secret key.
6835         * ringedit.c (locate_keyblock_by_fpr): Removed.
6836         (locate_keyblock_by_keyid): Removed.
6837         (find_keyblock_bysk): Removed.
6839         * sig-check.c (check_key_signature2): Print the keyid along with
6840         the wrong sig class errors.
6842 2001-08-24  Werner Koch  <wk@gnupg.org>
6844         * sign.c (sign_file): Stripped the disabled comment packet code.
6845         (sign_file, sign_symencrypt_file): Moved common code to ..
6846         (write_onepass_sig_packets): .. this new function.
6847         (sign_file, clearsign_file, sign_symencrypt_file): Moved common
6848         code to 
6849         (write_signature_packets): this new function.
6850         (write_signature_packets, make_keysig_packet)
6851         (update_keysig_packet): Moved common code to 
6852         (hash_uid, hash_sigclass_to_magic): these new functions
6853         (sign_file, sign_symencrypt_file): Moved common code to 
6854         (write_plaintext_packet):  this new function.
6856 2001-08-21  Stefan Bellon  <sbellon@sbellon.de>
6858         * trustdb.c (query_trust_info): Changed trustlevel to signed int.
6859         * g10.c [__riscos__]: Fixed handling of --use-agent --lock-multiple.
6861 2001-08-20  Werner Koch  <wk@gnupg.org>
6863         * encr-data.c (decrypt_data): Keep track on whether we already
6864         printed information about the used algorithm.
6865         * mainproc.c (proc_encrypted): Removed the non-working IDEA hack
6866         and print a message about the assumed algorithm.
6867         * passphrase.c (passphrase_to_dek): Use the same algorithm as above.
6868         (proc_symkey_enc): Print the algorithm, so that the user knows it
6869         before entering the passphrase.
6870         (proc_pubkey_enc, proc_pubkey_enc): Zero the DEK out.
6871         * encode.c (encode_crypt, encrypt_filter): Ditto.
6873         * g10.c: Allow for --sign --symmetric.
6874         * sign.c (sign_and_symencrypt): New.
6876         Applied patches from Stefan Bellon <sbellon@sbellon.de> to support
6877         RISC OS.  Nearly all of these patches are identified by the
6878         __riscos__ macro.
6879         * compress.c: Added a couple of casts.
6880         * g10.c [__riscos__]: Some patches and new options foo-file similar
6881         to all foo-fd options.
6882         * gpgv.c, openfile.c, ringedit.c, tdbio.c: Minor fixes.  Mainly
6883         replaced hardcoded path separators with EXTSEP_S like macros.  
6884         * passprase.c [__riscos__]: Disabled agent stuff
6885         * trustdb.c (check_trust): Changed r_trustlevel to signed int to
6886         avoid mismatch problems in pkclist.c
6887         * pkclist.c (add_ownertrust): Ditto.
6888         * plaintext.c (handle_plaintext) [__riscos__]: Print a note when
6889         file can't be created.
6890         * options.h [__riscos__]: Use an extern unless included from the
6891         main module.
6892         * signal.c (got_fatal_signal) [__riscos__]: Close all files.
6893         
6894 2001-08-14  Werner Koch  <wk@gnupg.org>
6896         * keygen.c (ask_algo): New arg r_usage.  Allow for RSA keys.
6897         (gen_rsa): Enabled the code.
6898         (do_create): Enabled RSA branch.
6899         (parse_parameter_usage): New.
6900         (proc_parameter_file): Handle usage parameter.
6901         (read_parameter_file): Ditto.
6902         (generate_keypair): Ditto.
6903         (generate_subkeypair): Ditto.
6904         (do_generate_keypair): Ditto.
6905         (do_add_key_flags): New.
6906         (keygen_add_std_prefs): Use the new function.
6907         (keygen_add_key_flags_and_expire): New.
6908         (write_selfsig, write_keybinding): Handle new usage arg.
6909         * build-packet.c (build_sig_subpkt): Make sure that key flags go
6910         into the hashed area.
6911         
6912         * keygen.c (write_uid): Initialize the reference cunter.
6914         * keyedit.c (keyedit_menu): No more need to update the trustdb for
6915         preferences.  Added calls to merge keblock.
6917         * kbnode.c (dump_kbnode): Print some more flags.
6919 2001-08-10  Werner Koch  <wk@gnupg.org>
6921         Revamped the preference handling.
6923         * packet.h (prefitem_t, preftype_t): New.
6924         (PKT_public_key): Added a uid field.
6925         (PKT_user_id): Added field to store preferences and a reference
6926         counter.
6927         * parse-packet.c (parse_user_id,parse_photo_id): Initialize them
6928         * free-packet.c (free_user_id): Free them.
6929         (copy_user_id): Removed.
6930         (scopy_user_id): New. 
6931         (cmp_user_ids): Optimized for identical pointers.
6932         (release_public_key_parts): Release the uid.
6933         (copy_public_key_with_new_namehash): Removed.
6934         (copy_prefs): New.
6935         * keyedit.c (menu_adduid): Use the new shallow copy user id.
6936         (show_prefs): Adjusted implementation.
6937         (keyedit_menu): No more need to update the trustdb after changing
6938         preferences.
6939         * getkey.c (fixup_uidnode): Store preferences.
6940         (find_by_name): Return a user id packet and remove namehash stuff.
6941         (lookup): Removed the unused namehash stuff.
6942         (finish_lookup): Added foundu arg.
6943         (pk_from_block): Removed the namehash arg and changed all callers.
6944         (merge_selfsigs): Copy prefs to all keys.
6945         * trustdb.c (get_pref_data): Removed.
6946         (is_algo_in_prefs): Removed.
6947         (make_pref_record): Deleted and removed all class.
6948         * pkclist.c (select_algo_from_prefs): Adjusted for the new
6949         preference implementation.
6950         * pubkey-enc.c (is_algo_in_prefs): New.
6951         (get_it): Use that new function. 
6953 2001-08-09  Werner Koch  <wk@gnupg.org>
6955         * build-packet.c (build_sig_subpkt): Fixed calculation of
6956         newarea->size.
6958         * g10.c (main): New option "--preference-list"
6959         * keyedit.c (keyedit_menu): New commands "setpref" and "updpref".
6960         (menu_set_preferences): New.
6961         * keygen.c (keygen_set_std_prefs): New.
6962         (set_one_pref): New.
6963         (check_zip_algo): New.
6964         (keygen_get_std_prefs): New.
6965         (keygen_upd_std_prefs): New
6966         (keygen_add_std_prefs): Move the pref setting code into the above fnc.
6967         * build-packet.c (build_sig_subpkt): Updated the list of allowed
6968         to update subpackets.
6970 2001-08-08  Werner Koch  <wk@gnupg.org>
6972         * packet.h (subpktarea_t): New.
6973         (PKT_signature): Use that type for hashed_data and unhashed_data and
6974         removed the _data prefix from those fields.  Changed all users.
6975         * parse-packet.c (parse_signature): Changed allocation for that.
6976         (parse_sig_subpkt): Changed declaration
6977         (enum_sig_subpkt): Ditto and changed implementation accordingly.
6978         * free-packet.c (cp_subpktarea): Renamed from cp_data_block and
6979         adjusted implementation. Changed caller.
6980         * sig-check.c (mdc_kludge_check): Adjusted the hashing.
6981         (do_check): Ditto.
6982         * sign.c (sign_file, clearsign_file, make_keysig_packet,
6983         update_keysig_packet): Ditto.
6984         * build-packet.c (build_sig_subpkt): Partial rewrite.
6985         (find_subpkt): Adjusted and made static.
6986         (delete_sig_subpkt): Adjusted.
6987         (do_signature): Ditto.
6989         * keygen.c (ask_keysize): Do not print the notes about suggested
6990         key sizes if just a DSA key is generated.
6992         * trustdb.c (add_ultimate_key): s/log_error/log_info/ for
6993         duplicated inserted trusted keys.
6995 2001-08-07  Werner Koch  <wk@gnupg.org>
6997         * sign.c (sleep): Redefine for W32.
6999         * g10.c, options.h: Set new flag opt.no_homedir_creation when
7000         --no-options is given.
7001         * openfile.c (try_make_homedir): Don't create the homedir in that case.
7003 2001-08-03  Werner Koch  <wk@gnupg.org>
7005         * armor.c (armor_filter): Removed the default comment string
7006         because it could get us in trouble due to translations using non
7007         ascii characters.
7009 2001-08-01  Werner Koch  <wk@gnupg.org>
7011         * keylist.c (list_keyblock_print): Do not list revoked UIDs unless
7012         in verbose mode and we do no signature listing.
7014         * getkey.c (finish_lookup): Skip subkeys which are not yet valid.
7015         * g10.c, options.h: New option --ignore-valid-from.
7017         * sign.c (make_keysig_packet): Added new sigversion argument to
7018         allow the caller to force generation of required signature
7019         version. Changed all callers. Suggested by Thomas Roessler.
7021         * keyedit.c (sign_uids): Force v4 signature generation for local
7022         sigs.  Removed the check for local signature and pre-v4 keys.
7024 2001-07-27  Werner Koch  <wk@gnupg.org>
7026         * keyedit.c (sign_uids): Check that we are not trying to to a
7027         lsign with a pre-v4 key.  Bug noticed by Thomas Roessler.
7029 2001-07-26  Werner Koch  <wk@gnupg.org>
7031         * parse-packet.c (parse_photo_id): Reset all variables.
7032         * getkey.c (merge_selfsigs_main): Removed checks on PHOTO_ID
7033         because this is handled identically to a user ID.
7035 2001-07-06  Werner Koch  <wk@gnupg.org>
7037         * cipher.c (write_header): Don't use MDC with --rfc1991.  Suggested
7038         by disastry@saiknes.lv.
7040 2001-07-05  Werner Koch  <wk@gnupg.org>
7042         * g10.c, options.h: New option --preserve-permissions.
7043         * ringedit.c (add_keyblock_resource): Use it here
7044         (keyring_copy): and here.
7046         * trustdb.c (verify_own_keys): Be more silent on --quiet.
7047         Suggested by Thomas Roessler.
7048         * sig-check.c (check_key_signature2): Ditto.
7049         * mainproc.c (proc_encrypted, proc_tree): Ditto
7050         * getkey.c (lookup): Ditto.
7052 2001-07-04  Werner Koch  <wk@gnupg.org>
7054         * ringedit.c (add_keyblock_resource): Restore filename in case of error.
7056 2001-06-25  Werner Koch  <wk@gnupg.org>
7058         * kbnode.c (dump_kbnode): Print the signature timestamp.
7060         * keyedit.c (keyedit_menu): New menu point "primary".
7061         (change_primary_uid_cb): New.
7062         (menu_set_primary_uid): New.
7063         * sign.c (update_keysig_packet): New.
7064         * build-packet.c (build_sig_subpkt): Put the primary UID flag into
7065         the hashed area. Allow update of some more packets.
7067 2001-06-15  Werner Koch  <wk@gnupg.org>
7069         * getkey.c (merge_selfsigs): Exit gracefully when a secret key is
7070         encountered.  May happen if a secret key is in public keyring.
7071         Reported by Francesco Potorti.
7072         
7073 2001-06-12  Werner Koch  <wk@gnupg.org>
7075         * getkey.c (compare_name): Use ascii_memistr(), ascii_memcasecmp()
7076         * keyedit.c (keyedit_menu): Use ascii_strcasecmp().
7077         * armor.c (radix64_read): Use ascii_toupper().  
7078         * ringedit.c (do_bm_search): Ditto.
7079         * keygen.c (read_parameter_file): Ditto.
7080         * openfile.c (CMP_FILENAME): Ditto.
7081         * g10.c (i18n_init): We can now use just LC_ALL.
7083 2001-05-29  Werner Koch  <wk@gnupg.org>
7085         * keygen.c (generate_subkeypair): Print a warning if a subkey is
7086         created on a v3 key. Suggested by Brian M. Carlson.
7088 2001-05-27  Werner Koch  <wk@gnupg.org>
7090         * keyid.c (get_lsign_letter): New.
7091         * keylist.c (list_keyblock_colon): Use it here.
7092         * mainproc.c (list_node): and here.
7094         * getkey.c, packet.h, free-packet.c: Removed that useless key
7095         created field; I dunno why I introducded this at all - the
7096         creation time is always bound to the key packet and subject to
7097         fingerprint calculation etc.
7099         * getkey.c (fixup_uidnode): Add keycreated arg and use this
7100         instead of the signature timestamp to calculate the
7101         help_key_expire.  Bug reported by David R. Bergstein.
7102         (merge_selfsigs_main): Correct key expiration time calculation.
7103         (merge_selfsigs_subkey): Ditto.
7105 2001-05-25  Werner Koch  <wk@gnupg.org>
7107         * revoke.c (gen_revoke): Add a cast to a tty_printf arg.
7108         * delkey.c (do_delete_key): Ditto.
7109         * keyedit.c (print_and_check_one_sig): Ditto.
7110         (ask_revoke_sig): Ditto.
7111         (menu_revsig): Ditto.
7112         (check_all_keysigs): Removed unused arg.
7114 2001-05-23  Werner Koch  <wk@gnupg.org>
7116         * g10.c (opts): Typo fix by Robert C. Ames.
7118 2001-05-06  Werner Koch  <wk@gnupg.org>
7120         * revoke.c: Small typo fix
7122 2001-05-04  Werner Koch  <wk@gnupg.org>
7124         * passphrase.c (passphrase_clear_cache): Shortcut if agent usage
7125         is not enabled.
7127 2001-05-01  Werner Koch  <wk@gnupg.org>
7129         * passphrase.c (writen): Replaced ssize_t by int.  Thanks to 
7130         to Robert Joop for reporting that SunOS 4.1.4 does not have it.
7132 2001-04-28  Werner Koch  <wk@gnupg.org>
7134         * getkey.c (merge_public_with_secret): pkttype was not set to subkey.
7136 2001-04-27  Werner Koch  <wk@gnupg.org>
7138         * skclist.c (build_sk_list): Changed one log_debug to log_info.
7140 2001-04-25  Werner Koch  <wk@gnupg.org>
7142         * keyedit.c (show_prefs): Add a verbose mode.
7143         (show_key_with_all_names): Pass verbose flag for special value of
7144         with_pref.
7145         (keyedit_menu): New command "showpref"
7146         (show_key_with_all_names): Mark revoked uids and the primary key.
7148 2001-04-24  Werner Koch  <wk@gnupg.org>
7150         * getkey.c (get_primary_uid): Return a different string in case of
7151         error and made it translatable.
7153         * build-packet.c (do_secret_key): Ugly, we wrote a zero
7154         instead of the computed ndays.  Thanks to M Taylor for complaining
7155         about a secret key import problem.
7157 2001-04-23  Werner Koch  <wk@gnupg.org>
7159         * hkp.c (hkp_ask_import): Allow to specify a port number for the 
7160         keyserver.  Add a kudge to set the no_shutdown flag.
7161         (hkp_export): Ditto.
7162         * options.skel: Document the changes 
7164 2001-04-20  Werner Koch  <wk@gnupg.org>
7166         * options.skel: Add some more comments.
7168 2001-04-19  Werner Koch  <wk@gnupg.org>
7170         * keyid.c (mk_datestr): New.  Handles negative times.  We must do
7171         this because Windoze segvs on negative times passed to gmtime().
7172         Changed all datestr_from function to use this one.
7174         * keyid.c, keyid.h (colon_strtime): New. To implement the
7175         fixed-list-mode.
7176         (colon_datestr_from_pk): New.
7177         (colon_datestr_from_sk): New.
7178         (colon_datestr_from_sig): New.
7179         * keylist.c (list_keyblock_colon): Use these functions here.
7180         * mainproc.c (list_node): Ditto.
7182 2001-04-18  Werner Koch  <wk@gnupg.org>
7184         * openfile.c (open_sigfile): Fixed the handling of ".sign".
7185         * mainproc.c (proc_tree): Use iobuf_get_real_fname.
7186         Both are by Vincent Broman.
7188 2001-04-14  Werner Koch  <wk@gnupg.org>
7190         * getkey.c (fixup_uidnode): Removed check for !sig which is
7191         pointless here.  Thanks to Jan Niehusmann.
7193 2001-04-10  Werner Koch  <wk@gnupg.org>
7195         * sig-check.c (check_key_signature2): Use log_info instead of
7196         log_error so that messed up keys do not let gpg return an error.
7197         Suggested by Christian Kurz.
7199         * getkey.c (merge_selfsigs_main): Do a fixup_uidnode only if we
7200         have both, uid and sig.  Thanks to M Taylor.
7202 2001-04-05  Werner Koch  <wk@gnupg.org>
7204         * armor.c (unarmor_pump_new,unarmor_pump_release): New.
7205         (unarmor_pump): New. 
7206         * pipemode.c (pipemode_filter): Use the unarmor_pump to handle
7207         armored or non-armored detached signatures.  We can't use the
7208         regular armor_filter because this does only check for armored
7209         signatures the very first time.  In pipemode we may have a mix of
7210         armored and binary detached signatures.
7211         * mainproc.c (proc_tree): Do not print the "old style" notice when
7212         this is a pipemode processes detached signature.
7213         (proc_plaintext): Special handling of pipemode detached sigs.
7215         * packet.h (CTRLPKT_PLAINTEXT_MARK): New.
7216         * parse-packet.c (create_gpg_control): New.
7217         * kbnode.c (dump_kbnode): Support it here.
7218         * mainproc.c (check_sig_and_print): Fixed the check for bad
7219         sequences of multiple signatures.
7220         (proc_plaintext): Add the marker packet.
7221         (proc_tree): We can now check multiple detached signatures.
7223 2001-04-02  Werner Koch  <wk@gnupg.org>
7225         The length of encrypted packets for blocksizes != 8 was not
7226         correct encoded.  I think this is a minor problem, because we
7227         usually use partial length packets.  Kudos to Kahil D. Jallad for
7228         pointing this out.
7229         * packet.h: Add extralen to PKT_encrypted.
7230         * cipher.c (write_header): Set extralen.
7231         * build-packet.c (do_encrypted): Use extralen instead of const 10.
7232         (do_encrypted_mdc): Ditto.
7233         * parse-packet.c (parse_encrypted): Set extralen to 0 because we
7234         don't know it here.
7236 2001-03-30  Werner Koch  <wk@gnupg.org>
7238         * getkey.c (premerge_public_with_secret): Changed wording an add
7239         the keyID to the info message.
7241 2001-03-29  Werner Koch  <wk@gnupg.org>
7243         * getkey.c (premerge_public_with_secret): Use log_info instead of
7244         log_error when no secret key was found for a public one.
7245         Fix the usage if the secret parts of a key are not available.
7247         * openfile.c (ask_outfile_name): Trim spaces.
7248         (open_outfile): Allow to enter an alternate filename.  Thanks to
7249         Stefan Bellon.
7250         * plaintext.c (handle_plaintext): Ditto.
7252 2001-03-28  Werner Koch  <wk@gnupg.org>
7254         * mainproc.c (do_check_sig): Allow direct key and subkey
7255         revocation signature.
7256         * sig-check.c (check_key_signature2): Check direct key signatures.
7257         Print the signature class along with an error.
7259 2001-03-27  Werner Koch  <wk@gnupg.org>
7261         * packet.h: Add a missing typedef to an enum.  Thanks to Stefan Bellon.
7263         * g10.c: New option --no-sig-create-check.
7264         * sign.c (do_sign): Implement it here.
7265         * g10.c: New option --no-sig-cache.
7266         * sig-check.c (check_key_signature2): Implement it here.
7267         (cache_selfsig_result): and here.
7269         * keylist.c (list_keyblock): Removed debugging stuff.
7271         * getkey.c (cache_public_key): Made global.
7272         * keygen.c (write_selfsig, write_keybinding): Cache the new key.
7274         * getkey.c (key_byname): Add new arg secmode and changed all
7275         callers to request explicitly the mode.  Deriving this information
7276         from the other supplied parameters does not work if neither pk nor
7277         sk are supplied.
7279 2001-03-25  Werner Koch  <wk@gnupg.org>
7281         * packet.h (ctrlpkttype_t): New.
7282         * mainproc.c (add_gpg_control,proc_plaintext,proc_tree): Use the
7283         new enum values.
7284         * pipemode.c (make_control): Ditto.
7285         * armor.c (armor_filter): Ditto.
7287 2001-03-24  Werner Koch  <wk@gnupg.org>
7289         * sign.c (do_sign): Verify the signature right after creation.
7291 2001-03-23  Werner Koch  <wk@gnupg.org>
7293         * status.c, status.h (STATUS_UNEXPECTED): New.
7294         * mainproc.c (do_proc_packets): And emit it here.
7296 2001-03-21  Werner Koch  <wk@gnupg.org>
7298         * status.c: Add sys/types.h so that it runs on Ultrix.  Reported
7299         by Georg Schwarz.x
7301         * build-packet.c (build_sig_subpkt): Fixed generaton of packet
7302         length header in case where 2 bytes headers are needed.  Thanks to
7303         Piotr Krukowiecki.
7305 2001-03-19  Werner Koch  <wk@gnupg.org>
7307         * g10.c (main): the default keyring is no always used unless
7308         --no-default-keyring is given.  
7310         * ringedit.c (add_keyblock_resource): invalidate cache after file
7311         creation.
7313 2001-03-15  Werner Koch  <wk@gnupg.org>
7315         * keygen.c (ask_algo): Changed the warning of the ElGamal S+E Algo.
7317         * keylist.c (print_capabilities): New.
7318         (list_keyblock_colon): and use it here.
7320 2001-03-13  Werner Koch  <wk@gnupg.org>
7322         * main.c, options.h: New option --fixed_list_mode.
7323         * keylist.c (list_keyblock_colon): use it here.
7325         * getkey.c (merge_keys_and_selfsig): Divert merging of public keys
7326         to the function used in key selection..
7327         * keylist.c (is_uid_valid): Removed.
7328         (list_keyblock): Splitted into ..
7329         (list_keyblock_print, list_keyblock_colon): .. these.
7330         functions.  Changed them to use the flags set in the key lookup code.
7331         (reorder_keyblock): New, so that primary user IDs are listed first.
7333         * ringedit.c (keyring_copy): flush the new iobuf chaces before
7334         rename or remove operations.  This is mainly needed for W32.
7336         * hkp.c [HAVE_DOSISH_SYSTEM]: Removed the disabled code because we
7337         have now W32 socket support in ../util/http.c
7339         * skclist.c (key_present_in_sk_list): New.
7340         (is_duplicated_entry): New.
7341         (build_sk_list): Check for duplicates and do that before unlocking.
7343 2001-03-12  Werner Koch  <wk@gnupg.org>
7345         * armor.c (parse_header_line): Removed double empty line check.
7346         (parse_header_line): Replaced trim_trailing_ws with a counting
7347         function so that we can adjust for the next read.
7349         * options.skel: Fixed 3 typos. By Thomas Klausner. Replaced the
7350         keyserver example by a better working server. 
7352         * parse-packet.c (parse_symkeyenc): Return Invalid_Packet on error.
7353         (parse_pubkeyenc): Ditto.
7354         (parse_onepass_sig): Ditto.
7355         (parse_plaintext): Ditto.
7356         (parse_encrypted): Ditto.
7357         (parse_signature): Return error at other places too.
7358         (parse_key): Ditto.
7359         * g10.c (main): Set opt.list_packets to another value when invoked
7360         with the --list-packets command.
7361         * mainproc.c (do_proc_packets): Don's stop processing when running
7362         under --list-packets command.
7364         * signal.c (do_sigaction): Removed.
7365         (init_one_signal): New to replace the above.  Needed to support
7366         systems without sigactions. Suggested by Dave Dykstra.
7367         (got_fatal_signal,init_signals): Use the above here. 
7368         (do_block): Use sigset() if sigprocmask() is not available.
7370         * armor.c (parse_hash_header): Test on TIGER192, which is the
7371         correct value as per rfc2440.  By Edwin Woudt.
7373 2001-03-08  Werner Koch  <wk@gnupg.org>
7375         * misc.c: Include time.h. By James Troup.
7377         * getkey.c: Re-enabled the unknown user Id and PK caches and
7378         increased their sizes.
7380         * getkey.c (merge_selfsigs_main): Set expire date and continue
7381         processing even if we found a revoked key.
7382         (merge_selfsigs_subkeys): Ditto.
7383         
7384         * packet.h: Add an is_revoked flag to the user_id packet.
7385         * getkey.c (fixup_uidnode): Set that flag here.
7386         (merge_selfsigs_main): Fix so that the latest signature is used to
7387         find the self-signature for an UID.
7388         * parse-packet.c (parse_user_id): Zero out all fields.
7389         * mainproc.c (check_sig_and_print): Print the primary user ID
7390         according the the node flag and then all other non-revoked user IDs.
7391         (is_uid_revoked): Removed; it is now handled by the key selection code.
7392         
7393         Changed the year list of all copyright notices.
7394         
7395 2001-03-07  Werner Koch  <wk@gnupg.org>
7397         * getkey.c (finish_lookup): Print an info message only in verbose mode.
7399 2001-03-05  Werner Koch  <wk@gnupg.org>
7401         * packet.h: Replaced sigsubpkt_t value 101 by PRIV_VERIFY_CACHE.
7402         We have never used the old value, so we can do this without any harm.
7403         * parse-packet.c (dump_sig_subpkt): Ditto.
7404         (parse_one_sig_subpkt): Parse that new sub packet.
7405         * build-packet.c (build_sig_subpkt): Removed the old one from the
7406         hashed area.
7407         (delete_sig_subpkt): New.
7408         (build_sig_subpkt): Allow an update of that new subpkt.
7409         * sig-check.c (check_key_signature2): Add verification caching
7410         (cache_selfsig_result): New.
7411         * export.c (do_export_stream): Delete that sig subpkt before exporting.
7412         * import.c (remove_bad_stuff): New.
7413         (import): Apply that function to all imported data 
7415 2001-03-03  Werner Koch  <wk@gnupg.org>
7417         * getkey.c: Introduced a new lookup context flag "exact" and used 
7418         it in all place where we once used primary.
7419         (classify_user_id2): Replaced the old function and add an extra
7420         argument to return whether an exact keyID has been requested.
7421         (key_byname): Removed the unused ctx.primary flag
7422         (get_seckey_byname2): Ditto.
7423         (finish_lookup): Changed debugging output.
7425 2001-03-02  Werner Koch  <wk@gnupg.org>
7427         * keylist.c (list_one): Remove the merge key calls. 
7429 2001-03-01  Werner Koch  <wk@gnupg.org>
7431         * getkey.c (finish_lookup): Don't use it if we no specific usage
7432         has been requested.
7433         (merge_selfsigs_main): fix UID only if we have an signature.
7434         (lookup): Return UNU_PUBKEY etc. instead of NO_PUBKEY if we found
7435         a key but the requested usage does not allow this key.
7436         * import.c (import_one): Take UNU_PUBKEY into account.
7437         * mainproc.c (list_node): Ditto.
7438         * keylist.c (list_keyblock): Ditto.
7439         * keyedit.c (print_and_check_one_sig): Ditto. 
7441 2001-02-09  Werner Koch  <wk@gnupg.org>
7443         * delkey.c (delete_key): Removed that silly assert which rendered
7444         the whole new stuff meaningless.
7446 2001-02-08  Werner Koch  <wk@gnupg.org>
7448         * getkey.c (key_byname): It can happen that we have both, sk and pk
7449         NULL, fix for that.
7451         * parse-packet.c (parse_one_sig_subpkt): Add support for
7452         primary_uid and key_flags.
7453         (can_handle_critical): Ditto
7455         * parse-packet.c (parse_encrypted): Fixed listing of pktlen for
7456         MDC packets.
7458         * getkey.c: Backported the version of this file from gpg 1.1. this
7459         involved some changes in other files too.
7460         * parse-packet.c (parse_key): Clear req_usage.
7461         * skclist.c (build_sk_list): Use req_usage to pass the usage
7462         information to the lookup function.
7463         * pkclist.c (build_pk_list): Ditto.
7464         * free-packet.c (copy_public_parts_to_secret_key): New.
7465         * keydb.h: Add IS_* macros to check the sig_class.
7466         * misc.c (openpgp_cipher_test_algo): New.
7467         (openpgp_pk_test_algo): New.
7468         (openpgp_pk_algo_usage): New.
7469         (openpgp_md_test_algo): New.
7470         * packet.h: Add a few fields to PKT_{public,secret}_key and
7471         PKT_user_id.
7472         * seckey-cert.c (do_check): Use the new main_keyid field.
7474 2001-02-04  Werner Koch  <wk@gnupg.org>
7476         * encr-data.c (decrypt_data): Catch error when we had problems to
7477         parse the encrypted packet. By Timo.
7479 2001-01-29  Werner Koch  <wk@gnupg.org>
7481         * g10.c (main): --batch does now set nogreeting.
7483         * delkey.c (do_delete_key): Fixed delete-both functionality.
7485 2001-01-22  Werner Koch  <wk@gnupg.org>
7487         * g10.c: New command --delete-secret-and-public-key.
7488         * delkey.c (delete_key): Add new arg allow_both.
7489         (do_delete_key): Move most stuff from above to this new function.
7491 2001-01-12  Werner Koch  <wk@gnupg.org>
7493         * passphrase.c (passphrase_to_dek): Use MD5 when IDEA is installed
7494         and we have no S2K.
7495         * mainproc.c (proc_encrypted): Likewise
7497 2001-01-11  Werner Koch  <wk@gnupg.org>
7499         * sig-check.c (do_check): Print the signature key expire message
7500         only in verbose mode and added the keyID.
7502 2001-01-09  Werner Koch  <wk@gnupg.org>
7504         * status.c, status.h: New status USERID_HINT. 
7505         (write_status_text): Replace LF and CR int text by C-escape sequence.
7507         * passphrase.c (passphrase_to_dek): Fixed the NEED_PASSPHRASE
7508         output.  It does now always print 2 keyIDs.  Emit the new
7509         USERID_HINT.
7511 2001-01-08  Werner Koch  <wk@gnupg.org>
7513         * g10.c, options.h: New option --no-expensive-trust-checks.
7514         * keylist.c (list_keyblock): Act on this option.
7516 2001-01-04  Werner Koch  <wk@gnupg.org>
7518         * g10.c (main): Set homedir only in the pre-parsing phase and
7519         replace backslashes in the W32 version.
7521 2001-01-03  Werner Koch  <wk@gnupg.org>
7523         * status.c, status.h : New status KEY_CREATED
7524         * keygen.c (do_generate_keypair,generate_subkeypair): Emit it.
7526 2000-12-28  Werner Koch  <wk@gnupg.org>
7528         * signal.c (got_fatal_signal): Remove lockfiles here because the
7529         atexit stuff does not work due to the use of raise. Suggested by
7530         Peter Fales.
7531         * gpgv.c (remove_lockfiles): New stub.
7532         
7533 2000-12-19  Werner Koch  <wk@gnupg.org>
7535         * status.c, status.h (cpr_get_no_help): New.
7536         * keyedit.c (keyedit_menu): Use it here because we have our own
7537         help list here.
7539 2000-12-18  Werner Koch  <wk@gnupg.org>
7541         * mainproc.c (print_failed_pkenc): Don't print the sometimes
7542         confusing message about unavailabe secret key.  Renamed ...
7543         (print_pkenc_list): ... to this and introduced failed arg.
7544         (proc_encrypted): Print the failed encryption keys and then
7545         the one to be used.
7546         (proc_pubkey_enc): Store also the key we are going to use.
7548         * mainproc.c (check_sig_and_print): Don't list revoked user IDs.
7549         (is_uid_revoked): New.
7551 2000-12-08  Werner Koch  <wk@gnupg.org>
7553         * pipemode.c: Made the command work.  Currently only for
7554         non-armored detached signatures.
7555         * mainproc.c (release_list): Reset the new pipemode vars.
7556         (add_gpg_control): Handle the control packets for pipemode
7557         * status.c, status.h: New stati {BEGIN,END}_STREAM.
7559 2000-12-07  Werner Koch  <wk@gnupg.org>
7561         * g10.c: New option --allow-secret-key-import.
7562         * import.c (import_keys,import_keys_stream): Honor this option.
7563         (import): New arg allow_secret and pass that arg down to ...
7564         (import_secret_one): to this and print a warning if secret key
7565         importing is not allowed.
7567 2000-12-05  Werner Koch  <wk@gnupg.org>
7569         * cipher.c (cipher_filter): Moved the end_encryption status ...
7570         * encode.c (encode_simple,encode_crypt): to here
7571         * sign.c (sign_file): and here.
7573         * status.c (mywrite): Removed.
7574         (get_status_string): Removed the LFs from the strings.
7575         (set_status_fd,is_status_enabed,write_status_text,
7576         write_status_buffer): Replaced all mywrite by stdio calls and use
7577         fdopen to create a strem.  This is needed to make things smoother
7578         in the W32 version.
7580 2000-12-04  Werner Koch  <wk@gnupg.org>
7582         * import.c (merge_blocks): Increment n_sigs for revocations.
7584 2000-11-30  Werner Koch  <wk@gnupg.org>
7586         * g10.c (main): Use iobuf_translate_file_handle for all options
7587         with filehandles as arguments.  This is function does some magic
7588         for the W32 API.
7590         * verify.c (verify_signatures): Add a comment rant about the
7591         detached signature problem.
7592         * mainproc.c (proc_tree): Issue an error if a detached signature
7593         is assumed but a standard one was found.
7594         * plaintext.c (hash_datafiles): Don't fall back to read signature
7595         from stdin.
7596         * openfile.c (open_sigfile): Print verbose message only if the
7597         file could be accessed.
7599 2000-11-24  Werner Koch  <wk@gnupg.org>
7601         * passphrase.c [HAVE_DOSISH_SYSTEM]: Disabled all the agent stuff.
7603 2000-11-16  Werner Koch  <wk@gnupg.org>
7605         * g10.c: New option --use-agent
7606         * passphrase.c (agent_open,agent_close): New.
7607         (agent_get_passphrase,agent_clear_passphrase): New.
7608         (passphrase_clear_cache): New.
7609         (passphrase_to_dek): Use the agent here.
7610         * seckey-cert.c (do_check): Clear cached passphrases.
7612 2000-11-15  Werner Koch  <wk@gnupg.org>
7614         * status.c (write_status_text): Moved the big switch to ...
7615         (get_status_string): ... new function.
7616         (write_status_buffer): New.
7618         * status.c (mywrite): New and replaced all write() by this.
7620         * status.c, status.h: Add 3 status lcodes for notaions and policy.
7621         * mainproc.c (print_notation_data): Do status output of notations.
7622         
7623 2000-11-13  Werner Koch  <wk@gnupg.org>
7625         * sign.c (clearsign_file): Use LF macro to print linefeed.
7626         
7627 2000-11-11  Paul Eggert  <eggert@twinsun.com>
7629         Clean up the places in the code that incorrectly use "long" or
7630         "unsigned long" for file offsets.  The correct type to use is
7631         "off_t".  The difference is important on large-file hosts,
7632         where "off_t" is longer than "long".
7634         * keydb.h (struct keyblock_pos_struct.offset):
7635         Use off_t, not ulong, for file offsets.
7636         * packet.h (dbg_search_packet, dbg_copy_some_packets,
7637         search_packet, copy_some_packets): Likewise.
7638         * parse-packet.c (parse, dbg_search_packet, search_packet,
7639         dbg_copy_some_packets, copy_some_packets): Likewise.
7640         * ringedit.c (keyring_search): Likewise.
7642         * parse-packet.c (parse): Do not use %lu to report file
7643         offsets in error diagnostics; it's not portable.
7644         * ringedit.c (keyring_search): Likewise.
7646 2000-11-09  Werner Koch  <wk@gnupg.org>
7648         * g10.c (main): New option --enable-special-filenames.
7650 2000-11-07  Werner Koch  <wk@gnupg.org>
7652         * g10.c (main): New command --pipemode.
7653         * pipemode.c: New.
7655 2000-10-23  Werner Koch  <wk@gnupg.org>
7657         * armor.c (armor_filter): Changed output of hdrlines, so that a CR
7658         is emitted for DOS systems.
7660         * keygen.c (read_parameter_file): Add a cast for isspace().
7662         * status.c (myread): Use SIGINT instead of SIGHUP for DOS. 
7664 2000-10-19  Werner Koch  <wk@gnupg.org>
7666         * g10.c: New option --ignore-crc-error
7667         * armor.c (invalid_crc): New.
7668         (radix64_read): Act on new option.
7670         * openfile.c (try_make_homedir): Klaus Singvogel fixed a stupid
7671         error introduced on Sep 6th. 
7673 2000-10-18  Werner Koch  <wk@gnupg.org>
7675         * misc.c (print_cipher_algo_note): Don't print the note for AES.
7676         Changed wording.
7678 2000-10-16  Werner Koch  <wk@gnupg.org>
7680         * mainproc.c (do_proc_packets): Hack to fix the problem that
7681         signatures are not detected when there is a MDC packet but no
7682         compression packet.
7683         
7684         * g10.c (print_hashline): New.
7685         (print_mds): Use above func with --with-colons.
7687         * mainproc.c (check_sig_and_print): Detect multiple signatures
7688         and don't verify them.
7690 2000-10-14  Werner Koch  <wk@gnupg.org>
7692         * mainproc.c (add_onepass_sig): There is an easier solution to the
7693         error fixed yesterday; just check that we only have onepass
7694         packets.  However, the other solution provides an cleaner
7695         interface and opens the path to get access to other information
7696         from the armore headers.
7697         (release_list): Reset some more variables.
7699 2000-10-13  Werner Koch  <wk@gnupg.org>
7701         * mainproc.c (add_gpg_control): New.
7702         (do_proc_packets): use it.
7703         (proc_plaintext): Changed logic to detect clearsigns.
7704         (proc_tree): Check the cleartext sig with some new code.
7706         * packet.h: New packet PKT_GPG_CONTROL.
7707         * parse-packet.c (parse_gpg_control): New.
7708         * misc.c (get_session_marker): New.
7709         * armor.c (armor_filter): Replaced the faked 1-pass packet by the
7710         new control packet.
7712         * keyedit.c (keyedit_menu): Allow batchmode with a command_fd. 
7713         * status.c (my_read): New.
7714         (do_get_from_fd): use it.
7716 2000-10-12  Werner Koch  <wk@gnupg.org>
7718         * keygen.c (keygen_add_std_prefs): Add Rijndael to the prefs.
7720 2000-10-07  Werner Koch  <wk@gnupg.org>
7722         * gpgv.c: Add more stubs for ununsed code to make the binary smaller.
7724 Wed Oct  4 15:50:18 CEST 2000  Werner Koch  <wk@openit.de>
7726         * sign.c (hash_for): New arg to take packet version in account, changed
7727         call callers.
7729         * gpgv.c: New.
7730         * Makefile.am: Rearranged source files so that gpgv can be build with
7731         at least files as possible.
7733 Mon Sep 18 12:13:52 CEST 2000  Werner Koch  <wk@openit.de>
7735         * hkp.c (not_implemented): Print a notice for W32
7737 Fri Sep 15 18:40:36 CEST 2000  Werner Koch  <wk@openit.de>
7739         * keygen.c (keygen_add_std_prefs): Changed order of preferences to
7740         twofish, cast5, blowfish.
7742         * pkclist.c (algo_available): Removed hack to disable Twofish.
7744 Thu Sep 14 17:45:11 CEST 2000  Werner Koch  <wk@openit.de>
7746         * parse-packet.c (dump_sig_subpkt): Dump key flags. Print special
7747         warning in case of faked ARRs.
7749         * getkey.c (finsih_lookup): Hack so that for v4 RSA keys the subkey
7750         is used for encryption.
7752 Thu Sep 14 14:20:38 CEST 2000  Werner Koch  <wk@openit.de>
7754         * g10.c (main): Default S2K algorithms are now SHA1 and CAST5 - this
7755         should solve a lot of compatibility problems with other OpenPGP
7756         apps because those algorithms are SHOULD and not optional.  The old
7757         way to force it was by using the --openpgp option whith the drawback 
7758         that this would disable a couple of workarounds for PGP.
7760         * g10.c (main): Don't set --quite along with --no-tty.  By Frank Tobin.
7762         * misc.c (disable_core_dump): Don't display a warning here but a return
7763         a status value and ...
7764         * g10.c (main): ...print warnining here. Suggested by Sam Roberts.
7766 Wed Sep 13 18:12:34 CEST 2000  Werner Koch  <wk@openit.de>
7768         * keyedit.c (keyedit_menu): Allow to use "debug" on the secret key.
7770         * ringedit.c (cmp_seckey): Fix for v4 RSA keys.
7771         * seckey-cert.c (do_check): Workaround for PGP 7 bug.
7773 Wed Sep  6 17:55:47 CEST 2000  Werner Koch  <wk@openit.de>
7775         * misc.c (print_pubkey_algo_note): Do not print the RSA notice.
7776         * sig-check.c (do_signature_check): Do not emit the RSA status message.
7777         * pubkey-enc.c (get_session_key): Ditto.
7779         * encode.c (encode_simple, encode_crypt): Fix for large files.
7780         * sign.c (sign_file): Ditto.
7782 Wed Sep  6 14:59:09 CEST 2000  Werner Koch  <wk@openit.de>
7784         * passphrase.c (hash_passphrase): Removed funny assert.  Reported by
7785         David Mathog.
7787         * openfile.c (try_make_homedir): Changes for non-Posix systems.
7788         * g10.c (main): Take the default homedir from macro.
7790         * g10.c: The --trusted-key option is back.
7791         * trustdb.c (verify_own_key): Handle this option.
7792         (add_ultimate_key): Moved stuff from verify_own_key to this new func.
7793         (register_trusted_key): New.
7795 Fri Aug 25 16:05:38 CEST 2000  Werner Koch  <wk@openit.de>
7797         * parse-packet.c (dump_sig_subpkt): Print info about the ARR.
7799         * openfile.c (overwrite_filep): Always return okay if the file is
7800         called /dev/null. 
7801         (make_outfile_name): Add ".sign" to the list of know extensions.
7802         (open_sigfile): Ditto.
7804 Wed Aug 23 19:52:51 CEST 2000  Werner Koch  <wk@openit.de>
7806         * g10.c: New option --allow-freeform-uid. By Jeroen C. van Gelderen.
7807         * keygen.c (ask_user_id): Implemented here.
7809 Fri Aug  4 14:23:05 CEST 2000  Werner Koch  <wk@openit.de>
7811   * status.c (do_get_from_fd): Ooops, we used fd instead of opt.command_fd.
7812   Thanks to Michael Tokarev.
7814 Tue Aug  1 20:06:23 CEST 2000  Werner Koch  <wk@openit.de>
7816   * g10.c: New opttion --try-all-secrets on suggestion from Matthias Urlichs.
7817   * pubkey-enc.c (get_session_key): Quite easy to implement here.
7819 Thu Jul 27 17:33:04 CEST 2000  Werner Koch  <wk@openit.de>
7821   * g10.c: New option --merge-only.  Suggested by Brendan O'Dea.
7822   * import.c (import_one): Implemented it here
7823   (import_secret_one): Ditto.
7824   (print_stats): and give some stats.
7826 Thu Jul 27 12:01:00 CEST 2000  Werner Koch  <wk@openit.de>
7828   * g10.c: New options --show-session-key and --override-session-key
7829   * pubkey-enc.c (hextobyte): New.
7830   (get_override_session_key): New.
7831   * mainproc.c (proc_pubkey_enc): Add session-key stuff.
7832   * status.h, status.c (STATUS_SESSION_KEY): New.
7834 Thu Jul 27 10:02:38 CEST 2000  Werner Koch  <wk@openit.de>
7836   * g10.c (main): Use setmode(O_BINARY) for MSDOS while generating random bytes
7837   (print_mds): Likewise for stdin.
7838   * plaintext.c (handle_plaintext): Likewise for stdout.
7840 Mon Jul 24 10:30:17 CEST 2000  Werner Koch  <wk@openit.de>
7842   * keyedit.c (menu_expire): expire date for primary key can be set again.
7844 Wed Jul 19 11:26:43 CEST 2000  Werner Koch  <wk@openit.de>
7846   * keylist.c (is_uid_valid): New.
7847   (list_keyblock): Print validity information for all user IDs.  Note, this
7848   has to be done at other places too; for now we have only minimal support.
7850 Wed Jul 12 13:32:06 CEST 2000  Werner Koch  <wk@openit.de>
7852   * helptext.c, pkclist.c: s/superseeded/superseded/
7854 Mon Jul 10 16:08:57 CEST 2000  Werner Koch  <wk@openit.de>
7856   * parse-packet.c (enum_sig_subpkt): Fixed testing on crtitical bit in case
7857   of a NULL buffer.  Reported by Peter Marschall.
7859 Wed Jul  5 13:28:45 CEST 2000  Werner Koch  <wk@openit.de>
7861   * keyedit.c, keyid.c: Add some _()
7863   * argparse.c:  Changed the flag to suppress --version handling to also
7864   suppress --help.
7866 Wed Jun 28 11:54:44 CEST 2000  Werner Koch  <wk@openit.de>
7868   * armor.c (armor_filter): Set sigclass to 0 in case of non-dash-escaped
7869   clearsig.  This makes this mode work again.
7871   * mainproc.c (proc_tree): Fixed handling of one-pass-sig packets in textmode.
7872   Disabled the ugly workaround for PGP 5 - let's see whether thi breaks less
7873   cases. Found by Ted Cabeen.
7875   * options.h (DBG_HASHING): New.  All commented md_start_debug are now
7876   controlled by this debug option.
7878   * sign.c (print_status_sig_created): New and called from 2 places.
7880   * keygen.c (gen_rsa): New, but commented.
7881   (ask_algo): Commented support for RSA.
7883   * seckey-cert.c (protect_secret_key): Started to fix the code for v4 RSA
7884   keys - it is not solved yet. However, we have time until, Sep 20th ;)
7886 Wed Jun 14 12:27:09 CEST 2000  Werner Koch  <wk@openit.de>
7888   * status.c (init_shm_coprocessing): Changed the sequence of the get,attach
7889   to cope with the changes in newer Linux kernels.  This bug has been found
7890   by <dmitri@advantrix.com> who also proposed this solution.  Hopefully
7891   this does not break gpg on to many systems.
7893   * cipher.c (write_header): Protect the IV with the MDC too.
7894   * encr-data.c (decrypt_data): Likewise.
7896 Fri Jun  9 10:09:52 CEST 2000  Werner Koch  <wk@openit.de>
7898   * g10.c: New options --no-auto-key-retrieve
7899   * options.h (auto_key_retrieve): New.
7900   * mainproc.c (check_sig_and_print): Implemented that.
7902 Wed Jun  7 19:19:09 CEST 2000  Werner Koch  <wk@openit.de>
7904   * sig-check.c (do_check): Use EMULATE_MDENCODE also on v4 packets.
7906 Wed Jun  7 17:25:38 CEST 2000  Werner Koch  <wk@openit.de>
7908   * cipher.c (write_header): Use plain CFB mode for MDC encrypted packets.
7909   * encr-data.c (decrypt_data): Ditto.
7911 Mon Jun  5 23:41:54 CEST 2000  Werner Koch  <wk@openit.de>
7913   * seskey.c (do_encode_md, encode_md_value): Add new arg v3compathack to work
7914   around a bug in old versions.
7915   * sig-check.c (do_check): use the aboved workaround when enabled.
7916   * g10.c: New option --emulate-md-decode-bug
7918 Mon Jun  5 12:37:43 CEST 2000  Werner Koch  <wk@openit.de>
7920   * build-packet.c (do_mdc): New.
7921   (do_encrypted_mdc): Changed for the new proposal.
7922   * parse-packet.c (parse_mdc): New.
7923   (parse_encrypted): Fixed for the new proposal.
7924   * packet.h (PKT_MDC): New.
7925   * cipher.c (cipher_filter): Build the MDC packet here.
7926   * g10.c (main): Enable --force-mdc.
7927   * encr-data.c (mdc_decode_filter): Fixed for new MDC method
7929   * options.h(rfc2440): New.
7930   * g10.c (main): Changed the selected values for --openpgp to not include
7931   optional algorithms.
7933 Thu May 18 11:38:54 CEST 2000  Werner Koch  <wk@openit.de>
7935         * keyedit.c (keyedit_menu): Add a keyword arg to the prompt.
7937         * status.c, status.h: Added 3 new status tokens.
7938         * status.c (do_get_from_fd): New.
7939         (cpr_enabled,cpr_get,cpr_get_hidden,cpr_kill_prompt,
7940          cpr_get_answer_is_yes,cpr_get_answer_yes_no_quit): Modified to work
7941          with the new function.
7942         * g10.c: Add new option --command-fd.
7944         * status.c (progress_cb): New.
7945         (set_status_fd): Register progress functions
7947 Fri May 12 14:01:20 CEST 2000  Werner Koch  <wk@openit.de>
7949         * delkey.c (delete_key): Add 2 new status messages
7950         * status.c, status.h (STATUS_DELETE_PROBLEM): New.
7952         Fixed years of copyright in all source files.
7954 Mon May  1 17:08:14 CEST 2000  Werner Koch  <wk@openit.de>
7956         * trustdb.c (propagate_validity): Fixed the bug that only one uid
7957         gets fully trusted even when all are signed by an ultimate key.
7959 Mon May  1 15:38:04 CEST 2000  Werner Koch  <wk@openit.de>
7961         * getkey.c (key_byname): Always returned a defined context.  Fixed
7962         a segv for invalid user id specifications. Reported by Walter Koch.
7964         * getkey.c (get_user_id): I18ned "no user id" string. By Walter.
7966         * pkclist.c (do_show_revocation_reason): Typo fixes.
7967         * helptext.c: Ditto.
7969         * armor.c (armor_filter): Fixed some CRLF issues.  By Mike McEwan.
7971 Fri Apr 14 19:37:08 CEST 2000  Werner Koch  <wk@openit.de>
7973         * pkclist.c (do_show_revocation_reason): New.
7974         (show_revocation_reason): New and called at various places.
7976         * g10.c (main): Fixed small typo.
7978         * pkclist.c (do_we_trust): Act on always_trust but not for revoked
7979         keys. Suggested by Chip Salzenberg.
7981         * g10.c: New option --lock-never.
7983         * ringedit.c (get_writable_keyblock_file): New.
7984         * keygen.c (do_generate_keypair): Use this instead of the hardwired one.
7986         * keygen.c (ask_user_id): Check that the email address is in the
7987         correct field.  Suggested by Christian Kurz.
7989 Mon Apr 10 13:34:19 CEST 2000  Werner Koch  <wk@openit.de>
7991         * keyedit.c (show_key_with_all_names): s/sbb/ssb/
7993 Tue Mar 28 14:26:58 CEST 2000  Werner Koch  <wk@openit.de>
7995         * trustdb.c (verify_own_keys): Do not print warning about unprotected
7996         key when in quiet mode.
7998 Wed Mar 22 13:50:24 CET 2000  Werner Koch  <wk@openit.de>
8000         * mainproc.c (print_userid): Do UTF8 conversion before printing.
8001         * import.c (import_one): Ditto.
8002         (import_secret_one): Ditto.
8003         (delete_inv_parts): Ditto.
8005 Thu Mar 16 16:20:23 CET 2000  Werner Koch  <wk@openit.de>
8007         * keylist.c (print_key_data): Handle a NULL pk gracefully.
8009         * getkey.c (merge_one_pk_and_selfsig): Fixed silly code for
8010         getting the primary keys keyID but kept using the one from the
8011         subkey.
8012         * pubkey-enc.c (get_it): Print a note for expired subkeys.
8014         * getkey.c (has_expired): New.
8015         (subkeys_expiretime): New.
8016         (finish_lookup): Check for expired subkeys needed for encryption.
8017         (merge_keys_and_selfsig): Fixed expiration date merging for subkeys.
8019         * keylist.c (list_keyblock): Print expiration time for "sub".
8020         (list_one): Add missing merging for public keys.
8021         * mainproc.c (list_node): Ditto.
8023 2000-03-14 13:49:38  Werner Koch  (wk@habibti.openit.de)
8025         * keygen.c (keyedit_menu): Do not allow to use certain commands
8026         while the secret key is selected.
8028 2000-03-09 12:53:09  Werner Koch  (wk@habibti.openit.de)
8030         * keygen.c (ask_expire_interval): Movede parsig to ...
8031         (parse_expire_string): ... this new function. And some new control
8032         commands.
8033         (proc_parameter_file): Add expire date parsing.
8034         (do_generate_keypair): Allow the use of specified output files.
8036 2000-03-08 10:38:38  Werner Koch  (wk@habibti.openit.de)
8038         * keygen.c (ask_algo): Removed is_v4 return value and the commented
8039         code to create Elg keys in a v3 packet. Removed the rounding
8040         of key sizes here.
8041         (do_create): Likewise removed arg v4_packet.
8042         (gen_elg): Likewise removed arg version. Now rounding keysizes here.
8043         (gen_dsa): Rounding keysize now here.
8044         (release_parameter_list): New
8045         (get_parameter*): New.
8046         (proc_parameter_file): New.
8047         (read_parameter_file): New.
8048         (generate_keypair): Splitted. Now uses read_parameter_file when in
8049         batch mode.  Additional argument to specify a parameter file.
8050         (do_generate_keypair): Main bulk of above fucntion and uses the
8051         parameter list.
8052         (do_create): Don't print long notice in batch mode.
8053         * g10.c (main): Allow batched key generation.
8055 Thu Mar  2 15:37:46 CET 2000  Werner Koch  <wk@gnupg.de>
8057         * pubkey-enc.c (get_it): Print a note about unknown cipher algos.
8059         * g10.c (opts): Add a note to the help listing about the man page
8060         and removed some options from the help listing.
8062         * keyedit.c (print_and_check_one_sig): Use a new function to truncate
8063         the output of the user ID.  Suggested by Jan-Benedict Glaw.
8065 Wed Feb 23 10:07:57 CET 2000  Werner Koch  <wk@gnupg.de>
8067         * helptext.c: typo fix.
8069 Thu Feb 17 13:39:32 CET 2000  Werner Koch  <wk@gnupg.de>
8071         * revoke.c: Removed a bunch of commented code.
8073         * packet.h (SIGSUBPKT_REVOC_REASON): New.
8074         * build-packet.c (build_sig_subpkt): Support new sub packet.
8075         * parse-packet.c (parse_one_sig_subpkt): Ditto.
8076         (dump_sig_subpkt): Ditto.
8077         * revoke.c (ask_revocation_reason): New.
8078         (release_revocation_reason_info): New.
8079         (revocation_reason_build_cb): New.
8080         (gen_revoke): Ask for reason.
8081         * main.h (struct revocation_reason_info): Add declaration.
8082         * keyedit.c (menu_revsig): Add support for revocation reason.
8083         (menu_revkey): Ditto.
8084         (sign_uid_mk_attrib): Renamed to ...
8085         (sign_mk_attrib): ... this, made static and add support for reasons.
8087 Tue Feb 15 08:48:13 CET 2000  Werner Koch  <wk@gnupg.de>
8089         * build-packet.c (build_packet): Fixed fixing of old comment packets.
8091         * import.c (import_keys): Fixed importing from stdin when called with
8092         nnames set to zero as it normally happens.
8094 Mon Feb 14 14:30:20 CET 2000  Werner Koch  <wk@gnupg.de>
8096         * sig-check.c (check_key_signature2): Add new arg r_expired.
8097         (do_signature_check): New arg to pass it down to ...
8098         (do_check): New arg r-expire which is set when the signature
8099         has expired.
8100         * trustdb.c (check_sig_record): Set SIGF_EXPIRED flag and set
8101         the expiretime to zero so that thi signature will not be checked
8102         anymore.
8104 Fri Feb 11 17:44:40 CET 2000  Werner Koch  <wk@gnupg.de>
8106         * g10.c (g10_exit): Update the random seed_file.
8107         (main): Set the random seed file.  New option --no-random-seed-file.
8109 Thu Feb 10 17:39:44 CET 2000  Werner Koch  <wk@gnupg.de>
8111         * keyedit.c (menu_expire): Fixed segv due to unitialized sub_pk.
8112         By Rémi.
8114 Thu Feb 10 11:39:41 CET 2000  Werner Koch  <wk@gnupg.de>
8116         * keylist.c (list_keyblock): Don't print warnings in the middle of
8117         regulat output lines.  By Rémi.
8119         * sig-check.c: Include options.h
8121 Wed Feb  9 15:33:44 CET 2000  Werner Koch  <wk@gnupg.de>
8123         * gpg.c: New option --ignore-time-conflict
8124         * sig-check.c (do_check): Implemented this option.
8125         * trustdb.c (check_trust): Ditto.
8126         * sign.c (do_sign): Ditto.
8127         * keygen.c (generate_subkeypair): Ditto.
8129         * encode.c (encode_simple): use iobuf_cancel after open failure.
8130         Reported by Huy Le.
8132 Fri Jan 14 18:32:01 CET 2000  Werner Koch  <wk@gnupg.de>
8134         * packet.h (STRING2KEY): Changed mode from byte to int.
8135         * parse-packet.c (parse_key): Add the special GNU protection stuff
8136         * build-packet.c (so_secret_key): Ditto.
8137         * seckey-cert.c (do_check): Ditto.
8138         * keyedit.c (change_passphrase): Ditto.
8139         * export.c (export_secsubkeys): New.
8140         (do_export_stream): Hack to export the primary key using mode 1001.
8141         * g10.c: New command --export-secret-subkeys
8143 Thu Jan 13 19:31:58 CET 2000  Werner Koch  <wk@gnupg.de>
8145         * armor.c (is_armored): Check for 1-pass-sig packets. Reported by
8146         David Hallinan <hallinan@rtd.com>.
8147         (armor_filter): Replaced one LF by the LF macro.  Reported by
8148         Wolfgang Redtenbacher.
8150 Wed Jan  5 11:51:17 CET 2000  Werner Koch  <wk@gnupg.de>
8152         * g10.c (main): Reset new global flag opt.pgp2_workarounds
8153         when --openpgp is used.
8154         * mainproc.c (proc_plaintext): Do the PGP2,5 workarounds only
8155         when the global flag is set.
8156         (proc_tree): Ditto.
8157         * textfilter.c (copy_clearsig_text): Ditto.
8158         * armor.c (armor_filter): Ditto.
8160         * g10.c: New option --list-only
8161         * mainproc.c (proc_tree): Don't do it if opt.list_only is active.
8162         (proc_pubkey_enc): Implement option.
8164         * status.h, status.c ({BEGIN,END}_{EN,DE}CRYPTION): New.
8165         * cipher.c (cipher_filter): New status outputs.
8166         * mainproc.c (proc_encrypted): New status outputs.
8168 Fri Dec 31 14:08:15 CET 1999  Werner Koch  <wk@gnupg.de>
8170         * armor.c (armor_filter): Made the "Comment:" header translatable.
8172         * hkp.c (hkp_import): Make sure that the program does not return
8173         success when there is a connection problem.  Reported by Phillip Jones.
8175 Sun Dec 19 15:22:26 CET 1999  Werner Koch  <wk@gnupg.de>
8177         * armor.c (LF): Use this new macro at all places where a line LF
8178         is needed.  This way DOSish textfiles should be created when the
8179         input data is also in dos mode.
8180         * sign.c (LF): Ditto.
8181         * textfilter.c (LF): Ditto.
8182         (copy_clearsig_text): Disabled the forcing of CR,LF sequences
8183         for DOS systems.
8185         * plaintext.c (handle_plaintext): Fixes for line endings on DOS.
8186         and react on a LF in cleartext.
8187         * armor.c (fake_packet): Restore the original line ending after
8188         removing trailing spaces.
8190         * signal.c (got_fatal_signal): DOS fix.
8192 Thu Dec 16 10:07:58 CET 1999  Werner Koch  <wk@gnupg.de>
8194         * mainproc.c (print_failed_pkenc): Fix for unknown algorithm.
8195         Found by fygrave@epr0.org.
8197 Thu Dec  9 10:31:05 CET 1999  Werner Koch  <wk@gnupg.de>
8199         * hkp.c: i18n the strings.
8201 Sat Dec  4 15:32:20 CET 1999  Werner Koch  <wk@gnupg.de>
8203         * trustdb.c (verify_key): Shortcut for ultimately trusted keys.
8205 Sat Dec  4 12:30:28 CET 1999  Werner Koch  <wk@gnupg.de>
8207         * pkclist.c (build_pk_list): Validate the trust using the namehash
8208         if this one has been set by the key lookup.
8210         * g10.c: Add --delete-secret-key to the help page.
8212         * openfile.c (copy_options_file): Made static.
8213         (try_make_homedir): New.
8214         * ringedit.c (add_keyblock_resource): Use the try_make_hoemdir logic.
8215         * tdbio.c (tdbio_set_dbname): Likewise.
8217         * keygen.c (generate_user_id): Use m_alloc_clear() here. We should
8218         better use an allocation function specific to the user_id packet.
8220         * keygen.c (keygen_add_std_prefs): Changed symmetric preferences
8221         to include Blowfish again.  This is due to it's better speed compared
8222         to CAST5.
8224         * g10.c (strusage): Print the home directory.
8226         * armor.c (armor_filter): Take action on the cancel control msg.
8227         * filter.h (armor_filter_context_t): Add cancel flag.
8229 Mon Nov 29 21:52:11 CET 1999  Werner Koch  <wk@gnupg.de>
8231         * g10.c: New option --fast-list-mode ..
8232         * keylist.c (list_keyblock): .. and implemented.
8233         * mainproc.c (list_node): Ditto.
8235         * import.c (mark_non_selfsigned_uids_valid): Fixed the case that there
8236         is a uid without any packet following.
8238 Mon Nov 22 11:14:53 CET 1999  Werner Koch  <wk@gnupg.de>
8240         * mainproc.c (proc_plaintext): Never enable the hash processing
8241         when skip_verify is active.
8243         * armor.c (parse_header_line): Stop parsing on a WS line too.
8244         Suggested by Aric Cyr.
8246         * tdbdump.c (HEXTOBIN): Changed the name of the argument, so that
8247         traditional cpp don't mess up the macros. Suggested by Jos Backus.
8249         * mainproc.c (list_node): Print the PK algo in the --with-colon mode.
8250         * keylist.c (list_keyblock): Ditto.
8252         * signal.c (got_fatal_signal): Found the reason why exit(8) did not
8253         work - it is better to set the disposition back to default before
8254         raising the signal.  Print the notice on stderr always.
8256 Fri Nov 12 20:33:19 CET 1999  Werner Koch  <wk@gnupg.de>
8258         * g10.c (make_username): Swapped the logic.
8259         * keylist.c (public_key_list): Now takes a STRLIST as arg and moved
8260         the creation ot this list to the caller, so that he can copy with
8261         UTF-conversion of user IDs.  Changed all callers.
8262         (secret_key_list): Likewise.
8264         * getkey.c (get_user_id_string_native): New and ...
8265         * encode.c (write_pubkey_enc_from_list): ... use it here.
8267         * pubring.asc: Updated.
8269         * packet.h (PKT_PHOTO_ID): New.
8270         * parse-packet.c (parse_photo_id): New.
8271         * build-packet.c (do_user_id: Handle photo IDs.
8272         (build_packet): Change CTB for photo IDs
8273         * free-packet.c (free_user_id): Release memory used for photo IDs
8274         * sig-check.c (hash_uid_node): Handle photo IDs too.
8275         * trustdb.c (print_uid_from_keyblock): Hash photo ID.
8276         (make_uid_records): Ditto.
8277         * getkey.c (find_by_name): Ditto.
8278         * keyedit.c (show_prefs): Ditto.
8279         * keylist.c (list_keyblock): Ditto.
8281 Thu Oct 28 16:08:20 CEST 1999  Werner Koch  <wk@gnupg.de>
8283         * keygen.c (ask_expire_interval): Print a warning for systems
8284         with a signed 32 time_t if the exiration time is beyoind 2038.
8286 Fri Oct  8 20:40:50 CEST 1999  Werner Koch  <wk@gnupg.de>
8288         * ringedit.c (enum_keyblocks): The last fix way really stupid;
8289         reverted and set rt to Unknown.
8291 Fri Oct  8 20:32:01 CEST 1999  Werner Koch  <wk@gnupg.de>
8293         * ringedit.c (enum_keyblocks): Zero the entire kbpos out on open.
8295         * g10.c (oEntropyDLL): Removed option.
8296         (main): Made the warning on development versions more verbose.
8298         * g10.c (oHonorHttpProxy): New option.
8299         * hkp.c (hkp_ask_import,hkp_export): Implement this option.
8300         * options.skel: Enable this option for new installations
8302 Mon Oct  4 21:23:04 CEST 1999  Werner Koch  <wk@gnupg.de>
8304         * import.c (import_keys): Changed calling interface, adjusted caller.
8305         (import): Moved printing of stats out ...
8306         (print_stats): New. ... to here.
8307         (import_keys_stream): Call stats print here.
8308         (import_keys): Print stats as totals for all files.
8310         * tdbio.h (DIRF_NEWKEYS): New
8311         * tdbio.c (tdbio_dump_record): Print the new flag.
8312         * trustdb.c (check_trust_record): New arg sigs_only.  Adapted all
8313         callers.
8314         (do_update_trust_record): Removed recheck arg and add a new sigs_only
8315         do we can later improve on the performance.  Changed all callers too.
8316         (check_trustdb): Evalutate the new flag and add a status output.
8317         Do a check when the dir record has not been checked.
8318         (build_cert_tree): Evaluate the new flag.
8319         (check_trust): Ditto.  Do a trust_record check, when the dir record
8320         is not marked as checked.
8321         (mark_fresh_keys): New.
8322         (clear_lid_table): New.
8323         (sync_trustdb): New.
8324         * import.c (import_keys): Call sync_trustdb() after processing.
8325         (import_keys_stream): Ditto.
8326         * tdbdump.c (import_ownertrust): Ditto.
8328         * import.c (import_revoke_cert): Notify the trust DB.
8329         (do_update_trust_record): Use |= to set the REVOKED bit and not &=;
8330         shame on me for this bad copy+paste introduced bug.
8331         (do_we_trust): Add trustmask to allow revoked key override to work.
8332         Chnaged are to allow return of a mofified trustlevel. Adapted the
8333         one caller.
8335         * g10.c: New options --emulate-3des-s2k-bug
8336         * passphrase.c (hash_passphrase): Implemented above.
8338         * mainproc.c (proc_tree): Check for standalone signatures.
8339         (do_check_sig): Print a notice for a standalone revocation
8340         (check_sig_and_print): Do not print an error for unchecked standalone
8341         revocations.
8343 Tue Sep 28 20:54:37 CEST 1999  Werner Koch  <wk@gnupg.de>
8345         * encode.c (encode_simple): Use new CTB when we don't have the
8346         length of the file.  This is somewhat strange as the comment above
8347         indicates that this part is actually fixed for PGP 5 - maybe I simply
8348         lost the source line, tsss.
8350         * armor.c (armor_filter): Set a flag if no OpenPGP data has been found.
8351         * verify.c (verify_signatures): Add an error helptext.
8353 Thu Sep 23 19:24:30 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8355         * openfile.c (open_outfile): Fixed the 8dot3 handling.
8357         * passphrase.c (passphrase_to_dek): Print uid using utf8 func.
8358         * delkey.c (delete_key): Ditto.
8359         * pkclist.c (show_paths,do_edit_ownertrust,do_we_trust): Ditto
8360         (do_we_trust_pre): Ditto.
8361         * trustdb.c (print_user_id,check_uidsigs): Ditto.
8362         * revoke.c (gen_revoke,ask_revoke_sig): Ditto.
8364 Thu Sep 23 09:52:58 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8366         * verify.c (print_file_status): New.
8367         (verify_one_file): Moved status print to th new fnc. Add error status.
8368         * status.c, status.h (STATUS_FILE_ERROR): New
8370 Wed Sep 22 10:14:17 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8372         * openfile.c (make_outfile_name): Use case-insenstive compare for
8373         DOS systems.  Add ".pgp" to the list of know extensions.
8374         (open_outfile): For DOS systems try to replace the suffiy instead of
8375         appending it.
8377         * status.c, status.h: Add STATUS_FILE_{START,DONE}.
8378         * verify.c (verify_one_file): Emit these new stati.
8380         * sign.c (clearsign_file): Avoid duplicated Entries in the "Hash:"
8381         line.  Those headers are now only _not_ printed when there are
8382         only old-style keys _and_ all hashs are MD5.
8384 Mon Sep 20 12:24:41 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8387         * verify.c (verify_files, ferify_one_file): New.
8388         * g10.c:  New command --verify-files
8390 Fri Sep 17 12:56:42 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8392         * g10.c: Add UK spelling as alias for armor options ;-)
8394         * import.c (append_uid): Fixed a SEGV when there is no selfsig and
8395         no subkey.
8396         (merge_sigs): Ditto.  Removed the assertion.
8398 Wed Sep 15 16:22:17 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8400         * g10.c: New option --entropy-dll-name
8402 Mon Sep 13 10:51:29 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8404         * signal.c (got_fatal_signal): Print message using write(2) and
8405         only for development versions.
8407 Mon Sep  6 19:59:08 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8409         * tdbio.c (tdbio_set_dbname): Use mkdir macro
8410         * ringedit.c (add_keyblock_resource): Ditto.
8412 Fri Sep  3 10:04:45 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8414         * pkclist.c (build_pk_list): Skip keys set with --encrypt-to also
8415         when asking for a key.
8417         * plaintext.c (handle_plaintext): Make sure that we don't read a
8418         second EOF in the read loop for partial length packets.
8420         * mainproc.c (check_sig_and_print): print user ID as utf-8.
8422 Thu Sep  2 16:40:55 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8424         * import.c (merge_blocks): First add new subkeys, then merge subkey
8425         certificates.
8426         (merge_sigs): Don't merge subkey signatures here.
8428 Wed Sep  1 15:30:44 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8430         * keygen.c (ask_expire_interval): Fixed bug related to cpr_xx (tnx
8431         Francis J. Lacoste).
8433 Tue Aug 31 17:20:44 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8435         * plaintext.c (do_hash): Hash CR,LF for a single CR.
8436         (ask_for_detached_datafile): Changed arguments to be closer to
8437         those of hash_datafiles and cleanup the code a bit.
8438         * mainproc.c (proc_tree): Workaround for pgp5 textmode detached
8439         signatures.  Changed behavior of asking for data file to be the same
8440         as with provided data files.
8442         * keylist.c (list_keyblock): Use UTF8 print functions.
8444 Mon Aug 30 20:38:33 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8446         * import.c (chk_self_sigs): some s/log_error/log_info/ so that gpg
8447         does not return an error if a key has some invalid packets.
8449         * helptext.c: Fixed some typos and changed the way the
8450         translation works.  The english text is now the keyword for gettext
8451         and not anymore the keyword supplied to the function.  Done after
8452         some discussion with Walter who thinks this is much easier for the
8453         translators.
8455         * misc.c (disable_core_dumps): Don't do it for DOSish systems.
8457         * signal.c (signal_name): Bounds check on signum.
8459 Wed Aug  4 10:34:18 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8461         * pubring.asc: Updated.
8463         * pkclist.c (do_we_trust_pre,check_signatures_trust): Do not print
8464         the warning about --always_trust when --quiet is used.
8466         * pkclist.c (fpr_info): New and called at several places.
8468         * parse-packet.c (dump_sig_subpkt): List revocation key contents.
8470 Mon Jul 26 09:34:46 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8472         * pkclist.c (build_pk_list): Fixed typo in format string.
8474         * trustdb.c (create_shadow_dir): Don't translate the error string.
8476         * g10.c (main): Fixed spelling of user-id.
8477         * getkey.c (find_by_name_pk,find_by_name_sk,
8478         find_by_keyid,find_by_keyid_sk): Ditto and translate it.
8479         * import.c (mark_non_selfsigned_uids_valid,delete_inv_parts): Ditto.
8482 Mon Jul 26 01:01:39 CEST 1999  Michael Roth <mroth@nessie.de>
8484         * g10.c, options.h: New options --no-literal and --set-filesize
8486         * encode.c (encode_simple, encode_crypt): Support for the options
8487         --no-literal and --set-filesize.
8489         * sign.c (sign_file): ditto.
8491 Fri Jul 23 13:53:03 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8494         * ringedit.c (enum_keyblocks): Removed annoying error message in cases
8495         when we have no keyring at all to enum.
8497         * getkey.c (classify_user_id): Rewrote to relax the recognition of
8498         keyIDs and fingerprints (Michael).
8500         * mainproc.c (check_sig_and_print): Print status NO_PUBKEY.
8501         (print_failed_pkenc): Print status NO_SECKEY.
8503         * import.c (mark_non_selfsigned_uids_valid): New.
8504         * g10.c: New option --allow-non-selfsigned-uid.
8506         * pkclist.c (print_fpr): New.
8507         (do_we_trust_pre): Print the fpr before asking whether to use the key
8508         anyway.
8509         (do_edit_ownertrust): Likewise.
8511 Thu Jul 22 20:03:03 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8514         * ringedit.c (enum_keyblocks): Removed annoying error message in cases
8515         when we have no keyring at all to enum.
8517         * getkey.c (classify_user_id): Rewrote to relax the recognition of
8518         keyIDs and fingerprints (Michael).
8520         * mainproc.c (check_sig_and_print): Print status NO_PUBKEY.
8521         (print_failed_pkenc): Print status NO_SECKEY.
8523         * import.c (mark_non_selfsigned_uids_valid): New.
8524         * g10.c: New option --allow-non-selfsigned-uid.
8526 Thu Jul 15 10:15:35 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8528         * g10.c: New options --disable-{cipher,pubkey}-algo.
8530 Wed Jul 14 19:42:08 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8532         * status.h (STATUS_IMPORTED): New.
8533         * import.c (import): Print some status information (Holger Schurig).
8535         * g10.c (main): Make --no-greeting work again. Add a warning when
8536         --force-mds is used.
8538 Tue Jul 13 17:39:25 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8540         * pkclist.c (do_edit_ownertrust): Changed the way help works.
8541         (build_pk_list): Implemented default recipient stuff.
8542         * g10.c: New options --default-recipient[-self]
8543         (main): Suppress greeting in most cases, entering a passphrase or
8544         a missing value is not considered to be interactive use.
8545         Merged --print-md and --print-mds; the latter is now obsolete.
8546         Changed the way --gen-random works and documented it.
8547         Changed the way --gen-prime works and add a man entry.
8548         * g10.c (MAINTAINER_OPTIONS): Removed.
8550 Mon Jul 12 18:45:57 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8552         * keyedit.c (keyedit_menu): Add arg sign_mode and changed callers
8553         * g10.c (main): New command --lsign-key.
8555 Mon Jul 12 14:55:34 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8557         * mainproc.c (kidlist_item): New.
8558         (release_list): Release failed pk-enc-list.
8559         (print_failed_pkenc): New
8560         (proc_encrypted): Print info about failed PK enc.
8562         * openfile.c (make_outfile_name): s/error/info/
8564         * passphrase.c (passphrase_to_dek): Return an empty passphrase when
8565         in batch mode and don't make the warning message fatal
8566         * seckey-cert.c (check_secret_key): Try only once when in batch mode.
8568         * g10.c (make_username): New.
8570 Thu Jul  8 16:21:27 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8573         * packet.h (PKT_ring_trust): New
8574         * parse-packet.c (parse_trust): Store trust value
8575         * build-packet (build_packet): Ignore ring trust packets.
8576         * mainproc.c (add_ring_trust): New.
8577         (list_node): Print "rtv" records.
8578         * g10.c: New option --with-fingerprint.
8580         * trustdb.c (verify_own_keys): Don't insert if we are dry running
8581         (check_trust): Ditto.
8583 Wed Jul  7 13:08:40 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8585         * Makefile.am: Support for libtool.
8587         * keygen.c (ask_expire_interval): Hack to allow for an expire date.
8589         * trustdb.c (do_update_trust_record,update_trust_record): Splitted.
8590         (check_trust_record): New.
8591         (check_trust,build_cert_tree): Check the dir record as needed.
8592         (upd_pref_record): Removed.
8593         (make_pref_record): New.
8594         (propagate_validity): Stop as soon as we have enough validity.
8596         * tbdio.c (MAX_CACHE_ENTRIES_HARD): Increased the limit.
8599 Fri Jul  2 11:45:54 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8601         * g10.c (g10_exit): Dump random stats.
8603         * sig-check.c (check_key_signature,check_key_signature2): Enhanced
8604         version and wrapper for old function.
8605         (do_signature_check,signature_check): Ditto.
8607 Thu Jul  1 12:47:31 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8610         * keyedit.c (show_key_with_all_names): Print a notice for disabled keys.
8611         (enable_disable_keys): Add functionality
8612         * pkclist.c (edit_ownertrust): preserve disabled state.
8613         (build_pk_list): Skip disabled keys.
8614         * trustdb.c (upd_one_ownertrust): Ditto.
8615         (build_cert_tree): Mask the ownertrust.
8616         (trust_letter): Mask the value.
8617         (do_check): Take disabled flag into account.
8619         * passphrase.c (passphrase_to_dek): Add a pubkey_algo arg and changed
8620         all callers.
8622         * g10.c (utf8_strings): 2 new options.
8624         * trustdb.c (insert_trust_record_by_pk): New, replaces the next one.
8625         (insert_trust_record): Now takes a keyblock as arg.  Changed all
8626         callers to use the appropritae function.
8628         * openfile.c (ask_outfile_name): New.
8629         * plaintext.c (handle_plaintext): Ask for filename if there is
8630         no valid syntax. Don't use fname varbatim but filter it.
8632 Tue Jun 29 21:44:25 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8635         * trustdb.h (TRUST_FLAG_DISABLED): New.
8637         * status.c (USE_CAPABILITIES): Capabilities support (Remi).
8639         * tdbio.c : Added new fields to the DIR record.
8640         (tdbio_write_record): Fixed the update of the hash tables.
8641         (tdbio_delete_record): Drop the record from the hash tables.
8642         (drop_from_hashtbl): New.
8644         * status.c (cpr_get): Special online help mode.
8645         * helptext.c ("keyedit.cmd"): Removed.
8646         * keyedit.c (keyedit_menu): Use only help system.
8647         (enable_disable_key): New bit doies not yet work.
8649 Sat Jun 26 12:15:59 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8652         * dearmor.c (enarmor_file): Fixed comment string.
8653         * tdbdump.c (export_ownertrust): Text fix.
8654         * tbio.c (tdbio_invalid): Ditto.
8656         * parse-packet.c (parse_key): Made temp buffer larger.
8658         * Makefile.am (install-data-local): Add missing backslashes
8660 Tue Jun 15 12:21:08 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8662         * g10.c (main): Made iterated+salted the default S2K method.
8664         * Makefile.am (install-data-local): Use DESTDIR.
8666         * passphrase.c (passphrase_to_dek): Emit missing-passphrase while in
8667         batchmode.
8669         * parse-packet.c (parse_pubkeyenc): Fixed a SEGV.
8671 Mon Jun 14 21:18:54 CEST 1999 Michael Roth <mroth@nessie.de>
8673         * g10.c: New options --openpgp, --no-tty, --emit-version,
8674           --default-comment and --lock-multiple
8676 Thu Jun 10 14:18:23 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8678         * free-packet.c (free_encrypted): Fixed EOF case (Remi).
8679         (free_plaintext): Ditto.
8681         * helptext.c (keyedit.delsig.unknown): New (Remi).
8682         * keyedit.c (print_and_check_one_sig): Add arg print_without_key and
8683         changed all callers to make use of it (Remi):
8685 Tue Jun  8 13:36:25 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8687         * keylist.c (print_key_data): New and called elsewhere.
8688         * g10.c: New option --with-key-data
8690 Wed Jun  2 14:17:19 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8692         * mainproc.c (proc_tree): Yet another bad hack to cope with
8693         broken pgp2 created detached messages in textmode.
8695 Tue Jun  1 16:01:46 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8697         * openfile.c (make_outfile_name): New.
8698         * plaintext.c (handle_plaintext): Outputfile is now the inputfile
8699         without the suffix.
8700         * g10.c: New option --use-embedded-filename
8702 Mon May 31 19:41:10 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8704         * g10.c (main): Fix for SHM init (Michael).
8706         * compress.c, encr-data.c, mdfilter.c,
8707           plaintext.c, free-packet.c: Speed patches (Rémi).
8709 Thu May 27 09:40:55 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8711         * status.c (cpr_get_answer_yes_no_quit): New.
8712         * keyedit.c (menu_delsig): New.
8713         (check_all_keysigs): Splitted.
8714         (print_and_check_one_sig): New.
8716 Wed May 26 14:36:29 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8718         * build-packet.c (build_sig_subpkt): Support large packets.
8719         * parse-packet.c (enum_sig_subpkt): Replaces parse_sig_subpkt.
8720         * mainproc.c (print_notation_data): Print all notation packets.
8721         * g10.c (add_notation_data): Add a way to specify the critical flag.
8722         (main): Add option --set-policy-url.
8723         (check_policy_url): Basic checks.
8724         * sign.c (mk_notation_and_policy): Replaces mk_notation.
8726         * parse-packet.c (can_handle_critical): Moved decision whether we can
8727         handle critical subpacket to an extra function.
8729 Tue May 25 19:50:32 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8731         * sign.c (sign_file): Always use compression algo 1 for signed
8732         onyl file becuase we can´ be sure the the verifier supports other
8733         algorithms.
8735         * build-packet.c (build_sig_subpkt): Support for notation data.
8736         * sign.c (sign_file,clearsign_file,make_keysig_packet): Ditto.
8737         (mk_notation): New.
8738         * g10.c (add_notation_data): New and add option -N
8739         * mainproc.c (print_notation_data): New.
8740         (check_sig_and_print): Print any notation data of the signed text.
8742 Sun May 23 14:20:22 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8744         * pkclist.c (check_signatures_trust): Print a warning and return
8745         immediateley if opt.always_trust is true.
8747         * g10.c (main): Corrected handling of no-default-keyring
8749         * pkclist.c (algo_available): Disable Twofish until we have settled
8750         how to do the MDC.
8752         * hkp.c: Disable everything for mingw32
8754 Sat May 22 22:47:26 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8756         * mainproc.c (check_sig_and_print): Add sig creation time to the
8757         VALIDSIG status output. Add more info to the ERRSIG output.
8758         * sig-check.c (signature_check): Add sig time after epoch to SIG_ID.
8760         * import.c (import_one): Merge duplicate user IDs.
8761         (collapse_uids): New.
8762         * kbnode.c (move_kbnode): New.
8763         (remove_kbnode): New.
8764         * keyedit.c (keyedit_menu): Call collapse_uids.
8766         * g10.c: new option --logger-fd.
8768         * import.c: s/log_*_f/log_*/
8770 Thu May 20 14:04:08 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8772         * misc.c (pull_in_libs): do the volatile only for gcc
8774         * sig-check (signature_check): Emit SIG_iD only for classes 0 and 1.
8776         * armor.c (armor_filter): Add detection of PGP2 created clearsigs.
8777         (fake_packet): A tab is not a WS for pgp2 - handle this.
8778         * textfilter.c (len_without_trailing_chars): New.
8779         (copy_clearsig_text): Add pgp2mode arg.
8780         * sign.c (clearsign_file): pass old_style to the above fnc.
8783 Wed May 19 16:04:30 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8785         * g10.c: New option --interactive.
8787         * mainproc.c (proc_plaintext): Add workaround for pgp2 bug
8788         (do_check_sig): Ditto.
8789         (proc_tree): Ditto.
8790         * plaintext.c (do_hash): Ditto.
8791         (hash_datafiles): Ditto, add an arg, changed all callers.
8792         * mdfilter.c (md_filter): Add support for the alternate hash context.
8794 Mon May 17 21:54:43 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8796         * parse-packet.c (parse_encrypted): Support for PKT_ENCRYPTED_MDC.
8797         * build-packet.c (do_encrypted_mdc): Ditto.
8798         * cipher.c (write_header): Add mdc hashing.
8799         (cipher_filter): write out the hash.
8800         * mainproc.c (do_proc_packets): Add PKT_ENCRYPTED_MDC.
8801         * encr-data.c (decrypt_data): Add mdc hashing.
8802         (mdc_decode_filter): New.
8804         * parse-packet.c (parse_sig_subpkt): Fixed stupid bug for subpkt
8805         length calculation
8806         (parse_signature): Fixed even more stupid bug.
8808 Sat May  8 19:28:08 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8810         * build-packet.c (do_signature): Removed MDC hack.
8811         * encode.c (encode_crypt_mdc): Removed.
8812         * mainproc.c (do_check_sig): Removed MDC hack.
8813         (check_sig_and_print): Ditto.
8814         * parse-packet.c (parse_signature): Ditto.
8815         * sig-check.c (mdc_kludge_check): Ditto.
8816         * free-packte.c (copy_signature, free_seckey_enc): Ditto.
8818         * parse-packet.c (parse_signature,parse_key): Store data of
8819         unknown algorithms with mpi_set_opaque inseatd of the old
8820         faked data stuff.
8821         (read_rest): Removed.
8822         (read_rest2): Renamed to read_rest
8823         * build-packet.c (write_fake_data): Use mpi_get_opaque.
8824         * free-packet.c (cp_fake_data): Removed and cahnged all callers
8825         to use mpi_copy.
8826         (free_pubkey_enc,free_seckey_enc,release_public_key_parts,
8827          release_secret_key_parts): Use mpi_free for opaque data.
8829 Thu May  6 14:18:17 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8831         * trustdb.c (check_trust): Check for revoked subkeys.
8832         * pkclist.c (do_we_trust): Handled revoked subkeys.
8833         (do_we_trust_pre): Ditto.
8834         (check_signatures_trust): Ditto.
8836         * build-packet.c (hash_public_key): Fix for ancient g10 keys.
8838         * mainproc.c (do_proc_packets): Return EOF if no data has been read.
8839         * g10.c (main): Catch errors for default operation.
8841 Thu Apr 29 12:29:22 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8843         * sign.c (sign_file): Fixed hashing in case of no subpackets.
8844         (clearsign_file): Ditto.
8845         (make_keysig_packet): Ditto.
8847 Wed Apr 28 13:03:03 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8849         * keyedit.c (keyedit_menu): Add new command revkey.
8850         * (menu_revkey): New.
8853 Mon Apr 26 17:48:15 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8855         * parse-packet.c (parse_signature): Add the MDC hack.
8856         * build-packet.c (do_signature): Ditto.
8857         * free-packet.c (free_seckey_enc,copy_signature,cmp_signatures): Ditto.
8858         * mainproc.c (do_check_sig): Ditto.
8859         * sig-check.c (mdc_kludge_check): New.
8860         * encode.c (encrypt_mdc_file): New.
8862         * keyedit.c (check_all_keysigs): List revocations.
8863         * (menu_revsig): New.
8864         * sign (make_keysig_packet): Support for class 0x30.
8866 Sun Apr 18 20:48:15 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8868         * pkclist.c (select_algo_from_prefs): Fixed the case that one key
8869         has no preferences (Remi Guyomarch).
8871         keylist.c (list_keyblock): ulti_hack to propagate trust to all uids.
8873 Sun Apr 18 10:11:28 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8875         * seckey-cert.c (do_check): Use real IV instead of a 0 one, so that
8876         it works even if the length of the IV doesn't match the blocksize.
8877         Removed the save_iv stuff.
8878         (protect_secret_key): Likewise.  Create the IV here.
8879         * packet.h (PKT_secret_key): Increased size of IV field and add a
8880         ivlen field.
8881         * parse-packet.c (parse_key): Use the len protect.ivlen.
8882         * build-packet.c (do_secret_key). Ditto.
8884         * getkey.c (key_byname): Close keyblocks.
8886         * Makefile.am (gpgm): Removed this
8887         * g10.c: Merged gpg and gpgm
8889         * import.c (import): Utilize option quiet.
8890         * tdbio.c (tdbio_set_dbname): Ditto.
8891         * ringedit.c (add_keyblock_resource,keyring_copy): Ditto.
8893         * keyedit.c (sign_uids): Add some batch support.
8895         * g10.c (main): add call to tty_batchmode.
8897 Fri Apr  9 12:26:25 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8899         * status.c (write_status_text): Some more status codes.
8900         * passphrase_to_dek (passphrase_to_dek): add a status code.
8901         * seckey_cert.c (check_secret_key): Likewise.
8903         * encr-data.c (decrypt_data): Reverse the last changes
8904         * cipher.c (write_header): Ditto.
8906         * parse-packet.c (parse_key): Dropped kludge for ancient blowfish mode.
8908 Thu Apr  8 09:35:53 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8910         * mainproc.c (proc_encrypted): Add a new status output
8911         * passphrase.c (passphrase_to_dek): Ditto.
8912         * status.h status.c: Add new status tokens.
8914 Wed Apr  7 20:51:39 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8916         * encr-data.c (decrypt_data): Fixes for 128 bit blocksize
8917         * cipher.c (write_header): Ditto.
8918         * seckey-cert.c (do_check): Ditto.
8919         (protect_secret_key). Ditto.
8920         * misc.c (print_cipher_algo_note): Twofish is now a standard algo.
8922         * keygen.c (do_create): Fixed spelling (Gaël Quéri)
8923         (ask_keysize): Only allow keysizes up to 4096
8925         * ringedit.c (add_keyblock_resource): chmod newly created secrings.
8927         * import.c (delete_inv_parts): Fixed accidently deleted subkeys.
8929 Tue Apr  6 19:58:12 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8931         * armor.c: Removed duped include (John Bley)
8932         * mainproc.c: Ditto.
8934         * build-packet.c (hash_public_key): Fixed hashing of the header.
8936         * import.c (delete_inv_parts): Allow import of own non-exportable sigs.
8938 Sat Mar 20 13:59:47 CET 1999  Werner Koch  <wk@isil.d.shuttle.de>
8940         * armor.c (fake_packet): Fix for not not-dash-escaped
8942 Sat Mar 20 11:44:21 CET 1999  Werner Koch  <wk@isil.d.shuttle.de>
8944         * g10.c (main): Added command --recv-keys
8945         * hkp.c (hkp_import): New.
8947 Wed Mar 17 13:09:03 CET 1999  Werner Koch  <wk@isil.d.shuttle.de>
8949         * trustdb.c (check_trust): add new arg add_fnc and changed all callers.
8950         (do_check): Ditto.
8951         (verify_key): Ditto.
8952         (propagate_validity): Use the new add_fnc arg.
8953         (print_user_id): Add the FILE arg.
8954         (propagate_ownertrust): New.
8955         * pkclist.c (add_ownertrust_cb): New and changed the add_ownertrust
8956         logic.
8958         * getkey.c (get_keyblock_bylid): New.
8959         * trustdb.c (print_uid_from_keyblock): New.
8960         (dump_tn_tree_with_colons): New.
8961         (list_trust_path): Add colon print mode.
8963         * trustdb.c (insert_trust_record): Always use the primary key.
8965         * encode.c (encode_simple): Added text_mode filter (Rémi Guyomarch)
8966         (encode_crypt): Ditto.
8968         * mainproc.c (proc_pubkey_enc): Added status ENC_TO.
8969         * armor.c (armor_filter): Added status NODATA.
8970         * passphrase.c (passphrase_to_dek): Always print NEED_PASSPHRASE
8971         * seckey_cert.c (check_secret_key): Added BAD_PASS status.
8973         * g10.c (main): Set g10_opt_homedir.
8975 Sun Mar 14 19:34:36 CET 1999  Werner Koch  <wk@isil.d.shuttle.de>
8977         * keygen.c (do_create): Changed wording of the note (Hugh Daniel)
8979 Thu Mar 11 16:39:46 CET 1999  Werner Koch  <wk@isil.d.shuttle.de>
8981         * tdbdump.c: New
8983         * trustdb.c (walk_sigrecs,do_list_sigs,list_sigs,
8984         list_records,list_trustdb,export_ownertrust,import_ownertrust): Moved
8985         to tdbdump.c
8986         (init_trustdb): renamed to setup_trustdb.  Changed all callers.
8987         (do_init_trustdb): renamed to init_trustdb().
8988         * trustdb.c (die_invalid_db): replaced by tdbio_invalid.
8989         * tdbio.c (tdbio_invalid): New.
8991         * import.c (delete_inv_parts): Skip non exportable signatures.
8992         * keyedit.c (sign_uid_mk_attrib): New.
8993         (sign_uids): Add the local argument.
8994         (keyedit_menu): New "lsign" command.
8995         * trustdb.c (register_trusted_key): Removed this and all related stuff.
8996         * g10.c (oTrustedKey): Removed option.
8998         * tdbio.h (dir.valcheck): New trustdb field.
8999         * tdbio.c: Add support for this field
9000         (tdbio_read_modify_stamp): New.
9001         (tdbio_write_modify_stamp): New.
9002         * trustdb.c (do_check): Check against this field. Removed cache update.
9003         (verify_key): Add cache update.
9004         (upd_uid_record): Some functional changes.
9005         (upd_cert_record): Ditto
9007 Wed Mar 10 11:26:18 CET 1999  Werner Koch  <wk@isil.d.shuttle.de>
9009         * keylist.c (list_keyblock): Fixed segv in uid. Print 'u' as
9010         validity of sks.
9012 Mon Mar  8 20:47:17 CET 1999  Werner Koch  <wk@isil.d.shuttle.de>
9014         * getkey.c (classify_user_id): Add new mode 12 (#<lid>).
9016         * seckey-cert.c (check_secret_key): replaced error by info.
9018         * trustdb.c (query_trust_info): Add another arg, changed all callers.
9019         (check_trust): Ditto.
9020         (do_check): Ditto.
9021         (verify_key): Handle namehash.
9022         * keylist.c (list_keyblock): print trust info for user ids.
9024         * sig-check.c (signature_check): Add sig-created to status output.
9026 Tue Mar  2 16:44:57 CET 1999  Werner Koch  <wk@isil.d.shuttle.de>
9028         * textfilter.c (copy_clearsig_text): New.
9029         (clearsign): Removed.
9030         * sign.c (clearsign_file): does not use textfiler anymore.
9032         * keygen.c (ask_user_id): print a note about the used charset.
9034 Tue Mar  2 10:38:42 CET 1999  Werner Koch  <wk@isil.d.shuttle.de>
9036         * sig-check.c (signature_check): sig-id now works for all algos.
9038         * armor.c (armor_filter): Fixed armor bypassing.
9040 Sun Feb 28 19:11:00 CET 1999  Werner Koch  <wk@isil.d.shuttle.de>
9042         * keygen.c (ask_user_id): Don't change the case of email addresses.
9043         (has_invalid_email_chars): Adjusted.
9045         * keylist.c (list_one): Really list serect keys (Remi Guyomarch)
9047         * keyedit.c (menu_select_uid): Add some braces to make egcs happy.
9048         (menu_select_key): Ditto.
9050         * mainproc.c (do_proc_packets): List sym-enc packets (Remi Guyomarch)
9052 Fri Feb 26 17:55:41 CET 1999  Werner Koch  <wk@isil.d.shuttle.de>
9054         * pkclist.c (build_pk_list): Return error if there are no recipients.
9056         * sig-check.c (signature_check): New signature id feature.
9057         * armor.c (make_radic64_string): New.
9059         * mainproc.c (proc_pubkey_enc): early check for seckey availability.
9061         * pkclist.c (do_we_trust_pre): print user id before asking.
9063         * ringedit.c (add_keyblock_resource,get_keyblock_handle): Cleaner
9064         handling of default resource.
9067 Thu Feb 25 18:47:39 CET 1999  Werner Koch  <wk@isil.d.shuttle.de>
9069         * pkclist.c (algo_available): New.
9070         (select_algo_from_prefs): Check whether algo is available.
9072         * ringedit.c (keyring_copy): Take care of opt.dry_run.
9073         (do_gdbm_store): Ditto.
9074         * openfile.c (open_outfile). Ditto.
9075         (copy_options_file): Ditto.
9076         * trustdb.c (update_trustdb): Ditto.
9077         (clear_trust_checked_flag): Ditto.
9078         (update_trust_record): Ditto.
9079         (insert_trust_record): Ditto.
9081 Wed Feb 24 11:07:27 CET 1999  Werner Koch  <wk@isil.d.shuttle.de>
9083         * keylist.c (secret_key_list): Now really list the secret key.
9085         * trustdb.c (do_init_trustdb): New. Init is now deferred.
9087 Mon Feb 22 20:04:00 CET 1999  Werner Koch  <wk@isil.d.shuttle.de>
9089         * getkey.c (lookup_sk): Return G10ERR_NO_SECKEY and not x_PUBKEY.
9091 Fri Feb 19 15:49:15 CET 1999  Werner Koch  <wk@isil.d.shuttle.de>
9093         * pkclist.c (select_algo_from_prefs): retrieve LID if not there.
9095         * armor.c (fake_packet): Replaced ugly lineending handling.
9097         * g10.c (oNoEncryptTo): New.
9098         * pkclist.c (build_pk_list): Implemented this option.
9100         * g10.c (main): Greeting is now printed to stderr and not to tty.
9101         Use add_to_strlist() instead of direct coding.
9103         * import.c (import): Use iobuf_push_filter2.
9105         * mainproc.c (check_sig_and_print): Print all user ids
9106         for good signatures.
9107         * getkey.c (get_pubkeyblock): New.
9109         * import.c (chk_self_sigs): Fixed SEGV for unbounded class 0x18 keys.
9110         (delete_inv_parts): Delete special marked packets.
9112 Tue Feb 16 14:10:02 CET 1999  Werner Koch  <wk@isil.d.shuttle.de>
9114         * g10.c (main): New option --encrypt-to
9116         * pkclist.c (build_pk_list): Implemented encrypt-to.
9118         * parse-packet.c (parse_user_id): Removed the hack to work with
9119         utf-8 strings.
9121         * g10.c (main): Install lockfile cleanup handler.
9122         * tdbio.c (cleanup): Removed: this is now handled by dotlock.
9124 Sat Feb 13 14:13:04 CET 1999  Werner Koch  <wk@isil.d.shuttle.de>
9126         * tdbio.c (tdbio_set_dbname): Init lockhandle for a new trustdb
9128 Wed Feb 10 17:15:39 CET 1999  Werner Koch  <wk@isil.d.shuttle.de>
9130         * g10.c (main): check for development version now in configure
9132         * tdbio.c (tdbio_write_record): Add uid.validity
9133         (tdbio_read_record) : Ditto.
9134         (tdbio_dump_record) : Ditto.
9136         * keygen.c (keygen_add_std_prefs): Replaced Blowfish by Twofish,
9137         removed MD5 and Tiger.
9138         * pubkey-enc.c (get_it): Suppress warning about missing Blowfish
9139         in preferences in certain cases.
9141         * ringedit.c (lock_rentry,unlock_rentry): New.
9143         * getkey.c (key_byname): Pass ret_kb down to lookup_xx.
9145         * armor.c (armor_filter): No output of of empty comment lines.
9146         Add option --no-version to suppress the output of the version string.
9148         * getkey.c: Release the getkey context for auto context variables.
9150 Sun Jan 24 18:16:26 CET 1999  Werner Koch  <wk@isil.d.shuttle.de>
9152         * getkey.c: Changed the internal design to allow simultaneous
9153         lookup of multible user ids
9154         (get_pubkey_bynames): New.
9155         (get_seckey_bynames): New.
9156         (get_seckey_next): New.
9157         (get_seckey_end): New.
9158         * keylist.c (list_one): Use the new functions.
9160         * keylist.c (list_keyblock): add a newline for normal listings.
9162         * g10.c (--recipient): New option name to replace --remote-user
9165 Wed Jan 20 18:59:49 CET 1999  Werner Koch  <wk@isil.d.shuttle.de>
9167         * textfilter.c: Mostly rewritten
9168         * plaintext.c (handle_plaintext): Use now text_filter semantics.
9170 Tue Jan 19 19:34:58 CET 1999  Werner Koch  <wk@isil.d.shuttle.de>
9172         * export.c (export_pubkeys_stream): New.
9173         (do_export_stream): New.
9174         * g10.c (aSendKeys): New command.
9175         * hkp.c (hkp_export): New.
9177         * compress.c (do_uncompress): Hack for algo 1 and 1.1.3
9179 Sun Jan 17 11:04:33 CET 1999  Werner Koch  <wk@isil.d.shuttle.de>
9181         * textfilter.c (text_filter): Now uses iobuf_read_line().
9182         (read_line): Removed.
9184         * armor.c (trim_trailing_spaces): Removed and replaced
9185         by trim_trailing_ws from libutil
9187 Sat Jan 16 12:03:27 CET 1999  Werner Koch  <wk@isil.d.shuttle.de>
9189         * hkp.c (hkp_ask_import): Use only the short keyid
9191 Sat Jan 16 09:27:30 CET 1999  Werner Koch  <wk@isil.d.shuttle.de>
9193         * import.c (import_key_stream): New
9194         (import): New, moved most of import_keys here.
9195         * g10.c: New option --keyserver
9196         * mainproc.c (check_sig_and_print): Hook to import a pubkey.
9198         * pref.c pref.h : Removed
9200         * hkp.c hkp.h: New
9202 Wed Jan 13 14:10:15 CET 1999  Werner Koch  <wk@isil.d.shuttle.de>
9204         * armor.c (radix64_read): Print an error if a bad armor was detected.
9206 Wed Jan 13 12:49:36 CET 1999  Werner Koch  <wk@isil.d.shuttle.de>
9208         * armor.c (radix64_read): Now handles malformed armors produced
9209         by some buggy MUAs.
9211 Tue Jan 12 11:17:18 CET 1999  Werner Koch  <wk@isil.d.shuttle.de>
9213         * ringedit.c (find_keyblock_bysk): New.
9215         * skc_list.c (is_insecure): New.
9216         (build_sk_list): usage check for insecure keys.
9218         * import.c (chk_self_sigs): Add handling for subkeys.
9219         (delete_inv_parts): Skip unsigned subkeys
9221         * sig-check.c (do_check): Print info if the signature is older
9222         than the key.
9223         * keygen.c (generate_subkeypair): Fail on time warp.
9224         * sign.c (do_sign): Ditto.
9226 Sun Jan 10 15:10:02 CET 1999  Werner Koch  <wk@isil.d.shuttle.de>
9228         * armor.c (fake_packet): Fixed not-dash-escaped bug.
9230 Sat Jan  9 16:02:23 CET 1999  Werner Koch  <wk@isil.d.shuttle.de>
9232         * sig-check.c (do_check): Output time diff on error
9234         * status.c (STATUS_VALIDSIG): New.
9235         (is_status_enabled): New.
9236         * mainproc.c (check_sig_and_print): Issue that status message.
9238         * plaintext.c (special_md_putc): Removed
9240         * armor.c (armor_filter): print error for truncated lines.
9242         * free-packet.c (free_encrypted): Revomed call to set_block_mode.
9243         (free_plaintext): Ditto.
9245 Thu Jan  7 18:00:58 CET 1999  Werner Koch  <wk@isil.d.shuttle.de>
9247         * pkclist.c (add_ownertrust): Fixed return value.
9249         * encr-data.c (decrypt_data): Disabled iobuf_set_limit and
9250         iobuf_pop_filter stuff.
9251         * compress.c (handle_compressed): Disabled iobuf_pop_filter.
9253         * packet.h (PKT_secret_key): Add is_primary flag.
9254         * parse-packet.c (parse_key): Set this flag.
9255         * passphrase.c (passphrase_to_dek): Kludge to print the primary
9256         keyid - changed the API: keyid must now hold 2 keyids.
9257         * getkey.c (get_primary_seckey): New.
9258         * seckey-cert.c (do_check): pass primary keyid to passphrase query
9260         * tbdio.c (open_db): removed the atexit
9261         (tdbio_set_dbname): and moved it to here.
9263         * armor.c: Rewrote large parts.
9265 Tue Dec 29 19:55:38 CET 1998  Werner Koch  <wk@isil.d.shuttle.de>
9267         * revoke.c (gen_revoke): Removed compression.
9269         * pkclist.c (do_we_trust_pre): special check for revoked keys
9271         * trustdb.c (update_trust_record): Fixed revoke flag.
9273 Tue Dec 29 14:41:47 CET 1998  Werner Koch  <wk@isil.d.shuttle.de>
9275         * misc.c (disable_core_dumps): Check for EINVAL (Atari)
9277         * getkey (merge_one_pk_and_selfsig): Fixed search of expiredate.
9278         (merge_keys_and_selfsig): Ditto.
9280         * free-packet.c (cmp_public_keys): cmp expire only for v3 packets
9281         (cmp_secret_keys): Ditto.
9282         (cmp_public_secret_key): Ditto.
9284 Wed Dec 23 17:12:24 CET 1998  Werner Koch  <wk@isil.d.shuttle.de>
9286         * armor.c (find_header): Reset not_dashed at every header
9288 Wed Dec 23 13:18:14 CET 1998  Werner Koch  <wk@isil.d.shuttle.de>
9290         * pkclist.c (add_ownertrust): Refresh validity values.
9292         * trustdb.c (enum_cert_paths_print): New arg refresh.
9294         * ringedit.c: Fixed problems fix keyrings
9295         * parse-packet.c (dbg_parse_packet): New debug functions.
9297         * getkey.c (getkey_disable_caches): New.
9298         * import.c (import_keys): Disable caches.
9300 Thu Dec 17 18:31:15 CET 1998  Werner Koch  <wk@isil.d.shuttle.de>
9302         * misc.c (trap_unaligned): Only for glibc 1
9304         * sign.c (write_dash_escaped): Now escapes "From " lines
9305         * g10.c: New option --escape-from-lines
9307         * trustdb.c (sort_tsl_list): New
9308         (list_trust_path): Now prints sorted list.
9309         (enum_cert_paths): Likewise.
9310         (enum_cert_paths_print): New.
9311         (print_paths): New printing format.
9312         * pkclist.c (add_ownertrust): New arg quit.
9313         (edit_ownertrust): New quit selection and does not query
9314         the recipients ownertrust anymore.
9315         (add_ownertrust): Print the ceritficate path.
9318 Mon Dec 14 21:18:49 CET 1998  Werner Koch  <wk@isil.d.shuttle.de>
9320         * parse-packet.c (parse_signature): Now checks for critical bit
9321         (parse_sig_subpkt): Splitted.
9322         (parse_one_sig_subpkt): New.
9323         * sig-check.c (do_check): handle critical bit.
9325 Sun Dec 13 14:10:56 CET 1998  Werner Koch  <wk@isil.d.shuttle.de>
9327         * pcklist.c (select_algo_from_prefs): Preferences should
9328         now work (lost the != ? )
9330 Thu Dec 10 20:15:36 CET 1998  Werner Koch  <wk@isil.d.shuttle.de>
9332         * ringedit.c (gdbm_store): Fix for inserts
9334         * g10.c (main): New option --export-all
9335         * export.c (export_pubkeys): New arg.
9336         (do_export): Now may skip old keys.
9338         * status.c: Minor patches for Sun's cc
9340         * keygen.c (ask_algo): Disabled v3 ElGamal choice, rearranged
9341          the numbers.  Add a warning question when a sign+encrypt key
9342          is selected.
9344         * g10.c (do_not_use_RSA): Removed.
9345         * misc.c (print_pubkey_algo_note): New as replacement for the
9346         do_not_use_RSA() and chnaged all callers.
9347         (print_cipher_algo_note): New.
9348         (print_hash_algo_note): New.
9350         * cipher.c (write_header): Add a call to print_cipher_algo_note.
9351         * seckey-cert.c (protect_secret_key): Ditto
9352         * sign.c (do_sign): Add a call to print_digest_algo_note.
9354         * getkey.c (get_long_user_id_string): New.
9355         * mainproc.c (check_sig_and_print): Changed the format of the
9356         status output.
9358         * encrypt.c (write_pubkey_enc_from_list): print used symmetric cipher.
9360         * pkclist.c (do_we_trust): Changed a message.
9362 Wed Dec  9 13:41:06 CET 1998  Werner Koch  <wk@isil.d.shuttle.de>
9364         * misc.c (trap_unaligned) [ALPHA]: Only if UAC_SIGBUS is defined.
9366         * sign.c (write_dash_escaped): Add the forgotten patch by Brian Moore.
9368         * compress.c (do_uncompress): Fixed the inflating bug.
9371 Tue Dec  8 13:15:16 CET 1998  Werner Koch  <wk@isil.d.shuttle.de>
9373         * trustdb.c (upd_uid_record): Now uses the newest self-signature
9374         (insert_trust_record): Now calls update with recheck set to true.
9375         (register_trusted_key): New.
9376         (verify_own_keys): Enhanced by list of trusted keys.
9378         * g10.c (main): Print a warning when a devel version is used.
9379         (main): New option --trusted-key
9381         * import.c (merge_blocks): Fixed merging of new user ids and
9382         added merging of subkeys.
9383         (append_uid): Ditto.
9384         (merge_keysig): New.
9385         (append_key): New.
9386         * getkey.c (merge_one_pk_and_selfsig): Get the expiration time
9387         from the newest self-signature.
9388         (merge_keys_and_selfsig): Ditto.
9390         * free-packet.c (cmp_secret_key): New.
9393 Fri Nov 27 21:37:41 CET 1998  Werner Koch  <wk@isil.d.shuttle.de>
9395         * g10.c: New option --lock-once
9396         * tdbio.c (open_db): Add an atexit
9397         (cleanup): New.
9398         (tdbio_sync): Add locking.
9399         (tdbio_end_transaction): Ditto.
9400         (put_record_into_cache): Ditto.
9401         * ringedit.c (keyring_copy): Ditto.
9402         (cleanup): New.
9403         (add_keyblock_resource): Add an atexit.
9405 Fri Nov 27 15:30:24 CET 1998  Werner Koch  <wk@isil.d.shuttle.de>
9407          * armor.c (find_header): Another fix for clearsigs.
9409 Fri Nov 27 12:39:29 CET 1998  Werner Koch  <wk@isil.d.shuttle.de>
9412         * status.c (display_help): Removed.
9413         * helptext.c: New and removed the N_() from all cpr_gets.
9416 Fri Nov 20 16:54:52 1998  Werner Koch  (wk@isil.d.shuttle.de)
9418         * g10.c (main): New option --not-dash-escaped
9419         * sign.c (write_dashed_escaped): Ditto.
9420         * armor.c (find_header): Support for NotDashEscaped header.
9422         * getkey.c: print "disabled cache.." only if verbose is used.
9424 Thu Nov 19 07:17:31 1998  Werner Koch  <werner.koch@guug.de>
9426         * parse-packet.c (dump_sig_subpkt): Fixed expire listing
9427         * getkey.c (merge_keys_and_selfsig): Fixed expire calculation.
9428         (merge_one_pk_and_selfsig): Ditto.
9429         * keyedit.c (menu_expire). Ditto.
9430         * keygen.c (keygen_add_key_expire): Ditto.
9431         (ask_expire_interval): New and changed all local function to use
9432         this instead.
9433         (keygen_add_key_expire): Opaque should now be a public key;
9434         changed all callers.
9436         * parse.packet.c (parse): use skip_rest to skip packets.
9438         * keyedit.c (keyedit_menu): New arg for cmdline cmds.
9440 Wed Nov 18 20:33:50 1998  Werner Koch  (wk@isil.d.shuttle.de)
9442         * trustdb.c (check_trustdb): Now rechecks all gived userids.
9443         (collect_paths): Some fixes.
9444         (upd_pref_records): Skips empty items, evaluate all items.
9446         * parse-packet.c (dump_sig_subpkt): Better listing of prefs.
9447         (skip_packet): Now knows about marker packet
9449         * g10.c: removed cmd "--edit-sig".
9451         * pubring.asc: Updated.
9453 Sat Nov 14 14:01:29 1998  Werner Koch  (wk@isil.d.shuttle.de)
9455         * g10.c (main): Changed syntax of --list-trust-path
9456         * trustdb.c (list_trust_path): Replaced max_depth by
9457         opt.max_cert_depth
9459 Fri Nov 13 07:39:58 1998  Werner Koch  <werner.koch@guug.de>
9461         * trustdb.c (collect_paths): Removed a warning message.
9462         (enum_trust_web): Removed.
9463         (enum_cert_paths): New.
9464         * pkclist.c (add_ownertrust): Changed to use enum_cert_paths.
9465         (edit_ownertrust): Now list ceritficates on request.
9466         (show_paths): New.
9468 Wed Nov 11 18:05:44 1998  Werner Koch  <werner.koch@guug.de>
9470         * g10.c (main): New option --max-cert-depth
9471         * tdbio.h: add new fields to ver and dir record.
9472         * tdbio.c: read/write/dump of these fields.
9473         (tdbio_db_matches_options): New.
9474         * trustdb.c: replaced MAC_CERT_DEPTH by opt.max_cert_depth.
9475         (do_check): cache validity and changed other functions
9476         to reset the cached value.
9478         * keylist.c (list_one): Now lists the ownertrust.
9479         * mainproc.c (list_node): Ditto.
9481 Tue Nov 10 10:08:59 1998  Werner Koch  (wk@isil.d.shuttle.de)
9483         * g10.c (g10_exit): Now looks at the new g10_errors_seen.
9484         * mainproc.c (check_sig_and_print): Sets g10_errors_seen.
9486         * *.c : i18n many more strings.
9488         * ringedit.c (locate_keyblock_by_keyid): Add HAVE_LIBGDBM
9489         (locate_keyblock_by_fpr): Ditto.
9491         * g10.c (main): removed unsused "int errors".
9492         (main): Add new option --charset.
9494         * g10.c (main): special message for the unix newbie.
9496 Mon Nov  9 07:17:42 1998  Werner Koch  <werner.koch@guug.de>
9498         * getkey.c (finish_lookup): Kludge to prefere algo 16.
9500         * trustdb.c (new_lid_table): Clear cached item.
9502         * status.c (cpr_get_utf8): New.
9503         * pkclist.c (build_pk_list): Uses this.
9505 Sun Nov  8 17:20:39 1998  Werner Koch  (wk@isil.d.shuttle.de)
9507         * mainproc.c (check_sig_and_print): Why did I use strlen()-1
9508         in the printf? - This truncated the TZ.
9510 Sat Nov  7 15:57:28 1998  me,,,  (wk@tobold)
9512         * getkey.c (lookup): Changes to support a read_next.
9513         (get_pubkey): Fixed a memory leak.
9515         * keylist.c (list_one): Now lists all matching user IDs.
9517 Tue Nov  3 16:19:21 1998  Werner Koch  (wk@isil.d.shuttle.de)
9519         * keygen.c (ask_user_id): Now converted to UTF-8
9521         * g10.c (main): Kludge for pgp clearsigs and textmode.
9523 Fri Oct 30 16:40:39 1998  me,,,  (wk@tobold)
9525         * signal.c (block_all_signals): New.
9526         (unblock_all_signals): New
9527         * tdbio.c (tdbio_end_transaction): Now blocks all signals.
9529         * trustdb.c (new_lid_table): Changed the representation of the
9530         former local_lid_info stuff.
9532         * trustdb.c (update_trust_record): Reorganized the whole thing.
9533         * sig-check.c (check_key_signature): Now handles class 0x28
9536 Wed Oct 28 18:56:33 1998  me,,,  (wk@tobold)
9538         * export.c (do_export): Takes care of the exportable sig flag.
9540 Tue Oct 27 14:53:04 1998  Werner Koch  (wk@isil.d.shuttle.de)
9542         * trustdb.c (update_trust_record): New "fast" parameter.
9544 Sun Oct 25 19:32:05 1998  Werner Koch  (wk@isil.d.shuttle.de)
9546         * openfile.c (copy_options_File): New.
9547         * ringedit.c (add_keyblock_resource): Creates options file
9548         * tdbio.c (tdbio_set_dbname): Ditto.
9550 Sat Oct 24 14:10:53 1998  brian moore <bem@cmc.net>
9552         * mainproc.c (proc_pubkey_enc): Don't release the DEK
9553         (do_proc_packets): Ditto.
9555 Fri Oct 23 06:49:38 1998  me,,,  (wk@tobold)
9557         * keyedit.c (keyedit_menu): Comments are now allowed
9559         * trustdb.c: Rewrote large parts.
9562 Thu Oct 22 15:56:45 1998  Michael Roth  (mroth@nessie.de)
9564         * encode.c: (encode_simple): Only the plain filename without
9565         a given directory is stored in generated packets.
9566         (encode_crypt): Ditto.
9568         * sign.c: (sign_file) Ditto.
9571 Thu Oct 22 10:53:41 1998  Werner Koch  (wk@isil.d.shuttle.de)
9573         * trustdb.c (update_trust_record): Add new optional arg.
9575         * import.c (import_keys): Add statistics output
9576         * trustdb.c (update_trustdb): Ditto.
9577         (insert_trustdb): Ditto.
9579         * tdbio.c (tdbio_begin_transaction): New.
9580         (tdbio_end_transaction): New.
9581         (tdbio_cancel_transaction): New.
9583         * g10.c (main): New option --quit.
9585         * trustdb.c (check_hint_sig): No tests for user-id w/o sig.
9586         This caused an assert while checking the sigs.
9588         * trustdb.c (upd_sig_record): Splitted into several functions.
9590         * import.c (import_keys): New arg "fast".
9591         * g10.c (main): New command --fast-import.
9593 Wed Oct 21 18:19:36 1998  Michael Roth <mroth@nessie.de>
9595         * ringedit.c (add_keyblock_resource): Directory is now created.
9596         * tdbio.c (tdbio_set_dbname): New info message.
9598 Wed Oct 21 11:52:04 1998  Werner Koch  (wk@isil.d.shuttle.de)
9600         * trustdb.c (update_trustdb): released keyblock in loop.
9602         * keylist.c (list_block): New.
9603         (list_all): Changed to use list_block.
9605         * trustdb.c: Completed support for GDBM
9607         * sign.c (only_old_style): Changed the way force_v3 is handled
9608         (sign_file): Ditto.
9609         (clearsign_file): Ditto.
9611         * keygen.c (has_invalid_email_chars): Splitted into mailbox and
9612         host part.
9614         * keylist.c (list_one): Add a merge_keys_and_selfsig.
9615         * mainproc.c (proc_tree): Ditto.
9617 Sun Oct 18 11:49:03 1998  Werner Koch  (wk@isil.d.shuttle.de)
9619         * sign.c (only_old_style): Add option force_v3_sigs
9620         (sign_file): Fixed a bug in sig->version
9621         (clearsign_file): Ditto.
9623         * parse-packet.c (dump_sig_subpkt): New
9625         * keyedit.c (menu_expire): New.
9626         * free-packet.c (cmp_signatures): New
9629 Sat Oct 17 10:22:39 1998  Werner Koch  (wk@isil.d.shuttle.de)
9631         * armor.c: changed output line length from 72 to 64.
9633         * keyedit.c (fix_keyblock): New.
9635 Fri Oct 16 10:24:47 1998  Werner Koch  (wk@isil.d.shuttle.de)
9637         * trustdb.c: Rewrote most.
9638         * tdbio.c: Add cache and generalized hash tables.
9640         * options.h (ENABLE_COMMENT_PACKETS): New but undef'ed.
9641         * encode.c, sign.c, keygen.c: Disabled comment packets.
9642         * export.c (do_export): Comment packets are never exported,
9643         except for those in the secret keyring.
9645         * g10.c (main): Removed option do-no-export-rsa; should be
9646         be replaced by a secpial tool.
9647         * export.c (do_export): Removed the code for the above option.
9649         * armor.c (find_header): Support for new only_keyblocks.
9650         * import.c (import_keys): Only looks for keyblock armors.
9652         * packet.h: replaced valid_days by expiredate and changed all users.
9653         * build-packet.c (do_public_key): calculates valid-days
9654         (do_secret_key): Ditto.
9655         * parse-packet.c (parse_key): expiredate is calucated from the
9656         valid_period in v3 packets.
9657         * keyid.c (do_fingerprint_md): calculates valid_dates.
9659         * keygen.c (add_key_expire): fixed key expiration time for v4 packets.
9661         * armor.c (find_header): A LF in the first 28 bytes
9662         was skipped for non-armored data.
9664 Thu Oct  8 11:35:51 1998  Werner Koch  (wk@isil.d.shuttle.de)
9666         * armor.c (is_armored): Add test on old comment packets.
9668         * tdbio.c (tdbio_search_dir_bypk): fixed memory leak.
9670         * getkey.c: Changed the caching algorithms.
9672 Wed Oct  7 19:33:28 1998  Werner Koch  (wk@isil.d.shuttle.de)
9674         * kbnodes.c (unused_nodes): New.
9676 Wed Oct  7 11:15:36 1998  Werner Koch  (wk@isil.d.shuttle.de)
9678         * keyedit.c (sign_uids): Fixed a problem with SK which could caused
9679         a save of an unprotected key.
9680         (menu_adduid): Ditto.
9682         * keyedit.c (keyedit_menu): Prefs are now correctly listed for
9683         new user ids.
9685         * trustdb.c (update_trust_record): New.
9686         (insert_trust_record): Now makes use of update_trust_record.
9688 Tue Oct  6 16:18:03 1998  Werner Koch  (wk@isil.d.shuttle.de)
9690         * trustdb.c (read_record): replaces most of the tdbio_read_records.
9691         (write_record): Ditto.
9693 Sat Oct  3 11:01:21 1998  Werner Koch  (wk@isil.d.shuttle.de)
9695         * keygen.c (ask_alogo): enable ElGamal enc-only only for addmode.
9697 Wed Sep 30 10:15:33 1998  Werner Koch  (wk@isil.d.shuttle.de)
9699         * import.c (import_one): Fixed update of wrong keyblock.
9701 Tue Sep 29 08:32:08 1998  me,,,  (wk@tobold)
9703         * mainproc.c (proc_plaintext): Display note for special filename.
9704         * plaintext.c (handle_plaintext): Suppress output of special file.
9706 Mon Sep 28 12:57:12 1998  Werner Koch  (wk@isil.d.shuttle.de)
9708         * g10.c (verify_own_keys): Add warning if a key is not protected.
9710         * passphrase (hash_passphrase): Fixed iterated+salted mode and
9711         setup for keysizes > hashsize.
9713         * g10.c (main): New options: --s2k-{cipher,digest,mode}.
9715 Fri Sep 25 09:34:23 1998  Werner Koch  (wk@isil.d.shuttle.de)
9717         * g10.c: Chnaged some help texts.
9719 Tue Sep 22 19:34:39 1998  Werner Koch  (wk@isil.d.shuttle.de)
9721         * passphrase.c (read_passphrase_from_fd): fixed bug for long
9722         passphrases.
9724 Mon Sep 21 11:28:05 1998  Werner Koch  (wk@(none))
9726         * getkey.c (lookup): Add code to use the sub key if the primary one
9727         does not match the usage.
9729         * armor.c (armor_filter): New error message: no valid data found.
9730         (radix64_read): Changes to support multiple messages.
9731         (i18n.h): New.
9732         * mainproc.c (add_onepass_sig): bug fix.
9734 Mon Sep 21 08:03:16 1998  Werner Koch  (wk@isil.d.shuttle.de)
9736         * pkclist.c (do_we_trust): Add keyid to most messages.
9738         * passphrase.c (read_passphrase_from_fd): New.
9739         (have_static_passphrase): New
9740         (get_passphrase_fd): Removed.
9741         (set_passphrase_fd): Removed.
9742         * g10.c (main): passphrase is now read here.
9744         * keyedit.c (keyedit_menu): "help" texts should now translate fine.
9746 Mon Sep 21 06:40:02 1998  Werner Koch  (wk@isil.d.shuttle.de)
9748         * encode.c (encode_simple): Now disables compression
9749         when --rfc1991 is used.
9750         (encode_crypt): Ditto.
9752 Fri Sep 18 16:50:32 1998  Werner Koch  (wk@isil.d.shuttle.de)
9754         * getkey.c (merge_key_and_selfsig): New.
9756 Fri Sep 18 10:20:11 1998  Werner Koch  (wk@isil.d.shuttle.de)
9758         * pkclist.c (select_algo_from_prefs): Removed 3DES kludge.
9760         * seskey.c (make_session_key): Fixed SERIOUS bug introduced
9761         by adding the weak key detection code.
9763         * sign.c (sign_file): Changed aremor header in certain cases.
9765 Tue Sep 15 17:52:55 1998  Werner Koch  (wk@isil.d.shuttle.de)
9767         * mainproc.c (check_sig_and_print): Replaced ascime by asctimestamp.
9769 Mon Sep 14 11:40:52 1998  Werner Koch  (wk@isil.d.shuttle.de)
9771         * seskey.c (make_session_key): Now detects weak keys.
9773         * trustdb (clear_trust_checked_flag): New.
9775         * plaintext.c (handle_plaintext): Does no anymore suppress CR from
9776         cleartext signed messages.
9778 Sun Sep 13 12:54:29 1998  Werner Koch  (wk@isil.d.shuttle.de)
9780         * trustdb.c (insert_trust_record): Fixed a stupid bug in the free
9781         liunked list loops.
9783 Sat Sep 12 15:49:16 1998  Werner Koch  (wk@isil.d.shuttle.de)
9785         * status.c (remove_shmid): New.
9786         (init_shm_comprocess): Now sets permission to the real uid.
9788 Wed Sep  9 11:15:03 1998  Werner Koch  (wk@isil.d.shuttle.de)
9790         * packet.h (PKT_pubkey_enc): New flah throw_keyid, and add logic to
9791         implement it.
9792         * g10.c (main): New Option --throw-keyid
9794         * getkey.c (enum_secret_keys): Add new ar and changed all callers.
9796 Tue Sep  8 20:04:09 1998  Werner Koch  (wk@isil.d.shuttle.de)
9798         * delkey.c (delete_key): Moved from keyedit.c.
9800 Mon Sep  7 16:37:52 1998  Werner Koch  (wk@isil.d.shuttle.de)
9802         * build-packet.c (calc_length_header): New arg new_ctb to correctly
9803         calculate the length of new style packets.
9805         * armor.c (is_armored): Checks for symkey_enc packets.
9807         * pkclist.c (select_algo_from_prefs): 3DEs substitute is now CAST5.
9809 Tue Aug 11 17:54:50 1998  Werner Koch  (wk@isil.d.shuttle.de)
9811         * build-packet.c (do_secret_key): Fixed handling of old keys.
9813         * getkey.c (compare_name): Fixed exact and email matching
9815         * openfile.c (open_outfile): Changed arguments and all callers.
9817 Tue Aug 11 09:14:35 1998  Werner Koch  (wk@isil.d.shuttle.de)
9819         * encode.c (encode_simple): Applied option set-filename and comment.
9820         (encode_crypt): Ditto.
9821         * sign.c (sign_file): Ditto.
9822         * armor.c (armor_filter): Applied option comment.
9824         * encode.c (encode_crypt): Moved init_packet to the begin.
9825         (encode_simple): add an init_packet().
9827         * comment (write_comment): Now enforces a hash sign as the 1st byte.
9829         * import.c (import_one): Add explanation for "no user ids".
9831         * compress.c (do_uncompress): Applied Brian Warner's patch to support
9832         zlib 1.1.3 etc.
9834         * trustdb.c (check_trust): Fixed a problem after inserting new keys.
9836         * getkey (lookup): do not return the primary key if usage is given
9837         (lookup_sk): Ditto and take usage into account.
9839         * status.c (cpr_get_answer_is_yes): add display_help.
9841 Mon Aug 10 10:11:28 1998  Werner Koch  (wk@isil.d.shuttle.de)
9843         * getkey.c (lookup_sk): Now always returns the primary if arg
9844         primary is true.
9845         (lookup): Likewise.
9846         (get_pubkey_byname): Now returns the primary key
9847         (get_seckey_byname): Ditto.
9850 Mon Aug 10 08:34:03 1998  Werner Koch  (wk@isil.d.shuttle.de)
9852         * keyid.c (pubkey_letter): ELG_E is now a small g.
9854 Sat Aug  8 17:26:12 1998  Werner Koch  (wk@isil.d.shuttle.de)
9856         * openfile (overwrite_filep): Changed semantics and all callers.
9858 Sat Aug  8 12:17:07 1998  Werner Koch  (wk@isil.d.shuttle.de)
9860         * status.c (display_help): New.
9862 Thu Aug  6 16:30:41 1998  Werner Koch,mobil,,,  (wk@tobold)
9864         * seskey.c (encode_session_key): Now uses get_random_bits().
9866 Thu Aug  6 07:34:56 1998  Werner Koch,mobil,,,  (wk@tobold)
9868         * ringedit.c (keyring_copy): No more backupfiles for
9869         secret keyrings and add additional warning in case of
9870         a failed secret keyring operation.
9872 Wed Aug  5 11:54:37 1998  Werner Koch  (wk@isil.d.shuttle.de)
9874         * g10.c (check_opts): Moved to main.  Changed def_cipher_algo
9875         semantics and chnaged all users.
9877         * pubkey-enc.c (get_sssion_key): New informational output
9878         about preferences.
9880         * parse-packet.c (parse_symkeyenc): Fixed salted+iterated S2K
9881         (parse_key): Ditto.
9882         * build-packet.c (do_secret_key): Ditto.
9883         (do_symkey_enc): Ditto.
9885 Tue Aug  4 08:59:10 1998  Werner Koch  (wk@isil.d.shuttle.de)
9887         * getkey.c (enum_secret_keys): Now returns only primary keys.
9889         * getkey (lookup): Now sets the new namehash field.
9891         * parse-packet.c (parse_sig_subpkt2): New.
9893         * sign.c (sign_file): one-pass sigs are now emiited reverse.
9894         Preference data is considered when selecting the compress algo.
9896 Wed Jul 29 12:53:03 1998  Werner Koch  (wk@isil.d.shuttle.de)
9898         * free-packet.c (copy_signature): New.
9900         * keygen.c (generate_subkeypair): rewritten
9901         * g10.c (aKeyadd): Removed option --add-key
9903 Mon Jul 27 10:37:28 1998  Werner Koch  (wk@isil.d.shuttle.de)
9905         * seckey-cert.c (do_check): Additional check on cipher blocksize.
9906         (protect_secret_key): Ditto.
9907         * encr-data.c: Support for other blocksizes.
9908         * cipher.c (write_header): Ditto.
9910 Fri Jul 24 16:47:59 1998  Werner Koch  (wk@isil.d.shuttle.de)
9912         * kbnode.c (insert_kbnode): Changed semantics and all callers.
9913         * keyedit.c : More or less a complete rewrite
9915 Wed Jul 22 17:10:04 1998  Werner Koch  (wk@isil.d.shuttle.de)
9917         * build-packet.c (write_sign_packet_header): New.
9919 Tue Jul 21 14:37:09 1998  Werner Koch  (wk@isil.d.shuttle.de)
9921         * import.c (import_one): Now creates a trustdb record.
9923         * g10.c (main): New command --check-trustdb
9925 Mon Jul 20 11:15:07 1998  Werner Koch  (wk@isil.d.shuttle.de)
9927         * genkey.c (generate_keypair): Default key is now DSA with
9928         encryption only ElGamal subkey.
9930 Thu Jul 16 10:58:33 1998  Werner Koch  (wk@isil.d.shuttle.de)
9932         * keyid.c (keyid_from_fingerprint): New.
9933         * getkey.c (get_pubkey_byfprint): New.
9935 Tue Jul 14 18:09:51 1998  Werner Koch  (wk@isil.d.shuttle.de)
9937         * keyid.c (fingerprint_from_pk): Add argument and changed all callers.
9938         (fingerprint_from_sk): Ditto.
9940 Tue Jul 14 10:10:03 1998  Werner Koch  (wk@isil.d.shuttle.de)
9942         * plaintext.c (handle_plaintext): Now returns create error if
9943         the file could not be created or the user responded not to overwrite
9944         the file.
9945         * mainproc.c (proc_plaintext): Tries again if the file could not
9946         be created to check the signature without output.
9948         * misc.c (disable_core_dumps): New.
9949         * g10.c (main): disable coredumps for gpg
9951         * g10.c (MAINTAINER_OPTIONS): New to disable some options
9953 Mon Jul 13 16:47:54 1998  Werner Koch  (wk@isil.d.shuttle.de)
9955         * plaintext.c (hash_datafiles): New arg for better support of
9956         detached sigs. Changed all callers.
9957         * mainproc.c (proc_signature_packets): Ditto.
9959         * g10.c (main): New option "compress-sigs"
9960         * sig.c (sign_file): detached signatures are not anymore compressed
9961         unless the option --compress-sigs is used.
9963 Thu Jul  9 19:54:54 1998  Werner Koch  (wk@isil.d.shuttle.de)
9965         * armor.c: Fixes to allow zero length cleartext signatures
9967 Thu Jul  9 14:52:47 1998  Werner Koch  (wk@isil.d.shuttle.de)
9969         * g10.c (build_list): Now drops setuid.
9970         (main): Changed the way keyrings  and algorithms are registered .
9972 Wed Jul  8 14:17:30 1998  Werner Koch  (wk@isil.d.shuttle.de)
9974         * packet.h (PKT_public_key): Add field keyid.
9975         * parse-packet.c (parse_key): Reset the above field.
9976         * keyid.c (keyid_from_pk): Use above field as cache.
9978         * tdbio.c, tdbio.h: New
9979         * trustdb.c: Moved some functions to tdbio.c.
9980         (print_keyid): New.
9982         * pkclist.c (check_signatures_trust): New.
9984 Wed Jul  8 10:45:28 1998  Werner Koch  (wk@isil.d.shuttle.de)
9986         * plaintext.c (special_md_putc): New.
9987         (handle_plaintext): add clearsig argument
9988         * mainproc.c (proc_plaintext): detection of clearsig
9989         * sign.c (write_dased_escaped): Changed clearsig format
9991 Tue Jul  7 18:56:19 1998  Werner Koch  (wk@isil.d.shuttle.de)
9993         * armor.c (find_header): Now makes sure that there is only one
9994         empty line for clearsigs, as this is what OP now says.
9996 Mon Jul  6 13:09:07 1998  Werner Koch  (wk@isil.d.shuttle.de)
9998         * g10.c (main): New option default-secret-key
9999         * getkey.c (get_seckey_byname): support for this option.
10001 Mon Jul  6 09:03:49 1998  Werner Koch  (wk@isil.d.shuttle.de)
10003         * getkey.c (add_keyring): Keyrings are now added to end of the
10004         list of keyrings.  The first added keyringwill be created.
10005         (add_secret_keyring): Likewise.
10007         * ringedit.c (add_keyblock_resource): Files are created here.
10009         * g10.c (aNOP): Removed
10011         * getkey.c (lookup): Add checking of usage for name lookups
10012         * packet.h (pubkey_usage): Add a field which may be used to store
10013         usage capabilities.
10014         * pkclist.c (build_pk_list): getkey now called with usage arg.
10015         * skclist.c (build_sk_list): Ditto.
10017         * sign.c (clearsign_file): Fixed "Hash:" headers
10019 Sat Jul  4 13:33:31 1998  Werner Koch  (wk@isil.d.shuttle.de)
10021         * trustdb.c (list_ownertrust): New.
10022         * g10.c (aListOwnerTrust): New.
10024         * g10.c (def_pubkey_algo): Removed.
10026         * trustdb.c (verify_private_data): Removed and also the call to it.
10027         (sign_private_data): Removed.
10029 Fri Jul  3 13:26:10 1998  Werner Koch  (wk@isil.d.shuttle.de)
10031         * g10.c (aEditKey): was aEditSig. Changed usage msg.
10033         * keyedit.c: Done some i18n stuff.
10035         * g10.c (do_not_use_RSA): New.
10036         * sign.c (do_sign): Add call to above function.
10037         * encode.c (write_pubkey_enc_from_list): Ditto.
10039 Thu Jul  2 21:01:25 1998  Werner Koch  (wk@isil.d.shuttle.de)
10041         * parse-packet.c: Now is able sto store data of unknown
10042         algorithms.
10043         * free-packet.c: Support for this.
10044         * build-packet.c: Can write data of packet with unknown algos.
10046 Thu Jul  2 11:46:36 1998  Werner Koch  (wk@isil.d.shuttle.de)
10048         * parse-packet.c (parse): fixed 4 byte length header
10050 Wed Jul  1 12:36:55 1998  Werner Koch  (wk@isil.d.shuttle.de)
10052         * packet.h (new_ctb): New field for some packets
10053         * build-packet.c (build_packet): Support for new_ctb
10054         * parse-packet.c (parse): Ditto.
10056 Mon Jun 29 12:54:45 1998  Werner Koch  (wk@isil.d.shuttle.de)
10058         * packet.h: changed all "_cert" to "_key", "subcert" to "subkey".
10060         * free-packet.c (free_packet): Removed memory leak for subkeys.
10062 Sun Jun 28 18:32:27 1998  Werner Koch  (wk@isil.d.shuttle.de)
10064         * import.c (import_keys): Renamed from import_pubkeys.
10065         (import_secret_one): New.
10067         * g10.c (aExportSecret): New.
10069         * export.c (export_seckeys): New.
10071         * parse-packet.c (parse_certificate): Cleaned up.
10072         (parse_packet): Trust packets are now considered as unknown.
10073         (parse_pubkey_warning): New.
10075 Fri Jun 26 10:37:35 1998  Werner Koch  (wk@isil.d.shuttle.de)
10077         * keygen.c (has_invalid_email_chars): New.
10079 Wed Jun 24 16:40:22 1998  Werner Koch  (wk@isil.d.shuttle.de)
10081         * armor.c (armor_filter): Now creates valid onepass_sig packets
10082         with all detected hash algorithms.
10083         * mainproc.c (proc_plaintext): Now uses the hash algos as specified
10084         in the onepass_sig packets (if there are any)
10086 Mon Jun 22 11:54:08 1998  Werner Koch  (wk@isil.d.shuttle.de)
10088         * plaintext.c (handle_plaintext): add arg to disable outout
10089         * mainproc.c (proc_plaintext): disable output when in sigs_only mode.
10091 Thu Jun 18 13:17:27 1998  Werner Koch  (wk@isil.d.shuttle.de)
10093         * keygen.c: Removed all rsa packet stuff, chnaged defaults
10094         for key generation.
10096 Sun Jun 14 21:28:31 1998  Werner Koch  (wk@isil.d.shuttle.de)
10098         * misc.c (checksum_u16): Fixed a stupid bug which caused a
10099         wrong checksum calculation for the secret key protection and
10100         add a backward compatibility option.
10101         * g10.c (main): Add option --emulate-checksum-bug.
10103 Thu Jun 11 13:26:44 1998  Werner Koch  (wk@isil.d.shuttle.de)
10105         * packet.h: Major changes to the structure of public key material
10106         which is now stored in an array and not anaymore in a union of
10107         algorithm specific structures.  These is needed to make the system
10108         more extendable and makes a lot of stuff much simpler. Changed
10109         all over the system.
10111         * dsa.c, rsa.c, elg.c: Removed.
10113 Wed Jun 10 07:22:02 1998  Werner Koch,mobil,,,  (wk@tobold)
10115         * g10.c ("load-extension"): New option.
10117 Mon Jun  8 22:23:37 1998  Werner Koch  (wk@isil.d.shuttle.de)
10119         * seckey-cert.c (do_check): Removed cipher constants
10120         (protect_secret_key): Ditto.
10122 Fri May 29 10:00:28 1998  Werner Koch  (wk@isil.d.shuttle.de)
10124         * trustdb.c (query_trust_info): New.
10125         * keylist.c (list_one): Add output of trust info
10126         * mainproc (list_node): ditto.
10127         * g10.c (main): full trustdb init if -with-colons and any of the
10128         key list modes.
10130 Thu May 28 10:34:42 1998  Werner Koch  (wk@isil.d.shuttle.de)
10132         * status.c (STATUS_RSA_OR_IDEA): New.
10133         * sig-check.c (check_signature): Output special status message.
10134         * pubkey-enc.c (get_session_key): Ditto.
10136         * mainproc.c (check_sig_and_print): Changed format of output.
10137         * passpharse.c (passphrase_to_dek): Likewise.
10139 Wed May 27 13:46:48 1998  Werner Koch  (wk@isil.d.shuttle.de)
10141         * g10.c (aListSecretKeys): New option --list-secret-keys
10142         * keylist.c (std_key_list): Renamed to public_key_list.
10143         (secret_key_list): New
10144         (list_one, list_all): Add support for secret keys.
10145         * getkey.c (get_secret_keyring): New.
10146         * mainproc.c (list_node): Add option --with-colons for secret keys
10148         * sig-check.c (check_key_signature): detection of selfsigs
10149         * mainproc.c (list_node): fixed listing.
10151         * g10.c (aListSecretKeys): New option --always-trust
10152         * pkclist.c (do_we_trust): Override per option added
10154         * status.c (write_status_text): Add a prefix to every output line.
10156 Wed May 27 07:49:21 1998  Werner Koch  (wk@isil.d.shuttle.de)
10158         * g10 (--compress-keys): New.
10159         * options.h (compress_keys): New.
10160         * export.c (export_pubkeys): Only compresses with the new option.
10162 Tue May 26 11:24:33 1998  Werner Koch  (wk@isil.d.shuttle.de)
10164         * passphrase.c (get_last_passphrase): New
10165         (set_next_passphrase): New.
10166         (passphrase_to_dek): add support for the above functions.
10167         * keyedit.c (make_keysig_packet): Add sigclass 0x18,
10168         changed all callers due to a new argument.
10169         * keygen.c (write_keybinding): New
10170         (generate_subkeypair): Add functionality
10171         (ask_algo, ask_keysize, ask_valid_days): Broke out of generate_keypair
10172         (ask_user_id, ask_passphrase): Ditto.
10174 Thu May 21 11:26:13 1998  Werner Koch  (wk@isil.d.shuttle.de)
10176         * g10.c,gpgd.c (main): Does now return an int, so that egcs does
10177         not complain.
10179         * armor.c (fake_packet): Removed erro message and add a noticed
10180         that this part should be fixed.
10182         * sign.c (sign_file): Compression now comes in front of encryption.
10183         * encode.c (encode_simple): Ditto.
10184         (encode_crypt): Ditto.
10186 Tue May 19 16:18:19 1998  Werner Koch  (wk@isil.d.shuttle.de)
10188         * armor.c (fake_packet): Changed assertion to log_error
10190 Sat May 16 16:02:06 1998  Werner Koch  (wk@isil.d.shuttle.de)
10192         * build-packet.c (build_packet): Add SUBKEY packets.
10194 Fri May 15 17:57:23 1998  Werner Koch  (wk@isil.d.shuttle.de)
10196         * sign.c (hash_for): New and used in all places here.
10197         * main.h (DEFAULT_): new macros.
10198         * g10.c  (opt.def_digest_algo): Now set to 0
10200         * compress.c (init_compress): Add support for algo 1
10201         * options.h (def_compress_algo): New
10202         * g10.c (main): New option --compress-algo
10204 Fri May 15 13:23:59 1998  Werner Koch  (wk@isil.d.shuttle.de)
10206         * g10.c (print_mds): New feature to print only one hash,
10207         chnaged formatting.
10209 Thu May 14 15:36:24 1998  Werner Koch  (wk@isil.d.shuttle.de)
10211         * misc.c (trap_unaligned) [__alpha__]: New
10212         * g10.c (trap_unaligned): Add call to this to track down SIGBUS
10213         on Alphas (to avoid the slow emulation code).
10215 Wed May 13 11:48:27 1998  Werner Koch  (wk@isil.d.shuttle.de)
10217         * build-packet.c (do_signature): Support for v4 pakets.
10218         * keyedit.c (make_keysig_packet): Ditto.
10219         * build-packet.c (build_sig_subpkt_from_sig): New.
10220         (build_sig_subpkt): New.
10222         * elg.c (g10_elg_sign): removed keyid_from_skc.
10223         * dsa.c (g10_dsa_sign): Ditto.
10224         * rsa.c (g10_rsa_sign): Ditto.
10225         * keyedit.c (make_keysig_packet): Add call to keyid_from_skc
10227         * sign.c (clearsign_file): Support for v4 signatures.
10228         (sign_file): Ditto.
10230 Wed May  6 09:31:24 1998  Werner Koch  (wk@isil.d.shuttle.de)
10232         * parse-packet.c (do_parse): add support for 5 byte length leader.
10233         (parse_subpkt): Ditto.
10234         * build-packet.c (write_new_header): Ditto.
10236         * packet.h (SIGSUBPKT_): New constants.
10237         * parse-packet.c (parse_sig_subpkt): Changed name, made global,
10238         and arg to return packet length, chnaged all callers
10241 Tue May  5 22:11:59 1998  Werner Koch  (wk@isil.d.shuttle.de)
10243         * keygen.c (gen_dsa): New.
10244         * build_packet.c (do_secret_cert): Support for DSA
10246 Mon May  4 19:01:25 1998  Werner Koch  (wk@isil.d.shuttle.de)
10248         * compress.c: doubled buffer sizes
10249         * parse-packet.c (do_plaintext): now uses iobuf_read/write.
10251 Mon May  4 09:35:53 1998  Werner Koch  (wk@isil.d.shuttle.de)
10253         * seskey.c (encode_md_value): Add optional argument hash_algo,
10254         changed all callers.
10256         * passphrase.c (make_dek_from_passphrase): Removed
10257         * (get_passhrase_hash): Changed name to passphrase_to_dek, add arg,
10258         changed all callers.
10260         * all: Introduced the new ELG identifier and added support for the
10261         encryption only one (which is okay to use by GNUPG for signatures).
10263 Sun May  3 17:50:26 1998  Werner Koch  (wk@isil.d.shuttle.de)
10265         * packet.h (PKT_OLD_COMMENT): New name for type 16.
10266         * parse-packet.c (parse_comment): Now uses type 61
10268 Fri May  1 12:44:39 1998  Werner Koch,mobil,,,  (wk@tobold)
10270         * packet.h (count): Chnaged s2k count from byte to u32.
10271         * seckey-cert.c (do_check): Changed s2k algo 3 to 4, changed
10272         reading of count.
10273         * build-packet.c (do_secret_cert): ditto.
10274         * parse-packet.c (parse_certificate): ditto.
10276         * parse-packet.c (parse_symkeyenc): New.
10277         * build-packet.c (do_symkey_enc): New.
10279 Thu Apr 30 16:33:34 1998  Werner Koch  (wk@isil.d.shuttle.de)
10281         * sign.c (clearsign_file): Fixed "Hash: " armor line.
10283 Tue Apr 28 14:27:42 1998  Werner Koch  (wk@isil.d.shuttle.de)
10285         * parse-packet.c (parse_subpkt): Some new types.
10287 Mon Apr 27 12:53:59 1998  Werner Koch  (wk@isil.d.shuttle.de)
10289         * g10.c (main): Add option --skip-verify.
10290         * mainproc.c (check_sig_and_print): Ditto.
10292         * g10.c (print_mds): Add output for Tiger.
10294         * sign.c (sign_file): Now uses partial length headers if used
10295         in canonical textmode (kludge to fix a bug).
10297         * parse-packet.c (parse_certificate): Changed BLOWFISH id.
10298         * pubkey-enc.c (get_session_key): Ditto.
10299         * seskey.c (make_session_key): Ditto.
10300         * seckey-cert.c (protect_secret_key,do_check): Add BLOWFISH160.
10302 Fri Apr 24 17:38:48 1998  Werner Koch,mobil,,,  (wk@tobold)
10304         * sig-check.c (check_key_signature): Add sig-class 0x14..0x17
10305         * keyedit.c (sign-key): Some changes to start with support of
10306         the above new sig-classes.
10308 Wed Apr 22 09:01:57 1998  Werner Koch,mobil,,,  (wk@tobold)
10310         * getkey.c (compare_name): add email matching
10312 Tue Apr 21 16:17:12 1998  Werner Koch,mobil,,,  (wk@tobold)
10314         * armor.c (armor_filter): fixed missing last LF before CSUM.
10316 Thu Apr  9 11:35:22 1998  Werner Koch  (wk@isil.d.shuttle.de)
10318         * seckey-cert.c (do_check): New; combines all the check functions
10319         into one.
10321         * sign.c: removed all key management functions
10322         * keyedit.c: New.
10324 Thu Apr  9 09:49:36 1998  Werner Koch  (wk@isil.d.shuttle.de)
10326         * import.c (chk_self_sigs): Changed an error message.
10328 Wed Apr  8 16:19:39 1998  Werner Koch  (wk@isil.d.shuttle.de)
10330         * packet.h: packet structs now uses structs from the pubkey,
10331         removed all copy operations from packet to pubkey structs.
10333 Wed Apr  8 13:40:33 1998  Werner Koch  (wk@isil.d.shuttle.de)
10335         * trustdb.c (verify_own_certs): Fixed "public key not found".
10337         * getkey.c (key_byname): New, combines public and secret key search.
10339         * pkclist.c (build_pkc_list): Add new arg usage, changed all callers.
10340         * skclist.c (build_skc_list): Likewise.
10342         * ringedit.c (find_keyblock, keyring_search2): Removed.
10344 Wed Apr  8 09:47:21 1998  Werner Koch  (wk@isil.d.shuttle.de)
10346         * sig-check.c (do_check): Applied small fix from Ulf Möller.
10348 Tue Apr  7 19:28:07 1998  Werner Koch  (wk@isil.d.shuttle.de)
10350         * cipher.c, encr-data.c, seckey-cert.c: Now uses cipher_xxxx
10351         functions instead of blowfish_xxx or cast_xxx
10353 Tue Apr  7 11:04:02 1998  Werner Koch  (wk@isil.d.shuttle.de)
10355         * Makefile.am (g10maint.o): Changed the way it is created.
10357 Mon Apr  6 11:17:08 1998  Werner Koch  (wk@isil.d.shuttle.de)
10359         * misc.c: New.
10360         * keygen.c (checksum,checksum_u16,checksum_mpi): Moved to misc.c
10361         * seckey-cert.c: Kludge for wrong ELG checksum implementation.
10363 Sat Apr  4 20:07:01 1998  Werner Koch  (wk@isil.d.shuttle.de)
10365         * cipher.c (cipher_filter): Support for CAST5
10366         * encr-data.c (decode_filter): Ditto.
10367         (decrypt_data): Ditto.
10368         * seskey.c (make_session_key): Ditto.
10369         * seckey-cert.c (check_elg, check_dsa): Ditto,
10370         (protect_secret_key): Ditto.
10371         * pubkey-enc.c (get_session_key): Ditto.
10372         * passphrase.c (hash_passphrase): Ditto.
10374 Thu Apr  2 20:22:35 1998  Werner Koch  (wk@isil.d.shuttle.de)
10376         * gpgd.c: New
10378 Thu Apr  2 10:38:16 1998  Werner Koch  (wk@isil.d.shuttle.de)
10380         * keygen.c (generate_keypair): Add valid_days stuff.
10381         * trustdb.c (check_trust): Add check for valid_days.
10383 Wed Apr  1 16:15:58 1998  Werner Koch  (wk@isil.d.shuttle.de)
10385         * keygen.c (generate_keypair): Addional question whether the
10386         selected large keysize is really needed.
10388 Wed Apr  1 15:56:33 1998  Werner Koch  (wk@isil.d.shuttle.de)
10390         * seckey-cert.c (protect_secret_key): merged protect_xxx to here.
10392 Wed Apr  1 10:34:46 1998  Werner Koch  (wk@isil.d.shuttle.de)
10394         * Makefile.am (g10maint.c): Changed creation rule, so that it works
10395         on FreeBSD (missing CFLAGS).
10397         * parse-packet.c (parse_subkey): Removed.
10399 Thu Mar 19 15:22:36 1998  Werner Koch  (wk@isil.d.shuttle.de)
10401         * ringedit.c (keyring_enum): Fixed problem with reading too
10402         many packets. Add support to read secret keyrings.
10404         * getkey.c (scan_keyring): Removed
10405         (lookup): New to replace scan_keyring.
10406         (scan_secret_keyring): Removed.
10407         (lookup_skc): New.
10409 Wed Mar 18 11:47:34 1998  Werner Koch  (wk@isil.d.shuttle.de)
10411         * ringedit.c (enum_keyblocks): New read mode 11.
10413         * keyid.c (elg_fingerprint_md): New and changed all other functions
10414         to call this if the packet version is 4 or above.
10416 Tue Mar 17 20:46:16 1998  Werner Koch  (wk@isil.d.shuttle.de)
10418         * parse-packet.c (parse_certificate): Add listing support for subkeys.
10420 Tue Mar 17 20:32:22 1998  Werner Koch  (wk@isil.d.shuttle.de)
10422         * armor.c (is_armored): Allow marker packet.
10424 Thu Mar 12 13:36:49 1998  Werner Koch  (wk@isil.d.shuttle.de)
10426         * trustdb.c (check_trust): Checks timestamp of pubkey.
10427         * sig-check. (do_check): Compares timestamps.
10429 Tue Mar 10 17:01:56 1998  Werner Koch  (wk@isil.d.shuttle.de)
10431         * g10.c (main): Add call to init_signals.
10432         * signal.c: New.
10434 Mon Mar  9 12:43:42 1998  Werner Koch  (wk@isil.d.shuttle.de)
10436         * dsa.c: New
10437         * packet.h, free-packet.c, parse-packet.c : Add support for DSA
10438         * sig-check.c, getkey.c, keyid.c, ringedit.c: Ditto.
10439         * seckey-cert.c: Ditto.
10441         * packet.h : Moved .digest_algo of signature packets to outer
10442         structure. Changed all references
10444 Sun Mar  8 13:06:42 1998  Werner Koch  (wk@isil.d.shuttle.de)
10446         * openfile.c : Support for stdout filename "-".
10448         * mainproc.c (check_sig_and_print): Enhanced status output:
10449         * status.c (write_status_text): New.
10451 Fri Mar  6 16:10:54 1998  Werner Koch  (wk@isil.d.shuttle.de)
10453         * kbnode.c (clone_kbnode): Fixed private_flag.
10455         * mainproc.c (list_node): Output of string "Revoked" as user-id.
10457 Fri Mar  6 14:26:39 1998  Werner Koch  (wk@isil.d.shuttle.de)
10459         * g10.c (main): Add userids to "-kv" and cleaned up this stuff.
10461 Fri Mar  6 12:45:58 1998  Werner Koch  (wk@isil.d.shuttle.de)
10463         * g10.c (main): Changed semantics of the list-... commands
10464         and added a new one. Removed option "-d"
10466         * decrypt.c: New.
10468         * trustdb.c (init_trustdb): Autocreate directory only if it ends
10469         in "/.gnupg".
10471 Thu Mar  5 12:12:11 1998  Werner Koch  (wk@isil.d.shuttle.de)
10473         * mainproc.c (do_proc_packets): New. Common part of proc_packet.
10474         (proc_signature_packets): special version to handle signature data.
10475         * verify.c: New.
10476         * g10.c (aVerify): New.
10477         * plaintext.c (hash_datafiles): New.
10478         * compress.c (handle_compressed): Add callback arg, changed caller.
10480 Thu Mar  5 10:20:06 1998  Werner Koch  (wk@isil.d.shuttle.de)
10482         * g10.c: Is nom the common source for gpg and gpgm
10483         * g10maint.c: Removed
10484         * Makefile.am: Add rule to build g10maint.c
10486 Thu Mar  5 08:43:59 1998  Werner Koch  (wk@isil.d.shuttle.de)
10488         * g10.c (main): Changed the way clear text sigs are faked.
10490 Wed Mar  4 19:47:37 1998  Werner Koch  (wk@isil.d.shuttle.de)
10492         * g10maint.c (aMuttKeyList): New
10493         * keylist.c: New.
10495 Wed Mar  4 17:20:33 1998  Werner Koch  (wk@isil.d.shuttle.de)
10497         * getkey.c (get_pubkey_byname): Kludge to allow 0x prefix.
10499 Tue Mar  3 13:46:55 1998  Werner Koch  (wk@isil.d.shuttle.de)
10501         * g10maint.c (main): New option --gen-random.
10503 Tue Mar  3 09:50:08 1998  Werner Koch  (wk@isil.d.shuttle.de)
10505         * g10.c (aDeleteSecretKey): New.
10506         (aEditSig): Add option "--edit-key" as synonym for "--edit-sig".
10507         (aDeleteSecretKey): New.
10508         * getkey.c (seckey_available): New.
10509         * sign.c (delete_key): Enhanced to delete secret keys, changed all
10510         callers.
10512 Mon Mar  2 21:23:48 1998  Werner Koch  (wk@isil.d.shuttle.de)
10514         * pkc_list.c (build_pkc_list): Add interactive input of user ID.
10516 Mon Mar  2 20:54:05 1998  Werner Koch  (wk@isil.d.shuttle.de)
10518         * pkclist.c (do_we_trust_pre): New.
10519         (add_ownertrust): Add message.
10520         * trustdb.c (enum_trust_web): Quick fix.
10522 Mon Mar  2 13:50:53 1998  Werner Koch  (wk@isil.d.shuttle.de)
10524         * g10.c (main): New action aDeleteKey
10525         * sign.c (delete_key): New.
10527 Sun Mar  1 16:38:58 1998  Werner Koch  (wk@isil.d.shuttle.de)
10529         * trustdb.c (do_check): No returns TRUST_UNDEFINED instead of
10530         eof error.
10532 Fri Feb 27 18:14:03 1998  Werner Koch  (wk@isil.d.shuttle.de)
10534         * armor.c (find_header): Removed trailing CR on headers.
10536 Fri Feb 27 18:02:48 1998  Werner Koch  (wk@isil.d.shuttle.de)
10538         * ringedit.c (keyring_search) [MINGW32]: Open and close file here
10539         because rename does not work on open files. Chnaged callers.
10541 Fri Feb 27 16:43:11 1998  Werner Koch  (wk@isil.d.shuttle.de)
10543         * sig-check.c (do_check): Add an md_enable.
10544         * mainproc.c (do_check_sig): Use md_open in case of detached sig
10545         (proc_tree): Take detached sigs into account.
10547 Fri Feb 27 15:22:46 1998  Werner Koch  (wk@isil.d.shuttle.de)
10549         * g10.c (main): Make use of GNUPGHOME envvar.
10550         * g10main.c (main): Ditto.
10552 Wed Feb 25 11:40:04 1998  Werner Koch  (wk@isil.d.shuttle.de)
10554         * plaintext.c (ask_for_detached_datafile): add opt.verbose to
10555         info output.
10557         * openfile.c (open_sigfile): Try also name ending in ".asc"
10559 Wed Feb 25 08:41:00 1998  Werner Koch  (wk@isil.d.shuttle.de)
10561         * keygen.c (generate_keypair): Fixed memory overflow.
10563 Tue Feb 24 15:51:55 1998  Werner Koch  (wk@isil.d.shuttle.de)
10565         * parse-packet.c (parse_certificate): Support for S2K.
10566         * build-packet.c (do_secret_cert): Ditto.
10567         * keygen.c (gen_elg): Ditto.
10568         * seckey-cert.c (check_elg): Ditto
10569         (protect_elg): Ditto.
10570         * sign.c (chnage_passphrase): Ditto.
10571         * passphrase.c (get_passphrase_hash): Support for a salt and
10572         changed all callers.
10573         (make_dek_from_passphrase): Ditto.
10575 Tue Feb 24 12:30:56 1998  Werner Koch  (wk@isil.d.shuttle.de)
10577         * build-packet.c (hash_public_cert): Disabled debug output.
10579 Fri Feb 20 17:22:28 1998  Werner Koch  (wk@isil.d.shuttle.de)
10581         * trustdb.c (init_trustdb) [MINGW32]: Removed 2nd mkdir arg.
10582         (keyring_copy) [MINGW32]: Add a remove prior to the renames.
10584 Wed Feb 18 18:39:02 1998  Werner Koch  (wk@isil.d.shuttle.de)
10586         * Makefile.am (OMIT_DEPENDENCIES): New.
10588         * rsa.c: Replaced log_bug by BUG.
10590 Wed Feb 18 13:35:58 1998  Werner Koch  (wk@isil.d.shuttle.de)
10592         * mainproc.c (do_check_sig): Now uses hash_public_cert.
10593         * parse-packet.c (parse_certificate): Removed hashing.
10594         * packet.h (public_cert): Removed hash variable.
10595         * free-packet.c (copy_public_cert, free_public_cert): Likewise.
10597         * sig-check.c (check_key_signatures): Changed semantics.
10599 Wed Feb 18 12:11:28 1998  Werner Koch  (wk@isil.d.shuttle.de)
10601         * trustdb.c (do_check): Add handling for revocation certificates.
10602         (build_sigrecs): Ditto.
10603         (check_sigs): Ditto.
10605 Wed Feb 18 09:31:04 1998  Werner Koch  (wk@isil.d.shuttle.de)
10607         * armor.c (armor_filter): Add afx->hdrlines.
10608         * revoke.c (gen_revoke): Add comment line.
10609         * dearmor.c (enarmor_file): Ditto.
10611         * sig-check.c (check_key_signature): Add handling for class 0x20.
10612         * mainproc.c : Ditto.
10614 Tue Feb 17 21:24:17 1998  Werner Koch  (wk@isil.d.shuttle.de)
10616         * armor.c : Add header lines "...ARMORED FILE .."
10617         * dearmor.c (enarmor_file): New.
10618         * g10maint.c (main): New option "--enarmor"
10620 Tue Feb 17 19:03:33 1998  Werner Koch  (wk@isil.d.shuttle.de)
10622         * mainproc.c : Changed a lot, because the packets are now stored
10623         a simple linlked list and not anymore in a complicatd tree structure.
10625 Tue Feb 17 10:14:48 1998  Werner Koch  (wk@isil.d.shuttle.de)
10627         * free_packet.c (cmp_public_certs): New.
10628         (cmp_user_ids): New.
10630         * kbnode.c (clone_kbnode): New.
10631         (release_kbnode): Add clone support.
10633         * ringedit.c (find_keyblock_bypkc): New.
10635         * sign.c (remove_keysigs): Self signatures are now skipped,
10636         changed arguments and all callers.
10638         * import.c : Add functionality.
10640 Tue Feb 17 09:31:40 1998  Werner Koch  (wk@isil.d.shuttle.de)
10642         * options.h (homedir): New option.
10643         * g10.c, g10maint.c, getkey.c, keygen.c, trustdb.c (opt.homedir): New.
10645         * trustdb.c (init_trustdb): mkdir for hoem directory
10646         (sign_private_data): Renamed "sig" to "g10.sig"
10648 Mon Feb 16 20:02:03 1998  Werner Koch  (wk@isil.d.shuttle.de)
10650         * kbnode.c (commit_kbnode): New.
10651         (delete_kbnode): removed unused first arg. Changed all Callers.
10653         * ringedit.c (keyblock_resource_name): New.
10654         (get_keyblock_handle): NULL for filename returns default resource.
10656 Mon Feb 16 19:38:48 1998  Werner Koch  (wk@isil.d.shuttle.de)
10658         * sig-check.s (check_key_signature): Now uses the supplied
10659         public key to check the signature and not any more the one
10660         from the getkey.c
10661         (do_check): New.
10662         (check_signature): Most work moved to do_check.
10664 Mon Feb 16 14:48:57 1998  Werner Koch  (wk@isil.d.shuttle.de)
10666         * armor.c (find_header): Fixed another bug.
10668 Mon Feb 16 12:18:34 1998  Werner Koch  (wk@isil.d.shuttle.de)
10670         * getkey.c (scan_keyring): Add handling of compressed keyrings.
10672 Mon Feb 16 10:44:51 1998  Werner Koch  (wk@isil.d.shuttle.de)
10674         * g10.c, g10maint.c (strusage): Rewrote.
10675         (build_list): New
10677 Mon Feb 16 08:58:41 1998  Werner Koch  (wk@isil.d.shuttle.de)
10679         * armor.c (use_armor): New.
10681 Sat Feb 14 14:30:57 1998  Werner Koch  (wk@isil.d.shuttle.de)
10683         * mainproc.c (proc_tree): Sigclass fix.
10685 Sat Feb 14 14:16:33 1998  Werner Koch  (wk@isil.d.shuttle.de)
10687         * armor.c (armor_filter): Changed version and comment string.
10688         * encode.c, sign.c, keygen.c: Changed all comment packet strings.
10690 Sat Feb 14 12:39:24 1998  Werner Koch  (wk@isil.d.shuttle.de)
10692         * g10.c (aGenRevoke): New command.
10693         * revoke.c: New.
10694         * sign.c (make_keysig_packet): Add support for sigclass 0x20.
10696 Fri Feb 13 20:18:14 1998  Werner Koch  (wk@isil.d.shuttle.de)
10698         * ringedit.c (enum_keyblocks, keyring_enum): New.
10700 Fri Feb 13 19:33:40 1998  Werner Koch  (wk@isil.d.shuttle.de)
10702         * export.c: Add functionality.
10704         * keygen.c (generate_keypair): Moved the leading comment behind the
10705         key packet.
10706         * kbnode.c (walk_kbnode): Fixed.
10708         * g10.c (main): listing armored keys now work.
10710 Fri Feb 13 16:17:43 1998  Werner Koch  (wk@isil.d.shuttle.de)
10712         * parse-packet.c (parse_publickey, parse_signature): Fixed calls
10713         to mpi_read used for ELG b.
10715 Fri Feb 13 15:13:23 1998  Werner Koch  (wk@isil.d.shuttle.de)
10717         * g10.c (main): changed formatting of help output.
10719 Thu Feb 12 22:24:42 1998  Werner Koch  (wk@frodo)
10721         * pubkey-enc.c (get_session_key): rewritten
10724  Copyright 1998,1999,2000,2001,2002,2003,2004,2005,
10725            2006,2007,2008,2009 Free Software Foundation, Inc.
10727  This file is free software; as a special exception the author gives
10728  unlimited permission to copy and/or distribute it, with or without
10729  modifications, as long as this notice is preserved.
10731  This file is distributed in the hope that it will be useful, but
10732  WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
10733  implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.