Fix example.
[gnupg.git] / g10 / ChangeLog
blob9f4119889e9ff383c952c3b7a067287076831e67
1 2009-05-06  Werner Koch  <wk@g10code.com>
3         * getkey.c (finish_lookup): Remove dead code.
5         * keyring.c (keyring_get_keyblock): Fix memory leak due to ring
6         trust packets.  Fixes bug#1034.
8 2009-04-03  Werner Koch  <wk@g10code.com>
10         * gpgv.c (main): Open keyrings readonly.
11         * keydb.c (keydb_add_resource): Add readonly flag bit.
12         (keydb_rebuild_caches): Don't act on readonly resources.
14         * keyring.c (keyring_register_filename): Add arg READONLY. 
15         (struct keyring_name): Add field READONLY.
16         (keyring_is_writable): Implement readonly feature.
17         (keyring_update_keyblock): Return GPG_ERR_EACCES for readonly
18         keyrings.
19         (keyring_insert_keyblock, keyring_delete_keyblock): 
21 2009-04-01  Werner Koch  <wk@g10code.com>
23         * gpg.c (main): Properly handle UTF8 usernames with --sign-key and
24         --lsign-key.  From 1.4, David 2008-12-21.
26 2009-03-20  David Shaw  <dshaw@jabberwocky.com>  (wk)
28         * keyring.c (rename_tmp_file): Force a fsync (via iobuf_ioctl) on
29         secret keyring files to be extra safe on filesystems that may not
30         sync data and metadata together (ext4).  Also check return code
31         from the cache invalidation to make sure we're safe over NFS and
32         similar.
34 2009-03-31  Werner Koch  <wk@g10code.com>
36         * passphrase.c (ask_passphrase): Use percent_plus_unescape.
37         * misc.c (unescape_percent_string): Remove.
39         * call-agent.c (unescape_status_string): Chnage to use
40         percent_plus_unescape.
42 2009-03-25  Werner Koch  <wk@g10code.com>
44         * mainproc.c (print_pkenc_list): Use snprintf.
46 2009-03-17  Werner Koch  <wk@g10code.com>
48         * call-agent.c (my_percent_plus_escape): Remove.
49         (agent_get_passphrase): Rewrite using percent_plus_escape.
51 2009-03-17  Daiki Ueno  <ueno@unixuser.org>
53         * passphrase.c (passphrase_get): Add extra arg REPEAT and adjust
54         callers; remove special treatment for MODE==2.
55         (passphrase_to_dek): Move --passphrase-repeat handling to
56         gpg-agent.
58         * call-agent.c (agent_get_passphrase): Add extra arg REPEAT.
59         * call-agent.h: Ditto.
61 2009-03-16  Werner Koch  <wk@g10code.com>
63         * gpg.c (my_strusage): Revert last change.  Systems w/o a gpg1 may,
64         and actually do, install gpg2 as gpg.
65         * gpgv.c (my_strusage): Ditto.
67 2009-03-14  David Shaw  <dshaw@jabberwocky.com>
69         * gpg.c (my_strusage): gpg2 and gpgv2 (not gpg and gpgv).
70         * gpgv.c (my_strusage): Same.
72         * gpgv.c (my_strusage): Fix name of program in "Syntax" line.
74 2009-02-27  Werner Koch  <wk@g10code.com>
76         * call-agent.c (agent_scd_pksign, agent_scd_pkdecrypt): First send
77         the SERIALNO command.
79 2009-02-24  Werner Koch  <wk@g10code.com>
81         * pkglue.c (pk_verify): Return an error for improper DATA instead
82         of calling BUG().
84 2009-02-09  Werner Koch  <wk@g10code.com>
86         * keylist.c (print_capabilities): Take care of cert-only keys.
87         Fixes bug#998.
88         * keyedit.c (show_key_with_all_names_colon): Print the capabilities.
90 2009-01-26  Werner Koch  <wk@g10code.com>
92         * card-util.c (card_status): Detect a Geldkarte. 
94 2009-01-13  Werner Koch  <wk@g10code.com>
96         * call-agent.c (dummy_data_cb): New.
97         (agent_learn): Use it.
98         * card-util.c (card_status): Print type of non-OpenPGP card.
99         * call-agent.h (agent_card_info_s): Add field APPTYPE.
101 2009-01-12  Werner Koch  <wk@g10code.com>
103         * getkey.c (finish_lookup): Take care of keys with a zero
104         timestamp.  Reported by Peter Gutmann.
106 2009-01-08  Werner Koch  <wk@g10code.com>
108         * misc.c (has_invalid_email_chars): Let non-ascii pass through.
110         * cpr.c [USE_SHM_COPROCESSING]: Remove this code.
112 2008-12-12  Werner Koch  <wk@g10code.com>
114         * passphrase.c (passphrase_get): Write a STATUS_ERROR.
115         * cpr.c (write_status_error): New.
117         * Makefile.am (common_source): Add rmd160.h.
119 2008-12-11  Werner Koch  <wk@g10code.com>
121         * sig-check.c (signature_check2): Change algorithm used to compute
122         the SIG_ID.
123         (check_revocation_keys): Close message digest.
125         * rmd160.c, rmd160.h: New.  Based on code from GnuPG-1.4.
126         * t-rmd160.c: New.
127         * Makefile.am: Add support to run tests.
128         * keyid.c (namehash_from_uid): Use rmd160_hash_buffer.
130 2008-12-10  Werner Koch  <wk@g10code.com>
132         * trustdb.h (NAMEHASH_HASH): Remove unsued constant.
134         * gpg.c (print_mds): Print RMD160 only is enabled.
136         * keygen.c (keygen_set_std_prefs): Include RMD160 only if
137         available.
139 2008-12-09  Werner Koch  <wk@g10code.com>
141         * gpg.c (main) [IS_DEVELOPMENT_VERSION]: Fix strusage use.
143 2008-12-09  Werner Koch  <wk@g10code.com>
145         * keygen.c (proc_parameter_file): Check that key and subkey usages
146         are allowed.
148 2008-12-09  David Shaw  <dshaw@jabberwocky.com>  (wk)
150         * trustdb.c (validate_one_keyblock): Fix the trust signature
151         calculations so that we lower the trust depth of signatures to fit
152         within the current chain, rather than discarding any signature
153         that does not fit within the trust depth.
155 2008-12-09  Werner Koch  <wk@g10code.com>
157         * keyserver.c (show_prompt): Flush stdout.
159         * gpg.c (open_info_file): Add arg BINARY and adjust callers.
161         * gpg.c (main): Call i18n_init before init_common_subsystems.
162         * gpgv.c (main): Ditto.
164         * keylist.c (set_attrib_fd): Do not close ATTRIB_FP if it is the
165         log stream. 
166         (set_attrib_fd) [W32]: Set to binary mode.
167         (dump_attribs): Flush the stream after writing.
169 2008-12-05  Werner Koch  <wk@g10code.com>
171         * call-agent.c (percent_plus_escape): Rename to
172         my_percent_plus_escape and also escape the percent character.
173         Change all callers.
175 2008-11-18  Werner Koch  <wk@g10code.com>
177         * gpg.c (build_lib_list): Remove.
178         (make_libversion): New.
179         (my_strusage): Use it.
180         * gpgv.c (make_libversion): New.
181         (my_strusage): Print libgcrypt version.
183 2008-11-13  Werner Koch  <wk@g10code.com>
185         * gpgv.c: Use new ARGPARSE macros and re-indent.
187 2008-11-11  Werner Koch  <wk@g10code.com>
189         * gpg.c (opts): Use new ARGPARSE macros for clarity.
191 2008-10-24  Werner Koch  <wk@g10code.com>
193         * keyedit.c (change_passphrase): Clear passphrase cache.
195 2008-10-20  Werner Koch  <wk@g10code.com>
197         * gpgv.c: Mark all args of the stub fucntions as unused.
199         * card-util.c (generate_card_keys): Remove unused arg SERIALNO and
200         adjust caller.
201         
202         * build-packet.c (write_sign_packet_header): Mark unused arg.
203         * gpg.c (gpg_init_default_ctrl, gpg_deinit_default_ctrl): Ditto.
204         * getkey.c (skip_unusable): Ditto.
205         (write_version): Ditto.
206         * keydb.c (keydb_locate_writable): Ditto.
207         * keyring.c (update_offset_hash_table): Ditto.
208         (keyring_lock): Ditto.
209         * misc.c (register_secured_file): Ditto.
210         (unregister_secured_file): Ditto.
211         (is_secured_file): Ditto.
212         (is_secured_filename): Ditto.
213         * parse-packet.c (parse_marker): Ditto.
214         (parse_key, parse_attribute): Ditto.
215         (parse_trust, parse_compressed, parse_mdc, parse_gpg_control): Ditto.
216         * cpr.c (progress_cb): Ditto.
217         * passphrase.c (passphrase_clear_cache): Ditto.
218         (ask_passphrase): Ditto.
219         * keyedit.c (keyedit_completion): Ditto.
220         * import.c (import_revoke_cert): Ditto.
221         (chk_self_sigs, delete_inv_parts, append_uid): Ditto.
222         (merge_sigs, merge_keysigs, append_key): Ditto.
223         * trustdb.c (list_trust_path): Ditto.
224         (enum_cert_paths, enum_cert_paths_print): Ditto.
225         * tdbdump.c (list_trustdb): Ditto.
226         * keygen.c (keygen_upd_std_prefs): Ditto.
227         (genhelp_factors): Ditto.
228         * call-agent.c (agent_scd_setattr): Ditto.
229         (agent_scd_writekey, agent_scd_change_pin, agent_scd_genkey): Ditto.
230         (agent_clear_pin_cache): Ditto.
232         * server.c (option_handler): Mark non yet used arg.
233         (input_notify, output_notify): Ditto.
234         (cmd_recipient, cmd_signer, cmd_encrypt, cmd_decrypt, cmd_verify) 
235         (cmd_sign, cmd_import, cmd_export, cmd_delkeys, do_listkeys) 
236         (cmd_genkey): Ditto.
237         * verify.c (gpg_verify): Ditto.
239 2008-10-17  Werner Koch  <wk@g10code.com>
241         * main.h (idea_cipher_warn): Use do while construct in place of an
242         empty definition.
244 2008-10-03  David Shaw  <dshaw@jabberwocky.com>
246         * main.h, mainproc.c (check_sig_and_print)
247         * keylist.c (list_keyblock_print)
248         * pkclist.c (do_edit_ownertrust)
249         * keyedit.c (menu_showphoto)
250         * photoid.c (generate_photo_id, show_photos)
251         * misc.c (pct_expando): Add %v and %V expandos so
252          that displaying photo IDs can show the attribute validity
253          tag (%v) and string (%V).  Originally by Daniel Gillmor.
255 2008-09-29  Werner Koch  <wk@g10code.com>
257         * gpg.c (main): Remove -sat kludge.  Note that we printed a
258         warning for two years.
260         * seskey.c (encode_md_value): Remove extra gcry_md_test_algo since
261         it is not needed with Libgcrypt 1.4.
262         * skclist.c (random_is_faked): Simplify.
263         * sign.c (match_dsa_hash): Remove runtime check for SHA224.
264         * gpg.c (print_mds): Use GCRY_MD_SHA224 constant.
266 2008-09-25  David Shaw  <dshaw@jabberwocky.com>
268         * keyedit.c (keyedit_menu): Fix bug where a modified keyring loses
269         its modified status after a "clean" or "minimize" that doesn't
270         need to do anything.
272 2008-09-25  Werner Koch  <wk@g10code.com>
274         * parse-packet.c (parse): Remove special treatment for compressed
275         new style packets.  Fixes bug#931.
276         
277         * card-util.c (change_pin): Support setting of the reset code.
279 2008-09-24  Werner Koch  <wk@g10code.com>
281         * call-agent.h (struct agent_card_info_s): Add field IS_V2.
282         * call-agent.c (learn_status_cb): That that field.
284         * card-util.c (change_pin): Rename first arg to UNBLOCK_v2 and use
285         it this way.
286         (card_edit): Add new command UNBLOCK.
288 2008-09-23  David Shaw  <dshaw@jabberwocky.com>
290         * pkclist.c (select_algo_from_prefs): Redo function to rank prefs
291         and pick a consensus winner across all keys.
293 2008-09-16  Werner Koch  <wk@g10code.com>
295         * card-util.c (fpr_is_ff): New.
296         (card_status): Do not print general key info for an all-ff fpr.
297         (change_login, change_private_do): Factor common code out to ...
298         (get_data_from_file): .. new.
299         (change_cert): New.
300         (card_edit): Add command "writecert".
301         * call-agent.c (writecert_parm_s): New.
302         (inq_writecert_parms, agent_scd_writecert): New.
304 2008-09-04  David Shaw  <dshaw@jabberwocky.com>
306         * keyserver.c (keyserver_import_cert): Allow keyserver URLs in
307         addition to full URLs in CERT records.
309 2008-08-11  Werner Koch  <wk@g10code.com>
311         * keygen.c (ask_expire_interval): Check for time overflow of an
312         u32.  Fixes bug #947.
314 2008-08-01  Werner Koch  <wk@g10code.com>
316         * tdbio.c (open_db) [!EROFS]: Move closing parens out of the
317         ifdef.  Reported by Ken Takusagawa.
319 2008-06-25  Marcus Brinkmann  <marcus@g10code.de>
321         * gpg.c (enum cmd_and_opt_values): Remove option
322         oEnableW32HandleTranslation.
323         (opts): Remove option --enable-w32-handle-translation.
324         (main): Remove variable w32_handle_translation.
326 2008-06-19  Werner Koch  <wk@g10code.com>
328         * gpg.c (gpgconf_list): Add "group".
330 2008-06-18  Marcus Brinkmann  <marcus@g10code.de>
332         * gpg.c (enum cmd_and_opt_values): New option
333         oEnableW32HandleTranslation.
334         (opts): New option --enable-w32-handle-translation.
335         (main): New variable w32_handle_translation to keep track of
336         option.
338 2008-06-16  Werner Koch  <wk@g10code.com>
340         * keygen.c (output_control_s): Add ASK_PASSPHRASE.
341         (read_parameter_file): Add commands %ask-passphrase and
342         %no-ask-passphrase.
344 2008-06-11  Werner Koch  <wk@g10code.com>
346         * gpg.c: Make --fixed-list-mode a dummy.
347         * options.h (struct): Removed FIXED_LIST_MODE.
348         * keyid.c (colon_strtime, colon_datestr_from_pk) 
349         (colon_datestr_from_sk, colon_datestr_from_sig) 
350         (colon_expirestr_from_sig): Remove fixed_list_mode case.
351         * keylist.c (list_keyblock_colon): Ditto.  Remove all now unsed
352         code and reindent.
354 2008-05-31  Werner Koch  <wk@g10code.com>
356         * keygen.c (ask_user_id): Change the string printed as header of
357         the user ID generation.  Use code to not break existing
358         translations.  Suggested by Eric Tetz.
360 2008-05-08  Werner Koch  <wk@g10code.com>
362         * sig-check.c (do_check_messages): Print a revocation diagnostic
363         in verbose mode.
365 2008-05-07  Werner Koch  <wk@g10code.com>
367         * gpg.c: New command --locate-keys.  New options --with-sig-list
368         and --with-sig-check.
369         * keylist.c (locate_one): New.
370         (public_key_list): Add arg LOCATE_MODE and use locate_one.
371         * getkey.c (get_pubkey_byname): Fix nodefault case.  Add option
372         RETCTX, change all callers.
373         (struct getkey_ctx_s): Add field extra_ptr;
374         (get_pubkey_end): Free it.
376 2008-04-18  Werner Koch  <wk@g10code.com>
378         * misc.c (map_cipher_openpgp_to_gcry, map_cipher_gcry_to_openpgp) 
379         (openpgp_cipher_test_algo): Add camellia-192.
380         (openpgp_cipher_blocklen): New.
381         * parse-packet.c (parse_key): Use new function here.
383 2008-04-15  David Shaw  <dshaw@jabberwocky.com>
385         * getkey.c (merge_selfsigs_subkey): If there are multiple 0x19
386         backsigs, take the most recent one.
388 2008-04-08  Werner Koch  <wk@g10code.com>
390         * options.h (opt): Add AKL_NODEFAULT and AKL_LOCAL.
391         * getkey.c (parse_auto_key_locate): Parse them.
392         (get_pubkey_byname): Implement them.  Add arg NO_AKL and use that
393         in all cases where a local key is expected.
394         * import.c (import_one): Fill in the fingerprint in all cases.
395         Use log_get_stream.
396         * keyserver.c (keyserver_import_pka): Set FPR to NULL on error.
397         Return G10ERR_NO_PUBKEY if no PKA info is available or no key URI
398         is given in the PKA record..
399         (keyserver_import_cert): Return G10ERR_NO_PUBKEY if a CERT record
400         was not found.
402         * getkey.c (get_pubkey_byname): Release FPR in the error case.
403         Continue with next mechanism on error.  Better diagnostics.
405 2008-04-07  Werner Koch  <wk@g10code.com>
407         * keyserver.c (parse_keyserver_uri): Allow a default host name.
409         * getkey.c (get_pubkey_byname): Replace sprintf by bin2hex.
411 2008-04-02  Werner Koch  <wk@g10code.com>
413         * gpg.c (main): Do not allow DSA2 with a too old Libgcrypt.
415 2008-03-26  Werner Koch  <wk@g10code.com>
417         * tdbio.c (lookup_hashtable): Make cmp args const.
418         (cmp_trec_fpr): Make FPR const.
419         (tdbio_search_trust_byfpr): Remove cast.
421 2008-03-25  Werner Koch  <wk@g10code.com>
423         * keyserver.c (parse_keyrec): Take care of char defaulting to
424         unsigned when using hextobyte.
426 2008-03-25  David Shaw  <dshaw@jabberwocky.com>  (wk)
428         * import.c (collapse_uids): Fix bug 894: possible memory
429         corruption around deduplication of user IDs.
431 2008-03-25  Werner Koch  <wk@g10code.com>
433         * parse-packet.c (parse_key): Parse a secret key encrypted with
434         Camellia.
436         * options.skel: Make the default keyserver keys.gnupg.net.
438 2008-03-18  Werner Koch  <wk@g10code.com>
440         * seckey-cert.c (do_check): Use GCRYMPI_FMT_PGP for v3 keys.
441         Reported by Petr Cerny.
443 2008-03-13  Werner Koch  <wk@g10code.com>
445         * passphrase.c (PROMPTSTRING): Change string to me more similar to
446         the X.509 prompt.
448 2008-02-26  Werner Koch  <wk@g10code.com>
450         * getkey.c (get_pubkey_byname): Fix comment.
452 2008-02-14  Werner Koch  <wk@g10code.com>
454         * call-agent.c (default_inq_cb): New.
455         (agent_learn, agent_scd_getattr, agent_scd_pksign) 
456         (agent_scd_pkdecrypt, agent_scd_change_pin, agent_scd_checkpin) 
457         (agent_get_passphrase, agent_clear_passphrase): Use new callback.
458         (inq_writekey_parms): Fall back to the new callback for other
459         inquiries. 
460         (start_agent): Tell agent that we accept pinentry notifications.
462 2008-02-11  Werner Koch  <wk@g10code.com>
464         * server.c (cmd_getinfo): New. 
465         (register_commands): Register GETINFO.
467 2008-02-09  Marcus Brinkmann  <marcus@g10code.de>
469         * gpg.c (main): New variable default_configname.  Use it if
470         save_configname is NULL (can happen if default configfile does
471         not exist).  Move default configname determination to ...
472         (get_default_configname): ... this new function.
474 2008-01-30  Werner Koch  <wk@g10code.com>
476         * keydb.c (maybe_create_keyring): Fixed last change.
477         * tdbio.c (tdbio_set_dbname): Also test for forward slash.
479 2008-01-29  Werner Koch  <wk@g10code.com>
481         * keydb.c (maybe_create_keyring): Take care of a missing slash.
482         (maybe_create_keyring) [W32]: Also test for forward slash.
484 2008-01-26  Werner Koch  <wk@g10code.com>
486         * card-util.c (get_manufacturer): Add vendor 0004.
488 2008-01-02  Werner Koch  <wk@g10code.com>
490         * gpg.c: Add --logger-file as an alias for log-file.
492 2007-12-14  Werner Koch  <wk@g10code.com>
494         * gpg.c (main): Set opt.no_homedir_creation during the first option
495         parsing pass.
497 2007-12-12  Werner Koch  <wk@g10code.com>
499         * misc.c (print_pubkey_algo_note): Print a warning if a type 20
500         key is used.
501         (openpgp_pk_test_algo, openpgp_pk_test_algo2) 
502         (openpgp_pk_algo_usage): Allow type 20 keys only in rfc2440 mode.
504 2007-12-12  David Shaw  <dshaw@jabberwocky.com>  (wk)
506         * trustdb.c (sanitize_regexp): New.  Protect against dangerous
507         regexps (malloc bombs) by force-commenting any characters aside
508         from the ones we explicitly want.
509         (check_regexp): Use it here before passing the regexp to
510         regcomp().
512 2007-12-12  Werner Koch  <wk@g10code.com>
514         * misc.c (map_cipher_openpgp_to_gcry): New.  Used to map Camellia
515         algorithms to Gcrypt.
516         (openpgp_cipher_test_algo): Call new map function.  Replace
517         all remaining calls to gcry_cipher_test_algo by a call to this.
518         (openpgp_cipher_algo_name): New.  Replace all remaining calls to
519         gcry_cipher_algo_name by a call to this.
520         (map_cipher_gcry_to_openpgp): New.
521         (string_to_cipher_algo): Use it.
522         * gpg.c (main): Print a warning if Camellia support is build in.
523         
524         * gpg.c (print_algo_names): New.  From the 1.4 branch by David.
525         (list_config): Use it here for the "ciphername" and "digestname"
526         config items so we can get a script-parseable list of the names.
528         * parse-packet.c (parse_onepass_sig): Sigclass is hex, so include
529         the 0x.
531         * sign.c (match_dsa_hash): Remove conditional builds dending on
532         USE_SHAxxx.  We don't need this becuase it can be expected that
533         libgcrypt provides it.  However we need to runtime test for SHA244
534         becuase that is only available with libgcrypt 2.4.
536 2007-12-11  Werner Koch  <wk@g10code.com>
538         * mainproc.c (proc_pubkey_enc): Allow type 20 Elgamal key for
539         decryption.
541 2007-12-10  Werner Koch  <wk@g10code.com>
543         * import.c (auto_create_card_key_stub): Do not clear the entire
544         fingerprint.  This finally makes the stub creation work.  My past
545         tests seemed to work because there was a key with a all zero
546         fingerprint available (Elgamal signing keys).
548 2007-12-08  Werner Koch  <wk@g10code.com>
550         * misc.c (openpgp_pk_algo_usage): Allow Elgamal type 20 for
551         encryption.
553 2007-12-04  Werner Koch  <wk@g10code.com>
555         * helptext.c (get_help_from_file): New.
556         (display_online_help): Use it to geting the help through a file.
557         (helptexts): Remove.
559 2007-12-03  Werner Koch  <wk@g10code.com>
561         * keygen.c (ask_key_flags): Add a translation remark and implement
562         a workaround.
564         * gpg.c (reopen_std): Moved to ../common and renamed to
565         gnupg_reopen_std.
566         
567         * gpg.c: Remove second inclusion of fcntl.h.
569 2007-11-19  Werner Koch  <wk@g10code.com>
571         * keyedit.c (keyedit_menu): String grammar fix.
573 2007-11-15  Werner Koch  <wk@g10code.com>
575         * gpg.c (main): New option --xauthority.
576         * call-agent.c (start_agent): Adjust changed start_new_gpg_agent.
578 2007-11-12  Werner Koch  <wk@g10code.com>
580         * cpr.c (do_get_from_fd): s/bool/getbool/ to overcome problems
581         with Mac OS 10.5 which seems to include stdbool.h silently.
583 2007-11-07  Werner Koch  <wk@g10code.com>
585         Replace all includes of errors.h by status.h (found in common/).
587         * status.h: Remove.
588         * status.h: Move prototypes to main.h.
589         * status.c:  Rename to ..
590         * cpr.c: .. this.
591         (get_status_string): Remove.  We take this now from common/.
593 2007-10-25  David Shaw  <dshaw@jabberwocky.com>  (wk)
595         From 1.4 (October):
597         * gpg.c (main): Add --require-cross-certification to
598         --openpgp/--rfc4880 mode.
600         * gpg.c (main): Disable --rfc2440-text and --force-v3-sigs by
601         default.  Enable --require-cross-certification by default.
602         --openpgp (--rfc4880) is the same as --rfc2440 except with
603         "--enable-dsa2 --no-rfc2440-text --escape-from-lines".
605         * misc.c (compliance_option_string, compliance_failure): Minor
606         cleanup.
608         * armor.c (is_armor_header): Comment about 4880.
610         * options.h, gpg.c (main): Add --rfc4880, and make --openpgp an
611         alias to it.  --rfc2440 now stands alone.  For now, use the old
612         2440 defaults for 4880.
613         * misc.c (compliance_option_string): Ditto.
614         
615         * keyedit.c (keyedit_menu): Use compliance_option_string() instead
616         of printing the compliance modes here.
618 2007-10-25  David Shaw  <dshaw@jabberwocky.com>  (wk)
620         From 1.4 (September):
622         * import.c (collapse_uids): Significant speedup for de-duping user
623         IDs.
625 2007-10-25  David Shaw  <dshaw@jabberwocky.com>  (wk)
627         From 1.4 (July):
628         
629         * armor.c (parse_header_line): Improve test so that the header
630         test only allows "Hash" in the signed data section.
632         * armor.c (is_armor_tag): New.  Detect if an armor header matches
633         2440bis-21.
634         (parse_header_line): Call it here, as bis-21 requires warning the
635         user (but continuing to process the message) when seeing an
636         unknown header.
638         * encode.c (encode_crypt): Missed one call to
639         setup_plaintext_name().  This is bug#809.
641         * sign.c (mk_notation_policy_etc): Expect all sigs that this is
642         called for are >=v4.
643         (write_signature_packets, make_keysig_packet): Only call it for
644         >=v4 sigs.  This allows --force-v3-sigs and --force-v4-certs to
645         enable or disable notations, policies, and keyserver URLs.  This
646         is bug#800.
648 2007-10-19  Werner Koch  <wk@g10code.com>
650         * passphrase.c (passphrase_get): Use new utf8 switching fucntions.
652 2007-09-14  Werner Koch  <wk@g10code.com>
654         * gpg.c (build_lib_list): New.
655         (my_strusage): Print lib info.
657 2007-08-27  Werner Koch  <wk@g10code.com>
659         * trustdb.c (USE_INTERNAL_REGEX): Remove support.
661 2007-08-24  Werner Koch  <wk@g10code.com>
663         * keyring.c (keyring_register_filename): Use same_file_p().
665 2007-08-21  Werner Koch  <wk@g10code.com>
667         * misc.c (openpgp_md_test_algo): Remove rfc2440bis hash algorithms.
668         (openpgp_cipher_test_algo): Likewise for algos 5 and 6.
670 2007-08-02  Werner Koch  <wk@g10code.com>
672         * gpg.c: Include gc-opt-flags.h and remove their definition here.
674 2007-07-17  Werner Koch  <wk@g10code.com>
676         * gpg.c (gpgconf_list): Declare --encrypt-to and --default-key.
678         * card-util.c (get_manufacturer): Add the unmanaged S/N range.
680 2007-07-12  Werner Koch  <wk@g10code.com>
682         * gpg.c (main): Use translate_sys2libc_fd_int when passing an int
683         value.
684         * gpgv.c (main): Ditto.
686 2007-07-05  Werner Koch  <wk@g10code.com>
688         * card-util.c (card_generate_subkey, card_store_subkey): Enable
689         the code also for GnuPG-2.
691         * keygen.c (make_backsig): Add arg TIMESTAMP.
692         (write_keybinding): Add arg TIMESTAMP, pass it to make_backsig.
693         (write_direct_sig, write_selfsigs): Add arg TIMESTAMP.
694         (gen_elg, gen_dsa, gen_rsa): Add arg TIMESTAMP.
695         (do_create): Ditto.
696         (do_generate_keypair): Use the same timestamp for key creation
697         time and all key signatures. Return an error if write_direct_sig
698         for the secret key fails.
699         (generate_subkeypair): Ditto.
700         (gen_card_key): New arg TIMESTAMP.
701         (generate_card_subkeypair): Pass current time to gen_card_key.
702         (gen_card_key_with_backup): New arg TIMESTAMP.
703         (read_parameter_file): Add option Creation-Date.
704         (parse_creation_string): New.
705         (do_generate_keypair): Use the Creation-Date if available.
706         (save_unprotected_key_to_card): Use P for P and not D.
707         * call-agent.c (agent_scd_genkey): Add arg CREATETIME.
708         * keyedit.c (menu_backsign): Use the same timestamp for all backsigs.
710 2007-06-26  Werner Koch  <wk@g10code.com>
712         * openfile.c (try_make_homedir): Support W32; use standard_homedir.
714 2007-06-25  Werner Koch  <wk@g10code.com>
716         * gpg.c, gpgv.c: Include sysutils.h.
717         (main): Replace iobuf_translate_file_handle by
718         translate_sys2libc_fd.
719         
721 2007-06-21  Werner Koch  <wk@g10code.com>
723         * main.h: Include util.h.
725         * call-agent.c (start_agent): Factored almost all code out to
726         ../common/asshelp.c.
728         * gpg.h (ctrl_t): Remove.  It is now declared in ../common/util.h.
730 2007-06-20  Werner Koch  <wk@g10code.com>
732         * misc.c (setsysinfo, trap_unaligned): Remove.  It is also in
733         common/sysutils.c.
734         (disable_core_dumps, get_session_marker): 
736         * sign.c (sleep): Remove sleep wrapper.
738 2007-06-18  Marcus Brinkmann  <marcus@g10code.de>
740         * gpg.c (gpgconf_list): Percent escape output of --gpgconf-list.
742 2007-06-14  Werner Koch  <wk@g10code.com>
744         * call-agent.c (start_agent): Use gnupg_module_name.
746 2007-06-12  Werner Koch  <wk@g10code.com>
748         * openfile.c (copy_options_file): Use gnupg_datadir.
749         * misc.c (get_libexecdir): Remove.  Changed all callers to use
750         gnupg_libexecdir.
751         * gpg.c (check_permissions): Use gnupg_libdir.
753         * gpg.c (main): Replace some calls by init_common_subsystems.
754         * gpgv.c (main): Ditto.
756 2007-06-11  Werner Koch  <wk@g10code.com>
758         * Makefile.am (needed_libs): Use libcommonstd macro.
760         * gpgv.c (main) [W32]: Call pth_init.
761         * gpg.c (main) [W32]: Call pth_init.
763 2007-06-08  Werner Koch  <wk@g10code.com>
765         * Makefile.am (gpg2_LDADD): Syntax fix.
767 2007-06-06  Werner Koch  <wk@g10code.com>
769         * passphrase.c (passphrase_get) [!ENABLE_NLS]: Do not define
770         orig_codeset.
772         * Makefile.am (gpgv2_LDADD, gpg2_LDADD): Include LDADD before
773         libgcrypt.
775         * plaintext.c (handle_plaintext): Replace eof by eof_seen as W32's
776         io.h has a symbol with that name.
778         * misc.c: Do not include dynload.h.
779         (w32_shgetfolderpath): Remove. It is now in common/homedir.c.
781         * gpgv.c (i18n_init): Remove.
782         * gpg.c (i18n_init): Remove.
783         (main): Make --load-extension a dummy
785 2007-05-19  Marcus Brinkmann  <marcus@g10code.de>
787         * passphrase.c (passphrase_get): Use PACKAGE_GT, not PACKAGE.
789         * passphrase.c (passphrase_get): Free ORIG_CODESET on error.
791 2007-05-16  Werner Koch  <wk@g10code.com>
793         * sig-check.c (check_backsig): Check the digest algorithm before
794         using it.  Fixed bug 797.
796 2007-05-09  Werner Koch  <wk@g10code.com>
798         * openfile.c (overwrite_filep, open_outfile) [W32]: Need to use
799         just "nul".  Though, I am pretty sure that some MSDOS versions
800         grok the extra /dev/.
802 2007-05-07  Werner Koch  <wk@g10code.com>
804         * openfile.c (open_outfile, overwrite_filep) [W32]: Use "/dev/nul".
806 2007-05-02  David Shaw  <dshaw@jabberwocky.com>
808         * packet.h, mainproc.c (reset_literals_seen): New function to
809         reset the literals count.
811         * verify.c (verify_one_file), decrypt.c (decrypt_messages): Call
812         it here so we allow multiple literals in --multifile mode (in
813         different files - not concatenated together).
815 2007-04-26  Marcus Brinkmann  <marcus@g10code.de>
817         * passphrase.c (passphrase_to_dek): Write missing passphrase
818         status message in case of cancellation.
820 2007-04-16  Werner Koch  <wk@g10code.com>
822         * build-packet.c (mpi_write): Made buffer a bit larger.  Reported
823         by Alexander Feigl.
825 2007-04-13  Werner Koch  <wk@g10code.com>
827         * call-agent.c (start_agent): Don't use log_error when using the
828         fallback hack to start the agent.  This is bug 782.
830 2007-04-05  David Shaw  <dshaw@jabberwocky.com>
832         From STABLE-BRANCH-1-4
834         * parse-packet.c (parse_marker): New.  Enforce that the marker
835         contains 'P', 'G', 'P', and nothing but.
836         (parse): Call it here.
837         (skip_packet): No longer need to handle marker packets here.
839 2007-03-14  David Shaw  <dshaw@jabberwocky.com>
841         From STABLE-BRANCH-1-4
843         * keyserver.c: Windows Vista doesn't grok X_OK and so fails
844         access() tests.  Previous versions interpreted X_OK as F_OK
845         anyway, so we'll just use F_OK directly.
847 2007-03-09  David Shaw  <dshaw@jabberwocky.com>
849         From STABLE-BRANCH-1-4
851         * parse-packet.c (parse_signature): It's hex.
853         * getkey.c (merge_selfsigs_subkey): Avoid listing the contents of
854         a backsig when list mode is on.  Noted by Timo Schulz.
856 2007-03-08  Werner Koch  <wk@g10code.com>
858         * plaintext.c (handle_plaintext): Add two extra fflush for stdout.
860 2007-03-08  David Shaw  <dshaw@jabberwocky.com>  (wk)
862         * keyedit.c (keyedit_menu): If we modify the keyblock (via
863         fix_keyblock() or collapse_uids()) make sure we reprocess the
864         keyblock so the flags are correct.  Noted by Robin H. Johnson.
866         * getkey.c (fixup_uidnode): Properly clear flags that don't apply
867         to us (revoked, expired) so that we can reprocess a uid.
869 2007-03-05  Werner Koch  <wk@g10code.com>
871         Converted this file to UTF-8.
872         
873         Ported David and my multiple messages changes from 1.4.7.
875         * options.h, gpg.c (main), mainproc.c (check_sig_and_print): Allow
876         multiple sig verification again as this is protected via the
877         multiple-messages code.  New option --allow-multiple-messages and
878         --no variant.
879         * status.h (STATUS_ERROR): New status code.
880         * status.c (get_status_string): Ditto.
881         * mainproc.c (proc_plaintext): Emit it if multiple messages are
882         detected. Error out if more than one plaintext packet is
883         encountered.    
884         * mainproc.c (literals_seen): New.
886 2007-02-26  Werner Koch  <wk@g10code.com>
888         * gpg.c (main): Add verify option show-primary-uid-only.
889         * options.h (VERIFY_SHOW_PRIMARY_UID_ONLY): New.
890         * mainproc.c (check_sig_and_print): Implement it.
892 2007-02-22  Werner Koch  <wk@g10code.com>
894         * encr-data.c (decrypt_data): Correctly test for unknown algorithm.
895         * import.c (check_prefs): Ditto.
896         * keyedit.c (show_prefs): Ditto.
897         * mainproc.c (proc_symkey_enc): Ditto.
899 2007-02-06  Werner Koch  <wk@g10code.com>
901         * export.c (do_export_stream): Allow reset-subkey-passwd along
902         with sexp-format.
904 2007-02-04  Werner Koch  <wk@g10code.com>
906         * parse-packet.c (parse_signature): Limit bytes read for an
907         unknown alogorithm.  Fixes Debian bug#402592.
909 2007-01-31  Werner Koch  <wk@g10code.com>
911         * verify.c (verify_signatures): Do no dereference a NULL afx.
913         * passphrase.c (passphrase_get): Set the cancel flag on all error
914         from the agent.  Fixes a bug reported by Tom Duerbusch.
916 2007-01-30  Werner Koch  <wk@g10code.com>
918         * status.c (write_status_begin_signing): New.
919         * sign.c (sign_file, sign_symencrypt_file): Call it.
920         * textfilter.c (copy_clearsig_text): Call it.
922         * call-agent.c (agent_scd_pksign): Pass --hash-rmd160 to SCD if
923         required.
925         * gpg.c (main): Let --no-use-agent and --gpg-agent-info print a
926         warning.  
927         * misc.c (obsolete_option): New.
929 2007-01-29  Werner Koch  <wk@g10code.com>
931         * pkclist.c (do_we_trust_pre): Issue a user-id-hint status code. 
933 2007-01-15  Werner Koch  <wk@g10code.com>
935         * parse-packet.c (read_protected_v3_mpi): Make sure to stop
936         reading even for corrupted packets.
937         * keygen.c (generate_user_id): Need to allocate one byte more.
938         Reported by Felix von Leitner.
940 2006-12-21  Werner Koch  <wk@g10code.com>
942         * gpg.c (main): New command --server.
943         * gpg.h (struct server_control_s, ctrl_t): New.
944         * server.c: New.
945         * verify.c (gpg_verify): New.
946         * mainproc.c (mainproc_context): Made SIGNED_DATA a structure.
947         (proc_signature_packets_by_fd): New.
948         (proc_compressed_cb): Divert depending on SIGNED_DATA.
949         * plaintext.c (hash_datafile_by_fd): New.
950         * mainproc.c (proc_tree): Use it here.
952         * verify.c (verify_signatures): Init AFX only when needed.
953         Don't leak a context on error.
954         (verify_one_file): Don't leak a context on error.
956 2006-12-07  Werner Koch  <wk@g10code.com>
958         * openfile.c (copy_options_file): Use log_info instead of
959         log_error to avoid an error return of gpg due to a missing
960         skeleton file.
962 2006-12-07  David Shaw  <dshaw@jabberwocky.com>
964         * Makefile.am: Link to iconv for jnlib dependency.
966 2006-12-05  Werner Koch  <wk@g10code.com>
968         * passphrase.c (passphrase_to_dek): Handle a Cancel request
969         correctly.  [Bug#737]
970         * mainproc.c (proc_symkey_enc): Removed workaround for bogus cancel
971         processing.
972         * encode.c (encode_simple): Distinguish error message between
973         cancel and invalid passphrase.
974         (setup_symkey): Ditto.
975         * sign.c (sign_symencrypt_file): Ditto
976         * keyedit.c (change_passphrase): Allow cancellation.
977         * keygen.c (do_ask_passphrase): New arg R_CANCELED.
978         (generate_keypair): Handle a passphrase cancellation.
979         (generate_raw_key): Ditto.
980         (generate_subkeypair): Ditto.
982 2006-12-04  Werner Koch  <wk@g10code.com>
984         * filter.h (armor_filter_context_t): New element REFCOUNT.
985         * armor.c (armor_filter): Made static.
986         (push_armor_filter, release_armor_context, new_armor_context): New.
987         (armor_filter): Release the context.
988         * gpg.c (main): Use new armor context functions and
989         push_armor_filter.
990         * export.c (do_export): Ditto.
991         * encode.c (encode_simple, encode_crypt): Ditto.
992         * decrypt.c (decrypt_message, decrypt_messages): Ditto.
993         * dearmor.c (dearmor_file, enarmor_file): Ditto.
994         * verify.c (verify_signatures, verify_one_file): Ditto.
995         * sign.c (sign_file, clearsign_file, sign_symencrypt_file): Ditto.
996         * revoke.c (gen_desig_revoke, gen_revoke): Ditto.
997         * keyserver.c (keyserver_spawn): Ditto.
998         * keygen.c (output_control_s): Turn AFX fields into pointers.
999         (read_parameter_file): Allocate and release AFX fields.
1000         (do_generate_keypair): Use push_armor_filter.
1001         * import.c (import): Replace iobuf_push_filter2 hack by the new
1002         armor context stuff.
1004 2006-12-03  Werner Koch  <wk@g10code.com>
1006         * filter.h: New element REFCOUNT.
1007         (handle_progress): Remove prototype.
1008         * progress.c (new_progress_context, release_progress_context): New.
1009         (progress_filter): Use new function to release context.  Made static.
1010         (handle_progress): Bumb reference counter.  No more check for
1011         enabled progress as this is handled by new_progress_context.
1012         * verify.c (verify_signatures, verify_one_file): Replace stack
1013         based progress context by a heap based one.
1014         * sign.c (sign_file, clearsign_file, sign_symencrypt_file): Ditto.
1015         * plaintext.c (ask_for_detached_datafile, hash_datafiles): Ditto.
1016         * encode.c (encode_simple, encode_crypt): Ditto.
1017         * decrypt.c (decrypt_message, decrypt_messages): Ditto. 
1019         * keyedit.c (menu_clean): Made strings translatable.
1021 2006-12-03  David Shaw  <dshaw@jabberwocky.com>
1023         * keyedit.c (menu_clean): Show "already minimized" rather than
1024         "already clean" when a minimized key is minimized again.  From
1025         Dirk Traulsen.
1027 2006-12-02  David Shaw  <dshaw@jabberwocky.com>
1029         * options.h, gpg.c (main), passphrase.c (passphrase_to_dek): Add
1030         --passphrase-repeat option to control how many times gpg will
1031         re-prompt for a passphrase to ensure the user has typed it
1032         correctly.  Defaults to 1.
1034 2006-12-02  Werner Koch  <wk@g10code.com>
1036         * encr-data.c: Allocate DFX context on the heap and not on the
1037         stack.  Changes at several places.  Fixes CVE-2006-6235.
1038         
1039 2006-11-27  Werner Koch  <wk@g10code.com>
1041         * openfile.c (ask_outfile_name): Fixed buffer overflow occurring
1042         if make_printable_string returns a longer string.  Fixes bug 728.
1044 2006-11-21  Werner Koch  <wk@g10code.com>
1046         * Makefile.am (needed_libs): libgnu needs to come after libcommon.
1048         * keygen.c (ask_expire_interval): Print y2038 warning only for 32
1049         bit time_t.
1050         (save_unprotected_key_to_card): Made RSA_N_LEN et al a size_t.
1051         Cast printf args.
1052         (get_parameter_algo): Allow "ELG" as alias for "ELG-E".
1054         * seckey-cert.c (do_check): Made NBYTES a size_t.
1055         (do_check): Made NDATA a size_t.
1056         (protect_secret_key): Made NARR a size_t.
1057         (protect_secret_key): Made NVYES a size_t.
1058         * pubkey-enc.c (get_it): Made INDATALEN a size_t. 
1059         (get_it): Made NFRAME a size_t.
1060         * keyid.c (hash_public_key): Made NBITS an unsigned int.
1061         * misc.c (checksum_mpi): Made NBYTES a size_t. 
1062         (openpgp_pk_test_algo2): Made USE_BUF a size_t.
1063         * seskey.c (encode_session_key): Made NFRAME a size_t.
1064         (do_encode_md): Ditto.
1065         (encode_md_value): Cast size_t argument of printf.
1066         (encode_md_value): Ditto.
1068 2006-11-10  Werner Koch  <wk@g10code.com>
1070         * parse-packet.c (mpi_read): Changed NREAD to size_t to match the
1071         gcry_mpi-scan prototype. 
1072         (mpi_read): Fixed double increment of bytes read to correctly
1073         detect overlong MPIs.
1075 2006-11-05  Werner Koch  <wk@g10code.com>
1077         * gpg.c (main): Remove the default --require-cross-certification.
1078         * options.skel: Enable require-cross-certification.
1080 2006-10-31  Werner Koch  <wk@g10code.com>
1082         * pkclist.c (warn_missing_aes_from_pklist): New.
1083         * encode.c (encrypt_filter, encode_crypt): Use it here.
1085 2006-10-27  Werner Koch  <wk@g10code.com>
1087         * pkclist.c (warn_missing_mdc_from_pklist): New.
1088         * encode.c (use_mdc): Use it here.
1090 2006-10-24  Marcus Brinkmann  <marcus@g10code.de>
1092         * Makefile.am (AM_CFLAGS): Add $(LIBASSUAN_CFLAGS).
1094 2006-10-23  Werner Koch  <wk@g10code.com>
1096         * gpg.c (main): New command --gpgconf-test.
1098         * Makefile.am (bzip2_source): New.
1100 2006-10-20  Werner Koch  <wk@g10code.com>
1102         * getkey.c (classify_user_id): Reserve '&' for search by keygrip.
1104 2006-10-19  Werner Koch  <wk@g10code.com>
1106         * keygen.c (get_parameter_algo): Add special case for ELG_E which
1107         is not supported by libgcrypt's mapping function.
1109 2006-10-18  Werner Koch  <wk@g10code.com>
1111         * keyid.c (v3_keyid): Don't use mempcy as we need to hold the
1112         keyids in the native endian format.
1114         * import.c (import_print_stats): Use log_printf.
1116         * build-packet.c (do_public_key): Care about mpi_write errors.
1117         (do_secret_key, do_pubkey_enc, do_signature): Ditto. 
1118         (mpi_write): Print an extra warning on error.
1120 2006-10-17  Werner Koch  <wk@g10code.com>
1122         * Makefile.am (LDADD): Replaced W32LIBS by NETLIBS.
1124 2006-10-12  David Shaw  <dshaw@jabberwocky.com>
1126         * parse-packet.c (parse_symkeyenc): Show the unpacked as well as
1127         the packed s2k iteration count.
1129         * main.h, options.h, gpg.c (encode_s2k_iterations, main),
1130         passphrase.c (hash_passphrase): Add --s2k-count option to specify
1131         the number of s2k hash iterations.
1133 2006-10-08  Werner Koch  <wk@g10code.com>
1135         * gpgv.c: Remove the tty stubs as we are now required to link to
1136         tty anyway (it is included in libcommand and has dependencies to
1137         other modules as well).
1139         * keyedit.c (keyedit_menu): Use keyedit_completion only if
1140         readline is available.  It would be better to move this code into
1141         gpgrlhelp.c
1143 2006-10-06  Werner Koch  <wk@g10code.com>
1145         * Makefile.am (AM_CFLAGS): Use PTH version of libassuan.
1147 2006-10-06  David Shaw  <dshaw@jabberwocky.com>
1149         * keyserver.c (keyserver_spawn): Write the 16-digit keyid rather
1150         than whatever key selector the user used on the command line.
1152 2006-10-05  Werner Koch  <wk@g10code.com>
1154         * status.c (progress_cb): Changed to libgcrypt API.
1155         (set_status_fd): Register the progress cb.
1157         * seskey.c (encode_md_value): Check that the hash algo is valid
1158         before getting the OID. 
1160 2006-10-04  Werner Koch  <wk@g10code.com>
1162         * passphrase.c: Allow for a static passphrase in batch mode.
1163         
1164         * call-agent.c (agent_havekey): Removed.
1165         (percent_plus_escape): New.
1166         (agent_get_passphrase): New.
1167         (agent_clear_passphrase): New.
1169         * passphrase.c: Changed so that we always require the agent.
1170         (agent_send_option, agent_send_all_options, agent_open): Removed.
1171         (agent_get_passphrase): Cleaned up.  Does now use the call-agent
1172         functions.  Renamed to
1173         (passphrase_get): .. this.  Changed all callers.
1174         (passphrase_clear_cache): Rewritten.
1175         (passphrase_to_dek, hash_passphrase): Re-indented.
1177         * gpg.c (main): Made --use-agent a dummy option.
1178         * seckey-cert.c (check_secret_key): We require the agent, so always
1179         allow for 3 tries.
1181         * gpg.c (main): Print a warning if -sat has been used.
1182         (main): Removed the special treatment of the -k option. -k is now
1183         an alias for --list-keys.
1184         (main): Removed --list-ownertrust.
1186 2006-10-02  Werner Koch  <wk@g10code.com>
1188         * encr-data.c (decrypt_data, mdc_decode_filter): Check the MDC
1189         right here and don't let parse-packet handle the MDC.
1191 2006-09-29  Werner Koch  <wk@g10code.com>
1193         * compress.c (do_uncompress): Removed use of Z_PARTIAL_FLUSH.
1194         This is outdated and old zlib versions which still require it have
1195         security problems.
1197 2006-09-27  Werner Koch  <wk@g10code.com>
1199         Replaced all STRLIST by strlist_t.
1201 2006-09-21  Werner Koch  <wk@g10code.com>
1203         * signal.c (got_fatal_signal): Replaced readline stuff by a tty
1204         function.
1206         * Makefile.am (LDADD): Include libgpgrl.a.
1208         * gpg.c (main): Call gpg_rl_initialize.
1210         * keyedit.c: Removed double inclusion of stdio.h.
1212 2006-09-20  Werner Koch  <wk@g10code.com>
1214         * call-agent.c: Include asshelp.h.
1215         (start_agent): Use send_pinentry_environment.
1217 2006-09-14  Werner Koch  <wk@g10code.com>
1219         Replaced all call gpg_error_from_errno(errno) by
1220         gpg_error_from_syserror().
1222 2006-09-13  Werner Koch  <wk@g10code.com>
1224         * gpg.c (main): Made --require-cross-certification the default. 
1226 2006-09-06  Marcus Brinkmann  <marcus@g10code.de>
1228         * Makefile.am (gpg2_LDADD, gpgv2_LDADD): Replace -lassuan and
1229         -lgpg-error with $(LIBASSUAN_LIBS) and $(GPG_ERROR_LIBS).
1230         (AM_CFLAGS): Add $(LIBASSUAN_CFLAGS) and $(GPG_ERROR_CFLAGS).
1232 2006-09-06  Werner Koch  <wk@g10code.com>
1234         * gpg.c (main): Enable new assuan API.
1235         * call-agent.c: Changed to new Assuan API.
1237 2006-09-01  Werner Koch  <wk@g10code.com>
1239         * call-agent.c: Do not force using the pipe server.
1241         * gpg.c (main): Enable card related commands.
1243 2006-08-22  Werner Koch  <wk@g10code.com>
1245         * mainproc.c (proc_plaintext): Fixed a #warning
1247 2006-08-21  Werner Koch  <wk@g10code.com>
1249         * skclist.c (random_is_faked): Implemented.
1250         (is_insecure): Also test for the old uppercase version of the
1251         insecure string.
1252         * gpg.c (main): Renamed --quick-random to debug-quick-quick-random.
1254         * gpg.c (print_mds): Do not use the USE_SHA macros.
1256         * mainproc.c (proc_encrypted): Remove assign inside condition for
1257         better readibility.
1259         * packet.h: Moved consts to new header ../common/openpgpdefs.h.
1261 2006-08-16  Werner Koch  <wk@g10code.com>
1263         * keyserver.c (GPGKEYS_PREFIX): Rename to gpg2keys_.  This is so
1264         that we can install helpers from 1.4 and 2 without conflicts and
1265         first of all don't get lost with weird bug reports.
1267         * keyid.c (serialno_and_fpr_from_sk): New. Actually lost during
1268         the last 1.4 to 1.9 merge.
1270         * gpg.c (list_config): Output ccid-reader-id only for gnupg 1.
1272         * call-agent.c (agent_scd_writekey): New.
1273         (inq_writekey_parms): New.
1275         * gpgv.c: Include call-agent.h for use by stubs.
1277         * misc.c: Include call-agent.h for use by get_signature_count.
1279 2006-07-27  Werner Koch  <wk@g10code.com>
1281         * parse-packet.c (parse_comment): Cap comments at 65k.
1282         (parse_gpg_control): Skip too large control packets.
1284 2006-07-24  David Shaw  <dshaw@jabberwocky.com>  (wk)
1286         * keydb.h, pkclist.c (select_algo_from_prefs, algo_available):
1287         Pass a union for preference hints rather than doing void * games.
1289         * sign.c (sign_file): Use it here.
1291         * sign.c (sign_file): When signing with multiple DSA keys, one
1292         being DSA1 and one being DSA2 and encrypting at the same time, if
1293         the recipient preferences give a hash that can work with the DSA2
1294         key, then allow the DSA1 key to be promoted rather than giving up
1295         and using hash_for().
1297         * pkclist.c (algo_available): Automatically enable DSA2 mode when
1298         handling a key that clearly isn't DSA1 (i.e. q!=160).
1300 2006-06-30  Werner Koch  <wk@g10code.com>
1302         * misc.c (checksum_mpi): No need for nbits as they are alredy
1303         included in the buffer.
1305 2006-06-29  Werner Koch  <wk@g10code.com>
1307         * parse-packet.c (parse_signature, parse_key): Need store the
1308         length of opaque data as number of bits. 
1309         * card-util.c (card_store_subkey): Ditto.
1311         * mainproc.c (print_pkenc_list, check_sig_and_print): Replaced
1312         log_get_stream by calls to log_printf.  This avoids the extra LFs
1313         inserted by the logging function. They are a bit too smart
1314         sometimes.
1315         * pkclist.c (do_show_revocation_reason): Print final LF through
1316         log_printf to avoid extra LFs.
1317         * pubkey-enc.c (get_it): Ditto.
1319         * seskey.c (encode_md_value): Fix call to gcry.
1321 2006-06-27  Werner Koch  <wk@g10code.com>
1323         Applied patches from 1.4.x (2006-05-22 to 2006-06-23) from David:
1325         * keygen.c (keygen_upd_std_prefs, keygen_add_std_prefs)
1326         (proc_parameter_file): Add --default-keyserver-url to specify a
1327         keyserver URL at key generation time, and "Keyserver:" keyword for
1328         doing the same through a batch file.
1329         * options.h, gpg.c (main): Ditto.
1331         * sign.c (do_sign): For now don't accept a truncated hash even
1332         for DSA1 keys (be liberal in what you accept, etc).
1334         * import.c (import_one): Add a flag (from_sk) so we don't check
1335         prefs on an autoconverted public key.  The check should only
1336         happen on the sk side.  Noted by Dirk Traulsen.
1338         * keygen.c (gen_card_key): Add optional argument to return a
1339         pointer (not a copy) of the stub secret key for the secret key we
1340         just generated on the card.
1341         (generate_card_subkeypair): Use it here so that the signing key on
1342         the card can use the card to generate the 0x19 backsig on the
1343         primary key.  Noted by Janko Heilgeist and Jonas Oberg.
1345         * parse-packet.c (parse_user_id): Cap the user ID size at 2048
1346         bytes.  This prevents a memory allocation attack with a very large
1347         user ID.  A very large packet length could even cause the
1348         allocation (a u32) to wrap around to a small number.  Noted by
1349         Evgeny Legerov on full-disclosure.
1351         * keygen.c (gen_dsa): Allow generating DSA2 keys.  Allow
1352         specifying sizes > 1024 when --enable-dsa2 is set.  The size of q
1353         is set automatically based on the key size.
1354         (ask_keysize, generate_keypair): Ask for DSA size when
1355         --enable-dsa2 is set.
1357         * exec.c (make_tempdir) [W32]: Fix bug with a temporary directory
1358         on W32 that is over 256 bytes long.  Noted by Israel G. Lugo.
1360         * gpg.c (reopen_std): New function to reopen fd 0, 1, or 2 if we
1361         are called with them closed.  This is to protect our
1362         keyring/trustdb files from corruption if they get attached to one
1363         of the standard fds.  Print a warning if possible that this has
1364         happened, and fail completely if we cannot reopen (should never
1365         happen).
1366         (main): Call it here.
1367         
1368         * parse-packet.c (dump_sig_subpkt, parse_signature): Fix meaning
1369         of key expiration and sig expiration subpackets - zero means
1370         "never expire" according to 2440, not "expire instantly".
1371         * build-packet.c (build_sig_subpkt_from_sig): Ditto.
1372         * getkey.c (fixup_uidnode, merge_selfsigs_main)
1373         (merge_selfsigs_subkey): Ditto.
1374         * keygen.c (keygen_add_key_expire): Ditto.
1376         * getkey.c (get_pubkey_byname)
1377         * import.c (import_one): Fix key selection problem when
1378         auto-key-locate returns a list of keys, not all of which are
1379         usable (revoked, expired, etc).  Noted by Simon Josefsson.
1381 2006-05-24  Werner Koch  <wk@g10code.com>
1383         * keyid.c (hash_public_key): Do not double hash the length bytes,
1384         they are already included by mpi_print.
1386         * misc.c (openpgp_pk_test_algo2): Get test call right.
1388         * misc.c (string_to_cipher_algo, string_to_digest_algo): New.
1389         * keygen.c (keygen_set_std_prefs): use them here.
1390         * gpg.c (main): and here.
1392 2006-05-23  Werner Koch  <wk@g10code.com>
1394         * card-util.c (generate_card_keys): Removed temporary kludge for
1395         generate_keypair.
1397         * call-agent.c (agent_scd_setattr): Add arg SERIALNO.
1398         (agent_scd_genkey): Ditto.
1399         (agent_scd_change_pin): Ditto.
1401         * call-agent.h (struct agent_card_info_s): Updated to match the
1402         one of 1.4.3.
1404         * Makefile.am (LDADD): Include ZLIBS.
1406         * gpgv.c: Removed stubs not anymore useful due to libgcrypt.
1408 2006-05-22  Werner Koch  <wk@g10code.com>
1410         * keyserver.c (keyidlist): Replaced mpi_get_keyid by v3_keyid.
1411         * keydb.h (v3_keyid): Added.
1413         * import.c (import): Better initialize KEYBLOCK as to quiet
1414         compiler warning.
1416         * skclist.c (random_is_faked): New.
1418         * mainproc.c: Include pka.h.
1420 2006-05-19  Werner Koch  <wk@g10code.com>
1422         * misc.c (openpgp_pk_test_algo2): Need to use gcry_pk_algo_info
1423         directly.
1424         (string_count_chr): New.
1426         * armor.c (parse_header_line): Use renamed function
1427         length_sans_trailing_ws.
1429         * options.h, gpg.c: Option --strict is not used thus removed code
1430         but kept option.
1432 2006-04-28  David Shaw  <dshaw@jabberwocky.com>  (wk)
1433         
1434         * keyserver.c (direct_uri_map): New.
1435         (keyserver_spawn): Used here to add "_uri" to certain gpgkeys_xxx
1436         helpers when the meaning is different if a path is provided (i.e. 
1437         ldap).
1438         (keyserver_import_cert): Show warning if there is a CERT
1439         fingerprint, but no --keyserver set.
1441         * keyserver.c: Fix build problem with platforms that stick libcurl
1442         in a place not in the regular include search path.
1444         * options.h, gpg.c (main): Add --enable-dsa2 and --disable-dsa2.
1445         Defaults to disable.
1447         * pkclist.c (algo_available): If --enable-dsa2 is set, we're
1448         allowed to truncate hashes to fit DSA keys.
1450         * sign.c (match_dsa_hash): New.  Return the best match hash for a
1451         given q size.
1452         (do_sign, hash_for, sign_file): When signing with a DSA key, if it
1453         has q==160, assume it is an old DSA key and don't allow truncation
1454         unless --enable-dsa2 is also set.  q!=160 always allows truncation
1455         since they must be DSA2 keys.
1456         (make_keysig_packet): If the user doesn't specify a
1457         --cert-digest-algo, use match_dsa_hash to pick the best hash for
1458         key signatures.
1460         * gpg.c (print_mds): Add SHA-224.
1461         * armor.c (armor_filter, parse_hash_header): Add SHA-224.
1463         * sign.c (write_plaintext_packet):
1464         Factor common literal packet setup code from here, to...
1465         * encode.c (encode_simple): .. there.
1466         
1467         * main.h, plaintext.c (setup_plaintext_name): Here. New. Make sure
1468         the literal packet filename field is UTF-8 encoded.
1470         * options.h, gpg.c (main): Make sure --set-filename is UTF-8
1471         encoded and note when filenames are already UTF-8.
1473         * keyedit.c (menu_backsign): Give some more verbose errors when we
1474         have no need to backsign.
1476         * getkey.c (parse_auto_key_locate): Fix dupe-removal code.
1478         * keyedit.c (menu_backsign): Allow backsigning even if the secret
1479         subkey doesn't have a binding signature.
1481         * armor.c (radix64_read): Don't report EOF when reading only a pad
1482         (=) character.  The EOF actually starts after the pad.
1484         * gpg.c (main): Make --export, --send-keys, --recv-keys,
1485         --refresh-keys, and --fetch-keys follow their arguments from left
1486         to right.  Suggested by Peter Palfrader.
1488 2006-04-18  Werner Koch  <wk@g10code.com>
1490         * tdbio.c (open_db, migrate_from_v2): Removed feature to migration
1491         from old trustdb version 2.
1493         * gpg.c, mainproc.c: Removed pipemode feature.
1495         * status.c: Removed shared memory coprocess stuff
1497         Merged with current gpg 1.4.3 code.
1498         
1499         * keygen.c, keyid.c, misc.c, openfile.c, verify.c, trustdb.c
1500         * textfilter.c, tdbio.c, tdbdump.c, status.c, skclist.c, signal.c
1501         * sign.c, sig-check.c, seskey.c, seckey-cert.c, revoke.c
1502         * pubkey-enc.c, progress.c, plaintext.c, pkclist.c, photoid.c
1503         * passphrase.c, parse-packet.c, mdfilter.c, mainproc.c
1504         * keyserver.c, keyring.c, keylist.c, keyedit.c, keydb.c, kbnode.c
1505         * import.c, getkey.c, gpgv.c, helptext.c, free-packet.c
1506         * build-packet.c, cipher.c, compress.c, dearmor.c, decrypt.c
1507         * delkey.c, encr-data.c, encode.c, exec.c, export.c
1508         * gpg.c, armor.c: Updated from gnupg-1.4.3 and merged back gcry and
1509         gnupg-1.9 related changes.
1510         * trustdb.h, tdbio.h, status.h, photoid.h, packet.h, options.h
1511         * main.h, keyserver-internal.h, keyring.h, keydb.h, filter.h
1512         * exec.h: Ditto.
1513         * global.h: Removed after merging constants with gpg.h.
1514         * comment.c, pipemode.c: Removed.
1515         * card-util.c: Updated from gnupg-1.4.3.
1516         * compress-bz2.c: New.
1517         
1518 2005-06-15  Werner Koch  <wk@g10code.com>
1520         * g10.c (print_hashline, add_group): Fixes for signed/unsigned
1521         pointer mismatch warnings.
1523 2005-06-01  Werner Koch  <wk@g10code.com>
1525         * mkdtemp.c: Removed.
1526         * exec.c: Include mkdtemp.h
1528 2004-12-21  Werner Koch  <wk@g10code.com>
1530         * gpgv.c, g10.c (main): Use default_hoemdir ().
1532 2004-12-18  Werner Koch  <wk@g10code.com>
1534         * gpg.h (map_assuan_err): Define in terms of
1535         map_assuan_err_with_source.
1537 2004-12-15  Werner Koch  <wk@g10code.com>
1539         * Makefile.am (LDADD): Remove ZLIBS.
1541 2004-10-22  Werner Koch  <wk@g10code.com>
1543         * g10.c (main): Display a bit fat warning that this gpg should not
1544         be used.
1546         * card-util.c (fetch_url): Disable for gnupg 1.9
1547         (card_generate_subkey): Ditto.
1548         (card_store_subkey): Ditto.
1550 2004-09-30  Werner Koch  <wk@g10code.com>
1552         * gpgv.c (i18n_init): Always use LC_ALL.
1554         * Makefile.am (LDADD): Adjusted for gettext 0.14.
1556 2004-09-20  Werner Koch  <wk@g10code.com>
1558         * keyedit.c (show_key_with_all_names): Print the card S/N.
1560 2004-09-11  Moritz Schulte  <moritz@g10code.com>
1562         * openfile.c (copy_options_file): Fixed last commit (added a `+').
1564 2004-08-31  Werner Koch  <wk@g10code.de>
1566         * openfile.c (copy_options_file): Use gpg-conf.skel. Better take
1567         the length of SKELEXT into account, someone might make it larger.
1568         * Makefile.am: Install options.skel as gpg-conf.skel.
1570 2004-08-18  Marcus Brinkmann  <marcus@g10code.de>
1572         * passphrase.c (agent_get_passphrase): Fix detection of gpg-agent
1573         cancellation.
1575 2004-07-01  Werner Koch  <wk@gnupg.org>
1577         * card-util.c (change_login): Kludge to allow reading data from a
1578         file.
1579         (card_edit): Pass ARG_STRING to change_login.
1580         (card_status): Print CA fingerprints.
1581         (change_cafpr): New.
1582         (card_edit): New command CAFPR.
1584         * call-agent.h: Add members for CA fingerprints.
1585         * call-agent.c (agent_release_card_info): Invalid them.
1586         (learn_status_cb): Store them.
1588 2004-04-30  Werner Koch  <wk@gnupg.org>
1590         * g10.c (main) <gpgconf>: Use gpg.conf and not /dev/null as
1591         default filename.
1593 2004-04-28  Werner Koch  <wk@gnupg.org>
1595         * card-util.c (card_edit): Remove PIN verification.
1596         (generate_card_keys): New arg SERIALNO.  Do PIN verification here
1597         after resetting forced_chv1.
1599 2004-04-26  Werner Koch  <wk@gnupg.org>
1601         * card-util.c (change_name): Check that the NAME is not too long.
1602         (change_url): Likewise.
1603         (change_login): Likewise.
1605 2004-03-23  Werner Koch  <wk@gnupg.org>
1607         * g10.c: New options --gpgconf-list, --debug-level and --log-file
1608         (set_debug): Add arg DEBUG_LEVEL.
1609         (main): Look at less and less version specific config files.  From
1610         gnupg 1.3.
1612 2004-02-17  Werner Koch  <wk@gnupg.org>
1614         * call-agent.c (start_agent): Ignore an empty GPG_AGENT_INFO.
1615         * passphrase.c (agent_open): Ditto.
1617 2004-02-12  Werner Koch  <wk@gnupg.org>
1619         * gpgv.c: Removed g10defs.h.
1621         * Makefile.am: Include cmacros.am for common flags.
1623 2004-02-11  Werner Koch  <wk@gnupg.org>
1625         * openfile.c (try_make_homedir): Use GNUPG_DEFAULT_HOMEDIR.
1626         * gpgv.c (main): Ditto.
1627         * g10.c (main): Ditto.
1629 2004-01-19  Moritz Schulte  <mo@g10code.com>
1631         * keygen.c (do_generate_keypair): Print member fname, instead of
1632         newfname, again.
1633         (do_generate_keypair): Don't try to execute certain pieces of code
1634         in case an error occured.
1635         (gen_card_key): Don't print out a message, which is already
1636         printed by do_generate_keypair().
1638 2004-01-18  Moritz Schulte  <mo@g10code.com>
1640         * keygen.c (do_generate_keypair): Print member fname, instead of
1641         newfname.
1643 2003-12-17  Werner Koch  <wk@gnupg.org>
1645         * card-util.c (print_name): Fixed bad format string usage.
1646         (print_isoname): Ditto.
1648         * trustdb.c (check_regexp): s/exp/expr/.
1650         * keyedit.c (trustsig_prompt): Removed a "> 255" term; it is
1651         always false due to the data type.
1652         
1653         * passphrase.c (agent_get_passphrase): Use xasprintf and avoid
1654         non-literal format strings.
1656         * tdbio.c (upd_hashtable, drop_from_hashtable, lookup_hashtable):
1657         Fixed log_error format string bugs.  Kudos to the now working
1658         gcc-3.3 -Wformat-nonliteral and Florian Weimer's investigations in
1659         gnupg 1.2.3.
1661 2003-12-15  Werner Koch  <wk@gnupg.org>
1663         * seckey-cert.c (protect_secret_key): Use gry_create_nonce for the
1664         IV; there is not need for real strong random here and it even
1665         better protect the random bits used for the key.
1667 2003-11-16  Moritz Schulte  <mo@g10code.com>
1669         * signal.c: Removed unused file.
1671 2003-11-10  Moritz Schulte  <mo@g10code.com>
1673         * Makefile.am (INCLUDES): Added: @LIBGCRYPT_CFLAGS@.
1675 2003-10-25  Werner Koch  <wk@gnupg.org>
1677         * call-agent.c (learn_status_cb, scd_genkey_cb): Fixed faulty use
1678         of !spacep().
1680 2003-10-20  Werner Koch  <wk@gnupg.org>
1682         * card-util.c (card_edit): New command "passwd".  Add logic to
1683         check the PIN in advance.
1684         (card_status): Add new args to return the serial number.  Changed
1685         all callers.
1686         * call-agent.c (agent_scd_checkpin): New.
1688 2003-10-08  Werner Koch  <wk@gnupg.org>
1690         * call-agent.c (agent_scd_getattr): Don't clear the passed info
1691         structure, so that it can indeed be updated.
1693         * card-util.c (fpr_is_zero): New.
1694         (generate_card_keys): New.
1695         (card_edit): New command "generate".
1696         * keygen.c (generate_keypair): New arg CARD_SERIALNO, removed call
1697         to check_smartcard.
1698         (check_smartcard,show_smartcard): Removed.
1699         (show_sha1_fpr,fpr_is_zero): Removed.
1701 2003-10-01  Werner Koch  <wk@gnupg.org>
1703         * card-util.c: Tweaked to use this source also under 1.3. 
1705 2003-09-30  Werner Koch  <wk@gnupg.org>
1707         * keylist.c (print_card_serialno): New.
1708         (list_keyblock_print): Use it here.
1710         * card-util.c (toggle_forcesig): New.
1711         (card_edit): New command "forcesig".
1712         
1713         * card-util.c (print_name, print_isoname): Use 0 and not LF fro
1714         the max_n arg of tty_print_utf8_string2.
1716         * call-agent.c (agent_scd_getattr): New.
1717         (learn_status_cb): Release values before assignment so that it can
1718         be used by getattr to update the structure.
1719         
1720         * card-util.c (change_pin): Simplified.  We now have only a PIN
1721         and an Admin PIN.
1723 2003-09-27  Werner Koch  <wk@gnupg.org>
1725         * sign.c (do_sign): Removed disabled testcode.
1727 2003-09-26  Timo Schulz  <twoaday@freakmail.de>
1729         * card_status (card_status): Do not use fputs since the fp
1730         parameter can be NULL. This fixes a segv.
1731         
1732 2003-09-24  Werner Koch  <wk@gnupg.org>
1734         * card-util.c (print_isoname,card_status): Handle opt.with_colons.
1735         (print_sha1_fpr_colon): New.
1737 2003-09-23  Werner Koch  <wk@gnupg.org>
1739         Merged most of David Shaw's changes in 1.3 since 2003-06-03.
1740         
1741         * Makefile.am: Include W32LIBS where appropriate.
1743         * armor.c (parse_hash_header,armor_filter): Drop TIGER/192 support.
1744         * g10.c (print_hex,print_mds): Ditto.
1745         * pkclist.c (algo_available): Ditto.
1747         * armor.c (armor_filter): Allow using --comment multiple times to
1748         get multiple Comment header lines.  --no-comments resets list.
1749         * options.h, g10.c (main): Ditto. Deprecate --default-comment in
1750         favor of --no-comments.
1752         * g10.c (main): Trim --help to commonly used options.  Remove -f.
1754         * g10.c (main): Add --multifile as an alias to turn --encrypt into
1755         --encrypt-files (plus --verify-files, --decrypt-files).  Error out
1756         if --multifile is used with the commands that don't support it yet.
1758         * encode.c (use_mdc), g10.c (main): Use RFC1991 and RFC2440
1759         directly to check for MDC usability.  Do not set the force_mdc or
1760         disable_mdc flags since there is no point any longer.
1761         
1762         * g10.c (main): Use "keyserver-url" instead of
1763         "preferred-keyserver" for the sake of short and simple commands.
1764         (add_keyserver_url): Clarify a few strings.  It's a
1765         "preferred keyserver URL".
1766         * keyedit.c (keyedit_menu): Ditto.
1767         * sign.c (mk_notation_policy_etc): Ditto. 
1769         * main.h, keygen.c (keygen_add_keyserver_url): Signature callback
1770         for adding a keyserver URL.
1771         * keyedit.c (keyedit_menu, menu_set_keyserver_url): New command to
1772         set preferred keyserver to specified (or all) user IDs.
1773         * build-packet.c (build_sig_subpkt): Set preferred keyserver flag
1774         while building a preferred keyserver subpacket.
1776         * keylist.c (show_policy_url, show_keyserver_url): URLs might be
1777         UTF8.
1779         * keyedit.c (menu_addrevoker): Fix leaking a few bytes.
1781         * keyedit.c (show_key_with_all_names): Use list-option
1782         show-long-keyid in main --edit-key display.
1784         * keyedit.c (print_and_check_one_sig): Use list-option
1785         show-long-keyid in --edit-key "check" function.
1787         * passphrase.c (agent_send_all_options): Make use of $GPG_TTY.
1789         * g10.c (main): Disable use-agent if passphrase-fd is given
1790         later. Suggested by Kurt Garloff.
1792         * exec.c, g10.c, gpgv.c, passphrase.c, photoid.c:
1793         s/__MINGW32__/_WIN32/ to help building on native Windows
1794         compilers.  Requested by Brian Gladman.  From Werner on stable
1795         branch.
1797         * options.h, g10.c (main): Add list-option
1798         list-preferred-keyserver.
1800         * keyedit.c (change_passphrase): When responding 'no' to the blank
1801         passphrase question, re-prompt for a new passphrase.  This is bug
1802         #202.
1804         * mainproc.c (check_sig_and_print): Use two different preferred
1805         keyserver displays - one if the key is not present (to tell the
1806         user where to get the key), the other if it is present (to tell
1807         the user where the key can be refreshed).
1809         * packet.h, parse-packet.c (parse_signature): Set flag if a
1810         preferred keyserver is present.
1812         * keylist.c (list_keyblock_print): Show keyserver url in listings
1813         with list-option show-keyserver-url.
1815         * mainproc.c (check_sig_and_print): Get the uid validity before
1816         printing any sig results to avoid munging the output with trustdb
1817         warnings.
1819         * g10.c (main): Don't include --show-keyring in --help as it is
1820         deprecated.
1822         * options.skel: Note that keyserver.pgp.com isn't synchronized,
1823         and explain the roundrobin a bit better.
1825         * sig-check.c (check_key_signature2), import.c (import_one,
1826         import_revoke_cert, chk_self_sigs, delete_inv_parts,
1827         collapse_uids, merge_blocks): Make much quieter during import of
1828         slightly munged, but recoverable, keys. Use log_error for
1829         unrecoverable import failures.
1831         * keyring.c (keyring_rebuild_cache): Comment.
1833         * sign.c (mk_notation_and_policy): Making a v3 signature with
1834         notations or policy urls is an error, not an info (i.e. increment
1835         the errorcount). Don't print the notation or policy url to stdout
1836         since it can be mixed into the output stream when piping and munge
1837         the stream.
1839         * packet.h, sig-check.c (signature_check2, do_check,
1840         do_check_messages): Provide a signing-key-is-revoked flag.  Change
1841         all callers.
1843         * status.h, status.c (get_status_string): New REVKEYSIG status tag
1844         for a good signature from a revoked key.
1846         * mainproc.c (do_check_sig, check_sig_and_print): Use it here.
1848         * import.c (import_revoke_cert, merge_blocks, merge_sigs): Compare
1849         actual signatures on import rather than using keyid or class
1850         matching.  This does not change actual behavior with a key, but
1851         does mean that all sigs are imported whether they will be used or
1852         not.
1854         * parse-packet.c (parse_signature): Don't give "signature packet
1855         without xxxx" warnings for experimental pk algorithms.  An
1856         experimental algorithm may not have a notion of (for example) a
1857         keyid (i.e. PGP's x.509 stuff).
1859         * options.h, g10.c (main), keylist.c (list_keyblock_print),
1860         keyedit.c (print_and_check_one_sig): New "show-sig-expire"
1861         list-option to show signature expiration dates (if any).
1863         * options.h, g10.c (main, add_keyserver_url): Add
1864         --sig-preferred-keyserver to implant a "where to get my key"
1865         subpacket into a signature.
1867         * sign.c (mk_notation_and_policy): Rename to
1868         mk_notation_policy_etc and add preferred keyserver support for
1869         signatures.
1871         * keygen.c (do_add_key_flags): Don't set the certify flag for
1872         subkeys.
1873         (ask_algo): Provide key flags for DSA, Elgamal_e, and Elgamal
1874         subkeys.
1875         (generate_keypair): Provide key flags for the default DSA/Elgamal
1876         keys.
1878         * sig-check.c (signature_check, signature_check2,
1879         check_key_signature, check_key_signature2): Allow passing NULLs
1880         for unused parameters in the x2 form of each function to avoid the
1881         need for dummy variables. getkey.c, mainproc.c: Change all
1882         callers.
1884         * trustdb.h, trustdb.c (read_trust_options): New.  Returns items
1885         from the trustdb version record.
1886         * keylist.c (public_key_list): Use it here for the new "tru"
1887         record.
1888         * gpgv.c (read_trust_options): Stub.
1890         * keyedit.c (show_key_with_all_names): Use list-option
1891         show-validity in --edit-key interface as well.
1893         * options.h, g10.c (main), mainproc.c (check_sig_and_print): Add
1894         verify-options "show-validity" and "show-long-keyid" to show
1895         trustdb validity and long keyids during (file) signature
1896         verification.
1898         * packet.h, main.h, sig-check.c (signature_check2)
1899         (check_key_signature2, do_check): If ret_pk is set, fill in the pk
1900         used to verify the signature.  Change all callers in getkey.c,
1901         mainproc.c, and sig-check.c.
1903         * keylist.c (list_keyblock_colon): Use the ret_pk from above to
1904         put the fingerprint of the signing key in "sig" records during a
1905         --with-colons --check-sigs.  This requires --no-sig-cache as well
1906         since we don't cache fingerprints.
1908         * parse-packet.c (parse_signature): No need to reserve 8 bytes for
1909         the unhashed signature cache any longer.
1911         * misc.c (pct_expando): Add two new expandos - signer's
1912         fingerprint (%g), and signer's primary fingerprint (%p).
1914         * g10.c (main): Add --rfc2440 alias for --openpgp since in a few
1915         months, they won't be the same thing.
1917         * keyserver.c (parse_keyserver_uri): Accept "http" as an alias for
1918         "hkp", since it is occasionally written that way.
1919         (keyserver_spawn): Use ascii_isspace to avoid locale issues.
1921         * keygen.c (ask_user_id): Make --allow-freeform-uid apply to the
1922         email field as well as the name field, and allow mixing fields
1923         when it is set.
1925         * trustdb.c (validate_one_keyblock): Certifications on revoked or
1926         expired uids do not count in the web of trust.
1928         * signal.c (init_one_signal, pause_on_sigusr, do_block): Only use
1929         sigprocmask() if we have sigset_t, and only use sigaction() if we
1930         have struct sigaction.  This is for Forte c89 on Solaris which
1931         seems to define only the function call half of the two pairs by
1932         default.
1933         (pause_on_sigusr): Typo.
1934         (do_block): If we can't use sigprocmask() and sigset_t, try to get
1935         the number of signals from NSIG as well as MAXSIG, and if we
1936         can't, fail with an explanation.
1938         * signal.c, tdbio.c: Comment out the transaction code.  It was not
1939         used in this version, and was causing some build problems on
1940         quasi-posix platforms (Solaris and Forte c89).
1942         * keylist.c (list_keyblock_colon): Don't include validity values
1943         when listing secret keys since they can be incorrect and/or
1944         misleading.  This is a temporary kludge, and will be handled
1945         properly in 1.9/2.0.
1947         * mainproc.c (check_sig_and_print): Only show the "key available
1948         from" preferred keyserver line if the key is not currently
1949         present.
1951         * keyedit.c (sign_uids): Do not sign expired uids without --expert
1952         (same behavior as revoked uids).  Do not allow signing a user ID
1953         without a self-signature.  --expert overrides.  Add additional
1954         prompt to the signature level question.
1955         (menu_expire): When changing expiration dates, don't replace
1956         selfsigs on revoked uids since this would effectively unrevoke
1957         them. There is also no point in replacing expired selfsigs.  This
1958         is bug #181
1960         * g10.c (add_notation_data): Make sure that only ascii is passed
1961         to iscntrl.  Noted by Christian Biere.
1962         * getkey.c (classify_user_id2): Replaced isspace by spacep
1963         * keygen.c (ask_user_id): Ditto.
1964         (get_parameter_algo): Ditto.
1965         * keyedit.c (keyedit_menu): Ditto.
1966         * tdbdump.c (import_ownertrust): Ditto.  s/isxdigit/hexdigitp/.
1967         * revoke.c (ask_revocation_reason): 
1968         * keyserver.c (keyserver_spawn): Dito.
1970         * parse-packet.c (parse): Disallow old style partial length for
1971         all key material packets to avoid possible corruption of keyrings.
1973         * import.c (import_keys_internal): Invalidate the cache so that
1974         the file descriptor gets closed.  Fixes bug reported by Juan
1975         F. Codagnone.
1977         * options.h, g10.c (main), main.h, keylist.c (show_keyserver_url),
1978         mainproc.c (check_sig_and_print), parse-packet.c (dump_sig_subpkt,
1979         parse_one_sig_subpkt, can_handle_critical): Add read-only support
1980         for preferred keyserver subpackets.  They're basically policy URLs
1981         with a different name.  Add a verify-option
1982         "show-preferred-keyserver" to turn them on and off (on by default,
1983         as per stable branch).
1985         * g10.c (main): Add "--set-notation" as alias to "--notation-data"
1986         this is to make things consistent with --set-policy-url meaning
1987         both sigs and certs.
1989         * options.h, g10.c (main), keylist.c (list_keyblock_print): Add
1990         "show-validity" and "show-long-keyid" list-options.
1992         * gpgv.c (get_validity, trust_value_to_string): Stubs.
1994         * g10.c (main): Use SAFE_VERSION instead of VERSION in the
1995         version-specific gpg.conf file so it can be overridden on RISCOS.
1997         * keyedit.c (show_key_with_all_names): Fix assertion failure when
1998         using toggle to see a secret key.  Reported by Maxim Britov.
2001 2003-09-22  Timo Schulz  <twoaday@freakmail.de>
2003         * card-util.c (card_status): Free pk in case of an error
2004         and return if the card is no OpenPGP card.
2005         
2006 2003-09-18  Werner Koch  <wk@gnupg.org>
2008         * g10.c: New command --card-edit.
2009         * card-util.c (card_status): Use tty_fprintf for all output.
2010         (print_sha1_fpr, print_isoname): Ditto.
2011         (get_one_name,change_name, change_url, change_login,change_lang)
2012         (change_sex): New; taken from keygen.c.
2013         * keygen.c (smartcard_get_one_name, smartcard_change_name) 
2014         (smartcard_change_url, smartcard_change_login_data) 
2015         (smartcard_change_lang, smartcard_change_sex): Removed.
2016         (check_smartcard): Removed most menu items.
2018 2003-09-06  Werner Koch  <wk@gnupg.org>
2020         * misc.c (openpgp_pk_algo_usage): Allow AUTH where SIGN is allowed.
2022         * keygen.c (ask_passphrase): No need to allocated S2K in secure
2023         memory.
2025 2003-09-04  Werner Koch  <wk@gnupg.org>
2027         * keygen.c (do_add_key_flags, parse_parameter_usage) 
2028         (do_generate_keypair): Add support the proposed AUTH key flag.
2029         * getkey.c (fixup_uidnode, merge_selfsigs_main) 
2030         (merge_selfsigs_subkey, premerge_public_with_secret): Ditto.
2031         * keylist.c (print_capabilities): Ditto.
2033 2003-08-25  Timo Schulz  <twoaday@freakmail.de>
2035         * pkglue.c (mpi_from_sexp): New. Used to factor out
2036         some common code.
2037         
2038 2003-08-24  Werner Koch  <wk@gnupg.org>
2040         * keygen.c (do_generate_keypair): Print a reminder to use --gen-revoke.
2042 2003-08-18  Timo Schulz  <twoaday@freakmail.de>
2044         * encode.c (encode_sesskey): Checked the code and removed
2045         the warning since all compatibility checks with PGP succeeded.
2046         * mainproc.c (symkey_decrypt_sesskey): Better check for the
2047         algorithm and check the return values of some functions.
2048         * mdc.c (use_mdc): Simplified.
2049         
2050 2003-08-07  Werner Koch  <wk@gnupg.org>
2052         * pkglue.c (pk_sign): Fix last change.
2053         (pk_verify): Check for valid DATA array so that we don't segv in
2054         Libgcrypt.
2055         (pk_verify): Ditto.
2057 2003-08-06  Werner Koch  <wk@gnupg.org>
2059         * pkglue.c (pk_sign): Allow signing using RSA.
2061 2003-08-05  Werner Koch  <wk@gnupg.org>
2063         * Makefile.am (install-data-local): Dropped check for the ancient
2064         gpgm tool.
2065         (bin_PROGRAMS): Renamed gpg to gpg2 and gpgv to gpgv2.  This is so
2066         that it won't conflict with the current stable version of gpg.
2068         * pkglue.c (pk_check_secret_key): New.
2069         * seckey-cert.c (do_check): Reenable this test here again.
2071         * g10.c (main): Add command -K as an alias for
2072         --list-secret-keys. Command "-k" is now an alias to --list-keys.
2073         Remove special treatment of -kv and -kvv.
2074         (set_cmd): Ditto.
2075         (main): Strip a "-cvs" suffix when testing for a version specific
2076         config file.
2078         * status.h, status.c, g10.c [USE_SHM_COPROCESSING]: Removed.  This
2079         is not any longer available.
2081 2003-07-29  Werner Koch  <wk@gnupg.org>
2083         * g10.c (main): Add secmem features and set the random seed file.
2084         (g10_exit): Update the random seed file.
2086         * parse-packet.c (parse_signature,read_protected_v3_mpi)
2087         (parse_key): Fixed use of mpi_set_opaque.
2088         * keygen.c (gen_card_key): Ditto.
2090 2003-07-28  Werner Koch  <wk@gnupg.org>
2092         * status.c (progress_cb): Adjusted for use with Libcgrypt.
2093         (set_status_fd): Register that callback.
2095         * keygen.c (smartcard_change_login_data): New.
2096         (smartcard_change_lang): New.
2097         (smartcard_change_sex): New.
2098         (check_smartcard): Add menu entries to edit the above.
2099         (gen_elg,gen_dsa,gen_rsa): Reimplemented in terms of Libgcrypt.
2100         (genhelp_protect, genhelp_factors, key_from_sexp): New.
2101         * comment.c (make_comment_node_from_buffer): New.
2102         (make_comment_node): Reimplemented in terms of above.
2104 2003-07-27  Werner Koch  <wk@gnupg.org>
2106         Adjusted for gcry_mpi_print and gcry_mpi_scan API change.
2108 2003-07-24  Werner Koch  <wk@gnupg.org>
2110         * g10.c: New command --card-status.
2111         * card-util.c (card_status): New.
2112         * call-agent.c (learn_status_cb): Parse more information.
2114         * keylist.c (print_pubkey_info): Add FP arg for optional printing
2115         to a stream.  Changed all callers.
2117 2003-07-23  Werner Koch  <wk@gnupg.org>
2119         * keygen.c (generate_keypair): Create an AUTHKEYTYPE entry for cards.
2120         (do_generate_keypair): Abd generate the authkey.
2121         (check_smartcard): Changed menu accordingly.
2123 2003-07-22  Werner Koch  <wk@gnupg.org>
2125         * g10.c: New command --change-pin.
2126         * card-util.c: New.
2127         * call-agent.c (agent_scd_change_pin): New.
2128         (agent_release_card_info): New.
2129         * keygen.c (check_smartcard): Use it here.
2131 2003-07-16  Werner Koch  <wk@gnupg.org>
2133         * export.c (parse_export_options): New option sexp-format.
2134         (export_seckeys,export_secsubkeys): Check sexp-format option.
2135         (do_export): Ignore armor for sexp format.
2136         (do_export_stream): Handle sexp-format.
2137         (write_sexp_line,write_sexp_keyparm, build_sexp_seckey): New.
2138         (build_sexp): New.
2140 2003-07-03  Werner Koch  <wk@gnupg.org>
2142         * options.h (DBG_CIPHER): Reintroduced it. 
2143         * seskey.c (encode_session_key): Debug output of the session key.
2145         * pubkey-enc.c (get_it): Handle card case.
2146         * call-agent.c (agent_scd_pkdecrypt): New.
2147         * pkglue.c (pk_encrypt): Add RSA support.
2149         * g10.c (main): Default to --use-agent.
2151         * keygen.c (show_smartcard): Print info about the public key.
2152         (check_smartcard): Check for existing key here.
2153         (gen_card_key): And not anymore here.
2154         (fpr_is_zero): New.
2155         (generate_keypair): Generate both keys for a card.
2156         (smartcard_change_url): Nw.
2158 2003-07-02  Werner Koch  <wk@gnupg.org>
2160         * seckey-cert.c (is_secret_key_protected): Let it handle mode 1002.
2162 2003-07-01  Werner Koch  <wk@gnupg.org>
2164         * keygen.c (gen_card_key): Obviously we should use the creation
2165         date received from SCDAEMON, so that the fingerprints will match.
2166         * sign.c (do_sign): Pass the serialno to the sign code.
2167         * keyid.c (serialno_and_fpr_from_sk): New.
2169 2003-06-30  Werner Koch  <wk@gnupg.org>
2171         * call-agent.h (agent_card_info_s): Add field serialno.
2172         * call-agent.c (store_serialno): New.
2173         (learn_status_cb): Store the serial number.
2174         * keygen.c (gen_card_key): Store the serial number
2175         (check_smartcard): New argument to return the serial number.
2176         (generate_keypair): Get the serial number from check_smartcard and
2177         store it as a parameter.
2178         * parse-packet.c (parse_key): Use the protect.iv field to store the
2179         serial number.
2180         * build-packet.c (do_secret_key): Write the serial number.
2182 2003-06-27  Werner Koch  <wk@gnupg.org>
2184         * seckey-cert.c (check_secret_key): Bypass the unprotection for
2185         mode 1002.
2186         * sign.c (do_sign): Handle card case (i.e. mode 1002).
2188 2003-06-26  Werner Koch  <wk@gnupg.org>
2190         * build-packet.c (do_secret_key): Implement special protection
2191         mode 1002.
2192         * parse-packet.c (parse_key): Likewise.
2194         * keygen.c (smartcard_gen_key): New.
2195         * call-agent.c (agent_scd_setattr): New.
2197 2003-06-24  Werner Koch  <wk@gnupg.org>
2199         * Makefile.am: Removed signal.c
2201         * g10.c (emergency_cleanup): New.
2202         (main): Use gnupg_init_signals and register malloc for assuan.
2204 2003-06-23  Werner Koch  <wk@gnupg.org>
2206         * keyid.c (do_fingerprint_md): Made it work again.
2208 2003-06-19  Werner Koch  <wk@gnupg.org>
2210         Fixed all "==" comparisons against error code constants to use
2211         gpg_err_code().
2213         * import.c (import_secret_one): 
2214         (import_revoke_cert): 
2215         (chk_self_sigs): 
2217         * misc.c (openpgp_md_map_name): Check also for the Hx format.
2218         (openpgp_cipher_map_name): Check also for the Sx format.
2219         (pubkey_get_npkey): Adjusted for changed gcrypt API.
2220         (pubkey_get_nskey): Ditto.
2221         (pubkey_get_nsig): Ditto.
2222         (pubkey_get_nenc): Ditto.
2224 2003-06-18  Werner Koch  <wk@gnupg.org>
2226         Finished the bulk of changes for gnupg 1.9.  This included
2227         switching to libgcrypt functions, using shared error codes from
2228         libgpg-error, replacing the old functions we used to have in
2229         ../util by those in ../jnlib and ../common, renaming the malloc
2230         functions and a couple of types.  Note, that not all changes are
2231         listed below becuause they are too similar and done at far too
2232         many places.  As of today the code builds using the current
2233         libgcrypt from CVS but it is very unlikely that it actually works.
2234         
2235         * sig-check.c (cmp_help): Removed.  Was never used.
2237         * pkglue.c: New. Most stuff taken from gnupg 1.1.2.
2238         * pkglue.h: New.
2240         * misc.c (pull_in_libs): Removed.
2242         * keygen.c (count_chr): New.
2243         (ask_user_id): Removed faked RNG support.
2245         * misc.c (openpgp_md_map_name,openpgp_cipher_map_name)
2246         (openpgp_pk_map_name): New.
2248         * skclist.c (build_sk_list): Removed faked RNG support.
2249         (is_insecure): Removed.
2251         * comment.c (make_mpi_comment_node): Use gcry MPI print function.
2253         * keyid.c (v3_keyid): New.
2255         * misc.c (mpi_write,mpi_write_opaque,mpi_read,mpi_read_opaque)
2256         (mpi_print): New.  Taken from gnupg 1.1.2.
2257         (checksum_mpi): Replaced by implementation from 1.1.2.
2259         * g10.c (my_strusage): Renamed from strusage and return NULL
2260         instead calling a default function.
2261         (add_to_strlist2): New.  Taken from ../util/strgutil.c of gnupg 1.2.
2263         * plaintext.c (handle_plaintext): New arg CREATE_FILE to cope with
2264         the fact that gpg-error does not have this error code anymore.
2266         * mainproc.c (symkey_decrypt_sesskey): Ditto.
2268         * seskey.c (make_session_key): Adjusted for use with libgcrypt.
2269         (encode_session_key): Ditto.
2270         (do_encode_md): Ditto.
2271         (encode_md_value): Ditto.
2273         * keyring.c: Use libgpg-error instead of READ_ERROR etc.
2275         * g10.c: Adjusted all algorithm name/id mapping functions.
2276         (set_debug): Pass MPI and CRYPTO debug values to libgcrypt.
2278         * Makefile.am (INCLUDES): Define LOCALEDIR and the default error
2279         source.
2281         * g10.c (i18n_init): s/G10_LOCALEDIR/LOCALEDIR/.
2283         Renamed m_alloc et al to xmalloc et al.
2284         s/g10_errstr/gpg_strerror/
2285         s/MPI/gcry_mpi_t/
2286         Adjusted all md_open calls to the libgcrypt API.
2287         
2288         * build-packet.c (do_comment): Return error code from iobuf write
2289         function.
2290         (do_user_id): Ditto.
2291         (do_public_key): Ditto.
2293         * Makefile.am: Add new files, link gpg with libgpg-error.
2294         * g10.c, options.h: New option --agent-program.
2295         * call-agent.c: New.
2296         * gpg.h, call-agent.h: New.
2298 2003-06-03  David Shaw  <dshaw@jabberwocky.com>
2300         * options.h, g10.c (main), keylist.c (list_keyblock_print): Add
2301         "show-validity" and "show-long-keyid" list-options.
2303         * gpgv.c (get_validity, trust_value_to_string): Stubs.
2305         * g10.c (main): Use SAFE_VERSION instead of VERSION in the
2306         version-specific gpg.conf file so it can be overridden on RISCOS.
2308 2003-06-01  David Shaw  <dshaw@jabberwocky.com>
2310         * g10.c (main), keylist.c (show_policy_url, show_notation),
2311         mainproc.c (check_sig_and_print): Emulate the old policy and
2312         notation behavior (display by default).  Send to status-fd whether
2313         it is displayed on the screen or not.
2315         * g10.c (main): Since we now have some options in devel that won't
2316         work in a stable branch gpg.conf file, try for a version-specific
2317         gpg.conf-VERSION file before falling back to gpg.conf.
2319         * main.h, options.h: Move various option flags to options.h.
2321 2003-05-31  David Shaw  <dshaw@jabberwocky.com>
2323         * mainproc.c (check_sig_and_print), main.h, keylist.c
2324         (show_policy, show_notation): Collapse the old print_notation_data
2325         into show_policy() and show_notation() so there is only one
2326         function to print notations and policy URLs.
2328         * options.h, main.h, g10.c (main), keyedit.c
2329         (print_and_check_one_sig), keylist.c (list_one,
2330         list_keyblock_print), pkclist.c (do_edit_ownertrust), sign.c
2331         (mk_notation_and_policy): New "list-options" and "verify-options"
2332         commands.  These replace the existing
2333         --show-photos/--no-show-photos,
2334         --show-notation/--no-show-notation,
2335         --show-policy-url/--no-show-policy-url, and --show-keyring
2336         options.  The new method is more flexible since a user can specify
2337         (for example) showing photos during sig verification, but not in
2338         key listings.  The old options are emulated.
2340         * main.h, misc.c (parse_options): New general option line
2341         parser. Fix the bug in the old version that did not handle report
2342         syntax errors after a valid entry.
2344         * import.c (parse_import_options), export.c
2345         (parse_export_options): Call it here instead of duplicating the
2346         code.
2348 2003-05-30  David Shaw  <dshaw@jabberwocky.com>
2350         * keylist.c (list_one): Don't show the keyring filename when in
2351         --with-colons mode.  Actually translate "Keyring" string.
2353         * mainproc.c (proc_tree): We can't currently handle multiple
2354         signatures of different classes or digests (we'd pretty much have
2355         to run a different hash context for each), but if they are all the
2356         same, make an exception.  This is Debian bug #194292.
2358         * sig-check.c (check_key_signature2): Make string translatable.
2360         * packet.h, getkey.c (fixup_uidnode): Mark real primary uids
2361         differently than assumed primaries.
2363         * keyedit.c (no_primary_warning): Use the differently marked
2364         primaries here in a new function to warn when an --edit-key
2365         command might rearrange the self-sig dates enough to change which
2366         uid is primary.
2367         (menu_expire, menu_set_preferences): Use no_primary_warning()
2368         here.
2370         * Makefile.am: Use @DLLIBS@ for -ldl.
2372 2003-05-26  David Shaw  <dshaw@jabberwocky.com>
2374         * getkey.c (premerge_public_with_secret): Made "no secret subkey
2375         for" warning a verbose item and translatable. (From wk on stable
2376         branch)
2378         * sig-check.c (check_key_signature2): Made "no subkey for subkey
2379         binding packet" a verbose item instead of a !quiet one.  There are
2380         too many garbled keys out in the wild. (From wk on stable branch)
2382         * filter.h: Remove const from WHAT. (From wk on stable branch)
2384         * progress.c (handle_progress): Store a copy of
2385         NAME. (progress_filter): Release WHAT, make sure not to print a
2386         NULL WHAT. (From wk on stable branch)
2388         * openfile.c (open_sigfile): Adjust free for new progress
2389         semantics. (From wk on stable branch)
2391         * plaintext.c (ask_for_detached_datafile): Don't dealloc
2392         pfx->WHAT. (From wk on stable branch)
2394         * seckey-cert.c (do_check): Issue the RSA_OR_IDEA status when the
2395         cipher algo is IDEA to make it easier to track down the
2396         problem. (From twoaday on stable branch)
2397         
2398 2003-05-24  David Shaw  <dshaw@jabberwocky.com>
2400         * armor.c, g10.c, kbnode.c, misc.c, pkclist.c, sign.c,
2401         build-packet.c, getkey.c, keydb.c, openfile.c, plaintext.c,
2402         status.c, gpgv.c, keygen.c, options.h, sig-check.c, tdbio.h,
2403         encode.c, mainproc.c, parse-packet.c, signal.c, textfilter.c: Edit
2404         all preprocessor instructions to remove whitespace before the '#'.
2405         This is not required by C89, but there are some compilers out
2406         there that don't like it.
2408 2003-05-21  David Shaw  <dshaw@jabberwocky.com>
2410         * trustdb.h, trustdb.c (is_disabled), gpgv.c (is_disabled): Rename
2411         is_disabled to cache_disabled_value, which now takes a pk and not
2412         just the keyid. This is for speed since there is no need to
2413         re-fetch a key when we already have that key handy.  Cache the
2414         result of the check so we don't need to hit the trustdb more than
2415         once.
2416         
2417         * getkey.c (skip_disabled): New function to get a pk and call
2418         is_disabled on it. (key_byname): Use it here.
2419         
2420         * packet.h, getkey.c (skip_disabled), keylist.c
2421         (print_capabilities): New "pk_is_disabled" macro to retrieve the
2422         cached disabled value if available, and fill it in via
2423         cache_disabled_value if not available.
2425         * trustdb.c (get_validity): Cache the disabled value since we have
2426         it handy and it might be useful later.
2428         * parse-packet.c (parse_key): Clear disabled flag when parsing a
2429         new key.  Just in case someone forgets to clear the whole key.
2431         * getkey.c (merge_selfsigs_main): Add an "if all else fails" path
2432         for setting a single user ID primary when there are multiple set
2433         primaries all at the same second, or no primaries set and the most
2434         recent user IDs are at the same second, or no signed user IDs at
2435         all. This is arbitrary, but deterministic.
2437         * exec.h, photoid.h: Add copyright message.
2439         * keylist.c (list_keyblock_print): Don't dump attribs for
2440         revoked/expired/etc uids for non-colon key listings.  This is for
2441         consistency with --show-photos.
2443         * main.h, keylist.c (dump_attribs), mainproc.c
2444         (check_sig_and_print): Dump attribs if --attrib-fd is set when
2445         verifying signatures.
2446         
2447         * g10.c (main): New --gnupg option to disable the various
2448         --openpgp, --pgpX, etc. options.  This is the same as --no-XXXX
2449         for those options.
2451         * revoke.c (ask_revocation_reason): Clear old reason if user
2452         elects to repeat question.  This is bug 153.
2454         * keyedit.c (sign_uids): Show keyid of the key making the
2455         signature.
2457 2003-05-21  Werner Koch  <wk@gnupg.org>
2459         * progress.c (handle_progress)
2460         * sign.c (write_plaintext_packet)
2461         * encode.c (encode_simple,encode_crypt): Make sure that a filename
2462         of "-" is considered to be stdin so that iobuf_get_filelength
2463         won't get called.  This fixes bug 156 reported by Gregery Barton.
2465 2003-05-02  David Shaw  <dshaw@jabberwocky.com>
2467         * packet.h, build-packet.c (build_sig_subpkt), export.c
2468         (do_export_stream), import.c (remove_bad_stuff, import),
2469         parse-packet.c (dump_sig_subpkt, parse_one_sig_subpkt): Remove
2470         vestigal code for the old sig cache subpacket.  This wasn't
2471         completely harmless as it caused subpacket 101 to disappear on
2472         import and export.
2474         * options.h, armor.c, cipher.c, g10.c, keyedit.c, pkclist.c,
2475         sign.c, encode.c, getkey.c, revoke.c: The current flags for
2476         different levels of PGP-ness are massively complex.  This is step
2477         one in simplifying them. No functional change yet, just use a
2478         macro to check for compliance level.
2480         * sign.c (sign_file): Fix bug that causes spurious compression
2481         preference warning.
2483         * sign.c (clearsign_file): Fix bug that prevents proper warning
2484         message from appearing when clearsigning in --pgp2 mode with a
2485         non-v3 RSA key.
2487         * main.h, misc.c (compliance_option_string, compliance_string,
2488         compliance_failure), pkclist.c (build_pk_list), sign.c (sign_file,
2489         clearsign_file), encode.c (encode_crypt,
2490         write_pubkey_enc_from_list): New functions to put the "this
2491         message may not be usable...." warning in one place.
2493         * options.h, g10.c (main): Part two of the simplification.  Use a
2494         single enum to indicate what we are compliant to (1991, 2440,
2495         PGPx, etc.)
2497         * g10.c (main): Show errors for failure in export, send-keys,
2498         recv-keys, and refresh-keys.
2500         * options.h, g10.c (main): Give algorithm warnings for algorithms
2501         chosen against the --pgpX and --openpgp rules.
2503         * keydb.h, pkclist.c (algo_available): Make TIGER192 invalid in
2504         --openpgp mode.
2506         * sign.c (sign_file), pkclist.c (algo_available): Allow passing a
2507         hint of 0.
2509 2003-05-01  David Shaw  <dshaw@jabberwocky.com>
2511         * tdbio.c (create_version_record): Only create new trustdbs with
2512         TM_CLASSIC or TM_PGP.
2514         * trustdb.h, trustdb.c (trust_string, get_ownertrust_string,
2515         get_validity_string, ask_ownertrust, validate_keys), pkclist.c
2516         (do_edit_ownertrust): Rename trust_string to trust_value_to_string
2517         for naming consistency.
2519         * trustdb.h, trustdb.c (string_to_trust_value): New function to
2520         translate a string to a trust value.
2522         * g10.c (main): Use string_to_trust_value here for
2523         --force-ownertrust.
2524         
2525         * options.h, g10.c (main), trustdb.c (trust_model_string,
2526         init_trustdb, check_trustdb, update_trustdb, get_validity,
2527         validate_one_keyblock): An "OpenPGP" trust model is misleading
2528         since there is no official OpenPGP trust model.  Use "PGP"
2529         instead.
2531 2003-04-30  David Shaw  <dshaw@jabberwocky.com>
2533         * build-packet.c (build_sig_subpkt): Comments.
2535         * exec.c (exec_write): Cast NULL to void* to properly terminate
2536         varargs list.
2538         * keyedit.c (show_key_with_all_names): Just for safety, catch an
2539         invalid pk algorithm.
2541         * sign.c (make_keysig_packet): Crucial that the call to mksubpkt
2542         comes LAST before the calls to finalize the sig as that makes it
2543         possible for the mksubpkt function to get a reliable pointer to
2544         the subpacket area.
2546         * pkclist.c (do_we_trust_pre): If an untrusted key was chosen by a
2547         particular user ID, use that ID as the one to ask about when
2548         prompting whether to use the key anyway.
2549         (build_pk_list): Similar change here when adding keys to the
2550         recipient list.
2552         * trustdb.c (update_validity): Fix bug that prevented more than
2553         one validity record per trust record.
2554         (get_validity): When retrieving validity for a (user) supplied
2555         user ID, return the validity for that user ID only, and do not
2556         fall back to the general key validity.
2557         (validate_one_keyblock): Some commentary on whether
2558         non-self-signed user IDs belong in the web of trust (arguably,
2559         they do).
2561 2003-04-27  David Shaw  <dshaw@jabberwocky.com>
2563         * g10.c (main): Add --no-textmode.
2565         * export.c (do_export_stream), keyedit.c (show_key_with_all_names,
2566         menu_addrevoker), mainproc.c (check_sig_and_print), photoid.c
2567         (show_photos), sign.c (mk_notation_and_policy), trustdb.c
2568         (get_validity, reset_trust_records, validate_keys): Make some
2569         strings translatable.
2571         * mainproc.c (check_sig_and_print): Show digest algorithm and sig
2572         class when verifying a sig with --verbose on, and add version, pk
2573         and hash algorithms and sig class to VALIDSIG.
2574         
2575         * parse-packet.c (enum_sig_subpkt): Make a warning message a
2576         --verbose warning message since we don't need to warn every time
2577         we see an unknown critical (we only need to invalidate the
2578         signature).
2580         * trustdb.c (init_trustdb): Check the trustdb options even with
2581         TM_AUTO since the auto may become TM_CLASSIC or TM_OPENPGP.
2583 2003-04-26  David Shaw  <dshaw@jabberwocky.com>
2585         * sign.c (do_sign): Show the hash used when making a signature in
2586         verbose mode.
2588         * tdbio.h, tdbio.c (tdbio_read_model): New function to return the
2589         trust model used in a given trustdb.
2591         * options.h, g10.c (main), trustdb.c (init_trustdb, check_trustdb,
2592         update_trustdb): Use tdbio_read_model to implement an "auto" trust
2593         model which is set via the trustdb.
2595 2003-04-23  David Shaw  <dshaw@jabberwocky.com>
2597         * import.c (import_revoke_cert): Remove ultimate trust when
2598         revoking an ultimately trusted key.
2600         * keyedit.c (sign_uids): Allow replacing expired signatures.
2601         Allow duplicate signatures with --expert.
2603         * pkclist.c (check_signatures_trust): Don't display a null
2604         fingerprint when checking a signature with --always-trust enabled.
2606         * filter.h (progress_filter_context_t), progress.c
2607         (handle_progress), plaintext.c (ask_for_detached_datafile,
2608         hash_datafiles): Fix compiler warnings.  Make "what" constant.
2610         * build-packet.c (do_plaintext): Do not create invalid literal
2611         packets with >255-byte names.
2613 2003-04-15  Werner Koch  <wk@gnupg.org>
2615         * Makefile.am (AM_CFLAGS): Make use of AM_CFLAGS and AM_LDFLAGS.
2617         * g10.c, options.h: New option --enable-progress-filter.
2618         * progress.c (handle_progress): Make use of it.
2620 2003-04-15  Marcus Brinkmann  <marcus@g10code.de>
2622         * progress.c: New file.
2623         * Makefile.am (common_source): Add progress.c.
2624         * filter.h (progress_filter_context_t): New type.
2625         (progress_filter, handle_progress): New prototypes.
2626         * main.h (open_sigfile): New argument for prototype.
2627         * openfile.c (open_sigfile): New argument to install progress
2628         filter.
2629         * encode.c (encode_simple): New variable PFX.  Register
2630         progress filter.  Install text_filter after that.
2631         (encode_crypt): Likewise.
2632         * sign.c (sign_file): Likewise.
2633         (clearsign_file): Likewise.
2634         * decrypt.c (decrypt_message): Likewise.
2635         (decrypt_messages): Likewise.
2636         * verify.c (verify_signatures): Likewise.
2637         (verify_one_file): Likewise.
2638         * plaintext.c (hash_datafiles): Likewise.
2639         (ask_for_detached_datafile): Likewise.
2641 2003-04-10  Werner Koch  <wk@gnupg.org>
2643         * passphrase.c (read_passphrase_from_fd): Do a dummy read if the
2644         agent is to be used.  Noted by Ingo Klöcker.
2645         (agent_get_passphrase): Inhibit caching when we have no
2646         fingerprint.  This is required for key generation as well as for
2647         symmetric only encryption.
2649         * passphrase .c (agent_get_passphrase): New arg CANCELED.
2650         (passphrase_to_dek): Ditto.  Passed to above.  Changed all
2651         callers to pass NULL.
2652         * seckey-cert.c (do_check): New arg CANCELED.
2653         (check_secret_key): Terminate loop when canceled.
2655         * keyedit.c (change_passphrase): Pass ERRTEXT untranslated to
2656         passphrase_to_dek and translate where appropriate.
2657         * seckey-cert.c (check_secret_key): Ditto.
2658         * keygen.c (ask_passphrase): Ditto.
2659         * passphrase.c (agent_get_passphrase): Translate the TRYAGAIN_TEXT.
2660         Switch the codeset to utf-8.
2662 2003-04-09  Werner Koch  <wk@gnupg.org>
2664         * decrypt.c (decrypt_messages): Fixed error handling; the function
2665         used to re-loop with same file after an error.  Reported by Joseph
2666         Walton.
2668 2003-04-08  David Shaw  <dshaw@jabberwocky.com>
2670         * main.h, g10.c (main), import.c (parse_import_options,
2671         fix_pks_corruption): It's really PKS corruption, not HKP
2672         corruption.  Keep the old repair-hkp-subkey-bug command as an
2673         alias.
2675         * g10.c (main): Rename --no-version to --no-emit-version for
2676         consistency.  Keep --no-version as an alias.
2678 2003-04-04  David Shaw  <dshaw@jabberwocky.com>
2680         * pkclist.c (algo_available): PGP 8 can use the SHA-256 hash.
2682         * sign.c (sign_file, clearsign_file, sign_symencrypt_file): Remove
2683         unused code.
2685 2003-04-01  Werner Koch  <wk@gnupg.org>
2687         * mainproc.c (check_sig_and_print): Add primary key fpr to VALIDSIG
2688         status.
2690 2003-03-24  David Shaw  <dshaw@jabberwocky.com>
2692         * keydb.h: Err on the side of making an unknown signature a SIG
2693         rather than a CERT.
2695         * import.c (delete_inv_parts): Discard any key signatures that
2696         aren't key types (i.e. 0x00, 0x01, etc.)
2698         * g10.c (main): Add deprecated option warning for
2699         --list-ownertrust.  Add --compression-algo alias for
2700         --compress-algo.  Change --version output strings to match
2701         "showpref" strings, and make translatable.
2703         * status.c (do_get_from_fd): Accept 'y' as well as 'Y' for
2704         --command-fd boolean input.
2706         * trustdb.c: Fix typo (DISABLE_REGEXP -> DISABLE_REGEX)
2708         * keyedit.c (show_key_with_all_names_colon): Show no-ks-modify
2709         flag.
2711 2003-03-11  David Shaw  <dshaw@jabberwocky.com>
2713         * options.h, g10.c (main), keyserver.c (kopts): Add "try-dns-srv"
2714         keyserver option.  Defaults to on.
2716         * passphrase.c (agent_get_passphrase): Fix memory leak with
2717         symmetric messages.  Fix segfault with symmetric messages.  Fix
2718         incorrect prompt with symmetric messages.
2720 2003-03-10  Werner Koch  <wk@gnupg.org>
2722         * compress.c (init_uncompress): Use a 15 bit window size so that
2723         the output of implementations which don't run for PGP 2
2724         compatibility won't get garbled.
2726 2003-03-04  David Shaw  <dshaw@jabberwocky.com>
2728         * trustdb.c (validate_keys): Mask the ownertrust when building the
2729         list of fully valid keys so that disabled keys are still counted
2730         in the web of trust.
2731         (get_ownertrust_with_min): Do the same for the minimum ownertrust
2732         calculation.
2734         * parse-packet.c (dump_sig_subpkt): Show the notation names for
2735         not-human-readable notations.  Fix cosmetic off-by-one length
2736         counter.
2738         * options.skel: Add explantion and commented-out
2739         "no-mangle-dos-filenames".
2741         * mainproc.c (proc_encrypted): Make string translatable.
2743         * keyserver.c (keyserver_spawn): Quote ':', '%', and any 8-bit
2744         characters in the uid strings sent to the keyserver helper.
2746         * keyring.c (keyring_rebuild_cache): Lock the keyring while
2747         rebuilding the signature caches to prevent another gpg from
2748         tampering with the temporary copy.
2750         * keygen.c (keygen_set_std_prefs): Include AES192 and AES256 in
2751         default prefs.
2753         * keyedit.c (show_prefs): Make strings translatable.
2755         * keydb.c: Double the maximum number of keyrings to 40.
2757         * gpgv.c (main): Fix bug #113 - gpgv should accept the
2758         --ignore-time-conflict option.
2760         * g10.c (main): --openpgp disables --pgpX.  Double the amount of
2761         secure memory to 32k (keys are getting bigger these days).
2763         * Makefile.am: Makefile.am: Use @CAPLIBS@ to link in -lcap if we
2764         are using capabilities.
2766 2003-02-26  David Shaw  <dshaw@jabberwocky.com>
2768         * keyserver.c (keyserver_spawn): Include various pieces of
2769         information about the key in the data sent to the keyserver
2770         helper.  This allows the helper to use it in instructing a remote
2771         server which may not have any actual OpenPGP smarts in parsing
2772         keys.
2774         * main.h, export.c (export_pubkeys_stream, do_export_stream): Add
2775         ability to return only the first match in an exported keyblock for
2776         keyserver usage.  This should be replaced at some point with a
2777         more flexible solution where each key can be armored seperately.
2779 2003-02-22  David Shaw  <dshaw@jabberwocky.com>
2781         * sign.c (sign_file): Do not push textmode filter onto an unopened
2782         IOBUF (segfault).  Noted by Marcus Brinkmann.  Push and
2783         reinitialize textmode filter for each file in a multiple file
2784         list.
2786         * packet.h, getkey.c (fixup_uidnode), keyedit.c (show_prefs): Set
2787         and show the keyserver no-modify flag.
2789         * keygen.c (add_keyserver_modify): New.
2790         (keygen_upd_std_prefs): Call it here.
2791         (keygen_set_std_prefs): Accept "ks-modify" and "no-ks-modify" as
2792         prefs to set and unset keyserver modify flag.
2794         * g10.c (main): Accept "s1" in addition to "idea" to match the
2795         other ciphers.
2797         * main.h, misc.c (idea_cipher_warn): We don't need this if IDEA
2798         has been disabled.
2800 2003-02-21  David Shaw  <dshaw@jabberwocky.com>
2802         * keygen.c (keygen_set_std_prefs): Don't put AES or CAST5 in
2803         default prefs if they are disabled.
2805         * g10.c (main): Use 3DES instead of CAST5 if we don't have CAST5
2806         support.  Use 3DES for the s2k cipher in --openpgp mode.
2807         (print_mds): #ifdef all of the optional digest algorithms.
2809 2003-02-12  David Shaw  <dshaw@jabberwocky.com>
2811         * keydb.h, getkey.c (classify_user_id, classify_user_id2): Make
2812         'exact' a per-desc item.  Merge into one function since
2813         'force_exact' is no longer needed.
2814         (key_byname): Use new classify_user_id function, and new exact
2815         flag in KEYDB_SEARCH_DESC.
2817         * keyring.h, keyring.c (keyring_search): Return an optional index
2818         to show which KEYDB_SEARCH_DESC was the matching one.
2820         * keydb.h, keydb.c (keydb_search): Rename to keydb_search2, and
2821         pass the optional index to keyring_search.  Add a macro version of
2822         keydb_search that calls this new function.
2824         * export.c (do_export_stream): If the keyid! syntax is used,
2825         export only that specified key.  If the key in question is a
2826         subkey, export the primary plus that subkey only.
2828 2003-02-11  David Shaw  <dshaw@jabberwocky.com>
2830         * exec.c (set_exec_path): Add debugging line.
2832         * g10.c (print_hex, print_mds): Print long hash strings a lot
2833         neater.  This assumes at least an 80-character display, as there
2834         are a few other similar assumptions here and there.  Users who
2835         need unformatted hashes can still use with-colons.  Check that
2836         SHA384 and 512 are available before using them as they are no
2837         longer always available.
2839         * Makefile.am: Use a local copy of libexecdir along with @PACKAGE@
2840         as GNUPG_LIBEXECDIR so it can be easily overridden at make time.
2842 2003-02-04  David Shaw  <dshaw@jabberwocky.com>
2844         * armor.c (parse_hash_header, armor_filter): Accept the new SHAs
2845         in the armor Hash: header.
2847         * g10.c (print_hex): Print long hash strings a little neater.
2848         (print_mds): Add the new SHAs to the hash list.
2850 2003-02-02  David Shaw  <dshaw@jabberwocky.com>
2852         * keyedit.c (menu_revuid): Properly handle a nonselfsigned uid on
2853         a v4 key (treat as a v4 revocation).
2855         * import.c (print_import_check): Do not re-utf8 convert user IDs.
2857 2003-01-27  David Shaw  <dshaw@jabberwocky.com>
2859         * mainproc.c (list_node): Show signature expiration date in
2860         with-colons sig records.
2862         * keylist.c (list_keyblock_colon), mainproc.c (list_node): Show
2863         trust sig information in with-colons sig records.
2865 2003-01-16  David Shaw  <dshaw@jabberwocky.com>
2867         * g10.c (add_group): Trim whitespace after a group name so it does
2868         not matter where the user puts the = sign.
2870         * options.skel: Comment out the first three lines in case someone
2871         manually copies the skel file to their homedir.
2873         * sign.c (clearsign_file): Only use pgp2mode with v3 keys and
2874         MD5. This matches what we do when decoding such messages and
2875         prevents creating a message (v3+RIPEMD/160) that we can't verify.
2877         * sig-check.c (signature_check2): Use G10ERR_GENERAL as the error
2878         for signature digest conflict.  BAD_SIGN implies that a signature
2879         was checked and we may try and print out a user ID for a key that
2880         doesn't exist.
2882 2003-01-15  David Shaw  <dshaw@jabberwocky.com>
2884         * trustdb.c (init_trustdb, get_validity): Don't use a changed
2885         trust model to indicate a dirty trustdb, and never auto-rebuild a
2886         dirty trustdb with the "always" trust model.
2888         * g10.c (add_group): Last commit missed the \t ;)
2890 2003-01-14  David Shaw  <dshaw@jabberwocky.com>
2892         * packet.h, parse-packet.c (setup_user_id), free-packet.c
2893         (free_user_id), keydb.h, keyid.c (namehash_from_uid): New function
2894         to rmd160-hash the contents of a user ID packet and cache it in
2895         the uid object.
2897         * keylist.c (list_keyblock_colon): Use namehash in field 8 of
2898         uids.  Show dates for creation (selfsig date), and expiration in
2899         fields 6 and 7.
2901         * trustdb.c (get_validity, get_validity_counts, update_validity):
2902         Use new namehash function rather than hashing it locally.
2904 2003-01-14  Werner Koch  <wk@gnupg.org>
2906         * g10.c (add_group): Fixed group parsing to allow more than one
2907         delimiter in a row and also allow tab as delimiter.
2909 2003-01-12  David Shaw  <dshaw@jabberwocky.com>
2911         * tdbio.c (tdbio_set_dbname): Fix assertion failure with
2912         non-fully-qualified trustdb names.
2914 2003-01-11  David Shaw  <dshaw@jabberwocky.com>
2916         * trustdb.c (get_validity_info, get_ownertrust_info,
2917         trust_letter): Simplify by returning a ? for error directly.
2919         * keyedit.c (show_key_with_all_names): Use get_validity_string and
2920         get_ownertrust_string to show full word versions of trust
2921         (i.e. "full" instead of 'f').
2923         * trustdb.h, trustdb.c (get_ownertrust_string,
2924         get_validity_string): Same as get_ownertrust_info, and
2925         get_validity_info, except returns a full string.
2927         * trustdb.c (get_ownertrust_with_min): New.  Same as
2928         'get_ownertrust' but takes the min_ownertrust value into account.
2930 2003-01-10  David Shaw  <dshaw@jabberwocky.com>
2932         * armor.c (armor_filter): Comment about PGP's end of line tab
2933         problem.
2935         * trustdb.h, trustdb.c (trust_letter): Make
2936         static. (get_ownertrust_info, get_validity_info): Don't mask the
2937         trust level twice.
2939         * trustdb.h, gpgv.c, trustdb.c (get_validity, get_validity_info),
2940         keylist.c (list_keyblock_colon), keyedit.c
2941         (show_key_with_all_names_colon, menu_revuid): Pass a user ID in
2942         rather than a namehash, so we only have to do the hashing in one
2943         place.
2945         * packet.h, pkclist.c (build_pk_list), free-packet.c
2946         (release_public_key_parts): Remove unused namehash element for
2947         public keys.
2949 2003-01-07  David Shaw  <dshaw@jabberwocky.com>
2951         * keygen.c (keygen_set_std_prefs): Warn when setting an IDEA
2952         preference when IDEA is not available.
2954 2003-01-06  David Shaw  <dshaw@jabberwocky.com>
2956         * trustdb.c (get_validity_info): 'd' for disabled is not a
2957         validity value any more.
2959         * packet.h, tdbio.h, tdbio.c (tdbio_read_record,
2960         tdbio_write_record), trustdb.c (update_validity): Store temporary
2961         full & marginal counts in the trustdb.
2962         (clear_validity, get_validity_counts): Return and clear temp
2963         counts.
2964         (store_validation_status): Keep track of which keyids have been
2965         stored.
2966         (validate_one_keyblock, validate_key_list): Use per-uid copies of
2967         the full & marginal counts so they can be recalled for multiple
2968         levels.
2969         (validate_keys): Only use unused keys for each new round.
2970         (reset_unconnected_keys): Rename to reset_trust_records, and only
2971         skip specifically excluded records.
2973         * keylist.c (print_capabilities): Show 'D' for disabled keys in
2974         capabilities section.
2976         * trustdb.c (is_disabled): Remove incorrect comment.
2978 2003-01-03  David Shaw  <dshaw@jabberwocky.com>
2980         * import.c (import_one): Only do the work to create the status
2981         display for interactive import if status is enabled.
2983         * keyring.c (keyring_search): skipfnc didn't work properly with
2984         non-keyid searches.  Noted by Stefan Bellon.
2986         * getkey.c (merge_selfsigs_main): Remove some unused code and make
2987         sure that the pk selfsigversion member accounts for 1F direct
2988         sigs.
2990 2003-01-02  Werner Koch  <wk@gnupg.org>
2992         * keydb.c (keydb_add_resource): Don't assume that try_make_homedir
2993         terminates but check again for the existence of the directory and
2994         continue then.
2995         * openfile.c (copy_options_file): Print a warning if the skeleton
2996         file has active options.
2998 2002-12-29  David Shaw  <dshaw@jabberwocky.com>
3000         * getkey.c (merge_selfsigs_main), main.h, sig-check.c
3001         (check_key_signature2): Pass the ultimately trusted pk directly to
3002         check_key_signature2 to avoid going through the key selection
3003         mechanism.  This prevents a deadly embrace when two keys without
3004         selfsigs each sign the other.
3006 2002-12-27  David Shaw  <dshaw@jabberwocky.com>
3008         * keyserver.c (keyserver_refresh): Don't print the "refreshing..."
3009         line if there are no keys to refresh or if there is no keyserver
3010         set.
3012         * getkey.c (merge_selfsigs_main): Any valid user ID should make a
3013         key valid, not just the last one.  This also fixes Debian bug
3014         #174276.
3016 2002-12-27  Stefan Bellon  <sbellon@sbellon.de>
3018         * import.c (print_import_check): Changed int to size_t.
3020 2002-12-27  David Shaw  <dshaw@jabberwocky.com>
3022         * keyedit.c (keyedit_menu, menu_revuid): Add "revuid" feature to
3023         revoke a user ID.  This is the same as issuing a revocation for
3024         the self-signature, but a much simpler interface to do it.
3026 2002-12-26  David Shaw  <dshaw@jabberwocky.com>
3028         * keydb.h, getkey.c (key_byname): Flag to enable or disable
3029         including disabled keys.  Keys specified via keyid (i.e. 0x...)
3030         are always included.
3032         * getkey.c (get_pubkey_byname, get_seckey_byname2,
3033         get_seckey_bynames), keyedit.c (keyedit_menu, menu_addrevoker):
3034         Include disabled keys in these functions.
3036         * pkclist.c (build_pk_list): Do not include disabled keys for -r
3037         or the key prompt.  Do include disabled keys for the default key
3038         and --encrypt-to.
3040         * trustdb.h, trustdb.c (is_disabled): New skipfnc for skipping
3041         disabled keys.
3043         * gpgv.c (is_disabled): Stub.
3045         * keygen.c (keygen_add_key_expire): Properly handle updating a key
3046         expiration to a no-expiration value.
3048         * keyedit.c (enable_disable_key): Comment.
3050         * import.c (import_one): When in interactive mode and --verbose,
3051         don't repeat some key information twice.
3053 2002-12-22  Timo Schulz  <ts@winpt.org>
3054         
3055         * import.c (print_import_check): New.
3056         (import_one): Use it here.
3057         Use merge_keys_and_selfsig in the interactive mode to avoid
3058         wrong key information.
3059         * status.h: Add new status code.
3060         * status.c: Ditto.
3061         
3062 2002-12-13  David Shaw  <dshaw@jabberwocky.com>
3064         * pkclist.c (do_we_trust): Tweak language to refer to the "named
3065         user" rather than "owner".  Noted by Stefan Bellon.
3067         * trustdb.h, trustdb.c (trustdb_pending_check): New function to
3068         check if the trustdb needs a check.
3070         * import.c (import_keys_internal): Used here so we don't rebuild
3071         the trustdb if it is still clean.
3072         (import_one, chk_self_sigs): Only mark trustdb dirty if the key
3073         that is being imported has any sigs other than self-sigs.
3074         Suggested by Adrian von Bidder.
3076         * options.skel: Include the required '=' sign in the sample
3077         'group' option.  Noted by Stefan Bellon.
3079         * import.c (chk_self_sigs): Don't try and check a subkey as if it
3080         was a signature.
3082 2002-12-11  David Shaw  <dshaw@jabberwocky.com>
3084         * tdbio.c (tdbio_read_record, tdbio_write_record): Compact the
3085         RECTYPE_TRUST records a bit.
3087         * g10.c (main): Comment out --list-trust-path until it can be
3088         implemented.
3090         * import.c (import_one): Warn when importing an Elgamal primary
3091         that this may take some time (to verify self-sigs).
3092         (chk_self_sigs): Try and cache all self-sigs so the keyblock is
3093         written to the keyring with a good rich cache.
3095         * keygen.c (ask_algo): Make the Elgamal sign+encrypt warning
3096         stronger, and remove the RSA sign+encrypt warning.
3098 2002-12-06  Stefan Bellon  <sbellon@sbellon.de>
3100         * options.h: Fixed typo (mangle_dos_names instead of
3101         mangle_dos_filenames).
3103 2002-12-05  Werner Koch  <wk@gnupg.org>
3105         * g10.c: New options --[no-]mangle-dos-filenames.
3106         * options.h (opt): Added mangle-dos-filenames.
3107         * openfile.c (open_outfile) [USE_ONLY_8DOT3]: Truncate the
3108         filename only when this option is set; this is the default.
3110 2002-12-04  David Shaw  <dshaw@jabberwocky.com>
3112         * main.h, keyedit.c, keygen.c: Back out previous (2002-12-01)
3113         change.  Minimal isn't always best.
3115         * sign.c (update_keysig_packet): Use the current time rather then
3116         a modification of the original signature time.  Make sure that
3117         this doesn't cause a time warp.
3119         * keygen.c (keygen_add_key_expire): Properly handle a key
3120         expiration date in the past (use a duration of 0).
3122         * keyedit.c (menu_expire): Use update_keysig_packet so any sig
3123         subpackets are maintained during the update.
3125         * build-packet.c (build_sig_subpkt): Mark sig expired or unexpired
3126         when the sig expiration subpacket is added.
3127         (build_sig_subpkt_from_sig): Handle making an expiration subpacket
3128         from a sig that has already expired (use a duration of 0).
3130         * packet.h, sign.c (update_keysig_packet), keyedit.c
3131         (menu_set_primary_uid, menu_set_preferences): Add ability to issue
3132         0x18 subkey binding sigs to update_keysig_packet and change all
3133         callers.
3135         * trustdb.c (validate_keys): Show trust parameters when building
3136         the trustdb, and make sure that the version record update was
3137         successful.
3138         (init_trustdb): If the current parameters aren't what was used for
3139         building the trustdb, the trustdb is invalid.
3141         * tbio.c (tdbio_db_matches_options): Update to work with new
3142         trustdbs.
3144 2002-12-03  David Shaw  <dshaw@jabberwocky.com>
3146         * tdbio.h, tdbio.c (tdbio_read_record, tdbio_write_record): Store
3147         trust model in the trustdb version record.
3148         (tdbio_update_version_record): New function to update version
3149         record values during a trustdb check or update.
3150         (tdbio_dump_record): Show trust model in dump.
3152         * trustdb.c (validate_keys): Call tdbio_update_version_record on
3153         success so that the correct options are stored in the trustdb.
3155         * options.h: rearrange trust models so that CLASSIC is 0 and
3156         OPENPGP is 1.
3158         * options.h, g10.c (main), encode.c (write_pubkey_enc_from_list),
3159         pkclist.c (algo_available), revoke.c (gen_revoke): Add --pgp8
3160         mode.  This is basically identical to --pgp7 in all ways except
3161         that signing subkeys, v4 data sigs (including expiration), and SK
3162         comments are allowed.
3164         * getkey.c (finish_lookup): Comment.
3166         * main.h, keylist.c (reorder_keyblock), keyedit.c (keyedit_menu):
3167         Reorder user ID display in the --edit-key menu to match that of
3168         the --list-keys display.
3170         * g10.c (add_notation_data): Fix initialization.
3172 2002-12-01  David Shaw  <dshaw@jabberwocky.com>
3174         * keyedit.c (menu_expire): Don't lose key flags when changing the
3175         expiration date of a subkey.  This is not the most optimal
3176         solution, but it is minimal change on the stable branch.
3178         * main.h, keygen.c (do_copy_key_flags): New function to copy key
3179         flags, if any, from one sig to another.
3180         (do_add_key_expire): New function to add key expiration to a sig.
3181         (keygen_copy_flags_add_expire): New version of
3182         keygen_add_key_expire that also copies key flags.
3183         (keygen_add_key_flags_and_expire): Use do_add_key_expire.
3185         * import.c (fix_hkp_corruption): Comment.
3187 2002-11-25  Stefan Bellon  <sbellon@sbellon.de>
3189         * plaintext.c (handle_plaintext) [__riscos__]: If nooutput is set,
3190         no filetype is needed obviously.
3192 2002-11-24  David Shaw  <dshaw@jabberwocky.com>
3194         * main.h, misc.c (default_cipher_algo, default_compress_algo):
3195         New.  Return the default algorithm by trying
3196         --cipher-algo/--compress-algo, then the first item in the pref
3197         list, then s2k-cipher-algo or ZIP.
3199         * sign.c (sign_file, sign_symencrypt_file), encode.c
3200         (encode_simple, encode_crypt): Call default_cipher_algo and
3201         default_compress_algo to get algorithms.
3203         * g10.c (main): Allow pref selection for compress algo with
3204         --openpgp.
3206         * mainproc.c (proc_encrypted): Use --s2k-digest-algo for
3207         passphrase mangling rather than --digest-algo.
3209         * sign.c (hash_for): If --digest-algo is not set, but
3210         --personal-digest-preferences is, then use the first hash
3211         algorithm in the personal list.  If the signing algorithm is DSA,
3212         then use the first 160-bit hash algorithm in the personal list.
3213         If --pgp2 is set and it's a v3 RSA key, use MD5.
3215         * g10.c (main), keydb.c (keydb_add_resource,
3216         keydb_locate_writable): Rename --default-keyring as
3217         --primary-keyring.  Stefan wins the naming contest.
3219 2002-11-23  David Shaw  <dshaw@jabberwocky.com>
3221         * g10.c (add_notation_data): Disallow notation names that do not
3222         contain a '@', unless --expert is set.  This is to help prevent
3223         people from polluting the (as yet unused) IETF namespace.
3225         * main.h: Comments about default algorithms.
3227         * photoid.c (image_type_to_string): Comments about 3-letter file
3228         extensions.
3230         * encode.c (encode_simple), passphrase.c (passphrase_to_dek),
3231         sign.c (sign_symencrypt_file): Use --s2k-digest-algo for
3232         passphrase mangling rather than --digest-algo.
3234 2002-11-21  David Shaw  <dshaw@jabberwocky.com>
3236         * keygen.c (keygen_set_std_prefs): Properly handle an empty
3237         preference string.
3239         * misc.c (string_to_compress_algo): "none" is a bad choice since
3240         it conflicts with the "none" in setpref.
3242 2002-11-14  David Shaw  <dshaw@jabberwocky.com>
3244         * g10.c (main): Allow compression algorithm names as the argument
3245         to --compress-algo.  The old algorithm names still work for
3246         backwards compatibility.
3248         * misc.c (string_to_compress_algo): Allow "none" as an alias for
3249         "uncompressed".
3251 2002-11-13  Stefan Bellon  <sbellon@sbellon.de>
3253         * getkey.c (get_pubkey_byfprint_fast): Fixed type incompatibility,
3254         was unsigned char instead of byte.
3256 2002-11-13  David Shaw  <dshaw@jabberwocky.com>
3258         * encode.c (encode_simple): Make sure that files larger than about
3259         4G use partial length encoding.  This is required because OpenPGP
3260         allows only for 32 bit length fields.  From Werner on stable
3261         branch.
3263         * getkey.c (get_pubkey_direct): Renamed to...
3264         (get_pubkey_fast): this and made extern.
3265         (get_pubkey_byfprint_fast): New.  From Werner on stable branch.
3267         * keydb.h, import.c (import_one): Use get_pubkey_fast instead of
3268         get_pubkey.  We don't need a merged key and actually this might
3269         lead to recursions.
3270         (revocation_present): Likewise for search by fingerprint.  From
3271         Werner on stable branch.
3273         * g10.c (main): Try to create the trustdb even for non-colon-mode
3274         list-key operations.  This is required because getkey needs to
3275         know whether a a key is ultimately trusted.  From Werner on stable
3276         branch.
3277         
3278         * exec.c [__CYGWIN32__]: Keep cygwin separate from Mingw32;
3279         we don't need it here as it behaves more like a Posix system.
3280         From Werner on stable branch.
3282         * passphrase.c (agent_get_passphrase): Ditto.  From Werner on
3283         stable branch.
3285         * tdbio.c (MY_O_BINARY): Need binary mode with Cygwin.  From
3286         Werner on stable branch.
3288         * g10.c, gpgv.c (main) [__CYGWIN32__]: Don't get the homedir from
3289         the registry.  From Werner on stable branch.
3290         
3291         * keyedit.c (show_key_with_all_names_colon): Make --with-colons
3292         --edit display match the validity and trust of --with-colons
3293         --list-keys.
3295         * passphrase.c (agent_send_all_options): Fix compile warning.
3297         * keylist.c (list_keyblock_colon): Validity for subkeys should
3298         match that of the primary key, and not that of the last user ID.
3300         * getkey.c (merge_selfsigs): Revoked/expired/invalid primary keys
3301         carry these facts onto all their subkeys, but only after the
3302         subkey has a chance to be marked valid.  This is to fix an
3303         incorrect "invalid public key" error verifying a signature made by
3304         a revoked signing subkey, with a valid unrevoked primary key.
3306 2002-11-09  Werner Koch  <wk@gnupg.org>
3308         * passphrase.c (agent_send_all_options): Use tty_get_ttyname to
3309         get the default ttyname.
3311 2002-11-07  David Shaw  <dshaw@jabberwocky.com>
3313         * keyring.h, keyring.c (keyring_register_filename): Return the
3314         pointer if a given keyring is registered twice.
3316         * keydb.h, keydb.c (keydb_add_resource): Use flags to indicate a
3317         default keyring.
3318         (keydb_locate_writable): Prefer the default keyring if possible.
3320         * g10.c (main): Add --default-keyring option.
3322 2002-11-06  David Shaw  <dshaw@jabberwocky.com>
3324         * options.h, g10.c (main), trustdb.c (ask_ownertrust): Add
3325         --force-ownertrust option for debugging purposes.  This allows
3326         setting a whole keyring to a given trust during an
3327         --update-trustdb.  Not for normal use - it's just easier than
3328         hitting "4" all the time to test a large trustdb.
3330         * pubkey-enc.c (get_session_key): With hidden recipients or try a
3331         given passphrase against all secret keys rather than trying all
3332         secret keys in turn.  Don't if --try-all-secrets or --status-fd is
3333         enabled.
3335         * passphrase.c (passphrase_to_dek): Mode 1 means do a regular
3336         passphrase query, but don't prompt with the key info.
3338         * seckey-cert.c (do_check, check_secret_key): A negative ask count
3339         means to enable passphrase mode 1.
3341         * keydb.h, getkey.c (enum_secret_keys): Add flag to include
3342         secret-parts-missing keys (or not) in the list.
3344 2002-11-05  David Shaw  <dshaw@jabberwocky.com>
3346         * keyserver.c (keyserver_search_prompt): When --with-colons is
3347         enabled, don't try and fit the search output to the screen size -
3348         just dump the whole list.
3350 2002-11-04  David Shaw  <dshaw@jabberwocky.com>
3352         * keyserver.c (keyserver_search_prompt): When --with-colons is
3353         enabled, just dump the raw keyserver protocol to stdout and don't
3354         print the menu.
3356         * keyserver.c (show_prompt): Don't show a prompt when command-fd
3357         is being used.
3359         * trustdb.c (trust_model_string, check_trustdb, update_trustdb,
3360         validate_one_keyblock): It's not clear what a trustdb rebuild or
3361         check means with a trust model other than "classic" or "openpgp",
3362         so disallow this.
3364 2002-11-03  David Shaw  <dshaw@jabberwocky.com>
3366         * options.h, g10.c (main): Add --trust-model option.  Current
3367         models are "openpgp" which is classic+trustsigs, "classic" which
3368         is classic only, and "always" which is the same as the current
3369         option --always-trust (which still works).  Default is "openpgp".
3371         * trustdb.c (validate_one_keyblock): Use "openpgp" trust model to
3372         enable trust sigs.
3374         * gpgv.c (main), mainproc.c (check_sig_and_print), pkclist.c
3375         (do_we_trust, do_we_trust_pre, check_signatures_trust): Use new
3376         --trust-model option in place of --always-trust.
3378         * keyedit.c (sign_mk_attrib, trustsig_prompt, sign_uids,
3379         keyedit_menu): Prompt for and create a trust signature with
3380         "tsign".  This is functional, but needs better UI text.
3382         * build-packet.c (build_sig_subpkt): Able to build trust and
3383         regexp subpackets.
3385         * pkclist.c (do_edit_ownertrust): Comment.
3387 2002-11-02  David Shaw  <dshaw@jabberwocky.com>
3389         * keygen.c (set_one_pref, keygen_set_std_prefs): Allow using the
3390         full algorithm name (CAST5, SHA1) rather than the short form (S3,
3391         H2).
3393         * main.h, keygen.c (keygen_get_std_prefs), keyedit.c
3394         (keyedit_menu): Return and use a fake uid packet rather than a
3395         string since we already have a nice parser/printer in
3396         keyedit.c:show_prefs.
3398         * main.h, misc.c (string_to_compress_algo): New.
3400 2002-11-01  David Shaw  <dshaw@jabberwocky.com>
3402         * g10.c (main): Add --no-throw-keyid.
3404         * keydb.h, encode.c (write_pubkey_enc_from_list), g10.c (main),
3405         pkclist.c (build_pk_list): Add --hidden-recipient (-R) and
3406         --hidden-encrypt-to, which do a single-user variation on
3407         --throw-keyid.  The "hide this key" flag is carried in bit 0 of
3408         the pk_list flags field.
3410         * keyserver.c (parse_keyrec): Fix shadowing warning.
3412 2002-10-31  Stefan Bellon  <sbellon@sbellon.de>
3414         * compress.c (init_compress) [__riscos__]: Use
3415         riscos_load_module() to load ZLib module.
3417         * g10.c (main) [__riscos__]: Renames due to changes in riscos.c
3418         (e.g. prefixes all RISC OS specific functions with riscos_*).
3419         * photoid.c (show_photos) [__riscos__]: Likewise.
3420         * signal.c (got_fatal_signal) [__riscos__]: Likewise.
3422         * trustdb.c (check_regexp) [__riscos__]: Branch to RISC OS RegEx
3423         handling.
3425 2002-10-31  David Shaw  <dshaw@jabberwocky.com>
3427         * build-packet.c (do_plaintext), encode.c (encode_sesskey,
3428         encode_simple, encode_crypt), sign.c (write_plaintext_packet): Use
3429         wipememory() instead of memset() to wipe sensitive memory as the
3430         memset() might be optimized away.
3432 2002-10-30  David Shaw  <dshaw@jabberwocky.com>
3434         * trustdb.c (check_regexp): Modern regexps require REG_EXTENDED.
3436 2002-10-29  David Shaw  <dshaw@jabberwocky.com>
3438         * packet.h, trustdb.h, trustdb.c (trust_string): New.  Return a
3439         string like "fully trusted", "marginally trusted", etc.
3440         (get_min_ownertrust): New.  Return minimum ownertrust.
3441         (update_min_ownertrust): New.  Set minimum ownertrust.
3442         (check_regexp): New.  Check a regular epression against a user ID.
3443         (ask_ownertrust): Allow specifying a minimum value.
3444         (get_ownertrust_info): Follow the minimum ownertrust when
3445         returning a letter.
3446         (clear_validity): Remove minimum ownertrust when a key becomes
3447         invalid.
3448         (release_key_items): Release regexp along with the rest of the
3449         info.
3450         (validate_one_keyblock, validate_keys): Build a trust sig chain
3451         while validating.  Call check_regexp for regexps.  Use the minimum
3452         ownertrust if the user does not specify a genuine ownertrust.
3454         * pkclist.c (do_edit_ownertrust): Only allow user to select a
3455         trust level greater than the minimum value.
3457         * parse-packet.c (can_handle_critical): Can handle critical trust
3458         and regexp subpackets.
3460         * trustdb.h, trustdb.c (clear_ownertrusts), delkey.c
3461         (do_delete_key), import.c (import_one): Rename clear_ownertrust to
3462         clear_ownertrusts and have it clear the min_ownertrust value as
3463         well.
3465         * keylist.c (list_keyblock_print): Indent uid to match pub and
3466         sig.
3468         * keyedit.c (print_and_check_one_sig, show_key_and_fingerprint,
3469         menu_addrevoker), keylist.c (list_keyblock_print,
3470         print_fingerprint): Show "T" or the trust depth for trust
3471         signatures, and add spaces to some strings to make room for it.
3473         * packet.h, parse-packet.c (dump_sig_subpkt, parse_one_sig_subpkt,
3474         parse_signature): Parse trust signature values.
3476         * tdbio.h, tdbio.c (tdbio_read_record, tdbio_write_record):
3477         Reserve a byte for the minimum ownertrust value (for use with
3478         trust signatures).
3480 2002-10-29  Stefan Bellon  <sbellon@sbellon.de>
3482         * build-packet.c (calc_plaintext, do_plaintext): Removed RISC OS
3483         specific filetype parts (it's now done in make_basename()).
3485         * plaintext.c (handle_plaintext): Tidied up RISC OS specific
3486         filetype parts.
3488         * encode.c (encode_simple, encode_crypt): Added argument to
3489         make_basename() call.
3491         * sign.c (write_plaintext_packet): Added argument to
3492         make_basename() call.
3494 2002-10-28  Stefan Bellon  <sbellon@sbellon.de>
3496         * build-packet.c (calc_plaintext, do_plaintext): Added filetype
3497         handling for RISC OS' file types.
3499         * plaintext.c (handle_plaintext) [__riscos__]: Added filetype
3500         handling for RISC OS' file types.
3502 2002-10-23  David Shaw  <dshaw@jabberwocky.com>
3504         * main.h, import.c (sec_to_pub_keyblock, import_secret_one,
3505         parse_import_options), g10.c (main): New import-option
3506         "convert-sk-to-pk" to convert a secret key into a public key
3507         during import.  It is on by default.
3509 2002-10-23  Werner Koch  <wk@gnupg.org>
3511         * pubkey-enc.c (get_it): Fix segv, test for revoked only when PK
3512         has been assigned.
3514 2002-10-18  Timo Schulz  <ts@winpt.org>
3516         * keylist.c: (print_pubkey_info): New.
3517         (print_seckey_info): New.
3518         * main.h: Prototypes for the new functions.       
3519         * delkey.c (do_delete_key): Use it here.
3520         * revoke.c (gen_desig_revoke): Ditto.
3521         
3522 2002-10-17  Werner Koch  <wk@gnupg.org>
3524         * pkclist.c (do_edit_ownertrust): Show all user IDs.  This should
3525         be enhanced to also show the current trust level.  Suggested by
3526         Florian Weimer.
3528 2002-10-17  David Shaw  <dshaw@jabberwocky.com>
3530         * g10.c (main): Handle --strict and --no-strict from the command
3531         line before the options file is loaded.
3533 2002-10-15  David Shaw  <dshaw@jabberwocky.com>
3535         * g10.c (main): Disable --textmode when encrypting (symmetric or
3536         pk) in --pgp2 mode as PGP 2 can't handle the unknown length
3537         literal packet.  Reported by Michael Richardson.
3539 2002-10-14  David Shaw  <dshaw@jabberwocky.com>
3541         * keyserver-internal.h, keyserver.c (print_keyrec, parse_keyrec,
3542         show_prompt, keyserver_search_prompt, keyserver_spawn): Go to
3543         version 1 of the keyserver protocol.  This is a better design,
3544         similar to --with-colons, that allows for keys with multiple user
3545         IDs rather than using multiple keys.  It also matches the machine
3546         readable pksd format.  Also use a prettier --search-keys listing
3547         format that can fill different size windows (currently set at 24
3548         lines).
3550 2002-10-12  Werner Koch  <wk@gnupg.org>
3552         * keygen.c (print_status_key_created): New.
3553         (do_generate_keypair): Use it to print the fingerprint.
3554         (generate_subkeypair): Likewise.
3556 2002-10-11  David Shaw  <dshaw@jabberwocky.com>
3558         * keyedit.c (menu_addrevoker): Properly back out if the signature
3559         fails.  Also, do not allow appointing the same revoker twice, and
3560         report ALREADY_SIGNED if the user tries it.
3562 2002-10-07  David Shaw  <dshaw@jabberwocky.com>
3564         * import.c (import_keys_internal): Missed one s/inp/inp2/.
3566         * keylist.c (print_capabilities): Properly indicate per-key
3567         capabilities of sign&encrypt primary keys that have
3568         secret-parts-missing (i.e. no capabilities at all)
3570         * mainproc.c (symkey_decrypt_sesskey): Fix compiler warning.
3572 2002-10-04  David Shaw  <dshaw@jabberwocky.com>
3574         * getkey.c (get_pubkey_direct): Don't cache keys retrieved via
3575         this function as they may not have all their fields filled in.
3577         * sig-check.c (signature_check2): Use new is_primary flag to check
3578         rather than comparing main_keyid with keyid as this still works in
3579         the case of a not fully filled in pk.
3581 2002-10-04  Werner Koch  <wk@gnupg.org>
3583         * import.c (import_keys_internal): s/inp/inp2/ to avoid shadowing
3584         warning.
3586         * passphrase.c (agent_get_passphrase): Fixed signed/unsigned char
3587         problem in %-escaping.  Noted by Ingo Klöcker.
3589 2002-10-03  David Shaw  <dshaw@jabberwocky.com>
3591         * options.h, g10.c (main): Add --strict and --no-strict to switch
3592         the log_warning severity level from info to error.
3594         * keylist.c (print_capabilities): Secret-parts-missing keys should
3595         show that fact in the capabilities, and only primary signing keys
3596         can certify other keys.
3598         * packet.h, parse_packet.c (parse_key): Add is_primary flag for
3599         public keys (it already exists for secret keys).
3601 2002-10-02  David Shaw  <dshaw@jabberwocky.com>
3603         * import.c (import_secret_one): Check for an illegal (>110)
3604         protection cipher when importing a secret key.
3606         * keylist.c (list_keyblock_print): Show a '#' for a
3607         secret-parts-missing key.
3609         * parse_packet.c (parse_key): Some comments.
3611         * revoke.c (gen_revoke): Remove some debugging code.
3613         * trustdb.c (verify_own_keys): Make trusted-key a non-deprecated
3614         option again.
3616         * seckey-cert.c (do_check): Don't give the IDEA warning unless the
3617         cipher in question is in fact IDEA.
3619 2002-10-01  David Shaw  <dshaw@jabberwocky.com>
3621         * import.c (import_one): Make sure that a newly imported key
3622         starts with a clean ownertrust.
3624 2002-10-01  Werner Koch  <wk@gnupg.org>
3626         * getkey.c (get_pubkey_direct): New.
3627         (merge_selfsigs_main): Use it here to look for an ultimately
3628         trusted key.  Using the full get_pubkey might lead to an
3629         infinitive recursion.
3631 2002-09-29  David Shaw  <dshaw@jabberwocky.com>
3633         * keyserver.c (parse_keyserver_uri): Force the keyserver URI
3634         scheme to lowercase to be case-insensitive.
3636 2002-09-28  David Shaw  <dshaw@jabberwocky.com>
3638         * export.c (do_export_stream): Comment.
3640         * sig-check.c (check_key_signature2): Properly handle a
3641         non-designated revocation import.
3643 2002-09-26  Werner Koch  <wk@gnupg.org>
3645         * g10.c (set_homedir): New. Changed all direct assignments to use
3646         this.
3647         * gpgv.c (set_homedir): Ditto.
3649 2002-09-25  David Shaw  <dshaw@jabberwocky.com>
3651         * Makefile.am: Link gpg with EGDLIBS (i.e. NETLIBS) as EGD uses
3652         sockets.  Remove the old NETLIBS variable since the keyserver
3653         stuff is no longer internal.
3655 2002-09-24  David Shaw  <dshaw@jabberwocky.com>
3657         * import.c (import_keys_stream): Fix compiler type warning.
3659         * keyring.c (keyring_rebuild_cache), sig-check.c
3660         (check_key_signature2), import.c (import, chk_self_sigs): Minor
3661         language cleanups.
3663 2002-09-23  Stefan Bellon  <sbellon@sbellon.de>
3665         * main.h: Introduced fast-import as import option. Removed
3666         fast as separate option from prototypes.
3667         * import.c (parse_import_options): Added fast-import option.
3668         (import_*): Removed fast as separate option.
3669         * g10.c (main): Added option fast-import, removed old fast
3670         as separate argument.
3671         * keyserver.c (keyserver_spawn): Removed old fast as separate
3672         argument.
3674 2002-09-22  Stefan Bellon  <sbellon@sbellon.de>
3676         * import.c (import_keys, import_keys_stream,
3677         import_keys_internal): Added trustdb update/check to key import if
3678         not fast-import and interactive set/no-auto-check-trustdb unset.
3679         Avoided function clone by introducing import_keys_internal.
3681 2002-09-19  David Shaw  <dshaw@jabberwocky.com>
3683         * keyserver.c (keyserver_spawn): Properly handle line truncation.
3684         Don't leak memory (~10-20 bytes) on searches.
3685         (keyserver_search_prompt): Cleanup.
3687         * keylist.c (list_keyblock_colon): Show 1F direct key signatures
3688         in --with-colons listing.
3690 2002-09-16  David Shaw  <dshaw@jabberwocky.com>
3692         * keyedit.c (menu_addrevoker): The direct key signature for
3693         revocation keys must be at least v4 to carry the revocation key
3694         subpacket.  Add a PGP 2.x warning for revocation keys.
3696 2002-09-14  David Shaw  <dshaw@jabberwocky.com>
3698         * g10.c (check_permissions): Rearrange strings to make translating
3699         easier (don't incorporate string parts).
3701         * keyedit.c (sign_uids): Make strings translatable.
3703         * sig-check.c (check_key_signature2): Make string translatable.
3705 2002-09-13  David Shaw  <dshaw@jabberwocky.com>
3707         * getkey.c (check_revocation_keys): Move....
3708         * main.h, sig-check.c (check_revocation_keys): to here.  Also
3709         return the signature_check error code rather than 0/1 and cache
3710         the sig result.
3712         * sig-check.c (check_key_signature2): Divert to
3713         check_revocation_keys if a revocation sig is made by someone other
3714         than the pk owner.
3716         * getkey.c (merge_selfsigs_main): Tidy.
3718 2002-09-13  Werner Koch  <wk@gnupg.org>
3720         * g10.c (main) [__MINGW32__]: Activate oLoadExtension.
3722 2002-09-12  David Shaw  <dshaw@jabberwocky.com>
3724         * Makefile.am, hkp.c, hkp.h, keyserver.c (keyserver_work): Remove
3725         internal HKP support.
3727         * keyserver.c (keyserver_spawn): Remove whitespace after keyserver
3728         commands.
3730 2002-09-10  David Shaw  <dshaw@jabberwocky.com>
3732         * exec.c (expand_args): Remove loop left over from earlier
3733         implementation.
3734         (exec_write): Missed one tick.
3736 2002-09-10  Werner Koch  <wk@gnupg.org>
3738         * g10.c, options.h: Removed option --emulate-checksum-bug.
3739         * misc.c (checksum_u16_nobug): Removed.
3740         (checksum_u16): Removed the bug emulation.
3741         (checksum_mpi): Ditto.
3742         (checksum_mpi_counted_nbits): Removed and replaced all calls
3743         with checksum_mpi.
3745         * parse-packet.c (read_protected_v3_mpi): New.
3746         (parse_key): Use it here to store it as an opaque MPI.
3747         * seckey-cert.c (do_check): Changed the v3 unprotection to the new
3748         why to store these keys.
3749         (protect_secret_key): Likewise.
3750         * build-packet.c (do_secret_key): And changed the writing.
3752         * tdbio.c (tdbio_set_dbname, open_db): Use new macro MY_O_BINARY
3753         to avoid silly ifdefs.
3754         (open_db): Fallback to RDONLY so that gpg may be used from a
3755         RO-medium.
3757         * encode.c (encode_simple): Make sure we don't use an ESK packet
3758         when we don't have a salt in the S2K.
3760         * misc.c (pct_expando) <case f>: Make sure that LEN is initialized.
3762         * exec.c (exec_finish): Use ticks to denote filenames in messages.
3763         (make_tempdir, exec_write): Changed format of messages.
3765         * keyserver.c (print_keyinfo): Release USERID in on error.
3766         (keyserver_work) [!DISABLE_KEYSERVER_HELPERS]: Exclude the unused
3767         code.
3769 2002-09-09  Werner Koch  <wk@gnupg.org>
3771         * parse-packet.c (make_attribute_uidname): Add new ar MAX_NAMELEN
3772         for sanity checks.  Changed both callers. Limit the size of an %s.
3774         * options.skel: Comment lock-once out, so that this file does not
3775         change anything when copied to a new home directory.
3776         * openfile.c (try_make_homedir): Don't exit after copying the
3777         option skeleton.
3779         * options.h: Don't use a comma when declaring variables over more
3780         than one line.
3782         * mainproc.c (symkey_decrypt_sesskey): Check length of the session
3783         key.
3785         * hkp.c (dehtmlize): Use ascii_tolower to protect against weird
3786         locales.  Cast the argument for isspace for the sake of broken
3787         HP/UXes.
3788         (parse_hkp_index): s/ascii_memcasecmp/ascii_strncasecmp/.
3790         * g10.c: Removed option --emulate-3des-s2k-bug.
3792         * passphrase.c (hash_passphrase): Was used here.
3794         * export.c (parse_export_options)
3795         * keyserver.c (parse_keyserver_options)
3796         * import.c (parse_import_options)
3797         * g10.c (check_permissions): s/ascii_memcasecmp/ascii_strncasecmp/.
3799 2002-09-09  David Shaw  <dshaw@jabberwocky.com>
3801         * g10.c (add_group): Use '=' to separate group name from group
3802         members.  Use a better error message for when no = is found.
3804         * hkp.c (hkp_export): Use CRLF in headers.
3806 2002-09-03  David Shaw  <dshaw@jabberwocky.com>
3808         * mainproc.c (print_pkenc_list): Don't increment the error counter
3809         when printing the list of keys a message was encrypted to.  This
3810         would make gpg give a non-zero exit code even for completely valid
3811         messages if the message was encrypted to more than one key that
3812         the user owned.
3814 2002-09-02  Werner Koch  <wk@gnupg.org>
3816         * g10.c (main): Try to set a default character set.  Print the
3817         used one in verbosity level 3.
3818         * gpgv.c (main): Try to set a default character set.
3820         * status.c, status.h (STATUS_IMPORT_OK): New.
3821         * import.c (import_one,import_secret_one): Print new status.
3823 2002-08-30  David Shaw  <dshaw@jabberwocky.com>
3825         * pkclist.c (build_pk_list): Add new status code to indicate an
3826         untrusted user.  This (or a disabled key) fail with "unavailable
3827         pubkey" (G10ERR_UNU_PUBKEY).
3829         * pkclist.c (build_pk_list): Fail if any recipient keys are
3830         unusable.
3832         * options.skel: The PGP LDAP keyserver is back.  Use MIT keyserver
3833         as a sample rather than cryptnet as cryptnet does not support
3834         searching yet.
3836         * keyedit.c (show_key_with_all_names): Fix error message
3837         (preferences are userid/selfsig and not key specific).
3839 2002-08-30  Werner Koch  <wk@gnupg.org>
3841         * pkclist.c (do_we_trust_pre): Changed the wording of a warning.
3843         * encode.c (encode_simple,encode_crypt): Use new style CTB for
3844         compressssed packets when using MDC.  We need to do this so that
3845         concatenated messages are properly decrypted.  Old style
3846         compression assumes that it is the last packet; given that we
3847         can't determine the length in advance, the uncompressor does not
3848         know where to start.  Actually we should use the new CTB always
3849         but this would break PGP 2 compatibility.
3851         * parse-packet.c (parse): Special treatment for new style CTB
3852         compressed packets.
3854         * build-packet.c (do_mdc): Removed. Was not used.
3855         (do_encrypted_mdc): Count in the version number and the MDC packet.
3857 2002-08-28  David Shaw  <dshaw@jabberwocky.com>
3859         * sig-check.c (do_check_messages, do_check): Show keyid in error
3860         messages.
3862         * keyserver.c (print_keyinfo): More readable key listings for
3863         --search-keys responses.
3865 2002-08-26  David Shaw  <dshaw@jabberwocky.com>
3867         * hkp.c (parse_hkp_index, dehtmlize): Move HTML functionality into
3868         new "dehtmlize" function.  Remove HTML before trying to parse each
3869         line from the keyserver.  If the keyserver provides key type
3870         information in the listing, use it.
3872 2002-08-23  David Shaw  <dshaw@jabberwocky.com>
3874         * sig-check.c (do_check, do_check_messages): Emit the usual sig
3875         warnings even for cached sigs.  This also serves to protect
3876         against missing a sig expiring while cached.
3878         * getkey.c (merge_selfsigs_main): Don't check UID self-sigs twice.
3880 2002-08-22  David Shaw  <dshaw@jabberwocky.com>
3882         * import.c (clean_subkeys, chk_self_sigs): Merge clean_subkeys
3883         into chk_self_sigs.  This improves efficiency as the same
3884         signatures are not checked multiple times.  Clarify when a subkey
3885         is revoked (any revocation signature, even if it is dated before
3886         the binding signature).
3888         * getkey.c (merge_selfsigs_subkey): Subkey revocation comments.
3890         * keylist.c (list_one): Stats are only for public key listings.
3892         * g10.c (main), options.skel: Default should be include-revoked
3893         for keyserver operations.
3895 2002-08-21  Werner Koch  <wk@gnupg.org>
3897         * import.c (import_print_stats): Print new non_imported counter
3898         which is currently not used because we terminate on errors.
3900 2002-08-20  David Shaw  <dshaw@jabberwocky.com>
3902         * options.skel: Document no-include-attributes for
3903         keyserver-options.
3905         * keylist.c, keyedit.c, keyserver.c, sign.c: Some TODOs and
3906         comments.
3908         * export.c (do_export_stream): Fix noop bug in exporting sensitive
3909         revocation keys.
3911         * pkclist.c (do_edit_ownertrust): Comment out the option for
3912         showing trust paths until it can be implemented.
3914 2002-08-19  Werner Koch  <wk@gnupg.org>
3916         * getkey.c (get_user_id_native): Renamed to ..
3917         (get_user_id_printable): this.  Filter out all dangerous
3918         characters.  Checked all usages.
3919         (get_user_id_string_native): Renamed to..
3920         (get_user_id_string_printable): this.  Filter out all dangerous
3921         characters.  Checked all usages.
3922         * keyedit.c (show_basic_key_info): New.
3923         * keylist.c (print_fingerprint): New mode 3.
3924         * import.c (import_one): Use new function to display the user ID.
3926 2002-08-16  Timo Schulz  <ts@winpt.org>
3928         * g10.c (main): Enable opt.interactive.
3930         * import.c (import_one): Ask the user if the key shall be
3931         imported when the interactive mode is used. Useful to extract
3932         selected keys from a file.
3933         
3934 2002-08-16  Werner Koch  <wk@gnupg.org>
3936         * seckey-cert.c: Workaround to allow decryption of v3 keys created
3937         with a bug in the mpi_get_secure_buffer.
3939 2002-08-14  David Shaw  <dshaw@jabberwocky.com>
3941         * hkp.c (parse_hkp_index): Properly handle really large keys
3942         (5 digit key length) in HKP searches.
3944 2002-08-13  David Shaw  <dshaw@jabberwocky.com>
3946         * encode.c (encode_simple): Fix problem with using compression
3947         algo 2 and symmetric compressed files.
3949         * encode.c (encode_simple, encode_crypt): If we are not using a
3950         MDC, compress even if a file is already compressed.  This is to
3951         help against the chosen ciphertext attack.
3953         * pkclist.c (select_algo_from_prefs): Fix requested algorithm bug
3954         so the request succeeds even if the requested algorithm is not the
3955         first found.
3957         * cipher.c (write_header), encode.c (use_mdc, encode_simple,
3958         encode_crypt, encrypt_filter), g10.c (main): Be more eager to use
3959         a MDC.  We use a MDC if the keys directly support it, if the keys
3960         list AES (any) or TWOFISH anywhere in the prefs, or if the cipher
3961         chosen does not have a 64 bit blocksize.
3963 2002-08-08  David Shaw  <dshaw@jabberwocky.com>
3965         * options.skel: Some language tweaks, and remove the
3966         load-extension section for random gatherers.
3968         * keyring.c (create_tmp_file, rename_tmp_file): Create tmp files
3969         with user-only permissions, but restore the original permissions
3970         if the user has something special set.
3972         * openfile.c (copy_options_file): Create new options file
3973         (gpg.conf) with user-only permissions.
3975         * keydb.c (keydb_add_resource): Create new keyrings with user-only
3976         permissions.
3978         * tdbio.c (tdbio_set_dbname): Create new trustdbs with user-only
3979         permissions.
3981 2002-08-07  David Shaw  <dshaw@jabberwocky.com>
3983         * sig-check.c (signature_check2): Sanity check that the md has a
3984         context for the hash that the sig is expecting.  This can happen
3985         if a onepass sig header does not match the actual sig, and also if
3986         the clearsign "Hash:" header is missing or does not match the
3987         actual sig.
3989         * keyedit.c (menu_revsig): Properly show a uid is revoked without
3990         restarting gpg.  This is Debian bug 124219, though their supplied
3991         patch will not do the right thing.
3993         * main.h, tdbio.c (tdbio_set_dbname), misc.c (removed
3994         check_permissions), keydb.c (keydb_add_resource), g10.c (main,
3995         check_permissions): Significant reworking of the permission check
3996         mechanism.  The new behavior is to check everything in the homedir
3997         by checking the homedir itself.  If the user wants to put
3998         (possibly shared) keyrings outside the homedir, they are not
3999         checked.  The options file and any extension files are checked
4000         wherever they are, as well as their enclosing directories.  This
4001         is Debian bug 147760.
4002         
4003 2002-08-06  Stefan Bellon  <sbellon@sbellon.de>
4005         * g10.c (main): Use of EXTSEP_S in new gpg.conf string.
4006         * openfile.c (copy_options_file): Ditto.
4008 2002-08-06  David Shaw  <dshaw@jabberwocky.com>
4010         * options.h, g10.c (main), mainproc.c (proc_encrypted):
4011         --ignore-mdc-error option to turn a MDC check error into a
4012         warning.
4014         * encode.c (encode_crypt), g10.c (main), sign.c (sign_file,
4015         clearsign_file): Use the same --pgpX warning string everywhere to
4016         ease translations.
4018         * encode.c (write_pubkey_enc_from_list): Warn when using
4019         --throw-keyid with --pgpX.  Noted by Vedaal Nistar.
4021         * revoke.c (export_minimal_pk, gen_desig_revoke, gen_revoke):
4022         Export a minimal pk along with the revocation cert when in --pgpX
4023         mode so that PGP can import it.
4025 2002-08-06  Werner Koch  <wk@gnupg.org>
4027         * options.skel: Changed comments.
4029         * g10.c (main): Try to use "gpg.conf" as default option file.
4030         * openfile.c (copy_options_file): Changed name of created file.
4032 2002-08-02  Werner Koch  <wk@gnupg.org>
4034         * Makefile.am (LDFLAGS): Removed DYNLINK_LDFLAGS.
4036 2002-07-30  David Shaw  <dshaw@jabberwocky.com>
4038         * options.h, g10.c (main), mainproc.c (proc_encrypted): Return a
4039         decryption failed error if a MDC does not verify.  Warn if a MDC
4040         is not present (can disable via --no-mdc-warning).
4042         * exec.c (exec_write), g10.c (main), keyserver.c
4043         (keyserver_spawn): Use new DISABLE_KEYSERVER_PATH rather than
4044         FIXED_EXEC_PATH.
4046 2002-07-28  David Shaw  <dshaw@jabberwocky.com>
4048         * sig-check.c (do_check): Properly validate v4 sigs with no hashed
4049         section at all.
4051 2002-07-25  Werner Koch  <wk@gnupg.org>
4053         * delkey.c (do_delete_key): Always allow to delete a key in batch mode
4054         when specified by fingerprint.  Suggested by Enzo Michelangeli.
4056 2002-07-25  David Shaw  <dshaw@jabberwocky.com>
4058         * keyedit.c (menu_revsig): Change "revsig" to honor selected uids
4059         so the user can revoke sigs from particular uids only.
4061         * keylist.c (list_keyblock_print): Don't display expired uids in
4062         --list-keys unless -v and not --list-sigs (just like revoked
4063         uids).
4065         * exec.c, export.c, import.c, keyedit.c, keyserver.c, misc.c:
4066         "Warning" -> "WARNING"
4068 2002-07-24  David Shaw  <dshaw@jabberwocky.com>
4070         * main.h, import.c (parse_import_options, fix_hkp_corruption,
4071         import_one, delete_inv_parts), g10.c (main): New import-option
4072         "repair-hkp-subkey-bug", which repairs as much as possible the HKP
4073         mangling multiple subkeys bug.  It is on by default for keyserver
4074         receives, and off by default for regular --import.
4076         * main.h, import.c (import, import_one, delete_inv_parts), hkp.c
4077         (hkp_ask_import), keyserver.c (keyserver_spawn): Use keyserver
4078         import options when doing keyserver receives.
4080         * options.h, exec.h, exec.c (set_exec_path, exec_write), g10.c
4081         (main), keyserver.c (keyserver_spawn): If the user does not use
4082         "exec-path", completely replace $PATH with GNUPG_LIBEXECDIR before
4083         calling the keyserver helper.  If the user does use "exec-path",
4084         append GNUPG_LIBEXECDIR after the specified path.
4086 2002-07-23  David Shaw  <dshaw@jabberwocky.com>
4088         * import.c (parse_import_options), export.c
4089         (parse_export_options): Fix offset problem with reversed ("no-")
4090         meanings.
4092         * import.c (delete_inv_parts): Discard subkey signatures (0x18 and
4093         0x28) if found in the userid section of the key.
4095         * sig-check.c (signature_check2): Signatures made by invalid
4096         subkeys (bad/missing binding sig) are also invalid.
4098         * keylist.c (print_fingerprint): Show the primary as well as the
4099         secondary key fingerprint in modes 1 & 2.
4101 2002-07-22  David Shaw  <dshaw@jabberwocky.com>
4103         * options.h, main.h, g10.c (main), import.c
4104         (parse_import_options, delete_inv_parts), keyserver.c
4105         (parse_keyserver_options): add new --import-options option.  The
4106         only current flag is "allow-local-sigs".
4108         * g10.c (main): Don't disable MDC in pgp7 mode.
4110         * options.h, g10.c (main), keyserver.c (parse_keyserver_options):
4111         Remove old keyserver-option include-attributes now that there is
4112         an export-option for the same thing.
4114         * options.h, main.h, export.c (parse_export_options,
4115         do_export_stream), g10.c (main): add new --export-options option.
4116         Current flags are "include-non-rfc", "include-local-sigs",
4117         "include-attributes", and "include-sensitive-revkeys".
4119         * options.h, hkp.c (hkp_export), keyserver.c
4120         (parse_keyserver_options, keyserver_spawn): try passing unknown
4121         keyserver options to export options, and if successful, use them
4122         when doing a keyserver --send-key.
4124         * build-packet.c (build_sig_subpkt): We do not generate
4125         SIGSUBPKT_PRIV_VERIFY_CACHE anymore.
4127         * revoke.c (gen_desig_revoke): Lots more comments about including
4128         sensitive revkeys along with the revocation sig itself.
4130         * keyserver.c (parse_keyserver_options): Simpler implementation
4131         that can skip one pass over the options.
4133 2002-07-18  David Shaw  <dshaw@jabberwocky.com>
4135         * keyedit.c (keyedit_menu, menu_addrevoker): Allow specifying
4136         "sensitive" as an argument to an addrevoker command.  This sets
4137         the 0x40 sensitive revoker flag.
4139         * revoke.c (gen_desig_revoke): When generating a designated
4140         revocation, include the direct key sig that contains the
4141         designated revoker subpacket.  This allows sensitive designated
4142         revocation subpackets to be exported.  Also indicate which
4143         revokers are sensitive in the first place.
4145 2002-07-17  David Shaw  <dshaw@jabberwocky.com>
4147         * keyedit.c (show_key_with_all_names_colon): The 0x40 class bit in
4148         a designated revoker means "sensitive", not "local".  It's
4149         exportable under the right circumstances.
4151         * main.h, options.h, export.c (do_export_stream), g10.c (main),
4152         hkp.c (hkp_export), keyserver.c (keyserver_spawn: Add a flag to
4153         skip attribute packets and their signatures while exporting.  This
4154         is to accomodate keyservers (pksd again) that choke on attributes.
4155         Use keyserver-option "include-attributes" to control it.  This
4156         defaults to ON (i.e. don't skip).
4158 2002-07-09  David Shaw  <dshaw@jabberwocky.com>
4160         * options.h, keyserver.c (parse_keyserver_uri, keyserver_spawn,
4161         keyserver_work), hkp.c (hkp_ask_import, hkp_export, hkp_search):
4162         Use a much more strict reading of RFC-2396 for the keyserver URIs.
4163         Specifically, don't try and be smart about checking the value of
4164         ":port" so long as it is all digits, and properly handle opaque
4165         data (those scheme specific parts that do not start with "//").
4167 2002-07-04  David Shaw  <dshaw@jabberwocky.com>
4169         * photoid.c (get_default_photo_command, show_photos): Honor
4170         FIXED_PHOTO_VIEWER and DISABLE_PHOTO_VIEWER.
4172         * mainproc.c (check_sig_and_print): Use --show-photos to show
4173         photos when verifying a sig made by a key with a photo.
4175         * keyserver.c (parse_keyserver_uri): Properly parse a URI with no
4176         :port section and an empty file path, but with a terminating '/'.
4177         (keyserver_work): Honor DISABLE_KEYSERVER_HELPERS.
4179         * hkp.c (hkp_ask_import): Display keyserver URI as a URI, but only
4180         if verbose.
4182         * exec.c, g10.c: USE_EXEC_PATH -> FIXED_EXEC_PATH
4184 2002-07-03  David Shaw  <dshaw@jabberwocky.com>
4186         * exec.h, exec.c (set_exec_path, exec_write), g10.c (main): If
4187         USE_EXEC_PATH is defined at compile time, use it to lock the
4188         exec-path and not allow the user to change it.
4190 2002-07-02  David Shaw  <dshaw@jabberwocky.com>
4192         * options.h, g10.c (main), keyserver.c (keyserver_refresh):
4193         Maintain and use the original keyserver URI for cosmetics rather
4194         than trying to recreate it when needed.
4196         * mainproc.c (check_sig_and_print): Properly disregard expired
4197         uids.  Make sure that the first uid listed is a real uid and not
4198         an attribute (attributes should only be listed in the "aka"
4199         section).  When there are no valid textual userids, try for an
4200         invalid textual userid before using any attribute uid.
4202 2002-07-01  David Shaw  <dshaw@jabberwocky.com>
4204         * options.skel: Fix a few typos, clarify "group", and remove
4205         sample photo viewers for Win32 since they are the defaults now.
4207         * parse-packet.c (make_attribute_uidname), keylist.c
4208         (dump_attribs): Fix two typecast warnings.
4210         * packet.h, build-packet.c (build_attribute_subpkt), exec.c
4211         (expand_args), mkdtemp.c (mkdtemp), photoid.c
4212         (parse_image_header): Fix some signedness compiler warnings.
4214 2002-07-01  Werner Koch  <wk@gnupg.org>
4216         * photoid.c (get_default_photo_command): Also use __MINGW32__
4217         instead of HAVE_DOSISH_SYSTEM.
4219         * encode.c (encode_symmetric): Do not use the new encryption code.
4221 2002-06-30  Werner Koch  <wk@gnupg.org>
4223         * photoid.c: Use __MINGW32__ to include windows because
4224         HAVE_DOSISH_SYSTEM is also set for OS/2 and plain DOS.  Provide
4225         constant missing in older mingw installations. 
4227 2002-06-21  Stefan Bellon  <sbellon@sbellon.de>
4229         * g10.c [__riscos__]: Moved RISC OS specific stuff to util/riscos.c
4230         and include/util.h.
4232         * gpgv.c [__riscos__]: Likewise.
4234 2002-06-20  David Shaw  <dshaw@jabberwocky.com>
4236         * keydb.h, pkclist.c (select_algo_from_prefs): Allow passing a
4237         suggested algorithm which will be used if available.
4239         * encode.c (encode_crypt, encrypt_filter), sign.c (sign_file): Use
4240         new select_algo_from_prefs feature to check if forcing an
4241         algorithm would violate the recipient preferences.
4243         * photoid.c (get_default_photo_command, show_photos): Use
4244         different default viewers on different platforms.  Currently we
4245         have Win 9x, Win NT (2k, xp), Mac OSX, RISC OS, and "everybody
4246         else".  These are #ifdefs as much as possible to avoid clutter.
4248         * g10.c (strusage, build_list), keyedit.c (show_prefs), main.h,
4249         misc.c (compress_algo_to_string, check_compress_algo), pkclist.c
4250         (algo_available), keygen.c (keygen_set_std_prefs): New
4251         algo_to_string and check functions for compress algorithms.
4253 2002-06-20  Werner Koch  <wk@gnupg.org>
4255         * misc.c (setsysinfo): Removed a #warning for Alpha's uniligedn
4256         trap disabling - it is quite possible that this is a debug relict.
4258 2002-06-20  Stefan Bellon  <sbellon@sbellon.de>
4260         * g10.c [__riscos__]: Added image file system feature.
4262         * gpgv.c [__riscos__]: Added image file system feature.
4264         * photoid.c (show_photos) [__riscos__]: Set RISC OS filetype of
4265         photo id according to MIME type.
4267 2002-06-19  David Shaw  <dshaw@jabberwocky.com>
4269         * hkp.c (parse_hkp_index): Don't leak memory when failing out of a
4270         bad HKP keyserver.
4272         * g10.c (add_notation_data): Relax slightly the rules as to what
4273         can go into a notation name - 2440 allows "@", for example.
4275 2002-06-17  David Shaw  <dshaw@jabberwocky.com>
4277         * import.c (clean_subkeys, import_one): Only allow at most 1
4278         binding sig and at most 1 revocation sig on a subkey, as per
4279         2440:11.1.
4281         * hkp.c (parse_hkp_index, hkp_search): Error if the keyserver
4282         returns an unparseable HKP response.
4284 2002-06-15  David Shaw  <dshaw@jabberwocky.com>
4286         * keyedit.c (show_key_with_all_names), keylist.c
4287         (list_keyblock_print): Show "[expired]" before expired uids.
4289         * keyedit.c (show_key_with_all_names_colon), mainproc.c
4290         (list_node), keylist.c (list_keyblock_colon): Show flag 'e' for
4291         expired user ids.  Use "uat" for user attribute packets instead of
4292         "uid".  Also use '<count> <length>' rather than the fake user id
4293         string on attributes.
4295         * keygen.c (keygen_add_revkey): Remove unused code.
4297         * misc.c (check_permissions): Check directory permissions
4298         properly - they are not special files.
4300         * pkclist.c (expand_id, expand_group, build_pk_list): When
4301         expanding groups before building a pk list, inherit flags from the
4302         original pre-expanded string.
4304         * pubkey-enc.c (is_algo_in_prefs): Don't use prefs from expired
4305         uids.
4307 2002-06-14  David Shaw  <dshaw@jabberwocky.com>
4309         * free-packet.c (copy_signature): Properly copy a signature that
4310         carries a revocation key on it.
4312         * pkclist.c (expand_id, expand_group, build_pk_list): Groups now
4313         work properly when used in the "Enter the user ID" prompt.
4315 2002-06-14  David Shaw  <dshaw@jabberwocky.com>
4317         * keyedit.c (show_key_with_all_names): Display warning if a user
4318         tries to show prefs on a v3 key with a v3 selfsig.
4320         * kbnode.c (dump_kbnode): Show if a uid is expired.
4322         * import.c (merge_blocks, import_revoke_cert): Show user ID
4323         receiving a revocation certificate.
4325         * free-packet.c (cmp_user_ids): Properly compare attribute ids.
4327         * pkclist.c (expand_groups): Maintain the strlist flags while
4328         expanding.  Members of an expansion inherit their flags from the
4329         expansion key.
4331         * options.h, cipher.c (write_header), g10.c (main), keygen.c
4332         (keygen_set_std_prefs): remove the personal_mdc flag.  It no
4333         longer serves a purpose now that the personal preference lists are
4334         split into cipher/digest/zip.
4336 2002-06-14  Timo Schulz  <ts@winpt.org>
4338         * skclist.c (is_insecure): Implemented.
4339         
4340 2002-06-12  David Shaw  <dshaw@jabberwocky.com>
4342         * keyserver.c (keyserver_spawn): Properly handle PROGRAM responses
4343         when they have a CRLF ending.  Noted by Keith Ray.
4345         * keyserver.c (keyserver_spawn): Handle CRLF endings from
4346         keyserver helpers.  Also don't leak the last line worth of memory
4347         from the keyserver response.
4349         * main.h, misc.c (deprecated_warning): New function to warn about
4350         deprecated options and commands.
4352         * g10.c (main), keyserver-internal.h, keyserver.c
4353         (parse_keyserver_uri): Use new deprecated function to warn about
4354         honor-http-proxy, auto-key-retrieve, and x-broken-hkp.
4356 2002-06-11  David Shaw  <dshaw@jabberwocky.com>
4358         * Makefile.am: link gpg with NETLIBS for the built-in HKP access.
4360 2002-06-10  David Shaw  <dshaw@jabberwocky.com>
4362         * options.h, keyserver.c (keyserver_opts), g10.c (main): New
4363         keyserver option "include-subkeys".  This feature already existed,
4364         but now can be turned off.  It defaults to on.
4366         * options.h, keyserver.c (parse_keyserver_options,
4367         keyserver_spawn): There are now enough options to justify making a
4368         structure for the keyserver options rather than a page of
4369         if-then-else-if-then-etc.
4371         * getkey.c (merge_keys_and_selfsig, merge_selfsigs_main): Fix bug
4372         in calculating key expiration dates.
4374 2002-06-09  David Shaw  <dshaw@jabberwocky.com>
4376         * keydb.h, getkey.c (get_user_id_native), import.c (import_one):
4377         Display user ID while importing a key.  Note this applies to both
4378         --import and keyserver --recv-keys.
4380         * exec.c (exec_finish): Log unnatural exit (core dump, killed
4381         manually, etc) for fork/exec/pipe child processes.
4383 2002-06-08  Timo Schulz  <ts@winpt.org>
4385         * encode.c (encode_symmetric): Disable the compat flag
4386         when the expert mode is enabled.
4387         
4388 2002-06-07  David Shaw  <dshaw@jabberwocky.com>
4390         * options.skel, options.h, main.h, keydb.h, pkclist.c
4391         (build_pk_list, expand_groups), g10.c (main, add_group): Add new
4392         "group" command to allow one name to expand into multiple keys.
4393         For simplicity, and to avoid potential loops, we only expand once
4394         - you can't make an alias that points to an alias.
4396         * main.h, g10.c (main), keygen.c (build_personal_digest_list):
4397         Simplify the default digest list - there is really no need for the
4398         other hashes since they will never be used after SHA-1 in the
4399         list.
4401         * options.skel, options.h, g10.c (main), hkp.c (hkp_ask_import,
4402         hkp_export, hkp_search), keyserver.c (parse_keyserver_options,
4403         parse_keyserver_uri, keyserver_work, keyserver_refresh): Make the
4404         "x-broken-hkp" keyserver scheme into keyserver-option
4405         "broken-http-proxy".  Move honor_http_proxy into
4406         keyserver_options.  Canonicalize the three variations of "hkp",
4407         "x-hkp", and "x-broken-hkp" into "hkp".
4409 2002-06-07  Stefan Bellon  <sbellon@sbellon.de>
4411         * g10.c [__riscos__]: Added --attribute-file to do the same as
4412         --attribute-fd, but with a filename not a fd as argument.
4413         Added magic symbol for RISC OS to use different memory management.
4415         * gpgv.c [__riscos__]: Added magic symbol for RISC OS to use
4416         different memory management.
4418 2002-06-06  David Shaw  <dshaw@jabberwocky.com>
4420         * main.h, g10.c (main), keygen.c (build_personal_digest_list): Put
4421         in a default digest preference list consisting of SHA-1, followed
4422         by every other installed digest except MD5.  Note this is the same
4423         as having no digest preference at all except for SHA-1 being
4424         favored.
4426         * options.h, g10.c (main), keygen.c (keygen_set_std_prefs),
4427         pkclist.c (select_algo_from_prefs): Split
4428         --personal-preference-list into three:
4429         --personal-{cipher|digest|compress}-preferences.  This allows a
4430         user to set one without affecting another (i.e. setting only a
4431         digest pref doesn't imply an empty cipher pref).
4433         * exec.c (exec_read): This is a safer way of guessing the return
4434         value of system().  Noted by Stefan Bellon.
4436 2002-06-05  David Shaw  <dshaw@jabberwocky.com>
4438         * hkp.c (parse_hkp_index): Be more robust with keyservers
4439         returning very unparseable responses.
4441         * exec.c (exec_read): Catch and display an error when the remote
4442         process exits unnaturally (i.e. segfault) so the user knows what
4443         happened.  Also fix exec_write stub which has a different number
4444         of arguments now.
4446 2002-06-05  Timo Schulz  <ts@winpt.org>
4448         * encode.c (encode_simple): Ignore the new mode for RFC1991.
4449         * mainproc.c (symkey_decrypt_sesskey): Better check for weird
4450         keysizes.
4451         
4452 2002-06-05  Timo Schulz  <ts@winpt.org>
4454         * encode.c (encode_sesskey): New.
4455         (encode_simple): Use it here. But by default we use the compat
4456         mode which supress to generate encrypted session keys.
4457         
4458 2002-06-05  Timo Schulz  <ts@winpt.org>
4460         * mainproc.c (symkey_decrypt_sesskey): New.
4461         (proc_symkey_enc): Support for encrypted session keys.
4462         
4463 2002-06-04  David Shaw  <dshaw@jabberwocky.com>
4465         * sign.c (hash_for, sign_file): When encrypting and signing at the
4466         same time, consult the various hash prefs to pick a hash algorithm
4467         to use.  Pass in a 160-bit hint if any of the signing keys are
4468         DSA.
4470         * keydb.h, pkclist.c (select_algo_from_prefs, algo_available):
4471         Pass a "hints" opaque pointer in to let the caller give hints as
4472         to what algorithms would be acceptable.  The only current hint is
4473         for PREFTYPE_HASH to require a 160-bit hash for DSA.  Change all
4474         callers in encode.c (encode_crypt, encrypt_filter) and sign.c
4475         (sign_file).  If we settle on MD5 as the best algorithm based
4476         solely on recepient keys and SHA1 is also a possibility, use SHA1
4477         unless the user intentionally chose MD5.  This is as per 2440:13.
4479         * exec.c (make_tempdir): Fix duplicated filename problem.
4481 2002-06-03  David Shaw  <dshaw@jabberwocky.com>
4483         * packet.h, parse-packet.c (enum_sig_subpkt): Report back from
4484         enum_sig_subpkt when a subpacket is critical and change all
4485         callers in keylist.c (show_policy_url, show_notation), mainproc.c
4486         (print_notation_data), and pkclist.c (do_show_revocation_reason).
4488         * keylist.c (show_policy_url, show_notation): Display if the
4489         policy or notation is critical.
4490         
4491 2002-06-03  David Shaw  <dshaw@jabberwocky.com>
4493         * main.h, g10.c (main), keylist.c (dump_attribs, set_attrib_fd,
4494         list_keyblock_print, list_keyblock_colon), status.h, status.c
4495         (get_status_string): New --attribute-fd feature to dump the
4496         contents of attribute subpackets for frontends.  If --status-fd is
4497         also used, then a new status tag ATTRIBUTE is provided for each
4498         subpacket.
4500         * packet.h, getkey.c (fixup_uidnode, merge_selfsigs_main,
4501         merge_selfsigs_subkey), parse-packet.c (setup_user_id): Keep track
4502         of the expiration time of a user ID, and while we're at it, use
4503         the expired flag from the selfsig rather than reparsing the
4504         SIG_EXPIRE subpacket.
4506         * photoid.c (generate_photo_id): When adding a new photo ID,
4507         showing the photo for confirmation is not safe when noninteractive
4508         since the "user" may not be able to dismiss a viewer window.
4509         Noted by Timo Schulz.
4510         
4511 2002-06-03  David Shaw  <dshaw@jabberwocky.com>
4513         * options.skel: Sample photo viewers for Win32.
4515         * misc.c (pct_expando): Use the seckey for %k/%K if the pubkey is
4516         not available.
4518         * photoid.h, photoid.c (show_photos): Include the seckey in case a
4519         user tries to view a photo on a secret key, and change all callers
4520         in keyedit.c (menu_showphoto), keylist.c (list_keyblock_print),
4521         and photoid.c (generate_photo_id).
4523 2002-06-02  David Shaw  <dshaw@jabberwocky.com>
4525         * photoid.c (show_photos): Work properly when not called with a
4526         public key.
4528 2002-05-31  David Shaw  <dshaw@jabberwocky.com>
4530         * sign.c (mk_notation_and_policy): Free unneeded buffer.
4532         * hkp.c (parse_hkp_index): Properly handle the '&' character
4533         (i.e. "&amp;") in HKP responses.
4535         * getkey.c (merge_selfsigs_main): Fix reversed expiration time
4536         check with self-sigs.
4538         * keyedit.c (sign_uids): When making a new self-sig on a v3 key,
4539         make a v3 self-sig unless it is currently a v3 self-sig being
4540         promoted to v4.
4542 2002-05-31  Timo Schulz  <ts@winpt.org>
4544         * pkclist.c (do_show_revocation_reason): Don't use capital
4545         letters for non-interactive output.
4546         (show_revocation_reason): Now it is global.
4547         * pubkey-enc.c (get_it): Show if the key has been revoked.
4548         
4549 2002-05-30  David Shaw  <dshaw@jabberwocky.com>
4551         * sign.c (write_signature_packets, sign_file, clearsign_file,
4552         sign_symencrypt_file): Make a v4 signature if a policy URL or
4553         notation is set, unless v3 sigs are forced via rfc1991 or
4554         force-v3-sigs.  Also remove some doubled code and clarify an error
4555         message (we don't sign in PGP2 mode - just detach-sign).
4557         * parse-packet.c (parse_one_sig_subpkt): Add KS_FLAGS to the "any
4558         size" section.
4560 2002-05-29  David Shaw  <dshaw@jabberwocky.com>
4562         * keygen.c (keygen_set_std_prefs, add_feature_mdc): Use "mdc" and
4563         "no-mdc" in the prefs string to allow switching on and off the MDC
4564         feature.  This is needed to properly export a key from GnuPG for
4565         use on PGP which does not support MDC - without this, MDC-capable
4566         implementations will still try and generate MDCs which will break
4567         PGP.
4569         * keygen.c (keygen_get_std_prefs): Show "[mdc]" in prefs string if
4570         it is enabled.
4572         * options.h, g10.c (main), cipher.c (write_header), keygen.c
4573         (keygen_set_std_prefs): For consistency, allow the user to specify
4574         mdc/no-mdc in the --personal-preference-list.  If disabled, it
4575         acts just like --disable-mdc.
4577 2002-05-29  David Shaw  <dshaw@jabberwocky.com>
4579         * options.h, exec.c: Add some debugging info, using the 1024 debug
4580         flag.
4582         * exec.c (win_system): New system()-like function for win32 that
4583         does not return until the child process terminates.  Of course,
4584         this doesn't help if the process itself exits before it is
4585         finished.
4587 2002-05-29  Werner Koch  <wk@gnupg.org>
4589         * encode.c (encode_simple): Intialize PKT when --no-literal is used.
4591         * keyedit.c (show_key_with_all_names_colon): Renamed the record
4592         for revocation keys to "rvk".
4594 2002-05-27  Werner Koch  <wk@gnupg.org>
4596         * keyedit.c (show_key_with_all_names_colon): New.
4597         (show_key_with_all_names): Divert to new function when required.
4598         Sanitize printing of revoker name.
4600 2002-05-27  David Shaw  <dshaw@jabberwocky.com>
4602         * build-packet.c (build_sig_subpkt): Handle setting sig flags for
4603         certain subpacket types (notation, policy url, exportable,
4604         revocable).  keyedit.c (sign_mk_attrib): Flags no longer need to
4605         be set here.
4607         * packet.h, parse-packet.c (parse_one_sig_subpkt), build-packet.c
4608         (build_sig_subpkt): Call parse_one_sig_subpkt to sanity check
4609         buffer lengths before building a sig subpacket.
4611 2002-05-26  David Shaw  <dshaw@jabberwocky.com>
4613         * sign.c (mk_notation_and_policy): Include secret key to enable %s
4614         expandos, and pass notations through pct_expando as well.
4616         * main.h, misc.c (pct_expando): Add %s and %S expandos for
4617         signer's keyid.
4619 2002-05-25  David Shaw  <dshaw@jabberwocky.com>
4621         * g10.c (strusage, build_list): Add compress algorithms to
4622         --version list.  Show algorithm numbers when --verbose --version
4623         is done.
4625 2002-05-22  David Shaw  <dshaw@jabberwocky.com>
4627         * options.h, main.h, keygen.c (keygen_set_set_prefs,
4628         keygen_get_std_prefs, keygen_upd_std_prefs), keyedit.c
4629         (keyedit_menu), g10.c (main), pkclist.c (select_algo_from_prefs):
4630         Add --personal-preference-list which allows the user to factor in
4631         their own preferred algorithms when the preference lists are
4632         consulted.  Obviously, this does not let the user violate a
4633         recepient's preferences (and the RFC) - this only influences the
4634         ranking of the agreed-on (and available) algorithms from the
4635         recepients.  Suggested by David Hollenberg.
4637         * options.h, keygen.c (keygen_set_std_prefs), g10.c (main): Rename
4638         --preference-list to --default-preference-list (as that is what it
4639         really is), and make it a true default in that if the user selects
4640         "default" they get this list and not the compiled-in list.
4642 2002-05-22  Werner Koch  <wk@gnupg.org>
4644         * g10.c (main): Add missing LF in a info printout and made it
4645         translatable.  Noted by Michael Tokarev.
4647 2002-05-21  Werner Koch  <wk@gnupg.org>
4649         * g10.c (main): Removed the undef of USE_SHM_COPROCESSING which
4650         was erroneously introduced on 2002-01-09.
4652         * signal.c (got_fatal_signal): Don't write the Nul to stderr.
4653         Reported by David Hollenberg.
4655 2002-05-18  David Shaw  <dshaw@jabberwocky.com>
4657         * main.h, g10.c (main), revoke.c (gen_desig_revoke): Generate a
4658         designated revocation via --desig-revoke
4660         * keyedit.c (keyedit_menu, menu_addrevoker): New "addrevoker"
4661         command to add a designated revoker to a key.
4663 2002-05-17  David Shaw  <dshaw@jabberwocky.com>
4665         * gpgv.c: Add stub for get_ownertrust().
4667         * g10.c (main): --allow-freeform-uid should be implied by
4668         OpenPGP.  Add --no-allow-freeform-uid.
4670         * keyedit.c (sign_uids): Issue a warning when signing a
4671         non-selfsigned uid.
4673         * getkey.c (merge_selfsigs_main): If a key has no selfsigs, and
4674         allow-non-selfsigned-uid is not set, still try and make the key
4675         valid by checking all uids for a signature from an ultimately
4676         trusted key.
4678 2002-05-16  David Shaw  <dshaw@jabberwocky.com>
4680         * main.h, keygen.c (keygen_add_revkey): Add revocation key
4681         subpackets to a signature (callable by
4682         make_keysig_packet). (write_direct_sig): Write a 1F direct key
4683         signature. (parse_revocation_key): Parse a string in
4684         algo:fpr:sensitive format into a revocation
4685         key. (get_parameter_revkey, do_generate_keypair): Call above
4686         functions when prompted from a batch key generation file.
4688         * build-packet.c (build_sig_subpkt): Allow multiple revocation key
4689         subpackets in a single sig.
4691         * keydb.h, getkey.c (get_seckey_byfprint): Same as
4692         get_pubkey_byfprint, except for secret keys.  We only know the
4693         fingerprint of a revocation key, so this is needed to retrieve the
4694         secret key needed to issue a revokation.
4696         * packet.h, parse-packet.c (parse_signature, parse_revkeys): Split
4697         revkey parsing off into a new function that can be used to reparse
4698         after manipulating the revkey list.
4700         * sign.c (make_keysig_packet): Ability to make 1F direct key
4701         signatures.
4703 2002-05-15  David Shaw  <dshaw@jabberwocky.com>
4705         * options.skel: keyserver.pgp.com is gone, so list pgp.surfnet.nl
4706         as a sample LDAP server instead.
4708         * getkey.c (merge_selfsigs_main): Properly handle multiple
4709         revocation keys in a single packet.  Properly handle revocation
4710         keys that are in out-of-order packets.  Remove duplicates in
4711         revocation key list.
4713 2002-05-14  Timo Schulz   <ts@winpt.org>
4715         * exec.c (make_tempdir) [MINGW32]: Added missing '\'.
4716         
4717 2002-05-14  Stefan Bellon  <sbellon@sbellon.de>
4719         * exec.c (make_tempdir): Make use of EXTSEP_S instead of hardcoded
4720         dot as extension separator.
4722 2002-05-13  David Shaw  <dshaw@jabberwocky.com>
4724         * photoid.c (show_photos): Use the long keyid as the filename for
4725         the photo.  Use the short keyid as the filename on 8.3 systems.
4727         * exec.h, exec.c (make_tempdir, exec_write, exec_finish): Allow
4728         caller to specify filename.  This should make things easier on
4729         windows and macs where the file extension is required, but a whole
4730         filename is even better.
4732         * keyedit.c (show_key_with_all_names, show_prefs): Show proper
4733         prefs for a v4 key uid with no selfsig at all.
4735         * misc.c (check_permissions): Don't check permissions on
4736         non-normal files (pipes, character devices, etc.)
4738 2002-05-11  Werner Koch  <wk@gnupg.org>
4740         * mainproc.c (proc_symkey_enc): Avoid segv in case the parser
4741         encountered an invalid packet.
4743         * keyserver.c (keyserver_export): Get confirmation before sending
4744         all keys.
4746 2002-05-10  Stefan Bellon  <sbellon@sbellon.de>
4748         * g10.c, hkp.c, keyedit.c, keyserver.c: Replaced all occurrances
4749         of strcasecmp with ascii_strcasecmp and all occurrances of
4750         strncasecmp with ascii_memcasecmp.
4752 2002-05-10  David Shaw  <dshaw@jabberwocky.com>
4754         * packet.h, getkey.c (fixup_uidnode), keyedit.c (show_prefs): Show
4755         assumed prefs for hash and compression as well as the cipher pref.
4756         Show assumed prefs if there are no prefs at all on a v4
4757         self-signed key.
4759         * options.h, g10.c (main), sign.c (make_keysig_packet): New
4760         --cert-digest-algo function to override the default key signing
4761         hash algorithm.
4763 2002-05-09  David Shaw  <dshaw@jabberwocky.com>
4765         * getkey.c (merge_selfsigs_main): Make sure the revocation key
4766         list starts clean as this function may be called more than once
4767         (e.g. from functions in --edit).
4769         * g10.c, encode.c (encode_crypt), sign.c (sign_file,
4770         sign_symencrypt_file): Make --compress-algo work like the
4771         documentation says.  It should be like --cipher-algo and
4772         --digest-algo in that it can override the preferences calculation
4773         and impose the setting the user wants.  No --compress-algo setting
4774         allows the usual preferences calculation to take place.
4776         * main.h, compress.c (compress_filter): use new
4777         DEFAULT_COMPRESS_ALGO define, and add a sanity check for compress
4778         algo value.
4780 2002-05-08  David Shaw  <dshaw@jabberwocky.com>
4782         * pkclist.c (select_algo_from_prefs): There is an assumed
4783         compression preference for uncompressed data.
4785 2002-05-07  David Shaw  <dshaw@jabberwocky.com>
4787         * options.h, g10.c (main), getkey.c (finish_lookup), pkclist.c
4788         (algo_available): --pgp7, identical to --pgp6 except that it
4789         permits a few algorithms that PGP 7 added: AES128, AES192, AES256,
4790         and TWOFISH.  Any more of these --pgpX flags, and it'll be time to
4791         start looking at a generic --emulate-pgp X option.
4793         * export.c (do_export_stream): Warn the user when exporting a
4794         secret key if it or any of its secret subkeys are protected with
4795         SHA1 while simple_sk_checksum is set.
4797         * parse-packet.c (parse_key): Show when the SHA1 protection is
4798         used in --list-packets.
4800         * options.h, build-packet.c (do_comment), g10.c (main): Rename
4801         --no-comment as --sk-comments/--no-sk-comments (--no-comment still
4802         works) and make the default be --no-sk-comments.
4804 2002-05-07  Werner Koch  <wk@gnupg.org>
4806         * keygen.c (get_parameter_algo): Never allow generation of the
4807         deprecated RSA-E or RSA-S flavors of PGP RSA.
4808         (ask_algo): Allow generation of RSA sign and encrypt in expert
4809         mode.  Don't allow ElGamal S+E unless in expert mode.
4810         * helptext.c: Added entry keygen.algo.rsa_se.
4812 2002-05-07  David Shaw  <dshaw@jabberwocky.com>
4814         * keyedit.c (sign_uids): If --expert is set, allow re-signing a
4815         uid to promote a v3 self-sig to a v4 one.  This essentially
4816         deletes the old v3 self-sig and replaces it with a v4 one.
4818         * packet.h, parse-packet.c (parse_key), getkey.c
4819         (merge_keys_and_selfsig, merge_selfsigs_main): a v3 key with a v4
4820         self-sig must never let the v4 self-sig express a key expiration
4821         time that extends beyond the original v3 expiration time.
4823 2002-05-06  David Shaw  <dshaw@jabberwocky.com>
4825         * keyedit.c (sign_uids): When making a self-signature via "sign"
4826         don't ask about sig level or expiration, and include the usual
4827         preferences and such for v4 self-sigs.  (menu_set_preferences):
4828         Convert uids from UTF8 to native before printing.
4830         * keyedit.c (sign_uids): Convert uids from UTF8 to native before
4831         printing.  (menu_set_primary_uid): Show error if the user tries to
4832         make a uid with a v3 self-sig primary.
4834 2002-05-05  David Shaw  <dshaw@jabberwocky.com>
4836         * import.c (import_one): When merging with a key we already have,
4837         don't let a key conflict (same keyid but different key) stop the
4838         import: just skip the bad key and continue.
4840         * exec.c (make_tempdir): Under Win32, don't try environment
4841         variables for temp directories - GetTempDir tries environment
4842         variables internally, and it's better not to second-guess it in
4843         case MS adds some sort of temp dir handling to Windows at some
4844         point.
4846 2002-05-05  Timo Schulz  <ts@winpt.org>
4848         * mainproc.c (proc_symkey_enc): Don't ask for a passphrase
4849         in the list only mode.
4850         
4851 2002-05-05  David Shaw  <dshaw@jabberwocky.com>
4853         * keyserver.c (keyserver_refresh): --refresh-keys implies
4854         --merge-only so as not to import keys with keyids that match the
4855         ones being refreshed.  Noted by Florian Weimer.
4857 2002-05-04  Stefan Bellon  <sbellon@sbellon.de>
4859         * free-packet.c (copy_public_key): Don't call m_alloc(0), therefore
4860         added consistency check for revkey and numrefkeys.
4862         * getkey.c (check_revocation_keys): Added consistency check for
4863         revkey and numrefkeys.
4865         * keyedit.c (show_key_with_all_names): Likewise.
4867 2002-05-03  David Shaw  <dshaw@jabberwocky.com>
4869         * photoid.c: Provide default image viewer for Win32.
4871         * misc.c (pct_expando): %t means extension, not name ("jpg", not
4872         "jpeg").
4874         * keyserver.c (keyserver_spawn), photoid.c (show_photos), exec.h,
4875         exec.c: Allow the caller to determine the temp file extension when
4876         starting an exec_write and change all callers.
4878         * keyedit.c (sign_uids): Nonrevocable key signatures cause an
4879         automatic promotion to v4.
4881         * exec.c: Provide stubs for exec_ functions when NO_EXEC is
4882         defined.
4884 2002-05-02  David Shaw  <dshaw@jabberwocky.com>
4886         * photoid.h, photoid.c (parse_image_header, image_type_to_string):
4887         Useful functions to return data about an image.
4889         * packet.h, parse-packet.c (make_attribute_uidname,
4890         parse_attribute_subpkts, parse_attribute), photoid.h, photoid.c
4891         (show_photos): Handle multiple images in a single attribute
4892         packet.
4894         * main.h, misc.c (pct_expando), sign.c (mk_notation_and_policy),
4895         photoid.c (show_photos): Simpler expando code that does not
4896         require using compile-time string sizes.  Call
4897         image_type_to_string to get image strings (i.e. "jpg",
4898         "image/jpeg").  Change all callers.
4900         * keyedit.c (menu_showphoto), keylist.c (list_keyblock_print):
4901         Allow viewing multiple images within a single attribute packet.
4903         * gpgv.c: Various stubs for link happiness.
4905 2002-05-02  David Shaw  <dshaw@jabberwocky.com>
4907         * build-packet.c (build_sig_subpkt), keyedit.c (sign_uids),
4908         options.h, sign.c (mk_notation_and_policy), g10.c (main,
4909         add_notation_data, add_policy_url (new), check_policy_url
4910         (removed)): Allow multiple policy URLs on a given signature.
4911         Split "--notation-data" into "--cert-notation" and
4912         "--sig-notation" so the user can set different policies for key
4913         and data signing.  For backwards compatibility, "--notation-data"
4914         sets both, as before.
4916 2002-05-02  Werner Koch  <wk@gnupg.org>
4918         * options.skel: Removed the comment on trusted-keys because this
4919         option is now deprecated.
4921 2002-05-01  David Shaw  <dshaw@jabberwocky.com>
4923         * keyedit.c (menu_adduid): 2440bis04 says that multiple attribute
4924         packets on a given key are legal.
4926         * keyserver.c (keyserver_refresh): the fake v3 keyid hack applies
4927         to "mailto" URLs as well since they are also served by pksd.
4929 2002-04-29  Werner Koch  <wk@gnupg.org>
4931         Added a copyright year for files changed this year.
4933 2002-04-25  Werner Koch  <wk@gnupg.org>
4935         * g10.c, options.h: New options --display, --ttyname, --ttytype,
4936         --lc-ctype, --lc-messages to be used with future versions of the
4937         gpg-agent. 
4938         * passphrase.c (agent_send_option,agent_send_all_options): New.
4939         (agent_open): Send options to the agent.
4941         * trustdb.c (update_ownertrust, clear_ownertrust): Do an explicit
4942         do_sync because revalidation_mark does it only if when the
4943         timestamp actually changes.
4945 2002-04-23  David Shaw  <dshaw@jabberwocky.com>
4947         * main.h, keygen.c (do_generate_keypair), keylist.c
4948         (print_signature_stats, list_all, list_one, list_keyblock,
4949         list_keyblock_print, list_keyblock_colon): After generating a new
4950         key, show the key information (name, keyid, fingerprint, etc.)
4951         Also do not print uncheckable signatures (missing key..) in
4952         --check-sigs.  Print statistics (N missing keys, etc.) after
4953         --check-sigs.
4955         * keyedit.c (sign_uids): When signing a key with an expiration
4956         date on it, the "Do you want your signature to expire at the same
4957         time?" question should default to YES.
4959 2002-04-22  David Shaw  <dshaw@jabberwocky.com>
4961         * parse-packet.c (parse_plaintext), packet.h, plaintext.c
4962         (handle_plaintext): Fix bug in handling literal packets with
4963         zero-length data (no data was being confused with partial body
4964         length).
4966         * misc.c (pct_expando), options.skel: %t means extension ("jpg").
4967         %T means MIME type ("image/jpeg").
4969         * import.c (import_one): Only trigger trust update if the keyring
4970         is actually changed.
4972         * export.c (do_export_stream): Missing a m_free.
4974 2002-04-22  Stefan Bellon  <sbellon@sbellon.de>
4976         * keyid.c (expirestr_from_sk, expirestr_from_sig): Added _() to
4977         string constant.
4979         * exec.c (make_tempdir) [__riscos__]: Better placement of
4980         temporary file.
4982 2002-04-20  David Shaw  <dshaw@jabberwocky.com>
4984         * keygen.c (generate_subkeypair): 2440bis04 adds that creating
4985         subkeys on v3 keys is a MUST NOT.
4987         * getkey.c (finish_lookup): The --pgp6 "use the primary key"
4988         behavior should only apply while data signing and not encryption.
4989         Noted by Roger Sondermann.
4991 2002-04-19  Werner Koch  <wk@gnupg.org>
4993         * keygen.c (keygen_set_std_prefs): Put back 3DES because the RFC
4994         says it is good form to do so.
4996 2002-04-19  David Shaw  <dshaw@jabberwocky.com>
4998         * keyedit.c (menu_deluid): Only cause a trust update if we delete
4999         a non-revoked user id.
5001         * hkp.c (hkp_ask_import), keyserver.c (parse_keyserver_options,
5002         keyserver_spawn), options.h: Remove fast-import keyserver option
5003         (no longer meaningful).
5005         * g10.c (main), keyedit.c (sign_uids), options.h: Change
5006         --default-check-level to --default-cert-check-level as it makes
5007         clear what it operates on.
5009         * g10.c (main): --pgp6 also implies --no-ask-sig-expire.
5011         * delkey.c (do_delete_key): Comment.
5013         * keyedit.c (sign_uids, keyedit_menu, menu_deluid, menu_delsig,
5014         menu_expire, menu_revsig, menu_revkey): Only force a trustdb check
5015         if we did something that changes it.
5017         * g10.c: add "--auto-check-trustdb" to override a
5018         "--no-auto-check-trustdb"
5020 2002-04-19  Werner Koch  <wk@gnupg.org>
5022         * tdbio.c (tdbio_write_nextcheck): Return a status whether the
5023         stamp was actually changed.
5024         * trustdb.c (revalidation_mark): Sync the changes.  Removed the
5025         sync operation done by its callers.
5026         (get_validity): Add logic for maintaining a pending_check flag.
5027         (clear_ownertrust): New.
5028         
5029         * keyedit.c (sign_uids): Don't call revalidation_mark depending on
5030         primary_pk.
5031         (keyedit_menu): Call revalidation_mark after "trust".
5032         (show_key_with_all_names): Print a warning on the wrong listed key
5033         validity.
5035         * delkey.c (do_delete_key): Clear the owenertrust information when
5036         deleting a public key.
5037         
5038 2002-04-18  Werner Koch  <wk@gnupg.org>
5040         * seskey.c (encode_md_value): Print an error message if a wrong
5041         digest algorithm is used with DSA.  Changed all callers to cope
5042         with a NULL return.  Problem noted by Imad R. Faiad.
5044 2002-04-18  David Shaw  <dshaw@jabberwocky.com>
5046         * trustdb.c (mark_usable_uid_certs): Properly handle nonrevocable
5047         signatures that can expire.  In short, the only thing that can
5048         override an unexpired nonrevocable signature is another unexpired
5049         nonrevocable signature.
5051         * getkey.c (finish_lookup): Always use primary signing key for
5052         signatures when --pgp6 is on since pgp6 and 7 do not understand
5053         signatures made by signing subkeys.
5055 2002-04-18  Werner Koch  <wk@gnupg.org>
5057         * trustdb.c (validate_keys): Never schedule a nextcheck into the
5058         past.
5059         (validate_key_list): New arg curtime use it to set next_expire.
5060         (validate_one_keyblock): Take the current time from the caller.
5061         (clear_validity, reset_unconnected_keys): New.
5062         (validate_keys): Reset all unconnected keys.
5064         * getkey.c (premerge_public_with_secret): Fixed 0x12345678! syntax
5065         for use with secret keys.
5066         (lookup): Advance the searchmode after a search FIRST.
5068         * seckey-cert.c (do_check): Always calculate the old checksum for
5069         use after unprotection.
5071         * g10.c, options.skel: New option --no-escape-from.  Made
5072         --escape-from and --force-v3-sigs the default and removed them
5073         from the options skeleton.
5075 2002-04-16  Werner Koch  <wk@gnupg.org>
5077         * parse-packet.c (parse_key): Support a SHA1 checksum as per
5078         draft-rfc2440-bis04.
5079         * packet.h (PKT_secret_key): Add field sha1chk.
5080         * seckey-cert.c (do_check): Check the SHA1 checksum
5081         (protect_secret_key): And create it.
5082         * build-packet.c (do_secret_key): Mark it as sha-1 protected.
5083         * g10.c, options.h: New option --simple-sk-checksum.
5085 2002-04-13  David Shaw  <dshaw@jabberwocky.com>
5087         * parse-packet.c (parse_signature): Minor fix - signatures should
5088         expire at their expiration time and not one second later.
5090         * keygen.c (proc_parameter_file): Allow specifying preferences
5091         string (i.e. "s5 s2 z1 z2", etc) in a batchmode key generation
5092         file.
5094         * keyedit.c (keyedit_menu): Print standard error message when
5095         signing a revoked key (no new translation).
5097         * getkey.c (merge_selfsigs): Get the default set of key prefs from
5098         the real (not attribute) primary uid.
5100 2002-04-12  David Shaw  <dshaw@jabberwocky.com>
5102         * pkclist.c (build_pk_list): Fix bug that allowed a key to be
5103         selected twice in batch mode if one instance was the default
5104         recipient and the other was an encrypt-to.  Noted by Stefan
5105         Bellon.
5107         * parse-packet.c (dump_sig_subpkt): Show data in trust and regexp
5108         sig subpackets.
5110         * keyedit.c (keyedit_menu): Use new function real_uids_left to
5111         prevent deleting the last real (i.e. non-attribute) uid.  Again,
5112         according to the attribute draft. (menu_showphoto): Make another
5113         string translatable.
5115 2002-04-11  David Shaw  <dshaw@jabberwocky.com>
5117         * build-packet.c (build_sig_subpkt): Delete subpackets from both
5118         hashed and unhashed area on update.  (find_subpkt): No longer
5119         needed.
5121         * keyedit.c (sign_uids): With --pgp2 on, refuse to sign a v3 key
5122         with a v4 signature.  As usual, --expert overrides.  Try to tweak
5123         some strings to a closer match so they can all be translated in
5124         one place.  Use different helptext keys to allow different help
5125         text for different questions.
5127         * keygen.c (keygen_upd_std_prefs): Remove preferences from both
5128         hashed and unhashed areas if they are not going to be used.
5130 2002-04-10  David Shaw  <dshaw@jabberwocky.com>
5132         * misc.c (pct_expando), options.skel: Use %t to indicate type of a
5133         photo ID (in this version, it's always "jpeg").  Also tweak string
5134         expansion loop to minimize reallocs.
5136         * mainproc.c (do_check_sig): Variable type fix.
5138         * keyedit.c (menu_set_primary_uid): Differentiate between true
5139         user IDs and attribute user IDs when making one of them primary.
5140         That is, if we are making a user ID primary, we alter user IDs.
5141         If we are making an attribute packet primary, we alter attribute
5142         packets.  This matches the language in the latest attribute packet
5143         draft.
5145         * keyedit.c (sign_uids): No need for the empty string hack.
5147         * getkey.c (fixup_uidnode): Only accept preferences from the
5148         hashed segment of the self-sig.
5150 2002-04-10  Werner Koch  <wk@gnupg.org>
5152         * tdbio.c (migrate_from_v2): Fixed the offset to read the old
5153         ownertrust value and only add entries to the table if we really
5154         have a value.
5156 2002-04-08  David Shaw  <dshaw@jabberwocky.com>
5158         * status.h, status.c (get_status_string): Add KEYEXPIRED, EXPSIG,
5159         and EXPKEYSIG.  Add "deprecated-use-keyexpired-instead" to
5160         SIGEXPIRED.
5162         * sig-check.c (do_check): Start transition from SIGEXPIRED to
5163         KEYEXPIRED, since the actual event is signature verification by an
5164         expired key and not an expired signature. (do_signature_check,
5165         packet.h): Rename as signature_check2, make public, and change all
5166         callers.
5168         * mainproc.c (check_sig_and_print, do_check_sig): Use status
5169         EXPSIG for an expired, but good, signature.  Add the expiration
5170         time (or 0) to the VALIDSIG status line.  Use status KEYEXPSIG for
5171         a good signature from an expired key.
5173         * g10.c (main): remove checks for no arguments now that argparse
5174         does it.
5176 2002-04-06  Werner Koch  <wk@gnupg.org>
5178         * keyring.c (keyring_get_keyblock): Disable the keylist mode here.
5180         * encode.c (encode_simple, encode_crypt): Only test on compressed
5181         files if a compress level was not explicity set.
5183         * keygen.c (keygen_set_std_prefs): Removed Blowfish and Twofish
5184         from the list of default preferences, swapped the preferences of
5185         RMD160 and SHA1.  Don't include a preference to 3DES unless the
5186         IDEA kludge gets used.
5188         * free-packet.c (free_packet): call free_encrypted also for
5189         PKT_ENCRYPTED_MDC.
5191         * compress.c (release_context): New.
5192         (handle_compressed): Allocate the context and setup a closure to
5193         release the context.  This is required because there is no
5194         guarantee that the filter gets popped from the chain at the end
5195         of the function.  Problem noted by Timo and probably also the
5196         cause for a couple of other reports.
5197         (compress_filter): Use the release function if set.
5199         * tdbio.c [__CYGWIN32__]: Don't rename ftruncate.  Noted by
5200         Disastry.
5202         * parse-packet.c (parse_signature): Put parens around a bit test.
5204         * exec.c (make_tempdir): Double backslash for TMP directory
5205         creation under Windows.  Better strlen the DIRSEP_S constants for
5206         allocation measurements.
5208         * decrypt.c (decrypt_messages): Release the passphrase aquired
5209         by get_last_passphrase.
5211 2002-04-02  Werner Koch  <wk@gnupg.org>
5213         * Makefile.am (EXTRA_DIST): Removed OPTIONS an pubring.asc - they
5214         are no longer of any use. 
5216 2002-04-03  David Shaw  <dshaw@jabberwocky.com>
5218         * keyserver.c (parse_keyserver_options): fix auto-key-retrieve to
5219         actually work as a keyserver-option (noted by Roger Sondermann).
5221         * keylist.c (reorder_keyblock): do not reorder the primary
5222         attribute packet - the first user ID must be a genuine one.
5224 2002-03-31  David Shaw  <dshaw@jabberwocky.com>
5226         * keylist.c (list_keyblock_colon): Fix ownertrust display with
5227         --with-colons.
5229         * keygen.c (generate_user_id), photoid.c (generate_photo_id):
5230         Properly initialize the user ID refcount.  A few more "y/n" ->
5231         "y/N" in photoid.c.
5233         * keyedit.c (ask_revoke_sig): Warn the user if they are about to
5234         revoke an expired sig (not a problem, but they should know).  Also
5235         tweak a few prompts to change "y/n" to "y/N", which is how most
5236         other prompts are written.
5238         * keyserver.c (keyserver_search_prompt): Control-d escapes the
5239         keyserver search prompt.
5241         * pkclist.c (show_revocation_reason & callers): If a subkey is
5242         considered revoked solely because the parent key is revoked, print
5243         the revocation reason from the parent key.
5245         * trustdb.c (get_validity): Allow revocation/expiration to apply
5246         to a uid/key with no entry in the trustdb.
5248 2002-03-29  David Shaw  <dshaw@jabberwocky.com>
5250         * keyserver.c (printunquoted): unquote backslashes from keyserver
5251         searches
5253         * hkp.c (write_quoted): quote backslashes from keyserver searches
5255 2002-03-26  Werner Koch  <wk@gnupg.org>
5257         * keygen.c (ask_keysize): Removed the warning for key sizes > 1536.
5259 2002-03-25  Werner Koch  <wk@gnupg.org>
5261         * keyedit.c (sign_uids): Use 2 strings and not a %s so that
5262         translations can be done the right way.
5263         * helptext.c: Fixed small typo.
5265 2002-03-23  David Shaw  <dshaw@jabberwocky.com>
5267         * import.c (append_uid, merge_sigs): it is okay to import
5268         completely non-signed uids now (with --allow-non-selfsigned-uid).
5270         * getkey.c (get_primary_uid, merge_selfsigs_main): do not choose
5271         an attribute packet (i.e. photo) as primary uid.  This prevents
5272         oddities like "Good signature from [image of size 2671]".  This is
5273         still not perfect (one can still select an attribute packet as
5274         primary in --edit), but is closer to the way the draft is going.
5276         * g10.c (build_list): algorithms should include 110.
5278         * g10.c (main): --pgp2 implies --no-ask-sig-expire and
5279         --no-ask-cert-expire as those would cause a v4 sig/cert.
5281         * armor.c (is_armor_header): be more lenient in what constitutes a
5282         valid armor header (i.e. -----BEGIN blah blah-----) as some
5283         Windows programs seem to add spaces at the end.  --openpgp makes
5284         it strict again.
5286 2002-03-18  David Shaw  <dshaw@jabberwocky.com>
5288         * keyserver.c (keyserver_search_prompt): Properly handle a "no
5289         keys found" case from the internal HKP code (external HKP is ok).
5290         Also, make a COUNT -1 (i.e. streamed) keyserver response a little
5291         more efficient.
5293         * g10.c (main): Add --no-allow-non-selfsigned-uid
5295 2002-03-17  David Shaw  <dshaw@jabberwocky.com>
5297         * g10.c (main): --openpgp implies --allow-non-selfsigned-uid.
5299         * getkey.c (merge_selfsigs_main): If none of the uids are primary
5300         (because none are valid) then pick the first to be primary (but
5301         still invalid).  This is for cosmetics in case some display needs
5302         to print a user ID from a non-selfsigned key.  Also use
5303         --allow-non-selfsigned-uid to make such a key valid and not
5304         --always-trust.  The key is *not* automatically trusted via
5305         --allow-non-selfsigned-uid.
5307         * mainproc.c (check_sig_and_print): Make sure non-selfsigned uids
5308         print [uncertain] on verification even though one is primary now.
5310         * getkey.c (merge_selfsigs): If the main key is not valid, then
5311         neither are the subkeys.
5313         * import.c (import_one): Allow --allow-non-selfsigned-uid to work
5314         on completely unsigned keys.  Print the uids in UTF8.  Remove
5315         mark_non_selfsigned_uids_valid().
5317         * keyedit.c (show_key_with_all_names): Show revocation key as
5318         UTF8.
5320         * sign.c (clearsign_file): Allow --not-dash-escaped to work with
5321         v3 keys.
5323 2002-03-14  Werner Koch  <wk@gnupg.org>
5325         * main.h: Changed the default algorithms to CAST5 and SHA1.
5327 2002-03-13  David Shaw  <dshaw@jabberwocky.com>
5329         * import.c (chk_self_sigs): Show which user ID a bad self-sig
5330         (invald sig or unsupported public key algorithm) resides on.
5332         * import.c (chk_self_sigs): any valid self-sig should mark a user
5333         ID or subkey as valid - otherwise, an attacker could DoS the user
5334         by inventing a bogus invalid self-signature.
5336 2002-03-07  David Shaw  <dshaw@jabberwocky.com>
5338         * g10.c (main): make a few more strings translatable.
5340         * options.h, options.skel, g10.c (main), gpgv.c, mainproc.c
5341         (check_sig_and_print), keyserver.c (parse_keyserver_options):
5342         --auto-key-retrieve should really be a keyserver-option variable.
5344         * import.c (revocation_present): new function to print a warning
5345         if a key is imported that has been revoked by designated revoker,
5346         but the designated revoker is not present to verify the
5347         revocation.  If keyserver-options auto-key-retrieve is set, try
5348         and fetch the designated revoker from the keyserver.
5350         * import.c (import_one): call revocation_present after importing a
5351         new key.  Note that this applies to --import, --recv-keys, and
5352         --search-keys.
5353         
5354         * keyserver-internal.h, keyserver.c (keyserver_import_fprint):
5355         import via fingerprint (for revocation keys).
5357         * keyserver.c (keyserver_import_keyid): much simpler
5358         implementation now that we're using KEYDB_SEARCH_DESC internally.
5360 2002-03-04  David Shaw  <dshaw@jabberwocky.com>
5362         * revoke.c (gen_revoke): do not prompt for revocation reason for
5363         v3 revocations (unless force-v4-certs is on) since they wouldn't
5364         be used anyway.
5366         * keyedit.c (menu_revsig): show the status of the sigs
5367         (exportable? revocable?) to the user before prompting for which
5368         sig to revoke.  Also, make sure that local signatures get local
5369         revocations.
5371         * keyedit.c (ask_revoke_sig): remind the user which sigs are
5372         local.
5374         * g10.c (main): Add "exec-path" variable to override PATH for
5375         execing programs.
5377         * export.c (do_export_stream): properly check return code from
5378         classify_user_id to catch unclassifiable keys.
5380 2002-03-03  David Shaw  <dshaw@jabberwocky.com>
5382         * parse-packet.c (parse_signature): variable type tweak for RISC
5383         OS (from Stefan)
5385 2002-02-28  David Shaw  <dshaw@jabberwocky.com>
5387         * getkey.c (check_revocation_keys): New function to check a
5388         revocation against a list of potential revocation keys.  Note the
5389         loop-breaking code here.  This is to prevent blowing up if A is
5390         B's revocation key, while B is also A's.  Note also that this is
5391         written so that a revoked revoker can still issue revocations:
5392         i.e. If A revokes B, but A is revoked, B is still revoked.  I'm
5393         not completely convinced this is the proper behavior, but it
5394         matches how PGP does it.  It does at least have the advantage of
5395         much simpler code - my first version of this had lots of loop
5396         maintaining code so you could chain revokers many levels deep and
5397         if D was revoked, C was not, which meant that B was, and so on.
5398         It was sort of scary, actually.
5400         * getkey.c (merge_selfsigs_main): Add any revocation keys onto the
5401         pk.  This is particularly interesting since we normally only get
5402         data from the most recent 1F signature, but you need multiple 1F
5403         sigs to properly handle revocation keys (PGP does it this way, and
5404         a revocation key could be marked "sensitive" and hence in a
5405         different signature).  Also, if a pk has a revocation key set,
5406         check for revocation sigs that were not made by us - if made by a
5407         valid revocation key, mark the pk revoked.
5409         * packet.h, getkey.c (cache_public_key): do not cache key if
5410         "dont_cache" is set.  This allows the revocation key code to look
5411         up a key and return information that may be inaccurate to prevent
5412         loops without caching the fake data.
5414         * packet.h, sig-check.c (do_signature_check): Record if a
5415         signature was made by a revoked pk.
5417         * packet.h, parse-packet.c (parse_one_sig_subpkt,
5418         can_handle_critical, parse_signature): Get revocation key
5419         information out of direct sigs.
5420         
5421         * keylist.c (list_keyblock_print): don't assume that the presence
5422         of a 0x20 signature means the key is revoked.  With revocation
5423         keys, this may not be true if the revocation key is not around to
5424         verify it or if verification failed.  Also, 0x1F should get listed
5425         as "sig", and not "unexpected signature class".
5427         * keyedit.c (show_key_with_all_names): Add a flag for printing
5428         revoker information and change all callers.
5430         * import.c (merge_blocks): merge in any new direct key (0x1F)
5431         sigs.
5433         * import.c (import_revoke_cert): don't keep processing after a
5434         revocation is rejected.
5435         
5436         * import.c (delete_inv_parts): Allow importing a revocation
5437         signature even if it was not issued by the key.  This allows a
5438         revocation key to issue it.  Of course, the sig still needs to be
5439         checked before we trust it.
5441         * free-packet.c (copy_public_key): Include a new copy of the
5442         revocation keys when duping a pk.
5444         * free-packet.c (free_seckey_enc, release_public_key_parts): Free
5445         any revocation keys that are attached to a sig or pk.
5447         * export.c (do_export_stream): Do not export signatures with
5448         "sensitive" revocation keys in them.
5450 2002-02-27  David Shaw  <dshaw@jabberwocky.com>
5452         * export.c (do_export_stream): Do not include v3 keys in a
5453         --export-secret-subkeys export.
5455         * getkey.c (merge_selfsigs_main): If a key isn't valid (say,
5456         because of no self-signature), allow --always-trust to force it
5457         valid so it can be trusted.
5459 2002-02-25  David Shaw  <dshaw@jabberwocky.com>
5461         * hkp.c (hkp_ask_import), hkp.h, keyserver.c (all): treat key
5462         lists internally as fingerprints when possible.  All this is via
5463         KEYDB_SEARCH_DESC - no point in reinventing the wheel. This allows
5464         the helper program to search the keyserver by fingerprint if
5465         desired (and the keyserver supports it).  Note that automatic
5466         fingerprint promotion during refresh only applies to v4 keys as a
5467         v4 fingerprint can be easily changed into a long or short key id,
5468         and a v3 cannot.
5470         * pubkey-enc.c, getkey.c, misc.c, main.h: Take two copies of
5471         hextobyte() from pubkey-enc.c and getkey.c and make them into one
5472         copy in misc.c.
5474 2002-02-22  David Shaw  <dshaw@jabberwocky.com>
5476         * keyserver.c (keyserver_search_prompt): Detect a "no keys found"
5477         case even if the helper program does not explicitly say how many
5478         keys were found.
5480         * hkp.c (parse_hkp_index): Bug fix - don't report non-revoked keys
5481         as revoked in HKP key searches.
5483 2002-02-19  Werner Koch  <wk@gnupg.org>
5485         * parse-packet.c (parse_trust): Made parsing more robust.
5487 2002-02-19  David Shaw  <dshaw@jabberwocky.com>
5489         * hkp.c (parse_hkp_index): Catch corruption in HKP index lines
5490         (can be caused by broken or malicious keyservers).
5492         * keyserver.c (keyserver_work): Add KEYSERVER_NOT_SUPPORTED for
5493         unsupported actions (say, a keyserver that has no way to search,
5494         or a readonly keyserver that has no way to add).  Also add a
5495         USE_EXTERNAL_HKP define to disable the internal HKP keyserver
5496         code.
5498 2002-02-14  Werner Koch  <wk@gnupg.org>
5500         * g10.c: New option --no-use-agent. 
5502         * pkclist.c (check_signatures_trust): Always print the warning for
5503         unknown and undefined trust.  Removed the did_add cruft.  Reported
5504         by Janusz A. Urbanowicz.
5506 2002-02-11  David Shaw  <dshaw@jabberwocky.com>
5508         * hkp.c (parse_hkp_index): Bug fix - properly handle user IDs with
5509         colons (":") in them while HKP searching.
5511 2002-02-09  David Shaw  <dshaw@jabberwocky.com>
5513         * misc.c (pct_expando): More comments.
5515         * keydb.h, sign.c (mk_notation_and_policy): Clarify what is a sig
5516         and what is a cert.  A sig has sigclass 0x00, 0x01, 0x02, or 0x40,
5517         and everything else is a cert.
5519         * g10.c (main), keyedit.c (keyedit_menu): Add a "nrlsign" for
5520         nonrevocable and local key signatures.
5522         * g10.c (main): Add a --no-force-mdc to undo --force-mdc.
5524         * options.h, g10.c (main), cipher.c (write_header): Add a knob to
5525         --disable-mdc/--no-disable-mdc.  Off by default, of course, but is
5526         used in --pgp2 and --pgp6 modes.
5527         
5528         * pkclist.c (build_pk_list): Allow specifying multiple users in
5529         the "Enter the user ID" loop.  Enter a blank line to stop.  Show
5530         each key+id as it is added.
5532         * keylist.c (show_policy_url), mainproc.c (print_notation_data):
5533         It is not illegal (though possibly silly) to have multiple policy
5534         URLs in a given signature, so print all that are present.
5535         
5536         * hkp.c (hkp_search): More efficient implementation of URL-ifying
5537         code.
5539 2002-02-04  David Shaw  <dshaw@jabberwocky.com>
5541         * main.h, misc.c (pct_expando): New function to generalize
5542         %-expando processing in any arbitrary string.
5544         * photoid.c (show_photo): Call the new pct_expando function rather
5545         than expand strings internally.
5546         
5547         * sign.c (mk_notation_and_policy): Show policy URLs and notations
5548         when making a signature if show-policy/show-notation is on.
5549         %-expand policy URLs during generation.  This lets the user have
5550         policy URLs of the form "http://notary.jabberwocky.com/keysign/%K"
5551         which will generate a per-signature policy URL.
5553         * main.h, keylist.c (show_policy_url, show_notation): Add amount
5554         to indent so the same function can be used in key listings as well
5555         as during sig generation.  Change all callers.
5557 2002-02-04  David Shaw  <dshaw@jabberwocky.com>
5559         * keyserver.c, options.h (parse_keyserver_options, keyidlist):
5560         Workaround for the pksd and OKS keyserver bug that calculates v4
5561         RSA keyids as if they were v3.  The workaround/hack is to fetch
5562         both the v4 (e.g. 99242560) and v3 (e.g. 68FDDBC7) keyids.  This
5563         only happens for key refresh while using the HKP scheme and the
5564         refresh-add-fake-v3-keyids keyserver option must be set.  This
5565         should stay off by default.
5567 2002-02-03  David Shaw  <dshaw@jabberwocky.com>
5569         * keyserver.c (keyserver_spawn): Bug fix - do not append keys to
5570         each other when --sending more than one.
5572 2002-02-02  David Shaw  <dshaw@jabberwocky.com>
5574         * options.h, g10.c (main), keyedit.c (sign_uids), sign.c
5575         (mk_notation_and_policy): Split "--set-policy-url" into
5576         "--cert-policy-url" and "--sig-policy-url" so the user can set
5577         different policies for key and data signing.  For backwards
5578         compatibility, "--set-policy-url" sets both, as before.
5580 2002-01-30  Werner Koch  <wk@gnupg.org>
5582         * g10.c (main): --gen-random --armor does now output a base64
5583         encoded string.
5585 2002-01-28  David Shaw  <dshaw@jabberwocky.com>
5587         * g10.c (main), options.h, pkclist.c (algo_available): --pgp6
5588         flag.  This is not nearly as involved as --pgp2.  In short, it
5589         turns off force_mdc, turns on no_comment, escape_from, and
5590         force_v3_sigs, and sets compression to 1.  It also restricts the
5591         user to IDEA (if present), 3DES, CAST5, MD5, SHA1, and RIPEMD160.
5592         See the comments above algo_available() for lots of discussion on
5593         why you would want to do this.
5595 2002-01-27  David Shaw  <dshaw@jabberwocky.com>
5597         * keygen.c (keygen_set_std_prefs): Comment
5599         * keyedit.c (sign_uids): Bug fix - when signing with multiple
5600         secret keys at the same time, make sure each key gets the sigclass
5601         prompt.
5603         * exec.c (exec_finish): Close the iobuf and FILE before trying to
5604         waitpid, so the remote process will get a SIGPIPE and exit.  This
5605         is only a factor when using a pipe to communicate.
5607         * exec.c (exec_write): Disable cache-on-close of the fd iobuf (is
5608         this right?  Why is a fd iobuf cached at all?)
5610 2002-01-26  Werner Koch  <wk@gnupg.org>
5612         * g10.c, options.h: New option --gpg-agent-info
5613         * passphrase.c (agent_open): Let it override the environment info.
5614         * seckey-cert.c (check_secret_key): Always try 3 times when the
5615         agent is enabled.
5616         * options.skel: Describe --use-agent.
5618 2002-01-24  David Shaw  <dshaw@jabberwocky.com>
5620         * pubkey-enc.c (is_algo_in_prefs, get_it): Only check preferences
5621         against keys with v4 self sigs - there is really little point in
5622         warning for every single non-IDEA message encrypted to an old key.
5624         * pkclist.c (select_algo_from_prefs): Only put in the fake IDEA
5625         preference if --pgp2 is on.
5627         * mainproc.c (check_sig_and_print): Print "Expired" for expired
5628         but good signatures (this still prints "BAD" for expired but bad
5629         signatures).
5631 2002-01-23  David Shaw  <dshaw@jabberwocky.com>
5633         * keygen.c (ask_keysize): Cosmetic: don't present a RSA signing
5634         key as a "keypair" which can be 768 bits long (as RSA minimum is
5635         1024).
5637         * pubkey-enc.c (is_algo_in_prefs): Allow IDEA as a fake preference
5638         for v3 keys with v3 selfsigs.
5640 2002-01-22  David Shaw  <dshaw@jabberwocky.com>
5642         * packet.h, getkey.c (merge_selfsigs_main), pkclist.c
5643         (select_algo_from_prefs): Implement the fake IDEA preference as
5644         per RFC2440:12.1.  This doesn't mean that IDEA will be used (the
5645         plugin may not be present), but it does mean that a v3 key with a
5646         v3 selfsig has an implicit IDEA preference instead of 3DES.  v3
5647         keys with v4 selfsigs use preferences as normal.
5649         * encode.c (encode_crypt): if select_algo_from_prefs fails, this
5650         means that we could not find a cipher that both keys like.  Since
5651         all v4 keys have an implicit 3DES preference, this means there is
5652         a v3 key with a v3 selfsig in the list.  Use 3DES in this case as
5653         it is the safest option (we know the v4 key can handle it, and
5654         we'll just hope the v3 key is being used in an implementation that
5655         can handle it).  If --pgp2 is on, warn the user what we're doing
5656         since it'll probably break PGP2 compatibility.
5658         * g10.c (main): Do not force using IDEA for encrypted files in
5659         --pgp2 mode - let the fake IDEA preference choose this for us for
5660         better compatibility when encrypting to multiple keys, only some
5661         of which are v3.
5663         * keygen.c (keygen_set_std_prefs): Put 3DES on the end of the
5664         default cipher pref list (RFC2440: "...it is good form to place it
5665         there explicitly.").  If the user has the IDEA plugin installed,
5666         put a preference for IDEA *after* 3DES to effectively disable its
5667         use for everything except encrypting along with v3 keys.
5669         * encode.c, g10.c, sign.c: Change the PGP2 warning line from
5670         "... will not be usable ..." to "... may not be usable ..." as the
5671         user could be using one of the enhanced PGP2 variations.
5673         * helptext.c: Revise the sign_uid.class help text as suggested by
5674         Stefan.
5675         
5676 2002-01-20  Werner Koch  <wk@gnupg.org>
5678         * passphrase.c (passphrase_to_dek): Add tryagain_text arg to be
5679         used with the agent.  Changed all callers.
5680         (agent_get_passphrase): Likewise and send it to the agent
5681         * seckey-cert.c (do_check): New arg tryagain_text.
5682         (check_secret_key): Pass the string to do_check.
5683         * keygen.c (ask_passphrase): Set the error text is required.
5684         * keyedit.c (change_passphrase): Ditto.
5686         * passphrase.c (agent_open): Disable opt.use_agent in case of a
5687         problem with the agent. 
5688         (agent_get_passphrase): Ditto.
5689         (passphrase_clear_cache): Ditto.
5691 2002-01-19  Werner Koch  <wk@gnupg.org>
5693         * passphrase.c (agent_open): Add support for the new Assuan based
5694         gpg-agent.  New arg to return the used protocol version.
5695         (agent_get_passphrase): Implemented new protocol here.
5696         (passphrase_clear_cache): Ditto.
5697         (readline): New.
5698         
5699 2002-01-15  Timo Schulz  <ts@winpt.org>
5701         * encode.c (encode_crypt_files): Fail if --output is used.
5702         
5703         * g10.c: New command --decrypt-files.
5705         * decrypt.c (decrypt_messages): New.
5706         
5707 2002-01-09  David Shaw  <dshaw@jabberwocky.com>
5709         * g10.c, misc.c, gpgv.c: move idea_cipher_warn to misc.c so gpgv.c
5710         doesn't need a stub for it any longer.
5712         * g10.c (get_temp_dir), main.h: no longer used (it's in exec.c now)
5714         * g10.c (main), delkey.c (delete_keys), main.h : Allow
5715         --delete-key (now --delete-keys, though --delete-key still works,
5716         of course) to delete multiple keys in one go.  This applies to
5717         --delete-secret-key(s) and --delete-secret-and-public-key(s) as
5718         well.
5720 2002-01-09  Timo Schulz  <ts@winpt.org>
5722         * encode.c (encode_crypt_files): Now it behaves like verify_files.
5723         
5724         * g10.c (main): We don't need to check argc for encode_crypt_files
5725         any longer.
5727 2002-01-09  Timo Schulz  <ts@winpt.org>
5729         * exec.c: Include windows.h for dosish systems.
5731 2002-01-08  Timo Schulz  <ts@winpt.org>
5733         * g10.c (main): New description for --encrypt-files.
5735 2002-01-08  Werner Koch  <wk@gnupg.org>
5737         * g10.c (main): Must register the secring for encryption because
5738         it is needed to figure out the default recipient.  Reported by
5739         Roger Sondermann.
5741 2002-01-05  David Shaw  <dshaw@jabberwocky.com>
5743         * keyedit.c (menu_adduid): Require --expert before adding a photo
5744         ID to a v3 key, and before adding a second photo ID to any key.
5746         * keyedit.c (keyedit_menu): Don't allow adding photo IDs in
5747         rfc1991 or pgp2 mode.
5749         * getkey.c (merge_selfsigs_subkey): Permit v3 subkeys.  Believe it
5750         or not, this is allowed by rfc 2440, and both PGP 6 and PGP 7 work
5751         fine with them.
5753         * g10.c, options.h, keyedit.c, sign.c: Move the "ask for
5754         expiration" switch off of --expert, which was getting quite
5755         overloaded, and onto ask-sig-expire and ask-cert-expire.  Both
5756         default to off.
5758         * g10.c (main): Change the default compression algo to 1, to be
5759         more OpenPGP compliant (PGP also uses this, so it'll help with
5760         interoperability problems as well).
5762         * encode.c (encode_crypt): Handle compression algo 2, since the
5763         default is now 1.
5765         * build-packet.c (build_attribute_subpkt): Fix off-by-one error.
5767 2002-01-05  Werner Koch  <wk@gnupg.org>
5769         * g10.c (main): Do not register the secret keyrings for certain
5770         commands.
5772         * keydb.c (keydb_add_resource): Use access to test for keyring
5773         existence.  This avoids cached opened files which are bad under
5774         RISC OS.
5776 2002-01-04  David Shaw  <dshaw@jabberwocky.com>
5778         * sign.c (sign_file, sign_symencrypt_file): always use one-pass
5779         packets unless rfc1991 is enabled.  This allows a signature made
5780         with a v3 key to work in PGP 6 and 7.  Signatures made with v4
5781         keys are unchanged.
5783         * g10.c (main): Disallow non-detached signatures in PGP2 mode.
5784         Move the "you must use files and not pipes" PGP2 warning up so all
5785         the PGP2 stuff is together.
5787         * encode.c (encode_simple): Use the actual filesize instead of
5788         partial length packets in the internal literal packet from a
5789         symmetric message.  This breaks PGP5(?), but fixes PGP2, 6, and 7.
5790         It's a decent tradeoff.  Note there was only an issue with
5791         old-style RFC1991 symmetric messages.  2440-style messages in 6
5792         and 7 work with or without partial length packets.
5794 2002-01-03  David Shaw  <dshaw@jabberwocky.com>
5796         * g10.c (main): Removed --no-default-check-level option, as it is
5797         not consistent with other "default" options.  Plus, it is the same
5798         as saying --default-check-level 0.
5800         * exec.c (exec_read): Disallow caching tempfile from child
5801         process, as this keeps the file handle open and can cause unlink
5802         problems on some platforms.
5804         * keyserver.c (keyserver_search_prompt): Minor tweak - don't
5805         bother to transform keyids into textual form if they're just going
5806         to be transformed back to numbers.
5808 2002-01-03  Timo Schulz <ts@winpt.org>
5810         * g10.c: New command --encrypt-files.
5811     
5812         * verify.c (print_file_status): Removed the static because
5813         encode_crypt_files also uses this function.
5815         * main.h (print_files_status): New.
5816         (encode_crypt_files): New.
5818         * encode.c (encode_crypt_files): New.
5820 2002-01-02  Stefan Bellon  <sbellon@sbellon.de>
5822         * keyserver.c: Moved util.h include down in order to avoid
5823         redefinition problems on RISC OS.
5825         * keyring.c (keyring_lock): Only lock keyrings that are writable.
5827         * keyring.c (keyring_update_keyblock): Close unused iobuf.
5829         * hkp.c (parse_hkp_index, hkp_search) [__riscos__]: Changed
5830         unsigned char* to char* because of compiler issues.
5832         * exec.c (exec_finish) [__riscos__]: Invalidate close cache so
5833         that file can be unlinked.
5835 2001-12-28  David Shaw  <dshaw@jabberwocky.com>
5837         * g10.c (main): Use a different strlist to check extensions since
5838         they need to be handled seperately now.
5840         * misc.c,main.h (check_permissions): Properly handle permission
5841         and ownership checks on files in the lib directory
5842         (e.g. /usr/local/lib/gnupg), which are owned by root and are
5843         world-readable, and change all callers to specify extension or
5844         per-user file.
5846         * photoid.c (show_photo), keyserver.c (keyserver_spawn): Bug fix -
5847         don't call exec_finish if exec_write fails.
5849         * keyserver.c (keyserver_spawn): Look for OPTIONS from the
5850         keyserver helper - specifically, a "OUTOFBAND" option for the
5851         email keyserver.
5853         * mainproc.c (list_node), keylist.c (list_keyblock_colon),
5854         import.c (delete_inv_parts), export.c (do_export_stream): Use
5855         signature flags for exportability check rather than re-parsing the
5856         subpacket.
5858         * keyid.c, keydb.h (get_lsign_letter): No longer needed.
5860 2001-12-27  David Shaw  <dshaw@jabberwocky.com>
5862         * exec.c (exec_finish): Show errors when temp files cannot be
5863         deleted for whatever reason.
5865         * exec.c (exec_read): Don't rely on WEXITSTATUS being present.
5867         * exec.c (make_tempdir): Add temp file creator for win32.  Don't
5868         create an incoming temp file if the exec is write-only.
5870         * keyserver.c (keyserver_spawn): Clean up error handling, for when
5871         the spawn fails.
5873         * photoid.c (show_photo): Clean up error handling.
5875         * misc.c (check_permissions): Neaten.
5877 2001-12-25  David Shaw  <dshaw@jabberwocky.com>
5879         * mkdtemp.c (mkdtemp): Add copyleft info and tweak the 'X' counter
5880         to be a bit simpler.
5882         * keyserver.c, photoid.c: Remove unused headers left over from
5883         when the exec functions lived there.
5885 2001-12-23  Timo Schulz <ts@winpt.org>
5887         * misc.c (check_permissions): Do not use it for W32 systems.
5889         * tdbio.c (migrate_from_v2): Define ftruncate as chsize() for W32.
5891         * mkdtemp.c: W32 support.
5893         * photoid.c: Ditto.
5895         * exec.c: Ditto.
5897 2001-12-22  David Shaw  <dshaw@jabberwocky.com>
5899         * exec.c (make_tempdir): avoid compiler warning with const
5901         * mkdtemp.c (mkdtemp): catch the empty ("") string case in case
5902         someone repurposes mkdtemp at some point.
5904         * photoid.c (generate_photo_id, show_photo): some type changes
5905         from Stefan Bellon.
5907         * exec.c (make_tempdir): handle Win32 systems, suggested by Timo
5908         Schulz.
5910 2001-12-22  Werner Koch  <wk@gnupg.org>
5912         * encode.c (encode_simple, encode_crypt): i18n 2 strings.
5914 2001-12-22  Timo Schulz <ts@winpt.org>
5915         
5916         * encode.c (encode_simple, encode_crypt): Use is_file_compressed
5917         to avoid to compress compressed files.
5919 2001-12-22  Werner Koch  <wk@gnupg.org>
5921         * keyserver.c (keyserver_spawn): Removed some variables
5922         declaration due to shadowing warnings.
5924         * build-packet.c (build_attribute_subpkt): s/index/idx/ to avoid
5925         compiler warnig due to index(3).
5927         * getkey.c (get_ctx_handle): Use KEYDB_HANDLE as return value.
5928         * keylist.c (list_one): Made resname const.
5930         * keyedit.c (keyedit_menu): Allow "addphoto" only when --openpgp is
5931         not used.
5933         * options.skel: Changed one example photo viewer to qiv.
5935 2001-12-21  David Shaw  <dshaw@jabberwocky.com>
5937         * Makefile.am: add exec.c, exec.h, photoid.c, and photoid.h
5939         * build-packet.c (build_attribute_subpkt): new function to build
5940         the raw attribute subpacket.  Note that attribute subpackets have
5941         the same format as signature subpackets.
5943         * exec.c: new file with generic exec-a-program functionality.
5944         Used by both photo IDs and keyserver helpers.  This is pretty much
5945         the same code that used to be keyserver specific, with some
5946         changes to be usable generically.
5948         * free-packet.c (free_attributes (new)): function to free an
5949         attribute packet.
5950         
5951         * gpgv.c: added stub show_photo
5952         
5953         * keyedit.c (keyedit_menu, menu_adduid, menu_showphoto): can add a
5954         photo (calls generate_photo_id), or display a photo (calls
5955         show_photo) from the --edit menu.  New commands are "addphoto",
5956         and "delphoto" (same as "deluid").
5958         * keylist.c (list_keyblock_print): show photos during key list if
5959         --show-photos enabled.
5960         
5961         * keyserver.c (keyserver_spawn): use the generic exec_xxx
5962         functions to call keyserver helper.
5964         * g10.c, options.h: three new options - --{no-}show-photos, and
5965         --photo-viewer to give the command line to display a picture.
5967         * options.skel: instructions for the photo viewer
5968         
5969         * parse-packet.c (parse_user_id, setup_user_id (new)): common code
5970         for both user IDs and attribute IDs moved to setup_user_id.
5972         * parse-packet.c (make_attribute_uidname (new)): constructs a fake
5973         "name" for attribute packets (e.g. "[image of size ...]")
5975         * parse-packet.c (parse_attribute (replaces parse_photo_id),
5976         parse_attribute_subpkts): Builds an array of individual
5977         attributes.  Currently only handles attribute image / type jpeg
5978         subpackets.
5980         * sign.c (hash_uid): Fix bug in signing attribute (formerly
5981         photo_id) packets.
5983         * packet.h, and callers: globally change "photo_id" to "attribute"
5984         and add structures for attributes.  The packet format is generic
5985         attributes, even though the only attribute type thus far defined
5986         is jpeg.
5988 2001-12-21  David Shaw  <dshaw@jabberwocky.com>
5990         * parse-packet.c (can_handle_critical): Can handle critical
5991         revocation subpackets now.
5993         * trustdb.c (mark_usable_uid_certs): Disregard revocations for
5994         nonrevocable sigs.  Note that this allows a newer revocable
5995         signature to override an older nonrevocable signature.
5997         * sign.c (make_keysig_packet): add a duration field and change all
5998         callers.  This makes make_keysig_packet closer to
5999         write_signature_packets and removes some duplicated expiration
6000         code.
6002         * keyedit.c (keyedit_menu, menu_revsig, sign_uids,
6003         sign_mk_attrib): Add nrsign command, don't allow revoking a
6004         nonrevocable signature,
6006         * g10.c (main): Add --nrsign option to nonrevocably sign a key
6007         from the command line.
6009         * build-packet.c (build_sig_subpkt_from_sig): Comment to explain
6010         the use of CRITICAL.
6012 2001-12-21  Werner Koch  <wk@gnupg.org>
6014         * g10.c. options.h : New option --show-keyring
6015         * getkey.c (get_ctx_handle): New.
6016         * keylist.c (list_one): Implement option here.  By David Champion. 
6018 2001-12-20  David Shaw  <dshaw@jabberwocky.com>
6020         * keyserver.c (keyserver_spawn): Use mkdtemp() to make temp
6021         directory.
6023         * mkdtemp.c: replacement function for those platforms that don't
6024         have mkdtemp (make a temp directory securely).
6026 2001-12-19  David Shaw  <dshaw@jabberwocky.com>
6028         * misc.c (check_permissions): New function to stat() and ensure
6029         the permissions of GNUPGHOME and the files have safe permissions.
6031         * keydb.c (keydb_add_resource): Check keyring permissions.
6033         * tdbio.c (tdbio_set_dbname): Check permissions of trustdb.gpg
6035         * keyserver.c (keyserver_spawn): Disable keyserver schemes that
6036         involve running external programs if the options file has unsafe
6037         permissions or ownership.
6039         * g10.c, options.h: New option --no-permission-warning to disable
6040         the permission warning message(s).  This also permits use of the
6041         keyserver if it had been disabled (see above).  Also check the
6042         permissions/ownership of random_seed.
6043         
6044         * keyserver.c (keyserver_spawn): The new glibc prints a warning
6045         when using mktemp() (the code was already secure, but the warning
6046         was bound to cause confusion).  Use a different implementation
6047         based on get_random_bits() instead.  Also try a few times to get
6048         the temp dir before giving up.
6050 2001-12-19  Werner Koch  <wk@gnupg.org>
6052         * g10.c, passphrase.c [CYGWIN32]: Allow this as an alias for MINGW32.
6054 2001-12-18  David Shaw  <dshaw@jabberwocky.com>
6056         * g10.c (idea_cipher_warn): Add a flag to show the warning always
6057         or once per session and change all callers (show always except for
6058         the secret key protection and unknown cipher from an encrypted
6059         message errors).  Also make the strings translatable.
6061         * pubkey-enc.c (get_it): Add the IDEA cipher warning if the user
6062         tries to decrypt an IDEA encrypted message without the IDEA
6063         plugin.
6065         * keyserver.c (parse_keyserver_uri): More strict checking of the
6066         keyserver URI.  Specifically, fail if the ":port" section is
6067         anything except a number between 1 and 65535.
6069 2001-12-17  David Shaw  <dshaw@jabberwocky.com>
6071         * keyserver.c (print_keyinfo): No need to check for
6072         control/illegal characters, as utf8_to_native does this for us.
6074         * mainproc.c (proc_encrypted): Use generic IDEA warning.
6076         * gpgv.c: add stub for idea_cipher_warn
6078         * g10.c, hkp.c, keyserver.c: Fix capitalization and plural issues.
6080         * encode.c (encode_crypt), sign.c (sign_file, clearsign_file):
6081         disable pgp2 mode after the message is no longer pgp2 compatible.
6083         * g10.c (main): Tweak the PGP2.x IDEA warning to use the generic
6084         warning, and not merely fail if the IDEA plugin isn't there.
6086         * g10.c (main, idea_cipher_warn), keygen.c (set_one_pref),
6087         seckey-cert.c (do_check): Add a generic IDEA warning for when the
6088         IDEA plugin is not present.  This pops up when the user uses
6089         "--cipher-algo idea", when setpref is used to set a "S1"
6090         preference, and when a secret key protected with IDEA is used.
6092 2001-12-15  Werner Koch  <wk@gnupg.org>
6094         * keyserver.c (keyserver_spawn): Assert that we have dropped privs.
6096 2001-12-13  Werner Koch  <wk@gnupg.org>
6098         * pubkey-enc.c (get_session_key): Check that the public key
6099         algorithm is indeed usable for en/decryption.  This avoid a
6100         strange error message from pubkey_decrypt if for some reasons a
6101         bad algorithm indentifier is passed.
6103 2001-12-12  David Shaw  <dshaw@jabberwocky.com>
6105         * Fixed some types for portability.  Noted by Stefan Bellon.
6107 2001-12-11  Werner Koch  <wk@gnupg.org>
6109         * hkp.c (hkp_export): Do not print possible control characters
6110         from a keyserver response.
6111         (parse_hkp_index): Made uid an unsigned char* because it is passed to
6112         isspace().
6113         (hkp_search): Ditto for the char* vars.
6115         * g10.c (main): Print the IDEA warning also for -c and -se.
6116         
6117         * g10.c (get_temp_dir): Assert that we have dropped privs
6119         * encode.c (encode_crypt): Include the first key into the --pgp2
6120         check.
6122 2001-12-07  David Shaw  <dshaw@jabberwocky.com>
6124         * g10.c, options.h: New option --pgp2.  This is identical to
6125         "--rfc1991 --cipher-algo idea --compress-algo 1 --digest-algo md5
6126         --force_v3_sigs" with the addition of an warning to advise the
6127         user not to use a pipe (which would break pgp2 compatibility).
6129         * encode.c (encode_crypt): warn if the user tries to encrypt to
6130         any key that is not RSA and <= 2048 bits when the --pgp2 option is
6131         used.
6133         * sign.c (sign_file, clearsign_file): When using --pgp2, make a v3
6134         sig, and warn if the signature is made with a non-v3 key.
6136 2001-12-05  David Shaw  <dshaw@jabberwocky.com>
6138         * sign.c (sign_file, clearsign_file, sign_symencrypt_file): Prompt
6139         for sig expiration if --expert is set and --force-v3-sigs is not
6140         set (v3 sigs cannot expire).
6142         * mainproc.c (check_sig_and_print): After checking a sig, print
6143         expiration status.  This causes a error return if the sig is
6144         expired.
6146         * build-packet.c (build_sig_subpkt_from_sig): Include a critical
6147         sig expiration subpacket if the sig is to expire.
6149         * keyedit.c (sign_uids): Do not sign an expired key unless
6150         --expert is set, in which case prompt.  Also, offer to expire a
6151         signature when the key the user is signing expires.
6153         * keygen.c (ask_expire_interval): Add a value to determine whether
6154         to prompt for a key or sig expiration and change all callers.
6156         * keyid.c: New functions: expirestr_from_sig and
6157         colon_expirestr_from_sig.
6159         * keylist.c (list_keyblock_colon): Show sig expiration date in the
6160         --with-colons listing.
6162         * sign.c (make_keysig_packet, write_signature_packets): Pass in an
6163         optional timestamp for the signature packet, and change all
6164         callers.
6166         * keyedit.c (sign_mk_attrib): Include a critical expiration
6167         subpacket in the signature if an expiration date is given.
6169 2001-12-04  David Shaw  <dshaw@jabberwocky.com>
6171         * keyedit.c (sign_uids): If the user tries to sign a
6172         locally-signed key, allow the cert to be promoted to a full
6173         exportable signature.  This essentially deletes the old
6174         non-exportable sig, and replaces it with a new exportable one.
6176 2001-12-04  David Shaw  <dshaw@jabberwocky.com>
6178         * keyedit.c (keyedit_menu): Do not allow signing a revoked key
6179         unless --expert is set, and ask even then.
6181         * keyedit.c (sign_uids): Do not allow signing a revoked UID unless
6182         --expert is set, and ask even then.
6184         * g10.c, options.h : New option --expert
6186 2001-11-16  David Shaw  <dshaw@jabberwocky.com>
6188         * Allow the user to select no compression via "--compress-algo 0"
6189         on the command line.
6191         * keyedit.c (show_prefs): Show compression preferences in the
6192         long-form "showpref" style.
6194         * keygen.c (set_one_pref): Permit setting a no-compression ("Z0")
6195         preference.
6197         * getkey.c (fixup_uidnode): Fix compression preference corruption
6198         bug.
6200 2001-12-02  David Shaw  <dshaw@jabberwocky.com>
6202         * g10.c: Add advisory --for-your-eyes-only option as per section
6203         5.9 of 2440.
6205 2001-12-05  David Shaw  <dshaw@jabberwocky.com>
6207         * Force a V4 sig if the user has a notation or policy URL set.
6209 2001-12-04  David Shaw  <dshaw@jabberwocky.com>
6211         * g10.c: Add options --keyserver-options, --temp-directory, and
6212         auto-key-retrieve (the opposite of no-auto-key-retrieve).
6214         * hkp.c (hkp_search): New function to handle searching a HKP
6215         keyserver for a key
6217         * hkp.c (hkp_ask_import, hkp_export): Pretty large changes to make
6218         them communicate via the generic functions in keyserver.c
6220         * keyserver.c: new file with generic keyserver routines for
6221         getting keys from a keyserver, sending keys to a keyserver, and
6222         searching for keys on a keyserver.  Calls the internal HKP stuff
6223         in hkp.c for HKP keyserver functions.  Other calls are handled by
6224         an external program which is spawned and written to and read from
6225         via pipes.  Platforms that don't have pipes use temp files.
6227 2001-11-20  David Shaw  <dshaw@jabberwocky.com>
6229         * options.h, g10.c: New options show-notation, no-show-notation,
6230         default-check-level, no-default-check-level, show-policy-url,
6231         no-show-policy-url.
6233         * packet.h, sign.c (make_keysig_packet), parse-packet.c
6234         (parse_signature), free-packet.c (free_seckey_enc): Fill in
6235         structures for notation, policy, sig class, exportability, etc.
6237         * keyedit.c, keylist.c (print_and_check_one_sig,
6238         list_keyblock_print): Show flags in signature display for cert
6239         details (class, local, notation, policy, revocable).  If selected,
6240         show the notation and policy url.
6242         * keyedit.c (sign_uids): Prompt for and use different key sig
6243         classes.
6245         * helptext.c (helptexts): Add help text to explain different
6246         key signature classes
6248 2001-11-26  David Shaw  <dshaw@jabberwocky.com>
6250         * trustdb.c (mark_usable_uid_certs): Fix segfault from bad
6251         initialization and fix reversed key signature expiration check.
6253 2001-11-09  Werner Koch  <wk@gnupg.org>
6255         * export.c (do_export_stream): Put all given names into a search
6256         description and change the loop so that all matching names are
6257         returned.
6259 2001-11-08  Werner Koch  <wk@gnupg.org>
6261         * pubkey-enc.c (get_it): To reduce the number of questions on the
6262         MLs print the the name of cipher algorithm 1 with the error message.
6264         * mainproc.c: Changed the way old rfc1991 encryption cipher is
6265         selected. Based on a patch by W Lewis.
6267         * pkclist.c (do_edit_ownertrust): Allow to skip over keys, the non
6268         working "show info" is now assigned to "i" 
6269         * trustdb.c (ask_ownertrust, validate_keys): Implement a real quit
6270         here.  Both are by David Shaw.
6271         
6272         * trustdb.c (validate_keys): Make sure next_exipire is initialized.
6274         * sign.c (make_keysig_packet): Use SHA-1 with v4 RSA keys.
6276         * g10.c, options.h : New option --[no-]froce-v4-certs.
6277         * sign.c (make_keysig_packet): Create v4 sigs on v4 keys even with
6278         a v3 key.  Use that new option.  By David Shaw
6280         * revoke.c (ask_revocation_reason): Allow to select "no reason".
6281         By David Shaw.
6283         * keyid.c (fingerprint_from_sk): Calculation of an v3 fpr was
6284         plain wrong - nearly the same code in fingerprint_from_pk is correct.
6286         * build-packet.c (do_secret_key): Added a few comments to the code.
6288 2001-11-07  Werner Koch  <wk@gnupg.org>
6290         * g10.c (main): Print a warning when -r is used w/o encryption.
6291         Suggested by Pascal Scheffers.
6293 2001-10-23  Werner Koch  <wk@gnupg.org>
6295         * keyedit.c (keyedit_menu): Changed helptext for showpref
6296         command.  Suggested by Reinhard Wobst.
6298         * keyring.c (keyring_search): When marking the offtbl ready, take
6299         into account that we may have more than one keyring.
6301 2001-10-22  Werner Koch  <wk@gnupg.org>
6303         * Makefile.am: Do not use OMIT_DEPENDENCIES
6305         * build-packet.c (build_sig_subpkt): Default is now to put all
6306         types of subpackets into the hashed area and only list those which
6307         should go into the unhashed area.
6309 2001-10-18  Werner Koch  <wk@gnupg.org>
6311         * keydb.c (keydb_add_resource): Rearranged the way we keep track
6312         of the resource. There will now be an entry for each keyring here
6313         and not in keyring.c itself.  Store a token to allow creation of a
6314         keyring handle.  Changed all functions to utilize this new design.
6315         (keydb_locate_writable): Make a real implementation.
6316         * keyring.c (next_kr): Removed and changed all callers to set the
6317         resource directly from the one given with the handle.
6318         (keyring_is_writable): New. 
6319         (keyring_rebuild_cache): Add an arg to pass the token from keydb.
6321 2001-10-17  Werner Koch  <wk@gnupg.org>
6323         * keyring.c (keyring_search): Enabled word search mode but print a
6324         warning that it is buggy.
6325         
6326 2001-10-11  Werner Koch  <wk@gnupg.org>
6328         * hkp.c (hkp_ask_import): No more need to set the port number for
6329         the x-hkp scheme. 
6330         (hkp_export): Ditto.
6332 2001-10-06  Stefan Bellon  <sbellon@sbellon.de>
6334         * passphrase.c [__riscos__]: Disabled agent specific stuff.
6335         * g10.c: New option --no-force-v3-sigs.
6337 2001-10-04  Werner Koch  <wk@gnupg.org>
6339         * export.c (do_export_stream): Do not push the compress filter
6340         here because the context would run out of scope due to the
6341         iobuf_close done by the caller.
6342         (do_export): Do it here instead. 
6344 2001-09-28  Werner Koch  <wk@gnupg.org>
6346         * keyedit.c (sign_uids): Always use the primary key to sign keys.
6347         * getkey.c (finish_lookup): Hack to return only the primary key if
6348         a certification key has been requested.
6350         * trustdb.c (cmp_kid_for_make_key_array): Renamed to
6351         (validate_one_keyblock): this and changed arg for direct calling.
6352         (make_key_array): Renamed to
6353         (validate_one_keyblock): this and changed args for direct calling.
6354         (mark_usable_uid_certs, validate_one_keyblock)
6355         (validate_key_list): Add next_expire arg to keep track of
6356         expiration times.  
6357         (validate_keys): Ditto for UTKs and write the stamp.
6359         * tdbio.c (migrate_from_v2): Check return code of tbdio_sync.
6361         * tdbdump.c (import_ownertrust): Do a tdbio_sync().
6363         * keyring.c: Made the offtbl an global object.
6365 2001-09-27  Werner Koch  <wk@gnupg.org>
6367         * pkclist.c (do_edit_ownertrust): Allow settin of ultimate trust.
6369         * trustdb.c (mark_keyblock_seen): New.
6370         (make_key_array): Use it to mark the subkeys too.
6371         (validate_keys): Store validity for ultimatly trusted keys.
6373 2001-09-26  Werner Koch  <wk@gnupg.org>
6375         * pkclist.c (check_signatures_trust, do_we_trust): Removed the
6376         invocation of add_ownertrust. Minor changes to the wording.
6377         (add_ownertrust, add_ownertrust_cb): Removed.
6379         * trustdb.c (get_validity): Allow to lookup the validity using a
6380         subkey.
6382         * trustdb.c (new_key_hash_table): Increased the table size to 1024
6383         and changed the masks accordingly.
6384         (validate): Changed stats printing.
6385         (mark_usable_uid_certs): New.
6386         (cmp_kid_for_make_key_array): Does now check the signatures and
6387         figures out a usable one.
6389 2001-09-25  Werner Koch  <wk@gnupg.org>
6391         * keyring.c (new_offset_item,release_offset_items)
6392         (new_offset_hash_table, lookup_offset_hash_table)
6393         (update_offset_hash_table, update_offset_hash_table_from_kb): New.
6394         (keyring_search): Use a offset table to optimize search for
6395         unknown keys.
6396         (keyring_update_keyblock, keyring_insert_keyblock): Insert new
6397         offsets.
6398         * getkey.c (MAX_UNK_CACHE_ENTRIES): Removed the unknown keys
6399         caching code.
6401         * g10.c, options.h, import.c: Removed the entire
6402         allow-secret-key-import stuff because the validity is now
6403         controlled by other means.
6405         * g10.c: New command --rebuild-keydb-caches.
6406         * keydb.c (keydb_rebuild_caches): New.
6407         * keyring.c (do_copy): Moved some code to
6408         (create_tmp_file, rename_tmp_file, write_keyblock): new functions.
6409         (keyring_rebuild_cache): New.
6411         * packet.h (PKT_ring_trust): Add sigcache field.
6412         * parse-packet.c (parse_trust): Parse sigcache.
6413         * keyring.c (do_copy): Always insert a sigcache packet.
6414         (keyring_get_keyblock): Copy the sigcache packet to the signature.
6415         * sig-check.c (cache_sig_result): Renamed from
6416         cache_selfsig_result. Changed implementation to use the flag bits
6417         and changed all callers.
6418         (mdc_kludge_check): Removed this unused code.
6419         (do_check): Do not set the sig flags here.
6421         * import.c (read_block): Make sure that ring_trust packets are
6422         never imported.
6423         * export.c (do_export_stream): and never export them.
6425         * trustdb.c (make_key_array): Skip revoked and expired keys.
6427 2001-09-24  Werner Koch  <wk@gnupg.org>
6429         * g10.c, options.h: New option --no-auto-check-trustdb.
6431         * keygen.c (do_generate_keypair): Set newly created keys to
6432         ultimately trusted.
6434         * tdbio.h, tdbio.c: Removed all support for records DIR, KEY, UID,
6435         PREF, SIG, SDIR and CACH. Changed migration function to work
6436         direct on the file.
6437         (tdbio_read_nextcheck): New.
6438         (tdbio_write_nextcheck): New. 
6440 2001-09-21  Werner Koch  <wk@gnupg.org>
6442         Revamped the entire key validation system.
6443         * trustdb.c: Complete rewrite. No more validation on demand,
6444         removed some functions, adjusted to all callers to use the new 
6445         and much simpler interface. Does not use the LID anymore.
6446         * tdbio.c, tdbio.h: Add new record types trust and valid. Wrote a
6447         migration function to convert to the new trustdb layout.
6448         * getkey.c (classify_user_id2): Do not allow the use of the "#"
6449         prefix. 
6450         * keydb.h: Removed the TDBIDX mode add a skipfnc to the
6451         descriptor.
6452         * keyring.c (keyring_search): Implemented skipfnc.
6454         * passphrase.c (agent_open): Add missing bracket.  Include windows.h.
6456 2001-09-19  Werner Koch  <wk@gnupg.org>
6458         * keylist.c (print_fingerprint): Renamed from fingerprint, made
6459         global available. Added new arg to control the print style.
6460         * mainproc.c (print_fingerprint): Removed. 
6461         * pkclist.c (print_fpr, fpr_info): Removed and changed callers to
6462         use print_fingerprint.
6463         * keyedit.c (show_fingerprint): Ditto.
6465         * passphrase.c (writen, readn)
6466         (agent_open, agent_close)
6467         (agent_get_passphrase)
6468         (passphrase_clear_cache): Support for W32.  Contributed by Timo.
6470         * import.c (import_one): Release keydb handles at 2 more places.
6472         * keyring.c (keyring_release): Close the iobuf.
6473         (keyring_get_keyblock): Init ret_kb to NULL and store error contidion.
6475         * import.c (import_new_stats_handle): New. 
6476         (import_release_stats_handle): New.
6477         (import_print_stats): Renamed from static fnc print_stats.
6478         (import_keys, import_keys_stream): Add an optional status handle
6479         arg and changed all callers.
6480         * hkp.c (hkp_ask_import): Add an stats_handle arg and changed all
6481         callers.
6483         * mainproc.c (print_pkenc_list): Use print_utf8_string2().
6485 2001-09-18  Werner Koch  <wk@gnupg.org>
6487         * g10.c: New command --refresh-keys.
6488         * hkp.c (hkp_refresh_keys): New. Contributed by Timo Schulz.
6490         * parse-packet.c (parse): Stop on impossible packet lengths.
6492 2001-09-17  Werner Koch  <wk@gnupg.org>
6494         * mainproc.c (print_notation_data): Wrap notation data status lines
6495         after 50 chars.
6496         
6497         * mainproc.c (proc_pubkey_enc): Make option try-all-secrets work.
6498         By disastry@saiknes.lv.
6500 2001-09-14  Werner Koch  <wk@gnupg.org>
6502         * parse-packet.c (dump_sig_subpkt): List key server preferences
6503         and show the revocable flag correctly. Contributed by David Shaw.
6505 2001-09-09  Werner Koch  <wk@gnupg.org>
6507         * keyedit.c (keyedit_menu): No need to define another p.
6509         * keylist.c (print_capabilities): s/used/use/ so that it
6510         does not shadow a global.
6511         * sign.c (sign_file): Renamed arg encrypt to encryptflag
6512         * keygen.c: Replaced all "usage" by "use".
6513         * misc.c (openpgp_pk_algo_usage): Ditto.
6515         * pubkey-enc.c (get_it): Renamed arg k to enc so that the later
6516         defined k does not shadow it.
6518         * parse-packet.c (parse_gpg_control): No need to define another i.
6520         * getkey.c (get_pubkey_byfprint): Must use the enum values and not
6521         the fprint_len.
6522         * keyring.c (keyring_search): Removed a non-sense break.  Both
6523         bugs pointed out by Stefan.
6525 2001-09-07  Werner Koch  <wk@gnupg.org>
6527         * status.c, status.h: Added NO_RECP and ALREADY_SIGNED.
6528         * pkclist.c (build_pk_list): Issue NO_RECP.
6529         * keyedit.c (sign_uids): Added experimental ALREADY_SIGNED
6531         * hkp.c (hkp_import): Use log_error. Bug reported by Neal H
6532         Walfield. 
6534         * getkey.c (classify_user_id2): Change args to take the desc union
6535         direct.  It was a stupid idea to pass the individual fields of an
6536         union to this function. Changed all callers.
6537         (classify_user_id): Ditto and allow to pass NULL as the description.
6539 2001-09-06  Werner Koch  <wk@gnupg.org>
6541         * getkey.c (fixup_uidnode): Features flag is now a bit vector.
6542         * keygen.c (add_feature_mdc): Ditto.
6544         Revamped the entire key I/O code to be prepared for other ways of
6545         key storages and to get rid of the existing shit.  GDBM support has
6546         gone.
6547         * keydb.c: New
6548         * keyring.c, keyring.h: New.
6549         * ringedit.c: Removed.  Moved some stuff to keyring.c
6550         * getkey.c: Changed everything related to the key retrieving
6551         functions which are now using the keydb_ functions.  
6552         (prepare_search, word_match_chars, word_match)
6553         (prepare_word_match, compare_name): Moved to keyring.c
6554         (get_pubkey_byname): Removed ctx arg and add ret_kdbhd
6555         arg.  Changed all callers.
6556         (key_byname): Use get_pubkey_end to release the context and take
6557         new ret_kbdhd arg.  Changed all callers.
6558         (classify_user_id2): Fill the 16 byte fingerprint up with 4 null
6559         bytes not with zero bytes of value 4, tsss.
6560         * import.c (import_one): Updated to use the new keydb interface.
6561         (import_secret_one): Ditto.
6562         (import_revoke_cert): Ditto.
6563         * delkey.c (do_delete_key): Ditto. 
6564         * keyedit.c (keyedit_menu): Ditto.
6565         (get_keyblock_byname): Removed.
6566         * revoke.c (gen_revoke): Ditto. 
6567         * export.c (do_export_stream): Ditto.
6568         * trustdb.c (update_trustdb): Ditto.
6569         * g10.c, gpgv.c (main): Renamed add_keyblock_resource to
6570         keydb_add_resource. 
6571         * Makefile.am:  Added and removed files.
6573         * keydb.h: Moved KBNODE typedef and MAX_FINGERPRINT_LEN to
6574         * global.h: this new header.
6575         
6576 2001-09-03  Werner Koch  <wk@gnupg.org>
6578         * passphrase.c (agent_get_passphrase): Changed nread to size_t.
6579         (passphrase_clear_cache): Ditto.
6581         * keyid.c (mk_datestr): Avoid trigraphs.
6582         (fingerprint_from_pk): Cache the keyid in the pk.
6584         * options.h: Add opt.with_fingerprint so that we know whether the
6585         corresponding options was used.
6586         * g10.c (main): Set it here.
6587         * pkclist.c (check_signatures_trust): Always print fingerprint
6588         when this option is used.  Mixed a minor memory leak.
6590         * status.c, status.h: New status INV_RECP.
6591         * pkclist.c (build_pk_list): Issue this status.
6593 2001-08-31  Werner Koch  <wk@gnupg.org>
6595         * parse-packet.c (parse_key,parse_pubkeyenc)
6596         (parse_signature): Return error on reading bad MPIs.
6597         
6598         * mainproc.c (check_sig_and_print): Always print the user ID even
6599         if it is not bound by a signature.  Use the primary UID in the
6600         status messages and encode them in UTF-8
6601         * status.c (write_status_text_and_buffer): New.
6603 2001-08-30  Werner Koch  <wk@gnupg.org>
6605         * packet.h (sigsubpkttype_t): Add SIGSUBPKT_FEATURES.
6606         (PKT_public_key, PKT_user_id): Add a flag for it.
6607         * parse-packet.c, build-packet.c: Add support for them.
6608         * getkey.c (fixup_uidnode, merge_selfsigs): Set the MDC flags.
6609         * keygen.c (add_feature_mdc): New.
6610         (keygen_upd_std_prefs): Always set the MDC feature.
6611         * keyedit.c (show_prefs): List the MDC flag
6612         * pkclist.c (select_mdc_from_pklist): New.
6613         * encode.c (encode_crypt, encrypt_filter): Test whether MDC
6614         should be used.
6615         * cipher.c (write_header): Set MDC use depending on the above test.
6616         Print more status info.
6618         * delkey.c (do_delete_key): Kludge to delete a secret key with no
6619         public key available.
6621         * ringedit.c (find_secret_keyblock_direct): New.
6622         * getkey.c (seckey_available): Simplified.
6624         * ringedit.c (cmp_seckey): Now compares the secret key against the
6625         public key while ignoring all secret parts.
6626         (keyring_search): Use a public key packet as arg.  Allow to search
6627         for subnkeys
6628         (search): Likewise. Changed all callers.
6629         (find_secret_keyblock_bypk): New.
6630         (find_secret_keyblock_byname): First locate the pubkey and then
6631         find the correponding secret key.
6632         * parse-packet.c (parse): Renamed pkttype arg to onlykeypkts and
6633         changed code accordingly.  Changed all callers.
6634         (search_packet): Removed pkttype arg.
6635         * keyedit.c (keyedit_menu): First locate the public key and then
6636         try to locate a secret key.
6638         * ringedit.c (locate_keyblock_by_fpr): Removed.
6639         (locate_keyblock_by_keyid): Removed.
6640         (find_keyblock_bysk): Removed.
6642         * sig-check.c (check_key_signature2): Print the keyid along with
6643         the wrong sig class errors.
6645 2001-08-24  Werner Koch  <wk@gnupg.org>
6647         * sign.c (sign_file): Stripped the disabled comment packet code.
6648         (sign_file, sign_symencrypt_file): Moved common code to ..
6649         (write_onepass_sig_packets): .. this new function.
6650         (sign_file, clearsign_file, sign_symencrypt_file): Moved common
6651         code to 
6652         (write_signature_packets): this new function.
6653         (write_signature_packets, make_keysig_packet)
6654         (update_keysig_packet): Moved common code to 
6655         (hash_uid, hash_sigclass_to_magic): these new functions
6656         (sign_file, sign_symencrypt_file): Moved common code to 
6657         (write_plaintext_packet):  this new function.
6659 2001-08-21  Stefan Bellon  <sbellon@sbellon.de>
6661         * trustdb.c (query_trust_info): Changed trustlevel to signed int.
6662         * g10.c [__riscos__]: Fixed handling of --use-agent --lock-multiple.
6664 2001-08-20  Werner Koch  <wk@gnupg.org>
6666         * encr-data.c (decrypt_data): Keep track on whether we already
6667         printed information about the used algorithm.
6668         * mainproc.c (proc_encrypted): Removed the non-working IDEA hack
6669         and print a message about the assumed algorithm.
6670         * passphrase.c (passphrase_to_dek): Use the same algorithm as above.
6671         (proc_symkey_enc): Print the algorithm, so that the user knows it
6672         before entering the passphrase.
6673         (proc_pubkey_enc, proc_pubkey_enc): Zero the DEK out.
6674         * encode.c (encode_crypt, encrypt_filter): Ditto.
6676         * g10.c: Allow for --sign --symmetric.
6677         * sign.c (sign_and_symencrypt): New.
6679         Applied patches from Stefan Bellon <sbellon@sbellon.de> to support
6680         RISC OS.  Nearly all of these patches are identified by the
6681         __riscos__ macro.
6682         * compress.c: Added a couple of casts.
6683         * g10.c [__riscos__]: Some patches and new options foo-file similar
6684         to all foo-fd options.
6685         * gpgv.c, openfile.c, ringedit.c, tdbio.c: Minor fixes.  Mainly
6686         replaced hardcoded path separators with EXTSEP_S like macros.  
6687         * passprase.c [__riscos__]: Disabled agent stuff
6688         * trustdb.c (check_trust): Changed r_trustlevel to signed int to
6689         avoid mismatch problems in pkclist.c
6690         * pkclist.c (add_ownertrust): Ditto.
6691         * plaintext.c (handle_plaintext) [__riscos__]: Print a note when
6692         file can't be created.
6693         * options.h [__riscos__]: Use an extern unless included from the
6694         main module.
6695         * signal.c (got_fatal_signal) [__riscos__]: Close all files.
6696         
6697 2001-08-14  Werner Koch  <wk@gnupg.org>
6699         * keygen.c (ask_algo): New arg r_usage.  Allow for RSA keys.
6700         (gen_rsa): Enabled the code.
6701         (do_create): Enabled RSA branch.
6702         (parse_parameter_usage): New.
6703         (proc_parameter_file): Handle usage parameter.
6704         (read_parameter_file): Ditto.
6705         (generate_keypair): Ditto.
6706         (generate_subkeypair): Ditto.
6707         (do_generate_keypair): Ditto.
6708         (do_add_key_flags): New.
6709         (keygen_add_std_prefs): Use the new function.
6710         (keygen_add_key_flags_and_expire): New.
6711         (write_selfsig, write_keybinding): Handle new usage arg.
6712         * build-packet.c (build_sig_subpkt): Make sure that key flags go
6713         into the hashed area.
6714         
6715         * keygen.c (write_uid): Initialize the reference cunter.
6717         * keyedit.c (keyedit_menu): No more need to update the trustdb for
6718         preferences.  Added calls to merge keblock.
6720         * kbnode.c (dump_kbnode): Print some more flags.
6722 2001-08-10  Werner Koch  <wk@gnupg.org>
6724         Revamped the preference handling.
6726         * packet.h (prefitem_t, preftype_t): New.
6727         (PKT_public_key): Added a uid field.
6728         (PKT_user_id): Added field to store preferences and a reference
6729         counter.
6730         * parse-packet.c (parse_user_id,parse_photo_id): Initialize them
6731         * free-packet.c (free_user_id): Free them.
6732         (copy_user_id): Removed.
6733         (scopy_user_id): New. 
6734         (cmp_user_ids): Optimized for identical pointers.
6735         (release_public_key_parts): Release the uid.
6736         (copy_public_key_with_new_namehash): Removed.
6737         (copy_prefs): New.
6738         * keyedit.c (menu_adduid): Use the new shallow copy user id.
6739         (show_prefs): Adjusted implementation.
6740         (keyedit_menu): No more need to update the trustdb after changing
6741         preferences.
6742         * getkey.c (fixup_uidnode): Store preferences.
6743         (find_by_name): Return a user id packet and remove namehash stuff.
6744         (lookup): Removed the unused namehash stuff.
6745         (finish_lookup): Added foundu arg.
6746         (pk_from_block): Removed the namehash arg and changed all callers.
6747         (merge_selfsigs): Copy prefs to all keys.
6748         * trustdb.c (get_pref_data): Removed.
6749         (is_algo_in_prefs): Removed.
6750         (make_pref_record): Deleted and removed all class.
6751         * pkclist.c (select_algo_from_prefs): Adjusted for the new
6752         preference implementation.
6753         * pubkey-enc.c (is_algo_in_prefs): New.
6754         (get_it): Use that new function. 
6756 2001-08-09  Werner Koch  <wk@gnupg.org>
6758         * build-packet.c (build_sig_subpkt): Fixed calculation of
6759         newarea->size.
6761         * g10.c (main): New option "--preference-list"
6762         * keyedit.c (keyedit_menu): New commands "setpref" and "updpref".
6763         (menu_set_preferences): New.
6764         * keygen.c (keygen_set_std_prefs): New.
6765         (set_one_pref): New.
6766         (check_zip_algo): New.
6767         (keygen_get_std_prefs): New.
6768         (keygen_upd_std_prefs): New
6769         (keygen_add_std_prefs): Move the pref setting code into the above fnc.
6770         * build-packet.c (build_sig_subpkt): Updated the list of allowed
6771         to update subpackets.
6773 2001-08-08  Werner Koch  <wk@gnupg.org>
6775         * packet.h (subpktarea_t): New.
6776         (PKT_signature): Use that type for hashed_data and unhashed_data and
6777         removed the _data prefix from those fields.  Changed all users.
6778         * parse-packet.c (parse_signature): Changed allocation for that.
6779         (parse_sig_subpkt): Changed declaration
6780         (enum_sig_subpkt): Ditto and changed implementation accordingly.
6781         * free-packet.c (cp_subpktarea): Renamed from cp_data_block and
6782         adjusted implementation. Changed caller.
6783         * sig-check.c (mdc_kludge_check): Adjusted the hashing.
6784         (do_check): Ditto.
6785         * sign.c (sign_file, clearsign_file, make_keysig_packet,
6786         update_keysig_packet): Ditto.
6787         * build-packet.c (build_sig_subpkt): Partial rewrite.
6788         (find_subpkt): Adjusted and made static.
6789         (delete_sig_subpkt): Adjusted.
6790         (do_signature): Ditto.
6792         * keygen.c (ask_keysize): Do not print the notes about suggested
6793         key sizes if just a DSA key is generated.
6795         * trustdb.c (add_ultimate_key): s/log_error/log_info/ for
6796         duplicated inserted trusted keys.
6798 2001-08-07  Werner Koch  <wk@gnupg.org>
6800         * sign.c (sleep): Redefine for W32.
6802         * g10.c, options.h: Set new flag opt.no_homedir_creation when
6803         --no-options is given.
6804         * openfile.c (try_make_homedir): Don't create the homedir in that case.
6806 2001-08-03  Werner Koch  <wk@gnupg.org>
6808         * armor.c (armor_filter): Removed the default comment string
6809         because it could get us in trouble due to translations using non
6810         ascii characters.
6812 2001-08-01  Werner Koch  <wk@gnupg.org>
6814         * keylist.c (list_keyblock_print): Do not list revoked UIDs unless
6815         in verbose mode and we do no signature listing.
6817         * getkey.c (finish_lookup): Skip subkeys which are not yet valid.
6818         * g10.c, options.h: New option --ignore-valid-from.
6820         * sign.c (make_keysig_packet): Added new sigversion argument to
6821         allow the caller to force generation of required signature
6822         version. Changed all callers. Suggested by Thomas Roessler.
6824         * keyedit.c (sign_uids): Force v4 signature generation for local
6825         sigs.  Removed the check for local signature and pre-v4 keys.
6827 2001-07-27  Werner Koch  <wk@gnupg.org>
6829         * keyedit.c (sign_uids): Check that we are not trying to to a
6830         lsign with a pre-v4 key.  Bug noticed by Thomas Roessler.
6832 2001-07-26  Werner Koch  <wk@gnupg.org>
6834         * parse-packet.c (parse_photo_id): Reset all variables.
6835         * getkey.c (merge_selfsigs_main): Removed checks on PHOTO_ID
6836         because this is handled identically to a user ID.
6838 2001-07-06  Werner Koch  <wk@gnupg.org>
6840         * cipher.c (write_header): Don't use MDC with --rfc1991.  Suggested
6841         by disastry@saiknes.lv.
6843 2001-07-05  Werner Koch  <wk@gnupg.org>
6845         * g10.c, options.h: New option --preserve-permissions.
6846         * ringedit.c (add_keyblock_resource): Use it here
6847         (keyring_copy): and here.
6849         * trustdb.c (verify_own_keys): Be more silent on --quiet.
6850         Suggested by Thomas Roessler.
6851         * sig-check.c (check_key_signature2): Ditto.
6852         * mainproc.c (proc_encrypted, proc_tree): Ditto
6853         * getkey.c (lookup): Ditto.
6855 2001-07-04  Werner Koch  <wk@gnupg.org>
6857         * ringedit.c (add_keyblock_resource): Restore filename in case of error.
6859 2001-06-25  Werner Koch  <wk@gnupg.org>
6861         * kbnode.c (dump_kbnode): Print the signature timestamp.
6863         * keyedit.c (keyedit_menu): New menu point "primary".
6864         (change_primary_uid_cb): New.
6865         (menu_set_primary_uid): New.
6866         * sign.c (update_keysig_packet): New.
6867         * build-packet.c (build_sig_subpkt): Put the primary UID flag into
6868         the hashed area. Allow update of some more packets.
6870 2001-06-15  Werner Koch  <wk@gnupg.org>
6872         * getkey.c (merge_selfsigs): Exit gracefully when a secret key is
6873         encountered.  May happen if a secret key is in public keyring.
6874         Reported by Francesco Potorti.
6875         
6876 2001-06-12  Werner Koch  <wk@gnupg.org>
6878         * getkey.c (compare_name): Use ascii_memistr(), ascii_memcasecmp()
6879         * keyedit.c (keyedit_menu): Use ascii_strcasecmp().
6880         * armor.c (radix64_read): Use ascii_toupper().  
6881         * ringedit.c (do_bm_search): Ditto.
6882         * keygen.c (read_parameter_file): Ditto.
6883         * openfile.c (CMP_FILENAME): Ditto.
6884         * g10.c (i18n_init): We can now use just LC_ALL.
6886 2001-05-29  Werner Koch  <wk@gnupg.org>
6888         * keygen.c (generate_subkeypair): Print a warning if a subkey is
6889         created on a v3 key. Suggested by Brian M. Carlson.
6891 2001-05-27  Werner Koch  <wk@gnupg.org>
6893         * keyid.c (get_lsign_letter): New.
6894         * keylist.c (list_keyblock_colon): Use it here.
6895         * mainproc.c (list_node): and here.
6897         * getkey.c, packet.h, free-packet.c: Removed that useless key
6898         created field; I dunno why I introducded this at all - the
6899         creation time is always bound to the key packet and subject to
6900         fingerprint calculation etc.
6902         * getkey.c (fixup_uidnode): Add keycreated arg and use this
6903         instead of the signature timestamp to calculate the
6904         help_key_expire.  Bug reported by David R. Bergstein.
6905         (merge_selfsigs_main): Correct key expiration time calculation.
6906         (merge_selfsigs_subkey): Ditto.
6908 2001-05-25  Werner Koch  <wk@gnupg.org>
6910         * revoke.c (gen_revoke): Add a cast to a tty_printf arg.
6911         * delkey.c (do_delete_key): Ditto.
6912         * keyedit.c (print_and_check_one_sig): Ditto.
6913         (ask_revoke_sig): Ditto.
6914         (menu_revsig): Ditto.
6915         (check_all_keysigs): Removed unused arg.
6917 2001-05-23  Werner Koch  <wk@gnupg.org>
6919         * g10.c (opts): Typo fix by Robert C. Ames.
6921 2001-05-06  Werner Koch  <wk@gnupg.org>
6923         * revoke.c: Small typo fix
6925 2001-05-04  Werner Koch  <wk@gnupg.org>
6927         * passphrase.c (passphrase_clear_cache): Shortcut if agent usage
6928         is not enabled.
6930 2001-05-01  Werner Koch  <wk@gnupg.org>
6932         * passphrase.c (writen): Replaced ssize_t by int.  Thanks to 
6933         to Robert Joop for reporting that SunOS 4.1.4 does not have it.
6935 2001-04-28  Werner Koch  <wk@gnupg.org>
6937         * getkey.c (merge_public_with_secret): pkttype was not set to subkey.
6939 2001-04-27  Werner Koch  <wk@gnupg.org>
6941         * skclist.c (build_sk_list): Changed one log_debug to log_info.
6943 2001-04-25  Werner Koch  <wk@gnupg.org>
6945         * keyedit.c (show_prefs): Add a verbose mode.
6946         (show_key_with_all_names): Pass verbose flag for special value of
6947         with_pref.
6948         (keyedit_menu): New command "showpref"
6949         (show_key_with_all_names): Mark revoked uids and the primary key.
6951 2001-04-24  Werner Koch  <wk@gnupg.org>
6953         * getkey.c (get_primary_uid): Return a different string in case of
6954         error and made it translatable.
6956         * build-packet.c (do_secret_key): Ugly, we wrote a zero
6957         instead of the computed ndays.  Thanks to M Taylor for complaining
6958         about a secret key import problem.
6960 2001-04-23  Werner Koch  <wk@gnupg.org>
6962         * hkp.c (hkp_ask_import): Allow to specify a port number for the 
6963         keyserver.  Add a kudge to set the no_shutdown flag.
6964         (hkp_export): Ditto.
6965         * options.skel: Document the changes 
6967 2001-04-20  Werner Koch  <wk@gnupg.org>
6969         * options.skel: Add some more comments.
6971 2001-04-19  Werner Koch  <wk@gnupg.org>
6973         * keyid.c (mk_datestr): New.  Handles negative times.  We must do
6974         this because Windoze segvs on negative times passed to gmtime().
6975         Changed all datestr_from function to use this one.
6977         * keyid.c, keyid.h (colon_strtime): New. To implement the
6978         fixed-list-mode.
6979         (colon_datestr_from_pk): New.
6980         (colon_datestr_from_sk): New.
6981         (colon_datestr_from_sig): New.
6982         * keylist.c (list_keyblock_colon): Use these functions here.
6983         * mainproc.c (list_node): Ditto.
6985 2001-04-18  Werner Koch  <wk@gnupg.org>
6987         * openfile.c (open_sigfile): Fixed the handling of ".sign".
6988         * mainproc.c (proc_tree): Use iobuf_get_real_fname.
6989         Both are by Vincent Broman.
6991 2001-04-14  Werner Koch  <wk@gnupg.org>
6993         * getkey.c (fixup_uidnode): Removed check for !sig which is
6994         pointless here.  Thanks to Jan Niehusmann.
6996 2001-04-10  Werner Koch  <wk@gnupg.org>
6998         * sig-check.c (check_key_signature2): Use log_info instead of
6999         log_error so that messed up keys do not let gpg return an error.
7000         Suggested by Christian Kurz.
7002         * getkey.c (merge_selfsigs_main): Do a fixup_uidnode only if we
7003         have both, uid and sig.  Thanks to M Taylor.
7005 2001-04-05  Werner Koch  <wk@gnupg.org>
7007         * armor.c (unarmor_pump_new,unarmor_pump_release): New.
7008         (unarmor_pump): New. 
7009         * pipemode.c (pipemode_filter): Use the unarmor_pump to handle
7010         armored or non-armored detached signatures.  We can't use the
7011         regular armor_filter because this does only check for armored
7012         signatures the very first time.  In pipemode we may have a mix of
7013         armored and binary detached signatures.
7014         * mainproc.c (proc_tree): Do not print the "old style" notice when
7015         this is a pipemode processes detached signature.
7016         (proc_plaintext): Special handling of pipemode detached sigs.
7018         * packet.h (CTRLPKT_PLAINTEXT_MARK): New.
7019         * parse-packet.c (create_gpg_control): New.
7020         * kbnode.c (dump_kbnode): Support it here.
7021         * mainproc.c (check_sig_and_print): Fixed the check for bad
7022         sequences of multiple signatures.
7023         (proc_plaintext): Add the marker packet.
7024         (proc_tree): We can now check multiple detached signatures.
7026 2001-04-02  Werner Koch  <wk@gnupg.org>
7028         The length of encrypted packets for blocksizes != 8 was not
7029         correct encoded.  I think this is a minor problem, because we
7030         usually use partial length packets.  Kudos to Kahil D. Jallad for
7031         pointing this out.
7032         * packet.h: Add extralen to PKT_encrypted.
7033         * cipher.c (write_header): Set extralen.
7034         * build-packet.c (do_encrypted): Use extralen instead of const 10.
7035         (do_encrypted_mdc): Ditto.
7036         * parse-packet.c (parse_encrypted): Set extralen to 0 because we
7037         don't know it here.
7039 2001-03-30  Werner Koch  <wk@gnupg.org>
7041         * getkey.c (premerge_public_with_secret): Changed wording an add
7042         the keyID to the info message.
7044 2001-03-29  Werner Koch  <wk@gnupg.org>
7046         * getkey.c (premerge_public_with_secret): Use log_info instead of
7047         log_error when no secret key was found for a public one.
7048         Fix the usage if the secret parts of a key are not available.
7050         * openfile.c (ask_outfile_name): Trim spaces.
7051         (open_outfile): Allow to enter an alternate filename.  Thanks to
7052         Stefan Bellon.
7053         * plaintext.c (handle_plaintext): Ditto.
7055 2001-03-28  Werner Koch  <wk@gnupg.org>
7057         * mainproc.c (do_check_sig): Allow direct key and subkey
7058         revocation signature.
7059         * sig-check.c (check_key_signature2): Check direct key signatures.
7060         Print the signature class along with an error.
7062 2001-03-27  Werner Koch  <wk@gnupg.org>
7064         * packet.h: Add a missing typedef to an enum.  Thanks to Stefan Bellon.
7066         * g10.c: New option --no-sig-create-check.
7067         * sign.c (do_sign): Implement it here.
7068         * g10.c: New option --no-sig-cache.
7069         * sig-check.c (check_key_signature2): Implement it here.
7070         (cache_selfsig_result): and here.
7072         * keylist.c (list_keyblock): Removed debugging stuff.
7074         * getkey.c (cache_public_key): Made global.
7075         * keygen.c (write_selfsig, write_keybinding): Cache the new key.
7077         * getkey.c (key_byname): Add new arg secmode and changed all
7078         callers to request explicitly the mode.  Deriving this information
7079         from the other supplied parameters does not work if neither pk nor
7080         sk are supplied.
7082 2001-03-25  Werner Koch  <wk@gnupg.org>
7084         * packet.h (ctrlpkttype_t): New.
7085         * mainproc.c (add_gpg_control,proc_plaintext,proc_tree): Use the
7086         new enum values.
7087         * pipemode.c (make_control): Ditto.
7088         * armor.c (armor_filter): Ditto.
7090 2001-03-24  Werner Koch  <wk@gnupg.org>
7092         * sign.c (do_sign): Verify the signature right after creation.
7094 2001-03-23  Werner Koch  <wk@gnupg.org>
7096         * status.c, status.h (STATUS_UNEXPECTED): New.
7097         * mainproc.c (do_proc_packets): And emit it here.
7099 2001-03-21  Werner Koch  <wk@gnupg.org>
7101         * status.c: Add sys/types.h so that it runs on Ultrix.  Reported
7102         by Georg Schwarz.x
7104         * build-packet.c (build_sig_subpkt): Fixed generaton of packet
7105         length header in case where 2 bytes headers are needed.  Thanks to
7106         Piotr Krukowiecki.
7108 2001-03-19  Werner Koch  <wk@gnupg.org>
7110         * g10.c (main): the default keyring is no always used unless
7111         --no-default-keyring is given.  
7113         * ringedit.c (add_keyblock_resource): invalidate cache after file
7114         creation.
7116 2001-03-15  Werner Koch  <wk@gnupg.org>
7118         * keygen.c (ask_algo): Changed the warning of the ElGamal S+E Algo.
7120         * keylist.c (print_capabilities): New.
7121         (list_keyblock_colon): and use it here.
7123 2001-03-13  Werner Koch  <wk@gnupg.org>
7125         * main.c, options.h: New option --fixed_list_mode.
7126         * keylist.c (list_keyblock_colon): use it here.
7128         * getkey.c (merge_keys_and_selfsig): Divert merging of public keys
7129         to the function used in key selection..
7130         * keylist.c (is_uid_valid): Removed.
7131         (list_keyblock): Splitted into ..
7132         (list_keyblock_print, list_keyblock_colon): .. these.
7133         functions.  Changed them to use the flags set in the key lookup code.
7134         (reorder_keyblock): New, so that primary user IDs are listed first.
7136         * ringedit.c (keyring_copy): flush the new iobuf chaces before
7137         rename or remove operations.  This is mainly needed for W32.
7139         * hkp.c [HAVE_DOSISH_SYSTEM]: Removed the disabled code because we
7140         have now W32 socket support in ../util/http.c
7142         * skclist.c (key_present_in_sk_list): New.
7143         (is_duplicated_entry): New.
7144         (build_sk_list): Check for duplicates and do that before unlocking.
7146 2001-03-12  Werner Koch  <wk@gnupg.org>
7148         * armor.c (parse_header_line): Removed double empty line check.
7149         (parse_header_line): Replaced trim_trailing_ws with a counting
7150         function so that we can adjust for the next read.
7152         * options.skel: Fixed 3 typos. By Thomas Klausner. Replaced the
7153         keyserver example by a better working server. 
7155         * parse-packet.c (parse_symkeyenc): Return Invalid_Packet on error.
7156         (parse_pubkeyenc): Ditto.
7157         (parse_onepass_sig): Ditto.
7158         (parse_plaintext): Ditto.
7159         (parse_encrypted): Ditto.
7160         (parse_signature): Return error at other places too.
7161         (parse_key): Ditto.
7162         * g10.c (main): Set opt.list_packets to another value when invoked
7163         with the --list-packets command.
7164         * mainproc.c (do_proc_packets): Don's stop processing when running
7165         under --list-packets command.
7167         * signal.c (do_sigaction): Removed.
7168         (init_one_signal): New to replace the above.  Needed to support
7169         systems without sigactions. Suggested by Dave Dykstra.
7170         (got_fatal_signal,init_signals): Use the above here. 
7171         (do_block): Use sigset() if sigprocmask() is not available.
7173         * armor.c (parse_hash_header): Test on TIGER192, which is the
7174         correct value as per rfc2440.  By Edwin Woudt.
7176 2001-03-08  Werner Koch  <wk@gnupg.org>
7178         * misc.c: Include time.h. By James Troup.
7180         * getkey.c: Re-enabled the unknown user Id and PK caches and
7181         increased their sizes.
7183         * getkey.c (merge_selfsigs_main): Set expire date and continue
7184         processing even if we found a revoked key.
7185         (merge_selfsigs_subkeys): Ditto.
7186         
7187         * packet.h: Add an is_revoked flag to the user_id packet.
7188         * getkey.c (fixup_uidnode): Set that flag here.
7189         (merge_selfsigs_main): Fix so that the latest signature is used to
7190         find the self-signature for an UID.
7191         * parse-packet.c (parse_user_id): Zero out all fields.
7192         * mainproc.c (check_sig_and_print): Print the primary user ID
7193         according the the node flag and then all other non-revoked user IDs.
7194         (is_uid_revoked): Removed; it is now handled by the key selection code.
7195         
7196         Changed the year list of all copyright notices.
7197         
7198 2001-03-07  Werner Koch  <wk@gnupg.org>
7200         * getkey.c (finish_lookup): Print an info message only in verbose mode.
7202 2001-03-05  Werner Koch  <wk@gnupg.org>
7204         * packet.h: Replaced sigsubpkt_t value 101 by PRIV_VERIFY_CACHE.
7205         We have never used the old value, so we can do this without any harm.
7206         * parse-packet.c (dump_sig_subpkt): Ditto.
7207         (parse_one_sig_subpkt): Parse that new sub packet.
7208         * build-packet.c (build_sig_subpkt): Removed the old one from the
7209         hashed area.
7210         (delete_sig_subpkt): New.
7211         (build_sig_subpkt): Allow an update of that new subpkt.
7212         * sig-check.c (check_key_signature2): Add verification caching
7213         (cache_selfsig_result): New.
7214         * export.c (do_export_stream): Delete that sig subpkt before exporting.
7215         * import.c (remove_bad_stuff): New.
7216         (import): Apply that function to all imported data 
7218 2001-03-03  Werner Koch  <wk@gnupg.org>
7220         * getkey.c: Introduced a new lookup context flag "exact" and used 
7221         it in all place where we once used primary.
7222         (classify_user_id2): Replaced the old function and add an extra
7223         argument to return whether an exact keyID has been requested.
7224         (key_byname): Removed the unused ctx.primary flag
7225         (get_seckey_byname2): Ditto.
7226         (finish_lookup): Changed debugging output.
7228 2001-03-02  Werner Koch  <wk@gnupg.org>
7230         * keylist.c (list_one): Remove the merge key calls. 
7232 2001-03-01  Werner Koch  <wk@gnupg.org>
7234         * getkey.c (finish_lookup): Don't use it if we no specific usage
7235         has been requested.
7236         (merge_selfsigs_main): fix UID only if we have an signature.
7237         (lookup): Return UNU_PUBKEY etc. instead of NO_PUBKEY if we found
7238         a key but the requested usage does not allow this key.
7239         * import.c (import_one): Take UNU_PUBKEY into account.
7240         * mainproc.c (list_node): Ditto.
7241         * keylist.c (list_keyblock): Ditto.
7242         * keyedit.c (print_and_check_one_sig): Ditto. 
7244 2001-02-09  Werner Koch  <wk@gnupg.org>
7246         * delkey.c (delete_key): Removed that silly assert which rendered
7247         the whole new stuff meaningless.
7249 2001-02-08  Werner Koch  <wk@gnupg.org>
7251         * getkey.c (key_byname): It can happen that we have both, sk and pk
7252         NULL, fix for that.
7254         * parse-packet.c (parse_one_sig_subpkt): Add support for
7255         primary_uid and key_flags.
7256         (can_handle_critical): Ditto
7258         * parse-packet.c (parse_encrypted): Fixed listing of pktlen for
7259         MDC packets.
7261         * getkey.c: Backported the version of this file from gpg 1.1. this
7262         involved some changes in other files too.
7263         * parse-packet.c (parse_key): Clear req_usage.
7264         * skclist.c (build_sk_list): Use req_usage to pass the usage
7265         information to the lookup function.
7266         * pkclist.c (build_pk_list): Ditto.
7267         * free-packet.c (copy_public_parts_to_secret_key): New.
7268         * keydb.h: Add IS_* macros to check the sig_class.
7269         * misc.c (openpgp_cipher_test_algo): New.
7270         (openpgp_pk_test_algo): New.
7271         (openpgp_pk_algo_usage): New.
7272         (openpgp_md_test_algo): New.
7273         * packet.h: Add a few fields to PKT_{public,secret}_key and
7274         PKT_user_id.
7275         * seckey-cert.c (do_check): Use the new main_keyid field.
7277 2001-02-04  Werner Koch  <wk@gnupg.org>
7279         * encr-data.c (decrypt_data): Catch error when we had problems to
7280         parse the encrypted packet. By Timo.
7282 2001-01-29  Werner Koch  <wk@gnupg.org>
7284         * g10.c (main): --batch does now set nogreeting.
7286         * delkey.c (do_delete_key): Fixed delete-both functionality.
7288 2001-01-22  Werner Koch  <wk@gnupg.org>
7290         * g10.c: New command --delete-secret-and-public-key.
7291         * delkey.c (delete_key): Add new arg allow_both.
7292         (do_delete_key): Move most stuff from above to this new function.
7294 2001-01-12  Werner Koch  <wk@gnupg.org>
7296         * passphrase.c (passphrase_to_dek): Use MD5 when IDEA is installed
7297         and we have no S2K.
7298         * mainproc.c (proc_encrypted): Likewise
7300 2001-01-11  Werner Koch  <wk@gnupg.org>
7302         * sig-check.c (do_check): Print the signature key expire message
7303         only in verbose mode and added the keyID.
7305 2001-01-09  Werner Koch  <wk@gnupg.org>
7307         * status.c, status.h: New status USERID_HINT. 
7308         (write_status_text): Replace LF and CR int text by C-escape sequence.
7310         * passphrase.c (passphrase_to_dek): Fixed the NEED_PASSPHRASE
7311         output.  It does now always print 2 keyIDs.  Emit the new
7312         USERID_HINT.
7314 2001-01-08  Werner Koch  <wk@gnupg.org>
7316         * g10.c, options.h: New option --no-expensive-trust-checks.
7317         * keylist.c (list_keyblock): Act on this option.
7319 2001-01-04  Werner Koch  <wk@gnupg.org>
7321         * g10.c (main): Set homedir only in the pre-parsing phase and
7322         replace backslashes in the W32 version.
7324 2001-01-03  Werner Koch  <wk@gnupg.org>
7326         * status.c, status.h : New status KEY_CREATED
7327         * keygen.c (do_generate_keypair,generate_subkeypair): Emit it.
7329 2000-12-28  Werner Koch  <wk@gnupg.org>
7331         * signal.c (got_fatal_signal): Remove lockfiles here because the
7332         atexit stuff does not work due to the use of raise. Suggested by
7333         Peter Fales.
7334         * gpgv.c (remove_lockfiles): New stub.
7335         
7336 2000-12-19  Werner Koch  <wk@gnupg.org>
7338         * status.c, status.h (cpr_get_no_help): New.
7339         * keyedit.c (keyedit_menu): Use it here because we have our own
7340         help list here.
7342 2000-12-18  Werner Koch  <wk@gnupg.org>
7344         * mainproc.c (print_failed_pkenc): Don't print the sometimes
7345         confusing message about unavailabe secret key.  Renamed ...
7346         (print_pkenc_list): ... to this and introduced failed arg.
7347         (proc_encrypted): Print the failed encryption keys and then
7348         the one to be used.
7349         (proc_pubkey_enc): Store also the key we are going to use.
7351         * mainproc.c (check_sig_and_print): Don't list revoked user IDs.
7352         (is_uid_revoked): New.
7354 2000-12-08  Werner Koch  <wk@gnupg.org>
7356         * pipemode.c: Made the command work.  Currently only for
7357         non-armored detached signatures.
7358         * mainproc.c (release_list): Reset the new pipemode vars.
7359         (add_gpg_control): Handle the control packets for pipemode
7360         * status.c, status.h: New stati {BEGIN,END}_STREAM.
7362 2000-12-07  Werner Koch  <wk@gnupg.org>
7364         * g10.c: New option --allow-secret-key-import.
7365         * import.c (import_keys,import_keys_stream): Honor this option.
7366         (import): New arg allow_secret and pass that arg down to ...
7367         (import_secret_one): to this and print a warning if secret key
7368         importing is not allowed.
7370 2000-12-05  Werner Koch  <wk@gnupg.org>
7372         * cipher.c (cipher_filter): Moved the end_encryption status ...
7373         * encode.c (encode_simple,encode_crypt): to here
7374         * sign.c (sign_file): and here.
7376         * status.c (mywrite): Removed.
7377         (get_status_string): Removed the LFs from the strings.
7378         (set_status_fd,is_status_enabed,write_status_text,
7379         write_status_buffer): Replaced all mywrite by stdio calls and use
7380         fdopen to create a strem.  This is needed to make things smoother
7381         in the W32 version.
7383 2000-12-04  Werner Koch  <wk@gnupg.org>
7385         * import.c (merge_blocks): Increment n_sigs for revocations.
7387 2000-11-30  Werner Koch  <wk@gnupg.org>
7389         * g10.c (main): Use iobuf_translate_file_handle for all options
7390         with filehandles as arguments.  This is function does some magic
7391         for the W32 API.
7393         * verify.c (verify_signatures): Add a comment rant about the
7394         detached signature problem.
7395         * mainproc.c (proc_tree): Issue an error if a detached signature
7396         is assumed but a standard one was found.
7397         * plaintext.c (hash_datafiles): Don't fall back to read signature
7398         from stdin.
7399         * openfile.c (open_sigfile): Print verbose message only if the
7400         file could be accessed.
7402 2000-11-24  Werner Koch  <wk@gnupg.org>
7404         * passphrase.c [HAVE_DOSISH_SYSTEM]: Disabled all the agent stuff.
7406 2000-11-16  Werner Koch  <wk@gnupg.org>
7408         * g10.c: New option --use-agent
7409         * passphrase.c (agent_open,agent_close): New.
7410         (agent_get_passphrase,agent_clear_passphrase): New.
7411         (passphrase_clear_cache): New.
7412         (passphrase_to_dek): Use the agent here.
7413         * seckey-cert.c (do_check): Clear cached passphrases.
7415 2000-11-15  Werner Koch  <wk@gnupg.org>
7417         * status.c (write_status_text): Moved the big switch to ...
7418         (get_status_string): ... new function.
7419         (write_status_buffer): New.
7421         * status.c (mywrite): New and replaced all write() by this.
7423         * status.c, status.h: Add 3 status lcodes for notaions and policy.
7424         * mainproc.c (print_notation_data): Do status output of notations.
7425         
7426 2000-11-13  Werner Koch  <wk@gnupg.org>
7428         * sign.c (clearsign_file): Use LF macro to print linefeed.
7429         
7430 2000-11-11  Paul Eggert  <eggert@twinsun.com>
7432         Clean up the places in the code that incorrectly use "long" or
7433         "unsigned long" for file offsets.  The correct type to use is
7434         "off_t".  The difference is important on large-file hosts,
7435         where "off_t" is longer than "long".
7437         * keydb.h (struct keyblock_pos_struct.offset):
7438         Use off_t, not ulong, for file offsets.
7439         * packet.h (dbg_search_packet, dbg_copy_some_packets,
7440         search_packet, copy_some_packets): Likewise.
7441         * parse-packet.c (parse, dbg_search_packet, search_packet,
7442         dbg_copy_some_packets, copy_some_packets): Likewise.
7443         * ringedit.c (keyring_search): Likewise.
7445         * parse-packet.c (parse): Do not use %lu to report file
7446         offsets in error diagnostics; it's not portable.
7447         * ringedit.c (keyring_search): Likewise.
7449 2000-11-09  Werner Koch  <wk@gnupg.org>
7451         * g10.c (main): New option --enable-special-filenames.
7453 2000-11-07  Werner Koch  <wk@gnupg.org>
7455         * g10.c (main): New command --pipemode.
7456         * pipemode.c: New.
7458 2000-10-23  Werner Koch  <wk@gnupg.org>
7460         * armor.c (armor_filter): Changed output of hdrlines, so that a CR
7461         is emitted for DOS systems.
7463         * keygen.c (read_parameter_file): Add a cast for isspace().
7465         * status.c (myread): Use SIGINT instead of SIGHUP for DOS. 
7467 2000-10-19  Werner Koch  <wk@gnupg.org>
7469         * g10.c: New option --ignore-crc-error
7470         * armor.c (invalid_crc): New.
7471         (radix64_read): Act on new option.
7473         * openfile.c (try_make_homedir): Klaus Singvogel fixed a stupid
7474         error introduced on Sep 6th. 
7476 2000-10-18  Werner Koch  <wk@gnupg.org>
7478         * misc.c (print_cipher_algo_note): Don't print the note for AES.
7479         Changed wording.
7481 2000-10-16  Werner Koch  <wk@gnupg.org>
7483         * mainproc.c (do_proc_packets): Hack to fix the problem that
7484         signatures are not detected when there is a MDC packet but no
7485         compression packet.
7486         
7487         * g10.c (print_hashline): New.
7488         (print_mds): Use above func with --with-colons.
7490         * mainproc.c (check_sig_and_print): Detect multiple signatures
7491         and don't verify them.
7493 2000-10-14  Werner Koch  <wk@gnupg.org>
7495         * mainproc.c (add_onepass_sig): There is an easier solution to the
7496         error fixed yesterday; just check that we only have onepass
7497         packets.  However, the other solution provides an cleaner
7498         interface and opens the path to get access to other information
7499         from the armore headers.
7500         (release_list): Reset some more variables.
7502 2000-10-13  Werner Koch  <wk@gnupg.org>
7504         * mainproc.c (add_gpg_control): New.
7505         (do_proc_packets): use it.
7506         (proc_plaintext): Changed logic to detect clearsigns.
7507         (proc_tree): Check the cleartext sig with some new code.
7509         * packet.h: New packet PKT_GPG_CONTROL.
7510         * parse-packet.c (parse_gpg_control): New.
7511         * misc.c (get_session_marker): New.
7512         * armor.c (armor_filter): Replaced the faked 1-pass packet by the
7513         new control packet.
7515         * keyedit.c (keyedit_menu): Allow batchmode with a command_fd. 
7516         * status.c (my_read): New.
7517         (do_get_from_fd): use it.
7519 2000-10-12  Werner Koch  <wk@gnupg.org>
7521         * keygen.c (keygen_add_std_prefs): Add Rijndael to the prefs.
7523 2000-10-07  Werner Koch  <wk@gnupg.org>
7525         * gpgv.c: Add more stubs for ununsed code to make the binary smaller.
7527 Wed Oct  4 15:50:18 CEST 2000  Werner Koch  <wk@openit.de>
7529         * sign.c (hash_for): New arg to take packet version in account, changed
7530         call callers.
7532         * gpgv.c: New.
7533         * Makefile.am: Rearranged source files so that gpgv can be build with
7534         at least files as possible.
7536 Mon Sep 18 12:13:52 CEST 2000  Werner Koch  <wk@openit.de>
7538         * hkp.c (not_implemented): Print a notice for W32
7540 Fri Sep 15 18:40:36 CEST 2000  Werner Koch  <wk@openit.de>
7542         * keygen.c (keygen_add_std_prefs): Changed order of preferences to
7543         twofish, cast5, blowfish.
7545         * pkclist.c (algo_available): Removed hack to disable Twofish.
7547 Thu Sep 14 17:45:11 CEST 2000  Werner Koch  <wk@openit.de>
7549         * parse-packet.c (dump_sig_subpkt): Dump key flags. Print special
7550         warning in case of faked ARRs.
7552         * getkey.c (finsih_lookup): Hack so that for v4 RSA keys the subkey
7553         is used for encryption.
7555 Thu Sep 14 14:20:38 CEST 2000  Werner Koch  <wk@openit.de>
7557         * g10.c (main): Default S2K algorithms are now SHA1 and CAST5 - this
7558         should solve a lot of compatibility problems with other OpenPGP
7559         apps because those algorithms are SHOULD and not optional.  The old
7560         way to force it was by using the --openpgp option whith the drawback 
7561         that this would disable a couple of workarounds for PGP.
7563         * g10.c (main): Don't set --quite along with --no-tty.  By Frank Tobin.
7565         * misc.c (disable_core_dump): Don't display a warning here but a return
7566         a status value and ...
7567         * g10.c (main): ...print warnining here. Suggested by Sam Roberts.
7569 Wed Sep 13 18:12:34 CEST 2000  Werner Koch  <wk@openit.de>
7571         * keyedit.c (keyedit_menu): Allow to use "debug" on the secret key.
7573         * ringedit.c (cmp_seckey): Fix for v4 RSA keys.
7574         * seckey-cert.c (do_check): Workaround for PGP 7 bug.
7576 Wed Sep  6 17:55:47 CEST 2000  Werner Koch  <wk@openit.de>
7578         * misc.c (print_pubkey_algo_note): Do not print the RSA notice.
7579         * sig-check.c (do_signature_check): Do not emit the RSA status message.
7580         * pubkey-enc.c (get_session_key): Ditto.
7582         * encode.c (encode_simple, encode_crypt): Fix for large files.
7583         * sign.c (sign_file): Ditto.
7585 Wed Sep  6 14:59:09 CEST 2000  Werner Koch  <wk@openit.de>
7587         * passphrase.c (hash_passphrase): Removed funny assert.  Reported by
7588         David Mathog.
7590         * openfile.c (try_make_homedir): Changes for non-Posix systems.
7591         * g10.c (main): Take the default homedir from macro.
7593         * g10.c: The --trusted-key option is back.
7594         * trustdb.c (verify_own_key): Handle this option.
7595         (add_ultimate_key): Moved stuff from verify_own_key to this new func.
7596         (register_trusted_key): New.
7598 Fri Aug 25 16:05:38 CEST 2000  Werner Koch  <wk@openit.de>
7600         * parse-packet.c (dump_sig_subpkt): Print info about the ARR.
7602         * openfile.c (overwrite_filep): Always return okay if the file is
7603         called /dev/null. 
7604         (make_outfile_name): Add ".sign" to the list of know extensions.
7605         (open_sigfile): Ditto.
7607 Wed Aug 23 19:52:51 CEST 2000  Werner Koch  <wk@openit.de>
7609         * g10.c: New option --allow-freeform-uid. By Jeroen C. van Gelderen.
7610         * keygen.c (ask_user_id): Implemented here.
7612 Fri Aug  4 14:23:05 CEST 2000  Werner Koch  <wk@openit.de>
7614   * status.c (do_get_from_fd): Ooops, we used fd instead of opt.command_fd.
7615   Thanks to Michael Tokarev.
7617 Tue Aug  1 20:06:23 CEST 2000  Werner Koch  <wk@openit.de>
7619   * g10.c: New opttion --try-all-secrets on suggestion from Matthias Urlichs.
7620   * pubkey-enc.c (get_session_key): Quite easy to implement here.
7622 Thu Jul 27 17:33:04 CEST 2000  Werner Koch  <wk@openit.de>
7624   * g10.c: New option --merge-only.  Suggested by Brendan O'Dea.
7625   * import.c (import_one): Implemented it here
7626   (import_secret_one): Ditto.
7627   (print_stats): and give some stats.
7629 Thu Jul 27 12:01:00 CEST 2000  Werner Koch  <wk@openit.de>
7631   * g10.c: New options --show-session-key and --override-session-key
7632   * pubkey-enc.c (hextobyte): New.
7633   (get_override_session_key): New.
7634   * mainproc.c (proc_pubkey_enc): Add session-key stuff.
7635   * status.h, status.c (STATUS_SESSION_KEY): New.
7637 Thu Jul 27 10:02:38 CEST 2000  Werner Koch  <wk@openit.de>
7639   * g10.c (main): Use setmode(O_BINARY) for MSDOS while generating random bytes
7640   (print_mds): Likewise for stdin.
7641   * plaintext.c (handle_plaintext): Likewise for stdout.
7643 Mon Jul 24 10:30:17 CEST 2000  Werner Koch  <wk@openit.de>
7645   * keyedit.c (menu_expire): expire date for primary key can be set again.
7647 Wed Jul 19 11:26:43 CEST 2000  Werner Koch  <wk@openit.de>
7649   * keylist.c (is_uid_valid): New.
7650   (list_keyblock): Print validity information for all user IDs.  Note, this
7651   has to be done at other places too; for now we have only minimal support.
7653 Wed Jul 12 13:32:06 CEST 2000  Werner Koch  <wk@openit.de>
7655   * helptext.c, pkclist.c: s/superseeded/superseded/
7657 Mon Jul 10 16:08:57 CEST 2000  Werner Koch  <wk@openit.de>
7659   * parse-packet.c (enum_sig_subpkt): Fixed testing on crtitical bit in case
7660   of a NULL buffer.  Reported by Peter Marschall.
7662 Wed Jul  5 13:28:45 CEST 2000  Werner Koch  <wk@openit.de>
7664   * keyedit.c, keyid.c: Add some _()
7666   * argparse.c:  Changed the flag to suppress --version handling to also
7667   suppress --help.
7669 Wed Jun 28 11:54:44 CEST 2000  Werner Koch  <wk@openit.de>
7671   * armor.c (armor_filter): Set sigclass to 0 in case of non-dash-escaped
7672   clearsig.  This makes this mode work again.
7674   * mainproc.c (proc_tree): Fixed handling of one-pass-sig packets in textmode.
7675   Disabled the ugly workaround for PGP 5 - let's see whether thi breaks less
7676   cases. Found by Ted Cabeen.
7678   * options.h (DBG_HASHING): New.  All commented md_start_debug are now
7679   controlled by this debug option.
7681   * sign.c (print_status_sig_created): New and called from 2 places.
7683   * keygen.c (gen_rsa): New, but commented.
7684   (ask_algo): Commented support for RSA.
7686   * seckey-cert.c (protect_secret_key): Started to fix the code for v4 RSA
7687   keys - it is not solved yet. However, we have time until, Sep 20th ;)
7689 Wed Jun 14 12:27:09 CEST 2000  Werner Koch  <wk@openit.de>
7691   * status.c (init_shm_coprocessing): Changed the sequence of the get,attach
7692   to cope with the changes in newer Linux kernels.  This bug has been found
7693   by <dmitri@advantrix.com> who also proposed this solution.  Hopefully
7694   this does not break gpg on to many systems.
7696   * cipher.c (write_header): Protect the IV with the MDC too.
7697   * encr-data.c (decrypt_data): Likewise.
7699 Fri Jun  9 10:09:52 CEST 2000  Werner Koch  <wk@openit.de>
7701   * g10.c: New options --no-auto-key-retrieve
7702   * options.h (auto_key_retrieve): New.
7703   * mainproc.c (check_sig_and_print): Implemented that.
7705 Wed Jun  7 19:19:09 CEST 2000  Werner Koch  <wk@openit.de>
7707   * sig-check.c (do_check): Use EMULATE_MDENCODE also on v4 packets.
7709 Wed Jun  7 17:25:38 CEST 2000  Werner Koch  <wk@openit.de>
7711   * cipher.c (write_header): Use plain CFB mode for MDC encrypted packets.
7712   * encr-data.c (decrypt_data): Ditto.
7714 Mon Jun  5 23:41:54 CEST 2000  Werner Koch  <wk@openit.de>
7716   * seskey.c (do_encode_md, encode_md_value): Add new arg v3compathack to work
7717   around a bug in old versions.
7718   * sig-check.c (do_check): use the aboved workaround when enabled.
7719   * g10.c: New option --emulate-md-decode-bug
7721 Mon Jun  5 12:37:43 CEST 2000  Werner Koch  <wk@openit.de>
7723   * build-packet.c (do_mdc): New.
7724   (do_encrypted_mdc): Changed for the new proposal.
7725   * parse-packet.c (parse_mdc): New.
7726   (parse_encrypted): Fixed for the new proposal.
7727   * packet.h (PKT_MDC): New.
7728   * cipher.c (cipher_filter): Build the MDC packet here.
7729   * g10.c (main): Enable --force-mdc.
7730   * encr-data.c (mdc_decode_filter): Fixed for new MDC method
7732   * options.h(rfc2440): New.
7733   * g10.c (main): Changed the selected values for --openpgp to not include
7734   optional algorithms.
7736 Thu May 18 11:38:54 CEST 2000  Werner Koch  <wk@openit.de>
7738         * keyedit.c (keyedit_menu): Add a keyword arg to the prompt.
7740         * status.c, status.h: Added 3 new status tokens.
7741         * status.c (do_get_from_fd): New.
7742         (cpr_enabled,cpr_get,cpr_get_hidden,cpr_kill_prompt,
7743          cpr_get_answer_is_yes,cpr_get_answer_yes_no_quit): Modified to work
7744          with the new function.
7745         * g10.c: Add new option --command-fd.
7747         * status.c (progress_cb): New.
7748         (set_status_fd): Register progress functions
7750 Fri May 12 14:01:20 CEST 2000  Werner Koch  <wk@openit.de>
7752         * delkey.c (delete_key): Add 2 new status messages
7753         * status.c, status.h (STATUS_DELETE_PROBLEM): New.
7755         Fixed years of copyright in all source files.
7757 Mon May  1 17:08:14 CEST 2000  Werner Koch  <wk@openit.de>
7759         * trustdb.c (propagate_validity): Fixed the bug that only one uid
7760         gets fully trusted even when all are signed by an ultimate key.
7762 Mon May  1 15:38:04 CEST 2000  Werner Koch  <wk@openit.de>
7764         * getkey.c (key_byname): Always returned a defined context.  Fixed
7765         a segv for invalid user id specifications. Reported by Walter Koch.
7767         * getkey.c (get_user_id): I18ned "no user id" string. By Walter.
7769         * pkclist.c (do_show_revocation_reason): Typo fixes.
7770         * helptext.c: Ditto.
7772         * armor.c (armor_filter): Fixed some CRLF issues.  By Mike McEwan.
7774 Fri Apr 14 19:37:08 CEST 2000  Werner Koch  <wk@openit.de>
7776         * pkclist.c (do_show_revocation_reason): New.
7777         (show_revocation_reason): New and called at various places.
7779         * g10.c (main): Fixed small typo.
7781         * pkclist.c (do_we_trust): Act on always_trust but not for revoked
7782         keys. Suggested by Chip Salzenberg.
7784         * g10.c: New option --lock-never.
7786         * ringedit.c (get_writable_keyblock_file): New.
7787         * keygen.c (do_generate_keypair): Use this instead of the hardwired one.
7789         * keygen.c (ask_user_id): Check that the email address is in the
7790         correct field.  Suggested by Christian Kurz.
7792 Mon Apr 10 13:34:19 CEST 2000  Werner Koch  <wk@openit.de>
7794         * keyedit.c (show_key_with_all_names): s/sbb/ssb/
7796 Tue Mar 28 14:26:58 CEST 2000  Werner Koch  <wk@openit.de>
7798         * trustdb.c (verify_own_keys): Do not print warning about unprotected
7799         key when in quiet mode.
7801 Wed Mar 22 13:50:24 CET 2000  Werner Koch  <wk@openit.de>
7803         * mainproc.c (print_userid): Do UTF8 conversion before printing.
7804         * import.c (import_one): Ditto.
7805         (import_secret_one): Ditto.
7806         (delete_inv_parts): Ditto.
7808 Thu Mar 16 16:20:23 CET 2000  Werner Koch  <wk@openit.de>
7810         * keylist.c (print_key_data): Handle a NULL pk gracefully.
7812         * getkey.c (merge_one_pk_and_selfsig): Fixed silly code for
7813         getting the primary keys keyID but kept using the one from the
7814         subkey.
7815         * pubkey-enc.c (get_it): Print a note for expired subkeys.
7817         * getkey.c (has_expired): New.
7818         (subkeys_expiretime): New.
7819         (finish_lookup): Check for expired subkeys needed for encryption.
7820         (merge_keys_and_selfsig): Fixed expiration date merging for subkeys.
7822         * keylist.c (list_keyblock): Print expiration time for "sub".
7823         (list_one): Add missing merging for public keys.
7824         * mainproc.c (list_node): Ditto.
7826 2000-03-14 13:49:38  Werner Koch  (wk@habibti.openit.de)
7828         * keygen.c (keyedit_menu): Do not allow to use certain commands
7829         while the secret key is selected.
7831 2000-03-09 12:53:09  Werner Koch  (wk@habibti.openit.de)
7833         * keygen.c (ask_expire_interval): Movede parsig to ...
7834         (parse_expire_string): ... this new function. And some new control
7835         commands.
7836         (proc_parameter_file): Add expire date parsing.
7837         (do_generate_keypair): Allow the use of specified output files.
7839 2000-03-08 10:38:38  Werner Koch  (wk@habibti.openit.de)
7841         * keygen.c (ask_algo): Removed is_v4 return value and the commented
7842         code to create Elg keys in a v3 packet. Removed the rounding
7843         of key sizes here.
7844         (do_create): Likewise removed arg v4_packet.
7845         (gen_elg): Likewise removed arg version. Now rounding keysizes here.
7846         (gen_dsa): Rounding keysize now here.
7847         (release_parameter_list): New
7848         (get_parameter*): New.
7849         (proc_parameter_file): New.
7850         (read_parameter_file): New.
7851         (generate_keypair): Splitted. Now uses read_parameter_file when in
7852         batch mode.  Additional argument to specify a parameter file.
7853         (do_generate_keypair): Main bulk of above fucntion and uses the
7854         parameter list.
7855         (do_create): Don't print long notice in batch mode.
7856         * g10.c (main): Allow batched key generation.
7858 Thu Mar  2 15:37:46 CET 2000  Werner Koch  <wk@gnupg.de>
7860         * pubkey-enc.c (get_it): Print a note about unknown cipher algos.
7862         * g10.c (opts): Add a note to the help listing about the man page
7863         and removed some options from the help listing.
7865         * keyedit.c (print_and_check_one_sig): Use a new function to truncate
7866         the output of the user ID.  Suggested by Jan-Benedict Glaw.
7868 Wed Feb 23 10:07:57 CET 2000  Werner Koch  <wk@gnupg.de>
7870         * helptext.c: typo fix.
7872 Thu Feb 17 13:39:32 CET 2000  Werner Koch  <wk@gnupg.de>
7874         * revoke.c: Removed a bunch of commented code.
7876         * packet.h (SIGSUBPKT_REVOC_REASON): New.
7877         * build-packet.c (build_sig_subpkt): Support new sub packet.
7878         * parse-packet.c (parse_one_sig_subpkt): Ditto.
7879         (dump_sig_subpkt): Ditto.
7880         * revoke.c (ask_revocation_reason): New.
7881         (release_revocation_reason_info): New.
7882         (revocation_reason_build_cb): New.
7883         (gen_revoke): Ask for reason.
7884         * main.h (struct revocation_reason_info): Add declaration.
7885         * keyedit.c (menu_revsig): Add support for revocation reason.
7886         (menu_revkey): Ditto.
7887         (sign_uid_mk_attrib): Renamed to ...
7888         (sign_mk_attrib): ... this, made static and add support for reasons.
7890 Tue Feb 15 08:48:13 CET 2000  Werner Koch  <wk@gnupg.de>
7892         * build-packet.c (build_packet): Fixed fixing of old comment packets.
7894         * import.c (import_keys): Fixed importing from stdin when called with
7895         nnames set to zero as it normally happens.
7897 Mon Feb 14 14:30:20 CET 2000  Werner Koch  <wk@gnupg.de>
7899         * sig-check.c (check_key_signature2): Add new arg r_expired.
7900         (do_signature_check): New arg to pass it down to ...
7901         (do_check): New arg r-expire which is set when the signature
7902         has expired.
7903         * trustdb.c (check_sig_record): Set SIGF_EXPIRED flag and set
7904         the expiretime to zero so that thi signature will not be checked
7905         anymore.
7907 Fri Feb 11 17:44:40 CET 2000  Werner Koch  <wk@gnupg.de>
7909         * g10.c (g10_exit): Update the random seed_file.
7910         (main): Set the random seed file.  New option --no-random-seed-file.
7912 Thu Feb 10 17:39:44 CET 2000  Werner Koch  <wk@gnupg.de>
7914         * keyedit.c (menu_expire): Fixed segv due to unitialized sub_pk.
7915         By Rémi.
7917 Thu Feb 10 11:39:41 CET 2000  Werner Koch  <wk@gnupg.de>
7919         * keylist.c (list_keyblock): Don't print warnings in the middle of
7920         regulat output lines.  By Rémi.
7922         * sig-check.c: Include options.h
7924 Wed Feb  9 15:33:44 CET 2000  Werner Koch  <wk@gnupg.de>
7926         * gpg.c: New option --ignore-time-conflict
7927         * sig-check.c (do_check): Implemented this option.
7928         * trustdb.c (check_trust): Ditto.
7929         * sign.c (do_sign): Ditto.
7930         * keygen.c (generate_subkeypair): Ditto.
7932         * encode.c (encode_simple): use iobuf_cancel after open failure.
7933         Reported by Huy Le.
7935 Fri Jan 14 18:32:01 CET 2000  Werner Koch  <wk@gnupg.de>
7937         * packet.h (STRING2KEY): Changed mode from byte to int.
7938         * parse-packet.c (parse_key): Add the special GNU protection stuff
7939         * build-packet.c (so_secret_key): Ditto.
7940         * seckey-cert.c (do_check): Ditto.
7941         * keyedit.c (change_passphrase): Ditto.
7942         * export.c (export_secsubkeys): New.
7943         (do_export_stream): Hack to export the primary key using mode 1001.
7944         * g10.c: New command --export-secret-subkeys
7946 Thu Jan 13 19:31:58 CET 2000  Werner Koch  <wk@gnupg.de>
7948         * armor.c (is_armored): Check for 1-pass-sig packets. Reported by
7949         David Hallinan <hallinan@rtd.com>.
7950         (armor_filter): Replaced one LF by the LF macro.  Reported by
7951         Wolfgang Redtenbacher.
7953 Wed Jan  5 11:51:17 CET 2000  Werner Koch  <wk@gnupg.de>
7955         * g10.c (main): Reset new global flag opt.pgp2_workarounds
7956         when --openpgp is used.
7957         * mainproc.c (proc_plaintext): Do the PGP2,5 workarounds only
7958         when the global flag is set.
7959         (proc_tree): Ditto.
7960         * textfilter.c (copy_clearsig_text): Ditto.
7961         * armor.c (armor_filter): Ditto.
7963         * g10.c: New option --list-only
7964         * mainproc.c (proc_tree): Don't do it if opt.list_only is active.
7965         (proc_pubkey_enc): Implement option.
7967         * status.h, status.c ({BEGIN,END}_{EN,DE}CRYPTION): New.
7968         * cipher.c (cipher_filter): New status outputs.
7969         * mainproc.c (proc_encrypted): New status outputs.
7971 Fri Dec 31 14:08:15 CET 1999  Werner Koch  <wk@gnupg.de>
7973         * armor.c (armor_filter): Made the "Comment:" header translatable.
7975         * hkp.c (hkp_import): Make sure that the program does not return
7976         success when there is a connection problem.  Reported by Phillip Jones.
7978 Sun Dec 19 15:22:26 CET 1999  Werner Koch  <wk@gnupg.de>
7980         * armor.c (LF): Use this new macro at all places where a line LF
7981         is needed.  This way DOSish textfiles should be created when the
7982         input data is also in dos mode.
7983         * sign.c (LF): Ditto.
7984         * textfilter.c (LF): Ditto.
7985         (copy_clearsig_text): Disabled the forcing of CR,LF sequences
7986         for DOS systems.
7988         * plaintext.c (handle_plaintext): Fixes for line endings on DOS.
7989         and react on a LF in cleartext.
7990         * armor.c (fake_packet): Restore the original line ending after
7991         removing trailing spaces.
7993         * signal.c (got_fatal_signal): DOS fix.
7995 Thu Dec 16 10:07:58 CET 1999  Werner Koch  <wk@gnupg.de>
7997         * mainproc.c (print_failed_pkenc): Fix for unknown algorithm.
7998         Found by fygrave@epr0.org.
8000 Thu Dec  9 10:31:05 CET 1999  Werner Koch  <wk@gnupg.de>
8002         * hkp.c: i18n the strings.
8004 Sat Dec  4 15:32:20 CET 1999  Werner Koch  <wk@gnupg.de>
8006         * trustdb.c (verify_key): Shortcut for ultimately trusted keys.
8008 Sat Dec  4 12:30:28 CET 1999  Werner Koch  <wk@gnupg.de>
8010         * pkclist.c (build_pk_list): Validate the trust using the namehash
8011         if this one has been set by the key lookup.
8013         * g10.c: Add --delete-secret-key to the help page.
8015         * openfile.c (copy_options_file): Made static.
8016         (try_make_homedir): New.
8017         * ringedit.c (add_keyblock_resource): Use the try_make_hoemdir logic.
8018         * tdbio.c (tdbio_set_dbname): Likewise.
8020         * keygen.c (generate_user_id): Use m_alloc_clear() here. We should
8021         better use an allocation function specific to the user_id packet.
8023         * keygen.c (keygen_add_std_prefs): Changed symmetric preferences
8024         to include Blowfish again.  This is due to it's better speed compared
8025         to CAST5.
8027         * g10.c (strusage): Print the home directory.
8029         * armor.c (armor_filter): Take action on the cancel control msg.
8030         * filter.h (armor_filter_context_t): Add cancel flag.
8032 Mon Nov 29 21:52:11 CET 1999  Werner Koch  <wk@gnupg.de>
8034         * g10.c: New option --fast-list-mode ..
8035         * keylist.c (list_keyblock): .. and implemented.
8036         * mainproc.c (list_node): Ditto.
8038         * import.c (mark_non_selfsigned_uids_valid): Fixed the case that there
8039         is a uid without any packet following.
8041 Mon Nov 22 11:14:53 CET 1999  Werner Koch  <wk@gnupg.de>
8043         * mainproc.c (proc_plaintext): Never enable the hash processing
8044         when skip_verify is active.
8046         * armor.c (parse_header_line): Stop parsing on a WS line too.
8047         Suggested by Aric Cyr.
8049         * tdbdump.c (HEXTOBIN): Changed the name of the argument, so that
8050         traditional cpp don't mess up the macros. Suggested by Jos Backus.
8052         * mainproc.c (list_node): Print the PK algo in the --with-colon mode.
8053         * keylist.c (list_keyblock): Ditto.
8055         * signal.c (got_fatal_signal): Found the reason why exit(8) did not
8056         work - it is better to set the disposition back to default before
8057         raising the signal.  Print the notice on stderr always.
8059 Fri Nov 12 20:33:19 CET 1999  Werner Koch  <wk@gnupg.de>
8061         * g10.c (make_username): Swapped the logic.
8062         * keylist.c (public_key_list): Now takes a STRLIST as arg and moved
8063         the creation ot this list to the caller, so that he can copy with
8064         UTF-conversion of user IDs.  Changed all callers.
8065         (secret_key_list): Likewise.
8067         * getkey.c (get_user_id_string_native): New and ...
8068         * encode.c (write_pubkey_enc_from_list): ... use it here.
8070         * pubring.asc: Updated.
8072         * packet.h (PKT_PHOTO_ID): New.
8073         * parse-packet.c (parse_photo_id): New.
8074         * build-packet.c (do_user_id: Handle photo IDs.
8075         (build_packet): Change CTB for photo IDs
8076         * free-packet.c (free_user_id): Release memory used for photo IDs
8077         * sig-check.c (hash_uid_node): Handle photo IDs too.
8078         * trustdb.c (print_uid_from_keyblock): Hash photo ID.
8079         (make_uid_records): Ditto.
8080         * getkey.c (find_by_name): Ditto.
8081         * keyedit.c (show_prefs): Ditto.
8082         * keylist.c (list_keyblock): Ditto.
8084 Thu Oct 28 16:08:20 CEST 1999  Werner Koch  <wk@gnupg.de>
8086         * keygen.c (ask_expire_interval): Print a warning for systems
8087         with a signed 32 time_t if the exiration time is beyoind 2038.
8089 Fri Oct  8 20:40:50 CEST 1999  Werner Koch  <wk@gnupg.de>
8091         * ringedit.c (enum_keyblocks): The last fix way really stupid;
8092         reverted and set rt to Unknown.
8094 Fri Oct  8 20:32:01 CEST 1999  Werner Koch  <wk@gnupg.de>
8096         * ringedit.c (enum_keyblocks): Zero the entire kbpos out on open.
8098         * g10.c (oEntropyDLL): Removed option.
8099         (main): Made the warning on development versions more verbose.
8101         * g10.c (oHonorHttpProxy): New option.
8102         * hkp.c (hkp_ask_import,hkp_export): Implement this option.
8103         * options.skel: Enable this option for new installations
8105 Mon Oct  4 21:23:04 CEST 1999  Werner Koch  <wk@gnupg.de>
8107         * import.c (import_keys): Changed calling interface, adjusted caller.
8108         (import): Moved printing of stats out ...
8109         (print_stats): New. ... to here.
8110         (import_keys_stream): Call stats print here.
8111         (import_keys): Print stats as totals for all files.
8113         * tdbio.h (DIRF_NEWKEYS): New
8114         * tdbio.c (tdbio_dump_record): Print the new flag.
8115         * trustdb.c (check_trust_record): New arg sigs_only.  Adapted all
8116         callers.
8117         (do_update_trust_record): Removed recheck arg and add a new sigs_only
8118         do we can later improve on the performance.  Changed all callers too.
8119         (check_trustdb): Evalutate the new flag and add a status output.
8120         Do a check when the dir record has not been checked.
8121         (build_cert_tree): Evaluate the new flag.
8122         (check_trust): Ditto.  Do a trust_record check, when the dir record
8123         is not marked as checked.
8124         (mark_fresh_keys): New.
8125         (clear_lid_table): New.
8126         (sync_trustdb): New.
8127         * import.c (import_keys): Call sync_trustdb() after processing.
8128         (import_keys_stream): Ditto.
8129         * tdbdump.c (import_ownertrust): Ditto.
8131         * import.c (import_revoke_cert): Notify the trust DB.
8132         (do_update_trust_record): Use |= to set the REVOKED bit and not &=;
8133         shame on me for this bad copy+paste introduced bug.
8134         (do_we_trust): Add trustmask to allow revoked key override to work.
8135         Chnaged are to allow return of a mofified trustlevel. Adapted the
8136         one caller.
8138         * g10.c: New options --emulate-3des-s2k-bug
8139         * passphrase.c (hash_passphrase): Implemented above.
8141         * mainproc.c (proc_tree): Check for standalone signatures.
8142         (do_check_sig): Print a notice for a standalone revocation
8143         (check_sig_and_print): Do not print an error for unchecked standalone
8144         revocations.
8146 Tue Sep 28 20:54:37 CEST 1999  Werner Koch  <wk@gnupg.de>
8148         * encode.c (encode_simple): Use new CTB when we don't have the
8149         length of the file.  This is somewhat strange as the comment above
8150         indicates that this part is actually fixed for PGP 5 - maybe I simply
8151         lost the source line, tsss.
8153         * armor.c (armor_filter): Set a flag if no OpenPGP data has been found.
8154         * verify.c (verify_signatures): Add an error helptext.
8156 Thu Sep 23 19:24:30 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8158         * openfile.c (open_outfile): Fixed the 8dot3 handling.
8160         * passphrase.c (passphrase_to_dek): Print uid using utf8 func.
8161         * delkey.c (delete_key): Ditto.
8162         * pkclist.c (show_paths,do_edit_ownertrust,do_we_trust): Ditto
8163         (do_we_trust_pre): Ditto.
8164         * trustdb.c (print_user_id,check_uidsigs): Ditto.
8165         * revoke.c (gen_revoke,ask_revoke_sig): Ditto.
8167 Thu Sep 23 09:52:58 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8169         * verify.c (print_file_status): New.
8170         (verify_one_file): Moved status print to th new fnc. Add error status.
8171         * status.c, status.h (STATUS_FILE_ERROR): New
8173 Wed Sep 22 10:14:17 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8175         * openfile.c (make_outfile_name): Use case-insenstive compare for
8176         DOS systems.  Add ".pgp" to the list of know extensions.
8177         (open_outfile): For DOS systems try to replace the suffiy instead of
8178         appending it.
8180         * status.c, status.h: Add STATUS_FILE_{START,DONE}.
8181         * verify.c (verify_one_file): Emit these new stati.
8183         * sign.c (clearsign_file): Avoid duplicated Entries in the "Hash:"
8184         line.  Those headers are now only _not_ printed when there are
8185         only old-style keys _and_ all hashs are MD5.
8187 Mon Sep 20 12:24:41 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8190         * verify.c (verify_files, ferify_one_file): New.
8191         * g10.c:  New command --verify-files
8193 Fri Sep 17 12:56:42 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8195         * g10.c: Add UK spelling as alias for armor options ;-)
8197         * import.c (append_uid): Fixed a SEGV when there is no selfsig and
8198         no subkey.
8199         (merge_sigs): Ditto.  Removed the assertion.
8201 Wed Sep 15 16:22:17 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8203         * g10.c: New option --entropy-dll-name
8205 Mon Sep 13 10:51:29 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8207         * signal.c (got_fatal_signal): Print message using write(2) and
8208         only for development versions.
8210 Mon Sep  6 19:59:08 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8212         * tdbio.c (tdbio_set_dbname): Use mkdir macro
8213         * ringedit.c (add_keyblock_resource): Ditto.
8215 Fri Sep  3 10:04:45 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8217         * pkclist.c (build_pk_list): Skip keys set with --encrypt-to also
8218         when asking for a key.
8220         * plaintext.c (handle_plaintext): Make sure that we don't read a
8221         second EOF in the read loop for partial length packets.
8223         * mainproc.c (check_sig_and_print): print user ID as utf-8.
8225 Thu Sep  2 16:40:55 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8227         * import.c (merge_blocks): First add new subkeys, then merge subkey
8228         certificates.
8229         (merge_sigs): Don't merge subkey signatures here.
8231 Wed Sep  1 15:30:44 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8233         * keygen.c (ask_expire_interval): Fixed bug related to cpr_xx (tnx
8234         Francis J. Lacoste).
8236 Tue Aug 31 17:20:44 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8238         * plaintext.c (do_hash): Hash CR,LF for a single CR.
8239         (ask_for_detached_datafile): Changed arguments to be closer to
8240         those of hash_datafiles and cleanup the code a bit.
8241         * mainproc.c (proc_tree): Workaround for pgp5 textmode detached
8242         signatures.  Changed behavior of asking for data file to be the same
8243         as with provided data files.
8245         * keylist.c (list_keyblock): Use UTF8 print functions.
8247 Mon Aug 30 20:38:33 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8249         * import.c (chk_self_sigs): some s/log_error/log_info/ so that gpg
8250         does not return an error if a key has some invalid packets.
8252         * helptext.c: Fixed some typos and changed the way the
8253         translation works.  The english text is now the keyword for gettext
8254         and not anymore the keyword supplied to the function.  Done after
8255         some discussion with Walter who thinks this is much easier for the
8256         translators.
8258         * misc.c (disable_core_dumps): Don't do it for DOSish systems.
8260         * signal.c (signal_name): Bounds check on signum.
8262 Wed Aug  4 10:34:18 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8264         * pubring.asc: Updated.
8266         * pkclist.c (do_we_trust_pre,check_signatures_trust): Do not print
8267         the warning about --always_trust when --quiet is used.
8269         * pkclist.c (fpr_info): New and called at several places.
8271         * parse-packet.c (dump_sig_subpkt): List revocation key contents.
8273 Mon Jul 26 09:34:46 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8275         * pkclist.c (build_pk_list): Fixed typo in format string.
8277         * trustdb.c (create_shadow_dir): Don't translate the error string.
8279         * g10.c (main): Fixed spelling of user-id.
8280         * getkey.c (find_by_name_pk,find_by_name_sk,
8281         find_by_keyid,find_by_keyid_sk): Ditto and translate it.
8282         * import.c (mark_non_selfsigned_uids_valid,delete_inv_parts): Ditto.
8285 Mon Jul 26 01:01:39 CEST 1999  Michael Roth <mroth@nessie.de>
8287         * g10.c, options.h: New options --no-literal and --set-filesize
8289         * encode.c (encode_simple, encode_crypt): Support for the options
8290         --no-literal and --set-filesize.
8292         * sign.c (sign_file): ditto.
8294 Fri Jul 23 13:53:03 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8297         * ringedit.c (enum_keyblocks): Removed annoying error message in cases
8298         when we have no keyring at all to enum.
8300         * getkey.c (classify_user_id): Rewrote to relax the recognition of
8301         keyIDs and fingerprints (Michael).
8303         * mainproc.c (check_sig_and_print): Print status NO_PUBKEY.
8304         (print_failed_pkenc): Print status NO_SECKEY.
8306         * import.c (mark_non_selfsigned_uids_valid): New.
8307         * g10.c: New option --allow-non-selfsigned-uid.
8309         * pkclist.c (print_fpr): New.
8310         (do_we_trust_pre): Print the fpr before asking whether to use the key
8311         anyway.
8312         (do_edit_ownertrust): Likewise.
8314 Thu Jul 22 20:03:03 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8317         * ringedit.c (enum_keyblocks): Removed annoying error message in cases
8318         when we have no keyring at all to enum.
8320         * getkey.c (classify_user_id): Rewrote to relax the recognition of
8321         keyIDs and fingerprints (Michael).
8323         * mainproc.c (check_sig_and_print): Print status NO_PUBKEY.
8324         (print_failed_pkenc): Print status NO_SECKEY.
8326         * import.c (mark_non_selfsigned_uids_valid): New.
8327         * g10.c: New option --allow-non-selfsigned-uid.
8329 Thu Jul 15 10:15:35 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8331         * g10.c: New options --disable-{cipher,pubkey}-algo.
8333 Wed Jul 14 19:42:08 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8335         * status.h (STATUS_IMPORTED): New.
8336         * import.c (import): Print some status information (Holger Schurig).
8338         * g10.c (main): Make --no-greeting work again. Add a warning when
8339         --force-mds is used.
8341 Tue Jul 13 17:39:25 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8343         * pkclist.c (do_edit_ownertrust): Changed the way help works.
8344         (build_pk_list): Implemented default recipient stuff.
8345         * g10.c: New options --default-recipient[-self]
8346         (main): Suppress greeting in most cases, entering a passphrase or
8347         a missing value is not considered to be interactive use.
8348         Merged --print-md and --print-mds; the latter is now obsolete.
8349         Changed the way --gen-random works and documented it.
8350         Changed the way --gen-prime works and add a man entry.
8351         * g10.c (MAINTAINER_OPTIONS): Removed.
8353 Mon Jul 12 18:45:57 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8355         * keyedit.c (keyedit_menu): Add arg sign_mode and changed callers
8356         * g10.c (main): New command --lsign-key.
8358 Mon Jul 12 14:55:34 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8360         * mainproc.c (kidlist_item): New.
8361         (release_list): Release failed pk-enc-list.
8362         (print_failed_pkenc): New
8363         (proc_encrypted): Print info about failed PK enc.
8365         * openfile.c (make_outfile_name): s/error/info/
8367         * passphrase.c (passphrase_to_dek): Return an empty passphrase when
8368         in batch mode and don't make the warning message fatal
8369         * seckey-cert.c (check_secret_key): Try only once when in batch mode.
8371         * g10.c (make_username): New.
8373 Thu Jul  8 16:21:27 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8376         * packet.h (PKT_ring_trust): New
8377         * parse-packet.c (parse_trust): Store trust value
8378         * build-packet (build_packet): Ignore ring trust packets.
8379         * mainproc.c (add_ring_trust): New.
8380         (list_node): Print "rtv" records.
8381         * g10.c: New option --with-fingerprint.
8383         * trustdb.c (verify_own_keys): Don't insert if we are dry running
8384         (check_trust): Ditto.
8386 Wed Jul  7 13:08:40 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8388         * Makefile.am: Support for libtool.
8390         * keygen.c (ask_expire_interval): Hack to allow for an expire date.
8392         * trustdb.c (do_update_trust_record,update_trust_record): Splitted.
8393         (check_trust_record): New.
8394         (check_trust,build_cert_tree): Check the dir record as needed.
8395         (upd_pref_record): Removed.
8396         (make_pref_record): New.
8397         (propagate_validity): Stop as soon as we have enough validity.
8399         * tbdio.c (MAX_CACHE_ENTRIES_HARD): Increased the limit.
8402 Fri Jul  2 11:45:54 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8404         * g10.c (g10_exit): Dump random stats.
8406         * sig-check.c (check_key_signature,check_key_signature2): Enhanced
8407         version and wrapper for old function.
8408         (do_signature_check,signature_check): Ditto.
8410 Thu Jul  1 12:47:31 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8413         * keyedit.c (show_key_with_all_names): Print a notice for disabled keys.
8414         (enable_disable_keys): Add functionality
8415         * pkclist.c (edit_ownertrust): preserve disabled state.
8416         (build_pk_list): Skip disabled keys.
8417         * trustdb.c (upd_one_ownertrust): Ditto.
8418         (build_cert_tree): Mask the ownertrust.
8419         (trust_letter): Mask the value.
8420         (do_check): Take disabled flag into account.
8422         * passphrase.c (passphrase_to_dek): Add a pubkey_algo arg and changed
8423         all callers.
8425         * g10.c (utf8_strings): 2 new options.
8427         * trustdb.c (insert_trust_record_by_pk): New, replaces the next one.
8428         (insert_trust_record): Now takes a keyblock as arg.  Changed all
8429         callers to use the appropritae function.
8431         * openfile.c (ask_outfile_name): New.
8432         * plaintext.c (handle_plaintext): Ask for filename if there is
8433         no valid syntax. Don't use fname varbatim but filter it.
8435 Tue Jun 29 21:44:25 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8438         * trustdb.h (TRUST_FLAG_DISABLED): New.
8440         * status.c (USE_CAPABILITIES): Capabilities support (Remi).
8442         * tdbio.c : Added new fields to the DIR record.
8443         (tdbio_write_record): Fixed the update of the hash tables.
8444         (tdbio_delete_record): Drop the record from the hash tables.
8445         (drop_from_hashtbl): New.
8447         * status.c (cpr_get): Special online help mode.
8448         * helptext.c ("keyedit.cmd"): Removed.
8449         * keyedit.c (keyedit_menu): Use only help system.
8450         (enable_disable_key): New bit doies not yet work.
8452 Sat Jun 26 12:15:59 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8455         * dearmor.c (enarmor_file): Fixed comment string.
8456         * tdbdump.c (export_ownertrust): Text fix.
8457         * tbio.c (tdbio_invalid): Ditto.
8459         * parse-packet.c (parse_key): Made temp buffer larger.
8461         * Makefile.am (install-data-local): Add missing backslashes
8463 Tue Jun 15 12:21:08 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8465         * g10.c (main): Made iterated+salted the default S2K method.
8467         * Makefile.am (install-data-local): Use DESTDIR.
8469         * passphrase.c (passphrase_to_dek): Emit missing-passphrase while in
8470         batchmode.
8472         * parse-packet.c (parse_pubkeyenc): Fixed a SEGV.
8474 Mon Jun 14 21:18:54 CEST 1999 Michael Roth <mroth@nessie.de>
8476         * g10.c: New options --openpgp, --no-tty, --emit-version,
8477           --default-comment and --lock-multiple
8479 Thu Jun 10 14:18:23 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8481         * free-packet.c (free_encrypted): Fixed EOF case (Remi).
8482         (free_plaintext): Ditto.
8484         * helptext.c (keyedit.delsig.unknown): New (Remi).
8485         * keyedit.c (print_and_check_one_sig): Add arg print_without_key and
8486         changed all callers to make use of it (Remi):
8488 Tue Jun  8 13:36:25 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8490         * keylist.c (print_key_data): New and called elsewhere.
8491         * g10.c: New option --with-key-data
8493 Wed Jun  2 14:17:19 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8495         * mainproc.c (proc_tree): Yet another bad hack to cope with
8496         broken pgp2 created detached messages in textmode.
8498 Tue Jun  1 16:01:46 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8500         * openfile.c (make_outfile_name): New.
8501         * plaintext.c (handle_plaintext): Outputfile is now the inputfile
8502         without the suffix.
8503         * g10.c: New option --use-embedded-filename
8505 Mon May 31 19:41:10 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8507         * g10.c (main): Fix for SHM init (Michael).
8509         * compress.c, encr-data.c, mdfilter.c,
8510           plaintext.c, free-packet.c: Speed patches (Rémi).
8512 Thu May 27 09:40:55 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8514         * status.c (cpr_get_answer_yes_no_quit): New.
8515         * keyedit.c (menu_delsig): New.
8516         (check_all_keysigs): Splitted.
8517         (print_and_check_one_sig): New.
8519 Wed May 26 14:36:29 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8521         * build-packet.c (build_sig_subpkt): Support large packets.
8522         * parse-packet.c (enum_sig_subpkt): Replaces parse_sig_subpkt.
8523         * mainproc.c (print_notation_data): Print all notation packets.
8524         * g10.c (add_notation_data): Add a way to specify the critical flag.
8525         (main): Add option --set-policy-url.
8526         (check_policy_url): Basic checks.
8527         * sign.c (mk_notation_and_policy): Replaces mk_notation.
8529         * parse-packet.c (can_handle_critical): Moved decision whether we can
8530         handle critical subpacket to an extra function.
8532 Tue May 25 19:50:32 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8534         * sign.c (sign_file): Always use compression algo 1 for signed
8535         onyl file becuase we can´ be sure the the verifier supports other
8536         algorithms.
8538         * build-packet.c (build_sig_subpkt): Support for notation data.
8539         * sign.c (sign_file,clearsign_file,make_keysig_packet): Ditto.
8540         (mk_notation): New.
8541         * g10.c (add_notation_data): New and add option -N
8542         * mainproc.c (print_notation_data): New.
8543         (check_sig_and_print): Print any notation data of the signed text.
8545 Sun May 23 14:20:22 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8547         * pkclist.c (check_signatures_trust): Print a warning and return
8548         immediateley if opt.always_trust is true.
8550         * g10.c (main): Corrected handling of no-default-keyring
8552         * pkclist.c (algo_available): Disable Twofish until we have settled
8553         how to do the MDC.
8555         * hkp.c: Disable everything for mingw32
8557 Sat May 22 22:47:26 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8559         * mainproc.c (check_sig_and_print): Add sig creation time to the
8560         VALIDSIG status output. Add more info to the ERRSIG output.
8561         * sig-check.c (signature_check): Add sig time after epoch to SIG_ID.
8563         * import.c (import_one): Merge duplicate user IDs.
8564         (collapse_uids): New.
8565         * kbnode.c (move_kbnode): New.
8566         (remove_kbnode): New.
8567         * keyedit.c (keyedit_menu): Call collapse_uids.
8569         * g10.c: new option --logger-fd.
8571         * import.c: s/log_*_f/log_*/
8573 Thu May 20 14:04:08 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8575         * misc.c (pull_in_libs): do the volatile only for gcc
8577         * sig-check (signature_check): Emit SIG_iD only for classes 0 and 1.
8579         * armor.c (armor_filter): Add detection of PGP2 created clearsigs.
8580         (fake_packet): A tab is not a WS for pgp2 - handle this.
8581         * textfilter.c (len_without_trailing_chars): New.
8582         (copy_clearsig_text): Add pgp2mode arg.
8583         * sign.c (clearsign_file): pass old_style to the above fnc.
8586 Wed May 19 16:04:30 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8588         * g10.c: New option --interactive.
8590         * mainproc.c (proc_plaintext): Add workaround for pgp2 bug
8591         (do_check_sig): Ditto.
8592         (proc_tree): Ditto.
8593         * plaintext.c (do_hash): Ditto.
8594         (hash_datafiles): Ditto, add an arg, changed all callers.
8595         * mdfilter.c (md_filter): Add support for the alternate hash context.
8597 Mon May 17 21:54:43 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8599         * parse-packet.c (parse_encrypted): Support for PKT_ENCRYPTED_MDC.
8600         * build-packet.c (do_encrypted_mdc): Ditto.
8601         * cipher.c (write_header): Add mdc hashing.
8602         (cipher_filter): write out the hash.
8603         * mainproc.c (do_proc_packets): Add PKT_ENCRYPTED_MDC.
8604         * encr-data.c (decrypt_data): Add mdc hashing.
8605         (mdc_decode_filter): New.
8607         * parse-packet.c (parse_sig_subpkt): Fixed stupid bug for subpkt
8608         length calculation
8609         (parse_signature): Fixed even more stupid bug.
8611 Sat May  8 19:28:08 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8613         * build-packet.c (do_signature): Removed MDC hack.
8614         * encode.c (encode_crypt_mdc): Removed.
8615         * mainproc.c (do_check_sig): Removed MDC hack.
8616         (check_sig_and_print): Ditto.
8617         * parse-packet.c (parse_signature): Ditto.
8618         * sig-check.c (mdc_kludge_check): Ditto.
8619         * free-packte.c (copy_signature, free_seckey_enc): Ditto.
8621         * parse-packet.c (parse_signature,parse_key): Store data of
8622         unknown algorithms with mpi_set_opaque inseatd of the old
8623         faked data stuff.
8624         (read_rest): Removed.
8625         (read_rest2): Renamed to read_rest
8626         * build-packet.c (write_fake_data): Use mpi_get_opaque.
8627         * free-packet.c (cp_fake_data): Removed and cahnged all callers
8628         to use mpi_copy.
8629         (free_pubkey_enc,free_seckey_enc,release_public_key_parts,
8630          release_secret_key_parts): Use mpi_free for opaque data.
8632 Thu May  6 14:18:17 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8634         * trustdb.c (check_trust): Check for revoked subkeys.
8635         * pkclist.c (do_we_trust): Handled revoked subkeys.
8636         (do_we_trust_pre): Ditto.
8637         (check_signatures_trust): Ditto.
8639         * build-packet.c (hash_public_key): Fix for ancient g10 keys.
8641         * mainproc.c (do_proc_packets): Return EOF if no data has been read.
8642         * g10.c (main): Catch errors for default operation.
8644 Thu Apr 29 12:29:22 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8646         * sign.c (sign_file): Fixed hashing in case of no subpackets.
8647         (clearsign_file): Ditto.
8648         (make_keysig_packet): Ditto.
8650 Wed Apr 28 13:03:03 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8652         * keyedit.c (keyedit_menu): Add new command revkey.
8653         * (menu_revkey): New.
8656 Mon Apr 26 17:48:15 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8658         * parse-packet.c (parse_signature): Add the MDC hack.
8659         * build-packet.c (do_signature): Ditto.
8660         * free-packet.c (free_seckey_enc,copy_signature,cmp_signatures): Ditto.
8661         * mainproc.c (do_check_sig): Ditto.
8662         * sig-check.c (mdc_kludge_check): New.
8663         * encode.c (encrypt_mdc_file): New.
8665         * keyedit.c (check_all_keysigs): List revocations.
8666         * (menu_revsig): New.
8667         * sign (make_keysig_packet): Support for class 0x30.
8669 Sun Apr 18 20:48:15 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8671         * pkclist.c (select_algo_from_prefs): Fixed the case that one key
8672         has no preferences (Remi Guyomarch).
8674         keylist.c (list_keyblock): ulti_hack to propagate trust to all uids.
8676 Sun Apr 18 10:11:28 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8678         * seckey-cert.c (do_check): Use real IV instead of a 0 one, so that
8679         it works even if the length of the IV doesn't match the blocksize.
8680         Removed the save_iv stuff.
8681         (protect_secret_key): Likewise.  Create the IV here.
8682         * packet.h (PKT_secret_key): Increased size of IV field and add a
8683         ivlen field.
8684         * parse-packet.c (parse_key): Use the len protect.ivlen.
8685         * build-packet.c (do_secret_key). Ditto.
8687         * getkey.c (key_byname): Close keyblocks.
8689         * Makefile.am (gpgm): Removed this
8690         * g10.c: Merged gpg and gpgm
8692         * import.c (import): Utilize option quiet.
8693         * tdbio.c (tdbio_set_dbname): Ditto.
8694         * ringedit.c (add_keyblock_resource,keyring_copy): Ditto.
8696         * keyedit.c (sign_uids): Add some batch support.
8698         * g10.c (main): add call to tty_batchmode.
8700 Fri Apr  9 12:26:25 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8702         * status.c (write_status_text): Some more status codes.
8703         * passphrase_to_dek (passphrase_to_dek): add a status code.
8704         * seckey_cert.c (check_secret_key): Likewise.
8706         * encr-data.c (decrypt_data): Reverse the last changes
8707         * cipher.c (write_header): Ditto.
8709         * parse-packet.c (parse_key): Dropped kludge for ancient blowfish mode.
8711 Thu Apr  8 09:35:53 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8713         * mainproc.c (proc_encrypted): Add a new status output
8714         * passphrase.c (passphrase_to_dek): Ditto.
8715         * status.h status.c: Add new status tokens.
8717 Wed Apr  7 20:51:39 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8719         * encr-data.c (decrypt_data): Fixes for 128 bit blocksize
8720         * cipher.c (write_header): Ditto.
8721         * seckey-cert.c (do_check): Ditto.
8722         (protect_secret_key). Ditto.
8723         * misc.c (print_cipher_algo_note): Twofish is now a standard algo.
8725         * keygen.c (do_create): Fixed spelling (Gaël Quéri)
8726         (ask_keysize): Only allow keysizes up to 4096
8728         * ringedit.c (add_keyblock_resource): chmod newly created secrings.
8730         * import.c (delete_inv_parts): Fixed accidently deleted subkeys.
8732 Tue Apr  6 19:58:12 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8734         * armor.c: Removed duped include (John Bley)
8735         * mainproc.c: Ditto.
8737         * build-packet.c (hash_public_key): Fixed hashing of the header.
8739         * import.c (delete_inv_parts): Allow import of own non-exportable sigs.
8741 Sat Mar 20 13:59:47 CET 1999  Werner Koch  <wk@isil.d.shuttle.de>
8743         * armor.c (fake_packet): Fix for not not-dash-escaped
8745 Sat Mar 20 11:44:21 CET 1999  Werner Koch  <wk@isil.d.shuttle.de>
8747         * g10.c (main): Added command --recv-keys
8748         * hkp.c (hkp_import): New.
8750 Wed Mar 17 13:09:03 CET 1999  Werner Koch  <wk@isil.d.shuttle.de>
8752         * trustdb.c (check_trust): add new arg add_fnc and changed all callers.
8753         (do_check): Ditto.
8754         (verify_key): Ditto.
8755         (propagate_validity): Use the new add_fnc arg.
8756         (print_user_id): Add the FILE arg.
8757         (propagate_ownertrust): New.
8758         * pkclist.c (add_ownertrust_cb): New and changed the add_ownertrust
8759         logic.
8761         * getkey.c (get_keyblock_bylid): New.
8762         * trustdb.c (print_uid_from_keyblock): New.
8763         (dump_tn_tree_with_colons): New.
8764         (list_trust_path): Add colon print mode.
8766         * trustdb.c (insert_trust_record): Always use the primary key.
8768         * encode.c (encode_simple): Added text_mode filter (Rémi Guyomarch)
8769         (encode_crypt): Ditto.
8771         * mainproc.c (proc_pubkey_enc): Added status ENC_TO.
8772         * armor.c (armor_filter): Added status NODATA.
8773         * passphrase.c (passphrase_to_dek): Always print NEED_PASSPHRASE
8774         * seckey_cert.c (check_secret_key): Added BAD_PASS status.
8776         * g10.c (main): Set g10_opt_homedir.
8778 Sun Mar 14 19:34:36 CET 1999  Werner Koch  <wk@isil.d.shuttle.de>
8780         * keygen.c (do_create): Changed wording of the note (Hugh Daniel)
8782 Thu Mar 11 16:39:46 CET 1999  Werner Koch  <wk@isil.d.shuttle.de>
8784         * tdbdump.c: New
8786         * trustdb.c (walk_sigrecs,do_list_sigs,list_sigs,
8787         list_records,list_trustdb,export_ownertrust,import_ownertrust): Moved
8788         to tdbdump.c
8789         (init_trustdb): renamed to setup_trustdb.  Changed all callers.
8790         (do_init_trustdb): renamed to init_trustdb().
8791         * trustdb.c (die_invalid_db): replaced by tdbio_invalid.
8792         * tdbio.c (tdbio_invalid): New.
8794         * import.c (delete_inv_parts): Skip non exportable signatures.
8795         * keyedit.c (sign_uid_mk_attrib): New.
8796         (sign_uids): Add the local argument.
8797         (keyedit_menu): New "lsign" command.
8798         * trustdb.c (register_trusted_key): Removed this and all related stuff.
8799         * g10.c (oTrustedKey): Removed option.
8801         * tdbio.h (dir.valcheck): New trustdb field.
8802         * tdbio.c: Add support for this field
8803         (tdbio_read_modify_stamp): New.
8804         (tdbio_write_modify_stamp): New.
8805         * trustdb.c (do_check): Check against this field. Removed cache update.
8806         (verify_key): Add cache update.
8807         (upd_uid_record): Some functional changes.
8808         (upd_cert_record): Ditto
8810 Wed Mar 10 11:26:18 CET 1999  Werner Koch  <wk@isil.d.shuttle.de>
8812         * keylist.c (list_keyblock): Fixed segv in uid. Print 'u' as
8813         validity of sks.
8815 Mon Mar  8 20:47:17 CET 1999  Werner Koch  <wk@isil.d.shuttle.de>
8817         * getkey.c (classify_user_id): Add new mode 12 (#<lid>).
8819         * seckey-cert.c (check_secret_key): replaced error by info.
8821         * trustdb.c (query_trust_info): Add another arg, changed all callers.
8822         (check_trust): Ditto.
8823         (do_check): Ditto.
8824         (verify_key): Handle namehash.
8825         * keylist.c (list_keyblock): print trust info for user ids.
8827         * sig-check.c (signature_check): Add sig-created to status output.
8829 Tue Mar  2 16:44:57 CET 1999  Werner Koch  <wk@isil.d.shuttle.de>
8831         * textfilter.c (copy_clearsig_text): New.
8832         (clearsign): Removed.
8833         * sign.c (clearsign_file): does not use textfiler anymore.
8835         * keygen.c (ask_user_id): print a note about the used charset.
8837 Tue Mar  2 10:38:42 CET 1999  Werner Koch  <wk@isil.d.shuttle.de>
8839         * sig-check.c (signature_check): sig-id now works for all algos.
8841         * armor.c (armor_filter): Fixed armor bypassing.
8843 Sun Feb 28 19:11:00 CET 1999  Werner Koch  <wk@isil.d.shuttle.de>
8845         * keygen.c (ask_user_id): Don't change the case of email addresses.
8846         (has_invalid_email_chars): Adjusted.
8848         * keylist.c (list_one): Really list serect keys (Remi Guyomarch)
8850         * keyedit.c (menu_select_uid): Add some braces to make egcs happy.
8851         (menu_select_key): Ditto.
8853         * mainproc.c (do_proc_packets): List sym-enc packets (Remi Guyomarch)
8855 Fri Feb 26 17:55:41 CET 1999  Werner Koch  <wk@isil.d.shuttle.de>
8857         * pkclist.c (build_pk_list): Return error if there are no recipients.
8859         * sig-check.c (signature_check): New signature id feature.
8860         * armor.c (make_radic64_string): New.
8862         * mainproc.c (proc_pubkey_enc): early check for seckey availability.
8864         * pkclist.c (do_we_trust_pre): print user id before asking.
8866         * ringedit.c (add_keyblock_resource,get_keyblock_handle): Cleaner
8867         handling of default resource.
8870 Thu Feb 25 18:47:39 CET 1999  Werner Koch  <wk@isil.d.shuttle.de>
8872         * pkclist.c (algo_available): New.
8873         (select_algo_from_prefs): Check whether algo is available.
8875         * ringedit.c (keyring_copy): Take care of opt.dry_run.
8876         (do_gdbm_store): Ditto.
8877         * openfile.c (open_outfile). Ditto.
8878         (copy_options_file): Ditto.
8879         * trustdb.c (update_trustdb): Ditto.
8880         (clear_trust_checked_flag): Ditto.
8881         (update_trust_record): Ditto.
8882         (insert_trust_record): Ditto.
8884 Wed Feb 24 11:07:27 CET 1999  Werner Koch  <wk@isil.d.shuttle.de>
8886         * keylist.c (secret_key_list): Now really list the secret key.
8888         * trustdb.c (do_init_trustdb): New. Init is now deferred.
8890 Mon Feb 22 20:04:00 CET 1999  Werner Koch  <wk@isil.d.shuttle.de>
8892         * getkey.c (lookup_sk): Return G10ERR_NO_SECKEY and not x_PUBKEY.
8894 Fri Feb 19 15:49:15 CET 1999  Werner Koch  <wk@isil.d.shuttle.de>
8896         * pkclist.c (select_algo_from_prefs): retrieve LID if not there.
8898         * armor.c (fake_packet): Replaced ugly lineending handling.
8900         * g10.c (oNoEncryptTo): New.
8901         * pkclist.c (build_pk_list): Implemented this option.
8903         * g10.c (main): Greeting is now printed to stderr and not to tty.
8904         Use add_to_strlist() instead of direct coding.
8906         * import.c (import): Use iobuf_push_filter2.
8908         * mainproc.c (check_sig_and_print): Print all user ids
8909         for good signatures.
8910         * getkey.c (get_pubkeyblock): New.
8912         * import.c (chk_self_sigs): Fixed SEGV for unbounded class 0x18 keys.
8913         (delete_inv_parts): Delete special marked packets.
8915 Tue Feb 16 14:10:02 CET 1999  Werner Koch  <wk@isil.d.shuttle.de>
8917         * g10.c (main): New option --encrypt-to
8919         * pkclist.c (build_pk_list): Implemented encrypt-to.
8921         * parse-packet.c (parse_user_id): Removed the hack to work with
8922         utf-8 strings.
8924         * g10.c (main): Install lockfile cleanup handler.
8925         * tdbio.c (cleanup): Removed: this is now handled by dotlock.
8927 Sat Feb 13 14:13:04 CET 1999  Werner Koch  <wk@isil.d.shuttle.de>
8929         * tdbio.c (tdbio_set_dbname): Init lockhandle for a new trustdb
8931 Wed Feb 10 17:15:39 CET 1999  Werner Koch  <wk@isil.d.shuttle.de>
8933         * g10.c (main): check for development version now in configure
8935         * tdbio.c (tdbio_write_record): Add uid.validity
8936         (tdbio_read_record) : Ditto.
8937         (tdbio_dump_record) : Ditto.
8939         * keygen.c (keygen_add_std_prefs): Replaced Blowfish by Twofish,
8940         removed MD5 and Tiger.
8941         * pubkey-enc.c (get_it): Suppress warning about missing Blowfish
8942         in preferences in certain cases.
8944         * ringedit.c (lock_rentry,unlock_rentry): New.
8946         * getkey.c (key_byname): Pass ret_kb down to lookup_xx.
8948         * armor.c (armor_filter): No output of of empty comment lines.
8949         Add option --no-version to suppress the output of the version string.
8951         * getkey.c: Release the getkey context for auto context variables.
8953 Sun Jan 24 18:16:26 CET 1999  Werner Koch  <wk@isil.d.shuttle.de>
8955         * getkey.c: Changed the internal design to allow simultaneous
8956         lookup of multible user ids
8957         (get_pubkey_bynames): New.
8958         (get_seckey_bynames): New.
8959         (get_seckey_next): New.
8960         (get_seckey_end): New.
8961         * keylist.c (list_one): Use the new functions.
8963         * keylist.c (list_keyblock): add a newline for normal listings.
8965         * g10.c (--recipient): New option name to replace --remote-user
8968 Wed Jan 20 18:59:49 CET 1999  Werner Koch  <wk@isil.d.shuttle.de>
8970         * textfilter.c: Mostly rewritten
8971         * plaintext.c (handle_plaintext): Use now text_filter semantics.
8973 Tue Jan 19 19:34:58 CET 1999  Werner Koch  <wk@isil.d.shuttle.de>
8975         * export.c (export_pubkeys_stream): New.
8976         (do_export_stream): New.
8977         * g10.c (aSendKeys): New command.
8978         * hkp.c (hkp_export): New.
8980         * compress.c (do_uncompress): Hack for algo 1 and 1.1.3
8982 Sun Jan 17 11:04:33 CET 1999  Werner Koch  <wk@isil.d.shuttle.de>
8984         * textfilter.c (text_filter): Now uses iobuf_read_line().
8985         (read_line): Removed.
8987         * armor.c (trim_trailing_spaces): Removed and replaced
8988         by trim_trailing_ws from libutil
8990 Sat Jan 16 12:03:27 CET 1999  Werner Koch  <wk@isil.d.shuttle.de>
8992         * hkp.c (hkp_ask_import): Use only the short keyid
8994 Sat Jan 16 09:27:30 CET 1999  Werner Koch  <wk@isil.d.shuttle.de>
8996         * import.c (import_key_stream): New
8997         (import): New, moved most of import_keys here.
8998         * g10.c: New option --keyserver
8999         * mainproc.c (check_sig_and_print): Hook to import a pubkey.
9001         * pref.c pref.h : Removed
9003         * hkp.c hkp.h: New
9005 Wed Jan 13 14:10:15 CET 1999  Werner Koch  <wk@isil.d.shuttle.de>
9007         * armor.c (radix64_read): Print an error if a bad armor was detected.
9009 Wed Jan 13 12:49:36 CET 1999  Werner Koch  <wk@isil.d.shuttle.de>
9011         * armor.c (radix64_read): Now handles malformed armors produced
9012         by some buggy MUAs.
9014 Tue Jan 12 11:17:18 CET 1999  Werner Koch  <wk@isil.d.shuttle.de>
9016         * ringedit.c (find_keyblock_bysk): New.
9018         * skc_list.c (is_insecure): New.
9019         (build_sk_list): usage check for insecure keys.
9021         * import.c (chk_self_sigs): Add handling for subkeys.
9022         (delete_inv_parts): Skip unsigned subkeys
9024         * sig-check.c (do_check): Print info if the signature is older
9025         than the key.
9026         * keygen.c (generate_subkeypair): Fail on time warp.
9027         * sign.c (do_sign): Ditto.
9029 Sun Jan 10 15:10:02 CET 1999  Werner Koch  <wk@isil.d.shuttle.de>
9031         * armor.c (fake_packet): Fixed not-dash-escaped bug.
9033 Sat Jan  9 16:02:23 CET 1999  Werner Koch  <wk@isil.d.shuttle.de>
9035         * sig-check.c (do_check): Output time diff on error
9037         * status.c (STATUS_VALIDSIG): New.
9038         (is_status_enabled): New.
9039         * mainproc.c (check_sig_and_print): Issue that status message.
9041         * plaintext.c (special_md_putc): Removed
9043         * armor.c (armor_filter): print error for truncated lines.
9045         * free-packet.c (free_encrypted): Revomed call to set_block_mode.
9046         (free_plaintext): Ditto.
9048 Thu Jan  7 18:00:58 CET 1999  Werner Koch  <wk@isil.d.shuttle.de>
9050         * pkclist.c (add_ownertrust): Fixed return value.
9052         * encr-data.c (decrypt_data): Disabled iobuf_set_limit and
9053         iobuf_pop_filter stuff.
9054         * compress.c (handle_compressed): Disabled iobuf_pop_filter.
9056         * packet.h (PKT_secret_key): Add is_primary flag.
9057         * parse-packet.c (parse_key): Set this flag.
9058         * passphrase.c (passphrase_to_dek): Kludge to print the primary
9059         keyid - changed the API: keyid must now hold 2 keyids.
9060         * getkey.c (get_primary_seckey): New.
9061         * seckey-cert.c (do_check): pass primary keyid to passphrase query
9063         * tbdio.c (open_db): removed the atexit
9064         (tdbio_set_dbname): and moved it to here.
9066         * armor.c: Rewrote large parts.
9068 Tue Dec 29 19:55:38 CET 1998  Werner Koch  <wk@isil.d.shuttle.de>
9070         * revoke.c (gen_revoke): Removed compression.
9072         * pkclist.c (do_we_trust_pre): special check for revoked keys
9074         * trustdb.c (update_trust_record): Fixed revoke flag.
9076 Tue Dec 29 14:41:47 CET 1998  Werner Koch  <wk@isil.d.shuttle.de>
9078         * misc.c (disable_core_dumps): Check for EINVAL (Atari)
9080         * getkey (merge_one_pk_and_selfsig): Fixed search of expiredate.
9081         (merge_keys_and_selfsig): Ditto.
9083         * free-packet.c (cmp_public_keys): cmp expire only for v3 packets
9084         (cmp_secret_keys): Ditto.
9085         (cmp_public_secret_key): Ditto.
9087 Wed Dec 23 17:12:24 CET 1998  Werner Koch  <wk@isil.d.shuttle.de>
9089         * armor.c (find_header): Reset not_dashed at every header
9091 Wed Dec 23 13:18:14 CET 1998  Werner Koch  <wk@isil.d.shuttle.de>
9093         * pkclist.c (add_ownertrust): Refresh validity values.
9095         * trustdb.c (enum_cert_paths_print): New arg refresh.
9097         * ringedit.c: Fixed problems fix keyrings
9098         * parse-packet.c (dbg_parse_packet): New debug functions.
9100         * getkey.c (getkey_disable_caches): New.
9101         * import.c (import_keys): Disable caches.
9103 Thu Dec 17 18:31:15 CET 1998  Werner Koch  <wk@isil.d.shuttle.de>
9105         * misc.c (trap_unaligned): Only for glibc 1
9107         * sign.c (write_dash_escaped): Now escapes "From " lines
9108         * g10.c: New option --escape-from-lines
9110         * trustdb.c (sort_tsl_list): New
9111         (list_trust_path): Now prints sorted list.
9112         (enum_cert_paths): Likewise.
9113         (enum_cert_paths_print): New.
9114         (print_paths): New printing format.
9115         * pkclist.c (add_ownertrust): New arg quit.
9116         (edit_ownertrust): New quit selection and does not query
9117         the recipients ownertrust anymore.
9118         (add_ownertrust): Print the ceritficate path.
9121 Mon Dec 14 21:18:49 CET 1998  Werner Koch  <wk@isil.d.shuttle.de>
9123         * parse-packet.c (parse_signature): Now checks for critical bit
9124         (parse_sig_subpkt): Splitted.
9125         (parse_one_sig_subpkt): New.
9126         * sig-check.c (do_check): handle critical bit.
9128 Sun Dec 13 14:10:56 CET 1998  Werner Koch  <wk@isil.d.shuttle.de>
9130         * pcklist.c (select_algo_from_prefs): Preferences should
9131         now work (lost the != ? )
9133 Thu Dec 10 20:15:36 CET 1998  Werner Koch  <wk@isil.d.shuttle.de>
9135         * ringedit.c (gdbm_store): Fix for inserts
9137         * g10.c (main): New option --export-all
9138         * export.c (export_pubkeys): New arg.
9139         (do_export): Now may skip old keys.
9141         * status.c: Minor patches for Sun's cc
9143         * keygen.c (ask_algo): Disabled v3 ElGamal choice, rearranged
9144          the numbers.  Add a warning question when a sign+encrypt key
9145          is selected.
9147         * g10.c (do_not_use_RSA): Removed.
9148         * misc.c (print_pubkey_algo_note): New as replacement for the
9149         do_not_use_RSA() and chnaged all callers.
9150         (print_cipher_algo_note): New.
9151         (print_hash_algo_note): New.
9153         * cipher.c (write_header): Add a call to print_cipher_algo_note.
9154         * seckey-cert.c (protect_secret_key): Ditto
9155         * sign.c (do_sign): Add a call to print_digest_algo_note.
9157         * getkey.c (get_long_user_id_string): New.
9158         * mainproc.c (check_sig_and_print): Changed the format of the
9159         status output.
9161         * encrypt.c (write_pubkey_enc_from_list): print used symmetric cipher.
9163         * pkclist.c (do_we_trust): Changed a message.
9165 Wed Dec  9 13:41:06 CET 1998  Werner Koch  <wk@isil.d.shuttle.de>
9167         * misc.c (trap_unaligned) [ALPHA]: Only if UAC_SIGBUS is defined.
9169         * sign.c (write_dash_escaped): Add the forgotten patch by Brian Moore.
9171         * compress.c (do_uncompress): Fixed the inflating bug.
9174 Tue Dec  8 13:15:16 CET 1998  Werner Koch  <wk@isil.d.shuttle.de>
9176         * trustdb.c (upd_uid_record): Now uses the newest self-signature
9177         (insert_trust_record): Now calls update with recheck set to true.
9178         (register_trusted_key): New.
9179         (verify_own_keys): Enhanced by list of trusted keys.
9181         * g10.c (main): Print a warning when a devel version is used.
9182         (main): New option --trusted-key
9184         * import.c (merge_blocks): Fixed merging of new user ids and
9185         added merging of subkeys.
9186         (append_uid): Ditto.
9187         (merge_keysig): New.
9188         (append_key): New.
9189         * getkey.c (merge_one_pk_and_selfsig): Get the expiration time
9190         from the newest self-signature.
9191         (merge_keys_and_selfsig): Ditto.
9193         * free-packet.c (cmp_secret_key): New.
9196 Fri Nov 27 21:37:41 CET 1998  Werner Koch  <wk@isil.d.shuttle.de>
9198         * g10.c: New option --lock-once
9199         * tdbio.c (open_db): Add an atexit
9200         (cleanup): New.
9201         (tdbio_sync): Add locking.
9202         (tdbio_end_transaction): Ditto.
9203         (put_record_into_cache): Ditto.
9204         * ringedit.c (keyring_copy): Ditto.
9205         (cleanup): New.
9206         (add_keyblock_resource): Add an atexit.
9208 Fri Nov 27 15:30:24 CET 1998  Werner Koch  <wk@isil.d.shuttle.de>
9210          * armor.c (find_header): Another fix for clearsigs.
9212 Fri Nov 27 12:39:29 CET 1998  Werner Koch  <wk@isil.d.shuttle.de>
9215         * status.c (display_help): Removed.
9216         * helptext.c: New and removed the N_() from all cpr_gets.
9219 Fri Nov 20 16:54:52 1998  Werner Koch  (wk@isil.d.shuttle.de)
9221         * g10.c (main): New option --not-dash-escaped
9222         * sign.c (write_dashed_escaped): Ditto.
9223         * armor.c (find_header): Support for NotDashEscaped header.
9225         * getkey.c: print "disabled cache.." only if verbose is used.
9227 Thu Nov 19 07:17:31 1998  Werner Koch  <werner.koch@guug.de>
9229         * parse-packet.c (dump_sig_subpkt): Fixed expire listing
9230         * getkey.c (merge_keys_and_selfsig): Fixed expire calculation.
9231         (merge_one_pk_and_selfsig): Ditto.
9232         * keyedit.c (menu_expire). Ditto.
9233         * keygen.c (keygen_add_key_expire): Ditto.
9234         (ask_expire_interval): New and changed all local function to use
9235         this instead.
9236         (keygen_add_key_expire): Opaque should now be a public key;
9237         changed all callers.
9239         * parse.packet.c (parse): use skip_rest to skip packets.
9241         * keyedit.c (keyedit_menu): New arg for cmdline cmds.
9243 Wed Nov 18 20:33:50 1998  Werner Koch  (wk@isil.d.shuttle.de)
9245         * trustdb.c (check_trustdb): Now rechecks all gived userids.
9246         (collect_paths): Some fixes.
9247         (upd_pref_records): Skips empty items, evaluate all items.
9249         * parse-packet.c (dump_sig_subpkt): Better listing of prefs.
9250         (skip_packet): Now knows about marker packet
9252         * g10.c: removed cmd "--edit-sig".
9254         * pubring.asc: Updated.
9256 Sat Nov 14 14:01:29 1998  Werner Koch  (wk@isil.d.shuttle.de)
9258         * g10.c (main): Changed syntax of --list-trust-path
9259         * trustdb.c (list_trust_path): Replaced max_depth by
9260         opt.max_cert_depth
9262 Fri Nov 13 07:39:58 1998  Werner Koch  <werner.koch@guug.de>
9264         * trustdb.c (collect_paths): Removed a warning message.
9265         (enum_trust_web): Removed.
9266         (enum_cert_paths): New.
9267         * pkclist.c (add_ownertrust): Changed to use enum_cert_paths.
9268         (edit_ownertrust): Now list ceritficates on request.
9269         (show_paths): New.
9271 Wed Nov 11 18:05:44 1998  Werner Koch  <werner.koch@guug.de>
9273         * g10.c (main): New option --max-cert-depth
9274         * tdbio.h: add new fields to ver and dir record.
9275         * tdbio.c: read/write/dump of these fields.
9276         (tdbio_db_matches_options): New.
9277         * trustdb.c: replaced MAC_CERT_DEPTH by opt.max_cert_depth.
9278         (do_check): cache validity and changed other functions
9279         to reset the cached value.
9281         * keylist.c (list_one): Now lists the ownertrust.
9282         * mainproc.c (list_node): Ditto.
9284 Tue Nov 10 10:08:59 1998  Werner Koch  (wk@isil.d.shuttle.de)
9286         * g10.c (g10_exit): Now looks at the new g10_errors_seen.
9287         * mainproc.c (check_sig_and_print): Sets g10_errors_seen.
9289         * *.c : i18n many more strings.
9291         * ringedit.c (locate_keyblock_by_keyid): Add HAVE_LIBGDBM
9292         (locate_keyblock_by_fpr): Ditto.
9294         * g10.c (main): removed unsused "int errors".
9295         (main): Add new option --charset.
9297         * g10.c (main): special message for the unix newbie.
9299 Mon Nov  9 07:17:42 1998  Werner Koch  <werner.koch@guug.de>
9301         * getkey.c (finish_lookup): Kludge to prefere algo 16.
9303         * trustdb.c (new_lid_table): Clear cached item.
9305         * status.c (cpr_get_utf8): New.
9306         * pkclist.c (build_pk_list): Uses this.
9308 Sun Nov  8 17:20:39 1998  Werner Koch  (wk@isil.d.shuttle.de)
9310         * mainproc.c (check_sig_and_print): Why did I use strlen()-1
9311         in the printf? - This truncated the TZ.
9313 Sat Nov  7 15:57:28 1998  me,,,  (wk@tobold)
9315         * getkey.c (lookup): Changes to support a read_next.
9316         (get_pubkey): Fixed a memory leak.
9318         * keylist.c (list_one): Now lists all matching user IDs.
9320 Tue Nov  3 16:19:21 1998  Werner Koch  (wk@isil.d.shuttle.de)
9322         * keygen.c (ask_user_id): Now converted to UTF-8
9324         * g10.c (main): Kludge for pgp clearsigs and textmode.
9326 Fri Oct 30 16:40:39 1998  me,,,  (wk@tobold)
9328         * signal.c (block_all_signals): New.
9329         (unblock_all_signals): New
9330         * tdbio.c (tdbio_end_transaction): Now blocks all signals.
9332         * trustdb.c (new_lid_table): Changed the representation of the
9333         former local_lid_info stuff.
9335         * trustdb.c (update_trust_record): Reorganized the whole thing.
9336         * sig-check.c (check_key_signature): Now handles class 0x28
9339 Wed Oct 28 18:56:33 1998  me,,,  (wk@tobold)
9341         * export.c (do_export): Takes care of the exportable sig flag.
9343 Tue Oct 27 14:53:04 1998  Werner Koch  (wk@isil.d.shuttle.de)
9345         * trustdb.c (update_trust_record): New "fast" parameter.
9347 Sun Oct 25 19:32:05 1998  Werner Koch  (wk@isil.d.shuttle.de)
9349         * openfile.c (copy_options_File): New.
9350         * ringedit.c (add_keyblock_resource): Creates options file
9351         * tdbio.c (tdbio_set_dbname): Ditto.
9353 Sat Oct 24 14:10:53 1998  brian moore <bem@cmc.net>
9355         * mainproc.c (proc_pubkey_enc): Don't release the DEK
9356         (do_proc_packets): Ditto.
9358 Fri Oct 23 06:49:38 1998  me,,,  (wk@tobold)
9360         * keyedit.c (keyedit_menu): Comments are now allowed
9362         * trustdb.c: Rewrote large parts.
9365 Thu Oct 22 15:56:45 1998  Michael Roth  (mroth@nessie.de)
9367         * encode.c: (encode_simple): Only the plain filename without
9368         a given directory is stored in generated packets.
9369         (encode_crypt): Ditto.
9371         * sign.c: (sign_file) Ditto.
9374 Thu Oct 22 10:53:41 1998  Werner Koch  (wk@isil.d.shuttle.de)
9376         * trustdb.c (update_trust_record): Add new optional arg.
9378         * import.c (import_keys): Add statistics output
9379         * trustdb.c (update_trustdb): Ditto.
9380         (insert_trustdb): Ditto.
9382         * tdbio.c (tdbio_begin_transaction): New.
9383         (tdbio_end_transaction): New.
9384         (tdbio_cancel_transaction): New.
9386         * g10.c (main): New option --quit.
9388         * trustdb.c (check_hint_sig): No tests for user-id w/o sig.
9389         This caused an assert while checking the sigs.
9391         * trustdb.c (upd_sig_record): Splitted into several functions.
9393         * import.c (import_keys): New arg "fast".
9394         * g10.c (main): New command --fast-import.
9396 Wed Oct 21 18:19:36 1998  Michael Roth <mroth@nessie.de>
9398         * ringedit.c (add_keyblock_resource): Directory is now created.
9399         * tdbio.c (tdbio_set_dbname): New info message.
9401 Wed Oct 21 11:52:04 1998  Werner Koch  (wk@isil.d.shuttle.de)
9403         * trustdb.c (update_trustdb): released keyblock in loop.
9405         * keylist.c (list_block): New.
9406         (list_all): Changed to use list_block.
9408         * trustdb.c: Completed support for GDBM
9410         * sign.c (only_old_style): Changed the way force_v3 is handled
9411         (sign_file): Ditto.
9412         (clearsign_file): Ditto.
9414         * keygen.c (has_invalid_email_chars): Splitted into mailbox and
9415         host part.
9417         * keylist.c (list_one): Add a merge_keys_and_selfsig.
9418         * mainproc.c (proc_tree): Ditto.
9420 Sun Oct 18 11:49:03 1998  Werner Koch  (wk@isil.d.shuttle.de)
9422         * sign.c (only_old_style): Add option force_v3_sigs
9423         (sign_file): Fixed a bug in sig->version
9424         (clearsign_file): Ditto.
9426         * parse-packet.c (dump_sig_subpkt): New
9428         * keyedit.c (menu_expire): New.
9429         * free-packet.c (cmp_signatures): New
9432 Sat Oct 17 10:22:39 1998  Werner Koch  (wk@isil.d.shuttle.de)
9434         * armor.c: changed output line length from 72 to 64.
9436         * keyedit.c (fix_keyblock): New.
9438 Fri Oct 16 10:24:47 1998  Werner Koch  (wk@isil.d.shuttle.de)
9440         * trustdb.c: Rewrote most.
9441         * tdbio.c: Add cache and generalized hash tables.
9443         * options.h (ENABLE_COMMENT_PACKETS): New but undef'ed.
9444         * encode.c, sign.c, keygen.c: Disabled comment packets.
9445         * export.c (do_export): Comment packets are never exported,
9446         except for those in the secret keyring.
9448         * g10.c (main): Removed option do-no-export-rsa; should be
9449         be replaced by a secpial tool.
9450         * export.c (do_export): Removed the code for the above option.
9452         * armor.c (find_header): Support for new only_keyblocks.
9453         * import.c (import_keys): Only looks for keyblock armors.
9455         * packet.h: replaced valid_days by expiredate and changed all users.
9456         * build-packet.c (do_public_key): calculates valid-days
9457         (do_secret_key): Ditto.
9458         * parse-packet.c (parse_key): expiredate is calucated from the
9459         valid_period in v3 packets.
9460         * keyid.c (do_fingerprint_md): calculates valid_dates.
9462         * keygen.c (add_key_expire): fixed key expiration time for v4 packets.
9464         * armor.c (find_header): A LF in the first 28 bytes
9465         was skipped for non-armored data.
9467 Thu Oct  8 11:35:51 1998  Werner Koch  (wk@isil.d.shuttle.de)
9469         * armor.c (is_armored): Add test on old comment packets.
9471         * tdbio.c (tdbio_search_dir_bypk): fixed memory leak.
9473         * getkey.c: Changed the caching algorithms.
9475 Wed Oct  7 19:33:28 1998  Werner Koch  (wk@isil.d.shuttle.de)
9477         * kbnodes.c (unused_nodes): New.
9479 Wed Oct  7 11:15:36 1998  Werner Koch  (wk@isil.d.shuttle.de)
9481         * keyedit.c (sign_uids): Fixed a problem with SK which could caused
9482         a save of an unprotected key.
9483         (menu_adduid): Ditto.
9485         * keyedit.c (keyedit_menu): Prefs are now correctly listed for
9486         new user ids.
9488         * trustdb.c (update_trust_record): New.
9489         (insert_trust_record): Now makes use of update_trust_record.
9491 Tue Oct  6 16:18:03 1998  Werner Koch  (wk@isil.d.shuttle.de)
9493         * trustdb.c (read_record): replaces most of the tdbio_read_records.
9494         (write_record): Ditto.
9496 Sat Oct  3 11:01:21 1998  Werner Koch  (wk@isil.d.shuttle.de)
9498         * keygen.c (ask_alogo): enable ElGamal enc-only only for addmode.
9500 Wed Sep 30 10:15:33 1998  Werner Koch  (wk@isil.d.shuttle.de)
9502         * import.c (import_one): Fixed update of wrong keyblock.
9504 Tue Sep 29 08:32:08 1998  me,,,  (wk@tobold)
9506         * mainproc.c (proc_plaintext): Display note for special filename.
9507         * plaintext.c (handle_plaintext): Suppress output of special file.
9509 Mon Sep 28 12:57:12 1998  Werner Koch  (wk@isil.d.shuttle.de)
9511         * g10.c (verify_own_keys): Add warning if a key is not protected.
9513         * passphrase (hash_passphrase): Fixed iterated+salted mode and
9514         setup for keysizes > hashsize.
9516         * g10.c (main): New options: --s2k-{cipher,digest,mode}.
9518 Fri Sep 25 09:34:23 1998  Werner Koch  (wk@isil.d.shuttle.de)
9520         * g10.c: Chnaged some help texts.
9522 Tue Sep 22 19:34:39 1998  Werner Koch  (wk@isil.d.shuttle.de)
9524         * passphrase.c (read_passphrase_from_fd): fixed bug for long
9525         passphrases.
9527 Mon Sep 21 11:28:05 1998  Werner Koch  (wk@(none))
9529         * getkey.c (lookup): Add code to use the sub key if the primary one
9530         does not match the usage.
9532         * armor.c (armor_filter): New error message: no valid data found.
9533         (radix64_read): Changes to support multiple messages.
9534         (i18n.h): New.
9535         * mainproc.c (add_onepass_sig): bug fix.
9537 Mon Sep 21 08:03:16 1998  Werner Koch  (wk@isil.d.shuttle.de)
9539         * pkclist.c (do_we_trust): Add keyid to most messages.
9541         * passphrase.c (read_passphrase_from_fd): New.
9542         (have_static_passphrase): New
9543         (get_passphrase_fd): Removed.
9544         (set_passphrase_fd): Removed.
9545         * g10.c (main): passphrase is now read here.
9547         * keyedit.c (keyedit_menu): "help" texts should now translate fine.
9549 Mon Sep 21 06:40:02 1998  Werner Koch  (wk@isil.d.shuttle.de)
9551         * encode.c (encode_simple): Now disables compression
9552         when --rfc1991 is used.
9553         (encode_crypt): Ditto.
9555 Fri Sep 18 16:50:32 1998  Werner Koch  (wk@isil.d.shuttle.de)
9557         * getkey.c (merge_key_and_selfsig): New.
9559 Fri Sep 18 10:20:11 1998  Werner Koch  (wk@isil.d.shuttle.de)
9561         * pkclist.c (select_algo_from_prefs): Removed 3DES kludge.
9563         * seskey.c (make_session_key): Fixed SERIOUS bug introduced
9564         by adding the weak key detection code.
9566         * sign.c (sign_file): Changed aremor header in certain cases.
9568 Tue Sep 15 17:52:55 1998  Werner Koch  (wk@isil.d.shuttle.de)
9570         * mainproc.c (check_sig_and_print): Replaced ascime by asctimestamp.
9572 Mon Sep 14 11:40:52 1998  Werner Koch  (wk@isil.d.shuttle.de)
9574         * seskey.c (make_session_key): Now detects weak keys.
9576         * trustdb (clear_trust_checked_flag): New.
9578         * plaintext.c (handle_plaintext): Does no anymore suppress CR from
9579         cleartext signed messages.
9581 Sun Sep 13 12:54:29 1998  Werner Koch  (wk@isil.d.shuttle.de)
9583         * trustdb.c (insert_trust_record): Fixed a stupid bug in the free
9584         liunked list loops.
9586 Sat Sep 12 15:49:16 1998  Werner Koch  (wk@isil.d.shuttle.de)
9588         * status.c (remove_shmid): New.
9589         (init_shm_comprocess): Now sets permission to the real uid.
9591 Wed Sep  9 11:15:03 1998  Werner Koch  (wk@isil.d.shuttle.de)
9593         * packet.h (PKT_pubkey_enc): New flah throw_keyid, and add logic to
9594         implement it.
9595         * g10.c (main): New Option --throw-keyid
9597         * getkey.c (enum_secret_keys): Add new ar and changed all callers.
9599 Tue Sep  8 20:04:09 1998  Werner Koch  (wk@isil.d.shuttle.de)
9601         * delkey.c (delete_key): Moved from keyedit.c.
9603 Mon Sep  7 16:37:52 1998  Werner Koch  (wk@isil.d.shuttle.de)
9605         * build-packet.c (calc_length_header): New arg new_ctb to correctly
9606         calculate the length of new style packets.
9608         * armor.c (is_armored): Checks for symkey_enc packets.
9610         * pkclist.c (select_algo_from_prefs): 3DEs substitute is now CAST5.
9612 Tue Aug 11 17:54:50 1998  Werner Koch  (wk@isil.d.shuttle.de)
9614         * build-packet.c (do_secret_key): Fixed handling of old keys.
9616         * getkey.c (compare_name): Fixed exact and email matching
9618         * openfile.c (open_outfile): Changed arguments and all callers.
9620 Tue Aug 11 09:14:35 1998  Werner Koch  (wk@isil.d.shuttle.de)
9622         * encode.c (encode_simple): Applied option set-filename and comment.
9623         (encode_crypt): Ditto.
9624         * sign.c (sign_file): Ditto.
9625         * armor.c (armor_filter): Applied option comment.
9627         * encode.c (encode_crypt): Moved init_packet to the begin.
9628         (encode_simple): add an init_packet().
9630         * comment (write_comment): Now enforces a hash sign as the 1st byte.
9632         * import.c (import_one): Add explanation for "no user ids".
9634         * compress.c (do_uncompress): Applied Brian Warner's patch to support
9635         zlib 1.1.3 etc.
9637         * trustdb.c (check_trust): Fixed a problem after inserting new keys.
9639         * getkey (lookup): do not return the primary key if usage is given
9640         (lookup_sk): Ditto and take usage into account.
9642         * status.c (cpr_get_answer_is_yes): add display_help.
9644 Mon Aug 10 10:11:28 1998  Werner Koch  (wk@isil.d.shuttle.de)
9646         * getkey.c (lookup_sk): Now always returns the primary if arg
9647         primary is true.
9648         (lookup): Likewise.
9649         (get_pubkey_byname): Now returns the primary key
9650         (get_seckey_byname): Ditto.
9653 Mon Aug 10 08:34:03 1998  Werner Koch  (wk@isil.d.shuttle.de)
9655         * keyid.c (pubkey_letter): ELG_E is now a small g.
9657 Sat Aug  8 17:26:12 1998  Werner Koch  (wk@isil.d.shuttle.de)
9659         * openfile (overwrite_filep): Changed semantics and all callers.
9661 Sat Aug  8 12:17:07 1998  Werner Koch  (wk@isil.d.shuttle.de)
9663         * status.c (display_help): New.
9665 Thu Aug  6 16:30:41 1998  Werner Koch,mobil,,,  (wk@tobold)
9667         * seskey.c (encode_session_key): Now uses get_random_bits().
9669 Thu Aug  6 07:34:56 1998  Werner Koch,mobil,,,  (wk@tobold)
9671         * ringedit.c (keyring_copy): No more backupfiles for
9672         secret keyrings and add additional warning in case of
9673         a failed secret keyring operation.
9675 Wed Aug  5 11:54:37 1998  Werner Koch  (wk@isil.d.shuttle.de)
9677         * g10.c (check_opts): Moved to main.  Changed def_cipher_algo
9678         semantics and chnaged all users.
9680         * pubkey-enc.c (get_sssion_key): New informational output
9681         about preferences.
9683         * parse-packet.c (parse_symkeyenc): Fixed salted+iterated S2K
9684         (parse_key): Ditto.
9685         * build-packet.c (do_secret_key): Ditto.
9686         (do_symkey_enc): Ditto.
9688 Tue Aug  4 08:59:10 1998  Werner Koch  (wk@isil.d.shuttle.de)
9690         * getkey.c (enum_secret_keys): Now returns only primary keys.
9692         * getkey (lookup): Now sets the new namehash field.
9694         * parse-packet.c (parse_sig_subpkt2): New.
9696         * sign.c (sign_file): one-pass sigs are now emiited reverse.
9697         Preference data is considered when selecting the compress algo.
9699 Wed Jul 29 12:53:03 1998  Werner Koch  (wk@isil.d.shuttle.de)
9701         * free-packet.c (copy_signature): New.
9703         * keygen.c (generate_subkeypair): rewritten
9704         * g10.c (aKeyadd): Removed option --add-key
9706 Mon Jul 27 10:37:28 1998  Werner Koch  (wk@isil.d.shuttle.de)
9708         * seckey-cert.c (do_check): Additional check on cipher blocksize.
9709         (protect_secret_key): Ditto.
9710         * encr-data.c: Support for other blocksizes.
9711         * cipher.c (write_header): Ditto.
9713 Fri Jul 24 16:47:59 1998  Werner Koch  (wk@isil.d.shuttle.de)
9715         * kbnode.c (insert_kbnode): Changed semantics and all callers.
9716         * keyedit.c : More or less a complete rewrite
9718 Wed Jul 22 17:10:04 1998  Werner Koch  (wk@isil.d.shuttle.de)
9720         * build-packet.c (write_sign_packet_header): New.
9722 Tue Jul 21 14:37:09 1998  Werner Koch  (wk@isil.d.shuttle.de)
9724         * import.c (import_one): Now creates a trustdb record.
9726         * g10.c (main): New command --check-trustdb
9728 Mon Jul 20 11:15:07 1998  Werner Koch  (wk@isil.d.shuttle.de)
9730         * genkey.c (generate_keypair): Default key is now DSA with
9731         encryption only ElGamal subkey.
9733 Thu Jul 16 10:58:33 1998  Werner Koch  (wk@isil.d.shuttle.de)
9735         * keyid.c (keyid_from_fingerprint): New.
9736         * getkey.c (get_pubkey_byfprint): New.
9738 Tue Jul 14 18:09:51 1998  Werner Koch  (wk@isil.d.shuttle.de)
9740         * keyid.c (fingerprint_from_pk): Add argument and changed all callers.
9741         (fingerprint_from_sk): Ditto.
9743 Tue Jul 14 10:10:03 1998  Werner Koch  (wk@isil.d.shuttle.de)
9745         * plaintext.c (handle_plaintext): Now returns create error if
9746         the file could not be created or the user responded not to overwrite
9747         the file.
9748         * mainproc.c (proc_plaintext): Tries again if the file could not
9749         be created to check the signature without output.
9751         * misc.c (disable_core_dumps): New.
9752         * g10.c (main): disable coredumps for gpg
9754         * g10.c (MAINTAINER_OPTIONS): New to disable some options
9756 Mon Jul 13 16:47:54 1998  Werner Koch  (wk@isil.d.shuttle.de)
9758         * plaintext.c (hash_datafiles): New arg for better support of
9759         detached sigs. Changed all callers.
9760         * mainproc.c (proc_signature_packets): Ditto.
9762         * g10.c (main): New option "compress-sigs"
9763         * sig.c (sign_file): detached signatures are not anymore compressed
9764         unless the option --compress-sigs is used.
9766 Thu Jul  9 19:54:54 1998  Werner Koch  (wk@isil.d.shuttle.de)
9768         * armor.c: Fixes to allow zero length cleartext signatures
9770 Thu Jul  9 14:52:47 1998  Werner Koch  (wk@isil.d.shuttle.de)
9772         * g10.c (build_list): Now drops setuid.
9773         (main): Changed the way keyrings  and algorithms are registered .
9775 Wed Jul  8 14:17:30 1998  Werner Koch  (wk@isil.d.shuttle.de)
9777         * packet.h (PKT_public_key): Add field keyid.
9778         * parse-packet.c (parse_key): Reset the above field.
9779         * keyid.c (keyid_from_pk): Use above field as cache.
9781         * tdbio.c, tdbio.h: New
9782         * trustdb.c: Moved some functions to tdbio.c.
9783         (print_keyid): New.
9785         * pkclist.c (check_signatures_trust): New.
9787 Wed Jul  8 10:45:28 1998  Werner Koch  (wk@isil.d.shuttle.de)
9789         * plaintext.c (special_md_putc): New.
9790         (handle_plaintext): add clearsig argument
9791         * mainproc.c (proc_plaintext): detection of clearsig
9792         * sign.c (write_dased_escaped): Changed clearsig format
9794 Tue Jul  7 18:56:19 1998  Werner Koch  (wk@isil.d.shuttle.de)
9796         * armor.c (find_header): Now makes sure that there is only one
9797         empty line for clearsigs, as this is what OP now says.
9799 Mon Jul  6 13:09:07 1998  Werner Koch  (wk@isil.d.shuttle.de)
9801         * g10.c (main): New option default-secret-key
9802         * getkey.c (get_seckey_byname): support for this option.
9804 Mon Jul  6 09:03:49 1998  Werner Koch  (wk@isil.d.shuttle.de)
9806         * getkey.c (add_keyring): Keyrings are now added to end of the
9807         list of keyrings.  The first added keyringwill be created.
9808         (add_secret_keyring): Likewise.
9810         * ringedit.c (add_keyblock_resource): Files are created here.
9812         * g10.c (aNOP): Removed
9814         * getkey.c (lookup): Add checking of usage for name lookups
9815         * packet.h (pubkey_usage): Add a field which may be used to store
9816         usage capabilities.
9817         * pkclist.c (build_pk_list): getkey now called with usage arg.
9818         * skclist.c (build_sk_list): Ditto.
9820         * sign.c (clearsign_file): Fixed "Hash:" headers
9822 Sat Jul  4 13:33:31 1998  Werner Koch  (wk@isil.d.shuttle.de)
9824         * trustdb.c (list_ownertrust): New.
9825         * g10.c (aListOwnerTrust): New.
9827         * g10.c (def_pubkey_algo): Removed.
9829         * trustdb.c (verify_private_data): Removed and also the call to it.
9830         (sign_private_data): Removed.
9832 Fri Jul  3 13:26:10 1998  Werner Koch  (wk@isil.d.shuttle.de)
9834         * g10.c (aEditKey): was aEditSig. Changed usage msg.
9836         * keyedit.c: Done some i18n stuff.
9838         * g10.c (do_not_use_RSA): New.
9839         * sign.c (do_sign): Add call to above function.
9840         * encode.c (write_pubkey_enc_from_list): Ditto.
9842 Thu Jul  2 21:01:25 1998  Werner Koch  (wk@isil.d.shuttle.de)
9844         * parse-packet.c: Now is able sto store data of unknown
9845         algorithms.
9846         * free-packet.c: Support for this.
9847         * build-packet.c: Can write data of packet with unknown algos.
9849 Thu Jul  2 11:46:36 1998  Werner Koch  (wk@isil.d.shuttle.de)
9851         * parse-packet.c (parse): fixed 4 byte length header
9853 Wed Jul  1 12:36:55 1998  Werner Koch  (wk@isil.d.shuttle.de)
9855         * packet.h (new_ctb): New field for some packets
9856         * build-packet.c (build_packet): Support for new_ctb
9857         * parse-packet.c (parse): Ditto.
9859 Mon Jun 29 12:54:45 1998  Werner Koch  (wk@isil.d.shuttle.de)
9861         * packet.h: changed all "_cert" to "_key", "subcert" to "subkey".
9863         * free-packet.c (free_packet): Removed memory leak for subkeys.
9865 Sun Jun 28 18:32:27 1998  Werner Koch  (wk@isil.d.shuttle.de)
9867         * import.c (import_keys): Renamed from import_pubkeys.
9868         (import_secret_one): New.
9870         * g10.c (aExportSecret): New.
9872         * export.c (export_seckeys): New.
9874         * parse-packet.c (parse_certificate): Cleaned up.
9875         (parse_packet): Trust packets are now considered as unknown.
9876         (parse_pubkey_warning): New.
9878 Fri Jun 26 10:37:35 1998  Werner Koch  (wk@isil.d.shuttle.de)
9880         * keygen.c (has_invalid_email_chars): New.
9882 Wed Jun 24 16:40:22 1998  Werner Koch  (wk@isil.d.shuttle.de)
9884         * armor.c (armor_filter): Now creates valid onepass_sig packets
9885         with all detected hash algorithms.
9886         * mainproc.c (proc_plaintext): Now uses the hash algos as specified
9887         in the onepass_sig packets (if there are any)
9889 Mon Jun 22 11:54:08 1998  Werner Koch  (wk@isil.d.shuttle.de)
9891         * plaintext.c (handle_plaintext): add arg to disable outout
9892         * mainproc.c (proc_plaintext): disable output when in sigs_only mode.
9894 Thu Jun 18 13:17:27 1998  Werner Koch  (wk@isil.d.shuttle.de)
9896         * keygen.c: Removed all rsa packet stuff, chnaged defaults
9897         for key generation.
9899 Sun Jun 14 21:28:31 1998  Werner Koch  (wk@isil.d.shuttle.de)
9901         * misc.c (checksum_u16): Fixed a stupid bug which caused a
9902         wrong checksum calculation for the secret key protection and
9903         add a backward compatibility option.
9904         * g10.c (main): Add option --emulate-checksum-bug.
9906 Thu Jun 11 13:26:44 1998  Werner Koch  (wk@isil.d.shuttle.de)
9908         * packet.h: Major changes to the structure of public key material
9909         which is now stored in an array and not anaymore in a union of
9910         algorithm specific structures.  These is needed to make the system
9911         more extendable and makes a lot of stuff much simpler. Changed
9912         all over the system.
9914         * dsa.c, rsa.c, elg.c: Removed.
9916 Wed Jun 10 07:22:02 1998  Werner Koch,mobil,,,  (wk@tobold)
9918         * g10.c ("load-extension"): New option.
9920 Mon Jun  8 22:23:37 1998  Werner Koch  (wk@isil.d.shuttle.de)
9922         * seckey-cert.c (do_check): Removed cipher constants
9923         (protect_secret_key): Ditto.
9925 Fri May 29 10:00:28 1998  Werner Koch  (wk@isil.d.shuttle.de)
9927         * trustdb.c (query_trust_info): New.
9928         * keylist.c (list_one): Add output of trust info
9929         * mainproc (list_node): ditto.
9930         * g10.c (main): full trustdb init if -with-colons and any of the
9931         key list modes.
9933 Thu May 28 10:34:42 1998  Werner Koch  (wk@isil.d.shuttle.de)
9935         * status.c (STATUS_RSA_OR_IDEA): New.
9936         * sig-check.c (check_signature): Output special status message.
9937         * pubkey-enc.c (get_session_key): Ditto.
9939         * mainproc.c (check_sig_and_print): Changed format of output.
9940         * passpharse.c (passphrase_to_dek): Likewise.
9942 Wed May 27 13:46:48 1998  Werner Koch  (wk@isil.d.shuttle.de)
9944         * g10.c (aListSecretKeys): New option --list-secret-keys
9945         * keylist.c (std_key_list): Renamed to public_key_list.
9946         (secret_key_list): New
9947         (list_one, list_all): Add support for secret keys.
9948         * getkey.c (get_secret_keyring): New.
9949         * mainproc.c (list_node): Add option --with-colons for secret keys
9951         * sig-check.c (check_key_signature): detection of selfsigs
9952         * mainproc.c (list_node): fixed listing.
9954         * g10.c (aListSecretKeys): New option --always-trust
9955         * pkclist.c (do_we_trust): Override per option added
9957         * status.c (write_status_text): Add a prefix to every output line.
9959 Wed May 27 07:49:21 1998  Werner Koch  (wk@isil.d.shuttle.de)
9961         * g10 (--compress-keys): New.
9962         * options.h (compress_keys): New.
9963         * export.c (export_pubkeys): Only compresses with the new option.
9965 Tue May 26 11:24:33 1998  Werner Koch  (wk@isil.d.shuttle.de)
9967         * passphrase.c (get_last_passphrase): New
9968         (set_next_passphrase): New.
9969         (passphrase_to_dek): add support for the above functions.
9970         * keyedit.c (make_keysig_packet): Add sigclass 0x18,
9971         changed all callers due to a new argument.
9972         * keygen.c (write_keybinding): New
9973         (generate_subkeypair): Add functionality
9974         (ask_algo, ask_keysize, ask_valid_days): Broke out of generate_keypair
9975         (ask_user_id, ask_passphrase): Ditto.
9977 Thu May 21 11:26:13 1998  Werner Koch  (wk@isil.d.shuttle.de)
9979         * g10.c,gpgd.c (main): Does now return an int, so that egcs does
9980         not complain.
9982         * armor.c (fake_packet): Removed erro message and add a noticed
9983         that this part should be fixed.
9985         * sign.c (sign_file): Compression now comes in front of encryption.
9986         * encode.c (encode_simple): Ditto.
9987         (encode_crypt): Ditto.
9989 Tue May 19 16:18:19 1998  Werner Koch  (wk@isil.d.shuttle.de)
9991         * armor.c (fake_packet): Changed assertion to log_error
9993 Sat May 16 16:02:06 1998  Werner Koch  (wk@isil.d.shuttle.de)
9995         * build-packet.c (build_packet): Add SUBKEY packets.
9997 Fri May 15 17:57:23 1998  Werner Koch  (wk@isil.d.shuttle.de)
9999         * sign.c (hash_for): New and used in all places here.
10000         * main.h (DEFAULT_): new macros.
10001         * g10.c  (opt.def_digest_algo): Now set to 0
10003         * compress.c (init_compress): Add support for algo 1
10004         * options.h (def_compress_algo): New
10005         * g10.c (main): New option --compress-algo
10007 Fri May 15 13:23:59 1998  Werner Koch  (wk@isil.d.shuttle.de)
10009         * g10.c (print_mds): New feature to print only one hash,
10010         chnaged formatting.
10012 Thu May 14 15:36:24 1998  Werner Koch  (wk@isil.d.shuttle.de)
10014         * misc.c (trap_unaligned) [__alpha__]: New
10015         * g10.c (trap_unaligned): Add call to this to track down SIGBUS
10016         on Alphas (to avoid the slow emulation code).
10018 Wed May 13 11:48:27 1998  Werner Koch  (wk@isil.d.shuttle.de)
10020         * build-packet.c (do_signature): Support for v4 pakets.
10021         * keyedit.c (make_keysig_packet): Ditto.
10022         * build-packet.c (build_sig_subpkt_from_sig): New.
10023         (build_sig_subpkt): New.
10025         * elg.c (g10_elg_sign): removed keyid_from_skc.
10026         * dsa.c (g10_dsa_sign): Ditto.
10027         * rsa.c (g10_rsa_sign): Ditto.
10028         * keyedit.c (make_keysig_packet): Add call to keyid_from_skc
10030         * sign.c (clearsign_file): Support for v4 signatures.
10031         (sign_file): Ditto.
10033 Wed May  6 09:31:24 1998  Werner Koch  (wk@isil.d.shuttle.de)
10035         * parse-packet.c (do_parse): add support for 5 byte length leader.
10036         (parse_subpkt): Ditto.
10037         * build-packet.c (write_new_header): Ditto.
10039         * packet.h (SIGSUBPKT_): New constants.
10040         * parse-packet.c (parse_sig_subpkt): Changed name, made global,
10041         and arg to return packet length, chnaged all callers
10044 Tue May  5 22:11:59 1998  Werner Koch  (wk@isil.d.shuttle.de)
10046         * keygen.c (gen_dsa): New.
10047         * build_packet.c (do_secret_cert): Support for DSA
10049 Mon May  4 19:01:25 1998  Werner Koch  (wk@isil.d.shuttle.de)
10051         * compress.c: doubled buffer sizes
10052         * parse-packet.c (do_plaintext): now uses iobuf_read/write.
10054 Mon May  4 09:35:53 1998  Werner Koch  (wk@isil.d.shuttle.de)
10056         * seskey.c (encode_md_value): Add optional argument hash_algo,
10057         changed all callers.
10059         * passphrase.c (make_dek_from_passphrase): Removed
10060         * (get_passhrase_hash): Changed name to passphrase_to_dek, add arg,
10061         changed all callers.
10063         * all: Introduced the new ELG identifier and added support for the
10064         encryption only one (which is okay to use by GNUPG for signatures).
10066 Sun May  3 17:50:26 1998  Werner Koch  (wk@isil.d.shuttle.de)
10068         * packet.h (PKT_OLD_COMMENT): New name for type 16.
10069         * parse-packet.c (parse_comment): Now uses type 61
10071 Fri May  1 12:44:39 1998  Werner Koch,mobil,,,  (wk@tobold)
10073         * packet.h (count): Chnaged s2k count from byte to u32.
10074         * seckey-cert.c (do_check): Changed s2k algo 3 to 4, changed
10075         reading of count.
10076         * build-packet.c (do_secret_cert): ditto.
10077         * parse-packet.c (parse_certificate): ditto.
10079         * parse-packet.c (parse_symkeyenc): New.
10080         * build-packet.c (do_symkey_enc): New.
10082 Thu Apr 30 16:33:34 1998  Werner Koch  (wk@isil.d.shuttle.de)
10084         * sign.c (clearsign_file): Fixed "Hash: " armor line.
10086 Tue Apr 28 14:27:42 1998  Werner Koch  (wk@isil.d.shuttle.de)
10088         * parse-packet.c (parse_subpkt): Some new types.
10090 Mon Apr 27 12:53:59 1998  Werner Koch  (wk@isil.d.shuttle.de)
10092         * g10.c (main): Add option --skip-verify.
10093         * mainproc.c (check_sig_and_print): Ditto.
10095         * g10.c (print_mds): Add output for Tiger.
10097         * sign.c (sign_file): Now uses partial length headers if used
10098         in canonical textmode (kludge to fix a bug).
10100         * parse-packet.c (parse_certificate): Changed BLOWFISH id.
10101         * pubkey-enc.c (get_session_key): Ditto.
10102         * seskey.c (make_session_key): Ditto.
10103         * seckey-cert.c (protect_secret_key,do_check): Add BLOWFISH160.
10105 Fri Apr 24 17:38:48 1998  Werner Koch,mobil,,,  (wk@tobold)
10107         * sig-check.c (check_key_signature): Add sig-class 0x14..0x17
10108         * keyedit.c (sign-key): Some changes to start with support of
10109         the above new sig-classes.
10111 Wed Apr 22 09:01:57 1998  Werner Koch,mobil,,,  (wk@tobold)
10113         * getkey.c (compare_name): add email matching
10115 Tue Apr 21 16:17:12 1998  Werner Koch,mobil,,,  (wk@tobold)
10117         * armor.c (armor_filter): fixed missing last LF before CSUM.
10119 Thu Apr  9 11:35:22 1998  Werner Koch  (wk@isil.d.shuttle.de)
10121         * seckey-cert.c (do_check): New; combines all the check functions
10122         into one.
10124         * sign.c: removed all key management functions
10125         * keyedit.c: New.
10127 Thu Apr  9 09:49:36 1998  Werner Koch  (wk@isil.d.shuttle.de)
10129         * import.c (chk_self_sigs): Changed an error message.
10131 Wed Apr  8 16:19:39 1998  Werner Koch  (wk@isil.d.shuttle.de)
10133         * packet.h: packet structs now uses structs from the pubkey,
10134         removed all copy operations from packet to pubkey structs.
10136 Wed Apr  8 13:40:33 1998  Werner Koch  (wk@isil.d.shuttle.de)
10138         * trustdb.c (verify_own_certs): Fixed "public key not found".
10140         * getkey.c (key_byname): New, combines public and secret key search.
10142         * pkclist.c (build_pkc_list): Add new arg usage, changed all callers.
10143         * skclist.c (build_skc_list): Likewise.
10145         * ringedit.c (find_keyblock, keyring_search2): Removed.
10147 Wed Apr  8 09:47:21 1998  Werner Koch  (wk@isil.d.shuttle.de)
10149         * sig-check.c (do_check): Applied small fix from Ulf Möller.
10151 Tue Apr  7 19:28:07 1998  Werner Koch  (wk@isil.d.shuttle.de)
10153         * cipher.c, encr-data.c, seckey-cert.c: Now uses cipher_xxxx
10154         functions instead of blowfish_xxx or cast_xxx
10156 Tue Apr  7 11:04:02 1998  Werner Koch  (wk@isil.d.shuttle.de)
10158         * Makefile.am (g10maint.o): Changed the way it is created.
10160 Mon Apr  6 11:17:08 1998  Werner Koch  (wk@isil.d.shuttle.de)
10162         * misc.c: New.
10163         * keygen.c (checksum,checksum_u16,checksum_mpi): Moved to misc.c
10164         * seckey-cert.c: Kludge for wrong ELG checksum implementation.
10166 Sat Apr  4 20:07:01 1998  Werner Koch  (wk@isil.d.shuttle.de)
10168         * cipher.c (cipher_filter): Support for CAST5
10169         * encr-data.c (decode_filter): Ditto.
10170         (decrypt_data): Ditto.
10171         * seskey.c (make_session_key): Ditto.
10172         * seckey-cert.c (check_elg, check_dsa): Ditto,
10173         (protect_secret_key): Ditto.
10174         * pubkey-enc.c (get_session_key): Ditto.
10175         * passphrase.c (hash_passphrase): Ditto.
10177 Thu Apr  2 20:22:35 1998  Werner Koch  (wk@isil.d.shuttle.de)
10179         * gpgd.c: New
10181 Thu Apr  2 10:38:16 1998  Werner Koch  (wk@isil.d.shuttle.de)
10183         * keygen.c (generate_keypair): Add valid_days stuff.
10184         * trustdb.c (check_trust): Add check for valid_days.
10186 Wed Apr  1 16:15:58 1998  Werner Koch  (wk@isil.d.shuttle.de)
10188         * keygen.c (generate_keypair): Addional question whether the
10189         selected large keysize is really needed.
10191 Wed Apr  1 15:56:33 1998  Werner Koch  (wk@isil.d.shuttle.de)
10193         * seckey-cert.c (protect_secret_key): merged protect_xxx to here.
10195 Wed Apr  1 10:34:46 1998  Werner Koch  (wk@isil.d.shuttle.de)
10197         * Makefile.am (g10maint.c): Changed creation rule, so that it works
10198         on FreeBSD (missing CFLAGS).
10200         * parse-packet.c (parse_subkey): Removed.
10202 Thu Mar 19 15:22:36 1998  Werner Koch  (wk@isil.d.shuttle.de)
10204         * ringedit.c (keyring_enum): Fixed problem with reading too
10205         many packets. Add support to read secret keyrings.
10207         * getkey.c (scan_keyring): Removed
10208         (lookup): New to replace scan_keyring.
10209         (scan_secret_keyring): Removed.
10210         (lookup_skc): New.
10212 Wed Mar 18 11:47:34 1998  Werner Koch  (wk@isil.d.shuttle.de)
10214         * ringedit.c (enum_keyblocks): New read mode 11.
10216         * keyid.c (elg_fingerprint_md): New and changed all other functions
10217         to call this if the packet version is 4 or above.
10219 Tue Mar 17 20:46:16 1998  Werner Koch  (wk@isil.d.shuttle.de)
10221         * parse-packet.c (parse_certificate): Add listing support for subkeys.
10223 Tue Mar 17 20:32:22 1998  Werner Koch  (wk@isil.d.shuttle.de)
10225         * armor.c (is_armored): Allow marker packet.
10227 Thu Mar 12 13:36:49 1998  Werner Koch  (wk@isil.d.shuttle.de)
10229         * trustdb.c (check_trust): Checks timestamp of pubkey.
10230         * sig-check. (do_check): Compares timestamps.
10232 Tue Mar 10 17:01:56 1998  Werner Koch  (wk@isil.d.shuttle.de)
10234         * g10.c (main): Add call to init_signals.
10235         * signal.c: New.
10237 Mon Mar  9 12:43:42 1998  Werner Koch  (wk@isil.d.shuttle.de)
10239         * dsa.c: New
10240         * packet.h, free-packet.c, parse-packet.c : Add support for DSA
10241         * sig-check.c, getkey.c, keyid.c, ringedit.c: Ditto.
10242         * seckey-cert.c: Ditto.
10244         * packet.h : Moved .digest_algo of signature packets to outer
10245         structure. Changed all references
10247 Sun Mar  8 13:06:42 1998  Werner Koch  (wk@isil.d.shuttle.de)
10249         * openfile.c : Support for stdout filename "-".
10251         * mainproc.c (check_sig_and_print): Enhanced status output:
10252         * status.c (write_status_text): New.
10254 Fri Mar  6 16:10:54 1998  Werner Koch  (wk@isil.d.shuttle.de)
10256         * kbnode.c (clone_kbnode): Fixed private_flag.
10258         * mainproc.c (list_node): Output of string "Revoked" as user-id.
10260 Fri Mar  6 14:26:39 1998  Werner Koch  (wk@isil.d.shuttle.de)
10262         * g10.c (main): Add userids to "-kv" and cleaned up this stuff.
10264 Fri Mar  6 12:45:58 1998  Werner Koch  (wk@isil.d.shuttle.de)
10266         * g10.c (main): Changed semantics of the list-... commands
10267         and added a new one. Removed option "-d"
10269         * decrypt.c: New.
10271         * trustdb.c (init_trustdb): Autocreate directory only if it ends
10272         in "/.gnupg".
10274 Thu Mar  5 12:12:11 1998  Werner Koch  (wk@isil.d.shuttle.de)
10276         * mainproc.c (do_proc_packets): New. Common part of proc_packet.
10277         (proc_signature_packets): special version to handle signature data.
10278         * verify.c: New.
10279         * g10.c (aVerify): New.
10280         * plaintext.c (hash_datafiles): New.
10281         * compress.c (handle_compressed): Add callback arg, changed caller.
10283 Thu Mar  5 10:20:06 1998  Werner Koch  (wk@isil.d.shuttle.de)
10285         * g10.c: Is nom the common source for gpg and gpgm
10286         * g10maint.c: Removed
10287         * Makefile.am: Add rule to build g10maint.c
10289 Thu Mar  5 08:43:59 1998  Werner Koch  (wk@isil.d.shuttle.de)
10291         * g10.c (main): Changed the way clear text sigs are faked.
10293 Wed Mar  4 19:47:37 1998  Werner Koch  (wk@isil.d.shuttle.de)
10295         * g10maint.c (aMuttKeyList): New
10296         * keylist.c: New.
10298 Wed Mar  4 17:20:33 1998  Werner Koch  (wk@isil.d.shuttle.de)
10300         * getkey.c (get_pubkey_byname): Kludge to allow 0x prefix.
10302 Tue Mar  3 13:46:55 1998  Werner Koch  (wk@isil.d.shuttle.de)
10304         * g10maint.c (main): New option --gen-random.
10306 Tue Mar  3 09:50:08 1998  Werner Koch  (wk@isil.d.shuttle.de)
10308         * g10.c (aDeleteSecretKey): New.
10309         (aEditSig): Add option "--edit-key" as synonym for "--edit-sig".
10310         (aDeleteSecretKey): New.
10311         * getkey.c (seckey_available): New.
10312         * sign.c (delete_key): Enhanced to delete secret keys, changed all
10313         callers.
10315 Mon Mar  2 21:23:48 1998  Werner Koch  (wk@isil.d.shuttle.de)
10317         * pkc_list.c (build_pkc_list): Add interactive input of user ID.
10319 Mon Mar  2 20:54:05 1998  Werner Koch  (wk@isil.d.shuttle.de)
10321         * pkclist.c (do_we_trust_pre): New.
10322         (add_ownertrust): Add message.
10323         * trustdb.c (enum_trust_web): Quick fix.
10325 Mon Mar  2 13:50:53 1998  Werner Koch  (wk@isil.d.shuttle.de)
10327         * g10.c (main): New action aDeleteKey
10328         * sign.c (delete_key): New.
10330 Sun Mar  1 16:38:58 1998  Werner Koch  (wk@isil.d.shuttle.de)
10332         * trustdb.c (do_check): No returns TRUST_UNDEFINED instead of
10333         eof error.
10335 Fri Feb 27 18:14:03 1998  Werner Koch  (wk@isil.d.shuttle.de)
10337         * armor.c (find_header): Removed trailing CR on headers.
10339 Fri Feb 27 18:02:48 1998  Werner Koch  (wk@isil.d.shuttle.de)
10341         * ringedit.c (keyring_search) [MINGW32]: Open and close file here
10342         because rename does not work on open files. Chnaged callers.
10344 Fri Feb 27 16:43:11 1998  Werner Koch  (wk@isil.d.shuttle.de)
10346         * sig-check.c (do_check): Add an md_enable.
10347         * mainproc.c (do_check_sig): Use md_open in case of detached sig
10348         (proc_tree): Take detached sigs into account.
10350 Fri Feb 27 15:22:46 1998  Werner Koch  (wk@isil.d.shuttle.de)
10352         * g10.c (main): Make use of GNUPGHOME envvar.
10353         * g10main.c (main): Ditto.
10355 Wed Feb 25 11:40:04 1998  Werner Koch  (wk@isil.d.shuttle.de)
10357         * plaintext.c (ask_for_detached_datafile): add opt.verbose to
10358         info output.
10360         * openfile.c (open_sigfile): Try also name ending in ".asc"
10362 Wed Feb 25 08:41:00 1998  Werner Koch  (wk@isil.d.shuttle.de)
10364         * keygen.c (generate_keypair): Fixed memory overflow.
10366 Tue Feb 24 15:51:55 1998  Werner Koch  (wk@isil.d.shuttle.de)
10368         * parse-packet.c (parse_certificate): Support for S2K.
10369         * build-packet.c (do_secret_cert): Ditto.
10370         * keygen.c (gen_elg): Ditto.
10371         * seckey-cert.c (check_elg): Ditto
10372         (protect_elg): Ditto.
10373         * sign.c (chnage_passphrase): Ditto.
10374         * passphrase.c (get_passphrase_hash): Support for a salt and
10375         changed all callers.
10376         (make_dek_from_passphrase): Ditto.
10378 Tue Feb 24 12:30:56 1998  Werner Koch  (wk@isil.d.shuttle.de)
10380         * build-packet.c (hash_public_cert): Disabled debug output.
10382 Fri Feb 20 17:22:28 1998  Werner Koch  (wk@isil.d.shuttle.de)
10384         * trustdb.c (init_trustdb) [MINGW32]: Removed 2nd mkdir arg.
10385         (keyring_copy) [MINGW32]: Add a remove prior to the renames.
10387 Wed Feb 18 18:39:02 1998  Werner Koch  (wk@isil.d.shuttle.de)
10389         * Makefile.am (OMIT_DEPENDENCIES): New.
10391         * rsa.c: Replaced log_bug by BUG.
10393 Wed Feb 18 13:35:58 1998  Werner Koch  (wk@isil.d.shuttle.de)
10395         * mainproc.c (do_check_sig): Now uses hash_public_cert.
10396         * parse-packet.c (parse_certificate): Removed hashing.
10397         * packet.h (public_cert): Removed hash variable.
10398         * free-packet.c (copy_public_cert, free_public_cert): Likewise.
10400         * sig-check.c (check_key_signatures): Changed semantics.
10402 Wed Feb 18 12:11:28 1998  Werner Koch  (wk@isil.d.shuttle.de)
10404         * trustdb.c (do_check): Add handling for revocation certificates.
10405         (build_sigrecs): Ditto.
10406         (check_sigs): Ditto.
10408 Wed Feb 18 09:31:04 1998  Werner Koch  (wk@isil.d.shuttle.de)
10410         * armor.c (armor_filter): Add afx->hdrlines.
10411         * revoke.c (gen_revoke): Add comment line.
10412         * dearmor.c (enarmor_file): Ditto.
10414         * sig-check.c (check_key_signature): Add handling for class 0x20.
10415         * mainproc.c : Ditto.
10417 Tue Feb 17 21:24:17 1998  Werner Koch  (wk@isil.d.shuttle.de)
10419         * armor.c : Add header lines "...ARMORED FILE .."
10420         * dearmor.c (enarmor_file): New.
10421         * g10maint.c (main): New option "--enarmor"
10423 Tue Feb 17 19:03:33 1998  Werner Koch  (wk@isil.d.shuttle.de)
10425         * mainproc.c : Changed a lot, because the packets are now stored
10426         a simple linlked list and not anymore in a complicatd tree structure.
10428 Tue Feb 17 10:14:48 1998  Werner Koch  (wk@isil.d.shuttle.de)
10430         * free_packet.c (cmp_public_certs): New.
10431         (cmp_user_ids): New.
10433         * kbnode.c (clone_kbnode): New.
10434         (release_kbnode): Add clone support.
10436         * ringedit.c (find_keyblock_bypkc): New.
10438         * sign.c (remove_keysigs): Self signatures are now skipped,
10439         changed arguments and all callers.
10441         * import.c : Add functionality.
10443 Tue Feb 17 09:31:40 1998  Werner Koch  (wk@isil.d.shuttle.de)
10445         * options.h (homedir): New option.
10446         * g10.c, g10maint.c, getkey.c, keygen.c, trustdb.c (opt.homedir): New.
10448         * trustdb.c (init_trustdb): mkdir for hoem directory
10449         (sign_private_data): Renamed "sig" to "g10.sig"
10451 Mon Feb 16 20:02:03 1998  Werner Koch  (wk@isil.d.shuttle.de)
10453         * kbnode.c (commit_kbnode): New.
10454         (delete_kbnode): removed unused first arg. Changed all Callers.
10456         * ringedit.c (keyblock_resource_name): New.
10457         (get_keyblock_handle): NULL for filename returns default resource.
10459 Mon Feb 16 19:38:48 1998  Werner Koch  (wk@isil.d.shuttle.de)
10461         * sig-check.s (check_key_signature): Now uses the supplied
10462         public key to check the signature and not any more the one
10463         from the getkey.c
10464         (do_check): New.
10465         (check_signature): Most work moved to do_check.
10467 Mon Feb 16 14:48:57 1998  Werner Koch  (wk@isil.d.shuttle.de)
10469         * armor.c (find_header): Fixed another bug.
10471 Mon Feb 16 12:18:34 1998  Werner Koch  (wk@isil.d.shuttle.de)
10473         * getkey.c (scan_keyring): Add handling of compressed keyrings.
10475 Mon Feb 16 10:44:51 1998  Werner Koch  (wk@isil.d.shuttle.de)
10477         * g10.c, g10maint.c (strusage): Rewrote.
10478         (build_list): New
10480 Mon Feb 16 08:58:41 1998  Werner Koch  (wk@isil.d.shuttle.de)
10482         * armor.c (use_armor): New.
10484 Sat Feb 14 14:30:57 1998  Werner Koch  (wk@isil.d.shuttle.de)
10486         * mainproc.c (proc_tree): Sigclass fix.
10488 Sat Feb 14 14:16:33 1998  Werner Koch  (wk@isil.d.shuttle.de)
10490         * armor.c (armor_filter): Changed version and comment string.
10491         * encode.c, sign.c, keygen.c: Changed all comment packet strings.
10493 Sat Feb 14 12:39:24 1998  Werner Koch  (wk@isil.d.shuttle.de)
10495         * g10.c (aGenRevoke): New command.
10496         * revoke.c: New.
10497         * sign.c (make_keysig_packet): Add support for sigclass 0x20.
10499 Fri Feb 13 20:18:14 1998  Werner Koch  (wk@isil.d.shuttle.de)
10501         * ringedit.c (enum_keyblocks, keyring_enum): New.
10503 Fri Feb 13 19:33:40 1998  Werner Koch  (wk@isil.d.shuttle.de)
10505         * export.c: Add functionality.
10507         * keygen.c (generate_keypair): Moved the leading comment behind the
10508         key packet.
10509         * kbnode.c (walk_kbnode): Fixed.
10511         * g10.c (main): listing armored keys now work.
10513 Fri Feb 13 16:17:43 1998  Werner Koch  (wk@isil.d.shuttle.de)
10515         * parse-packet.c (parse_publickey, parse_signature): Fixed calls
10516         to mpi_read used for ELG b.
10518 Fri Feb 13 15:13:23 1998  Werner Koch  (wk@isil.d.shuttle.de)
10520         * g10.c (main): changed formatting of help output.
10522 Thu Feb 12 22:24:42 1998  Werner Koch  (wk@frodo)
10524         * pubkey-enc.c (get_session_key): rewritten
10527  Copyright 1998,1999,2000,2001,2002,2003,2004,2005,
10528            2006,2007,2008,2009 Free Software Foundation, Inc.
10530  This file is free software; as a special exception the author gives
10531  unlimited permission to copy and/or distribute it, with or without
10532  modifications, as long as this notice is preserved.
10534  This file is distributed in the hope that it will be useful, but
10535  WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
10536  implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.