1 2009-09-04 Werner Koch <wk@g10code.com>
3 * keyedit.c (menu_select_uid): Use IDX ==-1 t select all.
4 (menu_select_key): Ditto.
5 (keyedit_menu) <cmdSELKEY, cmdSELUID>: Allow '*' to select all.
7 2009-09-03 Werner Koch <wk@g10code.com>
9 * keyedit.c (menu_adduid): Pass keyblock to generate_user_id.
10 * keygen.c (generate_user_id): Add arg KEYBLOCK. Factor code out
12 (uid_from_string): ... new.
13 (ask_user_id): Add arg KEYBLOCK and check for duplicates. Fix
16 * Makefile.am (uninstall-local): New.
18 * compress-bz2.c (do_uncompress): Detect unexpected EOF. Fix
21 2009-08-26 Werner Koch <wk@g10code.com>
23 * keyedit.c (menu_revsig): Check for signature right away. Fix
26 2009-08-20 Daiki Ueno <ueno@unixuser.org>
28 * mainproc.c (proc_encrypted): Clear passphrase cached with S2K
29 cache ID if decryption failed.
30 * passphrase.c (passphrase_to_dek_ext): Set dek->s2k_cacheid.
31 * gpgv.c (passphrase_clear_cache): New stub.
33 2009-08-11 Werner Koch <wk@g10code.com>
35 * call-agent.c (get_serialno_cb): New. From ../agent/call-scd.c.
36 (gpg_agent_get_confirmation): New.
37 (select_openpgp): New.
38 (agent_scd_pkdecrypt, agent_scd_pksign): Use it here.
40 2009-08-06 Werner Koch <wk@g10code.com>
42 * skclist.c (build_sk_list): Print INV_SGNR status line.
43 * seckey-cert.c (do_check): Return G10ERR_UNU_SECKEY instead of
46 2009-08-05 Werner Koch <wk@g10code.com>
48 * card-util.c: Enable readline support also in GnuPG-2.
50 * call-agent.c (agent_learn): Always select the card first.
52 * gpg.c: Add --key-edit alias.
54 * call-agent.c (scd_genkey_cb): Forward progress status lines.
56 * card-util.c (generate_card_keys): Remove special case for
57 GnuPG-2. Ask for the keysize and change it.
58 (card_generate_subkey): Ask for the keysize and change it.
59 (get_info_for_key_operation): Read KEY-ATTR.
60 (show_keysize_warning, ask_card_keysize): New.
61 (do_change_keysize): New.
63 2009-07-31 David Shaw <dshaw@jabberwocky.com>
65 * gpg.c (main): --pgp6 includes --disable-mdc.
67 2009-07-23 David Shaw <dshaw@jabberwocky.com>
69 * keyserver.c (keyserver_import_ldap): Try a DNS-SD lookup to find
70 a domain-specific LDAP server before resorting to keys.{domain}.
72 2009-07-22 Werner Koch <wk@g10code.com>
74 * card-util.c (generate_card_keys): Ask for off-card keys only if
76 (get_info_for_key_operation): Read EXTCAP.
77 (card_store_subkey): Check for non matching sizes.
79 * call-agent.h (struct agent_card_info_s): Add field EXTCAP.
80 * call-agent.c (agent_learn): Use a direct SCD command.
81 (did_early_card_test): New.
82 (start_agent): Perform an early test for the card. Add arg FOR_CARD.
83 (status_sc_op_failure): New.
84 (agent_scd_setattr, agent_scd_writekey, agent_scd_genkey)
85 (agent_scd_pksign, agent_scd_pkdecrypt, agent_scd_change_pin)
86 (agent_scd_checkpin): Call new function.
87 (learn_status_cb): Parse KEY_TIME and EXTCAP.
89 * gpg.c (main) <aFixTrustDB>: Show commands to run.
90 * trustdb.c (how_to_fix_the_trustdb): New.
91 * tdbio.c (tdbio_invalid): Show commands to re-create the trustdb.
94 2009-07-20 Werner Koch <wk@g10code.com>
96 * keygen.c (generate_keypair): Allow Elgamal > 3072 in BOTH mode.
97 Reported by Jeroen Schot. Fixes bug#1091.
99 2009-07-17 Werner Koch <wk@g10code.com>
101 * keyring.c (keyring_rebuild_cache): Replace the assert by a
102 proper error message and allow to delete a bad keyblock.
104 2009-07-13 Werner Koch <wk@g10code.com>
106 * exec.c: Fix function name indentation.
107 (expand_args): Simplify by using membuf functions.
108 (exec_write): Fix memory leak on error.
109 (w32_system): Use DETACHED_PROCESS so that a new console is not
112 2009-07-09 Werner Koch <wk@g10code.com>
114 * card-util.c (card_store_subkey): Do not restrict to 1024 bit keys.
115 Print an error message on write errors.
117 * gpg.c (main): Remove the SHA-1 default from the personal digest
118 list. This was used in the past as a hack to avoid preferring
121 * keygen.c (keygen_set_std_prefs): Remove RMD-160 from the list.
122 Change order to SHA-256, SHA-1, SHA-384, SHA-512, SHA-224.
123 (gen_dsa): Use a 256 bit Q for 2048 bit P. Round to FIPS allowed
124 values in non-expert mode.
126 2009-07-07 Werner Koch <wk@g10code.com>
128 * gpg.c (set_opt_session_env): New.
129 (main): Allocate opt.session_env. Use it for oDisplay, oTTYname,
130 oTTYtype and oXauthority.
132 * options.h: Include session_env.h.
133 (opt): Add field SESSION_ENV, remove obsolete fields.
135 * call-agent.c (start_agent): Adjust start_new_gpg_agent for
138 2009-06-24 Werner Koch <wk@g10code.com>
140 * keyedit.c (menu_select_key): Remove dead assign to I.
141 (menu_select_uid): Ditto.
142 * keyring.c (keyring_search): Remove dead assign to NAME.
143 * card-util.c (card_edit): Remove useless DID_CHECKPIN.
144 * call-agent.c (unhexify_fpr): Remove dead op on N.
145 * passphrase.c (passphrase_to_dek_ext): Do not deref a NULL PW.
146 * revoke.c (gen_revoke): Remove unused malloc of PK.
147 * parse-packet.c (mpi_read): Init NREAD.
148 Reported by Fabian Keil.
150 2009-06-17 Werner Koch <wk@g10code.com>
152 * parse-packet.c (parse): Use a casted -1 instead of a 32 bit
153 constant to check for a garbled package. Fixes bug#1040.
155 * card-util.c (put_data_to_file, read_cert): New.
156 (card_edit): Add command "readcert".
157 (fetch_url): Allow code also for this gnupg major version 2.
158 * call-agent.c (agent_scd_readcert): New.
160 2009-06-15 Werner Koch <wk@g10code.com>
162 * keyserver.c (keyserver_search_prompt): No prompt in batch+colons
165 2009-06-09 Werner Koch <wk@g10code.com>
167 * card-util.c (write_sc_op_status): New.
168 (change_pin): Use it.
169 (change_url, change_login, change_private_do, change_cert)
170 (change_lang, change_sex, change_cafpr, toggle_forcesig)
171 (check_pin_for_key_operation): Ditto.
173 2009-06-05 David Shaw <dshaw@jabberwocky.com>
175 * gpg.c (main), misc.c (openpgp_cipher_test_algo): Remove Camellia
178 * misc.c (map_cipher_openpgp_to_gcry), main.h: Add macros for
179 openpgp_cipher_open, openpgp_cipher_get_algo_keylen, and
180 openpgp_cipher_get_algo_blklen to wrap around the corresponding
181 gcry_* functions, but pass the algorithm number through
182 map_cipher_openpgp_to_gcry. This is needed in case the gcry
183 algorithm number doesn't match the OpenPGP number (c.f. Camellia).
185 * encr-data.c, pubkey-enc.c, mainproc.c, cipher.c, encode.c,
186 seskey.c, passphrase.c, seckey-cert.c: Use new openpgp_cipher_*
189 2009-06-02 Werner Koch <wk@g10code.com>
191 * card-util.c (get_manufacturer): Add new manufacturer.
193 2009-05-26 Werner Koch <wk@g10code.com>
195 * parse-packet.c (mpi_read): Workaround for zero-length MPI bug in
198 2009-05-22 Werner Koch <wk@g10code.com>
200 * signal.c (got_fatal_signal): Call new function
201 tty_cleanup_after_signal.
203 2009-05-20 Werner Koch <wk@g10code.com>
205 * gpg.c (main): Fix --fingerprint/--with-fingerprint command
206 detection. Fixes bug#1044.
208 * keygen.c (ask_keysize): Allow selection of DSA key size even
209 without --enable-dsa2.
210 (gen_dsa): Remove size check.
212 * keygen.c (ask_key_flags): Fix bug in the translation check.
215 2009-05-18 Daiki Ueno <ueno@unixuser.org> (wk)
217 * encode.c (encode_simple): Tell passphrase_to_dek to cache
219 (setup_symkey): Ditto.
220 * mainproc.c (proc_symkey_enc): Tell passphrase_to_dek to cache
222 (proc_encrypted): Ditto.
223 * passphrase.c (hash_passphrase): Remove arg CREATE.
224 (passphrase_to_dek): New mode 3 and 4 for caching passphrase for
225 symmetric encryption.
227 2009-05-17 Werner Koch <wk@g10code.com>
229 * keygen.c (ask_algo): Add arg R_SUBKEY_ALGO. Change return value
230 semantics. Change presented order of algorithms. Make RSA+RSA
232 (generate_keypair): Adjust for change.
233 (ask_keysize): Add arg PRIMARY_KEYSIZE for subkey creation.
236 2009-05-15 Werner Koch <wk@g10code.com>
238 * keygen.c (gen_card_key_with_backup): Get the size of the key
240 * call-agent.h (struct agent_card_info_s): Add field KEY_ATTR.
241 * call-agent.c (learn_status_cb): Support KEY-ATTR.
242 * card-util.c (card_status): Print key attributes.
244 2009-05-15 Marcus Brinkmann <marcus@g10code.de>
246 * gpg.c (gpgconf_list): Remove dead entry "allow-pka-lookup" (a
247 verify option for a couple of years now).
249 2009-05-14 Werner Koch <wk@g10code.com>
251 * call-agent.c (agent_get_passphrase): Add arg CHECK.
252 * passphrase.c (passphrase_get): Pass new arg.
254 * keygen.c (gen_card_key_with_backup): Print a status error.
255 (do_generate_keypair): Ditto.
256 (do_ask_passphrase): Add arg MODE.
257 (generate_raw_key): Call with mode 1.
258 * passphrase.c (ask_passphrase): Remove becuase it is not used.
259 (passphrase_to_dek): Factor code out to ...
260 (passphrase_to_dek_ext): .. New. Add args CUSTDESC and CUSTPROMPT.
262 2009-05-13 Werner Koch <wk@g10code.com>
264 * keygen.c (parse_expire_string): Base ISO date string at noon.
265 Also allow full ISO timestamp.
267 2009-05-11 Werner Koch <wk@g10code.com>
269 * parse-packet.c (parse_key): Print the key id in list mode.
271 * skclist.c (build_sk_list): Use log_info for "duplicated entry".
274 * encode.c (encode_simple): Print empty file warning only in
275 verbose mode. Closes bug#1039.
276 (encode_crypt): Ditto.
277 * sign.c (write_plaintext_packet): Ditto.
279 2009-05-10 David Shaw <dshaw@jabberwocky.com>
281 * keyserver.c (keyserver_typemap): gpgkeys_hkp handles hkps as
284 2009-05-06 Werner Koch <wk@g10code.com>
286 * getkey.c (finish_lookup): Remove dead code.
288 * keyring.c (keyring_get_keyblock): Fix memory leak due to ring
289 trust packets. Fixes bug#1034.
291 2009-04-03 Werner Koch <wk@g10code.com>
293 * gpgv.c (main): Open keyrings readonly.
294 * keydb.c (keydb_add_resource): Add readonly flag bit.
295 (keydb_rebuild_caches): Don't act on readonly resources.
297 * keyring.c (keyring_register_filename): Add arg READONLY.
298 (struct keyring_name): Add field READONLY.
299 (keyring_is_writable): Implement readonly feature.
300 (keyring_update_keyblock): Return GPG_ERR_EACCES for readonly
302 (keyring_insert_keyblock, keyring_delete_keyblock):
304 2009-04-01 Werner Koch <wk@g10code.com>
306 * gpg.c (main): Properly handle UTF8 usernames with --sign-key and
307 --lsign-key. From 1.4, David 2008-12-21.
309 2009-03-20 David Shaw <dshaw@jabberwocky.com> (wk)
311 * keyring.c (rename_tmp_file): Force a fsync (via iobuf_ioctl) on
312 secret keyring files to be extra safe on filesystems that may not
313 sync data and metadata together (ext4). Also check return code
314 from the cache invalidation to make sure we're safe over NFS and
317 2009-03-31 Werner Koch <wk@g10code.com>
319 * passphrase.c (ask_passphrase): Use percent_plus_unescape.
320 * misc.c (unescape_percent_string): Remove.
322 * call-agent.c (unescape_status_string): Chnage to use
323 percent_plus_unescape.
325 2009-03-25 Werner Koch <wk@g10code.com>
327 * mainproc.c (print_pkenc_list): Use snprintf.
329 2009-03-17 Werner Koch <wk@g10code.com>
331 * call-agent.c (my_percent_plus_escape): Remove.
332 (agent_get_passphrase): Rewrite using percent_plus_escape.
334 2009-03-17 Daiki Ueno <ueno@unixuser.org>
336 * passphrase.c (passphrase_get): Add extra arg REPEAT and adjust
337 callers; remove special treatment for MODE==2.
338 (passphrase_to_dek): Move --passphrase-repeat handling to
341 * call-agent.c (agent_get_passphrase): Add extra arg REPEAT.
342 * call-agent.h: Ditto.
344 2009-03-16 Werner Koch <wk@g10code.com>
346 * gpg.c (my_strusage): Revert last change. Systems w/o a gpg1 may,
347 and actually do, install gpg2 as gpg.
348 * gpgv.c (my_strusage): Ditto.
350 2009-03-14 David Shaw <dshaw@jabberwocky.com>
352 * gpg.c (my_strusage): gpg2 and gpgv2 (not gpg and gpgv).
353 * gpgv.c (my_strusage): Same.
355 * gpgv.c (my_strusage): Fix name of program in "Syntax" line.
357 2009-02-27 Werner Koch <wk@g10code.com>
359 * call-agent.c (agent_scd_pksign, agent_scd_pkdecrypt): First send
360 the SERIALNO command.
362 2009-02-24 Werner Koch <wk@g10code.com>
364 * pkglue.c (pk_verify): Return an error for improper DATA instead
367 2009-02-09 Werner Koch <wk@g10code.com>
369 * keylist.c (print_capabilities): Take care of cert-only keys.
371 * keyedit.c (show_key_with_all_names_colon): Print the capabilities.
373 2009-01-26 Werner Koch <wk@g10code.com>
375 * card-util.c (card_status): Detect a Geldkarte.
377 2009-01-13 Werner Koch <wk@g10code.com>
379 * call-agent.c (dummy_data_cb): New.
380 (agent_learn): Use it.
381 * card-util.c (card_status): Print type of non-OpenPGP card.
382 * call-agent.h (agent_card_info_s): Add field APPTYPE.
384 2009-01-12 Werner Koch <wk@g10code.com>
386 * getkey.c (finish_lookup): Take care of keys with a zero
387 timestamp. Reported by Peter Gutmann.
389 2009-01-08 Werner Koch <wk@g10code.com>
391 * misc.c (has_invalid_email_chars): Let non-ascii pass through.
393 * cpr.c [USE_SHM_COPROCESSING]: Remove this code.
395 2008-12-12 Werner Koch <wk@g10code.com>
397 * passphrase.c (passphrase_get): Write a STATUS_ERROR.
398 * cpr.c (write_status_error): New.
400 * Makefile.am (common_source): Add rmd160.h.
402 2008-12-11 Werner Koch <wk@g10code.com>
404 * sig-check.c (signature_check2): Change algorithm used to compute
406 (check_revocation_keys): Close message digest.
408 * rmd160.c, rmd160.h: New. Based on code from GnuPG-1.4.
410 * Makefile.am: Add support to run tests.
411 * keyid.c (namehash_from_uid): Use rmd160_hash_buffer.
413 2008-12-10 Werner Koch <wk@g10code.com>
415 * trustdb.h (NAMEHASH_HASH): Remove unsued constant.
417 * gpg.c (print_mds): Print RMD160 only is enabled.
419 * keygen.c (keygen_set_std_prefs): Include RMD160 only if
422 2008-12-09 Werner Koch <wk@g10code.com>
424 * gpg.c (main) [IS_DEVELOPMENT_VERSION]: Fix strusage use.
426 2008-12-09 Werner Koch <wk@g10code.com>
428 * keygen.c (proc_parameter_file): Check that key and subkey usages
431 2008-12-09 David Shaw <dshaw@jabberwocky.com> (wk)
433 * trustdb.c (validate_one_keyblock): Fix the trust signature
434 calculations so that we lower the trust depth of signatures to fit
435 within the current chain, rather than discarding any signature
436 that does not fit within the trust depth.
438 2008-12-09 Werner Koch <wk@g10code.com>
440 * keyserver.c (show_prompt): Flush stdout.
442 * gpg.c (open_info_file): Add arg BINARY and adjust callers.
444 * gpg.c (main): Call i18n_init before init_common_subsystems.
445 * gpgv.c (main): Ditto.
447 * keylist.c (set_attrib_fd): Do not close ATTRIB_FP if it is the
449 (set_attrib_fd) [W32]: Set to binary mode.
450 (dump_attribs): Flush the stream after writing.
452 2008-12-05 Werner Koch <wk@g10code.com>
454 * call-agent.c (percent_plus_escape): Rename to
455 my_percent_plus_escape and also escape the percent character.
458 2008-11-18 Werner Koch <wk@g10code.com>
460 * gpg.c (build_lib_list): Remove.
461 (make_libversion): New.
462 (my_strusage): Use it.
463 * gpgv.c (make_libversion): New.
464 (my_strusage): Print libgcrypt version.
466 2008-11-13 Werner Koch <wk@g10code.com>
468 * gpgv.c: Use new ARGPARSE macros and re-indent.
470 2008-11-11 Werner Koch <wk@g10code.com>
472 * gpg.c (opts): Use new ARGPARSE macros for clarity.
474 2008-10-24 Werner Koch <wk@g10code.com>
476 * keyedit.c (change_passphrase): Clear passphrase cache.
478 2008-10-20 Werner Koch <wk@g10code.com>
480 * gpgv.c: Mark all args of the stub fucntions as unused.
482 * card-util.c (generate_card_keys): Remove unused arg SERIALNO and
485 * build-packet.c (write_sign_packet_header): Mark unused arg.
486 * gpg.c (gpg_init_default_ctrl, gpg_deinit_default_ctrl): Ditto.
487 * getkey.c (skip_unusable): Ditto.
488 (write_version): Ditto.
489 * keydb.c (keydb_locate_writable): Ditto.
490 * keyring.c (update_offset_hash_table): Ditto.
491 (keyring_lock): Ditto.
492 * misc.c (register_secured_file): Ditto.
493 (unregister_secured_file): Ditto.
494 (is_secured_file): Ditto.
495 (is_secured_filename): Ditto.
496 * parse-packet.c (parse_marker): Ditto.
497 (parse_key, parse_attribute): Ditto.
498 (parse_trust, parse_compressed, parse_mdc, parse_gpg_control): Ditto.
499 * cpr.c (progress_cb): Ditto.
500 * passphrase.c (passphrase_clear_cache): Ditto.
501 (ask_passphrase): Ditto.
502 * keyedit.c (keyedit_completion): Ditto.
503 * import.c (import_revoke_cert): Ditto.
504 (chk_self_sigs, delete_inv_parts, append_uid): Ditto.
505 (merge_sigs, merge_keysigs, append_key): Ditto.
506 * trustdb.c (list_trust_path): Ditto.
507 (enum_cert_paths, enum_cert_paths_print): Ditto.
508 * tdbdump.c (list_trustdb): Ditto.
509 * keygen.c (keygen_upd_std_prefs): Ditto.
510 (genhelp_factors): Ditto.
511 * call-agent.c (agent_scd_setattr): Ditto.
512 (agent_scd_writekey, agent_scd_change_pin, agent_scd_genkey): Ditto.
513 (agent_clear_pin_cache): Ditto.
515 * server.c (option_handler): Mark non yet used arg.
516 (input_notify, output_notify): Ditto.
517 (cmd_recipient, cmd_signer, cmd_encrypt, cmd_decrypt, cmd_verify)
518 (cmd_sign, cmd_import, cmd_export, cmd_delkeys, do_listkeys)
520 * verify.c (gpg_verify): Ditto.
522 2008-10-17 Werner Koch <wk@g10code.com>
524 * main.h (idea_cipher_warn): Use do while construct in place of an
527 2008-10-03 David Shaw <dshaw@jabberwocky.com>
529 * main.h, mainproc.c (check_sig_and_print)
530 * keylist.c (list_keyblock_print)
531 * pkclist.c (do_edit_ownertrust)
532 * keyedit.c (menu_showphoto)
533 * photoid.c (generate_photo_id, show_photos)
534 * misc.c (pct_expando): Add %v and %V expandos so
535 that displaying photo IDs can show the attribute validity
536 tag (%v) and string (%V). Originally by Daniel Gillmor.
538 2008-09-29 Werner Koch <wk@g10code.com>
540 * gpg.c (main): Remove -sat kludge. Note that we printed a
541 warning for two years.
543 * seskey.c (encode_md_value): Remove extra gcry_md_test_algo since
544 it is not needed with Libgcrypt 1.4.
545 * skclist.c (random_is_faked): Simplify.
546 * sign.c (match_dsa_hash): Remove runtime check for SHA224.
547 * gpg.c (print_mds): Use GCRY_MD_SHA224 constant.
549 2008-09-25 David Shaw <dshaw@jabberwocky.com>
551 * keyedit.c (keyedit_menu): Fix bug where a modified keyring loses
552 its modified status after a "clean" or "minimize" that doesn't
555 2008-09-25 Werner Koch <wk@g10code.com>
557 * parse-packet.c (parse): Remove special treatment for compressed
558 new style packets. Fixes bug#931.
560 * card-util.c (change_pin): Support setting of the reset code.
562 2008-09-24 Werner Koch <wk@g10code.com>
564 * call-agent.h (struct agent_card_info_s): Add field IS_V2.
565 * call-agent.c (learn_status_cb): That that field.
567 * card-util.c (change_pin): Rename first arg to UNBLOCK_v2 and use
569 (card_edit): Add new command UNBLOCK.
571 2008-09-23 David Shaw <dshaw@jabberwocky.com>
573 * pkclist.c (select_algo_from_prefs): Redo function to rank prefs
574 and pick a consensus winner across all keys.
576 2008-09-16 Werner Koch <wk@g10code.com>
578 * card-util.c (fpr_is_ff): New.
579 (card_status): Do not print general key info for an all-ff fpr.
580 (change_login, change_private_do): Factor common code out to ...
581 (get_data_from_file): .. new.
583 (card_edit): Add command "writecert".
584 * call-agent.c (writecert_parm_s): New.
585 (inq_writecert_parms, agent_scd_writecert): New.
587 2008-09-04 David Shaw <dshaw@jabberwocky.com>
589 * keyserver.c (keyserver_import_cert): Allow keyserver URLs in
590 addition to full URLs in CERT records.
592 2008-08-11 Werner Koch <wk@g10code.com>
594 * keygen.c (ask_expire_interval): Check for time overflow of an
597 2008-08-01 Werner Koch <wk@g10code.com>
599 * tdbio.c (open_db) [!EROFS]: Move closing parens out of the
600 ifdef. Reported by Ken Takusagawa.
602 2008-06-25 Marcus Brinkmann <marcus@g10code.de>
604 * gpg.c (enum cmd_and_opt_values): Remove option
605 oEnableW32HandleTranslation.
606 (opts): Remove option --enable-w32-handle-translation.
607 (main): Remove variable w32_handle_translation.
609 2008-06-19 Werner Koch <wk@g10code.com>
611 * gpg.c (gpgconf_list): Add "group".
613 2008-06-18 Marcus Brinkmann <marcus@g10code.de>
615 * gpg.c (enum cmd_and_opt_values): New option
616 oEnableW32HandleTranslation.
617 (opts): New option --enable-w32-handle-translation.
618 (main): New variable w32_handle_translation to keep track of
621 2008-06-16 Werner Koch <wk@g10code.com>
623 * keygen.c (output_control_s): Add ASK_PASSPHRASE.
624 (read_parameter_file): Add commands %ask-passphrase and
627 2008-06-11 Werner Koch <wk@g10code.com>
629 * gpg.c: Make --fixed-list-mode a dummy.
630 * options.h (struct): Removed FIXED_LIST_MODE.
631 * keyid.c (colon_strtime, colon_datestr_from_pk)
632 (colon_datestr_from_sk, colon_datestr_from_sig)
633 (colon_expirestr_from_sig): Remove fixed_list_mode case.
634 * keylist.c (list_keyblock_colon): Ditto. Remove all now unsed
637 2008-05-31 Werner Koch <wk@g10code.com>
639 * keygen.c (ask_user_id): Change the string printed as header of
640 the user ID generation. Use code to not break existing
641 translations. Suggested by Eric Tetz.
643 2008-05-08 Werner Koch <wk@g10code.com>
645 * sig-check.c (do_check_messages): Print a revocation diagnostic
648 2008-05-07 Werner Koch <wk@g10code.com>
650 * gpg.c: New command --locate-keys. New options --with-sig-list
651 and --with-sig-check.
652 * keylist.c (locate_one): New.
653 (public_key_list): Add arg LOCATE_MODE and use locate_one.
654 * getkey.c (get_pubkey_byname): Fix nodefault case. Add option
655 RETCTX, change all callers.
656 (struct getkey_ctx_s): Add field extra_ptr;
657 (get_pubkey_end): Free it.
659 2008-04-18 Werner Koch <wk@g10code.com>
661 * misc.c (map_cipher_openpgp_to_gcry, map_cipher_gcry_to_openpgp)
662 (openpgp_cipher_test_algo): Add camellia-192.
663 (openpgp_cipher_blocklen): New.
664 * parse-packet.c (parse_key): Use new function here.
666 2008-04-15 David Shaw <dshaw@jabberwocky.com>
668 * getkey.c (merge_selfsigs_subkey): If there are multiple 0x19
669 backsigs, take the most recent one.
671 2008-04-08 Werner Koch <wk@g10code.com>
673 * options.h (opt): Add AKL_NODEFAULT and AKL_LOCAL.
674 * getkey.c (parse_auto_key_locate): Parse them.
675 (get_pubkey_byname): Implement them. Add arg NO_AKL and use that
676 in all cases where a local key is expected.
677 * import.c (import_one): Fill in the fingerprint in all cases.
679 * keyserver.c (keyserver_import_pka): Set FPR to NULL on error.
680 Return G10ERR_NO_PUBKEY if no PKA info is available or no key URI
681 is given in the PKA record..
682 (keyserver_import_cert): Return G10ERR_NO_PUBKEY if a CERT record
685 * getkey.c (get_pubkey_byname): Release FPR in the error case.
686 Continue with next mechanism on error. Better diagnostics.
688 2008-04-07 Werner Koch <wk@g10code.com>
690 * keyserver.c (parse_keyserver_uri): Allow a default host name.
692 * getkey.c (get_pubkey_byname): Replace sprintf by bin2hex.
694 2008-04-02 Werner Koch <wk@g10code.com>
696 * gpg.c (main): Do not allow DSA2 with a too old Libgcrypt.
698 2008-03-26 Werner Koch <wk@g10code.com>
700 * tdbio.c (lookup_hashtable): Make cmp args const.
701 (cmp_trec_fpr): Make FPR const.
702 (tdbio_search_trust_byfpr): Remove cast.
704 2008-03-25 Werner Koch <wk@g10code.com>
706 * keyserver.c (parse_keyrec): Take care of char defaulting to
707 unsigned when using hextobyte.
709 2008-03-25 David Shaw <dshaw@jabberwocky.com> (wk)
711 * import.c (collapse_uids): Fix bug 894: possible memory
712 corruption around deduplication of user IDs.
714 2008-03-25 Werner Koch <wk@g10code.com>
716 * parse-packet.c (parse_key): Parse a secret key encrypted with
719 * options.skel: Make the default keyserver keys.gnupg.net.
721 2008-03-18 Werner Koch <wk@g10code.com>
723 * seckey-cert.c (do_check): Use GCRYMPI_FMT_PGP for v3 keys.
724 Reported by Petr Cerny.
726 2008-03-13 Werner Koch <wk@g10code.com>
728 * passphrase.c (PROMPTSTRING): Change string to me more similar to
731 2008-02-26 Werner Koch <wk@g10code.com>
733 * getkey.c (get_pubkey_byname): Fix comment.
735 2008-02-14 Werner Koch <wk@g10code.com>
737 * call-agent.c (default_inq_cb): New.
738 (agent_learn, agent_scd_getattr, agent_scd_pksign)
739 (agent_scd_pkdecrypt, agent_scd_change_pin, agent_scd_checkpin)
740 (agent_get_passphrase, agent_clear_passphrase): Use new callback.
741 (inq_writekey_parms): Fall back to the new callback for other
743 (start_agent): Tell agent that we accept pinentry notifications.
745 2008-02-11 Werner Koch <wk@g10code.com>
747 * server.c (cmd_getinfo): New.
748 (register_commands): Register GETINFO.
750 2008-02-09 Marcus Brinkmann <marcus@g10code.de>
752 * gpg.c (main): New variable default_configname. Use it if
753 save_configname is NULL (can happen if default configfile does
754 not exist). Move default configname determination to ...
755 (get_default_configname): ... this new function.
757 2008-01-30 Werner Koch <wk@g10code.com>
759 * keydb.c (maybe_create_keyring): Fixed last change.
760 * tdbio.c (tdbio_set_dbname): Also test for forward slash.
762 2008-01-29 Werner Koch <wk@g10code.com>
764 * keydb.c (maybe_create_keyring): Take care of a missing slash.
765 (maybe_create_keyring) [W32]: Also test for forward slash.
767 2008-01-26 Werner Koch <wk@g10code.com>
769 * card-util.c (get_manufacturer): Add vendor 0004.
771 2008-01-02 Werner Koch <wk@g10code.com>
773 * gpg.c: Add --logger-file as an alias for log-file.
775 2007-12-14 Werner Koch <wk@g10code.com>
777 * gpg.c (main): Set opt.no_homedir_creation during the first option
780 2007-12-12 Werner Koch <wk@g10code.com>
782 * misc.c (print_pubkey_algo_note): Print a warning if a type 20
784 (openpgp_pk_test_algo, openpgp_pk_test_algo2)
785 (openpgp_pk_algo_usage): Allow type 20 keys only in rfc2440 mode.
787 2007-12-12 David Shaw <dshaw@jabberwocky.com> (wk)
789 * trustdb.c (sanitize_regexp): New. Protect against dangerous
790 regexps (malloc bombs) by force-commenting any characters aside
791 from the ones we explicitly want.
792 (check_regexp): Use it here before passing the regexp to
795 2007-12-12 Werner Koch <wk@g10code.com>
797 * misc.c (map_cipher_openpgp_to_gcry): New. Used to map Camellia
798 algorithms to Gcrypt.
799 (openpgp_cipher_test_algo): Call new map function. Replace
800 all remaining calls to gcry_cipher_test_algo by a call to this.
801 (openpgp_cipher_algo_name): New. Replace all remaining calls to
802 gcry_cipher_algo_name by a call to this.
803 (map_cipher_gcry_to_openpgp): New.
804 (string_to_cipher_algo): Use it.
805 * gpg.c (main): Print a warning if Camellia support is build in.
807 * gpg.c (print_algo_names): New. From the 1.4 branch by David.
808 (list_config): Use it here for the "ciphername" and "digestname"
809 config items so we can get a script-parseable list of the names.
811 * parse-packet.c (parse_onepass_sig): Sigclass is hex, so include
814 * sign.c (match_dsa_hash): Remove conditional builds dending on
815 USE_SHAxxx. We don't need this becuase it can be expected that
816 libgcrypt provides it. However we need to runtime test for SHA244
817 becuase that is only available with libgcrypt 2.4.
819 2007-12-11 Werner Koch <wk@g10code.com>
821 * mainproc.c (proc_pubkey_enc): Allow type 20 Elgamal key for
824 2007-12-10 Werner Koch <wk@g10code.com>
826 * import.c (auto_create_card_key_stub): Do not clear the entire
827 fingerprint. This finally makes the stub creation work. My past
828 tests seemed to work because there was a key with a all zero
829 fingerprint available (Elgamal signing keys).
831 2007-12-08 Werner Koch <wk@g10code.com>
833 * misc.c (openpgp_pk_algo_usage): Allow Elgamal type 20 for
836 2007-12-04 Werner Koch <wk@g10code.com>
838 * helptext.c (get_help_from_file): New.
839 (display_online_help): Use it to geting the help through a file.
842 2007-12-03 Werner Koch <wk@g10code.com>
844 * keygen.c (ask_key_flags): Add a translation remark and implement
847 * gpg.c (reopen_std): Moved to ../common and renamed to
850 * gpg.c: Remove second inclusion of fcntl.h.
852 2007-11-19 Werner Koch <wk@g10code.com>
854 * keyedit.c (keyedit_menu): String grammar fix.
856 2007-11-15 Werner Koch <wk@g10code.com>
858 * gpg.c (main): New option --xauthority.
859 * call-agent.c (start_agent): Adjust changed start_new_gpg_agent.
861 2007-11-12 Werner Koch <wk@g10code.com>
863 * cpr.c (do_get_from_fd): s/bool/getbool/ to overcome problems
864 with Mac OS 10.5 which seems to include stdbool.h silently.
866 2007-11-07 Werner Koch <wk@g10code.com>
868 Replace all includes of errors.h by status.h (found in common/).
871 * status.h: Move prototypes to main.h.
872 * status.c: Rename to ..
874 (get_status_string): Remove. We take this now from common/.
876 2007-10-25 David Shaw <dshaw@jabberwocky.com> (wk)
880 * gpg.c (main): Add --require-cross-certification to
881 --openpgp/--rfc4880 mode.
883 * gpg.c (main): Disable --rfc2440-text and --force-v3-sigs by
884 default. Enable --require-cross-certification by default.
885 --openpgp (--rfc4880) is the same as --rfc2440 except with
886 "--enable-dsa2 --no-rfc2440-text --escape-from-lines".
888 * misc.c (compliance_option_string, compliance_failure): Minor
891 * armor.c (is_armor_header): Comment about 4880.
893 * options.h, gpg.c (main): Add --rfc4880, and make --openpgp an
894 alias to it. --rfc2440 now stands alone. For now, use the old
895 2440 defaults for 4880.
896 * misc.c (compliance_option_string): Ditto.
898 * keyedit.c (keyedit_menu): Use compliance_option_string() instead
899 of printing the compliance modes here.
901 2007-10-25 David Shaw <dshaw@jabberwocky.com> (wk)
903 From 1.4 (September):
905 * import.c (collapse_uids): Significant speedup for de-duping user
908 2007-10-25 David Shaw <dshaw@jabberwocky.com> (wk)
912 * armor.c (parse_header_line): Improve test so that the header
913 test only allows "Hash" in the signed data section.
915 * armor.c (is_armor_tag): New. Detect if an armor header matches
917 (parse_header_line): Call it here, as bis-21 requires warning the
918 user (but continuing to process the message) when seeing an
921 * encode.c (encode_crypt): Missed one call to
922 setup_plaintext_name(). This is bug#809.
924 * sign.c (mk_notation_policy_etc): Expect all sigs that this is
926 (write_signature_packets, make_keysig_packet): Only call it for
927 >=v4 sigs. This allows --force-v3-sigs and --force-v4-certs to
928 enable or disable notations, policies, and keyserver URLs. This
931 2007-10-19 Werner Koch <wk@g10code.com>
933 * passphrase.c (passphrase_get): Use new utf8 switching fucntions.
935 2007-09-14 Werner Koch <wk@g10code.com>
937 * gpg.c (build_lib_list): New.
938 (my_strusage): Print lib info.
940 2007-08-27 Werner Koch <wk@g10code.com>
942 * trustdb.c (USE_INTERNAL_REGEX): Remove support.
944 2007-08-24 Werner Koch <wk@g10code.com>
946 * keyring.c (keyring_register_filename): Use same_file_p().
948 2007-08-21 Werner Koch <wk@g10code.com>
950 * misc.c (openpgp_md_test_algo): Remove rfc2440bis hash algorithms.
951 (openpgp_cipher_test_algo): Likewise for algos 5 and 6.
953 2007-08-02 Werner Koch <wk@g10code.com>
955 * gpg.c: Include gc-opt-flags.h and remove their definition here.
957 2007-07-17 Werner Koch <wk@g10code.com>
959 * gpg.c (gpgconf_list): Declare --encrypt-to and --default-key.
961 * card-util.c (get_manufacturer): Add the unmanaged S/N range.
963 2007-07-12 Werner Koch <wk@g10code.com>
965 * gpg.c (main): Use translate_sys2libc_fd_int when passing an int
967 * gpgv.c (main): Ditto.
969 2007-07-05 Werner Koch <wk@g10code.com>
971 * card-util.c (card_generate_subkey, card_store_subkey): Enable
972 the code also for GnuPG-2.
974 * keygen.c (make_backsig): Add arg TIMESTAMP.
975 (write_keybinding): Add arg TIMESTAMP, pass it to make_backsig.
976 (write_direct_sig, write_selfsigs): Add arg TIMESTAMP.
977 (gen_elg, gen_dsa, gen_rsa): Add arg TIMESTAMP.
979 (do_generate_keypair): Use the same timestamp for key creation
980 time and all key signatures. Return an error if write_direct_sig
981 for the secret key fails.
982 (generate_subkeypair): Ditto.
983 (gen_card_key): New arg TIMESTAMP.
984 (generate_card_subkeypair): Pass current time to gen_card_key.
985 (gen_card_key_with_backup): New arg TIMESTAMP.
986 (read_parameter_file): Add option Creation-Date.
987 (parse_creation_string): New.
988 (do_generate_keypair): Use the Creation-Date if available.
989 (save_unprotected_key_to_card): Use P for P and not D.
990 * call-agent.c (agent_scd_genkey): Add arg CREATETIME.
991 * keyedit.c (menu_backsign): Use the same timestamp for all backsigs.
993 2007-06-26 Werner Koch <wk@g10code.com>
995 * openfile.c (try_make_homedir): Support W32; use standard_homedir.
997 2007-06-25 Werner Koch <wk@g10code.com>
999 * gpg.c, gpgv.c: Include sysutils.h.
1000 (main): Replace iobuf_translate_file_handle by
1001 translate_sys2libc_fd.
1003 2007-06-21 Werner Koch <wk@g10code.com>
1005 * main.h: Include util.h.
1007 * call-agent.c (start_agent): Factored almost all code out to
1008 ../common/asshelp.c.
1010 * gpg.h (ctrl_t): Remove. It is now declared in ../common/util.h.
1012 2007-06-20 Werner Koch <wk@g10code.com>
1014 * misc.c (setsysinfo, trap_unaligned): Remove. It is also in
1016 (disable_core_dumps, get_session_marker):
1018 * sign.c (sleep): Remove sleep wrapper.
1020 2007-06-18 Marcus Brinkmann <marcus@g10code.de>
1022 * gpg.c (gpgconf_list): Percent escape output of --gpgconf-list.
1024 2007-06-14 Werner Koch <wk@g10code.com>
1026 * call-agent.c (start_agent): Use gnupg_module_name.
1028 2007-06-12 Werner Koch <wk@g10code.com>
1030 * openfile.c (copy_options_file): Use gnupg_datadir.
1031 * misc.c (get_libexecdir): Remove. Changed all callers to use
1033 * gpg.c (check_permissions): Use gnupg_libdir.
1035 * gpg.c (main): Replace some calls by init_common_subsystems.
1036 * gpgv.c (main): Ditto.
1038 2007-06-11 Werner Koch <wk@g10code.com>
1040 * Makefile.am (needed_libs): Use libcommonstd macro.
1042 * gpgv.c (main) [W32]: Call pth_init.
1043 * gpg.c (main) [W32]: Call pth_init.
1045 2007-06-08 Werner Koch <wk@g10code.com>
1047 * Makefile.am (gpg2_LDADD): Syntax fix.
1049 2007-06-06 Werner Koch <wk@g10code.com>
1051 * passphrase.c (passphrase_get) [!ENABLE_NLS]: Do not define
1054 * Makefile.am (gpgv2_LDADD, gpg2_LDADD): Include LDADD before
1057 * plaintext.c (handle_plaintext): Replace eof by eof_seen as W32's
1058 io.h has a symbol with that name.
1060 * misc.c: Do not include dynload.h.
1061 (w32_shgetfolderpath): Remove. It is now in common/homedir.c.
1063 * gpgv.c (i18n_init): Remove.
1064 * gpg.c (i18n_init): Remove.
1065 (main): Make --load-extension a dummy
1067 2007-05-19 Marcus Brinkmann <marcus@g10code.de>
1069 * passphrase.c (passphrase_get): Use PACKAGE_GT, not PACKAGE.
1071 * passphrase.c (passphrase_get): Free ORIG_CODESET on error.
1073 2007-05-16 Werner Koch <wk@g10code.com>
1075 * sig-check.c (check_backsig): Check the digest algorithm before
1076 using it. Fixed bug 797.
1078 2007-05-09 Werner Koch <wk@g10code.com>
1080 * openfile.c (overwrite_filep, open_outfile) [W32]: Need to use
1081 just "nul". Though, I am pretty sure that some MSDOS versions
1082 grok the extra /dev/.
1084 2007-05-07 Werner Koch <wk@g10code.com>
1086 * openfile.c (open_outfile, overwrite_filep) [W32]: Use "/dev/nul".
1088 2007-05-02 David Shaw <dshaw@jabberwocky.com>
1090 * packet.h, mainproc.c (reset_literals_seen): New function to
1091 reset the literals count.
1093 * verify.c (verify_one_file), decrypt.c (decrypt_messages): Call
1094 it here so we allow multiple literals in --multifile mode (in
1095 different files - not concatenated together).
1097 2007-04-26 Marcus Brinkmann <marcus@g10code.de>
1099 * passphrase.c (passphrase_to_dek): Write missing passphrase
1100 status message in case of cancellation.
1102 2007-04-16 Werner Koch <wk@g10code.com>
1104 * build-packet.c (mpi_write): Made buffer a bit larger. Reported
1107 2007-04-13 Werner Koch <wk@g10code.com>
1109 * call-agent.c (start_agent): Don't use log_error when using the
1110 fallback hack to start the agent. This is bug 782.
1112 2007-04-05 David Shaw <dshaw@jabberwocky.com>
1114 From STABLE-BRANCH-1-4
1116 * parse-packet.c (parse_marker): New. Enforce that the marker
1117 contains 'P', 'G', 'P', and nothing but.
1118 (parse): Call it here.
1119 (skip_packet): No longer need to handle marker packets here.
1121 2007-03-14 David Shaw <dshaw@jabberwocky.com>
1123 From STABLE-BRANCH-1-4
1125 * keyserver.c: Windows Vista doesn't grok X_OK and so fails
1126 access() tests. Previous versions interpreted X_OK as F_OK
1127 anyway, so we'll just use F_OK directly.
1129 2007-03-09 David Shaw <dshaw@jabberwocky.com>
1131 From STABLE-BRANCH-1-4
1133 * parse-packet.c (parse_signature): It's hex.
1135 * getkey.c (merge_selfsigs_subkey): Avoid listing the contents of
1136 a backsig when list mode is on. Noted by Timo Schulz.
1138 2007-03-08 Werner Koch <wk@g10code.com>
1140 * plaintext.c (handle_plaintext): Add two extra fflush for stdout.
1142 2007-03-08 David Shaw <dshaw@jabberwocky.com> (wk)
1144 * keyedit.c (keyedit_menu): If we modify the keyblock (via
1145 fix_keyblock() or collapse_uids()) make sure we reprocess the
1146 keyblock so the flags are correct. Noted by Robin H. Johnson.
1148 * getkey.c (fixup_uidnode): Properly clear flags that don't apply
1149 to us (revoked, expired) so that we can reprocess a uid.
1151 2007-03-05 Werner Koch <wk@g10code.com>
1153 Converted this file to UTF-8.
1155 Ported David and my multiple messages changes from 1.4.7.
1157 * options.h, gpg.c (main), mainproc.c (check_sig_and_print): Allow
1158 multiple sig verification again as this is protected via the
1159 multiple-messages code. New option --allow-multiple-messages and
1161 * status.h (STATUS_ERROR): New status code.
1162 * status.c (get_status_string): Ditto.
1163 * mainproc.c (proc_plaintext): Emit it if multiple messages are
1164 detected. Error out if more than one plaintext packet is
1166 * mainproc.c (literals_seen): New.
1168 2007-02-26 Werner Koch <wk@g10code.com>
1170 * gpg.c (main): Add verify option show-primary-uid-only.
1171 * options.h (VERIFY_SHOW_PRIMARY_UID_ONLY): New.
1172 * mainproc.c (check_sig_and_print): Implement it.
1174 2007-02-22 Werner Koch <wk@g10code.com>
1176 * encr-data.c (decrypt_data): Correctly test for unknown algorithm.
1177 * import.c (check_prefs): Ditto.
1178 * keyedit.c (show_prefs): Ditto.
1179 * mainproc.c (proc_symkey_enc): Ditto.
1181 2007-02-06 Werner Koch <wk@g10code.com>
1183 * export.c (do_export_stream): Allow reset-subkey-passwd along
1186 2007-02-04 Werner Koch <wk@g10code.com>
1188 * parse-packet.c (parse_signature): Limit bytes read for an
1189 unknown alogorithm. Fixes Debian bug#402592.
1191 2007-01-31 Werner Koch <wk@g10code.com>
1193 * verify.c (verify_signatures): Do no dereference a NULL afx.
1195 * passphrase.c (passphrase_get): Set the cancel flag on all error
1196 from the agent. Fixes a bug reported by Tom Duerbusch.
1198 2007-01-30 Werner Koch <wk@g10code.com>
1200 * status.c (write_status_begin_signing): New.
1201 * sign.c (sign_file, sign_symencrypt_file): Call it.
1202 * textfilter.c (copy_clearsig_text): Call it.
1204 * call-agent.c (agent_scd_pksign): Pass --hash-rmd160 to SCD if
1207 * gpg.c (main): Let --no-use-agent and --gpg-agent-info print a
1209 * misc.c (obsolete_option): New.
1211 2007-01-29 Werner Koch <wk@g10code.com>
1213 * pkclist.c (do_we_trust_pre): Issue a user-id-hint status code.
1215 2007-01-15 Werner Koch <wk@g10code.com>
1217 * parse-packet.c (read_protected_v3_mpi): Make sure to stop
1218 reading even for corrupted packets.
1219 * keygen.c (generate_user_id): Need to allocate one byte more.
1220 Reported by Felix von Leitner.
1222 2006-12-21 Werner Koch <wk@g10code.com>
1224 * gpg.c (main): New command --server.
1225 * gpg.h (struct server_control_s, ctrl_t): New.
1227 * verify.c (gpg_verify): New.
1228 * mainproc.c (mainproc_context): Made SIGNED_DATA a structure.
1229 (proc_signature_packets_by_fd): New.
1230 (proc_compressed_cb): Divert depending on SIGNED_DATA.
1231 * plaintext.c (hash_datafile_by_fd): New.
1232 * mainproc.c (proc_tree): Use it here.
1234 * verify.c (verify_signatures): Init AFX only when needed.
1235 Don't leak a context on error.
1236 (verify_one_file): Don't leak a context on error.
1238 2006-12-07 Werner Koch <wk@g10code.com>
1240 * openfile.c (copy_options_file): Use log_info instead of
1241 log_error to avoid an error return of gpg due to a missing
1244 2006-12-07 David Shaw <dshaw@jabberwocky.com>
1246 * Makefile.am: Link to iconv for jnlib dependency.
1248 2006-12-05 Werner Koch <wk@g10code.com>
1250 * passphrase.c (passphrase_to_dek): Handle a Cancel request
1251 correctly. [Bug#737]
1252 * mainproc.c (proc_symkey_enc): Removed workaround for bogus cancel
1254 * encode.c (encode_simple): Distinguish error message between
1255 cancel and invalid passphrase.
1256 (setup_symkey): Ditto.
1257 * sign.c (sign_symencrypt_file): Ditto
1258 * keyedit.c (change_passphrase): Allow cancellation.
1259 * keygen.c (do_ask_passphrase): New arg R_CANCELED.
1260 (generate_keypair): Handle a passphrase cancellation.
1261 (generate_raw_key): Ditto.
1262 (generate_subkeypair): Ditto.
1264 2006-12-04 Werner Koch <wk@g10code.com>
1266 * filter.h (armor_filter_context_t): New element REFCOUNT.
1267 * armor.c (armor_filter): Made static.
1268 (push_armor_filter, release_armor_context, new_armor_context): New.
1269 (armor_filter): Release the context.
1270 * gpg.c (main): Use new armor context functions and
1272 * export.c (do_export): Ditto.
1273 * encode.c (encode_simple, encode_crypt): Ditto.
1274 * decrypt.c (decrypt_message, decrypt_messages): Ditto.
1275 * dearmor.c (dearmor_file, enarmor_file): Ditto.
1276 * verify.c (verify_signatures, verify_one_file): Ditto.
1277 * sign.c (sign_file, clearsign_file, sign_symencrypt_file): Ditto.
1278 * revoke.c (gen_desig_revoke, gen_revoke): Ditto.
1279 * keyserver.c (keyserver_spawn): Ditto.
1280 * keygen.c (output_control_s): Turn AFX fields into pointers.
1281 (read_parameter_file): Allocate and release AFX fields.
1282 (do_generate_keypair): Use push_armor_filter.
1283 * import.c (import): Replace iobuf_push_filter2 hack by the new
1284 armor context stuff.
1286 2006-12-03 Werner Koch <wk@g10code.com>
1288 * filter.h: New element REFCOUNT.
1289 (handle_progress): Remove prototype.
1290 * progress.c (new_progress_context, release_progress_context): New.
1291 (progress_filter): Use new function to release context. Made static.
1292 (handle_progress): Bumb reference counter. No more check for
1293 enabled progress as this is handled by new_progress_context.
1294 * verify.c (verify_signatures, verify_one_file): Replace stack
1295 based progress context by a heap based one.
1296 * sign.c (sign_file, clearsign_file, sign_symencrypt_file): Ditto.
1297 * plaintext.c (ask_for_detached_datafile, hash_datafiles): Ditto.
1298 * encode.c (encode_simple, encode_crypt): Ditto.
1299 * decrypt.c (decrypt_message, decrypt_messages): Ditto.
1301 * keyedit.c (menu_clean): Made strings translatable.
1303 2006-12-03 David Shaw <dshaw@jabberwocky.com>
1305 * keyedit.c (menu_clean): Show "already minimized" rather than
1306 "already clean" when a minimized key is minimized again. From
1309 2006-12-02 David Shaw <dshaw@jabberwocky.com>
1311 * options.h, gpg.c (main), passphrase.c (passphrase_to_dek): Add
1312 --passphrase-repeat option to control how many times gpg will
1313 re-prompt for a passphrase to ensure the user has typed it
1314 correctly. Defaults to 1.
1316 2006-12-02 Werner Koch <wk@g10code.com>
1318 * encr-data.c: Allocate DFX context on the heap and not on the
1319 stack. Changes at several places. Fixes CVE-2006-6235.
1321 2006-11-27 Werner Koch <wk@g10code.com>
1323 * openfile.c (ask_outfile_name): Fixed buffer overflow occurring
1324 if make_printable_string returns a longer string. Fixes bug 728.
1326 2006-11-21 Werner Koch <wk@g10code.com>
1328 * Makefile.am (needed_libs): libgnu needs to come after libcommon.
1330 * keygen.c (ask_expire_interval): Print y2038 warning only for 32
1332 (save_unprotected_key_to_card): Made RSA_N_LEN et al a size_t.
1334 (get_parameter_algo): Allow "ELG" as alias for "ELG-E".
1336 * seckey-cert.c (do_check): Made NBYTES a size_t.
1337 (do_check): Made NDATA a size_t.
1338 (protect_secret_key): Made NARR a size_t.
1339 (protect_secret_key): Made NVYES a size_t.
1340 * pubkey-enc.c (get_it): Made INDATALEN a size_t.
1341 (get_it): Made NFRAME a size_t.
1342 * keyid.c (hash_public_key): Made NBITS an unsigned int.
1343 * misc.c (checksum_mpi): Made NBYTES a size_t.
1344 (openpgp_pk_test_algo2): Made USE_BUF a size_t.
1345 * seskey.c (encode_session_key): Made NFRAME a size_t.
1346 (do_encode_md): Ditto.
1347 (encode_md_value): Cast size_t argument of printf.
1348 (encode_md_value): Ditto.
1350 2006-11-10 Werner Koch <wk@g10code.com>
1352 * parse-packet.c (mpi_read): Changed NREAD to size_t to match the
1353 gcry_mpi-scan prototype.
1354 (mpi_read): Fixed double increment of bytes read to correctly
1355 detect overlong MPIs.
1357 2006-11-05 Werner Koch <wk@g10code.com>
1359 * gpg.c (main): Remove the default --require-cross-certification.
1360 * options.skel: Enable require-cross-certification.
1362 2006-10-31 Werner Koch <wk@g10code.com>
1364 * pkclist.c (warn_missing_aes_from_pklist): New.
1365 * encode.c (encrypt_filter, encode_crypt): Use it here.
1367 2006-10-27 Werner Koch <wk@g10code.com>
1369 * pkclist.c (warn_missing_mdc_from_pklist): New.
1370 * encode.c (use_mdc): Use it here.
1372 2006-10-24 Marcus Brinkmann <marcus@g10code.de>
1374 * Makefile.am (AM_CFLAGS): Add $(LIBASSUAN_CFLAGS).
1376 2006-10-23 Werner Koch <wk@g10code.com>
1378 * gpg.c (main): New command --gpgconf-test.
1380 * Makefile.am (bzip2_source): New.
1382 2006-10-20 Werner Koch <wk@g10code.com>
1384 * getkey.c (classify_user_id): Reserve '&' for search by keygrip.
1386 2006-10-19 Werner Koch <wk@g10code.com>
1388 * keygen.c (get_parameter_algo): Add special case for ELG_E which
1389 is not supported by libgcrypt's mapping function.
1391 2006-10-18 Werner Koch <wk@g10code.com>
1393 * keyid.c (v3_keyid): Don't use mempcy as we need to hold the
1394 keyids in the native endian format.
1396 * import.c (import_print_stats): Use log_printf.
1398 * build-packet.c (do_public_key): Care about mpi_write errors.
1399 (do_secret_key, do_pubkey_enc, do_signature): Ditto.
1400 (mpi_write): Print an extra warning on error.
1402 2006-10-17 Werner Koch <wk@g10code.com>
1404 * Makefile.am (LDADD): Replaced W32LIBS by NETLIBS.
1406 2006-10-12 David Shaw <dshaw@jabberwocky.com>
1408 * parse-packet.c (parse_symkeyenc): Show the unpacked as well as
1409 the packed s2k iteration count.
1411 * main.h, options.h, gpg.c (encode_s2k_iterations, main),
1412 passphrase.c (hash_passphrase): Add --s2k-count option to specify
1413 the number of s2k hash iterations.
1415 2006-10-08 Werner Koch <wk@g10code.com>
1417 * gpgv.c: Remove the tty stubs as we are now required to link to
1418 tty anyway (it is included in libcommand and has dependencies to
1419 other modules as well).
1421 * keyedit.c (keyedit_menu): Use keyedit_completion only if
1422 readline is available. It would be better to move this code into
1425 2006-10-06 Werner Koch <wk@g10code.com>
1427 * Makefile.am (AM_CFLAGS): Use PTH version of libassuan.
1429 2006-10-06 David Shaw <dshaw@jabberwocky.com>
1431 * keyserver.c (keyserver_spawn): Write the 16-digit keyid rather
1432 than whatever key selector the user used on the command line.
1434 2006-10-05 Werner Koch <wk@g10code.com>
1436 * status.c (progress_cb): Changed to libgcrypt API.
1437 (set_status_fd): Register the progress cb.
1439 * seskey.c (encode_md_value): Check that the hash algo is valid
1440 before getting the OID.
1442 2006-10-04 Werner Koch <wk@g10code.com>
1444 * passphrase.c: Allow for a static passphrase in batch mode.
1446 * call-agent.c (agent_havekey): Removed.
1447 (percent_plus_escape): New.
1448 (agent_get_passphrase): New.
1449 (agent_clear_passphrase): New.
1451 * passphrase.c: Changed so that we always require the agent.
1452 (agent_send_option, agent_send_all_options, agent_open): Removed.
1453 (agent_get_passphrase): Cleaned up. Does now use the call-agent
1454 functions. Renamed to
1455 (passphrase_get): .. this. Changed all callers.
1456 (passphrase_clear_cache): Rewritten.
1457 (passphrase_to_dek, hash_passphrase): Re-indented.
1459 * gpg.c (main): Made --use-agent a dummy option.
1460 * seckey-cert.c (check_secret_key): We require the agent, so always
1463 * gpg.c (main): Print a warning if -sat has been used.
1464 (main): Removed the special treatment of the -k option. -k is now
1465 an alias for --list-keys.
1466 (main): Removed --list-ownertrust.
1468 2006-10-02 Werner Koch <wk@g10code.com>
1470 * encr-data.c (decrypt_data, mdc_decode_filter): Check the MDC
1471 right here and don't let parse-packet handle the MDC.
1473 2006-09-29 Werner Koch <wk@g10code.com>
1475 * compress.c (do_uncompress): Removed use of Z_PARTIAL_FLUSH.
1476 This is outdated and old zlib versions which still require it have
1479 2006-09-27 Werner Koch <wk@g10code.com>
1481 Replaced all STRLIST by strlist_t.
1483 2006-09-21 Werner Koch <wk@g10code.com>
1485 * signal.c (got_fatal_signal): Replaced readline stuff by a tty
1488 * Makefile.am (LDADD): Include libgpgrl.a.
1490 * gpg.c (main): Call gpg_rl_initialize.
1492 * keyedit.c: Removed double inclusion of stdio.h.
1494 2006-09-20 Werner Koch <wk@g10code.com>
1496 * call-agent.c: Include asshelp.h.
1497 (start_agent): Use send_pinentry_environment.
1499 2006-09-14 Werner Koch <wk@g10code.com>
1501 Replaced all call gpg_error_from_errno(errno) by
1502 gpg_error_from_syserror().
1504 2006-09-13 Werner Koch <wk@g10code.com>
1506 * gpg.c (main): Made --require-cross-certification the default.
1508 2006-09-06 Marcus Brinkmann <marcus@g10code.de>
1510 * Makefile.am (gpg2_LDADD, gpgv2_LDADD): Replace -lassuan and
1511 -lgpg-error with $(LIBASSUAN_LIBS) and $(GPG_ERROR_LIBS).
1512 (AM_CFLAGS): Add $(LIBASSUAN_CFLAGS) and $(GPG_ERROR_CFLAGS).
1514 2006-09-06 Werner Koch <wk@g10code.com>
1516 * gpg.c (main): Enable new assuan API.
1517 * call-agent.c: Changed to new Assuan API.
1519 2006-09-01 Werner Koch <wk@g10code.com>
1521 * call-agent.c: Do not force using the pipe server.
1523 * gpg.c (main): Enable card related commands.
1525 2006-08-22 Werner Koch <wk@g10code.com>
1527 * mainproc.c (proc_plaintext): Fixed a #warning
1529 2006-08-21 Werner Koch <wk@g10code.com>
1531 * skclist.c (random_is_faked): Implemented.
1532 (is_insecure): Also test for the old uppercase version of the
1534 * gpg.c (main): Renamed --quick-random to debug-quick-quick-random.
1536 * gpg.c (print_mds): Do not use the USE_SHA macros.
1538 * mainproc.c (proc_encrypted): Remove assign inside condition for
1541 * packet.h: Moved consts to new header ../common/openpgpdefs.h.
1543 2006-08-16 Werner Koch <wk@g10code.com>
1545 * keyserver.c (GPGKEYS_PREFIX): Rename to gpg2keys_. This is so
1546 that we can install helpers from 1.4 and 2 without conflicts and
1547 first of all don't get lost with weird bug reports.
1549 * keyid.c (serialno_and_fpr_from_sk): New. Actually lost during
1550 the last 1.4 to 1.9 merge.
1552 * gpg.c (list_config): Output ccid-reader-id only for gnupg 1.
1554 * call-agent.c (agent_scd_writekey): New.
1555 (inq_writekey_parms): New.
1557 * gpgv.c: Include call-agent.h for use by stubs.
1559 * misc.c: Include call-agent.h for use by get_signature_count.
1561 2006-07-27 Werner Koch <wk@g10code.com>
1563 * parse-packet.c (parse_comment): Cap comments at 65k.
1564 (parse_gpg_control): Skip too large control packets.
1566 2006-07-24 David Shaw <dshaw@jabberwocky.com> (wk)
1568 * keydb.h, pkclist.c (select_algo_from_prefs, algo_available):
1569 Pass a union for preference hints rather than doing void * games.
1571 * sign.c (sign_file): Use it here.
1573 * sign.c (sign_file): When signing with multiple DSA keys, one
1574 being DSA1 and one being DSA2 and encrypting at the same time, if
1575 the recipient preferences give a hash that can work with the DSA2
1576 key, then allow the DSA1 key to be promoted rather than giving up
1577 and using hash_for().
1579 * pkclist.c (algo_available): Automatically enable DSA2 mode when
1580 handling a key that clearly isn't DSA1 (i.e. q!=160).
1582 2006-06-30 Werner Koch <wk@g10code.com>
1584 * misc.c (checksum_mpi): No need for nbits as they are alredy
1585 included in the buffer.
1587 2006-06-29 Werner Koch <wk@g10code.com>
1589 * parse-packet.c (parse_signature, parse_key): Need store the
1590 length of opaque data as number of bits.
1591 * card-util.c (card_store_subkey): Ditto.
1593 * mainproc.c (print_pkenc_list, check_sig_and_print): Replaced
1594 log_get_stream by calls to log_printf. This avoids the extra LFs
1595 inserted by the logging function. They are a bit too smart
1597 * pkclist.c (do_show_revocation_reason): Print final LF through
1598 log_printf to avoid extra LFs.
1599 * pubkey-enc.c (get_it): Ditto.
1601 * seskey.c (encode_md_value): Fix call to gcry.
1603 2006-06-27 Werner Koch <wk@g10code.com>
1605 Applied patches from 1.4.x (2006-05-22 to 2006-06-23) from David:
1607 * keygen.c (keygen_upd_std_prefs, keygen_add_std_prefs)
1608 (proc_parameter_file): Add --default-keyserver-url to specify a
1609 keyserver URL at key generation time, and "Keyserver:" keyword for
1610 doing the same through a batch file.
1611 * options.h, gpg.c (main): Ditto.
1613 * sign.c (do_sign): For now don't accept a truncated hash even
1614 for DSA1 keys (be liberal in what you accept, etc).
1616 * import.c (import_one): Add a flag (from_sk) so we don't check
1617 prefs on an autoconverted public key. The check should only
1618 happen on the sk side. Noted by Dirk Traulsen.
1620 * keygen.c (gen_card_key): Add optional argument to return a
1621 pointer (not a copy) of the stub secret key for the secret key we
1622 just generated on the card.
1623 (generate_card_subkeypair): Use it here so that the signing key on
1624 the card can use the card to generate the 0x19 backsig on the
1625 primary key. Noted by Janko Heilgeist and Jonas Oberg.
1627 * parse-packet.c (parse_user_id): Cap the user ID size at 2048
1628 bytes. This prevents a memory allocation attack with a very large
1629 user ID. A very large packet length could even cause the
1630 allocation (a u32) to wrap around to a small number. Noted by
1631 Evgeny Legerov on full-disclosure.
1633 * keygen.c (gen_dsa): Allow generating DSA2 keys. Allow
1634 specifying sizes > 1024 when --enable-dsa2 is set. The size of q
1635 is set automatically based on the key size.
1636 (ask_keysize, generate_keypair): Ask for DSA size when
1637 --enable-dsa2 is set.
1639 * exec.c (make_tempdir) [W32]: Fix bug with a temporary directory
1640 on W32 that is over 256 bytes long. Noted by Israel G. Lugo.
1642 * gpg.c (reopen_std): New function to reopen fd 0, 1, or 2 if we
1643 are called with them closed. This is to protect our
1644 keyring/trustdb files from corruption if they get attached to one
1645 of the standard fds. Print a warning if possible that this has
1646 happened, and fail completely if we cannot reopen (should never
1648 (main): Call it here.
1650 * parse-packet.c (dump_sig_subpkt, parse_signature): Fix meaning
1651 of key expiration and sig expiration subpackets - zero means
1652 "never expire" according to 2440, not "expire instantly".
1653 * build-packet.c (build_sig_subpkt_from_sig): Ditto.
1654 * getkey.c (fixup_uidnode, merge_selfsigs_main)
1655 (merge_selfsigs_subkey): Ditto.
1656 * keygen.c (keygen_add_key_expire): Ditto.
1658 * getkey.c (get_pubkey_byname)
1659 * import.c (import_one): Fix key selection problem when
1660 auto-key-locate returns a list of keys, not all of which are
1661 usable (revoked, expired, etc). Noted by Simon Josefsson.
1663 2006-05-24 Werner Koch <wk@g10code.com>
1665 * keyid.c (hash_public_key): Do not double hash the length bytes,
1666 they are already included by mpi_print.
1668 * misc.c (openpgp_pk_test_algo2): Get test call right.
1670 * misc.c (string_to_cipher_algo, string_to_digest_algo): New.
1671 * keygen.c (keygen_set_std_prefs): use them here.
1672 * gpg.c (main): and here.
1674 2006-05-23 Werner Koch <wk@g10code.com>
1676 * card-util.c (generate_card_keys): Removed temporary kludge for
1679 * call-agent.c (agent_scd_setattr): Add arg SERIALNO.
1680 (agent_scd_genkey): Ditto.
1681 (agent_scd_change_pin): Ditto.
1683 * call-agent.h (struct agent_card_info_s): Updated to match the
1686 * Makefile.am (LDADD): Include ZLIBS.
1688 * gpgv.c: Removed stubs not anymore useful due to libgcrypt.
1690 2006-05-22 Werner Koch <wk@g10code.com>
1692 * keyserver.c (keyidlist): Replaced mpi_get_keyid by v3_keyid.
1693 * keydb.h (v3_keyid): Added.
1695 * import.c (import): Better initialize KEYBLOCK as to quiet
1698 * skclist.c (random_is_faked): New.
1700 * mainproc.c: Include pka.h.
1702 2006-05-19 Werner Koch <wk@g10code.com>
1704 * misc.c (openpgp_pk_test_algo2): Need to use gcry_pk_algo_info
1706 (string_count_chr): New.
1708 * armor.c (parse_header_line): Use renamed function
1709 length_sans_trailing_ws.
1711 * options.h, gpg.c: Option --strict is not used thus removed code
1714 2006-04-28 David Shaw <dshaw@jabberwocky.com> (wk)
1716 * keyserver.c (direct_uri_map): New.
1717 (keyserver_spawn): Used here to add "_uri" to certain gpgkeys_xxx
1718 helpers when the meaning is different if a path is provided (i.e.
1720 (keyserver_import_cert): Show warning if there is a CERT
1721 fingerprint, but no --keyserver set.
1723 * keyserver.c: Fix build problem with platforms that stick libcurl
1724 in a place not in the regular include search path.
1726 * options.h, gpg.c (main): Add --enable-dsa2 and --disable-dsa2.
1727 Defaults to disable.
1729 * pkclist.c (algo_available): If --enable-dsa2 is set, we're
1730 allowed to truncate hashes to fit DSA keys.
1732 * sign.c (match_dsa_hash): New. Return the best match hash for a
1734 (do_sign, hash_for, sign_file): When signing with a DSA key, if it
1735 has q==160, assume it is an old DSA key and don't allow truncation
1736 unless --enable-dsa2 is also set. q!=160 always allows truncation
1737 since they must be DSA2 keys.
1738 (make_keysig_packet): If the user doesn't specify a
1739 --cert-digest-algo, use match_dsa_hash to pick the best hash for
1742 * gpg.c (print_mds): Add SHA-224.
1743 * armor.c (armor_filter, parse_hash_header): Add SHA-224.
1745 * sign.c (write_plaintext_packet):
1746 Factor common literal packet setup code from here, to...
1747 * encode.c (encode_simple): .. there.
1749 * main.h, plaintext.c (setup_plaintext_name): Here. New. Make sure
1750 the literal packet filename field is UTF-8 encoded.
1752 * options.h, gpg.c (main): Make sure --set-filename is UTF-8
1753 encoded and note when filenames are already UTF-8.
1755 * keyedit.c (menu_backsign): Give some more verbose errors when we
1756 have no need to backsign.
1758 * getkey.c (parse_auto_key_locate): Fix dupe-removal code.
1760 * keyedit.c (menu_backsign): Allow backsigning even if the secret
1761 subkey doesn't have a binding signature.
1763 * armor.c (radix64_read): Don't report EOF when reading only a pad
1764 (=) character. The EOF actually starts after the pad.
1766 * gpg.c (main): Make --export, --send-keys, --recv-keys,
1767 --refresh-keys, and --fetch-keys follow their arguments from left
1768 to right. Suggested by Peter Palfrader.
1770 2006-04-18 Werner Koch <wk@g10code.com>
1772 * tdbio.c (open_db, migrate_from_v2): Removed feature to migration
1773 from old trustdb version 2.
1775 * gpg.c, mainproc.c: Removed pipemode feature.
1777 * status.c: Removed shared memory coprocess stuff
1779 Merged with current gpg 1.4.3 code.
1781 * keygen.c, keyid.c, misc.c, openfile.c, verify.c, trustdb.c
1782 * textfilter.c, tdbio.c, tdbdump.c, status.c, skclist.c, signal.c
1783 * sign.c, sig-check.c, seskey.c, seckey-cert.c, revoke.c
1784 * pubkey-enc.c, progress.c, plaintext.c, pkclist.c, photoid.c
1785 * passphrase.c, parse-packet.c, mdfilter.c, mainproc.c
1786 * keyserver.c, keyring.c, keylist.c, keyedit.c, keydb.c, kbnode.c
1787 * import.c, getkey.c, gpgv.c, helptext.c, free-packet.c
1788 * build-packet.c, cipher.c, compress.c, dearmor.c, decrypt.c
1789 * delkey.c, encr-data.c, encode.c, exec.c, export.c
1790 * gpg.c, armor.c: Updated from gnupg-1.4.3 and merged back gcry and
1791 gnupg-1.9 related changes.
1792 * trustdb.h, tdbio.h, status.h, photoid.h, packet.h, options.h
1793 * main.h, keyserver-internal.h, keyring.h, keydb.h, filter.h
1795 * global.h: Removed after merging constants with gpg.h.
1796 * comment.c, pipemode.c: Removed.
1797 * card-util.c: Updated from gnupg-1.4.3.
1798 * compress-bz2.c: New.
1800 2005-06-15 Werner Koch <wk@g10code.com>
1802 * g10.c (print_hashline, add_group): Fixes for signed/unsigned
1803 pointer mismatch warnings.
1805 2005-06-01 Werner Koch <wk@g10code.com>
1807 * mkdtemp.c: Removed.
1808 * exec.c: Include mkdtemp.h
1810 2004-12-21 Werner Koch <wk@g10code.com>
1812 * gpgv.c, g10.c (main): Use default_hoemdir ().
1814 2004-12-18 Werner Koch <wk@g10code.com>
1816 * gpg.h (map_assuan_err): Define in terms of
1817 map_assuan_err_with_source.
1819 2004-12-15 Werner Koch <wk@g10code.com>
1821 * Makefile.am (LDADD): Remove ZLIBS.
1823 2004-10-22 Werner Koch <wk@g10code.com>
1825 * g10.c (main): Display a bit fat warning that this gpg should not
1828 * card-util.c (fetch_url): Disable for gnupg 1.9
1829 (card_generate_subkey): Ditto.
1830 (card_store_subkey): Ditto.
1832 2004-09-30 Werner Koch <wk@g10code.com>
1834 * gpgv.c (i18n_init): Always use LC_ALL.
1836 * Makefile.am (LDADD): Adjusted for gettext 0.14.
1838 2004-09-20 Werner Koch <wk@g10code.com>
1840 * keyedit.c (show_key_with_all_names): Print the card S/N.
1842 2004-09-11 Moritz Schulte <moritz@g10code.com>
1844 * openfile.c (copy_options_file): Fixed last commit (added a `+').
1846 2004-08-31 Werner Koch <wk@g10code.de>
1848 * openfile.c (copy_options_file): Use gpg-conf.skel. Better take
1849 the length of SKELEXT into account, someone might make it larger.
1850 * Makefile.am: Install options.skel as gpg-conf.skel.
1852 2004-08-18 Marcus Brinkmann <marcus@g10code.de>
1854 * passphrase.c (agent_get_passphrase): Fix detection of gpg-agent
1857 2004-07-01 Werner Koch <wk@gnupg.org>
1859 * card-util.c (change_login): Kludge to allow reading data from a
1861 (card_edit): Pass ARG_STRING to change_login.
1862 (card_status): Print CA fingerprints.
1863 (change_cafpr): New.
1864 (card_edit): New command CAFPR.
1866 * call-agent.h: Add members for CA fingerprints.
1867 * call-agent.c (agent_release_card_info): Invalid them.
1868 (learn_status_cb): Store them.
1870 2004-04-30 Werner Koch <wk@gnupg.org>
1872 * g10.c (main) <gpgconf>: Use gpg.conf and not /dev/null as
1875 2004-04-28 Werner Koch <wk@gnupg.org>
1877 * card-util.c (card_edit): Remove PIN verification.
1878 (generate_card_keys): New arg SERIALNO. Do PIN verification here
1879 after resetting forced_chv1.
1881 2004-04-26 Werner Koch <wk@gnupg.org>
1883 * card-util.c (change_name): Check that the NAME is not too long.
1884 (change_url): Likewise.
1885 (change_login): Likewise.
1887 2004-03-23 Werner Koch <wk@gnupg.org>
1889 * g10.c: New options --gpgconf-list, --debug-level and --log-file
1890 (set_debug): Add arg DEBUG_LEVEL.
1891 (main): Look at less and less version specific config files. From
1894 2004-02-17 Werner Koch <wk@gnupg.org>
1896 * call-agent.c (start_agent): Ignore an empty GPG_AGENT_INFO.
1897 * passphrase.c (agent_open): Ditto.
1899 2004-02-12 Werner Koch <wk@gnupg.org>
1901 * gpgv.c: Removed g10defs.h.
1903 * Makefile.am: Include cmacros.am for common flags.
1905 2004-02-11 Werner Koch <wk@gnupg.org>
1907 * openfile.c (try_make_homedir): Use GNUPG_DEFAULT_HOMEDIR.
1908 * gpgv.c (main): Ditto.
1909 * g10.c (main): Ditto.
1911 2004-01-19 Moritz Schulte <mo@g10code.com>
1913 * keygen.c (do_generate_keypair): Print member fname, instead of
1915 (do_generate_keypair): Don't try to execute certain pieces of code
1916 in case an error occured.
1917 (gen_card_key): Don't print out a message, which is already
1918 printed by do_generate_keypair().
1920 2004-01-18 Moritz Schulte <mo@g10code.com>
1922 * keygen.c (do_generate_keypair): Print member fname, instead of
1925 2003-12-17 Werner Koch <wk@gnupg.org>
1927 * card-util.c (print_name): Fixed bad format string usage.
1928 (print_isoname): Ditto.
1930 * trustdb.c (check_regexp): s/exp/expr/.
1932 * keyedit.c (trustsig_prompt): Removed a "> 255" term; it is
1933 always false due to the data type.
1935 * passphrase.c (agent_get_passphrase): Use xasprintf and avoid
1936 non-literal format strings.
1938 * tdbio.c (upd_hashtable, drop_from_hashtable, lookup_hashtable):
1939 Fixed log_error format string bugs. Kudos to the now working
1940 gcc-3.3 -Wformat-nonliteral and Florian Weimer's investigations in
1943 2003-12-15 Werner Koch <wk@gnupg.org>
1945 * seckey-cert.c (protect_secret_key): Use gry_create_nonce for the
1946 IV; there is not need for real strong random here and it even
1947 better protect the random bits used for the key.
1949 2003-11-16 Moritz Schulte <mo@g10code.com>
1951 * signal.c: Removed unused file.
1953 2003-11-10 Moritz Schulte <mo@g10code.com>
1955 * Makefile.am (INCLUDES): Added: @LIBGCRYPT_CFLAGS@.
1957 2003-10-25 Werner Koch <wk@gnupg.org>
1959 * call-agent.c (learn_status_cb, scd_genkey_cb): Fixed faulty use
1962 2003-10-20 Werner Koch <wk@gnupg.org>
1964 * card-util.c (card_edit): New command "passwd". Add logic to
1965 check the PIN in advance.
1966 (card_status): Add new args to return the serial number. Changed
1968 * call-agent.c (agent_scd_checkpin): New.
1970 2003-10-08 Werner Koch <wk@gnupg.org>
1972 * call-agent.c (agent_scd_getattr): Don't clear the passed info
1973 structure, so that it can indeed be updated.
1975 * card-util.c (fpr_is_zero): New.
1976 (generate_card_keys): New.
1977 (card_edit): New command "generate".
1978 * keygen.c (generate_keypair): New arg CARD_SERIALNO, removed call
1980 (check_smartcard,show_smartcard): Removed.
1981 (show_sha1_fpr,fpr_is_zero): Removed.
1983 2003-10-01 Werner Koch <wk@gnupg.org>
1985 * card-util.c: Tweaked to use this source also under 1.3.
1987 2003-09-30 Werner Koch <wk@gnupg.org>
1989 * keylist.c (print_card_serialno): New.
1990 (list_keyblock_print): Use it here.
1992 * card-util.c (toggle_forcesig): New.
1993 (card_edit): New command "forcesig".
1995 * card-util.c (print_name, print_isoname): Use 0 and not LF fro
1996 the max_n arg of tty_print_utf8_string2.
1998 * call-agent.c (agent_scd_getattr): New.
1999 (learn_status_cb): Release values before assignment so that it can
2000 be used by getattr to update the structure.
2002 * card-util.c (change_pin): Simplified. We now have only a PIN
2005 2003-09-27 Werner Koch <wk@gnupg.org>
2007 * sign.c (do_sign): Removed disabled testcode.
2009 2003-09-26 Timo Schulz <twoaday@freakmail.de>
2011 * card_status (card_status): Do not use fputs since the fp
2012 parameter can be NULL. This fixes a segv.
2014 2003-09-24 Werner Koch <wk@gnupg.org>
2016 * card-util.c (print_isoname,card_status): Handle opt.with_colons.
2017 (print_sha1_fpr_colon): New.
2019 2003-09-23 Werner Koch <wk@gnupg.org>
2021 Merged most of David Shaw's changes in 1.3 since 2003-06-03.
2023 * Makefile.am: Include W32LIBS where appropriate.
2025 * armor.c (parse_hash_header,armor_filter): Drop TIGER/192 support.
2026 * g10.c (print_hex,print_mds): Ditto.
2027 * pkclist.c (algo_available): Ditto.
2029 * armor.c (armor_filter): Allow using --comment multiple times to
2030 get multiple Comment header lines. --no-comments resets list.
2031 * options.h, g10.c (main): Ditto. Deprecate --default-comment in
2032 favor of --no-comments.
2034 * g10.c (main): Trim --help to commonly used options. Remove -f.
2036 * g10.c (main): Add --multifile as an alias to turn --encrypt into
2037 --encrypt-files (plus --verify-files, --decrypt-files). Error out
2038 if --multifile is used with the commands that don't support it yet.
2040 * encode.c (use_mdc), g10.c (main): Use RFC1991 and RFC2440
2041 directly to check for MDC usability. Do not set the force_mdc or
2042 disable_mdc flags since there is no point any longer.
2044 * g10.c (main): Use "keyserver-url" instead of
2045 "preferred-keyserver" for the sake of short and simple commands.
2046 (add_keyserver_url): Clarify a few strings. It's a
2047 "preferred keyserver URL".
2048 * keyedit.c (keyedit_menu): Ditto.
2049 * sign.c (mk_notation_policy_etc): Ditto.
2051 * main.h, keygen.c (keygen_add_keyserver_url): Signature callback
2052 for adding a keyserver URL.
2053 * keyedit.c (keyedit_menu, menu_set_keyserver_url): New command to
2054 set preferred keyserver to specified (or all) user IDs.
2055 * build-packet.c (build_sig_subpkt): Set preferred keyserver flag
2056 while building a preferred keyserver subpacket.
2058 * keylist.c (show_policy_url, show_keyserver_url): URLs might be
2061 * keyedit.c (menu_addrevoker): Fix leaking a few bytes.
2063 * keyedit.c (show_key_with_all_names): Use list-option
2064 show-long-keyid in main --edit-key display.
2066 * keyedit.c (print_and_check_one_sig): Use list-option
2067 show-long-keyid in --edit-key "check" function.
2069 * passphrase.c (agent_send_all_options): Make use of $GPG_TTY.
2071 * g10.c (main): Disable use-agent if passphrase-fd is given
2072 later. Suggested by Kurt Garloff.
2074 * exec.c, g10.c, gpgv.c, passphrase.c, photoid.c:
2075 s/__MINGW32__/_WIN32/ to help building on native Windows
2076 compilers. Requested by Brian Gladman. From Werner on stable
2079 * options.h, g10.c (main): Add list-option
2080 list-preferred-keyserver.
2082 * keyedit.c (change_passphrase): When responding 'no' to the blank
2083 passphrase question, re-prompt for a new passphrase. This is bug
2086 * mainproc.c (check_sig_and_print): Use two different preferred
2087 keyserver displays - one if the key is not present (to tell the
2088 user where to get the key), the other if it is present (to tell
2089 the user where the key can be refreshed).
2091 * packet.h, parse-packet.c (parse_signature): Set flag if a
2092 preferred keyserver is present.
2094 * keylist.c (list_keyblock_print): Show keyserver url in listings
2095 with list-option show-keyserver-url.
2097 * mainproc.c (check_sig_and_print): Get the uid validity before
2098 printing any sig results to avoid munging the output with trustdb
2101 * g10.c (main): Don't include --show-keyring in --help as it is
2104 * options.skel: Note that keyserver.pgp.com isn't synchronized,
2105 and explain the roundrobin a bit better.
2107 * sig-check.c (check_key_signature2), import.c (import_one,
2108 import_revoke_cert, chk_self_sigs, delete_inv_parts,
2109 collapse_uids, merge_blocks): Make much quieter during import of
2110 slightly munged, but recoverable, keys. Use log_error for
2111 unrecoverable import failures.
2113 * keyring.c (keyring_rebuild_cache): Comment.
2115 * sign.c (mk_notation_and_policy): Making a v3 signature with
2116 notations or policy urls is an error, not an info (i.e. increment
2117 the errorcount). Don't print the notation or policy url to stdout
2118 since it can be mixed into the output stream when piping and munge
2121 * packet.h, sig-check.c (signature_check2, do_check,
2122 do_check_messages): Provide a signing-key-is-revoked flag. Change
2125 * status.h, status.c (get_status_string): New REVKEYSIG status tag
2126 for a good signature from a revoked key.
2128 * mainproc.c (do_check_sig, check_sig_and_print): Use it here.
2130 * import.c (import_revoke_cert, merge_blocks, merge_sigs): Compare
2131 actual signatures on import rather than using keyid or class
2132 matching. This does not change actual behavior with a key, but
2133 does mean that all sigs are imported whether they will be used or
2136 * parse-packet.c (parse_signature): Don't give "signature packet
2137 without xxxx" warnings for experimental pk algorithms. An
2138 experimental algorithm may not have a notion of (for example) a
2139 keyid (i.e. PGP's x.509 stuff).
2141 * options.h, g10.c (main), keylist.c (list_keyblock_print),
2142 keyedit.c (print_and_check_one_sig): New "show-sig-expire"
2143 list-option to show signature expiration dates (if any).
2145 * options.h, g10.c (main, add_keyserver_url): Add
2146 --sig-preferred-keyserver to implant a "where to get my key"
2147 subpacket into a signature.
2149 * sign.c (mk_notation_and_policy): Rename to
2150 mk_notation_policy_etc and add preferred keyserver support for
2153 * keygen.c (do_add_key_flags): Don't set the certify flag for
2155 (ask_algo): Provide key flags for DSA, Elgamal_e, and Elgamal
2157 (generate_keypair): Provide key flags for the default DSA/Elgamal
2160 * sig-check.c (signature_check, signature_check2,
2161 check_key_signature, check_key_signature2): Allow passing NULLs
2162 for unused parameters in the x2 form of each function to avoid the
2163 need for dummy variables. getkey.c, mainproc.c: Change all
2166 * trustdb.h, trustdb.c (read_trust_options): New. Returns items
2167 from the trustdb version record.
2168 * keylist.c (public_key_list): Use it here for the new "tru"
2170 * gpgv.c (read_trust_options): Stub.
2172 * keyedit.c (show_key_with_all_names): Use list-option
2173 show-validity in --edit-key interface as well.
2175 * options.h, g10.c (main), mainproc.c (check_sig_and_print): Add
2176 verify-options "show-validity" and "show-long-keyid" to show
2177 trustdb validity and long keyids during (file) signature
2180 * packet.h, main.h, sig-check.c (signature_check2)
2181 (check_key_signature2, do_check): If ret_pk is set, fill in the pk
2182 used to verify the signature. Change all callers in getkey.c,
2183 mainproc.c, and sig-check.c.
2185 * keylist.c (list_keyblock_colon): Use the ret_pk from above to
2186 put the fingerprint of the signing key in "sig" records during a
2187 --with-colons --check-sigs. This requires --no-sig-cache as well
2188 since we don't cache fingerprints.
2190 * parse-packet.c (parse_signature): No need to reserve 8 bytes for
2191 the unhashed signature cache any longer.
2193 * misc.c (pct_expando): Add two new expandos - signer's
2194 fingerprint (%g), and signer's primary fingerprint (%p).
2196 * g10.c (main): Add --rfc2440 alias for --openpgp since in a few
2197 months, they won't be the same thing.
2199 * keyserver.c (parse_keyserver_uri): Accept "http" as an alias for
2200 "hkp", since it is occasionally written that way.
2201 (keyserver_spawn): Use ascii_isspace to avoid locale issues.
2203 * keygen.c (ask_user_id): Make --allow-freeform-uid apply to the
2204 email field as well as the name field, and allow mixing fields
2207 * trustdb.c (validate_one_keyblock): Certifications on revoked or
2208 expired uids do not count in the web of trust.
2210 * signal.c (init_one_signal, pause_on_sigusr, do_block): Only use
2211 sigprocmask() if we have sigset_t, and only use sigaction() if we
2212 have struct sigaction. This is for Forte c89 on Solaris which
2213 seems to define only the function call half of the two pairs by
2215 (pause_on_sigusr): Typo.
2216 (do_block): If we can't use sigprocmask() and sigset_t, try to get
2217 the number of signals from NSIG as well as MAXSIG, and if we
2218 can't, fail with an explanation.
2220 * signal.c, tdbio.c: Comment out the transaction code. It was not
2221 used in this version, and was causing some build problems on
2222 quasi-posix platforms (Solaris and Forte c89).
2224 * keylist.c (list_keyblock_colon): Don't include validity values
2225 when listing secret keys since they can be incorrect and/or
2226 misleading. This is a temporary kludge, and will be handled
2227 properly in 1.9/2.0.
2229 * mainproc.c (check_sig_and_print): Only show the "key available
2230 from" preferred keyserver line if the key is not currently
2233 * keyedit.c (sign_uids): Do not sign expired uids without --expert
2234 (same behavior as revoked uids). Do not allow signing a user ID
2235 without a self-signature. --expert overrides. Add additional
2236 prompt to the signature level question.
2237 (menu_expire): When changing expiration dates, don't replace
2238 selfsigs on revoked uids since this would effectively unrevoke
2239 them. There is also no point in replacing expired selfsigs. This
2242 * g10.c (add_notation_data): Make sure that only ascii is passed
2243 to iscntrl. Noted by Christian Biere.
2244 * getkey.c (classify_user_id2): Replaced isspace by spacep
2245 * keygen.c (ask_user_id): Ditto.
2246 (get_parameter_algo): Ditto.
2247 * keyedit.c (keyedit_menu): Ditto.
2248 * tdbdump.c (import_ownertrust): Ditto. s/isxdigit/hexdigitp/.
2249 * revoke.c (ask_revocation_reason):
2250 * keyserver.c (keyserver_spawn): Dito.
2252 * parse-packet.c (parse): Disallow old style partial length for
2253 all key material packets to avoid possible corruption of keyrings.
2255 * import.c (import_keys_internal): Invalidate the cache so that
2256 the file descriptor gets closed. Fixes bug reported by Juan
2259 * options.h, g10.c (main), main.h, keylist.c (show_keyserver_url),
2260 mainproc.c (check_sig_and_print), parse-packet.c (dump_sig_subpkt,
2261 parse_one_sig_subpkt, can_handle_critical): Add read-only support
2262 for preferred keyserver subpackets. They're basically policy URLs
2263 with a different name. Add a verify-option
2264 "show-preferred-keyserver" to turn them on and off (on by default,
2265 as per stable branch).
2267 * g10.c (main): Add "--set-notation" as alias to "--notation-data"
2268 this is to make things consistent with --set-policy-url meaning
2269 both sigs and certs.
2271 * options.h, g10.c (main), keylist.c (list_keyblock_print): Add
2272 "show-validity" and "show-long-keyid" list-options.
2274 * gpgv.c (get_validity, trust_value_to_string): Stubs.
2276 * g10.c (main): Use SAFE_VERSION instead of VERSION in the
2277 version-specific gpg.conf file so it can be overridden on RISCOS.
2279 * keyedit.c (show_key_with_all_names): Fix assertion failure when
2280 using toggle to see a secret key. Reported by Maxim Britov.
2283 2003-09-22 Timo Schulz <twoaday@freakmail.de>
2285 * card-util.c (card_status): Free pk in case of an error
2286 and return if the card is no OpenPGP card.
2288 2003-09-18 Werner Koch <wk@gnupg.org>
2290 * g10.c: New command --card-edit.
2291 * card-util.c (card_status): Use tty_fprintf for all output.
2292 (print_sha1_fpr, print_isoname): Ditto.
2293 (get_one_name,change_name, change_url, change_login,change_lang)
2294 (change_sex): New; taken from keygen.c.
2295 * keygen.c (smartcard_get_one_name, smartcard_change_name)
2296 (smartcard_change_url, smartcard_change_login_data)
2297 (smartcard_change_lang, smartcard_change_sex): Removed.
2298 (check_smartcard): Removed most menu items.
2300 2003-09-06 Werner Koch <wk@gnupg.org>
2302 * misc.c (openpgp_pk_algo_usage): Allow AUTH where SIGN is allowed.
2304 * keygen.c (ask_passphrase): No need to allocated S2K in secure
2307 2003-09-04 Werner Koch <wk@gnupg.org>
2309 * keygen.c (do_add_key_flags, parse_parameter_usage)
2310 (do_generate_keypair): Add support the proposed AUTH key flag.
2311 * getkey.c (fixup_uidnode, merge_selfsigs_main)
2312 (merge_selfsigs_subkey, premerge_public_with_secret): Ditto.
2313 * keylist.c (print_capabilities): Ditto.
2315 2003-08-25 Timo Schulz <twoaday@freakmail.de>
2317 * pkglue.c (mpi_from_sexp): New. Used to factor out
2320 2003-08-24 Werner Koch <wk@gnupg.org>
2322 * keygen.c (do_generate_keypair): Print a reminder to use --gen-revoke.
2324 2003-08-18 Timo Schulz <twoaday@freakmail.de>
2326 * encode.c (encode_sesskey): Checked the code and removed
2327 the warning since all compatibility checks with PGP succeeded.
2328 * mainproc.c (symkey_decrypt_sesskey): Better check for the
2329 algorithm and check the return values of some functions.
2330 * mdc.c (use_mdc): Simplified.
2332 2003-08-07 Werner Koch <wk@gnupg.org>
2334 * pkglue.c (pk_sign): Fix last change.
2335 (pk_verify): Check for valid DATA array so that we don't segv in
2339 2003-08-06 Werner Koch <wk@gnupg.org>
2341 * pkglue.c (pk_sign): Allow signing using RSA.
2343 2003-08-05 Werner Koch <wk@gnupg.org>
2345 * Makefile.am (install-data-local): Dropped check for the ancient
2347 (bin_PROGRAMS): Renamed gpg to gpg2 and gpgv to gpgv2. This is so
2348 that it won't conflict with the current stable version of gpg.
2350 * pkglue.c (pk_check_secret_key): New.
2351 * seckey-cert.c (do_check): Reenable this test here again.
2353 * g10.c (main): Add command -K as an alias for
2354 --list-secret-keys. Command "-k" is now an alias to --list-keys.
2355 Remove special treatment of -kv and -kvv.
2357 (main): Strip a "-cvs" suffix when testing for a version specific
2360 * status.h, status.c, g10.c [USE_SHM_COPROCESSING]: Removed. This
2361 is not any longer available.
2363 2003-07-29 Werner Koch <wk@gnupg.org>
2365 * g10.c (main): Add secmem features and set the random seed file.
2366 (g10_exit): Update the random seed file.
2368 * parse-packet.c (parse_signature,read_protected_v3_mpi)
2369 (parse_key): Fixed use of mpi_set_opaque.
2370 * keygen.c (gen_card_key): Ditto.
2372 2003-07-28 Werner Koch <wk@gnupg.org>
2374 * status.c (progress_cb): Adjusted for use with Libcgrypt.
2375 (set_status_fd): Register that callback.
2377 * keygen.c (smartcard_change_login_data): New.
2378 (smartcard_change_lang): New.
2379 (smartcard_change_sex): New.
2380 (check_smartcard): Add menu entries to edit the above.
2381 (gen_elg,gen_dsa,gen_rsa): Reimplemented in terms of Libgcrypt.
2382 (genhelp_protect, genhelp_factors, key_from_sexp): New.
2383 * comment.c (make_comment_node_from_buffer): New.
2384 (make_comment_node): Reimplemented in terms of above.
2386 2003-07-27 Werner Koch <wk@gnupg.org>
2388 Adjusted for gcry_mpi_print and gcry_mpi_scan API change.
2390 2003-07-24 Werner Koch <wk@gnupg.org>
2392 * g10.c: New command --card-status.
2393 * card-util.c (card_status): New.
2394 * call-agent.c (learn_status_cb): Parse more information.
2396 * keylist.c (print_pubkey_info): Add FP arg for optional printing
2397 to a stream. Changed all callers.
2399 2003-07-23 Werner Koch <wk@gnupg.org>
2401 * keygen.c (generate_keypair): Create an AUTHKEYTYPE entry for cards.
2402 (do_generate_keypair): Abd generate the authkey.
2403 (check_smartcard): Changed menu accordingly.
2405 2003-07-22 Werner Koch <wk@gnupg.org>
2407 * g10.c: New command --change-pin.
2409 * call-agent.c (agent_scd_change_pin): New.
2410 (agent_release_card_info): New.
2411 * keygen.c (check_smartcard): Use it here.
2413 2003-07-16 Werner Koch <wk@gnupg.org>
2415 * export.c (parse_export_options): New option sexp-format.
2416 (export_seckeys,export_secsubkeys): Check sexp-format option.
2417 (do_export): Ignore armor for sexp format.
2418 (do_export_stream): Handle sexp-format.
2419 (write_sexp_line,write_sexp_keyparm, build_sexp_seckey): New.
2422 2003-07-03 Werner Koch <wk@gnupg.org>
2424 * options.h (DBG_CIPHER): Reintroduced it.
2425 * seskey.c (encode_session_key): Debug output of the session key.
2427 * pubkey-enc.c (get_it): Handle card case.
2428 * call-agent.c (agent_scd_pkdecrypt): New.
2429 * pkglue.c (pk_encrypt): Add RSA support.
2431 * g10.c (main): Default to --use-agent.
2433 * keygen.c (show_smartcard): Print info about the public key.
2434 (check_smartcard): Check for existing key here.
2435 (gen_card_key): And not anymore here.
2437 (generate_keypair): Generate both keys for a card.
2438 (smartcard_change_url): Nw.
2440 2003-07-02 Werner Koch <wk@gnupg.org>
2442 * seckey-cert.c (is_secret_key_protected): Let it handle mode 1002.
2444 2003-07-01 Werner Koch <wk@gnupg.org>
2446 * keygen.c (gen_card_key): Obviously we should use the creation
2447 date received from SCDAEMON, so that the fingerprints will match.
2448 * sign.c (do_sign): Pass the serialno to the sign code.
2449 * keyid.c (serialno_and_fpr_from_sk): New.
2451 2003-06-30 Werner Koch <wk@gnupg.org>
2453 * call-agent.h (agent_card_info_s): Add field serialno.
2454 * call-agent.c (store_serialno): New.
2455 (learn_status_cb): Store the serial number.
2456 * keygen.c (gen_card_key): Store the serial number
2457 (check_smartcard): New argument to return the serial number.
2458 (generate_keypair): Get the serial number from check_smartcard and
2459 store it as a parameter.
2460 * parse-packet.c (parse_key): Use the protect.iv field to store the
2462 * build-packet.c (do_secret_key): Write the serial number.
2464 2003-06-27 Werner Koch <wk@gnupg.org>
2466 * seckey-cert.c (check_secret_key): Bypass the unprotection for
2468 * sign.c (do_sign): Handle card case (i.e. mode 1002).
2470 2003-06-26 Werner Koch <wk@gnupg.org>
2472 * build-packet.c (do_secret_key): Implement special protection
2474 * parse-packet.c (parse_key): Likewise.
2476 * keygen.c (smartcard_gen_key): New.
2477 * call-agent.c (agent_scd_setattr): New.
2479 2003-06-24 Werner Koch <wk@gnupg.org>
2481 * Makefile.am: Removed signal.c
2483 * g10.c (emergency_cleanup): New.
2484 (main): Use gnupg_init_signals and register malloc for assuan.
2486 2003-06-23 Werner Koch <wk@gnupg.org>
2488 * keyid.c (do_fingerprint_md): Made it work again.
2490 2003-06-19 Werner Koch <wk@gnupg.org>
2492 Fixed all "==" comparisons against error code constants to use
2495 * import.c (import_secret_one):
2496 (import_revoke_cert):
2499 * misc.c (openpgp_md_map_name): Check also for the Hx format.
2500 (openpgp_cipher_map_name): Check also for the Sx format.
2501 (pubkey_get_npkey): Adjusted for changed gcrypt API.
2502 (pubkey_get_nskey): Ditto.
2503 (pubkey_get_nsig): Ditto.
2504 (pubkey_get_nenc): Ditto.
2506 2003-06-18 Werner Koch <wk@gnupg.org>
2508 Finished the bulk of changes for gnupg 1.9. This included
2509 switching to libgcrypt functions, using shared error codes from
2510 libgpg-error, replacing the old functions we used to have in
2511 ../util by those in ../jnlib and ../common, renaming the malloc
2512 functions and a couple of types. Note, that not all changes are
2513 listed below becuause they are too similar and done at far too
2514 many places. As of today the code builds using the current
2515 libgcrypt from CVS but it is very unlikely that it actually works.
2517 * sig-check.c (cmp_help): Removed. Was never used.
2519 * pkglue.c: New. Most stuff taken from gnupg 1.1.2.
2522 * misc.c (pull_in_libs): Removed.
2524 * keygen.c (count_chr): New.
2525 (ask_user_id): Removed faked RNG support.
2527 * misc.c (openpgp_md_map_name,openpgp_cipher_map_name)
2528 (openpgp_pk_map_name): New.
2530 * skclist.c (build_sk_list): Removed faked RNG support.
2531 (is_insecure): Removed.
2533 * comment.c (make_mpi_comment_node): Use gcry MPI print function.
2535 * keyid.c (v3_keyid): New.
2537 * misc.c (mpi_write,mpi_write_opaque,mpi_read,mpi_read_opaque)
2538 (mpi_print): New. Taken from gnupg 1.1.2.
2539 (checksum_mpi): Replaced by implementation from 1.1.2.
2541 * g10.c (my_strusage): Renamed from strusage and return NULL
2542 instead calling a default function.
2543 (add_to_strlist2): New. Taken from ../util/strgutil.c of gnupg 1.2.
2545 * plaintext.c (handle_plaintext): New arg CREATE_FILE to cope with
2546 the fact that gpg-error does not have this error code anymore.
2548 * mainproc.c (symkey_decrypt_sesskey): Ditto.
2550 * seskey.c (make_session_key): Adjusted for use with libgcrypt.
2551 (encode_session_key): Ditto.
2552 (do_encode_md): Ditto.
2553 (encode_md_value): Ditto.
2555 * keyring.c: Use libgpg-error instead of READ_ERROR etc.
2557 * g10.c: Adjusted all algorithm name/id mapping functions.
2558 (set_debug): Pass MPI and CRYPTO debug values to libgcrypt.
2560 * Makefile.am (INCLUDES): Define LOCALEDIR and the default error
2563 * g10.c (i18n_init): s/G10_LOCALEDIR/LOCALEDIR/.
2565 Renamed m_alloc et al to xmalloc et al.
2566 s/g10_errstr/gpg_strerror/
2568 Adjusted all md_open calls to the libgcrypt API.
2570 * build-packet.c (do_comment): Return error code from iobuf write
2572 (do_user_id): Ditto.
2573 (do_public_key): Ditto.
2575 * Makefile.am: Add new files, link gpg with libgpg-error.
2576 * g10.c, options.h: New option --agent-program.
2577 * call-agent.c: New.
2578 * gpg.h, call-agent.h: New.
2580 2003-06-03 David Shaw <dshaw@jabberwocky.com>
2582 * options.h, g10.c (main), keylist.c (list_keyblock_print): Add
2583 "show-validity" and "show-long-keyid" list-options.
2585 * gpgv.c (get_validity, trust_value_to_string): Stubs.
2587 * g10.c (main): Use SAFE_VERSION instead of VERSION in the
2588 version-specific gpg.conf file so it can be overridden on RISCOS.
2590 2003-06-01 David Shaw <dshaw@jabberwocky.com>
2592 * g10.c (main), keylist.c (show_policy_url, show_notation),
2593 mainproc.c (check_sig_and_print): Emulate the old policy and
2594 notation behavior (display by default). Send to status-fd whether
2595 it is displayed on the screen or not.
2597 * g10.c (main): Since we now have some options in devel that won't
2598 work in a stable branch gpg.conf file, try for a version-specific
2599 gpg.conf-VERSION file before falling back to gpg.conf.
2601 * main.h, options.h: Move various option flags to options.h.
2603 2003-05-31 David Shaw <dshaw@jabberwocky.com>
2605 * mainproc.c (check_sig_and_print), main.h, keylist.c
2606 (show_policy, show_notation): Collapse the old print_notation_data
2607 into show_policy() and show_notation() so there is only one
2608 function to print notations and policy URLs.
2610 * options.h, main.h, g10.c (main), keyedit.c
2611 (print_and_check_one_sig), keylist.c (list_one,
2612 list_keyblock_print), pkclist.c (do_edit_ownertrust), sign.c
2613 (mk_notation_and_policy): New "list-options" and "verify-options"
2614 commands. These replace the existing
2615 --show-photos/--no-show-photos,
2616 --show-notation/--no-show-notation,
2617 --show-policy-url/--no-show-policy-url, and --show-keyring
2618 options. The new method is more flexible since a user can specify
2619 (for example) showing photos during sig verification, but not in
2620 key listings. The old options are emulated.
2622 * main.h, misc.c (parse_options): New general option line
2623 parser. Fix the bug in the old version that did not handle report
2624 syntax errors after a valid entry.
2626 * import.c (parse_import_options), export.c
2627 (parse_export_options): Call it here instead of duplicating the
2630 2003-05-30 David Shaw <dshaw@jabberwocky.com>
2632 * keylist.c (list_one): Don't show the keyring filename when in
2633 --with-colons mode. Actually translate "Keyring" string.
2635 * mainproc.c (proc_tree): We can't currently handle multiple
2636 signatures of different classes or digests (we'd pretty much have
2637 to run a different hash context for each), but if they are all the
2638 same, make an exception. This is Debian bug #194292.
2640 * sig-check.c (check_key_signature2): Make string translatable.
2642 * packet.h, getkey.c (fixup_uidnode): Mark real primary uids
2643 differently than assumed primaries.
2645 * keyedit.c (no_primary_warning): Use the differently marked
2646 primaries here in a new function to warn when an --edit-key
2647 command might rearrange the self-sig dates enough to change which
2649 (menu_expire, menu_set_preferences): Use no_primary_warning()
2652 * Makefile.am: Use @DLLIBS@ for -ldl.
2654 2003-05-26 David Shaw <dshaw@jabberwocky.com>
2656 * getkey.c (premerge_public_with_secret): Made "no secret subkey
2657 for" warning a verbose item and translatable. (From wk on stable
2660 * sig-check.c (check_key_signature2): Made "no subkey for subkey
2661 binding packet" a verbose item instead of a !quiet one. There are
2662 too many garbled keys out in the wild. (From wk on stable branch)
2664 * filter.h: Remove const from WHAT. (From wk on stable branch)
2666 * progress.c (handle_progress): Store a copy of
2667 NAME. (progress_filter): Release WHAT, make sure not to print a
2668 NULL WHAT. (From wk on stable branch)
2670 * openfile.c (open_sigfile): Adjust free for new progress
2671 semantics. (From wk on stable branch)
2673 * plaintext.c (ask_for_detached_datafile): Don't dealloc
2674 pfx->WHAT. (From wk on stable branch)
2676 * seckey-cert.c (do_check): Issue the RSA_OR_IDEA status when the
2677 cipher algo is IDEA to make it easier to track down the
2678 problem. (From twoaday on stable branch)
2680 2003-05-24 David Shaw <dshaw@jabberwocky.com>
2682 * armor.c, g10.c, kbnode.c, misc.c, pkclist.c, sign.c,
2683 build-packet.c, getkey.c, keydb.c, openfile.c, plaintext.c,
2684 status.c, gpgv.c, keygen.c, options.h, sig-check.c, tdbio.h,
2685 encode.c, mainproc.c, parse-packet.c, signal.c, textfilter.c: Edit
2686 all preprocessor instructions to remove whitespace before the '#'.
2687 This is not required by C89, but there are some compilers out
2688 there that don't like it.
2690 2003-05-21 David Shaw <dshaw@jabberwocky.com>
2692 * trustdb.h, trustdb.c (is_disabled), gpgv.c (is_disabled): Rename
2693 is_disabled to cache_disabled_value, which now takes a pk and not
2694 just the keyid. This is for speed since there is no need to
2695 re-fetch a key when we already have that key handy. Cache the
2696 result of the check so we don't need to hit the trustdb more than
2699 * getkey.c (skip_disabled): New function to get a pk and call
2700 is_disabled on it. (key_byname): Use it here.
2702 * packet.h, getkey.c (skip_disabled), keylist.c
2703 (print_capabilities): New "pk_is_disabled" macro to retrieve the
2704 cached disabled value if available, and fill it in via
2705 cache_disabled_value if not available.
2707 * trustdb.c (get_validity): Cache the disabled value since we have
2708 it handy and it might be useful later.
2710 * parse-packet.c (parse_key): Clear disabled flag when parsing a
2711 new key. Just in case someone forgets to clear the whole key.
2713 * getkey.c (merge_selfsigs_main): Add an "if all else fails" path
2714 for setting a single user ID primary when there are multiple set
2715 primaries all at the same second, or no primaries set and the most
2716 recent user IDs are at the same second, or no signed user IDs at
2717 all. This is arbitrary, but deterministic.
2719 * exec.h, photoid.h: Add copyright message.
2721 * keylist.c (list_keyblock_print): Don't dump attribs for
2722 revoked/expired/etc uids for non-colon key listings. This is for
2723 consistency with --show-photos.
2725 * main.h, keylist.c (dump_attribs), mainproc.c
2726 (check_sig_and_print): Dump attribs if --attrib-fd is set when
2727 verifying signatures.
2729 * g10.c (main): New --gnupg option to disable the various
2730 --openpgp, --pgpX, etc. options. This is the same as --no-XXXX
2733 * revoke.c (ask_revocation_reason): Clear old reason if user
2734 elects to repeat question. This is bug 153.
2736 * keyedit.c (sign_uids): Show keyid of the key making the
2739 2003-05-21 Werner Koch <wk@gnupg.org>
2741 * progress.c (handle_progress)
2742 * sign.c (write_plaintext_packet)
2743 * encode.c (encode_simple,encode_crypt): Make sure that a filename
2744 of "-" is considered to be stdin so that iobuf_get_filelength
2745 won't get called. This fixes bug 156 reported by Gregery Barton.
2747 2003-05-02 David Shaw <dshaw@jabberwocky.com>
2749 * packet.h, build-packet.c (build_sig_subpkt), export.c
2750 (do_export_stream), import.c (remove_bad_stuff, import),
2751 parse-packet.c (dump_sig_subpkt, parse_one_sig_subpkt): Remove
2752 vestigal code for the old sig cache subpacket. This wasn't
2753 completely harmless as it caused subpacket 101 to disappear on
2756 * options.h, armor.c, cipher.c, g10.c, keyedit.c, pkclist.c,
2757 sign.c, encode.c, getkey.c, revoke.c: The current flags for
2758 different levels of PGP-ness are massively complex. This is step
2759 one in simplifying them. No functional change yet, just use a
2760 macro to check for compliance level.
2762 * sign.c (sign_file): Fix bug that causes spurious compression
2765 * sign.c (clearsign_file): Fix bug that prevents proper warning
2766 message from appearing when clearsigning in --pgp2 mode with a
2769 * main.h, misc.c (compliance_option_string, compliance_string,
2770 compliance_failure), pkclist.c (build_pk_list), sign.c (sign_file,
2771 clearsign_file), encode.c (encode_crypt,
2772 write_pubkey_enc_from_list): New functions to put the "this
2773 message may not be usable...." warning in one place.
2775 * options.h, g10.c (main): Part two of the simplification. Use a
2776 single enum to indicate what we are compliant to (1991, 2440,
2779 * g10.c (main): Show errors for failure in export, send-keys,
2780 recv-keys, and refresh-keys.
2782 * options.h, g10.c (main): Give algorithm warnings for algorithms
2783 chosen against the --pgpX and --openpgp rules.
2785 * keydb.h, pkclist.c (algo_available): Make TIGER192 invalid in
2788 * sign.c (sign_file), pkclist.c (algo_available): Allow passing a
2791 2003-05-01 David Shaw <dshaw@jabberwocky.com>
2793 * tdbio.c (create_version_record): Only create new trustdbs with
2794 TM_CLASSIC or TM_PGP.
2796 * trustdb.h, trustdb.c (trust_string, get_ownertrust_string,
2797 get_validity_string, ask_ownertrust, validate_keys), pkclist.c
2798 (do_edit_ownertrust): Rename trust_string to trust_value_to_string
2799 for naming consistency.
2801 * trustdb.h, trustdb.c (string_to_trust_value): New function to
2802 translate a string to a trust value.
2804 * g10.c (main): Use string_to_trust_value here for
2807 * options.h, g10.c (main), trustdb.c (trust_model_string,
2808 init_trustdb, check_trustdb, update_trustdb, get_validity,
2809 validate_one_keyblock): An "OpenPGP" trust model is misleading
2810 since there is no official OpenPGP trust model. Use "PGP"
2813 2003-04-30 David Shaw <dshaw@jabberwocky.com>
2815 * build-packet.c (build_sig_subpkt): Comments.
2817 * exec.c (exec_write): Cast NULL to void* to properly terminate
2820 * keyedit.c (show_key_with_all_names): Just for safety, catch an
2821 invalid pk algorithm.
2823 * sign.c (make_keysig_packet): Crucial that the call to mksubpkt
2824 comes LAST before the calls to finalize the sig as that makes it
2825 possible for the mksubpkt function to get a reliable pointer to
2828 * pkclist.c (do_we_trust_pre): If an untrusted key was chosen by a
2829 particular user ID, use that ID as the one to ask about when
2830 prompting whether to use the key anyway.
2831 (build_pk_list): Similar change here when adding keys to the
2834 * trustdb.c (update_validity): Fix bug that prevented more than
2835 one validity record per trust record.
2836 (get_validity): When retrieving validity for a (user) supplied
2837 user ID, return the validity for that user ID only, and do not
2838 fall back to the general key validity.
2839 (validate_one_keyblock): Some commentary on whether
2840 non-self-signed user IDs belong in the web of trust (arguably,
2843 2003-04-27 David Shaw <dshaw@jabberwocky.com>
2845 * g10.c (main): Add --no-textmode.
2847 * export.c (do_export_stream), keyedit.c (show_key_with_all_names,
2848 menu_addrevoker), mainproc.c (check_sig_and_print), photoid.c
2849 (show_photos), sign.c (mk_notation_and_policy), trustdb.c
2850 (get_validity, reset_trust_records, validate_keys): Make some
2851 strings translatable.
2853 * mainproc.c (check_sig_and_print): Show digest algorithm and sig
2854 class when verifying a sig with --verbose on, and add version, pk
2855 and hash algorithms and sig class to VALIDSIG.
2857 * parse-packet.c (enum_sig_subpkt): Make a warning message a
2858 --verbose warning message since we don't need to warn every time
2859 we see an unknown critical (we only need to invalidate the
2862 * trustdb.c (init_trustdb): Check the trustdb options even with
2863 TM_AUTO since the auto may become TM_CLASSIC or TM_OPENPGP.
2865 2003-04-26 David Shaw <dshaw@jabberwocky.com>
2867 * sign.c (do_sign): Show the hash used when making a signature in
2870 * tdbio.h, tdbio.c (tdbio_read_model): New function to return the
2871 trust model used in a given trustdb.
2873 * options.h, g10.c (main), trustdb.c (init_trustdb, check_trustdb,
2874 update_trustdb): Use tdbio_read_model to implement an "auto" trust
2875 model which is set via the trustdb.
2877 2003-04-23 David Shaw <dshaw@jabberwocky.com>
2879 * import.c (import_revoke_cert): Remove ultimate trust when
2880 revoking an ultimately trusted key.
2882 * keyedit.c (sign_uids): Allow replacing expired signatures.
2883 Allow duplicate signatures with --expert.
2885 * pkclist.c (check_signatures_trust): Don't display a null
2886 fingerprint when checking a signature with --always-trust enabled.
2888 * filter.h (progress_filter_context_t), progress.c
2889 (handle_progress), plaintext.c (ask_for_detached_datafile,
2890 hash_datafiles): Fix compiler warnings. Make "what" constant.
2892 * build-packet.c (do_plaintext): Do not create invalid literal
2893 packets with >255-byte names.
2895 2003-04-15 Werner Koch <wk@gnupg.org>
2897 * Makefile.am (AM_CFLAGS): Make use of AM_CFLAGS and AM_LDFLAGS.
2899 * g10.c, options.h: New option --enable-progress-filter.
2900 * progress.c (handle_progress): Make use of it.
2902 2003-04-15 Marcus Brinkmann <marcus@g10code.de>
2904 * progress.c: New file.
2905 * Makefile.am (common_source): Add progress.c.
2906 * filter.h (progress_filter_context_t): New type.
2907 (progress_filter, handle_progress): New prototypes.
2908 * main.h (open_sigfile): New argument for prototype.
2909 * openfile.c (open_sigfile): New argument to install progress
2911 * encode.c (encode_simple): New variable PFX. Register
2912 progress filter. Install text_filter after that.
2913 (encode_crypt): Likewise.
2914 * sign.c (sign_file): Likewise.
2915 (clearsign_file): Likewise.
2916 * decrypt.c (decrypt_message): Likewise.
2917 (decrypt_messages): Likewise.
2918 * verify.c (verify_signatures): Likewise.
2919 (verify_one_file): Likewise.
2920 * plaintext.c (hash_datafiles): Likewise.
2921 (ask_for_detached_datafile): Likewise.
2923 2003-04-10 Werner Koch <wk@gnupg.org>
2925 * passphrase.c (read_passphrase_from_fd): Do a dummy read if the
2926 agent is to be used. Noted by Ingo Klöcker.
2927 (agent_get_passphrase): Inhibit caching when we have no
2928 fingerprint. This is required for key generation as well as for
2929 symmetric only encryption.
2931 * passphrase .c (agent_get_passphrase): New arg CANCELED.
2932 (passphrase_to_dek): Ditto. Passed to above. Changed all
2933 callers to pass NULL.
2934 * seckey-cert.c (do_check): New arg CANCELED.
2935 (check_secret_key): Terminate loop when canceled.
2937 * keyedit.c (change_passphrase): Pass ERRTEXT untranslated to
2938 passphrase_to_dek and translate where appropriate.
2939 * seckey-cert.c (check_secret_key): Ditto.
2940 * keygen.c (ask_passphrase): Ditto.
2941 * passphrase.c (agent_get_passphrase): Translate the TRYAGAIN_TEXT.
2942 Switch the codeset to utf-8.
2944 2003-04-09 Werner Koch <wk@gnupg.org>
2946 * decrypt.c (decrypt_messages): Fixed error handling; the function
2947 used to re-loop with same file after an error. Reported by Joseph
2950 2003-04-08 David Shaw <dshaw@jabberwocky.com>
2952 * main.h, g10.c (main), import.c (parse_import_options,
2953 fix_pks_corruption): It's really PKS corruption, not HKP
2954 corruption. Keep the old repair-hkp-subkey-bug command as an
2957 * g10.c (main): Rename --no-version to --no-emit-version for
2958 consistency. Keep --no-version as an alias.
2960 2003-04-04 David Shaw <dshaw@jabberwocky.com>
2962 * pkclist.c (algo_available): PGP 8 can use the SHA-256 hash.
2964 * sign.c (sign_file, clearsign_file, sign_symencrypt_file): Remove
2967 2003-04-01 Werner Koch <wk@gnupg.org>
2969 * mainproc.c (check_sig_and_print): Add primary key fpr to VALIDSIG
2972 2003-03-24 David Shaw <dshaw@jabberwocky.com>
2974 * keydb.h: Err on the side of making an unknown signature a SIG
2977 * import.c (delete_inv_parts): Discard any key signatures that
2978 aren't key types (i.e. 0x00, 0x01, etc.)
2980 * g10.c (main): Add deprecated option warning for
2981 --list-ownertrust. Add --compression-algo alias for
2982 --compress-algo. Change --version output strings to match
2983 "showpref" strings, and make translatable.
2985 * status.c (do_get_from_fd): Accept 'y' as well as 'Y' for
2986 --command-fd boolean input.
2988 * trustdb.c: Fix typo (DISABLE_REGEXP -> DISABLE_REGEX)
2990 * keyedit.c (show_key_with_all_names_colon): Show no-ks-modify
2993 2003-03-11 David Shaw <dshaw@jabberwocky.com>
2995 * options.h, g10.c (main), keyserver.c (kopts): Add "try-dns-srv"
2996 keyserver option. Defaults to on.
2998 * passphrase.c (agent_get_passphrase): Fix memory leak with
2999 symmetric messages. Fix segfault with symmetric messages. Fix
3000 incorrect prompt with symmetric messages.
3002 2003-03-10 Werner Koch <wk@gnupg.org>
3004 * compress.c (init_uncompress): Use a 15 bit window size so that
3005 the output of implementations which don't run for PGP 2
3006 compatibility won't get garbled.
3008 2003-03-04 David Shaw <dshaw@jabberwocky.com>
3010 * trustdb.c (validate_keys): Mask the ownertrust when building the
3011 list of fully valid keys so that disabled keys are still counted
3012 in the web of trust.
3013 (get_ownertrust_with_min): Do the same for the minimum ownertrust
3016 * parse-packet.c (dump_sig_subpkt): Show the notation names for
3017 not-human-readable notations. Fix cosmetic off-by-one length
3020 * options.skel: Add explantion and commented-out
3021 "no-mangle-dos-filenames".
3023 * mainproc.c (proc_encrypted): Make string translatable.
3025 * keyserver.c (keyserver_spawn): Quote ':', '%', and any 8-bit
3026 characters in the uid strings sent to the keyserver helper.
3028 * keyring.c (keyring_rebuild_cache): Lock the keyring while
3029 rebuilding the signature caches to prevent another gpg from
3030 tampering with the temporary copy.
3032 * keygen.c (keygen_set_std_prefs): Include AES192 and AES256 in
3035 * keyedit.c (show_prefs): Make strings translatable.
3037 * keydb.c: Double the maximum number of keyrings to 40.
3039 * gpgv.c (main): Fix bug #113 - gpgv should accept the
3040 --ignore-time-conflict option.
3042 * g10.c (main): --openpgp disables --pgpX. Double the amount of
3043 secure memory to 32k (keys are getting bigger these days).
3045 * Makefile.am: Makefile.am: Use @CAPLIBS@ to link in -lcap if we
3046 are using capabilities.
3048 2003-02-26 David Shaw <dshaw@jabberwocky.com>
3050 * keyserver.c (keyserver_spawn): Include various pieces of
3051 information about the key in the data sent to the keyserver
3052 helper. This allows the helper to use it in instructing a remote
3053 server which may not have any actual OpenPGP smarts in parsing
3056 * main.h, export.c (export_pubkeys_stream, do_export_stream): Add
3057 ability to return only the first match in an exported keyblock for
3058 keyserver usage. This should be replaced at some point with a
3059 more flexible solution where each key can be armored seperately.
3061 2003-02-22 David Shaw <dshaw@jabberwocky.com>
3063 * sign.c (sign_file): Do not push textmode filter onto an unopened
3064 IOBUF (segfault). Noted by Marcus Brinkmann. Push and
3065 reinitialize textmode filter for each file in a multiple file
3068 * packet.h, getkey.c (fixup_uidnode), keyedit.c (show_prefs): Set
3069 and show the keyserver no-modify flag.
3071 * keygen.c (add_keyserver_modify): New.
3072 (keygen_upd_std_prefs): Call it here.
3073 (keygen_set_std_prefs): Accept "ks-modify" and "no-ks-modify" as
3074 prefs to set and unset keyserver modify flag.
3076 * g10.c (main): Accept "s1" in addition to "idea" to match the
3079 * main.h, misc.c (idea_cipher_warn): We don't need this if IDEA
3082 2003-02-21 David Shaw <dshaw@jabberwocky.com>
3084 * keygen.c (keygen_set_std_prefs): Don't put AES or CAST5 in
3085 default prefs if they are disabled.
3087 * g10.c (main): Use 3DES instead of CAST5 if we don't have CAST5
3088 support. Use 3DES for the s2k cipher in --openpgp mode.
3089 (print_mds): #ifdef all of the optional digest algorithms.
3091 2003-02-12 David Shaw <dshaw@jabberwocky.com>
3093 * keydb.h, getkey.c (classify_user_id, classify_user_id2): Make
3094 'exact' a per-desc item. Merge into one function since
3095 'force_exact' is no longer needed.
3096 (key_byname): Use new classify_user_id function, and new exact
3097 flag in KEYDB_SEARCH_DESC.
3099 * keyring.h, keyring.c (keyring_search): Return an optional index
3100 to show which KEYDB_SEARCH_DESC was the matching one.
3102 * keydb.h, keydb.c (keydb_search): Rename to keydb_search2, and
3103 pass the optional index to keyring_search. Add a macro version of
3104 keydb_search that calls this new function.
3106 * export.c (do_export_stream): If the keyid! syntax is used,
3107 export only that specified key. If the key in question is a
3108 subkey, export the primary plus that subkey only.
3110 2003-02-11 David Shaw <dshaw@jabberwocky.com>
3112 * exec.c (set_exec_path): Add debugging line.
3114 * g10.c (print_hex, print_mds): Print long hash strings a lot
3115 neater. This assumes at least an 80-character display, as there
3116 are a few other similar assumptions here and there. Users who
3117 need unformatted hashes can still use with-colons. Check that
3118 SHA384 and 512 are available before using them as they are no
3119 longer always available.
3121 * Makefile.am: Use a local copy of libexecdir along with @PACKAGE@
3122 as GNUPG_LIBEXECDIR so it can be easily overridden at make time.
3124 2003-02-04 David Shaw <dshaw@jabberwocky.com>
3126 * armor.c (parse_hash_header, armor_filter): Accept the new SHAs
3127 in the armor Hash: header.
3129 * g10.c (print_hex): Print long hash strings a little neater.
3130 (print_mds): Add the new SHAs to the hash list.
3132 2003-02-02 David Shaw <dshaw@jabberwocky.com>
3134 * keyedit.c (menu_revuid): Properly handle a nonselfsigned uid on
3135 a v4 key (treat as a v4 revocation).
3137 * import.c (print_import_check): Do not re-utf8 convert user IDs.
3139 2003-01-27 David Shaw <dshaw@jabberwocky.com>
3141 * mainproc.c (list_node): Show signature expiration date in
3142 with-colons sig records.
3144 * keylist.c (list_keyblock_colon), mainproc.c (list_node): Show
3145 trust sig information in with-colons sig records.
3147 2003-01-16 David Shaw <dshaw@jabberwocky.com>
3149 * g10.c (add_group): Trim whitespace after a group name so it does
3150 not matter where the user puts the = sign.
3152 * options.skel: Comment out the first three lines in case someone
3153 manually copies the skel file to their homedir.
3155 * sign.c (clearsign_file): Only use pgp2mode with v3 keys and
3156 MD5. This matches what we do when decoding such messages and
3157 prevents creating a message (v3+RIPEMD/160) that we can't verify.
3159 * sig-check.c (signature_check2): Use G10ERR_GENERAL as the error
3160 for signature digest conflict. BAD_SIGN implies that a signature
3161 was checked and we may try and print out a user ID for a key that
3164 2003-01-15 David Shaw <dshaw@jabberwocky.com>
3166 * trustdb.c (init_trustdb, get_validity): Don't use a changed
3167 trust model to indicate a dirty trustdb, and never auto-rebuild a
3168 dirty trustdb with the "always" trust model.
3170 * g10.c (add_group): Last commit missed the \t ;)
3172 2003-01-14 David Shaw <dshaw@jabberwocky.com>
3174 * packet.h, parse-packet.c (setup_user_id), free-packet.c
3175 (free_user_id), keydb.h, keyid.c (namehash_from_uid): New function
3176 to rmd160-hash the contents of a user ID packet and cache it in
3179 * keylist.c (list_keyblock_colon): Use namehash in field 8 of
3180 uids. Show dates for creation (selfsig date), and expiration in
3183 * trustdb.c (get_validity, get_validity_counts, update_validity):
3184 Use new namehash function rather than hashing it locally.
3186 2003-01-14 Werner Koch <wk@gnupg.org>
3188 * g10.c (add_group): Fixed group parsing to allow more than one
3189 delimiter in a row and also allow tab as delimiter.
3191 2003-01-12 David Shaw <dshaw@jabberwocky.com>
3193 * tdbio.c (tdbio_set_dbname): Fix assertion failure with
3194 non-fully-qualified trustdb names.
3196 2003-01-11 David Shaw <dshaw@jabberwocky.com>
3198 * trustdb.c (get_validity_info, get_ownertrust_info,
3199 trust_letter): Simplify by returning a ? for error directly.
3201 * keyedit.c (show_key_with_all_names): Use get_validity_string and
3202 get_ownertrust_string to show full word versions of trust
3203 (i.e. "full" instead of 'f').
3205 * trustdb.h, trustdb.c (get_ownertrust_string,
3206 get_validity_string): Same as get_ownertrust_info, and
3207 get_validity_info, except returns a full string.
3209 * trustdb.c (get_ownertrust_with_min): New. Same as
3210 'get_ownertrust' but takes the min_ownertrust value into account.
3212 2003-01-10 David Shaw <dshaw@jabberwocky.com>
3214 * armor.c (armor_filter): Comment about PGP's end of line tab
3217 * trustdb.h, trustdb.c (trust_letter): Make
3218 static. (get_ownertrust_info, get_validity_info): Don't mask the
3221 * trustdb.h, gpgv.c, trustdb.c (get_validity, get_validity_info),
3222 keylist.c (list_keyblock_colon), keyedit.c
3223 (show_key_with_all_names_colon, menu_revuid): Pass a user ID in
3224 rather than a namehash, so we only have to do the hashing in one
3227 * packet.h, pkclist.c (build_pk_list), free-packet.c
3228 (release_public_key_parts): Remove unused namehash element for
3231 2003-01-07 David Shaw <dshaw@jabberwocky.com>
3233 * keygen.c (keygen_set_std_prefs): Warn when setting an IDEA
3234 preference when IDEA is not available.
3236 2003-01-06 David Shaw <dshaw@jabberwocky.com>
3238 * trustdb.c (get_validity_info): 'd' for disabled is not a
3239 validity value any more.
3241 * packet.h, tdbio.h, tdbio.c (tdbio_read_record,
3242 tdbio_write_record), trustdb.c (update_validity): Store temporary
3243 full & marginal counts in the trustdb.
3244 (clear_validity, get_validity_counts): Return and clear temp
3246 (store_validation_status): Keep track of which keyids have been
3248 (validate_one_keyblock, validate_key_list): Use per-uid copies of
3249 the full & marginal counts so they can be recalled for multiple
3251 (validate_keys): Only use unused keys for each new round.
3252 (reset_unconnected_keys): Rename to reset_trust_records, and only
3253 skip specifically excluded records.
3255 * keylist.c (print_capabilities): Show 'D' for disabled keys in
3256 capabilities section.
3258 * trustdb.c (is_disabled): Remove incorrect comment.
3260 2003-01-03 David Shaw <dshaw@jabberwocky.com>
3262 * import.c (import_one): Only do the work to create the status
3263 display for interactive import if status is enabled.
3265 * keyring.c (keyring_search): skipfnc didn't work properly with
3266 non-keyid searches. Noted by Stefan Bellon.
3268 * getkey.c (merge_selfsigs_main): Remove some unused code and make
3269 sure that the pk selfsigversion member accounts for 1F direct
3272 2003-01-02 Werner Koch <wk@gnupg.org>
3274 * keydb.c (keydb_add_resource): Don't assume that try_make_homedir
3275 terminates but check again for the existence of the directory and
3277 * openfile.c (copy_options_file): Print a warning if the skeleton
3278 file has active options.
3280 2002-12-29 David Shaw <dshaw@jabberwocky.com>
3282 * getkey.c (merge_selfsigs_main), main.h, sig-check.c
3283 (check_key_signature2): Pass the ultimately trusted pk directly to
3284 check_key_signature2 to avoid going through the key selection
3285 mechanism. This prevents a deadly embrace when two keys without
3286 selfsigs each sign the other.
3288 2002-12-27 David Shaw <dshaw@jabberwocky.com>
3290 * keyserver.c (keyserver_refresh): Don't print the "refreshing..."
3291 line if there are no keys to refresh or if there is no keyserver
3294 * getkey.c (merge_selfsigs_main): Any valid user ID should make a
3295 key valid, not just the last one. This also fixes Debian bug
3298 2002-12-27 Stefan Bellon <sbellon@sbellon.de>
3300 * import.c (print_import_check): Changed int to size_t.
3302 2002-12-27 David Shaw <dshaw@jabberwocky.com>
3304 * keyedit.c (keyedit_menu, menu_revuid): Add "revuid" feature to
3305 revoke a user ID. This is the same as issuing a revocation for
3306 the self-signature, but a much simpler interface to do it.
3308 2002-12-26 David Shaw <dshaw@jabberwocky.com>
3310 * keydb.h, getkey.c (key_byname): Flag to enable or disable
3311 including disabled keys. Keys specified via keyid (i.e. 0x...)
3312 are always included.
3314 * getkey.c (get_pubkey_byname, get_seckey_byname2,
3315 get_seckey_bynames), keyedit.c (keyedit_menu, menu_addrevoker):
3316 Include disabled keys in these functions.
3318 * pkclist.c (build_pk_list): Do not include disabled keys for -r
3319 or the key prompt. Do include disabled keys for the default key
3322 * trustdb.h, trustdb.c (is_disabled): New skipfnc for skipping
3325 * gpgv.c (is_disabled): Stub.
3327 * keygen.c (keygen_add_key_expire): Properly handle updating a key
3328 expiration to a no-expiration value.
3330 * keyedit.c (enable_disable_key): Comment.
3332 * import.c (import_one): When in interactive mode and --verbose,
3333 don't repeat some key information twice.
3335 2002-12-22 Timo Schulz <ts@winpt.org>
3337 * import.c (print_import_check): New.
3338 (import_one): Use it here.
3339 Use merge_keys_and_selfsig in the interactive mode to avoid
3340 wrong key information.
3341 * status.h: Add new status code.
3344 2002-12-13 David Shaw <dshaw@jabberwocky.com>
3346 * pkclist.c (do_we_trust): Tweak language to refer to the "named
3347 user" rather than "owner". Noted by Stefan Bellon.
3349 * trustdb.h, trustdb.c (trustdb_pending_check): New function to
3350 check if the trustdb needs a check.
3352 * import.c (import_keys_internal): Used here so we don't rebuild
3353 the trustdb if it is still clean.
3354 (import_one, chk_self_sigs): Only mark trustdb dirty if the key
3355 that is being imported has any sigs other than self-sigs.
3356 Suggested by Adrian von Bidder.
3358 * options.skel: Include the required '=' sign in the sample
3359 'group' option. Noted by Stefan Bellon.
3361 * import.c (chk_self_sigs): Don't try and check a subkey as if it
3364 2002-12-11 David Shaw <dshaw@jabberwocky.com>
3366 * tdbio.c (tdbio_read_record, tdbio_write_record): Compact the
3367 RECTYPE_TRUST records a bit.
3369 * g10.c (main): Comment out --list-trust-path until it can be
3372 * import.c (import_one): Warn when importing an Elgamal primary
3373 that this may take some time (to verify self-sigs).
3374 (chk_self_sigs): Try and cache all self-sigs so the keyblock is
3375 written to the keyring with a good rich cache.
3377 * keygen.c (ask_algo): Make the Elgamal sign+encrypt warning
3378 stronger, and remove the RSA sign+encrypt warning.
3380 2002-12-06 Stefan Bellon <sbellon@sbellon.de>
3382 * options.h: Fixed typo (mangle_dos_names instead of
3383 mangle_dos_filenames).
3385 2002-12-05 Werner Koch <wk@gnupg.org>
3387 * g10.c: New options --[no-]mangle-dos-filenames.
3388 * options.h (opt): Added mangle-dos-filenames.
3389 * openfile.c (open_outfile) [USE_ONLY_8DOT3]: Truncate the
3390 filename only when this option is set; this is the default.
3392 2002-12-04 David Shaw <dshaw@jabberwocky.com>
3394 * main.h, keyedit.c, keygen.c: Back out previous (2002-12-01)
3395 change. Minimal isn't always best.
3397 * sign.c (update_keysig_packet): Use the current time rather then
3398 a modification of the original signature time. Make sure that
3399 this doesn't cause a time warp.
3401 * keygen.c (keygen_add_key_expire): Properly handle a key
3402 expiration date in the past (use a duration of 0).
3404 * keyedit.c (menu_expire): Use update_keysig_packet so any sig
3405 subpackets are maintained during the update.
3407 * build-packet.c (build_sig_subpkt): Mark sig expired or unexpired
3408 when the sig expiration subpacket is added.
3409 (build_sig_subpkt_from_sig): Handle making an expiration subpacket
3410 from a sig that has already expired (use a duration of 0).
3412 * packet.h, sign.c (update_keysig_packet), keyedit.c
3413 (menu_set_primary_uid, menu_set_preferences): Add ability to issue
3414 0x18 subkey binding sigs to update_keysig_packet and change all
3417 * trustdb.c (validate_keys): Show trust parameters when building
3418 the trustdb, and make sure that the version record update was
3420 (init_trustdb): If the current parameters aren't what was used for
3421 building the trustdb, the trustdb is invalid.
3423 * tbio.c (tdbio_db_matches_options): Update to work with new
3426 2002-12-03 David Shaw <dshaw@jabberwocky.com>
3428 * tdbio.h, tdbio.c (tdbio_read_record, tdbio_write_record): Store
3429 trust model in the trustdb version record.
3430 (tdbio_update_version_record): New function to update version
3431 record values during a trustdb check or update.
3432 (tdbio_dump_record): Show trust model in dump.
3434 * trustdb.c (validate_keys): Call tdbio_update_version_record on
3435 success so that the correct options are stored in the trustdb.
3437 * options.h: rearrange trust models so that CLASSIC is 0 and
3440 * options.h, g10.c (main), encode.c (write_pubkey_enc_from_list),
3441 pkclist.c (algo_available), revoke.c (gen_revoke): Add --pgp8
3442 mode. This is basically identical to --pgp7 in all ways except
3443 that signing subkeys, v4 data sigs (including expiration), and SK
3444 comments are allowed.
3446 * getkey.c (finish_lookup): Comment.
3448 * main.h, keylist.c (reorder_keyblock), keyedit.c (keyedit_menu):
3449 Reorder user ID display in the --edit-key menu to match that of
3450 the --list-keys display.
3452 * g10.c (add_notation_data): Fix initialization.
3454 2002-12-01 David Shaw <dshaw@jabberwocky.com>
3456 * keyedit.c (menu_expire): Don't lose key flags when changing the
3457 expiration date of a subkey. This is not the most optimal
3458 solution, but it is minimal change on the stable branch.
3460 * main.h, keygen.c (do_copy_key_flags): New function to copy key
3461 flags, if any, from one sig to another.
3462 (do_add_key_expire): New function to add key expiration to a sig.
3463 (keygen_copy_flags_add_expire): New version of
3464 keygen_add_key_expire that also copies key flags.
3465 (keygen_add_key_flags_and_expire): Use do_add_key_expire.
3467 * import.c (fix_hkp_corruption): Comment.
3469 2002-11-25 Stefan Bellon <sbellon@sbellon.de>
3471 * plaintext.c (handle_plaintext) [__riscos__]: If nooutput is set,
3472 no filetype is needed obviously.
3474 2002-11-24 David Shaw <dshaw@jabberwocky.com>
3476 * main.h, misc.c (default_cipher_algo, default_compress_algo):
3477 New. Return the default algorithm by trying
3478 --cipher-algo/--compress-algo, then the first item in the pref
3479 list, then s2k-cipher-algo or ZIP.
3481 * sign.c (sign_file, sign_symencrypt_file), encode.c
3482 (encode_simple, encode_crypt): Call default_cipher_algo and
3483 default_compress_algo to get algorithms.
3485 * g10.c (main): Allow pref selection for compress algo with
3488 * mainproc.c (proc_encrypted): Use --s2k-digest-algo for
3489 passphrase mangling rather than --digest-algo.
3491 * sign.c (hash_for): If --digest-algo is not set, but
3492 --personal-digest-preferences is, then use the first hash
3493 algorithm in the personal list. If the signing algorithm is DSA,
3494 then use the first 160-bit hash algorithm in the personal list.
3495 If --pgp2 is set and it's a v3 RSA key, use MD5.
3497 * g10.c (main), keydb.c (keydb_add_resource,
3498 keydb_locate_writable): Rename --default-keyring as
3499 --primary-keyring. Stefan wins the naming contest.
3501 2002-11-23 David Shaw <dshaw@jabberwocky.com>
3503 * g10.c (add_notation_data): Disallow notation names that do not
3504 contain a '@', unless --expert is set. This is to help prevent
3505 people from polluting the (as yet unused) IETF namespace.
3507 * main.h: Comments about default algorithms.
3509 * photoid.c (image_type_to_string): Comments about 3-letter file
3512 * encode.c (encode_simple), passphrase.c (passphrase_to_dek),
3513 sign.c (sign_symencrypt_file): Use --s2k-digest-algo for
3514 passphrase mangling rather than --digest-algo.
3516 2002-11-21 David Shaw <dshaw@jabberwocky.com>
3518 * keygen.c (keygen_set_std_prefs): Properly handle an empty
3521 * misc.c (string_to_compress_algo): "none" is a bad choice since
3522 it conflicts with the "none" in setpref.
3524 2002-11-14 David Shaw <dshaw@jabberwocky.com>
3526 * g10.c (main): Allow compression algorithm names as the argument
3527 to --compress-algo. The old algorithm names still work for
3528 backwards compatibility.
3530 * misc.c (string_to_compress_algo): Allow "none" as an alias for
3533 2002-11-13 Stefan Bellon <sbellon@sbellon.de>
3535 * getkey.c (get_pubkey_byfprint_fast): Fixed type incompatibility,
3536 was unsigned char instead of byte.
3538 2002-11-13 David Shaw <dshaw@jabberwocky.com>
3540 * encode.c (encode_simple): Make sure that files larger than about
3541 4G use partial length encoding. This is required because OpenPGP
3542 allows only for 32 bit length fields. From Werner on stable
3545 * getkey.c (get_pubkey_direct): Renamed to...
3546 (get_pubkey_fast): this and made extern.
3547 (get_pubkey_byfprint_fast): New. From Werner on stable branch.
3549 * keydb.h, import.c (import_one): Use get_pubkey_fast instead of
3550 get_pubkey. We don't need a merged key and actually this might
3552 (revocation_present): Likewise for search by fingerprint. From
3553 Werner on stable branch.
3555 * g10.c (main): Try to create the trustdb even for non-colon-mode
3556 list-key operations. This is required because getkey needs to
3557 know whether a a key is ultimately trusted. From Werner on stable
3560 * exec.c [__CYGWIN32__]: Keep cygwin separate from Mingw32;
3561 we don't need it here as it behaves more like a Posix system.
3562 From Werner on stable branch.
3564 * passphrase.c (agent_get_passphrase): Ditto. From Werner on
3567 * tdbio.c (MY_O_BINARY): Need binary mode with Cygwin. From
3568 Werner on stable branch.
3570 * g10.c, gpgv.c (main) [__CYGWIN32__]: Don't get the homedir from
3571 the registry. From Werner on stable branch.
3573 * keyedit.c (show_key_with_all_names_colon): Make --with-colons
3574 --edit display match the validity and trust of --with-colons
3577 * passphrase.c (agent_send_all_options): Fix compile warning.
3579 * keylist.c (list_keyblock_colon): Validity for subkeys should
3580 match that of the primary key, and not that of the last user ID.
3582 * getkey.c (merge_selfsigs): Revoked/expired/invalid primary keys
3583 carry these facts onto all their subkeys, but only after the
3584 subkey has a chance to be marked valid. This is to fix an
3585 incorrect "invalid public key" error verifying a signature made by
3586 a revoked signing subkey, with a valid unrevoked primary key.
3588 2002-11-09 Werner Koch <wk@gnupg.org>
3590 * passphrase.c (agent_send_all_options): Use tty_get_ttyname to
3591 get the default ttyname.
3593 2002-11-07 David Shaw <dshaw@jabberwocky.com>
3595 * keyring.h, keyring.c (keyring_register_filename): Return the
3596 pointer if a given keyring is registered twice.
3598 * keydb.h, keydb.c (keydb_add_resource): Use flags to indicate a
3600 (keydb_locate_writable): Prefer the default keyring if possible.
3602 * g10.c (main): Add --default-keyring option.
3604 2002-11-06 David Shaw <dshaw@jabberwocky.com>
3606 * options.h, g10.c (main), trustdb.c (ask_ownertrust): Add
3607 --force-ownertrust option for debugging purposes. This allows
3608 setting a whole keyring to a given trust during an
3609 --update-trustdb. Not for normal use - it's just easier than
3610 hitting "4" all the time to test a large trustdb.
3612 * pubkey-enc.c (get_session_key): With hidden recipients or try a
3613 given passphrase against all secret keys rather than trying all
3614 secret keys in turn. Don't if --try-all-secrets or --status-fd is
3617 * passphrase.c (passphrase_to_dek): Mode 1 means do a regular
3618 passphrase query, but don't prompt with the key info.
3620 * seckey-cert.c (do_check, check_secret_key): A negative ask count
3621 means to enable passphrase mode 1.
3623 * keydb.h, getkey.c (enum_secret_keys): Add flag to include
3624 secret-parts-missing keys (or not) in the list.
3626 2002-11-05 David Shaw <dshaw@jabberwocky.com>
3628 * keyserver.c (keyserver_search_prompt): When --with-colons is
3629 enabled, don't try and fit the search output to the screen size -
3630 just dump the whole list.
3632 2002-11-04 David Shaw <dshaw@jabberwocky.com>
3634 * keyserver.c (keyserver_search_prompt): When --with-colons is
3635 enabled, just dump the raw keyserver protocol to stdout and don't
3638 * keyserver.c (show_prompt): Don't show a prompt when command-fd
3641 * trustdb.c (trust_model_string, check_trustdb, update_trustdb,
3642 validate_one_keyblock): It's not clear what a trustdb rebuild or
3643 check means with a trust model other than "classic" or "openpgp",
3646 2002-11-03 David Shaw <dshaw@jabberwocky.com>
3648 * options.h, g10.c (main): Add --trust-model option. Current
3649 models are "openpgp" which is classic+trustsigs, "classic" which
3650 is classic only, and "always" which is the same as the current
3651 option --always-trust (which still works). Default is "openpgp".
3653 * trustdb.c (validate_one_keyblock): Use "openpgp" trust model to
3656 * gpgv.c (main), mainproc.c (check_sig_and_print), pkclist.c
3657 (do_we_trust, do_we_trust_pre, check_signatures_trust): Use new
3658 --trust-model option in place of --always-trust.
3660 * keyedit.c (sign_mk_attrib, trustsig_prompt, sign_uids,
3661 keyedit_menu): Prompt for and create a trust signature with
3662 "tsign". This is functional, but needs better UI text.
3664 * build-packet.c (build_sig_subpkt): Able to build trust and
3667 * pkclist.c (do_edit_ownertrust): Comment.
3669 2002-11-02 David Shaw <dshaw@jabberwocky.com>
3671 * keygen.c (set_one_pref, keygen_set_std_prefs): Allow using the
3672 full algorithm name (CAST5, SHA1) rather than the short form (S3,
3675 * main.h, keygen.c (keygen_get_std_prefs), keyedit.c
3676 (keyedit_menu): Return and use a fake uid packet rather than a
3677 string since we already have a nice parser/printer in
3678 keyedit.c:show_prefs.
3680 * main.h, misc.c (string_to_compress_algo): New.
3682 2002-11-01 David Shaw <dshaw@jabberwocky.com>
3684 * g10.c (main): Add --no-throw-keyid.
3686 * keydb.h, encode.c (write_pubkey_enc_from_list), g10.c (main),
3687 pkclist.c (build_pk_list): Add --hidden-recipient (-R) and
3688 --hidden-encrypt-to, which do a single-user variation on
3689 --throw-keyid. The "hide this key" flag is carried in bit 0 of
3690 the pk_list flags field.
3692 * keyserver.c (parse_keyrec): Fix shadowing warning.
3694 2002-10-31 Stefan Bellon <sbellon@sbellon.de>
3696 * compress.c (init_compress) [__riscos__]: Use
3697 riscos_load_module() to load ZLib module.
3699 * g10.c (main) [__riscos__]: Renames due to changes in riscos.c
3700 (e.g. prefixes all RISC OS specific functions with riscos_*).
3701 * photoid.c (show_photos) [__riscos__]: Likewise.
3702 * signal.c (got_fatal_signal) [__riscos__]: Likewise.
3704 * trustdb.c (check_regexp) [__riscos__]: Branch to RISC OS RegEx
3707 2002-10-31 David Shaw <dshaw@jabberwocky.com>
3709 * build-packet.c (do_plaintext), encode.c (encode_sesskey,
3710 encode_simple, encode_crypt), sign.c (write_plaintext_packet): Use
3711 wipememory() instead of memset() to wipe sensitive memory as the
3712 memset() might be optimized away.
3714 2002-10-30 David Shaw <dshaw@jabberwocky.com>
3716 * trustdb.c (check_regexp): Modern regexps require REG_EXTENDED.
3718 2002-10-29 David Shaw <dshaw@jabberwocky.com>
3720 * packet.h, trustdb.h, trustdb.c (trust_string): New. Return a
3721 string like "fully trusted", "marginally trusted", etc.
3722 (get_min_ownertrust): New. Return minimum ownertrust.
3723 (update_min_ownertrust): New. Set minimum ownertrust.
3724 (check_regexp): New. Check a regular epression against a user ID.
3725 (ask_ownertrust): Allow specifying a minimum value.
3726 (get_ownertrust_info): Follow the minimum ownertrust when
3728 (clear_validity): Remove minimum ownertrust when a key becomes
3730 (release_key_items): Release regexp along with the rest of the
3732 (validate_one_keyblock, validate_keys): Build a trust sig chain
3733 while validating. Call check_regexp for regexps. Use the minimum
3734 ownertrust if the user does not specify a genuine ownertrust.
3736 * pkclist.c (do_edit_ownertrust): Only allow user to select a
3737 trust level greater than the minimum value.
3739 * parse-packet.c (can_handle_critical): Can handle critical trust
3740 and regexp subpackets.
3742 * trustdb.h, trustdb.c (clear_ownertrusts), delkey.c
3743 (do_delete_key), import.c (import_one): Rename clear_ownertrust to
3744 clear_ownertrusts and have it clear the min_ownertrust value as
3747 * keylist.c (list_keyblock_print): Indent uid to match pub and
3750 * keyedit.c (print_and_check_one_sig, show_key_and_fingerprint,
3751 menu_addrevoker), keylist.c (list_keyblock_print,
3752 print_fingerprint): Show "T" or the trust depth for trust
3753 signatures, and add spaces to some strings to make room for it.
3755 * packet.h, parse-packet.c (dump_sig_subpkt, parse_one_sig_subpkt,
3756 parse_signature): Parse trust signature values.
3758 * tdbio.h, tdbio.c (tdbio_read_record, tdbio_write_record):
3759 Reserve a byte for the minimum ownertrust value (for use with
3762 2002-10-29 Stefan Bellon <sbellon@sbellon.de>
3764 * build-packet.c (calc_plaintext, do_plaintext): Removed RISC OS
3765 specific filetype parts (it's now done in make_basename()).
3767 * plaintext.c (handle_plaintext): Tidied up RISC OS specific
3770 * encode.c (encode_simple, encode_crypt): Added argument to
3771 make_basename() call.
3773 * sign.c (write_plaintext_packet): Added argument to
3774 make_basename() call.
3776 2002-10-28 Stefan Bellon <sbellon@sbellon.de>
3778 * build-packet.c (calc_plaintext, do_plaintext): Added filetype
3779 handling for RISC OS' file types.
3781 * plaintext.c (handle_plaintext) [__riscos__]: Added filetype
3782 handling for RISC OS' file types.
3784 2002-10-23 David Shaw <dshaw@jabberwocky.com>
3786 * main.h, import.c (sec_to_pub_keyblock, import_secret_one,
3787 parse_import_options), g10.c (main): New import-option
3788 "convert-sk-to-pk" to convert a secret key into a public key
3789 during import. It is on by default.
3791 2002-10-23 Werner Koch <wk@gnupg.org>
3793 * pubkey-enc.c (get_it): Fix segv, test for revoked only when PK
3796 2002-10-18 Timo Schulz <ts@winpt.org>
3798 * keylist.c: (print_pubkey_info): New.
3799 (print_seckey_info): New.
3800 * main.h: Prototypes for the new functions.
3801 * delkey.c (do_delete_key): Use it here.
3802 * revoke.c (gen_desig_revoke): Ditto.
3804 2002-10-17 Werner Koch <wk@gnupg.org>
3806 * pkclist.c (do_edit_ownertrust): Show all user IDs. This should
3807 be enhanced to also show the current trust level. Suggested by
3810 2002-10-17 David Shaw <dshaw@jabberwocky.com>
3812 * g10.c (main): Handle --strict and --no-strict from the command
3813 line before the options file is loaded.
3815 2002-10-15 David Shaw <dshaw@jabberwocky.com>
3817 * g10.c (main): Disable --textmode when encrypting (symmetric or
3818 pk) in --pgp2 mode as PGP 2 can't handle the unknown length
3819 literal packet. Reported by Michael Richardson.
3821 2002-10-14 David Shaw <dshaw@jabberwocky.com>
3823 * keyserver-internal.h, keyserver.c (print_keyrec, parse_keyrec,
3824 show_prompt, keyserver_search_prompt, keyserver_spawn): Go to
3825 version 1 of the keyserver protocol. This is a better design,
3826 similar to --with-colons, that allows for keys with multiple user
3827 IDs rather than using multiple keys. It also matches the machine
3828 readable pksd format. Also use a prettier --search-keys listing
3829 format that can fill different size windows (currently set at 24
3832 2002-10-12 Werner Koch <wk@gnupg.org>
3834 * keygen.c (print_status_key_created): New.
3835 (do_generate_keypair): Use it to print the fingerprint.
3836 (generate_subkeypair): Likewise.
3838 2002-10-11 David Shaw <dshaw@jabberwocky.com>
3840 * keyedit.c (menu_addrevoker): Properly back out if the signature
3841 fails. Also, do not allow appointing the same revoker twice, and
3842 report ALREADY_SIGNED if the user tries it.
3844 2002-10-07 David Shaw <dshaw@jabberwocky.com>
3846 * import.c (import_keys_internal): Missed one s/inp/inp2/.
3848 * keylist.c (print_capabilities): Properly indicate per-key
3849 capabilities of sign&encrypt primary keys that have
3850 secret-parts-missing (i.e. no capabilities at all)
3852 * mainproc.c (symkey_decrypt_sesskey): Fix compiler warning.
3854 2002-10-04 David Shaw <dshaw@jabberwocky.com>
3856 * getkey.c (get_pubkey_direct): Don't cache keys retrieved via
3857 this function as they may not have all their fields filled in.
3859 * sig-check.c (signature_check2): Use new is_primary flag to check
3860 rather than comparing main_keyid with keyid as this still works in
3861 the case of a not fully filled in pk.
3863 2002-10-04 Werner Koch <wk@gnupg.org>
3865 * import.c (import_keys_internal): s/inp/inp2/ to avoid shadowing
3868 * passphrase.c (agent_get_passphrase): Fixed signed/unsigned char
3869 problem in %-escaping. Noted by Ingo Klöcker.
3871 2002-10-03 David Shaw <dshaw@jabberwocky.com>
3873 * options.h, g10.c (main): Add --strict and --no-strict to switch
3874 the log_warning severity level from info to error.
3876 * keylist.c (print_capabilities): Secret-parts-missing keys should
3877 show that fact in the capabilities, and only primary signing keys
3878 can certify other keys.
3880 * packet.h, parse_packet.c (parse_key): Add is_primary flag for
3881 public keys (it already exists for secret keys).
3883 2002-10-02 David Shaw <dshaw@jabberwocky.com>
3885 * import.c (import_secret_one): Check for an illegal (>110)
3886 protection cipher when importing a secret key.
3888 * keylist.c (list_keyblock_print): Show a '#' for a
3889 secret-parts-missing key.
3891 * parse_packet.c (parse_key): Some comments.
3893 * revoke.c (gen_revoke): Remove some debugging code.
3895 * trustdb.c (verify_own_keys): Make trusted-key a non-deprecated
3898 * seckey-cert.c (do_check): Don't give the IDEA warning unless the
3899 cipher in question is in fact IDEA.
3901 2002-10-01 David Shaw <dshaw@jabberwocky.com>
3903 * import.c (import_one): Make sure that a newly imported key
3904 starts with a clean ownertrust.
3906 2002-10-01 Werner Koch <wk@gnupg.org>
3908 * getkey.c (get_pubkey_direct): New.
3909 (merge_selfsigs_main): Use it here to look for an ultimately
3910 trusted key. Using the full get_pubkey might lead to an
3911 infinitive recursion.
3913 2002-09-29 David Shaw <dshaw@jabberwocky.com>
3915 * keyserver.c (parse_keyserver_uri): Force the keyserver URI
3916 scheme to lowercase to be case-insensitive.
3918 2002-09-28 David Shaw <dshaw@jabberwocky.com>
3920 * export.c (do_export_stream): Comment.
3922 * sig-check.c (check_key_signature2): Properly handle a
3923 non-designated revocation import.
3925 2002-09-26 Werner Koch <wk@gnupg.org>
3927 * g10.c (set_homedir): New. Changed all direct assignments to use
3929 * gpgv.c (set_homedir): Ditto.
3931 2002-09-25 David Shaw <dshaw@jabberwocky.com>
3933 * Makefile.am: Link gpg with EGDLIBS (i.e. NETLIBS) as EGD uses
3934 sockets. Remove the old NETLIBS variable since the keyserver
3935 stuff is no longer internal.
3937 2002-09-24 David Shaw <dshaw@jabberwocky.com>
3939 * import.c (import_keys_stream): Fix compiler type warning.
3941 * keyring.c (keyring_rebuild_cache), sig-check.c
3942 (check_key_signature2), import.c (import, chk_self_sigs): Minor
3945 2002-09-23 Stefan Bellon <sbellon@sbellon.de>
3947 * main.h: Introduced fast-import as import option. Removed
3948 fast as separate option from prototypes.
3949 * import.c (parse_import_options): Added fast-import option.
3950 (import_*): Removed fast as separate option.
3951 * g10.c (main): Added option fast-import, removed old fast
3952 as separate argument.
3953 * keyserver.c (keyserver_spawn): Removed old fast as separate
3956 2002-09-22 Stefan Bellon <sbellon@sbellon.de>
3958 * import.c (import_keys, import_keys_stream,
3959 import_keys_internal): Added trustdb update/check to key import if
3960 not fast-import and interactive set/no-auto-check-trustdb unset.
3961 Avoided function clone by introducing import_keys_internal.
3963 2002-09-19 David Shaw <dshaw@jabberwocky.com>
3965 * keyserver.c (keyserver_spawn): Properly handle line truncation.
3966 Don't leak memory (~10-20 bytes) on searches.
3967 (keyserver_search_prompt): Cleanup.
3969 * keylist.c (list_keyblock_colon): Show 1F direct key signatures
3970 in --with-colons listing.
3972 2002-09-16 David Shaw <dshaw@jabberwocky.com>
3974 * keyedit.c (menu_addrevoker): The direct key signature for
3975 revocation keys must be at least v4 to carry the revocation key
3976 subpacket. Add a PGP 2.x warning for revocation keys.
3978 2002-09-14 David Shaw <dshaw@jabberwocky.com>
3980 * g10.c (check_permissions): Rearrange strings to make translating
3981 easier (don't incorporate string parts).
3983 * keyedit.c (sign_uids): Make strings translatable.
3985 * sig-check.c (check_key_signature2): Make string translatable.
3987 2002-09-13 David Shaw <dshaw@jabberwocky.com>
3989 * getkey.c (check_revocation_keys): Move....
3990 * main.h, sig-check.c (check_revocation_keys): to here. Also
3991 return the signature_check error code rather than 0/1 and cache
3994 * sig-check.c (check_key_signature2): Divert to
3995 check_revocation_keys if a revocation sig is made by someone other
3998 * getkey.c (merge_selfsigs_main): Tidy.
4000 2002-09-13 Werner Koch <wk@gnupg.org>
4002 * g10.c (main) [__MINGW32__]: Activate oLoadExtension.
4004 2002-09-12 David Shaw <dshaw@jabberwocky.com>
4006 * Makefile.am, hkp.c, hkp.h, keyserver.c (keyserver_work): Remove
4007 internal HKP support.
4009 * keyserver.c (keyserver_spawn): Remove whitespace after keyserver
4012 2002-09-10 David Shaw <dshaw@jabberwocky.com>
4014 * exec.c (expand_args): Remove loop left over from earlier
4016 (exec_write): Missed one tick.
4018 2002-09-10 Werner Koch <wk@gnupg.org>
4020 * g10.c, options.h: Removed option --emulate-checksum-bug.
4021 * misc.c (checksum_u16_nobug): Removed.
4022 (checksum_u16): Removed the bug emulation.
4023 (checksum_mpi): Ditto.
4024 (checksum_mpi_counted_nbits): Removed and replaced all calls
4027 * parse-packet.c (read_protected_v3_mpi): New.
4028 (parse_key): Use it here to store it as an opaque MPI.
4029 * seckey-cert.c (do_check): Changed the v3 unprotection to the new
4030 why to store these keys.
4031 (protect_secret_key): Likewise.
4032 * build-packet.c (do_secret_key): And changed the writing.
4034 * tdbio.c (tdbio_set_dbname, open_db): Use new macro MY_O_BINARY
4035 to avoid silly ifdefs.
4036 (open_db): Fallback to RDONLY so that gpg may be used from a
4039 * encode.c (encode_simple): Make sure we don't use an ESK packet
4040 when we don't have a salt in the S2K.
4042 * misc.c (pct_expando) <case f>: Make sure that LEN is initialized.
4044 * exec.c (exec_finish): Use ticks to denote filenames in messages.
4045 (make_tempdir, exec_write): Changed format of messages.
4047 * keyserver.c (print_keyinfo): Release USERID in on error.
4048 (keyserver_work) [!DISABLE_KEYSERVER_HELPERS]: Exclude the unused
4051 2002-09-09 Werner Koch <wk@gnupg.org>
4053 * parse-packet.c (make_attribute_uidname): Add new ar MAX_NAMELEN
4054 for sanity checks. Changed both callers. Limit the size of an %s.
4056 * options.skel: Comment lock-once out, so that this file does not
4057 change anything when copied to a new home directory.
4058 * openfile.c (try_make_homedir): Don't exit after copying the
4061 * options.h: Don't use a comma when declaring variables over more
4064 * mainproc.c (symkey_decrypt_sesskey): Check length of the session
4067 * hkp.c (dehtmlize): Use ascii_tolower to protect against weird
4068 locales. Cast the argument for isspace for the sake of broken
4070 (parse_hkp_index): s/ascii_memcasecmp/ascii_strncasecmp/.
4072 * g10.c: Removed option --emulate-3des-s2k-bug.
4074 * passphrase.c (hash_passphrase): Was used here.
4076 * export.c (parse_export_options)
4077 * keyserver.c (parse_keyserver_options)
4078 * import.c (parse_import_options)
4079 * g10.c (check_permissions): s/ascii_memcasecmp/ascii_strncasecmp/.
4081 2002-09-09 David Shaw <dshaw@jabberwocky.com>
4083 * g10.c (add_group): Use '=' to separate group name from group
4084 members. Use a better error message for when no = is found.
4086 * hkp.c (hkp_export): Use CRLF in headers.
4088 2002-09-03 David Shaw <dshaw@jabberwocky.com>
4090 * mainproc.c (print_pkenc_list): Don't increment the error counter
4091 when printing the list of keys a message was encrypted to. This
4092 would make gpg give a non-zero exit code even for completely valid
4093 messages if the message was encrypted to more than one key that
4096 2002-09-02 Werner Koch <wk@gnupg.org>
4098 * g10.c (main): Try to set a default character set. Print the
4099 used one in verbosity level 3.
4100 * gpgv.c (main): Try to set a default character set.
4102 * status.c, status.h (STATUS_IMPORT_OK): New.
4103 * import.c (import_one,import_secret_one): Print new status.
4105 2002-08-30 David Shaw <dshaw@jabberwocky.com>
4107 * pkclist.c (build_pk_list): Add new status code to indicate an
4108 untrusted user. This (or a disabled key) fail with "unavailable
4109 pubkey" (G10ERR_UNU_PUBKEY).
4111 * pkclist.c (build_pk_list): Fail if any recipient keys are
4114 * options.skel: The PGP LDAP keyserver is back. Use MIT keyserver
4115 as a sample rather than cryptnet as cryptnet does not support
4118 * keyedit.c (show_key_with_all_names): Fix error message
4119 (preferences are userid/selfsig and not key specific).
4121 2002-08-30 Werner Koch <wk@gnupg.org>
4123 * pkclist.c (do_we_trust_pre): Changed the wording of a warning.
4125 * encode.c (encode_simple,encode_crypt): Use new style CTB for
4126 compressssed packets when using MDC. We need to do this so that
4127 concatenated messages are properly decrypted. Old style
4128 compression assumes that it is the last packet; given that we
4129 can't determine the length in advance, the uncompressor does not
4130 know where to start. Actually we should use the new CTB always
4131 but this would break PGP 2 compatibility.
4133 * parse-packet.c (parse): Special treatment for new style CTB
4136 * build-packet.c (do_mdc): Removed. Was not used.
4137 (do_encrypted_mdc): Count in the version number and the MDC packet.
4139 2002-08-28 David Shaw <dshaw@jabberwocky.com>
4141 * sig-check.c (do_check_messages, do_check): Show keyid in error
4144 * keyserver.c (print_keyinfo): More readable key listings for
4145 --search-keys responses.
4147 2002-08-26 David Shaw <dshaw@jabberwocky.com>
4149 * hkp.c (parse_hkp_index, dehtmlize): Move HTML functionality into
4150 new "dehtmlize" function. Remove HTML before trying to parse each
4151 line from the keyserver. If the keyserver provides key type
4152 information in the listing, use it.
4154 2002-08-23 David Shaw <dshaw@jabberwocky.com>
4156 * sig-check.c (do_check, do_check_messages): Emit the usual sig
4157 warnings even for cached sigs. This also serves to protect
4158 against missing a sig expiring while cached.
4160 * getkey.c (merge_selfsigs_main): Don't check UID self-sigs twice.
4162 2002-08-22 David Shaw <dshaw@jabberwocky.com>
4164 * import.c (clean_subkeys, chk_self_sigs): Merge clean_subkeys
4165 into chk_self_sigs. This improves efficiency as the same
4166 signatures are not checked multiple times. Clarify when a subkey
4167 is revoked (any revocation signature, even if it is dated before
4168 the binding signature).
4170 * getkey.c (merge_selfsigs_subkey): Subkey revocation comments.
4172 * keylist.c (list_one): Stats are only for public key listings.
4174 * g10.c (main), options.skel: Default should be include-revoked
4175 for keyserver operations.
4177 2002-08-21 Werner Koch <wk@gnupg.org>
4179 * import.c (import_print_stats): Print new non_imported counter
4180 which is currently not used because we terminate on errors.
4182 2002-08-20 David Shaw <dshaw@jabberwocky.com>
4184 * options.skel: Document no-include-attributes for
4187 * keylist.c, keyedit.c, keyserver.c, sign.c: Some TODOs and
4190 * export.c (do_export_stream): Fix noop bug in exporting sensitive
4193 * pkclist.c (do_edit_ownertrust): Comment out the option for
4194 showing trust paths until it can be implemented.
4196 2002-08-19 Werner Koch <wk@gnupg.org>
4198 * getkey.c (get_user_id_native): Renamed to ..
4199 (get_user_id_printable): this. Filter out all dangerous
4200 characters. Checked all usages.
4201 (get_user_id_string_native): Renamed to..
4202 (get_user_id_string_printable): this. Filter out all dangerous
4203 characters. Checked all usages.
4204 * keyedit.c (show_basic_key_info): New.
4205 * keylist.c (print_fingerprint): New mode 3.
4206 * import.c (import_one): Use new function to display the user ID.
4208 2002-08-16 Timo Schulz <ts@winpt.org>
4210 * g10.c (main): Enable opt.interactive.
4212 * import.c (import_one): Ask the user if the key shall be
4213 imported when the interactive mode is used. Useful to extract
4214 selected keys from a file.
4216 2002-08-16 Werner Koch <wk@gnupg.org>
4218 * seckey-cert.c: Workaround to allow decryption of v3 keys created
4219 with a bug in the mpi_get_secure_buffer.
4221 2002-08-14 David Shaw <dshaw@jabberwocky.com>
4223 * hkp.c (parse_hkp_index): Properly handle really large keys
4224 (5 digit key length) in HKP searches.
4226 2002-08-13 David Shaw <dshaw@jabberwocky.com>
4228 * encode.c (encode_simple): Fix problem with using compression
4229 algo 2 and symmetric compressed files.
4231 * encode.c (encode_simple, encode_crypt): If we are not using a
4232 MDC, compress even if a file is already compressed. This is to
4233 help against the chosen ciphertext attack.
4235 * pkclist.c (select_algo_from_prefs): Fix requested algorithm bug
4236 so the request succeeds even if the requested algorithm is not the
4239 * cipher.c (write_header), encode.c (use_mdc, encode_simple,
4240 encode_crypt, encrypt_filter), g10.c (main): Be more eager to use
4241 a MDC. We use a MDC if the keys directly support it, if the keys
4242 list AES (any) or TWOFISH anywhere in the prefs, or if the cipher
4243 chosen does not have a 64 bit blocksize.
4245 2002-08-08 David Shaw <dshaw@jabberwocky.com>
4247 * options.skel: Some language tweaks, and remove the
4248 load-extension section for random gatherers.
4250 * keyring.c (create_tmp_file, rename_tmp_file): Create tmp files
4251 with user-only permissions, but restore the original permissions
4252 if the user has something special set.
4254 * openfile.c (copy_options_file): Create new options file
4255 (gpg.conf) with user-only permissions.
4257 * keydb.c (keydb_add_resource): Create new keyrings with user-only
4260 * tdbio.c (tdbio_set_dbname): Create new trustdbs with user-only
4263 2002-08-07 David Shaw <dshaw@jabberwocky.com>
4265 * sig-check.c (signature_check2): Sanity check that the md has a
4266 context for the hash that the sig is expecting. This can happen
4267 if a onepass sig header does not match the actual sig, and also if
4268 the clearsign "Hash:" header is missing or does not match the
4271 * keyedit.c (menu_revsig): Properly show a uid is revoked without
4272 restarting gpg. This is Debian bug 124219, though their supplied
4273 patch will not do the right thing.
4275 * main.h, tdbio.c (tdbio_set_dbname), misc.c (removed
4276 check_permissions), keydb.c (keydb_add_resource), g10.c (main,
4277 check_permissions): Significant reworking of the permission check
4278 mechanism. The new behavior is to check everything in the homedir
4279 by checking the homedir itself. If the user wants to put
4280 (possibly shared) keyrings outside the homedir, they are not
4281 checked. The options file and any extension files are checked
4282 wherever they are, as well as their enclosing directories. This
4283 is Debian bug 147760.
4285 2002-08-06 Stefan Bellon <sbellon@sbellon.de>
4287 * g10.c (main): Use of EXTSEP_S in new gpg.conf string.
4288 * openfile.c (copy_options_file): Ditto.
4290 2002-08-06 David Shaw <dshaw@jabberwocky.com>
4292 * options.h, g10.c (main), mainproc.c (proc_encrypted):
4293 --ignore-mdc-error option to turn a MDC check error into a
4296 * encode.c (encode_crypt), g10.c (main), sign.c (sign_file,
4297 clearsign_file): Use the same --pgpX warning string everywhere to
4300 * encode.c (write_pubkey_enc_from_list): Warn when using
4301 --throw-keyid with --pgpX. Noted by Vedaal Nistar.
4303 * revoke.c (export_minimal_pk, gen_desig_revoke, gen_revoke):
4304 Export a minimal pk along with the revocation cert when in --pgpX
4305 mode so that PGP can import it.
4307 2002-08-06 Werner Koch <wk@gnupg.org>
4309 * options.skel: Changed comments.
4311 * g10.c (main): Try to use "gpg.conf" as default option file.
4312 * openfile.c (copy_options_file): Changed name of created file.
4314 2002-08-02 Werner Koch <wk@gnupg.org>
4316 * Makefile.am (LDFLAGS): Removed DYNLINK_LDFLAGS.
4318 2002-07-30 David Shaw <dshaw@jabberwocky.com>
4320 * options.h, g10.c (main), mainproc.c (proc_encrypted): Return a
4321 decryption failed error if a MDC does not verify. Warn if a MDC
4322 is not present (can disable via --no-mdc-warning).
4324 * exec.c (exec_write), g10.c (main), keyserver.c
4325 (keyserver_spawn): Use new DISABLE_KEYSERVER_PATH rather than
4328 2002-07-28 David Shaw <dshaw@jabberwocky.com>
4330 * sig-check.c (do_check): Properly validate v4 sigs with no hashed
4333 2002-07-25 Werner Koch <wk@gnupg.org>
4335 * delkey.c (do_delete_key): Always allow to delete a key in batch mode
4336 when specified by fingerprint. Suggested by Enzo Michelangeli.
4338 2002-07-25 David Shaw <dshaw@jabberwocky.com>
4340 * keyedit.c (menu_revsig): Change "revsig" to honor selected uids
4341 so the user can revoke sigs from particular uids only.
4343 * keylist.c (list_keyblock_print): Don't display expired uids in
4344 --list-keys unless -v and not --list-sigs (just like revoked
4347 * exec.c, export.c, import.c, keyedit.c, keyserver.c, misc.c:
4348 "Warning" -> "WARNING"
4350 2002-07-24 David Shaw <dshaw@jabberwocky.com>
4352 * main.h, import.c (parse_import_options, fix_hkp_corruption,
4353 import_one, delete_inv_parts), g10.c (main): New import-option
4354 "repair-hkp-subkey-bug", which repairs as much as possible the HKP
4355 mangling multiple subkeys bug. It is on by default for keyserver
4356 receives, and off by default for regular --import.
4358 * main.h, import.c (import, import_one, delete_inv_parts), hkp.c
4359 (hkp_ask_import), keyserver.c (keyserver_spawn): Use keyserver
4360 import options when doing keyserver receives.
4362 * options.h, exec.h, exec.c (set_exec_path, exec_write), g10.c
4363 (main), keyserver.c (keyserver_spawn): If the user does not use
4364 "exec-path", completely replace $PATH with GNUPG_LIBEXECDIR before
4365 calling the keyserver helper. If the user does use "exec-path",
4366 append GNUPG_LIBEXECDIR after the specified path.
4368 2002-07-23 David Shaw <dshaw@jabberwocky.com>
4370 * import.c (parse_import_options), export.c
4371 (parse_export_options): Fix offset problem with reversed ("no-")
4374 * import.c (delete_inv_parts): Discard subkey signatures (0x18 and
4375 0x28) if found in the userid section of the key.
4377 * sig-check.c (signature_check2): Signatures made by invalid
4378 subkeys (bad/missing binding sig) are also invalid.
4380 * keylist.c (print_fingerprint): Show the primary as well as the
4381 secondary key fingerprint in modes 1 & 2.
4383 2002-07-22 David Shaw <dshaw@jabberwocky.com>
4385 * options.h, main.h, g10.c (main), import.c
4386 (parse_import_options, delete_inv_parts), keyserver.c
4387 (parse_keyserver_options): add new --import-options option. The
4388 only current flag is "allow-local-sigs".
4390 * g10.c (main): Don't disable MDC in pgp7 mode.
4392 * options.h, g10.c (main), keyserver.c (parse_keyserver_options):
4393 Remove old keyserver-option include-attributes now that there is
4394 an export-option for the same thing.
4396 * options.h, main.h, export.c (parse_export_options,
4397 do_export_stream), g10.c (main): add new --export-options option.
4398 Current flags are "include-non-rfc", "include-local-sigs",
4399 "include-attributes", and "include-sensitive-revkeys".
4401 * options.h, hkp.c (hkp_export), keyserver.c
4402 (parse_keyserver_options, keyserver_spawn): try passing unknown
4403 keyserver options to export options, and if successful, use them
4404 when doing a keyserver --send-key.
4406 * build-packet.c (build_sig_subpkt): We do not generate
4407 SIGSUBPKT_PRIV_VERIFY_CACHE anymore.
4409 * revoke.c (gen_desig_revoke): Lots more comments about including
4410 sensitive revkeys along with the revocation sig itself.
4412 * keyserver.c (parse_keyserver_options): Simpler implementation
4413 that can skip one pass over the options.
4415 2002-07-18 David Shaw <dshaw@jabberwocky.com>
4417 * keyedit.c (keyedit_menu, menu_addrevoker): Allow specifying
4418 "sensitive" as an argument to an addrevoker command. This sets
4419 the 0x40 sensitive revoker flag.
4421 * revoke.c (gen_desig_revoke): When generating a designated
4422 revocation, include the direct key sig that contains the
4423 designated revoker subpacket. This allows sensitive designated
4424 revocation subpackets to be exported. Also indicate which
4425 revokers are sensitive in the first place.
4427 2002-07-17 David Shaw <dshaw@jabberwocky.com>
4429 * keyedit.c (show_key_with_all_names_colon): The 0x40 class bit in
4430 a designated revoker means "sensitive", not "local". It's
4431 exportable under the right circumstances.
4433 * main.h, options.h, export.c (do_export_stream), g10.c (main),
4434 hkp.c (hkp_export), keyserver.c (keyserver_spawn: Add a flag to
4435 skip attribute packets and their signatures while exporting. This
4436 is to accomodate keyservers (pksd again) that choke on attributes.
4437 Use keyserver-option "include-attributes" to control it. This
4438 defaults to ON (i.e. don't skip).
4440 2002-07-09 David Shaw <dshaw@jabberwocky.com>
4442 * options.h, keyserver.c (parse_keyserver_uri, keyserver_spawn,
4443 keyserver_work), hkp.c (hkp_ask_import, hkp_export, hkp_search):
4444 Use a much more strict reading of RFC-2396 for the keyserver URIs.
4445 Specifically, don't try and be smart about checking the value of
4446 ":port" so long as it is all digits, and properly handle opaque
4447 data (those scheme specific parts that do not start with "//").
4449 2002-07-04 David Shaw <dshaw@jabberwocky.com>
4451 * photoid.c (get_default_photo_command, show_photos): Honor
4452 FIXED_PHOTO_VIEWER and DISABLE_PHOTO_VIEWER.
4454 * mainproc.c (check_sig_and_print): Use --show-photos to show
4455 photos when verifying a sig made by a key with a photo.
4457 * keyserver.c (parse_keyserver_uri): Properly parse a URI with no
4458 :port section and an empty file path, but with a terminating '/'.
4459 (keyserver_work): Honor DISABLE_KEYSERVER_HELPERS.
4461 * hkp.c (hkp_ask_import): Display keyserver URI as a URI, but only
4464 * exec.c, g10.c: USE_EXEC_PATH -> FIXED_EXEC_PATH
4466 2002-07-03 David Shaw <dshaw@jabberwocky.com>
4468 * exec.h, exec.c (set_exec_path, exec_write), g10.c (main): If
4469 USE_EXEC_PATH is defined at compile time, use it to lock the
4470 exec-path and not allow the user to change it.
4472 2002-07-02 David Shaw <dshaw@jabberwocky.com>
4474 * options.h, g10.c (main), keyserver.c (keyserver_refresh):
4475 Maintain and use the original keyserver URI for cosmetics rather
4476 than trying to recreate it when needed.
4478 * mainproc.c (check_sig_and_print): Properly disregard expired
4479 uids. Make sure that the first uid listed is a real uid and not
4480 an attribute (attributes should only be listed in the "aka"
4481 section). When there are no valid textual userids, try for an
4482 invalid textual userid before using any attribute uid.
4484 2002-07-01 David Shaw <dshaw@jabberwocky.com>
4486 * options.skel: Fix a few typos, clarify "group", and remove
4487 sample photo viewers for Win32 since they are the defaults now.
4489 * parse-packet.c (make_attribute_uidname), keylist.c
4490 (dump_attribs): Fix two typecast warnings.
4492 * packet.h, build-packet.c (build_attribute_subpkt), exec.c
4493 (expand_args), mkdtemp.c (mkdtemp), photoid.c
4494 (parse_image_header): Fix some signedness compiler warnings.
4496 2002-07-01 Werner Koch <wk@gnupg.org>
4498 * photoid.c (get_default_photo_command): Also use __MINGW32__
4499 instead of HAVE_DOSISH_SYSTEM.
4501 * encode.c (encode_symmetric): Do not use the new encryption code.
4503 2002-06-30 Werner Koch <wk@gnupg.org>
4505 * photoid.c: Use __MINGW32__ to include windows because
4506 HAVE_DOSISH_SYSTEM is also set for OS/2 and plain DOS. Provide
4507 constant missing in older mingw installations.
4509 2002-06-21 Stefan Bellon <sbellon@sbellon.de>
4511 * g10.c [__riscos__]: Moved RISC OS specific stuff to util/riscos.c
4514 * gpgv.c [__riscos__]: Likewise.
4516 2002-06-20 David Shaw <dshaw@jabberwocky.com>
4518 * keydb.h, pkclist.c (select_algo_from_prefs): Allow passing a
4519 suggested algorithm which will be used if available.
4521 * encode.c (encode_crypt, encrypt_filter), sign.c (sign_file): Use
4522 new select_algo_from_prefs feature to check if forcing an
4523 algorithm would violate the recipient preferences.
4525 * photoid.c (get_default_photo_command, show_photos): Use
4526 different default viewers on different platforms. Currently we
4527 have Win 9x, Win NT (2k, xp), Mac OSX, RISC OS, and "everybody
4528 else". These are #ifdefs as much as possible to avoid clutter.
4530 * g10.c (strusage, build_list), keyedit.c (show_prefs), main.h,
4531 misc.c (compress_algo_to_string, check_compress_algo), pkclist.c
4532 (algo_available), keygen.c (keygen_set_std_prefs): New
4533 algo_to_string and check functions for compress algorithms.
4535 2002-06-20 Werner Koch <wk@gnupg.org>
4537 * misc.c (setsysinfo): Removed a #warning for Alpha's uniligedn
4538 trap disabling - it is quite possible that this is a debug relict.
4540 2002-06-20 Stefan Bellon <sbellon@sbellon.de>
4542 * g10.c [__riscos__]: Added image file system feature.
4544 * gpgv.c [__riscos__]: Added image file system feature.
4546 * photoid.c (show_photos) [__riscos__]: Set RISC OS filetype of
4547 photo id according to MIME type.
4549 2002-06-19 David Shaw <dshaw@jabberwocky.com>
4551 * hkp.c (parse_hkp_index): Don't leak memory when failing out of a
4554 * g10.c (add_notation_data): Relax slightly the rules as to what
4555 can go into a notation name - 2440 allows "@", for example.
4557 2002-06-17 David Shaw <dshaw@jabberwocky.com>
4559 * import.c (clean_subkeys, import_one): Only allow at most 1
4560 binding sig and at most 1 revocation sig on a subkey, as per
4563 * hkp.c (parse_hkp_index, hkp_search): Error if the keyserver
4564 returns an unparseable HKP response.
4566 2002-06-15 David Shaw <dshaw@jabberwocky.com>
4568 * keyedit.c (show_key_with_all_names), keylist.c
4569 (list_keyblock_print): Show "[expired]" before expired uids.
4571 * keyedit.c (show_key_with_all_names_colon), mainproc.c
4572 (list_node), keylist.c (list_keyblock_colon): Show flag 'e' for
4573 expired user ids. Use "uat" for user attribute packets instead of
4574 "uid". Also use '<count> <length>' rather than the fake user id
4575 string on attributes.
4577 * keygen.c (keygen_add_revkey): Remove unused code.
4579 * misc.c (check_permissions): Check directory permissions
4580 properly - they are not special files.
4582 * pkclist.c (expand_id, expand_group, build_pk_list): When
4583 expanding groups before building a pk list, inherit flags from the
4584 original pre-expanded string.
4586 * pubkey-enc.c (is_algo_in_prefs): Don't use prefs from expired
4589 2002-06-14 David Shaw <dshaw@jabberwocky.com>
4591 * free-packet.c (copy_signature): Properly copy a signature that
4592 carries a revocation key on it.
4594 * pkclist.c (expand_id, expand_group, build_pk_list): Groups now
4595 work properly when used in the "Enter the user ID" prompt.
4597 2002-06-14 David Shaw <dshaw@jabberwocky.com>
4599 * keyedit.c (show_key_with_all_names): Display warning if a user
4600 tries to show prefs on a v3 key with a v3 selfsig.
4602 * kbnode.c (dump_kbnode): Show if a uid is expired.
4604 * import.c (merge_blocks, import_revoke_cert): Show user ID
4605 receiving a revocation certificate.
4607 * free-packet.c (cmp_user_ids): Properly compare attribute ids.
4609 * pkclist.c (expand_groups): Maintain the strlist flags while
4610 expanding. Members of an expansion inherit their flags from the
4613 * options.h, cipher.c (write_header), g10.c (main), keygen.c
4614 (keygen_set_std_prefs): remove the personal_mdc flag. It no
4615 longer serves a purpose now that the personal preference lists are
4616 split into cipher/digest/zip.
4618 2002-06-14 Timo Schulz <ts@winpt.org>
4620 * skclist.c (is_insecure): Implemented.
4622 2002-06-12 David Shaw <dshaw@jabberwocky.com>
4624 * keyserver.c (keyserver_spawn): Properly handle PROGRAM responses
4625 when they have a CRLF ending. Noted by Keith Ray.
4627 * keyserver.c (keyserver_spawn): Handle CRLF endings from
4628 keyserver helpers. Also don't leak the last line worth of memory
4629 from the keyserver response.
4631 * main.h, misc.c (deprecated_warning): New function to warn about
4632 deprecated options and commands.
4634 * g10.c (main), keyserver-internal.h, keyserver.c
4635 (parse_keyserver_uri): Use new deprecated function to warn about
4636 honor-http-proxy, auto-key-retrieve, and x-broken-hkp.
4638 2002-06-11 David Shaw <dshaw@jabberwocky.com>
4640 * Makefile.am: link gpg with NETLIBS for the built-in HKP access.
4642 2002-06-10 David Shaw <dshaw@jabberwocky.com>
4644 * options.h, keyserver.c (keyserver_opts), g10.c (main): New
4645 keyserver option "include-subkeys". This feature already existed,
4646 but now can be turned off. It defaults to on.
4648 * options.h, keyserver.c (parse_keyserver_options,
4649 keyserver_spawn): There are now enough options to justify making a
4650 structure for the keyserver options rather than a page of
4651 if-then-else-if-then-etc.
4653 * getkey.c (merge_keys_and_selfsig, merge_selfsigs_main): Fix bug
4654 in calculating key expiration dates.
4656 2002-06-09 David Shaw <dshaw@jabberwocky.com>
4658 * keydb.h, getkey.c (get_user_id_native), import.c (import_one):
4659 Display user ID while importing a key. Note this applies to both
4660 --import and keyserver --recv-keys.
4662 * exec.c (exec_finish): Log unnatural exit (core dump, killed
4663 manually, etc) for fork/exec/pipe child processes.
4665 2002-06-08 Timo Schulz <ts@winpt.org>
4667 * encode.c (encode_symmetric): Disable the compat flag
4668 when the expert mode is enabled.
4670 2002-06-07 David Shaw <dshaw@jabberwocky.com>
4672 * options.skel, options.h, main.h, keydb.h, pkclist.c
4673 (build_pk_list, expand_groups), g10.c (main, add_group): Add new
4674 "group" command to allow one name to expand into multiple keys.
4675 For simplicity, and to avoid potential loops, we only expand once
4676 - you can't make an alias that points to an alias.
4678 * main.h, g10.c (main), keygen.c (build_personal_digest_list):
4679 Simplify the default digest list - there is really no need for the
4680 other hashes since they will never be used after SHA-1 in the
4683 * options.skel, options.h, g10.c (main), hkp.c (hkp_ask_import,
4684 hkp_export, hkp_search), keyserver.c (parse_keyserver_options,
4685 parse_keyserver_uri, keyserver_work, keyserver_refresh): Make the
4686 "x-broken-hkp" keyserver scheme into keyserver-option
4687 "broken-http-proxy". Move honor_http_proxy into
4688 keyserver_options. Canonicalize the three variations of "hkp",
4689 "x-hkp", and "x-broken-hkp" into "hkp".
4691 2002-06-07 Stefan Bellon <sbellon@sbellon.de>
4693 * g10.c [__riscos__]: Added --attribute-file to do the same as
4694 --attribute-fd, but with a filename not a fd as argument.
4695 Added magic symbol for RISC OS to use different memory management.
4697 * gpgv.c [__riscos__]: Added magic symbol for RISC OS to use
4698 different memory management.
4700 2002-06-06 David Shaw <dshaw@jabberwocky.com>
4702 * main.h, g10.c (main), keygen.c (build_personal_digest_list): Put
4703 in a default digest preference list consisting of SHA-1, followed
4704 by every other installed digest except MD5. Note this is the same
4705 as having no digest preference at all except for SHA-1 being
4708 * options.h, g10.c (main), keygen.c (keygen_set_std_prefs),
4709 pkclist.c (select_algo_from_prefs): Split
4710 --personal-preference-list into three:
4711 --personal-{cipher|digest|compress}-preferences. This allows a
4712 user to set one without affecting another (i.e. setting only a
4713 digest pref doesn't imply an empty cipher pref).
4715 * exec.c (exec_read): This is a safer way of guessing the return
4716 value of system(). Noted by Stefan Bellon.
4718 2002-06-05 David Shaw <dshaw@jabberwocky.com>
4720 * hkp.c (parse_hkp_index): Be more robust with keyservers
4721 returning very unparseable responses.
4723 * exec.c (exec_read): Catch and display an error when the remote
4724 process exits unnaturally (i.e. segfault) so the user knows what
4725 happened. Also fix exec_write stub which has a different number
4728 2002-06-05 Timo Schulz <ts@winpt.org>
4730 * encode.c (encode_simple): Ignore the new mode for RFC1991.
4731 * mainproc.c (symkey_decrypt_sesskey): Better check for weird
4734 2002-06-05 Timo Schulz <ts@winpt.org>
4736 * encode.c (encode_sesskey): New.
4737 (encode_simple): Use it here. But by default we use the compat
4738 mode which supress to generate encrypted session keys.
4740 2002-06-05 Timo Schulz <ts@winpt.org>
4742 * mainproc.c (symkey_decrypt_sesskey): New.
4743 (proc_symkey_enc): Support for encrypted session keys.
4745 2002-06-04 David Shaw <dshaw@jabberwocky.com>
4747 * sign.c (hash_for, sign_file): When encrypting and signing at the
4748 same time, consult the various hash prefs to pick a hash algorithm
4749 to use. Pass in a 160-bit hint if any of the signing keys are
4752 * keydb.h, pkclist.c (select_algo_from_prefs, algo_available):
4753 Pass a "hints" opaque pointer in to let the caller give hints as
4754 to what algorithms would be acceptable. The only current hint is
4755 for PREFTYPE_HASH to require a 160-bit hash for DSA. Change all
4756 callers in encode.c (encode_crypt, encrypt_filter) and sign.c
4757 (sign_file). If we settle on MD5 as the best algorithm based
4758 solely on recepient keys and SHA1 is also a possibility, use SHA1
4759 unless the user intentionally chose MD5. This is as per 2440:13.
4761 * exec.c (make_tempdir): Fix duplicated filename problem.
4763 2002-06-03 David Shaw <dshaw@jabberwocky.com>
4765 * packet.h, parse-packet.c (enum_sig_subpkt): Report back from
4766 enum_sig_subpkt when a subpacket is critical and change all
4767 callers in keylist.c (show_policy_url, show_notation), mainproc.c
4768 (print_notation_data), and pkclist.c (do_show_revocation_reason).
4770 * keylist.c (show_policy_url, show_notation): Display if the
4771 policy or notation is critical.
4773 2002-06-03 David Shaw <dshaw@jabberwocky.com>
4775 * main.h, g10.c (main), keylist.c (dump_attribs, set_attrib_fd,
4776 list_keyblock_print, list_keyblock_colon), status.h, status.c
4777 (get_status_string): New --attribute-fd feature to dump the
4778 contents of attribute subpackets for frontends. If --status-fd is
4779 also used, then a new status tag ATTRIBUTE is provided for each
4782 * packet.h, getkey.c (fixup_uidnode, merge_selfsigs_main,
4783 merge_selfsigs_subkey), parse-packet.c (setup_user_id): Keep track
4784 of the expiration time of a user ID, and while we're at it, use
4785 the expired flag from the selfsig rather than reparsing the
4786 SIG_EXPIRE subpacket.
4788 * photoid.c (generate_photo_id): When adding a new photo ID,
4789 showing the photo for confirmation is not safe when noninteractive
4790 since the "user" may not be able to dismiss a viewer window.
4791 Noted by Timo Schulz.
4793 2002-06-03 David Shaw <dshaw@jabberwocky.com>
4795 * options.skel: Sample photo viewers for Win32.
4797 * misc.c (pct_expando): Use the seckey for %k/%K if the pubkey is
4800 * photoid.h, photoid.c (show_photos): Include the seckey in case a
4801 user tries to view a photo on a secret key, and change all callers
4802 in keyedit.c (menu_showphoto), keylist.c (list_keyblock_print),
4803 and photoid.c (generate_photo_id).
4805 2002-06-02 David Shaw <dshaw@jabberwocky.com>
4807 * photoid.c (show_photos): Work properly when not called with a
4810 2002-05-31 David Shaw <dshaw@jabberwocky.com>
4812 * sign.c (mk_notation_and_policy): Free unneeded buffer.
4814 * hkp.c (parse_hkp_index): Properly handle the '&' character
4815 (i.e. "&") in HKP responses.
4817 * getkey.c (merge_selfsigs_main): Fix reversed expiration time
4818 check with self-sigs.
4820 * keyedit.c (sign_uids): When making a new self-sig on a v3 key,
4821 make a v3 self-sig unless it is currently a v3 self-sig being
4824 2002-05-31 Timo Schulz <ts@winpt.org>
4826 * pkclist.c (do_show_revocation_reason): Don't use capital
4827 letters for non-interactive output.
4828 (show_revocation_reason): Now it is global.
4829 * pubkey-enc.c (get_it): Show if the key has been revoked.
4831 2002-05-30 David Shaw <dshaw@jabberwocky.com>
4833 * sign.c (write_signature_packets, sign_file, clearsign_file,
4834 sign_symencrypt_file): Make a v4 signature if a policy URL or
4835 notation is set, unless v3 sigs are forced via rfc1991 or
4836 force-v3-sigs. Also remove some doubled code and clarify an error
4837 message (we don't sign in PGP2 mode - just detach-sign).
4839 * parse-packet.c (parse_one_sig_subpkt): Add KS_FLAGS to the "any
4842 2002-05-29 David Shaw <dshaw@jabberwocky.com>
4844 * keygen.c (keygen_set_std_prefs, add_feature_mdc): Use "mdc" and
4845 "no-mdc" in the prefs string to allow switching on and off the MDC
4846 feature. This is needed to properly export a key from GnuPG for
4847 use on PGP which does not support MDC - without this, MDC-capable
4848 implementations will still try and generate MDCs which will break
4851 * keygen.c (keygen_get_std_prefs): Show "[mdc]" in prefs string if
4854 * options.h, g10.c (main), cipher.c (write_header), keygen.c
4855 (keygen_set_std_prefs): For consistency, allow the user to specify
4856 mdc/no-mdc in the --personal-preference-list. If disabled, it
4857 acts just like --disable-mdc.
4859 2002-05-29 David Shaw <dshaw@jabberwocky.com>
4861 * options.h, exec.c: Add some debugging info, using the 1024 debug
4864 * exec.c (win_system): New system()-like function for win32 that
4865 does not return until the child process terminates. Of course,
4866 this doesn't help if the process itself exits before it is
4869 2002-05-29 Werner Koch <wk@gnupg.org>
4871 * encode.c (encode_simple): Intialize PKT when --no-literal is used.
4873 * keyedit.c (show_key_with_all_names_colon): Renamed the record
4874 for revocation keys to "rvk".
4876 2002-05-27 Werner Koch <wk@gnupg.org>
4878 * keyedit.c (show_key_with_all_names_colon): New.
4879 (show_key_with_all_names): Divert to new function when required.
4880 Sanitize printing of revoker name.
4882 2002-05-27 David Shaw <dshaw@jabberwocky.com>
4884 * build-packet.c (build_sig_subpkt): Handle setting sig flags for
4885 certain subpacket types (notation, policy url, exportable,
4886 revocable). keyedit.c (sign_mk_attrib): Flags no longer need to
4889 * packet.h, parse-packet.c (parse_one_sig_subpkt), build-packet.c
4890 (build_sig_subpkt): Call parse_one_sig_subpkt to sanity check
4891 buffer lengths before building a sig subpacket.
4893 2002-05-26 David Shaw <dshaw@jabberwocky.com>
4895 * sign.c (mk_notation_and_policy): Include secret key to enable %s
4896 expandos, and pass notations through pct_expando as well.
4898 * main.h, misc.c (pct_expando): Add %s and %S expandos for
4901 2002-05-25 David Shaw <dshaw@jabberwocky.com>
4903 * g10.c (strusage, build_list): Add compress algorithms to
4904 --version list. Show algorithm numbers when --verbose --version
4907 2002-05-22 David Shaw <dshaw@jabberwocky.com>
4909 * options.h, main.h, keygen.c (keygen_set_set_prefs,
4910 keygen_get_std_prefs, keygen_upd_std_prefs), keyedit.c
4911 (keyedit_menu), g10.c (main), pkclist.c (select_algo_from_prefs):
4912 Add --personal-preference-list which allows the user to factor in
4913 their own preferred algorithms when the preference lists are
4914 consulted. Obviously, this does not let the user violate a
4915 recepient's preferences (and the RFC) - this only influences the
4916 ranking of the agreed-on (and available) algorithms from the
4917 recepients. Suggested by David Hollenberg.
4919 * options.h, keygen.c (keygen_set_std_prefs), g10.c (main): Rename
4920 --preference-list to --default-preference-list (as that is what it
4921 really is), and make it a true default in that if the user selects
4922 "default" they get this list and not the compiled-in list.
4924 2002-05-22 Werner Koch <wk@gnupg.org>
4926 * g10.c (main): Add missing LF in a info printout and made it
4927 translatable. Noted by Michael Tokarev.
4929 2002-05-21 Werner Koch <wk@gnupg.org>
4931 * g10.c (main): Removed the undef of USE_SHM_COPROCESSING which
4932 was erroneously introduced on 2002-01-09.
4934 * signal.c (got_fatal_signal): Don't write the Nul to stderr.
4935 Reported by David Hollenberg.
4937 2002-05-18 David Shaw <dshaw@jabberwocky.com>
4939 * main.h, g10.c (main), revoke.c (gen_desig_revoke): Generate a
4940 designated revocation via --desig-revoke
4942 * keyedit.c (keyedit_menu, menu_addrevoker): New "addrevoker"
4943 command to add a designated revoker to a key.
4945 2002-05-17 David Shaw <dshaw@jabberwocky.com>
4947 * gpgv.c: Add stub for get_ownertrust().
4949 * g10.c (main): --allow-freeform-uid should be implied by
4950 OpenPGP. Add --no-allow-freeform-uid.
4952 * keyedit.c (sign_uids): Issue a warning when signing a
4955 * getkey.c (merge_selfsigs_main): If a key has no selfsigs, and
4956 allow-non-selfsigned-uid is not set, still try and make the key
4957 valid by checking all uids for a signature from an ultimately
4960 2002-05-16 David Shaw <dshaw@jabberwocky.com>
4962 * main.h, keygen.c (keygen_add_revkey): Add revocation key
4963 subpackets to a signature (callable by
4964 make_keysig_packet). (write_direct_sig): Write a 1F direct key
4965 signature. (parse_revocation_key): Parse a string in
4966 algo:fpr:sensitive format into a revocation
4967 key. (get_parameter_revkey, do_generate_keypair): Call above
4968 functions when prompted from a batch key generation file.
4970 * build-packet.c (build_sig_subpkt): Allow multiple revocation key
4971 subpackets in a single sig.
4973 * keydb.h, getkey.c (get_seckey_byfprint): Same as
4974 get_pubkey_byfprint, except for secret keys. We only know the
4975 fingerprint of a revocation key, so this is needed to retrieve the
4976 secret key needed to issue a revokation.
4978 * packet.h, parse-packet.c (parse_signature, parse_revkeys): Split
4979 revkey parsing off into a new function that can be used to reparse
4980 after manipulating the revkey list.
4982 * sign.c (make_keysig_packet): Ability to make 1F direct key
4985 2002-05-15 David Shaw <dshaw@jabberwocky.com>
4987 * options.skel: keyserver.pgp.com is gone, so list pgp.surfnet.nl
4988 as a sample LDAP server instead.
4990 * getkey.c (merge_selfsigs_main): Properly handle multiple
4991 revocation keys in a single packet. Properly handle revocation
4992 keys that are in out-of-order packets. Remove duplicates in
4993 revocation key list.
4995 2002-05-14 Timo Schulz <ts@winpt.org>
4997 * exec.c (make_tempdir) [MINGW32]: Added missing '\'.
4999 2002-05-14 Stefan Bellon <sbellon@sbellon.de>
5001 * exec.c (make_tempdir): Make use of EXTSEP_S instead of hardcoded
5002 dot as extension separator.
5004 2002-05-13 David Shaw <dshaw@jabberwocky.com>
5006 * photoid.c (show_photos): Use the long keyid as the filename for
5007 the photo. Use the short keyid as the filename on 8.3 systems.
5009 * exec.h, exec.c (make_tempdir, exec_write, exec_finish): Allow
5010 caller to specify filename. This should make things easier on
5011 windows and macs where the file extension is required, but a whole
5012 filename is even better.
5014 * keyedit.c (show_key_with_all_names, show_prefs): Show proper
5015 prefs for a v4 key uid with no selfsig at all.
5017 * misc.c (check_permissions): Don't check permissions on
5018 non-normal files (pipes, character devices, etc.)
5020 2002-05-11 Werner Koch <wk@gnupg.org>
5022 * mainproc.c (proc_symkey_enc): Avoid segv in case the parser
5023 encountered an invalid packet.
5025 * keyserver.c (keyserver_export): Get confirmation before sending
5028 2002-05-10 Stefan Bellon <sbellon@sbellon.de>
5030 * g10.c, hkp.c, keyedit.c, keyserver.c: Replaced all occurrances
5031 of strcasecmp with ascii_strcasecmp and all occurrances of
5032 strncasecmp with ascii_memcasecmp.
5034 2002-05-10 David Shaw <dshaw@jabberwocky.com>
5036 * packet.h, getkey.c (fixup_uidnode), keyedit.c (show_prefs): Show
5037 assumed prefs for hash and compression as well as the cipher pref.
5038 Show assumed prefs if there are no prefs at all on a v4
5041 * options.h, g10.c (main), sign.c (make_keysig_packet): New
5042 --cert-digest-algo function to override the default key signing
5045 2002-05-09 David Shaw <dshaw@jabberwocky.com>
5047 * getkey.c (merge_selfsigs_main): Make sure the revocation key
5048 list starts clean as this function may be called more than once
5049 (e.g. from functions in --edit).
5051 * g10.c, encode.c (encode_crypt), sign.c (sign_file,
5052 sign_symencrypt_file): Make --compress-algo work like the
5053 documentation says. It should be like --cipher-algo and
5054 --digest-algo in that it can override the preferences calculation
5055 and impose the setting the user wants. No --compress-algo setting
5056 allows the usual preferences calculation to take place.
5058 * main.h, compress.c (compress_filter): use new
5059 DEFAULT_COMPRESS_ALGO define, and add a sanity check for compress
5062 2002-05-08 David Shaw <dshaw@jabberwocky.com>
5064 * pkclist.c (select_algo_from_prefs): There is an assumed
5065 compression preference for uncompressed data.
5067 2002-05-07 David Shaw <dshaw@jabberwocky.com>
5069 * options.h, g10.c (main), getkey.c (finish_lookup), pkclist.c
5070 (algo_available): --pgp7, identical to --pgp6 except that it
5071 permits a few algorithms that PGP 7 added: AES128, AES192, AES256,
5072 and TWOFISH. Any more of these --pgpX flags, and it'll be time to
5073 start looking at a generic --emulate-pgp X option.
5075 * export.c (do_export_stream): Warn the user when exporting a
5076 secret key if it or any of its secret subkeys are protected with
5077 SHA1 while simple_sk_checksum is set.
5079 * parse-packet.c (parse_key): Show when the SHA1 protection is
5080 used in --list-packets.
5082 * options.h, build-packet.c (do_comment), g10.c (main): Rename
5083 --no-comment as --sk-comments/--no-sk-comments (--no-comment still
5084 works) and make the default be --no-sk-comments.
5086 2002-05-07 Werner Koch <wk@gnupg.org>
5088 * keygen.c (get_parameter_algo): Never allow generation of the
5089 deprecated RSA-E or RSA-S flavors of PGP RSA.
5090 (ask_algo): Allow generation of RSA sign and encrypt in expert
5091 mode. Don't allow ElGamal S+E unless in expert mode.
5092 * helptext.c: Added entry keygen.algo.rsa_se.
5094 2002-05-07 David Shaw <dshaw@jabberwocky.com>
5096 * keyedit.c (sign_uids): If --expert is set, allow re-signing a
5097 uid to promote a v3 self-sig to a v4 one. This essentially
5098 deletes the old v3 self-sig and replaces it with a v4 one.
5100 * packet.h, parse-packet.c (parse_key), getkey.c
5101 (merge_keys_and_selfsig, merge_selfsigs_main): a v3 key with a v4
5102 self-sig must never let the v4 self-sig express a key expiration
5103 time that extends beyond the original v3 expiration time.
5105 2002-05-06 David Shaw <dshaw@jabberwocky.com>
5107 * keyedit.c (sign_uids): When making a self-signature via "sign"
5108 don't ask about sig level or expiration, and include the usual
5109 preferences and such for v4 self-sigs. (menu_set_preferences):
5110 Convert uids from UTF8 to native before printing.
5112 * keyedit.c (sign_uids): Convert uids from UTF8 to native before
5113 printing. (menu_set_primary_uid): Show error if the user tries to
5114 make a uid with a v3 self-sig primary.
5116 2002-05-05 David Shaw <dshaw@jabberwocky.com>
5118 * import.c (import_one): When merging with a key we already have,
5119 don't let a key conflict (same keyid but different key) stop the
5120 import: just skip the bad key and continue.
5122 * exec.c (make_tempdir): Under Win32, don't try environment
5123 variables for temp directories - GetTempDir tries environment
5124 variables internally, and it's better not to second-guess it in
5125 case MS adds some sort of temp dir handling to Windows at some
5128 2002-05-05 Timo Schulz <ts@winpt.org>
5130 * mainproc.c (proc_symkey_enc): Don't ask for a passphrase
5131 in the list only mode.
5133 2002-05-05 David Shaw <dshaw@jabberwocky.com>
5135 * keyserver.c (keyserver_refresh): --refresh-keys implies
5136 --merge-only so as not to import keys with keyids that match the
5137 ones being refreshed. Noted by Florian Weimer.
5139 2002-05-04 Stefan Bellon <sbellon@sbellon.de>
5141 * free-packet.c (copy_public_key): Don't call m_alloc(0), therefore
5142 added consistency check for revkey and numrefkeys.
5144 * getkey.c (check_revocation_keys): Added consistency check for
5145 revkey and numrefkeys.
5147 * keyedit.c (show_key_with_all_names): Likewise.
5149 2002-05-03 David Shaw <dshaw@jabberwocky.com>
5151 * photoid.c: Provide default image viewer for Win32.
5153 * misc.c (pct_expando): %t means extension, not name ("jpg", not
5156 * keyserver.c (keyserver_spawn), photoid.c (show_photos), exec.h,
5157 exec.c: Allow the caller to determine the temp file extension when
5158 starting an exec_write and change all callers.
5160 * keyedit.c (sign_uids): Nonrevocable key signatures cause an
5161 automatic promotion to v4.
5163 * exec.c: Provide stubs for exec_ functions when NO_EXEC is
5166 2002-05-02 David Shaw <dshaw@jabberwocky.com>
5168 * photoid.h, photoid.c (parse_image_header, image_type_to_string):
5169 Useful functions to return data about an image.
5171 * packet.h, parse-packet.c (make_attribute_uidname,
5172 parse_attribute_subpkts, parse_attribute), photoid.h, photoid.c
5173 (show_photos): Handle multiple images in a single attribute
5176 * main.h, misc.c (pct_expando), sign.c (mk_notation_and_policy),
5177 photoid.c (show_photos): Simpler expando code that does not
5178 require using compile-time string sizes. Call
5179 image_type_to_string to get image strings (i.e. "jpg",
5180 "image/jpeg"). Change all callers.
5182 * keyedit.c (menu_showphoto), keylist.c (list_keyblock_print):
5183 Allow viewing multiple images within a single attribute packet.
5185 * gpgv.c: Various stubs for link happiness.
5187 2002-05-02 David Shaw <dshaw@jabberwocky.com>
5189 * build-packet.c (build_sig_subpkt), keyedit.c (sign_uids),
5190 options.h, sign.c (mk_notation_and_policy), g10.c (main,
5191 add_notation_data, add_policy_url (new), check_policy_url
5192 (removed)): Allow multiple policy URLs on a given signature.
5193 Split "--notation-data" into "--cert-notation" and
5194 "--sig-notation" so the user can set different policies for key
5195 and data signing. For backwards compatibility, "--notation-data"
5196 sets both, as before.
5198 2002-05-02 Werner Koch <wk@gnupg.org>
5200 * options.skel: Removed the comment on trusted-keys because this
5201 option is now deprecated.
5203 2002-05-01 David Shaw <dshaw@jabberwocky.com>
5205 * keyedit.c (menu_adduid): 2440bis04 says that multiple attribute
5206 packets on a given key are legal.
5208 * keyserver.c (keyserver_refresh): the fake v3 keyid hack applies
5209 to "mailto" URLs as well since they are also served by pksd.
5211 2002-04-29 Werner Koch <wk@gnupg.org>
5213 Added a copyright year for files changed this year.
5215 2002-04-25 Werner Koch <wk@gnupg.org>
5217 * g10.c, options.h: New options --display, --ttyname, --ttytype,
5218 --lc-ctype, --lc-messages to be used with future versions of the
5220 * passphrase.c (agent_send_option,agent_send_all_options): New.
5221 (agent_open): Send options to the agent.
5223 * trustdb.c (update_ownertrust, clear_ownertrust): Do an explicit
5224 do_sync because revalidation_mark does it only if when the
5225 timestamp actually changes.
5227 2002-04-23 David Shaw <dshaw@jabberwocky.com>
5229 * main.h, keygen.c (do_generate_keypair), keylist.c
5230 (print_signature_stats, list_all, list_one, list_keyblock,
5231 list_keyblock_print, list_keyblock_colon): After generating a new
5232 key, show the key information (name, keyid, fingerprint, etc.)
5233 Also do not print uncheckable signatures (missing key..) in
5234 --check-sigs. Print statistics (N missing keys, etc.) after
5237 * keyedit.c (sign_uids): When signing a key with an expiration
5238 date on it, the "Do you want your signature to expire at the same
5239 time?" question should default to YES.
5241 2002-04-22 David Shaw <dshaw@jabberwocky.com>
5243 * parse-packet.c (parse_plaintext), packet.h, plaintext.c
5244 (handle_plaintext): Fix bug in handling literal packets with
5245 zero-length data (no data was being confused with partial body
5248 * misc.c (pct_expando), options.skel: %t means extension ("jpg").
5249 %T means MIME type ("image/jpeg").
5251 * import.c (import_one): Only trigger trust update if the keyring
5252 is actually changed.
5254 * export.c (do_export_stream): Missing a m_free.
5256 2002-04-22 Stefan Bellon <sbellon@sbellon.de>
5258 * keyid.c (expirestr_from_sk, expirestr_from_sig): Added _() to
5261 * exec.c (make_tempdir) [__riscos__]: Better placement of
5264 2002-04-20 David Shaw <dshaw@jabberwocky.com>
5266 * keygen.c (generate_subkeypair): 2440bis04 adds that creating
5267 subkeys on v3 keys is a MUST NOT.
5269 * getkey.c (finish_lookup): The --pgp6 "use the primary key"
5270 behavior should only apply while data signing and not encryption.
5271 Noted by Roger Sondermann.
5273 2002-04-19 Werner Koch <wk@gnupg.org>
5275 * keygen.c (keygen_set_std_prefs): Put back 3DES because the RFC
5276 says it is good form to do so.
5278 2002-04-19 David Shaw <dshaw@jabberwocky.com>
5280 * keyedit.c (menu_deluid): Only cause a trust update if we delete
5281 a non-revoked user id.
5283 * hkp.c (hkp_ask_import), keyserver.c (parse_keyserver_options,
5284 keyserver_spawn), options.h: Remove fast-import keyserver option
5285 (no longer meaningful).
5287 * g10.c (main), keyedit.c (sign_uids), options.h: Change
5288 --default-check-level to --default-cert-check-level as it makes
5289 clear what it operates on.
5291 * g10.c (main): --pgp6 also implies --no-ask-sig-expire.
5293 * delkey.c (do_delete_key): Comment.
5295 * keyedit.c (sign_uids, keyedit_menu, menu_deluid, menu_delsig,
5296 menu_expire, menu_revsig, menu_revkey): Only force a trustdb check
5297 if we did something that changes it.
5299 * g10.c: add "--auto-check-trustdb" to override a
5300 "--no-auto-check-trustdb"
5302 2002-04-19 Werner Koch <wk@gnupg.org>
5304 * tdbio.c (tdbio_write_nextcheck): Return a status whether the
5305 stamp was actually changed.
5306 * trustdb.c (revalidation_mark): Sync the changes. Removed the
5307 sync operation done by its callers.
5308 (get_validity): Add logic for maintaining a pending_check flag.
5309 (clear_ownertrust): New.
5311 * keyedit.c (sign_uids): Don't call revalidation_mark depending on
5313 (keyedit_menu): Call revalidation_mark after "trust".
5314 (show_key_with_all_names): Print a warning on the wrong listed key
5317 * delkey.c (do_delete_key): Clear the owenertrust information when
5318 deleting a public key.
5320 2002-04-18 Werner Koch <wk@gnupg.org>
5322 * seskey.c (encode_md_value): Print an error message if a wrong
5323 digest algorithm is used with DSA. Changed all callers to cope
5324 with a NULL return. Problem noted by Imad R. Faiad.
5326 2002-04-18 David Shaw <dshaw@jabberwocky.com>
5328 * trustdb.c (mark_usable_uid_certs): Properly handle nonrevocable
5329 signatures that can expire. In short, the only thing that can
5330 override an unexpired nonrevocable signature is another unexpired
5331 nonrevocable signature.
5333 * getkey.c (finish_lookup): Always use primary signing key for
5334 signatures when --pgp6 is on since pgp6 and 7 do not understand
5335 signatures made by signing subkeys.
5337 2002-04-18 Werner Koch <wk@gnupg.org>
5339 * trustdb.c (validate_keys): Never schedule a nextcheck into the
5341 (validate_key_list): New arg curtime use it to set next_expire.
5342 (validate_one_keyblock): Take the current time from the caller.
5343 (clear_validity, reset_unconnected_keys): New.
5344 (validate_keys): Reset all unconnected keys.
5346 * getkey.c (premerge_public_with_secret): Fixed 0x12345678! syntax
5347 for use with secret keys.
5348 (lookup): Advance the searchmode after a search FIRST.
5350 * seckey-cert.c (do_check): Always calculate the old checksum for
5351 use after unprotection.
5353 * g10.c, options.skel: New option --no-escape-from. Made
5354 --escape-from and --force-v3-sigs the default and removed them
5355 from the options skeleton.
5357 2002-04-16 Werner Koch <wk@gnupg.org>
5359 * parse-packet.c (parse_key): Support a SHA1 checksum as per
5360 draft-rfc2440-bis04.
5361 * packet.h (PKT_secret_key): Add field sha1chk.
5362 * seckey-cert.c (do_check): Check the SHA1 checksum
5363 (protect_secret_key): And create it.
5364 * build-packet.c (do_secret_key): Mark it as sha-1 protected.
5365 * g10.c, options.h: New option --simple-sk-checksum.
5367 2002-04-13 David Shaw <dshaw@jabberwocky.com>
5369 * parse-packet.c (parse_signature): Minor fix - signatures should
5370 expire at their expiration time and not one second later.
5372 * keygen.c (proc_parameter_file): Allow specifying preferences
5373 string (i.e. "s5 s2 z1 z2", etc) in a batchmode key generation
5376 * keyedit.c (keyedit_menu): Print standard error message when
5377 signing a revoked key (no new translation).
5379 * getkey.c (merge_selfsigs): Get the default set of key prefs from
5380 the real (not attribute) primary uid.
5382 2002-04-12 David Shaw <dshaw@jabberwocky.com>
5384 * pkclist.c (build_pk_list): Fix bug that allowed a key to be
5385 selected twice in batch mode if one instance was the default
5386 recipient and the other was an encrypt-to. Noted by Stefan
5389 * parse-packet.c (dump_sig_subpkt): Show data in trust and regexp
5392 * keyedit.c (keyedit_menu): Use new function real_uids_left to
5393 prevent deleting the last real (i.e. non-attribute) uid. Again,
5394 according to the attribute draft. (menu_showphoto): Make another
5395 string translatable.
5397 2002-04-11 David Shaw <dshaw@jabberwocky.com>
5399 * build-packet.c (build_sig_subpkt): Delete subpackets from both
5400 hashed and unhashed area on update. (find_subpkt): No longer
5403 * keyedit.c (sign_uids): With --pgp2 on, refuse to sign a v3 key
5404 with a v4 signature. As usual, --expert overrides. Try to tweak
5405 some strings to a closer match so they can all be translated in
5406 one place. Use different helptext keys to allow different help
5407 text for different questions.
5409 * keygen.c (keygen_upd_std_prefs): Remove preferences from both
5410 hashed and unhashed areas if they are not going to be used.
5412 2002-04-10 David Shaw <dshaw@jabberwocky.com>
5414 * misc.c (pct_expando), options.skel: Use %t to indicate type of a
5415 photo ID (in this version, it's always "jpeg"). Also tweak string
5416 expansion loop to minimize reallocs.
5418 * mainproc.c (do_check_sig): Variable type fix.
5420 * keyedit.c (menu_set_primary_uid): Differentiate between true
5421 user IDs and attribute user IDs when making one of them primary.
5422 That is, if we are making a user ID primary, we alter user IDs.
5423 If we are making an attribute packet primary, we alter attribute
5424 packets. This matches the language in the latest attribute packet
5427 * keyedit.c (sign_uids): No need for the empty string hack.
5429 * getkey.c (fixup_uidnode): Only accept preferences from the
5430 hashed segment of the self-sig.
5432 2002-04-10 Werner Koch <wk@gnupg.org>
5434 * tdbio.c (migrate_from_v2): Fixed the offset to read the old
5435 ownertrust value and only add entries to the table if we really
5438 2002-04-08 David Shaw <dshaw@jabberwocky.com>
5440 * status.h, status.c (get_status_string): Add KEYEXPIRED, EXPSIG,
5441 and EXPKEYSIG. Add "deprecated-use-keyexpired-instead" to
5444 * sig-check.c (do_check): Start transition from SIGEXPIRED to
5445 KEYEXPIRED, since the actual event is signature verification by an
5446 expired key and not an expired signature. (do_signature_check,
5447 packet.h): Rename as signature_check2, make public, and change all
5450 * mainproc.c (check_sig_and_print, do_check_sig): Use status
5451 EXPSIG for an expired, but good, signature. Add the expiration
5452 time (or 0) to the VALIDSIG status line. Use status KEYEXPSIG for
5453 a good signature from an expired key.
5455 * g10.c (main): remove checks for no arguments now that argparse
5458 2002-04-06 Werner Koch <wk@gnupg.org>
5460 * keyring.c (keyring_get_keyblock): Disable the keylist mode here.
5462 * encode.c (encode_simple, encode_crypt): Only test on compressed
5463 files if a compress level was not explicity set.
5465 * keygen.c (keygen_set_std_prefs): Removed Blowfish and Twofish
5466 from the list of default preferences, swapped the preferences of
5467 RMD160 and SHA1. Don't include a preference to 3DES unless the
5468 IDEA kludge gets used.
5470 * free-packet.c (free_packet): call free_encrypted also for
5473 * compress.c (release_context): New.
5474 (handle_compressed): Allocate the context and setup a closure to
5475 release the context. This is required because there is no
5476 guarantee that the filter gets popped from the chain at the end
5477 of the function. Problem noted by Timo and probably also the
5478 cause for a couple of other reports.
5479 (compress_filter): Use the release function if set.
5481 * tdbio.c [__CYGWIN32__]: Don't rename ftruncate. Noted by
5484 * parse-packet.c (parse_signature): Put parens around a bit test.
5486 * exec.c (make_tempdir): Double backslash for TMP directory
5487 creation under Windows. Better strlen the DIRSEP_S constants for
5488 allocation measurements.
5490 * decrypt.c (decrypt_messages): Release the passphrase aquired
5491 by get_last_passphrase.
5493 2002-04-02 Werner Koch <wk@gnupg.org>
5495 * Makefile.am (EXTRA_DIST): Removed OPTIONS an pubring.asc - they
5496 are no longer of any use.
5498 2002-04-03 David Shaw <dshaw@jabberwocky.com>
5500 * keyserver.c (parse_keyserver_options): fix auto-key-retrieve to
5501 actually work as a keyserver-option (noted by Roger Sondermann).
5503 * keylist.c (reorder_keyblock): do not reorder the primary
5504 attribute packet - the first user ID must be a genuine one.
5506 2002-03-31 David Shaw <dshaw@jabberwocky.com>
5508 * keylist.c (list_keyblock_colon): Fix ownertrust display with
5511 * keygen.c (generate_user_id), photoid.c (generate_photo_id):
5512 Properly initialize the user ID refcount. A few more "y/n" ->
5515 * keyedit.c (ask_revoke_sig): Warn the user if they are about to
5516 revoke an expired sig (not a problem, but they should know). Also
5517 tweak a few prompts to change "y/n" to "y/N", which is how most
5518 other prompts are written.
5520 * keyserver.c (keyserver_search_prompt): Control-d escapes the
5521 keyserver search prompt.
5523 * pkclist.c (show_revocation_reason & callers): If a subkey is
5524 considered revoked solely because the parent key is revoked, print
5525 the revocation reason from the parent key.
5527 * trustdb.c (get_validity): Allow revocation/expiration to apply
5528 to a uid/key with no entry in the trustdb.
5530 2002-03-29 David Shaw <dshaw@jabberwocky.com>
5532 * keyserver.c (printunquoted): unquote backslashes from keyserver
5535 * hkp.c (write_quoted): quote backslashes from keyserver searches
5537 2002-03-26 Werner Koch <wk@gnupg.org>
5539 * keygen.c (ask_keysize): Removed the warning for key sizes > 1536.
5541 2002-03-25 Werner Koch <wk@gnupg.org>
5543 * keyedit.c (sign_uids): Use 2 strings and not a %s so that
5544 translations can be done the right way.
5545 * helptext.c: Fixed small typo.
5547 2002-03-23 David Shaw <dshaw@jabberwocky.com>
5549 * import.c (append_uid, merge_sigs): it is okay to import
5550 completely non-signed uids now (with --allow-non-selfsigned-uid).
5552 * getkey.c (get_primary_uid, merge_selfsigs_main): do not choose
5553 an attribute packet (i.e. photo) as primary uid. This prevents
5554 oddities like "Good signature from [image of size 2671]". This is
5555 still not perfect (one can still select an attribute packet as
5556 primary in --edit), but is closer to the way the draft is going.
5558 * g10.c (build_list): algorithms should include 110.
5560 * g10.c (main): --pgp2 implies --no-ask-sig-expire and
5561 --no-ask-cert-expire as those would cause a v4 sig/cert.
5563 * armor.c (is_armor_header): be more lenient in what constitutes a
5564 valid armor header (i.e. -----BEGIN blah blah-----) as some
5565 Windows programs seem to add spaces at the end. --openpgp makes
5568 2002-03-18 David Shaw <dshaw@jabberwocky.com>
5570 * keyserver.c (keyserver_search_prompt): Properly handle a "no
5571 keys found" case from the internal HKP code (external HKP is ok).
5572 Also, make a COUNT -1 (i.e. streamed) keyserver response a little
5575 * g10.c (main): Add --no-allow-non-selfsigned-uid
5577 2002-03-17 David Shaw <dshaw@jabberwocky.com>
5579 * g10.c (main): --openpgp implies --allow-non-selfsigned-uid.
5581 * getkey.c (merge_selfsigs_main): If none of the uids are primary
5582 (because none are valid) then pick the first to be primary (but
5583 still invalid). This is for cosmetics in case some display needs
5584 to print a user ID from a non-selfsigned key. Also use
5585 --allow-non-selfsigned-uid to make such a key valid and not
5586 --always-trust. The key is *not* automatically trusted via
5587 --allow-non-selfsigned-uid.
5589 * mainproc.c (check_sig_and_print): Make sure non-selfsigned uids
5590 print [uncertain] on verification even though one is primary now.
5592 * getkey.c (merge_selfsigs): If the main key is not valid, then
5593 neither are the subkeys.
5595 * import.c (import_one): Allow --allow-non-selfsigned-uid to work
5596 on completely unsigned keys. Print the uids in UTF8. Remove
5597 mark_non_selfsigned_uids_valid().
5599 * keyedit.c (show_key_with_all_names): Show revocation key as
5602 * sign.c (clearsign_file): Allow --not-dash-escaped to work with
5605 2002-03-14 Werner Koch <wk@gnupg.org>
5607 * main.h: Changed the default algorithms to CAST5 and SHA1.
5609 2002-03-13 David Shaw <dshaw@jabberwocky.com>
5611 * import.c (chk_self_sigs): Show which user ID a bad self-sig
5612 (invald sig or unsupported public key algorithm) resides on.
5614 * import.c (chk_self_sigs): any valid self-sig should mark a user
5615 ID or subkey as valid - otherwise, an attacker could DoS the user
5616 by inventing a bogus invalid self-signature.
5618 2002-03-07 David Shaw <dshaw@jabberwocky.com>
5620 * g10.c (main): make a few more strings translatable.
5622 * options.h, options.skel, g10.c (main), gpgv.c, mainproc.c
5623 (check_sig_and_print), keyserver.c (parse_keyserver_options):
5624 --auto-key-retrieve should really be a keyserver-option variable.
5626 * import.c (revocation_present): new function to print a warning
5627 if a key is imported that has been revoked by designated revoker,
5628 but the designated revoker is not present to verify the
5629 revocation. If keyserver-options auto-key-retrieve is set, try
5630 and fetch the designated revoker from the keyserver.
5632 * import.c (import_one): call revocation_present after importing a
5633 new key. Note that this applies to --import, --recv-keys, and
5636 * keyserver-internal.h, keyserver.c (keyserver_import_fprint):
5637 import via fingerprint (for revocation keys).
5639 * keyserver.c (keyserver_import_keyid): much simpler
5640 implementation now that we're using KEYDB_SEARCH_DESC internally.
5642 2002-03-04 David Shaw <dshaw@jabberwocky.com>
5644 * revoke.c (gen_revoke): do not prompt for revocation reason for
5645 v3 revocations (unless force-v4-certs is on) since they wouldn't
5648 * keyedit.c (menu_revsig): show the status of the sigs
5649 (exportable? revocable?) to the user before prompting for which
5650 sig to revoke. Also, make sure that local signatures get local
5653 * keyedit.c (ask_revoke_sig): remind the user which sigs are
5656 * g10.c (main): Add "exec-path" variable to override PATH for
5659 * export.c (do_export_stream): properly check return code from
5660 classify_user_id to catch unclassifiable keys.
5662 2002-03-03 David Shaw <dshaw@jabberwocky.com>
5664 * parse-packet.c (parse_signature): variable type tweak for RISC
5667 2002-02-28 David Shaw <dshaw@jabberwocky.com>
5669 * getkey.c (check_revocation_keys): New function to check a
5670 revocation against a list of potential revocation keys. Note the
5671 loop-breaking code here. This is to prevent blowing up if A is
5672 B's revocation key, while B is also A's. Note also that this is
5673 written so that a revoked revoker can still issue revocations:
5674 i.e. If A revokes B, but A is revoked, B is still revoked. I'm
5675 not completely convinced this is the proper behavior, but it
5676 matches how PGP does it. It does at least have the advantage of
5677 much simpler code - my first version of this had lots of loop
5678 maintaining code so you could chain revokers many levels deep and
5679 if D was revoked, C was not, which meant that B was, and so on.
5680 It was sort of scary, actually.
5682 * getkey.c (merge_selfsigs_main): Add any revocation keys onto the
5683 pk. This is particularly interesting since we normally only get
5684 data from the most recent 1F signature, but you need multiple 1F
5685 sigs to properly handle revocation keys (PGP does it this way, and
5686 a revocation key could be marked "sensitive" and hence in a
5687 different signature). Also, if a pk has a revocation key set,
5688 check for revocation sigs that were not made by us - if made by a
5689 valid revocation key, mark the pk revoked.
5691 * packet.h, getkey.c (cache_public_key): do not cache key if
5692 "dont_cache" is set. This allows the revocation key code to look
5693 up a key and return information that may be inaccurate to prevent
5694 loops without caching the fake data.
5696 * packet.h, sig-check.c (do_signature_check): Record if a
5697 signature was made by a revoked pk.
5699 * packet.h, parse-packet.c (parse_one_sig_subpkt,
5700 can_handle_critical, parse_signature): Get revocation key
5701 information out of direct sigs.
5703 * keylist.c (list_keyblock_print): don't assume that the presence
5704 of a 0x20 signature means the key is revoked. With revocation
5705 keys, this may not be true if the revocation key is not around to
5706 verify it or if verification failed. Also, 0x1F should get listed
5707 as "sig", and not "unexpected signature class".
5709 * keyedit.c (show_key_with_all_names): Add a flag for printing
5710 revoker information and change all callers.
5712 * import.c (merge_blocks): merge in any new direct key (0x1F)
5715 * import.c (import_revoke_cert): don't keep processing after a
5716 revocation is rejected.
5718 * import.c (delete_inv_parts): Allow importing a revocation
5719 signature even if it was not issued by the key. This allows a
5720 revocation key to issue it. Of course, the sig still needs to be
5721 checked before we trust it.
5723 * free-packet.c (copy_public_key): Include a new copy of the
5724 revocation keys when duping a pk.
5726 * free-packet.c (free_seckey_enc, release_public_key_parts): Free
5727 any revocation keys that are attached to a sig or pk.
5729 * export.c (do_export_stream): Do not export signatures with
5730 "sensitive" revocation keys in them.
5732 2002-02-27 David Shaw <dshaw@jabberwocky.com>
5734 * export.c (do_export_stream): Do not include v3 keys in a
5735 --export-secret-subkeys export.
5737 * getkey.c (merge_selfsigs_main): If a key isn't valid (say,
5738 because of no self-signature), allow --always-trust to force it
5739 valid so it can be trusted.
5741 2002-02-25 David Shaw <dshaw@jabberwocky.com>
5743 * hkp.c (hkp_ask_import), hkp.h, keyserver.c (all): treat key
5744 lists internally as fingerprints when possible. All this is via
5745 KEYDB_SEARCH_DESC - no point in reinventing the wheel. This allows
5746 the helper program to search the keyserver by fingerprint if
5747 desired (and the keyserver supports it). Note that automatic
5748 fingerprint promotion during refresh only applies to v4 keys as a
5749 v4 fingerprint can be easily changed into a long or short key id,
5752 * pubkey-enc.c, getkey.c, misc.c, main.h: Take two copies of
5753 hextobyte() from pubkey-enc.c and getkey.c and make them into one
5756 2002-02-22 David Shaw <dshaw@jabberwocky.com>
5758 * keyserver.c (keyserver_search_prompt): Detect a "no keys found"
5759 case even if the helper program does not explicitly say how many
5762 * hkp.c (parse_hkp_index): Bug fix - don't report non-revoked keys
5763 as revoked in HKP key searches.
5765 2002-02-19 Werner Koch <wk@gnupg.org>
5767 * parse-packet.c (parse_trust): Made parsing more robust.
5769 2002-02-19 David Shaw <dshaw@jabberwocky.com>
5771 * hkp.c (parse_hkp_index): Catch corruption in HKP index lines
5772 (can be caused by broken or malicious keyservers).
5774 * keyserver.c (keyserver_work): Add KEYSERVER_NOT_SUPPORTED for
5775 unsupported actions (say, a keyserver that has no way to search,
5776 or a readonly keyserver that has no way to add). Also add a
5777 USE_EXTERNAL_HKP define to disable the internal HKP keyserver
5780 2002-02-14 Werner Koch <wk@gnupg.org>
5782 * g10.c: New option --no-use-agent.
5784 * pkclist.c (check_signatures_trust): Always print the warning for
5785 unknown and undefined trust. Removed the did_add cruft. Reported
5786 by Janusz A. Urbanowicz.
5788 2002-02-11 David Shaw <dshaw@jabberwocky.com>
5790 * hkp.c (parse_hkp_index): Bug fix - properly handle user IDs with
5791 colons (":") in them while HKP searching.
5793 2002-02-09 David Shaw <dshaw@jabberwocky.com>
5795 * misc.c (pct_expando): More comments.
5797 * keydb.h, sign.c (mk_notation_and_policy): Clarify what is a sig
5798 and what is a cert. A sig has sigclass 0x00, 0x01, 0x02, or 0x40,
5799 and everything else is a cert.
5801 * g10.c (main), keyedit.c (keyedit_menu): Add a "nrlsign" for
5802 nonrevocable and local key signatures.
5804 * g10.c (main): Add a --no-force-mdc to undo --force-mdc.
5806 * options.h, g10.c (main), cipher.c (write_header): Add a knob to
5807 --disable-mdc/--no-disable-mdc. Off by default, of course, but is
5808 used in --pgp2 and --pgp6 modes.
5810 * pkclist.c (build_pk_list): Allow specifying multiple users in
5811 the "Enter the user ID" loop. Enter a blank line to stop. Show
5812 each key+id as it is added.
5814 * keylist.c (show_policy_url), mainproc.c (print_notation_data):
5815 It is not illegal (though possibly silly) to have multiple policy
5816 URLs in a given signature, so print all that are present.
5818 * hkp.c (hkp_search): More efficient implementation of URL-ifying
5821 2002-02-04 David Shaw <dshaw@jabberwocky.com>
5823 * main.h, misc.c (pct_expando): New function to generalize
5824 %-expando processing in any arbitrary string.
5826 * photoid.c (show_photo): Call the new pct_expando function rather
5827 than expand strings internally.
5829 * sign.c (mk_notation_and_policy): Show policy URLs and notations
5830 when making a signature if show-policy/show-notation is on.
5831 %-expand policy URLs during generation. This lets the user have
5832 policy URLs of the form "http://notary.jabberwocky.com/keysign/%K"
5833 which will generate a per-signature policy URL.
5835 * main.h, keylist.c (show_policy_url, show_notation): Add amount
5836 to indent so the same function can be used in key listings as well
5837 as during sig generation. Change all callers.
5839 2002-02-04 David Shaw <dshaw@jabberwocky.com>
5841 * keyserver.c, options.h (parse_keyserver_options, keyidlist):
5842 Workaround for the pksd and OKS keyserver bug that calculates v4
5843 RSA keyids as if they were v3. The workaround/hack is to fetch
5844 both the v4 (e.g. 99242560) and v3 (e.g. 68FDDBC7) keyids. This
5845 only happens for key refresh while using the HKP scheme and the
5846 refresh-add-fake-v3-keyids keyserver option must be set. This
5847 should stay off by default.
5849 2002-02-03 David Shaw <dshaw@jabberwocky.com>
5851 * keyserver.c (keyserver_spawn): Bug fix - do not append keys to
5852 each other when --sending more than one.
5854 2002-02-02 David Shaw <dshaw@jabberwocky.com>
5856 * options.h, g10.c (main), keyedit.c (sign_uids), sign.c
5857 (mk_notation_and_policy): Split "--set-policy-url" into
5858 "--cert-policy-url" and "--sig-policy-url" so the user can set
5859 different policies for key and data signing. For backwards
5860 compatibility, "--set-policy-url" sets both, as before.
5862 2002-01-30 Werner Koch <wk@gnupg.org>
5864 * g10.c (main): --gen-random --armor does now output a base64
5867 2002-01-28 David Shaw <dshaw@jabberwocky.com>
5869 * g10.c (main), options.h, pkclist.c (algo_available): --pgp6
5870 flag. This is not nearly as involved as --pgp2. In short, it
5871 turns off force_mdc, turns on no_comment, escape_from, and
5872 force_v3_sigs, and sets compression to 1. It also restricts the
5873 user to IDEA (if present), 3DES, CAST5, MD5, SHA1, and RIPEMD160.
5874 See the comments above algo_available() for lots of discussion on
5875 why you would want to do this.
5877 2002-01-27 David Shaw <dshaw@jabberwocky.com>
5879 * keygen.c (keygen_set_std_prefs): Comment
5881 * keyedit.c (sign_uids): Bug fix - when signing with multiple
5882 secret keys at the same time, make sure each key gets the sigclass
5885 * exec.c (exec_finish): Close the iobuf and FILE before trying to
5886 waitpid, so the remote process will get a SIGPIPE and exit. This
5887 is only a factor when using a pipe to communicate.
5889 * exec.c (exec_write): Disable cache-on-close of the fd iobuf (is
5890 this right? Why is a fd iobuf cached at all?)
5892 2002-01-26 Werner Koch <wk@gnupg.org>
5894 * g10.c, options.h: New option --gpg-agent-info
5895 * passphrase.c (agent_open): Let it override the environment info.
5896 * seckey-cert.c (check_secret_key): Always try 3 times when the
5898 * options.skel: Describe --use-agent.
5900 2002-01-24 David Shaw <dshaw@jabberwocky.com>
5902 * pubkey-enc.c (is_algo_in_prefs, get_it): Only check preferences
5903 against keys with v4 self sigs - there is really little point in
5904 warning for every single non-IDEA message encrypted to an old key.
5906 * pkclist.c (select_algo_from_prefs): Only put in the fake IDEA
5907 preference if --pgp2 is on.
5909 * mainproc.c (check_sig_and_print): Print "Expired" for expired
5910 but good signatures (this still prints "BAD" for expired but bad
5913 2002-01-23 David Shaw <dshaw@jabberwocky.com>
5915 * keygen.c (ask_keysize): Cosmetic: don't present a RSA signing
5916 key as a "keypair" which can be 768 bits long (as RSA minimum is
5919 * pubkey-enc.c (is_algo_in_prefs): Allow IDEA as a fake preference
5920 for v3 keys with v3 selfsigs.
5922 2002-01-22 David Shaw <dshaw@jabberwocky.com>
5924 * packet.h, getkey.c (merge_selfsigs_main), pkclist.c
5925 (select_algo_from_prefs): Implement the fake IDEA preference as
5926 per RFC2440:12.1. This doesn't mean that IDEA will be used (the
5927 plugin may not be present), but it does mean that a v3 key with a
5928 v3 selfsig has an implicit IDEA preference instead of 3DES. v3
5929 keys with v4 selfsigs use preferences as normal.
5931 * encode.c (encode_crypt): if select_algo_from_prefs fails, this
5932 means that we could not find a cipher that both keys like. Since
5933 all v4 keys have an implicit 3DES preference, this means there is
5934 a v3 key with a v3 selfsig in the list. Use 3DES in this case as
5935 it is the safest option (we know the v4 key can handle it, and
5936 we'll just hope the v3 key is being used in an implementation that
5937 can handle it). If --pgp2 is on, warn the user what we're doing
5938 since it'll probably break PGP2 compatibility.
5940 * g10.c (main): Do not force using IDEA for encrypted files in
5941 --pgp2 mode - let the fake IDEA preference choose this for us for
5942 better compatibility when encrypting to multiple keys, only some
5945 * keygen.c (keygen_set_std_prefs): Put 3DES on the end of the
5946 default cipher pref list (RFC2440: "...it is good form to place it
5947 there explicitly."). If the user has the IDEA plugin installed,
5948 put a preference for IDEA *after* 3DES to effectively disable its
5949 use for everything except encrypting along with v3 keys.
5951 * encode.c, g10.c, sign.c: Change the PGP2 warning line from
5952 "... will not be usable ..." to "... may not be usable ..." as the
5953 user could be using one of the enhanced PGP2 variations.
5955 * helptext.c: Revise the sign_uid.class help text as suggested by
5958 2002-01-20 Werner Koch <wk@gnupg.org>
5960 * passphrase.c (passphrase_to_dek): Add tryagain_text arg to be
5961 used with the agent. Changed all callers.
5962 (agent_get_passphrase): Likewise and send it to the agent
5963 * seckey-cert.c (do_check): New arg tryagain_text.
5964 (check_secret_key): Pass the string to do_check.
5965 * keygen.c (ask_passphrase): Set the error text is required.
5966 * keyedit.c (change_passphrase): Ditto.
5968 * passphrase.c (agent_open): Disable opt.use_agent in case of a
5969 problem with the agent.
5970 (agent_get_passphrase): Ditto.
5971 (passphrase_clear_cache): Ditto.
5973 2002-01-19 Werner Koch <wk@gnupg.org>
5975 * passphrase.c (agent_open): Add support for the new Assuan based
5976 gpg-agent. New arg to return the used protocol version.
5977 (agent_get_passphrase): Implemented new protocol here.
5978 (passphrase_clear_cache): Ditto.
5981 2002-01-15 Timo Schulz <ts@winpt.org>
5983 * encode.c (encode_crypt_files): Fail if --output is used.
5985 * g10.c: New command --decrypt-files.
5987 * decrypt.c (decrypt_messages): New.
5989 2002-01-09 David Shaw <dshaw@jabberwocky.com>
5991 * g10.c, misc.c, gpgv.c: move idea_cipher_warn to misc.c so gpgv.c
5992 doesn't need a stub for it any longer.
5994 * g10.c (get_temp_dir), main.h: no longer used (it's in exec.c now)
5996 * g10.c (main), delkey.c (delete_keys), main.h : Allow
5997 --delete-key (now --delete-keys, though --delete-key still works,
5998 of course) to delete multiple keys in one go. This applies to
5999 --delete-secret-key(s) and --delete-secret-and-public-key(s) as
6002 2002-01-09 Timo Schulz <ts@winpt.org>
6004 * encode.c (encode_crypt_files): Now it behaves like verify_files.
6006 * g10.c (main): We don't need to check argc for encode_crypt_files
6009 2002-01-09 Timo Schulz <ts@winpt.org>
6011 * exec.c: Include windows.h for dosish systems.
6013 2002-01-08 Timo Schulz <ts@winpt.org>
6015 * g10.c (main): New description for --encrypt-files.
6017 2002-01-08 Werner Koch <wk@gnupg.org>
6019 * g10.c (main): Must register the secring for encryption because
6020 it is needed to figure out the default recipient. Reported by
6023 2002-01-05 David Shaw <dshaw@jabberwocky.com>
6025 * keyedit.c (menu_adduid): Require --expert before adding a photo
6026 ID to a v3 key, and before adding a second photo ID to any key.
6028 * keyedit.c (keyedit_menu): Don't allow adding photo IDs in
6029 rfc1991 or pgp2 mode.
6031 * getkey.c (merge_selfsigs_subkey): Permit v3 subkeys. Believe it
6032 or not, this is allowed by rfc 2440, and both PGP 6 and PGP 7 work
6035 * g10.c, options.h, keyedit.c, sign.c: Move the "ask for
6036 expiration" switch off of --expert, which was getting quite
6037 overloaded, and onto ask-sig-expire and ask-cert-expire. Both
6040 * g10.c (main): Change the default compression algo to 1, to be
6041 more OpenPGP compliant (PGP also uses this, so it'll help with
6042 interoperability problems as well).
6044 * encode.c (encode_crypt): Handle compression algo 2, since the
6047 * build-packet.c (build_attribute_subpkt): Fix off-by-one error.
6049 2002-01-05 Werner Koch <wk@gnupg.org>
6051 * g10.c (main): Do not register the secret keyrings for certain
6054 * keydb.c (keydb_add_resource): Use access to test for keyring
6055 existence. This avoids cached opened files which are bad under
6058 2002-01-04 David Shaw <dshaw@jabberwocky.com>
6060 * sign.c (sign_file, sign_symencrypt_file): always use one-pass
6061 packets unless rfc1991 is enabled. This allows a signature made
6062 with a v3 key to work in PGP 6 and 7. Signatures made with v4
6065 * g10.c (main): Disallow non-detached signatures in PGP2 mode.
6066 Move the "you must use files and not pipes" PGP2 warning up so all
6067 the PGP2 stuff is together.
6069 * encode.c (encode_simple): Use the actual filesize instead of
6070 partial length packets in the internal literal packet from a
6071 symmetric message. This breaks PGP5(?), but fixes PGP2, 6, and 7.
6072 It's a decent tradeoff. Note there was only an issue with
6073 old-style RFC1991 symmetric messages. 2440-style messages in 6
6074 and 7 work with or without partial length packets.
6076 2002-01-03 David Shaw <dshaw@jabberwocky.com>
6078 * g10.c (main): Removed --no-default-check-level option, as it is
6079 not consistent with other "default" options. Plus, it is the same
6080 as saying --default-check-level 0.
6082 * exec.c (exec_read): Disallow caching tempfile from child
6083 process, as this keeps the file handle open and can cause unlink
6084 problems on some platforms.
6086 * keyserver.c (keyserver_search_prompt): Minor tweak - don't
6087 bother to transform keyids into textual form if they're just going
6088 to be transformed back to numbers.
6090 2002-01-03 Timo Schulz <ts@winpt.org>
6092 * g10.c: New command --encrypt-files.
6094 * verify.c (print_file_status): Removed the static because
6095 encode_crypt_files also uses this function.
6097 * main.h (print_files_status): New.
6098 (encode_crypt_files): New.
6100 * encode.c (encode_crypt_files): New.
6102 2002-01-02 Stefan Bellon <sbellon@sbellon.de>
6104 * keyserver.c: Moved util.h include down in order to avoid
6105 redefinition problems on RISC OS.
6107 * keyring.c (keyring_lock): Only lock keyrings that are writable.
6109 * keyring.c (keyring_update_keyblock): Close unused iobuf.
6111 * hkp.c (parse_hkp_index, hkp_search) [__riscos__]: Changed
6112 unsigned char* to char* because of compiler issues.
6114 * exec.c (exec_finish) [__riscos__]: Invalidate close cache so
6115 that file can be unlinked.
6117 2001-12-28 David Shaw <dshaw@jabberwocky.com>
6119 * g10.c (main): Use a different strlist to check extensions since
6120 they need to be handled seperately now.
6122 * misc.c,main.h (check_permissions): Properly handle permission
6123 and ownership checks on files in the lib directory
6124 (e.g. /usr/local/lib/gnupg), which are owned by root and are
6125 world-readable, and change all callers to specify extension or
6128 * photoid.c (show_photo), keyserver.c (keyserver_spawn): Bug fix -
6129 don't call exec_finish if exec_write fails.
6131 * keyserver.c (keyserver_spawn): Look for OPTIONS from the
6132 keyserver helper - specifically, a "OUTOFBAND" option for the
6135 * mainproc.c (list_node), keylist.c (list_keyblock_colon),
6136 import.c (delete_inv_parts), export.c (do_export_stream): Use
6137 signature flags for exportability check rather than re-parsing the
6140 * keyid.c, keydb.h (get_lsign_letter): No longer needed.
6142 2001-12-27 David Shaw <dshaw@jabberwocky.com>
6144 * exec.c (exec_finish): Show errors when temp files cannot be
6145 deleted for whatever reason.
6147 * exec.c (exec_read): Don't rely on WEXITSTATUS being present.
6149 * exec.c (make_tempdir): Add temp file creator for win32. Don't
6150 create an incoming temp file if the exec is write-only.
6152 * keyserver.c (keyserver_spawn): Clean up error handling, for when
6155 * photoid.c (show_photo): Clean up error handling.
6157 * misc.c (check_permissions): Neaten.
6159 2001-12-25 David Shaw <dshaw@jabberwocky.com>
6161 * mkdtemp.c (mkdtemp): Add copyleft info and tweak the 'X' counter
6162 to be a bit simpler.
6164 * keyserver.c, photoid.c: Remove unused headers left over from
6165 when the exec functions lived there.
6167 2001-12-23 Timo Schulz <ts@winpt.org>
6169 * misc.c (check_permissions): Do not use it for W32 systems.
6171 * tdbio.c (migrate_from_v2): Define ftruncate as chsize() for W32.
6173 * mkdtemp.c: W32 support.
6179 2001-12-22 David Shaw <dshaw@jabberwocky.com>
6181 * exec.c (make_tempdir): avoid compiler warning with const
6183 * mkdtemp.c (mkdtemp): catch the empty ("") string case in case
6184 someone repurposes mkdtemp at some point.
6186 * photoid.c (generate_photo_id, show_photo): some type changes
6189 * exec.c (make_tempdir): handle Win32 systems, suggested by Timo
6192 2001-12-22 Werner Koch <wk@gnupg.org>
6194 * encode.c (encode_simple, encode_crypt): i18n 2 strings.
6196 2001-12-22 Timo Schulz <ts@winpt.org>
6198 * encode.c (encode_simple, encode_crypt): Use is_file_compressed
6199 to avoid to compress compressed files.
6201 2001-12-22 Werner Koch <wk@gnupg.org>
6203 * keyserver.c (keyserver_spawn): Removed some variables
6204 declaration due to shadowing warnings.
6206 * build-packet.c (build_attribute_subpkt): s/index/idx/ to avoid
6207 compiler warnig due to index(3).
6209 * getkey.c (get_ctx_handle): Use KEYDB_HANDLE as return value.
6210 * keylist.c (list_one): Made resname const.
6212 * keyedit.c (keyedit_menu): Allow "addphoto" only when --openpgp is
6215 * options.skel: Changed one example photo viewer to qiv.
6217 2001-12-21 David Shaw <dshaw@jabberwocky.com>
6219 * Makefile.am: add exec.c, exec.h, photoid.c, and photoid.h
6221 * build-packet.c (build_attribute_subpkt): new function to build
6222 the raw attribute subpacket. Note that attribute subpackets have
6223 the same format as signature subpackets.
6225 * exec.c: new file with generic exec-a-program functionality.
6226 Used by both photo IDs and keyserver helpers. This is pretty much
6227 the same code that used to be keyserver specific, with some
6228 changes to be usable generically.
6230 * free-packet.c (free_attributes (new)): function to free an
6233 * gpgv.c: added stub show_photo
6235 * keyedit.c (keyedit_menu, menu_adduid, menu_showphoto): can add a
6236 photo (calls generate_photo_id), or display a photo (calls
6237 show_photo) from the --edit menu. New commands are "addphoto",
6238 and "delphoto" (same as "deluid").
6240 * keylist.c (list_keyblock_print): show photos during key list if
6241 --show-photos enabled.
6243 * keyserver.c (keyserver_spawn): use the generic exec_xxx
6244 functions to call keyserver helper.
6246 * g10.c, options.h: three new options - --{no-}show-photos, and
6247 --photo-viewer to give the command line to display a picture.
6249 * options.skel: instructions for the photo viewer
6251 * parse-packet.c (parse_user_id, setup_user_id (new)): common code
6252 for both user IDs and attribute IDs moved to setup_user_id.
6254 * parse-packet.c (make_attribute_uidname (new)): constructs a fake
6255 "name" for attribute packets (e.g. "[image of size ...]")
6257 * parse-packet.c (parse_attribute (replaces parse_photo_id),
6258 parse_attribute_subpkts): Builds an array of individual
6259 attributes. Currently only handles attribute image / type jpeg
6262 * sign.c (hash_uid): Fix bug in signing attribute (formerly
6265 * packet.h, and callers: globally change "photo_id" to "attribute"
6266 and add structures for attributes. The packet format is generic
6267 attributes, even though the only attribute type thus far defined
6270 2001-12-21 David Shaw <dshaw@jabberwocky.com>
6272 * parse-packet.c (can_handle_critical): Can handle critical
6273 revocation subpackets now.
6275 * trustdb.c (mark_usable_uid_certs): Disregard revocations for
6276 nonrevocable sigs. Note that this allows a newer revocable
6277 signature to override an older nonrevocable signature.
6279 * sign.c (make_keysig_packet): add a duration field and change all
6280 callers. This makes make_keysig_packet closer to
6281 write_signature_packets and removes some duplicated expiration
6284 * keyedit.c (keyedit_menu, menu_revsig, sign_uids,
6285 sign_mk_attrib): Add nrsign command, don't allow revoking a
6286 nonrevocable signature,
6288 * g10.c (main): Add --nrsign option to nonrevocably sign a key
6289 from the command line.
6291 * build-packet.c (build_sig_subpkt_from_sig): Comment to explain
6292 the use of CRITICAL.
6294 2001-12-21 Werner Koch <wk@gnupg.org>
6296 * g10.c. options.h : New option --show-keyring
6297 * getkey.c (get_ctx_handle): New.
6298 * keylist.c (list_one): Implement option here. By David Champion.
6300 2001-12-20 David Shaw <dshaw@jabberwocky.com>
6302 * keyserver.c (keyserver_spawn): Use mkdtemp() to make temp
6305 * mkdtemp.c: replacement function for those platforms that don't
6306 have mkdtemp (make a temp directory securely).
6308 2001-12-19 David Shaw <dshaw@jabberwocky.com>
6310 * misc.c (check_permissions): New function to stat() and ensure
6311 the permissions of GNUPGHOME and the files have safe permissions.
6313 * keydb.c (keydb_add_resource): Check keyring permissions.
6315 * tdbio.c (tdbio_set_dbname): Check permissions of trustdb.gpg
6317 * keyserver.c (keyserver_spawn): Disable keyserver schemes that
6318 involve running external programs if the options file has unsafe
6319 permissions or ownership.
6321 * g10.c, options.h: New option --no-permission-warning to disable
6322 the permission warning message(s). This also permits use of the
6323 keyserver if it had been disabled (see above). Also check the
6324 permissions/ownership of random_seed.
6326 * keyserver.c (keyserver_spawn): The new glibc prints a warning
6327 when using mktemp() (the code was already secure, but the warning
6328 was bound to cause confusion). Use a different implementation
6329 based on get_random_bits() instead. Also try a few times to get
6330 the temp dir before giving up.
6332 2001-12-19 Werner Koch <wk@gnupg.org>
6334 * g10.c, passphrase.c [CYGWIN32]: Allow this as an alias for MINGW32.
6336 2001-12-18 David Shaw <dshaw@jabberwocky.com>
6338 * g10.c (idea_cipher_warn): Add a flag to show the warning always
6339 or once per session and change all callers (show always except for
6340 the secret key protection and unknown cipher from an encrypted
6341 message errors). Also make the strings translatable.
6343 * pubkey-enc.c (get_it): Add the IDEA cipher warning if the user
6344 tries to decrypt an IDEA encrypted message without the IDEA
6347 * keyserver.c (parse_keyserver_uri): More strict checking of the
6348 keyserver URI. Specifically, fail if the ":port" section is
6349 anything except a number between 1 and 65535.
6351 2001-12-17 David Shaw <dshaw@jabberwocky.com>
6353 * keyserver.c (print_keyinfo): No need to check for
6354 control/illegal characters, as utf8_to_native does this for us.
6356 * mainproc.c (proc_encrypted): Use generic IDEA warning.
6358 * gpgv.c: add stub for idea_cipher_warn
6360 * g10.c, hkp.c, keyserver.c: Fix capitalization and plural issues.
6362 * encode.c (encode_crypt), sign.c (sign_file, clearsign_file):
6363 disable pgp2 mode after the message is no longer pgp2 compatible.
6365 * g10.c (main): Tweak the PGP2.x IDEA warning to use the generic
6366 warning, and not merely fail if the IDEA plugin isn't there.
6368 * g10.c (main, idea_cipher_warn), keygen.c (set_one_pref),
6369 seckey-cert.c (do_check): Add a generic IDEA warning for when the
6370 IDEA plugin is not present. This pops up when the user uses
6371 "--cipher-algo idea", when setpref is used to set a "S1"
6372 preference, and when a secret key protected with IDEA is used.
6374 2001-12-15 Werner Koch <wk@gnupg.org>
6376 * keyserver.c (keyserver_spawn): Assert that we have dropped privs.
6378 2001-12-13 Werner Koch <wk@gnupg.org>
6380 * pubkey-enc.c (get_session_key): Check that the public key
6381 algorithm is indeed usable for en/decryption. This avoid a
6382 strange error message from pubkey_decrypt if for some reasons a
6383 bad algorithm indentifier is passed.
6385 2001-12-12 David Shaw <dshaw@jabberwocky.com>
6387 * Fixed some types for portability. Noted by Stefan Bellon.
6389 2001-12-11 Werner Koch <wk@gnupg.org>
6391 * hkp.c (hkp_export): Do not print possible control characters
6392 from a keyserver response.
6393 (parse_hkp_index): Made uid an unsigned char* because it is passed to
6395 (hkp_search): Ditto for the char* vars.
6397 * g10.c (main): Print the IDEA warning also for -c and -se.
6399 * g10.c (get_temp_dir): Assert that we have dropped privs
6401 * encode.c (encode_crypt): Include the first key into the --pgp2
6404 2001-12-07 David Shaw <dshaw@jabberwocky.com>
6406 * g10.c, options.h: New option --pgp2. This is identical to
6407 "--rfc1991 --cipher-algo idea --compress-algo 1 --digest-algo md5
6408 --force_v3_sigs" with the addition of an warning to advise the
6409 user not to use a pipe (which would break pgp2 compatibility).
6411 * encode.c (encode_crypt): warn if the user tries to encrypt to
6412 any key that is not RSA and <= 2048 bits when the --pgp2 option is
6415 * sign.c (sign_file, clearsign_file): When using --pgp2, make a v3
6416 sig, and warn if the signature is made with a non-v3 key.
6418 2001-12-05 David Shaw <dshaw@jabberwocky.com>
6420 * sign.c (sign_file, clearsign_file, sign_symencrypt_file): Prompt
6421 for sig expiration if --expert is set and --force-v3-sigs is not
6422 set (v3 sigs cannot expire).
6424 * mainproc.c (check_sig_and_print): After checking a sig, print
6425 expiration status. This causes a error return if the sig is
6428 * build-packet.c (build_sig_subpkt_from_sig): Include a critical
6429 sig expiration subpacket if the sig is to expire.
6431 * keyedit.c (sign_uids): Do not sign an expired key unless
6432 --expert is set, in which case prompt. Also, offer to expire a
6433 signature when the key the user is signing expires.
6435 * keygen.c (ask_expire_interval): Add a value to determine whether
6436 to prompt for a key or sig expiration and change all callers.
6438 * keyid.c: New functions: expirestr_from_sig and
6439 colon_expirestr_from_sig.
6441 * keylist.c (list_keyblock_colon): Show sig expiration date in the
6442 --with-colons listing.
6444 * sign.c (make_keysig_packet, write_signature_packets): Pass in an
6445 optional timestamp for the signature packet, and change all
6448 * keyedit.c (sign_mk_attrib): Include a critical expiration
6449 subpacket in the signature if an expiration date is given.
6451 2001-12-04 David Shaw <dshaw@jabberwocky.com>
6453 * keyedit.c (sign_uids): If the user tries to sign a
6454 locally-signed key, allow the cert to be promoted to a full
6455 exportable signature. This essentially deletes the old
6456 non-exportable sig, and replaces it with a new exportable one.
6458 2001-12-04 David Shaw <dshaw@jabberwocky.com>
6460 * keyedit.c (keyedit_menu): Do not allow signing a revoked key
6461 unless --expert is set, and ask even then.
6463 * keyedit.c (sign_uids): Do not allow signing a revoked UID unless
6464 --expert is set, and ask even then.
6466 * g10.c, options.h : New option --expert
6468 2001-11-16 David Shaw <dshaw@jabberwocky.com>
6470 * Allow the user to select no compression via "--compress-algo 0"
6471 on the command line.
6473 * keyedit.c (show_prefs): Show compression preferences in the
6474 long-form "showpref" style.
6476 * keygen.c (set_one_pref): Permit setting a no-compression ("Z0")
6479 * getkey.c (fixup_uidnode): Fix compression preference corruption
6482 2001-12-02 David Shaw <dshaw@jabberwocky.com>
6484 * g10.c: Add advisory --for-your-eyes-only option as per section
6487 2001-12-05 David Shaw <dshaw@jabberwocky.com>
6489 * Force a V4 sig if the user has a notation or policy URL set.
6491 2001-12-04 David Shaw <dshaw@jabberwocky.com>
6493 * g10.c: Add options --keyserver-options, --temp-directory, and
6494 auto-key-retrieve (the opposite of no-auto-key-retrieve).
6496 * hkp.c (hkp_search): New function to handle searching a HKP
6499 * hkp.c (hkp_ask_import, hkp_export): Pretty large changes to make
6500 them communicate via the generic functions in keyserver.c
6502 * keyserver.c: new file with generic keyserver routines for
6503 getting keys from a keyserver, sending keys to a keyserver, and
6504 searching for keys on a keyserver. Calls the internal HKP stuff
6505 in hkp.c for HKP keyserver functions. Other calls are handled by
6506 an external program which is spawned and written to and read from
6507 via pipes. Platforms that don't have pipes use temp files.
6509 2001-11-20 David Shaw <dshaw@jabberwocky.com>
6511 * options.h, g10.c: New options show-notation, no-show-notation,
6512 default-check-level, no-default-check-level, show-policy-url,
6515 * packet.h, sign.c (make_keysig_packet), parse-packet.c
6516 (parse_signature), free-packet.c (free_seckey_enc): Fill in
6517 structures for notation, policy, sig class, exportability, etc.
6519 * keyedit.c, keylist.c (print_and_check_one_sig,
6520 list_keyblock_print): Show flags in signature display for cert
6521 details (class, local, notation, policy, revocable). If selected,
6522 show the notation and policy url.
6524 * keyedit.c (sign_uids): Prompt for and use different key sig
6527 * helptext.c (helptexts): Add help text to explain different
6528 key signature classes
6530 2001-11-26 David Shaw <dshaw@jabberwocky.com>
6532 * trustdb.c (mark_usable_uid_certs): Fix segfault from bad
6533 initialization and fix reversed key signature expiration check.
6535 2001-11-09 Werner Koch <wk@gnupg.org>
6537 * export.c (do_export_stream): Put all given names into a search
6538 description and change the loop so that all matching names are
6541 2001-11-08 Werner Koch <wk@gnupg.org>
6543 * pubkey-enc.c (get_it): To reduce the number of questions on the
6544 MLs print the the name of cipher algorithm 1 with the error message.
6546 * mainproc.c: Changed the way old rfc1991 encryption cipher is
6547 selected. Based on a patch by W Lewis.
6549 * pkclist.c (do_edit_ownertrust): Allow to skip over keys, the non
6550 working "show info" is now assigned to "i"
6551 * trustdb.c (ask_ownertrust, validate_keys): Implement a real quit
6552 here. Both are by David Shaw.
6554 * trustdb.c (validate_keys): Make sure next_exipire is initialized.
6556 * sign.c (make_keysig_packet): Use SHA-1 with v4 RSA keys.
6558 * g10.c, options.h : New option --[no-]froce-v4-certs.
6559 * sign.c (make_keysig_packet): Create v4 sigs on v4 keys even with
6560 a v3 key. Use that new option. By David Shaw
6562 * revoke.c (ask_revocation_reason): Allow to select "no reason".
6565 * keyid.c (fingerprint_from_sk): Calculation of an v3 fpr was
6566 plain wrong - nearly the same code in fingerprint_from_pk is correct.
6568 * build-packet.c (do_secret_key): Added a few comments to the code.
6570 2001-11-07 Werner Koch <wk@gnupg.org>
6572 * g10.c (main): Print a warning when -r is used w/o encryption.
6573 Suggested by Pascal Scheffers.
6575 2001-10-23 Werner Koch <wk@gnupg.org>
6577 * keyedit.c (keyedit_menu): Changed helptext for showpref
6578 command. Suggested by Reinhard Wobst.
6580 * keyring.c (keyring_search): When marking the offtbl ready, take
6581 into account that we may have more than one keyring.
6583 2001-10-22 Werner Koch <wk@gnupg.org>
6585 * Makefile.am: Do not use OMIT_DEPENDENCIES
6587 * build-packet.c (build_sig_subpkt): Default is now to put all
6588 types of subpackets into the hashed area and only list those which
6589 should go into the unhashed area.
6591 2001-10-18 Werner Koch <wk@gnupg.org>
6593 * keydb.c (keydb_add_resource): Rearranged the way we keep track
6594 of the resource. There will now be an entry for each keyring here
6595 and not in keyring.c itself. Store a token to allow creation of a
6596 keyring handle. Changed all functions to utilize this new design.
6597 (keydb_locate_writable): Make a real implementation.
6598 * keyring.c (next_kr): Removed and changed all callers to set the
6599 resource directly from the one given with the handle.
6600 (keyring_is_writable): New.
6601 (keyring_rebuild_cache): Add an arg to pass the token from keydb.
6603 2001-10-17 Werner Koch <wk@gnupg.org>
6605 * keyring.c (keyring_search): Enabled word search mode but print a
6606 warning that it is buggy.
6608 2001-10-11 Werner Koch <wk@gnupg.org>
6610 * hkp.c (hkp_ask_import): No more need to set the port number for
6612 (hkp_export): Ditto.
6614 2001-10-06 Stefan Bellon <sbellon@sbellon.de>
6616 * passphrase.c [__riscos__]: Disabled agent specific stuff.
6617 * g10.c: New option --no-force-v3-sigs.
6619 2001-10-04 Werner Koch <wk@gnupg.org>
6621 * export.c (do_export_stream): Do not push the compress filter
6622 here because the context would run out of scope due to the
6623 iobuf_close done by the caller.
6624 (do_export): Do it here instead.
6626 2001-09-28 Werner Koch <wk@gnupg.org>
6628 * keyedit.c (sign_uids): Always use the primary key to sign keys.
6629 * getkey.c (finish_lookup): Hack to return only the primary key if
6630 a certification key has been requested.
6632 * trustdb.c (cmp_kid_for_make_key_array): Renamed to
6633 (validate_one_keyblock): this and changed arg for direct calling.
6634 (make_key_array): Renamed to
6635 (validate_one_keyblock): this and changed args for direct calling.
6636 (mark_usable_uid_certs, validate_one_keyblock)
6637 (validate_key_list): Add next_expire arg to keep track of
6639 (validate_keys): Ditto for UTKs and write the stamp.
6641 * tdbio.c (migrate_from_v2): Check return code of tbdio_sync.
6643 * tdbdump.c (import_ownertrust): Do a tdbio_sync().
6645 * keyring.c: Made the offtbl an global object.
6647 2001-09-27 Werner Koch <wk@gnupg.org>
6649 * pkclist.c (do_edit_ownertrust): Allow settin of ultimate trust.
6651 * trustdb.c (mark_keyblock_seen): New.
6652 (make_key_array): Use it to mark the subkeys too.
6653 (validate_keys): Store validity for ultimatly trusted keys.
6655 2001-09-26 Werner Koch <wk@gnupg.org>
6657 * pkclist.c (check_signatures_trust, do_we_trust): Removed the
6658 invocation of add_ownertrust. Minor changes to the wording.
6659 (add_ownertrust, add_ownertrust_cb): Removed.
6661 * trustdb.c (get_validity): Allow to lookup the validity using a
6664 * trustdb.c (new_key_hash_table): Increased the table size to 1024
6665 and changed the masks accordingly.
6666 (validate): Changed stats printing.
6667 (mark_usable_uid_certs): New.
6668 (cmp_kid_for_make_key_array): Does now check the signatures and
6669 figures out a usable one.
6671 2001-09-25 Werner Koch <wk@gnupg.org>
6673 * keyring.c (new_offset_item,release_offset_items)
6674 (new_offset_hash_table, lookup_offset_hash_table)
6675 (update_offset_hash_table, update_offset_hash_table_from_kb): New.
6676 (keyring_search): Use a offset table to optimize search for
6678 (keyring_update_keyblock, keyring_insert_keyblock): Insert new
6680 * getkey.c (MAX_UNK_CACHE_ENTRIES): Removed the unknown keys
6683 * g10.c, options.h, import.c: Removed the entire
6684 allow-secret-key-import stuff because the validity is now
6685 controlled by other means.
6687 * g10.c: New command --rebuild-keydb-caches.
6688 * keydb.c (keydb_rebuild_caches): New.
6689 * keyring.c (do_copy): Moved some code to
6690 (create_tmp_file, rename_tmp_file, write_keyblock): new functions.
6691 (keyring_rebuild_cache): New.
6693 * packet.h (PKT_ring_trust): Add sigcache field.
6694 * parse-packet.c (parse_trust): Parse sigcache.
6695 * keyring.c (do_copy): Always insert a sigcache packet.
6696 (keyring_get_keyblock): Copy the sigcache packet to the signature.
6697 * sig-check.c (cache_sig_result): Renamed from
6698 cache_selfsig_result. Changed implementation to use the flag bits
6699 and changed all callers.
6700 (mdc_kludge_check): Removed this unused code.
6701 (do_check): Do not set the sig flags here.
6703 * import.c (read_block): Make sure that ring_trust packets are
6705 * export.c (do_export_stream): and never export them.
6707 * trustdb.c (make_key_array): Skip revoked and expired keys.
6709 2001-09-24 Werner Koch <wk@gnupg.org>
6711 * g10.c, options.h: New option --no-auto-check-trustdb.
6713 * keygen.c (do_generate_keypair): Set newly created keys to
6716 * tdbio.h, tdbio.c: Removed all support for records DIR, KEY, UID,
6717 PREF, SIG, SDIR and CACH. Changed migration function to work
6719 (tdbio_read_nextcheck): New.
6720 (tdbio_write_nextcheck): New.
6722 2001-09-21 Werner Koch <wk@gnupg.org>
6724 Revamped the entire key validation system.
6725 * trustdb.c: Complete rewrite. No more validation on demand,
6726 removed some functions, adjusted to all callers to use the new
6727 and much simpler interface. Does not use the LID anymore.
6728 * tdbio.c, tdbio.h: Add new record types trust and valid. Wrote a
6729 migration function to convert to the new trustdb layout.
6730 * getkey.c (classify_user_id2): Do not allow the use of the "#"
6732 * keydb.h: Removed the TDBIDX mode add a skipfnc to the
6734 * keyring.c (keyring_search): Implemented skipfnc.
6736 * passphrase.c (agent_open): Add missing bracket. Include windows.h.
6738 2001-09-19 Werner Koch <wk@gnupg.org>
6740 * keylist.c (print_fingerprint): Renamed from fingerprint, made
6741 global available. Added new arg to control the print style.
6742 * mainproc.c (print_fingerprint): Removed.
6743 * pkclist.c (print_fpr, fpr_info): Removed and changed callers to
6744 use print_fingerprint.
6745 * keyedit.c (show_fingerprint): Ditto.
6747 * passphrase.c (writen, readn)
6748 (agent_open, agent_close)
6749 (agent_get_passphrase)
6750 (passphrase_clear_cache): Support for W32. Contributed by Timo.
6752 * import.c (import_one): Release keydb handles at 2 more places.
6754 * keyring.c (keyring_release): Close the iobuf.
6755 (keyring_get_keyblock): Init ret_kb to NULL and store error contidion.
6757 * import.c (import_new_stats_handle): New.
6758 (import_release_stats_handle): New.
6759 (import_print_stats): Renamed from static fnc print_stats.
6760 (import_keys, import_keys_stream): Add an optional status handle
6761 arg and changed all callers.
6762 * hkp.c (hkp_ask_import): Add an stats_handle arg and changed all
6765 * mainproc.c (print_pkenc_list): Use print_utf8_string2().
6767 2001-09-18 Werner Koch <wk@gnupg.org>
6769 * g10.c: New command --refresh-keys.
6770 * hkp.c (hkp_refresh_keys): New. Contributed by Timo Schulz.
6772 * parse-packet.c (parse): Stop on impossible packet lengths.
6774 2001-09-17 Werner Koch <wk@gnupg.org>
6776 * mainproc.c (print_notation_data): Wrap notation data status lines
6779 * mainproc.c (proc_pubkey_enc): Make option try-all-secrets work.
6780 By disastry@saiknes.lv.
6782 2001-09-14 Werner Koch <wk@gnupg.org>
6784 * parse-packet.c (dump_sig_subpkt): List key server preferences
6785 and show the revocable flag correctly. Contributed by David Shaw.
6787 2001-09-09 Werner Koch <wk@gnupg.org>
6789 * keyedit.c (keyedit_menu): No need to define another p.
6791 * keylist.c (print_capabilities): s/used/use/ so that it
6792 does not shadow a global.
6793 * sign.c (sign_file): Renamed arg encrypt to encryptflag
6794 * keygen.c: Replaced all "usage" by "use".
6795 * misc.c (openpgp_pk_algo_usage): Ditto.
6797 * pubkey-enc.c (get_it): Renamed arg k to enc so that the later
6798 defined k does not shadow it.
6800 * parse-packet.c (parse_gpg_control): No need to define another i.
6802 * getkey.c (get_pubkey_byfprint): Must use the enum values and not
6804 * keyring.c (keyring_search): Removed a non-sense break. Both
6805 bugs pointed out by Stefan.
6807 2001-09-07 Werner Koch <wk@gnupg.org>
6809 * status.c, status.h: Added NO_RECP and ALREADY_SIGNED.
6810 * pkclist.c (build_pk_list): Issue NO_RECP.
6811 * keyedit.c (sign_uids): Added experimental ALREADY_SIGNED
6813 * hkp.c (hkp_import): Use log_error. Bug reported by Neal H
6816 * getkey.c (classify_user_id2): Change args to take the desc union
6817 direct. It was a stupid idea to pass the individual fields of an
6818 union to this function. Changed all callers.
6819 (classify_user_id): Ditto and allow to pass NULL as the description.
6821 2001-09-06 Werner Koch <wk@gnupg.org>
6823 * getkey.c (fixup_uidnode): Features flag is now a bit vector.
6824 * keygen.c (add_feature_mdc): Ditto.
6826 Revamped the entire key I/O code to be prepared for other ways of
6827 key storages and to get rid of the existing shit. GDBM support has
6830 * keyring.c, keyring.h: New.
6831 * ringedit.c: Removed. Moved some stuff to keyring.c
6832 * getkey.c: Changed everything related to the key retrieving
6833 functions which are now using the keydb_ functions.
6834 (prepare_search, word_match_chars, word_match)
6835 (prepare_word_match, compare_name): Moved to keyring.c
6836 (get_pubkey_byname): Removed ctx arg and add ret_kdbhd
6837 arg. Changed all callers.
6838 (key_byname): Use get_pubkey_end to release the context and take
6839 new ret_kbdhd arg. Changed all callers.
6840 (classify_user_id2): Fill the 16 byte fingerprint up with 4 null
6841 bytes not with zero bytes of value 4, tsss.
6842 * import.c (import_one): Updated to use the new keydb interface.
6843 (import_secret_one): Ditto.
6844 (import_revoke_cert): Ditto.
6845 * delkey.c (do_delete_key): Ditto.
6846 * keyedit.c (keyedit_menu): Ditto.
6847 (get_keyblock_byname): Removed.
6848 * revoke.c (gen_revoke): Ditto.
6849 * export.c (do_export_stream): Ditto.
6850 * trustdb.c (update_trustdb): Ditto.
6851 * g10.c, gpgv.c (main): Renamed add_keyblock_resource to
6853 * Makefile.am: Added and removed files.
6855 * keydb.h: Moved KBNODE typedef and MAX_FINGERPRINT_LEN to
6856 * global.h: this new header.
6858 2001-09-03 Werner Koch <wk@gnupg.org>
6860 * passphrase.c (agent_get_passphrase): Changed nread to size_t.
6861 (passphrase_clear_cache): Ditto.
6863 * keyid.c (mk_datestr): Avoid trigraphs.
6864 (fingerprint_from_pk): Cache the keyid in the pk.
6866 * options.h: Add opt.with_fingerprint so that we know whether the
6867 corresponding options was used.
6868 * g10.c (main): Set it here.
6869 * pkclist.c (check_signatures_trust): Always print fingerprint
6870 when this option is used. Mixed a minor memory leak.
6872 * status.c, status.h: New status INV_RECP.
6873 * pkclist.c (build_pk_list): Issue this status.
6875 2001-08-31 Werner Koch <wk@gnupg.org>
6877 * parse-packet.c (parse_key,parse_pubkeyenc)
6878 (parse_signature): Return error on reading bad MPIs.
6880 * mainproc.c (check_sig_and_print): Always print the user ID even
6881 if it is not bound by a signature. Use the primary UID in the
6882 status messages and encode them in UTF-8
6883 * status.c (write_status_text_and_buffer): New.
6885 2001-08-30 Werner Koch <wk@gnupg.org>
6887 * packet.h (sigsubpkttype_t): Add SIGSUBPKT_FEATURES.
6888 (PKT_public_key, PKT_user_id): Add a flag for it.
6889 * parse-packet.c, build-packet.c: Add support for them.
6890 * getkey.c (fixup_uidnode, merge_selfsigs): Set the MDC flags.
6891 * keygen.c (add_feature_mdc): New.
6892 (keygen_upd_std_prefs): Always set the MDC feature.
6893 * keyedit.c (show_prefs): List the MDC flag
6894 * pkclist.c (select_mdc_from_pklist): New.
6895 * encode.c (encode_crypt, encrypt_filter): Test whether MDC
6897 * cipher.c (write_header): Set MDC use depending on the above test.
6898 Print more status info.
6900 * delkey.c (do_delete_key): Kludge to delete a secret key with no
6901 public key available.
6903 * ringedit.c (find_secret_keyblock_direct): New.
6904 * getkey.c (seckey_available): Simplified.
6906 * ringedit.c (cmp_seckey): Now compares the secret key against the
6907 public key while ignoring all secret parts.
6908 (keyring_search): Use a public key packet as arg. Allow to search
6910 (search): Likewise. Changed all callers.
6911 (find_secret_keyblock_bypk): New.
6912 (find_secret_keyblock_byname): First locate the pubkey and then
6913 find the correponding secret key.
6914 * parse-packet.c (parse): Renamed pkttype arg to onlykeypkts and
6915 changed code accordingly. Changed all callers.
6916 (search_packet): Removed pkttype arg.
6917 * keyedit.c (keyedit_menu): First locate the public key and then
6918 try to locate a secret key.
6920 * ringedit.c (locate_keyblock_by_fpr): Removed.
6921 (locate_keyblock_by_keyid): Removed.
6922 (find_keyblock_bysk): Removed.
6924 * sig-check.c (check_key_signature2): Print the keyid along with
6925 the wrong sig class errors.
6927 2001-08-24 Werner Koch <wk@gnupg.org>
6929 * sign.c (sign_file): Stripped the disabled comment packet code.
6930 (sign_file, sign_symencrypt_file): Moved common code to ..
6931 (write_onepass_sig_packets): .. this new function.
6932 (sign_file, clearsign_file, sign_symencrypt_file): Moved common
6934 (write_signature_packets): this new function.
6935 (write_signature_packets, make_keysig_packet)
6936 (update_keysig_packet): Moved common code to
6937 (hash_uid, hash_sigclass_to_magic): these new functions
6938 (sign_file, sign_symencrypt_file): Moved common code to
6939 (write_plaintext_packet): this new function.
6941 2001-08-21 Stefan Bellon <sbellon@sbellon.de>
6943 * trustdb.c (query_trust_info): Changed trustlevel to signed int.
6944 * g10.c [__riscos__]: Fixed handling of --use-agent --lock-multiple.
6946 2001-08-20 Werner Koch <wk@gnupg.org>
6948 * encr-data.c (decrypt_data): Keep track on whether we already
6949 printed information about the used algorithm.
6950 * mainproc.c (proc_encrypted): Removed the non-working IDEA hack
6951 and print a message about the assumed algorithm.
6952 * passphrase.c (passphrase_to_dek): Use the same algorithm as above.
6953 (proc_symkey_enc): Print the algorithm, so that the user knows it
6954 before entering the passphrase.
6955 (proc_pubkey_enc, proc_pubkey_enc): Zero the DEK out.
6956 * encode.c (encode_crypt, encrypt_filter): Ditto.
6958 * g10.c: Allow for --sign --symmetric.
6959 * sign.c (sign_and_symencrypt): New.
6961 Applied patches from Stefan Bellon <sbellon@sbellon.de> to support
6962 RISC OS. Nearly all of these patches are identified by the
6964 * compress.c: Added a couple of casts.
6965 * g10.c [__riscos__]: Some patches and new options foo-file similar
6966 to all foo-fd options.
6967 * gpgv.c, openfile.c, ringedit.c, tdbio.c: Minor fixes. Mainly
6968 replaced hardcoded path separators with EXTSEP_S like macros.
6969 * passprase.c [__riscos__]: Disabled agent stuff
6970 * trustdb.c (check_trust): Changed r_trustlevel to signed int to
6971 avoid mismatch problems in pkclist.c
6972 * pkclist.c (add_ownertrust): Ditto.
6973 * plaintext.c (handle_plaintext) [__riscos__]: Print a note when
6974 file can't be created.
6975 * options.h [__riscos__]: Use an extern unless included from the
6977 * signal.c (got_fatal_signal) [__riscos__]: Close all files.
6979 2001-08-14 Werner Koch <wk@gnupg.org>
6981 * keygen.c (ask_algo): New arg r_usage. Allow for RSA keys.
6982 (gen_rsa): Enabled the code.
6983 (do_create): Enabled RSA branch.
6984 (parse_parameter_usage): New.
6985 (proc_parameter_file): Handle usage parameter.
6986 (read_parameter_file): Ditto.
6987 (generate_keypair): Ditto.
6988 (generate_subkeypair): Ditto.
6989 (do_generate_keypair): Ditto.
6990 (do_add_key_flags): New.
6991 (keygen_add_std_prefs): Use the new function.
6992 (keygen_add_key_flags_and_expire): New.
6993 (write_selfsig, write_keybinding): Handle new usage arg.
6994 * build-packet.c (build_sig_subpkt): Make sure that key flags go
6995 into the hashed area.
6997 * keygen.c (write_uid): Initialize the reference cunter.
6999 * keyedit.c (keyedit_menu): No more need to update the trustdb for
7000 preferences. Added calls to merge keblock.
7002 * kbnode.c (dump_kbnode): Print some more flags.
7004 2001-08-10 Werner Koch <wk@gnupg.org>
7006 Revamped the preference handling.
7008 * packet.h (prefitem_t, preftype_t): New.
7009 (PKT_public_key): Added a uid field.
7010 (PKT_user_id): Added field to store preferences and a reference
7012 * parse-packet.c (parse_user_id,parse_photo_id): Initialize them
7013 * free-packet.c (free_user_id): Free them.
7014 (copy_user_id): Removed.
7015 (scopy_user_id): New.
7016 (cmp_user_ids): Optimized for identical pointers.
7017 (release_public_key_parts): Release the uid.
7018 (copy_public_key_with_new_namehash): Removed.
7020 * keyedit.c (menu_adduid): Use the new shallow copy user id.
7021 (show_prefs): Adjusted implementation.
7022 (keyedit_menu): No more need to update the trustdb after changing
7024 * getkey.c (fixup_uidnode): Store preferences.
7025 (find_by_name): Return a user id packet and remove namehash stuff.
7026 (lookup): Removed the unused namehash stuff.
7027 (finish_lookup): Added foundu arg.
7028 (pk_from_block): Removed the namehash arg and changed all callers.
7029 (merge_selfsigs): Copy prefs to all keys.
7030 * trustdb.c (get_pref_data): Removed.
7031 (is_algo_in_prefs): Removed.
7032 (make_pref_record): Deleted and removed all class.
7033 * pkclist.c (select_algo_from_prefs): Adjusted for the new
7034 preference implementation.
7035 * pubkey-enc.c (is_algo_in_prefs): New.
7036 (get_it): Use that new function.
7038 2001-08-09 Werner Koch <wk@gnupg.org>
7040 * build-packet.c (build_sig_subpkt): Fixed calculation of
7043 * g10.c (main): New option "--preference-list"
7044 * keyedit.c (keyedit_menu): New commands "setpref" and "updpref".
7045 (menu_set_preferences): New.
7046 * keygen.c (keygen_set_std_prefs): New.
7047 (set_one_pref): New.
7048 (check_zip_algo): New.
7049 (keygen_get_std_prefs): New.
7050 (keygen_upd_std_prefs): New
7051 (keygen_add_std_prefs): Move the pref setting code into the above fnc.
7052 * build-packet.c (build_sig_subpkt): Updated the list of allowed
7053 to update subpackets.
7055 2001-08-08 Werner Koch <wk@gnupg.org>
7057 * packet.h (subpktarea_t): New.
7058 (PKT_signature): Use that type for hashed_data and unhashed_data and
7059 removed the _data prefix from those fields. Changed all users.
7060 * parse-packet.c (parse_signature): Changed allocation for that.
7061 (parse_sig_subpkt): Changed declaration
7062 (enum_sig_subpkt): Ditto and changed implementation accordingly.
7063 * free-packet.c (cp_subpktarea): Renamed from cp_data_block and
7064 adjusted implementation. Changed caller.
7065 * sig-check.c (mdc_kludge_check): Adjusted the hashing.
7067 * sign.c (sign_file, clearsign_file, make_keysig_packet,
7068 update_keysig_packet): Ditto.
7069 * build-packet.c (build_sig_subpkt): Partial rewrite.
7070 (find_subpkt): Adjusted and made static.
7071 (delete_sig_subpkt): Adjusted.
7072 (do_signature): Ditto.
7074 * keygen.c (ask_keysize): Do not print the notes about suggested
7075 key sizes if just a DSA key is generated.
7077 * trustdb.c (add_ultimate_key): s/log_error/log_info/ for
7078 duplicated inserted trusted keys.
7080 2001-08-07 Werner Koch <wk@gnupg.org>
7082 * sign.c (sleep): Redefine for W32.
7084 * g10.c, options.h: Set new flag opt.no_homedir_creation when
7085 --no-options is given.
7086 * openfile.c (try_make_homedir): Don't create the homedir in that case.
7088 2001-08-03 Werner Koch <wk@gnupg.org>
7090 * armor.c (armor_filter): Removed the default comment string
7091 because it could get us in trouble due to translations using non
7094 2001-08-01 Werner Koch <wk@gnupg.org>
7096 * keylist.c (list_keyblock_print): Do not list revoked UIDs unless
7097 in verbose mode and we do no signature listing.
7099 * getkey.c (finish_lookup): Skip subkeys which are not yet valid.
7100 * g10.c, options.h: New option --ignore-valid-from.
7102 * sign.c (make_keysig_packet): Added new sigversion argument to
7103 allow the caller to force generation of required signature
7104 version. Changed all callers. Suggested by Thomas Roessler.
7106 * keyedit.c (sign_uids): Force v4 signature generation for local
7107 sigs. Removed the check for local signature and pre-v4 keys.
7109 2001-07-27 Werner Koch <wk@gnupg.org>
7111 * keyedit.c (sign_uids): Check that we are not trying to to a
7112 lsign with a pre-v4 key. Bug noticed by Thomas Roessler.
7114 2001-07-26 Werner Koch <wk@gnupg.org>
7116 * parse-packet.c (parse_photo_id): Reset all variables.
7117 * getkey.c (merge_selfsigs_main): Removed checks on PHOTO_ID
7118 because this is handled identically to a user ID.
7120 2001-07-06 Werner Koch <wk@gnupg.org>
7122 * cipher.c (write_header): Don't use MDC with --rfc1991. Suggested
7123 by disastry@saiknes.lv.
7125 2001-07-05 Werner Koch <wk@gnupg.org>
7127 * g10.c, options.h: New option --preserve-permissions.
7128 * ringedit.c (add_keyblock_resource): Use it here
7129 (keyring_copy): and here.
7131 * trustdb.c (verify_own_keys): Be more silent on --quiet.
7132 Suggested by Thomas Roessler.
7133 * sig-check.c (check_key_signature2): Ditto.
7134 * mainproc.c (proc_encrypted, proc_tree): Ditto
7135 * getkey.c (lookup): Ditto.
7137 2001-07-04 Werner Koch <wk@gnupg.org>
7139 * ringedit.c (add_keyblock_resource): Restore filename in case of error.
7141 2001-06-25 Werner Koch <wk@gnupg.org>
7143 * kbnode.c (dump_kbnode): Print the signature timestamp.
7145 * keyedit.c (keyedit_menu): New menu point "primary".
7146 (change_primary_uid_cb): New.
7147 (menu_set_primary_uid): New.
7148 * sign.c (update_keysig_packet): New.
7149 * build-packet.c (build_sig_subpkt): Put the primary UID flag into
7150 the hashed area. Allow update of some more packets.
7152 2001-06-15 Werner Koch <wk@gnupg.org>
7154 * getkey.c (merge_selfsigs): Exit gracefully when a secret key is
7155 encountered. May happen if a secret key is in public keyring.
7156 Reported by Francesco Potorti.
7158 2001-06-12 Werner Koch <wk@gnupg.org>
7160 * getkey.c (compare_name): Use ascii_memistr(), ascii_memcasecmp()
7161 * keyedit.c (keyedit_menu): Use ascii_strcasecmp().
7162 * armor.c (radix64_read): Use ascii_toupper().
7163 * ringedit.c (do_bm_search): Ditto.
7164 * keygen.c (read_parameter_file): Ditto.
7165 * openfile.c (CMP_FILENAME): Ditto.
7166 * g10.c (i18n_init): We can now use just LC_ALL.
7168 2001-05-29 Werner Koch <wk@gnupg.org>
7170 * keygen.c (generate_subkeypair): Print a warning if a subkey is
7171 created on a v3 key. Suggested by Brian M. Carlson.
7173 2001-05-27 Werner Koch <wk@gnupg.org>
7175 * keyid.c (get_lsign_letter): New.
7176 * keylist.c (list_keyblock_colon): Use it here.
7177 * mainproc.c (list_node): and here.
7179 * getkey.c, packet.h, free-packet.c: Removed that useless key
7180 created field; I dunno why I introducded this at all - the
7181 creation time is always bound to the key packet and subject to
7182 fingerprint calculation etc.
7184 * getkey.c (fixup_uidnode): Add keycreated arg and use this
7185 instead of the signature timestamp to calculate the
7186 help_key_expire. Bug reported by David R. Bergstein.
7187 (merge_selfsigs_main): Correct key expiration time calculation.
7188 (merge_selfsigs_subkey): Ditto.
7190 2001-05-25 Werner Koch <wk@gnupg.org>
7192 * revoke.c (gen_revoke): Add a cast to a tty_printf arg.
7193 * delkey.c (do_delete_key): Ditto.
7194 * keyedit.c (print_and_check_one_sig): Ditto.
7195 (ask_revoke_sig): Ditto.
7196 (menu_revsig): Ditto.
7197 (check_all_keysigs): Removed unused arg.
7199 2001-05-23 Werner Koch <wk@gnupg.org>
7201 * g10.c (opts): Typo fix by Robert C. Ames.
7203 2001-05-06 Werner Koch <wk@gnupg.org>
7205 * revoke.c: Small typo fix
7207 2001-05-04 Werner Koch <wk@gnupg.org>
7209 * passphrase.c (passphrase_clear_cache): Shortcut if agent usage
7212 2001-05-01 Werner Koch <wk@gnupg.org>
7214 * passphrase.c (writen): Replaced ssize_t by int. Thanks to
7215 to Robert Joop for reporting that SunOS 4.1.4 does not have it.
7217 2001-04-28 Werner Koch <wk@gnupg.org>
7219 * getkey.c (merge_public_with_secret): pkttype was not set to subkey.
7221 2001-04-27 Werner Koch <wk@gnupg.org>
7223 * skclist.c (build_sk_list): Changed one log_debug to log_info.
7225 2001-04-25 Werner Koch <wk@gnupg.org>
7227 * keyedit.c (show_prefs): Add a verbose mode.
7228 (show_key_with_all_names): Pass verbose flag for special value of
7230 (keyedit_menu): New command "showpref"
7231 (show_key_with_all_names): Mark revoked uids and the primary key.
7233 2001-04-24 Werner Koch <wk@gnupg.org>
7235 * getkey.c (get_primary_uid): Return a different string in case of
7236 error and made it translatable.
7238 * build-packet.c (do_secret_key): Ugly, we wrote a zero
7239 instead of the computed ndays. Thanks to M Taylor for complaining
7240 about a secret key import problem.
7242 2001-04-23 Werner Koch <wk@gnupg.org>
7244 * hkp.c (hkp_ask_import): Allow to specify a port number for the
7245 keyserver. Add a kudge to set the no_shutdown flag.
7246 (hkp_export): Ditto.
7247 * options.skel: Document the changes
7249 2001-04-20 Werner Koch <wk@gnupg.org>
7251 * options.skel: Add some more comments.
7253 2001-04-19 Werner Koch <wk@gnupg.org>
7255 * keyid.c (mk_datestr): New. Handles negative times. We must do
7256 this because Windoze segvs on negative times passed to gmtime().
7257 Changed all datestr_from function to use this one.
7259 * keyid.c, keyid.h (colon_strtime): New. To implement the
7261 (colon_datestr_from_pk): New.
7262 (colon_datestr_from_sk): New.
7263 (colon_datestr_from_sig): New.
7264 * keylist.c (list_keyblock_colon): Use these functions here.
7265 * mainproc.c (list_node): Ditto.
7267 2001-04-18 Werner Koch <wk@gnupg.org>
7269 * openfile.c (open_sigfile): Fixed the handling of ".sign".
7270 * mainproc.c (proc_tree): Use iobuf_get_real_fname.
7271 Both are by Vincent Broman.
7273 2001-04-14 Werner Koch <wk@gnupg.org>
7275 * getkey.c (fixup_uidnode): Removed check for !sig which is
7276 pointless here. Thanks to Jan Niehusmann.
7278 2001-04-10 Werner Koch <wk@gnupg.org>
7280 * sig-check.c (check_key_signature2): Use log_info instead of
7281 log_error so that messed up keys do not let gpg return an error.
7282 Suggested by Christian Kurz.
7284 * getkey.c (merge_selfsigs_main): Do a fixup_uidnode only if we
7285 have both, uid and sig. Thanks to M Taylor.
7287 2001-04-05 Werner Koch <wk@gnupg.org>
7289 * armor.c (unarmor_pump_new,unarmor_pump_release): New.
7290 (unarmor_pump): New.
7291 * pipemode.c (pipemode_filter): Use the unarmor_pump to handle
7292 armored or non-armored detached signatures. We can't use the
7293 regular armor_filter because this does only check for armored
7294 signatures the very first time. In pipemode we may have a mix of
7295 armored and binary detached signatures.
7296 * mainproc.c (proc_tree): Do not print the "old style" notice when
7297 this is a pipemode processes detached signature.
7298 (proc_plaintext): Special handling of pipemode detached sigs.
7300 * packet.h (CTRLPKT_PLAINTEXT_MARK): New.
7301 * parse-packet.c (create_gpg_control): New.
7302 * kbnode.c (dump_kbnode): Support it here.
7303 * mainproc.c (check_sig_and_print): Fixed the check for bad
7304 sequences of multiple signatures.
7305 (proc_plaintext): Add the marker packet.
7306 (proc_tree): We can now check multiple detached signatures.
7308 2001-04-02 Werner Koch <wk@gnupg.org>
7310 The length of encrypted packets for blocksizes != 8 was not
7311 correct encoded. I think this is a minor problem, because we
7312 usually use partial length packets. Kudos to Kahil D. Jallad for
7314 * packet.h: Add extralen to PKT_encrypted.
7315 * cipher.c (write_header): Set extralen.
7316 * build-packet.c (do_encrypted): Use extralen instead of const 10.
7317 (do_encrypted_mdc): Ditto.
7318 * parse-packet.c (parse_encrypted): Set extralen to 0 because we
7321 2001-03-30 Werner Koch <wk@gnupg.org>
7323 * getkey.c (premerge_public_with_secret): Changed wording an add
7324 the keyID to the info message.
7326 2001-03-29 Werner Koch <wk@gnupg.org>
7328 * getkey.c (premerge_public_with_secret): Use log_info instead of
7329 log_error when no secret key was found for a public one.
7330 Fix the usage if the secret parts of a key are not available.
7332 * openfile.c (ask_outfile_name): Trim spaces.
7333 (open_outfile): Allow to enter an alternate filename. Thanks to
7335 * plaintext.c (handle_plaintext): Ditto.
7337 2001-03-28 Werner Koch <wk@gnupg.org>
7339 * mainproc.c (do_check_sig): Allow direct key and subkey
7340 revocation signature.
7341 * sig-check.c (check_key_signature2): Check direct key signatures.
7342 Print the signature class along with an error.
7344 2001-03-27 Werner Koch <wk@gnupg.org>
7346 * packet.h: Add a missing typedef to an enum. Thanks to Stefan Bellon.
7348 * g10.c: New option --no-sig-create-check.
7349 * sign.c (do_sign): Implement it here.
7350 * g10.c: New option --no-sig-cache.
7351 * sig-check.c (check_key_signature2): Implement it here.
7352 (cache_selfsig_result): and here.
7354 * keylist.c (list_keyblock): Removed debugging stuff.
7356 * getkey.c (cache_public_key): Made global.
7357 * keygen.c (write_selfsig, write_keybinding): Cache the new key.
7359 * getkey.c (key_byname): Add new arg secmode and changed all
7360 callers to request explicitly the mode. Deriving this information
7361 from the other supplied parameters does not work if neither pk nor
7364 2001-03-25 Werner Koch <wk@gnupg.org>
7366 * packet.h (ctrlpkttype_t): New.
7367 * mainproc.c (add_gpg_control,proc_plaintext,proc_tree): Use the
7369 * pipemode.c (make_control): Ditto.
7370 * armor.c (armor_filter): Ditto.
7372 2001-03-24 Werner Koch <wk@gnupg.org>
7374 * sign.c (do_sign): Verify the signature right after creation.
7376 2001-03-23 Werner Koch <wk@gnupg.org>
7378 * status.c, status.h (STATUS_UNEXPECTED): New.
7379 * mainproc.c (do_proc_packets): And emit it here.
7381 2001-03-21 Werner Koch <wk@gnupg.org>
7383 * status.c: Add sys/types.h so that it runs on Ultrix. Reported
7386 * build-packet.c (build_sig_subpkt): Fixed generaton of packet
7387 length header in case where 2 bytes headers are needed. Thanks to
7390 2001-03-19 Werner Koch <wk@gnupg.org>
7392 * g10.c (main): the default keyring is no always used unless
7393 --no-default-keyring is given.
7395 * ringedit.c (add_keyblock_resource): invalidate cache after file
7398 2001-03-15 Werner Koch <wk@gnupg.org>
7400 * keygen.c (ask_algo): Changed the warning of the ElGamal S+E Algo.
7402 * keylist.c (print_capabilities): New.
7403 (list_keyblock_colon): and use it here.
7405 2001-03-13 Werner Koch <wk@gnupg.org>
7407 * main.c, options.h: New option --fixed_list_mode.
7408 * keylist.c (list_keyblock_colon): use it here.
7410 * getkey.c (merge_keys_and_selfsig): Divert merging of public keys
7411 to the function used in key selection..
7412 * keylist.c (is_uid_valid): Removed.
7413 (list_keyblock): Splitted into ..
7414 (list_keyblock_print, list_keyblock_colon): .. these.
7415 functions. Changed them to use the flags set in the key lookup code.
7416 (reorder_keyblock): New, so that primary user IDs are listed first.
7418 * ringedit.c (keyring_copy): flush the new iobuf chaces before
7419 rename or remove operations. This is mainly needed for W32.
7421 * hkp.c [HAVE_DOSISH_SYSTEM]: Removed the disabled code because we
7422 have now W32 socket support in ../util/http.c
7424 * skclist.c (key_present_in_sk_list): New.
7425 (is_duplicated_entry): New.
7426 (build_sk_list): Check for duplicates and do that before unlocking.
7428 2001-03-12 Werner Koch <wk@gnupg.org>
7430 * armor.c (parse_header_line): Removed double empty line check.
7431 (parse_header_line): Replaced trim_trailing_ws with a counting
7432 function so that we can adjust for the next read.
7434 * options.skel: Fixed 3 typos. By Thomas Klausner. Replaced the
7435 keyserver example by a better working server.
7437 * parse-packet.c (parse_symkeyenc): Return Invalid_Packet on error.
7438 (parse_pubkeyenc): Ditto.
7439 (parse_onepass_sig): Ditto.
7440 (parse_plaintext): Ditto.
7441 (parse_encrypted): Ditto.
7442 (parse_signature): Return error at other places too.
7444 * g10.c (main): Set opt.list_packets to another value when invoked
7445 with the --list-packets command.
7446 * mainproc.c (do_proc_packets): Don's stop processing when running
7447 under --list-packets command.
7449 * signal.c (do_sigaction): Removed.
7450 (init_one_signal): New to replace the above. Needed to support
7451 systems without sigactions. Suggested by Dave Dykstra.
7452 (got_fatal_signal,init_signals): Use the above here.
7453 (do_block): Use sigset() if sigprocmask() is not available.
7455 * armor.c (parse_hash_header): Test on TIGER192, which is the
7456 correct value as per rfc2440. By Edwin Woudt.
7458 2001-03-08 Werner Koch <wk@gnupg.org>
7460 * misc.c: Include time.h. By James Troup.
7462 * getkey.c: Re-enabled the unknown user Id and PK caches and
7463 increased their sizes.
7465 * getkey.c (merge_selfsigs_main): Set expire date and continue
7466 processing even if we found a revoked key.
7467 (merge_selfsigs_subkeys): Ditto.
7469 * packet.h: Add an is_revoked flag to the user_id packet.
7470 * getkey.c (fixup_uidnode): Set that flag here.
7471 (merge_selfsigs_main): Fix so that the latest signature is used to
7472 find the self-signature for an UID.
7473 * parse-packet.c (parse_user_id): Zero out all fields.
7474 * mainproc.c (check_sig_and_print): Print the primary user ID
7475 according the the node flag and then all other non-revoked user IDs.
7476 (is_uid_revoked): Removed; it is now handled by the key selection code.
7478 Changed the year list of all copyright notices.
7480 2001-03-07 Werner Koch <wk@gnupg.org>
7482 * getkey.c (finish_lookup): Print an info message only in verbose mode.
7484 2001-03-05 Werner Koch <wk@gnupg.org>
7486 * packet.h: Replaced sigsubpkt_t value 101 by PRIV_VERIFY_CACHE.
7487 We have never used the old value, so we can do this without any harm.
7488 * parse-packet.c (dump_sig_subpkt): Ditto.
7489 (parse_one_sig_subpkt): Parse that new sub packet.
7490 * build-packet.c (build_sig_subpkt): Removed the old one from the
7492 (delete_sig_subpkt): New.
7493 (build_sig_subpkt): Allow an update of that new subpkt.
7494 * sig-check.c (check_key_signature2): Add verification caching
7495 (cache_selfsig_result): New.
7496 * export.c (do_export_stream): Delete that sig subpkt before exporting.
7497 * import.c (remove_bad_stuff): New.
7498 (import): Apply that function to all imported data
7500 2001-03-03 Werner Koch <wk@gnupg.org>
7502 * getkey.c: Introduced a new lookup context flag "exact" and used
7503 it in all place where we once used primary.
7504 (classify_user_id2): Replaced the old function and add an extra
7505 argument to return whether an exact keyID has been requested.
7506 (key_byname): Removed the unused ctx.primary flag
7507 (get_seckey_byname2): Ditto.
7508 (finish_lookup): Changed debugging output.
7510 2001-03-02 Werner Koch <wk@gnupg.org>
7512 * keylist.c (list_one): Remove the merge key calls.
7514 2001-03-01 Werner Koch <wk@gnupg.org>
7516 * getkey.c (finish_lookup): Don't use it if we no specific usage
7518 (merge_selfsigs_main): fix UID only if we have an signature.
7519 (lookup): Return UNU_PUBKEY etc. instead of NO_PUBKEY if we found
7520 a key but the requested usage does not allow this key.
7521 * import.c (import_one): Take UNU_PUBKEY into account.
7522 * mainproc.c (list_node): Ditto.
7523 * keylist.c (list_keyblock): Ditto.
7524 * keyedit.c (print_and_check_one_sig): Ditto.
7526 2001-02-09 Werner Koch <wk@gnupg.org>
7528 * delkey.c (delete_key): Removed that silly assert which rendered
7529 the whole new stuff meaningless.
7531 2001-02-08 Werner Koch <wk@gnupg.org>
7533 * getkey.c (key_byname): It can happen that we have both, sk and pk
7536 * parse-packet.c (parse_one_sig_subpkt): Add support for
7537 primary_uid and key_flags.
7538 (can_handle_critical): Ditto
7540 * parse-packet.c (parse_encrypted): Fixed listing of pktlen for
7543 * getkey.c: Backported the version of this file from gpg 1.1. this
7544 involved some changes in other files too.
7545 * parse-packet.c (parse_key): Clear req_usage.
7546 * skclist.c (build_sk_list): Use req_usage to pass the usage
7547 information to the lookup function.
7548 * pkclist.c (build_pk_list): Ditto.
7549 * free-packet.c (copy_public_parts_to_secret_key): New.
7550 * keydb.h: Add IS_* macros to check the sig_class.
7551 * misc.c (openpgp_cipher_test_algo): New.
7552 (openpgp_pk_test_algo): New.
7553 (openpgp_pk_algo_usage): New.
7554 (openpgp_md_test_algo): New.
7555 * packet.h: Add a few fields to PKT_{public,secret}_key and
7557 * seckey-cert.c (do_check): Use the new main_keyid field.
7559 2001-02-04 Werner Koch <wk@gnupg.org>
7561 * encr-data.c (decrypt_data): Catch error when we had problems to
7562 parse the encrypted packet. By Timo.
7564 2001-01-29 Werner Koch <wk@gnupg.org>
7566 * g10.c (main): --batch does now set nogreeting.
7568 * delkey.c (do_delete_key): Fixed delete-both functionality.
7570 2001-01-22 Werner Koch <wk@gnupg.org>
7572 * g10.c: New command --delete-secret-and-public-key.
7573 * delkey.c (delete_key): Add new arg allow_both.
7574 (do_delete_key): Move most stuff from above to this new function.
7576 2001-01-12 Werner Koch <wk@gnupg.org>
7578 * passphrase.c (passphrase_to_dek): Use MD5 when IDEA is installed
7580 * mainproc.c (proc_encrypted): Likewise
7582 2001-01-11 Werner Koch <wk@gnupg.org>
7584 * sig-check.c (do_check): Print the signature key expire message
7585 only in verbose mode and added the keyID.
7587 2001-01-09 Werner Koch <wk@gnupg.org>
7589 * status.c, status.h: New status USERID_HINT.
7590 (write_status_text): Replace LF and CR int text by C-escape sequence.
7592 * passphrase.c (passphrase_to_dek): Fixed the NEED_PASSPHRASE
7593 output. It does now always print 2 keyIDs. Emit the new
7596 2001-01-08 Werner Koch <wk@gnupg.org>
7598 * g10.c, options.h: New option --no-expensive-trust-checks.
7599 * keylist.c (list_keyblock): Act on this option.
7601 2001-01-04 Werner Koch <wk@gnupg.org>
7603 * g10.c (main): Set homedir only in the pre-parsing phase and
7604 replace backslashes in the W32 version.
7606 2001-01-03 Werner Koch <wk@gnupg.org>
7608 * status.c, status.h : New status KEY_CREATED
7609 * keygen.c (do_generate_keypair,generate_subkeypair): Emit it.
7611 2000-12-28 Werner Koch <wk@gnupg.org>
7613 * signal.c (got_fatal_signal): Remove lockfiles here because the
7614 atexit stuff does not work due to the use of raise. Suggested by
7616 * gpgv.c (remove_lockfiles): New stub.
7618 2000-12-19 Werner Koch <wk@gnupg.org>
7620 * status.c, status.h (cpr_get_no_help): New.
7621 * keyedit.c (keyedit_menu): Use it here because we have our own
7624 2000-12-18 Werner Koch <wk@gnupg.org>
7626 * mainproc.c (print_failed_pkenc): Don't print the sometimes
7627 confusing message about unavailabe secret key. Renamed ...
7628 (print_pkenc_list): ... to this and introduced failed arg.
7629 (proc_encrypted): Print the failed encryption keys and then
7631 (proc_pubkey_enc): Store also the key we are going to use.
7633 * mainproc.c (check_sig_and_print): Don't list revoked user IDs.
7634 (is_uid_revoked): New.
7636 2000-12-08 Werner Koch <wk@gnupg.org>
7638 * pipemode.c: Made the command work. Currently only for
7639 non-armored detached signatures.
7640 * mainproc.c (release_list): Reset the new pipemode vars.
7641 (add_gpg_control): Handle the control packets for pipemode
7642 * status.c, status.h: New stati {BEGIN,END}_STREAM.
7644 2000-12-07 Werner Koch <wk@gnupg.org>
7646 * g10.c: New option --allow-secret-key-import.
7647 * import.c (import_keys,import_keys_stream): Honor this option.
7648 (import): New arg allow_secret and pass that arg down to ...
7649 (import_secret_one): to this and print a warning if secret key
7650 importing is not allowed.
7652 2000-12-05 Werner Koch <wk@gnupg.org>
7654 * cipher.c (cipher_filter): Moved the end_encryption status ...
7655 * encode.c (encode_simple,encode_crypt): to here
7656 * sign.c (sign_file): and here.
7658 * status.c (mywrite): Removed.
7659 (get_status_string): Removed the LFs from the strings.
7660 (set_status_fd,is_status_enabed,write_status_text,
7661 write_status_buffer): Replaced all mywrite by stdio calls and use
7662 fdopen to create a strem. This is needed to make things smoother
7665 2000-12-04 Werner Koch <wk@gnupg.org>
7667 * import.c (merge_blocks): Increment n_sigs for revocations.
7669 2000-11-30 Werner Koch <wk@gnupg.org>
7671 * g10.c (main): Use iobuf_translate_file_handle for all options
7672 with filehandles as arguments. This is function does some magic
7675 * verify.c (verify_signatures): Add a comment rant about the
7676 detached signature problem.
7677 * mainproc.c (proc_tree): Issue an error if a detached signature
7678 is assumed but a standard one was found.
7679 * plaintext.c (hash_datafiles): Don't fall back to read signature
7681 * openfile.c (open_sigfile): Print verbose message only if the
7682 file could be accessed.
7684 2000-11-24 Werner Koch <wk@gnupg.org>
7686 * passphrase.c [HAVE_DOSISH_SYSTEM]: Disabled all the agent stuff.
7688 2000-11-16 Werner Koch <wk@gnupg.org>
7690 * g10.c: New option --use-agent
7691 * passphrase.c (agent_open,agent_close): New.
7692 (agent_get_passphrase,agent_clear_passphrase): New.
7693 (passphrase_clear_cache): New.
7694 (passphrase_to_dek): Use the agent here.
7695 * seckey-cert.c (do_check): Clear cached passphrases.
7697 2000-11-15 Werner Koch <wk@gnupg.org>
7699 * status.c (write_status_text): Moved the big switch to ...
7700 (get_status_string): ... new function.
7701 (write_status_buffer): New.
7703 * status.c (mywrite): New and replaced all write() by this.
7705 * status.c, status.h: Add 3 status lcodes for notaions and policy.
7706 * mainproc.c (print_notation_data): Do status output of notations.
7708 2000-11-13 Werner Koch <wk@gnupg.org>
7710 * sign.c (clearsign_file): Use LF macro to print linefeed.
7712 2000-11-11 Paul Eggert <eggert@twinsun.com>
7714 Clean up the places in the code that incorrectly use "long" or
7715 "unsigned long" for file offsets. The correct type to use is
7716 "off_t". The difference is important on large-file hosts,
7717 where "off_t" is longer than "long".
7719 * keydb.h (struct keyblock_pos_struct.offset):
7720 Use off_t, not ulong, for file offsets.
7721 * packet.h (dbg_search_packet, dbg_copy_some_packets,
7722 search_packet, copy_some_packets): Likewise.
7723 * parse-packet.c (parse, dbg_search_packet, search_packet,
7724 dbg_copy_some_packets, copy_some_packets): Likewise.
7725 * ringedit.c (keyring_search): Likewise.
7727 * parse-packet.c (parse): Do not use %lu to report file
7728 offsets in error diagnostics; it's not portable.
7729 * ringedit.c (keyring_search): Likewise.
7731 2000-11-09 Werner Koch <wk@gnupg.org>
7733 * g10.c (main): New option --enable-special-filenames.
7735 2000-11-07 Werner Koch <wk@gnupg.org>
7737 * g10.c (main): New command --pipemode.
7740 2000-10-23 Werner Koch <wk@gnupg.org>
7742 * armor.c (armor_filter): Changed output of hdrlines, so that a CR
7743 is emitted for DOS systems.
7745 * keygen.c (read_parameter_file): Add a cast for isspace().
7747 * status.c (myread): Use SIGINT instead of SIGHUP for DOS.
7749 2000-10-19 Werner Koch <wk@gnupg.org>
7751 * g10.c: New option --ignore-crc-error
7752 * armor.c (invalid_crc): New.
7753 (radix64_read): Act on new option.
7755 * openfile.c (try_make_homedir): Klaus Singvogel fixed a stupid
7756 error introduced on Sep 6th.
7758 2000-10-18 Werner Koch <wk@gnupg.org>
7760 * misc.c (print_cipher_algo_note): Don't print the note for AES.
7763 2000-10-16 Werner Koch <wk@gnupg.org>
7765 * mainproc.c (do_proc_packets): Hack to fix the problem that
7766 signatures are not detected when there is a MDC packet but no
7769 * g10.c (print_hashline): New.
7770 (print_mds): Use above func with --with-colons.
7772 * mainproc.c (check_sig_and_print): Detect multiple signatures
7773 and don't verify them.
7775 2000-10-14 Werner Koch <wk@gnupg.org>
7777 * mainproc.c (add_onepass_sig): There is an easier solution to the
7778 error fixed yesterday; just check that we only have onepass
7779 packets. However, the other solution provides an cleaner
7780 interface and opens the path to get access to other information
7781 from the armore headers.
7782 (release_list): Reset some more variables.
7784 2000-10-13 Werner Koch <wk@gnupg.org>
7786 * mainproc.c (add_gpg_control): New.
7787 (do_proc_packets): use it.
7788 (proc_plaintext): Changed logic to detect clearsigns.
7789 (proc_tree): Check the cleartext sig with some new code.
7791 * packet.h: New packet PKT_GPG_CONTROL.
7792 * parse-packet.c (parse_gpg_control): New.
7793 * misc.c (get_session_marker): New.
7794 * armor.c (armor_filter): Replaced the faked 1-pass packet by the
7797 * keyedit.c (keyedit_menu): Allow batchmode with a command_fd.
7798 * status.c (my_read): New.
7799 (do_get_from_fd): use it.
7801 2000-10-12 Werner Koch <wk@gnupg.org>
7803 * keygen.c (keygen_add_std_prefs): Add Rijndael to the prefs.
7805 2000-10-07 Werner Koch <wk@gnupg.org>
7807 * gpgv.c: Add more stubs for ununsed code to make the binary smaller.
7809 Wed Oct 4 15:50:18 CEST 2000 Werner Koch <wk@openit.de>
7811 * sign.c (hash_for): New arg to take packet version in account, changed
7815 * Makefile.am: Rearranged source files so that gpgv can be build with
7816 at least files as possible.
7818 Mon Sep 18 12:13:52 CEST 2000 Werner Koch <wk@openit.de>
7820 * hkp.c (not_implemented): Print a notice for W32
7822 Fri Sep 15 18:40:36 CEST 2000 Werner Koch <wk@openit.de>
7824 * keygen.c (keygen_add_std_prefs): Changed order of preferences to
7825 twofish, cast5, blowfish.
7827 * pkclist.c (algo_available): Removed hack to disable Twofish.
7829 Thu Sep 14 17:45:11 CEST 2000 Werner Koch <wk@openit.de>
7831 * parse-packet.c (dump_sig_subpkt): Dump key flags. Print special
7832 warning in case of faked ARRs.
7834 * getkey.c (finsih_lookup): Hack so that for v4 RSA keys the subkey
7835 is used for encryption.
7837 Thu Sep 14 14:20:38 CEST 2000 Werner Koch <wk@openit.de>
7839 * g10.c (main): Default S2K algorithms are now SHA1 and CAST5 - this
7840 should solve a lot of compatibility problems with other OpenPGP
7841 apps because those algorithms are SHOULD and not optional. The old
7842 way to force it was by using the --openpgp option whith the drawback
7843 that this would disable a couple of workarounds for PGP.
7845 * g10.c (main): Don't set --quite along with --no-tty. By Frank Tobin.
7847 * misc.c (disable_core_dump): Don't display a warning here but a return
7848 a status value and ...
7849 * g10.c (main): ...print warnining here. Suggested by Sam Roberts.
7851 Wed Sep 13 18:12:34 CEST 2000 Werner Koch <wk@openit.de>
7853 * keyedit.c (keyedit_menu): Allow to use "debug" on the secret key.
7855 * ringedit.c (cmp_seckey): Fix for v4 RSA keys.
7856 * seckey-cert.c (do_check): Workaround for PGP 7 bug.
7858 Wed Sep 6 17:55:47 CEST 2000 Werner Koch <wk@openit.de>
7860 * misc.c (print_pubkey_algo_note): Do not print the RSA notice.
7861 * sig-check.c (do_signature_check): Do not emit the RSA status message.
7862 * pubkey-enc.c (get_session_key): Ditto.
7864 * encode.c (encode_simple, encode_crypt): Fix for large files.
7865 * sign.c (sign_file): Ditto.
7867 Wed Sep 6 14:59:09 CEST 2000 Werner Koch <wk@openit.de>
7869 * passphrase.c (hash_passphrase): Removed funny assert. Reported by
7872 * openfile.c (try_make_homedir): Changes for non-Posix systems.
7873 * g10.c (main): Take the default homedir from macro.
7875 * g10.c: The --trusted-key option is back.
7876 * trustdb.c (verify_own_key): Handle this option.
7877 (add_ultimate_key): Moved stuff from verify_own_key to this new func.
7878 (register_trusted_key): New.
7880 Fri Aug 25 16:05:38 CEST 2000 Werner Koch <wk@openit.de>
7882 * parse-packet.c (dump_sig_subpkt): Print info about the ARR.
7884 * openfile.c (overwrite_filep): Always return okay if the file is
7886 (make_outfile_name): Add ".sign" to the list of know extensions.
7887 (open_sigfile): Ditto.
7889 Wed Aug 23 19:52:51 CEST 2000 Werner Koch <wk@openit.de>
7891 * g10.c: New option --allow-freeform-uid. By Jeroen C. van Gelderen.
7892 * keygen.c (ask_user_id): Implemented here.
7894 Fri Aug 4 14:23:05 CEST 2000 Werner Koch <wk@openit.de>
7896 * status.c (do_get_from_fd): Ooops, we used fd instead of opt.command_fd.
7897 Thanks to Michael Tokarev.
7899 Tue Aug 1 20:06:23 CEST 2000 Werner Koch <wk@openit.de>
7901 * g10.c: New opttion --try-all-secrets on suggestion from Matthias Urlichs.
7902 * pubkey-enc.c (get_session_key): Quite easy to implement here.
7904 Thu Jul 27 17:33:04 CEST 2000 Werner Koch <wk@openit.de>
7906 * g10.c: New option --merge-only. Suggested by Brendan O'Dea.
7907 * import.c (import_one): Implemented it here
7908 (import_secret_one): Ditto.
7909 (print_stats): and give some stats.
7911 Thu Jul 27 12:01:00 CEST 2000 Werner Koch <wk@openit.de>
7913 * g10.c: New options --show-session-key and --override-session-key
7914 * pubkey-enc.c (hextobyte): New.
7915 (get_override_session_key): New.
7916 * mainproc.c (proc_pubkey_enc): Add session-key stuff.
7917 * status.h, status.c (STATUS_SESSION_KEY): New.
7919 Thu Jul 27 10:02:38 CEST 2000 Werner Koch <wk@openit.de>
7921 * g10.c (main): Use setmode(O_BINARY) for MSDOS while generating random bytes
7922 (print_mds): Likewise for stdin.
7923 * plaintext.c (handle_plaintext): Likewise for stdout.
7925 Mon Jul 24 10:30:17 CEST 2000 Werner Koch <wk@openit.de>
7927 * keyedit.c (menu_expire): expire date for primary key can be set again.
7929 Wed Jul 19 11:26:43 CEST 2000 Werner Koch <wk@openit.de>
7931 * keylist.c (is_uid_valid): New.
7932 (list_keyblock): Print validity information for all user IDs. Note, this
7933 has to be done at other places too; for now we have only minimal support.
7935 Wed Jul 12 13:32:06 CEST 2000 Werner Koch <wk@openit.de>
7937 * helptext.c, pkclist.c: s/superseeded/superseded/
7939 Mon Jul 10 16:08:57 CEST 2000 Werner Koch <wk@openit.de>
7941 * parse-packet.c (enum_sig_subpkt): Fixed testing on crtitical bit in case
7942 of a NULL buffer. Reported by Peter Marschall.
7944 Wed Jul 5 13:28:45 CEST 2000 Werner Koch <wk@openit.de>
7946 * keyedit.c, keyid.c: Add some _()
7948 * argparse.c: Changed the flag to suppress --version handling to also
7951 Wed Jun 28 11:54:44 CEST 2000 Werner Koch <wk@openit.de>
7953 * armor.c (armor_filter): Set sigclass to 0 in case of non-dash-escaped
7954 clearsig. This makes this mode work again.
7956 * mainproc.c (proc_tree): Fixed handling of one-pass-sig packets in textmode.
7957 Disabled the ugly workaround for PGP 5 - let's see whether thi breaks less
7958 cases. Found by Ted Cabeen.
7960 * options.h (DBG_HASHING): New. All commented md_start_debug are now
7961 controlled by this debug option.
7963 * sign.c (print_status_sig_created): New and called from 2 places.
7965 * keygen.c (gen_rsa): New, but commented.
7966 (ask_algo): Commented support for RSA.
7968 * seckey-cert.c (protect_secret_key): Started to fix the code for v4 RSA
7969 keys - it is not solved yet. However, we have time until, Sep 20th ;)
7971 Wed Jun 14 12:27:09 CEST 2000 Werner Koch <wk@openit.de>
7973 * status.c (init_shm_coprocessing): Changed the sequence of the get,attach
7974 to cope with the changes in newer Linux kernels. This bug has been found
7975 by <dmitri@advantrix.com> who also proposed this solution. Hopefully
7976 this does not break gpg on to many systems.
7978 * cipher.c (write_header): Protect the IV with the MDC too.
7979 * encr-data.c (decrypt_data): Likewise.
7981 Fri Jun 9 10:09:52 CEST 2000 Werner Koch <wk@openit.de>
7983 * g10.c: New options --no-auto-key-retrieve
7984 * options.h (auto_key_retrieve): New.
7985 * mainproc.c (check_sig_and_print): Implemented that.
7987 Wed Jun 7 19:19:09 CEST 2000 Werner Koch <wk@openit.de>
7989 * sig-check.c (do_check): Use EMULATE_MDENCODE also on v4 packets.
7991 Wed Jun 7 17:25:38 CEST 2000 Werner Koch <wk@openit.de>
7993 * cipher.c (write_header): Use plain CFB mode for MDC encrypted packets.
7994 * encr-data.c (decrypt_data): Ditto.
7996 Mon Jun 5 23:41:54 CEST 2000 Werner Koch <wk@openit.de>
7998 * seskey.c (do_encode_md, encode_md_value): Add new arg v3compathack to work
7999 around a bug in old versions.
8000 * sig-check.c (do_check): use the aboved workaround when enabled.
8001 * g10.c: New option --emulate-md-decode-bug
8003 Mon Jun 5 12:37:43 CEST 2000 Werner Koch <wk@openit.de>
8005 * build-packet.c (do_mdc): New.
8006 (do_encrypted_mdc): Changed for the new proposal.
8007 * parse-packet.c (parse_mdc): New.
8008 (parse_encrypted): Fixed for the new proposal.
8009 * packet.h (PKT_MDC): New.
8010 * cipher.c (cipher_filter): Build the MDC packet here.
8011 * g10.c (main): Enable --force-mdc.
8012 * encr-data.c (mdc_decode_filter): Fixed for new MDC method
8014 * options.h(rfc2440): New.
8015 * g10.c (main): Changed the selected values for --openpgp to not include
8016 optional algorithms.
8018 Thu May 18 11:38:54 CEST 2000 Werner Koch <wk@openit.de>
8020 * keyedit.c (keyedit_menu): Add a keyword arg to the prompt.
8022 * status.c, status.h: Added 3 new status tokens.
8023 * status.c (do_get_from_fd): New.
8024 (cpr_enabled,cpr_get,cpr_get_hidden,cpr_kill_prompt,
8025 cpr_get_answer_is_yes,cpr_get_answer_yes_no_quit): Modified to work
8026 with the new function.
8027 * g10.c: Add new option --command-fd.
8029 * status.c (progress_cb): New.
8030 (set_status_fd): Register progress functions
8032 Fri May 12 14:01:20 CEST 2000 Werner Koch <wk@openit.de>
8034 * delkey.c (delete_key): Add 2 new status messages
8035 * status.c, status.h (STATUS_DELETE_PROBLEM): New.
8037 Fixed years of copyright in all source files.
8039 Mon May 1 17:08:14 CEST 2000 Werner Koch <wk@openit.de>
8041 * trustdb.c (propagate_validity): Fixed the bug that only one uid
8042 gets fully trusted even when all are signed by an ultimate key.
8044 Mon May 1 15:38:04 CEST 2000 Werner Koch <wk@openit.de>
8046 * getkey.c (key_byname): Always returned a defined context. Fixed
8047 a segv for invalid user id specifications. Reported by Walter Koch.
8049 * getkey.c (get_user_id): I18ned "no user id" string. By Walter.
8051 * pkclist.c (do_show_revocation_reason): Typo fixes.
8052 * helptext.c: Ditto.
8054 * armor.c (armor_filter): Fixed some CRLF issues. By Mike McEwan.
8056 Fri Apr 14 19:37:08 CEST 2000 Werner Koch <wk@openit.de>
8058 * pkclist.c (do_show_revocation_reason): New.
8059 (show_revocation_reason): New and called at various places.
8061 * g10.c (main): Fixed small typo.
8063 * pkclist.c (do_we_trust): Act on always_trust but not for revoked
8064 keys. Suggested by Chip Salzenberg.
8066 * g10.c: New option --lock-never.
8068 * ringedit.c (get_writable_keyblock_file): New.
8069 * keygen.c (do_generate_keypair): Use this instead of the hardwired one.
8071 * keygen.c (ask_user_id): Check that the email address is in the
8072 correct field. Suggested by Christian Kurz.
8074 Mon Apr 10 13:34:19 CEST 2000 Werner Koch <wk@openit.de>
8076 * keyedit.c (show_key_with_all_names): s/sbb/ssb/
8078 Tue Mar 28 14:26:58 CEST 2000 Werner Koch <wk@openit.de>
8080 * trustdb.c (verify_own_keys): Do not print warning about unprotected
8081 key when in quiet mode.
8083 Wed Mar 22 13:50:24 CET 2000 Werner Koch <wk@openit.de>
8085 * mainproc.c (print_userid): Do UTF8 conversion before printing.
8086 * import.c (import_one): Ditto.
8087 (import_secret_one): Ditto.
8088 (delete_inv_parts): Ditto.
8090 Thu Mar 16 16:20:23 CET 2000 Werner Koch <wk@openit.de>
8092 * keylist.c (print_key_data): Handle a NULL pk gracefully.
8094 * getkey.c (merge_one_pk_and_selfsig): Fixed silly code for
8095 getting the primary keys keyID but kept using the one from the
8097 * pubkey-enc.c (get_it): Print a note for expired subkeys.
8099 * getkey.c (has_expired): New.
8100 (subkeys_expiretime): New.
8101 (finish_lookup): Check for expired subkeys needed for encryption.
8102 (merge_keys_and_selfsig): Fixed expiration date merging for subkeys.
8104 * keylist.c (list_keyblock): Print expiration time for "sub".
8105 (list_one): Add missing merging for public keys.
8106 * mainproc.c (list_node): Ditto.
8108 2000-03-14 13:49:38 Werner Koch (wk@habibti.openit.de)
8110 * keygen.c (keyedit_menu): Do not allow to use certain commands
8111 while the secret key is selected.
8113 2000-03-09 12:53:09 Werner Koch (wk@habibti.openit.de)
8115 * keygen.c (ask_expire_interval): Movede parsig to ...
8116 (parse_expire_string): ... this new function. And some new control
8118 (proc_parameter_file): Add expire date parsing.
8119 (do_generate_keypair): Allow the use of specified output files.
8121 2000-03-08 10:38:38 Werner Koch (wk@habibti.openit.de)
8123 * keygen.c (ask_algo): Removed is_v4 return value and the commented
8124 code to create Elg keys in a v3 packet. Removed the rounding
8126 (do_create): Likewise removed arg v4_packet.
8127 (gen_elg): Likewise removed arg version. Now rounding keysizes here.
8128 (gen_dsa): Rounding keysize now here.
8129 (release_parameter_list): New
8130 (get_parameter*): New.
8131 (proc_parameter_file): New.
8132 (read_parameter_file): New.
8133 (generate_keypair): Splitted. Now uses read_parameter_file when in
8134 batch mode. Additional argument to specify a parameter file.
8135 (do_generate_keypair): Main bulk of above fucntion and uses the
8137 (do_create): Don't print long notice in batch mode.
8138 * g10.c (main): Allow batched key generation.
8140 Thu Mar 2 15:37:46 CET 2000 Werner Koch <wk@gnupg.de>
8142 * pubkey-enc.c (get_it): Print a note about unknown cipher algos.
8144 * g10.c (opts): Add a note to the help listing about the man page
8145 and removed some options from the help listing.
8147 * keyedit.c (print_and_check_one_sig): Use a new function to truncate
8148 the output of the user ID. Suggested by Jan-Benedict Glaw.
8150 Wed Feb 23 10:07:57 CET 2000 Werner Koch <wk@gnupg.de>
8152 * helptext.c: typo fix.
8154 Thu Feb 17 13:39:32 CET 2000 Werner Koch <wk@gnupg.de>
8156 * revoke.c: Removed a bunch of commented code.
8158 * packet.h (SIGSUBPKT_REVOC_REASON): New.
8159 * build-packet.c (build_sig_subpkt): Support new sub packet.
8160 * parse-packet.c (parse_one_sig_subpkt): Ditto.
8161 (dump_sig_subpkt): Ditto.
8162 * revoke.c (ask_revocation_reason): New.
8163 (release_revocation_reason_info): New.
8164 (revocation_reason_build_cb): New.
8165 (gen_revoke): Ask for reason.
8166 * main.h (struct revocation_reason_info): Add declaration.
8167 * keyedit.c (menu_revsig): Add support for revocation reason.
8168 (menu_revkey): Ditto.
8169 (sign_uid_mk_attrib): Renamed to ...
8170 (sign_mk_attrib): ... this, made static and add support for reasons.
8172 Tue Feb 15 08:48:13 CET 2000 Werner Koch <wk@gnupg.de>
8174 * build-packet.c (build_packet): Fixed fixing of old comment packets.
8176 * import.c (import_keys): Fixed importing from stdin when called with
8177 nnames set to zero as it normally happens.
8179 Mon Feb 14 14:30:20 CET 2000 Werner Koch <wk@gnupg.de>
8181 * sig-check.c (check_key_signature2): Add new arg r_expired.
8182 (do_signature_check): New arg to pass it down to ...
8183 (do_check): New arg r-expire which is set when the signature
8185 * trustdb.c (check_sig_record): Set SIGF_EXPIRED flag and set
8186 the expiretime to zero so that thi signature will not be checked
8189 Fri Feb 11 17:44:40 CET 2000 Werner Koch <wk@gnupg.de>
8191 * g10.c (g10_exit): Update the random seed_file.
8192 (main): Set the random seed file. New option --no-random-seed-file.
8194 Thu Feb 10 17:39:44 CET 2000 Werner Koch <wk@gnupg.de>
8196 * keyedit.c (menu_expire): Fixed segv due to unitialized sub_pk.
8199 Thu Feb 10 11:39:41 CET 2000 Werner Koch <wk@gnupg.de>
8201 * keylist.c (list_keyblock): Don't print warnings in the middle of
8202 regulat output lines. By Rémi.
8204 * sig-check.c: Include options.h
8206 Wed Feb 9 15:33:44 CET 2000 Werner Koch <wk@gnupg.de>
8208 * gpg.c: New option --ignore-time-conflict
8209 * sig-check.c (do_check): Implemented this option.
8210 * trustdb.c (check_trust): Ditto.
8211 * sign.c (do_sign): Ditto.
8212 * keygen.c (generate_subkeypair): Ditto.
8214 * encode.c (encode_simple): use iobuf_cancel after open failure.
8217 Fri Jan 14 18:32:01 CET 2000 Werner Koch <wk@gnupg.de>
8219 * packet.h (STRING2KEY): Changed mode from byte to int.
8220 * parse-packet.c (parse_key): Add the special GNU protection stuff
8221 * build-packet.c (so_secret_key): Ditto.
8222 * seckey-cert.c (do_check): Ditto.
8223 * keyedit.c (change_passphrase): Ditto.
8224 * export.c (export_secsubkeys): New.
8225 (do_export_stream): Hack to export the primary key using mode 1001.
8226 * g10.c: New command --export-secret-subkeys
8228 Thu Jan 13 19:31:58 CET 2000 Werner Koch <wk@gnupg.de>
8230 * armor.c (is_armored): Check for 1-pass-sig packets. Reported by
8231 David Hallinan <hallinan@rtd.com>.
8232 (armor_filter): Replaced one LF by the LF macro. Reported by
8233 Wolfgang Redtenbacher.
8235 Wed Jan 5 11:51:17 CET 2000 Werner Koch <wk@gnupg.de>
8237 * g10.c (main): Reset new global flag opt.pgp2_workarounds
8238 when --openpgp is used.
8239 * mainproc.c (proc_plaintext): Do the PGP2,5 workarounds only
8240 when the global flag is set.
8242 * textfilter.c (copy_clearsig_text): Ditto.
8243 * armor.c (armor_filter): Ditto.
8245 * g10.c: New option --list-only
8246 * mainproc.c (proc_tree): Don't do it if opt.list_only is active.
8247 (proc_pubkey_enc): Implement option.
8249 * status.h, status.c ({BEGIN,END}_{EN,DE}CRYPTION): New.
8250 * cipher.c (cipher_filter): New status outputs.
8251 * mainproc.c (proc_encrypted): New status outputs.
8253 Fri Dec 31 14:08:15 CET 1999 Werner Koch <wk@gnupg.de>
8255 * armor.c (armor_filter): Made the "Comment:" header translatable.
8257 * hkp.c (hkp_import): Make sure that the program does not return
8258 success when there is a connection problem. Reported by Phillip Jones.
8260 Sun Dec 19 15:22:26 CET 1999 Werner Koch <wk@gnupg.de>
8262 * armor.c (LF): Use this new macro at all places where a line LF
8263 is needed. This way DOSish textfiles should be created when the
8264 input data is also in dos mode.
8265 * sign.c (LF): Ditto.
8266 * textfilter.c (LF): Ditto.
8267 (copy_clearsig_text): Disabled the forcing of CR,LF sequences
8270 * plaintext.c (handle_plaintext): Fixes for line endings on DOS.
8271 and react on a LF in cleartext.
8272 * armor.c (fake_packet): Restore the original line ending after
8273 removing trailing spaces.
8275 * signal.c (got_fatal_signal): DOS fix.
8277 Thu Dec 16 10:07:58 CET 1999 Werner Koch <wk@gnupg.de>
8279 * mainproc.c (print_failed_pkenc): Fix for unknown algorithm.
8280 Found by fygrave@epr0.org.
8282 Thu Dec 9 10:31:05 CET 1999 Werner Koch <wk@gnupg.de>
8284 * hkp.c: i18n the strings.
8286 Sat Dec 4 15:32:20 CET 1999 Werner Koch <wk@gnupg.de>
8288 * trustdb.c (verify_key): Shortcut for ultimately trusted keys.
8290 Sat Dec 4 12:30:28 CET 1999 Werner Koch <wk@gnupg.de>
8292 * pkclist.c (build_pk_list): Validate the trust using the namehash
8293 if this one has been set by the key lookup.
8295 * g10.c: Add --delete-secret-key to the help page.
8297 * openfile.c (copy_options_file): Made static.
8298 (try_make_homedir): New.
8299 * ringedit.c (add_keyblock_resource): Use the try_make_hoemdir logic.
8300 * tdbio.c (tdbio_set_dbname): Likewise.
8302 * keygen.c (generate_user_id): Use m_alloc_clear() here. We should
8303 better use an allocation function specific to the user_id packet.
8305 * keygen.c (keygen_add_std_prefs): Changed symmetric preferences
8306 to include Blowfish again. This is due to it's better speed compared
8309 * g10.c (strusage): Print the home directory.
8311 * armor.c (armor_filter): Take action on the cancel control msg.
8312 * filter.h (armor_filter_context_t): Add cancel flag.
8314 Mon Nov 29 21:52:11 CET 1999 Werner Koch <wk@gnupg.de>
8316 * g10.c: New option --fast-list-mode ..
8317 * keylist.c (list_keyblock): .. and implemented.
8318 * mainproc.c (list_node): Ditto.
8320 * import.c (mark_non_selfsigned_uids_valid): Fixed the case that there
8321 is a uid without any packet following.
8323 Mon Nov 22 11:14:53 CET 1999 Werner Koch <wk@gnupg.de>
8325 * mainproc.c (proc_plaintext): Never enable the hash processing
8326 when skip_verify is active.
8328 * armor.c (parse_header_line): Stop parsing on a WS line too.
8329 Suggested by Aric Cyr.
8331 * tdbdump.c (HEXTOBIN): Changed the name of the argument, so that
8332 traditional cpp don't mess up the macros. Suggested by Jos Backus.
8334 * mainproc.c (list_node): Print the PK algo in the --with-colon mode.
8335 * keylist.c (list_keyblock): Ditto.
8337 * signal.c (got_fatal_signal): Found the reason why exit(8) did not
8338 work - it is better to set the disposition back to default before
8339 raising the signal. Print the notice on stderr always.
8341 Fri Nov 12 20:33:19 CET 1999 Werner Koch <wk@gnupg.de>
8343 * g10.c (make_username): Swapped the logic.
8344 * keylist.c (public_key_list): Now takes a STRLIST as arg and moved
8345 the creation ot this list to the caller, so that he can copy with
8346 UTF-conversion of user IDs. Changed all callers.
8347 (secret_key_list): Likewise.
8349 * getkey.c (get_user_id_string_native): New and ...
8350 * encode.c (write_pubkey_enc_from_list): ... use it here.
8352 * pubring.asc: Updated.
8354 * packet.h (PKT_PHOTO_ID): New.
8355 * parse-packet.c (parse_photo_id): New.
8356 * build-packet.c (do_user_id: Handle photo IDs.
8357 (build_packet): Change CTB for photo IDs
8358 * free-packet.c (free_user_id): Release memory used for photo IDs
8359 * sig-check.c (hash_uid_node): Handle photo IDs too.
8360 * trustdb.c (print_uid_from_keyblock): Hash photo ID.
8361 (make_uid_records): Ditto.
8362 * getkey.c (find_by_name): Ditto.
8363 * keyedit.c (show_prefs): Ditto.
8364 * keylist.c (list_keyblock): Ditto.
8366 Thu Oct 28 16:08:20 CEST 1999 Werner Koch <wk@gnupg.de>
8368 * keygen.c (ask_expire_interval): Print a warning for systems
8369 with a signed 32 time_t if the exiration time is beyoind 2038.
8371 Fri Oct 8 20:40:50 CEST 1999 Werner Koch <wk@gnupg.de>
8373 * ringedit.c (enum_keyblocks): The last fix way really stupid;
8374 reverted and set rt to Unknown.
8376 Fri Oct 8 20:32:01 CEST 1999 Werner Koch <wk@gnupg.de>
8378 * ringedit.c (enum_keyblocks): Zero the entire kbpos out on open.
8380 * g10.c (oEntropyDLL): Removed option.
8381 (main): Made the warning on development versions more verbose.
8383 * g10.c (oHonorHttpProxy): New option.
8384 * hkp.c (hkp_ask_import,hkp_export): Implement this option.
8385 * options.skel: Enable this option for new installations
8387 Mon Oct 4 21:23:04 CEST 1999 Werner Koch <wk@gnupg.de>
8389 * import.c (import_keys): Changed calling interface, adjusted caller.
8390 (import): Moved printing of stats out ...
8391 (print_stats): New. ... to here.
8392 (import_keys_stream): Call stats print here.
8393 (import_keys): Print stats as totals for all files.
8395 * tdbio.h (DIRF_NEWKEYS): New
8396 * tdbio.c (tdbio_dump_record): Print the new flag.
8397 * trustdb.c (check_trust_record): New arg sigs_only. Adapted all
8399 (do_update_trust_record): Removed recheck arg and add a new sigs_only
8400 do we can later improve on the performance. Changed all callers too.
8401 (check_trustdb): Evalutate the new flag and add a status output.
8402 Do a check when the dir record has not been checked.
8403 (build_cert_tree): Evaluate the new flag.
8404 (check_trust): Ditto. Do a trust_record check, when the dir record
8405 is not marked as checked.
8406 (mark_fresh_keys): New.
8407 (clear_lid_table): New.
8408 (sync_trustdb): New.
8409 * import.c (import_keys): Call sync_trustdb() after processing.
8410 (import_keys_stream): Ditto.
8411 * tdbdump.c (import_ownertrust): Ditto.
8413 * import.c (import_revoke_cert): Notify the trust DB.
8414 (do_update_trust_record): Use |= to set the REVOKED bit and not &=;
8415 shame on me for this bad copy+paste introduced bug.
8416 (do_we_trust): Add trustmask to allow revoked key override to work.
8417 Chnaged are to allow return of a mofified trustlevel. Adapted the
8420 * g10.c: New options --emulate-3des-s2k-bug
8421 * passphrase.c (hash_passphrase): Implemented above.
8423 * mainproc.c (proc_tree): Check for standalone signatures.
8424 (do_check_sig): Print a notice for a standalone revocation
8425 (check_sig_and_print): Do not print an error for unchecked standalone
8428 Tue Sep 28 20:54:37 CEST 1999 Werner Koch <wk@gnupg.de>
8430 * encode.c (encode_simple): Use new CTB when we don't have the
8431 length of the file. This is somewhat strange as the comment above
8432 indicates that this part is actually fixed for PGP 5 - maybe I simply
8433 lost the source line, tsss.
8435 * armor.c (armor_filter): Set a flag if no OpenPGP data has been found.
8436 * verify.c (verify_signatures): Add an error helptext.
8438 Thu Sep 23 19:24:30 CEST 1999 Werner Koch <wk@isil.d.shuttle.de>
8440 * openfile.c (open_outfile): Fixed the 8dot3 handling.
8442 * passphrase.c (passphrase_to_dek): Print uid using utf8 func.
8443 * delkey.c (delete_key): Ditto.
8444 * pkclist.c (show_paths,do_edit_ownertrust,do_we_trust): Ditto
8445 (do_we_trust_pre): Ditto.
8446 * trustdb.c (print_user_id,check_uidsigs): Ditto.
8447 * revoke.c (gen_revoke,ask_revoke_sig): Ditto.
8449 Thu Sep 23 09:52:58 CEST 1999 Werner Koch <wk@isil.d.shuttle.de>
8451 * verify.c (print_file_status): New.
8452 (verify_one_file): Moved status print to th new fnc. Add error status.
8453 * status.c, status.h (STATUS_FILE_ERROR): New
8455 Wed Sep 22 10:14:17 CEST 1999 Werner Koch <wk@isil.d.shuttle.de>
8457 * openfile.c (make_outfile_name): Use case-insenstive compare for
8458 DOS systems. Add ".pgp" to the list of know extensions.
8459 (open_outfile): For DOS systems try to replace the suffiy instead of
8462 * status.c, status.h: Add STATUS_FILE_{START,DONE}.
8463 * verify.c (verify_one_file): Emit these new stati.
8465 * sign.c (clearsign_file): Avoid duplicated Entries in the "Hash:"
8466 line. Those headers are now only _not_ printed when there are
8467 only old-style keys _and_ all hashs are MD5.
8469 Mon Sep 20 12:24:41 CEST 1999 Werner Koch <wk@isil.d.shuttle.de>
8472 * verify.c (verify_files, ferify_one_file): New.
8473 * g10.c: New command --verify-files
8475 Fri Sep 17 12:56:42 CEST 1999 Werner Koch <wk@isil.d.shuttle.de>
8477 * g10.c: Add UK spelling as alias for armor options ;-)
8479 * import.c (append_uid): Fixed a SEGV when there is no selfsig and
8481 (merge_sigs): Ditto. Removed the assertion.
8483 Wed Sep 15 16:22:17 CEST 1999 Werner Koch <wk@isil.d.shuttle.de>
8485 * g10.c: New option --entropy-dll-name
8487 Mon Sep 13 10:51:29 CEST 1999 Werner Koch <wk@isil.d.shuttle.de>
8489 * signal.c (got_fatal_signal): Print message using write(2) and
8490 only for development versions.
8492 Mon Sep 6 19:59:08 CEST 1999 Werner Koch <wk@isil.d.shuttle.de>
8494 * tdbio.c (tdbio_set_dbname): Use mkdir macro
8495 * ringedit.c (add_keyblock_resource): Ditto.
8497 Fri Sep 3 10:04:45 CEST 1999 Werner Koch <wk@isil.d.shuttle.de>
8499 * pkclist.c (build_pk_list): Skip keys set with --encrypt-to also
8500 when asking for a key.
8502 * plaintext.c (handle_plaintext): Make sure that we don't read a
8503 second EOF in the read loop for partial length packets.
8505 * mainproc.c (check_sig_and_print): print user ID as utf-8.
8507 Thu Sep 2 16:40:55 CEST 1999 Werner Koch <wk@isil.d.shuttle.de>
8509 * import.c (merge_blocks): First add new subkeys, then merge subkey
8511 (merge_sigs): Don't merge subkey signatures here.
8513 Wed Sep 1 15:30:44 CEST 1999 Werner Koch <wk@isil.d.shuttle.de>
8515 * keygen.c (ask_expire_interval): Fixed bug related to cpr_xx (tnx
8516 Francis J. Lacoste).
8518 Tue Aug 31 17:20:44 CEST 1999 Werner Koch <wk@isil.d.shuttle.de>
8520 * plaintext.c (do_hash): Hash CR,LF for a single CR.
8521 (ask_for_detached_datafile): Changed arguments to be closer to
8522 those of hash_datafiles and cleanup the code a bit.
8523 * mainproc.c (proc_tree): Workaround for pgp5 textmode detached
8524 signatures. Changed behavior of asking for data file to be the same
8525 as with provided data files.
8527 * keylist.c (list_keyblock): Use UTF8 print functions.
8529 Mon Aug 30 20:38:33 CEST 1999 Werner Koch <wk@isil.d.shuttle.de>
8531 * import.c (chk_self_sigs): some s/log_error/log_info/ so that gpg
8532 does not return an error if a key has some invalid packets.
8534 * helptext.c: Fixed some typos and changed the way the
8535 translation works. The english text is now the keyword for gettext
8536 and not anymore the keyword supplied to the function. Done after
8537 some discussion with Walter who thinks this is much easier for the
8540 * misc.c (disable_core_dumps): Don't do it for DOSish systems.
8542 * signal.c (signal_name): Bounds check on signum.
8544 Wed Aug 4 10:34:18 CEST 1999 Werner Koch <wk@isil.d.shuttle.de>
8546 * pubring.asc: Updated.
8548 * pkclist.c (do_we_trust_pre,check_signatures_trust): Do not print
8549 the warning about --always_trust when --quiet is used.
8551 * pkclist.c (fpr_info): New and called at several places.
8553 * parse-packet.c (dump_sig_subpkt): List revocation key contents.
8555 Mon Jul 26 09:34:46 CEST 1999 Werner Koch <wk@isil.d.shuttle.de>
8557 * pkclist.c (build_pk_list): Fixed typo in format string.
8559 * trustdb.c (create_shadow_dir): Don't translate the error string.
8561 * g10.c (main): Fixed spelling of user-id.
8562 * getkey.c (find_by_name_pk,find_by_name_sk,
8563 find_by_keyid,find_by_keyid_sk): Ditto and translate it.
8564 * import.c (mark_non_selfsigned_uids_valid,delete_inv_parts): Ditto.
8567 Mon Jul 26 01:01:39 CEST 1999 Michael Roth <mroth@nessie.de>
8569 * g10.c, options.h: New options --no-literal and --set-filesize
8571 * encode.c (encode_simple, encode_crypt): Support for the options
8572 --no-literal and --set-filesize.
8574 * sign.c (sign_file): ditto.
8576 Fri Jul 23 13:53:03 CEST 1999 Werner Koch <wk@isil.d.shuttle.de>
8579 * ringedit.c (enum_keyblocks): Removed annoying error message in cases
8580 when we have no keyring at all to enum.
8582 * getkey.c (classify_user_id): Rewrote to relax the recognition of
8583 keyIDs and fingerprints (Michael).
8585 * mainproc.c (check_sig_and_print): Print status NO_PUBKEY.
8586 (print_failed_pkenc): Print status NO_SECKEY.
8588 * import.c (mark_non_selfsigned_uids_valid): New.
8589 * g10.c: New option --allow-non-selfsigned-uid.
8591 * pkclist.c (print_fpr): New.
8592 (do_we_trust_pre): Print the fpr before asking whether to use the key
8594 (do_edit_ownertrust): Likewise.
8596 Thu Jul 22 20:03:03 CEST 1999 Werner Koch <wk@isil.d.shuttle.de>
8599 * ringedit.c (enum_keyblocks): Removed annoying error message in cases
8600 when we have no keyring at all to enum.
8602 * getkey.c (classify_user_id): Rewrote to relax the recognition of
8603 keyIDs and fingerprints (Michael).
8605 * mainproc.c (check_sig_and_print): Print status NO_PUBKEY.
8606 (print_failed_pkenc): Print status NO_SECKEY.
8608 * import.c (mark_non_selfsigned_uids_valid): New.
8609 * g10.c: New option --allow-non-selfsigned-uid.
8611 Thu Jul 15 10:15:35 CEST 1999 Werner Koch <wk@isil.d.shuttle.de>
8613 * g10.c: New options --disable-{cipher,pubkey}-algo.
8615 Wed Jul 14 19:42:08 CEST 1999 Werner Koch <wk@isil.d.shuttle.de>
8617 * status.h (STATUS_IMPORTED): New.
8618 * import.c (import): Print some status information (Holger Schurig).
8620 * g10.c (main): Make --no-greeting work again. Add a warning when
8621 --force-mds is used.
8623 Tue Jul 13 17:39:25 CEST 1999 Werner Koch <wk@isil.d.shuttle.de>
8625 * pkclist.c (do_edit_ownertrust): Changed the way help works.
8626 (build_pk_list): Implemented default recipient stuff.
8627 * g10.c: New options --default-recipient[-self]
8628 (main): Suppress greeting in most cases, entering a passphrase or
8629 a missing value is not considered to be interactive use.
8630 Merged --print-md and --print-mds; the latter is now obsolete.
8631 Changed the way --gen-random works and documented it.
8632 Changed the way --gen-prime works and add a man entry.
8633 * g10.c (MAINTAINER_OPTIONS): Removed.
8635 Mon Jul 12 18:45:57 CEST 1999 Werner Koch <wk@isil.d.shuttle.de>
8637 * keyedit.c (keyedit_menu): Add arg sign_mode and changed callers
8638 * g10.c (main): New command --lsign-key.
8640 Mon Jul 12 14:55:34 CEST 1999 Werner Koch <wk@isil.d.shuttle.de>
8642 * mainproc.c (kidlist_item): New.
8643 (release_list): Release failed pk-enc-list.
8644 (print_failed_pkenc): New
8645 (proc_encrypted): Print info about failed PK enc.
8647 * openfile.c (make_outfile_name): s/error/info/
8649 * passphrase.c (passphrase_to_dek): Return an empty passphrase when
8650 in batch mode and don't make the warning message fatal
8651 * seckey-cert.c (check_secret_key): Try only once when in batch mode.
8653 * g10.c (make_username): New.
8655 Thu Jul 8 16:21:27 CEST 1999 Werner Koch <wk@isil.d.shuttle.de>
8658 * packet.h (PKT_ring_trust): New
8659 * parse-packet.c (parse_trust): Store trust value
8660 * build-packet (build_packet): Ignore ring trust packets.
8661 * mainproc.c (add_ring_trust): New.
8662 (list_node): Print "rtv" records.
8663 * g10.c: New option --with-fingerprint.
8665 * trustdb.c (verify_own_keys): Don't insert if we are dry running
8666 (check_trust): Ditto.
8668 Wed Jul 7 13:08:40 CEST 1999 Werner Koch <wk@isil.d.shuttle.de>
8670 * Makefile.am: Support for libtool.
8672 * keygen.c (ask_expire_interval): Hack to allow for an expire date.
8674 * trustdb.c (do_update_trust_record,update_trust_record): Splitted.
8675 (check_trust_record): New.
8676 (check_trust,build_cert_tree): Check the dir record as needed.
8677 (upd_pref_record): Removed.
8678 (make_pref_record): New.
8679 (propagate_validity): Stop as soon as we have enough validity.
8681 * tbdio.c (MAX_CACHE_ENTRIES_HARD): Increased the limit.
8684 Fri Jul 2 11:45:54 CEST 1999 Werner Koch <wk@isil.d.shuttle.de>
8686 * g10.c (g10_exit): Dump random stats.
8688 * sig-check.c (check_key_signature,check_key_signature2): Enhanced
8689 version and wrapper for old function.
8690 (do_signature_check,signature_check): Ditto.
8692 Thu Jul 1 12:47:31 CEST 1999 Werner Koch <wk@isil.d.shuttle.de>
8695 * keyedit.c (show_key_with_all_names): Print a notice for disabled keys.
8696 (enable_disable_keys): Add functionality
8697 * pkclist.c (edit_ownertrust): preserve disabled state.
8698 (build_pk_list): Skip disabled keys.
8699 * trustdb.c (upd_one_ownertrust): Ditto.
8700 (build_cert_tree): Mask the ownertrust.
8701 (trust_letter): Mask the value.
8702 (do_check): Take disabled flag into account.
8704 * passphrase.c (passphrase_to_dek): Add a pubkey_algo arg and changed
8707 * g10.c (utf8_strings): 2 new options.
8709 * trustdb.c (insert_trust_record_by_pk): New, replaces the next one.
8710 (insert_trust_record): Now takes a keyblock as arg. Changed all
8711 callers to use the appropritae function.
8713 * openfile.c (ask_outfile_name): New.
8714 * plaintext.c (handle_plaintext): Ask for filename if there is
8715 no valid syntax. Don't use fname varbatim but filter it.
8717 Tue Jun 29 21:44:25 CEST 1999 Werner Koch <wk@isil.d.shuttle.de>
8720 * trustdb.h (TRUST_FLAG_DISABLED): New.
8722 * status.c (USE_CAPABILITIES): Capabilities support (Remi).
8724 * tdbio.c : Added new fields to the DIR record.
8725 (tdbio_write_record): Fixed the update of the hash tables.
8726 (tdbio_delete_record): Drop the record from the hash tables.
8727 (drop_from_hashtbl): New.
8729 * status.c (cpr_get): Special online help mode.
8730 * helptext.c ("keyedit.cmd"): Removed.
8731 * keyedit.c (keyedit_menu): Use only help system.
8732 (enable_disable_key): New bit doies not yet work.
8734 Sat Jun 26 12:15:59 CEST 1999 Werner Koch <wk@isil.d.shuttle.de>
8737 * dearmor.c (enarmor_file): Fixed comment string.
8738 * tdbdump.c (export_ownertrust): Text fix.
8739 * tbio.c (tdbio_invalid): Ditto.
8741 * parse-packet.c (parse_key): Made temp buffer larger.
8743 * Makefile.am (install-data-local): Add missing backslashes
8745 Tue Jun 15 12:21:08 CEST 1999 Werner Koch <wk@isil.d.shuttle.de>
8747 * g10.c (main): Made iterated+salted the default S2K method.
8749 * Makefile.am (install-data-local): Use DESTDIR.
8751 * passphrase.c (passphrase_to_dek): Emit missing-passphrase while in
8754 * parse-packet.c (parse_pubkeyenc): Fixed a SEGV.
8756 Mon Jun 14 21:18:54 CEST 1999 Michael Roth <mroth@nessie.de>
8758 * g10.c: New options --openpgp, --no-tty, --emit-version,
8759 --default-comment and --lock-multiple
8761 Thu Jun 10 14:18:23 CEST 1999 Werner Koch <wk@isil.d.shuttle.de>
8763 * free-packet.c (free_encrypted): Fixed EOF case (Remi).
8764 (free_plaintext): Ditto.
8766 * helptext.c (keyedit.delsig.unknown): New (Remi).
8767 * keyedit.c (print_and_check_one_sig): Add arg print_without_key and
8768 changed all callers to make use of it (Remi):
8770 Tue Jun 8 13:36:25 CEST 1999 Werner Koch <wk@isil.d.shuttle.de>
8772 * keylist.c (print_key_data): New and called elsewhere.
8773 * g10.c: New option --with-key-data
8775 Wed Jun 2 14:17:19 CEST 1999 Werner Koch <wk@isil.d.shuttle.de>
8777 * mainproc.c (proc_tree): Yet another bad hack to cope with
8778 broken pgp2 created detached messages in textmode.
8780 Tue Jun 1 16:01:46 CEST 1999 Werner Koch <wk@isil.d.shuttle.de>
8782 * openfile.c (make_outfile_name): New.
8783 * plaintext.c (handle_plaintext): Outputfile is now the inputfile
8785 * g10.c: New option --use-embedded-filename
8787 Mon May 31 19:41:10 CEST 1999 Werner Koch <wk@isil.d.shuttle.de>
8789 * g10.c (main): Fix for SHM init (Michael).
8791 * compress.c, encr-data.c, mdfilter.c,
8792 plaintext.c, free-packet.c: Speed patches (Rémi).
8794 Thu May 27 09:40:55 CEST 1999 Werner Koch <wk@isil.d.shuttle.de>
8796 * status.c (cpr_get_answer_yes_no_quit): New.
8797 * keyedit.c (menu_delsig): New.
8798 (check_all_keysigs): Splitted.
8799 (print_and_check_one_sig): New.
8801 Wed May 26 14:36:29 CEST 1999 Werner Koch <wk@isil.d.shuttle.de>
8803 * build-packet.c (build_sig_subpkt): Support large packets.
8804 * parse-packet.c (enum_sig_subpkt): Replaces parse_sig_subpkt.
8805 * mainproc.c (print_notation_data): Print all notation packets.
8806 * g10.c (add_notation_data): Add a way to specify the critical flag.
8807 (main): Add option --set-policy-url.
8808 (check_policy_url): Basic checks.
8809 * sign.c (mk_notation_and_policy): Replaces mk_notation.
8811 * parse-packet.c (can_handle_critical): Moved decision whether we can
8812 handle critical subpacket to an extra function.
8814 Tue May 25 19:50:32 CEST 1999 Werner Koch <wk@isil.d.shuttle.de>
8816 * sign.c (sign_file): Always use compression algo 1 for signed
8817 onyl file becuase we can´ be sure the the verifier supports other
8820 * build-packet.c (build_sig_subpkt): Support for notation data.
8821 * sign.c (sign_file,clearsign_file,make_keysig_packet): Ditto.
8823 * g10.c (add_notation_data): New and add option -N
8824 * mainproc.c (print_notation_data): New.
8825 (check_sig_and_print): Print any notation data of the signed text.
8827 Sun May 23 14:20:22 CEST 1999 Werner Koch <wk@isil.d.shuttle.de>
8829 * pkclist.c (check_signatures_trust): Print a warning and return
8830 immediateley if opt.always_trust is true.
8832 * g10.c (main): Corrected handling of no-default-keyring
8834 * pkclist.c (algo_available): Disable Twofish until we have settled
8837 * hkp.c: Disable everything for mingw32
8839 Sat May 22 22:47:26 CEST 1999 Werner Koch <wk@isil.d.shuttle.de>
8841 * mainproc.c (check_sig_and_print): Add sig creation time to the
8842 VALIDSIG status output. Add more info to the ERRSIG output.
8843 * sig-check.c (signature_check): Add sig time after epoch to SIG_ID.
8845 * import.c (import_one): Merge duplicate user IDs.
8846 (collapse_uids): New.
8847 * kbnode.c (move_kbnode): New.
8848 (remove_kbnode): New.
8849 * keyedit.c (keyedit_menu): Call collapse_uids.
8851 * g10.c: new option --logger-fd.
8853 * import.c: s/log_*_f/log_*/
8855 Thu May 20 14:04:08 CEST 1999 Werner Koch <wk@isil.d.shuttle.de>
8857 * misc.c (pull_in_libs): do the volatile only for gcc
8859 * sig-check (signature_check): Emit SIG_iD only for classes 0 and 1.
8861 * armor.c (armor_filter): Add detection of PGP2 created clearsigs.
8862 (fake_packet): A tab is not a WS for pgp2 - handle this.
8863 * textfilter.c (len_without_trailing_chars): New.
8864 (copy_clearsig_text): Add pgp2mode arg.
8865 * sign.c (clearsign_file): pass old_style to the above fnc.
8868 Wed May 19 16:04:30 CEST 1999 Werner Koch <wk@isil.d.shuttle.de>
8870 * g10.c: New option --interactive.
8872 * mainproc.c (proc_plaintext): Add workaround for pgp2 bug
8873 (do_check_sig): Ditto.
8875 * plaintext.c (do_hash): Ditto.
8876 (hash_datafiles): Ditto, add an arg, changed all callers.
8877 * mdfilter.c (md_filter): Add support for the alternate hash context.
8879 Mon May 17 21:54:43 CEST 1999 Werner Koch <wk@isil.d.shuttle.de>
8881 * parse-packet.c (parse_encrypted): Support for PKT_ENCRYPTED_MDC.
8882 * build-packet.c (do_encrypted_mdc): Ditto.
8883 * cipher.c (write_header): Add mdc hashing.
8884 (cipher_filter): write out the hash.
8885 * mainproc.c (do_proc_packets): Add PKT_ENCRYPTED_MDC.
8886 * encr-data.c (decrypt_data): Add mdc hashing.
8887 (mdc_decode_filter): New.
8889 * parse-packet.c (parse_sig_subpkt): Fixed stupid bug for subpkt
8891 (parse_signature): Fixed even more stupid bug.
8893 Sat May 8 19:28:08 CEST 1999 Werner Koch <wk@isil.d.shuttle.de>
8895 * build-packet.c (do_signature): Removed MDC hack.
8896 * encode.c (encode_crypt_mdc): Removed.
8897 * mainproc.c (do_check_sig): Removed MDC hack.
8898 (check_sig_and_print): Ditto.
8899 * parse-packet.c (parse_signature): Ditto.
8900 * sig-check.c (mdc_kludge_check): Ditto.
8901 * free-packte.c (copy_signature, free_seckey_enc): Ditto.
8903 * parse-packet.c (parse_signature,parse_key): Store data of
8904 unknown algorithms with mpi_set_opaque inseatd of the old
8906 (read_rest): Removed.
8907 (read_rest2): Renamed to read_rest
8908 * build-packet.c (write_fake_data): Use mpi_get_opaque.
8909 * free-packet.c (cp_fake_data): Removed and cahnged all callers
8911 (free_pubkey_enc,free_seckey_enc,release_public_key_parts,
8912 release_secret_key_parts): Use mpi_free for opaque data.
8914 Thu May 6 14:18:17 CEST 1999 Werner Koch <wk@isil.d.shuttle.de>
8916 * trustdb.c (check_trust): Check for revoked subkeys.
8917 * pkclist.c (do_we_trust): Handled revoked subkeys.
8918 (do_we_trust_pre): Ditto.
8919 (check_signatures_trust): Ditto.
8921 * build-packet.c (hash_public_key): Fix for ancient g10 keys.
8923 * mainproc.c (do_proc_packets): Return EOF if no data has been read.
8924 * g10.c (main): Catch errors for default operation.
8926 Thu Apr 29 12:29:22 CEST 1999 Werner Koch <wk@isil.d.shuttle.de>
8928 * sign.c (sign_file): Fixed hashing in case of no subpackets.
8929 (clearsign_file): Ditto.
8930 (make_keysig_packet): Ditto.
8932 Wed Apr 28 13:03:03 CEST 1999 Werner Koch <wk@isil.d.shuttle.de>
8934 * keyedit.c (keyedit_menu): Add new command revkey.
8935 * (menu_revkey): New.
8938 Mon Apr 26 17:48:15 CEST 1999 Werner Koch <wk@isil.d.shuttle.de>
8940 * parse-packet.c (parse_signature): Add the MDC hack.
8941 * build-packet.c (do_signature): Ditto.
8942 * free-packet.c (free_seckey_enc,copy_signature,cmp_signatures): Ditto.
8943 * mainproc.c (do_check_sig): Ditto.
8944 * sig-check.c (mdc_kludge_check): New.
8945 * encode.c (encrypt_mdc_file): New.
8947 * keyedit.c (check_all_keysigs): List revocations.
8948 * (menu_revsig): New.
8949 * sign (make_keysig_packet): Support for class 0x30.
8951 Sun Apr 18 20:48:15 CEST 1999 Werner Koch <wk@isil.d.shuttle.de>
8953 * pkclist.c (select_algo_from_prefs): Fixed the case that one key
8954 has no preferences (Remi Guyomarch).
8956 keylist.c (list_keyblock): ulti_hack to propagate trust to all uids.
8958 Sun Apr 18 10:11:28 CEST 1999 Werner Koch <wk@isil.d.shuttle.de>
8960 * seckey-cert.c (do_check): Use real IV instead of a 0 one, so that
8961 it works even if the length of the IV doesn't match the blocksize.
8962 Removed the save_iv stuff.
8963 (protect_secret_key): Likewise. Create the IV here.
8964 * packet.h (PKT_secret_key): Increased size of IV field and add a
8966 * parse-packet.c (parse_key): Use the len protect.ivlen.
8967 * build-packet.c (do_secret_key). Ditto.
8969 * getkey.c (key_byname): Close keyblocks.
8971 * Makefile.am (gpgm): Removed this
8972 * g10.c: Merged gpg and gpgm
8974 * import.c (import): Utilize option quiet.
8975 * tdbio.c (tdbio_set_dbname): Ditto.
8976 * ringedit.c (add_keyblock_resource,keyring_copy): Ditto.
8978 * keyedit.c (sign_uids): Add some batch support.
8980 * g10.c (main): add call to tty_batchmode.
8982 Fri Apr 9 12:26:25 CEST 1999 Werner Koch <wk@isil.d.shuttle.de>
8984 * status.c (write_status_text): Some more status codes.
8985 * passphrase_to_dek (passphrase_to_dek): add a status code.
8986 * seckey_cert.c (check_secret_key): Likewise.
8988 * encr-data.c (decrypt_data): Reverse the last changes
8989 * cipher.c (write_header): Ditto.
8991 * parse-packet.c (parse_key): Dropped kludge for ancient blowfish mode.
8993 Thu Apr 8 09:35:53 CEST 1999 Werner Koch <wk@isil.d.shuttle.de>
8995 * mainproc.c (proc_encrypted): Add a new status output
8996 * passphrase.c (passphrase_to_dek): Ditto.
8997 * status.h status.c: Add new status tokens.
8999 Wed Apr 7 20:51:39 CEST 1999 Werner Koch <wk@isil.d.shuttle.de>
9001 * encr-data.c (decrypt_data): Fixes for 128 bit blocksize
9002 * cipher.c (write_header): Ditto.
9003 * seckey-cert.c (do_check): Ditto.
9004 (protect_secret_key). Ditto.
9005 * misc.c (print_cipher_algo_note): Twofish is now a standard algo.
9007 * keygen.c (do_create): Fixed spelling (Gaël Quéri)
9008 (ask_keysize): Only allow keysizes up to 4096
9010 * ringedit.c (add_keyblock_resource): chmod newly created secrings.
9012 * import.c (delete_inv_parts): Fixed accidently deleted subkeys.
9014 Tue Apr 6 19:58:12 CEST 1999 Werner Koch <wk@isil.d.shuttle.de>
9016 * armor.c: Removed duped include (John Bley)
9017 * mainproc.c: Ditto.
9019 * build-packet.c (hash_public_key): Fixed hashing of the header.
9021 * import.c (delete_inv_parts): Allow import of own non-exportable sigs.
9023 Sat Mar 20 13:59:47 CET 1999 Werner Koch <wk@isil.d.shuttle.de>
9025 * armor.c (fake_packet): Fix for not not-dash-escaped
9027 Sat Mar 20 11:44:21 CET 1999 Werner Koch <wk@isil.d.shuttle.de>
9029 * g10.c (main): Added command --recv-keys
9030 * hkp.c (hkp_import): New.
9032 Wed Mar 17 13:09:03 CET 1999 Werner Koch <wk@isil.d.shuttle.de>
9034 * trustdb.c (check_trust): add new arg add_fnc and changed all callers.
9036 (verify_key): Ditto.
9037 (propagate_validity): Use the new add_fnc arg.
9038 (print_user_id): Add the FILE arg.
9039 (propagate_ownertrust): New.
9040 * pkclist.c (add_ownertrust_cb): New and changed the add_ownertrust
9043 * getkey.c (get_keyblock_bylid): New.
9044 * trustdb.c (print_uid_from_keyblock): New.
9045 (dump_tn_tree_with_colons): New.
9046 (list_trust_path): Add colon print mode.
9048 * trustdb.c (insert_trust_record): Always use the primary key.
9050 * encode.c (encode_simple): Added text_mode filter (Rémi Guyomarch)
9051 (encode_crypt): Ditto.
9053 * mainproc.c (proc_pubkey_enc): Added status ENC_TO.
9054 * armor.c (armor_filter): Added status NODATA.
9055 * passphrase.c (passphrase_to_dek): Always print NEED_PASSPHRASE
9056 * seckey_cert.c (check_secret_key): Added BAD_PASS status.
9058 * g10.c (main): Set g10_opt_homedir.
9060 Sun Mar 14 19:34:36 CET 1999 Werner Koch <wk@isil.d.shuttle.de>
9062 * keygen.c (do_create): Changed wording of the note (Hugh Daniel)
9064 Thu Mar 11 16:39:46 CET 1999 Werner Koch <wk@isil.d.shuttle.de>
9068 * trustdb.c (walk_sigrecs,do_list_sigs,list_sigs,
9069 list_records,list_trustdb,export_ownertrust,import_ownertrust): Moved
9071 (init_trustdb): renamed to setup_trustdb. Changed all callers.
9072 (do_init_trustdb): renamed to init_trustdb().
9073 * trustdb.c (die_invalid_db): replaced by tdbio_invalid.
9074 * tdbio.c (tdbio_invalid): New.
9076 * import.c (delete_inv_parts): Skip non exportable signatures.
9077 * keyedit.c (sign_uid_mk_attrib): New.
9078 (sign_uids): Add the local argument.
9079 (keyedit_menu): New "lsign" command.
9080 * trustdb.c (register_trusted_key): Removed this and all related stuff.
9081 * g10.c (oTrustedKey): Removed option.
9083 * tdbio.h (dir.valcheck): New trustdb field.
9084 * tdbio.c: Add support for this field
9085 (tdbio_read_modify_stamp): New.
9086 (tdbio_write_modify_stamp): New.
9087 * trustdb.c (do_check): Check against this field. Removed cache update.
9088 (verify_key): Add cache update.
9089 (upd_uid_record): Some functional changes.
9090 (upd_cert_record): Ditto
9092 Wed Mar 10 11:26:18 CET 1999 Werner Koch <wk@isil.d.shuttle.de>
9094 * keylist.c (list_keyblock): Fixed segv in uid. Print 'u' as
9097 Mon Mar 8 20:47:17 CET 1999 Werner Koch <wk@isil.d.shuttle.de>
9099 * getkey.c (classify_user_id): Add new mode 12 (#<lid>).
9101 * seckey-cert.c (check_secret_key): replaced error by info.
9103 * trustdb.c (query_trust_info): Add another arg, changed all callers.
9104 (check_trust): Ditto.
9106 (verify_key): Handle namehash.
9107 * keylist.c (list_keyblock): print trust info for user ids.
9109 * sig-check.c (signature_check): Add sig-created to status output.
9111 Tue Mar 2 16:44:57 CET 1999 Werner Koch <wk@isil.d.shuttle.de>
9113 * textfilter.c (copy_clearsig_text): New.
9114 (clearsign): Removed.
9115 * sign.c (clearsign_file): does not use textfiler anymore.
9117 * keygen.c (ask_user_id): print a note about the used charset.
9119 Tue Mar 2 10:38:42 CET 1999 Werner Koch <wk@isil.d.shuttle.de>
9121 * sig-check.c (signature_check): sig-id now works for all algos.
9123 * armor.c (armor_filter): Fixed armor bypassing.
9125 Sun Feb 28 19:11:00 CET 1999 Werner Koch <wk@isil.d.shuttle.de>
9127 * keygen.c (ask_user_id): Don't change the case of email addresses.
9128 (has_invalid_email_chars): Adjusted.
9130 * keylist.c (list_one): Really list serect keys (Remi Guyomarch)
9132 * keyedit.c (menu_select_uid): Add some braces to make egcs happy.
9133 (menu_select_key): Ditto.
9135 * mainproc.c (do_proc_packets): List sym-enc packets (Remi Guyomarch)
9137 Fri Feb 26 17:55:41 CET 1999 Werner Koch <wk@isil.d.shuttle.de>
9139 * pkclist.c (build_pk_list): Return error if there are no recipients.
9141 * sig-check.c (signature_check): New signature id feature.
9142 * armor.c (make_radic64_string): New.
9144 * mainproc.c (proc_pubkey_enc): early check for seckey availability.
9146 * pkclist.c (do_we_trust_pre): print user id before asking.
9148 * ringedit.c (add_keyblock_resource,get_keyblock_handle): Cleaner
9149 handling of default resource.
9152 Thu Feb 25 18:47:39 CET 1999 Werner Koch <wk@isil.d.shuttle.de>
9154 * pkclist.c (algo_available): New.
9155 (select_algo_from_prefs): Check whether algo is available.
9157 * ringedit.c (keyring_copy): Take care of opt.dry_run.
9158 (do_gdbm_store): Ditto.
9159 * openfile.c (open_outfile). Ditto.
9160 (copy_options_file): Ditto.
9161 * trustdb.c (update_trustdb): Ditto.
9162 (clear_trust_checked_flag): Ditto.
9163 (update_trust_record): Ditto.
9164 (insert_trust_record): Ditto.
9166 Wed Feb 24 11:07:27 CET 1999 Werner Koch <wk@isil.d.shuttle.de>
9168 * keylist.c (secret_key_list): Now really list the secret key.
9170 * trustdb.c (do_init_trustdb): New. Init is now deferred.
9172 Mon Feb 22 20:04:00 CET 1999 Werner Koch <wk@isil.d.shuttle.de>
9174 * getkey.c (lookup_sk): Return G10ERR_NO_SECKEY and not x_PUBKEY.
9176 Fri Feb 19 15:49:15 CET 1999 Werner Koch <wk@isil.d.shuttle.de>
9178 * pkclist.c (select_algo_from_prefs): retrieve LID if not there.
9180 * armor.c (fake_packet): Replaced ugly lineending handling.
9182 * g10.c (oNoEncryptTo): New.
9183 * pkclist.c (build_pk_list): Implemented this option.
9185 * g10.c (main): Greeting is now printed to stderr and not to tty.
9186 Use add_to_strlist() instead of direct coding.
9188 * import.c (import): Use iobuf_push_filter2.
9190 * mainproc.c (check_sig_and_print): Print all user ids
9191 for good signatures.
9192 * getkey.c (get_pubkeyblock): New.
9194 * import.c (chk_self_sigs): Fixed SEGV for unbounded class 0x18 keys.
9195 (delete_inv_parts): Delete special marked packets.
9197 Tue Feb 16 14:10:02 CET 1999 Werner Koch <wk@isil.d.shuttle.de>
9199 * g10.c (main): New option --encrypt-to
9201 * pkclist.c (build_pk_list): Implemented encrypt-to.
9203 * parse-packet.c (parse_user_id): Removed the hack to work with
9206 * g10.c (main): Install lockfile cleanup handler.
9207 * tdbio.c (cleanup): Removed: this is now handled by dotlock.
9209 Sat Feb 13 14:13:04 CET 1999 Werner Koch <wk@isil.d.shuttle.de>
9211 * tdbio.c (tdbio_set_dbname): Init lockhandle for a new trustdb
9213 Wed Feb 10 17:15:39 CET 1999 Werner Koch <wk@isil.d.shuttle.de>
9215 * g10.c (main): check for development version now in configure
9217 * tdbio.c (tdbio_write_record): Add uid.validity
9218 (tdbio_read_record) : Ditto.
9219 (tdbio_dump_record) : Ditto.
9221 * keygen.c (keygen_add_std_prefs): Replaced Blowfish by Twofish,
9222 removed MD5 and Tiger.
9223 * pubkey-enc.c (get_it): Suppress warning about missing Blowfish
9224 in preferences in certain cases.
9226 * ringedit.c (lock_rentry,unlock_rentry): New.
9228 * getkey.c (key_byname): Pass ret_kb down to lookup_xx.
9230 * armor.c (armor_filter): No output of of empty comment lines.
9231 Add option --no-version to suppress the output of the version string.
9233 * getkey.c: Release the getkey context for auto context variables.
9235 Sun Jan 24 18:16:26 CET 1999 Werner Koch <wk@isil.d.shuttle.de>
9237 * getkey.c: Changed the internal design to allow simultaneous
9238 lookup of multible user ids
9239 (get_pubkey_bynames): New.
9240 (get_seckey_bynames): New.
9241 (get_seckey_next): New.
9242 (get_seckey_end): New.
9243 * keylist.c (list_one): Use the new functions.
9245 * keylist.c (list_keyblock): add a newline for normal listings.
9247 * g10.c (--recipient): New option name to replace --remote-user
9250 Wed Jan 20 18:59:49 CET 1999 Werner Koch <wk@isil.d.shuttle.de>
9252 * textfilter.c: Mostly rewritten
9253 * plaintext.c (handle_plaintext): Use now text_filter semantics.
9255 Tue Jan 19 19:34:58 CET 1999 Werner Koch <wk@isil.d.shuttle.de>
9257 * export.c (export_pubkeys_stream): New.
9258 (do_export_stream): New.
9259 * g10.c (aSendKeys): New command.
9260 * hkp.c (hkp_export): New.
9262 * compress.c (do_uncompress): Hack for algo 1 and 1.1.3
9264 Sun Jan 17 11:04:33 CET 1999 Werner Koch <wk@isil.d.shuttle.de>
9266 * textfilter.c (text_filter): Now uses iobuf_read_line().
9267 (read_line): Removed.
9269 * armor.c (trim_trailing_spaces): Removed and replaced
9270 by trim_trailing_ws from libutil
9272 Sat Jan 16 12:03:27 CET 1999 Werner Koch <wk@isil.d.shuttle.de>
9274 * hkp.c (hkp_ask_import): Use only the short keyid
9276 Sat Jan 16 09:27:30 CET 1999 Werner Koch <wk@isil.d.shuttle.de>
9278 * import.c (import_key_stream): New
9279 (import): New, moved most of import_keys here.
9280 * g10.c: New option --keyserver
9281 * mainproc.c (check_sig_and_print): Hook to import a pubkey.
9283 * pref.c pref.h : Removed
9287 Wed Jan 13 14:10:15 CET 1999 Werner Koch <wk@isil.d.shuttle.de>
9289 * armor.c (radix64_read): Print an error if a bad armor was detected.
9291 Wed Jan 13 12:49:36 CET 1999 Werner Koch <wk@isil.d.shuttle.de>
9293 * armor.c (radix64_read): Now handles malformed armors produced
9296 Tue Jan 12 11:17:18 CET 1999 Werner Koch <wk@isil.d.shuttle.de>
9298 * ringedit.c (find_keyblock_bysk): New.
9300 * skc_list.c (is_insecure): New.
9301 (build_sk_list): usage check for insecure keys.
9303 * import.c (chk_self_sigs): Add handling for subkeys.
9304 (delete_inv_parts): Skip unsigned subkeys
9306 * sig-check.c (do_check): Print info if the signature is older
9308 * keygen.c (generate_subkeypair): Fail on time warp.
9309 * sign.c (do_sign): Ditto.
9311 Sun Jan 10 15:10:02 CET 1999 Werner Koch <wk@isil.d.shuttle.de>
9313 * armor.c (fake_packet): Fixed not-dash-escaped bug.
9315 Sat Jan 9 16:02:23 CET 1999 Werner Koch <wk@isil.d.shuttle.de>
9317 * sig-check.c (do_check): Output time diff on error
9319 * status.c (STATUS_VALIDSIG): New.
9320 (is_status_enabled): New.
9321 * mainproc.c (check_sig_and_print): Issue that status message.
9323 * plaintext.c (special_md_putc): Removed
9325 * armor.c (armor_filter): print error for truncated lines.
9327 * free-packet.c (free_encrypted): Revomed call to set_block_mode.
9328 (free_plaintext): Ditto.
9330 Thu Jan 7 18:00:58 CET 1999 Werner Koch <wk@isil.d.shuttle.de>
9332 * pkclist.c (add_ownertrust): Fixed return value.
9334 * encr-data.c (decrypt_data): Disabled iobuf_set_limit and
9335 iobuf_pop_filter stuff.
9336 * compress.c (handle_compressed): Disabled iobuf_pop_filter.
9338 * packet.h (PKT_secret_key): Add is_primary flag.
9339 * parse-packet.c (parse_key): Set this flag.
9340 * passphrase.c (passphrase_to_dek): Kludge to print the primary
9341 keyid - changed the API: keyid must now hold 2 keyids.
9342 * getkey.c (get_primary_seckey): New.
9343 * seckey-cert.c (do_check): pass primary keyid to passphrase query
9345 * tbdio.c (open_db): removed the atexit
9346 (tdbio_set_dbname): and moved it to here.
9348 * armor.c: Rewrote large parts.
9350 Tue Dec 29 19:55:38 CET 1998 Werner Koch <wk@isil.d.shuttle.de>
9352 * revoke.c (gen_revoke): Removed compression.
9354 * pkclist.c (do_we_trust_pre): special check for revoked keys
9356 * trustdb.c (update_trust_record): Fixed revoke flag.
9358 Tue Dec 29 14:41:47 CET 1998 Werner Koch <wk@isil.d.shuttle.de>
9360 * misc.c (disable_core_dumps): Check for EINVAL (Atari)
9362 * getkey (merge_one_pk_and_selfsig): Fixed search of expiredate.
9363 (merge_keys_and_selfsig): Ditto.
9365 * free-packet.c (cmp_public_keys): cmp expire only for v3 packets
9366 (cmp_secret_keys): Ditto.
9367 (cmp_public_secret_key): Ditto.
9369 Wed Dec 23 17:12:24 CET 1998 Werner Koch <wk@isil.d.shuttle.de>
9371 * armor.c (find_header): Reset not_dashed at every header
9373 Wed Dec 23 13:18:14 CET 1998 Werner Koch <wk@isil.d.shuttle.de>
9375 * pkclist.c (add_ownertrust): Refresh validity values.
9377 * trustdb.c (enum_cert_paths_print): New arg refresh.
9379 * ringedit.c: Fixed problems fix keyrings
9380 * parse-packet.c (dbg_parse_packet): New debug functions.
9382 * getkey.c (getkey_disable_caches): New.
9383 * import.c (import_keys): Disable caches.
9385 Thu Dec 17 18:31:15 CET 1998 Werner Koch <wk@isil.d.shuttle.de>
9387 * misc.c (trap_unaligned): Only for glibc 1
9389 * sign.c (write_dash_escaped): Now escapes "From " lines
9390 * g10.c: New option --escape-from-lines
9392 * trustdb.c (sort_tsl_list): New
9393 (list_trust_path): Now prints sorted list.
9394 (enum_cert_paths): Likewise.
9395 (enum_cert_paths_print): New.
9396 (print_paths): New printing format.
9397 * pkclist.c (add_ownertrust): New arg quit.
9398 (edit_ownertrust): New quit selection and does not query
9399 the recipients ownertrust anymore.
9400 (add_ownertrust): Print the ceritficate path.
9403 Mon Dec 14 21:18:49 CET 1998 Werner Koch <wk@isil.d.shuttle.de>
9405 * parse-packet.c (parse_signature): Now checks for critical bit
9406 (parse_sig_subpkt): Splitted.
9407 (parse_one_sig_subpkt): New.
9408 * sig-check.c (do_check): handle critical bit.
9410 Sun Dec 13 14:10:56 CET 1998 Werner Koch <wk@isil.d.shuttle.de>
9412 * pcklist.c (select_algo_from_prefs): Preferences should
9413 now work (lost the != ? )
9415 Thu Dec 10 20:15:36 CET 1998 Werner Koch <wk@isil.d.shuttle.de>
9417 * ringedit.c (gdbm_store): Fix for inserts
9419 * g10.c (main): New option --export-all
9420 * export.c (export_pubkeys): New arg.
9421 (do_export): Now may skip old keys.
9423 * status.c: Minor patches for Sun's cc
9425 * keygen.c (ask_algo): Disabled v3 ElGamal choice, rearranged
9426 the numbers. Add a warning question when a sign+encrypt key
9429 * g10.c (do_not_use_RSA): Removed.
9430 * misc.c (print_pubkey_algo_note): New as replacement for the
9431 do_not_use_RSA() and chnaged all callers.
9432 (print_cipher_algo_note): New.
9433 (print_hash_algo_note): New.
9435 * cipher.c (write_header): Add a call to print_cipher_algo_note.
9436 * seckey-cert.c (protect_secret_key): Ditto
9437 * sign.c (do_sign): Add a call to print_digest_algo_note.
9439 * getkey.c (get_long_user_id_string): New.
9440 * mainproc.c (check_sig_and_print): Changed the format of the
9443 * encrypt.c (write_pubkey_enc_from_list): print used symmetric cipher.
9445 * pkclist.c (do_we_trust): Changed a message.
9447 Wed Dec 9 13:41:06 CET 1998 Werner Koch <wk@isil.d.shuttle.de>
9449 * misc.c (trap_unaligned) [ALPHA]: Only if UAC_SIGBUS is defined.
9451 * sign.c (write_dash_escaped): Add the forgotten patch by Brian Moore.
9453 * compress.c (do_uncompress): Fixed the inflating bug.
9456 Tue Dec 8 13:15:16 CET 1998 Werner Koch <wk@isil.d.shuttle.de>
9458 * trustdb.c (upd_uid_record): Now uses the newest self-signature
9459 (insert_trust_record): Now calls update with recheck set to true.
9460 (register_trusted_key): New.
9461 (verify_own_keys): Enhanced by list of trusted keys.
9463 * g10.c (main): Print a warning when a devel version is used.
9464 (main): New option --trusted-key
9466 * import.c (merge_blocks): Fixed merging of new user ids and
9467 added merging of subkeys.
9468 (append_uid): Ditto.
9469 (merge_keysig): New.
9471 * getkey.c (merge_one_pk_and_selfsig): Get the expiration time
9472 from the newest self-signature.
9473 (merge_keys_and_selfsig): Ditto.
9475 * free-packet.c (cmp_secret_key): New.
9478 Fri Nov 27 21:37:41 CET 1998 Werner Koch <wk@isil.d.shuttle.de>
9480 * g10.c: New option --lock-once
9481 * tdbio.c (open_db): Add an atexit
9483 (tdbio_sync): Add locking.
9484 (tdbio_end_transaction): Ditto.
9485 (put_record_into_cache): Ditto.
9486 * ringedit.c (keyring_copy): Ditto.
9488 (add_keyblock_resource): Add an atexit.
9490 Fri Nov 27 15:30:24 CET 1998 Werner Koch <wk@isil.d.shuttle.de>
9492 * armor.c (find_header): Another fix for clearsigs.
9494 Fri Nov 27 12:39:29 CET 1998 Werner Koch <wk@isil.d.shuttle.de>
9497 * status.c (display_help): Removed.
9498 * helptext.c: New and removed the N_() from all cpr_gets.
9501 Fri Nov 20 16:54:52 1998 Werner Koch (wk@isil.d.shuttle.de)
9503 * g10.c (main): New option --not-dash-escaped
9504 * sign.c (write_dashed_escaped): Ditto.
9505 * armor.c (find_header): Support for NotDashEscaped header.
9507 * getkey.c: print "disabled cache.." only if verbose is used.
9509 Thu Nov 19 07:17:31 1998 Werner Koch <werner.koch@guug.de>
9511 * parse-packet.c (dump_sig_subpkt): Fixed expire listing
9512 * getkey.c (merge_keys_and_selfsig): Fixed expire calculation.
9513 (merge_one_pk_and_selfsig): Ditto.
9514 * keyedit.c (menu_expire). Ditto.
9515 * keygen.c (keygen_add_key_expire): Ditto.
9516 (ask_expire_interval): New and changed all local function to use
9518 (keygen_add_key_expire): Opaque should now be a public key;
9519 changed all callers.
9521 * parse.packet.c (parse): use skip_rest to skip packets.
9523 * keyedit.c (keyedit_menu): New arg for cmdline cmds.
9525 Wed Nov 18 20:33:50 1998 Werner Koch (wk@isil.d.shuttle.de)
9527 * trustdb.c (check_trustdb): Now rechecks all gived userids.
9528 (collect_paths): Some fixes.
9529 (upd_pref_records): Skips empty items, evaluate all items.
9531 * parse-packet.c (dump_sig_subpkt): Better listing of prefs.
9532 (skip_packet): Now knows about marker packet
9534 * g10.c: removed cmd "--edit-sig".
9536 * pubring.asc: Updated.
9538 Sat Nov 14 14:01:29 1998 Werner Koch (wk@isil.d.shuttle.de)
9540 * g10.c (main): Changed syntax of --list-trust-path
9541 * trustdb.c (list_trust_path): Replaced max_depth by
9544 Fri Nov 13 07:39:58 1998 Werner Koch <werner.koch@guug.de>
9546 * trustdb.c (collect_paths): Removed a warning message.
9547 (enum_trust_web): Removed.
9548 (enum_cert_paths): New.
9549 * pkclist.c (add_ownertrust): Changed to use enum_cert_paths.
9550 (edit_ownertrust): Now list ceritficates on request.
9553 Wed Nov 11 18:05:44 1998 Werner Koch <werner.koch@guug.de>
9555 * g10.c (main): New option --max-cert-depth
9556 * tdbio.h: add new fields to ver and dir record.
9557 * tdbio.c: read/write/dump of these fields.
9558 (tdbio_db_matches_options): New.
9559 * trustdb.c: replaced MAC_CERT_DEPTH by opt.max_cert_depth.
9560 (do_check): cache validity and changed other functions
9561 to reset the cached value.
9563 * keylist.c (list_one): Now lists the ownertrust.
9564 * mainproc.c (list_node): Ditto.
9566 Tue Nov 10 10:08:59 1998 Werner Koch (wk@isil.d.shuttle.de)
9568 * g10.c (g10_exit): Now looks at the new g10_errors_seen.
9569 * mainproc.c (check_sig_and_print): Sets g10_errors_seen.
9571 * *.c : i18n many more strings.
9573 * ringedit.c (locate_keyblock_by_keyid): Add HAVE_LIBGDBM
9574 (locate_keyblock_by_fpr): Ditto.
9576 * g10.c (main): removed unsused "int errors".
9577 (main): Add new option --charset.
9579 * g10.c (main): special message for the unix newbie.
9581 Mon Nov 9 07:17:42 1998 Werner Koch <werner.koch@guug.de>
9583 * getkey.c (finish_lookup): Kludge to prefere algo 16.
9585 * trustdb.c (new_lid_table): Clear cached item.
9587 * status.c (cpr_get_utf8): New.
9588 * pkclist.c (build_pk_list): Uses this.
9590 Sun Nov 8 17:20:39 1998 Werner Koch (wk@isil.d.shuttle.de)
9592 * mainproc.c (check_sig_and_print): Why did I use strlen()-1
9593 in the printf? - This truncated the TZ.
9595 Sat Nov 7 15:57:28 1998 me,,, (wk@tobold)
9597 * getkey.c (lookup): Changes to support a read_next.
9598 (get_pubkey): Fixed a memory leak.
9600 * keylist.c (list_one): Now lists all matching user IDs.
9602 Tue Nov 3 16:19:21 1998 Werner Koch (wk@isil.d.shuttle.de)
9604 * keygen.c (ask_user_id): Now converted to UTF-8
9606 * g10.c (main): Kludge for pgp clearsigs and textmode.
9608 Fri Oct 30 16:40:39 1998 me,,, (wk@tobold)
9610 * signal.c (block_all_signals): New.
9611 (unblock_all_signals): New
9612 * tdbio.c (tdbio_end_transaction): Now blocks all signals.
9614 * trustdb.c (new_lid_table): Changed the representation of the
9615 former local_lid_info stuff.
9617 * trustdb.c (update_trust_record): Reorganized the whole thing.
9618 * sig-check.c (check_key_signature): Now handles class 0x28
9621 Wed Oct 28 18:56:33 1998 me,,, (wk@tobold)
9623 * export.c (do_export): Takes care of the exportable sig flag.
9625 Tue Oct 27 14:53:04 1998 Werner Koch (wk@isil.d.shuttle.de)
9627 * trustdb.c (update_trust_record): New "fast" parameter.
9629 Sun Oct 25 19:32:05 1998 Werner Koch (wk@isil.d.shuttle.de)
9631 * openfile.c (copy_options_File): New.
9632 * ringedit.c (add_keyblock_resource): Creates options file
9633 * tdbio.c (tdbio_set_dbname): Ditto.
9635 Sat Oct 24 14:10:53 1998 brian moore <bem@cmc.net>
9637 * mainproc.c (proc_pubkey_enc): Don't release the DEK
9638 (do_proc_packets): Ditto.
9640 Fri Oct 23 06:49:38 1998 me,,, (wk@tobold)
9642 * keyedit.c (keyedit_menu): Comments are now allowed
9644 * trustdb.c: Rewrote large parts.
9647 Thu Oct 22 15:56:45 1998 Michael Roth (mroth@nessie.de)
9649 * encode.c: (encode_simple): Only the plain filename without
9650 a given directory is stored in generated packets.
9651 (encode_crypt): Ditto.
9653 * sign.c: (sign_file) Ditto.
9656 Thu Oct 22 10:53:41 1998 Werner Koch (wk@isil.d.shuttle.de)
9658 * trustdb.c (update_trust_record): Add new optional arg.
9660 * import.c (import_keys): Add statistics output
9661 * trustdb.c (update_trustdb): Ditto.
9662 (insert_trustdb): Ditto.
9664 * tdbio.c (tdbio_begin_transaction): New.
9665 (tdbio_end_transaction): New.
9666 (tdbio_cancel_transaction): New.
9668 * g10.c (main): New option --quit.
9670 * trustdb.c (check_hint_sig): No tests for user-id w/o sig.
9671 This caused an assert while checking the sigs.
9673 * trustdb.c (upd_sig_record): Splitted into several functions.
9675 * import.c (import_keys): New arg "fast".
9676 * g10.c (main): New command --fast-import.
9678 Wed Oct 21 18:19:36 1998 Michael Roth <mroth@nessie.de>
9680 * ringedit.c (add_keyblock_resource): Directory is now created.
9681 * tdbio.c (tdbio_set_dbname): New info message.
9683 Wed Oct 21 11:52:04 1998 Werner Koch (wk@isil.d.shuttle.de)
9685 * trustdb.c (update_trustdb): released keyblock in loop.
9687 * keylist.c (list_block): New.
9688 (list_all): Changed to use list_block.
9690 * trustdb.c: Completed support for GDBM
9692 * sign.c (only_old_style): Changed the way force_v3 is handled
9694 (clearsign_file): Ditto.
9696 * keygen.c (has_invalid_email_chars): Splitted into mailbox and
9699 * keylist.c (list_one): Add a merge_keys_and_selfsig.
9700 * mainproc.c (proc_tree): Ditto.
9702 Sun Oct 18 11:49:03 1998 Werner Koch (wk@isil.d.shuttle.de)
9704 * sign.c (only_old_style): Add option force_v3_sigs
9705 (sign_file): Fixed a bug in sig->version
9706 (clearsign_file): Ditto.
9708 * parse-packet.c (dump_sig_subpkt): New
9710 * keyedit.c (menu_expire): New.
9711 * free-packet.c (cmp_signatures): New
9714 Sat Oct 17 10:22:39 1998 Werner Koch (wk@isil.d.shuttle.de)
9716 * armor.c: changed output line length from 72 to 64.
9718 * keyedit.c (fix_keyblock): New.
9720 Fri Oct 16 10:24:47 1998 Werner Koch (wk@isil.d.shuttle.de)
9722 * trustdb.c: Rewrote most.
9723 * tdbio.c: Add cache and generalized hash tables.
9725 * options.h (ENABLE_COMMENT_PACKETS): New but undef'ed.
9726 * encode.c, sign.c, keygen.c: Disabled comment packets.
9727 * export.c (do_export): Comment packets are never exported,
9728 except for those in the secret keyring.
9730 * g10.c (main): Removed option do-no-export-rsa; should be
9731 be replaced by a secpial tool.
9732 * export.c (do_export): Removed the code for the above option.
9734 * armor.c (find_header): Support for new only_keyblocks.
9735 * import.c (import_keys): Only looks for keyblock armors.
9737 * packet.h: replaced valid_days by expiredate and changed all users.
9738 * build-packet.c (do_public_key): calculates valid-days
9739 (do_secret_key): Ditto.
9740 * parse-packet.c (parse_key): expiredate is calucated from the
9741 valid_period in v3 packets.
9742 * keyid.c (do_fingerprint_md): calculates valid_dates.
9744 * keygen.c (add_key_expire): fixed key expiration time for v4 packets.
9746 * armor.c (find_header): A LF in the first 28 bytes
9747 was skipped for non-armored data.
9749 Thu Oct 8 11:35:51 1998 Werner Koch (wk@isil.d.shuttle.de)
9751 * armor.c (is_armored): Add test on old comment packets.
9753 * tdbio.c (tdbio_search_dir_bypk): fixed memory leak.
9755 * getkey.c: Changed the caching algorithms.
9757 Wed Oct 7 19:33:28 1998 Werner Koch (wk@isil.d.shuttle.de)
9759 * kbnodes.c (unused_nodes): New.
9761 Wed Oct 7 11:15:36 1998 Werner Koch (wk@isil.d.shuttle.de)
9763 * keyedit.c (sign_uids): Fixed a problem with SK which could caused
9764 a save of an unprotected key.
9765 (menu_adduid): Ditto.
9767 * keyedit.c (keyedit_menu): Prefs are now correctly listed for
9770 * trustdb.c (update_trust_record): New.
9771 (insert_trust_record): Now makes use of update_trust_record.
9773 Tue Oct 6 16:18:03 1998 Werner Koch (wk@isil.d.shuttle.de)
9775 * trustdb.c (read_record): replaces most of the tdbio_read_records.
9776 (write_record): Ditto.
9778 Sat Oct 3 11:01:21 1998 Werner Koch (wk@isil.d.shuttle.de)
9780 * keygen.c (ask_alogo): enable ElGamal enc-only only for addmode.
9782 Wed Sep 30 10:15:33 1998 Werner Koch (wk@isil.d.shuttle.de)
9784 * import.c (import_one): Fixed update of wrong keyblock.
9786 Tue Sep 29 08:32:08 1998 me,,, (wk@tobold)
9788 * mainproc.c (proc_plaintext): Display note for special filename.
9789 * plaintext.c (handle_plaintext): Suppress output of special file.
9791 Mon Sep 28 12:57:12 1998 Werner Koch (wk@isil.d.shuttle.de)
9793 * g10.c (verify_own_keys): Add warning if a key is not protected.
9795 * passphrase (hash_passphrase): Fixed iterated+salted mode and
9796 setup for keysizes > hashsize.
9798 * g10.c (main): New options: --s2k-{cipher,digest,mode}.
9800 Fri Sep 25 09:34:23 1998 Werner Koch (wk@isil.d.shuttle.de)
9802 * g10.c: Chnaged some help texts.
9804 Tue Sep 22 19:34:39 1998 Werner Koch (wk@isil.d.shuttle.de)
9806 * passphrase.c (read_passphrase_from_fd): fixed bug for long
9809 Mon Sep 21 11:28:05 1998 Werner Koch (wk@(none))
9811 * getkey.c (lookup): Add code to use the sub key if the primary one
9812 does not match the usage.
9814 * armor.c (armor_filter): New error message: no valid data found.
9815 (radix64_read): Changes to support multiple messages.
9817 * mainproc.c (add_onepass_sig): bug fix.
9819 Mon Sep 21 08:03:16 1998 Werner Koch (wk@isil.d.shuttle.de)
9821 * pkclist.c (do_we_trust): Add keyid to most messages.
9823 * passphrase.c (read_passphrase_from_fd): New.
9824 (have_static_passphrase): New
9825 (get_passphrase_fd): Removed.
9826 (set_passphrase_fd): Removed.
9827 * g10.c (main): passphrase is now read here.
9829 * keyedit.c (keyedit_menu): "help" texts should now translate fine.
9831 Mon Sep 21 06:40:02 1998 Werner Koch (wk@isil.d.shuttle.de)
9833 * encode.c (encode_simple): Now disables compression
9834 when --rfc1991 is used.
9835 (encode_crypt): Ditto.
9837 Fri Sep 18 16:50:32 1998 Werner Koch (wk@isil.d.shuttle.de)
9839 * getkey.c (merge_key_and_selfsig): New.
9841 Fri Sep 18 10:20:11 1998 Werner Koch (wk@isil.d.shuttle.de)
9843 * pkclist.c (select_algo_from_prefs): Removed 3DES kludge.
9845 * seskey.c (make_session_key): Fixed SERIOUS bug introduced
9846 by adding the weak key detection code.
9848 * sign.c (sign_file): Changed aremor header in certain cases.
9850 Tue Sep 15 17:52:55 1998 Werner Koch (wk@isil.d.shuttle.de)
9852 * mainproc.c (check_sig_and_print): Replaced ascime by asctimestamp.
9854 Mon Sep 14 11:40:52 1998 Werner Koch (wk@isil.d.shuttle.de)
9856 * seskey.c (make_session_key): Now detects weak keys.
9858 * trustdb (clear_trust_checked_flag): New.
9860 * plaintext.c (handle_plaintext): Does no anymore suppress CR from
9861 cleartext signed messages.
9863 Sun Sep 13 12:54:29 1998 Werner Koch (wk@isil.d.shuttle.de)
9865 * trustdb.c (insert_trust_record): Fixed a stupid bug in the free
9868 Sat Sep 12 15:49:16 1998 Werner Koch (wk@isil.d.shuttle.de)
9870 * status.c (remove_shmid): New.
9871 (init_shm_comprocess): Now sets permission to the real uid.
9873 Wed Sep 9 11:15:03 1998 Werner Koch (wk@isil.d.shuttle.de)
9875 * packet.h (PKT_pubkey_enc): New flah throw_keyid, and add logic to
9877 * g10.c (main): New Option --throw-keyid
9879 * getkey.c (enum_secret_keys): Add new ar and changed all callers.
9881 Tue Sep 8 20:04:09 1998 Werner Koch (wk@isil.d.shuttle.de)
9883 * delkey.c (delete_key): Moved from keyedit.c.
9885 Mon Sep 7 16:37:52 1998 Werner Koch (wk@isil.d.shuttle.de)
9887 * build-packet.c (calc_length_header): New arg new_ctb to correctly
9888 calculate the length of new style packets.
9890 * armor.c (is_armored): Checks for symkey_enc packets.
9892 * pkclist.c (select_algo_from_prefs): 3DEs substitute is now CAST5.
9894 Tue Aug 11 17:54:50 1998 Werner Koch (wk@isil.d.shuttle.de)
9896 * build-packet.c (do_secret_key): Fixed handling of old keys.
9898 * getkey.c (compare_name): Fixed exact and email matching
9900 * openfile.c (open_outfile): Changed arguments and all callers.
9902 Tue Aug 11 09:14:35 1998 Werner Koch (wk@isil.d.shuttle.de)
9904 * encode.c (encode_simple): Applied option set-filename and comment.
9905 (encode_crypt): Ditto.
9906 * sign.c (sign_file): Ditto.
9907 * armor.c (armor_filter): Applied option comment.
9909 * encode.c (encode_crypt): Moved init_packet to the begin.
9910 (encode_simple): add an init_packet().
9912 * comment (write_comment): Now enforces a hash sign as the 1st byte.
9914 * import.c (import_one): Add explanation for "no user ids".
9916 * compress.c (do_uncompress): Applied Brian Warner's patch to support
9919 * trustdb.c (check_trust): Fixed a problem after inserting new keys.
9921 * getkey (lookup): do not return the primary key if usage is given
9922 (lookup_sk): Ditto and take usage into account.
9924 * status.c (cpr_get_answer_is_yes): add display_help.
9926 Mon Aug 10 10:11:28 1998 Werner Koch (wk@isil.d.shuttle.de)
9928 * getkey.c (lookup_sk): Now always returns the primary if arg
9931 (get_pubkey_byname): Now returns the primary key
9932 (get_seckey_byname): Ditto.
9935 Mon Aug 10 08:34:03 1998 Werner Koch (wk@isil.d.shuttle.de)
9937 * keyid.c (pubkey_letter): ELG_E is now a small g.
9939 Sat Aug 8 17:26:12 1998 Werner Koch (wk@isil.d.shuttle.de)
9941 * openfile (overwrite_filep): Changed semantics and all callers.
9943 Sat Aug 8 12:17:07 1998 Werner Koch (wk@isil.d.shuttle.de)
9945 * status.c (display_help): New.
9947 Thu Aug 6 16:30:41 1998 Werner Koch,mobil,,, (wk@tobold)
9949 * seskey.c (encode_session_key): Now uses get_random_bits().
9951 Thu Aug 6 07:34:56 1998 Werner Koch,mobil,,, (wk@tobold)
9953 * ringedit.c (keyring_copy): No more backupfiles for
9954 secret keyrings and add additional warning in case of
9955 a failed secret keyring operation.
9957 Wed Aug 5 11:54:37 1998 Werner Koch (wk@isil.d.shuttle.de)
9959 * g10.c (check_opts): Moved to main. Changed def_cipher_algo
9960 semantics and chnaged all users.
9962 * pubkey-enc.c (get_sssion_key): New informational output
9965 * parse-packet.c (parse_symkeyenc): Fixed salted+iterated S2K
9967 * build-packet.c (do_secret_key): Ditto.
9968 (do_symkey_enc): Ditto.
9970 Tue Aug 4 08:59:10 1998 Werner Koch (wk@isil.d.shuttle.de)
9972 * getkey.c (enum_secret_keys): Now returns only primary keys.
9974 * getkey (lookup): Now sets the new namehash field.
9976 * parse-packet.c (parse_sig_subpkt2): New.
9978 * sign.c (sign_file): one-pass sigs are now emiited reverse.
9979 Preference data is considered when selecting the compress algo.
9981 Wed Jul 29 12:53:03 1998 Werner Koch (wk@isil.d.shuttle.de)
9983 * free-packet.c (copy_signature): New.
9985 * keygen.c (generate_subkeypair): rewritten
9986 * g10.c (aKeyadd): Removed option --add-key
9988 Mon Jul 27 10:37:28 1998 Werner Koch (wk@isil.d.shuttle.de)
9990 * seckey-cert.c (do_check): Additional check on cipher blocksize.
9991 (protect_secret_key): Ditto.
9992 * encr-data.c: Support for other blocksizes.
9993 * cipher.c (write_header): Ditto.
9995 Fri Jul 24 16:47:59 1998 Werner Koch (wk@isil.d.shuttle.de)
9997 * kbnode.c (insert_kbnode): Changed semantics and all callers.
9998 * keyedit.c : More or less a complete rewrite
10000 Wed Jul 22 17:10:04 1998 Werner Koch (wk@isil.d.shuttle.de)
10002 * build-packet.c (write_sign_packet_header): New.
10004 Tue Jul 21 14:37:09 1998 Werner Koch (wk@isil.d.shuttle.de)
10006 * import.c (import_one): Now creates a trustdb record.
10008 * g10.c (main): New command --check-trustdb
10010 Mon Jul 20 11:15:07 1998 Werner Koch (wk@isil.d.shuttle.de)
10012 * genkey.c (generate_keypair): Default key is now DSA with
10013 encryption only ElGamal subkey.
10015 Thu Jul 16 10:58:33 1998 Werner Koch (wk@isil.d.shuttle.de)
10017 * keyid.c (keyid_from_fingerprint): New.
10018 * getkey.c (get_pubkey_byfprint): New.
10020 Tue Jul 14 18:09:51 1998 Werner Koch (wk@isil.d.shuttle.de)
10022 * keyid.c (fingerprint_from_pk): Add argument and changed all callers.
10023 (fingerprint_from_sk): Ditto.
10025 Tue Jul 14 10:10:03 1998 Werner Koch (wk@isil.d.shuttle.de)
10027 * plaintext.c (handle_plaintext): Now returns create error if
10028 the file could not be created or the user responded not to overwrite
10030 * mainproc.c (proc_plaintext): Tries again if the file could not
10031 be created to check the signature without output.
10033 * misc.c (disable_core_dumps): New.
10034 * g10.c (main): disable coredumps for gpg
10036 * g10.c (MAINTAINER_OPTIONS): New to disable some options
10038 Mon Jul 13 16:47:54 1998 Werner Koch (wk@isil.d.shuttle.de)
10040 * plaintext.c (hash_datafiles): New arg for better support of
10041 detached sigs. Changed all callers.
10042 * mainproc.c (proc_signature_packets): Ditto.
10044 * g10.c (main): New option "compress-sigs"
10045 * sig.c (sign_file): detached signatures are not anymore compressed
10046 unless the option --compress-sigs is used.
10048 Thu Jul 9 19:54:54 1998 Werner Koch (wk@isil.d.shuttle.de)
10050 * armor.c: Fixes to allow zero length cleartext signatures
10052 Thu Jul 9 14:52:47 1998 Werner Koch (wk@isil.d.shuttle.de)
10054 * g10.c (build_list): Now drops setuid.
10055 (main): Changed the way keyrings and algorithms are registered .
10057 Wed Jul 8 14:17:30 1998 Werner Koch (wk@isil.d.shuttle.de)
10059 * packet.h (PKT_public_key): Add field keyid.
10060 * parse-packet.c (parse_key): Reset the above field.
10061 * keyid.c (keyid_from_pk): Use above field as cache.
10063 * tdbio.c, tdbio.h: New
10064 * trustdb.c: Moved some functions to tdbio.c.
10065 (print_keyid): New.
10067 * pkclist.c (check_signatures_trust): New.
10069 Wed Jul 8 10:45:28 1998 Werner Koch (wk@isil.d.shuttle.de)
10071 * plaintext.c (special_md_putc): New.
10072 (handle_plaintext): add clearsig argument
10073 * mainproc.c (proc_plaintext): detection of clearsig
10074 * sign.c (write_dased_escaped): Changed clearsig format
10076 Tue Jul 7 18:56:19 1998 Werner Koch (wk@isil.d.shuttle.de)
10078 * armor.c (find_header): Now makes sure that there is only one
10079 empty line for clearsigs, as this is what OP now says.
10081 Mon Jul 6 13:09:07 1998 Werner Koch (wk@isil.d.shuttle.de)
10083 * g10.c (main): New option default-secret-key
10084 * getkey.c (get_seckey_byname): support for this option.
10086 Mon Jul 6 09:03:49 1998 Werner Koch (wk@isil.d.shuttle.de)
10088 * getkey.c (add_keyring): Keyrings are now added to end of the
10089 list of keyrings. The first added keyringwill be created.
10090 (add_secret_keyring): Likewise.
10092 * ringedit.c (add_keyblock_resource): Files are created here.
10094 * g10.c (aNOP): Removed
10096 * getkey.c (lookup): Add checking of usage for name lookups
10097 * packet.h (pubkey_usage): Add a field which may be used to store
10098 usage capabilities.
10099 * pkclist.c (build_pk_list): getkey now called with usage arg.
10100 * skclist.c (build_sk_list): Ditto.
10102 * sign.c (clearsign_file): Fixed "Hash:" headers
10104 Sat Jul 4 13:33:31 1998 Werner Koch (wk@isil.d.shuttle.de)
10106 * trustdb.c (list_ownertrust): New.
10107 * g10.c (aListOwnerTrust): New.
10109 * g10.c (def_pubkey_algo): Removed.
10111 * trustdb.c (verify_private_data): Removed and also the call to it.
10112 (sign_private_data): Removed.
10114 Fri Jul 3 13:26:10 1998 Werner Koch (wk@isil.d.shuttle.de)
10116 * g10.c (aEditKey): was aEditSig. Changed usage msg.
10118 * keyedit.c: Done some i18n stuff.
10120 * g10.c (do_not_use_RSA): New.
10121 * sign.c (do_sign): Add call to above function.
10122 * encode.c (write_pubkey_enc_from_list): Ditto.
10124 Thu Jul 2 21:01:25 1998 Werner Koch (wk@isil.d.shuttle.de)
10126 * parse-packet.c: Now is able sto store data of unknown
10128 * free-packet.c: Support for this.
10129 * build-packet.c: Can write data of packet with unknown algos.
10131 Thu Jul 2 11:46:36 1998 Werner Koch (wk@isil.d.shuttle.de)
10133 * parse-packet.c (parse): fixed 4 byte length header
10135 Wed Jul 1 12:36:55 1998 Werner Koch (wk@isil.d.shuttle.de)
10137 * packet.h (new_ctb): New field for some packets
10138 * build-packet.c (build_packet): Support for new_ctb
10139 * parse-packet.c (parse): Ditto.
10141 Mon Jun 29 12:54:45 1998 Werner Koch (wk@isil.d.shuttle.de)
10143 * packet.h: changed all "_cert" to "_key", "subcert" to "subkey".
10145 * free-packet.c (free_packet): Removed memory leak for subkeys.
10147 Sun Jun 28 18:32:27 1998 Werner Koch (wk@isil.d.shuttle.de)
10149 * import.c (import_keys): Renamed from import_pubkeys.
10150 (import_secret_one): New.
10152 * g10.c (aExportSecret): New.
10154 * export.c (export_seckeys): New.
10156 * parse-packet.c (parse_certificate): Cleaned up.
10157 (parse_packet): Trust packets are now considered as unknown.
10158 (parse_pubkey_warning): New.
10160 Fri Jun 26 10:37:35 1998 Werner Koch (wk@isil.d.shuttle.de)
10162 * keygen.c (has_invalid_email_chars): New.
10164 Wed Jun 24 16:40:22 1998 Werner Koch (wk@isil.d.shuttle.de)
10166 * armor.c (armor_filter): Now creates valid onepass_sig packets
10167 with all detected hash algorithms.
10168 * mainproc.c (proc_plaintext): Now uses the hash algos as specified
10169 in the onepass_sig packets (if there are any)
10171 Mon Jun 22 11:54:08 1998 Werner Koch (wk@isil.d.shuttle.de)
10173 * plaintext.c (handle_plaintext): add arg to disable outout
10174 * mainproc.c (proc_plaintext): disable output when in sigs_only mode.
10176 Thu Jun 18 13:17:27 1998 Werner Koch (wk@isil.d.shuttle.de)
10178 * keygen.c: Removed all rsa packet stuff, chnaged defaults
10179 for key generation.
10181 Sun Jun 14 21:28:31 1998 Werner Koch (wk@isil.d.shuttle.de)
10183 * misc.c (checksum_u16): Fixed a stupid bug which caused a
10184 wrong checksum calculation for the secret key protection and
10185 add a backward compatibility option.
10186 * g10.c (main): Add option --emulate-checksum-bug.
10188 Thu Jun 11 13:26:44 1998 Werner Koch (wk@isil.d.shuttle.de)
10190 * packet.h: Major changes to the structure of public key material
10191 which is now stored in an array and not anaymore in a union of
10192 algorithm specific structures. These is needed to make the system
10193 more extendable and makes a lot of stuff much simpler. Changed
10194 all over the system.
10196 * dsa.c, rsa.c, elg.c: Removed.
10198 Wed Jun 10 07:22:02 1998 Werner Koch,mobil,,, (wk@tobold)
10200 * g10.c ("load-extension"): New option.
10202 Mon Jun 8 22:23:37 1998 Werner Koch (wk@isil.d.shuttle.de)
10204 * seckey-cert.c (do_check): Removed cipher constants
10205 (protect_secret_key): Ditto.
10207 Fri May 29 10:00:28 1998 Werner Koch (wk@isil.d.shuttle.de)
10209 * trustdb.c (query_trust_info): New.
10210 * keylist.c (list_one): Add output of trust info
10211 * mainproc (list_node): ditto.
10212 * g10.c (main): full trustdb init if -with-colons and any of the
10215 Thu May 28 10:34:42 1998 Werner Koch (wk@isil.d.shuttle.de)
10217 * status.c (STATUS_RSA_OR_IDEA): New.
10218 * sig-check.c (check_signature): Output special status message.
10219 * pubkey-enc.c (get_session_key): Ditto.
10221 * mainproc.c (check_sig_and_print): Changed format of output.
10222 * passpharse.c (passphrase_to_dek): Likewise.
10224 Wed May 27 13:46:48 1998 Werner Koch (wk@isil.d.shuttle.de)
10226 * g10.c (aListSecretKeys): New option --list-secret-keys
10227 * keylist.c (std_key_list): Renamed to public_key_list.
10228 (secret_key_list): New
10229 (list_one, list_all): Add support for secret keys.
10230 * getkey.c (get_secret_keyring): New.
10231 * mainproc.c (list_node): Add option --with-colons for secret keys
10233 * sig-check.c (check_key_signature): detection of selfsigs
10234 * mainproc.c (list_node): fixed listing.
10236 * g10.c (aListSecretKeys): New option --always-trust
10237 * pkclist.c (do_we_trust): Override per option added
10239 * status.c (write_status_text): Add a prefix to every output line.
10241 Wed May 27 07:49:21 1998 Werner Koch (wk@isil.d.shuttle.de)
10243 * g10 (--compress-keys): New.
10244 * options.h (compress_keys): New.
10245 * export.c (export_pubkeys): Only compresses with the new option.
10247 Tue May 26 11:24:33 1998 Werner Koch (wk@isil.d.shuttle.de)
10249 * passphrase.c (get_last_passphrase): New
10250 (set_next_passphrase): New.
10251 (passphrase_to_dek): add support for the above functions.
10252 * keyedit.c (make_keysig_packet): Add sigclass 0x18,
10253 changed all callers due to a new argument.
10254 * keygen.c (write_keybinding): New
10255 (generate_subkeypair): Add functionality
10256 (ask_algo, ask_keysize, ask_valid_days): Broke out of generate_keypair
10257 (ask_user_id, ask_passphrase): Ditto.
10259 Thu May 21 11:26:13 1998 Werner Koch (wk@isil.d.shuttle.de)
10261 * g10.c,gpgd.c (main): Does now return an int, so that egcs does
10264 * armor.c (fake_packet): Removed erro message and add a noticed
10265 that this part should be fixed.
10267 * sign.c (sign_file): Compression now comes in front of encryption.
10268 * encode.c (encode_simple): Ditto.
10269 (encode_crypt): Ditto.
10271 Tue May 19 16:18:19 1998 Werner Koch (wk@isil.d.shuttle.de)
10273 * armor.c (fake_packet): Changed assertion to log_error
10275 Sat May 16 16:02:06 1998 Werner Koch (wk@isil.d.shuttle.de)
10277 * build-packet.c (build_packet): Add SUBKEY packets.
10279 Fri May 15 17:57:23 1998 Werner Koch (wk@isil.d.shuttle.de)
10281 * sign.c (hash_for): New and used in all places here.
10282 * main.h (DEFAULT_): new macros.
10283 * g10.c (opt.def_digest_algo): Now set to 0
10285 * compress.c (init_compress): Add support for algo 1
10286 * options.h (def_compress_algo): New
10287 * g10.c (main): New option --compress-algo
10289 Fri May 15 13:23:59 1998 Werner Koch (wk@isil.d.shuttle.de)
10291 * g10.c (print_mds): New feature to print only one hash,
10292 chnaged formatting.
10294 Thu May 14 15:36:24 1998 Werner Koch (wk@isil.d.shuttle.de)
10296 * misc.c (trap_unaligned) [__alpha__]: New
10297 * g10.c (trap_unaligned): Add call to this to track down SIGBUS
10298 on Alphas (to avoid the slow emulation code).
10300 Wed May 13 11:48:27 1998 Werner Koch (wk@isil.d.shuttle.de)
10302 * build-packet.c (do_signature): Support for v4 pakets.
10303 * keyedit.c (make_keysig_packet): Ditto.
10304 * build-packet.c (build_sig_subpkt_from_sig): New.
10305 (build_sig_subpkt): New.
10307 * elg.c (g10_elg_sign): removed keyid_from_skc.
10308 * dsa.c (g10_dsa_sign): Ditto.
10309 * rsa.c (g10_rsa_sign): Ditto.
10310 * keyedit.c (make_keysig_packet): Add call to keyid_from_skc
10312 * sign.c (clearsign_file): Support for v4 signatures.
10313 (sign_file): Ditto.
10315 Wed May 6 09:31:24 1998 Werner Koch (wk@isil.d.shuttle.de)
10317 * parse-packet.c (do_parse): add support for 5 byte length leader.
10318 (parse_subpkt): Ditto.
10319 * build-packet.c (write_new_header): Ditto.
10321 * packet.h (SIGSUBPKT_): New constants.
10322 * parse-packet.c (parse_sig_subpkt): Changed name, made global,
10323 and arg to return packet length, chnaged all callers
10326 Tue May 5 22:11:59 1998 Werner Koch (wk@isil.d.shuttle.de)
10328 * keygen.c (gen_dsa): New.
10329 * build_packet.c (do_secret_cert): Support for DSA
10331 Mon May 4 19:01:25 1998 Werner Koch (wk@isil.d.shuttle.de)
10333 * compress.c: doubled buffer sizes
10334 * parse-packet.c (do_plaintext): now uses iobuf_read/write.
10336 Mon May 4 09:35:53 1998 Werner Koch (wk@isil.d.shuttle.de)
10338 * seskey.c (encode_md_value): Add optional argument hash_algo,
10339 changed all callers.
10341 * passphrase.c (make_dek_from_passphrase): Removed
10342 * (get_passhrase_hash): Changed name to passphrase_to_dek, add arg,
10343 changed all callers.
10345 * all: Introduced the new ELG identifier and added support for the
10346 encryption only one (which is okay to use by GNUPG for signatures).
10348 Sun May 3 17:50:26 1998 Werner Koch (wk@isil.d.shuttle.de)
10350 * packet.h (PKT_OLD_COMMENT): New name for type 16.
10351 * parse-packet.c (parse_comment): Now uses type 61
10353 Fri May 1 12:44:39 1998 Werner Koch,mobil,,, (wk@tobold)
10355 * packet.h (count): Chnaged s2k count from byte to u32.
10356 * seckey-cert.c (do_check): Changed s2k algo 3 to 4, changed
10358 * build-packet.c (do_secret_cert): ditto.
10359 * parse-packet.c (parse_certificate): ditto.
10361 * parse-packet.c (parse_symkeyenc): New.
10362 * build-packet.c (do_symkey_enc): New.
10364 Thu Apr 30 16:33:34 1998 Werner Koch (wk@isil.d.shuttle.de)
10366 * sign.c (clearsign_file): Fixed "Hash: " armor line.
10368 Tue Apr 28 14:27:42 1998 Werner Koch (wk@isil.d.shuttle.de)
10370 * parse-packet.c (parse_subpkt): Some new types.
10372 Mon Apr 27 12:53:59 1998 Werner Koch (wk@isil.d.shuttle.de)
10374 * g10.c (main): Add option --skip-verify.
10375 * mainproc.c (check_sig_and_print): Ditto.
10377 * g10.c (print_mds): Add output for Tiger.
10379 * sign.c (sign_file): Now uses partial length headers if used
10380 in canonical textmode (kludge to fix a bug).
10382 * parse-packet.c (parse_certificate): Changed BLOWFISH id.
10383 * pubkey-enc.c (get_session_key): Ditto.
10384 * seskey.c (make_session_key): Ditto.
10385 * seckey-cert.c (protect_secret_key,do_check): Add BLOWFISH160.
10387 Fri Apr 24 17:38:48 1998 Werner Koch,mobil,,, (wk@tobold)
10389 * sig-check.c (check_key_signature): Add sig-class 0x14..0x17
10390 * keyedit.c (sign-key): Some changes to start with support of
10391 the above new sig-classes.
10393 Wed Apr 22 09:01:57 1998 Werner Koch,mobil,,, (wk@tobold)
10395 * getkey.c (compare_name): add email matching
10397 Tue Apr 21 16:17:12 1998 Werner Koch,mobil,,, (wk@tobold)
10399 * armor.c (armor_filter): fixed missing last LF before CSUM.
10401 Thu Apr 9 11:35:22 1998 Werner Koch (wk@isil.d.shuttle.de)
10403 * seckey-cert.c (do_check): New; combines all the check functions
10406 * sign.c: removed all key management functions
10409 Thu Apr 9 09:49:36 1998 Werner Koch (wk@isil.d.shuttle.de)
10411 * import.c (chk_self_sigs): Changed an error message.
10413 Wed Apr 8 16:19:39 1998 Werner Koch (wk@isil.d.shuttle.de)
10415 * packet.h: packet structs now uses structs from the pubkey,
10416 removed all copy operations from packet to pubkey structs.
10418 Wed Apr 8 13:40:33 1998 Werner Koch (wk@isil.d.shuttle.de)
10420 * trustdb.c (verify_own_certs): Fixed "public key not found".
10422 * getkey.c (key_byname): New, combines public and secret key search.
10424 * pkclist.c (build_pkc_list): Add new arg usage, changed all callers.
10425 * skclist.c (build_skc_list): Likewise.
10427 * ringedit.c (find_keyblock, keyring_search2): Removed.
10429 Wed Apr 8 09:47:21 1998 Werner Koch (wk@isil.d.shuttle.de)
10431 * sig-check.c (do_check): Applied small fix from Ulf Möller.
10433 Tue Apr 7 19:28:07 1998 Werner Koch (wk@isil.d.shuttle.de)
10435 * cipher.c, encr-data.c, seckey-cert.c: Now uses cipher_xxxx
10436 functions instead of blowfish_xxx or cast_xxx
10438 Tue Apr 7 11:04:02 1998 Werner Koch (wk@isil.d.shuttle.de)
10440 * Makefile.am (g10maint.o): Changed the way it is created.
10442 Mon Apr 6 11:17:08 1998 Werner Koch (wk@isil.d.shuttle.de)
10445 * keygen.c (checksum,checksum_u16,checksum_mpi): Moved to misc.c
10446 * seckey-cert.c: Kludge for wrong ELG checksum implementation.
10448 Sat Apr 4 20:07:01 1998 Werner Koch (wk@isil.d.shuttle.de)
10450 * cipher.c (cipher_filter): Support for CAST5
10451 * encr-data.c (decode_filter): Ditto.
10452 (decrypt_data): Ditto.
10453 * seskey.c (make_session_key): Ditto.
10454 * seckey-cert.c (check_elg, check_dsa): Ditto,
10455 (protect_secret_key): Ditto.
10456 * pubkey-enc.c (get_session_key): Ditto.
10457 * passphrase.c (hash_passphrase): Ditto.
10459 Thu Apr 2 20:22:35 1998 Werner Koch (wk@isil.d.shuttle.de)
10463 Thu Apr 2 10:38:16 1998 Werner Koch (wk@isil.d.shuttle.de)
10465 * keygen.c (generate_keypair): Add valid_days stuff.
10466 * trustdb.c (check_trust): Add check for valid_days.
10468 Wed Apr 1 16:15:58 1998 Werner Koch (wk@isil.d.shuttle.de)
10470 * keygen.c (generate_keypair): Addional question whether the
10471 selected large keysize is really needed.
10473 Wed Apr 1 15:56:33 1998 Werner Koch (wk@isil.d.shuttle.de)
10475 * seckey-cert.c (protect_secret_key): merged protect_xxx to here.
10477 Wed Apr 1 10:34:46 1998 Werner Koch (wk@isil.d.shuttle.de)
10479 * Makefile.am (g10maint.c): Changed creation rule, so that it works
10480 on FreeBSD (missing CFLAGS).
10482 * parse-packet.c (parse_subkey): Removed.
10484 Thu Mar 19 15:22:36 1998 Werner Koch (wk@isil.d.shuttle.de)
10486 * ringedit.c (keyring_enum): Fixed problem with reading too
10487 many packets. Add support to read secret keyrings.
10489 * getkey.c (scan_keyring): Removed
10490 (lookup): New to replace scan_keyring.
10491 (scan_secret_keyring): Removed.
10494 Wed Mar 18 11:47:34 1998 Werner Koch (wk@isil.d.shuttle.de)
10496 * ringedit.c (enum_keyblocks): New read mode 11.
10498 * keyid.c (elg_fingerprint_md): New and changed all other functions
10499 to call this if the packet version is 4 or above.
10501 Tue Mar 17 20:46:16 1998 Werner Koch (wk@isil.d.shuttle.de)
10503 * parse-packet.c (parse_certificate): Add listing support for subkeys.
10505 Tue Mar 17 20:32:22 1998 Werner Koch (wk@isil.d.shuttle.de)
10507 * armor.c (is_armored): Allow marker packet.
10509 Thu Mar 12 13:36:49 1998 Werner Koch (wk@isil.d.shuttle.de)
10511 * trustdb.c (check_trust): Checks timestamp of pubkey.
10512 * sig-check. (do_check): Compares timestamps.
10514 Tue Mar 10 17:01:56 1998 Werner Koch (wk@isil.d.shuttle.de)
10516 * g10.c (main): Add call to init_signals.
10519 Mon Mar 9 12:43:42 1998 Werner Koch (wk@isil.d.shuttle.de)
10522 * packet.h, free-packet.c, parse-packet.c : Add support for DSA
10523 * sig-check.c, getkey.c, keyid.c, ringedit.c: Ditto.
10524 * seckey-cert.c: Ditto.
10526 * packet.h : Moved .digest_algo of signature packets to outer
10527 structure. Changed all references
10529 Sun Mar 8 13:06:42 1998 Werner Koch (wk@isil.d.shuttle.de)
10531 * openfile.c : Support for stdout filename "-".
10533 * mainproc.c (check_sig_and_print): Enhanced status output:
10534 * status.c (write_status_text): New.
10536 Fri Mar 6 16:10:54 1998 Werner Koch (wk@isil.d.shuttle.de)
10538 * kbnode.c (clone_kbnode): Fixed private_flag.
10540 * mainproc.c (list_node): Output of string "Revoked" as user-id.
10542 Fri Mar 6 14:26:39 1998 Werner Koch (wk@isil.d.shuttle.de)
10544 * g10.c (main): Add userids to "-kv" and cleaned up this stuff.
10546 Fri Mar 6 12:45:58 1998 Werner Koch (wk@isil.d.shuttle.de)
10548 * g10.c (main): Changed semantics of the list-... commands
10549 and added a new one. Removed option "-d"
10553 * trustdb.c (init_trustdb): Autocreate directory only if it ends
10556 Thu Mar 5 12:12:11 1998 Werner Koch (wk@isil.d.shuttle.de)
10558 * mainproc.c (do_proc_packets): New. Common part of proc_packet.
10559 (proc_signature_packets): special version to handle signature data.
10561 * g10.c (aVerify): New.
10562 * plaintext.c (hash_datafiles): New.
10563 * compress.c (handle_compressed): Add callback arg, changed caller.
10565 Thu Mar 5 10:20:06 1998 Werner Koch (wk@isil.d.shuttle.de)
10567 * g10.c: Is nom the common source for gpg and gpgm
10568 * g10maint.c: Removed
10569 * Makefile.am: Add rule to build g10maint.c
10571 Thu Mar 5 08:43:59 1998 Werner Koch (wk@isil.d.shuttle.de)
10573 * g10.c (main): Changed the way clear text sigs are faked.
10575 Wed Mar 4 19:47:37 1998 Werner Koch (wk@isil.d.shuttle.de)
10577 * g10maint.c (aMuttKeyList): New
10580 Wed Mar 4 17:20:33 1998 Werner Koch (wk@isil.d.shuttle.de)
10582 * getkey.c (get_pubkey_byname): Kludge to allow 0x prefix.
10584 Tue Mar 3 13:46:55 1998 Werner Koch (wk@isil.d.shuttle.de)
10586 * g10maint.c (main): New option --gen-random.
10588 Tue Mar 3 09:50:08 1998 Werner Koch (wk@isil.d.shuttle.de)
10590 * g10.c (aDeleteSecretKey): New.
10591 (aEditSig): Add option "--edit-key" as synonym for "--edit-sig".
10592 (aDeleteSecretKey): New.
10593 * getkey.c (seckey_available): New.
10594 * sign.c (delete_key): Enhanced to delete secret keys, changed all
10597 Mon Mar 2 21:23:48 1998 Werner Koch (wk@isil.d.shuttle.de)
10599 * pkc_list.c (build_pkc_list): Add interactive input of user ID.
10601 Mon Mar 2 20:54:05 1998 Werner Koch (wk@isil.d.shuttle.de)
10603 * pkclist.c (do_we_trust_pre): New.
10604 (add_ownertrust): Add message.
10605 * trustdb.c (enum_trust_web): Quick fix.
10607 Mon Mar 2 13:50:53 1998 Werner Koch (wk@isil.d.shuttle.de)
10609 * g10.c (main): New action aDeleteKey
10610 * sign.c (delete_key): New.
10612 Sun Mar 1 16:38:58 1998 Werner Koch (wk@isil.d.shuttle.de)
10614 * trustdb.c (do_check): No returns TRUST_UNDEFINED instead of
10617 Fri Feb 27 18:14:03 1998 Werner Koch (wk@isil.d.shuttle.de)
10619 * armor.c (find_header): Removed trailing CR on headers.
10621 Fri Feb 27 18:02:48 1998 Werner Koch (wk@isil.d.shuttle.de)
10623 * ringedit.c (keyring_search) [MINGW32]: Open and close file here
10624 because rename does not work on open files. Chnaged callers.
10626 Fri Feb 27 16:43:11 1998 Werner Koch (wk@isil.d.shuttle.de)
10628 * sig-check.c (do_check): Add an md_enable.
10629 * mainproc.c (do_check_sig): Use md_open in case of detached sig
10630 (proc_tree): Take detached sigs into account.
10632 Fri Feb 27 15:22:46 1998 Werner Koch (wk@isil.d.shuttle.de)
10634 * g10.c (main): Make use of GNUPGHOME envvar.
10635 * g10main.c (main): Ditto.
10637 Wed Feb 25 11:40:04 1998 Werner Koch (wk@isil.d.shuttle.de)
10639 * plaintext.c (ask_for_detached_datafile): add opt.verbose to
10642 * openfile.c (open_sigfile): Try also name ending in ".asc"
10644 Wed Feb 25 08:41:00 1998 Werner Koch (wk@isil.d.shuttle.de)
10646 * keygen.c (generate_keypair): Fixed memory overflow.
10648 Tue Feb 24 15:51:55 1998 Werner Koch (wk@isil.d.shuttle.de)
10650 * parse-packet.c (parse_certificate): Support for S2K.
10651 * build-packet.c (do_secret_cert): Ditto.
10652 * keygen.c (gen_elg): Ditto.
10653 * seckey-cert.c (check_elg): Ditto
10654 (protect_elg): Ditto.
10655 * sign.c (chnage_passphrase): Ditto.
10656 * passphrase.c (get_passphrase_hash): Support for a salt and
10657 changed all callers.
10658 (make_dek_from_passphrase): Ditto.
10660 Tue Feb 24 12:30:56 1998 Werner Koch (wk@isil.d.shuttle.de)
10662 * build-packet.c (hash_public_cert): Disabled debug output.
10664 Fri Feb 20 17:22:28 1998 Werner Koch (wk@isil.d.shuttle.de)
10666 * trustdb.c (init_trustdb) [MINGW32]: Removed 2nd mkdir arg.
10667 (keyring_copy) [MINGW32]: Add a remove prior to the renames.
10669 Wed Feb 18 18:39:02 1998 Werner Koch (wk@isil.d.shuttle.de)
10671 * Makefile.am (OMIT_DEPENDENCIES): New.
10673 * rsa.c: Replaced log_bug by BUG.
10675 Wed Feb 18 13:35:58 1998 Werner Koch (wk@isil.d.shuttle.de)
10677 * mainproc.c (do_check_sig): Now uses hash_public_cert.
10678 * parse-packet.c (parse_certificate): Removed hashing.
10679 * packet.h (public_cert): Removed hash variable.
10680 * free-packet.c (copy_public_cert, free_public_cert): Likewise.
10682 * sig-check.c (check_key_signatures): Changed semantics.
10684 Wed Feb 18 12:11:28 1998 Werner Koch (wk@isil.d.shuttle.de)
10686 * trustdb.c (do_check): Add handling for revocation certificates.
10687 (build_sigrecs): Ditto.
10688 (check_sigs): Ditto.
10690 Wed Feb 18 09:31:04 1998 Werner Koch (wk@isil.d.shuttle.de)
10692 * armor.c (armor_filter): Add afx->hdrlines.
10693 * revoke.c (gen_revoke): Add comment line.
10694 * dearmor.c (enarmor_file): Ditto.
10696 * sig-check.c (check_key_signature): Add handling for class 0x20.
10697 * mainproc.c : Ditto.
10699 Tue Feb 17 21:24:17 1998 Werner Koch (wk@isil.d.shuttle.de)
10701 * armor.c : Add header lines "...ARMORED FILE .."
10702 * dearmor.c (enarmor_file): New.
10703 * g10maint.c (main): New option "--enarmor"
10705 Tue Feb 17 19:03:33 1998 Werner Koch (wk@isil.d.shuttle.de)
10707 * mainproc.c : Changed a lot, because the packets are now stored
10708 a simple linlked list and not anymore in a complicatd tree structure.
10710 Tue Feb 17 10:14:48 1998 Werner Koch (wk@isil.d.shuttle.de)
10712 * free_packet.c (cmp_public_certs): New.
10713 (cmp_user_ids): New.
10715 * kbnode.c (clone_kbnode): New.
10716 (release_kbnode): Add clone support.
10718 * ringedit.c (find_keyblock_bypkc): New.
10720 * sign.c (remove_keysigs): Self signatures are now skipped,
10721 changed arguments and all callers.
10723 * import.c : Add functionality.
10725 Tue Feb 17 09:31:40 1998 Werner Koch (wk@isil.d.shuttle.de)
10727 * options.h (homedir): New option.
10728 * g10.c, g10maint.c, getkey.c, keygen.c, trustdb.c (opt.homedir): New.
10730 * trustdb.c (init_trustdb): mkdir for hoem directory
10731 (sign_private_data): Renamed "sig" to "g10.sig"
10733 Mon Feb 16 20:02:03 1998 Werner Koch (wk@isil.d.shuttle.de)
10735 * kbnode.c (commit_kbnode): New.
10736 (delete_kbnode): removed unused first arg. Changed all Callers.
10738 * ringedit.c (keyblock_resource_name): New.
10739 (get_keyblock_handle): NULL for filename returns default resource.
10741 Mon Feb 16 19:38:48 1998 Werner Koch (wk@isil.d.shuttle.de)
10743 * sig-check.s (check_key_signature): Now uses the supplied
10744 public key to check the signature and not any more the one
10747 (check_signature): Most work moved to do_check.
10749 Mon Feb 16 14:48:57 1998 Werner Koch (wk@isil.d.shuttle.de)
10751 * armor.c (find_header): Fixed another bug.
10753 Mon Feb 16 12:18:34 1998 Werner Koch (wk@isil.d.shuttle.de)
10755 * getkey.c (scan_keyring): Add handling of compressed keyrings.
10757 Mon Feb 16 10:44:51 1998 Werner Koch (wk@isil.d.shuttle.de)
10759 * g10.c, g10maint.c (strusage): Rewrote.
10762 Mon Feb 16 08:58:41 1998 Werner Koch (wk@isil.d.shuttle.de)
10764 * armor.c (use_armor): New.
10766 Sat Feb 14 14:30:57 1998 Werner Koch (wk@isil.d.shuttle.de)
10768 * mainproc.c (proc_tree): Sigclass fix.
10770 Sat Feb 14 14:16:33 1998 Werner Koch (wk@isil.d.shuttle.de)
10772 * armor.c (armor_filter): Changed version and comment string.
10773 * encode.c, sign.c, keygen.c: Changed all comment packet strings.
10775 Sat Feb 14 12:39:24 1998 Werner Koch (wk@isil.d.shuttle.de)
10777 * g10.c (aGenRevoke): New command.
10779 * sign.c (make_keysig_packet): Add support for sigclass 0x20.
10781 Fri Feb 13 20:18:14 1998 Werner Koch (wk@isil.d.shuttle.de)
10783 * ringedit.c (enum_keyblocks, keyring_enum): New.
10785 Fri Feb 13 19:33:40 1998 Werner Koch (wk@isil.d.shuttle.de)
10787 * export.c: Add functionality.
10789 * keygen.c (generate_keypair): Moved the leading comment behind the
10791 * kbnode.c (walk_kbnode): Fixed.
10793 * g10.c (main): listing armored keys now work.
10795 Fri Feb 13 16:17:43 1998 Werner Koch (wk@isil.d.shuttle.de)
10797 * parse-packet.c (parse_publickey, parse_signature): Fixed calls
10798 to mpi_read used for ELG b.
10800 Fri Feb 13 15:13:23 1998 Werner Koch (wk@isil.d.shuttle.de)
10802 * g10.c (main): changed formatting of help output.
10804 Thu Feb 12 22:24:42 1998 Werner Koch (wk@frodo)
10806 * pubkey-enc.c (get_session_key): rewritten
10809 Copyright 1998,1999,2000,2001,2002,2003,2004,2005,
10810 2006,2007,2008,2009 Free Software Foundation, Inc.
10812 This file is free software; as a special exception the author gives
10813 unlimited permission to copy and/or distribute it, with or without
10814 modifications, as long as this notice is preserved.
10816 This file is distributed in the hope that it will be useful, but
10817 WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
10818 implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.