W32 fix
[gnupg.git] / g10 / ChangeLog
blob22d239715a1c688a07284378f31077b7096ddd59
1 2008-12-09  Werner Koch  <wk@g10code.com>
3         * keygen.c (proc_parameter_file): Check that key and subkey usages
4         are allowed.
6 2008-12-09  David Shaw  <dshaw@jabberwocky.com>  (wk)
8         * trustdb.c (validate_one_keyblock): Fix the trust signature
9         calculations so that we lower the trust depth of signatures to fit
10         within the current chain, rather than discarding any signature
11         that does not fit within the trust depth.
13 2008-12-09  Werner Koch  <wk@g10code.com>
15         * keyserver.c (show_prompt): Flush stdout.
17         * gpg.c (open_info_file): Add arg BINARY and adjust callers.
19         * gpg.c (main): Call i18n_init before init_common_subsystems.
20         * gpgv.c (main): Ditto.
22         * keylist.c (set_attrib_fd): Do not close ATTRIB_FP if it is the
23         log stream. 
24         (set_attrib_fd) [W32]: Set to binary mode.
25         (dump_attribs): Flush the stream after writing.
27 2008-12-05  Werner Koch  <wk@g10code.com>
29         * call-agent.c (percent_plus_escape): Rename to
30         my_percent_plus_escape and also escape the percent character.
31         Change all callers.
33 2008-11-18  Werner Koch  <wk@g10code.com>
35         * gpg.c (build_lib_list): Remove.
36         (make_libversion): New.
37         (my_strusage): Use it.
38         * gpgv.c (make_libversion): New.
39         (my_strusage): Print libgcrypt version.
41 2008-11-13  Werner Koch  <wk@g10code.com>
43         * gpgv.c: Use new ARGPARSE macros and re-indent.
45 2008-11-11  Werner Koch  <wk@g10code.com>
47         * gpg.c (opts): Use new ARGPARSE macros for clarity.
49 2008-10-24  Werner Koch  <wk@g10code.com>
51         * keyedit.c (change_passphrase): Clear passphrase cache.
53 2008-10-20  Werner Koch  <wk@g10code.com>
55         * gpgv.c: Mark all args of the stub fucntions as unused.
57         * card-util.c (generate_card_keys): Remove unused arg SERIALNO and
58         adjust caller.
59         
60         * build-packet.c (write_sign_packet_header): Mark unused arg.
61         * gpg.c (gpg_init_default_ctrl, gpg_deinit_default_ctrl): Ditto.
62         * getkey.c (skip_unusable): Ditto.
63         (write_version): Ditto.
64         * keydb.c (keydb_locate_writable): Ditto.
65         * keyring.c (update_offset_hash_table): Ditto.
66         (keyring_lock): Ditto.
67         * misc.c (register_secured_file): Ditto.
68         (unregister_secured_file): Ditto.
69         (is_secured_file): Ditto.
70         (is_secured_filename): Ditto.
71         * parse-packet.c (parse_marker): Ditto.
72         (parse_key, parse_attribute): Ditto.
73         (parse_trust, parse_compressed, parse_mdc, parse_gpg_control): Ditto.
74         * cpr.c (progress_cb): Ditto.
75         * passphrase.c (passphrase_clear_cache): Ditto.
76         (ask_passphrase): Ditto.
77         * keyedit.c (keyedit_completion): Ditto.
78         * import.c (import_revoke_cert): Ditto.
79         (chk_self_sigs, delete_inv_parts, append_uid): Ditto.
80         (merge_sigs, merge_keysigs, append_key): Ditto.
81         * trustdb.c (list_trust_path): Ditto.
82         (enum_cert_paths, enum_cert_paths_print): Ditto.
83         * tdbdump.c (list_trustdb): Ditto.
84         * keygen.c (keygen_upd_std_prefs): Ditto.
85         (genhelp_factors): Ditto.
86         * call-agent.c (agent_scd_setattr): Ditto.
87         (agent_scd_writekey, agent_scd_change_pin, agent_scd_genkey): Ditto.
88         (agent_clear_pin_cache): Ditto.
90         * server.c (option_handler): Mark non yet used arg.
91         (input_notify, output_notify): Ditto.
92         (cmd_recipient, cmd_signer, cmd_encrypt, cmd_decrypt, cmd_verify) 
93         (cmd_sign, cmd_import, cmd_export, cmd_delkeys, do_listkeys) 
94         (cmd_genkey): Ditto.
95         * verify.c (gpg_verify): Ditto.
97 2008-10-17  Werner Koch  <wk@g10code.com>
99         * main.h (idea_cipher_warn): Use do while construct in place of an
100         empty definition.
102 2008-10-03  David Shaw  <dshaw@jabberwocky.com>
104         * main.h, mainproc.c (check_sig_and_print)
105         * keylist.c (list_keyblock_print)
106         * pkclist.c (do_edit_ownertrust)
107         * keyedit.c (menu_showphoto)
108         * photoid.c (generate_photo_id, show_photos)
109         * misc.c (pct_expando): Add %v and %V expandos so
110          that displaying photo IDs can show the attribute validity
111          tag (%v) and string (%V).  Originally by Daniel Gillmor.
113 2008-09-29  Werner Koch  <wk@g10code.com>
115         * gpg.c (main): Remove -sat kludge.  Note that we printed a
116         warning for two years.
118         * seskey.c (encode_md_value): Remove extra gcry_md_test_algo since
119         it is not needed with Libgcrypt 1.4.
120         * skclist.c (random_is_faked): Simplify.
121         * sign.c (match_dsa_hash): Remove runtime check for SHA224.
122         * gpg.c (print_mds): Use GCRY_MD_SHA224 constant.
124 2008-09-25  David Shaw  <dshaw@jabberwocky.com>
126         * keyedit.c (keyedit_menu): Fix bug where a modified keyring loses
127         its modified status after a "clean" or "minimize" that doesn't
128         need to do anything.
130 2008-09-25  Werner Koch  <wk@g10code.com>
132         * parse-packet.c (parse): Remove special treatment for compressed
133         new style packets.  Fixes bug#931.
134         
135         * card-util.c (change_pin): Support setting of the reset code.
137 2008-09-24  Werner Koch  <wk@g10code.com>
139         * call-agent.h (struct agent_card_info_s): Add field IS_V2.
140         * call-agent.c (learn_status_cb): That that field.
142         * card-util.c (change_pin): Rename first arg to UNBLOCK_v2 and use
143         it this way.
144         (card_edit): Add new command UNBLOCK.
146 2008-09-23  David Shaw  <dshaw@jabberwocky.com>
148         * pkclist.c (select_algo_from_prefs): Redo function to rank prefs
149         and pick a consensus winner across all keys.
151 2008-09-16  Werner Koch  <wk@g10code.com>
153         * card-util.c (fpr_is_ff): New.
154         (card_status): Do not print general key info for an all-ff fpr.
155         (change_login, change_private_do): Factor common code out to ...
156         (get_data_from_file): .. new.
157         (change_cert): New.
158         (card_edit): Add command "writecert".
159         * call-agent.c (writecert_parm_s): New.
160         (inq_writecert_parms, agent_scd_writecert): New.
162 2008-09-04  David Shaw  <dshaw@jabberwocky.com>
164         * keyserver.c (keyserver_import_cert): Allow keyserver URLs in
165         addition to full URLs in CERT records.
167 2008-08-11  Werner Koch  <wk@g10code.com>
169         * keygen.c (ask_expire_interval): Check for time overflow of an
170         u32.  Fixes bug #947.
172 2008-08-01  Werner Koch  <wk@g10code.com>
174         * tdbio.c (open_db) [!EROFS]: Move closing parens out of the
175         ifdef.  Reported by Ken Takusagawa.
177 2008-06-25  Marcus Brinkmann  <marcus@g10code.de>
179         * gpg.c (enum cmd_and_opt_values): Remove option
180         oEnableW32HandleTranslation.
181         (opts): Remove option --enable-w32-handle-translation.
182         (main): Remove variable w32_handle_translation.
184 2008-06-19  Werner Koch  <wk@g10code.com>
186         * gpg.c (gpgconf_list): Add "group".
188 2008-06-18  Marcus Brinkmann  <marcus@g10code.de>
190         * gpg.c (enum cmd_and_opt_values): New option
191         oEnableW32HandleTranslation.
192         (opts): New option --enable-w32-handle-translation.
193         (main): New variable w32_handle_translation to keep track of
194         option.
196 2008-06-16  Werner Koch  <wk@g10code.com>
198         * keygen.c (output_control_s): Add ASK_PASSPHRASE.
199         (read_parameter_file): Add commands %ask-passphrase and
200         %no-ask-passphrase.
202 2008-06-11  Werner Koch  <wk@g10code.com>
204         * gpg.c: Make --fixed-list-mode a dummy.
205         * options.h (struct): Removed FIXED_LIST_MODE.
206         * keyid.c (colon_strtime, colon_datestr_from_pk) 
207         (colon_datestr_from_sk, colon_datestr_from_sig) 
208         (colon_expirestr_from_sig): Remove fixed_list_mode case.
209         * keylist.c (list_keyblock_colon): Ditto.  Remove all now unsed
210         code and reindent.
212 2008-05-31  Werner Koch  <wk@g10code.com>
214         * keygen.c (ask_user_id): Change the string printed as header of
215         the user ID generation.  Use code to not break existing
216         translations.  Suggested by Eric Tetz.
218 2008-05-08  Werner Koch  <wk@g10code.com>
220         * sig-check.c (do_check_messages): Print a revocation diagnostic
221         in verbose mode.
223 2008-05-07  Werner Koch  <wk@g10code.com>
225         * gpg.c: New command --locate-keys.  New options --with-sig-list
226         and --with-sig-check.
227         * keylist.c (locate_one): New.
228         (public_key_list): Add arg LOCATE_MODE and use locate_one.
229         * getkey.c (get_pubkey_byname): Fix nodefault case.  Add option
230         RETCTX, change all callers.
231         (struct getkey_ctx_s): Add field extra_ptr;
232         (get_pubkey_end): Free it.
234 2008-04-18  Werner Koch  <wk@g10code.com>
236         * misc.c (map_cipher_openpgp_to_gcry, map_cipher_gcry_to_openpgp) 
237         (openpgp_cipher_test_algo): Add camellia-192.
238         (openpgp_cipher_blocklen): New.
239         * parse-packet.c (parse_key): Use new function here.
241 2008-04-15  David Shaw  <dshaw@jabberwocky.com>
243         * getkey.c (merge_selfsigs_subkey): If there are multiple 0x19
244         backsigs, take the most recent one.
246 2008-04-08  Werner Koch  <wk@g10code.com>
248         * options.h (opt): Add AKL_NODEFAULT and AKL_LOCAL.
249         * getkey.c (parse_auto_key_locate): Parse them.
250         (get_pubkey_byname): Implement them.  Add arg NO_AKL and use that
251         in all cases where a local key is expected.
252         * import.c (import_one): Fill in the fingerprint in all cases.
253         Use log_get_stream.
254         * keyserver.c (keyserver_import_pka): Set FPR to NULL on error.
255         Return G10ERR_NO_PUBKEY if no PKA info is available or no key URI
256         is given in the PKA record..
257         (keyserver_import_cert): Return G10ERR_NO_PUBKEY if a CERT record
258         was not found.
260         * getkey.c (get_pubkey_byname): Release FPR in the error case.
261         Continue with next mechanism on error.  Better diagnostics.
263 2008-04-07  Werner Koch  <wk@g10code.com>
265         * keyserver.c (parse_keyserver_uri): Allow a default host name.
267         * getkey.c (get_pubkey_byname): Replace sprintf by bin2hex.
269 2008-04-02  Werner Koch  <wk@g10code.com>
271         * gpg.c (main): Do not allow DSA2 with a too old Libgcrypt.
273 2008-03-26  Werner Koch  <wk@g10code.com>
275         * tdbio.c (lookup_hashtable): Make cmp args const.
276         (cmp_trec_fpr): Make FPR const.
277         (tdbio_search_trust_byfpr): Remove cast.
279 2008-03-25  Werner Koch  <wk@g10code.com>
281         * keyserver.c (parse_keyrec): Take care of char defaulting to
282         unsigned when using hextobyte.
284 2008-03-25  David Shaw  <dshaw@jabberwocky.com>  (wk)
286         * import.c (collapse_uids): Fix bug 894: possible memory
287         corruption around deduplication of user IDs.
289 2008-03-25  Werner Koch  <wk@g10code.com>
291         * parse-packet.c (parse_key): Parse a secret key encrypted with
292         Camellia.
294         * options.skel: Make the default keyserver keys.gnupg.net.
296 2008-03-18  Werner Koch  <wk@g10code.com>
298         * seckey-cert.c (do_check): Use GCRYMPI_FMT_PGP for v3 keys.
299         Reported by Petr Cerny.
301 2008-03-13  Werner Koch  <wk@g10code.com>
303         * passphrase.c (PROMPTSTRING): Change string to me more similar to
304         the X.509 prompt.
306 2008-02-26  Werner Koch  <wk@g10code.com>
308         * getkey.c (get_pubkey_byname): Fix comment.
310 2008-02-14  Werner Koch  <wk@g10code.com>
312         * call-agent.c (default_inq_cb): New.
313         (agent_learn, agent_scd_getattr, agent_scd_pksign) 
314         (agent_scd_pkdecrypt, agent_scd_change_pin, agent_scd_checkpin) 
315         (agent_get_passphrase, agent_clear_passphrase): Use new callback.
316         (inq_writekey_parms): Fall back to the new callback for other
317         inquiries. 
318         (start_agent): Tell agent that we accept pinentry notifications.
320 2008-02-11  Werner Koch  <wk@g10code.com>
322         * server.c (cmd_getinfo): New. 
323         (register_commands): Register GETINFO.
325 2008-02-09  Marcus Brinkmann  <marcus@g10code.de>
327         * gpg.c (main): New variable default_configname.  Use it if
328         save_configname is NULL (can happen if default configfile does
329         not exist).  Move default configname determination to ...
330         (get_default_configname): ... this new function.
332 2008-01-30  Werner Koch  <wk@g10code.com>
334         * keydb.c (maybe_create_keyring): Fixed last change.
335         * tdbio.c (tdbio_set_dbname): Also test for forward slash.
337 2008-01-29  Werner Koch  <wk@g10code.com>
339         * keydb.c (maybe_create_keyring): Take care of a missing slash.
340         (maybe_create_keyring) [W32]: Also test for forward slash.
342 2008-01-26  Werner Koch  <wk@g10code.com>
344         * card-util.c (get_manufacturer): Add vendor 0004.
346 2008-01-02  Werner Koch  <wk@g10code.com>
348         * gpg.c: Add --logger-file as an alias for log-file.
350 2007-12-14  Werner Koch  <wk@g10code.com>
352         * gpg.c (main): Set opt.no_homedir_creation during the first option
353         parsing pass.
355 2007-12-12  Werner Koch  <wk@g10code.com>
357         * misc.c (print_pubkey_algo_note): Print a warning if a type 20
358         key is used.
359         (openpgp_pk_test_algo, openpgp_pk_test_algo2) 
360         (openpgp_pk_algo_usage): Allow type 20 keys only in rfc2440 mode.
362 2007-12-12  David Shaw  <dshaw@jabberwocky.com>  (wk)
364         * trustdb.c (sanitize_regexp): New.  Protect against dangerous
365         regexps (malloc bombs) by force-commenting any characters aside
366         from the ones we explicitly want.
367         (check_regexp): Use it here before passing the regexp to
368         regcomp().
370 2007-12-12  Werner Koch  <wk@g10code.com>
372         * misc.c (map_cipher_openpgp_to_gcry): New.  Used to map Camellia
373         algorithms to Gcrypt.
374         (openpgp_cipher_test_algo): Call new map function.  Replace
375         all remaining calls to gcry_cipher_test_algo by a call to this.
376         (openpgp_cipher_algo_name): New.  Replace all remaining calls to
377         gcry_cipher_algo_name by a call to this.
378         (map_cipher_gcry_to_openpgp): New.
379         (string_to_cipher_algo): Use it.
380         * gpg.c (main): Print a warning if Camellia support is build in.
381         
382         * gpg.c (print_algo_names): New.  From the 1.4 branch by David.
383         (list_config): Use it here for the "ciphername" and "digestname"
384         config items so we can get a script-parseable list of the names.
386         * parse-packet.c (parse_onepass_sig): Sigclass is hex, so include
387         the 0x.
389         * sign.c (match_dsa_hash): Remove conditional builds dending on
390         USE_SHAxxx.  We don't need this becuase it can be expected that
391         libgcrypt provides it.  However we need to runtime test for SHA244
392         becuase that is only available with libgcrypt 2.4.
394 2007-12-11  Werner Koch  <wk@g10code.com>
396         * mainproc.c (proc_pubkey_enc): Allow type 20 Elgamal key for
397         decryption.
399 2007-12-10  Werner Koch  <wk@g10code.com>
401         * import.c (auto_create_card_key_stub): Do not clear the entire
402         fingerprint.  This finally makes the stub creation work.  My past
403         tests seemed to work because there was a key with a all zero
404         fingerprint available (Elgamal signing keys).
406 2007-12-08  Werner Koch  <wk@g10code.com>
408         * misc.c (openpgp_pk_algo_usage): Allow Elgamal type 20 for
409         encryption.
411 2007-12-04  Werner Koch  <wk@g10code.com>
413         * helptext.c (get_help_from_file): New.
414         (display_online_help): Use it to geting the help through a file.
415         (helptexts): Remove.
417 2007-12-03  Werner Koch  <wk@g10code.com>
419         * keygen.c (ask_key_flags): Add a translation remark and implement
420         a workaround.
422         * gpg.c (reopen_std): Moved to ../common and renamed to
423         gnupg_reopen_std.
424         
425         * gpg.c: Remove second inclusion of fcntl.h.
427 2007-11-19  Werner Koch  <wk@g10code.com>
429         * keyedit.c (keyedit_menu): String grammar fix.
431 2007-11-15  Werner Koch  <wk@g10code.com>
433         * gpg.c (main): New option --xauthority.
434         * call-agent.c (start_agent): Adjust changed start_new_gpg_agent.
436 2007-11-12  Werner Koch  <wk@g10code.com>
438         * cpr.c (do_get_from_fd): s/bool/getbool/ to overcome problems
439         with Mac OS 10.5 which seems to include stdbool.h silently.
441 2007-11-07  Werner Koch  <wk@g10code.com>
443         Replace all includes of errors.h by status.h (found in common/).
445         * status.h: Remove.
446         * status.h: Move prototypes to main.h.
447         * status.c:  Rename to ..
448         * cpr.c: .. this.
449         (get_status_string): Remove.  We take this now from common/.
451 2007-10-25  David Shaw  <dshaw@jabberwocky.com>  (wk)
453         From 1.4 (October):
455         * gpg.c (main): Add --require-cross-certification to
456         --openpgp/--rfc4880 mode.
458         * gpg.c (main): Disable --rfc2440-text and --force-v3-sigs by
459         default.  Enable --require-cross-certification by default.
460         --openpgp (--rfc4880) is the same as --rfc2440 except with
461         "--enable-dsa2 --no-rfc2440-text --escape-from-lines".
463         * misc.c (compliance_option_string, compliance_failure): Minor
464         cleanup.
466         * armor.c (is_armor_header): Comment about 4880.
468         * options.h, gpg.c (main): Add --rfc4880, and make --openpgp an
469         alias to it.  --rfc2440 now stands alone.  For now, use the old
470         2440 defaults for 4880.
471         * misc.c (compliance_option_string): Ditto.
472         
473         * keyedit.c (keyedit_menu): Use compliance_option_string() instead
474         of printing the compliance modes here.
476 2007-10-25  David Shaw  <dshaw@jabberwocky.com>  (wk)
478         From 1.4 (September):
480         * import.c (collapse_uids): Significant speedup for de-duping user
481         IDs.
483 2007-10-25  David Shaw  <dshaw@jabberwocky.com>  (wk)
485         From 1.4 (July):
486         
487         * armor.c (parse_header_line): Improve test so that the header
488         test only allows "Hash" in the signed data section.
490         * armor.c (is_armor_tag): New.  Detect if an armor header matches
491         2440bis-21.
492         (parse_header_line): Call it here, as bis-21 requires warning the
493         user (but continuing to process the message) when seeing an
494         unknown header.
496         * encode.c (encode_crypt): Missed one call to
497         setup_plaintext_name().  This is bug#809.
499         * sign.c (mk_notation_policy_etc): Expect all sigs that this is
500         called for are >=v4.
501         (write_signature_packets, make_keysig_packet): Only call it for
502         >=v4 sigs.  This allows --force-v3-sigs and --force-v4-certs to
503         enable or disable notations, policies, and keyserver URLs.  This
504         is bug#800.
506 2007-10-19  Werner Koch  <wk@g10code.com>
508         * passphrase.c (passphrase_get): Use new utf8 switching fucntions.
510 2007-09-14  Werner Koch  <wk@g10code.com>
512         * gpg.c (build_lib_list): New.
513         (my_strusage): Print lib info.
515 2007-08-27  Werner Koch  <wk@g10code.com>
517         * trustdb.c (USE_INTERNAL_REGEX): Remove support.
519 2007-08-24  Werner Koch  <wk@g10code.com>
521         * keyring.c (keyring_register_filename): Use same_file_p().
523 2007-08-21  Werner Koch  <wk@g10code.com>
525         * misc.c (openpgp_md_test_algo): Remove rfc2440bis hash algorithms.
526         (openpgp_cipher_test_algo): Likewise for algos 5 and 6.
528 2007-08-02  Werner Koch  <wk@g10code.com>
530         * gpg.c: Include gc-opt-flags.h and remove their definition here.
532 2007-07-17  Werner Koch  <wk@g10code.com>
534         * gpg.c (gpgconf_list): Declare --encrypt-to and --default-key.
536         * card-util.c (get_manufacturer): Add the unmanaged S/N range.
538 2007-07-12  Werner Koch  <wk@g10code.com>
540         * gpg.c (main): Use translate_sys2libc_fd_int when passing an int
541         value.
542         * gpgv.c (main): Ditto.
544 2007-07-05  Werner Koch  <wk@g10code.com>
546         * card-util.c (card_generate_subkey, card_store_subkey): Enable
547         the code also for GnuPG-2.
549         * keygen.c (make_backsig): Add arg TIMESTAMP.
550         (write_keybinding): Add arg TIMESTAMP, pass it to make_backsig.
551         (write_direct_sig, write_selfsigs): Add arg TIMESTAMP.
552         (gen_elg, gen_dsa, gen_rsa): Add arg TIMESTAMP.
553         (do_create): Ditto.
554         (do_generate_keypair): Use the same timestamp for key creation
555         time and all key signatures. Return an error if write_direct_sig
556         for the secret key fails.
557         (generate_subkeypair): Ditto.
558         (gen_card_key): New arg TIMESTAMP.
559         (generate_card_subkeypair): Pass current time to gen_card_key.
560         (gen_card_key_with_backup): New arg TIMESTAMP.
561         (read_parameter_file): Add option Creation-Date.
562         (parse_creation_string): New.
563         (do_generate_keypair): Use the Creation-Date if available.
564         (save_unprotected_key_to_card): Use P for P and not D.
565         * call-agent.c (agent_scd_genkey): Add arg CREATETIME.
566         * keyedit.c (menu_backsign): Use the same timestamp for all backsigs.
568 2007-06-26  Werner Koch  <wk@g10code.com>
570         * openfile.c (try_make_homedir): Support W32; use standard_homedir.
572 2007-06-25  Werner Koch  <wk@g10code.com>
574         * gpg.c, gpgv.c: Include sysutils.h.
575         (main): Replace iobuf_translate_file_handle by
576         translate_sys2libc_fd.
577         
579 2007-06-21  Werner Koch  <wk@g10code.com>
581         * main.h: Include util.h.
583         * call-agent.c (start_agent): Factored almost all code out to
584         ../common/asshelp.c.
586         * gpg.h (ctrl_t): Remove.  It is now declared in ../common/util.h.
588 2007-06-20  Werner Koch  <wk@g10code.com>
590         * misc.c (setsysinfo, trap_unaligned): Remove.  It is also in
591         common/sysutils.c.
592         (disable_core_dumps, get_session_marker): 
594         * sign.c (sleep): Remove sleep wrapper.
596 2007-06-18  Marcus Brinkmann  <marcus@g10code.de>
598         * gpg.c (gpgconf_list): Percent escape output of --gpgconf-list.
600 2007-06-14  Werner Koch  <wk@g10code.com>
602         * call-agent.c (start_agent): Use gnupg_module_name.
604 2007-06-12  Werner Koch  <wk@g10code.com>
606         * openfile.c (copy_options_file): Use gnupg_datadir.
607         * misc.c (get_libexecdir): Remove.  Changed all callers to use
608         gnupg_libexecdir.
609         * gpg.c (check_permissions): Use gnupg_libdir.
611         * gpg.c (main): Replace some calls by init_common_subsystems.
612         * gpgv.c (main): Ditto.
614 2007-06-11  Werner Koch  <wk@g10code.com>
616         * Makefile.am (needed_libs): Use libcommonstd macro.
618         * gpgv.c (main) [W32]: Call pth_init.
619         * gpg.c (main) [W32]: Call pth_init.
621 2007-06-08  Werner Koch  <wk@g10code.com>
623         * Makefile.am (gpg2_LDADD): Syntax fix.
625 2007-06-06  Werner Koch  <wk@g10code.com>
627         * passphrase.c (passphrase_get) [!ENABLE_NLS]: Do not define
628         orig_codeset.
630         * Makefile.am (gpgv2_LDADD, gpg2_LDADD): Include LDADD before
631         libgcrypt.
633         * plaintext.c (handle_plaintext): Replace eof by eof_seen as W32's
634         io.h has a symbol with that name.
636         * misc.c: Do not include dynload.h.
637         (w32_shgetfolderpath): Remove. It is now in common/homedir.c.
639         * gpgv.c (i18n_init): Remove.
640         * gpg.c (i18n_init): Remove.
641         (main): Make --load-extension a dummy
643 2007-05-19  Marcus Brinkmann  <marcus@g10code.de>
645         * passphrase.c (passphrase_get): Use PACKAGE_GT, not PACKAGE.
647         * passphrase.c (passphrase_get): Free ORIG_CODESET on error.
649 2007-05-16  Werner Koch  <wk@g10code.com>
651         * sig-check.c (check_backsig): Check the digest algorithm before
652         using it.  Fixed bug 797.
654 2007-05-09  Werner Koch  <wk@g10code.com>
656         * openfile.c (overwrite_filep, open_outfile) [W32]: Need to use
657         just "nul".  Though, I am pretty sure that some MSDOS versions
658         grok the extra /dev/.
660 2007-05-07  Werner Koch  <wk@g10code.com>
662         * openfile.c (open_outfile, overwrite_filep) [W32]: Use "/dev/nul".
664 2007-05-02  David Shaw  <dshaw@jabberwocky.com>
666         * packet.h, mainproc.c (reset_literals_seen): New function to
667         reset the literals count.
669         * verify.c (verify_one_file), decrypt.c (decrypt_messages): Call
670         it here so we allow multiple literals in --multifile mode (in
671         different files - not concatenated together).
673 2007-04-26  Marcus Brinkmann  <marcus@g10code.de>
675         * passphrase.c (passphrase_to_dek): Write missing passphrase
676         status message in case of cancellation.
678 2007-04-16  Werner Koch  <wk@g10code.com>
680         * build-packet.c (mpi_write): Made buffer a bit larger.  Reported
681         by Alexander Feigl.
683 2007-04-13  Werner Koch  <wk@g10code.com>
685         * call-agent.c (start_agent): Don't use log_error when using the
686         fallback hack to start the agent.  This is bug 782.
688 2007-04-05  David Shaw  <dshaw@jabberwocky.com>
690         From STABLE-BRANCH-1-4
692         * parse-packet.c (parse_marker): New.  Enforce that the marker
693         contains 'P', 'G', 'P', and nothing but.
694         (parse): Call it here.
695         (skip_packet): No longer need to handle marker packets here.
697 2007-03-14  David Shaw  <dshaw@jabberwocky.com>
699         From STABLE-BRANCH-1-4
701         * keyserver.c: Windows Vista doesn't grok X_OK and so fails
702         access() tests.  Previous versions interpreted X_OK as F_OK
703         anyway, so we'll just use F_OK directly.
705 2007-03-09  David Shaw  <dshaw@jabberwocky.com>
707         From STABLE-BRANCH-1-4
709         * parse-packet.c (parse_signature): It's hex.
711         * getkey.c (merge_selfsigs_subkey): Avoid listing the contents of
712         a backsig when list mode is on.  Noted by Timo Schulz.
714 2007-03-08  Werner Koch  <wk@g10code.com>
716         * plaintext.c (handle_plaintext): Add two extra fflush for stdout.
718 2007-03-08  David Shaw  <dshaw@jabberwocky.com>  (wk)
720         * keyedit.c (keyedit_menu): If we modify the keyblock (via
721         fix_keyblock() or collapse_uids()) make sure we reprocess the
722         keyblock so the flags are correct.  Noted by Robin H. Johnson.
724         * getkey.c (fixup_uidnode): Properly clear flags that don't apply
725         to us (revoked, expired) so that we can reprocess a uid.
727 2007-03-05  Werner Koch  <wk@g10code.com>
729         Converted this file to UTF-8.
730         
731         Ported David and my multiple messages changes from 1.4.7.
733         * options.h, gpg.c (main), mainproc.c (check_sig_and_print): Allow
734         multiple sig verification again as this is protected via the
735         multiple-messages code.  New option --allow-multiple-messages and
736         --no variant.
737         * status.h (STATUS_ERROR): New status code.
738         * status.c (get_status_string): Ditto.
739         * mainproc.c (proc_plaintext): Emit it if multiple messages are
740         detected. Error out if more than one plaintext packet is
741         encountered.    
742         * mainproc.c (literals_seen): New.
744 2007-02-26  Werner Koch  <wk@g10code.com>
746         * gpg.c (main): Add verify option show-primary-uid-only.
747         * options.h (VERIFY_SHOW_PRIMARY_UID_ONLY): New.
748         * mainproc.c (check_sig_and_print): Implement it.
750 2007-02-22  Werner Koch  <wk@g10code.com>
752         * encr-data.c (decrypt_data): Correctly test for unknown algorithm.
753         * import.c (check_prefs): Ditto.
754         * keyedit.c (show_prefs): Ditto.
755         * mainproc.c (proc_symkey_enc): Ditto.
757 2007-02-06  Werner Koch  <wk@g10code.com>
759         * export.c (do_export_stream): Allow reset-subkey-passwd along
760         with sexp-format.
762 2007-02-04  Werner Koch  <wk@g10code.com>
764         * parse-packet.c (parse_signature): Limit bytes read for an
765         unknown alogorithm.  Fixes Debian bug#402592.
767 2007-01-31  Werner Koch  <wk@g10code.com>
769         * verify.c (verify_signatures): Do no dereference a NULL afx.
771         * passphrase.c (passphrase_get): Set the cancel flag on all error
772         from the agent.  Fixes a bug reported by Tom Duerbusch.
774 2007-01-30  Werner Koch  <wk@g10code.com>
776         * status.c (write_status_begin_signing): New.
777         * sign.c (sign_file, sign_symencrypt_file): Call it.
778         * textfilter.c (copy_clearsig_text): Call it.
780         * call-agent.c (agent_scd_pksign): Pass --hash-rmd160 to SCD if
781         required.
783         * gpg.c (main): Let --no-use-agent and --gpg-agent-info print a
784         warning.  
785         * misc.c (obsolete_option): New.
787 2007-01-29  Werner Koch  <wk@g10code.com>
789         * pkclist.c (do_we_trust_pre): Issue a user-id-hint status code. 
791 2007-01-15  Werner Koch  <wk@g10code.com>
793         * parse-packet.c (read_protected_v3_mpi): Make sure to stop
794         reading even for corrupted packets.
795         * keygen.c (generate_user_id): Need to allocate one byte more.
796         Reported by Felix von Leitner.
798 2006-12-21  Werner Koch  <wk@g10code.com>
800         * gpg.c (main): New command --server.
801         * gpg.h (struct server_control_s, ctrl_t): New.
802         * server.c: New.
803         * verify.c (gpg_verify): New.
804         * mainproc.c (mainproc_context): Made SIGNED_DATA a structure.
805         (proc_signature_packets_by_fd): New.
806         (proc_compressed_cb): Divert depending on SIGNED_DATA.
807         * plaintext.c (hash_datafile_by_fd): New.
808         * mainproc.c (proc_tree): Use it here.
810         * verify.c (verify_signatures): Init AFX only when needed.
811         Don't leak a context on error.
812         (verify_one_file): Don't leak a context on error.
814 2006-12-07  Werner Koch  <wk@g10code.com>
816         * openfile.c (copy_options_file): Use log_info instead of
817         log_error to avoid an error return of gpg due to a missing
818         skeleton file.
820 2006-12-07  David Shaw  <dshaw@jabberwocky.com>
822         * Makefile.am: Link to iconv for jnlib dependency.
824 2006-12-05  Werner Koch  <wk@g10code.com>
826         * passphrase.c (passphrase_to_dek): Handle a Cancel request
827         correctly.  [Bug#737]
828         * mainproc.c (proc_symkey_enc): Removed workaround for bogus cancel
829         processing.
830         * encode.c (encode_simple): Distinguish error message between
831         cancel and invalid passphrase.
832         (setup_symkey): Ditto.
833         * sign.c (sign_symencrypt_file): Ditto
834         * keyedit.c (change_passphrase): Allow cancellation.
835         * keygen.c (do_ask_passphrase): New arg R_CANCELED.
836         (generate_keypair): Handle a passphrase cancellation.
837         (generate_raw_key): Ditto.
838         (generate_subkeypair): Ditto.
840 2006-12-04  Werner Koch  <wk@g10code.com>
842         * filter.h (armor_filter_context_t): New element REFCOUNT.
843         * armor.c (armor_filter): Made static.
844         (push_armor_filter, release_armor_context, new_armor_context): New.
845         (armor_filter): Release the context.
846         * gpg.c (main): Use new armor context functions and
847         push_armor_filter.
848         * export.c (do_export): Ditto.
849         * encode.c (encode_simple, encode_crypt): Ditto.
850         * decrypt.c (decrypt_message, decrypt_messages): Ditto.
851         * dearmor.c (dearmor_file, enarmor_file): Ditto.
852         * verify.c (verify_signatures, verify_one_file): Ditto.
853         * sign.c (sign_file, clearsign_file, sign_symencrypt_file): Ditto.
854         * revoke.c (gen_desig_revoke, gen_revoke): Ditto.
855         * keyserver.c (keyserver_spawn): Ditto.
856         * keygen.c (output_control_s): Turn AFX fields into pointers.
857         (read_parameter_file): Allocate and release AFX fields.
858         (do_generate_keypair): Use push_armor_filter.
859         * import.c (import): Replace iobuf_push_filter2 hack by the new
860         armor context stuff.
862 2006-12-03  Werner Koch  <wk@g10code.com>
864         * filter.h: New element REFCOUNT.
865         (handle_progress): Remove prototype.
866         * progress.c (new_progress_context, release_progress_context): New.
867         (progress_filter): Use new function to release context.  Made static.
868         (handle_progress): Bumb reference counter.  No more check for
869         enabled progress as this is handled by new_progress_context.
870         * verify.c (verify_signatures, verify_one_file): Replace stack
871         based progress context by a heap based one.
872         * sign.c (sign_file, clearsign_file, sign_symencrypt_file): Ditto.
873         * plaintext.c (ask_for_detached_datafile, hash_datafiles): Ditto.
874         * encode.c (encode_simple, encode_crypt): Ditto.
875         * decrypt.c (decrypt_message, decrypt_messages): Ditto. 
877         * keyedit.c (menu_clean): Made strings translatable.
879 2006-12-03  David Shaw  <dshaw@jabberwocky.com>
881         * keyedit.c (menu_clean): Show "already minimized" rather than
882         "already clean" when a minimized key is minimized again.  From
883         Dirk Traulsen.
885 2006-12-02  David Shaw  <dshaw@jabberwocky.com>
887         * options.h, gpg.c (main), passphrase.c (passphrase_to_dek): Add
888         --passphrase-repeat option to control how many times gpg will
889         re-prompt for a passphrase to ensure the user has typed it
890         correctly.  Defaults to 1.
892 2006-12-02  Werner Koch  <wk@g10code.com>
894         * encr-data.c: Allocate DFX context on the heap and not on the
895         stack.  Changes at several places.  Fixes CVE-2006-6235.
896         
897 2006-11-27  Werner Koch  <wk@g10code.com>
899         * openfile.c (ask_outfile_name): Fixed buffer overflow occurring
900         if make_printable_string returns a longer string.  Fixes bug 728.
902 2006-11-21  Werner Koch  <wk@g10code.com>
904         * Makefile.am (needed_libs): libgnu needs to come after libcommon.
906         * keygen.c (ask_expire_interval): Print y2038 warning only for 32
907         bit time_t.
908         (save_unprotected_key_to_card): Made RSA_N_LEN et al a size_t.
909         Cast printf args.
910         (get_parameter_algo): Allow "ELG" as alias for "ELG-E".
912         * seckey-cert.c (do_check): Made NBYTES a size_t.
913         (do_check): Made NDATA a size_t.
914         (protect_secret_key): Made NARR a size_t.
915         (protect_secret_key): Made NVYES a size_t.
916         * pubkey-enc.c (get_it): Made INDATALEN a size_t. 
917         (get_it): Made NFRAME a size_t.
918         * keyid.c (hash_public_key): Made NBITS an unsigned int.
919         * misc.c (checksum_mpi): Made NBYTES a size_t. 
920         (openpgp_pk_test_algo2): Made USE_BUF a size_t.
921         * seskey.c (encode_session_key): Made NFRAME a size_t.
922         (do_encode_md): Ditto.
923         (encode_md_value): Cast size_t argument of printf.
924         (encode_md_value): Ditto.
926 2006-11-10  Werner Koch  <wk@g10code.com>
928         * parse-packet.c (mpi_read): Changed NREAD to size_t to match the
929         gcry_mpi-scan prototype. 
930         (mpi_read): Fixed double increment of bytes read to correctly
931         detect overlong MPIs.
933 2006-11-05  Werner Koch  <wk@g10code.com>
935         * gpg.c (main): Remove the default --require-cross-certification.
936         * options.skel: Enable require-cross-certification.
938 2006-10-31  Werner Koch  <wk@g10code.com>
940         * pkclist.c (warn_missing_aes_from_pklist): New.
941         * encode.c (encrypt_filter, encode_crypt): Use it here.
943 2006-10-27  Werner Koch  <wk@g10code.com>
945         * pkclist.c (warn_missing_mdc_from_pklist): New.
946         * encode.c (use_mdc): Use it here.
948 2006-10-24  Marcus Brinkmann  <marcus@g10code.de>
950         * Makefile.am (AM_CFLAGS): Add $(LIBASSUAN_CFLAGS).
952 2006-10-23  Werner Koch  <wk@g10code.com>
954         * gpg.c (main): New command --gpgconf-test.
956         * Makefile.am (bzip2_source): New.
958 2006-10-20  Werner Koch  <wk@g10code.com>
960         * getkey.c (classify_user_id): Reserve '&' for search by keygrip.
962 2006-10-19  Werner Koch  <wk@g10code.com>
964         * keygen.c (get_parameter_algo): Add special case for ELG_E which
965         is not supported by libgcrypt's mapping function.
967 2006-10-18  Werner Koch  <wk@g10code.com>
969         * keyid.c (v3_keyid): Don't use mempcy as we need to hold the
970         keyids in the native endian format.
972         * import.c (import_print_stats): Use log_printf.
974         * build-packet.c (do_public_key): Care about mpi_write errors.
975         (do_secret_key, do_pubkey_enc, do_signature): Ditto. 
976         (mpi_write): Print an extra warning on error.
978 2006-10-17  Werner Koch  <wk@g10code.com>
980         * Makefile.am (LDADD): Replaced W32LIBS by NETLIBS.
982 2006-10-12  David Shaw  <dshaw@jabberwocky.com>
984         * parse-packet.c (parse_symkeyenc): Show the unpacked as well as
985         the packed s2k iteration count.
987         * main.h, options.h, gpg.c (encode_s2k_iterations, main),
988         passphrase.c (hash_passphrase): Add --s2k-count option to specify
989         the number of s2k hash iterations.
991 2006-10-08  Werner Koch  <wk@g10code.com>
993         * gpgv.c: Remove the tty stubs as we are now required to link to
994         tty anyway (it is included in libcommand and has dependencies to
995         other modules as well).
997         * keyedit.c (keyedit_menu): Use keyedit_completion only if
998         readline is available.  It would be better to move this code into
999         gpgrlhelp.c
1001 2006-10-06  Werner Koch  <wk@g10code.com>
1003         * Makefile.am (AM_CFLAGS): Use PTH version of libassuan.
1005 2006-10-06  David Shaw  <dshaw@jabberwocky.com>
1007         * keyserver.c (keyserver_spawn): Write the 16-digit keyid rather
1008         than whatever key selector the user used on the command line.
1010 2006-10-05  Werner Koch  <wk@g10code.com>
1012         * status.c (progress_cb): Changed to libgcrypt API.
1013         (set_status_fd): Register the progress cb.
1015         * seskey.c (encode_md_value): Check that the hash algo is valid
1016         before getting the OID. 
1018 2006-10-04  Werner Koch  <wk@g10code.com>
1020         * passphrase.c: Allow for a static passphrase in batch mode.
1021         
1022         * call-agent.c (agent_havekey): Removed.
1023         (percent_plus_escape): New.
1024         (agent_get_passphrase): New.
1025         (agent_clear_passphrase): New.
1027         * passphrase.c: Changed so that we always require the agent.
1028         (agent_send_option, agent_send_all_options, agent_open): Removed.
1029         (agent_get_passphrase): Cleaned up.  Does now use the call-agent
1030         functions.  Renamed to
1031         (passphrase_get): .. this.  Changed all callers.
1032         (passphrase_clear_cache): Rewritten.
1033         (passphrase_to_dek, hash_passphrase): Re-indented.
1035         * gpg.c (main): Made --use-agent a dummy option.
1036         * seckey-cert.c (check_secret_key): We require the agent, so always
1037         allow for 3 tries.
1039         * gpg.c (main): Print a warning if -sat has been used.
1040         (main): Removed the special treatment of the -k option. -k is now
1041         an alias for --list-keys.
1042         (main): Removed --list-ownertrust.
1044 2006-10-02  Werner Koch  <wk@g10code.com>
1046         * encr-data.c (decrypt_data, mdc_decode_filter): Check the MDC
1047         right here and don't let parse-packet handle the MDC.
1049 2006-09-29  Werner Koch  <wk@g10code.com>
1051         * compress.c (do_uncompress): Removed use of Z_PARTIAL_FLUSH.
1052         This is outdated and old zlib versions which still require it have
1053         security problems.
1055 2006-09-27  Werner Koch  <wk@g10code.com>
1057         Replaced all STRLIST by strlist_t.
1059 2006-09-21  Werner Koch  <wk@g10code.com>
1061         * signal.c (got_fatal_signal): Replaced readline stuff by a tty
1062         function.
1064         * Makefile.am (LDADD): Include libgpgrl.a.
1066         * gpg.c (main): Call gpg_rl_initialize.
1068         * keyedit.c: Removed double inclusion of stdio.h.
1070 2006-09-20  Werner Koch  <wk@g10code.com>
1072         * call-agent.c: Include asshelp.h.
1073         (start_agent): Use send_pinentry_environment.
1075 2006-09-14  Werner Koch  <wk@g10code.com>
1077         Replaced all call gpg_error_from_errno(errno) by
1078         gpg_error_from_syserror().
1080 2006-09-13  Werner Koch  <wk@g10code.com>
1082         * gpg.c (main): Made --require-cross-certification the default. 
1084 2006-09-06  Marcus Brinkmann  <marcus@g10code.de>
1086         * Makefile.am (gpg2_LDADD, gpgv2_LDADD): Replace -lassuan and
1087         -lgpg-error with $(LIBASSUAN_LIBS) and $(GPG_ERROR_LIBS).
1088         (AM_CFLAGS): Add $(LIBASSUAN_CFLAGS) and $(GPG_ERROR_CFLAGS).
1090 2006-09-06  Werner Koch  <wk@g10code.com>
1092         * gpg.c (main): Enable new assuan API.
1093         * call-agent.c: Changed to new Assuan API.
1095 2006-09-01  Werner Koch  <wk@g10code.com>
1097         * call-agent.c: Do not force using the pipe server.
1099         * gpg.c (main): Enable card related commands.
1101 2006-08-22  Werner Koch  <wk@g10code.com>
1103         * mainproc.c (proc_plaintext): Fixed a #warning
1105 2006-08-21  Werner Koch  <wk@g10code.com>
1107         * skclist.c (random_is_faked): Implemented.
1108         (is_insecure): Also test for the old uppercase version of the
1109         insecure string.
1110         * gpg.c (main): Renamed --quick-random to debug-quick-quick-random.
1112         * gpg.c (print_mds): Do not use the USE_SHA macros.
1114         * mainproc.c (proc_encrypted): Remove assign inside condition for
1115         better readibility.
1117         * packet.h: Moved consts to new header ../common/openpgpdefs.h.
1119 2006-08-16  Werner Koch  <wk@g10code.com>
1121         * keyserver.c (GPGKEYS_PREFIX): Rename to gpg2keys_.  This is so
1122         that we can install helpers from 1.4 and 2 without conflicts and
1123         first of all don't get lost with weird bug reports.
1125         * keyid.c (serialno_and_fpr_from_sk): New. Actually lost during
1126         the last 1.4 to 1.9 merge.
1128         * gpg.c (list_config): Output ccid-reader-id only for gnupg 1.
1130         * call-agent.c (agent_scd_writekey): New.
1131         (inq_writekey_parms): New.
1133         * gpgv.c: Include call-agent.h for use by stubs.
1135         * misc.c: Include call-agent.h for use by get_signature_count.
1137 2006-07-27  Werner Koch  <wk@g10code.com>
1139         * parse-packet.c (parse_comment): Cap comments at 65k.
1140         (parse_gpg_control): Skip too large control packets.
1142 2006-07-24  David Shaw  <dshaw@jabberwocky.com>  (wk)
1144         * keydb.h, pkclist.c (select_algo_from_prefs, algo_available):
1145         Pass a union for preference hints rather than doing void * games.
1147         * sign.c (sign_file): Use it here.
1149         * sign.c (sign_file): When signing with multiple DSA keys, one
1150         being DSA1 and one being DSA2 and encrypting at the same time, if
1151         the recipient preferences give a hash that can work with the DSA2
1152         key, then allow the DSA1 key to be promoted rather than giving up
1153         and using hash_for().
1155         * pkclist.c (algo_available): Automatically enable DSA2 mode when
1156         handling a key that clearly isn't DSA1 (i.e. q!=160).
1158 2006-06-30  Werner Koch  <wk@g10code.com>
1160         * misc.c (checksum_mpi): No need for nbits as they are alredy
1161         included in the buffer.
1163 2006-06-29  Werner Koch  <wk@g10code.com>
1165         * parse-packet.c (parse_signature, parse_key): Need store the
1166         length of opaque data as number of bits. 
1167         * card-util.c (card_store_subkey): Ditto.
1169         * mainproc.c (print_pkenc_list, check_sig_and_print): Replaced
1170         log_get_stream by calls to log_printf.  This avoids the extra LFs
1171         inserted by the logging function. They are a bit too smart
1172         sometimes.
1173         * pkclist.c (do_show_revocation_reason): Print final LF through
1174         log_printf to avoid extra LFs.
1175         * pubkey-enc.c (get_it): Ditto.
1177         * seskey.c (encode_md_value): Fix call to gcry.
1179 2006-06-27  Werner Koch  <wk@g10code.com>
1181         Applied patches from 1.4.x (2006-05-22 to 2006-06-23) from David:
1183         * keygen.c (keygen_upd_std_prefs, keygen_add_std_prefs)
1184         (proc_parameter_file): Add --default-keyserver-url to specify a
1185         keyserver URL at key generation time, and "Keyserver:" keyword for
1186         doing the same through a batch file.
1187         * options.h, gpg.c (main): Ditto.
1189         * sign.c (do_sign): For now don't accept a truncated hash even
1190         for DSA1 keys (be liberal in what you accept, etc).
1192         * import.c (import_one): Add a flag (from_sk) so we don't check
1193         prefs on an autoconverted public key.  The check should only
1194         happen on the sk side.  Noted by Dirk Traulsen.
1196         * keygen.c (gen_card_key): Add optional argument to return a
1197         pointer (not a copy) of the stub secret key for the secret key we
1198         just generated on the card.
1199         (generate_card_subkeypair): Use it here so that the signing key on
1200         the card can use the card to generate the 0x19 backsig on the
1201         primary key.  Noted by Janko Heilgeist and Jonas Oberg.
1203         * parse-packet.c (parse_user_id): Cap the user ID size at 2048
1204         bytes.  This prevents a memory allocation attack with a very large
1205         user ID.  A very large packet length could even cause the
1206         allocation (a u32) to wrap around to a small number.  Noted by
1207         Evgeny Legerov on full-disclosure.
1209         * keygen.c (gen_dsa): Allow generating DSA2 keys.  Allow
1210         specifying sizes > 1024 when --enable-dsa2 is set.  The size of q
1211         is set automatically based on the key size.
1212         (ask_keysize, generate_keypair): Ask for DSA size when
1213         --enable-dsa2 is set.
1215         * exec.c (make_tempdir) [W32]: Fix bug with a temporary directory
1216         on W32 that is over 256 bytes long.  Noted by Israel G. Lugo.
1218         * gpg.c (reopen_std): New function to reopen fd 0, 1, or 2 if we
1219         are called with them closed.  This is to protect our
1220         keyring/trustdb files from corruption if they get attached to one
1221         of the standard fds.  Print a warning if possible that this has
1222         happened, and fail completely if we cannot reopen (should never
1223         happen).
1224         (main): Call it here.
1225         
1226         * parse-packet.c (dump_sig_subpkt, parse_signature): Fix meaning
1227         of key expiration and sig expiration subpackets - zero means
1228         "never expire" according to 2440, not "expire instantly".
1229         * build-packet.c (build_sig_subpkt_from_sig): Ditto.
1230         * getkey.c (fixup_uidnode, merge_selfsigs_main)
1231         (merge_selfsigs_subkey): Ditto.
1232         * keygen.c (keygen_add_key_expire): Ditto.
1234         * getkey.c (get_pubkey_byname)
1235         * import.c (import_one): Fix key selection problem when
1236         auto-key-locate returns a list of keys, not all of which are
1237         usable (revoked, expired, etc).  Noted by Simon Josefsson.
1239 2006-05-24  Werner Koch  <wk@g10code.com>
1241         * keyid.c (hash_public_key): Do not double hash the length bytes,
1242         they are already included by mpi_print.
1244         * misc.c (openpgp_pk_test_algo2): Get test call right.
1246         * misc.c (string_to_cipher_algo, string_to_digest_algo): New.
1247         * keygen.c (keygen_set_std_prefs): use them here.
1248         * gpg.c (main): and here.
1250 2006-05-23  Werner Koch  <wk@g10code.com>
1252         * card-util.c (generate_card_keys): Removed temporary kludge for
1253         generate_keypair.
1255         * call-agent.c (agent_scd_setattr): Add arg SERIALNO.
1256         (agent_scd_genkey): Ditto.
1257         (agent_scd_change_pin): Ditto.
1259         * call-agent.h (struct agent_card_info_s): Updated to match the
1260         one of 1.4.3.
1262         * Makefile.am (LDADD): Include ZLIBS.
1264         * gpgv.c: Removed stubs not anymore useful due to libgcrypt.
1266 2006-05-22  Werner Koch  <wk@g10code.com>
1268         * keyserver.c (keyidlist): Replaced mpi_get_keyid by v3_keyid.
1269         * keydb.h (v3_keyid): Added.
1271         * import.c (import): Better initialize KEYBLOCK as to quiet
1272         compiler warning.
1274         * skclist.c (random_is_faked): New.
1276         * mainproc.c: Include pka.h.
1278 2006-05-19  Werner Koch  <wk@g10code.com>
1280         * misc.c (openpgp_pk_test_algo2): Need to use gcry_pk_algo_info
1281         directly.
1282         (string_count_chr): New.
1284         * armor.c (parse_header_line): Use renamed function
1285         length_sans_trailing_ws.
1287         * options.h, gpg.c: Option --strict is not used thus removed code
1288         but kept option.
1290 2006-04-28  David Shaw  <dshaw@jabberwocky.com>  (wk)
1291         
1292         * keyserver.c (direct_uri_map): New.
1293         (keyserver_spawn): Used here to add "_uri" to certain gpgkeys_xxx
1294         helpers when the meaning is different if a path is provided (i.e. 
1295         ldap).
1296         (keyserver_import_cert): Show warning if there is a CERT
1297         fingerprint, but no --keyserver set.
1299         * keyserver.c: Fix build problem with platforms that stick libcurl
1300         in a place not in the regular include search path.
1302         * options.h, gpg.c (main): Add --enable-dsa2 and --disable-dsa2.
1303         Defaults to disable.
1305         * pkclist.c (algo_available): If --enable-dsa2 is set, we're
1306         allowed to truncate hashes to fit DSA keys.
1308         * sign.c (match_dsa_hash): New.  Return the best match hash for a
1309         given q size.
1310         (do_sign, hash_for, sign_file): When signing with a DSA key, if it
1311         has q==160, assume it is an old DSA key and don't allow truncation
1312         unless --enable-dsa2 is also set.  q!=160 always allows truncation
1313         since they must be DSA2 keys.
1314         (make_keysig_packet): If the user doesn't specify a
1315         --cert-digest-algo, use match_dsa_hash to pick the best hash for
1316         key signatures.
1318         * gpg.c (print_mds): Add SHA-224.
1319         * armor.c (armor_filter, parse_hash_header): Add SHA-224.
1321         * sign.c (write_plaintext_packet):
1322         Factor common literal packet setup code from here, to...
1323         * encode.c (encode_simple): .. there.
1324         
1325         * main.h, plaintext.c (setup_plaintext_name): Here. New. Make sure
1326         the literal packet filename field is UTF-8 encoded.
1328         * options.h, gpg.c (main): Make sure --set-filename is UTF-8
1329         encoded and note when filenames are already UTF-8.
1331         * keyedit.c (menu_backsign): Give some more verbose errors when we
1332         have no need to backsign.
1334         * getkey.c (parse_auto_key_locate): Fix dupe-removal code.
1336         * keyedit.c (menu_backsign): Allow backsigning even if the secret
1337         subkey doesn't have a binding signature.
1339         * armor.c (radix64_read): Don't report EOF when reading only a pad
1340         (=) character.  The EOF actually starts after the pad.
1342         * gpg.c (main): Make --export, --send-keys, --recv-keys,
1343         --refresh-keys, and --fetch-keys follow their arguments from left
1344         to right.  Suggested by Peter Palfrader.
1346 2006-04-18  Werner Koch  <wk@g10code.com>
1348         * tdbio.c (open_db, migrate_from_v2): Removed feature to migration
1349         from old trustdb version 2.
1351         * gpg.c, mainproc.c: Removed pipemode feature.
1353         * status.c: Removed shared memory coprocess stuff
1355         Merged with current gpg 1.4.3 code.
1356         
1357         * keygen.c, keyid.c, misc.c, openfile.c, verify.c, trustdb.c
1358         * textfilter.c, tdbio.c, tdbdump.c, status.c, skclist.c, signal.c
1359         * sign.c, sig-check.c, seskey.c, seckey-cert.c, revoke.c
1360         * pubkey-enc.c, progress.c, plaintext.c, pkclist.c, photoid.c
1361         * passphrase.c, parse-packet.c, mdfilter.c, mainproc.c
1362         * keyserver.c, keyring.c, keylist.c, keyedit.c, keydb.c, kbnode.c
1363         * import.c, getkey.c, gpgv.c, helptext.c, free-packet.c
1364         * build-packet.c, cipher.c, compress.c, dearmor.c, decrypt.c
1365         * delkey.c, encr-data.c, encode.c, exec.c, export.c
1366         * gpg.c, armor.c: Updated from gnupg-1.4.3 and merged back gcry and
1367         gnupg-1.9 related changes.
1368         * trustdb.h, tdbio.h, status.h, photoid.h, packet.h, options.h
1369         * main.h, keyserver-internal.h, keyring.h, keydb.h, filter.h
1370         * exec.h: Ditto.
1371         * global.h: Removed after merging constants with gpg.h.
1372         * comment.c, pipemode.c: Removed.
1373         * card-util.c: Updated from gnupg-1.4.3.
1374         * compress-bz2.c: New.
1375         
1376 2005-06-15  Werner Koch  <wk@g10code.com>
1378         * g10.c (print_hashline, add_group): Fixes for signed/unsigned
1379         pointer mismatch warnings.
1381 2005-06-01  Werner Koch  <wk@g10code.com>
1383         * mkdtemp.c: Removed.
1384         * exec.c: Include mkdtemp.h
1386 2004-12-21  Werner Koch  <wk@g10code.com>
1388         * gpgv.c, g10.c (main): Use default_hoemdir ().
1390 2004-12-18  Werner Koch  <wk@g10code.com>
1392         * gpg.h (map_assuan_err): Define in terms of
1393         map_assuan_err_with_source.
1395 2004-12-15  Werner Koch  <wk@g10code.com>
1397         * Makefile.am (LDADD): Remove ZLIBS.
1399 2004-10-22  Werner Koch  <wk@g10code.com>
1401         * g10.c (main): Display a bit fat warning that this gpg should not
1402         be used.
1404         * card-util.c (fetch_url): Disable for gnupg 1.9
1405         (card_generate_subkey): Ditto.
1406         (card_store_subkey): Ditto.
1408 2004-09-30  Werner Koch  <wk@g10code.com>
1410         * gpgv.c (i18n_init): Always use LC_ALL.
1412         * Makefile.am (LDADD): Adjusted for gettext 0.14.
1414 2004-09-20  Werner Koch  <wk@g10code.com>
1416         * keyedit.c (show_key_with_all_names): Print the card S/N.
1418 2004-09-11  Moritz Schulte  <moritz@g10code.com>
1420         * openfile.c (copy_options_file): Fixed last commit (added a `+').
1422 2004-08-31  Werner Koch  <wk@g10code.de>
1424         * openfile.c (copy_options_file): Use gpg-conf.skel. Better take
1425         the length of SKELEXT into account, someone might make it larger.
1426         * Makefile.am: Install options.skel as gpg-conf.skel.
1428 2004-08-18  Marcus Brinkmann  <marcus@g10code.de>
1430         * passphrase.c (agent_get_passphrase): Fix detection of gpg-agent
1431         cancellation.
1433 2004-07-01  Werner Koch  <wk@gnupg.org>
1435         * card-util.c (change_login): Kludge to allow reading data from a
1436         file.
1437         (card_edit): Pass ARG_STRING to change_login.
1438         (card_status): Print CA fingerprints.
1439         (change_cafpr): New.
1440         (card_edit): New command CAFPR.
1442         * call-agent.h: Add members for CA fingerprints.
1443         * call-agent.c (agent_release_card_info): Invalid them.
1444         (learn_status_cb): Store them.
1446 2004-04-30  Werner Koch  <wk@gnupg.org>
1448         * g10.c (main) <gpgconf>: Use gpg.conf and not /dev/null as
1449         default filename.
1451 2004-04-28  Werner Koch  <wk@gnupg.org>
1453         * card-util.c (card_edit): Remove PIN verification.
1454         (generate_card_keys): New arg SERIALNO.  Do PIN verification here
1455         after resetting forced_chv1.
1457 2004-04-26  Werner Koch  <wk@gnupg.org>
1459         * card-util.c (change_name): Check that the NAME is not too long.
1460         (change_url): Likewise.
1461         (change_login): Likewise.
1463 2004-03-23  Werner Koch  <wk@gnupg.org>
1465         * g10.c: New options --gpgconf-list, --debug-level and --log-file
1466         (set_debug): Add arg DEBUG_LEVEL.
1467         (main): Look at less and less version specific config files.  From
1468         gnupg 1.3.
1470 2004-02-17  Werner Koch  <wk@gnupg.org>
1472         * call-agent.c (start_agent): Ignore an empty GPG_AGENT_INFO.
1473         * passphrase.c (agent_open): Ditto.
1475 2004-02-12  Werner Koch  <wk@gnupg.org>
1477         * gpgv.c: Removed g10defs.h.
1479         * Makefile.am: Include cmacros.am for common flags.
1481 2004-02-11  Werner Koch  <wk@gnupg.org>
1483         * openfile.c (try_make_homedir): Use GNUPG_DEFAULT_HOMEDIR.
1484         * gpgv.c (main): Ditto.
1485         * g10.c (main): Ditto.
1487 2004-01-19  Moritz Schulte  <mo@g10code.com>
1489         * keygen.c (do_generate_keypair): Print member fname, instead of
1490         newfname, again.
1491         (do_generate_keypair): Don't try to execute certain pieces of code
1492         in case an error occured.
1493         (gen_card_key): Don't print out a message, which is already
1494         printed by do_generate_keypair().
1496 2004-01-18  Moritz Schulte  <mo@g10code.com>
1498         * keygen.c (do_generate_keypair): Print member fname, instead of
1499         newfname.
1501 2003-12-17  Werner Koch  <wk@gnupg.org>
1503         * card-util.c (print_name): Fixed bad format string usage.
1504         (print_isoname): Ditto.
1506         * trustdb.c (check_regexp): s/exp/expr/.
1508         * keyedit.c (trustsig_prompt): Removed a "> 255" term; it is
1509         always false due to the data type.
1510         
1511         * passphrase.c (agent_get_passphrase): Use xasprintf and avoid
1512         non-literal format strings.
1514         * tdbio.c (upd_hashtable, drop_from_hashtable, lookup_hashtable):
1515         Fixed log_error format string bugs.  Kudos to the now working
1516         gcc-3.3 -Wformat-nonliteral and Florian Weimer's investigations in
1517         gnupg 1.2.3.
1519 2003-12-15  Werner Koch  <wk@gnupg.org>
1521         * seckey-cert.c (protect_secret_key): Use gry_create_nonce for the
1522         IV; there is not need for real strong random here and it even
1523         better protect the random bits used for the key.
1525 2003-11-16  Moritz Schulte  <mo@g10code.com>
1527         * signal.c: Removed unused file.
1529 2003-11-10  Moritz Schulte  <mo@g10code.com>
1531         * Makefile.am (INCLUDES): Added: @LIBGCRYPT_CFLAGS@.
1533 2003-10-25  Werner Koch  <wk@gnupg.org>
1535         * call-agent.c (learn_status_cb, scd_genkey_cb): Fixed faulty use
1536         of !spacep().
1538 2003-10-20  Werner Koch  <wk@gnupg.org>
1540         * card-util.c (card_edit): New command "passwd".  Add logic to
1541         check the PIN in advance.
1542         (card_status): Add new args to return the serial number.  Changed
1543         all callers.
1544         * call-agent.c (agent_scd_checkpin): New.
1546 2003-10-08  Werner Koch  <wk@gnupg.org>
1548         * call-agent.c (agent_scd_getattr): Don't clear the passed info
1549         structure, so that it can indeed be updated.
1551         * card-util.c (fpr_is_zero): New.
1552         (generate_card_keys): New.
1553         (card_edit): New command "generate".
1554         * keygen.c (generate_keypair): New arg CARD_SERIALNO, removed call
1555         to check_smartcard.
1556         (check_smartcard,show_smartcard): Removed.
1557         (show_sha1_fpr,fpr_is_zero): Removed.
1559 2003-10-01  Werner Koch  <wk@gnupg.org>
1561         * card-util.c: Tweaked to use this source also under 1.3. 
1563 2003-09-30  Werner Koch  <wk@gnupg.org>
1565         * keylist.c (print_card_serialno): New.
1566         (list_keyblock_print): Use it here.
1568         * card-util.c (toggle_forcesig): New.
1569         (card_edit): New command "forcesig".
1570         
1571         * card-util.c (print_name, print_isoname): Use 0 and not LF fro
1572         the max_n arg of tty_print_utf8_string2.
1574         * call-agent.c (agent_scd_getattr): New.
1575         (learn_status_cb): Release values before assignment so that it can
1576         be used by getattr to update the structure.
1577         
1578         * card-util.c (change_pin): Simplified.  We now have only a PIN
1579         and an Admin PIN.
1581 2003-09-27  Werner Koch  <wk@gnupg.org>
1583         * sign.c (do_sign): Removed disabled testcode.
1585 2003-09-26  Timo Schulz  <twoaday@freakmail.de>
1587         * card_status (card_status): Do not use fputs since the fp
1588         parameter can be NULL. This fixes a segv.
1589         
1590 2003-09-24  Werner Koch  <wk@gnupg.org>
1592         * card-util.c (print_isoname,card_status): Handle opt.with_colons.
1593         (print_sha1_fpr_colon): New.
1595 2003-09-23  Werner Koch  <wk@gnupg.org>
1597         Merged most of David Shaw's changes in 1.3 since 2003-06-03.
1598         
1599         * Makefile.am: Include W32LIBS where appropriate.
1601         * armor.c (parse_hash_header,armor_filter): Drop TIGER/192 support.
1602         * g10.c (print_hex,print_mds): Ditto.
1603         * pkclist.c (algo_available): Ditto.
1605         * armor.c (armor_filter): Allow using --comment multiple times to
1606         get multiple Comment header lines.  --no-comments resets list.
1607         * options.h, g10.c (main): Ditto. Deprecate --default-comment in
1608         favor of --no-comments.
1610         * g10.c (main): Trim --help to commonly used options.  Remove -f.
1612         * g10.c (main): Add --multifile as an alias to turn --encrypt into
1613         --encrypt-files (plus --verify-files, --decrypt-files).  Error out
1614         if --multifile is used with the commands that don't support it yet.
1616         * encode.c (use_mdc), g10.c (main): Use RFC1991 and RFC2440
1617         directly to check for MDC usability.  Do not set the force_mdc or
1618         disable_mdc flags since there is no point any longer.
1619         
1620         * g10.c (main): Use "keyserver-url" instead of
1621         "preferred-keyserver" for the sake of short and simple commands.
1622         (add_keyserver_url): Clarify a few strings.  It's a
1623         "preferred keyserver URL".
1624         * keyedit.c (keyedit_menu): Ditto.
1625         * sign.c (mk_notation_policy_etc): Ditto. 
1627         * main.h, keygen.c (keygen_add_keyserver_url): Signature callback
1628         for adding a keyserver URL.
1629         * keyedit.c (keyedit_menu, menu_set_keyserver_url): New command to
1630         set preferred keyserver to specified (or all) user IDs.
1631         * build-packet.c (build_sig_subpkt): Set preferred keyserver flag
1632         while building a preferred keyserver subpacket.
1634         * keylist.c (show_policy_url, show_keyserver_url): URLs might be
1635         UTF8.
1637         * keyedit.c (menu_addrevoker): Fix leaking a few bytes.
1639         * keyedit.c (show_key_with_all_names): Use list-option
1640         show-long-keyid in main --edit-key display.
1642         * keyedit.c (print_and_check_one_sig): Use list-option
1643         show-long-keyid in --edit-key "check" function.
1645         * passphrase.c (agent_send_all_options): Make use of $GPG_TTY.
1647         * g10.c (main): Disable use-agent if passphrase-fd is given
1648         later. Suggested by Kurt Garloff.
1650         * exec.c, g10.c, gpgv.c, passphrase.c, photoid.c:
1651         s/__MINGW32__/_WIN32/ to help building on native Windows
1652         compilers.  Requested by Brian Gladman.  From Werner on stable
1653         branch.
1655         * options.h, g10.c (main): Add list-option
1656         list-preferred-keyserver.
1658         * keyedit.c (change_passphrase): When responding 'no' to the blank
1659         passphrase question, re-prompt for a new passphrase.  This is bug
1660         #202.
1662         * mainproc.c (check_sig_and_print): Use two different preferred
1663         keyserver displays - one if the key is not present (to tell the
1664         user where to get the key), the other if it is present (to tell
1665         the user where the key can be refreshed).
1667         * packet.h, parse-packet.c (parse_signature): Set flag if a
1668         preferred keyserver is present.
1670         * keylist.c (list_keyblock_print): Show keyserver url in listings
1671         with list-option show-keyserver-url.
1673         * mainproc.c (check_sig_and_print): Get the uid validity before
1674         printing any sig results to avoid munging the output with trustdb
1675         warnings.
1677         * g10.c (main): Don't include --show-keyring in --help as it is
1678         deprecated.
1680         * options.skel: Note that keyserver.pgp.com isn't synchronized,
1681         and explain the roundrobin a bit better.
1683         * sig-check.c (check_key_signature2), import.c (import_one,
1684         import_revoke_cert, chk_self_sigs, delete_inv_parts,
1685         collapse_uids, merge_blocks): Make much quieter during import of
1686         slightly munged, but recoverable, keys. Use log_error for
1687         unrecoverable import failures.
1689         * keyring.c (keyring_rebuild_cache): Comment.
1691         * sign.c (mk_notation_and_policy): Making a v3 signature with
1692         notations or policy urls is an error, not an info (i.e. increment
1693         the errorcount). Don't print the notation or policy url to stdout
1694         since it can be mixed into the output stream when piping and munge
1695         the stream.
1697         * packet.h, sig-check.c (signature_check2, do_check,
1698         do_check_messages): Provide a signing-key-is-revoked flag.  Change
1699         all callers.
1701         * status.h, status.c (get_status_string): New REVKEYSIG status tag
1702         for a good signature from a revoked key.
1704         * mainproc.c (do_check_sig, check_sig_and_print): Use it here.
1706         * import.c (import_revoke_cert, merge_blocks, merge_sigs): Compare
1707         actual signatures on import rather than using keyid or class
1708         matching.  This does not change actual behavior with a key, but
1709         does mean that all sigs are imported whether they will be used or
1710         not.
1712         * parse-packet.c (parse_signature): Don't give "signature packet
1713         without xxxx" warnings for experimental pk algorithms.  An
1714         experimental algorithm may not have a notion of (for example) a
1715         keyid (i.e. PGP's x.509 stuff).
1717         * options.h, g10.c (main), keylist.c (list_keyblock_print),
1718         keyedit.c (print_and_check_one_sig): New "show-sig-expire"
1719         list-option to show signature expiration dates (if any).
1721         * options.h, g10.c (main, add_keyserver_url): Add
1722         --sig-preferred-keyserver to implant a "where to get my key"
1723         subpacket into a signature.
1725         * sign.c (mk_notation_and_policy): Rename to
1726         mk_notation_policy_etc and add preferred keyserver support for
1727         signatures.
1729         * keygen.c (do_add_key_flags): Don't set the certify flag for
1730         subkeys.
1731         (ask_algo): Provide key flags for DSA, Elgamal_e, and Elgamal
1732         subkeys.
1733         (generate_keypair): Provide key flags for the default DSA/Elgamal
1734         keys.
1736         * sig-check.c (signature_check, signature_check2,
1737         check_key_signature, check_key_signature2): Allow passing NULLs
1738         for unused parameters in the x2 form of each function to avoid the
1739         need for dummy variables. getkey.c, mainproc.c: Change all
1740         callers.
1742         * trustdb.h, trustdb.c (read_trust_options): New.  Returns items
1743         from the trustdb version record.
1744         * keylist.c (public_key_list): Use it here for the new "tru"
1745         record.
1746         * gpgv.c (read_trust_options): Stub.
1748         * keyedit.c (show_key_with_all_names): Use list-option
1749         show-validity in --edit-key interface as well.
1751         * options.h, g10.c (main), mainproc.c (check_sig_and_print): Add
1752         verify-options "show-validity" and "show-long-keyid" to show
1753         trustdb validity and long keyids during (file) signature
1754         verification.
1756         * packet.h, main.h, sig-check.c (signature_check2)
1757         (check_key_signature2, do_check): If ret_pk is set, fill in the pk
1758         used to verify the signature.  Change all callers in getkey.c,
1759         mainproc.c, and sig-check.c.
1761         * keylist.c (list_keyblock_colon): Use the ret_pk from above to
1762         put the fingerprint of the signing key in "sig" records during a
1763         --with-colons --check-sigs.  This requires --no-sig-cache as well
1764         since we don't cache fingerprints.
1766         * parse-packet.c (parse_signature): No need to reserve 8 bytes for
1767         the unhashed signature cache any longer.
1769         * misc.c (pct_expando): Add two new expandos - signer's
1770         fingerprint (%g), and signer's primary fingerprint (%p).
1772         * g10.c (main): Add --rfc2440 alias for --openpgp since in a few
1773         months, they won't be the same thing.
1775         * keyserver.c (parse_keyserver_uri): Accept "http" as an alias for
1776         "hkp", since it is occasionally written that way.
1777         (keyserver_spawn): Use ascii_isspace to avoid locale issues.
1779         * keygen.c (ask_user_id): Make --allow-freeform-uid apply to the
1780         email field as well as the name field, and allow mixing fields
1781         when it is set.
1783         * trustdb.c (validate_one_keyblock): Certifications on revoked or
1784         expired uids do not count in the web of trust.
1786         * signal.c (init_one_signal, pause_on_sigusr, do_block): Only use
1787         sigprocmask() if we have sigset_t, and only use sigaction() if we
1788         have struct sigaction.  This is for Forte c89 on Solaris which
1789         seems to define only the function call half of the two pairs by
1790         default.
1791         (pause_on_sigusr): Typo.
1792         (do_block): If we can't use sigprocmask() and sigset_t, try to get
1793         the number of signals from NSIG as well as MAXSIG, and if we
1794         can't, fail with an explanation.
1796         * signal.c, tdbio.c: Comment out the transaction code.  It was not
1797         used in this version, and was causing some build problems on
1798         quasi-posix platforms (Solaris and Forte c89).
1800         * keylist.c (list_keyblock_colon): Don't include validity values
1801         when listing secret keys since they can be incorrect and/or
1802         misleading.  This is a temporary kludge, and will be handled
1803         properly in 1.9/2.0.
1805         * mainproc.c (check_sig_and_print): Only show the "key available
1806         from" preferred keyserver line if the key is not currently
1807         present.
1809         * keyedit.c (sign_uids): Do not sign expired uids without --expert
1810         (same behavior as revoked uids).  Do not allow signing a user ID
1811         without a self-signature.  --expert overrides.  Add additional
1812         prompt to the signature level question.
1813         (menu_expire): When changing expiration dates, don't replace
1814         selfsigs on revoked uids since this would effectively unrevoke
1815         them. There is also no point in replacing expired selfsigs.  This
1816         is bug #181
1818         * g10.c (add_notation_data): Make sure that only ascii is passed
1819         to iscntrl.  Noted by Christian Biere.
1820         * getkey.c (classify_user_id2): Replaced isspace by spacep
1821         * keygen.c (ask_user_id): Ditto.
1822         (get_parameter_algo): Ditto.
1823         * keyedit.c (keyedit_menu): Ditto.
1824         * tdbdump.c (import_ownertrust): Ditto.  s/isxdigit/hexdigitp/.
1825         * revoke.c (ask_revocation_reason): 
1826         * keyserver.c (keyserver_spawn): Dito.
1828         * parse-packet.c (parse): Disallow old style partial length for
1829         all key material packets to avoid possible corruption of keyrings.
1831         * import.c (import_keys_internal): Invalidate the cache so that
1832         the file descriptor gets closed.  Fixes bug reported by Juan
1833         F. Codagnone.
1835         * options.h, g10.c (main), main.h, keylist.c (show_keyserver_url),
1836         mainproc.c (check_sig_and_print), parse-packet.c (dump_sig_subpkt,
1837         parse_one_sig_subpkt, can_handle_critical): Add read-only support
1838         for preferred keyserver subpackets.  They're basically policy URLs
1839         with a different name.  Add a verify-option
1840         "show-preferred-keyserver" to turn them on and off (on by default,
1841         as per stable branch).
1843         * g10.c (main): Add "--set-notation" as alias to "--notation-data"
1844         this is to make things consistent with --set-policy-url meaning
1845         both sigs and certs.
1847         * options.h, g10.c (main), keylist.c (list_keyblock_print): Add
1848         "show-validity" and "show-long-keyid" list-options.
1850         * gpgv.c (get_validity, trust_value_to_string): Stubs.
1852         * g10.c (main): Use SAFE_VERSION instead of VERSION in the
1853         version-specific gpg.conf file so it can be overridden on RISCOS.
1855         * keyedit.c (show_key_with_all_names): Fix assertion failure when
1856         using toggle to see a secret key.  Reported by Maxim Britov.
1859 2003-09-22  Timo Schulz  <twoaday@freakmail.de>
1861         * card-util.c (card_status): Free pk in case of an error
1862         and return if the card is no OpenPGP card.
1863         
1864 2003-09-18  Werner Koch  <wk@gnupg.org>
1866         * g10.c: New command --card-edit.
1867         * card-util.c (card_status): Use tty_fprintf for all output.
1868         (print_sha1_fpr, print_isoname): Ditto.
1869         (get_one_name,change_name, change_url, change_login,change_lang)
1870         (change_sex): New; taken from keygen.c.
1871         * keygen.c (smartcard_get_one_name, smartcard_change_name) 
1872         (smartcard_change_url, smartcard_change_login_data) 
1873         (smartcard_change_lang, smartcard_change_sex): Removed.
1874         (check_smartcard): Removed most menu items.
1876 2003-09-06  Werner Koch  <wk@gnupg.org>
1878         * misc.c (openpgp_pk_algo_usage): Allow AUTH where SIGN is allowed.
1880         * keygen.c (ask_passphrase): No need to allocated S2K in secure
1881         memory.
1883 2003-09-04  Werner Koch  <wk@gnupg.org>
1885         * keygen.c (do_add_key_flags, parse_parameter_usage) 
1886         (do_generate_keypair): Add support the proposed AUTH key flag.
1887         * getkey.c (fixup_uidnode, merge_selfsigs_main) 
1888         (merge_selfsigs_subkey, premerge_public_with_secret): Ditto.
1889         * keylist.c (print_capabilities): Ditto.
1891 2003-08-25  Timo Schulz  <twoaday@freakmail.de>
1893         * pkglue.c (mpi_from_sexp): New. Used to factor out
1894         some common code.
1895         
1896 2003-08-24  Werner Koch  <wk@gnupg.org>
1898         * keygen.c (do_generate_keypair): Print a reminder to use --gen-revoke.
1900 2003-08-18  Timo Schulz  <twoaday@freakmail.de>
1902         * encode.c (encode_sesskey): Checked the code and removed
1903         the warning since all compatibility checks with PGP succeeded.
1904         * mainproc.c (symkey_decrypt_sesskey): Better check for the
1905         algorithm and check the return values of some functions.
1906         * mdc.c (use_mdc): Simplified.
1907         
1908 2003-08-07  Werner Koch  <wk@gnupg.org>
1910         * pkglue.c (pk_sign): Fix last change.
1911         (pk_verify): Check for valid DATA array so that we don't segv in
1912         Libgcrypt.
1913         (pk_verify): Ditto.
1915 2003-08-06  Werner Koch  <wk@gnupg.org>
1917         * pkglue.c (pk_sign): Allow signing using RSA.
1919 2003-08-05  Werner Koch  <wk@gnupg.org>
1921         * Makefile.am (install-data-local): Dropped check for the ancient
1922         gpgm tool.
1923         (bin_PROGRAMS): Renamed gpg to gpg2 and gpgv to gpgv2.  This is so
1924         that it won't conflict with the current stable version of gpg.
1926         * pkglue.c (pk_check_secret_key): New.
1927         * seckey-cert.c (do_check): Reenable this test here again.
1929         * g10.c (main): Add command -K as an alias for
1930         --list-secret-keys. Command "-k" is now an alias to --list-keys.
1931         Remove special treatment of -kv and -kvv.
1932         (set_cmd): Ditto.
1933         (main): Strip a "-cvs" suffix when testing for a version specific
1934         config file.
1936         * status.h, status.c, g10.c [USE_SHM_COPROCESSING]: Removed.  This
1937         is not any longer available.
1939 2003-07-29  Werner Koch  <wk@gnupg.org>
1941         * g10.c (main): Add secmem features and set the random seed file.
1942         (g10_exit): Update the random seed file.
1944         * parse-packet.c (parse_signature,read_protected_v3_mpi)
1945         (parse_key): Fixed use of mpi_set_opaque.
1946         * keygen.c (gen_card_key): Ditto.
1948 2003-07-28  Werner Koch  <wk@gnupg.org>
1950         * status.c (progress_cb): Adjusted for use with Libcgrypt.
1951         (set_status_fd): Register that callback.
1953         * keygen.c (smartcard_change_login_data): New.
1954         (smartcard_change_lang): New.
1955         (smartcard_change_sex): New.
1956         (check_smartcard): Add menu entries to edit the above.
1957         (gen_elg,gen_dsa,gen_rsa): Reimplemented in terms of Libgcrypt.
1958         (genhelp_protect, genhelp_factors, key_from_sexp): New.
1959         * comment.c (make_comment_node_from_buffer): New.
1960         (make_comment_node): Reimplemented in terms of above.
1962 2003-07-27  Werner Koch  <wk@gnupg.org>
1964         Adjusted for gcry_mpi_print and gcry_mpi_scan API change.
1966 2003-07-24  Werner Koch  <wk@gnupg.org>
1968         * g10.c: New command --card-status.
1969         * card-util.c (card_status): New.
1970         * call-agent.c (learn_status_cb): Parse more information.
1972         * keylist.c (print_pubkey_info): Add FP arg for optional printing
1973         to a stream.  Changed all callers.
1975 2003-07-23  Werner Koch  <wk@gnupg.org>
1977         * keygen.c (generate_keypair): Create an AUTHKEYTYPE entry for cards.
1978         (do_generate_keypair): Abd generate the authkey.
1979         (check_smartcard): Changed menu accordingly.
1981 2003-07-22  Werner Koch  <wk@gnupg.org>
1983         * g10.c: New command --change-pin.
1984         * card-util.c: New.
1985         * call-agent.c (agent_scd_change_pin): New.
1986         (agent_release_card_info): New.
1987         * keygen.c (check_smartcard): Use it here.
1989 2003-07-16  Werner Koch  <wk@gnupg.org>
1991         * export.c (parse_export_options): New option sexp-format.
1992         (export_seckeys,export_secsubkeys): Check sexp-format option.
1993         (do_export): Ignore armor for sexp format.
1994         (do_export_stream): Handle sexp-format.
1995         (write_sexp_line,write_sexp_keyparm, build_sexp_seckey): New.
1996         (build_sexp): New.
1998 2003-07-03  Werner Koch  <wk@gnupg.org>
2000         * options.h (DBG_CIPHER): Reintroduced it. 
2001         * seskey.c (encode_session_key): Debug output of the session key.
2003         * pubkey-enc.c (get_it): Handle card case.
2004         * call-agent.c (agent_scd_pkdecrypt): New.
2005         * pkglue.c (pk_encrypt): Add RSA support.
2007         * g10.c (main): Default to --use-agent.
2009         * keygen.c (show_smartcard): Print info about the public key.
2010         (check_smartcard): Check for existing key here.
2011         (gen_card_key): And not anymore here.
2012         (fpr_is_zero): New.
2013         (generate_keypair): Generate both keys for a card.
2014         (smartcard_change_url): Nw.
2016 2003-07-02  Werner Koch  <wk@gnupg.org>
2018         * seckey-cert.c (is_secret_key_protected): Let it handle mode 1002.
2020 2003-07-01  Werner Koch  <wk@gnupg.org>
2022         * keygen.c (gen_card_key): Obviously we should use the creation
2023         date received from SCDAEMON, so that the fingerprints will match.
2024         * sign.c (do_sign): Pass the serialno to the sign code.
2025         * keyid.c (serialno_and_fpr_from_sk): New.
2027 2003-06-30  Werner Koch  <wk@gnupg.org>
2029         * call-agent.h (agent_card_info_s): Add field serialno.
2030         * call-agent.c (store_serialno): New.
2031         (learn_status_cb): Store the serial number.
2032         * keygen.c (gen_card_key): Store the serial number
2033         (check_smartcard): New argument to return the serial number.
2034         (generate_keypair): Get the serial number from check_smartcard and
2035         store it as a parameter.
2036         * parse-packet.c (parse_key): Use the protect.iv field to store the
2037         serial number.
2038         * build-packet.c (do_secret_key): Write the serial number.
2040 2003-06-27  Werner Koch  <wk@gnupg.org>
2042         * seckey-cert.c (check_secret_key): Bypass the unprotection for
2043         mode 1002.
2044         * sign.c (do_sign): Handle card case (i.e. mode 1002).
2046 2003-06-26  Werner Koch  <wk@gnupg.org>
2048         * build-packet.c (do_secret_key): Implement special protection
2049         mode 1002.
2050         * parse-packet.c (parse_key): Likewise.
2052         * keygen.c (smartcard_gen_key): New.
2053         * call-agent.c (agent_scd_setattr): New.
2055 2003-06-24  Werner Koch  <wk@gnupg.org>
2057         * Makefile.am: Removed signal.c
2059         * g10.c (emergency_cleanup): New.
2060         (main): Use gnupg_init_signals and register malloc for assuan.
2062 2003-06-23  Werner Koch  <wk@gnupg.org>
2064         * keyid.c (do_fingerprint_md): Made it work again.
2066 2003-06-19  Werner Koch  <wk@gnupg.org>
2068         Fixed all "==" comparisons against error code constants to use
2069         gpg_err_code().
2071         * import.c (import_secret_one): 
2072         (import_revoke_cert): 
2073         (chk_self_sigs): 
2075         * misc.c (openpgp_md_map_name): Check also for the Hx format.
2076         (openpgp_cipher_map_name): Check also for the Sx format.
2077         (pubkey_get_npkey): Adjusted for changed gcrypt API.
2078         (pubkey_get_nskey): Ditto.
2079         (pubkey_get_nsig): Ditto.
2080         (pubkey_get_nenc): Ditto.
2082 2003-06-18  Werner Koch  <wk@gnupg.org>
2084         Finished the bulk of changes for gnupg 1.9.  This included
2085         switching to libgcrypt functions, using shared error codes from
2086         libgpg-error, replacing the old functions we used to have in
2087         ../util by those in ../jnlib and ../common, renaming the malloc
2088         functions and a couple of types.  Note, that not all changes are
2089         listed below becuause they are too similar and done at far too
2090         many places.  As of today the code builds using the current
2091         libgcrypt from CVS but it is very unlikely that it actually works.
2092         
2093         * sig-check.c (cmp_help): Removed.  Was never used.
2095         * pkglue.c: New. Most stuff taken from gnupg 1.1.2.
2096         * pkglue.h: New.
2098         * misc.c (pull_in_libs): Removed.
2100         * keygen.c (count_chr): New.
2101         (ask_user_id): Removed faked RNG support.
2103         * misc.c (openpgp_md_map_name,openpgp_cipher_map_name)
2104         (openpgp_pk_map_name): New.
2106         * skclist.c (build_sk_list): Removed faked RNG support.
2107         (is_insecure): Removed.
2109         * comment.c (make_mpi_comment_node): Use gcry MPI print function.
2111         * keyid.c (v3_keyid): New.
2113         * misc.c (mpi_write,mpi_write_opaque,mpi_read,mpi_read_opaque)
2114         (mpi_print): New.  Taken from gnupg 1.1.2.
2115         (checksum_mpi): Replaced by implementation from 1.1.2.
2117         * g10.c (my_strusage): Renamed from strusage and return NULL
2118         instead calling a default function.
2119         (add_to_strlist2): New.  Taken from ../util/strgutil.c of gnupg 1.2.
2121         * plaintext.c (handle_plaintext): New arg CREATE_FILE to cope with
2122         the fact that gpg-error does not have this error code anymore.
2124         * mainproc.c (symkey_decrypt_sesskey): Ditto.
2126         * seskey.c (make_session_key): Adjusted for use with libgcrypt.
2127         (encode_session_key): Ditto.
2128         (do_encode_md): Ditto.
2129         (encode_md_value): Ditto.
2131         * keyring.c: Use libgpg-error instead of READ_ERROR etc.
2133         * g10.c: Adjusted all algorithm name/id mapping functions.
2134         (set_debug): Pass MPI and CRYPTO debug values to libgcrypt.
2136         * Makefile.am (INCLUDES): Define LOCALEDIR and the default error
2137         source.
2139         * g10.c (i18n_init): s/G10_LOCALEDIR/LOCALEDIR/.
2141         Renamed m_alloc et al to xmalloc et al.
2142         s/g10_errstr/gpg_strerror/
2143         s/MPI/gcry_mpi_t/
2144         Adjusted all md_open calls to the libgcrypt API.
2145         
2146         * build-packet.c (do_comment): Return error code from iobuf write
2147         function.
2148         (do_user_id): Ditto.
2149         (do_public_key): Ditto.
2151         * Makefile.am: Add new files, link gpg with libgpg-error.
2152         * g10.c, options.h: New option --agent-program.
2153         * call-agent.c: New.
2154         * gpg.h, call-agent.h: New.
2156 2003-06-03  David Shaw  <dshaw@jabberwocky.com>
2158         * options.h, g10.c (main), keylist.c (list_keyblock_print): Add
2159         "show-validity" and "show-long-keyid" list-options.
2161         * gpgv.c (get_validity, trust_value_to_string): Stubs.
2163         * g10.c (main): Use SAFE_VERSION instead of VERSION in the
2164         version-specific gpg.conf file so it can be overridden on RISCOS.
2166 2003-06-01  David Shaw  <dshaw@jabberwocky.com>
2168         * g10.c (main), keylist.c (show_policy_url, show_notation),
2169         mainproc.c (check_sig_and_print): Emulate the old policy and
2170         notation behavior (display by default).  Send to status-fd whether
2171         it is displayed on the screen or not.
2173         * g10.c (main): Since we now have some options in devel that won't
2174         work in a stable branch gpg.conf file, try for a version-specific
2175         gpg.conf-VERSION file before falling back to gpg.conf.
2177         * main.h, options.h: Move various option flags to options.h.
2179 2003-05-31  David Shaw  <dshaw@jabberwocky.com>
2181         * mainproc.c (check_sig_and_print), main.h, keylist.c
2182         (show_policy, show_notation): Collapse the old print_notation_data
2183         into show_policy() and show_notation() so there is only one
2184         function to print notations and policy URLs.
2186         * options.h, main.h, g10.c (main), keyedit.c
2187         (print_and_check_one_sig), keylist.c (list_one,
2188         list_keyblock_print), pkclist.c (do_edit_ownertrust), sign.c
2189         (mk_notation_and_policy): New "list-options" and "verify-options"
2190         commands.  These replace the existing
2191         --show-photos/--no-show-photos,
2192         --show-notation/--no-show-notation,
2193         --show-policy-url/--no-show-policy-url, and --show-keyring
2194         options.  The new method is more flexible since a user can specify
2195         (for example) showing photos during sig verification, but not in
2196         key listings.  The old options are emulated.
2198         * main.h, misc.c (parse_options): New general option line
2199         parser. Fix the bug in the old version that did not handle report
2200         syntax errors after a valid entry.
2202         * import.c (parse_import_options), export.c
2203         (parse_export_options): Call it here instead of duplicating the
2204         code.
2206 2003-05-30  David Shaw  <dshaw@jabberwocky.com>
2208         * keylist.c (list_one): Don't show the keyring filename when in
2209         --with-colons mode.  Actually translate "Keyring" string.
2211         * mainproc.c (proc_tree): We can't currently handle multiple
2212         signatures of different classes or digests (we'd pretty much have
2213         to run a different hash context for each), but if they are all the
2214         same, make an exception.  This is Debian bug #194292.
2216         * sig-check.c (check_key_signature2): Make string translatable.
2218         * packet.h, getkey.c (fixup_uidnode): Mark real primary uids
2219         differently than assumed primaries.
2221         * keyedit.c (no_primary_warning): Use the differently marked
2222         primaries here in a new function to warn when an --edit-key
2223         command might rearrange the self-sig dates enough to change which
2224         uid is primary.
2225         (menu_expire, menu_set_preferences): Use no_primary_warning()
2226         here.
2228         * Makefile.am: Use @DLLIBS@ for -ldl.
2230 2003-05-26  David Shaw  <dshaw@jabberwocky.com>
2232         * getkey.c (premerge_public_with_secret): Made "no secret subkey
2233         for" warning a verbose item and translatable. (From wk on stable
2234         branch)
2236         * sig-check.c (check_key_signature2): Made "no subkey for subkey
2237         binding packet" a verbose item instead of a !quiet one.  There are
2238         too many garbled keys out in the wild. (From wk on stable branch)
2240         * filter.h: Remove const from WHAT. (From wk on stable branch)
2242         * progress.c (handle_progress): Store a copy of
2243         NAME. (progress_filter): Release WHAT, make sure not to print a
2244         NULL WHAT. (From wk on stable branch)
2246         * openfile.c (open_sigfile): Adjust free for new progress
2247         semantics. (From wk on stable branch)
2249         * plaintext.c (ask_for_detached_datafile): Don't dealloc
2250         pfx->WHAT. (From wk on stable branch)
2252         * seckey-cert.c (do_check): Issue the RSA_OR_IDEA status when the
2253         cipher algo is IDEA to make it easier to track down the
2254         problem. (From twoaday on stable branch)
2255         
2256 2003-05-24  David Shaw  <dshaw@jabberwocky.com>
2258         * armor.c, g10.c, kbnode.c, misc.c, pkclist.c, sign.c,
2259         build-packet.c, getkey.c, keydb.c, openfile.c, plaintext.c,
2260         status.c, gpgv.c, keygen.c, options.h, sig-check.c, tdbio.h,
2261         encode.c, mainproc.c, parse-packet.c, signal.c, textfilter.c: Edit
2262         all preprocessor instructions to remove whitespace before the '#'.
2263         This is not required by C89, but there are some compilers out
2264         there that don't like it.
2266 2003-05-21  David Shaw  <dshaw@jabberwocky.com>
2268         * trustdb.h, trustdb.c (is_disabled), gpgv.c (is_disabled): Rename
2269         is_disabled to cache_disabled_value, which now takes a pk and not
2270         just the keyid. This is for speed since there is no need to
2271         re-fetch a key when we already have that key handy.  Cache the
2272         result of the check so we don't need to hit the trustdb more than
2273         once.
2274         
2275         * getkey.c (skip_disabled): New function to get a pk and call
2276         is_disabled on it. (key_byname): Use it here.
2277         
2278         * packet.h, getkey.c (skip_disabled), keylist.c
2279         (print_capabilities): New "pk_is_disabled" macro to retrieve the
2280         cached disabled value if available, and fill it in via
2281         cache_disabled_value if not available.
2283         * trustdb.c (get_validity): Cache the disabled value since we have
2284         it handy and it might be useful later.
2286         * parse-packet.c (parse_key): Clear disabled flag when parsing a
2287         new key.  Just in case someone forgets to clear the whole key.
2289         * getkey.c (merge_selfsigs_main): Add an "if all else fails" path
2290         for setting a single user ID primary when there are multiple set
2291         primaries all at the same second, or no primaries set and the most
2292         recent user IDs are at the same second, or no signed user IDs at
2293         all. This is arbitrary, but deterministic.
2295         * exec.h, photoid.h: Add copyright message.
2297         * keylist.c (list_keyblock_print): Don't dump attribs for
2298         revoked/expired/etc uids for non-colon key listings.  This is for
2299         consistency with --show-photos.
2301         * main.h, keylist.c (dump_attribs), mainproc.c
2302         (check_sig_and_print): Dump attribs if --attrib-fd is set when
2303         verifying signatures.
2304         
2305         * g10.c (main): New --gnupg option to disable the various
2306         --openpgp, --pgpX, etc. options.  This is the same as --no-XXXX
2307         for those options.
2309         * revoke.c (ask_revocation_reason): Clear old reason if user
2310         elects to repeat question.  This is bug 153.
2312         * keyedit.c (sign_uids): Show keyid of the key making the
2313         signature.
2315 2003-05-21  Werner Koch  <wk@gnupg.org>
2317         * progress.c (handle_progress)
2318         * sign.c (write_plaintext_packet)
2319         * encode.c (encode_simple,encode_crypt): Make sure that a filename
2320         of "-" is considered to be stdin so that iobuf_get_filelength
2321         won't get called.  This fixes bug 156 reported by Gregery Barton.
2323 2003-05-02  David Shaw  <dshaw@jabberwocky.com>
2325         * packet.h, build-packet.c (build_sig_subpkt), export.c
2326         (do_export_stream), import.c (remove_bad_stuff, import),
2327         parse-packet.c (dump_sig_subpkt, parse_one_sig_subpkt): Remove
2328         vestigal code for the old sig cache subpacket.  This wasn't
2329         completely harmless as it caused subpacket 101 to disappear on
2330         import and export.
2332         * options.h, armor.c, cipher.c, g10.c, keyedit.c, pkclist.c,
2333         sign.c, encode.c, getkey.c, revoke.c: The current flags for
2334         different levels of PGP-ness are massively complex.  This is step
2335         one in simplifying them. No functional change yet, just use a
2336         macro to check for compliance level.
2338         * sign.c (sign_file): Fix bug that causes spurious compression
2339         preference warning.
2341         * sign.c (clearsign_file): Fix bug that prevents proper warning
2342         message from appearing when clearsigning in --pgp2 mode with a
2343         non-v3 RSA key.
2345         * main.h, misc.c (compliance_option_string, compliance_string,
2346         compliance_failure), pkclist.c (build_pk_list), sign.c (sign_file,
2347         clearsign_file), encode.c (encode_crypt,
2348         write_pubkey_enc_from_list): New functions to put the "this
2349         message may not be usable...." warning in one place.
2351         * options.h, g10.c (main): Part two of the simplification.  Use a
2352         single enum to indicate what we are compliant to (1991, 2440,
2353         PGPx, etc.)
2355         * g10.c (main): Show errors for failure in export, send-keys,
2356         recv-keys, and refresh-keys.
2358         * options.h, g10.c (main): Give algorithm warnings for algorithms
2359         chosen against the --pgpX and --openpgp rules.
2361         * keydb.h, pkclist.c (algo_available): Make TIGER192 invalid in
2362         --openpgp mode.
2364         * sign.c (sign_file), pkclist.c (algo_available): Allow passing a
2365         hint of 0.
2367 2003-05-01  David Shaw  <dshaw@jabberwocky.com>
2369         * tdbio.c (create_version_record): Only create new trustdbs with
2370         TM_CLASSIC or TM_PGP.
2372         * trustdb.h, trustdb.c (trust_string, get_ownertrust_string,
2373         get_validity_string, ask_ownertrust, validate_keys), pkclist.c
2374         (do_edit_ownertrust): Rename trust_string to trust_value_to_string
2375         for naming consistency.
2377         * trustdb.h, trustdb.c (string_to_trust_value): New function to
2378         translate a string to a trust value.
2380         * g10.c (main): Use string_to_trust_value here for
2381         --force-ownertrust.
2382         
2383         * options.h, g10.c (main), trustdb.c (trust_model_string,
2384         init_trustdb, check_trustdb, update_trustdb, get_validity,
2385         validate_one_keyblock): An "OpenPGP" trust model is misleading
2386         since there is no official OpenPGP trust model.  Use "PGP"
2387         instead.
2389 2003-04-30  David Shaw  <dshaw@jabberwocky.com>
2391         * build-packet.c (build_sig_subpkt): Comments.
2393         * exec.c (exec_write): Cast NULL to void* to properly terminate
2394         varargs list.
2396         * keyedit.c (show_key_with_all_names): Just for safety, catch an
2397         invalid pk algorithm.
2399         * sign.c (make_keysig_packet): Crucial that the call to mksubpkt
2400         comes LAST before the calls to finalize the sig as that makes it
2401         possible for the mksubpkt function to get a reliable pointer to
2402         the subpacket area.
2404         * pkclist.c (do_we_trust_pre): If an untrusted key was chosen by a
2405         particular user ID, use that ID as the one to ask about when
2406         prompting whether to use the key anyway.
2407         (build_pk_list): Similar change here when adding keys to the
2408         recipient list.
2410         * trustdb.c (update_validity): Fix bug that prevented more than
2411         one validity record per trust record.
2412         (get_validity): When retrieving validity for a (user) supplied
2413         user ID, return the validity for that user ID only, and do not
2414         fall back to the general key validity.
2415         (validate_one_keyblock): Some commentary on whether
2416         non-self-signed user IDs belong in the web of trust (arguably,
2417         they do).
2419 2003-04-27  David Shaw  <dshaw@jabberwocky.com>
2421         * g10.c (main): Add --no-textmode.
2423         * export.c (do_export_stream), keyedit.c (show_key_with_all_names,
2424         menu_addrevoker), mainproc.c (check_sig_and_print), photoid.c
2425         (show_photos), sign.c (mk_notation_and_policy), trustdb.c
2426         (get_validity, reset_trust_records, validate_keys): Make some
2427         strings translatable.
2429         * mainproc.c (check_sig_and_print): Show digest algorithm and sig
2430         class when verifying a sig with --verbose on, and add version, pk
2431         and hash algorithms and sig class to VALIDSIG.
2432         
2433         * parse-packet.c (enum_sig_subpkt): Make a warning message a
2434         --verbose warning message since we don't need to warn every time
2435         we see an unknown critical (we only need to invalidate the
2436         signature).
2438         * trustdb.c (init_trustdb): Check the trustdb options even with
2439         TM_AUTO since the auto may become TM_CLASSIC or TM_OPENPGP.
2441 2003-04-26  David Shaw  <dshaw@jabberwocky.com>
2443         * sign.c (do_sign): Show the hash used when making a signature in
2444         verbose mode.
2446         * tdbio.h, tdbio.c (tdbio_read_model): New function to return the
2447         trust model used in a given trustdb.
2449         * options.h, g10.c (main), trustdb.c (init_trustdb, check_trustdb,
2450         update_trustdb): Use tdbio_read_model to implement an "auto" trust
2451         model which is set via the trustdb.
2453 2003-04-23  David Shaw  <dshaw@jabberwocky.com>
2455         * import.c (import_revoke_cert): Remove ultimate trust when
2456         revoking an ultimately trusted key.
2458         * keyedit.c (sign_uids): Allow replacing expired signatures.
2459         Allow duplicate signatures with --expert.
2461         * pkclist.c (check_signatures_trust): Don't display a null
2462         fingerprint when checking a signature with --always-trust enabled.
2464         * filter.h (progress_filter_context_t), progress.c
2465         (handle_progress), plaintext.c (ask_for_detached_datafile,
2466         hash_datafiles): Fix compiler warnings.  Make "what" constant.
2468         * build-packet.c (do_plaintext): Do not create invalid literal
2469         packets with >255-byte names.
2471 2003-04-15  Werner Koch  <wk@gnupg.org>
2473         * Makefile.am (AM_CFLAGS): Make use of AM_CFLAGS and AM_LDFLAGS.
2475         * g10.c, options.h: New option --enable-progress-filter.
2476         * progress.c (handle_progress): Make use of it.
2478 2003-04-15  Marcus Brinkmann  <marcus@g10code.de>
2480         * progress.c: New file.
2481         * Makefile.am (common_source): Add progress.c.
2482         * filter.h (progress_filter_context_t): New type.
2483         (progress_filter, handle_progress): New prototypes.
2484         * main.h (open_sigfile): New argument for prototype.
2485         * openfile.c (open_sigfile): New argument to install progress
2486         filter.
2487         * encode.c (encode_simple): New variable PFX.  Register
2488         progress filter.  Install text_filter after that.
2489         (encode_crypt): Likewise.
2490         * sign.c (sign_file): Likewise.
2491         (clearsign_file): Likewise.
2492         * decrypt.c (decrypt_message): Likewise.
2493         (decrypt_messages): Likewise.
2494         * verify.c (verify_signatures): Likewise.
2495         (verify_one_file): Likewise.
2496         * plaintext.c (hash_datafiles): Likewise.
2497         (ask_for_detached_datafile): Likewise.
2499 2003-04-10  Werner Koch  <wk@gnupg.org>
2501         * passphrase.c (read_passphrase_from_fd): Do a dummy read if the
2502         agent is to be used.  Noted by Ingo Klöcker.
2503         (agent_get_passphrase): Inhibit caching when we have no
2504         fingerprint.  This is required for key generation as well as for
2505         symmetric only encryption.
2507         * passphrase .c (agent_get_passphrase): New arg CANCELED.
2508         (passphrase_to_dek): Ditto.  Passed to above.  Changed all
2509         callers to pass NULL.
2510         * seckey-cert.c (do_check): New arg CANCELED.
2511         (check_secret_key): Terminate loop when canceled.
2513         * keyedit.c (change_passphrase): Pass ERRTEXT untranslated to
2514         passphrase_to_dek and translate where appropriate.
2515         * seckey-cert.c (check_secret_key): Ditto.
2516         * keygen.c (ask_passphrase): Ditto.
2517         * passphrase.c (agent_get_passphrase): Translate the TRYAGAIN_TEXT.
2518         Switch the codeset to utf-8.
2520 2003-04-09  Werner Koch  <wk@gnupg.org>
2522         * decrypt.c (decrypt_messages): Fixed error handling; the function
2523         used to re-loop with same file after an error.  Reported by Joseph
2524         Walton.
2526 2003-04-08  David Shaw  <dshaw@jabberwocky.com>
2528         * main.h, g10.c (main), import.c (parse_import_options,
2529         fix_pks_corruption): It's really PKS corruption, not HKP
2530         corruption.  Keep the old repair-hkp-subkey-bug command as an
2531         alias.
2533         * g10.c (main): Rename --no-version to --no-emit-version for
2534         consistency.  Keep --no-version as an alias.
2536 2003-04-04  David Shaw  <dshaw@jabberwocky.com>
2538         * pkclist.c (algo_available): PGP 8 can use the SHA-256 hash.
2540         * sign.c (sign_file, clearsign_file, sign_symencrypt_file): Remove
2541         unused code.
2543 2003-04-01  Werner Koch  <wk@gnupg.org>
2545         * mainproc.c (check_sig_and_print): Add primary key fpr to VALIDSIG
2546         status.
2548 2003-03-24  David Shaw  <dshaw@jabberwocky.com>
2550         * keydb.h: Err on the side of making an unknown signature a SIG
2551         rather than a CERT.
2553         * import.c (delete_inv_parts): Discard any key signatures that
2554         aren't key types (i.e. 0x00, 0x01, etc.)
2556         * g10.c (main): Add deprecated option warning for
2557         --list-ownertrust.  Add --compression-algo alias for
2558         --compress-algo.  Change --version output strings to match
2559         "showpref" strings, and make translatable.
2561         * status.c (do_get_from_fd): Accept 'y' as well as 'Y' for
2562         --command-fd boolean input.
2564         * trustdb.c: Fix typo (DISABLE_REGEXP -> DISABLE_REGEX)
2566         * keyedit.c (show_key_with_all_names_colon): Show no-ks-modify
2567         flag.
2569 2003-03-11  David Shaw  <dshaw@jabberwocky.com>
2571         * options.h, g10.c (main), keyserver.c (kopts): Add "try-dns-srv"
2572         keyserver option.  Defaults to on.
2574         * passphrase.c (agent_get_passphrase): Fix memory leak with
2575         symmetric messages.  Fix segfault with symmetric messages.  Fix
2576         incorrect prompt with symmetric messages.
2578 2003-03-10  Werner Koch  <wk@gnupg.org>
2580         * compress.c (init_uncompress): Use a 15 bit window size so that
2581         the output of implementations which don't run for PGP 2
2582         compatibility won't get garbled.
2584 2003-03-04  David Shaw  <dshaw@jabberwocky.com>
2586         * trustdb.c (validate_keys): Mask the ownertrust when building the
2587         list of fully valid keys so that disabled keys are still counted
2588         in the web of trust.
2589         (get_ownertrust_with_min): Do the same for the minimum ownertrust
2590         calculation.
2592         * parse-packet.c (dump_sig_subpkt): Show the notation names for
2593         not-human-readable notations.  Fix cosmetic off-by-one length
2594         counter.
2596         * options.skel: Add explantion and commented-out
2597         "no-mangle-dos-filenames".
2599         * mainproc.c (proc_encrypted): Make string translatable.
2601         * keyserver.c (keyserver_spawn): Quote ':', '%', and any 8-bit
2602         characters in the uid strings sent to the keyserver helper.
2604         * keyring.c (keyring_rebuild_cache): Lock the keyring while
2605         rebuilding the signature caches to prevent another gpg from
2606         tampering with the temporary copy.
2608         * keygen.c (keygen_set_std_prefs): Include AES192 and AES256 in
2609         default prefs.
2611         * keyedit.c (show_prefs): Make strings translatable.
2613         * keydb.c: Double the maximum number of keyrings to 40.
2615         * gpgv.c (main): Fix bug #113 - gpgv should accept the
2616         --ignore-time-conflict option.
2618         * g10.c (main): --openpgp disables --pgpX.  Double the amount of
2619         secure memory to 32k (keys are getting bigger these days).
2621         * Makefile.am: Makefile.am: Use @CAPLIBS@ to link in -lcap if we
2622         are using capabilities.
2624 2003-02-26  David Shaw  <dshaw@jabberwocky.com>
2626         * keyserver.c (keyserver_spawn): Include various pieces of
2627         information about the key in the data sent to the keyserver
2628         helper.  This allows the helper to use it in instructing a remote
2629         server which may not have any actual OpenPGP smarts in parsing
2630         keys.
2632         * main.h, export.c (export_pubkeys_stream, do_export_stream): Add
2633         ability to return only the first match in an exported keyblock for
2634         keyserver usage.  This should be replaced at some point with a
2635         more flexible solution where each key can be armored seperately.
2637 2003-02-22  David Shaw  <dshaw@jabberwocky.com>
2639         * sign.c (sign_file): Do not push textmode filter onto an unopened
2640         IOBUF (segfault).  Noted by Marcus Brinkmann.  Push and
2641         reinitialize textmode filter for each file in a multiple file
2642         list.
2644         * packet.h, getkey.c (fixup_uidnode), keyedit.c (show_prefs): Set
2645         and show the keyserver no-modify flag.
2647         * keygen.c (add_keyserver_modify): New.
2648         (keygen_upd_std_prefs): Call it here.
2649         (keygen_set_std_prefs): Accept "ks-modify" and "no-ks-modify" as
2650         prefs to set and unset keyserver modify flag.
2652         * g10.c (main): Accept "s1" in addition to "idea" to match the
2653         other ciphers.
2655         * main.h, misc.c (idea_cipher_warn): We don't need this if IDEA
2656         has been disabled.
2658 2003-02-21  David Shaw  <dshaw@jabberwocky.com>
2660         * keygen.c (keygen_set_std_prefs): Don't put AES or CAST5 in
2661         default prefs if they are disabled.
2663         * g10.c (main): Use 3DES instead of CAST5 if we don't have CAST5
2664         support.  Use 3DES for the s2k cipher in --openpgp mode.
2665         (print_mds): #ifdef all of the optional digest algorithms.
2667 2003-02-12  David Shaw  <dshaw@jabberwocky.com>
2669         * keydb.h, getkey.c (classify_user_id, classify_user_id2): Make
2670         'exact' a per-desc item.  Merge into one function since
2671         'force_exact' is no longer needed.
2672         (key_byname): Use new classify_user_id function, and new exact
2673         flag in KEYDB_SEARCH_DESC.
2675         * keyring.h, keyring.c (keyring_search): Return an optional index
2676         to show which KEYDB_SEARCH_DESC was the matching one.
2678         * keydb.h, keydb.c (keydb_search): Rename to keydb_search2, and
2679         pass the optional index to keyring_search.  Add a macro version of
2680         keydb_search that calls this new function.
2682         * export.c (do_export_stream): If the keyid! syntax is used,
2683         export only that specified key.  If the key in question is a
2684         subkey, export the primary plus that subkey only.
2686 2003-02-11  David Shaw  <dshaw@jabberwocky.com>
2688         * exec.c (set_exec_path): Add debugging line.
2690         * g10.c (print_hex, print_mds): Print long hash strings a lot
2691         neater.  This assumes at least an 80-character display, as there
2692         are a few other similar assumptions here and there.  Users who
2693         need unformatted hashes can still use with-colons.  Check that
2694         SHA384 and 512 are available before using them as they are no
2695         longer always available.
2697         * Makefile.am: Use a local copy of libexecdir along with @PACKAGE@
2698         as GNUPG_LIBEXECDIR so it can be easily overridden at make time.
2700 2003-02-04  David Shaw  <dshaw@jabberwocky.com>
2702         * armor.c (parse_hash_header, armor_filter): Accept the new SHAs
2703         in the armor Hash: header.
2705         * g10.c (print_hex): Print long hash strings a little neater.
2706         (print_mds): Add the new SHAs to the hash list.
2708 2003-02-02  David Shaw  <dshaw@jabberwocky.com>
2710         * keyedit.c (menu_revuid): Properly handle a nonselfsigned uid on
2711         a v4 key (treat as a v4 revocation).
2713         * import.c (print_import_check): Do not re-utf8 convert user IDs.
2715 2003-01-27  David Shaw  <dshaw@jabberwocky.com>
2717         * mainproc.c (list_node): Show signature expiration date in
2718         with-colons sig records.
2720         * keylist.c (list_keyblock_colon), mainproc.c (list_node): Show
2721         trust sig information in with-colons sig records.
2723 2003-01-16  David Shaw  <dshaw@jabberwocky.com>
2725         * g10.c (add_group): Trim whitespace after a group name so it does
2726         not matter where the user puts the = sign.
2728         * options.skel: Comment out the first three lines in case someone
2729         manually copies the skel file to their homedir.
2731         * sign.c (clearsign_file): Only use pgp2mode with v3 keys and
2732         MD5. This matches what we do when decoding such messages and
2733         prevents creating a message (v3+RIPEMD/160) that we can't verify.
2735         * sig-check.c (signature_check2): Use G10ERR_GENERAL as the error
2736         for signature digest conflict.  BAD_SIGN implies that a signature
2737         was checked and we may try and print out a user ID for a key that
2738         doesn't exist.
2740 2003-01-15  David Shaw  <dshaw@jabberwocky.com>
2742         * trustdb.c (init_trustdb, get_validity): Don't use a changed
2743         trust model to indicate a dirty trustdb, and never auto-rebuild a
2744         dirty trustdb with the "always" trust model.
2746         * g10.c (add_group): Last commit missed the \t ;)
2748 2003-01-14  David Shaw  <dshaw@jabberwocky.com>
2750         * packet.h, parse-packet.c (setup_user_id), free-packet.c
2751         (free_user_id), keydb.h, keyid.c (namehash_from_uid): New function
2752         to rmd160-hash the contents of a user ID packet and cache it in
2753         the uid object.
2755         * keylist.c (list_keyblock_colon): Use namehash in field 8 of
2756         uids.  Show dates for creation (selfsig date), and expiration in
2757         fields 6 and 7.
2759         * trustdb.c (get_validity, get_validity_counts, update_validity):
2760         Use new namehash function rather than hashing it locally.
2762 2003-01-14  Werner Koch  <wk@gnupg.org>
2764         * g10.c (add_group): Fixed group parsing to allow more than one
2765         delimiter in a row and also allow tab as delimiter.
2767 2003-01-12  David Shaw  <dshaw@jabberwocky.com>
2769         * tdbio.c (tdbio_set_dbname): Fix assertion failure with
2770         non-fully-qualified trustdb names.
2772 2003-01-11  David Shaw  <dshaw@jabberwocky.com>
2774         * trustdb.c (get_validity_info, get_ownertrust_info,
2775         trust_letter): Simplify by returning a ? for error directly.
2777         * keyedit.c (show_key_with_all_names): Use get_validity_string and
2778         get_ownertrust_string to show full word versions of trust
2779         (i.e. "full" instead of 'f').
2781         * trustdb.h, trustdb.c (get_ownertrust_string,
2782         get_validity_string): Same as get_ownertrust_info, and
2783         get_validity_info, except returns a full string.
2785         * trustdb.c (get_ownertrust_with_min): New.  Same as
2786         'get_ownertrust' but takes the min_ownertrust value into account.
2788 2003-01-10  David Shaw  <dshaw@jabberwocky.com>
2790         * armor.c (armor_filter): Comment about PGP's end of line tab
2791         problem.
2793         * trustdb.h, trustdb.c (trust_letter): Make
2794         static. (get_ownertrust_info, get_validity_info): Don't mask the
2795         trust level twice.
2797         * trustdb.h, gpgv.c, trustdb.c (get_validity, get_validity_info),
2798         keylist.c (list_keyblock_colon), keyedit.c
2799         (show_key_with_all_names_colon, menu_revuid): Pass a user ID in
2800         rather than a namehash, so we only have to do the hashing in one
2801         place.
2803         * packet.h, pkclist.c (build_pk_list), free-packet.c
2804         (release_public_key_parts): Remove unused namehash element for
2805         public keys.
2807 2003-01-07  David Shaw  <dshaw@jabberwocky.com>
2809         * keygen.c (keygen_set_std_prefs): Warn when setting an IDEA
2810         preference when IDEA is not available.
2812 2003-01-06  David Shaw  <dshaw@jabberwocky.com>
2814         * trustdb.c (get_validity_info): 'd' for disabled is not a
2815         validity value any more.
2817         * packet.h, tdbio.h, tdbio.c (tdbio_read_record,
2818         tdbio_write_record), trustdb.c (update_validity): Store temporary
2819         full & marginal counts in the trustdb.
2820         (clear_validity, get_validity_counts): Return and clear temp
2821         counts.
2822         (store_validation_status): Keep track of which keyids have been
2823         stored.
2824         (validate_one_keyblock, validate_key_list): Use per-uid copies of
2825         the full & marginal counts so they can be recalled for multiple
2826         levels.
2827         (validate_keys): Only use unused keys for each new round.
2828         (reset_unconnected_keys): Rename to reset_trust_records, and only
2829         skip specifically excluded records.
2831         * keylist.c (print_capabilities): Show 'D' for disabled keys in
2832         capabilities section.
2834         * trustdb.c (is_disabled): Remove incorrect comment.
2836 2003-01-03  David Shaw  <dshaw@jabberwocky.com>
2838         * import.c (import_one): Only do the work to create the status
2839         display for interactive import if status is enabled.
2841         * keyring.c (keyring_search): skipfnc didn't work properly with
2842         non-keyid searches.  Noted by Stefan Bellon.
2844         * getkey.c (merge_selfsigs_main): Remove some unused code and make
2845         sure that the pk selfsigversion member accounts for 1F direct
2846         sigs.
2848 2003-01-02  Werner Koch  <wk@gnupg.org>
2850         * keydb.c (keydb_add_resource): Don't assume that try_make_homedir
2851         terminates but check again for the existence of the directory and
2852         continue then.
2853         * openfile.c (copy_options_file): Print a warning if the skeleton
2854         file has active options.
2856 2002-12-29  David Shaw  <dshaw@jabberwocky.com>
2858         * getkey.c (merge_selfsigs_main), main.h, sig-check.c
2859         (check_key_signature2): Pass the ultimately trusted pk directly to
2860         check_key_signature2 to avoid going through the key selection
2861         mechanism.  This prevents a deadly embrace when two keys without
2862         selfsigs each sign the other.
2864 2002-12-27  David Shaw  <dshaw@jabberwocky.com>
2866         * keyserver.c (keyserver_refresh): Don't print the "refreshing..."
2867         line if there are no keys to refresh or if there is no keyserver
2868         set.
2870         * getkey.c (merge_selfsigs_main): Any valid user ID should make a
2871         key valid, not just the last one.  This also fixes Debian bug
2872         #174276.
2874 2002-12-27  Stefan Bellon  <sbellon@sbellon.de>
2876         * import.c (print_import_check): Changed int to size_t.
2878 2002-12-27  David Shaw  <dshaw@jabberwocky.com>
2880         * keyedit.c (keyedit_menu, menu_revuid): Add "revuid" feature to
2881         revoke a user ID.  This is the same as issuing a revocation for
2882         the self-signature, but a much simpler interface to do it.
2884 2002-12-26  David Shaw  <dshaw@jabberwocky.com>
2886         * keydb.h, getkey.c (key_byname): Flag to enable or disable
2887         including disabled keys.  Keys specified via keyid (i.e. 0x...)
2888         are always included.
2890         * getkey.c (get_pubkey_byname, get_seckey_byname2,
2891         get_seckey_bynames), keyedit.c (keyedit_menu, menu_addrevoker):
2892         Include disabled keys in these functions.
2894         * pkclist.c (build_pk_list): Do not include disabled keys for -r
2895         or the key prompt.  Do include disabled keys for the default key
2896         and --encrypt-to.
2898         * trustdb.h, trustdb.c (is_disabled): New skipfnc for skipping
2899         disabled keys.
2901         * gpgv.c (is_disabled): Stub.
2903         * keygen.c (keygen_add_key_expire): Properly handle updating a key
2904         expiration to a no-expiration value.
2906         * keyedit.c (enable_disable_key): Comment.
2908         * import.c (import_one): When in interactive mode and --verbose,
2909         don't repeat some key information twice.
2911 2002-12-22  Timo Schulz  <ts@winpt.org>
2912         
2913         * import.c (print_import_check): New.
2914         (import_one): Use it here.
2915         Use merge_keys_and_selfsig in the interactive mode to avoid
2916         wrong key information.
2917         * status.h: Add new status code.
2918         * status.c: Ditto.
2919         
2920 2002-12-13  David Shaw  <dshaw@jabberwocky.com>
2922         * pkclist.c (do_we_trust): Tweak language to refer to the "named
2923         user" rather than "owner".  Noted by Stefan Bellon.
2925         * trustdb.h, trustdb.c (trustdb_pending_check): New function to
2926         check if the trustdb needs a check.
2928         * import.c (import_keys_internal): Used here so we don't rebuild
2929         the trustdb if it is still clean.
2930         (import_one, chk_self_sigs): Only mark trustdb dirty if the key
2931         that is being imported has any sigs other than self-sigs.
2932         Suggested by Adrian von Bidder.
2934         * options.skel: Include the required '=' sign in the sample
2935         'group' option.  Noted by Stefan Bellon.
2937         * import.c (chk_self_sigs): Don't try and check a subkey as if it
2938         was a signature.
2940 2002-12-11  David Shaw  <dshaw@jabberwocky.com>
2942         * tdbio.c (tdbio_read_record, tdbio_write_record): Compact the
2943         RECTYPE_TRUST records a bit.
2945         * g10.c (main): Comment out --list-trust-path until it can be
2946         implemented.
2948         * import.c (import_one): Warn when importing an Elgamal primary
2949         that this may take some time (to verify self-sigs).
2950         (chk_self_sigs): Try and cache all self-sigs so the keyblock is
2951         written to the keyring with a good rich cache.
2953         * keygen.c (ask_algo): Make the Elgamal sign+encrypt warning
2954         stronger, and remove the RSA sign+encrypt warning.
2956 2002-12-06  Stefan Bellon  <sbellon@sbellon.de>
2958         * options.h: Fixed typo (mangle_dos_names instead of
2959         mangle_dos_filenames).
2961 2002-12-05  Werner Koch  <wk@gnupg.org>
2963         * g10.c: New options --[no-]mangle-dos-filenames.
2964         * options.h (opt): Added mangle-dos-filenames.
2965         * openfile.c (open_outfile) [USE_ONLY_8DOT3]: Truncate the
2966         filename only when this option is set; this is the default.
2968 2002-12-04  David Shaw  <dshaw@jabberwocky.com>
2970         * main.h, keyedit.c, keygen.c: Back out previous (2002-12-01)
2971         change.  Minimal isn't always best.
2973         * sign.c (update_keysig_packet): Use the current time rather then
2974         a modification of the original signature time.  Make sure that
2975         this doesn't cause a time warp.
2977         * keygen.c (keygen_add_key_expire): Properly handle a key
2978         expiration date in the past (use a duration of 0).
2980         * keyedit.c (menu_expire): Use update_keysig_packet so any sig
2981         subpackets are maintained during the update.
2983         * build-packet.c (build_sig_subpkt): Mark sig expired or unexpired
2984         when the sig expiration subpacket is added.
2985         (build_sig_subpkt_from_sig): Handle making an expiration subpacket
2986         from a sig that has already expired (use a duration of 0).
2988         * packet.h, sign.c (update_keysig_packet), keyedit.c
2989         (menu_set_primary_uid, menu_set_preferences): Add ability to issue
2990         0x18 subkey binding sigs to update_keysig_packet and change all
2991         callers.
2993         * trustdb.c (validate_keys): Show trust parameters when building
2994         the trustdb, and make sure that the version record update was
2995         successful.
2996         (init_trustdb): If the current parameters aren't what was used for
2997         building the trustdb, the trustdb is invalid.
2999         * tbio.c (tdbio_db_matches_options): Update to work with new
3000         trustdbs.
3002 2002-12-03  David Shaw  <dshaw@jabberwocky.com>
3004         * tdbio.h, tdbio.c (tdbio_read_record, tdbio_write_record): Store
3005         trust model in the trustdb version record.
3006         (tdbio_update_version_record): New function to update version
3007         record values during a trustdb check or update.
3008         (tdbio_dump_record): Show trust model in dump.
3010         * trustdb.c (validate_keys): Call tdbio_update_version_record on
3011         success so that the correct options are stored in the trustdb.
3013         * options.h: rearrange trust models so that CLASSIC is 0 and
3014         OPENPGP is 1.
3016         * options.h, g10.c (main), encode.c (write_pubkey_enc_from_list),
3017         pkclist.c (algo_available), revoke.c (gen_revoke): Add --pgp8
3018         mode.  This is basically identical to --pgp7 in all ways except
3019         that signing subkeys, v4 data sigs (including expiration), and SK
3020         comments are allowed.
3022         * getkey.c (finish_lookup): Comment.
3024         * main.h, keylist.c (reorder_keyblock), keyedit.c (keyedit_menu):
3025         Reorder user ID display in the --edit-key menu to match that of
3026         the --list-keys display.
3028         * g10.c (add_notation_data): Fix initialization.
3030 2002-12-01  David Shaw  <dshaw@jabberwocky.com>
3032         * keyedit.c (menu_expire): Don't lose key flags when changing the
3033         expiration date of a subkey.  This is not the most optimal
3034         solution, but it is minimal change on the stable branch.
3036         * main.h, keygen.c (do_copy_key_flags): New function to copy key
3037         flags, if any, from one sig to another.
3038         (do_add_key_expire): New function to add key expiration to a sig.
3039         (keygen_copy_flags_add_expire): New version of
3040         keygen_add_key_expire that also copies key flags.
3041         (keygen_add_key_flags_and_expire): Use do_add_key_expire.
3043         * import.c (fix_hkp_corruption): Comment.
3045 2002-11-25  Stefan Bellon  <sbellon@sbellon.de>
3047         * plaintext.c (handle_plaintext) [__riscos__]: If nooutput is set,
3048         no filetype is needed obviously.
3050 2002-11-24  David Shaw  <dshaw@jabberwocky.com>
3052         * main.h, misc.c (default_cipher_algo, default_compress_algo):
3053         New.  Return the default algorithm by trying
3054         --cipher-algo/--compress-algo, then the first item in the pref
3055         list, then s2k-cipher-algo or ZIP.
3057         * sign.c (sign_file, sign_symencrypt_file), encode.c
3058         (encode_simple, encode_crypt): Call default_cipher_algo and
3059         default_compress_algo to get algorithms.
3061         * g10.c (main): Allow pref selection for compress algo with
3062         --openpgp.
3064         * mainproc.c (proc_encrypted): Use --s2k-digest-algo for
3065         passphrase mangling rather than --digest-algo.
3067         * sign.c (hash_for): If --digest-algo is not set, but
3068         --personal-digest-preferences is, then use the first hash
3069         algorithm in the personal list.  If the signing algorithm is DSA,
3070         then use the first 160-bit hash algorithm in the personal list.
3071         If --pgp2 is set and it's a v3 RSA key, use MD5.
3073         * g10.c (main), keydb.c (keydb_add_resource,
3074         keydb_locate_writable): Rename --default-keyring as
3075         --primary-keyring.  Stefan wins the naming contest.
3077 2002-11-23  David Shaw  <dshaw@jabberwocky.com>
3079         * g10.c (add_notation_data): Disallow notation names that do not
3080         contain a '@', unless --expert is set.  This is to help prevent
3081         people from polluting the (as yet unused) IETF namespace.
3083         * main.h: Comments about default algorithms.
3085         * photoid.c (image_type_to_string): Comments about 3-letter file
3086         extensions.
3088         * encode.c (encode_simple), passphrase.c (passphrase_to_dek),
3089         sign.c (sign_symencrypt_file): Use --s2k-digest-algo for
3090         passphrase mangling rather than --digest-algo.
3092 2002-11-21  David Shaw  <dshaw@jabberwocky.com>
3094         * keygen.c (keygen_set_std_prefs): Properly handle an empty
3095         preference string.
3097         * misc.c (string_to_compress_algo): "none" is a bad choice since
3098         it conflicts with the "none" in setpref.
3100 2002-11-14  David Shaw  <dshaw@jabberwocky.com>
3102         * g10.c (main): Allow compression algorithm names as the argument
3103         to --compress-algo.  The old algorithm names still work for
3104         backwards compatibility.
3106         * misc.c (string_to_compress_algo): Allow "none" as an alias for
3107         "uncompressed".
3109 2002-11-13  Stefan Bellon  <sbellon@sbellon.de>
3111         * getkey.c (get_pubkey_byfprint_fast): Fixed type incompatibility,
3112         was unsigned char instead of byte.
3114 2002-11-13  David Shaw  <dshaw@jabberwocky.com>
3116         * encode.c (encode_simple): Make sure that files larger than about
3117         4G use partial length encoding.  This is required because OpenPGP
3118         allows only for 32 bit length fields.  From Werner on stable
3119         branch.
3121         * getkey.c (get_pubkey_direct): Renamed to...
3122         (get_pubkey_fast): this and made extern.
3123         (get_pubkey_byfprint_fast): New.  From Werner on stable branch.
3125         * keydb.h, import.c (import_one): Use get_pubkey_fast instead of
3126         get_pubkey.  We don't need a merged key and actually this might
3127         lead to recursions.
3128         (revocation_present): Likewise for search by fingerprint.  From
3129         Werner on stable branch.
3131         * g10.c (main): Try to create the trustdb even for non-colon-mode
3132         list-key operations.  This is required because getkey needs to
3133         know whether a a key is ultimately trusted.  From Werner on stable
3134         branch.
3135         
3136         * exec.c [__CYGWIN32__]: Keep cygwin separate from Mingw32;
3137         we don't need it here as it behaves more like a Posix system.
3138         From Werner on stable branch.
3140         * passphrase.c (agent_get_passphrase): Ditto.  From Werner on
3141         stable branch.
3143         * tdbio.c (MY_O_BINARY): Need binary mode with Cygwin.  From
3144         Werner on stable branch.
3146         * g10.c, gpgv.c (main) [__CYGWIN32__]: Don't get the homedir from
3147         the registry.  From Werner on stable branch.
3148         
3149         * keyedit.c (show_key_with_all_names_colon): Make --with-colons
3150         --edit display match the validity and trust of --with-colons
3151         --list-keys.
3153         * passphrase.c (agent_send_all_options): Fix compile warning.
3155         * keylist.c (list_keyblock_colon): Validity for subkeys should
3156         match that of the primary key, and not that of the last user ID.
3158         * getkey.c (merge_selfsigs): Revoked/expired/invalid primary keys
3159         carry these facts onto all their subkeys, but only after the
3160         subkey has a chance to be marked valid.  This is to fix an
3161         incorrect "invalid public key" error verifying a signature made by
3162         a revoked signing subkey, with a valid unrevoked primary key.
3164 2002-11-09  Werner Koch  <wk@gnupg.org>
3166         * passphrase.c (agent_send_all_options): Use tty_get_ttyname to
3167         get the default ttyname.
3169 2002-11-07  David Shaw  <dshaw@jabberwocky.com>
3171         * keyring.h, keyring.c (keyring_register_filename): Return the
3172         pointer if a given keyring is registered twice.
3174         * keydb.h, keydb.c (keydb_add_resource): Use flags to indicate a
3175         default keyring.
3176         (keydb_locate_writable): Prefer the default keyring if possible.
3178         * g10.c (main): Add --default-keyring option.
3180 2002-11-06  David Shaw  <dshaw@jabberwocky.com>
3182         * options.h, g10.c (main), trustdb.c (ask_ownertrust): Add
3183         --force-ownertrust option for debugging purposes.  This allows
3184         setting a whole keyring to a given trust during an
3185         --update-trustdb.  Not for normal use - it's just easier than
3186         hitting "4" all the time to test a large trustdb.
3188         * pubkey-enc.c (get_session_key): With hidden recipients or try a
3189         given passphrase against all secret keys rather than trying all
3190         secret keys in turn.  Don't if --try-all-secrets or --status-fd is
3191         enabled.
3193         * passphrase.c (passphrase_to_dek): Mode 1 means do a regular
3194         passphrase query, but don't prompt with the key info.
3196         * seckey-cert.c (do_check, check_secret_key): A negative ask count
3197         means to enable passphrase mode 1.
3199         * keydb.h, getkey.c (enum_secret_keys): Add flag to include
3200         secret-parts-missing keys (or not) in the list.
3202 2002-11-05  David Shaw  <dshaw@jabberwocky.com>
3204         * keyserver.c (keyserver_search_prompt): When --with-colons is
3205         enabled, don't try and fit the search output to the screen size -
3206         just dump the whole list.
3208 2002-11-04  David Shaw  <dshaw@jabberwocky.com>
3210         * keyserver.c (keyserver_search_prompt): When --with-colons is
3211         enabled, just dump the raw keyserver protocol to stdout and don't
3212         print the menu.
3214         * keyserver.c (show_prompt): Don't show a prompt when command-fd
3215         is being used.
3217         * trustdb.c (trust_model_string, check_trustdb, update_trustdb,
3218         validate_one_keyblock): It's not clear what a trustdb rebuild or
3219         check means with a trust model other than "classic" or "openpgp",
3220         so disallow this.
3222 2002-11-03  David Shaw  <dshaw@jabberwocky.com>
3224         * options.h, g10.c (main): Add --trust-model option.  Current
3225         models are "openpgp" which is classic+trustsigs, "classic" which
3226         is classic only, and "always" which is the same as the current
3227         option --always-trust (which still works).  Default is "openpgp".
3229         * trustdb.c (validate_one_keyblock): Use "openpgp" trust model to
3230         enable trust sigs.
3232         * gpgv.c (main), mainproc.c (check_sig_and_print), pkclist.c
3233         (do_we_trust, do_we_trust_pre, check_signatures_trust): Use new
3234         --trust-model option in place of --always-trust.
3236         * keyedit.c (sign_mk_attrib, trustsig_prompt, sign_uids,
3237         keyedit_menu): Prompt for and create a trust signature with
3238         "tsign".  This is functional, but needs better UI text.
3240         * build-packet.c (build_sig_subpkt): Able to build trust and
3241         regexp subpackets.
3243         * pkclist.c (do_edit_ownertrust): Comment.
3245 2002-11-02  David Shaw  <dshaw@jabberwocky.com>
3247         * keygen.c (set_one_pref, keygen_set_std_prefs): Allow using the
3248         full algorithm name (CAST5, SHA1) rather than the short form (S3,
3249         H2).
3251         * main.h, keygen.c (keygen_get_std_prefs), keyedit.c
3252         (keyedit_menu): Return and use a fake uid packet rather than a
3253         string since we already have a nice parser/printer in
3254         keyedit.c:show_prefs.
3256         * main.h, misc.c (string_to_compress_algo): New.
3258 2002-11-01  David Shaw  <dshaw@jabberwocky.com>
3260         * g10.c (main): Add --no-throw-keyid.
3262         * keydb.h, encode.c (write_pubkey_enc_from_list), g10.c (main),
3263         pkclist.c (build_pk_list): Add --hidden-recipient (-R) and
3264         --hidden-encrypt-to, which do a single-user variation on
3265         --throw-keyid.  The "hide this key" flag is carried in bit 0 of
3266         the pk_list flags field.
3268         * keyserver.c (parse_keyrec): Fix shadowing warning.
3270 2002-10-31  Stefan Bellon  <sbellon@sbellon.de>
3272         * compress.c (init_compress) [__riscos__]: Use
3273         riscos_load_module() to load ZLib module.
3275         * g10.c (main) [__riscos__]: Renames due to changes in riscos.c
3276         (e.g. prefixes all RISC OS specific functions with riscos_*).
3277         * photoid.c (show_photos) [__riscos__]: Likewise.
3278         * signal.c (got_fatal_signal) [__riscos__]: Likewise.
3280         * trustdb.c (check_regexp) [__riscos__]: Branch to RISC OS RegEx
3281         handling.
3283 2002-10-31  David Shaw  <dshaw@jabberwocky.com>
3285         * build-packet.c (do_plaintext), encode.c (encode_sesskey,
3286         encode_simple, encode_crypt), sign.c (write_plaintext_packet): Use
3287         wipememory() instead of memset() to wipe sensitive memory as the
3288         memset() might be optimized away.
3290 2002-10-30  David Shaw  <dshaw@jabberwocky.com>
3292         * trustdb.c (check_regexp): Modern regexps require REG_EXTENDED.
3294 2002-10-29  David Shaw  <dshaw@jabberwocky.com>
3296         * packet.h, trustdb.h, trustdb.c (trust_string): New.  Return a
3297         string like "fully trusted", "marginally trusted", etc.
3298         (get_min_ownertrust): New.  Return minimum ownertrust.
3299         (update_min_ownertrust): New.  Set minimum ownertrust.
3300         (check_regexp): New.  Check a regular epression against a user ID.
3301         (ask_ownertrust): Allow specifying a minimum value.
3302         (get_ownertrust_info): Follow the minimum ownertrust when
3303         returning a letter.
3304         (clear_validity): Remove minimum ownertrust when a key becomes
3305         invalid.
3306         (release_key_items): Release regexp along with the rest of the
3307         info.
3308         (validate_one_keyblock, validate_keys): Build a trust sig chain
3309         while validating.  Call check_regexp for regexps.  Use the minimum
3310         ownertrust if the user does not specify a genuine ownertrust.
3312         * pkclist.c (do_edit_ownertrust): Only allow user to select a
3313         trust level greater than the minimum value.
3315         * parse-packet.c (can_handle_critical): Can handle critical trust
3316         and regexp subpackets.
3318         * trustdb.h, trustdb.c (clear_ownertrusts), delkey.c
3319         (do_delete_key), import.c (import_one): Rename clear_ownertrust to
3320         clear_ownertrusts and have it clear the min_ownertrust value as
3321         well.
3323         * keylist.c (list_keyblock_print): Indent uid to match pub and
3324         sig.
3326         * keyedit.c (print_and_check_one_sig, show_key_and_fingerprint,
3327         menu_addrevoker), keylist.c (list_keyblock_print,
3328         print_fingerprint): Show "T" or the trust depth for trust
3329         signatures, and add spaces to some strings to make room for it.
3331         * packet.h, parse-packet.c (dump_sig_subpkt, parse_one_sig_subpkt,
3332         parse_signature): Parse trust signature values.
3334         * tdbio.h, tdbio.c (tdbio_read_record, tdbio_write_record):
3335         Reserve a byte for the minimum ownertrust value (for use with
3336         trust signatures).
3338 2002-10-29  Stefan Bellon  <sbellon@sbellon.de>
3340         * build-packet.c (calc_plaintext, do_plaintext): Removed RISC OS
3341         specific filetype parts (it's now done in make_basename()).
3343         * plaintext.c (handle_plaintext): Tidied up RISC OS specific
3344         filetype parts.
3346         * encode.c (encode_simple, encode_crypt): Added argument to
3347         make_basename() call.
3349         * sign.c (write_plaintext_packet): Added argument to
3350         make_basename() call.
3352 2002-10-28  Stefan Bellon  <sbellon@sbellon.de>
3354         * build-packet.c (calc_plaintext, do_plaintext): Added filetype
3355         handling for RISC OS' file types.
3357         * plaintext.c (handle_plaintext) [__riscos__]: Added filetype
3358         handling for RISC OS' file types.
3360 2002-10-23  David Shaw  <dshaw@jabberwocky.com>
3362         * main.h, import.c (sec_to_pub_keyblock, import_secret_one,
3363         parse_import_options), g10.c (main): New import-option
3364         "convert-sk-to-pk" to convert a secret key into a public key
3365         during import.  It is on by default.
3367 2002-10-23  Werner Koch  <wk@gnupg.org>
3369         * pubkey-enc.c (get_it): Fix segv, test for revoked only when PK
3370         has been assigned.
3372 2002-10-18  Timo Schulz  <ts@winpt.org>
3374         * keylist.c: (print_pubkey_info): New.
3375         (print_seckey_info): New.
3376         * main.h: Prototypes for the new functions.       
3377         * delkey.c (do_delete_key): Use it here.
3378         * revoke.c (gen_desig_revoke): Ditto.
3379         
3380 2002-10-17  Werner Koch  <wk@gnupg.org>
3382         * pkclist.c (do_edit_ownertrust): Show all user IDs.  This should
3383         be enhanced to also show the current trust level.  Suggested by
3384         Florian Weimer.
3386 2002-10-17  David Shaw  <dshaw@jabberwocky.com>
3388         * g10.c (main): Handle --strict and --no-strict from the command
3389         line before the options file is loaded.
3391 2002-10-15  David Shaw  <dshaw@jabberwocky.com>
3393         * g10.c (main): Disable --textmode when encrypting (symmetric or
3394         pk) in --pgp2 mode as PGP 2 can't handle the unknown length
3395         literal packet.  Reported by Michael Richardson.
3397 2002-10-14  David Shaw  <dshaw@jabberwocky.com>
3399         * keyserver-internal.h, keyserver.c (print_keyrec, parse_keyrec,
3400         show_prompt, keyserver_search_prompt, keyserver_spawn): Go to
3401         version 1 of the keyserver protocol.  This is a better design,
3402         similar to --with-colons, that allows for keys with multiple user
3403         IDs rather than using multiple keys.  It also matches the machine
3404         readable pksd format.  Also use a prettier --search-keys listing
3405         format that can fill different size windows (currently set at 24
3406         lines).
3408 2002-10-12  Werner Koch  <wk@gnupg.org>
3410         * keygen.c (print_status_key_created): New.
3411         (do_generate_keypair): Use it to print the fingerprint.
3412         (generate_subkeypair): Likewise.
3414 2002-10-11  David Shaw  <dshaw@jabberwocky.com>
3416         * keyedit.c (menu_addrevoker): Properly back out if the signature
3417         fails.  Also, do not allow appointing the same revoker twice, and
3418         report ALREADY_SIGNED if the user tries it.
3420 2002-10-07  David Shaw  <dshaw@jabberwocky.com>
3422         * import.c (import_keys_internal): Missed one s/inp/inp2/.
3424         * keylist.c (print_capabilities): Properly indicate per-key
3425         capabilities of sign&encrypt primary keys that have
3426         secret-parts-missing (i.e. no capabilities at all)
3428         * mainproc.c (symkey_decrypt_sesskey): Fix compiler warning.
3430 2002-10-04  David Shaw  <dshaw@jabberwocky.com>
3432         * getkey.c (get_pubkey_direct): Don't cache keys retrieved via
3433         this function as they may not have all their fields filled in.
3435         * sig-check.c (signature_check2): Use new is_primary flag to check
3436         rather than comparing main_keyid with keyid as this still works in
3437         the case of a not fully filled in pk.
3439 2002-10-04  Werner Koch  <wk@gnupg.org>
3441         * import.c (import_keys_internal): s/inp/inp2/ to avoid shadowing
3442         warning.
3444         * passphrase.c (agent_get_passphrase): Fixed signed/unsigned char
3445         problem in %-escaping.  Noted by Ingo Klöcker.
3447 2002-10-03  David Shaw  <dshaw@jabberwocky.com>
3449         * options.h, g10.c (main): Add --strict and --no-strict to switch
3450         the log_warning severity level from info to error.
3452         * keylist.c (print_capabilities): Secret-parts-missing keys should
3453         show that fact in the capabilities, and only primary signing keys
3454         can certify other keys.
3456         * packet.h, parse_packet.c (parse_key): Add is_primary flag for
3457         public keys (it already exists for secret keys).
3459 2002-10-02  David Shaw  <dshaw@jabberwocky.com>
3461         * import.c (import_secret_one): Check for an illegal (>110)
3462         protection cipher when importing a secret key.
3464         * keylist.c (list_keyblock_print): Show a '#' for a
3465         secret-parts-missing key.
3467         * parse_packet.c (parse_key): Some comments.
3469         * revoke.c (gen_revoke): Remove some debugging code.
3471         * trustdb.c (verify_own_keys): Make trusted-key a non-deprecated
3472         option again.
3474         * seckey-cert.c (do_check): Don't give the IDEA warning unless the
3475         cipher in question is in fact IDEA.
3477 2002-10-01  David Shaw  <dshaw@jabberwocky.com>
3479         * import.c (import_one): Make sure that a newly imported key
3480         starts with a clean ownertrust.
3482 2002-10-01  Werner Koch  <wk@gnupg.org>
3484         * getkey.c (get_pubkey_direct): New.
3485         (merge_selfsigs_main): Use it here to look for an ultimately
3486         trusted key.  Using the full get_pubkey might lead to an
3487         infinitive recursion.
3489 2002-09-29  David Shaw  <dshaw@jabberwocky.com>
3491         * keyserver.c (parse_keyserver_uri): Force the keyserver URI
3492         scheme to lowercase to be case-insensitive.
3494 2002-09-28  David Shaw  <dshaw@jabberwocky.com>
3496         * export.c (do_export_stream): Comment.
3498         * sig-check.c (check_key_signature2): Properly handle a
3499         non-designated revocation import.
3501 2002-09-26  Werner Koch  <wk@gnupg.org>
3503         * g10.c (set_homedir): New. Changed all direct assignments to use
3504         this.
3505         * gpgv.c (set_homedir): Ditto.
3507 2002-09-25  David Shaw  <dshaw@jabberwocky.com>
3509         * Makefile.am: Link gpg with EGDLIBS (i.e. NETLIBS) as EGD uses
3510         sockets.  Remove the old NETLIBS variable since the keyserver
3511         stuff is no longer internal.
3513 2002-09-24  David Shaw  <dshaw@jabberwocky.com>
3515         * import.c (import_keys_stream): Fix compiler type warning.
3517         * keyring.c (keyring_rebuild_cache), sig-check.c
3518         (check_key_signature2), import.c (import, chk_self_sigs): Minor
3519         language cleanups.
3521 2002-09-23  Stefan Bellon  <sbellon@sbellon.de>
3523         * main.h: Introduced fast-import as import option. Removed
3524         fast as separate option from prototypes.
3525         * import.c (parse_import_options): Added fast-import option.
3526         (import_*): Removed fast as separate option.
3527         * g10.c (main): Added option fast-import, removed old fast
3528         as separate argument.
3529         * keyserver.c (keyserver_spawn): Removed old fast as separate
3530         argument.
3532 2002-09-22  Stefan Bellon  <sbellon@sbellon.de>
3534         * import.c (import_keys, import_keys_stream,
3535         import_keys_internal): Added trustdb update/check to key import if
3536         not fast-import and interactive set/no-auto-check-trustdb unset.
3537         Avoided function clone by introducing import_keys_internal.
3539 2002-09-19  David Shaw  <dshaw@jabberwocky.com>
3541         * keyserver.c (keyserver_spawn): Properly handle line truncation.
3542         Don't leak memory (~10-20 bytes) on searches.
3543         (keyserver_search_prompt): Cleanup.
3545         * keylist.c (list_keyblock_colon): Show 1F direct key signatures
3546         in --with-colons listing.
3548 2002-09-16  David Shaw  <dshaw@jabberwocky.com>
3550         * keyedit.c (menu_addrevoker): The direct key signature for
3551         revocation keys must be at least v4 to carry the revocation key
3552         subpacket.  Add a PGP 2.x warning for revocation keys.
3554 2002-09-14  David Shaw  <dshaw@jabberwocky.com>
3556         * g10.c (check_permissions): Rearrange strings to make translating
3557         easier (don't incorporate string parts).
3559         * keyedit.c (sign_uids): Make strings translatable.
3561         * sig-check.c (check_key_signature2): Make string translatable.
3563 2002-09-13  David Shaw  <dshaw@jabberwocky.com>
3565         * getkey.c (check_revocation_keys): Move....
3566         * main.h, sig-check.c (check_revocation_keys): to here.  Also
3567         return the signature_check error code rather than 0/1 and cache
3568         the sig result.
3570         * sig-check.c (check_key_signature2): Divert to
3571         check_revocation_keys if a revocation sig is made by someone other
3572         than the pk owner.
3574         * getkey.c (merge_selfsigs_main): Tidy.
3576 2002-09-13  Werner Koch  <wk@gnupg.org>
3578         * g10.c (main) [__MINGW32__]: Activate oLoadExtension.
3580 2002-09-12  David Shaw  <dshaw@jabberwocky.com>
3582         * Makefile.am, hkp.c, hkp.h, keyserver.c (keyserver_work): Remove
3583         internal HKP support.
3585         * keyserver.c (keyserver_spawn): Remove whitespace after keyserver
3586         commands.
3588 2002-09-10  David Shaw  <dshaw@jabberwocky.com>
3590         * exec.c (expand_args): Remove loop left over from earlier
3591         implementation.
3592         (exec_write): Missed one tick.
3594 2002-09-10  Werner Koch  <wk@gnupg.org>
3596         * g10.c, options.h: Removed option --emulate-checksum-bug.
3597         * misc.c (checksum_u16_nobug): Removed.
3598         (checksum_u16): Removed the bug emulation.
3599         (checksum_mpi): Ditto.
3600         (checksum_mpi_counted_nbits): Removed and replaced all calls
3601         with checksum_mpi.
3603         * parse-packet.c (read_protected_v3_mpi): New.
3604         (parse_key): Use it here to store it as an opaque MPI.
3605         * seckey-cert.c (do_check): Changed the v3 unprotection to the new
3606         why to store these keys.
3607         (protect_secret_key): Likewise.
3608         * build-packet.c (do_secret_key): And changed the writing.
3610         * tdbio.c (tdbio_set_dbname, open_db): Use new macro MY_O_BINARY
3611         to avoid silly ifdefs.
3612         (open_db): Fallback to RDONLY so that gpg may be used from a
3613         RO-medium.
3615         * encode.c (encode_simple): Make sure we don't use an ESK packet
3616         when we don't have a salt in the S2K.
3618         * misc.c (pct_expando) <case f>: Make sure that LEN is initialized.
3620         * exec.c (exec_finish): Use ticks to denote filenames in messages.
3621         (make_tempdir, exec_write): Changed format of messages.
3623         * keyserver.c (print_keyinfo): Release USERID in on error.
3624         (keyserver_work) [!DISABLE_KEYSERVER_HELPERS]: Exclude the unused
3625         code.
3627 2002-09-09  Werner Koch  <wk@gnupg.org>
3629         * parse-packet.c (make_attribute_uidname): Add new ar MAX_NAMELEN
3630         for sanity checks.  Changed both callers. Limit the size of an %s.
3632         * options.skel: Comment lock-once out, so that this file does not
3633         change anything when copied to a new home directory.
3634         * openfile.c (try_make_homedir): Don't exit after copying the
3635         option skeleton.
3637         * options.h: Don't use a comma when declaring variables over more
3638         than one line.
3640         * mainproc.c (symkey_decrypt_sesskey): Check length of the session
3641         key.
3643         * hkp.c (dehtmlize): Use ascii_tolower to protect against weird
3644         locales.  Cast the argument for isspace for the sake of broken
3645         HP/UXes.
3646         (parse_hkp_index): s/ascii_memcasecmp/ascii_strncasecmp/.
3648         * g10.c: Removed option --emulate-3des-s2k-bug.
3650         * passphrase.c (hash_passphrase): Was used here.
3652         * export.c (parse_export_options)
3653         * keyserver.c (parse_keyserver_options)
3654         * import.c (parse_import_options)
3655         * g10.c (check_permissions): s/ascii_memcasecmp/ascii_strncasecmp/.
3657 2002-09-09  David Shaw  <dshaw@jabberwocky.com>
3659         * g10.c (add_group): Use '=' to separate group name from group
3660         members.  Use a better error message for when no = is found.
3662         * hkp.c (hkp_export): Use CRLF in headers.
3664 2002-09-03  David Shaw  <dshaw@jabberwocky.com>
3666         * mainproc.c (print_pkenc_list): Don't increment the error counter
3667         when printing the list of keys a message was encrypted to.  This
3668         would make gpg give a non-zero exit code even for completely valid
3669         messages if the message was encrypted to more than one key that
3670         the user owned.
3672 2002-09-02  Werner Koch  <wk@gnupg.org>
3674         * g10.c (main): Try to set a default character set.  Print the
3675         used one in verbosity level 3.
3676         * gpgv.c (main): Try to set a default character set.
3678         * status.c, status.h (STATUS_IMPORT_OK): New.
3679         * import.c (import_one,import_secret_one): Print new status.
3681 2002-08-30  David Shaw  <dshaw@jabberwocky.com>
3683         * pkclist.c (build_pk_list): Add new status code to indicate an
3684         untrusted user.  This (or a disabled key) fail with "unavailable
3685         pubkey" (G10ERR_UNU_PUBKEY).
3687         * pkclist.c (build_pk_list): Fail if any recipient keys are
3688         unusable.
3690         * options.skel: The PGP LDAP keyserver is back.  Use MIT keyserver
3691         as a sample rather than cryptnet as cryptnet does not support
3692         searching yet.
3694         * keyedit.c (show_key_with_all_names): Fix error message
3695         (preferences are userid/selfsig and not key specific).
3697 2002-08-30  Werner Koch  <wk@gnupg.org>
3699         * pkclist.c (do_we_trust_pre): Changed the wording of a warning.
3701         * encode.c (encode_simple,encode_crypt): Use new style CTB for
3702         compressssed packets when using MDC.  We need to do this so that
3703         concatenated messages are properly decrypted.  Old style
3704         compression assumes that it is the last packet; given that we
3705         can't determine the length in advance, the uncompressor does not
3706         know where to start.  Actually we should use the new CTB always
3707         but this would break PGP 2 compatibility.
3709         * parse-packet.c (parse): Special treatment for new style CTB
3710         compressed packets.
3712         * build-packet.c (do_mdc): Removed. Was not used.
3713         (do_encrypted_mdc): Count in the version number and the MDC packet.
3715 2002-08-28  David Shaw  <dshaw@jabberwocky.com>
3717         * sig-check.c (do_check_messages, do_check): Show keyid in error
3718         messages.
3720         * keyserver.c (print_keyinfo): More readable key listings for
3721         --search-keys responses.
3723 2002-08-26  David Shaw  <dshaw@jabberwocky.com>
3725         * hkp.c (parse_hkp_index, dehtmlize): Move HTML functionality into
3726         new "dehtmlize" function.  Remove HTML before trying to parse each
3727         line from the keyserver.  If the keyserver provides key type
3728         information in the listing, use it.
3730 2002-08-23  David Shaw  <dshaw@jabberwocky.com>
3732         * sig-check.c (do_check, do_check_messages): Emit the usual sig
3733         warnings even for cached sigs.  This also serves to protect
3734         against missing a sig expiring while cached.
3736         * getkey.c (merge_selfsigs_main): Don't check UID self-sigs twice.
3738 2002-08-22  David Shaw  <dshaw@jabberwocky.com>
3740         * import.c (clean_subkeys, chk_self_sigs): Merge clean_subkeys
3741         into chk_self_sigs.  This improves efficiency as the same
3742         signatures are not checked multiple times.  Clarify when a subkey
3743         is revoked (any revocation signature, even if it is dated before
3744         the binding signature).
3746         * getkey.c (merge_selfsigs_subkey): Subkey revocation comments.
3748         * keylist.c (list_one): Stats are only for public key listings.
3750         * g10.c (main), options.skel: Default should be include-revoked
3751         for keyserver operations.
3753 2002-08-21  Werner Koch  <wk@gnupg.org>
3755         * import.c (import_print_stats): Print new non_imported counter
3756         which is currently not used because we terminate on errors.
3758 2002-08-20  David Shaw  <dshaw@jabberwocky.com>
3760         * options.skel: Document no-include-attributes for
3761         keyserver-options.
3763         * keylist.c, keyedit.c, keyserver.c, sign.c: Some TODOs and
3764         comments.
3766         * export.c (do_export_stream): Fix noop bug in exporting sensitive
3767         revocation keys.
3769         * pkclist.c (do_edit_ownertrust): Comment out the option for
3770         showing trust paths until it can be implemented.
3772 2002-08-19  Werner Koch  <wk@gnupg.org>
3774         * getkey.c (get_user_id_native): Renamed to ..
3775         (get_user_id_printable): this.  Filter out all dangerous
3776         characters.  Checked all usages.
3777         (get_user_id_string_native): Renamed to..
3778         (get_user_id_string_printable): this.  Filter out all dangerous
3779         characters.  Checked all usages.
3780         * keyedit.c (show_basic_key_info): New.
3781         * keylist.c (print_fingerprint): New mode 3.
3782         * import.c (import_one): Use new function to display the user ID.
3784 2002-08-16  Timo Schulz  <ts@winpt.org>
3786         * g10.c (main): Enable opt.interactive.
3788         * import.c (import_one): Ask the user if the key shall be
3789         imported when the interactive mode is used. Useful to extract
3790         selected keys from a file.
3791         
3792 2002-08-16  Werner Koch  <wk@gnupg.org>
3794         * seckey-cert.c: Workaround to allow decryption of v3 keys created
3795         with a bug in the mpi_get_secure_buffer.
3797 2002-08-14  David Shaw  <dshaw@jabberwocky.com>
3799         * hkp.c (parse_hkp_index): Properly handle really large keys
3800         (5 digit key length) in HKP searches.
3802 2002-08-13  David Shaw  <dshaw@jabberwocky.com>
3804         * encode.c (encode_simple): Fix problem with using compression
3805         algo 2 and symmetric compressed files.
3807         * encode.c (encode_simple, encode_crypt): If we are not using a
3808         MDC, compress even if a file is already compressed.  This is to
3809         help against the chosen ciphertext attack.
3811         * pkclist.c (select_algo_from_prefs): Fix requested algorithm bug
3812         so the request succeeds even if the requested algorithm is not the
3813         first found.
3815         * cipher.c (write_header), encode.c (use_mdc, encode_simple,
3816         encode_crypt, encrypt_filter), g10.c (main): Be more eager to use
3817         a MDC.  We use a MDC if the keys directly support it, if the keys
3818         list AES (any) or TWOFISH anywhere in the prefs, or if the cipher
3819         chosen does not have a 64 bit blocksize.
3821 2002-08-08  David Shaw  <dshaw@jabberwocky.com>
3823         * options.skel: Some language tweaks, and remove the
3824         load-extension section for random gatherers.
3826         * keyring.c (create_tmp_file, rename_tmp_file): Create tmp files
3827         with user-only permissions, but restore the original permissions
3828         if the user has something special set.
3830         * openfile.c (copy_options_file): Create new options file
3831         (gpg.conf) with user-only permissions.
3833         * keydb.c (keydb_add_resource): Create new keyrings with user-only
3834         permissions.
3836         * tdbio.c (tdbio_set_dbname): Create new trustdbs with user-only
3837         permissions.
3839 2002-08-07  David Shaw  <dshaw@jabberwocky.com>
3841         * sig-check.c (signature_check2): Sanity check that the md has a
3842         context for the hash that the sig is expecting.  This can happen
3843         if a onepass sig header does not match the actual sig, and also if
3844         the clearsign "Hash:" header is missing or does not match the
3845         actual sig.
3847         * keyedit.c (menu_revsig): Properly show a uid is revoked without
3848         restarting gpg.  This is Debian bug 124219, though their supplied
3849         patch will not do the right thing.
3851         * main.h, tdbio.c (tdbio_set_dbname), misc.c (removed
3852         check_permissions), keydb.c (keydb_add_resource), g10.c (main,
3853         check_permissions): Significant reworking of the permission check
3854         mechanism.  The new behavior is to check everything in the homedir
3855         by checking the homedir itself.  If the user wants to put
3856         (possibly shared) keyrings outside the homedir, they are not
3857         checked.  The options file and any extension files are checked
3858         wherever they are, as well as their enclosing directories.  This
3859         is Debian bug 147760.
3860         
3861 2002-08-06  Stefan Bellon  <sbellon@sbellon.de>
3863         * g10.c (main): Use of EXTSEP_S in new gpg.conf string.
3864         * openfile.c (copy_options_file): Ditto.
3866 2002-08-06  David Shaw  <dshaw@jabberwocky.com>
3868         * options.h, g10.c (main), mainproc.c (proc_encrypted):
3869         --ignore-mdc-error option to turn a MDC check error into a
3870         warning.
3872         * encode.c (encode_crypt), g10.c (main), sign.c (sign_file,
3873         clearsign_file): Use the same --pgpX warning string everywhere to
3874         ease translations.
3876         * encode.c (write_pubkey_enc_from_list): Warn when using
3877         --throw-keyid with --pgpX.  Noted by Vedaal Nistar.
3879         * revoke.c (export_minimal_pk, gen_desig_revoke, gen_revoke):
3880         Export a minimal pk along with the revocation cert when in --pgpX
3881         mode so that PGP can import it.
3883 2002-08-06  Werner Koch  <wk@gnupg.org>
3885         * options.skel: Changed comments.
3887         * g10.c (main): Try to use "gpg.conf" as default option file.
3888         * openfile.c (copy_options_file): Changed name of created file.
3890 2002-08-02  Werner Koch  <wk@gnupg.org>
3892         * Makefile.am (LDFLAGS): Removed DYNLINK_LDFLAGS.
3894 2002-07-30  David Shaw  <dshaw@jabberwocky.com>
3896         * options.h, g10.c (main), mainproc.c (proc_encrypted): Return a
3897         decryption failed error if a MDC does not verify.  Warn if a MDC
3898         is not present (can disable via --no-mdc-warning).
3900         * exec.c (exec_write), g10.c (main), keyserver.c
3901         (keyserver_spawn): Use new DISABLE_KEYSERVER_PATH rather than
3902         FIXED_EXEC_PATH.
3904 2002-07-28  David Shaw  <dshaw@jabberwocky.com>
3906         * sig-check.c (do_check): Properly validate v4 sigs with no hashed
3907         section at all.
3909 2002-07-25  Werner Koch  <wk@gnupg.org>
3911         * delkey.c (do_delete_key): Always allow to delete a key in batch mode
3912         when specified by fingerprint.  Suggested by Enzo Michelangeli.
3914 2002-07-25  David Shaw  <dshaw@jabberwocky.com>
3916         * keyedit.c (menu_revsig): Change "revsig" to honor selected uids
3917         so the user can revoke sigs from particular uids only.
3919         * keylist.c (list_keyblock_print): Don't display expired uids in
3920         --list-keys unless -v and not --list-sigs (just like revoked
3921         uids).
3923         * exec.c, export.c, import.c, keyedit.c, keyserver.c, misc.c:
3924         "Warning" -> "WARNING"
3926 2002-07-24  David Shaw  <dshaw@jabberwocky.com>
3928         * main.h, import.c (parse_import_options, fix_hkp_corruption,
3929         import_one, delete_inv_parts), g10.c (main): New import-option
3930         "repair-hkp-subkey-bug", which repairs as much as possible the HKP
3931         mangling multiple subkeys bug.  It is on by default for keyserver
3932         receives, and off by default for regular --import.
3934         * main.h, import.c (import, import_one, delete_inv_parts), hkp.c
3935         (hkp_ask_import), keyserver.c (keyserver_spawn): Use keyserver
3936         import options when doing keyserver receives.
3938         * options.h, exec.h, exec.c (set_exec_path, exec_write), g10.c
3939         (main), keyserver.c (keyserver_spawn): If the user does not use
3940         "exec-path", completely replace $PATH with GNUPG_LIBEXECDIR before
3941         calling the keyserver helper.  If the user does use "exec-path",
3942         append GNUPG_LIBEXECDIR after the specified path.
3944 2002-07-23  David Shaw  <dshaw@jabberwocky.com>
3946         * import.c (parse_import_options), export.c
3947         (parse_export_options): Fix offset problem with reversed ("no-")
3948         meanings.
3950         * import.c (delete_inv_parts): Discard subkey signatures (0x18 and
3951         0x28) if found in the userid section of the key.
3953         * sig-check.c (signature_check2): Signatures made by invalid
3954         subkeys (bad/missing binding sig) are also invalid.
3956         * keylist.c (print_fingerprint): Show the primary as well as the
3957         secondary key fingerprint in modes 1 & 2.
3959 2002-07-22  David Shaw  <dshaw@jabberwocky.com>
3961         * options.h, main.h, g10.c (main), import.c
3962         (parse_import_options, delete_inv_parts), keyserver.c
3963         (parse_keyserver_options): add new --import-options option.  The
3964         only current flag is "allow-local-sigs".
3966         * g10.c (main): Don't disable MDC in pgp7 mode.
3968         * options.h, g10.c (main), keyserver.c (parse_keyserver_options):
3969         Remove old keyserver-option include-attributes now that there is
3970         an export-option for the same thing.
3972         * options.h, main.h, export.c (parse_export_options,
3973         do_export_stream), g10.c (main): add new --export-options option.
3974         Current flags are "include-non-rfc", "include-local-sigs",
3975         "include-attributes", and "include-sensitive-revkeys".
3977         * options.h, hkp.c (hkp_export), keyserver.c
3978         (parse_keyserver_options, keyserver_spawn): try passing unknown
3979         keyserver options to export options, and if successful, use them
3980         when doing a keyserver --send-key.
3982         * build-packet.c (build_sig_subpkt): We do not generate
3983         SIGSUBPKT_PRIV_VERIFY_CACHE anymore.
3985         * revoke.c (gen_desig_revoke): Lots more comments about including
3986         sensitive revkeys along with the revocation sig itself.
3988         * keyserver.c (parse_keyserver_options): Simpler implementation
3989         that can skip one pass over the options.
3991 2002-07-18  David Shaw  <dshaw@jabberwocky.com>
3993         * keyedit.c (keyedit_menu, menu_addrevoker): Allow specifying
3994         "sensitive" as an argument to an addrevoker command.  This sets
3995         the 0x40 sensitive revoker flag.
3997         * revoke.c (gen_desig_revoke): When generating a designated
3998         revocation, include the direct key sig that contains the
3999         designated revoker subpacket.  This allows sensitive designated
4000         revocation subpackets to be exported.  Also indicate which
4001         revokers are sensitive in the first place.
4003 2002-07-17  David Shaw  <dshaw@jabberwocky.com>
4005         * keyedit.c (show_key_with_all_names_colon): The 0x40 class bit in
4006         a designated revoker means "sensitive", not "local".  It's
4007         exportable under the right circumstances.
4009         * main.h, options.h, export.c (do_export_stream), g10.c (main),
4010         hkp.c (hkp_export), keyserver.c (keyserver_spawn: Add a flag to
4011         skip attribute packets and their signatures while exporting.  This
4012         is to accomodate keyservers (pksd again) that choke on attributes.
4013         Use keyserver-option "include-attributes" to control it.  This
4014         defaults to ON (i.e. don't skip).
4016 2002-07-09  David Shaw  <dshaw@jabberwocky.com>
4018         * options.h, keyserver.c (parse_keyserver_uri, keyserver_spawn,
4019         keyserver_work), hkp.c (hkp_ask_import, hkp_export, hkp_search):
4020         Use a much more strict reading of RFC-2396 for the keyserver URIs.
4021         Specifically, don't try and be smart about checking the value of
4022         ":port" so long as it is all digits, and properly handle opaque
4023         data (those scheme specific parts that do not start with "//").
4025 2002-07-04  David Shaw  <dshaw@jabberwocky.com>
4027         * photoid.c (get_default_photo_command, show_photos): Honor
4028         FIXED_PHOTO_VIEWER and DISABLE_PHOTO_VIEWER.
4030         * mainproc.c (check_sig_and_print): Use --show-photos to show
4031         photos when verifying a sig made by a key with a photo.
4033         * keyserver.c (parse_keyserver_uri): Properly parse a URI with no
4034         :port section and an empty file path, but with a terminating '/'.
4035         (keyserver_work): Honor DISABLE_KEYSERVER_HELPERS.
4037         * hkp.c (hkp_ask_import): Display keyserver URI as a URI, but only
4038         if verbose.
4040         * exec.c, g10.c: USE_EXEC_PATH -> FIXED_EXEC_PATH
4042 2002-07-03  David Shaw  <dshaw@jabberwocky.com>
4044         * exec.h, exec.c (set_exec_path, exec_write), g10.c (main): If
4045         USE_EXEC_PATH is defined at compile time, use it to lock the
4046         exec-path and not allow the user to change it.
4048 2002-07-02  David Shaw  <dshaw@jabberwocky.com>
4050         * options.h, g10.c (main), keyserver.c (keyserver_refresh):
4051         Maintain and use the original keyserver URI for cosmetics rather
4052         than trying to recreate it when needed.
4054         * mainproc.c (check_sig_and_print): Properly disregard expired
4055         uids.  Make sure that the first uid listed is a real uid and not
4056         an attribute (attributes should only be listed in the "aka"
4057         section).  When there are no valid textual userids, try for an
4058         invalid textual userid before using any attribute uid.
4060 2002-07-01  David Shaw  <dshaw@jabberwocky.com>
4062         * options.skel: Fix a few typos, clarify "group", and remove
4063         sample photo viewers for Win32 since they are the defaults now.
4065         * parse-packet.c (make_attribute_uidname), keylist.c
4066         (dump_attribs): Fix two typecast warnings.
4068         * packet.h, build-packet.c (build_attribute_subpkt), exec.c
4069         (expand_args), mkdtemp.c (mkdtemp), photoid.c
4070         (parse_image_header): Fix some signedness compiler warnings.
4072 2002-07-01  Werner Koch  <wk@gnupg.org>
4074         * photoid.c (get_default_photo_command): Also use __MINGW32__
4075         instead of HAVE_DOSISH_SYSTEM.
4077         * encode.c (encode_symmetric): Do not use the new encryption code.
4079 2002-06-30  Werner Koch  <wk@gnupg.org>
4081         * photoid.c: Use __MINGW32__ to include windows because
4082         HAVE_DOSISH_SYSTEM is also set for OS/2 and plain DOS.  Provide
4083         constant missing in older mingw installations. 
4085 2002-06-21  Stefan Bellon  <sbellon@sbellon.de>
4087         * g10.c [__riscos__]: Moved RISC OS specific stuff to util/riscos.c
4088         and include/util.h.
4090         * gpgv.c [__riscos__]: Likewise.
4092 2002-06-20  David Shaw  <dshaw@jabberwocky.com>
4094         * keydb.h, pkclist.c (select_algo_from_prefs): Allow passing a
4095         suggested algorithm which will be used if available.
4097         * encode.c (encode_crypt, encrypt_filter), sign.c (sign_file): Use
4098         new select_algo_from_prefs feature to check if forcing an
4099         algorithm would violate the recipient preferences.
4101         * photoid.c (get_default_photo_command, show_photos): Use
4102         different default viewers on different platforms.  Currently we
4103         have Win 9x, Win NT (2k, xp), Mac OSX, RISC OS, and "everybody
4104         else".  These are #ifdefs as much as possible to avoid clutter.
4106         * g10.c (strusage, build_list), keyedit.c (show_prefs), main.h,
4107         misc.c (compress_algo_to_string, check_compress_algo), pkclist.c
4108         (algo_available), keygen.c (keygen_set_std_prefs): New
4109         algo_to_string and check functions for compress algorithms.
4111 2002-06-20  Werner Koch  <wk@gnupg.org>
4113         * misc.c (setsysinfo): Removed a #warning for Alpha's uniligedn
4114         trap disabling - it is quite possible that this is a debug relict.
4116 2002-06-20  Stefan Bellon  <sbellon@sbellon.de>
4118         * g10.c [__riscos__]: Added image file system feature.
4120         * gpgv.c [__riscos__]: Added image file system feature.
4122         * photoid.c (show_photos) [__riscos__]: Set RISC OS filetype of
4123         photo id according to MIME type.
4125 2002-06-19  David Shaw  <dshaw@jabberwocky.com>
4127         * hkp.c (parse_hkp_index): Don't leak memory when failing out of a
4128         bad HKP keyserver.
4130         * g10.c (add_notation_data): Relax slightly the rules as to what
4131         can go into a notation name - 2440 allows "@", for example.
4133 2002-06-17  David Shaw  <dshaw@jabberwocky.com>
4135         * import.c (clean_subkeys, import_one): Only allow at most 1
4136         binding sig and at most 1 revocation sig on a subkey, as per
4137         2440:11.1.
4139         * hkp.c (parse_hkp_index, hkp_search): Error if the keyserver
4140         returns an unparseable HKP response.
4142 2002-06-15  David Shaw  <dshaw@jabberwocky.com>
4144         * keyedit.c (show_key_with_all_names), keylist.c
4145         (list_keyblock_print): Show "[expired]" before expired uids.
4147         * keyedit.c (show_key_with_all_names_colon), mainproc.c
4148         (list_node), keylist.c (list_keyblock_colon): Show flag 'e' for
4149         expired user ids.  Use "uat" for user attribute packets instead of
4150         "uid".  Also use '<count> <length>' rather than the fake user id
4151         string on attributes.
4153         * keygen.c (keygen_add_revkey): Remove unused code.
4155         * misc.c (check_permissions): Check directory permissions
4156         properly - they are not special files.
4158         * pkclist.c (expand_id, expand_group, build_pk_list): When
4159         expanding groups before building a pk list, inherit flags from the
4160         original pre-expanded string.
4162         * pubkey-enc.c (is_algo_in_prefs): Don't use prefs from expired
4163         uids.
4165 2002-06-14  David Shaw  <dshaw@jabberwocky.com>
4167         * free-packet.c (copy_signature): Properly copy a signature that
4168         carries a revocation key on it.
4170         * pkclist.c (expand_id, expand_group, build_pk_list): Groups now
4171         work properly when used in the "Enter the user ID" prompt.
4173 2002-06-14  David Shaw  <dshaw@jabberwocky.com>
4175         * keyedit.c (show_key_with_all_names): Display warning if a user
4176         tries to show prefs on a v3 key with a v3 selfsig.
4178         * kbnode.c (dump_kbnode): Show if a uid is expired.
4180         * import.c (merge_blocks, import_revoke_cert): Show user ID
4181         receiving a revocation certificate.
4183         * free-packet.c (cmp_user_ids): Properly compare attribute ids.
4185         * pkclist.c (expand_groups): Maintain the strlist flags while
4186         expanding.  Members of an expansion inherit their flags from the
4187         expansion key.
4189         * options.h, cipher.c (write_header), g10.c (main), keygen.c
4190         (keygen_set_std_prefs): remove the personal_mdc flag.  It no
4191         longer serves a purpose now that the personal preference lists are
4192         split into cipher/digest/zip.
4194 2002-06-14  Timo Schulz  <ts@winpt.org>
4196         * skclist.c (is_insecure): Implemented.
4197         
4198 2002-06-12  David Shaw  <dshaw@jabberwocky.com>
4200         * keyserver.c (keyserver_spawn): Properly handle PROGRAM responses
4201         when they have a CRLF ending.  Noted by Keith Ray.
4203         * keyserver.c (keyserver_spawn): Handle CRLF endings from
4204         keyserver helpers.  Also don't leak the last line worth of memory
4205         from the keyserver response.
4207         * main.h, misc.c (deprecated_warning): New function to warn about
4208         deprecated options and commands.
4210         * g10.c (main), keyserver-internal.h, keyserver.c
4211         (parse_keyserver_uri): Use new deprecated function to warn about
4212         honor-http-proxy, auto-key-retrieve, and x-broken-hkp.
4214 2002-06-11  David Shaw  <dshaw@jabberwocky.com>
4216         * Makefile.am: link gpg with NETLIBS for the built-in HKP access.
4218 2002-06-10  David Shaw  <dshaw@jabberwocky.com>
4220         * options.h, keyserver.c (keyserver_opts), g10.c (main): New
4221         keyserver option "include-subkeys".  This feature already existed,
4222         but now can be turned off.  It defaults to on.
4224         * options.h, keyserver.c (parse_keyserver_options,
4225         keyserver_spawn): There are now enough options to justify making a
4226         structure for the keyserver options rather than a page of
4227         if-then-else-if-then-etc.
4229         * getkey.c (merge_keys_and_selfsig, merge_selfsigs_main): Fix bug
4230         in calculating key expiration dates.
4232 2002-06-09  David Shaw  <dshaw@jabberwocky.com>
4234         * keydb.h, getkey.c (get_user_id_native), import.c (import_one):
4235         Display user ID while importing a key.  Note this applies to both
4236         --import and keyserver --recv-keys.
4238         * exec.c (exec_finish): Log unnatural exit (core dump, killed
4239         manually, etc) for fork/exec/pipe child processes.
4241 2002-06-08  Timo Schulz  <ts@winpt.org>
4243         * encode.c (encode_symmetric): Disable the compat flag
4244         when the expert mode is enabled.
4245         
4246 2002-06-07  David Shaw  <dshaw@jabberwocky.com>
4248         * options.skel, options.h, main.h, keydb.h, pkclist.c
4249         (build_pk_list, expand_groups), g10.c (main, add_group): Add new
4250         "group" command to allow one name to expand into multiple keys.
4251         For simplicity, and to avoid potential loops, we only expand once
4252         - you can't make an alias that points to an alias.
4254         * main.h, g10.c (main), keygen.c (build_personal_digest_list):
4255         Simplify the default digest list - there is really no need for the
4256         other hashes since they will never be used after SHA-1 in the
4257         list.
4259         * options.skel, options.h, g10.c (main), hkp.c (hkp_ask_import,
4260         hkp_export, hkp_search), keyserver.c (parse_keyserver_options,
4261         parse_keyserver_uri, keyserver_work, keyserver_refresh): Make the
4262         "x-broken-hkp" keyserver scheme into keyserver-option
4263         "broken-http-proxy".  Move honor_http_proxy into
4264         keyserver_options.  Canonicalize the three variations of "hkp",
4265         "x-hkp", and "x-broken-hkp" into "hkp".
4267 2002-06-07  Stefan Bellon  <sbellon@sbellon.de>
4269         * g10.c [__riscos__]: Added --attribute-file to do the same as
4270         --attribute-fd, but with a filename not a fd as argument.
4271         Added magic symbol for RISC OS to use different memory management.
4273         * gpgv.c [__riscos__]: Added magic symbol for RISC OS to use
4274         different memory management.
4276 2002-06-06  David Shaw  <dshaw@jabberwocky.com>
4278         * main.h, g10.c (main), keygen.c (build_personal_digest_list): Put
4279         in a default digest preference list consisting of SHA-1, followed
4280         by every other installed digest except MD5.  Note this is the same
4281         as having no digest preference at all except for SHA-1 being
4282         favored.
4284         * options.h, g10.c (main), keygen.c (keygen_set_std_prefs),
4285         pkclist.c (select_algo_from_prefs): Split
4286         --personal-preference-list into three:
4287         --personal-{cipher|digest|compress}-preferences.  This allows a
4288         user to set one without affecting another (i.e. setting only a
4289         digest pref doesn't imply an empty cipher pref).
4291         * exec.c (exec_read): This is a safer way of guessing the return
4292         value of system().  Noted by Stefan Bellon.
4294 2002-06-05  David Shaw  <dshaw@jabberwocky.com>
4296         * hkp.c (parse_hkp_index): Be more robust with keyservers
4297         returning very unparseable responses.
4299         * exec.c (exec_read): Catch and display an error when the remote
4300         process exits unnaturally (i.e. segfault) so the user knows what
4301         happened.  Also fix exec_write stub which has a different number
4302         of arguments now.
4304 2002-06-05  Timo Schulz  <ts@winpt.org>
4306         * encode.c (encode_simple): Ignore the new mode for RFC1991.
4307         * mainproc.c (symkey_decrypt_sesskey): Better check for weird
4308         keysizes.
4309         
4310 2002-06-05  Timo Schulz  <ts@winpt.org>
4312         * encode.c (encode_sesskey): New.
4313         (encode_simple): Use it here. But by default we use the compat
4314         mode which supress to generate encrypted session keys.
4315         
4316 2002-06-05  Timo Schulz  <ts@winpt.org>
4318         * mainproc.c (symkey_decrypt_sesskey): New.
4319         (proc_symkey_enc): Support for encrypted session keys.
4320         
4321 2002-06-04  David Shaw  <dshaw@jabberwocky.com>
4323         * sign.c (hash_for, sign_file): When encrypting and signing at the
4324         same time, consult the various hash prefs to pick a hash algorithm
4325         to use.  Pass in a 160-bit hint if any of the signing keys are
4326         DSA.
4328         * keydb.h, pkclist.c (select_algo_from_prefs, algo_available):
4329         Pass a "hints" opaque pointer in to let the caller give hints as
4330         to what algorithms would be acceptable.  The only current hint is
4331         for PREFTYPE_HASH to require a 160-bit hash for DSA.  Change all
4332         callers in encode.c (encode_crypt, encrypt_filter) and sign.c
4333         (sign_file).  If we settle on MD5 as the best algorithm based
4334         solely on recepient keys and SHA1 is also a possibility, use SHA1
4335         unless the user intentionally chose MD5.  This is as per 2440:13.
4337         * exec.c (make_tempdir): Fix duplicated filename problem.
4339 2002-06-03  David Shaw  <dshaw@jabberwocky.com>
4341         * packet.h, parse-packet.c (enum_sig_subpkt): Report back from
4342         enum_sig_subpkt when a subpacket is critical and change all
4343         callers in keylist.c (show_policy_url, show_notation), mainproc.c
4344         (print_notation_data), and pkclist.c (do_show_revocation_reason).
4346         * keylist.c (show_policy_url, show_notation): Display if the
4347         policy or notation is critical.
4348         
4349 2002-06-03  David Shaw  <dshaw@jabberwocky.com>
4351         * main.h, g10.c (main), keylist.c (dump_attribs, set_attrib_fd,
4352         list_keyblock_print, list_keyblock_colon), status.h, status.c
4353         (get_status_string): New --attribute-fd feature to dump the
4354         contents of attribute subpackets for frontends.  If --status-fd is
4355         also used, then a new status tag ATTRIBUTE is provided for each
4356         subpacket.
4358         * packet.h, getkey.c (fixup_uidnode, merge_selfsigs_main,
4359         merge_selfsigs_subkey), parse-packet.c (setup_user_id): Keep track
4360         of the expiration time of a user ID, and while we're at it, use
4361         the expired flag from the selfsig rather than reparsing the
4362         SIG_EXPIRE subpacket.
4364         * photoid.c (generate_photo_id): When adding a new photo ID,
4365         showing the photo for confirmation is not safe when noninteractive
4366         since the "user" may not be able to dismiss a viewer window.
4367         Noted by Timo Schulz.
4368         
4369 2002-06-03  David Shaw  <dshaw@jabberwocky.com>
4371         * options.skel: Sample photo viewers for Win32.
4373         * misc.c (pct_expando): Use the seckey for %k/%K if the pubkey is
4374         not available.
4376         * photoid.h, photoid.c (show_photos): Include the seckey in case a
4377         user tries to view a photo on a secret key, and change all callers
4378         in keyedit.c (menu_showphoto), keylist.c (list_keyblock_print),
4379         and photoid.c (generate_photo_id).
4381 2002-06-02  David Shaw  <dshaw@jabberwocky.com>
4383         * photoid.c (show_photos): Work properly when not called with a
4384         public key.
4386 2002-05-31  David Shaw  <dshaw@jabberwocky.com>
4388         * sign.c (mk_notation_and_policy): Free unneeded buffer.
4390         * hkp.c (parse_hkp_index): Properly handle the '&' character
4391         (i.e. "&amp;") in HKP responses.
4393         * getkey.c (merge_selfsigs_main): Fix reversed expiration time
4394         check with self-sigs.
4396         * keyedit.c (sign_uids): When making a new self-sig on a v3 key,
4397         make a v3 self-sig unless it is currently a v3 self-sig being
4398         promoted to v4.
4400 2002-05-31  Timo Schulz  <ts@winpt.org>
4402         * pkclist.c (do_show_revocation_reason): Don't use capital
4403         letters for non-interactive output.
4404         (show_revocation_reason): Now it is global.
4405         * pubkey-enc.c (get_it): Show if the key has been revoked.
4406         
4407 2002-05-30  David Shaw  <dshaw@jabberwocky.com>
4409         * sign.c (write_signature_packets, sign_file, clearsign_file,
4410         sign_symencrypt_file): Make a v4 signature if a policy URL or
4411         notation is set, unless v3 sigs are forced via rfc1991 or
4412         force-v3-sigs.  Also remove some doubled code and clarify an error
4413         message (we don't sign in PGP2 mode - just detach-sign).
4415         * parse-packet.c (parse_one_sig_subpkt): Add KS_FLAGS to the "any
4416         size" section.
4418 2002-05-29  David Shaw  <dshaw@jabberwocky.com>
4420         * keygen.c (keygen_set_std_prefs, add_feature_mdc): Use "mdc" and
4421         "no-mdc" in the prefs string to allow switching on and off the MDC
4422         feature.  This is needed to properly export a key from GnuPG for
4423         use on PGP which does not support MDC - without this, MDC-capable
4424         implementations will still try and generate MDCs which will break
4425         PGP.
4427         * keygen.c (keygen_get_std_prefs): Show "[mdc]" in prefs string if
4428         it is enabled.
4430         * options.h, g10.c (main), cipher.c (write_header), keygen.c
4431         (keygen_set_std_prefs): For consistency, allow the user to specify
4432         mdc/no-mdc in the --personal-preference-list.  If disabled, it
4433         acts just like --disable-mdc.
4435 2002-05-29  David Shaw  <dshaw@jabberwocky.com>
4437         * options.h, exec.c: Add some debugging info, using the 1024 debug
4438         flag.
4440         * exec.c (win_system): New system()-like function for win32 that
4441         does not return until the child process terminates.  Of course,
4442         this doesn't help if the process itself exits before it is
4443         finished.
4445 2002-05-29  Werner Koch  <wk@gnupg.org>
4447         * encode.c (encode_simple): Intialize PKT when --no-literal is used.
4449         * keyedit.c (show_key_with_all_names_colon): Renamed the record
4450         for revocation keys to "rvk".
4452 2002-05-27  Werner Koch  <wk@gnupg.org>
4454         * keyedit.c (show_key_with_all_names_colon): New.
4455         (show_key_with_all_names): Divert to new function when required.
4456         Sanitize printing of revoker name.
4458 2002-05-27  David Shaw  <dshaw@jabberwocky.com>
4460         * build-packet.c (build_sig_subpkt): Handle setting sig flags for
4461         certain subpacket types (notation, policy url, exportable,
4462         revocable).  keyedit.c (sign_mk_attrib): Flags no longer need to
4463         be set here.
4465         * packet.h, parse-packet.c (parse_one_sig_subpkt), build-packet.c
4466         (build_sig_subpkt): Call parse_one_sig_subpkt to sanity check
4467         buffer lengths before building a sig subpacket.
4469 2002-05-26  David Shaw  <dshaw@jabberwocky.com>
4471         * sign.c (mk_notation_and_policy): Include secret key to enable %s
4472         expandos, and pass notations through pct_expando as well.
4474         * main.h, misc.c (pct_expando): Add %s and %S expandos for
4475         signer's keyid.
4477 2002-05-25  David Shaw  <dshaw@jabberwocky.com>
4479         * g10.c (strusage, build_list): Add compress algorithms to
4480         --version list.  Show algorithm numbers when --verbose --version
4481         is done.
4483 2002-05-22  David Shaw  <dshaw@jabberwocky.com>
4485         * options.h, main.h, keygen.c (keygen_set_set_prefs,
4486         keygen_get_std_prefs, keygen_upd_std_prefs), keyedit.c
4487         (keyedit_menu), g10.c (main), pkclist.c (select_algo_from_prefs):
4488         Add --personal-preference-list which allows the user to factor in
4489         their own preferred algorithms when the preference lists are
4490         consulted.  Obviously, this does not let the user violate a
4491         recepient's preferences (and the RFC) - this only influences the
4492         ranking of the agreed-on (and available) algorithms from the
4493         recepients.  Suggested by David Hollenberg.
4495         * options.h, keygen.c (keygen_set_std_prefs), g10.c (main): Rename
4496         --preference-list to --default-preference-list (as that is what it
4497         really is), and make it a true default in that if the user selects
4498         "default" they get this list and not the compiled-in list.
4500 2002-05-22  Werner Koch  <wk@gnupg.org>
4502         * g10.c (main): Add missing LF in a info printout and made it
4503         translatable.  Noted by Michael Tokarev.
4505 2002-05-21  Werner Koch  <wk@gnupg.org>
4507         * g10.c (main): Removed the undef of USE_SHM_COPROCESSING which
4508         was erroneously introduced on 2002-01-09.
4510         * signal.c (got_fatal_signal): Don't write the Nul to stderr.
4511         Reported by David Hollenberg.
4513 2002-05-18  David Shaw  <dshaw@jabberwocky.com>
4515         * main.h, g10.c (main), revoke.c (gen_desig_revoke): Generate a
4516         designated revocation via --desig-revoke
4518         * keyedit.c (keyedit_menu, menu_addrevoker): New "addrevoker"
4519         command to add a designated revoker to a key.
4521 2002-05-17  David Shaw  <dshaw@jabberwocky.com>
4523         * gpgv.c: Add stub for get_ownertrust().
4525         * g10.c (main): --allow-freeform-uid should be implied by
4526         OpenPGP.  Add --no-allow-freeform-uid.
4528         * keyedit.c (sign_uids): Issue a warning when signing a
4529         non-selfsigned uid.
4531         * getkey.c (merge_selfsigs_main): If a key has no selfsigs, and
4532         allow-non-selfsigned-uid is not set, still try and make the key
4533         valid by checking all uids for a signature from an ultimately
4534         trusted key.
4536 2002-05-16  David Shaw  <dshaw@jabberwocky.com>
4538         * main.h, keygen.c (keygen_add_revkey): Add revocation key
4539         subpackets to a signature (callable by
4540         make_keysig_packet). (write_direct_sig): Write a 1F direct key
4541         signature. (parse_revocation_key): Parse a string in
4542         algo:fpr:sensitive format into a revocation
4543         key. (get_parameter_revkey, do_generate_keypair): Call above
4544         functions when prompted from a batch key generation file.
4546         * build-packet.c (build_sig_subpkt): Allow multiple revocation key
4547         subpackets in a single sig.
4549         * keydb.h, getkey.c (get_seckey_byfprint): Same as
4550         get_pubkey_byfprint, except for secret keys.  We only know the
4551         fingerprint of a revocation key, so this is needed to retrieve the
4552         secret key needed to issue a revokation.
4554         * packet.h, parse-packet.c (parse_signature, parse_revkeys): Split
4555         revkey parsing off into a new function that can be used to reparse
4556         after manipulating the revkey list.
4558         * sign.c (make_keysig_packet): Ability to make 1F direct key
4559         signatures.
4561 2002-05-15  David Shaw  <dshaw@jabberwocky.com>
4563         * options.skel: keyserver.pgp.com is gone, so list pgp.surfnet.nl
4564         as a sample LDAP server instead.
4566         * getkey.c (merge_selfsigs_main): Properly handle multiple
4567         revocation keys in a single packet.  Properly handle revocation
4568         keys that are in out-of-order packets.  Remove duplicates in
4569         revocation key list.
4571 2002-05-14  Timo Schulz   <ts@winpt.org>
4573         * exec.c (make_tempdir) [MINGW32]: Added missing '\'.
4574         
4575 2002-05-14  Stefan Bellon  <sbellon@sbellon.de>
4577         * exec.c (make_tempdir): Make use of EXTSEP_S instead of hardcoded
4578         dot as extension separator.
4580 2002-05-13  David Shaw  <dshaw@jabberwocky.com>
4582         * photoid.c (show_photos): Use the long keyid as the filename for
4583         the photo.  Use the short keyid as the filename on 8.3 systems.
4585         * exec.h, exec.c (make_tempdir, exec_write, exec_finish): Allow
4586         caller to specify filename.  This should make things easier on
4587         windows and macs where the file extension is required, but a whole
4588         filename is even better.
4590         * keyedit.c (show_key_with_all_names, show_prefs): Show proper
4591         prefs for a v4 key uid with no selfsig at all.
4593         * misc.c (check_permissions): Don't check permissions on
4594         non-normal files (pipes, character devices, etc.)
4596 2002-05-11  Werner Koch  <wk@gnupg.org>
4598         * mainproc.c (proc_symkey_enc): Avoid segv in case the parser
4599         encountered an invalid packet.
4601         * keyserver.c (keyserver_export): Get confirmation before sending
4602         all keys.
4604 2002-05-10  Stefan Bellon  <sbellon@sbellon.de>
4606         * g10.c, hkp.c, keyedit.c, keyserver.c: Replaced all occurrances
4607         of strcasecmp with ascii_strcasecmp and all occurrances of
4608         strncasecmp with ascii_memcasecmp.
4610 2002-05-10  David Shaw  <dshaw@jabberwocky.com>
4612         * packet.h, getkey.c (fixup_uidnode), keyedit.c (show_prefs): Show
4613         assumed prefs for hash and compression as well as the cipher pref.
4614         Show assumed prefs if there are no prefs at all on a v4
4615         self-signed key.
4617         * options.h, g10.c (main), sign.c (make_keysig_packet): New
4618         --cert-digest-algo function to override the default key signing
4619         hash algorithm.
4621 2002-05-09  David Shaw  <dshaw@jabberwocky.com>
4623         * getkey.c (merge_selfsigs_main): Make sure the revocation key
4624         list starts clean as this function may be called more than once
4625         (e.g. from functions in --edit).
4627         * g10.c, encode.c (encode_crypt), sign.c (sign_file,
4628         sign_symencrypt_file): Make --compress-algo work like the
4629         documentation says.  It should be like --cipher-algo and
4630         --digest-algo in that it can override the preferences calculation
4631         and impose the setting the user wants.  No --compress-algo setting
4632         allows the usual preferences calculation to take place.
4634         * main.h, compress.c (compress_filter): use new
4635         DEFAULT_COMPRESS_ALGO define, and add a sanity check for compress
4636         algo value.
4638 2002-05-08  David Shaw  <dshaw@jabberwocky.com>
4640         * pkclist.c (select_algo_from_prefs): There is an assumed
4641         compression preference for uncompressed data.
4643 2002-05-07  David Shaw  <dshaw@jabberwocky.com>
4645         * options.h, g10.c (main), getkey.c (finish_lookup), pkclist.c
4646         (algo_available): --pgp7, identical to --pgp6 except that it
4647         permits a few algorithms that PGP 7 added: AES128, AES192, AES256,
4648         and TWOFISH.  Any more of these --pgpX flags, and it'll be time to
4649         start looking at a generic --emulate-pgp X option.
4651         * export.c (do_export_stream): Warn the user when exporting a
4652         secret key if it or any of its secret subkeys are protected with
4653         SHA1 while simple_sk_checksum is set.
4655         * parse-packet.c (parse_key): Show when the SHA1 protection is
4656         used in --list-packets.
4658         * options.h, build-packet.c (do_comment), g10.c (main): Rename
4659         --no-comment as --sk-comments/--no-sk-comments (--no-comment still
4660         works) and make the default be --no-sk-comments.
4662 2002-05-07  Werner Koch  <wk@gnupg.org>
4664         * keygen.c (get_parameter_algo): Never allow generation of the
4665         deprecated RSA-E or RSA-S flavors of PGP RSA.
4666         (ask_algo): Allow generation of RSA sign and encrypt in expert
4667         mode.  Don't allow ElGamal S+E unless in expert mode.
4668         * helptext.c: Added entry keygen.algo.rsa_se.
4670 2002-05-07  David Shaw  <dshaw@jabberwocky.com>
4672         * keyedit.c (sign_uids): If --expert is set, allow re-signing a
4673         uid to promote a v3 self-sig to a v4 one.  This essentially
4674         deletes the old v3 self-sig and replaces it with a v4 one.
4676         * packet.h, parse-packet.c (parse_key), getkey.c
4677         (merge_keys_and_selfsig, merge_selfsigs_main): a v3 key with a v4
4678         self-sig must never let the v4 self-sig express a key expiration
4679         time that extends beyond the original v3 expiration time.
4681 2002-05-06  David Shaw  <dshaw@jabberwocky.com>
4683         * keyedit.c (sign_uids): When making a self-signature via "sign"
4684         don't ask about sig level or expiration, and include the usual
4685         preferences and such for v4 self-sigs.  (menu_set_preferences):
4686         Convert uids from UTF8 to native before printing.
4688         * keyedit.c (sign_uids): Convert uids from UTF8 to native before
4689         printing.  (menu_set_primary_uid): Show error if the user tries to
4690         make a uid with a v3 self-sig primary.
4692 2002-05-05  David Shaw  <dshaw@jabberwocky.com>
4694         * import.c (import_one): When merging with a key we already have,
4695         don't let a key conflict (same keyid but different key) stop the
4696         import: just skip the bad key and continue.
4698         * exec.c (make_tempdir): Under Win32, don't try environment
4699         variables for temp directories - GetTempDir tries environment
4700         variables internally, and it's better not to second-guess it in
4701         case MS adds some sort of temp dir handling to Windows at some
4702         point.
4704 2002-05-05  Timo Schulz  <ts@winpt.org>
4706         * mainproc.c (proc_symkey_enc): Don't ask for a passphrase
4707         in the list only mode.
4708         
4709 2002-05-05  David Shaw  <dshaw@jabberwocky.com>
4711         * keyserver.c (keyserver_refresh): --refresh-keys implies
4712         --merge-only so as not to import keys with keyids that match the
4713         ones being refreshed.  Noted by Florian Weimer.
4715 2002-05-04  Stefan Bellon  <sbellon@sbellon.de>
4717         * free-packet.c (copy_public_key): Don't call m_alloc(0), therefore
4718         added consistency check for revkey and numrefkeys.
4720         * getkey.c (check_revocation_keys): Added consistency check for
4721         revkey and numrefkeys.
4723         * keyedit.c (show_key_with_all_names): Likewise.
4725 2002-05-03  David Shaw  <dshaw@jabberwocky.com>
4727         * photoid.c: Provide default image viewer for Win32.
4729         * misc.c (pct_expando): %t means extension, not name ("jpg", not
4730         "jpeg").
4732         * keyserver.c (keyserver_spawn), photoid.c (show_photos), exec.h,
4733         exec.c: Allow the caller to determine the temp file extension when
4734         starting an exec_write and change all callers.
4736         * keyedit.c (sign_uids): Nonrevocable key signatures cause an
4737         automatic promotion to v4.
4739         * exec.c: Provide stubs for exec_ functions when NO_EXEC is
4740         defined.
4742 2002-05-02  David Shaw  <dshaw@jabberwocky.com>
4744         * photoid.h, photoid.c (parse_image_header, image_type_to_string):
4745         Useful functions to return data about an image.
4747         * packet.h, parse-packet.c (make_attribute_uidname,
4748         parse_attribute_subpkts, parse_attribute), photoid.h, photoid.c
4749         (show_photos): Handle multiple images in a single attribute
4750         packet.
4752         * main.h, misc.c (pct_expando), sign.c (mk_notation_and_policy),
4753         photoid.c (show_photos): Simpler expando code that does not
4754         require using compile-time string sizes.  Call
4755         image_type_to_string to get image strings (i.e. "jpg",
4756         "image/jpeg").  Change all callers.
4758         * keyedit.c (menu_showphoto), keylist.c (list_keyblock_print):
4759         Allow viewing multiple images within a single attribute packet.
4761         * gpgv.c: Various stubs for link happiness.
4763 2002-05-02  David Shaw  <dshaw@jabberwocky.com>
4765         * build-packet.c (build_sig_subpkt), keyedit.c (sign_uids),
4766         options.h, sign.c (mk_notation_and_policy), g10.c (main,
4767         add_notation_data, add_policy_url (new), check_policy_url
4768         (removed)): Allow multiple policy URLs on a given signature.
4769         Split "--notation-data" into "--cert-notation" and
4770         "--sig-notation" so the user can set different policies for key
4771         and data signing.  For backwards compatibility, "--notation-data"
4772         sets both, as before.
4774 2002-05-02  Werner Koch  <wk@gnupg.org>
4776         * options.skel: Removed the comment on trusted-keys because this
4777         option is now deprecated.
4779 2002-05-01  David Shaw  <dshaw@jabberwocky.com>
4781         * keyedit.c (menu_adduid): 2440bis04 says that multiple attribute
4782         packets on a given key are legal.
4784         * keyserver.c (keyserver_refresh): the fake v3 keyid hack applies
4785         to "mailto" URLs as well since they are also served by pksd.
4787 2002-04-29  Werner Koch  <wk@gnupg.org>
4789         Added a copyright year for files changed this year.
4791 2002-04-25  Werner Koch  <wk@gnupg.org>
4793         * g10.c, options.h: New options --display, --ttyname, --ttytype,
4794         --lc-ctype, --lc-messages to be used with future versions of the
4795         gpg-agent. 
4796         * passphrase.c (agent_send_option,agent_send_all_options): New.
4797         (agent_open): Send options to the agent.
4799         * trustdb.c (update_ownertrust, clear_ownertrust): Do an explicit
4800         do_sync because revalidation_mark does it only if when the
4801         timestamp actually changes.
4803 2002-04-23  David Shaw  <dshaw@jabberwocky.com>
4805         * main.h, keygen.c (do_generate_keypair), keylist.c
4806         (print_signature_stats, list_all, list_one, list_keyblock,
4807         list_keyblock_print, list_keyblock_colon): After generating a new
4808         key, show the key information (name, keyid, fingerprint, etc.)
4809         Also do not print uncheckable signatures (missing key..) in
4810         --check-sigs.  Print statistics (N missing keys, etc.) after
4811         --check-sigs.
4813         * keyedit.c (sign_uids): When signing a key with an expiration
4814         date on it, the "Do you want your signature to expire at the same
4815         time?" question should default to YES.
4817 2002-04-22  David Shaw  <dshaw@jabberwocky.com>
4819         * parse-packet.c (parse_plaintext), packet.h, plaintext.c
4820         (handle_plaintext): Fix bug in handling literal packets with
4821         zero-length data (no data was being confused with partial body
4822         length).
4824         * misc.c (pct_expando), options.skel: %t means extension ("jpg").
4825         %T means MIME type ("image/jpeg").
4827         * import.c (import_one): Only trigger trust update if the keyring
4828         is actually changed.
4830         * export.c (do_export_stream): Missing a m_free.
4832 2002-04-22  Stefan Bellon  <sbellon@sbellon.de>
4834         * keyid.c (expirestr_from_sk, expirestr_from_sig): Added _() to
4835         string constant.
4837         * exec.c (make_tempdir) [__riscos__]: Better placement of
4838         temporary file.
4840 2002-04-20  David Shaw  <dshaw@jabberwocky.com>
4842         * keygen.c (generate_subkeypair): 2440bis04 adds that creating
4843         subkeys on v3 keys is a MUST NOT.
4845         * getkey.c (finish_lookup): The --pgp6 "use the primary key"
4846         behavior should only apply while data signing and not encryption.
4847         Noted by Roger Sondermann.
4849 2002-04-19  Werner Koch  <wk@gnupg.org>
4851         * keygen.c (keygen_set_std_prefs): Put back 3DES because the RFC
4852         says it is good form to do so.
4854 2002-04-19  David Shaw  <dshaw@jabberwocky.com>
4856         * keyedit.c (menu_deluid): Only cause a trust update if we delete
4857         a non-revoked user id.
4859         * hkp.c (hkp_ask_import), keyserver.c (parse_keyserver_options,
4860         keyserver_spawn), options.h: Remove fast-import keyserver option
4861         (no longer meaningful).
4863         * g10.c (main), keyedit.c (sign_uids), options.h: Change
4864         --default-check-level to --default-cert-check-level as it makes
4865         clear what it operates on.
4867         * g10.c (main): --pgp6 also implies --no-ask-sig-expire.
4869         * delkey.c (do_delete_key): Comment.
4871         * keyedit.c (sign_uids, keyedit_menu, menu_deluid, menu_delsig,
4872         menu_expire, menu_revsig, menu_revkey): Only force a trustdb check
4873         if we did something that changes it.
4875         * g10.c: add "--auto-check-trustdb" to override a
4876         "--no-auto-check-trustdb"
4878 2002-04-19  Werner Koch  <wk@gnupg.org>
4880         * tdbio.c (tdbio_write_nextcheck): Return a status whether the
4881         stamp was actually changed.
4882         * trustdb.c (revalidation_mark): Sync the changes.  Removed the
4883         sync operation done by its callers.
4884         (get_validity): Add logic for maintaining a pending_check flag.
4885         (clear_ownertrust): New.
4886         
4887         * keyedit.c (sign_uids): Don't call revalidation_mark depending on
4888         primary_pk.
4889         (keyedit_menu): Call revalidation_mark after "trust".
4890         (show_key_with_all_names): Print a warning on the wrong listed key
4891         validity.
4893         * delkey.c (do_delete_key): Clear the owenertrust information when
4894         deleting a public key.
4895         
4896 2002-04-18  Werner Koch  <wk@gnupg.org>
4898         * seskey.c (encode_md_value): Print an error message if a wrong
4899         digest algorithm is used with DSA.  Changed all callers to cope
4900         with a NULL return.  Problem noted by Imad R. Faiad.
4902 2002-04-18  David Shaw  <dshaw@jabberwocky.com>
4904         * trustdb.c (mark_usable_uid_certs): Properly handle nonrevocable
4905         signatures that can expire.  In short, the only thing that can
4906         override an unexpired nonrevocable signature is another unexpired
4907         nonrevocable signature.
4909         * getkey.c (finish_lookup): Always use primary signing key for
4910         signatures when --pgp6 is on since pgp6 and 7 do not understand
4911         signatures made by signing subkeys.
4913 2002-04-18  Werner Koch  <wk@gnupg.org>
4915         * trustdb.c (validate_keys): Never schedule a nextcheck into the
4916         past.
4917         (validate_key_list): New arg curtime use it to set next_expire.
4918         (validate_one_keyblock): Take the current time from the caller.
4919         (clear_validity, reset_unconnected_keys): New.
4920         (validate_keys): Reset all unconnected keys.
4922         * getkey.c (premerge_public_with_secret): Fixed 0x12345678! syntax
4923         for use with secret keys.
4924         (lookup): Advance the searchmode after a search FIRST.
4926         * seckey-cert.c (do_check): Always calculate the old checksum for
4927         use after unprotection.
4929         * g10.c, options.skel: New option --no-escape-from.  Made
4930         --escape-from and --force-v3-sigs the default and removed them
4931         from the options skeleton.
4933 2002-04-16  Werner Koch  <wk@gnupg.org>
4935         * parse-packet.c (parse_key): Support a SHA1 checksum as per
4936         draft-rfc2440-bis04.
4937         * packet.h (PKT_secret_key): Add field sha1chk.
4938         * seckey-cert.c (do_check): Check the SHA1 checksum
4939         (protect_secret_key): And create it.
4940         * build-packet.c (do_secret_key): Mark it as sha-1 protected.
4941         * g10.c, options.h: New option --simple-sk-checksum.
4943 2002-04-13  David Shaw  <dshaw@jabberwocky.com>
4945         * parse-packet.c (parse_signature): Minor fix - signatures should
4946         expire at their expiration time and not one second later.
4948         * keygen.c (proc_parameter_file): Allow specifying preferences
4949         string (i.e. "s5 s2 z1 z2", etc) in a batchmode key generation
4950         file.
4952         * keyedit.c (keyedit_menu): Print standard error message when
4953         signing a revoked key (no new translation).
4955         * getkey.c (merge_selfsigs): Get the default set of key prefs from
4956         the real (not attribute) primary uid.
4958 2002-04-12  David Shaw  <dshaw@jabberwocky.com>
4960         * pkclist.c (build_pk_list): Fix bug that allowed a key to be
4961         selected twice in batch mode if one instance was the default
4962         recipient and the other was an encrypt-to.  Noted by Stefan
4963         Bellon.
4965         * parse-packet.c (dump_sig_subpkt): Show data in trust and regexp
4966         sig subpackets.
4968         * keyedit.c (keyedit_menu): Use new function real_uids_left to
4969         prevent deleting the last real (i.e. non-attribute) uid.  Again,
4970         according to the attribute draft. (menu_showphoto): Make another
4971         string translatable.
4973 2002-04-11  David Shaw  <dshaw@jabberwocky.com>
4975         * build-packet.c (build_sig_subpkt): Delete subpackets from both
4976         hashed and unhashed area on update.  (find_subpkt): No longer
4977         needed.
4979         * keyedit.c (sign_uids): With --pgp2 on, refuse to sign a v3 key
4980         with a v4 signature.  As usual, --expert overrides.  Try to tweak
4981         some strings to a closer match so they can all be translated in
4982         one place.  Use different helptext keys to allow different help
4983         text for different questions.
4985         * keygen.c (keygen_upd_std_prefs): Remove preferences from both
4986         hashed and unhashed areas if they are not going to be used.
4988 2002-04-10  David Shaw  <dshaw@jabberwocky.com>
4990         * misc.c (pct_expando), options.skel: Use %t to indicate type of a
4991         photo ID (in this version, it's always "jpeg").  Also tweak string
4992         expansion loop to minimize reallocs.
4994         * mainproc.c (do_check_sig): Variable type fix.
4996         * keyedit.c (menu_set_primary_uid): Differentiate between true
4997         user IDs and attribute user IDs when making one of them primary.
4998         That is, if we are making a user ID primary, we alter user IDs.
4999         If we are making an attribute packet primary, we alter attribute
5000         packets.  This matches the language in the latest attribute packet
5001         draft.
5003         * keyedit.c (sign_uids): No need for the empty string hack.
5005         * getkey.c (fixup_uidnode): Only accept preferences from the
5006         hashed segment of the self-sig.
5008 2002-04-10  Werner Koch  <wk@gnupg.org>
5010         * tdbio.c (migrate_from_v2): Fixed the offset to read the old
5011         ownertrust value and only add entries to the table if we really
5012         have a value.
5014 2002-04-08  David Shaw  <dshaw@jabberwocky.com>
5016         * status.h, status.c (get_status_string): Add KEYEXPIRED, EXPSIG,
5017         and EXPKEYSIG.  Add "deprecated-use-keyexpired-instead" to
5018         SIGEXPIRED.
5020         * sig-check.c (do_check): Start transition from SIGEXPIRED to
5021         KEYEXPIRED, since the actual event is signature verification by an
5022         expired key and not an expired signature. (do_signature_check,
5023         packet.h): Rename as signature_check2, make public, and change all
5024         callers.
5026         * mainproc.c (check_sig_and_print, do_check_sig): Use status
5027         EXPSIG for an expired, but good, signature.  Add the expiration
5028         time (or 0) to the VALIDSIG status line.  Use status KEYEXPSIG for
5029         a good signature from an expired key.
5031         * g10.c (main): remove checks for no arguments now that argparse
5032         does it.
5034 2002-04-06  Werner Koch  <wk@gnupg.org>
5036         * keyring.c (keyring_get_keyblock): Disable the keylist mode here.
5038         * encode.c (encode_simple, encode_crypt): Only test on compressed
5039         files if a compress level was not explicity set.
5041         * keygen.c (keygen_set_std_prefs): Removed Blowfish and Twofish
5042         from the list of default preferences, swapped the preferences of
5043         RMD160 and SHA1.  Don't include a preference to 3DES unless the
5044         IDEA kludge gets used.
5046         * free-packet.c (free_packet): call free_encrypted also for
5047         PKT_ENCRYPTED_MDC.
5049         * compress.c (release_context): New.
5050         (handle_compressed): Allocate the context and setup a closure to
5051         release the context.  This is required because there is no
5052         guarantee that the filter gets popped from the chain at the end
5053         of the function.  Problem noted by Timo and probably also the
5054         cause for a couple of other reports.
5055         (compress_filter): Use the release function if set.
5057         * tdbio.c [__CYGWIN32__]: Don't rename ftruncate.  Noted by
5058         Disastry.
5060         * parse-packet.c (parse_signature): Put parens around a bit test.
5062         * exec.c (make_tempdir): Double backslash for TMP directory
5063         creation under Windows.  Better strlen the DIRSEP_S constants for
5064         allocation measurements.
5066         * decrypt.c (decrypt_messages): Release the passphrase aquired
5067         by get_last_passphrase.
5069 2002-04-02  Werner Koch  <wk@gnupg.org>
5071         * Makefile.am (EXTRA_DIST): Removed OPTIONS an pubring.asc - they
5072         are no longer of any use. 
5074 2002-04-03  David Shaw  <dshaw@jabberwocky.com>
5076         * keyserver.c (parse_keyserver_options): fix auto-key-retrieve to
5077         actually work as a keyserver-option (noted by Roger Sondermann).
5079         * keylist.c (reorder_keyblock): do not reorder the primary
5080         attribute packet - the first user ID must be a genuine one.
5082 2002-03-31  David Shaw  <dshaw@jabberwocky.com>
5084         * keylist.c (list_keyblock_colon): Fix ownertrust display with
5085         --with-colons.
5087         * keygen.c (generate_user_id), photoid.c (generate_photo_id):
5088         Properly initialize the user ID refcount.  A few more "y/n" ->
5089         "y/N" in photoid.c.
5091         * keyedit.c (ask_revoke_sig): Warn the user if they are about to
5092         revoke an expired sig (not a problem, but they should know).  Also
5093         tweak a few prompts to change "y/n" to "y/N", which is how most
5094         other prompts are written.
5096         * keyserver.c (keyserver_search_prompt): Control-d escapes the
5097         keyserver search prompt.
5099         * pkclist.c (show_revocation_reason & callers): If a subkey is
5100         considered revoked solely because the parent key is revoked, print
5101         the revocation reason from the parent key.
5103         * trustdb.c (get_validity): Allow revocation/expiration to apply
5104         to a uid/key with no entry in the trustdb.
5106 2002-03-29  David Shaw  <dshaw@jabberwocky.com>
5108         * keyserver.c (printunquoted): unquote backslashes from keyserver
5109         searches
5111         * hkp.c (write_quoted): quote backslashes from keyserver searches
5113 2002-03-26  Werner Koch  <wk@gnupg.org>
5115         * keygen.c (ask_keysize): Removed the warning for key sizes > 1536.
5117 2002-03-25  Werner Koch  <wk@gnupg.org>
5119         * keyedit.c (sign_uids): Use 2 strings and not a %s so that
5120         translations can be done the right way.
5121         * helptext.c: Fixed small typo.
5123 2002-03-23  David Shaw  <dshaw@jabberwocky.com>
5125         * import.c (append_uid, merge_sigs): it is okay to import
5126         completely non-signed uids now (with --allow-non-selfsigned-uid).
5128         * getkey.c (get_primary_uid, merge_selfsigs_main): do not choose
5129         an attribute packet (i.e. photo) as primary uid.  This prevents
5130         oddities like "Good signature from [image of size 2671]".  This is
5131         still not perfect (one can still select an attribute packet as
5132         primary in --edit), but is closer to the way the draft is going.
5134         * g10.c (build_list): algorithms should include 110.
5136         * g10.c (main): --pgp2 implies --no-ask-sig-expire and
5137         --no-ask-cert-expire as those would cause a v4 sig/cert.
5139         * armor.c (is_armor_header): be more lenient in what constitutes a
5140         valid armor header (i.e. -----BEGIN blah blah-----) as some
5141         Windows programs seem to add spaces at the end.  --openpgp makes
5142         it strict again.
5144 2002-03-18  David Shaw  <dshaw@jabberwocky.com>
5146         * keyserver.c (keyserver_search_prompt): Properly handle a "no
5147         keys found" case from the internal HKP code (external HKP is ok).
5148         Also, make a COUNT -1 (i.e. streamed) keyserver response a little
5149         more efficient.
5151         * g10.c (main): Add --no-allow-non-selfsigned-uid
5153 2002-03-17  David Shaw  <dshaw@jabberwocky.com>
5155         * g10.c (main): --openpgp implies --allow-non-selfsigned-uid.
5157         * getkey.c (merge_selfsigs_main): If none of the uids are primary
5158         (because none are valid) then pick the first to be primary (but
5159         still invalid).  This is for cosmetics in case some display needs
5160         to print a user ID from a non-selfsigned key.  Also use
5161         --allow-non-selfsigned-uid to make such a key valid and not
5162         --always-trust.  The key is *not* automatically trusted via
5163         --allow-non-selfsigned-uid.
5165         * mainproc.c (check_sig_and_print): Make sure non-selfsigned uids
5166         print [uncertain] on verification even though one is primary now.
5168         * getkey.c (merge_selfsigs): If the main key is not valid, then
5169         neither are the subkeys.
5171         * import.c (import_one): Allow --allow-non-selfsigned-uid to work
5172         on completely unsigned keys.  Print the uids in UTF8.  Remove
5173         mark_non_selfsigned_uids_valid().
5175         * keyedit.c (show_key_with_all_names): Show revocation key as
5176         UTF8.
5178         * sign.c (clearsign_file): Allow --not-dash-escaped to work with
5179         v3 keys.
5181 2002-03-14  Werner Koch  <wk@gnupg.org>
5183         * main.h: Changed the default algorithms to CAST5 and SHA1.
5185 2002-03-13  David Shaw  <dshaw@jabberwocky.com>
5187         * import.c (chk_self_sigs): Show which user ID a bad self-sig
5188         (invald sig or unsupported public key algorithm) resides on.
5190         * import.c (chk_self_sigs): any valid self-sig should mark a user
5191         ID or subkey as valid - otherwise, an attacker could DoS the user
5192         by inventing a bogus invalid self-signature.
5194 2002-03-07  David Shaw  <dshaw@jabberwocky.com>
5196         * g10.c (main): make a few more strings translatable.
5198         * options.h, options.skel, g10.c (main), gpgv.c, mainproc.c
5199         (check_sig_and_print), keyserver.c (parse_keyserver_options):
5200         --auto-key-retrieve should really be a keyserver-option variable.
5202         * import.c (revocation_present): new function to print a warning
5203         if a key is imported that has been revoked by designated revoker,
5204         but the designated revoker is not present to verify the
5205         revocation.  If keyserver-options auto-key-retrieve is set, try
5206         and fetch the designated revoker from the keyserver.
5208         * import.c (import_one): call revocation_present after importing a
5209         new key.  Note that this applies to --import, --recv-keys, and
5210         --search-keys.
5211         
5212         * keyserver-internal.h, keyserver.c (keyserver_import_fprint):
5213         import via fingerprint (for revocation keys).
5215         * keyserver.c (keyserver_import_keyid): much simpler
5216         implementation now that we're using KEYDB_SEARCH_DESC internally.
5218 2002-03-04  David Shaw  <dshaw@jabberwocky.com>
5220         * revoke.c (gen_revoke): do not prompt for revocation reason for
5221         v3 revocations (unless force-v4-certs is on) since they wouldn't
5222         be used anyway.
5224         * keyedit.c (menu_revsig): show the status of the sigs
5225         (exportable? revocable?) to the user before prompting for which
5226         sig to revoke.  Also, make sure that local signatures get local
5227         revocations.
5229         * keyedit.c (ask_revoke_sig): remind the user which sigs are
5230         local.
5232         * g10.c (main): Add "exec-path" variable to override PATH for
5233         execing programs.
5235         * export.c (do_export_stream): properly check return code from
5236         classify_user_id to catch unclassifiable keys.
5238 2002-03-03  David Shaw  <dshaw@jabberwocky.com>
5240         * parse-packet.c (parse_signature): variable type tweak for RISC
5241         OS (from Stefan)
5243 2002-02-28  David Shaw  <dshaw@jabberwocky.com>
5245         * getkey.c (check_revocation_keys): New function to check a
5246         revocation against a list of potential revocation keys.  Note the
5247         loop-breaking code here.  This is to prevent blowing up if A is
5248         B's revocation key, while B is also A's.  Note also that this is
5249         written so that a revoked revoker can still issue revocations:
5250         i.e. If A revokes B, but A is revoked, B is still revoked.  I'm
5251         not completely convinced this is the proper behavior, but it
5252         matches how PGP does it.  It does at least have the advantage of
5253         much simpler code - my first version of this had lots of loop
5254         maintaining code so you could chain revokers many levels deep and
5255         if D was revoked, C was not, which meant that B was, and so on.
5256         It was sort of scary, actually.
5258         * getkey.c (merge_selfsigs_main): Add any revocation keys onto the
5259         pk.  This is particularly interesting since we normally only get
5260         data from the most recent 1F signature, but you need multiple 1F
5261         sigs to properly handle revocation keys (PGP does it this way, and
5262         a revocation key could be marked "sensitive" and hence in a
5263         different signature).  Also, if a pk has a revocation key set,
5264         check for revocation sigs that were not made by us - if made by a
5265         valid revocation key, mark the pk revoked.
5267         * packet.h, getkey.c (cache_public_key): do not cache key if
5268         "dont_cache" is set.  This allows the revocation key code to look
5269         up a key and return information that may be inaccurate to prevent
5270         loops without caching the fake data.
5272         * packet.h, sig-check.c (do_signature_check): Record if a
5273         signature was made by a revoked pk.
5275         * packet.h, parse-packet.c (parse_one_sig_subpkt,
5276         can_handle_critical, parse_signature): Get revocation key
5277         information out of direct sigs.
5278         
5279         * keylist.c (list_keyblock_print): don't assume that the presence
5280         of a 0x20 signature means the key is revoked.  With revocation
5281         keys, this may not be true if the revocation key is not around to
5282         verify it or if verification failed.  Also, 0x1F should get listed
5283         as "sig", and not "unexpected signature class".
5285         * keyedit.c (show_key_with_all_names): Add a flag for printing
5286         revoker information and change all callers.
5288         * import.c (merge_blocks): merge in any new direct key (0x1F)
5289         sigs.
5291         * import.c (import_revoke_cert): don't keep processing after a
5292         revocation is rejected.
5293         
5294         * import.c (delete_inv_parts): Allow importing a revocation
5295         signature even if it was not issued by the key.  This allows a
5296         revocation key to issue it.  Of course, the sig still needs to be
5297         checked before we trust it.
5299         * free-packet.c (copy_public_key): Include a new copy of the
5300         revocation keys when duping a pk.
5302         * free-packet.c (free_seckey_enc, release_public_key_parts): Free
5303         any revocation keys that are attached to a sig or pk.
5305         * export.c (do_export_stream): Do not export signatures with
5306         "sensitive" revocation keys in them.
5308 2002-02-27  David Shaw  <dshaw@jabberwocky.com>
5310         * export.c (do_export_stream): Do not include v3 keys in a
5311         --export-secret-subkeys export.
5313         * getkey.c (merge_selfsigs_main): If a key isn't valid (say,
5314         because of no self-signature), allow --always-trust to force it
5315         valid so it can be trusted.
5317 2002-02-25  David Shaw  <dshaw@jabberwocky.com>
5319         * hkp.c (hkp_ask_import), hkp.h, keyserver.c (all): treat key
5320         lists internally as fingerprints when possible.  All this is via
5321         KEYDB_SEARCH_DESC - no point in reinventing the wheel. This allows
5322         the helper program to search the keyserver by fingerprint if
5323         desired (and the keyserver supports it).  Note that automatic
5324         fingerprint promotion during refresh only applies to v4 keys as a
5325         v4 fingerprint can be easily changed into a long or short key id,
5326         and a v3 cannot.
5328         * pubkey-enc.c, getkey.c, misc.c, main.h: Take two copies of
5329         hextobyte() from pubkey-enc.c and getkey.c and make them into one
5330         copy in misc.c.
5332 2002-02-22  David Shaw  <dshaw@jabberwocky.com>
5334         * keyserver.c (keyserver_search_prompt): Detect a "no keys found"
5335         case even if the helper program does not explicitly say how many
5336         keys were found.
5338         * hkp.c (parse_hkp_index): Bug fix - don't report non-revoked keys
5339         as revoked in HKP key searches.
5341 2002-02-19  Werner Koch  <wk@gnupg.org>
5343         * parse-packet.c (parse_trust): Made parsing more robust.
5345 2002-02-19  David Shaw  <dshaw@jabberwocky.com>
5347         * hkp.c (parse_hkp_index): Catch corruption in HKP index lines
5348         (can be caused by broken or malicious keyservers).
5350         * keyserver.c (keyserver_work): Add KEYSERVER_NOT_SUPPORTED for
5351         unsupported actions (say, a keyserver that has no way to search,
5352         or a readonly keyserver that has no way to add).  Also add a
5353         USE_EXTERNAL_HKP define to disable the internal HKP keyserver
5354         code.
5356 2002-02-14  Werner Koch  <wk@gnupg.org>
5358         * g10.c: New option --no-use-agent. 
5360         * pkclist.c (check_signatures_trust): Always print the warning for
5361         unknown and undefined trust.  Removed the did_add cruft.  Reported
5362         by Janusz A. Urbanowicz.
5364 2002-02-11  David Shaw  <dshaw@jabberwocky.com>
5366         * hkp.c (parse_hkp_index): Bug fix - properly handle user IDs with
5367         colons (":") in them while HKP searching.
5369 2002-02-09  David Shaw  <dshaw@jabberwocky.com>
5371         * misc.c (pct_expando): More comments.
5373         * keydb.h, sign.c (mk_notation_and_policy): Clarify what is a sig
5374         and what is a cert.  A sig has sigclass 0x00, 0x01, 0x02, or 0x40,
5375         and everything else is a cert.
5377         * g10.c (main), keyedit.c (keyedit_menu): Add a "nrlsign" for
5378         nonrevocable and local key signatures.
5380         * g10.c (main): Add a --no-force-mdc to undo --force-mdc.
5382         * options.h, g10.c (main), cipher.c (write_header): Add a knob to
5383         --disable-mdc/--no-disable-mdc.  Off by default, of course, but is
5384         used in --pgp2 and --pgp6 modes.
5385         
5386         * pkclist.c (build_pk_list): Allow specifying multiple users in
5387         the "Enter the user ID" loop.  Enter a blank line to stop.  Show
5388         each key+id as it is added.
5390         * keylist.c (show_policy_url), mainproc.c (print_notation_data):
5391         It is not illegal (though possibly silly) to have multiple policy
5392         URLs in a given signature, so print all that are present.
5393         
5394         * hkp.c (hkp_search): More efficient implementation of URL-ifying
5395         code.
5397 2002-02-04  David Shaw  <dshaw@jabberwocky.com>
5399         * main.h, misc.c (pct_expando): New function to generalize
5400         %-expando processing in any arbitrary string.
5402         * photoid.c (show_photo): Call the new pct_expando function rather
5403         than expand strings internally.
5404         
5405         * sign.c (mk_notation_and_policy): Show policy URLs and notations
5406         when making a signature if show-policy/show-notation is on.
5407         %-expand policy URLs during generation.  This lets the user have
5408         policy URLs of the form "http://notary.jabberwocky.com/keysign/%K"
5409         which will generate a per-signature policy URL.
5411         * main.h, keylist.c (show_policy_url, show_notation): Add amount
5412         to indent so the same function can be used in key listings as well
5413         as during sig generation.  Change all callers.
5415 2002-02-04  David Shaw  <dshaw@jabberwocky.com>
5417         * keyserver.c, options.h (parse_keyserver_options, keyidlist):
5418         Workaround for the pksd and OKS keyserver bug that calculates v4
5419         RSA keyids as if they were v3.  The workaround/hack is to fetch
5420         both the v4 (e.g. 99242560) and v3 (e.g. 68FDDBC7) keyids.  This
5421         only happens for key refresh while using the HKP scheme and the
5422         refresh-add-fake-v3-keyids keyserver option must be set.  This
5423         should stay off by default.
5425 2002-02-03  David Shaw  <dshaw@jabberwocky.com>
5427         * keyserver.c (keyserver_spawn): Bug fix - do not append keys to
5428         each other when --sending more than one.
5430 2002-02-02  David Shaw  <dshaw@jabberwocky.com>
5432         * options.h, g10.c (main), keyedit.c (sign_uids), sign.c
5433         (mk_notation_and_policy): Split "--set-policy-url" into
5434         "--cert-policy-url" and "--sig-policy-url" so the user can set
5435         different policies for key and data signing.  For backwards
5436         compatibility, "--set-policy-url" sets both, as before.
5438 2002-01-30  Werner Koch  <wk@gnupg.org>
5440         * g10.c (main): --gen-random --armor does now output a base64
5441         encoded string.
5443 2002-01-28  David Shaw  <dshaw@jabberwocky.com>
5445         * g10.c (main), options.h, pkclist.c (algo_available): --pgp6
5446         flag.  This is not nearly as involved as --pgp2.  In short, it
5447         turns off force_mdc, turns on no_comment, escape_from, and
5448         force_v3_sigs, and sets compression to 1.  It also restricts the
5449         user to IDEA (if present), 3DES, CAST5, MD5, SHA1, and RIPEMD160.
5450         See the comments above algo_available() for lots of discussion on
5451         why you would want to do this.
5453 2002-01-27  David Shaw  <dshaw@jabberwocky.com>
5455         * keygen.c (keygen_set_std_prefs): Comment
5457         * keyedit.c (sign_uids): Bug fix - when signing with multiple
5458         secret keys at the same time, make sure each key gets the sigclass
5459         prompt.
5461         * exec.c (exec_finish): Close the iobuf and FILE before trying to
5462         waitpid, so the remote process will get a SIGPIPE and exit.  This
5463         is only a factor when using a pipe to communicate.
5465         * exec.c (exec_write): Disable cache-on-close of the fd iobuf (is
5466         this right?  Why is a fd iobuf cached at all?)
5468 2002-01-26  Werner Koch  <wk@gnupg.org>
5470         * g10.c, options.h: New option --gpg-agent-info
5471         * passphrase.c (agent_open): Let it override the environment info.
5472         * seckey-cert.c (check_secret_key): Always try 3 times when the
5473         agent is enabled.
5474         * options.skel: Describe --use-agent.
5476 2002-01-24  David Shaw  <dshaw@jabberwocky.com>
5478         * pubkey-enc.c (is_algo_in_prefs, get_it): Only check preferences
5479         against keys with v4 self sigs - there is really little point in
5480         warning for every single non-IDEA message encrypted to an old key.
5482         * pkclist.c (select_algo_from_prefs): Only put in the fake IDEA
5483         preference if --pgp2 is on.
5485         * mainproc.c (check_sig_and_print): Print "Expired" for expired
5486         but good signatures (this still prints "BAD" for expired but bad
5487         signatures).
5489 2002-01-23  David Shaw  <dshaw@jabberwocky.com>
5491         * keygen.c (ask_keysize): Cosmetic: don't present a RSA signing
5492         key as a "keypair" which can be 768 bits long (as RSA minimum is
5493         1024).
5495         * pubkey-enc.c (is_algo_in_prefs): Allow IDEA as a fake preference
5496         for v3 keys with v3 selfsigs.
5498 2002-01-22  David Shaw  <dshaw@jabberwocky.com>
5500         * packet.h, getkey.c (merge_selfsigs_main), pkclist.c
5501         (select_algo_from_prefs): Implement the fake IDEA preference as
5502         per RFC2440:12.1.  This doesn't mean that IDEA will be used (the
5503         plugin may not be present), but it does mean that a v3 key with a
5504         v3 selfsig has an implicit IDEA preference instead of 3DES.  v3
5505         keys with v4 selfsigs use preferences as normal.
5507         * encode.c (encode_crypt): if select_algo_from_prefs fails, this
5508         means that we could not find a cipher that both keys like.  Since
5509         all v4 keys have an implicit 3DES preference, this means there is
5510         a v3 key with a v3 selfsig in the list.  Use 3DES in this case as
5511         it is the safest option (we know the v4 key can handle it, and
5512         we'll just hope the v3 key is being used in an implementation that
5513         can handle it).  If --pgp2 is on, warn the user what we're doing
5514         since it'll probably break PGP2 compatibility.
5516         * g10.c (main): Do not force using IDEA for encrypted files in
5517         --pgp2 mode - let the fake IDEA preference choose this for us for
5518         better compatibility when encrypting to multiple keys, only some
5519         of which are v3.
5521         * keygen.c (keygen_set_std_prefs): Put 3DES on the end of the
5522         default cipher pref list (RFC2440: "...it is good form to place it
5523         there explicitly.").  If the user has the IDEA plugin installed,
5524         put a preference for IDEA *after* 3DES to effectively disable its
5525         use for everything except encrypting along with v3 keys.
5527         * encode.c, g10.c, sign.c: Change the PGP2 warning line from
5528         "... will not be usable ..." to "... may not be usable ..." as the
5529         user could be using one of the enhanced PGP2 variations.
5531         * helptext.c: Revise the sign_uid.class help text as suggested by
5532         Stefan.
5533         
5534 2002-01-20  Werner Koch  <wk@gnupg.org>
5536         * passphrase.c (passphrase_to_dek): Add tryagain_text arg to be
5537         used with the agent.  Changed all callers.
5538         (agent_get_passphrase): Likewise and send it to the agent
5539         * seckey-cert.c (do_check): New arg tryagain_text.
5540         (check_secret_key): Pass the string to do_check.
5541         * keygen.c (ask_passphrase): Set the error text is required.
5542         * keyedit.c (change_passphrase): Ditto.
5544         * passphrase.c (agent_open): Disable opt.use_agent in case of a
5545         problem with the agent. 
5546         (agent_get_passphrase): Ditto.
5547         (passphrase_clear_cache): Ditto.
5549 2002-01-19  Werner Koch  <wk@gnupg.org>
5551         * passphrase.c (agent_open): Add support for the new Assuan based
5552         gpg-agent.  New arg to return the used protocol version.
5553         (agent_get_passphrase): Implemented new protocol here.
5554         (passphrase_clear_cache): Ditto.
5555         (readline): New.
5556         
5557 2002-01-15  Timo Schulz  <ts@winpt.org>
5559         * encode.c (encode_crypt_files): Fail if --output is used.
5560         
5561         * g10.c: New command --decrypt-files.
5563         * decrypt.c (decrypt_messages): New.
5564         
5565 2002-01-09  David Shaw  <dshaw@jabberwocky.com>
5567         * g10.c, misc.c, gpgv.c: move idea_cipher_warn to misc.c so gpgv.c
5568         doesn't need a stub for it any longer.
5570         * g10.c (get_temp_dir), main.h: no longer used (it's in exec.c now)
5572         * g10.c (main), delkey.c (delete_keys), main.h : Allow
5573         --delete-key (now --delete-keys, though --delete-key still works,
5574         of course) to delete multiple keys in one go.  This applies to
5575         --delete-secret-key(s) and --delete-secret-and-public-key(s) as
5576         well.
5578 2002-01-09  Timo Schulz  <ts@winpt.org>
5580         * encode.c (encode_crypt_files): Now it behaves like verify_files.
5581         
5582         * g10.c (main): We don't need to check argc for encode_crypt_files
5583         any longer.
5585 2002-01-09  Timo Schulz  <ts@winpt.org>
5587         * exec.c: Include windows.h for dosish systems.
5589 2002-01-08  Timo Schulz  <ts@winpt.org>
5591         * g10.c (main): New description for --encrypt-files.
5593 2002-01-08  Werner Koch  <wk@gnupg.org>
5595         * g10.c (main): Must register the secring for encryption because
5596         it is needed to figure out the default recipient.  Reported by
5597         Roger Sondermann.
5599 2002-01-05  David Shaw  <dshaw@jabberwocky.com>
5601         * keyedit.c (menu_adduid): Require --expert before adding a photo
5602         ID to a v3 key, and before adding a second photo ID to any key.
5604         * keyedit.c (keyedit_menu): Don't allow adding photo IDs in
5605         rfc1991 or pgp2 mode.
5607         * getkey.c (merge_selfsigs_subkey): Permit v3 subkeys.  Believe it
5608         or not, this is allowed by rfc 2440, and both PGP 6 and PGP 7 work
5609         fine with them.
5611         * g10.c, options.h, keyedit.c, sign.c: Move the "ask for
5612         expiration" switch off of --expert, which was getting quite
5613         overloaded, and onto ask-sig-expire and ask-cert-expire.  Both
5614         default to off.
5616         * g10.c (main): Change the default compression algo to 1, to be
5617         more OpenPGP compliant (PGP also uses this, so it'll help with
5618         interoperability problems as well).
5620         * encode.c (encode_crypt): Handle compression algo 2, since the
5621         default is now 1.
5623         * build-packet.c (build_attribute_subpkt): Fix off-by-one error.
5625 2002-01-05  Werner Koch  <wk@gnupg.org>
5627         * g10.c (main): Do not register the secret keyrings for certain
5628         commands.
5630         * keydb.c (keydb_add_resource): Use access to test for keyring
5631         existence.  This avoids cached opened files which are bad under
5632         RISC OS.
5634 2002-01-04  David Shaw  <dshaw@jabberwocky.com>
5636         * sign.c (sign_file, sign_symencrypt_file): always use one-pass
5637         packets unless rfc1991 is enabled.  This allows a signature made
5638         with a v3 key to work in PGP 6 and 7.  Signatures made with v4
5639         keys are unchanged.
5641         * g10.c (main): Disallow non-detached signatures in PGP2 mode.
5642         Move the "you must use files and not pipes" PGP2 warning up so all
5643         the PGP2 stuff is together.
5645         * encode.c (encode_simple): Use the actual filesize instead of
5646         partial length packets in the internal literal packet from a
5647         symmetric message.  This breaks PGP5(?), but fixes PGP2, 6, and 7.
5648         It's a decent tradeoff.  Note there was only an issue with
5649         old-style RFC1991 symmetric messages.  2440-style messages in 6
5650         and 7 work with or without partial length packets.
5652 2002-01-03  David Shaw  <dshaw@jabberwocky.com>
5654         * g10.c (main): Removed --no-default-check-level option, as it is
5655         not consistent with other "default" options.  Plus, it is the same
5656         as saying --default-check-level 0.
5658         * exec.c (exec_read): Disallow caching tempfile from child
5659         process, as this keeps the file handle open and can cause unlink
5660         problems on some platforms.
5662         * keyserver.c (keyserver_search_prompt): Minor tweak - don't
5663         bother to transform keyids into textual form if they're just going
5664         to be transformed back to numbers.
5666 2002-01-03  Timo Schulz <ts@winpt.org>
5668         * g10.c: New command --encrypt-files.
5669     
5670         * verify.c (print_file_status): Removed the static because
5671         encode_crypt_files also uses this function.
5673         * main.h (print_files_status): New.
5674         (encode_crypt_files): New.
5676         * encode.c (encode_crypt_files): New.
5678 2002-01-02  Stefan Bellon  <sbellon@sbellon.de>
5680         * keyserver.c: Moved util.h include down in order to avoid
5681         redefinition problems on RISC OS.
5683         * keyring.c (keyring_lock): Only lock keyrings that are writable.
5685         * keyring.c (keyring_update_keyblock): Close unused iobuf.
5687         * hkp.c (parse_hkp_index, hkp_search) [__riscos__]: Changed
5688         unsigned char* to char* because of compiler issues.
5690         * exec.c (exec_finish) [__riscos__]: Invalidate close cache so
5691         that file can be unlinked.
5693 2001-12-28  David Shaw  <dshaw@jabberwocky.com>
5695         * g10.c (main): Use a different strlist to check extensions since
5696         they need to be handled seperately now.
5698         * misc.c,main.h (check_permissions): Properly handle permission
5699         and ownership checks on files in the lib directory
5700         (e.g. /usr/local/lib/gnupg), which are owned by root and are
5701         world-readable, and change all callers to specify extension or
5702         per-user file.
5704         * photoid.c (show_photo), keyserver.c (keyserver_spawn): Bug fix -
5705         don't call exec_finish if exec_write fails.
5707         * keyserver.c (keyserver_spawn): Look for OPTIONS from the
5708         keyserver helper - specifically, a "OUTOFBAND" option for the
5709         email keyserver.
5711         * mainproc.c (list_node), keylist.c (list_keyblock_colon),
5712         import.c (delete_inv_parts), export.c (do_export_stream): Use
5713         signature flags for exportability check rather than re-parsing the
5714         subpacket.
5716         * keyid.c, keydb.h (get_lsign_letter): No longer needed.
5718 2001-12-27  David Shaw  <dshaw@jabberwocky.com>
5720         * exec.c (exec_finish): Show errors when temp files cannot be
5721         deleted for whatever reason.
5723         * exec.c (exec_read): Don't rely on WEXITSTATUS being present.
5725         * exec.c (make_tempdir): Add temp file creator for win32.  Don't
5726         create an incoming temp file if the exec is write-only.
5728         * keyserver.c (keyserver_spawn): Clean up error handling, for when
5729         the spawn fails.
5731         * photoid.c (show_photo): Clean up error handling.
5733         * misc.c (check_permissions): Neaten.
5735 2001-12-25  David Shaw  <dshaw@jabberwocky.com>
5737         * mkdtemp.c (mkdtemp): Add copyleft info and tweak the 'X' counter
5738         to be a bit simpler.
5740         * keyserver.c, photoid.c: Remove unused headers left over from
5741         when the exec functions lived there.
5743 2001-12-23  Timo Schulz <ts@winpt.org>
5745         * misc.c (check_permissions): Do not use it for W32 systems.
5747         * tdbio.c (migrate_from_v2): Define ftruncate as chsize() for W32.
5749         * mkdtemp.c: W32 support.
5751         * photoid.c: Ditto.
5753         * exec.c: Ditto.
5755 2001-12-22  David Shaw  <dshaw@jabberwocky.com>
5757         * exec.c (make_tempdir): avoid compiler warning with const
5759         * mkdtemp.c (mkdtemp): catch the empty ("") string case in case
5760         someone repurposes mkdtemp at some point.
5762         * photoid.c (generate_photo_id, show_photo): some type changes
5763         from Stefan Bellon.
5765         * exec.c (make_tempdir): handle Win32 systems, suggested by Timo
5766         Schulz.
5768 2001-12-22  Werner Koch  <wk@gnupg.org>
5770         * encode.c (encode_simple, encode_crypt): i18n 2 strings.
5772 2001-12-22  Timo Schulz <ts@winpt.org>
5773         
5774         * encode.c (encode_simple, encode_crypt): Use is_file_compressed
5775         to avoid to compress compressed files.
5777 2001-12-22  Werner Koch  <wk@gnupg.org>
5779         * keyserver.c (keyserver_spawn): Removed some variables
5780         declaration due to shadowing warnings.
5782         * build-packet.c (build_attribute_subpkt): s/index/idx/ to avoid
5783         compiler warnig due to index(3).
5785         * getkey.c (get_ctx_handle): Use KEYDB_HANDLE as return value.
5786         * keylist.c (list_one): Made resname const.
5788         * keyedit.c (keyedit_menu): Allow "addphoto" only when --openpgp is
5789         not used.
5791         * options.skel: Changed one example photo viewer to qiv.
5793 2001-12-21  David Shaw  <dshaw@jabberwocky.com>
5795         * Makefile.am: add exec.c, exec.h, photoid.c, and photoid.h
5797         * build-packet.c (build_attribute_subpkt): new function to build
5798         the raw attribute subpacket.  Note that attribute subpackets have
5799         the same format as signature subpackets.
5801         * exec.c: new file with generic exec-a-program functionality.
5802         Used by both photo IDs and keyserver helpers.  This is pretty much
5803         the same code that used to be keyserver specific, with some
5804         changes to be usable generically.
5806         * free-packet.c (free_attributes (new)): function to free an
5807         attribute packet.
5808         
5809         * gpgv.c: added stub show_photo
5810         
5811         * keyedit.c (keyedit_menu, menu_adduid, menu_showphoto): can add a
5812         photo (calls generate_photo_id), or display a photo (calls
5813         show_photo) from the --edit menu.  New commands are "addphoto",
5814         and "delphoto" (same as "deluid").
5816         * keylist.c (list_keyblock_print): show photos during key list if
5817         --show-photos enabled.
5818         
5819         * keyserver.c (keyserver_spawn): use the generic exec_xxx
5820         functions to call keyserver helper.
5822         * g10.c, options.h: three new options - --{no-}show-photos, and
5823         --photo-viewer to give the command line to display a picture.
5825         * options.skel: instructions for the photo viewer
5826         
5827         * parse-packet.c (parse_user_id, setup_user_id (new)): common code
5828         for both user IDs and attribute IDs moved to setup_user_id.
5830         * parse-packet.c (make_attribute_uidname (new)): constructs a fake
5831         "name" for attribute packets (e.g. "[image of size ...]")
5833         * parse-packet.c (parse_attribute (replaces parse_photo_id),
5834         parse_attribute_subpkts): Builds an array of individual
5835         attributes.  Currently only handles attribute image / type jpeg
5836         subpackets.
5838         * sign.c (hash_uid): Fix bug in signing attribute (formerly
5839         photo_id) packets.
5841         * packet.h, and callers: globally change "photo_id" to "attribute"
5842         and add structures for attributes.  The packet format is generic
5843         attributes, even though the only attribute type thus far defined
5844         is jpeg.
5846 2001-12-21  David Shaw  <dshaw@jabberwocky.com>
5848         * parse-packet.c (can_handle_critical): Can handle critical
5849         revocation subpackets now.
5851         * trustdb.c (mark_usable_uid_certs): Disregard revocations for
5852         nonrevocable sigs.  Note that this allows a newer revocable
5853         signature to override an older nonrevocable signature.
5855         * sign.c (make_keysig_packet): add a duration field and change all
5856         callers.  This makes make_keysig_packet closer to
5857         write_signature_packets and removes some duplicated expiration
5858         code.
5860         * keyedit.c (keyedit_menu, menu_revsig, sign_uids,
5861         sign_mk_attrib): Add nrsign command, don't allow revoking a
5862         nonrevocable signature,
5864         * g10.c (main): Add --nrsign option to nonrevocably sign a key
5865         from the command line.
5867         * build-packet.c (build_sig_subpkt_from_sig): Comment to explain
5868         the use of CRITICAL.
5870 2001-12-21  Werner Koch  <wk@gnupg.org>
5872         * g10.c. options.h : New option --show-keyring
5873         * getkey.c (get_ctx_handle): New.
5874         * keylist.c (list_one): Implement option here.  By David Champion. 
5876 2001-12-20  David Shaw  <dshaw@jabberwocky.com>
5878         * keyserver.c (keyserver_spawn): Use mkdtemp() to make temp
5879         directory.
5881         * mkdtemp.c: replacement function for those platforms that don't
5882         have mkdtemp (make a temp directory securely).
5884 2001-12-19  David Shaw  <dshaw@jabberwocky.com>
5886         * misc.c (check_permissions): New function to stat() and ensure
5887         the permissions of GNUPGHOME and the files have safe permissions.
5889         * keydb.c (keydb_add_resource): Check keyring permissions.
5891         * tdbio.c (tdbio_set_dbname): Check permissions of trustdb.gpg
5893         * keyserver.c (keyserver_spawn): Disable keyserver schemes that
5894         involve running external programs if the options file has unsafe
5895         permissions or ownership.
5897         * g10.c, options.h: New option --no-permission-warning to disable
5898         the permission warning message(s).  This also permits use of the
5899         keyserver if it had been disabled (see above).  Also check the
5900         permissions/ownership of random_seed.
5901         
5902         * keyserver.c (keyserver_spawn): The new glibc prints a warning
5903         when using mktemp() (the code was already secure, but the warning
5904         was bound to cause confusion).  Use a different implementation
5905         based on get_random_bits() instead.  Also try a few times to get
5906         the temp dir before giving up.
5908 2001-12-19  Werner Koch  <wk@gnupg.org>
5910         * g10.c, passphrase.c [CYGWIN32]: Allow this as an alias for MINGW32.
5912 2001-12-18  David Shaw  <dshaw@jabberwocky.com>
5914         * g10.c (idea_cipher_warn): Add a flag to show the warning always
5915         or once per session and change all callers (show always except for
5916         the secret key protection and unknown cipher from an encrypted
5917         message errors).  Also make the strings translatable.
5919         * pubkey-enc.c (get_it): Add the IDEA cipher warning if the user
5920         tries to decrypt an IDEA encrypted message without the IDEA
5921         plugin.
5923         * keyserver.c (parse_keyserver_uri): More strict checking of the
5924         keyserver URI.  Specifically, fail if the ":port" section is
5925         anything except a number between 1 and 65535.
5927 2001-12-17  David Shaw  <dshaw@jabberwocky.com>
5929         * keyserver.c (print_keyinfo): No need to check for
5930         control/illegal characters, as utf8_to_native does this for us.
5932         * mainproc.c (proc_encrypted): Use generic IDEA warning.
5934         * gpgv.c: add stub for idea_cipher_warn
5936         * g10.c, hkp.c, keyserver.c: Fix capitalization and plural issues.
5938         * encode.c (encode_crypt), sign.c (sign_file, clearsign_file):
5939         disable pgp2 mode after the message is no longer pgp2 compatible.
5941         * g10.c (main): Tweak the PGP2.x IDEA warning to use the generic
5942         warning, and not merely fail if the IDEA plugin isn't there.
5944         * g10.c (main, idea_cipher_warn), keygen.c (set_one_pref),
5945         seckey-cert.c (do_check): Add a generic IDEA warning for when the
5946         IDEA plugin is not present.  This pops up when the user uses
5947         "--cipher-algo idea", when setpref is used to set a "S1"
5948         preference, and when a secret key protected with IDEA is used.
5950 2001-12-15  Werner Koch  <wk@gnupg.org>
5952         * keyserver.c (keyserver_spawn): Assert that we have dropped privs.
5954 2001-12-13  Werner Koch  <wk@gnupg.org>
5956         * pubkey-enc.c (get_session_key): Check that the public key
5957         algorithm is indeed usable for en/decryption.  This avoid a
5958         strange error message from pubkey_decrypt if for some reasons a
5959         bad algorithm indentifier is passed.
5961 2001-12-12  David Shaw  <dshaw@jabberwocky.com>
5963         * Fixed some types for portability.  Noted by Stefan Bellon.
5965 2001-12-11  Werner Koch  <wk@gnupg.org>
5967         * hkp.c (hkp_export): Do not print possible control characters
5968         from a keyserver response.
5969         (parse_hkp_index): Made uid an unsigned char* because it is passed to
5970         isspace().
5971         (hkp_search): Ditto for the char* vars.
5973         * g10.c (main): Print the IDEA warning also for -c and -se.
5974         
5975         * g10.c (get_temp_dir): Assert that we have dropped privs
5977         * encode.c (encode_crypt): Include the first key into the --pgp2
5978         check.
5980 2001-12-07  David Shaw  <dshaw@jabberwocky.com>
5982         * g10.c, options.h: New option --pgp2.  This is identical to
5983         "--rfc1991 --cipher-algo idea --compress-algo 1 --digest-algo md5
5984         --force_v3_sigs" with the addition of an warning to advise the
5985         user not to use a pipe (which would break pgp2 compatibility).
5987         * encode.c (encode_crypt): warn if the user tries to encrypt to
5988         any key that is not RSA and <= 2048 bits when the --pgp2 option is
5989         used.
5991         * sign.c (sign_file, clearsign_file): When using --pgp2, make a v3
5992         sig, and warn if the signature is made with a non-v3 key.
5994 2001-12-05  David Shaw  <dshaw@jabberwocky.com>
5996         * sign.c (sign_file, clearsign_file, sign_symencrypt_file): Prompt
5997         for sig expiration if --expert is set and --force-v3-sigs is not
5998         set (v3 sigs cannot expire).
6000         * mainproc.c (check_sig_and_print): After checking a sig, print
6001         expiration status.  This causes a error return if the sig is
6002         expired.
6004         * build-packet.c (build_sig_subpkt_from_sig): Include a critical
6005         sig expiration subpacket if the sig is to expire.
6007         * keyedit.c (sign_uids): Do not sign an expired key unless
6008         --expert is set, in which case prompt.  Also, offer to expire a
6009         signature when the key the user is signing expires.
6011         * keygen.c (ask_expire_interval): Add a value to determine whether
6012         to prompt for a key or sig expiration and change all callers.
6014         * keyid.c: New functions: expirestr_from_sig and
6015         colon_expirestr_from_sig.
6017         * keylist.c (list_keyblock_colon): Show sig expiration date in the
6018         --with-colons listing.
6020         * sign.c (make_keysig_packet, write_signature_packets): Pass in an
6021         optional timestamp for the signature packet, and change all
6022         callers.
6024         * keyedit.c (sign_mk_attrib): Include a critical expiration
6025         subpacket in the signature if an expiration date is given.
6027 2001-12-04  David Shaw  <dshaw@jabberwocky.com>
6029         * keyedit.c (sign_uids): If the user tries to sign a
6030         locally-signed key, allow the cert to be promoted to a full
6031         exportable signature.  This essentially deletes the old
6032         non-exportable sig, and replaces it with a new exportable one.
6034 2001-12-04  David Shaw  <dshaw@jabberwocky.com>
6036         * keyedit.c (keyedit_menu): Do not allow signing a revoked key
6037         unless --expert is set, and ask even then.
6039         * keyedit.c (sign_uids): Do not allow signing a revoked UID unless
6040         --expert is set, and ask even then.
6042         * g10.c, options.h : New option --expert
6044 2001-11-16  David Shaw  <dshaw@jabberwocky.com>
6046         * Allow the user to select no compression via "--compress-algo 0"
6047         on the command line.
6049         * keyedit.c (show_prefs): Show compression preferences in the
6050         long-form "showpref" style.
6052         * keygen.c (set_one_pref): Permit setting a no-compression ("Z0")
6053         preference.
6055         * getkey.c (fixup_uidnode): Fix compression preference corruption
6056         bug.
6058 2001-12-02  David Shaw  <dshaw@jabberwocky.com>
6060         * g10.c: Add advisory --for-your-eyes-only option as per section
6061         5.9 of 2440.
6063 2001-12-05  David Shaw  <dshaw@jabberwocky.com>
6065         * Force a V4 sig if the user has a notation or policy URL set.
6067 2001-12-04  David Shaw  <dshaw@jabberwocky.com>
6069         * g10.c: Add options --keyserver-options, --temp-directory, and
6070         auto-key-retrieve (the opposite of no-auto-key-retrieve).
6072         * hkp.c (hkp_search): New function to handle searching a HKP
6073         keyserver for a key
6075         * hkp.c (hkp_ask_import, hkp_export): Pretty large changes to make
6076         them communicate via the generic functions in keyserver.c
6078         * keyserver.c: new file with generic keyserver routines for
6079         getting keys from a keyserver, sending keys to a keyserver, and
6080         searching for keys on a keyserver.  Calls the internal HKP stuff
6081         in hkp.c for HKP keyserver functions.  Other calls are handled by
6082         an external program which is spawned and written to and read from
6083         via pipes.  Platforms that don't have pipes use temp files.
6085 2001-11-20  David Shaw  <dshaw@jabberwocky.com>
6087         * options.h, g10.c: New options show-notation, no-show-notation,
6088         default-check-level, no-default-check-level, show-policy-url,
6089         no-show-policy-url.
6091         * packet.h, sign.c (make_keysig_packet), parse-packet.c
6092         (parse_signature), free-packet.c (free_seckey_enc): Fill in
6093         structures for notation, policy, sig class, exportability, etc.
6095         * keyedit.c, keylist.c (print_and_check_one_sig,
6096         list_keyblock_print): Show flags in signature display for cert
6097         details (class, local, notation, policy, revocable).  If selected,
6098         show the notation and policy url.
6100         * keyedit.c (sign_uids): Prompt for and use different key sig
6101         classes.
6103         * helptext.c (helptexts): Add help text to explain different
6104         key signature classes
6106 2001-11-26  David Shaw  <dshaw@jabberwocky.com>
6108         * trustdb.c (mark_usable_uid_certs): Fix segfault from bad
6109         initialization and fix reversed key signature expiration check.
6111 2001-11-09  Werner Koch  <wk@gnupg.org>
6113         * export.c (do_export_stream): Put all given names into a search
6114         description and change the loop so that all matching names are
6115         returned.
6117 2001-11-08  Werner Koch  <wk@gnupg.org>
6119         * pubkey-enc.c (get_it): To reduce the number of questions on the
6120         MLs print the the name of cipher algorithm 1 with the error message.
6122         * mainproc.c: Changed the way old rfc1991 encryption cipher is
6123         selected. Based on a patch by W Lewis.
6125         * pkclist.c (do_edit_ownertrust): Allow to skip over keys, the non
6126         working "show info" is now assigned to "i" 
6127         * trustdb.c (ask_ownertrust, validate_keys): Implement a real quit
6128         here.  Both are by David Shaw.
6129         
6130         * trustdb.c (validate_keys): Make sure next_exipire is initialized.
6132         * sign.c (make_keysig_packet): Use SHA-1 with v4 RSA keys.
6134         * g10.c, options.h : New option --[no-]froce-v4-certs.
6135         * sign.c (make_keysig_packet): Create v4 sigs on v4 keys even with
6136         a v3 key.  Use that new option.  By David Shaw
6138         * revoke.c (ask_revocation_reason): Allow to select "no reason".
6139         By David Shaw.
6141         * keyid.c (fingerprint_from_sk): Calculation of an v3 fpr was
6142         plain wrong - nearly the same code in fingerprint_from_pk is correct.
6144         * build-packet.c (do_secret_key): Added a few comments to the code.
6146 2001-11-07  Werner Koch  <wk@gnupg.org>
6148         * g10.c (main): Print a warning when -r is used w/o encryption.
6149         Suggested by Pascal Scheffers.
6151 2001-10-23  Werner Koch  <wk@gnupg.org>
6153         * keyedit.c (keyedit_menu): Changed helptext for showpref
6154         command.  Suggested by Reinhard Wobst.
6156         * keyring.c (keyring_search): When marking the offtbl ready, take
6157         into account that we may have more than one keyring.
6159 2001-10-22  Werner Koch  <wk@gnupg.org>
6161         * Makefile.am: Do not use OMIT_DEPENDENCIES
6163         * build-packet.c (build_sig_subpkt): Default is now to put all
6164         types of subpackets into the hashed area and only list those which
6165         should go into the unhashed area.
6167 2001-10-18  Werner Koch  <wk@gnupg.org>
6169         * keydb.c (keydb_add_resource): Rearranged the way we keep track
6170         of the resource. There will now be an entry for each keyring here
6171         and not in keyring.c itself.  Store a token to allow creation of a
6172         keyring handle.  Changed all functions to utilize this new design.
6173         (keydb_locate_writable): Make a real implementation.
6174         * keyring.c (next_kr): Removed and changed all callers to set the
6175         resource directly from the one given with the handle.
6176         (keyring_is_writable): New. 
6177         (keyring_rebuild_cache): Add an arg to pass the token from keydb.
6179 2001-10-17  Werner Koch  <wk@gnupg.org>
6181         * keyring.c (keyring_search): Enabled word search mode but print a
6182         warning that it is buggy.
6183         
6184 2001-10-11  Werner Koch  <wk@gnupg.org>
6186         * hkp.c (hkp_ask_import): No more need to set the port number for
6187         the x-hkp scheme. 
6188         (hkp_export): Ditto.
6190 2001-10-06  Stefan Bellon  <sbellon@sbellon.de>
6192         * passphrase.c [__riscos__]: Disabled agent specific stuff.
6193         * g10.c: New option --no-force-v3-sigs.
6195 2001-10-04  Werner Koch  <wk@gnupg.org>
6197         * export.c (do_export_stream): Do not push the compress filter
6198         here because the context would run out of scope due to the
6199         iobuf_close done by the caller.
6200         (do_export): Do it here instead. 
6202 2001-09-28  Werner Koch  <wk@gnupg.org>
6204         * keyedit.c (sign_uids): Always use the primary key to sign keys.
6205         * getkey.c (finish_lookup): Hack to return only the primary key if
6206         a certification key has been requested.
6208         * trustdb.c (cmp_kid_for_make_key_array): Renamed to
6209         (validate_one_keyblock): this and changed arg for direct calling.
6210         (make_key_array): Renamed to
6211         (validate_one_keyblock): this and changed args for direct calling.
6212         (mark_usable_uid_certs, validate_one_keyblock)
6213         (validate_key_list): Add next_expire arg to keep track of
6214         expiration times.  
6215         (validate_keys): Ditto for UTKs and write the stamp.
6217         * tdbio.c (migrate_from_v2): Check return code of tbdio_sync.
6219         * tdbdump.c (import_ownertrust): Do a tdbio_sync().
6221         * keyring.c: Made the offtbl an global object.
6223 2001-09-27  Werner Koch  <wk@gnupg.org>
6225         * pkclist.c (do_edit_ownertrust): Allow settin of ultimate trust.
6227         * trustdb.c (mark_keyblock_seen): New.
6228         (make_key_array): Use it to mark the subkeys too.
6229         (validate_keys): Store validity for ultimatly trusted keys.
6231 2001-09-26  Werner Koch  <wk@gnupg.org>
6233         * pkclist.c (check_signatures_trust, do_we_trust): Removed the
6234         invocation of add_ownertrust. Minor changes to the wording.
6235         (add_ownertrust, add_ownertrust_cb): Removed.
6237         * trustdb.c (get_validity): Allow to lookup the validity using a
6238         subkey.
6240         * trustdb.c (new_key_hash_table): Increased the table size to 1024
6241         and changed the masks accordingly.
6242         (validate): Changed stats printing.
6243         (mark_usable_uid_certs): New.
6244         (cmp_kid_for_make_key_array): Does now check the signatures and
6245         figures out a usable one.
6247 2001-09-25  Werner Koch  <wk@gnupg.org>
6249         * keyring.c (new_offset_item,release_offset_items)
6250         (new_offset_hash_table, lookup_offset_hash_table)
6251         (update_offset_hash_table, update_offset_hash_table_from_kb): New.
6252         (keyring_search): Use a offset table to optimize search for
6253         unknown keys.
6254         (keyring_update_keyblock, keyring_insert_keyblock): Insert new
6255         offsets.
6256         * getkey.c (MAX_UNK_CACHE_ENTRIES): Removed the unknown keys
6257         caching code.
6259         * g10.c, options.h, import.c: Removed the entire
6260         allow-secret-key-import stuff because the validity is now
6261         controlled by other means.
6263         * g10.c: New command --rebuild-keydb-caches.
6264         * keydb.c (keydb_rebuild_caches): New.
6265         * keyring.c (do_copy): Moved some code to
6266         (create_tmp_file, rename_tmp_file, write_keyblock): new functions.
6267         (keyring_rebuild_cache): New.
6269         * packet.h (PKT_ring_trust): Add sigcache field.
6270         * parse-packet.c (parse_trust): Parse sigcache.
6271         * keyring.c (do_copy): Always insert a sigcache packet.
6272         (keyring_get_keyblock): Copy the sigcache packet to the signature.
6273         * sig-check.c (cache_sig_result): Renamed from
6274         cache_selfsig_result. Changed implementation to use the flag bits
6275         and changed all callers.
6276         (mdc_kludge_check): Removed this unused code.
6277         (do_check): Do not set the sig flags here.
6279         * import.c (read_block): Make sure that ring_trust packets are
6280         never imported.
6281         * export.c (do_export_stream): and never export them.
6283         * trustdb.c (make_key_array): Skip revoked and expired keys.
6285 2001-09-24  Werner Koch  <wk@gnupg.org>
6287         * g10.c, options.h: New option --no-auto-check-trustdb.
6289         * keygen.c (do_generate_keypair): Set newly created keys to
6290         ultimately trusted.
6292         * tdbio.h, tdbio.c: Removed all support for records DIR, KEY, UID,
6293         PREF, SIG, SDIR and CACH. Changed migration function to work
6294         direct on the file.
6295         (tdbio_read_nextcheck): New.
6296         (tdbio_write_nextcheck): New. 
6298 2001-09-21  Werner Koch  <wk@gnupg.org>
6300         Revamped the entire key validation system.
6301         * trustdb.c: Complete rewrite. No more validation on demand,
6302         removed some functions, adjusted to all callers to use the new 
6303         and much simpler interface. Does not use the LID anymore.
6304         * tdbio.c, tdbio.h: Add new record types trust and valid. Wrote a
6305         migration function to convert to the new trustdb layout.
6306         * getkey.c (classify_user_id2): Do not allow the use of the "#"
6307         prefix. 
6308         * keydb.h: Removed the TDBIDX mode add a skipfnc to the
6309         descriptor.
6310         * keyring.c (keyring_search): Implemented skipfnc.
6312         * passphrase.c (agent_open): Add missing bracket.  Include windows.h.
6314 2001-09-19  Werner Koch  <wk@gnupg.org>
6316         * keylist.c (print_fingerprint): Renamed from fingerprint, made
6317         global available. Added new arg to control the print style.
6318         * mainproc.c (print_fingerprint): Removed. 
6319         * pkclist.c (print_fpr, fpr_info): Removed and changed callers to
6320         use print_fingerprint.
6321         * keyedit.c (show_fingerprint): Ditto.
6323         * passphrase.c (writen, readn)
6324         (agent_open, agent_close)
6325         (agent_get_passphrase)
6326         (passphrase_clear_cache): Support for W32.  Contributed by Timo.
6328         * import.c (import_one): Release keydb handles at 2 more places.
6330         * keyring.c (keyring_release): Close the iobuf.
6331         (keyring_get_keyblock): Init ret_kb to NULL and store error contidion.
6333         * import.c (import_new_stats_handle): New. 
6334         (import_release_stats_handle): New.
6335         (import_print_stats): Renamed from static fnc print_stats.
6336         (import_keys, import_keys_stream): Add an optional status handle
6337         arg and changed all callers.
6338         * hkp.c (hkp_ask_import): Add an stats_handle arg and changed all
6339         callers.
6341         * mainproc.c (print_pkenc_list): Use print_utf8_string2().
6343 2001-09-18  Werner Koch  <wk@gnupg.org>
6345         * g10.c: New command --refresh-keys.
6346         * hkp.c (hkp_refresh_keys): New. Contributed by Timo Schulz.
6348         * parse-packet.c (parse): Stop on impossible packet lengths.
6350 2001-09-17  Werner Koch  <wk@gnupg.org>
6352         * mainproc.c (print_notation_data): Wrap notation data status lines
6353         after 50 chars.
6354         
6355         * mainproc.c (proc_pubkey_enc): Make option try-all-secrets work.
6356         By disastry@saiknes.lv.
6358 2001-09-14  Werner Koch  <wk@gnupg.org>
6360         * parse-packet.c (dump_sig_subpkt): List key server preferences
6361         and show the revocable flag correctly. Contributed by David Shaw.
6363 2001-09-09  Werner Koch  <wk@gnupg.org>
6365         * keyedit.c (keyedit_menu): No need to define another p.
6367         * keylist.c (print_capabilities): s/used/use/ so that it
6368         does not shadow a global.
6369         * sign.c (sign_file): Renamed arg encrypt to encryptflag
6370         * keygen.c: Replaced all "usage" by "use".
6371         * misc.c (openpgp_pk_algo_usage): Ditto.
6373         * pubkey-enc.c (get_it): Renamed arg k to enc so that the later
6374         defined k does not shadow it.
6376         * parse-packet.c (parse_gpg_control): No need to define another i.
6378         * getkey.c (get_pubkey_byfprint): Must use the enum values and not
6379         the fprint_len.
6380         * keyring.c (keyring_search): Removed a non-sense break.  Both
6381         bugs pointed out by Stefan.
6383 2001-09-07  Werner Koch  <wk@gnupg.org>
6385         * status.c, status.h: Added NO_RECP and ALREADY_SIGNED.
6386         * pkclist.c (build_pk_list): Issue NO_RECP.
6387         * keyedit.c (sign_uids): Added experimental ALREADY_SIGNED
6389         * hkp.c (hkp_import): Use log_error. Bug reported by Neal H
6390         Walfield. 
6392         * getkey.c (classify_user_id2): Change args to take the desc union
6393         direct.  It was a stupid idea to pass the individual fields of an
6394         union to this function. Changed all callers.
6395         (classify_user_id): Ditto and allow to pass NULL as the description.
6397 2001-09-06  Werner Koch  <wk@gnupg.org>
6399         * getkey.c (fixup_uidnode): Features flag is now a bit vector.
6400         * keygen.c (add_feature_mdc): Ditto.
6402         Revamped the entire key I/O code to be prepared for other ways of
6403         key storages and to get rid of the existing shit.  GDBM support has
6404         gone.
6405         * keydb.c: New
6406         * keyring.c, keyring.h: New.
6407         * ringedit.c: Removed.  Moved some stuff to keyring.c
6408         * getkey.c: Changed everything related to the key retrieving
6409         functions which are now using the keydb_ functions.  
6410         (prepare_search, word_match_chars, word_match)
6411         (prepare_word_match, compare_name): Moved to keyring.c
6412         (get_pubkey_byname): Removed ctx arg and add ret_kdbhd
6413         arg.  Changed all callers.
6414         (key_byname): Use get_pubkey_end to release the context and take
6415         new ret_kbdhd arg.  Changed all callers.
6416         (classify_user_id2): Fill the 16 byte fingerprint up with 4 null
6417         bytes not with zero bytes of value 4, tsss.
6418         * import.c (import_one): Updated to use the new keydb interface.
6419         (import_secret_one): Ditto.
6420         (import_revoke_cert): Ditto.
6421         * delkey.c (do_delete_key): Ditto. 
6422         * keyedit.c (keyedit_menu): Ditto.
6423         (get_keyblock_byname): Removed.
6424         * revoke.c (gen_revoke): Ditto. 
6425         * export.c (do_export_stream): Ditto.
6426         * trustdb.c (update_trustdb): Ditto.
6427         * g10.c, gpgv.c (main): Renamed add_keyblock_resource to
6428         keydb_add_resource. 
6429         * Makefile.am:  Added and removed files.
6431         * keydb.h: Moved KBNODE typedef and MAX_FINGERPRINT_LEN to
6432         * global.h: this new header.
6433         
6434 2001-09-03  Werner Koch  <wk@gnupg.org>
6436         * passphrase.c (agent_get_passphrase): Changed nread to size_t.
6437         (passphrase_clear_cache): Ditto.
6439         * keyid.c (mk_datestr): Avoid trigraphs.
6440         (fingerprint_from_pk): Cache the keyid in the pk.
6442         * options.h: Add opt.with_fingerprint so that we know whether the
6443         corresponding options was used.
6444         * g10.c (main): Set it here.
6445         * pkclist.c (check_signatures_trust): Always print fingerprint
6446         when this option is used.  Mixed a minor memory leak.
6448         * status.c, status.h: New status INV_RECP.
6449         * pkclist.c (build_pk_list): Issue this status.
6451 2001-08-31  Werner Koch  <wk@gnupg.org>
6453         * parse-packet.c (parse_key,parse_pubkeyenc)
6454         (parse_signature): Return error on reading bad MPIs.
6455         
6456         * mainproc.c (check_sig_and_print): Always print the user ID even
6457         if it is not bound by a signature.  Use the primary UID in the
6458         status messages and encode them in UTF-8
6459         * status.c (write_status_text_and_buffer): New.
6461 2001-08-30  Werner Koch  <wk@gnupg.org>
6463         * packet.h (sigsubpkttype_t): Add SIGSUBPKT_FEATURES.
6464         (PKT_public_key, PKT_user_id): Add a flag for it.
6465         * parse-packet.c, build-packet.c: Add support for them.
6466         * getkey.c (fixup_uidnode, merge_selfsigs): Set the MDC flags.
6467         * keygen.c (add_feature_mdc): New.
6468         (keygen_upd_std_prefs): Always set the MDC feature.
6469         * keyedit.c (show_prefs): List the MDC flag
6470         * pkclist.c (select_mdc_from_pklist): New.
6471         * encode.c (encode_crypt, encrypt_filter): Test whether MDC
6472         should be used.
6473         * cipher.c (write_header): Set MDC use depending on the above test.
6474         Print more status info.
6476         * delkey.c (do_delete_key): Kludge to delete a secret key with no
6477         public key available.
6479         * ringedit.c (find_secret_keyblock_direct): New.
6480         * getkey.c (seckey_available): Simplified.
6482         * ringedit.c (cmp_seckey): Now compares the secret key against the
6483         public key while ignoring all secret parts.
6484         (keyring_search): Use a public key packet as arg.  Allow to search
6485         for subnkeys
6486         (search): Likewise. Changed all callers.
6487         (find_secret_keyblock_bypk): New.
6488         (find_secret_keyblock_byname): First locate the pubkey and then
6489         find the correponding secret key.
6490         * parse-packet.c (parse): Renamed pkttype arg to onlykeypkts and
6491         changed code accordingly.  Changed all callers.
6492         (search_packet): Removed pkttype arg.
6493         * keyedit.c (keyedit_menu): First locate the public key and then
6494         try to locate a secret key.
6496         * ringedit.c (locate_keyblock_by_fpr): Removed.
6497         (locate_keyblock_by_keyid): Removed.
6498         (find_keyblock_bysk): Removed.
6500         * sig-check.c (check_key_signature2): Print the keyid along with
6501         the wrong sig class errors.
6503 2001-08-24  Werner Koch  <wk@gnupg.org>
6505         * sign.c (sign_file): Stripped the disabled comment packet code.
6506         (sign_file, sign_symencrypt_file): Moved common code to ..
6507         (write_onepass_sig_packets): .. this new function.
6508         (sign_file, clearsign_file, sign_symencrypt_file): Moved common
6509         code to 
6510         (write_signature_packets): this new function.
6511         (write_signature_packets, make_keysig_packet)
6512         (update_keysig_packet): Moved common code to 
6513         (hash_uid, hash_sigclass_to_magic): these new functions
6514         (sign_file, sign_symencrypt_file): Moved common code to 
6515         (write_plaintext_packet):  this new function.
6517 2001-08-21  Stefan Bellon  <sbellon@sbellon.de>
6519         * trustdb.c (query_trust_info): Changed trustlevel to signed int.
6520         * g10.c [__riscos__]: Fixed handling of --use-agent --lock-multiple.
6522 2001-08-20  Werner Koch  <wk@gnupg.org>
6524         * encr-data.c (decrypt_data): Keep track on whether we already
6525         printed information about the used algorithm.
6526         * mainproc.c (proc_encrypted): Removed the non-working IDEA hack
6527         and print a message about the assumed algorithm.
6528         * passphrase.c (passphrase_to_dek): Use the same algorithm as above.
6529         (proc_symkey_enc): Print the algorithm, so that the user knows it
6530         before entering the passphrase.
6531         (proc_pubkey_enc, proc_pubkey_enc): Zero the DEK out.
6532         * encode.c (encode_crypt, encrypt_filter): Ditto.
6534         * g10.c: Allow for --sign --symmetric.
6535         * sign.c (sign_and_symencrypt): New.
6537         Applied patches from Stefan Bellon <sbellon@sbellon.de> to support
6538         RISC OS.  Nearly all of these patches are identified by the
6539         __riscos__ macro.
6540         * compress.c: Added a couple of casts.
6541         * g10.c [__riscos__]: Some patches and new options foo-file similar
6542         to all foo-fd options.
6543         * gpgv.c, openfile.c, ringedit.c, tdbio.c: Minor fixes.  Mainly
6544         replaced hardcoded path separators with EXTSEP_S like macros.  
6545         * passprase.c [__riscos__]: Disabled agent stuff
6546         * trustdb.c (check_trust): Changed r_trustlevel to signed int to
6547         avoid mismatch problems in pkclist.c
6548         * pkclist.c (add_ownertrust): Ditto.
6549         * plaintext.c (handle_plaintext) [__riscos__]: Print a note when
6550         file can't be created.
6551         * options.h [__riscos__]: Use an extern unless included from the
6552         main module.
6553         * signal.c (got_fatal_signal) [__riscos__]: Close all files.
6554         
6555 2001-08-14  Werner Koch  <wk@gnupg.org>
6557         * keygen.c (ask_algo): New arg r_usage.  Allow for RSA keys.
6558         (gen_rsa): Enabled the code.
6559         (do_create): Enabled RSA branch.
6560         (parse_parameter_usage): New.
6561         (proc_parameter_file): Handle usage parameter.
6562         (read_parameter_file): Ditto.
6563         (generate_keypair): Ditto.
6564         (generate_subkeypair): Ditto.
6565         (do_generate_keypair): Ditto.
6566         (do_add_key_flags): New.
6567         (keygen_add_std_prefs): Use the new function.
6568         (keygen_add_key_flags_and_expire): New.
6569         (write_selfsig, write_keybinding): Handle new usage arg.
6570         * build-packet.c (build_sig_subpkt): Make sure that key flags go
6571         into the hashed area.
6572         
6573         * keygen.c (write_uid): Initialize the reference cunter.
6575         * keyedit.c (keyedit_menu): No more need to update the trustdb for
6576         preferences.  Added calls to merge keblock.
6578         * kbnode.c (dump_kbnode): Print some more flags.
6580 2001-08-10  Werner Koch  <wk@gnupg.org>
6582         Revamped the preference handling.
6584         * packet.h (prefitem_t, preftype_t): New.
6585         (PKT_public_key): Added a uid field.
6586         (PKT_user_id): Added field to store preferences and a reference
6587         counter.
6588         * parse-packet.c (parse_user_id,parse_photo_id): Initialize them
6589         * free-packet.c (free_user_id): Free them.
6590         (copy_user_id): Removed.
6591         (scopy_user_id): New. 
6592         (cmp_user_ids): Optimized for identical pointers.
6593         (release_public_key_parts): Release the uid.
6594         (copy_public_key_with_new_namehash): Removed.
6595         (copy_prefs): New.
6596         * keyedit.c (menu_adduid): Use the new shallow copy user id.
6597         (show_prefs): Adjusted implementation.
6598         (keyedit_menu): No more need to update the trustdb after changing
6599         preferences.
6600         * getkey.c (fixup_uidnode): Store preferences.
6601         (find_by_name): Return a user id packet and remove namehash stuff.
6602         (lookup): Removed the unused namehash stuff.
6603         (finish_lookup): Added foundu arg.
6604         (pk_from_block): Removed the namehash arg and changed all callers.
6605         (merge_selfsigs): Copy prefs to all keys.
6606         * trustdb.c (get_pref_data): Removed.
6607         (is_algo_in_prefs): Removed.
6608         (make_pref_record): Deleted and removed all class.
6609         * pkclist.c (select_algo_from_prefs): Adjusted for the new
6610         preference implementation.
6611         * pubkey-enc.c (is_algo_in_prefs): New.
6612         (get_it): Use that new function. 
6614 2001-08-09  Werner Koch  <wk@gnupg.org>
6616         * build-packet.c (build_sig_subpkt): Fixed calculation of
6617         newarea->size.
6619         * g10.c (main): New option "--preference-list"
6620         * keyedit.c (keyedit_menu): New commands "setpref" and "updpref".
6621         (menu_set_preferences): New.
6622         * keygen.c (keygen_set_std_prefs): New.
6623         (set_one_pref): New.
6624         (check_zip_algo): New.
6625         (keygen_get_std_prefs): New.
6626         (keygen_upd_std_prefs): New
6627         (keygen_add_std_prefs): Move the pref setting code into the above fnc.
6628         * build-packet.c (build_sig_subpkt): Updated the list of allowed
6629         to update subpackets.
6631 2001-08-08  Werner Koch  <wk@gnupg.org>
6633         * packet.h (subpktarea_t): New.
6634         (PKT_signature): Use that type for hashed_data and unhashed_data and
6635         removed the _data prefix from those fields.  Changed all users.
6636         * parse-packet.c (parse_signature): Changed allocation for that.
6637         (parse_sig_subpkt): Changed declaration
6638         (enum_sig_subpkt): Ditto and changed implementation accordingly.
6639         * free-packet.c (cp_subpktarea): Renamed from cp_data_block and
6640         adjusted implementation. Changed caller.
6641         * sig-check.c (mdc_kludge_check): Adjusted the hashing.
6642         (do_check): Ditto.
6643         * sign.c (sign_file, clearsign_file, make_keysig_packet,
6644         update_keysig_packet): Ditto.
6645         * build-packet.c (build_sig_subpkt): Partial rewrite.
6646         (find_subpkt): Adjusted and made static.
6647         (delete_sig_subpkt): Adjusted.
6648         (do_signature): Ditto.
6650         * keygen.c (ask_keysize): Do not print the notes about suggested
6651         key sizes if just a DSA key is generated.
6653         * trustdb.c (add_ultimate_key): s/log_error/log_info/ for
6654         duplicated inserted trusted keys.
6656 2001-08-07  Werner Koch  <wk@gnupg.org>
6658         * sign.c (sleep): Redefine for W32.
6660         * g10.c, options.h: Set new flag opt.no_homedir_creation when
6661         --no-options is given.
6662         * openfile.c (try_make_homedir): Don't create the homedir in that case.
6664 2001-08-03  Werner Koch  <wk@gnupg.org>
6666         * armor.c (armor_filter): Removed the default comment string
6667         because it could get us in trouble due to translations using non
6668         ascii characters.
6670 2001-08-01  Werner Koch  <wk@gnupg.org>
6672         * keylist.c (list_keyblock_print): Do not list revoked UIDs unless
6673         in verbose mode and we do no signature listing.
6675         * getkey.c (finish_lookup): Skip subkeys which are not yet valid.
6676         * g10.c, options.h: New option --ignore-valid-from.
6678         * sign.c (make_keysig_packet): Added new sigversion argument to
6679         allow the caller to force generation of required signature
6680         version. Changed all callers. Suggested by Thomas Roessler.
6682         * keyedit.c (sign_uids): Force v4 signature generation for local
6683         sigs.  Removed the check for local signature and pre-v4 keys.
6685 2001-07-27  Werner Koch  <wk@gnupg.org>
6687         * keyedit.c (sign_uids): Check that we are not trying to to a
6688         lsign with a pre-v4 key.  Bug noticed by Thomas Roessler.
6690 2001-07-26  Werner Koch  <wk@gnupg.org>
6692         * parse-packet.c (parse_photo_id): Reset all variables.
6693         * getkey.c (merge_selfsigs_main): Removed checks on PHOTO_ID
6694         because this is handled identically to a user ID.
6696 2001-07-06  Werner Koch  <wk@gnupg.org>
6698         * cipher.c (write_header): Don't use MDC with --rfc1991.  Suggested
6699         by disastry@saiknes.lv.
6701 2001-07-05  Werner Koch  <wk@gnupg.org>
6703         * g10.c, options.h: New option --preserve-permissions.
6704         * ringedit.c (add_keyblock_resource): Use it here
6705         (keyring_copy): and here.
6707         * trustdb.c (verify_own_keys): Be more silent on --quiet.
6708         Suggested by Thomas Roessler.
6709         * sig-check.c (check_key_signature2): Ditto.
6710         * mainproc.c (proc_encrypted, proc_tree): Ditto
6711         * getkey.c (lookup): Ditto.
6713 2001-07-04  Werner Koch  <wk@gnupg.org>
6715         * ringedit.c (add_keyblock_resource): Restore filename in case of error.
6717 2001-06-25  Werner Koch  <wk@gnupg.org>
6719         * kbnode.c (dump_kbnode): Print the signature timestamp.
6721         * keyedit.c (keyedit_menu): New menu point "primary".
6722         (change_primary_uid_cb): New.
6723         (menu_set_primary_uid): New.
6724         * sign.c (update_keysig_packet): New.
6725         * build-packet.c (build_sig_subpkt): Put the primary UID flag into
6726         the hashed area. Allow update of some more packets.
6728 2001-06-15  Werner Koch  <wk@gnupg.org>
6730         * getkey.c (merge_selfsigs): Exit gracefully when a secret key is
6731         encountered.  May happen if a secret key is in public keyring.
6732         Reported by Francesco Potorti.
6733         
6734 2001-06-12  Werner Koch  <wk@gnupg.org>
6736         * getkey.c (compare_name): Use ascii_memistr(), ascii_memcasecmp()
6737         * keyedit.c (keyedit_menu): Use ascii_strcasecmp().
6738         * armor.c (radix64_read): Use ascii_toupper().  
6739         * ringedit.c (do_bm_search): Ditto.
6740         * keygen.c (read_parameter_file): Ditto.
6741         * openfile.c (CMP_FILENAME): Ditto.
6742         * g10.c (i18n_init): We can now use just LC_ALL.
6744 2001-05-29  Werner Koch  <wk@gnupg.org>
6746         * keygen.c (generate_subkeypair): Print a warning if a subkey is
6747         created on a v3 key. Suggested by Brian M. Carlson.
6749 2001-05-27  Werner Koch  <wk@gnupg.org>
6751         * keyid.c (get_lsign_letter): New.
6752         * keylist.c (list_keyblock_colon): Use it here.
6753         * mainproc.c (list_node): and here.
6755         * getkey.c, packet.h, free-packet.c: Removed that useless key
6756         created field; I dunno why I introducded this at all - the
6757         creation time is always bound to the key packet and subject to
6758         fingerprint calculation etc.
6760         * getkey.c (fixup_uidnode): Add keycreated arg and use this
6761         instead of the signature timestamp to calculate the
6762         help_key_expire.  Bug reported by David R. Bergstein.
6763         (merge_selfsigs_main): Correct key expiration time calculation.
6764         (merge_selfsigs_subkey): Ditto.
6766 2001-05-25  Werner Koch  <wk@gnupg.org>
6768         * revoke.c (gen_revoke): Add a cast to a tty_printf arg.
6769         * delkey.c (do_delete_key): Ditto.
6770         * keyedit.c (print_and_check_one_sig): Ditto.
6771         (ask_revoke_sig): Ditto.
6772         (menu_revsig): Ditto.
6773         (check_all_keysigs): Removed unused arg.
6775 2001-05-23  Werner Koch  <wk@gnupg.org>
6777         * g10.c (opts): Typo fix by Robert C. Ames.
6779 2001-05-06  Werner Koch  <wk@gnupg.org>
6781         * revoke.c: Small typo fix
6783 2001-05-04  Werner Koch  <wk@gnupg.org>
6785         * passphrase.c (passphrase_clear_cache): Shortcut if agent usage
6786         is not enabled.
6788 2001-05-01  Werner Koch  <wk@gnupg.org>
6790         * passphrase.c (writen): Replaced ssize_t by int.  Thanks to 
6791         to Robert Joop for reporting that SunOS 4.1.4 does not have it.
6793 2001-04-28  Werner Koch  <wk@gnupg.org>
6795         * getkey.c (merge_public_with_secret): pkttype was not set to subkey.
6797 2001-04-27  Werner Koch  <wk@gnupg.org>
6799         * skclist.c (build_sk_list): Changed one log_debug to log_info.
6801 2001-04-25  Werner Koch  <wk@gnupg.org>
6803         * keyedit.c (show_prefs): Add a verbose mode.
6804         (show_key_with_all_names): Pass verbose flag for special value of
6805         with_pref.
6806         (keyedit_menu): New command "showpref"
6807         (show_key_with_all_names): Mark revoked uids and the primary key.
6809 2001-04-24  Werner Koch  <wk@gnupg.org>
6811         * getkey.c (get_primary_uid): Return a different string in case of
6812         error and made it translatable.
6814         * build-packet.c (do_secret_key): Ugly, we wrote a zero
6815         instead of the computed ndays.  Thanks to M Taylor for complaining
6816         about a secret key import problem.
6818 2001-04-23  Werner Koch  <wk@gnupg.org>
6820         * hkp.c (hkp_ask_import): Allow to specify a port number for the 
6821         keyserver.  Add a kudge to set the no_shutdown flag.
6822         (hkp_export): Ditto.
6823         * options.skel: Document the changes 
6825 2001-04-20  Werner Koch  <wk@gnupg.org>
6827         * options.skel: Add some more comments.
6829 2001-04-19  Werner Koch  <wk@gnupg.org>
6831         * keyid.c (mk_datestr): New.  Handles negative times.  We must do
6832         this because Windoze segvs on negative times passed to gmtime().
6833         Changed all datestr_from function to use this one.
6835         * keyid.c, keyid.h (colon_strtime): New. To implement the
6836         fixed-list-mode.
6837         (colon_datestr_from_pk): New.
6838         (colon_datestr_from_sk): New.
6839         (colon_datestr_from_sig): New.
6840         * keylist.c (list_keyblock_colon): Use these functions here.
6841         * mainproc.c (list_node): Ditto.
6843 2001-04-18  Werner Koch  <wk@gnupg.org>
6845         * openfile.c (open_sigfile): Fixed the handling of ".sign".
6846         * mainproc.c (proc_tree): Use iobuf_get_real_fname.
6847         Both are by Vincent Broman.
6849 2001-04-14  Werner Koch  <wk@gnupg.org>
6851         * getkey.c (fixup_uidnode): Removed check for !sig which is
6852         pointless here.  Thanks to Jan Niehusmann.
6854 2001-04-10  Werner Koch  <wk@gnupg.org>
6856         * sig-check.c (check_key_signature2): Use log_info instead of
6857         log_error so that messed up keys do not let gpg return an error.
6858         Suggested by Christian Kurz.
6860         * getkey.c (merge_selfsigs_main): Do a fixup_uidnode only if we
6861         have both, uid and sig.  Thanks to M Taylor.
6863 2001-04-05  Werner Koch  <wk@gnupg.org>
6865         * armor.c (unarmor_pump_new,unarmor_pump_release): New.
6866         (unarmor_pump): New. 
6867         * pipemode.c (pipemode_filter): Use the unarmor_pump to handle
6868         armored or non-armored detached signatures.  We can't use the
6869         regular armor_filter because this does only check for armored
6870         signatures the very first time.  In pipemode we may have a mix of
6871         armored and binary detached signatures.
6872         * mainproc.c (proc_tree): Do not print the "old style" notice when
6873         this is a pipemode processes detached signature.
6874         (proc_plaintext): Special handling of pipemode detached sigs.
6876         * packet.h (CTRLPKT_PLAINTEXT_MARK): New.
6877         * parse-packet.c (create_gpg_control): New.
6878         * kbnode.c (dump_kbnode): Support it here.
6879         * mainproc.c (check_sig_and_print): Fixed the check for bad
6880         sequences of multiple signatures.
6881         (proc_plaintext): Add the marker packet.
6882         (proc_tree): We can now check multiple detached signatures.
6884 2001-04-02  Werner Koch  <wk@gnupg.org>
6886         The length of encrypted packets for blocksizes != 8 was not
6887         correct encoded.  I think this is a minor problem, because we
6888         usually use partial length packets.  Kudos to Kahil D. Jallad for
6889         pointing this out.
6890         * packet.h: Add extralen to PKT_encrypted.
6891         * cipher.c (write_header): Set extralen.
6892         * build-packet.c (do_encrypted): Use extralen instead of const 10.
6893         (do_encrypted_mdc): Ditto.
6894         * parse-packet.c (parse_encrypted): Set extralen to 0 because we
6895         don't know it here.
6897 2001-03-30  Werner Koch  <wk@gnupg.org>
6899         * getkey.c (premerge_public_with_secret): Changed wording an add
6900         the keyID to the info message.
6902 2001-03-29  Werner Koch  <wk@gnupg.org>
6904         * getkey.c (premerge_public_with_secret): Use log_info instead of
6905         log_error when no secret key was found for a public one.
6906         Fix the usage if the secret parts of a key are not available.
6908         * openfile.c (ask_outfile_name): Trim spaces.
6909         (open_outfile): Allow to enter an alternate filename.  Thanks to
6910         Stefan Bellon.
6911         * plaintext.c (handle_plaintext): Ditto.
6913 2001-03-28  Werner Koch  <wk@gnupg.org>
6915         * mainproc.c (do_check_sig): Allow direct key and subkey
6916         revocation signature.
6917         * sig-check.c (check_key_signature2): Check direct key signatures.
6918         Print the signature class along with an error.
6920 2001-03-27  Werner Koch  <wk@gnupg.org>
6922         * packet.h: Add a missing typedef to an enum.  Thanks to Stefan Bellon.
6924         * g10.c: New option --no-sig-create-check.
6925         * sign.c (do_sign): Implement it here.
6926         * g10.c: New option --no-sig-cache.
6927         * sig-check.c (check_key_signature2): Implement it here.
6928         (cache_selfsig_result): and here.
6930         * keylist.c (list_keyblock): Removed debugging stuff.
6932         * getkey.c (cache_public_key): Made global.
6933         * keygen.c (write_selfsig, write_keybinding): Cache the new key.
6935         * getkey.c (key_byname): Add new arg secmode and changed all
6936         callers to request explicitly the mode.  Deriving this information
6937         from the other supplied parameters does not work if neither pk nor
6938         sk are supplied.
6940 2001-03-25  Werner Koch  <wk@gnupg.org>
6942         * packet.h (ctrlpkttype_t): New.
6943         * mainproc.c (add_gpg_control,proc_plaintext,proc_tree): Use the
6944         new enum values.
6945         * pipemode.c (make_control): Ditto.
6946         * armor.c (armor_filter): Ditto.
6948 2001-03-24  Werner Koch  <wk@gnupg.org>
6950         * sign.c (do_sign): Verify the signature right after creation.
6952 2001-03-23  Werner Koch  <wk@gnupg.org>
6954         * status.c, status.h (STATUS_UNEXPECTED): New.
6955         * mainproc.c (do_proc_packets): And emit it here.
6957 2001-03-21  Werner Koch  <wk@gnupg.org>
6959         * status.c: Add sys/types.h so that it runs on Ultrix.  Reported
6960         by Georg Schwarz.x
6962         * build-packet.c (build_sig_subpkt): Fixed generaton of packet
6963         length header in case where 2 bytes headers are needed.  Thanks to
6964         Piotr Krukowiecki.
6966 2001-03-19  Werner Koch  <wk@gnupg.org>
6968         * g10.c (main): the default keyring is no always used unless
6969         --no-default-keyring is given.  
6971         * ringedit.c (add_keyblock_resource): invalidate cache after file
6972         creation.
6974 2001-03-15  Werner Koch  <wk@gnupg.org>
6976         * keygen.c (ask_algo): Changed the warning of the ElGamal S+E Algo.
6978         * keylist.c (print_capabilities): New.
6979         (list_keyblock_colon): and use it here.
6981 2001-03-13  Werner Koch  <wk@gnupg.org>
6983         * main.c, options.h: New option --fixed_list_mode.
6984         * keylist.c (list_keyblock_colon): use it here.
6986         * getkey.c (merge_keys_and_selfsig): Divert merging of public keys
6987         to the function used in key selection..
6988         * keylist.c (is_uid_valid): Removed.
6989         (list_keyblock): Splitted into ..
6990         (list_keyblock_print, list_keyblock_colon): .. these.
6991         functions.  Changed them to use the flags set in the key lookup code.
6992         (reorder_keyblock): New, so that primary user IDs are listed first.
6994         * ringedit.c (keyring_copy): flush the new iobuf chaces before
6995         rename or remove operations.  This is mainly needed for W32.
6997         * hkp.c [HAVE_DOSISH_SYSTEM]: Removed the disabled code because we
6998         have now W32 socket support in ../util/http.c
7000         * skclist.c (key_present_in_sk_list): New.
7001         (is_duplicated_entry): New.
7002         (build_sk_list): Check for duplicates and do that before unlocking.
7004 2001-03-12  Werner Koch  <wk@gnupg.org>
7006         * armor.c (parse_header_line): Removed double empty line check.
7007         (parse_header_line): Replaced trim_trailing_ws with a counting
7008         function so that we can adjust for the next read.
7010         * options.skel: Fixed 3 typos. By Thomas Klausner. Replaced the
7011         keyserver example by a better working server. 
7013         * parse-packet.c (parse_symkeyenc): Return Invalid_Packet on error.
7014         (parse_pubkeyenc): Ditto.
7015         (parse_onepass_sig): Ditto.
7016         (parse_plaintext): Ditto.
7017         (parse_encrypted): Ditto.
7018         (parse_signature): Return error at other places too.
7019         (parse_key): Ditto.
7020         * g10.c (main): Set opt.list_packets to another value when invoked
7021         with the --list-packets command.
7022         * mainproc.c (do_proc_packets): Don's stop processing when running
7023         under --list-packets command.
7025         * signal.c (do_sigaction): Removed.
7026         (init_one_signal): New to replace the above.  Needed to support
7027         systems without sigactions. Suggested by Dave Dykstra.
7028         (got_fatal_signal,init_signals): Use the above here. 
7029         (do_block): Use sigset() if sigprocmask() is not available.
7031         * armor.c (parse_hash_header): Test on TIGER192, which is the
7032         correct value as per rfc2440.  By Edwin Woudt.
7034 2001-03-08  Werner Koch  <wk@gnupg.org>
7036         * misc.c: Include time.h. By James Troup.
7038         * getkey.c: Re-enabled the unknown user Id and PK caches and
7039         increased their sizes.
7041         * getkey.c (merge_selfsigs_main): Set expire date and continue
7042         processing even if we found a revoked key.
7043         (merge_selfsigs_subkeys): Ditto.
7044         
7045         * packet.h: Add an is_revoked flag to the user_id packet.
7046         * getkey.c (fixup_uidnode): Set that flag here.
7047         (merge_selfsigs_main): Fix so that the latest signature is used to
7048         find the self-signature for an UID.
7049         * parse-packet.c (parse_user_id): Zero out all fields.
7050         * mainproc.c (check_sig_and_print): Print the primary user ID
7051         according the the node flag and then all other non-revoked user IDs.
7052         (is_uid_revoked): Removed; it is now handled by the key selection code.
7053         
7054         Changed the year list of all copyright notices.
7055         
7056 2001-03-07  Werner Koch  <wk@gnupg.org>
7058         * getkey.c (finish_lookup): Print an info message only in verbose mode.
7060 2001-03-05  Werner Koch  <wk@gnupg.org>
7062         * packet.h: Replaced sigsubpkt_t value 101 by PRIV_VERIFY_CACHE.
7063         We have never used the old value, so we can do this without any harm.
7064         * parse-packet.c (dump_sig_subpkt): Ditto.
7065         (parse_one_sig_subpkt): Parse that new sub packet.
7066         * build-packet.c (build_sig_subpkt): Removed the old one from the
7067         hashed area.
7068         (delete_sig_subpkt): New.
7069         (build_sig_subpkt): Allow an update of that new subpkt.
7070         * sig-check.c (check_key_signature2): Add verification caching
7071         (cache_selfsig_result): New.
7072         * export.c (do_export_stream): Delete that sig subpkt before exporting.
7073         * import.c (remove_bad_stuff): New.
7074         (import): Apply that function to all imported data 
7076 2001-03-03  Werner Koch  <wk@gnupg.org>
7078         * getkey.c: Introduced a new lookup context flag "exact" and used 
7079         it in all place where we once used primary.
7080         (classify_user_id2): Replaced the old function and add an extra
7081         argument to return whether an exact keyID has been requested.
7082         (key_byname): Removed the unused ctx.primary flag
7083         (get_seckey_byname2): Ditto.
7084         (finish_lookup): Changed debugging output.
7086 2001-03-02  Werner Koch  <wk@gnupg.org>
7088         * keylist.c (list_one): Remove the merge key calls. 
7090 2001-03-01  Werner Koch  <wk@gnupg.org>
7092         * getkey.c (finish_lookup): Don't use it if we no specific usage
7093         has been requested.
7094         (merge_selfsigs_main): fix UID only if we have an signature.
7095         (lookup): Return UNU_PUBKEY etc. instead of NO_PUBKEY if we found
7096         a key but the requested usage does not allow this key.
7097         * import.c (import_one): Take UNU_PUBKEY into account.
7098         * mainproc.c (list_node): Ditto.
7099         * keylist.c (list_keyblock): Ditto.
7100         * keyedit.c (print_and_check_one_sig): Ditto. 
7102 2001-02-09  Werner Koch  <wk@gnupg.org>
7104         * delkey.c (delete_key): Removed that silly assert which rendered
7105         the whole new stuff meaningless.
7107 2001-02-08  Werner Koch  <wk@gnupg.org>
7109         * getkey.c (key_byname): It can happen that we have both, sk and pk
7110         NULL, fix for that.
7112         * parse-packet.c (parse_one_sig_subpkt): Add support for
7113         primary_uid and key_flags.
7114         (can_handle_critical): Ditto
7116         * parse-packet.c (parse_encrypted): Fixed listing of pktlen for
7117         MDC packets.
7119         * getkey.c: Backported the version of this file from gpg 1.1. this
7120         involved some changes in other files too.
7121         * parse-packet.c (parse_key): Clear req_usage.
7122         * skclist.c (build_sk_list): Use req_usage to pass the usage
7123         information to the lookup function.
7124         * pkclist.c (build_pk_list): Ditto.
7125         * free-packet.c (copy_public_parts_to_secret_key): New.
7126         * keydb.h: Add IS_* macros to check the sig_class.
7127         * misc.c (openpgp_cipher_test_algo): New.
7128         (openpgp_pk_test_algo): New.
7129         (openpgp_pk_algo_usage): New.
7130         (openpgp_md_test_algo): New.
7131         * packet.h: Add a few fields to PKT_{public,secret}_key and
7132         PKT_user_id.
7133         * seckey-cert.c (do_check): Use the new main_keyid field.
7135 2001-02-04  Werner Koch  <wk@gnupg.org>
7137         * encr-data.c (decrypt_data): Catch error when we had problems to
7138         parse the encrypted packet. By Timo.
7140 2001-01-29  Werner Koch  <wk@gnupg.org>
7142         * g10.c (main): --batch does now set nogreeting.
7144         * delkey.c (do_delete_key): Fixed delete-both functionality.
7146 2001-01-22  Werner Koch  <wk@gnupg.org>
7148         * g10.c: New command --delete-secret-and-public-key.
7149         * delkey.c (delete_key): Add new arg allow_both.
7150         (do_delete_key): Move most stuff from above to this new function.
7152 2001-01-12  Werner Koch  <wk@gnupg.org>
7154         * passphrase.c (passphrase_to_dek): Use MD5 when IDEA is installed
7155         and we have no S2K.
7156         * mainproc.c (proc_encrypted): Likewise
7158 2001-01-11  Werner Koch  <wk@gnupg.org>
7160         * sig-check.c (do_check): Print the signature key expire message
7161         only in verbose mode and added the keyID.
7163 2001-01-09  Werner Koch  <wk@gnupg.org>
7165         * status.c, status.h: New status USERID_HINT. 
7166         (write_status_text): Replace LF and CR int text by C-escape sequence.
7168         * passphrase.c (passphrase_to_dek): Fixed the NEED_PASSPHRASE
7169         output.  It does now always print 2 keyIDs.  Emit the new
7170         USERID_HINT.
7172 2001-01-08  Werner Koch  <wk@gnupg.org>
7174         * g10.c, options.h: New option --no-expensive-trust-checks.
7175         * keylist.c (list_keyblock): Act on this option.
7177 2001-01-04  Werner Koch  <wk@gnupg.org>
7179         * g10.c (main): Set homedir only in the pre-parsing phase and
7180         replace backslashes in the W32 version.
7182 2001-01-03  Werner Koch  <wk@gnupg.org>
7184         * status.c, status.h : New status KEY_CREATED
7185         * keygen.c (do_generate_keypair,generate_subkeypair): Emit it.
7187 2000-12-28  Werner Koch  <wk@gnupg.org>
7189         * signal.c (got_fatal_signal): Remove lockfiles here because the
7190         atexit stuff does not work due to the use of raise. Suggested by
7191         Peter Fales.
7192         * gpgv.c (remove_lockfiles): New stub.
7193         
7194 2000-12-19  Werner Koch  <wk@gnupg.org>
7196         * status.c, status.h (cpr_get_no_help): New.
7197         * keyedit.c (keyedit_menu): Use it here because we have our own
7198         help list here.
7200 2000-12-18  Werner Koch  <wk@gnupg.org>
7202         * mainproc.c (print_failed_pkenc): Don't print the sometimes
7203         confusing message about unavailabe secret key.  Renamed ...
7204         (print_pkenc_list): ... to this and introduced failed arg.
7205         (proc_encrypted): Print the failed encryption keys and then
7206         the one to be used.
7207         (proc_pubkey_enc): Store also the key we are going to use.
7209         * mainproc.c (check_sig_and_print): Don't list revoked user IDs.
7210         (is_uid_revoked): New.
7212 2000-12-08  Werner Koch  <wk@gnupg.org>
7214         * pipemode.c: Made the command work.  Currently only for
7215         non-armored detached signatures.
7216         * mainproc.c (release_list): Reset the new pipemode vars.
7217         (add_gpg_control): Handle the control packets for pipemode
7218         * status.c, status.h: New stati {BEGIN,END}_STREAM.
7220 2000-12-07  Werner Koch  <wk@gnupg.org>
7222         * g10.c: New option --allow-secret-key-import.
7223         * import.c (import_keys,import_keys_stream): Honor this option.
7224         (import): New arg allow_secret and pass that arg down to ...
7225         (import_secret_one): to this and print a warning if secret key
7226         importing is not allowed.
7228 2000-12-05  Werner Koch  <wk@gnupg.org>
7230         * cipher.c (cipher_filter): Moved the end_encryption status ...
7231         * encode.c (encode_simple,encode_crypt): to here
7232         * sign.c (sign_file): and here.
7234         * status.c (mywrite): Removed.
7235         (get_status_string): Removed the LFs from the strings.
7236         (set_status_fd,is_status_enabed,write_status_text,
7237         write_status_buffer): Replaced all mywrite by stdio calls and use
7238         fdopen to create a strem.  This is needed to make things smoother
7239         in the W32 version.
7241 2000-12-04  Werner Koch  <wk@gnupg.org>
7243         * import.c (merge_blocks): Increment n_sigs for revocations.
7245 2000-11-30  Werner Koch  <wk@gnupg.org>
7247         * g10.c (main): Use iobuf_translate_file_handle for all options
7248         with filehandles as arguments.  This is function does some magic
7249         for the W32 API.
7251         * verify.c (verify_signatures): Add a comment rant about the
7252         detached signature problem.
7253         * mainproc.c (proc_tree): Issue an error if a detached signature
7254         is assumed but a standard one was found.
7255         * plaintext.c (hash_datafiles): Don't fall back to read signature
7256         from stdin.
7257         * openfile.c (open_sigfile): Print verbose message only if the
7258         file could be accessed.
7260 2000-11-24  Werner Koch  <wk@gnupg.org>
7262         * passphrase.c [HAVE_DOSISH_SYSTEM]: Disabled all the agent stuff.
7264 2000-11-16  Werner Koch  <wk@gnupg.org>
7266         * g10.c: New option --use-agent
7267         * passphrase.c (agent_open,agent_close): New.
7268         (agent_get_passphrase,agent_clear_passphrase): New.
7269         (passphrase_clear_cache): New.
7270         (passphrase_to_dek): Use the agent here.
7271         * seckey-cert.c (do_check): Clear cached passphrases.
7273 2000-11-15  Werner Koch  <wk@gnupg.org>
7275         * status.c (write_status_text): Moved the big switch to ...
7276         (get_status_string): ... new function.
7277         (write_status_buffer): New.
7279         * status.c (mywrite): New and replaced all write() by this.
7281         * status.c, status.h: Add 3 status lcodes for notaions and policy.
7282         * mainproc.c (print_notation_data): Do status output of notations.
7283         
7284 2000-11-13  Werner Koch  <wk@gnupg.org>
7286         * sign.c (clearsign_file): Use LF macro to print linefeed.
7287         
7288 2000-11-11  Paul Eggert  <eggert@twinsun.com>
7290         Clean up the places in the code that incorrectly use "long" or
7291         "unsigned long" for file offsets.  The correct type to use is
7292         "off_t".  The difference is important on large-file hosts,
7293         where "off_t" is longer than "long".
7295         * keydb.h (struct keyblock_pos_struct.offset):
7296         Use off_t, not ulong, for file offsets.
7297         * packet.h (dbg_search_packet, dbg_copy_some_packets,
7298         search_packet, copy_some_packets): Likewise.
7299         * parse-packet.c (parse, dbg_search_packet, search_packet,
7300         dbg_copy_some_packets, copy_some_packets): Likewise.
7301         * ringedit.c (keyring_search): Likewise.
7303         * parse-packet.c (parse): Do not use %lu to report file
7304         offsets in error diagnostics; it's not portable.
7305         * ringedit.c (keyring_search): Likewise.
7307 2000-11-09  Werner Koch  <wk@gnupg.org>
7309         * g10.c (main): New option --enable-special-filenames.
7311 2000-11-07  Werner Koch  <wk@gnupg.org>
7313         * g10.c (main): New command --pipemode.
7314         * pipemode.c: New.
7316 2000-10-23  Werner Koch  <wk@gnupg.org>
7318         * armor.c (armor_filter): Changed output of hdrlines, so that a CR
7319         is emitted for DOS systems.
7321         * keygen.c (read_parameter_file): Add a cast for isspace().
7323         * status.c (myread): Use SIGINT instead of SIGHUP for DOS. 
7325 2000-10-19  Werner Koch  <wk@gnupg.org>
7327         * g10.c: New option --ignore-crc-error
7328         * armor.c (invalid_crc): New.
7329         (radix64_read): Act on new option.
7331         * openfile.c (try_make_homedir): Klaus Singvogel fixed a stupid
7332         error introduced on Sep 6th. 
7334 2000-10-18  Werner Koch  <wk@gnupg.org>
7336         * misc.c (print_cipher_algo_note): Don't print the note for AES.
7337         Changed wording.
7339 2000-10-16  Werner Koch  <wk@gnupg.org>
7341         * mainproc.c (do_proc_packets): Hack to fix the problem that
7342         signatures are not detected when there is a MDC packet but no
7343         compression packet.
7344         
7345         * g10.c (print_hashline): New.
7346         (print_mds): Use above func with --with-colons.
7348         * mainproc.c (check_sig_and_print): Detect multiple signatures
7349         and don't verify them.
7351 2000-10-14  Werner Koch  <wk@gnupg.org>
7353         * mainproc.c (add_onepass_sig): There is an easier solution to the
7354         error fixed yesterday; just check that we only have onepass
7355         packets.  However, the other solution provides an cleaner
7356         interface and opens the path to get access to other information
7357         from the armore headers.
7358         (release_list): Reset some more variables.
7360 2000-10-13  Werner Koch  <wk@gnupg.org>
7362         * mainproc.c (add_gpg_control): New.
7363         (do_proc_packets): use it.
7364         (proc_plaintext): Changed logic to detect clearsigns.
7365         (proc_tree): Check the cleartext sig with some new code.
7367         * packet.h: New packet PKT_GPG_CONTROL.
7368         * parse-packet.c (parse_gpg_control): New.
7369         * misc.c (get_session_marker): New.
7370         * armor.c (armor_filter): Replaced the faked 1-pass packet by the
7371         new control packet.
7373         * keyedit.c (keyedit_menu): Allow batchmode with a command_fd. 
7374         * status.c (my_read): New.
7375         (do_get_from_fd): use it.
7377 2000-10-12  Werner Koch  <wk@gnupg.org>
7379         * keygen.c (keygen_add_std_prefs): Add Rijndael to the prefs.
7381 2000-10-07  Werner Koch  <wk@gnupg.org>
7383         * gpgv.c: Add more stubs for ununsed code to make the binary smaller.
7385 Wed Oct  4 15:50:18 CEST 2000  Werner Koch  <wk@openit.de>
7387         * sign.c (hash_for): New arg to take packet version in account, changed
7388         call callers.
7390         * gpgv.c: New.
7391         * Makefile.am: Rearranged source files so that gpgv can be build with
7392         at least files as possible.
7394 Mon Sep 18 12:13:52 CEST 2000  Werner Koch  <wk@openit.de>
7396         * hkp.c (not_implemented): Print a notice for W32
7398 Fri Sep 15 18:40:36 CEST 2000  Werner Koch  <wk@openit.de>
7400         * keygen.c (keygen_add_std_prefs): Changed order of preferences to
7401         twofish, cast5, blowfish.
7403         * pkclist.c (algo_available): Removed hack to disable Twofish.
7405 Thu Sep 14 17:45:11 CEST 2000  Werner Koch  <wk@openit.de>
7407         * parse-packet.c (dump_sig_subpkt): Dump key flags. Print special
7408         warning in case of faked ARRs.
7410         * getkey.c (finsih_lookup): Hack so that for v4 RSA keys the subkey
7411         is used for encryption.
7413 Thu Sep 14 14:20:38 CEST 2000  Werner Koch  <wk@openit.de>
7415         * g10.c (main): Default S2K algorithms are now SHA1 and CAST5 - this
7416         should solve a lot of compatibility problems with other OpenPGP
7417         apps because those algorithms are SHOULD and not optional.  The old
7418         way to force it was by using the --openpgp option whith the drawback 
7419         that this would disable a couple of workarounds for PGP.
7421         * g10.c (main): Don't set --quite along with --no-tty.  By Frank Tobin.
7423         * misc.c (disable_core_dump): Don't display a warning here but a return
7424         a status value and ...
7425         * g10.c (main): ...print warnining here. Suggested by Sam Roberts.
7427 Wed Sep 13 18:12:34 CEST 2000  Werner Koch  <wk@openit.de>
7429         * keyedit.c (keyedit_menu): Allow to use "debug" on the secret key.
7431         * ringedit.c (cmp_seckey): Fix for v4 RSA keys.
7432         * seckey-cert.c (do_check): Workaround for PGP 7 bug.
7434 Wed Sep  6 17:55:47 CEST 2000  Werner Koch  <wk@openit.de>
7436         * misc.c (print_pubkey_algo_note): Do not print the RSA notice.
7437         * sig-check.c (do_signature_check): Do not emit the RSA status message.
7438         * pubkey-enc.c (get_session_key): Ditto.
7440         * encode.c (encode_simple, encode_crypt): Fix for large files.
7441         * sign.c (sign_file): Ditto.
7443 Wed Sep  6 14:59:09 CEST 2000  Werner Koch  <wk@openit.de>
7445         * passphrase.c (hash_passphrase): Removed funny assert.  Reported by
7446         David Mathog.
7448         * openfile.c (try_make_homedir): Changes for non-Posix systems.
7449         * g10.c (main): Take the default homedir from macro.
7451         * g10.c: The --trusted-key option is back.
7452         * trustdb.c (verify_own_key): Handle this option.
7453         (add_ultimate_key): Moved stuff from verify_own_key to this new func.
7454         (register_trusted_key): New.
7456 Fri Aug 25 16:05:38 CEST 2000  Werner Koch  <wk@openit.de>
7458         * parse-packet.c (dump_sig_subpkt): Print info about the ARR.
7460         * openfile.c (overwrite_filep): Always return okay if the file is
7461         called /dev/null. 
7462         (make_outfile_name): Add ".sign" to the list of know extensions.
7463         (open_sigfile): Ditto.
7465 Wed Aug 23 19:52:51 CEST 2000  Werner Koch  <wk@openit.de>
7467         * g10.c: New option --allow-freeform-uid. By Jeroen C. van Gelderen.
7468         * keygen.c (ask_user_id): Implemented here.
7470 Fri Aug  4 14:23:05 CEST 2000  Werner Koch  <wk@openit.de>
7472   * status.c (do_get_from_fd): Ooops, we used fd instead of opt.command_fd.
7473   Thanks to Michael Tokarev.
7475 Tue Aug  1 20:06:23 CEST 2000  Werner Koch  <wk@openit.de>
7477   * g10.c: New opttion --try-all-secrets on suggestion from Matthias Urlichs.
7478   * pubkey-enc.c (get_session_key): Quite easy to implement here.
7480 Thu Jul 27 17:33:04 CEST 2000  Werner Koch  <wk@openit.de>
7482   * g10.c: New option --merge-only.  Suggested by Brendan O'Dea.
7483   * import.c (import_one): Implemented it here
7484   (import_secret_one): Ditto.
7485   (print_stats): and give some stats.
7487 Thu Jul 27 12:01:00 CEST 2000  Werner Koch  <wk@openit.de>
7489   * g10.c: New options --show-session-key and --override-session-key
7490   * pubkey-enc.c (hextobyte): New.
7491   (get_override_session_key): New.
7492   * mainproc.c (proc_pubkey_enc): Add session-key stuff.
7493   * status.h, status.c (STATUS_SESSION_KEY): New.
7495 Thu Jul 27 10:02:38 CEST 2000  Werner Koch  <wk@openit.de>
7497   * g10.c (main): Use setmode(O_BINARY) for MSDOS while generating random bytes
7498   (print_mds): Likewise for stdin.
7499   * plaintext.c (handle_plaintext): Likewise for stdout.
7501 Mon Jul 24 10:30:17 CEST 2000  Werner Koch  <wk@openit.de>
7503   * keyedit.c (menu_expire): expire date for primary key can be set again.
7505 Wed Jul 19 11:26:43 CEST 2000  Werner Koch  <wk@openit.de>
7507   * keylist.c (is_uid_valid): New.
7508   (list_keyblock): Print validity information for all user IDs.  Note, this
7509   has to be done at other places too; for now we have only minimal support.
7511 Wed Jul 12 13:32:06 CEST 2000  Werner Koch  <wk@openit.de>
7513   * helptext.c, pkclist.c: s/superseeded/superseded/
7515 Mon Jul 10 16:08:57 CEST 2000  Werner Koch  <wk@openit.de>
7517   * parse-packet.c (enum_sig_subpkt): Fixed testing on crtitical bit in case
7518   of a NULL buffer.  Reported by Peter Marschall.
7520 Wed Jul  5 13:28:45 CEST 2000  Werner Koch  <wk@openit.de>
7522   * keyedit.c, keyid.c: Add some _()
7524   * argparse.c:  Changed the flag to suppress --version handling to also
7525   suppress --help.
7527 Wed Jun 28 11:54:44 CEST 2000  Werner Koch  <wk@openit.de>
7529   * armor.c (armor_filter): Set sigclass to 0 in case of non-dash-escaped
7530   clearsig.  This makes this mode work again.
7532   * mainproc.c (proc_tree): Fixed handling of one-pass-sig packets in textmode.
7533   Disabled the ugly workaround for PGP 5 - let's see whether thi breaks less
7534   cases. Found by Ted Cabeen.
7536   * options.h (DBG_HASHING): New.  All commented md_start_debug are now
7537   controlled by this debug option.
7539   * sign.c (print_status_sig_created): New and called from 2 places.
7541   * keygen.c (gen_rsa): New, but commented.
7542   (ask_algo): Commented support for RSA.
7544   * seckey-cert.c (protect_secret_key): Started to fix the code for v4 RSA
7545   keys - it is not solved yet. However, we have time until, Sep 20th ;)
7547 Wed Jun 14 12:27:09 CEST 2000  Werner Koch  <wk@openit.de>
7549   * status.c (init_shm_coprocessing): Changed the sequence of the get,attach
7550   to cope with the changes in newer Linux kernels.  This bug has been found
7551   by <dmitri@advantrix.com> who also proposed this solution.  Hopefully
7552   this does not break gpg on to many systems.
7554   * cipher.c (write_header): Protect the IV with the MDC too.
7555   * encr-data.c (decrypt_data): Likewise.
7557 Fri Jun  9 10:09:52 CEST 2000  Werner Koch  <wk@openit.de>
7559   * g10.c: New options --no-auto-key-retrieve
7560   * options.h (auto_key_retrieve): New.
7561   * mainproc.c (check_sig_and_print): Implemented that.
7563 Wed Jun  7 19:19:09 CEST 2000  Werner Koch  <wk@openit.de>
7565   * sig-check.c (do_check): Use EMULATE_MDENCODE also on v4 packets.
7567 Wed Jun  7 17:25:38 CEST 2000  Werner Koch  <wk@openit.de>
7569   * cipher.c (write_header): Use plain CFB mode for MDC encrypted packets.
7570   * encr-data.c (decrypt_data): Ditto.
7572 Mon Jun  5 23:41:54 CEST 2000  Werner Koch  <wk@openit.de>
7574   * seskey.c (do_encode_md, encode_md_value): Add new arg v3compathack to work
7575   around a bug in old versions.
7576   * sig-check.c (do_check): use the aboved workaround when enabled.
7577   * g10.c: New option --emulate-md-decode-bug
7579 Mon Jun  5 12:37:43 CEST 2000  Werner Koch  <wk@openit.de>
7581   * build-packet.c (do_mdc): New.
7582   (do_encrypted_mdc): Changed for the new proposal.
7583   * parse-packet.c (parse_mdc): New.
7584   (parse_encrypted): Fixed for the new proposal.
7585   * packet.h (PKT_MDC): New.
7586   * cipher.c (cipher_filter): Build the MDC packet here.
7587   * g10.c (main): Enable --force-mdc.
7588   * encr-data.c (mdc_decode_filter): Fixed for new MDC method
7590   * options.h(rfc2440): New.
7591   * g10.c (main): Changed the selected values for --openpgp to not include
7592   optional algorithms.
7594 Thu May 18 11:38:54 CEST 2000  Werner Koch  <wk@openit.de>
7596         * keyedit.c (keyedit_menu): Add a keyword arg to the prompt.
7598         * status.c, status.h: Added 3 new status tokens.
7599         * status.c (do_get_from_fd): New.
7600         (cpr_enabled,cpr_get,cpr_get_hidden,cpr_kill_prompt,
7601          cpr_get_answer_is_yes,cpr_get_answer_yes_no_quit): Modified to work
7602          with the new function.
7603         * g10.c: Add new option --command-fd.
7605         * status.c (progress_cb): New.
7606         (set_status_fd): Register progress functions
7608 Fri May 12 14:01:20 CEST 2000  Werner Koch  <wk@openit.de>
7610         * delkey.c (delete_key): Add 2 new status messages
7611         * status.c, status.h (STATUS_DELETE_PROBLEM): New.
7613         Fixed years of copyright in all source files.
7615 Mon May  1 17:08:14 CEST 2000  Werner Koch  <wk@openit.de>
7617         * trustdb.c (propagate_validity): Fixed the bug that only one uid
7618         gets fully trusted even when all are signed by an ultimate key.
7620 Mon May  1 15:38:04 CEST 2000  Werner Koch  <wk@openit.de>
7622         * getkey.c (key_byname): Always returned a defined context.  Fixed
7623         a segv for invalid user id specifications. Reported by Walter Koch.
7625         * getkey.c (get_user_id): I18ned "no user id" string. By Walter.
7627         * pkclist.c (do_show_revocation_reason): Typo fixes.
7628         * helptext.c: Ditto.
7630         * armor.c (armor_filter): Fixed some CRLF issues.  By Mike McEwan.
7632 Fri Apr 14 19:37:08 CEST 2000  Werner Koch  <wk@openit.de>
7634         * pkclist.c (do_show_revocation_reason): New.
7635         (show_revocation_reason): New and called at various places.
7637         * g10.c (main): Fixed small typo.
7639         * pkclist.c (do_we_trust): Act on always_trust but not for revoked
7640         keys. Suggested by Chip Salzenberg.
7642         * g10.c: New option --lock-never.
7644         * ringedit.c (get_writable_keyblock_file): New.
7645         * keygen.c (do_generate_keypair): Use this instead of the hardwired one.
7647         * keygen.c (ask_user_id): Check that the email address is in the
7648         correct field.  Suggested by Christian Kurz.
7650 Mon Apr 10 13:34:19 CEST 2000  Werner Koch  <wk@openit.de>
7652         * keyedit.c (show_key_with_all_names): s/sbb/ssb/
7654 Tue Mar 28 14:26:58 CEST 2000  Werner Koch  <wk@openit.de>
7656         * trustdb.c (verify_own_keys): Do not print warning about unprotected
7657         key when in quiet mode.
7659 Wed Mar 22 13:50:24 CET 2000  Werner Koch  <wk@openit.de>
7661         * mainproc.c (print_userid): Do UTF8 conversion before printing.
7662         * import.c (import_one): Ditto.
7663         (import_secret_one): Ditto.
7664         (delete_inv_parts): Ditto.
7666 Thu Mar 16 16:20:23 CET 2000  Werner Koch  <wk@openit.de>
7668         * keylist.c (print_key_data): Handle a NULL pk gracefully.
7670         * getkey.c (merge_one_pk_and_selfsig): Fixed silly code for
7671         getting the primary keys keyID but kept using the one from the
7672         subkey.
7673         * pubkey-enc.c (get_it): Print a note for expired subkeys.
7675         * getkey.c (has_expired): New.
7676         (subkeys_expiretime): New.
7677         (finish_lookup): Check for expired subkeys needed for encryption.
7678         (merge_keys_and_selfsig): Fixed expiration date merging for subkeys.
7680         * keylist.c (list_keyblock): Print expiration time for "sub".
7681         (list_one): Add missing merging for public keys.
7682         * mainproc.c (list_node): Ditto.
7684 2000-03-14 13:49:38  Werner Koch  (wk@habibti.openit.de)
7686         * keygen.c (keyedit_menu): Do not allow to use certain commands
7687         while the secret key is selected.
7689 2000-03-09 12:53:09  Werner Koch  (wk@habibti.openit.de)
7691         * keygen.c (ask_expire_interval): Movede parsig to ...
7692         (parse_expire_string): ... this new function. And some new control
7693         commands.
7694         (proc_parameter_file): Add expire date parsing.
7695         (do_generate_keypair): Allow the use of specified output files.
7697 2000-03-08 10:38:38  Werner Koch  (wk@habibti.openit.de)
7699         * keygen.c (ask_algo): Removed is_v4 return value and the commented
7700         code to create Elg keys in a v3 packet. Removed the rounding
7701         of key sizes here.
7702         (do_create): Likewise removed arg v4_packet.
7703         (gen_elg): Likewise removed arg version. Now rounding keysizes here.
7704         (gen_dsa): Rounding keysize now here.
7705         (release_parameter_list): New
7706         (get_parameter*): New.
7707         (proc_parameter_file): New.
7708         (read_parameter_file): New.
7709         (generate_keypair): Splitted. Now uses read_parameter_file when in
7710         batch mode.  Additional argument to specify a parameter file.
7711         (do_generate_keypair): Main bulk of above fucntion and uses the
7712         parameter list.
7713         (do_create): Don't print long notice in batch mode.
7714         * g10.c (main): Allow batched key generation.
7716 Thu Mar  2 15:37:46 CET 2000  Werner Koch  <wk@gnupg.de>
7718         * pubkey-enc.c (get_it): Print a note about unknown cipher algos.
7720         * g10.c (opts): Add a note to the help listing about the man page
7721         and removed some options from the help listing.
7723         * keyedit.c (print_and_check_one_sig): Use a new function to truncate
7724         the output of the user ID.  Suggested by Jan-Benedict Glaw.
7726 Wed Feb 23 10:07:57 CET 2000  Werner Koch  <wk@gnupg.de>
7728         * helptext.c: typo fix.
7730 Thu Feb 17 13:39:32 CET 2000  Werner Koch  <wk@gnupg.de>
7732         * revoke.c: Removed a bunch of commented code.
7734         * packet.h (SIGSUBPKT_REVOC_REASON): New.
7735         * build-packet.c (build_sig_subpkt): Support new sub packet.
7736         * parse-packet.c (parse_one_sig_subpkt): Ditto.
7737         (dump_sig_subpkt): Ditto.
7738         * revoke.c (ask_revocation_reason): New.
7739         (release_revocation_reason_info): New.
7740         (revocation_reason_build_cb): New.
7741         (gen_revoke): Ask for reason.
7742         * main.h (struct revocation_reason_info): Add declaration.
7743         * keyedit.c (menu_revsig): Add support for revocation reason.
7744         (menu_revkey): Ditto.
7745         (sign_uid_mk_attrib): Renamed to ...
7746         (sign_mk_attrib): ... this, made static and add support for reasons.
7748 Tue Feb 15 08:48:13 CET 2000  Werner Koch  <wk@gnupg.de>
7750         * build-packet.c (build_packet): Fixed fixing of old comment packets.
7752         * import.c (import_keys): Fixed importing from stdin when called with
7753         nnames set to zero as it normally happens.
7755 Mon Feb 14 14:30:20 CET 2000  Werner Koch  <wk@gnupg.de>
7757         * sig-check.c (check_key_signature2): Add new arg r_expired.
7758         (do_signature_check): New arg to pass it down to ...
7759         (do_check): New arg r-expire which is set when the signature
7760         has expired.
7761         * trustdb.c (check_sig_record): Set SIGF_EXPIRED flag and set
7762         the expiretime to zero so that thi signature will not be checked
7763         anymore.
7765 Fri Feb 11 17:44:40 CET 2000  Werner Koch  <wk@gnupg.de>
7767         * g10.c (g10_exit): Update the random seed_file.
7768         (main): Set the random seed file.  New option --no-random-seed-file.
7770 Thu Feb 10 17:39:44 CET 2000  Werner Koch  <wk@gnupg.de>
7772         * keyedit.c (menu_expire): Fixed segv due to unitialized sub_pk.
7773         By Rémi.
7775 Thu Feb 10 11:39:41 CET 2000  Werner Koch  <wk@gnupg.de>
7777         * keylist.c (list_keyblock): Don't print warnings in the middle of
7778         regulat output lines.  By Rémi.
7780         * sig-check.c: Include options.h
7782 Wed Feb  9 15:33:44 CET 2000  Werner Koch  <wk@gnupg.de>
7784         * gpg.c: New option --ignore-time-conflict
7785         * sig-check.c (do_check): Implemented this option.
7786         * trustdb.c (check_trust): Ditto.
7787         * sign.c (do_sign): Ditto.
7788         * keygen.c (generate_subkeypair): Ditto.
7790         * encode.c (encode_simple): use iobuf_cancel after open failure.
7791         Reported by Huy Le.
7793 Fri Jan 14 18:32:01 CET 2000  Werner Koch  <wk@gnupg.de>
7795         * packet.h (STRING2KEY): Changed mode from byte to int.
7796         * parse-packet.c (parse_key): Add the special GNU protection stuff
7797         * build-packet.c (so_secret_key): Ditto.
7798         * seckey-cert.c (do_check): Ditto.
7799         * keyedit.c (change_passphrase): Ditto.
7800         * export.c (export_secsubkeys): New.
7801         (do_export_stream): Hack to export the primary key using mode 1001.
7802         * g10.c: New command --export-secret-subkeys
7804 Thu Jan 13 19:31:58 CET 2000  Werner Koch  <wk@gnupg.de>
7806         * armor.c (is_armored): Check for 1-pass-sig packets. Reported by
7807         David Hallinan <hallinan@rtd.com>.
7808         (armor_filter): Replaced one LF by the LF macro.  Reported by
7809         Wolfgang Redtenbacher.
7811 Wed Jan  5 11:51:17 CET 2000  Werner Koch  <wk@gnupg.de>
7813         * g10.c (main): Reset new global flag opt.pgp2_workarounds
7814         when --openpgp is used.
7815         * mainproc.c (proc_plaintext): Do the PGP2,5 workarounds only
7816         when the global flag is set.
7817         (proc_tree): Ditto.
7818         * textfilter.c (copy_clearsig_text): Ditto.
7819         * armor.c (armor_filter): Ditto.
7821         * g10.c: New option --list-only
7822         * mainproc.c (proc_tree): Don't do it if opt.list_only is active.
7823         (proc_pubkey_enc): Implement option.
7825         * status.h, status.c ({BEGIN,END}_{EN,DE}CRYPTION): New.
7826         * cipher.c (cipher_filter): New status outputs.
7827         * mainproc.c (proc_encrypted): New status outputs.
7829 Fri Dec 31 14:08:15 CET 1999  Werner Koch  <wk@gnupg.de>
7831         * armor.c (armor_filter): Made the "Comment:" header translatable.
7833         * hkp.c (hkp_import): Make sure that the program does not return
7834         success when there is a connection problem.  Reported by Phillip Jones.
7836 Sun Dec 19 15:22:26 CET 1999  Werner Koch  <wk@gnupg.de>
7838         * armor.c (LF): Use this new macro at all places where a line LF
7839         is needed.  This way DOSish textfiles should be created when the
7840         input data is also in dos mode.
7841         * sign.c (LF): Ditto.
7842         * textfilter.c (LF): Ditto.
7843         (copy_clearsig_text): Disabled the forcing of CR,LF sequences
7844         for DOS systems.
7846         * plaintext.c (handle_plaintext): Fixes for line endings on DOS.
7847         and react on a LF in cleartext.
7848         * armor.c (fake_packet): Restore the original line ending after
7849         removing trailing spaces.
7851         * signal.c (got_fatal_signal): DOS fix.
7853 Thu Dec 16 10:07:58 CET 1999  Werner Koch  <wk@gnupg.de>
7855         * mainproc.c (print_failed_pkenc): Fix for unknown algorithm.
7856         Found by fygrave@epr0.org.
7858 Thu Dec  9 10:31:05 CET 1999  Werner Koch  <wk@gnupg.de>
7860         * hkp.c: i18n the strings.
7862 Sat Dec  4 15:32:20 CET 1999  Werner Koch  <wk@gnupg.de>
7864         * trustdb.c (verify_key): Shortcut for ultimately trusted keys.
7866 Sat Dec  4 12:30:28 CET 1999  Werner Koch  <wk@gnupg.de>
7868         * pkclist.c (build_pk_list): Validate the trust using the namehash
7869         if this one has been set by the key lookup.
7871         * g10.c: Add --delete-secret-key to the help page.
7873         * openfile.c (copy_options_file): Made static.
7874         (try_make_homedir): New.
7875         * ringedit.c (add_keyblock_resource): Use the try_make_hoemdir logic.
7876         * tdbio.c (tdbio_set_dbname): Likewise.
7878         * keygen.c (generate_user_id): Use m_alloc_clear() here. We should
7879         better use an allocation function specific to the user_id packet.
7881         * keygen.c (keygen_add_std_prefs): Changed symmetric preferences
7882         to include Blowfish again.  This is due to it's better speed compared
7883         to CAST5.
7885         * g10.c (strusage): Print the home directory.
7887         * armor.c (armor_filter): Take action on the cancel control msg.
7888         * filter.h (armor_filter_context_t): Add cancel flag.
7890 Mon Nov 29 21:52:11 CET 1999  Werner Koch  <wk@gnupg.de>
7892         * g10.c: New option --fast-list-mode ..
7893         * keylist.c (list_keyblock): .. and implemented.
7894         * mainproc.c (list_node): Ditto.
7896         * import.c (mark_non_selfsigned_uids_valid): Fixed the case that there
7897         is a uid without any packet following.
7899 Mon Nov 22 11:14:53 CET 1999  Werner Koch  <wk@gnupg.de>
7901         * mainproc.c (proc_plaintext): Never enable the hash processing
7902         when skip_verify is active.
7904         * armor.c (parse_header_line): Stop parsing on a WS line too.
7905         Suggested by Aric Cyr.
7907         * tdbdump.c (HEXTOBIN): Changed the name of the argument, so that
7908         traditional cpp don't mess up the macros. Suggested by Jos Backus.
7910         * mainproc.c (list_node): Print the PK algo in the --with-colon mode.
7911         * keylist.c (list_keyblock): Ditto.
7913         * signal.c (got_fatal_signal): Found the reason why exit(8) did not
7914         work - it is better to set the disposition back to default before
7915         raising the signal.  Print the notice on stderr always.
7917 Fri Nov 12 20:33:19 CET 1999  Werner Koch  <wk@gnupg.de>
7919         * g10.c (make_username): Swapped the logic.
7920         * keylist.c (public_key_list): Now takes a STRLIST as arg and moved
7921         the creation ot this list to the caller, so that he can copy with
7922         UTF-conversion of user IDs.  Changed all callers.
7923         (secret_key_list): Likewise.
7925         * getkey.c (get_user_id_string_native): New and ...
7926         * encode.c (write_pubkey_enc_from_list): ... use it here.
7928         * pubring.asc: Updated.
7930         * packet.h (PKT_PHOTO_ID): New.
7931         * parse-packet.c (parse_photo_id): New.
7932         * build-packet.c (do_user_id: Handle photo IDs.
7933         (build_packet): Change CTB for photo IDs
7934         * free-packet.c (free_user_id): Release memory used for photo IDs
7935         * sig-check.c (hash_uid_node): Handle photo IDs too.
7936         * trustdb.c (print_uid_from_keyblock): Hash photo ID.
7937         (make_uid_records): Ditto.
7938         * getkey.c (find_by_name): Ditto.
7939         * keyedit.c (show_prefs): Ditto.
7940         * keylist.c (list_keyblock): Ditto.
7942 Thu Oct 28 16:08:20 CEST 1999  Werner Koch  <wk@gnupg.de>
7944         * keygen.c (ask_expire_interval): Print a warning for systems
7945         with a signed 32 time_t if the exiration time is beyoind 2038.
7947 Fri Oct  8 20:40:50 CEST 1999  Werner Koch  <wk@gnupg.de>
7949         * ringedit.c (enum_keyblocks): The last fix way really stupid;
7950         reverted and set rt to Unknown.
7952 Fri Oct  8 20:32:01 CEST 1999  Werner Koch  <wk@gnupg.de>
7954         * ringedit.c (enum_keyblocks): Zero the entire kbpos out on open.
7956         * g10.c (oEntropyDLL): Removed option.
7957         (main): Made the warning on development versions more verbose.
7959         * g10.c (oHonorHttpProxy): New option.
7960         * hkp.c (hkp_ask_import,hkp_export): Implement this option.
7961         * options.skel: Enable this option for new installations
7963 Mon Oct  4 21:23:04 CEST 1999  Werner Koch  <wk@gnupg.de>
7965         * import.c (import_keys): Changed calling interface, adjusted caller.
7966         (import): Moved printing of stats out ...
7967         (print_stats): New. ... to here.
7968         (import_keys_stream): Call stats print here.
7969         (import_keys): Print stats as totals for all files.
7971         * tdbio.h (DIRF_NEWKEYS): New
7972         * tdbio.c (tdbio_dump_record): Print the new flag.
7973         * trustdb.c (check_trust_record): New arg sigs_only.  Adapted all
7974         callers.
7975         (do_update_trust_record): Removed recheck arg and add a new sigs_only
7976         do we can later improve on the performance.  Changed all callers too.
7977         (check_trustdb): Evalutate the new flag and add a status output.
7978         Do a check when the dir record has not been checked.
7979         (build_cert_tree): Evaluate the new flag.
7980         (check_trust): Ditto.  Do a trust_record check, when the dir record
7981         is not marked as checked.
7982         (mark_fresh_keys): New.
7983         (clear_lid_table): New.
7984         (sync_trustdb): New.
7985         * import.c (import_keys): Call sync_trustdb() after processing.
7986         (import_keys_stream): Ditto.
7987         * tdbdump.c (import_ownertrust): Ditto.
7989         * import.c (import_revoke_cert): Notify the trust DB.
7990         (do_update_trust_record): Use |= to set the REVOKED bit and not &=;
7991         shame on me for this bad copy+paste introduced bug.
7992         (do_we_trust): Add trustmask to allow revoked key override to work.
7993         Chnaged are to allow return of a mofified trustlevel. Adapted the
7994         one caller.
7996         * g10.c: New options --emulate-3des-s2k-bug
7997         * passphrase.c (hash_passphrase): Implemented above.
7999         * mainproc.c (proc_tree): Check for standalone signatures.
8000         (do_check_sig): Print a notice for a standalone revocation
8001         (check_sig_and_print): Do not print an error for unchecked standalone
8002         revocations.
8004 Tue Sep 28 20:54:37 CEST 1999  Werner Koch  <wk@gnupg.de>
8006         * encode.c (encode_simple): Use new CTB when we don't have the
8007         length of the file.  This is somewhat strange as the comment above
8008         indicates that this part is actually fixed for PGP 5 - maybe I simply
8009         lost the source line, tsss.
8011         * armor.c (armor_filter): Set a flag if no OpenPGP data has been found.
8012         * verify.c (verify_signatures): Add an error helptext.
8014 Thu Sep 23 19:24:30 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8016         * openfile.c (open_outfile): Fixed the 8dot3 handling.
8018         * passphrase.c (passphrase_to_dek): Print uid using utf8 func.
8019         * delkey.c (delete_key): Ditto.
8020         * pkclist.c (show_paths,do_edit_ownertrust,do_we_trust): Ditto
8021         (do_we_trust_pre): Ditto.
8022         * trustdb.c (print_user_id,check_uidsigs): Ditto.
8023         * revoke.c (gen_revoke,ask_revoke_sig): Ditto.
8025 Thu Sep 23 09:52:58 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8027         * verify.c (print_file_status): New.
8028         (verify_one_file): Moved status print to th new fnc. Add error status.
8029         * status.c, status.h (STATUS_FILE_ERROR): New
8031 Wed Sep 22 10:14:17 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8033         * openfile.c (make_outfile_name): Use case-insenstive compare for
8034         DOS systems.  Add ".pgp" to the list of know extensions.
8035         (open_outfile): For DOS systems try to replace the suffiy instead of
8036         appending it.
8038         * status.c, status.h: Add STATUS_FILE_{START,DONE}.
8039         * verify.c (verify_one_file): Emit these new stati.
8041         * sign.c (clearsign_file): Avoid duplicated Entries in the "Hash:"
8042         line.  Those headers are now only _not_ printed when there are
8043         only old-style keys _and_ all hashs are MD5.
8045 Mon Sep 20 12:24:41 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8048         * verify.c (verify_files, ferify_one_file): New.
8049         * g10.c:  New command --verify-files
8051 Fri Sep 17 12:56:42 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8053         * g10.c: Add UK spelling as alias for armor options ;-)
8055         * import.c (append_uid): Fixed a SEGV when there is no selfsig and
8056         no subkey.
8057         (merge_sigs): Ditto.  Removed the assertion.
8059 Wed Sep 15 16:22:17 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8061         * g10.c: New option --entropy-dll-name
8063 Mon Sep 13 10:51:29 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8065         * signal.c (got_fatal_signal): Print message using write(2) and
8066         only for development versions.
8068 Mon Sep  6 19:59:08 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8070         * tdbio.c (tdbio_set_dbname): Use mkdir macro
8071         * ringedit.c (add_keyblock_resource): Ditto.
8073 Fri Sep  3 10:04:45 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8075         * pkclist.c (build_pk_list): Skip keys set with --encrypt-to also
8076         when asking for a key.
8078         * plaintext.c (handle_plaintext): Make sure that we don't read a
8079         second EOF in the read loop for partial length packets.
8081         * mainproc.c (check_sig_and_print): print user ID as utf-8.
8083 Thu Sep  2 16:40:55 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8085         * import.c (merge_blocks): First add new subkeys, then merge subkey
8086         certificates.
8087         (merge_sigs): Don't merge subkey signatures here.
8089 Wed Sep  1 15:30:44 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8091         * keygen.c (ask_expire_interval): Fixed bug related to cpr_xx (tnx
8092         Francis J. Lacoste).
8094 Tue Aug 31 17:20:44 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8096         * plaintext.c (do_hash): Hash CR,LF for a single CR.
8097         (ask_for_detached_datafile): Changed arguments to be closer to
8098         those of hash_datafiles and cleanup the code a bit.
8099         * mainproc.c (proc_tree): Workaround for pgp5 textmode detached
8100         signatures.  Changed behavior of asking for data file to be the same
8101         as with provided data files.
8103         * keylist.c (list_keyblock): Use UTF8 print functions.
8105 Mon Aug 30 20:38:33 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8107         * import.c (chk_self_sigs): some s/log_error/log_info/ so that gpg
8108         does not return an error if a key has some invalid packets.
8110         * helptext.c: Fixed some typos and changed the way the
8111         translation works.  The english text is now the keyword for gettext
8112         and not anymore the keyword supplied to the function.  Done after
8113         some discussion with Walter who thinks this is much easier for the
8114         translators.
8116         * misc.c (disable_core_dumps): Don't do it for DOSish systems.
8118         * signal.c (signal_name): Bounds check on signum.
8120 Wed Aug  4 10:34:18 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8122         * pubring.asc: Updated.
8124         * pkclist.c (do_we_trust_pre,check_signatures_trust): Do not print
8125         the warning about --always_trust when --quiet is used.
8127         * pkclist.c (fpr_info): New and called at several places.
8129         * parse-packet.c (dump_sig_subpkt): List revocation key contents.
8131 Mon Jul 26 09:34:46 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8133         * pkclist.c (build_pk_list): Fixed typo in format string.
8135         * trustdb.c (create_shadow_dir): Don't translate the error string.
8137         * g10.c (main): Fixed spelling of user-id.
8138         * getkey.c (find_by_name_pk,find_by_name_sk,
8139         find_by_keyid,find_by_keyid_sk): Ditto and translate it.
8140         * import.c (mark_non_selfsigned_uids_valid,delete_inv_parts): Ditto.
8143 Mon Jul 26 01:01:39 CEST 1999  Michael Roth <mroth@nessie.de>
8145         * g10.c, options.h: New options --no-literal and --set-filesize
8147         * encode.c (encode_simple, encode_crypt): Support for the options
8148         --no-literal and --set-filesize.
8150         * sign.c (sign_file): ditto.
8152 Fri Jul 23 13:53:03 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8155         * ringedit.c (enum_keyblocks): Removed annoying error message in cases
8156         when we have no keyring at all to enum.
8158         * getkey.c (classify_user_id): Rewrote to relax the recognition of
8159         keyIDs and fingerprints (Michael).
8161         * mainproc.c (check_sig_and_print): Print status NO_PUBKEY.
8162         (print_failed_pkenc): Print status NO_SECKEY.
8164         * import.c (mark_non_selfsigned_uids_valid): New.
8165         * g10.c: New option --allow-non-selfsigned-uid.
8167         * pkclist.c (print_fpr): New.
8168         (do_we_trust_pre): Print the fpr before asking whether to use the key
8169         anyway.
8170         (do_edit_ownertrust): Likewise.
8172 Thu Jul 22 20:03:03 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8175         * ringedit.c (enum_keyblocks): Removed annoying error message in cases
8176         when we have no keyring at all to enum.
8178         * getkey.c (classify_user_id): Rewrote to relax the recognition of
8179         keyIDs and fingerprints (Michael).
8181         * mainproc.c (check_sig_and_print): Print status NO_PUBKEY.
8182         (print_failed_pkenc): Print status NO_SECKEY.
8184         * import.c (mark_non_selfsigned_uids_valid): New.
8185         * g10.c: New option --allow-non-selfsigned-uid.
8187 Thu Jul 15 10:15:35 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8189         * g10.c: New options --disable-{cipher,pubkey}-algo.
8191 Wed Jul 14 19:42:08 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8193         * status.h (STATUS_IMPORTED): New.
8194         * import.c (import): Print some status information (Holger Schurig).
8196         * g10.c (main): Make --no-greeting work again. Add a warning when
8197         --force-mds is used.
8199 Tue Jul 13 17:39:25 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8201         * pkclist.c (do_edit_ownertrust): Changed the way help works.
8202         (build_pk_list): Implemented default recipient stuff.
8203         * g10.c: New options --default-recipient[-self]
8204         (main): Suppress greeting in most cases, entering a passphrase or
8205         a missing value is not considered to be interactive use.
8206         Merged --print-md and --print-mds; the latter is now obsolete.
8207         Changed the way --gen-random works and documented it.
8208         Changed the way --gen-prime works and add a man entry.
8209         * g10.c (MAINTAINER_OPTIONS): Removed.
8211 Mon Jul 12 18:45:57 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8213         * keyedit.c (keyedit_menu): Add arg sign_mode and changed callers
8214         * g10.c (main): New command --lsign-key.
8216 Mon Jul 12 14:55:34 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8218         * mainproc.c (kidlist_item): New.
8219         (release_list): Release failed pk-enc-list.
8220         (print_failed_pkenc): New
8221         (proc_encrypted): Print info about failed PK enc.
8223         * openfile.c (make_outfile_name): s/error/info/
8225         * passphrase.c (passphrase_to_dek): Return an empty passphrase when
8226         in batch mode and don't make the warning message fatal
8227         * seckey-cert.c (check_secret_key): Try only once when in batch mode.
8229         * g10.c (make_username): New.
8231 Thu Jul  8 16:21:27 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8234         * packet.h (PKT_ring_trust): New
8235         * parse-packet.c (parse_trust): Store trust value
8236         * build-packet (build_packet): Ignore ring trust packets.
8237         * mainproc.c (add_ring_trust): New.
8238         (list_node): Print "rtv" records.
8239         * g10.c: New option --with-fingerprint.
8241         * trustdb.c (verify_own_keys): Don't insert if we are dry running
8242         (check_trust): Ditto.
8244 Wed Jul  7 13:08:40 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8246         * Makefile.am: Support for libtool.
8248         * keygen.c (ask_expire_interval): Hack to allow for an expire date.
8250         * trustdb.c (do_update_trust_record,update_trust_record): Splitted.
8251         (check_trust_record): New.
8252         (check_trust,build_cert_tree): Check the dir record as needed.
8253         (upd_pref_record): Removed.
8254         (make_pref_record): New.
8255         (propagate_validity): Stop as soon as we have enough validity.
8257         * tbdio.c (MAX_CACHE_ENTRIES_HARD): Increased the limit.
8260 Fri Jul  2 11:45:54 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8262         * g10.c (g10_exit): Dump random stats.
8264         * sig-check.c (check_key_signature,check_key_signature2): Enhanced
8265         version and wrapper for old function.
8266         (do_signature_check,signature_check): Ditto.
8268 Thu Jul  1 12:47:31 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8271         * keyedit.c (show_key_with_all_names): Print a notice for disabled keys.
8272         (enable_disable_keys): Add functionality
8273         * pkclist.c (edit_ownertrust): preserve disabled state.
8274         (build_pk_list): Skip disabled keys.
8275         * trustdb.c (upd_one_ownertrust): Ditto.
8276         (build_cert_tree): Mask the ownertrust.
8277         (trust_letter): Mask the value.
8278         (do_check): Take disabled flag into account.
8280         * passphrase.c (passphrase_to_dek): Add a pubkey_algo arg and changed
8281         all callers.
8283         * g10.c (utf8_strings): 2 new options.
8285         * trustdb.c (insert_trust_record_by_pk): New, replaces the next one.
8286         (insert_trust_record): Now takes a keyblock as arg.  Changed all
8287         callers to use the appropritae function.
8289         * openfile.c (ask_outfile_name): New.
8290         * plaintext.c (handle_plaintext): Ask for filename if there is
8291         no valid syntax. Don't use fname varbatim but filter it.
8293 Tue Jun 29 21:44:25 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8296         * trustdb.h (TRUST_FLAG_DISABLED): New.
8298         * status.c (USE_CAPABILITIES): Capabilities support (Remi).
8300         * tdbio.c : Added new fields to the DIR record.
8301         (tdbio_write_record): Fixed the update of the hash tables.
8302         (tdbio_delete_record): Drop the record from the hash tables.
8303         (drop_from_hashtbl): New.
8305         * status.c (cpr_get): Special online help mode.
8306         * helptext.c ("keyedit.cmd"): Removed.
8307         * keyedit.c (keyedit_menu): Use only help system.
8308         (enable_disable_key): New bit doies not yet work.
8310 Sat Jun 26 12:15:59 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8313         * dearmor.c (enarmor_file): Fixed comment string.
8314         * tdbdump.c (export_ownertrust): Text fix.
8315         * tbio.c (tdbio_invalid): Ditto.
8317         * parse-packet.c (parse_key): Made temp buffer larger.
8319         * Makefile.am (install-data-local): Add missing backslashes
8321 Tue Jun 15 12:21:08 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8323         * g10.c (main): Made iterated+salted the default S2K method.
8325         * Makefile.am (install-data-local): Use DESTDIR.
8327         * passphrase.c (passphrase_to_dek): Emit missing-passphrase while in
8328         batchmode.
8330         * parse-packet.c (parse_pubkeyenc): Fixed a SEGV.
8332 Mon Jun 14 21:18:54 CEST 1999 Michael Roth <mroth@nessie.de>
8334         * g10.c: New options --openpgp, --no-tty, --emit-version,
8335           --default-comment and --lock-multiple
8337 Thu Jun 10 14:18:23 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8339         * free-packet.c (free_encrypted): Fixed EOF case (Remi).
8340         (free_plaintext): Ditto.
8342         * helptext.c (keyedit.delsig.unknown): New (Remi).
8343         * keyedit.c (print_and_check_one_sig): Add arg print_without_key and
8344         changed all callers to make use of it (Remi):
8346 Tue Jun  8 13:36:25 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8348         * keylist.c (print_key_data): New and called elsewhere.
8349         * g10.c: New option --with-key-data
8351 Wed Jun  2 14:17:19 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8353         * mainproc.c (proc_tree): Yet another bad hack to cope with
8354         broken pgp2 created detached messages in textmode.
8356 Tue Jun  1 16:01:46 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8358         * openfile.c (make_outfile_name): New.
8359         * plaintext.c (handle_plaintext): Outputfile is now the inputfile
8360         without the suffix.
8361         * g10.c: New option --use-embedded-filename
8363 Mon May 31 19:41:10 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8365         * g10.c (main): Fix for SHM init (Michael).
8367         * compress.c, encr-data.c, mdfilter.c,
8368           plaintext.c, free-packet.c: Speed patches (Rémi).
8370 Thu May 27 09:40:55 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8372         * status.c (cpr_get_answer_yes_no_quit): New.
8373         * keyedit.c (menu_delsig): New.
8374         (check_all_keysigs): Splitted.
8375         (print_and_check_one_sig): New.
8377 Wed May 26 14:36:29 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8379         * build-packet.c (build_sig_subpkt): Support large packets.
8380         * parse-packet.c (enum_sig_subpkt): Replaces parse_sig_subpkt.
8381         * mainproc.c (print_notation_data): Print all notation packets.
8382         * g10.c (add_notation_data): Add a way to specify the critical flag.
8383         (main): Add option --set-policy-url.
8384         (check_policy_url): Basic checks.
8385         * sign.c (mk_notation_and_policy): Replaces mk_notation.
8387         * parse-packet.c (can_handle_critical): Moved decision whether we can
8388         handle critical subpacket to an extra function.
8390 Tue May 25 19:50:32 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8392         * sign.c (sign_file): Always use compression algo 1 for signed
8393         onyl file becuase we can´ be sure the the verifier supports other
8394         algorithms.
8396         * build-packet.c (build_sig_subpkt): Support for notation data.
8397         * sign.c (sign_file,clearsign_file,make_keysig_packet): Ditto.
8398         (mk_notation): New.
8399         * g10.c (add_notation_data): New and add option -N
8400         * mainproc.c (print_notation_data): New.
8401         (check_sig_and_print): Print any notation data of the signed text.
8403 Sun May 23 14:20:22 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8405         * pkclist.c (check_signatures_trust): Print a warning and return
8406         immediateley if opt.always_trust is true.
8408         * g10.c (main): Corrected handling of no-default-keyring
8410         * pkclist.c (algo_available): Disable Twofish until we have settled
8411         how to do the MDC.
8413         * hkp.c: Disable everything for mingw32
8415 Sat May 22 22:47:26 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8417         * mainproc.c (check_sig_and_print): Add sig creation time to the
8418         VALIDSIG status output. Add more info to the ERRSIG output.
8419         * sig-check.c (signature_check): Add sig time after epoch to SIG_ID.
8421         * import.c (import_one): Merge duplicate user IDs.
8422         (collapse_uids): New.
8423         * kbnode.c (move_kbnode): New.
8424         (remove_kbnode): New.
8425         * keyedit.c (keyedit_menu): Call collapse_uids.
8427         * g10.c: new option --logger-fd.
8429         * import.c: s/log_*_f/log_*/
8431 Thu May 20 14:04:08 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8433         * misc.c (pull_in_libs): do the volatile only for gcc
8435         * sig-check (signature_check): Emit SIG_iD only for classes 0 and 1.
8437         * armor.c (armor_filter): Add detection of PGP2 created clearsigs.
8438         (fake_packet): A tab is not a WS for pgp2 - handle this.
8439         * textfilter.c (len_without_trailing_chars): New.
8440         (copy_clearsig_text): Add pgp2mode arg.
8441         * sign.c (clearsign_file): pass old_style to the above fnc.
8444 Wed May 19 16:04:30 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8446         * g10.c: New option --interactive.
8448         * mainproc.c (proc_plaintext): Add workaround for pgp2 bug
8449         (do_check_sig): Ditto.
8450         (proc_tree): Ditto.
8451         * plaintext.c (do_hash): Ditto.
8452         (hash_datafiles): Ditto, add an arg, changed all callers.
8453         * mdfilter.c (md_filter): Add support for the alternate hash context.
8455 Mon May 17 21:54:43 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8457         * parse-packet.c (parse_encrypted): Support for PKT_ENCRYPTED_MDC.
8458         * build-packet.c (do_encrypted_mdc): Ditto.
8459         * cipher.c (write_header): Add mdc hashing.
8460         (cipher_filter): write out the hash.
8461         * mainproc.c (do_proc_packets): Add PKT_ENCRYPTED_MDC.
8462         * encr-data.c (decrypt_data): Add mdc hashing.
8463         (mdc_decode_filter): New.
8465         * parse-packet.c (parse_sig_subpkt): Fixed stupid bug for subpkt
8466         length calculation
8467         (parse_signature): Fixed even more stupid bug.
8469 Sat May  8 19:28:08 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8471         * build-packet.c (do_signature): Removed MDC hack.
8472         * encode.c (encode_crypt_mdc): Removed.
8473         * mainproc.c (do_check_sig): Removed MDC hack.
8474         (check_sig_and_print): Ditto.
8475         * parse-packet.c (parse_signature): Ditto.
8476         * sig-check.c (mdc_kludge_check): Ditto.
8477         * free-packte.c (copy_signature, free_seckey_enc): Ditto.
8479         * parse-packet.c (parse_signature,parse_key): Store data of
8480         unknown algorithms with mpi_set_opaque inseatd of the old
8481         faked data stuff.
8482         (read_rest): Removed.
8483         (read_rest2): Renamed to read_rest
8484         * build-packet.c (write_fake_data): Use mpi_get_opaque.
8485         * free-packet.c (cp_fake_data): Removed and cahnged all callers
8486         to use mpi_copy.
8487         (free_pubkey_enc,free_seckey_enc,release_public_key_parts,
8488          release_secret_key_parts): Use mpi_free for opaque data.
8490 Thu May  6 14:18:17 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8492         * trustdb.c (check_trust): Check for revoked subkeys.
8493         * pkclist.c (do_we_trust): Handled revoked subkeys.
8494         (do_we_trust_pre): Ditto.
8495         (check_signatures_trust): Ditto.
8497         * build-packet.c (hash_public_key): Fix for ancient g10 keys.
8499         * mainproc.c (do_proc_packets): Return EOF if no data has been read.
8500         * g10.c (main): Catch errors for default operation.
8502 Thu Apr 29 12:29:22 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8504         * sign.c (sign_file): Fixed hashing in case of no subpackets.
8505         (clearsign_file): Ditto.
8506         (make_keysig_packet): Ditto.
8508 Wed Apr 28 13:03:03 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8510         * keyedit.c (keyedit_menu): Add new command revkey.
8511         * (menu_revkey): New.
8514 Mon Apr 26 17:48:15 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8516         * parse-packet.c (parse_signature): Add the MDC hack.
8517         * build-packet.c (do_signature): Ditto.
8518         * free-packet.c (free_seckey_enc,copy_signature,cmp_signatures): Ditto.
8519         * mainproc.c (do_check_sig): Ditto.
8520         * sig-check.c (mdc_kludge_check): New.
8521         * encode.c (encrypt_mdc_file): New.
8523         * keyedit.c (check_all_keysigs): List revocations.
8524         * (menu_revsig): New.
8525         * sign (make_keysig_packet): Support for class 0x30.
8527 Sun Apr 18 20:48:15 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8529         * pkclist.c (select_algo_from_prefs): Fixed the case that one key
8530         has no preferences (Remi Guyomarch).
8532         keylist.c (list_keyblock): ulti_hack to propagate trust to all uids.
8534 Sun Apr 18 10:11:28 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8536         * seckey-cert.c (do_check): Use real IV instead of a 0 one, so that
8537         it works even if the length of the IV doesn't match the blocksize.
8538         Removed the save_iv stuff.
8539         (protect_secret_key): Likewise.  Create the IV here.
8540         * packet.h (PKT_secret_key): Increased size of IV field and add a
8541         ivlen field.
8542         * parse-packet.c (parse_key): Use the len protect.ivlen.
8543         * build-packet.c (do_secret_key). Ditto.
8545         * getkey.c (key_byname): Close keyblocks.
8547         * Makefile.am (gpgm): Removed this
8548         * g10.c: Merged gpg and gpgm
8550         * import.c (import): Utilize option quiet.
8551         * tdbio.c (tdbio_set_dbname): Ditto.
8552         * ringedit.c (add_keyblock_resource,keyring_copy): Ditto.
8554         * keyedit.c (sign_uids): Add some batch support.
8556         * g10.c (main): add call to tty_batchmode.
8558 Fri Apr  9 12:26:25 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8560         * status.c (write_status_text): Some more status codes.
8561         * passphrase_to_dek (passphrase_to_dek): add a status code.
8562         * seckey_cert.c (check_secret_key): Likewise.
8564         * encr-data.c (decrypt_data): Reverse the last changes
8565         * cipher.c (write_header): Ditto.
8567         * parse-packet.c (parse_key): Dropped kludge for ancient blowfish mode.
8569 Thu Apr  8 09:35:53 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8571         * mainproc.c (proc_encrypted): Add a new status output
8572         * passphrase.c (passphrase_to_dek): Ditto.
8573         * status.h status.c: Add new status tokens.
8575 Wed Apr  7 20:51:39 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8577         * encr-data.c (decrypt_data): Fixes for 128 bit blocksize
8578         * cipher.c (write_header): Ditto.
8579         * seckey-cert.c (do_check): Ditto.
8580         (protect_secret_key). Ditto.
8581         * misc.c (print_cipher_algo_note): Twofish is now a standard algo.
8583         * keygen.c (do_create): Fixed spelling (Gaël Quéri)
8584         (ask_keysize): Only allow keysizes up to 4096
8586         * ringedit.c (add_keyblock_resource): chmod newly created secrings.
8588         * import.c (delete_inv_parts): Fixed accidently deleted subkeys.
8590 Tue Apr  6 19:58:12 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8592         * armor.c: Removed duped include (John Bley)
8593         * mainproc.c: Ditto.
8595         * build-packet.c (hash_public_key): Fixed hashing of the header.
8597         * import.c (delete_inv_parts): Allow import of own non-exportable sigs.
8599 Sat Mar 20 13:59:47 CET 1999  Werner Koch  <wk@isil.d.shuttle.de>
8601         * armor.c (fake_packet): Fix for not not-dash-escaped
8603 Sat Mar 20 11:44:21 CET 1999  Werner Koch  <wk@isil.d.shuttle.de>
8605         * g10.c (main): Added command --recv-keys
8606         * hkp.c (hkp_import): New.
8608 Wed Mar 17 13:09:03 CET 1999  Werner Koch  <wk@isil.d.shuttle.de>
8610         * trustdb.c (check_trust): add new arg add_fnc and changed all callers.
8611         (do_check): Ditto.
8612         (verify_key): Ditto.
8613         (propagate_validity): Use the new add_fnc arg.
8614         (print_user_id): Add the FILE arg.
8615         (propagate_ownertrust): New.
8616         * pkclist.c (add_ownertrust_cb): New and changed the add_ownertrust
8617         logic.
8619         * getkey.c (get_keyblock_bylid): New.
8620         * trustdb.c (print_uid_from_keyblock): New.
8621         (dump_tn_tree_with_colons): New.
8622         (list_trust_path): Add colon print mode.
8624         * trustdb.c (insert_trust_record): Always use the primary key.
8626         * encode.c (encode_simple): Added text_mode filter (Rémi Guyomarch)
8627         (encode_crypt): Ditto.
8629         * mainproc.c (proc_pubkey_enc): Added status ENC_TO.
8630         * armor.c (armor_filter): Added status NODATA.
8631         * passphrase.c (passphrase_to_dek): Always print NEED_PASSPHRASE
8632         * seckey_cert.c (check_secret_key): Added BAD_PASS status.
8634         * g10.c (main): Set g10_opt_homedir.
8636 Sun Mar 14 19:34:36 CET 1999  Werner Koch  <wk@isil.d.shuttle.de>
8638         * keygen.c (do_create): Changed wording of the note (Hugh Daniel)
8640 Thu Mar 11 16:39:46 CET 1999  Werner Koch  <wk@isil.d.shuttle.de>
8642         * tdbdump.c: New
8644         * trustdb.c (walk_sigrecs,do_list_sigs,list_sigs,
8645         list_records,list_trustdb,export_ownertrust,import_ownertrust): Moved
8646         to tdbdump.c
8647         (init_trustdb): renamed to setup_trustdb.  Changed all callers.
8648         (do_init_trustdb): renamed to init_trustdb().
8649         * trustdb.c (die_invalid_db): replaced by tdbio_invalid.
8650         * tdbio.c (tdbio_invalid): New.
8652         * import.c (delete_inv_parts): Skip non exportable signatures.
8653         * keyedit.c (sign_uid_mk_attrib): New.
8654         (sign_uids): Add the local argument.
8655         (keyedit_menu): New "lsign" command.
8656         * trustdb.c (register_trusted_key): Removed this and all related stuff.
8657         * g10.c (oTrustedKey): Removed option.
8659         * tdbio.h (dir.valcheck): New trustdb field.
8660         * tdbio.c: Add support for this field
8661         (tdbio_read_modify_stamp): New.
8662         (tdbio_write_modify_stamp): New.
8663         * trustdb.c (do_check): Check against this field. Removed cache update.
8664         (verify_key): Add cache update.
8665         (upd_uid_record): Some functional changes.
8666         (upd_cert_record): Ditto
8668 Wed Mar 10 11:26:18 CET 1999  Werner Koch  <wk@isil.d.shuttle.de>
8670         * keylist.c (list_keyblock): Fixed segv in uid. Print 'u' as
8671         validity of sks.
8673 Mon Mar  8 20:47:17 CET 1999  Werner Koch  <wk@isil.d.shuttle.de>
8675         * getkey.c (classify_user_id): Add new mode 12 (#<lid>).
8677         * seckey-cert.c (check_secret_key): replaced error by info.
8679         * trustdb.c (query_trust_info): Add another arg, changed all callers.
8680         (check_trust): Ditto.
8681         (do_check): Ditto.
8682         (verify_key): Handle namehash.
8683         * keylist.c (list_keyblock): print trust info for user ids.
8685         * sig-check.c (signature_check): Add sig-created to status output.
8687 Tue Mar  2 16:44:57 CET 1999  Werner Koch  <wk@isil.d.shuttle.de>
8689         * textfilter.c (copy_clearsig_text): New.
8690         (clearsign): Removed.
8691         * sign.c (clearsign_file): does not use textfiler anymore.
8693         * keygen.c (ask_user_id): print a note about the used charset.
8695 Tue Mar  2 10:38:42 CET 1999  Werner Koch  <wk@isil.d.shuttle.de>
8697         * sig-check.c (signature_check): sig-id now works for all algos.
8699         * armor.c (armor_filter): Fixed armor bypassing.
8701 Sun Feb 28 19:11:00 CET 1999  Werner Koch  <wk@isil.d.shuttle.de>
8703         * keygen.c (ask_user_id): Don't change the case of email addresses.
8704         (has_invalid_email_chars): Adjusted.
8706         * keylist.c (list_one): Really list serect keys (Remi Guyomarch)
8708         * keyedit.c (menu_select_uid): Add some braces to make egcs happy.
8709         (menu_select_key): Ditto.
8711         * mainproc.c (do_proc_packets): List sym-enc packets (Remi Guyomarch)
8713 Fri Feb 26 17:55:41 CET 1999  Werner Koch  <wk@isil.d.shuttle.de>
8715         * pkclist.c (build_pk_list): Return error if there are no recipients.
8717         * sig-check.c (signature_check): New signature id feature.
8718         * armor.c (make_radic64_string): New.
8720         * mainproc.c (proc_pubkey_enc): early check for seckey availability.
8722         * pkclist.c (do_we_trust_pre): print user id before asking.
8724         * ringedit.c (add_keyblock_resource,get_keyblock_handle): Cleaner
8725         handling of default resource.
8728 Thu Feb 25 18:47:39 CET 1999  Werner Koch  <wk@isil.d.shuttle.de>
8730         * pkclist.c (algo_available): New.
8731         (select_algo_from_prefs): Check whether algo is available.
8733         * ringedit.c (keyring_copy): Take care of opt.dry_run.
8734         (do_gdbm_store): Ditto.
8735         * openfile.c (open_outfile). Ditto.
8736         (copy_options_file): Ditto.
8737         * trustdb.c (update_trustdb): Ditto.
8738         (clear_trust_checked_flag): Ditto.
8739         (update_trust_record): Ditto.
8740         (insert_trust_record): Ditto.
8742 Wed Feb 24 11:07:27 CET 1999  Werner Koch  <wk@isil.d.shuttle.de>
8744         * keylist.c (secret_key_list): Now really list the secret key.
8746         * trustdb.c (do_init_trustdb): New. Init is now deferred.
8748 Mon Feb 22 20:04:00 CET 1999  Werner Koch  <wk@isil.d.shuttle.de>
8750         * getkey.c (lookup_sk): Return G10ERR_NO_SECKEY and not x_PUBKEY.
8752 Fri Feb 19 15:49:15 CET 1999  Werner Koch  <wk@isil.d.shuttle.de>
8754         * pkclist.c (select_algo_from_prefs): retrieve LID if not there.
8756         * armor.c (fake_packet): Replaced ugly lineending handling.
8758         * g10.c (oNoEncryptTo): New.
8759         * pkclist.c (build_pk_list): Implemented this option.
8761         * g10.c (main): Greeting is now printed to stderr and not to tty.
8762         Use add_to_strlist() instead of direct coding.
8764         * import.c (import): Use iobuf_push_filter2.
8766         * mainproc.c (check_sig_and_print): Print all user ids
8767         for good signatures.
8768         * getkey.c (get_pubkeyblock): New.
8770         * import.c (chk_self_sigs): Fixed SEGV for unbounded class 0x18 keys.
8771         (delete_inv_parts): Delete special marked packets.
8773 Tue Feb 16 14:10:02 CET 1999  Werner Koch  <wk@isil.d.shuttle.de>
8775         * g10.c (main): New option --encrypt-to
8777         * pkclist.c (build_pk_list): Implemented encrypt-to.
8779         * parse-packet.c (parse_user_id): Removed the hack to work with
8780         utf-8 strings.
8782         * g10.c (main): Install lockfile cleanup handler.
8783         * tdbio.c (cleanup): Removed: this is now handled by dotlock.
8785 Sat Feb 13 14:13:04 CET 1999  Werner Koch  <wk@isil.d.shuttle.de>
8787         * tdbio.c (tdbio_set_dbname): Init lockhandle for a new trustdb
8789 Wed Feb 10 17:15:39 CET 1999  Werner Koch  <wk@isil.d.shuttle.de>
8791         * g10.c (main): check for development version now in configure
8793         * tdbio.c (tdbio_write_record): Add uid.validity
8794         (tdbio_read_record) : Ditto.
8795         (tdbio_dump_record) : Ditto.
8797         * keygen.c (keygen_add_std_prefs): Replaced Blowfish by Twofish,
8798         removed MD5 and Tiger.
8799         * pubkey-enc.c (get_it): Suppress warning about missing Blowfish
8800         in preferences in certain cases.
8802         * ringedit.c (lock_rentry,unlock_rentry): New.
8804         * getkey.c (key_byname): Pass ret_kb down to lookup_xx.
8806         * armor.c (armor_filter): No output of of empty comment lines.
8807         Add option --no-version to suppress the output of the version string.
8809         * getkey.c: Release the getkey context for auto context variables.
8811 Sun Jan 24 18:16:26 CET 1999  Werner Koch  <wk@isil.d.shuttle.de>
8813         * getkey.c: Changed the internal design to allow simultaneous
8814         lookup of multible user ids
8815         (get_pubkey_bynames): New.
8816         (get_seckey_bynames): New.
8817         (get_seckey_next): New.
8818         (get_seckey_end): New.
8819         * keylist.c (list_one): Use the new functions.
8821         * keylist.c (list_keyblock): add a newline for normal listings.
8823         * g10.c (--recipient): New option name to replace --remote-user
8826 Wed Jan 20 18:59:49 CET 1999  Werner Koch  <wk@isil.d.shuttle.de>
8828         * textfilter.c: Mostly rewritten
8829         * plaintext.c (handle_plaintext): Use now text_filter semantics.
8831 Tue Jan 19 19:34:58 CET 1999  Werner Koch  <wk@isil.d.shuttle.de>
8833         * export.c (export_pubkeys_stream): New.
8834         (do_export_stream): New.
8835         * g10.c (aSendKeys): New command.
8836         * hkp.c (hkp_export): New.
8838         * compress.c (do_uncompress): Hack for algo 1 and 1.1.3
8840 Sun Jan 17 11:04:33 CET 1999  Werner Koch  <wk@isil.d.shuttle.de>
8842         * textfilter.c (text_filter): Now uses iobuf_read_line().
8843         (read_line): Removed.
8845         * armor.c (trim_trailing_spaces): Removed and replaced
8846         by trim_trailing_ws from libutil
8848 Sat Jan 16 12:03:27 CET 1999  Werner Koch  <wk@isil.d.shuttle.de>
8850         * hkp.c (hkp_ask_import): Use only the short keyid
8852 Sat Jan 16 09:27:30 CET 1999  Werner Koch  <wk@isil.d.shuttle.de>
8854         * import.c (import_key_stream): New
8855         (import): New, moved most of import_keys here.
8856         * g10.c: New option --keyserver
8857         * mainproc.c (check_sig_and_print): Hook to import a pubkey.
8859         * pref.c pref.h : Removed
8861         * hkp.c hkp.h: New
8863 Wed Jan 13 14:10:15 CET 1999  Werner Koch  <wk@isil.d.shuttle.de>
8865         * armor.c (radix64_read): Print an error if a bad armor was detected.
8867 Wed Jan 13 12:49:36 CET 1999  Werner Koch  <wk@isil.d.shuttle.de>
8869         * armor.c (radix64_read): Now handles malformed armors produced
8870         by some buggy MUAs.
8872 Tue Jan 12 11:17:18 CET 1999  Werner Koch  <wk@isil.d.shuttle.de>
8874         * ringedit.c (find_keyblock_bysk): New.
8876         * skc_list.c (is_insecure): New.
8877         (build_sk_list): usage check for insecure keys.
8879         * import.c (chk_self_sigs): Add handling for subkeys.
8880         (delete_inv_parts): Skip unsigned subkeys
8882         * sig-check.c (do_check): Print info if the signature is older
8883         than the key.
8884         * keygen.c (generate_subkeypair): Fail on time warp.
8885         * sign.c (do_sign): Ditto.
8887 Sun Jan 10 15:10:02 CET 1999  Werner Koch  <wk@isil.d.shuttle.de>
8889         * armor.c (fake_packet): Fixed not-dash-escaped bug.
8891 Sat Jan  9 16:02:23 CET 1999  Werner Koch  <wk@isil.d.shuttle.de>
8893         * sig-check.c (do_check): Output time diff on error
8895         * status.c (STATUS_VALIDSIG): New.
8896         (is_status_enabled): New.
8897         * mainproc.c (check_sig_and_print): Issue that status message.
8899         * plaintext.c (special_md_putc): Removed
8901         * armor.c (armor_filter): print error for truncated lines.
8903         * free-packet.c (free_encrypted): Revomed call to set_block_mode.
8904         (free_plaintext): Ditto.
8906 Thu Jan  7 18:00:58 CET 1999  Werner Koch  <wk@isil.d.shuttle.de>
8908         * pkclist.c (add_ownertrust): Fixed return value.
8910         * encr-data.c (decrypt_data): Disabled iobuf_set_limit and
8911         iobuf_pop_filter stuff.
8912         * compress.c (handle_compressed): Disabled iobuf_pop_filter.
8914         * packet.h (PKT_secret_key): Add is_primary flag.
8915         * parse-packet.c (parse_key): Set this flag.
8916         * passphrase.c (passphrase_to_dek): Kludge to print the primary
8917         keyid - changed the API: keyid must now hold 2 keyids.
8918         * getkey.c (get_primary_seckey): New.
8919         * seckey-cert.c (do_check): pass primary keyid to passphrase query
8921         * tbdio.c (open_db): removed the atexit
8922         (tdbio_set_dbname): and moved it to here.
8924         * armor.c: Rewrote large parts.
8926 Tue Dec 29 19:55:38 CET 1998  Werner Koch  <wk@isil.d.shuttle.de>
8928         * revoke.c (gen_revoke): Removed compression.
8930         * pkclist.c (do_we_trust_pre): special check for revoked keys
8932         * trustdb.c (update_trust_record): Fixed revoke flag.
8934 Tue Dec 29 14:41:47 CET 1998  Werner Koch  <wk@isil.d.shuttle.de>
8936         * misc.c (disable_core_dumps): Check for EINVAL (Atari)
8938         * getkey (merge_one_pk_and_selfsig): Fixed search of expiredate.
8939         (merge_keys_and_selfsig): Ditto.
8941         * free-packet.c (cmp_public_keys): cmp expire only for v3 packets
8942         (cmp_secret_keys): Ditto.
8943         (cmp_public_secret_key): Ditto.
8945 Wed Dec 23 17:12:24 CET 1998  Werner Koch  <wk@isil.d.shuttle.de>
8947         * armor.c (find_header): Reset not_dashed at every header
8949 Wed Dec 23 13:18:14 CET 1998  Werner Koch  <wk@isil.d.shuttle.de>
8951         * pkclist.c (add_ownertrust): Refresh validity values.
8953         * trustdb.c (enum_cert_paths_print): New arg refresh.
8955         * ringedit.c: Fixed problems fix keyrings
8956         * parse-packet.c (dbg_parse_packet): New debug functions.
8958         * getkey.c (getkey_disable_caches): New.
8959         * import.c (import_keys): Disable caches.
8961 Thu Dec 17 18:31:15 CET 1998  Werner Koch  <wk@isil.d.shuttle.de>
8963         * misc.c (trap_unaligned): Only for glibc 1
8965         * sign.c (write_dash_escaped): Now escapes "From " lines
8966         * g10.c: New option --escape-from-lines
8968         * trustdb.c (sort_tsl_list): New
8969         (list_trust_path): Now prints sorted list.
8970         (enum_cert_paths): Likewise.
8971         (enum_cert_paths_print): New.
8972         (print_paths): New printing format.
8973         * pkclist.c (add_ownertrust): New arg quit.
8974         (edit_ownertrust): New quit selection and does not query
8975         the recipients ownertrust anymore.
8976         (add_ownertrust): Print the ceritficate path.
8979 Mon Dec 14 21:18:49 CET 1998  Werner Koch  <wk@isil.d.shuttle.de>
8981         * parse-packet.c (parse_signature): Now checks for critical bit
8982         (parse_sig_subpkt): Splitted.
8983         (parse_one_sig_subpkt): New.
8984         * sig-check.c (do_check): handle critical bit.
8986 Sun Dec 13 14:10:56 CET 1998  Werner Koch  <wk@isil.d.shuttle.de>
8988         * pcklist.c (select_algo_from_prefs): Preferences should
8989         now work (lost the != ? )
8991 Thu Dec 10 20:15:36 CET 1998  Werner Koch  <wk@isil.d.shuttle.de>
8993         * ringedit.c (gdbm_store): Fix for inserts
8995         * g10.c (main): New option --export-all
8996         * export.c (export_pubkeys): New arg.
8997         (do_export): Now may skip old keys.
8999         * status.c: Minor patches for Sun's cc
9001         * keygen.c (ask_algo): Disabled v3 ElGamal choice, rearranged
9002          the numbers.  Add a warning question when a sign+encrypt key
9003          is selected.
9005         * g10.c (do_not_use_RSA): Removed.
9006         * misc.c (print_pubkey_algo_note): New as replacement for the
9007         do_not_use_RSA() and chnaged all callers.
9008         (print_cipher_algo_note): New.
9009         (print_hash_algo_note): New.
9011         * cipher.c (write_header): Add a call to print_cipher_algo_note.
9012         * seckey-cert.c (protect_secret_key): Ditto
9013         * sign.c (do_sign): Add a call to print_digest_algo_note.
9015         * getkey.c (get_long_user_id_string): New.
9016         * mainproc.c (check_sig_and_print): Changed the format of the
9017         status output.
9019         * encrypt.c (write_pubkey_enc_from_list): print used symmetric cipher.
9021         * pkclist.c (do_we_trust): Changed a message.
9023 Wed Dec  9 13:41:06 CET 1998  Werner Koch  <wk@isil.d.shuttle.de>
9025         * misc.c (trap_unaligned) [ALPHA]: Only if UAC_SIGBUS is defined.
9027         * sign.c (write_dash_escaped): Add the forgotten patch by Brian Moore.
9029         * compress.c (do_uncompress): Fixed the inflating bug.
9032 Tue Dec  8 13:15:16 CET 1998  Werner Koch  <wk@isil.d.shuttle.de>
9034         * trustdb.c (upd_uid_record): Now uses the newest self-signature
9035         (insert_trust_record): Now calls update with recheck set to true.
9036         (register_trusted_key): New.
9037         (verify_own_keys): Enhanced by list of trusted keys.
9039         * g10.c (main): Print a warning when a devel version is used.
9040         (main): New option --trusted-key
9042         * import.c (merge_blocks): Fixed merging of new user ids and
9043         added merging of subkeys.
9044         (append_uid): Ditto.
9045         (merge_keysig): New.
9046         (append_key): New.
9047         * getkey.c (merge_one_pk_and_selfsig): Get the expiration time
9048         from the newest self-signature.
9049         (merge_keys_and_selfsig): Ditto.
9051         * free-packet.c (cmp_secret_key): New.
9054 Fri Nov 27 21:37:41 CET 1998  Werner Koch  <wk@isil.d.shuttle.de>
9056         * g10.c: New option --lock-once
9057         * tdbio.c (open_db): Add an atexit
9058         (cleanup): New.
9059         (tdbio_sync): Add locking.
9060         (tdbio_end_transaction): Ditto.
9061         (put_record_into_cache): Ditto.
9062         * ringedit.c (keyring_copy): Ditto.
9063         (cleanup): New.
9064         (add_keyblock_resource): Add an atexit.
9066 Fri Nov 27 15:30:24 CET 1998  Werner Koch  <wk@isil.d.shuttle.de>
9068          * armor.c (find_header): Another fix for clearsigs.
9070 Fri Nov 27 12:39:29 CET 1998  Werner Koch  <wk@isil.d.shuttle.de>
9073         * status.c (display_help): Removed.
9074         * helptext.c: New and removed the N_() from all cpr_gets.
9077 Fri Nov 20 16:54:52 1998  Werner Koch  (wk@isil.d.shuttle.de)
9079         * g10.c (main): New option --not-dash-escaped
9080         * sign.c (write_dashed_escaped): Ditto.
9081         * armor.c (find_header): Support for NotDashEscaped header.
9083         * getkey.c: print "disabled cache.." only if verbose is used.
9085 Thu Nov 19 07:17:31 1998  Werner Koch  <werner.koch@guug.de>
9087         * parse-packet.c (dump_sig_subpkt): Fixed expire listing
9088         * getkey.c (merge_keys_and_selfsig): Fixed expire calculation.
9089         (merge_one_pk_and_selfsig): Ditto.
9090         * keyedit.c (menu_expire). Ditto.
9091         * keygen.c (keygen_add_key_expire): Ditto.
9092         (ask_expire_interval): New and changed all local function to use
9093         this instead.
9094         (keygen_add_key_expire): Opaque should now be a public key;
9095         changed all callers.
9097         * parse.packet.c (parse): use skip_rest to skip packets.
9099         * keyedit.c (keyedit_menu): New arg for cmdline cmds.
9101 Wed Nov 18 20:33:50 1998  Werner Koch  (wk@isil.d.shuttle.de)
9103         * trustdb.c (check_trustdb): Now rechecks all gived userids.
9104         (collect_paths): Some fixes.
9105         (upd_pref_records): Skips empty items, evaluate all items.
9107         * parse-packet.c (dump_sig_subpkt): Better listing of prefs.
9108         (skip_packet): Now knows about marker packet
9110         * g10.c: removed cmd "--edit-sig".
9112         * pubring.asc: Updated.
9114 Sat Nov 14 14:01:29 1998  Werner Koch  (wk@isil.d.shuttle.de)
9116         * g10.c (main): Changed syntax of --list-trust-path
9117         * trustdb.c (list_trust_path): Replaced max_depth by
9118         opt.max_cert_depth
9120 Fri Nov 13 07:39:58 1998  Werner Koch  <werner.koch@guug.de>
9122         * trustdb.c (collect_paths): Removed a warning message.
9123         (enum_trust_web): Removed.
9124         (enum_cert_paths): New.
9125         * pkclist.c (add_ownertrust): Changed to use enum_cert_paths.
9126         (edit_ownertrust): Now list ceritficates on request.
9127         (show_paths): New.
9129 Wed Nov 11 18:05:44 1998  Werner Koch  <werner.koch@guug.de>
9131         * g10.c (main): New option --max-cert-depth
9132         * tdbio.h: add new fields to ver and dir record.
9133         * tdbio.c: read/write/dump of these fields.
9134         (tdbio_db_matches_options): New.
9135         * trustdb.c: replaced MAC_CERT_DEPTH by opt.max_cert_depth.
9136         (do_check): cache validity and changed other functions
9137         to reset the cached value.
9139         * keylist.c (list_one): Now lists the ownertrust.
9140         * mainproc.c (list_node): Ditto.
9142 Tue Nov 10 10:08:59 1998  Werner Koch  (wk@isil.d.shuttle.de)
9144         * g10.c (g10_exit): Now looks at the new g10_errors_seen.
9145         * mainproc.c (check_sig_and_print): Sets g10_errors_seen.
9147         * *.c : i18n many more strings.
9149         * ringedit.c (locate_keyblock_by_keyid): Add HAVE_LIBGDBM
9150         (locate_keyblock_by_fpr): Ditto.
9152         * g10.c (main): removed unsused "int errors".
9153         (main): Add new option --charset.
9155         * g10.c (main): special message for the unix newbie.
9157 Mon Nov  9 07:17:42 1998  Werner Koch  <werner.koch@guug.de>
9159         * getkey.c (finish_lookup): Kludge to prefere algo 16.
9161         * trustdb.c (new_lid_table): Clear cached item.
9163         * status.c (cpr_get_utf8): New.
9164         * pkclist.c (build_pk_list): Uses this.
9166 Sun Nov  8 17:20:39 1998  Werner Koch  (wk@isil.d.shuttle.de)
9168         * mainproc.c (check_sig_and_print): Why did I use strlen()-1
9169         in the printf? - This truncated the TZ.
9171 Sat Nov  7 15:57:28 1998  me,,,  (wk@tobold)
9173         * getkey.c (lookup): Changes to support a read_next.
9174         (get_pubkey): Fixed a memory leak.
9176         * keylist.c (list_one): Now lists all matching user IDs.
9178 Tue Nov  3 16:19:21 1998  Werner Koch  (wk@isil.d.shuttle.de)
9180         * keygen.c (ask_user_id): Now converted to UTF-8
9182         * g10.c (main): Kludge for pgp clearsigs and textmode.
9184 Fri Oct 30 16:40:39 1998  me,,,  (wk@tobold)
9186         * signal.c (block_all_signals): New.
9187         (unblock_all_signals): New
9188         * tdbio.c (tdbio_end_transaction): Now blocks all signals.
9190         * trustdb.c (new_lid_table): Changed the representation of the
9191         former local_lid_info stuff.
9193         * trustdb.c (update_trust_record): Reorganized the whole thing.
9194         * sig-check.c (check_key_signature): Now handles class 0x28
9197 Wed Oct 28 18:56:33 1998  me,,,  (wk@tobold)
9199         * export.c (do_export): Takes care of the exportable sig flag.
9201 Tue Oct 27 14:53:04 1998  Werner Koch  (wk@isil.d.shuttle.de)
9203         * trustdb.c (update_trust_record): New "fast" parameter.
9205 Sun Oct 25 19:32:05 1998  Werner Koch  (wk@isil.d.shuttle.de)
9207         * openfile.c (copy_options_File): New.
9208         * ringedit.c (add_keyblock_resource): Creates options file
9209         * tdbio.c (tdbio_set_dbname): Ditto.
9211 Sat Oct 24 14:10:53 1998  brian moore <bem@cmc.net>
9213         * mainproc.c (proc_pubkey_enc): Don't release the DEK
9214         (do_proc_packets): Ditto.
9216 Fri Oct 23 06:49:38 1998  me,,,  (wk@tobold)
9218         * keyedit.c (keyedit_menu): Comments are now allowed
9220         * trustdb.c: Rewrote large parts.
9223 Thu Oct 22 15:56:45 1998  Michael Roth  (mroth@nessie.de)
9225         * encode.c: (encode_simple): Only the plain filename without
9226         a given directory is stored in generated packets.
9227         (encode_crypt): Ditto.
9229         * sign.c: (sign_file) Ditto.
9232 Thu Oct 22 10:53:41 1998  Werner Koch  (wk@isil.d.shuttle.de)
9234         * trustdb.c (update_trust_record): Add new optional arg.
9236         * import.c (import_keys): Add statistics output
9237         * trustdb.c (update_trustdb): Ditto.
9238         (insert_trustdb): Ditto.
9240         * tdbio.c (tdbio_begin_transaction): New.
9241         (tdbio_end_transaction): New.
9242         (tdbio_cancel_transaction): New.
9244         * g10.c (main): New option --quit.
9246         * trustdb.c (check_hint_sig): No tests for user-id w/o sig.
9247         This caused an assert while checking the sigs.
9249         * trustdb.c (upd_sig_record): Splitted into several functions.
9251         * import.c (import_keys): New arg "fast".
9252         * g10.c (main): New command --fast-import.
9254 Wed Oct 21 18:19:36 1998  Michael Roth <mroth@nessie.de>
9256         * ringedit.c (add_keyblock_resource): Directory is now created.
9257         * tdbio.c (tdbio_set_dbname): New info message.
9259 Wed Oct 21 11:52:04 1998  Werner Koch  (wk@isil.d.shuttle.de)
9261         * trustdb.c (update_trustdb): released keyblock in loop.
9263         * keylist.c (list_block): New.
9264         (list_all): Changed to use list_block.
9266         * trustdb.c: Completed support for GDBM
9268         * sign.c (only_old_style): Changed the way force_v3 is handled
9269         (sign_file): Ditto.
9270         (clearsign_file): Ditto.
9272         * keygen.c (has_invalid_email_chars): Splitted into mailbox and
9273         host part.
9275         * keylist.c (list_one): Add a merge_keys_and_selfsig.
9276         * mainproc.c (proc_tree): Ditto.
9278 Sun Oct 18 11:49:03 1998  Werner Koch  (wk@isil.d.shuttle.de)
9280         * sign.c (only_old_style): Add option force_v3_sigs
9281         (sign_file): Fixed a bug in sig->version
9282         (clearsign_file): Ditto.
9284         * parse-packet.c (dump_sig_subpkt): New
9286         * keyedit.c (menu_expire): New.
9287         * free-packet.c (cmp_signatures): New
9290 Sat Oct 17 10:22:39 1998  Werner Koch  (wk@isil.d.shuttle.de)
9292         * armor.c: changed output line length from 72 to 64.
9294         * keyedit.c (fix_keyblock): New.
9296 Fri Oct 16 10:24:47 1998  Werner Koch  (wk@isil.d.shuttle.de)
9298         * trustdb.c: Rewrote most.
9299         * tdbio.c: Add cache and generalized hash tables.
9301         * options.h (ENABLE_COMMENT_PACKETS): New but undef'ed.
9302         * encode.c, sign.c, keygen.c: Disabled comment packets.
9303         * export.c (do_export): Comment packets are never exported,
9304         except for those in the secret keyring.
9306         * g10.c (main): Removed option do-no-export-rsa; should be
9307         be replaced by a secpial tool.
9308         * export.c (do_export): Removed the code for the above option.
9310         * armor.c (find_header): Support for new only_keyblocks.
9311         * import.c (import_keys): Only looks for keyblock armors.
9313         * packet.h: replaced valid_days by expiredate and changed all users.
9314         * build-packet.c (do_public_key): calculates valid-days
9315         (do_secret_key): Ditto.
9316         * parse-packet.c (parse_key): expiredate is calucated from the
9317         valid_period in v3 packets.
9318         * keyid.c (do_fingerprint_md): calculates valid_dates.
9320         * keygen.c (add_key_expire): fixed key expiration time for v4 packets.
9322         * armor.c (find_header): A LF in the first 28 bytes
9323         was skipped for non-armored data.
9325 Thu Oct  8 11:35:51 1998  Werner Koch  (wk@isil.d.shuttle.de)
9327         * armor.c (is_armored): Add test on old comment packets.
9329         * tdbio.c (tdbio_search_dir_bypk): fixed memory leak.
9331         * getkey.c: Changed the caching algorithms.
9333 Wed Oct  7 19:33:28 1998  Werner Koch  (wk@isil.d.shuttle.de)
9335         * kbnodes.c (unused_nodes): New.
9337 Wed Oct  7 11:15:36 1998  Werner Koch  (wk@isil.d.shuttle.de)
9339         * keyedit.c (sign_uids): Fixed a problem with SK which could caused
9340         a save of an unprotected key.
9341         (menu_adduid): Ditto.
9343         * keyedit.c (keyedit_menu): Prefs are now correctly listed for
9344         new user ids.
9346         * trustdb.c (update_trust_record): New.
9347         (insert_trust_record): Now makes use of update_trust_record.
9349 Tue Oct  6 16:18:03 1998  Werner Koch  (wk@isil.d.shuttle.de)
9351         * trustdb.c (read_record): replaces most of the tdbio_read_records.
9352         (write_record): Ditto.
9354 Sat Oct  3 11:01:21 1998  Werner Koch  (wk@isil.d.shuttle.de)
9356         * keygen.c (ask_alogo): enable ElGamal enc-only only for addmode.
9358 Wed Sep 30 10:15:33 1998  Werner Koch  (wk@isil.d.shuttle.de)
9360         * import.c (import_one): Fixed update of wrong keyblock.
9362 Tue Sep 29 08:32:08 1998  me,,,  (wk@tobold)
9364         * mainproc.c (proc_plaintext): Display note for special filename.
9365         * plaintext.c (handle_plaintext): Suppress output of special file.
9367 Mon Sep 28 12:57:12 1998  Werner Koch  (wk@isil.d.shuttle.de)
9369         * g10.c (verify_own_keys): Add warning if a key is not protected.
9371         * passphrase (hash_passphrase): Fixed iterated+salted mode and
9372         setup for keysizes > hashsize.
9374         * g10.c (main): New options: --s2k-{cipher,digest,mode}.
9376 Fri Sep 25 09:34:23 1998  Werner Koch  (wk@isil.d.shuttle.de)
9378         * g10.c: Chnaged some help texts.
9380 Tue Sep 22 19:34:39 1998  Werner Koch  (wk@isil.d.shuttle.de)
9382         * passphrase.c (read_passphrase_from_fd): fixed bug for long
9383         passphrases.
9385 Mon Sep 21 11:28:05 1998  Werner Koch  (wk@(none))
9387         * getkey.c (lookup): Add code to use the sub key if the primary one
9388         does not match the usage.
9390         * armor.c (armor_filter): New error message: no valid data found.
9391         (radix64_read): Changes to support multiple messages.
9392         (i18n.h): New.
9393         * mainproc.c (add_onepass_sig): bug fix.
9395 Mon Sep 21 08:03:16 1998  Werner Koch  (wk@isil.d.shuttle.de)
9397         * pkclist.c (do_we_trust): Add keyid to most messages.
9399         * passphrase.c (read_passphrase_from_fd): New.
9400         (have_static_passphrase): New
9401         (get_passphrase_fd): Removed.
9402         (set_passphrase_fd): Removed.
9403         * g10.c (main): passphrase is now read here.
9405         * keyedit.c (keyedit_menu): "help" texts should now translate fine.
9407 Mon Sep 21 06:40:02 1998  Werner Koch  (wk@isil.d.shuttle.de)
9409         * encode.c (encode_simple): Now disables compression
9410         when --rfc1991 is used.
9411         (encode_crypt): Ditto.
9413 Fri Sep 18 16:50:32 1998  Werner Koch  (wk@isil.d.shuttle.de)
9415         * getkey.c (merge_key_and_selfsig): New.
9417 Fri Sep 18 10:20:11 1998  Werner Koch  (wk@isil.d.shuttle.de)
9419         * pkclist.c (select_algo_from_prefs): Removed 3DES kludge.
9421         * seskey.c (make_session_key): Fixed SERIOUS bug introduced
9422         by adding the weak key detection code.
9424         * sign.c (sign_file): Changed aremor header in certain cases.
9426 Tue Sep 15 17:52:55 1998  Werner Koch  (wk@isil.d.shuttle.de)
9428         * mainproc.c (check_sig_and_print): Replaced ascime by asctimestamp.
9430 Mon Sep 14 11:40:52 1998  Werner Koch  (wk@isil.d.shuttle.de)
9432         * seskey.c (make_session_key): Now detects weak keys.
9434         * trustdb (clear_trust_checked_flag): New.
9436         * plaintext.c (handle_plaintext): Does no anymore suppress CR from
9437         cleartext signed messages.
9439 Sun Sep 13 12:54:29 1998  Werner Koch  (wk@isil.d.shuttle.de)
9441         * trustdb.c (insert_trust_record): Fixed a stupid bug in the free
9442         liunked list loops.
9444 Sat Sep 12 15:49:16 1998  Werner Koch  (wk@isil.d.shuttle.de)
9446         * status.c (remove_shmid): New.
9447         (init_shm_comprocess): Now sets permission to the real uid.
9449 Wed Sep  9 11:15:03 1998  Werner Koch  (wk@isil.d.shuttle.de)
9451         * packet.h (PKT_pubkey_enc): New flah throw_keyid, and add logic to
9452         implement it.
9453         * g10.c (main): New Option --throw-keyid
9455         * getkey.c (enum_secret_keys): Add new ar and changed all callers.
9457 Tue Sep  8 20:04:09 1998  Werner Koch  (wk@isil.d.shuttle.de)
9459         * delkey.c (delete_key): Moved from keyedit.c.
9461 Mon Sep  7 16:37:52 1998  Werner Koch  (wk@isil.d.shuttle.de)
9463         * build-packet.c (calc_length_header): New arg new_ctb to correctly
9464         calculate the length of new style packets.
9466         * armor.c (is_armored): Checks for symkey_enc packets.
9468         * pkclist.c (select_algo_from_prefs): 3DEs substitute is now CAST5.
9470 Tue Aug 11 17:54:50 1998  Werner Koch  (wk@isil.d.shuttle.de)
9472         * build-packet.c (do_secret_key): Fixed handling of old keys.
9474         * getkey.c (compare_name): Fixed exact and email matching
9476         * openfile.c (open_outfile): Changed arguments and all callers.
9478 Tue Aug 11 09:14:35 1998  Werner Koch  (wk@isil.d.shuttle.de)
9480         * encode.c (encode_simple): Applied option set-filename and comment.
9481         (encode_crypt): Ditto.
9482         * sign.c (sign_file): Ditto.
9483         * armor.c (armor_filter): Applied option comment.
9485         * encode.c (encode_crypt): Moved init_packet to the begin.
9486         (encode_simple): add an init_packet().
9488         * comment (write_comment): Now enforces a hash sign as the 1st byte.
9490         * import.c (import_one): Add explanation for "no user ids".
9492         * compress.c (do_uncompress): Applied Brian Warner's patch to support
9493         zlib 1.1.3 etc.
9495         * trustdb.c (check_trust): Fixed a problem after inserting new keys.
9497         * getkey (lookup): do not return the primary key if usage is given
9498         (lookup_sk): Ditto and take usage into account.
9500         * status.c (cpr_get_answer_is_yes): add display_help.
9502 Mon Aug 10 10:11:28 1998  Werner Koch  (wk@isil.d.shuttle.de)
9504         * getkey.c (lookup_sk): Now always returns the primary if arg
9505         primary is true.
9506         (lookup): Likewise.
9507         (get_pubkey_byname): Now returns the primary key
9508         (get_seckey_byname): Ditto.
9511 Mon Aug 10 08:34:03 1998  Werner Koch  (wk@isil.d.shuttle.de)
9513         * keyid.c (pubkey_letter): ELG_E is now a small g.
9515 Sat Aug  8 17:26:12 1998  Werner Koch  (wk@isil.d.shuttle.de)
9517         * openfile (overwrite_filep): Changed semantics and all callers.
9519 Sat Aug  8 12:17:07 1998  Werner Koch  (wk@isil.d.shuttle.de)
9521         * status.c (display_help): New.
9523 Thu Aug  6 16:30:41 1998  Werner Koch,mobil,,,  (wk@tobold)
9525         * seskey.c (encode_session_key): Now uses get_random_bits().
9527 Thu Aug  6 07:34:56 1998  Werner Koch,mobil,,,  (wk@tobold)
9529         * ringedit.c (keyring_copy): No more backupfiles for
9530         secret keyrings and add additional warning in case of
9531         a failed secret keyring operation.
9533 Wed Aug  5 11:54:37 1998  Werner Koch  (wk@isil.d.shuttle.de)
9535         * g10.c (check_opts): Moved to main.  Changed def_cipher_algo
9536         semantics and chnaged all users.
9538         * pubkey-enc.c (get_sssion_key): New informational output
9539         about preferences.
9541         * parse-packet.c (parse_symkeyenc): Fixed salted+iterated S2K
9542         (parse_key): Ditto.
9543         * build-packet.c (do_secret_key): Ditto.
9544         (do_symkey_enc): Ditto.
9546 Tue Aug  4 08:59:10 1998  Werner Koch  (wk@isil.d.shuttle.de)
9548         * getkey.c (enum_secret_keys): Now returns only primary keys.
9550         * getkey (lookup): Now sets the new namehash field.
9552         * parse-packet.c (parse_sig_subpkt2): New.
9554         * sign.c (sign_file): one-pass sigs are now emiited reverse.
9555         Preference data is considered when selecting the compress algo.
9557 Wed Jul 29 12:53:03 1998  Werner Koch  (wk@isil.d.shuttle.de)
9559         * free-packet.c (copy_signature): New.
9561         * keygen.c (generate_subkeypair): rewritten
9562         * g10.c (aKeyadd): Removed option --add-key
9564 Mon Jul 27 10:37:28 1998  Werner Koch  (wk@isil.d.shuttle.de)
9566         * seckey-cert.c (do_check): Additional check on cipher blocksize.
9567         (protect_secret_key): Ditto.
9568         * encr-data.c: Support for other blocksizes.
9569         * cipher.c (write_header): Ditto.
9571 Fri Jul 24 16:47:59 1998  Werner Koch  (wk@isil.d.shuttle.de)
9573         * kbnode.c (insert_kbnode): Changed semantics and all callers.
9574         * keyedit.c : More or less a complete rewrite
9576 Wed Jul 22 17:10:04 1998  Werner Koch  (wk@isil.d.shuttle.de)
9578         * build-packet.c (write_sign_packet_header): New.
9580 Tue Jul 21 14:37:09 1998  Werner Koch  (wk@isil.d.shuttle.de)
9582         * import.c (import_one): Now creates a trustdb record.
9584         * g10.c (main): New command --check-trustdb
9586 Mon Jul 20 11:15:07 1998  Werner Koch  (wk@isil.d.shuttle.de)
9588         * genkey.c (generate_keypair): Default key is now DSA with
9589         encryption only ElGamal subkey.
9591 Thu Jul 16 10:58:33 1998  Werner Koch  (wk@isil.d.shuttle.de)
9593         * keyid.c (keyid_from_fingerprint): New.
9594         * getkey.c (get_pubkey_byfprint): New.
9596 Tue Jul 14 18:09:51 1998  Werner Koch  (wk@isil.d.shuttle.de)
9598         * keyid.c (fingerprint_from_pk): Add argument and changed all callers.
9599         (fingerprint_from_sk): Ditto.
9601 Tue Jul 14 10:10:03 1998  Werner Koch  (wk@isil.d.shuttle.de)
9603         * plaintext.c (handle_plaintext): Now returns create error if
9604         the file could not be created or the user responded not to overwrite
9605         the file.
9606         * mainproc.c (proc_plaintext): Tries again if the file could not
9607         be created to check the signature without output.
9609         * misc.c (disable_core_dumps): New.
9610         * g10.c (main): disable coredumps for gpg
9612         * g10.c (MAINTAINER_OPTIONS): New to disable some options
9614 Mon Jul 13 16:47:54 1998  Werner Koch  (wk@isil.d.shuttle.de)
9616         * plaintext.c (hash_datafiles): New arg for better support of
9617         detached sigs. Changed all callers.
9618         * mainproc.c (proc_signature_packets): Ditto.
9620         * g10.c (main): New option "compress-sigs"
9621         * sig.c (sign_file): detached signatures are not anymore compressed
9622         unless the option --compress-sigs is used.
9624 Thu Jul  9 19:54:54 1998  Werner Koch  (wk@isil.d.shuttle.de)
9626         * armor.c: Fixes to allow zero length cleartext signatures
9628 Thu Jul  9 14:52:47 1998  Werner Koch  (wk@isil.d.shuttle.de)
9630         * g10.c (build_list): Now drops setuid.
9631         (main): Changed the way keyrings  and algorithms are registered .
9633 Wed Jul  8 14:17:30 1998  Werner Koch  (wk@isil.d.shuttle.de)
9635         * packet.h (PKT_public_key): Add field keyid.
9636         * parse-packet.c (parse_key): Reset the above field.
9637         * keyid.c (keyid_from_pk): Use above field as cache.
9639         * tdbio.c, tdbio.h: New
9640         * trustdb.c: Moved some functions to tdbio.c.
9641         (print_keyid): New.
9643         * pkclist.c (check_signatures_trust): New.
9645 Wed Jul  8 10:45:28 1998  Werner Koch  (wk@isil.d.shuttle.de)
9647         * plaintext.c (special_md_putc): New.
9648         (handle_plaintext): add clearsig argument
9649         * mainproc.c (proc_plaintext): detection of clearsig
9650         * sign.c (write_dased_escaped): Changed clearsig format
9652 Tue Jul  7 18:56:19 1998  Werner Koch  (wk@isil.d.shuttle.de)
9654         * armor.c (find_header): Now makes sure that there is only one
9655         empty line for clearsigs, as this is what OP now says.
9657 Mon Jul  6 13:09:07 1998  Werner Koch  (wk@isil.d.shuttle.de)
9659         * g10.c (main): New option default-secret-key
9660         * getkey.c (get_seckey_byname): support for this option.
9662 Mon Jul  6 09:03:49 1998  Werner Koch  (wk@isil.d.shuttle.de)
9664         * getkey.c (add_keyring): Keyrings are now added to end of the
9665         list of keyrings.  The first added keyringwill be created.
9666         (add_secret_keyring): Likewise.
9668         * ringedit.c (add_keyblock_resource): Files are created here.
9670         * g10.c (aNOP): Removed
9672         * getkey.c (lookup): Add checking of usage for name lookups
9673         * packet.h (pubkey_usage): Add a field which may be used to store
9674         usage capabilities.
9675         * pkclist.c (build_pk_list): getkey now called with usage arg.
9676         * skclist.c (build_sk_list): Ditto.
9678         * sign.c (clearsign_file): Fixed "Hash:" headers
9680 Sat Jul  4 13:33:31 1998  Werner Koch  (wk@isil.d.shuttle.de)
9682         * trustdb.c (list_ownertrust): New.
9683         * g10.c (aListOwnerTrust): New.
9685         * g10.c (def_pubkey_algo): Removed.
9687         * trustdb.c (verify_private_data): Removed and also the call to it.
9688         (sign_private_data): Removed.
9690 Fri Jul  3 13:26:10 1998  Werner Koch  (wk@isil.d.shuttle.de)
9692         * g10.c (aEditKey): was aEditSig. Changed usage msg.
9694         * keyedit.c: Done some i18n stuff.
9696         * g10.c (do_not_use_RSA): New.
9697         * sign.c (do_sign): Add call to above function.
9698         * encode.c (write_pubkey_enc_from_list): Ditto.
9700 Thu Jul  2 21:01:25 1998  Werner Koch  (wk@isil.d.shuttle.de)
9702         * parse-packet.c: Now is able sto store data of unknown
9703         algorithms.
9704         * free-packet.c: Support for this.
9705         * build-packet.c: Can write data of packet with unknown algos.
9707 Thu Jul  2 11:46:36 1998  Werner Koch  (wk@isil.d.shuttle.de)
9709         * parse-packet.c (parse): fixed 4 byte length header
9711 Wed Jul  1 12:36:55 1998  Werner Koch  (wk@isil.d.shuttle.de)
9713         * packet.h (new_ctb): New field for some packets
9714         * build-packet.c (build_packet): Support for new_ctb
9715         * parse-packet.c (parse): Ditto.
9717 Mon Jun 29 12:54:45 1998  Werner Koch  (wk@isil.d.shuttle.de)
9719         * packet.h: changed all "_cert" to "_key", "subcert" to "subkey".
9721         * free-packet.c (free_packet): Removed memory leak for subkeys.
9723 Sun Jun 28 18:32:27 1998  Werner Koch  (wk@isil.d.shuttle.de)
9725         * import.c (import_keys): Renamed from import_pubkeys.
9726         (import_secret_one): New.
9728         * g10.c (aExportSecret): New.
9730         * export.c (export_seckeys): New.
9732         * parse-packet.c (parse_certificate): Cleaned up.
9733         (parse_packet): Trust packets are now considered as unknown.
9734         (parse_pubkey_warning): New.
9736 Fri Jun 26 10:37:35 1998  Werner Koch  (wk@isil.d.shuttle.de)
9738         * keygen.c (has_invalid_email_chars): New.
9740 Wed Jun 24 16:40:22 1998  Werner Koch  (wk@isil.d.shuttle.de)
9742         * armor.c (armor_filter): Now creates valid onepass_sig packets
9743         with all detected hash algorithms.
9744         * mainproc.c (proc_plaintext): Now uses the hash algos as specified
9745         in the onepass_sig packets (if there are any)
9747 Mon Jun 22 11:54:08 1998  Werner Koch  (wk@isil.d.shuttle.de)
9749         * plaintext.c (handle_plaintext): add arg to disable outout
9750         * mainproc.c (proc_plaintext): disable output when in sigs_only mode.
9752 Thu Jun 18 13:17:27 1998  Werner Koch  (wk@isil.d.shuttle.de)
9754         * keygen.c: Removed all rsa packet stuff, chnaged defaults
9755         for key generation.
9757 Sun Jun 14 21:28:31 1998  Werner Koch  (wk@isil.d.shuttle.de)
9759         * misc.c (checksum_u16): Fixed a stupid bug which caused a
9760         wrong checksum calculation for the secret key protection and
9761         add a backward compatibility option.
9762         * g10.c (main): Add option --emulate-checksum-bug.
9764 Thu Jun 11 13:26:44 1998  Werner Koch  (wk@isil.d.shuttle.de)
9766         * packet.h: Major changes to the structure of public key material
9767         which is now stored in an array and not anaymore in a union of
9768         algorithm specific structures.  These is needed to make the system
9769         more extendable and makes a lot of stuff much simpler. Changed
9770         all over the system.
9772         * dsa.c, rsa.c, elg.c: Removed.
9774 Wed Jun 10 07:22:02 1998  Werner Koch,mobil,,,  (wk@tobold)
9776         * g10.c ("load-extension"): New option.
9778 Mon Jun  8 22:23:37 1998  Werner Koch  (wk@isil.d.shuttle.de)
9780         * seckey-cert.c (do_check): Removed cipher constants
9781         (protect_secret_key): Ditto.
9783 Fri May 29 10:00:28 1998  Werner Koch  (wk@isil.d.shuttle.de)
9785         * trustdb.c (query_trust_info): New.
9786         * keylist.c (list_one): Add output of trust info
9787         * mainproc (list_node): ditto.
9788         * g10.c (main): full trustdb init if -with-colons and any of the
9789         key list modes.
9791 Thu May 28 10:34:42 1998  Werner Koch  (wk@isil.d.shuttle.de)
9793         * status.c (STATUS_RSA_OR_IDEA): New.
9794         * sig-check.c (check_signature): Output special status message.
9795         * pubkey-enc.c (get_session_key): Ditto.
9797         * mainproc.c (check_sig_and_print): Changed format of output.
9798         * passpharse.c (passphrase_to_dek): Likewise.
9800 Wed May 27 13:46:48 1998  Werner Koch  (wk@isil.d.shuttle.de)
9802         * g10.c (aListSecretKeys): New option --list-secret-keys
9803         * keylist.c (std_key_list): Renamed to public_key_list.
9804         (secret_key_list): New
9805         (list_one, list_all): Add support for secret keys.
9806         * getkey.c (get_secret_keyring): New.
9807         * mainproc.c (list_node): Add option --with-colons for secret keys
9809         * sig-check.c (check_key_signature): detection of selfsigs
9810         * mainproc.c (list_node): fixed listing.
9812         * g10.c (aListSecretKeys): New option --always-trust
9813         * pkclist.c (do_we_trust): Override per option added
9815         * status.c (write_status_text): Add a prefix to every output line.
9817 Wed May 27 07:49:21 1998  Werner Koch  (wk@isil.d.shuttle.de)
9819         * g10 (--compress-keys): New.
9820         * options.h (compress_keys): New.
9821         * export.c (export_pubkeys): Only compresses with the new option.
9823 Tue May 26 11:24:33 1998  Werner Koch  (wk@isil.d.shuttle.de)
9825         * passphrase.c (get_last_passphrase): New
9826         (set_next_passphrase): New.
9827         (passphrase_to_dek): add support for the above functions.
9828         * keyedit.c (make_keysig_packet): Add sigclass 0x18,
9829         changed all callers due to a new argument.
9830         * keygen.c (write_keybinding): New
9831         (generate_subkeypair): Add functionality
9832         (ask_algo, ask_keysize, ask_valid_days): Broke out of generate_keypair
9833         (ask_user_id, ask_passphrase): Ditto.
9835 Thu May 21 11:26:13 1998  Werner Koch  (wk@isil.d.shuttle.de)
9837         * g10.c,gpgd.c (main): Does now return an int, so that egcs does
9838         not complain.
9840         * armor.c (fake_packet): Removed erro message and add a noticed
9841         that this part should be fixed.
9843         * sign.c (sign_file): Compression now comes in front of encryption.
9844         * encode.c (encode_simple): Ditto.
9845         (encode_crypt): Ditto.
9847 Tue May 19 16:18:19 1998  Werner Koch  (wk@isil.d.shuttle.de)
9849         * armor.c (fake_packet): Changed assertion to log_error
9851 Sat May 16 16:02:06 1998  Werner Koch  (wk@isil.d.shuttle.de)
9853         * build-packet.c (build_packet): Add SUBKEY packets.
9855 Fri May 15 17:57:23 1998  Werner Koch  (wk@isil.d.shuttle.de)
9857         * sign.c (hash_for): New and used in all places here.
9858         * main.h (DEFAULT_): new macros.
9859         * g10.c  (opt.def_digest_algo): Now set to 0
9861         * compress.c (init_compress): Add support for algo 1
9862         * options.h (def_compress_algo): New
9863         * g10.c (main): New option --compress-algo
9865 Fri May 15 13:23:59 1998  Werner Koch  (wk@isil.d.shuttle.de)
9867         * g10.c (print_mds): New feature to print only one hash,
9868         chnaged formatting.
9870 Thu May 14 15:36:24 1998  Werner Koch  (wk@isil.d.shuttle.de)
9872         * misc.c (trap_unaligned) [__alpha__]: New
9873         * g10.c (trap_unaligned): Add call to this to track down SIGBUS
9874         on Alphas (to avoid the slow emulation code).
9876 Wed May 13 11:48:27 1998  Werner Koch  (wk@isil.d.shuttle.de)
9878         * build-packet.c (do_signature): Support for v4 pakets.
9879         * keyedit.c (make_keysig_packet): Ditto.
9880         * build-packet.c (build_sig_subpkt_from_sig): New.
9881         (build_sig_subpkt): New.
9883         * elg.c (g10_elg_sign): removed keyid_from_skc.
9884         * dsa.c (g10_dsa_sign): Ditto.
9885         * rsa.c (g10_rsa_sign): Ditto.
9886         * keyedit.c (make_keysig_packet): Add call to keyid_from_skc
9888         * sign.c (clearsign_file): Support for v4 signatures.
9889         (sign_file): Ditto.
9891 Wed May  6 09:31:24 1998  Werner Koch  (wk@isil.d.shuttle.de)
9893         * parse-packet.c (do_parse): add support for 5 byte length leader.
9894         (parse_subpkt): Ditto.
9895         * build-packet.c (write_new_header): Ditto.
9897         * packet.h (SIGSUBPKT_): New constants.
9898         * parse-packet.c (parse_sig_subpkt): Changed name, made global,
9899         and arg to return packet length, chnaged all callers
9902 Tue May  5 22:11:59 1998  Werner Koch  (wk@isil.d.shuttle.de)
9904         * keygen.c (gen_dsa): New.
9905         * build_packet.c (do_secret_cert): Support for DSA
9907 Mon May  4 19:01:25 1998  Werner Koch  (wk@isil.d.shuttle.de)
9909         * compress.c: doubled buffer sizes
9910         * parse-packet.c (do_plaintext): now uses iobuf_read/write.
9912 Mon May  4 09:35:53 1998  Werner Koch  (wk@isil.d.shuttle.de)
9914         * seskey.c (encode_md_value): Add optional argument hash_algo,
9915         changed all callers.
9917         * passphrase.c (make_dek_from_passphrase): Removed
9918         * (get_passhrase_hash): Changed name to passphrase_to_dek, add arg,
9919         changed all callers.
9921         * all: Introduced the new ELG identifier and added support for the
9922         encryption only one (which is okay to use by GNUPG for signatures).
9924 Sun May  3 17:50:26 1998  Werner Koch  (wk@isil.d.shuttle.de)
9926         * packet.h (PKT_OLD_COMMENT): New name for type 16.
9927         * parse-packet.c (parse_comment): Now uses type 61
9929 Fri May  1 12:44:39 1998  Werner Koch,mobil,,,  (wk@tobold)
9931         * packet.h (count): Chnaged s2k count from byte to u32.
9932         * seckey-cert.c (do_check): Changed s2k algo 3 to 4, changed
9933         reading of count.
9934         * build-packet.c (do_secret_cert): ditto.
9935         * parse-packet.c (parse_certificate): ditto.
9937         * parse-packet.c (parse_symkeyenc): New.
9938         * build-packet.c (do_symkey_enc): New.
9940 Thu Apr 30 16:33:34 1998  Werner Koch  (wk@isil.d.shuttle.de)
9942         * sign.c (clearsign_file): Fixed "Hash: " armor line.
9944 Tue Apr 28 14:27:42 1998  Werner Koch  (wk@isil.d.shuttle.de)
9946         * parse-packet.c (parse_subpkt): Some new types.
9948 Mon Apr 27 12:53:59 1998  Werner Koch  (wk@isil.d.shuttle.de)
9950         * g10.c (main): Add option --skip-verify.
9951         * mainproc.c (check_sig_and_print): Ditto.
9953         * g10.c (print_mds): Add output for Tiger.
9955         * sign.c (sign_file): Now uses partial length headers if used
9956         in canonical textmode (kludge to fix a bug).
9958         * parse-packet.c (parse_certificate): Changed BLOWFISH id.
9959         * pubkey-enc.c (get_session_key): Ditto.
9960         * seskey.c (make_session_key): Ditto.
9961         * seckey-cert.c (protect_secret_key,do_check): Add BLOWFISH160.
9963 Fri Apr 24 17:38:48 1998  Werner Koch,mobil,,,  (wk@tobold)
9965         * sig-check.c (check_key_signature): Add sig-class 0x14..0x17
9966         * keyedit.c (sign-key): Some changes to start with support of
9967         the above new sig-classes.
9969 Wed Apr 22 09:01:57 1998  Werner Koch,mobil,,,  (wk@tobold)
9971         * getkey.c (compare_name): add email matching
9973 Tue Apr 21 16:17:12 1998  Werner Koch,mobil,,,  (wk@tobold)
9975         * armor.c (armor_filter): fixed missing last LF before CSUM.
9977 Thu Apr  9 11:35:22 1998  Werner Koch  (wk@isil.d.shuttle.de)
9979         * seckey-cert.c (do_check): New; combines all the check functions
9980         into one.
9982         * sign.c: removed all key management functions
9983         * keyedit.c: New.
9985 Thu Apr  9 09:49:36 1998  Werner Koch  (wk@isil.d.shuttle.de)
9987         * import.c (chk_self_sigs): Changed an error message.
9989 Wed Apr  8 16:19:39 1998  Werner Koch  (wk@isil.d.shuttle.de)
9991         * packet.h: packet structs now uses structs from the pubkey,
9992         removed all copy operations from packet to pubkey structs.
9994 Wed Apr  8 13:40:33 1998  Werner Koch  (wk@isil.d.shuttle.de)
9996         * trustdb.c (verify_own_certs): Fixed "public key not found".
9998         * getkey.c (key_byname): New, combines public and secret key search.
10000         * pkclist.c (build_pkc_list): Add new arg usage, changed all callers.
10001         * skclist.c (build_skc_list): Likewise.
10003         * ringedit.c (find_keyblock, keyring_search2): Removed.
10005 Wed Apr  8 09:47:21 1998  Werner Koch  (wk@isil.d.shuttle.de)
10007         * sig-check.c (do_check): Applied small fix from Ulf Möller.
10009 Tue Apr  7 19:28:07 1998  Werner Koch  (wk@isil.d.shuttle.de)
10011         * cipher.c, encr-data.c, seckey-cert.c: Now uses cipher_xxxx
10012         functions instead of blowfish_xxx or cast_xxx
10014 Tue Apr  7 11:04:02 1998  Werner Koch  (wk@isil.d.shuttle.de)
10016         * Makefile.am (g10maint.o): Changed the way it is created.
10018 Mon Apr  6 11:17:08 1998  Werner Koch  (wk@isil.d.shuttle.de)
10020         * misc.c: New.
10021         * keygen.c (checksum,checksum_u16,checksum_mpi): Moved to misc.c
10022         * seckey-cert.c: Kludge for wrong ELG checksum implementation.
10024 Sat Apr  4 20:07:01 1998  Werner Koch  (wk@isil.d.shuttle.de)
10026         * cipher.c (cipher_filter): Support for CAST5
10027         * encr-data.c (decode_filter): Ditto.
10028         (decrypt_data): Ditto.
10029         * seskey.c (make_session_key): Ditto.
10030         * seckey-cert.c (check_elg, check_dsa): Ditto,
10031         (protect_secret_key): Ditto.
10032         * pubkey-enc.c (get_session_key): Ditto.
10033         * passphrase.c (hash_passphrase): Ditto.
10035 Thu Apr  2 20:22:35 1998  Werner Koch  (wk@isil.d.shuttle.de)
10037         * gpgd.c: New
10039 Thu Apr  2 10:38:16 1998  Werner Koch  (wk@isil.d.shuttle.de)
10041         * keygen.c (generate_keypair): Add valid_days stuff.
10042         * trustdb.c (check_trust): Add check for valid_days.
10044 Wed Apr  1 16:15:58 1998  Werner Koch  (wk@isil.d.shuttle.de)
10046         * keygen.c (generate_keypair): Addional question whether the
10047         selected large keysize is really needed.
10049 Wed Apr  1 15:56:33 1998  Werner Koch  (wk@isil.d.shuttle.de)
10051         * seckey-cert.c (protect_secret_key): merged protect_xxx to here.
10053 Wed Apr  1 10:34:46 1998  Werner Koch  (wk@isil.d.shuttle.de)
10055         * Makefile.am (g10maint.c): Changed creation rule, so that it works
10056         on FreeBSD (missing CFLAGS).
10058         * parse-packet.c (parse_subkey): Removed.
10060 Thu Mar 19 15:22:36 1998  Werner Koch  (wk@isil.d.shuttle.de)
10062         * ringedit.c (keyring_enum): Fixed problem with reading too
10063         many packets. Add support to read secret keyrings.
10065         * getkey.c (scan_keyring): Removed
10066         (lookup): New to replace scan_keyring.
10067         (scan_secret_keyring): Removed.
10068         (lookup_skc): New.
10070 Wed Mar 18 11:47:34 1998  Werner Koch  (wk@isil.d.shuttle.de)
10072         * ringedit.c (enum_keyblocks): New read mode 11.
10074         * keyid.c (elg_fingerprint_md): New and changed all other functions
10075         to call this if the packet version is 4 or above.
10077 Tue Mar 17 20:46:16 1998  Werner Koch  (wk@isil.d.shuttle.de)
10079         * parse-packet.c (parse_certificate): Add listing support for subkeys.
10081 Tue Mar 17 20:32:22 1998  Werner Koch  (wk@isil.d.shuttle.de)
10083         * armor.c (is_armored): Allow marker packet.
10085 Thu Mar 12 13:36:49 1998  Werner Koch  (wk@isil.d.shuttle.de)
10087         * trustdb.c (check_trust): Checks timestamp of pubkey.
10088         * sig-check. (do_check): Compares timestamps.
10090 Tue Mar 10 17:01:56 1998  Werner Koch  (wk@isil.d.shuttle.de)
10092         * g10.c (main): Add call to init_signals.
10093         * signal.c: New.
10095 Mon Mar  9 12:43:42 1998  Werner Koch  (wk@isil.d.shuttle.de)
10097         * dsa.c: New
10098         * packet.h, free-packet.c, parse-packet.c : Add support for DSA
10099         * sig-check.c, getkey.c, keyid.c, ringedit.c: Ditto.
10100         * seckey-cert.c: Ditto.
10102         * packet.h : Moved .digest_algo of signature packets to outer
10103         structure. Changed all references
10105 Sun Mar  8 13:06:42 1998  Werner Koch  (wk@isil.d.shuttle.de)
10107         * openfile.c : Support for stdout filename "-".
10109         * mainproc.c (check_sig_and_print): Enhanced status output:
10110         * status.c (write_status_text): New.
10112 Fri Mar  6 16:10:54 1998  Werner Koch  (wk@isil.d.shuttle.de)
10114         * kbnode.c (clone_kbnode): Fixed private_flag.
10116         * mainproc.c (list_node): Output of string "Revoked" as user-id.
10118 Fri Mar  6 14:26:39 1998  Werner Koch  (wk@isil.d.shuttle.de)
10120         * g10.c (main): Add userids to "-kv" and cleaned up this stuff.
10122 Fri Mar  6 12:45:58 1998  Werner Koch  (wk@isil.d.shuttle.de)
10124         * g10.c (main): Changed semantics of the list-... commands
10125         and added a new one. Removed option "-d"
10127         * decrypt.c: New.
10129         * trustdb.c (init_trustdb): Autocreate directory only if it ends
10130         in "/.gnupg".
10132 Thu Mar  5 12:12:11 1998  Werner Koch  (wk@isil.d.shuttle.de)
10134         * mainproc.c (do_proc_packets): New. Common part of proc_packet.
10135         (proc_signature_packets): special version to handle signature data.
10136         * verify.c: New.
10137         * g10.c (aVerify): New.
10138         * plaintext.c (hash_datafiles): New.
10139         * compress.c (handle_compressed): Add callback arg, changed caller.
10141 Thu Mar  5 10:20:06 1998  Werner Koch  (wk@isil.d.shuttle.de)
10143         * g10.c: Is nom the common source for gpg and gpgm
10144         * g10maint.c: Removed
10145         * Makefile.am: Add rule to build g10maint.c
10147 Thu Mar  5 08:43:59 1998  Werner Koch  (wk@isil.d.shuttle.de)
10149         * g10.c (main): Changed the way clear text sigs are faked.
10151 Wed Mar  4 19:47:37 1998  Werner Koch  (wk@isil.d.shuttle.de)
10153         * g10maint.c (aMuttKeyList): New
10154         * keylist.c: New.
10156 Wed Mar  4 17:20:33 1998  Werner Koch  (wk@isil.d.shuttle.de)
10158         * getkey.c (get_pubkey_byname): Kludge to allow 0x prefix.
10160 Tue Mar  3 13:46:55 1998  Werner Koch  (wk@isil.d.shuttle.de)
10162         * g10maint.c (main): New option --gen-random.
10164 Tue Mar  3 09:50:08 1998  Werner Koch  (wk@isil.d.shuttle.de)
10166         * g10.c (aDeleteSecretKey): New.
10167         (aEditSig): Add option "--edit-key" as synonym for "--edit-sig".
10168         (aDeleteSecretKey): New.
10169         * getkey.c (seckey_available): New.
10170         * sign.c (delete_key): Enhanced to delete secret keys, changed all
10171         callers.
10173 Mon Mar  2 21:23:48 1998  Werner Koch  (wk@isil.d.shuttle.de)
10175         * pkc_list.c (build_pkc_list): Add interactive input of user ID.
10177 Mon Mar  2 20:54:05 1998  Werner Koch  (wk@isil.d.shuttle.de)
10179         * pkclist.c (do_we_trust_pre): New.
10180         (add_ownertrust): Add message.
10181         * trustdb.c (enum_trust_web): Quick fix.
10183 Mon Mar  2 13:50:53 1998  Werner Koch  (wk@isil.d.shuttle.de)
10185         * g10.c (main): New action aDeleteKey
10186         * sign.c (delete_key): New.
10188 Sun Mar  1 16:38:58 1998  Werner Koch  (wk@isil.d.shuttle.de)
10190         * trustdb.c (do_check): No returns TRUST_UNDEFINED instead of
10191         eof error.
10193 Fri Feb 27 18:14:03 1998  Werner Koch  (wk@isil.d.shuttle.de)
10195         * armor.c (find_header): Removed trailing CR on headers.
10197 Fri Feb 27 18:02:48 1998  Werner Koch  (wk@isil.d.shuttle.de)
10199         * ringedit.c (keyring_search) [MINGW32]: Open and close file here
10200         because rename does not work on open files. Chnaged callers.
10202 Fri Feb 27 16:43:11 1998  Werner Koch  (wk@isil.d.shuttle.de)
10204         * sig-check.c (do_check): Add an md_enable.
10205         * mainproc.c (do_check_sig): Use md_open in case of detached sig
10206         (proc_tree): Take detached sigs into account.
10208 Fri Feb 27 15:22:46 1998  Werner Koch  (wk@isil.d.shuttle.de)
10210         * g10.c (main): Make use of GNUPGHOME envvar.
10211         * g10main.c (main): Ditto.
10213 Wed Feb 25 11:40:04 1998  Werner Koch  (wk@isil.d.shuttle.de)
10215         * plaintext.c (ask_for_detached_datafile): add opt.verbose to
10216         info output.
10218         * openfile.c (open_sigfile): Try also name ending in ".asc"
10220 Wed Feb 25 08:41:00 1998  Werner Koch  (wk@isil.d.shuttle.de)
10222         * keygen.c (generate_keypair): Fixed memory overflow.
10224 Tue Feb 24 15:51:55 1998  Werner Koch  (wk@isil.d.shuttle.de)
10226         * parse-packet.c (parse_certificate): Support for S2K.
10227         * build-packet.c (do_secret_cert): Ditto.
10228         * keygen.c (gen_elg): Ditto.
10229         * seckey-cert.c (check_elg): Ditto
10230         (protect_elg): Ditto.
10231         * sign.c (chnage_passphrase): Ditto.
10232         * passphrase.c (get_passphrase_hash): Support for a salt and
10233         changed all callers.
10234         (make_dek_from_passphrase): Ditto.
10236 Tue Feb 24 12:30:56 1998  Werner Koch  (wk@isil.d.shuttle.de)
10238         * build-packet.c (hash_public_cert): Disabled debug output.
10240 Fri Feb 20 17:22:28 1998  Werner Koch  (wk@isil.d.shuttle.de)
10242         * trustdb.c (init_trustdb) [MINGW32]: Removed 2nd mkdir arg.
10243         (keyring_copy) [MINGW32]: Add a remove prior to the renames.
10245 Wed Feb 18 18:39:02 1998  Werner Koch  (wk@isil.d.shuttle.de)
10247         * Makefile.am (OMIT_DEPENDENCIES): New.
10249         * rsa.c: Replaced log_bug by BUG.
10251 Wed Feb 18 13:35:58 1998  Werner Koch  (wk@isil.d.shuttle.de)
10253         * mainproc.c (do_check_sig): Now uses hash_public_cert.
10254         * parse-packet.c (parse_certificate): Removed hashing.
10255         * packet.h (public_cert): Removed hash variable.
10256         * free-packet.c (copy_public_cert, free_public_cert): Likewise.
10258         * sig-check.c (check_key_signatures): Changed semantics.
10260 Wed Feb 18 12:11:28 1998  Werner Koch  (wk@isil.d.shuttle.de)
10262         * trustdb.c (do_check): Add handling for revocation certificates.
10263         (build_sigrecs): Ditto.
10264         (check_sigs): Ditto.
10266 Wed Feb 18 09:31:04 1998  Werner Koch  (wk@isil.d.shuttle.de)
10268         * armor.c (armor_filter): Add afx->hdrlines.
10269         * revoke.c (gen_revoke): Add comment line.
10270         * dearmor.c (enarmor_file): Ditto.
10272         * sig-check.c (check_key_signature): Add handling for class 0x20.
10273         * mainproc.c : Ditto.
10275 Tue Feb 17 21:24:17 1998  Werner Koch  (wk@isil.d.shuttle.de)
10277         * armor.c : Add header lines "...ARMORED FILE .."
10278         * dearmor.c (enarmor_file): New.
10279         * g10maint.c (main): New option "--enarmor"
10281 Tue Feb 17 19:03:33 1998  Werner Koch  (wk@isil.d.shuttle.de)
10283         * mainproc.c : Changed a lot, because the packets are now stored
10284         a simple linlked list and not anymore in a complicatd tree structure.
10286 Tue Feb 17 10:14:48 1998  Werner Koch  (wk@isil.d.shuttle.de)
10288         * free_packet.c (cmp_public_certs): New.
10289         (cmp_user_ids): New.
10291         * kbnode.c (clone_kbnode): New.
10292         (release_kbnode): Add clone support.
10294         * ringedit.c (find_keyblock_bypkc): New.
10296         * sign.c (remove_keysigs): Self signatures are now skipped,
10297         changed arguments and all callers.
10299         * import.c : Add functionality.
10301 Tue Feb 17 09:31:40 1998  Werner Koch  (wk@isil.d.shuttle.de)
10303         * options.h (homedir): New option.
10304         * g10.c, g10maint.c, getkey.c, keygen.c, trustdb.c (opt.homedir): New.
10306         * trustdb.c (init_trustdb): mkdir for hoem directory
10307         (sign_private_data): Renamed "sig" to "g10.sig"
10309 Mon Feb 16 20:02:03 1998  Werner Koch  (wk@isil.d.shuttle.de)
10311         * kbnode.c (commit_kbnode): New.
10312         (delete_kbnode): removed unused first arg. Changed all Callers.
10314         * ringedit.c (keyblock_resource_name): New.
10315         (get_keyblock_handle): NULL for filename returns default resource.
10317 Mon Feb 16 19:38:48 1998  Werner Koch  (wk@isil.d.shuttle.de)
10319         * sig-check.s (check_key_signature): Now uses the supplied
10320         public key to check the signature and not any more the one
10321         from the getkey.c
10322         (do_check): New.
10323         (check_signature): Most work moved to do_check.
10325 Mon Feb 16 14:48:57 1998  Werner Koch  (wk@isil.d.shuttle.de)
10327         * armor.c (find_header): Fixed another bug.
10329 Mon Feb 16 12:18:34 1998  Werner Koch  (wk@isil.d.shuttle.de)
10331         * getkey.c (scan_keyring): Add handling of compressed keyrings.
10333 Mon Feb 16 10:44:51 1998  Werner Koch  (wk@isil.d.shuttle.de)
10335         * g10.c, g10maint.c (strusage): Rewrote.
10336         (build_list): New
10338 Mon Feb 16 08:58:41 1998  Werner Koch  (wk@isil.d.shuttle.de)
10340         * armor.c (use_armor): New.
10342 Sat Feb 14 14:30:57 1998  Werner Koch  (wk@isil.d.shuttle.de)
10344         * mainproc.c (proc_tree): Sigclass fix.
10346 Sat Feb 14 14:16:33 1998  Werner Koch  (wk@isil.d.shuttle.de)
10348         * armor.c (armor_filter): Changed version and comment string.
10349         * encode.c, sign.c, keygen.c: Changed all comment packet strings.
10351 Sat Feb 14 12:39:24 1998  Werner Koch  (wk@isil.d.shuttle.de)
10353         * g10.c (aGenRevoke): New command.
10354         * revoke.c: New.
10355         * sign.c (make_keysig_packet): Add support for sigclass 0x20.
10357 Fri Feb 13 20:18:14 1998  Werner Koch  (wk@isil.d.shuttle.de)
10359         * ringedit.c (enum_keyblocks, keyring_enum): New.
10361 Fri Feb 13 19:33:40 1998  Werner Koch  (wk@isil.d.shuttle.de)
10363         * export.c: Add functionality.
10365         * keygen.c (generate_keypair): Moved the leading comment behind the
10366         key packet.
10367         * kbnode.c (walk_kbnode): Fixed.
10369         * g10.c (main): listing armored keys now work.
10371 Fri Feb 13 16:17:43 1998  Werner Koch  (wk@isil.d.shuttle.de)
10373         * parse-packet.c (parse_publickey, parse_signature): Fixed calls
10374         to mpi_read used for ELG b.
10376 Fri Feb 13 15:13:23 1998  Werner Koch  (wk@isil.d.shuttle.de)
10378         * g10.c (main): changed formatting of help output.
10380 Thu Feb 12 22:24:42 1998  Werner Koch  (wk@frodo)
10382         * pubkey-enc.c (get_session_key): rewritten
10385  Copyright 1998,1999,2000,2001,2002,2003,2004,2005,
10386            2006,2007,2008 Free Software Foundation, Inc.
10388  This file is free software; as a special exception the author gives
10389  unlimited permission to copy and/or distribute it, with or without
10390  modifications, as long as this notice is preserved.
10392  This file is distributed in the hope that it will be useful, but
10393  WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
10394  implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.