Preparing for 2.0.12.
[gnupg.git] / g10 / ChangeLog
blobe961921a1c5285da576de5e611ac3f1f856f6a2f
1 2009-06-17  Werner Koch  <wk@g10code.com>
3         * parse-packet.c (parse): Use a casted -1 instead of a 32 bit
4         constant to check for a garbled package.  Fixes bug#1040.
6         * card-util.c (put_data_to_file, read_cert): New. 
7         (card_edit): Add command "readcert".
8         (fetch_url): Allow code also for this gnupg major version 2.
9         * call-agent.c (agent_scd_readcert): New.
11 2009-06-15  Werner Koch  <wk@g10code.com>
13         * keyserver.c (keyserver_search_prompt): No prompt in batch+colons
14         mode.
16 2009-06-09  Werner Koch  <wk@g10code.com>
18         * card-util.c (write_sc_op_status): New.
19         (change_pin): Use it.
20         (change_url, change_login, change_private_do, change_cert)
21         (change_lang, change_sex, change_cafpr, toggle_forcesig)
22         (check_pin_for_key_operation): Ditto.
24 2009-06-05  David Shaw  <dshaw@jabberwocky.com>
26         * gpg.c (main), misc.c (openpgp_cipher_test_algo): Remove Camellia
27         restriction.
29         * misc.c (map_cipher_openpgp_to_gcry), main.h: Add macros for
30         openpgp_cipher_open, openpgp_cipher_get_algo_keylen, and
31         openpgp_cipher_get_algo_blklen to wrap around the corresponding
32         gcry_* functions, but pass the algorithm number through
33         map_cipher_openpgp_to_gcry.  This is needed in case the gcry
34         algorithm number doesn't match the OpenPGP number (c.f. Camellia).
36         * encr-data.c, pubkey-enc.c, mainproc.c, cipher.c, encode.c,
37         seskey.c, passphrase.c, seckey-cert.c: Use new openpgp_cipher_*
38         macros here.
40 2009-06-02  Werner Koch  <wk@g10code.com>
42         * card-util.c (get_manufacturer): Add new manufacturer.
44 2009-05-26  Werner Koch  <wk@g10code.com>
46         * parse-packet.c (mpi_read): Workaround for zero-length MPI bug in
47         libgcrypt<1.5.0.
49 2009-05-22  Werner Koch  <wk@g10code.com>
51         * signal.c (got_fatal_signal): Call new function
52         tty_cleanup_after_signal.
54 2009-05-20  Werner Koch  <wk@g10code.com>
56         * gpg.c (main): Fix --fingerprint/--with-fingerprint command
57         detection.  Fixes bug#1044.
59         * keygen.c (ask_keysize): Allow selection of DSA key size even
60         without --enable-dsa2.
61         (gen_dsa): Remove size check.
63         * keygen.c (ask_key_flags): Fix bug in the translation check.
64         Fixes bug#1056.
65         
66 2009-05-18  Daiki Ueno  <ueno@unixuser.org>  (wk)
68         * encode.c (encode_simple): Tell passphrase_to_dek to cache
69         the passphrase.
70         (setup_symkey): Ditto.
71         * mainproc.c (proc_symkey_enc): Tell passphrase_to_dek to cache
72         the passphrase.
73         (proc_encrypted): Ditto.
74         * passphrase.c (hash_passphrase): Remove arg CREATE.
75         (passphrase_to_dek): New mode 3 and 4 for caching passphrase for
76         symmetric encryption.
78 2009-05-17  Werner Koch  <wk@g10code.com>
80         * keygen.c (ask_algo): Add arg R_SUBKEY_ALGO.  Change return value
81         semantics.  Change presented order of algorithms.  Make RSA+RSA
82         the default.
83         (generate_keypair): Adjust for change.
84         (ask_keysize): Add arg PRIMARY_KEYSIZE for subkey creation.
85         Change callers.
87 2009-05-15  Werner Koch  <wk@g10code.com>
89         * keygen.c (gen_card_key_with_backup): Get the size of the key
90         from the card.
91         * call-agent.h (struct agent_card_info_s): Add field KEY_ATTR.
92         * call-agent.c (learn_status_cb): Support KEY-ATTR.
93         * card-util.c (card_status): Print key attributes.
95 2009-05-15  Marcus Brinkmann  <marcus@g10code.de>
97         * gpg.c (gpgconf_list): Remove dead entry "allow-pka-lookup" (a
98         verify option for a couple of years now).
100 2009-05-14  Werner Koch  <wk@g10code.com>
102         * call-agent.c (agent_get_passphrase): Add arg CHECK.
103         * passphrase.c (passphrase_get): Pass new arg.
105         * keygen.c (gen_card_key_with_backup): Print a status error.
106         (do_generate_keypair): Ditto.
107         (do_ask_passphrase): Add arg MODE.
108         (generate_raw_key): Call with mode 1.
109         * passphrase.c (ask_passphrase): Remove becuase it is not used.
110         (passphrase_to_dek): Factor code out to ...
111         (passphrase_to_dek_ext): .. New.  Add args CUSTDESC and CUSTPROMPT.
113 2009-05-13  Werner Koch  <wk@g10code.com>
115         * keygen.c (parse_expire_string): Base ISO date string at noon.
116         Also allow full ISO timestamp.
118 2009-05-11  Werner Koch  <wk@g10code.com>
120         * parse-packet.c (parse_key): Print the key id in list mode.
122         * skclist.c (build_sk_list): Use log_info for "duplicated entry".
123         Fixes bug#1045.
125         * encode.c (encode_simple): Print empty file warning only in
126         verbose mode.  Closes bug#1039.
127         (encode_crypt): Ditto.
128         * sign.c (write_plaintext_packet): Ditto.
130 2009-05-10  David Shaw  <dshaw@jabberwocky.com>
132         * keyserver.c (keyserver_typemap): gpgkeys_hkp handles hkps as
133         well.  From 1.4.
135 2009-05-06  Werner Koch  <wk@g10code.com>
137         * getkey.c (finish_lookup): Remove dead code.
139         * keyring.c (keyring_get_keyblock): Fix memory leak due to ring
140         trust packets.  Fixes bug#1034.
142 2009-04-03  Werner Koch  <wk@g10code.com>
144         * gpgv.c (main): Open keyrings readonly.
145         * keydb.c (keydb_add_resource): Add readonly flag bit.
146         (keydb_rebuild_caches): Don't act on readonly resources.
148         * keyring.c (keyring_register_filename): Add arg READONLY. 
149         (struct keyring_name): Add field READONLY.
150         (keyring_is_writable): Implement readonly feature.
151         (keyring_update_keyblock): Return GPG_ERR_EACCES for readonly
152         keyrings.
153         (keyring_insert_keyblock, keyring_delete_keyblock): 
155 2009-04-01  Werner Koch  <wk@g10code.com>
157         * gpg.c (main): Properly handle UTF8 usernames with --sign-key and
158         --lsign-key.  From 1.4, David 2008-12-21.
160 2009-03-20  David Shaw  <dshaw@jabberwocky.com>  (wk)
162         * keyring.c (rename_tmp_file): Force a fsync (via iobuf_ioctl) on
163         secret keyring files to be extra safe on filesystems that may not
164         sync data and metadata together (ext4).  Also check return code
165         from the cache invalidation to make sure we're safe over NFS and
166         similar.
168 2009-03-31  Werner Koch  <wk@g10code.com>
170         * passphrase.c (ask_passphrase): Use percent_plus_unescape.
171         * misc.c (unescape_percent_string): Remove.
173         * call-agent.c (unescape_status_string): Chnage to use
174         percent_plus_unescape.
176 2009-03-25  Werner Koch  <wk@g10code.com>
178         * mainproc.c (print_pkenc_list): Use snprintf.
180 2009-03-17  Werner Koch  <wk@g10code.com>
182         * call-agent.c (my_percent_plus_escape): Remove.
183         (agent_get_passphrase): Rewrite using percent_plus_escape.
185 2009-03-17  Daiki Ueno  <ueno@unixuser.org>
187         * passphrase.c (passphrase_get): Add extra arg REPEAT and adjust
188         callers; remove special treatment for MODE==2.
189         (passphrase_to_dek): Move --passphrase-repeat handling to
190         gpg-agent.
192         * call-agent.c (agent_get_passphrase): Add extra arg REPEAT.
193         * call-agent.h: Ditto.
195 2009-03-16  Werner Koch  <wk@g10code.com>
197         * gpg.c (my_strusage): Revert last change.  Systems w/o a gpg1 may,
198         and actually do, install gpg2 as gpg.
199         * gpgv.c (my_strusage): Ditto.
201 2009-03-14  David Shaw  <dshaw@jabberwocky.com>
203         * gpg.c (my_strusage): gpg2 and gpgv2 (not gpg and gpgv).
204         * gpgv.c (my_strusage): Same.
206         * gpgv.c (my_strusage): Fix name of program in "Syntax" line.
208 2009-02-27  Werner Koch  <wk@g10code.com>
210         * call-agent.c (agent_scd_pksign, agent_scd_pkdecrypt): First send
211         the SERIALNO command.
213 2009-02-24  Werner Koch  <wk@g10code.com>
215         * pkglue.c (pk_verify): Return an error for improper DATA instead
216         of calling BUG().
218 2009-02-09  Werner Koch  <wk@g10code.com>
220         * keylist.c (print_capabilities): Take care of cert-only keys.
221         Fixes bug#998.
222         * keyedit.c (show_key_with_all_names_colon): Print the capabilities.
224 2009-01-26  Werner Koch  <wk@g10code.com>
226         * card-util.c (card_status): Detect a Geldkarte. 
228 2009-01-13  Werner Koch  <wk@g10code.com>
230         * call-agent.c (dummy_data_cb): New.
231         (agent_learn): Use it.
232         * card-util.c (card_status): Print type of non-OpenPGP card.
233         * call-agent.h (agent_card_info_s): Add field APPTYPE.
235 2009-01-12  Werner Koch  <wk@g10code.com>
237         * getkey.c (finish_lookup): Take care of keys with a zero
238         timestamp.  Reported by Peter Gutmann.
240 2009-01-08  Werner Koch  <wk@g10code.com>
242         * misc.c (has_invalid_email_chars): Let non-ascii pass through.
244         * cpr.c [USE_SHM_COPROCESSING]: Remove this code.
246 2008-12-12  Werner Koch  <wk@g10code.com>
248         * passphrase.c (passphrase_get): Write a STATUS_ERROR.
249         * cpr.c (write_status_error): New.
251         * Makefile.am (common_source): Add rmd160.h.
253 2008-12-11  Werner Koch  <wk@g10code.com>
255         * sig-check.c (signature_check2): Change algorithm used to compute
256         the SIG_ID.
257         (check_revocation_keys): Close message digest.
259         * rmd160.c, rmd160.h: New.  Based on code from GnuPG-1.4.
260         * t-rmd160.c: New.
261         * Makefile.am: Add support to run tests.
262         * keyid.c (namehash_from_uid): Use rmd160_hash_buffer.
264 2008-12-10  Werner Koch  <wk@g10code.com>
266         * trustdb.h (NAMEHASH_HASH): Remove unsued constant.
268         * gpg.c (print_mds): Print RMD160 only is enabled.
270         * keygen.c (keygen_set_std_prefs): Include RMD160 only if
271         available.
273 2008-12-09  Werner Koch  <wk@g10code.com>
275         * gpg.c (main) [IS_DEVELOPMENT_VERSION]: Fix strusage use.
277 2008-12-09  Werner Koch  <wk@g10code.com>
279         * keygen.c (proc_parameter_file): Check that key and subkey usages
280         are allowed.
282 2008-12-09  David Shaw  <dshaw@jabberwocky.com>  (wk)
284         * trustdb.c (validate_one_keyblock): Fix the trust signature
285         calculations so that we lower the trust depth of signatures to fit
286         within the current chain, rather than discarding any signature
287         that does not fit within the trust depth.
289 2008-12-09  Werner Koch  <wk@g10code.com>
291         * keyserver.c (show_prompt): Flush stdout.
293         * gpg.c (open_info_file): Add arg BINARY and adjust callers.
295         * gpg.c (main): Call i18n_init before init_common_subsystems.
296         * gpgv.c (main): Ditto.
298         * keylist.c (set_attrib_fd): Do not close ATTRIB_FP if it is the
299         log stream. 
300         (set_attrib_fd) [W32]: Set to binary mode.
301         (dump_attribs): Flush the stream after writing.
303 2008-12-05  Werner Koch  <wk@g10code.com>
305         * call-agent.c (percent_plus_escape): Rename to
306         my_percent_plus_escape and also escape the percent character.
307         Change all callers.
309 2008-11-18  Werner Koch  <wk@g10code.com>
311         * gpg.c (build_lib_list): Remove.
312         (make_libversion): New.
313         (my_strusage): Use it.
314         * gpgv.c (make_libversion): New.
315         (my_strusage): Print libgcrypt version.
317 2008-11-13  Werner Koch  <wk@g10code.com>
319         * gpgv.c: Use new ARGPARSE macros and re-indent.
321 2008-11-11  Werner Koch  <wk@g10code.com>
323         * gpg.c (opts): Use new ARGPARSE macros for clarity.
325 2008-10-24  Werner Koch  <wk@g10code.com>
327         * keyedit.c (change_passphrase): Clear passphrase cache.
329 2008-10-20  Werner Koch  <wk@g10code.com>
331         * gpgv.c: Mark all args of the stub fucntions as unused.
333         * card-util.c (generate_card_keys): Remove unused arg SERIALNO and
334         adjust caller.
335         
336         * build-packet.c (write_sign_packet_header): Mark unused arg.
337         * gpg.c (gpg_init_default_ctrl, gpg_deinit_default_ctrl): Ditto.
338         * getkey.c (skip_unusable): Ditto.
339         (write_version): Ditto.
340         * keydb.c (keydb_locate_writable): Ditto.
341         * keyring.c (update_offset_hash_table): Ditto.
342         (keyring_lock): Ditto.
343         * misc.c (register_secured_file): Ditto.
344         (unregister_secured_file): Ditto.
345         (is_secured_file): Ditto.
346         (is_secured_filename): Ditto.
347         * parse-packet.c (parse_marker): Ditto.
348         (parse_key, parse_attribute): Ditto.
349         (parse_trust, parse_compressed, parse_mdc, parse_gpg_control): Ditto.
350         * cpr.c (progress_cb): Ditto.
351         * passphrase.c (passphrase_clear_cache): Ditto.
352         (ask_passphrase): Ditto.
353         * keyedit.c (keyedit_completion): Ditto.
354         * import.c (import_revoke_cert): Ditto.
355         (chk_self_sigs, delete_inv_parts, append_uid): Ditto.
356         (merge_sigs, merge_keysigs, append_key): Ditto.
357         * trustdb.c (list_trust_path): Ditto.
358         (enum_cert_paths, enum_cert_paths_print): Ditto.
359         * tdbdump.c (list_trustdb): Ditto.
360         * keygen.c (keygen_upd_std_prefs): Ditto.
361         (genhelp_factors): Ditto.
362         * call-agent.c (agent_scd_setattr): Ditto.
363         (agent_scd_writekey, agent_scd_change_pin, agent_scd_genkey): Ditto.
364         (agent_clear_pin_cache): Ditto.
366         * server.c (option_handler): Mark non yet used arg.
367         (input_notify, output_notify): Ditto.
368         (cmd_recipient, cmd_signer, cmd_encrypt, cmd_decrypt, cmd_verify) 
369         (cmd_sign, cmd_import, cmd_export, cmd_delkeys, do_listkeys) 
370         (cmd_genkey): Ditto.
371         * verify.c (gpg_verify): Ditto.
373 2008-10-17  Werner Koch  <wk@g10code.com>
375         * main.h (idea_cipher_warn): Use do while construct in place of an
376         empty definition.
378 2008-10-03  David Shaw  <dshaw@jabberwocky.com>
380         * main.h, mainproc.c (check_sig_and_print)
381         * keylist.c (list_keyblock_print)
382         * pkclist.c (do_edit_ownertrust)
383         * keyedit.c (menu_showphoto)
384         * photoid.c (generate_photo_id, show_photos)
385         * misc.c (pct_expando): Add %v and %V expandos so
386          that displaying photo IDs can show the attribute validity
387          tag (%v) and string (%V).  Originally by Daniel Gillmor.
389 2008-09-29  Werner Koch  <wk@g10code.com>
391         * gpg.c (main): Remove -sat kludge.  Note that we printed a
392         warning for two years.
394         * seskey.c (encode_md_value): Remove extra gcry_md_test_algo since
395         it is not needed with Libgcrypt 1.4.
396         * skclist.c (random_is_faked): Simplify.
397         * sign.c (match_dsa_hash): Remove runtime check for SHA224.
398         * gpg.c (print_mds): Use GCRY_MD_SHA224 constant.
400 2008-09-25  David Shaw  <dshaw@jabberwocky.com>
402         * keyedit.c (keyedit_menu): Fix bug where a modified keyring loses
403         its modified status after a "clean" or "minimize" that doesn't
404         need to do anything.
406 2008-09-25  Werner Koch  <wk@g10code.com>
408         * parse-packet.c (parse): Remove special treatment for compressed
409         new style packets.  Fixes bug#931.
410         
411         * card-util.c (change_pin): Support setting of the reset code.
413 2008-09-24  Werner Koch  <wk@g10code.com>
415         * call-agent.h (struct agent_card_info_s): Add field IS_V2.
416         * call-agent.c (learn_status_cb): That that field.
418         * card-util.c (change_pin): Rename first arg to UNBLOCK_v2 and use
419         it this way.
420         (card_edit): Add new command UNBLOCK.
422 2008-09-23  David Shaw  <dshaw@jabberwocky.com>
424         * pkclist.c (select_algo_from_prefs): Redo function to rank prefs
425         and pick a consensus winner across all keys.
427 2008-09-16  Werner Koch  <wk@g10code.com>
429         * card-util.c (fpr_is_ff): New.
430         (card_status): Do not print general key info for an all-ff fpr.
431         (change_login, change_private_do): Factor common code out to ...
432         (get_data_from_file): .. new.
433         (change_cert): New.
434         (card_edit): Add command "writecert".
435         * call-agent.c (writecert_parm_s): New.
436         (inq_writecert_parms, agent_scd_writecert): New.
438 2008-09-04  David Shaw  <dshaw@jabberwocky.com>
440         * keyserver.c (keyserver_import_cert): Allow keyserver URLs in
441         addition to full URLs in CERT records.
443 2008-08-11  Werner Koch  <wk@g10code.com>
445         * keygen.c (ask_expire_interval): Check for time overflow of an
446         u32.  Fixes bug #947.
448 2008-08-01  Werner Koch  <wk@g10code.com>
450         * tdbio.c (open_db) [!EROFS]: Move closing parens out of the
451         ifdef.  Reported by Ken Takusagawa.
453 2008-06-25  Marcus Brinkmann  <marcus@g10code.de>
455         * gpg.c (enum cmd_and_opt_values): Remove option
456         oEnableW32HandleTranslation.
457         (opts): Remove option --enable-w32-handle-translation.
458         (main): Remove variable w32_handle_translation.
460 2008-06-19  Werner Koch  <wk@g10code.com>
462         * gpg.c (gpgconf_list): Add "group".
464 2008-06-18  Marcus Brinkmann  <marcus@g10code.de>
466         * gpg.c (enum cmd_and_opt_values): New option
467         oEnableW32HandleTranslation.
468         (opts): New option --enable-w32-handle-translation.
469         (main): New variable w32_handle_translation to keep track of
470         option.
472 2008-06-16  Werner Koch  <wk@g10code.com>
474         * keygen.c (output_control_s): Add ASK_PASSPHRASE.
475         (read_parameter_file): Add commands %ask-passphrase and
476         %no-ask-passphrase.
478 2008-06-11  Werner Koch  <wk@g10code.com>
480         * gpg.c: Make --fixed-list-mode a dummy.
481         * options.h (struct): Removed FIXED_LIST_MODE.
482         * keyid.c (colon_strtime, colon_datestr_from_pk) 
483         (colon_datestr_from_sk, colon_datestr_from_sig) 
484         (colon_expirestr_from_sig): Remove fixed_list_mode case.
485         * keylist.c (list_keyblock_colon): Ditto.  Remove all now unsed
486         code and reindent.
488 2008-05-31  Werner Koch  <wk@g10code.com>
490         * keygen.c (ask_user_id): Change the string printed as header of
491         the user ID generation.  Use code to not break existing
492         translations.  Suggested by Eric Tetz.
494 2008-05-08  Werner Koch  <wk@g10code.com>
496         * sig-check.c (do_check_messages): Print a revocation diagnostic
497         in verbose mode.
499 2008-05-07  Werner Koch  <wk@g10code.com>
501         * gpg.c: New command --locate-keys.  New options --with-sig-list
502         and --with-sig-check.
503         * keylist.c (locate_one): New.
504         (public_key_list): Add arg LOCATE_MODE and use locate_one.
505         * getkey.c (get_pubkey_byname): Fix nodefault case.  Add option
506         RETCTX, change all callers.
507         (struct getkey_ctx_s): Add field extra_ptr;
508         (get_pubkey_end): Free it.
510 2008-04-18  Werner Koch  <wk@g10code.com>
512         * misc.c (map_cipher_openpgp_to_gcry, map_cipher_gcry_to_openpgp) 
513         (openpgp_cipher_test_algo): Add camellia-192.
514         (openpgp_cipher_blocklen): New.
515         * parse-packet.c (parse_key): Use new function here.
517 2008-04-15  David Shaw  <dshaw@jabberwocky.com>
519         * getkey.c (merge_selfsigs_subkey): If there are multiple 0x19
520         backsigs, take the most recent one.
522 2008-04-08  Werner Koch  <wk@g10code.com>
524         * options.h (opt): Add AKL_NODEFAULT and AKL_LOCAL.
525         * getkey.c (parse_auto_key_locate): Parse them.
526         (get_pubkey_byname): Implement them.  Add arg NO_AKL and use that
527         in all cases where a local key is expected.
528         * import.c (import_one): Fill in the fingerprint in all cases.
529         Use log_get_stream.
530         * keyserver.c (keyserver_import_pka): Set FPR to NULL on error.
531         Return G10ERR_NO_PUBKEY if no PKA info is available or no key URI
532         is given in the PKA record..
533         (keyserver_import_cert): Return G10ERR_NO_PUBKEY if a CERT record
534         was not found.
536         * getkey.c (get_pubkey_byname): Release FPR in the error case.
537         Continue with next mechanism on error.  Better diagnostics.
539 2008-04-07  Werner Koch  <wk@g10code.com>
541         * keyserver.c (parse_keyserver_uri): Allow a default host name.
543         * getkey.c (get_pubkey_byname): Replace sprintf by bin2hex.
545 2008-04-02  Werner Koch  <wk@g10code.com>
547         * gpg.c (main): Do not allow DSA2 with a too old Libgcrypt.
549 2008-03-26  Werner Koch  <wk@g10code.com>
551         * tdbio.c (lookup_hashtable): Make cmp args const.
552         (cmp_trec_fpr): Make FPR const.
553         (tdbio_search_trust_byfpr): Remove cast.
555 2008-03-25  Werner Koch  <wk@g10code.com>
557         * keyserver.c (parse_keyrec): Take care of char defaulting to
558         unsigned when using hextobyte.
560 2008-03-25  David Shaw  <dshaw@jabberwocky.com>  (wk)
562         * import.c (collapse_uids): Fix bug 894: possible memory
563         corruption around deduplication of user IDs.
565 2008-03-25  Werner Koch  <wk@g10code.com>
567         * parse-packet.c (parse_key): Parse a secret key encrypted with
568         Camellia.
570         * options.skel: Make the default keyserver keys.gnupg.net.
572 2008-03-18  Werner Koch  <wk@g10code.com>
574         * seckey-cert.c (do_check): Use GCRYMPI_FMT_PGP for v3 keys.
575         Reported by Petr Cerny.
577 2008-03-13  Werner Koch  <wk@g10code.com>
579         * passphrase.c (PROMPTSTRING): Change string to me more similar to
580         the X.509 prompt.
582 2008-02-26  Werner Koch  <wk@g10code.com>
584         * getkey.c (get_pubkey_byname): Fix comment.
586 2008-02-14  Werner Koch  <wk@g10code.com>
588         * call-agent.c (default_inq_cb): New.
589         (agent_learn, agent_scd_getattr, agent_scd_pksign) 
590         (agent_scd_pkdecrypt, agent_scd_change_pin, agent_scd_checkpin) 
591         (agent_get_passphrase, agent_clear_passphrase): Use new callback.
592         (inq_writekey_parms): Fall back to the new callback for other
593         inquiries. 
594         (start_agent): Tell agent that we accept pinentry notifications.
596 2008-02-11  Werner Koch  <wk@g10code.com>
598         * server.c (cmd_getinfo): New. 
599         (register_commands): Register GETINFO.
601 2008-02-09  Marcus Brinkmann  <marcus@g10code.de>
603         * gpg.c (main): New variable default_configname.  Use it if
604         save_configname is NULL (can happen if default configfile does
605         not exist).  Move default configname determination to ...
606         (get_default_configname): ... this new function.
608 2008-01-30  Werner Koch  <wk@g10code.com>
610         * keydb.c (maybe_create_keyring): Fixed last change.
611         * tdbio.c (tdbio_set_dbname): Also test for forward slash.
613 2008-01-29  Werner Koch  <wk@g10code.com>
615         * keydb.c (maybe_create_keyring): Take care of a missing slash.
616         (maybe_create_keyring) [W32]: Also test for forward slash.
618 2008-01-26  Werner Koch  <wk@g10code.com>
620         * card-util.c (get_manufacturer): Add vendor 0004.
622 2008-01-02  Werner Koch  <wk@g10code.com>
624         * gpg.c: Add --logger-file as an alias for log-file.
626 2007-12-14  Werner Koch  <wk@g10code.com>
628         * gpg.c (main): Set opt.no_homedir_creation during the first option
629         parsing pass.
631 2007-12-12  Werner Koch  <wk@g10code.com>
633         * misc.c (print_pubkey_algo_note): Print a warning if a type 20
634         key is used.
635         (openpgp_pk_test_algo, openpgp_pk_test_algo2) 
636         (openpgp_pk_algo_usage): Allow type 20 keys only in rfc2440 mode.
638 2007-12-12  David Shaw  <dshaw@jabberwocky.com>  (wk)
640         * trustdb.c (sanitize_regexp): New.  Protect against dangerous
641         regexps (malloc bombs) by force-commenting any characters aside
642         from the ones we explicitly want.
643         (check_regexp): Use it here before passing the regexp to
644         regcomp().
646 2007-12-12  Werner Koch  <wk@g10code.com>
648         * misc.c (map_cipher_openpgp_to_gcry): New.  Used to map Camellia
649         algorithms to Gcrypt.
650         (openpgp_cipher_test_algo): Call new map function.  Replace
651         all remaining calls to gcry_cipher_test_algo by a call to this.
652         (openpgp_cipher_algo_name): New.  Replace all remaining calls to
653         gcry_cipher_algo_name by a call to this.
654         (map_cipher_gcry_to_openpgp): New.
655         (string_to_cipher_algo): Use it.
656         * gpg.c (main): Print a warning if Camellia support is build in.
657         
658         * gpg.c (print_algo_names): New.  From the 1.4 branch by David.
659         (list_config): Use it here for the "ciphername" and "digestname"
660         config items so we can get a script-parseable list of the names.
662         * parse-packet.c (parse_onepass_sig): Sigclass is hex, so include
663         the 0x.
665         * sign.c (match_dsa_hash): Remove conditional builds dending on
666         USE_SHAxxx.  We don't need this becuase it can be expected that
667         libgcrypt provides it.  However we need to runtime test for SHA244
668         becuase that is only available with libgcrypt 2.4.
670 2007-12-11  Werner Koch  <wk@g10code.com>
672         * mainproc.c (proc_pubkey_enc): Allow type 20 Elgamal key for
673         decryption.
675 2007-12-10  Werner Koch  <wk@g10code.com>
677         * import.c (auto_create_card_key_stub): Do not clear the entire
678         fingerprint.  This finally makes the stub creation work.  My past
679         tests seemed to work because there was a key with a all zero
680         fingerprint available (Elgamal signing keys).
682 2007-12-08  Werner Koch  <wk@g10code.com>
684         * misc.c (openpgp_pk_algo_usage): Allow Elgamal type 20 for
685         encryption.
687 2007-12-04  Werner Koch  <wk@g10code.com>
689         * helptext.c (get_help_from_file): New.
690         (display_online_help): Use it to geting the help through a file.
691         (helptexts): Remove.
693 2007-12-03  Werner Koch  <wk@g10code.com>
695         * keygen.c (ask_key_flags): Add a translation remark and implement
696         a workaround.
698         * gpg.c (reopen_std): Moved to ../common and renamed to
699         gnupg_reopen_std.
700         
701         * gpg.c: Remove second inclusion of fcntl.h.
703 2007-11-19  Werner Koch  <wk@g10code.com>
705         * keyedit.c (keyedit_menu): String grammar fix.
707 2007-11-15  Werner Koch  <wk@g10code.com>
709         * gpg.c (main): New option --xauthority.
710         * call-agent.c (start_agent): Adjust changed start_new_gpg_agent.
712 2007-11-12  Werner Koch  <wk@g10code.com>
714         * cpr.c (do_get_from_fd): s/bool/getbool/ to overcome problems
715         with Mac OS 10.5 which seems to include stdbool.h silently.
717 2007-11-07  Werner Koch  <wk@g10code.com>
719         Replace all includes of errors.h by status.h (found in common/).
721         * status.h: Remove.
722         * status.h: Move prototypes to main.h.
723         * status.c:  Rename to ..
724         * cpr.c: .. this.
725         (get_status_string): Remove.  We take this now from common/.
727 2007-10-25  David Shaw  <dshaw@jabberwocky.com>  (wk)
729         From 1.4 (October):
731         * gpg.c (main): Add --require-cross-certification to
732         --openpgp/--rfc4880 mode.
734         * gpg.c (main): Disable --rfc2440-text and --force-v3-sigs by
735         default.  Enable --require-cross-certification by default.
736         --openpgp (--rfc4880) is the same as --rfc2440 except with
737         "--enable-dsa2 --no-rfc2440-text --escape-from-lines".
739         * misc.c (compliance_option_string, compliance_failure): Minor
740         cleanup.
742         * armor.c (is_armor_header): Comment about 4880.
744         * options.h, gpg.c (main): Add --rfc4880, and make --openpgp an
745         alias to it.  --rfc2440 now stands alone.  For now, use the old
746         2440 defaults for 4880.
747         * misc.c (compliance_option_string): Ditto.
748         
749         * keyedit.c (keyedit_menu): Use compliance_option_string() instead
750         of printing the compliance modes here.
752 2007-10-25  David Shaw  <dshaw@jabberwocky.com>  (wk)
754         From 1.4 (September):
756         * import.c (collapse_uids): Significant speedup for de-duping user
757         IDs.
759 2007-10-25  David Shaw  <dshaw@jabberwocky.com>  (wk)
761         From 1.4 (July):
762         
763         * armor.c (parse_header_line): Improve test so that the header
764         test only allows "Hash" in the signed data section.
766         * armor.c (is_armor_tag): New.  Detect if an armor header matches
767         2440bis-21.
768         (parse_header_line): Call it here, as bis-21 requires warning the
769         user (but continuing to process the message) when seeing an
770         unknown header.
772         * encode.c (encode_crypt): Missed one call to
773         setup_plaintext_name().  This is bug#809.
775         * sign.c (mk_notation_policy_etc): Expect all sigs that this is
776         called for are >=v4.
777         (write_signature_packets, make_keysig_packet): Only call it for
778         >=v4 sigs.  This allows --force-v3-sigs and --force-v4-certs to
779         enable or disable notations, policies, and keyserver URLs.  This
780         is bug#800.
782 2007-10-19  Werner Koch  <wk@g10code.com>
784         * passphrase.c (passphrase_get): Use new utf8 switching fucntions.
786 2007-09-14  Werner Koch  <wk@g10code.com>
788         * gpg.c (build_lib_list): New.
789         (my_strusage): Print lib info.
791 2007-08-27  Werner Koch  <wk@g10code.com>
793         * trustdb.c (USE_INTERNAL_REGEX): Remove support.
795 2007-08-24  Werner Koch  <wk@g10code.com>
797         * keyring.c (keyring_register_filename): Use same_file_p().
799 2007-08-21  Werner Koch  <wk@g10code.com>
801         * misc.c (openpgp_md_test_algo): Remove rfc2440bis hash algorithms.
802         (openpgp_cipher_test_algo): Likewise for algos 5 and 6.
804 2007-08-02  Werner Koch  <wk@g10code.com>
806         * gpg.c: Include gc-opt-flags.h and remove their definition here.
808 2007-07-17  Werner Koch  <wk@g10code.com>
810         * gpg.c (gpgconf_list): Declare --encrypt-to and --default-key.
812         * card-util.c (get_manufacturer): Add the unmanaged S/N range.
814 2007-07-12  Werner Koch  <wk@g10code.com>
816         * gpg.c (main): Use translate_sys2libc_fd_int when passing an int
817         value.
818         * gpgv.c (main): Ditto.
820 2007-07-05  Werner Koch  <wk@g10code.com>
822         * card-util.c (card_generate_subkey, card_store_subkey): Enable
823         the code also for GnuPG-2.
825         * keygen.c (make_backsig): Add arg TIMESTAMP.
826         (write_keybinding): Add arg TIMESTAMP, pass it to make_backsig.
827         (write_direct_sig, write_selfsigs): Add arg TIMESTAMP.
828         (gen_elg, gen_dsa, gen_rsa): Add arg TIMESTAMP.
829         (do_create): Ditto.
830         (do_generate_keypair): Use the same timestamp for key creation
831         time and all key signatures. Return an error if write_direct_sig
832         for the secret key fails.
833         (generate_subkeypair): Ditto.
834         (gen_card_key): New arg TIMESTAMP.
835         (generate_card_subkeypair): Pass current time to gen_card_key.
836         (gen_card_key_with_backup): New arg TIMESTAMP.
837         (read_parameter_file): Add option Creation-Date.
838         (parse_creation_string): New.
839         (do_generate_keypair): Use the Creation-Date if available.
840         (save_unprotected_key_to_card): Use P for P and not D.
841         * call-agent.c (agent_scd_genkey): Add arg CREATETIME.
842         * keyedit.c (menu_backsign): Use the same timestamp for all backsigs.
844 2007-06-26  Werner Koch  <wk@g10code.com>
846         * openfile.c (try_make_homedir): Support W32; use standard_homedir.
848 2007-06-25  Werner Koch  <wk@g10code.com>
850         * gpg.c, gpgv.c: Include sysutils.h.
851         (main): Replace iobuf_translate_file_handle by
852         translate_sys2libc_fd.
853         
855 2007-06-21  Werner Koch  <wk@g10code.com>
857         * main.h: Include util.h.
859         * call-agent.c (start_agent): Factored almost all code out to
860         ../common/asshelp.c.
862         * gpg.h (ctrl_t): Remove.  It is now declared in ../common/util.h.
864 2007-06-20  Werner Koch  <wk@g10code.com>
866         * misc.c (setsysinfo, trap_unaligned): Remove.  It is also in
867         common/sysutils.c.
868         (disable_core_dumps, get_session_marker): 
870         * sign.c (sleep): Remove sleep wrapper.
872 2007-06-18  Marcus Brinkmann  <marcus@g10code.de>
874         * gpg.c (gpgconf_list): Percent escape output of --gpgconf-list.
876 2007-06-14  Werner Koch  <wk@g10code.com>
878         * call-agent.c (start_agent): Use gnupg_module_name.
880 2007-06-12  Werner Koch  <wk@g10code.com>
882         * openfile.c (copy_options_file): Use gnupg_datadir.
883         * misc.c (get_libexecdir): Remove.  Changed all callers to use
884         gnupg_libexecdir.
885         * gpg.c (check_permissions): Use gnupg_libdir.
887         * gpg.c (main): Replace some calls by init_common_subsystems.
888         * gpgv.c (main): Ditto.
890 2007-06-11  Werner Koch  <wk@g10code.com>
892         * Makefile.am (needed_libs): Use libcommonstd macro.
894         * gpgv.c (main) [W32]: Call pth_init.
895         * gpg.c (main) [W32]: Call pth_init.
897 2007-06-08  Werner Koch  <wk@g10code.com>
899         * Makefile.am (gpg2_LDADD): Syntax fix.
901 2007-06-06  Werner Koch  <wk@g10code.com>
903         * passphrase.c (passphrase_get) [!ENABLE_NLS]: Do not define
904         orig_codeset.
906         * Makefile.am (gpgv2_LDADD, gpg2_LDADD): Include LDADD before
907         libgcrypt.
909         * plaintext.c (handle_plaintext): Replace eof by eof_seen as W32's
910         io.h has a symbol with that name.
912         * misc.c: Do not include dynload.h.
913         (w32_shgetfolderpath): Remove. It is now in common/homedir.c.
915         * gpgv.c (i18n_init): Remove.
916         * gpg.c (i18n_init): Remove.
917         (main): Make --load-extension a dummy
919 2007-05-19  Marcus Brinkmann  <marcus@g10code.de>
921         * passphrase.c (passphrase_get): Use PACKAGE_GT, not PACKAGE.
923         * passphrase.c (passphrase_get): Free ORIG_CODESET on error.
925 2007-05-16  Werner Koch  <wk@g10code.com>
927         * sig-check.c (check_backsig): Check the digest algorithm before
928         using it.  Fixed bug 797.
930 2007-05-09  Werner Koch  <wk@g10code.com>
932         * openfile.c (overwrite_filep, open_outfile) [W32]: Need to use
933         just "nul".  Though, I am pretty sure that some MSDOS versions
934         grok the extra /dev/.
936 2007-05-07  Werner Koch  <wk@g10code.com>
938         * openfile.c (open_outfile, overwrite_filep) [W32]: Use "/dev/nul".
940 2007-05-02  David Shaw  <dshaw@jabberwocky.com>
942         * packet.h, mainproc.c (reset_literals_seen): New function to
943         reset the literals count.
945         * verify.c (verify_one_file), decrypt.c (decrypt_messages): Call
946         it here so we allow multiple literals in --multifile mode (in
947         different files - not concatenated together).
949 2007-04-26  Marcus Brinkmann  <marcus@g10code.de>
951         * passphrase.c (passphrase_to_dek): Write missing passphrase
952         status message in case of cancellation.
954 2007-04-16  Werner Koch  <wk@g10code.com>
956         * build-packet.c (mpi_write): Made buffer a bit larger.  Reported
957         by Alexander Feigl.
959 2007-04-13  Werner Koch  <wk@g10code.com>
961         * call-agent.c (start_agent): Don't use log_error when using the
962         fallback hack to start the agent.  This is bug 782.
964 2007-04-05  David Shaw  <dshaw@jabberwocky.com>
966         From STABLE-BRANCH-1-4
968         * parse-packet.c (parse_marker): New.  Enforce that the marker
969         contains 'P', 'G', 'P', and nothing but.
970         (parse): Call it here.
971         (skip_packet): No longer need to handle marker packets here.
973 2007-03-14  David Shaw  <dshaw@jabberwocky.com>
975         From STABLE-BRANCH-1-4
977         * keyserver.c: Windows Vista doesn't grok X_OK and so fails
978         access() tests.  Previous versions interpreted X_OK as F_OK
979         anyway, so we'll just use F_OK directly.
981 2007-03-09  David Shaw  <dshaw@jabberwocky.com>
983         From STABLE-BRANCH-1-4
985         * parse-packet.c (parse_signature): It's hex.
987         * getkey.c (merge_selfsigs_subkey): Avoid listing the contents of
988         a backsig when list mode is on.  Noted by Timo Schulz.
990 2007-03-08  Werner Koch  <wk@g10code.com>
992         * plaintext.c (handle_plaintext): Add two extra fflush for stdout.
994 2007-03-08  David Shaw  <dshaw@jabberwocky.com>  (wk)
996         * keyedit.c (keyedit_menu): If we modify the keyblock (via
997         fix_keyblock() or collapse_uids()) make sure we reprocess the
998         keyblock so the flags are correct.  Noted by Robin H. Johnson.
1000         * getkey.c (fixup_uidnode): Properly clear flags that don't apply
1001         to us (revoked, expired) so that we can reprocess a uid.
1003 2007-03-05  Werner Koch  <wk@g10code.com>
1005         Converted this file to UTF-8.
1006         
1007         Ported David and my multiple messages changes from 1.4.7.
1009         * options.h, gpg.c (main), mainproc.c (check_sig_and_print): Allow
1010         multiple sig verification again as this is protected via the
1011         multiple-messages code.  New option --allow-multiple-messages and
1012         --no variant.
1013         * status.h (STATUS_ERROR): New status code.
1014         * status.c (get_status_string): Ditto.
1015         * mainproc.c (proc_plaintext): Emit it if multiple messages are
1016         detected. Error out if more than one plaintext packet is
1017         encountered.    
1018         * mainproc.c (literals_seen): New.
1020 2007-02-26  Werner Koch  <wk@g10code.com>
1022         * gpg.c (main): Add verify option show-primary-uid-only.
1023         * options.h (VERIFY_SHOW_PRIMARY_UID_ONLY): New.
1024         * mainproc.c (check_sig_and_print): Implement it.
1026 2007-02-22  Werner Koch  <wk@g10code.com>
1028         * encr-data.c (decrypt_data): Correctly test for unknown algorithm.
1029         * import.c (check_prefs): Ditto.
1030         * keyedit.c (show_prefs): Ditto.
1031         * mainproc.c (proc_symkey_enc): Ditto.
1033 2007-02-06  Werner Koch  <wk@g10code.com>
1035         * export.c (do_export_stream): Allow reset-subkey-passwd along
1036         with sexp-format.
1038 2007-02-04  Werner Koch  <wk@g10code.com>
1040         * parse-packet.c (parse_signature): Limit bytes read for an
1041         unknown alogorithm.  Fixes Debian bug#402592.
1043 2007-01-31  Werner Koch  <wk@g10code.com>
1045         * verify.c (verify_signatures): Do no dereference a NULL afx.
1047         * passphrase.c (passphrase_get): Set the cancel flag on all error
1048         from the agent.  Fixes a bug reported by Tom Duerbusch.
1050 2007-01-30  Werner Koch  <wk@g10code.com>
1052         * status.c (write_status_begin_signing): New.
1053         * sign.c (sign_file, sign_symencrypt_file): Call it.
1054         * textfilter.c (copy_clearsig_text): Call it.
1056         * call-agent.c (agent_scd_pksign): Pass --hash-rmd160 to SCD if
1057         required.
1059         * gpg.c (main): Let --no-use-agent and --gpg-agent-info print a
1060         warning.  
1061         * misc.c (obsolete_option): New.
1063 2007-01-29  Werner Koch  <wk@g10code.com>
1065         * pkclist.c (do_we_trust_pre): Issue a user-id-hint status code. 
1067 2007-01-15  Werner Koch  <wk@g10code.com>
1069         * parse-packet.c (read_protected_v3_mpi): Make sure to stop
1070         reading even for corrupted packets.
1071         * keygen.c (generate_user_id): Need to allocate one byte more.
1072         Reported by Felix von Leitner.
1074 2006-12-21  Werner Koch  <wk@g10code.com>
1076         * gpg.c (main): New command --server.
1077         * gpg.h (struct server_control_s, ctrl_t): New.
1078         * server.c: New.
1079         * verify.c (gpg_verify): New.
1080         * mainproc.c (mainproc_context): Made SIGNED_DATA a structure.
1081         (proc_signature_packets_by_fd): New.
1082         (proc_compressed_cb): Divert depending on SIGNED_DATA.
1083         * plaintext.c (hash_datafile_by_fd): New.
1084         * mainproc.c (proc_tree): Use it here.
1086         * verify.c (verify_signatures): Init AFX only when needed.
1087         Don't leak a context on error.
1088         (verify_one_file): Don't leak a context on error.
1090 2006-12-07  Werner Koch  <wk@g10code.com>
1092         * openfile.c (copy_options_file): Use log_info instead of
1093         log_error to avoid an error return of gpg due to a missing
1094         skeleton file.
1096 2006-12-07  David Shaw  <dshaw@jabberwocky.com>
1098         * Makefile.am: Link to iconv for jnlib dependency.
1100 2006-12-05  Werner Koch  <wk@g10code.com>
1102         * passphrase.c (passphrase_to_dek): Handle a Cancel request
1103         correctly.  [Bug#737]
1104         * mainproc.c (proc_symkey_enc): Removed workaround for bogus cancel
1105         processing.
1106         * encode.c (encode_simple): Distinguish error message between
1107         cancel and invalid passphrase.
1108         (setup_symkey): Ditto.
1109         * sign.c (sign_symencrypt_file): Ditto
1110         * keyedit.c (change_passphrase): Allow cancellation.
1111         * keygen.c (do_ask_passphrase): New arg R_CANCELED.
1112         (generate_keypair): Handle a passphrase cancellation.
1113         (generate_raw_key): Ditto.
1114         (generate_subkeypair): Ditto.
1116 2006-12-04  Werner Koch  <wk@g10code.com>
1118         * filter.h (armor_filter_context_t): New element REFCOUNT.
1119         * armor.c (armor_filter): Made static.
1120         (push_armor_filter, release_armor_context, new_armor_context): New.
1121         (armor_filter): Release the context.
1122         * gpg.c (main): Use new armor context functions and
1123         push_armor_filter.
1124         * export.c (do_export): Ditto.
1125         * encode.c (encode_simple, encode_crypt): Ditto.
1126         * decrypt.c (decrypt_message, decrypt_messages): Ditto.
1127         * dearmor.c (dearmor_file, enarmor_file): Ditto.
1128         * verify.c (verify_signatures, verify_one_file): Ditto.
1129         * sign.c (sign_file, clearsign_file, sign_symencrypt_file): Ditto.
1130         * revoke.c (gen_desig_revoke, gen_revoke): Ditto.
1131         * keyserver.c (keyserver_spawn): Ditto.
1132         * keygen.c (output_control_s): Turn AFX fields into pointers.
1133         (read_parameter_file): Allocate and release AFX fields.
1134         (do_generate_keypair): Use push_armor_filter.
1135         * import.c (import): Replace iobuf_push_filter2 hack by the new
1136         armor context stuff.
1138 2006-12-03  Werner Koch  <wk@g10code.com>
1140         * filter.h: New element REFCOUNT.
1141         (handle_progress): Remove prototype.
1142         * progress.c (new_progress_context, release_progress_context): New.
1143         (progress_filter): Use new function to release context.  Made static.
1144         (handle_progress): Bumb reference counter.  No more check for
1145         enabled progress as this is handled by new_progress_context.
1146         * verify.c (verify_signatures, verify_one_file): Replace stack
1147         based progress context by a heap based one.
1148         * sign.c (sign_file, clearsign_file, sign_symencrypt_file): Ditto.
1149         * plaintext.c (ask_for_detached_datafile, hash_datafiles): Ditto.
1150         * encode.c (encode_simple, encode_crypt): Ditto.
1151         * decrypt.c (decrypt_message, decrypt_messages): Ditto. 
1153         * keyedit.c (menu_clean): Made strings translatable.
1155 2006-12-03  David Shaw  <dshaw@jabberwocky.com>
1157         * keyedit.c (menu_clean): Show "already minimized" rather than
1158         "already clean" when a minimized key is minimized again.  From
1159         Dirk Traulsen.
1161 2006-12-02  David Shaw  <dshaw@jabberwocky.com>
1163         * options.h, gpg.c (main), passphrase.c (passphrase_to_dek): Add
1164         --passphrase-repeat option to control how many times gpg will
1165         re-prompt for a passphrase to ensure the user has typed it
1166         correctly.  Defaults to 1.
1168 2006-12-02  Werner Koch  <wk@g10code.com>
1170         * encr-data.c: Allocate DFX context on the heap and not on the
1171         stack.  Changes at several places.  Fixes CVE-2006-6235.
1172         
1173 2006-11-27  Werner Koch  <wk@g10code.com>
1175         * openfile.c (ask_outfile_name): Fixed buffer overflow occurring
1176         if make_printable_string returns a longer string.  Fixes bug 728.
1178 2006-11-21  Werner Koch  <wk@g10code.com>
1180         * Makefile.am (needed_libs): libgnu needs to come after libcommon.
1182         * keygen.c (ask_expire_interval): Print y2038 warning only for 32
1183         bit time_t.
1184         (save_unprotected_key_to_card): Made RSA_N_LEN et al a size_t.
1185         Cast printf args.
1186         (get_parameter_algo): Allow "ELG" as alias for "ELG-E".
1188         * seckey-cert.c (do_check): Made NBYTES a size_t.
1189         (do_check): Made NDATA a size_t.
1190         (protect_secret_key): Made NARR a size_t.
1191         (protect_secret_key): Made NVYES a size_t.
1192         * pubkey-enc.c (get_it): Made INDATALEN a size_t. 
1193         (get_it): Made NFRAME a size_t.
1194         * keyid.c (hash_public_key): Made NBITS an unsigned int.
1195         * misc.c (checksum_mpi): Made NBYTES a size_t. 
1196         (openpgp_pk_test_algo2): Made USE_BUF a size_t.
1197         * seskey.c (encode_session_key): Made NFRAME a size_t.
1198         (do_encode_md): Ditto.
1199         (encode_md_value): Cast size_t argument of printf.
1200         (encode_md_value): Ditto.
1202 2006-11-10  Werner Koch  <wk@g10code.com>
1204         * parse-packet.c (mpi_read): Changed NREAD to size_t to match the
1205         gcry_mpi-scan prototype. 
1206         (mpi_read): Fixed double increment of bytes read to correctly
1207         detect overlong MPIs.
1209 2006-11-05  Werner Koch  <wk@g10code.com>
1211         * gpg.c (main): Remove the default --require-cross-certification.
1212         * options.skel: Enable require-cross-certification.
1214 2006-10-31  Werner Koch  <wk@g10code.com>
1216         * pkclist.c (warn_missing_aes_from_pklist): New.
1217         * encode.c (encrypt_filter, encode_crypt): Use it here.
1219 2006-10-27  Werner Koch  <wk@g10code.com>
1221         * pkclist.c (warn_missing_mdc_from_pklist): New.
1222         * encode.c (use_mdc): Use it here.
1224 2006-10-24  Marcus Brinkmann  <marcus@g10code.de>
1226         * Makefile.am (AM_CFLAGS): Add $(LIBASSUAN_CFLAGS).
1228 2006-10-23  Werner Koch  <wk@g10code.com>
1230         * gpg.c (main): New command --gpgconf-test.
1232         * Makefile.am (bzip2_source): New.
1234 2006-10-20  Werner Koch  <wk@g10code.com>
1236         * getkey.c (classify_user_id): Reserve '&' for search by keygrip.
1238 2006-10-19  Werner Koch  <wk@g10code.com>
1240         * keygen.c (get_parameter_algo): Add special case for ELG_E which
1241         is not supported by libgcrypt's mapping function.
1243 2006-10-18  Werner Koch  <wk@g10code.com>
1245         * keyid.c (v3_keyid): Don't use mempcy as we need to hold the
1246         keyids in the native endian format.
1248         * import.c (import_print_stats): Use log_printf.
1250         * build-packet.c (do_public_key): Care about mpi_write errors.
1251         (do_secret_key, do_pubkey_enc, do_signature): Ditto. 
1252         (mpi_write): Print an extra warning on error.
1254 2006-10-17  Werner Koch  <wk@g10code.com>
1256         * Makefile.am (LDADD): Replaced W32LIBS by NETLIBS.
1258 2006-10-12  David Shaw  <dshaw@jabberwocky.com>
1260         * parse-packet.c (parse_symkeyenc): Show the unpacked as well as
1261         the packed s2k iteration count.
1263         * main.h, options.h, gpg.c (encode_s2k_iterations, main),
1264         passphrase.c (hash_passphrase): Add --s2k-count option to specify
1265         the number of s2k hash iterations.
1267 2006-10-08  Werner Koch  <wk@g10code.com>
1269         * gpgv.c: Remove the tty stubs as we are now required to link to
1270         tty anyway (it is included in libcommand and has dependencies to
1271         other modules as well).
1273         * keyedit.c (keyedit_menu): Use keyedit_completion only if
1274         readline is available.  It would be better to move this code into
1275         gpgrlhelp.c
1277 2006-10-06  Werner Koch  <wk@g10code.com>
1279         * Makefile.am (AM_CFLAGS): Use PTH version of libassuan.
1281 2006-10-06  David Shaw  <dshaw@jabberwocky.com>
1283         * keyserver.c (keyserver_spawn): Write the 16-digit keyid rather
1284         than whatever key selector the user used on the command line.
1286 2006-10-05  Werner Koch  <wk@g10code.com>
1288         * status.c (progress_cb): Changed to libgcrypt API.
1289         (set_status_fd): Register the progress cb.
1291         * seskey.c (encode_md_value): Check that the hash algo is valid
1292         before getting the OID. 
1294 2006-10-04  Werner Koch  <wk@g10code.com>
1296         * passphrase.c: Allow for a static passphrase in batch mode.
1297         
1298         * call-agent.c (agent_havekey): Removed.
1299         (percent_plus_escape): New.
1300         (agent_get_passphrase): New.
1301         (agent_clear_passphrase): New.
1303         * passphrase.c: Changed so that we always require the agent.
1304         (agent_send_option, agent_send_all_options, agent_open): Removed.
1305         (agent_get_passphrase): Cleaned up.  Does now use the call-agent
1306         functions.  Renamed to
1307         (passphrase_get): .. this.  Changed all callers.
1308         (passphrase_clear_cache): Rewritten.
1309         (passphrase_to_dek, hash_passphrase): Re-indented.
1311         * gpg.c (main): Made --use-agent a dummy option.
1312         * seckey-cert.c (check_secret_key): We require the agent, so always
1313         allow for 3 tries.
1315         * gpg.c (main): Print a warning if -sat has been used.
1316         (main): Removed the special treatment of the -k option. -k is now
1317         an alias for --list-keys.
1318         (main): Removed --list-ownertrust.
1320 2006-10-02  Werner Koch  <wk@g10code.com>
1322         * encr-data.c (decrypt_data, mdc_decode_filter): Check the MDC
1323         right here and don't let parse-packet handle the MDC.
1325 2006-09-29  Werner Koch  <wk@g10code.com>
1327         * compress.c (do_uncompress): Removed use of Z_PARTIAL_FLUSH.
1328         This is outdated and old zlib versions which still require it have
1329         security problems.
1331 2006-09-27  Werner Koch  <wk@g10code.com>
1333         Replaced all STRLIST by strlist_t.
1335 2006-09-21  Werner Koch  <wk@g10code.com>
1337         * signal.c (got_fatal_signal): Replaced readline stuff by a tty
1338         function.
1340         * Makefile.am (LDADD): Include libgpgrl.a.
1342         * gpg.c (main): Call gpg_rl_initialize.
1344         * keyedit.c: Removed double inclusion of stdio.h.
1346 2006-09-20  Werner Koch  <wk@g10code.com>
1348         * call-agent.c: Include asshelp.h.
1349         (start_agent): Use send_pinentry_environment.
1351 2006-09-14  Werner Koch  <wk@g10code.com>
1353         Replaced all call gpg_error_from_errno(errno) by
1354         gpg_error_from_syserror().
1356 2006-09-13  Werner Koch  <wk@g10code.com>
1358         * gpg.c (main): Made --require-cross-certification the default. 
1360 2006-09-06  Marcus Brinkmann  <marcus@g10code.de>
1362         * Makefile.am (gpg2_LDADD, gpgv2_LDADD): Replace -lassuan and
1363         -lgpg-error with $(LIBASSUAN_LIBS) and $(GPG_ERROR_LIBS).
1364         (AM_CFLAGS): Add $(LIBASSUAN_CFLAGS) and $(GPG_ERROR_CFLAGS).
1366 2006-09-06  Werner Koch  <wk@g10code.com>
1368         * gpg.c (main): Enable new assuan API.
1369         * call-agent.c: Changed to new Assuan API.
1371 2006-09-01  Werner Koch  <wk@g10code.com>
1373         * call-agent.c: Do not force using the pipe server.
1375         * gpg.c (main): Enable card related commands.
1377 2006-08-22  Werner Koch  <wk@g10code.com>
1379         * mainproc.c (proc_plaintext): Fixed a #warning
1381 2006-08-21  Werner Koch  <wk@g10code.com>
1383         * skclist.c (random_is_faked): Implemented.
1384         (is_insecure): Also test for the old uppercase version of the
1385         insecure string.
1386         * gpg.c (main): Renamed --quick-random to debug-quick-quick-random.
1388         * gpg.c (print_mds): Do not use the USE_SHA macros.
1390         * mainproc.c (proc_encrypted): Remove assign inside condition for
1391         better readibility.
1393         * packet.h: Moved consts to new header ../common/openpgpdefs.h.
1395 2006-08-16  Werner Koch  <wk@g10code.com>
1397         * keyserver.c (GPGKEYS_PREFIX): Rename to gpg2keys_.  This is so
1398         that we can install helpers from 1.4 and 2 without conflicts and
1399         first of all don't get lost with weird bug reports.
1401         * keyid.c (serialno_and_fpr_from_sk): New. Actually lost during
1402         the last 1.4 to 1.9 merge.
1404         * gpg.c (list_config): Output ccid-reader-id only for gnupg 1.
1406         * call-agent.c (agent_scd_writekey): New.
1407         (inq_writekey_parms): New.
1409         * gpgv.c: Include call-agent.h for use by stubs.
1411         * misc.c: Include call-agent.h for use by get_signature_count.
1413 2006-07-27  Werner Koch  <wk@g10code.com>
1415         * parse-packet.c (parse_comment): Cap comments at 65k.
1416         (parse_gpg_control): Skip too large control packets.
1418 2006-07-24  David Shaw  <dshaw@jabberwocky.com>  (wk)
1420         * keydb.h, pkclist.c (select_algo_from_prefs, algo_available):
1421         Pass a union for preference hints rather than doing void * games.
1423         * sign.c (sign_file): Use it here.
1425         * sign.c (sign_file): When signing with multiple DSA keys, one
1426         being DSA1 and one being DSA2 and encrypting at the same time, if
1427         the recipient preferences give a hash that can work with the DSA2
1428         key, then allow the DSA1 key to be promoted rather than giving up
1429         and using hash_for().
1431         * pkclist.c (algo_available): Automatically enable DSA2 mode when
1432         handling a key that clearly isn't DSA1 (i.e. q!=160).
1434 2006-06-30  Werner Koch  <wk@g10code.com>
1436         * misc.c (checksum_mpi): No need for nbits as they are alredy
1437         included in the buffer.
1439 2006-06-29  Werner Koch  <wk@g10code.com>
1441         * parse-packet.c (parse_signature, parse_key): Need store the
1442         length of opaque data as number of bits. 
1443         * card-util.c (card_store_subkey): Ditto.
1445         * mainproc.c (print_pkenc_list, check_sig_and_print): Replaced
1446         log_get_stream by calls to log_printf.  This avoids the extra LFs
1447         inserted by the logging function. They are a bit too smart
1448         sometimes.
1449         * pkclist.c (do_show_revocation_reason): Print final LF through
1450         log_printf to avoid extra LFs.
1451         * pubkey-enc.c (get_it): Ditto.
1453         * seskey.c (encode_md_value): Fix call to gcry.
1455 2006-06-27  Werner Koch  <wk@g10code.com>
1457         Applied patches from 1.4.x (2006-05-22 to 2006-06-23) from David:
1459         * keygen.c (keygen_upd_std_prefs, keygen_add_std_prefs)
1460         (proc_parameter_file): Add --default-keyserver-url to specify a
1461         keyserver URL at key generation time, and "Keyserver:" keyword for
1462         doing the same through a batch file.
1463         * options.h, gpg.c (main): Ditto.
1465         * sign.c (do_sign): For now don't accept a truncated hash even
1466         for DSA1 keys (be liberal in what you accept, etc).
1468         * import.c (import_one): Add a flag (from_sk) so we don't check
1469         prefs on an autoconverted public key.  The check should only
1470         happen on the sk side.  Noted by Dirk Traulsen.
1472         * keygen.c (gen_card_key): Add optional argument to return a
1473         pointer (not a copy) of the stub secret key for the secret key we
1474         just generated on the card.
1475         (generate_card_subkeypair): Use it here so that the signing key on
1476         the card can use the card to generate the 0x19 backsig on the
1477         primary key.  Noted by Janko Heilgeist and Jonas Oberg.
1479         * parse-packet.c (parse_user_id): Cap the user ID size at 2048
1480         bytes.  This prevents a memory allocation attack with a very large
1481         user ID.  A very large packet length could even cause the
1482         allocation (a u32) to wrap around to a small number.  Noted by
1483         Evgeny Legerov on full-disclosure.
1485         * keygen.c (gen_dsa): Allow generating DSA2 keys.  Allow
1486         specifying sizes > 1024 when --enable-dsa2 is set.  The size of q
1487         is set automatically based on the key size.
1488         (ask_keysize, generate_keypair): Ask for DSA size when
1489         --enable-dsa2 is set.
1491         * exec.c (make_tempdir) [W32]: Fix bug with a temporary directory
1492         on W32 that is over 256 bytes long.  Noted by Israel G. Lugo.
1494         * gpg.c (reopen_std): New function to reopen fd 0, 1, or 2 if we
1495         are called with them closed.  This is to protect our
1496         keyring/trustdb files from corruption if they get attached to one
1497         of the standard fds.  Print a warning if possible that this has
1498         happened, and fail completely if we cannot reopen (should never
1499         happen).
1500         (main): Call it here.
1501         
1502         * parse-packet.c (dump_sig_subpkt, parse_signature): Fix meaning
1503         of key expiration and sig expiration subpackets - zero means
1504         "never expire" according to 2440, not "expire instantly".
1505         * build-packet.c (build_sig_subpkt_from_sig): Ditto.
1506         * getkey.c (fixup_uidnode, merge_selfsigs_main)
1507         (merge_selfsigs_subkey): Ditto.
1508         * keygen.c (keygen_add_key_expire): Ditto.
1510         * getkey.c (get_pubkey_byname)
1511         * import.c (import_one): Fix key selection problem when
1512         auto-key-locate returns a list of keys, not all of which are
1513         usable (revoked, expired, etc).  Noted by Simon Josefsson.
1515 2006-05-24  Werner Koch  <wk@g10code.com>
1517         * keyid.c (hash_public_key): Do not double hash the length bytes,
1518         they are already included by mpi_print.
1520         * misc.c (openpgp_pk_test_algo2): Get test call right.
1522         * misc.c (string_to_cipher_algo, string_to_digest_algo): New.
1523         * keygen.c (keygen_set_std_prefs): use them here.
1524         * gpg.c (main): and here.
1526 2006-05-23  Werner Koch  <wk@g10code.com>
1528         * card-util.c (generate_card_keys): Removed temporary kludge for
1529         generate_keypair.
1531         * call-agent.c (agent_scd_setattr): Add arg SERIALNO.
1532         (agent_scd_genkey): Ditto.
1533         (agent_scd_change_pin): Ditto.
1535         * call-agent.h (struct agent_card_info_s): Updated to match the
1536         one of 1.4.3.
1538         * Makefile.am (LDADD): Include ZLIBS.
1540         * gpgv.c: Removed stubs not anymore useful due to libgcrypt.
1542 2006-05-22  Werner Koch  <wk@g10code.com>
1544         * keyserver.c (keyidlist): Replaced mpi_get_keyid by v3_keyid.
1545         * keydb.h (v3_keyid): Added.
1547         * import.c (import): Better initialize KEYBLOCK as to quiet
1548         compiler warning.
1550         * skclist.c (random_is_faked): New.
1552         * mainproc.c: Include pka.h.
1554 2006-05-19  Werner Koch  <wk@g10code.com>
1556         * misc.c (openpgp_pk_test_algo2): Need to use gcry_pk_algo_info
1557         directly.
1558         (string_count_chr): New.
1560         * armor.c (parse_header_line): Use renamed function
1561         length_sans_trailing_ws.
1563         * options.h, gpg.c: Option --strict is not used thus removed code
1564         but kept option.
1566 2006-04-28  David Shaw  <dshaw@jabberwocky.com>  (wk)
1567         
1568         * keyserver.c (direct_uri_map): New.
1569         (keyserver_spawn): Used here to add "_uri" to certain gpgkeys_xxx
1570         helpers when the meaning is different if a path is provided (i.e. 
1571         ldap).
1572         (keyserver_import_cert): Show warning if there is a CERT
1573         fingerprint, but no --keyserver set.
1575         * keyserver.c: Fix build problem with platforms that stick libcurl
1576         in a place not in the regular include search path.
1578         * options.h, gpg.c (main): Add --enable-dsa2 and --disable-dsa2.
1579         Defaults to disable.
1581         * pkclist.c (algo_available): If --enable-dsa2 is set, we're
1582         allowed to truncate hashes to fit DSA keys.
1584         * sign.c (match_dsa_hash): New.  Return the best match hash for a
1585         given q size.
1586         (do_sign, hash_for, sign_file): When signing with a DSA key, if it
1587         has q==160, assume it is an old DSA key and don't allow truncation
1588         unless --enable-dsa2 is also set.  q!=160 always allows truncation
1589         since they must be DSA2 keys.
1590         (make_keysig_packet): If the user doesn't specify a
1591         --cert-digest-algo, use match_dsa_hash to pick the best hash for
1592         key signatures.
1594         * gpg.c (print_mds): Add SHA-224.
1595         * armor.c (armor_filter, parse_hash_header): Add SHA-224.
1597         * sign.c (write_plaintext_packet):
1598         Factor common literal packet setup code from here, to...
1599         * encode.c (encode_simple): .. there.
1600         
1601         * main.h, plaintext.c (setup_plaintext_name): Here. New. Make sure
1602         the literal packet filename field is UTF-8 encoded.
1604         * options.h, gpg.c (main): Make sure --set-filename is UTF-8
1605         encoded and note when filenames are already UTF-8.
1607         * keyedit.c (menu_backsign): Give some more verbose errors when we
1608         have no need to backsign.
1610         * getkey.c (parse_auto_key_locate): Fix dupe-removal code.
1612         * keyedit.c (menu_backsign): Allow backsigning even if the secret
1613         subkey doesn't have a binding signature.
1615         * armor.c (radix64_read): Don't report EOF when reading only a pad
1616         (=) character.  The EOF actually starts after the pad.
1618         * gpg.c (main): Make --export, --send-keys, --recv-keys,
1619         --refresh-keys, and --fetch-keys follow their arguments from left
1620         to right.  Suggested by Peter Palfrader.
1622 2006-04-18  Werner Koch  <wk@g10code.com>
1624         * tdbio.c (open_db, migrate_from_v2): Removed feature to migration
1625         from old trustdb version 2.
1627         * gpg.c, mainproc.c: Removed pipemode feature.
1629         * status.c: Removed shared memory coprocess stuff
1631         Merged with current gpg 1.4.3 code.
1632         
1633         * keygen.c, keyid.c, misc.c, openfile.c, verify.c, trustdb.c
1634         * textfilter.c, tdbio.c, tdbdump.c, status.c, skclist.c, signal.c
1635         * sign.c, sig-check.c, seskey.c, seckey-cert.c, revoke.c
1636         * pubkey-enc.c, progress.c, plaintext.c, pkclist.c, photoid.c
1637         * passphrase.c, parse-packet.c, mdfilter.c, mainproc.c
1638         * keyserver.c, keyring.c, keylist.c, keyedit.c, keydb.c, kbnode.c
1639         * import.c, getkey.c, gpgv.c, helptext.c, free-packet.c
1640         * build-packet.c, cipher.c, compress.c, dearmor.c, decrypt.c
1641         * delkey.c, encr-data.c, encode.c, exec.c, export.c
1642         * gpg.c, armor.c: Updated from gnupg-1.4.3 and merged back gcry and
1643         gnupg-1.9 related changes.
1644         * trustdb.h, tdbio.h, status.h, photoid.h, packet.h, options.h
1645         * main.h, keyserver-internal.h, keyring.h, keydb.h, filter.h
1646         * exec.h: Ditto.
1647         * global.h: Removed after merging constants with gpg.h.
1648         * comment.c, pipemode.c: Removed.
1649         * card-util.c: Updated from gnupg-1.4.3.
1650         * compress-bz2.c: New.
1651         
1652 2005-06-15  Werner Koch  <wk@g10code.com>
1654         * g10.c (print_hashline, add_group): Fixes for signed/unsigned
1655         pointer mismatch warnings.
1657 2005-06-01  Werner Koch  <wk@g10code.com>
1659         * mkdtemp.c: Removed.
1660         * exec.c: Include mkdtemp.h
1662 2004-12-21  Werner Koch  <wk@g10code.com>
1664         * gpgv.c, g10.c (main): Use default_hoemdir ().
1666 2004-12-18  Werner Koch  <wk@g10code.com>
1668         * gpg.h (map_assuan_err): Define in terms of
1669         map_assuan_err_with_source.
1671 2004-12-15  Werner Koch  <wk@g10code.com>
1673         * Makefile.am (LDADD): Remove ZLIBS.
1675 2004-10-22  Werner Koch  <wk@g10code.com>
1677         * g10.c (main): Display a bit fat warning that this gpg should not
1678         be used.
1680         * card-util.c (fetch_url): Disable for gnupg 1.9
1681         (card_generate_subkey): Ditto.
1682         (card_store_subkey): Ditto.
1684 2004-09-30  Werner Koch  <wk@g10code.com>
1686         * gpgv.c (i18n_init): Always use LC_ALL.
1688         * Makefile.am (LDADD): Adjusted for gettext 0.14.
1690 2004-09-20  Werner Koch  <wk@g10code.com>
1692         * keyedit.c (show_key_with_all_names): Print the card S/N.
1694 2004-09-11  Moritz Schulte  <moritz@g10code.com>
1696         * openfile.c (copy_options_file): Fixed last commit (added a `+').
1698 2004-08-31  Werner Koch  <wk@g10code.de>
1700         * openfile.c (copy_options_file): Use gpg-conf.skel. Better take
1701         the length of SKELEXT into account, someone might make it larger.
1702         * Makefile.am: Install options.skel as gpg-conf.skel.
1704 2004-08-18  Marcus Brinkmann  <marcus@g10code.de>
1706         * passphrase.c (agent_get_passphrase): Fix detection of gpg-agent
1707         cancellation.
1709 2004-07-01  Werner Koch  <wk@gnupg.org>
1711         * card-util.c (change_login): Kludge to allow reading data from a
1712         file.
1713         (card_edit): Pass ARG_STRING to change_login.
1714         (card_status): Print CA fingerprints.
1715         (change_cafpr): New.
1716         (card_edit): New command CAFPR.
1718         * call-agent.h: Add members for CA fingerprints.
1719         * call-agent.c (agent_release_card_info): Invalid them.
1720         (learn_status_cb): Store them.
1722 2004-04-30  Werner Koch  <wk@gnupg.org>
1724         * g10.c (main) <gpgconf>: Use gpg.conf and not /dev/null as
1725         default filename.
1727 2004-04-28  Werner Koch  <wk@gnupg.org>
1729         * card-util.c (card_edit): Remove PIN verification.
1730         (generate_card_keys): New arg SERIALNO.  Do PIN verification here
1731         after resetting forced_chv1.
1733 2004-04-26  Werner Koch  <wk@gnupg.org>
1735         * card-util.c (change_name): Check that the NAME is not too long.
1736         (change_url): Likewise.
1737         (change_login): Likewise.
1739 2004-03-23  Werner Koch  <wk@gnupg.org>
1741         * g10.c: New options --gpgconf-list, --debug-level and --log-file
1742         (set_debug): Add arg DEBUG_LEVEL.
1743         (main): Look at less and less version specific config files.  From
1744         gnupg 1.3.
1746 2004-02-17  Werner Koch  <wk@gnupg.org>
1748         * call-agent.c (start_agent): Ignore an empty GPG_AGENT_INFO.
1749         * passphrase.c (agent_open): Ditto.
1751 2004-02-12  Werner Koch  <wk@gnupg.org>
1753         * gpgv.c: Removed g10defs.h.
1755         * Makefile.am: Include cmacros.am for common flags.
1757 2004-02-11  Werner Koch  <wk@gnupg.org>
1759         * openfile.c (try_make_homedir): Use GNUPG_DEFAULT_HOMEDIR.
1760         * gpgv.c (main): Ditto.
1761         * g10.c (main): Ditto.
1763 2004-01-19  Moritz Schulte  <mo@g10code.com>
1765         * keygen.c (do_generate_keypair): Print member fname, instead of
1766         newfname, again.
1767         (do_generate_keypair): Don't try to execute certain pieces of code
1768         in case an error occured.
1769         (gen_card_key): Don't print out a message, which is already
1770         printed by do_generate_keypair().
1772 2004-01-18  Moritz Schulte  <mo@g10code.com>
1774         * keygen.c (do_generate_keypair): Print member fname, instead of
1775         newfname.
1777 2003-12-17  Werner Koch  <wk@gnupg.org>
1779         * card-util.c (print_name): Fixed bad format string usage.
1780         (print_isoname): Ditto.
1782         * trustdb.c (check_regexp): s/exp/expr/.
1784         * keyedit.c (trustsig_prompt): Removed a "> 255" term; it is
1785         always false due to the data type.
1786         
1787         * passphrase.c (agent_get_passphrase): Use xasprintf and avoid
1788         non-literal format strings.
1790         * tdbio.c (upd_hashtable, drop_from_hashtable, lookup_hashtable):
1791         Fixed log_error format string bugs.  Kudos to the now working
1792         gcc-3.3 -Wformat-nonliteral and Florian Weimer's investigations in
1793         gnupg 1.2.3.
1795 2003-12-15  Werner Koch  <wk@gnupg.org>
1797         * seckey-cert.c (protect_secret_key): Use gry_create_nonce for the
1798         IV; there is not need for real strong random here and it even
1799         better protect the random bits used for the key.
1801 2003-11-16  Moritz Schulte  <mo@g10code.com>
1803         * signal.c: Removed unused file.
1805 2003-11-10  Moritz Schulte  <mo@g10code.com>
1807         * Makefile.am (INCLUDES): Added: @LIBGCRYPT_CFLAGS@.
1809 2003-10-25  Werner Koch  <wk@gnupg.org>
1811         * call-agent.c (learn_status_cb, scd_genkey_cb): Fixed faulty use
1812         of !spacep().
1814 2003-10-20  Werner Koch  <wk@gnupg.org>
1816         * card-util.c (card_edit): New command "passwd".  Add logic to
1817         check the PIN in advance.
1818         (card_status): Add new args to return the serial number.  Changed
1819         all callers.
1820         * call-agent.c (agent_scd_checkpin): New.
1822 2003-10-08  Werner Koch  <wk@gnupg.org>
1824         * call-agent.c (agent_scd_getattr): Don't clear the passed info
1825         structure, so that it can indeed be updated.
1827         * card-util.c (fpr_is_zero): New.
1828         (generate_card_keys): New.
1829         (card_edit): New command "generate".
1830         * keygen.c (generate_keypair): New arg CARD_SERIALNO, removed call
1831         to check_smartcard.
1832         (check_smartcard,show_smartcard): Removed.
1833         (show_sha1_fpr,fpr_is_zero): Removed.
1835 2003-10-01  Werner Koch  <wk@gnupg.org>
1837         * card-util.c: Tweaked to use this source also under 1.3. 
1839 2003-09-30  Werner Koch  <wk@gnupg.org>
1841         * keylist.c (print_card_serialno): New.
1842         (list_keyblock_print): Use it here.
1844         * card-util.c (toggle_forcesig): New.
1845         (card_edit): New command "forcesig".
1846         
1847         * card-util.c (print_name, print_isoname): Use 0 and not LF fro
1848         the max_n arg of tty_print_utf8_string2.
1850         * call-agent.c (agent_scd_getattr): New.
1851         (learn_status_cb): Release values before assignment so that it can
1852         be used by getattr to update the structure.
1853         
1854         * card-util.c (change_pin): Simplified.  We now have only a PIN
1855         and an Admin PIN.
1857 2003-09-27  Werner Koch  <wk@gnupg.org>
1859         * sign.c (do_sign): Removed disabled testcode.
1861 2003-09-26  Timo Schulz  <twoaday@freakmail.de>
1863         * card_status (card_status): Do not use fputs since the fp
1864         parameter can be NULL. This fixes a segv.
1865         
1866 2003-09-24  Werner Koch  <wk@gnupg.org>
1868         * card-util.c (print_isoname,card_status): Handle opt.with_colons.
1869         (print_sha1_fpr_colon): New.
1871 2003-09-23  Werner Koch  <wk@gnupg.org>
1873         Merged most of David Shaw's changes in 1.3 since 2003-06-03.
1874         
1875         * Makefile.am: Include W32LIBS where appropriate.
1877         * armor.c (parse_hash_header,armor_filter): Drop TIGER/192 support.
1878         * g10.c (print_hex,print_mds): Ditto.
1879         * pkclist.c (algo_available): Ditto.
1881         * armor.c (armor_filter): Allow using --comment multiple times to
1882         get multiple Comment header lines.  --no-comments resets list.
1883         * options.h, g10.c (main): Ditto. Deprecate --default-comment in
1884         favor of --no-comments.
1886         * g10.c (main): Trim --help to commonly used options.  Remove -f.
1888         * g10.c (main): Add --multifile as an alias to turn --encrypt into
1889         --encrypt-files (plus --verify-files, --decrypt-files).  Error out
1890         if --multifile is used with the commands that don't support it yet.
1892         * encode.c (use_mdc), g10.c (main): Use RFC1991 and RFC2440
1893         directly to check for MDC usability.  Do not set the force_mdc or
1894         disable_mdc flags since there is no point any longer.
1895         
1896         * g10.c (main): Use "keyserver-url" instead of
1897         "preferred-keyserver" for the sake of short and simple commands.
1898         (add_keyserver_url): Clarify a few strings.  It's a
1899         "preferred keyserver URL".
1900         * keyedit.c (keyedit_menu): Ditto.
1901         * sign.c (mk_notation_policy_etc): Ditto. 
1903         * main.h, keygen.c (keygen_add_keyserver_url): Signature callback
1904         for adding a keyserver URL.
1905         * keyedit.c (keyedit_menu, menu_set_keyserver_url): New command to
1906         set preferred keyserver to specified (or all) user IDs.
1907         * build-packet.c (build_sig_subpkt): Set preferred keyserver flag
1908         while building a preferred keyserver subpacket.
1910         * keylist.c (show_policy_url, show_keyserver_url): URLs might be
1911         UTF8.
1913         * keyedit.c (menu_addrevoker): Fix leaking a few bytes.
1915         * keyedit.c (show_key_with_all_names): Use list-option
1916         show-long-keyid in main --edit-key display.
1918         * keyedit.c (print_and_check_one_sig): Use list-option
1919         show-long-keyid in --edit-key "check" function.
1921         * passphrase.c (agent_send_all_options): Make use of $GPG_TTY.
1923         * g10.c (main): Disable use-agent if passphrase-fd is given
1924         later. Suggested by Kurt Garloff.
1926         * exec.c, g10.c, gpgv.c, passphrase.c, photoid.c:
1927         s/__MINGW32__/_WIN32/ to help building on native Windows
1928         compilers.  Requested by Brian Gladman.  From Werner on stable
1929         branch.
1931         * options.h, g10.c (main): Add list-option
1932         list-preferred-keyserver.
1934         * keyedit.c (change_passphrase): When responding 'no' to the blank
1935         passphrase question, re-prompt for a new passphrase.  This is bug
1936         #202.
1938         * mainproc.c (check_sig_and_print): Use two different preferred
1939         keyserver displays - one if the key is not present (to tell the
1940         user where to get the key), the other if it is present (to tell
1941         the user where the key can be refreshed).
1943         * packet.h, parse-packet.c (parse_signature): Set flag if a
1944         preferred keyserver is present.
1946         * keylist.c (list_keyblock_print): Show keyserver url in listings
1947         with list-option show-keyserver-url.
1949         * mainproc.c (check_sig_and_print): Get the uid validity before
1950         printing any sig results to avoid munging the output with trustdb
1951         warnings.
1953         * g10.c (main): Don't include --show-keyring in --help as it is
1954         deprecated.
1956         * options.skel: Note that keyserver.pgp.com isn't synchronized,
1957         and explain the roundrobin a bit better.
1959         * sig-check.c (check_key_signature2), import.c (import_one,
1960         import_revoke_cert, chk_self_sigs, delete_inv_parts,
1961         collapse_uids, merge_blocks): Make much quieter during import of
1962         slightly munged, but recoverable, keys. Use log_error for
1963         unrecoverable import failures.
1965         * keyring.c (keyring_rebuild_cache): Comment.
1967         * sign.c (mk_notation_and_policy): Making a v3 signature with
1968         notations or policy urls is an error, not an info (i.e. increment
1969         the errorcount). Don't print the notation or policy url to stdout
1970         since it can be mixed into the output stream when piping and munge
1971         the stream.
1973         * packet.h, sig-check.c (signature_check2, do_check,
1974         do_check_messages): Provide a signing-key-is-revoked flag.  Change
1975         all callers.
1977         * status.h, status.c (get_status_string): New REVKEYSIG status tag
1978         for a good signature from a revoked key.
1980         * mainproc.c (do_check_sig, check_sig_and_print): Use it here.
1982         * import.c (import_revoke_cert, merge_blocks, merge_sigs): Compare
1983         actual signatures on import rather than using keyid or class
1984         matching.  This does not change actual behavior with a key, but
1985         does mean that all sigs are imported whether they will be used or
1986         not.
1988         * parse-packet.c (parse_signature): Don't give "signature packet
1989         without xxxx" warnings for experimental pk algorithms.  An
1990         experimental algorithm may not have a notion of (for example) a
1991         keyid (i.e. PGP's x.509 stuff).
1993         * options.h, g10.c (main), keylist.c (list_keyblock_print),
1994         keyedit.c (print_and_check_one_sig): New "show-sig-expire"
1995         list-option to show signature expiration dates (if any).
1997         * options.h, g10.c (main, add_keyserver_url): Add
1998         --sig-preferred-keyserver to implant a "where to get my key"
1999         subpacket into a signature.
2001         * sign.c (mk_notation_and_policy): Rename to
2002         mk_notation_policy_etc and add preferred keyserver support for
2003         signatures.
2005         * keygen.c (do_add_key_flags): Don't set the certify flag for
2006         subkeys.
2007         (ask_algo): Provide key flags for DSA, Elgamal_e, and Elgamal
2008         subkeys.
2009         (generate_keypair): Provide key flags for the default DSA/Elgamal
2010         keys.
2012         * sig-check.c (signature_check, signature_check2,
2013         check_key_signature, check_key_signature2): Allow passing NULLs
2014         for unused parameters in the x2 form of each function to avoid the
2015         need for dummy variables. getkey.c, mainproc.c: Change all
2016         callers.
2018         * trustdb.h, trustdb.c (read_trust_options): New.  Returns items
2019         from the trustdb version record.
2020         * keylist.c (public_key_list): Use it here for the new "tru"
2021         record.
2022         * gpgv.c (read_trust_options): Stub.
2024         * keyedit.c (show_key_with_all_names): Use list-option
2025         show-validity in --edit-key interface as well.
2027         * options.h, g10.c (main), mainproc.c (check_sig_and_print): Add
2028         verify-options "show-validity" and "show-long-keyid" to show
2029         trustdb validity and long keyids during (file) signature
2030         verification.
2032         * packet.h, main.h, sig-check.c (signature_check2)
2033         (check_key_signature2, do_check): If ret_pk is set, fill in the pk
2034         used to verify the signature.  Change all callers in getkey.c,
2035         mainproc.c, and sig-check.c.
2037         * keylist.c (list_keyblock_colon): Use the ret_pk from above to
2038         put the fingerprint of the signing key in "sig" records during a
2039         --with-colons --check-sigs.  This requires --no-sig-cache as well
2040         since we don't cache fingerprints.
2042         * parse-packet.c (parse_signature): No need to reserve 8 bytes for
2043         the unhashed signature cache any longer.
2045         * misc.c (pct_expando): Add two new expandos - signer's
2046         fingerprint (%g), and signer's primary fingerprint (%p).
2048         * g10.c (main): Add --rfc2440 alias for --openpgp since in a few
2049         months, they won't be the same thing.
2051         * keyserver.c (parse_keyserver_uri): Accept "http" as an alias for
2052         "hkp", since it is occasionally written that way.
2053         (keyserver_spawn): Use ascii_isspace to avoid locale issues.
2055         * keygen.c (ask_user_id): Make --allow-freeform-uid apply to the
2056         email field as well as the name field, and allow mixing fields
2057         when it is set.
2059         * trustdb.c (validate_one_keyblock): Certifications on revoked or
2060         expired uids do not count in the web of trust.
2062         * signal.c (init_one_signal, pause_on_sigusr, do_block): Only use
2063         sigprocmask() if we have sigset_t, and only use sigaction() if we
2064         have struct sigaction.  This is for Forte c89 on Solaris which
2065         seems to define only the function call half of the two pairs by
2066         default.
2067         (pause_on_sigusr): Typo.
2068         (do_block): If we can't use sigprocmask() and sigset_t, try to get
2069         the number of signals from NSIG as well as MAXSIG, and if we
2070         can't, fail with an explanation.
2072         * signal.c, tdbio.c: Comment out the transaction code.  It was not
2073         used in this version, and was causing some build problems on
2074         quasi-posix platforms (Solaris and Forte c89).
2076         * keylist.c (list_keyblock_colon): Don't include validity values
2077         when listing secret keys since they can be incorrect and/or
2078         misleading.  This is a temporary kludge, and will be handled
2079         properly in 1.9/2.0.
2081         * mainproc.c (check_sig_and_print): Only show the "key available
2082         from" preferred keyserver line if the key is not currently
2083         present.
2085         * keyedit.c (sign_uids): Do not sign expired uids without --expert
2086         (same behavior as revoked uids).  Do not allow signing a user ID
2087         without a self-signature.  --expert overrides.  Add additional
2088         prompt to the signature level question.
2089         (menu_expire): When changing expiration dates, don't replace
2090         selfsigs on revoked uids since this would effectively unrevoke
2091         them. There is also no point in replacing expired selfsigs.  This
2092         is bug #181
2094         * g10.c (add_notation_data): Make sure that only ascii is passed
2095         to iscntrl.  Noted by Christian Biere.
2096         * getkey.c (classify_user_id2): Replaced isspace by spacep
2097         * keygen.c (ask_user_id): Ditto.
2098         (get_parameter_algo): Ditto.
2099         * keyedit.c (keyedit_menu): Ditto.
2100         * tdbdump.c (import_ownertrust): Ditto.  s/isxdigit/hexdigitp/.
2101         * revoke.c (ask_revocation_reason): 
2102         * keyserver.c (keyserver_spawn): Dito.
2104         * parse-packet.c (parse): Disallow old style partial length for
2105         all key material packets to avoid possible corruption of keyrings.
2107         * import.c (import_keys_internal): Invalidate the cache so that
2108         the file descriptor gets closed.  Fixes bug reported by Juan
2109         F. Codagnone.
2111         * options.h, g10.c (main), main.h, keylist.c (show_keyserver_url),
2112         mainproc.c (check_sig_and_print), parse-packet.c (dump_sig_subpkt,
2113         parse_one_sig_subpkt, can_handle_critical): Add read-only support
2114         for preferred keyserver subpackets.  They're basically policy URLs
2115         with a different name.  Add a verify-option
2116         "show-preferred-keyserver" to turn them on and off (on by default,
2117         as per stable branch).
2119         * g10.c (main): Add "--set-notation" as alias to "--notation-data"
2120         this is to make things consistent with --set-policy-url meaning
2121         both sigs and certs.
2123         * options.h, g10.c (main), keylist.c (list_keyblock_print): Add
2124         "show-validity" and "show-long-keyid" list-options.
2126         * gpgv.c (get_validity, trust_value_to_string): Stubs.
2128         * g10.c (main): Use SAFE_VERSION instead of VERSION in the
2129         version-specific gpg.conf file so it can be overridden on RISCOS.
2131         * keyedit.c (show_key_with_all_names): Fix assertion failure when
2132         using toggle to see a secret key.  Reported by Maxim Britov.
2135 2003-09-22  Timo Schulz  <twoaday@freakmail.de>
2137         * card-util.c (card_status): Free pk in case of an error
2138         and return if the card is no OpenPGP card.
2139         
2140 2003-09-18  Werner Koch  <wk@gnupg.org>
2142         * g10.c: New command --card-edit.
2143         * card-util.c (card_status): Use tty_fprintf for all output.
2144         (print_sha1_fpr, print_isoname): Ditto.
2145         (get_one_name,change_name, change_url, change_login,change_lang)
2146         (change_sex): New; taken from keygen.c.
2147         * keygen.c (smartcard_get_one_name, smartcard_change_name) 
2148         (smartcard_change_url, smartcard_change_login_data) 
2149         (smartcard_change_lang, smartcard_change_sex): Removed.
2150         (check_smartcard): Removed most menu items.
2152 2003-09-06  Werner Koch  <wk@gnupg.org>
2154         * misc.c (openpgp_pk_algo_usage): Allow AUTH where SIGN is allowed.
2156         * keygen.c (ask_passphrase): No need to allocated S2K in secure
2157         memory.
2159 2003-09-04  Werner Koch  <wk@gnupg.org>
2161         * keygen.c (do_add_key_flags, parse_parameter_usage) 
2162         (do_generate_keypair): Add support the proposed AUTH key flag.
2163         * getkey.c (fixup_uidnode, merge_selfsigs_main) 
2164         (merge_selfsigs_subkey, premerge_public_with_secret): Ditto.
2165         * keylist.c (print_capabilities): Ditto.
2167 2003-08-25  Timo Schulz  <twoaday@freakmail.de>
2169         * pkglue.c (mpi_from_sexp): New. Used to factor out
2170         some common code.
2171         
2172 2003-08-24  Werner Koch  <wk@gnupg.org>
2174         * keygen.c (do_generate_keypair): Print a reminder to use --gen-revoke.
2176 2003-08-18  Timo Schulz  <twoaday@freakmail.de>
2178         * encode.c (encode_sesskey): Checked the code and removed
2179         the warning since all compatibility checks with PGP succeeded.
2180         * mainproc.c (symkey_decrypt_sesskey): Better check for the
2181         algorithm and check the return values of some functions.
2182         * mdc.c (use_mdc): Simplified.
2183         
2184 2003-08-07  Werner Koch  <wk@gnupg.org>
2186         * pkglue.c (pk_sign): Fix last change.
2187         (pk_verify): Check for valid DATA array so that we don't segv in
2188         Libgcrypt.
2189         (pk_verify): Ditto.
2191 2003-08-06  Werner Koch  <wk@gnupg.org>
2193         * pkglue.c (pk_sign): Allow signing using RSA.
2195 2003-08-05  Werner Koch  <wk@gnupg.org>
2197         * Makefile.am (install-data-local): Dropped check for the ancient
2198         gpgm tool.
2199         (bin_PROGRAMS): Renamed gpg to gpg2 and gpgv to gpgv2.  This is so
2200         that it won't conflict with the current stable version of gpg.
2202         * pkglue.c (pk_check_secret_key): New.
2203         * seckey-cert.c (do_check): Reenable this test here again.
2205         * g10.c (main): Add command -K as an alias for
2206         --list-secret-keys. Command "-k" is now an alias to --list-keys.
2207         Remove special treatment of -kv and -kvv.
2208         (set_cmd): Ditto.
2209         (main): Strip a "-cvs" suffix when testing for a version specific
2210         config file.
2212         * status.h, status.c, g10.c [USE_SHM_COPROCESSING]: Removed.  This
2213         is not any longer available.
2215 2003-07-29  Werner Koch  <wk@gnupg.org>
2217         * g10.c (main): Add secmem features and set the random seed file.
2218         (g10_exit): Update the random seed file.
2220         * parse-packet.c (parse_signature,read_protected_v3_mpi)
2221         (parse_key): Fixed use of mpi_set_opaque.
2222         * keygen.c (gen_card_key): Ditto.
2224 2003-07-28  Werner Koch  <wk@gnupg.org>
2226         * status.c (progress_cb): Adjusted for use with Libcgrypt.
2227         (set_status_fd): Register that callback.
2229         * keygen.c (smartcard_change_login_data): New.
2230         (smartcard_change_lang): New.
2231         (smartcard_change_sex): New.
2232         (check_smartcard): Add menu entries to edit the above.
2233         (gen_elg,gen_dsa,gen_rsa): Reimplemented in terms of Libgcrypt.
2234         (genhelp_protect, genhelp_factors, key_from_sexp): New.
2235         * comment.c (make_comment_node_from_buffer): New.
2236         (make_comment_node): Reimplemented in terms of above.
2238 2003-07-27  Werner Koch  <wk@gnupg.org>
2240         Adjusted for gcry_mpi_print and gcry_mpi_scan API change.
2242 2003-07-24  Werner Koch  <wk@gnupg.org>
2244         * g10.c: New command --card-status.
2245         * card-util.c (card_status): New.
2246         * call-agent.c (learn_status_cb): Parse more information.
2248         * keylist.c (print_pubkey_info): Add FP arg for optional printing
2249         to a stream.  Changed all callers.
2251 2003-07-23  Werner Koch  <wk@gnupg.org>
2253         * keygen.c (generate_keypair): Create an AUTHKEYTYPE entry for cards.
2254         (do_generate_keypair): Abd generate the authkey.
2255         (check_smartcard): Changed menu accordingly.
2257 2003-07-22  Werner Koch  <wk@gnupg.org>
2259         * g10.c: New command --change-pin.
2260         * card-util.c: New.
2261         * call-agent.c (agent_scd_change_pin): New.
2262         (agent_release_card_info): New.
2263         * keygen.c (check_smartcard): Use it here.
2265 2003-07-16  Werner Koch  <wk@gnupg.org>
2267         * export.c (parse_export_options): New option sexp-format.
2268         (export_seckeys,export_secsubkeys): Check sexp-format option.
2269         (do_export): Ignore armor for sexp format.
2270         (do_export_stream): Handle sexp-format.
2271         (write_sexp_line,write_sexp_keyparm, build_sexp_seckey): New.
2272         (build_sexp): New.
2274 2003-07-03  Werner Koch  <wk@gnupg.org>
2276         * options.h (DBG_CIPHER): Reintroduced it. 
2277         * seskey.c (encode_session_key): Debug output of the session key.
2279         * pubkey-enc.c (get_it): Handle card case.
2280         * call-agent.c (agent_scd_pkdecrypt): New.
2281         * pkglue.c (pk_encrypt): Add RSA support.
2283         * g10.c (main): Default to --use-agent.
2285         * keygen.c (show_smartcard): Print info about the public key.
2286         (check_smartcard): Check for existing key here.
2287         (gen_card_key): And not anymore here.
2288         (fpr_is_zero): New.
2289         (generate_keypair): Generate both keys for a card.
2290         (smartcard_change_url): Nw.
2292 2003-07-02  Werner Koch  <wk@gnupg.org>
2294         * seckey-cert.c (is_secret_key_protected): Let it handle mode 1002.
2296 2003-07-01  Werner Koch  <wk@gnupg.org>
2298         * keygen.c (gen_card_key): Obviously we should use the creation
2299         date received from SCDAEMON, so that the fingerprints will match.
2300         * sign.c (do_sign): Pass the serialno to the sign code.
2301         * keyid.c (serialno_and_fpr_from_sk): New.
2303 2003-06-30  Werner Koch  <wk@gnupg.org>
2305         * call-agent.h (agent_card_info_s): Add field serialno.
2306         * call-agent.c (store_serialno): New.
2307         (learn_status_cb): Store the serial number.
2308         * keygen.c (gen_card_key): Store the serial number
2309         (check_smartcard): New argument to return the serial number.
2310         (generate_keypair): Get the serial number from check_smartcard and
2311         store it as a parameter.
2312         * parse-packet.c (parse_key): Use the protect.iv field to store the
2313         serial number.
2314         * build-packet.c (do_secret_key): Write the serial number.
2316 2003-06-27  Werner Koch  <wk@gnupg.org>
2318         * seckey-cert.c (check_secret_key): Bypass the unprotection for
2319         mode 1002.
2320         * sign.c (do_sign): Handle card case (i.e. mode 1002).
2322 2003-06-26  Werner Koch  <wk@gnupg.org>
2324         * build-packet.c (do_secret_key): Implement special protection
2325         mode 1002.
2326         * parse-packet.c (parse_key): Likewise.
2328         * keygen.c (smartcard_gen_key): New.
2329         * call-agent.c (agent_scd_setattr): New.
2331 2003-06-24  Werner Koch  <wk@gnupg.org>
2333         * Makefile.am: Removed signal.c
2335         * g10.c (emergency_cleanup): New.
2336         (main): Use gnupg_init_signals and register malloc for assuan.
2338 2003-06-23  Werner Koch  <wk@gnupg.org>
2340         * keyid.c (do_fingerprint_md): Made it work again.
2342 2003-06-19  Werner Koch  <wk@gnupg.org>
2344         Fixed all "==" comparisons against error code constants to use
2345         gpg_err_code().
2347         * import.c (import_secret_one): 
2348         (import_revoke_cert): 
2349         (chk_self_sigs): 
2351         * misc.c (openpgp_md_map_name): Check also for the Hx format.
2352         (openpgp_cipher_map_name): Check also for the Sx format.
2353         (pubkey_get_npkey): Adjusted for changed gcrypt API.
2354         (pubkey_get_nskey): Ditto.
2355         (pubkey_get_nsig): Ditto.
2356         (pubkey_get_nenc): Ditto.
2358 2003-06-18  Werner Koch  <wk@gnupg.org>
2360         Finished the bulk of changes for gnupg 1.9.  This included
2361         switching to libgcrypt functions, using shared error codes from
2362         libgpg-error, replacing the old functions we used to have in
2363         ../util by those in ../jnlib and ../common, renaming the malloc
2364         functions and a couple of types.  Note, that not all changes are
2365         listed below becuause they are too similar and done at far too
2366         many places.  As of today the code builds using the current
2367         libgcrypt from CVS but it is very unlikely that it actually works.
2368         
2369         * sig-check.c (cmp_help): Removed.  Was never used.
2371         * pkglue.c: New. Most stuff taken from gnupg 1.1.2.
2372         * pkglue.h: New.
2374         * misc.c (pull_in_libs): Removed.
2376         * keygen.c (count_chr): New.
2377         (ask_user_id): Removed faked RNG support.
2379         * misc.c (openpgp_md_map_name,openpgp_cipher_map_name)
2380         (openpgp_pk_map_name): New.
2382         * skclist.c (build_sk_list): Removed faked RNG support.
2383         (is_insecure): Removed.
2385         * comment.c (make_mpi_comment_node): Use gcry MPI print function.
2387         * keyid.c (v3_keyid): New.
2389         * misc.c (mpi_write,mpi_write_opaque,mpi_read,mpi_read_opaque)
2390         (mpi_print): New.  Taken from gnupg 1.1.2.
2391         (checksum_mpi): Replaced by implementation from 1.1.2.
2393         * g10.c (my_strusage): Renamed from strusage and return NULL
2394         instead calling a default function.
2395         (add_to_strlist2): New.  Taken from ../util/strgutil.c of gnupg 1.2.
2397         * plaintext.c (handle_plaintext): New arg CREATE_FILE to cope with
2398         the fact that gpg-error does not have this error code anymore.
2400         * mainproc.c (symkey_decrypt_sesskey): Ditto.
2402         * seskey.c (make_session_key): Adjusted for use with libgcrypt.
2403         (encode_session_key): Ditto.
2404         (do_encode_md): Ditto.
2405         (encode_md_value): Ditto.
2407         * keyring.c: Use libgpg-error instead of READ_ERROR etc.
2409         * g10.c: Adjusted all algorithm name/id mapping functions.
2410         (set_debug): Pass MPI and CRYPTO debug values to libgcrypt.
2412         * Makefile.am (INCLUDES): Define LOCALEDIR and the default error
2413         source.
2415         * g10.c (i18n_init): s/G10_LOCALEDIR/LOCALEDIR/.
2417         Renamed m_alloc et al to xmalloc et al.
2418         s/g10_errstr/gpg_strerror/
2419         s/MPI/gcry_mpi_t/
2420         Adjusted all md_open calls to the libgcrypt API.
2421         
2422         * build-packet.c (do_comment): Return error code from iobuf write
2423         function.
2424         (do_user_id): Ditto.
2425         (do_public_key): Ditto.
2427         * Makefile.am: Add new files, link gpg with libgpg-error.
2428         * g10.c, options.h: New option --agent-program.
2429         * call-agent.c: New.
2430         * gpg.h, call-agent.h: New.
2432 2003-06-03  David Shaw  <dshaw@jabberwocky.com>
2434         * options.h, g10.c (main), keylist.c (list_keyblock_print): Add
2435         "show-validity" and "show-long-keyid" list-options.
2437         * gpgv.c (get_validity, trust_value_to_string): Stubs.
2439         * g10.c (main): Use SAFE_VERSION instead of VERSION in the
2440         version-specific gpg.conf file so it can be overridden on RISCOS.
2442 2003-06-01  David Shaw  <dshaw@jabberwocky.com>
2444         * g10.c (main), keylist.c (show_policy_url, show_notation),
2445         mainproc.c (check_sig_and_print): Emulate the old policy and
2446         notation behavior (display by default).  Send to status-fd whether
2447         it is displayed on the screen or not.
2449         * g10.c (main): Since we now have some options in devel that won't
2450         work in a stable branch gpg.conf file, try for a version-specific
2451         gpg.conf-VERSION file before falling back to gpg.conf.
2453         * main.h, options.h: Move various option flags to options.h.
2455 2003-05-31  David Shaw  <dshaw@jabberwocky.com>
2457         * mainproc.c (check_sig_and_print), main.h, keylist.c
2458         (show_policy, show_notation): Collapse the old print_notation_data
2459         into show_policy() and show_notation() so there is only one
2460         function to print notations and policy URLs.
2462         * options.h, main.h, g10.c (main), keyedit.c
2463         (print_and_check_one_sig), keylist.c (list_one,
2464         list_keyblock_print), pkclist.c (do_edit_ownertrust), sign.c
2465         (mk_notation_and_policy): New "list-options" and "verify-options"
2466         commands.  These replace the existing
2467         --show-photos/--no-show-photos,
2468         --show-notation/--no-show-notation,
2469         --show-policy-url/--no-show-policy-url, and --show-keyring
2470         options.  The new method is more flexible since a user can specify
2471         (for example) showing photos during sig verification, but not in
2472         key listings.  The old options are emulated.
2474         * main.h, misc.c (parse_options): New general option line
2475         parser. Fix the bug in the old version that did not handle report
2476         syntax errors after a valid entry.
2478         * import.c (parse_import_options), export.c
2479         (parse_export_options): Call it here instead of duplicating the
2480         code.
2482 2003-05-30  David Shaw  <dshaw@jabberwocky.com>
2484         * keylist.c (list_one): Don't show the keyring filename when in
2485         --with-colons mode.  Actually translate "Keyring" string.
2487         * mainproc.c (proc_tree): We can't currently handle multiple
2488         signatures of different classes or digests (we'd pretty much have
2489         to run a different hash context for each), but if they are all the
2490         same, make an exception.  This is Debian bug #194292.
2492         * sig-check.c (check_key_signature2): Make string translatable.
2494         * packet.h, getkey.c (fixup_uidnode): Mark real primary uids
2495         differently than assumed primaries.
2497         * keyedit.c (no_primary_warning): Use the differently marked
2498         primaries here in a new function to warn when an --edit-key
2499         command might rearrange the self-sig dates enough to change which
2500         uid is primary.
2501         (menu_expire, menu_set_preferences): Use no_primary_warning()
2502         here.
2504         * Makefile.am: Use @DLLIBS@ for -ldl.
2506 2003-05-26  David Shaw  <dshaw@jabberwocky.com>
2508         * getkey.c (premerge_public_with_secret): Made "no secret subkey
2509         for" warning a verbose item and translatable. (From wk on stable
2510         branch)
2512         * sig-check.c (check_key_signature2): Made "no subkey for subkey
2513         binding packet" a verbose item instead of a !quiet one.  There are
2514         too many garbled keys out in the wild. (From wk on stable branch)
2516         * filter.h: Remove const from WHAT. (From wk on stable branch)
2518         * progress.c (handle_progress): Store a copy of
2519         NAME. (progress_filter): Release WHAT, make sure not to print a
2520         NULL WHAT. (From wk on stable branch)
2522         * openfile.c (open_sigfile): Adjust free for new progress
2523         semantics. (From wk on stable branch)
2525         * plaintext.c (ask_for_detached_datafile): Don't dealloc
2526         pfx->WHAT. (From wk on stable branch)
2528         * seckey-cert.c (do_check): Issue the RSA_OR_IDEA status when the
2529         cipher algo is IDEA to make it easier to track down the
2530         problem. (From twoaday on stable branch)
2531         
2532 2003-05-24  David Shaw  <dshaw@jabberwocky.com>
2534         * armor.c, g10.c, kbnode.c, misc.c, pkclist.c, sign.c,
2535         build-packet.c, getkey.c, keydb.c, openfile.c, plaintext.c,
2536         status.c, gpgv.c, keygen.c, options.h, sig-check.c, tdbio.h,
2537         encode.c, mainproc.c, parse-packet.c, signal.c, textfilter.c: Edit
2538         all preprocessor instructions to remove whitespace before the '#'.
2539         This is not required by C89, but there are some compilers out
2540         there that don't like it.
2542 2003-05-21  David Shaw  <dshaw@jabberwocky.com>
2544         * trustdb.h, trustdb.c (is_disabled), gpgv.c (is_disabled): Rename
2545         is_disabled to cache_disabled_value, which now takes a pk and not
2546         just the keyid. This is for speed since there is no need to
2547         re-fetch a key when we already have that key handy.  Cache the
2548         result of the check so we don't need to hit the trustdb more than
2549         once.
2550         
2551         * getkey.c (skip_disabled): New function to get a pk and call
2552         is_disabled on it. (key_byname): Use it here.
2553         
2554         * packet.h, getkey.c (skip_disabled), keylist.c
2555         (print_capabilities): New "pk_is_disabled" macro to retrieve the
2556         cached disabled value if available, and fill it in via
2557         cache_disabled_value if not available.
2559         * trustdb.c (get_validity): Cache the disabled value since we have
2560         it handy and it might be useful later.
2562         * parse-packet.c (parse_key): Clear disabled flag when parsing a
2563         new key.  Just in case someone forgets to clear the whole key.
2565         * getkey.c (merge_selfsigs_main): Add an "if all else fails" path
2566         for setting a single user ID primary when there are multiple set
2567         primaries all at the same second, or no primaries set and the most
2568         recent user IDs are at the same second, or no signed user IDs at
2569         all. This is arbitrary, but deterministic.
2571         * exec.h, photoid.h: Add copyright message.
2573         * keylist.c (list_keyblock_print): Don't dump attribs for
2574         revoked/expired/etc uids for non-colon key listings.  This is for
2575         consistency with --show-photos.
2577         * main.h, keylist.c (dump_attribs), mainproc.c
2578         (check_sig_and_print): Dump attribs if --attrib-fd is set when
2579         verifying signatures.
2580         
2581         * g10.c (main): New --gnupg option to disable the various
2582         --openpgp, --pgpX, etc. options.  This is the same as --no-XXXX
2583         for those options.
2585         * revoke.c (ask_revocation_reason): Clear old reason if user
2586         elects to repeat question.  This is bug 153.
2588         * keyedit.c (sign_uids): Show keyid of the key making the
2589         signature.
2591 2003-05-21  Werner Koch  <wk@gnupg.org>
2593         * progress.c (handle_progress)
2594         * sign.c (write_plaintext_packet)
2595         * encode.c (encode_simple,encode_crypt): Make sure that a filename
2596         of "-" is considered to be stdin so that iobuf_get_filelength
2597         won't get called.  This fixes bug 156 reported by Gregery Barton.
2599 2003-05-02  David Shaw  <dshaw@jabberwocky.com>
2601         * packet.h, build-packet.c (build_sig_subpkt), export.c
2602         (do_export_stream), import.c (remove_bad_stuff, import),
2603         parse-packet.c (dump_sig_subpkt, parse_one_sig_subpkt): Remove
2604         vestigal code for the old sig cache subpacket.  This wasn't
2605         completely harmless as it caused subpacket 101 to disappear on
2606         import and export.
2608         * options.h, armor.c, cipher.c, g10.c, keyedit.c, pkclist.c,
2609         sign.c, encode.c, getkey.c, revoke.c: The current flags for
2610         different levels of PGP-ness are massively complex.  This is step
2611         one in simplifying them. No functional change yet, just use a
2612         macro to check for compliance level.
2614         * sign.c (sign_file): Fix bug that causes spurious compression
2615         preference warning.
2617         * sign.c (clearsign_file): Fix bug that prevents proper warning
2618         message from appearing when clearsigning in --pgp2 mode with a
2619         non-v3 RSA key.
2621         * main.h, misc.c (compliance_option_string, compliance_string,
2622         compliance_failure), pkclist.c (build_pk_list), sign.c (sign_file,
2623         clearsign_file), encode.c (encode_crypt,
2624         write_pubkey_enc_from_list): New functions to put the "this
2625         message may not be usable...." warning in one place.
2627         * options.h, g10.c (main): Part two of the simplification.  Use a
2628         single enum to indicate what we are compliant to (1991, 2440,
2629         PGPx, etc.)
2631         * g10.c (main): Show errors for failure in export, send-keys,
2632         recv-keys, and refresh-keys.
2634         * options.h, g10.c (main): Give algorithm warnings for algorithms
2635         chosen against the --pgpX and --openpgp rules.
2637         * keydb.h, pkclist.c (algo_available): Make TIGER192 invalid in
2638         --openpgp mode.
2640         * sign.c (sign_file), pkclist.c (algo_available): Allow passing a
2641         hint of 0.
2643 2003-05-01  David Shaw  <dshaw@jabberwocky.com>
2645         * tdbio.c (create_version_record): Only create new trustdbs with
2646         TM_CLASSIC or TM_PGP.
2648         * trustdb.h, trustdb.c (trust_string, get_ownertrust_string,
2649         get_validity_string, ask_ownertrust, validate_keys), pkclist.c
2650         (do_edit_ownertrust): Rename trust_string to trust_value_to_string
2651         for naming consistency.
2653         * trustdb.h, trustdb.c (string_to_trust_value): New function to
2654         translate a string to a trust value.
2656         * g10.c (main): Use string_to_trust_value here for
2657         --force-ownertrust.
2658         
2659         * options.h, g10.c (main), trustdb.c (trust_model_string,
2660         init_trustdb, check_trustdb, update_trustdb, get_validity,
2661         validate_one_keyblock): An "OpenPGP" trust model is misleading
2662         since there is no official OpenPGP trust model.  Use "PGP"
2663         instead.
2665 2003-04-30  David Shaw  <dshaw@jabberwocky.com>
2667         * build-packet.c (build_sig_subpkt): Comments.
2669         * exec.c (exec_write): Cast NULL to void* to properly terminate
2670         varargs list.
2672         * keyedit.c (show_key_with_all_names): Just for safety, catch an
2673         invalid pk algorithm.
2675         * sign.c (make_keysig_packet): Crucial that the call to mksubpkt
2676         comes LAST before the calls to finalize the sig as that makes it
2677         possible for the mksubpkt function to get a reliable pointer to
2678         the subpacket area.
2680         * pkclist.c (do_we_trust_pre): If an untrusted key was chosen by a
2681         particular user ID, use that ID as the one to ask about when
2682         prompting whether to use the key anyway.
2683         (build_pk_list): Similar change here when adding keys to the
2684         recipient list.
2686         * trustdb.c (update_validity): Fix bug that prevented more than
2687         one validity record per trust record.
2688         (get_validity): When retrieving validity for a (user) supplied
2689         user ID, return the validity for that user ID only, and do not
2690         fall back to the general key validity.
2691         (validate_one_keyblock): Some commentary on whether
2692         non-self-signed user IDs belong in the web of trust (arguably,
2693         they do).
2695 2003-04-27  David Shaw  <dshaw@jabberwocky.com>
2697         * g10.c (main): Add --no-textmode.
2699         * export.c (do_export_stream), keyedit.c (show_key_with_all_names,
2700         menu_addrevoker), mainproc.c (check_sig_and_print), photoid.c
2701         (show_photos), sign.c (mk_notation_and_policy), trustdb.c
2702         (get_validity, reset_trust_records, validate_keys): Make some
2703         strings translatable.
2705         * mainproc.c (check_sig_and_print): Show digest algorithm and sig
2706         class when verifying a sig with --verbose on, and add version, pk
2707         and hash algorithms and sig class to VALIDSIG.
2708         
2709         * parse-packet.c (enum_sig_subpkt): Make a warning message a
2710         --verbose warning message since we don't need to warn every time
2711         we see an unknown critical (we only need to invalidate the
2712         signature).
2714         * trustdb.c (init_trustdb): Check the trustdb options even with
2715         TM_AUTO since the auto may become TM_CLASSIC or TM_OPENPGP.
2717 2003-04-26  David Shaw  <dshaw@jabberwocky.com>
2719         * sign.c (do_sign): Show the hash used when making a signature in
2720         verbose mode.
2722         * tdbio.h, tdbio.c (tdbio_read_model): New function to return the
2723         trust model used in a given trustdb.
2725         * options.h, g10.c (main), trustdb.c (init_trustdb, check_trustdb,
2726         update_trustdb): Use tdbio_read_model to implement an "auto" trust
2727         model which is set via the trustdb.
2729 2003-04-23  David Shaw  <dshaw@jabberwocky.com>
2731         * import.c (import_revoke_cert): Remove ultimate trust when
2732         revoking an ultimately trusted key.
2734         * keyedit.c (sign_uids): Allow replacing expired signatures.
2735         Allow duplicate signatures with --expert.
2737         * pkclist.c (check_signatures_trust): Don't display a null
2738         fingerprint when checking a signature with --always-trust enabled.
2740         * filter.h (progress_filter_context_t), progress.c
2741         (handle_progress), plaintext.c (ask_for_detached_datafile,
2742         hash_datafiles): Fix compiler warnings.  Make "what" constant.
2744         * build-packet.c (do_plaintext): Do not create invalid literal
2745         packets with >255-byte names.
2747 2003-04-15  Werner Koch  <wk@gnupg.org>
2749         * Makefile.am (AM_CFLAGS): Make use of AM_CFLAGS and AM_LDFLAGS.
2751         * g10.c, options.h: New option --enable-progress-filter.
2752         * progress.c (handle_progress): Make use of it.
2754 2003-04-15  Marcus Brinkmann  <marcus@g10code.de>
2756         * progress.c: New file.
2757         * Makefile.am (common_source): Add progress.c.
2758         * filter.h (progress_filter_context_t): New type.
2759         (progress_filter, handle_progress): New prototypes.
2760         * main.h (open_sigfile): New argument for prototype.
2761         * openfile.c (open_sigfile): New argument to install progress
2762         filter.
2763         * encode.c (encode_simple): New variable PFX.  Register
2764         progress filter.  Install text_filter after that.
2765         (encode_crypt): Likewise.
2766         * sign.c (sign_file): Likewise.
2767         (clearsign_file): Likewise.
2768         * decrypt.c (decrypt_message): Likewise.
2769         (decrypt_messages): Likewise.
2770         * verify.c (verify_signatures): Likewise.
2771         (verify_one_file): Likewise.
2772         * plaintext.c (hash_datafiles): Likewise.
2773         (ask_for_detached_datafile): Likewise.
2775 2003-04-10  Werner Koch  <wk@gnupg.org>
2777         * passphrase.c (read_passphrase_from_fd): Do a dummy read if the
2778         agent is to be used.  Noted by Ingo Klöcker.
2779         (agent_get_passphrase): Inhibit caching when we have no
2780         fingerprint.  This is required for key generation as well as for
2781         symmetric only encryption.
2783         * passphrase .c (agent_get_passphrase): New arg CANCELED.
2784         (passphrase_to_dek): Ditto.  Passed to above.  Changed all
2785         callers to pass NULL.
2786         * seckey-cert.c (do_check): New arg CANCELED.
2787         (check_secret_key): Terminate loop when canceled.
2789         * keyedit.c (change_passphrase): Pass ERRTEXT untranslated to
2790         passphrase_to_dek and translate where appropriate.
2791         * seckey-cert.c (check_secret_key): Ditto.
2792         * keygen.c (ask_passphrase): Ditto.
2793         * passphrase.c (agent_get_passphrase): Translate the TRYAGAIN_TEXT.
2794         Switch the codeset to utf-8.
2796 2003-04-09  Werner Koch  <wk@gnupg.org>
2798         * decrypt.c (decrypt_messages): Fixed error handling; the function
2799         used to re-loop with same file after an error.  Reported by Joseph
2800         Walton.
2802 2003-04-08  David Shaw  <dshaw@jabberwocky.com>
2804         * main.h, g10.c (main), import.c (parse_import_options,
2805         fix_pks_corruption): It's really PKS corruption, not HKP
2806         corruption.  Keep the old repair-hkp-subkey-bug command as an
2807         alias.
2809         * g10.c (main): Rename --no-version to --no-emit-version for
2810         consistency.  Keep --no-version as an alias.
2812 2003-04-04  David Shaw  <dshaw@jabberwocky.com>
2814         * pkclist.c (algo_available): PGP 8 can use the SHA-256 hash.
2816         * sign.c (sign_file, clearsign_file, sign_symencrypt_file): Remove
2817         unused code.
2819 2003-04-01  Werner Koch  <wk@gnupg.org>
2821         * mainproc.c (check_sig_and_print): Add primary key fpr to VALIDSIG
2822         status.
2824 2003-03-24  David Shaw  <dshaw@jabberwocky.com>
2826         * keydb.h: Err on the side of making an unknown signature a SIG
2827         rather than a CERT.
2829         * import.c (delete_inv_parts): Discard any key signatures that
2830         aren't key types (i.e. 0x00, 0x01, etc.)
2832         * g10.c (main): Add deprecated option warning for
2833         --list-ownertrust.  Add --compression-algo alias for
2834         --compress-algo.  Change --version output strings to match
2835         "showpref" strings, and make translatable.
2837         * status.c (do_get_from_fd): Accept 'y' as well as 'Y' for
2838         --command-fd boolean input.
2840         * trustdb.c: Fix typo (DISABLE_REGEXP -> DISABLE_REGEX)
2842         * keyedit.c (show_key_with_all_names_colon): Show no-ks-modify
2843         flag.
2845 2003-03-11  David Shaw  <dshaw@jabberwocky.com>
2847         * options.h, g10.c (main), keyserver.c (kopts): Add "try-dns-srv"
2848         keyserver option.  Defaults to on.
2850         * passphrase.c (agent_get_passphrase): Fix memory leak with
2851         symmetric messages.  Fix segfault with symmetric messages.  Fix
2852         incorrect prompt with symmetric messages.
2854 2003-03-10  Werner Koch  <wk@gnupg.org>
2856         * compress.c (init_uncompress): Use a 15 bit window size so that
2857         the output of implementations which don't run for PGP 2
2858         compatibility won't get garbled.
2860 2003-03-04  David Shaw  <dshaw@jabberwocky.com>
2862         * trustdb.c (validate_keys): Mask the ownertrust when building the
2863         list of fully valid keys so that disabled keys are still counted
2864         in the web of trust.
2865         (get_ownertrust_with_min): Do the same for the minimum ownertrust
2866         calculation.
2868         * parse-packet.c (dump_sig_subpkt): Show the notation names for
2869         not-human-readable notations.  Fix cosmetic off-by-one length
2870         counter.
2872         * options.skel: Add explantion and commented-out
2873         "no-mangle-dos-filenames".
2875         * mainproc.c (proc_encrypted): Make string translatable.
2877         * keyserver.c (keyserver_spawn): Quote ':', '%', and any 8-bit
2878         characters in the uid strings sent to the keyserver helper.
2880         * keyring.c (keyring_rebuild_cache): Lock the keyring while
2881         rebuilding the signature caches to prevent another gpg from
2882         tampering with the temporary copy.
2884         * keygen.c (keygen_set_std_prefs): Include AES192 and AES256 in
2885         default prefs.
2887         * keyedit.c (show_prefs): Make strings translatable.
2889         * keydb.c: Double the maximum number of keyrings to 40.
2891         * gpgv.c (main): Fix bug #113 - gpgv should accept the
2892         --ignore-time-conflict option.
2894         * g10.c (main): --openpgp disables --pgpX.  Double the amount of
2895         secure memory to 32k (keys are getting bigger these days).
2897         * Makefile.am: Makefile.am: Use @CAPLIBS@ to link in -lcap if we
2898         are using capabilities.
2900 2003-02-26  David Shaw  <dshaw@jabberwocky.com>
2902         * keyserver.c (keyserver_spawn): Include various pieces of
2903         information about the key in the data sent to the keyserver
2904         helper.  This allows the helper to use it in instructing a remote
2905         server which may not have any actual OpenPGP smarts in parsing
2906         keys.
2908         * main.h, export.c (export_pubkeys_stream, do_export_stream): Add
2909         ability to return only the first match in an exported keyblock for
2910         keyserver usage.  This should be replaced at some point with a
2911         more flexible solution where each key can be armored seperately.
2913 2003-02-22  David Shaw  <dshaw@jabberwocky.com>
2915         * sign.c (sign_file): Do not push textmode filter onto an unopened
2916         IOBUF (segfault).  Noted by Marcus Brinkmann.  Push and
2917         reinitialize textmode filter for each file in a multiple file
2918         list.
2920         * packet.h, getkey.c (fixup_uidnode), keyedit.c (show_prefs): Set
2921         and show the keyserver no-modify flag.
2923         * keygen.c (add_keyserver_modify): New.
2924         (keygen_upd_std_prefs): Call it here.
2925         (keygen_set_std_prefs): Accept "ks-modify" and "no-ks-modify" as
2926         prefs to set and unset keyserver modify flag.
2928         * g10.c (main): Accept "s1" in addition to "idea" to match the
2929         other ciphers.
2931         * main.h, misc.c (idea_cipher_warn): We don't need this if IDEA
2932         has been disabled.
2934 2003-02-21  David Shaw  <dshaw@jabberwocky.com>
2936         * keygen.c (keygen_set_std_prefs): Don't put AES or CAST5 in
2937         default prefs if they are disabled.
2939         * g10.c (main): Use 3DES instead of CAST5 if we don't have CAST5
2940         support.  Use 3DES for the s2k cipher in --openpgp mode.
2941         (print_mds): #ifdef all of the optional digest algorithms.
2943 2003-02-12  David Shaw  <dshaw@jabberwocky.com>
2945         * keydb.h, getkey.c (classify_user_id, classify_user_id2): Make
2946         'exact' a per-desc item.  Merge into one function since
2947         'force_exact' is no longer needed.
2948         (key_byname): Use new classify_user_id function, and new exact
2949         flag in KEYDB_SEARCH_DESC.
2951         * keyring.h, keyring.c (keyring_search): Return an optional index
2952         to show which KEYDB_SEARCH_DESC was the matching one.
2954         * keydb.h, keydb.c (keydb_search): Rename to keydb_search2, and
2955         pass the optional index to keyring_search.  Add a macro version of
2956         keydb_search that calls this new function.
2958         * export.c (do_export_stream): If the keyid! syntax is used,
2959         export only that specified key.  If the key in question is a
2960         subkey, export the primary plus that subkey only.
2962 2003-02-11  David Shaw  <dshaw@jabberwocky.com>
2964         * exec.c (set_exec_path): Add debugging line.
2966         * g10.c (print_hex, print_mds): Print long hash strings a lot
2967         neater.  This assumes at least an 80-character display, as there
2968         are a few other similar assumptions here and there.  Users who
2969         need unformatted hashes can still use with-colons.  Check that
2970         SHA384 and 512 are available before using them as they are no
2971         longer always available.
2973         * Makefile.am: Use a local copy of libexecdir along with @PACKAGE@
2974         as GNUPG_LIBEXECDIR so it can be easily overridden at make time.
2976 2003-02-04  David Shaw  <dshaw@jabberwocky.com>
2978         * armor.c (parse_hash_header, armor_filter): Accept the new SHAs
2979         in the armor Hash: header.
2981         * g10.c (print_hex): Print long hash strings a little neater.
2982         (print_mds): Add the new SHAs to the hash list.
2984 2003-02-02  David Shaw  <dshaw@jabberwocky.com>
2986         * keyedit.c (menu_revuid): Properly handle a nonselfsigned uid on
2987         a v4 key (treat as a v4 revocation).
2989         * import.c (print_import_check): Do not re-utf8 convert user IDs.
2991 2003-01-27  David Shaw  <dshaw@jabberwocky.com>
2993         * mainproc.c (list_node): Show signature expiration date in
2994         with-colons sig records.
2996         * keylist.c (list_keyblock_colon), mainproc.c (list_node): Show
2997         trust sig information in with-colons sig records.
2999 2003-01-16  David Shaw  <dshaw@jabberwocky.com>
3001         * g10.c (add_group): Trim whitespace after a group name so it does
3002         not matter where the user puts the = sign.
3004         * options.skel: Comment out the first three lines in case someone
3005         manually copies the skel file to their homedir.
3007         * sign.c (clearsign_file): Only use pgp2mode with v3 keys and
3008         MD5. This matches what we do when decoding such messages and
3009         prevents creating a message (v3+RIPEMD/160) that we can't verify.
3011         * sig-check.c (signature_check2): Use G10ERR_GENERAL as the error
3012         for signature digest conflict.  BAD_SIGN implies that a signature
3013         was checked and we may try and print out a user ID for a key that
3014         doesn't exist.
3016 2003-01-15  David Shaw  <dshaw@jabberwocky.com>
3018         * trustdb.c (init_trustdb, get_validity): Don't use a changed
3019         trust model to indicate a dirty trustdb, and never auto-rebuild a
3020         dirty trustdb with the "always" trust model.
3022         * g10.c (add_group): Last commit missed the \t ;)
3024 2003-01-14  David Shaw  <dshaw@jabberwocky.com>
3026         * packet.h, parse-packet.c (setup_user_id), free-packet.c
3027         (free_user_id), keydb.h, keyid.c (namehash_from_uid): New function
3028         to rmd160-hash the contents of a user ID packet and cache it in
3029         the uid object.
3031         * keylist.c (list_keyblock_colon): Use namehash in field 8 of
3032         uids.  Show dates for creation (selfsig date), and expiration in
3033         fields 6 and 7.
3035         * trustdb.c (get_validity, get_validity_counts, update_validity):
3036         Use new namehash function rather than hashing it locally.
3038 2003-01-14  Werner Koch  <wk@gnupg.org>
3040         * g10.c (add_group): Fixed group parsing to allow more than one
3041         delimiter in a row and also allow tab as delimiter.
3043 2003-01-12  David Shaw  <dshaw@jabberwocky.com>
3045         * tdbio.c (tdbio_set_dbname): Fix assertion failure with
3046         non-fully-qualified trustdb names.
3048 2003-01-11  David Shaw  <dshaw@jabberwocky.com>
3050         * trustdb.c (get_validity_info, get_ownertrust_info,
3051         trust_letter): Simplify by returning a ? for error directly.
3053         * keyedit.c (show_key_with_all_names): Use get_validity_string and
3054         get_ownertrust_string to show full word versions of trust
3055         (i.e. "full" instead of 'f').
3057         * trustdb.h, trustdb.c (get_ownertrust_string,
3058         get_validity_string): Same as get_ownertrust_info, and
3059         get_validity_info, except returns a full string.
3061         * trustdb.c (get_ownertrust_with_min): New.  Same as
3062         'get_ownertrust' but takes the min_ownertrust value into account.
3064 2003-01-10  David Shaw  <dshaw@jabberwocky.com>
3066         * armor.c (armor_filter): Comment about PGP's end of line tab
3067         problem.
3069         * trustdb.h, trustdb.c (trust_letter): Make
3070         static. (get_ownertrust_info, get_validity_info): Don't mask the
3071         trust level twice.
3073         * trustdb.h, gpgv.c, trustdb.c (get_validity, get_validity_info),
3074         keylist.c (list_keyblock_colon), keyedit.c
3075         (show_key_with_all_names_colon, menu_revuid): Pass a user ID in
3076         rather than a namehash, so we only have to do the hashing in one
3077         place.
3079         * packet.h, pkclist.c (build_pk_list), free-packet.c
3080         (release_public_key_parts): Remove unused namehash element for
3081         public keys.
3083 2003-01-07  David Shaw  <dshaw@jabberwocky.com>
3085         * keygen.c (keygen_set_std_prefs): Warn when setting an IDEA
3086         preference when IDEA is not available.
3088 2003-01-06  David Shaw  <dshaw@jabberwocky.com>
3090         * trustdb.c (get_validity_info): 'd' for disabled is not a
3091         validity value any more.
3093         * packet.h, tdbio.h, tdbio.c (tdbio_read_record,
3094         tdbio_write_record), trustdb.c (update_validity): Store temporary
3095         full & marginal counts in the trustdb.
3096         (clear_validity, get_validity_counts): Return and clear temp
3097         counts.
3098         (store_validation_status): Keep track of which keyids have been
3099         stored.
3100         (validate_one_keyblock, validate_key_list): Use per-uid copies of
3101         the full & marginal counts so they can be recalled for multiple
3102         levels.
3103         (validate_keys): Only use unused keys for each new round.
3104         (reset_unconnected_keys): Rename to reset_trust_records, and only
3105         skip specifically excluded records.
3107         * keylist.c (print_capabilities): Show 'D' for disabled keys in
3108         capabilities section.
3110         * trustdb.c (is_disabled): Remove incorrect comment.
3112 2003-01-03  David Shaw  <dshaw@jabberwocky.com>
3114         * import.c (import_one): Only do the work to create the status
3115         display for interactive import if status is enabled.
3117         * keyring.c (keyring_search): skipfnc didn't work properly with
3118         non-keyid searches.  Noted by Stefan Bellon.
3120         * getkey.c (merge_selfsigs_main): Remove some unused code and make
3121         sure that the pk selfsigversion member accounts for 1F direct
3122         sigs.
3124 2003-01-02  Werner Koch  <wk@gnupg.org>
3126         * keydb.c (keydb_add_resource): Don't assume that try_make_homedir
3127         terminates but check again for the existence of the directory and
3128         continue then.
3129         * openfile.c (copy_options_file): Print a warning if the skeleton
3130         file has active options.
3132 2002-12-29  David Shaw  <dshaw@jabberwocky.com>
3134         * getkey.c (merge_selfsigs_main), main.h, sig-check.c
3135         (check_key_signature2): Pass the ultimately trusted pk directly to
3136         check_key_signature2 to avoid going through the key selection
3137         mechanism.  This prevents a deadly embrace when two keys without
3138         selfsigs each sign the other.
3140 2002-12-27  David Shaw  <dshaw@jabberwocky.com>
3142         * keyserver.c (keyserver_refresh): Don't print the "refreshing..."
3143         line if there are no keys to refresh or if there is no keyserver
3144         set.
3146         * getkey.c (merge_selfsigs_main): Any valid user ID should make a
3147         key valid, not just the last one.  This also fixes Debian bug
3148         #174276.
3150 2002-12-27  Stefan Bellon  <sbellon@sbellon.de>
3152         * import.c (print_import_check): Changed int to size_t.
3154 2002-12-27  David Shaw  <dshaw@jabberwocky.com>
3156         * keyedit.c (keyedit_menu, menu_revuid): Add "revuid" feature to
3157         revoke a user ID.  This is the same as issuing a revocation for
3158         the self-signature, but a much simpler interface to do it.
3160 2002-12-26  David Shaw  <dshaw@jabberwocky.com>
3162         * keydb.h, getkey.c (key_byname): Flag to enable or disable
3163         including disabled keys.  Keys specified via keyid (i.e. 0x...)
3164         are always included.
3166         * getkey.c (get_pubkey_byname, get_seckey_byname2,
3167         get_seckey_bynames), keyedit.c (keyedit_menu, menu_addrevoker):
3168         Include disabled keys in these functions.
3170         * pkclist.c (build_pk_list): Do not include disabled keys for -r
3171         or the key prompt.  Do include disabled keys for the default key
3172         and --encrypt-to.
3174         * trustdb.h, trustdb.c (is_disabled): New skipfnc for skipping
3175         disabled keys.
3177         * gpgv.c (is_disabled): Stub.
3179         * keygen.c (keygen_add_key_expire): Properly handle updating a key
3180         expiration to a no-expiration value.
3182         * keyedit.c (enable_disable_key): Comment.
3184         * import.c (import_one): When in interactive mode and --verbose,
3185         don't repeat some key information twice.
3187 2002-12-22  Timo Schulz  <ts@winpt.org>
3188         
3189         * import.c (print_import_check): New.
3190         (import_one): Use it here.
3191         Use merge_keys_and_selfsig in the interactive mode to avoid
3192         wrong key information.
3193         * status.h: Add new status code.
3194         * status.c: Ditto.
3195         
3196 2002-12-13  David Shaw  <dshaw@jabberwocky.com>
3198         * pkclist.c (do_we_trust): Tweak language to refer to the "named
3199         user" rather than "owner".  Noted by Stefan Bellon.
3201         * trustdb.h, trustdb.c (trustdb_pending_check): New function to
3202         check if the trustdb needs a check.
3204         * import.c (import_keys_internal): Used here so we don't rebuild
3205         the trustdb if it is still clean.
3206         (import_one, chk_self_sigs): Only mark trustdb dirty if the key
3207         that is being imported has any sigs other than self-sigs.
3208         Suggested by Adrian von Bidder.
3210         * options.skel: Include the required '=' sign in the sample
3211         'group' option.  Noted by Stefan Bellon.
3213         * import.c (chk_self_sigs): Don't try and check a subkey as if it
3214         was a signature.
3216 2002-12-11  David Shaw  <dshaw@jabberwocky.com>
3218         * tdbio.c (tdbio_read_record, tdbio_write_record): Compact the
3219         RECTYPE_TRUST records a bit.
3221         * g10.c (main): Comment out --list-trust-path until it can be
3222         implemented.
3224         * import.c (import_one): Warn when importing an Elgamal primary
3225         that this may take some time (to verify self-sigs).
3226         (chk_self_sigs): Try and cache all self-sigs so the keyblock is
3227         written to the keyring with a good rich cache.
3229         * keygen.c (ask_algo): Make the Elgamal sign+encrypt warning
3230         stronger, and remove the RSA sign+encrypt warning.
3232 2002-12-06  Stefan Bellon  <sbellon@sbellon.de>
3234         * options.h: Fixed typo (mangle_dos_names instead of
3235         mangle_dos_filenames).
3237 2002-12-05  Werner Koch  <wk@gnupg.org>
3239         * g10.c: New options --[no-]mangle-dos-filenames.
3240         * options.h (opt): Added mangle-dos-filenames.
3241         * openfile.c (open_outfile) [USE_ONLY_8DOT3]: Truncate the
3242         filename only when this option is set; this is the default.
3244 2002-12-04  David Shaw  <dshaw@jabberwocky.com>
3246         * main.h, keyedit.c, keygen.c: Back out previous (2002-12-01)
3247         change.  Minimal isn't always best.
3249         * sign.c (update_keysig_packet): Use the current time rather then
3250         a modification of the original signature time.  Make sure that
3251         this doesn't cause a time warp.
3253         * keygen.c (keygen_add_key_expire): Properly handle a key
3254         expiration date in the past (use a duration of 0).
3256         * keyedit.c (menu_expire): Use update_keysig_packet so any sig
3257         subpackets are maintained during the update.
3259         * build-packet.c (build_sig_subpkt): Mark sig expired or unexpired
3260         when the sig expiration subpacket is added.
3261         (build_sig_subpkt_from_sig): Handle making an expiration subpacket
3262         from a sig that has already expired (use a duration of 0).
3264         * packet.h, sign.c (update_keysig_packet), keyedit.c
3265         (menu_set_primary_uid, menu_set_preferences): Add ability to issue
3266         0x18 subkey binding sigs to update_keysig_packet and change all
3267         callers.
3269         * trustdb.c (validate_keys): Show trust parameters when building
3270         the trustdb, and make sure that the version record update was
3271         successful.
3272         (init_trustdb): If the current parameters aren't what was used for
3273         building the trustdb, the trustdb is invalid.
3275         * tbio.c (tdbio_db_matches_options): Update to work with new
3276         trustdbs.
3278 2002-12-03  David Shaw  <dshaw@jabberwocky.com>
3280         * tdbio.h, tdbio.c (tdbio_read_record, tdbio_write_record): Store
3281         trust model in the trustdb version record.
3282         (tdbio_update_version_record): New function to update version
3283         record values during a trustdb check or update.
3284         (tdbio_dump_record): Show trust model in dump.
3286         * trustdb.c (validate_keys): Call tdbio_update_version_record on
3287         success so that the correct options are stored in the trustdb.
3289         * options.h: rearrange trust models so that CLASSIC is 0 and
3290         OPENPGP is 1.
3292         * options.h, g10.c (main), encode.c (write_pubkey_enc_from_list),
3293         pkclist.c (algo_available), revoke.c (gen_revoke): Add --pgp8
3294         mode.  This is basically identical to --pgp7 in all ways except
3295         that signing subkeys, v4 data sigs (including expiration), and SK
3296         comments are allowed.
3298         * getkey.c (finish_lookup): Comment.
3300         * main.h, keylist.c (reorder_keyblock), keyedit.c (keyedit_menu):
3301         Reorder user ID display in the --edit-key menu to match that of
3302         the --list-keys display.
3304         * g10.c (add_notation_data): Fix initialization.
3306 2002-12-01  David Shaw  <dshaw@jabberwocky.com>
3308         * keyedit.c (menu_expire): Don't lose key flags when changing the
3309         expiration date of a subkey.  This is not the most optimal
3310         solution, but it is minimal change on the stable branch.
3312         * main.h, keygen.c (do_copy_key_flags): New function to copy key
3313         flags, if any, from one sig to another.
3314         (do_add_key_expire): New function to add key expiration to a sig.
3315         (keygen_copy_flags_add_expire): New version of
3316         keygen_add_key_expire that also copies key flags.
3317         (keygen_add_key_flags_and_expire): Use do_add_key_expire.
3319         * import.c (fix_hkp_corruption): Comment.
3321 2002-11-25  Stefan Bellon  <sbellon@sbellon.de>
3323         * plaintext.c (handle_plaintext) [__riscos__]: If nooutput is set,
3324         no filetype is needed obviously.
3326 2002-11-24  David Shaw  <dshaw@jabberwocky.com>
3328         * main.h, misc.c (default_cipher_algo, default_compress_algo):
3329         New.  Return the default algorithm by trying
3330         --cipher-algo/--compress-algo, then the first item in the pref
3331         list, then s2k-cipher-algo or ZIP.
3333         * sign.c (sign_file, sign_symencrypt_file), encode.c
3334         (encode_simple, encode_crypt): Call default_cipher_algo and
3335         default_compress_algo to get algorithms.
3337         * g10.c (main): Allow pref selection for compress algo with
3338         --openpgp.
3340         * mainproc.c (proc_encrypted): Use --s2k-digest-algo for
3341         passphrase mangling rather than --digest-algo.
3343         * sign.c (hash_for): If --digest-algo is not set, but
3344         --personal-digest-preferences is, then use the first hash
3345         algorithm in the personal list.  If the signing algorithm is DSA,
3346         then use the first 160-bit hash algorithm in the personal list.
3347         If --pgp2 is set and it's a v3 RSA key, use MD5.
3349         * g10.c (main), keydb.c (keydb_add_resource,
3350         keydb_locate_writable): Rename --default-keyring as
3351         --primary-keyring.  Stefan wins the naming contest.
3353 2002-11-23  David Shaw  <dshaw@jabberwocky.com>
3355         * g10.c (add_notation_data): Disallow notation names that do not
3356         contain a '@', unless --expert is set.  This is to help prevent
3357         people from polluting the (as yet unused) IETF namespace.
3359         * main.h: Comments about default algorithms.
3361         * photoid.c (image_type_to_string): Comments about 3-letter file
3362         extensions.
3364         * encode.c (encode_simple), passphrase.c (passphrase_to_dek),
3365         sign.c (sign_symencrypt_file): Use --s2k-digest-algo for
3366         passphrase mangling rather than --digest-algo.
3368 2002-11-21  David Shaw  <dshaw@jabberwocky.com>
3370         * keygen.c (keygen_set_std_prefs): Properly handle an empty
3371         preference string.
3373         * misc.c (string_to_compress_algo): "none" is a bad choice since
3374         it conflicts with the "none" in setpref.
3376 2002-11-14  David Shaw  <dshaw@jabberwocky.com>
3378         * g10.c (main): Allow compression algorithm names as the argument
3379         to --compress-algo.  The old algorithm names still work for
3380         backwards compatibility.
3382         * misc.c (string_to_compress_algo): Allow "none" as an alias for
3383         "uncompressed".
3385 2002-11-13  Stefan Bellon  <sbellon@sbellon.de>
3387         * getkey.c (get_pubkey_byfprint_fast): Fixed type incompatibility,
3388         was unsigned char instead of byte.
3390 2002-11-13  David Shaw  <dshaw@jabberwocky.com>
3392         * encode.c (encode_simple): Make sure that files larger than about
3393         4G use partial length encoding.  This is required because OpenPGP
3394         allows only for 32 bit length fields.  From Werner on stable
3395         branch.
3397         * getkey.c (get_pubkey_direct): Renamed to...
3398         (get_pubkey_fast): this and made extern.
3399         (get_pubkey_byfprint_fast): New.  From Werner on stable branch.
3401         * keydb.h, import.c (import_one): Use get_pubkey_fast instead of
3402         get_pubkey.  We don't need a merged key and actually this might
3403         lead to recursions.
3404         (revocation_present): Likewise for search by fingerprint.  From
3405         Werner on stable branch.
3407         * g10.c (main): Try to create the trustdb even for non-colon-mode
3408         list-key operations.  This is required because getkey needs to
3409         know whether a a key is ultimately trusted.  From Werner on stable
3410         branch.
3411         
3412         * exec.c [__CYGWIN32__]: Keep cygwin separate from Mingw32;
3413         we don't need it here as it behaves more like a Posix system.
3414         From Werner on stable branch.
3416         * passphrase.c (agent_get_passphrase): Ditto.  From Werner on
3417         stable branch.
3419         * tdbio.c (MY_O_BINARY): Need binary mode with Cygwin.  From
3420         Werner on stable branch.
3422         * g10.c, gpgv.c (main) [__CYGWIN32__]: Don't get the homedir from
3423         the registry.  From Werner on stable branch.
3424         
3425         * keyedit.c (show_key_with_all_names_colon): Make --with-colons
3426         --edit display match the validity and trust of --with-colons
3427         --list-keys.
3429         * passphrase.c (agent_send_all_options): Fix compile warning.
3431         * keylist.c (list_keyblock_colon): Validity for subkeys should
3432         match that of the primary key, and not that of the last user ID.
3434         * getkey.c (merge_selfsigs): Revoked/expired/invalid primary keys
3435         carry these facts onto all their subkeys, but only after the
3436         subkey has a chance to be marked valid.  This is to fix an
3437         incorrect "invalid public key" error verifying a signature made by
3438         a revoked signing subkey, with a valid unrevoked primary key.
3440 2002-11-09  Werner Koch  <wk@gnupg.org>
3442         * passphrase.c (agent_send_all_options): Use tty_get_ttyname to
3443         get the default ttyname.
3445 2002-11-07  David Shaw  <dshaw@jabberwocky.com>
3447         * keyring.h, keyring.c (keyring_register_filename): Return the
3448         pointer if a given keyring is registered twice.
3450         * keydb.h, keydb.c (keydb_add_resource): Use flags to indicate a
3451         default keyring.
3452         (keydb_locate_writable): Prefer the default keyring if possible.
3454         * g10.c (main): Add --default-keyring option.
3456 2002-11-06  David Shaw  <dshaw@jabberwocky.com>
3458         * options.h, g10.c (main), trustdb.c (ask_ownertrust): Add
3459         --force-ownertrust option for debugging purposes.  This allows
3460         setting a whole keyring to a given trust during an
3461         --update-trustdb.  Not for normal use - it's just easier than
3462         hitting "4" all the time to test a large trustdb.
3464         * pubkey-enc.c (get_session_key): With hidden recipients or try a
3465         given passphrase against all secret keys rather than trying all
3466         secret keys in turn.  Don't if --try-all-secrets or --status-fd is
3467         enabled.
3469         * passphrase.c (passphrase_to_dek): Mode 1 means do a regular
3470         passphrase query, but don't prompt with the key info.
3472         * seckey-cert.c (do_check, check_secret_key): A negative ask count
3473         means to enable passphrase mode 1.
3475         * keydb.h, getkey.c (enum_secret_keys): Add flag to include
3476         secret-parts-missing keys (or not) in the list.
3478 2002-11-05  David Shaw  <dshaw@jabberwocky.com>
3480         * keyserver.c (keyserver_search_prompt): When --with-colons is
3481         enabled, don't try and fit the search output to the screen size -
3482         just dump the whole list.
3484 2002-11-04  David Shaw  <dshaw@jabberwocky.com>
3486         * keyserver.c (keyserver_search_prompt): When --with-colons is
3487         enabled, just dump the raw keyserver protocol to stdout and don't
3488         print the menu.
3490         * keyserver.c (show_prompt): Don't show a prompt when command-fd
3491         is being used.
3493         * trustdb.c (trust_model_string, check_trustdb, update_trustdb,
3494         validate_one_keyblock): It's not clear what a trustdb rebuild or
3495         check means with a trust model other than "classic" or "openpgp",
3496         so disallow this.
3498 2002-11-03  David Shaw  <dshaw@jabberwocky.com>
3500         * options.h, g10.c (main): Add --trust-model option.  Current
3501         models are "openpgp" which is classic+trustsigs, "classic" which
3502         is classic only, and "always" which is the same as the current
3503         option --always-trust (which still works).  Default is "openpgp".
3505         * trustdb.c (validate_one_keyblock): Use "openpgp" trust model to
3506         enable trust sigs.
3508         * gpgv.c (main), mainproc.c (check_sig_and_print), pkclist.c
3509         (do_we_trust, do_we_trust_pre, check_signatures_trust): Use new
3510         --trust-model option in place of --always-trust.
3512         * keyedit.c (sign_mk_attrib, trustsig_prompt, sign_uids,
3513         keyedit_menu): Prompt for and create a trust signature with
3514         "tsign".  This is functional, but needs better UI text.
3516         * build-packet.c (build_sig_subpkt): Able to build trust and
3517         regexp subpackets.
3519         * pkclist.c (do_edit_ownertrust): Comment.
3521 2002-11-02  David Shaw  <dshaw@jabberwocky.com>
3523         * keygen.c (set_one_pref, keygen_set_std_prefs): Allow using the
3524         full algorithm name (CAST5, SHA1) rather than the short form (S3,
3525         H2).
3527         * main.h, keygen.c (keygen_get_std_prefs), keyedit.c
3528         (keyedit_menu): Return and use a fake uid packet rather than a
3529         string since we already have a nice parser/printer in
3530         keyedit.c:show_prefs.
3532         * main.h, misc.c (string_to_compress_algo): New.
3534 2002-11-01  David Shaw  <dshaw@jabberwocky.com>
3536         * g10.c (main): Add --no-throw-keyid.
3538         * keydb.h, encode.c (write_pubkey_enc_from_list), g10.c (main),
3539         pkclist.c (build_pk_list): Add --hidden-recipient (-R) and
3540         --hidden-encrypt-to, which do a single-user variation on
3541         --throw-keyid.  The "hide this key" flag is carried in bit 0 of
3542         the pk_list flags field.
3544         * keyserver.c (parse_keyrec): Fix shadowing warning.
3546 2002-10-31  Stefan Bellon  <sbellon@sbellon.de>
3548         * compress.c (init_compress) [__riscos__]: Use
3549         riscos_load_module() to load ZLib module.
3551         * g10.c (main) [__riscos__]: Renames due to changes in riscos.c
3552         (e.g. prefixes all RISC OS specific functions with riscos_*).
3553         * photoid.c (show_photos) [__riscos__]: Likewise.
3554         * signal.c (got_fatal_signal) [__riscos__]: Likewise.
3556         * trustdb.c (check_regexp) [__riscos__]: Branch to RISC OS RegEx
3557         handling.
3559 2002-10-31  David Shaw  <dshaw@jabberwocky.com>
3561         * build-packet.c (do_plaintext), encode.c (encode_sesskey,
3562         encode_simple, encode_crypt), sign.c (write_plaintext_packet): Use
3563         wipememory() instead of memset() to wipe sensitive memory as the
3564         memset() might be optimized away.
3566 2002-10-30  David Shaw  <dshaw@jabberwocky.com>
3568         * trustdb.c (check_regexp): Modern regexps require REG_EXTENDED.
3570 2002-10-29  David Shaw  <dshaw@jabberwocky.com>
3572         * packet.h, trustdb.h, trustdb.c (trust_string): New.  Return a
3573         string like "fully trusted", "marginally trusted", etc.
3574         (get_min_ownertrust): New.  Return minimum ownertrust.
3575         (update_min_ownertrust): New.  Set minimum ownertrust.
3576         (check_regexp): New.  Check a regular epression against a user ID.
3577         (ask_ownertrust): Allow specifying a minimum value.
3578         (get_ownertrust_info): Follow the minimum ownertrust when
3579         returning a letter.
3580         (clear_validity): Remove minimum ownertrust when a key becomes
3581         invalid.
3582         (release_key_items): Release regexp along with the rest of the
3583         info.
3584         (validate_one_keyblock, validate_keys): Build a trust sig chain
3585         while validating.  Call check_regexp for regexps.  Use the minimum
3586         ownertrust if the user does not specify a genuine ownertrust.
3588         * pkclist.c (do_edit_ownertrust): Only allow user to select a
3589         trust level greater than the minimum value.
3591         * parse-packet.c (can_handle_critical): Can handle critical trust
3592         and regexp subpackets.
3594         * trustdb.h, trustdb.c (clear_ownertrusts), delkey.c
3595         (do_delete_key), import.c (import_one): Rename clear_ownertrust to
3596         clear_ownertrusts and have it clear the min_ownertrust value as
3597         well.
3599         * keylist.c (list_keyblock_print): Indent uid to match pub and
3600         sig.
3602         * keyedit.c (print_and_check_one_sig, show_key_and_fingerprint,
3603         menu_addrevoker), keylist.c (list_keyblock_print,
3604         print_fingerprint): Show "T" or the trust depth for trust
3605         signatures, and add spaces to some strings to make room for it.
3607         * packet.h, parse-packet.c (dump_sig_subpkt, parse_one_sig_subpkt,
3608         parse_signature): Parse trust signature values.
3610         * tdbio.h, tdbio.c (tdbio_read_record, tdbio_write_record):
3611         Reserve a byte for the minimum ownertrust value (for use with
3612         trust signatures).
3614 2002-10-29  Stefan Bellon  <sbellon@sbellon.de>
3616         * build-packet.c (calc_plaintext, do_plaintext): Removed RISC OS
3617         specific filetype parts (it's now done in make_basename()).
3619         * plaintext.c (handle_plaintext): Tidied up RISC OS specific
3620         filetype parts.
3622         * encode.c (encode_simple, encode_crypt): Added argument to
3623         make_basename() call.
3625         * sign.c (write_plaintext_packet): Added argument to
3626         make_basename() call.
3628 2002-10-28  Stefan Bellon  <sbellon@sbellon.de>
3630         * build-packet.c (calc_plaintext, do_plaintext): Added filetype
3631         handling for RISC OS' file types.
3633         * plaintext.c (handle_plaintext) [__riscos__]: Added filetype
3634         handling for RISC OS' file types.
3636 2002-10-23  David Shaw  <dshaw@jabberwocky.com>
3638         * main.h, import.c (sec_to_pub_keyblock, import_secret_one,
3639         parse_import_options), g10.c (main): New import-option
3640         "convert-sk-to-pk" to convert a secret key into a public key
3641         during import.  It is on by default.
3643 2002-10-23  Werner Koch  <wk@gnupg.org>
3645         * pubkey-enc.c (get_it): Fix segv, test for revoked only when PK
3646         has been assigned.
3648 2002-10-18  Timo Schulz  <ts@winpt.org>
3650         * keylist.c: (print_pubkey_info): New.
3651         (print_seckey_info): New.
3652         * main.h: Prototypes for the new functions.       
3653         * delkey.c (do_delete_key): Use it here.
3654         * revoke.c (gen_desig_revoke): Ditto.
3655         
3656 2002-10-17  Werner Koch  <wk@gnupg.org>
3658         * pkclist.c (do_edit_ownertrust): Show all user IDs.  This should
3659         be enhanced to also show the current trust level.  Suggested by
3660         Florian Weimer.
3662 2002-10-17  David Shaw  <dshaw@jabberwocky.com>
3664         * g10.c (main): Handle --strict and --no-strict from the command
3665         line before the options file is loaded.
3667 2002-10-15  David Shaw  <dshaw@jabberwocky.com>
3669         * g10.c (main): Disable --textmode when encrypting (symmetric or
3670         pk) in --pgp2 mode as PGP 2 can't handle the unknown length
3671         literal packet.  Reported by Michael Richardson.
3673 2002-10-14  David Shaw  <dshaw@jabberwocky.com>
3675         * keyserver-internal.h, keyserver.c (print_keyrec, parse_keyrec,
3676         show_prompt, keyserver_search_prompt, keyserver_spawn): Go to
3677         version 1 of the keyserver protocol.  This is a better design,
3678         similar to --with-colons, that allows for keys with multiple user
3679         IDs rather than using multiple keys.  It also matches the machine
3680         readable pksd format.  Also use a prettier --search-keys listing
3681         format that can fill different size windows (currently set at 24
3682         lines).
3684 2002-10-12  Werner Koch  <wk@gnupg.org>
3686         * keygen.c (print_status_key_created): New.
3687         (do_generate_keypair): Use it to print the fingerprint.
3688         (generate_subkeypair): Likewise.
3690 2002-10-11  David Shaw  <dshaw@jabberwocky.com>
3692         * keyedit.c (menu_addrevoker): Properly back out if the signature
3693         fails.  Also, do not allow appointing the same revoker twice, and
3694         report ALREADY_SIGNED if the user tries it.
3696 2002-10-07  David Shaw  <dshaw@jabberwocky.com>
3698         * import.c (import_keys_internal): Missed one s/inp/inp2/.
3700         * keylist.c (print_capabilities): Properly indicate per-key
3701         capabilities of sign&encrypt primary keys that have
3702         secret-parts-missing (i.e. no capabilities at all)
3704         * mainproc.c (symkey_decrypt_sesskey): Fix compiler warning.
3706 2002-10-04  David Shaw  <dshaw@jabberwocky.com>
3708         * getkey.c (get_pubkey_direct): Don't cache keys retrieved via
3709         this function as they may not have all their fields filled in.
3711         * sig-check.c (signature_check2): Use new is_primary flag to check
3712         rather than comparing main_keyid with keyid as this still works in
3713         the case of a not fully filled in pk.
3715 2002-10-04  Werner Koch  <wk@gnupg.org>
3717         * import.c (import_keys_internal): s/inp/inp2/ to avoid shadowing
3718         warning.
3720         * passphrase.c (agent_get_passphrase): Fixed signed/unsigned char
3721         problem in %-escaping.  Noted by Ingo Klöcker.
3723 2002-10-03  David Shaw  <dshaw@jabberwocky.com>
3725         * options.h, g10.c (main): Add --strict and --no-strict to switch
3726         the log_warning severity level from info to error.
3728         * keylist.c (print_capabilities): Secret-parts-missing keys should
3729         show that fact in the capabilities, and only primary signing keys
3730         can certify other keys.
3732         * packet.h, parse_packet.c (parse_key): Add is_primary flag for
3733         public keys (it already exists for secret keys).
3735 2002-10-02  David Shaw  <dshaw@jabberwocky.com>
3737         * import.c (import_secret_one): Check for an illegal (>110)
3738         protection cipher when importing a secret key.
3740         * keylist.c (list_keyblock_print): Show a '#' for a
3741         secret-parts-missing key.
3743         * parse_packet.c (parse_key): Some comments.
3745         * revoke.c (gen_revoke): Remove some debugging code.
3747         * trustdb.c (verify_own_keys): Make trusted-key a non-deprecated
3748         option again.
3750         * seckey-cert.c (do_check): Don't give the IDEA warning unless the
3751         cipher in question is in fact IDEA.
3753 2002-10-01  David Shaw  <dshaw@jabberwocky.com>
3755         * import.c (import_one): Make sure that a newly imported key
3756         starts with a clean ownertrust.
3758 2002-10-01  Werner Koch  <wk@gnupg.org>
3760         * getkey.c (get_pubkey_direct): New.
3761         (merge_selfsigs_main): Use it here to look for an ultimately
3762         trusted key.  Using the full get_pubkey might lead to an
3763         infinitive recursion.
3765 2002-09-29  David Shaw  <dshaw@jabberwocky.com>
3767         * keyserver.c (parse_keyserver_uri): Force the keyserver URI
3768         scheme to lowercase to be case-insensitive.
3770 2002-09-28  David Shaw  <dshaw@jabberwocky.com>
3772         * export.c (do_export_stream): Comment.
3774         * sig-check.c (check_key_signature2): Properly handle a
3775         non-designated revocation import.
3777 2002-09-26  Werner Koch  <wk@gnupg.org>
3779         * g10.c (set_homedir): New. Changed all direct assignments to use
3780         this.
3781         * gpgv.c (set_homedir): Ditto.
3783 2002-09-25  David Shaw  <dshaw@jabberwocky.com>
3785         * Makefile.am: Link gpg with EGDLIBS (i.e. NETLIBS) as EGD uses
3786         sockets.  Remove the old NETLIBS variable since the keyserver
3787         stuff is no longer internal.
3789 2002-09-24  David Shaw  <dshaw@jabberwocky.com>
3791         * import.c (import_keys_stream): Fix compiler type warning.
3793         * keyring.c (keyring_rebuild_cache), sig-check.c
3794         (check_key_signature2), import.c (import, chk_self_sigs): Minor
3795         language cleanups.
3797 2002-09-23  Stefan Bellon  <sbellon@sbellon.de>
3799         * main.h: Introduced fast-import as import option. Removed
3800         fast as separate option from prototypes.
3801         * import.c (parse_import_options): Added fast-import option.
3802         (import_*): Removed fast as separate option.
3803         * g10.c (main): Added option fast-import, removed old fast
3804         as separate argument.
3805         * keyserver.c (keyserver_spawn): Removed old fast as separate
3806         argument.
3808 2002-09-22  Stefan Bellon  <sbellon@sbellon.de>
3810         * import.c (import_keys, import_keys_stream,
3811         import_keys_internal): Added trustdb update/check to key import if
3812         not fast-import and interactive set/no-auto-check-trustdb unset.
3813         Avoided function clone by introducing import_keys_internal.
3815 2002-09-19  David Shaw  <dshaw@jabberwocky.com>
3817         * keyserver.c (keyserver_spawn): Properly handle line truncation.
3818         Don't leak memory (~10-20 bytes) on searches.
3819         (keyserver_search_prompt): Cleanup.
3821         * keylist.c (list_keyblock_colon): Show 1F direct key signatures
3822         in --with-colons listing.
3824 2002-09-16  David Shaw  <dshaw@jabberwocky.com>
3826         * keyedit.c (menu_addrevoker): The direct key signature for
3827         revocation keys must be at least v4 to carry the revocation key
3828         subpacket.  Add a PGP 2.x warning for revocation keys.
3830 2002-09-14  David Shaw  <dshaw@jabberwocky.com>
3832         * g10.c (check_permissions): Rearrange strings to make translating
3833         easier (don't incorporate string parts).
3835         * keyedit.c (sign_uids): Make strings translatable.
3837         * sig-check.c (check_key_signature2): Make string translatable.
3839 2002-09-13  David Shaw  <dshaw@jabberwocky.com>
3841         * getkey.c (check_revocation_keys): Move....
3842         * main.h, sig-check.c (check_revocation_keys): to here.  Also
3843         return the signature_check error code rather than 0/1 and cache
3844         the sig result.
3846         * sig-check.c (check_key_signature2): Divert to
3847         check_revocation_keys if a revocation sig is made by someone other
3848         than the pk owner.
3850         * getkey.c (merge_selfsigs_main): Tidy.
3852 2002-09-13  Werner Koch  <wk@gnupg.org>
3854         * g10.c (main) [__MINGW32__]: Activate oLoadExtension.
3856 2002-09-12  David Shaw  <dshaw@jabberwocky.com>
3858         * Makefile.am, hkp.c, hkp.h, keyserver.c (keyserver_work): Remove
3859         internal HKP support.
3861         * keyserver.c (keyserver_spawn): Remove whitespace after keyserver
3862         commands.
3864 2002-09-10  David Shaw  <dshaw@jabberwocky.com>
3866         * exec.c (expand_args): Remove loop left over from earlier
3867         implementation.
3868         (exec_write): Missed one tick.
3870 2002-09-10  Werner Koch  <wk@gnupg.org>
3872         * g10.c, options.h: Removed option --emulate-checksum-bug.
3873         * misc.c (checksum_u16_nobug): Removed.
3874         (checksum_u16): Removed the bug emulation.
3875         (checksum_mpi): Ditto.
3876         (checksum_mpi_counted_nbits): Removed and replaced all calls
3877         with checksum_mpi.
3879         * parse-packet.c (read_protected_v3_mpi): New.
3880         (parse_key): Use it here to store it as an opaque MPI.
3881         * seckey-cert.c (do_check): Changed the v3 unprotection to the new
3882         why to store these keys.
3883         (protect_secret_key): Likewise.
3884         * build-packet.c (do_secret_key): And changed the writing.
3886         * tdbio.c (tdbio_set_dbname, open_db): Use new macro MY_O_BINARY
3887         to avoid silly ifdefs.
3888         (open_db): Fallback to RDONLY so that gpg may be used from a
3889         RO-medium.
3891         * encode.c (encode_simple): Make sure we don't use an ESK packet
3892         when we don't have a salt in the S2K.
3894         * misc.c (pct_expando) <case f>: Make sure that LEN is initialized.
3896         * exec.c (exec_finish): Use ticks to denote filenames in messages.
3897         (make_tempdir, exec_write): Changed format of messages.
3899         * keyserver.c (print_keyinfo): Release USERID in on error.
3900         (keyserver_work) [!DISABLE_KEYSERVER_HELPERS]: Exclude the unused
3901         code.
3903 2002-09-09  Werner Koch  <wk@gnupg.org>
3905         * parse-packet.c (make_attribute_uidname): Add new ar MAX_NAMELEN
3906         for sanity checks.  Changed both callers. Limit the size of an %s.
3908         * options.skel: Comment lock-once out, so that this file does not
3909         change anything when copied to a new home directory.
3910         * openfile.c (try_make_homedir): Don't exit after copying the
3911         option skeleton.
3913         * options.h: Don't use a comma when declaring variables over more
3914         than one line.
3916         * mainproc.c (symkey_decrypt_sesskey): Check length of the session
3917         key.
3919         * hkp.c (dehtmlize): Use ascii_tolower to protect against weird
3920         locales.  Cast the argument for isspace for the sake of broken
3921         HP/UXes.
3922         (parse_hkp_index): s/ascii_memcasecmp/ascii_strncasecmp/.
3924         * g10.c: Removed option --emulate-3des-s2k-bug.
3926         * passphrase.c (hash_passphrase): Was used here.
3928         * export.c (parse_export_options)
3929         * keyserver.c (parse_keyserver_options)
3930         * import.c (parse_import_options)
3931         * g10.c (check_permissions): s/ascii_memcasecmp/ascii_strncasecmp/.
3933 2002-09-09  David Shaw  <dshaw@jabberwocky.com>
3935         * g10.c (add_group): Use '=' to separate group name from group
3936         members.  Use a better error message for when no = is found.
3938         * hkp.c (hkp_export): Use CRLF in headers.
3940 2002-09-03  David Shaw  <dshaw@jabberwocky.com>
3942         * mainproc.c (print_pkenc_list): Don't increment the error counter
3943         when printing the list of keys a message was encrypted to.  This
3944         would make gpg give a non-zero exit code even for completely valid
3945         messages if the message was encrypted to more than one key that
3946         the user owned.
3948 2002-09-02  Werner Koch  <wk@gnupg.org>
3950         * g10.c (main): Try to set a default character set.  Print the
3951         used one in verbosity level 3.
3952         * gpgv.c (main): Try to set a default character set.
3954         * status.c, status.h (STATUS_IMPORT_OK): New.
3955         * import.c (import_one,import_secret_one): Print new status.
3957 2002-08-30  David Shaw  <dshaw@jabberwocky.com>
3959         * pkclist.c (build_pk_list): Add new status code to indicate an
3960         untrusted user.  This (or a disabled key) fail with "unavailable
3961         pubkey" (G10ERR_UNU_PUBKEY).
3963         * pkclist.c (build_pk_list): Fail if any recipient keys are
3964         unusable.
3966         * options.skel: The PGP LDAP keyserver is back.  Use MIT keyserver
3967         as a sample rather than cryptnet as cryptnet does not support
3968         searching yet.
3970         * keyedit.c (show_key_with_all_names): Fix error message
3971         (preferences are userid/selfsig and not key specific).
3973 2002-08-30  Werner Koch  <wk@gnupg.org>
3975         * pkclist.c (do_we_trust_pre): Changed the wording of a warning.
3977         * encode.c (encode_simple,encode_crypt): Use new style CTB for
3978         compressssed packets when using MDC.  We need to do this so that
3979         concatenated messages are properly decrypted.  Old style
3980         compression assumes that it is the last packet; given that we
3981         can't determine the length in advance, the uncompressor does not
3982         know where to start.  Actually we should use the new CTB always
3983         but this would break PGP 2 compatibility.
3985         * parse-packet.c (parse): Special treatment for new style CTB
3986         compressed packets.
3988         * build-packet.c (do_mdc): Removed. Was not used.
3989         (do_encrypted_mdc): Count in the version number and the MDC packet.
3991 2002-08-28  David Shaw  <dshaw@jabberwocky.com>
3993         * sig-check.c (do_check_messages, do_check): Show keyid in error
3994         messages.
3996         * keyserver.c (print_keyinfo): More readable key listings for
3997         --search-keys responses.
3999 2002-08-26  David Shaw  <dshaw@jabberwocky.com>
4001         * hkp.c (parse_hkp_index, dehtmlize): Move HTML functionality into
4002         new "dehtmlize" function.  Remove HTML before trying to parse each
4003         line from the keyserver.  If the keyserver provides key type
4004         information in the listing, use it.
4006 2002-08-23  David Shaw  <dshaw@jabberwocky.com>
4008         * sig-check.c (do_check, do_check_messages): Emit the usual sig
4009         warnings even for cached sigs.  This also serves to protect
4010         against missing a sig expiring while cached.
4012         * getkey.c (merge_selfsigs_main): Don't check UID self-sigs twice.
4014 2002-08-22  David Shaw  <dshaw@jabberwocky.com>
4016         * import.c (clean_subkeys, chk_self_sigs): Merge clean_subkeys
4017         into chk_self_sigs.  This improves efficiency as the same
4018         signatures are not checked multiple times.  Clarify when a subkey
4019         is revoked (any revocation signature, even if it is dated before
4020         the binding signature).
4022         * getkey.c (merge_selfsigs_subkey): Subkey revocation comments.
4024         * keylist.c (list_one): Stats are only for public key listings.
4026         * g10.c (main), options.skel: Default should be include-revoked
4027         for keyserver operations.
4029 2002-08-21  Werner Koch  <wk@gnupg.org>
4031         * import.c (import_print_stats): Print new non_imported counter
4032         which is currently not used because we terminate on errors.
4034 2002-08-20  David Shaw  <dshaw@jabberwocky.com>
4036         * options.skel: Document no-include-attributes for
4037         keyserver-options.
4039         * keylist.c, keyedit.c, keyserver.c, sign.c: Some TODOs and
4040         comments.
4042         * export.c (do_export_stream): Fix noop bug in exporting sensitive
4043         revocation keys.
4045         * pkclist.c (do_edit_ownertrust): Comment out the option for
4046         showing trust paths until it can be implemented.
4048 2002-08-19  Werner Koch  <wk@gnupg.org>
4050         * getkey.c (get_user_id_native): Renamed to ..
4051         (get_user_id_printable): this.  Filter out all dangerous
4052         characters.  Checked all usages.
4053         (get_user_id_string_native): Renamed to..
4054         (get_user_id_string_printable): this.  Filter out all dangerous
4055         characters.  Checked all usages.
4056         * keyedit.c (show_basic_key_info): New.
4057         * keylist.c (print_fingerprint): New mode 3.
4058         * import.c (import_one): Use new function to display the user ID.
4060 2002-08-16  Timo Schulz  <ts@winpt.org>
4062         * g10.c (main): Enable opt.interactive.
4064         * import.c (import_one): Ask the user if the key shall be
4065         imported when the interactive mode is used. Useful to extract
4066         selected keys from a file.
4067         
4068 2002-08-16  Werner Koch  <wk@gnupg.org>
4070         * seckey-cert.c: Workaround to allow decryption of v3 keys created
4071         with a bug in the mpi_get_secure_buffer.
4073 2002-08-14  David Shaw  <dshaw@jabberwocky.com>
4075         * hkp.c (parse_hkp_index): Properly handle really large keys
4076         (5 digit key length) in HKP searches.
4078 2002-08-13  David Shaw  <dshaw@jabberwocky.com>
4080         * encode.c (encode_simple): Fix problem with using compression
4081         algo 2 and symmetric compressed files.
4083         * encode.c (encode_simple, encode_crypt): If we are not using a
4084         MDC, compress even if a file is already compressed.  This is to
4085         help against the chosen ciphertext attack.
4087         * pkclist.c (select_algo_from_prefs): Fix requested algorithm bug
4088         so the request succeeds even if the requested algorithm is not the
4089         first found.
4091         * cipher.c (write_header), encode.c (use_mdc, encode_simple,
4092         encode_crypt, encrypt_filter), g10.c (main): Be more eager to use
4093         a MDC.  We use a MDC if the keys directly support it, if the keys
4094         list AES (any) or TWOFISH anywhere in the prefs, or if the cipher
4095         chosen does not have a 64 bit blocksize.
4097 2002-08-08  David Shaw  <dshaw@jabberwocky.com>
4099         * options.skel: Some language tweaks, and remove the
4100         load-extension section for random gatherers.
4102         * keyring.c (create_tmp_file, rename_tmp_file): Create tmp files
4103         with user-only permissions, but restore the original permissions
4104         if the user has something special set.
4106         * openfile.c (copy_options_file): Create new options file
4107         (gpg.conf) with user-only permissions.
4109         * keydb.c (keydb_add_resource): Create new keyrings with user-only
4110         permissions.
4112         * tdbio.c (tdbio_set_dbname): Create new trustdbs with user-only
4113         permissions.
4115 2002-08-07  David Shaw  <dshaw@jabberwocky.com>
4117         * sig-check.c (signature_check2): Sanity check that the md has a
4118         context for the hash that the sig is expecting.  This can happen
4119         if a onepass sig header does not match the actual sig, and also if
4120         the clearsign "Hash:" header is missing or does not match the
4121         actual sig.
4123         * keyedit.c (menu_revsig): Properly show a uid is revoked without
4124         restarting gpg.  This is Debian bug 124219, though their supplied
4125         patch will not do the right thing.
4127         * main.h, tdbio.c (tdbio_set_dbname), misc.c (removed
4128         check_permissions), keydb.c (keydb_add_resource), g10.c (main,
4129         check_permissions): Significant reworking of the permission check
4130         mechanism.  The new behavior is to check everything in the homedir
4131         by checking the homedir itself.  If the user wants to put
4132         (possibly shared) keyrings outside the homedir, they are not
4133         checked.  The options file and any extension files are checked
4134         wherever they are, as well as their enclosing directories.  This
4135         is Debian bug 147760.
4136         
4137 2002-08-06  Stefan Bellon  <sbellon@sbellon.de>
4139         * g10.c (main): Use of EXTSEP_S in new gpg.conf string.
4140         * openfile.c (copy_options_file): Ditto.
4142 2002-08-06  David Shaw  <dshaw@jabberwocky.com>
4144         * options.h, g10.c (main), mainproc.c (proc_encrypted):
4145         --ignore-mdc-error option to turn a MDC check error into a
4146         warning.
4148         * encode.c (encode_crypt), g10.c (main), sign.c (sign_file,
4149         clearsign_file): Use the same --pgpX warning string everywhere to
4150         ease translations.
4152         * encode.c (write_pubkey_enc_from_list): Warn when using
4153         --throw-keyid with --pgpX.  Noted by Vedaal Nistar.
4155         * revoke.c (export_minimal_pk, gen_desig_revoke, gen_revoke):
4156         Export a minimal pk along with the revocation cert when in --pgpX
4157         mode so that PGP can import it.
4159 2002-08-06  Werner Koch  <wk@gnupg.org>
4161         * options.skel: Changed comments.
4163         * g10.c (main): Try to use "gpg.conf" as default option file.
4164         * openfile.c (copy_options_file): Changed name of created file.
4166 2002-08-02  Werner Koch  <wk@gnupg.org>
4168         * Makefile.am (LDFLAGS): Removed DYNLINK_LDFLAGS.
4170 2002-07-30  David Shaw  <dshaw@jabberwocky.com>
4172         * options.h, g10.c (main), mainproc.c (proc_encrypted): Return a
4173         decryption failed error if a MDC does not verify.  Warn if a MDC
4174         is not present (can disable via --no-mdc-warning).
4176         * exec.c (exec_write), g10.c (main), keyserver.c
4177         (keyserver_spawn): Use new DISABLE_KEYSERVER_PATH rather than
4178         FIXED_EXEC_PATH.
4180 2002-07-28  David Shaw  <dshaw@jabberwocky.com>
4182         * sig-check.c (do_check): Properly validate v4 sigs with no hashed
4183         section at all.
4185 2002-07-25  Werner Koch  <wk@gnupg.org>
4187         * delkey.c (do_delete_key): Always allow to delete a key in batch mode
4188         when specified by fingerprint.  Suggested by Enzo Michelangeli.
4190 2002-07-25  David Shaw  <dshaw@jabberwocky.com>
4192         * keyedit.c (menu_revsig): Change "revsig" to honor selected uids
4193         so the user can revoke sigs from particular uids only.
4195         * keylist.c (list_keyblock_print): Don't display expired uids in
4196         --list-keys unless -v and not --list-sigs (just like revoked
4197         uids).
4199         * exec.c, export.c, import.c, keyedit.c, keyserver.c, misc.c:
4200         "Warning" -> "WARNING"
4202 2002-07-24  David Shaw  <dshaw@jabberwocky.com>
4204         * main.h, import.c (parse_import_options, fix_hkp_corruption,
4205         import_one, delete_inv_parts), g10.c (main): New import-option
4206         "repair-hkp-subkey-bug", which repairs as much as possible the HKP
4207         mangling multiple subkeys bug.  It is on by default for keyserver
4208         receives, and off by default for regular --import.
4210         * main.h, import.c (import, import_one, delete_inv_parts), hkp.c
4211         (hkp_ask_import), keyserver.c (keyserver_spawn): Use keyserver
4212         import options when doing keyserver receives.
4214         * options.h, exec.h, exec.c (set_exec_path, exec_write), g10.c
4215         (main), keyserver.c (keyserver_spawn): If the user does not use
4216         "exec-path", completely replace $PATH with GNUPG_LIBEXECDIR before
4217         calling the keyserver helper.  If the user does use "exec-path",
4218         append GNUPG_LIBEXECDIR after the specified path.
4220 2002-07-23  David Shaw  <dshaw@jabberwocky.com>
4222         * import.c (parse_import_options), export.c
4223         (parse_export_options): Fix offset problem with reversed ("no-")
4224         meanings.
4226         * import.c (delete_inv_parts): Discard subkey signatures (0x18 and
4227         0x28) if found in the userid section of the key.
4229         * sig-check.c (signature_check2): Signatures made by invalid
4230         subkeys (bad/missing binding sig) are also invalid.
4232         * keylist.c (print_fingerprint): Show the primary as well as the
4233         secondary key fingerprint in modes 1 & 2.
4235 2002-07-22  David Shaw  <dshaw@jabberwocky.com>
4237         * options.h, main.h, g10.c (main), import.c
4238         (parse_import_options, delete_inv_parts), keyserver.c
4239         (parse_keyserver_options): add new --import-options option.  The
4240         only current flag is "allow-local-sigs".
4242         * g10.c (main): Don't disable MDC in pgp7 mode.
4244         * options.h, g10.c (main), keyserver.c (parse_keyserver_options):
4245         Remove old keyserver-option include-attributes now that there is
4246         an export-option for the same thing.
4248         * options.h, main.h, export.c (parse_export_options,
4249         do_export_stream), g10.c (main): add new --export-options option.
4250         Current flags are "include-non-rfc", "include-local-sigs",
4251         "include-attributes", and "include-sensitive-revkeys".
4253         * options.h, hkp.c (hkp_export), keyserver.c
4254         (parse_keyserver_options, keyserver_spawn): try passing unknown
4255         keyserver options to export options, and if successful, use them
4256         when doing a keyserver --send-key.
4258         * build-packet.c (build_sig_subpkt): We do not generate
4259         SIGSUBPKT_PRIV_VERIFY_CACHE anymore.
4261         * revoke.c (gen_desig_revoke): Lots more comments about including
4262         sensitive revkeys along with the revocation sig itself.
4264         * keyserver.c (parse_keyserver_options): Simpler implementation
4265         that can skip one pass over the options.
4267 2002-07-18  David Shaw  <dshaw@jabberwocky.com>
4269         * keyedit.c (keyedit_menu, menu_addrevoker): Allow specifying
4270         "sensitive" as an argument to an addrevoker command.  This sets
4271         the 0x40 sensitive revoker flag.
4273         * revoke.c (gen_desig_revoke): When generating a designated
4274         revocation, include the direct key sig that contains the
4275         designated revoker subpacket.  This allows sensitive designated
4276         revocation subpackets to be exported.  Also indicate which
4277         revokers are sensitive in the first place.
4279 2002-07-17  David Shaw  <dshaw@jabberwocky.com>
4281         * keyedit.c (show_key_with_all_names_colon): The 0x40 class bit in
4282         a designated revoker means "sensitive", not "local".  It's
4283         exportable under the right circumstances.
4285         * main.h, options.h, export.c (do_export_stream), g10.c (main),
4286         hkp.c (hkp_export), keyserver.c (keyserver_spawn: Add a flag to
4287         skip attribute packets and their signatures while exporting.  This
4288         is to accomodate keyservers (pksd again) that choke on attributes.
4289         Use keyserver-option "include-attributes" to control it.  This
4290         defaults to ON (i.e. don't skip).
4292 2002-07-09  David Shaw  <dshaw@jabberwocky.com>
4294         * options.h, keyserver.c (parse_keyserver_uri, keyserver_spawn,
4295         keyserver_work), hkp.c (hkp_ask_import, hkp_export, hkp_search):
4296         Use a much more strict reading of RFC-2396 for the keyserver URIs.
4297         Specifically, don't try and be smart about checking the value of
4298         ":port" so long as it is all digits, and properly handle opaque
4299         data (those scheme specific parts that do not start with "//").
4301 2002-07-04  David Shaw  <dshaw@jabberwocky.com>
4303         * photoid.c (get_default_photo_command, show_photos): Honor
4304         FIXED_PHOTO_VIEWER and DISABLE_PHOTO_VIEWER.
4306         * mainproc.c (check_sig_and_print): Use --show-photos to show
4307         photos when verifying a sig made by a key with a photo.
4309         * keyserver.c (parse_keyserver_uri): Properly parse a URI with no
4310         :port section and an empty file path, but with a terminating '/'.
4311         (keyserver_work): Honor DISABLE_KEYSERVER_HELPERS.
4313         * hkp.c (hkp_ask_import): Display keyserver URI as a URI, but only
4314         if verbose.
4316         * exec.c, g10.c: USE_EXEC_PATH -> FIXED_EXEC_PATH
4318 2002-07-03  David Shaw  <dshaw@jabberwocky.com>
4320         * exec.h, exec.c (set_exec_path, exec_write), g10.c (main): If
4321         USE_EXEC_PATH is defined at compile time, use it to lock the
4322         exec-path and not allow the user to change it.
4324 2002-07-02  David Shaw  <dshaw@jabberwocky.com>
4326         * options.h, g10.c (main), keyserver.c (keyserver_refresh):
4327         Maintain and use the original keyserver URI for cosmetics rather
4328         than trying to recreate it when needed.
4330         * mainproc.c (check_sig_and_print): Properly disregard expired
4331         uids.  Make sure that the first uid listed is a real uid and not
4332         an attribute (attributes should only be listed in the "aka"
4333         section).  When there are no valid textual userids, try for an
4334         invalid textual userid before using any attribute uid.
4336 2002-07-01  David Shaw  <dshaw@jabberwocky.com>
4338         * options.skel: Fix a few typos, clarify "group", and remove
4339         sample photo viewers for Win32 since they are the defaults now.
4341         * parse-packet.c (make_attribute_uidname), keylist.c
4342         (dump_attribs): Fix two typecast warnings.
4344         * packet.h, build-packet.c (build_attribute_subpkt), exec.c
4345         (expand_args), mkdtemp.c (mkdtemp), photoid.c
4346         (parse_image_header): Fix some signedness compiler warnings.
4348 2002-07-01  Werner Koch  <wk@gnupg.org>
4350         * photoid.c (get_default_photo_command): Also use __MINGW32__
4351         instead of HAVE_DOSISH_SYSTEM.
4353         * encode.c (encode_symmetric): Do not use the new encryption code.
4355 2002-06-30  Werner Koch  <wk@gnupg.org>
4357         * photoid.c: Use __MINGW32__ to include windows because
4358         HAVE_DOSISH_SYSTEM is also set for OS/2 and plain DOS.  Provide
4359         constant missing in older mingw installations. 
4361 2002-06-21  Stefan Bellon  <sbellon@sbellon.de>
4363         * g10.c [__riscos__]: Moved RISC OS specific stuff to util/riscos.c
4364         and include/util.h.
4366         * gpgv.c [__riscos__]: Likewise.
4368 2002-06-20  David Shaw  <dshaw@jabberwocky.com>
4370         * keydb.h, pkclist.c (select_algo_from_prefs): Allow passing a
4371         suggested algorithm which will be used if available.
4373         * encode.c (encode_crypt, encrypt_filter), sign.c (sign_file): Use
4374         new select_algo_from_prefs feature to check if forcing an
4375         algorithm would violate the recipient preferences.
4377         * photoid.c (get_default_photo_command, show_photos): Use
4378         different default viewers on different platforms.  Currently we
4379         have Win 9x, Win NT (2k, xp), Mac OSX, RISC OS, and "everybody
4380         else".  These are #ifdefs as much as possible to avoid clutter.
4382         * g10.c (strusage, build_list), keyedit.c (show_prefs), main.h,
4383         misc.c (compress_algo_to_string, check_compress_algo), pkclist.c
4384         (algo_available), keygen.c (keygen_set_std_prefs): New
4385         algo_to_string and check functions for compress algorithms.
4387 2002-06-20  Werner Koch  <wk@gnupg.org>
4389         * misc.c (setsysinfo): Removed a #warning for Alpha's uniligedn
4390         trap disabling - it is quite possible that this is a debug relict.
4392 2002-06-20  Stefan Bellon  <sbellon@sbellon.de>
4394         * g10.c [__riscos__]: Added image file system feature.
4396         * gpgv.c [__riscos__]: Added image file system feature.
4398         * photoid.c (show_photos) [__riscos__]: Set RISC OS filetype of
4399         photo id according to MIME type.
4401 2002-06-19  David Shaw  <dshaw@jabberwocky.com>
4403         * hkp.c (parse_hkp_index): Don't leak memory when failing out of a
4404         bad HKP keyserver.
4406         * g10.c (add_notation_data): Relax slightly the rules as to what
4407         can go into a notation name - 2440 allows "@", for example.
4409 2002-06-17  David Shaw  <dshaw@jabberwocky.com>
4411         * import.c (clean_subkeys, import_one): Only allow at most 1
4412         binding sig and at most 1 revocation sig on a subkey, as per
4413         2440:11.1.
4415         * hkp.c (parse_hkp_index, hkp_search): Error if the keyserver
4416         returns an unparseable HKP response.
4418 2002-06-15  David Shaw  <dshaw@jabberwocky.com>
4420         * keyedit.c (show_key_with_all_names), keylist.c
4421         (list_keyblock_print): Show "[expired]" before expired uids.
4423         * keyedit.c (show_key_with_all_names_colon), mainproc.c
4424         (list_node), keylist.c (list_keyblock_colon): Show flag 'e' for
4425         expired user ids.  Use "uat" for user attribute packets instead of
4426         "uid".  Also use '<count> <length>' rather than the fake user id
4427         string on attributes.
4429         * keygen.c (keygen_add_revkey): Remove unused code.
4431         * misc.c (check_permissions): Check directory permissions
4432         properly - they are not special files.
4434         * pkclist.c (expand_id, expand_group, build_pk_list): When
4435         expanding groups before building a pk list, inherit flags from the
4436         original pre-expanded string.
4438         * pubkey-enc.c (is_algo_in_prefs): Don't use prefs from expired
4439         uids.
4441 2002-06-14  David Shaw  <dshaw@jabberwocky.com>
4443         * free-packet.c (copy_signature): Properly copy a signature that
4444         carries a revocation key on it.
4446         * pkclist.c (expand_id, expand_group, build_pk_list): Groups now
4447         work properly when used in the "Enter the user ID" prompt.
4449 2002-06-14  David Shaw  <dshaw@jabberwocky.com>
4451         * keyedit.c (show_key_with_all_names): Display warning if a user
4452         tries to show prefs on a v3 key with a v3 selfsig.
4454         * kbnode.c (dump_kbnode): Show if a uid is expired.
4456         * import.c (merge_blocks, import_revoke_cert): Show user ID
4457         receiving a revocation certificate.
4459         * free-packet.c (cmp_user_ids): Properly compare attribute ids.
4461         * pkclist.c (expand_groups): Maintain the strlist flags while
4462         expanding.  Members of an expansion inherit their flags from the
4463         expansion key.
4465         * options.h, cipher.c (write_header), g10.c (main), keygen.c
4466         (keygen_set_std_prefs): remove the personal_mdc flag.  It no
4467         longer serves a purpose now that the personal preference lists are
4468         split into cipher/digest/zip.
4470 2002-06-14  Timo Schulz  <ts@winpt.org>
4472         * skclist.c (is_insecure): Implemented.
4473         
4474 2002-06-12  David Shaw  <dshaw@jabberwocky.com>
4476         * keyserver.c (keyserver_spawn): Properly handle PROGRAM responses
4477         when they have a CRLF ending.  Noted by Keith Ray.
4479         * keyserver.c (keyserver_spawn): Handle CRLF endings from
4480         keyserver helpers.  Also don't leak the last line worth of memory
4481         from the keyserver response.
4483         * main.h, misc.c (deprecated_warning): New function to warn about
4484         deprecated options and commands.
4486         * g10.c (main), keyserver-internal.h, keyserver.c
4487         (parse_keyserver_uri): Use new deprecated function to warn about
4488         honor-http-proxy, auto-key-retrieve, and x-broken-hkp.
4490 2002-06-11  David Shaw  <dshaw@jabberwocky.com>
4492         * Makefile.am: link gpg with NETLIBS for the built-in HKP access.
4494 2002-06-10  David Shaw  <dshaw@jabberwocky.com>
4496         * options.h, keyserver.c (keyserver_opts), g10.c (main): New
4497         keyserver option "include-subkeys".  This feature already existed,
4498         but now can be turned off.  It defaults to on.
4500         * options.h, keyserver.c (parse_keyserver_options,
4501         keyserver_spawn): There are now enough options to justify making a
4502         structure for the keyserver options rather than a page of
4503         if-then-else-if-then-etc.
4505         * getkey.c (merge_keys_and_selfsig, merge_selfsigs_main): Fix bug
4506         in calculating key expiration dates.
4508 2002-06-09  David Shaw  <dshaw@jabberwocky.com>
4510         * keydb.h, getkey.c (get_user_id_native), import.c (import_one):
4511         Display user ID while importing a key.  Note this applies to both
4512         --import and keyserver --recv-keys.
4514         * exec.c (exec_finish): Log unnatural exit (core dump, killed
4515         manually, etc) for fork/exec/pipe child processes.
4517 2002-06-08  Timo Schulz  <ts@winpt.org>
4519         * encode.c (encode_symmetric): Disable the compat flag
4520         when the expert mode is enabled.
4521         
4522 2002-06-07  David Shaw  <dshaw@jabberwocky.com>
4524         * options.skel, options.h, main.h, keydb.h, pkclist.c
4525         (build_pk_list, expand_groups), g10.c (main, add_group): Add new
4526         "group" command to allow one name to expand into multiple keys.
4527         For simplicity, and to avoid potential loops, we only expand once
4528         - you can't make an alias that points to an alias.
4530         * main.h, g10.c (main), keygen.c (build_personal_digest_list):
4531         Simplify the default digest list - there is really no need for the
4532         other hashes since they will never be used after SHA-1 in the
4533         list.
4535         * options.skel, options.h, g10.c (main), hkp.c (hkp_ask_import,
4536         hkp_export, hkp_search), keyserver.c (parse_keyserver_options,
4537         parse_keyserver_uri, keyserver_work, keyserver_refresh): Make the
4538         "x-broken-hkp" keyserver scheme into keyserver-option
4539         "broken-http-proxy".  Move honor_http_proxy into
4540         keyserver_options.  Canonicalize the three variations of "hkp",
4541         "x-hkp", and "x-broken-hkp" into "hkp".
4543 2002-06-07  Stefan Bellon  <sbellon@sbellon.de>
4545         * g10.c [__riscos__]: Added --attribute-file to do the same as
4546         --attribute-fd, but with a filename not a fd as argument.
4547         Added magic symbol for RISC OS to use different memory management.
4549         * gpgv.c [__riscos__]: Added magic symbol for RISC OS to use
4550         different memory management.
4552 2002-06-06  David Shaw  <dshaw@jabberwocky.com>
4554         * main.h, g10.c (main), keygen.c (build_personal_digest_list): Put
4555         in a default digest preference list consisting of SHA-1, followed
4556         by every other installed digest except MD5.  Note this is the same
4557         as having no digest preference at all except for SHA-1 being
4558         favored.
4560         * options.h, g10.c (main), keygen.c (keygen_set_std_prefs),
4561         pkclist.c (select_algo_from_prefs): Split
4562         --personal-preference-list into three:
4563         --personal-{cipher|digest|compress}-preferences.  This allows a
4564         user to set one without affecting another (i.e. setting only a
4565         digest pref doesn't imply an empty cipher pref).
4567         * exec.c (exec_read): This is a safer way of guessing the return
4568         value of system().  Noted by Stefan Bellon.
4570 2002-06-05  David Shaw  <dshaw@jabberwocky.com>
4572         * hkp.c (parse_hkp_index): Be more robust with keyservers
4573         returning very unparseable responses.
4575         * exec.c (exec_read): Catch and display an error when the remote
4576         process exits unnaturally (i.e. segfault) so the user knows what
4577         happened.  Also fix exec_write stub which has a different number
4578         of arguments now.
4580 2002-06-05  Timo Schulz  <ts@winpt.org>
4582         * encode.c (encode_simple): Ignore the new mode for RFC1991.
4583         * mainproc.c (symkey_decrypt_sesskey): Better check for weird
4584         keysizes.
4585         
4586 2002-06-05  Timo Schulz  <ts@winpt.org>
4588         * encode.c (encode_sesskey): New.
4589         (encode_simple): Use it here. But by default we use the compat
4590         mode which supress to generate encrypted session keys.
4591         
4592 2002-06-05  Timo Schulz  <ts@winpt.org>
4594         * mainproc.c (symkey_decrypt_sesskey): New.
4595         (proc_symkey_enc): Support for encrypted session keys.
4596         
4597 2002-06-04  David Shaw  <dshaw@jabberwocky.com>
4599         * sign.c (hash_for, sign_file): When encrypting and signing at the
4600         same time, consult the various hash prefs to pick a hash algorithm
4601         to use.  Pass in a 160-bit hint if any of the signing keys are
4602         DSA.
4604         * keydb.h, pkclist.c (select_algo_from_prefs, algo_available):
4605         Pass a "hints" opaque pointer in to let the caller give hints as
4606         to what algorithms would be acceptable.  The only current hint is
4607         for PREFTYPE_HASH to require a 160-bit hash for DSA.  Change all
4608         callers in encode.c (encode_crypt, encrypt_filter) and sign.c
4609         (sign_file).  If we settle on MD5 as the best algorithm based
4610         solely on recepient keys and SHA1 is also a possibility, use SHA1
4611         unless the user intentionally chose MD5.  This is as per 2440:13.
4613         * exec.c (make_tempdir): Fix duplicated filename problem.
4615 2002-06-03  David Shaw  <dshaw@jabberwocky.com>
4617         * packet.h, parse-packet.c (enum_sig_subpkt): Report back from
4618         enum_sig_subpkt when a subpacket is critical and change all
4619         callers in keylist.c (show_policy_url, show_notation), mainproc.c
4620         (print_notation_data), and pkclist.c (do_show_revocation_reason).
4622         * keylist.c (show_policy_url, show_notation): Display if the
4623         policy or notation is critical.
4624         
4625 2002-06-03  David Shaw  <dshaw@jabberwocky.com>
4627         * main.h, g10.c (main), keylist.c (dump_attribs, set_attrib_fd,
4628         list_keyblock_print, list_keyblock_colon), status.h, status.c
4629         (get_status_string): New --attribute-fd feature to dump the
4630         contents of attribute subpackets for frontends.  If --status-fd is
4631         also used, then a new status tag ATTRIBUTE is provided for each
4632         subpacket.
4634         * packet.h, getkey.c (fixup_uidnode, merge_selfsigs_main,
4635         merge_selfsigs_subkey), parse-packet.c (setup_user_id): Keep track
4636         of the expiration time of a user ID, and while we're at it, use
4637         the expired flag from the selfsig rather than reparsing the
4638         SIG_EXPIRE subpacket.
4640         * photoid.c (generate_photo_id): When adding a new photo ID,
4641         showing the photo for confirmation is not safe when noninteractive
4642         since the "user" may not be able to dismiss a viewer window.
4643         Noted by Timo Schulz.
4644         
4645 2002-06-03  David Shaw  <dshaw@jabberwocky.com>
4647         * options.skel: Sample photo viewers for Win32.
4649         * misc.c (pct_expando): Use the seckey for %k/%K if the pubkey is
4650         not available.
4652         * photoid.h, photoid.c (show_photos): Include the seckey in case a
4653         user tries to view a photo on a secret key, and change all callers
4654         in keyedit.c (menu_showphoto), keylist.c (list_keyblock_print),
4655         and photoid.c (generate_photo_id).
4657 2002-06-02  David Shaw  <dshaw@jabberwocky.com>
4659         * photoid.c (show_photos): Work properly when not called with a
4660         public key.
4662 2002-05-31  David Shaw  <dshaw@jabberwocky.com>
4664         * sign.c (mk_notation_and_policy): Free unneeded buffer.
4666         * hkp.c (parse_hkp_index): Properly handle the '&' character
4667         (i.e. "&amp;") in HKP responses.
4669         * getkey.c (merge_selfsigs_main): Fix reversed expiration time
4670         check with self-sigs.
4672         * keyedit.c (sign_uids): When making a new self-sig on a v3 key,
4673         make a v3 self-sig unless it is currently a v3 self-sig being
4674         promoted to v4.
4676 2002-05-31  Timo Schulz  <ts@winpt.org>
4678         * pkclist.c (do_show_revocation_reason): Don't use capital
4679         letters for non-interactive output.
4680         (show_revocation_reason): Now it is global.
4681         * pubkey-enc.c (get_it): Show if the key has been revoked.
4682         
4683 2002-05-30  David Shaw  <dshaw@jabberwocky.com>
4685         * sign.c (write_signature_packets, sign_file, clearsign_file,
4686         sign_symencrypt_file): Make a v4 signature if a policy URL or
4687         notation is set, unless v3 sigs are forced via rfc1991 or
4688         force-v3-sigs.  Also remove some doubled code and clarify an error
4689         message (we don't sign in PGP2 mode - just detach-sign).
4691         * parse-packet.c (parse_one_sig_subpkt): Add KS_FLAGS to the "any
4692         size" section.
4694 2002-05-29  David Shaw  <dshaw@jabberwocky.com>
4696         * keygen.c (keygen_set_std_prefs, add_feature_mdc): Use "mdc" and
4697         "no-mdc" in the prefs string to allow switching on and off the MDC
4698         feature.  This is needed to properly export a key from GnuPG for
4699         use on PGP which does not support MDC - without this, MDC-capable
4700         implementations will still try and generate MDCs which will break
4701         PGP.
4703         * keygen.c (keygen_get_std_prefs): Show "[mdc]" in prefs string if
4704         it is enabled.
4706         * options.h, g10.c (main), cipher.c (write_header), keygen.c
4707         (keygen_set_std_prefs): For consistency, allow the user to specify
4708         mdc/no-mdc in the --personal-preference-list.  If disabled, it
4709         acts just like --disable-mdc.
4711 2002-05-29  David Shaw  <dshaw@jabberwocky.com>
4713         * options.h, exec.c: Add some debugging info, using the 1024 debug
4714         flag.
4716         * exec.c (win_system): New system()-like function for win32 that
4717         does not return until the child process terminates.  Of course,
4718         this doesn't help if the process itself exits before it is
4719         finished.
4721 2002-05-29  Werner Koch  <wk@gnupg.org>
4723         * encode.c (encode_simple): Intialize PKT when --no-literal is used.
4725         * keyedit.c (show_key_with_all_names_colon): Renamed the record
4726         for revocation keys to "rvk".
4728 2002-05-27  Werner Koch  <wk@gnupg.org>
4730         * keyedit.c (show_key_with_all_names_colon): New.
4731         (show_key_with_all_names): Divert to new function when required.
4732         Sanitize printing of revoker name.
4734 2002-05-27  David Shaw  <dshaw@jabberwocky.com>
4736         * build-packet.c (build_sig_subpkt): Handle setting sig flags for
4737         certain subpacket types (notation, policy url, exportable,
4738         revocable).  keyedit.c (sign_mk_attrib): Flags no longer need to
4739         be set here.
4741         * packet.h, parse-packet.c (parse_one_sig_subpkt), build-packet.c
4742         (build_sig_subpkt): Call parse_one_sig_subpkt to sanity check
4743         buffer lengths before building a sig subpacket.
4745 2002-05-26  David Shaw  <dshaw@jabberwocky.com>
4747         * sign.c (mk_notation_and_policy): Include secret key to enable %s
4748         expandos, and pass notations through pct_expando as well.
4750         * main.h, misc.c (pct_expando): Add %s and %S expandos for
4751         signer's keyid.
4753 2002-05-25  David Shaw  <dshaw@jabberwocky.com>
4755         * g10.c (strusage, build_list): Add compress algorithms to
4756         --version list.  Show algorithm numbers when --verbose --version
4757         is done.
4759 2002-05-22  David Shaw  <dshaw@jabberwocky.com>
4761         * options.h, main.h, keygen.c (keygen_set_set_prefs,
4762         keygen_get_std_prefs, keygen_upd_std_prefs), keyedit.c
4763         (keyedit_menu), g10.c (main), pkclist.c (select_algo_from_prefs):
4764         Add --personal-preference-list which allows the user to factor in
4765         their own preferred algorithms when the preference lists are
4766         consulted.  Obviously, this does not let the user violate a
4767         recepient's preferences (and the RFC) - this only influences the
4768         ranking of the agreed-on (and available) algorithms from the
4769         recepients.  Suggested by David Hollenberg.
4771         * options.h, keygen.c (keygen_set_std_prefs), g10.c (main): Rename
4772         --preference-list to --default-preference-list (as that is what it
4773         really is), and make it a true default in that if the user selects
4774         "default" they get this list and not the compiled-in list.
4776 2002-05-22  Werner Koch  <wk@gnupg.org>
4778         * g10.c (main): Add missing LF in a info printout and made it
4779         translatable.  Noted by Michael Tokarev.
4781 2002-05-21  Werner Koch  <wk@gnupg.org>
4783         * g10.c (main): Removed the undef of USE_SHM_COPROCESSING which
4784         was erroneously introduced on 2002-01-09.
4786         * signal.c (got_fatal_signal): Don't write the Nul to stderr.
4787         Reported by David Hollenberg.
4789 2002-05-18  David Shaw  <dshaw@jabberwocky.com>
4791         * main.h, g10.c (main), revoke.c (gen_desig_revoke): Generate a
4792         designated revocation via --desig-revoke
4794         * keyedit.c (keyedit_menu, menu_addrevoker): New "addrevoker"
4795         command to add a designated revoker to a key.
4797 2002-05-17  David Shaw  <dshaw@jabberwocky.com>
4799         * gpgv.c: Add stub for get_ownertrust().
4801         * g10.c (main): --allow-freeform-uid should be implied by
4802         OpenPGP.  Add --no-allow-freeform-uid.
4804         * keyedit.c (sign_uids): Issue a warning when signing a
4805         non-selfsigned uid.
4807         * getkey.c (merge_selfsigs_main): If a key has no selfsigs, and
4808         allow-non-selfsigned-uid is not set, still try and make the key
4809         valid by checking all uids for a signature from an ultimately
4810         trusted key.
4812 2002-05-16  David Shaw  <dshaw@jabberwocky.com>
4814         * main.h, keygen.c (keygen_add_revkey): Add revocation key
4815         subpackets to a signature (callable by
4816         make_keysig_packet). (write_direct_sig): Write a 1F direct key
4817         signature. (parse_revocation_key): Parse a string in
4818         algo:fpr:sensitive format into a revocation
4819         key. (get_parameter_revkey, do_generate_keypair): Call above
4820         functions when prompted from a batch key generation file.
4822         * build-packet.c (build_sig_subpkt): Allow multiple revocation key
4823         subpackets in a single sig.
4825         * keydb.h, getkey.c (get_seckey_byfprint): Same as
4826         get_pubkey_byfprint, except for secret keys.  We only know the
4827         fingerprint of a revocation key, so this is needed to retrieve the
4828         secret key needed to issue a revokation.
4830         * packet.h, parse-packet.c (parse_signature, parse_revkeys): Split
4831         revkey parsing off into a new function that can be used to reparse
4832         after manipulating the revkey list.
4834         * sign.c (make_keysig_packet): Ability to make 1F direct key
4835         signatures.
4837 2002-05-15  David Shaw  <dshaw@jabberwocky.com>
4839         * options.skel: keyserver.pgp.com is gone, so list pgp.surfnet.nl
4840         as a sample LDAP server instead.
4842         * getkey.c (merge_selfsigs_main): Properly handle multiple
4843         revocation keys in a single packet.  Properly handle revocation
4844         keys that are in out-of-order packets.  Remove duplicates in
4845         revocation key list.
4847 2002-05-14  Timo Schulz   <ts@winpt.org>
4849         * exec.c (make_tempdir) [MINGW32]: Added missing '\'.
4850         
4851 2002-05-14  Stefan Bellon  <sbellon@sbellon.de>
4853         * exec.c (make_tempdir): Make use of EXTSEP_S instead of hardcoded
4854         dot as extension separator.
4856 2002-05-13  David Shaw  <dshaw@jabberwocky.com>
4858         * photoid.c (show_photos): Use the long keyid as the filename for
4859         the photo.  Use the short keyid as the filename on 8.3 systems.
4861         * exec.h, exec.c (make_tempdir, exec_write, exec_finish): Allow
4862         caller to specify filename.  This should make things easier on
4863         windows and macs where the file extension is required, but a whole
4864         filename is even better.
4866         * keyedit.c (show_key_with_all_names, show_prefs): Show proper
4867         prefs for a v4 key uid with no selfsig at all.
4869         * misc.c (check_permissions): Don't check permissions on
4870         non-normal files (pipes, character devices, etc.)
4872 2002-05-11  Werner Koch  <wk@gnupg.org>
4874         * mainproc.c (proc_symkey_enc): Avoid segv in case the parser
4875         encountered an invalid packet.
4877         * keyserver.c (keyserver_export): Get confirmation before sending
4878         all keys.
4880 2002-05-10  Stefan Bellon  <sbellon@sbellon.de>
4882         * g10.c, hkp.c, keyedit.c, keyserver.c: Replaced all occurrances
4883         of strcasecmp with ascii_strcasecmp and all occurrances of
4884         strncasecmp with ascii_memcasecmp.
4886 2002-05-10  David Shaw  <dshaw@jabberwocky.com>
4888         * packet.h, getkey.c (fixup_uidnode), keyedit.c (show_prefs): Show
4889         assumed prefs for hash and compression as well as the cipher pref.
4890         Show assumed prefs if there are no prefs at all on a v4
4891         self-signed key.
4893         * options.h, g10.c (main), sign.c (make_keysig_packet): New
4894         --cert-digest-algo function to override the default key signing
4895         hash algorithm.
4897 2002-05-09  David Shaw  <dshaw@jabberwocky.com>
4899         * getkey.c (merge_selfsigs_main): Make sure the revocation key
4900         list starts clean as this function may be called more than once
4901         (e.g. from functions in --edit).
4903         * g10.c, encode.c (encode_crypt), sign.c (sign_file,
4904         sign_symencrypt_file): Make --compress-algo work like the
4905         documentation says.  It should be like --cipher-algo and
4906         --digest-algo in that it can override the preferences calculation
4907         and impose the setting the user wants.  No --compress-algo setting
4908         allows the usual preferences calculation to take place.
4910         * main.h, compress.c (compress_filter): use new
4911         DEFAULT_COMPRESS_ALGO define, and add a sanity check for compress
4912         algo value.
4914 2002-05-08  David Shaw  <dshaw@jabberwocky.com>
4916         * pkclist.c (select_algo_from_prefs): There is an assumed
4917         compression preference for uncompressed data.
4919 2002-05-07  David Shaw  <dshaw@jabberwocky.com>
4921         * options.h, g10.c (main), getkey.c (finish_lookup), pkclist.c
4922         (algo_available): --pgp7, identical to --pgp6 except that it
4923         permits a few algorithms that PGP 7 added: AES128, AES192, AES256,
4924         and TWOFISH.  Any more of these --pgpX flags, and it'll be time to
4925         start looking at a generic --emulate-pgp X option.
4927         * export.c (do_export_stream): Warn the user when exporting a
4928         secret key if it or any of its secret subkeys are protected with
4929         SHA1 while simple_sk_checksum is set.
4931         * parse-packet.c (parse_key): Show when the SHA1 protection is
4932         used in --list-packets.
4934         * options.h, build-packet.c (do_comment), g10.c (main): Rename
4935         --no-comment as --sk-comments/--no-sk-comments (--no-comment still
4936         works) and make the default be --no-sk-comments.
4938 2002-05-07  Werner Koch  <wk@gnupg.org>
4940         * keygen.c (get_parameter_algo): Never allow generation of the
4941         deprecated RSA-E or RSA-S flavors of PGP RSA.
4942         (ask_algo): Allow generation of RSA sign and encrypt in expert
4943         mode.  Don't allow ElGamal S+E unless in expert mode.
4944         * helptext.c: Added entry keygen.algo.rsa_se.
4946 2002-05-07  David Shaw  <dshaw@jabberwocky.com>
4948         * keyedit.c (sign_uids): If --expert is set, allow re-signing a
4949         uid to promote a v3 self-sig to a v4 one.  This essentially
4950         deletes the old v3 self-sig and replaces it with a v4 one.
4952         * packet.h, parse-packet.c (parse_key), getkey.c
4953         (merge_keys_and_selfsig, merge_selfsigs_main): a v3 key with a v4
4954         self-sig must never let the v4 self-sig express a key expiration
4955         time that extends beyond the original v3 expiration time.
4957 2002-05-06  David Shaw  <dshaw@jabberwocky.com>
4959         * keyedit.c (sign_uids): When making a self-signature via "sign"
4960         don't ask about sig level or expiration, and include the usual
4961         preferences and such for v4 self-sigs.  (menu_set_preferences):
4962         Convert uids from UTF8 to native before printing.
4964         * keyedit.c (sign_uids): Convert uids from UTF8 to native before
4965         printing.  (menu_set_primary_uid): Show error if the user tries to
4966         make a uid with a v3 self-sig primary.
4968 2002-05-05  David Shaw  <dshaw@jabberwocky.com>
4970         * import.c (import_one): When merging with a key we already have,
4971         don't let a key conflict (same keyid but different key) stop the
4972         import: just skip the bad key and continue.
4974         * exec.c (make_tempdir): Under Win32, don't try environment
4975         variables for temp directories - GetTempDir tries environment
4976         variables internally, and it's better not to second-guess it in
4977         case MS adds some sort of temp dir handling to Windows at some
4978         point.
4980 2002-05-05  Timo Schulz  <ts@winpt.org>
4982         * mainproc.c (proc_symkey_enc): Don't ask for a passphrase
4983         in the list only mode.
4984         
4985 2002-05-05  David Shaw  <dshaw@jabberwocky.com>
4987         * keyserver.c (keyserver_refresh): --refresh-keys implies
4988         --merge-only so as not to import keys with keyids that match the
4989         ones being refreshed.  Noted by Florian Weimer.
4991 2002-05-04  Stefan Bellon  <sbellon@sbellon.de>
4993         * free-packet.c (copy_public_key): Don't call m_alloc(0), therefore
4994         added consistency check for revkey and numrefkeys.
4996         * getkey.c (check_revocation_keys): Added consistency check for
4997         revkey and numrefkeys.
4999         * keyedit.c (show_key_with_all_names): Likewise.
5001 2002-05-03  David Shaw  <dshaw@jabberwocky.com>
5003         * photoid.c: Provide default image viewer for Win32.
5005         * misc.c (pct_expando): %t means extension, not name ("jpg", not
5006         "jpeg").
5008         * keyserver.c (keyserver_spawn), photoid.c (show_photos), exec.h,
5009         exec.c: Allow the caller to determine the temp file extension when
5010         starting an exec_write and change all callers.
5012         * keyedit.c (sign_uids): Nonrevocable key signatures cause an
5013         automatic promotion to v4.
5015         * exec.c: Provide stubs for exec_ functions when NO_EXEC is
5016         defined.
5018 2002-05-02  David Shaw  <dshaw@jabberwocky.com>
5020         * photoid.h, photoid.c (parse_image_header, image_type_to_string):
5021         Useful functions to return data about an image.
5023         * packet.h, parse-packet.c (make_attribute_uidname,
5024         parse_attribute_subpkts, parse_attribute), photoid.h, photoid.c
5025         (show_photos): Handle multiple images in a single attribute
5026         packet.
5028         * main.h, misc.c (pct_expando), sign.c (mk_notation_and_policy),
5029         photoid.c (show_photos): Simpler expando code that does not
5030         require using compile-time string sizes.  Call
5031         image_type_to_string to get image strings (i.e. "jpg",
5032         "image/jpeg").  Change all callers.
5034         * keyedit.c (menu_showphoto), keylist.c (list_keyblock_print):
5035         Allow viewing multiple images within a single attribute packet.
5037         * gpgv.c: Various stubs for link happiness.
5039 2002-05-02  David Shaw  <dshaw@jabberwocky.com>
5041         * build-packet.c (build_sig_subpkt), keyedit.c (sign_uids),
5042         options.h, sign.c (mk_notation_and_policy), g10.c (main,
5043         add_notation_data, add_policy_url (new), check_policy_url
5044         (removed)): Allow multiple policy URLs on a given signature.
5045         Split "--notation-data" into "--cert-notation" and
5046         "--sig-notation" so the user can set different policies for key
5047         and data signing.  For backwards compatibility, "--notation-data"
5048         sets both, as before.
5050 2002-05-02  Werner Koch  <wk@gnupg.org>
5052         * options.skel: Removed the comment on trusted-keys because this
5053         option is now deprecated.
5055 2002-05-01  David Shaw  <dshaw@jabberwocky.com>
5057         * keyedit.c (menu_adduid): 2440bis04 says that multiple attribute
5058         packets on a given key are legal.
5060         * keyserver.c (keyserver_refresh): the fake v3 keyid hack applies
5061         to "mailto" URLs as well since they are also served by pksd.
5063 2002-04-29  Werner Koch  <wk@gnupg.org>
5065         Added a copyright year for files changed this year.
5067 2002-04-25  Werner Koch  <wk@gnupg.org>
5069         * g10.c, options.h: New options --display, --ttyname, --ttytype,
5070         --lc-ctype, --lc-messages to be used with future versions of the
5071         gpg-agent. 
5072         * passphrase.c (agent_send_option,agent_send_all_options): New.
5073         (agent_open): Send options to the agent.
5075         * trustdb.c (update_ownertrust, clear_ownertrust): Do an explicit
5076         do_sync because revalidation_mark does it only if when the
5077         timestamp actually changes.
5079 2002-04-23  David Shaw  <dshaw@jabberwocky.com>
5081         * main.h, keygen.c (do_generate_keypair), keylist.c
5082         (print_signature_stats, list_all, list_one, list_keyblock,
5083         list_keyblock_print, list_keyblock_colon): After generating a new
5084         key, show the key information (name, keyid, fingerprint, etc.)
5085         Also do not print uncheckable signatures (missing key..) in
5086         --check-sigs.  Print statistics (N missing keys, etc.) after
5087         --check-sigs.
5089         * keyedit.c (sign_uids): When signing a key with an expiration
5090         date on it, the "Do you want your signature to expire at the same
5091         time?" question should default to YES.
5093 2002-04-22  David Shaw  <dshaw@jabberwocky.com>
5095         * parse-packet.c (parse_plaintext), packet.h, plaintext.c
5096         (handle_plaintext): Fix bug in handling literal packets with
5097         zero-length data (no data was being confused with partial body
5098         length).
5100         * misc.c (pct_expando), options.skel: %t means extension ("jpg").
5101         %T means MIME type ("image/jpeg").
5103         * import.c (import_one): Only trigger trust update if the keyring
5104         is actually changed.
5106         * export.c (do_export_stream): Missing a m_free.
5108 2002-04-22  Stefan Bellon  <sbellon@sbellon.de>
5110         * keyid.c (expirestr_from_sk, expirestr_from_sig): Added _() to
5111         string constant.
5113         * exec.c (make_tempdir) [__riscos__]: Better placement of
5114         temporary file.
5116 2002-04-20  David Shaw  <dshaw@jabberwocky.com>
5118         * keygen.c (generate_subkeypair): 2440bis04 adds that creating
5119         subkeys on v3 keys is a MUST NOT.
5121         * getkey.c (finish_lookup): The --pgp6 "use the primary key"
5122         behavior should only apply while data signing and not encryption.
5123         Noted by Roger Sondermann.
5125 2002-04-19  Werner Koch  <wk@gnupg.org>
5127         * keygen.c (keygen_set_std_prefs): Put back 3DES because the RFC
5128         says it is good form to do so.
5130 2002-04-19  David Shaw  <dshaw@jabberwocky.com>
5132         * keyedit.c (menu_deluid): Only cause a trust update if we delete
5133         a non-revoked user id.
5135         * hkp.c (hkp_ask_import), keyserver.c (parse_keyserver_options,
5136         keyserver_spawn), options.h: Remove fast-import keyserver option
5137         (no longer meaningful).
5139         * g10.c (main), keyedit.c (sign_uids), options.h: Change
5140         --default-check-level to --default-cert-check-level as it makes
5141         clear what it operates on.
5143         * g10.c (main): --pgp6 also implies --no-ask-sig-expire.
5145         * delkey.c (do_delete_key): Comment.
5147         * keyedit.c (sign_uids, keyedit_menu, menu_deluid, menu_delsig,
5148         menu_expire, menu_revsig, menu_revkey): Only force a trustdb check
5149         if we did something that changes it.
5151         * g10.c: add "--auto-check-trustdb" to override a
5152         "--no-auto-check-trustdb"
5154 2002-04-19  Werner Koch  <wk@gnupg.org>
5156         * tdbio.c (tdbio_write_nextcheck): Return a status whether the
5157         stamp was actually changed.
5158         * trustdb.c (revalidation_mark): Sync the changes.  Removed the
5159         sync operation done by its callers.
5160         (get_validity): Add logic for maintaining a pending_check flag.
5161         (clear_ownertrust): New.
5162         
5163         * keyedit.c (sign_uids): Don't call revalidation_mark depending on
5164         primary_pk.
5165         (keyedit_menu): Call revalidation_mark after "trust".
5166         (show_key_with_all_names): Print a warning on the wrong listed key
5167         validity.
5169         * delkey.c (do_delete_key): Clear the owenertrust information when
5170         deleting a public key.
5171         
5172 2002-04-18  Werner Koch  <wk@gnupg.org>
5174         * seskey.c (encode_md_value): Print an error message if a wrong
5175         digest algorithm is used with DSA.  Changed all callers to cope
5176         with a NULL return.  Problem noted by Imad R. Faiad.
5178 2002-04-18  David Shaw  <dshaw@jabberwocky.com>
5180         * trustdb.c (mark_usable_uid_certs): Properly handle nonrevocable
5181         signatures that can expire.  In short, the only thing that can
5182         override an unexpired nonrevocable signature is another unexpired
5183         nonrevocable signature.
5185         * getkey.c (finish_lookup): Always use primary signing key for
5186         signatures when --pgp6 is on since pgp6 and 7 do not understand
5187         signatures made by signing subkeys.
5189 2002-04-18  Werner Koch  <wk@gnupg.org>
5191         * trustdb.c (validate_keys): Never schedule a nextcheck into the
5192         past.
5193         (validate_key_list): New arg curtime use it to set next_expire.
5194         (validate_one_keyblock): Take the current time from the caller.
5195         (clear_validity, reset_unconnected_keys): New.
5196         (validate_keys): Reset all unconnected keys.
5198         * getkey.c (premerge_public_with_secret): Fixed 0x12345678! syntax
5199         for use with secret keys.
5200         (lookup): Advance the searchmode after a search FIRST.
5202         * seckey-cert.c (do_check): Always calculate the old checksum for
5203         use after unprotection.
5205         * g10.c, options.skel: New option --no-escape-from.  Made
5206         --escape-from and --force-v3-sigs the default and removed them
5207         from the options skeleton.
5209 2002-04-16  Werner Koch  <wk@gnupg.org>
5211         * parse-packet.c (parse_key): Support a SHA1 checksum as per
5212         draft-rfc2440-bis04.
5213         * packet.h (PKT_secret_key): Add field sha1chk.
5214         * seckey-cert.c (do_check): Check the SHA1 checksum
5215         (protect_secret_key): And create it.
5216         * build-packet.c (do_secret_key): Mark it as sha-1 protected.
5217         * g10.c, options.h: New option --simple-sk-checksum.
5219 2002-04-13  David Shaw  <dshaw@jabberwocky.com>
5221         * parse-packet.c (parse_signature): Minor fix - signatures should
5222         expire at their expiration time and not one second later.
5224         * keygen.c (proc_parameter_file): Allow specifying preferences
5225         string (i.e. "s5 s2 z1 z2", etc) in a batchmode key generation
5226         file.
5228         * keyedit.c (keyedit_menu): Print standard error message when
5229         signing a revoked key (no new translation).
5231         * getkey.c (merge_selfsigs): Get the default set of key prefs from
5232         the real (not attribute) primary uid.
5234 2002-04-12  David Shaw  <dshaw@jabberwocky.com>
5236         * pkclist.c (build_pk_list): Fix bug that allowed a key to be
5237         selected twice in batch mode if one instance was the default
5238         recipient and the other was an encrypt-to.  Noted by Stefan
5239         Bellon.
5241         * parse-packet.c (dump_sig_subpkt): Show data in trust and regexp
5242         sig subpackets.
5244         * keyedit.c (keyedit_menu): Use new function real_uids_left to
5245         prevent deleting the last real (i.e. non-attribute) uid.  Again,
5246         according to the attribute draft. (menu_showphoto): Make another
5247         string translatable.
5249 2002-04-11  David Shaw  <dshaw@jabberwocky.com>
5251         * build-packet.c (build_sig_subpkt): Delete subpackets from both
5252         hashed and unhashed area on update.  (find_subpkt): No longer
5253         needed.
5255         * keyedit.c (sign_uids): With --pgp2 on, refuse to sign a v3 key
5256         with a v4 signature.  As usual, --expert overrides.  Try to tweak
5257         some strings to a closer match so they can all be translated in
5258         one place.  Use different helptext keys to allow different help
5259         text for different questions.
5261         * keygen.c (keygen_upd_std_prefs): Remove preferences from both
5262         hashed and unhashed areas if they are not going to be used.
5264 2002-04-10  David Shaw  <dshaw@jabberwocky.com>
5266         * misc.c (pct_expando), options.skel: Use %t to indicate type of a
5267         photo ID (in this version, it's always "jpeg").  Also tweak string
5268         expansion loop to minimize reallocs.
5270         * mainproc.c (do_check_sig): Variable type fix.
5272         * keyedit.c (menu_set_primary_uid): Differentiate between true
5273         user IDs and attribute user IDs when making one of them primary.
5274         That is, if we are making a user ID primary, we alter user IDs.
5275         If we are making an attribute packet primary, we alter attribute
5276         packets.  This matches the language in the latest attribute packet
5277         draft.
5279         * keyedit.c (sign_uids): No need for the empty string hack.
5281         * getkey.c (fixup_uidnode): Only accept preferences from the
5282         hashed segment of the self-sig.
5284 2002-04-10  Werner Koch  <wk@gnupg.org>
5286         * tdbio.c (migrate_from_v2): Fixed the offset to read the old
5287         ownertrust value and only add entries to the table if we really
5288         have a value.
5290 2002-04-08  David Shaw  <dshaw@jabberwocky.com>
5292         * status.h, status.c (get_status_string): Add KEYEXPIRED, EXPSIG,
5293         and EXPKEYSIG.  Add "deprecated-use-keyexpired-instead" to
5294         SIGEXPIRED.
5296         * sig-check.c (do_check): Start transition from SIGEXPIRED to
5297         KEYEXPIRED, since the actual event is signature verification by an
5298         expired key and not an expired signature. (do_signature_check,
5299         packet.h): Rename as signature_check2, make public, and change all
5300         callers.
5302         * mainproc.c (check_sig_and_print, do_check_sig): Use status
5303         EXPSIG for an expired, but good, signature.  Add the expiration
5304         time (or 0) to the VALIDSIG status line.  Use status KEYEXPSIG for
5305         a good signature from an expired key.
5307         * g10.c (main): remove checks for no arguments now that argparse
5308         does it.
5310 2002-04-06  Werner Koch  <wk@gnupg.org>
5312         * keyring.c (keyring_get_keyblock): Disable the keylist mode here.
5314         * encode.c (encode_simple, encode_crypt): Only test on compressed
5315         files if a compress level was not explicity set.
5317         * keygen.c (keygen_set_std_prefs): Removed Blowfish and Twofish
5318         from the list of default preferences, swapped the preferences of
5319         RMD160 and SHA1.  Don't include a preference to 3DES unless the
5320         IDEA kludge gets used.
5322         * free-packet.c (free_packet): call free_encrypted also for
5323         PKT_ENCRYPTED_MDC.
5325         * compress.c (release_context): New.
5326         (handle_compressed): Allocate the context and setup a closure to
5327         release the context.  This is required because there is no
5328         guarantee that the filter gets popped from the chain at the end
5329         of the function.  Problem noted by Timo and probably also the
5330         cause for a couple of other reports.
5331         (compress_filter): Use the release function if set.
5333         * tdbio.c [__CYGWIN32__]: Don't rename ftruncate.  Noted by
5334         Disastry.
5336         * parse-packet.c (parse_signature): Put parens around a bit test.
5338         * exec.c (make_tempdir): Double backslash for TMP directory
5339         creation under Windows.  Better strlen the DIRSEP_S constants for
5340         allocation measurements.
5342         * decrypt.c (decrypt_messages): Release the passphrase aquired
5343         by get_last_passphrase.
5345 2002-04-02  Werner Koch  <wk@gnupg.org>
5347         * Makefile.am (EXTRA_DIST): Removed OPTIONS an pubring.asc - they
5348         are no longer of any use. 
5350 2002-04-03  David Shaw  <dshaw@jabberwocky.com>
5352         * keyserver.c (parse_keyserver_options): fix auto-key-retrieve to
5353         actually work as a keyserver-option (noted by Roger Sondermann).
5355         * keylist.c (reorder_keyblock): do not reorder the primary
5356         attribute packet - the first user ID must be a genuine one.
5358 2002-03-31  David Shaw  <dshaw@jabberwocky.com>
5360         * keylist.c (list_keyblock_colon): Fix ownertrust display with
5361         --with-colons.
5363         * keygen.c (generate_user_id), photoid.c (generate_photo_id):
5364         Properly initialize the user ID refcount.  A few more "y/n" ->
5365         "y/N" in photoid.c.
5367         * keyedit.c (ask_revoke_sig): Warn the user if they are about to
5368         revoke an expired sig (not a problem, but they should know).  Also
5369         tweak a few prompts to change "y/n" to "y/N", which is how most
5370         other prompts are written.
5372         * keyserver.c (keyserver_search_prompt): Control-d escapes the
5373         keyserver search prompt.
5375         * pkclist.c (show_revocation_reason & callers): If a subkey is
5376         considered revoked solely because the parent key is revoked, print
5377         the revocation reason from the parent key.
5379         * trustdb.c (get_validity): Allow revocation/expiration to apply
5380         to a uid/key with no entry in the trustdb.
5382 2002-03-29  David Shaw  <dshaw@jabberwocky.com>
5384         * keyserver.c (printunquoted): unquote backslashes from keyserver
5385         searches
5387         * hkp.c (write_quoted): quote backslashes from keyserver searches
5389 2002-03-26  Werner Koch  <wk@gnupg.org>
5391         * keygen.c (ask_keysize): Removed the warning for key sizes > 1536.
5393 2002-03-25  Werner Koch  <wk@gnupg.org>
5395         * keyedit.c (sign_uids): Use 2 strings and not a %s so that
5396         translations can be done the right way.
5397         * helptext.c: Fixed small typo.
5399 2002-03-23  David Shaw  <dshaw@jabberwocky.com>
5401         * import.c (append_uid, merge_sigs): it is okay to import
5402         completely non-signed uids now (with --allow-non-selfsigned-uid).
5404         * getkey.c (get_primary_uid, merge_selfsigs_main): do not choose
5405         an attribute packet (i.e. photo) as primary uid.  This prevents
5406         oddities like "Good signature from [image of size 2671]".  This is
5407         still not perfect (one can still select an attribute packet as
5408         primary in --edit), but is closer to the way the draft is going.
5410         * g10.c (build_list): algorithms should include 110.
5412         * g10.c (main): --pgp2 implies --no-ask-sig-expire and
5413         --no-ask-cert-expire as those would cause a v4 sig/cert.
5415         * armor.c (is_armor_header): be more lenient in what constitutes a
5416         valid armor header (i.e. -----BEGIN blah blah-----) as some
5417         Windows programs seem to add spaces at the end.  --openpgp makes
5418         it strict again.
5420 2002-03-18  David Shaw  <dshaw@jabberwocky.com>
5422         * keyserver.c (keyserver_search_prompt): Properly handle a "no
5423         keys found" case from the internal HKP code (external HKP is ok).
5424         Also, make a COUNT -1 (i.e. streamed) keyserver response a little
5425         more efficient.
5427         * g10.c (main): Add --no-allow-non-selfsigned-uid
5429 2002-03-17  David Shaw  <dshaw@jabberwocky.com>
5431         * g10.c (main): --openpgp implies --allow-non-selfsigned-uid.
5433         * getkey.c (merge_selfsigs_main): If none of the uids are primary
5434         (because none are valid) then pick the first to be primary (but
5435         still invalid).  This is for cosmetics in case some display needs
5436         to print a user ID from a non-selfsigned key.  Also use
5437         --allow-non-selfsigned-uid to make such a key valid and not
5438         --always-trust.  The key is *not* automatically trusted via
5439         --allow-non-selfsigned-uid.
5441         * mainproc.c (check_sig_and_print): Make sure non-selfsigned uids
5442         print [uncertain] on verification even though one is primary now.
5444         * getkey.c (merge_selfsigs): If the main key is not valid, then
5445         neither are the subkeys.
5447         * import.c (import_one): Allow --allow-non-selfsigned-uid to work
5448         on completely unsigned keys.  Print the uids in UTF8.  Remove
5449         mark_non_selfsigned_uids_valid().
5451         * keyedit.c (show_key_with_all_names): Show revocation key as
5452         UTF8.
5454         * sign.c (clearsign_file): Allow --not-dash-escaped to work with
5455         v3 keys.
5457 2002-03-14  Werner Koch  <wk@gnupg.org>
5459         * main.h: Changed the default algorithms to CAST5 and SHA1.
5461 2002-03-13  David Shaw  <dshaw@jabberwocky.com>
5463         * import.c (chk_self_sigs): Show which user ID a bad self-sig
5464         (invald sig or unsupported public key algorithm) resides on.
5466         * import.c (chk_self_sigs): any valid self-sig should mark a user
5467         ID or subkey as valid - otherwise, an attacker could DoS the user
5468         by inventing a bogus invalid self-signature.
5470 2002-03-07  David Shaw  <dshaw@jabberwocky.com>
5472         * g10.c (main): make a few more strings translatable.
5474         * options.h, options.skel, g10.c (main), gpgv.c, mainproc.c
5475         (check_sig_and_print), keyserver.c (parse_keyserver_options):
5476         --auto-key-retrieve should really be a keyserver-option variable.
5478         * import.c (revocation_present): new function to print a warning
5479         if a key is imported that has been revoked by designated revoker,
5480         but the designated revoker is not present to verify the
5481         revocation.  If keyserver-options auto-key-retrieve is set, try
5482         and fetch the designated revoker from the keyserver.
5484         * import.c (import_one): call revocation_present after importing a
5485         new key.  Note that this applies to --import, --recv-keys, and
5486         --search-keys.
5487         
5488         * keyserver-internal.h, keyserver.c (keyserver_import_fprint):
5489         import via fingerprint (for revocation keys).
5491         * keyserver.c (keyserver_import_keyid): much simpler
5492         implementation now that we're using KEYDB_SEARCH_DESC internally.
5494 2002-03-04  David Shaw  <dshaw@jabberwocky.com>
5496         * revoke.c (gen_revoke): do not prompt for revocation reason for
5497         v3 revocations (unless force-v4-certs is on) since they wouldn't
5498         be used anyway.
5500         * keyedit.c (menu_revsig): show the status of the sigs
5501         (exportable? revocable?) to the user before prompting for which
5502         sig to revoke.  Also, make sure that local signatures get local
5503         revocations.
5505         * keyedit.c (ask_revoke_sig): remind the user which sigs are
5506         local.
5508         * g10.c (main): Add "exec-path" variable to override PATH for
5509         execing programs.
5511         * export.c (do_export_stream): properly check return code from
5512         classify_user_id to catch unclassifiable keys.
5514 2002-03-03  David Shaw  <dshaw@jabberwocky.com>
5516         * parse-packet.c (parse_signature): variable type tweak for RISC
5517         OS (from Stefan)
5519 2002-02-28  David Shaw  <dshaw@jabberwocky.com>
5521         * getkey.c (check_revocation_keys): New function to check a
5522         revocation against a list of potential revocation keys.  Note the
5523         loop-breaking code here.  This is to prevent blowing up if A is
5524         B's revocation key, while B is also A's.  Note also that this is
5525         written so that a revoked revoker can still issue revocations:
5526         i.e. If A revokes B, but A is revoked, B is still revoked.  I'm
5527         not completely convinced this is the proper behavior, but it
5528         matches how PGP does it.  It does at least have the advantage of
5529         much simpler code - my first version of this had lots of loop
5530         maintaining code so you could chain revokers many levels deep and
5531         if D was revoked, C was not, which meant that B was, and so on.
5532         It was sort of scary, actually.
5534         * getkey.c (merge_selfsigs_main): Add any revocation keys onto the
5535         pk.  This is particularly interesting since we normally only get
5536         data from the most recent 1F signature, but you need multiple 1F
5537         sigs to properly handle revocation keys (PGP does it this way, and
5538         a revocation key could be marked "sensitive" and hence in a
5539         different signature).  Also, if a pk has a revocation key set,
5540         check for revocation sigs that were not made by us - if made by a
5541         valid revocation key, mark the pk revoked.
5543         * packet.h, getkey.c (cache_public_key): do not cache key if
5544         "dont_cache" is set.  This allows the revocation key code to look
5545         up a key and return information that may be inaccurate to prevent
5546         loops without caching the fake data.
5548         * packet.h, sig-check.c (do_signature_check): Record if a
5549         signature was made by a revoked pk.
5551         * packet.h, parse-packet.c (parse_one_sig_subpkt,
5552         can_handle_critical, parse_signature): Get revocation key
5553         information out of direct sigs.
5554         
5555         * keylist.c (list_keyblock_print): don't assume that the presence
5556         of a 0x20 signature means the key is revoked.  With revocation
5557         keys, this may not be true if the revocation key is not around to
5558         verify it or if verification failed.  Also, 0x1F should get listed
5559         as "sig", and not "unexpected signature class".
5561         * keyedit.c (show_key_with_all_names): Add a flag for printing
5562         revoker information and change all callers.
5564         * import.c (merge_blocks): merge in any new direct key (0x1F)
5565         sigs.
5567         * import.c (import_revoke_cert): don't keep processing after a
5568         revocation is rejected.
5569         
5570         * import.c (delete_inv_parts): Allow importing a revocation
5571         signature even if it was not issued by the key.  This allows a
5572         revocation key to issue it.  Of course, the sig still needs to be
5573         checked before we trust it.
5575         * free-packet.c (copy_public_key): Include a new copy of the
5576         revocation keys when duping a pk.
5578         * free-packet.c (free_seckey_enc, release_public_key_parts): Free
5579         any revocation keys that are attached to a sig or pk.
5581         * export.c (do_export_stream): Do not export signatures with
5582         "sensitive" revocation keys in them.
5584 2002-02-27  David Shaw  <dshaw@jabberwocky.com>
5586         * export.c (do_export_stream): Do not include v3 keys in a
5587         --export-secret-subkeys export.
5589         * getkey.c (merge_selfsigs_main): If a key isn't valid (say,
5590         because of no self-signature), allow --always-trust to force it
5591         valid so it can be trusted.
5593 2002-02-25  David Shaw  <dshaw@jabberwocky.com>
5595         * hkp.c (hkp_ask_import), hkp.h, keyserver.c (all): treat key
5596         lists internally as fingerprints when possible.  All this is via
5597         KEYDB_SEARCH_DESC - no point in reinventing the wheel. This allows
5598         the helper program to search the keyserver by fingerprint if
5599         desired (and the keyserver supports it).  Note that automatic
5600         fingerprint promotion during refresh only applies to v4 keys as a
5601         v4 fingerprint can be easily changed into a long or short key id,
5602         and a v3 cannot.
5604         * pubkey-enc.c, getkey.c, misc.c, main.h: Take two copies of
5605         hextobyte() from pubkey-enc.c and getkey.c and make them into one
5606         copy in misc.c.
5608 2002-02-22  David Shaw  <dshaw@jabberwocky.com>
5610         * keyserver.c (keyserver_search_prompt): Detect a "no keys found"
5611         case even if the helper program does not explicitly say how many
5612         keys were found.
5614         * hkp.c (parse_hkp_index): Bug fix - don't report non-revoked keys
5615         as revoked in HKP key searches.
5617 2002-02-19  Werner Koch  <wk@gnupg.org>
5619         * parse-packet.c (parse_trust): Made parsing more robust.
5621 2002-02-19  David Shaw  <dshaw@jabberwocky.com>
5623         * hkp.c (parse_hkp_index): Catch corruption in HKP index lines
5624         (can be caused by broken or malicious keyservers).
5626         * keyserver.c (keyserver_work): Add KEYSERVER_NOT_SUPPORTED for
5627         unsupported actions (say, a keyserver that has no way to search,
5628         or a readonly keyserver that has no way to add).  Also add a
5629         USE_EXTERNAL_HKP define to disable the internal HKP keyserver
5630         code.
5632 2002-02-14  Werner Koch  <wk@gnupg.org>
5634         * g10.c: New option --no-use-agent. 
5636         * pkclist.c (check_signatures_trust): Always print the warning for
5637         unknown and undefined trust.  Removed the did_add cruft.  Reported
5638         by Janusz A. Urbanowicz.
5640 2002-02-11  David Shaw  <dshaw@jabberwocky.com>
5642         * hkp.c (parse_hkp_index): Bug fix - properly handle user IDs with
5643         colons (":") in them while HKP searching.
5645 2002-02-09  David Shaw  <dshaw@jabberwocky.com>
5647         * misc.c (pct_expando): More comments.
5649         * keydb.h, sign.c (mk_notation_and_policy): Clarify what is a sig
5650         and what is a cert.  A sig has sigclass 0x00, 0x01, 0x02, or 0x40,
5651         and everything else is a cert.
5653         * g10.c (main), keyedit.c (keyedit_menu): Add a "nrlsign" for
5654         nonrevocable and local key signatures.
5656         * g10.c (main): Add a --no-force-mdc to undo --force-mdc.
5658         * options.h, g10.c (main), cipher.c (write_header): Add a knob to
5659         --disable-mdc/--no-disable-mdc.  Off by default, of course, but is
5660         used in --pgp2 and --pgp6 modes.
5661         
5662         * pkclist.c (build_pk_list): Allow specifying multiple users in
5663         the "Enter the user ID" loop.  Enter a blank line to stop.  Show
5664         each key+id as it is added.
5666         * keylist.c (show_policy_url), mainproc.c (print_notation_data):
5667         It is not illegal (though possibly silly) to have multiple policy
5668         URLs in a given signature, so print all that are present.
5669         
5670         * hkp.c (hkp_search): More efficient implementation of URL-ifying
5671         code.
5673 2002-02-04  David Shaw  <dshaw@jabberwocky.com>
5675         * main.h, misc.c (pct_expando): New function to generalize
5676         %-expando processing in any arbitrary string.
5678         * photoid.c (show_photo): Call the new pct_expando function rather
5679         than expand strings internally.
5680         
5681         * sign.c (mk_notation_and_policy): Show policy URLs and notations
5682         when making a signature if show-policy/show-notation is on.
5683         %-expand policy URLs during generation.  This lets the user have
5684         policy URLs of the form "http://notary.jabberwocky.com/keysign/%K"
5685         which will generate a per-signature policy URL.
5687         * main.h, keylist.c (show_policy_url, show_notation): Add amount
5688         to indent so the same function can be used in key listings as well
5689         as during sig generation.  Change all callers.
5691 2002-02-04  David Shaw  <dshaw@jabberwocky.com>
5693         * keyserver.c, options.h (parse_keyserver_options, keyidlist):
5694         Workaround for the pksd and OKS keyserver bug that calculates v4
5695         RSA keyids as if they were v3.  The workaround/hack is to fetch
5696         both the v4 (e.g. 99242560) and v3 (e.g. 68FDDBC7) keyids.  This
5697         only happens for key refresh while using the HKP scheme and the
5698         refresh-add-fake-v3-keyids keyserver option must be set.  This
5699         should stay off by default.
5701 2002-02-03  David Shaw  <dshaw@jabberwocky.com>
5703         * keyserver.c (keyserver_spawn): Bug fix - do not append keys to
5704         each other when --sending more than one.
5706 2002-02-02  David Shaw  <dshaw@jabberwocky.com>
5708         * options.h, g10.c (main), keyedit.c (sign_uids), sign.c
5709         (mk_notation_and_policy): Split "--set-policy-url" into
5710         "--cert-policy-url" and "--sig-policy-url" so the user can set
5711         different policies for key and data signing.  For backwards
5712         compatibility, "--set-policy-url" sets both, as before.
5714 2002-01-30  Werner Koch  <wk@gnupg.org>
5716         * g10.c (main): --gen-random --armor does now output a base64
5717         encoded string.
5719 2002-01-28  David Shaw  <dshaw@jabberwocky.com>
5721         * g10.c (main), options.h, pkclist.c (algo_available): --pgp6
5722         flag.  This is not nearly as involved as --pgp2.  In short, it
5723         turns off force_mdc, turns on no_comment, escape_from, and
5724         force_v3_sigs, and sets compression to 1.  It also restricts the
5725         user to IDEA (if present), 3DES, CAST5, MD5, SHA1, and RIPEMD160.
5726         See the comments above algo_available() for lots of discussion on
5727         why you would want to do this.
5729 2002-01-27  David Shaw  <dshaw@jabberwocky.com>
5731         * keygen.c (keygen_set_std_prefs): Comment
5733         * keyedit.c (sign_uids): Bug fix - when signing with multiple
5734         secret keys at the same time, make sure each key gets the sigclass
5735         prompt.
5737         * exec.c (exec_finish): Close the iobuf and FILE before trying to
5738         waitpid, so the remote process will get a SIGPIPE and exit.  This
5739         is only a factor when using a pipe to communicate.
5741         * exec.c (exec_write): Disable cache-on-close of the fd iobuf (is
5742         this right?  Why is a fd iobuf cached at all?)
5744 2002-01-26  Werner Koch  <wk@gnupg.org>
5746         * g10.c, options.h: New option --gpg-agent-info
5747         * passphrase.c (agent_open): Let it override the environment info.
5748         * seckey-cert.c (check_secret_key): Always try 3 times when the
5749         agent is enabled.
5750         * options.skel: Describe --use-agent.
5752 2002-01-24  David Shaw  <dshaw@jabberwocky.com>
5754         * pubkey-enc.c (is_algo_in_prefs, get_it): Only check preferences
5755         against keys with v4 self sigs - there is really little point in
5756         warning for every single non-IDEA message encrypted to an old key.
5758         * pkclist.c (select_algo_from_prefs): Only put in the fake IDEA
5759         preference if --pgp2 is on.
5761         * mainproc.c (check_sig_and_print): Print "Expired" for expired
5762         but good signatures (this still prints "BAD" for expired but bad
5763         signatures).
5765 2002-01-23  David Shaw  <dshaw@jabberwocky.com>
5767         * keygen.c (ask_keysize): Cosmetic: don't present a RSA signing
5768         key as a "keypair" which can be 768 bits long (as RSA minimum is
5769         1024).
5771         * pubkey-enc.c (is_algo_in_prefs): Allow IDEA as a fake preference
5772         for v3 keys with v3 selfsigs.
5774 2002-01-22  David Shaw  <dshaw@jabberwocky.com>
5776         * packet.h, getkey.c (merge_selfsigs_main), pkclist.c
5777         (select_algo_from_prefs): Implement the fake IDEA preference as
5778         per RFC2440:12.1.  This doesn't mean that IDEA will be used (the
5779         plugin may not be present), but it does mean that a v3 key with a
5780         v3 selfsig has an implicit IDEA preference instead of 3DES.  v3
5781         keys with v4 selfsigs use preferences as normal.
5783         * encode.c (encode_crypt): if select_algo_from_prefs fails, this
5784         means that we could not find a cipher that both keys like.  Since
5785         all v4 keys have an implicit 3DES preference, this means there is
5786         a v3 key with a v3 selfsig in the list.  Use 3DES in this case as
5787         it is the safest option (we know the v4 key can handle it, and
5788         we'll just hope the v3 key is being used in an implementation that
5789         can handle it).  If --pgp2 is on, warn the user what we're doing
5790         since it'll probably break PGP2 compatibility.
5792         * g10.c (main): Do not force using IDEA for encrypted files in
5793         --pgp2 mode - let the fake IDEA preference choose this for us for
5794         better compatibility when encrypting to multiple keys, only some
5795         of which are v3.
5797         * keygen.c (keygen_set_std_prefs): Put 3DES on the end of the
5798         default cipher pref list (RFC2440: "...it is good form to place it
5799         there explicitly.").  If the user has the IDEA plugin installed,
5800         put a preference for IDEA *after* 3DES to effectively disable its
5801         use for everything except encrypting along with v3 keys.
5803         * encode.c, g10.c, sign.c: Change the PGP2 warning line from
5804         "... will not be usable ..." to "... may not be usable ..." as the
5805         user could be using one of the enhanced PGP2 variations.
5807         * helptext.c: Revise the sign_uid.class help text as suggested by
5808         Stefan.
5809         
5810 2002-01-20  Werner Koch  <wk@gnupg.org>
5812         * passphrase.c (passphrase_to_dek): Add tryagain_text arg to be
5813         used with the agent.  Changed all callers.
5814         (agent_get_passphrase): Likewise and send it to the agent
5815         * seckey-cert.c (do_check): New arg tryagain_text.
5816         (check_secret_key): Pass the string to do_check.
5817         * keygen.c (ask_passphrase): Set the error text is required.
5818         * keyedit.c (change_passphrase): Ditto.
5820         * passphrase.c (agent_open): Disable opt.use_agent in case of a
5821         problem with the agent. 
5822         (agent_get_passphrase): Ditto.
5823         (passphrase_clear_cache): Ditto.
5825 2002-01-19  Werner Koch  <wk@gnupg.org>
5827         * passphrase.c (agent_open): Add support for the new Assuan based
5828         gpg-agent.  New arg to return the used protocol version.
5829         (agent_get_passphrase): Implemented new protocol here.
5830         (passphrase_clear_cache): Ditto.
5831         (readline): New.
5832         
5833 2002-01-15  Timo Schulz  <ts@winpt.org>
5835         * encode.c (encode_crypt_files): Fail if --output is used.
5836         
5837         * g10.c: New command --decrypt-files.
5839         * decrypt.c (decrypt_messages): New.
5840         
5841 2002-01-09  David Shaw  <dshaw@jabberwocky.com>
5843         * g10.c, misc.c, gpgv.c: move idea_cipher_warn to misc.c so gpgv.c
5844         doesn't need a stub for it any longer.
5846         * g10.c (get_temp_dir), main.h: no longer used (it's in exec.c now)
5848         * g10.c (main), delkey.c (delete_keys), main.h : Allow
5849         --delete-key (now --delete-keys, though --delete-key still works,
5850         of course) to delete multiple keys in one go.  This applies to
5851         --delete-secret-key(s) and --delete-secret-and-public-key(s) as
5852         well.
5854 2002-01-09  Timo Schulz  <ts@winpt.org>
5856         * encode.c (encode_crypt_files): Now it behaves like verify_files.
5857         
5858         * g10.c (main): We don't need to check argc for encode_crypt_files
5859         any longer.
5861 2002-01-09  Timo Schulz  <ts@winpt.org>
5863         * exec.c: Include windows.h for dosish systems.
5865 2002-01-08  Timo Schulz  <ts@winpt.org>
5867         * g10.c (main): New description for --encrypt-files.
5869 2002-01-08  Werner Koch  <wk@gnupg.org>
5871         * g10.c (main): Must register the secring for encryption because
5872         it is needed to figure out the default recipient.  Reported by
5873         Roger Sondermann.
5875 2002-01-05  David Shaw  <dshaw@jabberwocky.com>
5877         * keyedit.c (menu_adduid): Require --expert before adding a photo
5878         ID to a v3 key, and before adding a second photo ID to any key.
5880         * keyedit.c (keyedit_menu): Don't allow adding photo IDs in
5881         rfc1991 or pgp2 mode.
5883         * getkey.c (merge_selfsigs_subkey): Permit v3 subkeys.  Believe it
5884         or not, this is allowed by rfc 2440, and both PGP 6 and PGP 7 work
5885         fine with them.
5887         * g10.c, options.h, keyedit.c, sign.c: Move the "ask for
5888         expiration" switch off of --expert, which was getting quite
5889         overloaded, and onto ask-sig-expire and ask-cert-expire.  Both
5890         default to off.
5892         * g10.c (main): Change the default compression algo to 1, to be
5893         more OpenPGP compliant (PGP also uses this, so it'll help with
5894         interoperability problems as well).
5896         * encode.c (encode_crypt): Handle compression algo 2, since the
5897         default is now 1.
5899         * build-packet.c (build_attribute_subpkt): Fix off-by-one error.
5901 2002-01-05  Werner Koch  <wk@gnupg.org>
5903         * g10.c (main): Do not register the secret keyrings for certain
5904         commands.
5906         * keydb.c (keydb_add_resource): Use access to test for keyring
5907         existence.  This avoids cached opened files which are bad under
5908         RISC OS.
5910 2002-01-04  David Shaw  <dshaw@jabberwocky.com>
5912         * sign.c (sign_file, sign_symencrypt_file): always use one-pass
5913         packets unless rfc1991 is enabled.  This allows a signature made
5914         with a v3 key to work in PGP 6 and 7.  Signatures made with v4
5915         keys are unchanged.
5917         * g10.c (main): Disallow non-detached signatures in PGP2 mode.
5918         Move the "you must use files and not pipes" PGP2 warning up so all
5919         the PGP2 stuff is together.
5921         * encode.c (encode_simple): Use the actual filesize instead of
5922         partial length packets in the internal literal packet from a
5923         symmetric message.  This breaks PGP5(?), but fixes PGP2, 6, and 7.
5924         It's a decent tradeoff.  Note there was only an issue with
5925         old-style RFC1991 symmetric messages.  2440-style messages in 6
5926         and 7 work with or without partial length packets.
5928 2002-01-03  David Shaw  <dshaw@jabberwocky.com>
5930         * g10.c (main): Removed --no-default-check-level option, as it is
5931         not consistent with other "default" options.  Plus, it is the same
5932         as saying --default-check-level 0.
5934         * exec.c (exec_read): Disallow caching tempfile from child
5935         process, as this keeps the file handle open and can cause unlink
5936         problems on some platforms.
5938         * keyserver.c (keyserver_search_prompt): Minor tweak - don't
5939         bother to transform keyids into textual form if they're just going
5940         to be transformed back to numbers.
5942 2002-01-03  Timo Schulz <ts@winpt.org>
5944         * g10.c: New command --encrypt-files.
5945     
5946         * verify.c (print_file_status): Removed the static because
5947         encode_crypt_files also uses this function.
5949         * main.h (print_files_status): New.
5950         (encode_crypt_files): New.
5952         * encode.c (encode_crypt_files): New.
5954 2002-01-02  Stefan Bellon  <sbellon@sbellon.de>
5956         * keyserver.c: Moved util.h include down in order to avoid
5957         redefinition problems on RISC OS.
5959         * keyring.c (keyring_lock): Only lock keyrings that are writable.
5961         * keyring.c (keyring_update_keyblock): Close unused iobuf.
5963         * hkp.c (parse_hkp_index, hkp_search) [__riscos__]: Changed
5964         unsigned char* to char* because of compiler issues.
5966         * exec.c (exec_finish) [__riscos__]: Invalidate close cache so
5967         that file can be unlinked.
5969 2001-12-28  David Shaw  <dshaw@jabberwocky.com>
5971         * g10.c (main): Use a different strlist to check extensions since
5972         they need to be handled seperately now.
5974         * misc.c,main.h (check_permissions): Properly handle permission
5975         and ownership checks on files in the lib directory
5976         (e.g. /usr/local/lib/gnupg), which are owned by root and are
5977         world-readable, and change all callers to specify extension or
5978         per-user file.
5980         * photoid.c (show_photo), keyserver.c (keyserver_spawn): Bug fix -
5981         don't call exec_finish if exec_write fails.
5983         * keyserver.c (keyserver_spawn): Look for OPTIONS from the
5984         keyserver helper - specifically, a "OUTOFBAND" option for the
5985         email keyserver.
5987         * mainproc.c (list_node), keylist.c (list_keyblock_colon),
5988         import.c (delete_inv_parts), export.c (do_export_stream): Use
5989         signature flags for exportability check rather than re-parsing the
5990         subpacket.
5992         * keyid.c, keydb.h (get_lsign_letter): No longer needed.
5994 2001-12-27  David Shaw  <dshaw@jabberwocky.com>
5996         * exec.c (exec_finish): Show errors when temp files cannot be
5997         deleted for whatever reason.
5999         * exec.c (exec_read): Don't rely on WEXITSTATUS being present.
6001         * exec.c (make_tempdir): Add temp file creator for win32.  Don't
6002         create an incoming temp file if the exec is write-only.
6004         * keyserver.c (keyserver_spawn): Clean up error handling, for when
6005         the spawn fails.
6007         * photoid.c (show_photo): Clean up error handling.
6009         * misc.c (check_permissions): Neaten.
6011 2001-12-25  David Shaw  <dshaw@jabberwocky.com>
6013         * mkdtemp.c (mkdtemp): Add copyleft info and tweak the 'X' counter
6014         to be a bit simpler.
6016         * keyserver.c, photoid.c: Remove unused headers left over from
6017         when the exec functions lived there.
6019 2001-12-23  Timo Schulz <ts@winpt.org>
6021         * misc.c (check_permissions): Do not use it for W32 systems.
6023         * tdbio.c (migrate_from_v2): Define ftruncate as chsize() for W32.
6025         * mkdtemp.c: W32 support.
6027         * photoid.c: Ditto.
6029         * exec.c: Ditto.
6031 2001-12-22  David Shaw  <dshaw@jabberwocky.com>
6033         * exec.c (make_tempdir): avoid compiler warning with const
6035         * mkdtemp.c (mkdtemp): catch the empty ("") string case in case
6036         someone repurposes mkdtemp at some point.
6038         * photoid.c (generate_photo_id, show_photo): some type changes
6039         from Stefan Bellon.
6041         * exec.c (make_tempdir): handle Win32 systems, suggested by Timo
6042         Schulz.
6044 2001-12-22  Werner Koch  <wk@gnupg.org>
6046         * encode.c (encode_simple, encode_crypt): i18n 2 strings.
6048 2001-12-22  Timo Schulz <ts@winpt.org>
6049         
6050         * encode.c (encode_simple, encode_crypt): Use is_file_compressed
6051         to avoid to compress compressed files.
6053 2001-12-22  Werner Koch  <wk@gnupg.org>
6055         * keyserver.c (keyserver_spawn): Removed some variables
6056         declaration due to shadowing warnings.
6058         * build-packet.c (build_attribute_subpkt): s/index/idx/ to avoid
6059         compiler warnig due to index(3).
6061         * getkey.c (get_ctx_handle): Use KEYDB_HANDLE as return value.
6062         * keylist.c (list_one): Made resname const.
6064         * keyedit.c (keyedit_menu): Allow "addphoto" only when --openpgp is
6065         not used.
6067         * options.skel: Changed one example photo viewer to qiv.
6069 2001-12-21  David Shaw  <dshaw@jabberwocky.com>
6071         * Makefile.am: add exec.c, exec.h, photoid.c, and photoid.h
6073         * build-packet.c (build_attribute_subpkt): new function to build
6074         the raw attribute subpacket.  Note that attribute subpackets have
6075         the same format as signature subpackets.
6077         * exec.c: new file with generic exec-a-program functionality.
6078         Used by both photo IDs and keyserver helpers.  This is pretty much
6079         the same code that used to be keyserver specific, with some
6080         changes to be usable generically.
6082         * free-packet.c (free_attributes (new)): function to free an
6083         attribute packet.
6084         
6085         * gpgv.c: added stub show_photo
6086         
6087         * keyedit.c (keyedit_menu, menu_adduid, menu_showphoto): can add a
6088         photo (calls generate_photo_id), or display a photo (calls
6089         show_photo) from the --edit menu.  New commands are "addphoto",
6090         and "delphoto" (same as "deluid").
6092         * keylist.c (list_keyblock_print): show photos during key list if
6093         --show-photos enabled.
6094         
6095         * keyserver.c (keyserver_spawn): use the generic exec_xxx
6096         functions to call keyserver helper.
6098         * g10.c, options.h: three new options - --{no-}show-photos, and
6099         --photo-viewer to give the command line to display a picture.
6101         * options.skel: instructions for the photo viewer
6102         
6103         * parse-packet.c (parse_user_id, setup_user_id (new)): common code
6104         for both user IDs and attribute IDs moved to setup_user_id.
6106         * parse-packet.c (make_attribute_uidname (new)): constructs a fake
6107         "name" for attribute packets (e.g. "[image of size ...]")
6109         * parse-packet.c (parse_attribute (replaces parse_photo_id),
6110         parse_attribute_subpkts): Builds an array of individual
6111         attributes.  Currently only handles attribute image / type jpeg
6112         subpackets.
6114         * sign.c (hash_uid): Fix bug in signing attribute (formerly
6115         photo_id) packets.
6117         * packet.h, and callers: globally change "photo_id" to "attribute"
6118         and add structures for attributes.  The packet format is generic
6119         attributes, even though the only attribute type thus far defined
6120         is jpeg.
6122 2001-12-21  David Shaw  <dshaw@jabberwocky.com>
6124         * parse-packet.c (can_handle_critical): Can handle critical
6125         revocation subpackets now.
6127         * trustdb.c (mark_usable_uid_certs): Disregard revocations for
6128         nonrevocable sigs.  Note that this allows a newer revocable
6129         signature to override an older nonrevocable signature.
6131         * sign.c (make_keysig_packet): add a duration field and change all
6132         callers.  This makes make_keysig_packet closer to
6133         write_signature_packets and removes some duplicated expiration
6134         code.
6136         * keyedit.c (keyedit_menu, menu_revsig, sign_uids,
6137         sign_mk_attrib): Add nrsign command, don't allow revoking a
6138         nonrevocable signature,
6140         * g10.c (main): Add --nrsign option to nonrevocably sign a key
6141         from the command line.
6143         * build-packet.c (build_sig_subpkt_from_sig): Comment to explain
6144         the use of CRITICAL.
6146 2001-12-21  Werner Koch  <wk@gnupg.org>
6148         * g10.c. options.h : New option --show-keyring
6149         * getkey.c (get_ctx_handle): New.
6150         * keylist.c (list_one): Implement option here.  By David Champion. 
6152 2001-12-20  David Shaw  <dshaw@jabberwocky.com>
6154         * keyserver.c (keyserver_spawn): Use mkdtemp() to make temp
6155         directory.
6157         * mkdtemp.c: replacement function for those platforms that don't
6158         have mkdtemp (make a temp directory securely).
6160 2001-12-19  David Shaw  <dshaw@jabberwocky.com>
6162         * misc.c (check_permissions): New function to stat() and ensure
6163         the permissions of GNUPGHOME and the files have safe permissions.
6165         * keydb.c (keydb_add_resource): Check keyring permissions.
6167         * tdbio.c (tdbio_set_dbname): Check permissions of trustdb.gpg
6169         * keyserver.c (keyserver_spawn): Disable keyserver schemes that
6170         involve running external programs if the options file has unsafe
6171         permissions or ownership.
6173         * g10.c, options.h: New option --no-permission-warning to disable
6174         the permission warning message(s).  This also permits use of the
6175         keyserver if it had been disabled (see above).  Also check the
6176         permissions/ownership of random_seed.
6177         
6178         * keyserver.c (keyserver_spawn): The new glibc prints a warning
6179         when using mktemp() (the code was already secure, but the warning
6180         was bound to cause confusion).  Use a different implementation
6181         based on get_random_bits() instead.  Also try a few times to get
6182         the temp dir before giving up.
6184 2001-12-19  Werner Koch  <wk@gnupg.org>
6186         * g10.c, passphrase.c [CYGWIN32]: Allow this as an alias for MINGW32.
6188 2001-12-18  David Shaw  <dshaw@jabberwocky.com>
6190         * g10.c (idea_cipher_warn): Add a flag to show the warning always
6191         or once per session and change all callers (show always except for
6192         the secret key protection and unknown cipher from an encrypted
6193         message errors).  Also make the strings translatable.
6195         * pubkey-enc.c (get_it): Add the IDEA cipher warning if the user
6196         tries to decrypt an IDEA encrypted message without the IDEA
6197         plugin.
6199         * keyserver.c (parse_keyserver_uri): More strict checking of the
6200         keyserver URI.  Specifically, fail if the ":port" section is
6201         anything except a number between 1 and 65535.
6203 2001-12-17  David Shaw  <dshaw@jabberwocky.com>
6205         * keyserver.c (print_keyinfo): No need to check for
6206         control/illegal characters, as utf8_to_native does this for us.
6208         * mainproc.c (proc_encrypted): Use generic IDEA warning.
6210         * gpgv.c: add stub for idea_cipher_warn
6212         * g10.c, hkp.c, keyserver.c: Fix capitalization and plural issues.
6214         * encode.c (encode_crypt), sign.c (sign_file, clearsign_file):
6215         disable pgp2 mode after the message is no longer pgp2 compatible.
6217         * g10.c (main): Tweak the PGP2.x IDEA warning to use the generic
6218         warning, and not merely fail if the IDEA plugin isn't there.
6220         * g10.c (main, idea_cipher_warn), keygen.c (set_one_pref),
6221         seckey-cert.c (do_check): Add a generic IDEA warning for when the
6222         IDEA plugin is not present.  This pops up when the user uses
6223         "--cipher-algo idea", when setpref is used to set a "S1"
6224         preference, and when a secret key protected with IDEA is used.
6226 2001-12-15  Werner Koch  <wk@gnupg.org>
6228         * keyserver.c (keyserver_spawn): Assert that we have dropped privs.
6230 2001-12-13  Werner Koch  <wk@gnupg.org>
6232         * pubkey-enc.c (get_session_key): Check that the public key
6233         algorithm is indeed usable for en/decryption.  This avoid a
6234         strange error message from pubkey_decrypt if for some reasons a
6235         bad algorithm indentifier is passed.
6237 2001-12-12  David Shaw  <dshaw@jabberwocky.com>
6239         * Fixed some types for portability.  Noted by Stefan Bellon.
6241 2001-12-11  Werner Koch  <wk@gnupg.org>
6243         * hkp.c (hkp_export): Do not print possible control characters
6244         from a keyserver response.
6245         (parse_hkp_index): Made uid an unsigned char* because it is passed to
6246         isspace().
6247         (hkp_search): Ditto for the char* vars.
6249         * g10.c (main): Print the IDEA warning also for -c and -se.
6250         
6251         * g10.c (get_temp_dir): Assert that we have dropped privs
6253         * encode.c (encode_crypt): Include the first key into the --pgp2
6254         check.
6256 2001-12-07  David Shaw  <dshaw@jabberwocky.com>
6258         * g10.c, options.h: New option --pgp2.  This is identical to
6259         "--rfc1991 --cipher-algo idea --compress-algo 1 --digest-algo md5
6260         --force_v3_sigs" with the addition of an warning to advise the
6261         user not to use a pipe (which would break pgp2 compatibility).
6263         * encode.c (encode_crypt): warn if the user tries to encrypt to
6264         any key that is not RSA and <= 2048 bits when the --pgp2 option is
6265         used.
6267         * sign.c (sign_file, clearsign_file): When using --pgp2, make a v3
6268         sig, and warn if the signature is made with a non-v3 key.
6270 2001-12-05  David Shaw  <dshaw@jabberwocky.com>
6272         * sign.c (sign_file, clearsign_file, sign_symencrypt_file): Prompt
6273         for sig expiration if --expert is set and --force-v3-sigs is not
6274         set (v3 sigs cannot expire).
6276         * mainproc.c (check_sig_and_print): After checking a sig, print
6277         expiration status.  This causes a error return if the sig is
6278         expired.
6280         * build-packet.c (build_sig_subpkt_from_sig): Include a critical
6281         sig expiration subpacket if the sig is to expire.
6283         * keyedit.c (sign_uids): Do not sign an expired key unless
6284         --expert is set, in which case prompt.  Also, offer to expire a
6285         signature when the key the user is signing expires.
6287         * keygen.c (ask_expire_interval): Add a value to determine whether
6288         to prompt for a key or sig expiration and change all callers.
6290         * keyid.c: New functions: expirestr_from_sig and
6291         colon_expirestr_from_sig.
6293         * keylist.c (list_keyblock_colon): Show sig expiration date in the
6294         --with-colons listing.
6296         * sign.c (make_keysig_packet, write_signature_packets): Pass in an
6297         optional timestamp for the signature packet, and change all
6298         callers.
6300         * keyedit.c (sign_mk_attrib): Include a critical expiration
6301         subpacket in the signature if an expiration date is given.
6303 2001-12-04  David Shaw  <dshaw@jabberwocky.com>
6305         * keyedit.c (sign_uids): If the user tries to sign a
6306         locally-signed key, allow the cert to be promoted to a full
6307         exportable signature.  This essentially deletes the old
6308         non-exportable sig, and replaces it with a new exportable one.
6310 2001-12-04  David Shaw  <dshaw@jabberwocky.com>
6312         * keyedit.c (keyedit_menu): Do not allow signing a revoked key
6313         unless --expert is set, and ask even then.
6315         * keyedit.c (sign_uids): Do not allow signing a revoked UID unless
6316         --expert is set, and ask even then.
6318         * g10.c, options.h : New option --expert
6320 2001-11-16  David Shaw  <dshaw@jabberwocky.com>
6322         * Allow the user to select no compression via "--compress-algo 0"
6323         on the command line.
6325         * keyedit.c (show_prefs): Show compression preferences in the
6326         long-form "showpref" style.
6328         * keygen.c (set_one_pref): Permit setting a no-compression ("Z0")
6329         preference.
6331         * getkey.c (fixup_uidnode): Fix compression preference corruption
6332         bug.
6334 2001-12-02  David Shaw  <dshaw@jabberwocky.com>
6336         * g10.c: Add advisory --for-your-eyes-only option as per section
6337         5.9 of 2440.
6339 2001-12-05  David Shaw  <dshaw@jabberwocky.com>
6341         * Force a V4 sig if the user has a notation or policy URL set.
6343 2001-12-04  David Shaw  <dshaw@jabberwocky.com>
6345         * g10.c: Add options --keyserver-options, --temp-directory, and
6346         auto-key-retrieve (the opposite of no-auto-key-retrieve).
6348         * hkp.c (hkp_search): New function to handle searching a HKP
6349         keyserver for a key
6351         * hkp.c (hkp_ask_import, hkp_export): Pretty large changes to make
6352         them communicate via the generic functions in keyserver.c
6354         * keyserver.c: new file with generic keyserver routines for
6355         getting keys from a keyserver, sending keys to a keyserver, and
6356         searching for keys on a keyserver.  Calls the internal HKP stuff
6357         in hkp.c for HKP keyserver functions.  Other calls are handled by
6358         an external program which is spawned and written to and read from
6359         via pipes.  Platforms that don't have pipes use temp files.
6361 2001-11-20  David Shaw  <dshaw@jabberwocky.com>
6363         * options.h, g10.c: New options show-notation, no-show-notation,
6364         default-check-level, no-default-check-level, show-policy-url,
6365         no-show-policy-url.
6367         * packet.h, sign.c (make_keysig_packet), parse-packet.c
6368         (parse_signature), free-packet.c (free_seckey_enc): Fill in
6369         structures for notation, policy, sig class, exportability, etc.
6371         * keyedit.c, keylist.c (print_and_check_one_sig,
6372         list_keyblock_print): Show flags in signature display for cert
6373         details (class, local, notation, policy, revocable).  If selected,
6374         show the notation and policy url.
6376         * keyedit.c (sign_uids): Prompt for and use different key sig
6377         classes.
6379         * helptext.c (helptexts): Add help text to explain different
6380         key signature classes
6382 2001-11-26  David Shaw  <dshaw@jabberwocky.com>
6384         * trustdb.c (mark_usable_uid_certs): Fix segfault from bad
6385         initialization and fix reversed key signature expiration check.
6387 2001-11-09  Werner Koch  <wk@gnupg.org>
6389         * export.c (do_export_stream): Put all given names into a search
6390         description and change the loop so that all matching names are
6391         returned.
6393 2001-11-08  Werner Koch  <wk@gnupg.org>
6395         * pubkey-enc.c (get_it): To reduce the number of questions on the
6396         MLs print the the name of cipher algorithm 1 with the error message.
6398         * mainproc.c: Changed the way old rfc1991 encryption cipher is
6399         selected. Based on a patch by W Lewis.
6401         * pkclist.c (do_edit_ownertrust): Allow to skip over keys, the non
6402         working "show info" is now assigned to "i" 
6403         * trustdb.c (ask_ownertrust, validate_keys): Implement a real quit
6404         here.  Both are by David Shaw.
6405         
6406         * trustdb.c (validate_keys): Make sure next_exipire is initialized.
6408         * sign.c (make_keysig_packet): Use SHA-1 with v4 RSA keys.
6410         * g10.c, options.h : New option --[no-]froce-v4-certs.
6411         * sign.c (make_keysig_packet): Create v4 sigs on v4 keys even with
6412         a v3 key.  Use that new option.  By David Shaw
6414         * revoke.c (ask_revocation_reason): Allow to select "no reason".
6415         By David Shaw.
6417         * keyid.c (fingerprint_from_sk): Calculation of an v3 fpr was
6418         plain wrong - nearly the same code in fingerprint_from_pk is correct.
6420         * build-packet.c (do_secret_key): Added a few comments to the code.
6422 2001-11-07  Werner Koch  <wk@gnupg.org>
6424         * g10.c (main): Print a warning when -r is used w/o encryption.
6425         Suggested by Pascal Scheffers.
6427 2001-10-23  Werner Koch  <wk@gnupg.org>
6429         * keyedit.c (keyedit_menu): Changed helptext for showpref
6430         command.  Suggested by Reinhard Wobst.
6432         * keyring.c (keyring_search): When marking the offtbl ready, take
6433         into account that we may have more than one keyring.
6435 2001-10-22  Werner Koch  <wk@gnupg.org>
6437         * Makefile.am: Do not use OMIT_DEPENDENCIES
6439         * build-packet.c (build_sig_subpkt): Default is now to put all
6440         types of subpackets into the hashed area and only list those which
6441         should go into the unhashed area.
6443 2001-10-18  Werner Koch  <wk@gnupg.org>
6445         * keydb.c (keydb_add_resource): Rearranged the way we keep track
6446         of the resource. There will now be an entry for each keyring here
6447         and not in keyring.c itself.  Store a token to allow creation of a
6448         keyring handle.  Changed all functions to utilize this new design.
6449         (keydb_locate_writable): Make a real implementation.
6450         * keyring.c (next_kr): Removed and changed all callers to set the
6451         resource directly from the one given with the handle.
6452         (keyring_is_writable): New. 
6453         (keyring_rebuild_cache): Add an arg to pass the token from keydb.
6455 2001-10-17  Werner Koch  <wk@gnupg.org>
6457         * keyring.c (keyring_search): Enabled word search mode but print a
6458         warning that it is buggy.
6459         
6460 2001-10-11  Werner Koch  <wk@gnupg.org>
6462         * hkp.c (hkp_ask_import): No more need to set the port number for
6463         the x-hkp scheme. 
6464         (hkp_export): Ditto.
6466 2001-10-06  Stefan Bellon  <sbellon@sbellon.de>
6468         * passphrase.c [__riscos__]: Disabled agent specific stuff.
6469         * g10.c: New option --no-force-v3-sigs.
6471 2001-10-04  Werner Koch  <wk@gnupg.org>
6473         * export.c (do_export_stream): Do not push the compress filter
6474         here because the context would run out of scope due to the
6475         iobuf_close done by the caller.
6476         (do_export): Do it here instead. 
6478 2001-09-28  Werner Koch  <wk@gnupg.org>
6480         * keyedit.c (sign_uids): Always use the primary key to sign keys.
6481         * getkey.c (finish_lookup): Hack to return only the primary key if
6482         a certification key has been requested.
6484         * trustdb.c (cmp_kid_for_make_key_array): Renamed to
6485         (validate_one_keyblock): this and changed arg for direct calling.
6486         (make_key_array): Renamed to
6487         (validate_one_keyblock): this and changed args for direct calling.
6488         (mark_usable_uid_certs, validate_one_keyblock)
6489         (validate_key_list): Add next_expire arg to keep track of
6490         expiration times.  
6491         (validate_keys): Ditto for UTKs and write the stamp.
6493         * tdbio.c (migrate_from_v2): Check return code of tbdio_sync.
6495         * tdbdump.c (import_ownertrust): Do a tdbio_sync().
6497         * keyring.c: Made the offtbl an global object.
6499 2001-09-27  Werner Koch  <wk@gnupg.org>
6501         * pkclist.c (do_edit_ownertrust): Allow settin of ultimate trust.
6503         * trustdb.c (mark_keyblock_seen): New.
6504         (make_key_array): Use it to mark the subkeys too.
6505         (validate_keys): Store validity for ultimatly trusted keys.
6507 2001-09-26  Werner Koch  <wk@gnupg.org>
6509         * pkclist.c (check_signatures_trust, do_we_trust): Removed the
6510         invocation of add_ownertrust. Minor changes to the wording.
6511         (add_ownertrust, add_ownertrust_cb): Removed.
6513         * trustdb.c (get_validity): Allow to lookup the validity using a
6514         subkey.
6516         * trustdb.c (new_key_hash_table): Increased the table size to 1024
6517         and changed the masks accordingly.
6518         (validate): Changed stats printing.
6519         (mark_usable_uid_certs): New.
6520         (cmp_kid_for_make_key_array): Does now check the signatures and
6521         figures out a usable one.
6523 2001-09-25  Werner Koch  <wk@gnupg.org>
6525         * keyring.c (new_offset_item,release_offset_items)
6526         (new_offset_hash_table, lookup_offset_hash_table)
6527         (update_offset_hash_table, update_offset_hash_table_from_kb): New.
6528         (keyring_search): Use a offset table to optimize search for
6529         unknown keys.
6530         (keyring_update_keyblock, keyring_insert_keyblock): Insert new
6531         offsets.
6532         * getkey.c (MAX_UNK_CACHE_ENTRIES): Removed the unknown keys
6533         caching code.
6535         * g10.c, options.h, import.c: Removed the entire
6536         allow-secret-key-import stuff because the validity is now
6537         controlled by other means.
6539         * g10.c: New command --rebuild-keydb-caches.
6540         * keydb.c (keydb_rebuild_caches): New.
6541         * keyring.c (do_copy): Moved some code to
6542         (create_tmp_file, rename_tmp_file, write_keyblock): new functions.
6543         (keyring_rebuild_cache): New.
6545         * packet.h (PKT_ring_trust): Add sigcache field.
6546         * parse-packet.c (parse_trust): Parse sigcache.
6547         * keyring.c (do_copy): Always insert a sigcache packet.
6548         (keyring_get_keyblock): Copy the sigcache packet to the signature.
6549         * sig-check.c (cache_sig_result): Renamed from
6550         cache_selfsig_result. Changed implementation to use the flag bits
6551         and changed all callers.
6552         (mdc_kludge_check): Removed this unused code.
6553         (do_check): Do not set the sig flags here.
6555         * import.c (read_block): Make sure that ring_trust packets are
6556         never imported.
6557         * export.c (do_export_stream): and never export them.
6559         * trustdb.c (make_key_array): Skip revoked and expired keys.
6561 2001-09-24  Werner Koch  <wk@gnupg.org>
6563         * g10.c, options.h: New option --no-auto-check-trustdb.
6565         * keygen.c (do_generate_keypair): Set newly created keys to
6566         ultimately trusted.
6568         * tdbio.h, tdbio.c: Removed all support for records DIR, KEY, UID,
6569         PREF, SIG, SDIR and CACH. Changed migration function to work
6570         direct on the file.
6571         (tdbio_read_nextcheck): New.
6572         (tdbio_write_nextcheck): New. 
6574 2001-09-21  Werner Koch  <wk@gnupg.org>
6576         Revamped the entire key validation system.
6577         * trustdb.c: Complete rewrite. No more validation on demand,
6578         removed some functions, adjusted to all callers to use the new 
6579         and much simpler interface. Does not use the LID anymore.
6580         * tdbio.c, tdbio.h: Add new record types trust and valid. Wrote a
6581         migration function to convert to the new trustdb layout.
6582         * getkey.c (classify_user_id2): Do not allow the use of the "#"
6583         prefix. 
6584         * keydb.h: Removed the TDBIDX mode add a skipfnc to the
6585         descriptor.
6586         * keyring.c (keyring_search): Implemented skipfnc.
6588         * passphrase.c (agent_open): Add missing bracket.  Include windows.h.
6590 2001-09-19  Werner Koch  <wk@gnupg.org>
6592         * keylist.c (print_fingerprint): Renamed from fingerprint, made
6593         global available. Added new arg to control the print style.
6594         * mainproc.c (print_fingerprint): Removed. 
6595         * pkclist.c (print_fpr, fpr_info): Removed and changed callers to
6596         use print_fingerprint.
6597         * keyedit.c (show_fingerprint): Ditto.
6599         * passphrase.c (writen, readn)
6600         (agent_open, agent_close)
6601         (agent_get_passphrase)
6602         (passphrase_clear_cache): Support for W32.  Contributed by Timo.
6604         * import.c (import_one): Release keydb handles at 2 more places.
6606         * keyring.c (keyring_release): Close the iobuf.
6607         (keyring_get_keyblock): Init ret_kb to NULL and store error contidion.
6609         * import.c (import_new_stats_handle): New. 
6610         (import_release_stats_handle): New.
6611         (import_print_stats): Renamed from static fnc print_stats.
6612         (import_keys, import_keys_stream): Add an optional status handle
6613         arg and changed all callers.
6614         * hkp.c (hkp_ask_import): Add an stats_handle arg and changed all
6615         callers.
6617         * mainproc.c (print_pkenc_list): Use print_utf8_string2().
6619 2001-09-18  Werner Koch  <wk@gnupg.org>
6621         * g10.c: New command --refresh-keys.
6622         * hkp.c (hkp_refresh_keys): New. Contributed by Timo Schulz.
6624         * parse-packet.c (parse): Stop on impossible packet lengths.
6626 2001-09-17  Werner Koch  <wk@gnupg.org>
6628         * mainproc.c (print_notation_data): Wrap notation data status lines
6629         after 50 chars.
6630         
6631         * mainproc.c (proc_pubkey_enc): Make option try-all-secrets work.
6632         By disastry@saiknes.lv.
6634 2001-09-14  Werner Koch  <wk@gnupg.org>
6636         * parse-packet.c (dump_sig_subpkt): List key server preferences
6637         and show the revocable flag correctly. Contributed by David Shaw.
6639 2001-09-09  Werner Koch  <wk@gnupg.org>
6641         * keyedit.c (keyedit_menu): No need to define another p.
6643         * keylist.c (print_capabilities): s/used/use/ so that it
6644         does not shadow a global.
6645         * sign.c (sign_file): Renamed arg encrypt to encryptflag
6646         * keygen.c: Replaced all "usage" by "use".
6647         * misc.c (openpgp_pk_algo_usage): Ditto.
6649         * pubkey-enc.c (get_it): Renamed arg k to enc so that the later
6650         defined k does not shadow it.
6652         * parse-packet.c (parse_gpg_control): No need to define another i.
6654         * getkey.c (get_pubkey_byfprint): Must use the enum values and not
6655         the fprint_len.
6656         * keyring.c (keyring_search): Removed a non-sense break.  Both
6657         bugs pointed out by Stefan.
6659 2001-09-07  Werner Koch  <wk@gnupg.org>
6661         * status.c, status.h: Added NO_RECP and ALREADY_SIGNED.
6662         * pkclist.c (build_pk_list): Issue NO_RECP.
6663         * keyedit.c (sign_uids): Added experimental ALREADY_SIGNED
6665         * hkp.c (hkp_import): Use log_error. Bug reported by Neal H
6666         Walfield. 
6668         * getkey.c (classify_user_id2): Change args to take the desc union
6669         direct.  It was a stupid idea to pass the individual fields of an
6670         union to this function. Changed all callers.
6671         (classify_user_id): Ditto and allow to pass NULL as the description.
6673 2001-09-06  Werner Koch  <wk@gnupg.org>
6675         * getkey.c (fixup_uidnode): Features flag is now a bit vector.
6676         * keygen.c (add_feature_mdc): Ditto.
6678         Revamped the entire key I/O code to be prepared for other ways of
6679         key storages and to get rid of the existing shit.  GDBM support has
6680         gone.
6681         * keydb.c: New
6682         * keyring.c, keyring.h: New.
6683         * ringedit.c: Removed.  Moved some stuff to keyring.c
6684         * getkey.c: Changed everything related to the key retrieving
6685         functions which are now using the keydb_ functions.  
6686         (prepare_search, word_match_chars, word_match)
6687         (prepare_word_match, compare_name): Moved to keyring.c
6688         (get_pubkey_byname): Removed ctx arg and add ret_kdbhd
6689         arg.  Changed all callers.
6690         (key_byname): Use get_pubkey_end to release the context and take
6691         new ret_kbdhd arg.  Changed all callers.
6692         (classify_user_id2): Fill the 16 byte fingerprint up with 4 null
6693         bytes not with zero bytes of value 4, tsss.
6694         * import.c (import_one): Updated to use the new keydb interface.
6695         (import_secret_one): Ditto.
6696         (import_revoke_cert): Ditto.
6697         * delkey.c (do_delete_key): Ditto. 
6698         * keyedit.c (keyedit_menu): Ditto.
6699         (get_keyblock_byname): Removed.
6700         * revoke.c (gen_revoke): Ditto. 
6701         * export.c (do_export_stream): Ditto.
6702         * trustdb.c (update_trustdb): Ditto.
6703         * g10.c, gpgv.c (main): Renamed add_keyblock_resource to
6704         keydb_add_resource. 
6705         * Makefile.am:  Added and removed files.
6707         * keydb.h: Moved KBNODE typedef and MAX_FINGERPRINT_LEN to
6708         * global.h: this new header.
6709         
6710 2001-09-03  Werner Koch  <wk@gnupg.org>
6712         * passphrase.c (agent_get_passphrase): Changed nread to size_t.
6713         (passphrase_clear_cache): Ditto.
6715         * keyid.c (mk_datestr): Avoid trigraphs.
6716         (fingerprint_from_pk): Cache the keyid in the pk.
6718         * options.h: Add opt.with_fingerprint so that we know whether the
6719         corresponding options was used.
6720         * g10.c (main): Set it here.
6721         * pkclist.c (check_signatures_trust): Always print fingerprint
6722         when this option is used.  Mixed a minor memory leak.
6724         * status.c, status.h: New status INV_RECP.
6725         * pkclist.c (build_pk_list): Issue this status.
6727 2001-08-31  Werner Koch  <wk@gnupg.org>
6729         * parse-packet.c (parse_key,parse_pubkeyenc)
6730         (parse_signature): Return error on reading bad MPIs.
6731         
6732         * mainproc.c (check_sig_and_print): Always print the user ID even
6733         if it is not bound by a signature.  Use the primary UID in the
6734         status messages and encode them in UTF-8
6735         * status.c (write_status_text_and_buffer): New.
6737 2001-08-30  Werner Koch  <wk@gnupg.org>
6739         * packet.h (sigsubpkttype_t): Add SIGSUBPKT_FEATURES.
6740         (PKT_public_key, PKT_user_id): Add a flag for it.
6741         * parse-packet.c, build-packet.c: Add support for them.
6742         * getkey.c (fixup_uidnode, merge_selfsigs): Set the MDC flags.
6743         * keygen.c (add_feature_mdc): New.
6744         (keygen_upd_std_prefs): Always set the MDC feature.
6745         * keyedit.c (show_prefs): List the MDC flag
6746         * pkclist.c (select_mdc_from_pklist): New.
6747         * encode.c (encode_crypt, encrypt_filter): Test whether MDC
6748         should be used.
6749         * cipher.c (write_header): Set MDC use depending on the above test.
6750         Print more status info.
6752         * delkey.c (do_delete_key): Kludge to delete a secret key with no
6753         public key available.
6755         * ringedit.c (find_secret_keyblock_direct): New.
6756         * getkey.c (seckey_available): Simplified.
6758         * ringedit.c (cmp_seckey): Now compares the secret key against the
6759         public key while ignoring all secret parts.
6760         (keyring_search): Use a public key packet as arg.  Allow to search
6761         for subnkeys
6762         (search): Likewise. Changed all callers.
6763         (find_secret_keyblock_bypk): New.
6764         (find_secret_keyblock_byname): First locate the pubkey and then
6765         find the correponding secret key.
6766         * parse-packet.c (parse): Renamed pkttype arg to onlykeypkts and
6767         changed code accordingly.  Changed all callers.
6768         (search_packet): Removed pkttype arg.
6769         * keyedit.c (keyedit_menu): First locate the public key and then
6770         try to locate a secret key.
6772         * ringedit.c (locate_keyblock_by_fpr): Removed.
6773         (locate_keyblock_by_keyid): Removed.
6774         (find_keyblock_bysk): Removed.
6776         * sig-check.c (check_key_signature2): Print the keyid along with
6777         the wrong sig class errors.
6779 2001-08-24  Werner Koch  <wk@gnupg.org>
6781         * sign.c (sign_file): Stripped the disabled comment packet code.
6782         (sign_file, sign_symencrypt_file): Moved common code to ..
6783         (write_onepass_sig_packets): .. this new function.
6784         (sign_file, clearsign_file, sign_symencrypt_file): Moved common
6785         code to 
6786         (write_signature_packets): this new function.
6787         (write_signature_packets, make_keysig_packet)
6788         (update_keysig_packet): Moved common code to 
6789         (hash_uid, hash_sigclass_to_magic): these new functions
6790         (sign_file, sign_symencrypt_file): Moved common code to 
6791         (write_plaintext_packet):  this new function.
6793 2001-08-21  Stefan Bellon  <sbellon@sbellon.de>
6795         * trustdb.c (query_trust_info): Changed trustlevel to signed int.
6796         * g10.c [__riscos__]: Fixed handling of --use-agent --lock-multiple.
6798 2001-08-20  Werner Koch  <wk@gnupg.org>
6800         * encr-data.c (decrypt_data): Keep track on whether we already
6801         printed information about the used algorithm.
6802         * mainproc.c (proc_encrypted): Removed the non-working IDEA hack
6803         and print a message about the assumed algorithm.
6804         * passphrase.c (passphrase_to_dek): Use the same algorithm as above.
6805         (proc_symkey_enc): Print the algorithm, so that the user knows it
6806         before entering the passphrase.
6807         (proc_pubkey_enc, proc_pubkey_enc): Zero the DEK out.
6808         * encode.c (encode_crypt, encrypt_filter): Ditto.
6810         * g10.c: Allow for --sign --symmetric.
6811         * sign.c (sign_and_symencrypt): New.
6813         Applied patches from Stefan Bellon <sbellon@sbellon.de> to support
6814         RISC OS.  Nearly all of these patches are identified by the
6815         __riscos__ macro.
6816         * compress.c: Added a couple of casts.
6817         * g10.c [__riscos__]: Some patches and new options foo-file similar
6818         to all foo-fd options.
6819         * gpgv.c, openfile.c, ringedit.c, tdbio.c: Minor fixes.  Mainly
6820         replaced hardcoded path separators with EXTSEP_S like macros.  
6821         * passprase.c [__riscos__]: Disabled agent stuff
6822         * trustdb.c (check_trust): Changed r_trustlevel to signed int to
6823         avoid mismatch problems in pkclist.c
6824         * pkclist.c (add_ownertrust): Ditto.
6825         * plaintext.c (handle_plaintext) [__riscos__]: Print a note when
6826         file can't be created.
6827         * options.h [__riscos__]: Use an extern unless included from the
6828         main module.
6829         * signal.c (got_fatal_signal) [__riscos__]: Close all files.
6830         
6831 2001-08-14  Werner Koch  <wk@gnupg.org>
6833         * keygen.c (ask_algo): New arg r_usage.  Allow for RSA keys.
6834         (gen_rsa): Enabled the code.
6835         (do_create): Enabled RSA branch.
6836         (parse_parameter_usage): New.
6837         (proc_parameter_file): Handle usage parameter.
6838         (read_parameter_file): Ditto.
6839         (generate_keypair): Ditto.
6840         (generate_subkeypair): Ditto.
6841         (do_generate_keypair): Ditto.
6842         (do_add_key_flags): New.
6843         (keygen_add_std_prefs): Use the new function.
6844         (keygen_add_key_flags_and_expire): New.
6845         (write_selfsig, write_keybinding): Handle new usage arg.
6846         * build-packet.c (build_sig_subpkt): Make sure that key flags go
6847         into the hashed area.
6848         
6849         * keygen.c (write_uid): Initialize the reference cunter.
6851         * keyedit.c (keyedit_menu): No more need to update the trustdb for
6852         preferences.  Added calls to merge keblock.
6854         * kbnode.c (dump_kbnode): Print some more flags.
6856 2001-08-10  Werner Koch  <wk@gnupg.org>
6858         Revamped the preference handling.
6860         * packet.h (prefitem_t, preftype_t): New.
6861         (PKT_public_key): Added a uid field.
6862         (PKT_user_id): Added field to store preferences and a reference
6863         counter.
6864         * parse-packet.c (parse_user_id,parse_photo_id): Initialize them
6865         * free-packet.c (free_user_id): Free them.
6866         (copy_user_id): Removed.
6867         (scopy_user_id): New. 
6868         (cmp_user_ids): Optimized for identical pointers.
6869         (release_public_key_parts): Release the uid.
6870         (copy_public_key_with_new_namehash): Removed.
6871         (copy_prefs): New.
6872         * keyedit.c (menu_adduid): Use the new shallow copy user id.
6873         (show_prefs): Adjusted implementation.
6874         (keyedit_menu): No more need to update the trustdb after changing
6875         preferences.
6876         * getkey.c (fixup_uidnode): Store preferences.
6877         (find_by_name): Return a user id packet and remove namehash stuff.
6878         (lookup): Removed the unused namehash stuff.
6879         (finish_lookup): Added foundu arg.
6880         (pk_from_block): Removed the namehash arg and changed all callers.
6881         (merge_selfsigs): Copy prefs to all keys.
6882         * trustdb.c (get_pref_data): Removed.
6883         (is_algo_in_prefs): Removed.
6884         (make_pref_record): Deleted and removed all class.
6885         * pkclist.c (select_algo_from_prefs): Adjusted for the new
6886         preference implementation.
6887         * pubkey-enc.c (is_algo_in_prefs): New.
6888         (get_it): Use that new function. 
6890 2001-08-09  Werner Koch  <wk@gnupg.org>
6892         * build-packet.c (build_sig_subpkt): Fixed calculation of
6893         newarea->size.
6895         * g10.c (main): New option "--preference-list"
6896         * keyedit.c (keyedit_menu): New commands "setpref" and "updpref".
6897         (menu_set_preferences): New.
6898         * keygen.c (keygen_set_std_prefs): New.
6899         (set_one_pref): New.
6900         (check_zip_algo): New.
6901         (keygen_get_std_prefs): New.
6902         (keygen_upd_std_prefs): New
6903         (keygen_add_std_prefs): Move the pref setting code into the above fnc.
6904         * build-packet.c (build_sig_subpkt): Updated the list of allowed
6905         to update subpackets.
6907 2001-08-08  Werner Koch  <wk@gnupg.org>
6909         * packet.h (subpktarea_t): New.
6910         (PKT_signature): Use that type for hashed_data and unhashed_data and
6911         removed the _data prefix from those fields.  Changed all users.
6912         * parse-packet.c (parse_signature): Changed allocation for that.
6913         (parse_sig_subpkt): Changed declaration
6914         (enum_sig_subpkt): Ditto and changed implementation accordingly.
6915         * free-packet.c (cp_subpktarea): Renamed from cp_data_block and
6916         adjusted implementation. Changed caller.
6917         * sig-check.c (mdc_kludge_check): Adjusted the hashing.
6918         (do_check): Ditto.
6919         * sign.c (sign_file, clearsign_file, make_keysig_packet,
6920         update_keysig_packet): Ditto.
6921         * build-packet.c (build_sig_subpkt): Partial rewrite.
6922         (find_subpkt): Adjusted and made static.
6923         (delete_sig_subpkt): Adjusted.
6924         (do_signature): Ditto.
6926         * keygen.c (ask_keysize): Do not print the notes about suggested
6927         key sizes if just a DSA key is generated.
6929         * trustdb.c (add_ultimate_key): s/log_error/log_info/ for
6930         duplicated inserted trusted keys.
6932 2001-08-07  Werner Koch  <wk@gnupg.org>
6934         * sign.c (sleep): Redefine for W32.
6936         * g10.c, options.h: Set new flag opt.no_homedir_creation when
6937         --no-options is given.
6938         * openfile.c (try_make_homedir): Don't create the homedir in that case.
6940 2001-08-03  Werner Koch  <wk@gnupg.org>
6942         * armor.c (armor_filter): Removed the default comment string
6943         because it could get us in trouble due to translations using non
6944         ascii characters.
6946 2001-08-01  Werner Koch  <wk@gnupg.org>
6948         * keylist.c (list_keyblock_print): Do not list revoked UIDs unless
6949         in verbose mode and we do no signature listing.
6951         * getkey.c (finish_lookup): Skip subkeys which are not yet valid.
6952         * g10.c, options.h: New option --ignore-valid-from.
6954         * sign.c (make_keysig_packet): Added new sigversion argument to
6955         allow the caller to force generation of required signature
6956         version. Changed all callers. Suggested by Thomas Roessler.
6958         * keyedit.c (sign_uids): Force v4 signature generation for local
6959         sigs.  Removed the check for local signature and pre-v4 keys.
6961 2001-07-27  Werner Koch  <wk@gnupg.org>
6963         * keyedit.c (sign_uids): Check that we are not trying to to a
6964         lsign with a pre-v4 key.  Bug noticed by Thomas Roessler.
6966 2001-07-26  Werner Koch  <wk@gnupg.org>
6968         * parse-packet.c (parse_photo_id): Reset all variables.
6969         * getkey.c (merge_selfsigs_main): Removed checks on PHOTO_ID
6970         because this is handled identically to a user ID.
6972 2001-07-06  Werner Koch  <wk@gnupg.org>
6974         * cipher.c (write_header): Don't use MDC with --rfc1991.  Suggested
6975         by disastry@saiknes.lv.
6977 2001-07-05  Werner Koch  <wk@gnupg.org>
6979         * g10.c, options.h: New option --preserve-permissions.
6980         * ringedit.c (add_keyblock_resource): Use it here
6981         (keyring_copy): and here.
6983         * trustdb.c (verify_own_keys): Be more silent on --quiet.
6984         Suggested by Thomas Roessler.
6985         * sig-check.c (check_key_signature2): Ditto.
6986         * mainproc.c (proc_encrypted, proc_tree): Ditto
6987         * getkey.c (lookup): Ditto.
6989 2001-07-04  Werner Koch  <wk@gnupg.org>
6991         * ringedit.c (add_keyblock_resource): Restore filename in case of error.
6993 2001-06-25  Werner Koch  <wk@gnupg.org>
6995         * kbnode.c (dump_kbnode): Print the signature timestamp.
6997         * keyedit.c (keyedit_menu): New menu point "primary".
6998         (change_primary_uid_cb): New.
6999         (menu_set_primary_uid): New.
7000         * sign.c (update_keysig_packet): New.
7001         * build-packet.c (build_sig_subpkt): Put the primary UID flag into
7002         the hashed area. Allow update of some more packets.
7004 2001-06-15  Werner Koch  <wk@gnupg.org>
7006         * getkey.c (merge_selfsigs): Exit gracefully when a secret key is
7007         encountered.  May happen if a secret key is in public keyring.
7008         Reported by Francesco Potorti.
7009         
7010 2001-06-12  Werner Koch  <wk@gnupg.org>
7012         * getkey.c (compare_name): Use ascii_memistr(), ascii_memcasecmp()
7013         * keyedit.c (keyedit_menu): Use ascii_strcasecmp().
7014         * armor.c (radix64_read): Use ascii_toupper().  
7015         * ringedit.c (do_bm_search): Ditto.
7016         * keygen.c (read_parameter_file): Ditto.
7017         * openfile.c (CMP_FILENAME): Ditto.
7018         * g10.c (i18n_init): We can now use just LC_ALL.
7020 2001-05-29  Werner Koch  <wk@gnupg.org>
7022         * keygen.c (generate_subkeypair): Print a warning if a subkey is
7023         created on a v3 key. Suggested by Brian M. Carlson.
7025 2001-05-27  Werner Koch  <wk@gnupg.org>
7027         * keyid.c (get_lsign_letter): New.
7028         * keylist.c (list_keyblock_colon): Use it here.
7029         * mainproc.c (list_node): and here.
7031         * getkey.c, packet.h, free-packet.c: Removed that useless key
7032         created field; I dunno why I introducded this at all - the
7033         creation time is always bound to the key packet and subject to
7034         fingerprint calculation etc.
7036         * getkey.c (fixup_uidnode): Add keycreated arg and use this
7037         instead of the signature timestamp to calculate the
7038         help_key_expire.  Bug reported by David R. Bergstein.
7039         (merge_selfsigs_main): Correct key expiration time calculation.
7040         (merge_selfsigs_subkey): Ditto.
7042 2001-05-25  Werner Koch  <wk@gnupg.org>
7044         * revoke.c (gen_revoke): Add a cast to a tty_printf arg.
7045         * delkey.c (do_delete_key): Ditto.
7046         * keyedit.c (print_and_check_one_sig): Ditto.
7047         (ask_revoke_sig): Ditto.
7048         (menu_revsig): Ditto.
7049         (check_all_keysigs): Removed unused arg.
7051 2001-05-23  Werner Koch  <wk@gnupg.org>
7053         * g10.c (opts): Typo fix by Robert C. Ames.
7055 2001-05-06  Werner Koch  <wk@gnupg.org>
7057         * revoke.c: Small typo fix
7059 2001-05-04  Werner Koch  <wk@gnupg.org>
7061         * passphrase.c (passphrase_clear_cache): Shortcut if agent usage
7062         is not enabled.
7064 2001-05-01  Werner Koch  <wk@gnupg.org>
7066         * passphrase.c (writen): Replaced ssize_t by int.  Thanks to 
7067         to Robert Joop for reporting that SunOS 4.1.4 does not have it.
7069 2001-04-28  Werner Koch  <wk@gnupg.org>
7071         * getkey.c (merge_public_with_secret): pkttype was not set to subkey.
7073 2001-04-27  Werner Koch  <wk@gnupg.org>
7075         * skclist.c (build_sk_list): Changed one log_debug to log_info.
7077 2001-04-25  Werner Koch  <wk@gnupg.org>
7079         * keyedit.c (show_prefs): Add a verbose mode.
7080         (show_key_with_all_names): Pass verbose flag for special value of
7081         with_pref.
7082         (keyedit_menu): New command "showpref"
7083         (show_key_with_all_names): Mark revoked uids and the primary key.
7085 2001-04-24  Werner Koch  <wk@gnupg.org>
7087         * getkey.c (get_primary_uid): Return a different string in case of
7088         error and made it translatable.
7090         * build-packet.c (do_secret_key): Ugly, we wrote a zero
7091         instead of the computed ndays.  Thanks to M Taylor for complaining
7092         about a secret key import problem.
7094 2001-04-23  Werner Koch  <wk@gnupg.org>
7096         * hkp.c (hkp_ask_import): Allow to specify a port number for the 
7097         keyserver.  Add a kudge to set the no_shutdown flag.
7098         (hkp_export): Ditto.
7099         * options.skel: Document the changes 
7101 2001-04-20  Werner Koch  <wk@gnupg.org>
7103         * options.skel: Add some more comments.
7105 2001-04-19  Werner Koch  <wk@gnupg.org>
7107         * keyid.c (mk_datestr): New.  Handles negative times.  We must do
7108         this because Windoze segvs on negative times passed to gmtime().
7109         Changed all datestr_from function to use this one.
7111         * keyid.c, keyid.h (colon_strtime): New. To implement the
7112         fixed-list-mode.
7113         (colon_datestr_from_pk): New.
7114         (colon_datestr_from_sk): New.
7115         (colon_datestr_from_sig): New.
7116         * keylist.c (list_keyblock_colon): Use these functions here.
7117         * mainproc.c (list_node): Ditto.
7119 2001-04-18  Werner Koch  <wk@gnupg.org>
7121         * openfile.c (open_sigfile): Fixed the handling of ".sign".
7122         * mainproc.c (proc_tree): Use iobuf_get_real_fname.
7123         Both are by Vincent Broman.
7125 2001-04-14  Werner Koch  <wk@gnupg.org>
7127         * getkey.c (fixup_uidnode): Removed check for !sig which is
7128         pointless here.  Thanks to Jan Niehusmann.
7130 2001-04-10  Werner Koch  <wk@gnupg.org>
7132         * sig-check.c (check_key_signature2): Use log_info instead of
7133         log_error so that messed up keys do not let gpg return an error.
7134         Suggested by Christian Kurz.
7136         * getkey.c (merge_selfsigs_main): Do a fixup_uidnode only if we
7137         have both, uid and sig.  Thanks to M Taylor.
7139 2001-04-05  Werner Koch  <wk@gnupg.org>
7141         * armor.c (unarmor_pump_new,unarmor_pump_release): New.
7142         (unarmor_pump): New. 
7143         * pipemode.c (pipemode_filter): Use the unarmor_pump to handle
7144         armored or non-armored detached signatures.  We can't use the
7145         regular armor_filter because this does only check for armored
7146         signatures the very first time.  In pipemode we may have a mix of
7147         armored and binary detached signatures.
7148         * mainproc.c (proc_tree): Do not print the "old style" notice when
7149         this is a pipemode processes detached signature.
7150         (proc_plaintext): Special handling of pipemode detached sigs.
7152         * packet.h (CTRLPKT_PLAINTEXT_MARK): New.
7153         * parse-packet.c (create_gpg_control): New.
7154         * kbnode.c (dump_kbnode): Support it here.
7155         * mainproc.c (check_sig_and_print): Fixed the check for bad
7156         sequences of multiple signatures.
7157         (proc_plaintext): Add the marker packet.
7158         (proc_tree): We can now check multiple detached signatures.
7160 2001-04-02  Werner Koch  <wk@gnupg.org>
7162         The length of encrypted packets for blocksizes != 8 was not
7163         correct encoded.  I think this is a minor problem, because we
7164         usually use partial length packets.  Kudos to Kahil D. Jallad for
7165         pointing this out.
7166         * packet.h: Add extralen to PKT_encrypted.
7167         * cipher.c (write_header): Set extralen.
7168         * build-packet.c (do_encrypted): Use extralen instead of const 10.
7169         (do_encrypted_mdc): Ditto.
7170         * parse-packet.c (parse_encrypted): Set extralen to 0 because we
7171         don't know it here.
7173 2001-03-30  Werner Koch  <wk@gnupg.org>
7175         * getkey.c (premerge_public_with_secret): Changed wording an add
7176         the keyID to the info message.
7178 2001-03-29  Werner Koch  <wk@gnupg.org>
7180         * getkey.c (premerge_public_with_secret): Use log_info instead of
7181         log_error when no secret key was found for a public one.
7182         Fix the usage if the secret parts of a key are not available.
7184         * openfile.c (ask_outfile_name): Trim spaces.
7185         (open_outfile): Allow to enter an alternate filename.  Thanks to
7186         Stefan Bellon.
7187         * plaintext.c (handle_plaintext): Ditto.
7189 2001-03-28  Werner Koch  <wk@gnupg.org>
7191         * mainproc.c (do_check_sig): Allow direct key and subkey
7192         revocation signature.
7193         * sig-check.c (check_key_signature2): Check direct key signatures.
7194         Print the signature class along with an error.
7196 2001-03-27  Werner Koch  <wk@gnupg.org>
7198         * packet.h: Add a missing typedef to an enum.  Thanks to Stefan Bellon.
7200         * g10.c: New option --no-sig-create-check.
7201         * sign.c (do_sign): Implement it here.
7202         * g10.c: New option --no-sig-cache.
7203         * sig-check.c (check_key_signature2): Implement it here.
7204         (cache_selfsig_result): and here.
7206         * keylist.c (list_keyblock): Removed debugging stuff.
7208         * getkey.c (cache_public_key): Made global.
7209         * keygen.c (write_selfsig, write_keybinding): Cache the new key.
7211         * getkey.c (key_byname): Add new arg secmode and changed all
7212         callers to request explicitly the mode.  Deriving this information
7213         from the other supplied parameters does not work if neither pk nor
7214         sk are supplied.
7216 2001-03-25  Werner Koch  <wk@gnupg.org>
7218         * packet.h (ctrlpkttype_t): New.
7219         * mainproc.c (add_gpg_control,proc_plaintext,proc_tree): Use the
7220         new enum values.
7221         * pipemode.c (make_control): Ditto.
7222         * armor.c (armor_filter): Ditto.
7224 2001-03-24  Werner Koch  <wk@gnupg.org>
7226         * sign.c (do_sign): Verify the signature right after creation.
7228 2001-03-23  Werner Koch  <wk@gnupg.org>
7230         * status.c, status.h (STATUS_UNEXPECTED): New.
7231         * mainproc.c (do_proc_packets): And emit it here.
7233 2001-03-21  Werner Koch  <wk@gnupg.org>
7235         * status.c: Add sys/types.h so that it runs on Ultrix.  Reported
7236         by Georg Schwarz.x
7238         * build-packet.c (build_sig_subpkt): Fixed generaton of packet
7239         length header in case where 2 bytes headers are needed.  Thanks to
7240         Piotr Krukowiecki.
7242 2001-03-19  Werner Koch  <wk@gnupg.org>
7244         * g10.c (main): the default keyring is no always used unless
7245         --no-default-keyring is given.  
7247         * ringedit.c (add_keyblock_resource): invalidate cache after file
7248         creation.
7250 2001-03-15  Werner Koch  <wk@gnupg.org>
7252         * keygen.c (ask_algo): Changed the warning of the ElGamal S+E Algo.
7254         * keylist.c (print_capabilities): New.
7255         (list_keyblock_colon): and use it here.
7257 2001-03-13  Werner Koch  <wk@gnupg.org>
7259         * main.c, options.h: New option --fixed_list_mode.
7260         * keylist.c (list_keyblock_colon): use it here.
7262         * getkey.c (merge_keys_and_selfsig): Divert merging of public keys
7263         to the function used in key selection..
7264         * keylist.c (is_uid_valid): Removed.
7265         (list_keyblock): Splitted into ..
7266         (list_keyblock_print, list_keyblock_colon): .. these.
7267         functions.  Changed them to use the flags set in the key lookup code.
7268         (reorder_keyblock): New, so that primary user IDs are listed first.
7270         * ringedit.c (keyring_copy): flush the new iobuf chaces before
7271         rename or remove operations.  This is mainly needed for W32.
7273         * hkp.c [HAVE_DOSISH_SYSTEM]: Removed the disabled code because we
7274         have now W32 socket support in ../util/http.c
7276         * skclist.c (key_present_in_sk_list): New.
7277         (is_duplicated_entry): New.
7278         (build_sk_list): Check for duplicates and do that before unlocking.
7280 2001-03-12  Werner Koch  <wk@gnupg.org>
7282         * armor.c (parse_header_line): Removed double empty line check.
7283         (parse_header_line): Replaced trim_trailing_ws with a counting
7284         function so that we can adjust for the next read.
7286         * options.skel: Fixed 3 typos. By Thomas Klausner. Replaced the
7287         keyserver example by a better working server. 
7289         * parse-packet.c (parse_symkeyenc): Return Invalid_Packet on error.
7290         (parse_pubkeyenc): Ditto.
7291         (parse_onepass_sig): Ditto.
7292         (parse_plaintext): Ditto.
7293         (parse_encrypted): Ditto.
7294         (parse_signature): Return error at other places too.
7295         (parse_key): Ditto.
7296         * g10.c (main): Set opt.list_packets to another value when invoked
7297         with the --list-packets command.
7298         * mainproc.c (do_proc_packets): Don's stop processing when running
7299         under --list-packets command.
7301         * signal.c (do_sigaction): Removed.
7302         (init_one_signal): New to replace the above.  Needed to support
7303         systems without sigactions. Suggested by Dave Dykstra.
7304         (got_fatal_signal,init_signals): Use the above here. 
7305         (do_block): Use sigset() if sigprocmask() is not available.
7307         * armor.c (parse_hash_header): Test on TIGER192, which is the
7308         correct value as per rfc2440.  By Edwin Woudt.
7310 2001-03-08  Werner Koch  <wk@gnupg.org>
7312         * misc.c: Include time.h. By James Troup.
7314         * getkey.c: Re-enabled the unknown user Id and PK caches and
7315         increased their sizes.
7317         * getkey.c (merge_selfsigs_main): Set expire date and continue
7318         processing even if we found a revoked key.
7319         (merge_selfsigs_subkeys): Ditto.
7320         
7321         * packet.h: Add an is_revoked flag to the user_id packet.
7322         * getkey.c (fixup_uidnode): Set that flag here.
7323         (merge_selfsigs_main): Fix so that the latest signature is used to
7324         find the self-signature for an UID.
7325         * parse-packet.c (parse_user_id): Zero out all fields.
7326         * mainproc.c (check_sig_and_print): Print the primary user ID
7327         according the the node flag and then all other non-revoked user IDs.
7328         (is_uid_revoked): Removed; it is now handled by the key selection code.
7329         
7330         Changed the year list of all copyright notices.
7331         
7332 2001-03-07  Werner Koch  <wk@gnupg.org>
7334         * getkey.c (finish_lookup): Print an info message only in verbose mode.
7336 2001-03-05  Werner Koch  <wk@gnupg.org>
7338         * packet.h: Replaced sigsubpkt_t value 101 by PRIV_VERIFY_CACHE.
7339         We have never used the old value, so we can do this without any harm.
7340         * parse-packet.c (dump_sig_subpkt): Ditto.
7341         (parse_one_sig_subpkt): Parse that new sub packet.
7342         * build-packet.c (build_sig_subpkt): Removed the old one from the
7343         hashed area.
7344         (delete_sig_subpkt): New.
7345         (build_sig_subpkt): Allow an update of that new subpkt.
7346         * sig-check.c (check_key_signature2): Add verification caching
7347         (cache_selfsig_result): New.
7348         * export.c (do_export_stream): Delete that sig subpkt before exporting.
7349         * import.c (remove_bad_stuff): New.
7350         (import): Apply that function to all imported data 
7352 2001-03-03  Werner Koch  <wk@gnupg.org>
7354         * getkey.c: Introduced a new lookup context flag "exact" and used 
7355         it in all place where we once used primary.
7356         (classify_user_id2): Replaced the old function and add an extra
7357         argument to return whether an exact keyID has been requested.
7358         (key_byname): Removed the unused ctx.primary flag
7359         (get_seckey_byname2): Ditto.
7360         (finish_lookup): Changed debugging output.
7362 2001-03-02  Werner Koch  <wk@gnupg.org>
7364         * keylist.c (list_one): Remove the merge key calls. 
7366 2001-03-01  Werner Koch  <wk@gnupg.org>
7368         * getkey.c (finish_lookup): Don't use it if we no specific usage
7369         has been requested.
7370         (merge_selfsigs_main): fix UID only if we have an signature.
7371         (lookup): Return UNU_PUBKEY etc. instead of NO_PUBKEY if we found
7372         a key but the requested usage does not allow this key.
7373         * import.c (import_one): Take UNU_PUBKEY into account.
7374         * mainproc.c (list_node): Ditto.
7375         * keylist.c (list_keyblock): Ditto.
7376         * keyedit.c (print_and_check_one_sig): Ditto. 
7378 2001-02-09  Werner Koch  <wk@gnupg.org>
7380         * delkey.c (delete_key): Removed that silly assert which rendered
7381         the whole new stuff meaningless.
7383 2001-02-08  Werner Koch  <wk@gnupg.org>
7385         * getkey.c (key_byname): It can happen that we have both, sk and pk
7386         NULL, fix for that.
7388         * parse-packet.c (parse_one_sig_subpkt): Add support for
7389         primary_uid and key_flags.
7390         (can_handle_critical): Ditto
7392         * parse-packet.c (parse_encrypted): Fixed listing of pktlen for
7393         MDC packets.
7395         * getkey.c: Backported the version of this file from gpg 1.1. this
7396         involved some changes in other files too.
7397         * parse-packet.c (parse_key): Clear req_usage.
7398         * skclist.c (build_sk_list): Use req_usage to pass the usage
7399         information to the lookup function.
7400         * pkclist.c (build_pk_list): Ditto.
7401         * free-packet.c (copy_public_parts_to_secret_key): New.
7402         * keydb.h: Add IS_* macros to check the sig_class.
7403         * misc.c (openpgp_cipher_test_algo): New.
7404         (openpgp_pk_test_algo): New.
7405         (openpgp_pk_algo_usage): New.
7406         (openpgp_md_test_algo): New.
7407         * packet.h: Add a few fields to PKT_{public,secret}_key and
7408         PKT_user_id.
7409         * seckey-cert.c (do_check): Use the new main_keyid field.
7411 2001-02-04  Werner Koch  <wk@gnupg.org>
7413         * encr-data.c (decrypt_data): Catch error when we had problems to
7414         parse the encrypted packet. By Timo.
7416 2001-01-29  Werner Koch  <wk@gnupg.org>
7418         * g10.c (main): --batch does now set nogreeting.
7420         * delkey.c (do_delete_key): Fixed delete-both functionality.
7422 2001-01-22  Werner Koch  <wk@gnupg.org>
7424         * g10.c: New command --delete-secret-and-public-key.
7425         * delkey.c (delete_key): Add new arg allow_both.
7426         (do_delete_key): Move most stuff from above to this new function.
7428 2001-01-12  Werner Koch  <wk@gnupg.org>
7430         * passphrase.c (passphrase_to_dek): Use MD5 when IDEA is installed
7431         and we have no S2K.
7432         * mainproc.c (proc_encrypted): Likewise
7434 2001-01-11  Werner Koch  <wk@gnupg.org>
7436         * sig-check.c (do_check): Print the signature key expire message
7437         only in verbose mode and added the keyID.
7439 2001-01-09  Werner Koch  <wk@gnupg.org>
7441         * status.c, status.h: New status USERID_HINT. 
7442         (write_status_text): Replace LF and CR int text by C-escape sequence.
7444         * passphrase.c (passphrase_to_dek): Fixed the NEED_PASSPHRASE
7445         output.  It does now always print 2 keyIDs.  Emit the new
7446         USERID_HINT.
7448 2001-01-08  Werner Koch  <wk@gnupg.org>
7450         * g10.c, options.h: New option --no-expensive-trust-checks.
7451         * keylist.c (list_keyblock): Act on this option.
7453 2001-01-04  Werner Koch  <wk@gnupg.org>
7455         * g10.c (main): Set homedir only in the pre-parsing phase and
7456         replace backslashes in the W32 version.
7458 2001-01-03  Werner Koch  <wk@gnupg.org>
7460         * status.c, status.h : New status KEY_CREATED
7461         * keygen.c (do_generate_keypair,generate_subkeypair): Emit it.
7463 2000-12-28  Werner Koch  <wk@gnupg.org>
7465         * signal.c (got_fatal_signal): Remove lockfiles here because the
7466         atexit stuff does not work due to the use of raise. Suggested by
7467         Peter Fales.
7468         * gpgv.c (remove_lockfiles): New stub.
7469         
7470 2000-12-19  Werner Koch  <wk@gnupg.org>
7472         * status.c, status.h (cpr_get_no_help): New.
7473         * keyedit.c (keyedit_menu): Use it here because we have our own
7474         help list here.
7476 2000-12-18  Werner Koch  <wk@gnupg.org>
7478         * mainproc.c (print_failed_pkenc): Don't print the sometimes
7479         confusing message about unavailabe secret key.  Renamed ...
7480         (print_pkenc_list): ... to this and introduced failed arg.
7481         (proc_encrypted): Print the failed encryption keys and then
7482         the one to be used.
7483         (proc_pubkey_enc): Store also the key we are going to use.
7485         * mainproc.c (check_sig_and_print): Don't list revoked user IDs.
7486         (is_uid_revoked): New.
7488 2000-12-08  Werner Koch  <wk@gnupg.org>
7490         * pipemode.c: Made the command work.  Currently only for
7491         non-armored detached signatures.
7492         * mainproc.c (release_list): Reset the new pipemode vars.
7493         (add_gpg_control): Handle the control packets for pipemode
7494         * status.c, status.h: New stati {BEGIN,END}_STREAM.
7496 2000-12-07  Werner Koch  <wk@gnupg.org>
7498         * g10.c: New option --allow-secret-key-import.
7499         * import.c (import_keys,import_keys_stream): Honor this option.
7500         (import): New arg allow_secret and pass that arg down to ...
7501         (import_secret_one): to this and print a warning if secret key
7502         importing is not allowed.
7504 2000-12-05  Werner Koch  <wk@gnupg.org>
7506         * cipher.c (cipher_filter): Moved the end_encryption status ...
7507         * encode.c (encode_simple,encode_crypt): to here
7508         * sign.c (sign_file): and here.
7510         * status.c (mywrite): Removed.
7511         (get_status_string): Removed the LFs from the strings.
7512         (set_status_fd,is_status_enabed,write_status_text,
7513         write_status_buffer): Replaced all mywrite by stdio calls and use
7514         fdopen to create a strem.  This is needed to make things smoother
7515         in the W32 version.
7517 2000-12-04  Werner Koch  <wk@gnupg.org>
7519         * import.c (merge_blocks): Increment n_sigs for revocations.
7521 2000-11-30  Werner Koch  <wk@gnupg.org>
7523         * g10.c (main): Use iobuf_translate_file_handle for all options
7524         with filehandles as arguments.  This is function does some magic
7525         for the W32 API.
7527         * verify.c (verify_signatures): Add a comment rant about the
7528         detached signature problem.
7529         * mainproc.c (proc_tree): Issue an error if a detached signature
7530         is assumed but a standard one was found.
7531         * plaintext.c (hash_datafiles): Don't fall back to read signature
7532         from stdin.
7533         * openfile.c (open_sigfile): Print verbose message only if the
7534         file could be accessed.
7536 2000-11-24  Werner Koch  <wk@gnupg.org>
7538         * passphrase.c [HAVE_DOSISH_SYSTEM]: Disabled all the agent stuff.
7540 2000-11-16  Werner Koch  <wk@gnupg.org>
7542         * g10.c: New option --use-agent
7543         * passphrase.c (agent_open,agent_close): New.
7544         (agent_get_passphrase,agent_clear_passphrase): New.
7545         (passphrase_clear_cache): New.
7546         (passphrase_to_dek): Use the agent here.
7547         * seckey-cert.c (do_check): Clear cached passphrases.
7549 2000-11-15  Werner Koch  <wk@gnupg.org>
7551         * status.c (write_status_text): Moved the big switch to ...
7552         (get_status_string): ... new function.
7553         (write_status_buffer): New.
7555         * status.c (mywrite): New and replaced all write() by this.
7557         * status.c, status.h: Add 3 status lcodes for notaions and policy.
7558         * mainproc.c (print_notation_data): Do status output of notations.
7559         
7560 2000-11-13  Werner Koch  <wk@gnupg.org>
7562         * sign.c (clearsign_file): Use LF macro to print linefeed.
7563         
7564 2000-11-11  Paul Eggert  <eggert@twinsun.com>
7566         Clean up the places in the code that incorrectly use "long" or
7567         "unsigned long" for file offsets.  The correct type to use is
7568         "off_t".  The difference is important on large-file hosts,
7569         where "off_t" is longer than "long".
7571         * keydb.h (struct keyblock_pos_struct.offset):
7572         Use off_t, not ulong, for file offsets.
7573         * packet.h (dbg_search_packet, dbg_copy_some_packets,
7574         search_packet, copy_some_packets): Likewise.
7575         * parse-packet.c (parse, dbg_search_packet, search_packet,
7576         dbg_copy_some_packets, copy_some_packets): Likewise.
7577         * ringedit.c (keyring_search): Likewise.
7579         * parse-packet.c (parse): Do not use %lu to report file
7580         offsets in error diagnostics; it's not portable.
7581         * ringedit.c (keyring_search): Likewise.
7583 2000-11-09  Werner Koch  <wk@gnupg.org>
7585         * g10.c (main): New option --enable-special-filenames.
7587 2000-11-07  Werner Koch  <wk@gnupg.org>
7589         * g10.c (main): New command --pipemode.
7590         * pipemode.c: New.
7592 2000-10-23  Werner Koch  <wk@gnupg.org>
7594         * armor.c (armor_filter): Changed output of hdrlines, so that a CR
7595         is emitted for DOS systems.
7597         * keygen.c (read_parameter_file): Add a cast for isspace().
7599         * status.c (myread): Use SIGINT instead of SIGHUP for DOS. 
7601 2000-10-19  Werner Koch  <wk@gnupg.org>
7603         * g10.c: New option --ignore-crc-error
7604         * armor.c (invalid_crc): New.
7605         (radix64_read): Act on new option.
7607         * openfile.c (try_make_homedir): Klaus Singvogel fixed a stupid
7608         error introduced on Sep 6th. 
7610 2000-10-18  Werner Koch  <wk@gnupg.org>
7612         * misc.c (print_cipher_algo_note): Don't print the note for AES.
7613         Changed wording.
7615 2000-10-16  Werner Koch  <wk@gnupg.org>
7617         * mainproc.c (do_proc_packets): Hack to fix the problem that
7618         signatures are not detected when there is a MDC packet but no
7619         compression packet.
7620         
7621         * g10.c (print_hashline): New.
7622         (print_mds): Use above func with --with-colons.
7624         * mainproc.c (check_sig_and_print): Detect multiple signatures
7625         and don't verify them.
7627 2000-10-14  Werner Koch  <wk@gnupg.org>
7629         * mainproc.c (add_onepass_sig): There is an easier solution to the
7630         error fixed yesterday; just check that we only have onepass
7631         packets.  However, the other solution provides an cleaner
7632         interface and opens the path to get access to other information
7633         from the armore headers.
7634         (release_list): Reset some more variables.
7636 2000-10-13  Werner Koch  <wk@gnupg.org>
7638         * mainproc.c (add_gpg_control): New.
7639         (do_proc_packets): use it.
7640         (proc_plaintext): Changed logic to detect clearsigns.
7641         (proc_tree): Check the cleartext sig with some new code.
7643         * packet.h: New packet PKT_GPG_CONTROL.
7644         * parse-packet.c (parse_gpg_control): New.
7645         * misc.c (get_session_marker): New.
7646         * armor.c (armor_filter): Replaced the faked 1-pass packet by the
7647         new control packet.
7649         * keyedit.c (keyedit_menu): Allow batchmode with a command_fd. 
7650         * status.c (my_read): New.
7651         (do_get_from_fd): use it.
7653 2000-10-12  Werner Koch  <wk@gnupg.org>
7655         * keygen.c (keygen_add_std_prefs): Add Rijndael to the prefs.
7657 2000-10-07  Werner Koch  <wk@gnupg.org>
7659         * gpgv.c: Add more stubs for ununsed code to make the binary smaller.
7661 Wed Oct  4 15:50:18 CEST 2000  Werner Koch  <wk@openit.de>
7663         * sign.c (hash_for): New arg to take packet version in account, changed
7664         call callers.
7666         * gpgv.c: New.
7667         * Makefile.am: Rearranged source files so that gpgv can be build with
7668         at least files as possible.
7670 Mon Sep 18 12:13:52 CEST 2000  Werner Koch  <wk@openit.de>
7672         * hkp.c (not_implemented): Print a notice for W32
7674 Fri Sep 15 18:40:36 CEST 2000  Werner Koch  <wk@openit.de>
7676         * keygen.c (keygen_add_std_prefs): Changed order of preferences to
7677         twofish, cast5, blowfish.
7679         * pkclist.c (algo_available): Removed hack to disable Twofish.
7681 Thu Sep 14 17:45:11 CEST 2000  Werner Koch  <wk@openit.de>
7683         * parse-packet.c (dump_sig_subpkt): Dump key flags. Print special
7684         warning in case of faked ARRs.
7686         * getkey.c (finsih_lookup): Hack so that for v4 RSA keys the subkey
7687         is used for encryption.
7689 Thu Sep 14 14:20:38 CEST 2000  Werner Koch  <wk@openit.de>
7691         * g10.c (main): Default S2K algorithms are now SHA1 and CAST5 - this
7692         should solve a lot of compatibility problems with other OpenPGP
7693         apps because those algorithms are SHOULD and not optional.  The old
7694         way to force it was by using the --openpgp option whith the drawback 
7695         that this would disable a couple of workarounds for PGP.
7697         * g10.c (main): Don't set --quite along with --no-tty.  By Frank Tobin.
7699         * misc.c (disable_core_dump): Don't display a warning here but a return
7700         a status value and ...
7701         * g10.c (main): ...print warnining here. Suggested by Sam Roberts.
7703 Wed Sep 13 18:12:34 CEST 2000  Werner Koch  <wk@openit.de>
7705         * keyedit.c (keyedit_menu): Allow to use "debug" on the secret key.
7707         * ringedit.c (cmp_seckey): Fix for v4 RSA keys.
7708         * seckey-cert.c (do_check): Workaround for PGP 7 bug.
7710 Wed Sep  6 17:55:47 CEST 2000  Werner Koch  <wk@openit.de>
7712         * misc.c (print_pubkey_algo_note): Do not print the RSA notice.
7713         * sig-check.c (do_signature_check): Do not emit the RSA status message.
7714         * pubkey-enc.c (get_session_key): Ditto.
7716         * encode.c (encode_simple, encode_crypt): Fix for large files.
7717         * sign.c (sign_file): Ditto.
7719 Wed Sep  6 14:59:09 CEST 2000  Werner Koch  <wk@openit.de>
7721         * passphrase.c (hash_passphrase): Removed funny assert.  Reported by
7722         David Mathog.
7724         * openfile.c (try_make_homedir): Changes for non-Posix systems.
7725         * g10.c (main): Take the default homedir from macro.
7727         * g10.c: The --trusted-key option is back.
7728         * trustdb.c (verify_own_key): Handle this option.
7729         (add_ultimate_key): Moved stuff from verify_own_key to this new func.
7730         (register_trusted_key): New.
7732 Fri Aug 25 16:05:38 CEST 2000  Werner Koch  <wk@openit.de>
7734         * parse-packet.c (dump_sig_subpkt): Print info about the ARR.
7736         * openfile.c (overwrite_filep): Always return okay if the file is
7737         called /dev/null. 
7738         (make_outfile_name): Add ".sign" to the list of know extensions.
7739         (open_sigfile): Ditto.
7741 Wed Aug 23 19:52:51 CEST 2000  Werner Koch  <wk@openit.de>
7743         * g10.c: New option --allow-freeform-uid. By Jeroen C. van Gelderen.
7744         * keygen.c (ask_user_id): Implemented here.
7746 Fri Aug  4 14:23:05 CEST 2000  Werner Koch  <wk@openit.de>
7748   * status.c (do_get_from_fd): Ooops, we used fd instead of opt.command_fd.
7749   Thanks to Michael Tokarev.
7751 Tue Aug  1 20:06:23 CEST 2000  Werner Koch  <wk@openit.de>
7753   * g10.c: New opttion --try-all-secrets on suggestion from Matthias Urlichs.
7754   * pubkey-enc.c (get_session_key): Quite easy to implement here.
7756 Thu Jul 27 17:33:04 CEST 2000  Werner Koch  <wk@openit.de>
7758   * g10.c: New option --merge-only.  Suggested by Brendan O'Dea.
7759   * import.c (import_one): Implemented it here
7760   (import_secret_one): Ditto.
7761   (print_stats): and give some stats.
7763 Thu Jul 27 12:01:00 CEST 2000  Werner Koch  <wk@openit.de>
7765   * g10.c: New options --show-session-key and --override-session-key
7766   * pubkey-enc.c (hextobyte): New.
7767   (get_override_session_key): New.
7768   * mainproc.c (proc_pubkey_enc): Add session-key stuff.
7769   * status.h, status.c (STATUS_SESSION_KEY): New.
7771 Thu Jul 27 10:02:38 CEST 2000  Werner Koch  <wk@openit.de>
7773   * g10.c (main): Use setmode(O_BINARY) for MSDOS while generating random bytes
7774   (print_mds): Likewise for stdin.
7775   * plaintext.c (handle_plaintext): Likewise for stdout.
7777 Mon Jul 24 10:30:17 CEST 2000  Werner Koch  <wk@openit.de>
7779   * keyedit.c (menu_expire): expire date for primary key can be set again.
7781 Wed Jul 19 11:26:43 CEST 2000  Werner Koch  <wk@openit.de>
7783   * keylist.c (is_uid_valid): New.
7784   (list_keyblock): Print validity information for all user IDs.  Note, this
7785   has to be done at other places too; for now we have only minimal support.
7787 Wed Jul 12 13:32:06 CEST 2000  Werner Koch  <wk@openit.de>
7789   * helptext.c, pkclist.c: s/superseeded/superseded/
7791 Mon Jul 10 16:08:57 CEST 2000  Werner Koch  <wk@openit.de>
7793   * parse-packet.c (enum_sig_subpkt): Fixed testing on crtitical bit in case
7794   of a NULL buffer.  Reported by Peter Marschall.
7796 Wed Jul  5 13:28:45 CEST 2000  Werner Koch  <wk@openit.de>
7798   * keyedit.c, keyid.c: Add some _()
7800   * argparse.c:  Changed the flag to suppress --version handling to also
7801   suppress --help.
7803 Wed Jun 28 11:54:44 CEST 2000  Werner Koch  <wk@openit.de>
7805   * armor.c (armor_filter): Set sigclass to 0 in case of non-dash-escaped
7806   clearsig.  This makes this mode work again.
7808   * mainproc.c (proc_tree): Fixed handling of one-pass-sig packets in textmode.
7809   Disabled the ugly workaround for PGP 5 - let's see whether thi breaks less
7810   cases. Found by Ted Cabeen.
7812   * options.h (DBG_HASHING): New.  All commented md_start_debug are now
7813   controlled by this debug option.
7815   * sign.c (print_status_sig_created): New and called from 2 places.
7817   * keygen.c (gen_rsa): New, but commented.
7818   (ask_algo): Commented support for RSA.
7820   * seckey-cert.c (protect_secret_key): Started to fix the code for v4 RSA
7821   keys - it is not solved yet. However, we have time until, Sep 20th ;)
7823 Wed Jun 14 12:27:09 CEST 2000  Werner Koch  <wk@openit.de>
7825   * status.c (init_shm_coprocessing): Changed the sequence of the get,attach
7826   to cope with the changes in newer Linux kernels.  This bug has been found
7827   by <dmitri@advantrix.com> who also proposed this solution.  Hopefully
7828   this does not break gpg on to many systems.
7830   * cipher.c (write_header): Protect the IV with the MDC too.
7831   * encr-data.c (decrypt_data): Likewise.
7833 Fri Jun  9 10:09:52 CEST 2000  Werner Koch  <wk@openit.de>
7835   * g10.c: New options --no-auto-key-retrieve
7836   * options.h (auto_key_retrieve): New.
7837   * mainproc.c (check_sig_and_print): Implemented that.
7839 Wed Jun  7 19:19:09 CEST 2000  Werner Koch  <wk@openit.de>
7841   * sig-check.c (do_check): Use EMULATE_MDENCODE also on v4 packets.
7843 Wed Jun  7 17:25:38 CEST 2000  Werner Koch  <wk@openit.de>
7845   * cipher.c (write_header): Use plain CFB mode for MDC encrypted packets.
7846   * encr-data.c (decrypt_data): Ditto.
7848 Mon Jun  5 23:41:54 CEST 2000  Werner Koch  <wk@openit.de>
7850   * seskey.c (do_encode_md, encode_md_value): Add new arg v3compathack to work
7851   around a bug in old versions.
7852   * sig-check.c (do_check): use the aboved workaround when enabled.
7853   * g10.c: New option --emulate-md-decode-bug
7855 Mon Jun  5 12:37:43 CEST 2000  Werner Koch  <wk@openit.de>
7857   * build-packet.c (do_mdc): New.
7858   (do_encrypted_mdc): Changed for the new proposal.
7859   * parse-packet.c (parse_mdc): New.
7860   (parse_encrypted): Fixed for the new proposal.
7861   * packet.h (PKT_MDC): New.
7862   * cipher.c (cipher_filter): Build the MDC packet here.
7863   * g10.c (main): Enable --force-mdc.
7864   * encr-data.c (mdc_decode_filter): Fixed for new MDC method
7866   * options.h(rfc2440): New.
7867   * g10.c (main): Changed the selected values for --openpgp to not include
7868   optional algorithms.
7870 Thu May 18 11:38:54 CEST 2000  Werner Koch  <wk@openit.de>
7872         * keyedit.c (keyedit_menu): Add a keyword arg to the prompt.
7874         * status.c, status.h: Added 3 new status tokens.
7875         * status.c (do_get_from_fd): New.
7876         (cpr_enabled,cpr_get,cpr_get_hidden,cpr_kill_prompt,
7877          cpr_get_answer_is_yes,cpr_get_answer_yes_no_quit): Modified to work
7878          with the new function.
7879         * g10.c: Add new option --command-fd.
7881         * status.c (progress_cb): New.
7882         (set_status_fd): Register progress functions
7884 Fri May 12 14:01:20 CEST 2000  Werner Koch  <wk@openit.de>
7886         * delkey.c (delete_key): Add 2 new status messages
7887         * status.c, status.h (STATUS_DELETE_PROBLEM): New.
7889         Fixed years of copyright in all source files.
7891 Mon May  1 17:08:14 CEST 2000  Werner Koch  <wk@openit.de>
7893         * trustdb.c (propagate_validity): Fixed the bug that only one uid
7894         gets fully trusted even when all are signed by an ultimate key.
7896 Mon May  1 15:38:04 CEST 2000  Werner Koch  <wk@openit.de>
7898         * getkey.c (key_byname): Always returned a defined context.  Fixed
7899         a segv for invalid user id specifications. Reported by Walter Koch.
7901         * getkey.c (get_user_id): I18ned "no user id" string. By Walter.
7903         * pkclist.c (do_show_revocation_reason): Typo fixes.
7904         * helptext.c: Ditto.
7906         * armor.c (armor_filter): Fixed some CRLF issues.  By Mike McEwan.
7908 Fri Apr 14 19:37:08 CEST 2000  Werner Koch  <wk@openit.de>
7910         * pkclist.c (do_show_revocation_reason): New.
7911         (show_revocation_reason): New and called at various places.
7913         * g10.c (main): Fixed small typo.
7915         * pkclist.c (do_we_trust): Act on always_trust but not for revoked
7916         keys. Suggested by Chip Salzenberg.
7918         * g10.c: New option --lock-never.
7920         * ringedit.c (get_writable_keyblock_file): New.
7921         * keygen.c (do_generate_keypair): Use this instead of the hardwired one.
7923         * keygen.c (ask_user_id): Check that the email address is in the
7924         correct field.  Suggested by Christian Kurz.
7926 Mon Apr 10 13:34:19 CEST 2000  Werner Koch  <wk@openit.de>
7928         * keyedit.c (show_key_with_all_names): s/sbb/ssb/
7930 Tue Mar 28 14:26:58 CEST 2000  Werner Koch  <wk@openit.de>
7932         * trustdb.c (verify_own_keys): Do not print warning about unprotected
7933         key when in quiet mode.
7935 Wed Mar 22 13:50:24 CET 2000  Werner Koch  <wk@openit.de>
7937         * mainproc.c (print_userid): Do UTF8 conversion before printing.
7938         * import.c (import_one): Ditto.
7939         (import_secret_one): Ditto.
7940         (delete_inv_parts): Ditto.
7942 Thu Mar 16 16:20:23 CET 2000  Werner Koch  <wk@openit.de>
7944         * keylist.c (print_key_data): Handle a NULL pk gracefully.
7946         * getkey.c (merge_one_pk_and_selfsig): Fixed silly code for
7947         getting the primary keys keyID but kept using the one from the
7948         subkey.
7949         * pubkey-enc.c (get_it): Print a note for expired subkeys.
7951         * getkey.c (has_expired): New.
7952         (subkeys_expiretime): New.
7953         (finish_lookup): Check for expired subkeys needed for encryption.
7954         (merge_keys_and_selfsig): Fixed expiration date merging for subkeys.
7956         * keylist.c (list_keyblock): Print expiration time for "sub".
7957         (list_one): Add missing merging for public keys.
7958         * mainproc.c (list_node): Ditto.
7960 2000-03-14 13:49:38  Werner Koch  (wk@habibti.openit.de)
7962         * keygen.c (keyedit_menu): Do not allow to use certain commands
7963         while the secret key is selected.
7965 2000-03-09 12:53:09  Werner Koch  (wk@habibti.openit.de)
7967         * keygen.c (ask_expire_interval): Movede parsig to ...
7968         (parse_expire_string): ... this new function. And some new control
7969         commands.
7970         (proc_parameter_file): Add expire date parsing.
7971         (do_generate_keypair): Allow the use of specified output files.
7973 2000-03-08 10:38:38  Werner Koch  (wk@habibti.openit.de)
7975         * keygen.c (ask_algo): Removed is_v4 return value and the commented
7976         code to create Elg keys in a v3 packet. Removed the rounding
7977         of key sizes here.
7978         (do_create): Likewise removed arg v4_packet.
7979         (gen_elg): Likewise removed arg version. Now rounding keysizes here.
7980         (gen_dsa): Rounding keysize now here.
7981         (release_parameter_list): New
7982         (get_parameter*): New.
7983         (proc_parameter_file): New.
7984         (read_parameter_file): New.
7985         (generate_keypair): Splitted. Now uses read_parameter_file when in
7986         batch mode.  Additional argument to specify a parameter file.
7987         (do_generate_keypair): Main bulk of above fucntion and uses the
7988         parameter list.
7989         (do_create): Don't print long notice in batch mode.
7990         * g10.c (main): Allow batched key generation.
7992 Thu Mar  2 15:37:46 CET 2000  Werner Koch  <wk@gnupg.de>
7994         * pubkey-enc.c (get_it): Print a note about unknown cipher algos.
7996         * g10.c (opts): Add a note to the help listing about the man page
7997         and removed some options from the help listing.
7999         * keyedit.c (print_and_check_one_sig): Use a new function to truncate
8000         the output of the user ID.  Suggested by Jan-Benedict Glaw.
8002 Wed Feb 23 10:07:57 CET 2000  Werner Koch  <wk@gnupg.de>
8004         * helptext.c: typo fix.
8006 Thu Feb 17 13:39:32 CET 2000  Werner Koch  <wk@gnupg.de>
8008         * revoke.c: Removed a bunch of commented code.
8010         * packet.h (SIGSUBPKT_REVOC_REASON): New.
8011         * build-packet.c (build_sig_subpkt): Support new sub packet.
8012         * parse-packet.c (parse_one_sig_subpkt): Ditto.
8013         (dump_sig_subpkt): Ditto.
8014         * revoke.c (ask_revocation_reason): New.
8015         (release_revocation_reason_info): New.
8016         (revocation_reason_build_cb): New.
8017         (gen_revoke): Ask for reason.
8018         * main.h (struct revocation_reason_info): Add declaration.
8019         * keyedit.c (menu_revsig): Add support for revocation reason.
8020         (menu_revkey): Ditto.
8021         (sign_uid_mk_attrib): Renamed to ...
8022         (sign_mk_attrib): ... this, made static and add support for reasons.
8024 Tue Feb 15 08:48:13 CET 2000  Werner Koch  <wk@gnupg.de>
8026         * build-packet.c (build_packet): Fixed fixing of old comment packets.
8028         * import.c (import_keys): Fixed importing from stdin when called with
8029         nnames set to zero as it normally happens.
8031 Mon Feb 14 14:30:20 CET 2000  Werner Koch  <wk@gnupg.de>
8033         * sig-check.c (check_key_signature2): Add new arg r_expired.
8034         (do_signature_check): New arg to pass it down to ...
8035         (do_check): New arg r-expire which is set when the signature
8036         has expired.
8037         * trustdb.c (check_sig_record): Set SIGF_EXPIRED flag and set
8038         the expiretime to zero so that thi signature will not be checked
8039         anymore.
8041 Fri Feb 11 17:44:40 CET 2000  Werner Koch  <wk@gnupg.de>
8043         * g10.c (g10_exit): Update the random seed_file.
8044         (main): Set the random seed file.  New option --no-random-seed-file.
8046 Thu Feb 10 17:39:44 CET 2000  Werner Koch  <wk@gnupg.de>
8048         * keyedit.c (menu_expire): Fixed segv due to unitialized sub_pk.
8049         By Rémi.
8051 Thu Feb 10 11:39:41 CET 2000  Werner Koch  <wk@gnupg.de>
8053         * keylist.c (list_keyblock): Don't print warnings in the middle of
8054         regulat output lines.  By Rémi.
8056         * sig-check.c: Include options.h
8058 Wed Feb  9 15:33:44 CET 2000  Werner Koch  <wk@gnupg.de>
8060         * gpg.c: New option --ignore-time-conflict
8061         * sig-check.c (do_check): Implemented this option.
8062         * trustdb.c (check_trust): Ditto.
8063         * sign.c (do_sign): Ditto.
8064         * keygen.c (generate_subkeypair): Ditto.
8066         * encode.c (encode_simple): use iobuf_cancel after open failure.
8067         Reported by Huy Le.
8069 Fri Jan 14 18:32:01 CET 2000  Werner Koch  <wk@gnupg.de>
8071         * packet.h (STRING2KEY): Changed mode from byte to int.
8072         * parse-packet.c (parse_key): Add the special GNU protection stuff
8073         * build-packet.c (so_secret_key): Ditto.
8074         * seckey-cert.c (do_check): Ditto.
8075         * keyedit.c (change_passphrase): Ditto.
8076         * export.c (export_secsubkeys): New.
8077         (do_export_stream): Hack to export the primary key using mode 1001.
8078         * g10.c: New command --export-secret-subkeys
8080 Thu Jan 13 19:31:58 CET 2000  Werner Koch  <wk@gnupg.de>
8082         * armor.c (is_armored): Check for 1-pass-sig packets. Reported by
8083         David Hallinan <hallinan@rtd.com>.
8084         (armor_filter): Replaced one LF by the LF macro.  Reported by
8085         Wolfgang Redtenbacher.
8087 Wed Jan  5 11:51:17 CET 2000  Werner Koch  <wk@gnupg.de>
8089         * g10.c (main): Reset new global flag opt.pgp2_workarounds
8090         when --openpgp is used.
8091         * mainproc.c (proc_plaintext): Do the PGP2,5 workarounds only
8092         when the global flag is set.
8093         (proc_tree): Ditto.
8094         * textfilter.c (copy_clearsig_text): Ditto.
8095         * armor.c (armor_filter): Ditto.
8097         * g10.c: New option --list-only
8098         * mainproc.c (proc_tree): Don't do it if opt.list_only is active.
8099         (proc_pubkey_enc): Implement option.
8101         * status.h, status.c ({BEGIN,END}_{EN,DE}CRYPTION): New.
8102         * cipher.c (cipher_filter): New status outputs.
8103         * mainproc.c (proc_encrypted): New status outputs.
8105 Fri Dec 31 14:08:15 CET 1999  Werner Koch  <wk@gnupg.de>
8107         * armor.c (armor_filter): Made the "Comment:" header translatable.
8109         * hkp.c (hkp_import): Make sure that the program does not return
8110         success when there is a connection problem.  Reported by Phillip Jones.
8112 Sun Dec 19 15:22:26 CET 1999  Werner Koch  <wk@gnupg.de>
8114         * armor.c (LF): Use this new macro at all places where a line LF
8115         is needed.  This way DOSish textfiles should be created when the
8116         input data is also in dos mode.
8117         * sign.c (LF): Ditto.
8118         * textfilter.c (LF): Ditto.
8119         (copy_clearsig_text): Disabled the forcing of CR,LF sequences
8120         for DOS systems.
8122         * plaintext.c (handle_plaintext): Fixes for line endings on DOS.
8123         and react on a LF in cleartext.
8124         * armor.c (fake_packet): Restore the original line ending after
8125         removing trailing spaces.
8127         * signal.c (got_fatal_signal): DOS fix.
8129 Thu Dec 16 10:07:58 CET 1999  Werner Koch  <wk@gnupg.de>
8131         * mainproc.c (print_failed_pkenc): Fix for unknown algorithm.
8132         Found by fygrave@epr0.org.
8134 Thu Dec  9 10:31:05 CET 1999  Werner Koch  <wk@gnupg.de>
8136         * hkp.c: i18n the strings.
8138 Sat Dec  4 15:32:20 CET 1999  Werner Koch  <wk@gnupg.de>
8140         * trustdb.c (verify_key): Shortcut for ultimately trusted keys.
8142 Sat Dec  4 12:30:28 CET 1999  Werner Koch  <wk@gnupg.de>
8144         * pkclist.c (build_pk_list): Validate the trust using the namehash
8145         if this one has been set by the key lookup.
8147         * g10.c: Add --delete-secret-key to the help page.
8149         * openfile.c (copy_options_file): Made static.
8150         (try_make_homedir): New.
8151         * ringedit.c (add_keyblock_resource): Use the try_make_hoemdir logic.
8152         * tdbio.c (tdbio_set_dbname): Likewise.
8154         * keygen.c (generate_user_id): Use m_alloc_clear() here. We should
8155         better use an allocation function specific to the user_id packet.
8157         * keygen.c (keygen_add_std_prefs): Changed symmetric preferences
8158         to include Blowfish again.  This is due to it's better speed compared
8159         to CAST5.
8161         * g10.c (strusage): Print the home directory.
8163         * armor.c (armor_filter): Take action on the cancel control msg.
8164         * filter.h (armor_filter_context_t): Add cancel flag.
8166 Mon Nov 29 21:52:11 CET 1999  Werner Koch  <wk@gnupg.de>
8168         * g10.c: New option --fast-list-mode ..
8169         * keylist.c (list_keyblock): .. and implemented.
8170         * mainproc.c (list_node): Ditto.
8172         * import.c (mark_non_selfsigned_uids_valid): Fixed the case that there
8173         is a uid without any packet following.
8175 Mon Nov 22 11:14:53 CET 1999  Werner Koch  <wk@gnupg.de>
8177         * mainproc.c (proc_plaintext): Never enable the hash processing
8178         when skip_verify is active.
8180         * armor.c (parse_header_line): Stop parsing on a WS line too.
8181         Suggested by Aric Cyr.
8183         * tdbdump.c (HEXTOBIN): Changed the name of the argument, so that
8184         traditional cpp don't mess up the macros. Suggested by Jos Backus.
8186         * mainproc.c (list_node): Print the PK algo in the --with-colon mode.
8187         * keylist.c (list_keyblock): Ditto.
8189         * signal.c (got_fatal_signal): Found the reason why exit(8) did not
8190         work - it is better to set the disposition back to default before
8191         raising the signal.  Print the notice on stderr always.
8193 Fri Nov 12 20:33:19 CET 1999  Werner Koch  <wk@gnupg.de>
8195         * g10.c (make_username): Swapped the logic.
8196         * keylist.c (public_key_list): Now takes a STRLIST as arg and moved
8197         the creation ot this list to the caller, so that he can copy with
8198         UTF-conversion of user IDs.  Changed all callers.
8199         (secret_key_list): Likewise.
8201         * getkey.c (get_user_id_string_native): New and ...
8202         * encode.c (write_pubkey_enc_from_list): ... use it here.
8204         * pubring.asc: Updated.
8206         * packet.h (PKT_PHOTO_ID): New.
8207         * parse-packet.c (parse_photo_id): New.
8208         * build-packet.c (do_user_id: Handle photo IDs.
8209         (build_packet): Change CTB for photo IDs
8210         * free-packet.c (free_user_id): Release memory used for photo IDs
8211         * sig-check.c (hash_uid_node): Handle photo IDs too.
8212         * trustdb.c (print_uid_from_keyblock): Hash photo ID.
8213         (make_uid_records): Ditto.
8214         * getkey.c (find_by_name): Ditto.
8215         * keyedit.c (show_prefs): Ditto.
8216         * keylist.c (list_keyblock): Ditto.
8218 Thu Oct 28 16:08:20 CEST 1999  Werner Koch  <wk@gnupg.de>
8220         * keygen.c (ask_expire_interval): Print a warning for systems
8221         with a signed 32 time_t if the exiration time is beyoind 2038.
8223 Fri Oct  8 20:40:50 CEST 1999  Werner Koch  <wk@gnupg.de>
8225         * ringedit.c (enum_keyblocks): The last fix way really stupid;
8226         reverted and set rt to Unknown.
8228 Fri Oct  8 20:32:01 CEST 1999  Werner Koch  <wk@gnupg.de>
8230         * ringedit.c (enum_keyblocks): Zero the entire kbpos out on open.
8232         * g10.c (oEntropyDLL): Removed option.
8233         (main): Made the warning on development versions more verbose.
8235         * g10.c (oHonorHttpProxy): New option.
8236         * hkp.c (hkp_ask_import,hkp_export): Implement this option.
8237         * options.skel: Enable this option for new installations
8239 Mon Oct  4 21:23:04 CEST 1999  Werner Koch  <wk@gnupg.de>
8241         * import.c (import_keys): Changed calling interface, adjusted caller.
8242         (import): Moved printing of stats out ...
8243         (print_stats): New. ... to here.
8244         (import_keys_stream): Call stats print here.
8245         (import_keys): Print stats as totals for all files.
8247         * tdbio.h (DIRF_NEWKEYS): New
8248         * tdbio.c (tdbio_dump_record): Print the new flag.
8249         * trustdb.c (check_trust_record): New arg sigs_only.  Adapted all
8250         callers.
8251         (do_update_trust_record): Removed recheck arg and add a new sigs_only
8252         do we can later improve on the performance.  Changed all callers too.
8253         (check_trustdb): Evalutate the new flag and add a status output.
8254         Do a check when the dir record has not been checked.
8255         (build_cert_tree): Evaluate the new flag.
8256         (check_trust): Ditto.  Do a trust_record check, when the dir record
8257         is not marked as checked.
8258         (mark_fresh_keys): New.
8259         (clear_lid_table): New.
8260         (sync_trustdb): New.
8261         * import.c (import_keys): Call sync_trustdb() after processing.
8262         (import_keys_stream): Ditto.
8263         * tdbdump.c (import_ownertrust): Ditto.
8265         * import.c (import_revoke_cert): Notify the trust DB.
8266         (do_update_trust_record): Use |= to set the REVOKED bit and not &=;
8267         shame on me for this bad copy+paste introduced bug.
8268         (do_we_trust): Add trustmask to allow revoked key override to work.
8269         Chnaged are to allow return of a mofified trustlevel. Adapted the
8270         one caller.
8272         * g10.c: New options --emulate-3des-s2k-bug
8273         * passphrase.c (hash_passphrase): Implemented above.
8275         * mainproc.c (proc_tree): Check for standalone signatures.
8276         (do_check_sig): Print a notice for a standalone revocation
8277         (check_sig_and_print): Do not print an error for unchecked standalone
8278         revocations.
8280 Tue Sep 28 20:54:37 CEST 1999  Werner Koch  <wk@gnupg.de>
8282         * encode.c (encode_simple): Use new CTB when we don't have the
8283         length of the file.  This is somewhat strange as the comment above
8284         indicates that this part is actually fixed for PGP 5 - maybe I simply
8285         lost the source line, tsss.
8287         * armor.c (armor_filter): Set a flag if no OpenPGP data has been found.
8288         * verify.c (verify_signatures): Add an error helptext.
8290 Thu Sep 23 19:24:30 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8292         * openfile.c (open_outfile): Fixed the 8dot3 handling.
8294         * passphrase.c (passphrase_to_dek): Print uid using utf8 func.
8295         * delkey.c (delete_key): Ditto.
8296         * pkclist.c (show_paths,do_edit_ownertrust,do_we_trust): Ditto
8297         (do_we_trust_pre): Ditto.
8298         * trustdb.c (print_user_id,check_uidsigs): Ditto.
8299         * revoke.c (gen_revoke,ask_revoke_sig): Ditto.
8301 Thu Sep 23 09:52:58 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8303         * verify.c (print_file_status): New.
8304         (verify_one_file): Moved status print to th new fnc. Add error status.
8305         * status.c, status.h (STATUS_FILE_ERROR): New
8307 Wed Sep 22 10:14:17 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8309         * openfile.c (make_outfile_name): Use case-insenstive compare for
8310         DOS systems.  Add ".pgp" to the list of know extensions.
8311         (open_outfile): For DOS systems try to replace the suffiy instead of
8312         appending it.
8314         * status.c, status.h: Add STATUS_FILE_{START,DONE}.
8315         * verify.c (verify_one_file): Emit these new stati.
8317         * sign.c (clearsign_file): Avoid duplicated Entries in the "Hash:"
8318         line.  Those headers are now only _not_ printed when there are
8319         only old-style keys _and_ all hashs are MD5.
8321 Mon Sep 20 12:24:41 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8324         * verify.c (verify_files, ferify_one_file): New.
8325         * g10.c:  New command --verify-files
8327 Fri Sep 17 12:56:42 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8329         * g10.c: Add UK spelling as alias for armor options ;-)
8331         * import.c (append_uid): Fixed a SEGV when there is no selfsig and
8332         no subkey.
8333         (merge_sigs): Ditto.  Removed the assertion.
8335 Wed Sep 15 16:22:17 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8337         * g10.c: New option --entropy-dll-name
8339 Mon Sep 13 10:51:29 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8341         * signal.c (got_fatal_signal): Print message using write(2) and
8342         only for development versions.
8344 Mon Sep  6 19:59:08 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8346         * tdbio.c (tdbio_set_dbname): Use mkdir macro
8347         * ringedit.c (add_keyblock_resource): Ditto.
8349 Fri Sep  3 10:04:45 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8351         * pkclist.c (build_pk_list): Skip keys set with --encrypt-to also
8352         when asking for a key.
8354         * plaintext.c (handle_plaintext): Make sure that we don't read a
8355         second EOF in the read loop for partial length packets.
8357         * mainproc.c (check_sig_and_print): print user ID as utf-8.
8359 Thu Sep  2 16:40:55 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8361         * import.c (merge_blocks): First add new subkeys, then merge subkey
8362         certificates.
8363         (merge_sigs): Don't merge subkey signatures here.
8365 Wed Sep  1 15:30:44 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8367         * keygen.c (ask_expire_interval): Fixed bug related to cpr_xx (tnx
8368         Francis J. Lacoste).
8370 Tue Aug 31 17:20:44 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8372         * plaintext.c (do_hash): Hash CR,LF for a single CR.
8373         (ask_for_detached_datafile): Changed arguments to be closer to
8374         those of hash_datafiles and cleanup the code a bit.
8375         * mainproc.c (proc_tree): Workaround for pgp5 textmode detached
8376         signatures.  Changed behavior of asking for data file to be the same
8377         as with provided data files.
8379         * keylist.c (list_keyblock): Use UTF8 print functions.
8381 Mon Aug 30 20:38:33 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8383         * import.c (chk_self_sigs): some s/log_error/log_info/ so that gpg
8384         does not return an error if a key has some invalid packets.
8386         * helptext.c: Fixed some typos and changed the way the
8387         translation works.  The english text is now the keyword for gettext
8388         and not anymore the keyword supplied to the function.  Done after
8389         some discussion with Walter who thinks this is much easier for the
8390         translators.
8392         * misc.c (disable_core_dumps): Don't do it for DOSish systems.
8394         * signal.c (signal_name): Bounds check on signum.
8396 Wed Aug  4 10:34:18 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8398         * pubring.asc: Updated.
8400         * pkclist.c (do_we_trust_pre,check_signatures_trust): Do not print
8401         the warning about --always_trust when --quiet is used.
8403         * pkclist.c (fpr_info): New and called at several places.
8405         * parse-packet.c (dump_sig_subpkt): List revocation key contents.
8407 Mon Jul 26 09:34:46 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8409         * pkclist.c (build_pk_list): Fixed typo in format string.
8411         * trustdb.c (create_shadow_dir): Don't translate the error string.
8413         * g10.c (main): Fixed spelling of user-id.
8414         * getkey.c (find_by_name_pk,find_by_name_sk,
8415         find_by_keyid,find_by_keyid_sk): Ditto and translate it.
8416         * import.c (mark_non_selfsigned_uids_valid,delete_inv_parts): Ditto.
8419 Mon Jul 26 01:01:39 CEST 1999  Michael Roth <mroth@nessie.de>
8421         * g10.c, options.h: New options --no-literal and --set-filesize
8423         * encode.c (encode_simple, encode_crypt): Support for the options
8424         --no-literal and --set-filesize.
8426         * sign.c (sign_file): ditto.
8428 Fri Jul 23 13:53:03 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8431         * ringedit.c (enum_keyblocks): Removed annoying error message in cases
8432         when we have no keyring at all to enum.
8434         * getkey.c (classify_user_id): Rewrote to relax the recognition of
8435         keyIDs and fingerprints (Michael).
8437         * mainproc.c (check_sig_and_print): Print status NO_PUBKEY.
8438         (print_failed_pkenc): Print status NO_SECKEY.
8440         * import.c (mark_non_selfsigned_uids_valid): New.
8441         * g10.c: New option --allow-non-selfsigned-uid.
8443         * pkclist.c (print_fpr): New.
8444         (do_we_trust_pre): Print the fpr before asking whether to use the key
8445         anyway.
8446         (do_edit_ownertrust): Likewise.
8448 Thu Jul 22 20:03:03 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8451         * ringedit.c (enum_keyblocks): Removed annoying error message in cases
8452         when we have no keyring at all to enum.
8454         * getkey.c (classify_user_id): Rewrote to relax the recognition of
8455         keyIDs and fingerprints (Michael).
8457         * mainproc.c (check_sig_and_print): Print status NO_PUBKEY.
8458         (print_failed_pkenc): Print status NO_SECKEY.
8460         * import.c (mark_non_selfsigned_uids_valid): New.
8461         * g10.c: New option --allow-non-selfsigned-uid.
8463 Thu Jul 15 10:15:35 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8465         * g10.c: New options --disable-{cipher,pubkey}-algo.
8467 Wed Jul 14 19:42:08 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8469         * status.h (STATUS_IMPORTED): New.
8470         * import.c (import): Print some status information (Holger Schurig).
8472         * g10.c (main): Make --no-greeting work again. Add a warning when
8473         --force-mds is used.
8475 Tue Jul 13 17:39:25 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8477         * pkclist.c (do_edit_ownertrust): Changed the way help works.
8478         (build_pk_list): Implemented default recipient stuff.
8479         * g10.c: New options --default-recipient[-self]
8480         (main): Suppress greeting in most cases, entering a passphrase or
8481         a missing value is not considered to be interactive use.
8482         Merged --print-md and --print-mds; the latter is now obsolete.
8483         Changed the way --gen-random works and documented it.
8484         Changed the way --gen-prime works and add a man entry.
8485         * g10.c (MAINTAINER_OPTIONS): Removed.
8487 Mon Jul 12 18:45:57 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8489         * keyedit.c (keyedit_menu): Add arg sign_mode and changed callers
8490         * g10.c (main): New command --lsign-key.
8492 Mon Jul 12 14:55:34 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8494         * mainproc.c (kidlist_item): New.
8495         (release_list): Release failed pk-enc-list.
8496         (print_failed_pkenc): New
8497         (proc_encrypted): Print info about failed PK enc.
8499         * openfile.c (make_outfile_name): s/error/info/
8501         * passphrase.c (passphrase_to_dek): Return an empty passphrase when
8502         in batch mode and don't make the warning message fatal
8503         * seckey-cert.c (check_secret_key): Try only once when in batch mode.
8505         * g10.c (make_username): New.
8507 Thu Jul  8 16:21:27 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8510         * packet.h (PKT_ring_trust): New
8511         * parse-packet.c (parse_trust): Store trust value
8512         * build-packet (build_packet): Ignore ring trust packets.
8513         * mainproc.c (add_ring_trust): New.
8514         (list_node): Print "rtv" records.
8515         * g10.c: New option --with-fingerprint.
8517         * trustdb.c (verify_own_keys): Don't insert if we are dry running
8518         (check_trust): Ditto.
8520 Wed Jul  7 13:08:40 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8522         * Makefile.am: Support for libtool.
8524         * keygen.c (ask_expire_interval): Hack to allow for an expire date.
8526         * trustdb.c (do_update_trust_record,update_trust_record): Splitted.
8527         (check_trust_record): New.
8528         (check_trust,build_cert_tree): Check the dir record as needed.
8529         (upd_pref_record): Removed.
8530         (make_pref_record): New.
8531         (propagate_validity): Stop as soon as we have enough validity.
8533         * tbdio.c (MAX_CACHE_ENTRIES_HARD): Increased the limit.
8536 Fri Jul  2 11:45:54 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8538         * g10.c (g10_exit): Dump random stats.
8540         * sig-check.c (check_key_signature,check_key_signature2): Enhanced
8541         version and wrapper for old function.
8542         (do_signature_check,signature_check): Ditto.
8544 Thu Jul  1 12:47:31 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8547         * keyedit.c (show_key_with_all_names): Print a notice for disabled keys.
8548         (enable_disable_keys): Add functionality
8549         * pkclist.c (edit_ownertrust): preserve disabled state.
8550         (build_pk_list): Skip disabled keys.
8551         * trustdb.c (upd_one_ownertrust): Ditto.
8552         (build_cert_tree): Mask the ownertrust.
8553         (trust_letter): Mask the value.
8554         (do_check): Take disabled flag into account.
8556         * passphrase.c (passphrase_to_dek): Add a pubkey_algo arg and changed
8557         all callers.
8559         * g10.c (utf8_strings): 2 new options.
8561         * trustdb.c (insert_trust_record_by_pk): New, replaces the next one.
8562         (insert_trust_record): Now takes a keyblock as arg.  Changed all
8563         callers to use the appropritae function.
8565         * openfile.c (ask_outfile_name): New.
8566         * plaintext.c (handle_plaintext): Ask for filename if there is
8567         no valid syntax. Don't use fname varbatim but filter it.
8569 Tue Jun 29 21:44:25 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8572         * trustdb.h (TRUST_FLAG_DISABLED): New.
8574         * status.c (USE_CAPABILITIES): Capabilities support (Remi).
8576         * tdbio.c : Added new fields to the DIR record.
8577         (tdbio_write_record): Fixed the update of the hash tables.
8578         (tdbio_delete_record): Drop the record from the hash tables.
8579         (drop_from_hashtbl): New.
8581         * status.c (cpr_get): Special online help mode.
8582         * helptext.c ("keyedit.cmd"): Removed.
8583         * keyedit.c (keyedit_menu): Use only help system.
8584         (enable_disable_key): New bit doies not yet work.
8586 Sat Jun 26 12:15:59 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8589         * dearmor.c (enarmor_file): Fixed comment string.
8590         * tdbdump.c (export_ownertrust): Text fix.
8591         * tbio.c (tdbio_invalid): Ditto.
8593         * parse-packet.c (parse_key): Made temp buffer larger.
8595         * Makefile.am (install-data-local): Add missing backslashes
8597 Tue Jun 15 12:21:08 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8599         * g10.c (main): Made iterated+salted the default S2K method.
8601         * Makefile.am (install-data-local): Use DESTDIR.
8603         * passphrase.c (passphrase_to_dek): Emit missing-passphrase while in
8604         batchmode.
8606         * parse-packet.c (parse_pubkeyenc): Fixed a SEGV.
8608 Mon Jun 14 21:18:54 CEST 1999 Michael Roth <mroth@nessie.de>
8610         * g10.c: New options --openpgp, --no-tty, --emit-version,
8611           --default-comment and --lock-multiple
8613 Thu Jun 10 14:18:23 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8615         * free-packet.c (free_encrypted): Fixed EOF case (Remi).
8616         (free_plaintext): Ditto.
8618         * helptext.c (keyedit.delsig.unknown): New (Remi).
8619         * keyedit.c (print_and_check_one_sig): Add arg print_without_key and
8620         changed all callers to make use of it (Remi):
8622 Tue Jun  8 13:36:25 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8624         * keylist.c (print_key_data): New and called elsewhere.
8625         * g10.c: New option --with-key-data
8627 Wed Jun  2 14:17:19 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8629         * mainproc.c (proc_tree): Yet another bad hack to cope with
8630         broken pgp2 created detached messages in textmode.
8632 Tue Jun  1 16:01:46 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8634         * openfile.c (make_outfile_name): New.
8635         * plaintext.c (handle_plaintext): Outputfile is now the inputfile
8636         without the suffix.
8637         * g10.c: New option --use-embedded-filename
8639 Mon May 31 19:41:10 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8641         * g10.c (main): Fix for SHM init (Michael).
8643         * compress.c, encr-data.c, mdfilter.c,
8644           plaintext.c, free-packet.c: Speed patches (Rémi).
8646 Thu May 27 09:40:55 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8648         * status.c (cpr_get_answer_yes_no_quit): New.
8649         * keyedit.c (menu_delsig): New.
8650         (check_all_keysigs): Splitted.
8651         (print_and_check_one_sig): New.
8653 Wed May 26 14:36:29 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8655         * build-packet.c (build_sig_subpkt): Support large packets.
8656         * parse-packet.c (enum_sig_subpkt): Replaces parse_sig_subpkt.
8657         * mainproc.c (print_notation_data): Print all notation packets.
8658         * g10.c (add_notation_data): Add a way to specify the critical flag.
8659         (main): Add option --set-policy-url.
8660         (check_policy_url): Basic checks.
8661         * sign.c (mk_notation_and_policy): Replaces mk_notation.
8663         * parse-packet.c (can_handle_critical): Moved decision whether we can
8664         handle critical subpacket to an extra function.
8666 Tue May 25 19:50:32 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8668         * sign.c (sign_file): Always use compression algo 1 for signed
8669         onyl file becuase we can´ be sure the the verifier supports other
8670         algorithms.
8672         * build-packet.c (build_sig_subpkt): Support for notation data.
8673         * sign.c (sign_file,clearsign_file,make_keysig_packet): Ditto.
8674         (mk_notation): New.
8675         * g10.c (add_notation_data): New and add option -N
8676         * mainproc.c (print_notation_data): New.
8677         (check_sig_and_print): Print any notation data of the signed text.
8679 Sun May 23 14:20:22 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8681         * pkclist.c (check_signatures_trust): Print a warning and return
8682         immediateley if opt.always_trust is true.
8684         * g10.c (main): Corrected handling of no-default-keyring
8686         * pkclist.c (algo_available): Disable Twofish until we have settled
8687         how to do the MDC.
8689         * hkp.c: Disable everything for mingw32
8691 Sat May 22 22:47:26 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8693         * mainproc.c (check_sig_and_print): Add sig creation time to the
8694         VALIDSIG status output. Add more info to the ERRSIG output.
8695         * sig-check.c (signature_check): Add sig time after epoch to SIG_ID.
8697         * import.c (import_one): Merge duplicate user IDs.
8698         (collapse_uids): New.
8699         * kbnode.c (move_kbnode): New.
8700         (remove_kbnode): New.
8701         * keyedit.c (keyedit_menu): Call collapse_uids.
8703         * g10.c: new option --logger-fd.
8705         * import.c: s/log_*_f/log_*/
8707 Thu May 20 14:04:08 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8709         * misc.c (pull_in_libs): do the volatile only for gcc
8711         * sig-check (signature_check): Emit SIG_iD only for classes 0 and 1.
8713         * armor.c (armor_filter): Add detection of PGP2 created clearsigs.
8714         (fake_packet): A tab is not a WS for pgp2 - handle this.
8715         * textfilter.c (len_without_trailing_chars): New.
8716         (copy_clearsig_text): Add pgp2mode arg.
8717         * sign.c (clearsign_file): pass old_style to the above fnc.
8720 Wed May 19 16:04:30 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8722         * g10.c: New option --interactive.
8724         * mainproc.c (proc_plaintext): Add workaround for pgp2 bug
8725         (do_check_sig): Ditto.
8726         (proc_tree): Ditto.
8727         * plaintext.c (do_hash): Ditto.
8728         (hash_datafiles): Ditto, add an arg, changed all callers.
8729         * mdfilter.c (md_filter): Add support for the alternate hash context.
8731 Mon May 17 21:54:43 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8733         * parse-packet.c (parse_encrypted): Support for PKT_ENCRYPTED_MDC.
8734         * build-packet.c (do_encrypted_mdc): Ditto.
8735         * cipher.c (write_header): Add mdc hashing.
8736         (cipher_filter): write out the hash.
8737         * mainproc.c (do_proc_packets): Add PKT_ENCRYPTED_MDC.
8738         * encr-data.c (decrypt_data): Add mdc hashing.
8739         (mdc_decode_filter): New.
8741         * parse-packet.c (parse_sig_subpkt): Fixed stupid bug for subpkt
8742         length calculation
8743         (parse_signature): Fixed even more stupid bug.
8745 Sat May  8 19:28:08 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8747         * build-packet.c (do_signature): Removed MDC hack.
8748         * encode.c (encode_crypt_mdc): Removed.
8749         * mainproc.c (do_check_sig): Removed MDC hack.
8750         (check_sig_and_print): Ditto.
8751         * parse-packet.c (parse_signature): Ditto.
8752         * sig-check.c (mdc_kludge_check): Ditto.
8753         * free-packte.c (copy_signature, free_seckey_enc): Ditto.
8755         * parse-packet.c (parse_signature,parse_key): Store data of
8756         unknown algorithms with mpi_set_opaque inseatd of the old
8757         faked data stuff.
8758         (read_rest): Removed.
8759         (read_rest2): Renamed to read_rest
8760         * build-packet.c (write_fake_data): Use mpi_get_opaque.
8761         * free-packet.c (cp_fake_data): Removed and cahnged all callers
8762         to use mpi_copy.
8763         (free_pubkey_enc,free_seckey_enc,release_public_key_parts,
8764          release_secret_key_parts): Use mpi_free for opaque data.
8766 Thu May  6 14:18:17 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8768         * trustdb.c (check_trust): Check for revoked subkeys.
8769         * pkclist.c (do_we_trust): Handled revoked subkeys.
8770         (do_we_trust_pre): Ditto.
8771         (check_signatures_trust): Ditto.
8773         * build-packet.c (hash_public_key): Fix for ancient g10 keys.
8775         * mainproc.c (do_proc_packets): Return EOF if no data has been read.
8776         * g10.c (main): Catch errors for default operation.
8778 Thu Apr 29 12:29:22 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8780         * sign.c (sign_file): Fixed hashing in case of no subpackets.
8781         (clearsign_file): Ditto.
8782         (make_keysig_packet): Ditto.
8784 Wed Apr 28 13:03:03 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8786         * keyedit.c (keyedit_menu): Add new command revkey.
8787         * (menu_revkey): New.
8790 Mon Apr 26 17:48:15 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8792         * parse-packet.c (parse_signature): Add the MDC hack.
8793         * build-packet.c (do_signature): Ditto.
8794         * free-packet.c (free_seckey_enc,copy_signature,cmp_signatures): Ditto.
8795         * mainproc.c (do_check_sig): Ditto.
8796         * sig-check.c (mdc_kludge_check): New.
8797         * encode.c (encrypt_mdc_file): New.
8799         * keyedit.c (check_all_keysigs): List revocations.
8800         * (menu_revsig): New.
8801         * sign (make_keysig_packet): Support for class 0x30.
8803 Sun Apr 18 20:48:15 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8805         * pkclist.c (select_algo_from_prefs): Fixed the case that one key
8806         has no preferences (Remi Guyomarch).
8808         keylist.c (list_keyblock): ulti_hack to propagate trust to all uids.
8810 Sun Apr 18 10:11:28 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8812         * seckey-cert.c (do_check): Use real IV instead of a 0 one, so that
8813         it works even if the length of the IV doesn't match the blocksize.
8814         Removed the save_iv stuff.
8815         (protect_secret_key): Likewise.  Create the IV here.
8816         * packet.h (PKT_secret_key): Increased size of IV field and add a
8817         ivlen field.
8818         * parse-packet.c (parse_key): Use the len protect.ivlen.
8819         * build-packet.c (do_secret_key). Ditto.
8821         * getkey.c (key_byname): Close keyblocks.
8823         * Makefile.am (gpgm): Removed this
8824         * g10.c: Merged gpg and gpgm
8826         * import.c (import): Utilize option quiet.
8827         * tdbio.c (tdbio_set_dbname): Ditto.
8828         * ringedit.c (add_keyblock_resource,keyring_copy): Ditto.
8830         * keyedit.c (sign_uids): Add some batch support.
8832         * g10.c (main): add call to tty_batchmode.
8834 Fri Apr  9 12:26:25 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8836         * status.c (write_status_text): Some more status codes.
8837         * passphrase_to_dek (passphrase_to_dek): add a status code.
8838         * seckey_cert.c (check_secret_key): Likewise.
8840         * encr-data.c (decrypt_data): Reverse the last changes
8841         * cipher.c (write_header): Ditto.
8843         * parse-packet.c (parse_key): Dropped kludge for ancient blowfish mode.
8845 Thu Apr  8 09:35:53 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8847         * mainproc.c (proc_encrypted): Add a new status output
8848         * passphrase.c (passphrase_to_dek): Ditto.
8849         * status.h status.c: Add new status tokens.
8851 Wed Apr  7 20:51:39 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8853         * encr-data.c (decrypt_data): Fixes for 128 bit blocksize
8854         * cipher.c (write_header): Ditto.
8855         * seckey-cert.c (do_check): Ditto.
8856         (protect_secret_key). Ditto.
8857         * misc.c (print_cipher_algo_note): Twofish is now a standard algo.
8859         * keygen.c (do_create): Fixed spelling (Gaël Quéri)
8860         (ask_keysize): Only allow keysizes up to 4096
8862         * ringedit.c (add_keyblock_resource): chmod newly created secrings.
8864         * import.c (delete_inv_parts): Fixed accidently deleted subkeys.
8866 Tue Apr  6 19:58:12 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
8868         * armor.c: Removed duped include (John Bley)
8869         * mainproc.c: Ditto.
8871         * build-packet.c (hash_public_key): Fixed hashing of the header.
8873         * import.c (delete_inv_parts): Allow import of own non-exportable sigs.
8875 Sat Mar 20 13:59:47 CET 1999  Werner Koch  <wk@isil.d.shuttle.de>
8877         * armor.c (fake_packet): Fix for not not-dash-escaped
8879 Sat Mar 20 11:44:21 CET 1999  Werner Koch  <wk@isil.d.shuttle.de>
8881         * g10.c (main): Added command --recv-keys
8882         * hkp.c (hkp_import): New.
8884 Wed Mar 17 13:09:03 CET 1999  Werner Koch  <wk@isil.d.shuttle.de>
8886         * trustdb.c (check_trust): add new arg add_fnc and changed all callers.
8887         (do_check): Ditto.
8888         (verify_key): Ditto.
8889         (propagate_validity): Use the new add_fnc arg.
8890         (print_user_id): Add the FILE arg.
8891         (propagate_ownertrust): New.
8892         * pkclist.c (add_ownertrust_cb): New and changed the add_ownertrust
8893         logic.
8895         * getkey.c (get_keyblock_bylid): New.
8896         * trustdb.c (print_uid_from_keyblock): New.
8897         (dump_tn_tree_with_colons): New.
8898         (list_trust_path): Add colon print mode.
8900         * trustdb.c (insert_trust_record): Always use the primary key.
8902         * encode.c (encode_simple): Added text_mode filter (Rémi Guyomarch)
8903         (encode_crypt): Ditto.
8905         * mainproc.c (proc_pubkey_enc): Added status ENC_TO.
8906         * armor.c (armor_filter): Added status NODATA.
8907         * passphrase.c (passphrase_to_dek): Always print NEED_PASSPHRASE
8908         * seckey_cert.c (check_secret_key): Added BAD_PASS status.
8910         * g10.c (main): Set g10_opt_homedir.
8912 Sun Mar 14 19:34:36 CET 1999  Werner Koch  <wk@isil.d.shuttle.de>
8914         * keygen.c (do_create): Changed wording of the note (Hugh Daniel)
8916 Thu Mar 11 16:39:46 CET 1999  Werner Koch  <wk@isil.d.shuttle.de>
8918         * tdbdump.c: New
8920         * trustdb.c (walk_sigrecs,do_list_sigs,list_sigs,
8921         list_records,list_trustdb,export_ownertrust,import_ownertrust): Moved
8922         to tdbdump.c
8923         (init_trustdb): renamed to setup_trustdb.  Changed all callers.
8924         (do_init_trustdb): renamed to init_trustdb().
8925         * trustdb.c (die_invalid_db): replaced by tdbio_invalid.
8926         * tdbio.c (tdbio_invalid): New.
8928         * import.c (delete_inv_parts): Skip non exportable signatures.
8929         * keyedit.c (sign_uid_mk_attrib): New.
8930         (sign_uids): Add the local argument.
8931         (keyedit_menu): New "lsign" command.
8932         * trustdb.c (register_trusted_key): Removed this and all related stuff.
8933         * g10.c (oTrustedKey): Removed option.
8935         * tdbio.h (dir.valcheck): New trustdb field.
8936         * tdbio.c: Add support for this field
8937         (tdbio_read_modify_stamp): New.
8938         (tdbio_write_modify_stamp): New.
8939         * trustdb.c (do_check): Check against this field. Removed cache update.
8940         (verify_key): Add cache update.
8941         (upd_uid_record): Some functional changes.
8942         (upd_cert_record): Ditto
8944 Wed Mar 10 11:26:18 CET 1999  Werner Koch  <wk@isil.d.shuttle.de>
8946         * keylist.c (list_keyblock): Fixed segv in uid. Print 'u' as
8947         validity of sks.
8949 Mon Mar  8 20:47:17 CET 1999  Werner Koch  <wk@isil.d.shuttle.de>
8951         * getkey.c (classify_user_id): Add new mode 12 (#<lid>).
8953         * seckey-cert.c (check_secret_key): replaced error by info.
8955         * trustdb.c (query_trust_info): Add another arg, changed all callers.
8956         (check_trust): Ditto.
8957         (do_check): Ditto.
8958         (verify_key): Handle namehash.
8959         * keylist.c (list_keyblock): print trust info for user ids.
8961         * sig-check.c (signature_check): Add sig-created to status output.
8963 Tue Mar  2 16:44:57 CET 1999  Werner Koch  <wk@isil.d.shuttle.de>
8965         * textfilter.c (copy_clearsig_text): New.
8966         (clearsign): Removed.
8967         * sign.c (clearsign_file): does not use textfiler anymore.
8969         * keygen.c (ask_user_id): print a note about the used charset.
8971 Tue Mar  2 10:38:42 CET 1999  Werner Koch  <wk@isil.d.shuttle.de>
8973         * sig-check.c (signature_check): sig-id now works for all algos.
8975         * armor.c (armor_filter): Fixed armor bypassing.
8977 Sun Feb 28 19:11:00 CET 1999  Werner Koch  <wk@isil.d.shuttle.de>
8979         * keygen.c (ask_user_id): Don't change the case of email addresses.
8980         (has_invalid_email_chars): Adjusted.
8982         * keylist.c (list_one): Really list serect keys (Remi Guyomarch)
8984         * keyedit.c (menu_select_uid): Add some braces to make egcs happy.
8985         (menu_select_key): Ditto.
8987         * mainproc.c (do_proc_packets): List sym-enc packets (Remi Guyomarch)
8989 Fri Feb 26 17:55:41 CET 1999  Werner Koch  <wk@isil.d.shuttle.de>
8991         * pkclist.c (build_pk_list): Return error if there are no recipients.
8993         * sig-check.c (signature_check): New signature id feature.
8994         * armor.c (make_radic64_string): New.
8996         * mainproc.c (proc_pubkey_enc): early check for seckey availability.
8998         * pkclist.c (do_we_trust_pre): print user id before asking.
9000         * ringedit.c (add_keyblock_resource,get_keyblock_handle): Cleaner
9001         handling of default resource.
9004 Thu Feb 25 18:47:39 CET 1999  Werner Koch  <wk@isil.d.shuttle.de>
9006         * pkclist.c (algo_available): New.
9007         (select_algo_from_prefs): Check whether algo is available.
9009         * ringedit.c (keyring_copy): Take care of opt.dry_run.
9010         (do_gdbm_store): Ditto.
9011         * openfile.c (open_outfile). Ditto.
9012         (copy_options_file): Ditto.
9013         * trustdb.c (update_trustdb): Ditto.
9014         (clear_trust_checked_flag): Ditto.
9015         (update_trust_record): Ditto.
9016         (insert_trust_record): Ditto.
9018 Wed Feb 24 11:07:27 CET 1999  Werner Koch  <wk@isil.d.shuttle.de>
9020         * keylist.c (secret_key_list): Now really list the secret key.
9022         * trustdb.c (do_init_trustdb): New. Init is now deferred.
9024 Mon Feb 22 20:04:00 CET 1999  Werner Koch  <wk@isil.d.shuttle.de>
9026         * getkey.c (lookup_sk): Return G10ERR_NO_SECKEY and not x_PUBKEY.
9028 Fri Feb 19 15:49:15 CET 1999  Werner Koch  <wk@isil.d.shuttle.de>
9030         * pkclist.c (select_algo_from_prefs): retrieve LID if not there.
9032         * armor.c (fake_packet): Replaced ugly lineending handling.
9034         * g10.c (oNoEncryptTo): New.
9035         * pkclist.c (build_pk_list): Implemented this option.
9037         * g10.c (main): Greeting is now printed to stderr and not to tty.
9038         Use add_to_strlist() instead of direct coding.
9040         * import.c (import): Use iobuf_push_filter2.
9042         * mainproc.c (check_sig_and_print): Print all user ids
9043         for good signatures.
9044         * getkey.c (get_pubkeyblock): New.
9046         * import.c (chk_self_sigs): Fixed SEGV for unbounded class 0x18 keys.
9047         (delete_inv_parts): Delete special marked packets.
9049 Tue Feb 16 14:10:02 CET 1999  Werner Koch  <wk@isil.d.shuttle.de>
9051         * g10.c (main): New option --encrypt-to
9053         * pkclist.c (build_pk_list): Implemented encrypt-to.
9055         * parse-packet.c (parse_user_id): Removed the hack to work with
9056         utf-8 strings.
9058         * g10.c (main): Install lockfile cleanup handler.
9059         * tdbio.c (cleanup): Removed: this is now handled by dotlock.
9061 Sat Feb 13 14:13:04 CET 1999  Werner Koch  <wk@isil.d.shuttle.de>
9063         * tdbio.c (tdbio_set_dbname): Init lockhandle for a new trustdb
9065 Wed Feb 10 17:15:39 CET 1999  Werner Koch  <wk@isil.d.shuttle.de>
9067         * g10.c (main): check for development version now in configure
9069         * tdbio.c (tdbio_write_record): Add uid.validity
9070         (tdbio_read_record) : Ditto.
9071         (tdbio_dump_record) : Ditto.
9073         * keygen.c (keygen_add_std_prefs): Replaced Blowfish by Twofish,
9074         removed MD5 and Tiger.
9075         * pubkey-enc.c (get_it): Suppress warning about missing Blowfish
9076         in preferences in certain cases.
9078         * ringedit.c (lock_rentry,unlock_rentry): New.
9080         * getkey.c (key_byname): Pass ret_kb down to lookup_xx.
9082         * armor.c (armor_filter): No output of of empty comment lines.
9083         Add option --no-version to suppress the output of the version string.
9085         * getkey.c: Release the getkey context for auto context variables.
9087 Sun Jan 24 18:16:26 CET 1999  Werner Koch  <wk@isil.d.shuttle.de>
9089         * getkey.c: Changed the internal design to allow simultaneous
9090         lookup of multible user ids
9091         (get_pubkey_bynames): New.
9092         (get_seckey_bynames): New.
9093         (get_seckey_next): New.
9094         (get_seckey_end): New.
9095         * keylist.c (list_one): Use the new functions.
9097         * keylist.c (list_keyblock): add a newline for normal listings.
9099         * g10.c (--recipient): New option name to replace --remote-user
9102 Wed Jan 20 18:59:49 CET 1999  Werner Koch  <wk@isil.d.shuttle.de>
9104         * textfilter.c: Mostly rewritten
9105         * plaintext.c (handle_plaintext): Use now text_filter semantics.
9107 Tue Jan 19 19:34:58 CET 1999  Werner Koch  <wk@isil.d.shuttle.de>
9109         * export.c (export_pubkeys_stream): New.
9110         (do_export_stream): New.
9111         * g10.c (aSendKeys): New command.
9112         * hkp.c (hkp_export): New.
9114         * compress.c (do_uncompress): Hack for algo 1 and 1.1.3
9116 Sun Jan 17 11:04:33 CET 1999  Werner Koch  <wk@isil.d.shuttle.de>
9118         * textfilter.c (text_filter): Now uses iobuf_read_line().
9119         (read_line): Removed.
9121         * armor.c (trim_trailing_spaces): Removed and replaced
9122         by trim_trailing_ws from libutil
9124 Sat Jan 16 12:03:27 CET 1999  Werner Koch  <wk@isil.d.shuttle.de>
9126         * hkp.c (hkp_ask_import): Use only the short keyid
9128 Sat Jan 16 09:27:30 CET 1999  Werner Koch  <wk@isil.d.shuttle.de>
9130         * import.c (import_key_stream): New
9131         (import): New, moved most of import_keys here.
9132         * g10.c: New option --keyserver
9133         * mainproc.c (check_sig_and_print): Hook to import a pubkey.
9135         * pref.c pref.h : Removed
9137         * hkp.c hkp.h: New
9139 Wed Jan 13 14:10:15 CET 1999  Werner Koch  <wk@isil.d.shuttle.de>
9141         * armor.c (radix64_read): Print an error if a bad armor was detected.
9143 Wed Jan 13 12:49:36 CET 1999  Werner Koch  <wk@isil.d.shuttle.de>
9145         * armor.c (radix64_read): Now handles malformed armors produced
9146         by some buggy MUAs.
9148 Tue Jan 12 11:17:18 CET 1999  Werner Koch  <wk@isil.d.shuttle.de>
9150         * ringedit.c (find_keyblock_bysk): New.
9152         * skc_list.c (is_insecure): New.
9153         (build_sk_list): usage check for insecure keys.
9155         * import.c (chk_self_sigs): Add handling for subkeys.
9156         (delete_inv_parts): Skip unsigned subkeys
9158         * sig-check.c (do_check): Print info if the signature is older
9159         than the key.
9160         * keygen.c (generate_subkeypair): Fail on time warp.
9161         * sign.c (do_sign): Ditto.
9163 Sun Jan 10 15:10:02 CET 1999  Werner Koch  <wk@isil.d.shuttle.de>
9165         * armor.c (fake_packet): Fixed not-dash-escaped bug.
9167 Sat Jan  9 16:02:23 CET 1999  Werner Koch  <wk@isil.d.shuttle.de>
9169         * sig-check.c (do_check): Output time diff on error
9171         * status.c (STATUS_VALIDSIG): New.
9172         (is_status_enabled): New.
9173         * mainproc.c (check_sig_and_print): Issue that status message.
9175         * plaintext.c (special_md_putc): Removed
9177         * armor.c (armor_filter): print error for truncated lines.
9179         * free-packet.c (free_encrypted): Revomed call to set_block_mode.
9180         (free_plaintext): Ditto.
9182 Thu Jan  7 18:00:58 CET 1999  Werner Koch  <wk@isil.d.shuttle.de>
9184         * pkclist.c (add_ownertrust): Fixed return value.
9186         * encr-data.c (decrypt_data): Disabled iobuf_set_limit and
9187         iobuf_pop_filter stuff.
9188         * compress.c (handle_compressed): Disabled iobuf_pop_filter.
9190         * packet.h (PKT_secret_key): Add is_primary flag.
9191         * parse-packet.c (parse_key): Set this flag.
9192         * passphrase.c (passphrase_to_dek): Kludge to print the primary
9193         keyid - changed the API: keyid must now hold 2 keyids.
9194         * getkey.c (get_primary_seckey): New.
9195         * seckey-cert.c (do_check): pass primary keyid to passphrase query
9197         * tbdio.c (open_db): removed the atexit
9198         (tdbio_set_dbname): and moved it to here.
9200         * armor.c: Rewrote large parts.
9202 Tue Dec 29 19:55:38 CET 1998  Werner Koch  <wk@isil.d.shuttle.de>
9204         * revoke.c (gen_revoke): Removed compression.
9206         * pkclist.c (do_we_trust_pre): special check for revoked keys
9208         * trustdb.c (update_trust_record): Fixed revoke flag.
9210 Tue Dec 29 14:41:47 CET 1998  Werner Koch  <wk@isil.d.shuttle.de>
9212         * misc.c (disable_core_dumps): Check for EINVAL (Atari)
9214         * getkey (merge_one_pk_and_selfsig): Fixed search of expiredate.
9215         (merge_keys_and_selfsig): Ditto.
9217         * free-packet.c (cmp_public_keys): cmp expire only for v3 packets
9218         (cmp_secret_keys): Ditto.
9219         (cmp_public_secret_key): Ditto.
9221 Wed Dec 23 17:12:24 CET 1998  Werner Koch  <wk@isil.d.shuttle.de>
9223         * armor.c (find_header): Reset not_dashed at every header
9225 Wed Dec 23 13:18:14 CET 1998  Werner Koch  <wk@isil.d.shuttle.de>
9227         * pkclist.c (add_ownertrust): Refresh validity values.
9229         * trustdb.c (enum_cert_paths_print): New arg refresh.
9231         * ringedit.c: Fixed problems fix keyrings
9232         * parse-packet.c (dbg_parse_packet): New debug functions.
9234         * getkey.c (getkey_disable_caches): New.
9235         * import.c (import_keys): Disable caches.
9237 Thu Dec 17 18:31:15 CET 1998  Werner Koch  <wk@isil.d.shuttle.de>
9239         * misc.c (trap_unaligned): Only for glibc 1
9241         * sign.c (write_dash_escaped): Now escapes "From " lines
9242         * g10.c: New option --escape-from-lines
9244         * trustdb.c (sort_tsl_list): New
9245         (list_trust_path): Now prints sorted list.
9246         (enum_cert_paths): Likewise.
9247         (enum_cert_paths_print): New.
9248         (print_paths): New printing format.
9249         * pkclist.c (add_ownertrust): New arg quit.
9250         (edit_ownertrust): New quit selection and does not query
9251         the recipients ownertrust anymore.
9252         (add_ownertrust): Print the ceritficate path.
9255 Mon Dec 14 21:18:49 CET 1998  Werner Koch  <wk@isil.d.shuttle.de>
9257         * parse-packet.c (parse_signature): Now checks for critical bit
9258         (parse_sig_subpkt): Splitted.
9259         (parse_one_sig_subpkt): New.
9260         * sig-check.c (do_check): handle critical bit.
9262 Sun Dec 13 14:10:56 CET 1998  Werner Koch  <wk@isil.d.shuttle.de>
9264         * pcklist.c (select_algo_from_prefs): Preferences should
9265         now work (lost the != ? )
9267 Thu Dec 10 20:15:36 CET 1998  Werner Koch  <wk@isil.d.shuttle.de>
9269         * ringedit.c (gdbm_store): Fix for inserts
9271         * g10.c (main): New option --export-all
9272         * export.c (export_pubkeys): New arg.
9273         (do_export): Now may skip old keys.
9275         * status.c: Minor patches for Sun's cc
9277         * keygen.c (ask_algo): Disabled v3 ElGamal choice, rearranged
9278          the numbers.  Add a warning question when a sign+encrypt key
9279          is selected.
9281         * g10.c (do_not_use_RSA): Removed.
9282         * misc.c (print_pubkey_algo_note): New as replacement for the
9283         do_not_use_RSA() and chnaged all callers.
9284         (print_cipher_algo_note): New.
9285         (print_hash_algo_note): New.
9287         * cipher.c (write_header): Add a call to print_cipher_algo_note.
9288         * seckey-cert.c (protect_secret_key): Ditto
9289         * sign.c (do_sign): Add a call to print_digest_algo_note.
9291         * getkey.c (get_long_user_id_string): New.
9292         * mainproc.c (check_sig_and_print): Changed the format of the
9293         status output.
9295         * encrypt.c (write_pubkey_enc_from_list): print used symmetric cipher.
9297         * pkclist.c (do_we_trust): Changed a message.
9299 Wed Dec  9 13:41:06 CET 1998  Werner Koch  <wk@isil.d.shuttle.de>
9301         * misc.c (trap_unaligned) [ALPHA]: Only if UAC_SIGBUS is defined.
9303         * sign.c (write_dash_escaped): Add the forgotten patch by Brian Moore.
9305         * compress.c (do_uncompress): Fixed the inflating bug.
9308 Tue Dec  8 13:15:16 CET 1998  Werner Koch  <wk@isil.d.shuttle.de>
9310         * trustdb.c (upd_uid_record): Now uses the newest self-signature
9311         (insert_trust_record): Now calls update with recheck set to true.
9312         (register_trusted_key): New.
9313         (verify_own_keys): Enhanced by list of trusted keys.
9315         * g10.c (main): Print a warning when a devel version is used.
9316         (main): New option --trusted-key
9318         * import.c (merge_blocks): Fixed merging of new user ids and
9319         added merging of subkeys.
9320         (append_uid): Ditto.
9321         (merge_keysig): New.
9322         (append_key): New.
9323         * getkey.c (merge_one_pk_and_selfsig): Get the expiration time
9324         from the newest self-signature.
9325         (merge_keys_and_selfsig): Ditto.
9327         * free-packet.c (cmp_secret_key): New.
9330 Fri Nov 27 21:37:41 CET 1998  Werner Koch  <wk@isil.d.shuttle.de>
9332         * g10.c: New option --lock-once
9333         * tdbio.c (open_db): Add an atexit
9334         (cleanup): New.
9335         (tdbio_sync): Add locking.
9336         (tdbio_end_transaction): Ditto.
9337         (put_record_into_cache): Ditto.
9338         * ringedit.c (keyring_copy): Ditto.
9339         (cleanup): New.
9340         (add_keyblock_resource): Add an atexit.
9342 Fri Nov 27 15:30:24 CET 1998  Werner Koch  <wk@isil.d.shuttle.de>
9344          * armor.c (find_header): Another fix for clearsigs.
9346 Fri Nov 27 12:39:29 CET 1998  Werner Koch  <wk@isil.d.shuttle.de>
9349         * status.c (display_help): Removed.
9350         * helptext.c: New and removed the N_() from all cpr_gets.
9353 Fri Nov 20 16:54:52 1998  Werner Koch  (wk@isil.d.shuttle.de)
9355         * g10.c (main): New option --not-dash-escaped
9356         * sign.c (write_dashed_escaped): Ditto.
9357         * armor.c (find_header): Support for NotDashEscaped header.
9359         * getkey.c: print "disabled cache.." only if verbose is used.
9361 Thu Nov 19 07:17:31 1998  Werner Koch  <werner.koch@guug.de>
9363         * parse-packet.c (dump_sig_subpkt): Fixed expire listing
9364         * getkey.c (merge_keys_and_selfsig): Fixed expire calculation.
9365         (merge_one_pk_and_selfsig): Ditto.
9366         * keyedit.c (menu_expire). Ditto.
9367         * keygen.c (keygen_add_key_expire): Ditto.
9368         (ask_expire_interval): New and changed all local function to use
9369         this instead.
9370         (keygen_add_key_expire): Opaque should now be a public key;
9371         changed all callers.
9373         * parse.packet.c (parse): use skip_rest to skip packets.
9375         * keyedit.c (keyedit_menu): New arg for cmdline cmds.
9377 Wed Nov 18 20:33:50 1998  Werner Koch  (wk@isil.d.shuttle.de)
9379         * trustdb.c (check_trustdb): Now rechecks all gived userids.
9380         (collect_paths): Some fixes.
9381         (upd_pref_records): Skips empty items, evaluate all items.
9383         * parse-packet.c (dump_sig_subpkt): Better listing of prefs.
9384         (skip_packet): Now knows about marker packet
9386         * g10.c: removed cmd "--edit-sig".
9388         * pubring.asc: Updated.
9390 Sat Nov 14 14:01:29 1998  Werner Koch  (wk@isil.d.shuttle.de)
9392         * g10.c (main): Changed syntax of --list-trust-path
9393         * trustdb.c (list_trust_path): Replaced max_depth by
9394         opt.max_cert_depth
9396 Fri Nov 13 07:39:58 1998  Werner Koch  <werner.koch@guug.de>
9398         * trustdb.c (collect_paths): Removed a warning message.
9399         (enum_trust_web): Removed.
9400         (enum_cert_paths): New.
9401         * pkclist.c (add_ownertrust): Changed to use enum_cert_paths.
9402         (edit_ownertrust): Now list ceritficates on request.
9403         (show_paths): New.
9405 Wed Nov 11 18:05:44 1998  Werner Koch  <werner.koch@guug.de>
9407         * g10.c (main): New option --max-cert-depth
9408         * tdbio.h: add new fields to ver and dir record.
9409         * tdbio.c: read/write/dump of these fields.
9410         (tdbio_db_matches_options): New.
9411         * trustdb.c: replaced MAC_CERT_DEPTH by opt.max_cert_depth.
9412         (do_check): cache validity and changed other functions
9413         to reset the cached value.
9415         * keylist.c (list_one): Now lists the ownertrust.
9416         * mainproc.c (list_node): Ditto.
9418 Tue Nov 10 10:08:59 1998  Werner Koch  (wk@isil.d.shuttle.de)
9420         * g10.c (g10_exit): Now looks at the new g10_errors_seen.
9421         * mainproc.c (check_sig_and_print): Sets g10_errors_seen.
9423         * *.c : i18n many more strings.
9425         * ringedit.c (locate_keyblock_by_keyid): Add HAVE_LIBGDBM
9426         (locate_keyblock_by_fpr): Ditto.
9428         * g10.c (main): removed unsused "int errors".
9429         (main): Add new option --charset.
9431         * g10.c (main): special message for the unix newbie.
9433 Mon Nov  9 07:17:42 1998  Werner Koch  <werner.koch@guug.de>
9435         * getkey.c (finish_lookup): Kludge to prefere algo 16.
9437         * trustdb.c (new_lid_table): Clear cached item.
9439         * status.c (cpr_get_utf8): New.
9440         * pkclist.c (build_pk_list): Uses this.
9442 Sun Nov  8 17:20:39 1998  Werner Koch  (wk@isil.d.shuttle.de)
9444         * mainproc.c (check_sig_and_print): Why did I use strlen()-1
9445         in the printf? - This truncated the TZ.
9447 Sat Nov  7 15:57:28 1998  me,,,  (wk@tobold)
9449         * getkey.c (lookup): Changes to support a read_next.
9450         (get_pubkey): Fixed a memory leak.
9452         * keylist.c (list_one): Now lists all matching user IDs.
9454 Tue Nov  3 16:19:21 1998  Werner Koch  (wk@isil.d.shuttle.de)
9456         * keygen.c (ask_user_id): Now converted to UTF-8
9458         * g10.c (main): Kludge for pgp clearsigs and textmode.
9460 Fri Oct 30 16:40:39 1998  me,,,  (wk@tobold)
9462         * signal.c (block_all_signals): New.
9463         (unblock_all_signals): New
9464         * tdbio.c (tdbio_end_transaction): Now blocks all signals.
9466         * trustdb.c (new_lid_table): Changed the representation of the
9467         former local_lid_info stuff.
9469         * trustdb.c (update_trust_record): Reorganized the whole thing.
9470         * sig-check.c (check_key_signature): Now handles class 0x28
9473 Wed Oct 28 18:56:33 1998  me,,,  (wk@tobold)
9475         * export.c (do_export): Takes care of the exportable sig flag.
9477 Tue Oct 27 14:53:04 1998  Werner Koch  (wk@isil.d.shuttle.de)
9479         * trustdb.c (update_trust_record): New "fast" parameter.
9481 Sun Oct 25 19:32:05 1998  Werner Koch  (wk@isil.d.shuttle.de)
9483         * openfile.c (copy_options_File): New.
9484         * ringedit.c (add_keyblock_resource): Creates options file
9485         * tdbio.c (tdbio_set_dbname): Ditto.
9487 Sat Oct 24 14:10:53 1998  brian moore <bem@cmc.net>
9489         * mainproc.c (proc_pubkey_enc): Don't release the DEK
9490         (do_proc_packets): Ditto.
9492 Fri Oct 23 06:49:38 1998  me,,,  (wk@tobold)
9494         * keyedit.c (keyedit_menu): Comments are now allowed
9496         * trustdb.c: Rewrote large parts.
9499 Thu Oct 22 15:56:45 1998  Michael Roth  (mroth@nessie.de)
9501         * encode.c: (encode_simple): Only the plain filename without
9502         a given directory is stored in generated packets.
9503         (encode_crypt): Ditto.
9505         * sign.c: (sign_file) Ditto.
9508 Thu Oct 22 10:53:41 1998  Werner Koch  (wk@isil.d.shuttle.de)
9510         * trustdb.c (update_trust_record): Add new optional arg.
9512         * import.c (import_keys): Add statistics output
9513         * trustdb.c (update_trustdb): Ditto.
9514         (insert_trustdb): Ditto.
9516         * tdbio.c (tdbio_begin_transaction): New.
9517         (tdbio_end_transaction): New.
9518         (tdbio_cancel_transaction): New.
9520         * g10.c (main): New option --quit.
9522         * trustdb.c (check_hint_sig): No tests for user-id w/o sig.
9523         This caused an assert while checking the sigs.
9525         * trustdb.c (upd_sig_record): Splitted into several functions.
9527         * import.c (import_keys): New arg "fast".
9528         * g10.c (main): New command --fast-import.
9530 Wed Oct 21 18:19:36 1998  Michael Roth <mroth@nessie.de>
9532         * ringedit.c (add_keyblock_resource): Directory is now created.
9533         * tdbio.c (tdbio_set_dbname): New info message.
9535 Wed Oct 21 11:52:04 1998  Werner Koch  (wk@isil.d.shuttle.de)
9537         * trustdb.c (update_trustdb): released keyblock in loop.
9539         * keylist.c (list_block): New.
9540         (list_all): Changed to use list_block.
9542         * trustdb.c: Completed support for GDBM
9544         * sign.c (only_old_style): Changed the way force_v3 is handled
9545         (sign_file): Ditto.
9546         (clearsign_file): Ditto.
9548         * keygen.c (has_invalid_email_chars): Splitted into mailbox and
9549         host part.
9551         * keylist.c (list_one): Add a merge_keys_and_selfsig.
9552         * mainproc.c (proc_tree): Ditto.
9554 Sun Oct 18 11:49:03 1998  Werner Koch  (wk@isil.d.shuttle.de)
9556         * sign.c (only_old_style): Add option force_v3_sigs
9557         (sign_file): Fixed a bug in sig->version
9558         (clearsign_file): Ditto.
9560         * parse-packet.c (dump_sig_subpkt): New
9562         * keyedit.c (menu_expire): New.
9563         * free-packet.c (cmp_signatures): New
9566 Sat Oct 17 10:22:39 1998  Werner Koch  (wk@isil.d.shuttle.de)
9568         * armor.c: changed output line length from 72 to 64.
9570         * keyedit.c (fix_keyblock): New.
9572 Fri Oct 16 10:24:47 1998  Werner Koch  (wk@isil.d.shuttle.de)
9574         * trustdb.c: Rewrote most.
9575         * tdbio.c: Add cache and generalized hash tables.
9577         * options.h (ENABLE_COMMENT_PACKETS): New but undef'ed.
9578         * encode.c, sign.c, keygen.c: Disabled comment packets.
9579         * export.c (do_export): Comment packets are never exported,
9580         except for those in the secret keyring.
9582         * g10.c (main): Removed option do-no-export-rsa; should be
9583         be replaced by a secpial tool.
9584         * export.c (do_export): Removed the code for the above option.
9586         * armor.c (find_header): Support for new only_keyblocks.
9587         * import.c (import_keys): Only looks for keyblock armors.
9589         * packet.h: replaced valid_days by expiredate and changed all users.
9590         * build-packet.c (do_public_key): calculates valid-days
9591         (do_secret_key): Ditto.
9592         * parse-packet.c (parse_key): expiredate is calucated from the
9593         valid_period in v3 packets.
9594         * keyid.c (do_fingerprint_md): calculates valid_dates.
9596         * keygen.c (add_key_expire): fixed key expiration time for v4 packets.
9598         * armor.c (find_header): A LF in the first 28 bytes
9599         was skipped for non-armored data.
9601 Thu Oct  8 11:35:51 1998  Werner Koch  (wk@isil.d.shuttle.de)
9603         * armor.c (is_armored): Add test on old comment packets.
9605         * tdbio.c (tdbio_search_dir_bypk): fixed memory leak.
9607         * getkey.c: Changed the caching algorithms.
9609 Wed Oct  7 19:33:28 1998  Werner Koch  (wk@isil.d.shuttle.de)
9611         * kbnodes.c (unused_nodes): New.
9613 Wed Oct  7 11:15:36 1998  Werner Koch  (wk@isil.d.shuttle.de)
9615         * keyedit.c (sign_uids): Fixed a problem with SK which could caused
9616         a save of an unprotected key.
9617         (menu_adduid): Ditto.
9619         * keyedit.c (keyedit_menu): Prefs are now correctly listed for
9620         new user ids.
9622         * trustdb.c (update_trust_record): New.
9623         (insert_trust_record): Now makes use of update_trust_record.
9625 Tue Oct  6 16:18:03 1998  Werner Koch  (wk@isil.d.shuttle.de)
9627         * trustdb.c (read_record): replaces most of the tdbio_read_records.
9628         (write_record): Ditto.
9630 Sat Oct  3 11:01:21 1998  Werner Koch  (wk@isil.d.shuttle.de)
9632         * keygen.c (ask_alogo): enable ElGamal enc-only only for addmode.
9634 Wed Sep 30 10:15:33 1998  Werner Koch  (wk@isil.d.shuttle.de)
9636         * import.c (import_one): Fixed update of wrong keyblock.
9638 Tue Sep 29 08:32:08 1998  me,,,  (wk@tobold)
9640         * mainproc.c (proc_plaintext): Display note for special filename.
9641         * plaintext.c (handle_plaintext): Suppress output of special file.
9643 Mon Sep 28 12:57:12 1998  Werner Koch  (wk@isil.d.shuttle.de)
9645         * g10.c (verify_own_keys): Add warning if a key is not protected.
9647         * passphrase (hash_passphrase): Fixed iterated+salted mode and
9648         setup for keysizes > hashsize.
9650         * g10.c (main): New options: --s2k-{cipher,digest,mode}.
9652 Fri Sep 25 09:34:23 1998  Werner Koch  (wk@isil.d.shuttle.de)
9654         * g10.c: Chnaged some help texts.
9656 Tue Sep 22 19:34:39 1998  Werner Koch  (wk@isil.d.shuttle.de)
9658         * passphrase.c (read_passphrase_from_fd): fixed bug for long
9659         passphrases.
9661 Mon Sep 21 11:28:05 1998  Werner Koch  (wk@(none))
9663         * getkey.c (lookup): Add code to use the sub key if the primary one
9664         does not match the usage.
9666         * armor.c (armor_filter): New error message: no valid data found.
9667         (radix64_read): Changes to support multiple messages.
9668         (i18n.h): New.
9669         * mainproc.c (add_onepass_sig): bug fix.
9671 Mon Sep 21 08:03:16 1998  Werner Koch  (wk@isil.d.shuttle.de)
9673         * pkclist.c (do_we_trust): Add keyid to most messages.
9675         * passphrase.c (read_passphrase_from_fd): New.
9676         (have_static_passphrase): New
9677         (get_passphrase_fd): Removed.
9678         (set_passphrase_fd): Removed.
9679         * g10.c (main): passphrase is now read here.
9681         * keyedit.c (keyedit_menu): "help" texts should now translate fine.
9683 Mon Sep 21 06:40:02 1998  Werner Koch  (wk@isil.d.shuttle.de)
9685         * encode.c (encode_simple): Now disables compression
9686         when --rfc1991 is used.
9687         (encode_crypt): Ditto.
9689 Fri Sep 18 16:50:32 1998  Werner Koch  (wk@isil.d.shuttle.de)
9691         * getkey.c (merge_key_and_selfsig): New.
9693 Fri Sep 18 10:20:11 1998  Werner Koch  (wk@isil.d.shuttle.de)
9695         * pkclist.c (select_algo_from_prefs): Removed 3DES kludge.
9697         * seskey.c (make_session_key): Fixed SERIOUS bug introduced
9698         by adding the weak key detection code.
9700         * sign.c (sign_file): Changed aremor header in certain cases.
9702 Tue Sep 15 17:52:55 1998  Werner Koch  (wk@isil.d.shuttle.de)
9704         * mainproc.c (check_sig_and_print): Replaced ascime by asctimestamp.
9706 Mon Sep 14 11:40:52 1998  Werner Koch  (wk@isil.d.shuttle.de)
9708         * seskey.c (make_session_key): Now detects weak keys.
9710         * trustdb (clear_trust_checked_flag): New.
9712         * plaintext.c (handle_plaintext): Does no anymore suppress CR from
9713         cleartext signed messages.
9715 Sun Sep 13 12:54:29 1998  Werner Koch  (wk@isil.d.shuttle.de)
9717         * trustdb.c (insert_trust_record): Fixed a stupid bug in the free
9718         liunked list loops.
9720 Sat Sep 12 15:49:16 1998  Werner Koch  (wk@isil.d.shuttle.de)
9722         * status.c (remove_shmid): New.
9723         (init_shm_comprocess): Now sets permission to the real uid.
9725 Wed Sep  9 11:15:03 1998  Werner Koch  (wk@isil.d.shuttle.de)
9727         * packet.h (PKT_pubkey_enc): New flah throw_keyid, and add logic to
9728         implement it.
9729         * g10.c (main): New Option --throw-keyid
9731         * getkey.c (enum_secret_keys): Add new ar and changed all callers.
9733 Tue Sep  8 20:04:09 1998  Werner Koch  (wk@isil.d.shuttle.de)
9735         * delkey.c (delete_key): Moved from keyedit.c.
9737 Mon Sep  7 16:37:52 1998  Werner Koch  (wk@isil.d.shuttle.de)
9739         * build-packet.c (calc_length_header): New arg new_ctb to correctly
9740         calculate the length of new style packets.
9742         * armor.c (is_armored): Checks for symkey_enc packets.
9744         * pkclist.c (select_algo_from_prefs): 3DEs substitute is now CAST5.
9746 Tue Aug 11 17:54:50 1998  Werner Koch  (wk@isil.d.shuttle.de)
9748         * build-packet.c (do_secret_key): Fixed handling of old keys.
9750         * getkey.c (compare_name): Fixed exact and email matching
9752         * openfile.c (open_outfile): Changed arguments and all callers.
9754 Tue Aug 11 09:14:35 1998  Werner Koch  (wk@isil.d.shuttle.de)
9756         * encode.c (encode_simple): Applied option set-filename and comment.
9757         (encode_crypt): Ditto.
9758         * sign.c (sign_file): Ditto.
9759         * armor.c (armor_filter): Applied option comment.
9761         * encode.c (encode_crypt): Moved init_packet to the begin.
9762         (encode_simple): add an init_packet().
9764         * comment (write_comment): Now enforces a hash sign as the 1st byte.
9766         * import.c (import_one): Add explanation for "no user ids".
9768         * compress.c (do_uncompress): Applied Brian Warner's patch to support
9769         zlib 1.1.3 etc.
9771         * trustdb.c (check_trust): Fixed a problem after inserting new keys.
9773         * getkey (lookup): do not return the primary key if usage is given
9774         (lookup_sk): Ditto and take usage into account.
9776         * status.c (cpr_get_answer_is_yes): add display_help.
9778 Mon Aug 10 10:11:28 1998  Werner Koch  (wk@isil.d.shuttle.de)
9780         * getkey.c (lookup_sk): Now always returns the primary if arg
9781         primary is true.
9782         (lookup): Likewise.
9783         (get_pubkey_byname): Now returns the primary key
9784         (get_seckey_byname): Ditto.
9787 Mon Aug 10 08:34:03 1998  Werner Koch  (wk@isil.d.shuttle.de)
9789         * keyid.c (pubkey_letter): ELG_E is now a small g.
9791 Sat Aug  8 17:26:12 1998  Werner Koch  (wk@isil.d.shuttle.de)
9793         * openfile (overwrite_filep): Changed semantics and all callers.
9795 Sat Aug  8 12:17:07 1998  Werner Koch  (wk@isil.d.shuttle.de)
9797         * status.c (display_help): New.
9799 Thu Aug  6 16:30:41 1998  Werner Koch,mobil,,,  (wk@tobold)
9801         * seskey.c (encode_session_key): Now uses get_random_bits().
9803 Thu Aug  6 07:34:56 1998  Werner Koch,mobil,,,  (wk@tobold)
9805         * ringedit.c (keyring_copy): No more backupfiles for
9806         secret keyrings and add additional warning in case of
9807         a failed secret keyring operation.
9809 Wed Aug  5 11:54:37 1998  Werner Koch  (wk@isil.d.shuttle.de)
9811         * g10.c (check_opts): Moved to main.  Changed def_cipher_algo
9812         semantics and chnaged all users.
9814         * pubkey-enc.c (get_sssion_key): New informational output
9815         about preferences.
9817         * parse-packet.c (parse_symkeyenc): Fixed salted+iterated S2K
9818         (parse_key): Ditto.
9819         * build-packet.c (do_secret_key): Ditto.
9820         (do_symkey_enc): Ditto.
9822 Tue Aug  4 08:59:10 1998  Werner Koch  (wk@isil.d.shuttle.de)
9824         * getkey.c (enum_secret_keys): Now returns only primary keys.
9826         * getkey (lookup): Now sets the new namehash field.
9828         * parse-packet.c (parse_sig_subpkt2): New.
9830         * sign.c (sign_file): one-pass sigs are now emiited reverse.
9831         Preference data is considered when selecting the compress algo.
9833 Wed Jul 29 12:53:03 1998  Werner Koch  (wk@isil.d.shuttle.de)
9835         * free-packet.c (copy_signature): New.
9837         * keygen.c (generate_subkeypair): rewritten
9838         * g10.c (aKeyadd): Removed option --add-key
9840 Mon Jul 27 10:37:28 1998  Werner Koch  (wk@isil.d.shuttle.de)
9842         * seckey-cert.c (do_check): Additional check on cipher blocksize.
9843         (protect_secret_key): Ditto.
9844         * encr-data.c: Support for other blocksizes.
9845         * cipher.c (write_header): Ditto.
9847 Fri Jul 24 16:47:59 1998  Werner Koch  (wk@isil.d.shuttle.de)
9849         * kbnode.c (insert_kbnode): Changed semantics and all callers.
9850         * keyedit.c : More or less a complete rewrite
9852 Wed Jul 22 17:10:04 1998  Werner Koch  (wk@isil.d.shuttle.de)
9854         * build-packet.c (write_sign_packet_header): New.
9856 Tue Jul 21 14:37:09 1998  Werner Koch  (wk@isil.d.shuttle.de)
9858         * import.c (import_one): Now creates a trustdb record.
9860         * g10.c (main): New command --check-trustdb
9862 Mon Jul 20 11:15:07 1998  Werner Koch  (wk@isil.d.shuttle.de)
9864         * genkey.c (generate_keypair): Default key is now DSA with
9865         encryption only ElGamal subkey.
9867 Thu Jul 16 10:58:33 1998  Werner Koch  (wk@isil.d.shuttle.de)
9869         * keyid.c (keyid_from_fingerprint): New.
9870         * getkey.c (get_pubkey_byfprint): New.
9872 Tue Jul 14 18:09:51 1998  Werner Koch  (wk@isil.d.shuttle.de)
9874         * keyid.c (fingerprint_from_pk): Add argument and changed all callers.
9875         (fingerprint_from_sk): Ditto.
9877 Tue Jul 14 10:10:03 1998  Werner Koch  (wk@isil.d.shuttle.de)
9879         * plaintext.c (handle_plaintext): Now returns create error if
9880         the file could not be created or the user responded not to overwrite
9881         the file.
9882         * mainproc.c (proc_plaintext): Tries again if the file could not
9883         be created to check the signature without output.
9885         * misc.c (disable_core_dumps): New.
9886         * g10.c (main): disable coredumps for gpg
9888         * g10.c (MAINTAINER_OPTIONS): New to disable some options
9890 Mon Jul 13 16:47:54 1998  Werner Koch  (wk@isil.d.shuttle.de)
9892         * plaintext.c (hash_datafiles): New arg for better support of
9893         detached sigs. Changed all callers.
9894         * mainproc.c (proc_signature_packets): Ditto.
9896         * g10.c (main): New option "compress-sigs"
9897         * sig.c (sign_file): detached signatures are not anymore compressed
9898         unless the option --compress-sigs is used.
9900 Thu Jul  9 19:54:54 1998  Werner Koch  (wk@isil.d.shuttle.de)
9902         * armor.c: Fixes to allow zero length cleartext signatures
9904 Thu Jul  9 14:52:47 1998  Werner Koch  (wk@isil.d.shuttle.de)
9906         * g10.c (build_list): Now drops setuid.
9907         (main): Changed the way keyrings  and algorithms are registered .
9909 Wed Jul  8 14:17:30 1998  Werner Koch  (wk@isil.d.shuttle.de)
9911         * packet.h (PKT_public_key): Add field keyid.
9912         * parse-packet.c (parse_key): Reset the above field.
9913         * keyid.c (keyid_from_pk): Use above field as cache.
9915         * tdbio.c, tdbio.h: New
9916         * trustdb.c: Moved some functions to tdbio.c.
9917         (print_keyid): New.
9919         * pkclist.c (check_signatures_trust): New.
9921 Wed Jul  8 10:45:28 1998  Werner Koch  (wk@isil.d.shuttle.de)
9923         * plaintext.c (special_md_putc): New.
9924         (handle_plaintext): add clearsig argument
9925         * mainproc.c (proc_plaintext): detection of clearsig
9926         * sign.c (write_dased_escaped): Changed clearsig format
9928 Tue Jul  7 18:56:19 1998  Werner Koch  (wk@isil.d.shuttle.de)
9930         * armor.c (find_header): Now makes sure that there is only one
9931         empty line for clearsigs, as this is what OP now says.
9933 Mon Jul  6 13:09:07 1998  Werner Koch  (wk@isil.d.shuttle.de)
9935         * g10.c (main): New option default-secret-key
9936         * getkey.c (get_seckey_byname): support for this option.
9938 Mon Jul  6 09:03:49 1998  Werner Koch  (wk@isil.d.shuttle.de)
9940         * getkey.c (add_keyring): Keyrings are now added to end of the
9941         list of keyrings.  The first added keyringwill be created.
9942         (add_secret_keyring): Likewise.
9944         * ringedit.c (add_keyblock_resource): Files are created here.
9946         * g10.c (aNOP): Removed
9948         * getkey.c (lookup): Add checking of usage for name lookups
9949         * packet.h (pubkey_usage): Add a field which may be used to store
9950         usage capabilities.
9951         * pkclist.c (build_pk_list): getkey now called with usage arg.
9952         * skclist.c (build_sk_list): Ditto.
9954         * sign.c (clearsign_file): Fixed "Hash:" headers
9956 Sat Jul  4 13:33:31 1998  Werner Koch  (wk@isil.d.shuttle.de)
9958         * trustdb.c (list_ownertrust): New.
9959         * g10.c (aListOwnerTrust): New.
9961         * g10.c (def_pubkey_algo): Removed.
9963         * trustdb.c (verify_private_data): Removed and also the call to it.
9964         (sign_private_data): Removed.
9966 Fri Jul  3 13:26:10 1998  Werner Koch  (wk@isil.d.shuttle.de)
9968         * g10.c (aEditKey): was aEditSig. Changed usage msg.
9970         * keyedit.c: Done some i18n stuff.
9972         * g10.c (do_not_use_RSA): New.
9973         * sign.c (do_sign): Add call to above function.
9974         * encode.c (write_pubkey_enc_from_list): Ditto.
9976 Thu Jul  2 21:01:25 1998  Werner Koch  (wk@isil.d.shuttle.de)
9978         * parse-packet.c: Now is able sto store data of unknown
9979         algorithms.
9980         * free-packet.c: Support for this.
9981         * build-packet.c: Can write data of packet with unknown algos.
9983 Thu Jul  2 11:46:36 1998  Werner Koch  (wk@isil.d.shuttle.de)
9985         * parse-packet.c (parse): fixed 4 byte length header
9987 Wed Jul  1 12:36:55 1998  Werner Koch  (wk@isil.d.shuttle.de)
9989         * packet.h (new_ctb): New field for some packets
9990         * build-packet.c (build_packet): Support for new_ctb
9991         * parse-packet.c (parse): Ditto.
9993 Mon Jun 29 12:54:45 1998  Werner Koch  (wk@isil.d.shuttle.de)
9995         * packet.h: changed all "_cert" to "_key", "subcert" to "subkey".
9997         * free-packet.c (free_packet): Removed memory leak for subkeys.
9999 Sun Jun 28 18:32:27 1998  Werner Koch  (wk@isil.d.shuttle.de)
10001         * import.c (import_keys): Renamed from import_pubkeys.
10002         (import_secret_one): New.
10004         * g10.c (aExportSecret): New.
10006         * export.c (export_seckeys): New.
10008         * parse-packet.c (parse_certificate): Cleaned up.
10009         (parse_packet): Trust packets are now considered as unknown.
10010         (parse_pubkey_warning): New.
10012 Fri Jun 26 10:37:35 1998  Werner Koch  (wk@isil.d.shuttle.de)
10014         * keygen.c (has_invalid_email_chars): New.
10016 Wed Jun 24 16:40:22 1998  Werner Koch  (wk@isil.d.shuttle.de)
10018         * armor.c (armor_filter): Now creates valid onepass_sig packets
10019         with all detected hash algorithms.
10020         * mainproc.c (proc_plaintext): Now uses the hash algos as specified
10021         in the onepass_sig packets (if there are any)
10023 Mon Jun 22 11:54:08 1998  Werner Koch  (wk@isil.d.shuttle.de)
10025         * plaintext.c (handle_plaintext): add arg to disable outout
10026         * mainproc.c (proc_plaintext): disable output when in sigs_only mode.
10028 Thu Jun 18 13:17:27 1998  Werner Koch  (wk@isil.d.shuttle.de)
10030         * keygen.c: Removed all rsa packet stuff, chnaged defaults
10031         for key generation.
10033 Sun Jun 14 21:28:31 1998  Werner Koch  (wk@isil.d.shuttle.de)
10035         * misc.c (checksum_u16): Fixed a stupid bug which caused a
10036         wrong checksum calculation for the secret key protection and
10037         add a backward compatibility option.
10038         * g10.c (main): Add option --emulate-checksum-bug.
10040 Thu Jun 11 13:26:44 1998  Werner Koch  (wk@isil.d.shuttle.de)
10042         * packet.h: Major changes to the structure of public key material
10043         which is now stored in an array and not anaymore in a union of
10044         algorithm specific structures.  These is needed to make the system
10045         more extendable and makes a lot of stuff much simpler. Changed
10046         all over the system.
10048         * dsa.c, rsa.c, elg.c: Removed.
10050 Wed Jun 10 07:22:02 1998  Werner Koch,mobil,,,  (wk@tobold)
10052         * g10.c ("load-extension"): New option.
10054 Mon Jun  8 22:23:37 1998  Werner Koch  (wk@isil.d.shuttle.de)
10056         * seckey-cert.c (do_check): Removed cipher constants
10057         (protect_secret_key): Ditto.
10059 Fri May 29 10:00:28 1998  Werner Koch  (wk@isil.d.shuttle.de)
10061         * trustdb.c (query_trust_info): New.
10062         * keylist.c (list_one): Add output of trust info
10063         * mainproc (list_node): ditto.
10064         * g10.c (main): full trustdb init if -with-colons and any of the
10065         key list modes.
10067 Thu May 28 10:34:42 1998  Werner Koch  (wk@isil.d.shuttle.de)
10069         * status.c (STATUS_RSA_OR_IDEA): New.
10070         * sig-check.c (check_signature): Output special status message.
10071         * pubkey-enc.c (get_session_key): Ditto.
10073         * mainproc.c (check_sig_and_print): Changed format of output.
10074         * passpharse.c (passphrase_to_dek): Likewise.
10076 Wed May 27 13:46:48 1998  Werner Koch  (wk@isil.d.shuttle.de)
10078         * g10.c (aListSecretKeys): New option --list-secret-keys
10079         * keylist.c (std_key_list): Renamed to public_key_list.
10080         (secret_key_list): New
10081         (list_one, list_all): Add support for secret keys.
10082         * getkey.c (get_secret_keyring): New.
10083         * mainproc.c (list_node): Add option --with-colons for secret keys
10085         * sig-check.c (check_key_signature): detection of selfsigs
10086         * mainproc.c (list_node): fixed listing.
10088         * g10.c (aListSecretKeys): New option --always-trust
10089         * pkclist.c (do_we_trust): Override per option added
10091         * status.c (write_status_text): Add a prefix to every output line.
10093 Wed May 27 07:49:21 1998  Werner Koch  (wk@isil.d.shuttle.de)
10095         * g10 (--compress-keys): New.
10096         * options.h (compress_keys): New.
10097         * export.c (export_pubkeys): Only compresses with the new option.
10099 Tue May 26 11:24:33 1998  Werner Koch  (wk@isil.d.shuttle.de)
10101         * passphrase.c (get_last_passphrase): New
10102         (set_next_passphrase): New.
10103         (passphrase_to_dek): add support for the above functions.
10104         * keyedit.c (make_keysig_packet): Add sigclass 0x18,
10105         changed all callers due to a new argument.
10106         * keygen.c (write_keybinding): New
10107         (generate_subkeypair): Add functionality
10108         (ask_algo, ask_keysize, ask_valid_days): Broke out of generate_keypair
10109         (ask_user_id, ask_passphrase): Ditto.
10111 Thu May 21 11:26:13 1998  Werner Koch  (wk@isil.d.shuttle.de)
10113         * g10.c,gpgd.c (main): Does now return an int, so that egcs does
10114         not complain.
10116         * armor.c (fake_packet): Removed erro message and add a noticed
10117         that this part should be fixed.
10119         * sign.c (sign_file): Compression now comes in front of encryption.
10120         * encode.c (encode_simple): Ditto.
10121         (encode_crypt): Ditto.
10123 Tue May 19 16:18:19 1998  Werner Koch  (wk@isil.d.shuttle.de)
10125         * armor.c (fake_packet): Changed assertion to log_error
10127 Sat May 16 16:02:06 1998  Werner Koch  (wk@isil.d.shuttle.de)
10129         * build-packet.c (build_packet): Add SUBKEY packets.
10131 Fri May 15 17:57:23 1998  Werner Koch  (wk@isil.d.shuttle.de)
10133         * sign.c (hash_for): New and used in all places here.
10134         * main.h (DEFAULT_): new macros.
10135         * g10.c  (opt.def_digest_algo): Now set to 0
10137         * compress.c (init_compress): Add support for algo 1
10138         * options.h (def_compress_algo): New
10139         * g10.c (main): New option --compress-algo
10141 Fri May 15 13:23:59 1998  Werner Koch  (wk@isil.d.shuttle.de)
10143         * g10.c (print_mds): New feature to print only one hash,
10144         chnaged formatting.
10146 Thu May 14 15:36:24 1998  Werner Koch  (wk@isil.d.shuttle.de)
10148         * misc.c (trap_unaligned) [__alpha__]: New
10149         * g10.c (trap_unaligned): Add call to this to track down SIGBUS
10150         on Alphas (to avoid the slow emulation code).
10152 Wed May 13 11:48:27 1998  Werner Koch  (wk@isil.d.shuttle.de)
10154         * build-packet.c (do_signature): Support for v4 pakets.
10155         * keyedit.c (make_keysig_packet): Ditto.
10156         * build-packet.c (build_sig_subpkt_from_sig): New.
10157         (build_sig_subpkt): New.
10159         * elg.c (g10_elg_sign): removed keyid_from_skc.
10160         * dsa.c (g10_dsa_sign): Ditto.
10161         * rsa.c (g10_rsa_sign): Ditto.
10162         * keyedit.c (make_keysig_packet): Add call to keyid_from_skc
10164         * sign.c (clearsign_file): Support for v4 signatures.
10165         (sign_file): Ditto.
10167 Wed May  6 09:31:24 1998  Werner Koch  (wk@isil.d.shuttle.de)
10169         * parse-packet.c (do_parse): add support for 5 byte length leader.
10170         (parse_subpkt): Ditto.
10171         * build-packet.c (write_new_header): Ditto.
10173         * packet.h (SIGSUBPKT_): New constants.
10174         * parse-packet.c (parse_sig_subpkt): Changed name, made global,
10175         and arg to return packet length, chnaged all callers
10178 Tue May  5 22:11:59 1998  Werner Koch  (wk@isil.d.shuttle.de)
10180         * keygen.c (gen_dsa): New.
10181         * build_packet.c (do_secret_cert): Support for DSA
10183 Mon May  4 19:01:25 1998  Werner Koch  (wk@isil.d.shuttle.de)
10185         * compress.c: doubled buffer sizes
10186         * parse-packet.c (do_plaintext): now uses iobuf_read/write.
10188 Mon May  4 09:35:53 1998  Werner Koch  (wk@isil.d.shuttle.de)
10190         * seskey.c (encode_md_value): Add optional argument hash_algo,
10191         changed all callers.
10193         * passphrase.c (make_dek_from_passphrase): Removed
10194         * (get_passhrase_hash): Changed name to passphrase_to_dek, add arg,
10195         changed all callers.
10197         * all: Introduced the new ELG identifier and added support for the
10198         encryption only one (which is okay to use by GNUPG for signatures).
10200 Sun May  3 17:50:26 1998  Werner Koch  (wk@isil.d.shuttle.de)
10202         * packet.h (PKT_OLD_COMMENT): New name for type 16.
10203         * parse-packet.c (parse_comment): Now uses type 61
10205 Fri May  1 12:44:39 1998  Werner Koch,mobil,,,  (wk@tobold)
10207         * packet.h (count): Chnaged s2k count from byte to u32.
10208         * seckey-cert.c (do_check): Changed s2k algo 3 to 4, changed
10209         reading of count.
10210         * build-packet.c (do_secret_cert): ditto.
10211         * parse-packet.c (parse_certificate): ditto.
10213         * parse-packet.c (parse_symkeyenc): New.
10214         * build-packet.c (do_symkey_enc): New.
10216 Thu Apr 30 16:33:34 1998  Werner Koch  (wk@isil.d.shuttle.de)
10218         * sign.c (clearsign_file): Fixed "Hash: " armor line.
10220 Tue Apr 28 14:27:42 1998  Werner Koch  (wk@isil.d.shuttle.de)
10222         * parse-packet.c (parse_subpkt): Some new types.
10224 Mon Apr 27 12:53:59 1998  Werner Koch  (wk@isil.d.shuttle.de)
10226         * g10.c (main): Add option --skip-verify.
10227         * mainproc.c (check_sig_and_print): Ditto.
10229         * g10.c (print_mds): Add output for Tiger.
10231         * sign.c (sign_file): Now uses partial length headers if used
10232         in canonical textmode (kludge to fix a bug).
10234         * parse-packet.c (parse_certificate): Changed BLOWFISH id.
10235         * pubkey-enc.c (get_session_key): Ditto.
10236         * seskey.c (make_session_key): Ditto.
10237         * seckey-cert.c (protect_secret_key,do_check): Add BLOWFISH160.
10239 Fri Apr 24 17:38:48 1998  Werner Koch,mobil,,,  (wk@tobold)
10241         * sig-check.c (check_key_signature): Add sig-class 0x14..0x17
10242         * keyedit.c (sign-key): Some changes to start with support of
10243         the above new sig-classes.
10245 Wed Apr 22 09:01:57 1998  Werner Koch,mobil,,,  (wk@tobold)
10247         * getkey.c (compare_name): add email matching
10249 Tue Apr 21 16:17:12 1998  Werner Koch,mobil,,,  (wk@tobold)
10251         * armor.c (armor_filter): fixed missing last LF before CSUM.
10253 Thu Apr  9 11:35:22 1998  Werner Koch  (wk@isil.d.shuttle.de)
10255         * seckey-cert.c (do_check): New; combines all the check functions
10256         into one.
10258         * sign.c: removed all key management functions
10259         * keyedit.c: New.
10261 Thu Apr  9 09:49:36 1998  Werner Koch  (wk@isil.d.shuttle.de)
10263         * import.c (chk_self_sigs): Changed an error message.
10265 Wed Apr  8 16:19:39 1998  Werner Koch  (wk@isil.d.shuttle.de)
10267         * packet.h: packet structs now uses structs from the pubkey,
10268         removed all copy operations from packet to pubkey structs.
10270 Wed Apr  8 13:40:33 1998  Werner Koch  (wk@isil.d.shuttle.de)
10272         * trustdb.c (verify_own_certs): Fixed "public key not found".
10274         * getkey.c (key_byname): New, combines public and secret key search.
10276         * pkclist.c (build_pkc_list): Add new arg usage, changed all callers.
10277         * skclist.c (build_skc_list): Likewise.
10279         * ringedit.c (find_keyblock, keyring_search2): Removed.
10281 Wed Apr  8 09:47:21 1998  Werner Koch  (wk@isil.d.shuttle.de)
10283         * sig-check.c (do_check): Applied small fix from Ulf Möller.
10285 Tue Apr  7 19:28:07 1998  Werner Koch  (wk@isil.d.shuttle.de)
10287         * cipher.c, encr-data.c, seckey-cert.c: Now uses cipher_xxxx
10288         functions instead of blowfish_xxx or cast_xxx
10290 Tue Apr  7 11:04:02 1998  Werner Koch  (wk@isil.d.shuttle.de)
10292         * Makefile.am (g10maint.o): Changed the way it is created.
10294 Mon Apr  6 11:17:08 1998  Werner Koch  (wk@isil.d.shuttle.de)
10296         * misc.c: New.
10297         * keygen.c (checksum,checksum_u16,checksum_mpi): Moved to misc.c
10298         * seckey-cert.c: Kludge for wrong ELG checksum implementation.
10300 Sat Apr  4 20:07:01 1998  Werner Koch  (wk@isil.d.shuttle.de)
10302         * cipher.c (cipher_filter): Support for CAST5
10303         * encr-data.c (decode_filter): Ditto.
10304         (decrypt_data): Ditto.
10305         * seskey.c (make_session_key): Ditto.
10306         * seckey-cert.c (check_elg, check_dsa): Ditto,
10307         (protect_secret_key): Ditto.
10308         * pubkey-enc.c (get_session_key): Ditto.
10309         * passphrase.c (hash_passphrase): Ditto.
10311 Thu Apr  2 20:22:35 1998  Werner Koch  (wk@isil.d.shuttle.de)
10313         * gpgd.c: New
10315 Thu Apr  2 10:38:16 1998  Werner Koch  (wk@isil.d.shuttle.de)
10317         * keygen.c (generate_keypair): Add valid_days stuff.
10318         * trustdb.c (check_trust): Add check for valid_days.
10320 Wed Apr  1 16:15:58 1998  Werner Koch  (wk@isil.d.shuttle.de)
10322         * keygen.c (generate_keypair): Addional question whether the
10323         selected large keysize is really needed.
10325 Wed Apr  1 15:56:33 1998  Werner Koch  (wk@isil.d.shuttle.de)
10327         * seckey-cert.c (protect_secret_key): merged protect_xxx to here.
10329 Wed Apr  1 10:34:46 1998  Werner Koch  (wk@isil.d.shuttle.de)
10331         * Makefile.am (g10maint.c): Changed creation rule, so that it works
10332         on FreeBSD (missing CFLAGS).
10334         * parse-packet.c (parse_subkey): Removed.
10336 Thu Mar 19 15:22:36 1998  Werner Koch  (wk@isil.d.shuttle.de)
10338         * ringedit.c (keyring_enum): Fixed problem with reading too
10339         many packets. Add support to read secret keyrings.
10341         * getkey.c (scan_keyring): Removed
10342         (lookup): New to replace scan_keyring.
10343         (scan_secret_keyring): Removed.
10344         (lookup_skc): New.
10346 Wed Mar 18 11:47:34 1998  Werner Koch  (wk@isil.d.shuttle.de)
10348         * ringedit.c (enum_keyblocks): New read mode 11.
10350         * keyid.c (elg_fingerprint_md): New and changed all other functions
10351         to call this if the packet version is 4 or above.
10353 Tue Mar 17 20:46:16 1998  Werner Koch  (wk@isil.d.shuttle.de)
10355         * parse-packet.c (parse_certificate): Add listing support for subkeys.
10357 Tue Mar 17 20:32:22 1998  Werner Koch  (wk@isil.d.shuttle.de)
10359         * armor.c (is_armored): Allow marker packet.
10361 Thu Mar 12 13:36:49 1998  Werner Koch  (wk@isil.d.shuttle.de)
10363         * trustdb.c (check_trust): Checks timestamp of pubkey.
10364         * sig-check. (do_check): Compares timestamps.
10366 Tue Mar 10 17:01:56 1998  Werner Koch  (wk@isil.d.shuttle.de)
10368         * g10.c (main): Add call to init_signals.
10369         * signal.c: New.
10371 Mon Mar  9 12:43:42 1998  Werner Koch  (wk@isil.d.shuttle.de)
10373         * dsa.c: New
10374         * packet.h, free-packet.c, parse-packet.c : Add support for DSA
10375         * sig-check.c, getkey.c, keyid.c, ringedit.c: Ditto.
10376         * seckey-cert.c: Ditto.
10378         * packet.h : Moved .digest_algo of signature packets to outer
10379         structure. Changed all references
10381 Sun Mar  8 13:06:42 1998  Werner Koch  (wk@isil.d.shuttle.de)
10383         * openfile.c : Support for stdout filename "-".
10385         * mainproc.c (check_sig_and_print): Enhanced status output:
10386         * status.c (write_status_text): New.
10388 Fri Mar  6 16:10:54 1998  Werner Koch  (wk@isil.d.shuttle.de)
10390         * kbnode.c (clone_kbnode): Fixed private_flag.
10392         * mainproc.c (list_node): Output of string "Revoked" as user-id.
10394 Fri Mar  6 14:26:39 1998  Werner Koch  (wk@isil.d.shuttle.de)
10396         * g10.c (main): Add userids to "-kv" and cleaned up this stuff.
10398 Fri Mar  6 12:45:58 1998  Werner Koch  (wk@isil.d.shuttle.de)
10400         * g10.c (main): Changed semantics of the list-... commands
10401         and added a new one. Removed option "-d"
10403         * decrypt.c: New.
10405         * trustdb.c (init_trustdb): Autocreate directory only if it ends
10406         in "/.gnupg".
10408 Thu Mar  5 12:12:11 1998  Werner Koch  (wk@isil.d.shuttle.de)
10410         * mainproc.c (do_proc_packets): New. Common part of proc_packet.
10411         (proc_signature_packets): special version to handle signature data.
10412         * verify.c: New.
10413         * g10.c (aVerify): New.
10414         * plaintext.c (hash_datafiles): New.
10415         * compress.c (handle_compressed): Add callback arg, changed caller.
10417 Thu Mar  5 10:20:06 1998  Werner Koch  (wk@isil.d.shuttle.de)
10419         * g10.c: Is nom the common source for gpg and gpgm
10420         * g10maint.c: Removed
10421         * Makefile.am: Add rule to build g10maint.c
10423 Thu Mar  5 08:43:59 1998  Werner Koch  (wk@isil.d.shuttle.de)
10425         * g10.c (main): Changed the way clear text sigs are faked.
10427 Wed Mar  4 19:47:37 1998  Werner Koch  (wk@isil.d.shuttle.de)
10429         * g10maint.c (aMuttKeyList): New
10430         * keylist.c: New.
10432 Wed Mar  4 17:20:33 1998  Werner Koch  (wk@isil.d.shuttle.de)
10434         * getkey.c (get_pubkey_byname): Kludge to allow 0x prefix.
10436 Tue Mar  3 13:46:55 1998  Werner Koch  (wk@isil.d.shuttle.de)
10438         * g10maint.c (main): New option --gen-random.
10440 Tue Mar  3 09:50:08 1998  Werner Koch  (wk@isil.d.shuttle.de)
10442         * g10.c (aDeleteSecretKey): New.
10443         (aEditSig): Add option "--edit-key" as synonym for "--edit-sig".
10444         (aDeleteSecretKey): New.
10445         * getkey.c (seckey_available): New.
10446         * sign.c (delete_key): Enhanced to delete secret keys, changed all
10447         callers.
10449 Mon Mar  2 21:23:48 1998  Werner Koch  (wk@isil.d.shuttle.de)
10451         * pkc_list.c (build_pkc_list): Add interactive input of user ID.
10453 Mon Mar  2 20:54:05 1998  Werner Koch  (wk@isil.d.shuttle.de)
10455         * pkclist.c (do_we_trust_pre): New.
10456         (add_ownertrust): Add message.
10457         * trustdb.c (enum_trust_web): Quick fix.
10459 Mon Mar  2 13:50:53 1998  Werner Koch  (wk@isil.d.shuttle.de)
10461         * g10.c (main): New action aDeleteKey
10462         * sign.c (delete_key): New.
10464 Sun Mar  1 16:38:58 1998  Werner Koch  (wk@isil.d.shuttle.de)
10466         * trustdb.c (do_check): No returns TRUST_UNDEFINED instead of
10467         eof error.
10469 Fri Feb 27 18:14:03 1998  Werner Koch  (wk@isil.d.shuttle.de)
10471         * armor.c (find_header): Removed trailing CR on headers.
10473 Fri Feb 27 18:02:48 1998  Werner Koch  (wk@isil.d.shuttle.de)
10475         * ringedit.c (keyring_search) [MINGW32]: Open and close file here
10476         because rename does not work on open files. Chnaged callers.
10478 Fri Feb 27 16:43:11 1998  Werner Koch  (wk@isil.d.shuttle.de)
10480         * sig-check.c (do_check): Add an md_enable.
10481         * mainproc.c (do_check_sig): Use md_open in case of detached sig
10482         (proc_tree): Take detached sigs into account.
10484 Fri Feb 27 15:22:46 1998  Werner Koch  (wk@isil.d.shuttle.de)
10486         * g10.c (main): Make use of GNUPGHOME envvar.
10487         * g10main.c (main): Ditto.
10489 Wed Feb 25 11:40:04 1998  Werner Koch  (wk@isil.d.shuttle.de)
10491         * plaintext.c (ask_for_detached_datafile): add opt.verbose to
10492         info output.
10494         * openfile.c (open_sigfile): Try also name ending in ".asc"
10496 Wed Feb 25 08:41:00 1998  Werner Koch  (wk@isil.d.shuttle.de)
10498         * keygen.c (generate_keypair): Fixed memory overflow.
10500 Tue Feb 24 15:51:55 1998  Werner Koch  (wk@isil.d.shuttle.de)
10502         * parse-packet.c (parse_certificate): Support for S2K.
10503         * build-packet.c (do_secret_cert): Ditto.
10504         * keygen.c (gen_elg): Ditto.
10505         * seckey-cert.c (check_elg): Ditto
10506         (protect_elg): Ditto.
10507         * sign.c (chnage_passphrase): Ditto.
10508         * passphrase.c (get_passphrase_hash): Support for a salt and
10509         changed all callers.
10510         (make_dek_from_passphrase): Ditto.
10512 Tue Feb 24 12:30:56 1998  Werner Koch  (wk@isil.d.shuttle.de)
10514         * build-packet.c (hash_public_cert): Disabled debug output.
10516 Fri Feb 20 17:22:28 1998  Werner Koch  (wk@isil.d.shuttle.de)
10518         * trustdb.c (init_trustdb) [MINGW32]: Removed 2nd mkdir arg.
10519         (keyring_copy) [MINGW32]: Add a remove prior to the renames.
10521 Wed Feb 18 18:39:02 1998  Werner Koch  (wk@isil.d.shuttle.de)
10523         * Makefile.am (OMIT_DEPENDENCIES): New.
10525         * rsa.c: Replaced log_bug by BUG.
10527 Wed Feb 18 13:35:58 1998  Werner Koch  (wk@isil.d.shuttle.de)
10529         * mainproc.c (do_check_sig): Now uses hash_public_cert.
10530         * parse-packet.c (parse_certificate): Removed hashing.
10531         * packet.h (public_cert): Removed hash variable.
10532         * free-packet.c (copy_public_cert, free_public_cert): Likewise.
10534         * sig-check.c (check_key_signatures): Changed semantics.
10536 Wed Feb 18 12:11:28 1998  Werner Koch  (wk@isil.d.shuttle.de)
10538         * trustdb.c (do_check): Add handling for revocation certificates.
10539         (build_sigrecs): Ditto.
10540         (check_sigs): Ditto.
10542 Wed Feb 18 09:31:04 1998  Werner Koch  (wk@isil.d.shuttle.de)
10544         * armor.c (armor_filter): Add afx->hdrlines.
10545         * revoke.c (gen_revoke): Add comment line.
10546         * dearmor.c (enarmor_file): Ditto.
10548         * sig-check.c (check_key_signature): Add handling for class 0x20.
10549         * mainproc.c : Ditto.
10551 Tue Feb 17 21:24:17 1998  Werner Koch  (wk@isil.d.shuttle.de)
10553         * armor.c : Add header lines "...ARMORED FILE .."
10554         * dearmor.c (enarmor_file): New.
10555         * g10maint.c (main): New option "--enarmor"
10557 Tue Feb 17 19:03:33 1998  Werner Koch  (wk@isil.d.shuttle.de)
10559         * mainproc.c : Changed a lot, because the packets are now stored
10560         a simple linlked list and not anymore in a complicatd tree structure.
10562 Tue Feb 17 10:14:48 1998  Werner Koch  (wk@isil.d.shuttle.de)
10564         * free_packet.c (cmp_public_certs): New.
10565         (cmp_user_ids): New.
10567         * kbnode.c (clone_kbnode): New.
10568         (release_kbnode): Add clone support.
10570         * ringedit.c (find_keyblock_bypkc): New.
10572         * sign.c (remove_keysigs): Self signatures are now skipped,
10573         changed arguments and all callers.
10575         * import.c : Add functionality.
10577 Tue Feb 17 09:31:40 1998  Werner Koch  (wk@isil.d.shuttle.de)
10579         * options.h (homedir): New option.
10580         * g10.c, g10maint.c, getkey.c, keygen.c, trustdb.c (opt.homedir): New.
10582         * trustdb.c (init_trustdb): mkdir for hoem directory
10583         (sign_private_data): Renamed "sig" to "g10.sig"
10585 Mon Feb 16 20:02:03 1998  Werner Koch  (wk@isil.d.shuttle.de)
10587         * kbnode.c (commit_kbnode): New.
10588         (delete_kbnode): removed unused first arg. Changed all Callers.
10590         * ringedit.c (keyblock_resource_name): New.
10591         (get_keyblock_handle): NULL for filename returns default resource.
10593 Mon Feb 16 19:38:48 1998  Werner Koch  (wk@isil.d.shuttle.de)
10595         * sig-check.s (check_key_signature): Now uses the supplied
10596         public key to check the signature and not any more the one
10597         from the getkey.c
10598         (do_check): New.
10599         (check_signature): Most work moved to do_check.
10601 Mon Feb 16 14:48:57 1998  Werner Koch  (wk@isil.d.shuttle.de)
10603         * armor.c (find_header): Fixed another bug.
10605 Mon Feb 16 12:18:34 1998  Werner Koch  (wk@isil.d.shuttle.de)
10607         * getkey.c (scan_keyring): Add handling of compressed keyrings.
10609 Mon Feb 16 10:44:51 1998  Werner Koch  (wk@isil.d.shuttle.de)
10611         * g10.c, g10maint.c (strusage): Rewrote.
10612         (build_list): New
10614 Mon Feb 16 08:58:41 1998  Werner Koch  (wk@isil.d.shuttle.de)
10616         * armor.c (use_armor): New.
10618 Sat Feb 14 14:30:57 1998  Werner Koch  (wk@isil.d.shuttle.de)
10620         * mainproc.c (proc_tree): Sigclass fix.
10622 Sat Feb 14 14:16:33 1998  Werner Koch  (wk@isil.d.shuttle.de)
10624         * armor.c (armor_filter): Changed version and comment string.
10625         * encode.c, sign.c, keygen.c: Changed all comment packet strings.
10627 Sat Feb 14 12:39:24 1998  Werner Koch  (wk@isil.d.shuttle.de)
10629         * g10.c (aGenRevoke): New command.
10630         * revoke.c: New.
10631         * sign.c (make_keysig_packet): Add support for sigclass 0x20.
10633 Fri Feb 13 20:18:14 1998  Werner Koch  (wk@isil.d.shuttle.de)
10635         * ringedit.c (enum_keyblocks, keyring_enum): New.
10637 Fri Feb 13 19:33:40 1998  Werner Koch  (wk@isil.d.shuttle.de)
10639         * export.c: Add functionality.
10641         * keygen.c (generate_keypair): Moved the leading comment behind the
10642         key packet.
10643         * kbnode.c (walk_kbnode): Fixed.
10645         * g10.c (main): listing armored keys now work.
10647 Fri Feb 13 16:17:43 1998  Werner Koch  (wk@isil.d.shuttle.de)
10649         * parse-packet.c (parse_publickey, parse_signature): Fixed calls
10650         to mpi_read used for ELG b.
10652 Fri Feb 13 15:13:23 1998  Werner Koch  (wk@isil.d.shuttle.de)
10654         * g10.c (main): changed formatting of help output.
10656 Thu Feb 12 22:24:42 1998  Werner Koch  (wk@frodo)
10658         * pubkey-enc.c (get_session_key): rewritten
10661  Copyright 1998,1999,2000,2001,2002,2003,2004,2005,
10662            2006,2007,2008,2009 Free Software Foundation, Inc.
10664  This file is free software; as a special exception the author gives
10665  unlimited permission to copy and/or distribute it, with or without
10666  modifications, as long as this notice is preserved.
10668  This file is distributed in the hope that it will be useful, but
10669  WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
10670  implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.