Update spanish translation.
[gnupg.git] / g10 / ChangeLog
blob1166b0fef5003db719ada6ead486ad0084f7a2df
1 2009-01-08  Werner Koch  <wk@g10code.com>
3         * misc.c (has_invalid_email_chars): Let non-ascii pass through.
5         * cpr.c [USE_SHM_COPROCESSING]: Remove this code.
7 2008-12-12  Werner Koch  <wk@g10code.com>
9         * passphrase.c (passphrase_get): Write a STATUS_ERROR.
10         * cpr.c (write_status_error): New.
12         * Makefile.am (common_source): Add rmd160.h.
14 2008-12-11  Werner Koch  <wk@g10code.com>
16         * sig-check.c (signature_check2): Change algorithm used to compute
17         the SIG_ID.
18         (check_revocation_keys): Close message digest.
20         * rmd160.c, rmd160.h: New.  Based on code from GnuPG-1.4.
21         * t-rmd160.c: New.
22         * Makefile.am: Add support to run tests.
23         * keyid.c (namehash_from_uid): Use rmd160_hash_buffer.
25 2008-12-10  Werner Koch  <wk@g10code.com>
27         * trustdb.h (NAMEHASH_HASH): Remove unsued constant.
29         * gpg.c (print_mds): Print RMD160 only is enabled.
31         * keygen.c (keygen_set_std_prefs): Include RMD160 only if
32         available.
34 2008-12-09  Werner Koch  <wk@g10code.com>
36         * gpg.c (main) [IS_DEVELOPMENT_VERSION]: Fix strusage use.
38 2008-12-09  Werner Koch  <wk@g10code.com>
40         * keygen.c (proc_parameter_file): Check that key and subkey usages
41         are allowed.
43 2008-12-09  David Shaw  <dshaw@jabberwocky.com>  (wk)
45         * trustdb.c (validate_one_keyblock): Fix the trust signature
46         calculations so that we lower the trust depth of signatures to fit
47         within the current chain, rather than discarding any signature
48         that does not fit within the trust depth.
50 2008-12-09  Werner Koch  <wk@g10code.com>
52         * keyserver.c (show_prompt): Flush stdout.
54         * gpg.c (open_info_file): Add arg BINARY and adjust callers.
56         * gpg.c (main): Call i18n_init before init_common_subsystems.
57         * gpgv.c (main): Ditto.
59         * keylist.c (set_attrib_fd): Do not close ATTRIB_FP if it is the
60         log stream. 
61         (set_attrib_fd) [W32]: Set to binary mode.
62         (dump_attribs): Flush the stream after writing.
64 2008-12-05  Werner Koch  <wk@g10code.com>
66         * call-agent.c (percent_plus_escape): Rename to
67         my_percent_plus_escape and also escape the percent character.
68         Change all callers.
70 2008-11-18  Werner Koch  <wk@g10code.com>
72         * gpg.c (build_lib_list): Remove.
73         (make_libversion): New.
74         (my_strusage): Use it.
75         * gpgv.c (make_libversion): New.
76         (my_strusage): Print libgcrypt version.
78 2008-11-13  Werner Koch  <wk@g10code.com>
80         * gpgv.c: Use new ARGPARSE macros and re-indent.
82 2008-11-11  Werner Koch  <wk@g10code.com>
84         * gpg.c (opts): Use new ARGPARSE macros for clarity.
86 2008-10-24  Werner Koch  <wk@g10code.com>
88         * keyedit.c (change_passphrase): Clear passphrase cache.
90 2008-10-20  Werner Koch  <wk@g10code.com>
92         * gpgv.c: Mark all args of the stub fucntions as unused.
94         * card-util.c (generate_card_keys): Remove unused arg SERIALNO and
95         adjust caller.
96         
97         * build-packet.c (write_sign_packet_header): Mark unused arg.
98         * gpg.c (gpg_init_default_ctrl, gpg_deinit_default_ctrl): Ditto.
99         * getkey.c (skip_unusable): Ditto.
100         (write_version): Ditto.
101         * keydb.c (keydb_locate_writable): Ditto.
102         * keyring.c (update_offset_hash_table): Ditto.
103         (keyring_lock): Ditto.
104         * misc.c (register_secured_file): Ditto.
105         (unregister_secured_file): Ditto.
106         (is_secured_file): Ditto.
107         (is_secured_filename): Ditto.
108         * parse-packet.c (parse_marker): Ditto.
109         (parse_key, parse_attribute): Ditto.
110         (parse_trust, parse_compressed, parse_mdc, parse_gpg_control): Ditto.
111         * cpr.c (progress_cb): Ditto.
112         * passphrase.c (passphrase_clear_cache): Ditto.
113         (ask_passphrase): Ditto.
114         * keyedit.c (keyedit_completion): Ditto.
115         * import.c (import_revoke_cert): Ditto.
116         (chk_self_sigs, delete_inv_parts, append_uid): Ditto.
117         (merge_sigs, merge_keysigs, append_key): Ditto.
118         * trustdb.c (list_trust_path): Ditto.
119         (enum_cert_paths, enum_cert_paths_print): Ditto.
120         * tdbdump.c (list_trustdb): Ditto.
121         * keygen.c (keygen_upd_std_prefs): Ditto.
122         (genhelp_factors): Ditto.
123         * call-agent.c (agent_scd_setattr): Ditto.
124         (agent_scd_writekey, agent_scd_change_pin, agent_scd_genkey): Ditto.
125         (agent_clear_pin_cache): Ditto.
127         * server.c (option_handler): Mark non yet used arg.
128         (input_notify, output_notify): Ditto.
129         (cmd_recipient, cmd_signer, cmd_encrypt, cmd_decrypt, cmd_verify) 
130         (cmd_sign, cmd_import, cmd_export, cmd_delkeys, do_listkeys) 
131         (cmd_genkey): Ditto.
132         * verify.c (gpg_verify): Ditto.
134 2008-10-17  Werner Koch  <wk@g10code.com>
136         * main.h (idea_cipher_warn): Use do while construct in place of an
137         empty definition.
139 2008-10-03  David Shaw  <dshaw@jabberwocky.com>
141         * main.h, mainproc.c (check_sig_and_print)
142         * keylist.c (list_keyblock_print)
143         * pkclist.c (do_edit_ownertrust)
144         * keyedit.c (menu_showphoto)
145         * photoid.c (generate_photo_id, show_photos)
146         * misc.c (pct_expando): Add %v and %V expandos so
147          that displaying photo IDs can show the attribute validity
148          tag (%v) and string (%V).  Originally by Daniel Gillmor.
150 2008-09-29  Werner Koch  <wk@g10code.com>
152         * gpg.c (main): Remove -sat kludge.  Note that we printed a
153         warning for two years.
155         * seskey.c (encode_md_value): Remove extra gcry_md_test_algo since
156         it is not needed with Libgcrypt 1.4.
157         * skclist.c (random_is_faked): Simplify.
158         * sign.c (match_dsa_hash): Remove runtime check for SHA224.
159         * gpg.c (print_mds): Use GCRY_MD_SHA224 constant.
161 2008-09-25  David Shaw  <dshaw@jabberwocky.com>
163         * keyedit.c (keyedit_menu): Fix bug where a modified keyring loses
164         its modified status after a "clean" or "minimize" that doesn't
165         need to do anything.
167 2008-09-25  Werner Koch  <wk@g10code.com>
169         * parse-packet.c (parse): Remove special treatment for compressed
170         new style packets.  Fixes bug#931.
171         
172         * card-util.c (change_pin): Support setting of the reset code.
174 2008-09-24  Werner Koch  <wk@g10code.com>
176         * call-agent.h (struct agent_card_info_s): Add field IS_V2.
177         * call-agent.c (learn_status_cb): That that field.
179         * card-util.c (change_pin): Rename first arg to UNBLOCK_v2 and use
180         it this way.
181         (card_edit): Add new command UNBLOCK.
183 2008-09-23  David Shaw  <dshaw@jabberwocky.com>
185         * pkclist.c (select_algo_from_prefs): Redo function to rank prefs
186         and pick a consensus winner across all keys.
188 2008-09-16  Werner Koch  <wk@g10code.com>
190         * card-util.c (fpr_is_ff): New.
191         (card_status): Do not print general key info for an all-ff fpr.
192         (change_login, change_private_do): Factor common code out to ...
193         (get_data_from_file): .. new.
194         (change_cert): New.
195         (card_edit): Add command "writecert".
196         * call-agent.c (writecert_parm_s): New.
197         (inq_writecert_parms, agent_scd_writecert): New.
199 2008-09-04  David Shaw  <dshaw@jabberwocky.com>
201         * keyserver.c (keyserver_import_cert): Allow keyserver URLs in
202         addition to full URLs in CERT records.
204 2008-08-11  Werner Koch  <wk@g10code.com>
206         * keygen.c (ask_expire_interval): Check for time overflow of an
207         u32.  Fixes bug #947.
209 2008-08-01  Werner Koch  <wk@g10code.com>
211         * tdbio.c (open_db) [!EROFS]: Move closing parens out of the
212         ifdef.  Reported by Ken Takusagawa.
214 2008-06-25  Marcus Brinkmann  <marcus@g10code.de>
216         * gpg.c (enum cmd_and_opt_values): Remove option
217         oEnableW32HandleTranslation.
218         (opts): Remove option --enable-w32-handle-translation.
219         (main): Remove variable w32_handle_translation.
221 2008-06-19  Werner Koch  <wk@g10code.com>
223         * gpg.c (gpgconf_list): Add "group".
225 2008-06-18  Marcus Brinkmann  <marcus@g10code.de>
227         * gpg.c (enum cmd_and_opt_values): New option
228         oEnableW32HandleTranslation.
229         (opts): New option --enable-w32-handle-translation.
230         (main): New variable w32_handle_translation to keep track of
231         option.
233 2008-06-16  Werner Koch  <wk@g10code.com>
235         * keygen.c (output_control_s): Add ASK_PASSPHRASE.
236         (read_parameter_file): Add commands %ask-passphrase and
237         %no-ask-passphrase.
239 2008-06-11  Werner Koch  <wk@g10code.com>
241         * gpg.c: Make --fixed-list-mode a dummy.
242         * options.h (struct): Removed FIXED_LIST_MODE.
243         * keyid.c (colon_strtime, colon_datestr_from_pk) 
244         (colon_datestr_from_sk, colon_datestr_from_sig) 
245         (colon_expirestr_from_sig): Remove fixed_list_mode case.
246         * keylist.c (list_keyblock_colon): Ditto.  Remove all now unsed
247         code and reindent.
249 2008-05-31  Werner Koch  <wk@g10code.com>
251         * keygen.c (ask_user_id): Change the string printed as header of
252         the user ID generation.  Use code to not break existing
253         translations.  Suggested by Eric Tetz.
255 2008-05-08  Werner Koch  <wk@g10code.com>
257         * sig-check.c (do_check_messages): Print a revocation diagnostic
258         in verbose mode.
260 2008-05-07  Werner Koch  <wk@g10code.com>
262         * gpg.c: New command --locate-keys.  New options --with-sig-list
263         and --with-sig-check.
264         * keylist.c (locate_one): New.
265         (public_key_list): Add arg LOCATE_MODE and use locate_one.
266         * getkey.c (get_pubkey_byname): Fix nodefault case.  Add option
267         RETCTX, change all callers.
268         (struct getkey_ctx_s): Add field extra_ptr;
269         (get_pubkey_end): Free it.
271 2008-04-18  Werner Koch  <wk@g10code.com>
273         * misc.c (map_cipher_openpgp_to_gcry, map_cipher_gcry_to_openpgp) 
274         (openpgp_cipher_test_algo): Add camellia-192.
275         (openpgp_cipher_blocklen): New.
276         * parse-packet.c (parse_key): Use new function here.
278 2008-04-15  David Shaw  <dshaw@jabberwocky.com>
280         * getkey.c (merge_selfsigs_subkey): If there are multiple 0x19
281         backsigs, take the most recent one.
283 2008-04-08  Werner Koch  <wk@g10code.com>
285         * options.h (opt): Add AKL_NODEFAULT and AKL_LOCAL.
286         * getkey.c (parse_auto_key_locate): Parse them.
287         (get_pubkey_byname): Implement them.  Add arg NO_AKL and use that
288         in all cases where a local key is expected.
289         * import.c (import_one): Fill in the fingerprint in all cases.
290         Use log_get_stream.
291         * keyserver.c (keyserver_import_pka): Set FPR to NULL on error.
292         Return G10ERR_NO_PUBKEY if no PKA info is available or no key URI
293         is given in the PKA record..
294         (keyserver_import_cert): Return G10ERR_NO_PUBKEY if a CERT record
295         was not found.
297         * getkey.c (get_pubkey_byname): Release FPR in the error case.
298         Continue with next mechanism on error.  Better diagnostics.
300 2008-04-07  Werner Koch  <wk@g10code.com>
302         * keyserver.c (parse_keyserver_uri): Allow a default host name.
304         * getkey.c (get_pubkey_byname): Replace sprintf by bin2hex.
306 2008-04-02  Werner Koch  <wk@g10code.com>
308         * gpg.c (main): Do not allow DSA2 with a too old Libgcrypt.
310 2008-03-26  Werner Koch  <wk@g10code.com>
312         * tdbio.c (lookup_hashtable): Make cmp args const.
313         (cmp_trec_fpr): Make FPR const.
314         (tdbio_search_trust_byfpr): Remove cast.
316 2008-03-25  Werner Koch  <wk@g10code.com>
318         * keyserver.c (parse_keyrec): Take care of char defaulting to
319         unsigned when using hextobyte.
321 2008-03-25  David Shaw  <dshaw@jabberwocky.com>  (wk)
323         * import.c (collapse_uids): Fix bug 894: possible memory
324         corruption around deduplication of user IDs.
326 2008-03-25  Werner Koch  <wk@g10code.com>
328         * parse-packet.c (parse_key): Parse a secret key encrypted with
329         Camellia.
331         * options.skel: Make the default keyserver keys.gnupg.net.
333 2008-03-18  Werner Koch  <wk@g10code.com>
335         * seckey-cert.c (do_check): Use GCRYMPI_FMT_PGP for v3 keys.
336         Reported by Petr Cerny.
338 2008-03-13  Werner Koch  <wk@g10code.com>
340         * passphrase.c (PROMPTSTRING): Change string to me more similar to
341         the X.509 prompt.
343 2008-02-26  Werner Koch  <wk@g10code.com>
345         * getkey.c (get_pubkey_byname): Fix comment.
347 2008-02-14  Werner Koch  <wk@g10code.com>
349         * call-agent.c (default_inq_cb): New.
350         (agent_learn, agent_scd_getattr, agent_scd_pksign) 
351         (agent_scd_pkdecrypt, agent_scd_change_pin, agent_scd_checkpin) 
352         (agent_get_passphrase, agent_clear_passphrase): Use new callback.
353         (inq_writekey_parms): Fall back to the new callback for other
354         inquiries. 
355         (start_agent): Tell agent that we accept pinentry notifications.
357 2008-02-11  Werner Koch  <wk@g10code.com>
359         * server.c (cmd_getinfo): New. 
360         (register_commands): Register GETINFO.
362 2008-02-09  Marcus Brinkmann  <marcus@g10code.de>
364         * gpg.c (main): New variable default_configname.  Use it if
365         save_configname is NULL (can happen if default configfile does
366         not exist).  Move default configname determination to ...
367         (get_default_configname): ... this new function.
369 2008-01-30  Werner Koch  <wk@g10code.com>
371         * keydb.c (maybe_create_keyring): Fixed last change.
372         * tdbio.c (tdbio_set_dbname): Also test for forward slash.
374 2008-01-29  Werner Koch  <wk@g10code.com>
376         * keydb.c (maybe_create_keyring): Take care of a missing slash.
377         (maybe_create_keyring) [W32]: Also test for forward slash.
379 2008-01-26  Werner Koch  <wk@g10code.com>
381         * card-util.c (get_manufacturer): Add vendor 0004.
383 2008-01-02  Werner Koch  <wk@g10code.com>
385         * gpg.c: Add --logger-file as an alias for log-file.
387 2007-12-14  Werner Koch  <wk@g10code.com>
389         * gpg.c (main): Set opt.no_homedir_creation during the first option
390         parsing pass.
392 2007-12-12  Werner Koch  <wk@g10code.com>
394         * misc.c (print_pubkey_algo_note): Print a warning if a type 20
395         key is used.
396         (openpgp_pk_test_algo, openpgp_pk_test_algo2) 
397         (openpgp_pk_algo_usage): Allow type 20 keys only in rfc2440 mode.
399 2007-12-12  David Shaw  <dshaw@jabberwocky.com>  (wk)
401         * trustdb.c (sanitize_regexp): New.  Protect against dangerous
402         regexps (malloc bombs) by force-commenting any characters aside
403         from the ones we explicitly want.
404         (check_regexp): Use it here before passing the regexp to
405         regcomp().
407 2007-12-12  Werner Koch  <wk@g10code.com>
409         * misc.c (map_cipher_openpgp_to_gcry): New.  Used to map Camellia
410         algorithms to Gcrypt.
411         (openpgp_cipher_test_algo): Call new map function.  Replace
412         all remaining calls to gcry_cipher_test_algo by a call to this.
413         (openpgp_cipher_algo_name): New.  Replace all remaining calls to
414         gcry_cipher_algo_name by a call to this.
415         (map_cipher_gcry_to_openpgp): New.
416         (string_to_cipher_algo): Use it.
417         * gpg.c (main): Print a warning if Camellia support is build in.
418         
419         * gpg.c (print_algo_names): New.  From the 1.4 branch by David.
420         (list_config): Use it here for the "ciphername" and "digestname"
421         config items so we can get a script-parseable list of the names.
423         * parse-packet.c (parse_onepass_sig): Sigclass is hex, so include
424         the 0x.
426         * sign.c (match_dsa_hash): Remove conditional builds dending on
427         USE_SHAxxx.  We don't need this becuase it can be expected that
428         libgcrypt provides it.  However we need to runtime test for SHA244
429         becuase that is only available with libgcrypt 2.4.
431 2007-12-11  Werner Koch  <wk@g10code.com>
433         * mainproc.c (proc_pubkey_enc): Allow type 20 Elgamal key for
434         decryption.
436 2007-12-10  Werner Koch  <wk@g10code.com>
438         * import.c (auto_create_card_key_stub): Do not clear the entire
439         fingerprint.  This finally makes the stub creation work.  My past
440         tests seemed to work because there was a key with a all zero
441         fingerprint available (Elgamal signing keys).
443 2007-12-08  Werner Koch  <wk@g10code.com>
445         * misc.c (openpgp_pk_algo_usage): Allow Elgamal type 20 for
446         encryption.
448 2007-12-04  Werner Koch  <wk@g10code.com>
450         * helptext.c (get_help_from_file): New.
451         (display_online_help): Use it to geting the help through a file.
452         (helptexts): Remove.
454 2007-12-03  Werner Koch  <wk@g10code.com>
456         * keygen.c (ask_key_flags): Add a translation remark and implement
457         a workaround.
459         * gpg.c (reopen_std): Moved to ../common and renamed to
460         gnupg_reopen_std.
461         
462         * gpg.c: Remove second inclusion of fcntl.h.
464 2007-11-19  Werner Koch  <wk@g10code.com>
466         * keyedit.c (keyedit_menu): String grammar fix.
468 2007-11-15  Werner Koch  <wk@g10code.com>
470         * gpg.c (main): New option --xauthority.
471         * call-agent.c (start_agent): Adjust changed start_new_gpg_agent.
473 2007-11-12  Werner Koch  <wk@g10code.com>
475         * cpr.c (do_get_from_fd): s/bool/getbool/ to overcome problems
476         with Mac OS 10.5 which seems to include stdbool.h silently.
478 2007-11-07  Werner Koch  <wk@g10code.com>
480         Replace all includes of errors.h by status.h (found in common/).
482         * status.h: Remove.
483         * status.h: Move prototypes to main.h.
484         * status.c:  Rename to ..
485         * cpr.c: .. this.
486         (get_status_string): Remove.  We take this now from common/.
488 2007-10-25  David Shaw  <dshaw@jabberwocky.com>  (wk)
490         From 1.4 (October):
492         * gpg.c (main): Add --require-cross-certification to
493         --openpgp/--rfc4880 mode.
495         * gpg.c (main): Disable --rfc2440-text and --force-v3-sigs by
496         default.  Enable --require-cross-certification by default.
497         --openpgp (--rfc4880) is the same as --rfc2440 except with
498         "--enable-dsa2 --no-rfc2440-text --escape-from-lines".
500         * misc.c (compliance_option_string, compliance_failure): Minor
501         cleanup.
503         * armor.c (is_armor_header): Comment about 4880.
505         * options.h, gpg.c (main): Add --rfc4880, and make --openpgp an
506         alias to it.  --rfc2440 now stands alone.  For now, use the old
507         2440 defaults for 4880.
508         * misc.c (compliance_option_string): Ditto.
509         
510         * keyedit.c (keyedit_menu): Use compliance_option_string() instead
511         of printing the compliance modes here.
513 2007-10-25  David Shaw  <dshaw@jabberwocky.com>  (wk)
515         From 1.4 (September):
517         * import.c (collapse_uids): Significant speedup for de-duping user
518         IDs.
520 2007-10-25  David Shaw  <dshaw@jabberwocky.com>  (wk)
522         From 1.4 (July):
523         
524         * armor.c (parse_header_line): Improve test so that the header
525         test only allows "Hash" in the signed data section.
527         * armor.c (is_armor_tag): New.  Detect if an armor header matches
528         2440bis-21.
529         (parse_header_line): Call it here, as bis-21 requires warning the
530         user (but continuing to process the message) when seeing an
531         unknown header.
533         * encode.c (encode_crypt): Missed one call to
534         setup_plaintext_name().  This is bug#809.
536         * sign.c (mk_notation_policy_etc): Expect all sigs that this is
537         called for are >=v4.
538         (write_signature_packets, make_keysig_packet): Only call it for
539         >=v4 sigs.  This allows --force-v3-sigs and --force-v4-certs to
540         enable or disable notations, policies, and keyserver URLs.  This
541         is bug#800.
543 2007-10-19  Werner Koch  <wk@g10code.com>
545         * passphrase.c (passphrase_get): Use new utf8 switching fucntions.
547 2007-09-14  Werner Koch  <wk@g10code.com>
549         * gpg.c (build_lib_list): New.
550         (my_strusage): Print lib info.
552 2007-08-27  Werner Koch  <wk@g10code.com>
554         * trustdb.c (USE_INTERNAL_REGEX): Remove support.
556 2007-08-24  Werner Koch  <wk@g10code.com>
558         * keyring.c (keyring_register_filename): Use same_file_p().
560 2007-08-21  Werner Koch  <wk@g10code.com>
562         * misc.c (openpgp_md_test_algo): Remove rfc2440bis hash algorithms.
563         (openpgp_cipher_test_algo): Likewise for algos 5 and 6.
565 2007-08-02  Werner Koch  <wk@g10code.com>
567         * gpg.c: Include gc-opt-flags.h and remove their definition here.
569 2007-07-17  Werner Koch  <wk@g10code.com>
571         * gpg.c (gpgconf_list): Declare --encrypt-to and --default-key.
573         * card-util.c (get_manufacturer): Add the unmanaged S/N range.
575 2007-07-12  Werner Koch  <wk@g10code.com>
577         * gpg.c (main): Use translate_sys2libc_fd_int when passing an int
578         value.
579         * gpgv.c (main): Ditto.
581 2007-07-05  Werner Koch  <wk@g10code.com>
583         * card-util.c (card_generate_subkey, card_store_subkey): Enable
584         the code also for GnuPG-2.
586         * keygen.c (make_backsig): Add arg TIMESTAMP.
587         (write_keybinding): Add arg TIMESTAMP, pass it to make_backsig.
588         (write_direct_sig, write_selfsigs): Add arg TIMESTAMP.
589         (gen_elg, gen_dsa, gen_rsa): Add arg TIMESTAMP.
590         (do_create): Ditto.
591         (do_generate_keypair): Use the same timestamp for key creation
592         time and all key signatures. Return an error if write_direct_sig
593         for the secret key fails.
594         (generate_subkeypair): Ditto.
595         (gen_card_key): New arg TIMESTAMP.
596         (generate_card_subkeypair): Pass current time to gen_card_key.
597         (gen_card_key_with_backup): New arg TIMESTAMP.
598         (read_parameter_file): Add option Creation-Date.
599         (parse_creation_string): New.
600         (do_generate_keypair): Use the Creation-Date if available.
601         (save_unprotected_key_to_card): Use P for P and not D.
602         * call-agent.c (agent_scd_genkey): Add arg CREATETIME.
603         * keyedit.c (menu_backsign): Use the same timestamp for all backsigs.
605 2007-06-26  Werner Koch  <wk@g10code.com>
607         * openfile.c (try_make_homedir): Support W32; use standard_homedir.
609 2007-06-25  Werner Koch  <wk@g10code.com>
611         * gpg.c, gpgv.c: Include sysutils.h.
612         (main): Replace iobuf_translate_file_handle by
613         translate_sys2libc_fd.
614         
616 2007-06-21  Werner Koch  <wk@g10code.com>
618         * main.h: Include util.h.
620         * call-agent.c (start_agent): Factored almost all code out to
621         ../common/asshelp.c.
623         * gpg.h (ctrl_t): Remove.  It is now declared in ../common/util.h.
625 2007-06-20  Werner Koch  <wk@g10code.com>
627         * misc.c (setsysinfo, trap_unaligned): Remove.  It is also in
628         common/sysutils.c.
629         (disable_core_dumps, get_session_marker): 
631         * sign.c (sleep): Remove sleep wrapper.
633 2007-06-18  Marcus Brinkmann  <marcus@g10code.de>
635         * gpg.c (gpgconf_list): Percent escape output of --gpgconf-list.
637 2007-06-14  Werner Koch  <wk@g10code.com>
639         * call-agent.c (start_agent): Use gnupg_module_name.
641 2007-06-12  Werner Koch  <wk@g10code.com>
643         * openfile.c (copy_options_file): Use gnupg_datadir.
644         * misc.c (get_libexecdir): Remove.  Changed all callers to use
645         gnupg_libexecdir.
646         * gpg.c (check_permissions): Use gnupg_libdir.
648         * gpg.c (main): Replace some calls by init_common_subsystems.
649         * gpgv.c (main): Ditto.
651 2007-06-11  Werner Koch  <wk@g10code.com>
653         * Makefile.am (needed_libs): Use libcommonstd macro.
655         * gpgv.c (main) [W32]: Call pth_init.
656         * gpg.c (main) [W32]: Call pth_init.
658 2007-06-08  Werner Koch  <wk@g10code.com>
660         * Makefile.am (gpg2_LDADD): Syntax fix.
662 2007-06-06  Werner Koch  <wk@g10code.com>
664         * passphrase.c (passphrase_get) [!ENABLE_NLS]: Do not define
665         orig_codeset.
667         * Makefile.am (gpgv2_LDADD, gpg2_LDADD): Include LDADD before
668         libgcrypt.
670         * plaintext.c (handle_plaintext): Replace eof by eof_seen as W32's
671         io.h has a symbol with that name.
673         * misc.c: Do not include dynload.h.
674         (w32_shgetfolderpath): Remove. It is now in common/homedir.c.
676         * gpgv.c (i18n_init): Remove.
677         * gpg.c (i18n_init): Remove.
678         (main): Make --load-extension a dummy
680 2007-05-19  Marcus Brinkmann  <marcus@g10code.de>
682         * passphrase.c (passphrase_get): Use PACKAGE_GT, not PACKAGE.
684         * passphrase.c (passphrase_get): Free ORIG_CODESET on error.
686 2007-05-16  Werner Koch  <wk@g10code.com>
688         * sig-check.c (check_backsig): Check the digest algorithm before
689         using it.  Fixed bug 797.
691 2007-05-09  Werner Koch  <wk@g10code.com>
693         * openfile.c (overwrite_filep, open_outfile) [W32]: Need to use
694         just "nul".  Though, I am pretty sure that some MSDOS versions
695         grok the extra /dev/.
697 2007-05-07  Werner Koch  <wk@g10code.com>
699         * openfile.c (open_outfile, overwrite_filep) [W32]: Use "/dev/nul".
701 2007-05-02  David Shaw  <dshaw@jabberwocky.com>
703         * packet.h, mainproc.c (reset_literals_seen): New function to
704         reset the literals count.
706         * verify.c (verify_one_file), decrypt.c (decrypt_messages): Call
707         it here so we allow multiple literals in --multifile mode (in
708         different files - not concatenated together).
710 2007-04-26  Marcus Brinkmann  <marcus@g10code.de>
712         * passphrase.c (passphrase_to_dek): Write missing passphrase
713         status message in case of cancellation.
715 2007-04-16  Werner Koch  <wk@g10code.com>
717         * build-packet.c (mpi_write): Made buffer a bit larger.  Reported
718         by Alexander Feigl.
720 2007-04-13  Werner Koch  <wk@g10code.com>
722         * call-agent.c (start_agent): Don't use log_error when using the
723         fallback hack to start the agent.  This is bug 782.
725 2007-04-05  David Shaw  <dshaw@jabberwocky.com>
727         From STABLE-BRANCH-1-4
729         * parse-packet.c (parse_marker): New.  Enforce that the marker
730         contains 'P', 'G', 'P', and nothing but.
731         (parse): Call it here.
732         (skip_packet): No longer need to handle marker packets here.
734 2007-03-14  David Shaw  <dshaw@jabberwocky.com>
736         From STABLE-BRANCH-1-4
738         * keyserver.c: Windows Vista doesn't grok X_OK and so fails
739         access() tests.  Previous versions interpreted X_OK as F_OK
740         anyway, so we'll just use F_OK directly.
742 2007-03-09  David Shaw  <dshaw@jabberwocky.com>
744         From STABLE-BRANCH-1-4
746         * parse-packet.c (parse_signature): It's hex.
748         * getkey.c (merge_selfsigs_subkey): Avoid listing the contents of
749         a backsig when list mode is on.  Noted by Timo Schulz.
751 2007-03-08  Werner Koch  <wk@g10code.com>
753         * plaintext.c (handle_plaintext): Add two extra fflush for stdout.
755 2007-03-08  David Shaw  <dshaw@jabberwocky.com>  (wk)
757         * keyedit.c (keyedit_menu): If we modify the keyblock (via
758         fix_keyblock() or collapse_uids()) make sure we reprocess the
759         keyblock so the flags are correct.  Noted by Robin H. Johnson.
761         * getkey.c (fixup_uidnode): Properly clear flags that don't apply
762         to us (revoked, expired) so that we can reprocess a uid.
764 2007-03-05  Werner Koch  <wk@g10code.com>
766         Converted this file to UTF-8.
767         
768         Ported David and my multiple messages changes from 1.4.7.
770         * options.h, gpg.c (main), mainproc.c (check_sig_and_print): Allow
771         multiple sig verification again as this is protected via the
772         multiple-messages code.  New option --allow-multiple-messages and
773         --no variant.
774         * status.h (STATUS_ERROR): New status code.
775         * status.c (get_status_string): Ditto.
776         * mainproc.c (proc_plaintext): Emit it if multiple messages are
777         detected. Error out if more than one plaintext packet is
778         encountered.    
779         * mainproc.c (literals_seen): New.
781 2007-02-26  Werner Koch  <wk@g10code.com>
783         * gpg.c (main): Add verify option show-primary-uid-only.
784         * options.h (VERIFY_SHOW_PRIMARY_UID_ONLY): New.
785         * mainproc.c (check_sig_and_print): Implement it.
787 2007-02-22  Werner Koch  <wk@g10code.com>
789         * encr-data.c (decrypt_data): Correctly test for unknown algorithm.
790         * import.c (check_prefs): Ditto.
791         * keyedit.c (show_prefs): Ditto.
792         * mainproc.c (proc_symkey_enc): Ditto.
794 2007-02-06  Werner Koch  <wk@g10code.com>
796         * export.c (do_export_stream): Allow reset-subkey-passwd along
797         with sexp-format.
799 2007-02-04  Werner Koch  <wk@g10code.com>
801         * parse-packet.c (parse_signature): Limit bytes read for an
802         unknown alogorithm.  Fixes Debian bug#402592.
804 2007-01-31  Werner Koch  <wk@g10code.com>
806         * verify.c (verify_signatures): Do no dereference a NULL afx.
808         * passphrase.c (passphrase_get): Set the cancel flag on all error
809         from the agent.  Fixes a bug reported by Tom Duerbusch.
811 2007-01-30  Werner Koch  <wk@g10code.com>
813         * status.c (write_status_begin_signing): New.
814         * sign.c (sign_file, sign_symencrypt_file): Call it.
815         * textfilter.c (copy_clearsig_text): Call it.
817         * call-agent.c (agent_scd_pksign): Pass --hash-rmd160 to SCD if
818         required.
820         * gpg.c (main): Let --no-use-agent and --gpg-agent-info print a
821         warning.  
822         * misc.c (obsolete_option): New.
824 2007-01-29  Werner Koch  <wk@g10code.com>
826         * pkclist.c (do_we_trust_pre): Issue a user-id-hint status code. 
828 2007-01-15  Werner Koch  <wk@g10code.com>
830         * parse-packet.c (read_protected_v3_mpi): Make sure to stop
831         reading even for corrupted packets.
832         * keygen.c (generate_user_id): Need to allocate one byte more.
833         Reported by Felix von Leitner.
835 2006-12-21  Werner Koch  <wk@g10code.com>
837         * gpg.c (main): New command --server.
838         * gpg.h (struct server_control_s, ctrl_t): New.
839         * server.c: New.
840         * verify.c (gpg_verify): New.
841         * mainproc.c (mainproc_context): Made SIGNED_DATA a structure.
842         (proc_signature_packets_by_fd): New.
843         (proc_compressed_cb): Divert depending on SIGNED_DATA.
844         * plaintext.c (hash_datafile_by_fd): New.
845         * mainproc.c (proc_tree): Use it here.
847         * verify.c (verify_signatures): Init AFX only when needed.
848         Don't leak a context on error.
849         (verify_one_file): Don't leak a context on error.
851 2006-12-07  Werner Koch  <wk@g10code.com>
853         * openfile.c (copy_options_file): Use log_info instead of
854         log_error to avoid an error return of gpg due to a missing
855         skeleton file.
857 2006-12-07  David Shaw  <dshaw@jabberwocky.com>
859         * Makefile.am: Link to iconv for jnlib dependency.
861 2006-12-05  Werner Koch  <wk@g10code.com>
863         * passphrase.c (passphrase_to_dek): Handle a Cancel request
864         correctly.  [Bug#737]
865         * mainproc.c (proc_symkey_enc): Removed workaround for bogus cancel
866         processing.
867         * encode.c (encode_simple): Distinguish error message between
868         cancel and invalid passphrase.
869         (setup_symkey): Ditto.
870         * sign.c (sign_symencrypt_file): Ditto
871         * keyedit.c (change_passphrase): Allow cancellation.
872         * keygen.c (do_ask_passphrase): New arg R_CANCELED.
873         (generate_keypair): Handle a passphrase cancellation.
874         (generate_raw_key): Ditto.
875         (generate_subkeypair): Ditto.
877 2006-12-04  Werner Koch  <wk@g10code.com>
879         * filter.h (armor_filter_context_t): New element REFCOUNT.
880         * armor.c (armor_filter): Made static.
881         (push_armor_filter, release_armor_context, new_armor_context): New.
882         (armor_filter): Release the context.
883         * gpg.c (main): Use new armor context functions and
884         push_armor_filter.
885         * export.c (do_export): Ditto.
886         * encode.c (encode_simple, encode_crypt): Ditto.
887         * decrypt.c (decrypt_message, decrypt_messages): Ditto.
888         * dearmor.c (dearmor_file, enarmor_file): Ditto.
889         * verify.c (verify_signatures, verify_one_file): Ditto.
890         * sign.c (sign_file, clearsign_file, sign_symencrypt_file): Ditto.
891         * revoke.c (gen_desig_revoke, gen_revoke): Ditto.
892         * keyserver.c (keyserver_spawn): Ditto.
893         * keygen.c (output_control_s): Turn AFX fields into pointers.
894         (read_parameter_file): Allocate and release AFX fields.
895         (do_generate_keypair): Use push_armor_filter.
896         * import.c (import): Replace iobuf_push_filter2 hack by the new
897         armor context stuff.
899 2006-12-03  Werner Koch  <wk@g10code.com>
901         * filter.h: New element REFCOUNT.
902         (handle_progress): Remove prototype.
903         * progress.c (new_progress_context, release_progress_context): New.
904         (progress_filter): Use new function to release context.  Made static.
905         (handle_progress): Bumb reference counter.  No more check for
906         enabled progress as this is handled by new_progress_context.
907         * verify.c (verify_signatures, verify_one_file): Replace stack
908         based progress context by a heap based one.
909         * sign.c (sign_file, clearsign_file, sign_symencrypt_file): Ditto.
910         * plaintext.c (ask_for_detached_datafile, hash_datafiles): Ditto.
911         * encode.c (encode_simple, encode_crypt): Ditto.
912         * decrypt.c (decrypt_message, decrypt_messages): Ditto. 
914         * keyedit.c (menu_clean): Made strings translatable.
916 2006-12-03  David Shaw  <dshaw@jabberwocky.com>
918         * keyedit.c (menu_clean): Show "already minimized" rather than
919         "already clean" when a minimized key is minimized again.  From
920         Dirk Traulsen.
922 2006-12-02  David Shaw  <dshaw@jabberwocky.com>
924         * options.h, gpg.c (main), passphrase.c (passphrase_to_dek): Add
925         --passphrase-repeat option to control how many times gpg will
926         re-prompt for a passphrase to ensure the user has typed it
927         correctly.  Defaults to 1.
929 2006-12-02  Werner Koch  <wk@g10code.com>
931         * encr-data.c: Allocate DFX context on the heap and not on the
932         stack.  Changes at several places.  Fixes CVE-2006-6235.
933         
934 2006-11-27  Werner Koch  <wk@g10code.com>
936         * openfile.c (ask_outfile_name): Fixed buffer overflow occurring
937         if make_printable_string returns a longer string.  Fixes bug 728.
939 2006-11-21  Werner Koch  <wk@g10code.com>
941         * Makefile.am (needed_libs): libgnu needs to come after libcommon.
943         * keygen.c (ask_expire_interval): Print y2038 warning only for 32
944         bit time_t.
945         (save_unprotected_key_to_card): Made RSA_N_LEN et al a size_t.
946         Cast printf args.
947         (get_parameter_algo): Allow "ELG" as alias for "ELG-E".
949         * seckey-cert.c (do_check): Made NBYTES a size_t.
950         (do_check): Made NDATA a size_t.
951         (protect_secret_key): Made NARR a size_t.
952         (protect_secret_key): Made NVYES a size_t.
953         * pubkey-enc.c (get_it): Made INDATALEN a size_t. 
954         (get_it): Made NFRAME a size_t.
955         * keyid.c (hash_public_key): Made NBITS an unsigned int.
956         * misc.c (checksum_mpi): Made NBYTES a size_t. 
957         (openpgp_pk_test_algo2): Made USE_BUF a size_t.
958         * seskey.c (encode_session_key): Made NFRAME a size_t.
959         (do_encode_md): Ditto.
960         (encode_md_value): Cast size_t argument of printf.
961         (encode_md_value): Ditto.
963 2006-11-10  Werner Koch  <wk@g10code.com>
965         * parse-packet.c (mpi_read): Changed NREAD to size_t to match the
966         gcry_mpi-scan prototype. 
967         (mpi_read): Fixed double increment of bytes read to correctly
968         detect overlong MPIs.
970 2006-11-05  Werner Koch  <wk@g10code.com>
972         * gpg.c (main): Remove the default --require-cross-certification.
973         * options.skel: Enable require-cross-certification.
975 2006-10-31  Werner Koch  <wk@g10code.com>
977         * pkclist.c (warn_missing_aes_from_pklist): New.
978         * encode.c (encrypt_filter, encode_crypt): Use it here.
980 2006-10-27  Werner Koch  <wk@g10code.com>
982         * pkclist.c (warn_missing_mdc_from_pklist): New.
983         * encode.c (use_mdc): Use it here.
985 2006-10-24  Marcus Brinkmann  <marcus@g10code.de>
987         * Makefile.am (AM_CFLAGS): Add $(LIBASSUAN_CFLAGS).
989 2006-10-23  Werner Koch  <wk@g10code.com>
991         * gpg.c (main): New command --gpgconf-test.
993         * Makefile.am (bzip2_source): New.
995 2006-10-20  Werner Koch  <wk@g10code.com>
997         * getkey.c (classify_user_id): Reserve '&' for search by keygrip.
999 2006-10-19  Werner Koch  <wk@g10code.com>
1001         * keygen.c (get_parameter_algo): Add special case for ELG_E which
1002         is not supported by libgcrypt's mapping function.
1004 2006-10-18  Werner Koch  <wk@g10code.com>
1006         * keyid.c (v3_keyid): Don't use mempcy as we need to hold the
1007         keyids in the native endian format.
1009         * import.c (import_print_stats): Use log_printf.
1011         * build-packet.c (do_public_key): Care about mpi_write errors.
1012         (do_secret_key, do_pubkey_enc, do_signature): Ditto. 
1013         (mpi_write): Print an extra warning on error.
1015 2006-10-17  Werner Koch  <wk@g10code.com>
1017         * Makefile.am (LDADD): Replaced W32LIBS by NETLIBS.
1019 2006-10-12  David Shaw  <dshaw@jabberwocky.com>
1021         * parse-packet.c (parse_symkeyenc): Show the unpacked as well as
1022         the packed s2k iteration count.
1024         * main.h, options.h, gpg.c (encode_s2k_iterations, main),
1025         passphrase.c (hash_passphrase): Add --s2k-count option to specify
1026         the number of s2k hash iterations.
1028 2006-10-08  Werner Koch  <wk@g10code.com>
1030         * gpgv.c: Remove the tty stubs as we are now required to link to
1031         tty anyway (it is included in libcommand and has dependencies to
1032         other modules as well).
1034         * keyedit.c (keyedit_menu): Use keyedit_completion only if
1035         readline is available.  It would be better to move this code into
1036         gpgrlhelp.c
1038 2006-10-06  Werner Koch  <wk@g10code.com>
1040         * Makefile.am (AM_CFLAGS): Use PTH version of libassuan.
1042 2006-10-06  David Shaw  <dshaw@jabberwocky.com>
1044         * keyserver.c (keyserver_spawn): Write the 16-digit keyid rather
1045         than whatever key selector the user used on the command line.
1047 2006-10-05  Werner Koch  <wk@g10code.com>
1049         * status.c (progress_cb): Changed to libgcrypt API.
1050         (set_status_fd): Register the progress cb.
1052         * seskey.c (encode_md_value): Check that the hash algo is valid
1053         before getting the OID. 
1055 2006-10-04  Werner Koch  <wk@g10code.com>
1057         * passphrase.c: Allow for a static passphrase in batch mode.
1058         
1059         * call-agent.c (agent_havekey): Removed.
1060         (percent_plus_escape): New.
1061         (agent_get_passphrase): New.
1062         (agent_clear_passphrase): New.
1064         * passphrase.c: Changed so that we always require the agent.
1065         (agent_send_option, agent_send_all_options, agent_open): Removed.
1066         (agent_get_passphrase): Cleaned up.  Does now use the call-agent
1067         functions.  Renamed to
1068         (passphrase_get): .. this.  Changed all callers.
1069         (passphrase_clear_cache): Rewritten.
1070         (passphrase_to_dek, hash_passphrase): Re-indented.
1072         * gpg.c (main): Made --use-agent a dummy option.
1073         * seckey-cert.c (check_secret_key): We require the agent, so always
1074         allow for 3 tries.
1076         * gpg.c (main): Print a warning if -sat has been used.
1077         (main): Removed the special treatment of the -k option. -k is now
1078         an alias for --list-keys.
1079         (main): Removed --list-ownertrust.
1081 2006-10-02  Werner Koch  <wk@g10code.com>
1083         * encr-data.c (decrypt_data, mdc_decode_filter): Check the MDC
1084         right here and don't let parse-packet handle the MDC.
1086 2006-09-29  Werner Koch  <wk@g10code.com>
1088         * compress.c (do_uncompress): Removed use of Z_PARTIAL_FLUSH.
1089         This is outdated and old zlib versions which still require it have
1090         security problems.
1092 2006-09-27  Werner Koch  <wk@g10code.com>
1094         Replaced all STRLIST by strlist_t.
1096 2006-09-21  Werner Koch  <wk@g10code.com>
1098         * signal.c (got_fatal_signal): Replaced readline stuff by a tty
1099         function.
1101         * Makefile.am (LDADD): Include libgpgrl.a.
1103         * gpg.c (main): Call gpg_rl_initialize.
1105         * keyedit.c: Removed double inclusion of stdio.h.
1107 2006-09-20  Werner Koch  <wk@g10code.com>
1109         * call-agent.c: Include asshelp.h.
1110         (start_agent): Use send_pinentry_environment.
1112 2006-09-14  Werner Koch  <wk@g10code.com>
1114         Replaced all call gpg_error_from_errno(errno) by
1115         gpg_error_from_syserror().
1117 2006-09-13  Werner Koch  <wk@g10code.com>
1119         * gpg.c (main): Made --require-cross-certification the default. 
1121 2006-09-06  Marcus Brinkmann  <marcus@g10code.de>
1123         * Makefile.am (gpg2_LDADD, gpgv2_LDADD): Replace -lassuan and
1124         -lgpg-error with $(LIBASSUAN_LIBS) and $(GPG_ERROR_LIBS).
1125         (AM_CFLAGS): Add $(LIBASSUAN_CFLAGS) and $(GPG_ERROR_CFLAGS).
1127 2006-09-06  Werner Koch  <wk@g10code.com>
1129         * gpg.c (main): Enable new assuan API.
1130         * call-agent.c: Changed to new Assuan API.
1132 2006-09-01  Werner Koch  <wk@g10code.com>
1134         * call-agent.c: Do not force using the pipe server.
1136         * gpg.c (main): Enable card related commands.
1138 2006-08-22  Werner Koch  <wk@g10code.com>
1140         * mainproc.c (proc_plaintext): Fixed a #warning
1142 2006-08-21  Werner Koch  <wk@g10code.com>
1144         * skclist.c (random_is_faked): Implemented.
1145         (is_insecure): Also test for the old uppercase version of the
1146         insecure string.
1147         * gpg.c (main): Renamed --quick-random to debug-quick-quick-random.
1149         * gpg.c (print_mds): Do not use the USE_SHA macros.
1151         * mainproc.c (proc_encrypted): Remove assign inside condition for
1152         better readibility.
1154         * packet.h: Moved consts to new header ../common/openpgpdefs.h.
1156 2006-08-16  Werner Koch  <wk@g10code.com>
1158         * keyserver.c (GPGKEYS_PREFIX): Rename to gpg2keys_.  This is so
1159         that we can install helpers from 1.4 and 2 without conflicts and
1160         first of all don't get lost with weird bug reports.
1162         * keyid.c (serialno_and_fpr_from_sk): New. Actually lost during
1163         the last 1.4 to 1.9 merge.
1165         * gpg.c (list_config): Output ccid-reader-id only for gnupg 1.
1167         * call-agent.c (agent_scd_writekey): New.
1168         (inq_writekey_parms): New.
1170         * gpgv.c: Include call-agent.h for use by stubs.
1172         * misc.c: Include call-agent.h for use by get_signature_count.
1174 2006-07-27  Werner Koch  <wk@g10code.com>
1176         * parse-packet.c (parse_comment): Cap comments at 65k.
1177         (parse_gpg_control): Skip too large control packets.
1179 2006-07-24  David Shaw  <dshaw@jabberwocky.com>  (wk)
1181         * keydb.h, pkclist.c (select_algo_from_prefs, algo_available):
1182         Pass a union for preference hints rather than doing void * games.
1184         * sign.c (sign_file): Use it here.
1186         * sign.c (sign_file): When signing with multiple DSA keys, one
1187         being DSA1 and one being DSA2 and encrypting at the same time, if
1188         the recipient preferences give a hash that can work with the DSA2
1189         key, then allow the DSA1 key to be promoted rather than giving up
1190         and using hash_for().
1192         * pkclist.c (algo_available): Automatically enable DSA2 mode when
1193         handling a key that clearly isn't DSA1 (i.e. q!=160).
1195 2006-06-30  Werner Koch  <wk@g10code.com>
1197         * misc.c (checksum_mpi): No need for nbits as they are alredy
1198         included in the buffer.
1200 2006-06-29  Werner Koch  <wk@g10code.com>
1202         * parse-packet.c (parse_signature, parse_key): Need store the
1203         length of opaque data as number of bits. 
1204         * card-util.c (card_store_subkey): Ditto.
1206         * mainproc.c (print_pkenc_list, check_sig_and_print): Replaced
1207         log_get_stream by calls to log_printf.  This avoids the extra LFs
1208         inserted by the logging function. They are a bit too smart
1209         sometimes.
1210         * pkclist.c (do_show_revocation_reason): Print final LF through
1211         log_printf to avoid extra LFs.
1212         * pubkey-enc.c (get_it): Ditto.
1214         * seskey.c (encode_md_value): Fix call to gcry.
1216 2006-06-27  Werner Koch  <wk@g10code.com>
1218         Applied patches from 1.4.x (2006-05-22 to 2006-06-23) from David:
1220         * keygen.c (keygen_upd_std_prefs, keygen_add_std_prefs)
1221         (proc_parameter_file): Add --default-keyserver-url to specify a
1222         keyserver URL at key generation time, and "Keyserver:" keyword for
1223         doing the same through a batch file.
1224         * options.h, gpg.c (main): Ditto.
1226         * sign.c (do_sign): For now don't accept a truncated hash even
1227         for DSA1 keys (be liberal in what you accept, etc).
1229         * import.c (import_one): Add a flag (from_sk) so we don't check
1230         prefs on an autoconverted public key.  The check should only
1231         happen on the sk side.  Noted by Dirk Traulsen.
1233         * keygen.c (gen_card_key): Add optional argument to return a
1234         pointer (not a copy) of the stub secret key for the secret key we
1235         just generated on the card.
1236         (generate_card_subkeypair): Use it here so that the signing key on
1237         the card can use the card to generate the 0x19 backsig on the
1238         primary key.  Noted by Janko Heilgeist and Jonas Oberg.
1240         * parse-packet.c (parse_user_id): Cap the user ID size at 2048
1241         bytes.  This prevents a memory allocation attack with a very large
1242         user ID.  A very large packet length could even cause the
1243         allocation (a u32) to wrap around to a small number.  Noted by
1244         Evgeny Legerov on full-disclosure.
1246         * keygen.c (gen_dsa): Allow generating DSA2 keys.  Allow
1247         specifying sizes > 1024 when --enable-dsa2 is set.  The size of q
1248         is set automatically based on the key size.
1249         (ask_keysize, generate_keypair): Ask for DSA size when
1250         --enable-dsa2 is set.
1252         * exec.c (make_tempdir) [W32]: Fix bug with a temporary directory
1253         on W32 that is over 256 bytes long.  Noted by Israel G. Lugo.
1255         * gpg.c (reopen_std): New function to reopen fd 0, 1, or 2 if we
1256         are called with them closed.  This is to protect our
1257         keyring/trustdb files from corruption if they get attached to one
1258         of the standard fds.  Print a warning if possible that this has
1259         happened, and fail completely if we cannot reopen (should never
1260         happen).
1261         (main): Call it here.
1262         
1263         * parse-packet.c (dump_sig_subpkt, parse_signature): Fix meaning
1264         of key expiration and sig expiration subpackets - zero means
1265         "never expire" according to 2440, not "expire instantly".
1266         * build-packet.c (build_sig_subpkt_from_sig): Ditto.
1267         * getkey.c (fixup_uidnode, merge_selfsigs_main)
1268         (merge_selfsigs_subkey): Ditto.
1269         * keygen.c (keygen_add_key_expire): Ditto.
1271         * getkey.c (get_pubkey_byname)
1272         * import.c (import_one): Fix key selection problem when
1273         auto-key-locate returns a list of keys, not all of which are
1274         usable (revoked, expired, etc).  Noted by Simon Josefsson.
1276 2006-05-24  Werner Koch  <wk@g10code.com>
1278         * keyid.c (hash_public_key): Do not double hash the length bytes,
1279         they are already included by mpi_print.
1281         * misc.c (openpgp_pk_test_algo2): Get test call right.
1283         * misc.c (string_to_cipher_algo, string_to_digest_algo): New.
1284         * keygen.c (keygen_set_std_prefs): use them here.
1285         * gpg.c (main): and here.
1287 2006-05-23  Werner Koch  <wk@g10code.com>
1289         * card-util.c (generate_card_keys): Removed temporary kludge for
1290         generate_keypair.
1292         * call-agent.c (agent_scd_setattr): Add arg SERIALNO.
1293         (agent_scd_genkey): Ditto.
1294         (agent_scd_change_pin): Ditto.
1296         * call-agent.h (struct agent_card_info_s): Updated to match the
1297         one of 1.4.3.
1299         * Makefile.am (LDADD): Include ZLIBS.
1301         * gpgv.c: Removed stubs not anymore useful due to libgcrypt.
1303 2006-05-22  Werner Koch  <wk@g10code.com>
1305         * keyserver.c (keyidlist): Replaced mpi_get_keyid by v3_keyid.
1306         * keydb.h (v3_keyid): Added.
1308         * import.c (import): Better initialize KEYBLOCK as to quiet
1309         compiler warning.
1311         * skclist.c (random_is_faked): New.
1313         * mainproc.c: Include pka.h.
1315 2006-05-19  Werner Koch  <wk@g10code.com>
1317         * misc.c (openpgp_pk_test_algo2): Need to use gcry_pk_algo_info
1318         directly.
1319         (string_count_chr): New.
1321         * armor.c (parse_header_line): Use renamed function
1322         length_sans_trailing_ws.
1324         * options.h, gpg.c: Option --strict is not used thus removed code
1325         but kept option.
1327 2006-04-28  David Shaw  <dshaw@jabberwocky.com>  (wk)
1328         
1329         * keyserver.c (direct_uri_map): New.
1330         (keyserver_spawn): Used here to add "_uri" to certain gpgkeys_xxx
1331         helpers when the meaning is different if a path is provided (i.e. 
1332         ldap).
1333         (keyserver_import_cert): Show warning if there is a CERT
1334         fingerprint, but no --keyserver set.
1336         * keyserver.c: Fix build problem with platforms that stick libcurl
1337         in a place not in the regular include search path.
1339         * options.h, gpg.c (main): Add --enable-dsa2 and --disable-dsa2.
1340         Defaults to disable.
1342         * pkclist.c (algo_available): If --enable-dsa2 is set, we're
1343         allowed to truncate hashes to fit DSA keys.
1345         * sign.c (match_dsa_hash): New.  Return the best match hash for a
1346         given q size.
1347         (do_sign, hash_for, sign_file): When signing with a DSA key, if it
1348         has q==160, assume it is an old DSA key and don't allow truncation
1349         unless --enable-dsa2 is also set.  q!=160 always allows truncation
1350         since they must be DSA2 keys.
1351         (make_keysig_packet): If the user doesn't specify a
1352         --cert-digest-algo, use match_dsa_hash to pick the best hash for
1353         key signatures.
1355         * gpg.c (print_mds): Add SHA-224.
1356         * armor.c (armor_filter, parse_hash_header): Add SHA-224.
1358         * sign.c (write_plaintext_packet):
1359         Factor common literal packet setup code from here, to...
1360         * encode.c (encode_simple): .. there.
1361         
1362         * main.h, plaintext.c (setup_plaintext_name): Here. New. Make sure
1363         the literal packet filename field is UTF-8 encoded.
1365         * options.h, gpg.c (main): Make sure --set-filename is UTF-8
1366         encoded and note when filenames are already UTF-8.
1368         * keyedit.c (menu_backsign): Give some more verbose errors when we
1369         have no need to backsign.
1371         * getkey.c (parse_auto_key_locate): Fix dupe-removal code.
1373         * keyedit.c (menu_backsign): Allow backsigning even if the secret
1374         subkey doesn't have a binding signature.
1376         * armor.c (radix64_read): Don't report EOF when reading only a pad
1377         (=) character.  The EOF actually starts after the pad.
1379         * gpg.c (main): Make --export, --send-keys, --recv-keys,
1380         --refresh-keys, and --fetch-keys follow their arguments from left
1381         to right.  Suggested by Peter Palfrader.
1383 2006-04-18  Werner Koch  <wk@g10code.com>
1385         * tdbio.c (open_db, migrate_from_v2): Removed feature to migration
1386         from old trustdb version 2.
1388         * gpg.c, mainproc.c: Removed pipemode feature.
1390         * status.c: Removed shared memory coprocess stuff
1392         Merged with current gpg 1.4.3 code.
1393         
1394         * keygen.c, keyid.c, misc.c, openfile.c, verify.c, trustdb.c
1395         * textfilter.c, tdbio.c, tdbdump.c, status.c, skclist.c, signal.c
1396         * sign.c, sig-check.c, seskey.c, seckey-cert.c, revoke.c
1397         * pubkey-enc.c, progress.c, plaintext.c, pkclist.c, photoid.c
1398         * passphrase.c, parse-packet.c, mdfilter.c, mainproc.c
1399         * keyserver.c, keyring.c, keylist.c, keyedit.c, keydb.c, kbnode.c
1400         * import.c, getkey.c, gpgv.c, helptext.c, free-packet.c
1401         * build-packet.c, cipher.c, compress.c, dearmor.c, decrypt.c
1402         * delkey.c, encr-data.c, encode.c, exec.c, export.c
1403         * gpg.c, armor.c: Updated from gnupg-1.4.3 and merged back gcry and
1404         gnupg-1.9 related changes.
1405         * trustdb.h, tdbio.h, status.h, photoid.h, packet.h, options.h
1406         * main.h, keyserver-internal.h, keyring.h, keydb.h, filter.h
1407         * exec.h: Ditto.
1408         * global.h: Removed after merging constants with gpg.h.
1409         * comment.c, pipemode.c: Removed.
1410         * card-util.c: Updated from gnupg-1.4.3.
1411         * compress-bz2.c: New.
1412         
1413 2005-06-15  Werner Koch  <wk@g10code.com>
1415         * g10.c (print_hashline, add_group): Fixes for signed/unsigned
1416         pointer mismatch warnings.
1418 2005-06-01  Werner Koch  <wk@g10code.com>
1420         * mkdtemp.c: Removed.
1421         * exec.c: Include mkdtemp.h
1423 2004-12-21  Werner Koch  <wk@g10code.com>
1425         * gpgv.c, g10.c (main): Use default_hoemdir ().
1427 2004-12-18  Werner Koch  <wk@g10code.com>
1429         * gpg.h (map_assuan_err): Define in terms of
1430         map_assuan_err_with_source.
1432 2004-12-15  Werner Koch  <wk@g10code.com>
1434         * Makefile.am (LDADD): Remove ZLIBS.
1436 2004-10-22  Werner Koch  <wk@g10code.com>
1438         * g10.c (main): Display a bit fat warning that this gpg should not
1439         be used.
1441         * card-util.c (fetch_url): Disable for gnupg 1.9
1442         (card_generate_subkey): Ditto.
1443         (card_store_subkey): Ditto.
1445 2004-09-30  Werner Koch  <wk@g10code.com>
1447         * gpgv.c (i18n_init): Always use LC_ALL.
1449         * Makefile.am (LDADD): Adjusted for gettext 0.14.
1451 2004-09-20  Werner Koch  <wk@g10code.com>
1453         * keyedit.c (show_key_with_all_names): Print the card S/N.
1455 2004-09-11  Moritz Schulte  <moritz@g10code.com>
1457         * openfile.c (copy_options_file): Fixed last commit (added a `+').
1459 2004-08-31  Werner Koch  <wk@g10code.de>
1461         * openfile.c (copy_options_file): Use gpg-conf.skel. Better take
1462         the length of SKELEXT into account, someone might make it larger.
1463         * Makefile.am: Install options.skel as gpg-conf.skel.
1465 2004-08-18  Marcus Brinkmann  <marcus@g10code.de>
1467         * passphrase.c (agent_get_passphrase): Fix detection of gpg-agent
1468         cancellation.
1470 2004-07-01  Werner Koch  <wk@gnupg.org>
1472         * card-util.c (change_login): Kludge to allow reading data from a
1473         file.
1474         (card_edit): Pass ARG_STRING to change_login.
1475         (card_status): Print CA fingerprints.
1476         (change_cafpr): New.
1477         (card_edit): New command CAFPR.
1479         * call-agent.h: Add members for CA fingerprints.
1480         * call-agent.c (agent_release_card_info): Invalid them.
1481         (learn_status_cb): Store them.
1483 2004-04-30  Werner Koch  <wk@gnupg.org>
1485         * g10.c (main) <gpgconf>: Use gpg.conf and not /dev/null as
1486         default filename.
1488 2004-04-28  Werner Koch  <wk@gnupg.org>
1490         * card-util.c (card_edit): Remove PIN verification.
1491         (generate_card_keys): New arg SERIALNO.  Do PIN verification here
1492         after resetting forced_chv1.
1494 2004-04-26  Werner Koch  <wk@gnupg.org>
1496         * card-util.c (change_name): Check that the NAME is not too long.
1497         (change_url): Likewise.
1498         (change_login): Likewise.
1500 2004-03-23  Werner Koch  <wk@gnupg.org>
1502         * g10.c: New options --gpgconf-list, --debug-level and --log-file
1503         (set_debug): Add arg DEBUG_LEVEL.
1504         (main): Look at less and less version specific config files.  From
1505         gnupg 1.3.
1507 2004-02-17  Werner Koch  <wk@gnupg.org>
1509         * call-agent.c (start_agent): Ignore an empty GPG_AGENT_INFO.
1510         * passphrase.c (agent_open): Ditto.
1512 2004-02-12  Werner Koch  <wk@gnupg.org>
1514         * gpgv.c: Removed g10defs.h.
1516         * Makefile.am: Include cmacros.am for common flags.
1518 2004-02-11  Werner Koch  <wk@gnupg.org>
1520         * openfile.c (try_make_homedir): Use GNUPG_DEFAULT_HOMEDIR.
1521         * gpgv.c (main): Ditto.
1522         * g10.c (main): Ditto.
1524 2004-01-19  Moritz Schulte  <mo@g10code.com>
1526         * keygen.c (do_generate_keypair): Print member fname, instead of
1527         newfname, again.
1528         (do_generate_keypair): Don't try to execute certain pieces of code
1529         in case an error occured.
1530         (gen_card_key): Don't print out a message, which is already
1531         printed by do_generate_keypair().
1533 2004-01-18  Moritz Schulte  <mo@g10code.com>
1535         * keygen.c (do_generate_keypair): Print member fname, instead of
1536         newfname.
1538 2003-12-17  Werner Koch  <wk@gnupg.org>
1540         * card-util.c (print_name): Fixed bad format string usage.
1541         (print_isoname): Ditto.
1543         * trustdb.c (check_regexp): s/exp/expr/.
1545         * keyedit.c (trustsig_prompt): Removed a "> 255" term; it is
1546         always false due to the data type.
1547         
1548         * passphrase.c (agent_get_passphrase): Use xasprintf and avoid
1549         non-literal format strings.
1551         * tdbio.c (upd_hashtable, drop_from_hashtable, lookup_hashtable):
1552         Fixed log_error format string bugs.  Kudos to the now working
1553         gcc-3.3 -Wformat-nonliteral and Florian Weimer's investigations in
1554         gnupg 1.2.3.
1556 2003-12-15  Werner Koch  <wk@gnupg.org>
1558         * seckey-cert.c (protect_secret_key): Use gry_create_nonce for the
1559         IV; there is not need for real strong random here and it even
1560         better protect the random bits used for the key.
1562 2003-11-16  Moritz Schulte  <mo@g10code.com>
1564         * signal.c: Removed unused file.
1566 2003-11-10  Moritz Schulte  <mo@g10code.com>
1568         * Makefile.am (INCLUDES): Added: @LIBGCRYPT_CFLAGS@.
1570 2003-10-25  Werner Koch  <wk@gnupg.org>
1572         * call-agent.c (learn_status_cb, scd_genkey_cb): Fixed faulty use
1573         of !spacep().
1575 2003-10-20  Werner Koch  <wk@gnupg.org>
1577         * card-util.c (card_edit): New command "passwd".  Add logic to
1578         check the PIN in advance.
1579         (card_status): Add new args to return the serial number.  Changed
1580         all callers.
1581         * call-agent.c (agent_scd_checkpin): New.
1583 2003-10-08  Werner Koch  <wk@gnupg.org>
1585         * call-agent.c (agent_scd_getattr): Don't clear the passed info
1586         structure, so that it can indeed be updated.
1588         * card-util.c (fpr_is_zero): New.
1589         (generate_card_keys): New.
1590         (card_edit): New command "generate".
1591         * keygen.c (generate_keypair): New arg CARD_SERIALNO, removed call
1592         to check_smartcard.
1593         (check_smartcard,show_smartcard): Removed.
1594         (show_sha1_fpr,fpr_is_zero): Removed.
1596 2003-10-01  Werner Koch  <wk@gnupg.org>
1598         * card-util.c: Tweaked to use this source also under 1.3. 
1600 2003-09-30  Werner Koch  <wk@gnupg.org>
1602         * keylist.c (print_card_serialno): New.
1603         (list_keyblock_print): Use it here.
1605         * card-util.c (toggle_forcesig): New.
1606         (card_edit): New command "forcesig".
1607         
1608         * card-util.c (print_name, print_isoname): Use 0 and not LF fro
1609         the max_n arg of tty_print_utf8_string2.
1611         * call-agent.c (agent_scd_getattr): New.
1612         (learn_status_cb): Release values before assignment so that it can
1613         be used by getattr to update the structure.
1614         
1615         * card-util.c (change_pin): Simplified.  We now have only a PIN
1616         and an Admin PIN.
1618 2003-09-27  Werner Koch  <wk@gnupg.org>
1620         * sign.c (do_sign): Removed disabled testcode.
1622 2003-09-26  Timo Schulz  <twoaday@freakmail.de>
1624         * card_status (card_status): Do not use fputs since the fp
1625         parameter can be NULL. This fixes a segv.
1626         
1627 2003-09-24  Werner Koch  <wk@gnupg.org>
1629         * card-util.c (print_isoname,card_status): Handle opt.with_colons.
1630         (print_sha1_fpr_colon): New.
1632 2003-09-23  Werner Koch  <wk@gnupg.org>
1634         Merged most of David Shaw's changes in 1.3 since 2003-06-03.
1635         
1636         * Makefile.am: Include W32LIBS where appropriate.
1638         * armor.c (parse_hash_header,armor_filter): Drop TIGER/192 support.
1639         * g10.c (print_hex,print_mds): Ditto.
1640         * pkclist.c (algo_available): Ditto.
1642         * armor.c (armor_filter): Allow using --comment multiple times to
1643         get multiple Comment header lines.  --no-comments resets list.
1644         * options.h, g10.c (main): Ditto. Deprecate --default-comment in
1645         favor of --no-comments.
1647         * g10.c (main): Trim --help to commonly used options.  Remove -f.
1649         * g10.c (main): Add --multifile as an alias to turn --encrypt into
1650         --encrypt-files (plus --verify-files, --decrypt-files).  Error out
1651         if --multifile is used with the commands that don't support it yet.
1653         * encode.c (use_mdc), g10.c (main): Use RFC1991 and RFC2440
1654         directly to check for MDC usability.  Do not set the force_mdc or
1655         disable_mdc flags since there is no point any longer.
1656         
1657         * g10.c (main): Use "keyserver-url" instead of
1658         "preferred-keyserver" for the sake of short and simple commands.
1659         (add_keyserver_url): Clarify a few strings.  It's a
1660         "preferred keyserver URL".
1661         * keyedit.c (keyedit_menu): Ditto.
1662         * sign.c (mk_notation_policy_etc): Ditto. 
1664         * main.h, keygen.c (keygen_add_keyserver_url): Signature callback
1665         for adding a keyserver URL.
1666         * keyedit.c (keyedit_menu, menu_set_keyserver_url): New command to
1667         set preferred keyserver to specified (or all) user IDs.
1668         * build-packet.c (build_sig_subpkt): Set preferred keyserver flag
1669         while building a preferred keyserver subpacket.
1671         * keylist.c (show_policy_url, show_keyserver_url): URLs might be
1672         UTF8.
1674         * keyedit.c (menu_addrevoker): Fix leaking a few bytes.
1676         * keyedit.c (show_key_with_all_names): Use list-option
1677         show-long-keyid in main --edit-key display.
1679         * keyedit.c (print_and_check_one_sig): Use list-option
1680         show-long-keyid in --edit-key "check" function.
1682         * passphrase.c (agent_send_all_options): Make use of $GPG_TTY.
1684         * g10.c (main): Disable use-agent if passphrase-fd is given
1685         later. Suggested by Kurt Garloff.
1687         * exec.c, g10.c, gpgv.c, passphrase.c, photoid.c:
1688         s/__MINGW32__/_WIN32/ to help building on native Windows
1689         compilers.  Requested by Brian Gladman.  From Werner on stable
1690         branch.
1692         * options.h, g10.c (main): Add list-option
1693         list-preferred-keyserver.
1695         * keyedit.c (change_passphrase): When responding 'no' to the blank
1696         passphrase question, re-prompt for a new passphrase.  This is bug
1697         #202.
1699         * mainproc.c (check_sig_and_print): Use two different preferred
1700         keyserver displays - one if the key is not present (to tell the
1701         user where to get the key), the other if it is present (to tell
1702         the user where the key can be refreshed).
1704         * packet.h, parse-packet.c (parse_signature): Set flag if a
1705         preferred keyserver is present.
1707         * keylist.c (list_keyblock_print): Show keyserver url in listings
1708         with list-option show-keyserver-url.
1710         * mainproc.c (check_sig_and_print): Get the uid validity before
1711         printing any sig results to avoid munging the output with trustdb
1712         warnings.
1714         * g10.c (main): Don't include --show-keyring in --help as it is
1715         deprecated.
1717         * options.skel: Note that keyserver.pgp.com isn't synchronized,
1718         and explain the roundrobin a bit better.
1720         * sig-check.c (check_key_signature2), import.c (import_one,
1721         import_revoke_cert, chk_self_sigs, delete_inv_parts,
1722         collapse_uids, merge_blocks): Make much quieter during import of
1723         slightly munged, but recoverable, keys. Use log_error for
1724         unrecoverable import failures.
1726         * keyring.c (keyring_rebuild_cache): Comment.
1728         * sign.c (mk_notation_and_policy): Making a v3 signature with
1729         notations or policy urls is an error, not an info (i.e. increment
1730         the errorcount). Don't print the notation or policy url to stdout
1731         since it can be mixed into the output stream when piping and munge
1732         the stream.
1734         * packet.h, sig-check.c (signature_check2, do_check,
1735         do_check_messages): Provide a signing-key-is-revoked flag.  Change
1736         all callers.
1738         * status.h, status.c (get_status_string): New REVKEYSIG status tag
1739         for a good signature from a revoked key.
1741         * mainproc.c (do_check_sig, check_sig_and_print): Use it here.
1743         * import.c (import_revoke_cert, merge_blocks, merge_sigs): Compare
1744         actual signatures on import rather than using keyid or class
1745         matching.  This does not change actual behavior with a key, but
1746         does mean that all sigs are imported whether they will be used or
1747         not.
1749         * parse-packet.c (parse_signature): Don't give "signature packet
1750         without xxxx" warnings for experimental pk algorithms.  An
1751         experimental algorithm may not have a notion of (for example) a
1752         keyid (i.e. PGP's x.509 stuff).
1754         * options.h, g10.c (main), keylist.c (list_keyblock_print),
1755         keyedit.c (print_and_check_one_sig): New "show-sig-expire"
1756         list-option to show signature expiration dates (if any).
1758         * options.h, g10.c (main, add_keyserver_url): Add
1759         --sig-preferred-keyserver to implant a "where to get my key"
1760         subpacket into a signature.
1762         * sign.c (mk_notation_and_policy): Rename to
1763         mk_notation_policy_etc and add preferred keyserver support for
1764         signatures.
1766         * keygen.c (do_add_key_flags): Don't set the certify flag for
1767         subkeys.
1768         (ask_algo): Provide key flags for DSA, Elgamal_e, and Elgamal
1769         subkeys.
1770         (generate_keypair): Provide key flags for the default DSA/Elgamal
1771         keys.
1773         * sig-check.c (signature_check, signature_check2,
1774         check_key_signature, check_key_signature2): Allow passing NULLs
1775         for unused parameters in the x2 form of each function to avoid the
1776         need for dummy variables. getkey.c, mainproc.c: Change all
1777         callers.
1779         * trustdb.h, trustdb.c (read_trust_options): New.  Returns items
1780         from the trustdb version record.
1781         * keylist.c (public_key_list): Use it here for the new "tru"
1782         record.
1783         * gpgv.c (read_trust_options): Stub.
1785         * keyedit.c (show_key_with_all_names): Use list-option
1786         show-validity in --edit-key interface as well.
1788         * options.h, g10.c (main), mainproc.c (check_sig_and_print): Add
1789         verify-options "show-validity" and "show-long-keyid" to show
1790         trustdb validity and long keyids during (file) signature
1791         verification.
1793         * packet.h, main.h, sig-check.c (signature_check2)
1794         (check_key_signature2, do_check): If ret_pk is set, fill in the pk
1795         used to verify the signature.  Change all callers in getkey.c,
1796         mainproc.c, and sig-check.c.
1798         * keylist.c (list_keyblock_colon): Use the ret_pk from above to
1799         put the fingerprint of the signing key in "sig" records during a
1800         --with-colons --check-sigs.  This requires --no-sig-cache as well
1801         since we don't cache fingerprints.
1803         * parse-packet.c (parse_signature): No need to reserve 8 bytes for
1804         the unhashed signature cache any longer.
1806         * misc.c (pct_expando): Add two new expandos - signer's
1807         fingerprint (%g), and signer's primary fingerprint (%p).
1809         * g10.c (main): Add --rfc2440 alias for --openpgp since in a few
1810         months, they won't be the same thing.
1812         * keyserver.c (parse_keyserver_uri): Accept "http" as an alias for
1813         "hkp", since it is occasionally written that way.
1814         (keyserver_spawn): Use ascii_isspace to avoid locale issues.
1816         * keygen.c (ask_user_id): Make --allow-freeform-uid apply to the
1817         email field as well as the name field, and allow mixing fields
1818         when it is set.
1820         * trustdb.c (validate_one_keyblock): Certifications on revoked or
1821         expired uids do not count in the web of trust.
1823         * signal.c (init_one_signal, pause_on_sigusr, do_block): Only use
1824         sigprocmask() if we have sigset_t, and only use sigaction() if we
1825         have struct sigaction.  This is for Forte c89 on Solaris which
1826         seems to define only the function call half of the two pairs by
1827         default.
1828         (pause_on_sigusr): Typo.
1829         (do_block): If we can't use sigprocmask() and sigset_t, try to get
1830         the number of signals from NSIG as well as MAXSIG, and if we
1831         can't, fail with an explanation.
1833         * signal.c, tdbio.c: Comment out the transaction code.  It was not
1834         used in this version, and was causing some build problems on
1835         quasi-posix platforms (Solaris and Forte c89).
1837         * keylist.c (list_keyblock_colon): Don't include validity values
1838         when listing secret keys since they can be incorrect and/or
1839         misleading.  This is a temporary kludge, and will be handled
1840         properly in 1.9/2.0.
1842         * mainproc.c (check_sig_and_print): Only show the "key available
1843         from" preferred keyserver line if the key is not currently
1844         present.
1846         * keyedit.c (sign_uids): Do not sign expired uids without --expert
1847         (same behavior as revoked uids).  Do not allow signing a user ID
1848         without a self-signature.  --expert overrides.  Add additional
1849         prompt to the signature level question.
1850         (menu_expire): When changing expiration dates, don't replace
1851         selfsigs on revoked uids since this would effectively unrevoke
1852         them. There is also no point in replacing expired selfsigs.  This
1853         is bug #181
1855         * g10.c (add_notation_data): Make sure that only ascii is passed
1856         to iscntrl.  Noted by Christian Biere.
1857         * getkey.c (classify_user_id2): Replaced isspace by spacep
1858         * keygen.c (ask_user_id): Ditto.
1859         (get_parameter_algo): Ditto.
1860         * keyedit.c (keyedit_menu): Ditto.
1861         * tdbdump.c (import_ownertrust): Ditto.  s/isxdigit/hexdigitp/.
1862         * revoke.c (ask_revocation_reason): 
1863         * keyserver.c (keyserver_spawn): Dito.
1865         * parse-packet.c (parse): Disallow old style partial length for
1866         all key material packets to avoid possible corruption of keyrings.
1868         * import.c (import_keys_internal): Invalidate the cache so that
1869         the file descriptor gets closed.  Fixes bug reported by Juan
1870         F. Codagnone.
1872         * options.h, g10.c (main), main.h, keylist.c (show_keyserver_url),
1873         mainproc.c (check_sig_and_print), parse-packet.c (dump_sig_subpkt,
1874         parse_one_sig_subpkt, can_handle_critical): Add read-only support
1875         for preferred keyserver subpackets.  They're basically policy URLs
1876         with a different name.  Add a verify-option
1877         "show-preferred-keyserver" to turn them on and off (on by default,
1878         as per stable branch).
1880         * g10.c (main): Add "--set-notation" as alias to "--notation-data"
1881         this is to make things consistent with --set-policy-url meaning
1882         both sigs and certs.
1884         * options.h, g10.c (main), keylist.c (list_keyblock_print): Add
1885         "show-validity" and "show-long-keyid" list-options.
1887         * gpgv.c (get_validity, trust_value_to_string): Stubs.
1889         * g10.c (main): Use SAFE_VERSION instead of VERSION in the
1890         version-specific gpg.conf file so it can be overridden on RISCOS.
1892         * keyedit.c (show_key_with_all_names): Fix assertion failure when
1893         using toggle to see a secret key.  Reported by Maxim Britov.
1896 2003-09-22  Timo Schulz  <twoaday@freakmail.de>
1898         * card-util.c (card_status): Free pk in case of an error
1899         and return if the card is no OpenPGP card.
1900         
1901 2003-09-18  Werner Koch  <wk@gnupg.org>
1903         * g10.c: New command --card-edit.
1904         * card-util.c (card_status): Use tty_fprintf for all output.
1905         (print_sha1_fpr, print_isoname): Ditto.
1906         (get_one_name,change_name, change_url, change_login,change_lang)
1907         (change_sex): New; taken from keygen.c.
1908         * keygen.c (smartcard_get_one_name, smartcard_change_name) 
1909         (smartcard_change_url, smartcard_change_login_data) 
1910         (smartcard_change_lang, smartcard_change_sex): Removed.
1911         (check_smartcard): Removed most menu items.
1913 2003-09-06  Werner Koch  <wk@gnupg.org>
1915         * misc.c (openpgp_pk_algo_usage): Allow AUTH where SIGN is allowed.
1917         * keygen.c (ask_passphrase): No need to allocated S2K in secure
1918         memory.
1920 2003-09-04  Werner Koch  <wk@gnupg.org>
1922         * keygen.c (do_add_key_flags, parse_parameter_usage) 
1923         (do_generate_keypair): Add support the proposed AUTH key flag.
1924         * getkey.c (fixup_uidnode, merge_selfsigs_main) 
1925         (merge_selfsigs_subkey, premerge_public_with_secret): Ditto.
1926         * keylist.c (print_capabilities): Ditto.
1928 2003-08-25  Timo Schulz  <twoaday@freakmail.de>
1930         * pkglue.c (mpi_from_sexp): New. Used to factor out
1931         some common code.
1932         
1933 2003-08-24  Werner Koch  <wk@gnupg.org>
1935         * keygen.c (do_generate_keypair): Print a reminder to use --gen-revoke.
1937 2003-08-18  Timo Schulz  <twoaday@freakmail.de>
1939         * encode.c (encode_sesskey): Checked the code and removed
1940         the warning since all compatibility checks with PGP succeeded.
1941         * mainproc.c (symkey_decrypt_sesskey): Better check for the
1942         algorithm and check the return values of some functions.
1943         * mdc.c (use_mdc): Simplified.
1944         
1945 2003-08-07  Werner Koch  <wk@gnupg.org>
1947         * pkglue.c (pk_sign): Fix last change.
1948         (pk_verify): Check for valid DATA array so that we don't segv in
1949         Libgcrypt.
1950         (pk_verify): Ditto.
1952 2003-08-06  Werner Koch  <wk@gnupg.org>
1954         * pkglue.c (pk_sign): Allow signing using RSA.
1956 2003-08-05  Werner Koch  <wk@gnupg.org>
1958         * Makefile.am (install-data-local): Dropped check for the ancient
1959         gpgm tool.
1960         (bin_PROGRAMS): Renamed gpg to gpg2 and gpgv to gpgv2.  This is so
1961         that it won't conflict with the current stable version of gpg.
1963         * pkglue.c (pk_check_secret_key): New.
1964         * seckey-cert.c (do_check): Reenable this test here again.
1966         * g10.c (main): Add command -K as an alias for
1967         --list-secret-keys. Command "-k" is now an alias to --list-keys.
1968         Remove special treatment of -kv and -kvv.
1969         (set_cmd): Ditto.
1970         (main): Strip a "-cvs" suffix when testing for a version specific
1971         config file.
1973         * status.h, status.c, g10.c [USE_SHM_COPROCESSING]: Removed.  This
1974         is not any longer available.
1976 2003-07-29  Werner Koch  <wk@gnupg.org>
1978         * g10.c (main): Add secmem features and set the random seed file.
1979         (g10_exit): Update the random seed file.
1981         * parse-packet.c (parse_signature,read_protected_v3_mpi)
1982         (parse_key): Fixed use of mpi_set_opaque.
1983         * keygen.c (gen_card_key): Ditto.
1985 2003-07-28  Werner Koch  <wk@gnupg.org>
1987         * status.c (progress_cb): Adjusted for use with Libcgrypt.
1988         (set_status_fd): Register that callback.
1990         * keygen.c (smartcard_change_login_data): New.
1991         (smartcard_change_lang): New.
1992         (smartcard_change_sex): New.
1993         (check_smartcard): Add menu entries to edit the above.
1994         (gen_elg,gen_dsa,gen_rsa): Reimplemented in terms of Libgcrypt.
1995         (genhelp_protect, genhelp_factors, key_from_sexp): New.
1996         * comment.c (make_comment_node_from_buffer): New.
1997         (make_comment_node): Reimplemented in terms of above.
1999 2003-07-27  Werner Koch  <wk@gnupg.org>
2001         Adjusted for gcry_mpi_print and gcry_mpi_scan API change.
2003 2003-07-24  Werner Koch  <wk@gnupg.org>
2005         * g10.c: New command --card-status.
2006         * card-util.c (card_status): New.
2007         * call-agent.c (learn_status_cb): Parse more information.
2009         * keylist.c (print_pubkey_info): Add FP arg for optional printing
2010         to a stream.  Changed all callers.
2012 2003-07-23  Werner Koch  <wk@gnupg.org>
2014         * keygen.c (generate_keypair): Create an AUTHKEYTYPE entry for cards.
2015         (do_generate_keypair): Abd generate the authkey.
2016         (check_smartcard): Changed menu accordingly.
2018 2003-07-22  Werner Koch  <wk@gnupg.org>
2020         * g10.c: New command --change-pin.
2021         * card-util.c: New.
2022         * call-agent.c (agent_scd_change_pin): New.
2023         (agent_release_card_info): New.
2024         * keygen.c (check_smartcard): Use it here.
2026 2003-07-16  Werner Koch  <wk@gnupg.org>
2028         * export.c (parse_export_options): New option sexp-format.
2029         (export_seckeys,export_secsubkeys): Check sexp-format option.
2030         (do_export): Ignore armor for sexp format.
2031         (do_export_stream): Handle sexp-format.
2032         (write_sexp_line,write_sexp_keyparm, build_sexp_seckey): New.
2033         (build_sexp): New.
2035 2003-07-03  Werner Koch  <wk@gnupg.org>
2037         * options.h (DBG_CIPHER): Reintroduced it. 
2038         * seskey.c (encode_session_key): Debug output of the session key.
2040         * pubkey-enc.c (get_it): Handle card case.
2041         * call-agent.c (agent_scd_pkdecrypt): New.
2042         * pkglue.c (pk_encrypt): Add RSA support.
2044         * g10.c (main): Default to --use-agent.
2046         * keygen.c (show_smartcard): Print info about the public key.
2047         (check_smartcard): Check for existing key here.
2048         (gen_card_key): And not anymore here.
2049         (fpr_is_zero): New.
2050         (generate_keypair): Generate both keys for a card.
2051         (smartcard_change_url): Nw.
2053 2003-07-02  Werner Koch  <wk@gnupg.org>
2055         * seckey-cert.c (is_secret_key_protected): Let it handle mode 1002.
2057 2003-07-01  Werner Koch  <wk@gnupg.org>
2059         * keygen.c (gen_card_key): Obviously we should use the creation
2060         date received from SCDAEMON, so that the fingerprints will match.
2061         * sign.c (do_sign): Pass the serialno to the sign code.
2062         * keyid.c (serialno_and_fpr_from_sk): New.
2064 2003-06-30  Werner Koch  <wk@gnupg.org>
2066         * call-agent.h (agent_card_info_s): Add field serialno.
2067         * call-agent.c (store_serialno): New.
2068         (learn_status_cb): Store the serial number.
2069         * keygen.c (gen_card_key): Store the serial number
2070         (check_smartcard): New argument to return the serial number.
2071         (generate_keypair): Get the serial number from check_smartcard and
2072         store it as a parameter.
2073         * parse-packet.c (parse_key): Use the protect.iv field to store the
2074         serial number.
2075         * build-packet.c (do_secret_key): Write the serial number.
2077 2003-06-27  Werner Koch  <wk@gnupg.org>
2079         * seckey-cert.c (check_secret_key): Bypass the unprotection for
2080         mode 1002.
2081         * sign.c (do_sign): Handle card case (i.e. mode 1002).
2083 2003-06-26  Werner Koch  <wk@gnupg.org>
2085         * build-packet.c (do_secret_key): Implement special protection
2086         mode 1002.
2087         * parse-packet.c (parse_key): Likewise.
2089         * keygen.c (smartcard_gen_key): New.
2090         * call-agent.c (agent_scd_setattr): New.
2092 2003-06-24  Werner Koch  <wk@gnupg.org>
2094         * Makefile.am: Removed signal.c
2096         * g10.c (emergency_cleanup): New.
2097         (main): Use gnupg_init_signals and register malloc for assuan.
2099 2003-06-23  Werner Koch  <wk@gnupg.org>
2101         * keyid.c (do_fingerprint_md): Made it work again.
2103 2003-06-19  Werner Koch  <wk@gnupg.org>
2105         Fixed all "==" comparisons against error code constants to use
2106         gpg_err_code().
2108         * import.c (import_secret_one): 
2109         (import_revoke_cert): 
2110         (chk_self_sigs): 
2112         * misc.c (openpgp_md_map_name): Check also for the Hx format.
2113         (openpgp_cipher_map_name): Check also for the Sx format.
2114         (pubkey_get_npkey): Adjusted for changed gcrypt API.
2115         (pubkey_get_nskey): Ditto.
2116         (pubkey_get_nsig): Ditto.
2117         (pubkey_get_nenc): Ditto.
2119 2003-06-18  Werner Koch  <wk@gnupg.org>
2121         Finished the bulk of changes for gnupg 1.9.  This included
2122         switching to libgcrypt functions, using shared error codes from
2123         libgpg-error, replacing the old functions we used to have in
2124         ../util by those in ../jnlib and ../common, renaming the malloc
2125         functions and a couple of types.  Note, that not all changes are
2126         listed below becuause they are too similar and done at far too
2127         many places.  As of today the code builds using the current
2128         libgcrypt from CVS but it is very unlikely that it actually works.
2129         
2130         * sig-check.c (cmp_help): Removed.  Was never used.
2132         * pkglue.c: New. Most stuff taken from gnupg 1.1.2.
2133         * pkglue.h: New.
2135         * misc.c (pull_in_libs): Removed.
2137         * keygen.c (count_chr): New.
2138         (ask_user_id): Removed faked RNG support.
2140         * misc.c (openpgp_md_map_name,openpgp_cipher_map_name)
2141         (openpgp_pk_map_name): New.
2143         * skclist.c (build_sk_list): Removed faked RNG support.
2144         (is_insecure): Removed.
2146         * comment.c (make_mpi_comment_node): Use gcry MPI print function.
2148         * keyid.c (v3_keyid): New.
2150         * misc.c (mpi_write,mpi_write_opaque,mpi_read,mpi_read_opaque)
2151         (mpi_print): New.  Taken from gnupg 1.1.2.
2152         (checksum_mpi): Replaced by implementation from 1.1.2.
2154         * g10.c (my_strusage): Renamed from strusage and return NULL
2155         instead calling a default function.
2156         (add_to_strlist2): New.  Taken from ../util/strgutil.c of gnupg 1.2.
2158         * plaintext.c (handle_plaintext): New arg CREATE_FILE to cope with
2159         the fact that gpg-error does not have this error code anymore.
2161         * mainproc.c (symkey_decrypt_sesskey): Ditto.
2163         * seskey.c (make_session_key): Adjusted for use with libgcrypt.
2164         (encode_session_key): Ditto.
2165         (do_encode_md): Ditto.
2166         (encode_md_value): Ditto.
2168         * keyring.c: Use libgpg-error instead of READ_ERROR etc.
2170         * g10.c: Adjusted all algorithm name/id mapping functions.
2171         (set_debug): Pass MPI and CRYPTO debug values to libgcrypt.
2173         * Makefile.am (INCLUDES): Define LOCALEDIR and the default error
2174         source.
2176         * g10.c (i18n_init): s/G10_LOCALEDIR/LOCALEDIR/.
2178         Renamed m_alloc et al to xmalloc et al.
2179         s/g10_errstr/gpg_strerror/
2180         s/MPI/gcry_mpi_t/
2181         Adjusted all md_open calls to the libgcrypt API.
2182         
2183         * build-packet.c (do_comment): Return error code from iobuf write
2184         function.
2185         (do_user_id): Ditto.
2186         (do_public_key): Ditto.
2188         * Makefile.am: Add new files, link gpg with libgpg-error.
2189         * g10.c, options.h: New option --agent-program.
2190         * call-agent.c: New.
2191         * gpg.h, call-agent.h: New.
2193 2003-06-03  David Shaw  <dshaw@jabberwocky.com>
2195         * options.h, g10.c (main), keylist.c (list_keyblock_print): Add
2196         "show-validity" and "show-long-keyid" list-options.
2198         * gpgv.c (get_validity, trust_value_to_string): Stubs.
2200         * g10.c (main): Use SAFE_VERSION instead of VERSION in the
2201         version-specific gpg.conf file so it can be overridden on RISCOS.
2203 2003-06-01  David Shaw  <dshaw@jabberwocky.com>
2205         * g10.c (main), keylist.c (show_policy_url, show_notation),
2206         mainproc.c (check_sig_and_print): Emulate the old policy and
2207         notation behavior (display by default).  Send to status-fd whether
2208         it is displayed on the screen or not.
2210         * g10.c (main): Since we now have some options in devel that won't
2211         work in a stable branch gpg.conf file, try for a version-specific
2212         gpg.conf-VERSION file before falling back to gpg.conf.
2214         * main.h, options.h: Move various option flags to options.h.
2216 2003-05-31  David Shaw  <dshaw@jabberwocky.com>
2218         * mainproc.c (check_sig_and_print), main.h, keylist.c
2219         (show_policy, show_notation): Collapse the old print_notation_data
2220         into show_policy() and show_notation() so there is only one
2221         function to print notations and policy URLs.
2223         * options.h, main.h, g10.c (main), keyedit.c
2224         (print_and_check_one_sig), keylist.c (list_one,
2225         list_keyblock_print), pkclist.c (do_edit_ownertrust), sign.c
2226         (mk_notation_and_policy): New "list-options" and "verify-options"
2227         commands.  These replace the existing
2228         --show-photos/--no-show-photos,
2229         --show-notation/--no-show-notation,
2230         --show-policy-url/--no-show-policy-url, and --show-keyring
2231         options.  The new method is more flexible since a user can specify
2232         (for example) showing photos during sig verification, but not in
2233         key listings.  The old options are emulated.
2235         * main.h, misc.c (parse_options): New general option line
2236         parser. Fix the bug in the old version that did not handle report
2237         syntax errors after a valid entry.
2239         * import.c (parse_import_options), export.c
2240         (parse_export_options): Call it here instead of duplicating the
2241         code.
2243 2003-05-30  David Shaw  <dshaw@jabberwocky.com>
2245         * keylist.c (list_one): Don't show the keyring filename when in
2246         --with-colons mode.  Actually translate "Keyring" string.
2248         * mainproc.c (proc_tree): We can't currently handle multiple
2249         signatures of different classes or digests (we'd pretty much have
2250         to run a different hash context for each), but if they are all the
2251         same, make an exception.  This is Debian bug #194292.
2253         * sig-check.c (check_key_signature2): Make string translatable.
2255         * packet.h, getkey.c (fixup_uidnode): Mark real primary uids
2256         differently than assumed primaries.
2258         * keyedit.c (no_primary_warning): Use the differently marked
2259         primaries here in a new function to warn when an --edit-key
2260         command might rearrange the self-sig dates enough to change which
2261         uid is primary.
2262         (menu_expire, menu_set_preferences): Use no_primary_warning()
2263         here.
2265         * Makefile.am: Use @DLLIBS@ for -ldl.
2267 2003-05-26  David Shaw  <dshaw@jabberwocky.com>
2269         * getkey.c (premerge_public_with_secret): Made "no secret subkey
2270         for" warning a verbose item and translatable. (From wk on stable
2271         branch)
2273         * sig-check.c (check_key_signature2): Made "no subkey for subkey
2274         binding packet" a verbose item instead of a !quiet one.  There are
2275         too many garbled keys out in the wild. (From wk on stable branch)
2277         * filter.h: Remove const from WHAT. (From wk on stable branch)
2279         * progress.c (handle_progress): Store a copy of
2280         NAME. (progress_filter): Release WHAT, make sure not to print a
2281         NULL WHAT. (From wk on stable branch)
2283         * openfile.c (open_sigfile): Adjust free for new progress
2284         semantics. (From wk on stable branch)
2286         * plaintext.c (ask_for_detached_datafile): Don't dealloc
2287         pfx->WHAT. (From wk on stable branch)
2289         * seckey-cert.c (do_check): Issue the RSA_OR_IDEA status when the
2290         cipher algo is IDEA to make it easier to track down the
2291         problem. (From twoaday on stable branch)
2292         
2293 2003-05-24  David Shaw  <dshaw@jabberwocky.com>
2295         * armor.c, g10.c, kbnode.c, misc.c, pkclist.c, sign.c,
2296         build-packet.c, getkey.c, keydb.c, openfile.c, plaintext.c,
2297         status.c, gpgv.c, keygen.c, options.h, sig-check.c, tdbio.h,
2298         encode.c, mainproc.c, parse-packet.c, signal.c, textfilter.c: Edit
2299         all preprocessor instructions to remove whitespace before the '#'.
2300         This is not required by C89, but there are some compilers out
2301         there that don't like it.
2303 2003-05-21  David Shaw  <dshaw@jabberwocky.com>
2305         * trustdb.h, trustdb.c (is_disabled), gpgv.c (is_disabled): Rename
2306         is_disabled to cache_disabled_value, which now takes a pk and not
2307         just the keyid. This is for speed since there is no need to
2308         re-fetch a key when we already have that key handy.  Cache the
2309         result of the check so we don't need to hit the trustdb more than
2310         once.
2311         
2312         * getkey.c (skip_disabled): New function to get a pk and call
2313         is_disabled on it. (key_byname): Use it here.
2314         
2315         * packet.h, getkey.c (skip_disabled), keylist.c
2316         (print_capabilities): New "pk_is_disabled" macro to retrieve the
2317         cached disabled value if available, and fill it in via
2318         cache_disabled_value if not available.
2320         * trustdb.c (get_validity): Cache the disabled value since we have
2321         it handy and it might be useful later.
2323         * parse-packet.c (parse_key): Clear disabled flag when parsing a
2324         new key.  Just in case someone forgets to clear the whole key.
2326         * getkey.c (merge_selfsigs_main): Add an "if all else fails" path
2327         for setting a single user ID primary when there are multiple set
2328         primaries all at the same second, or no primaries set and the most
2329         recent user IDs are at the same second, or no signed user IDs at
2330         all. This is arbitrary, but deterministic.
2332         * exec.h, photoid.h: Add copyright message.
2334         * keylist.c (list_keyblock_print): Don't dump attribs for
2335         revoked/expired/etc uids for non-colon key listings.  This is for
2336         consistency with --show-photos.
2338         * main.h, keylist.c (dump_attribs), mainproc.c
2339         (check_sig_and_print): Dump attribs if --attrib-fd is set when
2340         verifying signatures.
2341         
2342         * g10.c (main): New --gnupg option to disable the various
2343         --openpgp, --pgpX, etc. options.  This is the same as --no-XXXX
2344         for those options.
2346         * revoke.c (ask_revocation_reason): Clear old reason if user
2347         elects to repeat question.  This is bug 153.
2349         * keyedit.c (sign_uids): Show keyid of the key making the
2350         signature.
2352 2003-05-21  Werner Koch  <wk@gnupg.org>
2354         * progress.c (handle_progress)
2355         * sign.c (write_plaintext_packet)
2356         * encode.c (encode_simple,encode_crypt): Make sure that a filename
2357         of "-" is considered to be stdin so that iobuf_get_filelength
2358         won't get called.  This fixes bug 156 reported by Gregery Barton.
2360 2003-05-02  David Shaw  <dshaw@jabberwocky.com>
2362         * packet.h, build-packet.c (build_sig_subpkt), export.c
2363         (do_export_stream), import.c (remove_bad_stuff, import),
2364         parse-packet.c (dump_sig_subpkt, parse_one_sig_subpkt): Remove
2365         vestigal code for the old sig cache subpacket.  This wasn't
2366         completely harmless as it caused subpacket 101 to disappear on
2367         import and export.
2369         * options.h, armor.c, cipher.c, g10.c, keyedit.c, pkclist.c,
2370         sign.c, encode.c, getkey.c, revoke.c: The current flags for
2371         different levels of PGP-ness are massively complex.  This is step
2372         one in simplifying them. No functional change yet, just use a
2373         macro to check for compliance level.
2375         * sign.c (sign_file): Fix bug that causes spurious compression
2376         preference warning.
2378         * sign.c (clearsign_file): Fix bug that prevents proper warning
2379         message from appearing when clearsigning in --pgp2 mode with a
2380         non-v3 RSA key.
2382         * main.h, misc.c (compliance_option_string, compliance_string,
2383         compliance_failure), pkclist.c (build_pk_list), sign.c (sign_file,
2384         clearsign_file), encode.c (encode_crypt,
2385         write_pubkey_enc_from_list): New functions to put the "this
2386         message may not be usable...." warning in one place.
2388         * options.h, g10.c (main): Part two of the simplification.  Use a
2389         single enum to indicate what we are compliant to (1991, 2440,
2390         PGPx, etc.)
2392         * g10.c (main): Show errors for failure in export, send-keys,
2393         recv-keys, and refresh-keys.
2395         * options.h, g10.c (main): Give algorithm warnings for algorithms
2396         chosen against the --pgpX and --openpgp rules.
2398         * keydb.h, pkclist.c (algo_available): Make TIGER192 invalid in
2399         --openpgp mode.
2401         * sign.c (sign_file), pkclist.c (algo_available): Allow passing a
2402         hint of 0.
2404 2003-05-01  David Shaw  <dshaw@jabberwocky.com>
2406         * tdbio.c (create_version_record): Only create new trustdbs with
2407         TM_CLASSIC or TM_PGP.
2409         * trustdb.h, trustdb.c (trust_string, get_ownertrust_string,
2410         get_validity_string, ask_ownertrust, validate_keys), pkclist.c
2411         (do_edit_ownertrust): Rename trust_string to trust_value_to_string
2412         for naming consistency.
2414         * trustdb.h, trustdb.c (string_to_trust_value): New function to
2415         translate a string to a trust value.
2417         * g10.c (main): Use string_to_trust_value here for
2418         --force-ownertrust.
2419         
2420         * options.h, g10.c (main), trustdb.c (trust_model_string,
2421         init_trustdb, check_trustdb, update_trustdb, get_validity,
2422         validate_one_keyblock): An "OpenPGP" trust model is misleading
2423         since there is no official OpenPGP trust model.  Use "PGP"
2424         instead.
2426 2003-04-30  David Shaw  <dshaw@jabberwocky.com>
2428         * build-packet.c (build_sig_subpkt): Comments.
2430         * exec.c (exec_write): Cast NULL to void* to properly terminate
2431         varargs list.
2433         * keyedit.c (show_key_with_all_names): Just for safety, catch an
2434         invalid pk algorithm.
2436         * sign.c (make_keysig_packet): Crucial that the call to mksubpkt
2437         comes LAST before the calls to finalize the sig as that makes it
2438         possible for the mksubpkt function to get a reliable pointer to
2439         the subpacket area.
2441         * pkclist.c (do_we_trust_pre): If an untrusted key was chosen by a
2442         particular user ID, use that ID as the one to ask about when
2443         prompting whether to use the key anyway.
2444         (build_pk_list): Similar change here when adding keys to the
2445         recipient list.
2447         * trustdb.c (update_validity): Fix bug that prevented more than
2448         one validity record per trust record.
2449         (get_validity): When retrieving validity for a (user) supplied
2450         user ID, return the validity for that user ID only, and do not
2451         fall back to the general key validity.
2452         (validate_one_keyblock): Some commentary on whether
2453         non-self-signed user IDs belong in the web of trust (arguably,
2454         they do).
2456 2003-04-27  David Shaw  <dshaw@jabberwocky.com>
2458         * g10.c (main): Add --no-textmode.
2460         * export.c (do_export_stream), keyedit.c (show_key_with_all_names,
2461         menu_addrevoker), mainproc.c (check_sig_and_print), photoid.c
2462         (show_photos), sign.c (mk_notation_and_policy), trustdb.c
2463         (get_validity, reset_trust_records, validate_keys): Make some
2464         strings translatable.
2466         * mainproc.c (check_sig_and_print): Show digest algorithm and sig
2467         class when verifying a sig with --verbose on, and add version, pk
2468         and hash algorithms and sig class to VALIDSIG.
2469         
2470         * parse-packet.c (enum_sig_subpkt): Make a warning message a
2471         --verbose warning message since we don't need to warn every time
2472         we see an unknown critical (we only need to invalidate the
2473         signature).
2475         * trustdb.c (init_trustdb): Check the trustdb options even with
2476         TM_AUTO since the auto may become TM_CLASSIC or TM_OPENPGP.
2478 2003-04-26  David Shaw  <dshaw@jabberwocky.com>
2480         * sign.c (do_sign): Show the hash used when making a signature in
2481         verbose mode.
2483         * tdbio.h, tdbio.c (tdbio_read_model): New function to return the
2484         trust model used in a given trustdb.
2486         * options.h, g10.c (main), trustdb.c (init_trustdb, check_trustdb,
2487         update_trustdb): Use tdbio_read_model to implement an "auto" trust
2488         model which is set via the trustdb.
2490 2003-04-23  David Shaw  <dshaw@jabberwocky.com>
2492         * import.c (import_revoke_cert): Remove ultimate trust when
2493         revoking an ultimately trusted key.
2495         * keyedit.c (sign_uids): Allow replacing expired signatures.
2496         Allow duplicate signatures with --expert.
2498         * pkclist.c (check_signatures_trust): Don't display a null
2499         fingerprint when checking a signature with --always-trust enabled.
2501         * filter.h (progress_filter_context_t), progress.c
2502         (handle_progress), plaintext.c (ask_for_detached_datafile,
2503         hash_datafiles): Fix compiler warnings.  Make "what" constant.
2505         * build-packet.c (do_plaintext): Do not create invalid literal
2506         packets with >255-byte names.
2508 2003-04-15  Werner Koch  <wk@gnupg.org>
2510         * Makefile.am (AM_CFLAGS): Make use of AM_CFLAGS and AM_LDFLAGS.
2512         * g10.c, options.h: New option --enable-progress-filter.
2513         * progress.c (handle_progress): Make use of it.
2515 2003-04-15  Marcus Brinkmann  <marcus@g10code.de>
2517         * progress.c: New file.
2518         * Makefile.am (common_source): Add progress.c.
2519         * filter.h (progress_filter_context_t): New type.
2520         (progress_filter, handle_progress): New prototypes.
2521         * main.h (open_sigfile): New argument for prototype.
2522         * openfile.c (open_sigfile): New argument to install progress
2523         filter.
2524         * encode.c (encode_simple): New variable PFX.  Register
2525         progress filter.  Install text_filter after that.
2526         (encode_crypt): Likewise.
2527         * sign.c (sign_file): Likewise.
2528         (clearsign_file): Likewise.
2529         * decrypt.c (decrypt_message): Likewise.
2530         (decrypt_messages): Likewise.
2531         * verify.c (verify_signatures): Likewise.
2532         (verify_one_file): Likewise.
2533         * plaintext.c (hash_datafiles): Likewise.
2534         (ask_for_detached_datafile): Likewise.
2536 2003-04-10  Werner Koch  <wk@gnupg.org>
2538         * passphrase.c (read_passphrase_from_fd): Do a dummy read if the
2539         agent is to be used.  Noted by Ingo Klöcker.
2540         (agent_get_passphrase): Inhibit caching when we have no
2541         fingerprint.  This is required for key generation as well as for
2542         symmetric only encryption.
2544         * passphrase .c (agent_get_passphrase): New arg CANCELED.
2545         (passphrase_to_dek): Ditto.  Passed to above.  Changed all
2546         callers to pass NULL.
2547         * seckey-cert.c (do_check): New arg CANCELED.
2548         (check_secret_key): Terminate loop when canceled.
2550         * keyedit.c (change_passphrase): Pass ERRTEXT untranslated to
2551         passphrase_to_dek and translate where appropriate.
2552         * seckey-cert.c (check_secret_key): Ditto.
2553         * keygen.c (ask_passphrase): Ditto.
2554         * passphrase.c (agent_get_passphrase): Translate the TRYAGAIN_TEXT.
2555         Switch the codeset to utf-8.
2557 2003-04-09  Werner Koch  <wk@gnupg.org>
2559         * decrypt.c (decrypt_messages): Fixed error handling; the function
2560         used to re-loop with same file after an error.  Reported by Joseph
2561         Walton.
2563 2003-04-08  David Shaw  <dshaw@jabberwocky.com>
2565         * main.h, g10.c (main), import.c (parse_import_options,
2566         fix_pks_corruption): It's really PKS corruption, not HKP
2567         corruption.  Keep the old repair-hkp-subkey-bug command as an
2568         alias.
2570         * g10.c (main): Rename --no-version to --no-emit-version for
2571         consistency.  Keep --no-version as an alias.
2573 2003-04-04  David Shaw  <dshaw@jabberwocky.com>
2575         * pkclist.c (algo_available): PGP 8 can use the SHA-256 hash.
2577         * sign.c (sign_file, clearsign_file, sign_symencrypt_file): Remove
2578         unused code.
2580 2003-04-01  Werner Koch  <wk@gnupg.org>
2582         * mainproc.c (check_sig_and_print): Add primary key fpr to VALIDSIG
2583         status.
2585 2003-03-24  David Shaw  <dshaw@jabberwocky.com>
2587         * keydb.h: Err on the side of making an unknown signature a SIG
2588         rather than a CERT.
2590         * import.c (delete_inv_parts): Discard any key signatures that
2591         aren't key types (i.e. 0x00, 0x01, etc.)
2593         * g10.c (main): Add deprecated option warning for
2594         --list-ownertrust.  Add --compression-algo alias for
2595         --compress-algo.  Change --version output strings to match
2596         "showpref" strings, and make translatable.
2598         * status.c (do_get_from_fd): Accept 'y' as well as 'Y' for
2599         --command-fd boolean input.
2601         * trustdb.c: Fix typo (DISABLE_REGEXP -> DISABLE_REGEX)
2603         * keyedit.c (show_key_with_all_names_colon): Show no-ks-modify
2604         flag.
2606 2003-03-11  David Shaw  <dshaw@jabberwocky.com>
2608         * options.h, g10.c (main), keyserver.c (kopts): Add "try-dns-srv"
2609         keyserver option.  Defaults to on.
2611         * passphrase.c (agent_get_passphrase): Fix memory leak with
2612         symmetric messages.  Fix segfault with symmetric messages.  Fix
2613         incorrect prompt with symmetric messages.
2615 2003-03-10  Werner Koch  <wk@gnupg.org>
2617         * compress.c (init_uncompress): Use a 15 bit window size so that
2618         the output of implementations which don't run for PGP 2
2619         compatibility won't get garbled.
2621 2003-03-04  David Shaw  <dshaw@jabberwocky.com>
2623         * trustdb.c (validate_keys): Mask the ownertrust when building the
2624         list of fully valid keys so that disabled keys are still counted
2625         in the web of trust.
2626         (get_ownertrust_with_min): Do the same for the minimum ownertrust
2627         calculation.
2629         * parse-packet.c (dump_sig_subpkt): Show the notation names for
2630         not-human-readable notations.  Fix cosmetic off-by-one length
2631         counter.
2633         * options.skel: Add explantion and commented-out
2634         "no-mangle-dos-filenames".
2636         * mainproc.c (proc_encrypted): Make string translatable.
2638         * keyserver.c (keyserver_spawn): Quote ':', '%', and any 8-bit
2639         characters in the uid strings sent to the keyserver helper.
2641         * keyring.c (keyring_rebuild_cache): Lock the keyring while
2642         rebuilding the signature caches to prevent another gpg from
2643         tampering with the temporary copy.
2645         * keygen.c (keygen_set_std_prefs): Include AES192 and AES256 in
2646         default prefs.
2648         * keyedit.c (show_prefs): Make strings translatable.
2650         * keydb.c: Double the maximum number of keyrings to 40.
2652         * gpgv.c (main): Fix bug #113 - gpgv should accept the
2653         --ignore-time-conflict option.
2655         * g10.c (main): --openpgp disables --pgpX.  Double the amount of
2656         secure memory to 32k (keys are getting bigger these days).
2658         * Makefile.am: Makefile.am: Use @CAPLIBS@ to link in -lcap if we
2659         are using capabilities.
2661 2003-02-26  David Shaw  <dshaw@jabberwocky.com>
2663         * keyserver.c (keyserver_spawn): Include various pieces of
2664         information about the key in the data sent to the keyserver
2665         helper.  This allows the helper to use it in instructing a remote
2666         server which may not have any actual OpenPGP smarts in parsing
2667         keys.
2669         * main.h, export.c (export_pubkeys_stream, do_export_stream): Add
2670         ability to return only the first match in an exported keyblock for
2671         keyserver usage.  This should be replaced at some point with a
2672         more flexible solution where each key can be armored seperately.
2674 2003-02-22  David Shaw  <dshaw@jabberwocky.com>
2676         * sign.c (sign_file): Do not push textmode filter onto an unopened
2677         IOBUF (segfault).  Noted by Marcus Brinkmann.  Push and
2678         reinitialize textmode filter for each file in a multiple file
2679         list.
2681         * packet.h, getkey.c (fixup_uidnode), keyedit.c (show_prefs): Set
2682         and show the keyserver no-modify flag.
2684         * keygen.c (add_keyserver_modify): New.
2685         (keygen_upd_std_prefs): Call it here.
2686         (keygen_set_std_prefs): Accept "ks-modify" and "no-ks-modify" as
2687         prefs to set and unset keyserver modify flag.
2689         * g10.c (main): Accept "s1" in addition to "idea" to match the
2690         other ciphers.
2692         * main.h, misc.c (idea_cipher_warn): We don't need this if IDEA
2693         has been disabled.
2695 2003-02-21  David Shaw  <dshaw@jabberwocky.com>
2697         * keygen.c (keygen_set_std_prefs): Don't put AES or CAST5 in
2698         default prefs if they are disabled.
2700         * g10.c (main): Use 3DES instead of CAST5 if we don't have CAST5
2701         support.  Use 3DES for the s2k cipher in --openpgp mode.
2702         (print_mds): #ifdef all of the optional digest algorithms.
2704 2003-02-12  David Shaw  <dshaw@jabberwocky.com>
2706         * keydb.h, getkey.c (classify_user_id, classify_user_id2): Make
2707         'exact' a per-desc item.  Merge into one function since
2708         'force_exact' is no longer needed.
2709         (key_byname): Use new classify_user_id function, and new exact
2710         flag in KEYDB_SEARCH_DESC.
2712         * keyring.h, keyring.c (keyring_search): Return an optional index
2713         to show which KEYDB_SEARCH_DESC was the matching one.
2715         * keydb.h, keydb.c (keydb_search): Rename to keydb_search2, and
2716         pass the optional index to keyring_search.  Add a macro version of
2717         keydb_search that calls this new function.
2719         * export.c (do_export_stream): If the keyid! syntax is used,
2720         export only that specified key.  If the key in question is a
2721         subkey, export the primary plus that subkey only.
2723 2003-02-11  David Shaw  <dshaw@jabberwocky.com>
2725         * exec.c (set_exec_path): Add debugging line.
2727         * g10.c (print_hex, print_mds): Print long hash strings a lot
2728         neater.  This assumes at least an 80-character display, as there
2729         are a few other similar assumptions here and there.  Users who
2730         need unformatted hashes can still use with-colons.  Check that
2731         SHA384 and 512 are available before using them as they are no
2732         longer always available.
2734         * Makefile.am: Use a local copy of libexecdir along with @PACKAGE@
2735         as GNUPG_LIBEXECDIR so it can be easily overridden at make time.
2737 2003-02-04  David Shaw  <dshaw@jabberwocky.com>
2739         * armor.c (parse_hash_header, armor_filter): Accept the new SHAs
2740         in the armor Hash: header.
2742         * g10.c (print_hex): Print long hash strings a little neater.
2743         (print_mds): Add the new SHAs to the hash list.
2745 2003-02-02  David Shaw  <dshaw@jabberwocky.com>
2747         * keyedit.c (menu_revuid): Properly handle a nonselfsigned uid on
2748         a v4 key (treat as a v4 revocation).
2750         * import.c (print_import_check): Do not re-utf8 convert user IDs.
2752 2003-01-27  David Shaw  <dshaw@jabberwocky.com>
2754         * mainproc.c (list_node): Show signature expiration date in
2755         with-colons sig records.
2757         * keylist.c (list_keyblock_colon), mainproc.c (list_node): Show
2758         trust sig information in with-colons sig records.
2760 2003-01-16  David Shaw  <dshaw@jabberwocky.com>
2762         * g10.c (add_group): Trim whitespace after a group name so it does
2763         not matter where the user puts the = sign.
2765         * options.skel: Comment out the first three lines in case someone
2766         manually copies the skel file to their homedir.
2768         * sign.c (clearsign_file): Only use pgp2mode with v3 keys and
2769         MD5. This matches what we do when decoding such messages and
2770         prevents creating a message (v3+RIPEMD/160) that we can't verify.
2772         * sig-check.c (signature_check2): Use G10ERR_GENERAL as the error
2773         for signature digest conflict.  BAD_SIGN implies that a signature
2774         was checked and we may try and print out a user ID for a key that
2775         doesn't exist.
2777 2003-01-15  David Shaw  <dshaw@jabberwocky.com>
2779         * trustdb.c (init_trustdb, get_validity): Don't use a changed
2780         trust model to indicate a dirty trustdb, and never auto-rebuild a
2781         dirty trustdb with the "always" trust model.
2783         * g10.c (add_group): Last commit missed the \t ;)
2785 2003-01-14  David Shaw  <dshaw@jabberwocky.com>
2787         * packet.h, parse-packet.c (setup_user_id), free-packet.c
2788         (free_user_id), keydb.h, keyid.c (namehash_from_uid): New function
2789         to rmd160-hash the contents of a user ID packet and cache it in
2790         the uid object.
2792         * keylist.c (list_keyblock_colon): Use namehash in field 8 of
2793         uids.  Show dates for creation (selfsig date), and expiration in
2794         fields 6 and 7.
2796         * trustdb.c (get_validity, get_validity_counts, update_validity):
2797         Use new namehash function rather than hashing it locally.
2799 2003-01-14  Werner Koch  <wk@gnupg.org>
2801         * g10.c (add_group): Fixed group parsing to allow more than one
2802         delimiter in a row and also allow tab as delimiter.
2804 2003-01-12  David Shaw  <dshaw@jabberwocky.com>
2806         * tdbio.c (tdbio_set_dbname): Fix assertion failure with
2807         non-fully-qualified trustdb names.
2809 2003-01-11  David Shaw  <dshaw@jabberwocky.com>
2811         * trustdb.c (get_validity_info, get_ownertrust_info,
2812         trust_letter): Simplify by returning a ? for error directly.
2814         * keyedit.c (show_key_with_all_names): Use get_validity_string and
2815         get_ownertrust_string to show full word versions of trust
2816         (i.e. "full" instead of 'f').
2818         * trustdb.h, trustdb.c (get_ownertrust_string,
2819         get_validity_string): Same as get_ownertrust_info, and
2820         get_validity_info, except returns a full string.
2822         * trustdb.c (get_ownertrust_with_min): New.  Same as
2823         'get_ownertrust' but takes the min_ownertrust value into account.
2825 2003-01-10  David Shaw  <dshaw@jabberwocky.com>
2827         * armor.c (armor_filter): Comment about PGP's end of line tab
2828         problem.
2830         * trustdb.h, trustdb.c (trust_letter): Make
2831         static. (get_ownertrust_info, get_validity_info): Don't mask the
2832         trust level twice.
2834         * trustdb.h, gpgv.c, trustdb.c (get_validity, get_validity_info),
2835         keylist.c (list_keyblock_colon), keyedit.c
2836         (show_key_with_all_names_colon, menu_revuid): Pass a user ID in
2837         rather than a namehash, so we only have to do the hashing in one
2838         place.
2840         * packet.h, pkclist.c (build_pk_list), free-packet.c
2841         (release_public_key_parts): Remove unused namehash element for
2842         public keys.
2844 2003-01-07  David Shaw  <dshaw@jabberwocky.com>
2846         * keygen.c (keygen_set_std_prefs): Warn when setting an IDEA
2847         preference when IDEA is not available.
2849 2003-01-06  David Shaw  <dshaw@jabberwocky.com>
2851         * trustdb.c (get_validity_info): 'd' for disabled is not a
2852         validity value any more.
2854         * packet.h, tdbio.h, tdbio.c (tdbio_read_record,
2855         tdbio_write_record), trustdb.c (update_validity): Store temporary
2856         full & marginal counts in the trustdb.
2857         (clear_validity, get_validity_counts): Return and clear temp
2858         counts.
2859         (store_validation_status): Keep track of which keyids have been
2860         stored.
2861         (validate_one_keyblock, validate_key_list): Use per-uid copies of
2862         the full & marginal counts so they can be recalled for multiple
2863         levels.
2864         (validate_keys): Only use unused keys for each new round.
2865         (reset_unconnected_keys): Rename to reset_trust_records, and only
2866         skip specifically excluded records.
2868         * keylist.c (print_capabilities): Show 'D' for disabled keys in
2869         capabilities section.
2871         * trustdb.c (is_disabled): Remove incorrect comment.
2873 2003-01-03  David Shaw  <dshaw@jabberwocky.com>
2875         * import.c (import_one): Only do the work to create the status
2876         display for interactive import if status is enabled.
2878         * keyring.c (keyring_search): skipfnc didn't work properly with
2879         non-keyid searches.  Noted by Stefan Bellon.
2881         * getkey.c (merge_selfsigs_main): Remove some unused code and make
2882         sure that the pk selfsigversion member accounts for 1F direct
2883         sigs.
2885 2003-01-02  Werner Koch  <wk@gnupg.org>
2887         * keydb.c (keydb_add_resource): Don't assume that try_make_homedir
2888         terminates but check again for the existence of the directory and
2889         continue then.
2890         * openfile.c (copy_options_file): Print a warning if the skeleton
2891         file has active options.
2893 2002-12-29  David Shaw  <dshaw@jabberwocky.com>
2895         * getkey.c (merge_selfsigs_main), main.h, sig-check.c
2896         (check_key_signature2): Pass the ultimately trusted pk directly to
2897         check_key_signature2 to avoid going through the key selection
2898         mechanism.  This prevents a deadly embrace when two keys without
2899         selfsigs each sign the other.
2901 2002-12-27  David Shaw  <dshaw@jabberwocky.com>
2903         * keyserver.c (keyserver_refresh): Don't print the "refreshing..."
2904         line if there are no keys to refresh or if there is no keyserver
2905         set.
2907         * getkey.c (merge_selfsigs_main): Any valid user ID should make a
2908         key valid, not just the last one.  This also fixes Debian bug
2909         #174276.
2911 2002-12-27  Stefan Bellon  <sbellon@sbellon.de>
2913         * import.c (print_import_check): Changed int to size_t.
2915 2002-12-27  David Shaw  <dshaw@jabberwocky.com>
2917         * keyedit.c (keyedit_menu, menu_revuid): Add "revuid" feature to
2918         revoke a user ID.  This is the same as issuing a revocation for
2919         the self-signature, but a much simpler interface to do it.
2921 2002-12-26  David Shaw  <dshaw@jabberwocky.com>
2923         * keydb.h, getkey.c (key_byname): Flag to enable or disable
2924         including disabled keys.  Keys specified via keyid (i.e. 0x...)
2925         are always included.
2927         * getkey.c (get_pubkey_byname, get_seckey_byname2,
2928         get_seckey_bynames), keyedit.c (keyedit_menu, menu_addrevoker):
2929         Include disabled keys in these functions.
2931         * pkclist.c (build_pk_list): Do not include disabled keys for -r
2932         or the key prompt.  Do include disabled keys for the default key
2933         and --encrypt-to.
2935         * trustdb.h, trustdb.c (is_disabled): New skipfnc for skipping
2936         disabled keys.
2938         * gpgv.c (is_disabled): Stub.
2940         * keygen.c (keygen_add_key_expire): Properly handle updating a key
2941         expiration to a no-expiration value.
2943         * keyedit.c (enable_disable_key): Comment.
2945         * import.c (import_one): When in interactive mode and --verbose,
2946         don't repeat some key information twice.
2948 2002-12-22  Timo Schulz  <ts@winpt.org>
2949         
2950         * import.c (print_import_check): New.
2951         (import_one): Use it here.
2952         Use merge_keys_and_selfsig in the interactive mode to avoid
2953         wrong key information.
2954         * status.h: Add new status code.
2955         * status.c: Ditto.
2956         
2957 2002-12-13  David Shaw  <dshaw@jabberwocky.com>
2959         * pkclist.c (do_we_trust): Tweak language to refer to the "named
2960         user" rather than "owner".  Noted by Stefan Bellon.
2962         * trustdb.h, trustdb.c (trustdb_pending_check): New function to
2963         check if the trustdb needs a check.
2965         * import.c (import_keys_internal): Used here so we don't rebuild
2966         the trustdb if it is still clean.
2967         (import_one, chk_self_sigs): Only mark trustdb dirty if the key
2968         that is being imported has any sigs other than self-sigs.
2969         Suggested by Adrian von Bidder.
2971         * options.skel: Include the required '=' sign in the sample
2972         'group' option.  Noted by Stefan Bellon.
2974         * import.c (chk_self_sigs): Don't try and check a subkey as if it
2975         was a signature.
2977 2002-12-11  David Shaw  <dshaw@jabberwocky.com>
2979         * tdbio.c (tdbio_read_record, tdbio_write_record): Compact the
2980         RECTYPE_TRUST records a bit.
2982         * g10.c (main): Comment out --list-trust-path until it can be
2983         implemented.
2985         * import.c (import_one): Warn when importing an Elgamal primary
2986         that this may take some time (to verify self-sigs).
2987         (chk_self_sigs): Try and cache all self-sigs so the keyblock is
2988         written to the keyring with a good rich cache.
2990         * keygen.c (ask_algo): Make the Elgamal sign+encrypt warning
2991         stronger, and remove the RSA sign+encrypt warning.
2993 2002-12-06  Stefan Bellon  <sbellon@sbellon.de>
2995         * options.h: Fixed typo (mangle_dos_names instead of
2996         mangle_dos_filenames).
2998 2002-12-05  Werner Koch  <wk@gnupg.org>
3000         * g10.c: New options --[no-]mangle-dos-filenames.
3001         * options.h (opt): Added mangle-dos-filenames.
3002         * openfile.c (open_outfile) [USE_ONLY_8DOT3]: Truncate the
3003         filename only when this option is set; this is the default.
3005 2002-12-04  David Shaw  <dshaw@jabberwocky.com>
3007         * main.h, keyedit.c, keygen.c: Back out previous (2002-12-01)
3008         change.  Minimal isn't always best.
3010         * sign.c (update_keysig_packet): Use the current time rather then
3011         a modification of the original signature time.  Make sure that
3012         this doesn't cause a time warp.
3014         * keygen.c (keygen_add_key_expire): Properly handle a key
3015         expiration date in the past (use a duration of 0).
3017         * keyedit.c (menu_expire): Use update_keysig_packet so any sig
3018         subpackets are maintained during the update.
3020         * build-packet.c (build_sig_subpkt): Mark sig expired or unexpired
3021         when the sig expiration subpacket is added.
3022         (build_sig_subpkt_from_sig): Handle making an expiration subpacket
3023         from a sig that has already expired (use a duration of 0).
3025         * packet.h, sign.c (update_keysig_packet), keyedit.c
3026         (menu_set_primary_uid, menu_set_preferences): Add ability to issue
3027         0x18 subkey binding sigs to update_keysig_packet and change all
3028         callers.
3030         * trustdb.c (validate_keys): Show trust parameters when building
3031         the trustdb, and make sure that the version record update was
3032         successful.
3033         (init_trustdb): If the current parameters aren't what was used for
3034         building the trustdb, the trustdb is invalid.
3036         * tbio.c (tdbio_db_matches_options): Update to work with new
3037         trustdbs.
3039 2002-12-03  David Shaw  <dshaw@jabberwocky.com>
3041         * tdbio.h, tdbio.c (tdbio_read_record, tdbio_write_record): Store
3042         trust model in the trustdb version record.
3043         (tdbio_update_version_record): New function to update version
3044         record values during a trustdb check or update.
3045         (tdbio_dump_record): Show trust model in dump.
3047         * trustdb.c (validate_keys): Call tdbio_update_version_record on
3048         success so that the correct options are stored in the trustdb.
3050         * options.h: rearrange trust models so that CLASSIC is 0 and
3051         OPENPGP is 1.
3053         * options.h, g10.c (main), encode.c (write_pubkey_enc_from_list),
3054         pkclist.c (algo_available), revoke.c (gen_revoke): Add --pgp8
3055         mode.  This is basically identical to --pgp7 in all ways except
3056         that signing subkeys, v4 data sigs (including expiration), and SK
3057         comments are allowed.
3059         * getkey.c (finish_lookup): Comment.
3061         * main.h, keylist.c (reorder_keyblock), keyedit.c (keyedit_menu):
3062         Reorder user ID display in the --edit-key menu to match that of
3063         the --list-keys display.
3065         * g10.c (add_notation_data): Fix initialization.
3067 2002-12-01  David Shaw  <dshaw@jabberwocky.com>
3069         * keyedit.c (menu_expire): Don't lose key flags when changing the
3070         expiration date of a subkey.  This is not the most optimal
3071         solution, but it is minimal change on the stable branch.
3073         * main.h, keygen.c (do_copy_key_flags): New function to copy key
3074         flags, if any, from one sig to another.
3075         (do_add_key_expire): New function to add key expiration to a sig.
3076         (keygen_copy_flags_add_expire): New version of
3077         keygen_add_key_expire that also copies key flags.
3078         (keygen_add_key_flags_and_expire): Use do_add_key_expire.
3080         * import.c (fix_hkp_corruption): Comment.
3082 2002-11-25  Stefan Bellon  <sbellon@sbellon.de>
3084         * plaintext.c (handle_plaintext) [__riscos__]: If nooutput is set,
3085         no filetype is needed obviously.
3087 2002-11-24  David Shaw  <dshaw@jabberwocky.com>
3089         * main.h, misc.c (default_cipher_algo, default_compress_algo):
3090         New.  Return the default algorithm by trying
3091         --cipher-algo/--compress-algo, then the first item in the pref
3092         list, then s2k-cipher-algo or ZIP.
3094         * sign.c (sign_file, sign_symencrypt_file), encode.c
3095         (encode_simple, encode_crypt): Call default_cipher_algo and
3096         default_compress_algo to get algorithms.
3098         * g10.c (main): Allow pref selection for compress algo with
3099         --openpgp.
3101         * mainproc.c (proc_encrypted): Use --s2k-digest-algo for
3102         passphrase mangling rather than --digest-algo.
3104         * sign.c (hash_for): If --digest-algo is not set, but
3105         --personal-digest-preferences is, then use the first hash
3106         algorithm in the personal list.  If the signing algorithm is DSA,
3107         then use the first 160-bit hash algorithm in the personal list.
3108         If --pgp2 is set and it's a v3 RSA key, use MD5.
3110         * g10.c (main), keydb.c (keydb_add_resource,
3111         keydb_locate_writable): Rename --default-keyring as
3112         --primary-keyring.  Stefan wins the naming contest.
3114 2002-11-23  David Shaw  <dshaw@jabberwocky.com>
3116         * g10.c (add_notation_data): Disallow notation names that do not
3117         contain a '@', unless --expert is set.  This is to help prevent
3118         people from polluting the (as yet unused) IETF namespace.
3120         * main.h: Comments about default algorithms.
3122         * photoid.c (image_type_to_string): Comments about 3-letter file
3123         extensions.
3125         * encode.c (encode_simple), passphrase.c (passphrase_to_dek),
3126         sign.c (sign_symencrypt_file): Use --s2k-digest-algo for
3127         passphrase mangling rather than --digest-algo.
3129 2002-11-21  David Shaw  <dshaw@jabberwocky.com>
3131         * keygen.c (keygen_set_std_prefs): Properly handle an empty
3132         preference string.
3134         * misc.c (string_to_compress_algo): "none" is a bad choice since
3135         it conflicts with the "none" in setpref.
3137 2002-11-14  David Shaw  <dshaw@jabberwocky.com>
3139         * g10.c (main): Allow compression algorithm names as the argument
3140         to --compress-algo.  The old algorithm names still work for
3141         backwards compatibility.
3143         * misc.c (string_to_compress_algo): Allow "none" as an alias for
3144         "uncompressed".
3146 2002-11-13  Stefan Bellon  <sbellon@sbellon.de>
3148         * getkey.c (get_pubkey_byfprint_fast): Fixed type incompatibility,
3149         was unsigned char instead of byte.
3151 2002-11-13  David Shaw  <dshaw@jabberwocky.com>
3153         * encode.c (encode_simple): Make sure that files larger than about
3154         4G use partial length encoding.  This is required because OpenPGP
3155         allows only for 32 bit length fields.  From Werner on stable
3156         branch.
3158         * getkey.c (get_pubkey_direct): Renamed to...
3159         (get_pubkey_fast): this and made extern.
3160         (get_pubkey_byfprint_fast): New.  From Werner on stable branch.
3162         * keydb.h, import.c (import_one): Use get_pubkey_fast instead of
3163         get_pubkey.  We don't need a merged key and actually this might
3164         lead to recursions.
3165         (revocation_present): Likewise for search by fingerprint.  From
3166         Werner on stable branch.
3168         * g10.c (main): Try to create the trustdb even for non-colon-mode
3169         list-key operations.  This is required because getkey needs to
3170         know whether a a key is ultimately trusted.  From Werner on stable
3171         branch.
3172         
3173         * exec.c [__CYGWIN32__]: Keep cygwin separate from Mingw32;
3174         we don't need it here as it behaves more like a Posix system.
3175         From Werner on stable branch.
3177         * passphrase.c (agent_get_passphrase): Ditto.  From Werner on
3178         stable branch.
3180         * tdbio.c (MY_O_BINARY): Need binary mode with Cygwin.  From
3181         Werner on stable branch.
3183         * g10.c, gpgv.c (main) [__CYGWIN32__]: Don't get the homedir from
3184         the registry.  From Werner on stable branch.
3185         
3186         * keyedit.c (show_key_with_all_names_colon): Make --with-colons
3187         --edit display match the validity and trust of --with-colons
3188         --list-keys.
3190         * passphrase.c (agent_send_all_options): Fix compile warning.
3192         * keylist.c (list_keyblock_colon): Validity for subkeys should
3193         match that of the primary key, and not that of the last user ID.
3195         * getkey.c (merge_selfsigs): Revoked/expired/invalid primary keys
3196         carry these facts onto all their subkeys, but only after the
3197         subkey has a chance to be marked valid.  This is to fix an
3198         incorrect "invalid public key" error verifying a signature made by
3199         a revoked signing subkey, with a valid unrevoked primary key.
3201 2002-11-09  Werner Koch  <wk@gnupg.org>
3203         * passphrase.c (agent_send_all_options): Use tty_get_ttyname to
3204         get the default ttyname.
3206 2002-11-07  David Shaw  <dshaw@jabberwocky.com>
3208         * keyring.h, keyring.c (keyring_register_filename): Return the
3209         pointer if a given keyring is registered twice.
3211         * keydb.h, keydb.c (keydb_add_resource): Use flags to indicate a
3212         default keyring.
3213         (keydb_locate_writable): Prefer the default keyring if possible.
3215         * g10.c (main): Add --default-keyring option.
3217 2002-11-06  David Shaw  <dshaw@jabberwocky.com>
3219         * options.h, g10.c (main), trustdb.c (ask_ownertrust): Add
3220         --force-ownertrust option for debugging purposes.  This allows
3221         setting a whole keyring to a given trust during an
3222         --update-trustdb.  Not for normal use - it's just easier than
3223         hitting "4" all the time to test a large trustdb.
3225         * pubkey-enc.c (get_session_key): With hidden recipients or try a
3226         given passphrase against all secret keys rather than trying all
3227         secret keys in turn.  Don't if --try-all-secrets or --status-fd is
3228         enabled.
3230         * passphrase.c (passphrase_to_dek): Mode 1 means do a regular
3231         passphrase query, but don't prompt with the key info.
3233         * seckey-cert.c (do_check, check_secret_key): A negative ask count
3234         means to enable passphrase mode 1.
3236         * keydb.h, getkey.c (enum_secret_keys): Add flag to include
3237         secret-parts-missing keys (or not) in the list.
3239 2002-11-05  David Shaw  <dshaw@jabberwocky.com>
3241         * keyserver.c (keyserver_search_prompt): When --with-colons is
3242         enabled, don't try and fit the search output to the screen size -
3243         just dump the whole list.
3245 2002-11-04  David Shaw  <dshaw@jabberwocky.com>
3247         * keyserver.c (keyserver_search_prompt): When --with-colons is
3248         enabled, just dump the raw keyserver protocol to stdout and don't
3249         print the menu.
3251         * keyserver.c (show_prompt): Don't show a prompt when command-fd
3252         is being used.
3254         * trustdb.c (trust_model_string, check_trustdb, update_trustdb,
3255         validate_one_keyblock): It's not clear what a trustdb rebuild or
3256         check means with a trust model other than "classic" or "openpgp",
3257         so disallow this.
3259 2002-11-03  David Shaw  <dshaw@jabberwocky.com>
3261         * options.h, g10.c (main): Add --trust-model option.  Current
3262         models are "openpgp" which is classic+trustsigs, "classic" which
3263         is classic only, and "always" which is the same as the current
3264         option --always-trust (which still works).  Default is "openpgp".
3266         * trustdb.c (validate_one_keyblock): Use "openpgp" trust model to
3267         enable trust sigs.
3269         * gpgv.c (main), mainproc.c (check_sig_and_print), pkclist.c
3270         (do_we_trust, do_we_trust_pre, check_signatures_trust): Use new
3271         --trust-model option in place of --always-trust.
3273         * keyedit.c (sign_mk_attrib, trustsig_prompt, sign_uids,
3274         keyedit_menu): Prompt for and create a trust signature with
3275         "tsign".  This is functional, but needs better UI text.
3277         * build-packet.c (build_sig_subpkt): Able to build trust and
3278         regexp subpackets.
3280         * pkclist.c (do_edit_ownertrust): Comment.
3282 2002-11-02  David Shaw  <dshaw@jabberwocky.com>
3284         * keygen.c (set_one_pref, keygen_set_std_prefs): Allow using the
3285         full algorithm name (CAST5, SHA1) rather than the short form (S3,
3286         H2).
3288         * main.h, keygen.c (keygen_get_std_prefs), keyedit.c
3289         (keyedit_menu): Return and use a fake uid packet rather than a
3290         string since we already have a nice parser/printer in
3291         keyedit.c:show_prefs.
3293         * main.h, misc.c (string_to_compress_algo): New.
3295 2002-11-01  David Shaw  <dshaw@jabberwocky.com>
3297         * g10.c (main): Add --no-throw-keyid.
3299         * keydb.h, encode.c (write_pubkey_enc_from_list), g10.c (main),
3300         pkclist.c (build_pk_list): Add --hidden-recipient (-R) and
3301         --hidden-encrypt-to, which do a single-user variation on
3302         --throw-keyid.  The "hide this key" flag is carried in bit 0 of
3303         the pk_list flags field.
3305         * keyserver.c (parse_keyrec): Fix shadowing warning.
3307 2002-10-31  Stefan Bellon  <sbellon@sbellon.de>
3309         * compress.c (init_compress) [__riscos__]: Use
3310         riscos_load_module() to load ZLib module.
3312         * g10.c (main) [__riscos__]: Renames due to changes in riscos.c
3313         (e.g. prefixes all RISC OS specific functions with riscos_*).
3314         * photoid.c (show_photos) [__riscos__]: Likewise.
3315         * signal.c (got_fatal_signal) [__riscos__]: Likewise.
3317         * trustdb.c (check_regexp) [__riscos__]: Branch to RISC OS RegEx
3318         handling.
3320 2002-10-31  David Shaw  <dshaw@jabberwocky.com>
3322         * build-packet.c (do_plaintext), encode.c (encode_sesskey,
3323         encode_simple, encode_crypt), sign.c (write_plaintext_packet): Use
3324         wipememory() instead of memset() to wipe sensitive memory as the
3325         memset() might be optimized away.
3327 2002-10-30  David Shaw  <dshaw@jabberwocky.com>
3329         * trustdb.c (check_regexp): Modern regexps require REG_EXTENDED.
3331 2002-10-29  David Shaw  <dshaw@jabberwocky.com>
3333         * packet.h, trustdb.h, trustdb.c (trust_string): New.  Return a
3334         string like "fully trusted", "marginally trusted", etc.
3335         (get_min_ownertrust): New.  Return minimum ownertrust.
3336         (update_min_ownertrust): New.  Set minimum ownertrust.
3337         (check_regexp): New.  Check a regular epression against a user ID.
3338         (ask_ownertrust): Allow specifying a minimum value.
3339         (get_ownertrust_info): Follow the minimum ownertrust when
3340         returning a letter.
3341         (clear_validity): Remove minimum ownertrust when a key becomes
3342         invalid.
3343         (release_key_items): Release regexp along with the rest of the
3344         info.
3345         (validate_one_keyblock, validate_keys): Build a trust sig chain
3346         while validating.  Call check_regexp for regexps.  Use the minimum
3347         ownertrust if the user does not specify a genuine ownertrust.
3349         * pkclist.c (do_edit_ownertrust): Only allow user to select a
3350         trust level greater than the minimum value.
3352         * parse-packet.c (can_handle_critical): Can handle critical trust
3353         and regexp subpackets.
3355         * trustdb.h, trustdb.c (clear_ownertrusts), delkey.c
3356         (do_delete_key), import.c (import_one): Rename clear_ownertrust to
3357         clear_ownertrusts and have it clear the min_ownertrust value as
3358         well.
3360         * keylist.c (list_keyblock_print): Indent uid to match pub and
3361         sig.
3363         * keyedit.c (print_and_check_one_sig, show_key_and_fingerprint,
3364         menu_addrevoker), keylist.c (list_keyblock_print,
3365         print_fingerprint): Show "T" or the trust depth for trust
3366         signatures, and add spaces to some strings to make room for it.
3368         * packet.h, parse-packet.c (dump_sig_subpkt, parse_one_sig_subpkt,
3369         parse_signature): Parse trust signature values.
3371         * tdbio.h, tdbio.c (tdbio_read_record, tdbio_write_record):
3372         Reserve a byte for the minimum ownertrust value (for use with
3373         trust signatures).
3375 2002-10-29  Stefan Bellon  <sbellon@sbellon.de>
3377         * build-packet.c (calc_plaintext, do_plaintext): Removed RISC OS
3378         specific filetype parts (it's now done in make_basename()).
3380         * plaintext.c (handle_plaintext): Tidied up RISC OS specific
3381         filetype parts.
3383         * encode.c (encode_simple, encode_crypt): Added argument to
3384         make_basename() call.
3386         * sign.c (write_plaintext_packet): Added argument to
3387         make_basename() call.
3389 2002-10-28  Stefan Bellon  <sbellon@sbellon.de>
3391         * build-packet.c (calc_plaintext, do_plaintext): Added filetype
3392         handling for RISC OS' file types.
3394         * plaintext.c (handle_plaintext) [__riscos__]: Added filetype
3395         handling for RISC OS' file types.
3397 2002-10-23  David Shaw  <dshaw@jabberwocky.com>
3399         * main.h, import.c (sec_to_pub_keyblock, import_secret_one,
3400         parse_import_options), g10.c (main): New import-option
3401         "convert-sk-to-pk" to convert a secret key into a public key
3402         during import.  It is on by default.
3404 2002-10-23  Werner Koch  <wk@gnupg.org>
3406         * pubkey-enc.c (get_it): Fix segv, test for revoked only when PK
3407         has been assigned.
3409 2002-10-18  Timo Schulz  <ts@winpt.org>
3411         * keylist.c: (print_pubkey_info): New.
3412         (print_seckey_info): New.
3413         * main.h: Prototypes for the new functions.       
3414         * delkey.c (do_delete_key): Use it here.
3415         * revoke.c (gen_desig_revoke): Ditto.
3416         
3417 2002-10-17  Werner Koch  <wk@gnupg.org>
3419         * pkclist.c (do_edit_ownertrust): Show all user IDs.  This should
3420         be enhanced to also show the current trust level.  Suggested by
3421         Florian Weimer.
3423 2002-10-17  David Shaw  <dshaw@jabberwocky.com>
3425         * g10.c (main): Handle --strict and --no-strict from the command
3426         line before the options file is loaded.
3428 2002-10-15  David Shaw  <dshaw@jabberwocky.com>
3430         * g10.c (main): Disable --textmode when encrypting (symmetric or
3431         pk) in --pgp2 mode as PGP 2 can't handle the unknown length
3432         literal packet.  Reported by Michael Richardson.
3434 2002-10-14  David Shaw  <dshaw@jabberwocky.com>
3436         * keyserver-internal.h, keyserver.c (print_keyrec, parse_keyrec,
3437         show_prompt, keyserver_search_prompt, keyserver_spawn): Go to
3438         version 1 of the keyserver protocol.  This is a better design,
3439         similar to --with-colons, that allows for keys with multiple user
3440         IDs rather than using multiple keys.  It also matches the machine
3441         readable pksd format.  Also use a prettier --search-keys listing
3442         format that can fill different size windows (currently set at 24
3443         lines).
3445 2002-10-12  Werner Koch  <wk@gnupg.org>
3447         * keygen.c (print_status_key_created): New.
3448         (do_generate_keypair): Use it to print the fingerprint.
3449         (generate_subkeypair): Likewise.
3451 2002-10-11  David Shaw  <dshaw@jabberwocky.com>
3453         * keyedit.c (menu_addrevoker): Properly back out if the signature
3454         fails.  Also, do not allow appointing the same revoker twice, and
3455         report ALREADY_SIGNED if the user tries it.
3457 2002-10-07  David Shaw  <dshaw@jabberwocky.com>
3459         * import.c (import_keys_internal): Missed one s/inp/inp2/.
3461         * keylist.c (print_capabilities): Properly indicate per-key
3462         capabilities of sign&encrypt primary keys that have
3463         secret-parts-missing (i.e. no capabilities at all)
3465         * mainproc.c (symkey_decrypt_sesskey): Fix compiler warning.
3467 2002-10-04  David Shaw  <dshaw@jabberwocky.com>
3469         * getkey.c (get_pubkey_direct): Don't cache keys retrieved via
3470         this function as they may not have all their fields filled in.
3472         * sig-check.c (signature_check2): Use new is_primary flag to check
3473         rather than comparing main_keyid with keyid as this still works in
3474         the case of a not fully filled in pk.
3476 2002-10-04  Werner Koch  <wk@gnupg.org>
3478         * import.c (import_keys_internal): s/inp/inp2/ to avoid shadowing
3479         warning.
3481         * passphrase.c (agent_get_passphrase): Fixed signed/unsigned char
3482         problem in %-escaping.  Noted by Ingo Klöcker.
3484 2002-10-03  David Shaw  <dshaw@jabberwocky.com>
3486         * options.h, g10.c (main): Add --strict and --no-strict to switch
3487         the log_warning severity level from info to error.
3489         * keylist.c (print_capabilities): Secret-parts-missing keys should
3490         show that fact in the capabilities, and only primary signing keys
3491         can certify other keys.
3493         * packet.h, parse_packet.c (parse_key): Add is_primary flag for
3494         public keys (it already exists for secret keys).
3496 2002-10-02  David Shaw  <dshaw@jabberwocky.com>
3498         * import.c (import_secret_one): Check for an illegal (>110)
3499         protection cipher when importing a secret key.
3501         * keylist.c (list_keyblock_print): Show a '#' for a
3502         secret-parts-missing key.
3504         * parse_packet.c (parse_key): Some comments.
3506         * revoke.c (gen_revoke): Remove some debugging code.
3508         * trustdb.c (verify_own_keys): Make trusted-key a non-deprecated
3509         option again.
3511         * seckey-cert.c (do_check): Don't give the IDEA warning unless the
3512         cipher in question is in fact IDEA.
3514 2002-10-01  David Shaw  <dshaw@jabberwocky.com>
3516         * import.c (import_one): Make sure that a newly imported key
3517         starts with a clean ownertrust.
3519 2002-10-01  Werner Koch  <wk@gnupg.org>
3521         * getkey.c (get_pubkey_direct): New.
3522         (merge_selfsigs_main): Use it here to look for an ultimately
3523         trusted key.  Using the full get_pubkey might lead to an
3524         infinitive recursion.
3526 2002-09-29  David Shaw  <dshaw@jabberwocky.com>
3528         * keyserver.c (parse_keyserver_uri): Force the keyserver URI
3529         scheme to lowercase to be case-insensitive.
3531 2002-09-28  David Shaw  <dshaw@jabberwocky.com>
3533         * export.c (do_export_stream): Comment.
3535         * sig-check.c (check_key_signature2): Properly handle a
3536         non-designated revocation import.
3538 2002-09-26  Werner Koch  <wk@gnupg.org>
3540         * g10.c (set_homedir): New. Changed all direct assignments to use
3541         this.
3542         * gpgv.c (set_homedir): Ditto.
3544 2002-09-25  David Shaw  <dshaw@jabberwocky.com>
3546         * Makefile.am: Link gpg with EGDLIBS (i.e. NETLIBS) as EGD uses
3547         sockets.  Remove the old NETLIBS variable since the keyserver
3548         stuff is no longer internal.
3550 2002-09-24  David Shaw  <dshaw@jabberwocky.com>
3552         * import.c (import_keys_stream): Fix compiler type warning.
3554         * keyring.c (keyring_rebuild_cache), sig-check.c
3555         (check_key_signature2), import.c (import, chk_self_sigs): Minor
3556         language cleanups.
3558 2002-09-23  Stefan Bellon  <sbellon@sbellon.de>
3560         * main.h: Introduced fast-import as import option. Removed
3561         fast as separate option from prototypes.
3562         * import.c (parse_import_options): Added fast-import option.
3563         (import_*): Removed fast as separate option.
3564         * g10.c (main): Added option fast-import, removed old fast
3565         as separate argument.
3566         * keyserver.c (keyserver_spawn): Removed old fast as separate
3567         argument.
3569 2002-09-22  Stefan Bellon  <sbellon@sbellon.de>
3571         * import.c (import_keys, import_keys_stream,
3572         import_keys_internal): Added trustdb update/check to key import if
3573         not fast-import and interactive set/no-auto-check-trustdb unset.
3574         Avoided function clone by introducing import_keys_internal.
3576 2002-09-19  David Shaw  <dshaw@jabberwocky.com>
3578         * keyserver.c (keyserver_spawn): Properly handle line truncation.
3579         Don't leak memory (~10-20 bytes) on searches.
3580         (keyserver_search_prompt): Cleanup.
3582         * keylist.c (list_keyblock_colon): Show 1F direct key signatures
3583         in --with-colons listing.
3585 2002-09-16  David Shaw  <dshaw@jabberwocky.com>
3587         * keyedit.c (menu_addrevoker): The direct key signature for
3588         revocation keys must be at least v4 to carry the revocation key
3589         subpacket.  Add a PGP 2.x warning for revocation keys.
3591 2002-09-14  David Shaw  <dshaw@jabberwocky.com>
3593         * g10.c (check_permissions): Rearrange strings to make translating
3594         easier (don't incorporate string parts).
3596         * keyedit.c (sign_uids): Make strings translatable.
3598         * sig-check.c (check_key_signature2): Make string translatable.
3600 2002-09-13  David Shaw  <dshaw@jabberwocky.com>
3602         * getkey.c (check_revocation_keys): Move....
3603         * main.h, sig-check.c (check_revocation_keys): to here.  Also
3604         return the signature_check error code rather than 0/1 and cache
3605         the sig result.
3607         * sig-check.c (check_key_signature2): Divert to
3608         check_revocation_keys if a revocation sig is made by someone other
3609         than the pk owner.
3611         * getkey.c (merge_selfsigs_main): Tidy.
3613 2002-09-13  Werner Koch  <wk@gnupg.org>
3615         * g10.c (main) [__MINGW32__]: Activate oLoadExtension.
3617 2002-09-12  David Shaw  <dshaw@jabberwocky.com>
3619         * Makefile.am, hkp.c, hkp.h, keyserver.c (keyserver_work): Remove
3620         internal HKP support.
3622         * keyserver.c (keyserver_spawn): Remove whitespace after keyserver
3623         commands.
3625 2002-09-10  David Shaw  <dshaw@jabberwocky.com>
3627         * exec.c (expand_args): Remove loop left over from earlier
3628         implementation.
3629         (exec_write): Missed one tick.
3631 2002-09-10  Werner Koch  <wk@gnupg.org>
3633         * g10.c, options.h: Removed option --emulate-checksum-bug.
3634         * misc.c (checksum_u16_nobug): Removed.
3635         (checksum_u16): Removed the bug emulation.
3636         (checksum_mpi): Ditto.
3637         (checksum_mpi_counted_nbits): Removed and replaced all calls
3638         with checksum_mpi.
3640         * parse-packet.c (read_protected_v3_mpi): New.
3641         (parse_key): Use it here to store it as an opaque MPI.
3642         * seckey-cert.c (do_check): Changed the v3 unprotection to the new
3643         why to store these keys.
3644         (protect_secret_key): Likewise.
3645         * build-packet.c (do_secret_key): And changed the writing.
3647         * tdbio.c (tdbio_set_dbname, open_db): Use new macro MY_O_BINARY
3648         to avoid silly ifdefs.
3649         (open_db): Fallback to RDONLY so that gpg may be used from a
3650         RO-medium.
3652         * encode.c (encode_simple): Make sure we don't use an ESK packet
3653         when we don't have a salt in the S2K.
3655         * misc.c (pct_expando) <case f>: Make sure that LEN is initialized.
3657         * exec.c (exec_finish): Use ticks to denote filenames in messages.
3658         (make_tempdir, exec_write): Changed format of messages.
3660         * keyserver.c (print_keyinfo): Release USERID in on error.
3661         (keyserver_work) [!DISABLE_KEYSERVER_HELPERS]: Exclude the unused
3662         code.
3664 2002-09-09  Werner Koch  <wk@gnupg.org>
3666         * parse-packet.c (make_attribute_uidname): Add new ar MAX_NAMELEN
3667         for sanity checks.  Changed both callers. Limit the size of an %s.
3669         * options.skel: Comment lock-once out, so that this file does not
3670         change anything when copied to a new home directory.
3671         * openfile.c (try_make_homedir): Don't exit after copying the
3672         option skeleton.
3674         * options.h: Don't use a comma when declaring variables over more
3675         than one line.
3677         * mainproc.c (symkey_decrypt_sesskey): Check length of the session
3678         key.
3680         * hkp.c (dehtmlize): Use ascii_tolower to protect against weird
3681         locales.  Cast the argument for isspace for the sake of broken
3682         HP/UXes.
3683         (parse_hkp_index): s/ascii_memcasecmp/ascii_strncasecmp/.
3685         * g10.c: Removed option --emulate-3des-s2k-bug.
3687         * passphrase.c (hash_passphrase): Was used here.
3689         * export.c (parse_export_options)
3690         * keyserver.c (parse_keyserver_options)
3691         * import.c (parse_import_options)
3692         * g10.c (check_permissions): s/ascii_memcasecmp/ascii_strncasecmp/.
3694 2002-09-09  David Shaw  <dshaw@jabberwocky.com>
3696         * g10.c (add_group): Use '=' to separate group name from group
3697         members.  Use a better error message for when no = is found.
3699         * hkp.c (hkp_export): Use CRLF in headers.
3701 2002-09-03  David Shaw  <dshaw@jabberwocky.com>
3703         * mainproc.c (print_pkenc_list): Don't increment the error counter
3704         when printing the list of keys a message was encrypted to.  This
3705         would make gpg give a non-zero exit code even for completely valid
3706         messages if the message was encrypted to more than one key that
3707         the user owned.
3709 2002-09-02  Werner Koch  <wk@gnupg.org>
3711         * g10.c (main): Try to set a default character set.  Print the
3712         used one in verbosity level 3.
3713         * gpgv.c (main): Try to set a default character set.
3715         * status.c, status.h (STATUS_IMPORT_OK): New.
3716         * import.c (import_one,import_secret_one): Print new status.
3718 2002-08-30  David Shaw  <dshaw@jabberwocky.com>
3720         * pkclist.c (build_pk_list): Add new status code to indicate an
3721         untrusted user.  This (or a disabled key) fail with "unavailable
3722         pubkey" (G10ERR_UNU_PUBKEY).
3724         * pkclist.c (build_pk_list): Fail if any recipient keys are
3725         unusable.
3727         * options.skel: The PGP LDAP keyserver is back.  Use MIT keyserver
3728         as a sample rather than cryptnet as cryptnet does not support
3729         searching yet.
3731         * keyedit.c (show_key_with_all_names): Fix error message
3732         (preferences are userid/selfsig and not key specific).
3734 2002-08-30  Werner Koch  <wk@gnupg.org>
3736         * pkclist.c (do_we_trust_pre): Changed the wording of a warning.
3738         * encode.c (encode_simple,encode_crypt): Use new style CTB for
3739         compressssed packets when using MDC.  We need to do this so that
3740         concatenated messages are properly decrypted.  Old style
3741         compression assumes that it is the last packet; given that we
3742         can't determine the length in advance, the uncompressor does not
3743         know where to start.  Actually we should use the new CTB always
3744         but this would break PGP 2 compatibility.
3746         * parse-packet.c (parse): Special treatment for new style CTB
3747         compressed packets.
3749         * build-packet.c (do_mdc): Removed. Was not used.
3750         (do_encrypted_mdc): Count in the version number and the MDC packet.
3752 2002-08-28  David Shaw  <dshaw@jabberwocky.com>
3754         * sig-check.c (do_check_messages, do_check): Show keyid in error
3755         messages.
3757         * keyserver.c (print_keyinfo): More readable key listings for
3758         --search-keys responses.
3760 2002-08-26  David Shaw  <dshaw@jabberwocky.com>
3762         * hkp.c (parse_hkp_index, dehtmlize): Move HTML functionality into
3763         new "dehtmlize" function.  Remove HTML before trying to parse each
3764         line from the keyserver.  If the keyserver provides key type
3765         information in the listing, use it.
3767 2002-08-23  David Shaw  <dshaw@jabberwocky.com>
3769         * sig-check.c (do_check, do_check_messages): Emit the usual sig
3770         warnings even for cached sigs.  This also serves to protect
3771         against missing a sig expiring while cached.
3773         * getkey.c (merge_selfsigs_main): Don't check UID self-sigs twice.
3775 2002-08-22  David Shaw  <dshaw@jabberwocky.com>
3777         * import.c (clean_subkeys, chk_self_sigs): Merge clean_subkeys
3778         into chk_self_sigs.  This improves efficiency as the same
3779         signatures are not checked multiple times.  Clarify when a subkey
3780         is revoked (any revocation signature, even if it is dated before
3781         the binding signature).
3783         * getkey.c (merge_selfsigs_subkey): Subkey revocation comments.
3785         * keylist.c (list_one): Stats are only for public key listings.
3787         * g10.c (main), options.skel: Default should be include-revoked
3788         for keyserver operations.
3790 2002-08-21  Werner Koch  <wk@gnupg.org>
3792         * import.c (import_print_stats): Print new non_imported counter
3793         which is currently not used because we terminate on errors.
3795 2002-08-20  David Shaw  <dshaw@jabberwocky.com>
3797         * options.skel: Document no-include-attributes for
3798         keyserver-options.
3800         * keylist.c, keyedit.c, keyserver.c, sign.c: Some TODOs and
3801         comments.
3803         * export.c (do_export_stream): Fix noop bug in exporting sensitive
3804         revocation keys.
3806         * pkclist.c (do_edit_ownertrust): Comment out the option for
3807         showing trust paths until it can be implemented.
3809 2002-08-19  Werner Koch  <wk@gnupg.org>
3811         * getkey.c (get_user_id_native): Renamed to ..
3812         (get_user_id_printable): this.  Filter out all dangerous
3813         characters.  Checked all usages.
3814         (get_user_id_string_native): Renamed to..
3815         (get_user_id_string_printable): this.  Filter out all dangerous
3816         characters.  Checked all usages.
3817         * keyedit.c (show_basic_key_info): New.
3818         * keylist.c (print_fingerprint): New mode 3.
3819         * import.c (import_one): Use new function to display the user ID.
3821 2002-08-16  Timo Schulz  <ts@winpt.org>
3823         * g10.c (main): Enable opt.interactive.
3825         * import.c (import_one): Ask the user if the key shall be
3826         imported when the interactive mode is used. Useful to extract
3827         selected keys from a file.
3828         
3829 2002-08-16  Werner Koch  <wk@gnupg.org>
3831         * seckey-cert.c: Workaround to allow decryption of v3 keys created
3832         with a bug in the mpi_get_secure_buffer.
3834 2002-08-14  David Shaw  <dshaw@jabberwocky.com>
3836         * hkp.c (parse_hkp_index): Properly handle really large keys
3837         (5 digit key length) in HKP searches.
3839 2002-08-13  David Shaw  <dshaw@jabberwocky.com>
3841         * encode.c (encode_simple): Fix problem with using compression
3842         algo 2 and symmetric compressed files.
3844         * encode.c (encode_simple, encode_crypt): If we are not using a
3845         MDC, compress even if a file is already compressed.  This is to
3846         help against the chosen ciphertext attack.
3848         * pkclist.c (select_algo_from_prefs): Fix requested algorithm bug
3849         so the request succeeds even if the requested algorithm is not the
3850         first found.
3852         * cipher.c (write_header), encode.c (use_mdc, encode_simple,
3853         encode_crypt, encrypt_filter), g10.c (main): Be more eager to use
3854         a MDC.  We use a MDC if the keys directly support it, if the keys
3855         list AES (any) or TWOFISH anywhere in the prefs, or if the cipher
3856         chosen does not have a 64 bit blocksize.
3858 2002-08-08  David Shaw  <dshaw@jabberwocky.com>
3860         * options.skel: Some language tweaks, and remove the
3861         load-extension section for random gatherers.
3863         * keyring.c (create_tmp_file, rename_tmp_file): Create tmp files
3864         with user-only permissions, but restore the original permissions
3865         if the user has something special set.
3867         * openfile.c (copy_options_file): Create new options file
3868         (gpg.conf) with user-only permissions.
3870         * keydb.c (keydb_add_resource): Create new keyrings with user-only
3871         permissions.
3873         * tdbio.c (tdbio_set_dbname): Create new trustdbs with user-only
3874         permissions.
3876 2002-08-07  David Shaw  <dshaw@jabberwocky.com>
3878         * sig-check.c (signature_check2): Sanity check that the md has a
3879         context for the hash that the sig is expecting.  This can happen
3880         if a onepass sig header does not match the actual sig, and also if
3881         the clearsign "Hash:" header is missing or does not match the
3882         actual sig.
3884         * keyedit.c (menu_revsig): Properly show a uid is revoked without
3885         restarting gpg.  This is Debian bug 124219, though their supplied
3886         patch will not do the right thing.
3888         * main.h, tdbio.c (tdbio_set_dbname), misc.c (removed
3889         check_permissions), keydb.c (keydb_add_resource), g10.c (main,
3890         check_permissions): Significant reworking of the permission check
3891         mechanism.  The new behavior is to check everything in the homedir
3892         by checking the homedir itself.  If the user wants to put
3893         (possibly shared) keyrings outside the homedir, they are not
3894         checked.  The options file and any extension files are checked
3895         wherever they are, as well as their enclosing directories.  This
3896         is Debian bug 147760.
3897         
3898 2002-08-06  Stefan Bellon  <sbellon@sbellon.de>
3900         * g10.c (main): Use of EXTSEP_S in new gpg.conf string.
3901         * openfile.c (copy_options_file): Ditto.
3903 2002-08-06  David Shaw  <dshaw@jabberwocky.com>
3905         * options.h, g10.c (main), mainproc.c (proc_encrypted):
3906         --ignore-mdc-error option to turn a MDC check error into a
3907         warning.
3909         * encode.c (encode_crypt), g10.c (main), sign.c (sign_file,
3910         clearsign_file): Use the same --pgpX warning string everywhere to
3911         ease translations.
3913         * encode.c (write_pubkey_enc_from_list): Warn when using
3914         --throw-keyid with --pgpX.  Noted by Vedaal Nistar.
3916         * revoke.c (export_minimal_pk, gen_desig_revoke, gen_revoke):
3917         Export a minimal pk along with the revocation cert when in --pgpX
3918         mode so that PGP can import it.
3920 2002-08-06  Werner Koch  <wk@gnupg.org>
3922         * options.skel: Changed comments.
3924         * g10.c (main): Try to use "gpg.conf" as default option file.
3925         * openfile.c (copy_options_file): Changed name of created file.
3927 2002-08-02  Werner Koch  <wk@gnupg.org>
3929         * Makefile.am (LDFLAGS): Removed DYNLINK_LDFLAGS.
3931 2002-07-30  David Shaw  <dshaw@jabberwocky.com>
3933         * options.h, g10.c (main), mainproc.c (proc_encrypted): Return a
3934         decryption failed error if a MDC does not verify.  Warn if a MDC
3935         is not present (can disable via --no-mdc-warning).
3937         * exec.c (exec_write), g10.c (main), keyserver.c
3938         (keyserver_spawn): Use new DISABLE_KEYSERVER_PATH rather than
3939         FIXED_EXEC_PATH.
3941 2002-07-28  David Shaw  <dshaw@jabberwocky.com>
3943         * sig-check.c (do_check): Properly validate v4 sigs with no hashed
3944         section at all.
3946 2002-07-25  Werner Koch  <wk@gnupg.org>
3948         * delkey.c (do_delete_key): Always allow to delete a key in batch mode
3949         when specified by fingerprint.  Suggested by Enzo Michelangeli.
3951 2002-07-25  David Shaw  <dshaw@jabberwocky.com>
3953         * keyedit.c (menu_revsig): Change "revsig" to honor selected uids
3954         so the user can revoke sigs from particular uids only.
3956         * keylist.c (list_keyblock_print): Don't display expired uids in
3957         --list-keys unless -v and not --list-sigs (just like revoked
3958         uids).
3960         * exec.c, export.c, import.c, keyedit.c, keyserver.c, misc.c:
3961         "Warning" -> "WARNING"
3963 2002-07-24  David Shaw  <dshaw@jabberwocky.com>
3965         * main.h, import.c (parse_import_options, fix_hkp_corruption,
3966         import_one, delete_inv_parts), g10.c (main): New import-option
3967         "repair-hkp-subkey-bug", which repairs as much as possible the HKP
3968         mangling multiple subkeys bug.  It is on by default for keyserver
3969         receives, and off by default for regular --import.
3971         * main.h, import.c (import, import_one, delete_inv_parts), hkp.c
3972         (hkp_ask_import), keyserver.c (keyserver_spawn): Use keyserver
3973         import options when doing keyserver receives.
3975         * options.h, exec.h, exec.c (set_exec_path, exec_write), g10.c
3976         (main), keyserver.c (keyserver_spawn): If the user does not use
3977         "exec-path", completely replace $PATH with GNUPG_LIBEXECDIR before
3978         calling the keyserver helper.  If the user does use "exec-path",
3979         append GNUPG_LIBEXECDIR after the specified path.
3981 2002-07-23  David Shaw  <dshaw@jabberwocky.com>
3983         * import.c (parse_import_options), export.c
3984         (parse_export_options): Fix offset problem with reversed ("no-")
3985         meanings.
3987         * import.c (delete_inv_parts): Discard subkey signatures (0x18 and
3988         0x28) if found in the userid section of the key.
3990         * sig-check.c (signature_check2): Signatures made by invalid
3991         subkeys (bad/missing binding sig) are also invalid.
3993         * keylist.c (print_fingerprint): Show the primary as well as the
3994         secondary key fingerprint in modes 1 & 2.
3996 2002-07-22  David Shaw  <dshaw@jabberwocky.com>
3998         * options.h, main.h, g10.c (main), import.c
3999         (parse_import_options, delete_inv_parts), keyserver.c
4000         (parse_keyserver_options): add new --import-options option.  The
4001         only current flag is "allow-local-sigs".
4003         * g10.c (main): Don't disable MDC in pgp7 mode.
4005         * options.h, g10.c (main), keyserver.c (parse_keyserver_options):
4006         Remove old keyserver-option include-attributes now that there is
4007         an export-option for the same thing.
4009         * options.h, main.h, export.c (parse_export_options,
4010         do_export_stream), g10.c (main): add new --export-options option.
4011         Current flags are "include-non-rfc", "include-local-sigs",
4012         "include-attributes", and "include-sensitive-revkeys".
4014         * options.h, hkp.c (hkp_export), keyserver.c
4015         (parse_keyserver_options, keyserver_spawn): try passing unknown
4016         keyserver options to export options, and if successful, use them
4017         when doing a keyserver --send-key.
4019         * build-packet.c (build_sig_subpkt): We do not generate
4020         SIGSUBPKT_PRIV_VERIFY_CACHE anymore.
4022         * revoke.c (gen_desig_revoke): Lots more comments about including
4023         sensitive revkeys along with the revocation sig itself.
4025         * keyserver.c (parse_keyserver_options): Simpler implementation
4026         that can skip one pass over the options.
4028 2002-07-18  David Shaw  <dshaw@jabberwocky.com>
4030         * keyedit.c (keyedit_menu, menu_addrevoker): Allow specifying
4031         "sensitive" as an argument to an addrevoker command.  This sets
4032         the 0x40 sensitive revoker flag.
4034         * revoke.c (gen_desig_revoke): When generating a designated
4035         revocation, include the direct key sig that contains the
4036         designated revoker subpacket.  This allows sensitive designated
4037         revocation subpackets to be exported.  Also indicate which
4038         revokers are sensitive in the first place.
4040 2002-07-17  David Shaw  <dshaw@jabberwocky.com>
4042         * keyedit.c (show_key_with_all_names_colon): The 0x40 class bit in
4043         a designated revoker means "sensitive", not "local".  It's
4044         exportable under the right circumstances.
4046         * main.h, options.h, export.c (do_export_stream), g10.c (main),
4047         hkp.c (hkp_export), keyserver.c (keyserver_spawn: Add a flag to
4048         skip attribute packets and their signatures while exporting.  This
4049         is to accomodate keyservers (pksd again) that choke on attributes.
4050         Use keyserver-option "include-attributes" to control it.  This
4051         defaults to ON (i.e. don't skip).
4053 2002-07-09  David Shaw  <dshaw@jabberwocky.com>
4055         * options.h, keyserver.c (parse_keyserver_uri, keyserver_spawn,
4056         keyserver_work), hkp.c (hkp_ask_import, hkp_export, hkp_search):
4057         Use a much more strict reading of RFC-2396 for the keyserver URIs.
4058         Specifically, don't try and be smart about checking the value of
4059         ":port" so long as it is all digits, and properly handle opaque
4060         data (those scheme specific parts that do not start with "//").
4062 2002-07-04  David Shaw  <dshaw@jabberwocky.com>
4064         * photoid.c (get_default_photo_command, show_photos): Honor
4065         FIXED_PHOTO_VIEWER and DISABLE_PHOTO_VIEWER.
4067         * mainproc.c (check_sig_and_print): Use --show-photos to show
4068         photos when verifying a sig made by a key with a photo.
4070         * keyserver.c (parse_keyserver_uri): Properly parse a URI with no
4071         :port section and an empty file path, but with a terminating '/'.
4072         (keyserver_work): Honor DISABLE_KEYSERVER_HELPERS.
4074         * hkp.c (hkp_ask_import): Display keyserver URI as a URI, but only
4075         if verbose.
4077         * exec.c, g10.c: USE_EXEC_PATH -> FIXED_EXEC_PATH
4079 2002-07-03  David Shaw  <dshaw@jabberwocky.com>
4081         * exec.h, exec.c (set_exec_path, exec_write), g10.c (main): If
4082         USE_EXEC_PATH is defined at compile time, use it to lock the
4083         exec-path and not allow the user to change it.
4085 2002-07-02  David Shaw  <dshaw@jabberwocky.com>
4087         * options.h, g10.c (main), keyserver.c (keyserver_refresh):
4088         Maintain and use the original keyserver URI for cosmetics rather
4089         than trying to recreate it when needed.
4091         * mainproc.c (check_sig_and_print): Properly disregard expired
4092         uids.  Make sure that the first uid listed is a real uid and not
4093         an attribute (attributes should only be listed in the "aka"
4094         section).  When there are no valid textual userids, try for an
4095         invalid textual userid before using any attribute uid.
4097 2002-07-01  David Shaw  <dshaw@jabberwocky.com>
4099         * options.skel: Fix a few typos, clarify "group", and remove
4100         sample photo viewers for Win32 since they are the defaults now.
4102         * parse-packet.c (make_attribute_uidname), keylist.c
4103         (dump_attribs): Fix two typecast warnings.
4105         * packet.h, build-packet.c (build_attribute_subpkt), exec.c
4106         (expand_args), mkdtemp.c (mkdtemp), photoid.c
4107         (parse_image_header): Fix some signedness compiler warnings.
4109 2002-07-01  Werner Koch  <wk@gnupg.org>
4111         * photoid.c (get_default_photo_command): Also use __MINGW32__
4112         instead of HAVE_DOSISH_SYSTEM.
4114         * encode.c (encode_symmetric): Do not use the new encryption code.
4116 2002-06-30  Werner Koch  <wk@gnupg.org>
4118         * photoid.c: Use __MINGW32__ to include windows because
4119         HAVE_DOSISH_SYSTEM is also set for OS/2 and plain DOS.  Provide
4120         constant missing in older mingw installations. 
4122 2002-06-21  Stefan Bellon  <sbellon@sbellon.de>
4124         * g10.c [__riscos__]: Moved RISC OS specific stuff to util/riscos.c
4125         and include/util.h.
4127         * gpgv.c [__riscos__]: Likewise.
4129 2002-06-20  David Shaw  <dshaw@jabberwocky.com>
4131         * keydb.h, pkclist.c (select_algo_from_prefs): Allow passing a
4132         suggested algorithm which will be used if available.
4134         * encode.c (encode_crypt, encrypt_filter), sign.c (sign_file): Use
4135         new select_algo_from_prefs feature to check if forcing an
4136         algorithm would violate the recipient preferences.
4138         * photoid.c (get_default_photo_command, show_photos): Use
4139         different default viewers on different platforms.  Currently we
4140         have Win 9x, Win NT (2k, xp), Mac OSX, RISC OS, and "everybody
4141         else".  These are #ifdefs as much as possible to avoid clutter.
4143         * g10.c (strusage, build_list), keyedit.c (show_prefs), main.h,
4144         misc.c (compress_algo_to_string, check_compress_algo), pkclist.c
4145         (algo_available), keygen.c (keygen_set_std_prefs): New
4146         algo_to_string and check functions for compress algorithms.
4148 2002-06-20  Werner Koch  <wk@gnupg.org>
4150         * misc.c (setsysinfo): Removed a #warning for Alpha's uniligedn
4151         trap disabling - it is quite possible that this is a debug relict.
4153 2002-06-20  Stefan Bellon  <sbellon@sbellon.de>
4155         * g10.c [__riscos__]: Added image file system feature.
4157         * gpgv.c [__riscos__]: Added image file system feature.
4159         * photoid.c (show_photos) [__riscos__]: Set RISC OS filetype of
4160         photo id according to MIME type.
4162 2002-06-19  David Shaw  <dshaw@jabberwocky.com>
4164         * hkp.c (parse_hkp_index): Don't leak memory when failing out of a
4165         bad HKP keyserver.
4167         * g10.c (add_notation_data): Relax slightly the rules as to what
4168         can go into a notation name - 2440 allows "@", for example.
4170 2002-06-17  David Shaw  <dshaw@jabberwocky.com>
4172         * import.c (clean_subkeys, import_one): Only allow at most 1
4173         binding sig and at most 1 revocation sig on a subkey, as per
4174         2440:11.1.
4176         * hkp.c (parse_hkp_index, hkp_search): Error if the keyserver
4177         returns an unparseable HKP response.
4179 2002-06-15  David Shaw  <dshaw@jabberwocky.com>
4181         * keyedit.c (show_key_with_all_names), keylist.c
4182         (list_keyblock_print): Show "[expired]" before expired uids.
4184         * keyedit.c (show_key_with_all_names_colon), mainproc.c
4185         (list_node), keylist.c (list_keyblock_colon): Show flag 'e' for
4186         expired user ids.  Use "uat" for user attribute packets instead of
4187         "uid".  Also use '<count> <length>' rather than the fake user id
4188         string on attributes.
4190         * keygen.c (keygen_add_revkey): Remove unused code.
4192         * misc.c (check_permissions): Check directory permissions
4193         properly - they are not special files.
4195         * pkclist.c (expand_id, expand_group, build_pk_list): When
4196         expanding groups before building a pk list, inherit flags from the
4197         original pre-expanded string.
4199         * pubkey-enc.c (is_algo_in_prefs): Don't use prefs from expired
4200         uids.
4202 2002-06-14  David Shaw  <dshaw@jabberwocky.com>
4204         * free-packet.c (copy_signature): Properly copy a signature that
4205         carries a revocation key on it.
4207         * pkclist.c (expand_id, expand_group, build_pk_list): Groups now
4208         work properly when used in the "Enter the user ID" prompt.
4210 2002-06-14  David Shaw  <dshaw@jabberwocky.com>
4212         * keyedit.c (show_key_with_all_names): Display warning if a user
4213         tries to show prefs on a v3 key with a v3 selfsig.
4215         * kbnode.c (dump_kbnode): Show if a uid is expired.
4217         * import.c (merge_blocks, import_revoke_cert): Show user ID
4218         receiving a revocation certificate.
4220         * free-packet.c (cmp_user_ids): Properly compare attribute ids.
4222         * pkclist.c (expand_groups): Maintain the strlist flags while
4223         expanding.  Members of an expansion inherit their flags from the
4224         expansion key.
4226         * options.h, cipher.c (write_header), g10.c (main), keygen.c
4227         (keygen_set_std_prefs): remove the personal_mdc flag.  It no
4228         longer serves a purpose now that the personal preference lists are
4229         split into cipher/digest/zip.
4231 2002-06-14  Timo Schulz  <ts@winpt.org>
4233         * skclist.c (is_insecure): Implemented.
4234         
4235 2002-06-12  David Shaw  <dshaw@jabberwocky.com>
4237         * keyserver.c (keyserver_spawn): Properly handle PROGRAM responses
4238         when they have a CRLF ending.  Noted by Keith Ray.
4240         * keyserver.c (keyserver_spawn): Handle CRLF endings from
4241         keyserver helpers.  Also don't leak the last line worth of memory
4242         from the keyserver response.
4244         * main.h, misc.c (deprecated_warning): New function to warn about
4245         deprecated options and commands.
4247         * g10.c (main), keyserver-internal.h, keyserver.c
4248         (parse_keyserver_uri): Use new deprecated function to warn about
4249         honor-http-proxy, auto-key-retrieve, and x-broken-hkp.
4251 2002-06-11  David Shaw  <dshaw@jabberwocky.com>
4253         * Makefile.am: link gpg with NETLIBS for the built-in HKP access.
4255 2002-06-10  David Shaw  <dshaw@jabberwocky.com>
4257         * options.h, keyserver.c (keyserver_opts), g10.c (main): New
4258         keyserver option "include-subkeys".  This feature already existed,
4259         but now can be turned off.  It defaults to on.
4261         * options.h, keyserver.c (parse_keyserver_options,
4262         keyserver_spawn): There are now enough options to justify making a
4263         structure for the keyserver options rather than a page of
4264         if-then-else-if-then-etc.
4266         * getkey.c (merge_keys_and_selfsig, merge_selfsigs_main): Fix bug
4267         in calculating key expiration dates.
4269 2002-06-09  David Shaw  <dshaw@jabberwocky.com>
4271         * keydb.h, getkey.c (get_user_id_native), import.c (import_one):
4272         Display user ID while importing a key.  Note this applies to both
4273         --import and keyserver --recv-keys.
4275         * exec.c (exec_finish): Log unnatural exit (core dump, killed
4276         manually, etc) for fork/exec/pipe child processes.
4278 2002-06-08  Timo Schulz  <ts@winpt.org>
4280         * encode.c (encode_symmetric): Disable the compat flag
4281         when the expert mode is enabled.
4282         
4283 2002-06-07  David Shaw  <dshaw@jabberwocky.com>
4285         * options.skel, options.h, main.h, keydb.h, pkclist.c
4286         (build_pk_list, expand_groups), g10.c (main, add_group): Add new
4287         "group" command to allow one name to expand into multiple keys.
4288         For simplicity, and to avoid potential loops, we only expand once
4289         - you can't make an alias that points to an alias.
4291         * main.h, g10.c (main), keygen.c (build_personal_digest_list):
4292         Simplify the default digest list - there is really no need for the
4293         other hashes since they will never be used after SHA-1 in the
4294         list.
4296         * options.skel, options.h, g10.c (main), hkp.c (hkp_ask_import,
4297         hkp_export, hkp_search), keyserver.c (parse_keyserver_options,
4298         parse_keyserver_uri, keyserver_work, keyserver_refresh): Make the
4299         "x-broken-hkp" keyserver scheme into keyserver-option
4300         "broken-http-proxy".  Move honor_http_proxy into
4301         keyserver_options.  Canonicalize the three variations of "hkp",
4302         "x-hkp", and "x-broken-hkp" into "hkp".
4304 2002-06-07  Stefan Bellon  <sbellon@sbellon.de>
4306         * g10.c [__riscos__]: Added --attribute-file to do the same as
4307         --attribute-fd, but with a filename not a fd as argument.
4308         Added magic symbol for RISC OS to use different memory management.
4310         * gpgv.c [__riscos__]: Added magic symbol for RISC OS to use
4311         different memory management.
4313 2002-06-06  David Shaw  <dshaw@jabberwocky.com>
4315         * main.h, g10.c (main), keygen.c (build_personal_digest_list): Put
4316         in a default digest preference list consisting of SHA-1, followed
4317         by every other installed digest except MD5.  Note this is the same
4318         as having no digest preference at all except for SHA-1 being
4319         favored.
4321         * options.h, g10.c (main), keygen.c (keygen_set_std_prefs),
4322         pkclist.c (select_algo_from_prefs): Split
4323         --personal-preference-list into three:
4324         --personal-{cipher|digest|compress}-preferences.  This allows a
4325         user to set one without affecting another (i.e. setting only a
4326         digest pref doesn't imply an empty cipher pref).
4328         * exec.c (exec_read): This is a safer way of guessing the return
4329         value of system().  Noted by Stefan Bellon.
4331 2002-06-05  David Shaw  <dshaw@jabberwocky.com>
4333         * hkp.c (parse_hkp_index): Be more robust with keyservers
4334         returning very unparseable responses.
4336         * exec.c (exec_read): Catch and display an error when the remote
4337         process exits unnaturally (i.e. segfault) so the user knows what
4338         happened.  Also fix exec_write stub which has a different number
4339         of arguments now.
4341 2002-06-05  Timo Schulz  <ts@winpt.org>
4343         * encode.c (encode_simple): Ignore the new mode for RFC1991.
4344         * mainproc.c (symkey_decrypt_sesskey): Better check for weird
4345         keysizes.
4346         
4347 2002-06-05  Timo Schulz  <ts@winpt.org>
4349         * encode.c (encode_sesskey): New.
4350         (encode_simple): Use it here. But by default we use the compat
4351         mode which supress to generate encrypted session keys.
4352         
4353 2002-06-05  Timo Schulz  <ts@winpt.org>
4355         * mainproc.c (symkey_decrypt_sesskey): New.
4356         (proc_symkey_enc): Support for encrypted session keys.
4357         
4358 2002-06-04  David Shaw  <dshaw@jabberwocky.com>
4360         * sign.c (hash_for, sign_file): When encrypting and signing at the
4361         same time, consult the various hash prefs to pick a hash algorithm
4362         to use.  Pass in a 160-bit hint if any of the signing keys are
4363         DSA.
4365         * keydb.h, pkclist.c (select_algo_from_prefs, algo_available):
4366         Pass a "hints" opaque pointer in to let the caller give hints as
4367         to what algorithms would be acceptable.  The only current hint is
4368         for PREFTYPE_HASH to require a 160-bit hash for DSA.  Change all
4369         callers in encode.c (encode_crypt, encrypt_filter) and sign.c
4370         (sign_file).  If we settle on MD5 as the best algorithm based
4371         solely on recepient keys and SHA1 is also a possibility, use SHA1
4372         unless the user intentionally chose MD5.  This is as per 2440:13.
4374         * exec.c (make_tempdir): Fix duplicated filename problem.
4376 2002-06-03  David Shaw  <dshaw@jabberwocky.com>
4378         * packet.h, parse-packet.c (enum_sig_subpkt): Report back from
4379         enum_sig_subpkt when a subpacket is critical and change all
4380         callers in keylist.c (show_policy_url, show_notation), mainproc.c
4381         (print_notation_data), and pkclist.c (do_show_revocation_reason).
4383         * keylist.c (show_policy_url, show_notation): Display if the
4384         policy or notation is critical.
4385         
4386 2002-06-03  David Shaw  <dshaw@jabberwocky.com>
4388         * main.h, g10.c (main), keylist.c (dump_attribs, set_attrib_fd,
4389         list_keyblock_print, list_keyblock_colon), status.h, status.c
4390         (get_status_string): New --attribute-fd feature to dump the
4391         contents of attribute subpackets for frontends.  If --status-fd is
4392         also used, then a new status tag ATTRIBUTE is provided for each
4393         subpacket.
4395         * packet.h, getkey.c (fixup_uidnode, merge_selfsigs_main,
4396         merge_selfsigs_subkey), parse-packet.c (setup_user_id): Keep track
4397         of the expiration time of a user ID, and while we're at it, use
4398         the expired flag from the selfsig rather than reparsing the
4399         SIG_EXPIRE subpacket.
4401         * photoid.c (generate_photo_id): When adding a new photo ID,
4402         showing the photo for confirmation is not safe when noninteractive
4403         since the "user" may not be able to dismiss a viewer window.
4404         Noted by Timo Schulz.
4405         
4406 2002-06-03  David Shaw  <dshaw@jabberwocky.com>
4408         * options.skel: Sample photo viewers for Win32.
4410         * misc.c (pct_expando): Use the seckey for %k/%K if the pubkey is
4411         not available.
4413         * photoid.h, photoid.c (show_photos): Include the seckey in case a
4414         user tries to view a photo on a secret key, and change all callers
4415         in keyedit.c (menu_showphoto), keylist.c (list_keyblock_print),
4416         and photoid.c (generate_photo_id).
4418 2002-06-02  David Shaw  <dshaw@jabberwocky.com>
4420         * photoid.c (show_photos): Work properly when not called with a
4421         public key.
4423 2002-05-31  David Shaw  <dshaw@jabberwocky.com>
4425         * sign.c (mk_notation_and_policy): Free unneeded buffer.
4427         * hkp.c (parse_hkp_index): Properly handle the '&' character
4428         (i.e. "&amp;") in HKP responses.
4430         * getkey.c (merge_selfsigs_main): Fix reversed expiration time
4431         check with self-sigs.
4433         * keyedit.c (sign_uids): When making a new self-sig on a v3 key,
4434         make a v3 self-sig unless it is currently a v3 self-sig being
4435         promoted to v4.
4437 2002-05-31  Timo Schulz  <ts@winpt.org>
4439         * pkclist.c (do_show_revocation_reason): Don't use capital
4440         letters for non-interactive output.
4441         (show_revocation_reason): Now it is global.
4442         * pubkey-enc.c (get_it): Show if the key has been revoked.
4443         
4444 2002-05-30  David Shaw  <dshaw@jabberwocky.com>
4446         * sign.c (write_signature_packets, sign_file, clearsign_file,
4447         sign_symencrypt_file): Make a v4 signature if a policy URL or
4448         notation is set, unless v3 sigs are forced via rfc1991 or
4449         force-v3-sigs.  Also remove some doubled code and clarify an error
4450         message (we don't sign in PGP2 mode - just detach-sign).
4452         * parse-packet.c (parse_one_sig_subpkt): Add KS_FLAGS to the "any
4453         size" section.
4455 2002-05-29  David Shaw  <dshaw@jabberwocky.com>
4457         * keygen.c (keygen_set_std_prefs, add_feature_mdc): Use "mdc" and
4458         "no-mdc" in the prefs string to allow switching on and off the MDC
4459         feature.  This is needed to properly export a key from GnuPG for
4460         use on PGP which does not support MDC - without this, MDC-capable
4461         implementations will still try and generate MDCs which will break
4462         PGP.
4464         * keygen.c (keygen_get_std_prefs): Show "[mdc]" in prefs string if
4465         it is enabled.
4467         * options.h, g10.c (main), cipher.c (write_header), keygen.c
4468         (keygen_set_std_prefs): For consistency, allow the user to specify
4469         mdc/no-mdc in the --personal-preference-list.  If disabled, it
4470         acts just like --disable-mdc.
4472 2002-05-29  David Shaw  <dshaw@jabberwocky.com>
4474         * options.h, exec.c: Add some debugging info, using the 1024 debug
4475         flag.
4477         * exec.c (win_system): New system()-like function for win32 that
4478         does not return until the child process terminates.  Of course,
4479         this doesn't help if the process itself exits before it is
4480         finished.
4482 2002-05-29  Werner Koch  <wk@gnupg.org>
4484         * encode.c (encode_simple): Intialize PKT when --no-literal is used.
4486         * keyedit.c (show_key_with_all_names_colon): Renamed the record
4487         for revocation keys to "rvk".
4489 2002-05-27  Werner Koch  <wk@gnupg.org>
4491         * keyedit.c (show_key_with_all_names_colon): New.
4492         (show_key_with_all_names): Divert to new function when required.
4493         Sanitize printing of revoker name.
4495 2002-05-27  David Shaw  <dshaw@jabberwocky.com>
4497         * build-packet.c (build_sig_subpkt): Handle setting sig flags for
4498         certain subpacket types (notation, policy url, exportable,
4499         revocable).  keyedit.c (sign_mk_attrib): Flags no longer need to
4500         be set here.
4502         * packet.h, parse-packet.c (parse_one_sig_subpkt), build-packet.c
4503         (build_sig_subpkt): Call parse_one_sig_subpkt to sanity check
4504         buffer lengths before building a sig subpacket.
4506 2002-05-26  David Shaw  <dshaw@jabberwocky.com>
4508         * sign.c (mk_notation_and_policy): Include secret key to enable %s
4509         expandos, and pass notations through pct_expando as well.
4511         * main.h, misc.c (pct_expando): Add %s and %S expandos for
4512         signer's keyid.
4514 2002-05-25  David Shaw  <dshaw@jabberwocky.com>
4516         * g10.c (strusage, build_list): Add compress algorithms to
4517         --version list.  Show algorithm numbers when --verbose --version
4518         is done.
4520 2002-05-22  David Shaw  <dshaw@jabberwocky.com>
4522         * options.h, main.h, keygen.c (keygen_set_set_prefs,
4523         keygen_get_std_prefs, keygen_upd_std_prefs), keyedit.c
4524         (keyedit_menu), g10.c (main), pkclist.c (select_algo_from_prefs):
4525         Add --personal-preference-list which allows the user to factor in
4526         their own preferred algorithms when the preference lists are
4527         consulted.  Obviously, this does not let the user violate a
4528         recepient's preferences (and the RFC) - this only influences the
4529         ranking of the agreed-on (and available) algorithms from the
4530         recepients.  Suggested by David Hollenberg.
4532         * options.h, keygen.c (keygen_set_std_prefs), g10.c (main): Rename
4533         --preference-list to --default-preference-list (as that is what it
4534         really is), and make it a true default in that if the user selects
4535         "default" they get this list and not the compiled-in list.
4537 2002-05-22  Werner Koch  <wk@gnupg.org>
4539         * g10.c (main): Add missing LF in a info printout and made it
4540         translatable.  Noted by Michael Tokarev.
4542 2002-05-21  Werner Koch  <wk@gnupg.org>
4544         * g10.c (main): Removed the undef of USE_SHM_COPROCESSING which
4545         was erroneously introduced on 2002-01-09.
4547         * signal.c (got_fatal_signal): Don't write the Nul to stderr.
4548         Reported by David Hollenberg.
4550 2002-05-18  David Shaw  <dshaw@jabberwocky.com>
4552         * main.h, g10.c (main), revoke.c (gen_desig_revoke): Generate a
4553         designated revocation via --desig-revoke
4555         * keyedit.c (keyedit_menu, menu_addrevoker): New "addrevoker"
4556         command to add a designated revoker to a key.
4558 2002-05-17  David Shaw  <dshaw@jabberwocky.com>
4560         * gpgv.c: Add stub for get_ownertrust().
4562         * g10.c (main): --allow-freeform-uid should be implied by
4563         OpenPGP.  Add --no-allow-freeform-uid.
4565         * keyedit.c (sign_uids): Issue a warning when signing a
4566         non-selfsigned uid.
4568         * getkey.c (merge_selfsigs_main): If a key has no selfsigs, and
4569         allow-non-selfsigned-uid is not set, still try and make the key
4570         valid by checking all uids for a signature from an ultimately
4571         trusted key.
4573 2002-05-16  David Shaw  <dshaw@jabberwocky.com>
4575         * main.h, keygen.c (keygen_add_revkey): Add revocation key
4576         subpackets to a signature (callable by
4577         make_keysig_packet). (write_direct_sig): Write a 1F direct key
4578         signature. (parse_revocation_key): Parse a string in
4579         algo:fpr:sensitive format into a revocation
4580         key. (get_parameter_revkey, do_generate_keypair): Call above
4581         functions when prompted from a batch key generation file.
4583         * build-packet.c (build_sig_subpkt): Allow multiple revocation key
4584         subpackets in a single sig.
4586         * keydb.h, getkey.c (get_seckey_byfprint): Same as
4587         get_pubkey_byfprint, except for secret keys.  We only know the
4588         fingerprint of a revocation key, so this is needed to retrieve the
4589         secret key needed to issue a revokation.
4591         * packet.h, parse-packet.c (parse_signature, parse_revkeys): Split
4592         revkey parsing off into a new function that can be used to reparse
4593         after manipulating the revkey list.
4595         * sign.c (make_keysig_packet): Ability to make 1F direct key
4596         signatures.
4598 2002-05-15  David Shaw  <dshaw@jabberwocky.com>
4600         * options.skel: keyserver.pgp.com is gone, so list pgp.surfnet.nl
4601         as a sample LDAP server instead.
4603         * getkey.c (merge_selfsigs_main): Properly handle multiple
4604         revocation keys in a single packet.  Properly handle revocation
4605         keys that are in out-of-order packets.  Remove duplicates in
4606         revocation key list.
4608 2002-05-14  Timo Schulz   <ts@winpt.org>
4610         * exec.c (make_tempdir) [MINGW32]: Added missing '\'.
4611         
4612 2002-05-14  Stefan Bellon  <sbellon@sbellon.de>
4614         * exec.c (make_tempdir): Make use of EXTSEP_S instead of hardcoded
4615         dot as extension separator.
4617 2002-05-13  David Shaw  <dshaw@jabberwocky.com>
4619         * photoid.c (show_photos): Use the long keyid as the filename for
4620         the photo.  Use the short keyid as the filename on 8.3 systems.
4622         * exec.h, exec.c (make_tempdir, exec_write, exec_finish): Allow
4623         caller to specify filename.  This should make things easier on
4624         windows and macs where the file extension is required, but a whole
4625         filename is even better.
4627         * keyedit.c (show_key_with_all_names, show_prefs): Show proper
4628         prefs for a v4 key uid with no selfsig at all.
4630         * misc.c (check_permissions): Don't check permissions on
4631         non-normal files (pipes, character devices, etc.)
4633 2002-05-11  Werner Koch  <wk@gnupg.org>
4635         * mainproc.c (proc_symkey_enc): Avoid segv in case the parser
4636         encountered an invalid packet.
4638         * keyserver.c (keyserver_export): Get confirmation before sending
4639         all keys.
4641 2002-05-10  Stefan Bellon  <sbellon@sbellon.de>
4643         * g10.c, hkp.c, keyedit.c, keyserver.c: Replaced all occurrances
4644         of strcasecmp with ascii_strcasecmp and all occurrances of
4645         strncasecmp with ascii_memcasecmp.
4647 2002-05-10  David Shaw  <dshaw@jabberwocky.com>
4649         * packet.h, getkey.c (fixup_uidnode), keyedit.c (show_prefs): Show
4650         assumed prefs for hash and compression as well as the cipher pref.
4651         Show assumed prefs if there are no prefs at all on a v4
4652         self-signed key.
4654         * options.h, g10.c (main), sign.c (make_keysig_packet): New
4655         --cert-digest-algo function to override the default key signing
4656         hash algorithm.
4658 2002-05-09  David Shaw  <dshaw@jabberwocky.com>
4660         * getkey.c (merge_selfsigs_main): Make sure the revocation key
4661         list starts clean as this function may be called more than once
4662         (e.g. from functions in --edit).
4664         * g10.c, encode.c (encode_crypt), sign.c (sign_file,
4665         sign_symencrypt_file): Make --compress-algo work like the
4666         documentation says.  It should be like --cipher-algo and
4667         --digest-algo in that it can override the preferences calculation
4668         and impose the setting the user wants.  No --compress-algo setting
4669         allows the usual preferences calculation to take place.
4671         * main.h, compress.c (compress_filter): use new
4672         DEFAULT_COMPRESS_ALGO define, and add a sanity check for compress
4673         algo value.
4675 2002-05-08  David Shaw  <dshaw@jabberwocky.com>
4677         * pkclist.c (select_algo_from_prefs): There is an assumed
4678         compression preference for uncompressed data.
4680 2002-05-07  David Shaw  <dshaw@jabberwocky.com>
4682         * options.h, g10.c (main), getkey.c (finish_lookup), pkclist.c
4683         (algo_available): --pgp7, identical to --pgp6 except that it
4684         permits a few algorithms that PGP 7 added: AES128, AES192, AES256,
4685         and TWOFISH.  Any more of these --pgpX flags, and it'll be time to
4686         start looking at a generic --emulate-pgp X option.
4688         * export.c (do_export_stream): Warn the user when exporting a
4689         secret key if it or any of its secret subkeys are protected with
4690         SHA1 while simple_sk_checksum is set.
4692         * parse-packet.c (parse_key): Show when the SHA1 protection is
4693         used in --list-packets.
4695         * options.h, build-packet.c (do_comment), g10.c (main): Rename
4696         --no-comment as --sk-comments/--no-sk-comments (--no-comment still
4697         works) and make the default be --no-sk-comments.
4699 2002-05-07  Werner Koch  <wk@gnupg.org>
4701         * keygen.c (get_parameter_algo): Never allow generation of the
4702         deprecated RSA-E or RSA-S flavors of PGP RSA.
4703         (ask_algo): Allow generation of RSA sign and encrypt in expert
4704         mode.  Don't allow ElGamal S+E unless in expert mode.
4705         * helptext.c: Added entry keygen.algo.rsa_se.
4707 2002-05-07  David Shaw  <dshaw@jabberwocky.com>
4709         * keyedit.c (sign_uids): If --expert is set, allow re-signing a
4710         uid to promote a v3 self-sig to a v4 one.  This essentially
4711         deletes the old v3 self-sig and replaces it with a v4 one.
4713         * packet.h, parse-packet.c (parse_key), getkey.c
4714         (merge_keys_and_selfsig, merge_selfsigs_main): a v3 key with a v4
4715         self-sig must never let the v4 self-sig express a key expiration
4716         time that extends beyond the original v3 expiration time.
4718 2002-05-06  David Shaw  <dshaw@jabberwocky.com>
4720         * keyedit.c (sign_uids): When making a self-signature via "sign"
4721         don't ask about sig level or expiration, and include the usual
4722         preferences and such for v4 self-sigs.  (menu_set_preferences):
4723         Convert uids from UTF8 to native before printing.
4725         * keyedit.c (sign_uids): Convert uids from UTF8 to native before
4726         printing.  (menu_set_primary_uid): Show error if the user tries to
4727         make a uid with a v3 self-sig primary.
4729 2002-05-05  David Shaw  <dshaw@jabberwocky.com>
4731         * import.c (import_one): When merging with a key we already have,
4732         don't let a key conflict (same keyid but different key) stop the
4733         import: just skip the bad key and continue.
4735         * exec.c (make_tempdir): Under Win32, don't try environment
4736         variables for temp directories - GetTempDir tries environment
4737         variables internally, and it's better not to second-guess it in
4738         case MS adds some sort of temp dir handling to Windows at some
4739         point.
4741 2002-05-05  Timo Schulz  <ts@winpt.org>
4743         * mainproc.c (proc_symkey_enc): Don't ask for a passphrase
4744         in the list only mode.
4745         
4746 2002-05-05  David Shaw  <dshaw@jabberwocky.com>
4748         * keyserver.c (keyserver_refresh): --refresh-keys implies
4749         --merge-only so as not to import keys with keyids that match the
4750         ones being refreshed.  Noted by Florian Weimer.
4752 2002-05-04  Stefan Bellon  <sbellon@sbellon.de>
4754         * free-packet.c (copy_public_key): Don't call m_alloc(0), therefore
4755         added consistency check for revkey and numrefkeys.
4757         * getkey.c (check_revocation_keys): Added consistency check for
4758         revkey and numrefkeys.
4760         * keyedit.c (show_key_with_all_names): Likewise.
4762 2002-05-03  David Shaw  <dshaw@jabberwocky.com>
4764         * photoid.c: Provide default image viewer for Win32.
4766         * misc.c (pct_expando): %t means extension, not name ("jpg", not
4767         "jpeg").
4769         * keyserver.c (keyserver_spawn), photoid.c (show_photos), exec.h,
4770         exec.c: Allow the caller to determine the temp file extension when
4771         starting an exec_write and change all callers.
4773         * keyedit.c (sign_uids): Nonrevocable key signatures cause an
4774         automatic promotion to v4.
4776         * exec.c: Provide stubs for exec_ functions when NO_EXEC is
4777         defined.
4779 2002-05-02  David Shaw  <dshaw@jabberwocky.com>
4781         * photoid.h, photoid.c (parse_image_header, image_type_to_string):
4782         Useful functions to return data about an image.
4784         * packet.h, parse-packet.c (make_attribute_uidname,
4785         parse_attribute_subpkts, parse_attribute), photoid.h, photoid.c
4786         (show_photos): Handle multiple images in a single attribute
4787         packet.
4789         * main.h, misc.c (pct_expando), sign.c (mk_notation_and_policy),
4790         photoid.c (show_photos): Simpler expando code that does not
4791         require using compile-time string sizes.  Call
4792         image_type_to_string to get image strings (i.e. "jpg",
4793         "image/jpeg").  Change all callers.
4795         * keyedit.c (menu_showphoto), keylist.c (list_keyblock_print):
4796         Allow viewing multiple images within a single attribute packet.
4798         * gpgv.c: Various stubs for link happiness.
4800 2002-05-02  David Shaw  <dshaw@jabberwocky.com>
4802         * build-packet.c (build_sig_subpkt), keyedit.c (sign_uids),
4803         options.h, sign.c (mk_notation_and_policy), g10.c (main,
4804         add_notation_data, add_policy_url (new), check_policy_url
4805         (removed)): Allow multiple policy URLs on a given signature.
4806         Split "--notation-data" into "--cert-notation" and
4807         "--sig-notation" so the user can set different policies for key
4808         and data signing.  For backwards compatibility, "--notation-data"
4809         sets both, as before.
4811 2002-05-02  Werner Koch  <wk@gnupg.org>
4813         * options.skel: Removed the comment on trusted-keys because this
4814         option is now deprecated.
4816 2002-05-01  David Shaw  <dshaw@jabberwocky.com>
4818         * keyedit.c (menu_adduid): 2440bis04 says that multiple attribute
4819         packets on a given key are legal.
4821         * keyserver.c (keyserver_refresh): the fake v3 keyid hack applies
4822         to "mailto" URLs as well since they are also served by pksd.
4824 2002-04-29  Werner Koch  <wk@gnupg.org>
4826         Added a copyright year for files changed this year.
4828 2002-04-25  Werner Koch  <wk@gnupg.org>
4830         * g10.c, options.h: New options --display, --ttyname, --ttytype,
4831         --lc-ctype, --lc-messages to be used with future versions of the
4832         gpg-agent. 
4833         * passphrase.c (agent_send_option,agent_send_all_options): New.
4834         (agent_open): Send options to the agent.
4836         * trustdb.c (update_ownertrust, clear_ownertrust): Do an explicit
4837         do_sync because revalidation_mark does it only if when the
4838         timestamp actually changes.
4840 2002-04-23  David Shaw  <dshaw@jabberwocky.com>
4842         * main.h, keygen.c (do_generate_keypair), keylist.c
4843         (print_signature_stats, list_all, list_one, list_keyblock,
4844         list_keyblock_print, list_keyblock_colon): After generating a new
4845         key, show the key information (name, keyid, fingerprint, etc.)
4846         Also do not print uncheckable signatures (missing key..) in
4847         --check-sigs.  Print statistics (N missing keys, etc.) after
4848         --check-sigs.
4850         * keyedit.c (sign_uids): When signing a key with an expiration
4851         date on it, the "Do you want your signature to expire at the same
4852         time?" question should default to YES.
4854 2002-04-22  David Shaw  <dshaw@jabberwocky.com>
4856         * parse-packet.c (parse_plaintext), packet.h, plaintext.c
4857         (handle_plaintext): Fix bug in handling literal packets with
4858         zero-length data (no data was being confused with partial body
4859         length).
4861         * misc.c (pct_expando), options.skel: %t means extension ("jpg").
4862         %T means MIME type ("image/jpeg").
4864         * import.c (import_one): Only trigger trust update if the keyring
4865         is actually changed.
4867         * export.c (do_export_stream): Missing a m_free.
4869 2002-04-22  Stefan Bellon  <sbellon@sbellon.de>
4871         * keyid.c (expirestr_from_sk, expirestr_from_sig): Added _() to
4872         string constant.
4874         * exec.c (make_tempdir) [__riscos__]: Better placement of
4875         temporary file.
4877 2002-04-20  David Shaw  <dshaw@jabberwocky.com>
4879         * keygen.c (generate_subkeypair): 2440bis04 adds that creating
4880         subkeys on v3 keys is a MUST NOT.
4882         * getkey.c (finish_lookup): The --pgp6 "use the primary key"
4883         behavior should only apply while data signing and not encryption.
4884         Noted by Roger Sondermann.
4886 2002-04-19  Werner Koch  <wk@gnupg.org>
4888         * keygen.c (keygen_set_std_prefs): Put back 3DES because the RFC
4889         says it is good form to do so.
4891 2002-04-19  David Shaw  <dshaw@jabberwocky.com>
4893         * keyedit.c (menu_deluid): Only cause a trust update if we delete
4894         a non-revoked user id.
4896         * hkp.c (hkp_ask_import), keyserver.c (parse_keyserver_options,
4897         keyserver_spawn), options.h: Remove fast-import keyserver option
4898         (no longer meaningful).
4900         * g10.c (main), keyedit.c (sign_uids), options.h: Change
4901         --default-check-level to --default-cert-check-level as it makes
4902         clear what it operates on.
4904         * g10.c (main): --pgp6 also implies --no-ask-sig-expire.
4906         * delkey.c (do_delete_key): Comment.
4908         * keyedit.c (sign_uids, keyedit_menu, menu_deluid, menu_delsig,
4909         menu_expire, menu_revsig, menu_revkey): Only force a trustdb check
4910         if we did something that changes it.
4912         * g10.c: add "--auto-check-trustdb" to override a
4913         "--no-auto-check-trustdb"
4915 2002-04-19  Werner Koch  <wk@gnupg.org>
4917         * tdbio.c (tdbio_write_nextcheck): Return a status whether the
4918         stamp was actually changed.
4919         * trustdb.c (revalidation_mark): Sync the changes.  Removed the
4920         sync operation done by its callers.
4921         (get_validity): Add logic for maintaining a pending_check flag.
4922         (clear_ownertrust): New.
4923         
4924         * keyedit.c (sign_uids): Don't call revalidation_mark depending on
4925         primary_pk.
4926         (keyedit_menu): Call revalidation_mark after "trust".
4927         (show_key_with_all_names): Print a warning on the wrong listed key
4928         validity.
4930         * delkey.c (do_delete_key): Clear the owenertrust information when
4931         deleting a public key.
4932         
4933 2002-04-18  Werner Koch  <wk@gnupg.org>
4935         * seskey.c (encode_md_value): Print an error message if a wrong
4936         digest algorithm is used with DSA.  Changed all callers to cope
4937         with a NULL return.  Problem noted by Imad R. Faiad.
4939 2002-04-18  David Shaw  <dshaw@jabberwocky.com>
4941         * trustdb.c (mark_usable_uid_certs): Properly handle nonrevocable
4942         signatures that can expire.  In short, the only thing that can
4943         override an unexpired nonrevocable signature is another unexpired
4944         nonrevocable signature.
4946         * getkey.c (finish_lookup): Always use primary signing key for
4947         signatures when --pgp6 is on since pgp6 and 7 do not understand
4948         signatures made by signing subkeys.
4950 2002-04-18  Werner Koch  <wk@gnupg.org>
4952         * trustdb.c (validate_keys): Never schedule a nextcheck into the
4953         past.
4954         (validate_key_list): New arg curtime use it to set next_expire.
4955         (validate_one_keyblock): Take the current time from the caller.
4956         (clear_validity, reset_unconnected_keys): New.
4957         (validate_keys): Reset all unconnected keys.
4959         * getkey.c (premerge_public_with_secret): Fixed 0x12345678! syntax
4960         for use with secret keys.
4961         (lookup): Advance the searchmode after a search FIRST.
4963         * seckey-cert.c (do_check): Always calculate the old checksum for
4964         use after unprotection.
4966         * g10.c, options.skel: New option --no-escape-from.  Made
4967         --escape-from and --force-v3-sigs the default and removed them
4968         from the options skeleton.
4970 2002-04-16  Werner Koch  <wk@gnupg.org>
4972         * parse-packet.c (parse_key): Support a SHA1 checksum as per
4973         draft-rfc2440-bis04.
4974         * packet.h (PKT_secret_key): Add field sha1chk.
4975         * seckey-cert.c (do_check): Check the SHA1 checksum
4976         (protect_secret_key): And create it.
4977         * build-packet.c (do_secret_key): Mark it as sha-1 protected.
4978         * g10.c, options.h: New option --simple-sk-checksum.
4980 2002-04-13  David Shaw  <dshaw@jabberwocky.com>
4982         * parse-packet.c (parse_signature): Minor fix - signatures should
4983         expire at their expiration time and not one second later.
4985         * keygen.c (proc_parameter_file): Allow specifying preferences
4986         string (i.e. "s5 s2 z1 z2", etc) in a batchmode key generation
4987         file.
4989         * keyedit.c (keyedit_menu): Print standard error message when
4990         signing a revoked key (no new translation).
4992         * getkey.c (merge_selfsigs): Get the default set of key prefs from
4993         the real (not attribute) primary uid.
4995 2002-04-12  David Shaw  <dshaw@jabberwocky.com>
4997         * pkclist.c (build_pk_list): Fix bug that allowed a key to be
4998         selected twice in batch mode if one instance was the default
4999         recipient and the other was an encrypt-to.  Noted by Stefan
5000         Bellon.
5002         * parse-packet.c (dump_sig_subpkt): Show data in trust and regexp
5003         sig subpackets.
5005         * keyedit.c (keyedit_menu): Use new function real_uids_left to
5006         prevent deleting the last real (i.e. non-attribute) uid.  Again,
5007         according to the attribute draft. (menu_showphoto): Make another
5008         string translatable.
5010 2002-04-11  David Shaw  <dshaw@jabberwocky.com>
5012         * build-packet.c (build_sig_subpkt): Delete subpackets from both
5013         hashed and unhashed area on update.  (find_subpkt): No longer
5014         needed.
5016         * keyedit.c (sign_uids): With --pgp2 on, refuse to sign a v3 key
5017         with a v4 signature.  As usual, --expert overrides.  Try to tweak
5018         some strings to a closer match so they can all be translated in
5019         one place.  Use different helptext keys to allow different help
5020         text for different questions.
5022         * keygen.c (keygen_upd_std_prefs): Remove preferences from both
5023         hashed and unhashed areas if they are not going to be used.
5025 2002-04-10  David Shaw  <dshaw@jabberwocky.com>
5027         * misc.c (pct_expando), options.skel: Use %t to indicate type of a
5028         photo ID (in this version, it's always "jpeg").  Also tweak string
5029         expansion loop to minimize reallocs.
5031         * mainproc.c (do_check_sig): Variable type fix.
5033         * keyedit.c (menu_set_primary_uid): Differentiate between true
5034         user IDs and attribute user IDs when making one of them primary.
5035         That is, if we are making a user ID primary, we alter user IDs.
5036         If we are making an attribute packet primary, we alter attribute
5037         packets.  This matches the language in the latest attribute packet
5038         draft.
5040         * keyedit.c (sign_uids): No need for the empty string hack.
5042         * getkey.c (fixup_uidnode): Only accept preferences from the
5043         hashed segment of the self-sig.
5045 2002-04-10  Werner Koch  <wk@gnupg.org>
5047         * tdbio.c (migrate_from_v2): Fixed the offset to read the old
5048         ownertrust value and only add entries to the table if we really
5049         have a value.
5051 2002-04-08  David Shaw  <dshaw@jabberwocky.com>
5053         * status.h, status.c (get_status_string): Add KEYEXPIRED, EXPSIG,
5054         and EXPKEYSIG.  Add "deprecated-use-keyexpired-instead" to
5055         SIGEXPIRED.
5057         * sig-check.c (do_check): Start transition from SIGEXPIRED to
5058         KEYEXPIRED, since the actual event is signature verification by an
5059         expired key and not an expired signature. (do_signature_check,
5060         packet.h): Rename as signature_check2, make public, and change all
5061         callers.
5063         * mainproc.c (check_sig_and_print, do_check_sig): Use status
5064         EXPSIG for an expired, but good, signature.  Add the expiration
5065         time (or 0) to the VALIDSIG status line.  Use status KEYEXPSIG for
5066         a good signature from an expired key.
5068         * g10.c (main): remove checks for no arguments now that argparse
5069         does it.
5071 2002-04-06  Werner Koch  <wk@gnupg.org>
5073         * keyring.c (keyring_get_keyblock): Disable the keylist mode here.
5075         * encode.c (encode_simple, encode_crypt): Only test on compressed
5076         files if a compress level was not explicity set.
5078         * keygen.c (keygen_set_std_prefs): Removed Blowfish and Twofish
5079         from the list of default preferences, swapped the preferences of
5080         RMD160 and SHA1.  Don't include a preference to 3DES unless the
5081         IDEA kludge gets used.
5083         * free-packet.c (free_packet): call free_encrypted also for
5084         PKT_ENCRYPTED_MDC.
5086         * compress.c (release_context): New.
5087         (handle_compressed): Allocate the context and setup a closure to
5088         release the context.  This is required because there is no
5089         guarantee that the filter gets popped from the chain at the end
5090         of the function.  Problem noted by Timo and probably also the
5091         cause for a couple of other reports.
5092         (compress_filter): Use the release function if set.
5094         * tdbio.c [__CYGWIN32__]: Don't rename ftruncate.  Noted by
5095         Disastry.
5097         * parse-packet.c (parse_signature): Put parens around a bit test.
5099         * exec.c (make_tempdir): Double backslash for TMP directory
5100         creation under Windows.  Better strlen the DIRSEP_S constants for
5101         allocation measurements.
5103         * decrypt.c (decrypt_messages): Release the passphrase aquired
5104         by get_last_passphrase.
5106 2002-04-02  Werner Koch  <wk@gnupg.org>
5108         * Makefile.am (EXTRA_DIST): Removed OPTIONS an pubring.asc - they
5109         are no longer of any use. 
5111 2002-04-03  David Shaw  <dshaw@jabberwocky.com>
5113         * keyserver.c (parse_keyserver_options): fix auto-key-retrieve to
5114         actually work as a keyserver-option (noted by Roger Sondermann).
5116         * keylist.c (reorder_keyblock): do not reorder the primary
5117         attribute packet - the first user ID must be a genuine one.
5119 2002-03-31  David Shaw  <dshaw@jabberwocky.com>
5121         * keylist.c (list_keyblock_colon): Fix ownertrust display with
5122         --with-colons.
5124         * keygen.c (generate_user_id), photoid.c (generate_photo_id):
5125         Properly initialize the user ID refcount.  A few more "y/n" ->
5126         "y/N" in photoid.c.
5128         * keyedit.c (ask_revoke_sig): Warn the user if they are about to
5129         revoke an expired sig (not a problem, but they should know).  Also
5130         tweak a few prompts to change "y/n" to "y/N", which is how most
5131         other prompts are written.
5133         * keyserver.c (keyserver_search_prompt): Control-d escapes the
5134         keyserver search prompt.
5136         * pkclist.c (show_revocation_reason & callers): If a subkey is
5137         considered revoked solely because the parent key is revoked, print
5138         the revocation reason from the parent key.
5140         * trustdb.c (get_validity): Allow revocation/expiration to apply
5141         to a uid/key with no entry in the trustdb.
5143 2002-03-29  David Shaw  <dshaw@jabberwocky.com>
5145         * keyserver.c (printunquoted): unquote backslashes from keyserver
5146         searches
5148         * hkp.c (write_quoted): quote backslashes from keyserver searches
5150 2002-03-26  Werner Koch  <wk@gnupg.org>
5152         * keygen.c (ask_keysize): Removed the warning for key sizes > 1536.
5154 2002-03-25  Werner Koch  <wk@gnupg.org>
5156         * keyedit.c (sign_uids): Use 2 strings and not a %s so that
5157         translations can be done the right way.
5158         * helptext.c: Fixed small typo.
5160 2002-03-23  David Shaw  <dshaw@jabberwocky.com>
5162         * import.c (append_uid, merge_sigs): it is okay to import
5163         completely non-signed uids now (with --allow-non-selfsigned-uid).
5165         * getkey.c (get_primary_uid, merge_selfsigs_main): do not choose
5166         an attribute packet (i.e. photo) as primary uid.  This prevents
5167         oddities like "Good signature from [image of size 2671]".  This is
5168         still not perfect (one can still select an attribute packet as
5169         primary in --edit), but is closer to the way the draft is going.
5171         * g10.c (build_list): algorithms should include 110.
5173         * g10.c (main): --pgp2 implies --no-ask-sig-expire and
5174         --no-ask-cert-expire as those would cause a v4 sig/cert.
5176         * armor.c (is_armor_header): be more lenient in what constitutes a
5177         valid armor header (i.e. -----BEGIN blah blah-----) as some
5178         Windows programs seem to add spaces at the end.  --openpgp makes
5179         it strict again.
5181 2002-03-18  David Shaw  <dshaw@jabberwocky.com>
5183         * keyserver.c (keyserver_search_prompt): Properly handle a "no
5184         keys found" case from the internal HKP code (external HKP is ok).
5185         Also, make a COUNT -1 (i.e. streamed) keyserver response a little
5186         more efficient.
5188         * g10.c (main): Add --no-allow-non-selfsigned-uid
5190 2002-03-17  David Shaw  <dshaw@jabberwocky.com>
5192         * g10.c (main): --openpgp implies --allow-non-selfsigned-uid.
5194         * getkey.c (merge_selfsigs_main): If none of the uids are primary
5195         (because none are valid) then pick the first to be primary (but
5196         still invalid).  This is for cosmetics in case some display needs
5197         to print a user ID from a non-selfsigned key.  Also use
5198         --allow-non-selfsigned-uid to make such a key valid and not
5199         --always-trust.  The key is *not* automatically trusted via
5200         --allow-non-selfsigned-uid.
5202         * mainproc.c (check_sig_and_print): Make sure non-selfsigned uids
5203         print [uncertain] on verification even though one is primary now.
5205         * getkey.c (merge_selfsigs): If the main key is not valid, then
5206         neither are the subkeys.
5208         * import.c (import_one): Allow --allow-non-selfsigned-uid to work
5209         on completely unsigned keys.  Print the uids in UTF8.  Remove
5210         mark_non_selfsigned_uids_valid().
5212         * keyedit.c (show_key_with_all_names): Show revocation key as
5213         UTF8.
5215         * sign.c (clearsign_file): Allow --not-dash-escaped to work with
5216         v3 keys.
5218 2002-03-14  Werner Koch  <wk@gnupg.org>
5220         * main.h: Changed the default algorithms to CAST5 and SHA1.
5222 2002-03-13  David Shaw  <dshaw@jabberwocky.com>
5224         * import.c (chk_self_sigs): Show which user ID a bad self-sig
5225         (invald sig or unsupported public key algorithm) resides on.
5227         * import.c (chk_self_sigs): any valid self-sig should mark a user
5228         ID or subkey as valid - otherwise, an attacker could DoS the user
5229         by inventing a bogus invalid self-signature.
5231 2002-03-07  David Shaw  <dshaw@jabberwocky.com>
5233         * g10.c (main): make a few more strings translatable.
5235         * options.h, options.skel, g10.c (main), gpgv.c, mainproc.c
5236         (check_sig_and_print), keyserver.c (parse_keyserver_options):
5237         --auto-key-retrieve should really be a keyserver-option variable.
5239         * import.c (revocation_present): new function to print a warning
5240         if a key is imported that has been revoked by designated revoker,
5241         but the designated revoker is not present to verify the
5242         revocation.  If keyserver-options auto-key-retrieve is set, try
5243         and fetch the designated revoker from the keyserver.
5245         * import.c (import_one): call revocation_present after importing a
5246         new key.  Note that this applies to --import, --recv-keys, and
5247         --search-keys.
5248         
5249         * keyserver-internal.h, keyserver.c (keyserver_import_fprint):
5250         import via fingerprint (for revocation keys).
5252         * keyserver.c (keyserver_import_keyid): much simpler
5253         implementation now that we're using KEYDB_SEARCH_DESC internally.
5255 2002-03-04  David Shaw  <dshaw@jabberwocky.com>
5257         * revoke.c (gen_revoke): do not prompt for revocation reason for
5258         v3 revocations (unless force-v4-certs is on) since they wouldn't
5259         be used anyway.
5261         * keyedit.c (menu_revsig): show the status of the sigs
5262         (exportable? revocable?) to the user before prompting for which
5263         sig to revoke.  Also, make sure that local signatures get local
5264         revocations.
5266         * keyedit.c (ask_revoke_sig): remind the user which sigs are
5267         local.
5269         * g10.c (main): Add "exec-path" variable to override PATH for
5270         execing programs.
5272         * export.c (do_export_stream): properly check return code from
5273         classify_user_id to catch unclassifiable keys.
5275 2002-03-03  David Shaw  <dshaw@jabberwocky.com>
5277         * parse-packet.c (parse_signature): variable type tweak for RISC
5278         OS (from Stefan)
5280 2002-02-28  David Shaw  <dshaw@jabberwocky.com>
5282         * getkey.c (check_revocation_keys): New function to check a
5283         revocation against a list of potential revocation keys.  Note the
5284         loop-breaking code here.  This is to prevent blowing up if A is
5285         B's revocation key, while B is also A's.  Note also that this is
5286         written so that a revoked revoker can still issue revocations:
5287         i.e. If A revokes B, but A is revoked, B is still revoked.  I'm
5288         not completely convinced this is the proper behavior, but it
5289         matches how PGP does it.  It does at least have the advantage of
5290         much simpler code - my first version of this had lots of loop
5291         maintaining code so you could chain revokers many levels deep and
5292         if D was revoked, C was not, which meant that B was, and so on.
5293         It was sort of scary, actually.
5295         * getkey.c (merge_selfsigs_main): Add any revocation keys onto the
5296         pk.  This is particularly interesting since we normally only get
5297         data from the most recent 1F signature, but you need multiple 1F
5298         sigs to properly handle revocation keys (PGP does it this way, and
5299         a revocation key could be marked "sensitive" and hence in a
5300         different signature).  Also, if a pk has a revocation key set,
5301         check for revocation sigs that were not made by us - if made by a
5302         valid revocation key, mark the pk revoked.
5304         * packet.h, getkey.c (cache_public_key): do not cache key if
5305         "dont_cache" is set.  This allows the revocation key code to look
5306         up a key and return information that may be inaccurate to prevent
5307         loops without caching the fake data.
5309         * packet.h, sig-check.c (do_signature_check): Record if a
5310         signature was made by a revoked pk.
5312         * packet.h, parse-packet.c (parse_one_sig_subpkt,
5313         can_handle_critical, parse_signature): Get revocation key
5314         information out of direct sigs.
5315         
5316         * keylist.c (list_keyblock_print): don't assume that the presence
5317         of a 0x20 signature means the key is revoked.  With revocation
5318         keys, this may not be true if the revocation key is not around to
5319         verify it or if verification failed.  Also, 0x1F should get listed
5320         as "sig", and not "unexpected signature class".
5322         * keyedit.c (show_key_with_all_names): Add a flag for printing
5323         revoker information and change all callers.
5325         * import.c (merge_blocks): merge in any new direct key (0x1F)
5326         sigs.
5328         * import.c (import_revoke_cert): don't keep processing after a
5329         revocation is rejected.
5330         
5331         * import.c (delete_inv_parts): Allow importing a revocation
5332         signature even if it was not issued by the key.  This allows a
5333         revocation key to issue it.  Of course, the sig still needs to be
5334         checked before we trust it.
5336         * free-packet.c (copy_public_key): Include a new copy of the
5337         revocation keys when duping a pk.
5339         * free-packet.c (free_seckey_enc, release_public_key_parts): Free
5340         any revocation keys that are attached to a sig or pk.
5342         * export.c (do_export_stream): Do not export signatures with
5343         "sensitive" revocation keys in them.
5345 2002-02-27  David Shaw  <dshaw@jabberwocky.com>
5347         * export.c (do_export_stream): Do not include v3 keys in a
5348         --export-secret-subkeys export.
5350         * getkey.c (merge_selfsigs_main): If a key isn't valid (say,
5351         because of no self-signature), allow --always-trust to force it
5352         valid so it can be trusted.
5354 2002-02-25  David Shaw  <dshaw@jabberwocky.com>
5356         * hkp.c (hkp_ask_import), hkp.h, keyserver.c (all): treat key
5357         lists internally as fingerprints when possible.  All this is via
5358         KEYDB_SEARCH_DESC - no point in reinventing the wheel. This allows
5359         the helper program to search the keyserver by fingerprint if
5360         desired (and the keyserver supports it).  Note that automatic
5361         fingerprint promotion during refresh only applies to v4 keys as a
5362         v4 fingerprint can be easily changed into a long or short key id,
5363         and a v3 cannot.
5365         * pubkey-enc.c, getkey.c, misc.c, main.h: Take two copies of
5366         hextobyte() from pubkey-enc.c and getkey.c and make them into one
5367         copy in misc.c.
5369 2002-02-22  David Shaw  <dshaw@jabberwocky.com>
5371         * keyserver.c (keyserver_search_prompt): Detect a "no keys found"
5372         case even if the helper program does not explicitly say how many
5373         keys were found.
5375         * hkp.c (parse_hkp_index): Bug fix - don't report non-revoked keys
5376         as revoked in HKP key searches.
5378 2002-02-19  Werner Koch  <wk@gnupg.org>
5380         * parse-packet.c (parse_trust): Made parsing more robust.
5382 2002-02-19  David Shaw  <dshaw@jabberwocky.com>
5384         * hkp.c (parse_hkp_index): Catch corruption in HKP index lines
5385         (can be caused by broken or malicious keyservers).
5387         * keyserver.c (keyserver_work): Add KEYSERVER_NOT_SUPPORTED for
5388         unsupported actions (say, a keyserver that has no way to search,
5389         or a readonly keyserver that has no way to add).  Also add a
5390         USE_EXTERNAL_HKP define to disable the internal HKP keyserver
5391         code.
5393 2002-02-14  Werner Koch  <wk@gnupg.org>
5395         * g10.c: New option --no-use-agent. 
5397         * pkclist.c (check_signatures_trust): Always print the warning for
5398         unknown and undefined trust.  Removed the did_add cruft.  Reported
5399         by Janusz A. Urbanowicz.
5401 2002-02-11  David Shaw  <dshaw@jabberwocky.com>
5403         * hkp.c (parse_hkp_index): Bug fix - properly handle user IDs with
5404         colons (":") in them while HKP searching.
5406 2002-02-09  David Shaw  <dshaw@jabberwocky.com>
5408         * misc.c (pct_expando): More comments.
5410         * keydb.h, sign.c (mk_notation_and_policy): Clarify what is a sig
5411         and what is a cert.  A sig has sigclass 0x00, 0x01, 0x02, or 0x40,
5412         and everything else is a cert.
5414         * g10.c (main), keyedit.c (keyedit_menu): Add a "nrlsign" for
5415         nonrevocable and local key signatures.
5417         * g10.c (main): Add a --no-force-mdc to undo --force-mdc.
5419         * options.h, g10.c (main), cipher.c (write_header): Add a knob to
5420         --disable-mdc/--no-disable-mdc.  Off by default, of course, but is
5421         used in --pgp2 and --pgp6 modes.
5422         
5423         * pkclist.c (build_pk_list): Allow specifying multiple users in
5424         the "Enter the user ID" loop.  Enter a blank line to stop.  Show
5425         each key+id as it is added.
5427         * keylist.c (show_policy_url), mainproc.c (print_notation_data):
5428         It is not illegal (though possibly silly) to have multiple policy
5429         URLs in a given signature, so print all that are present.
5430         
5431         * hkp.c (hkp_search): More efficient implementation of URL-ifying
5432         code.
5434 2002-02-04  David Shaw  <dshaw@jabberwocky.com>
5436         * main.h, misc.c (pct_expando): New function to generalize
5437         %-expando processing in any arbitrary string.
5439         * photoid.c (show_photo): Call the new pct_expando function rather
5440         than expand strings internally.
5441         
5442         * sign.c (mk_notation_and_policy): Show policy URLs and notations
5443         when making a signature if show-policy/show-notation is on.
5444         %-expand policy URLs during generation.  This lets the user have
5445         policy URLs of the form "http://notary.jabberwocky.com/keysign/%K"
5446         which will generate a per-signature policy URL.
5448         * main.h, keylist.c (show_policy_url, show_notation): Add amount
5449         to indent so the same function can be used in key listings as well
5450         as during sig generation.  Change all callers.
5452 2002-02-04  David Shaw  <dshaw@jabberwocky.com>
5454         * keyserver.c, options.h (parse_keyserver_options, keyidlist):
5455         Workaround for the pksd and OKS keyserver bug that calculates v4
5456         RSA keyids as if they were v3.  The workaround/hack is to fetch
5457         both the v4 (e.g. 99242560) and v3 (e.g. 68FDDBC7) keyids.  This
5458         only happens for key refresh while using the HKP scheme and the
5459         refresh-add-fake-v3-keyids keyserver option must be set.  This
5460         should stay off by default.
5462 2002-02-03  David Shaw  <dshaw@jabberwocky.com>
5464         * keyserver.c (keyserver_spawn): Bug fix - do not append keys to
5465         each other when --sending more than one.
5467 2002-02-02  David Shaw  <dshaw@jabberwocky.com>
5469         * options.h, g10.c (main), keyedit.c (sign_uids), sign.c
5470         (mk_notation_and_policy): Split "--set-policy-url" into
5471         "--cert-policy-url" and "--sig-policy-url" so the user can set
5472         different policies for key and data signing.  For backwards
5473         compatibility, "--set-policy-url" sets both, as before.
5475 2002-01-30  Werner Koch  <wk@gnupg.org>
5477         * g10.c (main): --gen-random --armor does now output a base64
5478         encoded string.
5480 2002-01-28  David Shaw  <dshaw@jabberwocky.com>
5482         * g10.c (main), options.h, pkclist.c (algo_available): --pgp6
5483         flag.  This is not nearly as involved as --pgp2.  In short, it
5484         turns off force_mdc, turns on no_comment, escape_from, and
5485         force_v3_sigs, and sets compression to 1.  It also restricts the
5486         user to IDEA (if present), 3DES, CAST5, MD5, SHA1, and RIPEMD160.
5487         See the comments above algo_available() for lots of discussion on
5488         why you would want to do this.
5490 2002-01-27  David Shaw  <dshaw@jabberwocky.com>
5492         * keygen.c (keygen_set_std_prefs): Comment
5494         * keyedit.c (sign_uids): Bug fix - when signing with multiple
5495         secret keys at the same time, make sure each key gets the sigclass
5496         prompt.
5498         * exec.c (exec_finish): Close the iobuf and FILE before trying to
5499         waitpid, so the remote process will get a SIGPIPE and exit.  This
5500         is only a factor when using a pipe to communicate.
5502         * exec.c (exec_write): Disable cache-on-close of the fd iobuf (is
5503         this right?  Why is a fd iobuf cached at all?)
5505 2002-01-26  Werner Koch  <wk@gnupg.org>
5507         * g10.c, options.h: New option --gpg-agent-info
5508         * passphrase.c (agent_open): Let it override the environment info.
5509         * seckey-cert.c (check_secret_key): Always try 3 times when the
5510         agent is enabled.
5511         * options.skel: Describe --use-agent.
5513 2002-01-24  David Shaw  <dshaw@jabberwocky.com>
5515         * pubkey-enc.c (is_algo_in_prefs, get_it): Only check preferences
5516         against keys with v4 self sigs - there is really little point in
5517         warning for every single non-IDEA message encrypted to an old key.
5519         * pkclist.c (select_algo_from_prefs): Only put in the fake IDEA
5520         preference if --pgp2 is on.
5522         * mainproc.c (check_sig_and_print): Print "Expired" for expired
5523         but good signatures (this still prints "BAD" for expired but bad
5524         signatures).
5526 2002-01-23  David Shaw  <dshaw@jabberwocky.com>
5528         * keygen.c (ask_keysize): Cosmetic: don't present a RSA signing
5529         key as a "keypair" which can be 768 bits long (as RSA minimum is
5530         1024).
5532         * pubkey-enc.c (is_algo_in_prefs): Allow IDEA as a fake preference
5533         for v3 keys with v3 selfsigs.
5535 2002-01-22  David Shaw  <dshaw@jabberwocky.com>
5537         * packet.h, getkey.c (merge_selfsigs_main), pkclist.c
5538         (select_algo_from_prefs): Implement the fake IDEA preference as
5539         per RFC2440:12.1.  This doesn't mean that IDEA will be used (the
5540         plugin may not be present), but it does mean that a v3 key with a
5541         v3 selfsig has an implicit IDEA preference instead of 3DES.  v3
5542         keys with v4 selfsigs use preferences as normal.
5544         * encode.c (encode_crypt): if select_algo_from_prefs fails, this
5545         means that we could not find a cipher that both keys like.  Since
5546         all v4 keys have an implicit 3DES preference, this means there is
5547         a v3 key with a v3 selfsig in the list.  Use 3DES in this case as
5548         it is the safest option (we know the v4 key can handle it, and
5549         we'll just hope the v3 key is being used in an implementation that
5550         can handle it).  If --pgp2 is on, warn the user what we're doing
5551         since it'll probably break PGP2 compatibility.
5553         * g10.c (main): Do not force using IDEA for encrypted files in
5554         --pgp2 mode - let the fake IDEA preference choose this for us for
5555         better compatibility when encrypting to multiple keys, only some
5556         of which are v3.
5558         * keygen.c (keygen_set_std_prefs): Put 3DES on the end of the
5559         default cipher pref list (RFC2440: "...it is good form to place it
5560         there explicitly.").  If the user has the IDEA plugin installed,
5561         put a preference for IDEA *after* 3DES to effectively disable its
5562         use for everything except encrypting along with v3 keys.
5564         * encode.c, g10.c, sign.c: Change the PGP2 warning line from
5565         "... will not be usable ..." to "... may not be usable ..." as the
5566         user could be using one of the enhanced PGP2 variations.
5568         * helptext.c: Revise the sign_uid.class help text as suggested by
5569         Stefan.
5570         
5571 2002-01-20  Werner Koch  <wk@gnupg.org>
5573         * passphrase.c (passphrase_to_dek): Add tryagain_text arg to be
5574         used with the agent.  Changed all callers.
5575         (agent_get_passphrase): Likewise and send it to the agent
5576         * seckey-cert.c (do_check): New arg tryagain_text.
5577         (check_secret_key): Pass the string to do_check.
5578         * keygen.c (ask_passphrase): Set the error text is required.
5579         * keyedit.c (change_passphrase): Ditto.
5581         * passphrase.c (agent_open): Disable opt.use_agent in case of a
5582         problem with the agent. 
5583         (agent_get_passphrase): Ditto.
5584         (passphrase_clear_cache): Ditto.
5586 2002-01-19  Werner Koch  <wk@gnupg.org>
5588         * passphrase.c (agent_open): Add support for the new Assuan based
5589         gpg-agent.  New arg to return the used protocol version.
5590         (agent_get_passphrase): Implemented new protocol here.
5591         (passphrase_clear_cache): Ditto.
5592         (readline): New.
5593         
5594 2002-01-15  Timo Schulz  <ts@winpt.org>
5596         * encode.c (encode_crypt_files): Fail if --output is used.
5597         
5598         * g10.c: New command --decrypt-files.
5600         * decrypt.c (decrypt_messages): New.
5601         
5602 2002-01-09  David Shaw  <dshaw@jabberwocky.com>
5604         * g10.c, misc.c, gpgv.c: move idea_cipher_warn to misc.c so gpgv.c
5605         doesn't need a stub for it any longer.
5607         * g10.c (get_temp_dir), main.h: no longer used (it's in exec.c now)
5609         * g10.c (main), delkey.c (delete_keys), main.h : Allow
5610         --delete-key (now --delete-keys, though --delete-key still works,
5611         of course) to delete multiple keys in one go.  This applies to
5612         --delete-secret-key(s) and --delete-secret-and-public-key(s) as
5613         well.
5615 2002-01-09  Timo Schulz  <ts@winpt.org>
5617         * encode.c (encode_crypt_files): Now it behaves like verify_files.
5618         
5619         * g10.c (main): We don't need to check argc for encode_crypt_files
5620         any longer.
5622 2002-01-09  Timo Schulz  <ts@winpt.org>
5624         * exec.c: Include windows.h for dosish systems.
5626 2002-01-08  Timo Schulz  <ts@winpt.org>
5628         * g10.c (main): New description for --encrypt-files.
5630 2002-01-08  Werner Koch  <wk@gnupg.org>
5632         * g10.c (main): Must register the secring for encryption because
5633         it is needed to figure out the default recipient.  Reported by
5634         Roger Sondermann.
5636 2002-01-05  David Shaw  <dshaw@jabberwocky.com>
5638         * keyedit.c (menu_adduid): Require --expert before adding a photo
5639         ID to a v3 key, and before adding a second photo ID to any key.
5641         * keyedit.c (keyedit_menu): Don't allow adding photo IDs in
5642         rfc1991 or pgp2 mode.
5644         * getkey.c (merge_selfsigs_subkey): Permit v3 subkeys.  Believe it
5645         or not, this is allowed by rfc 2440, and both PGP 6 and PGP 7 work
5646         fine with them.
5648         * g10.c, options.h, keyedit.c, sign.c: Move the "ask for
5649         expiration" switch off of --expert, which was getting quite
5650         overloaded, and onto ask-sig-expire and ask-cert-expire.  Both
5651         default to off.
5653         * g10.c (main): Change the default compression algo to 1, to be
5654         more OpenPGP compliant (PGP also uses this, so it'll help with
5655         interoperability problems as well).
5657         * encode.c (encode_crypt): Handle compression algo 2, since the
5658         default is now 1.
5660         * build-packet.c (build_attribute_subpkt): Fix off-by-one error.
5662 2002-01-05  Werner Koch  <wk@gnupg.org>
5664         * g10.c (main): Do not register the secret keyrings for certain
5665         commands.
5667         * keydb.c (keydb_add_resource): Use access to test for keyring
5668         existence.  This avoids cached opened files which are bad under
5669         RISC OS.
5671 2002-01-04  David Shaw  <dshaw@jabberwocky.com>
5673         * sign.c (sign_file, sign_symencrypt_file): always use one-pass
5674         packets unless rfc1991 is enabled.  This allows a signature made
5675         with a v3 key to work in PGP 6 and 7.  Signatures made with v4
5676         keys are unchanged.
5678         * g10.c (main): Disallow non-detached signatures in PGP2 mode.
5679         Move the "you must use files and not pipes" PGP2 warning up so all
5680         the PGP2 stuff is together.
5682         * encode.c (encode_simple): Use the actual filesize instead of
5683         partial length packets in the internal literal packet from a
5684         symmetric message.  This breaks PGP5(?), but fixes PGP2, 6, and 7.
5685         It's a decent tradeoff.  Note there was only an issue with
5686         old-style RFC1991 symmetric messages.  2440-style messages in 6
5687         and 7 work with or without partial length packets.
5689 2002-01-03  David Shaw  <dshaw@jabberwocky.com>
5691         * g10.c (main): Removed --no-default-check-level option, as it is
5692         not consistent with other "default" options.  Plus, it is the same
5693         as saying --default-check-level 0.
5695         * exec.c (exec_read): Disallow caching tempfile from child
5696         process, as this keeps the file handle open and can cause unlink
5697         problems on some platforms.
5699         * keyserver.c (keyserver_search_prompt): Minor tweak - don't
5700         bother to transform keyids into textual form if they're just going
5701         to be transformed back to numbers.
5703 2002-01-03  Timo Schulz <ts@winpt.org>
5705         * g10.c: New command --encrypt-files.
5706     
5707         * verify.c (print_file_status): Removed the static because
5708         encode_crypt_files also uses this function.
5710         * main.h (print_files_status): New.
5711         (encode_crypt_files): New.
5713         * encode.c (encode_crypt_files): New.
5715 2002-01-02  Stefan Bellon  <sbellon@sbellon.de>
5717         * keyserver.c: Moved util.h include down in order to avoid
5718         redefinition problems on RISC OS.
5720         * keyring.c (keyring_lock): Only lock keyrings that are writable.
5722         * keyring.c (keyring_update_keyblock): Close unused iobuf.
5724         * hkp.c (parse_hkp_index, hkp_search) [__riscos__]: Changed
5725         unsigned char* to char* because of compiler issues.
5727         * exec.c (exec_finish) [__riscos__]: Invalidate close cache so
5728         that file can be unlinked.
5730 2001-12-28  David Shaw  <dshaw@jabberwocky.com>
5732         * g10.c (main): Use a different strlist to check extensions since
5733         they need to be handled seperately now.
5735         * misc.c,main.h (check_permissions): Properly handle permission
5736         and ownership checks on files in the lib directory
5737         (e.g. /usr/local/lib/gnupg), which are owned by root and are
5738         world-readable, and change all callers to specify extension or
5739         per-user file.
5741         * photoid.c (show_photo), keyserver.c (keyserver_spawn): Bug fix -
5742         don't call exec_finish if exec_write fails.
5744         * keyserver.c (keyserver_spawn): Look for OPTIONS from the
5745         keyserver helper - specifically, a "OUTOFBAND" option for the
5746         email keyserver.
5748         * mainproc.c (list_node), keylist.c (list_keyblock_colon),
5749         import.c (delete_inv_parts), export.c (do_export_stream): Use
5750         signature flags for exportability check rather than re-parsing the
5751         subpacket.
5753         * keyid.c, keydb.h (get_lsign_letter): No longer needed.
5755 2001-12-27  David Shaw  <dshaw@jabberwocky.com>
5757         * exec.c (exec_finish): Show errors when temp files cannot be
5758         deleted for whatever reason.
5760         * exec.c (exec_read): Don't rely on WEXITSTATUS being present.
5762         * exec.c (make_tempdir): Add temp file creator for win32.  Don't
5763         create an incoming temp file if the exec is write-only.
5765         * keyserver.c (keyserver_spawn): Clean up error handling, for when
5766         the spawn fails.
5768         * photoid.c (show_photo): Clean up error handling.
5770         * misc.c (check_permissions): Neaten.
5772 2001-12-25  David Shaw  <dshaw@jabberwocky.com>
5774         * mkdtemp.c (mkdtemp): Add copyleft info and tweak the 'X' counter
5775         to be a bit simpler.
5777         * keyserver.c, photoid.c: Remove unused headers left over from
5778         when the exec functions lived there.
5780 2001-12-23  Timo Schulz <ts@winpt.org>
5782         * misc.c (check_permissions): Do not use it for W32 systems.
5784         * tdbio.c (migrate_from_v2): Define ftruncate as chsize() for W32.
5786         * mkdtemp.c: W32 support.
5788         * photoid.c: Ditto.
5790         * exec.c: Ditto.
5792 2001-12-22  David Shaw  <dshaw@jabberwocky.com>
5794         * exec.c (make_tempdir): avoid compiler warning with const
5796         * mkdtemp.c (mkdtemp): catch the empty ("") string case in case
5797         someone repurposes mkdtemp at some point.
5799         * photoid.c (generate_photo_id, show_photo): some type changes
5800         from Stefan Bellon.
5802         * exec.c (make_tempdir): handle Win32 systems, suggested by Timo
5803         Schulz.
5805 2001-12-22  Werner Koch  <wk@gnupg.org>
5807         * encode.c (encode_simple, encode_crypt): i18n 2 strings.
5809 2001-12-22  Timo Schulz <ts@winpt.org>
5810         
5811         * encode.c (encode_simple, encode_crypt): Use is_file_compressed
5812         to avoid to compress compressed files.
5814 2001-12-22  Werner Koch  <wk@gnupg.org>
5816         * keyserver.c (keyserver_spawn): Removed some variables
5817         declaration due to shadowing warnings.
5819         * build-packet.c (build_attribute_subpkt): s/index/idx/ to avoid
5820         compiler warnig due to index(3).
5822         * getkey.c (get_ctx_handle): Use KEYDB_HANDLE as return value.
5823         * keylist.c (list_one): Made resname const.
5825         * keyedit.c (keyedit_menu): Allow "addphoto" only when --openpgp is
5826         not used.
5828         * options.skel: Changed one example photo viewer to qiv.
5830 2001-12-21  David Shaw  <dshaw@jabberwocky.com>
5832         * Makefile.am: add exec.c, exec.h, photoid.c, and photoid.h
5834         * build-packet.c (build_attribute_subpkt): new function to build
5835         the raw attribute subpacket.  Note that attribute subpackets have
5836         the same format as signature subpackets.
5838         * exec.c: new file with generic exec-a-program functionality.
5839         Used by both photo IDs and keyserver helpers.  This is pretty much
5840         the same code that used to be keyserver specific, with some
5841         changes to be usable generically.
5843         * free-packet.c (free_attributes (new)): function to free an
5844         attribute packet.
5845         
5846         * gpgv.c: added stub show_photo
5847         
5848         * keyedit.c (keyedit_menu, menu_adduid, menu_showphoto): can add a
5849         photo (calls generate_photo_id), or display a photo (calls
5850         show_photo) from the --edit menu.  New commands are "addphoto",
5851         and "delphoto" (same as "deluid").
5853         * keylist.c (list_keyblock_print): show photos during key list if
5854         --show-photos enabled.
5855         
5856         * keyserver.c (keyserver_spawn): use the generic exec_xxx
5857         functions to call keyserver helper.
5859         * g10.c, options.h: three new options - --{no-}show-photos, and
5860         --photo-viewer to give the command line to display a picture.
5862         * options.skel: instructions for the photo viewer
5863         
5864         * parse-packet.c (parse_user_id, setup_user_id (new)): common code
5865         for both user IDs and attribute IDs moved to setup_user_id.
5867         * parse-packet.c (make_attribute_uidname (new)): constructs a fake
5868         "name" for attribute packets (e.g. "[image of size ...]")
5870         * parse-packet.c (parse_attribute (replaces parse_photo_id),
5871         parse_attribute_subpkts): Builds an array of individual
5872         attributes.  Currently only handles attribute image / type jpeg
5873         subpackets.
5875         * sign.c (hash_uid): Fix bug in signing attribute (formerly
5876         photo_id) packets.
5878         * packet.h, and callers: globally change "photo_id" to "attribute"
5879         and add structures for attributes.  The packet format is generic
5880         attributes, even though the only attribute type thus far defined
5881         is jpeg.
5883 2001-12-21  David Shaw  <dshaw@jabberwocky.com>
5885         * parse-packet.c (can_handle_critical): Can handle critical
5886         revocation subpackets now.
5888         * trustdb.c (mark_usable_uid_certs): Disregard revocations for
5889         nonrevocable sigs.  Note that this allows a newer revocable
5890         signature to override an older nonrevocable signature.
5892         * sign.c (make_keysig_packet): add a duration field and change all
5893         callers.  This makes make_keysig_packet closer to
5894         write_signature_packets and removes some duplicated expiration
5895         code.
5897         * keyedit.c (keyedit_menu, menu_revsig, sign_uids,
5898         sign_mk_attrib): Add nrsign command, don't allow revoking a
5899         nonrevocable signature,
5901         * g10.c (main): Add --nrsign option to nonrevocably sign a key
5902         from the command line.
5904         * build-packet.c (build_sig_subpkt_from_sig): Comment to explain
5905         the use of CRITICAL.
5907 2001-12-21  Werner Koch  <wk@gnupg.org>
5909         * g10.c. options.h : New option --show-keyring
5910         * getkey.c (get_ctx_handle): New.
5911         * keylist.c (list_one): Implement option here.  By David Champion. 
5913 2001-12-20  David Shaw  <dshaw@jabberwocky.com>
5915         * keyserver.c (keyserver_spawn): Use mkdtemp() to make temp
5916         directory.
5918         * mkdtemp.c: replacement function for those platforms that don't
5919         have mkdtemp (make a temp directory securely).
5921 2001-12-19  David Shaw  <dshaw@jabberwocky.com>
5923         * misc.c (check_permissions): New function to stat() and ensure
5924         the permissions of GNUPGHOME and the files have safe permissions.
5926         * keydb.c (keydb_add_resource): Check keyring permissions.
5928         * tdbio.c (tdbio_set_dbname): Check permissions of trustdb.gpg
5930         * keyserver.c (keyserver_spawn): Disable keyserver schemes that
5931         involve running external programs if the options file has unsafe
5932         permissions or ownership.
5934         * g10.c, options.h: New option --no-permission-warning to disable
5935         the permission warning message(s).  This also permits use of the
5936         keyserver if it had been disabled (see above).  Also check the
5937         permissions/ownership of random_seed.
5938         
5939         * keyserver.c (keyserver_spawn): The new glibc prints a warning
5940         when using mktemp() (the code was already secure, but the warning
5941         was bound to cause confusion).  Use a different implementation
5942         based on get_random_bits() instead.  Also try a few times to get
5943         the temp dir before giving up.
5945 2001-12-19  Werner Koch  <wk@gnupg.org>
5947         * g10.c, passphrase.c [CYGWIN32]: Allow this as an alias for MINGW32.
5949 2001-12-18  David Shaw  <dshaw@jabberwocky.com>
5951         * g10.c (idea_cipher_warn): Add a flag to show the warning always
5952         or once per session and change all callers (show always except for
5953         the secret key protection and unknown cipher from an encrypted
5954         message errors).  Also make the strings translatable.
5956         * pubkey-enc.c (get_it): Add the IDEA cipher warning if the user
5957         tries to decrypt an IDEA encrypted message without the IDEA
5958         plugin.
5960         * keyserver.c (parse_keyserver_uri): More strict checking of the
5961         keyserver URI.  Specifically, fail if the ":port" section is
5962         anything except a number between 1 and 65535.
5964 2001-12-17  David Shaw  <dshaw@jabberwocky.com>
5966         * keyserver.c (print_keyinfo): No need to check for
5967         control/illegal characters, as utf8_to_native does this for us.
5969         * mainproc.c (proc_encrypted): Use generic IDEA warning.
5971         * gpgv.c: add stub for idea_cipher_warn
5973         * g10.c, hkp.c, keyserver.c: Fix capitalization and plural issues.
5975         * encode.c (encode_crypt), sign.c (sign_file, clearsign_file):
5976         disable pgp2 mode after the message is no longer pgp2 compatible.
5978         * g10.c (main): Tweak the PGP2.x IDEA warning to use the generic
5979         warning, and not merely fail if the IDEA plugin isn't there.
5981         * g10.c (main, idea_cipher_warn), keygen.c (set_one_pref),
5982         seckey-cert.c (do_check): Add a generic IDEA warning for when the
5983         IDEA plugin is not present.  This pops up when the user uses
5984         "--cipher-algo idea", when setpref is used to set a "S1"
5985         preference, and when a secret key protected with IDEA is used.
5987 2001-12-15  Werner Koch  <wk@gnupg.org>
5989         * keyserver.c (keyserver_spawn): Assert that we have dropped privs.
5991 2001-12-13  Werner Koch  <wk@gnupg.org>
5993         * pubkey-enc.c (get_session_key): Check that the public key
5994         algorithm is indeed usable for en/decryption.  This avoid a
5995         strange error message from pubkey_decrypt if for some reasons a
5996         bad algorithm indentifier is passed.
5998 2001-12-12  David Shaw  <dshaw@jabberwocky.com>
6000         * Fixed some types for portability.  Noted by Stefan Bellon.
6002 2001-12-11  Werner Koch  <wk@gnupg.org>
6004         * hkp.c (hkp_export): Do not print possible control characters
6005         from a keyserver response.
6006         (parse_hkp_index): Made uid an unsigned char* because it is passed to
6007         isspace().
6008         (hkp_search): Ditto for the char* vars.
6010         * g10.c (main): Print the IDEA warning also for -c and -se.
6011         
6012         * g10.c (get_temp_dir): Assert that we have dropped privs
6014         * encode.c (encode_crypt): Include the first key into the --pgp2
6015         check.
6017 2001-12-07  David Shaw  <dshaw@jabberwocky.com>
6019         * g10.c, options.h: New option --pgp2.  This is identical to
6020         "--rfc1991 --cipher-algo idea --compress-algo 1 --digest-algo md5
6021         --force_v3_sigs" with the addition of an warning to advise the
6022         user not to use a pipe (which would break pgp2 compatibility).
6024         * encode.c (encode_crypt): warn if the user tries to encrypt to
6025         any key that is not RSA and <= 2048 bits when the --pgp2 option is
6026         used.
6028         * sign.c (sign_file, clearsign_file): When using --pgp2, make a v3
6029         sig, and warn if the signature is made with a non-v3 key.
6031 2001-12-05  David Shaw  <dshaw@jabberwocky.com>
6033         * sign.c (sign_file, clearsign_file, sign_symencrypt_file): Prompt
6034         for sig expiration if --expert is set and --force-v3-sigs is not
6035         set (v3 sigs cannot expire).
6037         * mainproc.c (check_sig_and_print): After checking a sig, print
6038         expiration status.  This causes a error return if the sig is
6039         expired.
6041         * build-packet.c (build_sig_subpkt_from_sig): Include a critical
6042         sig expiration subpacket if the sig is to expire.
6044         * keyedit.c (sign_uids): Do not sign an expired key unless
6045         --expert is set, in which case prompt.  Also, offer to expire a
6046         signature when the key the user is signing expires.
6048         * keygen.c (ask_expire_interval): Add a value to determine whether
6049         to prompt for a key or sig expiration and change all callers.
6051         * keyid.c: New functions: expirestr_from_sig and
6052         colon_expirestr_from_sig.
6054         * keylist.c (list_keyblock_colon): Show sig expiration date in the
6055         --with-colons listing.
6057         * sign.c (make_keysig_packet, write_signature_packets): Pass in an
6058         optional timestamp for the signature packet, and change all
6059         callers.
6061         * keyedit.c (sign_mk_attrib): Include a critical expiration
6062         subpacket in the signature if an expiration date is given.
6064 2001-12-04  David Shaw  <dshaw@jabberwocky.com>
6066         * keyedit.c (sign_uids): If the user tries to sign a
6067         locally-signed key, allow the cert to be promoted to a full
6068         exportable signature.  This essentially deletes the old
6069         non-exportable sig, and replaces it with a new exportable one.
6071 2001-12-04  David Shaw  <dshaw@jabberwocky.com>
6073         * keyedit.c (keyedit_menu): Do not allow signing a revoked key
6074         unless --expert is set, and ask even then.
6076         * keyedit.c (sign_uids): Do not allow signing a revoked UID unless
6077         --expert is set, and ask even then.
6079         * g10.c, options.h : New option --expert
6081 2001-11-16  David Shaw  <dshaw@jabberwocky.com>
6083         * Allow the user to select no compression via "--compress-algo 0"
6084         on the command line.
6086         * keyedit.c (show_prefs): Show compression preferences in the
6087         long-form "showpref" style.
6089         * keygen.c (set_one_pref): Permit setting a no-compression ("Z0")
6090         preference.
6092         * getkey.c (fixup_uidnode): Fix compression preference corruption
6093         bug.
6095 2001-12-02  David Shaw  <dshaw@jabberwocky.com>
6097         * g10.c: Add advisory --for-your-eyes-only option as per section
6098         5.9 of 2440.
6100 2001-12-05  David Shaw  <dshaw@jabberwocky.com>
6102         * Force a V4 sig if the user has a notation or policy URL set.
6104 2001-12-04  David Shaw  <dshaw@jabberwocky.com>
6106         * g10.c: Add options --keyserver-options, --temp-directory, and
6107         auto-key-retrieve (the opposite of no-auto-key-retrieve).
6109         * hkp.c (hkp_search): New function to handle searching a HKP
6110         keyserver for a key
6112         * hkp.c (hkp_ask_import, hkp_export): Pretty large changes to make
6113         them communicate via the generic functions in keyserver.c
6115         * keyserver.c: new file with generic keyserver routines for
6116         getting keys from a keyserver, sending keys to a keyserver, and
6117         searching for keys on a keyserver.  Calls the internal HKP stuff
6118         in hkp.c for HKP keyserver functions.  Other calls are handled by
6119         an external program which is spawned and written to and read from
6120         via pipes.  Platforms that don't have pipes use temp files.
6122 2001-11-20  David Shaw  <dshaw@jabberwocky.com>
6124         * options.h, g10.c: New options show-notation, no-show-notation,
6125         default-check-level, no-default-check-level, show-policy-url,
6126         no-show-policy-url.
6128         * packet.h, sign.c (make_keysig_packet), parse-packet.c
6129         (parse_signature), free-packet.c (free_seckey_enc): Fill in
6130         structures for notation, policy, sig class, exportability, etc.
6132         * keyedit.c, keylist.c (print_and_check_one_sig,
6133         list_keyblock_print): Show flags in signature display for cert
6134         details (class, local, notation, policy, revocable).  If selected,
6135         show the notation and policy url.
6137         * keyedit.c (sign_uids): Prompt for and use different key sig
6138         classes.
6140         * helptext.c (helptexts): Add help text to explain different
6141         key signature classes
6143 2001-11-26  David Shaw  <dshaw@jabberwocky.com>
6145         * trustdb.c (mark_usable_uid_certs): Fix segfault from bad
6146         initialization and fix reversed key signature expiration check.
6148 2001-11-09  Werner Koch  <wk@gnupg.org>
6150         * export.c (do_export_stream): Put all given names into a search
6151         description and change the loop so that all matching names are
6152         returned.
6154 2001-11-08  Werner Koch  <wk@gnupg.org>
6156         * pubkey-enc.c (get_it): To reduce the number of questions on the
6157         MLs print the the name of cipher algorithm 1 with the error message.
6159         * mainproc.c: Changed the way old rfc1991 encryption cipher is
6160         selected. Based on a patch by W Lewis.
6162         * pkclist.c (do_edit_ownertrust): Allow to skip over keys, the non
6163         working "show info" is now assigned to "i" 
6164         * trustdb.c (ask_ownertrust, validate_keys): Implement a real quit
6165         here.  Both are by David Shaw.
6166         
6167         * trustdb.c (validate_keys): Make sure next_exipire is initialized.
6169         * sign.c (make_keysig_packet): Use SHA-1 with v4 RSA keys.
6171         * g10.c, options.h : New option --[no-]froce-v4-certs.
6172         * sign.c (make_keysig_packet): Create v4 sigs on v4 keys even with
6173         a v3 key.  Use that new option.  By David Shaw
6175         * revoke.c (ask_revocation_reason): Allow to select "no reason".
6176         By David Shaw.
6178         * keyid.c (fingerprint_from_sk): Calculation of an v3 fpr was
6179         plain wrong - nearly the same code in fingerprint_from_pk is correct.
6181         * build-packet.c (do_secret_key): Added a few comments to the code.
6183 2001-11-07  Werner Koch  <wk@gnupg.org>
6185         * g10.c (main): Print a warning when -r is used w/o encryption.
6186         Suggested by Pascal Scheffers.
6188 2001-10-23  Werner Koch  <wk@gnupg.org>
6190         * keyedit.c (keyedit_menu): Changed helptext for showpref
6191         command.  Suggested by Reinhard Wobst.
6193         * keyring.c (keyring_search): When marking the offtbl ready, take
6194         into account that we may have more than one keyring.
6196 2001-10-22  Werner Koch  <wk@gnupg.org>
6198         * Makefile.am: Do not use OMIT_DEPENDENCIES
6200         * build-packet.c (build_sig_subpkt): Default is now to put all
6201         types of subpackets into the hashed area and only list those which
6202         should go into the unhashed area.
6204 2001-10-18  Werner Koch  <wk@gnupg.org>
6206         * keydb.c (keydb_add_resource): Rearranged the way we keep track
6207         of the resource. There will now be an entry for each keyring here
6208         and not in keyring.c itself.  Store a token to allow creation of a
6209         keyring handle.  Changed all functions to utilize this new design.
6210         (keydb_locate_writable): Make a real implementation.
6211         * keyring.c (next_kr): Removed and changed all callers to set the
6212         resource directly from the one given with the handle.
6213         (keyring_is_writable): New. 
6214         (keyring_rebuild_cache): Add an arg to pass the token from keydb.
6216 2001-10-17  Werner Koch  <wk@gnupg.org>
6218         * keyring.c (keyring_search): Enabled word search mode but print a
6219         warning that it is buggy.
6220         
6221 2001-10-11  Werner Koch  <wk@gnupg.org>
6223         * hkp.c (hkp_ask_import): No more need to set the port number for
6224         the x-hkp scheme. 
6225         (hkp_export): Ditto.
6227 2001-10-06  Stefan Bellon  <sbellon@sbellon.de>
6229         * passphrase.c [__riscos__]: Disabled agent specific stuff.
6230         * g10.c: New option --no-force-v3-sigs.
6232 2001-10-04  Werner Koch  <wk@gnupg.org>
6234         * export.c (do_export_stream): Do not push the compress filter
6235         here because the context would run out of scope due to the
6236         iobuf_close done by the caller.
6237         (do_export): Do it here instead. 
6239 2001-09-28  Werner Koch  <wk@gnupg.org>
6241         * keyedit.c (sign_uids): Always use the primary key to sign keys.
6242         * getkey.c (finish_lookup): Hack to return only the primary key if
6243         a certification key has been requested.
6245         * trustdb.c (cmp_kid_for_make_key_array): Renamed to
6246         (validate_one_keyblock): this and changed arg for direct calling.
6247         (make_key_array): Renamed to
6248         (validate_one_keyblock): this and changed args for direct calling.
6249         (mark_usable_uid_certs, validate_one_keyblock)
6250         (validate_key_list): Add next_expire arg to keep track of
6251         expiration times.  
6252         (validate_keys): Ditto for UTKs and write the stamp.
6254         * tdbio.c (migrate_from_v2): Check return code of tbdio_sync.
6256         * tdbdump.c (import_ownertrust): Do a tdbio_sync().
6258         * keyring.c: Made the offtbl an global object.
6260 2001-09-27  Werner Koch  <wk@gnupg.org>
6262         * pkclist.c (do_edit_ownertrust): Allow settin of ultimate trust.
6264         * trustdb.c (mark_keyblock_seen): New.
6265         (make_key_array): Use it to mark the subkeys too.
6266         (validate_keys): Store validity for ultimatly trusted keys.
6268 2001-09-26  Werner Koch  <wk@gnupg.org>
6270         * pkclist.c (check_signatures_trust, do_we_trust): Removed the
6271         invocation of add_ownertrust. Minor changes to the wording.
6272         (add_ownertrust, add_ownertrust_cb): Removed.
6274         * trustdb.c (get_validity): Allow to lookup the validity using a
6275         subkey.
6277         * trustdb.c (new_key_hash_table): Increased the table size to 1024
6278         and changed the masks accordingly.
6279         (validate): Changed stats printing.
6280         (mark_usable_uid_certs): New.
6281         (cmp_kid_for_make_key_array): Does now check the signatures and
6282         figures out a usable one.
6284 2001-09-25  Werner Koch  <wk@gnupg.org>
6286         * keyring.c (new_offset_item,release_offset_items)
6287         (new_offset_hash_table, lookup_offset_hash_table)
6288         (update_offset_hash_table, update_offset_hash_table_from_kb): New.
6289         (keyring_search): Use a offset table to optimize search for
6290         unknown keys.
6291         (keyring_update_keyblock, keyring_insert_keyblock): Insert new
6292         offsets.
6293         * getkey.c (MAX_UNK_CACHE_ENTRIES): Removed the unknown keys
6294         caching code.
6296         * g10.c, options.h, import.c: Removed the entire
6297         allow-secret-key-import stuff because the validity is now
6298         controlled by other means.
6300         * g10.c: New command --rebuild-keydb-caches.
6301         * keydb.c (keydb_rebuild_caches): New.
6302         * keyring.c (do_copy): Moved some code to
6303         (create_tmp_file, rename_tmp_file, write_keyblock): new functions.
6304         (keyring_rebuild_cache): New.
6306         * packet.h (PKT_ring_trust): Add sigcache field.
6307         * parse-packet.c (parse_trust): Parse sigcache.
6308         * keyring.c (do_copy): Always insert a sigcache packet.
6309         (keyring_get_keyblock): Copy the sigcache packet to the signature.
6310         * sig-check.c (cache_sig_result): Renamed from
6311         cache_selfsig_result. Changed implementation to use the flag bits
6312         and changed all callers.
6313         (mdc_kludge_check): Removed this unused code.
6314         (do_check): Do not set the sig flags here.
6316         * import.c (read_block): Make sure that ring_trust packets are
6317         never imported.
6318         * export.c (do_export_stream): and never export them.
6320         * trustdb.c (make_key_array): Skip revoked and expired keys.
6322 2001-09-24  Werner Koch  <wk@gnupg.org>
6324         * g10.c, options.h: New option --no-auto-check-trustdb.
6326         * keygen.c (do_generate_keypair): Set newly created keys to
6327         ultimately trusted.
6329         * tdbio.h, tdbio.c: Removed all support for records DIR, KEY, UID,
6330         PREF, SIG, SDIR and CACH. Changed migration function to work
6331         direct on the file.
6332         (tdbio_read_nextcheck): New.
6333         (tdbio_write_nextcheck): New. 
6335 2001-09-21  Werner Koch  <wk@gnupg.org>
6337         Revamped the entire key validation system.
6338         * trustdb.c: Complete rewrite. No more validation on demand,
6339         removed some functions, adjusted to all callers to use the new 
6340         and much simpler interface. Does not use the LID anymore.
6341         * tdbio.c, tdbio.h: Add new record types trust and valid. Wrote a
6342         migration function to convert to the new trustdb layout.
6343         * getkey.c (classify_user_id2): Do not allow the use of the "#"
6344         prefix. 
6345         * keydb.h: Removed the TDBIDX mode add a skipfnc to the
6346         descriptor.
6347         * keyring.c (keyring_search): Implemented skipfnc.
6349         * passphrase.c (agent_open): Add missing bracket.  Include windows.h.
6351 2001-09-19  Werner Koch  <wk@gnupg.org>
6353         * keylist.c (print_fingerprint): Renamed from fingerprint, made
6354         global available. Added new arg to control the print style.
6355         * mainproc.c (print_fingerprint): Removed. 
6356         * pkclist.c (print_fpr, fpr_info): Removed and changed callers to
6357         use print_fingerprint.
6358         * keyedit.c (show_fingerprint): Ditto.
6360         * passphrase.c (writen, readn)
6361         (agent_open, agent_close)
6362         (agent_get_passphrase)
6363         (passphrase_clear_cache): Support for W32.  Contributed by Timo.
6365         * import.c (import_one): Release keydb handles at 2 more places.
6367         * keyring.c (keyring_release): Close the iobuf.
6368         (keyring_get_keyblock): Init ret_kb to NULL and store error contidion.
6370         * import.c (import_new_stats_handle): New. 
6371         (import_release_stats_handle): New.
6372         (import_print_stats): Renamed from static fnc print_stats.
6373         (import_keys, import_keys_stream): Add an optional status handle
6374         arg and changed all callers.
6375         * hkp.c (hkp_ask_import): Add an stats_handle arg and changed all
6376         callers.
6378         * mainproc.c (print_pkenc_list): Use print_utf8_string2().
6380 2001-09-18  Werner Koch  <wk@gnupg.org>
6382         * g10.c: New command --refresh-keys.
6383         * hkp.c (hkp_refresh_keys): New. Contributed by Timo Schulz.
6385         * parse-packet.c (parse): Stop on impossible packet lengths.
6387 2001-09-17  Werner Koch  <wk@gnupg.org>
6389         * mainproc.c (print_notation_data): Wrap notation data status lines
6390         after 50 chars.
6391         
6392         * mainproc.c (proc_pubkey_enc): Make option try-all-secrets work.
6393         By disastry@saiknes.lv.
6395 2001-09-14  Werner Koch  <wk@gnupg.org>
6397         * parse-packet.c (dump_sig_subpkt): List key server preferences
6398         and show the revocable flag correctly. Contributed by David Shaw.
6400 2001-09-09  Werner Koch  <wk@gnupg.org>
6402         * keyedit.c (keyedit_menu): No need to define another p.
6404         * keylist.c (print_capabilities): s/used/use/ so that it
6405         does not shadow a global.
6406         * sign.c (sign_file): Renamed arg encrypt to encryptflag
6407         * keygen.c: Replaced all "usage" by "use".
6408         * misc.c (openpgp_pk_algo_usage): Ditto.
6410         * pubkey-enc.c (get_it): Renamed arg k to enc so that the later
6411         defined k does not shadow it.
6413         * parse-packet.c (parse_gpg_control): No need to define another i.
6415         * getkey.c (get_pubkey_byfprint): Must use the enum values and not
6416         the fprint_len.
6417         * keyring.c (keyring_search): Removed a non-sense break.  Both
6418         bugs pointed out by Stefan.
6420 2001-09-07  Werner Koch  <wk@gnupg.org>
6422         * status.c, status.h: Added NO_RECP and ALREADY_SIGNED.
6423         * pkclist.c (build_pk_list): Issue NO_RECP.
6424         * keyedit.c (sign_uids): Added experimental ALREADY_SIGNED
6426         * hkp.c (hkp_import): Use log_error. Bug reported by Neal H
6427         Walfield. 
6429         * getkey.c (classify_user_id2): Change args to take the desc union
6430         direct.  It was a stupid idea to pass the individual fields of an
6431         union to this function. Changed all callers.
6432         (classify_user_id): Ditto and allow to pass NULL as the description.
6434 2001-09-06  Werner Koch  <wk@gnupg.org>
6436         * getkey.c (fixup_uidnode): Features flag is now a bit vector.
6437         * keygen.c (add_feature_mdc): Ditto.
6439         Revamped the entire key I/O code to be prepared for other ways of
6440         key storages and to get rid of the existing shit.  GDBM support has
6441         gone.
6442         * keydb.c: New
6443         * keyring.c, keyring.h: New.
6444         * ringedit.c: Removed.  Moved some stuff to keyring.c
6445         * getkey.c: Changed everything related to the key retrieving
6446         functions which are now using the keydb_ functions.  
6447         (prepare_search, word_match_chars, word_match)
6448         (prepare_word_match, compare_name): Moved to keyring.c
6449         (get_pubkey_byname): Removed ctx arg and add ret_kdbhd
6450         arg.  Changed all callers.
6451         (key_byname): Use get_pubkey_end to release the context and take
6452         new ret_kbdhd arg.  Changed all callers.
6453         (classify_user_id2): Fill the 16 byte fingerprint up with 4 null
6454         bytes not with zero bytes of value 4, tsss.
6455         * import.c (import_one): Updated to use the new keydb interface.
6456         (import_secret_one): Ditto.
6457         (import_revoke_cert): Ditto.
6458         * delkey.c (do_delete_key): Ditto. 
6459         * keyedit.c (keyedit_menu): Ditto.
6460         (get_keyblock_byname): Removed.
6461         * revoke.c (gen_revoke): Ditto. 
6462         * export.c (do_export_stream): Ditto.
6463         * trustdb.c (update_trustdb): Ditto.
6464         * g10.c, gpgv.c (main): Renamed add_keyblock_resource to
6465         keydb_add_resource. 
6466         * Makefile.am:  Added and removed files.
6468         * keydb.h: Moved KBNODE typedef and MAX_FINGERPRINT_LEN to
6469         * global.h: this new header.
6470         
6471 2001-09-03  Werner Koch  <wk@gnupg.org>
6473         * passphrase.c (agent_get_passphrase): Changed nread to size_t.
6474         (passphrase_clear_cache): Ditto.
6476         * keyid.c (mk_datestr): Avoid trigraphs.
6477         (fingerprint_from_pk): Cache the keyid in the pk.
6479         * options.h: Add opt.with_fingerprint so that we know whether the
6480         corresponding options was used.
6481         * g10.c (main): Set it here.
6482         * pkclist.c (check_signatures_trust): Always print fingerprint
6483         when this option is used.  Mixed a minor memory leak.
6485         * status.c, status.h: New status INV_RECP.
6486         * pkclist.c (build_pk_list): Issue this status.
6488 2001-08-31  Werner Koch  <wk@gnupg.org>
6490         * parse-packet.c (parse_key,parse_pubkeyenc)
6491         (parse_signature): Return error on reading bad MPIs.
6492         
6493         * mainproc.c (check_sig_and_print): Always print the user ID even
6494         if it is not bound by a signature.  Use the primary UID in the
6495         status messages and encode them in UTF-8
6496         * status.c (write_status_text_and_buffer): New.
6498 2001-08-30  Werner Koch  <wk@gnupg.org>
6500         * packet.h (sigsubpkttype_t): Add SIGSUBPKT_FEATURES.
6501         (PKT_public_key, PKT_user_id): Add a flag for it.
6502         * parse-packet.c, build-packet.c: Add support for them.
6503         * getkey.c (fixup_uidnode, merge_selfsigs): Set the MDC flags.
6504         * keygen.c (add_feature_mdc): New.
6505         (keygen_upd_std_prefs): Always set the MDC feature.
6506         * keyedit.c (show_prefs): List the MDC flag
6507         * pkclist.c (select_mdc_from_pklist): New.
6508         * encode.c (encode_crypt, encrypt_filter): Test whether MDC
6509         should be used.
6510         * cipher.c (write_header): Set MDC use depending on the above test.
6511         Print more status info.
6513         * delkey.c (do_delete_key): Kludge to delete a secret key with no
6514         public key available.
6516         * ringedit.c (find_secret_keyblock_direct): New.
6517         * getkey.c (seckey_available): Simplified.
6519         * ringedit.c (cmp_seckey): Now compares the secret key against the
6520         public key while ignoring all secret parts.
6521         (keyring_search): Use a public key packet as arg.  Allow to search
6522         for subnkeys
6523         (search): Likewise. Changed all callers.
6524         (find_secret_keyblock_bypk): New.
6525         (find_secret_keyblock_byname): First locate the pubkey and then
6526         find the correponding secret key.
6527         * parse-packet.c (parse): Renamed pkttype arg to onlykeypkts and
6528         changed code accordingly.  Changed all callers.
6529         (search_packet): Removed pkttype arg.
6530         * keyedit.c (keyedit_menu): First locate the public key and then
6531         try to locate a secret key.
6533         * ringedit.c (locate_keyblock_by_fpr): Removed.
6534         (locate_keyblock_by_keyid): Removed.
6535         (find_keyblock_bysk): Removed.
6537         * sig-check.c (check_key_signature2): Print the keyid along with
6538         the wrong sig class errors.
6540 2001-08-24  Werner Koch  <wk@gnupg.org>
6542         * sign.c (sign_file): Stripped the disabled comment packet code.
6543         (sign_file, sign_symencrypt_file): Moved common code to ..
6544         (write_onepass_sig_packets): .. this new function.
6545         (sign_file, clearsign_file, sign_symencrypt_file): Moved common
6546         code to 
6547         (write_signature_packets): this new function.
6548         (write_signature_packets, make_keysig_packet)
6549         (update_keysig_packet): Moved common code to 
6550         (hash_uid, hash_sigclass_to_magic): these new functions
6551         (sign_file, sign_symencrypt_file): Moved common code to 
6552         (write_plaintext_packet):  this new function.
6554 2001-08-21  Stefan Bellon  <sbellon@sbellon.de>
6556         * trustdb.c (query_trust_info): Changed trustlevel to signed int.
6557         * g10.c [__riscos__]: Fixed handling of --use-agent --lock-multiple.
6559 2001-08-20  Werner Koch  <wk@gnupg.org>
6561         * encr-data.c (decrypt_data): Keep track on whether we already
6562         printed information about the used algorithm.
6563         * mainproc.c (proc_encrypted): Removed the non-working IDEA hack
6564         and print a message about the assumed algorithm.
6565         * passphrase.c (passphrase_to_dek): Use the same algorithm as above.
6566         (proc_symkey_enc): Print the algorithm, so that the user knows it
6567         before entering the passphrase.
6568         (proc_pubkey_enc, proc_pubkey_enc): Zero the DEK out.
6569         * encode.c (encode_crypt, encrypt_filter): Ditto.
6571         * g10.c: Allow for --sign --symmetric.
6572         * sign.c (sign_and_symencrypt): New.
6574         Applied patches from Stefan Bellon <sbellon@sbellon.de> to support
6575         RISC OS.  Nearly all of these patches are identified by the
6576         __riscos__ macro.
6577         * compress.c: Added a couple of casts.
6578         * g10.c [__riscos__]: Some patches and new options foo-file similar
6579         to all foo-fd options.
6580         * gpgv.c, openfile.c, ringedit.c, tdbio.c: Minor fixes.  Mainly
6581         replaced hardcoded path separators with EXTSEP_S like macros.  
6582         * passprase.c [__riscos__]: Disabled agent stuff
6583         * trustdb.c (check_trust): Changed r_trustlevel to signed int to
6584         avoid mismatch problems in pkclist.c
6585         * pkclist.c (add_ownertrust): Ditto.
6586         * plaintext.c (handle_plaintext) [__riscos__]: Print a note when
6587         file can't be created.
6588         * options.h [__riscos__]: Use an extern unless included from the
6589         main module.
6590         * signal.c (got_fatal_signal) [__riscos__]: Close all files.
6591         
6592 2001-08-14  Werner Koch  <wk@gnupg.org>
6594         * keygen.c (ask_algo): New arg r_usage.  Allow for RSA keys.
6595         (gen_rsa): Enabled the code.
6596         (do_create): Enabled RSA branch.
6597         (parse_parameter_usage): New.
6598         (proc_parameter_file): Handle usage parameter.
6599         (read_parameter_file): Ditto.
6600         (generate_keypair): Ditto.
6601         (generate_subkeypair): Ditto.
6602         (do_generate_keypair): Ditto.
6603         (do_add_key_flags): New.
6604         (keygen_add_std_prefs): Use the new function.
6605         (keygen_add_key_flags_and_expire): New.
6606         (write_selfsig, write_keybinding): Handle new usage arg.
6607         * build-packet.c (build_sig_subpkt): Make sure that key flags go
6608         into the hashed area.
6609         
6610         * keygen.c (write_uid): Initialize the reference cunter.
6612         * keyedit.c (keyedit_menu): No more need to update the trustdb for
6613         preferences.  Added calls to merge keblock.
6615         * kbnode.c (dump_kbnode): Print some more flags.
6617 2001-08-10  Werner Koch  <wk@gnupg.org>
6619         Revamped the preference handling.
6621         * packet.h (prefitem_t, preftype_t): New.
6622         (PKT_public_key): Added a uid field.
6623         (PKT_user_id): Added field to store preferences and a reference
6624         counter.
6625         * parse-packet.c (parse_user_id,parse_photo_id): Initialize them
6626         * free-packet.c (free_user_id): Free them.
6627         (copy_user_id): Removed.
6628         (scopy_user_id): New. 
6629         (cmp_user_ids): Optimized for identical pointers.
6630         (release_public_key_parts): Release the uid.
6631         (copy_public_key_with_new_namehash): Removed.
6632         (copy_prefs): New.
6633         * keyedit.c (menu_adduid): Use the new shallow copy user id.
6634         (show_prefs): Adjusted implementation.
6635         (keyedit_menu): No more need to update the trustdb after changing
6636         preferences.
6637         * getkey.c (fixup_uidnode): Store preferences.
6638         (find_by_name): Return a user id packet and remove namehash stuff.
6639         (lookup): Removed the unused namehash stuff.
6640         (finish_lookup): Added foundu arg.
6641         (pk_from_block): Removed the namehash arg and changed all callers.
6642         (merge_selfsigs): Copy prefs to all keys.
6643         * trustdb.c (get_pref_data): Removed.
6644         (is_algo_in_prefs): Removed.
6645         (make_pref_record): Deleted and removed all class.
6646         * pkclist.c (select_algo_from_prefs): Adjusted for the new
6647         preference implementation.
6648         * pubkey-enc.c (is_algo_in_prefs): New.
6649         (get_it): Use that new function. 
6651 2001-08-09  Werner Koch  <wk@gnupg.org>
6653         * build-packet.c (build_sig_subpkt): Fixed calculation of
6654         newarea->size.
6656         * g10.c (main): New option "--preference-list"
6657         * keyedit.c (keyedit_menu): New commands "setpref" and "updpref".
6658         (menu_set_preferences): New.
6659         * keygen.c (keygen_set_std_prefs): New.
6660         (set_one_pref): New.
6661         (check_zip_algo): New.
6662         (keygen_get_std_prefs): New.
6663         (keygen_upd_std_prefs): New
6664         (keygen_add_std_prefs): Move the pref setting code into the above fnc.
6665         * build-packet.c (build_sig_subpkt): Updated the list of allowed
6666         to update subpackets.
6668 2001-08-08  Werner Koch  <wk@gnupg.org>
6670         * packet.h (subpktarea_t): New.
6671         (PKT_signature): Use that type for hashed_data and unhashed_data and
6672         removed the _data prefix from those fields.  Changed all users.
6673         * parse-packet.c (parse_signature): Changed allocation for that.
6674         (parse_sig_subpkt): Changed declaration
6675         (enum_sig_subpkt): Ditto and changed implementation accordingly.
6676         * free-packet.c (cp_subpktarea): Renamed from cp_data_block and
6677         adjusted implementation. Changed caller.
6678         * sig-check.c (mdc_kludge_check): Adjusted the hashing.
6679         (do_check): Ditto.
6680         * sign.c (sign_file, clearsign_file, make_keysig_packet,
6681         update_keysig_packet): Ditto.
6682         * build-packet.c (build_sig_subpkt): Partial rewrite.
6683         (find_subpkt): Adjusted and made static.
6684         (delete_sig_subpkt): Adjusted.
6685         (do_signature): Ditto.
6687         * keygen.c (ask_keysize): Do not print the notes about suggested
6688         key sizes if just a DSA key is generated.
6690         * trustdb.c (add_ultimate_key): s/log_error/log_info/ for
6691         duplicated inserted trusted keys.
6693 2001-08-07  Werner Koch  <wk@gnupg.org>
6695         * sign.c (sleep): Redefine for W32.
6697         * g10.c, options.h: Set new flag opt.no_homedir_creation when
6698         --no-options is given.
6699         * openfile.c (try_make_homedir): Don't create the homedir in that case.
6701 2001-08-03  Werner Koch  <wk@gnupg.org>
6703         * armor.c (armor_filter): Removed the default comment string
6704         because it could get us in trouble due to translations using non
6705         ascii characters.
6707 2001-08-01  Werner Koch  <wk@gnupg.org>
6709         * keylist.c (list_keyblock_print): Do not list revoked UIDs unless
6710         in verbose mode and we do no signature listing.
6712         * getkey.c (finish_lookup): Skip subkeys which are not yet valid.
6713         * g10.c, options.h: New option --ignore-valid-from.
6715         * sign.c (make_keysig_packet): Added new sigversion argument to
6716         allow the caller to force generation of required signature
6717         version. Changed all callers. Suggested by Thomas Roessler.
6719         * keyedit.c (sign_uids): Force v4 signature generation for local
6720         sigs.  Removed the check for local signature and pre-v4 keys.
6722 2001-07-27  Werner Koch  <wk@gnupg.org>
6724         * keyedit.c (sign_uids): Check that we are not trying to to a
6725         lsign with a pre-v4 key.  Bug noticed by Thomas Roessler.
6727 2001-07-26  Werner Koch  <wk@gnupg.org>
6729         * parse-packet.c (parse_photo_id): Reset all variables.
6730         * getkey.c (merge_selfsigs_main): Removed checks on PHOTO_ID
6731         because this is handled identically to a user ID.
6733 2001-07-06  Werner Koch  <wk@gnupg.org>
6735         * cipher.c (write_header): Don't use MDC with --rfc1991.  Suggested
6736         by disastry@saiknes.lv.
6738 2001-07-05  Werner Koch  <wk@gnupg.org>
6740         * g10.c, options.h: New option --preserve-permissions.
6741         * ringedit.c (add_keyblock_resource): Use it here
6742         (keyring_copy): and here.
6744         * trustdb.c (verify_own_keys): Be more silent on --quiet.
6745         Suggested by Thomas Roessler.
6746         * sig-check.c (check_key_signature2): Ditto.
6747         * mainproc.c (proc_encrypted, proc_tree): Ditto
6748         * getkey.c (lookup): Ditto.
6750 2001-07-04  Werner Koch  <wk@gnupg.org>
6752         * ringedit.c (add_keyblock_resource): Restore filename in case of error.
6754 2001-06-25  Werner Koch  <wk@gnupg.org>
6756         * kbnode.c (dump_kbnode): Print the signature timestamp.
6758         * keyedit.c (keyedit_menu): New menu point "primary".
6759         (change_primary_uid_cb): New.
6760         (menu_set_primary_uid): New.
6761         * sign.c (update_keysig_packet): New.
6762         * build-packet.c (build_sig_subpkt): Put the primary UID flag into
6763         the hashed area. Allow update of some more packets.
6765 2001-06-15  Werner Koch  <wk@gnupg.org>
6767         * getkey.c (merge_selfsigs): Exit gracefully when a secret key is
6768         encountered.  May happen if a secret key is in public keyring.
6769         Reported by Francesco Potorti.
6770         
6771 2001-06-12  Werner Koch  <wk@gnupg.org>
6773         * getkey.c (compare_name): Use ascii_memistr(), ascii_memcasecmp()
6774         * keyedit.c (keyedit_menu): Use ascii_strcasecmp().
6775         * armor.c (radix64_read): Use ascii_toupper().  
6776         * ringedit.c (do_bm_search): Ditto.
6777         * keygen.c (read_parameter_file): Ditto.
6778         * openfile.c (CMP_FILENAME): Ditto.
6779         * g10.c (i18n_init): We can now use just LC_ALL.
6781 2001-05-29  Werner Koch  <wk@gnupg.org>
6783         * keygen.c (generate_subkeypair): Print a warning if a subkey is
6784         created on a v3 key. Suggested by Brian M. Carlson.
6786 2001-05-27  Werner Koch  <wk@gnupg.org>
6788         * keyid.c (get_lsign_letter): New.
6789         * keylist.c (list_keyblock_colon): Use it here.
6790         * mainproc.c (list_node): and here.
6792         * getkey.c, packet.h, free-packet.c: Removed that useless key
6793         created field; I dunno why I introducded this at all - the
6794         creation time is always bound to the key packet and subject to
6795         fingerprint calculation etc.
6797         * getkey.c (fixup_uidnode): Add keycreated arg and use this
6798         instead of the signature timestamp to calculate the
6799         help_key_expire.  Bug reported by David R. Bergstein.
6800         (merge_selfsigs_main): Correct key expiration time calculation.
6801         (merge_selfsigs_subkey): Ditto.
6803 2001-05-25  Werner Koch  <wk@gnupg.org>
6805         * revoke.c (gen_revoke): Add a cast to a tty_printf arg.
6806         * delkey.c (do_delete_key): Ditto.
6807         * keyedit.c (print_and_check_one_sig): Ditto.
6808         (ask_revoke_sig): Ditto.
6809         (menu_revsig): Ditto.
6810         (check_all_keysigs): Removed unused arg.
6812 2001-05-23  Werner Koch  <wk@gnupg.org>
6814         * g10.c (opts): Typo fix by Robert C. Ames.
6816 2001-05-06  Werner Koch  <wk@gnupg.org>
6818         * revoke.c: Small typo fix
6820 2001-05-04  Werner Koch  <wk@gnupg.org>
6822         * passphrase.c (passphrase_clear_cache): Shortcut if agent usage
6823         is not enabled.
6825 2001-05-01  Werner Koch  <wk@gnupg.org>
6827         * passphrase.c (writen): Replaced ssize_t by int.  Thanks to 
6828         to Robert Joop for reporting that SunOS 4.1.4 does not have it.
6830 2001-04-28  Werner Koch  <wk@gnupg.org>
6832         * getkey.c (merge_public_with_secret): pkttype was not set to subkey.
6834 2001-04-27  Werner Koch  <wk@gnupg.org>
6836         * skclist.c (build_sk_list): Changed one log_debug to log_info.
6838 2001-04-25  Werner Koch  <wk@gnupg.org>
6840         * keyedit.c (show_prefs): Add a verbose mode.
6841         (show_key_with_all_names): Pass verbose flag for special value of
6842         with_pref.
6843         (keyedit_menu): New command "showpref"
6844         (show_key_with_all_names): Mark revoked uids and the primary key.
6846 2001-04-24  Werner Koch  <wk@gnupg.org>
6848         * getkey.c (get_primary_uid): Return a different string in case of
6849         error and made it translatable.
6851         * build-packet.c (do_secret_key): Ugly, we wrote a zero
6852         instead of the computed ndays.  Thanks to M Taylor for complaining
6853         about a secret key import problem.
6855 2001-04-23  Werner Koch  <wk@gnupg.org>
6857         * hkp.c (hkp_ask_import): Allow to specify a port number for the 
6858         keyserver.  Add a kudge to set the no_shutdown flag.
6859         (hkp_export): Ditto.
6860         * options.skel: Document the changes 
6862 2001-04-20  Werner Koch  <wk@gnupg.org>
6864         * options.skel: Add some more comments.
6866 2001-04-19  Werner Koch  <wk@gnupg.org>
6868         * keyid.c (mk_datestr): New.  Handles negative times.  We must do
6869         this because Windoze segvs on negative times passed to gmtime().
6870         Changed all datestr_from function to use this one.
6872         * keyid.c, keyid.h (colon_strtime): New. To implement the
6873         fixed-list-mode.
6874         (colon_datestr_from_pk): New.
6875         (colon_datestr_from_sk): New.
6876         (colon_datestr_from_sig): New.
6877         * keylist.c (list_keyblock_colon): Use these functions here.
6878         * mainproc.c (list_node): Ditto.
6880 2001-04-18  Werner Koch  <wk@gnupg.org>
6882         * openfile.c (open_sigfile): Fixed the handling of ".sign".
6883         * mainproc.c (proc_tree): Use iobuf_get_real_fname.
6884         Both are by Vincent Broman.
6886 2001-04-14  Werner Koch  <wk@gnupg.org>
6888         * getkey.c (fixup_uidnode): Removed check for !sig which is
6889         pointless here.  Thanks to Jan Niehusmann.
6891 2001-04-10  Werner Koch  <wk@gnupg.org>
6893         * sig-check.c (check_key_signature2): Use log_info instead of
6894         log_error so that messed up keys do not let gpg return an error.
6895         Suggested by Christian Kurz.
6897         * getkey.c (merge_selfsigs_main): Do a fixup_uidnode only if we
6898         have both, uid and sig.  Thanks to M Taylor.
6900 2001-04-05  Werner Koch  <wk@gnupg.org>
6902         * armor.c (unarmor_pump_new,unarmor_pump_release): New.
6903         (unarmor_pump): New. 
6904         * pipemode.c (pipemode_filter): Use the unarmor_pump to handle
6905         armored or non-armored detached signatures.  We can't use the
6906         regular armor_filter because this does only check for armored
6907         signatures the very first time.  In pipemode we may have a mix of
6908         armored and binary detached signatures.
6909         * mainproc.c (proc_tree): Do not print the "old style" notice when
6910         this is a pipemode processes detached signature.
6911         (proc_plaintext): Special handling of pipemode detached sigs.
6913         * packet.h (CTRLPKT_PLAINTEXT_MARK): New.
6914         * parse-packet.c (create_gpg_control): New.
6915         * kbnode.c (dump_kbnode): Support it here.
6916         * mainproc.c (check_sig_and_print): Fixed the check for bad
6917         sequences of multiple signatures.
6918         (proc_plaintext): Add the marker packet.
6919         (proc_tree): We can now check multiple detached signatures.
6921 2001-04-02  Werner Koch  <wk@gnupg.org>
6923         The length of encrypted packets for blocksizes != 8 was not
6924         correct encoded.  I think this is a minor problem, because we
6925         usually use partial length packets.  Kudos to Kahil D. Jallad for
6926         pointing this out.
6927         * packet.h: Add extralen to PKT_encrypted.
6928         * cipher.c (write_header): Set extralen.
6929         * build-packet.c (do_encrypted): Use extralen instead of const 10.
6930         (do_encrypted_mdc): Ditto.
6931         * parse-packet.c (parse_encrypted): Set extralen to 0 because we
6932         don't know it here.
6934 2001-03-30  Werner Koch  <wk@gnupg.org>
6936         * getkey.c (premerge_public_with_secret): Changed wording an add
6937         the keyID to the info message.
6939 2001-03-29  Werner Koch  <wk@gnupg.org>
6941         * getkey.c (premerge_public_with_secret): Use log_info instead of
6942         log_error when no secret key was found for a public one.
6943         Fix the usage if the secret parts of a key are not available.
6945         * openfile.c (ask_outfile_name): Trim spaces.
6946         (open_outfile): Allow to enter an alternate filename.  Thanks to
6947         Stefan Bellon.
6948         * plaintext.c (handle_plaintext): Ditto.
6950 2001-03-28  Werner Koch  <wk@gnupg.org>
6952         * mainproc.c (do_check_sig): Allow direct key and subkey
6953         revocation signature.
6954         * sig-check.c (check_key_signature2): Check direct key signatures.
6955         Print the signature class along with an error.
6957 2001-03-27  Werner Koch  <wk@gnupg.org>
6959         * packet.h: Add a missing typedef to an enum.  Thanks to Stefan Bellon.
6961         * g10.c: New option --no-sig-create-check.
6962         * sign.c (do_sign): Implement it here.
6963         * g10.c: New option --no-sig-cache.
6964         * sig-check.c (check_key_signature2): Implement it here.
6965         (cache_selfsig_result): and here.
6967         * keylist.c (list_keyblock): Removed debugging stuff.
6969         * getkey.c (cache_public_key): Made global.
6970         * keygen.c (write_selfsig, write_keybinding): Cache the new key.
6972         * getkey.c (key_byname): Add new arg secmode and changed all
6973         callers to request explicitly the mode.  Deriving this information
6974         from the other supplied parameters does not work if neither pk nor
6975         sk are supplied.
6977 2001-03-25  Werner Koch  <wk@gnupg.org>
6979         * packet.h (ctrlpkttype_t): New.
6980         * mainproc.c (add_gpg_control,proc_plaintext,proc_tree): Use the
6981         new enum values.
6982         * pipemode.c (make_control): Ditto.
6983         * armor.c (armor_filter): Ditto.
6985 2001-03-24  Werner Koch  <wk@gnupg.org>
6987         * sign.c (do_sign): Verify the signature right after creation.
6989 2001-03-23  Werner Koch  <wk@gnupg.org>
6991         * status.c, status.h (STATUS_UNEXPECTED): New.
6992         * mainproc.c (do_proc_packets): And emit it here.
6994 2001-03-21  Werner Koch  <wk@gnupg.org>
6996         * status.c: Add sys/types.h so that it runs on Ultrix.  Reported
6997         by Georg Schwarz.x
6999         * build-packet.c (build_sig_subpkt): Fixed generaton of packet
7000         length header in case where 2 bytes headers are needed.  Thanks to
7001         Piotr Krukowiecki.
7003 2001-03-19  Werner Koch  <wk@gnupg.org>
7005         * g10.c (main): the default keyring is no always used unless
7006         --no-default-keyring is given.  
7008         * ringedit.c (add_keyblock_resource): invalidate cache after file
7009         creation.
7011 2001-03-15  Werner Koch  <wk@gnupg.org>
7013         * keygen.c (ask_algo): Changed the warning of the ElGamal S+E Algo.
7015         * keylist.c (print_capabilities): New.
7016         (list_keyblock_colon): and use it here.
7018 2001-03-13  Werner Koch  <wk@gnupg.org>
7020         * main.c, options.h: New option --fixed_list_mode.
7021         * keylist.c (list_keyblock_colon): use it here.
7023         * getkey.c (merge_keys_and_selfsig): Divert merging of public keys
7024         to the function used in key selection..
7025         * keylist.c (is_uid_valid): Removed.
7026         (list_keyblock): Splitted into ..
7027         (list_keyblock_print, list_keyblock_colon): .. these.
7028         functions.  Changed them to use the flags set in the key lookup code.
7029         (reorder_keyblock): New, so that primary user IDs are listed first.
7031         * ringedit.c (keyring_copy): flush the new iobuf chaces before
7032         rename or remove operations.  This is mainly needed for W32.
7034         * hkp.c [HAVE_DOSISH_SYSTEM]: Removed the disabled code because we
7035         have now W32 socket support in ../util/http.c
7037         * skclist.c (key_present_in_sk_list): New.
7038         (is_duplicated_entry): New.
7039         (build_sk_list): Check for duplicates and do that before unlocking.
7041 2001-03-12  Werner Koch  <wk@gnupg.org>
7043         * armor.c (parse_header_line): Removed double empty line check.
7044         (parse_header_line): Replaced trim_trailing_ws with a counting
7045         function so that we can adjust for the next read.
7047         * options.skel: Fixed 3 typos. By Thomas Klausner. Replaced the
7048         keyserver example by a better working server. 
7050         * parse-packet.c (parse_symkeyenc): Return Invalid_Packet on error.
7051         (parse_pubkeyenc): Ditto.
7052         (parse_onepass_sig): Ditto.
7053         (parse_plaintext): Ditto.
7054         (parse_encrypted): Ditto.
7055         (parse_signature): Return error at other places too.
7056         (parse_key): Ditto.
7057         * g10.c (main): Set opt.list_packets to another value when invoked
7058         with the --list-packets command.
7059         * mainproc.c (do_proc_packets): Don's stop processing when running
7060         under --list-packets command.
7062         * signal.c (do_sigaction): Removed.
7063         (init_one_signal): New to replace the above.  Needed to support
7064         systems without sigactions. Suggested by Dave Dykstra.
7065         (got_fatal_signal,init_signals): Use the above here. 
7066         (do_block): Use sigset() if sigprocmask() is not available.
7068         * armor.c (parse_hash_header): Test on TIGER192, which is the
7069         correct value as per rfc2440.  By Edwin Woudt.
7071 2001-03-08  Werner Koch  <wk@gnupg.org>
7073         * misc.c: Include time.h. By James Troup.
7075         * getkey.c: Re-enabled the unknown user Id and PK caches and
7076         increased their sizes.
7078         * getkey.c (merge_selfsigs_main): Set expire date and continue
7079         processing even if we found a revoked key.
7080         (merge_selfsigs_subkeys): Ditto.
7081         
7082         * packet.h: Add an is_revoked flag to the user_id packet.
7083         * getkey.c (fixup_uidnode): Set that flag here.
7084         (merge_selfsigs_main): Fix so that the latest signature is used to
7085         find the self-signature for an UID.
7086         * parse-packet.c (parse_user_id): Zero out all fields.
7087         * mainproc.c (check_sig_and_print): Print the primary user ID
7088         according the the node flag and then all other non-revoked user IDs.
7089         (is_uid_revoked): Removed; it is now handled by the key selection code.
7090         
7091         Changed the year list of all copyright notices.
7092         
7093 2001-03-07  Werner Koch  <wk@gnupg.org>
7095         * getkey.c (finish_lookup): Print an info message only in verbose mode.
7097 2001-03-05  Werner Koch  <wk@gnupg.org>
7099         * packet.h: Replaced sigsubpkt_t value 101 by PRIV_VERIFY_CACHE.
7100         We have never used the old value, so we can do this without any harm.
7101         * parse-packet.c (dump_sig_subpkt): Ditto.
7102         (parse_one_sig_subpkt): Parse that new sub packet.
7103         * build-packet.c (build_sig_subpkt): Removed the old one from the
7104         hashed area.
7105         (delete_sig_subpkt): New.
7106         (build_sig_subpkt): Allow an update of that new subpkt.
7107         * sig-check.c (check_key_signature2): Add verification caching
7108         (cache_selfsig_result): New.
7109         * export.c (do_export_stream): Delete that sig subpkt before exporting.
7110         * import.c (remove_bad_stuff): New.
7111         (import): Apply that function to all imported data 
7113 2001-03-03  Werner Koch  <wk@gnupg.org>
7115         * getkey.c: Introduced a new lookup context flag "exact" and used 
7116         it in all place where we once used primary.
7117         (classify_user_id2): Replaced the old function and add an extra
7118         argument to return whether an exact keyID has been requested.
7119         (key_byname): Removed the unused ctx.primary flag
7120         (get_seckey_byname2): Ditto.
7121         (finish_lookup): Changed debugging output.
7123 2001-03-02  Werner Koch  <wk@gnupg.org>
7125         * keylist.c (list_one): Remove the merge key calls. 
7127 2001-03-01  Werner Koch  <wk@gnupg.org>
7129         * getkey.c (finish_lookup): Don't use it if we no specific usage
7130         has been requested.
7131         (merge_selfsigs_main): fix UID only if we have an signature.
7132         (lookup): Return UNU_PUBKEY etc. instead of NO_PUBKEY if we found
7133         a key but the requested usage does not allow this key.
7134         * import.c (import_one): Take UNU_PUBKEY into account.
7135         * mainproc.c (list_node): Ditto.
7136         * keylist.c (list_keyblock): Ditto.
7137         * keyedit.c (print_and_check_one_sig): Ditto. 
7139 2001-02-09  Werner Koch  <wk@gnupg.org>
7141         * delkey.c (delete_key): Removed that silly assert which rendered
7142         the whole new stuff meaningless.
7144 2001-02-08  Werner Koch  <wk@gnupg.org>
7146         * getkey.c (key_byname): It can happen that we have both, sk and pk
7147         NULL, fix for that.
7149         * parse-packet.c (parse_one_sig_subpkt): Add support for
7150         primary_uid and key_flags.
7151         (can_handle_critical): Ditto
7153         * parse-packet.c (parse_encrypted): Fixed listing of pktlen for
7154         MDC packets.
7156         * getkey.c: Backported the version of this file from gpg 1.1. this
7157         involved some changes in other files too.
7158         * parse-packet.c (parse_key): Clear req_usage.
7159         * skclist.c (build_sk_list): Use req_usage to pass the usage
7160         information to the lookup function.
7161         * pkclist.c (build_pk_list): Ditto.
7162         * free-packet.c (copy_public_parts_to_secret_key): New.
7163         * keydb.h: Add IS_* macros to check the sig_class.
7164         * misc.c (openpgp_cipher_test_algo): New.
7165         (openpgp_pk_test_algo): New.
7166         (openpgp_pk_algo_usage): New.
7167         (openpgp_md_test_algo): New.
7168         * packet.h: Add a few fields to PKT_{public,secret}_key and
7169         PKT_user_id.
7170         * seckey-cert.c (do_check): Use the new main_keyid field.
7172 2001-02-04  Werner Koch  <wk@gnupg.org>
7174         * encr-data.c (decrypt_data): Catch error when we had problems to
7175         parse the encrypted packet. By Timo.
7177 2001-01-29  Werner Koch  <wk@gnupg.org>
7179         * g10.c (main): --batch does now set nogreeting.
7181         * delkey.c (do_delete_key): Fixed delete-both functionality.
7183 2001-01-22  Werner Koch  <wk@gnupg.org>
7185         * g10.c: New command --delete-secret-and-public-key.
7186         * delkey.c (delete_key): Add new arg allow_both.
7187         (do_delete_key): Move most stuff from above to this new function.
7189 2001-01-12  Werner Koch  <wk@gnupg.org>
7191         * passphrase.c (passphrase_to_dek): Use MD5 when IDEA is installed
7192         and we have no S2K.
7193         * mainproc.c (proc_encrypted): Likewise
7195 2001-01-11  Werner Koch  <wk@gnupg.org>
7197         * sig-check.c (do_check): Print the signature key expire message
7198         only in verbose mode and added the keyID.
7200 2001-01-09  Werner Koch  <wk@gnupg.org>
7202         * status.c, status.h: New status USERID_HINT. 
7203         (write_status_text): Replace LF and CR int text by C-escape sequence.
7205         * passphrase.c (passphrase_to_dek): Fixed the NEED_PASSPHRASE
7206         output.  It does now always print 2 keyIDs.  Emit the new
7207         USERID_HINT.
7209 2001-01-08  Werner Koch  <wk@gnupg.org>
7211         * g10.c, options.h: New option --no-expensive-trust-checks.
7212         * keylist.c (list_keyblock): Act on this option.
7214 2001-01-04  Werner Koch  <wk@gnupg.org>
7216         * g10.c (main): Set homedir only in the pre-parsing phase and
7217         replace backslashes in the W32 version.
7219 2001-01-03  Werner Koch  <wk@gnupg.org>
7221         * status.c, status.h : New status KEY_CREATED
7222         * keygen.c (do_generate_keypair,generate_subkeypair): Emit it.
7224 2000-12-28  Werner Koch  <wk@gnupg.org>
7226         * signal.c (got_fatal_signal): Remove lockfiles here because the
7227         atexit stuff does not work due to the use of raise. Suggested by
7228         Peter Fales.
7229         * gpgv.c (remove_lockfiles): New stub.
7230         
7231 2000-12-19  Werner Koch  <wk@gnupg.org>
7233         * status.c, status.h (cpr_get_no_help): New.
7234         * keyedit.c (keyedit_menu): Use it here because we have our own
7235         help list here.
7237 2000-12-18  Werner Koch  <wk@gnupg.org>
7239         * mainproc.c (print_failed_pkenc): Don't print the sometimes
7240         confusing message about unavailabe secret key.  Renamed ...
7241         (print_pkenc_list): ... to this and introduced failed arg.
7242         (proc_encrypted): Print the failed encryption keys and then
7243         the one to be used.
7244         (proc_pubkey_enc): Store also the key we are going to use.
7246         * mainproc.c (check_sig_and_print): Don't list revoked user IDs.
7247         (is_uid_revoked): New.
7249 2000-12-08  Werner Koch  <wk@gnupg.org>
7251         * pipemode.c: Made the command work.  Currently only for
7252         non-armored detached signatures.
7253         * mainproc.c (release_list): Reset the new pipemode vars.
7254         (add_gpg_control): Handle the control packets for pipemode
7255         * status.c, status.h: New stati {BEGIN,END}_STREAM.
7257 2000-12-07  Werner Koch  <wk@gnupg.org>
7259         * g10.c: New option --allow-secret-key-import.
7260         * import.c (import_keys,import_keys_stream): Honor this option.
7261         (import): New arg allow_secret and pass that arg down to ...
7262         (import_secret_one): to this and print a warning if secret key
7263         importing is not allowed.
7265 2000-12-05  Werner Koch  <wk@gnupg.org>
7267         * cipher.c (cipher_filter): Moved the end_encryption status ...
7268         * encode.c (encode_simple,encode_crypt): to here
7269         * sign.c (sign_file): and here.
7271         * status.c (mywrite): Removed.
7272         (get_status_string): Removed the LFs from the strings.
7273         (set_status_fd,is_status_enabed,write_status_text,
7274         write_status_buffer): Replaced all mywrite by stdio calls and use
7275         fdopen to create a strem.  This is needed to make things smoother
7276         in the W32 version.
7278 2000-12-04  Werner Koch  <wk@gnupg.org>
7280         * import.c (merge_blocks): Increment n_sigs for revocations.
7282 2000-11-30  Werner Koch  <wk@gnupg.org>
7284         * g10.c (main): Use iobuf_translate_file_handle for all options
7285         with filehandles as arguments.  This is function does some magic
7286         for the W32 API.
7288         * verify.c (verify_signatures): Add a comment rant about the
7289         detached signature problem.
7290         * mainproc.c (proc_tree): Issue an error if a detached signature
7291         is assumed but a standard one was found.
7292         * plaintext.c (hash_datafiles): Don't fall back to read signature
7293         from stdin.
7294         * openfile.c (open_sigfile): Print verbose message only if the
7295         file could be accessed.
7297 2000-11-24  Werner Koch  <wk@gnupg.org>
7299         * passphrase.c [HAVE_DOSISH_SYSTEM]: Disabled all the agent stuff.
7301 2000-11-16  Werner Koch  <wk@gnupg.org>
7303         * g10.c: New option --use-agent
7304         * passphrase.c (agent_open,agent_close): New.
7305         (agent_get_passphrase,agent_clear_passphrase): New.
7306         (passphrase_clear_cache): New.
7307         (passphrase_to_dek): Use the agent here.
7308         * seckey-cert.c (do_check): Clear cached passphrases.
7310 2000-11-15  Werner Koch  <wk@gnupg.org>
7312         * status.c (write_status_text): Moved the big switch to ...
7313         (get_status_string): ... new function.
7314         (write_status_buffer): New.
7316         * status.c (mywrite): New and replaced all write() by this.
7318         * status.c, status.h: Add 3 status lcodes for notaions and policy.
7319         * mainproc.c (print_notation_data): Do status output of notations.
7320         
7321 2000-11-13  Werner Koch  <wk@gnupg.org>
7323         * sign.c (clearsign_file): Use LF macro to print linefeed.
7324         
7325 2000-11-11  Paul Eggert  <eggert@twinsun.com>
7327         Clean up the places in the code that incorrectly use "long" or
7328         "unsigned long" for file offsets.  The correct type to use is
7329         "off_t".  The difference is important on large-file hosts,
7330         where "off_t" is longer than "long".
7332         * keydb.h (struct keyblock_pos_struct.offset):
7333         Use off_t, not ulong, for file offsets.
7334         * packet.h (dbg_search_packet, dbg_copy_some_packets,
7335         search_packet, copy_some_packets): Likewise.
7336         * parse-packet.c (parse, dbg_search_packet, search_packet,
7337         dbg_copy_some_packets, copy_some_packets): Likewise.
7338         * ringedit.c (keyring_search): Likewise.
7340         * parse-packet.c (parse): Do not use %lu to report file
7341         offsets in error diagnostics; it's not portable.
7342         * ringedit.c (keyring_search): Likewise.
7344 2000-11-09  Werner Koch  <wk@gnupg.org>
7346         * g10.c (main): New option --enable-special-filenames.
7348 2000-11-07  Werner Koch  <wk@gnupg.org>
7350         * g10.c (main): New command --pipemode.
7351         * pipemode.c: New.
7353 2000-10-23  Werner Koch  <wk@gnupg.org>
7355         * armor.c (armor_filter): Changed output of hdrlines, so that a CR
7356         is emitted for DOS systems.
7358         * keygen.c (read_parameter_file): Add a cast for isspace().
7360         * status.c (myread): Use SIGINT instead of SIGHUP for DOS. 
7362 2000-10-19  Werner Koch  <wk@gnupg.org>
7364         * g10.c: New option --ignore-crc-error
7365         * armor.c (invalid_crc): New.
7366         (radix64_read): Act on new option.
7368         * openfile.c (try_make_homedir): Klaus Singvogel fixed a stupid
7369         error introduced on Sep 6th. 
7371 2000-10-18  Werner Koch  <wk@gnupg.org>
7373         * misc.c (print_cipher_algo_note): Don't print the note for AES.
7374         Changed wording.
7376 2000-10-16  Werner Koch  <wk@gnupg.org>
7378         * mainproc.c (do_proc_packets): Hack to fix the problem that
7379         signatures are not detected when there is a MDC packet but no
7380         compression packet.
7381         
7382         * g10.c (print_hashline): New.
7383         (print_mds): Use above func with --with-colons.
7385         * mainproc.c (check_sig_and_print): Detect multiple signatures
7386         and don't verify them.
7388 2000-10-14  Werner Koch  <wk@gnupg.org>
7390         * mainproc.c (add_onepass_sig): There is an easier solution to the
7391         error fixed yesterday; just check that we only have onepass
7392         packets.  However, the other solution provides an cleaner
7393         interface and opens the path to get access to other information
7394         from the armore headers.
7395         (release_list): Reset some more variables.
7397 2000-10-13  Werner Koch  <wk@gnupg.org>
7399         * mainproc.c (add_gpg_control): New.
7400         (do_proc_packets): use it.
7401         (proc_plaintext): Changed logic to detect clearsigns.
7402         (proc_tree): Check the cleartext sig with some new code.
7404         * packet.h: New packet PKT_GPG_CONTROL.
7405         * parse-packet.c (parse_gpg_control): New.
7406         * misc.c (get_session_marker): New.
7407         * armor.c (armor_filter): Replaced the faked 1-pass packet by the
7408         new control packet.
7410         * keyedit.c (keyedit_menu): Allow batchmode with a command_fd. 
7411         * status.c (my_read): New.
7412         (do_get_from_fd): use it.
7414 2000-10-12  Werner Koch  <wk@gnupg.org>
7416         * keygen.c (keygen_add_std_prefs): Add Rijndael to the prefs.
7418 2000-10-07  Werner Koch  <wk@gnupg.org>
7420         * gpgv.c: Add more stubs for ununsed code to make the binary smaller.
7422 Wed Oct  4 15:50:18 CEST 2000  Werner Koch  <wk@openit.de>
7424         * sign.c (hash_for): New arg to take packet version in account, changed
7425         call callers.
7427         * gpgv.c: New.
7428         * Makefile.am: Rearranged source files so that gpgv can be build with
7429         at least files as possible.
7431 Mon Sep 18 12:13:52 CEST 2000  Werner Koch  <wk@openit.de>
7433         * hkp.c (not_implemented): Print a notice for W32
7435 Fri Sep 15 18:40:36 CEST 2000  Werner Koch  <wk@openit.de>
7437         * keygen.c (keygen_add_std_prefs): Changed order of preferences to
7438         twofish, cast5, blowfish.
7440         * pkclist.c (algo_available): Removed hack to disable Twofish.
7442 Thu Sep 14 17:45:11 CEST 2000  Werner Koch  <wk@openit.de>
7444         * parse-packet.c (dump_sig_subpkt): Dump key flags. Print special
7445         warning in case of faked ARRs.
7447         * getkey.c (finsih_lookup): Hack so that for v4 RSA keys the subkey
7448         is used for encryption.
7450 Thu Sep 14 14:20:38 CEST 2000  Werner Koch  <wk@openit.de>
7452         * g10.c (main): Default S2K algorithms are now SHA1 and CAST5 - this
7453         should solve a lot of compatibility problems with other OpenPGP
7454         apps because those algorithms are SHOULD and not optional.  The old
7455         way to force it was by using the --openpgp option whith the drawback 
7456         that this would disable a couple of workarounds for PGP.
7458         * g10.c (main): Don't set --quite along with --no-tty.  By Frank Tobin.
7460         * misc.c (disable_core_dump): Don't display a warning here but a return
7461         a status value and ...
7462         * g10.c (main): ...print warnining here. Suggested by Sam Roberts.
7464 Wed Sep 13 18:12:34 CEST 2000  Werner Koch  <wk@openit.de>
7466         * keyedit.c (keyedit_menu): Allow to use "debug" on the secret key.
7468         * ringedit.c (cmp_seckey): Fix for v4 RSA keys.
7469         * seckey-cert.c (do_check): Workaround for PGP 7 bug.
7471 Wed Sep  6 17:55:47 CEST 2000  Werner Koch  <wk@openit.de>
7473         * misc.c (print_pubkey_algo_note): Do not print the RSA notice.
7474         * sig-check.c (do_signature_check): Do not emit the RSA status message.
7475         * pubkey-enc.c (get_session_key): Ditto.
7477         * encode.c (encode_simple, encode_crypt): Fix for large files.
7478         * sign.c (sign_file): Ditto.
7480 Wed Sep  6 14:59:09 CEST 2000  Werner Koch  <wk@openit.de>
7482         * passphrase.c (hash_passphrase): Removed funny assert.  Reported by
7483         David Mathog.
7485         * openfile.c (try_make_homedir): Changes for non-Posix systems.
7486         * g10.c (main): Take the default homedir from macro.
7488         * g10.c: The --trusted-key option is back.
7489         * trustdb.c (verify_own_key): Handle this option.
7490         (add_ultimate_key): Moved stuff from verify_own_key to this new func.
7491         (register_trusted_key): New.
7493 Fri Aug 25 16:05:38 CEST 2000  Werner Koch  <wk@openit.de>
7495         * parse-packet.c (dump_sig_subpkt): Print info about the ARR.
7497         * openfile.c (overwrite_filep): Always return okay if the file is
7498         called /dev/null. 
7499         (make_outfile_name): Add ".sign" to the list of know extensions.
7500         (open_sigfile): Ditto.
7502 Wed Aug 23 19:52:51 CEST 2000  Werner Koch  <wk@openit.de>
7504         * g10.c: New option --allow-freeform-uid. By Jeroen C. van Gelderen.
7505         * keygen.c (ask_user_id): Implemented here.
7507 Fri Aug  4 14:23:05 CEST 2000  Werner Koch  <wk@openit.de>
7509   * status.c (do_get_from_fd): Ooops, we used fd instead of opt.command_fd.
7510   Thanks to Michael Tokarev.
7512 Tue Aug  1 20:06:23 CEST 2000  Werner Koch  <wk@openit.de>
7514   * g10.c: New opttion --try-all-secrets on suggestion from Matthias Urlichs.
7515   * pubkey-enc.c (get_session_key): Quite easy to implement here.
7517 Thu Jul 27 17:33:04 CEST 2000  Werner Koch  <wk@openit.de>
7519   * g10.c: New option --merge-only.  Suggested by Brendan O'Dea.
7520   * import.c (import_one): Implemented it here
7521   (import_secret_one): Ditto.
7522   (print_stats): and give some stats.
7524 Thu Jul 27 12:01:00 CEST 2000  Werner Koch  <wk@openit.de>
7526   * g10.c: New options --show-session-key and --override-session-key
7527   * pubkey-enc.c (hextobyte): New.
7528   (get_override_session_key): New.
7529   * mainproc.c (proc_pubkey_enc): Add session-key stuff.
7530   * status.h, status.c (STATUS_SESSION_KEY): New.
7532 Thu Jul 27 10:02:38 CEST 2000  Werner Koch  <wk@openit.de>
7534   * g10.c (main): Use setmode(O_BINARY) for MSDOS while generating random bytes
7535   (print_mds): Likewise for stdin.
7536   * plaintext.c (handle_plaintext): Likewise for stdout.
7538 Mon Jul 24 10:30:17 CEST 2000  Werner Koch  <wk@openit.de>
7540   * keyedit.c (menu_expire): expire date for primary key can be set again.
7542 Wed Jul 19 11:26:43 CEST 2000  Werner Koch  <wk@openit.de>
7544   * keylist.c (is_uid_valid): New.
7545   (list_keyblock): Print validity information for all user IDs.  Note, this
7546   has to be done at other places too; for now we have only minimal support.
7548 Wed Jul 12 13:32:06 CEST 2000  Werner Koch  <wk@openit.de>
7550   * helptext.c, pkclist.c: s/superseeded/superseded/
7552 Mon Jul 10 16:08:57 CEST 2000  Werner Koch  <wk@openit.de>
7554   * parse-packet.c (enum_sig_subpkt): Fixed testing on crtitical bit in case
7555   of a NULL buffer.  Reported by Peter Marschall.
7557 Wed Jul  5 13:28:45 CEST 2000  Werner Koch  <wk@openit.de>
7559   * keyedit.c, keyid.c: Add some _()
7561   * argparse.c:  Changed the flag to suppress --version handling to also
7562   suppress --help.
7564 Wed Jun 28 11:54:44 CEST 2000  Werner Koch  <wk@openit.de>
7566   * armor.c (armor_filter): Set sigclass to 0 in case of non-dash-escaped
7567   clearsig.  This makes this mode work again.
7569   * mainproc.c (proc_tree): Fixed handling of one-pass-sig packets in textmode.
7570   Disabled the ugly workaround for PGP 5 - let's see whether thi breaks less
7571   cases. Found by Ted Cabeen.
7573   * options.h (DBG_HASHING): New.  All commented md_start_debug are now
7574   controlled by this debug option.
7576   * sign.c (print_status_sig_created): New and called from 2 places.
7578   * keygen.c (gen_rsa): New, but commented.
7579   (ask_algo): Commented support for RSA.
7581   * seckey-cert.c (protect_secret_key): Started to fix the code for v4 RSA
7582   keys - it is not solved yet. However, we have time until, Sep 20th ;)
7584 Wed Jun 14 12:27:09 CEST 2000  Werner Koch  <wk@openit.de>
7586   * status.c (init_shm_coprocessing): Changed the sequence of the get,attach
7587   to cope with the changes in newer Linux kernels.  This bug has been found
7588   by <dmitri@advantrix.com> who also proposed this solution.  Hopefully
7589   this does not break gpg on to many systems.
7591   * cipher.c (write_header): Protect the IV with the MDC too.
7592   * encr-data.c (decrypt_data): Likewise.
7594 Fri Jun  9 10:09:52 CEST 2000  Werner Koch  <wk@openit.de>
7596   * g10.c: New options --no-auto-key-retrieve
7597   * options.h (auto_key_retrieve): New.
7598   * mainproc.c (check_sig_and_print): Implemented that.
7600 Wed Jun  7 19:19:09 CEST 2000  Werner Koch  <wk@openit.de>
7602   * sig-check.c (do_check): Use EMULATE_MDENCODE also on v4 packets.
7604 Wed Jun  7 17:25:38 CEST 2000  Werner Koch  <wk@openit.de>
7606   * cipher.c (write_header): Use plain CFB mode for MDC encrypted packets.
7607   * encr-data.c (decrypt_data): Ditto.
7609 Mon Jun  5 23:41:54 CEST 2000  Werner Koch  <wk@openit.de>
7611   * seskey.c (do_encode_md, encode_md_value): Add new arg v3compathack to work
7612   around a bug in old versions.
7613   * sig-check.c (do_check): use the aboved workaround when enabled.
7614   * g10.c: New option --emulate-md-decode-bug
7616 Mon Jun  5 12:37:43 CEST 2000  Werner Koch  <wk@openit.de>
7618   * build-packet.c (do_mdc): New.
7619   (do_encrypted_mdc): Changed for the new proposal.
7620   * parse-packet.c (parse_mdc): New.
7621   (parse_encrypted): Fixed for the new proposal.
7622   * packet.h (PKT_MDC): New.
7623   * cipher.c (cipher_filter): Build the MDC packet here.
7624   * g10.c (main): Enable --force-mdc.
7625   * encr-data.c (mdc_decode_filter): Fixed for new MDC method
7627   * options.h(rfc2440): New.
7628   * g10.c (main): Changed the selected values for --openpgp to not include
7629   optional algorithms.
7631 Thu May 18 11:38:54 CEST 2000  Werner Koch  <wk@openit.de>
7633         * keyedit.c (keyedit_menu): Add a keyword arg to the prompt.
7635         * status.c, status.h: Added 3 new status tokens.
7636         * status.c (do_get_from_fd): New.
7637         (cpr_enabled,cpr_get,cpr_get_hidden,cpr_kill_prompt,
7638          cpr_get_answer_is_yes,cpr_get_answer_yes_no_quit): Modified to work
7639          with the new function.
7640         * g10.c: Add new option --command-fd.
7642         * status.c (progress_cb): New.
7643         (set_status_fd): Register progress functions
7645 Fri May 12 14:01:20 CEST 2000  Werner Koch  <wk@openit.de>
7647         * delkey.c (delete_key): Add 2 new status messages
7648         * status.c, status.h (STATUS_DELETE_PROBLEM): New.
7650         Fixed years of copyright in all source files.
7652 Mon May  1 17:08:14 CEST 2000  Werner Koch  <wk@openit.de>
7654         * trustdb.c (propagate_validity): Fixed the bug that only one uid
7655         gets fully trusted even when all are signed by an ultimate key.
7657 Mon May  1 15:38:04 CEST 2000  Werner Koch  <wk@openit.de>
7659         * getkey.c (key_byname): Always returned a defined context.  Fixed
7660         a segv for invalid user id specifications. Reported by Walter Koch.
7662         * getkey.c (get_user_id): I18ned "no user id" string. By Walter.
7664         * pkclist.c (do_show_revocation_reason): Typo fixes.
7665         * helptext.c: Ditto.
7667         * armor.c (armor_filter): Fixed some CRLF issues.  By Mike McEwan.
7669 Fri Apr 14 19:37:08 CEST 2000  Werner Koch  <wk@openit.de>
7671         * pkclist.c (do_show_revocation_reason): New.
7672         (show_revocation_reason): New and called at various places.
7674         * g10.c (main): Fixed small typo.
7676         * pkclist.c (do_we_trust): Act on always_trust but not for revoked
7677         keys. Suggested by Chip Salzenberg.
7679         * g10.c: New option --lock-never.
7681         * ringedit.c (get_writable_keyblock_file): New.
7682         * keygen.c (do_generate_keypair): Use this instead of the hardwired one.
7684         * keygen.c (ask_user_id): Check that the email address is in the
7685         correct field.  Suggested by Christian Kurz.
7687 Mon Apr 10 13:34:19 CEST 2000  Werner Koch  <wk@openit.de>
7689         * keyedit.c (show_key_with_all_names): s/sbb/ssb/
7691 Tue Mar 28 14:26:58 CEST 2000  Werner Koch  <wk@openit.de>
7693         * trustdb.c (verify_own_keys): Do not print warning about unprotected
7694         key when in quiet mode.
7696 Wed Mar 22 13:50:24 CET 2000  Werner Koch  <wk@openit.de>
7698         * mainproc.c (print_userid): Do UTF8 conversion before printing.
7699         * import.c (import_one): Ditto.
7700         (import_secret_one): Ditto.
7701         (delete_inv_parts): Ditto.
7703 Thu Mar 16 16:20:23 CET 2000  Werner Koch  <wk@openit.de>
7705         * keylist.c (print_key_data): Handle a NULL pk gracefully.
7707         * getkey.c (merge_one_pk_and_selfsig): Fixed silly code for
7708         getting the primary keys keyID but kept using the one from the
7709         subkey.
7710         * pubkey-enc.c (get_it): Print a note for expired subkeys.
7712         * getkey.c (has_expired): New.
7713         (subkeys_expiretime): New.
7714         (finish_lookup): Check for expired subkeys needed for encryption.
7715         (merge_keys_and_selfsig): Fixed expiration date merging for subkeys.
7717         * keylist.c (list_keyblock): Print expiration time for "sub".
7718         (list_one): Add missing merging for public keys.
7719         * mainproc.c (list_node): Ditto.
7721 2000-03-14 13:49:38  Werner Koch  (wk@habibti.openit.de)
7723         * keygen.c (keyedit_menu): Do not allow to use certain commands
7724         while the secret key is selected.
7726 2000-03-09 12:53:09  Werner Koch  (wk@habibti.openit.de)
7728         * keygen.c (ask_expire_interval): Movede parsig to ...
7729         (parse_expire_string): ... this new function. And some new control
7730         commands.
7731         (proc_parameter_file): Add expire date parsing.
7732         (do_generate_keypair): Allow the use of specified output files.
7734 2000-03-08 10:38:38  Werner Koch  (wk@habibti.openit.de)
7736         * keygen.c (ask_algo): Removed is_v4 return value and the commented
7737         code to create Elg keys in a v3 packet. Removed the rounding
7738         of key sizes here.
7739         (do_create): Likewise removed arg v4_packet.
7740         (gen_elg): Likewise removed arg version. Now rounding keysizes here.
7741         (gen_dsa): Rounding keysize now here.
7742         (release_parameter_list): New
7743         (get_parameter*): New.
7744         (proc_parameter_file): New.
7745         (read_parameter_file): New.
7746         (generate_keypair): Splitted. Now uses read_parameter_file when in
7747         batch mode.  Additional argument to specify a parameter file.
7748         (do_generate_keypair): Main bulk of above fucntion and uses the
7749         parameter list.
7750         (do_create): Don't print long notice in batch mode.
7751         * g10.c (main): Allow batched key generation.
7753 Thu Mar  2 15:37:46 CET 2000  Werner Koch  <wk@gnupg.de>
7755         * pubkey-enc.c (get_it): Print a note about unknown cipher algos.
7757         * g10.c (opts): Add a note to the help listing about the man page
7758         and removed some options from the help listing.
7760         * keyedit.c (print_and_check_one_sig): Use a new function to truncate
7761         the output of the user ID.  Suggested by Jan-Benedict Glaw.
7763 Wed Feb 23 10:07:57 CET 2000  Werner Koch  <wk@gnupg.de>
7765         * helptext.c: typo fix.
7767 Thu Feb 17 13:39:32 CET 2000  Werner Koch  <wk@gnupg.de>
7769         * revoke.c: Removed a bunch of commented code.
7771         * packet.h (SIGSUBPKT_REVOC_REASON): New.
7772         * build-packet.c (build_sig_subpkt): Support new sub packet.
7773         * parse-packet.c (parse_one_sig_subpkt): Ditto.
7774         (dump_sig_subpkt): Ditto.
7775         * revoke.c (ask_revocation_reason): New.
7776         (release_revocation_reason_info): New.
7777         (revocation_reason_build_cb): New.
7778         (gen_revoke): Ask for reason.
7779         * main.h (struct revocation_reason_info): Add declaration.
7780         * keyedit.c (menu_revsig): Add support for revocation reason.
7781         (menu_revkey): Ditto.
7782         (sign_uid_mk_attrib): Renamed to ...
7783         (sign_mk_attrib): ... this, made static and add support for reasons.
7785 Tue Feb 15 08:48:13 CET 2000  Werner Koch  <wk@gnupg.de>
7787         * build-packet.c (build_packet): Fixed fixing of old comment packets.
7789         * import.c (import_keys): Fixed importing from stdin when called with
7790         nnames set to zero as it normally happens.
7792 Mon Feb 14 14:30:20 CET 2000  Werner Koch  <wk@gnupg.de>
7794         * sig-check.c (check_key_signature2): Add new arg r_expired.
7795         (do_signature_check): New arg to pass it down to ...
7796         (do_check): New arg r-expire which is set when the signature
7797         has expired.
7798         * trustdb.c (check_sig_record): Set SIGF_EXPIRED flag and set
7799         the expiretime to zero so that thi signature will not be checked
7800         anymore.
7802 Fri Feb 11 17:44:40 CET 2000  Werner Koch  <wk@gnupg.de>
7804         * g10.c (g10_exit): Update the random seed_file.
7805         (main): Set the random seed file.  New option --no-random-seed-file.
7807 Thu Feb 10 17:39:44 CET 2000  Werner Koch  <wk@gnupg.de>
7809         * keyedit.c (menu_expire): Fixed segv due to unitialized sub_pk.
7810         By Rémi.
7812 Thu Feb 10 11:39:41 CET 2000  Werner Koch  <wk@gnupg.de>
7814         * keylist.c (list_keyblock): Don't print warnings in the middle of
7815         regulat output lines.  By Rémi.
7817         * sig-check.c: Include options.h
7819 Wed Feb  9 15:33:44 CET 2000  Werner Koch  <wk@gnupg.de>
7821         * gpg.c: New option --ignore-time-conflict
7822         * sig-check.c (do_check): Implemented this option.
7823         * trustdb.c (check_trust): Ditto.
7824         * sign.c (do_sign): Ditto.
7825         * keygen.c (generate_subkeypair): Ditto.
7827         * encode.c (encode_simple): use iobuf_cancel after open failure.
7828         Reported by Huy Le.
7830 Fri Jan 14 18:32:01 CET 2000  Werner Koch  <wk@gnupg.de>
7832         * packet.h (STRING2KEY): Changed mode from byte to int.
7833         * parse-packet.c (parse_key): Add the special GNU protection stuff
7834         * build-packet.c (so_secret_key): Ditto.
7835         * seckey-cert.c (do_check): Ditto.
7836         * keyedit.c (change_passphrase): Ditto.
7837         * export.c (export_secsubkeys): New.
7838         (do_export_stream): Hack to export the primary key using mode 1001.
7839         * g10.c: New command --export-secret-subkeys
7841 Thu Jan 13 19:31:58 CET 2000  Werner Koch  <wk@gnupg.de>
7843         * armor.c (is_armored): Check for 1-pass-sig packets. Reported by
7844         David Hallinan <hallinan@rtd.com>.
7845         (armor_filter): Replaced one LF by the LF macro.  Reported by
7846         Wolfgang Redtenbacher.
7848 Wed Jan  5 11:51:17 CET 2000  Werner Koch  <wk@gnupg.de>
7850         * g10.c (main): Reset new global flag opt.pgp2_workarounds
7851         when --openpgp is used.
7852         * mainproc.c (proc_plaintext): Do the PGP2,5 workarounds only
7853         when the global flag is set.
7854         (proc_tree): Ditto.
7855         * textfilter.c (copy_clearsig_text): Ditto.
7856         * armor.c (armor_filter): Ditto.
7858         * g10.c: New option --list-only
7859         * mainproc.c (proc_tree): Don't do it if opt.list_only is active.
7860         (proc_pubkey_enc): Implement option.
7862         * status.h, status.c ({BEGIN,END}_{EN,DE}CRYPTION): New.
7863         * cipher.c (cipher_filter): New status outputs.
7864         * mainproc.c (proc_encrypted): New status outputs.
7866 Fri Dec 31 14:08:15 CET 1999  Werner Koch  <wk@gnupg.de>
7868         * armor.c (armor_filter): Made the "Comment:" header translatable.
7870         * hkp.c (hkp_import): Make sure that the program does not return
7871         success when there is a connection problem.  Reported by Phillip Jones.
7873 Sun Dec 19 15:22:26 CET 1999  Werner Koch  <wk@gnupg.de>
7875         * armor.c (LF): Use this new macro at all places where a line LF
7876         is needed.  This way DOSish textfiles should be created when the
7877         input data is also in dos mode.
7878         * sign.c (LF): Ditto.
7879         * textfilter.c (LF): Ditto.
7880         (copy_clearsig_text): Disabled the forcing of CR,LF sequences
7881         for DOS systems.
7883         * plaintext.c (handle_plaintext): Fixes for line endings on DOS.
7884         and react on a LF in cleartext.
7885         * armor.c (fake_packet): Restore the original line ending after
7886         removing trailing spaces.
7888         * signal.c (got_fatal_signal): DOS fix.
7890 Thu Dec 16 10:07:58 CET 1999  Werner Koch  <wk@gnupg.de>
7892         * mainproc.c (print_failed_pkenc): Fix for unknown algorithm.
7893         Found by fygrave@epr0.org.
7895 Thu Dec  9 10:31:05 CET 1999  Werner Koch  <wk@gnupg.de>
7897         * hkp.c: i18n the strings.
7899 Sat Dec  4 15:32:20 CET 1999  Werner Koch  <wk@gnupg.de>
7901         * trustdb.c (verify_key): Shortcut for ultimately trusted keys.
7903 Sat Dec  4 12:30:28 CET 1999  Werner Koch  <wk@gnupg.de>
7905         * pkclist.c (build_pk_list): Validate the trust using the namehash
7906         if this one has been set by the key lookup.
7908         * g10.c: Add --delete-secret-key to the help page.
7910         * openfile.c (copy_options_file): Made static.
7911         (try_make_homedir): New.
7912         * ringedit.c (add_keyblock_resource): Use the try_make_hoemdir logic.
7913         * tdbio.c (tdbio_set_dbname): Likewise.
7915         * keygen.c (generate_user_id): Use m_alloc_clear() here. We should
7916         better use an allocation function specific to the user_id packet.
7918         * keygen.c (keygen_add_std_prefs): Changed symmetric preferences
7919         to include Blowfish again.  This is due to it's better speed compared
7920         to CAST5.
7922         * g10.c (strusage): Print the home directory.
7924         * armor.c (armor_filter): Take action on the cancel control msg.
7925         * filter.h (armor_filter_context_t): Add cancel flag.
7927 Mon Nov 29 21:52:11 CET 1999  Werner Koch  <wk@gnupg.de>
7929         * g10.c: New option --fast-list-mode ..
7930         * keylist.c (list_keyblock): .. and implemented.
7931         * mainproc.c (list_node): Ditto.
7933         * import.c (mark_non_selfsigned_uids_valid): Fixed the case that there
7934         is a uid without any packet following.
7936 Mon Nov 22 11:14:53 CET 1999  Werner Koch  <wk@gnupg.de>
7938         * mainproc.c (proc_plaintext): Never enable the hash processing
7939         when skip_verify is active.
7941         * armor.c (parse_header_line): Stop parsing on a WS line too.
7942         Suggested by Aric Cyr.
7944         * tdbdump.c (HEXTOBIN): Changed the name of the argument, so that
7945         traditional cpp don't mess up the macros. Suggested by Jos Backus.
7947         * mainproc.c (list_node): Print the PK algo in the --with-colon mode.
7948         * keylist.c (list_keyblock): Ditto.
7950         * signal.c (got_fatal_signal): Found the reason why exit(8) did not
7951         work - it is better to set the disposition back to default before
7952         raising the signal.  Print the notice on stderr always.
7954 Fri Nov 12 20:33:19 CET 1999  Werner Koch  <wk@gnupg.de>
7956         * g10.c (make_username): Swapped the logic.
7957         * keylist.c (public_key_list): Now takes a STRLIST as arg and moved
7958         the creation ot this list to the caller, so that he can copy with
7959         UTF-conversion of user IDs.  Changed all callers.
7960         (secret_key_list): Likewise.
7962         * getkey.c (get_user_id_string_native): New and ...
7963         * encode.c (write_pubkey_enc_from_list): ... use it here.
7965         * pubring.asc: Updated.
7967         * packet.h (PKT_PHOTO_ID): New.
7968         * parse-packet.c (parse_photo_id): New.
7969         * build-packet.c (do_user_id: Handle photo IDs.
7970         (build_packet): Change CTB for photo IDs
7971         * free-packet.c (free_user_id): Release memory used for photo IDs
7972         * sig-check.c (hash_uid_node): Handle photo IDs too.
7973         * trustdb.c (print_uid_from_keyblock): Hash photo ID.
7974         (make_uid_records): Ditto.
7975         * getkey.c (find_by_name): Ditto.
7976         * keyedit.c (show_prefs): Ditto.
7977         * keylist.c (list_keyblock): Ditto.
7979 Thu Oct 28 16:08:20 CEST 1999  Werner Koch  <wk@gnupg.de>
7981         * keygen.c (ask_expire_interval): Print a warning for systems
7982         with a signed 32 time_t if the exiration time is beyoind 2038.
7984 Fri Oct  8 20:40:50 CEST 1999  Werner Koch  <wk@gnupg.de>
7986         * ringedit.c (enum_keyblocks): The last fix way really stupid;
7987         reverted and set rt to Unknown.
7989 Fri Oct  8 20:32:01 CEST 1999  Werner Koch  <wk@gnupg.de>
7991         * ringedit.c (enum_keyblocks): Zero the entire kbpos out on open.
7993         * g10.c (oEntropyDLL): Removed option.
7994         (main): Made the warning on development versions more verbose.
7996         * g10.c (oHonorHttpProxy): New option.
7997         * hkp.c (hkp_ask_import,hkp_export): Implement this option.
7998         * options.skel: Enable this option for new installations
8000 Mon Oct  4 21:23:04 CEST 1999  Werner Koch  <wk@gnupg.de>
8002         * import.c (import_keys): Changed calling interface, adjusted caller.
8003         (import): Moved printing of stats out ...
8004         (print_stats): New. ... to here.
8005         (import_keys_stream): Call stats print here.
8006         (import_keys): Print stats as totals for all files.
8008         * tdbio.h (DIRF_NEWKEYS): New
8009         * tdbio.c (tdbio_dump_record): Print the new flag.
8010         * trustdb.c (check_trust_record): New arg sigs_only.  Adapted all
8011         callers.
8012         (do_update_trust_record): Removed recheck arg and add a new sigs_only
8013         do we can later improve on the performance.  Changed all callers too.
8014         (check_trustdb): Evalutate the new flag and add a status output.
8015         Do a check when the dir record has not been checked.
8016         (build_cert_tree): Evaluate the new flag.
8017         (check_trust): Ditto.  Do a trust_record check, when the dir record
8018         is not marked as checked.
8019         (mark_fresh_keys): New.
8020         (clear_lid_table): New.
8021         (sync_trustdb): New.
8022         * import.c (import_keys): Call sync_trustdb() after processing.
8023         (import_keys_stream): Ditto.
8024         * tdbdump.c (import_ownertrust): Ditto.
8026         * import.c (import_revoke_cert): Notify the trust DB.
8027         (do_update_trust_record): Use |= to set the REVOKED bit and not &=;
8028         shame on me for this bad copy+paste introduced bug.
8029         (do_we_trust): Add trustmask to allow revoked key override to work.
8030         Chnaged are to allow return of a mofified trustlevel. Adapted the
8031         one caller.
8033         * g10.c: New options --emulate-3des-s2k-bug
8034         * passphrase.c (hash_passphrase): Implemented above.
8036         * mainproc.c (proc_tree): Check for standalone signatures.
8037         (do_check_sig): Print a notice for a standalone revocation
8038         (check_sig_and_print): Do not print an error for unchecked standalone
8039         revocations.
8041 Tue Sep 28 20:54:37 CEST 1999  Werner Koch  <wk@gnupg.de>
8043         * encode.c (encode_simple): Use new CTB when we don't have the
8044         length of the file.  This is somewhat strange as the comment above
8045         indicates that this part is actually fixed for PGP 5 - maybe I simply
8046         lost the source line, tsss.
8048         * armor.c (armor_filter): Set a flag if no OpenPGP data has been found.
8049         * verify.c (verify_signatures): Add an error helptext.
8051 Thu Sep 23 19:24:30 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8053         * openfile.c (open_outfile): Fixed the 8dot3 handling.
8055         * passphrase.c (passphrase_to_dek): Print uid using utf8 func.
8056         * delkey.c (delete_key): Ditto.
8057         * pkclist.c (show_paths,do_edit_ownertrust,do_we_trust): Ditto
8058         (do_we_trust_pre): Ditto.
8059         * trustdb.c (print_user_id,check_uidsigs): Ditto.
8060         * revoke.c (gen_revoke,ask_revoke_sig): Ditto.
8062 Thu Sep 23 09:52:58 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8064         * verify.c (print_file_status): New.
8065         (verify_one_file): Moved status print to th new fnc. Add error status.
8066         * status.c, status.h (STATUS_FILE_ERROR): New
8068 Wed Sep 22 10:14:17 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8070         * openfile.c (make_outfile_name): Use case-insenstive compare for
8071         DOS systems.  Add ".pgp" to the list of know extensions.
8072         (open_outfile): For DOS systems try to replace the suffiy instead of
8073         appending it.
8075         * status.c, status.h: Add STATUS_FILE_{START,DONE}.
8076         * verify.c (verify_one_file): Emit these new stati.
8078         * sign.c (clearsign_file): Avoid duplicated Entries in the "Hash:"
8079         line.  Those headers are now only _not_ printed when there are
8080         only old-style keys _and_ all hashs are MD5.
8082 Mon Sep 20 12:24:41 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8085         * verify.c (verify_files, ferify_one_file): New.
8086         * g10.c:  New command --verify-files
8088 Fri Sep 17 12:56:42 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8090         * g10.c: Add UK spelling as alias for armor options ;-)
8092         * import.c (append_uid): Fixed a SEGV when there is no selfsig and
8093         no subkey.
8094         (merge_sigs): Ditto.  Removed the assertion.
8096 Wed Sep 15 16:22:17 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8098         * g10.c: New option --entropy-dll-name
8100 Mon Sep 13 10:51:29 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8102         * signal.c (got_fatal_signal): Print message using write(2) and
8103         only for development versions.
8105 Mon Sep  6 19:59:08 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8107         * tdbio.c (tdbio_set_dbname): Use mkdir macro
8108         * ringedit.c (add_keyblock_resource): Ditto.
8110 Fri Sep  3 10:04:45 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8112         * pkclist.c (build_pk_list): Skip keys set with --encrypt-to also
8113         when asking for a key.
8115         * plaintext.c (handle_plaintext): Make sure that we don't read a
8116         second EOF in the read loop for partial length packets.
8118         * mainproc.c (check_sig_and_print): print user ID as utf-8.
8120 Thu Sep  2 16:40:55 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8122         * import.c (merge_blocks): First add new subkeys, then merge subkey
8123         certificates.
8124         (merge_sigs): Don't merge subkey signatures here.
8126 Wed Sep  1 15:30:44 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8128         * keygen.c (ask_expire_interval): Fixed bug related to cpr_xx (tnx
8129         Francis J. Lacoste).
8131 Tue Aug 31 17:20:44 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8133         * plaintext.c (do_hash): Hash CR,LF for a single CR.
8134         (ask_for_detached_datafile): Changed arguments to be closer to
8135         those of hash_datafiles and cleanup the code a bit.
8136         * mainproc.c (proc_tree): Workaround for pgp5 textmode detached
8137         signatures.  Changed behavior of asking for data file to be the same
8138         as with provided data files.
8140         * keylist.c (list_keyblock): Use UTF8 print functions.
8142 Mon Aug 30 20:38:33 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8144         * import.c (chk_self_sigs): some s/log_error/log_info/ so that gpg
8145         does not return an error if a key has some invalid packets.
8147         * helptext.c: Fixed some typos and changed the way the
8148         translation works.  The english text is now the keyword for gettext
8149         and not anymore the keyword supplied to the function.  Done after
8150         some discussion with Walter who thinks this is much easier for the
8151         translators.
8153         * misc.c (disable_core_dumps): Don't do it for DOSish systems.
8155         * signal.c (signal_name): Bounds check on signum.
8157 Wed Aug  4 10:34:18 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8159         * pubring.asc: Updated.
8161         * pkclist.c (do_we_trust_pre,check_signatures_trust): Do not print
8162         the warning about --always_trust when --quiet is used.
8164         * pkclist.c (fpr_info): New and called at several places.
8166         * parse-packet.c (dump_sig_subpkt): List revocation key contents.
8168 Mon Jul 26 09:34:46 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8170         * pkclist.c (build_pk_list): Fixed typo in format string.
8172         * trustdb.c (create_shadow_dir): Don't translate the error string.
8174         * g10.c (main): Fixed spelling of user-id.
8175         * getkey.c (find_by_name_pk,find_by_name_sk,
8176         find_by_keyid,find_by_keyid_sk): Ditto and translate it.
8177         * import.c (mark_non_selfsigned_uids_valid,delete_inv_parts): Ditto.
8180 Mon Jul 26 01:01:39 CEST 1999  Michael Roth <mroth@nessie.de>
8182         * g10.c, options.h: New options --no-literal and --set-filesize
8184         * encode.c (encode_simple, encode_crypt): Support for the options
8185         --no-literal and --set-filesize.
8187         * sign.c (sign_file): ditto.
8189 Fri Jul 23 13:53:03 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8192         * ringedit.c (enum_keyblocks): Removed annoying error message in cases
8193         when we have no keyring at all to enum.
8195         * getkey.c (classify_user_id): Rewrote to relax the recognition of
8196         keyIDs and fingerprints (Michael).
8198         * mainproc.c (check_sig_and_print): Print status NO_PUBKEY.
8199         (print_failed_pkenc): Print status NO_SECKEY.
8201         * import.c (mark_non_selfsigned_uids_valid): New.
8202         * g10.c: New option --allow-non-selfsigned-uid.
8204         * pkclist.c (print_fpr): New.
8205         (do_we_trust_pre): Print the fpr before asking whether to use the key
8206         anyway.
8207         (do_edit_ownertrust): Likewise.
8209 Thu Jul 22 20:03:03 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8212         * ringedit.c (enum_keyblocks): Removed annoying error message in cases
8213         when we have no keyring at all to enum.
8215         * getkey.c (classify_user_id): Rewrote to relax the recognition of
8216         keyIDs and fingerprints (Michael).
8218         * mainproc.c (check_sig_and_print): Print status NO_PUBKEY.
8219         (print_failed_pkenc): Print status NO_SECKEY.
8221         * import.c (mark_non_selfsigned_uids_valid): New.
8222         * g10.c: New option --allow-non-selfsigned-uid.
8224 Thu Jul 15 10:15:35 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8226         * g10.c: New options --disable-{cipher,pubkey}-algo.
8228 Wed Jul 14 19:42:08 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8230         * status.h (STATUS_IMPORTED): New.
8231         * import.c (import): Print some status information (Holger Schurig).
8233         * g10.c (main): Make --no-greeting work again. Add a warning when
8234         --force-mds is used.
8236 Tue Jul 13 17:39:25 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8238         * pkclist.c (do_edit_ownertrust): Changed the way help works.
8239         (build_pk_list): Implemented default recipient stuff.
8240         * g10.c: New options --default-recipient[-self]
8241         (main): Suppress greeting in most cases, entering a passphrase or
8242         a missing value is not considered to be interactive use.
8243         Merged --print-md and --print-mds; the latter is now obsolete.
8244         Changed the way --gen-random works and documented it.
8245         Changed the way --gen-prime works and add a man entry.
8246         * g10.c (MAINTAINER_OPTIONS): Removed.
8248 Mon Jul 12 18:45:57 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8250         * keyedit.c (keyedit_menu): Add arg sign_mode and changed callers
8251         * g10.c (main): New command --lsign-key.
8253 Mon Jul 12 14:55:34 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8255         * mainproc.c (kidlist_item): New.
8256         (release_list): Release failed pk-enc-list.
8257         (print_failed_pkenc): New
8258         (proc_encrypted): Print info about failed PK enc.
8260         * openfile.c (make_outfile_name): s/error/info/
8262         * passphrase.c (passphrase_to_dek): Return an empty passphrase when
8263         in batch mode and don't make the warning message fatal
8264         * seckey-cert.c (check_secret_key): Try only once when in batch mode.
8266         * g10.c (make_username): New.
8268 Thu Jul  8 16:21:27 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8271         * packet.h (PKT_ring_trust): New
8272         * parse-packet.c (parse_trust): Store trust value
8273         * build-packet (build_packet): Ignore ring trust packets.
8274         * mainproc.c (add_ring_trust): New.
8275         (list_node): Print "rtv" records.
8276         * g10.c: New option --with-fingerprint.
8278         * trustdb.c (verify_own_keys): Don't insert if we are dry running
8279         (check_trust): Ditto.
8281 Wed Jul  7 13:08:40 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8283         * Makefile.am: Support for libtool.
8285         * keygen.c (ask_expire_interval): Hack to allow for an expire date.
8287         * trustdb.c (do_update_trust_record,update_trust_record): Splitted.
8288         (check_trust_record): New.
8289         (check_trust,build_cert_tree): Check the dir record as needed.
8290         (upd_pref_record): Removed.
8291         (make_pref_record): New.
8292         (propagate_validity): Stop as soon as we have enough validity.
8294         * tbdio.c (MAX_CACHE_ENTRIES_HARD): Increased the limit.
8297 Fri Jul  2 11:45:54 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8299         * g10.c (g10_exit): Dump random stats.
8301         * sig-check.c (check_key_signature,check_key_signature2): Enhanced
8302         version and wrapper for old function.
8303         (do_signature_check,signature_check): Ditto.
8305 Thu Jul  1 12:47:31 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8308         * keyedit.c (show_key_with_all_names): Print a notice for disabled keys.
8309         (enable_disable_keys): Add functionality
8310         * pkclist.c (edit_ownertrust): preserve disabled state.
8311         (build_pk_list): Skip disabled keys.
8312         * trustdb.c (upd_one_ownertrust): Ditto.
8313         (build_cert_tree): Mask the ownertrust.
8314         (trust_letter): Mask the value.
8315         (do_check): Take disabled flag into account.
8317         * passphrase.c (passphrase_to_dek): Add a pubkey_algo arg and changed
8318         all callers.
8320         * g10.c (utf8_strings): 2 new options.
8322         * trustdb.c (insert_trust_record_by_pk): New, replaces the next one.
8323         (insert_trust_record): Now takes a keyblock as arg.  Changed all
8324         callers to use the appropritae function.
8326         * openfile.c (ask_outfile_name): New.
8327         * plaintext.c (handle_plaintext): Ask for filename if there is
8328         no valid syntax. Don't use fname varbatim but filter it.
8330 Tue Jun 29 21:44:25 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8333         * trustdb.h (TRUST_FLAG_DISABLED): New.
8335         * status.c (USE_CAPABILITIES): Capabilities support (Remi).
8337         * tdbio.c : Added new fields to the DIR record.
8338         (tdbio_write_record): Fixed the update of the hash tables.
8339         (tdbio_delete_record): Drop the record from the hash tables.
8340         (drop_from_hashtbl): New.
8342         * status.c (cpr_get): Special online help mode.
8343         * helptext.c ("keyedit.cmd"): Removed.
8344         * keyedit.c (keyedit_menu): Use only help system.
8345         (enable_disable_key): New bit doies not yet work.
8347 Sat Jun 26 12:15:59 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8350         * dearmor.c (enarmor_file): Fixed comment string.
8351         * tdbdump.c (export_ownertrust): Text fix.
8352         * tbio.c (tdbio_invalid): Ditto.
8354         * parse-packet.c (parse_key): Made temp buffer larger.
8356         * Makefile.am (install-data-local): Add missing backslashes
8358 Tue Jun 15 12:21:08 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8360         * g10.c (main): Made iterated+salted the default S2K method.
8362         * Makefile.am (install-data-local): Use DESTDIR.
8364         * passphrase.c (passphrase_to_dek): Emit missing-passphrase while in
8365         batchmode.
8367         * parse-packet.c (parse_pubkeyenc): Fixed a SEGV.
8369 Mon Jun 14 21:18:54 CEST 1999 Michael Roth <mroth@nessie.de>
8371         * g10.c: New options --openpgp, --no-tty, --emit-version,
8372           --default-comment and --lock-multiple
8374 Thu Jun 10 14:18:23 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8376         * free-packet.c (free_encrypted): Fixed EOF case (Remi).
8377         (free_plaintext): Ditto.
8379         * helptext.c (keyedit.delsig.unknown): New (Remi).
8380         * keyedit.c (print_and_check_one_sig): Add arg print_without_key and
8381         changed all callers to make use of it (Remi):
8383 Tue Jun  8 13:36:25 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8385         * keylist.c (print_key_data): New and called elsewhere.
8386         * g10.c: New option --with-key-data
8388 Wed Jun  2 14:17:19 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8390         * mainproc.c (proc_tree): Yet another bad hack to cope with
8391         broken pgp2 created detached messages in textmode.
8393 Tue Jun  1 16:01:46 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8395         * openfile.c (make_outfile_name): New.
8396         * plaintext.c (handle_plaintext): Outputfile is now the inputfile
8397         without the suffix.
8398         * g10.c: New option --use-embedded-filename
8400 Mon May 31 19:41:10 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8402         * g10.c (main): Fix for SHM init (Michael).
8404         * compress.c, encr-data.c, mdfilter.c,
8405           plaintext.c, free-packet.c: Speed patches (Rémi).
8407 Thu May 27 09:40:55 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8409         * status.c (cpr_get_answer_yes_no_quit): New.
8410         * keyedit.c (menu_delsig): New.
8411         (check_all_keysigs): Splitted.
8412         (print_and_check_one_sig): New.
8414 Wed May 26 14:36:29 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8416         * build-packet.c (build_sig_subpkt): Support large packets.
8417         * parse-packet.c (enum_sig_subpkt): Replaces parse_sig_subpkt.
8418         * mainproc.c (print_notation_data): Print all notation packets.
8419         * g10.c (add_notation_data): Add a way to specify the critical flag.
8420         (main): Add option --set-policy-url.
8421         (check_policy_url): Basic checks.
8422         * sign.c (mk_notation_and_policy): Replaces mk_notation.
8424         * parse-packet.c (can_handle_critical): Moved decision whether we can
8425         handle critical subpacket to an extra function.
8427 Tue May 25 19:50:32 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8429         * sign.c (sign_file): Always use compression algo 1 for signed
8430         onyl file becuase we can´ be sure the the verifier supports other
8431         algorithms.
8433         * build-packet.c (build_sig_subpkt): Support for notation data.
8434         * sign.c (sign_file,clearsign_file,make_keysig_packet): Ditto.
8435         (mk_notation): New.
8436         * g10.c (add_notation_data): New and add option -N
8437         * mainproc.c (print_notation_data): New.
8438         (check_sig_and_print): Print any notation data of the signed text.
8440 Sun May 23 14:20:22 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8442         * pkclist.c (check_signatures_trust): Print a warning and return
8443         immediateley if opt.always_trust is true.
8445         * g10.c (main): Corrected handling of no-default-keyring
8447         * pkclist.c (algo_available): Disable Twofish until we have settled
8448         how to do the MDC.
8450         * hkp.c: Disable everything for mingw32
8452 Sat May 22 22:47:26 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8454         * mainproc.c (check_sig_and_print): Add sig creation time to the
8455         VALIDSIG status output. Add more info to the ERRSIG output.
8456         * sig-check.c (signature_check): Add sig time after epoch to SIG_ID.
8458         * import.c (import_one): Merge duplicate user IDs.
8459         (collapse_uids): New.
8460         * kbnode.c (move_kbnode): New.
8461         (remove_kbnode): New.
8462         * keyedit.c (keyedit_menu): Call collapse_uids.
8464         * g10.c: new option --logger-fd.
8466         * import.c: s/log_*_f/log_*/
8468 Thu May 20 14:04:08 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8470         * misc.c (pull_in_libs): do the volatile only for gcc
8472         * sig-check (signature_check): Emit SIG_iD only for classes 0 and 1.
8474         * armor.c (armor_filter): Add detection of PGP2 created clearsigs.
8475         (fake_packet): A tab is not a WS for pgp2 - handle this.
8476         * textfilter.c (len_without_trailing_chars): New.
8477         (copy_clearsig_text): Add pgp2mode arg.
8478         * sign.c (clearsign_file): pass old_style to the above fnc.
8481 Wed May 19 16:04:30 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8483         * g10.c: New option --interactive.
8485         * mainproc.c (proc_plaintext): Add workaround for pgp2 bug
8486         (do_check_sig): Ditto.
8487         (proc_tree): Ditto.
8488         * plaintext.c (do_hash): Ditto.
8489         (hash_datafiles): Ditto, add an arg, changed all callers.
8490         * mdfilter.c (md_filter): Add support for the alternate hash context.
8492 Mon May 17 21:54:43 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8494         * parse-packet.c (parse_encrypted): Support for PKT_ENCRYPTED_MDC.
8495         * build-packet.c (do_encrypted_mdc): Ditto.
8496         * cipher.c (write_header): Add mdc hashing.
8497         (cipher_filter): write out the hash.
8498         * mainproc.c (do_proc_packets): Add PKT_ENCRYPTED_MDC.
8499         * encr-data.c (decrypt_data): Add mdc hashing.
8500         (mdc_decode_filter): New.
8502         * parse-packet.c (parse_sig_subpkt): Fixed stupid bug for subpkt
8503         length calculation
8504         (parse_signature): Fixed even more stupid bug.
8506 Sat May  8 19:28:08 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8508         * build-packet.c (do_signature): Removed MDC hack.
8509         * encode.c (encode_crypt_mdc): Removed.
8510         * mainproc.c (do_check_sig): Removed MDC hack.
8511         (check_sig_and_print): Ditto.
8512         * parse-packet.c (parse_signature): Ditto.
8513         * sig-check.c (mdc_kludge_check): Ditto.
8514         * free-packte.c (copy_signature, free_seckey_enc): Ditto.
8516         * parse-packet.c (parse_signature,parse_key): Store data of
8517         unknown algorithms with mpi_set_opaque inseatd of the old
8518         faked data stuff.
8519         (read_rest): Removed.
8520         (read_rest2): Renamed to read_rest
8521         * build-packet.c (write_fake_data): Use mpi_get_opaque.
8522         * free-packet.c (cp_fake_data): Removed and cahnged all callers
8523         to use mpi_copy.
8524         (free_pubkey_enc,free_seckey_enc,release_public_key_parts,
8525          release_secret_key_parts): Use mpi_free for opaque data.
8527 Thu May  6 14:18:17 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8529         * trustdb.c (check_trust): Check for revoked subkeys.
8530         * pkclist.c (do_we_trust): Handled revoked subkeys.
8531         (do_we_trust_pre): Ditto.
8532         (check_signatures_trust): Ditto.
8534         * build-packet.c (hash_public_key): Fix for ancient g10 keys.
8536         * mainproc.c (do_proc_packets): Return EOF if no data has been read.
8537         * g10.c (main): Catch errors for default operation.
8539 Thu Apr 29 12:29:22 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8541         * sign.c (sign_file): Fixed hashing in case of no subpackets.
8542         (clearsign_file): Ditto.
8543         (make_keysig_packet): Ditto.
8545 Wed Apr 28 13:03:03 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8547         * keyedit.c (keyedit_menu): Add new command revkey.
8548         * (menu_revkey): New.
8551 Mon Apr 26 17:48:15 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8553         * parse-packet.c (parse_signature): Add the MDC hack.
8554         * build-packet.c (do_signature): Ditto.
8555         * free-packet.c (free_seckey_enc,copy_signature,cmp_signatures): Ditto.
8556         * mainproc.c (do_check_sig): Ditto.
8557         * sig-check.c (mdc_kludge_check): New.
8558         * encode.c (encrypt_mdc_file): New.
8560         * keyedit.c (check_all_keysigs): List revocations.
8561         * (menu_revsig): New.
8562         * sign (make_keysig_packet): Support for class 0x30.
8564 Sun Apr 18 20:48:15 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8566         * pkclist.c (select_algo_from_prefs): Fixed the case that one key
8567         has no preferences (Remi Guyomarch).
8569         keylist.c (list_keyblock): ulti_hack to propagate trust to all uids.
8571 Sun Apr 18 10:11:28 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8573         * seckey-cert.c (do_check): Use real IV instead of a 0 one, so that
8574         it works even if the length of the IV doesn't match the blocksize.
8575         Removed the save_iv stuff.
8576         (protect_secret_key): Likewise.  Create the IV here.
8577         * packet.h (PKT_secret_key): Increased size of IV field and add a
8578         ivlen field.
8579         * parse-packet.c (parse_key): Use the len protect.ivlen.
8580         * build-packet.c (do_secret_key). Ditto.
8582         * getkey.c (key_byname): Close keyblocks.
8584         * Makefile.am (gpgm): Removed this
8585         * g10.c: Merged gpg and gpgm
8587         * import.c (import): Utilize option quiet.
8588         * tdbio.c (tdbio_set_dbname): Ditto.
8589         * ringedit.c (add_keyblock_resource,keyring_copy): Ditto.
8591         * keyedit.c (sign_uids): Add some batch support.
8593         * g10.c (main): add call to tty_batchmode.
8595 Fri Apr  9 12:26:25 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8597         * status.c (write_status_text): Some more status codes.
8598         * passphrase_to_dek (passphrase_to_dek): add a status code.
8599         * seckey_cert.c (check_secret_key): Likewise.
8601         * encr-data.c (decrypt_data): Reverse the last changes
8602         * cipher.c (write_header): Ditto.
8604         * parse-packet.c (parse_key): Dropped kludge for ancient blowfish mode.
8606 Thu Apr  8 09:35:53 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8608         * mainproc.c (proc_encrypted): Add a new status output
8609         * passphrase.c (passphrase_to_dek): Ditto.
8610         * status.h status.c: Add new status tokens.
8612 Wed Apr  7 20:51:39 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8614         * encr-data.c (decrypt_data): Fixes for 128 bit blocksize
8615         * cipher.c (write_header): Ditto.
8616         * seckey-cert.c (do_check): Ditto.
8617         (protect_secret_key). Ditto.
8618         * misc.c (print_cipher_algo_note): Twofish is now a standard algo.
8620         * keygen.c (do_create): Fixed spelling (Gaël Quéri)
8621         (ask_keysize): Only allow keysizes up to 4096
8623         * ringedit.c (add_keyblock_resource): chmod newly created secrings.
8625         * import.c (delete_inv_parts): Fixed accidently deleted subkeys.
8627 Tue Apr  6 19:58:12 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8629         * armor.c: Removed duped include (John Bley)
8630         * mainproc.c: Ditto.
8632         * build-packet.c (hash_public_key): Fixed hashing of the header.
8634         * import.c (delete_inv_parts): Allow import of own non-exportable sigs.
8636 Sat Mar 20 13:59:47 CET 1999  Werner Koch  <wk@isil.d.shuttle.de>
8638         * armor.c (fake_packet): Fix for not not-dash-escaped
8640 Sat Mar 20 11:44:21 CET 1999  Werner Koch  <wk@isil.d.shuttle.de>
8642         * g10.c (main): Added command --recv-keys
8643         * hkp.c (hkp_import): New.
8645 Wed Mar 17 13:09:03 CET 1999  Werner Koch  <wk@isil.d.shuttle.de>
8647         * trustdb.c (check_trust): add new arg add_fnc and changed all callers.
8648         (do_check): Ditto.
8649         (verify_key): Ditto.
8650         (propagate_validity): Use the new add_fnc arg.
8651         (print_user_id): Add the FILE arg.
8652         (propagate_ownertrust): New.
8653         * pkclist.c (add_ownertrust_cb): New and changed the add_ownertrust
8654         logic.
8656         * getkey.c (get_keyblock_bylid): New.
8657         * trustdb.c (print_uid_from_keyblock): New.
8658         (dump_tn_tree_with_colons): New.
8659         (list_trust_path): Add colon print mode.
8661         * trustdb.c (insert_trust_record): Always use the primary key.
8663         * encode.c (encode_simple): Added text_mode filter (Rémi Guyomarch)
8664         (encode_crypt): Ditto.
8666         * mainproc.c (proc_pubkey_enc): Added status ENC_TO.
8667         * armor.c (armor_filter): Added status NODATA.
8668         * passphrase.c (passphrase_to_dek): Always print NEED_PASSPHRASE
8669         * seckey_cert.c (check_secret_key): Added BAD_PASS status.
8671         * g10.c (main): Set g10_opt_homedir.
8673 Sun Mar 14 19:34:36 CET 1999  Werner Koch  <wk@isil.d.shuttle.de>
8675         * keygen.c (do_create): Changed wording of the note (Hugh Daniel)
8677 Thu Mar 11 16:39:46 CET 1999  Werner Koch  <wk@isil.d.shuttle.de>
8679         * tdbdump.c: New
8681         * trustdb.c (walk_sigrecs,do_list_sigs,list_sigs,
8682         list_records,list_trustdb,export_ownertrust,import_ownertrust): Moved
8683         to tdbdump.c
8684         (init_trustdb): renamed to setup_trustdb.  Changed all callers.
8685         (do_init_trustdb): renamed to init_trustdb().
8686         * trustdb.c (die_invalid_db): replaced by tdbio_invalid.
8687         * tdbio.c (tdbio_invalid): New.
8689         * import.c (delete_inv_parts): Skip non exportable signatures.
8690         * keyedit.c (sign_uid_mk_attrib): New.
8691         (sign_uids): Add the local argument.
8692         (keyedit_menu): New "lsign" command.
8693         * trustdb.c (register_trusted_key): Removed this and all related stuff.
8694         * g10.c (oTrustedKey): Removed option.
8696         * tdbio.h (dir.valcheck): New trustdb field.
8697         * tdbio.c: Add support for this field
8698         (tdbio_read_modify_stamp): New.
8699         (tdbio_write_modify_stamp): New.
8700         * trustdb.c (do_check): Check against this field. Removed cache update.
8701         (verify_key): Add cache update.
8702         (upd_uid_record): Some functional changes.
8703         (upd_cert_record): Ditto
8705 Wed Mar 10 11:26:18 CET 1999  Werner Koch  <wk@isil.d.shuttle.de>
8707         * keylist.c (list_keyblock): Fixed segv in uid. Print 'u' as
8708         validity of sks.
8710 Mon Mar  8 20:47:17 CET 1999  Werner Koch  <wk@isil.d.shuttle.de>
8712         * getkey.c (classify_user_id): Add new mode 12 (#<lid>).
8714         * seckey-cert.c (check_secret_key): replaced error by info.
8716         * trustdb.c (query_trust_info): Add another arg, changed all callers.
8717         (check_trust): Ditto.
8718         (do_check): Ditto.
8719         (verify_key): Handle namehash.
8720         * keylist.c (list_keyblock): print trust info for user ids.
8722         * sig-check.c (signature_check): Add sig-created to status output.
8724 Tue Mar  2 16:44:57 CET 1999  Werner Koch  <wk@isil.d.shuttle.de>
8726         * textfilter.c (copy_clearsig_text): New.
8727         (clearsign): Removed.
8728         * sign.c (clearsign_file): does not use textfiler anymore.
8730         * keygen.c (ask_user_id): print a note about the used charset.
8732 Tue Mar  2 10:38:42 CET 1999  Werner Koch  <wk@isil.d.shuttle.de>
8734         * sig-check.c (signature_check): sig-id now works for all algos.
8736         * armor.c (armor_filter): Fixed armor bypassing.
8738 Sun Feb 28 19:11:00 CET 1999  Werner Koch  <wk@isil.d.shuttle.de>
8740         * keygen.c (ask_user_id): Don't change the case of email addresses.
8741         (has_invalid_email_chars): Adjusted.
8743         * keylist.c (list_one): Really list serect keys (Remi Guyomarch)
8745         * keyedit.c (menu_select_uid): Add some braces to make egcs happy.
8746         (menu_select_key): Ditto.
8748         * mainproc.c (do_proc_packets): List sym-enc packets (Remi Guyomarch)
8750 Fri Feb 26 17:55:41 CET 1999  Werner Koch  <wk@isil.d.shuttle.de>
8752         * pkclist.c (build_pk_list): Return error if there are no recipients.
8754         * sig-check.c (signature_check): New signature id feature.
8755         * armor.c (make_radic64_string): New.
8757         * mainproc.c (proc_pubkey_enc): early check for seckey availability.
8759         * pkclist.c (do_we_trust_pre): print user id before asking.
8761         * ringedit.c (add_keyblock_resource,get_keyblock_handle): Cleaner
8762         handling of default resource.
8765 Thu Feb 25 18:47:39 CET 1999  Werner Koch  <wk@isil.d.shuttle.de>
8767         * pkclist.c (algo_available): New.
8768         (select_algo_from_prefs): Check whether algo is available.
8770         * ringedit.c (keyring_copy): Take care of opt.dry_run.
8771         (do_gdbm_store): Ditto.
8772         * openfile.c (open_outfile). Ditto.
8773         (copy_options_file): Ditto.
8774         * trustdb.c (update_trustdb): Ditto.
8775         (clear_trust_checked_flag): Ditto.
8776         (update_trust_record): Ditto.
8777         (insert_trust_record): Ditto.
8779 Wed Feb 24 11:07:27 CET 1999  Werner Koch  <wk@isil.d.shuttle.de>
8781         * keylist.c (secret_key_list): Now really list the secret key.
8783         * trustdb.c (do_init_trustdb): New. Init is now deferred.
8785 Mon Feb 22 20:04:00 CET 1999  Werner Koch  <wk@isil.d.shuttle.de>
8787         * getkey.c (lookup_sk): Return G10ERR_NO_SECKEY and not x_PUBKEY.
8789 Fri Feb 19 15:49:15 CET 1999  Werner Koch  <wk@isil.d.shuttle.de>
8791         * pkclist.c (select_algo_from_prefs): retrieve LID if not there.
8793         * armor.c (fake_packet): Replaced ugly lineending handling.
8795         * g10.c (oNoEncryptTo): New.
8796         * pkclist.c (build_pk_list): Implemented this option.
8798         * g10.c (main): Greeting is now printed to stderr and not to tty.
8799         Use add_to_strlist() instead of direct coding.
8801         * import.c (import): Use iobuf_push_filter2.
8803         * mainproc.c (check_sig_and_print): Print all user ids
8804         for good signatures.
8805         * getkey.c (get_pubkeyblock): New.
8807         * import.c (chk_self_sigs): Fixed SEGV for unbounded class 0x18 keys.
8808         (delete_inv_parts): Delete special marked packets.
8810 Tue Feb 16 14:10:02 CET 1999  Werner Koch  <wk@isil.d.shuttle.de>
8812         * g10.c (main): New option --encrypt-to
8814         * pkclist.c (build_pk_list): Implemented encrypt-to.
8816         * parse-packet.c (parse_user_id): Removed the hack to work with
8817         utf-8 strings.
8819         * g10.c (main): Install lockfile cleanup handler.
8820         * tdbio.c (cleanup): Removed: this is now handled by dotlock.
8822 Sat Feb 13 14:13:04 CET 1999  Werner Koch  <wk@isil.d.shuttle.de>
8824         * tdbio.c (tdbio_set_dbname): Init lockhandle for a new trustdb
8826 Wed Feb 10 17:15:39 CET 1999  Werner Koch  <wk@isil.d.shuttle.de>
8828         * g10.c (main): check for development version now in configure
8830         * tdbio.c (tdbio_write_record): Add uid.validity
8831         (tdbio_read_record) : Ditto.
8832         (tdbio_dump_record) : Ditto.
8834         * keygen.c (keygen_add_std_prefs): Replaced Blowfish by Twofish,
8835         removed MD5 and Tiger.
8836         * pubkey-enc.c (get_it): Suppress warning about missing Blowfish
8837         in preferences in certain cases.
8839         * ringedit.c (lock_rentry,unlock_rentry): New.
8841         * getkey.c (key_byname): Pass ret_kb down to lookup_xx.
8843         * armor.c (armor_filter): No output of of empty comment lines.
8844         Add option --no-version to suppress the output of the version string.
8846         * getkey.c: Release the getkey context for auto context variables.
8848 Sun Jan 24 18:16:26 CET 1999  Werner Koch  <wk@isil.d.shuttle.de>
8850         * getkey.c: Changed the internal design to allow simultaneous
8851         lookup of multible user ids
8852         (get_pubkey_bynames): New.
8853         (get_seckey_bynames): New.
8854         (get_seckey_next): New.
8855         (get_seckey_end): New.
8856         * keylist.c (list_one): Use the new functions.
8858         * keylist.c (list_keyblock): add a newline for normal listings.
8860         * g10.c (--recipient): New option name to replace --remote-user
8863 Wed Jan 20 18:59:49 CET 1999  Werner Koch  <wk@isil.d.shuttle.de>
8865         * textfilter.c: Mostly rewritten
8866         * plaintext.c (handle_plaintext): Use now text_filter semantics.
8868 Tue Jan 19 19:34:58 CET 1999  Werner Koch  <wk@isil.d.shuttle.de>
8870         * export.c (export_pubkeys_stream): New.
8871         (do_export_stream): New.
8872         * g10.c (aSendKeys): New command.
8873         * hkp.c (hkp_export): New.
8875         * compress.c (do_uncompress): Hack for algo 1 and 1.1.3
8877 Sun Jan 17 11:04:33 CET 1999  Werner Koch  <wk@isil.d.shuttle.de>
8879         * textfilter.c (text_filter): Now uses iobuf_read_line().
8880         (read_line): Removed.
8882         * armor.c (trim_trailing_spaces): Removed and replaced
8883         by trim_trailing_ws from libutil
8885 Sat Jan 16 12:03:27 CET 1999  Werner Koch  <wk@isil.d.shuttle.de>
8887         * hkp.c (hkp_ask_import): Use only the short keyid
8889 Sat Jan 16 09:27:30 CET 1999  Werner Koch  <wk@isil.d.shuttle.de>
8891         * import.c (import_key_stream): New
8892         (import): New, moved most of import_keys here.
8893         * g10.c: New option --keyserver
8894         * mainproc.c (check_sig_and_print): Hook to import a pubkey.
8896         * pref.c pref.h : Removed
8898         * hkp.c hkp.h: New
8900 Wed Jan 13 14:10:15 CET 1999  Werner Koch  <wk@isil.d.shuttle.de>
8902         * armor.c (radix64_read): Print an error if a bad armor was detected.
8904 Wed Jan 13 12:49:36 CET 1999  Werner Koch  <wk@isil.d.shuttle.de>
8906         * armor.c (radix64_read): Now handles malformed armors produced
8907         by some buggy MUAs.
8909 Tue Jan 12 11:17:18 CET 1999  Werner Koch  <wk@isil.d.shuttle.de>
8911         * ringedit.c (find_keyblock_bysk): New.
8913         * skc_list.c (is_insecure): New.
8914         (build_sk_list): usage check for insecure keys.
8916         * import.c (chk_self_sigs): Add handling for subkeys.
8917         (delete_inv_parts): Skip unsigned subkeys
8919         * sig-check.c (do_check): Print info if the signature is older
8920         than the key.
8921         * keygen.c (generate_subkeypair): Fail on time warp.
8922         * sign.c (do_sign): Ditto.
8924 Sun Jan 10 15:10:02 CET 1999  Werner Koch  <wk@isil.d.shuttle.de>
8926         * armor.c (fake_packet): Fixed not-dash-escaped bug.
8928 Sat Jan  9 16:02:23 CET 1999  Werner Koch  <wk@isil.d.shuttle.de>
8930         * sig-check.c (do_check): Output time diff on error
8932         * status.c (STATUS_VALIDSIG): New.
8933         (is_status_enabled): New.
8934         * mainproc.c (check_sig_and_print): Issue that status message.
8936         * plaintext.c (special_md_putc): Removed
8938         * armor.c (armor_filter): print error for truncated lines.
8940         * free-packet.c (free_encrypted): Revomed call to set_block_mode.
8941         (free_plaintext): Ditto.
8943 Thu Jan  7 18:00:58 CET 1999  Werner Koch  <wk@isil.d.shuttle.de>
8945         * pkclist.c (add_ownertrust): Fixed return value.
8947         * encr-data.c (decrypt_data): Disabled iobuf_set_limit and
8948         iobuf_pop_filter stuff.
8949         * compress.c (handle_compressed): Disabled iobuf_pop_filter.
8951         * packet.h (PKT_secret_key): Add is_primary flag.
8952         * parse-packet.c (parse_key): Set this flag.
8953         * passphrase.c (passphrase_to_dek): Kludge to print the primary
8954         keyid - changed the API: keyid must now hold 2 keyids.
8955         * getkey.c (get_primary_seckey): New.
8956         * seckey-cert.c (do_check): pass primary keyid to passphrase query
8958         * tbdio.c (open_db): removed the atexit
8959         (tdbio_set_dbname): and moved it to here.
8961         * armor.c: Rewrote large parts.
8963 Tue Dec 29 19:55:38 CET 1998  Werner Koch  <wk@isil.d.shuttle.de>
8965         * revoke.c (gen_revoke): Removed compression.
8967         * pkclist.c (do_we_trust_pre): special check for revoked keys
8969         * trustdb.c (update_trust_record): Fixed revoke flag.
8971 Tue Dec 29 14:41:47 CET 1998  Werner Koch  <wk@isil.d.shuttle.de>
8973         * misc.c (disable_core_dumps): Check for EINVAL (Atari)
8975         * getkey (merge_one_pk_and_selfsig): Fixed search of expiredate.
8976         (merge_keys_and_selfsig): Ditto.
8978         * free-packet.c (cmp_public_keys): cmp expire only for v3 packets
8979         (cmp_secret_keys): Ditto.
8980         (cmp_public_secret_key): Ditto.
8982 Wed Dec 23 17:12:24 CET 1998  Werner Koch  <wk@isil.d.shuttle.de>
8984         * armor.c (find_header): Reset not_dashed at every header
8986 Wed Dec 23 13:18:14 CET 1998  Werner Koch  <wk@isil.d.shuttle.de>
8988         * pkclist.c (add_ownertrust): Refresh validity values.
8990         * trustdb.c (enum_cert_paths_print): New arg refresh.
8992         * ringedit.c: Fixed problems fix keyrings
8993         * parse-packet.c (dbg_parse_packet): New debug functions.
8995         * getkey.c (getkey_disable_caches): New.
8996         * import.c (import_keys): Disable caches.
8998 Thu Dec 17 18:31:15 CET 1998  Werner Koch  <wk@isil.d.shuttle.de>
9000         * misc.c (trap_unaligned): Only for glibc 1
9002         * sign.c (write_dash_escaped): Now escapes "From " lines
9003         * g10.c: New option --escape-from-lines
9005         * trustdb.c (sort_tsl_list): New
9006         (list_trust_path): Now prints sorted list.
9007         (enum_cert_paths): Likewise.
9008         (enum_cert_paths_print): New.
9009         (print_paths): New printing format.
9010         * pkclist.c (add_ownertrust): New arg quit.
9011         (edit_ownertrust): New quit selection and does not query
9012         the recipients ownertrust anymore.
9013         (add_ownertrust): Print the ceritficate path.
9016 Mon Dec 14 21:18:49 CET 1998  Werner Koch  <wk@isil.d.shuttle.de>
9018         * parse-packet.c (parse_signature): Now checks for critical bit
9019         (parse_sig_subpkt): Splitted.
9020         (parse_one_sig_subpkt): New.
9021         * sig-check.c (do_check): handle critical bit.
9023 Sun Dec 13 14:10:56 CET 1998  Werner Koch  <wk@isil.d.shuttle.de>
9025         * pcklist.c (select_algo_from_prefs): Preferences should
9026         now work (lost the != ? )
9028 Thu Dec 10 20:15:36 CET 1998  Werner Koch  <wk@isil.d.shuttle.de>
9030         * ringedit.c (gdbm_store): Fix for inserts
9032         * g10.c (main): New option --export-all
9033         * export.c (export_pubkeys): New arg.
9034         (do_export): Now may skip old keys.
9036         * status.c: Minor patches for Sun's cc
9038         * keygen.c (ask_algo): Disabled v3 ElGamal choice, rearranged
9039          the numbers.  Add a warning question when a sign+encrypt key
9040          is selected.
9042         * g10.c (do_not_use_RSA): Removed.
9043         * misc.c (print_pubkey_algo_note): New as replacement for the
9044         do_not_use_RSA() and chnaged all callers.
9045         (print_cipher_algo_note): New.
9046         (print_hash_algo_note): New.
9048         * cipher.c (write_header): Add a call to print_cipher_algo_note.
9049         * seckey-cert.c (protect_secret_key): Ditto
9050         * sign.c (do_sign): Add a call to print_digest_algo_note.
9052         * getkey.c (get_long_user_id_string): New.
9053         * mainproc.c (check_sig_and_print): Changed the format of the
9054         status output.
9056         * encrypt.c (write_pubkey_enc_from_list): print used symmetric cipher.
9058         * pkclist.c (do_we_trust): Changed a message.
9060 Wed Dec  9 13:41:06 CET 1998  Werner Koch  <wk@isil.d.shuttle.de>
9062         * misc.c (trap_unaligned) [ALPHA]: Only if UAC_SIGBUS is defined.
9064         * sign.c (write_dash_escaped): Add the forgotten patch by Brian Moore.
9066         * compress.c (do_uncompress): Fixed the inflating bug.
9069 Tue Dec  8 13:15:16 CET 1998  Werner Koch  <wk@isil.d.shuttle.de>
9071         * trustdb.c (upd_uid_record): Now uses the newest self-signature
9072         (insert_trust_record): Now calls update with recheck set to true.
9073         (register_trusted_key): New.
9074         (verify_own_keys): Enhanced by list of trusted keys.
9076         * g10.c (main): Print a warning when a devel version is used.
9077         (main): New option --trusted-key
9079         * import.c (merge_blocks): Fixed merging of new user ids and
9080         added merging of subkeys.
9081         (append_uid): Ditto.
9082         (merge_keysig): New.
9083         (append_key): New.
9084         * getkey.c (merge_one_pk_and_selfsig): Get the expiration time
9085         from the newest self-signature.
9086         (merge_keys_and_selfsig): Ditto.
9088         * free-packet.c (cmp_secret_key): New.
9091 Fri Nov 27 21:37:41 CET 1998  Werner Koch  <wk@isil.d.shuttle.de>
9093         * g10.c: New option --lock-once
9094         * tdbio.c (open_db): Add an atexit
9095         (cleanup): New.
9096         (tdbio_sync): Add locking.
9097         (tdbio_end_transaction): Ditto.
9098         (put_record_into_cache): Ditto.
9099         * ringedit.c (keyring_copy): Ditto.
9100         (cleanup): New.
9101         (add_keyblock_resource): Add an atexit.
9103 Fri Nov 27 15:30:24 CET 1998  Werner Koch  <wk@isil.d.shuttle.de>
9105          * armor.c (find_header): Another fix for clearsigs.
9107 Fri Nov 27 12:39:29 CET 1998  Werner Koch  <wk@isil.d.shuttle.de>
9110         * status.c (display_help): Removed.
9111         * helptext.c: New and removed the N_() from all cpr_gets.
9114 Fri Nov 20 16:54:52 1998  Werner Koch  (wk@isil.d.shuttle.de)
9116         * g10.c (main): New option --not-dash-escaped
9117         * sign.c (write_dashed_escaped): Ditto.
9118         * armor.c (find_header): Support for NotDashEscaped header.
9120         * getkey.c: print "disabled cache.." only if verbose is used.
9122 Thu Nov 19 07:17:31 1998  Werner Koch  <werner.koch@guug.de>
9124         * parse-packet.c (dump_sig_subpkt): Fixed expire listing
9125         * getkey.c (merge_keys_and_selfsig): Fixed expire calculation.
9126         (merge_one_pk_and_selfsig): Ditto.
9127         * keyedit.c (menu_expire). Ditto.
9128         * keygen.c (keygen_add_key_expire): Ditto.
9129         (ask_expire_interval): New and changed all local function to use
9130         this instead.
9131         (keygen_add_key_expire): Opaque should now be a public key;
9132         changed all callers.
9134         * parse.packet.c (parse): use skip_rest to skip packets.
9136         * keyedit.c (keyedit_menu): New arg for cmdline cmds.
9138 Wed Nov 18 20:33:50 1998  Werner Koch  (wk@isil.d.shuttle.de)
9140         * trustdb.c (check_trustdb): Now rechecks all gived userids.
9141         (collect_paths): Some fixes.
9142         (upd_pref_records): Skips empty items, evaluate all items.
9144         * parse-packet.c (dump_sig_subpkt): Better listing of prefs.
9145         (skip_packet): Now knows about marker packet
9147         * g10.c: removed cmd "--edit-sig".
9149         * pubring.asc: Updated.
9151 Sat Nov 14 14:01:29 1998  Werner Koch  (wk@isil.d.shuttle.de)
9153         * g10.c (main): Changed syntax of --list-trust-path
9154         * trustdb.c (list_trust_path): Replaced max_depth by
9155         opt.max_cert_depth
9157 Fri Nov 13 07:39:58 1998  Werner Koch  <werner.koch@guug.de>
9159         * trustdb.c (collect_paths): Removed a warning message.
9160         (enum_trust_web): Removed.
9161         (enum_cert_paths): New.
9162         * pkclist.c (add_ownertrust): Changed to use enum_cert_paths.
9163         (edit_ownertrust): Now list ceritficates on request.
9164         (show_paths): New.
9166 Wed Nov 11 18:05:44 1998  Werner Koch  <werner.koch@guug.de>
9168         * g10.c (main): New option --max-cert-depth
9169         * tdbio.h: add new fields to ver and dir record.
9170         * tdbio.c: read/write/dump of these fields.
9171         (tdbio_db_matches_options): New.
9172         * trustdb.c: replaced MAC_CERT_DEPTH by opt.max_cert_depth.
9173         (do_check): cache validity and changed other functions
9174         to reset the cached value.
9176         * keylist.c (list_one): Now lists the ownertrust.
9177         * mainproc.c (list_node): Ditto.
9179 Tue Nov 10 10:08:59 1998  Werner Koch  (wk@isil.d.shuttle.de)
9181         * g10.c (g10_exit): Now looks at the new g10_errors_seen.
9182         * mainproc.c (check_sig_and_print): Sets g10_errors_seen.
9184         * *.c : i18n many more strings.
9186         * ringedit.c (locate_keyblock_by_keyid): Add HAVE_LIBGDBM
9187         (locate_keyblock_by_fpr): Ditto.
9189         * g10.c (main): removed unsused "int errors".
9190         (main): Add new option --charset.
9192         * g10.c (main): special message for the unix newbie.
9194 Mon Nov  9 07:17:42 1998  Werner Koch  <werner.koch@guug.de>
9196         * getkey.c (finish_lookup): Kludge to prefere algo 16.
9198         * trustdb.c (new_lid_table): Clear cached item.
9200         * status.c (cpr_get_utf8): New.
9201         * pkclist.c (build_pk_list): Uses this.
9203 Sun Nov  8 17:20:39 1998  Werner Koch  (wk@isil.d.shuttle.de)
9205         * mainproc.c (check_sig_and_print): Why did I use strlen()-1
9206         in the printf? - This truncated the TZ.
9208 Sat Nov  7 15:57:28 1998  me,,,  (wk@tobold)
9210         * getkey.c (lookup): Changes to support a read_next.
9211         (get_pubkey): Fixed a memory leak.
9213         * keylist.c (list_one): Now lists all matching user IDs.
9215 Tue Nov  3 16:19:21 1998  Werner Koch  (wk@isil.d.shuttle.de)
9217         * keygen.c (ask_user_id): Now converted to UTF-8
9219         * g10.c (main): Kludge for pgp clearsigs and textmode.
9221 Fri Oct 30 16:40:39 1998  me,,,  (wk@tobold)
9223         * signal.c (block_all_signals): New.
9224         (unblock_all_signals): New
9225         * tdbio.c (tdbio_end_transaction): Now blocks all signals.
9227         * trustdb.c (new_lid_table): Changed the representation of the
9228         former local_lid_info stuff.
9230         * trustdb.c (update_trust_record): Reorganized the whole thing.
9231         * sig-check.c (check_key_signature): Now handles class 0x28
9234 Wed Oct 28 18:56:33 1998  me,,,  (wk@tobold)
9236         * export.c (do_export): Takes care of the exportable sig flag.
9238 Tue Oct 27 14:53:04 1998  Werner Koch  (wk@isil.d.shuttle.de)
9240         * trustdb.c (update_trust_record): New "fast" parameter.
9242 Sun Oct 25 19:32:05 1998  Werner Koch  (wk@isil.d.shuttle.de)
9244         * openfile.c (copy_options_File): New.
9245         * ringedit.c (add_keyblock_resource): Creates options file
9246         * tdbio.c (tdbio_set_dbname): Ditto.
9248 Sat Oct 24 14:10:53 1998  brian moore <bem@cmc.net>
9250         * mainproc.c (proc_pubkey_enc): Don't release the DEK
9251         (do_proc_packets): Ditto.
9253 Fri Oct 23 06:49:38 1998  me,,,  (wk@tobold)
9255         * keyedit.c (keyedit_menu): Comments are now allowed
9257         * trustdb.c: Rewrote large parts.
9260 Thu Oct 22 15:56:45 1998  Michael Roth  (mroth@nessie.de)
9262         * encode.c: (encode_simple): Only the plain filename without
9263         a given directory is stored in generated packets.
9264         (encode_crypt): Ditto.
9266         * sign.c: (sign_file) Ditto.
9269 Thu Oct 22 10:53:41 1998  Werner Koch  (wk@isil.d.shuttle.de)
9271         * trustdb.c (update_trust_record): Add new optional arg.
9273         * import.c (import_keys): Add statistics output
9274         * trustdb.c (update_trustdb): Ditto.
9275         (insert_trustdb): Ditto.
9277         * tdbio.c (tdbio_begin_transaction): New.
9278         (tdbio_end_transaction): New.
9279         (tdbio_cancel_transaction): New.
9281         * g10.c (main): New option --quit.
9283         * trustdb.c (check_hint_sig): No tests for user-id w/o sig.
9284         This caused an assert while checking the sigs.
9286         * trustdb.c (upd_sig_record): Splitted into several functions.
9288         * import.c (import_keys): New arg "fast".
9289         * g10.c (main): New command --fast-import.
9291 Wed Oct 21 18:19:36 1998  Michael Roth <mroth@nessie.de>
9293         * ringedit.c (add_keyblock_resource): Directory is now created.
9294         * tdbio.c (tdbio_set_dbname): New info message.
9296 Wed Oct 21 11:52:04 1998  Werner Koch  (wk@isil.d.shuttle.de)
9298         * trustdb.c (update_trustdb): released keyblock in loop.
9300         * keylist.c (list_block): New.
9301         (list_all): Changed to use list_block.
9303         * trustdb.c: Completed support for GDBM
9305         * sign.c (only_old_style): Changed the way force_v3 is handled
9306         (sign_file): Ditto.
9307         (clearsign_file): Ditto.
9309         * keygen.c (has_invalid_email_chars): Splitted into mailbox and
9310         host part.
9312         * keylist.c (list_one): Add a merge_keys_and_selfsig.
9313         * mainproc.c (proc_tree): Ditto.
9315 Sun Oct 18 11:49:03 1998  Werner Koch  (wk@isil.d.shuttle.de)
9317         * sign.c (only_old_style): Add option force_v3_sigs
9318         (sign_file): Fixed a bug in sig->version
9319         (clearsign_file): Ditto.
9321         * parse-packet.c (dump_sig_subpkt): New
9323         * keyedit.c (menu_expire): New.
9324         * free-packet.c (cmp_signatures): New
9327 Sat Oct 17 10:22:39 1998  Werner Koch  (wk@isil.d.shuttle.de)
9329         * armor.c: changed output line length from 72 to 64.
9331         * keyedit.c (fix_keyblock): New.
9333 Fri Oct 16 10:24:47 1998  Werner Koch  (wk@isil.d.shuttle.de)
9335         * trustdb.c: Rewrote most.
9336         * tdbio.c: Add cache and generalized hash tables.
9338         * options.h (ENABLE_COMMENT_PACKETS): New but undef'ed.
9339         * encode.c, sign.c, keygen.c: Disabled comment packets.
9340         * export.c (do_export): Comment packets are never exported,
9341         except for those in the secret keyring.
9343         * g10.c (main): Removed option do-no-export-rsa; should be
9344         be replaced by a secpial tool.
9345         * export.c (do_export): Removed the code for the above option.
9347         * armor.c (find_header): Support for new only_keyblocks.
9348         * import.c (import_keys): Only looks for keyblock armors.
9350         * packet.h: replaced valid_days by expiredate and changed all users.
9351         * build-packet.c (do_public_key): calculates valid-days
9352         (do_secret_key): Ditto.
9353         * parse-packet.c (parse_key): expiredate is calucated from the
9354         valid_period in v3 packets.
9355         * keyid.c (do_fingerprint_md): calculates valid_dates.
9357         * keygen.c (add_key_expire): fixed key expiration time for v4 packets.
9359         * armor.c (find_header): A LF in the first 28 bytes
9360         was skipped for non-armored data.
9362 Thu Oct  8 11:35:51 1998  Werner Koch  (wk@isil.d.shuttle.de)
9364         * armor.c (is_armored): Add test on old comment packets.
9366         * tdbio.c (tdbio_search_dir_bypk): fixed memory leak.
9368         * getkey.c: Changed the caching algorithms.
9370 Wed Oct  7 19:33:28 1998  Werner Koch  (wk@isil.d.shuttle.de)
9372         * kbnodes.c (unused_nodes): New.
9374 Wed Oct  7 11:15:36 1998  Werner Koch  (wk@isil.d.shuttle.de)
9376         * keyedit.c (sign_uids): Fixed a problem with SK which could caused
9377         a save of an unprotected key.
9378         (menu_adduid): Ditto.
9380         * keyedit.c (keyedit_menu): Prefs are now correctly listed for
9381         new user ids.
9383         * trustdb.c (update_trust_record): New.
9384         (insert_trust_record): Now makes use of update_trust_record.
9386 Tue Oct  6 16:18:03 1998  Werner Koch  (wk@isil.d.shuttle.de)
9388         * trustdb.c (read_record): replaces most of the tdbio_read_records.
9389         (write_record): Ditto.
9391 Sat Oct  3 11:01:21 1998  Werner Koch  (wk@isil.d.shuttle.de)
9393         * keygen.c (ask_alogo): enable ElGamal enc-only only for addmode.
9395 Wed Sep 30 10:15:33 1998  Werner Koch  (wk@isil.d.shuttle.de)
9397         * import.c (import_one): Fixed update of wrong keyblock.
9399 Tue Sep 29 08:32:08 1998  me,,,  (wk@tobold)
9401         * mainproc.c (proc_plaintext): Display note for special filename.
9402         * plaintext.c (handle_plaintext): Suppress output of special file.
9404 Mon Sep 28 12:57:12 1998  Werner Koch  (wk@isil.d.shuttle.de)
9406         * g10.c (verify_own_keys): Add warning if a key is not protected.
9408         * passphrase (hash_passphrase): Fixed iterated+salted mode and
9409         setup for keysizes > hashsize.
9411         * g10.c (main): New options: --s2k-{cipher,digest,mode}.
9413 Fri Sep 25 09:34:23 1998  Werner Koch  (wk@isil.d.shuttle.de)
9415         * g10.c: Chnaged some help texts.
9417 Tue Sep 22 19:34:39 1998  Werner Koch  (wk@isil.d.shuttle.de)
9419         * passphrase.c (read_passphrase_from_fd): fixed bug for long
9420         passphrases.
9422 Mon Sep 21 11:28:05 1998  Werner Koch  (wk@(none))
9424         * getkey.c (lookup): Add code to use the sub key if the primary one
9425         does not match the usage.
9427         * armor.c (armor_filter): New error message: no valid data found.
9428         (radix64_read): Changes to support multiple messages.
9429         (i18n.h): New.
9430         * mainproc.c (add_onepass_sig): bug fix.
9432 Mon Sep 21 08:03:16 1998  Werner Koch  (wk@isil.d.shuttle.de)
9434         * pkclist.c (do_we_trust): Add keyid to most messages.
9436         * passphrase.c (read_passphrase_from_fd): New.
9437         (have_static_passphrase): New
9438         (get_passphrase_fd): Removed.
9439         (set_passphrase_fd): Removed.
9440         * g10.c (main): passphrase is now read here.
9442         * keyedit.c (keyedit_menu): "help" texts should now translate fine.
9444 Mon Sep 21 06:40:02 1998  Werner Koch  (wk@isil.d.shuttle.de)
9446         * encode.c (encode_simple): Now disables compression
9447         when --rfc1991 is used.
9448         (encode_crypt): Ditto.
9450 Fri Sep 18 16:50:32 1998  Werner Koch  (wk@isil.d.shuttle.de)
9452         * getkey.c (merge_key_and_selfsig): New.
9454 Fri Sep 18 10:20:11 1998  Werner Koch  (wk@isil.d.shuttle.de)
9456         * pkclist.c (select_algo_from_prefs): Removed 3DES kludge.
9458         * seskey.c (make_session_key): Fixed SERIOUS bug introduced
9459         by adding the weak key detection code.
9461         * sign.c (sign_file): Changed aremor header in certain cases.
9463 Tue Sep 15 17:52:55 1998  Werner Koch  (wk@isil.d.shuttle.de)
9465         * mainproc.c (check_sig_and_print): Replaced ascime by asctimestamp.
9467 Mon Sep 14 11:40:52 1998  Werner Koch  (wk@isil.d.shuttle.de)
9469         * seskey.c (make_session_key): Now detects weak keys.
9471         * trustdb (clear_trust_checked_flag): New.
9473         * plaintext.c (handle_plaintext): Does no anymore suppress CR from
9474         cleartext signed messages.
9476 Sun Sep 13 12:54:29 1998  Werner Koch  (wk@isil.d.shuttle.de)
9478         * trustdb.c (insert_trust_record): Fixed a stupid bug in the free
9479         liunked list loops.
9481 Sat Sep 12 15:49:16 1998  Werner Koch  (wk@isil.d.shuttle.de)
9483         * status.c (remove_shmid): New.
9484         (init_shm_comprocess): Now sets permission to the real uid.
9486 Wed Sep  9 11:15:03 1998  Werner Koch  (wk@isil.d.shuttle.de)
9488         * packet.h (PKT_pubkey_enc): New flah throw_keyid, and add logic to
9489         implement it.
9490         * g10.c (main): New Option --throw-keyid
9492         * getkey.c (enum_secret_keys): Add new ar and changed all callers.
9494 Tue Sep  8 20:04:09 1998  Werner Koch  (wk@isil.d.shuttle.de)
9496         * delkey.c (delete_key): Moved from keyedit.c.
9498 Mon Sep  7 16:37:52 1998  Werner Koch  (wk@isil.d.shuttle.de)
9500         * build-packet.c (calc_length_header): New arg new_ctb to correctly
9501         calculate the length of new style packets.
9503         * armor.c (is_armored): Checks for symkey_enc packets.
9505         * pkclist.c (select_algo_from_prefs): 3DEs substitute is now CAST5.
9507 Tue Aug 11 17:54:50 1998  Werner Koch  (wk@isil.d.shuttle.de)
9509         * build-packet.c (do_secret_key): Fixed handling of old keys.
9511         * getkey.c (compare_name): Fixed exact and email matching
9513         * openfile.c (open_outfile): Changed arguments and all callers.
9515 Tue Aug 11 09:14:35 1998  Werner Koch  (wk@isil.d.shuttle.de)
9517         * encode.c (encode_simple): Applied option set-filename and comment.
9518         (encode_crypt): Ditto.
9519         * sign.c (sign_file): Ditto.
9520         * armor.c (armor_filter): Applied option comment.
9522         * encode.c (encode_crypt): Moved init_packet to the begin.
9523         (encode_simple): add an init_packet().
9525         * comment (write_comment): Now enforces a hash sign as the 1st byte.
9527         * import.c (import_one): Add explanation for "no user ids".
9529         * compress.c (do_uncompress): Applied Brian Warner's patch to support
9530         zlib 1.1.3 etc.
9532         * trustdb.c (check_trust): Fixed a problem after inserting new keys.
9534         * getkey (lookup): do not return the primary key if usage is given
9535         (lookup_sk): Ditto and take usage into account.
9537         * status.c (cpr_get_answer_is_yes): add display_help.
9539 Mon Aug 10 10:11:28 1998  Werner Koch  (wk@isil.d.shuttle.de)
9541         * getkey.c (lookup_sk): Now always returns the primary if arg
9542         primary is true.
9543         (lookup): Likewise.
9544         (get_pubkey_byname): Now returns the primary key
9545         (get_seckey_byname): Ditto.
9548 Mon Aug 10 08:34:03 1998  Werner Koch  (wk@isil.d.shuttle.de)
9550         * keyid.c (pubkey_letter): ELG_E is now a small g.
9552 Sat Aug  8 17:26:12 1998  Werner Koch  (wk@isil.d.shuttle.de)
9554         * openfile (overwrite_filep): Changed semantics and all callers.
9556 Sat Aug  8 12:17:07 1998  Werner Koch  (wk@isil.d.shuttle.de)
9558         * status.c (display_help): New.
9560 Thu Aug  6 16:30:41 1998  Werner Koch,mobil,,,  (wk@tobold)
9562         * seskey.c (encode_session_key): Now uses get_random_bits().
9564 Thu Aug  6 07:34:56 1998  Werner Koch,mobil,,,  (wk@tobold)
9566         * ringedit.c (keyring_copy): No more backupfiles for
9567         secret keyrings and add additional warning in case of
9568         a failed secret keyring operation.
9570 Wed Aug  5 11:54:37 1998  Werner Koch  (wk@isil.d.shuttle.de)
9572         * g10.c (check_opts): Moved to main.  Changed def_cipher_algo
9573         semantics and chnaged all users.
9575         * pubkey-enc.c (get_sssion_key): New informational output
9576         about preferences.
9578         * parse-packet.c (parse_symkeyenc): Fixed salted+iterated S2K
9579         (parse_key): Ditto.
9580         * build-packet.c (do_secret_key): Ditto.
9581         (do_symkey_enc): Ditto.
9583 Tue Aug  4 08:59:10 1998  Werner Koch  (wk@isil.d.shuttle.de)
9585         * getkey.c (enum_secret_keys): Now returns only primary keys.
9587         * getkey (lookup): Now sets the new namehash field.
9589         * parse-packet.c (parse_sig_subpkt2): New.
9591         * sign.c (sign_file): one-pass sigs are now emiited reverse.
9592         Preference data is considered when selecting the compress algo.
9594 Wed Jul 29 12:53:03 1998  Werner Koch  (wk@isil.d.shuttle.de)
9596         * free-packet.c (copy_signature): New.
9598         * keygen.c (generate_subkeypair): rewritten
9599         * g10.c (aKeyadd): Removed option --add-key
9601 Mon Jul 27 10:37:28 1998  Werner Koch  (wk@isil.d.shuttle.de)
9603         * seckey-cert.c (do_check): Additional check on cipher blocksize.
9604         (protect_secret_key): Ditto.
9605         * encr-data.c: Support for other blocksizes.
9606         * cipher.c (write_header): Ditto.
9608 Fri Jul 24 16:47:59 1998  Werner Koch  (wk@isil.d.shuttle.de)
9610         * kbnode.c (insert_kbnode): Changed semantics and all callers.
9611         * keyedit.c : More or less a complete rewrite
9613 Wed Jul 22 17:10:04 1998  Werner Koch  (wk@isil.d.shuttle.de)
9615         * build-packet.c (write_sign_packet_header): New.
9617 Tue Jul 21 14:37:09 1998  Werner Koch  (wk@isil.d.shuttle.de)
9619         * import.c (import_one): Now creates a trustdb record.
9621         * g10.c (main): New command --check-trustdb
9623 Mon Jul 20 11:15:07 1998  Werner Koch  (wk@isil.d.shuttle.de)
9625         * genkey.c (generate_keypair): Default key is now DSA with
9626         encryption only ElGamal subkey.
9628 Thu Jul 16 10:58:33 1998  Werner Koch  (wk@isil.d.shuttle.de)
9630         * keyid.c (keyid_from_fingerprint): New.
9631         * getkey.c (get_pubkey_byfprint): New.
9633 Tue Jul 14 18:09:51 1998  Werner Koch  (wk@isil.d.shuttle.de)
9635         * keyid.c (fingerprint_from_pk): Add argument and changed all callers.
9636         (fingerprint_from_sk): Ditto.
9638 Tue Jul 14 10:10:03 1998  Werner Koch  (wk@isil.d.shuttle.de)
9640         * plaintext.c (handle_plaintext): Now returns create error if
9641         the file could not be created or the user responded not to overwrite
9642         the file.
9643         * mainproc.c (proc_plaintext): Tries again if the file could not
9644         be created to check the signature without output.
9646         * misc.c (disable_core_dumps): New.
9647         * g10.c (main): disable coredumps for gpg
9649         * g10.c (MAINTAINER_OPTIONS): New to disable some options
9651 Mon Jul 13 16:47:54 1998  Werner Koch  (wk@isil.d.shuttle.de)
9653         * plaintext.c (hash_datafiles): New arg for better support of
9654         detached sigs. Changed all callers.
9655         * mainproc.c (proc_signature_packets): Ditto.
9657         * g10.c (main): New option "compress-sigs"
9658         * sig.c (sign_file): detached signatures are not anymore compressed
9659         unless the option --compress-sigs is used.
9661 Thu Jul  9 19:54:54 1998  Werner Koch  (wk@isil.d.shuttle.de)
9663         * armor.c: Fixes to allow zero length cleartext signatures
9665 Thu Jul  9 14:52:47 1998  Werner Koch  (wk@isil.d.shuttle.de)
9667         * g10.c (build_list): Now drops setuid.
9668         (main): Changed the way keyrings  and algorithms are registered .
9670 Wed Jul  8 14:17:30 1998  Werner Koch  (wk@isil.d.shuttle.de)
9672         * packet.h (PKT_public_key): Add field keyid.
9673         * parse-packet.c (parse_key): Reset the above field.
9674         * keyid.c (keyid_from_pk): Use above field as cache.
9676         * tdbio.c, tdbio.h: New
9677         * trustdb.c: Moved some functions to tdbio.c.
9678         (print_keyid): New.
9680         * pkclist.c (check_signatures_trust): New.
9682 Wed Jul  8 10:45:28 1998  Werner Koch  (wk@isil.d.shuttle.de)
9684         * plaintext.c (special_md_putc): New.
9685         (handle_plaintext): add clearsig argument
9686         * mainproc.c (proc_plaintext): detection of clearsig
9687         * sign.c (write_dased_escaped): Changed clearsig format
9689 Tue Jul  7 18:56:19 1998  Werner Koch  (wk@isil.d.shuttle.de)
9691         * armor.c (find_header): Now makes sure that there is only one
9692         empty line for clearsigs, as this is what OP now says.
9694 Mon Jul  6 13:09:07 1998  Werner Koch  (wk@isil.d.shuttle.de)
9696         * g10.c (main): New option default-secret-key
9697         * getkey.c (get_seckey_byname): support for this option.
9699 Mon Jul  6 09:03:49 1998  Werner Koch  (wk@isil.d.shuttle.de)
9701         * getkey.c (add_keyring): Keyrings are now added to end of the
9702         list of keyrings.  The first added keyringwill be created.
9703         (add_secret_keyring): Likewise.
9705         * ringedit.c (add_keyblock_resource): Files are created here.
9707         * g10.c (aNOP): Removed
9709         * getkey.c (lookup): Add checking of usage for name lookups
9710         * packet.h (pubkey_usage): Add a field which may be used to store
9711         usage capabilities.
9712         * pkclist.c (build_pk_list): getkey now called with usage arg.
9713         * skclist.c (build_sk_list): Ditto.
9715         * sign.c (clearsign_file): Fixed "Hash:" headers
9717 Sat Jul  4 13:33:31 1998  Werner Koch  (wk@isil.d.shuttle.de)
9719         * trustdb.c (list_ownertrust): New.
9720         * g10.c (aListOwnerTrust): New.
9722         * g10.c (def_pubkey_algo): Removed.
9724         * trustdb.c (verify_private_data): Removed and also the call to it.
9725         (sign_private_data): Removed.
9727 Fri Jul  3 13:26:10 1998  Werner Koch  (wk@isil.d.shuttle.de)
9729         * g10.c (aEditKey): was aEditSig. Changed usage msg.
9731         * keyedit.c: Done some i18n stuff.
9733         * g10.c (do_not_use_RSA): New.
9734         * sign.c (do_sign): Add call to above function.
9735         * encode.c (write_pubkey_enc_from_list): Ditto.
9737 Thu Jul  2 21:01:25 1998  Werner Koch  (wk@isil.d.shuttle.de)
9739         * parse-packet.c: Now is able sto store data of unknown
9740         algorithms.
9741         * free-packet.c: Support for this.
9742         * build-packet.c: Can write data of packet with unknown algos.
9744 Thu Jul  2 11:46:36 1998  Werner Koch  (wk@isil.d.shuttle.de)
9746         * parse-packet.c (parse): fixed 4 byte length header
9748 Wed Jul  1 12:36:55 1998  Werner Koch  (wk@isil.d.shuttle.de)
9750         * packet.h (new_ctb): New field for some packets
9751         * build-packet.c (build_packet): Support for new_ctb
9752         * parse-packet.c (parse): Ditto.
9754 Mon Jun 29 12:54:45 1998  Werner Koch  (wk@isil.d.shuttle.de)
9756         * packet.h: changed all "_cert" to "_key", "subcert" to "subkey".
9758         * free-packet.c (free_packet): Removed memory leak for subkeys.
9760 Sun Jun 28 18:32:27 1998  Werner Koch  (wk@isil.d.shuttle.de)
9762         * import.c (import_keys): Renamed from import_pubkeys.
9763         (import_secret_one): New.
9765         * g10.c (aExportSecret): New.
9767         * export.c (export_seckeys): New.
9769         * parse-packet.c (parse_certificate): Cleaned up.
9770         (parse_packet): Trust packets are now considered as unknown.
9771         (parse_pubkey_warning): New.
9773 Fri Jun 26 10:37:35 1998  Werner Koch  (wk@isil.d.shuttle.de)
9775         * keygen.c (has_invalid_email_chars): New.
9777 Wed Jun 24 16:40:22 1998  Werner Koch  (wk@isil.d.shuttle.de)
9779         * armor.c (armor_filter): Now creates valid onepass_sig packets
9780         with all detected hash algorithms.
9781         * mainproc.c (proc_plaintext): Now uses the hash algos as specified
9782         in the onepass_sig packets (if there are any)
9784 Mon Jun 22 11:54:08 1998  Werner Koch  (wk@isil.d.shuttle.de)
9786         * plaintext.c (handle_plaintext): add arg to disable outout
9787         * mainproc.c (proc_plaintext): disable output when in sigs_only mode.
9789 Thu Jun 18 13:17:27 1998  Werner Koch  (wk@isil.d.shuttle.de)
9791         * keygen.c: Removed all rsa packet stuff, chnaged defaults
9792         for key generation.
9794 Sun Jun 14 21:28:31 1998  Werner Koch  (wk@isil.d.shuttle.de)
9796         * misc.c (checksum_u16): Fixed a stupid bug which caused a
9797         wrong checksum calculation for the secret key protection and
9798         add a backward compatibility option.
9799         * g10.c (main): Add option --emulate-checksum-bug.
9801 Thu Jun 11 13:26:44 1998  Werner Koch  (wk@isil.d.shuttle.de)
9803         * packet.h: Major changes to the structure of public key material
9804         which is now stored in an array and not anaymore in a union of
9805         algorithm specific structures.  These is needed to make the system
9806         more extendable and makes a lot of stuff much simpler. Changed
9807         all over the system.
9809         * dsa.c, rsa.c, elg.c: Removed.
9811 Wed Jun 10 07:22:02 1998  Werner Koch,mobil,,,  (wk@tobold)
9813         * g10.c ("load-extension"): New option.
9815 Mon Jun  8 22:23:37 1998  Werner Koch  (wk@isil.d.shuttle.de)
9817         * seckey-cert.c (do_check): Removed cipher constants
9818         (protect_secret_key): Ditto.
9820 Fri May 29 10:00:28 1998  Werner Koch  (wk@isil.d.shuttle.de)
9822         * trustdb.c (query_trust_info): New.
9823         * keylist.c (list_one): Add output of trust info
9824         * mainproc (list_node): ditto.
9825         * g10.c (main): full trustdb init if -with-colons and any of the
9826         key list modes.
9828 Thu May 28 10:34:42 1998  Werner Koch  (wk@isil.d.shuttle.de)
9830         * status.c (STATUS_RSA_OR_IDEA): New.
9831         * sig-check.c (check_signature): Output special status message.
9832         * pubkey-enc.c (get_session_key): Ditto.
9834         * mainproc.c (check_sig_and_print): Changed format of output.
9835         * passpharse.c (passphrase_to_dek): Likewise.
9837 Wed May 27 13:46:48 1998  Werner Koch  (wk@isil.d.shuttle.de)
9839         * g10.c (aListSecretKeys): New option --list-secret-keys
9840         * keylist.c (std_key_list): Renamed to public_key_list.
9841         (secret_key_list): New
9842         (list_one, list_all): Add support for secret keys.
9843         * getkey.c (get_secret_keyring): New.
9844         * mainproc.c (list_node): Add option --with-colons for secret keys
9846         * sig-check.c (check_key_signature): detection of selfsigs
9847         * mainproc.c (list_node): fixed listing.
9849         * g10.c (aListSecretKeys): New option --always-trust
9850         * pkclist.c (do_we_trust): Override per option added
9852         * status.c (write_status_text): Add a prefix to every output line.
9854 Wed May 27 07:49:21 1998  Werner Koch  (wk@isil.d.shuttle.de)
9856         * g10 (--compress-keys): New.
9857         * options.h (compress_keys): New.
9858         * export.c (export_pubkeys): Only compresses with the new option.
9860 Tue May 26 11:24:33 1998  Werner Koch  (wk@isil.d.shuttle.de)
9862         * passphrase.c (get_last_passphrase): New
9863         (set_next_passphrase): New.
9864         (passphrase_to_dek): add support for the above functions.
9865         * keyedit.c (make_keysig_packet): Add sigclass 0x18,
9866         changed all callers due to a new argument.
9867         * keygen.c (write_keybinding): New
9868         (generate_subkeypair): Add functionality
9869         (ask_algo, ask_keysize, ask_valid_days): Broke out of generate_keypair
9870         (ask_user_id, ask_passphrase): Ditto.
9872 Thu May 21 11:26:13 1998  Werner Koch  (wk@isil.d.shuttle.de)
9874         * g10.c,gpgd.c (main): Does now return an int, so that egcs does
9875         not complain.
9877         * armor.c (fake_packet): Removed erro message and add a noticed
9878         that this part should be fixed.
9880         * sign.c (sign_file): Compression now comes in front of encryption.
9881         * encode.c (encode_simple): Ditto.
9882         (encode_crypt): Ditto.
9884 Tue May 19 16:18:19 1998  Werner Koch  (wk@isil.d.shuttle.de)
9886         * armor.c (fake_packet): Changed assertion to log_error
9888 Sat May 16 16:02:06 1998  Werner Koch  (wk@isil.d.shuttle.de)
9890         * build-packet.c (build_packet): Add SUBKEY packets.
9892 Fri May 15 17:57:23 1998  Werner Koch  (wk@isil.d.shuttle.de)
9894         * sign.c (hash_for): New and used in all places here.
9895         * main.h (DEFAULT_): new macros.
9896         * g10.c  (opt.def_digest_algo): Now set to 0
9898         * compress.c (init_compress): Add support for algo 1
9899         * options.h (def_compress_algo): New
9900         * g10.c (main): New option --compress-algo
9902 Fri May 15 13:23:59 1998  Werner Koch  (wk@isil.d.shuttle.de)
9904         * g10.c (print_mds): New feature to print only one hash,
9905         chnaged formatting.
9907 Thu May 14 15:36:24 1998  Werner Koch  (wk@isil.d.shuttle.de)
9909         * misc.c (trap_unaligned) [__alpha__]: New
9910         * g10.c (trap_unaligned): Add call to this to track down SIGBUS
9911         on Alphas (to avoid the slow emulation code).
9913 Wed May 13 11:48:27 1998  Werner Koch  (wk@isil.d.shuttle.de)
9915         * build-packet.c (do_signature): Support for v4 pakets.
9916         * keyedit.c (make_keysig_packet): Ditto.
9917         * build-packet.c (build_sig_subpkt_from_sig): New.
9918         (build_sig_subpkt): New.
9920         * elg.c (g10_elg_sign): removed keyid_from_skc.
9921         * dsa.c (g10_dsa_sign): Ditto.
9922         * rsa.c (g10_rsa_sign): Ditto.
9923         * keyedit.c (make_keysig_packet): Add call to keyid_from_skc
9925         * sign.c (clearsign_file): Support for v4 signatures.
9926         (sign_file): Ditto.
9928 Wed May  6 09:31:24 1998  Werner Koch  (wk@isil.d.shuttle.de)
9930         * parse-packet.c (do_parse): add support for 5 byte length leader.
9931         (parse_subpkt): Ditto.
9932         * build-packet.c (write_new_header): Ditto.
9934         * packet.h (SIGSUBPKT_): New constants.
9935         * parse-packet.c (parse_sig_subpkt): Changed name, made global,
9936         and arg to return packet length, chnaged all callers
9939 Tue May  5 22:11:59 1998  Werner Koch  (wk@isil.d.shuttle.de)
9941         * keygen.c (gen_dsa): New.
9942         * build_packet.c (do_secret_cert): Support for DSA
9944 Mon May  4 19:01:25 1998  Werner Koch  (wk@isil.d.shuttle.de)
9946         * compress.c: doubled buffer sizes
9947         * parse-packet.c (do_plaintext): now uses iobuf_read/write.
9949 Mon May  4 09:35:53 1998  Werner Koch  (wk@isil.d.shuttle.de)
9951         * seskey.c (encode_md_value): Add optional argument hash_algo,
9952         changed all callers.
9954         * passphrase.c (make_dek_from_passphrase): Removed
9955         * (get_passhrase_hash): Changed name to passphrase_to_dek, add arg,
9956         changed all callers.
9958         * all: Introduced the new ELG identifier and added support for the
9959         encryption only one (which is okay to use by GNUPG for signatures).
9961 Sun May  3 17:50:26 1998  Werner Koch  (wk@isil.d.shuttle.de)
9963         * packet.h (PKT_OLD_COMMENT): New name for type 16.
9964         * parse-packet.c (parse_comment): Now uses type 61
9966 Fri May  1 12:44:39 1998  Werner Koch,mobil,,,  (wk@tobold)
9968         * packet.h (count): Chnaged s2k count from byte to u32.
9969         * seckey-cert.c (do_check): Changed s2k algo 3 to 4, changed
9970         reading of count.
9971         * build-packet.c (do_secret_cert): ditto.
9972         * parse-packet.c (parse_certificate): ditto.
9974         * parse-packet.c (parse_symkeyenc): New.
9975         * build-packet.c (do_symkey_enc): New.
9977 Thu Apr 30 16:33:34 1998  Werner Koch  (wk@isil.d.shuttle.de)
9979         * sign.c (clearsign_file): Fixed "Hash: " armor line.
9981 Tue Apr 28 14:27:42 1998  Werner Koch  (wk@isil.d.shuttle.de)
9983         * parse-packet.c (parse_subpkt): Some new types.
9985 Mon Apr 27 12:53:59 1998  Werner Koch  (wk@isil.d.shuttle.de)
9987         * g10.c (main): Add option --skip-verify.
9988         * mainproc.c (check_sig_and_print): Ditto.
9990         * g10.c (print_mds): Add output for Tiger.
9992         * sign.c (sign_file): Now uses partial length headers if used
9993         in canonical textmode (kludge to fix a bug).
9995         * parse-packet.c (parse_certificate): Changed BLOWFISH id.
9996         * pubkey-enc.c (get_session_key): Ditto.
9997         * seskey.c (make_session_key): Ditto.
9998         * seckey-cert.c (protect_secret_key,do_check): Add BLOWFISH160.
10000 Fri Apr 24 17:38:48 1998  Werner Koch,mobil,,,  (wk@tobold)
10002         * sig-check.c (check_key_signature): Add sig-class 0x14..0x17
10003         * keyedit.c (sign-key): Some changes to start with support of
10004         the above new sig-classes.
10006 Wed Apr 22 09:01:57 1998  Werner Koch,mobil,,,  (wk@tobold)
10008         * getkey.c (compare_name): add email matching
10010 Tue Apr 21 16:17:12 1998  Werner Koch,mobil,,,  (wk@tobold)
10012         * armor.c (armor_filter): fixed missing last LF before CSUM.
10014 Thu Apr  9 11:35:22 1998  Werner Koch  (wk@isil.d.shuttle.de)
10016         * seckey-cert.c (do_check): New; combines all the check functions
10017         into one.
10019         * sign.c: removed all key management functions
10020         * keyedit.c: New.
10022 Thu Apr  9 09:49:36 1998  Werner Koch  (wk@isil.d.shuttle.de)
10024         * import.c (chk_self_sigs): Changed an error message.
10026 Wed Apr  8 16:19:39 1998  Werner Koch  (wk@isil.d.shuttle.de)
10028         * packet.h: packet structs now uses structs from the pubkey,
10029         removed all copy operations from packet to pubkey structs.
10031 Wed Apr  8 13:40:33 1998  Werner Koch  (wk@isil.d.shuttle.de)
10033         * trustdb.c (verify_own_certs): Fixed "public key not found".
10035         * getkey.c (key_byname): New, combines public and secret key search.
10037         * pkclist.c (build_pkc_list): Add new arg usage, changed all callers.
10038         * skclist.c (build_skc_list): Likewise.
10040         * ringedit.c (find_keyblock, keyring_search2): Removed.
10042 Wed Apr  8 09:47:21 1998  Werner Koch  (wk@isil.d.shuttle.de)
10044         * sig-check.c (do_check): Applied small fix from Ulf Möller.
10046 Tue Apr  7 19:28:07 1998  Werner Koch  (wk@isil.d.shuttle.de)
10048         * cipher.c, encr-data.c, seckey-cert.c: Now uses cipher_xxxx
10049         functions instead of blowfish_xxx or cast_xxx
10051 Tue Apr  7 11:04:02 1998  Werner Koch  (wk@isil.d.shuttle.de)
10053         * Makefile.am (g10maint.o): Changed the way it is created.
10055 Mon Apr  6 11:17:08 1998  Werner Koch  (wk@isil.d.shuttle.de)
10057         * misc.c: New.
10058         * keygen.c (checksum,checksum_u16,checksum_mpi): Moved to misc.c
10059         * seckey-cert.c: Kludge for wrong ELG checksum implementation.
10061 Sat Apr  4 20:07:01 1998  Werner Koch  (wk@isil.d.shuttle.de)
10063         * cipher.c (cipher_filter): Support for CAST5
10064         * encr-data.c (decode_filter): Ditto.
10065         (decrypt_data): Ditto.
10066         * seskey.c (make_session_key): Ditto.
10067         * seckey-cert.c (check_elg, check_dsa): Ditto,
10068         (protect_secret_key): Ditto.
10069         * pubkey-enc.c (get_session_key): Ditto.
10070         * passphrase.c (hash_passphrase): Ditto.
10072 Thu Apr  2 20:22:35 1998  Werner Koch  (wk@isil.d.shuttle.de)
10074         * gpgd.c: New
10076 Thu Apr  2 10:38:16 1998  Werner Koch  (wk@isil.d.shuttle.de)
10078         * keygen.c (generate_keypair): Add valid_days stuff.
10079         * trustdb.c (check_trust): Add check for valid_days.
10081 Wed Apr  1 16:15:58 1998  Werner Koch  (wk@isil.d.shuttle.de)
10083         * keygen.c (generate_keypair): Addional question whether the
10084         selected large keysize is really needed.
10086 Wed Apr  1 15:56:33 1998  Werner Koch  (wk@isil.d.shuttle.de)
10088         * seckey-cert.c (protect_secret_key): merged protect_xxx to here.
10090 Wed Apr  1 10:34:46 1998  Werner Koch  (wk@isil.d.shuttle.de)
10092         * Makefile.am (g10maint.c): Changed creation rule, so that it works
10093         on FreeBSD (missing CFLAGS).
10095         * parse-packet.c (parse_subkey): Removed.
10097 Thu Mar 19 15:22:36 1998  Werner Koch  (wk@isil.d.shuttle.de)
10099         * ringedit.c (keyring_enum): Fixed problem with reading too
10100         many packets. Add support to read secret keyrings.
10102         * getkey.c (scan_keyring): Removed
10103         (lookup): New to replace scan_keyring.
10104         (scan_secret_keyring): Removed.
10105         (lookup_skc): New.
10107 Wed Mar 18 11:47:34 1998  Werner Koch  (wk@isil.d.shuttle.de)
10109         * ringedit.c (enum_keyblocks): New read mode 11.
10111         * keyid.c (elg_fingerprint_md): New and changed all other functions
10112         to call this if the packet version is 4 or above.
10114 Tue Mar 17 20:46:16 1998  Werner Koch  (wk@isil.d.shuttle.de)
10116         * parse-packet.c (parse_certificate): Add listing support for subkeys.
10118 Tue Mar 17 20:32:22 1998  Werner Koch  (wk@isil.d.shuttle.de)
10120         * armor.c (is_armored): Allow marker packet.
10122 Thu Mar 12 13:36:49 1998  Werner Koch  (wk@isil.d.shuttle.de)
10124         * trustdb.c (check_trust): Checks timestamp of pubkey.
10125         * sig-check. (do_check): Compares timestamps.
10127 Tue Mar 10 17:01:56 1998  Werner Koch  (wk@isil.d.shuttle.de)
10129         * g10.c (main): Add call to init_signals.
10130         * signal.c: New.
10132 Mon Mar  9 12:43:42 1998  Werner Koch  (wk@isil.d.shuttle.de)
10134         * dsa.c: New
10135         * packet.h, free-packet.c, parse-packet.c : Add support for DSA
10136         * sig-check.c, getkey.c, keyid.c, ringedit.c: Ditto.
10137         * seckey-cert.c: Ditto.
10139         * packet.h : Moved .digest_algo of signature packets to outer
10140         structure. Changed all references
10142 Sun Mar  8 13:06:42 1998  Werner Koch  (wk@isil.d.shuttle.de)
10144         * openfile.c : Support for stdout filename "-".
10146         * mainproc.c (check_sig_and_print): Enhanced status output:
10147         * status.c (write_status_text): New.
10149 Fri Mar  6 16:10:54 1998  Werner Koch  (wk@isil.d.shuttle.de)
10151         * kbnode.c (clone_kbnode): Fixed private_flag.
10153         * mainproc.c (list_node): Output of string "Revoked" as user-id.
10155 Fri Mar  6 14:26:39 1998  Werner Koch  (wk@isil.d.shuttle.de)
10157         * g10.c (main): Add userids to "-kv" and cleaned up this stuff.
10159 Fri Mar  6 12:45:58 1998  Werner Koch  (wk@isil.d.shuttle.de)
10161         * g10.c (main): Changed semantics of the list-... commands
10162         and added a new one. Removed option "-d"
10164         * decrypt.c: New.
10166         * trustdb.c (init_trustdb): Autocreate directory only if it ends
10167         in "/.gnupg".
10169 Thu Mar  5 12:12:11 1998  Werner Koch  (wk@isil.d.shuttle.de)
10171         * mainproc.c (do_proc_packets): New. Common part of proc_packet.
10172         (proc_signature_packets): special version to handle signature data.
10173         * verify.c: New.
10174         * g10.c (aVerify): New.
10175         * plaintext.c (hash_datafiles): New.
10176         * compress.c (handle_compressed): Add callback arg, changed caller.
10178 Thu Mar  5 10:20:06 1998  Werner Koch  (wk@isil.d.shuttle.de)
10180         * g10.c: Is nom the common source for gpg and gpgm
10181         * g10maint.c: Removed
10182         * Makefile.am: Add rule to build g10maint.c
10184 Thu Mar  5 08:43:59 1998  Werner Koch  (wk@isil.d.shuttle.de)
10186         * g10.c (main): Changed the way clear text sigs are faked.
10188 Wed Mar  4 19:47:37 1998  Werner Koch  (wk@isil.d.shuttle.de)
10190         * g10maint.c (aMuttKeyList): New
10191         * keylist.c: New.
10193 Wed Mar  4 17:20:33 1998  Werner Koch  (wk@isil.d.shuttle.de)
10195         * getkey.c (get_pubkey_byname): Kludge to allow 0x prefix.
10197 Tue Mar  3 13:46:55 1998  Werner Koch  (wk@isil.d.shuttle.de)
10199         * g10maint.c (main): New option --gen-random.
10201 Tue Mar  3 09:50:08 1998  Werner Koch  (wk@isil.d.shuttle.de)
10203         * g10.c (aDeleteSecretKey): New.
10204         (aEditSig): Add option "--edit-key" as synonym for "--edit-sig".
10205         (aDeleteSecretKey): New.
10206         * getkey.c (seckey_available): New.
10207         * sign.c (delete_key): Enhanced to delete secret keys, changed all
10208         callers.
10210 Mon Mar  2 21:23:48 1998  Werner Koch  (wk@isil.d.shuttle.de)
10212         * pkc_list.c (build_pkc_list): Add interactive input of user ID.
10214 Mon Mar  2 20:54:05 1998  Werner Koch  (wk@isil.d.shuttle.de)
10216         * pkclist.c (do_we_trust_pre): New.
10217         (add_ownertrust): Add message.
10218         * trustdb.c (enum_trust_web): Quick fix.
10220 Mon Mar  2 13:50:53 1998  Werner Koch  (wk@isil.d.shuttle.de)
10222         * g10.c (main): New action aDeleteKey
10223         * sign.c (delete_key): New.
10225 Sun Mar  1 16:38:58 1998  Werner Koch  (wk@isil.d.shuttle.de)
10227         * trustdb.c (do_check): No returns TRUST_UNDEFINED instead of
10228         eof error.
10230 Fri Feb 27 18:14:03 1998  Werner Koch  (wk@isil.d.shuttle.de)
10232         * armor.c (find_header): Removed trailing CR on headers.
10234 Fri Feb 27 18:02:48 1998  Werner Koch  (wk@isil.d.shuttle.de)
10236         * ringedit.c (keyring_search) [MINGW32]: Open and close file here
10237         because rename does not work on open files. Chnaged callers.
10239 Fri Feb 27 16:43:11 1998  Werner Koch  (wk@isil.d.shuttle.de)
10241         * sig-check.c (do_check): Add an md_enable.
10242         * mainproc.c (do_check_sig): Use md_open in case of detached sig
10243         (proc_tree): Take detached sigs into account.
10245 Fri Feb 27 15:22:46 1998  Werner Koch  (wk@isil.d.shuttle.de)
10247         * g10.c (main): Make use of GNUPGHOME envvar.
10248         * g10main.c (main): Ditto.
10250 Wed Feb 25 11:40:04 1998  Werner Koch  (wk@isil.d.shuttle.de)
10252         * plaintext.c (ask_for_detached_datafile): add opt.verbose to
10253         info output.
10255         * openfile.c (open_sigfile): Try also name ending in ".asc"
10257 Wed Feb 25 08:41:00 1998  Werner Koch  (wk@isil.d.shuttle.de)
10259         * keygen.c (generate_keypair): Fixed memory overflow.
10261 Tue Feb 24 15:51:55 1998  Werner Koch  (wk@isil.d.shuttle.de)
10263         * parse-packet.c (parse_certificate): Support for S2K.
10264         * build-packet.c (do_secret_cert): Ditto.
10265         * keygen.c (gen_elg): Ditto.
10266         * seckey-cert.c (check_elg): Ditto
10267         (protect_elg): Ditto.
10268         * sign.c (chnage_passphrase): Ditto.
10269         * passphrase.c (get_passphrase_hash): Support for a salt and
10270         changed all callers.
10271         (make_dek_from_passphrase): Ditto.
10273 Tue Feb 24 12:30:56 1998  Werner Koch  (wk@isil.d.shuttle.de)
10275         * build-packet.c (hash_public_cert): Disabled debug output.
10277 Fri Feb 20 17:22:28 1998  Werner Koch  (wk@isil.d.shuttle.de)
10279         * trustdb.c (init_trustdb) [MINGW32]: Removed 2nd mkdir arg.
10280         (keyring_copy) [MINGW32]: Add a remove prior to the renames.
10282 Wed Feb 18 18:39:02 1998  Werner Koch  (wk@isil.d.shuttle.de)
10284         * Makefile.am (OMIT_DEPENDENCIES): New.
10286         * rsa.c: Replaced log_bug by BUG.
10288 Wed Feb 18 13:35:58 1998  Werner Koch  (wk@isil.d.shuttle.de)
10290         * mainproc.c (do_check_sig): Now uses hash_public_cert.
10291         * parse-packet.c (parse_certificate): Removed hashing.
10292         * packet.h (public_cert): Removed hash variable.
10293         * free-packet.c (copy_public_cert, free_public_cert): Likewise.
10295         * sig-check.c (check_key_signatures): Changed semantics.
10297 Wed Feb 18 12:11:28 1998  Werner Koch  (wk@isil.d.shuttle.de)
10299         * trustdb.c (do_check): Add handling for revocation certificates.
10300         (build_sigrecs): Ditto.
10301         (check_sigs): Ditto.
10303 Wed Feb 18 09:31:04 1998  Werner Koch  (wk@isil.d.shuttle.de)
10305         * armor.c (armor_filter): Add afx->hdrlines.
10306         * revoke.c (gen_revoke): Add comment line.
10307         * dearmor.c (enarmor_file): Ditto.
10309         * sig-check.c (check_key_signature): Add handling for class 0x20.
10310         * mainproc.c : Ditto.
10312 Tue Feb 17 21:24:17 1998  Werner Koch  (wk@isil.d.shuttle.de)
10314         * armor.c : Add header lines "...ARMORED FILE .."
10315         * dearmor.c (enarmor_file): New.
10316         * g10maint.c (main): New option "--enarmor"
10318 Tue Feb 17 19:03:33 1998  Werner Koch  (wk@isil.d.shuttle.de)
10320         * mainproc.c : Changed a lot, because the packets are now stored
10321         a simple linlked list and not anymore in a complicatd tree structure.
10323 Tue Feb 17 10:14:48 1998  Werner Koch  (wk@isil.d.shuttle.de)
10325         * free_packet.c (cmp_public_certs): New.
10326         (cmp_user_ids): New.
10328         * kbnode.c (clone_kbnode): New.
10329         (release_kbnode): Add clone support.
10331         * ringedit.c (find_keyblock_bypkc): New.
10333         * sign.c (remove_keysigs): Self signatures are now skipped,
10334         changed arguments and all callers.
10336         * import.c : Add functionality.
10338 Tue Feb 17 09:31:40 1998  Werner Koch  (wk@isil.d.shuttle.de)
10340         * options.h (homedir): New option.
10341         * g10.c, g10maint.c, getkey.c, keygen.c, trustdb.c (opt.homedir): New.
10343         * trustdb.c (init_trustdb): mkdir for hoem directory
10344         (sign_private_data): Renamed "sig" to "g10.sig"
10346 Mon Feb 16 20:02:03 1998  Werner Koch  (wk@isil.d.shuttle.de)
10348         * kbnode.c (commit_kbnode): New.
10349         (delete_kbnode): removed unused first arg. Changed all Callers.
10351         * ringedit.c (keyblock_resource_name): New.
10352         (get_keyblock_handle): NULL for filename returns default resource.
10354 Mon Feb 16 19:38:48 1998  Werner Koch  (wk@isil.d.shuttle.de)
10356         * sig-check.s (check_key_signature): Now uses the supplied
10357         public key to check the signature and not any more the one
10358         from the getkey.c
10359         (do_check): New.
10360         (check_signature): Most work moved to do_check.
10362 Mon Feb 16 14:48:57 1998  Werner Koch  (wk@isil.d.shuttle.de)
10364         * armor.c (find_header): Fixed another bug.
10366 Mon Feb 16 12:18:34 1998  Werner Koch  (wk@isil.d.shuttle.de)
10368         * getkey.c (scan_keyring): Add handling of compressed keyrings.
10370 Mon Feb 16 10:44:51 1998  Werner Koch  (wk@isil.d.shuttle.de)
10372         * g10.c, g10maint.c (strusage): Rewrote.
10373         (build_list): New
10375 Mon Feb 16 08:58:41 1998  Werner Koch  (wk@isil.d.shuttle.de)
10377         * armor.c (use_armor): New.
10379 Sat Feb 14 14:30:57 1998  Werner Koch  (wk@isil.d.shuttle.de)
10381         * mainproc.c (proc_tree): Sigclass fix.
10383 Sat Feb 14 14:16:33 1998  Werner Koch  (wk@isil.d.shuttle.de)
10385         * armor.c (armor_filter): Changed version and comment string.
10386         * encode.c, sign.c, keygen.c: Changed all comment packet strings.
10388 Sat Feb 14 12:39:24 1998  Werner Koch  (wk@isil.d.shuttle.de)
10390         * g10.c (aGenRevoke): New command.
10391         * revoke.c: New.
10392         * sign.c (make_keysig_packet): Add support for sigclass 0x20.
10394 Fri Feb 13 20:18:14 1998  Werner Koch  (wk@isil.d.shuttle.de)
10396         * ringedit.c (enum_keyblocks, keyring_enum): New.
10398 Fri Feb 13 19:33:40 1998  Werner Koch  (wk@isil.d.shuttle.de)
10400         * export.c: Add functionality.
10402         * keygen.c (generate_keypair): Moved the leading comment behind the
10403         key packet.
10404         * kbnode.c (walk_kbnode): Fixed.
10406         * g10.c (main): listing armored keys now work.
10408 Fri Feb 13 16:17:43 1998  Werner Koch  (wk@isil.d.shuttle.de)
10410         * parse-packet.c (parse_publickey, parse_signature): Fixed calls
10411         to mpi_read used for ELG b.
10413 Fri Feb 13 15:13:23 1998  Werner Koch  (wk@isil.d.shuttle.de)
10415         * g10.c (main): changed formatting of help output.
10417 Thu Feb 12 22:24:42 1998  Werner Koch  (wk@frodo)
10419         * pubkey-enc.c (get_session_key): rewritten
10422  Copyright 1998,1999,2000,2001,2002,2003,2004,2005,
10423            2006,2007,2008 Free Software Foundation, Inc.
10425  This file is free software; as a special exception the author gives
10426  unlimited permission to copy and/or distribute it, with or without
10427  modifications, as long as this notice is preserved.
10429  This file is distributed in the hope that it will be useful, but
10430  WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
10431  implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.