1 2009-05-15 Marcus Brinkmann <marcus@g10code.de>
3 * gpg.c (gpgconf_list): Remove dead entry "allow-pka-lookup" (a
4 verify option for a couple of years now).
6 2009-05-13 Werner Koch <wk@g10code.com>
8 * keygen.c (parse_expire_string): Base ISO date string at noon.
9 Also allow full ISO timestamp.
11 2009-05-11 Werner Koch <wk@g10code.com>
13 * parse-packet.c (parse_key): Print the key id in list mode.
15 * skclist.c (build_sk_list): Use log_info for "duplicated entry".
18 * encode.c (encode_simple): Print empty file warning only in
19 verbose mode. Closes bug#1039.
20 (encode_crypt): Ditto.
21 * sign.c (write_plaintext_packet): Ditto.
23 2009-05-10 David Shaw <dshaw@jabberwocky.com>
25 * keyserver.c (keyserver_typemap): gpgkeys_hkp handles hkps as
28 2009-05-06 Werner Koch <wk@g10code.com>
30 * getkey.c (finish_lookup): Remove dead code.
32 * keyring.c (keyring_get_keyblock): Fix memory leak due to ring
33 trust packets. Fixes bug#1034.
35 2009-04-03 Werner Koch <wk@g10code.com>
37 * gpgv.c (main): Open keyrings readonly.
38 * keydb.c (keydb_add_resource): Add readonly flag bit.
39 (keydb_rebuild_caches): Don't act on readonly resources.
41 * keyring.c (keyring_register_filename): Add arg READONLY.
42 (struct keyring_name): Add field READONLY.
43 (keyring_is_writable): Implement readonly feature.
44 (keyring_update_keyblock): Return GPG_ERR_EACCES for readonly
46 (keyring_insert_keyblock, keyring_delete_keyblock):
48 2009-04-01 Werner Koch <wk@g10code.com>
50 * gpg.c (main): Properly handle UTF8 usernames with --sign-key and
51 --lsign-key. From 1.4, David 2008-12-21.
53 2009-03-20 David Shaw <dshaw@jabberwocky.com> (wk)
55 * keyring.c (rename_tmp_file): Force a fsync (via iobuf_ioctl) on
56 secret keyring files to be extra safe on filesystems that may not
57 sync data and metadata together (ext4). Also check return code
58 from the cache invalidation to make sure we're safe over NFS and
61 2009-03-31 Werner Koch <wk@g10code.com>
63 * passphrase.c (ask_passphrase): Use percent_plus_unescape.
64 * misc.c (unescape_percent_string): Remove.
66 * call-agent.c (unescape_status_string): Chnage to use
67 percent_plus_unescape.
69 2009-03-25 Werner Koch <wk@g10code.com>
71 * mainproc.c (print_pkenc_list): Use snprintf.
73 2009-03-17 Werner Koch <wk@g10code.com>
75 * call-agent.c (my_percent_plus_escape): Remove.
76 (agent_get_passphrase): Rewrite using percent_plus_escape.
78 2009-03-17 Daiki Ueno <ueno@unixuser.org>
80 * passphrase.c (passphrase_get): Add extra arg REPEAT and adjust
81 callers; remove special treatment for MODE==2.
82 (passphrase_to_dek): Move --passphrase-repeat handling to
85 * call-agent.c (agent_get_passphrase): Add extra arg REPEAT.
86 * call-agent.h: Ditto.
88 2009-03-16 Werner Koch <wk@g10code.com>
90 * gpg.c (my_strusage): Revert last change. Systems w/o a gpg1 may,
91 and actually do, install gpg2 as gpg.
92 * gpgv.c (my_strusage): Ditto.
94 2009-03-14 David Shaw <dshaw@jabberwocky.com>
96 * gpg.c (my_strusage): gpg2 and gpgv2 (not gpg and gpgv).
97 * gpgv.c (my_strusage): Same.
99 * gpgv.c (my_strusage): Fix name of program in "Syntax" line.
101 2009-02-27 Werner Koch <wk@g10code.com>
103 * call-agent.c (agent_scd_pksign, agent_scd_pkdecrypt): First send
104 the SERIALNO command.
106 2009-02-24 Werner Koch <wk@g10code.com>
108 * pkglue.c (pk_verify): Return an error for improper DATA instead
111 2009-02-09 Werner Koch <wk@g10code.com>
113 * keylist.c (print_capabilities): Take care of cert-only keys.
115 * keyedit.c (show_key_with_all_names_colon): Print the capabilities.
117 2009-01-26 Werner Koch <wk@g10code.com>
119 * card-util.c (card_status): Detect a Geldkarte.
121 2009-01-13 Werner Koch <wk@g10code.com>
123 * call-agent.c (dummy_data_cb): New.
124 (agent_learn): Use it.
125 * card-util.c (card_status): Print type of non-OpenPGP card.
126 * call-agent.h (agent_card_info_s): Add field APPTYPE.
128 2009-01-12 Werner Koch <wk@g10code.com>
130 * getkey.c (finish_lookup): Take care of keys with a zero
131 timestamp. Reported by Peter Gutmann.
133 2009-01-08 Werner Koch <wk@g10code.com>
135 * misc.c (has_invalid_email_chars): Let non-ascii pass through.
137 * cpr.c [USE_SHM_COPROCESSING]: Remove this code.
139 2008-12-12 Werner Koch <wk@g10code.com>
141 * passphrase.c (passphrase_get): Write a STATUS_ERROR.
142 * cpr.c (write_status_error): New.
144 * Makefile.am (common_source): Add rmd160.h.
146 2008-12-11 Werner Koch <wk@g10code.com>
148 * sig-check.c (signature_check2): Change algorithm used to compute
150 (check_revocation_keys): Close message digest.
152 * rmd160.c, rmd160.h: New. Based on code from GnuPG-1.4.
154 * Makefile.am: Add support to run tests.
155 * keyid.c (namehash_from_uid): Use rmd160_hash_buffer.
157 2008-12-10 Werner Koch <wk@g10code.com>
159 * trustdb.h (NAMEHASH_HASH): Remove unsued constant.
161 * gpg.c (print_mds): Print RMD160 only is enabled.
163 * keygen.c (keygen_set_std_prefs): Include RMD160 only if
166 2008-12-09 Werner Koch <wk@g10code.com>
168 * gpg.c (main) [IS_DEVELOPMENT_VERSION]: Fix strusage use.
170 2008-12-09 Werner Koch <wk@g10code.com>
172 * keygen.c (proc_parameter_file): Check that key and subkey usages
175 2008-12-09 David Shaw <dshaw@jabberwocky.com> (wk)
177 * trustdb.c (validate_one_keyblock): Fix the trust signature
178 calculations so that we lower the trust depth of signatures to fit
179 within the current chain, rather than discarding any signature
180 that does not fit within the trust depth.
182 2008-12-09 Werner Koch <wk@g10code.com>
184 * keyserver.c (show_prompt): Flush stdout.
186 * gpg.c (open_info_file): Add arg BINARY and adjust callers.
188 * gpg.c (main): Call i18n_init before init_common_subsystems.
189 * gpgv.c (main): Ditto.
191 * keylist.c (set_attrib_fd): Do not close ATTRIB_FP if it is the
193 (set_attrib_fd) [W32]: Set to binary mode.
194 (dump_attribs): Flush the stream after writing.
196 2008-12-05 Werner Koch <wk@g10code.com>
198 * call-agent.c (percent_plus_escape): Rename to
199 my_percent_plus_escape and also escape the percent character.
202 2008-11-18 Werner Koch <wk@g10code.com>
204 * gpg.c (build_lib_list): Remove.
205 (make_libversion): New.
206 (my_strusage): Use it.
207 * gpgv.c (make_libversion): New.
208 (my_strusage): Print libgcrypt version.
210 2008-11-13 Werner Koch <wk@g10code.com>
212 * gpgv.c: Use new ARGPARSE macros and re-indent.
214 2008-11-11 Werner Koch <wk@g10code.com>
216 * gpg.c (opts): Use new ARGPARSE macros for clarity.
218 2008-10-24 Werner Koch <wk@g10code.com>
220 * keyedit.c (change_passphrase): Clear passphrase cache.
222 2008-10-20 Werner Koch <wk@g10code.com>
224 * gpgv.c: Mark all args of the stub fucntions as unused.
226 * card-util.c (generate_card_keys): Remove unused arg SERIALNO and
229 * build-packet.c (write_sign_packet_header): Mark unused arg.
230 * gpg.c (gpg_init_default_ctrl, gpg_deinit_default_ctrl): Ditto.
231 * getkey.c (skip_unusable): Ditto.
232 (write_version): Ditto.
233 * keydb.c (keydb_locate_writable): Ditto.
234 * keyring.c (update_offset_hash_table): Ditto.
235 (keyring_lock): Ditto.
236 * misc.c (register_secured_file): Ditto.
237 (unregister_secured_file): Ditto.
238 (is_secured_file): Ditto.
239 (is_secured_filename): Ditto.
240 * parse-packet.c (parse_marker): Ditto.
241 (parse_key, parse_attribute): Ditto.
242 (parse_trust, parse_compressed, parse_mdc, parse_gpg_control): Ditto.
243 * cpr.c (progress_cb): Ditto.
244 * passphrase.c (passphrase_clear_cache): Ditto.
245 (ask_passphrase): Ditto.
246 * keyedit.c (keyedit_completion): Ditto.
247 * import.c (import_revoke_cert): Ditto.
248 (chk_self_sigs, delete_inv_parts, append_uid): Ditto.
249 (merge_sigs, merge_keysigs, append_key): Ditto.
250 * trustdb.c (list_trust_path): Ditto.
251 (enum_cert_paths, enum_cert_paths_print): Ditto.
252 * tdbdump.c (list_trustdb): Ditto.
253 * keygen.c (keygen_upd_std_prefs): Ditto.
254 (genhelp_factors): Ditto.
255 * call-agent.c (agent_scd_setattr): Ditto.
256 (agent_scd_writekey, agent_scd_change_pin, agent_scd_genkey): Ditto.
257 (agent_clear_pin_cache): Ditto.
259 * server.c (option_handler): Mark non yet used arg.
260 (input_notify, output_notify): Ditto.
261 (cmd_recipient, cmd_signer, cmd_encrypt, cmd_decrypt, cmd_verify)
262 (cmd_sign, cmd_import, cmd_export, cmd_delkeys, do_listkeys)
264 * verify.c (gpg_verify): Ditto.
266 2008-10-17 Werner Koch <wk@g10code.com>
268 * main.h (idea_cipher_warn): Use do while construct in place of an
271 2008-10-03 David Shaw <dshaw@jabberwocky.com>
273 * main.h, mainproc.c (check_sig_and_print)
274 * keylist.c (list_keyblock_print)
275 * pkclist.c (do_edit_ownertrust)
276 * keyedit.c (menu_showphoto)
277 * photoid.c (generate_photo_id, show_photos)
278 * misc.c (pct_expando): Add %v and %V expandos so
279 that displaying photo IDs can show the attribute validity
280 tag (%v) and string (%V). Originally by Daniel Gillmor.
282 2008-09-29 Werner Koch <wk@g10code.com>
284 * gpg.c (main): Remove -sat kludge. Note that we printed a
285 warning for two years.
287 * seskey.c (encode_md_value): Remove extra gcry_md_test_algo since
288 it is not needed with Libgcrypt 1.4.
289 * skclist.c (random_is_faked): Simplify.
290 * sign.c (match_dsa_hash): Remove runtime check for SHA224.
291 * gpg.c (print_mds): Use GCRY_MD_SHA224 constant.
293 2008-09-25 David Shaw <dshaw@jabberwocky.com>
295 * keyedit.c (keyedit_menu): Fix bug where a modified keyring loses
296 its modified status after a "clean" or "minimize" that doesn't
299 2008-09-25 Werner Koch <wk@g10code.com>
301 * parse-packet.c (parse): Remove special treatment for compressed
302 new style packets. Fixes bug#931.
304 * card-util.c (change_pin): Support setting of the reset code.
306 2008-09-24 Werner Koch <wk@g10code.com>
308 * call-agent.h (struct agent_card_info_s): Add field IS_V2.
309 * call-agent.c (learn_status_cb): That that field.
311 * card-util.c (change_pin): Rename first arg to UNBLOCK_v2 and use
313 (card_edit): Add new command UNBLOCK.
315 2008-09-23 David Shaw <dshaw@jabberwocky.com>
317 * pkclist.c (select_algo_from_prefs): Redo function to rank prefs
318 and pick a consensus winner across all keys.
320 2008-09-16 Werner Koch <wk@g10code.com>
322 * card-util.c (fpr_is_ff): New.
323 (card_status): Do not print general key info for an all-ff fpr.
324 (change_login, change_private_do): Factor common code out to ...
325 (get_data_from_file): .. new.
327 (card_edit): Add command "writecert".
328 * call-agent.c (writecert_parm_s): New.
329 (inq_writecert_parms, agent_scd_writecert): New.
331 2008-09-04 David Shaw <dshaw@jabberwocky.com>
333 * keyserver.c (keyserver_import_cert): Allow keyserver URLs in
334 addition to full URLs in CERT records.
336 2008-08-11 Werner Koch <wk@g10code.com>
338 * keygen.c (ask_expire_interval): Check for time overflow of an
341 2008-08-01 Werner Koch <wk@g10code.com>
343 * tdbio.c (open_db) [!EROFS]: Move closing parens out of the
344 ifdef. Reported by Ken Takusagawa.
346 2008-06-25 Marcus Brinkmann <marcus@g10code.de>
348 * gpg.c (enum cmd_and_opt_values): Remove option
349 oEnableW32HandleTranslation.
350 (opts): Remove option --enable-w32-handle-translation.
351 (main): Remove variable w32_handle_translation.
353 2008-06-19 Werner Koch <wk@g10code.com>
355 * gpg.c (gpgconf_list): Add "group".
357 2008-06-18 Marcus Brinkmann <marcus@g10code.de>
359 * gpg.c (enum cmd_and_opt_values): New option
360 oEnableW32HandleTranslation.
361 (opts): New option --enable-w32-handle-translation.
362 (main): New variable w32_handle_translation to keep track of
365 2008-06-16 Werner Koch <wk@g10code.com>
367 * keygen.c (output_control_s): Add ASK_PASSPHRASE.
368 (read_parameter_file): Add commands %ask-passphrase and
371 2008-06-11 Werner Koch <wk@g10code.com>
373 * gpg.c: Make --fixed-list-mode a dummy.
374 * options.h (struct): Removed FIXED_LIST_MODE.
375 * keyid.c (colon_strtime, colon_datestr_from_pk)
376 (colon_datestr_from_sk, colon_datestr_from_sig)
377 (colon_expirestr_from_sig): Remove fixed_list_mode case.
378 * keylist.c (list_keyblock_colon): Ditto. Remove all now unsed
381 2008-05-31 Werner Koch <wk@g10code.com>
383 * keygen.c (ask_user_id): Change the string printed as header of
384 the user ID generation. Use code to not break existing
385 translations. Suggested by Eric Tetz.
387 2008-05-08 Werner Koch <wk@g10code.com>
389 * sig-check.c (do_check_messages): Print a revocation diagnostic
392 2008-05-07 Werner Koch <wk@g10code.com>
394 * gpg.c: New command --locate-keys. New options --with-sig-list
395 and --with-sig-check.
396 * keylist.c (locate_one): New.
397 (public_key_list): Add arg LOCATE_MODE and use locate_one.
398 * getkey.c (get_pubkey_byname): Fix nodefault case. Add option
399 RETCTX, change all callers.
400 (struct getkey_ctx_s): Add field extra_ptr;
401 (get_pubkey_end): Free it.
403 2008-04-18 Werner Koch <wk@g10code.com>
405 * misc.c (map_cipher_openpgp_to_gcry, map_cipher_gcry_to_openpgp)
406 (openpgp_cipher_test_algo): Add camellia-192.
407 (openpgp_cipher_blocklen): New.
408 * parse-packet.c (parse_key): Use new function here.
410 2008-04-15 David Shaw <dshaw@jabberwocky.com>
412 * getkey.c (merge_selfsigs_subkey): If there are multiple 0x19
413 backsigs, take the most recent one.
415 2008-04-08 Werner Koch <wk@g10code.com>
417 * options.h (opt): Add AKL_NODEFAULT and AKL_LOCAL.
418 * getkey.c (parse_auto_key_locate): Parse them.
419 (get_pubkey_byname): Implement them. Add arg NO_AKL and use that
420 in all cases where a local key is expected.
421 * import.c (import_one): Fill in the fingerprint in all cases.
423 * keyserver.c (keyserver_import_pka): Set FPR to NULL on error.
424 Return G10ERR_NO_PUBKEY if no PKA info is available or no key URI
425 is given in the PKA record..
426 (keyserver_import_cert): Return G10ERR_NO_PUBKEY if a CERT record
429 * getkey.c (get_pubkey_byname): Release FPR in the error case.
430 Continue with next mechanism on error. Better diagnostics.
432 2008-04-07 Werner Koch <wk@g10code.com>
434 * keyserver.c (parse_keyserver_uri): Allow a default host name.
436 * getkey.c (get_pubkey_byname): Replace sprintf by bin2hex.
438 2008-04-02 Werner Koch <wk@g10code.com>
440 * gpg.c (main): Do not allow DSA2 with a too old Libgcrypt.
442 2008-03-26 Werner Koch <wk@g10code.com>
444 * tdbio.c (lookup_hashtable): Make cmp args const.
445 (cmp_trec_fpr): Make FPR const.
446 (tdbio_search_trust_byfpr): Remove cast.
448 2008-03-25 Werner Koch <wk@g10code.com>
450 * keyserver.c (parse_keyrec): Take care of char defaulting to
451 unsigned when using hextobyte.
453 2008-03-25 David Shaw <dshaw@jabberwocky.com> (wk)
455 * import.c (collapse_uids): Fix bug 894: possible memory
456 corruption around deduplication of user IDs.
458 2008-03-25 Werner Koch <wk@g10code.com>
460 * parse-packet.c (parse_key): Parse a secret key encrypted with
463 * options.skel: Make the default keyserver keys.gnupg.net.
465 2008-03-18 Werner Koch <wk@g10code.com>
467 * seckey-cert.c (do_check): Use GCRYMPI_FMT_PGP for v3 keys.
468 Reported by Petr Cerny.
470 2008-03-13 Werner Koch <wk@g10code.com>
472 * passphrase.c (PROMPTSTRING): Change string to me more similar to
475 2008-02-26 Werner Koch <wk@g10code.com>
477 * getkey.c (get_pubkey_byname): Fix comment.
479 2008-02-14 Werner Koch <wk@g10code.com>
481 * call-agent.c (default_inq_cb): New.
482 (agent_learn, agent_scd_getattr, agent_scd_pksign)
483 (agent_scd_pkdecrypt, agent_scd_change_pin, agent_scd_checkpin)
484 (agent_get_passphrase, agent_clear_passphrase): Use new callback.
485 (inq_writekey_parms): Fall back to the new callback for other
487 (start_agent): Tell agent that we accept pinentry notifications.
489 2008-02-11 Werner Koch <wk@g10code.com>
491 * server.c (cmd_getinfo): New.
492 (register_commands): Register GETINFO.
494 2008-02-09 Marcus Brinkmann <marcus@g10code.de>
496 * gpg.c (main): New variable default_configname. Use it if
497 save_configname is NULL (can happen if default configfile does
498 not exist). Move default configname determination to ...
499 (get_default_configname): ... this new function.
501 2008-01-30 Werner Koch <wk@g10code.com>
503 * keydb.c (maybe_create_keyring): Fixed last change.
504 * tdbio.c (tdbio_set_dbname): Also test for forward slash.
506 2008-01-29 Werner Koch <wk@g10code.com>
508 * keydb.c (maybe_create_keyring): Take care of a missing slash.
509 (maybe_create_keyring) [W32]: Also test for forward slash.
511 2008-01-26 Werner Koch <wk@g10code.com>
513 * card-util.c (get_manufacturer): Add vendor 0004.
515 2008-01-02 Werner Koch <wk@g10code.com>
517 * gpg.c: Add --logger-file as an alias for log-file.
519 2007-12-14 Werner Koch <wk@g10code.com>
521 * gpg.c (main): Set opt.no_homedir_creation during the first option
524 2007-12-12 Werner Koch <wk@g10code.com>
526 * misc.c (print_pubkey_algo_note): Print a warning if a type 20
528 (openpgp_pk_test_algo, openpgp_pk_test_algo2)
529 (openpgp_pk_algo_usage): Allow type 20 keys only in rfc2440 mode.
531 2007-12-12 David Shaw <dshaw@jabberwocky.com> (wk)
533 * trustdb.c (sanitize_regexp): New. Protect against dangerous
534 regexps (malloc bombs) by force-commenting any characters aside
535 from the ones we explicitly want.
536 (check_regexp): Use it here before passing the regexp to
539 2007-12-12 Werner Koch <wk@g10code.com>
541 * misc.c (map_cipher_openpgp_to_gcry): New. Used to map Camellia
542 algorithms to Gcrypt.
543 (openpgp_cipher_test_algo): Call new map function. Replace
544 all remaining calls to gcry_cipher_test_algo by a call to this.
545 (openpgp_cipher_algo_name): New. Replace all remaining calls to
546 gcry_cipher_algo_name by a call to this.
547 (map_cipher_gcry_to_openpgp): New.
548 (string_to_cipher_algo): Use it.
549 * gpg.c (main): Print a warning if Camellia support is build in.
551 * gpg.c (print_algo_names): New. From the 1.4 branch by David.
552 (list_config): Use it here for the "ciphername" and "digestname"
553 config items so we can get a script-parseable list of the names.
555 * parse-packet.c (parse_onepass_sig): Sigclass is hex, so include
558 * sign.c (match_dsa_hash): Remove conditional builds dending on
559 USE_SHAxxx. We don't need this becuase it can be expected that
560 libgcrypt provides it. However we need to runtime test for SHA244
561 becuase that is only available with libgcrypt 2.4.
563 2007-12-11 Werner Koch <wk@g10code.com>
565 * mainproc.c (proc_pubkey_enc): Allow type 20 Elgamal key for
568 2007-12-10 Werner Koch <wk@g10code.com>
570 * import.c (auto_create_card_key_stub): Do not clear the entire
571 fingerprint. This finally makes the stub creation work. My past
572 tests seemed to work because there was a key with a all zero
573 fingerprint available (Elgamal signing keys).
575 2007-12-08 Werner Koch <wk@g10code.com>
577 * misc.c (openpgp_pk_algo_usage): Allow Elgamal type 20 for
580 2007-12-04 Werner Koch <wk@g10code.com>
582 * helptext.c (get_help_from_file): New.
583 (display_online_help): Use it to geting the help through a file.
586 2007-12-03 Werner Koch <wk@g10code.com>
588 * keygen.c (ask_key_flags): Add a translation remark and implement
591 * gpg.c (reopen_std): Moved to ../common and renamed to
594 * gpg.c: Remove second inclusion of fcntl.h.
596 2007-11-19 Werner Koch <wk@g10code.com>
598 * keyedit.c (keyedit_menu): String grammar fix.
600 2007-11-15 Werner Koch <wk@g10code.com>
602 * gpg.c (main): New option --xauthority.
603 * call-agent.c (start_agent): Adjust changed start_new_gpg_agent.
605 2007-11-12 Werner Koch <wk@g10code.com>
607 * cpr.c (do_get_from_fd): s/bool/getbool/ to overcome problems
608 with Mac OS 10.5 which seems to include stdbool.h silently.
610 2007-11-07 Werner Koch <wk@g10code.com>
612 Replace all includes of errors.h by status.h (found in common/).
615 * status.h: Move prototypes to main.h.
616 * status.c: Rename to ..
618 (get_status_string): Remove. We take this now from common/.
620 2007-10-25 David Shaw <dshaw@jabberwocky.com> (wk)
624 * gpg.c (main): Add --require-cross-certification to
625 --openpgp/--rfc4880 mode.
627 * gpg.c (main): Disable --rfc2440-text and --force-v3-sigs by
628 default. Enable --require-cross-certification by default.
629 --openpgp (--rfc4880) is the same as --rfc2440 except with
630 "--enable-dsa2 --no-rfc2440-text --escape-from-lines".
632 * misc.c (compliance_option_string, compliance_failure): Minor
635 * armor.c (is_armor_header): Comment about 4880.
637 * options.h, gpg.c (main): Add --rfc4880, and make --openpgp an
638 alias to it. --rfc2440 now stands alone. For now, use the old
639 2440 defaults for 4880.
640 * misc.c (compliance_option_string): Ditto.
642 * keyedit.c (keyedit_menu): Use compliance_option_string() instead
643 of printing the compliance modes here.
645 2007-10-25 David Shaw <dshaw@jabberwocky.com> (wk)
647 From 1.4 (September):
649 * import.c (collapse_uids): Significant speedup for de-duping user
652 2007-10-25 David Shaw <dshaw@jabberwocky.com> (wk)
656 * armor.c (parse_header_line): Improve test so that the header
657 test only allows "Hash" in the signed data section.
659 * armor.c (is_armor_tag): New. Detect if an armor header matches
661 (parse_header_line): Call it here, as bis-21 requires warning the
662 user (but continuing to process the message) when seeing an
665 * encode.c (encode_crypt): Missed one call to
666 setup_plaintext_name(). This is bug#809.
668 * sign.c (mk_notation_policy_etc): Expect all sigs that this is
670 (write_signature_packets, make_keysig_packet): Only call it for
671 >=v4 sigs. This allows --force-v3-sigs and --force-v4-certs to
672 enable or disable notations, policies, and keyserver URLs. This
675 2007-10-19 Werner Koch <wk@g10code.com>
677 * passphrase.c (passphrase_get): Use new utf8 switching fucntions.
679 2007-09-14 Werner Koch <wk@g10code.com>
681 * gpg.c (build_lib_list): New.
682 (my_strusage): Print lib info.
684 2007-08-27 Werner Koch <wk@g10code.com>
686 * trustdb.c (USE_INTERNAL_REGEX): Remove support.
688 2007-08-24 Werner Koch <wk@g10code.com>
690 * keyring.c (keyring_register_filename): Use same_file_p().
692 2007-08-21 Werner Koch <wk@g10code.com>
694 * misc.c (openpgp_md_test_algo): Remove rfc2440bis hash algorithms.
695 (openpgp_cipher_test_algo): Likewise for algos 5 and 6.
697 2007-08-02 Werner Koch <wk@g10code.com>
699 * gpg.c: Include gc-opt-flags.h and remove their definition here.
701 2007-07-17 Werner Koch <wk@g10code.com>
703 * gpg.c (gpgconf_list): Declare --encrypt-to and --default-key.
705 * card-util.c (get_manufacturer): Add the unmanaged S/N range.
707 2007-07-12 Werner Koch <wk@g10code.com>
709 * gpg.c (main): Use translate_sys2libc_fd_int when passing an int
711 * gpgv.c (main): Ditto.
713 2007-07-05 Werner Koch <wk@g10code.com>
715 * card-util.c (card_generate_subkey, card_store_subkey): Enable
716 the code also for GnuPG-2.
718 * keygen.c (make_backsig): Add arg TIMESTAMP.
719 (write_keybinding): Add arg TIMESTAMP, pass it to make_backsig.
720 (write_direct_sig, write_selfsigs): Add arg TIMESTAMP.
721 (gen_elg, gen_dsa, gen_rsa): Add arg TIMESTAMP.
723 (do_generate_keypair): Use the same timestamp for key creation
724 time and all key signatures. Return an error if write_direct_sig
725 for the secret key fails.
726 (generate_subkeypair): Ditto.
727 (gen_card_key): New arg TIMESTAMP.
728 (generate_card_subkeypair): Pass current time to gen_card_key.
729 (gen_card_key_with_backup): New arg TIMESTAMP.
730 (read_parameter_file): Add option Creation-Date.
731 (parse_creation_string): New.
732 (do_generate_keypair): Use the Creation-Date if available.
733 (save_unprotected_key_to_card): Use P for P and not D.
734 * call-agent.c (agent_scd_genkey): Add arg CREATETIME.
735 * keyedit.c (menu_backsign): Use the same timestamp for all backsigs.
737 2007-06-26 Werner Koch <wk@g10code.com>
739 * openfile.c (try_make_homedir): Support W32; use standard_homedir.
741 2007-06-25 Werner Koch <wk@g10code.com>
743 * gpg.c, gpgv.c: Include sysutils.h.
744 (main): Replace iobuf_translate_file_handle by
745 translate_sys2libc_fd.
748 2007-06-21 Werner Koch <wk@g10code.com>
750 * main.h: Include util.h.
752 * call-agent.c (start_agent): Factored almost all code out to
755 * gpg.h (ctrl_t): Remove. It is now declared in ../common/util.h.
757 2007-06-20 Werner Koch <wk@g10code.com>
759 * misc.c (setsysinfo, trap_unaligned): Remove. It is also in
761 (disable_core_dumps, get_session_marker):
763 * sign.c (sleep): Remove sleep wrapper.
765 2007-06-18 Marcus Brinkmann <marcus@g10code.de>
767 * gpg.c (gpgconf_list): Percent escape output of --gpgconf-list.
769 2007-06-14 Werner Koch <wk@g10code.com>
771 * call-agent.c (start_agent): Use gnupg_module_name.
773 2007-06-12 Werner Koch <wk@g10code.com>
775 * openfile.c (copy_options_file): Use gnupg_datadir.
776 * misc.c (get_libexecdir): Remove. Changed all callers to use
778 * gpg.c (check_permissions): Use gnupg_libdir.
780 * gpg.c (main): Replace some calls by init_common_subsystems.
781 * gpgv.c (main): Ditto.
783 2007-06-11 Werner Koch <wk@g10code.com>
785 * Makefile.am (needed_libs): Use libcommonstd macro.
787 * gpgv.c (main) [W32]: Call pth_init.
788 * gpg.c (main) [W32]: Call pth_init.
790 2007-06-08 Werner Koch <wk@g10code.com>
792 * Makefile.am (gpg2_LDADD): Syntax fix.
794 2007-06-06 Werner Koch <wk@g10code.com>
796 * passphrase.c (passphrase_get) [!ENABLE_NLS]: Do not define
799 * Makefile.am (gpgv2_LDADD, gpg2_LDADD): Include LDADD before
802 * plaintext.c (handle_plaintext): Replace eof by eof_seen as W32's
803 io.h has a symbol with that name.
805 * misc.c: Do not include dynload.h.
806 (w32_shgetfolderpath): Remove. It is now in common/homedir.c.
808 * gpgv.c (i18n_init): Remove.
809 * gpg.c (i18n_init): Remove.
810 (main): Make --load-extension a dummy
812 2007-05-19 Marcus Brinkmann <marcus@g10code.de>
814 * passphrase.c (passphrase_get): Use PACKAGE_GT, not PACKAGE.
816 * passphrase.c (passphrase_get): Free ORIG_CODESET on error.
818 2007-05-16 Werner Koch <wk@g10code.com>
820 * sig-check.c (check_backsig): Check the digest algorithm before
821 using it. Fixed bug 797.
823 2007-05-09 Werner Koch <wk@g10code.com>
825 * openfile.c (overwrite_filep, open_outfile) [W32]: Need to use
826 just "nul". Though, I am pretty sure that some MSDOS versions
827 grok the extra /dev/.
829 2007-05-07 Werner Koch <wk@g10code.com>
831 * openfile.c (open_outfile, overwrite_filep) [W32]: Use "/dev/nul".
833 2007-05-02 David Shaw <dshaw@jabberwocky.com>
835 * packet.h, mainproc.c (reset_literals_seen): New function to
836 reset the literals count.
838 * verify.c (verify_one_file), decrypt.c (decrypt_messages): Call
839 it here so we allow multiple literals in --multifile mode (in
840 different files - not concatenated together).
842 2007-04-26 Marcus Brinkmann <marcus@g10code.de>
844 * passphrase.c (passphrase_to_dek): Write missing passphrase
845 status message in case of cancellation.
847 2007-04-16 Werner Koch <wk@g10code.com>
849 * build-packet.c (mpi_write): Made buffer a bit larger. Reported
852 2007-04-13 Werner Koch <wk@g10code.com>
854 * call-agent.c (start_agent): Don't use log_error when using the
855 fallback hack to start the agent. This is bug 782.
857 2007-04-05 David Shaw <dshaw@jabberwocky.com>
859 From STABLE-BRANCH-1-4
861 * parse-packet.c (parse_marker): New. Enforce that the marker
862 contains 'P', 'G', 'P', and nothing but.
863 (parse): Call it here.
864 (skip_packet): No longer need to handle marker packets here.
866 2007-03-14 David Shaw <dshaw@jabberwocky.com>
868 From STABLE-BRANCH-1-4
870 * keyserver.c: Windows Vista doesn't grok X_OK and so fails
871 access() tests. Previous versions interpreted X_OK as F_OK
872 anyway, so we'll just use F_OK directly.
874 2007-03-09 David Shaw <dshaw@jabberwocky.com>
876 From STABLE-BRANCH-1-4
878 * parse-packet.c (parse_signature): It's hex.
880 * getkey.c (merge_selfsigs_subkey): Avoid listing the contents of
881 a backsig when list mode is on. Noted by Timo Schulz.
883 2007-03-08 Werner Koch <wk@g10code.com>
885 * plaintext.c (handle_plaintext): Add two extra fflush for stdout.
887 2007-03-08 David Shaw <dshaw@jabberwocky.com> (wk)
889 * keyedit.c (keyedit_menu): If we modify the keyblock (via
890 fix_keyblock() or collapse_uids()) make sure we reprocess the
891 keyblock so the flags are correct. Noted by Robin H. Johnson.
893 * getkey.c (fixup_uidnode): Properly clear flags that don't apply
894 to us (revoked, expired) so that we can reprocess a uid.
896 2007-03-05 Werner Koch <wk@g10code.com>
898 Converted this file to UTF-8.
900 Ported David and my multiple messages changes from 1.4.7.
902 * options.h, gpg.c (main), mainproc.c (check_sig_and_print): Allow
903 multiple sig verification again as this is protected via the
904 multiple-messages code. New option --allow-multiple-messages and
906 * status.h (STATUS_ERROR): New status code.
907 * status.c (get_status_string): Ditto.
908 * mainproc.c (proc_plaintext): Emit it if multiple messages are
909 detected. Error out if more than one plaintext packet is
911 * mainproc.c (literals_seen): New.
913 2007-02-26 Werner Koch <wk@g10code.com>
915 * gpg.c (main): Add verify option show-primary-uid-only.
916 * options.h (VERIFY_SHOW_PRIMARY_UID_ONLY): New.
917 * mainproc.c (check_sig_and_print): Implement it.
919 2007-02-22 Werner Koch <wk@g10code.com>
921 * encr-data.c (decrypt_data): Correctly test for unknown algorithm.
922 * import.c (check_prefs): Ditto.
923 * keyedit.c (show_prefs): Ditto.
924 * mainproc.c (proc_symkey_enc): Ditto.
926 2007-02-06 Werner Koch <wk@g10code.com>
928 * export.c (do_export_stream): Allow reset-subkey-passwd along
931 2007-02-04 Werner Koch <wk@g10code.com>
933 * parse-packet.c (parse_signature): Limit bytes read for an
934 unknown alogorithm. Fixes Debian bug#402592.
936 2007-01-31 Werner Koch <wk@g10code.com>
938 * verify.c (verify_signatures): Do no dereference a NULL afx.
940 * passphrase.c (passphrase_get): Set the cancel flag on all error
941 from the agent. Fixes a bug reported by Tom Duerbusch.
943 2007-01-30 Werner Koch <wk@g10code.com>
945 * status.c (write_status_begin_signing): New.
946 * sign.c (sign_file, sign_symencrypt_file): Call it.
947 * textfilter.c (copy_clearsig_text): Call it.
949 * call-agent.c (agent_scd_pksign): Pass --hash-rmd160 to SCD if
952 * gpg.c (main): Let --no-use-agent and --gpg-agent-info print a
954 * misc.c (obsolete_option): New.
956 2007-01-29 Werner Koch <wk@g10code.com>
958 * pkclist.c (do_we_trust_pre): Issue a user-id-hint status code.
960 2007-01-15 Werner Koch <wk@g10code.com>
962 * parse-packet.c (read_protected_v3_mpi): Make sure to stop
963 reading even for corrupted packets.
964 * keygen.c (generate_user_id): Need to allocate one byte more.
965 Reported by Felix von Leitner.
967 2006-12-21 Werner Koch <wk@g10code.com>
969 * gpg.c (main): New command --server.
970 * gpg.h (struct server_control_s, ctrl_t): New.
972 * verify.c (gpg_verify): New.
973 * mainproc.c (mainproc_context): Made SIGNED_DATA a structure.
974 (proc_signature_packets_by_fd): New.
975 (proc_compressed_cb): Divert depending on SIGNED_DATA.
976 * plaintext.c (hash_datafile_by_fd): New.
977 * mainproc.c (proc_tree): Use it here.
979 * verify.c (verify_signatures): Init AFX only when needed.
980 Don't leak a context on error.
981 (verify_one_file): Don't leak a context on error.
983 2006-12-07 Werner Koch <wk@g10code.com>
985 * openfile.c (copy_options_file): Use log_info instead of
986 log_error to avoid an error return of gpg due to a missing
989 2006-12-07 David Shaw <dshaw@jabberwocky.com>
991 * Makefile.am: Link to iconv for jnlib dependency.
993 2006-12-05 Werner Koch <wk@g10code.com>
995 * passphrase.c (passphrase_to_dek): Handle a Cancel request
997 * mainproc.c (proc_symkey_enc): Removed workaround for bogus cancel
999 * encode.c (encode_simple): Distinguish error message between
1000 cancel and invalid passphrase.
1001 (setup_symkey): Ditto.
1002 * sign.c (sign_symencrypt_file): Ditto
1003 * keyedit.c (change_passphrase): Allow cancellation.
1004 * keygen.c (do_ask_passphrase): New arg R_CANCELED.
1005 (generate_keypair): Handle a passphrase cancellation.
1006 (generate_raw_key): Ditto.
1007 (generate_subkeypair): Ditto.
1009 2006-12-04 Werner Koch <wk@g10code.com>
1011 * filter.h (armor_filter_context_t): New element REFCOUNT.
1012 * armor.c (armor_filter): Made static.
1013 (push_armor_filter, release_armor_context, new_armor_context): New.
1014 (armor_filter): Release the context.
1015 * gpg.c (main): Use new armor context functions and
1017 * export.c (do_export): Ditto.
1018 * encode.c (encode_simple, encode_crypt): Ditto.
1019 * decrypt.c (decrypt_message, decrypt_messages): Ditto.
1020 * dearmor.c (dearmor_file, enarmor_file): Ditto.
1021 * verify.c (verify_signatures, verify_one_file): Ditto.
1022 * sign.c (sign_file, clearsign_file, sign_symencrypt_file): Ditto.
1023 * revoke.c (gen_desig_revoke, gen_revoke): Ditto.
1024 * keyserver.c (keyserver_spawn): Ditto.
1025 * keygen.c (output_control_s): Turn AFX fields into pointers.
1026 (read_parameter_file): Allocate and release AFX fields.
1027 (do_generate_keypair): Use push_armor_filter.
1028 * import.c (import): Replace iobuf_push_filter2 hack by the new
1029 armor context stuff.
1031 2006-12-03 Werner Koch <wk@g10code.com>
1033 * filter.h: New element REFCOUNT.
1034 (handle_progress): Remove prototype.
1035 * progress.c (new_progress_context, release_progress_context): New.
1036 (progress_filter): Use new function to release context. Made static.
1037 (handle_progress): Bumb reference counter. No more check for
1038 enabled progress as this is handled by new_progress_context.
1039 * verify.c (verify_signatures, verify_one_file): Replace stack
1040 based progress context by a heap based one.
1041 * sign.c (sign_file, clearsign_file, sign_symencrypt_file): Ditto.
1042 * plaintext.c (ask_for_detached_datafile, hash_datafiles): Ditto.
1043 * encode.c (encode_simple, encode_crypt): Ditto.
1044 * decrypt.c (decrypt_message, decrypt_messages): Ditto.
1046 * keyedit.c (menu_clean): Made strings translatable.
1048 2006-12-03 David Shaw <dshaw@jabberwocky.com>
1050 * keyedit.c (menu_clean): Show "already minimized" rather than
1051 "already clean" when a minimized key is minimized again. From
1054 2006-12-02 David Shaw <dshaw@jabberwocky.com>
1056 * options.h, gpg.c (main), passphrase.c (passphrase_to_dek): Add
1057 --passphrase-repeat option to control how many times gpg will
1058 re-prompt for a passphrase to ensure the user has typed it
1059 correctly. Defaults to 1.
1061 2006-12-02 Werner Koch <wk@g10code.com>
1063 * encr-data.c: Allocate DFX context on the heap and not on the
1064 stack. Changes at several places. Fixes CVE-2006-6235.
1066 2006-11-27 Werner Koch <wk@g10code.com>
1068 * openfile.c (ask_outfile_name): Fixed buffer overflow occurring
1069 if make_printable_string returns a longer string. Fixes bug 728.
1071 2006-11-21 Werner Koch <wk@g10code.com>
1073 * Makefile.am (needed_libs): libgnu needs to come after libcommon.
1075 * keygen.c (ask_expire_interval): Print y2038 warning only for 32
1077 (save_unprotected_key_to_card): Made RSA_N_LEN et al a size_t.
1079 (get_parameter_algo): Allow "ELG" as alias for "ELG-E".
1081 * seckey-cert.c (do_check): Made NBYTES a size_t.
1082 (do_check): Made NDATA a size_t.
1083 (protect_secret_key): Made NARR a size_t.
1084 (protect_secret_key): Made NVYES a size_t.
1085 * pubkey-enc.c (get_it): Made INDATALEN a size_t.
1086 (get_it): Made NFRAME a size_t.
1087 * keyid.c (hash_public_key): Made NBITS an unsigned int.
1088 * misc.c (checksum_mpi): Made NBYTES a size_t.
1089 (openpgp_pk_test_algo2): Made USE_BUF a size_t.
1090 * seskey.c (encode_session_key): Made NFRAME a size_t.
1091 (do_encode_md): Ditto.
1092 (encode_md_value): Cast size_t argument of printf.
1093 (encode_md_value): Ditto.
1095 2006-11-10 Werner Koch <wk@g10code.com>
1097 * parse-packet.c (mpi_read): Changed NREAD to size_t to match the
1098 gcry_mpi-scan prototype.
1099 (mpi_read): Fixed double increment of bytes read to correctly
1100 detect overlong MPIs.
1102 2006-11-05 Werner Koch <wk@g10code.com>
1104 * gpg.c (main): Remove the default --require-cross-certification.
1105 * options.skel: Enable require-cross-certification.
1107 2006-10-31 Werner Koch <wk@g10code.com>
1109 * pkclist.c (warn_missing_aes_from_pklist): New.
1110 * encode.c (encrypt_filter, encode_crypt): Use it here.
1112 2006-10-27 Werner Koch <wk@g10code.com>
1114 * pkclist.c (warn_missing_mdc_from_pklist): New.
1115 * encode.c (use_mdc): Use it here.
1117 2006-10-24 Marcus Brinkmann <marcus@g10code.de>
1119 * Makefile.am (AM_CFLAGS): Add $(LIBASSUAN_CFLAGS).
1121 2006-10-23 Werner Koch <wk@g10code.com>
1123 * gpg.c (main): New command --gpgconf-test.
1125 * Makefile.am (bzip2_source): New.
1127 2006-10-20 Werner Koch <wk@g10code.com>
1129 * getkey.c (classify_user_id): Reserve '&' for search by keygrip.
1131 2006-10-19 Werner Koch <wk@g10code.com>
1133 * keygen.c (get_parameter_algo): Add special case for ELG_E which
1134 is not supported by libgcrypt's mapping function.
1136 2006-10-18 Werner Koch <wk@g10code.com>
1138 * keyid.c (v3_keyid): Don't use mempcy as we need to hold the
1139 keyids in the native endian format.
1141 * import.c (import_print_stats): Use log_printf.
1143 * build-packet.c (do_public_key): Care about mpi_write errors.
1144 (do_secret_key, do_pubkey_enc, do_signature): Ditto.
1145 (mpi_write): Print an extra warning on error.
1147 2006-10-17 Werner Koch <wk@g10code.com>
1149 * Makefile.am (LDADD): Replaced W32LIBS by NETLIBS.
1151 2006-10-12 David Shaw <dshaw@jabberwocky.com>
1153 * parse-packet.c (parse_symkeyenc): Show the unpacked as well as
1154 the packed s2k iteration count.
1156 * main.h, options.h, gpg.c (encode_s2k_iterations, main),
1157 passphrase.c (hash_passphrase): Add --s2k-count option to specify
1158 the number of s2k hash iterations.
1160 2006-10-08 Werner Koch <wk@g10code.com>
1162 * gpgv.c: Remove the tty stubs as we are now required to link to
1163 tty anyway (it is included in libcommand and has dependencies to
1164 other modules as well).
1166 * keyedit.c (keyedit_menu): Use keyedit_completion only if
1167 readline is available. It would be better to move this code into
1170 2006-10-06 Werner Koch <wk@g10code.com>
1172 * Makefile.am (AM_CFLAGS): Use PTH version of libassuan.
1174 2006-10-06 David Shaw <dshaw@jabberwocky.com>
1176 * keyserver.c (keyserver_spawn): Write the 16-digit keyid rather
1177 than whatever key selector the user used on the command line.
1179 2006-10-05 Werner Koch <wk@g10code.com>
1181 * status.c (progress_cb): Changed to libgcrypt API.
1182 (set_status_fd): Register the progress cb.
1184 * seskey.c (encode_md_value): Check that the hash algo is valid
1185 before getting the OID.
1187 2006-10-04 Werner Koch <wk@g10code.com>
1189 * passphrase.c: Allow for a static passphrase in batch mode.
1191 * call-agent.c (agent_havekey): Removed.
1192 (percent_plus_escape): New.
1193 (agent_get_passphrase): New.
1194 (agent_clear_passphrase): New.
1196 * passphrase.c: Changed so that we always require the agent.
1197 (agent_send_option, agent_send_all_options, agent_open): Removed.
1198 (agent_get_passphrase): Cleaned up. Does now use the call-agent
1199 functions. Renamed to
1200 (passphrase_get): .. this. Changed all callers.
1201 (passphrase_clear_cache): Rewritten.
1202 (passphrase_to_dek, hash_passphrase): Re-indented.
1204 * gpg.c (main): Made --use-agent a dummy option.
1205 * seckey-cert.c (check_secret_key): We require the agent, so always
1208 * gpg.c (main): Print a warning if -sat has been used.
1209 (main): Removed the special treatment of the -k option. -k is now
1210 an alias for --list-keys.
1211 (main): Removed --list-ownertrust.
1213 2006-10-02 Werner Koch <wk@g10code.com>
1215 * encr-data.c (decrypt_data, mdc_decode_filter): Check the MDC
1216 right here and don't let parse-packet handle the MDC.
1218 2006-09-29 Werner Koch <wk@g10code.com>
1220 * compress.c (do_uncompress): Removed use of Z_PARTIAL_FLUSH.
1221 This is outdated and old zlib versions which still require it have
1224 2006-09-27 Werner Koch <wk@g10code.com>
1226 Replaced all STRLIST by strlist_t.
1228 2006-09-21 Werner Koch <wk@g10code.com>
1230 * signal.c (got_fatal_signal): Replaced readline stuff by a tty
1233 * Makefile.am (LDADD): Include libgpgrl.a.
1235 * gpg.c (main): Call gpg_rl_initialize.
1237 * keyedit.c: Removed double inclusion of stdio.h.
1239 2006-09-20 Werner Koch <wk@g10code.com>
1241 * call-agent.c: Include asshelp.h.
1242 (start_agent): Use send_pinentry_environment.
1244 2006-09-14 Werner Koch <wk@g10code.com>
1246 Replaced all call gpg_error_from_errno(errno) by
1247 gpg_error_from_syserror().
1249 2006-09-13 Werner Koch <wk@g10code.com>
1251 * gpg.c (main): Made --require-cross-certification the default.
1253 2006-09-06 Marcus Brinkmann <marcus@g10code.de>
1255 * Makefile.am (gpg2_LDADD, gpgv2_LDADD): Replace -lassuan and
1256 -lgpg-error with $(LIBASSUAN_LIBS) and $(GPG_ERROR_LIBS).
1257 (AM_CFLAGS): Add $(LIBASSUAN_CFLAGS) and $(GPG_ERROR_CFLAGS).
1259 2006-09-06 Werner Koch <wk@g10code.com>
1261 * gpg.c (main): Enable new assuan API.
1262 * call-agent.c: Changed to new Assuan API.
1264 2006-09-01 Werner Koch <wk@g10code.com>
1266 * call-agent.c: Do not force using the pipe server.
1268 * gpg.c (main): Enable card related commands.
1270 2006-08-22 Werner Koch <wk@g10code.com>
1272 * mainproc.c (proc_plaintext): Fixed a #warning
1274 2006-08-21 Werner Koch <wk@g10code.com>
1276 * skclist.c (random_is_faked): Implemented.
1277 (is_insecure): Also test for the old uppercase version of the
1279 * gpg.c (main): Renamed --quick-random to debug-quick-quick-random.
1281 * gpg.c (print_mds): Do not use the USE_SHA macros.
1283 * mainproc.c (proc_encrypted): Remove assign inside condition for
1286 * packet.h: Moved consts to new header ../common/openpgpdefs.h.
1288 2006-08-16 Werner Koch <wk@g10code.com>
1290 * keyserver.c (GPGKEYS_PREFIX): Rename to gpg2keys_. This is so
1291 that we can install helpers from 1.4 and 2 without conflicts and
1292 first of all don't get lost with weird bug reports.
1294 * keyid.c (serialno_and_fpr_from_sk): New. Actually lost during
1295 the last 1.4 to 1.9 merge.
1297 * gpg.c (list_config): Output ccid-reader-id only for gnupg 1.
1299 * call-agent.c (agent_scd_writekey): New.
1300 (inq_writekey_parms): New.
1302 * gpgv.c: Include call-agent.h for use by stubs.
1304 * misc.c: Include call-agent.h for use by get_signature_count.
1306 2006-07-27 Werner Koch <wk@g10code.com>
1308 * parse-packet.c (parse_comment): Cap comments at 65k.
1309 (parse_gpg_control): Skip too large control packets.
1311 2006-07-24 David Shaw <dshaw@jabberwocky.com> (wk)
1313 * keydb.h, pkclist.c (select_algo_from_prefs, algo_available):
1314 Pass a union for preference hints rather than doing void * games.
1316 * sign.c (sign_file): Use it here.
1318 * sign.c (sign_file): When signing with multiple DSA keys, one
1319 being DSA1 and one being DSA2 and encrypting at the same time, if
1320 the recipient preferences give a hash that can work with the DSA2
1321 key, then allow the DSA1 key to be promoted rather than giving up
1322 and using hash_for().
1324 * pkclist.c (algo_available): Automatically enable DSA2 mode when
1325 handling a key that clearly isn't DSA1 (i.e. q!=160).
1327 2006-06-30 Werner Koch <wk@g10code.com>
1329 * misc.c (checksum_mpi): No need for nbits as they are alredy
1330 included in the buffer.
1332 2006-06-29 Werner Koch <wk@g10code.com>
1334 * parse-packet.c (parse_signature, parse_key): Need store the
1335 length of opaque data as number of bits.
1336 * card-util.c (card_store_subkey): Ditto.
1338 * mainproc.c (print_pkenc_list, check_sig_and_print): Replaced
1339 log_get_stream by calls to log_printf. This avoids the extra LFs
1340 inserted by the logging function. They are a bit too smart
1342 * pkclist.c (do_show_revocation_reason): Print final LF through
1343 log_printf to avoid extra LFs.
1344 * pubkey-enc.c (get_it): Ditto.
1346 * seskey.c (encode_md_value): Fix call to gcry.
1348 2006-06-27 Werner Koch <wk@g10code.com>
1350 Applied patches from 1.4.x (2006-05-22 to 2006-06-23) from David:
1352 * keygen.c (keygen_upd_std_prefs, keygen_add_std_prefs)
1353 (proc_parameter_file): Add --default-keyserver-url to specify a
1354 keyserver URL at key generation time, and "Keyserver:" keyword for
1355 doing the same through a batch file.
1356 * options.h, gpg.c (main): Ditto.
1358 * sign.c (do_sign): For now don't accept a truncated hash even
1359 for DSA1 keys (be liberal in what you accept, etc).
1361 * import.c (import_one): Add a flag (from_sk) so we don't check
1362 prefs on an autoconverted public key. The check should only
1363 happen on the sk side. Noted by Dirk Traulsen.
1365 * keygen.c (gen_card_key): Add optional argument to return a
1366 pointer (not a copy) of the stub secret key for the secret key we
1367 just generated on the card.
1368 (generate_card_subkeypair): Use it here so that the signing key on
1369 the card can use the card to generate the 0x19 backsig on the
1370 primary key. Noted by Janko Heilgeist and Jonas Oberg.
1372 * parse-packet.c (parse_user_id): Cap the user ID size at 2048
1373 bytes. This prevents a memory allocation attack with a very large
1374 user ID. A very large packet length could even cause the
1375 allocation (a u32) to wrap around to a small number. Noted by
1376 Evgeny Legerov on full-disclosure.
1378 * keygen.c (gen_dsa): Allow generating DSA2 keys. Allow
1379 specifying sizes > 1024 when --enable-dsa2 is set. The size of q
1380 is set automatically based on the key size.
1381 (ask_keysize, generate_keypair): Ask for DSA size when
1382 --enable-dsa2 is set.
1384 * exec.c (make_tempdir) [W32]: Fix bug with a temporary directory
1385 on W32 that is over 256 bytes long. Noted by Israel G. Lugo.
1387 * gpg.c (reopen_std): New function to reopen fd 0, 1, or 2 if we
1388 are called with them closed. This is to protect our
1389 keyring/trustdb files from corruption if they get attached to one
1390 of the standard fds. Print a warning if possible that this has
1391 happened, and fail completely if we cannot reopen (should never
1393 (main): Call it here.
1395 * parse-packet.c (dump_sig_subpkt, parse_signature): Fix meaning
1396 of key expiration and sig expiration subpackets - zero means
1397 "never expire" according to 2440, not "expire instantly".
1398 * build-packet.c (build_sig_subpkt_from_sig): Ditto.
1399 * getkey.c (fixup_uidnode, merge_selfsigs_main)
1400 (merge_selfsigs_subkey): Ditto.
1401 * keygen.c (keygen_add_key_expire): Ditto.
1403 * getkey.c (get_pubkey_byname)
1404 * import.c (import_one): Fix key selection problem when
1405 auto-key-locate returns a list of keys, not all of which are
1406 usable (revoked, expired, etc). Noted by Simon Josefsson.
1408 2006-05-24 Werner Koch <wk@g10code.com>
1410 * keyid.c (hash_public_key): Do not double hash the length bytes,
1411 they are already included by mpi_print.
1413 * misc.c (openpgp_pk_test_algo2): Get test call right.
1415 * misc.c (string_to_cipher_algo, string_to_digest_algo): New.
1416 * keygen.c (keygen_set_std_prefs): use them here.
1417 * gpg.c (main): and here.
1419 2006-05-23 Werner Koch <wk@g10code.com>
1421 * card-util.c (generate_card_keys): Removed temporary kludge for
1424 * call-agent.c (agent_scd_setattr): Add arg SERIALNO.
1425 (agent_scd_genkey): Ditto.
1426 (agent_scd_change_pin): Ditto.
1428 * call-agent.h (struct agent_card_info_s): Updated to match the
1431 * Makefile.am (LDADD): Include ZLIBS.
1433 * gpgv.c: Removed stubs not anymore useful due to libgcrypt.
1435 2006-05-22 Werner Koch <wk@g10code.com>
1437 * keyserver.c (keyidlist): Replaced mpi_get_keyid by v3_keyid.
1438 * keydb.h (v3_keyid): Added.
1440 * import.c (import): Better initialize KEYBLOCK as to quiet
1443 * skclist.c (random_is_faked): New.
1445 * mainproc.c: Include pka.h.
1447 2006-05-19 Werner Koch <wk@g10code.com>
1449 * misc.c (openpgp_pk_test_algo2): Need to use gcry_pk_algo_info
1451 (string_count_chr): New.
1453 * armor.c (parse_header_line): Use renamed function
1454 length_sans_trailing_ws.
1456 * options.h, gpg.c: Option --strict is not used thus removed code
1459 2006-04-28 David Shaw <dshaw@jabberwocky.com> (wk)
1461 * keyserver.c (direct_uri_map): New.
1462 (keyserver_spawn): Used here to add "_uri" to certain gpgkeys_xxx
1463 helpers when the meaning is different if a path is provided (i.e.
1465 (keyserver_import_cert): Show warning if there is a CERT
1466 fingerprint, but no --keyserver set.
1468 * keyserver.c: Fix build problem with platforms that stick libcurl
1469 in a place not in the regular include search path.
1471 * options.h, gpg.c (main): Add --enable-dsa2 and --disable-dsa2.
1472 Defaults to disable.
1474 * pkclist.c (algo_available): If --enable-dsa2 is set, we're
1475 allowed to truncate hashes to fit DSA keys.
1477 * sign.c (match_dsa_hash): New. Return the best match hash for a
1479 (do_sign, hash_for, sign_file): When signing with a DSA key, if it
1480 has q==160, assume it is an old DSA key and don't allow truncation
1481 unless --enable-dsa2 is also set. q!=160 always allows truncation
1482 since they must be DSA2 keys.
1483 (make_keysig_packet): If the user doesn't specify a
1484 --cert-digest-algo, use match_dsa_hash to pick the best hash for
1487 * gpg.c (print_mds): Add SHA-224.
1488 * armor.c (armor_filter, parse_hash_header): Add SHA-224.
1490 * sign.c (write_plaintext_packet):
1491 Factor common literal packet setup code from here, to...
1492 * encode.c (encode_simple): .. there.
1494 * main.h, plaintext.c (setup_plaintext_name): Here. New. Make sure
1495 the literal packet filename field is UTF-8 encoded.
1497 * options.h, gpg.c (main): Make sure --set-filename is UTF-8
1498 encoded and note when filenames are already UTF-8.
1500 * keyedit.c (menu_backsign): Give some more verbose errors when we
1501 have no need to backsign.
1503 * getkey.c (parse_auto_key_locate): Fix dupe-removal code.
1505 * keyedit.c (menu_backsign): Allow backsigning even if the secret
1506 subkey doesn't have a binding signature.
1508 * armor.c (radix64_read): Don't report EOF when reading only a pad
1509 (=) character. The EOF actually starts after the pad.
1511 * gpg.c (main): Make --export, --send-keys, --recv-keys,
1512 --refresh-keys, and --fetch-keys follow their arguments from left
1513 to right. Suggested by Peter Palfrader.
1515 2006-04-18 Werner Koch <wk@g10code.com>
1517 * tdbio.c (open_db, migrate_from_v2): Removed feature to migration
1518 from old trustdb version 2.
1520 * gpg.c, mainproc.c: Removed pipemode feature.
1522 * status.c: Removed shared memory coprocess stuff
1524 Merged with current gpg 1.4.3 code.
1526 * keygen.c, keyid.c, misc.c, openfile.c, verify.c, trustdb.c
1527 * textfilter.c, tdbio.c, tdbdump.c, status.c, skclist.c, signal.c
1528 * sign.c, sig-check.c, seskey.c, seckey-cert.c, revoke.c
1529 * pubkey-enc.c, progress.c, plaintext.c, pkclist.c, photoid.c
1530 * passphrase.c, parse-packet.c, mdfilter.c, mainproc.c
1531 * keyserver.c, keyring.c, keylist.c, keyedit.c, keydb.c, kbnode.c
1532 * import.c, getkey.c, gpgv.c, helptext.c, free-packet.c
1533 * build-packet.c, cipher.c, compress.c, dearmor.c, decrypt.c
1534 * delkey.c, encr-data.c, encode.c, exec.c, export.c
1535 * gpg.c, armor.c: Updated from gnupg-1.4.3 and merged back gcry and
1536 gnupg-1.9 related changes.
1537 * trustdb.h, tdbio.h, status.h, photoid.h, packet.h, options.h
1538 * main.h, keyserver-internal.h, keyring.h, keydb.h, filter.h
1540 * global.h: Removed after merging constants with gpg.h.
1541 * comment.c, pipemode.c: Removed.
1542 * card-util.c: Updated from gnupg-1.4.3.
1543 * compress-bz2.c: New.
1545 2005-06-15 Werner Koch <wk@g10code.com>
1547 * g10.c (print_hashline, add_group): Fixes for signed/unsigned
1548 pointer mismatch warnings.
1550 2005-06-01 Werner Koch <wk@g10code.com>
1552 * mkdtemp.c: Removed.
1553 * exec.c: Include mkdtemp.h
1555 2004-12-21 Werner Koch <wk@g10code.com>
1557 * gpgv.c, g10.c (main): Use default_hoemdir ().
1559 2004-12-18 Werner Koch <wk@g10code.com>
1561 * gpg.h (map_assuan_err): Define in terms of
1562 map_assuan_err_with_source.
1564 2004-12-15 Werner Koch <wk@g10code.com>
1566 * Makefile.am (LDADD): Remove ZLIBS.
1568 2004-10-22 Werner Koch <wk@g10code.com>
1570 * g10.c (main): Display a bit fat warning that this gpg should not
1573 * card-util.c (fetch_url): Disable for gnupg 1.9
1574 (card_generate_subkey): Ditto.
1575 (card_store_subkey): Ditto.
1577 2004-09-30 Werner Koch <wk@g10code.com>
1579 * gpgv.c (i18n_init): Always use LC_ALL.
1581 * Makefile.am (LDADD): Adjusted for gettext 0.14.
1583 2004-09-20 Werner Koch <wk@g10code.com>
1585 * keyedit.c (show_key_with_all_names): Print the card S/N.
1587 2004-09-11 Moritz Schulte <moritz@g10code.com>
1589 * openfile.c (copy_options_file): Fixed last commit (added a `+').
1591 2004-08-31 Werner Koch <wk@g10code.de>
1593 * openfile.c (copy_options_file): Use gpg-conf.skel. Better take
1594 the length of SKELEXT into account, someone might make it larger.
1595 * Makefile.am: Install options.skel as gpg-conf.skel.
1597 2004-08-18 Marcus Brinkmann <marcus@g10code.de>
1599 * passphrase.c (agent_get_passphrase): Fix detection of gpg-agent
1602 2004-07-01 Werner Koch <wk@gnupg.org>
1604 * card-util.c (change_login): Kludge to allow reading data from a
1606 (card_edit): Pass ARG_STRING to change_login.
1607 (card_status): Print CA fingerprints.
1608 (change_cafpr): New.
1609 (card_edit): New command CAFPR.
1611 * call-agent.h: Add members for CA fingerprints.
1612 * call-agent.c (agent_release_card_info): Invalid them.
1613 (learn_status_cb): Store them.
1615 2004-04-30 Werner Koch <wk@gnupg.org>
1617 * g10.c (main) <gpgconf>: Use gpg.conf and not /dev/null as
1620 2004-04-28 Werner Koch <wk@gnupg.org>
1622 * card-util.c (card_edit): Remove PIN verification.
1623 (generate_card_keys): New arg SERIALNO. Do PIN verification here
1624 after resetting forced_chv1.
1626 2004-04-26 Werner Koch <wk@gnupg.org>
1628 * card-util.c (change_name): Check that the NAME is not too long.
1629 (change_url): Likewise.
1630 (change_login): Likewise.
1632 2004-03-23 Werner Koch <wk@gnupg.org>
1634 * g10.c: New options --gpgconf-list, --debug-level and --log-file
1635 (set_debug): Add arg DEBUG_LEVEL.
1636 (main): Look at less and less version specific config files. From
1639 2004-02-17 Werner Koch <wk@gnupg.org>
1641 * call-agent.c (start_agent): Ignore an empty GPG_AGENT_INFO.
1642 * passphrase.c (agent_open): Ditto.
1644 2004-02-12 Werner Koch <wk@gnupg.org>
1646 * gpgv.c: Removed g10defs.h.
1648 * Makefile.am: Include cmacros.am for common flags.
1650 2004-02-11 Werner Koch <wk@gnupg.org>
1652 * openfile.c (try_make_homedir): Use GNUPG_DEFAULT_HOMEDIR.
1653 * gpgv.c (main): Ditto.
1654 * g10.c (main): Ditto.
1656 2004-01-19 Moritz Schulte <mo@g10code.com>
1658 * keygen.c (do_generate_keypair): Print member fname, instead of
1660 (do_generate_keypair): Don't try to execute certain pieces of code
1661 in case an error occured.
1662 (gen_card_key): Don't print out a message, which is already
1663 printed by do_generate_keypair().
1665 2004-01-18 Moritz Schulte <mo@g10code.com>
1667 * keygen.c (do_generate_keypair): Print member fname, instead of
1670 2003-12-17 Werner Koch <wk@gnupg.org>
1672 * card-util.c (print_name): Fixed bad format string usage.
1673 (print_isoname): Ditto.
1675 * trustdb.c (check_regexp): s/exp/expr/.
1677 * keyedit.c (trustsig_prompt): Removed a "> 255" term; it is
1678 always false due to the data type.
1680 * passphrase.c (agent_get_passphrase): Use xasprintf and avoid
1681 non-literal format strings.
1683 * tdbio.c (upd_hashtable, drop_from_hashtable, lookup_hashtable):
1684 Fixed log_error format string bugs. Kudos to the now working
1685 gcc-3.3 -Wformat-nonliteral and Florian Weimer's investigations in
1688 2003-12-15 Werner Koch <wk@gnupg.org>
1690 * seckey-cert.c (protect_secret_key): Use gry_create_nonce for the
1691 IV; there is not need for real strong random here and it even
1692 better protect the random bits used for the key.
1694 2003-11-16 Moritz Schulte <mo@g10code.com>
1696 * signal.c: Removed unused file.
1698 2003-11-10 Moritz Schulte <mo@g10code.com>
1700 * Makefile.am (INCLUDES): Added: @LIBGCRYPT_CFLAGS@.
1702 2003-10-25 Werner Koch <wk@gnupg.org>
1704 * call-agent.c (learn_status_cb, scd_genkey_cb): Fixed faulty use
1707 2003-10-20 Werner Koch <wk@gnupg.org>
1709 * card-util.c (card_edit): New command "passwd". Add logic to
1710 check the PIN in advance.
1711 (card_status): Add new args to return the serial number. Changed
1713 * call-agent.c (agent_scd_checkpin): New.
1715 2003-10-08 Werner Koch <wk@gnupg.org>
1717 * call-agent.c (agent_scd_getattr): Don't clear the passed info
1718 structure, so that it can indeed be updated.
1720 * card-util.c (fpr_is_zero): New.
1721 (generate_card_keys): New.
1722 (card_edit): New command "generate".
1723 * keygen.c (generate_keypair): New arg CARD_SERIALNO, removed call
1725 (check_smartcard,show_smartcard): Removed.
1726 (show_sha1_fpr,fpr_is_zero): Removed.
1728 2003-10-01 Werner Koch <wk@gnupg.org>
1730 * card-util.c: Tweaked to use this source also under 1.3.
1732 2003-09-30 Werner Koch <wk@gnupg.org>
1734 * keylist.c (print_card_serialno): New.
1735 (list_keyblock_print): Use it here.
1737 * card-util.c (toggle_forcesig): New.
1738 (card_edit): New command "forcesig".
1740 * card-util.c (print_name, print_isoname): Use 0 and not LF fro
1741 the max_n arg of tty_print_utf8_string2.
1743 * call-agent.c (agent_scd_getattr): New.
1744 (learn_status_cb): Release values before assignment so that it can
1745 be used by getattr to update the structure.
1747 * card-util.c (change_pin): Simplified. We now have only a PIN
1750 2003-09-27 Werner Koch <wk@gnupg.org>
1752 * sign.c (do_sign): Removed disabled testcode.
1754 2003-09-26 Timo Schulz <twoaday@freakmail.de>
1756 * card_status (card_status): Do not use fputs since the fp
1757 parameter can be NULL. This fixes a segv.
1759 2003-09-24 Werner Koch <wk@gnupg.org>
1761 * card-util.c (print_isoname,card_status): Handle opt.with_colons.
1762 (print_sha1_fpr_colon): New.
1764 2003-09-23 Werner Koch <wk@gnupg.org>
1766 Merged most of David Shaw's changes in 1.3 since 2003-06-03.
1768 * Makefile.am: Include W32LIBS where appropriate.
1770 * armor.c (parse_hash_header,armor_filter): Drop TIGER/192 support.
1771 * g10.c (print_hex,print_mds): Ditto.
1772 * pkclist.c (algo_available): Ditto.
1774 * armor.c (armor_filter): Allow using --comment multiple times to
1775 get multiple Comment header lines. --no-comments resets list.
1776 * options.h, g10.c (main): Ditto. Deprecate --default-comment in
1777 favor of --no-comments.
1779 * g10.c (main): Trim --help to commonly used options. Remove -f.
1781 * g10.c (main): Add --multifile as an alias to turn --encrypt into
1782 --encrypt-files (plus --verify-files, --decrypt-files). Error out
1783 if --multifile is used with the commands that don't support it yet.
1785 * encode.c (use_mdc), g10.c (main): Use RFC1991 and RFC2440
1786 directly to check for MDC usability. Do not set the force_mdc or
1787 disable_mdc flags since there is no point any longer.
1789 * g10.c (main): Use "keyserver-url" instead of
1790 "preferred-keyserver" for the sake of short and simple commands.
1791 (add_keyserver_url): Clarify a few strings. It's a
1792 "preferred keyserver URL".
1793 * keyedit.c (keyedit_menu): Ditto.
1794 * sign.c (mk_notation_policy_etc): Ditto.
1796 * main.h, keygen.c (keygen_add_keyserver_url): Signature callback
1797 for adding a keyserver URL.
1798 * keyedit.c (keyedit_menu, menu_set_keyserver_url): New command to
1799 set preferred keyserver to specified (or all) user IDs.
1800 * build-packet.c (build_sig_subpkt): Set preferred keyserver flag
1801 while building a preferred keyserver subpacket.
1803 * keylist.c (show_policy_url, show_keyserver_url): URLs might be
1806 * keyedit.c (menu_addrevoker): Fix leaking a few bytes.
1808 * keyedit.c (show_key_with_all_names): Use list-option
1809 show-long-keyid in main --edit-key display.
1811 * keyedit.c (print_and_check_one_sig): Use list-option
1812 show-long-keyid in --edit-key "check" function.
1814 * passphrase.c (agent_send_all_options): Make use of $GPG_TTY.
1816 * g10.c (main): Disable use-agent if passphrase-fd is given
1817 later. Suggested by Kurt Garloff.
1819 * exec.c, g10.c, gpgv.c, passphrase.c, photoid.c:
1820 s/__MINGW32__/_WIN32/ to help building on native Windows
1821 compilers. Requested by Brian Gladman. From Werner on stable
1824 * options.h, g10.c (main): Add list-option
1825 list-preferred-keyserver.
1827 * keyedit.c (change_passphrase): When responding 'no' to the blank
1828 passphrase question, re-prompt for a new passphrase. This is bug
1831 * mainproc.c (check_sig_and_print): Use two different preferred
1832 keyserver displays - one if the key is not present (to tell the
1833 user where to get the key), the other if it is present (to tell
1834 the user where the key can be refreshed).
1836 * packet.h, parse-packet.c (parse_signature): Set flag if a
1837 preferred keyserver is present.
1839 * keylist.c (list_keyblock_print): Show keyserver url in listings
1840 with list-option show-keyserver-url.
1842 * mainproc.c (check_sig_and_print): Get the uid validity before
1843 printing any sig results to avoid munging the output with trustdb
1846 * g10.c (main): Don't include --show-keyring in --help as it is
1849 * options.skel: Note that keyserver.pgp.com isn't synchronized,
1850 and explain the roundrobin a bit better.
1852 * sig-check.c (check_key_signature2), import.c (import_one,
1853 import_revoke_cert, chk_self_sigs, delete_inv_parts,
1854 collapse_uids, merge_blocks): Make much quieter during import of
1855 slightly munged, but recoverable, keys. Use log_error for
1856 unrecoverable import failures.
1858 * keyring.c (keyring_rebuild_cache): Comment.
1860 * sign.c (mk_notation_and_policy): Making a v3 signature with
1861 notations or policy urls is an error, not an info (i.e. increment
1862 the errorcount). Don't print the notation or policy url to stdout
1863 since it can be mixed into the output stream when piping and munge
1866 * packet.h, sig-check.c (signature_check2, do_check,
1867 do_check_messages): Provide a signing-key-is-revoked flag. Change
1870 * status.h, status.c (get_status_string): New REVKEYSIG status tag
1871 for a good signature from a revoked key.
1873 * mainproc.c (do_check_sig, check_sig_and_print): Use it here.
1875 * import.c (import_revoke_cert, merge_blocks, merge_sigs): Compare
1876 actual signatures on import rather than using keyid or class
1877 matching. This does not change actual behavior with a key, but
1878 does mean that all sigs are imported whether they will be used or
1881 * parse-packet.c (parse_signature): Don't give "signature packet
1882 without xxxx" warnings for experimental pk algorithms. An
1883 experimental algorithm may not have a notion of (for example) a
1884 keyid (i.e. PGP's x.509 stuff).
1886 * options.h, g10.c (main), keylist.c (list_keyblock_print),
1887 keyedit.c (print_and_check_one_sig): New "show-sig-expire"
1888 list-option to show signature expiration dates (if any).
1890 * options.h, g10.c (main, add_keyserver_url): Add
1891 --sig-preferred-keyserver to implant a "where to get my key"
1892 subpacket into a signature.
1894 * sign.c (mk_notation_and_policy): Rename to
1895 mk_notation_policy_etc and add preferred keyserver support for
1898 * keygen.c (do_add_key_flags): Don't set the certify flag for
1900 (ask_algo): Provide key flags for DSA, Elgamal_e, and Elgamal
1902 (generate_keypair): Provide key flags for the default DSA/Elgamal
1905 * sig-check.c (signature_check, signature_check2,
1906 check_key_signature, check_key_signature2): Allow passing NULLs
1907 for unused parameters in the x2 form of each function to avoid the
1908 need for dummy variables. getkey.c, mainproc.c: Change all
1911 * trustdb.h, trustdb.c (read_trust_options): New. Returns items
1912 from the trustdb version record.
1913 * keylist.c (public_key_list): Use it here for the new "tru"
1915 * gpgv.c (read_trust_options): Stub.
1917 * keyedit.c (show_key_with_all_names): Use list-option
1918 show-validity in --edit-key interface as well.
1920 * options.h, g10.c (main), mainproc.c (check_sig_and_print): Add
1921 verify-options "show-validity" and "show-long-keyid" to show
1922 trustdb validity and long keyids during (file) signature
1925 * packet.h, main.h, sig-check.c (signature_check2)
1926 (check_key_signature2, do_check): If ret_pk is set, fill in the pk
1927 used to verify the signature. Change all callers in getkey.c,
1928 mainproc.c, and sig-check.c.
1930 * keylist.c (list_keyblock_colon): Use the ret_pk from above to
1931 put the fingerprint of the signing key in "sig" records during a
1932 --with-colons --check-sigs. This requires --no-sig-cache as well
1933 since we don't cache fingerprints.
1935 * parse-packet.c (parse_signature): No need to reserve 8 bytes for
1936 the unhashed signature cache any longer.
1938 * misc.c (pct_expando): Add two new expandos - signer's
1939 fingerprint (%g), and signer's primary fingerprint (%p).
1941 * g10.c (main): Add --rfc2440 alias for --openpgp since in a few
1942 months, they won't be the same thing.
1944 * keyserver.c (parse_keyserver_uri): Accept "http" as an alias for
1945 "hkp", since it is occasionally written that way.
1946 (keyserver_spawn): Use ascii_isspace to avoid locale issues.
1948 * keygen.c (ask_user_id): Make --allow-freeform-uid apply to the
1949 email field as well as the name field, and allow mixing fields
1952 * trustdb.c (validate_one_keyblock): Certifications on revoked or
1953 expired uids do not count in the web of trust.
1955 * signal.c (init_one_signal, pause_on_sigusr, do_block): Only use
1956 sigprocmask() if we have sigset_t, and only use sigaction() if we
1957 have struct sigaction. This is for Forte c89 on Solaris which
1958 seems to define only the function call half of the two pairs by
1960 (pause_on_sigusr): Typo.
1961 (do_block): If we can't use sigprocmask() and sigset_t, try to get
1962 the number of signals from NSIG as well as MAXSIG, and if we
1963 can't, fail with an explanation.
1965 * signal.c, tdbio.c: Comment out the transaction code. It was not
1966 used in this version, and was causing some build problems on
1967 quasi-posix platforms (Solaris and Forte c89).
1969 * keylist.c (list_keyblock_colon): Don't include validity values
1970 when listing secret keys since they can be incorrect and/or
1971 misleading. This is a temporary kludge, and will be handled
1972 properly in 1.9/2.0.
1974 * mainproc.c (check_sig_and_print): Only show the "key available
1975 from" preferred keyserver line if the key is not currently
1978 * keyedit.c (sign_uids): Do not sign expired uids without --expert
1979 (same behavior as revoked uids). Do not allow signing a user ID
1980 without a self-signature. --expert overrides. Add additional
1981 prompt to the signature level question.
1982 (menu_expire): When changing expiration dates, don't replace
1983 selfsigs on revoked uids since this would effectively unrevoke
1984 them. There is also no point in replacing expired selfsigs. This
1987 * g10.c (add_notation_data): Make sure that only ascii is passed
1988 to iscntrl. Noted by Christian Biere.
1989 * getkey.c (classify_user_id2): Replaced isspace by spacep
1990 * keygen.c (ask_user_id): Ditto.
1991 (get_parameter_algo): Ditto.
1992 * keyedit.c (keyedit_menu): Ditto.
1993 * tdbdump.c (import_ownertrust): Ditto. s/isxdigit/hexdigitp/.
1994 * revoke.c (ask_revocation_reason):
1995 * keyserver.c (keyserver_spawn): Dito.
1997 * parse-packet.c (parse): Disallow old style partial length for
1998 all key material packets to avoid possible corruption of keyrings.
2000 * import.c (import_keys_internal): Invalidate the cache so that
2001 the file descriptor gets closed. Fixes bug reported by Juan
2004 * options.h, g10.c (main), main.h, keylist.c (show_keyserver_url),
2005 mainproc.c (check_sig_and_print), parse-packet.c (dump_sig_subpkt,
2006 parse_one_sig_subpkt, can_handle_critical): Add read-only support
2007 for preferred keyserver subpackets. They're basically policy URLs
2008 with a different name. Add a verify-option
2009 "show-preferred-keyserver" to turn them on and off (on by default,
2010 as per stable branch).
2012 * g10.c (main): Add "--set-notation" as alias to "--notation-data"
2013 this is to make things consistent with --set-policy-url meaning
2014 both sigs and certs.
2016 * options.h, g10.c (main), keylist.c (list_keyblock_print): Add
2017 "show-validity" and "show-long-keyid" list-options.
2019 * gpgv.c (get_validity, trust_value_to_string): Stubs.
2021 * g10.c (main): Use SAFE_VERSION instead of VERSION in the
2022 version-specific gpg.conf file so it can be overridden on RISCOS.
2024 * keyedit.c (show_key_with_all_names): Fix assertion failure when
2025 using toggle to see a secret key. Reported by Maxim Britov.
2028 2003-09-22 Timo Schulz <twoaday@freakmail.de>
2030 * card-util.c (card_status): Free pk in case of an error
2031 and return if the card is no OpenPGP card.
2033 2003-09-18 Werner Koch <wk@gnupg.org>
2035 * g10.c: New command --card-edit.
2036 * card-util.c (card_status): Use tty_fprintf for all output.
2037 (print_sha1_fpr, print_isoname): Ditto.
2038 (get_one_name,change_name, change_url, change_login,change_lang)
2039 (change_sex): New; taken from keygen.c.
2040 * keygen.c (smartcard_get_one_name, smartcard_change_name)
2041 (smartcard_change_url, smartcard_change_login_data)
2042 (smartcard_change_lang, smartcard_change_sex): Removed.
2043 (check_smartcard): Removed most menu items.
2045 2003-09-06 Werner Koch <wk@gnupg.org>
2047 * misc.c (openpgp_pk_algo_usage): Allow AUTH where SIGN is allowed.
2049 * keygen.c (ask_passphrase): No need to allocated S2K in secure
2052 2003-09-04 Werner Koch <wk@gnupg.org>
2054 * keygen.c (do_add_key_flags, parse_parameter_usage)
2055 (do_generate_keypair): Add support the proposed AUTH key flag.
2056 * getkey.c (fixup_uidnode, merge_selfsigs_main)
2057 (merge_selfsigs_subkey, premerge_public_with_secret): Ditto.
2058 * keylist.c (print_capabilities): Ditto.
2060 2003-08-25 Timo Schulz <twoaday@freakmail.de>
2062 * pkglue.c (mpi_from_sexp): New. Used to factor out
2065 2003-08-24 Werner Koch <wk@gnupg.org>
2067 * keygen.c (do_generate_keypair): Print a reminder to use --gen-revoke.
2069 2003-08-18 Timo Schulz <twoaday@freakmail.de>
2071 * encode.c (encode_sesskey): Checked the code and removed
2072 the warning since all compatibility checks with PGP succeeded.
2073 * mainproc.c (symkey_decrypt_sesskey): Better check for the
2074 algorithm and check the return values of some functions.
2075 * mdc.c (use_mdc): Simplified.
2077 2003-08-07 Werner Koch <wk@gnupg.org>
2079 * pkglue.c (pk_sign): Fix last change.
2080 (pk_verify): Check for valid DATA array so that we don't segv in
2084 2003-08-06 Werner Koch <wk@gnupg.org>
2086 * pkglue.c (pk_sign): Allow signing using RSA.
2088 2003-08-05 Werner Koch <wk@gnupg.org>
2090 * Makefile.am (install-data-local): Dropped check for the ancient
2092 (bin_PROGRAMS): Renamed gpg to gpg2 and gpgv to gpgv2. This is so
2093 that it won't conflict with the current stable version of gpg.
2095 * pkglue.c (pk_check_secret_key): New.
2096 * seckey-cert.c (do_check): Reenable this test here again.
2098 * g10.c (main): Add command -K as an alias for
2099 --list-secret-keys. Command "-k" is now an alias to --list-keys.
2100 Remove special treatment of -kv and -kvv.
2102 (main): Strip a "-cvs" suffix when testing for a version specific
2105 * status.h, status.c, g10.c [USE_SHM_COPROCESSING]: Removed. This
2106 is not any longer available.
2108 2003-07-29 Werner Koch <wk@gnupg.org>
2110 * g10.c (main): Add secmem features and set the random seed file.
2111 (g10_exit): Update the random seed file.
2113 * parse-packet.c (parse_signature,read_protected_v3_mpi)
2114 (parse_key): Fixed use of mpi_set_opaque.
2115 * keygen.c (gen_card_key): Ditto.
2117 2003-07-28 Werner Koch <wk@gnupg.org>
2119 * status.c (progress_cb): Adjusted for use with Libcgrypt.
2120 (set_status_fd): Register that callback.
2122 * keygen.c (smartcard_change_login_data): New.
2123 (smartcard_change_lang): New.
2124 (smartcard_change_sex): New.
2125 (check_smartcard): Add menu entries to edit the above.
2126 (gen_elg,gen_dsa,gen_rsa): Reimplemented in terms of Libgcrypt.
2127 (genhelp_protect, genhelp_factors, key_from_sexp): New.
2128 * comment.c (make_comment_node_from_buffer): New.
2129 (make_comment_node): Reimplemented in terms of above.
2131 2003-07-27 Werner Koch <wk@gnupg.org>
2133 Adjusted for gcry_mpi_print and gcry_mpi_scan API change.
2135 2003-07-24 Werner Koch <wk@gnupg.org>
2137 * g10.c: New command --card-status.
2138 * card-util.c (card_status): New.
2139 * call-agent.c (learn_status_cb): Parse more information.
2141 * keylist.c (print_pubkey_info): Add FP arg for optional printing
2142 to a stream. Changed all callers.
2144 2003-07-23 Werner Koch <wk@gnupg.org>
2146 * keygen.c (generate_keypair): Create an AUTHKEYTYPE entry for cards.
2147 (do_generate_keypair): Abd generate the authkey.
2148 (check_smartcard): Changed menu accordingly.
2150 2003-07-22 Werner Koch <wk@gnupg.org>
2152 * g10.c: New command --change-pin.
2154 * call-agent.c (agent_scd_change_pin): New.
2155 (agent_release_card_info): New.
2156 * keygen.c (check_smartcard): Use it here.
2158 2003-07-16 Werner Koch <wk@gnupg.org>
2160 * export.c (parse_export_options): New option sexp-format.
2161 (export_seckeys,export_secsubkeys): Check sexp-format option.
2162 (do_export): Ignore armor for sexp format.
2163 (do_export_stream): Handle sexp-format.
2164 (write_sexp_line,write_sexp_keyparm, build_sexp_seckey): New.
2167 2003-07-03 Werner Koch <wk@gnupg.org>
2169 * options.h (DBG_CIPHER): Reintroduced it.
2170 * seskey.c (encode_session_key): Debug output of the session key.
2172 * pubkey-enc.c (get_it): Handle card case.
2173 * call-agent.c (agent_scd_pkdecrypt): New.
2174 * pkglue.c (pk_encrypt): Add RSA support.
2176 * g10.c (main): Default to --use-agent.
2178 * keygen.c (show_smartcard): Print info about the public key.
2179 (check_smartcard): Check for existing key here.
2180 (gen_card_key): And not anymore here.
2182 (generate_keypair): Generate both keys for a card.
2183 (smartcard_change_url): Nw.
2185 2003-07-02 Werner Koch <wk@gnupg.org>
2187 * seckey-cert.c (is_secret_key_protected): Let it handle mode 1002.
2189 2003-07-01 Werner Koch <wk@gnupg.org>
2191 * keygen.c (gen_card_key): Obviously we should use the creation
2192 date received from SCDAEMON, so that the fingerprints will match.
2193 * sign.c (do_sign): Pass the serialno to the sign code.
2194 * keyid.c (serialno_and_fpr_from_sk): New.
2196 2003-06-30 Werner Koch <wk@gnupg.org>
2198 * call-agent.h (agent_card_info_s): Add field serialno.
2199 * call-agent.c (store_serialno): New.
2200 (learn_status_cb): Store the serial number.
2201 * keygen.c (gen_card_key): Store the serial number
2202 (check_smartcard): New argument to return the serial number.
2203 (generate_keypair): Get the serial number from check_smartcard and
2204 store it as a parameter.
2205 * parse-packet.c (parse_key): Use the protect.iv field to store the
2207 * build-packet.c (do_secret_key): Write the serial number.
2209 2003-06-27 Werner Koch <wk@gnupg.org>
2211 * seckey-cert.c (check_secret_key): Bypass the unprotection for
2213 * sign.c (do_sign): Handle card case (i.e. mode 1002).
2215 2003-06-26 Werner Koch <wk@gnupg.org>
2217 * build-packet.c (do_secret_key): Implement special protection
2219 * parse-packet.c (parse_key): Likewise.
2221 * keygen.c (smartcard_gen_key): New.
2222 * call-agent.c (agent_scd_setattr): New.
2224 2003-06-24 Werner Koch <wk@gnupg.org>
2226 * Makefile.am: Removed signal.c
2228 * g10.c (emergency_cleanup): New.
2229 (main): Use gnupg_init_signals and register malloc for assuan.
2231 2003-06-23 Werner Koch <wk@gnupg.org>
2233 * keyid.c (do_fingerprint_md): Made it work again.
2235 2003-06-19 Werner Koch <wk@gnupg.org>
2237 Fixed all "==" comparisons against error code constants to use
2240 * import.c (import_secret_one):
2241 (import_revoke_cert):
2244 * misc.c (openpgp_md_map_name): Check also for the Hx format.
2245 (openpgp_cipher_map_name): Check also for the Sx format.
2246 (pubkey_get_npkey): Adjusted for changed gcrypt API.
2247 (pubkey_get_nskey): Ditto.
2248 (pubkey_get_nsig): Ditto.
2249 (pubkey_get_nenc): Ditto.
2251 2003-06-18 Werner Koch <wk@gnupg.org>
2253 Finished the bulk of changes for gnupg 1.9. This included
2254 switching to libgcrypt functions, using shared error codes from
2255 libgpg-error, replacing the old functions we used to have in
2256 ../util by those in ../jnlib and ../common, renaming the malloc
2257 functions and a couple of types. Note, that not all changes are
2258 listed below becuause they are too similar and done at far too
2259 many places. As of today the code builds using the current
2260 libgcrypt from CVS but it is very unlikely that it actually works.
2262 * sig-check.c (cmp_help): Removed. Was never used.
2264 * pkglue.c: New. Most stuff taken from gnupg 1.1.2.
2267 * misc.c (pull_in_libs): Removed.
2269 * keygen.c (count_chr): New.
2270 (ask_user_id): Removed faked RNG support.
2272 * misc.c (openpgp_md_map_name,openpgp_cipher_map_name)
2273 (openpgp_pk_map_name): New.
2275 * skclist.c (build_sk_list): Removed faked RNG support.
2276 (is_insecure): Removed.
2278 * comment.c (make_mpi_comment_node): Use gcry MPI print function.
2280 * keyid.c (v3_keyid): New.
2282 * misc.c (mpi_write,mpi_write_opaque,mpi_read,mpi_read_opaque)
2283 (mpi_print): New. Taken from gnupg 1.1.2.
2284 (checksum_mpi): Replaced by implementation from 1.1.2.
2286 * g10.c (my_strusage): Renamed from strusage and return NULL
2287 instead calling a default function.
2288 (add_to_strlist2): New. Taken from ../util/strgutil.c of gnupg 1.2.
2290 * plaintext.c (handle_plaintext): New arg CREATE_FILE to cope with
2291 the fact that gpg-error does not have this error code anymore.
2293 * mainproc.c (symkey_decrypt_sesskey): Ditto.
2295 * seskey.c (make_session_key): Adjusted for use with libgcrypt.
2296 (encode_session_key): Ditto.
2297 (do_encode_md): Ditto.
2298 (encode_md_value): Ditto.
2300 * keyring.c: Use libgpg-error instead of READ_ERROR etc.
2302 * g10.c: Adjusted all algorithm name/id mapping functions.
2303 (set_debug): Pass MPI and CRYPTO debug values to libgcrypt.
2305 * Makefile.am (INCLUDES): Define LOCALEDIR and the default error
2308 * g10.c (i18n_init): s/G10_LOCALEDIR/LOCALEDIR/.
2310 Renamed m_alloc et al to xmalloc et al.
2311 s/g10_errstr/gpg_strerror/
2313 Adjusted all md_open calls to the libgcrypt API.
2315 * build-packet.c (do_comment): Return error code from iobuf write
2317 (do_user_id): Ditto.
2318 (do_public_key): Ditto.
2320 * Makefile.am: Add new files, link gpg with libgpg-error.
2321 * g10.c, options.h: New option --agent-program.
2322 * call-agent.c: New.
2323 * gpg.h, call-agent.h: New.
2325 2003-06-03 David Shaw <dshaw@jabberwocky.com>
2327 * options.h, g10.c (main), keylist.c (list_keyblock_print): Add
2328 "show-validity" and "show-long-keyid" list-options.
2330 * gpgv.c (get_validity, trust_value_to_string): Stubs.
2332 * g10.c (main): Use SAFE_VERSION instead of VERSION in the
2333 version-specific gpg.conf file so it can be overridden on RISCOS.
2335 2003-06-01 David Shaw <dshaw@jabberwocky.com>
2337 * g10.c (main), keylist.c (show_policy_url, show_notation),
2338 mainproc.c (check_sig_and_print): Emulate the old policy and
2339 notation behavior (display by default). Send to status-fd whether
2340 it is displayed on the screen or not.
2342 * g10.c (main): Since we now have some options in devel that won't
2343 work in a stable branch gpg.conf file, try for a version-specific
2344 gpg.conf-VERSION file before falling back to gpg.conf.
2346 * main.h, options.h: Move various option flags to options.h.
2348 2003-05-31 David Shaw <dshaw@jabberwocky.com>
2350 * mainproc.c (check_sig_and_print), main.h, keylist.c
2351 (show_policy, show_notation): Collapse the old print_notation_data
2352 into show_policy() and show_notation() so there is only one
2353 function to print notations and policy URLs.
2355 * options.h, main.h, g10.c (main), keyedit.c
2356 (print_and_check_one_sig), keylist.c (list_one,
2357 list_keyblock_print), pkclist.c (do_edit_ownertrust), sign.c
2358 (mk_notation_and_policy): New "list-options" and "verify-options"
2359 commands. These replace the existing
2360 --show-photos/--no-show-photos,
2361 --show-notation/--no-show-notation,
2362 --show-policy-url/--no-show-policy-url, and --show-keyring
2363 options. The new method is more flexible since a user can specify
2364 (for example) showing photos during sig verification, but not in
2365 key listings. The old options are emulated.
2367 * main.h, misc.c (parse_options): New general option line
2368 parser. Fix the bug in the old version that did not handle report
2369 syntax errors after a valid entry.
2371 * import.c (parse_import_options), export.c
2372 (parse_export_options): Call it here instead of duplicating the
2375 2003-05-30 David Shaw <dshaw@jabberwocky.com>
2377 * keylist.c (list_one): Don't show the keyring filename when in
2378 --with-colons mode. Actually translate "Keyring" string.
2380 * mainproc.c (proc_tree): We can't currently handle multiple
2381 signatures of different classes or digests (we'd pretty much have
2382 to run a different hash context for each), but if they are all the
2383 same, make an exception. This is Debian bug #194292.
2385 * sig-check.c (check_key_signature2): Make string translatable.
2387 * packet.h, getkey.c (fixup_uidnode): Mark real primary uids
2388 differently than assumed primaries.
2390 * keyedit.c (no_primary_warning): Use the differently marked
2391 primaries here in a new function to warn when an --edit-key
2392 command might rearrange the self-sig dates enough to change which
2394 (menu_expire, menu_set_preferences): Use no_primary_warning()
2397 * Makefile.am: Use @DLLIBS@ for -ldl.
2399 2003-05-26 David Shaw <dshaw@jabberwocky.com>
2401 * getkey.c (premerge_public_with_secret): Made "no secret subkey
2402 for" warning a verbose item and translatable. (From wk on stable
2405 * sig-check.c (check_key_signature2): Made "no subkey for subkey
2406 binding packet" a verbose item instead of a !quiet one. There are
2407 too many garbled keys out in the wild. (From wk on stable branch)
2409 * filter.h: Remove const from WHAT. (From wk on stable branch)
2411 * progress.c (handle_progress): Store a copy of
2412 NAME. (progress_filter): Release WHAT, make sure not to print a
2413 NULL WHAT. (From wk on stable branch)
2415 * openfile.c (open_sigfile): Adjust free for new progress
2416 semantics. (From wk on stable branch)
2418 * plaintext.c (ask_for_detached_datafile): Don't dealloc
2419 pfx->WHAT. (From wk on stable branch)
2421 * seckey-cert.c (do_check): Issue the RSA_OR_IDEA status when the
2422 cipher algo is IDEA to make it easier to track down the
2423 problem. (From twoaday on stable branch)
2425 2003-05-24 David Shaw <dshaw@jabberwocky.com>
2427 * armor.c, g10.c, kbnode.c, misc.c, pkclist.c, sign.c,
2428 build-packet.c, getkey.c, keydb.c, openfile.c, plaintext.c,
2429 status.c, gpgv.c, keygen.c, options.h, sig-check.c, tdbio.h,
2430 encode.c, mainproc.c, parse-packet.c, signal.c, textfilter.c: Edit
2431 all preprocessor instructions to remove whitespace before the '#'.
2432 This is not required by C89, but there are some compilers out
2433 there that don't like it.
2435 2003-05-21 David Shaw <dshaw@jabberwocky.com>
2437 * trustdb.h, trustdb.c (is_disabled), gpgv.c (is_disabled): Rename
2438 is_disabled to cache_disabled_value, which now takes a pk and not
2439 just the keyid. This is for speed since there is no need to
2440 re-fetch a key when we already have that key handy. Cache the
2441 result of the check so we don't need to hit the trustdb more than
2444 * getkey.c (skip_disabled): New function to get a pk and call
2445 is_disabled on it. (key_byname): Use it here.
2447 * packet.h, getkey.c (skip_disabled), keylist.c
2448 (print_capabilities): New "pk_is_disabled" macro to retrieve the
2449 cached disabled value if available, and fill it in via
2450 cache_disabled_value if not available.
2452 * trustdb.c (get_validity): Cache the disabled value since we have
2453 it handy and it might be useful later.
2455 * parse-packet.c (parse_key): Clear disabled flag when parsing a
2456 new key. Just in case someone forgets to clear the whole key.
2458 * getkey.c (merge_selfsigs_main): Add an "if all else fails" path
2459 for setting a single user ID primary when there are multiple set
2460 primaries all at the same second, or no primaries set and the most
2461 recent user IDs are at the same second, or no signed user IDs at
2462 all. This is arbitrary, but deterministic.
2464 * exec.h, photoid.h: Add copyright message.
2466 * keylist.c (list_keyblock_print): Don't dump attribs for
2467 revoked/expired/etc uids for non-colon key listings. This is for
2468 consistency with --show-photos.
2470 * main.h, keylist.c (dump_attribs), mainproc.c
2471 (check_sig_and_print): Dump attribs if --attrib-fd is set when
2472 verifying signatures.
2474 * g10.c (main): New --gnupg option to disable the various
2475 --openpgp, --pgpX, etc. options. This is the same as --no-XXXX
2478 * revoke.c (ask_revocation_reason): Clear old reason if user
2479 elects to repeat question. This is bug 153.
2481 * keyedit.c (sign_uids): Show keyid of the key making the
2484 2003-05-21 Werner Koch <wk@gnupg.org>
2486 * progress.c (handle_progress)
2487 * sign.c (write_plaintext_packet)
2488 * encode.c (encode_simple,encode_crypt): Make sure that a filename
2489 of "-" is considered to be stdin so that iobuf_get_filelength
2490 won't get called. This fixes bug 156 reported by Gregery Barton.
2492 2003-05-02 David Shaw <dshaw@jabberwocky.com>
2494 * packet.h, build-packet.c (build_sig_subpkt), export.c
2495 (do_export_stream), import.c (remove_bad_stuff, import),
2496 parse-packet.c (dump_sig_subpkt, parse_one_sig_subpkt): Remove
2497 vestigal code for the old sig cache subpacket. This wasn't
2498 completely harmless as it caused subpacket 101 to disappear on
2501 * options.h, armor.c, cipher.c, g10.c, keyedit.c, pkclist.c,
2502 sign.c, encode.c, getkey.c, revoke.c: The current flags for
2503 different levels of PGP-ness are massively complex. This is step
2504 one in simplifying them. No functional change yet, just use a
2505 macro to check for compliance level.
2507 * sign.c (sign_file): Fix bug that causes spurious compression
2510 * sign.c (clearsign_file): Fix bug that prevents proper warning
2511 message from appearing when clearsigning in --pgp2 mode with a
2514 * main.h, misc.c (compliance_option_string, compliance_string,
2515 compliance_failure), pkclist.c (build_pk_list), sign.c (sign_file,
2516 clearsign_file), encode.c (encode_crypt,
2517 write_pubkey_enc_from_list): New functions to put the "this
2518 message may not be usable...." warning in one place.
2520 * options.h, g10.c (main): Part two of the simplification. Use a
2521 single enum to indicate what we are compliant to (1991, 2440,
2524 * g10.c (main): Show errors for failure in export, send-keys,
2525 recv-keys, and refresh-keys.
2527 * options.h, g10.c (main): Give algorithm warnings for algorithms
2528 chosen against the --pgpX and --openpgp rules.
2530 * keydb.h, pkclist.c (algo_available): Make TIGER192 invalid in
2533 * sign.c (sign_file), pkclist.c (algo_available): Allow passing a
2536 2003-05-01 David Shaw <dshaw@jabberwocky.com>
2538 * tdbio.c (create_version_record): Only create new trustdbs with
2539 TM_CLASSIC or TM_PGP.
2541 * trustdb.h, trustdb.c (trust_string, get_ownertrust_string,
2542 get_validity_string, ask_ownertrust, validate_keys), pkclist.c
2543 (do_edit_ownertrust): Rename trust_string to trust_value_to_string
2544 for naming consistency.
2546 * trustdb.h, trustdb.c (string_to_trust_value): New function to
2547 translate a string to a trust value.
2549 * g10.c (main): Use string_to_trust_value here for
2552 * options.h, g10.c (main), trustdb.c (trust_model_string,
2553 init_trustdb, check_trustdb, update_trustdb, get_validity,
2554 validate_one_keyblock): An "OpenPGP" trust model is misleading
2555 since there is no official OpenPGP trust model. Use "PGP"
2558 2003-04-30 David Shaw <dshaw@jabberwocky.com>
2560 * build-packet.c (build_sig_subpkt): Comments.
2562 * exec.c (exec_write): Cast NULL to void* to properly terminate
2565 * keyedit.c (show_key_with_all_names): Just for safety, catch an
2566 invalid pk algorithm.
2568 * sign.c (make_keysig_packet): Crucial that the call to mksubpkt
2569 comes LAST before the calls to finalize the sig as that makes it
2570 possible for the mksubpkt function to get a reliable pointer to
2573 * pkclist.c (do_we_trust_pre): If an untrusted key was chosen by a
2574 particular user ID, use that ID as the one to ask about when
2575 prompting whether to use the key anyway.
2576 (build_pk_list): Similar change here when adding keys to the
2579 * trustdb.c (update_validity): Fix bug that prevented more than
2580 one validity record per trust record.
2581 (get_validity): When retrieving validity for a (user) supplied
2582 user ID, return the validity for that user ID only, and do not
2583 fall back to the general key validity.
2584 (validate_one_keyblock): Some commentary on whether
2585 non-self-signed user IDs belong in the web of trust (arguably,
2588 2003-04-27 David Shaw <dshaw@jabberwocky.com>
2590 * g10.c (main): Add --no-textmode.
2592 * export.c (do_export_stream), keyedit.c (show_key_with_all_names,
2593 menu_addrevoker), mainproc.c (check_sig_and_print), photoid.c
2594 (show_photos), sign.c (mk_notation_and_policy), trustdb.c
2595 (get_validity, reset_trust_records, validate_keys): Make some
2596 strings translatable.
2598 * mainproc.c (check_sig_and_print): Show digest algorithm and sig
2599 class when verifying a sig with --verbose on, and add version, pk
2600 and hash algorithms and sig class to VALIDSIG.
2602 * parse-packet.c (enum_sig_subpkt): Make a warning message a
2603 --verbose warning message since we don't need to warn every time
2604 we see an unknown critical (we only need to invalidate the
2607 * trustdb.c (init_trustdb): Check the trustdb options even with
2608 TM_AUTO since the auto may become TM_CLASSIC or TM_OPENPGP.
2610 2003-04-26 David Shaw <dshaw@jabberwocky.com>
2612 * sign.c (do_sign): Show the hash used when making a signature in
2615 * tdbio.h, tdbio.c (tdbio_read_model): New function to return the
2616 trust model used in a given trustdb.
2618 * options.h, g10.c (main), trustdb.c (init_trustdb, check_trustdb,
2619 update_trustdb): Use tdbio_read_model to implement an "auto" trust
2620 model which is set via the trustdb.
2622 2003-04-23 David Shaw <dshaw@jabberwocky.com>
2624 * import.c (import_revoke_cert): Remove ultimate trust when
2625 revoking an ultimately trusted key.
2627 * keyedit.c (sign_uids): Allow replacing expired signatures.
2628 Allow duplicate signatures with --expert.
2630 * pkclist.c (check_signatures_trust): Don't display a null
2631 fingerprint when checking a signature with --always-trust enabled.
2633 * filter.h (progress_filter_context_t), progress.c
2634 (handle_progress), plaintext.c (ask_for_detached_datafile,
2635 hash_datafiles): Fix compiler warnings. Make "what" constant.
2637 * build-packet.c (do_plaintext): Do not create invalid literal
2638 packets with >255-byte names.
2640 2003-04-15 Werner Koch <wk@gnupg.org>
2642 * Makefile.am (AM_CFLAGS): Make use of AM_CFLAGS and AM_LDFLAGS.
2644 * g10.c, options.h: New option --enable-progress-filter.
2645 * progress.c (handle_progress): Make use of it.
2647 2003-04-15 Marcus Brinkmann <marcus@g10code.de>
2649 * progress.c: New file.
2650 * Makefile.am (common_source): Add progress.c.
2651 * filter.h (progress_filter_context_t): New type.
2652 (progress_filter, handle_progress): New prototypes.
2653 * main.h (open_sigfile): New argument for prototype.
2654 * openfile.c (open_sigfile): New argument to install progress
2656 * encode.c (encode_simple): New variable PFX. Register
2657 progress filter. Install text_filter after that.
2658 (encode_crypt): Likewise.
2659 * sign.c (sign_file): Likewise.
2660 (clearsign_file): Likewise.
2661 * decrypt.c (decrypt_message): Likewise.
2662 (decrypt_messages): Likewise.
2663 * verify.c (verify_signatures): Likewise.
2664 (verify_one_file): Likewise.
2665 * plaintext.c (hash_datafiles): Likewise.
2666 (ask_for_detached_datafile): Likewise.
2668 2003-04-10 Werner Koch <wk@gnupg.org>
2670 * passphrase.c (read_passphrase_from_fd): Do a dummy read if the
2671 agent is to be used. Noted by Ingo Klöcker.
2672 (agent_get_passphrase): Inhibit caching when we have no
2673 fingerprint. This is required for key generation as well as for
2674 symmetric only encryption.
2676 * passphrase .c (agent_get_passphrase): New arg CANCELED.
2677 (passphrase_to_dek): Ditto. Passed to above. Changed all
2678 callers to pass NULL.
2679 * seckey-cert.c (do_check): New arg CANCELED.
2680 (check_secret_key): Terminate loop when canceled.
2682 * keyedit.c (change_passphrase): Pass ERRTEXT untranslated to
2683 passphrase_to_dek and translate where appropriate.
2684 * seckey-cert.c (check_secret_key): Ditto.
2685 * keygen.c (ask_passphrase): Ditto.
2686 * passphrase.c (agent_get_passphrase): Translate the TRYAGAIN_TEXT.
2687 Switch the codeset to utf-8.
2689 2003-04-09 Werner Koch <wk@gnupg.org>
2691 * decrypt.c (decrypt_messages): Fixed error handling; the function
2692 used to re-loop with same file after an error. Reported by Joseph
2695 2003-04-08 David Shaw <dshaw@jabberwocky.com>
2697 * main.h, g10.c (main), import.c (parse_import_options,
2698 fix_pks_corruption): It's really PKS corruption, not HKP
2699 corruption. Keep the old repair-hkp-subkey-bug command as an
2702 * g10.c (main): Rename --no-version to --no-emit-version for
2703 consistency. Keep --no-version as an alias.
2705 2003-04-04 David Shaw <dshaw@jabberwocky.com>
2707 * pkclist.c (algo_available): PGP 8 can use the SHA-256 hash.
2709 * sign.c (sign_file, clearsign_file, sign_symencrypt_file): Remove
2712 2003-04-01 Werner Koch <wk@gnupg.org>
2714 * mainproc.c (check_sig_and_print): Add primary key fpr to VALIDSIG
2717 2003-03-24 David Shaw <dshaw@jabberwocky.com>
2719 * keydb.h: Err on the side of making an unknown signature a SIG
2722 * import.c (delete_inv_parts): Discard any key signatures that
2723 aren't key types (i.e. 0x00, 0x01, etc.)
2725 * g10.c (main): Add deprecated option warning for
2726 --list-ownertrust. Add --compression-algo alias for
2727 --compress-algo. Change --version output strings to match
2728 "showpref" strings, and make translatable.
2730 * status.c (do_get_from_fd): Accept 'y' as well as 'Y' for
2731 --command-fd boolean input.
2733 * trustdb.c: Fix typo (DISABLE_REGEXP -> DISABLE_REGEX)
2735 * keyedit.c (show_key_with_all_names_colon): Show no-ks-modify
2738 2003-03-11 David Shaw <dshaw@jabberwocky.com>
2740 * options.h, g10.c (main), keyserver.c (kopts): Add "try-dns-srv"
2741 keyserver option. Defaults to on.
2743 * passphrase.c (agent_get_passphrase): Fix memory leak with
2744 symmetric messages. Fix segfault with symmetric messages. Fix
2745 incorrect prompt with symmetric messages.
2747 2003-03-10 Werner Koch <wk@gnupg.org>
2749 * compress.c (init_uncompress): Use a 15 bit window size so that
2750 the output of implementations which don't run for PGP 2
2751 compatibility won't get garbled.
2753 2003-03-04 David Shaw <dshaw@jabberwocky.com>
2755 * trustdb.c (validate_keys): Mask the ownertrust when building the
2756 list of fully valid keys so that disabled keys are still counted
2757 in the web of trust.
2758 (get_ownertrust_with_min): Do the same for the minimum ownertrust
2761 * parse-packet.c (dump_sig_subpkt): Show the notation names for
2762 not-human-readable notations. Fix cosmetic off-by-one length
2765 * options.skel: Add explantion and commented-out
2766 "no-mangle-dos-filenames".
2768 * mainproc.c (proc_encrypted): Make string translatable.
2770 * keyserver.c (keyserver_spawn): Quote ':', '%', and any 8-bit
2771 characters in the uid strings sent to the keyserver helper.
2773 * keyring.c (keyring_rebuild_cache): Lock the keyring while
2774 rebuilding the signature caches to prevent another gpg from
2775 tampering with the temporary copy.
2777 * keygen.c (keygen_set_std_prefs): Include AES192 and AES256 in
2780 * keyedit.c (show_prefs): Make strings translatable.
2782 * keydb.c: Double the maximum number of keyrings to 40.
2784 * gpgv.c (main): Fix bug #113 - gpgv should accept the
2785 --ignore-time-conflict option.
2787 * g10.c (main): --openpgp disables --pgpX. Double the amount of
2788 secure memory to 32k (keys are getting bigger these days).
2790 * Makefile.am: Makefile.am: Use @CAPLIBS@ to link in -lcap if we
2791 are using capabilities.
2793 2003-02-26 David Shaw <dshaw@jabberwocky.com>
2795 * keyserver.c (keyserver_spawn): Include various pieces of
2796 information about the key in the data sent to the keyserver
2797 helper. This allows the helper to use it in instructing a remote
2798 server which may not have any actual OpenPGP smarts in parsing
2801 * main.h, export.c (export_pubkeys_stream, do_export_stream): Add
2802 ability to return only the first match in an exported keyblock for
2803 keyserver usage. This should be replaced at some point with a
2804 more flexible solution where each key can be armored seperately.
2806 2003-02-22 David Shaw <dshaw@jabberwocky.com>
2808 * sign.c (sign_file): Do not push textmode filter onto an unopened
2809 IOBUF (segfault). Noted by Marcus Brinkmann. Push and
2810 reinitialize textmode filter for each file in a multiple file
2813 * packet.h, getkey.c (fixup_uidnode), keyedit.c (show_prefs): Set
2814 and show the keyserver no-modify flag.
2816 * keygen.c (add_keyserver_modify): New.
2817 (keygen_upd_std_prefs): Call it here.
2818 (keygen_set_std_prefs): Accept "ks-modify" and "no-ks-modify" as
2819 prefs to set and unset keyserver modify flag.
2821 * g10.c (main): Accept "s1" in addition to "idea" to match the
2824 * main.h, misc.c (idea_cipher_warn): We don't need this if IDEA
2827 2003-02-21 David Shaw <dshaw@jabberwocky.com>
2829 * keygen.c (keygen_set_std_prefs): Don't put AES or CAST5 in
2830 default prefs if they are disabled.
2832 * g10.c (main): Use 3DES instead of CAST5 if we don't have CAST5
2833 support. Use 3DES for the s2k cipher in --openpgp mode.
2834 (print_mds): #ifdef all of the optional digest algorithms.
2836 2003-02-12 David Shaw <dshaw@jabberwocky.com>
2838 * keydb.h, getkey.c (classify_user_id, classify_user_id2): Make
2839 'exact' a per-desc item. Merge into one function since
2840 'force_exact' is no longer needed.
2841 (key_byname): Use new classify_user_id function, and new exact
2842 flag in KEYDB_SEARCH_DESC.
2844 * keyring.h, keyring.c (keyring_search): Return an optional index
2845 to show which KEYDB_SEARCH_DESC was the matching one.
2847 * keydb.h, keydb.c (keydb_search): Rename to keydb_search2, and
2848 pass the optional index to keyring_search. Add a macro version of
2849 keydb_search that calls this new function.
2851 * export.c (do_export_stream): If the keyid! syntax is used,
2852 export only that specified key. If the key in question is a
2853 subkey, export the primary plus that subkey only.
2855 2003-02-11 David Shaw <dshaw@jabberwocky.com>
2857 * exec.c (set_exec_path): Add debugging line.
2859 * g10.c (print_hex, print_mds): Print long hash strings a lot
2860 neater. This assumes at least an 80-character display, as there
2861 are a few other similar assumptions here and there. Users who
2862 need unformatted hashes can still use with-colons. Check that
2863 SHA384 and 512 are available before using them as they are no
2864 longer always available.
2866 * Makefile.am: Use a local copy of libexecdir along with @PACKAGE@
2867 as GNUPG_LIBEXECDIR so it can be easily overridden at make time.
2869 2003-02-04 David Shaw <dshaw@jabberwocky.com>
2871 * armor.c (parse_hash_header, armor_filter): Accept the new SHAs
2872 in the armor Hash: header.
2874 * g10.c (print_hex): Print long hash strings a little neater.
2875 (print_mds): Add the new SHAs to the hash list.
2877 2003-02-02 David Shaw <dshaw@jabberwocky.com>
2879 * keyedit.c (menu_revuid): Properly handle a nonselfsigned uid on
2880 a v4 key (treat as a v4 revocation).
2882 * import.c (print_import_check): Do not re-utf8 convert user IDs.
2884 2003-01-27 David Shaw <dshaw@jabberwocky.com>
2886 * mainproc.c (list_node): Show signature expiration date in
2887 with-colons sig records.
2889 * keylist.c (list_keyblock_colon), mainproc.c (list_node): Show
2890 trust sig information in with-colons sig records.
2892 2003-01-16 David Shaw <dshaw@jabberwocky.com>
2894 * g10.c (add_group): Trim whitespace after a group name so it does
2895 not matter where the user puts the = sign.
2897 * options.skel: Comment out the first three lines in case someone
2898 manually copies the skel file to their homedir.
2900 * sign.c (clearsign_file): Only use pgp2mode with v3 keys and
2901 MD5. This matches what we do when decoding such messages and
2902 prevents creating a message (v3+RIPEMD/160) that we can't verify.
2904 * sig-check.c (signature_check2): Use G10ERR_GENERAL as the error
2905 for signature digest conflict. BAD_SIGN implies that a signature
2906 was checked and we may try and print out a user ID for a key that
2909 2003-01-15 David Shaw <dshaw@jabberwocky.com>
2911 * trustdb.c (init_trustdb, get_validity): Don't use a changed
2912 trust model to indicate a dirty trustdb, and never auto-rebuild a
2913 dirty trustdb with the "always" trust model.
2915 * g10.c (add_group): Last commit missed the \t ;)
2917 2003-01-14 David Shaw <dshaw@jabberwocky.com>
2919 * packet.h, parse-packet.c (setup_user_id), free-packet.c
2920 (free_user_id), keydb.h, keyid.c (namehash_from_uid): New function
2921 to rmd160-hash the contents of a user ID packet and cache it in
2924 * keylist.c (list_keyblock_colon): Use namehash in field 8 of
2925 uids. Show dates for creation (selfsig date), and expiration in
2928 * trustdb.c (get_validity, get_validity_counts, update_validity):
2929 Use new namehash function rather than hashing it locally.
2931 2003-01-14 Werner Koch <wk@gnupg.org>
2933 * g10.c (add_group): Fixed group parsing to allow more than one
2934 delimiter in a row and also allow tab as delimiter.
2936 2003-01-12 David Shaw <dshaw@jabberwocky.com>
2938 * tdbio.c (tdbio_set_dbname): Fix assertion failure with
2939 non-fully-qualified trustdb names.
2941 2003-01-11 David Shaw <dshaw@jabberwocky.com>
2943 * trustdb.c (get_validity_info, get_ownertrust_info,
2944 trust_letter): Simplify by returning a ? for error directly.
2946 * keyedit.c (show_key_with_all_names): Use get_validity_string and
2947 get_ownertrust_string to show full word versions of trust
2948 (i.e. "full" instead of 'f').
2950 * trustdb.h, trustdb.c (get_ownertrust_string,
2951 get_validity_string): Same as get_ownertrust_info, and
2952 get_validity_info, except returns a full string.
2954 * trustdb.c (get_ownertrust_with_min): New. Same as
2955 'get_ownertrust' but takes the min_ownertrust value into account.
2957 2003-01-10 David Shaw <dshaw@jabberwocky.com>
2959 * armor.c (armor_filter): Comment about PGP's end of line tab
2962 * trustdb.h, trustdb.c (trust_letter): Make
2963 static. (get_ownertrust_info, get_validity_info): Don't mask the
2966 * trustdb.h, gpgv.c, trustdb.c (get_validity, get_validity_info),
2967 keylist.c (list_keyblock_colon), keyedit.c
2968 (show_key_with_all_names_colon, menu_revuid): Pass a user ID in
2969 rather than a namehash, so we only have to do the hashing in one
2972 * packet.h, pkclist.c (build_pk_list), free-packet.c
2973 (release_public_key_parts): Remove unused namehash element for
2976 2003-01-07 David Shaw <dshaw@jabberwocky.com>
2978 * keygen.c (keygen_set_std_prefs): Warn when setting an IDEA
2979 preference when IDEA is not available.
2981 2003-01-06 David Shaw <dshaw@jabberwocky.com>
2983 * trustdb.c (get_validity_info): 'd' for disabled is not a
2984 validity value any more.
2986 * packet.h, tdbio.h, tdbio.c (tdbio_read_record,
2987 tdbio_write_record), trustdb.c (update_validity): Store temporary
2988 full & marginal counts in the trustdb.
2989 (clear_validity, get_validity_counts): Return and clear temp
2991 (store_validation_status): Keep track of which keyids have been
2993 (validate_one_keyblock, validate_key_list): Use per-uid copies of
2994 the full & marginal counts so they can be recalled for multiple
2996 (validate_keys): Only use unused keys for each new round.
2997 (reset_unconnected_keys): Rename to reset_trust_records, and only
2998 skip specifically excluded records.
3000 * keylist.c (print_capabilities): Show 'D' for disabled keys in
3001 capabilities section.
3003 * trustdb.c (is_disabled): Remove incorrect comment.
3005 2003-01-03 David Shaw <dshaw@jabberwocky.com>
3007 * import.c (import_one): Only do the work to create the status
3008 display for interactive import if status is enabled.
3010 * keyring.c (keyring_search): skipfnc didn't work properly with
3011 non-keyid searches. Noted by Stefan Bellon.
3013 * getkey.c (merge_selfsigs_main): Remove some unused code and make
3014 sure that the pk selfsigversion member accounts for 1F direct
3017 2003-01-02 Werner Koch <wk@gnupg.org>
3019 * keydb.c (keydb_add_resource): Don't assume that try_make_homedir
3020 terminates but check again for the existence of the directory and
3022 * openfile.c (copy_options_file): Print a warning if the skeleton
3023 file has active options.
3025 2002-12-29 David Shaw <dshaw@jabberwocky.com>
3027 * getkey.c (merge_selfsigs_main), main.h, sig-check.c
3028 (check_key_signature2): Pass the ultimately trusted pk directly to
3029 check_key_signature2 to avoid going through the key selection
3030 mechanism. This prevents a deadly embrace when two keys without
3031 selfsigs each sign the other.
3033 2002-12-27 David Shaw <dshaw@jabberwocky.com>
3035 * keyserver.c (keyserver_refresh): Don't print the "refreshing..."
3036 line if there are no keys to refresh or if there is no keyserver
3039 * getkey.c (merge_selfsigs_main): Any valid user ID should make a
3040 key valid, not just the last one. This also fixes Debian bug
3043 2002-12-27 Stefan Bellon <sbellon@sbellon.de>
3045 * import.c (print_import_check): Changed int to size_t.
3047 2002-12-27 David Shaw <dshaw@jabberwocky.com>
3049 * keyedit.c (keyedit_menu, menu_revuid): Add "revuid" feature to
3050 revoke a user ID. This is the same as issuing a revocation for
3051 the self-signature, but a much simpler interface to do it.
3053 2002-12-26 David Shaw <dshaw@jabberwocky.com>
3055 * keydb.h, getkey.c (key_byname): Flag to enable or disable
3056 including disabled keys. Keys specified via keyid (i.e. 0x...)
3057 are always included.
3059 * getkey.c (get_pubkey_byname, get_seckey_byname2,
3060 get_seckey_bynames), keyedit.c (keyedit_menu, menu_addrevoker):
3061 Include disabled keys in these functions.
3063 * pkclist.c (build_pk_list): Do not include disabled keys for -r
3064 or the key prompt. Do include disabled keys for the default key
3067 * trustdb.h, trustdb.c (is_disabled): New skipfnc for skipping
3070 * gpgv.c (is_disabled): Stub.
3072 * keygen.c (keygen_add_key_expire): Properly handle updating a key
3073 expiration to a no-expiration value.
3075 * keyedit.c (enable_disable_key): Comment.
3077 * import.c (import_one): When in interactive mode and --verbose,
3078 don't repeat some key information twice.
3080 2002-12-22 Timo Schulz <ts@winpt.org>
3082 * import.c (print_import_check): New.
3083 (import_one): Use it here.
3084 Use merge_keys_and_selfsig in the interactive mode to avoid
3085 wrong key information.
3086 * status.h: Add new status code.
3089 2002-12-13 David Shaw <dshaw@jabberwocky.com>
3091 * pkclist.c (do_we_trust): Tweak language to refer to the "named
3092 user" rather than "owner". Noted by Stefan Bellon.
3094 * trustdb.h, trustdb.c (trustdb_pending_check): New function to
3095 check if the trustdb needs a check.
3097 * import.c (import_keys_internal): Used here so we don't rebuild
3098 the trustdb if it is still clean.
3099 (import_one, chk_self_sigs): Only mark trustdb dirty if the key
3100 that is being imported has any sigs other than self-sigs.
3101 Suggested by Adrian von Bidder.
3103 * options.skel: Include the required '=' sign in the sample
3104 'group' option. Noted by Stefan Bellon.
3106 * import.c (chk_self_sigs): Don't try and check a subkey as if it
3109 2002-12-11 David Shaw <dshaw@jabberwocky.com>
3111 * tdbio.c (tdbio_read_record, tdbio_write_record): Compact the
3112 RECTYPE_TRUST records a bit.
3114 * g10.c (main): Comment out --list-trust-path until it can be
3117 * import.c (import_one): Warn when importing an Elgamal primary
3118 that this may take some time (to verify self-sigs).
3119 (chk_self_sigs): Try and cache all self-sigs so the keyblock is
3120 written to the keyring with a good rich cache.
3122 * keygen.c (ask_algo): Make the Elgamal sign+encrypt warning
3123 stronger, and remove the RSA sign+encrypt warning.
3125 2002-12-06 Stefan Bellon <sbellon@sbellon.de>
3127 * options.h: Fixed typo (mangle_dos_names instead of
3128 mangle_dos_filenames).
3130 2002-12-05 Werner Koch <wk@gnupg.org>
3132 * g10.c: New options --[no-]mangle-dos-filenames.
3133 * options.h (opt): Added mangle-dos-filenames.
3134 * openfile.c (open_outfile) [USE_ONLY_8DOT3]: Truncate the
3135 filename only when this option is set; this is the default.
3137 2002-12-04 David Shaw <dshaw@jabberwocky.com>
3139 * main.h, keyedit.c, keygen.c: Back out previous (2002-12-01)
3140 change. Minimal isn't always best.
3142 * sign.c (update_keysig_packet): Use the current time rather then
3143 a modification of the original signature time. Make sure that
3144 this doesn't cause a time warp.
3146 * keygen.c (keygen_add_key_expire): Properly handle a key
3147 expiration date in the past (use a duration of 0).
3149 * keyedit.c (menu_expire): Use update_keysig_packet so any sig
3150 subpackets are maintained during the update.
3152 * build-packet.c (build_sig_subpkt): Mark sig expired or unexpired
3153 when the sig expiration subpacket is added.
3154 (build_sig_subpkt_from_sig): Handle making an expiration subpacket
3155 from a sig that has already expired (use a duration of 0).
3157 * packet.h, sign.c (update_keysig_packet), keyedit.c
3158 (menu_set_primary_uid, menu_set_preferences): Add ability to issue
3159 0x18 subkey binding sigs to update_keysig_packet and change all
3162 * trustdb.c (validate_keys): Show trust parameters when building
3163 the trustdb, and make sure that the version record update was
3165 (init_trustdb): If the current parameters aren't what was used for
3166 building the trustdb, the trustdb is invalid.
3168 * tbio.c (tdbio_db_matches_options): Update to work with new
3171 2002-12-03 David Shaw <dshaw@jabberwocky.com>
3173 * tdbio.h, tdbio.c (tdbio_read_record, tdbio_write_record): Store
3174 trust model in the trustdb version record.
3175 (tdbio_update_version_record): New function to update version
3176 record values during a trustdb check or update.
3177 (tdbio_dump_record): Show trust model in dump.
3179 * trustdb.c (validate_keys): Call tdbio_update_version_record on
3180 success so that the correct options are stored in the trustdb.
3182 * options.h: rearrange trust models so that CLASSIC is 0 and
3185 * options.h, g10.c (main), encode.c (write_pubkey_enc_from_list),
3186 pkclist.c (algo_available), revoke.c (gen_revoke): Add --pgp8
3187 mode. This is basically identical to --pgp7 in all ways except
3188 that signing subkeys, v4 data sigs (including expiration), and SK
3189 comments are allowed.
3191 * getkey.c (finish_lookup): Comment.
3193 * main.h, keylist.c (reorder_keyblock), keyedit.c (keyedit_menu):
3194 Reorder user ID display in the --edit-key menu to match that of
3195 the --list-keys display.
3197 * g10.c (add_notation_data): Fix initialization.
3199 2002-12-01 David Shaw <dshaw@jabberwocky.com>
3201 * keyedit.c (menu_expire): Don't lose key flags when changing the
3202 expiration date of a subkey. This is not the most optimal
3203 solution, but it is minimal change on the stable branch.
3205 * main.h, keygen.c (do_copy_key_flags): New function to copy key
3206 flags, if any, from one sig to another.
3207 (do_add_key_expire): New function to add key expiration to a sig.
3208 (keygen_copy_flags_add_expire): New version of
3209 keygen_add_key_expire that also copies key flags.
3210 (keygen_add_key_flags_and_expire): Use do_add_key_expire.
3212 * import.c (fix_hkp_corruption): Comment.
3214 2002-11-25 Stefan Bellon <sbellon@sbellon.de>
3216 * plaintext.c (handle_plaintext) [__riscos__]: If nooutput is set,
3217 no filetype is needed obviously.
3219 2002-11-24 David Shaw <dshaw@jabberwocky.com>
3221 * main.h, misc.c (default_cipher_algo, default_compress_algo):
3222 New. Return the default algorithm by trying
3223 --cipher-algo/--compress-algo, then the first item in the pref
3224 list, then s2k-cipher-algo or ZIP.
3226 * sign.c (sign_file, sign_symencrypt_file), encode.c
3227 (encode_simple, encode_crypt): Call default_cipher_algo and
3228 default_compress_algo to get algorithms.
3230 * g10.c (main): Allow pref selection for compress algo with
3233 * mainproc.c (proc_encrypted): Use --s2k-digest-algo for
3234 passphrase mangling rather than --digest-algo.
3236 * sign.c (hash_for): If --digest-algo is not set, but
3237 --personal-digest-preferences is, then use the first hash
3238 algorithm in the personal list. If the signing algorithm is DSA,
3239 then use the first 160-bit hash algorithm in the personal list.
3240 If --pgp2 is set and it's a v3 RSA key, use MD5.
3242 * g10.c (main), keydb.c (keydb_add_resource,
3243 keydb_locate_writable): Rename --default-keyring as
3244 --primary-keyring. Stefan wins the naming contest.
3246 2002-11-23 David Shaw <dshaw@jabberwocky.com>
3248 * g10.c (add_notation_data): Disallow notation names that do not
3249 contain a '@', unless --expert is set. This is to help prevent
3250 people from polluting the (as yet unused) IETF namespace.
3252 * main.h: Comments about default algorithms.
3254 * photoid.c (image_type_to_string): Comments about 3-letter file
3257 * encode.c (encode_simple), passphrase.c (passphrase_to_dek),
3258 sign.c (sign_symencrypt_file): Use --s2k-digest-algo for
3259 passphrase mangling rather than --digest-algo.
3261 2002-11-21 David Shaw <dshaw@jabberwocky.com>
3263 * keygen.c (keygen_set_std_prefs): Properly handle an empty
3266 * misc.c (string_to_compress_algo): "none" is a bad choice since
3267 it conflicts with the "none" in setpref.
3269 2002-11-14 David Shaw <dshaw@jabberwocky.com>
3271 * g10.c (main): Allow compression algorithm names as the argument
3272 to --compress-algo. The old algorithm names still work for
3273 backwards compatibility.
3275 * misc.c (string_to_compress_algo): Allow "none" as an alias for
3278 2002-11-13 Stefan Bellon <sbellon@sbellon.de>
3280 * getkey.c (get_pubkey_byfprint_fast): Fixed type incompatibility,
3281 was unsigned char instead of byte.
3283 2002-11-13 David Shaw <dshaw@jabberwocky.com>
3285 * encode.c (encode_simple): Make sure that files larger than about
3286 4G use partial length encoding. This is required because OpenPGP
3287 allows only for 32 bit length fields. From Werner on stable
3290 * getkey.c (get_pubkey_direct): Renamed to...
3291 (get_pubkey_fast): this and made extern.
3292 (get_pubkey_byfprint_fast): New. From Werner on stable branch.
3294 * keydb.h, import.c (import_one): Use get_pubkey_fast instead of
3295 get_pubkey. We don't need a merged key and actually this might
3297 (revocation_present): Likewise for search by fingerprint. From
3298 Werner on stable branch.
3300 * g10.c (main): Try to create the trustdb even for non-colon-mode
3301 list-key operations. This is required because getkey needs to
3302 know whether a a key is ultimately trusted. From Werner on stable
3305 * exec.c [__CYGWIN32__]: Keep cygwin separate from Mingw32;
3306 we don't need it here as it behaves more like a Posix system.
3307 From Werner on stable branch.
3309 * passphrase.c (agent_get_passphrase): Ditto. From Werner on
3312 * tdbio.c (MY_O_BINARY): Need binary mode with Cygwin. From
3313 Werner on stable branch.
3315 * g10.c, gpgv.c (main) [__CYGWIN32__]: Don't get the homedir from
3316 the registry. From Werner on stable branch.
3318 * keyedit.c (show_key_with_all_names_colon): Make --with-colons
3319 --edit display match the validity and trust of --with-colons
3322 * passphrase.c (agent_send_all_options): Fix compile warning.
3324 * keylist.c (list_keyblock_colon): Validity for subkeys should
3325 match that of the primary key, and not that of the last user ID.
3327 * getkey.c (merge_selfsigs): Revoked/expired/invalid primary keys
3328 carry these facts onto all their subkeys, but only after the
3329 subkey has a chance to be marked valid. This is to fix an
3330 incorrect "invalid public key" error verifying a signature made by
3331 a revoked signing subkey, with a valid unrevoked primary key.
3333 2002-11-09 Werner Koch <wk@gnupg.org>
3335 * passphrase.c (agent_send_all_options): Use tty_get_ttyname to
3336 get the default ttyname.
3338 2002-11-07 David Shaw <dshaw@jabberwocky.com>
3340 * keyring.h, keyring.c (keyring_register_filename): Return the
3341 pointer if a given keyring is registered twice.
3343 * keydb.h, keydb.c (keydb_add_resource): Use flags to indicate a
3345 (keydb_locate_writable): Prefer the default keyring if possible.
3347 * g10.c (main): Add --default-keyring option.
3349 2002-11-06 David Shaw <dshaw@jabberwocky.com>
3351 * options.h, g10.c (main), trustdb.c (ask_ownertrust): Add
3352 --force-ownertrust option for debugging purposes. This allows
3353 setting a whole keyring to a given trust during an
3354 --update-trustdb. Not for normal use - it's just easier than
3355 hitting "4" all the time to test a large trustdb.
3357 * pubkey-enc.c (get_session_key): With hidden recipients or try a
3358 given passphrase against all secret keys rather than trying all
3359 secret keys in turn. Don't if --try-all-secrets or --status-fd is
3362 * passphrase.c (passphrase_to_dek): Mode 1 means do a regular
3363 passphrase query, but don't prompt with the key info.
3365 * seckey-cert.c (do_check, check_secret_key): A negative ask count
3366 means to enable passphrase mode 1.
3368 * keydb.h, getkey.c (enum_secret_keys): Add flag to include
3369 secret-parts-missing keys (or not) in the list.
3371 2002-11-05 David Shaw <dshaw@jabberwocky.com>
3373 * keyserver.c (keyserver_search_prompt): When --with-colons is
3374 enabled, don't try and fit the search output to the screen size -
3375 just dump the whole list.
3377 2002-11-04 David Shaw <dshaw@jabberwocky.com>
3379 * keyserver.c (keyserver_search_prompt): When --with-colons is
3380 enabled, just dump the raw keyserver protocol to stdout and don't
3383 * keyserver.c (show_prompt): Don't show a prompt when command-fd
3386 * trustdb.c (trust_model_string, check_trustdb, update_trustdb,
3387 validate_one_keyblock): It's not clear what a trustdb rebuild or
3388 check means with a trust model other than "classic" or "openpgp",
3391 2002-11-03 David Shaw <dshaw@jabberwocky.com>
3393 * options.h, g10.c (main): Add --trust-model option. Current
3394 models are "openpgp" which is classic+trustsigs, "classic" which
3395 is classic only, and "always" which is the same as the current
3396 option --always-trust (which still works). Default is "openpgp".
3398 * trustdb.c (validate_one_keyblock): Use "openpgp" trust model to
3401 * gpgv.c (main), mainproc.c (check_sig_and_print), pkclist.c
3402 (do_we_trust, do_we_trust_pre, check_signatures_trust): Use new
3403 --trust-model option in place of --always-trust.
3405 * keyedit.c (sign_mk_attrib, trustsig_prompt, sign_uids,
3406 keyedit_menu): Prompt for and create a trust signature with
3407 "tsign". This is functional, but needs better UI text.
3409 * build-packet.c (build_sig_subpkt): Able to build trust and
3412 * pkclist.c (do_edit_ownertrust): Comment.
3414 2002-11-02 David Shaw <dshaw@jabberwocky.com>
3416 * keygen.c (set_one_pref, keygen_set_std_prefs): Allow using the
3417 full algorithm name (CAST5, SHA1) rather than the short form (S3,
3420 * main.h, keygen.c (keygen_get_std_prefs), keyedit.c
3421 (keyedit_menu): Return and use a fake uid packet rather than a
3422 string since we already have a nice parser/printer in
3423 keyedit.c:show_prefs.
3425 * main.h, misc.c (string_to_compress_algo): New.
3427 2002-11-01 David Shaw <dshaw@jabberwocky.com>
3429 * g10.c (main): Add --no-throw-keyid.
3431 * keydb.h, encode.c (write_pubkey_enc_from_list), g10.c (main),
3432 pkclist.c (build_pk_list): Add --hidden-recipient (-R) and
3433 --hidden-encrypt-to, which do a single-user variation on
3434 --throw-keyid. The "hide this key" flag is carried in bit 0 of
3435 the pk_list flags field.
3437 * keyserver.c (parse_keyrec): Fix shadowing warning.
3439 2002-10-31 Stefan Bellon <sbellon@sbellon.de>
3441 * compress.c (init_compress) [__riscos__]: Use
3442 riscos_load_module() to load ZLib module.
3444 * g10.c (main) [__riscos__]: Renames due to changes in riscos.c
3445 (e.g. prefixes all RISC OS specific functions with riscos_*).
3446 * photoid.c (show_photos) [__riscos__]: Likewise.
3447 * signal.c (got_fatal_signal) [__riscos__]: Likewise.
3449 * trustdb.c (check_regexp) [__riscos__]: Branch to RISC OS RegEx
3452 2002-10-31 David Shaw <dshaw@jabberwocky.com>
3454 * build-packet.c (do_plaintext), encode.c (encode_sesskey,
3455 encode_simple, encode_crypt), sign.c (write_plaintext_packet): Use
3456 wipememory() instead of memset() to wipe sensitive memory as the
3457 memset() might be optimized away.
3459 2002-10-30 David Shaw <dshaw@jabberwocky.com>
3461 * trustdb.c (check_regexp): Modern regexps require REG_EXTENDED.
3463 2002-10-29 David Shaw <dshaw@jabberwocky.com>
3465 * packet.h, trustdb.h, trustdb.c (trust_string): New. Return a
3466 string like "fully trusted", "marginally trusted", etc.
3467 (get_min_ownertrust): New. Return minimum ownertrust.
3468 (update_min_ownertrust): New. Set minimum ownertrust.
3469 (check_regexp): New. Check a regular epression against a user ID.
3470 (ask_ownertrust): Allow specifying a minimum value.
3471 (get_ownertrust_info): Follow the minimum ownertrust when
3473 (clear_validity): Remove minimum ownertrust when a key becomes
3475 (release_key_items): Release regexp along with the rest of the
3477 (validate_one_keyblock, validate_keys): Build a trust sig chain
3478 while validating. Call check_regexp for regexps. Use the minimum
3479 ownertrust if the user does not specify a genuine ownertrust.
3481 * pkclist.c (do_edit_ownertrust): Only allow user to select a
3482 trust level greater than the minimum value.
3484 * parse-packet.c (can_handle_critical): Can handle critical trust
3485 and regexp subpackets.
3487 * trustdb.h, trustdb.c (clear_ownertrusts), delkey.c
3488 (do_delete_key), import.c (import_one): Rename clear_ownertrust to
3489 clear_ownertrusts and have it clear the min_ownertrust value as
3492 * keylist.c (list_keyblock_print): Indent uid to match pub and
3495 * keyedit.c (print_and_check_one_sig, show_key_and_fingerprint,
3496 menu_addrevoker), keylist.c (list_keyblock_print,
3497 print_fingerprint): Show "T" or the trust depth for trust
3498 signatures, and add spaces to some strings to make room for it.
3500 * packet.h, parse-packet.c (dump_sig_subpkt, parse_one_sig_subpkt,
3501 parse_signature): Parse trust signature values.
3503 * tdbio.h, tdbio.c (tdbio_read_record, tdbio_write_record):
3504 Reserve a byte for the minimum ownertrust value (for use with
3507 2002-10-29 Stefan Bellon <sbellon@sbellon.de>
3509 * build-packet.c (calc_plaintext, do_plaintext): Removed RISC OS
3510 specific filetype parts (it's now done in make_basename()).
3512 * plaintext.c (handle_plaintext): Tidied up RISC OS specific
3515 * encode.c (encode_simple, encode_crypt): Added argument to
3516 make_basename() call.
3518 * sign.c (write_plaintext_packet): Added argument to
3519 make_basename() call.
3521 2002-10-28 Stefan Bellon <sbellon@sbellon.de>
3523 * build-packet.c (calc_plaintext, do_plaintext): Added filetype
3524 handling for RISC OS' file types.
3526 * plaintext.c (handle_plaintext) [__riscos__]: Added filetype
3527 handling for RISC OS' file types.
3529 2002-10-23 David Shaw <dshaw@jabberwocky.com>
3531 * main.h, import.c (sec_to_pub_keyblock, import_secret_one,
3532 parse_import_options), g10.c (main): New import-option
3533 "convert-sk-to-pk" to convert a secret key into a public key
3534 during import. It is on by default.
3536 2002-10-23 Werner Koch <wk@gnupg.org>
3538 * pubkey-enc.c (get_it): Fix segv, test for revoked only when PK
3541 2002-10-18 Timo Schulz <ts@winpt.org>
3543 * keylist.c: (print_pubkey_info): New.
3544 (print_seckey_info): New.
3545 * main.h: Prototypes for the new functions.
3546 * delkey.c (do_delete_key): Use it here.
3547 * revoke.c (gen_desig_revoke): Ditto.
3549 2002-10-17 Werner Koch <wk@gnupg.org>
3551 * pkclist.c (do_edit_ownertrust): Show all user IDs. This should
3552 be enhanced to also show the current trust level. Suggested by
3555 2002-10-17 David Shaw <dshaw@jabberwocky.com>
3557 * g10.c (main): Handle --strict and --no-strict from the command
3558 line before the options file is loaded.
3560 2002-10-15 David Shaw <dshaw@jabberwocky.com>
3562 * g10.c (main): Disable --textmode when encrypting (symmetric or
3563 pk) in --pgp2 mode as PGP 2 can't handle the unknown length
3564 literal packet. Reported by Michael Richardson.
3566 2002-10-14 David Shaw <dshaw@jabberwocky.com>
3568 * keyserver-internal.h, keyserver.c (print_keyrec, parse_keyrec,
3569 show_prompt, keyserver_search_prompt, keyserver_spawn): Go to
3570 version 1 of the keyserver protocol. This is a better design,
3571 similar to --with-colons, that allows for keys with multiple user
3572 IDs rather than using multiple keys. It also matches the machine
3573 readable pksd format. Also use a prettier --search-keys listing
3574 format that can fill different size windows (currently set at 24
3577 2002-10-12 Werner Koch <wk@gnupg.org>
3579 * keygen.c (print_status_key_created): New.
3580 (do_generate_keypair): Use it to print the fingerprint.
3581 (generate_subkeypair): Likewise.
3583 2002-10-11 David Shaw <dshaw@jabberwocky.com>
3585 * keyedit.c (menu_addrevoker): Properly back out if the signature
3586 fails. Also, do not allow appointing the same revoker twice, and
3587 report ALREADY_SIGNED if the user tries it.
3589 2002-10-07 David Shaw <dshaw@jabberwocky.com>
3591 * import.c (import_keys_internal): Missed one s/inp/inp2/.
3593 * keylist.c (print_capabilities): Properly indicate per-key
3594 capabilities of sign&encrypt primary keys that have
3595 secret-parts-missing (i.e. no capabilities at all)
3597 * mainproc.c (symkey_decrypt_sesskey): Fix compiler warning.
3599 2002-10-04 David Shaw <dshaw@jabberwocky.com>
3601 * getkey.c (get_pubkey_direct): Don't cache keys retrieved via
3602 this function as they may not have all their fields filled in.
3604 * sig-check.c (signature_check2): Use new is_primary flag to check
3605 rather than comparing main_keyid with keyid as this still works in
3606 the case of a not fully filled in pk.
3608 2002-10-04 Werner Koch <wk@gnupg.org>
3610 * import.c (import_keys_internal): s/inp/inp2/ to avoid shadowing
3613 * passphrase.c (agent_get_passphrase): Fixed signed/unsigned char
3614 problem in %-escaping. Noted by Ingo Klöcker.
3616 2002-10-03 David Shaw <dshaw@jabberwocky.com>
3618 * options.h, g10.c (main): Add --strict and --no-strict to switch
3619 the log_warning severity level from info to error.
3621 * keylist.c (print_capabilities): Secret-parts-missing keys should
3622 show that fact in the capabilities, and only primary signing keys
3623 can certify other keys.
3625 * packet.h, parse_packet.c (parse_key): Add is_primary flag for
3626 public keys (it already exists for secret keys).
3628 2002-10-02 David Shaw <dshaw@jabberwocky.com>
3630 * import.c (import_secret_one): Check for an illegal (>110)
3631 protection cipher when importing a secret key.
3633 * keylist.c (list_keyblock_print): Show a '#' for a
3634 secret-parts-missing key.
3636 * parse_packet.c (parse_key): Some comments.
3638 * revoke.c (gen_revoke): Remove some debugging code.
3640 * trustdb.c (verify_own_keys): Make trusted-key a non-deprecated
3643 * seckey-cert.c (do_check): Don't give the IDEA warning unless the
3644 cipher in question is in fact IDEA.
3646 2002-10-01 David Shaw <dshaw@jabberwocky.com>
3648 * import.c (import_one): Make sure that a newly imported key
3649 starts with a clean ownertrust.
3651 2002-10-01 Werner Koch <wk@gnupg.org>
3653 * getkey.c (get_pubkey_direct): New.
3654 (merge_selfsigs_main): Use it here to look for an ultimately
3655 trusted key. Using the full get_pubkey might lead to an
3656 infinitive recursion.
3658 2002-09-29 David Shaw <dshaw@jabberwocky.com>
3660 * keyserver.c (parse_keyserver_uri): Force the keyserver URI
3661 scheme to lowercase to be case-insensitive.
3663 2002-09-28 David Shaw <dshaw@jabberwocky.com>
3665 * export.c (do_export_stream): Comment.
3667 * sig-check.c (check_key_signature2): Properly handle a
3668 non-designated revocation import.
3670 2002-09-26 Werner Koch <wk@gnupg.org>
3672 * g10.c (set_homedir): New. Changed all direct assignments to use
3674 * gpgv.c (set_homedir): Ditto.
3676 2002-09-25 David Shaw <dshaw@jabberwocky.com>
3678 * Makefile.am: Link gpg with EGDLIBS (i.e. NETLIBS) as EGD uses
3679 sockets. Remove the old NETLIBS variable since the keyserver
3680 stuff is no longer internal.
3682 2002-09-24 David Shaw <dshaw@jabberwocky.com>
3684 * import.c (import_keys_stream): Fix compiler type warning.
3686 * keyring.c (keyring_rebuild_cache), sig-check.c
3687 (check_key_signature2), import.c (import, chk_self_sigs): Minor
3690 2002-09-23 Stefan Bellon <sbellon@sbellon.de>
3692 * main.h: Introduced fast-import as import option. Removed
3693 fast as separate option from prototypes.
3694 * import.c (parse_import_options): Added fast-import option.
3695 (import_*): Removed fast as separate option.
3696 * g10.c (main): Added option fast-import, removed old fast
3697 as separate argument.
3698 * keyserver.c (keyserver_spawn): Removed old fast as separate
3701 2002-09-22 Stefan Bellon <sbellon@sbellon.de>
3703 * import.c (import_keys, import_keys_stream,
3704 import_keys_internal): Added trustdb update/check to key import if
3705 not fast-import and interactive set/no-auto-check-trustdb unset.
3706 Avoided function clone by introducing import_keys_internal.
3708 2002-09-19 David Shaw <dshaw@jabberwocky.com>
3710 * keyserver.c (keyserver_spawn): Properly handle line truncation.
3711 Don't leak memory (~10-20 bytes) on searches.
3712 (keyserver_search_prompt): Cleanup.
3714 * keylist.c (list_keyblock_colon): Show 1F direct key signatures
3715 in --with-colons listing.
3717 2002-09-16 David Shaw <dshaw@jabberwocky.com>
3719 * keyedit.c (menu_addrevoker): The direct key signature for
3720 revocation keys must be at least v4 to carry the revocation key
3721 subpacket. Add a PGP 2.x warning for revocation keys.
3723 2002-09-14 David Shaw <dshaw@jabberwocky.com>
3725 * g10.c (check_permissions): Rearrange strings to make translating
3726 easier (don't incorporate string parts).
3728 * keyedit.c (sign_uids): Make strings translatable.
3730 * sig-check.c (check_key_signature2): Make string translatable.
3732 2002-09-13 David Shaw <dshaw@jabberwocky.com>
3734 * getkey.c (check_revocation_keys): Move....
3735 * main.h, sig-check.c (check_revocation_keys): to here. Also
3736 return the signature_check error code rather than 0/1 and cache
3739 * sig-check.c (check_key_signature2): Divert to
3740 check_revocation_keys if a revocation sig is made by someone other
3743 * getkey.c (merge_selfsigs_main): Tidy.
3745 2002-09-13 Werner Koch <wk@gnupg.org>
3747 * g10.c (main) [__MINGW32__]: Activate oLoadExtension.
3749 2002-09-12 David Shaw <dshaw@jabberwocky.com>
3751 * Makefile.am, hkp.c, hkp.h, keyserver.c (keyserver_work): Remove
3752 internal HKP support.
3754 * keyserver.c (keyserver_spawn): Remove whitespace after keyserver
3757 2002-09-10 David Shaw <dshaw@jabberwocky.com>
3759 * exec.c (expand_args): Remove loop left over from earlier
3761 (exec_write): Missed one tick.
3763 2002-09-10 Werner Koch <wk@gnupg.org>
3765 * g10.c, options.h: Removed option --emulate-checksum-bug.
3766 * misc.c (checksum_u16_nobug): Removed.
3767 (checksum_u16): Removed the bug emulation.
3768 (checksum_mpi): Ditto.
3769 (checksum_mpi_counted_nbits): Removed and replaced all calls
3772 * parse-packet.c (read_protected_v3_mpi): New.
3773 (parse_key): Use it here to store it as an opaque MPI.
3774 * seckey-cert.c (do_check): Changed the v3 unprotection to the new
3775 why to store these keys.
3776 (protect_secret_key): Likewise.
3777 * build-packet.c (do_secret_key): And changed the writing.
3779 * tdbio.c (tdbio_set_dbname, open_db): Use new macro MY_O_BINARY
3780 to avoid silly ifdefs.
3781 (open_db): Fallback to RDONLY so that gpg may be used from a
3784 * encode.c (encode_simple): Make sure we don't use an ESK packet
3785 when we don't have a salt in the S2K.
3787 * misc.c (pct_expando) <case f>: Make sure that LEN is initialized.
3789 * exec.c (exec_finish): Use ticks to denote filenames in messages.
3790 (make_tempdir, exec_write): Changed format of messages.
3792 * keyserver.c (print_keyinfo): Release USERID in on error.
3793 (keyserver_work) [!DISABLE_KEYSERVER_HELPERS]: Exclude the unused
3796 2002-09-09 Werner Koch <wk@gnupg.org>
3798 * parse-packet.c (make_attribute_uidname): Add new ar MAX_NAMELEN
3799 for sanity checks. Changed both callers. Limit the size of an %s.
3801 * options.skel: Comment lock-once out, so that this file does not
3802 change anything when copied to a new home directory.
3803 * openfile.c (try_make_homedir): Don't exit after copying the
3806 * options.h: Don't use a comma when declaring variables over more
3809 * mainproc.c (symkey_decrypt_sesskey): Check length of the session
3812 * hkp.c (dehtmlize): Use ascii_tolower to protect against weird
3813 locales. Cast the argument for isspace for the sake of broken
3815 (parse_hkp_index): s/ascii_memcasecmp/ascii_strncasecmp/.
3817 * g10.c: Removed option --emulate-3des-s2k-bug.
3819 * passphrase.c (hash_passphrase): Was used here.
3821 * export.c (parse_export_options)
3822 * keyserver.c (parse_keyserver_options)
3823 * import.c (parse_import_options)
3824 * g10.c (check_permissions): s/ascii_memcasecmp/ascii_strncasecmp/.
3826 2002-09-09 David Shaw <dshaw@jabberwocky.com>
3828 * g10.c (add_group): Use '=' to separate group name from group
3829 members. Use a better error message for when no = is found.
3831 * hkp.c (hkp_export): Use CRLF in headers.
3833 2002-09-03 David Shaw <dshaw@jabberwocky.com>
3835 * mainproc.c (print_pkenc_list): Don't increment the error counter
3836 when printing the list of keys a message was encrypted to. This
3837 would make gpg give a non-zero exit code even for completely valid
3838 messages if the message was encrypted to more than one key that
3841 2002-09-02 Werner Koch <wk@gnupg.org>
3843 * g10.c (main): Try to set a default character set. Print the
3844 used one in verbosity level 3.
3845 * gpgv.c (main): Try to set a default character set.
3847 * status.c, status.h (STATUS_IMPORT_OK): New.
3848 * import.c (import_one,import_secret_one): Print new status.
3850 2002-08-30 David Shaw <dshaw@jabberwocky.com>
3852 * pkclist.c (build_pk_list): Add new status code to indicate an
3853 untrusted user. This (or a disabled key) fail with "unavailable
3854 pubkey" (G10ERR_UNU_PUBKEY).
3856 * pkclist.c (build_pk_list): Fail if any recipient keys are
3859 * options.skel: The PGP LDAP keyserver is back. Use MIT keyserver
3860 as a sample rather than cryptnet as cryptnet does not support
3863 * keyedit.c (show_key_with_all_names): Fix error message
3864 (preferences are userid/selfsig and not key specific).
3866 2002-08-30 Werner Koch <wk@gnupg.org>
3868 * pkclist.c (do_we_trust_pre): Changed the wording of a warning.
3870 * encode.c (encode_simple,encode_crypt): Use new style CTB for
3871 compressssed packets when using MDC. We need to do this so that
3872 concatenated messages are properly decrypted. Old style
3873 compression assumes that it is the last packet; given that we
3874 can't determine the length in advance, the uncompressor does not
3875 know where to start. Actually we should use the new CTB always
3876 but this would break PGP 2 compatibility.
3878 * parse-packet.c (parse): Special treatment for new style CTB
3881 * build-packet.c (do_mdc): Removed. Was not used.
3882 (do_encrypted_mdc): Count in the version number and the MDC packet.
3884 2002-08-28 David Shaw <dshaw@jabberwocky.com>
3886 * sig-check.c (do_check_messages, do_check): Show keyid in error
3889 * keyserver.c (print_keyinfo): More readable key listings for
3890 --search-keys responses.
3892 2002-08-26 David Shaw <dshaw@jabberwocky.com>
3894 * hkp.c (parse_hkp_index, dehtmlize): Move HTML functionality into
3895 new "dehtmlize" function. Remove HTML before trying to parse each
3896 line from the keyserver. If the keyserver provides key type
3897 information in the listing, use it.
3899 2002-08-23 David Shaw <dshaw@jabberwocky.com>
3901 * sig-check.c (do_check, do_check_messages): Emit the usual sig
3902 warnings even for cached sigs. This also serves to protect
3903 against missing a sig expiring while cached.
3905 * getkey.c (merge_selfsigs_main): Don't check UID self-sigs twice.
3907 2002-08-22 David Shaw <dshaw@jabberwocky.com>
3909 * import.c (clean_subkeys, chk_self_sigs): Merge clean_subkeys
3910 into chk_self_sigs. This improves efficiency as the same
3911 signatures are not checked multiple times. Clarify when a subkey
3912 is revoked (any revocation signature, even if it is dated before
3913 the binding signature).
3915 * getkey.c (merge_selfsigs_subkey): Subkey revocation comments.
3917 * keylist.c (list_one): Stats are only for public key listings.
3919 * g10.c (main), options.skel: Default should be include-revoked
3920 for keyserver operations.
3922 2002-08-21 Werner Koch <wk@gnupg.org>
3924 * import.c (import_print_stats): Print new non_imported counter
3925 which is currently not used because we terminate on errors.
3927 2002-08-20 David Shaw <dshaw@jabberwocky.com>
3929 * options.skel: Document no-include-attributes for
3932 * keylist.c, keyedit.c, keyserver.c, sign.c: Some TODOs and
3935 * export.c (do_export_stream): Fix noop bug in exporting sensitive
3938 * pkclist.c (do_edit_ownertrust): Comment out the option for
3939 showing trust paths until it can be implemented.
3941 2002-08-19 Werner Koch <wk@gnupg.org>
3943 * getkey.c (get_user_id_native): Renamed to ..
3944 (get_user_id_printable): this. Filter out all dangerous
3945 characters. Checked all usages.
3946 (get_user_id_string_native): Renamed to..
3947 (get_user_id_string_printable): this. Filter out all dangerous
3948 characters. Checked all usages.
3949 * keyedit.c (show_basic_key_info): New.
3950 * keylist.c (print_fingerprint): New mode 3.
3951 * import.c (import_one): Use new function to display the user ID.
3953 2002-08-16 Timo Schulz <ts@winpt.org>
3955 * g10.c (main): Enable opt.interactive.
3957 * import.c (import_one): Ask the user if the key shall be
3958 imported when the interactive mode is used. Useful to extract
3959 selected keys from a file.
3961 2002-08-16 Werner Koch <wk@gnupg.org>
3963 * seckey-cert.c: Workaround to allow decryption of v3 keys created
3964 with a bug in the mpi_get_secure_buffer.
3966 2002-08-14 David Shaw <dshaw@jabberwocky.com>
3968 * hkp.c (parse_hkp_index): Properly handle really large keys
3969 (5 digit key length) in HKP searches.
3971 2002-08-13 David Shaw <dshaw@jabberwocky.com>
3973 * encode.c (encode_simple): Fix problem with using compression
3974 algo 2 and symmetric compressed files.
3976 * encode.c (encode_simple, encode_crypt): If we are not using a
3977 MDC, compress even if a file is already compressed. This is to
3978 help against the chosen ciphertext attack.
3980 * pkclist.c (select_algo_from_prefs): Fix requested algorithm bug
3981 so the request succeeds even if the requested algorithm is not the
3984 * cipher.c (write_header), encode.c (use_mdc, encode_simple,
3985 encode_crypt, encrypt_filter), g10.c (main): Be more eager to use
3986 a MDC. We use a MDC if the keys directly support it, if the keys
3987 list AES (any) or TWOFISH anywhere in the prefs, or if the cipher
3988 chosen does not have a 64 bit blocksize.
3990 2002-08-08 David Shaw <dshaw@jabberwocky.com>
3992 * options.skel: Some language tweaks, and remove the
3993 load-extension section for random gatherers.
3995 * keyring.c (create_tmp_file, rename_tmp_file): Create tmp files
3996 with user-only permissions, but restore the original permissions
3997 if the user has something special set.
3999 * openfile.c (copy_options_file): Create new options file
4000 (gpg.conf) with user-only permissions.
4002 * keydb.c (keydb_add_resource): Create new keyrings with user-only
4005 * tdbio.c (tdbio_set_dbname): Create new trustdbs with user-only
4008 2002-08-07 David Shaw <dshaw@jabberwocky.com>
4010 * sig-check.c (signature_check2): Sanity check that the md has a
4011 context for the hash that the sig is expecting. This can happen
4012 if a onepass sig header does not match the actual sig, and also if
4013 the clearsign "Hash:" header is missing or does not match the
4016 * keyedit.c (menu_revsig): Properly show a uid is revoked without
4017 restarting gpg. This is Debian bug 124219, though their supplied
4018 patch will not do the right thing.
4020 * main.h, tdbio.c (tdbio_set_dbname), misc.c (removed
4021 check_permissions), keydb.c (keydb_add_resource), g10.c (main,
4022 check_permissions): Significant reworking of the permission check
4023 mechanism. The new behavior is to check everything in the homedir
4024 by checking the homedir itself. If the user wants to put
4025 (possibly shared) keyrings outside the homedir, they are not
4026 checked. The options file and any extension files are checked
4027 wherever they are, as well as their enclosing directories. This
4028 is Debian bug 147760.
4030 2002-08-06 Stefan Bellon <sbellon@sbellon.de>
4032 * g10.c (main): Use of EXTSEP_S in new gpg.conf string.
4033 * openfile.c (copy_options_file): Ditto.
4035 2002-08-06 David Shaw <dshaw@jabberwocky.com>
4037 * options.h, g10.c (main), mainproc.c (proc_encrypted):
4038 --ignore-mdc-error option to turn a MDC check error into a
4041 * encode.c (encode_crypt), g10.c (main), sign.c (sign_file,
4042 clearsign_file): Use the same --pgpX warning string everywhere to
4045 * encode.c (write_pubkey_enc_from_list): Warn when using
4046 --throw-keyid with --pgpX. Noted by Vedaal Nistar.
4048 * revoke.c (export_minimal_pk, gen_desig_revoke, gen_revoke):
4049 Export a minimal pk along with the revocation cert when in --pgpX
4050 mode so that PGP can import it.
4052 2002-08-06 Werner Koch <wk@gnupg.org>
4054 * options.skel: Changed comments.
4056 * g10.c (main): Try to use "gpg.conf" as default option file.
4057 * openfile.c (copy_options_file): Changed name of created file.
4059 2002-08-02 Werner Koch <wk@gnupg.org>
4061 * Makefile.am (LDFLAGS): Removed DYNLINK_LDFLAGS.
4063 2002-07-30 David Shaw <dshaw@jabberwocky.com>
4065 * options.h, g10.c (main), mainproc.c (proc_encrypted): Return a
4066 decryption failed error if a MDC does not verify. Warn if a MDC
4067 is not present (can disable via --no-mdc-warning).
4069 * exec.c (exec_write), g10.c (main), keyserver.c
4070 (keyserver_spawn): Use new DISABLE_KEYSERVER_PATH rather than
4073 2002-07-28 David Shaw <dshaw@jabberwocky.com>
4075 * sig-check.c (do_check): Properly validate v4 sigs with no hashed
4078 2002-07-25 Werner Koch <wk@gnupg.org>
4080 * delkey.c (do_delete_key): Always allow to delete a key in batch mode
4081 when specified by fingerprint. Suggested by Enzo Michelangeli.
4083 2002-07-25 David Shaw <dshaw@jabberwocky.com>
4085 * keyedit.c (menu_revsig): Change "revsig" to honor selected uids
4086 so the user can revoke sigs from particular uids only.
4088 * keylist.c (list_keyblock_print): Don't display expired uids in
4089 --list-keys unless -v and not --list-sigs (just like revoked
4092 * exec.c, export.c, import.c, keyedit.c, keyserver.c, misc.c:
4093 "Warning" -> "WARNING"
4095 2002-07-24 David Shaw <dshaw@jabberwocky.com>
4097 * main.h, import.c (parse_import_options, fix_hkp_corruption,
4098 import_one, delete_inv_parts), g10.c (main): New import-option
4099 "repair-hkp-subkey-bug", which repairs as much as possible the HKP
4100 mangling multiple subkeys bug. It is on by default for keyserver
4101 receives, and off by default for regular --import.
4103 * main.h, import.c (import, import_one, delete_inv_parts), hkp.c
4104 (hkp_ask_import), keyserver.c (keyserver_spawn): Use keyserver
4105 import options when doing keyserver receives.
4107 * options.h, exec.h, exec.c (set_exec_path, exec_write), g10.c
4108 (main), keyserver.c (keyserver_spawn): If the user does not use
4109 "exec-path", completely replace $PATH with GNUPG_LIBEXECDIR before
4110 calling the keyserver helper. If the user does use "exec-path",
4111 append GNUPG_LIBEXECDIR after the specified path.
4113 2002-07-23 David Shaw <dshaw@jabberwocky.com>
4115 * import.c (parse_import_options), export.c
4116 (parse_export_options): Fix offset problem with reversed ("no-")
4119 * import.c (delete_inv_parts): Discard subkey signatures (0x18 and
4120 0x28) if found in the userid section of the key.
4122 * sig-check.c (signature_check2): Signatures made by invalid
4123 subkeys (bad/missing binding sig) are also invalid.
4125 * keylist.c (print_fingerprint): Show the primary as well as the
4126 secondary key fingerprint in modes 1 & 2.
4128 2002-07-22 David Shaw <dshaw@jabberwocky.com>
4130 * options.h, main.h, g10.c (main), import.c
4131 (parse_import_options, delete_inv_parts), keyserver.c
4132 (parse_keyserver_options): add new --import-options option. The
4133 only current flag is "allow-local-sigs".
4135 * g10.c (main): Don't disable MDC in pgp7 mode.
4137 * options.h, g10.c (main), keyserver.c (parse_keyserver_options):
4138 Remove old keyserver-option include-attributes now that there is
4139 an export-option for the same thing.
4141 * options.h, main.h, export.c (parse_export_options,
4142 do_export_stream), g10.c (main): add new --export-options option.
4143 Current flags are "include-non-rfc", "include-local-sigs",
4144 "include-attributes", and "include-sensitive-revkeys".
4146 * options.h, hkp.c (hkp_export), keyserver.c
4147 (parse_keyserver_options, keyserver_spawn): try passing unknown
4148 keyserver options to export options, and if successful, use them
4149 when doing a keyserver --send-key.
4151 * build-packet.c (build_sig_subpkt): We do not generate
4152 SIGSUBPKT_PRIV_VERIFY_CACHE anymore.
4154 * revoke.c (gen_desig_revoke): Lots more comments about including
4155 sensitive revkeys along with the revocation sig itself.
4157 * keyserver.c (parse_keyserver_options): Simpler implementation
4158 that can skip one pass over the options.
4160 2002-07-18 David Shaw <dshaw@jabberwocky.com>
4162 * keyedit.c (keyedit_menu, menu_addrevoker): Allow specifying
4163 "sensitive" as an argument to an addrevoker command. This sets
4164 the 0x40 sensitive revoker flag.
4166 * revoke.c (gen_desig_revoke): When generating a designated
4167 revocation, include the direct key sig that contains the
4168 designated revoker subpacket. This allows sensitive designated
4169 revocation subpackets to be exported. Also indicate which
4170 revokers are sensitive in the first place.
4172 2002-07-17 David Shaw <dshaw@jabberwocky.com>
4174 * keyedit.c (show_key_with_all_names_colon): The 0x40 class bit in
4175 a designated revoker means "sensitive", not "local". It's
4176 exportable under the right circumstances.
4178 * main.h, options.h, export.c (do_export_stream), g10.c (main),
4179 hkp.c (hkp_export), keyserver.c (keyserver_spawn: Add a flag to
4180 skip attribute packets and their signatures while exporting. This
4181 is to accomodate keyservers (pksd again) that choke on attributes.
4182 Use keyserver-option "include-attributes" to control it. This
4183 defaults to ON (i.e. don't skip).
4185 2002-07-09 David Shaw <dshaw@jabberwocky.com>
4187 * options.h, keyserver.c (parse_keyserver_uri, keyserver_spawn,
4188 keyserver_work), hkp.c (hkp_ask_import, hkp_export, hkp_search):
4189 Use a much more strict reading of RFC-2396 for the keyserver URIs.
4190 Specifically, don't try and be smart about checking the value of
4191 ":port" so long as it is all digits, and properly handle opaque
4192 data (those scheme specific parts that do not start with "//").
4194 2002-07-04 David Shaw <dshaw@jabberwocky.com>
4196 * photoid.c (get_default_photo_command, show_photos): Honor
4197 FIXED_PHOTO_VIEWER and DISABLE_PHOTO_VIEWER.
4199 * mainproc.c (check_sig_and_print): Use --show-photos to show
4200 photos when verifying a sig made by a key with a photo.
4202 * keyserver.c (parse_keyserver_uri): Properly parse a URI with no
4203 :port section and an empty file path, but with a terminating '/'.
4204 (keyserver_work): Honor DISABLE_KEYSERVER_HELPERS.
4206 * hkp.c (hkp_ask_import): Display keyserver URI as a URI, but only
4209 * exec.c, g10.c: USE_EXEC_PATH -> FIXED_EXEC_PATH
4211 2002-07-03 David Shaw <dshaw@jabberwocky.com>
4213 * exec.h, exec.c (set_exec_path, exec_write), g10.c (main): If
4214 USE_EXEC_PATH is defined at compile time, use it to lock the
4215 exec-path and not allow the user to change it.
4217 2002-07-02 David Shaw <dshaw@jabberwocky.com>
4219 * options.h, g10.c (main), keyserver.c (keyserver_refresh):
4220 Maintain and use the original keyserver URI for cosmetics rather
4221 than trying to recreate it when needed.
4223 * mainproc.c (check_sig_and_print): Properly disregard expired
4224 uids. Make sure that the first uid listed is a real uid and not
4225 an attribute (attributes should only be listed in the "aka"
4226 section). When there are no valid textual userids, try for an
4227 invalid textual userid before using any attribute uid.
4229 2002-07-01 David Shaw <dshaw@jabberwocky.com>
4231 * options.skel: Fix a few typos, clarify "group", and remove
4232 sample photo viewers for Win32 since they are the defaults now.
4234 * parse-packet.c (make_attribute_uidname), keylist.c
4235 (dump_attribs): Fix two typecast warnings.
4237 * packet.h, build-packet.c (build_attribute_subpkt), exec.c
4238 (expand_args), mkdtemp.c (mkdtemp), photoid.c
4239 (parse_image_header): Fix some signedness compiler warnings.
4241 2002-07-01 Werner Koch <wk@gnupg.org>
4243 * photoid.c (get_default_photo_command): Also use __MINGW32__
4244 instead of HAVE_DOSISH_SYSTEM.
4246 * encode.c (encode_symmetric): Do not use the new encryption code.
4248 2002-06-30 Werner Koch <wk@gnupg.org>
4250 * photoid.c: Use __MINGW32__ to include windows because
4251 HAVE_DOSISH_SYSTEM is also set for OS/2 and plain DOS. Provide
4252 constant missing in older mingw installations.
4254 2002-06-21 Stefan Bellon <sbellon@sbellon.de>
4256 * g10.c [__riscos__]: Moved RISC OS specific stuff to util/riscos.c
4259 * gpgv.c [__riscos__]: Likewise.
4261 2002-06-20 David Shaw <dshaw@jabberwocky.com>
4263 * keydb.h, pkclist.c (select_algo_from_prefs): Allow passing a
4264 suggested algorithm which will be used if available.
4266 * encode.c (encode_crypt, encrypt_filter), sign.c (sign_file): Use
4267 new select_algo_from_prefs feature to check if forcing an
4268 algorithm would violate the recipient preferences.
4270 * photoid.c (get_default_photo_command, show_photos): Use
4271 different default viewers on different platforms. Currently we
4272 have Win 9x, Win NT (2k, xp), Mac OSX, RISC OS, and "everybody
4273 else". These are #ifdefs as much as possible to avoid clutter.
4275 * g10.c (strusage, build_list), keyedit.c (show_prefs), main.h,
4276 misc.c (compress_algo_to_string, check_compress_algo), pkclist.c
4277 (algo_available), keygen.c (keygen_set_std_prefs): New
4278 algo_to_string and check functions for compress algorithms.
4280 2002-06-20 Werner Koch <wk@gnupg.org>
4282 * misc.c (setsysinfo): Removed a #warning for Alpha's uniligedn
4283 trap disabling - it is quite possible that this is a debug relict.
4285 2002-06-20 Stefan Bellon <sbellon@sbellon.de>
4287 * g10.c [__riscos__]: Added image file system feature.
4289 * gpgv.c [__riscos__]: Added image file system feature.
4291 * photoid.c (show_photos) [__riscos__]: Set RISC OS filetype of
4292 photo id according to MIME type.
4294 2002-06-19 David Shaw <dshaw@jabberwocky.com>
4296 * hkp.c (parse_hkp_index): Don't leak memory when failing out of a
4299 * g10.c (add_notation_data): Relax slightly the rules as to what
4300 can go into a notation name - 2440 allows "@", for example.
4302 2002-06-17 David Shaw <dshaw@jabberwocky.com>
4304 * import.c (clean_subkeys, import_one): Only allow at most 1
4305 binding sig and at most 1 revocation sig on a subkey, as per
4308 * hkp.c (parse_hkp_index, hkp_search): Error if the keyserver
4309 returns an unparseable HKP response.
4311 2002-06-15 David Shaw <dshaw@jabberwocky.com>
4313 * keyedit.c (show_key_with_all_names), keylist.c
4314 (list_keyblock_print): Show "[expired]" before expired uids.
4316 * keyedit.c (show_key_with_all_names_colon), mainproc.c
4317 (list_node), keylist.c (list_keyblock_colon): Show flag 'e' for
4318 expired user ids. Use "uat" for user attribute packets instead of
4319 "uid". Also use '<count> <length>' rather than the fake user id
4320 string on attributes.
4322 * keygen.c (keygen_add_revkey): Remove unused code.
4324 * misc.c (check_permissions): Check directory permissions
4325 properly - they are not special files.
4327 * pkclist.c (expand_id, expand_group, build_pk_list): When
4328 expanding groups before building a pk list, inherit flags from the
4329 original pre-expanded string.
4331 * pubkey-enc.c (is_algo_in_prefs): Don't use prefs from expired
4334 2002-06-14 David Shaw <dshaw@jabberwocky.com>
4336 * free-packet.c (copy_signature): Properly copy a signature that
4337 carries a revocation key on it.
4339 * pkclist.c (expand_id, expand_group, build_pk_list): Groups now
4340 work properly when used in the "Enter the user ID" prompt.
4342 2002-06-14 David Shaw <dshaw@jabberwocky.com>
4344 * keyedit.c (show_key_with_all_names): Display warning if a user
4345 tries to show prefs on a v3 key with a v3 selfsig.
4347 * kbnode.c (dump_kbnode): Show if a uid is expired.
4349 * import.c (merge_blocks, import_revoke_cert): Show user ID
4350 receiving a revocation certificate.
4352 * free-packet.c (cmp_user_ids): Properly compare attribute ids.
4354 * pkclist.c (expand_groups): Maintain the strlist flags while
4355 expanding. Members of an expansion inherit their flags from the
4358 * options.h, cipher.c (write_header), g10.c (main), keygen.c
4359 (keygen_set_std_prefs): remove the personal_mdc flag. It no
4360 longer serves a purpose now that the personal preference lists are
4361 split into cipher/digest/zip.
4363 2002-06-14 Timo Schulz <ts@winpt.org>
4365 * skclist.c (is_insecure): Implemented.
4367 2002-06-12 David Shaw <dshaw@jabberwocky.com>
4369 * keyserver.c (keyserver_spawn): Properly handle PROGRAM responses
4370 when they have a CRLF ending. Noted by Keith Ray.
4372 * keyserver.c (keyserver_spawn): Handle CRLF endings from
4373 keyserver helpers. Also don't leak the last line worth of memory
4374 from the keyserver response.
4376 * main.h, misc.c (deprecated_warning): New function to warn about
4377 deprecated options and commands.
4379 * g10.c (main), keyserver-internal.h, keyserver.c
4380 (parse_keyserver_uri): Use new deprecated function to warn about
4381 honor-http-proxy, auto-key-retrieve, and x-broken-hkp.
4383 2002-06-11 David Shaw <dshaw@jabberwocky.com>
4385 * Makefile.am: link gpg with NETLIBS for the built-in HKP access.
4387 2002-06-10 David Shaw <dshaw@jabberwocky.com>
4389 * options.h, keyserver.c (keyserver_opts), g10.c (main): New
4390 keyserver option "include-subkeys". This feature already existed,
4391 but now can be turned off. It defaults to on.
4393 * options.h, keyserver.c (parse_keyserver_options,
4394 keyserver_spawn): There are now enough options to justify making a
4395 structure for the keyserver options rather than a page of
4396 if-then-else-if-then-etc.
4398 * getkey.c (merge_keys_and_selfsig, merge_selfsigs_main): Fix bug
4399 in calculating key expiration dates.
4401 2002-06-09 David Shaw <dshaw@jabberwocky.com>
4403 * keydb.h, getkey.c (get_user_id_native), import.c (import_one):
4404 Display user ID while importing a key. Note this applies to both
4405 --import and keyserver --recv-keys.
4407 * exec.c (exec_finish): Log unnatural exit (core dump, killed
4408 manually, etc) for fork/exec/pipe child processes.
4410 2002-06-08 Timo Schulz <ts@winpt.org>
4412 * encode.c (encode_symmetric): Disable the compat flag
4413 when the expert mode is enabled.
4415 2002-06-07 David Shaw <dshaw@jabberwocky.com>
4417 * options.skel, options.h, main.h, keydb.h, pkclist.c
4418 (build_pk_list, expand_groups), g10.c (main, add_group): Add new
4419 "group" command to allow one name to expand into multiple keys.
4420 For simplicity, and to avoid potential loops, we only expand once
4421 - you can't make an alias that points to an alias.
4423 * main.h, g10.c (main), keygen.c (build_personal_digest_list):
4424 Simplify the default digest list - there is really no need for the
4425 other hashes since they will never be used after SHA-1 in the
4428 * options.skel, options.h, g10.c (main), hkp.c (hkp_ask_import,
4429 hkp_export, hkp_search), keyserver.c (parse_keyserver_options,
4430 parse_keyserver_uri, keyserver_work, keyserver_refresh): Make the
4431 "x-broken-hkp" keyserver scheme into keyserver-option
4432 "broken-http-proxy". Move honor_http_proxy into
4433 keyserver_options. Canonicalize the three variations of "hkp",
4434 "x-hkp", and "x-broken-hkp" into "hkp".
4436 2002-06-07 Stefan Bellon <sbellon@sbellon.de>
4438 * g10.c [__riscos__]: Added --attribute-file to do the same as
4439 --attribute-fd, but with a filename not a fd as argument.
4440 Added magic symbol for RISC OS to use different memory management.
4442 * gpgv.c [__riscos__]: Added magic symbol for RISC OS to use
4443 different memory management.
4445 2002-06-06 David Shaw <dshaw@jabberwocky.com>
4447 * main.h, g10.c (main), keygen.c (build_personal_digest_list): Put
4448 in a default digest preference list consisting of SHA-1, followed
4449 by every other installed digest except MD5. Note this is the same
4450 as having no digest preference at all except for SHA-1 being
4453 * options.h, g10.c (main), keygen.c (keygen_set_std_prefs),
4454 pkclist.c (select_algo_from_prefs): Split
4455 --personal-preference-list into three:
4456 --personal-{cipher|digest|compress}-preferences. This allows a
4457 user to set one without affecting another (i.e. setting only a
4458 digest pref doesn't imply an empty cipher pref).
4460 * exec.c (exec_read): This is a safer way of guessing the return
4461 value of system(). Noted by Stefan Bellon.
4463 2002-06-05 David Shaw <dshaw@jabberwocky.com>
4465 * hkp.c (parse_hkp_index): Be more robust with keyservers
4466 returning very unparseable responses.
4468 * exec.c (exec_read): Catch and display an error when the remote
4469 process exits unnaturally (i.e. segfault) so the user knows what
4470 happened. Also fix exec_write stub which has a different number
4473 2002-06-05 Timo Schulz <ts@winpt.org>
4475 * encode.c (encode_simple): Ignore the new mode for RFC1991.
4476 * mainproc.c (symkey_decrypt_sesskey): Better check for weird
4479 2002-06-05 Timo Schulz <ts@winpt.org>
4481 * encode.c (encode_sesskey): New.
4482 (encode_simple): Use it here. But by default we use the compat
4483 mode which supress to generate encrypted session keys.
4485 2002-06-05 Timo Schulz <ts@winpt.org>
4487 * mainproc.c (symkey_decrypt_sesskey): New.
4488 (proc_symkey_enc): Support for encrypted session keys.
4490 2002-06-04 David Shaw <dshaw@jabberwocky.com>
4492 * sign.c (hash_for, sign_file): When encrypting and signing at the
4493 same time, consult the various hash prefs to pick a hash algorithm
4494 to use. Pass in a 160-bit hint if any of the signing keys are
4497 * keydb.h, pkclist.c (select_algo_from_prefs, algo_available):
4498 Pass a "hints" opaque pointer in to let the caller give hints as
4499 to what algorithms would be acceptable. The only current hint is
4500 for PREFTYPE_HASH to require a 160-bit hash for DSA. Change all
4501 callers in encode.c (encode_crypt, encrypt_filter) and sign.c
4502 (sign_file). If we settle on MD5 as the best algorithm based
4503 solely on recepient keys and SHA1 is also a possibility, use SHA1
4504 unless the user intentionally chose MD5. This is as per 2440:13.
4506 * exec.c (make_tempdir): Fix duplicated filename problem.
4508 2002-06-03 David Shaw <dshaw@jabberwocky.com>
4510 * packet.h, parse-packet.c (enum_sig_subpkt): Report back from
4511 enum_sig_subpkt when a subpacket is critical and change all
4512 callers in keylist.c (show_policy_url, show_notation), mainproc.c
4513 (print_notation_data), and pkclist.c (do_show_revocation_reason).
4515 * keylist.c (show_policy_url, show_notation): Display if the
4516 policy or notation is critical.
4518 2002-06-03 David Shaw <dshaw@jabberwocky.com>
4520 * main.h, g10.c (main), keylist.c (dump_attribs, set_attrib_fd,
4521 list_keyblock_print, list_keyblock_colon), status.h, status.c
4522 (get_status_string): New --attribute-fd feature to dump the
4523 contents of attribute subpackets for frontends. If --status-fd is
4524 also used, then a new status tag ATTRIBUTE is provided for each
4527 * packet.h, getkey.c (fixup_uidnode, merge_selfsigs_main,
4528 merge_selfsigs_subkey), parse-packet.c (setup_user_id): Keep track
4529 of the expiration time of a user ID, and while we're at it, use
4530 the expired flag from the selfsig rather than reparsing the
4531 SIG_EXPIRE subpacket.
4533 * photoid.c (generate_photo_id): When adding a new photo ID,
4534 showing the photo for confirmation is not safe when noninteractive
4535 since the "user" may not be able to dismiss a viewer window.
4536 Noted by Timo Schulz.
4538 2002-06-03 David Shaw <dshaw@jabberwocky.com>
4540 * options.skel: Sample photo viewers for Win32.
4542 * misc.c (pct_expando): Use the seckey for %k/%K if the pubkey is
4545 * photoid.h, photoid.c (show_photos): Include the seckey in case a
4546 user tries to view a photo on a secret key, and change all callers
4547 in keyedit.c (menu_showphoto), keylist.c (list_keyblock_print),
4548 and photoid.c (generate_photo_id).
4550 2002-06-02 David Shaw <dshaw@jabberwocky.com>
4552 * photoid.c (show_photos): Work properly when not called with a
4555 2002-05-31 David Shaw <dshaw@jabberwocky.com>
4557 * sign.c (mk_notation_and_policy): Free unneeded buffer.
4559 * hkp.c (parse_hkp_index): Properly handle the '&' character
4560 (i.e. "&") in HKP responses.
4562 * getkey.c (merge_selfsigs_main): Fix reversed expiration time
4563 check with self-sigs.
4565 * keyedit.c (sign_uids): When making a new self-sig on a v3 key,
4566 make a v3 self-sig unless it is currently a v3 self-sig being
4569 2002-05-31 Timo Schulz <ts@winpt.org>
4571 * pkclist.c (do_show_revocation_reason): Don't use capital
4572 letters for non-interactive output.
4573 (show_revocation_reason): Now it is global.
4574 * pubkey-enc.c (get_it): Show if the key has been revoked.
4576 2002-05-30 David Shaw <dshaw@jabberwocky.com>
4578 * sign.c (write_signature_packets, sign_file, clearsign_file,
4579 sign_symencrypt_file): Make a v4 signature if a policy URL or
4580 notation is set, unless v3 sigs are forced via rfc1991 or
4581 force-v3-sigs. Also remove some doubled code and clarify an error
4582 message (we don't sign in PGP2 mode - just detach-sign).
4584 * parse-packet.c (parse_one_sig_subpkt): Add KS_FLAGS to the "any
4587 2002-05-29 David Shaw <dshaw@jabberwocky.com>
4589 * keygen.c (keygen_set_std_prefs, add_feature_mdc): Use "mdc" and
4590 "no-mdc" in the prefs string to allow switching on and off the MDC
4591 feature. This is needed to properly export a key from GnuPG for
4592 use on PGP which does not support MDC - without this, MDC-capable
4593 implementations will still try and generate MDCs which will break
4596 * keygen.c (keygen_get_std_prefs): Show "[mdc]" in prefs string if
4599 * options.h, g10.c (main), cipher.c (write_header), keygen.c
4600 (keygen_set_std_prefs): For consistency, allow the user to specify
4601 mdc/no-mdc in the --personal-preference-list. If disabled, it
4602 acts just like --disable-mdc.
4604 2002-05-29 David Shaw <dshaw@jabberwocky.com>
4606 * options.h, exec.c: Add some debugging info, using the 1024 debug
4609 * exec.c (win_system): New system()-like function for win32 that
4610 does not return until the child process terminates. Of course,
4611 this doesn't help if the process itself exits before it is
4614 2002-05-29 Werner Koch <wk@gnupg.org>
4616 * encode.c (encode_simple): Intialize PKT when --no-literal is used.
4618 * keyedit.c (show_key_with_all_names_colon): Renamed the record
4619 for revocation keys to "rvk".
4621 2002-05-27 Werner Koch <wk@gnupg.org>
4623 * keyedit.c (show_key_with_all_names_colon): New.
4624 (show_key_with_all_names): Divert to new function when required.
4625 Sanitize printing of revoker name.
4627 2002-05-27 David Shaw <dshaw@jabberwocky.com>
4629 * build-packet.c (build_sig_subpkt): Handle setting sig flags for
4630 certain subpacket types (notation, policy url, exportable,
4631 revocable). keyedit.c (sign_mk_attrib): Flags no longer need to
4634 * packet.h, parse-packet.c (parse_one_sig_subpkt), build-packet.c
4635 (build_sig_subpkt): Call parse_one_sig_subpkt to sanity check
4636 buffer lengths before building a sig subpacket.
4638 2002-05-26 David Shaw <dshaw@jabberwocky.com>
4640 * sign.c (mk_notation_and_policy): Include secret key to enable %s
4641 expandos, and pass notations through pct_expando as well.
4643 * main.h, misc.c (pct_expando): Add %s and %S expandos for
4646 2002-05-25 David Shaw <dshaw@jabberwocky.com>
4648 * g10.c (strusage, build_list): Add compress algorithms to
4649 --version list. Show algorithm numbers when --verbose --version
4652 2002-05-22 David Shaw <dshaw@jabberwocky.com>
4654 * options.h, main.h, keygen.c (keygen_set_set_prefs,
4655 keygen_get_std_prefs, keygen_upd_std_prefs), keyedit.c
4656 (keyedit_menu), g10.c (main), pkclist.c (select_algo_from_prefs):
4657 Add --personal-preference-list which allows the user to factor in
4658 their own preferred algorithms when the preference lists are
4659 consulted. Obviously, this does not let the user violate a
4660 recepient's preferences (and the RFC) - this only influences the
4661 ranking of the agreed-on (and available) algorithms from the
4662 recepients. Suggested by David Hollenberg.
4664 * options.h, keygen.c (keygen_set_std_prefs), g10.c (main): Rename
4665 --preference-list to --default-preference-list (as that is what it
4666 really is), and make it a true default in that if the user selects
4667 "default" they get this list and not the compiled-in list.
4669 2002-05-22 Werner Koch <wk@gnupg.org>
4671 * g10.c (main): Add missing LF in a info printout and made it
4672 translatable. Noted by Michael Tokarev.
4674 2002-05-21 Werner Koch <wk@gnupg.org>
4676 * g10.c (main): Removed the undef of USE_SHM_COPROCESSING which
4677 was erroneously introduced on 2002-01-09.
4679 * signal.c (got_fatal_signal): Don't write the Nul to stderr.
4680 Reported by David Hollenberg.
4682 2002-05-18 David Shaw <dshaw@jabberwocky.com>
4684 * main.h, g10.c (main), revoke.c (gen_desig_revoke): Generate a
4685 designated revocation via --desig-revoke
4687 * keyedit.c (keyedit_menu, menu_addrevoker): New "addrevoker"
4688 command to add a designated revoker to a key.
4690 2002-05-17 David Shaw <dshaw@jabberwocky.com>
4692 * gpgv.c: Add stub for get_ownertrust().
4694 * g10.c (main): --allow-freeform-uid should be implied by
4695 OpenPGP. Add --no-allow-freeform-uid.
4697 * keyedit.c (sign_uids): Issue a warning when signing a
4700 * getkey.c (merge_selfsigs_main): If a key has no selfsigs, and
4701 allow-non-selfsigned-uid is not set, still try and make the key
4702 valid by checking all uids for a signature from an ultimately
4705 2002-05-16 David Shaw <dshaw@jabberwocky.com>
4707 * main.h, keygen.c (keygen_add_revkey): Add revocation key
4708 subpackets to a signature (callable by
4709 make_keysig_packet). (write_direct_sig): Write a 1F direct key
4710 signature. (parse_revocation_key): Parse a string in
4711 algo:fpr:sensitive format into a revocation
4712 key. (get_parameter_revkey, do_generate_keypair): Call above
4713 functions when prompted from a batch key generation file.
4715 * build-packet.c (build_sig_subpkt): Allow multiple revocation key
4716 subpackets in a single sig.
4718 * keydb.h, getkey.c (get_seckey_byfprint): Same as
4719 get_pubkey_byfprint, except for secret keys. We only know the
4720 fingerprint of a revocation key, so this is needed to retrieve the
4721 secret key needed to issue a revokation.
4723 * packet.h, parse-packet.c (parse_signature, parse_revkeys): Split
4724 revkey parsing off into a new function that can be used to reparse
4725 after manipulating the revkey list.
4727 * sign.c (make_keysig_packet): Ability to make 1F direct key
4730 2002-05-15 David Shaw <dshaw@jabberwocky.com>
4732 * options.skel: keyserver.pgp.com is gone, so list pgp.surfnet.nl
4733 as a sample LDAP server instead.
4735 * getkey.c (merge_selfsigs_main): Properly handle multiple
4736 revocation keys in a single packet. Properly handle revocation
4737 keys that are in out-of-order packets. Remove duplicates in
4738 revocation key list.
4740 2002-05-14 Timo Schulz <ts@winpt.org>
4742 * exec.c (make_tempdir) [MINGW32]: Added missing '\'.
4744 2002-05-14 Stefan Bellon <sbellon@sbellon.de>
4746 * exec.c (make_tempdir): Make use of EXTSEP_S instead of hardcoded
4747 dot as extension separator.
4749 2002-05-13 David Shaw <dshaw@jabberwocky.com>
4751 * photoid.c (show_photos): Use the long keyid as the filename for
4752 the photo. Use the short keyid as the filename on 8.3 systems.
4754 * exec.h, exec.c (make_tempdir, exec_write, exec_finish): Allow
4755 caller to specify filename. This should make things easier on
4756 windows and macs where the file extension is required, but a whole
4757 filename is even better.
4759 * keyedit.c (show_key_with_all_names, show_prefs): Show proper
4760 prefs for a v4 key uid with no selfsig at all.
4762 * misc.c (check_permissions): Don't check permissions on
4763 non-normal files (pipes, character devices, etc.)
4765 2002-05-11 Werner Koch <wk@gnupg.org>
4767 * mainproc.c (proc_symkey_enc): Avoid segv in case the parser
4768 encountered an invalid packet.
4770 * keyserver.c (keyserver_export): Get confirmation before sending
4773 2002-05-10 Stefan Bellon <sbellon@sbellon.de>
4775 * g10.c, hkp.c, keyedit.c, keyserver.c: Replaced all occurrances
4776 of strcasecmp with ascii_strcasecmp and all occurrances of
4777 strncasecmp with ascii_memcasecmp.
4779 2002-05-10 David Shaw <dshaw@jabberwocky.com>
4781 * packet.h, getkey.c (fixup_uidnode), keyedit.c (show_prefs): Show
4782 assumed prefs for hash and compression as well as the cipher pref.
4783 Show assumed prefs if there are no prefs at all on a v4
4786 * options.h, g10.c (main), sign.c (make_keysig_packet): New
4787 --cert-digest-algo function to override the default key signing
4790 2002-05-09 David Shaw <dshaw@jabberwocky.com>
4792 * getkey.c (merge_selfsigs_main): Make sure the revocation key
4793 list starts clean as this function may be called more than once
4794 (e.g. from functions in --edit).
4796 * g10.c, encode.c (encode_crypt), sign.c (sign_file,
4797 sign_symencrypt_file): Make --compress-algo work like the
4798 documentation says. It should be like --cipher-algo and
4799 --digest-algo in that it can override the preferences calculation
4800 and impose the setting the user wants. No --compress-algo setting
4801 allows the usual preferences calculation to take place.
4803 * main.h, compress.c (compress_filter): use new
4804 DEFAULT_COMPRESS_ALGO define, and add a sanity check for compress
4807 2002-05-08 David Shaw <dshaw@jabberwocky.com>
4809 * pkclist.c (select_algo_from_prefs): There is an assumed
4810 compression preference for uncompressed data.
4812 2002-05-07 David Shaw <dshaw@jabberwocky.com>
4814 * options.h, g10.c (main), getkey.c (finish_lookup), pkclist.c
4815 (algo_available): --pgp7, identical to --pgp6 except that it
4816 permits a few algorithms that PGP 7 added: AES128, AES192, AES256,
4817 and TWOFISH. Any more of these --pgpX flags, and it'll be time to
4818 start looking at a generic --emulate-pgp X option.
4820 * export.c (do_export_stream): Warn the user when exporting a
4821 secret key if it or any of its secret subkeys are protected with
4822 SHA1 while simple_sk_checksum is set.
4824 * parse-packet.c (parse_key): Show when the SHA1 protection is
4825 used in --list-packets.
4827 * options.h, build-packet.c (do_comment), g10.c (main): Rename
4828 --no-comment as --sk-comments/--no-sk-comments (--no-comment still
4829 works) and make the default be --no-sk-comments.
4831 2002-05-07 Werner Koch <wk@gnupg.org>
4833 * keygen.c (get_parameter_algo): Never allow generation of the
4834 deprecated RSA-E or RSA-S flavors of PGP RSA.
4835 (ask_algo): Allow generation of RSA sign and encrypt in expert
4836 mode. Don't allow ElGamal S+E unless in expert mode.
4837 * helptext.c: Added entry keygen.algo.rsa_se.
4839 2002-05-07 David Shaw <dshaw@jabberwocky.com>
4841 * keyedit.c (sign_uids): If --expert is set, allow re-signing a
4842 uid to promote a v3 self-sig to a v4 one. This essentially
4843 deletes the old v3 self-sig and replaces it with a v4 one.
4845 * packet.h, parse-packet.c (parse_key), getkey.c
4846 (merge_keys_and_selfsig, merge_selfsigs_main): a v3 key with a v4
4847 self-sig must never let the v4 self-sig express a key expiration
4848 time that extends beyond the original v3 expiration time.
4850 2002-05-06 David Shaw <dshaw@jabberwocky.com>
4852 * keyedit.c (sign_uids): When making a self-signature via "sign"
4853 don't ask about sig level or expiration, and include the usual
4854 preferences and such for v4 self-sigs. (menu_set_preferences):
4855 Convert uids from UTF8 to native before printing.
4857 * keyedit.c (sign_uids): Convert uids from UTF8 to native before
4858 printing. (menu_set_primary_uid): Show error if the user tries to
4859 make a uid with a v3 self-sig primary.
4861 2002-05-05 David Shaw <dshaw@jabberwocky.com>
4863 * import.c (import_one): When merging with a key we already have,
4864 don't let a key conflict (same keyid but different key) stop the
4865 import: just skip the bad key and continue.
4867 * exec.c (make_tempdir): Under Win32, don't try environment
4868 variables for temp directories - GetTempDir tries environment
4869 variables internally, and it's better not to second-guess it in
4870 case MS adds some sort of temp dir handling to Windows at some
4873 2002-05-05 Timo Schulz <ts@winpt.org>
4875 * mainproc.c (proc_symkey_enc): Don't ask for a passphrase
4876 in the list only mode.
4878 2002-05-05 David Shaw <dshaw@jabberwocky.com>
4880 * keyserver.c (keyserver_refresh): --refresh-keys implies
4881 --merge-only so as not to import keys with keyids that match the
4882 ones being refreshed. Noted by Florian Weimer.
4884 2002-05-04 Stefan Bellon <sbellon@sbellon.de>
4886 * free-packet.c (copy_public_key): Don't call m_alloc(0), therefore
4887 added consistency check for revkey and numrefkeys.
4889 * getkey.c (check_revocation_keys): Added consistency check for
4890 revkey and numrefkeys.
4892 * keyedit.c (show_key_with_all_names): Likewise.
4894 2002-05-03 David Shaw <dshaw@jabberwocky.com>
4896 * photoid.c: Provide default image viewer for Win32.
4898 * misc.c (pct_expando): %t means extension, not name ("jpg", not
4901 * keyserver.c (keyserver_spawn), photoid.c (show_photos), exec.h,
4902 exec.c: Allow the caller to determine the temp file extension when
4903 starting an exec_write and change all callers.
4905 * keyedit.c (sign_uids): Nonrevocable key signatures cause an
4906 automatic promotion to v4.
4908 * exec.c: Provide stubs for exec_ functions when NO_EXEC is
4911 2002-05-02 David Shaw <dshaw@jabberwocky.com>
4913 * photoid.h, photoid.c (parse_image_header, image_type_to_string):
4914 Useful functions to return data about an image.
4916 * packet.h, parse-packet.c (make_attribute_uidname,
4917 parse_attribute_subpkts, parse_attribute), photoid.h, photoid.c
4918 (show_photos): Handle multiple images in a single attribute
4921 * main.h, misc.c (pct_expando), sign.c (mk_notation_and_policy),
4922 photoid.c (show_photos): Simpler expando code that does not
4923 require using compile-time string sizes. Call
4924 image_type_to_string to get image strings (i.e. "jpg",
4925 "image/jpeg"). Change all callers.
4927 * keyedit.c (menu_showphoto), keylist.c (list_keyblock_print):
4928 Allow viewing multiple images within a single attribute packet.
4930 * gpgv.c: Various stubs for link happiness.
4932 2002-05-02 David Shaw <dshaw@jabberwocky.com>
4934 * build-packet.c (build_sig_subpkt), keyedit.c (sign_uids),
4935 options.h, sign.c (mk_notation_and_policy), g10.c (main,
4936 add_notation_data, add_policy_url (new), check_policy_url
4937 (removed)): Allow multiple policy URLs on a given signature.
4938 Split "--notation-data" into "--cert-notation" and
4939 "--sig-notation" so the user can set different policies for key
4940 and data signing. For backwards compatibility, "--notation-data"
4941 sets both, as before.
4943 2002-05-02 Werner Koch <wk@gnupg.org>
4945 * options.skel: Removed the comment on trusted-keys because this
4946 option is now deprecated.
4948 2002-05-01 David Shaw <dshaw@jabberwocky.com>
4950 * keyedit.c (menu_adduid): 2440bis04 says that multiple attribute
4951 packets on a given key are legal.
4953 * keyserver.c (keyserver_refresh): the fake v3 keyid hack applies
4954 to "mailto" URLs as well since they are also served by pksd.
4956 2002-04-29 Werner Koch <wk@gnupg.org>
4958 Added a copyright year for files changed this year.
4960 2002-04-25 Werner Koch <wk@gnupg.org>
4962 * g10.c, options.h: New options --display, --ttyname, --ttytype,
4963 --lc-ctype, --lc-messages to be used with future versions of the
4965 * passphrase.c (agent_send_option,agent_send_all_options): New.
4966 (agent_open): Send options to the agent.
4968 * trustdb.c (update_ownertrust, clear_ownertrust): Do an explicit
4969 do_sync because revalidation_mark does it only if when the
4970 timestamp actually changes.
4972 2002-04-23 David Shaw <dshaw@jabberwocky.com>
4974 * main.h, keygen.c (do_generate_keypair), keylist.c
4975 (print_signature_stats, list_all, list_one, list_keyblock,
4976 list_keyblock_print, list_keyblock_colon): After generating a new
4977 key, show the key information (name, keyid, fingerprint, etc.)
4978 Also do not print uncheckable signatures (missing key..) in
4979 --check-sigs. Print statistics (N missing keys, etc.) after
4982 * keyedit.c (sign_uids): When signing a key with an expiration
4983 date on it, the "Do you want your signature to expire at the same
4984 time?" question should default to YES.
4986 2002-04-22 David Shaw <dshaw@jabberwocky.com>
4988 * parse-packet.c (parse_plaintext), packet.h, plaintext.c
4989 (handle_plaintext): Fix bug in handling literal packets with
4990 zero-length data (no data was being confused with partial body
4993 * misc.c (pct_expando), options.skel: %t means extension ("jpg").
4994 %T means MIME type ("image/jpeg").
4996 * import.c (import_one): Only trigger trust update if the keyring
4997 is actually changed.
4999 * export.c (do_export_stream): Missing a m_free.
5001 2002-04-22 Stefan Bellon <sbellon@sbellon.de>
5003 * keyid.c (expirestr_from_sk, expirestr_from_sig): Added _() to
5006 * exec.c (make_tempdir) [__riscos__]: Better placement of
5009 2002-04-20 David Shaw <dshaw@jabberwocky.com>
5011 * keygen.c (generate_subkeypair): 2440bis04 adds that creating
5012 subkeys on v3 keys is a MUST NOT.
5014 * getkey.c (finish_lookup): The --pgp6 "use the primary key"
5015 behavior should only apply while data signing and not encryption.
5016 Noted by Roger Sondermann.
5018 2002-04-19 Werner Koch <wk@gnupg.org>
5020 * keygen.c (keygen_set_std_prefs): Put back 3DES because the RFC
5021 says it is good form to do so.
5023 2002-04-19 David Shaw <dshaw@jabberwocky.com>
5025 * keyedit.c (menu_deluid): Only cause a trust update if we delete
5026 a non-revoked user id.
5028 * hkp.c (hkp_ask_import), keyserver.c (parse_keyserver_options,
5029 keyserver_spawn), options.h: Remove fast-import keyserver option
5030 (no longer meaningful).
5032 * g10.c (main), keyedit.c (sign_uids), options.h: Change
5033 --default-check-level to --default-cert-check-level as it makes
5034 clear what it operates on.
5036 * g10.c (main): --pgp6 also implies --no-ask-sig-expire.
5038 * delkey.c (do_delete_key): Comment.
5040 * keyedit.c (sign_uids, keyedit_menu, menu_deluid, menu_delsig,
5041 menu_expire, menu_revsig, menu_revkey): Only force a trustdb check
5042 if we did something that changes it.
5044 * g10.c: add "--auto-check-trustdb" to override a
5045 "--no-auto-check-trustdb"
5047 2002-04-19 Werner Koch <wk@gnupg.org>
5049 * tdbio.c (tdbio_write_nextcheck): Return a status whether the
5050 stamp was actually changed.
5051 * trustdb.c (revalidation_mark): Sync the changes. Removed the
5052 sync operation done by its callers.
5053 (get_validity): Add logic for maintaining a pending_check flag.
5054 (clear_ownertrust): New.
5056 * keyedit.c (sign_uids): Don't call revalidation_mark depending on
5058 (keyedit_menu): Call revalidation_mark after "trust".
5059 (show_key_with_all_names): Print a warning on the wrong listed key
5062 * delkey.c (do_delete_key): Clear the owenertrust information when
5063 deleting a public key.
5065 2002-04-18 Werner Koch <wk@gnupg.org>
5067 * seskey.c (encode_md_value): Print an error message if a wrong
5068 digest algorithm is used with DSA. Changed all callers to cope
5069 with a NULL return. Problem noted by Imad R. Faiad.
5071 2002-04-18 David Shaw <dshaw@jabberwocky.com>
5073 * trustdb.c (mark_usable_uid_certs): Properly handle nonrevocable
5074 signatures that can expire. In short, the only thing that can
5075 override an unexpired nonrevocable signature is another unexpired
5076 nonrevocable signature.
5078 * getkey.c (finish_lookup): Always use primary signing key for
5079 signatures when --pgp6 is on since pgp6 and 7 do not understand
5080 signatures made by signing subkeys.
5082 2002-04-18 Werner Koch <wk@gnupg.org>
5084 * trustdb.c (validate_keys): Never schedule a nextcheck into the
5086 (validate_key_list): New arg curtime use it to set next_expire.
5087 (validate_one_keyblock): Take the current time from the caller.
5088 (clear_validity, reset_unconnected_keys): New.
5089 (validate_keys): Reset all unconnected keys.
5091 * getkey.c (premerge_public_with_secret): Fixed 0x12345678! syntax
5092 for use with secret keys.
5093 (lookup): Advance the searchmode after a search FIRST.
5095 * seckey-cert.c (do_check): Always calculate the old checksum for
5096 use after unprotection.
5098 * g10.c, options.skel: New option --no-escape-from. Made
5099 --escape-from and --force-v3-sigs the default and removed them
5100 from the options skeleton.
5102 2002-04-16 Werner Koch <wk@gnupg.org>
5104 * parse-packet.c (parse_key): Support a SHA1 checksum as per
5105 draft-rfc2440-bis04.
5106 * packet.h (PKT_secret_key): Add field sha1chk.
5107 * seckey-cert.c (do_check): Check the SHA1 checksum
5108 (protect_secret_key): And create it.
5109 * build-packet.c (do_secret_key): Mark it as sha-1 protected.
5110 * g10.c, options.h: New option --simple-sk-checksum.
5112 2002-04-13 David Shaw <dshaw@jabberwocky.com>
5114 * parse-packet.c (parse_signature): Minor fix - signatures should
5115 expire at their expiration time and not one second later.
5117 * keygen.c (proc_parameter_file): Allow specifying preferences
5118 string (i.e. "s5 s2 z1 z2", etc) in a batchmode key generation
5121 * keyedit.c (keyedit_menu): Print standard error message when
5122 signing a revoked key (no new translation).
5124 * getkey.c (merge_selfsigs): Get the default set of key prefs from
5125 the real (not attribute) primary uid.
5127 2002-04-12 David Shaw <dshaw@jabberwocky.com>
5129 * pkclist.c (build_pk_list): Fix bug that allowed a key to be
5130 selected twice in batch mode if one instance was the default
5131 recipient and the other was an encrypt-to. Noted by Stefan
5134 * parse-packet.c (dump_sig_subpkt): Show data in trust and regexp
5137 * keyedit.c (keyedit_menu): Use new function real_uids_left to
5138 prevent deleting the last real (i.e. non-attribute) uid. Again,
5139 according to the attribute draft. (menu_showphoto): Make another
5140 string translatable.
5142 2002-04-11 David Shaw <dshaw@jabberwocky.com>
5144 * build-packet.c (build_sig_subpkt): Delete subpackets from both
5145 hashed and unhashed area on update. (find_subpkt): No longer
5148 * keyedit.c (sign_uids): With --pgp2 on, refuse to sign a v3 key
5149 with a v4 signature. As usual, --expert overrides. Try to tweak
5150 some strings to a closer match so they can all be translated in
5151 one place. Use different helptext keys to allow different help
5152 text for different questions.
5154 * keygen.c (keygen_upd_std_prefs): Remove preferences from both
5155 hashed and unhashed areas if they are not going to be used.
5157 2002-04-10 David Shaw <dshaw@jabberwocky.com>
5159 * misc.c (pct_expando), options.skel: Use %t to indicate type of a
5160 photo ID (in this version, it's always "jpeg"). Also tweak string
5161 expansion loop to minimize reallocs.
5163 * mainproc.c (do_check_sig): Variable type fix.
5165 * keyedit.c (menu_set_primary_uid): Differentiate between true
5166 user IDs and attribute user IDs when making one of them primary.
5167 That is, if we are making a user ID primary, we alter user IDs.
5168 If we are making an attribute packet primary, we alter attribute
5169 packets. This matches the language in the latest attribute packet
5172 * keyedit.c (sign_uids): No need for the empty string hack.
5174 * getkey.c (fixup_uidnode): Only accept preferences from the
5175 hashed segment of the self-sig.
5177 2002-04-10 Werner Koch <wk@gnupg.org>
5179 * tdbio.c (migrate_from_v2): Fixed the offset to read the old
5180 ownertrust value and only add entries to the table if we really
5183 2002-04-08 David Shaw <dshaw@jabberwocky.com>
5185 * status.h, status.c (get_status_string): Add KEYEXPIRED, EXPSIG,
5186 and EXPKEYSIG. Add "deprecated-use-keyexpired-instead" to
5189 * sig-check.c (do_check): Start transition from SIGEXPIRED to
5190 KEYEXPIRED, since the actual event is signature verification by an
5191 expired key and not an expired signature. (do_signature_check,
5192 packet.h): Rename as signature_check2, make public, and change all
5195 * mainproc.c (check_sig_and_print, do_check_sig): Use status
5196 EXPSIG for an expired, but good, signature. Add the expiration
5197 time (or 0) to the VALIDSIG status line. Use status KEYEXPSIG for
5198 a good signature from an expired key.
5200 * g10.c (main): remove checks for no arguments now that argparse
5203 2002-04-06 Werner Koch <wk@gnupg.org>
5205 * keyring.c (keyring_get_keyblock): Disable the keylist mode here.
5207 * encode.c (encode_simple, encode_crypt): Only test on compressed
5208 files if a compress level was not explicity set.
5210 * keygen.c (keygen_set_std_prefs): Removed Blowfish and Twofish
5211 from the list of default preferences, swapped the preferences of
5212 RMD160 and SHA1. Don't include a preference to 3DES unless the
5213 IDEA kludge gets used.
5215 * free-packet.c (free_packet): call free_encrypted also for
5218 * compress.c (release_context): New.
5219 (handle_compressed): Allocate the context and setup a closure to
5220 release the context. This is required because there is no
5221 guarantee that the filter gets popped from the chain at the end
5222 of the function. Problem noted by Timo and probably also the
5223 cause for a couple of other reports.
5224 (compress_filter): Use the release function if set.
5226 * tdbio.c [__CYGWIN32__]: Don't rename ftruncate. Noted by
5229 * parse-packet.c (parse_signature): Put parens around a bit test.
5231 * exec.c (make_tempdir): Double backslash for TMP directory
5232 creation under Windows. Better strlen the DIRSEP_S constants for
5233 allocation measurements.
5235 * decrypt.c (decrypt_messages): Release the passphrase aquired
5236 by get_last_passphrase.
5238 2002-04-02 Werner Koch <wk@gnupg.org>
5240 * Makefile.am (EXTRA_DIST): Removed OPTIONS an pubring.asc - they
5241 are no longer of any use.
5243 2002-04-03 David Shaw <dshaw@jabberwocky.com>
5245 * keyserver.c (parse_keyserver_options): fix auto-key-retrieve to
5246 actually work as a keyserver-option (noted by Roger Sondermann).
5248 * keylist.c (reorder_keyblock): do not reorder the primary
5249 attribute packet - the first user ID must be a genuine one.
5251 2002-03-31 David Shaw <dshaw@jabberwocky.com>
5253 * keylist.c (list_keyblock_colon): Fix ownertrust display with
5256 * keygen.c (generate_user_id), photoid.c (generate_photo_id):
5257 Properly initialize the user ID refcount. A few more "y/n" ->
5260 * keyedit.c (ask_revoke_sig): Warn the user if they are about to
5261 revoke an expired sig (not a problem, but they should know). Also
5262 tweak a few prompts to change "y/n" to "y/N", which is how most
5263 other prompts are written.
5265 * keyserver.c (keyserver_search_prompt): Control-d escapes the
5266 keyserver search prompt.
5268 * pkclist.c (show_revocation_reason & callers): If a subkey is
5269 considered revoked solely because the parent key is revoked, print
5270 the revocation reason from the parent key.
5272 * trustdb.c (get_validity): Allow revocation/expiration to apply
5273 to a uid/key with no entry in the trustdb.
5275 2002-03-29 David Shaw <dshaw@jabberwocky.com>
5277 * keyserver.c (printunquoted): unquote backslashes from keyserver
5280 * hkp.c (write_quoted): quote backslashes from keyserver searches
5282 2002-03-26 Werner Koch <wk@gnupg.org>
5284 * keygen.c (ask_keysize): Removed the warning for key sizes > 1536.
5286 2002-03-25 Werner Koch <wk@gnupg.org>
5288 * keyedit.c (sign_uids): Use 2 strings and not a %s so that
5289 translations can be done the right way.
5290 * helptext.c: Fixed small typo.
5292 2002-03-23 David Shaw <dshaw@jabberwocky.com>
5294 * import.c (append_uid, merge_sigs): it is okay to import
5295 completely non-signed uids now (with --allow-non-selfsigned-uid).
5297 * getkey.c (get_primary_uid, merge_selfsigs_main): do not choose
5298 an attribute packet (i.e. photo) as primary uid. This prevents
5299 oddities like "Good signature from [image of size 2671]". This is
5300 still not perfect (one can still select an attribute packet as
5301 primary in --edit), but is closer to the way the draft is going.
5303 * g10.c (build_list): algorithms should include 110.
5305 * g10.c (main): --pgp2 implies --no-ask-sig-expire and
5306 --no-ask-cert-expire as those would cause a v4 sig/cert.
5308 * armor.c (is_armor_header): be more lenient in what constitutes a
5309 valid armor header (i.e. -----BEGIN blah blah-----) as some
5310 Windows programs seem to add spaces at the end. --openpgp makes
5313 2002-03-18 David Shaw <dshaw@jabberwocky.com>
5315 * keyserver.c (keyserver_search_prompt): Properly handle a "no
5316 keys found" case from the internal HKP code (external HKP is ok).
5317 Also, make a COUNT -1 (i.e. streamed) keyserver response a little
5320 * g10.c (main): Add --no-allow-non-selfsigned-uid
5322 2002-03-17 David Shaw <dshaw@jabberwocky.com>
5324 * g10.c (main): --openpgp implies --allow-non-selfsigned-uid.
5326 * getkey.c (merge_selfsigs_main): If none of the uids are primary
5327 (because none are valid) then pick the first to be primary (but
5328 still invalid). This is for cosmetics in case some display needs
5329 to print a user ID from a non-selfsigned key. Also use
5330 --allow-non-selfsigned-uid to make such a key valid and not
5331 --always-trust. The key is *not* automatically trusted via
5332 --allow-non-selfsigned-uid.
5334 * mainproc.c (check_sig_and_print): Make sure non-selfsigned uids
5335 print [uncertain] on verification even though one is primary now.
5337 * getkey.c (merge_selfsigs): If the main key is not valid, then
5338 neither are the subkeys.
5340 * import.c (import_one): Allow --allow-non-selfsigned-uid to work
5341 on completely unsigned keys. Print the uids in UTF8. Remove
5342 mark_non_selfsigned_uids_valid().
5344 * keyedit.c (show_key_with_all_names): Show revocation key as
5347 * sign.c (clearsign_file): Allow --not-dash-escaped to work with
5350 2002-03-14 Werner Koch <wk@gnupg.org>
5352 * main.h: Changed the default algorithms to CAST5 and SHA1.
5354 2002-03-13 David Shaw <dshaw@jabberwocky.com>
5356 * import.c (chk_self_sigs): Show which user ID a bad self-sig
5357 (invald sig or unsupported public key algorithm) resides on.
5359 * import.c (chk_self_sigs): any valid self-sig should mark a user
5360 ID or subkey as valid - otherwise, an attacker could DoS the user
5361 by inventing a bogus invalid self-signature.
5363 2002-03-07 David Shaw <dshaw@jabberwocky.com>
5365 * g10.c (main): make a few more strings translatable.
5367 * options.h, options.skel, g10.c (main), gpgv.c, mainproc.c
5368 (check_sig_and_print), keyserver.c (parse_keyserver_options):
5369 --auto-key-retrieve should really be a keyserver-option variable.
5371 * import.c (revocation_present): new function to print a warning
5372 if a key is imported that has been revoked by designated revoker,
5373 but the designated revoker is not present to verify the
5374 revocation. If keyserver-options auto-key-retrieve is set, try
5375 and fetch the designated revoker from the keyserver.
5377 * import.c (import_one): call revocation_present after importing a
5378 new key. Note that this applies to --import, --recv-keys, and
5381 * keyserver-internal.h, keyserver.c (keyserver_import_fprint):
5382 import via fingerprint (for revocation keys).
5384 * keyserver.c (keyserver_import_keyid): much simpler
5385 implementation now that we're using KEYDB_SEARCH_DESC internally.
5387 2002-03-04 David Shaw <dshaw@jabberwocky.com>
5389 * revoke.c (gen_revoke): do not prompt for revocation reason for
5390 v3 revocations (unless force-v4-certs is on) since they wouldn't
5393 * keyedit.c (menu_revsig): show the status of the sigs
5394 (exportable? revocable?) to the user before prompting for which
5395 sig to revoke. Also, make sure that local signatures get local
5398 * keyedit.c (ask_revoke_sig): remind the user which sigs are
5401 * g10.c (main): Add "exec-path" variable to override PATH for
5404 * export.c (do_export_stream): properly check return code from
5405 classify_user_id to catch unclassifiable keys.
5407 2002-03-03 David Shaw <dshaw@jabberwocky.com>
5409 * parse-packet.c (parse_signature): variable type tweak for RISC
5412 2002-02-28 David Shaw <dshaw@jabberwocky.com>
5414 * getkey.c (check_revocation_keys): New function to check a
5415 revocation against a list of potential revocation keys. Note the
5416 loop-breaking code here. This is to prevent blowing up if A is
5417 B's revocation key, while B is also A's. Note also that this is
5418 written so that a revoked revoker can still issue revocations:
5419 i.e. If A revokes B, but A is revoked, B is still revoked. I'm
5420 not completely convinced this is the proper behavior, but it
5421 matches how PGP does it. It does at least have the advantage of
5422 much simpler code - my first version of this had lots of loop
5423 maintaining code so you could chain revokers many levels deep and
5424 if D was revoked, C was not, which meant that B was, and so on.
5425 It was sort of scary, actually.
5427 * getkey.c (merge_selfsigs_main): Add any revocation keys onto the
5428 pk. This is particularly interesting since we normally only get
5429 data from the most recent 1F signature, but you need multiple 1F
5430 sigs to properly handle revocation keys (PGP does it this way, and
5431 a revocation key could be marked "sensitive" and hence in a
5432 different signature). Also, if a pk has a revocation key set,
5433 check for revocation sigs that were not made by us - if made by a
5434 valid revocation key, mark the pk revoked.
5436 * packet.h, getkey.c (cache_public_key): do not cache key if
5437 "dont_cache" is set. This allows the revocation key code to look
5438 up a key and return information that may be inaccurate to prevent
5439 loops without caching the fake data.
5441 * packet.h, sig-check.c (do_signature_check): Record if a
5442 signature was made by a revoked pk.
5444 * packet.h, parse-packet.c (parse_one_sig_subpkt,
5445 can_handle_critical, parse_signature): Get revocation key
5446 information out of direct sigs.
5448 * keylist.c (list_keyblock_print): don't assume that the presence
5449 of a 0x20 signature means the key is revoked. With revocation
5450 keys, this may not be true if the revocation key is not around to
5451 verify it or if verification failed. Also, 0x1F should get listed
5452 as "sig", and not "unexpected signature class".
5454 * keyedit.c (show_key_with_all_names): Add a flag for printing
5455 revoker information and change all callers.
5457 * import.c (merge_blocks): merge in any new direct key (0x1F)
5460 * import.c (import_revoke_cert): don't keep processing after a
5461 revocation is rejected.
5463 * import.c (delete_inv_parts): Allow importing a revocation
5464 signature even if it was not issued by the key. This allows a
5465 revocation key to issue it. Of course, the sig still needs to be
5466 checked before we trust it.
5468 * free-packet.c (copy_public_key): Include a new copy of the
5469 revocation keys when duping a pk.
5471 * free-packet.c (free_seckey_enc, release_public_key_parts): Free
5472 any revocation keys that are attached to a sig or pk.
5474 * export.c (do_export_stream): Do not export signatures with
5475 "sensitive" revocation keys in them.
5477 2002-02-27 David Shaw <dshaw@jabberwocky.com>
5479 * export.c (do_export_stream): Do not include v3 keys in a
5480 --export-secret-subkeys export.
5482 * getkey.c (merge_selfsigs_main): If a key isn't valid (say,
5483 because of no self-signature), allow --always-trust to force it
5484 valid so it can be trusted.
5486 2002-02-25 David Shaw <dshaw@jabberwocky.com>
5488 * hkp.c (hkp_ask_import), hkp.h, keyserver.c (all): treat key
5489 lists internally as fingerprints when possible. All this is via
5490 KEYDB_SEARCH_DESC - no point in reinventing the wheel. This allows
5491 the helper program to search the keyserver by fingerprint if
5492 desired (and the keyserver supports it). Note that automatic
5493 fingerprint promotion during refresh only applies to v4 keys as a
5494 v4 fingerprint can be easily changed into a long or short key id,
5497 * pubkey-enc.c, getkey.c, misc.c, main.h: Take two copies of
5498 hextobyte() from pubkey-enc.c and getkey.c and make them into one
5501 2002-02-22 David Shaw <dshaw@jabberwocky.com>
5503 * keyserver.c (keyserver_search_prompt): Detect a "no keys found"
5504 case even if the helper program does not explicitly say how many
5507 * hkp.c (parse_hkp_index): Bug fix - don't report non-revoked keys
5508 as revoked in HKP key searches.
5510 2002-02-19 Werner Koch <wk@gnupg.org>
5512 * parse-packet.c (parse_trust): Made parsing more robust.
5514 2002-02-19 David Shaw <dshaw@jabberwocky.com>
5516 * hkp.c (parse_hkp_index): Catch corruption in HKP index lines
5517 (can be caused by broken or malicious keyservers).
5519 * keyserver.c (keyserver_work): Add KEYSERVER_NOT_SUPPORTED for
5520 unsupported actions (say, a keyserver that has no way to search,
5521 or a readonly keyserver that has no way to add). Also add a
5522 USE_EXTERNAL_HKP define to disable the internal HKP keyserver
5525 2002-02-14 Werner Koch <wk@gnupg.org>
5527 * g10.c: New option --no-use-agent.
5529 * pkclist.c (check_signatures_trust): Always print the warning for
5530 unknown and undefined trust. Removed the did_add cruft. Reported
5531 by Janusz A. Urbanowicz.
5533 2002-02-11 David Shaw <dshaw@jabberwocky.com>
5535 * hkp.c (parse_hkp_index): Bug fix - properly handle user IDs with
5536 colons (":") in them while HKP searching.
5538 2002-02-09 David Shaw <dshaw@jabberwocky.com>
5540 * misc.c (pct_expando): More comments.
5542 * keydb.h, sign.c (mk_notation_and_policy): Clarify what is a sig
5543 and what is a cert. A sig has sigclass 0x00, 0x01, 0x02, or 0x40,
5544 and everything else is a cert.
5546 * g10.c (main), keyedit.c (keyedit_menu): Add a "nrlsign" for
5547 nonrevocable and local key signatures.
5549 * g10.c (main): Add a --no-force-mdc to undo --force-mdc.
5551 * options.h, g10.c (main), cipher.c (write_header): Add a knob to
5552 --disable-mdc/--no-disable-mdc. Off by default, of course, but is
5553 used in --pgp2 and --pgp6 modes.
5555 * pkclist.c (build_pk_list): Allow specifying multiple users in
5556 the "Enter the user ID" loop. Enter a blank line to stop. Show
5557 each key+id as it is added.
5559 * keylist.c (show_policy_url), mainproc.c (print_notation_data):
5560 It is not illegal (though possibly silly) to have multiple policy
5561 URLs in a given signature, so print all that are present.
5563 * hkp.c (hkp_search): More efficient implementation of URL-ifying
5566 2002-02-04 David Shaw <dshaw@jabberwocky.com>
5568 * main.h, misc.c (pct_expando): New function to generalize
5569 %-expando processing in any arbitrary string.
5571 * photoid.c (show_photo): Call the new pct_expando function rather
5572 than expand strings internally.
5574 * sign.c (mk_notation_and_policy): Show policy URLs and notations
5575 when making a signature if show-policy/show-notation is on.
5576 %-expand policy URLs during generation. This lets the user have
5577 policy URLs of the form "http://notary.jabberwocky.com/keysign/%K"
5578 which will generate a per-signature policy URL.
5580 * main.h, keylist.c (show_policy_url, show_notation): Add amount
5581 to indent so the same function can be used in key listings as well
5582 as during sig generation. Change all callers.
5584 2002-02-04 David Shaw <dshaw@jabberwocky.com>
5586 * keyserver.c, options.h (parse_keyserver_options, keyidlist):
5587 Workaround for the pksd and OKS keyserver bug that calculates v4
5588 RSA keyids as if they were v3. The workaround/hack is to fetch
5589 both the v4 (e.g. 99242560) and v3 (e.g. 68FDDBC7) keyids. This
5590 only happens for key refresh while using the HKP scheme and the
5591 refresh-add-fake-v3-keyids keyserver option must be set. This
5592 should stay off by default.
5594 2002-02-03 David Shaw <dshaw@jabberwocky.com>
5596 * keyserver.c (keyserver_spawn): Bug fix - do not append keys to
5597 each other when --sending more than one.
5599 2002-02-02 David Shaw <dshaw@jabberwocky.com>
5601 * options.h, g10.c (main), keyedit.c (sign_uids), sign.c
5602 (mk_notation_and_policy): Split "--set-policy-url" into
5603 "--cert-policy-url" and "--sig-policy-url" so the user can set
5604 different policies for key and data signing. For backwards
5605 compatibility, "--set-policy-url" sets both, as before.
5607 2002-01-30 Werner Koch <wk@gnupg.org>
5609 * g10.c (main): --gen-random --armor does now output a base64
5612 2002-01-28 David Shaw <dshaw@jabberwocky.com>
5614 * g10.c (main), options.h, pkclist.c (algo_available): --pgp6
5615 flag. This is not nearly as involved as --pgp2. In short, it
5616 turns off force_mdc, turns on no_comment, escape_from, and
5617 force_v3_sigs, and sets compression to 1. It also restricts the
5618 user to IDEA (if present), 3DES, CAST5, MD5, SHA1, and RIPEMD160.
5619 See the comments above algo_available() for lots of discussion on
5620 why you would want to do this.
5622 2002-01-27 David Shaw <dshaw@jabberwocky.com>
5624 * keygen.c (keygen_set_std_prefs): Comment
5626 * keyedit.c (sign_uids): Bug fix - when signing with multiple
5627 secret keys at the same time, make sure each key gets the sigclass
5630 * exec.c (exec_finish): Close the iobuf and FILE before trying to
5631 waitpid, so the remote process will get a SIGPIPE and exit. This
5632 is only a factor when using a pipe to communicate.
5634 * exec.c (exec_write): Disable cache-on-close of the fd iobuf (is
5635 this right? Why is a fd iobuf cached at all?)
5637 2002-01-26 Werner Koch <wk@gnupg.org>
5639 * g10.c, options.h: New option --gpg-agent-info
5640 * passphrase.c (agent_open): Let it override the environment info.
5641 * seckey-cert.c (check_secret_key): Always try 3 times when the
5643 * options.skel: Describe --use-agent.
5645 2002-01-24 David Shaw <dshaw@jabberwocky.com>
5647 * pubkey-enc.c (is_algo_in_prefs, get_it): Only check preferences
5648 against keys with v4 self sigs - there is really little point in
5649 warning for every single non-IDEA message encrypted to an old key.
5651 * pkclist.c (select_algo_from_prefs): Only put in the fake IDEA
5652 preference if --pgp2 is on.
5654 * mainproc.c (check_sig_and_print): Print "Expired" for expired
5655 but good signatures (this still prints "BAD" for expired but bad
5658 2002-01-23 David Shaw <dshaw@jabberwocky.com>
5660 * keygen.c (ask_keysize): Cosmetic: don't present a RSA signing
5661 key as a "keypair" which can be 768 bits long (as RSA minimum is
5664 * pubkey-enc.c (is_algo_in_prefs): Allow IDEA as a fake preference
5665 for v3 keys with v3 selfsigs.
5667 2002-01-22 David Shaw <dshaw@jabberwocky.com>
5669 * packet.h, getkey.c (merge_selfsigs_main), pkclist.c
5670 (select_algo_from_prefs): Implement the fake IDEA preference as
5671 per RFC2440:12.1. This doesn't mean that IDEA will be used (the
5672 plugin may not be present), but it does mean that a v3 key with a
5673 v3 selfsig has an implicit IDEA preference instead of 3DES. v3
5674 keys with v4 selfsigs use preferences as normal.
5676 * encode.c (encode_crypt): if select_algo_from_prefs fails, this
5677 means that we could not find a cipher that both keys like. Since
5678 all v4 keys have an implicit 3DES preference, this means there is
5679 a v3 key with a v3 selfsig in the list. Use 3DES in this case as
5680 it is the safest option (we know the v4 key can handle it, and
5681 we'll just hope the v3 key is being used in an implementation that
5682 can handle it). If --pgp2 is on, warn the user what we're doing
5683 since it'll probably break PGP2 compatibility.
5685 * g10.c (main): Do not force using IDEA for encrypted files in
5686 --pgp2 mode - let the fake IDEA preference choose this for us for
5687 better compatibility when encrypting to multiple keys, only some
5690 * keygen.c (keygen_set_std_prefs): Put 3DES on the end of the
5691 default cipher pref list (RFC2440: "...it is good form to place it
5692 there explicitly."). If the user has the IDEA plugin installed,
5693 put a preference for IDEA *after* 3DES to effectively disable its
5694 use for everything except encrypting along with v3 keys.
5696 * encode.c, g10.c, sign.c: Change the PGP2 warning line from
5697 "... will not be usable ..." to "... may not be usable ..." as the
5698 user could be using one of the enhanced PGP2 variations.
5700 * helptext.c: Revise the sign_uid.class help text as suggested by
5703 2002-01-20 Werner Koch <wk@gnupg.org>
5705 * passphrase.c (passphrase_to_dek): Add tryagain_text arg to be
5706 used with the agent. Changed all callers.
5707 (agent_get_passphrase): Likewise and send it to the agent
5708 * seckey-cert.c (do_check): New arg tryagain_text.
5709 (check_secret_key): Pass the string to do_check.
5710 * keygen.c (ask_passphrase): Set the error text is required.
5711 * keyedit.c (change_passphrase): Ditto.
5713 * passphrase.c (agent_open): Disable opt.use_agent in case of a
5714 problem with the agent.
5715 (agent_get_passphrase): Ditto.
5716 (passphrase_clear_cache): Ditto.
5718 2002-01-19 Werner Koch <wk@gnupg.org>
5720 * passphrase.c (agent_open): Add support for the new Assuan based
5721 gpg-agent. New arg to return the used protocol version.
5722 (agent_get_passphrase): Implemented new protocol here.
5723 (passphrase_clear_cache): Ditto.
5726 2002-01-15 Timo Schulz <ts@winpt.org>
5728 * encode.c (encode_crypt_files): Fail if --output is used.
5730 * g10.c: New command --decrypt-files.
5732 * decrypt.c (decrypt_messages): New.
5734 2002-01-09 David Shaw <dshaw@jabberwocky.com>
5736 * g10.c, misc.c, gpgv.c: move idea_cipher_warn to misc.c so gpgv.c
5737 doesn't need a stub for it any longer.
5739 * g10.c (get_temp_dir), main.h: no longer used (it's in exec.c now)
5741 * g10.c (main), delkey.c (delete_keys), main.h : Allow
5742 --delete-key (now --delete-keys, though --delete-key still works,
5743 of course) to delete multiple keys in one go. This applies to
5744 --delete-secret-key(s) and --delete-secret-and-public-key(s) as
5747 2002-01-09 Timo Schulz <ts@winpt.org>
5749 * encode.c (encode_crypt_files): Now it behaves like verify_files.
5751 * g10.c (main): We don't need to check argc for encode_crypt_files
5754 2002-01-09 Timo Schulz <ts@winpt.org>
5756 * exec.c: Include windows.h for dosish systems.
5758 2002-01-08 Timo Schulz <ts@winpt.org>
5760 * g10.c (main): New description for --encrypt-files.
5762 2002-01-08 Werner Koch <wk@gnupg.org>
5764 * g10.c (main): Must register the secring for encryption because
5765 it is needed to figure out the default recipient. Reported by
5768 2002-01-05 David Shaw <dshaw@jabberwocky.com>
5770 * keyedit.c (menu_adduid): Require --expert before adding a photo
5771 ID to a v3 key, and before adding a second photo ID to any key.
5773 * keyedit.c (keyedit_menu): Don't allow adding photo IDs in
5774 rfc1991 or pgp2 mode.
5776 * getkey.c (merge_selfsigs_subkey): Permit v3 subkeys. Believe it
5777 or not, this is allowed by rfc 2440, and both PGP 6 and PGP 7 work
5780 * g10.c, options.h, keyedit.c, sign.c: Move the "ask for
5781 expiration" switch off of --expert, which was getting quite
5782 overloaded, and onto ask-sig-expire and ask-cert-expire. Both
5785 * g10.c (main): Change the default compression algo to 1, to be
5786 more OpenPGP compliant (PGP also uses this, so it'll help with
5787 interoperability problems as well).
5789 * encode.c (encode_crypt): Handle compression algo 2, since the
5792 * build-packet.c (build_attribute_subpkt): Fix off-by-one error.
5794 2002-01-05 Werner Koch <wk@gnupg.org>
5796 * g10.c (main): Do not register the secret keyrings for certain
5799 * keydb.c (keydb_add_resource): Use access to test for keyring
5800 existence. This avoids cached opened files which are bad under
5803 2002-01-04 David Shaw <dshaw@jabberwocky.com>
5805 * sign.c (sign_file, sign_symencrypt_file): always use one-pass
5806 packets unless rfc1991 is enabled. This allows a signature made
5807 with a v3 key to work in PGP 6 and 7. Signatures made with v4
5810 * g10.c (main): Disallow non-detached signatures in PGP2 mode.
5811 Move the "you must use files and not pipes" PGP2 warning up so all
5812 the PGP2 stuff is together.
5814 * encode.c (encode_simple): Use the actual filesize instead of
5815 partial length packets in the internal literal packet from a
5816 symmetric message. This breaks PGP5(?), but fixes PGP2, 6, and 7.
5817 It's a decent tradeoff. Note there was only an issue with
5818 old-style RFC1991 symmetric messages. 2440-style messages in 6
5819 and 7 work with or without partial length packets.
5821 2002-01-03 David Shaw <dshaw@jabberwocky.com>
5823 * g10.c (main): Removed --no-default-check-level option, as it is
5824 not consistent with other "default" options. Plus, it is the same
5825 as saying --default-check-level 0.
5827 * exec.c (exec_read): Disallow caching tempfile from child
5828 process, as this keeps the file handle open and can cause unlink
5829 problems on some platforms.
5831 * keyserver.c (keyserver_search_prompt): Minor tweak - don't
5832 bother to transform keyids into textual form if they're just going
5833 to be transformed back to numbers.
5835 2002-01-03 Timo Schulz <ts@winpt.org>
5837 * g10.c: New command --encrypt-files.
5839 * verify.c (print_file_status): Removed the static because
5840 encode_crypt_files also uses this function.
5842 * main.h (print_files_status): New.
5843 (encode_crypt_files): New.
5845 * encode.c (encode_crypt_files): New.
5847 2002-01-02 Stefan Bellon <sbellon@sbellon.de>
5849 * keyserver.c: Moved util.h include down in order to avoid
5850 redefinition problems on RISC OS.
5852 * keyring.c (keyring_lock): Only lock keyrings that are writable.
5854 * keyring.c (keyring_update_keyblock): Close unused iobuf.
5856 * hkp.c (parse_hkp_index, hkp_search) [__riscos__]: Changed
5857 unsigned char* to char* because of compiler issues.
5859 * exec.c (exec_finish) [__riscos__]: Invalidate close cache so
5860 that file can be unlinked.
5862 2001-12-28 David Shaw <dshaw@jabberwocky.com>
5864 * g10.c (main): Use a different strlist to check extensions since
5865 they need to be handled seperately now.
5867 * misc.c,main.h (check_permissions): Properly handle permission
5868 and ownership checks on files in the lib directory
5869 (e.g. /usr/local/lib/gnupg), which are owned by root and are
5870 world-readable, and change all callers to specify extension or
5873 * photoid.c (show_photo), keyserver.c (keyserver_spawn): Bug fix -
5874 don't call exec_finish if exec_write fails.
5876 * keyserver.c (keyserver_spawn): Look for OPTIONS from the
5877 keyserver helper - specifically, a "OUTOFBAND" option for the
5880 * mainproc.c (list_node), keylist.c (list_keyblock_colon),
5881 import.c (delete_inv_parts), export.c (do_export_stream): Use
5882 signature flags for exportability check rather than re-parsing the
5885 * keyid.c, keydb.h (get_lsign_letter): No longer needed.
5887 2001-12-27 David Shaw <dshaw@jabberwocky.com>
5889 * exec.c (exec_finish): Show errors when temp files cannot be
5890 deleted for whatever reason.
5892 * exec.c (exec_read): Don't rely on WEXITSTATUS being present.
5894 * exec.c (make_tempdir): Add temp file creator for win32. Don't
5895 create an incoming temp file if the exec is write-only.
5897 * keyserver.c (keyserver_spawn): Clean up error handling, for when
5900 * photoid.c (show_photo): Clean up error handling.
5902 * misc.c (check_permissions): Neaten.
5904 2001-12-25 David Shaw <dshaw@jabberwocky.com>
5906 * mkdtemp.c (mkdtemp): Add copyleft info and tweak the 'X' counter
5907 to be a bit simpler.
5909 * keyserver.c, photoid.c: Remove unused headers left over from
5910 when the exec functions lived there.
5912 2001-12-23 Timo Schulz <ts@winpt.org>
5914 * misc.c (check_permissions): Do not use it for W32 systems.
5916 * tdbio.c (migrate_from_v2): Define ftruncate as chsize() for W32.
5918 * mkdtemp.c: W32 support.
5924 2001-12-22 David Shaw <dshaw@jabberwocky.com>
5926 * exec.c (make_tempdir): avoid compiler warning with const
5928 * mkdtemp.c (mkdtemp): catch the empty ("") string case in case
5929 someone repurposes mkdtemp at some point.
5931 * photoid.c (generate_photo_id, show_photo): some type changes
5934 * exec.c (make_tempdir): handle Win32 systems, suggested by Timo
5937 2001-12-22 Werner Koch <wk@gnupg.org>
5939 * encode.c (encode_simple, encode_crypt): i18n 2 strings.
5941 2001-12-22 Timo Schulz <ts@winpt.org>
5943 * encode.c (encode_simple, encode_crypt): Use is_file_compressed
5944 to avoid to compress compressed files.
5946 2001-12-22 Werner Koch <wk@gnupg.org>
5948 * keyserver.c (keyserver_spawn): Removed some variables
5949 declaration due to shadowing warnings.
5951 * build-packet.c (build_attribute_subpkt): s/index/idx/ to avoid
5952 compiler warnig due to index(3).
5954 * getkey.c (get_ctx_handle): Use KEYDB_HANDLE as return value.
5955 * keylist.c (list_one): Made resname const.
5957 * keyedit.c (keyedit_menu): Allow "addphoto" only when --openpgp is
5960 * options.skel: Changed one example photo viewer to qiv.
5962 2001-12-21 David Shaw <dshaw@jabberwocky.com>
5964 * Makefile.am: add exec.c, exec.h, photoid.c, and photoid.h
5966 * build-packet.c (build_attribute_subpkt): new function to build
5967 the raw attribute subpacket. Note that attribute subpackets have
5968 the same format as signature subpackets.
5970 * exec.c: new file with generic exec-a-program functionality.
5971 Used by both photo IDs and keyserver helpers. This is pretty much
5972 the same code that used to be keyserver specific, with some
5973 changes to be usable generically.
5975 * free-packet.c (free_attributes (new)): function to free an
5978 * gpgv.c: added stub show_photo
5980 * keyedit.c (keyedit_menu, menu_adduid, menu_showphoto): can add a
5981 photo (calls generate_photo_id), or display a photo (calls
5982 show_photo) from the --edit menu. New commands are "addphoto",
5983 and "delphoto" (same as "deluid").
5985 * keylist.c (list_keyblock_print): show photos during key list if
5986 --show-photos enabled.
5988 * keyserver.c (keyserver_spawn): use the generic exec_xxx
5989 functions to call keyserver helper.
5991 * g10.c, options.h: three new options - --{no-}show-photos, and
5992 --photo-viewer to give the command line to display a picture.
5994 * options.skel: instructions for the photo viewer
5996 * parse-packet.c (parse_user_id, setup_user_id (new)): common code
5997 for both user IDs and attribute IDs moved to setup_user_id.
5999 * parse-packet.c (make_attribute_uidname (new)): constructs a fake
6000 "name" for attribute packets (e.g. "[image of size ...]")
6002 * parse-packet.c (parse_attribute (replaces parse_photo_id),
6003 parse_attribute_subpkts): Builds an array of individual
6004 attributes. Currently only handles attribute image / type jpeg
6007 * sign.c (hash_uid): Fix bug in signing attribute (formerly
6010 * packet.h, and callers: globally change "photo_id" to "attribute"
6011 and add structures for attributes. The packet format is generic
6012 attributes, even though the only attribute type thus far defined
6015 2001-12-21 David Shaw <dshaw@jabberwocky.com>
6017 * parse-packet.c (can_handle_critical): Can handle critical
6018 revocation subpackets now.
6020 * trustdb.c (mark_usable_uid_certs): Disregard revocations for
6021 nonrevocable sigs. Note that this allows a newer revocable
6022 signature to override an older nonrevocable signature.
6024 * sign.c (make_keysig_packet): add a duration field and change all
6025 callers. This makes make_keysig_packet closer to
6026 write_signature_packets and removes some duplicated expiration
6029 * keyedit.c (keyedit_menu, menu_revsig, sign_uids,
6030 sign_mk_attrib): Add nrsign command, don't allow revoking a
6031 nonrevocable signature,
6033 * g10.c (main): Add --nrsign option to nonrevocably sign a key
6034 from the command line.
6036 * build-packet.c (build_sig_subpkt_from_sig): Comment to explain
6037 the use of CRITICAL.
6039 2001-12-21 Werner Koch <wk@gnupg.org>
6041 * g10.c. options.h : New option --show-keyring
6042 * getkey.c (get_ctx_handle): New.
6043 * keylist.c (list_one): Implement option here. By David Champion.
6045 2001-12-20 David Shaw <dshaw@jabberwocky.com>
6047 * keyserver.c (keyserver_spawn): Use mkdtemp() to make temp
6050 * mkdtemp.c: replacement function for those platforms that don't
6051 have mkdtemp (make a temp directory securely).
6053 2001-12-19 David Shaw <dshaw@jabberwocky.com>
6055 * misc.c (check_permissions): New function to stat() and ensure
6056 the permissions of GNUPGHOME and the files have safe permissions.
6058 * keydb.c (keydb_add_resource): Check keyring permissions.
6060 * tdbio.c (tdbio_set_dbname): Check permissions of trustdb.gpg
6062 * keyserver.c (keyserver_spawn): Disable keyserver schemes that
6063 involve running external programs if the options file has unsafe
6064 permissions or ownership.
6066 * g10.c, options.h: New option --no-permission-warning to disable
6067 the permission warning message(s). This also permits use of the
6068 keyserver if it had been disabled (see above). Also check the
6069 permissions/ownership of random_seed.
6071 * keyserver.c (keyserver_spawn): The new glibc prints a warning
6072 when using mktemp() (the code was already secure, but the warning
6073 was bound to cause confusion). Use a different implementation
6074 based on get_random_bits() instead. Also try a few times to get
6075 the temp dir before giving up.
6077 2001-12-19 Werner Koch <wk@gnupg.org>
6079 * g10.c, passphrase.c [CYGWIN32]: Allow this as an alias for MINGW32.
6081 2001-12-18 David Shaw <dshaw@jabberwocky.com>
6083 * g10.c (idea_cipher_warn): Add a flag to show the warning always
6084 or once per session and change all callers (show always except for
6085 the secret key protection and unknown cipher from an encrypted
6086 message errors). Also make the strings translatable.
6088 * pubkey-enc.c (get_it): Add the IDEA cipher warning if the user
6089 tries to decrypt an IDEA encrypted message without the IDEA
6092 * keyserver.c (parse_keyserver_uri): More strict checking of the
6093 keyserver URI. Specifically, fail if the ":port" section is
6094 anything except a number between 1 and 65535.
6096 2001-12-17 David Shaw <dshaw@jabberwocky.com>
6098 * keyserver.c (print_keyinfo): No need to check for
6099 control/illegal characters, as utf8_to_native does this for us.
6101 * mainproc.c (proc_encrypted): Use generic IDEA warning.
6103 * gpgv.c: add stub for idea_cipher_warn
6105 * g10.c, hkp.c, keyserver.c: Fix capitalization and plural issues.
6107 * encode.c (encode_crypt), sign.c (sign_file, clearsign_file):
6108 disable pgp2 mode after the message is no longer pgp2 compatible.
6110 * g10.c (main): Tweak the PGP2.x IDEA warning to use the generic
6111 warning, and not merely fail if the IDEA plugin isn't there.
6113 * g10.c (main, idea_cipher_warn), keygen.c (set_one_pref),
6114 seckey-cert.c (do_check): Add a generic IDEA warning for when the
6115 IDEA plugin is not present. This pops up when the user uses
6116 "--cipher-algo idea", when setpref is used to set a "S1"
6117 preference, and when a secret key protected with IDEA is used.
6119 2001-12-15 Werner Koch <wk@gnupg.org>
6121 * keyserver.c (keyserver_spawn): Assert that we have dropped privs.
6123 2001-12-13 Werner Koch <wk@gnupg.org>
6125 * pubkey-enc.c (get_session_key): Check that the public key
6126 algorithm is indeed usable for en/decryption. This avoid a
6127 strange error message from pubkey_decrypt if for some reasons a
6128 bad algorithm indentifier is passed.
6130 2001-12-12 David Shaw <dshaw@jabberwocky.com>
6132 * Fixed some types for portability. Noted by Stefan Bellon.
6134 2001-12-11 Werner Koch <wk@gnupg.org>
6136 * hkp.c (hkp_export): Do not print possible control characters
6137 from a keyserver response.
6138 (parse_hkp_index): Made uid an unsigned char* because it is passed to
6140 (hkp_search): Ditto for the char* vars.
6142 * g10.c (main): Print the IDEA warning also for -c and -se.
6144 * g10.c (get_temp_dir): Assert that we have dropped privs
6146 * encode.c (encode_crypt): Include the first key into the --pgp2
6149 2001-12-07 David Shaw <dshaw@jabberwocky.com>
6151 * g10.c, options.h: New option --pgp2. This is identical to
6152 "--rfc1991 --cipher-algo idea --compress-algo 1 --digest-algo md5
6153 --force_v3_sigs" with the addition of an warning to advise the
6154 user not to use a pipe (which would break pgp2 compatibility).
6156 * encode.c (encode_crypt): warn if the user tries to encrypt to
6157 any key that is not RSA and <= 2048 bits when the --pgp2 option is
6160 * sign.c (sign_file, clearsign_file): When using --pgp2, make a v3
6161 sig, and warn if the signature is made with a non-v3 key.
6163 2001-12-05 David Shaw <dshaw@jabberwocky.com>
6165 * sign.c (sign_file, clearsign_file, sign_symencrypt_file): Prompt
6166 for sig expiration if --expert is set and --force-v3-sigs is not
6167 set (v3 sigs cannot expire).
6169 * mainproc.c (check_sig_and_print): After checking a sig, print
6170 expiration status. This causes a error return if the sig is
6173 * build-packet.c (build_sig_subpkt_from_sig): Include a critical
6174 sig expiration subpacket if the sig is to expire.
6176 * keyedit.c (sign_uids): Do not sign an expired key unless
6177 --expert is set, in which case prompt. Also, offer to expire a
6178 signature when the key the user is signing expires.
6180 * keygen.c (ask_expire_interval): Add a value to determine whether
6181 to prompt for a key or sig expiration and change all callers.
6183 * keyid.c: New functions: expirestr_from_sig and
6184 colon_expirestr_from_sig.
6186 * keylist.c (list_keyblock_colon): Show sig expiration date in the
6187 --with-colons listing.
6189 * sign.c (make_keysig_packet, write_signature_packets): Pass in an
6190 optional timestamp for the signature packet, and change all
6193 * keyedit.c (sign_mk_attrib): Include a critical expiration
6194 subpacket in the signature if an expiration date is given.
6196 2001-12-04 David Shaw <dshaw@jabberwocky.com>
6198 * keyedit.c (sign_uids): If the user tries to sign a
6199 locally-signed key, allow the cert to be promoted to a full
6200 exportable signature. This essentially deletes the old
6201 non-exportable sig, and replaces it with a new exportable one.
6203 2001-12-04 David Shaw <dshaw@jabberwocky.com>
6205 * keyedit.c (keyedit_menu): Do not allow signing a revoked key
6206 unless --expert is set, and ask even then.
6208 * keyedit.c (sign_uids): Do not allow signing a revoked UID unless
6209 --expert is set, and ask even then.
6211 * g10.c, options.h : New option --expert
6213 2001-11-16 David Shaw <dshaw@jabberwocky.com>
6215 * Allow the user to select no compression via "--compress-algo 0"
6216 on the command line.
6218 * keyedit.c (show_prefs): Show compression preferences in the
6219 long-form "showpref" style.
6221 * keygen.c (set_one_pref): Permit setting a no-compression ("Z0")
6224 * getkey.c (fixup_uidnode): Fix compression preference corruption
6227 2001-12-02 David Shaw <dshaw@jabberwocky.com>
6229 * g10.c: Add advisory --for-your-eyes-only option as per section
6232 2001-12-05 David Shaw <dshaw@jabberwocky.com>
6234 * Force a V4 sig if the user has a notation or policy URL set.
6236 2001-12-04 David Shaw <dshaw@jabberwocky.com>
6238 * g10.c: Add options --keyserver-options, --temp-directory, and
6239 auto-key-retrieve (the opposite of no-auto-key-retrieve).
6241 * hkp.c (hkp_search): New function to handle searching a HKP
6244 * hkp.c (hkp_ask_import, hkp_export): Pretty large changes to make
6245 them communicate via the generic functions in keyserver.c
6247 * keyserver.c: new file with generic keyserver routines for
6248 getting keys from a keyserver, sending keys to a keyserver, and
6249 searching for keys on a keyserver. Calls the internal HKP stuff
6250 in hkp.c for HKP keyserver functions. Other calls are handled by
6251 an external program which is spawned and written to and read from
6252 via pipes. Platforms that don't have pipes use temp files.
6254 2001-11-20 David Shaw <dshaw@jabberwocky.com>
6256 * options.h, g10.c: New options show-notation, no-show-notation,
6257 default-check-level, no-default-check-level, show-policy-url,
6260 * packet.h, sign.c (make_keysig_packet), parse-packet.c
6261 (parse_signature), free-packet.c (free_seckey_enc): Fill in
6262 structures for notation, policy, sig class, exportability, etc.
6264 * keyedit.c, keylist.c (print_and_check_one_sig,
6265 list_keyblock_print): Show flags in signature display for cert
6266 details (class, local, notation, policy, revocable). If selected,
6267 show the notation and policy url.
6269 * keyedit.c (sign_uids): Prompt for and use different key sig
6272 * helptext.c (helptexts): Add help text to explain different
6273 key signature classes
6275 2001-11-26 David Shaw <dshaw@jabberwocky.com>
6277 * trustdb.c (mark_usable_uid_certs): Fix segfault from bad
6278 initialization and fix reversed key signature expiration check.
6280 2001-11-09 Werner Koch <wk@gnupg.org>
6282 * export.c (do_export_stream): Put all given names into a search
6283 description and change the loop so that all matching names are
6286 2001-11-08 Werner Koch <wk@gnupg.org>
6288 * pubkey-enc.c (get_it): To reduce the number of questions on the
6289 MLs print the the name of cipher algorithm 1 with the error message.
6291 * mainproc.c: Changed the way old rfc1991 encryption cipher is
6292 selected. Based on a patch by W Lewis.
6294 * pkclist.c (do_edit_ownertrust): Allow to skip over keys, the non
6295 working "show info" is now assigned to "i"
6296 * trustdb.c (ask_ownertrust, validate_keys): Implement a real quit
6297 here. Both are by David Shaw.
6299 * trustdb.c (validate_keys): Make sure next_exipire is initialized.
6301 * sign.c (make_keysig_packet): Use SHA-1 with v4 RSA keys.
6303 * g10.c, options.h : New option --[no-]froce-v4-certs.
6304 * sign.c (make_keysig_packet): Create v4 sigs on v4 keys even with
6305 a v3 key. Use that new option. By David Shaw
6307 * revoke.c (ask_revocation_reason): Allow to select "no reason".
6310 * keyid.c (fingerprint_from_sk): Calculation of an v3 fpr was
6311 plain wrong - nearly the same code in fingerprint_from_pk is correct.
6313 * build-packet.c (do_secret_key): Added a few comments to the code.
6315 2001-11-07 Werner Koch <wk@gnupg.org>
6317 * g10.c (main): Print a warning when -r is used w/o encryption.
6318 Suggested by Pascal Scheffers.
6320 2001-10-23 Werner Koch <wk@gnupg.org>
6322 * keyedit.c (keyedit_menu): Changed helptext for showpref
6323 command. Suggested by Reinhard Wobst.
6325 * keyring.c (keyring_search): When marking the offtbl ready, take
6326 into account that we may have more than one keyring.
6328 2001-10-22 Werner Koch <wk@gnupg.org>
6330 * Makefile.am: Do not use OMIT_DEPENDENCIES
6332 * build-packet.c (build_sig_subpkt): Default is now to put all
6333 types of subpackets into the hashed area and only list those which
6334 should go into the unhashed area.
6336 2001-10-18 Werner Koch <wk@gnupg.org>
6338 * keydb.c (keydb_add_resource): Rearranged the way we keep track
6339 of the resource. There will now be an entry for each keyring here
6340 and not in keyring.c itself. Store a token to allow creation of a
6341 keyring handle. Changed all functions to utilize this new design.
6342 (keydb_locate_writable): Make a real implementation.
6343 * keyring.c (next_kr): Removed and changed all callers to set the
6344 resource directly from the one given with the handle.
6345 (keyring_is_writable): New.
6346 (keyring_rebuild_cache): Add an arg to pass the token from keydb.
6348 2001-10-17 Werner Koch <wk@gnupg.org>
6350 * keyring.c (keyring_search): Enabled word search mode but print a
6351 warning that it is buggy.
6353 2001-10-11 Werner Koch <wk@gnupg.org>
6355 * hkp.c (hkp_ask_import): No more need to set the port number for
6357 (hkp_export): Ditto.
6359 2001-10-06 Stefan Bellon <sbellon@sbellon.de>
6361 * passphrase.c [__riscos__]: Disabled agent specific stuff.
6362 * g10.c: New option --no-force-v3-sigs.
6364 2001-10-04 Werner Koch <wk@gnupg.org>
6366 * export.c (do_export_stream): Do not push the compress filter
6367 here because the context would run out of scope due to the
6368 iobuf_close done by the caller.
6369 (do_export): Do it here instead.
6371 2001-09-28 Werner Koch <wk@gnupg.org>
6373 * keyedit.c (sign_uids): Always use the primary key to sign keys.
6374 * getkey.c (finish_lookup): Hack to return only the primary key if
6375 a certification key has been requested.
6377 * trustdb.c (cmp_kid_for_make_key_array): Renamed to
6378 (validate_one_keyblock): this and changed arg for direct calling.
6379 (make_key_array): Renamed to
6380 (validate_one_keyblock): this and changed args for direct calling.
6381 (mark_usable_uid_certs, validate_one_keyblock)
6382 (validate_key_list): Add next_expire arg to keep track of
6384 (validate_keys): Ditto for UTKs and write the stamp.
6386 * tdbio.c (migrate_from_v2): Check return code of tbdio_sync.
6388 * tdbdump.c (import_ownertrust): Do a tdbio_sync().
6390 * keyring.c: Made the offtbl an global object.
6392 2001-09-27 Werner Koch <wk@gnupg.org>
6394 * pkclist.c (do_edit_ownertrust): Allow settin of ultimate trust.
6396 * trustdb.c (mark_keyblock_seen): New.
6397 (make_key_array): Use it to mark the subkeys too.
6398 (validate_keys): Store validity for ultimatly trusted keys.
6400 2001-09-26 Werner Koch <wk@gnupg.org>
6402 * pkclist.c (check_signatures_trust, do_we_trust): Removed the
6403 invocation of add_ownertrust. Minor changes to the wording.
6404 (add_ownertrust, add_ownertrust_cb): Removed.
6406 * trustdb.c (get_validity): Allow to lookup the validity using a
6409 * trustdb.c (new_key_hash_table): Increased the table size to 1024
6410 and changed the masks accordingly.
6411 (validate): Changed stats printing.
6412 (mark_usable_uid_certs): New.
6413 (cmp_kid_for_make_key_array): Does now check the signatures and
6414 figures out a usable one.
6416 2001-09-25 Werner Koch <wk@gnupg.org>
6418 * keyring.c (new_offset_item,release_offset_items)
6419 (new_offset_hash_table, lookup_offset_hash_table)
6420 (update_offset_hash_table, update_offset_hash_table_from_kb): New.
6421 (keyring_search): Use a offset table to optimize search for
6423 (keyring_update_keyblock, keyring_insert_keyblock): Insert new
6425 * getkey.c (MAX_UNK_CACHE_ENTRIES): Removed the unknown keys
6428 * g10.c, options.h, import.c: Removed the entire
6429 allow-secret-key-import stuff because the validity is now
6430 controlled by other means.
6432 * g10.c: New command --rebuild-keydb-caches.
6433 * keydb.c (keydb_rebuild_caches): New.
6434 * keyring.c (do_copy): Moved some code to
6435 (create_tmp_file, rename_tmp_file, write_keyblock): new functions.
6436 (keyring_rebuild_cache): New.
6438 * packet.h (PKT_ring_trust): Add sigcache field.
6439 * parse-packet.c (parse_trust): Parse sigcache.
6440 * keyring.c (do_copy): Always insert a sigcache packet.
6441 (keyring_get_keyblock): Copy the sigcache packet to the signature.
6442 * sig-check.c (cache_sig_result): Renamed from
6443 cache_selfsig_result. Changed implementation to use the flag bits
6444 and changed all callers.
6445 (mdc_kludge_check): Removed this unused code.
6446 (do_check): Do not set the sig flags here.
6448 * import.c (read_block): Make sure that ring_trust packets are
6450 * export.c (do_export_stream): and never export them.
6452 * trustdb.c (make_key_array): Skip revoked and expired keys.
6454 2001-09-24 Werner Koch <wk@gnupg.org>
6456 * g10.c, options.h: New option --no-auto-check-trustdb.
6458 * keygen.c (do_generate_keypair): Set newly created keys to
6461 * tdbio.h, tdbio.c: Removed all support for records DIR, KEY, UID,
6462 PREF, SIG, SDIR and CACH. Changed migration function to work
6464 (tdbio_read_nextcheck): New.
6465 (tdbio_write_nextcheck): New.
6467 2001-09-21 Werner Koch <wk@gnupg.org>
6469 Revamped the entire key validation system.
6470 * trustdb.c: Complete rewrite. No more validation on demand,
6471 removed some functions, adjusted to all callers to use the new
6472 and much simpler interface. Does not use the LID anymore.
6473 * tdbio.c, tdbio.h: Add new record types trust and valid. Wrote a
6474 migration function to convert to the new trustdb layout.
6475 * getkey.c (classify_user_id2): Do not allow the use of the "#"
6477 * keydb.h: Removed the TDBIDX mode add a skipfnc to the
6479 * keyring.c (keyring_search): Implemented skipfnc.
6481 * passphrase.c (agent_open): Add missing bracket. Include windows.h.
6483 2001-09-19 Werner Koch <wk@gnupg.org>
6485 * keylist.c (print_fingerprint): Renamed from fingerprint, made
6486 global available. Added new arg to control the print style.
6487 * mainproc.c (print_fingerprint): Removed.
6488 * pkclist.c (print_fpr, fpr_info): Removed and changed callers to
6489 use print_fingerprint.
6490 * keyedit.c (show_fingerprint): Ditto.
6492 * passphrase.c (writen, readn)
6493 (agent_open, agent_close)
6494 (agent_get_passphrase)
6495 (passphrase_clear_cache): Support for W32. Contributed by Timo.
6497 * import.c (import_one): Release keydb handles at 2 more places.
6499 * keyring.c (keyring_release): Close the iobuf.
6500 (keyring_get_keyblock): Init ret_kb to NULL and store error contidion.
6502 * import.c (import_new_stats_handle): New.
6503 (import_release_stats_handle): New.
6504 (import_print_stats): Renamed from static fnc print_stats.
6505 (import_keys, import_keys_stream): Add an optional status handle
6506 arg and changed all callers.
6507 * hkp.c (hkp_ask_import): Add an stats_handle arg and changed all
6510 * mainproc.c (print_pkenc_list): Use print_utf8_string2().
6512 2001-09-18 Werner Koch <wk@gnupg.org>
6514 * g10.c: New command --refresh-keys.
6515 * hkp.c (hkp_refresh_keys): New. Contributed by Timo Schulz.
6517 * parse-packet.c (parse): Stop on impossible packet lengths.
6519 2001-09-17 Werner Koch <wk@gnupg.org>
6521 * mainproc.c (print_notation_data): Wrap notation data status lines
6524 * mainproc.c (proc_pubkey_enc): Make option try-all-secrets work.
6525 By disastry@saiknes.lv.
6527 2001-09-14 Werner Koch <wk@gnupg.org>
6529 * parse-packet.c (dump_sig_subpkt): List key server preferences
6530 and show the revocable flag correctly. Contributed by David Shaw.
6532 2001-09-09 Werner Koch <wk@gnupg.org>
6534 * keyedit.c (keyedit_menu): No need to define another p.
6536 * keylist.c (print_capabilities): s/used/use/ so that it
6537 does not shadow a global.
6538 * sign.c (sign_file): Renamed arg encrypt to encryptflag
6539 * keygen.c: Replaced all "usage" by "use".
6540 * misc.c (openpgp_pk_algo_usage): Ditto.
6542 * pubkey-enc.c (get_it): Renamed arg k to enc so that the later
6543 defined k does not shadow it.
6545 * parse-packet.c (parse_gpg_control): No need to define another i.
6547 * getkey.c (get_pubkey_byfprint): Must use the enum values and not
6549 * keyring.c (keyring_search): Removed a non-sense break. Both
6550 bugs pointed out by Stefan.
6552 2001-09-07 Werner Koch <wk@gnupg.org>
6554 * status.c, status.h: Added NO_RECP and ALREADY_SIGNED.
6555 * pkclist.c (build_pk_list): Issue NO_RECP.
6556 * keyedit.c (sign_uids): Added experimental ALREADY_SIGNED
6558 * hkp.c (hkp_import): Use log_error. Bug reported by Neal H
6561 * getkey.c (classify_user_id2): Change args to take the desc union
6562 direct. It was a stupid idea to pass the individual fields of an
6563 union to this function. Changed all callers.
6564 (classify_user_id): Ditto and allow to pass NULL as the description.
6566 2001-09-06 Werner Koch <wk@gnupg.org>
6568 * getkey.c (fixup_uidnode): Features flag is now a bit vector.
6569 * keygen.c (add_feature_mdc): Ditto.
6571 Revamped the entire key I/O code to be prepared for other ways of
6572 key storages and to get rid of the existing shit. GDBM support has
6575 * keyring.c, keyring.h: New.
6576 * ringedit.c: Removed. Moved some stuff to keyring.c
6577 * getkey.c: Changed everything related to the key retrieving
6578 functions which are now using the keydb_ functions.
6579 (prepare_search, word_match_chars, word_match)
6580 (prepare_word_match, compare_name): Moved to keyring.c
6581 (get_pubkey_byname): Removed ctx arg and add ret_kdbhd
6582 arg. Changed all callers.
6583 (key_byname): Use get_pubkey_end to release the context and take
6584 new ret_kbdhd arg. Changed all callers.
6585 (classify_user_id2): Fill the 16 byte fingerprint up with 4 null
6586 bytes not with zero bytes of value 4, tsss.
6587 * import.c (import_one): Updated to use the new keydb interface.
6588 (import_secret_one): Ditto.
6589 (import_revoke_cert): Ditto.
6590 * delkey.c (do_delete_key): Ditto.
6591 * keyedit.c (keyedit_menu): Ditto.
6592 (get_keyblock_byname): Removed.
6593 * revoke.c (gen_revoke): Ditto.
6594 * export.c (do_export_stream): Ditto.
6595 * trustdb.c (update_trustdb): Ditto.
6596 * g10.c, gpgv.c (main): Renamed add_keyblock_resource to
6598 * Makefile.am: Added and removed files.
6600 * keydb.h: Moved KBNODE typedef and MAX_FINGERPRINT_LEN to
6601 * global.h: this new header.
6603 2001-09-03 Werner Koch <wk@gnupg.org>
6605 * passphrase.c (agent_get_passphrase): Changed nread to size_t.
6606 (passphrase_clear_cache): Ditto.
6608 * keyid.c (mk_datestr): Avoid trigraphs.
6609 (fingerprint_from_pk): Cache the keyid in the pk.
6611 * options.h: Add opt.with_fingerprint so that we know whether the
6612 corresponding options was used.
6613 * g10.c (main): Set it here.
6614 * pkclist.c (check_signatures_trust): Always print fingerprint
6615 when this option is used. Mixed a minor memory leak.
6617 * status.c, status.h: New status INV_RECP.
6618 * pkclist.c (build_pk_list): Issue this status.
6620 2001-08-31 Werner Koch <wk@gnupg.org>
6622 * parse-packet.c (parse_key,parse_pubkeyenc)
6623 (parse_signature): Return error on reading bad MPIs.
6625 * mainproc.c (check_sig_and_print): Always print the user ID even
6626 if it is not bound by a signature. Use the primary UID in the
6627 status messages and encode them in UTF-8
6628 * status.c (write_status_text_and_buffer): New.
6630 2001-08-30 Werner Koch <wk@gnupg.org>
6632 * packet.h (sigsubpkttype_t): Add SIGSUBPKT_FEATURES.
6633 (PKT_public_key, PKT_user_id): Add a flag for it.
6634 * parse-packet.c, build-packet.c: Add support for them.
6635 * getkey.c (fixup_uidnode, merge_selfsigs): Set the MDC flags.
6636 * keygen.c (add_feature_mdc): New.
6637 (keygen_upd_std_prefs): Always set the MDC feature.
6638 * keyedit.c (show_prefs): List the MDC flag
6639 * pkclist.c (select_mdc_from_pklist): New.
6640 * encode.c (encode_crypt, encrypt_filter): Test whether MDC
6642 * cipher.c (write_header): Set MDC use depending on the above test.
6643 Print more status info.
6645 * delkey.c (do_delete_key): Kludge to delete a secret key with no
6646 public key available.
6648 * ringedit.c (find_secret_keyblock_direct): New.
6649 * getkey.c (seckey_available): Simplified.
6651 * ringedit.c (cmp_seckey): Now compares the secret key against the
6652 public key while ignoring all secret parts.
6653 (keyring_search): Use a public key packet as arg. Allow to search
6655 (search): Likewise. Changed all callers.
6656 (find_secret_keyblock_bypk): New.
6657 (find_secret_keyblock_byname): First locate the pubkey and then
6658 find the correponding secret key.
6659 * parse-packet.c (parse): Renamed pkttype arg to onlykeypkts and
6660 changed code accordingly. Changed all callers.
6661 (search_packet): Removed pkttype arg.
6662 * keyedit.c (keyedit_menu): First locate the public key and then
6663 try to locate a secret key.
6665 * ringedit.c (locate_keyblock_by_fpr): Removed.
6666 (locate_keyblock_by_keyid): Removed.
6667 (find_keyblock_bysk): Removed.
6669 * sig-check.c (check_key_signature2): Print the keyid along with
6670 the wrong sig class errors.
6672 2001-08-24 Werner Koch <wk@gnupg.org>
6674 * sign.c (sign_file): Stripped the disabled comment packet code.
6675 (sign_file, sign_symencrypt_file): Moved common code to ..
6676 (write_onepass_sig_packets): .. this new function.
6677 (sign_file, clearsign_file, sign_symencrypt_file): Moved common
6679 (write_signature_packets): this new function.
6680 (write_signature_packets, make_keysig_packet)
6681 (update_keysig_packet): Moved common code to
6682 (hash_uid, hash_sigclass_to_magic): these new functions
6683 (sign_file, sign_symencrypt_file): Moved common code to
6684 (write_plaintext_packet): this new function.
6686 2001-08-21 Stefan Bellon <sbellon@sbellon.de>
6688 * trustdb.c (query_trust_info): Changed trustlevel to signed int.
6689 * g10.c [__riscos__]: Fixed handling of --use-agent --lock-multiple.
6691 2001-08-20 Werner Koch <wk@gnupg.org>
6693 * encr-data.c (decrypt_data): Keep track on whether we already
6694 printed information about the used algorithm.
6695 * mainproc.c (proc_encrypted): Removed the non-working IDEA hack
6696 and print a message about the assumed algorithm.
6697 * passphrase.c (passphrase_to_dek): Use the same algorithm as above.
6698 (proc_symkey_enc): Print the algorithm, so that the user knows it
6699 before entering the passphrase.
6700 (proc_pubkey_enc, proc_pubkey_enc): Zero the DEK out.
6701 * encode.c (encode_crypt, encrypt_filter): Ditto.
6703 * g10.c: Allow for --sign --symmetric.
6704 * sign.c (sign_and_symencrypt): New.
6706 Applied patches from Stefan Bellon <sbellon@sbellon.de> to support
6707 RISC OS. Nearly all of these patches are identified by the
6709 * compress.c: Added a couple of casts.
6710 * g10.c [__riscos__]: Some patches and new options foo-file similar
6711 to all foo-fd options.
6712 * gpgv.c, openfile.c, ringedit.c, tdbio.c: Minor fixes. Mainly
6713 replaced hardcoded path separators with EXTSEP_S like macros.
6714 * passprase.c [__riscos__]: Disabled agent stuff
6715 * trustdb.c (check_trust): Changed r_trustlevel to signed int to
6716 avoid mismatch problems in pkclist.c
6717 * pkclist.c (add_ownertrust): Ditto.
6718 * plaintext.c (handle_plaintext) [__riscos__]: Print a note when
6719 file can't be created.
6720 * options.h [__riscos__]: Use an extern unless included from the
6722 * signal.c (got_fatal_signal) [__riscos__]: Close all files.
6724 2001-08-14 Werner Koch <wk@gnupg.org>
6726 * keygen.c (ask_algo): New arg r_usage. Allow for RSA keys.
6727 (gen_rsa): Enabled the code.
6728 (do_create): Enabled RSA branch.
6729 (parse_parameter_usage): New.
6730 (proc_parameter_file): Handle usage parameter.
6731 (read_parameter_file): Ditto.
6732 (generate_keypair): Ditto.
6733 (generate_subkeypair): Ditto.
6734 (do_generate_keypair): Ditto.
6735 (do_add_key_flags): New.
6736 (keygen_add_std_prefs): Use the new function.
6737 (keygen_add_key_flags_and_expire): New.
6738 (write_selfsig, write_keybinding): Handle new usage arg.
6739 * build-packet.c (build_sig_subpkt): Make sure that key flags go
6740 into the hashed area.
6742 * keygen.c (write_uid): Initialize the reference cunter.
6744 * keyedit.c (keyedit_menu): No more need to update the trustdb for
6745 preferences. Added calls to merge keblock.
6747 * kbnode.c (dump_kbnode): Print some more flags.
6749 2001-08-10 Werner Koch <wk@gnupg.org>
6751 Revamped the preference handling.
6753 * packet.h (prefitem_t, preftype_t): New.
6754 (PKT_public_key): Added a uid field.
6755 (PKT_user_id): Added field to store preferences and a reference
6757 * parse-packet.c (parse_user_id,parse_photo_id): Initialize them
6758 * free-packet.c (free_user_id): Free them.
6759 (copy_user_id): Removed.
6760 (scopy_user_id): New.
6761 (cmp_user_ids): Optimized for identical pointers.
6762 (release_public_key_parts): Release the uid.
6763 (copy_public_key_with_new_namehash): Removed.
6765 * keyedit.c (menu_adduid): Use the new shallow copy user id.
6766 (show_prefs): Adjusted implementation.
6767 (keyedit_menu): No more need to update the trustdb after changing
6769 * getkey.c (fixup_uidnode): Store preferences.
6770 (find_by_name): Return a user id packet and remove namehash stuff.
6771 (lookup): Removed the unused namehash stuff.
6772 (finish_lookup): Added foundu arg.
6773 (pk_from_block): Removed the namehash arg and changed all callers.
6774 (merge_selfsigs): Copy prefs to all keys.
6775 * trustdb.c (get_pref_data): Removed.
6776 (is_algo_in_prefs): Removed.
6777 (make_pref_record): Deleted and removed all class.
6778 * pkclist.c (select_algo_from_prefs): Adjusted for the new
6779 preference implementation.
6780 * pubkey-enc.c (is_algo_in_prefs): New.
6781 (get_it): Use that new function.
6783 2001-08-09 Werner Koch <wk@gnupg.org>
6785 * build-packet.c (build_sig_subpkt): Fixed calculation of
6788 * g10.c (main): New option "--preference-list"
6789 * keyedit.c (keyedit_menu): New commands "setpref" and "updpref".
6790 (menu_set_preferences): New.
6791 * keygen.c (keygen_set_std_prefs): New.
6792 (set_one_pref): New.
6793 (check_zip_algo): New.
6794 (keygen_get_std_prefs): New.
6795 (keygen_upd_std_prefs): New
6796 (keygen_add_std_prefs): Move the pref setting code into the above fnc.
6797 * build-packet.c (build_sig_subpkt): Updated the list of allowed
6798 to update subpackets.
6800 2001-08-08 Werner Koch <wk@gnupg.org>
6802 * packet.h (subpktarea_t): New.
6803 (PKT_signature): Use that type for hashed_data and unhashed_data and
6804 removed the _data prefix from those fields. Changed all users.
6805 * parse-packet.c (parse_signature): Changed allocation for that.
6806 (parse_sig_subpkt): Changed declaration
6807 (enum_sig_subpkt): Ditto and changed implementation accordingly.
6808 * free-packet.c (cp_subpktarea): Renamed from cp_data_block and
6809 adjusted implementation. Changed caller.
6810 * sig-check.c (mdc_kludge_check): Adjusted the hashing.
6812 * sign.c (sign_file, clearsign_file, make_keysig_packet,
6813 update_keysig_packet): Ditto.
6814 * build-packet.c (build_sig_subpkt): Partial rewrite.
6815 (find_subpkt): Adjusted and made static.
6816 (delete_sig_subpkt): Adjusted.
6817 (do_signature): Ditto.
6819 * keygen.c (ask_keysize): Do not print the notes about suggested
6820 key sizes if just a DSA key is generated.
6822 * trustdb.c (add_ultimate_key): s/log_error/log_info/ for
6823 duplicated inserted trusted keys.
6825 2001-08-07 Werner Koch <wk@gnupg.org>
6827 * sign.c (sleep): Redefine for W32.
6829 * g10.c, options.h: Set new flag opt.no_homedir_creation when
6830 --no-options is given.
6831 * openfile.c (try_make_homedir): Don't create the homedir in that case.
6833 2001-08-03 Werner Koch <wk@gnupg.org>
6835 * armor.c (armor_filter): Removed the default comment string
6836 because it could get us in trouble due to translations using non
6839 2001-08-01 Werner Koch <wk@gnupg.org>
6841 * keylist.c (list_keyblock_print): Do not list revoked UIDs unless
6842 in verbose mode and we do no signature listing.
6844 * getkey.c (finish_lookup): Skip subkeys which are not yet valid.
6845 * g10.c, options.h: New option --ignore-valid-from.
6847 * sign.c (make_keysig_packet): Added new sigversion argument to
6848 allow the caller to force generation of required signature
6849 version. Changed all callers. Suggested by Thomas Roessler.
6851 * keyedit.c (sign_uids): Force v4 signature generation for local
6852 sigs. Removed the check for local signature and pre-v4 keys.
6854 2001-07-27 Werner Koch <wk@gnupg.org>
6856 * keyedit.c (sign_uids): Check that we are not trying to to a
6857 lsign with a pre-v4 key. Bug noticed by Thomas Roessler.
6859 2001-07-26 Werner Koch <wk@gnupg.org>
6861 * parse-packet.c (parse_photo_id): Reset all variables.
6862 * getkey.c (merge_selfsigs_main): Removed checks on PHOTO_ID
6863 because this is handled identically to a user ID.
6865 2001-07-06 Werner Koch <wk@gnupg.org>
6867 * cipher.c (write_header): Don't use MDC with --rfc1991. Suggested
6868 by disastry@saiknes.lv.
6870 2001-07-05 Werner Koch <wk@gnupg.org>
6872 * g10.c, options.h: New option --preserve-permissions.
6873 * ringedit.c (add_keyblock_resource): Use it here
6874 (keyring_copy): and here.
6876 * trustdb.c (verify_own_keys): Be more silent on --quiet.
6877 Suggested by Thomas Roessler.
6878 * sig-check.c (check_key_signature2): Ditto.
6879 * mainproc.c (proc_encrypted, proc_tree): Ditto
6880 * getkey.c (lookup): Ditto.
6882 2001-07-04 Werner Koch <wk@gnupg.org>
6884 * ringedit.c (add_keyblock_resource): Restore filename in case of error.
6886 2001-06-25 Werner Koch <wk@gnupg.org>
6888 * kbnode.c (dump_kbnode): Print the signature timestamp.
6890 * keyedit.c (keyedit_menu): New menu point "primary".
6891 (change_primary_uid_cb): New.
6892 (menu_set_primary_uid): New.
6893 * sign.c (update_keysig_packet): New.
6894 * build-packet.c (build_sig_subpkt): Put the primary UID flag into
6895 the hashed area. Allow update of some more packets.
6897 2001-06-15 Werner Koch <wk@gnupg.org>
6899 * getkey.c (merge_selfsigs): Exit gracefully when a secret key is
6900 encountered. May happen if a secret key is in public keyring.
6901 Reported by Francesco Potorti.
6903 2001-06-12 Werner Koch <wk@gnupg.org>
6905 * getkey.c (compare_name): Use ascii_memistr(), ascii_memcasecmp()
6906 * keyedit.c (keyedit_menu): Use ascii_strcasecmp().
6907 * armor.c (radix64_read): Use ascii_toupper().
6908 * ringedit.c (do_bm_search): Ditto.
6909 * keygen.c (read_parameter_file): Ditto.
6910 * openfile.c (CMP_FILENAME): Ditto.
6911 * g10.c (i18n_init): We can now use just LC_ALL.
6913 2001-05-29 Werner Koch <wk@gnupg.org>
6915 * keygen.c (generate_subkeypair): Print a warning if a subkey is
6916 created on a v3 key. Suggested by Brian M. Carlson.
6918 2001-05-27 Werner Koch <wk@gnupg.org>
6920 * keyid.c (get_lsign_letter): New.
6921 * keylist.c (list_keyblock_colon): Use it here.
6922 * mainproc.c (list_node): and here.
6924 * getkey.c, packet.h, free-packet.c: Removed that useless key
6925 created field; I dunno why I introducded this at all - the
6926 creation time is always bound to the key packet and subject to
6927 fingerprint calculation etc.
6929 * getkey.c (fixup_uidnode): Add keycreated arg and use this
6930 instead of the signature timestamp to calculate the
6931 help_key_expire. Bug reported by David R. Bergstein.
6932 (merge_selfsigs_main): Correct key expiration time calculation.
6933 (merge_selfsigs_subkey): Ditto.
6935 2001-05-25 Werner Koch <wk@gnupg.org>
6937 * revoke.c (gen_revoke): Add a cast to a tty_printf arg.
6938 * delkey.c (do_delete_key): Ditto.
6939 * keyedit.c (print_and_check_one_sig): Ditto.
6940 (ask_revoke_sig): Ditto.
6941 (menu_revsig): Ditto.
6942 (check_all_keysigs): Removed unused arg.
6944 2001-05-23 Werner Koch <wk@gnupg.org>
6946 * g10.c (opts): Typo fix by Robert C. Ames.
6948 2001-05-06 Werner Koch <wk@gnupg.org>
6950 * revoke.c: Small typo fix
6952 2001-05-04 Werner Koch <wk@gnupg.org>
6954 * passphrase.c (passphrase_clear_cache): Shortcut if agent usage
6957 2001-05-01 Werner Koch <wk@gnupg.org>
6959 * passphrase.c (writen): Replaced ssize_t by int. Thanks to
6960 to Robert Joop for reporting that SunOS 4.1.4 does not have it.
6962 2001-04-28 Werner Koch <wk@gnupg.org>
6964 * getkey.c (merge_public_with_secret): pkttype was not set to subkey.
6966 2001-04-27 Werner Koch <wk@gnupg.org>
6968 * skclist.c (build_sk_list): Changed one log_debug to log_info.
6970 2001-04-25 Werner Koch <wk@gnupg.org>
6972 * keyedit.c (show_prefs): Add a verbose mode.
6973 (show_key_with_all_names): Pass verbose flag for special value of
6975 (keyedit_menu): New command "showpref"
6976 (show_key_with_all_names): Mark revoked uids and the primary key.
6978 2001-04-24 Werner Koch <wk@gnupg.org>
6980 * getkey.c (get_primary_uid): Return a different string in case of
6981 error and made it translatable.
6983 * build-packet.c (do_secret_key): Ugly, we wrote a zero
6984 instead of the computed ndays. Thanks to M Taylor for complaining
6985 about a secret key import problem.
6987 2001-04-23 Werner Koch <wk@gnupg.org>
6989 * hkp.c (hkp_ask_import): Allow to specify a port number for the
6990 keyserver. Add a kudge to set the no_shutdown flag.
6991 (hkp_export): Ditto.
6992 * options.skel: Document the changes
6994 2001-04-20 Werner Koch <wk@gnupg.org>
6996 * options.skel: Add some more comments.
6998 2001-04-19 Werner Koch <wk@gnupg.org>
7000 * keyid.c (mk_datestr): New. Handles negative times. We must do
7001 this because Windoze segvs on negative times passed to gmtime().
7002 Changed all datestr_from function to use this one.
7004 * keyid.c, keyid.h (colon_strtime): New. To implement the
7006 (colon_datestr_from_pk): New.
7007 (colon_datestr_from_sk): New.
7008 (colon_datestr_from_sig): New.
7009 * keylist.c (list_keyblock_colon): Use these functions here.
7010 * mainproc.c (list_node): Ditto.
7012 2001-04-18 Werner Koch <wk@gnupg.org>
7014 * openfile.c (open_sigfile): Fixed the handling of ".sign".
7015 * mainproc.c (proc_tree): Use iobuf_get_real_fname.
7016 Both are by Vincent Broman.
7018 2001-04-14 Werner Koch <wk@gnupg.org>
7020 * getkey.c (fixup_uidnode): Removed check for !sig which is
7021 pointless here. Thanks to Jan Niehusmann.
7023 2001-04-10 Werner Koch <wk@gnupg.org>
7025 * sig-check.c (check_key_signature2): Use log_info instead of
7026 log_error so that messed up keys do not let gpg return an error.
7027 Suggested by Christian Kurz.
7029 * getkey.c (merge_selfsigs_main): Do a fixup_uidnode only if we
7030 have both, uid and sig. Thanks to M Taylor.
7032 2001-04-05 Werner Koch <wk@gnupg.org>
7034 * armor.c (unarmor_pump_new,unarmor_pump_release): New.
7035 (unarmor_pump): New.
7036 * pipemode.c (pipemode_filter): Use the unarmor_pump to handle
7037 armored or non-armored detached signatures. We can't use the
7038 regular armor_filter because this does only check for armored
7039 signatures the very first time. In pipemode we may have a mix of
7040 armored and binary detached signatures.
7041 * mainproc.c (proc_tree): Do not print the "old style" notice when
7042 this is a pipemode processes detached signature.
7043 (proc_plaintext): Special handling of pipemode detached sigs.
7045 * packet.h (CTRLPKT_PLAINTEXT_MARK): New.
7046 * parse-packet.c (create_gpg_control): New.
7047 * kbnode.c (dump_kbnode): Support it here.
7048 * mainproc.c (check_sig_and_print): Fixed the check for bad
7049 sequences of multiple signatures.
7050 (proc_plaintext): Add the marker packet.
7051 (proc_tree): We can now check multiple detached signatures.
7053 2001-04-02 Werner Koch <wk@gnupg.org>
7055 The length of encrypted packets for blocksizes != 8 was not
7056 correct encoded. I think this is a minor problem, because we
7057 usually use partial length packets. Kudos to Kahil D. Jallad for
7059 * packet.h: Add extralen to PKT_encrypted.
7060 * cipher.c (write_header): Set extralen.
7061 * build-packet.c (do_encrypted): Use extralen instead of const 10.
7062 (do_encrypted_mdc): Ditto.
7063 * parse-packet.c (parse_encrypted): Set extralen to 0 because we
7066 2001-03-30 Werner Koch <wk@gnupg.org>
7068 * getkey.c (premerge_public_with_secret): Changed wording an add
7069 the keyID to the info message.
7071 2001-03-29 Werner Koch <wk@gnupg.org>
7073 * getkey.c (premerge_public_with_secret): Use log_info instead of
7074 log_error when no secret key was found for a public one.
7075 Fix the usage if the secret parts of a key are not available.
7077 * openfile.c (ask_outfile_name): Trim spaces.
7078 (open_outfile): Allow to enter an alternate filename. Thanks to
7080 * plaintext.c (handle_plaintext): Ditto.
7082 2001-03-28 Werner Koch <wk@gnupg.org>
7084 * mainproc.c (do_check_sig): Allow direct key and subkey
7085 revocation signature.
7086 * sig-check.c (check_key_signature2): Check direct key signatures.
7087 Print the signature class along with an error.
7089 2001-03-27 Werner Koch <wk@gnupg.org>
7091 * packet.h: Add a missing typedef to an enum. Thanks to Stefan Bellon.
7093 * g10.c: New option --no-sig-create-check.
7094 * sign.c (do_sign): Implement it here.
7095 * g10.c: New option --no-sig-cache.
7096 * sig-check.c (check_key_signature2): Implement it here.
7097 (cache_selfsig_result): and here.
7099 * keylist.c (list_keyblock): Removed debugging stuff.
7101 * getkey.c (cache_public_key): Made global.
7102 * keygen.c (write_selfsig, write_keybinding): Cache the new key.
7104 * getkey.c (key_byname): Add new arg secmode and changed all
7105 callers to request explicitly the mode. Deriving this information
7106 from the other supplied parameters does not work if neither pk nor
7109 2001-03-25 Werner Koch <wk@gnupg.org>
7111 * packet.h (ctrlpkttype_t): New.
7112 * mainproc.c (add_gpg_control,proc_plaintext,proc_tree): Use the
7114 * pipemode.c (make_control): Ditto.
7115 * armor.c (armor_filter): Ditto.
7117 2001-03-24 Werner Koch <wk@gnupg.org>
7119 * sign.c (do_sign): Verify the signature right after creation.
7121 2001-03-23 Werner Koch <wk@gnupg.org>
7123 * status.c, status.h (STATUS_UNEXPECTED): New.
7124 * mainproc.c (do_proc_packets): And emit it here.
7126 2001-03-21 Werner Koch <wk@gnupg.org>
7128 * status.c: Add sys/types.h so that it runs on Ultrix. Reported
7131 * build-packet.c (build_sig_subpkt): Fixed generaton of packet
7132 length header in case where 2 bytes headers are needed. Thanks to
7135 2001-03-19 Werner Koch <wk@gnupg.org>
7137 * g10.c (main): the default keyring is no always used unless
7138 --no-default-keyring is given.
7140 * ringedit.c (add_keyblock_resource): invalidate cache after file
7143 2001-03-15 Werner Koch <wk@gnupg.org>
7145 * keygen.c (ask_algo): Changed the warning of the ElGamal S+E Algo.
7147 * keylist.c (print_capabilities): New.
7148 (list_keyblock_colon): and use it here.
7150 2001-03-13 Werner Koch <wk@gnupg.org>
7152 * main.c, options.h: New option --fixed_list_mode.
7153 * keylist.c (list_keyblock_colon): use it here.
7155 * getkey.c (merge_keys_and_selfsig): Divert merging of public keys
7156 to the function used in key selection..
7157 * keylist.c (is_uid_valid): Removed.
7158 (list_keyblock): Splitted into ..
7159 (list_keyblock_print, list_keyblock_colon): .. these.
7160 functions. Changed them to use the flags set in the key lookup code.
7161 (reorder_keyblock): New, so that primary user IDs are listed first.
7163 * ringedit.c (keyring_copy): flush the new iobuf chaces before
7164 rename or remove operations. This is mainly needed for W32.
7166 * hkp.c [HAVE_DOSISH_SYSTEM]: Removed the disabled code because we
7167 have now W32 socket support in ../util/http.c
7169 * skclist.c (key_present_in_sk_list): New.
7170 (is_duplicated_entry): New.
7171 (build_sk_list): Check for duplicates and do that before unlocking.
7173 2001-03-12 Werner Koch <wk@gnupg.org>
7175 * armor.c (parse_header_line): Removed double empty line check.
7176 (parse_header_line): Replaced trim_trailing_ws with a counting
7177 function so that we can adjust for the next read.
7179 * options.skel: Fixed 3 typos. By Thomas Klausner. Replaced the
7180 keyserver example by a better working server.
7182 * parse-packet.c (parse_symkeyenc): Return Invalid_Packet on error.
7183 (parse_pubkeyenc): Ditto.
7184 (parse_onepass_sig): Ditto.
7185 (parse_plaintext): Ditto.
7186 (parse_encrypted): Ditto.
7187 (parse_signature): Return error at other places too.
7189 * g10.c (main): Set opt.list_packets to another value when invoked
7190 with the --list-packets command.
7191 * mainproc.c (do_proc_packets): Don's stop processing when running
7192 under --list-packets command.
7194 * signal.c (do_sigaction): Removed.
7195 (init_one_signal): New to replace the above. Needed to support
7196 systems without sigactions. Suggested by Dave Dykstra.
7197 (got_fatal_signal,init_signals): Use the above here.
7198 (do_block): Use sigset() if sigprocmask() is not available.
7200 * armor.c (parse_hash_header): Test on TIGER192, which is the
7201 correct value as per rfc2440. By Edwin Woudt.
7203 2001-03-08 Werner Koch <wk@gnupg.org>
7205 * misc.c: Include time.h. By James Troup.
7207 * getkey.c: Re-enabled the unknown user Id and PK caches and
7208 increased their sizes.
7210 * getkey.c (merge_selfsigs_main): Set expire date and continue
7211 processing even if we found a revoked key.
7212 (merge_selfsigs_subkeys): Ditto.
7214 * packet.h: Add an is_revoked flag to the user_id packet.
7215 * getkey.c (fixup_uidnode): Set that flag here.
7216 (merge_selfsigs_main): Fix so that the latest signature is used to
7217 find the self-signature for an UID.
7218 * parse-packet.c (parse_user_id): Zero out all fields.
7219 * mainproc.c (check_sig_and_print): Print the primary user ID
7220 according the the node flag and then all other non-revoked user IDs.
7221 (is_uid_revoked): Removed; it is now handled by the key selection code.
7223 Changed the year list of all copyright notices.
7225 2001-03-07 Werner Koch <wk@gnupg.org>
7227 * getkey.c (finish_lookup): Print an info message only in verbose mode.
7229 2001-03-05 Werner Koch <wk@gnupg.org>
7231 * packet.h: Replaced sigsubpkt_t value 101 by PRIV_VERIFY_CACHE.
7232 We have never used the old value, so we can do this without any harm.
7233 * parse-packet.c (dump_sig_subpkt): Ditto.
7234 (parse_one_sig_subpkt): Parse that new sub packet.
7235 * build-packet.c (build_sig_subpkt): Removed the old one from the
7237 (delete_sig_subpkt): New.
7238 (build_sig_subpkt): Allow an update of that new subpkt.
7239 * sig-check.c (check_key_signature2): Add verification caching
7240 (cache_selfsig_result): New.
7241 * export.c (do_export_stream): Delete that sig subpkt before exporting.
7242 * import.c (remove_bad_stuff): New.
7243 (import): Apply that function to all imported data
7245 2001-03-03 Werner Koch <wk@gnupg.org>
7247 * getkey.c: Introduced a new lookup context flag "exact" and used
7248 it in all place where we once used primary.
7249 (classify_user_id2): Replaced the old function and add an extra
7250 argument to return whether an exact keyID has been requested.
7251 (key_byname): Removed the unused ctx.primary flag
7252 (get_seckey_byname2): Ditto.
7253 (finish_lookup): Changed debugging output.
7255 2001-03-02 Werner Koch <wk@gnupg.org>
7257 * keylist.c (list_one): Remove the merge key calls.
7259 2001-03-01 Werner Koch <wk@gnupg.org>
7261 * getkey.c (finish_lookup): Don't use it if we no specific usage
7263 (merge_selfsigs_main): fix UID only if we have an signature.
7264 (lookup): Return UNU_PUBKEY etc. instead of NO_PUBKEY if we found
7265 a key but the requested usage does not allow this key.
7266 * import.c (import_one): Take UNU_PUBKEY into account.
7267 * mainproc.c (list_node): Ditto.
7268 * keylist.c (list_keyblock): Ditto.
7269 * keyedit.c (print_and_check_one_sig): Ditto.
7271 2001-02-09 Werner Koch <wk@gnupg.org>
7273 * delkey.c (delete_key): Removed that silly assert which rendered
7274 the whole new stuff meaningless.
7276 2001-02-08 Werner Koch <wk@gnupg.org>
7278 * getkey.c (key_byname): It can happen that we have both, sk and pk
7281 * parse-packet.c (parse_one_sig_subpkt): Add support for
7282 primary_uid and key_flags.
7283 (can_handle_critical): Ditto
7285 * parse-packet.c (parse_encrypted): Fixed listing of pktlen for
7288 * getkey.c: Backported the version of this file from gpg 1.1. this
7289 involved some changes in other files too.
7290 * parse-packet.c (parse_key): Clear req_usage.
7291 * skclist.c (build_sk_list): Use req_usage to pass the usage
7292 information to the lookup function.
7293 * pkclist.c (build_pk_list): Ditto.
7294 * free-packet.c (copy_public_parts_to_secret_key): New.
7295 * keydb.h: Add IS_* macros to check the sig_class.
7296 * misc.c (openpgp_cipher_test_algo): New.
7297 (openpgp_pk_test_algo): New.
7298 (openpgp_pk_algo_usage): New.
7299 (openpgp_md_test_algo): New.
7300 * packet.h: Add a few fields to PKT_{public,secret}_key and
7302 * seckey-cert.c (do_check): Use the new main_keyid field.
7304 2001-02-04 Werner Koch <wk@gnupg.org>
7306 * encr-data.c (decrypt_data): Catch error when we had problems to
7307 parse the encrypted packet. By Timo.
7309 2001-01-29 Werner Koch <wk@gnupg.org>
7311 * g10.c (main): --batch does now set nogreeting.
7313 * delkey.c (do_delete_key): Fixed delete-both functionality.
7315 2001-01-22 Werner Koch <wk@gnupg.org>
7317 * g10.c: New command --delete-secret-and-public-key.
7318 * delkey.c (delete_key): Add new arg allow_both.
7319 (do_delete_key): Move most stuff from above to this new function.
7321 2001-01-12 Werner Koch <wk@gnupg.org>
7323 * passphrase.c (passphrase_to_dek): Use MD5 when IDEA is installed
7325 * mainproc.c (proc_encrypted): Likewise
7327 2001-01-11 Werner Koch <wk@gnupg.org>
7329 * sig-check.c (do_check): Print the signature key expire message
7330 only in verbose mode and added the keyID.
7332 2001-01-09 Werner Koch <wk@gnupg.org>
7334 * status.c, status.h: New status USERID_HINT.
7335 (write_status_text): Replace LF and CR int text by C-escape sequence.
7337 * passphrase.c (passphrase_to_dek): Fixed the NEED_PASSPHRASE
7338 output. It does now always print 2 keyIDs. Emit the new
7341 2001-01-08 Werner Koch <wk@gnupg.org>
7343 * g10.c, options.h: New option --no-expensive-trust-checks.
7344 * keylist.c (list_keyblock): Act on this option.
7346 2001-01-04 Werner Koch <wk@gnupg.org>
7348 * g10.c (main): Set homedir only in the pre-parsing phase and
7349 replace backslashes in the W32 version.
7351 2001-01-03 Werner Koch <wk@gnupg.org>
7353 * status.c, status.h : New status KEY_CREATED
7354 * keygen.c (do_generate_keypair,generate_subkeypair): Emit it.
7356 2000-12-28 Werner Koch <wk@gnupg.org>
7358 * signal.c (got_fatal_signal): Remove lockfiles here because the
7359 atexit stuff does not work due to the use of raise. Suggested by
7361 * gpgv.c (remove_lockfiles): New stub.
7363 2000-12-19 Werner Koch <wk@gnupg.org>
7365 * status.c, status.h (cpr_get_no_help): New.
7366 * keyedit.c (keyedit_menu): Use it here because we have our own
7369 2000-12-18 Werner Koch <wk@gnupg.org>
7371 * mainproc.c (print_failed_pkenc): Don't print the sometimes
7372 confusing message about unavailabe secret key. Renamed ...
7373 (print_pkenc_list): ... to this and introduced failed arg.
7374 (proc_encrypted): Print the failed encryption keys and then
7376 (proc_pubkey_enc): Store also the key we are going to use.
7378 * mainproc.c (check_sig_and_print): Don't list revoked user IDs.
7379 (is_uid_revoked): New.
7381 2000-12-08 Werner Koch <wk@gnupg.org>
7383 * pipemode.c: Made the command work. Currently only for
7384 non-armored detached signatures.
7385 * mainproc.c (release_list): Reset the new pipemode vars.
7386 (add_gpg_control): Handle the control packets for pipemode
7387 * status.c, status.h: New stati {BEGIN,END}_STREAM.
7389 2000-12-07 Werner Koch <wk@gnupg.org>
7391 * g10.c: New option --allow-secret-key-import.
7392 * import.c (import_keys,import_keys_stream): Honor this option.
7393 (import): New arg allow_secret and pass that arg down to ...
7394 (import_secret_one): to this and print a warning if secret key
7395 importing is not allowed.
7397 2000-12-05 Werner Koch <wk@gnupg.org>
7399 * cipher.c (cipher_filter): Moved the end_encryption status ...
7400 * encode.c (encode_simple,encode_crypt): to here
7401 * sign.c (sign_file): and here.
7403 * status.c (mywrite): Removed.
7404 (get_status_string): Removed the LFs from the strings.
7405 (set_status_fd,is_status_enabed,write_status_text,
7406 write_status_buffer): Replaced all mywrite by stdio calls and use
7407 fdopen to create a strem. This is needed to make things smoother
7410 2000-12-04 Werner Koch <wk@gnupg.org>
7412 * import.c (merge_blocks): Increment n_sigs for revocations.
7414 2000-11-30 Werner Koch <wk@gnupg.org>
7416 * g10.c (main): Use iobuf_translate_file_handle for all options
7417 with filehandles as arguments. This is function does some magic
7420 * verify.c (verify_signatures): Add a comment rant about the
7421 detached signature problem.
7422 * mainproc.c (proc_tree): Issue an error if a detached signature
7423 is assumed but a standard one was found.
7424 * plaintext.c (hash_datafiles): Don't fall back to read signature
7426 * openfile.c (open_sigfile): Print verbose message only if the
7427 file could be accessed.
7429 2000-11-24 Werner Koch <wk@gnupg.org>
7431 * passphrase.c [HAVE_DOSISH_SYSTEM]: Disabled all the agent stuff.
7433 2000-11-16 Werner Koch <wk@gnupg.org>
7435 * g10.c: New option --use-agent
7436 * passphrase.c (agent_open,agent_close): New.
7437 (agent_get_passphrase,agent_clear_passphrase): New.
7438 (passphrase_clear_cache): New.
7439 (passphrase_to_dek): Use the agent here.
7440 * seckey-cert.c (do_check): Clear cached passphrases.
7442 2000-11-15 Werner Koch <wk@gnupg.org>
7444 * status.c (write_status_text): Moved the big switch to ...
7445 (get_status_string): ... new function.
7446 (write_status_buffer): New.
7448 * status.c (mywrite): New and replaced all write() by this.
7450 * status.c, status.h: Add 3 status lcodes for notaions and policy.
7451 * mainproc.c (print_notation_data): Do status output of notations.
7453 2000-11-13 Werner Koch <wk@gnupg.org>
7455 * sign.c (clearsign_file): Use LF macro to print linefeed.
7457 2000-11-11 Paul Eggert <eggert@twinsun.com>
7459 Clean up the places in the code that incorrectly use "long" or
7460 "unsigned long" for file offsets. The correct type to use is
7461 "off_t". The difference is important on large-file hosts,
7462 where "off_t" is longer than "long".
7464 * keydb.h (struct keyblock_pos_struct.offset):
7465 Use off_t, not ulong, for file offsets.
7466 * packet.h (dbg_search_packet, dbg_copy_some_packets,
7467 search_packet, copy_some_packets): Likewise.
7468 * parse-packet.c (parse, dbg_search_packet, search_packet,
7469 dbg_copy_some_packets, copy_some_packets): Likewise.
7470 * ringedit.c (keyring_search): Likewise.
7472 * parse-packet.c (parse): Do not use %lu to report file
7473 offsets in error diagnostics; it's not portable.
7474 * ringedit.c (keyring_search): Likewise.
7476 2000-11-09 Werner Koch <wk@gnupg.org>
7478 * g10.c (main): New option --enable-special-filenames.
7480 2000-11-07 Werner Koch <wk@gnupg.org>
7482 * g10.c (main): New command --pipemode.
7485 2000-10-23 Werner Koch <wk@gnupg.org>
7487 * armor.c (armor_filter): Changed output of hdrlines, so that a CR
7488 is emitted for DOS systems.
7490 * keygen.c (read_parameter_file): Add a cast for isspace().
7492 * status.c (myread): Use SIGINT instead of SIGHUP for DOS.
7494 2000-10-19 Werner Koch <wk@gnupg.org>
7496 * g10.c: New option --ignore-crc-error
7497 * armor.c (invalid_crc): New.
7498 (radix64_read): Act on new option.
7500 * openfile.c (try_make_homedir): Klaus Singvogel fixed a stupid
7501 error introduced on Sep 6th.
7503 2000-10-18 Werner Koch <wk@gnupg.org>
7505 * misc.c (print_cipher_algo_note): Don't print the note for AES.
7508 2000-10-16 Werner Koch <wk@gnupg.org>
7510 * mainproc.c (do_proc_packets): Hack to fix the problem that
7511 signatures are not detected when there is a MDC packet but no
7514 * g10.c (print_hashline): New.
7515 (print_mds): Use above func with --with-colons.
7517 * mainproc.c (check_sig_and_print): Detect multiple signatures
7518 and don't verify them.
7520 2000-10-14 Werner Koch <wk@gnupg.org>
7522 * mainproc.c (add_onepass_sig): There is an easier solution to the
7523 error fixed yesterday; just check that we only have onepass
7524 packets. However, the other solution provides an cleaner
7525 interface and opens the path to get access to other information
7526 from the armore headers.
7527 (release_list): Reset some more variables.
7529 2000-10-13 Werner Koch <wk@gnupg.org>
7531 * mainproc.c (add_gpg_control): New.
7532 (do_proc_packets): use it.
7533 (proc_plaintext): Changed logic to detect clearsigns.
7534 (proc_tree): Check the cleartext sig with some new code.
7536 * packet.h: New packet PKT_GPG_CONTROL.
7537 * parse-packet.c (parse_gpg_control): New.
7538 * misc.c (get_session_marker): New.
7539 * armor.c (armor_filter): Replaced the faked 1-pass packet by the
7542 * keyedit.c (keyedit_menu): Allow batchmode with a command_fd.
7543 * status.c (my_read): New.
7544 (do_get_from_fd): use it.
7546 2000-10-12 Werner Koch <wk@gnupg.org>
7548 * keygen.c (keygen_add_std_prefs): Add Rijndael to the prefs.
7550 2000-10-07 Werner Koch <wk@gnupg.org>
7552 * gpgv.c: Add more stubs for ununsed code to make the binary smaller.
7554 Wed Oct 4 15:50:18 CEST 2000 Werner Koch <wk@openit.de>
7556 * sign.c (hash_for): New arg to take packet version in account, changed
7560 * Makefile.am: Rearranged source files so that gpgv can be build with
7561 at least files as possible.
7563 Mon Sep 18 12:13:52 CEST 2000 Werner Koch <wk@openit.de>
7565 * hkp.c (not_implemented): Print a notice for W32
7567 Fri Sep 15 18:40:36 CEST 2000 Werner Koch <wk@openit.de>
7569 * keygen.c (keygen_add_std_prefs): Changed order of preferences to
7570 twofish, cast5, blowfish.
7572 * pkclist.c (algo_available): Removed hack to disable Twofish.
7574 Thu Sep 14 17:45:11 CEST 2000 Werner Koch <wk@openit.de>
7576 * parse-packet.c (dump_sig_subpkt): Dump key flags. Print special
7577 warning in case of faked ARRs.
7579 * getkey.c (finsih_lookup): Hack so that for v4 RSA keys the subkey
7580 is used for encryption.
7582 Thu Sep 14 14:20:38 CEST 2000 Werner Koch <wk@openit.de>
7584 * g10.c (main): Default S2K algorithms are now SHA1 and CAST5 - this
7585 should solve a lot of compatibility problems with other OpenPGP
7586 apps because those algorithms are SHOULD and not optional. The old
7587 way to force it was by using the --openpgp option whith the drawback
7588 that this would disable a couple of workarounds for PGP.
7590 * g10.c (main): Don't set --quite along with --no-tty. By Frank Tobin.
7592 * misc.c (disable_core_dump): Don't display a warning here but a return
7593 a status value and ...
7594 * g10.c (main): ...print warnining here. Suggested by Sam Roberts.
7596 Wed Sep 13 18:12:34 CEST 2000 Werner Koch <wk@openit.de>
7598 * keyedit.c (keyedit_menu): Allow to use "debug" on the secret key.
7600 * ringedit.c (cmp_seckey): Fix for v4 RSA keys.
7601 * seckey-cert.c (do_check): Workaround for PGP 7 bug.
7603 Wed Sep 6 17:55:47 CEST 2000 Werner Koch <wk@openit.de>
7605 * misc.c (print_pubkey_algo_note): Do not print the RSA notice.
7606 * sig-check.c (do_signature_check): Do not emit the RSA status message.
7607 * pubkey-enc.c (get_session_key): Ditto.
7609 * encode.c (encode_simple, encode_crypt): Fix for large files.
7610 * sign.c (sign_file): Ditto.
7612 Wed Sep 6 14:59:09 CEST 2000 Werner Koch <wk@openit.de>
7614 * passphrase.c (hash_passphrase): Removed funny assert. Reported by
7617 * openfile.c (try_make_homedir): Changes for non-Posix systems.
7618 * g10.c (main): Take the default homedir from macro.
7620 * g10.c: The --trusted-key option is back.
7621 * trustdb.c (verify_own_key): Handle this option.
7622 (add_ultimate_key): Moved stuff from verify_own_key to this new func.
7623 (register_trusted_key): New.
7625 Fri Aug 25 16:05:38 CEST 2000 Werner Koch <wk@openit.de>
7627 * parse-packet.c (dump_sig_subpkt): Print info about the ARR.
7629 * openfile.c (overwrite_filep): Always return okay if the file is
7631 (make_outfile_name): Add ".sign" to the list of know extensions.
7632 (open_sigfile): Ditto.
7634 Wed Aug 23 19:52:51 CEST 2000 Werner Koch <wk@openit.de>
7636 * g10.c: New option --allow-freeform-uid. By Jeroen C. van Gelderen.
7637 * keygen.c (ask_user_id): Implemented here.
7639 Fri Aug 4 14:23:05 CEST 2000 Werner Koch <wk@openit.de>
7641 * status.c (do_get_from_fd): Ooops, we used fd instead of opt.command_fd.
7642 Thanks to Michael Tokarev.
7644 Tue Aug 1 20:06:23 CEST 2000 Werner Koch <wk@openit.de>
7646 * g10.c: New opttion --try-all-secrets on suggestion from Matthias Urlichs.
7647 * pubkey-enc.c (get_session_key): Quite easy to implement here.
7649 Thu Jul 27 17:33:04 CEST 2000 Werner Koch <wk@openit.de>
7651 * g10.c: New option --merge-only. Suggested by Brendan O'Dea.
7652 * import.c (import_one): Implemented it here
7653 (import_secret_one): Ditto.
7654 (print_stats): and give some stats.
7656 Thu Jul 27 12:01:00 CEST 2000 Werner Koch <wk@openit.de>
7658 * g10.c: New options --show-session-key and --override-session-key
7659 * pubkey-enc.c (hextobyte): New.
7660 (get_override_session_key): New.
7661 * mainproc.c (proc_pubkey_enc): Add session-key stuff.
7662 * status.h, status.c (STATUS_SESSION_KEY): New.
7664 Thu Jul 27 10:02:38 CEST 2000 Werner Koch <wk@openit.de>
7666 * g10.c (main): Use setmode(O_BINARY) for MSDOS while generating random bytes
7667 (print_mds): Likewise for stdin.
7668 * plaintext.c (handle_plaintext): Likewise for stdout.
7670 Mon Jul 24 10:30:17 CEST 2000 Werner Koch <wk@openit.de>
7672 * keyedit.c (menu_expire): expire date for primary key can be set again.
7674 Wed Jul 19 11:26:43 CEST 2000 Werner Koch <wk@openit.de>
7676 * keylist.c (is_uid_valid): New.
7677 (list_keyblock): Print validity information for all user IDs. Note, this
7678 has to be done at other places too; for now we have only minimal support.
7680 Wed Jul 12 13:32:06 CEST 2000 Werner Koch <wk@openit.de>
7682 * helptext.c, pkclist.c: s/superseeded/superseded/
7684 Mon Jul 10 16:08:57 CEST 2000 Werner Koch <wk@openit.de>
7686 * parse-packet.c (enum_sig_subpkt): Fixed testing on crtitical bit in case
7687 of a NULL buffer. Reported by Peter Marschall.
7689 Wed Jul 5 13:28:45 CEST 2000 Werner Koch <wk@openit.de>
7691 * keyedit.c, keyid.c: Add some _()
7693 * argparse.c: Changed the flag to suppress --version handling to also
7696 Wed Jun 28 11:54:44 CEST 2000 Werner Koch <wk@openit.de>
7698 * armor.c (armor_filter): Set sigclass to 0 in case of non-dash-escaped
7699 clearsig. This makes this mode work again.
7701 * mainproc.c (proc_tree): Fixed handling of one-pass-sig packets in textmode.
7702 Disabled the ugly workaround for PGP 5 - let's see whether thi breaks less
7703 cases. Found by Ted Cabeen.
7705 * options.h (DBG_HASHING): New. All commented md_start_debug are now
7706 controlled by this debug option.
7708 * sign.c (print_status_sig_created): New and called from 2 places.
7710 * keygen.c (gen_rsa): New, but commented.
7711 (ask_algo): Commented support for RSA.
7713 * seckey-cert.c (protect_secret_key): Started to fix the code for v4 RSA
7714 keys - it is not solved yet. However, we have time until, Sep 20th ;)
7716 Wed Jun 14 12:27:09 CEST 2000 Werner Koch <wk@openit.de>
7718 * status.c (init_shm_coprocessing): Changed the sequence of the get,attach
7719 to cope with the changes in newer Linux kernels. This bug has been found
7720 by <dmitri@advantrix.com> who also proposed this solution. Hopefully
7721 this does not break gpg on to many systems.
7723 * cipher.c (write_header): Protect the IV with the MDC too.
7724 * encr-data.c (decrypt_data): Likewise.
7726 Fri Jun 9 10:09:52 CEST 2000 Werner Koch <wk@openit.de>
7728 * g10.c: New options --no-auto-key-retrieve
7729 * options.h (auto_key_retrieve): New.
7730 * mainproc.c (check_sig_and_print): Implemented that.
7732 Wed Jun 7 19:19:09 CEST 2000 Werner Koch <wk@openit.de>
7734 * sig-check.c (do_check): Use EMULATE_MDENCODE also on v4 packets.
7736 Wed Jun 7 17:25:38 CEST 2000 Werner Koch <wk@openit.de>
7738 * cipher.c (write_header): Use plain CFB mode for MDC encrypted packets.
7739 * encr-data.c (decrypt_data): Ditto.
7741 Mon Jun 5 23:41:54 CEST 2000 Werner Koch <wk@openit.de>
7743 * seskey.c (do_encode_md, encode_md_value): Add new arg v3compathack to work
7744 around a bug in old versions.
7745 * sig-check.c (do_check): use the aboved workaround when enabled.
7746 * g10.c: New option --emulate-md-decode-bug
7748 Mon Jun 5 12:37:43 CEST 2000 Werner Koch <wk@openit.de>
7750 * build-packet.c (do_mdc): New.
7751 (do_encrypted_mdc): Changed for the new proposal.
7752 * parse-packet.c (parse_mdc): New.
7753 (parse_encrypted): Fixed for the new proposal.
7754 * packet.h (PKT_MDC): New.
7755 * cipher.c (cipher_filter): Build the MDC packet here.
7756 * g10.c (main): Enable --force-mdc.
7757 * encr-data.c (mdc_decode_filter): Fixed for new MDC method
7759 * options.h(rfc2440): New.
7760 * g10.c (main): Changed the selected values for --openpgp to not include
7761 optional algorithms.
7763 Thu May 18 11:38:54 CEST 2000 Werner Koch <wk@openit.de>
7765 * keyedit.c (keyedit_menu): Add a keyword arg to the prompt.
7767 * status.c, status.h: Added 3 new status tokens.
7768 * status.c (do_get_from_fd): New.
7769 (cpr_enabled,cpr_get,cpr_get_hidden,cpr_kill_prompt,
7770 cpr_get_answer_is_yes,cpr_get_answer_yes_no_quit): Modified to work
7771 with the new function.
7772 * g10.c: Add new option --command-fd.
7774 * status.c (progress_cb): New.
7775 (set_status_fd): Register progress functions
7777 Fri May 12 14:01:20 CEST 2000 Werner Koch <wk@openit.de>
7779 * delkey.c (delete_key): Add 2 new status messages
7780 * status.c, status.h (STATUS_DELETE_PROBLEM): New.
7782 Fixed years of copyright in all source files.
7784 Mon May 1 17:08:14 CEST 2000 Werner Koch <wk@openit.de>
7786 * trustdb.c (propagate_validity): Fixed the bug that only one uid
7787 gets fully trusted even when all are signed by an ultimate key.
7789 Mon May 1 15:38:04 CEST 2000 Werner Koch <wk@openit.de>
7791 * getkey.c (key_byname): Always returned a defined context. Fixed
7792 a segv for invalid user id specifications. Reported by Walter Koch.
7794 * getkey.c (get_user_id): I18ned "no user id" string. By Walter.
7796 * pkclist.c (do_show_revocation_reason): Typo fixes.
7797 * helptext.c: Ditto.
7799 * armor.c (armor_filter): Fixed some CRLF issues. By Mike McEwan.
7801 Fri Apr 14 19:37:08 CEST 2000 Werner Koch <wk@openit.de>
7803 * pkclist.c (do_show_revocation_reason): New.
7804 (show_revocation_reason): New and called at various places.
7806 * g10.c (main): Fixed small typo.
7808 * pkclist.c (do_we_trust): Act on always_trust but not for revoked
7809 keys. Suggested by Chip Salzenberg.
7811 * g10.c: New option --lock-never.
7813 * ringedit.c (get_writable_keyblock_file): New.
7814 * keygen.c (do_generate_keypair): Use this instead of the hardwired one.
7816 * keygen.c (ask_user_id): Check that the email address is in the
7817 correct field. Suggested by Christian Kurz.
7819 Mon Apr 10 13:34:19 CEST 2000 Werner Koch <wk@openit.de>
7821 * keyedit.c (show_key_with_all_names): s/sbb/ssb/
7823 Tue Mar 28 14:26:58 CEST 2000 Werner Koch <wk@openit.de>
7825 * trustdb.c (verify_own_keys): Do not print warning about unprotected
7826 key when in quiet mode.
7828 Wed Mar 22 13:50:24 CET 2000 Werner Koch <wk@openit.de>
7830 * mainproc.c (print_userid): Do UTF8 conversion before printing.
7831 * import.c (import_one): Ditto.
7832 (import_secret_one): Ditto.
7833 (delete_inv_parts): Ditto.
7835 Thu Mar 16 16:20:23 CET 2000 Werner Koch <wk@openit.de>
7837 * keylist.c (print_key_data): Handle a NULL pk gracefully.
7839 * getkey.c (merge_one_pk_and_selfsig): Fixed silly code for
7840 getting the primary keys keyID but kept using the one from the
7842 * pubkey-enc.c (get_it): Print a note for expired subkeys.
7844 * getkey.c (has_expired): New.
7845 (subkeys_expiretime): New.
7846 (finish_lookup): Check for expired subkeys needed for encryption.
7847 (merge_keys_and_selfsig): Fixed expiration date merging for subkeys.
7849 * keylist.c (list_keyblock): Print expiration time for "sub".
7850 (list_one): Add missing merging for public keys.
7851 * mainproc.c (list_node): Ditto.
7853 2000-03-14 13:49:38 Werner Koch (wk@habibti.openit.de)
7855 * keygen.c (keyedit_menu): Do not allow to use certain commands
7856 while the secret key is selected.
7858 2000-03-09 12:53:09 Werner Koch (wk@habibti.openit.de)
7860 * keygen.c (ask_expire_interval): Movede parsig to ...
7861 (parse_expire_string): ... this new function. And some new control
7863 (proc_parameter_file): Add expire date parsing.
7864 (do_generate_keypair): Allow the use of specified output files.
7866 2000-03-08 10:38:38 Werner Koch (wk@habibti.openit.de)
7868 * keygen.c (ask_algo): Removed is_v4 return value and the commented
7869 code to create Elg keys in a v3 packet. Removed the rounding
7871 (do_create): Likewise removed arg v4_packet.
7872 (gen_elg): Likewise removed arg version. Now rounding keysizes here.
7873 (gen_dsa): Rounding keysize now here.
7874 (release_parameter_list): New
7875 (get_parameter*): New.
7876 (proc_parameter_file): New.
7877 (read_parameter_file): New.
7878 (generate_keypair): Splitted. Now uses read_parameter_file when in
7879 batch mode. Additional argument to specify a parameter file.
7880 (do_generate_keypair): Main bulk of above fucntion and uses the
7882 (do_create): Don't print long notice in batch mode.
7883 * g10.c (main): Allow batched key generation.
7885 Thu Mar 2 15:37:46 CET 2000 Werner Koch <wk@gnupg.de>
7887 * pubkey-enc.c (get_it): Print a note about unknown cipher algos.
7889 * g10.c (opts): Add a note to the help listing about the man page
7890 and removed some options from the help listing.
7892 * keyedit.c (print_and_check_one_sig): Use a new function to truncate
7893 the output of the user ID. Suggested by Jan-Benedict Glaw.
7895 Wed Feb 23 10:07:57 CET 2000 Werner Koch <wk@gnupg.de>
7897 * helptext.c: typo fix.
7899 Thu Feb 17 13:39:32 CET 2000 Werner Koch <wk@gnupg.de>
7901 * revoke.c: Removed a bunch of commented code.
7903 * packet.h (SIGSUBPKT_REVOC_REASON): New.
7904 * build-packet.c (build_sig_subpkt): Support new sub packet.
7905 * parse-packet.c (parse_one_sig_subpkt): Ditto.
7906 (dump_sig_subpkt): Ditto.
7907 * revoke.c (ask_revocation_reason): New.
7908 (release_revocation_reason_info): New.
7909 (revocation_reason_build_cb): New.
7910 (gen_revoke): Ask for reason.
7911 * main.h (struct revocation_reason_info): Add declaration.
7912 * keyedit.c (menu_revsig): Add support for revocation reason.
7913 (menu_revkey): Ditto.
7914 (sign_uid_mk_attrib): Renamed to ...
7915 (sign_mk_attrib): ... this, made static and add support for reasons.
7917 Tue Feb 15 08:48:13 CET 2000 Werner Koch <wk@gnupg.de>
7919 * build-packet.c (build_packet): Fixed fixing of old comment packets.
7921 * import.c (import_keys): Fixed importing from stdin when called with
7922 nnames set to zero as it normally happens.
7924 Mon Feb 14 14:30:20 CET 2000 Werner Koch <wk@gnupg.de>
7926 * sig-check.c (check_key_signature2): Add new arg r_expired.
7927 (do_signature_check): New arg to pass it down to ...
7928 (do_check): New arg r-expire which is set when the signature
7930 * trustdb.c (check_sig_record): Set SIGF_EXPIRED flag and set
7931 the expiretime to zero so that thi signature will not be checked
7934 Fri Feb 11 17:44:40 CET 2000 Werner Koch <wk@gnupg.de>
7936 * g10.c (g10_exit): Update the random seed_file.
7937 (main): Set the random seed file. New option --no-random-seed-file.
7939 Thu Feb 10 17:39:44 CET 2000 Werner Koch <wk@gnupg.de>
7941 * keyedit.c (menu_expire): Fixed segv due to unitialized sub_pk.
7944 Thu Feb 10 11:39:41 CET 2000 Werner Koch <wk@gnupg.de>
7946 * keylist.c (list_keyblock): Don't print warnings in the middle of
7947 regulat output lines. By Rémi.
7949 * sig-check.c: Include options.h
7951 Wed Feb 9 15:33:44 CET 2000 Werner Koch <wk@gnupg.de>
7953 * gpg.c: New option --ignore-time-conflict
7954 * sig-check.c (do_check): Implemented this option.
7955 * trustdb.c (check_trust): Ditto.
7956 * sign.c (do_sign): Ditto.
7957 * keygen.c (generate_subkeypair): Ditto.
7959 * encode.c (encode_simple): use iobuf_cancel after open failure.
7962 Fri Jan 14 18:32:01 CET 2000 Werner Koch <wk@gnupg.de>
7964 * packet.h (STRING2KEY): Changed mode from byte to int.
7965 * parse-packet.c (parse_key): Add the special GNU protection stuff
7966 * build-packet.c (so_secret_key): Ditto.
7967 * seckey-cert.c (do_check): Ditto.
7968 * keyedit.c (change_passphrase): Ditto.
7969 * export.c (export_secsubkeys): New.
7970 (do_export_stream): Hack to export the primary key using mode 1001.
7971 * g10.c: New command --export-secret-subkeys
7973 Thu Jan 13 19:31:58 CET 2000 Werner Koch <wk@gnupg.de>
7975 * armor.c (is_armored): Check for 1-pass-sig packets. Reported by
7976 David Hallinan <hallinan@rtd.com>.
7977 (armor_filter): Replaced one LF by the LF macro. Reported by
7978 Wolfgang Redtenbacher.
7980 Wed Jan 5 11:51:17 CET 2000 Werner Koch <wk@gnupg.de>
7982 * g10.c (main): Reset new global flag opt.pgp2_workarounds
7983 when --openpgp is used.
7984 * mainproc.c (proc_plaintext): Do the PGP2,5 workarounds only
7985 when the global flag is set.
7987 * textfilter.c (copy_clearsig_text): Ditto.
7988 * armor.c (armor_filter): Ditto.
7990 * g10.c: New option --list-only
7991 * mainproc.c (proc_tree): Don't do it if opt.list_only is active.
7992 (proc_pubkey_enc): Implement option.
7994 * status.h, status.c ({BEGIN,END}_{EN,DE}CRYPTION): New.
7995 * cipher.c (cipher_filter): New status outputs.
7996 * mainproc.c (proc_encrypted): New status outputs.
7998 Fri Dec 31 14:08:15 CET 1999 Werner Koch <wk@gnupg.de>
8000 * armor.c (armor_filter): Made the "Comment:" header translatable.
8002 * hkp.c (hkp_import): Make sure that the program does not return
8003 success when there is a connection problem. Reported by Phillip Jones.
8005 Sun Dec 19 15:22:26 CET 1999 Werner Koch <wk@gnupg.de>
8007 * armor.c (LF): Use this new macro at all places where a line LF
8008 is needed. This way DOSish textfiles should be created when the
8009 input data is also in dos mode.
8010 * sign.c (LF): Ditto.
8011 * textfilter.c (LF): Ditto.
8012 (copy_clearsig_text): Disabled the forcing of CR,LF sequences
8015 * plaintext.c (handle_plaintext): Fixes for line endings on DOS.
8016 and react on a LF in cleartext.
8017 * armor.c (fake_packet): Restore the original line ending after
8018 removing trailing spaces.
8020 * signal.c (got_fatal_signal): DOS fix.
8022 Thu Dec 16 10:07:58 CET 1999 Werner Koch <wk@gnupg.de>
8024 * mainproc.c (print_failed_pkenc): Fix for unknown algorithm.
8025 Found by fygrave@epr0.org.
8027 Thu Dec 9 10:31:05 CET 1999 Werner Koch <wk@gnupg.de>
8029 * hkp.c: i18n the strings.
8031 Sat Dec 4 15:32:20 CET 1999 Werner Koch <wk@gnupg.de>
8033 * trustdb.c (verify_key): Shortcut for ultimately trusted keys.
8035 Sat Dec 4 12:30:28 CET 1999 Werner Koch <wk@gnupg.de>
8037 * pkclist.c (build_pk_list): Validate the trust using the namehash
8038 if this one has been set by the key lookup.
8040 * g10.c: Add --delete-secret-key to the help page.
8042 * openfile.c (copy_options_file): Made static.
8043 (try_make_homedir): New.
8044 * ringedit.c (add_keyblock_resource): Use the try_make_hoemdir logic.
8045 * tdbio.c (tdbio_set_dbname): Likewise.
8047 * keygen.c (generate_user_id): Use m_alloc_clear() here. We should
8048 better use an allocation function specific to the user_id packet.
8050 * keygen.c (keygen_add_std_prefs): Changed symmetric preferences
8051 to include Blowfish again. This is due to it's better speed compared
8054 * g10.c (strusage): Print the home directory.
8056 * armor.c (armor_filter): Take action on the cancel control msg.
8057 * filter.h (armor_filter_context_t): Add cancel flag.
8059 Mon Nov 29 21:52:11 CET 1999 Werner Koch <wk@gnupg.de>
8061 * g10.c: New option --fast-list-mode ..
8062 * keylist.c (list_keyblock): .. and implemented.
8063 * mainproc.c (list_node): Ditto.
8065 * import.c (mark_non_selfsigned_uids_valid): Fixed the case that there
8066 is a uid without any packet following.
8068 Mon Nov 22 11:14:53 CET 1999 Werner Koch <wk@gnupg.de>
8070 * mainproc.c (proc_plaintext): Never enable the hash processing
8071 when skip_verify is active.
8073 * armor.c (parse_header_line): Stop parsing on a WS line too.
8074 Suggested by Aric Cyr.
8076 * tdbdump.c (HEXTOBIN): Changed the name of the argument, so that
8077 traditional cpp don't mess up the macros. Suggested by Jos Backus.
8079 * mainproc.c (list_node): Print the PK algo in the --with-colon mode.
8080 * keylist.c (list_keyblock): Ditto.
8082 * signal.c (got_fatal_signal): Found the reason why exit(8) did not
8083 work - it is better to set the disposition back to default before
8084 raising the signal. Print the notice on stderr always.
8086 Fri Nov 12 20:33:19 CET 1999 Werner Koch <wk@gnupg.de>
8088 * g10.c (make_username): Swapped the logic.
8089 * keylist.c (public_key_list): Now takes a STRLIST as arg and moved
8090 the creation ot this list to the caller, so that he can copy with
8091 UTF-conversion of user IDs. Changed all callers.
8092 (secret_key_list): Likewise.
8094 * getkey.c (get_user_id_string_native): New and ...
8095 * encode.c (write_pubkey_enc_from_list): ... use it here.
8097 * pubring.asc: Updated.
8099 * packet.h (PKT_PHOTO_ID): New.
8100 * parse-packet.c (parse_photo_id): New.
8101 * build-packet.c (do_user_id: Handle photo IDs.
8102 (build_packet): Change CTB for photo IDs
8103 * free-packet.c (free_user_id): Release memory used for photo IDs
8104 * sig-check.c (hash_uid_node): Handle photo IDs too.
8105 * trustdb.c (print_uid_from_keyblock): Hash photo ID.
8106 (make_uid_records): Ditto.
8107 * getkey.c (find_by_name): Ditto.
8108 * keyedit.c (show_prefs): Ditto.
8109 * keylist.c (list_keyblock): Ditto.
8111 Thu Oct 28 16:08:20 CEST 1999 Werner Koch <wk@gnupg.de>
8113 * keygen.c (ask_expire_interval): Print a warning for systems
8114 with a signed 32 time_t if the exiration time is beyoind 2038.
8116 Fri Oct 8 20:40:50 CEST 1999 Werner Koch <wk@gnupg.de>
8118 * ringedit.c (enum_keyblocks): The last fix way really stupid;
8119 reverted and set rt to Unknown.
8121 Fri Oct 8 20:32:01 CEST 1999 Werner Koch <wk@gnupg.de>
8123 * ringedit.c (enum_keyblocks): Zero the entire kbpos out on open.
8125 * g10.c (oEntropyDLL): Removed option.
8126 (main): Made the warning on development versions more verbose.
8128 * g10.c (oHonorHttpProxy): New option.
8129 * hkp.c (hkp_ask_import,hkp_export): Implement this option.
8130 * options.skel: Enable this option for new installations
8132 Mon Oct 4 21:23:04 CEST 1999 Werner Koch <wk@gnupg.de>
8134 * import.c (import_keys): Changed calling interface, adjusted caller.
8135 (import): Moved printing of stats out ...
8136 (print_stats): New. ... to here.
8137 (import_keys_stream): Call stats print here.
8138 (import_keys): Print stats as totals for all files.
8140 * tdbio.h (DIRF_NEWKEYS): New
8141 * tdbio.c (tdbio_dump_record): Print the new flag.
8142 * trustdb.c (check_trust_record): New arg sigs_only. Adapted all
8144 (do_update_trust_record): Removed recheck arg and add a new sigs_only
8145 do we can later improve on the performance. Changed all callers too.
8146 (check_trustdb): Evalutate the new flag and add a status output.
8147 Do a check when the dir record has not been checked.
8148 (build_cert_tree): Evaluate the new flag.
8149 (check_trust): Ditto. Do a trust_record check, when the dir record
8150 is not marked as checked.
8151 (mark_fresh_keys): New.
8152 (clear_lid_table): New.
8153 (sync_trustdb): New.
8154 * import.c (import_keys): Call sync_trustdb() after processing.
8155 (import_keys_stream): Ditto.
8156 * tdbdump.c (import_ownertrust): Ditto.
8158 * import.c (import_revoke_cert): Notify the trust DB.
8159 (do_update_trust_record): Use |= to set the REVOKED bit and not &=;
8160 shame on me for this bad copy+paste introduced bug.
8161 (do_we_trust): Add trustmask to allow revoked key override to work.
8162 Chnaged are to allow return of a mofified trustlevel. Adapted the
8165 * g10.c: New options --emulate-3des-s2k-bug
8166 * passphrase.c (hash_passphrase): Implemented above.
8168 * mainproc.c (proc_tree): Check for standalone signatures.
8169 (do_check_sig): Print a notice for a standalone revocation
8170 (check_sig_and_print): Do not print an error for unchecked standalone
8173 Tue Sep 28 20:54:37 CEST 1999 Werner Koch <wk@gnupg.de>
8175 * encode.c (encode_simple): Use new CTB when we don't have the
8176 length of the file. This is somewhat strange as the comment above
8177 indicates that this part is actually fixed for PGP 5 - maybe I simply
8178 lost the source line, tsss.
8180 * armor.c (armor_filter): Set a flag if no OpenPGP data has been found.
8181 * verify.c (verify_signatures): Add an error helptext.
8183 Thu Sep 23 19:24:30 CEST 1999 Werner Koch <wk@isil.d.shuttle.de>
8185 * openfile.c (open_outfile): Fixed the 8dot3 handling.
8187 * passphrase.c (passphrase_to_dek): Print uid using utf8 func.
8188 * delkey.c (delete_key): Ditto.
8189 * pkclist.c (show_paths,do_edit_ownertrust,do_we_trust): Ditto
8190 (do_we_trust_pre): Ditto.
8191 * trustdb.c (print_user_id,check_uidsigs): Ditto.
8192 * revoke.c (gen_revoke,ask_revoke_sig): Ditto.
8194 Thu Sep 23 09:52:58 CEST 1999 Werner Koch <wk@isil.d.shuttle.de>
8196 * verify.c (print_file_status): New.
8197 (verify_one_file): Moved status print to th new fnc. Add error status.
8198 * status.c, status.h (STATUS_FILE_ERROR): New
8200 Wed Sep 22 10:14:17 CEST 1999 Werner Koch <wk@isil.d.shuttle.de>
8202 * openfile.c (make_outfile_name): Use case-insenstive compare for
8203 DOS systems. Add ".pgp" to the list of know extensions.
8204 (open_outfile): For DOS systems try to replace the suffiy instead of
8207 * status.c, status.h: Add STATUS_FILE_{START,DONE}.
8208 * verify.c (verify_one_file): Emit these new stati.
8210 * sign.c (clearsign_file): Avoid duplicated Entries in the "Hash:"
8211 line. Those headers are now only _not_ printed when there are
8212 only old-style keys _and_ all hashs are MD5.
8214 Mon Sep 20 12:24:41 CEST 1999 Werner Koch <wk@isil.d.shuttle.de>
8217 * verify.c (verify_files, ferify_one_file): New.
8218 * g10.c: New command --verify-files
8220 Fri Sep 17 12:56:42 CEST 1999 Werner Koch <wk@isil.d.shuttle.de>
8222 * g10.c: Add UK spelling as alias for armor options ;-)
8224 * import.c (append_uid): Fixed a SEGV when there is no selfsig and
8226 (merge_sigs): Ditto. Removed the assertion.
8228 Wed Sep 15 16:22:17 CEST 1999 Werner Koch <wk@isil.d.shuttle.de>
8230 * g10.c: New option --entropy-dll-name
8232 Mon Sep 13 10:51:29 CEST 1999 Werner Koch <wk@isil.d.shuttle.de>
8234 * signal.c (got_fatal_signal): Print message using write(2) and
8235 only for development versions.
8237 Mon Sep 6 19:59:08 CEST 1999 Werner Koch <wk@isil.d.shuttle.de>
8239 * tdbio.c (tdbio_set_dbname): Use mkdir macro
8240 * ringedit.c (add_keyblock_resource): Ditto.
8242 Fri Sep 3 10:04:45 CEST 1999 Werner Koch <wk@isil.d.shuttle.de>
8244 * pkclist.c (build_pk_list): Skip keys set with --encrypt-to also
8245 when asking for a key.
8247 * plaintext.c (handle_plaintext): Make sure that we don't read a
8248 second EOF in the read loop for partial length packets.
8250 * mainproc.c (check_sig_and_print): print user ID as utf-8.
8252 Thu Sep 2 16:40:55 CEST 1999 Werner Koch <wk@isil.d.shuttle.de>
8254 * import.c (merge_blocks): First add new subkeys, then merge subkey
8256 (merge_sigs): Don't merge subkey signatures here.
8258 Wed Sep 1 15:30:44 CEST 1999 Werner Koch <wk@isil.d.shuttle.de>
8260 * keygen.c (ask_expire_interval): Fixed bug related to cpr_xx (tnx
8261 Francis J. Lacoste).
8263 Tue Aug 31 17:20:44 CEST 1999 Werner Koch <wk@isil.d.shuttle.de>
8265 * plaintext.c (do_hash): Hash CR,LF for a single CR.
8266 (ask_for_detached_datafile): Changed arguments to be closer to
8267 those of hash_datafiles and cleanup the code a bit.
8268 * mainproc.c (proc_tree): Workaround for pgp5 textmode detached
8269 signatures. Changed behavior of asking for data file to be the same
8270 as with provided data files.
8272 * keylist.c (list_keyblock): Use UTF8 print functions.
8274 Mon Aug 30 20:38:33 CEST 1999 Werner Koch <wk@isil.d.shuttle.de>
8276 * import.c (chk_self_sigs): some s/log_error/log_info/ so that gpg
8277 does not return an error if a key has some invalid packets.
8279 * helptext.c: Fixed some typos and changed the way the
8280 translation works. The english text is now the keyword for gettext
8281 and not anymore the keyword supplied to the function. Done after
8282 some discussion with Walter who thinks this is much easier for the
8285 * misc.c (disable_core_dumps): Don't do it for DOSish systems.
8287 * signal.c (signal_name): Bounds check on signum.
8289 Wed Aug 4 10:34:18 CEST 1999 Werner Koch <wk@isil.d.shuttle.de>
8291 * pubring.asc: Updated.
8293 * pkclist.c (do_we_trust_pre,check_signatures_trust): Do not print
8294 the warning about --always_trust when --quiet is used.
8296 * pkclist.c (fpr_info): New and called at several places.
8298 * parse-packet.c (dump_sig_subpkt): List revocation key contents.
8300 Mon Jul 26 09:34:46 CEST 1999 Werner Koch <wk@isil.d.shuttle.de>
8302 * pkclist.c (build_pk_list): Fixed typo in format string.
8304 * trustdb.c (create_shadow_dir): Don't translate the error string.
8306 * g10.c (main): Fixed spelling of user-id.
8307 * getkey.c (find_by_name_pk,find_by_name_sk,
8308 find_by_keyid,find_by_keyid_sk): Ditto and translate it.
8309 * import.c (mark_non_selfsigned_uids_valid,delete_inv_parts): Ditto.
8312 Mon Jul 26 01:01:39 CEST 1999 Michael Roth <mroth@nessie.de>
8314 * g10.c, options.h: New options --no-literal and --set-filesize
8316 * encode.c (encode_simple, encode_crypt): Support for the options
8317 --no-literal and --set-filesize.
8319 * sign.c (sign_file): ditto.
8321 Fri Jul 23 13:53:03 CEST 1999 Werner Koch <wk@isil.d.shuttle.de>
8324 * ringedit.c (enum_keyblocks): Removed annoying error message in cases
8325 when we have no keyring at all to enum.
8327 * getkey.c (classify_user_id): Rewrote to relax the recognition of
8328 keyIDs and fingerprints (Michael).
8330 * mainproc.c (check_sig_and_print): Print status NO_PUBKEY.
8331 (print_failed_pkenc): Print status NO_SECKEY.
8333 * import.c (mark_non_selfsigned_uids_valid): New.
8334 * g10.c: New option --allow-non-selfsigned-uid.
8336 * pkclist.c (print_fpr): New.
8337 (do_we_trust_pre): Print the fpr before asking whether to use the key
8339 (do_edit_ownertrust): Likewise.
8341 Thu Jul 22 20:03:03 CEST 1999 Werner Koch <wk@isil.d.shuttle.de>
8344 * ringedit.c (enum_keyblocks): Removed annoying error message in cases
8345 when we have no keyring at all to enum.
8347 * getkey.c (classify_user_id): Rewrote to relax the recognition of
8348 keyIDs and fingerprints (Michael).
8350 * mainproc.c (check_sig_and_print): Print status NO_PUBKEY.
8351 (print_failed_pkenc): Print status NO_SECKEY.
8353 * import.c (mark_non_selfsigned_uids_valid): New.
8354 * g10.c: New option --allow-non-selfsigned-uid.
8356 Thu Jul 15 10:15:35 CEST 1999 Werner Koch <wk@isil.d.shuttle.de>
8358 * g10.c: New options --disable-{cipher,pubkey}-algo.
8360 Wed Jul 14 19:42:08 CEST 1999 Werner Koch <wk@isil.d.shuttle.de>
8362 * status.h (STATUS_IMPORTED): New.
8363 * import.c (import): Print some status information (Holger Schurig).
8365 * g10.c (main): Make --no-greeting work again. Add a warning when
8366 --force-mds is used.
8368 Tue Jul 13 17:39:25 CEST 1999 Werner Koch <wk@isil.d.shuttle.de>
8370 * pkclist.c (do_edit_ownertrust): Changed the way help works.
8371 (build_pk_list): Implemented default recipient stuff.
8372 * g10.c: New options --default-recipient[-self]
8373 (main): Suppress greeting in most cases, entering a passphrase or
8374 a missing value is not considered to be interactive use.
8375 Merged --print-md and --print-mds; the latter is now obsolete.
8376 Changed the way --gen-random works and documented it.
8377 Changed the way --gen-prime works and add a man entry.
8378 * g10.c (MAINTAINER_OPTIONS): Removed.
8380 Mon Jul 12 18:45:57 CEST 1999 Werner Koch <wk@isil.d.shuttle.de>
8382 * keyedit.c (keyedit_menu): Add arg sign_mode and changed callers
8383 * g10.c (main): New command --lsign-key.
8385 Mon Jul 12 14:55:34 CEST 1999 Werner Koch <wk@isil.d.shuttle.de>
8387 * mainproc.c (kidlist_item): New.
8388 (release_list): Release failed pk-enc-list.
8389 (print_failed_pkenc): New
8390 (proc_encrypted): Print info about failed PK enc.
8392 * openfile.c (make_outfile_name): s/error/info/
8394 * passphrase.c (passphrase_to_dek): Return an empty passphrase when
8395 in batch mode and don't make the warning message fatal
8396 * seckey-cert.c (check_secret_key): Try only once when in batch mode.
8398 * g10.c (make_username): New.
8400 Thu Jul 8 16:21:27 CEST 1999 Werner Koch <wk@isil.d.shuttle.de>
8403 * packet.h (PKT_ring_trust): New
8404 * parse-packet.c (parse_trust): Store trust value
8405 * build-packet (build_packet): Ignore ring trust packets.
8406 * mainproc.c (add_ring_trust): New.
8407 (list_node): Print "rtv" records.
8408 * g10.c: New option --with-fingerprint.
8410 * trustdb.c (verify_own_keys): Don't insert if we are dry running
8411 (check_trust): Ditto.
8413 Wed Jul 7 13:08:40 CEST 1999 Werner Koch <wk@isil.d.shuttle.de>
8415 * Makefile.am: Support for libtool.
8417 * keygen.c (ask_expire_interval): Hack to allow for an expire date.
8419 * trustdb.c (do_update_trust_record,update_trust_record): Splitted.
8420 (check_trust_record): New.
8421 (check_trust,build_cert_tree): Check the dir record as needed.
8422 (upd_pref_record): Removed.
8423 (make_pref_record): New.
8424 (propagate_validity): Stop as soon as we have enough validity.
8426 * tbdio.c (MAX_CACHE_ENTRIES_HARD): Increased the limit.
8429 Fri Jul 2 11:45:54 CEST 1999 Werner Koch <wk@isil.d.shuttle.de>
8431 * g10.c (g10_exit): Dump random stats.
8433 * sig-check.c (check_key_signature,check_key_signature2): Enhanced
8434 version and wrapper for old function.
8435 (do_signature_check,signature_check): Ditto.
8437 Thu Jul 1 12:47:31 CEST 1999 Werner Koch <wk@isil.d.shuttle.de>
8440 * keyedit.c (show_key_with_all_names): Print a notice for disabled keys.
8441 (enable_disable_keys): Add functionality
8442 * pkclist.c (edit_ownertrust): preserve disabled state.
8443 (build_pk_list): Skip disabled keys.
8444 * trustdb.c (upd_one_ownertrust): Ditto.
8445 (build_cert_tree): Mask the ownertrust.
8446 (trust_letter): Mask the value.
8447 (do_check): Take disabled flag into account.
8449 * passphrase.c (passphrase_to_dek): Add a pubkey_algo arg and changed
8452 * g10.c (utf8_strings): 2 new options.
8454 * trustdb.c (insert_trust_record_by_pk): New, replaces the next one.
8455 (insert_trust_record): Now takes a keyblock as arg. Changed all
8456 callers to use the appropritae function.
8458 * openfile.c (ask_outfile_name): New.
8459 * plaintext.c (handle_plaintext): Ask for filename if there is
8460 no valid syntax. Don't use fname varbatim but filter it.
8462 Tue Jun 29 21:44:25 CEST 1999 Werner Koch <wk@isil.d.shuttle.de>
8465 * trustdb.h (TRUST_FLAG_DISABLED): New.
8467 * status.c (USE_CAPABILITIES): Capabilities support (Remi).
8469 * tdbio.c : Added new fields to the DIR record.
8470 (tdbio_write_record): Fixed the update of the hash tables.
8471 (tdbio_delete_record): Drop the record from the hash tables.
8472 (drop_from_hashtbl): New.
8474 * status.c (cpr_get): Special online help mode.
8475 * helptext.c ("keyedit.cmd"): Removed.
8476 * keyedit.c (keyedit_menu): Use only help system.
8477 (enable_disable_key): New bit doies not yet work.
8479 Sat Jun 26 12:15:59 CEST 1999 Werner Koch <wk@isil.d.shuttle.de>
8482 * dearmor.c (enarmor_file): Fixed comment string.
8483 * tdbdump.c (export_ownertrust): Text fix.
8484 * tbio.c (tdbio_invalid): Ditto.
8486 * parse-packet.c (parse_key): Made temp buffer larger.
8488 * Makefile.am (install-data-local): Add missing backslashes
8490 Tue Jun 15 12:21:08 CEST 1999 Werner Koch <wk@isil.d.shuttle.de>
8492 * g10.c (main): Made iterated+salted the default S2K method.
8494 * Makefile.am (install-data-local): Use DESTDIR.
8496 * passphrase.c (passphrase_to_dek): Emit missing-passphrase while in
8499 * parse-packet.c (parse_pubkeyenc): Fixed a SEGV.
8501 Mon Jun 14 21:18:54 CEST 1999 Michael Roth <mroth@nessie.de>
8503 * g10.c: New options --openpgp, --no-tty, --emit-version,
8504 --default-comment and --lock-multiple
8506 Thu Jun 10 14:18:23 CEST 1999 Werner Koch <wk@isil.d.shuttle.de>
8508 * free-packet.c (free_encrypted): Fixed EOF case (Remi).
8509 (free_plaintext): Ditto.
8511 * helptext.c (keyedit.delsig.unknown): New (Remi).
8512 * keyedit.c (print_and_check_one_sig): Add arg print_without_key and
8513 changed all callers to make use of it (Remi):
8515 Tue Jun 8 13:36:25 CEST 1999 Werner Koch <wk@isil.d.shuttle.de>
8517 * keylist.c (print_key_data): New and called elsewhere.
8518 * g10.c: New option --with-key-data
8520 Wed Jun 2 14:17:19 CEST 1999 Werner Koch <wk@isil.d.shuttle.de>
8522 * mainproc.c (proc_tree): Yet another bad hack to cope with
8523 broken pgp2 created detached messages in textmode.
8525 Tue Jun 1 16:01:46 CEST 1999 Werner Koch <wk@isil.d.shuttle.de>
8527 * openfile.c (make_outfile_name): New.
8528 * plaintext.c (handle_plaintext): Outputfile is now the inputfile
8530 * g10.c: New option --use-embedded-filename
8532 Mon May 31 19:41:10 CEST 1999 Werner Koch <wk@isil.d.shuttle.de>
8534 * g10.c (main): Fix for SHM init (Michael).
8536 * compress.c, encr-data.c, mdfilter.c,
8537 plaintext.c, free-packet.c: Speed patches (Rémi).
8539 Thu May 27 09:40:55 CEST 1999 Werner Koch <wk@isil.d.shuttle.de>
8541 * status.c (cpr_get_answer_yes_no_quit): New.
8542 * keyedit.c (menu_delsig): New.
8543 (check_all_keysigs): Splitted.
8544 (print_and_check_one_sig): New.
8546 Wed May 26 14:36:29 CEST 1999 Werner Koch <wk@isil.d.shuttle.de>
8548 * build-packet.c (build_sig_subpkt): Support large packets.
8549 * parse-packet.c (enum_sig_subpkt): Replaces parse_sig_subpkt.
8550 * mainproc.c (print_notation_data): Print all notation packets.
8551 * g10.c (add_notation_data): Add a way to specify the critical flag.
8552 (main): Add option --set-policy-url.
8553 (check_policy_url): Basic checks.
8554 * sign.c (mk_notation_and_policy): Replaces mk_notation.
8556 * parse-packet.c (can_handle_critical): Moved decision whether we can
8557 handle critical subpacket to an extra function.
8559 Tue May 25 19:50:32 CEST 1999 Werner Koch <wk@isil.d.shuttle.de>
8561 * sign.c (sign_file): Always use compression algo 1 for signed
8562 onyl file becuase we can´ be sure the the verifier supports other
8565 * build-packet.c (build_sig_subpkt): Support for notation data.
8566 * sign.c (sign_file,clearsign_file,make_keysig_packet): Ditto.
8568 * g10.c (add_notation_data): New and add option -N
8569 * mainproc.c (print_notation_data): New.
8570 (check_sig_and_print): Print any notation data of the signed text.
8572 Sun May 23 14:20:22 CEST 1999 Werner Koch <wk@isil.d.shuttle.de>
8574 * pkclist.c (check_signatures_trust): Print a warning and return
8575 immediateley if opt.always_trust is true.
8577 * g10.c (main): Corrected handling of no-default-keyring
8579 * pkclist.c (algo_available): Disable Twofish until we have settled
8582 * hkp.c: Disable everything for mingw32
8584 Sat May 22 22:47:26 CEST 1999 Werner Koch <wk@isil.d.shuttle.de>
8586 * mainproc.c (check_sig_and_print): Add sig creation time to the
8587 VALIDSIG status output. Add more info to the ERRSIG output.
8588 * sig-check.c (signature_check): Add sig time after epoch to SIG_ID.
8590 * import.c (import_one): Merge duplicate user IDs.
8591 (collapse_uids): New.
8592 * kbnode.c (move_kbnode): New.
8593 (remove_kbnode): New.
8594 * keyedit.c (keyedit_menu): Call collapse_uids.
8596 * g10.c: new option --logger-fd.
8598 * import.c: s/log_*_f/log_*/
8600 Thu May 20 14:04:08 CEST 1999 Werner Koch <wk@isil.d.shuttle.de>
8602 * misc.c (pull_in_libs): do the volatile only for gcc
8604 * sig-check (signature_check): Emit SIG_iD only for classes 0 and 1.
8606 * armor.c (armor_filter): Add detection of PGP2 created clearsigs.
8607 (fake_packet): A tab is not a WS for pgp2 - handle this.
8608 * textfilter.c (len_without_trailing_chars): New.
8609 (copy_clearsig_text): Add pgp2mode arg.
8610 * sign.c (clearsign_file): pass old_style to the above fnc.
8613 Wed May 19 16:04:30 CEST 1999 Werner Koch <wk@isil.d.shuttle.de>
8615 * g10.c: New option --interactive.
8617 * mainproc.c (proc_plaintext): Add workaround for pgp2 bug
8618 (do_check_sig): Ditto.
8620 * plaintext.c (do_hash): Ditto.
8621 (hash_datafiles): Ditto, add an arg, changed all callers.
8622 * mdfilter.c (md_filter): Add support for the alternate hash context.
8624 Mon May 17 21:54:43 CEST 1999 Werner Koch <wk@isil.d.shuttle.de>
8626 * parse-packet.c (parse_encrypted): Support for PKT_ENCRYPTED_MDC.
8627 * build-packet.c (do_encrypted_mdc): Ditto.
8628 * cipher.c (write_header): Add mdc hashing.
8629 (cipher_filter): write out the hash.
8630 * mainproc.c (do_proc_packets): Add PKT_ENCRYPTED_MDC.
8631 * encr-data.c (decrypt_data): Add mdc hashing.
8632 (mdc_decode_filter): New.
8634 * parse-packet.c (parse_sig_subpkt): Fixed stupid bug for subpkt
8636 (parse_signature): Fixed even more stupid bug.
8638 Sat May 8 19:28:08 CEST 1999 Werner Koch <wk@isil.d.shuttle.de>
8640 * build-packet.c (do_signature): Removed MDC hack.
8641 * encode.c (encode_crypt_mdc): Removed.
8642 * mainproc.c (do_check_sig): Removed MDC hack.
8643 (check_sig_and_print): Ditto.
8644 * parse-packet.c (parse_signature): Ditto.
8645 * sig-check.c (mdc_kludge_check): Ditto.
8646 * free-packte.c (copy_signature, free_seckey_enc): Ditto.
8648 * parse-packet.c (parse_signature,parse_key): Store data of
8649 unknown algorithms with mpi_set_opaque inseatd of the old
8651 (read_rest): Removed.
8652 (read_rest2): Renamed to read_rest
8653 * build-packet.c (write_fake_data): Use mpi_get_opaque.
8654 * free-packet.c (cp_fake_data): Removed and cahnged all callers
8656 (free_pubkey_enc,free_seckey_enc,release_public_key_parts,
8657 release_secret_key_parts): Use mpi_free for opaque data.
8659 Thu May 6 14:18:17 CEST 1999 Werner Koch <wk@isil.d.shuttle.de>
8661 * trustdb.c (check_trust): Check for revoked subkeys.
8662 * pkclist.c (do_we_trust): Handled revoked subkeys.
8663 (do_we_trust_pre): Ditto.
8664 (check_signatures_trust): Ditto.
8666 * build-packet.c (hash_public_key): Fix for ancient g10 keys.
8668 * mainproc.c (do_proc_packets): Return EOF if no data has been read.
8669 * g10.c (main): Catch errors for default operation.
8671 Thu Apr 29 12:29:22 CEST 1999 Werner Koch <wk@isil.d.shuttle.de>
8673 * sign.c (sign_file): Fixed hashing in case of no subpackets.
8674 (clearsign_file): Ditto.
8675 (make_keysig_packet): Ditto.
8677 Wed Apr 28 13:03:03 CEST 1999 Werner Koch <wk@isil.d.shuttle.de>
8679 * keyedit.c (keyedit_menu): Add new command revkey.
8680 * (menu_revkey): New.
8683 Mon Apr 26 17:48:15 CEST 1999 Werner Koch <wk@isil.d.shuttle.de>
8685 * parse-packet.c (parse_signature): Add the MDC hack.
8686 * build-packet.c (do_signature): Ditto.
8687 * free-packet.c (free_seckey_enc,copy_signature,cmp_signatures): Ditto.
8688 * mainproc.c (do_check_sig): Ditto.
8689 * sig-check.c (mdc_kludge_check): New.
8690 * encode.c (encrypt_mdc_file): New.
8692 * keyedit.c (check_all_keysigs): List revocations.
8693 * (menu_revsig): New.
8694 * sign (make_keysig_packet): Support for class 0x30.
8696 Sun Apr 18 20:48:15 CEST 1999 Werner Koch <wk@isil.d.shuttle.de>
8698 * pkclist.c (select_algo_from_prefs): Fixed the case that one key
8699 has no preferences (Remi Guyomarch).
8701 keylist.c (list_keyblock): ulti_hack to propagate trust to all uids.
8703 Sun Apr 18 10:11:28 CEST 1999 Werner Koch <wk@isil.d.shuttle.de>
8705 * seckey-cert.c (do_check): Use real IV instead of a 0 one, so that
8706 it works even if the length of the IV doesn't match the blocksize.
8707 Removed the save_iv stuff.
8708 (protect_secret_key): Likewise. Create the IV here.
8709 * packet.h (PKT_secret_key): Increased size of IV field and add a
8711 * parse-packet.c (parse_key): Use the len protect.ivlen.
8712 * build-packet.c (do_secret_key). Ditto.
8714 * getkey.c (key_byname): Close keyblocks.
8716 * Makefile.am (gpgm): Removed this
8717 * g10.c: Merged gpg and gpgm
8719 * import.c (import): Utilize option quiet.
8720 * tdbio.c (tdbio_set_dbname): Ditto.
8721 * ringedit.c (add_keyblock_resource,keyring_copy): Ditto.
8723 * keyedit.c (sign_uids): Add some batch support.
8725 * g10.c (main): add call to tty_batchmode.
8727 Fri Apr 9 12:26:25 CEST 1999 Werner Koch <wk@isil.d.shuttle.de>
8729 * status.c (write_status_text): Some more status codes.
8730 * passphrase_to_dek (passphrase_to_dek): add a status code.
8731 * seckey_cert.c (check_secret_key): Likewise.
8733 * encr-data.c (decrypt_data): Reverse the last changes
8734 * cipher.c (write_header): Ditto.
8736 * parse-packet.c (parse_key): Dropped kludge for ancient blowfish mode.
8738 Thu Apr 8 09:35:53 CEST 1999 Werner Koch <wk@isil.d.shuttle.de>
8740 * mainproc.c (proc_encrypted): Add a new status output
8741 * passphrase.c (passphrase_to_dek): Ditto.
8742 * status.h status.c: Add new status tokens.
8744 Wed Apr 7 20:51:39 CEST 1999 Werner Koch <wk@isil.d.shuttle.de>
8746 * encr-data.c (decrypt_data): Fixes for 128 bit blocksize
8747 * cipher.c (write_header): Ditto.
8748 * seckey-cert.c (do_check): Ditto.
8749 (protect_secret_key). Ditto.
8750 * misc.c (print_cipher_algo_note): Twofish is now a standard algo.
8752 * keygen.c (do_create): Fixed spelling (Gaël Quéri)
8753 (ask_keysize): Only allow keysizes up to 4096
8755 * ringedit.c (add_keyblock_resource): chmod newly created secrings.
8757 * import.c (delete_inv_parts): Fixed accidently deleted subkeys.
8759 Tue Apr 6 19:58:12 CEST 1999 Werner Koch <wk@isil.d.shuttle.de>
8761 * armor.c: Removed duped include (John Bley)
8762 * mainproc.c: Ditto.
8764 * build-packet.c (hash_public_key): Fixed hashing of the header.
8766 * import.c (delete_inv_parts): Allow import of own non-exportable sigs.
8768 Sat Mar 20 13:59:47 CET 1999 Werner Koch <wk@isil.d.shuttle.de>
8770 * armor.c (fake_packet): Fix for not not-dash-escaped
8772 Sat Mar 20 11:44:21 CET 1999 Werner Koch <wk@isil.d.shuttle.de>
8774 * g10.c (main): Added command --recv-keys
8775 * hkp.c (hkp_import): New.
8777 Wed Mar 17 13:09:03 CET 1999 Werner Koch <wk@isil.d.shuttle.de>
8779 * trustdb.c (check_trust): add new arg add_fnc and changed all callers.
8781 (verify_key): Ditto.
8782 (propagate_validity): Use the new add_fnc arg.
8783 (print_user_id): Add the FILE arg.
8784 (propagate_ownertrust): New.
8785 * pkclist.c (add_ownertrust_cb): New and changed the add_ownertrust
8788 * getkey.c (get_keyblock_bylid): New.
8789 * trustdb.c (print_uid_from_keyblock): New.
8790 (dump_tn_tree_with_colons): New.
8791 (list_trust_path): Add colon print mode.
8793 * trustdb.c (insert_trust_record): Always use the primary key.
8795 * encode.c (encode_simple): Added text_mode filter (Rémi Guyomarch)
8796 (encode_crypt): Ditto.
8798 * mainproc.c (proc_pubkey_enc): Added status ENC_TO.
8799 * armor.c (armor_filter): Added status NODATA.
8800 * passphrase.c (passphrase_to_dek): Always print NEED_PASSPHRASE
8801 * seckey_cert.c (check_secret_key): Added BAD_PASS status.
8803 * g10.c (main): Set g10_opt_homedir.
8805 Sun Mar 14 19:34:36 CET 1999 Werner Koch <wk@isil.d.shuttle.de>
8807 * keygen.c (do_create): Changed wording of the note (Hugh Daniel)
8809 Thu Mar 11 16:39:46 CET 1999 Werner Koch <wk@isil.d.shuttle.de>
8813 * trustdb.c (walk_sigrecs,do_list_sigs,list_sigs,
8814 list_records,list_trustdb,export_ownertrust,import_ownertrust): Moved
8816 (init_trustdb): renamed to setup_trustdb. Changed all callers.
8817 (do_init_trustdb): renamed to init_trustdb().
8818 * trustdb.c (die_invalid_db): replaced by tdbio_invalid.
8819 * tdbio.c (tdbio_invalid): New.
8821 * import.c (delete_inv_parts): Skip non exportable signatures.
8822 * keyedit.c (sign_uid_mk_attrib): New.
8823 (sign_uids): Add the local argument.
8824 (keyedit_menu): New "lsign" command.
8825 * trustdb.c (register_trusted_key): Removed this and all related stuff.
8826 * g10.c (oTrustedKey): Removed option.
8828 * tdbio.h (dir.valcheck): New trustdb field.
8829 * tdbio.c: Add support for this field
8830 (tdbio_read_modify_stamp): New.
8831 (tdbio_write_modify_stamp): New.
8832 * trustdb.c (do_check): Check against this field. Removed cache update.
8833 (verify_key): Add cache update.
8834 (upd_uid_record): Some functional changes.
8835 (upd_cert_record): Ditto
8837 Wed Mar 10 11:26:18 CET 1999 Werner Koch <wk@isil.d.shuttle.de>
8839 * keylist.c (list_keyblock): Fixed segv in uid. Print 'u' as
8842 Mon Mar 8 20:47:17 CET 1999 Werner Koch <wk@isil.d.shuttle.de>
8844 * getkey.c (classify_user_id): Add new mode 12 (#<lid>).
8846 * seckey-cert.c (check_secret_key): replaced error by info.
8848 * trustdb.c (query_trust_info): Add another arg, changed all callers.
8849 (check_trust): Ditto.
8851 (verify_key): Handle namehash.
8852 * keylist.c (list_keyblock): print trust info for user ids.
8854 * sig-check.c (signature_check): Add sig-created to status output.
8856 Tue Mar 2 16:44:57 CET 1999 Werner Koch <wk@isil.d.shuttle.de>
8858 * textfilter.c (copy_clearsig_text): New.
8859 (clearsign): Removed.
8860 * sign.c (clearsign_file): does not use textfiler anymore.
8862 * keygen.c (ask_user_id): print a note about the used charset.
8864 Tue Mar 2 10:38:42 CET 1999 Werner Koch <wk@isil.d.shuttle.de>
8866 * sig-check.c (signature_check): sig-id now works for all algos.
8868 * armor.c (armor_filter): Fixed armor bypassing.
8870 Sun Feb 28 19:11:00 CET 1999 Werner Koch <wk@isil.d.shuttle.de>
8872 * keygen.c (ask_user_id): Don't change the case of email addresses.
8873 (has_invalid_email_chars): Adjusted.
8875 * keylist.c (list_one): Really list serect keys (Remi Guyomarch)
8877 * keyedit.c (menu_select_uid): Add some braces to make egcs happy.
8878 (menu_select_key): Ditto.
8880 * mainproc.c (do_proc_packets): List sym-enc packets (Remi Guyomarch)
8882 Fri Feb 26 17:55:41 CET 1999 Werner Koch <wk@isil.d.shuttle.de>
8884 * pkclist.c (build_pk_list): Return error if there are no recipients.
8886 * sig-check.c (signature_check): New signature id feature.
8887 * armor.c (make_radic64_string): New.
8889 * mainproc.c (proc_pubkey_enc): early check for seckey availability.
8891 * pkclist.c (do_we_trust_pre): print user id before asking.
8893 * ringedit.c (add_keyblock_resource,get_keyblock_handle): Cleaner
8894 handling of default resource.
8897 Thu Feb 25 18:47:39 CET 1999 Werner Koch <wk@isil.d.shuttle.de>
8899 * pkclist.c (algo_available): New.
8900 (select_algo_from_prefs): Check whether algo is available.
8902 * ringedit.c (keyring_copy): Take care of opt.dry_run.
8903 (do_gdbm_store): Ditto.
8904 * openfile.c (open_outfile). Ditto.
8905 (copy_options_file): Ditto.
8906 * trustdb.c (update_trustdb): Ditto.
8907 (clear_trust_checked_flag): Ditto.
8908 (update_trust_record): Ditto.
8909 (insert_trust_record): Ditto.
8911 Wed Feb 24 11:07:27 CET 1999 Werner Koch <wk@isil.d.shuttle.de>
8913 * keylist.c (secret_key_list): Now really list the secret key.
8915 * trustdb.c (do_init_trustdb): New. Init is now deferred.
8917 Mon Feb 22 20:04:00 CET 1999 Werner Koch <wk@isil.d.shuttle.de>
8919 * getkey.c (lookup_sk): Return G10ERR_NO_SECKEY and not x_PUBKEY.
8921 Fri Feb 19 15:49:15 CET 1999 Werner Koch <wk@isil.d.shuttle.de>
8923 * pkclist.c (select_algo_from_prefs): retrieve LID if not there.
8925 * armor.c (fake_packet): Replaced ugly lineending handling.
8927 * g10.c (oNoEncryptTo): New.
8928 * pkclist.c (build_pk_list): Implemented this option.
8930 * g10.c (main): Greeting is now printed to stderr and not to tty.
8931 Use add_to_strlist() instead of direct coding.
8933 * import.c (import): Use iobuf_push_filter2.
8935 * mainproc.c (check_sig_and_print): Print all user ids
8936 for good signatures.
8937 * getkey.c (get_pubkeyblock): New.
8939 * import.c (chk_self_sigs): Fixed SEGV for unbounded class 0x18 keys.
8940 (delete_inv_parts): Delete special marked packets.
8942 Tue Feb 16 14:10:02 CET 1999 Werner Koch <wk@isil.d.shuttle.de>
8944 * g10.c (main): New option --encrypt-to
8946 * pkclist.c (build_pk_list): Implemented encrypt-to.
8948 * parse-packet.c (parse_user_id): Removed the hack to work with
8951 * g10.c (main): Install lockfile cleanup handler.
8952 * tdbio.c (cleanup): Removed: this is now handled by dotlock.
8954 Sat Feb 13 14:13:04 CET 1999 Werner Koch <wk@isil.d.shuttle.de>
8956 * tdbio.c (tdbio_set_dbname): Init lockhandle for a new trustdb
8958 Wed Feb 10 17:15:39 CET 1999 Werner Koch <wk@isil.d.shuttle.de>
8960 * g10.c (main): check for development version now in configure
8962 * tdbio.c (tdbio_write_record): Add uid.validity
8963 (tdbio_read_record) : Ditto.
8964 (tdbio_dump_record) : Ditto.
8966 * keygen.c (keygen_add_std_prefs): Replaced Blowfish by Twofish,
8967 removed MD5 and Tiger.
8968 * pubkey-enc.c (get_it): Suppress warning about missing Blowfish
8969 in preferences in certain cases.
8971 * ringedit.c (lock_rentry,unlock_rentry): New.
8973 * getkey.c (key_byname): Pass ret_kb down to lookup_xx.
8975 * armor.c (armor_filter): No output of of empty comment lines.
8976 Add option --no-version to suppress the output of the version string.
8978 * getkey.c: Release the getkey context for auto context variables.
8980 Sun Jan 24 18:16:26 CET 1999 Werner Koch <wk@isil.d.shuttle.de>
8982 * getkey.c: Changed the internal design to allow simultaneous
8983 lookup of multible user ids
8984 (get_pubkey_bynames): New.
8985 (get_seckey_bynames): New.
8986 (get_seckey_next): New.
8987 (get_seckey_end): New.
8988 * keylist.c (list_one): Use the new functions.
8990 * keylist.c (list_keyblock): add a newline for normal listings.
8992 * g10.c (--recipient): New option name to replace --remote-user
8995 Wed Jan 20 18:59:49 CET 1999 Werner Koch <wk@isil.d.shuttle.de>
8997 * textfilter.c: Mostly rewritten
8998 * plaintext.c (handle_plaintext): Use now text_filter semantics.
9000 Tue Jan 19 19:34:58 CET 1999 Werner Koch <wk@isil.d.shuttle.de>
9002 * export.c (export_pubkeys_stream): New.
9003 (do_export_stream): New.
9004 * g10.c (aSendKeys): New command.
9005 * hkp.c (hkp_export): New.
9007 * compress.c (do_uncompress): Hack for algo 1 and 1.1.3
9009 Sun Jan 17 11:04:33 CET 1999 Werner Koch <wk@isil.d.shuttle.de>
9011 * textfilter.c (text_filter): Now uses iobuf_read_line().
9012 (read_line): Removed.
9014 * armor.c (trim_trailing_spaces): Removed and replaced
9015 by trim_trailing_ws from libutil
9017 Sat Jan 16 12:03:27 CET 1999 Werner Koch <wk@isil.d.shuttle.de>
9019 * hkp.c (hkp_ask_import): Use only the short keyid
9021 Sat Jan 16 09:27:30 CET 1999 Werner Koch <wk@isil.d.shuttle.de>
9023 * import.c (import_key_stream): New
9024 (import): New, moved most of import_keys here.
9025 * g10.c: New option --keyserver
9026 * mainproc.c (check_sig_and_print): Hook to import a pubkey.
9028 * pref.c pref.h : Removed
9032 Wed Jan 13 14:10:15 CET 1999 Werner Koch <wk@isil.d.shuttle.de>
9034 * armor.c (radix64_read): Print an error if a bad armor was detected.
9036 Wed Jan 13 12:49:36 CET 1999 Werner Koch <wk@isil.d.shuttle.de>
9038 * armor.c (radix64_read): Now handles malformed armors produced
9041 Tue Jan 12 11:17:18 CET 1999 Werner Koch <wk@isil.d.shuttle.de>
9043 * ringedit.c (find_keyblock_bysk): New.
9045 * skc_list.c (is_insecure): New.
9046 (build_sk_list): usage check for insecure keys.
9048 * import.c (chk_self_sigs): Add handling for subkeys.
9049 (delete_inv_parts): Skip unsigned subkeys
9051 * sig-check.c (do_check): Print info if the signature is older
9053 * keygen.c (generate_subkeypair): Fail on time warp.
9054 * sign.c (do_sign): Ditto.
9056 Sun Jan 10 15:10:02 CET 1999 Werner Koch <wk@isil.d.shuttle.de>
9058 * armor.c (fake_packet): Fixed not-dash-escaped bug.
9060 Sat Jan 9 16:02:23 CET 1999 Werner Koch <wk@isil.d.shuttle.de>
9062 * sig-check.c (do_check): Output time diff on error
9064 * status.c (STATUS_VALIDSIG): New.
9065 (is_status_enabled): New.
9066 * mainproc.c (check_sig_and_print): Issue that status message.
9068 * plaintext.c (special_md_putc): Removed
9070 * armor.c (armor_filter): print error for truncated lines.
9072 * free-packet.c (free_encrypted): Revomed call to set_block_mode.
9073 (free_plaintext): Ditto.
9075 Thu Jan 7 18:00:58 CET 1999 Werner Koch <wk@isil.d.shuttle.de>
9077 * pkclist.c (add_ownertrust): Fixed return value.
9079 * encr-data.c (decrypt_data): Disabled iobuf_set_limit and
9080 iobuf_pop_filter stuff.
9081 * compress.c (handle_compressed): Disabled iobuf_pop_filter.
9083 * packet.h (PKT_secret_key): Add is_primary flag.
9084 * parse-packet.c (parse_key): Set this flag.
9085 * passphrase.c (passphrase_to_dek): Kludge to print the primary
9086 keyid - changed the API: keyid must now hold 2 keyids.
9087 * getkey.c (get_primary_seckey): New.
9088 * seckey-cert.c (do_check): pass primary keyid to passphrase query
9090 * tbdio.c (open_db): removed the atexit
9091 (tdbio_set_dbname): and moved it to here.
9093 * armor.c: Rewrote large parts.
9095 Tue Dec 29 19:55:38 CET 1998 Werner Koch <wk@isil.d.shuttle.de>
9097 * revoke.c (gen_revoke): Removed compression.
9099 * pkclist.c (do_we_trust_pre): special check for revoked keys
9101 * trustdb.c (update_trust_record): Fixed revoke flag.
9103 Tue Dec 29 14:41:47 CET 1998 Werner Koch <wk@isil.d.shuttle.de>
9105 * misc.c (disable_core_dumps): Check for EINVAL (Atari)
9107 * getkey (merge_one_pk_and_selfsig): Fixed search of expiredate.
9108 (merge_keys_and_selfsig): Ditto.
9110 * free-packet.c (cmp_public_keys): cmp expire only for v3 packets
9111 (cmp_secret_keys): Ditto.
9112 (cmp_public_secret_key): Ditto.
9114 Wed Dec 23 17:12:24 CET 1998 Werner Koch <wk@isil.d.shuttle.de>
9116 * armor.c (find_header): Reset not_dashed at every header
9118 Wed Dec 23 13:18:14 CET 1998 Werner Koch <wk@isil.d.shuttle.de>
9120 * pkclist.c (add_ownertrust): Refresh validity values.
9122 * trustdb.c (enum_cert_paths_print): New arg refresh.
9124 * ringedit.c: Fixed problems fix keyrings
9125 * parse-packet.c (dbg_parse_packet): New debug functions.
9127 * getkey.c (getkey_disable_caches): New.
9128 * import.c (import_keys): Disable caches.
9130 Thu Dec 17 18:31:15 CET 1998 Werner Koch <wk@isil.d.shuttle.de>
9132 * misc.c (trap_unaligned): Only for glibc 1
9134 * sign.c (write_dash_escaped): Now escapes "From " lines
9135 * g10.c: New option --escape-from-lines
9137 * trustdb.c (sort_tsl_list): New
9138 (list_trust_path): Now prints sorted list.
9139 (enum_cert_paths): Likewise.
9140 (enum_cert_paths_print): New.
9141 (print_paths): New printing format.
9142 * pkclist.c (add_ownertrust): New arg quit.
9143 (edit_ownertrust): New quit selection and does not query
9144 the recipients ownertrust anymore.
9145 (add_ownertrust): Print the ceritficate path.
9148 Mon Dec 14 21:18:49 CET 1998 Werner Koch <wk@isil.d.shuttle.de>
9150 * parse-packet.c (parse_signature): Now checks for critical bit
9151 (parse_sig_subpkt): Splitted.
9152 (parse_one_sig_subpkt): New.
9153 * sig-check.c (do_check): handle critical bit.
9155 Sun Dec 13 14:10:56 CET 1998 Werner Koch <wk@isil.d.shuttle.de>
9157 * pcklist.c (select_algo_from_prefs): Preferences should
9158 now work (lost the != ? )
9160 Thu Dec 10 20:15:36 CET 1998 Werner Koch <wk@isil.d.shuttle.de>
9162 * ringedit.c (gdbm_store): Fix for inserts
9164 * g10.c (main): New option --export-all
9165 * export.c (export_pubkeys): New arg.
9166 (do_export): Now may skip old keys.
9168 * status.c: Minor patches for Sun's cc
9170 * keygen.c (ask_algo): Disabled v3 ElGamal choice, rearranged
9171 the numbers. Add a warning question when a sign+encrypt key
9174 * g10.c (do_not_use_RSA): Removed.
9175 * misc.c (print_pubkey_algo_note): New as replacement for the
9176 do_not_use_RSA() and chnaged all callers.
9177 (print_cipher_algo_note): New.
9178 (print_hash_algo_note): New.
9180 * cipher.c (write_header): Add a call to print_cipher_algo_note.
9181 * seckey-cert.c (protect_secret_key): Ditto
9182 * sign.c (do_sign): Add a call to print_digest_algo_note.
9184 * getkey.c (get_long_user_id_string): New.
9185 * mainproc.c (check_sig_and_print): Changed the format of the
9188 * encrypt.c (write_pubkey_enc_from_list): print used symmetric cipher.
9190 * pkclist.c (do_we_trust): Changed a message.
9192 Wed Dec 9 13:41:06 CET 1998 Werner Koch <wk@isil.d.shuttle.de>
9194 * misc.c (trap_unaligned) [ALPHA]: Only if UAC_SIGBUS is defined.
9196 * sign.c (write_dash_escaped): Add the forgotten patch by Brian Moore.
9198 * compress.c (do_uncompress): Fixed the inflating bug.
9201 Tue Dec 8 13:15:16 CET 1998 Werner Koch <wk@isil.d.shuttle.de>
9203 * trustdb.c (upd_uid_record): Now uses the newest self-signature
9204 (insert_trust_record): Now calls update with recheck set to true.
9205 (register_trusted_key): New.
9206 (verify_own_keys): Enhanced by list of trusted keys.
9208 * g10.c (main): Print a warning when a devel version is used.
9209 (main): New option --trusted-key
9211 * import.c (merge_blocks): Fixed merging of new user ids and
9212 added merging of subkeys.
9213 (append_uid): Ditto.
9214 (merge_keysig): New.
9216 * getkey.c (merge_one_pk_and_selfsig): Get the expiration time
9217 from the newest self-signature.
9218 (merge_keys_and_selfsig): Ditto.
9220 * free-packet.c (cmp_secret_key): New.
9223 Fri Nov 27 21:37:41 CET 1998 Werner Koch <wk@isil.d.shuttle.de>
9225 * g10.c: New option --lock-once
9226 * tdbio.c (open_db): Add an atexit
9228 (tdbio_sync): Add locking.
9229 (tdbio_end_transaction): Ditto.
9230 (put_record_into_cache): Ditto.
9231 * ringedit.c (keyring_copy): Ditto.
9233 (add_keyblock_resource): Add an atexit.
9235 Fri Nov 27 15:30:24 CET 1998 Werner Koch <wk@isil.d.shuttle.de>
9237 * armor.c (find_header): Another fix for clearsigs.
9239 Fri Nov 27 12:39:29 CET 1998 Werner Koch <wk@isil.d.shuttle.de>
9242 * status.c (display_help): Removed.
9243 * helptext.c: New and removed the N_() from all cpr_gets.
9246 Fri Nov 20 16:54:52 1998 Werner Koch (wk@isil.d.shuttle.de)
9248 * g10.c (main): New option --not-dash-escaped
9249 * sign.c (write_dashed_escaped): Ditto.
9250 * armor.c (find_header): Support for NotDashEscaped header.
9252 * getkey.c: print "disabled cache.." only if verbose is used.
9254 Thu Nov 19 07:17:31 1998 Werner Koch <werner.koch@guug.de>
9256 * parse-packet.c (dump_sig_subpkt): Fixed expire listing
9257 * getkey.c (merge_keys_and_selfsig): Fixed expire calculation.
9258 (merge_one_pk_and_selfsig): Ditto.
9259 * keyedit.c (menu_expire). Ditto.
9260 * keygen.c (keygen_add_key_expire): Ditto.
9261 (ask_expire_interval): New and changed all local function to use
9263 (keygen_add_key_expire): Opaque should now be a public key;
9264 changed all callers.
9266 * parse.packet.c (parse): use skip_rest to skip packets.
9268 * keyedit.c (keyedit_menu): New arg for cmdline cmds.
9270 Wed Nov 18 20:33:50 1998 Werner Koch (wk@isil.d.shuttle.de)
9272 * trustdb.c (check_trustdb): Now rechecks all gived userids.
9273 (collect_paths): Some fixes.
9274 (upd_pref_records): Skips empty items, evaluate all items.
9276 * parse-packet.c (dump_sig_subpkt): Better listing of prefs.
9277 (skip_packet): Now knows about marker packet
9279 * g10.c: removed cmd "--edit-sig".
9281 * pubring.asc: Updated.
9283 Sat Nov 14 14:01:29 1998 Werner Koch (wk@isil.d.shuttle.de)
9285 * g10.c (main): Changed syntax of --list-trust-path
9286 * trustdb.c (list_trust_path): Replaced max_depth by
9289 Fri Nov 13 07:39:58 1998 Werner Koch <werner.koch@guug.de>
9291 * trustdb.c (collect_paths): Removed a warning message.
9292 (enum_trust_web): Removed.
9293 (enum_cert_paths): New.
9294 * pkclist.c (add_ownertrust): Changed to use enum_cert_paths.
9295 (edit_ownertrust): Now list ceritficates on request.
9298 Wed Nov 11 18:05:44 1998 Werner Koch <werner.koch@guug.de>
9300 * g10.c (main): New option --max-cert-depth
9301 * tdbio.h: add new fields to ver and dir record.
9302 * tdbio.c: read/write/dump of these fields.
9303 (tdbio_db_matches_options): New.
9304 * trustdb.c: replaced MAC_CERT_DEPTH by opt.max_cert_depth.
9305 (do_check): cache validity and changed other functions
9306 to reset the cached value.
9308 * keylist.c (list_one): Now lists the ownertrust.
9309 * mainproc.c (list_node): Ditto.
9311 Tue Nov 10 10:08:59 1998 Werner Koch (wk@isil.d.shuttle.de)
9313 * g10.c (g10_exit): Now looks at the new g10_errors_seen.
9314 * mainproc.c (check_sig_and_print): Sets g10_errors_seen.
9316 * *.c : i18n many more strings.
9318 * ringedit.c (locate_keyblock_by_keyid): Add HAVE_LIBGDBM
9319 (locate_keyblock_by_fpr): Ditto.
9321 * g10.c (main): removed unsused "int errors".
9322 (main): Add new option --charset.
9324 * g10.c (main): special message for the unix newbie.
9326 Mon Nov 9 07:17:42 1998 Werner Koch <werner.koch@guug.de>
9328 * getkey.c (finish_lookup): Kludge to prefere algo 16.
9330 * trustdb.c (new_lid_table): Clear cached item.
9332 * status.c (cpr_get_utf8): New.
9333 * pkclist.c (build_pk_list): Uses this.
9335 Sun Nov 8 17:20:39 1998 Werner Koch (wk@isil.d.shuttle.de)
9337 * mainproc.c (check_sig_and_print): Why did I use strlen()-1
9338 in the printf? - This truncated the TZ.
9340 Sat Nov 7 15:57:28 1998 me,,, (wk@tobold)
9342 * getkey.c (lookup): Changes to support a read_next.
9343 (get_pubkey): Fixed a memory leak.
9345 * keylist.c (list_one): Now lists all matching user IDs.
9347 Tue Nov 3 16:19:21 1998 Werner Koch (wk@isil.d.shuttle.de)
9349 * keygen.c (ask_user_id): Now converted to UTF-8
9351 * g10.c (main): Kludge for pgp clearsigs and textmode.
9353 Fri Oct 30 16:40:39 1998 me,,, (wk@tobold)
9355 * signal.c (block_all_signals): New.
9356 (unblock_all_signals): New
9357 * tdbio.c (tdbio_end_transaction): Now blocks all signals.
9359 * trustdb.c (new_lid_table): Changed the representation of the
9360 former local_lid_info stuff.
9362 * trustdb.c (update_trust_record): Reorganized the whole thing.
9363 * sig-check.c (check_key_signature): Now handles class 0x28
9366 Wed Oct 28 18:56:33 1998 me,,, (wk@tobold)
9368 * export.c (do_export): Takes care of the exportable sig flag.
9370 Tue Oct 27 14:53:04 1998 Werner Koch (wk@isil.d.shuttle.de)
9372 * trustdb.c (update_trust_record): New "fast" parameter.
9374 Sun Oct 25 19:32:05 1998 Werner Koch (wk@isil.d.shuttle.de)
9376 * openfile.c (copy_options_File): New.
9377 * ringedit.c (add_keyblock_resource): Creates options file
9378 * tdbio.c (tdbio_set_dbname): Ditto.
9380 Sat Oct 24 14:10:53 1998 brian moore <bem@cmc.net>
9382 * mainproc.c (proc_pubkey_enc): Don't release the DEK
9383 (do_proc_packets): Ditto.
9385 Fri Oct 23 06:49:38 1998 me,,, (wk@tobold)
9387 * keyedit.c (keyedit_menu): Comments are now allowed
9389 * trustdb.c: Rewrote large parts.
9392 Thu Oct 22 15:56:45 1998 Michael Roth (mroth@nessie.de)
9394 * encode.c: (encode_simple): Only the plain filename without
9395 a given directory is stored in generated packets.
9396 (encode_crypt): Ditto.
9398 * sign.c: (sign_file) Ditto.
9401 Thu Oct 22 10:53:41 1998 Werner Koch (wk@isil.d.shuttle.de)
9403 * trustdb.c (update_trust_record): Add new optional arg.
9405 * import.c (import_keys): Add statistics output
9406 * trustdb.c (update_trustdb): Ditto.
9407 (insert_trustdb): Ditto.
9409 * tdbio.c (tdbio_begin_transaction): New.
9410 (tdbio_end_transaction): New.
9411 (tdbio_cancel_transaction): New.
9413 * g10.c (main): New option --quit.
9415 * trustdb.c (check_hint_sig): No tests for user-id w/o sig.
9416 This caused an assert while checking the sigs.
9418 * trustdb.c (upd_sig_record): Splitted into several functions.
9420 * import.c (import_keys): New arg "fast".
9421 * g10.c (main): New command --fast-import.
9423 Wed Oct 21 18:19:36 1998 Michael Roth <mroth@nessie.de>
9425 * ringedit.c (add_keyblock_resource): Directory is now created.
9426 * tdbio.c (tdbio_set_dbname): New info message.
9428 Wed Oct 21 11:52:04 1998 Werner Koch (wk@isil.d.shuttle.de)
9430 * trustdb.c (update_trustdb): released keyblock in loop.
9432 * keylist.c (list_block): New.
9433 (list_all): Changed to use list_block.
9435 * trustdb.c: Completed support for GDBM
9437 * sign.c (only_old_style): Changed the way force_v3 is handled
9439 (clearsign_file): Ditto.
9441 * keygen.c (has_invalid_email_chars): Splitted into mailbox and
9444 * keylist.c (list_one): Add a merge_keys_and_selfsig.
9445 * mainproc.c (proc_tree): Ditto.
9447 Sun Oct 18 11:49:03 1998 Werner Koch (wk@isil.d.shuttle.de)
9449 * sign.c (only_old_style): Add option force_v3_sigs
9450 (sign_file): Fixed a bug in sig->version
9451 (clearsign_file): Ditto.
9453 * parse-packet.c (dump_sig_subpkt): New
9455 * keyedit.c (menu_expire): New.
9456 * free-packet.c (cmp_signatures): New
9459 Sat Oct 17 10:22:39 1998 Werner Koch (wk@isil.d.shuttle.de)
9461 * armor.c: changed output line length from 72 to 64.
9463 * keyedit.c (fix_keyblock): New.
9465 Fri Oct 16 10:24:47 1998 Werner Koch (wk@isil.d.shuttle.de)
9467 * trustdb.c: Rewrote most.
9468 * tdbio.c: Add cache and generalized hash tables.
9470 * options.h (ENABLE_COMMENT_PACKETS): New but undef'ed.
9471 * encode.c, sign.c, keygen.c: Disabled comment packets.
9472 * export.c (do_export): Comment packets are never exported,
9473 except for those in the secret keyring.
9475 * g10.c (main): Removed option do-no-export-rsa; should be
9476 be replaced by a secpial tool.
9477 * export.c (do_export): Removed the code for the above option.
9479 * armor.c (find_header): Support for new only_keyblocks.
9480 * import.c (import_keys): Only looks for keyblock armors.
9482 * packet.h: replaced valid_days by expiredate and changed all users.
9483 * build-packet.c (do_public_key): calculates valid-days
9484 (do_secret_key): Ditto.
9485 * parse-packet.c (parse_key): expiredate is calucated from the
9486 valid_period in v3 packets.
9487 * keyid.c (do_fingerprint_md): calculates valid_dates.
9489 * keygen.c (add_key_expire): fixed key expiration time for v4 packets.
9491 * armor.c (find_header): A LF in the first 28 bytes
9492 was skipped for non-armored data.
9494 Thu Oct 8 11:35:51 1998 Werner Koch (wk@isil.d.shuttle.de)
9496 * armor.c (is_armored): Add test on old comment packets.
9498 * tdbio.c (tdbio_search_dir_bypk): fixed memory leak.
9500 * getkey.c: Changed the caching algorithms.
9502 Wed Oct 7 19:33:28 1998 Werner Koch (wk@isil.d.shuttle.de)
9504 * kbnodes.c (unused_nodes): New.
9506 Wed Oct 7 11:15:36 1998 Werner Koch (wk@isil.d.shuttle.de)
9508 * keyedit.c (sign_uids): Fixed a problem with SK which could caused
9509 a save of an unprotected key.
9510 (menu_adduid): Ditto.
9512 * keyedit.c (keyedit_menu): Prefs are now correctly listed for
9515 * trustdb.c (update_trust_record): New.
9516 (insert_trust_record): Now makes use of update_trust_record.
9518 Tue Oct 6 16:18:03 1998 Werner Koch (wk@isil.d.shuttle.de)
9520 * trustdb.c (read_record): replaces most of the tdbio_read_records.
9521 (write_record): Ditto.
9523 Sat Oct 3 11:01:21 1998 Werner Koch (wk@isil.d.shuttle.de)
9525 * keygen.c (ask_alogo): enable ElGamal enc-only only for addmode.
9527 Wed Sep 30 10:15:33 1998 Werner Koch (wk@isil.d.shuttle.de)
9529 * import.c (import_one): Fixed update of wrong keyblock.
9531 Tue Sep 29 08:32:08 1998 me,,, (wk@tobold)
9533 * mainproc.c (proc_plaintext): Display note for special filename.
9534 * plaintext.c (handle_plaintext): Suppress output of special file.
9536 Mon Sep 28 12:57:12 1998 Werner Koch (wk@isil.d.shuttle.de)
9538 * g10.c (verify_own_keys): Add warning if a key is not protected.
9540 * passphrase (hash_passphrase): Fixed iterated+salted mode and
9541 setup for keysizes > hashsize.
9543 * g10.c (main): New options: --s2k-{cipher,digest,mode}.
9545 Fri Sep 25 09:34:23 1998 Werner Koch (wk@isil.d.shuttle.de)
9547 * g10.c: Chnaged some help texts.
9549 Tue Sep 22 19:34:39 1998 Werner Koch (wk@isil.d.shuttle.de)
9551 * passphrase.c (read_passphrase_from_fd): fixed bug for long
9554 Mon Sep 21 11:28:05 1998 Werner Koch (wk@(none))
9556 * getkey.c (lookup): Add code to use the sub key if the primary one
9557 does not match the usage.
9559 * armor.c (armor_filter): New error message: no valid data found.
9560 (radix64_read): Changes to support multiple messages.
9562 * mainproc.c (add_onepass_sig): bug fix.
9564 Mon Sep 21 08:03:16 1998 Werner Koch (wk@isil.d.shuttle.de)
9566 * pkclist.c (do_we_trust): Add keyid to most messages.
9568 * passphrase.c (read_passphrase_from_fd): New.
9569 (have_static_passphrase): New
9570 (get_passphrase_fd): Removed.
9571 (set_passphrase_fd): Removed.
9572 * g10.c (main): passphrase is now read here.
9574 * keyedit.c (keyedit_menu): "help" texts should now translate fine.
9576 Mon Sep 21 06:40:02 1998 Werner Koch (wk@isil.d.shuttle.de)
9578 * encode.c (encode_simple): Now disables compression
9579 when --rfc1991 is used.
9580 (encode_crypt): Ditto.
9582 Fri Sep 18 16:50:32 1998 Werner Koch (wk@isil.d.shuttle.de)
9584 * getkey.c (merge_key_and_selfsig): New.
9586 Fri Sep 18 10:20:11 1998 Werner Koch (wk@isil.d.shuttle.de)
9588 * pkclist.c (select_algo_from_prefs): Removed 3DES kludge.
9590 * seskey.c (make_session_key): Fixed SERIOUS bug introduced
9591 by adding the weak key detection code.
9593 * sign.c (sign_file): Changed aremor header in certain cases.
9595 Tue Sep 15 17:52:55 1998 Werner Koch (wk@isil.d.shuttle.de)
9597 * mainproc.c (check_sig_and_print): Replaced ascime by asctimestamp.
9599 Mon Sep 14 11:40:52 1998 Werner Koch (wk@isil.d.shuttle.de)
9601 * seskey.c (make_session_key): Now detects weak keys.
9603 * trustdb (clear_trust_checked_flag): New.
9605 * plaintext.c (handle_plaintext): Does no anymore suppress CR from
9606 cleartext signed messages.
9608 Sun Sep 13 12:54:29 1998 Werner Koch (wk@isil.d.shuttle.de)
9610 * trustdb.c (insert_trust_record): Fixed a stupid bug in the free
9613 Sat Sep 12 15:49:16 1998 Werner Koch (wk@isil.d.shuttle.de)
9615 * status.c (remove_shmid): New.
9616 (init_shm_comprocess): Now sets permission to the real uid.
9618 Wed Sep 9 11:15:03 1998 Werner Koch (wk@isil.d.shuttle.de)
9620 * packet.h (PKT_pubkey_enc): New flah throw_keyid, and add logic to
9622 * g10.c (main): New Option --throw-keyid
9624 * getkey.c (enum_secret_keys): Add new ar and changed all callers.
9626 Tue Sep 8 20:04:09 1998 Werner Koch (wk@isil.d.shuttle.de)
9628 * delkey.c (delete_key): Moved from keyedit.c.
9630 Mon Sep 7 16:37:52 1998 Werner Koch (wk@isil.d.shuttle.de)
9632 * build-packet.c (calc_length_header): New arg new_ctb to correctly
9633 calculate the length of new style packets.
9635 * armor.c (is_armored): Checks for symkey_enc packets.
9637 * pkclist.c (select_algo_from_prefs): 3DEs substitute is now CAST5.
9639 Tue Aug 11 17:54:50 1998 Werner Koch (wk@isil.d.shuttle.de)
9641 * build-packet.c (do_secret_key): Fixed handling of old keys.
9643 * getkey.c (compare_name): Fixed exact and email matching
9645 * openfile.c (open_outfile): Changed arguments and all callers.
9647 Tue Aug 11 09:14:35 1998 Werner Koch (wk@isil.d.shuttle.de)
9649 * encode.c (encode_simple): Applied option set-filename and comment.
9650 (encode_crypt): Ditto.
9651 * sign.c (sign_file): Ditto.
9652 * armor.c (armor_filter): Applied option comment.
9654 * encode.c (encode_crypt): Moved init_packet to the begin.
9655 (encode_simple): add an init_packet().
9657 * comment (write_comment): Now enforces a hash sign as the 1st byte.
9659 * import.c (import_one): Add explanation for "no user ids".
9661 * compress.c (do_uncompress): Applied Brian Warner's patch to support
9664 * trustdb.c (check_trust): Fixed a problem after inserting new keys.
9666 * getkey (lookup): do not return the primary key if usage is given
9667 (lookup_sk): Ditto and take usage into account.
9669 * status.c (cpr_get_answer_is_yes): add display_help.
9671 Mon Aug 10 10:11:28 1998 Werner Koch (wk@isil.d.shuttle.de)
9673 * getkey.c (lookup_sk): Now always returns the primary if arg
9676 (get_pubkey_byname): Now returns the primary key
9677 (get_seckey_byname): Ditto.
9680 Mon Aug 10 08:34:03 1998 Werner Koch (wk@isil.d.shuttle.de)
9682 * keyid.c (pubkey_letter): ELG_E is now a small g.
9684 Sat Aug 8 17:26:12 1998 Werner Koch (wk@isil.d.shuttle.de)
9686 * openfile (overwrite_filep): Changed semantics and all callers.
9688 Sat Aug 8 12:17:07 1998 Werner Koch (wk@isil.d.shuttle.de)
9690 * status.c (display_help): New.
9692 Thu Aug 6 16:30:41 1998 Werner Koch,mobil,,, (wk@tobold)
9694 * seskey.c (encode_session_key): Now uses get_random_bits().
9696 Thu Aug 6 07:34:56 1998 Werner Koch,mobil,,, (wk@tobold)
9698 * ringedit.c (keyring_copy): No more backupfiles for
9699 secret keyrings and add additional warning in case of
9700 a failed secret keyring operation.
9702 Wed Aug 5 11:54:37 1998 Werner Koch (wk@isil.d.shuttle.de)
9704 * g10.c (check_opts): Moved to main. Changed def_cipher_algo
9705 semantics and chnaged all users.
9707 * pubkey-enc.c (get_sssion_key): New informational output
9710 * parse-packet.c (parse_symkeyenc): Fixed salted+iterated S2K
9712 * build-packet.c (do_secret_key): Ditto.
9713 (do_symkey_enc): Ditto.
9715 Tue Aug 4 08:59:10 1998 Werner Koch (wk@isil.d.shuttle.de)
9717 * getkey.c (enum_secret_keys): Now returns only primary keys.
9719 * getkey (lookup): Now sets the new namehash field.
9721 * parse-packet.c (parse_sig_subpkt2): New.
9723 * sign.c (sign_file): one-pass sigs are now emiited reverse.
9724 Preference data is considered when selecting the compress algo.
9726 Wed Jul 29 12:53:03 1998 Werner Koch (wk@isil.d.shuttle.de)
9728 * free-packet.c (copy_signature): New.
9730 * keygen.c (generate_subkeypair): rewritten
9731 * g10.c (aKeyadd): Removed option --add-key
9733 Mon Jul 27 10:37:28 1998 Werner Koch (wk@isil.d.shuttle.de)
9735 * seckey-cert.c (do_check): Additional check on cipher blocksize.
9736 (protect_secret_key): Ditto.
9737 * encr-data.c: Support for other blocksizes.
9738 * cipher.c (write_header): Ditto.
9740 Fri Jul 24 16:47:59 1998 Werner Koch (wk@isil.d.shuttle.de)
9742 * kbnode.c (insert_kbnode): Changed semantics and all callers.
9743 * keyedit.c : More or less a complete rewrite
9745 Wed Jul 22 17:10:04 1998 Werner Koch (wk@isil.d.shuttle.de)
9747 * build-packet.c (write_sign_packet_header): New.
9749 Tue Jul 21 14:37:09 1998 Werner Koch (wk@isil.d.shuttle.de)
9751 * import.c (import_one): Now creates a trustdb record.
9753 * g10.c (main): New command --check-trustdb
9755 Mon Jul 20 11:15:07 1998 Werner Koch (wk@isil.d.shuttle.de)
9757 * genkey.c (generate_keypair): Default key is now DSA with
9758 encryption only ElGamal subkey.
9760 Thu Jul 16 10:58:33 1998 Werner Koch (wk@isil.d.shuttle.de)
9762 * keyid.c (keyid_from_fingerprint): New.
9763 * getkey.c (get_pubkey_byfprint): New.
9765 Tue Jul 14 18:09:51 1998 Werner Koch (wk@isil.d.shuttle.de)
9767 * keyid.c (fingerprint_from_pk): Add argument and changed all callers.
9768 (fingerprint_from_sk): Ditto.
9770 Tue Jul 14 10:10:03 1998 Werner Koch (wk@isil.d.shuttle.de)
9772 * plaintext.c (handle_plaintext): Now returns create error if
9773 the file could not be created or the user responded not to overwrite
9775 * mainproc.c (proc_plaintext): Tries again if the file could not
9776 be created to check the signature without output.
9778 * misc.c (disable_core_dumps): New.
9779 * g10.c (main): disable coredumps for gpg
9781 * g10.c (MAINTAINER_OPTIONS): New to disable some options
9783 Mon Jul 13 16:47:54 1998 Werner Koch (wk@isil.d.shuttle.de)
9785 * plaintext.c (hash_datafiles): New arg for better support of
9786 detached sigs. Changed all callers.
9787 * mainproc.c (proc_signature_packets): Ditto.
9789 * g10.c (main): New option "compress-sigs"
9790 * sig.c (sign_file): detached signatures are not anymore compressed
9791 unless the option --compress-sigs is used.
9793 Thu Jul 9 19:54:54 1998 Werner Koch (wk@isil.d.shuttle.de)
9795 * armor.c: Fixes to allow zero length cleartext signatures
9797 Thu Jul 9 14:52:47 1998 Werner Koch (wk@isil.d.shuttle.de)
9799 * g10.c (build_list): Now drops setuid.
9800 (main): Changed the way keyrings and algorithms are registered .
9802 Wed Jul 8 14:17:30 1998 Werner Koch (wk@isil.d.shuttle.de)
9804 * packet.h (PKT_public_key): Add field keyid.
9805 * parse-packet.c (parse_key): Reset the above field.
9806 * keyid.c (keyid_from_pk): Use above field as cache.
9808 * tdbio.c, tdbio.h: New
9809 * trustdb.c: Moved some functions to tdbio.c.
9812 * pkclist.c (check_signatures_trust): New.
9814 Wed Jul 8 10:45:28 1998 Werner Koch (wk@isil.d.shuttle.de)
9816 * plaintext.c (special_md_putc): New.
9817 (handle_plaintext): add clearsig argument
9818 * mainproc.c (proc_plaintext): detection of clearsig
9819 * sign.c (write_dased_escaped): Changed clearsig format
9821 Tue Jul 7 18:56:19 1998 Werner Koch (wk@isil.d.shuttle.de)
9823 * armor.c (find_header): Now makes sure that there is only one
9824 empty line for clearsigs, as this is what OP now says.
9826 Mon Jul 6 13:09:07 1998 Werner Koch (wk@isil.d.shuttle.de)
9828 * g10.c (main): New option default-secret-key
9829 * getkey.c (get_seckey_byname): support for this option.
9831 Mon Jul 6 09:03:49 1998 Werner Koch (wk@isil.d.shuttle.de)
9833 * getkey.c (add_keyring): Keyrings are now added to end of the
9834 list of keyrings. The first added keyringwill be created.
9835 (add_secret_keyring): Likewise.
9837 * ringedit.c (add_keyblock_resource): Files are created here.
9839 * g10.c (aNOP): Removed
9841 * getkey.c (lookup): Add checking of usage for name lookups
9842 * packet.h (pubkey_usage): Add a field which may be used to store
9844 * pkclist.c (build_pk_list): getkey now called with usage arg.
9845 * skclist.c (build_sk_list): Ditto.
9847 * sign.c (clearsign_file): Fixed "Hash:" headers
9849 Sat Jul 4 13:33:31 1998 Werner Koch (wk@isil.d.shuttle.de)
9851 * trustdb.c (list_ownertrust): New.
9852 * g10.c (aListOwnerTrust): New.
9854 * g10.c (def_pubkey_algo): Removed.
9856 * trustdb.c (verify_private_data): Removed and also the call to it.
9857 (sign_private_data): Removed.
9859 Fri Jul 3 13:26:10 1998 Werner Koch (wk@isil.d.shuttle.de)
9861 * g10.c (aEditKey): was aEditSig. Changed usage msg.
9863 * keyedit.c: Done some i18n stuff.
9865 * g10.c (do_not_use_RSA): New.
9866 * sign.c (do_sign): Add call to above function.
9867 * encode.c (write_pubkey_enc_from_list): Ditto.
9869 Thu Jul 2 21:01:25 1998 Werner Koch (wk@isil.d.shuttle.de)
9871 * parse-packet.c: Now is able sto store data of unknown
9873 * free-packet.c: Support for this.
9874 * build-packet.c: Can write data of packet with unknown algos.
9876 Thu Jul 2 11:46:36 1998 Werner Koch (wk@isil.d.shuttle.de)
9878 * parse-packet.c (parse): fixed 4 byte length header
9880 Wed Jul 1 12:36:55 1998 Werner Koch (wk@isil.d.shuttle.de)
9882 * packet.h (new_ctb): New field for some packets
9883 * build-packet.c (build_packet): Support for new_ctb
9884 * parse-packet.c (parse): Ditto.
9886 Mon Jun 29 12:54:45 1998 Werner Koch (wk@isil.d.shuttle.de)
9888 * packet.h: changed all "_cert" to "_key", "subcert" to "subkey".
9890 * free-packet.c (free_packet): Removed memory leak for subkeys.
9892 Sun Jun 28 18:32:27 1998 Werner Koch (wk@isil.d.shuttle.de)
9894 * import.c (import_keys): Renamed from import_pubkeys.
9895 (import_secret_one): New.
9897 * g10.c (aExportSecret): New.
9899 * export.c (export_seckeys): New.
9901 * parse-packet.c (parse_certificate): Cleaned up.
9902 (parse_packet): Trust packets are now considered as unknown.
9903 (parse_pubkey_warning): New.
9905 Fri Jun 26 10:37:35 1998 Werner Koch (wk@isil.d.shuttle.de)
9907 * keygen.c (has_invalid_email_chars): New.
9909 Wed Jun 24 16:40:22 1998 Werner Koch (wk@isil.d.shuttle.de)
9911 * armor.c (armor_filter): Now creates valid onepass_sig packets
9912 with all detected hash algorithms.
9913 * mainproc.c (proc_plaintext): Now uses the hash algos as specified
9914 in the onepass_sig packets (if there are any)
9916 Mon Jun 22 11:54:08 1998 Werner Koch (wk@isil.d.shuttle.de)
9918 * plaintext.c (handle_plaintext): add arg to disable outout
9919 * mainproc.c (proc_plaintext): disable output when in sigs_only mode.
9921 Thu Jun 18 13:17:27 1998 Werner Koch (wk@isil.d.shuttle.de)
9923 * keygen.c: Removed all rsa packet stuff, chnaged defaults
9926 Sun Jun 14 21:28:31 1998 Werner Koch (wk@isil.d.shuttle.de)
9928 * misc.c (checksum_u16): Fixed a stupid bug which caused a
9929 wrong checksum calculation for the secret key protection and
9930 add a backward compatibility option.
9931 * g10.c (main): Add option --emulate-checksum-bug.
9933 Thu Jun 11 13:26:44 1998 Werner Koch (wk@isil.d.shuttle.de)
9935 * packet.h: Major changes to the structure of public key material
9936 which is now stored in an array and not anaymore in a union of
9937 algorithm specific structures. These is needed to make the system
9938 more extendable and makes a lot of stuff much simpler. Changed
9939 all over the system.
9941 * dsa.c, rsa.c, elg.c: Removed.
9943 Wed Jun 10 07:22:02 1998 Werner Koch,mobil,,, (wk@tobold)
9945 * g10.c ("load-extension"): New option.
9947 Mon Jun 8 22:23:37 1998 Werner Koch (wk@isil.d.shuttle.de)
9949 * seckey-cert.c (do_check): Removed cipher constants
9950 (protect_secret_key): Ditto.
9952 Fri May 29 10:00:28 1998 Werner Koch (wk@isil.d.shuttle.de)
9954 * trustdb.c (query_trust_info): New.
9955 * keylist.c (list_one): Add output of trust info
9956 * mainproc (list_node): ditto.
9957 * g10.c (main): full trustdb init if -with-colons and any of the
9960 Thu May 28 10:34:42 1998 Werner Koch (wk@isil.d.shuttle.de)
9962 * status.c (STATUS_RSA_OR_IDEA): New.
9963 * sig-check.c (check_signature): Output special status message.
9964 * pubkey-enc.c (get_session_key): Ditto.
9966 * mainproc.c (check_sig_and_print): Changed format of output.
9967 * passpharse.c (passphrase_to_dek): Likewise.
9969 Wed May 27 13:46:48 1998 Werner Koch (wk@isil.d.shuttle.de)
9971 * g10.c (aListSecretKeys): New option --list-secret-keys
9972 * keylist.c (std_key_list): Renamed to public_key_list.
9973 (secret_key_list): New
9974 (list_one, list_all): Add support for secret keys.
9975 * getkey.c (get_secret_keyring): New.
9976 * mainproc.c (list_node): Add option --with-colons for secret keys
9978 * sig-check.c (check_key_signature): detection of selfsigs
9979 * mainproc.c (list_node): fixed listing.
9981 * g10.c (aListSecretKeys): New option --always-trust
9982 * pkclist.c (do_we_trust): Override per option added
9984 * status.c (write_status_text): Add a prefix to every output line.
9986 Wed May 27 07:49:21 1998 Werner Koch (wk@isil.d.shuttle.de)
9988 * g10 (--compress-keys): New.
9989 * options.h (compress_keys): New.
9990 * export.c (export_pubkeys): Only compresses with the new option.
9992 Tue May 26 11:24:33 1998 Werner Koch (wk@isil.d.shuttle.de)
9994 * passphrase.c (get_last_passphrase): New
9995 (set_next_passphrase): New.
9996 (passphrase_to_dek): add support for the above functions.
9997 * keyedit.c (make_keysig_packet): Add sigclass 0x18,
9998 changed all callers due to a new argument.
9999 * keygen.c (write_keybinding): New
10000 (generate_subkeypair): Add functionality
10001 (ask_algo, ask_keysize, ask_valid_days): Broke out of generate_keypair
10002 (ask_user_id, ask_passphrase): Ditto.
10004 Thu May 21 11:26:13 1998 Werner Koch (wk@isil.d.shuttle.de)
10006 * g10.c,gpgd.c (main): Does now return an int, so that egcs does
10009 * armor.c (fake_packet): Removed erro message and add a noticed
10010 that this part should be fixed.
10012 * sign.c (sign_file): Compression now comes in front of encryption.
10013 * encode.c (encode_simple): Ditto.
10014 (encode_crypt): Ditto.
10016 Tue May 19 16:18:19 1998 Werner Koch (wk@isil.d.shuttle.de)
10018 * armor.c (fake_packet): Changed assertion to log_error
10020 Sat May 16 16:02:06 1998 Werner Koch (wk@isil.d.shuttle.de)
10022 * build-packet.c (build_packet): Add SUBKEY packets.
10024 Fri May 15 17:57:23 1998 Werner Koch (wk@isil.d.shuttle.de)
10026 * sign.c (hash_for): New and used in all places here.
10027 * main.h (DEFAULT_): new macros.
10028 * g10.c (opt.def_digest_algo): Now set to 0
10030 * compress.c (init_compress): Add support for algo 1
10031 * options.h (def_compress_algo): New
10032 * g10.c (main): New option --compress-algo
10034 Fri May 15 13:23:59 1998 Werner Koch (wk@isil.d.shuttle.de)
10036 * g10.c (print_mds): New feature to print only one hash,
10037 chnaged formatting.
10039 Thu May 14 15:36:24 1998 Werner Koch (wk@isil.d.shuttle.de)
10041 * misc.c (trap_unaligned) [__alpha__]: New
10042 * g10.c (trap_unaligned): Add call to this to track down SIGBUS
10043 on Alphas (to avoid the slow emulation code).
10045 Wed May 13 11:48:27 1998 Werner Koch (wk@isil.d.shuttle.de)
10047 * build-packet.c (do_signature): Support for v4 pakets.
10048 * keyedit.c (make_keysig_packet): Ditto.
10049 * build-packet.c (build_sig_subpkt_from_sig): New.
10050 (build_sig_subpkt): New.
10052 * elg.c (g10_elg_sign): removed keyid_from_skc.
10053 * dsa.c (g10_dsa_sign): Ditto.
10054 * rsa.c (g10_rsa_sign): Ditto.
10055 * keyedit.c (make_keysig_packet): Add call to keyid_from_skc
10057 * sign.c (clearsign_file): Support for v4 signatures.
10058 (sign_file): Ditto.
10060 Wed May 6 09:31:24 1998 Werner Koch (wk@isil.d.shuttle.de)
10062 * parse-packet.c (do_parse): add support for 5 byte length leader.
10063 (parse_subpkt): Ditto.
10064 * build-packet.c (write_new_header): Ditto.
10066 * packet.h (SIGSUBPKT_): New constants.
10067 * parse-packet.c (parse_sig_subpkt): Changed name, made global,
10068 and arg to return packet length, chnaged all callers
10071 Tue May 5 22:11:59 1998 Werner Koch (wk@isil.d.shuttle.de)
10073 * keygen.c (gen_dsa): New.
10074 * build_packet.c (do_secret_cert): Support for DSA
10076 Mon May 4 19:01:25 1998 Werner Koch (wk@isil.d.shuttle.de)
10078 * compress.c: doubled buffer sizes
10079 * parse-packet.c (do_plaintext): now uses iobuf_read/write.
10081 Mon May 4 09:35:53 1998 Werner Koch (wk@isil.d.shuttle.de)
10083 * seskey.c (encode_md_value): Add optional argument hash_algo,
10084 changed all callers.
10086 * passphrase.c (make_dek_from_passphrase): Removed
10087 * (get_passhrase_hash): Changed name to passphrase_to_dek, add arg,
10088 changed all callers.
10090 * all: Introduced the new ELG identifier and added support for the
10091 encryption only one (which is okay to use by GNUPG for signatures).
10093 Sun May 3 17:50:26 1998 Werner Koch (wk@isil.d.shuttle.de)
10095 * packet.h (PKT_OLD_COMMENT): New name for type 16.
10096 * parse-packet.c (parse_comment): Now uses type 61
10098 Fri May 1 12:44:39 1998 Werner Koch,mobil,,, (wk@tobold)
10100 * packet.h (count): Chnaged s2k count from byte to u32.
10101 * seckey-cert.c (do_check): Changed s2k algo 3 to 4, changed
10103 * build-packet.c (do_secret_cert): ditto.
10104 * parse-packet.c (parse_certificate): ditto.
10106 * parse-packet.c (parse_symkeyenc): New.
10107 * build-packet.c (do_symkey_enc): New.
10109 Thu Apr 30 16:33:34 1998 Werner Koch (wk@isil.d.shuttle.de)
10111 * sign.c (clearsign_file): Fixed "Hash: " armor line.
10113 Tue Apr 28 14:27:42 1998 Werner Koch (wk@isil.d.shuttle.de)
10115 * parse-packet.c (parse_subpkt): Some new types.
10117 Mon Apr 27 12:53:59 1998 Werner Koch (wk@isil.d.shuttle.de)
10119 * g10.c (main): Add option --skip-verify.
10120 * mainproc.c (check_sig_and_print): Ditto.
10122 * g10.c (print_mds): Add output for Tiger.
10124 * sign.c (sign_file): Now uses partial length headers if used
10125 in canonical textmode (kludge to fix a bug).
10127 * parse-packet.c (parse_certificate): Changed BLOWFISH id.
10128 * pubkey-enc.c (get_session_key): Ditto.
10129 * seskey.c (make_session_key): Ditto.
10130 * seckey-cert.c (protect_secret_key,do_check): Add BLOWFISH160.
10132 Fri Apr 24 17:38:48 1998 Werner Koch,mobil,,, (wk@tobold)
10134 * sig-check.c (check_key_signature): Add sig-class 0x14..0x17
10135 * keyedit.c (sign-key): Some changes to start with support of
10136 the above new sig-classes.
10138 Wed Apr 22 09:01:57 1998 Werner Koch,mobil,,, (wk@tobold)
10140 * getkey.c (compare_name): add email matching
10142 Tue Apr 21 16:17:12 1998 Werner Koch,mobil,,, (wk@tobold)
10144 * armor.c (armor_filter): fixed missing last LF before CSUM.
10146 Thu Apr 9 11:35:22 1998 Werner Koch (wk@isil.d.shuttle.de)
10148 * seckey-cert.c (do_check): New; combines all the check functions
10151 * sign.c: removed all key management functions
10154 Thu Apr 9 09:49:36 1998 Werner Koch (wk@isil.d.shuttle.de)
10156 * import.c (chk_self_sigs): Changed an error message.
10158 Wed Apr 8 16:19:39 1998 Werner Koch (wk@isil.d.shuttle.de)
10160 * packet.h: packet structs now uses structs from the pubkey,
10161 removed all copy operations from packet to pubkey structs.
10163 Wed Apr 8 13:40:33 1998 Werner Koch (wk@isil.d.shuttle.de)
10165 * trustdb.c (verify_own_certs): Fixed "public key not found".
10167 * getkey.c (key_byname): New, combines public and secret key search.
10169 * pkclist.c (build_pkc_list): Add new arg usage, changed all callers.
10170 * skclist.c (build_skc_list): Likewise.
10172 * ringedit.c (find_keyblock, keyring_search2): Removed.
10174 Wed Apr 8 09:47:21 1998 Werner Koch (wk@isil.d.shuttle.de)
10176 * sig-check.c (do_check): Applied small fix from Ulf Möller.
10178 Tue Apr 7 19:28:07 1998 Werner Koch (wk@isil.d.shuttle.de)
10180 * cipher.c, encr-data.c, seckey-cert.c: Now uses cipher_xxxx
10181 functions instead of blowfish_xxx or cast_xxx
10183 Tue Apr 7 11:04:02 1998 Werner Koch (wk@isil.d.shuttle.de)
10185 * Makefile.am (g10maint.o): Changed the way it is created.
10187 Mon Apr 6 11:17:08 1998 Werner Koch (wk@isil.d.shuttle.de)
10190 * keygen.c (checksum,checksum_u16,checksum_mpi): Moved to misc.c
10191 * seckey-cert.c: Kludge for wrong ELG checksum implementation.
10193 Sat Apr 4 20:07:01 1998 Werner Koch (wk@isil.d.shuttle.de)
10195 * cipher.c (cipher_filter): Support for CAST5
10196 * encr-data.c (decode_filter): Ditto.
10197 (decrypt_data): Ditto.
10198 * seskey.c (make_session_key): Ditto.
10199 * seckey-cert.c (check_elg, check_dsa): Ditto,
10200 (protect_secret_key): Ditto.
10201 * pubkey-enc.c (get_session_key): Ditto.
10202 * passphrase.c (hash_passphrase): Ditto.
10204 Thu Apr 2 20:22:35 1998 Werner Koch (wk@isil.d.shuttle.de)
10208 Thu Apr 2 10:38:16 1998 Werner Koch (wk@isil.d.shuttle.de)
10210 * keygen.c (generate_keypair): Add valid_days stuff.
10211 * trustdb.c (check_trust): Add check for valid_days.
10213 Wed Apr 1 16:15:58 1998 Werner Koch (wk@isil.d.shuttle.de)
10215 * keygen.c (generate_keypair): Addional question whether the
10216 selected large keysize is really needed.
10218 Wed Apr 1 15:56:33 1998 Werner Koch (wk@isil.d.shuttle.de)
10220 * seckey-cert.c (protect_secret_key): merged protect_xxx to here.
10222 Wed Apr 1 10:34:46 1998 Werner Koch (wk@isil.d.shuttle.de)
10224 * Makefile.am (g10maint.c): Changed creation rule, so that it works
10225 on FreeBSD (missing CFLAGS).
10227 * parse-packet.c (parse_subkey): Removed.
10229 Thu Mar 19 15:22:36 1998 Werner Koch (wk@isil.d.shuttle.de)
10231 * ringedit.c (keyring_enum): Fixed problem with reading too
10232 many packets. Add support to read secret keyrings.
10234 * getkey.c (scan_keyring): Removed
10235 (lookup): New to replace scan_keyring.
10236 (scan_secret_keyring): Removed.
10239 Wed Mar 18 11:47:34 1998 Werner Koch (wk@isil.d.shuttle.de)
10241 * ringedit.c (enum_keyblocks): New read mode 11.
10243 * keyid.c (elg_fingerprint_md): New and changed all other functions
10244 to call this if the packet version is 4 or above.
10246 Tue Mar 17 20:46:16 1998 Werner Koch (wk@isil.d.shuttle.de)
10248 * parse-packet.c (parse_certificate): Add listing support for subkeys.
10250 Tue Mar 17 20:32:22 1998 Werner Koch (wk@isil.d.shuttle.de)
10252 * armor.c (is_armored): Allow marker packet.
10254 Thu Mar 12 13:36:49 1998 Werner Koch (wk@isil.d.shuttle.de)
10256 * trustdb.c (check_trust): Checks timestamp of pubkey.
10257 * sig-check. (do_check): Compares timestamps.
10259 Tue Mar 10 17:01:56 1998 Werner Koch (wk@isil.d.shuttle.de)
10261 * g10.c (main): Add call to init_signals.
10264 Mon Mar 9 12:43:42 1998 Werner Koch (wk@isil.d.shuttle.de)
10267 * packet.h, free-packet.c, parse-packet.c : Add support for DSA
10268 * sig-check.c, getkey.c, keyid.c, ringedit.c: Ditto.
10269 * seckey-cert.c: Ditto.
10271 * packet.h : Moved .digest_algo of signature packets to outer
10272 structure. Changed all references
10274 Sun Mar 8 13:06:42 1998 Werner Koch (wk@isil.d.shuttle.de)
10276 * openfile.c : Support for stdout filename "-".
10278 * mainproc.c (check_sig_and_print): Enhanced status output:
10279 * status.c (write_status_text): New.
10281 Fri Mar 6 16:10:54 1998 Werner Koch (wk@isil.d.shuttle.de)
10283 * kbnode.c (clone_kbnode): Fixed private_flag.
10285 * mainproc.c (list_node): Output of string "Revoked" as user-id.
10287 Fri Mar 6 14:26:39 1998 Werner Koch (wk@isil.d.shuttle.de)
10289 * g10.c (main): Add userids to "-kv" and cleaned up this stuff.
10291 Fri Mar 6 12:45:58 1998 Werner Koch (wk@isil.d.shuttle.de)
10293 * g10.c (main): Changed semantics of the list-... commands
10294 and added a new one. Removed option "-d"
10298 * trustdb.c (init_trustdb): Autocreate directory only if it ends
10301 Thu Mar 5 12:12:11 1998 Werner Koch (wk@isil.d.shuttle.de)
10303 * mainproc.c (do_proc_packets): New. Common part of proc_packet.
10304 (proc_signature_packets): special version to handle signature data.
10306 * g10.c (aVerify): New.
10307 * plaintext.c (hash_datafiles): New.
10308 * compress.c (handle_compressed): Add callback arg, changed caller.
10310 Thu Mar 5 10:20:06 1998 Werner Koch (wk@isil.d.shuttle.de)
10312 * g10.c: Is nom the common source for gpg and gpgm
10313 * g10maint.c: Removed
10314 * Makefile.am: Add rule to build g10maint.c
10316 Thu Mar 5 08:43:59 1998 Werner Koch (wk@isil.d.shuttle.de)
10318 * g10.c (main): Changed the way clear text sigs are faked.
10320 Wed Mar 4 19:47:37 1998 Werner Koch (wk@isil.d.shuttle.de)
10322 * g10maint.c (aMuttKeyList): New
10325 Wed Mar 4 17:20:33 1998 Werner Koch (wk@isil.d.shuttle.de)
10327 * getkey.c (get_pubkey_byname): Kludge to allow 0x prefix.
10329 Tue Mar 3 13:46:55 1998 Werner Koch (wk@isil.d.shuttle.de)
10331 * g10maint.c (main): New option --gen-random.
10333 Tue Mar 3 09:50:08 1998 Werner Koch (wk@isil.d.shuttle.de)
10335 * g10.c (aDeleteSecretKey): New.
10336 (aEditSig): Add option "--edit-key" as synonym for "--edit-sig".
10337 (aDeleteSecretKey): New.
10338 * getkey.c (seckey_available): New.
10339 * sign.c (delete_key): Enhanced to delete secret keys, changed all
10342 Mon Mar 2 21:23:48 1998 Werner Koch (wk@isil.d.shuttle.de)
10344 * pkc_list.c (build_pkc_list): Add interactive input of user ID.
10346 Mon Mar 2 20:54:05 1998 Werner Koch (wk@isil.d.shuttle.de)
10348 * pkclist.c (do_we_trust_pre): New.
10349 (add_ownertrust): Add message.
10350 * trustdb.c (enum_trust_web): Quick fix.
10352 Mon Mar 2 13:50:53 1998 Werner Koch (wk@isil.d.shuttle.de)
10354 * g10.c (main): New action aDeleteKey
10355 * sign.c (delete_key): New.
10357 Sun Mar 1 16:38:58 1998 Werner Koch (wk@isil.d.shuttle.de)
10359 * trustdb.c (do_check): No returns TRUST_UNDEFINED instead of
10362 Fri Feb 27 18:14:03 1998 Werner Koch (wk@isil.d.shuttle.de)
10364 * armor.c (find_header): Removed trailing CR on headers.
10366 Fri Feb 27 18:02:48 1998 Werner Koch (wk@isil.d.shuttle.de)
10368 * ringedit.c (keyring_search) [MINGW32]: Open and close file here
10369 because rename does not work on open files. Chnaged callers.
10371 Fri Feb 27 16:43:11 1998 Werner Koch (wk@isil.d.shuttle.de)
10373 * sig-check.c (do_check): Add an md_enable.
10374 * mainproc.c (do_check_sig): Use md_open in case of detached sig
10375 (proc_tree): Take detached sigs into account.
10377 Fri Feb 27 15:22:46 1998 Werner Koch (wk@isil.d.shuttle.de)
10379 * g10.c (main): Make use of GNUPGHOME envvar.
10380 * g10main.c (main): Ditto.
10382 Wed Feb 25 11:40:04 1998 Werner Koch (wk@isil.d.shuttle.de)
10384 * plaintext.c (ask_for_detached_datafile): add opt.verbose to
10387 * openfile.c (open_sigfile): Try also name ending in ".asc"
10389 Wed Feb 25 08:41:00 1998 Werner Koch (wk@isil.d.shuttle.de)
10391 * keygen.c (generate_keypair): Fixed memory overflow.
10393 Tue Feb 24 15:51:55 1998 Werner Koch (wk@isil.d.shuttle.de)
10395 * parse-packet.c (parse_certificate): Support for S2K.
10396 * build-packet.c (do_secret_cert): Ditto.
10397 * keygen.c (gen_elg): Ditto.
10398 * seckey-cert.c (check_elg): Ditto
10399 (protect_elg): Ditto.
10400 * sign.c (chnage_passphrase): Ditto.
10401 * passphrase.c (get_passphrase_hash): Support for a salt and
10402 changed all callers.
10403 (make_dek_from_passphrase): Ditto.
10405 Tue Feb 24 12:30:56 1998 Werner Koch (wk@isil.d.shuttle.de)
10407 * build-packet.c (hash_public_cert): Disabled debug output.
10409 Fri Feb 20 17:22:28 1998 Werner Koch (wk@isil.d.shuttle.de)
10411 * trustdb.c (init_trustdb) [MINGW32]: Removed 2nd mkdir arg.
10412 (keyring_copy) [MINGW32]: Add a remove prior to the renames.
10414 Wed Feb 18 18:39:02 1998 Werner Koch (wk@isil.d.shuttle.de)
10416 * Makefile.am (OMIT_DEPENDENCIES): New.
10418 * rsa.c: Replaced log_bug by BUG.
10420 Wed Feb 18 13:35:58 1998 Werner Koch (wk@isil.d.shuttle.de)
10422 * mainproc.c (do_check_sig): Now uses hash_public_cert.
10423 * parse-packet.c (parse_certificate): Removed hashing.
10424 * packet.h (public_cert): Removed hash variable.
10425 * free-packet.c (copy_public_cert, free_public_cert): Likewise.
10427 * sig-check.c (check_key_signatures): Changed semantics.
10429 Wed Feb 18 12:11:28 1998 Werner Koch (wk@isil.d.shuttle.de)
10431 * trustdb.c (do_check): Add handling for revocation certificates.
10432 (build_sigrecs): Ditto.
10433 (check_sigs): Ditto.
10435 Wed Feb 18 09:31:04 1998 Werner Koch (wk@isil.d.shuttle.de)
10437 * armor.c (armor_filter): Add afx->hdrlines.
10438 * revoke.c (gen_revoke): Add comment line.
10439 * dearmor.c (enarmor_file): Ditto.
10441 * sig-check.c (check_key_signature): Add handling for class 0x20.
10442 * mainproc.c : Ditto.
10444 Tue Feb 17 21:24:17 1998 Werner Koch (wk@isil.d.shuttle.de)
10446 * armor.c : Add header lines "...ARMORED FILE .."
10447 * dearmor.c (enarmor_file): New.
10448 * g10maint.c (main): New option "--enarmor"
10450 Tue Feb 17 19:03:33 1998 Werner Koch (wk@isil.d.shuttle.de)
10452 * mainproc.c : Changed a lot, because the packets are now stored
10453 a simple linlked list and not anymore in a complicatd tree structure.
10455 Tue Feb 17 10:14:48 1998 Werner Koch (wk@isil.d.shuttle.de)
10457 * free_packet.c (cmp_public_certs): New.
10458 (cmp_user_ids): New.
10460 * kbnode.c (clone_kbnode): New.
10461 (release_kbnode): Add clone support.
10463 * ringedit.c (find_keyblock_bypkc): New.
10465 * sign.c (remove_keysigs): Self signatures are now skipped,
10466 changed arguments and all callers.
10468 * import.c : Add functionality.
10470 Tue Feb 17 09:31:40 1998 Werner Koch (wk@isil.d.shuttle.de)
10472 * options.h (homedir): New option.
10473 * g10.c, g10maint.c, getkey.c, keygen.c, trustdb.c (opt.homedir): New.
10475 * trustdb.c (init_trustdb): mkdir for hoem directory
10476 (sign_private_data): Renamed "sig" to "g10.sig"
10478 Mon Feb 16 20:02:03 1998 Werner Koch (wk@isil.d.shuttle.de)
10480 * kbnode.c (commit_kbnode): New.
10481 (delete_kbnode): removed unused first arg. Changed all Callers.
10483 * ringedit.c (keyblock_resource_name): New.
10484 (get_keyblock_handle): NULL for filename returns default resource.
10486 Mon Feb 16 19:38:48 1998 Werner Koch (wk@isil.d.shuttle.de)
10488 * sig-check.s (check_key_signature): Now uses the supplied
10489 public key to check the signature and not any more the one
10492 (check_signature): Most work moved to do_check.
10494 Mon Feb 16 14:48:57 1998 Werner Koch (wk@isil.d.shuttle.de)
10496 * armor.c (find_header): Fixed another bug.
10498 Mon Feb 16 12:18:34 1998 Werner Koch (wk@isil.d.shuttle.de)
10500 * getkey.c (scan_keyring): Add handling of compressed keyrings.
10502 Mon Feb 16 10:44:51 1998 Werner Koch (wk@isil.d.shuttle.de)
10504 * g10.c, g10maint.c (strusage): Rewrote.
10507 Mon Feb 16 08:58:41 1998 Werner Koch (wk@isil.d.shuttle.de)
10509 * armor.c (use_armor): New.
10511 Sat Feb 14 14:30:57 1998 Werner Koch (wk@isil.d.shuttle.de)
10513 * mainproc.c (proc_tree): Sigclass fix.
10515 Sat Feb 14 14:16:33 1998 Werner Koch (wk@isil.d.shuttle.de)
10517 * armor.c (armor_filter): Changed version and comment string.
10518 * encode.c, sign.c, keygen.c: Changed all comment packet strings.
10520 Sat Feb 14 12:39:24 1998 Werner Koch (wk@isil.d.shuttle.de)
10522 * g10.c (aGenRevoke): New command.
10524 * sign.c (make_keysig_packet): Add support for sigclass 0x20.
10526 Fri Feb 13 20:18:14 1998 Werner Koch (wk@isil.d.shuttle.de)
10528 * ringedit.c (enum_keyblocks, keyring_enum): New.
10530 Fri Feb 13 19:33:40 1998 Werner Koch (wk@isil.d.shuttle.de)
10532 * export.c: Add functionality.
10534 * keygen.c (generate_keypair): Moved the leading comment behind the
10536 * kbnode.c (walk_kbnode): Fixed.
10538 * g10.c (main): listing armored keys now work.
10540 Fri Feb 13 16:17:43 1998 Werner Koch (wk@isil.d.shuttle.de)
10542 * parse-packet.c (parse_publickey, parse_signature): Fixed calls
10543 to mpi_read used for ELG b.
10545 Fri Feb 13 15:13:23 1998 Werner Koch (wk@isil.d.shuttle.de)
10547 * g10.c (main): changed formatting of help output.
10549 Thu Feb 12 22:24:42 1998 Werner Koch (wk@frodo)
10551 * pubkey-enc.c (get_session_key): rewritten
10554 Copyright 1998,1999,2000,2001,2002,2003,2004,2005,
10555 2006,2007,2008,2009 Free Software Foundation, Inc.
10557 This file is free software; as a special exception the author gives
10558 unlimited permission to copy and/or distribute it, with or without
10559 modifications, as long as this notice is preserved.
10561 This file is distributed in the hope that it will be useful, but
10562 WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
10563 implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.