1 2007-01-15 Werner Koch <wk@g10code.com>
3 * parse-packet.c (read_protected_v3_mpi): Make sure to stop
4 reading even for corrupted packets.
5 * keygen.c (generate_user_id): Need to allocate one byte more.
6 Reported by Felix von Leitner.
8 2006-12-21 Werner Koch <wk@g10code.com>
10 * gpg.c (main): New command --server.
11 * gpg.h (struct server_control_s, ctrl_t): New.
13 * verify.c (gpg_verify): New.
14 * mainproc.c (mainproc_context): Made SIGNED_DATA a structure.
15 (proc_signature_packets_by_fd): New.
16 (proc_compressed_cb): Divert depending on SIGNED_DATA.
17 * plaintext.c (hash_datafile_by_fd): New.
18 * mainproc.c (proc_tree): Use it here.
20 * verify.c (verify_signatures): Init AFX only when needed.
21 Don't leak a context on error.
22 (verify_one_file): Don't leak a context on error.
24 2006-12-07 Werner Koch <wk@g10code.com>
26 * openfile.c (copy_options_file): Use log_info instead of
27 log_error to avoid an error return of gpg due to a missing
30 2006-12-07 David Shaw <dshaw@jabberwocky.com>
32 * Makefile.am: Link to iconv for jnlib dependency.
34 2006-12-05 Werner Koch <wk@g10code.com>
36 * passphrase.c (passphrase_to_dek): Handle a Cancel request
38 * mainproc.c (proc_symkey_enc): Removed workaround for bogus cancel
40 * encode.c (encode_simple): Distinguish error message between
41 cancel and invalid passphrase.
42 (setup_symkey): Ditto.
43 * sign.c (sign_symencrypt_file): Ditto
44 * keyedit.c (change_passphrase): Allow cancellation.
45 * keygen.c (do_ask_passphrase): New arg R_CANCELED.
46 (generate_keypair): Handle a passphrase cancellation.
47 (generate_raw_key): Ditto.
48 (generate_subkeypair): Ditto.
50 2006-12-04 Werner Koch <wk@g10code.com>
52 * filter.h (armor_filter_context_t): New element REFCOUNT.
53 * armor.c (armor_filter): Made static.
54 (push_armor_filter, release_armor_context, new_armor_context): New.
55 (armor_filter): Release the context.
56 * gpg.c (main): Use new armor context functions and
58 * export.c (do_export): Ditto.
59 * encode.c (encode_simple, encode_crypt): Ditto.
60 * decrypt.c (decrypt_message, decrypt_messages): Ditto.
61 * dearmor.c (dearmor_file, enarmor_file): Ditto.
62 * verify.c (verify_signatures, verify_one_file): Ditto.
63 * sign.c (sign_file, clearsign_file, sign_symencrypt_file): Ditto.
64 * revoke.c (gen_desig_revoke, gen_revoke): Ditto.
65 * keyserver.c (keyserver_spawn): Ditto.
66 * keygen.c (output_control_s): Turn AFX fields into pointers.
67 (read_parameter_file): Allocate and release AFX fields.
68 (do_generate_keypair): Use push_armor_filter.
69 * import.c (import): Replace iobuf_push_filter2 hack by the new
72 2006-12-03 Werner Koch <wk@g10code.com>
74 * filter.h: New element REFCOUNT.
75 (handle_progress): Remove prototype.
76 * progress.c (new_progress_context, release_progress_context): New.
77 (progress_filter): Use new function to release context. Made static.
78 (handle_progress): Bumb reference counter. No more check for
79 enabled progress as this is handled by new_progress_context.
80 * verify.c (verify_signatures, verify_one_file): Replace stack
81 based progress context by a heap based one.
82 * sign.c (sign_file, clearsign_file, sign_symencrypt_file): Ditto.
83 * plaintext.c (ask_for_detached_datafile, hash_datafiles): Ditto.
84 * encode.c (encode_simple, encode_crypt): Ditto.
85 * decrypt.c (decrypt_message, decrypt_messages): Ditto.
87 * keyedit.c (menu_clean): Made strings translatable.
89 2006-12-03 David Shaw <dshaw@jabberwocky.com>
91 * keyedit.c (menu_clean): Show "already minimized" rather than
92 "already clean" when a minimized key is minimized again. From
95 2006-12-02 David Shaw <dshaw@jabberwocky.com>
97 * options.h, gpg.c (main), passphrase.c (passphrase_to_dek): Add
98 --passphrase-repeat option to control how many times gpg will
99 re-prompt for a passphrase to ensure the user has typed it
100 correctly. Defaults to 1.
102 2006-12-02 Werner Koch <wk@g10code.com>
104 * encr-data.c: Allocate DFX context on the heap and not on the
105 stack. Changes at several places. Fixes CVE-2006-6235.
107 2006-11-27 Werner Koch <wk@g10code.com>
109 * openfile.c (ask_outfile_name): Fixed buffer overflow occurring
110 if make_printable_string returns a longer string. Fixes bug 728.
112 2006-11-21 Werner Koch <wk@g10code.com>
114 * Makefile.am (needed_libs): libgnu needs to come after libcommon.
116 * keygen.c (ask_expire_interval): Print y2038 warning only for 32
118 (save_unprotected_key_to_card): Made RSA_N_LEN et al a size_t.
120 (get_parameter_algo): Allow "ELG" as alias for "ELG-E".
122 * seckey-cert.c (do_check): Made NBYTES a size_t.
123 (do_check): Made NDATA a size_t.
124 (protect_secret_key): Made NARR a size_t.
125 (protect_secret_key): Made NVYES a size_t.
126 * pubkey-enc.c (get_it): Made INDATALEN a size_t.
127 (get_it): Made NFRAME a size_t.
128 * keyid.c (hash_public_key): Made NBITS an unsigned int.
129 * misc.c (checksum_mpi): Made NBYTES a size_t.
130 (openpgp_pk_test_algo2): Made USE_BUF a size_t.
131 * seskey.c (encode_session_key): Made NFRAME a size_t.
132 (do_encode_md): Ditto.
133 (encode_md_value): Cast size_t argument of printf.
134 (encode_md_value): Ditto.
136 2006-11-10 Werner Koch <wk@g10code.com>
138 * parse-packet.c (mpi_read): Changed NREAD to size_t to match the
139 gcry_mpi-scan prototype.
140 (mpi_read): Fixed double increment of bytes read to correctly
141 detect overlong MPIs.
143 2006-11-05 Werner Koch <wk@g10code.com>
145 * gpg.c (main): Remove the default --require-cross-certification.
146 * options.skel: Enable require-cross-certification.
148 2006-10-31 Werner Koch <wk@g10code.com>
150 * pkclist.c (warn_missing_aes_from_pklist): New.
151 * encode.c (encrypt_filter, encode_crypt): Use it here.
153 2006-10-27 Werner Koch <wk@g10code.com>
155 * pkclist.c (warn_missing_mdc_from_pklist): New.
156 * encode.c (use_mdc): Use it here.
158 2006-10-24 Marcus Brinkmann <marcus@g10code.de>
160 * Makefile.am (AM_CFLAGS): Add $(LIBASSUAN_CFLAGS).
162 2006-10-23 Werner Koch <wk@g10code.com>
164 * gpg.c (main): New command --gpgconf-test.
166 * Makefile.am (bzip2_source): New.
168 2006-10-20 Werner Koch <wk@g10code.com>
170 * getkey.c (classify_user_id): Reserve '&' for search by keygrip.
172 2006-10-19 Werner Koch <wk@g10code.com>
174 * keygen.c (get_parameter_algo): Add special case for ELG_E which
175 is not supported by libgcrypt's mapping function.
177 2006-10-18 Werner Koch <wk@g10code.com>
179 * keyid.c (v3_keyid): Don't use mempcy as we need to hold the
180 keyids in the native endian format.
182 * import.c (import_print_stats): Use log_printf.
184 * build-packet.c (do_public_key): Care about mpi_write errors.
185 (do_secret_key, do_pubkey_enc, do_signature): Ditto.
186 (mpi_write): Print an extra warning on error.
188 2006-10-17 Werner Koch <wk@g10code.com>
190 * Makefile.am (LDADD): Replaced W32LIBS by NETLIBS.
192 2006-10-12 David Shaw <dshaw@jabberwocky.com>
194 * parse-packet.c (parse_symkeyenc): Show the unpacked as well as
195 the packed s2k iteration count.
197 * main.h, options.h, gpg.c (encode_s2k_iterations, main),
198 passphrase.c (hash_passphrase): Add --s2k-count option to specify
199 the number of s2k hash iterations.
201 2006-10-08 Werner Koch <wk@g10code.com>
203 * gpgv.c: Remove the tty stubs as we are now required to link to
204 tty anyway (it is included in libcommand and has dependencies to
205 other modules as well).
207 * keyedit.c (keyedit_menu): Use keyedit_completion only if
208 readline is available. It would be better to move this code into
211 2006-10-06 Werner Koch <wk@g10code.com>
213 * Makefile.am (AM_CFLAGS): Use PTH version of libassuan.
215 2006-10-06 David Shaw <dshaw@jabberwocky.com>
217 * keyserver.c (keyserver_spawn): Write the 16-digit keyid rather
218 than whatever key selector the user used on the command line.
220 2006-10-05 Werner Koch <wk@g10code.com>
222 * status.c (progress_cb): Changed to libgcrypt API.
223 (set_status_fd): Register the progress cb.
225 * seskey.c (encode_md_value): Check that the hash algo is valid
226 before getting the OID.
228 2006-10-04 Werner Koch <wk@g10code.com>
230 * passphrase.c: Allow for a static passphrase in batch mode.
232 * call-agent.c (agent_havekey): Removed.
233 (percent_plus_escape): New.
234 (agent_get_passphrase): New.
235 (agent_clear_passphrase): New.
237 * passphrase.c: Changed so that we always require the agent.
238 (agent_send_option, agent_send_all_options, agent_open): Removed.
239 (agent_get_passphrase): Cleaned up. Does now use the call-agent
240 functions. Renamed to
241 (passphrase_get): .. this. Changed all callers.
242 (passphrase_clear_cache): Rewritten.
243 (passphrase_to_dek, hash_passphrase): Re-indented.
245 * gpg.c (main): Made --use-agent a dummy option.
246 * seckey-cert.c (check_secret_key): We require the agent, so always
249 * gpg.c (main): Print a warning if -sat has been used.
250 (main): Removed the special treatment of the -k option. -k is now
251 an alias for --list-keys.
252 (main): Removed --list-ownertrust.
254 2006-10-02 Werner Koch <wk@g10code.com>
256 * encr-data.c (decrypt_data, mdc_decode_filter): Check the MDC
257 right here and don't let parse-packet handle the MDC.
259 2006-09-29 Werner Koch <wk@g10code.com>
261 * compress.c (do_uncompress): Removed use of Z_PARTIAL_FLUSH.
262 This is outdated and old zlib versions which still require it have
265 2006-09-27 Werner Koch <wk@g10code.com>
267 Replaced all STRLIST by strlist_t.
269 2006-09-21 Werner Koch <wk@g10code.com>
271 * signal.c (got_fatal_signal): Replaced readline stuff by a tty
274 * Makefile.am (LDADD): Include libgpgrl.a.
276 * gpg.c (main): Call gpg_rl_initialize.
278 * keyedit.c: Removed double inclusion of stdio.h.
280 2006-09-20 Werner Koch <wk@g10code.com>
282 * call-agent.c: Include asshelp.h.
283 (start_agent): Use send_pinentry_environment.
285 2006-09-14 Werner Koch <wk@g10code.com>
287 Replaced all call gpg_error_from_errno(errno) by
288 gpg_error_from_syserror().
290 2006-09-13 Werner Koch <wk@g10code.com>
292 * gpg.c (main): Made --require-cross-certification the default.
294 2006-09-06 Marcus Brinkmann <marcus@g10code.de>
296 * Makefile.am (gpg2_LDADD, gpgv2_LDADD): Replace -lassuan and
297 -lgpg-error with $(LIBASSUAN_LIBS) and $(GPG_ERROR_LIBS).
298 (AM_CFLAGS): Add $(LIBASSUAN_CFLAGS) and $(GPG_ERROR_CFLAGS).
300 2006-09-06 Werner Koch <wk@g10code.com>
302 * gpg.c (main): Enable new assuan API.
303 * call-agent.c: Changed to new Assuan API.
305 2006-09-01 Werner Koch <wk@g10code.com>
307 * call-agent.c: Do not force using the pipe server.
309 * gpg.c (main): Enable card related commands.
311 2006-08-22 Werner Koch <wk@g10code.com>
313 * mainproc.c (proc_plaintext): Fixed a #warning
315 2006-08-21 Werner Koch <wk@g10code.com>
317 * skclist.c (random_is_faked): Implemented.
318 (is_insecure): Also test for the old uppercase version of the
320 * gpg.c (main): Renamed --quick-random to debug-quick-quick-random.
322 * gpg.c (print_mds): Do not use the USE_SHA macros.
324 * mainproc.c (proc_encrypted): Remove assign inside condition for
327 * packet.h: Moved consts to new header ../common/openpgpdefs.h.
329 2006-08-16 Werner Koch <wk@g10code.com>
331 * keyserver.c (GPGKEYS_PREFIX): Rename to gpg2keys_. This is so
332 that we can install helpers from 1.4 and 2 without conflicts and
333 first of all don't get lost with weird bug reports.
335 * keyid.c (serialno_and_fpr_from_sk): New. Actually lost during
336 the last 1.4 to 1.9 merge.
338 * gpg.c (list_config): Output ccid-reader-id only for gnupg 1.
340 * call-agent.c (agent_scd_writekey): New.
341 (inq_writekey_parms): New.
343 * gpgv.c: Include call-agent.h for use by stubs.
345 * misc.c: Include call-agent.h for use by get_signature_count.
347 2006-07-27 Werner Koch <wk@g10code.com>
349 * parse-packet.c (parse_comment): Cap comments at 65k.
350 (parse_gpg_control): Skip too large control packets.
352 2006-07-24 David Shaw <dshaw@jabberwocky.com> (wk)
354 * keydb.h, pkclist.c (select_algo_from_prefs, algo_available):
355 Pass a union for preference hints rather than doing void * games.
357 * sign.c (sign_file): Use it here.
359 * sign.c (sign_file): When signing with multiple DSA keys, one
360 being DSA1 and one being DSA2 and encrypting at the same time, if
361 the recipient preferences give a hash that can work with the DSA2
362 key, then allow the DSA1 key to be promoted rather than giving up
363 and using hash_for().
365 * pkclist.c (algo_available): Automatically enable DSA2 mode when
366 handling a key that clearly isn't DSA1 (i.e. q!=160).
368 2006-06-30 Werner Koch <wk@g10code.com>
370 * misc.c (checksum_mpi): No need for nbits as they are alredy
371 included in the buffer.
373 2006-06-29 Werner Koch <wk@g10code.com>
375 * parse-packet.c (parse_signature, parse_key): Need store the
376 length of opaque data as number of bits.
377 * card-util.c (card_store_subkey): Ditto.
379 * mainproc.c (print_pkenc_list, check_sig_and_print): Replaced
380 log_get_stream by calls to log_printf. This avoids the extra LFs
381 inserted by the logging function. They are a bit too smart
383 * pkclist.c (do_show_revocation_reason): Print final LF through
384 log_printf to avoid extra LFs.
385 * pubkey-enc.c (get_it): Ditto.
387 * seskey.c (encode_md_value): Fix call to gcry.
389 2006-06-27 Werner Koch <wk@g10code.com>
391 Applied patches from 1.4.x (2006-05-22 to 2006-06-23) from David:
393 * keygen.c (keygen_upd_std_prefs, keygen_add_std_prefs)
394 (proc_parameter_file): Add --default-keyserver-url to specify a
395 keyserver URL at key generation time, and "Keyserver:" keyword for
396 doing the same through a batch file.
397 * options.h, gpg.c (main): Ditto.
399 * sign.c (do_sign): For now don't accept a truncated hash even
400 for DSA1 keys (be liberal in what you accept, etc).
402 * import.c (import_one): Add a flag (from_sk) so we don't check
403 prefs on an autoconverted public key. The check should only
404 happen on the sk side. Noted by Dirk Traulsen.
406 * keygen.c (gen_card_key): Add optional argument to return a
407 pointer (not a copy) of the stub secret key for the secret key we
408 just generated on the card.
409 (generate_card_subkeypair): Use it here so that the signing key on
410 the card can use the card to generate the 0x19 backsig on the
411 primary key. Noted by Janko Heilgeist and Jonas Oberg.
413 * parse-packet.c (parse_user_id): Cap the user ID size at 2048
414 bytes. This prevents a memory allocation attack with a very large
415 user ID. A very large packet length could even cause the
416 allocation (a u32) to wrap around to a small number. Noted by
417 Evgeny Legerov on full-disclosure.
419 * keygen.c (gen_dsa): Allow generating DSA2 keys. Allow
420 specifying sizes > 1024 when --enable-dsa2 is set. The size of q
421 is set automatically based on the key size.
422 (ask_keysize, generate_keypair): Ask for DSA size when
423 --enable-dsa2 is set.
425 * exec.c (make_tempdir) [W32]: Fix bug with a temporary directory
426 on W32 that is over 256 bytes long. Noted by Israel G. Lugo.
428 * gpg.c (reopen_std): New function to reopen fd 0, 1, or 2 if we
429 are called with them closed. This is to protect our
430 keyring/trustdb files from corruption if they get attached to one
431 of the standard fds. Print a warning if possible that this has
432 happened, and fail completely if we cannot reopen (should never
434 (main): Call it here.
436 * parse-packet.c (dump_sig_subpkt, parse_signature): Fix meaning
437 of key expiration and sig expiration subpackets - zero means
438 "never expire" according to 2440, not "expire instantly".
439 * build-packet.c (build_sig_subpkt_from_sig): Ditto.
440 * getkey.c (fixup_uidnode, merge_selfsigs_main)
441 (merge_selfsigs_subkey): Ditto.
442 * keygen.c (keygen_add_key_expire): Ditto.
444 * getkey.c (get_pubkey_byname)
445 * import.c (import_one): Fix key selection problem when
446 auto-key-locate returns a list of keys, not all of which are
447 usable (revoked, expired, etc). Noted by Simon Josefsson.
449 2006-05-24 Werner Koch <wk@g10code.com>
451 * keyid.c (hash_public_key): Do not double hash the length bytes,
452 they are already included by mpi_print.
454 * misc.c (openpgp_pk_test_algo2): Get test call right.
456 * misc.c (string_to_cipher_algo, string_to_digest_algo): New.
457 * keygen.c (keygen_set_std_prefs): use them here.
458 * gpg.c (main): and here.
460 2006-05-23 Werner Koch <wk@g10code.com>
462 * card-util.c (generate_card_keys): Removed temporary kludge for
465 * call-agent.c (agent_scd_setattr): Add arg SERIALNO.
466 (agent_scd_genkey): Ditto.
467 (agent_scd_change_pin): Ditto.
469 * call-agent.h (struct agent_card_info_s): Updated to match the
472 * Makefile.am (LDADD): Include ZLIBS.
474 * gpgv.c: Removed stubs not anymore useful due to libgcrypt.
476 2006-05-22 Werner Koch <wk@g10code.com>
478 * keyserver.c (keyidlist): Replaced mpi_get_keyid by v3_keyid.
479 * keydb.h (v3_keyid): Added.
481 * import.c (import): Better initialize KEYBLOCK as to quiet
484 * skclist.c (random_is_faked): New.
486 * mainproc.c: Include pka.h.
488 2006-05-19 Werner Koch <wk@g10code.com>
490 * misc.c (openpgp_pk_test_algo2): Need to use gcry_pk_algo_info
492 (string_count_chr): New.
494 * armor.c (parse_header_line): Use renamed function
495 length_sans_trailing_ws.
497 * options.h, gpg.c: Option --strict is not used thus removed code
500 2006-04-28 David Shaw <dshaw@jabberwocky.com> (wk)
502 * keyserver.c (direct_uri_map): New.
503 (keyserver_spawn): Used here to add "_uri" to certain gpgkeys_xxx
504 helpers when the meaning is different if a path is provided (i.e.
506 (keyserver_import_cert): Show warning if there is a CERT
507 fingerprint, but no --keyserver set.
509 * keyserver.c: Fix build problem with platforms that stick libcurl
510 in a place not in the regular include search path.
512 * options.h, gpg.c (main): Add --enable-dsa2 and --disable-dsa2.
515 * pkclist.c (algo_available): If --enable-dsa2 is set, we're
516 allowed to truncate hashes to fit DSA keys.
518 * sign.c (match_dsa_hash): New. Return the best match hash for a
520 (do_sign, hash_for, sign_file): When signing with a DSA key, if it
521 has q==160, assume it is an old DSA key and don't allow truncation
522 unless --enable-dsa2 is also set. q!=160 always allows truncation
523 since they must be DSA2 keys.
524 (make_keysig_packet): If the user doesn't specify a
525 --cert-digest-algo, use match_dsa_hash to pick the best hash for
528 * gpg.c (print_mds): Add SHA-224.
529 * armor.c (armor_filter, parse_hash_header): Add SHA-224.
531 * sign.c (write_plaintext_packet):
532 Factor common literal packet setup code from here, to...
533 * encode.c (encode_simple): .. there.
535 * main.h, plaintext.c (setup_plaintext_name): Here. New. Make sure
536 the literal packet filename field is UTF-8 encoded.
538 * options.h, gpg.c (main): Make sure --set-filename is UTF-8
539 encoded and note when filenames are already UTF-8.
541 * keyedit.c (menu_backsign): Give some more verbose errors when we
542 have no need to backsign.
544 * getkey.c (parse_auto_key_locate): Fix dupe-removal code.
546 * keyedit.c (menu_backsign): Allow backsigning even if the secret
547 subkey doesn't have a binding signature.
549 * armor.c (radix64_read): Don't report EOF when reading only a pad
550 (=) character. The EOF actually starts after the pad.
552 * gpg.c (main): Make --export, --send-keys, --recv-keys,
553 --refresh-keys, and --fetch-keys follow their arguments from left
554 to right. Suggested by Peter Palfrader.
556 2006-04-18 Werner Koch <wk@g10code.com>
558 * tdbio.c (open_db, migrate_from_v2): Removed feature to migration
559 from old trustdb version 2.
561 * gpg.c, mainproc.c: Removed pipemode feature.
563 * status.c: Removed shared memory coprocess stuff
565 Merged with current gpg 1.4.3 code.
567 * keygen.c, keyid.c, misc.c, openfile.c, verify.c, trustdb.c
568 * textfilter.c, tdbio.c, tdbdump.c, status.c, skclist.c, signal.c
569 * sign.c, sig-check.c, seskey.c, seckey-cert.c, revoke.c
570 * pubkey-enc.c, progress.c, plaintext.c, pkclist.c, photoid.c
571 * passphrase.c, parse-packet.c, mdfilter.c, mainproc.c
572 * keyserver.c, keyring.c, keylist.c, keyedit.c, keydb.c, kbnode.c
573 * import.c, getkey.c, gpgv.c, helptext.c, free-packet.c
574 * build-packet.c, cipher.c, compress.c, dearmor.c, decrypt.c
575 * delkey.c, encr-data.c, encode.c, exec.c, export.c
576 * gpg.c, armor.c: Updated from gnupg-1.4.3 and merged back gcry and
577 gnupg-1.9 related changes.
578 * trustdb.h, tdbio.h, status.h, photoid.h, packet.h, options.h
579 * main.h, keyserver-internal.h, keyring.h, keydb.h, filter.h
581 * global.h: Removed after merging constants with gpg.h.
582 * comment.c, pipemode.c: Removed.
583 * card-util.c: Updated from gnupg-1.4.3.
584 * compress-bz2.c: New.
586 2005-06-15 Werner Koch <wk@g10code.com>
588 * g10.c (print_hashline, add_group): Fixes for signed/unsigned
589 pointer mismatch warnings.
591 2005-06-01 Werner Koch <wk@g10code.com>
593 * mkdtemp.c: Removed.
594 * exec.c: Include mkdtemp.h
596 2004-12-21 Werner Koch <wk@g10code.com>
598 * gpgv.c, g10.c (main): Use default_hoemdir ().
600 2004-12-18 Werner Koch <wk@g10code.com>
602 * gpg.h (map_assuan_err): Define in terms of
603 map_assuan_err_with_source.
605 2004-12-15 Werner Koch <wk@g10code.com>
607 * Makefile.am (LDADD): Remove ZLIBS.
609 2004-10-22 Werner Koch <wk@g10code.com>
611 * g10.c (main): Display a bit fat warning that this gpg should not
614 * card-util.c (fetch_url): Disable for gnupg 1.9
615 (card_generate_subkey): Ditto.
616 (card_store_subkey): Ditto.
618 2004-09-30 Werner Koch <wk@g10code.com>
620 * gpgv.c (i18n_init): Always use LC_ALL.
622 * Makefile.am (LDADD): Adjusted for gettext 0.14.
624 2004-09-20 Werner Koch <wk@g10code.com>
626 * keyedit.c (show_key_with_all_names): Print the card S/N.
628 2004-09-11 Moritz Schulte <moritz@g10code.com>
630 * openfile.c (copy_options_file): Fixed last commit (added a `+').
632 2004-08-31 Werner Koch <wk@g10code.de>
634 * openfile.c (copy_options_file): Use gpg-conf.skel. Better take
635 the length of SKELEXT into account, someone might make it larger.
636 * Makefile.am: Install options.skel as gpg-conf.skel.
638 2004-08-18 Marcus Brinkmann <marcus@g10code.de>
640 * passphrase.c (agent_get_passphrase): Fix detection of gpg-agent
643 2004-07-01 Werner Koch <wk@gnupg.org>
645 * card-util.c (change_login): Kludge to allow reading data from a
647 (card_edit): Pass ARG_STRING to change_login.
648 (card_status): Print CA fingerprints.
650 (card_edit): New command CAFPR.
652 * call-agent.h: Add members for CA fingerprints.
653 * call-agent.c (agent_release_card_info): Invalid them.
654 (learn_status_cb): Store them.
656 2004-04-30 Werner Koch <wk@gnupg.org>
658 * g10.c (main) <gpgconf>: Use gpg.conf and not /dev/null as
661 2004-04-28 Werner Koch <wk@gnupg.org>
663 * card-util.c (card_edit): Remove PIN verification.
664 (generate_card_keys): New arg SERIALNO. Do PIN verification here
665 after resetting forced_chv1.
667 2004-04-26 Werner Koch <wk@gnupg.org>
669 * card-util.c (change_name): Check that the NAME is not too long.
670 (change_url): Likewise.
671 (change_login): Likewise.
673 2004-03-23 Werner Koch <wk@gnupg.org>
675 * g10.c: New options --gpgconf-list, --debug-level and --log-file
676 (set_debug): Add arg DEBUG_LEVEL.
677 (main): Look at less and less version specific config files. From
680 2004-02-17 Werner Koch <wk@gnupg.org>
682 * call-agent.c (start_agent): Ignore an empty GPG_AGENT_INFO.
683 * passphrase.c (agent_open): Ditto.
685 2004-02-12 Werner Koch <wk@gnupg.org>
687 * gpgv.c: Removed g10defs.h.
689 * Makefile.am: Include cmacros.am for common flags.
691 2004-02-11 Werner Koch <wk@gnupg.org>
693 * openfile.c (try_make_homedir): Use GNUPG_DEFAULT_HOMEDIR.
694 * gpgv.c (main): Ditto.
695 * g10.c (main): Ditto.
697 2004-01-19 Moritz Schulte <mo@g10code.com>
699 * keygen.c (do_generate_keypair): Print member fname, instead of
701 (do_generate_keypair): Don't try to execute certain pieces of code
702 in case an error occured.
703 (gen_card_key): Don't print out a message, which is already
704 printed by do_generate_keypair().
706 2004-01-18 Moritz Schulte <mo@g10code.com>
708 * keygen.c (do_generate_keypair): Print member fname, instead of
711 2003-12-17 Werner Koch <wk@gnupg.org>
713 * card-util.c (print_name): Fixed bad format string usage.
714 (print_isoname): Ditto.
716 * trustdb.c (check_regexp): s/exp/expr/.
718 * keyedit.c (trustsig_prompt): Removed a "> 255" term; it is
719 always false due to the data type.
721 * passphrase.c (agent_get_passphrase): Use xasprintf and avoid
722 non-literal format strings.
724 * tdbio.c (upd_hashtable, drop_from_hashtable, lookup_hashtable):
725 Fixed log_error format string bugs. Kudos to the now working
726 gcc-3.3 -Wformat-nonliteral and Florian Weimer's investigations in
729 2003-12-15 Werner Koch <wk@gnupg.org>
731 * seckey-cert.c (protect_secret_key): Use gry_create_nonce for the
732 IV; there is not need for real strong random here and it even
733 better protect the random bits used for the key.
735 2003-11-16 Moritz Schulte <mo@g10code.com>
737 * signal.c: Removed unused file.
739 2003-11-10 Moritz Schulte <mo@g10code.com>
741 * Makefile.am (INCLUDES): Added: @LIBGCRYPT_CFLAGS@.
743 2003-10-25 Werner Koch <wk@gnupg.org>
745 * call-agent.c (learn_status_cb, scd_genkey_cb): Fixed faulty use
748 2003-10-20 Werner Koch <wk@gnupg.org>
750 * card-util.c (card_edit): New command "passwd". Add logic to
751 check the PIN in advance.
752 (card_status): Add new args to return the serial number. Changed
754 * call-agent.c (agent_scd_checkpin): New.
756 2003-10-08 Werner Koch <wk@gnupg.org>
758 * call-agent.c (agent_scd_getattr): Don't clear the passed info
759 structure, so that it can indeed be updated.
761 * card-util.c (fpr_is_zero): New.
762 (generate_card_keys): New.
763 (card_edit): New command "generate".
764 * keygen.c (generate_keypair): New arg CARD_SERIALNO, removed call
766 (check_smartcard,show_smartcard): Removed.
767 (show_sha1_fpr,fpr_is_zero): Removed.
769 2003-10-01 Werner Koch <wk@gnupg.org>
771 * card-util.c: Tweaked to use this source also under 1.3.
773 2003-09-30 Werner Koch <wk@gnupg.org>
775 * keylist.c (print_card_serialno): New.
776 (list_keyblock_print): Use it here.
778 * card-util.c (toggle_forcesig): New.
779 (card_edit): New command "forcesig".
781 * card-util.c (print_name, print_isoname): Use 0 and not LF fro
782 the max_n arg of tty_print_utf8_string2.
784 * call-agent.c (agent_scd_getattr): New.
785 (learn_status_cb): Release values before assignment so that it can
786 be used by getattr to update the structure.
788 * card-util.c (change_pin): Simplified. We now have only a PIN
791 2003-09-27 Werner Koch <wk@gnupg.org>
793 * sign.c (do_sign): Removed disabled testcode.
795 2003-09-26 Timo Schulz <twoaday@freakmail.de>
797 * card_status (card_status): Do not use fputs since the fp
798 parameter can be NULL. This fixes a segv.
800 2003-09-24 Werner Koch <wk@gnupg.org>
802 * card-util.c (print_isoname,card_status): Handle opt.with_colons.
803 (print_sha1_fpr_colon): New.
805 2003-09-23 Werner Koch <wk@gnupg.org>
807 Merged most of David Shaw's changes in 1.3 since 2003-06-03.
809 * Makefile.am: Include W32LIBS where appropriate.
811 * armor.c (parse_hash_header,armor_filter): Drop TIGER/192 support.
812 * g10.c (print_hex,print_mds): Ditto.
813 * pkclist.c (algo_available): Ditto.
815 * armor.c (armor_filter): Allow using --comment multiple times to
816 get multiple Comment header lines. --no-comments resets list.
817 * options.h, g10.c (main): Ditto. Deprecate --default-comment in
818 favor of --no-comments.
820 * g10.c (main): Trim --help to commonly used options. Remove -f.
822 * g10.c (main): Add --multifile as an alias to turn --encrypt into
823 --encrypt-files (plus --verify-files, --decrypt-files). Error out
824 if --multifile is used with the commands that don't support it yet.
826 * encode.c (use_mdc), g10.c (main): Use RFC1991 and RFC2440
827 directly to check for MDC usability. Do not set the force_mdc or
828 disable_mdc flags since there is no point any longer.
830 * g10.c (main): Use "keyserver-url" instead of
831 "preferred-keyserver" for the sake of short and simple commands.
832 (add_keyserver_url): Clarify a few strings. It's a
833 "preferred keyserver URL".
834 * keyedit.c (keyedit_menu): Ditto.
835 * sign.c (mk_notation_policy_etc): Ditto.
837 * main.h, keygen.c (keygen_add_keyserver_url): Signature callback
838 for adding a keyserver URL.
839 * keyedit.c (keyedit_menu, menu_set_keyserver_url): New command to
840 set preferred keyserver to specified (or all) user IDs.
841 * build-packet.c (build_sig_subpkt): Set preferred keyserver flag
842 while building a preferred keyserver subpacket.
844 * keylist.c (show_policy_url, show_keyserver_url): URLs might be
847 * keyedit.c (menu_addrevoker): Fix leaking a few bytes.
849 * keyedit.c (show_key_with_all_names): Use list-option
850 show-long-keyid in main --edit-key display.
852 * keyedit.c (print_and_check_one_sig): Use list-option
853 show-long-keyid in --edit-key "check" function.
855 * passphrase.c (agent_send_all_options): Make use of $GPG_TTY.
857 * g10.c (main): Disable use-agent if passphrase-fd is given
858 later. Suggested by Kurt Garloff.
860 * exec.c, g10.c, gpgv.c, passphrase.c, photoid.c:
861 s/__MINGW32__/_WIN32/ to help building on native Windows
862 compilers. Requested by Brian Gladman. From Werner on stable
865 * options.h, g10.c (main): Add list-option
866 list-preferred-keyserver.
868 * keyedit.c (change_passphrase): When responding 'no' to the blank
869 passphrase question, re-prompt for a new passphrase. This is bug
872 * mainproc.c (check_sig_and_print): Use two different preferred
873 keyserver displays - one if the key is not present (to tell the
874 user where to get the key), the other if it is present (to tell
875 the user where the key can be refreshed).
877 * packet.h, parse-packet.c (parse_signature): Set flag if a
878 preferred keyserver is present.
880 * keylist.c (list_keyblock_print): Show keyserver url in listings
881 with list-option show-keyserver-url.
883 * mainproc.c (check_sig_and_print): Get the uid validity before
884 printing any sig results to avoid munging the output with trustdb
887 * g10.c (main): Don't include --show-keyring in --help as it is
890 * options.skel: Note that keyserver.pgp.com isn't synchronized,
891 and explain the roundrobin a bit better.
893 * sig-check.c (check_key_signature2), import.c (import_one,
894 import_revoke_cert, chk_self_sigs, delete_inv_parts,
895 collapse_uids, merge_blocks): Make much quieter during import of
896 slightly munged, but recoverable, keys. Use log_error for
897 unrecoverable import failures.
899 * keyring.c (keyring_rebuild_cache): Comment.
901 * sign.c (mk_notation_and_policy): Making a v3 signature with
902 notations or policy urls is an error, not an info (i.e. increment
903 the errorcount). Don't print the notation or policy url to stdout
904 since it can be mixed into the output stream when piping and munge
907 * packet.h, sig-check.c (signature_check2, do_check,
908 do_check_messages): Provide a signing-key-is-revoked flag. Change
911 * status.h, status.c (get_status_string): New REVKEYSIG status tag
912 for a good signature from a revoked key.
914 * mainproc.c (do_check_sig, check_sig_and_print): Use it here.
916 * import.c (import_revoke_cert, merge_blocks, merge_sigs): Compare
917 actual signatures on import rather than using keyid or class
918 matching. This does not change actual behavior with a key, but
919 does mean that all sigs are imported whether they will be used or
922 * parse-packet.c (parse_signature): Don't give "signature packet
923 without xxxx" warnings for experimental pk algorithms. An
924 experimental algorithm may not have a notion of (for example) a
925 keyid (i.e. PGP's x.509 stuff).
927 * options.h, g10.c (main), keylist.c (list_keyblock_print),
928 keyedit.c (print_and_check_one_sig): New "show-sig-expire"
929 list-option to show signature expiration dates (if any).
931 * options.h, g10.c (main, add_keyserver_url): Add
932 --sig-preferred-keyserver to implant a "where to get my key"
933 subpacket into a signature.
935 * sign.c (mk_notation_and_policy): Rename to
936 mk_notation_policy_etc and add preferred keyserver support for
939 * keygen.c (do_add_key_flags): Don't set the certify flag for
941 (ask_algo): Provide key flags for DSA, Elgamal_e, and Elgamal
943 (generate_keypair): Provide key flags for the default DSA/Elgamal
946 * sig-check.c (signature_check, signature_check2,
947 check_key_signature, check_key_signature2): Allow passing NULLs
948 for unused parameters in the x2 form of each function to avoid the
949 need for dummy variables. getkey.c, mainproc.c: Change all
952 * trustdb.h, trustdb.c (read_trust_options): New. Returns items
953 from the trustdb version record.
954 * keylist.c (public_key_list): Use it here for the new "tru"
956 * gpgv.c (read_trust_options): Stub.
958 * keyedit.c (show_key_with_all_names): Use list-option
959 show-validity in --edit-key interface as well.
961 * options.h, g10.c (main), mainproc.c (check_sig_and_print): Add
962 verify-options "show-validity" and "show-long-keyid" to show
963 trustdb validity and long keyids during (file) signature
966 * packet.h, main.h, sig-check.c (signature_check2)
967 (check_key_signature2, do_check): If ret_pk is set, fill in the pk
968 used to verify the signature. Change all callers in getkey.c,
969 mainproc.c, and sig-check.c.
971 * keylist.c (list_keyblock_colon): Use the ret_pk from above to
972 put the fingerprint of the signing key in "sig" records during a
973 --with-colons --check-sigs. This requires --no-sig-cache as well
974 since we don't cache fingerprints.
976 * parse-packet.c (parse_signature): No need to reserve 8 bytes for
977 the unhashed signature cache any longer.
979 * misc.c (pct_expando): Add two new expandos - signer's
980 fingerprint (%g), and signer's primary fingerprint (%p).
982 * g10.c (main): Add --rfc2440 alias for --openpgp since in a few
983 months, they won't be the same thing.
985 * keyserver.c (parse_keyserver_uri): Accept "http" as an alias for
986 "hkp", since it is occasionally written that way.
987 (keyserver_spawn): Use ascii_isspace to avoid locale issues.
989 * keygen.c (ask_user_id): Make --allow-freeform-uid apply to the
990 email field as well as the name field, and allow mixing fields
993 * trustdb.c (validate_one_keyblock): Certifications on revoked or
994 expired uids do not count in the web of trust.
996 * signal.c (init_one_signal, pause_on_sigusr, do_block): Only use
997 sigprocmask() if we have sigset_t, and only use sigaction() if we
998 have struct sigaction. This is for Forte c89 on Solaris which
999 seems to define only the function call half of the two pairs by
1001 (pause_on_sigusr): Typo.
1002 (do_block): If we can't use sigprocmask() and sigset_t, try to get
1003 the number of signals from NSIG as well as MAXSIG, and if we
1004 can't, fail with an explanation.
1006 * signal.c, tdbio.c: Comment out the transaction code. It was not
1007 used in this version, and was causing some build problems on
1008 quasi-posix platforms (Solaris and Forte c89).
1010 * keylist.c (list_keyblock_colon): Don't include validity values
1011 when listing secret keys since they can be incorrect and/or
1012 misleading. This is a temporary kludge, and will be handled
1013 properly in 1.9/2.0.
1015 * mainproc.c (check_sig_and_print): Only show the "key available
1016 from" preferred keyserver line if the key is not currently
1019 * keyedit.c (sign_uids): Do not sign expired uids without --expert
1020 (same behavior as revoked uids). Do not allow signing a user ID
1021 without a self-signature. --expert overrides. Add additional
1022 prompt to the signature level question.
1023 (menu_expire): When changing expiration dates, don't replace
1024 selfsigs on revoked uids since this would effectively unrevoke
1025 them. There is also no point in replacing expired selfsigs. This
1028 * g10.c (add_notation_data): Make sure that only ascii is passed
1029 to iscntrl. Noted by Christian Biere.
1030 * getkey.c (classify_user_id2): Replaced isspace by spacep
1031 * keygen.c (ask_user_id): Ditto.
1032 (get_parameter_algo): Ditto.
1033 * keyedit.c (keyedit_menu): Ditto.
1034 * tdbdump.c (import_ownertrust): Ditto. s/isxdigit/hexdigitp/.
1035 * revoke.c (ask_revocation_reason):
1036 * keyserver.c (keyserver_spawn): Dito.
1038 * parse-packet.c (parse): Disallow old style partial length for
1039 all key material packets to avoid possible corruption of keyrings.
1041 * import.c (import_keys_internal): Invalidate the cache so that
1042 the file descriptor gets closed. Fixes bug reported by Juan
1045 * options.h, g10.c (main), main.h, keylist.c (show_keyserver_url),
1046 mainproc.c (check_sig_and_print), parse-packet.c (dump_sig_subpkt,
1047 parse_one_sig_subpkt, can_handle_critical): Add read-only support
1048 for preferred keyserver subpackets. They're basically policy URLs
1049 with a different name. Add a verify-option
1050 "show-preferred-keyserver" to turn them on and off (on by default,
1051 as per stable branch).
1053 * g10.c (main): Add "--set-notation" as alias to "--notation-data"
1054 this is to make things consistent with --set-policy-url meaning
1055 both sigs and certs.
1057 * options.h, g10.c (main), keylist.c (list_keyblock_print): Add
1058 "show-validity" and "show-long-keyid" list-options.
1060 * gpgv.c (get_validity, trust_value_to_string): Stubs.
1062 * g10.c (main): Use SAFE_VERSION instead of VERSION in the
1063 version-specific gpg.conf file so it can be overridden on RISCOS.
1065 * keyedit.c (show_key_with_all_names): Fix assertion failure when
1066 using toggle to see a secret key. Reported by Maxim Britov.
1069 2003-09-22 Timo Schulz <twoaday@freakmail.de>
1071 * card-util.c (card_status): Free pk in case of an error
1072 and return if the card is no OpenPGP card.
1074 2003-09-18 Werner Koch <wk@gnupg.org>
1076 * g10.c: New command --card-edit.
1077 * card-util.c (card_status): Use tty_fprintf for all output.
1078 (print_sha1_fpr, print_isoname): Ditto.
1079 (get_one_name,change_name, change_url, change_login,change_lang)
1080 (change_sex): New; taken from keygen.c.
1081 * keygen.c (smartcard_get_one_name, smartcard_change_name)
1082 (smartcard_change_url, smartcard_change_login_data)
1083 (smartcard_change_lang, smartcard_change_sex): Removed.
1084 (check_smartcard): Removed most menu items.
1086 2003-09-06 Werner Koch <wk@gnupg.org>
1088 * misc.c (openpgp_pk_algo_usage): Allow AUTH where SIGN is allowed.
1090 * keygen.c (ask_passphrase): No need to allocated S2K in secure
1093 2003-09-04 Werner Koch <wk@gnupg.org>
1095 * keygen.c (do_add_key_flags, parse_parameter_usage)
1096 (do_generate_keypair): Add support the proposed AUTH key flag.
1097 * getkey.c (fixup_uidnode, merge_selfsigs_main)
1098 (merge_selfsigs_subkey, premerge_public_with_secret): Ditto.
1099 * keylist.c (print_capabilities): Ditto.
1101 2003-08-25 Timo Schulz <twoaday@freakmail.de>
1103 * pkglue.c (mpi_from_sexp): New. Used to factor out
1106 2003-08-24 Werner Koch <wk@gnupg.org>
1108 * keygen.c (do_generate_keypair): Print a reminder to use --gen-revoke.
1110 2003-08-18 Timo Schulz <twoaday@freakmail.de>
1112 * encode.c (encode_sesskey): Checked the code and removed
1113 the warning since all compatibility checks with PGP succeeded.
1114 * mainproc.c (symkey_decrypt_sesskey): Better check for the
1115 algorithm and check the return values of some functions.
1116 * mdc.c (use_mdc): Simplified.
1118 2003-08-07 Werner Koch <wk@gnupg.org>
1120 * pkglue.c (pk_sign): Fix last change.
1121 (pk_verify): Check for valid DATA array so that we don't segv in
1125 2003-08-06 Werner Koch <wk@gnupg.org>
1127 * pkglue.c (pk_sign): Allow signing using RSA.
1129 2003-08-05 Werner Koch <wk@gnupg.org>
1131 * Makefile.am (install-data-local): Dropped check for the ancient
1133 (bin_PROGRAMS): Renamed gpg to gpg2 and gpgv to gpgv2. This is so
1134 that it won't conflict with the current stable version of gpg.
1136 * pkglue.c (pk_check_secret_key): New.
1137 * seckey-cert.c (do_check): Reenable this test here again.
1139 * g10.c (main): Add command -K as an alias for
1140 --list-secret-keys. Command "-k" is now an alias to --list-keys.
1141 Remove special treatment of -kv and -kvv.
1143 (main): Strip a "-cvs" suffix when testing for a version specific
1146 * status.h, status.c, g10.c [USE_SHM_COPROCESSING]: Removed. This
1147 is not any longer available.
1149 2003-07-29 Werner Koch <wk@gnupg.org>
1151 * g10.c (main): Add secmem features and set the random seed file.
1152 (g10_exit): Update the random seed file.
1154 * parse-packet.c (parse_signature,read_protected_v3_mpi)
1155 (parse_key): Fixed use of mpi_set_opaque.
1156 * keygen.c (gen_card_key): Ditto.
1158 2003-07-28 Werner Koch <wk@gnupg.org>
1160 * status.c (progress_cb): Adjusted for use with Libcgrypt.
1161 (set_status_fd): Register that callback.
1163 * keygen.c (smartcard_change_login_data): New.
1164 (smartcard_change_lang): New.
1165 (smartcard_change_sex): New.
1166 (check_smartcard): Add menu entries to edit the above.
1167 (gen_elg,gen_dsa,gen_rsa): Reimplemented in terms of Libgcrypt.
1168 (genhelp_protect, genhelp_factors, key_from_sexp): New.
1169 * comment.c (make_comment_node_from_buffer): New.
1170 (make_comment_node): Reimplemented in terms of above.
1172 2003-07-27 Werner Koch <wk@gnupg.org>
1174 Adjusted for gcry_mpi_print and gcry_mpi_scan API change.
1176 2003-07-24 Werner Koch <wk@gnupg.org>
1178 * g10.c: New command --card-status.
1179 * card-util.c (card_status): New.
1180 * call-agent.c (learn_status_cb): Parse more information.
1182 * keylist.c (print_pubkey_info): Add FP arg for optional printing
1183 to a stream. Changed all callers.
1185 2003-07-23 Werner Koch <wk@gnupg.org>
1187 * keygen.c (generate_keypair): Create an AUTHKEYTYPE entry for cards.
1188 (do_generate_keypair): Abd generate the authkey.
1189 (check_smartcard): Changed menu accordingly.
1191 2003-07-22 Werner Koch <wk@gnupg.org>
1193 * g10.c: New command --change-pin.
1195 * call-agent.c (agent_scd_change_pin): New.
1196 (agent_release_card_info): New.
1197 * keygen.c (check_smartcard): Use it here.
1199 2003-07-16 Werner Koch <wk@gnupg.org>
1201 * export.c (parse_export_options): New option sexp-format.
1202 (export_seckeys,export_secsubkeys): Check sexp-format option.
1203 (do_export): Ignore armor for sexp format.
1204 (do_export_stream): Handle sexp-format.
1205 (write_sexp_line,write_sexp_keyparm, build_sexp_seckey): New.
1208 2003-07-03 Werner Koch <wk@gnupg.org>
1210 * options.h (DBG_CIPHER): Reintroduced it.
1211 * seskey.c (encode_session_key): Debug output of the session key.
1213 * pubkey-enc.c (get_it): Handle card case.
1214 * call-agent.c (agent_scd_pkdecrypt): New.
1215 * pkglue.c (pk_encrypt): Add RSA support.
1217 * g10.c (main): Default to --use-agent.
1219 * keygen.c (show_smartcard): Print info about the public key.
1220 (check_smartcard): Check for existing key here.
1221 (gen_card_key): And not anymore here.
1223 (generate_keypair): Generate both keys for a card.
1224 (smartcard_change_url): Nw.
1226 2003-07-02 Werner Koch <wk@gnupg.org>
1228 * seckey-cert.c (is_secret_key_protected): Let it handle mode 1002.
1230 2003-07-01 Werner Koch <wk@gnupg.org>
1232 * keygen.c (gen_card_key): Obviously we should use the creation
1233 date received from SCDAEMON, so that the fingerprints will match.
1234 * sign.c (do_sign): Pass the serialno to the sign code.
1235 * keyid.c (serialno_and_fpr_from_sk): New.
1237 2003-06-30 Werner Koch <wk@gnupg.org>
1239 * call-agent.h (agent_card_info_s): Add field serialno.
1240 * call-agent.c (store_serialno): New.
1241 (learn_status_cb): Store the serial number.
1242 * keygen.c (gen_card_key): Store the serial number
1243 (check_smartcard): New argument to return the serial number.
1244 (generate_keypair): Get the serial number from check_smartcard and
1245 store it as a parameter.
1246 * parse-packet.c (parse_key): Use the protect.iv field to store the
1248 * build-packet.c (do_secret_key): Write the serial number.
1250 2003-06-27 Werner Koch <wk@gnupg.org>
1252 * seckey-cert.c (check_secret_key): Bypass the unprotection for
1254 * sign.c (do_sign): Handle card case (i.e. mode 1002).
1256 2003-06-26 Werner Koch <wk@gnupg.org>
1258 * build-packet.c (do_secret_key): Implement special protection
1260 * parse-packet.c (parse_key): Likewise.
1262 * keygen.c (smartcard_gen_key): New.
1263 * call-agent.c (agent_scd_setattr): New.
1265 2003-06-24 Werner Koch <wk@gnupg.org>
1267 * Makefile.am: Removed signal.c
1269 * g10.c (emergency_cleanup): New.
1270 (main): Use gnupg_init_signals and register malloc for assuan.
1272 2003-06-23 Werner Koch <wk@gnupg.org>
1274 * keyid.c (do_fingerprint_md): Made it work again.
1276 2003-06-19 Werner Koch <wk@gnupg.org>
1278 Fixed all "==" comparisons against error code constants to use
1281 * import.c (import_secret_one):
1282 (import_revoke_cert):
1285 * misc.c (openpgp_md_map_name): Check also for the Hx format.
1286 (openpgp_cipher_map_name): Check also for the Sx format.
1287 (pubkey_get_npkey): Adjusted for changed gcrypt API.
1288 (pubkey_get_nskey): Ditto.
1289 (pubkey_get_nsig): Ditto.
1290 (pubkey_get_nenc): Ditto.
1292 2003-06-18 Werner Koch <wk@gnupg.org>
1294 Finished the bulk of changes for gnupg 1.9. This included
1295 switching to libgcrypt functions, using shared error codes from
1296 libgpg-error, replacing the old functions we used to have in
1297 ../util by those in ../jnlib and ../common, renaming the malloc
1298 functions and a couple of types. Note, that not all changes are
1299 listed below becuause they are too similar and done at far too
1300 many places. As of today the code builds using the current
1301 libgcrypt from CVS but it is very unlikely that it actually works.
1303 * sig-check.c (cmp_help): Removed. Was never used.
1305 * pkglue.c: New. Most stuff taken from gnupg 1.1.2.
1308 * misc.c (pull_in_libs): Removed.
1310 * keygen.c (count_chr): New.
1311 (ask_user_id): Removed faked RNG support.
1313 * misc.c (openpgp_md_map_name,openpgp_cipher_map_name)
1314 (openpgp_pk_map_name): New.
1316 * skclist.c (build_sk_list): Removed faked RNG support.
1317 (is_insecure): Removed.
1319 * comment.c (make_mpi_comment_node): Use gcry MPI print function.
1321 * keyid.c (v3_keyid): New.
1323 * misc.c (mpi_write,mpi_write_opaque,mpi_read,mpi_read_opaque)
1324 (mpi_print): New. Taken from gnupg 1.1.2.
1325 (checksum_mpi): Replaced by implementation from 1.1.2.
1327 * g10.c (my_strusage): Renamed from strusage and return NULL
1328 instead calling a default function.
1329 (add_to_strlist2): New. Taken from ../util/strgutil.c of gnupg 1.2.
1331 * plaintext.c (handle_plaintext): New arg CREATE_FILE to cope with
1332 the fact that gpg-error does not have this error code anymore.
1334 * mainproc.c (symkey_decrypt_sesskey): Ditto.
1336 * seskey.c (make_session_key): Adjusted for use with libgcrypt.
1337 (encode_session_key): Ditto.
1338 (do_encode_md): Ditto.
1339 (encode_md_value): Ditto.
1341 * keyring.c: Use libgpg-error instead of READ_ERROR etc.
1343 * g10.c: Adjusted all algorithm name/id mapping functions.
1344 (set_debug): Pass MPI and CRYPTO debug values to libgcrypt.
1346 * Makefile.am (INCLUDES): Define LOCALEDIR and the default error
1349 * g10.c (i18n_init): s/G10_LOCALEDIR/LOCALEDIR/.
1351 Renamed m_alloc et al to xmalloc et al.
1352 s/g10_errstr/gpg_strerror/
1354 Adjusted all md_open calls to the libgcrypt API.
1356 * build-packet.c (do_comment): Return error code from iobuf write
1358 (do_user_id): Ditto.
1359 (do_public_key): Ditto.
1361 * Makefile.am: Add new files, link gpg with libgpg-error.
1362 * g10.c, options.h: New option --agent-program.
1363 * call-agent.c: New.
1364 * gpg.h, call-agent.h: New.
1366 2003-06-03 David Shaw <dshaw@jabberwocky.com>
1368 * options.h, g10.c (main), keylist.c (list_keyblock_print): Add
1369 "show-validity" and "show-long-keyid" list-options.
1371 * gpgv.c (get_validity, trust_value_to_string): Stubs.
1373 * g10.c (main): Use SAFE_VERSION instead of VERSION in the
1374 version-specific gpg.conf file so it can be overridden on RISCOS.
1376 2003-06-01 David Shaw <dshaw@jabberwocky.com>
1378 * g10.c (main), keylist.c (show_policy_url, show_notation),
1379 mainproc.c (check_sig_and_print): Emulate the old policy and
1380 notation behavior (display by default). Send to status-fd whether
1381 it is displayed on the screen or not.
1383 * g10.c (main): Since we now have some options in devel that won't
1384 work in a stable branch gpg.conf file, try for a version-specific
1385 gpg.conf-VERSION file before falling back to gpg.conf.
1387 * main.h, options.h: Move various option flags to options.h.
1389 2003-05-31 David Shaw <dshaw@jabberwocky.com>
1391 * mainproc.c (check_sig_and_print), main.h, keylist.c
1392 (show_policy, show_notation): Collapse the old print_notation_data
1393 into show_policy() and show_notation() so there is only one
1394 function to print notations and policy URLs.
1396 * options.h, main.h, g10.c (main), keyedit.c
1397 (print_and_check_one_sig), keylist.c (list_one,
1398 list_keyblock_print), pkclist.c (do_edit_ownertrust), sign.c
1399 (mk_notation_and_policy): New "list-options" and "verify-options"
1400 commands. These replace the existing
1401 --show-photos/--no-show-photos,
1402 --show-notation/--no-show-notation,
1403 --show-policy-url/--no-show-policy-url, and --show-keyring
1404 options. The new method is more flexible since a user can specify
1405 (for example) showing photos during sig verification, but not in
1406 key listings. The old options are emulated.
1408 * main.h, misc.c (parse_options): New general option line
1409 parser. Fix the bug in the old version that did not handle report
1410 syntax errors after a valid entry.
1412 * import.c (parse_import_options), export.c
1413 (parse_export_options): Call it here instead of duplicating the
1416 2003-05-30 David Shaw <dshaw@jabberwocky.com>
1418 * keylist.c (list_one): Don't show the keyring filename when in
1419 --with-colons mode. Actually translate "Keyring" string.
1421 * mainproc.c (proc_tree): We can't currently handle multiple
1422 signatures of different classes or digests (we'd pretty much have
1423 to run a different hash context for each), but if they are all the
1424 same, make an exception. This is Debian bug #194292.
1426 * sig-check.c (check_key_signature2): Make string translatable.
1428 * packet.h, getkey.c (fixup_uidnode): Mark real primary uids
1429 differently than assumed primaries.
1431 * keyedit.c (no_primary_warning): Use the differently marked
1432 primaries here in a new function to warn when an --edit-key
1433 command might rearrange the self-sig dates enough to change which
1435 (menu_expire, menu_set_preferences): Use no_primary_warning()
1438 * Makefile.am: Use @DLLIBS@ for -ldl.
1440 2003-05-26 David Shaw <dshaw@jabberwocky.com>
1442 * getkey.c (premerge_public_with_secret): Made "no secret subkey
1443 for" warning a verbose item and translatable. (From wk on stable
1446 * sig-check.c (check_key_signature2): Made "no subkey for subkey
1447 binding packet" a verbose item instead of a !quiet one. There are
1448 too many garbled keys out in the wild. (From wk on stable branch)
1450 * filter.h: Remove const from WHAT. (From wk on stable branch)
1452 * progress.c (handle_progress): Store a copy of
1453 NAME. (progress_filter): Release WHAT, make sure not to print a
1454 NULL WHAT. (From wk on stable branch)
1456 * openfile.c (open_sigfile): Adjust free for new progress
1457 semantics. (From wk on stable branch)
1459 * plaintext.c (ask_for_detached_datafile): Don't dealloc
1460 pfx->WHAT. (From wk on stable branch)
1462 * seckey-cert.c (do_check): Issue the RSA_OR_IDEA status when the
1463 cipher algo is IDEA to make it easier to track down the
1464 problem. (From twoaday on stable branch)
1466 2003-05-24 David Shaw <dshaw@jabberwocky.com>
1468 * armor.c, g10.c, kbnode.c, misc.c, pkclist.c, sign.c,
1469 build-packet.c, getkey.c, keydb.c, openfile.c, plaintext.c,
1470 status.c, gpgv.c, keygen.c, options.h, sig-check.c, tdbio.h,
1471 encode.c, mainproc.c, parse-packet.c, signal.c, textfilter.c: Edit
1472 all preprocessor instructions to remove whitespace before the '#'.
1473 This is not required by C89, but there are some compilers out
1474 there that don't like it.
1476 2003-05-21 David Shaw <dshaw@jabberwocky.com>
1478 * trustdb.h, trustdb.c (is_disabled), gpgv.c (is_disabled): Rename
1479 is_disabled to cache_disabled_value, which now takes a pk and not
1480 just the keyid. This is for speed since there is no need to
1481 re-fetch a key when we already have that key handy. Cache the
1482 result of the check so we don't need to hit the trustdb more than
1485 * getkey.c (skip_disabled): New function to get a pk and call
1486 is_disabled on it. (key_byname): Use it here.
1488 * packet.h, getkey.c (skip_disabled), keylist.c
1489 (print_capabilities): New "pk_is_disabled" macro to retrieve the
1490 cached disabled value if available, and fill it in via
1491 cache_disabled_value if not available.
1493 * trustdb.c (get_validity): Cache the disabled value since we have
1494 it handy and it might be useful later.
1496 * parse-packet.c (parse_key): Clear disabled flag when parsing a
1497 new key. Just in case someone forgets to clear the whole key.
1499 * getkey.c (merge_selfsigs_main): Add an "if all else fails" path
1500 for setting a single user ID primary when there are multiple set
1501 primaries all at the same second, or no primaries set and the most
1502 recent user IDs are at the same second, or no signed user IDs at
1503 all. This is arbitrary, but deterministic.
1505 * exec.h, photoid.h: Add copyright message.
1507 * keylist.c (list_keyblock_print): Don't dump attribs for
1508 revoked/expired/etc uids for non-colon key listings. This is for
1509 consistency with --show-photos.
1511 * main.h, keylist.c (dump_attribs), mainproc.c
1512 (check_sig_and_print): Dump attribs if --attrib-fd is set when
1513 verifying signatures.
1515 * g10.c (main): New --gnupg option to disable the various
1516 --openpgp, --pgpX, etc. options. This is the same as --no-XXXX
1519 * revoke.c (ask_revocation_reason): Clear old reason if user
1520 elects to repeat question. This is bug 153.
1522 * keyedit.c (sign_uids): Show keyid of the key making the
1525 2003-05-21 Werner Koch <wk@gnupg.org>
1527 * progress.c (handle_progress)
1528 * sign.c (write_plaintext_packet)
1529 * encode.c (encode_simple,encode_crypt): Make sure that a filename
1530 of "-" is considered to be stdin so that iobuf_get_filelength
1531 won't get called. This fixes bug 156 reported by Gregery Barton.
1533 2003-05-02 David Shaw <dshaw@jabberwocky.com>
1535 * packet.h, build-packet.c (build_sig_subpkt), export.c
1536 (do_export_stream), import.c (remove_bad_stuff, import),
1537 parse-packet.c (dump_sig_subpkt, parse_one_sig_subpkt): Remove
1538 vestigal code for the old sig cache subpacket. This wasn't
1539 completely harmless as it caused subpacket 101 to disappear on
1542 * options.h, armor.c, cipher.c, g10.c, keyedit.c, pkclist.c,
1543 sign.c, encode.c, getkey.c, revoke.c: The current flags for
1544 different levels of PGP-ness are massively complex. This is step
1545 one in simplifying them. No functional change yet, just use a
1546 macro to check for compliance level.
1548 * sign.c (sign_file): Fix bug that causes spurious compression
1551 * sign.c (clearsign_file): Fix bug that prevents proper warning
1552 message from appearing when clearsigning in --pgp2 mode with a
1555 * main.h, misc.c (compliance_option_string, compliance_string,
1556 compliance_failure), pkclist.c (build_pk_list), sign.c (sign_file,
1557 clearsign_file), encode.c (encode_crypt,
1558 write_pubkey_enc_from_list): New functions to put the "this
1559 message may not be usable...." warning in one place.
1561 * options.h, g10.c (main): Part two of the simplification. Use a
1562 single enum to indicate what we are compliant to (1991, 2440,
1565 * g10.c (main): Show errors for failure in export, send-keys,
1566 recv-keys, and refresh-keys.
1568 * options.h, g10.c (main): Give algorithm warnings for algorithms
1569 chosen against the --pgpX and --openpgp rules.
1571 * keydb.h, pkclist.c (algo_available): Make TIGER192 invalid in
1574 * sign.c (sign_file), pkclist.c (algo_available): Allow passing a
1577 2003-05-01 David Shaw <dshaw@jabberwocky.com>
1579 * tdbio.c (create_version_record): Only create new trustdbs with
1580 TM_CLASSIC or TM_PGP.
1582 * trustdb.h, trustdb.c (trust_string, get_ownertrust_string,
1583 get_validity_string, ask_ownertrust, validate_keys), pkclist.c
1584 (do_edit_ownertrust): Rename trust_string to trust_value_to_string
1585 for naming consistency.
1587 * trustdb.h, trustdb.c (string_to_trust_value): New function to
1588 translate a string to a trust value.
1590 * g10.c (main): Use string_to_trust_value here for
1593 * options.h, g10.c (main), trustdb.c (trust_model_string,
1594 init_trustdb, check_trustdb, update_trustdb, get_validity,
1595 validate_one_keyblock): An "OpenPGP" trust model is misleading
1596 since there is no official OpenPGP trust model. Use "PGP"
1599 2003-04-30 David Shaw <dshaw@jabberwocky.com>
1601 * build-packet.c (build_sig_subpkt): Comments.
1603 * exec.c (exec_write): Cast NULL to void* to properly terminate
1606 * keyedit.c (show_key_with_all_names): Just for safety, catch an
1607 invalid pk algorithm.
1609 * sign.c (make_keysig_packet): Crucial that the call to mksubpkt
1610 comes LAST before the calls to finalize the sig as that makes it
1611 possible for the mksubpkt function to get a reliable pointer to
1614 * pkclist.c (do_we_trust_pre): If an untrusted key was chosen by a
1615 particular user ID, use that ID as the one to ask about when
1616 prompting whether to use the key anyway.
1617 (build_pk_list): Similar change here when adding keys to the
1620 * trustdb.c (update_validity): Fix bug that prevented more than
1621 one validity record per trust record.
1622 (get_validity): When retrieving validity for a (user) supplied
1623 user ID, return the validity for that user ID only, and do not
1624 fall back to the general key validity.
1625 (validate_one_keyblock): Some commentary on whether
1626 non-self-signed user IDs belong in the web of trust (arguably,
1629 2003-04-27 David Shaw <dshaw@jabberwocky.com>
1631 * g10.c (main): Add --no-textmode.
1633 * export.c (do_export_stream), keyedit.c (show_key_with_all_names,
1634 menu_addrevoker), mainproc.c (check_sig_and_print), photoid.c
1635 (show_photos), sign.c (mk_notation_and_policy), trustdb.c
1636 (get_validity, reset_trust_records, validate_keys): Make some
1637 strings translatable.
1639 * mainproc.c (check_sig_and_print): Show digest algorithm and sig
1640 class when verifying a sig with --verbose on, and add version, pk
1641 and hash algorithms and sig class to VALIDSIG.
1643 * parse-packet.c (enum_sig_subpkt): Make a warning message a
1644 --verbose warning message since we don't need to warn every time
1645 we see an unknown critical (we only need to invalidate the
1648 * trustdb.c (init_trustdb): Check the trustdb options even with
1649 TM_AUTO since the auto may become TM_CLASSIC or TM_OPENPGP.
1651 2003-04-26 David Shaw <dshaw@jabberwocky.com>
1653 * sign.c (do_sign): Show the hash used when making a signature in
1656 * tdbio.h, tdbio.c (tdbio_read_model): New function to return the
1657 trust model used in a given trustdb.
1659 * options.h, g10.c (main), trustdb.c (init_trustdb, check_trustdb,
1660 update_trustdb): Use tdbio_read_model to implement an "auto" trust
1661 model which is set via the trustdb.
1663 2003-04-23 David Shaw <dshaw@jabberwocky.com>
1665 * import.c (import_revoke_cert): Remove ultimate trust when
1666 revoking an ultimately trusted key.
1668 * keyedit.c (sign_uids): Allow replacing expired signatures.
1669 Allow duplicate signatures with --expert.
1671 * pkclist.c (check_signatures_trust): Don't display a null
1672 fingerprint when checking a signature with --always-trust enabled.
1674 * filter.h (progress_filter_context_t), progress.c
1675 (handle_progress), plaintext.c (ask_for_detached_datafile,
1676 hash_datafiles): Fix compiler warnings. Make "what" constant.
1678 * build-packet.c (do_plaintext): Do not create invalid literal
1679 packets with >255-byte names.
1681 2003-04-15 Werner Koch <wk@gnupg.org>
1683 * Makefile.am (AM_CFLAGS): Make use of AM_CFLAGS and AM_LDFLAGS.
1685 * g10.c, options.h: New option --enable-progress-filter.
1686 * progress.c (handle_progress): Make use of it.
1688 2003-04-15 Marcus Brinkmann <marcus@g10code.de>
1690 * progress.c: New file.
1691 * Makefile.am (common_source): Add progress.c.
1692 * filter.h (progress_filter_context_t): New type.
1693 (progress_filter, handle_progress): New prototypes.
1694 * main.h (open_sigfile): New argument for prototype.
1695 * openfile.c (open_sigfile): New argument to install progress
1697 * encode.c (encode_simple): New variable PFX. Register
1698 progress filter. Install text_filter after that.
1699 (encode_crypt): Likewise.
1700 * sign.c (sign_file): Likewise.
1701 (clearsign_file): Likewise.
1702 * decrypt.c (decrypt_message): Likewise.
1703 (decrypt_messages): Likewise.
1704 * verify.c (verify_signatures): Likewise.
1705 (verify_one_file): Likewise.
1706 * plaintext.c (hash_datafiles): Likewise.
1707 (ask_for_detached_datafile): Likewise.
1709 2003-04-10 Werner Koch <wk@gnupg.org>
1711 * passphrase.c (read_passphrase_from_fd): Do a dummy read if the
1712 agent is to be used. Noted by Ingo Klöcker.
1713 (agent_get_passphrase): Inhibit caching when we have no
1714 fingerprint. This is required for key generation as well as for
1715 symmetric only encryption.
1717 * passphrase .c (agent_get_passphrase): New arg CANCELED.
1718 (passphrase_to_dek): Ditto. Passed to above. Changed all
1719 callers to pass NULL.
1720 * seckey-cert.c (do_check): New arg CANCELED.
1721 (check_secret_key): Terminate loop when canceled.
1723 * keyedit.c (change_passphrase): Pass ERRTEXT untranslated to
1724 passphrase_to_dek and translate where appropriate.
1725 * seckey-cert.c (check_secret_key): Ditto.
1726 * keygen.c (ask_passphrase): Ditto.
1727 * passphrase.c (agent_get_passphrase): Translate the TRYAGAIN_TEXT.
1728 Switch the codeset to utf-8.
1730 2003-04-09 Werner Koch <wk@gnupg.org>
1732 * decrypt.c (decrypt_messages): Fixed error handling; the function
1733 used to re-loop with same file after an error. Reported by Joseph
1736 2003-04-08 David Shaw <dshaw@jabberwocky.com>
1738 * main.h, g10.c (main), import.c (parse_import_options,
1739 fix_pks_corruption): It's really PKS corruption, not HKP
1740 corruption. Keep the old repair-hkp-subkey-bug command as an
1743 * g10.c (main): Rename --no-version to --no-emit-version for
1744 consistency. Keep --no-version as an alias.
1746 2003-04-04 David Shaw <dshaw@jabberwocky.com>
1748 * pkclist.c (algo_available): PGP 8 can use the SHA-256 hash.
1750 * sign.c (sign_file, clearsign_file, sign_symencrypt_file): Remove
1753 2003-04-01 Werner Koch <wk@gnupg.org>
1755 * mainproc.c (check_sig_and_print): Add primary key fpr to VALIDSIG
1758 2003-03-24 David Shaw <dshaw@jabberwocky.com>
1760 * keydb.h: Err on the side of making an unknown signature a SIG
1763 * import.c (delete_inv_parts): Discard any key signatures that
1764 aren't key types (i.e. 0x00, 0x01, etc.)
1766 * g10.c (main): Add deprecated option warning for
1767 --list-ownertrust. Add --compression-algo alias for
1768 --compress-algo. Change --version output strings to match
1769 "showpref" strings, and make translatable.
1771 * status.c (do_get_from_fd): Accept 'y' as well as 'Y' for
1772 --command-fd boolean input.
1774 * trustdb.c: Fix typo (DISABLE_REGEXP -> DISABLE_REGEX)
1776 * keyedit.c (show_key_with_all_names_colon): Show no-ks-modify
1779 2003-03-11 David Shaw <dshaw@jabberwocky.com>
1781 * options.h, g10.c (main), keyserver.c (kopts): Add "try-dns-srv"
1782 keyserver option. Defaults to on.
1784 * passphrase.c (agent_get_passphrase): Fix memory leak with
1785 symmetric messages. Fix segfault with symmetric messages. Fix
1786 incorrect prompt with symmetric messages.
1788 2003-03-10 Werner Koch <wk@gnupg.org>
1790 * compress.c (init_uncompress): Use a 15 bit window size so that
1791 the output of implementations which don't run for PGP 2
1792 compatibility won't get garbled.
1794 2003-03-04 David Shaw <dshaw@jabberwocky.com>
1796 * trustdb.c (validate_keys): Mask the ownertrust when building the
1797 list of fully valid keys so that disabled keys are still counted
1798 in the web of trust.
1799 (get_ownertrust_with_min): Do the same for the minimum ownertrust
1802 * parse-packet.c (dump_sig_subpkt): Show the notation names for
1803 not-human-readable notations. Fix cosmetic off-by-one length
1806 * options.skel: Add explantion and commented-out
1807 "no-mangle-dos-filenames".
1809 * mainproc.c (proc_encrypted): Make string translatable.
1811 * keyserver.c (keyserver_spawn): Quote ':', '%', and any 8-bit
1812 characters in the uid strings sent to the keyserver helper.
1814 * keyring.c (keyring_rebuild_cache): Lock the keyring while
1815 rebuilding the signature caches to prevent another gpg from
1816 tampering with the temporary copy.
1818 * keygen.c (keygen_set_std_prefs): Include AES192 and AES256 in
1821 * keyedit.c (show_prefs): Make strings translatable.
1823 * keydb.c: Double the maximum number of keyrings to 40.
1825 * gpgv.c (main): Fix bug #113 - gpgv should accept the
1826 --ignore-time-conflict option.
1828 * g10.c (main): --openpgp disables --pgpX. Double the amount of
1829 secure memory to 32k (keys are getting bigger these days).
1831 * Makefile.am: Makefile.am: Use @CAPLIBS@ to link in -lcap if we
1832 are using capabilities.
1834 2003-02-26 David Shaw <dshaw@jabberwocky.com>
1836 * keyserver.c (keyserver_spawn): Include various pieces of
1837 information about the key in the data sent to the keyserver
1838 helper. This allows the helper to use it in instructing a remote
1839 server which may not have any actual OpenPGP smarts in parsing
1842 * main.h, export.c (export_pubkeys_stream, do_export_stream): Add
1843 ability to return only the first match in an exported keyblock for
1844 keyserver usage. This should be replaced at some point with a
1845 more flexible solution where each key can be armored seperately.
1847 2003-02-22 David Shaw <dshaw@jabberwocky.com>
1849 * sign.c (sign_file): Do not push textmode filter onto an unopened
1850 IOBUF (segfault). Noted by Marcus Brinkmann. Push and
1851 reinitialize textmode filter for each file in a multiple file
1854 * packet.h, getkey.c (fixup_uidnode), keyedit.c (show_prefs): Set
1855 and show the keyserver no-modify flag.
1857 * keygen.c (add_keyserver_modify): New.
1858 (keygen_upd_std_prefs): Call it here.
1859 (keygen_set_std_prefs): Accept "ks-modify" and "no-ks-modify" as
1860 prefs to set and unset keyserver modify flag.
1862 * g10.c (main): Accept "s1" in addition to "idea" to match the
1865 * main.h, misc.c (idea_cipher_warn): We don't need this if IDEA
1868 2003-02-21 David Shaw <dshaw@jabberwocky.com>
1870 * keygen.c (keygen_set_std_prefs): Don't put AES or CAST5 in
1871 default prefs if they are disabled.
1873 * g10.c (main): Use 3DES instead of CAST5 if we don't have CAST5
1874 support. Use 3DES for the s2k cipher in --openpgp mode.
1875 (print_mds): #ifdef all of the optional digest algorithms.
1877 2003-02-12 David Shaw <dshaw@jabberwocky.com>
1879 * keydb.h, getkey.c (classify_user_id, classify_user_id2): Make
1880 'exact' a per-desc item. Merge into one function since
1881 'force_exact' is no longer needed.
1882 (key_byname): Use new classify_user_id function, and new exact
1883 flag in KEYDB_SEARCH_DESC.
1885 * keyring.h, keyring.c (keyring_search): Return an optional index
1886 to show which KEYDB_SEARCH_DESC was the matching one.
1888 * keydb.h, keydb.c (keydb_search): Rename to keydb_search2, and
1889 pass the optional index to keyring_search. Add a macro version of
1890 keydb_search that calls this new function.
1892 * export.c (do_export_stream): If the keyid! syntax is used,
1893 export only that specified key. If the key in question is a
1894 subkey, export the primary plus that subkey only.
1896 2003-02-11 David Shaw <dshaw@jabberwocky.com>
1898 * exec.c (set_exec_path): Add debugging line.
1900 * g10.c (print_hex, print_mds): Print long hash strings a lot
1901 neater. This assumes at least an 80-character display, as there
1902 are a few other similar assumptions here and there. Users who
1903 need unformatted hashes can still use with-colons. Check that
1904 SHA384 and 512 are available before using them as they are no
1905 longer always available.
1907 * Makefile.am: Use a local copy of libexecdir along with @PACKAGE@
1908 as GNUPG_LIBEXECDIR so it can be easily overridden at make time.
1910 2003-02-04 David Shaw <dshaw@jabberwocky.com>
1912 * armor.c (parse_hash_header, armor_filter): Accept the new SHAs
1913 in the armor Hash: header.
1915 * g10.c (print_hex): Print long hash strings a little neater.
1916 (print_mds): Add the new SHAs to the hash list.
1918 2003-02-02 David Shaw <dshaw@jabberwocky.com>
1920 * keyedit.c (menu_revuid): Properly handle a nonselfsigned uid on
1921 a v4 key (treat as a v4 revocation).
1923 * import.c (print_import_check): Do not re-utf8 convert user IDs.
1925 2003-01-27 David Shaw <dshaw@jabberwocky.com>
1927 * mainproc.c (list_node): Show signature expiration date in
1928 with-colons sig records.
1930 * keylist.c (list_keyblock_colon), mainproc.c (list_node): Show
1931 trust sig information in with-colons sig records.
1933 2003-01-16 David Shaw <dshaw@jabberwocky.com>
1935 * g10.c (add_group): Trim whitespace after a group name so it does
1936 not matter where the user puts the = sign.
1938 * options.skel: Comment out the first three lines in case someone
1939 manually copies the skel file to their homedir.
1941 * sign.c (clearsign_file): Only use pgp2mode with v3 keys and
1942 MD5. This matches what we do when decoding such messages and
1943 prevents creating a message (v3+RIPEMD/160) that we can't verify.
1945 * sig-check.c (signature_check2): Use G10ERR_GENERAL as the error
1946 for signature digest conflict. BAD_SIGN implies that a signature
1947 was checked and we may try and print out a user ID for a key that
1950 2003-01-15 David Shaw <dshaw@jabberwocky.com>
1952 * trustdb.c (init_trustdb, get_validity): Don't use a changed
1953 trust model to indicate a dirty trustdb, and never auto-rebuild a
1954 dirty trustdb with the "always" trust model.
1956 * g10.c (add_group): Last commit missed the \t ;)
1958 2003-01-14 David Shaw <dshaw@jabberwocky.com>
1960 * packet.h, parse-packet.c (setup_user_id), free-packet.c
1961 (free_user_id), keydb.h, keyid.c (namehash_from_uid): New function
1962 to rmd160-hash the contents of a user ID packet and cache it in
1965 * keylist.c (list_keyblock_colon): Use namehash in field 8 of
1966 uids. Show dates for creation (selfsig date), and expiration in
1969 * trustdb.c (get_validity, get_validity_counts, update_validity):
1970 Use new namehash function rather than hashing it locally.
1972 2003-01-14 Werner Koch <wk@gnupg.org>
1974 * g10.c (add_group): Fixed group parsing to allow more than one
1975 delimiter in a row and also allow tab as delimiter.
1977 2003-01-12 David Shaw <dshaw@jabberwocky.com>
1979 * tdbio.c (tdbio_set_dbname): Fix assertion failure with
1980 non-fully-qualified trustdb names.
1982 2003-01-11 David Shaw <dshaw@jabberwocky.com>
1984 * trustdb.c (get_validity_info, get_ownertrust_info,
1985 trust_letter): Simplify by returning a ? for error directly.
1987 * keyedit.c (show_key_with_all_names): Use get_validity_string and
1988 get_ownertrust_string to show full word versions of trust
1989 (i.e. "full" instead of 'f').
1991 * trustdb.h, trustdb.c (get_ownertrust_string,
1992 get_validity_string): Same as get_ownertrust_info, and
1993 get_validity_info, except returns a full string.
1995 * trustdb.c (get_ownertrust_with_min): New. Same as
1996 'get_ownertrust' but takes the min_ownertrust value into account.
1998 2003-01-10 David Shaw <dshaw@jabberwocky.com>
2000 * armor.c (armor_filter): Comment about PGP's end of line tab
2003 * trustdb.h, trustdb.c (trust_letter): Make
2004 static. (get_ownertrust_info, get_validity_info): Don't mask the
2007 * trustdb.h, gpgv.c, trustdb.c (get_validity, get_validity_info),
2008 keylist.c (list_keyblock_colon), keyedit.c
2009 (show_key_with_all_names_colon, menu_revuid): Pass a user ID in
2010 rather than a namehash, so we only have to do the hashing in one
2013 * packet.h, pkclist.c (build_pk_list), free-packet.c
2014 (release_public_key_parts): Remove unused namehash element for
2017 2003-01-07 David Shaw <dshaw@jabberwocky.com>
2019 * keygen.c (keygen_set_std_prefs): Warn when setting an IDEA
2020 preference when IDEA is not available.
2022 2003-01-06 David Shaw <dshaw@jabberwocky.com>
2024 * trustdb.c (get_validity_info): 'd' for disabled is not a
2025 validity value any more.
2027 * packet.h, tdbio.h, tdbio.c (tdbio_read_record,
2028 tdbio_write_record), trustdb.c (update_validity): Store temporary
2029 full & marginal counts in the trustdb.
2030 (clear_validity, get_validity_counts): Return and clear temp
2032 (store_validation_status): Keep track of which keyids have been
2034 (validate_one_keyblock, validate_key_list): Use per-uid copies of
2035 the full & marginal counts so they can be recalled for multiple
2037 (validate_keys): Only use unused keys for each new round.
2038 (reset_unconnected_keys): Rename to reset_trust_records, and only
2039 skip specifically excluded records.
2041 * keylist.c (print_capabilities): Show 'D' for disabled keys in
2042 capabilities section.
2044 * trustdb.c (is_disabled): Remove incorrect comment.
2046 2003-01-03 David Shaw <dshaw@jabberwocky.com>
2048 * import.c (import_one): Only do the work to create the status
2049 display for interactive import if status is enabled.
2051 * keyring.c (keyring_search): skipfnc didn't work properly with
2052 non-keyid searches. Noted by Stefan Bellon.
2054 * getkey.c (merge_selfsigs_main): Remove some unused code and make
2055 sure that the pk selfsigversion member accounts for 1F direct
2058 2003-01-02 Werner Koch <wk@gnupg.org>
2060 * keydb.c (keydb_add_resource): Don't assume that try_make_homedir
2061 terminates but check again for the existence of the directory and
2063 * openfile.c (copy_options_file): Print a warning if the skeleton
2064 file has active options.
2066 2002-12-29 David Shaw <dshaw@jabberwocky.com>
2068 * getkey.c (merge_selfsigs_main), main.h, sig-check.c
2069 (check_key_signature2): Pass the ultimately trusted pk directly to
2070 check_key_signature2 to avoid going through the key selection
2071 mechanism. This prevents a deadly embrace when two keys without
2072 selfsigs each sign the other.
2074 2002-12-27 David Shaw <dshaw@jabberwocky.com>
2076 * keyserver.c (keyserver_refresh): Don't print the "refreshing..."
2077 line if there are no keys to refresh or if there is no keyserver
2080 * getkey.c (merge_selfsigs_main): Any valid user ID should make a
2081 key valid, not just the last one. This also fixes Debian bug
2084 2002-12-27 Stefan Bellon <sbellon@sbellon.de>
2086 * import.c (print_import_check): Changed int to size_t.
2088 2002-12-27 David Shaw <dshaw@jabberwocky.com>
2090 * keyedit.c (keyedit_menu, menu_revuid): Add "revuid" feature to
2091 revoke a user ID. This is the same as issuing a revocation for
2092 the self-signature, but a much simpler interface to do it.
2094 2002-12-26 David Shaw <dshaw@jabberwocky.com>
2096 * keydb.h, getkey.c (key_byname): Flag to enable or disable
2097 including disabled keys. Keys specified via keyid (i.e. 0x...)
2098 are always included.
2100 * getkey.c (get_pubkey_byname, get_seckey_byname2,
2101 get_seckey_bynames), keyedit.c (keyedit_menu, menu_addrevoker):
2102 Include disabled keys in these functions.
2104 * pkclist.c (build_pk_list): Do not include disabled keys for -r
2105 or the key prompt. Do include disabled keys for the default key
2108 * trustdb.h, trustdb.c (is_disabled): New skipfnc for skipping
2111 * gpgv.c (is_disabled): Stub.
2113 * keygen.c (keygen_add_key_expire): Properly handle updating a key
2114 expiration to a no-expiration value.
2116 * keyedit.c (enable_disable_key): Comment.
2118 * import.c (import_one): When in interactive mode and --verbose,
2119 don't repeat some key information twice.
2121 2002-12-22 Timo Schulz <ts@winpt.org>
2123 * import.c (print_import_check): New.
2124 (import_one): Use it here.
2125 Use merge_keys_and_selfsig in the interactive mode to avoid
2126 wrong key information.
2127 * status.h: Add new status code.
2130 2002-12-13 David Shaw <dshaw@jabberwocky.com>
2132 * pkclist.c (do_we_trust): Tweak language to refer to the "named
2133 user" rather than "owner". Noted by Stefan Bellon.
2135 * trustdb.h, trustdb.c (trustdb_pending_check): New function to
2136 check if the trustdb needs a check.
2138 * import.c (import_keys_internal): Used here so we don't rebuild
2139 the trustdb if it is still clean.
2140 (import_one, chk_self_sigs): Only mark trustdb dirty if the key
2141 that is being imported has any sigs other than self-sigs.
2142 Suggested by Adrian von Bidder.
2144 * options.skel: Include the required '=' sign in the sample
2145 'group' option. Noted by Stefan Bellon.
2147 * import.c (chk_self_sigs): Don't try and check a subkey as if it
2150 2002-12-11 David Shaw <dshaw@jabberwocky.com>
2152 * tdbio.c (tdbio_read_record, tdbio_write_record): Compact the
2153 RECTYPE_TRUST records a bit.
2155 * g10.c (main): Comment out --list-trust-path until it can be
2158 * import.c (import_one): Warn when importing an Elgamal primary
2159 that this may take some time (to verify self-sigs).
2160 (chk_self_sigs): Try and cache all self-sigs so the keyblock is
2161 written to the keyring with a good rich cache.
2163 * keygen.c (ask_algo): Make the Elgamal sign+encrypt warning
2164 stronger, and remove the RSA sign+encrypt warning.
2166 2002-12-06 Stefan Bellon <sbellon@sbellon.de>
2168 * options.h: Fixed typo (mangle_dos_names instead of
2169 mangle_dos_filenames).
2171 2002-12-05 Werner Koch <wk@gnupg.org>
2173 * g10.c: New options --[no-]mangle-dos-filenames.
2174 * options.h (opt): Added mangle-dos-filenames.
2175 * openfile.c (open_outfile) [USE_ONLY_8DOT3]: Truncate the
2176 filename only when this option is set; this is the default.
2178 2002-12-04 David Shaw <dshaw@jabberwocky.com>
2180 * main.h, keyedit.c, keygen.c: Back out previous (2002-12-01)
2181 change. Minimal isn't always best.
2183 * sign.c (update_keysig_packet): Use the current time rather then
2184 a modification of the original signature time. Make sure that
2185 this doesn't cause a time warp.
2187 * keygen.c (keygen_add_key_expire): Properly handle a key
2188 expiration date in the past (use a duration of 0).
2190 * keyedit.c (menu_expire): Use update_keysig_packet so any sig
2191 subpackets are maintained during the update.
2193 * build-packet.c (build_sig_subpkt): Mark sig expired or unexpired
2194 when the sig expiration subpacket is added.
2195 (build_sig_subpkt_from_sig): Handle making an expiration subpacket
2196 from a sig that has already expired (use a duration of 0).
2198 * packet.h, sign.c (update_keysig_packet), keyedit.c
2199 (menu_set_primary_uid, menu_set_preferences): Add ability to issue
2200 0x18 subkey binding sigs to update_keysig_packet and change all
2203 * trustdb.c (validate_keys): Show trust parameters when building
2204 the trustdb, and make sure that the version record update was
2206 (init_trustdb): If the current parameters aren't what was used for
2207 building the trustdb, the trustdb is invalid.
2209 * tbio.c (tdbio_db_matches_options): Update to work with new
2212 2002-12-03 David Shaw <dshaw@jabberwocky.com>
2214 * tdbio.h, tdbio.c (tdbio_read_record, tdbio_write_record): Store
2215 trust model in the trustdb version record.
2216 (tdbio_update_version_record): New function to update version
2217 record values during a trustdb check or update.
2218 (tdbio_dump_record): Show trust model in dump.
2220 * trustdb.c (validate_keys): Call tdbio_update_version_record on
2221 success so that the correct options are stored in the trustdb.
2223 * options.h: rearrange trust models so that CLASSIC is 0 and
2226 * options.h, g10.c (main), encode.c (write_pubkey_enc_from_list),
2227 pkclist.c (algo_available), revoke.c (gen_revoke): Add --pgp8
2228 mode. This is basically identical to --pgp7 in all ways except
2229 that signing subkeys, v4 data sigs (including expiration), and SK
2230 comments are allowed.
2232 * getkey.c (finish_lookup): Comment.
2234 * main.h, keylist.c (reorder_keyblock), keyedit.c (keyedit_menu):
2235 Reorder user ID display in the --edit-key menu to match that of
2236 the --list-keys display.
2238 * g10.c (add_notation_data): Fix initialization.
2240 2002-12-01 David Shaw <dshaw@jabberwocky.com>
2242 * keyedit.c (menu_expire): Don't lose key flags when changing the
2243 expiration date of a subkey. This is not the most optimal
2244 solution, but it is minimal change on the stable branch.
2246 * main.h, keygen.c (do_copy_key_flags): New function to copy key
2247 flags, if any, from one sig to another.
2248 (do_add_key_expire): New function to add key expiration to a sig.
2249 (keygen_copy_flags_add_expire): New version of
2250 keygen_add_key_expire that also copies key flags.
2251 (keygen_add_key_flags_and_expire): Use do_add_key_expire.
2253 * import.c (fix_hkp_corruption): Comment.
2255 2002-11-25 Stefan Bellon <sbellon@sbellon.de>
2257 * plaintext.c (handle_plaintext) [__riscos__]: If nooutput is set,
2258 no filetype is needed obviously.
2260 2002-11-24 David Shaw <dshaw@jabberwocky.com>
2262 * main.h, misc.c (default_cipher_algo, default_compress_algo):
2263 New. Return the default algorithm by trying
2264 --cipher-algo/--compress-algo, then the first item in the pref
2265 list, then s2k-cipher-algo or ZIP.
2267 * sign.c (sign_file, sign_symencrypt_file), encode.c
2268 (encode_simple, encode_crypt): Call default_cipher_algo and
2269 default_compress_algo to get algorithms.
2271 * g10.c (main): Allow pref selection for compress algo with
2274 * mainproc.c (proc_encrypted): Use --s2k-digest-algo for
2275 passphrase mangling rather than --digest-algo.
2277 * sign.c (hash_for): If --digest-algo is not set, but
2278 --personal-digest-preferences is, then use the first hash
2279 algorithm in the personal list. If the signing algorithm is DSA,
2280 then use the first 160-bit hash algorithm in the personal list.
2281 If --pgp2 is set and it's a v3 RSA key, use MD5.
2283 * g10.c (main), keydb.c (keydb_add_resource,
2284 keydb_locate_writable): Rename --default-keyring as
2285 --primary-keyring. Stefan wins the naming contest.
2287 2002-11-23 David Shaw <dshaw@jabberwocky.com>
2289 * g10.c (add_notation_data): Disallow notation names that do not
2290 contain a '@', unless --expert is set. This is to help prevent
2291 people from polluting the (as yet unused) IETF namespace.
2293 * main.h: Comments about default algorithms.
2295 * photoid.c (image_type_to_string): Comments about 3-letter file
2298 * encode.c (encode_simple), passphrase.c (passphrase_to_dek),
2299 sign.c (sign_symencrypt_file): Use --s2k-digest-algo for
2300 passphrase mangling rather than --digest-algo.
2302 2002-11-21 David Shaw <dshaw@jabberwocky.com>
2304 * keygen.c (keygen_set_std_prefs): Properly handle an empty
2307 * misc.c (string_to_compress_algo): "none" is a bad choice since
2308 it conflicts with the "none" in setpref.
2310 2002-11-14 David Shaw <dshaw@jabberwocky.com>
2312 * g10.c (main): Allow compression algorithm names as the argument
2313 to --compress-algo. The old algorithm names still work for
2314 backwards compatibility.
2316 * misc.c (string_to_compress_algo): Allow "none" as an alias for
2319 2002-11-13 Stefan Bellon <sbellon@sbellon.de>
2321 * getkey.c (get_pubkey_byfprint_fast): Fixed type incompatibility,
2322 was unsigned char instead of byte.
2324 2002-11-13 David Shaw <dshaw@jabberwocky.com>
2326 * encode.c (encode_simple): Make sure that files larger than about
2327 4G use partial length encoding. This is required because OpenPGP
2328 allows only for 32 bit length fields. From Werner on stable
2331 * getkey.c (get_pubkey_direct): Renamed to...
2332 (get_pubkey_fast): this and made extern.
2333 (get_pubkey_byfprint_fast): New. From Werner on stable branch.
2335 * keydb.h, import.c (import_one): Use get_pubkey_fast instead of
2336 get_pubkey. We don't need a merged key and actually this might
2338 (revocation_present): Likewise for search by fingerprint. From
2339 Werner on stable branch.
2341 * g10.c (main): Try to create the trustdb even for non-colon-mode
2342 list-key operations. This is required because getkey needs to
2343 know whether a a key is ultimately trusted. From Werner on stable
2346 * exec.c [__CYGWIN32__]: Keep cygwin separate from Mingw32;
2347 we don't need it here as it behaves more like a Posix system.
2348 From Werner on stable branch.
2350 * passphrase.c (agent_get_passphrase): Ditto. From Werner on
2353 * tdbio.c (MY_O_BINARY): Need binary mode with Cygwin. From
2354 Werner on stable branch.
2356 * g10.c, gpgv.c (main) [__CYGWIN32__]: Don't get the homedir from
2357 the registry. From Werner on stable branch.
2359 * keyedit.c (show_key_with_all_names_colon): Make --with-colons
2360 --edit display match the validity and trust of --with-colons
2363 * passphrase.c (agent_send_all_options): Fix compile warning.
2365 * keylist.c (list_keyblock_colon): Validity for subkeys should
2366 match that of the primary key, and not that of the last user ID.
2368 * getkey.c (merge_selfsigs): Revoked/expired/invalid primary keys
2369 carry these facts onto all their subkeys, but only after the
2370 subkey has a chance to be marked valid. This is to fix an
2371 incorrect "invalid public key" error verifying a signature made by
2372 a revoked signing subkey, with a valid unrevoked primary key.
2374 2002-11-09 Werner Koch <wk@gnupg.org>
2376 * passphrase.c (agent_send_all_options): Use tty_get_ttyname to
2377 get the default ttyname.
2379 2002-11-07 David Shaw <dshaw@jabberwocky.com>
2381 * keyring.h, keyring.c (keyring_register_filename): Return the
2382 pointer if a given keyring is registered twice.
2384 * keydb.h, keydb.c (keydb_add_resource): Use flags to indicate a
2386 (keydb_locate_writable): Prefer the default keyring if possible.
2388 * g10.c (main): Add --default-keyring option.
2390 2002-11-06 David Shaw <dshaw@jabberwocky.com>
2392 * options.h, g10.c (main), trustdb.c (ask_ownertrust): Add
2393 --force-ownertrust option for debugging purposes. This allows
2394 setting a whole keyring to a given trust during an
2395 --update-trustdb. Not for normal use - it's just easier than
2396 hitting "4" all the time to test a large trustdb.
2398 * pubkey-enc.c (get_session_key): With hidden recipients or try a
2399 given passphrase against all secret keys rather than trying all
2400 secret keys in turn. Don't if --try-all-secrets or --status-fd is
2403 * passphrase.c (passphrase_to_dek): Mode 1 means do a regular
2404 passphrase query, but don't prompt with the key info.
2406 * seckey-cert.c (do_check, check_secret_key): A negative ask count
2407 means to enable passphrase mode 1.
2409 * keydb.h, getkey.c (enum_secret_keys): Add flag to include
2410 secret-parts-missing keys (or not) in the list.
2412 2002-11-05 David Shaw <dshaw@jabberwocky.com>
2414 * keyserver.c (keyserver_search_prompt): When --with-colons is
2415 enabled, don't try and fit the search output to the screen size -
2416 just dump the whole list.
2418 2002-11-04 David Shaw <dshaw@jabberwocky.com>
2420 * keyserver.c (keyserver_search_prompt): When --with-colons is
2421 enabled, just dump the raw keyserver protocol to stdout and don't
2424 * keyserver.c (show_prompt): Don't show a prompt when command-fd
2427 * trustdb.c (trust_model_string, check_trustdb, update_trustdb,
2428 validate_one_keyblock): It's not clear what a trustdb rebuild or
2429 check means with a trust model other than "classic" or "openpgp",
2432 2002-11-03 David Shaw <dshaw@jabberwocky.com>
2434 * options.h, g10.c (main): Add --trust-model option. Current
2435 models are "openpgp" which is classic+trustsigs, "classic" which
2436 is classic only, and "always" which is the same as the current
2437 option --always-trust (which still works). Default is "openpgp".
2439 * trustdb.c (validate_one_keyblock): Use "openpgp" trust model to
2442 * gpgv.c (main), mainproc.c (check_sig_and_print), pkclist.c
2443 (do_we_trust, do_we_trust_pre, check_signatures_trust): Use new
2444 --trust-model option in place of --always-trust.
2446 * keyedit.c (sign_mk_attrib, trustsig_prompt, sign_uids,
2447 keyedit_menu): Prompt for and create a trust signature with
2448 "tsign". This is functional, but needs better UI text.
2450 * build-packet.c (build_sig_subpkt): Able to build trust and
2453 * pkclist.c (do_edit_ownertrust): Comment.
2455 2002-11-02 David Shaw <dshaw@jabberwocky.com>
2457 * keygen.c (set_one_pref, keygen_set_std_prefs): Allow using the
2458 full algorithm name (CAST5, SHA1) rather than the short form (S3,
2461 * main.h, keygen.c (keygen_get_std_prefs), keyedit.c
2462 (keyedit_menu): Return and use a fake uid packet rather than a
2463 string since we already have a nice parser/printer in
2464 keyedit.c:show_prefs.
2466 * main.h, misc.c (string_to_compress_algo): New.
2468 2002-11-01 David Shaw <dshaw@jabberwocky.com>
2470 * g10.c (main): Add --no-throw-keyid.
2472 * keydb.h, encode.c (write_pubkey_enc_from_list), g10.c (main),
2473 pkclist.c (build_pk_list): Add --hidden-recipient (-R) and
2474 --hidden-encrypt-to, which do a single-user variation on
2475 --throw-keyid. The "hide this key" flag is carried in bit 0 of
2476 the pk_list flags field.
2478 * keyserver.c (parse_keyrec): Fix shadowing warning.
2480 2002-10-31 Stefan Bellon <sbellon@sbellon.de>
2482 * compress.c (init_compress) [__riscos__]: Use
2483 riscos_load_module() to load ZLib module.
2485 * g10.c (main) [__riscos__]: Renames due to changes in riscos.c
2486 (e.g. prefixes all RISC OS specific functions with riscos_*).
2487 * photoid.c (show_photos) [__riscos__]: Likewise.
2488 * signal.c (got_fatal_signal) [__riscos__]: Likewise.
2490 * trustdb.c (check_regexp) [__riscos__]: Branch to RISC OS RegEx
2493 2002-10-31 David Shaw <dshaw@jabberwocky.com>
2495 * build-packet.c (do_plaintext), encode.c (encode_sesskey,
2496 encode_simple, encode_crypt), sign.c (write_plaintext_packet): Use
2497 wipememory() instead of memset() to wipe sensitive memory as the
2498 memset() might be optimized away.
2500 2002-10-30 David Shaw <dshaw@jabberwocky.com>
2502 * trustdb.c (check_regexp): Modern regexps require REG_EXTENDED.
2504 2002-10-29 David Shaw <dshaw@jabberwocky.com>
2506 * packet.h, trustdb.h, trustdb.c (trust_string): New. Return a
2507 string like "fully trusted", "marginally trusted", etc.
2508 (get_min_ownertrust): New. Return minimum ownertrust.
2509 (update_min_ownertrust): New. Set minimum ownertrust.
2510 (check_regexp): New. Check a regular epression against a user ID.
2511 (ask_ownertrust): Allow specifying a minimum value.
2512 (get_ownertrust_info): Follow the minimum ownertrust when
2514 (clear_validity): Remove minimum ownertrust when a key becomes
2516 (release_key_items): Release regexp along with the rest of the
2518 (validate_one_keyblock, validate_keys): Build a trust sig chain
2519 while validating. Call check_regexp for regexps. Use the minimum
2520 ownertrust if the user does not specify a genuine ownertrust.
2522 * pkclist.c (do_edit_ownertrust): Only allow user to select a
2523 trust level greater than the minimum value.
2525 * parse-packet.c (can_handle_critical): Can handle critical trust
2526 and regexp subpackets.
2528 * trustdb.h, trustdb.c (clear_ownertrusts), delkey.c
2529 (do_delete_key), import.c (import_one): Rename clear_ownertrust to
2530 clear_ownertrusts and have it clear the min_ownertrust value as
2533 * keylist.c (list_keyblock_print): Indent uid to match pub and
2536 * keyedit.c (print_and_check_one_sig, show_key_and_fingerprint,
2537 menu_addrevoker), keylist.c (list_keyblock_print,
2538 print_fingerprint): Show "T" or the trust depth for trust
2539 signatures, and add spaces to some strings to make room for it.
2541 * packet.h, parse-packet.c (dump_sig_subpkt, parse_one_sig_subpkt,
2542 parse_signature): Parse trust signature values.
2544 * tdbio.h, tdbio.c (tdbio_read_record, tdbio_write_record):
2545 Reserve a byte for the minimum ownertrust value (for use with
2548 2002-10-29 Stefan Bellon <sbellon@sbellon.de>
2550 * build-packet.c (calc_plaintext, do_plaintext): Removed RISC OS
2551 specific filetype parts (it's now done in make_basename()).
2553 * plaintext.c (handle_plaintext): Tidied up RISC OS specific
2556 * encode.c (encode_simple, encode_crypt): Added argument to
2557 make_basename() call.
2559 * sign.c (write_plaintext_packet): Added argument to
2560 make_basename() call.
2562 2002-10-28 Stefan Bellon <sbellon@sbellon.de>
2564 * build-packet.c (calc_plaintext, do_plaintext): Added filetype
2565 handling for RISC OS' file types.
2567 * plaintext.c (handle_plaintext) [__riscos__]: Added filetype
2568 handling for RISC OS' file types.
2570 2002-10-23 David Shaw <dshaw@jabberwocky.com>
2572 * main.h, import.c (sec_to_pub_keyblock, import_secret_one,
2573 parse_import_options), g10.c (main): New import-option
2574 "convert-sk-to-pk" to convert a secret key into a public key
2575 during import. It is on by default.
2577 2002-10-23 Werner Koch <wk@gnupg.org>
2579 * pubkey-enc.c (get_it): Fix segv, test for revoked only when PK
2582 2002-10-18 Timo Schulz <ts@winpt.org>
2584 * keylist.c: (print_pubkey_info): New.
2585 (print_seckey_info): New.
2586 * main.h: Prototypes for the new functions.
2587 * delkey.c (do_delete_key): Use it here.
2588 * revoke.c (gen_desig_revoke): Ditto.
2590 2002-10-17 Werner Koch <wk@gnupg.org>
2592 * pkclist.c (do_edit_ownertrust): Show all user IDs. This should
2593 be enhanced to also show the current trust level. Suggested by
2596 2002-10-17 David Shaw <dshaw@jabberwocky.com>
2598 * g10.c (main): Handle --strict and --no-strict from the command
2599 line before the options file is loaded.
2601 2002-10-15 David Shaw <dshaw@jabberwocky.com>
2603 * g10.c (main): Disable --textmode when encrypting (symmetric or
2604 pk) in --pgp2 mode as PGP 2 can't handle the unknown length
2605 literal packet. Reported by Michael Richardson.
2607 2002-10-14 David Shaw <dshaw@jabberwocky.com>
2609 * keyserver-internal.h, keyserver.c (print_keyrec, parse_keyrec,
2610 show_prompt, keyserver_search_prompt, keyserver_spawn): Go to
2611 version 1 of the keyserver protocol. This is a better design,
2612 similar to --with-colons, that allows for keys with multiple user
2613 IDs rather than using multiple keys. It also matches the machine
2614 readable pksd format. Also use a prettier --search-keys listing
2615 format that can fill different size windows (currently set at 24
2618 2002-10-12 Werner Koch <wk@gnupg.org>
2620 * keygen.c (print_status_key_created): New.
2621 (do_generate_keypair): Use it to print the fingerprint.
2622 (generate_subkeypair): Likewise.
2624 2002-10-11 David Shaw <dshaw@jabberwocky.com>
2626 * keyedit.c (menu_addrevoker): Properly back out if the signature
2627 fails. Also, do not allow appointing the same revoker twice, and
2628 report ALREADY_SIGNED if the user tries it.
2630 2002-10-07 David Shaw <dshaw@jabberwocky.com>
2632 * import.c (import_keys_internal): Missed one s/inp/inp2/.
2634 * keylist.c (print_capabilities): Properly indicate per-key
2635 capabilities of sign&encrypt primary keys that have
2636 secret-parts-missing (i.e. no capabilities at all)
2638 * mainproc.c (symkey_decrypt_sesskey): Fix compiler warning.
2640 2002-10-04 David Shaw <dshaw@jabberwocky.com>
2642 * getkey.c (get_pubkey_direct): Don't cache keys retrieved via
2643 this function as they may not have all their fields filled in.
2645 * sig-check.c (signature_check2): Use new is_primary flag to check
2646 rather than comparing main_keyid with keyid as this still works in
2647 the case of a not fully filled in pk.
2649 2002-10-04 Werner Koch <wk@gnupg.org>
2651 * import.c (import_keys_internal): s/inp/inp2/ to avoid shadowing
2654 * passphrase.c (agent_get_passphrase): Fixed signed/unsigned char
2655 problem in %-escaping. Noted by Ingo Klöcker.
2657 2002-10-03 David Shaw <dshaw@jabberwocky.com>
2659 * options.h, g10.c (main): Add --strict and --no-strict to switch
2660 the log_warning severity level from info to error.
2662 * keylist.c (print_capabilities): Secret-parts-missing keys should
2663 show that fact in the capabilities, and only primary signing keys
2664 can certify other keys.
2666 * packet.h, parse_packet.c (parse_key): Add is_primary flag for
2667 public keys (it already exists for secret keys).
2669 2002-10-02 David Shaw <dshaw@jabberwocky.com>
2671 * import.c (import_secret_one): Check for an illegal (>110)
2672 protection cipher when importing a secret key.
2674 * keylist.c (list_keyblock_print): Show a '#' for a
2675 secret-parts-missing key.
2677 * parse_packet.c (parse_key): Some comments.
2679 * revoke.c (gen_revoke): Remove some debugging code.
2681 * trustdb.c (verify_own_keys): Make trusted-key a non-deprecated
2684 * seckey-cert.c (do_check): Don't give the IDEA warning unless the
2685 cipher in question is in fact IDEA.
2687 2002-10-01 David Shaw <dshaw@jabberwocky.com>
2689 * import.c (import_one): Make sure that a newly imported key
2690 starts with a clean ownertrust.
2692 2002-10-01 Werner Koch <wk@gnupg.org>
2694 * getkey.c (get_pubkey_direct): New.
2695 (merge_selfsigs_main): Use it here to look for an ultimately
2696 trusted key. Using the full get_pubkey might lead to an
2697 infinitive recursion.
2699 2002-09-29 David Shaw <dshaw@jabberwocky.com>
2701 * keyserver.c (parse_keyserver_uri): Force the keyserver URI
2702 scheme to lowercase to be case-insensitive.
2704 2002-09-28 David Shaw <dshaw@jabberwocky.com>
2706 * export.c (do_export_stream): Comment.
2708 * sig-check.c (check_key_signature2): Properly handle a
2709 non-designated revocation import.
2711 2002-09-26 Werner Koch <wk@gnupg.org>
2713 * g10.c (set_homedir): New. Changed all direct assignments to use
2715 * gpgv.c (set_homedir): Ditto.
2717 2002-09-25 David Shaw <dshaw@jabberwocky.com>
2719 * Makefile.am: Link gpg with EGDLIBS (i.e. NETLIBS) as EGD uses
2720 sockets. Remove the old NETLIBS variable since the keyserver
2721 stuff is no longer internal.
2723 2002-09-24 David Shaw <dshaw@jabberwocky.com>
2725 * import.c (import_keys_stream): Fix compiler type warning.
2727 * keyring.c (keyring_rebuild_cache), sig-check.c
2728 (check_key_signature2), import.c (import, chk_self_sigs): Minor
2731 2002-09-23 Stefan Bellon <sbellon@sbellon.de>
2733 * main.h: Introduced fast-import as import option. Removed
2734 fast as separate option from prototypes.
2735 * import.c (parse_import_options): Added fast-import option.
2736 (import_*): Removed fast as separate option.
2737 * g10.c (main): Added option fast-import, removed old fast
2738 as separate argument.
2739 * keyserver.c (keyserver_spawn): Removed old fast as separate
2742 2002-09-22 Stefan Bellon <sbellon@sbellon.de>
2744 * import.c (import_keys, import_keys_stream,
2745 import_keys_internal): Added trustdb update/check to key import if
2746 not fast-import and interactive set/no-auto-check-trustdb unset.
2747 Avoided function clone by introducing import_keys_internal.
2749 2002-09-19 David Shaw <dshaw@jabberwocky.com>
2751 * keyserver.c (keyserver_spawn): Properly handle line truncation.
2752 Don't leak memory (~10-20 bytes) on searches.
2753 (keyserver_search_prompt): Cleanup.
2755 * keylist.c (list_keyblock_colon): Show 1F direct key signatures
2756 in --with-colons listing.
2758 2002-09-16 David Shaw <dshaw@jabberwocky.com>
2760 * keyedit.c (menu_addrevoker): The direct key signature for
2761 revocation keys must be at least v4 to carry the revocation key
2762 subpacket. Add a PGP 2.x warning for revocation keys.
2764 2002-09-14 David Shaw <dshaw@jabberwocky.com>
2766 * g10.c (check_permissions): Rearrange strings to make translating
2767 easier (don't incorporate string parts).
2769 * keyedit.c (sign_uids): Make strings translatable.
2771 * sig-check.c (check_key_signature2): Make string translatable.
2773 2002-09-13 David Shaw <dshaw@jabberwocky.com>
2775 * getkey.c (check_revocation_keys): Move....
2776 * main.h, sig-check.c (check_revocation_keys): to here. Also
2777 return the signature_check error code rather than 0/1 and cache
2780 * sig-check.c (check_key_signature2): Divert to
2781 check_revocation_keys if a revocation sig is made by someone other
2784 * getkey.c (merge_selfsigs_main): Tidy.
2786 2002-09-13 Werner Koch <wk@gnupg.org>
2788 * g10.c (main) [__MINGW32__]: Activate oLoadExtension.
2790 2002-09-12 David Shaw <dshaw@jabberwocky.com>
2792 * Makefile.am, hkp.c, hkp.h, keyserver.c (keyserver_work): Remove
2793 internal HKP support.
2795 * keyserver.c (keyserver_spawn): Remove whitespace after keyserver
2798 2002-09-10 David Shaw <dshaw@jabberwocky.com>
2800 * exec.c (expand_args): Remove loop left over from earlier
2802 (exec_write): Missed one tick.
2804 2002-09-10 Werner Koch <wk@gnupg.org>
2806 * g10.c, options.h: Removed option --emulate-checksum-bug.
2807 * misc.c (checksum_u16_nobug): Removed.
2808 (checksum_u16): Removed the bug emulation.
2809 (checksum_mpi): Ditto.
2810 (checksum_mpi_counted_nbits): Removed and replaced all calls
2813 * parse-packet.c (read_protected_v3_mpi): New.
2814 (parse_key): Use it here to store it as an opaque MPI.
2815 * seckey-cert.c (do_check): Changed the v3 unprotection to the new
2816 why to store these keys.
2817 (protect_secret_key): Likewise.
2818 * build-packet.c (do_secret_key): And changed the writing.
2820 * tdbio.c (tdbio_set_dbname, open_db): Use new macro MY_O_BINARY
2821 to avoid silly ifdefs.
2822 (open_db): Fallback to RDONLY so that gpg may be used from a
2825 * encode.c (encode_simple): Make sure we don't use an ESK packet
2826 when we don't have a salt in the S2K.
2828 * misc.c (pct_expando) <case f>: Make sure that LEN is initialized.
2830 * exec.c (exec_finish): Use ticks to denote filenames in messages.
2831 (make_tempdir, exec_write): Changed format of messages.
2833 * keyserver.c (print_keyinfo): Release USERID in on error.
2834 (keyserver_work) [!DISABLE_KEYSERVER_HELPERS]: Exclude the unused
2837 2002-09-09 Werner Koch <wk@gnupg.org>
2839 * parse-packet.c (make_attribute_uidname): Add new ar MAX_NAMELEN
2840 for sanity checks. Changed both callers. Limit the size of an %s.
2842 * options.skel: Comment lock-once out, so that this file does not
2843 change anything when copied to a new home directory.
2844 * openfile.c (try_make_homedir): Don't exit after copying the
2847 * options.h: Don't use a comma when declaring variables over more
2850 * mainproc.c (symkey_decrypt_sesskey): Check length of the session
2853 * hkp.c (dehtmlize): Use ascii_tolower to protect against weird
2854 locales. Cast the argument for isspace for the sake of broken
2856 (parse_hkp_index): s/ascii_memcasecmp/ascii_strncasecmp/.
2858 * g10.c: Removed option --emulate-3des-s2k-bug.
2860 * passphrase.c (hash_passphrase): Was used here.
2862 * export.c (parse_export_options)
2863 * keyserver.c (parse_keyserver_options)
2864 * import.c (parse_import_options)
2865 * g10.c (check_permissions): s/ascii_memcasecmp/ascii_strncasecmp/.
2867 2002-09-09 David Shaw <dshaw@jabberwocky.com>
2869 * g10.c (add_group): Use '=' to separate group name from group
2870 members. Use a better error message for when no = is found.
2872 * hkp.c (hkp_export): Use CRLF in headers.
2874 2002-09-03 David Shaw <dshaw@jabberwocky.com>
2876 * mainproc.c (print_pkenc_list): Don't increment the error counter
2877 when printing the list of keys a message was encrypted to. This
2878 would make gpg give a non-zero exit code even for completely valid
2879 messages if the message was encrypted to more than one key that
2882 2002-09-02 Werner Koch <wk@gnupg.org>
2884 * g10.c (main): Try to set a default character set. Print the
2885 used one in verbosity level 3.
2886 * gpgv.c (main): Try to set a default character set.
2888 * status.c, status.h (STATUS_IMPORT_OK): New.
2889 * import.c (import_one,import_secret_one): Print new status.
2891 2002-08-30 David Shaw <dshaw@jabberwocky.com>
2893 * pkclist.c (build_pk_list): Add new status code to indicate an
2894 untrusted user. This (or a disabled key) fail with "unavailable
2895 pubkey" (G10ERR_UNU_PUBKEY).
2897 * pkclist.c (build_pk_list): Fail if any recipient keys are
2900 * options.skel: The PGP LDAP keyserver is back. Use MIT keyserver
2901 as a sample rather than cryptnet as cryptnet does not support
2904 * keyedit.c (show_key_with_all_names): Fix error message
2905 (preferences are userid/selfsig and not key specific).
2907 2002-08-30 Werner Koch <wk@gnupg.org>
2909 * pkclist.c (do_we_trust_pre): Changed the wording of a warning.
2911 * encode.c (encode_simple,encode_crypt): Use new style CTB for
2912 compressssed packets when using MDC. We need to do this so that
2913 concatenated messages are properly decrypted. Old style
2914 compression assumes that it is the last packet; given that we
2915 can't determine the length in advance, the uncompressor does not
2916 know where to start. Actually we should use the new CTB always
2917 but this would break PGP 2 compatibility.
2919 * parse-packet.c (parse): Special treatment for new style CTB
2922 * build-packet.c (do_mdc): Removed. Was not used.
2923 (do_encrypted_mdc): Count in the version number and the MDC packet.
2925 2002-08-28 David Shaw <dshaw@jabberwocky.com>
2927 * sig-check.c (do_check_messages, do_check): Show keyid in error
2930 * keyserver.c (print_keyinfo): More readable key listings for
2931 --search-keys responses.
2933 2002-08-26 David Shaw <dshaw@jabberwocky.com>
2935 * hkp.c (parse_hkp_index, dehtmlize): Move HTML functionality into
2936 new "dehtmlize" function. Remove HTML before trying to parse each
2937 line from the keyserver. If the keyserver provides key type
2938 information in the listing, use it.
2940 2002-08-23 David Shaw <dshaw@jabberwocky.com>
2942 * sig-check.c (do_check, do_check_messages): Emit the usual sig
2943 warnings even for cached sigs. This also serves to protect
2944 against missing a sig expiring while cached.
2946 * getkey.c (merge_selfsigs_main): Don't check UID self-sigs twice.
2948 2002-08-22 David Shaw <dshaw@jabberwocky.com>
2950 * import.c (clean_subkeys, chk_self_sigs): Merge clean_subkeys
2951 into chk_self_sigs. This improves efficiency as the same
2952 signatures are not checked multiple times. Clarify when a subkey
2953 is revoked (any revocation signature, even if it is dated before
2954 the binding signature).
2956 * getkey.c (merge_selfsigs_subkey): Subkey revocation comments.
2958 * keylist.c (list_one): Stats are only for public key listings.
2960 * g10.c (main), options.skel: Default should be include-revoked
2961 for keyserver operations.
2963 2002-08-21 Werner Koch <wk@gnupg.org>
2965 * import.c (import_print_stats): Print new non_imported counter
2966 which is currently not used because we terminate on errors.
2968 2002-08-20 David Shaw <dshaw@jabberwocky.com>
2970 * options.skel: Document no-include-attributes for
2973 * keylist.c, keyedit.c, keyserver.c, sign.c: Some TODOs and
2976 * export.c (do_export_stream): Fix noop bug in exporting sensitive
2979 * pkclist.c (do_edit_ownertrust): Comment out the option for
2980 showing trust paths until it can be implemented.
2982 2002-08-19 Werner Koch <wk@gnupg.org>
2984 * getkey.c (get_user_id_native): Renamed to ..
2985 (get_user_id_printable): this. Filter out all dangerous
2986 characters. Checked all usages.
2987 (get_user_id_string_native): Renamed to..
2988 (get_user_id_string_printable): this. Filter out all dangerous
2989 characters. Checked all usages.
2990 * keyedit.c (show_basic_key_info): New.
2991 * keylist.c (print_fingerprint): New mode 3.
2992 * import.c (import_one): Use new function to display the user ID.
2994 2002-08-16 Timo Schulz <ts@winpt.org>
2996 * g10.c (main): Enable opt.interactive.
2998 * import.c (import_one): Ask the user if the key shall be
2999 imported when the interactive mode is used. Useful to extract
3000 selected keys from a file.
3002 2002-08-16 Werner Koch <wk@gnupg.org>
3004 * seckey-cert.c: Workaround to allow decryption of v3 keys created
3005 with a bug in the mpi_get_secure_buffer.
3007 2002-08-14 David Shaw <dshaw@jabberwocky.com>
3009 * hkp.c (parse_hkp_index): Properly handle really large keys
3010 (5 digit key length) in HKP searches.
3012 2002-08-13 David Shaw <dshaw@jabberwocky.com>
3014 * encode.c (encode_simple): Fix problem with using compression
3015 algo 2 and symmetric compressed files.
3017 * encode.c (encode_simple, encode_crypt): If we are not using a
3018 MDC, compress even if a file is already compressed. This is to
3019 help against the chosen ciphertext attack.
3021 * pkclist.c (select_algo_from_prefs): Fix requested algorithm bug
3022 so the request succeeds even if the requested algorithm is not the
3025 * cipher.c (write_header), encode.c (use_mdc, encode_simple,
3026 encode_crypt, encrypt_filter), g10.c (main): Be more eager to use
3027 a MDC. We use a MDC if the keys directly support it, if the keys
3028 list AES (any) or TWOFISH anywhere in the prefs, or if the cipher
3029 chosen does not have a 64 bit blocksize.
3031 2002-08-08 David Shaw <dshaw@jabberwocky.com>
3033 * options.skel: Some language tweaks, and remove the
3034 load-extension section for random gatherers.
3036 * keyring.c (create_tmp_file, rename_tmp_file): Create tmp files
3037 with user-only permissions, but restore the original permissions
3038 if the user has something special set.
3040 * openfile.c (copy_options_file): Create new options file
3041 (gpg.conf) with user-only permissions.
3043 * keydb.c (keydb_add_resource): Create new keyrings with user-only
3046 * tdbio.c (tdbio_set_dbname): Create new trustdbs with user-only
3049 2002-08-07 David Shaw <dshaw@jabberwocky.com>
3051 * sig-check.c (signature_check2): Sanity check that the md has a
3052 context for the hash that the sig is expecting. This can happen
3053 if a onepass sig header does not match the actual sig, and also if
3054 the clearsign "Hash:" header is missing or does not match the
3057 * keyedit.c (menu_revsig): Properly show a uid is revoked without
3058 restarting gpg. This is Debian bug 124219, though their supplied
3059 patch will not do the right thing.
3061 * main.h, tdbio.c (tdbio_set_dbname), misc.c (removed
3062 check_permissions), keydb.c (keydb_add_resource), g10.c (main,
3063 check_permissions): Significant reworking of the permission check
3064 mechanism. The new behavior is to check everything in the homedir
3065 by checking the homedir itself. If the user wants to put
3066 (possibly shared) keyrings outside the homedir, they are not
3067 checked. The options file and any extension files are checked
3068 wherever they are, as well as their enclosing directories. This
3069 is Debian bug 147760.
3071 2002-08-06 Stefan Bellon <sbellon@sbellon.de>
3073 * g10.c (main): Use of EXTSEP_S in new gpg.conf string.
3074 * openfile.c (copy_options_file): Ditto.
3076 2002-08-06 David Shaw <dshaw@jabberwocky.com>
3078 * options.h, g10.c (main), mainproc.c (proc_encrypted):
3079 --ignore-mdc-error option to turn a MDC check error into a
3082 * encode.c (encode_crypt), g10.c (main), sign.c (sign_file,
3083 clearsign_file): Use the same --pgpX warning string everywhere to
3086 * encode.c (write_pubkey_enc_from_list): Warn when using
3087 --throw-keyid with --pgpX. Noted by Vedaal Nistar.
3089 * revoke.c (export_minimal_pk, gen_desig_revoke, gen_revoke):
3090 Export a minimal pk along with the revocation cert when in --pgpX
3091 mode so that PGP can import it.
3093 2002-08-06 Werner Koch <wk@gnupg.org>
3095 * options.skel: Changed comments.
3097 * g10.c (main): Try to use "gpg.conf" as default option file.
3098 * openfile.c (copy_options_file): Changed name of created file.
3100 2002-08-02 Werner Koch <wk@gnupg.org>
3102 * Makefile.am (LDFLAGS): Removed DYNLINK_LDFLAGS.
3104 2002-07-30 David Shaw <dshaw@jabberwocky.com>
3106 * options.h, g10.c (main), mainproc.c (proc_encrypted): Return a
3107 decryption failed error if a MDC does not verify. Warn if a MDC
3108 is not present (can disable via --no-mdc-warning).
3110 * exec.c (exec_write), g10.c (main), keyserver.c
3111 (keyserver_spawn): Use new DISABLE_KEYSERVER_PATH rather than
3114 2002-07-28 David Shaw <dshaw@jabberwocky.com>
3116 * sig-check.c (do_check): Properly validate v4 sigs with no hashed
3119 2002-07-25 Werner Koch <wk@gnupg.org>
3121 * delkey.c (do_delete_key): Always allow to delete a key in batch mode
3122 when specified by fingerprint. Suggested by Enzo Michelangeli.
3124 2002-07-25 David Shaw <dshaw@jabberwocky.com>
3126 * keyedit.c (menu_revsig): Change "revsig" to honor selected uids
3127 so the user can revoke sigs from particular uids only.
3129 * keylist.c (list_keyblock_print): Don't display expired uids in
3130 --list-keys unless -v and not --list-sigs (just like revoked
3133 * exec.c, export.c, import.c, keyedit.c, keyserver.c, misc.c:
3134 "Warning" -> "WARNING"
3136 2002-07-24 David Shaw <dshaw@jabberwocky.com>
3138 * main.h, import.c (parse_import_options, fix_hkp_corruption,
3139 import_one, delete_inv_parts), g10.c (main): New import-option
3140 "repair-hkp-subkey-bug", which repairs as much as possible the HKP
3141 mangling multiple subkeys bug. It is on by default for keyserver
3142 receives, and off by default for regular --import.
3144 * main.h, import.c (import, import_one, delete_inv_parts), hkp.c
3145 (hkp_ask_import), keyserver.c (keyserver_spawn): Use keyserver
3146 import options when doing keyserver receives.
3148 * options.h, exec.h, exec.c (set_exec_path, exec_write), g10.c
3149 (main), keyserver.c (keyserver_spawn): If the user does not use
3150 "exec-path", completely replace $PATH with GNUPG_LIBEXECDIR before
3151 calling the keyserver helper. If the user does use "exec-path",
3152 append GNUPG_LIBEXECDIR after the specified path.
3154 2002-07-23 David Shaw <dshaw@jabberwocky.com>
3156 * import.c (parse_import_options), export.c
3157 (parse_export_options): Fix offset problem with reversed ("no-")
3160 * import.c (delete_inv_parts): Discard subkey signatures (0x18 and
3161 0x28) if found in the userid section of the key.
3163 * sig-check.c (signature_check2): Signatures made by invalid
3164 subkeys (bad/missing binding sig) are also invalid.
3166 * keylist.c (print_fingerprint): Show the primary as well as the
3167 secondary key fingerprint in modes 1 & 2.
3169 2002-07-22 David Shaw <dshaw@jabberwocky.com>
3171 * options.h, main.h, g10.c (main), import.c
3172 (parse_import_options, delete_inv_parts), keyserver.c
3173 (parse_keyserver_options): add new --import-options option. The
3174 only current flag is "allow-local-sigs".
3176 * g10.c (main): Don't disable MDC in pgp7 mode.
3178 * options.h, g10.c (main), keyserver.c (parse_keyserver_options):
3179 Remove old keyserver-option include-attributes now that there is
3180 an export-option for the same thing.
3182 * options.h, main.h, export.c (parse_export_options,
3183 do_export_stream), g10.c (main): add new --export-options option.
3184 Current flags are "include-non-rfc", "include-local-sigs",
3185 "include-attributes", and "include-sensitive-revkeys".
3187 * options.h, hkp.c (hkp_export), keyserver.c
3188 (parse_keyserver_options, keyserver_spawn): try passing unknown
3189 keyserver options to export options, and if successful, use them
3190 when doing a keyserver --send-key.
3192 * build-packet.c (build_sig_subpkt): We do not generate
3193 SIGSUBPKT_PRIV_VERIFY_CACHE anymore.
3195 * revoke.c (gen_desig_revoke): Lots more comments about including
3196 sensitive revkeys along with the revocation sig itself.
3198 * keyserver.c (parse_keyserver_options): Simpler implementation
3199 that can skip one pass over the options.
3201 2002-07-18 David Shaw <dshaw@jabberwocky.com>
3203 * keyedit.c (keyedit_menu, menu_addrevoker): Allow specifying
3204 "sensitive" as an argument to an addrevoker command. This sets
3205 the 0x40 sensitive revoker flag.
3207 * revoke.c (gen_desig_revoke): When generating a designated
3208 revocation, include the direct key sig that contains the
3209 designated revoker subpacket. This allows sensitive designated
3210 revocation subpackets to be exported. Also indicate which
3211 revokers are sensitive in the first place.
3213 2002-07-17 David Shaw <dshaw@jabberwocky.com>
3215 * keyedit.c (show_key_with_all_names_colon): The 0x40 class bit in
3216 a designated revoker means "sensitive", not "local". It's
3217 exportable under the right circumstances.
3219 * main.h, options.h, export.c (do_export_stream), g10.c (main),
3220 hkp.c (hkp_export), keyserver.c (keyserver_spawn: Add a flag to
3221 skip attribute packets and their signatures while exporting. This
3222 is to accomodate keyservers (pksd again) that choke on attributes.
3223 Use keyserver-option "include-attributes" to control it. This
3224 defaults to ON (i.e. don't skip).
3226 2002-07-09 David Shaw <dshaw@jabberwocky.com>
3228 * options.h, keyserver.c (parse_keyserver_uri, keyserver_spawn,
3229 keyserver_work), hkp.c (hkp_ask_import, hkp_export, hkp_search):
3230 Use a much more strict reading of RFC-2396 for the keyserver URIs.
3231 Specifically, don't try and be smart about checking the value of
3232 ":port" so long as it is all digits, and properly handle opaque
3233 data (those scheme specific parts that do not start with "//").
3235 2002-07-04 David Shaw <dshaw@jabberwocky.com>
3237 * photoid.c (get_default_photo_command, show_photos): Honor
3238 FIXED_PHOTO_VIEWER and DISABLE_PHOTO_VIEWER.
3240 * mainproc.c (check_sig_and_print): Use --show-photos to show
3241 photos when verifying a sig made by a key with a photo.
3243 * keyserver.c (parse_keyserver_uri): Properly parse a URI with no
3244 :port section and an empty file path, but with a terminating '/'.
3245 (keyserver_work): Honor DISABLE_KEYSERVER_HELPERS.
3247 * hkp.c (hkp_ask_import): Display keyserver URI as a URI, but only
3250 * exec.c, g10.c: USE_EXEC_PATH -> FIXED_EXEC_PATH
3252 2002-07-03 David Shaw <dshaw@jabberwocky.com>
3254 * exec.h, exec.c (set_exec_path, exec_write), g10.c (main): If
3255 USE_EXEC_PATH is defined at compile time, use it to lock the
3256 exec-path and not allow the user to change it.
3258 2002-07-02 David Shaw <dshaw@jabberwocky.com>
3260 * options.h, g10.c (main), keyserver.c (keyserver_refresh):
3261 Maintain and use the original keyserver URI for cosmetics rather
3262 than trying to recreate it when needed.
3264 * mainproc.c (check_sig_and_print): Properly disregard expired
3265 uids. Make sure that the first uid listed is a real uid and not
3266 an attribute (attributes should only be listed in the "aka"
3267 section). When there are no valid textual userids, try for an
3268 invalid textual userid before using any attribute uid.
3270 2002-07-01 David Shaw <dshaw@jabberwocky.com>
3272 * options.skel: Fix a few typos, clarify "group", and remove
3273 sample photo viewers for Win32 since they are the defaults now.
3275 * parse-packet.c (make_attribute_uidname), keylist.c
3276 (dump_attribs): Fix two typecast warnings.
3278 * packet.h, build-packet.c (build_attribute_subpkt), exec.c
3279 (expand_args), mkdtemp.c (mkdtemp), photoid.c
3280 (parse_image_header): Fix some signedness compiler warnings.
3282 2002-07-01 Werner Koch <wk@gnupg.org>
3284 * photoid.c (get_default_photo_command): Also use __MINGW32__
3285 instead of HAVE_DOSISH_SYSTEM.
3287 * encode.c (encode_symmetric): Do not use the new encryption code.
3289 2002-06-30 Werner Koch <wk@gnupg.org>
3291 * photoid.c: Use __MINGW32__ to include windows because
3292 HAVE_DOSISH_SYSTEM is also set for OS/2 and plain DOS. Provide
3293 constant missing in older mingw installations.
3295 2002-06-21 Stefan Bellon <sbellon@sbellon.de>
3297 * g10.c [__riscos__]: Moved RISC OS specific stuff to util/riscos.c
3300 * gpgv.c [__riscos__]: Likewise.
3302 2002-06-20 David Shaw <dshaw@jabberwocky.com>
3304 * keydb.h, pkclist.c (select_algo_from_prefs): Allow passing a
3305 suggested algorithm which will be used if available.
3307 * encode.c (encode_crypt, encrypt_filter), sign.c (sign_file): Use
3308 new select_algo_from_prefs feature to check if forcing an
3309 algorithm would violate the recipient preferences.
3311 * photoid.c (get_default_photo_command, show_photos): Use
3312 different default viewers on different platforms. Currently we
3313 have Win 9x, Win NT (2k, xp), Mac OSX, RISC OS, and "everybody
3314 else". These are #ifdefs as much as possible to avoid clutter.
3316 * g10.c (strusage, build_list), keyedit.c (show_prefs), main.h,
3317 misc.c (compress_algo_to_string, check_compress_algo), pkclist.c
3318 (algo_available), keygen.c (keygen_set_std_prefs): New
3319 algo_to_string and check functions for compress algorithms.
3321 2002-06-20 Werner Koch <wk@gnupg.org>
3323 * misc.c (setsysinfo): Removed a #warning for Alpha's uniligedn
3324 trap disabling - it is quite possible that this is a debug relict.
3326 2002-06-20 Stefan Bellon <sbellon@sbellon.de>
3328 * g10.c [__riscos__]: Added image file system feature.
3330 * gpgv.c [__riscos__]: Added image file system feature.
3332 * photoid.c (show_photos) [__riscos__]: Set RISC OS filetype of
3333 photo id according to MIME type.
3335 2002-06-19 David Shaw <dshaw@jabberwocky.com>
3337 * hkp.c (parse_hkp_index): Don't leak memory when failing out of a
3340 * g10.c (add_notation_data): Relax slightly the rules as to what
3341 can go into a notation name - 2440 allows "@", for example.
3343 2002-06-17 David Shaw <dshaw@jabberwocky.com>
3345 * import.c (clean_subkeys, import_one): Only allow at most 1
3346 binding sig and at most 1 revocation sig on a subkey, as per
3349 * hkp.c (parse_hkp_index, hkp_search): Error if the keyserver
3350 returns an unparseable HKP response.
3352 2002-06-15 David Shaw <dshaw@jabberwocky.com>
3354 * keyedit.c (show_key_with_all_names), keylist.c
3355 (list_keyblock_print): Show "[expired]" before expired uids.
3357 * keyedit.c (show_key_with_all_names_colon), mainproc.c
3358 (list_node), keylist.c (list_keyblock_colon): Show flag 'e' for
3359 expired user ids. Use "uat" for user attribute packets instead of
3360 "uid". Also use '<count> <length>' rather than the fake user id
3361 string on attributes.
3363 * keygen.c (keygen_add_revkey): Remove unused code.
3365 * misc.c (check_permissions): Check directory permissions
3366 properly - they are not special files.
3368 * pkclist.c (expand_id, expand_group, build_pk_list): When
3369 expanding groups before building a pk list, inherit flags from the
3370 original pre-expanded string.
3372 * pubkey-enc.c (is_algo_in_prefs): Don't use prefs from expired
3375 2002-06-14 David Shaw <dshaw@jabberwocky.com>
3377 * free-packet.c (copy_signature): Properly copy a signature that
3378 carries a revocation key on it.
3380 * pkclist.c (expand_id, expand_group, build_pk_list): Groups now
3381 work properly when used in the "Enter the user ID" prompt.
3383 2002-06-14 David Shaw <dshaw@jabberwocky.com>
3385 * keyedit.c (show_key_with_all_names): Display warning if a user
3386 tries to show prefs on a v3 key with a v3 selfsig.
3388 * kbnode.c (dump_kbnode): Show if a uid is expired.
3390 * import.c (merge_blocks, import_revoke_cert): Show user ID
3391 receiving a revocation certificate.
3393 * free-packet.c (cmp_user_ids): Properly compare attribute ids.
3395 * pkclist.c (expand_groups): Maintain the strlist flags while
3396 expanding. Members of an expansion inherit their flags from the
3399 * options.h, cipher.c (write_header), g10.c (main), keygen.c
3400 (keygen_set_std_prefs): remove the personal_mdc flag. It no
3401 longer serves a purpose now that the personal preference lists are
3402 split into cipher/digest/zip.
3404 2002-06-14 Timo Schulz <ts@winpt.org>
3406 * skclist.c (is_insecure): Implemented.
3408 2002-06-12 David Shaw <dshaw@jabberwocky.com>
3410 * keyserver.c (keyserver_spawn): Properly handle PROGRAM responses
3411 when they have a CRLF ending. Noted by Keith Ray.
3413 * keyserver.c (keyserver_spawn): Handle CRLF endings from
3414 keyserver helpers. Also don't leak the last line worth of memory
3415 from the keyserver response.
3417 * main.h, misc.c (deprecated_warning): New function to warn about
3418 deprecated options and commands.
3420 * g10.c (main), keyserver-internal.h, keyserver.c
3421 (parse_keyserver_uri): Use new deprecated function to warn about
3422 honor-http-proxy, auto-key-retrieve, and x-broken-hkp.
3424 2002-06-11 David Shaw <dshaw@jabberwocky.com>
3426 * Makefile.am: link gpg with NETLIBS for the built-in HKP access.
3428 2002-06-10 David Shaw <dshaw@jabberwocky.com>
3430 * options.h, keyserver.c (keyserver_opts), g10.c (main): New
3431 keyserver option "include-subkeys". This feature already existed,
3432 but now can be turned off. It defaults to on.
3434 * options.h, keyserver.c (parse_keyserver_options,
3435 keyserver_spawn): There are now enough options to justify making a
3436 structure for the keyserver options rather than a page of
3437 if-then-else-if-then-etc.
3439 * getkey.c (merge_keys_and_selfsig, merge_selfsigs_main): Fix bug
3440 in calculating key expiration dates.
3442 2002-06-09 David Shaw <dshaw@jabberwocky.com>
3444 * keydb.h, getkey.c (get_user_id_native), import.c (import_one):
3445 Display user ID while importing a key. Note this applies to both
3446 --import and keyserver --recv-keys.
3448 * exec.c (exec_finish): Log unnatural exit (core dump, killed
3449 manually, etc) for fork/exec/pipe child processes.
3451 2002-06-08 Timo Schulz <ts@winpt.org>
3453 * encode.c (encode_symmetric): Disable the compat flag
3454 when the expert mode is enabled.
3456 2002-06-07 David Shaw <dshaw@jabberwocky.com>
3458 * options.skel, options.h, main.h, keydb.h, pkclist.c
3459 (build_pk_list, expand_groups), g10.c (main, add_group): Add new
3460 "group" command to allow one name to expand into multiple keys.
3461 For simplicity, and to avoid potential loops, we only expand once
3462 - you can't make an alias that points to an alias.
3464 * main.h, g10.c (main), keygen.c (build_personal_digest_list):
3465 Simplify the default digest list - there is really no need for the
3466 other hashes since they will never be used after SHA-1 in the
3469 * options.skel, options.h, g10.c (main), hkp.c (hkp_ask_import,
3470 hkp_export, hkp_search), keyserver.c (parse_keyserver_options,
3471 parse_keyserver_uri, keyserver_work, keyserver_refresh): Make the
3472 "x-broken-hkp" keyserver scheme into keyserver-option
3473 "broken-http-proxy". Move honor_http_proxy into
3474 keyserver_options. Canonicalize the three variations of "hkp",
3475 "x-hkp", and "x-broken-hkp" into "hkp".
3477 2002-06-07 Stefan Bellon <sbellon@sbellon.de>
3479 * g10.c [__riscos__]: Added --attribute-file to do the same as
3480 --attribute-fd, but with a filename not a fd as argument.
3481 Added magic symbol for RISC OS to use different memory management.
3483 * gpgv.c [__riscos__]: Added magic symbol for RISC OS to use
3484 different memory management.
3486 2002-06-06 David Shaw <dshaw@jabberwocky.com>
3488 * main.h, g10.c (main), keygen.c (build_personal_digest_list): Put
3489 in a default digest preference list consisting of SHA-1, followed
3490 by every other installed digest except MD5. Note this is the same
3491 as having no digest preference at all except for SHA-1 being
3494 * options.h, g10.c (main), keygen.c (keygen_set_std_prefs),
3495 pkclist.c (select_algo_from_prefs): Split
3496 --personal-preference-list into three:
3497 --personal-{cipher|digest|compress}-preferences. This allows a
3498 user to set one without affecting another (i.e. setting only a
3499 digest pref doesn't imply an empty cipher pref).
3501 * exec.c (exec_read): This is a safer way of guessing the return
3502 value of system(). Noted by Stefan Bellon.
3504 2002-06-05 David Shaw <dshaw@jabberwocky.com>
3506 * hkp.c (parse_hkp_index): Be more robust with keyservers
3507 returning very unparseable responses.
3509 * exec.c (exec_read): Catch and display an error when the remote
3510 process exits unnaturally (i.e. segfault) so the user knows what
3511 happened. Also fix exec_write stub which has a different number
3514 2002-06-05 Timo Schulz <ts@winpt.org>
3516 * encode.c (encode_simple): Ignore the new mode for RFC1991.
3517 * mainproc.c (symkey_decrypt_sesskey): Better check for weird
3520 2002-06-05 Timo Schulz <ts@winpt.org>
3522 * encode.c (encode_sesskey): New.
3523 (encode_simple): Use it here. But by default we use the compat
3524 mode which supress to generate encrypted session keys.
3526 2002-06-05 Timo Schulz <ts@winpt.org>
3528 * mainproc.c (symkey_decrypt_sesskey): New.
3529 (proc_symkey_enc): Support for encrypted session keys.
3531 2002-06-04 David Shaw <dshaw@jabberwocky.com>
3533 * sign.c (hash_for, sign_file): When encrypting and signing at the
3534 same time, consult the various hash prefs to pick a hash algorithm
3535 to use. Pass in a 160-bit hint if any of the signing keys are
3538 * keydb.h, pkclist.c (select_algo_from_prefs, algo_available):
3539 Pass a "hints" opaque pointer in to let the caller give hints as
3540 to what algorithms would be acceptable. The only current hint is
3541 for PREFTYPE_HASH to require a 160-bit hash for DSA. Change all
3542 callers in encode.c (encode_crypt, encrypt_filter) and sign.c
3543 (sign_file). If we settle on MD5 as the best algorithm based
3544 solely on recepient keys and SHA1 is also a possibility, use SHA1
3545 unless the user intentionally chose MD5. This is as per 2440:13.
3547 * exec.c (make_tempdir): Fix duplicated filename problem.
3549 2002-06-03 David Shaw <dshaw@jabberwocky.com>
3551 * packet.h, parse-packet.c (enum_sig_subpkt): Report back from
3552 enum_sig_subpkt when a subpacket is critical and change all
3553 callers in keylist.c (show_policy_url, show_notation), mainproc.c
3554 (print_notation_data), and pkclist.c (do_show_revocation_reason).
3556 * keylist.c (show_policy_url, show_notation): Display if the
3557 policy or notation is critical.
3559 2002-06-03 David Shaw <dshaw@jabberwocky.com>
3561 * main.h, g10.c (main), keylist.c (dump_attribs, set_attrib_fd,
3562 list_keyblock_print, list_keyblock_colon), status.h, status.c
3563 (get_status_string): New --attribute-fd feature to dump the
3564 contents of attribute subpackets for frontends. If --status-fd is
3565 also used, then a new status tag ATTRIBUTE is provided for each
3568 * packet.h, getkey.c (fixup_uidnode, merge_selfsigs_main,
3569 merge_selfsigs_subkey), parse-packet.c (setup_user_id): Keep track
3570 of the expiration time of a user ID, and while we're at it, use
3571 the expired flag from the selfsig rather than reparsing the
3572 SIG_EXPIRE subpacket.
3574 * photoid.c (generate_photo_id): When adding a new photo ID,
3575 showing the photo for confirmation is not safe when noninteractive
3576 since the "user" may not be able to dismiss a viewer window.
3577 Noted by Timo Schulz.
3579 2002-06-03 David Shaw <dshaw@jabberwocky.com>
3581 * options.skel: Sample photo viewers for Win32.
3583 * misc.c (pct_expando): Use the seckey for %k/%K if the pubkey is
3586 * photoid.h, photoid.c (show_photos): Include the seckey in case a
3587 user tries to view a photo on a secret key, and change all callers
3588 in keyedit.c (menu_showphoto), keylist.c (list_keyblock_print),
3589 and photoid.c (generate_photo_id).
3591 2002-06-02 David Shaw <dshaw@jabberwocky.com>
3593 * photoid.c (show_photos): Work properly when not called with a
3596 2002-05-31 David Shaw <dshaw@jabberwocky.com>
3598 * sign.c (mk_notation_and_policy): Free unneeded buffer.
3600 * hkp.c (parse_hkp_index): Properly handle the '&' character
3601 (i.e. "&") in HKP responses.
3603 * getkey.c (merge_selfsigs_main): Fix reversed expiration time
3604 check with self-sigs.
3606 * keyedit.c (sign_uids): When making a new self-sig on a v3 key,
3607 make a v3 self-sig unless it is currently a v3 self-sig being
3610 2002-05-31 Timo Schulz <ts@winpt.org>
3612 * pkclist.c (do_show_revocation_reason): Don't use capital
3613 letters for non-interactive output.
3614 (show_revocation_reason): Now it is global.
3615 * pubkey-enc.c (get_it): Show if the key has been revoked.
3617 2002-05-30 David Shaw <dshaw@jabberwocky.com>
3619 * sign.c (write_signature_packets, sign_file, clearsign_file,
3620 sign_symencrypt_file): Make a v4 signature if a policy URL or
3621 notation is set, unless v3 sigs are forced via rfc1991 or
3622 force-v3-sigs. Also remove some doubled code and clarify an error
3623 message (we don't sign in PGP2 mode - just detach-sign).
3625 * parse-packet.c (parse_one_sig_subpkt): Add KS_FLAGS to the "any
3628 2002-05-29 David Shaw <dshaw@jabberwocky.com>
3630 * keygen.c (keygen_set_std_prefs, add_feature_mdc): Use "mdc" and
3631 "no-mdc" in the prefs string to allow switching on and off the MDC
3632 feature. This is needed to properly export a key from GnuPG for
3633 use on PGP which does not support MDC - without this, MDC-capable
3634 implementations will still try and generate MDCs which will break
3637 * keygen.c (keygen_get_std_prefs): Show "[mdc]" in prefs string if
3640 * options.h, g10.c (main), cipher.c (write_header), keygen.c
3641 (keygen_set_std_prefs): For consistency, allow the user to specify
3642 mdc/no-mdc in the --personal-preference-list. If disabled, it
3643 acts just like --disable-mdc.
3645 2002-05-29 David Shaw <dshaw@jabberwocky.com>
3647 * options.h, exec.c: Add some debugging info, using the 1024 debug
3650 * exec.c (win_system): New system()-like function for win32 that
3651 does not return until the child process terminates. Of course,
3652 this doesn't help if the process itself exits before it is
3655 2002-05-29 Werner Koch <wk@gnupg.org>
3657 * encode.c (encode_simple): Intialize PKT when --no-literal is used.
3659 * keyedit.c (show_key_with_all_names_colon): Renamed the record
3660 for revocation keys to "rvk".
3662 2002-05-27 Werner Koch <wk@gnupg.org>
3664 * keyedit.c (show_key_with_all_names_colon): New.
3665 (show_key_with_all_names): Divert to new function when required.
3666 Sanitize printing of revoker name.
3668 2002-05-27 David Shaw <dshaw@jabberwocky.com>
3670 * build-packet.c (build_sig_subpkt): Handle setting sig flags for
3671 certain subpacket types (notation, policy url, exportable,
3672 revocable). keyedit.c (sign_mk_attrib): Flags no longer need to
3675 * packet.h, parse-packet.c (parse_one_sig_subpkt), build-packet.c
3676 (build_sig_subpkt): Call parse_one_sig_subpkt to sanity check
3677 buffer lengths before building a sig subpacket.
3679 2002-05-26 David Shaw <dshaw@jabberwocky.com>
3681 * sign.c (mk_notation_and_policy): Include secret key to enable %s
3682 expandos, and pass notations through pct_expando as well.
3684 * main.h, misc.c (pct_expando): Add %s and %S expandos for
3687 2002-05-25 David Shaw <dshaw@jabberwocky.com>
3689 * g10.c (strusage, build_list): Add compress algorithms to
3690 --version list. Show algorithm numbers when --verbose --version
3693 2002-05-22 David Shaw <dshaw@jabberwocky.com>
3695 * options.h, main.h, keygen.c (keygen_set_set_prefs,
3696 keygen_get_std_prefs, keygen_upd_std_prefs), keyedit.c
3697 (keyedit_menu), g10.c (main), pkclist.c (select_algo_from_prefs):
3698 Add --personal-preference-list which allows the user to factor in
3699 their own preferred algorithms when the preference lists are
3700 consulted. Obviously, this does not let the user violate a
3701 recepient's preferences (and the RFC) - this only influences the
3702 ranking of the agreed-on (and available) algorithms from the
3703 recepients. Suggested by David Hollenberg.
3705 * options.h, keygen.c (keygen_set_std_prefs), g10.c (main): Rename
3706 --preference-list to --default-preference-list (as that is what it
3707 really is), and make it a true default in that if the user selects
3708 "default" they get this list and not the compiled-in list.
3710 2002-05-22 Werner Koch <wk@gnupg.org>
3712 * g10.c (main): Add missing LF in a info printout and made it
3713 translatable. Noted by Michael Tokarev.
3715 2002-05-21 Werner Koch <wk@gnupg.org>
3717 * g10.c (main): Removed the undef of USE_SHM_COPROCESSING which
3718 was erroneously introduced on 2002-01-09.
3720 * signal.c (got_fatal_signal): Don't write the Nul to stderr.
3721 Reported by David Hollenberg.
3723 2002-05-18 David Shaw <dshaw@jabberwocky.com>
3725 * main.h, g10.c (main), revoke.c (gen_desig_revoke): Generate a
3726 designated revocation via --desig-revoke
3728 * keyedit.c (keyedit_menu, menu_addrevoker): New "addrevoker"
3729 command to add a designated revoker to a key.
3731 2002-05-17 David Shaw <dshaw@jabberwocky.com>
3733 * gpgv.c: Add stub for get_ownertrust().
3735 * g10.c (main): --allow-freeform-uid should be implied by
3736 OpenPGP. Add --no-allow-freeform-uid.
3738 * keyedit.c (sign_uids): Issue a warning when signing a
3741 * getkey.c (merge_selfsigs_main): If a key has no selfsigs, and
3742 allow-non-selfsigned-uid is not set, still try and make the key
3743 valid by checking all uids for a signature from an ultimately
3746 2002-05-16 David Shaw <dshaw@jabberwocky.com>
3748 * main.h, keygen.c (keygen_add_revkey): Add revocation key
3749 subpackets to a signature (callable by
3750 make_keysig_packet). (write_direct_sig): Write a 1F direct key
3751 signature. (parse_revocation_key): Parse a string in
3752 algo:fpr:sensitive format into a revocation
3753 key. (get_parameter_revkey, do_generate_keypair): Call above
3754 functions when prompted from a batch key generation file.
3756 * build-packet.c (build_sig_subpkt): Allow multiple revocation key
3757 subpackets in a single sig.
3759 * keydb.h, getkey.c (get_seckey_byfprint): Same as
3760 get_pubkey_byfprint, except for secret keys. We only know the
3761 fingerprint of a revocation key, so this is needed to retrieve the
3762 secret key needed to issue a revokation.
3764 * packet.h, parse-packet.c (parse_signature, parse_revkeys): Split
3765 revkey parsing off into a new function that can be used to reparse
3766 after manipulating the revkey list.
3768 * sign.c (make_keysig_packet): Ability to make 1F direct key
3771 2002-05-15 David Shaw <dshaw@jabberwocky.com>
3773 * options.skel: keyserver.pgp.com is gone, so list pgp.surfnet.nl
3774 as a sample LDAP server instead.
3776 * getkey.c (merge_selfsigs_main): Properly handle multiple
3777 revocation keys in a single packet. Properly handle revocation
3778 keys that are in out-of-order packets. Remove duplicates in
3779 revocation key list.
3781 2002-05-14 Timo Schulz <ts@winpt.org>
3783 * exec.c (make_tempdir) [MINGW32]: Added missing '\'.
3785 2002-05-14 Stefan Bellon <sbellon@sbellon.de>
3787 * exec.c (make_tempdir): Make use of EXTSEP_S instead of hardcoded
3788 dot as extension separator.
3790 2002-05-13 David Shaw <dshaw@jabberwocky.com>
3792 * photoid.c (show_photos): Use the long keyid as the filename for
3793 the photo. Use the short keyid as the filename on 8.3 systems.
3795 * exec.h, exec.c (make_tempdir, exec_write, exec_finish): Allow
3796 caller to specify filename. This should make things easier on
3797 windows and macs where the file extension is required, but a whole
3798 filename is even better.
3800 * keyedit.c (show_key_with_all_names, show_prefs): Show proper
3801 prefs for a v4 key uid with no selfsig at all.
3803 * misc.c (check_permissions): Don't check permissions on
3804 non-normal files (pipes, character devices, etc.)
3806 2002-05-11 Werner Koch <wk@gnupg.org>
3808 * mainproc.c (proc_symkey_enc): Avoid segv in case the parser
3809 encountered an invalid packet.
3811 * keyserver.c (keyserver_export): Get confirmation before sending
3814 2002-05-10 Stefan Bellon <sbellon@sbellon.de>
3816 * g10.c, hkp.c, keyedit.c, keyserver.c: Replaced all occurrances
3817 of strcasecmp with ascii_strcasecmp and all occurrances of
3818 strncasecmp with ascii_memcasecmp.
3820 2002-05-10 David Shaw <dshaw@jabberwocky.com>
3822 * packet.h, getkey.c (fixup_uidnode), keyedit.c (show_prefs): Show
3823 assumed prefs for hash and compression as well as the cipher pref.
3824 Show assumed prefs if there are no prefs at all on a v4
3827 * options.h, g10.c (main), sign.c (make_keysig_packet): New
3828 --cert-digest-algo function to override the default key signing
3831 2002-05-09 David Shaw <dshaw@jabberwocky.com>
3833 * getkey.c (merge_selfsigs_main): Make sure the revocation key
3834 list starts clean as this function may be called more than once
3835 (e.g. from functions in --edit).
3837 * g10.c, encode.c (encode_crypt), sign.c (sign_file,
3838 sign_symencrypt_file): Make --compress-algo work like the
3839 documentation says. It should be like --cipher-algo and
3840 --digest-algo in that it can override the preferences calculation
3841 and impose the setting the user wants. No --compress-algo setting
3842 allows the usual preferences calculation to take place.
3844 * main.h, compress.c (compress_filter): use new
3845 DEFAULT_COMPRESS_ALGO define, and add a sanity check for compress
3848 2002-05-08 David Shaw <dshaw@jabberwocky.com>
3850 * pkclist.c (select_algo_from_prefs): There is an assumed
3851 compression preference for uncompressed data.
3853 2002-05-07 David Shaw <dshaw@jabberwocky.com>
3855 * options.h, g10.c (main), getkey.c (finish_lookup), pkclist.c
3856 (algo_available): --pgp7, identical to --pgp6 except that it
3857 permits a few algorithms that PGP 7 added: AES128, AES192, AES256,
3858 and TWOFISH. Any more of these --pgpX flags, and it'll be time to
3859 start looking at a generic --emulate-pgp X option.
3861 * export.c (do_export_stream): Warn the user when exporting a
3862 secret key if it or any of its secret subkeys are protected with
3863 SHA1 while simple_sk_checksum is set.
3865 * parse-packet.c (parse_key): Show when the SHA1 protection is
3866 used in --list-packets.
3868 * options.h, build-packet.c (do_comment), g10.c (main): Rename
3869 --no-comment as --sk-comments/--no-sk-comments (--no-comment still
3870 works) and make the default be --no-sk-comments.
3872 2002-05-07 Werner Koch <wk@gnupg.org>
3874 * keygen.c (get_parameter_algo): Never allow generation of the
3875 deprecated RSA-E or RSA-S flavors of PGP RSA.
3876 (ask_algo): Allow generation of RSA sign and encrypt in expert
3877 mode. Don't allow ElGamal S+E unless in expert mode.
3878 * helptext.c: Added entry keygen.algo.rsa_se.
3880 2002-05-07 David Shaw <dshaw@jabberwocky.com>
3882 * keyedit.c (sign_uids): If --expert is set, allow re-signing a
3883 uid to promote a v3 self-sig to a v4 one. This essentially
3884 deletes the old v3 self-sig and replaces it with a v4 one.
3886 * packet.h, parse-packet.c (parse_key), getkey.c
3887 (merge_keys_and_selfsig, merge_selfsigs_main): a v3 key with a v4
3888 self-sig must never let the v4 self-sig express a key expiration
3889 time that extends beyond the original v3 expiration time.
3891 2002-05-06 David Shaw <dshaw@jabberwocky.com>
3893 * keyedit.c (sign_uids): When making a self-signature via "sign"
3894 don't ask about sig level or expiration, and include the usual
3895 preferences and such for v4 self-sigs. (menu_set_preferences):
3896 Convert uids from UTF8 to native before printing.
3898 * keyedit.c (sign_uids): Convert uids from UTF8 to native before
3899 printing. (menu_set_primary_uid): Show error if the user tries to
3900 make a uid with a v3 self-sig primary.
3902 2002-05-05 David Shaw <dshaw@jabberwocky.com>
3904 * import.c (import_one): When merging with a key we already have,
3905 don't let a key conflict (same keyid but different key) stop the
3906 import: just skip the bad key and continue.
3908 * exec.c (make_tempdir): Under Win32, don't try environment
3909 variables for temp directories - GetTempDir tries environment
3910 variables internally, and it's better not to second-guess it in
3911 case MS adds some sort of temp dir handling to Windows at some
3914 2002-05-05 Timo Schulz <ts@winpt.org>
3916 * mainproc.c (proc_symkey_enc): Don't ask for a passphrase
3917 in the list only mode.
3919 2002-05-05 David Shaw <dshaw@jabberwocky.com>
3921 * keyserver.c (keyserver_refresh): --refresh-keys implies
3922 --merge-only so as not to import keys with keyids that match the
3923 ones being refreshed. Noted by Florian Weimer.
3925 2002-05-04 Stefan Bellon <sbellon@sbellon.de>
3927 * free-packet.c (copy_public_key): Don't call m_alloc(0), therefore
3928 added consistency check for revkey and numrefkeys.
3930 * getkey.c (check_revocation_keys): Added consistency check for
3931 revkey and numrefkeys.
3933 * keyedit.c (show_key_with_all_names): Likewise.
3935 2002-05-03 David Shaw <dshaw@jabberwocky.com>
3937 * photoid.c: Provide default image viewer for Win32.
3939 * misc.c (pct_expando): %t means extension, not name ("jpg", not
3942 * keyserver.c (keyserver_spawn), photoid.c (show_photos), exec.h,
3943 exec.c: Allow the caller to determine the temp file extension when
3944 starting an exec_write and change all callers.
3946 * keyedit.c (sign_uids): Nonrevocable key signatures cause an
3947 automatic promotion to v4.
3949 * exec.c: Provide stubs for exec_ functions when NO_EXEC is
3952 2002-05-02 David Shaw <dshaw@jabberwocky.com>
3954 * photoid.h, photoid.c (parse_image_header, image_type_to_string):
3955 Useful functions to return data about an image.
3957 * packet.h, parse-packet.c (make_attribute_uidname,
3958 parse_attribute_subpkts, parse_attribute), photoid.h, photoid.c
3959 (show_photos): Handle multiple images in a single attribute
3962 * main.h, misc.c (pct_expando), sign.c (mk_notation_and_policy),
3963 photoid.c (show_photos): Simpler expando code that does not
3964 require using compile-time string sizes. Call
3965 image_type_to_string to get image strings (i.e. "jpg",
3966 "image/jpeg"). Change all callers.
3968 * keyedit.c (menu_showphoto), keylist.c (list_keyblock_print):
3969 Allow viewing multiple images within a single attribute packet.
3971 * gpgv.c: Various stubs for link happiness.
3973 2002-05-02 David Shaw <dshaw@jabberwocky.com>
3975 * build-packet.c (build_sig_subpkt), keyedit.c (sign_uids),
3976 options.h, sign.c (mk_notation_and_policy), g10.c (main,
3977 add_notation_data, add_policy_url (new), check_policy_url
3978 (removed)): Allow multiple policy URLs on a given signature.
3979 Split "--notation-data" into "--cert-notation" and
3980 "--sig-notation" so the user can set different policies for key
3981 and data signing. For backwards compatibility, "--notation-data"
3982 sets both, as before.
3984 2002-05-02 Werner Koch <wk@gnupg.org>
3986 * options.skel: Removed the comment on trusted-keys because this
3987 option is now deprecated.
3989 2002-05-01 David Shaw <dshaw@jabberwocky.com>
3991 * keyedit.c (menu_adduid): 2440bis04 says that multiple attribute
3992 packets on a given key are legal.
3994 * keyserver.c (keyserver_refresh): the fake v3 keyid hack applies
3995 to "mailto" URLs as well since they are also served by pksd.
3997 2002-04-29 Werner Koch <wk@gnupg.org>
3999 Added a copyright year for files changed this year.
4001 2002-04-25 Werner Koch <wk@gnupg.org>
4003 * g10.c, options.h: New options --display, --ttyname, --ttytype,
4004 --lc-ctype, --lc-messages to be used with future versions of the
4006 * passphrase.c (agent_send_option,agent_send_all_options): New.
4007 (agent_open): Send options to the agent.
4009 * trustdb.c (update_ownertrust, clear_ownertrust): Do an explicit
4010 do_sync because revalidation_mark does it only if when the
4011 timestamp actually changes.
4013 2002-04-23 David Shaw <dshaw@jabberwocky.com>
4015 * main.h, keygen.c (do_generate_keypair), keylist.c
4016 (print_signature_stats, list_all, list_one, list_keyblock,
4017 list_keyblock_print, list_keyblock_colon): After generating a new
4018 key, show the key information (name, keyid, fingerprint, etc.)
4019 Also do not print uncheckable signatures (missing key..) in
4020 --check-sigs. Print statistics (N missing keys, etc.) after
4023 * keyedit.c (sign_uids): When signing a key with an expiration
4024 date on it, the "Do you want your signature to expire at the same
4025 time?" question should default to YES.
4027 2002-04-22 David Shaw <dshaw@jabberwocky.com>
4029 * parse-packet.c (parse_plaintext), packet.h, plaintext.c
4030 (handle_plaintext): Fix bug in handling literal packets with
4031 zero-length data (no data was being confused with partial body
4034 * misc.c (pct_expando), options.skel: %t means extension ("jpg").
4035 %T means MIME type ("image/jpeg").
4037 * import.c (import_one): Only trigger trust update if the keyring
4038 is actually changed.
4040 * export.c (do_export_stream): Missing a m_free.
4042 2002-04-22 Stefan Bellon <sbellon@sbellon.de>
4044 * keyid.c (expirestr_from_sk, expirestr_from_sig): Added _() to
4047 * exec.c (make_tempdir) [__riscos__]: Better placement of
4050 2002-04-20 David Shaw <dshaw@jabberwocky.com>
4052 * keygen.c (generate_subkeypair): 2440bis04 adds that creating
4053 subkeys on v3 keys is a MUST NOT.
4055 * getkey.c (finish_lookup): The --pgp6 "use the primary key"
4056 behavior should only apply while data signing and not encryption.
4057 Noted by Roger Sondermann.
4059 2002-04-19 Werner Koch <wk@gnupg.org>
4061 * keygen.c (keygen_set_std_prefs): Put back 3DES because the RFC
4062 says it is good form to do so.
4064 2002-04-19 David Shaw <dshaw@jabberwocky.com>
4066 * keyedit.c (menu_deluid): Only cause a trust update if we delete
4067 a non-revoked user id.
4069 * hkp.c (hkp_ask_import), keyserver.c (parse_keyserver_options,
4070 keyserver_spawn), options.h: Remove fast-import keyserver option
4071 (no longer meaningful).
4073 * g10.c (main), keyedit.c (sign_uids), options.h: Change
4074 --default-check-level to --default-cert-check-level as it makes
4075 clear what it operates on.
4077 * g10.c (main): --pgp6 also implies --no-ask-sig-expire.
4079 * delkey.c (do_delete_key): Comment.
4081 * keyedit.c (sign_uids, keyedit_menu, menu_deluid, menu_delsig,
4082 menu_expire, menu_revsig, menu_revkey): Only force a trustdb check
4083 if we did something that changes it.
4085 * g10.c: add "--auto-check-trustdb" to override a
4086 "--no-auto-check-trustdb"
4088 2002-04-19 Werner Koch <wk@gnupg.org>
4090 * tdbio.c (tdbio_write_nextcheck): Return a status whether the
4091 stamp was actually changed.
4092 * trustdb.c (revalidation_mark): Sync the changes. Removed the
4093 sync operation done by its callers.
4094 (get_validity): Add logic for maintaining a pending_check flag.
4095 (clear_ownertrust): New.
4097 * keyedit.c (sign_uids): Don't call revalidation_mark depending on
4099 (keyedit_menu): Call revalidation_mark after "trust".
4100 (show_key_with_all_names): Print a warning on the wrong listed key
4103 * delkey.c (do_delete_key): Clear the owenertrust information when
4104 deleting a public key.
4106 2002-04-18 Werner Koch <wk@gnupg.org>
4108 * seskey.c (encode_md_value): Print an error message if a wrong
4109 digest algorithm is used with DSA. Changed all callers to cope
4110 with a NULL return. Problem noted by Imad R. Faiad.
4112 2002-04-18 David Shaw <dshaw@jabberwocky.com>
4114 * trustdb.c (mark_usable_uid_certs): Properly handle nonrevocable
4115 signatures that can expire. In short, the only thing that can
4116 override an unexpired nonrevocable signature is another unexpired
4117 nonrevocable signature.
4119 * getkey.c (finish_lookup): Always use primary signing key for
4120 signatures when --pgp6 is on since pgp6 and 7 do not understand
4121 signatures made by signing subkeys.
4123 2002-04-18 Werner Koch <wk@gnupg.org>
4125 * trustdb.c (validate_keys): Never schedule a nextcheck into the
4127 (validate_key_list): New arg curtime use it to set next_expire.
4128 (validate_one_keyblock): Take the current time from the caller.
4129 (clear_validity, reset_unconnected_keys): New.
4130 (validate_keys): Reset all unconnected keys.
4132 * getkey.c (premerge_public_with_secret): Fixed 0x12345678! syntax
4133 for use with secret keys.
4134 (lookup): Advance the searchmode after a search FIRST.
4136 * seckey-cert.c (do_check): Always calculate the old checksum for
4137 use after unprotection.
4139 * g10.c, options.skel: New option --no-escape-from. Made
4140 --escape-from and --force-v3-sigs the default and removed them
4141 from the options skeleton.
4143 2002-04-16 Werner Koch <wk@gnupg.org>
4145 * parse-packet.c (parse_key): Support a SHA1 checksum as per
4146 draft-rfc2440-bis04.
4147 * packet.h (PKT_secret_key): Add field sha1chk.
4148 * seckey-cert.c (do_check): Check the SHA1 checksum
4149 (protect_secret_key): And create it.
4150 * build-packet.c (do_secret_key): Mark it as sha-1 protected.
4151 * g10.c, options.h: New option --simple-sk-checksum.
4153 2002-04-13 David Shaw <dshaw@jabberwocky.com>
4155 * parse-packet.c (parse_signature): Minor fix - signatures should
4156 expire at their expiration time and not one second later.
4158 * keygen.c (proc_parameter_file): Allow specifying preferences
4159 string (i.e. "s5 s2 z1 z2", etc) in a batchmode key generation
4162 * keyedit.c (keyedit_menu): Print standard error message when
4163 signing a revoked key (no new translation).
4165 * getkey.c (merge_selfsigs): Get the default set of key prefs from
4166 the real (not attribute) primary uid.
4168 2002-04-12 David Shaw <dshaw@jabberwocky.com>
4170 * pkclist.c (build_pk_list): Fix bug that allowed a key to be
4171 selected twice in batch mode if one instance was the default
4172 recipient and the other was an encrypt-to. Noted by Stefan
4175 * parse-packet.c (dump_sig_subpkt): Show data in trust and regexp
4178 * keyedit.c (keyedit_menu): Use new function real_uids_left to
4179 prevent deleting the last real (i.e. non-attribute) uid. Again,
4180 according to the attribute draft. (menu_showphoto): Make another
4181 string translatable.
4183 2002-04-11 David Shaw <dshaw@jabberwocky.com>
4185 * build-packet.c (build_sig_subpkt): Delete subpackets from both
4186 hashed and unhashed area on update. (find_subpkt): No longer
4189 * keyedit.c (sign_uids): With --pgp2 on, refuse to sign a v3 key
4190 with a v4 signature. As usual, --expert overrides. Try to tweak
4191 some strings to a closer match so they can all be translated in
4192 one place. Use different helptext keys to allow different help
4193 text for different questions.
4195 * keygen.c (keygen_upd_std_prefs): Remove preferences from both
4196 hashed and unhashed areas if they are not going to be used.
4198 2002-04-10 David Shaw <dshaw@jabberwocky.com>
4200 * misc.c (pct_expando), options.skel: Use %t to indicate type of a
4201 photo ID (in this version, it's always "jpeg"). Also tweak string
4202 expansion loop to minimize reallocs.
4204 * mainproc.c (do_check_sig): Variable type fix.
4206 * keyedit.c (menu_set_primary_uid): Differentiate between true
4207 user IDs and attribute user IDs when making one of them primary.
4208 That is, if we are making a user ID primary, we alter user IDs.
4209 If we are making an attribute packet primary, we alter attribute
4210 packets. This matches the language in the latest attribute packet
4213 * keyedit.c (sign_uids): No need for the empty string hack.
4215 * getkey.c (fixup_uidnode): Only accept preferences from the
4216 hashed segment of the self-sig.
4218 2002-04-10 Werner Koch <wk@gnupg.org>
4220 * tdbio.c (migrate_from_v2): Fixed the offset to read the old
4221 ownertrust value and only add entries to the table if we really
4224 2002-04-08 David Shaw <dshaw@jabberwocky.com>
4226 * status.h, status.c (get_status_string): Add KEYEXPIRED, EXPSIG,
4227 and EXPKEYSIG. Add "deprecated-use-keyexpired-instead" to
4230 * sig-check.c (do_check): Start transition from SIGEXPIRED to
4231 KEYEXPIRED, since the actual event is signature verification by an
4232 expired key and not an expired signature. (do_signature_check,
4233 packet.h): Rename as signature_check2, make public, and change all
4236 * mainproc.c (check_sig_and_print, do_check_sig): Use status
4237 EXPSIG for an expired, but good, signature. Add the expiration
4238 time (or 0) to the VALIDSIG status line. Use status KEYEXPSIG for
4239 a good signature from an expired key.
4241 * g10.c (main): remove checks for no arguments now that argparse
4244 2002-04-06 Werner Koch <wk@gnupg.org>
4246 * keyring.c (keyring_get_keyblock): Disable the keylist mode here.
4248 * encode.c (encode_simple, encode_crypt): Only test on compressed
4249 files if a compress level was not explicity set.
4251 * keygen.c (keygen_set_std_prefs): Removed Blowfish and Twofish
4252 from the list of default preferences, swapped the preferences of
4253 RMD160 and SHA1. Don't include a preference to 3DES unless the
4254 IDEA kludge gets used.
4256 * free-packet.c (free_packet): call free_encrypted also for
4259 * compress.c (release_context): New.
4260 (handle_compressed): Allocate the context and setup a closure to
4261 release the context. This is required because there is no
4262 guarantee that the filter gets popped from the chain at the end
4263 of the function. Problem noted by Timo and probably also the
4264 cause for a couple of other reports.
4265 (compress_filter): Use the release function if set.
4267 * tdbio.c [__CYGWIN32__]: Don't rename ftruncate. Noted by
4270 * parse-packet.c (parse_signature): Put parens around a bit test.
4272 * exec.c (make_tempdir): Double backslash for TMP directory
4273 creation under Windows. Better strlen the DIRSEP_S constants for
4274 allocation measurements.
4276 * decrypt.c (decrypt_messages): Release the passphrase aquired
4277 by get_last_passphrase.
4279 2002-04-02 Werner Koch <wk@gnupg.org>
4281 * Makefile.am (EXTRA_DIST): Removed OPTIONS an pubring.asc - they
4282 are no longer of any use.
4284 2002-04-03 David Shaw <dshaw@jabberwocky.com>
4286 * keyserver.c (parse_keyserver_options): fix auto-key-retrieve to
4287 actually work as a keyserver-option (noted by Roger Sondermann).
4289 * keylist.c (reorder_keyblock): do not reorder the primary
4290 attribute packet - the first user ID must be a genuine one.
4292 2002-03-31 David Shaw <dshaw@jabberwocky.com>
4294 * keylist.c (list_keyblock_colon): Fix ownertrust display with
4297 * keygen.c (generate_user_id), photoid.c (generate_photo_id):
4298 Properly initialize the user ID refcount. A few more "y/n" ->
4301 * keyedit.c (ask_revoke_sig): Warn the user if they are about to
4302 revoke an expired sig (not a problem, but they should know). Also
4303 tweak a few prompts to change "y/n" to "y/N", which is how most
4304 other prompts are written.
4306 * keyserver.c (keyserver_search_prompt): Control-d escapes the
4307 keyserver search prompt.
4309 * pkclist.c (show_revocation_reason & callers): If a subkey is
4310 considered revoked solely because the parent key is revoked, print
4311 the revocation reason from the parent key.
4313 * trustdb.c (get_validity): Allow revocation/expiration to apply
4314 to a uid/key with no entry in the trustdb.
4316 2002-03-29 David Shaw <dshaw@jabberwocky.com>
4318 * keyserver.c (printunquoted): unquote backslashes from keyserver
4321 * hkp.c (write_quoted): quote backslashes from keyserver searches
4323 2002-03-26 Werner Koch <wk@gnupg.org>
4325 * keygen.c (ask_keysize): Removed the warning for key sizes > 1536.
4327 2002-03-25 Werner Koch <wk@gnupg.org>
4329 * keyedit.c (sign_uids): Use 2 strings and not a %s so that
4330 translations can be done the right way.
4331 * helptext.c: Fixed small typo.
4333 2002-03-23 David Shaw <dshaw@jabberwocky.com>
4335 * import.c (append_uid, merge_sigs): it is okay to import
4336 completely non-signed uids now (with --allow-non-selfsigned-uid).
4338 * getkey.c (get_primary_uid, merge_selfsigs_main): do not choose
4339 an attribute packet (i.e. photo) as primary uid. This prevents
4340 oddities like "Good signature from [image of size 2671]". This is
4341 still not perfect (one can still select an attribute packet as
4342 primary in --edit), but is closer to the way the draft is going.
4344 * g10.c (build_list): algorithms should include 110.
4346 * g10.c (main): --pgp2 implies --no-ask-sig-expire and
4347 --no-ask-cert-expire as those would cause a v4 sig/cert.
4349 * armor.c (is_armor_header): be more lenient in what constitutes a
4350 valid armor header (i.e. -----BEGIN blah blah-----) as some
4351 Windows programs seem to add spaces at the end. --openpgp makes
4354 2002-03-18 David Shaw <dshaw@jabberwocky.com>
4356 * keyserver.c (keyserver_search_prompt): Properly handle a "no
4357 keys found" case from the internal HKP code (external HKP is ok).
4358 Also, make a COUNT -1 (i.e. streamed) keyserver response a little
4361 * g10.c (main): Add --no-allow-non-selfsigned-uid
4363 2002-03-17 David Shaw <dshaw@jabberwocky.com>
4365 * g10.c (main): --openpgp implies --allow-non-selfsigned-uid.
4367 * getkey.c (merge_selfsigs_main): If none of the uids are primary
4368 (because none are valid) then pick the first to be primary (but
4369 still invalid). This is for cosmetics in case some display needs
4370 to print a user ID from a non-selfsigned key. Also use
4371 --allow-non-selfsigned-uid to make such a key valid and not
4372 --always-trust. The key is *not* automatically trusted via
4373 --allow-non-selfsigned-uid.
4375 * mainproc.c (check_sig_and_print): Make sure non-selfsigned uids
4376 print [uncertain] on verification even though one is primary now.
4378 * getkey.c (merge_selfsigs): If the main key is not valid, then
4379 neither are the subkeys.
4381 * import.c (import_one): Allow --allow-non-selfsigned-uid to work
4382 on completely unsigned keys. Print the uids in UTF8. Remove
4383 mark_non_selfsigned_uids_valid().
4385 * keyedit.c (show_key_with_all_names): Show revocation key as
4388 * sign.c (clearsign_file): Allow --not-dash-escaped to work with
4391 2002-03-14 Werner Koch <wk@gnupg.org>
4393 * main.h: Changed the default algorithms to CAST5 and SHA1.
4395 2002-03-13 David Shaw <dshaw@jabberwocky.com>
4397 * import.c (chk_self_sigs): Show which user ID a bad self-sig
4398 (invald sig or unsupported public key algorithm) resides on.
4400 * import.c (chk_self_sigs): any valid self-sig should mark a user
4401 ID or subkey as valid - otherwise, an attacker could DoS the user
4402 by inventing a bogus invalid self-signature.
4404 2002-03-07 David Shaw <dshaw@jabberwocky.com>
4406 * g10.c (main): make a few more strings translatable.
4408 * options.h, options.skel, g10.c (main), gpgv.c, mainproc.c
4409 (check_sig_and_print), keyserver.c (parse_keyserver_options):
4410 --auto-key-retrieve should really be a keyserver-option variable.
4412 * import.c (revocation_present): new function to print a warning
4413 if a key is imported that has been revoked by designated revoker,
4414 but the designated revoker is not present to verify the
4415 revocation. If keyserver-options auto-key-retrieve is set, try
4416 and fetch the designated revoker from the keyserver.
4418 * import.c (import_one): call revocation_present after importing a
4419 new key. Note that this applies to --import, --recv-keys, and
4422 * keyserver-internal.h, keyserver.c (keyserver_import_fprint):
4423 import via fingerprint (for revocation keys).
4425 * keyserver.c (keyserver_import_keyid): much simpler
4426 implementation now that we're using KEYDB_SEARCH_DESC internally.
4428 2002-03-04 David Shaw <dshaw@jabberwocky.com>
4430 * revoke.c (gen_revoke): do not prompt for revocation reason for
4431 v3 revocations (unless force-v4-certs is on) since they wouldn't
4434 * keyedit.c (menu_revsig): show the status of the sigs
4435 (exportable? revocable?) to the user before prompting for which
4436 sig to revoke. Also, make sure that local signatures get local
4439 * keyedit.c (ask_revoke_sig): remind the user which sigs are
4442 * g10.c (main): Add "exec-path" variable to override PATH for
4445 * export.c (do_export_stream): properly check return code from
4446 classify_user_id to catch unclassifiable keys.
4448 2002-03-03 David Shaw <dshaw@jabberwocky.com>
4450 * parse-packet.c (parse_signature): variable type tweak for RISC
4453 2002-02-28 David Shaw <dshaw@jabberwocky.com>
4455 * getkey.c (check_revocation_keys): New function to check a
4456 revocation against a list of potential revocation keys. Note the
4457 loop-breaking code here. This is to prevent blowing up if A is
4458 B's revocation key, while B is also A's. Note also that this is
4459 written so that a revoked revoker can still issue revocations:
4460 i.e. If A revokes B, but A is revoked, B is still revoked. I'm
4461 not completely convinced this is the proper behavior, but it
4462 matches how PGP does it. It does at least have the advantage of
4463 much simpler code - my first version of this had lots of loop
4464 maintaining code so you could chain revokers many levels deep and
4465 if D was revoked, C was not, which meant that B was, and so on.
4466 It was sort of scary, actually.
4468 * getkey.c (merge_selfsigs_main): Add any revocation keys onto the
4469 pk. This is particularly interesting since we normally only get
4470 data from the most recent 1F signature, but you need multiple 1F
4471 sigs to properly handle revocation keys (PGP does it this way, and
4472 a revocation key could be marked "sensitive" and hence in a
4473 different signature). Also, if a pk has a revocation key set,
4474 check for revocation sigs that were not made by us - if made by a
4475 valid revocation key, mark the pk revoked.
4477 * packet.h, getkey.c (cache_public_key): do not cache key if
4478 "dont_cache" is set. This allows the revocation key code to look
4479 up a key and return information that may be inaccurate to prevent
4480 loops without caching the fake data.
4482 * packet.h, sig-check.c (do_signature_check): Record if a
4483 signature was made by a revoked pk.
4485 * packet.h, parse-packet.c (parse_one_sig_subpkt,
4486 can_handle_critical, parse_signature): Get revocation key
4487 information out of direct sigs.
4489 * keylist.c (list_keyblock_print): don't assume that the presence
4490 of a 0x20 signature means the key is revoked. With revocation
4491 keys, this may not be true if the revocation key is not around to
4492 verify it or if verification failed. Also, 0x1F should get listed
4493 as "sig", and not "unexpected signature class".
4495 * keyedit.c (show_key_with_all_names): Add a flag for printing
4496 revoker information and change all callers.
4498 * import.c (merge_blocks): merge in any new direct key (0x1F)
4501 * import.c (import_revoke_cert): don't keep processing after a
4502 revocation is rejected.
4504 * import.c (delete_inv_parts): Allow importing a revocation
4505 signature even if it was not issued by the key. This allows a
4506 revocation key to issue it. Of course, the sig still needs to be
4507 checked before we trust it.
4509 * free-packet.c (copy_public_key): Include a new copy of the
4510 revocation keys when duping a pk.
4512 * free-packet.c (free_seckey_enc, release_public_key_parts): Free
4513 any revocation keys that are attached to a sig or pk.
4515 * export.c (do_export_stream): Do not export signatures with
4516 "sensitive" revocation keys in them.
4518 2002-02-27 David Shaw <dshaw@jabberwocky.com>
4520 * export.c (do_export_stream): Do not include v3 keys in a
4521 --export-secret-subkeys export.
4523 * getkey.c (merge_selfsigs_main): If a key isn't valid (say,
4524 because of no self-signature), allow --always-trust to force it
4525 valid so it can be trusted.
4527 2002-02-25 David Shaw <dshaw@jabberwocky.com>
4529 * hkp.c (hkp_ask_import), hkp.h, keyserver.c (all): treat key
4530 lists internally as fingerprints when possible. All this is via
4531 KEYDB_SEARCH_DESC - no point in reinventing the wheel. This allows
4532 the helper program to search the keyserver by fingerprint if
4533 desired (and the keyserver supports it). Note that automatic
4534 fingerprint promotion during refresh only applies to v4 keys as a
4535 v4 fingerprint can be easily changed into a long or short key id,
4538 * pubkey-enc.c, getkey.c, misc.c, main.h: Take two copies of
4539 hextobyte() from pubkey-enc.c and getkey.c and make them into one
4542 2002-02-22 David Shaw <dshaw@jabberwocky.com>
4544 * keyserver.c (keyserver_search_prompt): Detect a "no keys found"
4545 case even if the helper program does not explicitly say how many
4548 * hkp.c (parse_hkp_index): Bug fix - don't report non-revoked keys
4549 as revoked in HKP key searches.
4551 2002-02-19 Werner Koch <wk@gnupg.org>
4553 * parse-packet.c (parse_trust): Made parsing more robust.
4555 2002-02-19 David Shaw <dshaw@jabberwocky.com>
4557 * hkp.c (parse_hkp_index): Catch corruption in HKP index lines
4558 (can be caused by broken or malicious keyservers).
4560 * keyserver.c (keyserver_work): Add KEYSERVER_NOT_SUPPORTED for
4561 unsupported actions (say, a keyserver that has no way to search,
4562 or a readonly keyserver that has no way to add). Also add a
4563 USE_EXTERNAL_HKP define to disable the internal HKP keyserver
4566 2002-02-14 Werner Koch <wk@gnupg.org>
4568 * g10.c: New option --no-use-agent.
4570 * pkclist.c (check_signatures_trust): Always print the warning for
4571 unknown and undefined trust. Removed the did_add cruft. Reported
4572 by Janusz A. Urbanowicz.
4574 2002-02-11 David Shaw <dshaw@jabberwocky.com>
4576 * hkp.c (parse_hkp_index): Bug fix - properly handle user IDs with
4577 colons (":") in them while HKP searching.
4579 2002-02-09 David Shaw <dshaw@jabberwocky.com>
4581 * misc.c (pct_expando): More comments.
4583 * keydb.h, sign.c (mk_notation_and_policy): Clarify what is a sig
4584 and what is a cert. A sig has sigclass 0x00, 0x01, 0x02, or 0x40,
4585 and everything else is a cert.
4587 * g10.c (main), keyedit.c (keyedit_menu): Add a "nrlsign" for
4588 nonrevocable and local key signatures.
4590 * g10.c (main): Add a --no-force-mdc to undo --force-mdc.
4592 * options.h, g10.c (main), cipher.c (write_header): Add a knob to
4593 --disable-mdc/--no-disable-mdc. Off by default, of course, but is
4594 used in --pgp2 and --pgp6 modes.
4596 * pkclist.c (build_pk_list): Allow specifying multiple users in
4597 the "Enter the user ID" loop. Enter a blank line to stop. Show
4598 each key+id as it is added.
4600 * keylist.c (show_policy_url), mainproc.c (print_notation_data):
4601 It is not illegal (though possibly silly) to have multiple policy
4602 URLs in a given signature, so print all that are present.
4604 * hkp.c (hkp_search): More efficient implementation of URL-ifying
4607 2002-02-04 David Shaw <dshaw@jabberwocky.com>
4609 * main.h, misc.c (pct_expando): New function to generalize
4610 %-expando processing in any arbitrary string.
4612 * photoid.c (show_photo): Call the new pct_expando function rather
4613 than expand strings internally.
4615 * sign.c (mk_notation_and_policy): Show policy URLs and notations
4616 when making a signature if show-policy/show-notation is on.
4617 %-expand policy URLs during generation. This lets the user have
4618 policy URLs of the form "http://notary.jabberwocky.com/keysign/%K"
4619 which will generate a per-signature policy URL.
4621 * main.h, keylist.c (show_policy_url, show_notation): Add amount
4622 to indent so the same function can be used in key listings as well
4623 as during sig generation. Change all callers.
4625 2002-02-04 David Shaw <dshaw@jabberwocky.com>
4627 * keyserver.c, options.h (parse_keyserver_options, keyidlist):
4628 Workaround for the pksd and OKS keyserver bug that calculates v4
4629 RSA keyids as if they were v3. The workaround/hack is to fetch
4630 both the v4 (e.g. 99242560) and v3 (e.g. 68FDDBC7) keyids. This
4631 only happens for key refresh while using the HKP scheme and the
4632 refresh-add-fake-v3-keyids keyserver option must be set. This
4633 should stay off by default.
4635 2002-02-03 David Shaw <dshaw@jabberwocky.com>
4637 * keyserver.c (keyserver_spawn): Bug fix - do not append keys to
4638 each other when --sending more than one.
4640 2002-02-02 David Shaw <dshaw@jabberwocky.com>
4642 * options.h, g10.c (main), keyedit.c (sign_uids), sign.c
4643 (mk_notation_and_policy): Split "--set-policy-url" into
4644 "--cert-policy-url" and "--sig-policy-url" so the user can set
4645 different policies for key and data signing. For backwards
4646 compatibility, "--set-policy-url" sets both, as before.
4648 2002-01-30 Werner Koch <wk@gnupg.org>
4650 * g10.c (main): --gen-random --armor does now output a base64
4653 2002-01-28 David Shaw <dshaw@jabberwocky.com>
4655 * g10.c (main), options.h, pkclist.c (algo_available): --pgp6
4656 flag. This is not nearly as involved as --pgp2. In short, it
4657 turns off force_mdc, turns on no_comment, escape_from, and
4658 force_v3_sigs, and sets compression to 1. It also restricts the
4659 user to IDEA (if present), 3DES, CAST5, MD5, SHA1, and RIPEMD160.
4660 See the comments above algo_available() for lots of discussion on
4661 why you would want to do this.
4663 2002-01-27 David Shaw <dshaw@jabberwocky.com>
4665 * keygen.c (keygen_set_std_prefs): Comment
4667 * keyedit.c (sign_uids): Bug fix - when signing with multiple
4668 secret keys at the same time, make sure each key gets the sigclass
4671 * exec.c (exec_finish): Close the iobuf and FILE before trying to
4672 waitpid, so the remote process will get a SIGPIPE and exit. This
4673 is only a factor when using a pipe to communicate.
4675 * exec.c (exec_write): Disable cache-on-close of the fd iobuf (is
4676 this right? Why is a fd iobuf cached at all?)
4678 2002-01-26 Werner Koch <wk@gnupg.org>
4680 * g10.c, options.h: New option --gpg-agent-info
4681 * passphrase.c (agent_open): Let it override the environment info.
4682 * seckey-cert.c (check_secret_key): Always try 3 times when the
4684 * options.skel: Describe --use-agent.
4686 2002-01-24 David Shaw <dshaw@jabberwocky.com>
4688 * pubkey-enc.c (is_algo_in_prefs, get_it): Only check preferences
4689 against keys with v4 self sigs - there is really little point in
4690 warning for every single non-IDEA message encrypted to an old key.
4692 * pkclist.c (select_algo_from_prefs): Only put in the fake IDEA
4693 preference if --pgp2 is on.
4695 * mainproc.c (check_sig_and_print): Print "Expired" for expired
4696 but good signatures (this still prints "BAD" for expired but bad
4699 2002-01-23 David Shaw <dshaw@jabberwocky.com>
4701 * keygen.c (ask_keysize): Cosmetic: don't present a RSA signing
4702 key as a "keypair" which can be 768 bits long (as RSA minimum is
4705 * pubkey-enc.c (is_algo_in_prefs): Allow IDEA as a fake preference
4706 for v3 keys with v3 selfsigs.
4708 2002-01-22 David Shaw <dshaw@jabberwocky.com>
4710 * packet.h, getkey.c (merge_selfsigs_main), pkclist.c
4711 (select_algo_from_prefs): Implement the fake IDEA preference as
4712 per RFC2440:12.1. This doesn't mean that IDEA will be used (the
4713 plugin may not be present), but it does mean that a v3 key with a
4714 v3 selfsig has an implicit IDEA preference instead of 3DES. v3
4715 keys with v4 selfsigs use preferences as normal.
4717 * encode.c (encode_crypt): if select_algo_from_prefs fails, this
4718 means that we could not find a cipher that both keys like. Since
4719 all v4 keys have an implicit 3DES preference, this means there is
4720 a v3 key with a v3 selfsig in the list. Use 3DES in this case as
4721 it is the safest option (we know the v4 key can handle it, and
4722 we'll just hope the v3 key is being used in an implementation that
4723 can handle it). If --pgp2 is on, warn the user what we're doing
4724 since it'll probably break PGP2 compatibility.
4726 * g10.c (main): Do not force using IDEA for encrypted files in
4727 --pgp2 mode - let the fake IDEA preference choose this for us for
4728 better compatibility when encrypting to multiple keys, only some
4731 * keygen.c (keygen_set_std_prefs): Put 3DES on the end of the
4732 default cipher pref list (RFC2440: "...it is good form to place it
4733 there explicitly."). If the user has the IDEA plugin installed,
4734 put a preference for IDEA *after* 3DES to effectively disable its
4735 use for everything except encrypting along with v3 keys.
4737 * encode.c, g10.c, sign.c: Change the PGP2 warning line from
4738 "... will not be usable ..." to "... may not be usable ..." as the
4739 user could be using one of the enhanced PGP2 variations.
4741 * helptext.c: Revise the sign_uid.class help text as suggested by
4744 2002-01-20 Werner Koch <wk@gnupg.org>
4746 * passphrase.c (passphrase_to_dek): Add tryagain_text arg to be
4747 used with the agent. Changed all callers.
4748 (agent_get_passphrase): Likewise and send it to the agent
4749 * seckey-cert.c (do_check): New arg tryagain_text.
4750 (check_secret_key): Pass the string to do_check.
4751 * keygen.c (ask_passphrase): Set the error text is required.
4752 * keyedit.c (change_passphrase): Ditto.
4754 * passphrase.c (agent_open): Disable opt.use_agent in case of a
4755 problem with the agent.
4756 (agent_get_passphrase): Ditto.
4757 (passphrase_clear_cache): Ditto.
4759 2002-01-19 Werner Koch <wk@gnupg.org>
4761 * passphrase.c (agent_open): Add support for the new Assuan based
4762 gpg-agent. New arg to return the used protocol version.
4763 (agent_get_passphrase): Implemented new protocol here.
4764 (passphrase_clear_cache): Ditto.
4767 2002-01-15 Timo Schulz <ts@winpt.org>
4769 * encode.c (encode_crypt_files): Fail if --output is used.
4771 * g10.c: New command --decrypt-files.
4773 * decrypt.c (decrypt_messages): New.
4775 2002-01-09 David Shaw <dshaw@jabberwocky.com>
4777 * g10.c, misc.c, gpgv.c: move idea_cipher_warn to misc.c so gpgv.c
4778 doesn't need a stub for it any longer.
4780 * g10.c (get_temp_dir), main.h: no longer used (it's in exec.c now)
4782 * g10.c (main), delkey.c (delete_keys), main.h : Allow
4783 --delete-key (now --delete-keys, though --delete-key still works,
4784 of course) to delete multiple keys in one go. This applies to
4785 --delete-secret-key(s) and --delete-secret-and-public-key(s) as
4788 2002-01-09 Timo Schulz <ts@winpt.org>
4790 * encode.c (encode_crypt_files): Now it behaves like verify_files.
4792 * g10.c (main): We don't need to check argc for encode_crypt_files
4795 2002-01-09 Timo Schulz <ts@winpt.org>
4797 * exec.c: Include windows.h for dosish systems.
4799 2002-01-08 Timo Schulz <ts@winpt.org>
4801 * g10.c (main): New description for --encrypt-files.
4803 2002-01-08 Werner Koch <wk@gnupg.org>
4805 * g10.c (main): Must register the secring for encryption because
4806 it is needed to figure out the default recipient. Reported by
4809 2002-01-05 David Shaw <dshaw@jabberwocky.com>
4811 * keyedit.c (menu_adduid): Require --expert before adding a photo
4812 ID to a v3 key, and before adding a second photo ID to any key.
4814 * keyedit.c (keyedit_menu): Don't allow adding photo IDs in
4815 rfc1991 or pgp2 mode.
4817 * getkey.c (merge_selfsigs_subkey): Permit v3 subkeys. Believe it
4818 or not, this is allowed by rfc 2440, and both PGP 6 and PGP 7 work
4821 * g10.c, options.h, keyedit.c, sign.c: Move the "ask for
4822 expiration" switch off of --expert, which was getting quite
4823 overloaded, and onto ask-sig-expire and ask-cert-expire. Both
4826 * g10.c (main): Change the default compression algo to 1, to be
4827 more OpenPGP compliant (PGP also uses this, so it'll help with
4828 interoperability problems as well).
4830 * encode.c (encode_crypt): Handle compression algo 2, since the
4833 * build-packet.c (build_attribute_subpkt): Fix off-by-one error.
4835 2002-01-05 Werner Koch <wk@gnupg.org>
4837 * g10.c (main): Do not register the secret keyrings for certain
4840 * keydb.c (keydb_add_resource): Use access to test for keyring
4841 existence. This avoids cached opened files which are bad under
4844 2002-01-04 David Shaw <dshaw@jabberwocky.com>
4846 * sign.c (sign_file, sign_symencrypt_file): always use one-pass
4847 packets unless rfc1991 is enabled. This allows a signature made
4848 with a v3 key to work in PGP 6 and 7. Signatures made with v4
4851 * g10.c (main): Disallow non-detached signatures in PGP2 mode.
4852 Move the "you must use files and not pipes" PGP2 warning up so all
4853 the PGP2 stuff is together.
4855 * encode.c (encode_simple): Use the actual filesize instead of
4856 partial length packets in the internal literal packet from a
4857 symmetric message. This breaks PGP5(?), but fixes PGP2, 6, and 7.
4858 It's a decent tradeoff. Note there was only an issue with
4859 old-style RFC1991 symmetric messages. 2440-style messages in 6
4860 and 7 work with or without partial length packets.
4862 2002-01-03 David Shaw <dshaw@jabberwocky.com>
4864 * g10.c (main): Removed --no-default-check-level option, as it is
4865 not consistent with other "default" options. Plus, it is the same
4866 as saying --default-check-level 0.
4868 * exec.c (exec_read): Disallow caching tempfile from child
4869 process, as this keeps the file handle open and can cause unlink
4870 problems on some platforms.
4872 * keyserver.c (keyserver_search_prompt): Minor tweak - don't
4873 bother to transform keyids into textual form if they're just going
4874 to be transformed back to numbers.
4876 2002-01-03 Timo Schulz <ts@winpt.org>
4878 * g10.c: New command --encrypt-files.
4880 * verify.c (print_file_status): Removed the static because
4881 encode_crypt_files also uses this function.
4883 * main.h (print_files_status): New.
4884 (encode_crypt_files): New.
4886 * encode.c (encode_crypt_files): New.
4888 2002-01-02 Stefan Bellon <sbellon@sbellon.de>
4890 * keyserver.c: Moved util.h include down in order to avoid
4891 redefinition problems on RISC OS.
4893 * keyring.c (keyring_lock): Only lock keyrings that are writable.
4895 * keyring.c (keyring_update_keyblock): Close unused iobuf.
4897 * hkp.c (parse_hkp_index, hkp_search) [__riscos__]: Changed
4898 unsigned char* to char* because of compiler issues.
4900 * exec.c (exec_finish) [__riscos__]: Invalidate close cache so
4901 that file can be unlinked.
4903 2001-12-28 David Shaw <dshaw@jabberwocky.com>
4905 * g10.c (main): Use a different strlist to check extensions since
4906 they need to be handled seperately now.
4908 * misc.c,main.h (check_permissions): Properly handle permission
4909 and ownership checks on files in the lib directory
4910 (e.g. /usr/local/lib/gnupg), which are owned by root and are
4911 world-readable, and change all callers to specify extension or
4914 * photoid.c (show_photo), keyserver.c (keyserver_spawn): Bug fix -
4915 don't call exec_finish if exec_write fails.
4917 * keyserver.c (keyserver_spawn): Look for OPTIONS from the
4918 keyserver helper - specifically, a "OUTOFBAND" option for the
4921 * mainproc.c (list_node), keylist.c (list_keyblock_colon),
4922 import.c (delete_inv_parts), export.c (do_export_stream): Use
4923 signature flags for exportability check rather than re-parsing the
4926 * keyid.c, keydb.h (get_lsign_letter): No longer needed.
4928 2001-12-27 David Shaw <dshaw@jabberwocky.com>
4930 * exec.c (exec_finish): Show errors when temp files cannot be
4931 deleted for whatever reason.
4933 * exec.c (exec_read): Don't rely on WEXITSTATUS being present.
4935 * exec.c (make_tempdir): Add temp file creator for win32. Don't
4936 create an incoming temp file if the exec is write-only.
4938 * keyserver.c (keyserver_spawn): Clean up error handling, for when
4941 * photoid.c (show_photo): Clean up error handling.
4943 * misc.c (check_permissions): Neaten.
4945 2001-12-25 David Shaw <dshaw@jabberwocky.com>
4947 * mkdtemp.c (mkdtemp): Add copyleft info and tweak the 'X' counter
4948 to be a bit simpler.
4950 * keyserver.c, photoid.c: Remove unused headers left over from
4951 when the exec functions lived there.
4953 2001-12-23 Timo Schulz <ts@winpt.org>
4955 * misc.c (check_permissions): Do not use it for W32 systems.
4957 * tdbio.c (migrate_from_v2): Define ftruncate as chsize() for W32.
4959 * mkdtemp.c: W32 support.
4965 2001-12-22 David Shaw <dshaw@jabberwocky.com>
4967 * exec.c (make_tempdir): avoid compiler warning with const
4969 * mkdtemp.c (mkdtemp): catch the empty ("") string case in case
4970 someone repurposes mkdtemp at some point.
4972 * photoid.c (generate_photo_id, show_photo): some type changes
4975 * exec.c (make_tempdir): handle Win32 systems, suggested by Timo
4978 2001-12-22 Werner Koch <wk@gnupg.org>
4980 * encode.c (encode_simple, encode_crypt): i18n 2 strings.
4982 2001-12-22 Timo Schulz <ts@winpt.org>
4984 * encode.c (encode_simple, encode_crypt): Use is_file_compressed
4985 to avoid to compress compressed files.
4987 2001-12-22 Werner Koch <wk@gnupg.org>
4989 * keyserver.c (keyserver_spawn): Removed some variables
4990 declaration due to shadowing warnings.
4992 * build-packet.c (build_attribute_subpkt): s/index/idx/ to avoid
4993 compiler warnig due to index(3).
4995 * getkey.c (get_ctx_handle): Use KEYDB_HANDLE as return value.
4996 * keylist.c (list_one): Made resname const.
4998 * keyedit.c (keyedit_menu): Allow "addphoto" only when --openpgp is
5001 * options.skel: Changed one example photo viewer to qiv.
5003 2001-12-21 David Shaw <dshaw@jabberwocky.com>
5005 * Makefile.am: add exec.c, exec.h, photoid.c, and photoid.h
5007 * build-packet.c (build_attribute_subpkt): new function to build
5008 the raw attribute subpacket. Note that attribute subpackets have
5009 the same format as signature subpackets.
5011 * exec.c: new file with generic exec-a-program functionality.
5012 Used by both photo IDs and keyserver helpers. This is pretty much
5013 the same code that used to be keyserver specific, with some
5014 changes to be usable generically.
5016 * free-packet.c (free_attributes (new)): function to free an
5019 * gpgv.c: added stub show_photo
5021 * keyedit.c (keyedit_menu, menu_adduid, menu_showphoto): can add a
5022 photo (calls generate_photo_id), or display a photo (calls
5023 show_photo) from the --edit menu. New commands are "addphoto",
5024 and "delphoto" (same as "deluid").
5026 * keylist.c (list_keyblock_print): show photos during key list if
5027 --show-photos enabled.
5029 * keyserver.c (keyserver_spawn): use the generic exec_xxx
5030 functions to call keyserver helper.
5032 * g10.c, options.h: three new options - --{no-}show-photos, and
5033 --photo-viewer to give the command line to display a picture.
5035 * options.skel: instructions for the photo viewer
5037 * parse-packet.c (parse_user_id, setup_user_id (new)): common code
5038 for both user IDs and attribute IDs moved to setup_user_id.
5040 * parse-packet.c (make_attribute_uidname (new)): constructs a fake
5041 "name" for attribute packets (e.g. "[image of size ...]")
5043 * parse-packet.c (parse_attribute (replaces parse_photo_id),
5044 parse_attribute_subpkts): Builds an array of individual
5045 attributes. Currently only handles attribute image / type jpeg
5048 * sign.c (hash_uid): Fix bug in signing attribute (formerly
5051 * packet.h, and callers: globally change "photo_id" to "attribute"
5052 and add structures for attributes. The packet format is generic
5053 attributes, even though the only attribute type thus far defined
5056 2001-12-21 David Shaw <dshaw@jabberwocky.com>
5058 * parse-packet.c (can_handle_critical): Can handle critical
5059 revocation subpackets now.
5061 * trustdb.c (mark_usable_uid_certs): Disregard revocations for
5062 nonrevocable sigs. Note that this allows a newer revocable
5063 signature to override an older nonrevocable signature.
5065 * sign.c (make_keysig_packet): add a duration field and change all
5066 callers. This makes make_keysig_packet closer to
5067 write_signature_packets and removes some duplicated expiration
5070 * keyedit.c (keyedit_menu, menu_revsig, sign_uids,
5071 sign_mk_attrib): Add nrsign command, don't allow revoking a
5072 nonrevocable signature,
5074 * g10.c (main): Add --nrsign option to nonrevocably sign a key
5075 from the command line.
5077 * build-packet.c (build_sig_subpkt_from_sig): Comment to explain
5078 the use of CRITICAL.
5080 2001-12-21 Werner Koch <wk@gnupg.org>
5082 * g10.c. options.h : New option --show-keyring
5083 * getkey.c (get_ctx_handle): New.
5084 * keylist.c (list_one): Implement option here. By David Champion.
5086 2001-12-20 David Shaw <dshaw@jabberwocky.com>
5088 * keyserver.c (keyserver_spawn): Use mkdtemp() to make temp
5091 * mkdtemp.c: replacement function for those platforms that don't
5092 have mkdtemp (make a temp directory securely).
5094 2001-12-19 David Shaw <dshaw@jabberwocky.com>
5096 * misc.c (check_permissions): New function to stat() and ensure
5097 the permissions of GNUPGHOME and the files have safe permissions.
5099 * keydb.c (keydb_add_resource): Check keyring permissions.
5101 * tdbio.c (tdbio_set_dbname): Check permissions of trustdb.gpg
5103 * keyserver.c (keyserver_spawn): Disable keyserver schemes that
5104 involve running external programs if the options file has unsafe
5105 permissions or ownership.
5107 * g10.c, options.h: New option --no-permission-warning to disable
5108 the permission warning message(s). This also permits use of the
5109 keyserver if it had been disabled (see above). Also check the
5110 permissions/ownership of random_seed.
5112 * keyserver.c (keyserver_spawn): The new glibc prints a warning
5113 when using mktemp() (the code was already secure, but the warning
5114 was bound to cause confusion). Use a different implementation
5115 based on get_random_bits() instead. Also try a few times to get
5116 the temp dir before giving up.
5118 2001-12-19 Werner Koch <wk@gnupg.org>
5120 * g10.c, passphrase.c [CYGWIN32]: Allow this as an alias for MINGW32.
5122 2001-12-18 David Shaw <dshaw@jabberwocky.com>
5124 * g10.c (idea_cipher_warn): Add a flag to show the warning always
5125 or once per session and change all callers (show always except for
5126 the secret key protection and unknown cipher from an encrypted
5127 message errors). Also make the strings translatable.
5129 * pubkey-enc.c (get_it): Add the IDEA cipher warning if the user
5130 tries to decrypt an IDEA encrypted message without the IDEA
5133 * keyserver.c (parse_keyserver_uri): More strict checking of the
5134 keyserver URI. Specifically, fail if the ":port" section is
5135 anything except a number between 1 and 65535.
5137 2001-12-17 David Shaw <dshaw@jabberwocky.com>
5139 * keyserver.c (print_keyinfo): No need to check for
5140 control/illegal characters, as utf8_to_native does this for us.
5142 * mainproc.c (proc_encrypted): Use generic IDEA warning.
5144 * gpgv.c: add stub for idea_cipher_warn
5146 * g10.c, hkp.c, keyserver.c: Fix capitalization and plural issues.
5148 * encode.c (encode_crypt), sign.c (sign_file, clearsign_file):
5149 disable pgp2 mode after the message is no longer pgp2 compatible.
5151 * g10.c (main): Tweak the PGP2.x IDEA warning to use the generic
5152 warning, and not merely fail if the IDEA plugin isn't there.
5154 * g10.c (main, idea_cipher_warn), keygen.c (set_one_pref),
5155 seckey-cert.c (do_check): Add a generic IDEA warning for when the
5156 IDEA plugin is not present. This pops up when the user uses
5157 "--cipher-algo idea", when setpref is used to set a "S1"
5158 preference, and when a secret key protected with IDEA is used.
5160 2001-12-15 Werner Koch <wk@gnupg.org>
5162 * keyserver.c (keyserver_spawn): Assert that we have dropped privs.
5164 2001-12-13 Werner Koch <wk@gnupg.org>
5166 * pubkey-enc.c (get_session_key): Check that the public key
5167 algorithm is indeed usable for en/decryption. This avoid a
5168 strange error message from pubkey_decrypt if for some reasons a
5169 bad algorithm indentifier is passed.
5171 2001-12-12 David Shaw <dshaw@jabberwocky.com>
5173 * Fixed some types for portability. Noted by Stefan Bellon.
5175 2001-12-11 Werner Koch <wk@gnupg.org>
5177 * hkp.c (hkp_export): Do not print possible control characters
5178 from a keyserver response.
5179 (parse_hkp_index): Made uid an unsigned char* because it is passed to
5181 (hkp_search): Ditto for the char* vars.
5183 * g10.c (main): Print the IDEA warning also for -c and -se.
5185 * g10.c (get_temp_dir): Assert that we have dropped privs
5187 * encode.c (encode_crypt): Include the first key into the --pgp2
5190 2001-12-07 David Shaw <dshaw@jabberwocky.com>
5192 * g10.c, options.h: New option --pgp2. This is identical to
5193 "--rfc1991 --cipher-algo idea --compress-algo 1 --digest-algo md5
5194 --force_v3_sigs" with the addition of an warning to advise the
5195 user not to use a pipe (which would break pgp2 compatibility).
5197 * encode.c (encode_crypt): warn if the user tries to encrypt to
5198 any key that is not RSA and <= 2048 bits when the --pgp2 option is
5201 * sign.c (sign_file, clearsign_file): When using --pgp2, make a v3
5202 sig, and warn if the signature is made with a non-v3 key.
5204 2001-12-05 David Shaw <dshaw@jabberwocky.com>
5206 * sign.c (sign_file, clearsign_file, sign_symencrypt_file): Prompt
5207 for sig expiration if --expert is set and --force-v3-sigs is not
5208 set (v3 sigs cannot expire).
5210 * mainproc.c (check_sig_and_print): After checking a sig, print
5211 expiration status. This causes a error return if the sig is
5214 * build-packet.c (build_sig_subpkt_from_sig): Include a critical
5215 sig expiration subpacket if the sig is to expire.
5217 * keyedit.c (sign_uids): Do not sign an expired key unless
5218 --expert is set, in which case prompt. Also, offer to expire a
5219 signature when the key the user is signing expires.
5221 * keygen.c (ask_expire_interval): Add a value to determine whether
5222 to prompt for a key or sig expiration and change all callers.
5224 * keyid.c: New functions: expirestr_from_sig and
5225 colon_expirestr_from_sig.
5227 * keylist.c (list_keyblock_colon): Show sig expiration date in the
5228 --with-colons listing.
5230 * sign.c (make_keysig_packet, write_signature_packets): Pass in an
5231 optional timestamp for the signature packet, and change all
5234 * keyedit.c (sign_mk_attrib): Include a critical expiration
5235 subpacket in the signature if an expiration date is given.
5237 2001-12-04 David Shaw <dshaw@jabberwocky.com>
5239 * keyedit.c (sign_uids): If the user tries to sign a
5240 locally-signed key, allow the cert to be promoted to a full
5241 exportable signature. This essentially deletes the old
5242 non-exportable sig, and replaces it with a new exportable one.
5244 2001-12-04 David Shaw <dshaw@jabberwocky.com>
5246 * keyedit.c (keyedit_menu): Do not allow signing a revoked key
5247 unless --expert is set, and ask even then.
5249 * keyedit.c (sign_uids): Do not allow signing a revoked UID unless
5250 --expert is set, and ask even then.
5252 * g10.c, options.h : New option --expert
5254 2001-11-16 David Shaw <dshaw@jabberwocky.com>
5256 * Allow the user to select no compression via "--compress-algo 0"
5257 on the command line.
5259 * keyedit.c (show_prefs): Show compression preferences in the
5260 long-form "showpref" style.
5262 * keygen.c (set_one_pref): Permit setting a no-compression ("Z0")
5265 * getkey.c (fixup_uidnode): Fix compression preference corruption
5268 2001-12-02 David Shaw <dshaw@jabberwocky.com>
5270 * g10.c: Add advisory --for-your-eyes-only option as per section
5273 2001-12-05 David Shaw <dshaw@jabberwocky.com>
5275 * Force a V4 sig if the user has a notation or policy URL set.
5277 2001-12-04 David Shaw <dshaw@jabberwocky.com>
5279 * g10.c: Add options --keyserver-options, --temp-directory, and
5280 auto-key-retrieve (the opposite of no-auto-key-retrieve).
5282 * hkp.c (hkp_search): New function to handle searching a HKP
5285 * hkp.c (hkp_ask_import, hkp_export): Pretty large changes to make
5286 them communicate via the generic functions in keyserver.c
5288 * keyserver.c: new file with generic keyserver routines for
5289 getting keys from a keyserver, sending keys to a keyserver, and
5290 searching for keys on a keyserver. Calls the internal HKP stuff
5291 in hkp.c for HKP keyserver functions. Other calls are handled by
5292 an external program which is spawned and written to and read from
5293 via pipes. Platforms that don't have pipes use temp files.
5295 2001-11-20 David Shaw <dshaw@jabberwocky.com>
5297 * options.h, g10.c: New options show-notation, no-show-notation,
5298 default-check-level, no-default-check-level, show-policy-url,
5301 * packet.h, sign.c (make_keysig_packet), parse-packet.c
5302 (parse_signature), free-packet.c (free_seckey_enc): Fill in
5303 structures for notation, policy, sig class, exportability, etc.
5305 * keyedit.c, keylist.c (print_and_check_one_sig,
5306 list_keyblock_print): Show flags in signature display for cert
5307 details (class, local, notation, policy, revocable). If selected,
5308 show the notation and policy url.
5310 * keyedit.c (sign_uids): Prompt for and use different key sig
5313 * helptext.c (helptexts): Add help text to explain different
5314 key signature classes
5316 2001-11-26 David Shaw <dshaw@jabberwocky.com>
5318 * trustdb.c (mark_usable_uid_certs): Fix segfault from bad
5319 initialization and fix reversed key signature expiration check.
5321 2001-11-09 Werner Koch <wk@gnupg.org>
5323 * export.c (do_export_stream): Put all given names into a search
5324 description and change the loop so that all matching names are
5327 2001-11-08 Werner Koch <wk@gnupg.org>
5329 * pubkey-enc.c (get_it): To reduce the number of questions on the
5330 MLs print the the name of cipher algorithm 1 with the error message.
5332 * mainproc.c: Changed the way old rfc1991 encryption cipher is
5333 selected. Based on a patch by W Lewis.
5335 * pkclist.c (do_edit_ownertrust): Allow to skip over keys, the non
5336 working "show info" is now assigned to "i"
5337 * trustdb.c (ask_ownertrust, validate_keys): Implement a real quit
5338 here. Both are by David Shaw.
5340 * trustdb.c (validate_keys): Make sure next_exipire is initialized.
5342 * sign.c (make_keysig_packet): Use SHA-1 with v4 RSA keys.
5344 * g10.c, options.h : New option --[no-]froce-v4-certs.
5345 * sign.c (make_keysig_packet): Create v4 sigs on v4 keys even with
5346 a v3 key. Use that new option. By David Shaw
5348 * revoke.c (ask_revocation_reason): Allow to select "no reason".
5351 * keyid.c (fingerprint_from_sk): Calculation of an v3 fpr was
5352 plain wrong - nearly the same code in fingerprint_from_pk is correct.
5354 * build-packet.c (do_secret_key): Added a few comments to the code.
5356 2001-11-07 Werner Koch <wk@gnupg.org>
5358 * g10.c (main): Print a warning when -r is used w/o encryption.
5359 Suggested by Pascal Scheffers.
5361 2001-10-23 Werner Koch <wk@gnupg.org>
5363 * keyedit.c (keyedit_menu): Changed helptext for showpref
5364 command. Suggested by Reinhard Wobst.
5366 * keyring.c (keyring_search): When marking the offtbl ready, take
5367 into account that we may have more than one keyring.
5369 2001-10-22 Werner Koch <wk@gnupg.org>
5371 * Makefile.am: Do not use OMIT_DEPENDENCIES
5373 * build-packet.c (build_sig_subpkt): Default is now to put all
5374 types of subpackets into the hashed area and only list those which
5375 should go into the unhashed area.
5377 2001-10-18 Werner Koch <wk@gnupg.org>
5379 * keydb.c (keydb_add_resource): Rearranged the way we keep track
5380 of the resource. There will now be an entry for each keyring here
5381 and not in keyring.c itself. Store a token to allow creation of a
5382 keyring handle. Changed all functions to utilize this new design.
5383 (keydb_locate_writable): Make a real implementation.
5384 * keyring.c (next_kr): Removed and changed all callers to set the
5385 resource directly from the one given with the handle.
5386 (keyring_is_writable): New.
5387 (keyring_rebuild_cache): Add an arg to pass the token from keydb.
5389 2001-10-17 Werner Koch <wk@gnupg.org>
5391 * keyring.c (keyring_search): Enabled word search mode but print a
5392 warning that it is buggy.
5394 2001-10-11 Werner Koch <wk@gnupg.org>
5396 * hkp.c (hkp_ask_import): No more need to set the port number for
5398 (hkp_export): Ditto.
5400 2001-10-06 Stefan Bellon <sbellon@sbellon.de>
5402 * passphrase.c [__riscos__]: Disabled agent specific stuff.
5403 * g10.c: New option --no-force-v3-sigs.
5405 2001-10-04 Werner Koch <wk@gnupg.org>
5407 * export.c (do_export_stream): Do not push the compress filter
5408 here because the context would run out of scope due to the
5409 iobuf_close done by the caller.
5410 (do_export): Do it here instead.
5412 2001-09-28 Werner Koch <wk@gnupg.org>
5414 * keyedit.c (sign_uids): Always use the primary key to sign keys.
5415 * getkey.c (finish_lookup): Hack to return only the primary key if
5416 a certification key has been requested.
5418 * trustdb.c (cmp_kid_for_make_key_array): Renamed to
5419 (validate_one_keyblock): this and changed arg for direct calling.
5420 (make_key_array): Renamed to
5421 (validate_one_keyblock): this and changed args for direct calling.
5422 (mark_usable_uid_certs, validate_one_keyblock)
5423 (validate_key_list): Add next_expire arg to keep track of
5425 (validate_keys): Ditto for UTKs and write the stamp.
5427 * tdbio.c (migrate_from_v2): Check return code of tbdio_sync.
5429 * tdbdump.c (import_ownertrust): Do a tdbio_sync().
5431 * keyring.c: Made the offtbl an global object.
5433 2001-09-27 Werner Koch <wk@gnupg.org>
5435 * pkclist.c (do_edit_ownertrust): Allow settin of ultimate trust.
5437 * trustdb.c (mark_keyblock_seen): New.
5438 (make_key_array): Use it to mark the subkeys too.
5439 (validate_keys): Store validity for ultimatly trusted keys.
5441 2001-09-26 Werner Koch <wk@gnupg.org>
5443 * pkclist.c (check_signatures_trust, do_we_trust): Removed the
5444 invocation of add_ownertrust. Minor changes to the wording.
5445 (add_ownertrust, add_ownertrust_cb): Removed.
5447 * trustdb.c (get_validity): Allow to lookup the validity using a
5450 * trustdb.c (new_key_hash_table): Increased the table size to 1024
5451 and changed the masks accordingly.
5452 (validate): Changed stats printing.
5453 (mark_usable_uid_certs): New.
5454 (cmp_kid_for_make_key_array): Does now check the signatures and
5455 figures out a usable one.
5457 2001-09-25 Werner Koch <wk@gnupg.org>
5459 * keyring.c (new_offset_item,release_offset_items)
5460 (new_offset_hash_table, lookup_offset_hash_table)
5461 (update_offset_hash_table, update_offset_hash_table_from_kb): New.
5462 (keyring_search): Use a offset table to optimize search for
5464 (keyring_update_keyblock, keyring_insert_keyblock): Insert new
5466 * getkey.c (MAX_UNK_CACHE_ENTRIES): Removed the unknown keys
5469 * g10.c, options.h, import.c: Removed the entire
5470 allow-secret-key-import stuff because the validity is now
5471 controlled by other means.
5473 * g10.c: New command --rebuild-keydb-caches.
5474 * keydb.c (keydb_rebuild_caches): New.
5475 * keyring.c (do_copy): Moved some code to
5476 (create_tmp_file, rename_tmp_file, write_keyblock): new functions.
5477 (keyring_rebuild_cache): New.
5479 * packet.h (PKT_ring_trust): Add sigcache field.
5480 * parse-packet.c (parse_trust): Parse sigcache.
5481 * keyring.c (do_copy): Always insert a sigcache packet.
5482 (keyring_get_keyblock): Copy the sigcache packet to the signature.
5483 * sig-check.c (cache_sig_result): Renamed from
5484 cache_selfsig_result. Changed implementation to use the flag bits
5485 and changed all callers.
5486 (mdc_kludge_check): Removed this unused code.
5487 (do_check): Do not set the sig flags here.
5489 * import.c (read_block): Make sure that ring_trust packets are
5491 * export.c (do_export_stream): and never export them.
5493 * trustdb.c (make_key_array): Skip revoked and expired keys.
5495 2001-09-24 Werner Koch <wk@gnupg.org>
5497 * g10.c, options.h: New option --no-auto-check-trustdb.
5499 * keygen.c (do_generate_keypair): Set newly created keys to
5502 * tdbio.h, tdbio.c: Removed all support for records DIR, KEY, UID,
5503 PREF, SIG, SDIR and CACH. Changed migration function to work
5505 (tdbio_read_nextcheck): New.
5506 (tdbio_write_nextcheck): New.
5508 2001-09-21 Werner Koch <wk@gnupg.org>
5510 Revamped the entire key validation system.
5511 * trustdb.c: Complete rewrite. No more validation on demand,
5512 removed some functions, adjusted to all callers to use the new
5513 and much simpler interface. Does not use the LID anymore.
5514 * tdbio.c, tdbio.h: Add new record types trust and valid. Wrote a
5515 migration function to convert to the new trustdb layout.
5516 * getkey.c (classify_user_id2): Do not allow the use of the "#"
5518 * keydb.h: Removed the TDBIDX mode add a skipfnc to the
5520 * keyring.c (keyring_search): Implemented skipfnc.
5522 * passphrase.c (agent_open): Add missing bracket. Include windows.h.
5524 2001-09-19 Werner Koch <wk@gnupg.org>
5526 * keylist.c (print_fingerprint): Renamed from fingerprint, made
5527 global available. Added new arg to control the print style.
5528 * mainproc.c (print_fingerprint): Removed.
5529 * pkclist.c (print_fpr, fpr_info): Removed and changed callers to
5530 use print_fingerprint.
5531 * keyedit.c (show_fingerprint): Ditto.
5533 * passphrase.c (writen, readn)
5534 (agent_open, agent_close)
5535 (agent_get_passphrase)
5536 (passphrase_clear_cache): Support for W32. Contributed by Timo.
5538 * import.c (import_one): Release keydb handles at 2 more places.
5540 * keyring.c (keyring_release): Close the iobuf.
5541 (keyring_get_keyblock): Init ret_kb to NULL and store error contidion.
5543 * import.c (import_new_stats_handle): New.
5544 (import_release_stats_handle): New.
5545 (import_print_stats): Renamed from static fnc print_stats.
5546 (import_keys, import_keys_stream): Add an optional status handle
5547 arg and changed all callers.
5548 * hkp.c (hkp_ask_import): Add an stats_handle arg and changed all
5551 * mainproc.c (print_pkenc_list): Use print_utf8_string2().
5553 2001-09-18 Werner Koch <wk@gnupg.org>
5555 * g10.c: New command --refresh-keys.
5556 * hkp.c (hkp_refresh_keys): New. Contributed by Timo Schulz.
5558 * parse-packet.c (parse): Stop on impossible packet lengths.
5560 2001-09-17 Werner Koch <wk@gnupg.org>
5562 * mainproc.c (print_notation_data): Wrap notation data status lines
5565 * mainproc.c (proc_pubkey_enc): Make option try-all-secrets work.
5566 By disastry@saiknes.lv.
5568 2001-09-14 Werner Koch <wk@gnupg.org>
5570 * parse-packet.c (dump_sig_subpkt): List key server preferences
5571 and show the revocable flag correctly. Contributed by David Shaw.
5573 2001-09-09 Werner Koch <wk@gnupg.org>
5575 * keyedit.c (keyedit_menu): No need to define another p.
5577 * keylist.c (print_capabilities): s/used/use/ so that it
5578 does not shadow a global.
5579 * sign.c (sign_file): Renamed arg encrypt to encryptflag
5580 * keygen.c: Replaced all "usage" by "use".
5581 * misc.c (openpgp_pk_algo_usage): Ditto.
5583 * pubkey-enc.c (get_it): Renamed arg k to enc so that the later
5584 defined k does not shadow it.
5586 * parse-packet.c (parse_gpg_control): No need to define another i.
5588 * getkey.c (get_pubkey_byfprint): Must use the enum values and not
5590 * keyring.c (keyring_search): Removed a non-sense break. Both
5591 bugs pointed out by Stefan.
5593 2001-09-07 Werner Koch <wk@gnupg.org>
5595 * status.c, status.h: Added NO_RECP and ALREADY_SIGNED.
5596 * pkclist.c (build_pk_list): Issue NO_RECP.
5597 * keyedit.c (sign_uids): Added experimental ALREADY_SIGNED
5599 * hkp.c (hkp_import): Use log_error. Bug reported by Neal H
5602 * getkey.c (classify_user_id2): Change args to take the desc union
5603 direct. It was a stupid idea to pass the individual fields of an
5604 union to this function. Changed all callers.
5605 (classify_user_id): Ditto and allow to pass NULL as the description.
5607 2001-09-06 Werner Koch <wk@gnupg.org>
5609 * getkey.c (fixup_uidnode): Features flag is now a bit vector.
5610 * keygen.c (add_feature_mdc): Ditto.
5612 Revamped the entire key I/O code to be prepared for other ways of
5613 key storages and to get rid of the existing shit. GDBM support has
5616 * keyring.c, keyring.h: New.
5617 * ringedit.c: Removed. Moved some stuff to keyring.c
5618 * getkey.c: Changed everything related to the key retrieving
5619 functions which are now using the keydb_ functions.
5620 (prepare_search, word_match_chars, word_match)
5621 (prepare_word_match, compare_name): Moved to keyring.c
5622 (get_pubkey_byname): Removed ctx arg and add ret_kdbhd
5623 arg. Changed all callers.
5624 (key_byname): Use get_pubkey_end to release the context and take
5625 new ret_kbdhd arg. Changed all callers.
5626 (classify_user_id2): Fill the 16 byte fingerprint up with 4 null
5627 bytes not with zero bytes of value 4, tsss.
5628 * import.c (import_one): Updated to use the new keydb interface.
5629 (import_secret_one): Ditto.
5630 (import_revoke_cert): Ditto.
5631 * delkey.c (do_delete_key): Ditto.
5632 * keyedit.c (keyedit_menu): Ditto.
5633 (get_keyblock_byname): Removed.
5634 * revoke.c (gen_revoke): Ditto.
5635 * export.c (do_export_stream): Ditto.
5636 * trustdb.c (update_trustdb): Ditto.
5637 * g10.c, gpgv.c (main): Renamed add_keyblock_resource to
5639 * Makefile.am: Added and removed files.
5641 * keydb.h: Moved KBNODE typedef and MAX_FINGERPRINT_LEN to
5642 * global.h: this new header.
5644 2001-09-03 Werner Koch <wk@gnupg.org>
5646 * passphrase.c (agent_get_passphrase): Changed nread to size_t.
5647 (passphrase_clear_cache): Ditto.
5649 * keyid.c (mk_datestr): Avoid trigraphs.
5650 (fingerprint_from_pk): Cache the keyid in the pk.
5652 * options.h: Add opt.with_fingerprint so that we know whether the
5653 corresponding options was used.
5654 * g10.c (main): Set it here.
5655 * pkclist.c (check_signatures_trust): Always print fingerprint
5656 when this option is used. Mixed a minor memory leak.
5658 * status.c, status.h: New status INV_RECP.
5659 * pkclist.c (build_pk_list): Issue this status.
5661 2001-08-31 Werner Koch <wk@gnupg.org>
5663 * parse-packet.c (parse_key,parse_pubkeyenc)
5664 (parse_signature): Return error on reading bad MPIs.
5666 * mainproc.c (check_sig_and_print): Always print the user ID even
5667 if it is not bound by a signature. Use the primary UID in the
5668 status messages and encode them in UTF-8
5669 * status.c (write_status_text_and_buffer): New.
5671 2001-08-30 Werner Koch <wk@gnupg.org>
5673 * packet.h (sigsubpkttype_t): Add SIGSUBPKT_FEATURES.
5674 (PKT_public_key, PKT_user_id): Add a flag for it.
5675 * parse-packet.c, build-packet.c: Add support for them.
5676 * getkey.c (fixup_uidnode, merge_selfsigs): Set the MDC flags.
5677 * keygen.c (add_feature_mdc): New.
5678 (keygen_upd_std_prefs): Always set the MDC feature.
5679 * keyedit.c (show_prefs): List the MDC flag
5680 * pkclist.c (select_mdc_from_pklist): New.
5681 * encode.c (encode_crypt, encrypt_filter): Test whether MDC
5683 * cipher.c (write_header): Set MDC use depending on the above test.
5684 Print more status info.
5686 * delkey.c (do_delete_key): Kludge to delete a secret key with no
5687 public key available.
5689 * ringedit.c (find_secret_keyblock_direct): New.
5690 * getkey.c (seckey_available): Simplified.
5692 * ringedit.c (cmp_seckey): Now compares the secret key against the
5693 public key while ignoring all secret parts.
5694 (keyring_search): Use a public key packet as arg. Allow to search
5696 (search): Likewise. Changed all callers.
5697 (find_secret_keyblock_bypk): New.
5698 (find_secret_keyblock_byname): First locate the pubkey and then
5699 find the correponding secret key.
5700 * parse-packet.c (parse): Renamed pkttype arg to onlykeypkts and
5701 changed code accordingly. Changed all callers.
5702 (search_packet): Removed pkttype arg.
5703 * keyedit.c (keyedit_menu): First locate the public key and then
5704 try to locate a secret key.
5706 * ringedit.c (locate_keyblock_by_fpr): Removed.
5707 (locate_keyblock_by_keyid): Removed.
5708 (find_keyblock_bysk): Removed.
5710 * sig-check.c (check_key_signature2): Print the keyid along with
5711 the wrong sig class errors.
5713 2001-08-24 Werner Koch <wk@gnupg.org>
5715 * sign.c (sign_file): Stripped the disabled comment packet code.
5716 (sign_file, sign_symencrypt_file): Moved common code to ..
5717 (write_onepass_sig_packets): .. this new function.
5718 (sign_file, clearsign_file, sign_symencrypt_file): Moved common
5720 (write_signature_packets): this new function.
5721 (write_signature_packets, make_keysig_packet)
5722 (update_keysig_packet): Moved common code to
5723 (hash_uid, hash_sigclass_to_magic): these new functions
5724 (sign_file, sign_symencrypt_file): Moved common code to
5725 (write_plaintext_packet): this new function.
5727 2001-08-21 Stefan Bellon <sbellon@sbellon.de>
5729 * trustdb.c (query_trust_info): Changed trustlevel to signed int.
5730 * g10.c [__riscos__]: Fixed handling of --use-agent --lock-multiple.
5732 2001-08-20 Werner Koch <wk@gnupg.org>
5734 * encr-data.c (decrypt_data): Keep track on whether we already
5735 printed information about the used algorithm.
5736 * mainproc.c (proc_encrypted): Removed the non-working IDEA hack
5737 and print a message about the assumed algorithm.
5738 * passphrase.c (passphrase_to_dek): Use the same algorithm as above.
5739 (proc_symkey_enc): Print the algorithm, so that the user knows it
5740 before entering the passphrase.
5741 (proc_pubkey_enc, proc_pubkey_enc): Zero the DEK out.
5742 * encode.c (encode_crypt, encrypt_filter): Ditto.
5744 * g10.c: Allow for --sign --symmetric.
5745 * sign.c (sign_and_symencrypt): New.
5747 Applied patches from Stefan Bellon <sbellon@sbellon.de> to support
5748 RISC OS. Nearly all of these patches are identified by the
5750 * compress.c: Added a couple of casts.
5751 * g10.c [__riscos__]: Some patches and new options foo-file similar
5752 to all foo-fd options.
5753 * gpgv.c, openfile.c, ringedit.c, tdbio.c: Minor fixes. Mainly
5754 replaced hardcoded path separators with EXTSEP_S like macros.
5755 * passprase.c [__riscos__]: Disabled agent stuff
5756 * trustdb.c (check_trust): Changed r_trustlevel to signed int to
5757 avoid mismatch problems in pkclist.c
5758 * pkclist.c (add_ownertrust): Ditto.
5759 * plaintext.c (handle_plaintext) [__riscos__]: Print a note when
5760 file can't be created.
5761 * options.h [__riscos__]: Use an extern unless included from the
5763 * signal.c (got_fatal_signal) [__riscos__]: Close all files.
5765 2001-08-14 Werner Koch <wk@gnupg.org>
5767 * keygen.c (ask_algo): New arg r_usage. Allow for RSA keys.
5768 (gen_rsa): Enabled the code.
5769 (do_create): Enabled RSA branch.
5770 (parse_parameter_usage): New.
5771 (proc_parameter_file): Handle usage parameter.
5772 (read_parameter_file): Ditto.
5773 (generate_keypair): Ditto.
5774 (generate_subkeypair): Ditto.
5775 (do_generate_keypair): Ditto.
5776 (do_add_key_flags): New.
5777 (keygen_add_std_prefs): Use the new function.
5778 (keygen_add_key_flags_and_expire): New.
5779 (write_selfsig, write_keybinding): Handle new usage arg.
5780 * build-packet.c (build_sig_subpkt): Make sure that key flags go
5781 into the hashed area.
5783 * keygen.c (write_uid): Initialize the reference cunter.
5785 * keyedit.c (keyedit_menu): No more need to update the trustdb for
5786 preferences. Added calls to merge keblock.
5788 * kbnode.c (dump_kbnode): Print some more flags.
5790 2001-08-10 Werner Koch <wk@gnupg.org>
5792 Revamped the preference handling.
5794 * packet.h (prefitem_t, preftype_t): New.
5795 (PKT_public_key): Added a uid field.
5796 (PKT_user_id): Added field to store preferences and a reference
5798 * parse-packet.c (parse_user_id,parse_photo_id): Initialize them
5799 * free-packet.c (free_user_id): Free them.
5800 (copy_user_id): Removed.
5801 (scopy_user_id): New.
5802 (cmp_user_ids): Optimized for identical pointers.
5803 (release_public_key_parts): Release the uid.
5804 (copy_public_key_with_new_namehash): Removed.
5806 * keyedit.c (menu_adduid): Use the new shallow copy user id.
5807 (show_prefs): Adjusted implementation.
5808 (keyedit_menu): No more need to update the trustdb after changing
5810 * getkey.c (fixup_uidnode): Store preferences.
5811 (find_by_name): Return a user id packet and remove namehash stuff.
5812 (lookup): Removed the unused namehash stuff.
5813 (finish_lookup): Added foundu arg.
5814 (pk_from_block): Removed the namehash arg and changed all callers.
5815 (merge_selfsigs): Copy prefs to all keys.
5816 * trustdb.c (get_pref_data): Removed.
5817 (is_algo_in_prefs): Removed.
5818 (make_pref_record): Deleted and removed all class.
5819 * pkclist.c (select_algo_from_prefs): Adjusted for the new
5820 preference implementation.
5821 * pubkey-enc.c (is_algo_in_prefs): New.
5822 (get_it): Use that new function.
5824 2001-08-09 Werner Koch <wk@gnupg.org>
5826 * build-packet.c (build_sig_subpkt): Fixed calculation of
5829 * g10.c (main): New option "--preference-list"
5830 * keyedit.c (keyedit_menu): New commands "setpref" and "updpref".
5831 (menu_set_preferences): New.
5832 * keygen.c (keygen_set_std_prefs): New.
5833 (set_one_pref): New.
5834 (check_zip_algo): New.
5835 (keygen_get_std_prefs): New.
5836 (keygen_upd_std_prefs): New
5837 (keygen_add_std_prefs): Move the pref setting code into the above fnc.
5838 * build-packet.c (build_sig_subpkt): Updated the list of allowed
5839 to update subpackets.
5841 2001-08-08 Werner Koch <wk@gnupg.org>
5843 * packet.h (subpktarea_t): New.
5844 (PKT_signature): Use that type for hashed_data and unhashed_data and
5845 removed the _data prefix from those fields. Changed all users.
5846 * parse-packet.c (parse_signature): Changed allocation for that.
5847 (parse_sig_subpkt): Changed declaration
5848 (enum_sig_subpkt): Ditto and changed implementation accordingly.
5849 * free-packet.c (cp_subpktarea): Renamed from cp_data_block and
5850 adjusted implementation. Changed caller.
5851 * sig-check.c (mdc_kludge_check): Adjusted the hashing.
5853 * sign.c (sign_file, clearsign_file, make_keysig_packet,
5854 update_keysig_packet): Ditto.
5855 * build-packet.c (build_sig_subpkt): Partial rewrite.
5856 (find_subpkt): Adjusted and made static.
5857 (delete_sig_subpkt): Adjusted.
5858 (do_signature): Ditto.
5860 * keygen.c (ask_keysize): Do not print the notes about suggested
5861 key sizes if just a DSA key is generated.
5863 * trustdb.c (add_ultimate_key): s/log_error/log_info/ for
5864 duplicated inserted trusted keys.
5866 2001-08-07 Werner Koch <wk@gnupg.org>
5868 * sign.c (sleep): Redefine for W32.
5870 * g10.c, options.h: Set new flag opt.no_homedir_creation when
5871 --no-options is given.
5872 * openfile.c (try_make_homedir): Don't create the homedir in that case.
5874 2001-08-03 Werner Koch <wk@gnupg.org>
5876 * armor.c (armor_filter): Removed the default comment string
5877 because it could get us in trouble due to translations using non
5880 2001-08-01 Werner Koch <wk@gnupg.org>
5882 * keylist.c (list_keyblock_print): Do not list revoked UIDs unless
5883 in verbose mode and we do no signature listing.
5885 * getkey.c (finish_lookup): Skip subkeys which are not yet valid.
5886 * g10.c, options.h: New option --ignore-valid-from.
5888 * sign.c (make_keysig_packet): Added new sigversion argument to
5889 allow the caller to force generation of required signature
5890 version. Changed all callers. Suggested by Thomas Roessler.
5892 * keyedit.c (sign_uids): Force v4 signature generation for local
5893 sigs. Removed the check for local signature and pre-v4 keys.
5895 2001-07-27 Werner Koch <wk@gnupg.org>
5897 * keyedit.c (sign_uids): Check that we are not trying to to a
5898 lsign with a pre-v4 key. Bug noticed by Thomas Roessler.
5900 2001-07-26 Werner Koch <wk@gnupg.org>
5902 * parse-packet.c (parse_photo_id): Reset all variables.
5903 * getkey.c (merge_selfsigs_main): Removed checks on PHOTO_ID
5904 because this is handled identically to a user ID.
5906 2001-07-06 Werner Koch <wk@gnupg.org>
5908 * cipher.c (write_header): Don't use MDC with --rfc1991. Suggested
5909 by disastry@saiknes.lv.
5911 2001-07-05 Werner Koch <wk@gnupg.org>
5913 * g10.c, options.h: New option --preserve-permissions.
5914 * ringedit.c (add_keyblock_resource): Use it here
5915 (keyring_copy): and here.
5917 * trustdb.c (verify_own_keys): Be more silent on --quiet.
5918 Suggested by Thomas Roessler.
5919 * sig-check.c (check_key_signature2): Ditto.
5920 * mainproc.c (proc_encrypted, proc_tree): Ditto
5921 * getkey.c (lookup): Ditto.
5923 2001-07-04 Werner Koch <wk@gnupg.org>
5925 * ringedit.c (add_keyblock_resource): Restore filename in case of error.
5927 2001-06-25 Werner Koch <wk@gnupg.org>
5929 * kbnode.c (dump_kbnode): Print the signature timestamp.
5931 * keyedit.c (keyedit_menu): New menu point "primary".
5932 (change_primary_uid_cb): New.
5933 (menu_set_primary_uid): New.
5934 * sign.c (update_keysig_packet): New.
5935 * build-packet.c (build_sig_subpkt): Put the primary UID flag into
5936 the hashed area. Allow update of some more packets.
5938 2001-06-15 Werner Koch <wk@gnupg.org>
5940 * getkey.c (merge_selfsigs): Exit gracefully when a secret key is
5941 encountered. May happen if a secret key is in public keyring.
5942 Reported by Francesco Potorti.
5944 2001-06-12 Werner Koch <wk@gnupg.org>
5946 * getkey.c (compare_name): Use ascii_memistr(), ascii_memcasecmp()
5947 * keyedit.c (keyedit_menu): Use ascii_strcasecmp().
5948 * armor.c (radix64_read): Use ascii_toupper().
5949 * ringedit.c (do_bm_search): Ditto.
5950 * keygen.c (read_parameter_file): Ditto.
5951 * openfile.c (CMP_FILENAME): Ditto.
5952 * g10.c (i18n_init): We can now use just LC_ALL.
5954 2001-05-29 Werner Koch <wk@gnupg.org>
5956 * keygen.c (generate_subkeypair): Print a warning if a subkey is
5957 created on a v3 key. Suggested by Brian M. Carlson.
5959 2001-05-27 Werner Koch <wk@gnupg.org>
5961 * keyid.c (get_lsign_letter): New.
5962 * keylist.c (list_keyblock_colon): Use it here.
5963 * mainproc.c (list_node): and here.
5965 * getkey.c, packet.h, free-packet.c: Removed that useless key
5966 created field; I dunno why I introducded this at all - the
5967 creation time is always bound to the key packet and subject to
5968 fingerprint calculation etc.
5970 * getkey.c (fixup_uidnode): Add keycreated arg and use this
5971 instead of the signature timestamp to calculate the
5972 help_key_expire. Bug reported by David R. Bergstein.
5973 (merge_selfsigs_main): Correct key expiration time calculation.
5974 (merge_selfsigs_subkey): Ditto.
5976 2001-05-25 Werner Koch <wk@gnupg.org>
5978 * revoke.c (gen_revoke): Add a cast to a tty_printf arg.
5979 * delkey.c (do_delete_key): Ditto.
5980 * keyedit.c (print_and_check_one_sig): Ditto.
5981 (ask_revoke_sig): Ditto.
5982 (menu_revsig): Ditto.
5983 (check_all_keysigs): Removed unused arg.
5985 2001-05-23 Werner Koch <wk@gnupg.org>
5987 * g10.c (opts): Typo fix by Robert C. Ames.
5989 2001-05-06 Werner Koch <wk@gnupg.org>
5991 * revoke.c: Small typo fix
5993 2001-05-04 Werner Koch <wk@gnupg.org>
5995 * passphrase.c (passphrase_clear_cache): Shortcut if agent usage
5998 2001-05-01 Werner Koch <wk@gnupg.org>
6000 * passphrase.c (writen): Replaced ssize_t by int. Thanks to
6001 to Robert Joop for reporting that SunOS 4.1.4 does not have it.
6003 2001-04-28 Werner Koch <wk@gnupg.org>
6005 * getkey.c (merge_public_with_secret): pkttype was not set to subkey.
6007 2001-04-27 Werner Koch <wk@gnupg.org>
6009 * skclist.c (build_sk_list): Changed one log_debug to log_info.
6011 2001-04-25 Werner Koch <wk@gnupg.org>
6013 * keyedit.c (show_prefs): Add a verbose mode.
6014 (show_key_with_all_names): Pass verbose flag for special value of
6016 (keyedit_menu): New command "showpref"
6017 (show_key_with_all_names): Mark revoked uids and the primary key.
6019 2001-04-24 Werner Koch <wk@gnupg.org>
6021 * getkey.c (get_primary_uid): Return a different string in case of
6022 error and made it translatable.
6024 * build-packet.c (do_secret_key): Ugly, we wrote a zero
6025 instead of the computed ndays. Thanks to M Taylor for complaining
6026 about a secret key import problem.
6028 2001-04-23 Werner Koch <wk@gnupg.org>
6030 * hkp.c (hkp_ask_import): Allow to specify a port number for the
6031 keyserver. Add a kudge to set the no_shutdown flag.
6032 (hkp_export): Ditto.
6033 * options.skel: Document the changes
6035 2001-04-20 Werner Koch <wk@gnupg.org>
6037 * options.skel: Add some more comments.
6039 2001-04-19 Werner Koch <wk@gnupg.org>
6041 * keyid.c (mk_datestr): New. Handles negative times. We must do
6042 this because Windoze segvs on negative times passed to gmtime().
6043 Changed all datestr_from function to use this one.
6045 * keyid.c, keyid.h (colon_strtime): New. To implement the
6047 (colon_datestr_from_pk): New.
6048 (colon_datestr_from_sk): New.
6049 (colon_datestr_from_sig): New.
6050 * keylist.c (list_keyblock_colon): Use these functions here.
6051 * mainproc.c (list_node): Ditto.
6053 2001-04-18 Werner Koch <wk@gnupg.org>
6055 * openfile.c (open_sigfile): Fixed the handling of ".sign".
6056 * mainproc.c (proc_tree): Use iobuf_get_real_fname.
6057 Both are by Vincent Broman.
6059 2001-04-14 Werner Koch <wk@gnupg.org>
6061 * getkey.c (fixup_uidnode): Removed check for !sig which is
6062 pointless here. Thanks to Jan Niehusmann.
6064 2001-04-10 Werner Koch <wk@gnupg.org>
6066 * sig-check.c (check_key_signature2): Use log_info instead of
6067 log_error so that messed up keys do not let gpg return an error.
6068 Suggested by Christian Kurz.
6070 * getkey.c (merge_selfsigs_main): Do a fixup_uidnode only if we
6071 have both, uid and sig. Thanks to M Taylor.
6073 2001-04-05 Werner Koch <wk@gnupg.org>
6075 * armor.c (unarmor_pump_new,unarmor_pump_release): New.
6076 (unarmor_pump): New.
6077 * pipemode.c (pipemode_filter): Use the unarmor_pump to handle
6078 armored or non-armored detached signatures. We can't use the
6079 regular armor_filter because this does only check for armored
6080 signatures the very first time. In pipemode we may have a mix of
6081 armored and binary detached signatures.
6082 * mainproc.c (proc_tree): Do not print the "old style" notice when
6083 this is a pipemode processes detached signature.
6084 (proc_plaintext): Special handling of pipemode detached sigs.
6086 * packet.h (CTRLPKT_PLAINTEXT_MARK): New.
6087 * parse-packet.c (create_gpg_control): New.
6088 * kbnode.c (dump_kbnode): Support it here.
6089 * mainproc.c (check_sig_and_print): Fixed the check for bad
6090 sequences of multiple signatures.
6091 (proc_plaintext): Add the marker packet.
6092 (proc_tree): We can now check multiple detached signatures.
6094 2001-04-02 Werner Koch <wk@gnupg.org>
6096 The length of encrypted packets for blocksizes != 8 was not
6097 correct encoded. I think this is a minor problem, because we
6098 usually use partial length packets. Kudos to Kahil D. Jallad for
6100 * packet.h: Add extralen to PKT_encrypted.
6101 * cipher.c (write_header): Set extralen.
6102 * build-packet.c (do_encrypted): Use extralen instead of const 10.
6103 (do_encrypted_mdc): Ditto.
6104 * parse-packet.c (parse_encrypted): Set extralen to 0 because we
6107 2001-03-30 Werner Koch <wk@gnupg.org>
6109 * getkey.c (premerge_public_with_secret): Changed wording an add
6110 the keyID to the info message.
6112 2001-03-29 Werner Koch <wk@gnupg.org>
6114 * getkey.c (premerge_public_with_secret): Use log_info instead of
6115 log_error when no secret key was found for a public one.
6116 Fix the usage if the secret parts of a key are not available.
6118 * openfile.c (ask_outfile_name): Trim spaces.
6119 (open_outfile): Allow to enter an alternate filename. Thanks to
6121 * plaintext.c (handle_plaintext): Ditto.
6123 2001-03-28 Werner Koch <wk@gnupg.org>
6125 * mainproc.c (do_check_sig): Allow direct key and subkey
6126 revocation signature.
6127 * sig-check.c (check_key_signature2): Check direct key signatures.
6128 Print the signature class along with an error.
6130 2001-03-27 Werner Koch <wk@gnupg.org>
6132 * packet.h: Add a missing typedef to an enum. Thanks to Stefan Bellon.
6134 * g10.c: New option --no-sig-create-check.
6135 * sign.c (do_sign): Implement it here.
6136 * g10.c: New option --no-sig-cache.
6137 * sig-check.c (check_key_signature2): Implement it here.
6138 (cache_selfsig_result): and here.
6140 * keylist.c (list_keyblock): Removed debugging stuff.
6142 * getkey.c (cache_public_key): Made global.
6143 * keygen.c (write_selfsig, write_keybinding): Cache the new key.
6145 * getkey.c (key_byname): Add new arg secmode and changed all
6146 callers to request explicitly the mode. Deriving this information
6147 from the other supplied parameters does not work if neither pk nor
6150 2001-03-25 Werner Koch <wk@gnupg.org>
6152 * packet.h (ctrlpkttype_t): New.
6153 * mainproc.c (add_gpg_control,proc_plaintext,proc_tree): Use the
6155 * pipemode.c (make_control): Ditto.
6156 * armor.c (armor_filter): Ditto.
6158 2001-03-24 Werner Koch <wk@gnupg.org>
6160 * sign.c (do_sign): Verify the signature right after creation.
6162 2001-03-23 Werner Koch <wk@gnupg.org>
6164 * status.c, status.h (STATUS_UNEXPECTED): New.
6165 * mainproc.c (do_proc_packets): And emit it here.
6167 2001-03-21 Werner Koch <wk@gnupg.org>
6169 * status.c: Add sys/types.h so that it runs on Ultrix. Reported
6172 * build-packet.c (build_sig_subpkt): Fixed generaton of packet
6173 length header in case where 2 bytes headers are needed. Thanks to
6176 2001-03-19 Werner Koch <wk@gnupg.org>
6178 * g10.c (main): the default keyring is no always used unless
6179 --no-default-keyring is given.
6181 * ringedit.c (add_keyblock_resource): invalidate cache after file
6184 2001-03-15 Werner Koch <wk@gnupg.org>
6186 * keygen.c (ask_algo): Changed the warning of the ElGamal S+E Algo.
6188 * keylist.c (print_capabilities): New.
6189 (list_keyblock_colon): and use it here.
6191 2001-03-13 Werner Koch <wk@gnupg.org>
6193 * main.c, options.h: New option --fixed_list_mode.
6194 * keylist.c (list_keyblock_colon): use it here.
6196 * getkey.c (merge_keys_and_selfsig): Divert merging of public keys
6197 to the function used in key selection..
6198 * keylist.c (is_uid_valid): Removed.
6199 (list_keyblock): Splitted into ..
6200 (list_keyblock_print, list_keyblock_colon): .. these.
6201 functions. Changed them to use the flags set in the key lookup code.
6202 (reorder_keyblock): New, so that primary user IDs are listed first.
6204 * ringedit.c (keyring_copy): flush the new iobuf chaces before
6205 rename or remove operations. This is mainly needed for W32.
6207 * hkp.c [HAVE_DOSISH_SYSTEM]: Removed the disabled code because we
6208 have now W32 socket support in ../util/http.c
6210 * skclist.c (key_present_in_sk_list): New.
6211 (is_duplicated_entry): New.
6212 (build_sk_list): Check for duplicates and do that before unlocking.
6214 2001-03-12 Werner Koch <wk@gnupg.org>
6216 * armor.c (parse_header_line): Removed double empty line check.
6217 (parse_header_line): Replaced trim_trailing_ws with a counting
6218 function so that we can adjust for the next read.
6220 * options.skel: Fixed 3 typos. By Thomas Klausner. Replaced the
6221 keyserver example by a better working server.
6223 * parse-packet.c (parse_symkeyenc): Return Invalid_Packet on error.
6224 (parse_pubkeyenc): Ditto.
6225 (parse_onepass_sig): Ditto.
6226 (parse_plaintext): Ditto.
6227 (parse_encrypted): Ditto.
6228 (parse_signature): Return error at other places too.
6230 * g10.c (main): Set opt.list_packets to another value when invoked
6231 with the --list-packets command.
6232 * mainproc.c (do_proc_packets): Don's stop processing when running
6233 under --list-packets command.
6235 * signal.c (do_sigaction): Removed.
6236 (init_one_signal): New to replace the above. Needed to support
6237 systems without sigactions. Suggested by Dave Dykstra.
6238 (got_fatal_signal,init_signals): Use the above here.
6239 (do_block): Use sigset() if sigprocmask() is not available.
6241 * armor.c (parse_hash_header): Test on TIGER192, which is the
6242 correct value as per rfc2440. By Edwin Woudt.
6244 2001-03-08 Werner Koch <wk@gnupg.org>
6246 * misc.c: Include time.h. By James Troup.
6248 * getkey.c: Re-enabled the unknown user Id and PK caches and
6249 increased their sizes.
6251 * getkey.c (merge_selfsigs_main): Set expire date and continue
6252 processing even if we found a revoked key.
6253 (merge_selfsigs_subkeys): Ditto.
6255 * packet.h: Add an is_revoked flag to the user_id packet.
6256 * getkey.c (fixup_uidnode): Set that flag here.
6257 (merge_selfsigs_main): Fix so that the latest signature is used to
6258 find the self-signature for an UID.
6259 * parse-packet.c (parse_user_id): Zero out all fields.
6260 * mainproc.c (check_sig_and_print): Print the primary user ID
6261 according the the node flag and then all other non-revoked user IDs.
6262 (is_uid_revoked): Removed; it is now handled by the key selection code.
6264 Changed the year list of all copyright notices.
6266 2001-03-07 Werner Koch <wk@gnupg.org>
6268 * getkey.c (finish_lookup): Print an info message only in verbose mode.
6270 2001-03-05 Werner Koch <wk@gnupg.org>
6272 * packet.h: Replaced sigsubpkt_t value 101 by PRIV_VERIFY_CACHE.
6273 We have never used the old value, so we can do this without any harm.
6274 * parse-packet.c (dump_sig_subpkt): Ditto.
6275 (parse_one_sig_subpkt): Parse that new sub packet.
6276 * build-packet.c (build_sig_subpkt): Removed the old one from the
6278 (delete_sig_subpkt): New.
6279 (build_sig_subpkt): Allow an update of that new subpkt.
6280 * sig-check.c (check_key_signature2): Add verification caching
6281 (cache_selfsig_result): New.
6282 * export.c (do_export_stream): Delete that sig subpkt before exporting.
6283 * import.c (remove_bad_stuff): New.
6284 (import): Apply that function to all imported data
6286 2001-03-03 Werner Koch <wk@gnupg.org>
6288 * getkey.c: Introduced a new lookup context flag "exact" and used
6289 it in all place where we once used primary.
6290 (classify_user_id2): Replaced the old function and add an extra
6291 argument to return whether an exact keyID has been requested.
6292 (key_byname): Removed the unused ctx.primary flag
6293 (get_seckey_byname2): Ditto.
6294 (finish_lookup): Changed debugging output.
6296 2001-03-02 Werner Koch <wk@gnupg.org>
6298 * keylist.c (list_one): Remove the merge key calls.
6300 2001-03-01 Werner Koch <wk@gnupg.org>
6302 * getkey.c (finish_lookup): Don't use it if we no specific usage
6304 (merge_selfsigs_main): fix UID only if we have an signature.
6305 (lookup): Return UNU_PUBKEY etc. instead of NO_PUBKEY if we found
6306 a key but the requested usage does not allow this key.
6307 * import.c (import_one): Take UNU_PUBKEY into account.
6308 * mainproc.c (list_node): Ditto.
6309 * keylist.c (list_keyblock): Ditto.
6310 * keyedit.c (print_and_check_one_sig): Ditto.
6312 2001-02-09 Werner Koch <wk@gnupg.org>
6314 * delkey.c (delete_key): Removed that silly assert which rendered
6315 the whole new stuff meaningless.
6317 2001-02-08 Werner Koch <wk@gnupg.org>
6319 * getkey.c (key_byname): It can happen that we have both, sk and pk
6322 * parse-packet.c (parse_one_sig_subpkt): Add support for
6323 primary_uid and key_flags.
6324 (can_handle_critical): Ditto
6326 * parse-packet.c (parse_encrypted): Fixed listing of pktlen for
6329 * getkey.c: Backported the version of this file from gpg 1.1. this
6330 involved some changes in other files too.
6331 * parse-packet.c (parse_key): Clear req_usage.
6332 * skclist.c (build_sk_list): Use req_usage to pass the usage
6333 information to the lookup function.
6334 * pkclist.c (build_pk_list): Ditto.
6335 * free-packet.c (copy_public_parts_to_secret_key): New.
6336 * keydb.h: Add IS_* macros to check the sig_class.
6337 * misc.c (openpgp_cipher_test_algo): New.
6338 (openpgp_pk_test_algo): New.
6339 (openpgp_pk_algo_usage): New.
6340 (openpgp_md_test_algo): New.
6341 * packet.h: Add a few fields to PKT_{public,secret}_key and
6343 * seckey-cert.c (do_check): Use the new main_keyid field.
6345 2001-02-04 Werner Koch <wk@gnupg.org>
6347 * encr-data.c (decrypt_data): Catch error when we had problems to
6348 parse the encrypted packet. By Timo.
6350 2001-01-29 Werner Koch <wk@gnupg.org>
6352 * g10.c (main): --batch does now set nogreeting.
6354 * delkey.c (do_delete_key): Fixed delete-both functionality.
6356 2001-01-22 Werner Koch <wk@gnupg.org>
6358 * g10.c: New command --delete-secret-and-public-key.
6359 * delkey.c (delete_key): Add new arg allow_both.
6360 (do_delete_key): Move most stuff from above to this new function.
6362 2001-01-12 Werner Koch <wk@gnupg.org>
6364 * passphrase.c (passphrase_to_dek): Use MD5 when IDEA is installed
6366 * mainproc.c (proc_encrypted): Likewise
6368 2001-01-11 Werner Koch <wk@gnupg.org>
6370 * sig-check.c (do_check): Print the signature key expire message
6371 only in verbose mode and added the keyID.
6373 2001-01-09 Werner Koch <wk@gnupg.org>
6375 * status.c, status.h: New status USERID_HINT.
6376 (write_status_text): Replace LF and CR int text by C-escape sequence.
6378 * passphrase.c (passphrase_to_dek): Fixed the NEED_PASSPHRASE
6379 output. It does now always print 2 keyIDs. Emit the new
6382 2001-01-08 Werner Koch <wk@gnupg.org>
6384 * g10.c, options.h: New option --no-expensive-trust-checks.
6385 * keylist.c (list_keyblock): Act on this option.
6387 2001-01-04 Werner Koch <wk@gnupg.org>
6389 * g10.c (main): Set homedir only in the pre-parsing phase and
6390 replace backslashes in the W32 version.
6392 2001-01-03 Werner Koch <wk@gnupg.org>
6394 * status.c, status.h : New status KEY_CREATED
6395 * keygen.c (do_generate_keypair,generate_subkeypair): Emit it.
6397 2000-12-28 Werner Koch <wk@gnupg.org>
6399 * signal.c (got_fatal_signal): Remove lockfiles here because the
6400 atexit stuff does not work due to the use of raise. Suggested by
6402 * gpgv.c (remove_lockfiles): New stub.
6404 2000-12-19 Werner Koch <wk@gnupg.org>
6406 * status.c, status.h (cpr_get_no_help): New.
6407 * keyedit.c (keyedit_menu): Use it here because we have our own
6410 2000-12-18 Werner Koch <wk@gnupg.org>
6412 * mainproc.c (print_failed_pkenc): Don't print the sometimes
6413 confusing message about unavailabe secret key. Renamed ...
6414 (print_pkenc_list): ... to this and introduced failed arg.
6415 (proc_encrypted): Print the failed encryption keys and then
6417 (proc_pubkey_enc): Store also the key we are going to use.
6419 * mainproc.c (check_sig_and_print): Don't list revoked user IDs.
6420 (is_uid_revoked): New.
6422 2000-12-08 Werner Koch <wk@gnupg.org>
6424 * pipemode.c: Made the command work. Currently only for
6425 non-armored detached signatures.
6426 * mainproc.c (release_list): Reset the new pipemode vars.
6427 (add_gpg_control): Handle the control packets for pipemode
6428 * status.c, status.h: New stati {BEGIN,END}_STREAM.
6430 2000-12-07 Werner Koch <wk@gnupg.org>
6432 * g10.c: New option --allow-secret-key-import.
6433 * import.c (import_keys,import_keys_stream): Honor this option.
6434 (import): New arg allow_secret and pass that arg down to ...
6435 (import_secret_one): to this and print a warning if secret key
6436 importing is not allowed.
6438 2000-12-05 Werner Koch <wk@gnupg.org>
6440 * cipher.c (cipher_filter): Moved the end_encryption status ...
6441 * encode.c (encode_simple,encode_crypt): to here
6442 * sign.c (sign_file): and here.
6444 * status.c (mywrite): Removed.
6445 (get_status_string): Removed the LFs from the strings.
6446 (set_status_fd,is_status_enabed,write_status_text,
6447 write_status_buffer): Replaced all mywrite by stdio calls and use
6448 fdopen to create a strem. This is needed to make things smoother
6451 2000-12-04 Werner Koch <wk@gnupg.org>
6453 * import.c (merge_blocks): Increment n_sigs for revocations.
6455 2000-11-30 Werner Koch <wk@gnupg.org>
6457 * g10.c (main): Use iobuf_translate_file_handle for all options
6458 with filehandles as arguments. This is function does some magic
6461 * verify.c (verify_signatures): Add a comment rant about the
6462 detached signature problem.
6463 * mainproc.c (proc_tree): Issue an error if a detached signature
6464 is assumed but a standard one was found.
6465 * plaintext.c (hash_datafiles): Don't fall back to read signature
6467 * openfile.c (open_sigfile): Print verbose message only if the
6468 file could be accessed.
6470 2000-11-24 Werner Koch <wk@gnupg.org>
6472 * passphrase.c [HAVE_DOSISH_SYSTEM]: Disabled all the agent stuff.
6474 2000-11-16 Werner Koch <wk@gnupg.org>
6476 * g10.c: New option --use-agent
6477 * passphrase.c (agent_open,agent_close): New.
6478 (agent_get_passphrase,agent_clear_passphrase): New.
6479 (passphrase_clear_cache): New.
6480 (passphrase_to_dek): Use the agent here.
6481 * seckey-cert.c (do_check): Clear cached passphrases.
6483 2000-11-15 Werner Koch <wk@gnupg.org>
6485 * status.c (write_status_text): Moved the big switch to ...
6486 (get_status_string): ... new function.
6487 (write_status_buffer): New.
6489 * status.c (mywrite): New and replaced all write() by this.
6491 * status.c, status.h: Add 3 status lcodes for notaions and policy.
6492 * mainproc.c (print_notation_data): Do status output of notations.
6494 2000-11-13 Werner Koch <wk@gnupg.org>
6496 * sign.c (clearsign_file): Use LF macro to print linefeed.
6498 2000-11-11 Paul Eggert <eggert@twinsun.com>
6500 Clean up the places in the code that incorrectly use "long" or
6501 "unsigned long" for file offsets. The correct type to use is
6502 "off_t". The difference is important on large-file hosts,
6503 where "off_t" is longer than "long".
6505 * keydb.h (struct keyblock_pos_struct.offset):
6506 Use off_t, not ulong, for file offsets.
6507 * packet.h (dbg_search_packet, dbg_copy_some_packets,
6508 search_packet, copy_some_packets): Likewise.
6509 * parse-packet.c (parse, dbg_search_packet, search_packet,
6510 dbg_copy_some_packets, copy_some_packets): Likewise.
6511 * ringedit.c (keyring_search): Likewise.
6513 * parse-packet.c (parse): Do not use %lu to report file
6514 offsets in error diagnostics; it's not portable.
6515 * ringedit.c (keyring_search): Likewise.
6517 2000-11-09 Werner Koch <wk@gnupg.org>
6519 * g10.c (main): New option --enable-special-filenames.
6521 2000-11-07 Werner Koch <wk@gnupg.org>
6523 * g10.c (main): New command --pipemode.
6526 2000-10-23 Werner Koch <wk@gnupg.org>
6528 * armor.c (armor_filter): Changed output of hdrlines, so that a CR
6529 is emitted for DOS systems.
6531 * keygen.c (read_parameter_file): Add a cast for isspace().
6533 * status.c (myread): Use SIGINT instead of SIGHUP for DOS.
6535 2000-10-19 Werner Koch <wk@gnupg.org>
6537 * g10.c: New option --ignore-crc-error
6538 * armor.c (invalid_crc): New.
6539 (radix64_read): Act on new option.
6541 * openfile.c (try_make_homedir): Klaus Singvogel fixed a stupid
6542 error introduced on Sep 6th.
6544 2000-10-18 Werner Koch <wk@gnupg.org>
6546 * misc.c (print_cipher_algo_note): Don't print the note for AES.
6549 2000-10-16 Werner Koch <wk@gnupg.org>
6551 * mainproc.c (do_proc_packets): Hack to fix the problem that
6552 signatures are not detected when there is a MDC packet but no
6555 * g10.c (print_hashline): New.
6556 (print_mds): Use above func with --with-colons.
6558 * mainproc.c (check_sig_and_print): Detect multiple signatures
6559 and don't verify them.
6561 2000-10-14 Werner Koch <wk@gnupg.org>
6563 * mainproc.c (add_onepass_sig): There is an easier solution to the
6564 error fixed yesterday; just check that we only have onepass
6565 packets. However, the other solution provides an cleaner
6566 interface and opens the path to get access to other information
6567 from the armore headers.
6568 (release_list): Reset some more variables.
6570 2000-10-13 Werner Koch <wk@gnupg.org>
6572 * mainproc.c (add_gpg_control): New.
6573 (do_proc_packets): use it.
6574 (proc_plaintext): Changed logic to detect clearsigns.
6575 (proc_tree): Check the cleartext sig with some new code.
6577 * packet.h: New packet PKT_GPG_CONTROL.
6578 * parse-packet.c (parse_gpg_control): New.
6579 * misc.c (get_session_marker): New.
6580 * armor.c (armor_filter): Replaced the faked 1-pass packet by the
6583 * keyedit.c (keyedit_menu): Allow batchmode with a command_fd.
6584 * status.c (my_read): New.
6585 (do_get_from_fd): use it.
6587 2000-10-12 Werner Koch <wk@gnupg.org>
6589 * keygen.c (keygen_add_std_prefs): Add Rijndael to the prefs.
6591 2000-10-07 Werner Koch <wk@gnupg.org>
6593 * gpgv.c: Add more stubs for ununsed code to make the binary smaller.
6595 Wed Oct 4 15:50:18 CEST 2000 Werner Koch <wk@openit.de>
6597 * sign.c (hash_for): New arg to take packet version in account, changed
6601 * Makefile.am: Rearranged source files so that gpgv can be build with
6602 at least files as possible.
6604 Mon Sep 18 12:13:52 CEST 2000 Werner Koch <wk@openit.de>
6606 * hkp.c (not_implemented): Print a notice for W32
6608 Fri Sep 15 18:40:36 CEST 2000 Werner Koch <wk@openit.de>
6610 * keygen.c (keygen_add_std_prefs): Changed order of preferences to
6611 twofish, cast5, blowfish.
6613 * pkclist.c (algo_available): Removed hack to disable Twofish.
6615 Thu Sep 14 17:45:11 CEST 2000 Werner Koch <wk@openit.de>
6617 * parse-packet.c (dump_sig_subpkt): Dump key flags. Print special
6618 warning in case of faked ARRs.
6620 * getkey.c (finsih_lookup): Hack so that for v4 RSA keys the subkey
6621 is used for encryption.
6623 Thu Sep 14 14:20:38 CEST 2000 Werner Koch <wk@openit.de>
6625 * g10.c (main): Default S2K algorithms are now SHA1 and CAST5 - this
6626 should solve a lot of compatibility problems with other OpenPGP
6627 apps because those algorithms are SHOULD and not optional. The old
6628 way to force it was by using the --openpgp option whith the drawback
6629 that this would disable a couple of workarounds for PGP.
6631 * g10.c (main): Don't set --quite along with --no-tty. By Frank Tobin.
6633 * misc.c (disable_core_dump): Don't display a warning here but a return
6634 a status value and ...
6635 * g10.c (main): ...print warnining here. Suggested by Sam Roberts.
6637 Wed Sep 13 18:12:34 CEST 2000 Werner Koch <wk@openit.de>
6639 * keyedit.c (keyedit_menu): Allow to use "debug" on the secret key.
6641 * ringedit.c (cmp_seckey): Fix for v4 RSA keys.
6642 * seckey-cert.c (do_check): Workaround for PGP 7 bug.
6644 Wed Sep 6 17:55:47 CEST 2000 Werner Koch <wk@openit.de>
6646 * misc.c (print_pubkey_algo_note): Do not print the RSA notice.
6647 * sig-check.c (do_signature_check): Do not emit the RSA status message.
6648 * pubkey-enc.c (get_session_key): Ditto.
6650 * encode.c (encode_simple, encode_crypt): Fix for large files.
6651 * sign.c (sign_file): Ditto.
6653 Wed Sep 6 14:59:09 CEST 2000 Werner Koch <wk@openit.de>
6655 * passphrase.c (hash_passphrase): Removed funny assert. Reported by
6658 * openfile.c (try_make_homedir): Changes for non-Posix systems.
6659 * g10.c (main): Take the default homedir from macro.
6661 * g10.c: The --trusted-key option is back.
6662 * trustdb.c (verify_own_key): Handle this option.
6663 (add_ultimate_key): Moved stuff from verify_own_key to this new func.
6664 (register_trusted_key): New.
6666 Fri Aug 25 16:05:38 CEST 2000 Werner Koch <wk@openit.de>
6668 * parse-packet.c (dump_sig_subpkt): Print info about the ARR.
6670 * openfile.c (overwrite_filep): Always return okay if the file is
6672 (make_outfile_name): Add ".sign" to the list of know extensions.
6673 (open_sigfile): Ditto.
6675 Wed Aug 23 19:52:51 CEST 2000 Werner Koch <wk@openit.de>
6677 * g10.c: New option --allow-freeform-uid. By Jeroen C. van Gelderen.
6678 * keygen.c (ask_user_id): Implemented here.
6680 Fri Aug 4 14:23:05 CEST 2000 Werner Koch <wk@openit.de>
6682 * status.c (do_get_from_fd): Ooops, we used fd instead of opt.command_fd.
6683 Thanks to Michael Tokarev.
6685 Tue Aug 1 20:06:23 CEST 2000 Werner Koch <wk@openit.de>
6687 * g10.c: New opttion --try-all-secrets on suggestion from Matthias Urlichs.
6688 * pubkey-enc.c (get_session_key): Quite easy to implement here.
6690 Thu Jul 27 17:33:04 CEST 2000 Werner Koch <wk@openit.de>
6692 * g10.c: New option --merge-only. Suggested by Brendan O'Dea.
6693 * import.c (import_one): Implemented it here
6694 (import_secret_one): Ditto.
6695 (print_stats): and give some stats.
6697 Thu Jul 27 12:01:00 CEST 2000 Werner Koch <wk@openit.de>
6699 * g10.c: New options --show-session-key and --override-session-key
6700 * pubkey-enc.c (hextobyte): New.
6701 (get_override_session_key): New.
6702 * mainproc.c (proc_pubkey_enc): Add session-key stuff.
6703 * status.h, status.c (STATUS_SESSION_KEY): New.
6705 Thu Jul 27 10:02:38 CEST 2000 Werner Koch <wk@openit.de>
6707 * g10.c (main): Use setmode(O_BINARY) for MSDOS while generating random bytes
6708 (print_mds): Likewise for stdin.
6709 * plaintext.c (handle_plaintext): Likewise for stdout.
6711 Mon Jul 24 10:30:17 CEST 2000 Werner Koch <wk@openit.de>
6713 * keyedit.c (menu_expire): expire date for primary key can be set again.
6715 Wed Jul 19 11:26:43 CEST 2000 Werner Koch <wk@openit.de>
6717 * keylist.c (is_uid_valid): New.
6718 (list_keyblock): Print validity information for all user IDs. Note, this
6719 has to be done at other places too; for now we have only minimal support.
6721 Wed Jul 12 13:32:06 CEST 2000 Werner Koch <wk@openit.de>
6723 * helptext.c, pkclist.c: s/superseeded/superseded/
6725 Mon Jul 10 16:08:57 CEST 2000 Werner Koch <wk@openit.de>
6727 * parse-packet.c (enum_sig_subpkt): Fixed testing on crtitical bit in case
6728 of a NULL buffer. Reported by Peter Marschall.
6730 Wed Jul 5 13:28:45 CEST 2000 Werner Koch <wk@openit.de>
6732 * keyedit.c, keyid.c: Add some _()
6734 * argparse.c: Changed the flag to suppress --version handling to also
6737 Wed Jun 28 11:54:44 CEST 2000 Werner Koch <wk@openit.de>
6739 * armor.c (armor_filter): Set sigclass to 0 in case of non-dash-escaped
6740 clearsig. This makes this mode work again.
6742 * mainproc.c (proc_tree): Fixed handling of one-pass-sig packets in textmode.
6743 Disabled the ugly workaround for PGP 5 - let's see whether thi breaks less
6744 cases. Found by Ted Cabeen.
6746 * options.h (DBG_HASHING): New. All commented md_start_debug are now
6747 controlled by this debug option.
6749 * sign.c (print_status_sig_created): New and called from 2 places.
6751 * keygen.c (gen_rsa): New, but commented.
6752 (ask_algo): Commented support for RSA.
6754 * seckey-cert.c (protect_secret_key): Started to fix the code for v4 RSA
6755 keys - it is not solved yet. However, we have time until, Sep 20th ;)
6757 Wed Jun 14 12:27:09 CEST 2000 Werner Koch <wk@openit.de>
6759 * status.c (init_shm_coprocessing): Changed the sequence of the get,attach
6760 to cope with the changes in newer Linux kernels. This bug has been found
6761 by <dmitri@advantrix.com> who also proposed this solution. Hopefully
6762 this does not break gpg on to many systems.
6764 * cipher.c (write_header): Protect the IV with the MDC too.
6765 * encr-data.c (decrypt_data): Likewise.
6767 Fri Jun 9 10:09:52 CEST 2000 Werner Koch <wk@openit.de>
6769 * g10.c: New options --no-auto-key-retrieve
6770 * options.h (auto_key_retrieve): New.
6771 * mainproc.c (check_sig_and_print): Implemented that.
6773 Wed Jun 7 19:19:09 CEST 2000 Werner Koch <wk@openit.de>
6775 * sig-check.c (do_check): Use EMULATE_MDENCODE also on v4 packets.
6777 Wed Jun 7 17:25:38 CEST 2000 Werner Koch <wk@openit.de>
6779 * cipher.c (write_header): Use plain CFB mode for MDC encrypted packets.
6780 * encr-data.c (decrypt_data): Ditto.
6782 Mon Jun 5 23:41:54 CEST 2000 Werner Koch <wk@openit.de>
6784 * seskey.c (do_encode_md, encode_md_value): Add new arg v3compathack to work
6785 around a bug in old versions.
6786 * sig-check.c (do_check): use the aboved workaround when enabled.
6787 * g10.c: New option --emulate-md-decode-bug
6789 Mon Jun 5 12:37:43 CEST 2000 Werner Koch <wk@openit.de>
6791 * build-packet.c (do_mdc): New.
6792 (do_encrypted_mdc): Changed for the new proposal.
6793 * parse-packet.c (parse_mdc): New.
6794 (parse_encrypted): Fixed for the new proposal.
6795 * packet.h (PKT_MDC): New.
6796 * cipher.c (cipher_filter): Build the MDC packet here.
6797 * g10.c (main): Enable --force-mdc.
6798 * encr-data.c (mdc_decode_filter): Fixed for new MDC method
6800 * options.h(rfc2440): New.
6801 * g10.c (main): Changed the selected values for --openpgp to not include
6802 optional algorithms.
6804 Thu May 18 11:38:54 CEST 2000 Werner Koch <wk@openit.de>
6806 * keyedit.c (keyedit_menu): Add a keyword arg to the prompt.
6808 * status.c, status.h: Added 3 new status tokens.
6809 * status.c (do_get_from_fd): New.
6810 (cpr_enabled,cpr_get,cpr_get_hidden,cpr_kill_prompt,
6811 cpr_get_answer_is_yes,cpr_get_answer_yes_no_quit): Modified to work
6812 with the new function.
6813 * g10.c: Add new option --command-fd.
6815 * status.c (progress_cb): New.
6816 (set_status_fd): Register progress functions
6818 Fri May 12 14:01:20 CEST 2000 Werner Koch <wk@openit.de>
6820 * delkey.c (delete_key): Add 2 new status messages
6821 * status.c, status.h (STATUS_DELETE_PROBLEM): New.
6823 Fixed years of copyright in all source files.
6825 Mon May 1 17:08:14 CEST 2000 Werner Koch <wk@openit.de>
6827 * trustdb.c (propagate_validity): Fixed the bug that only one uid
6828 gets fully trusted even when all are signed by an ultimate key.
6830 Mon May 1 15:38:04 CEST 2000 Werner Koch <wk@openit.de>
6832 * getkey.c (key_byname): Always returned a defined context. Fixed
6833 a segv for invalid user id specifications. Reported by Walter Koch.
6835 * getkey.c (get_user_id): I18ned "no user id" string. By Walter.
6837 * pkclist.c (do_show_revocation_reason): Typo fixes.
6838 * helptext.c: Ditto.
6840 * armor.c (armor_filter): Fixed some CRLF issues. By Mike McEwan.
6842 Fri Apr 14 19:37:08 CEST 2000 Werner Koch <wk@openit.de>
6844 * pkclist.c (do_show_revocation_reason): New.
6845 (show_revocation_reason): New and called at various places.
6847 * g10.c (main): Fixed small typo.
6849 * pkclist.c (do_we_trust): Act on always_trust but not for revoked
6850 keys. Suggested by Chip Salzenberg.
6852 * g10.c: New option --lock-never.
6854 * ringedit.c (get_writable_keyblock_file): New.
6855 * keygen.c (do_generate_keypair): Use this instead of the hardwired one.
6857 * keygen.c (ask_user_id): Check that the email address is in the
6858 correct field. Suggested by Christian Kurz.
6860 Mon Apr 10 13:34:19 CEST 2000 Werner Koch <wk@openit.de>
6862 * keyedit.c (show_key_with_all_names): s/sbb/ssb/
6864 Tue Mar 28 14:26:58 CEST 2000 Werner Koch <wk@openit.de>
6866 * trustdb.c (verify_own_keys): Do not print warning about unprotected
6867 key when in quiet mode.
6869 Wed Mar 22 13:50:24 CET 2000 Werner Koch <wk@openit.de>
6871 * mainproc.c (print_userid): Do UTF8 conversion before printing.
6872 * import.c (import_one): Ditto.
6873 (import_secret_one): Ditto.
6874 (delete_inv_parts): Ditto.
6876 Thu Mar 16 16:20:23 CET 2000 Werner Koch <wk@openit.de>
6878 * keylist.c (print_key_data): Handle a NULL pk gracefully.
6880 * getkey.c (merge_one_pk_and_selfsig): Fixed silly code for
6881 getting the primary keys keyID but kept using the one from the
6883 * pubkey-enc.c (get_it): Print a note for expired subkeys.
6885 * getkey.c (has_expired): New.
6886 (subkeys_expiretime): New.
6887 (finish_lookup): Check for expired subkeys needed for encryption.
6888 (merge_keys_and_selfsig): Fixed expiration date merging for subkeys.
6890 * keylist.c (list_keyblock): Print expiration time for "sub".
6891 (list_one): Add missing merging for public keys.
6892 * mainproc.c (list_node): Ditto.
6894 2000-03-14 13:49:38 Werner Koch (wk@habibti.openit.de)
6896 * keygen.c (keyedit_menu): Do not allow to use certain commands
6897 while the secret key is selected.
6899 2000-03-09 12:53:09 Werner Koch (wk@habibti.openit.de)
6901 * keygen.c (ask_expire_interval): Movede parsig to ...
6902 (parse_expire_string): ... this new function. And some new control
6904 (proc_parameter_file): Add expire date parsing.
6905 (do_generate_keypair): Allow the use of specified output files.
6907 2000-03-08 10:38:38 Werner Koch (wk@habibti.openit.de)
6909 * keygen.c (ask_algo): Removed is_v4 return value and the commented
6910 code to create Elg keys in a v3 packet. Removed the rounding
6912 (do_create): Likewise removed arg v4_packet.
6913 (gen_elg): Likewise removed arg version. Now rounding keysizes here.
6914 (gen_dsa): Rounding keysize now here.
6915 (release_parameter_list): New
6916 (get_parameter*): New.
6917 (proc_parameter_file): New.
6918 (read_parameter_file): New.
6919 (generate_keypair): Splitted. Now uses read_parameter_file when in
6920 batch mode. Additional argument to specify a parameter file.
6921 (do_generate_keypair): Main bulk of above fucntion and uses the
6923 (do_create): Don't print long notice in batch mode.
6924 * g10.c (main): Allow batched key generation.
6926 Thu Mar 2 15:37:46 CET 2000 Werner Koch <wk@gnupg.de>
6928 * pubkey-enc.c (get_it): Print a note about unknown cipher algos.
6930 * g10.c (opts): Add a note to the help listing about the man page
6931 and removed some options from the help listing.
6933 * keyedit.c (print_and_check_one_sig): Use a new function to truncate
6934 the output of the user ID. Suggested by Jan-Benedict Glaw.
6936 Wed Feb 23 10:07:57 CET 2000 Werner Koch <wk@gnupg.de>
6938 * helptext.c: typo fix.
6940 Thu Feb 17 13:39:32 CET 2000 Werner Koch <wk@gnupg.de>
6942 * revoke.c: Removed a bunch of commented code.
6944 * packet.h (SIGSUBPKT_REVOC_REASON): New.
6945 * build-packet.c (build_sig_subpkt): Support new sub packet.
6946 * parse-packet.c (parse_one_sig_subpkt): Ditto.
6947 (dump_sig_subpkt): Ditto.
6948 * revoke.c (ask_revocation_reason): New.
6949 (release_revocation_reason_info): New.
6950 (revocation_reason_build_cb): New.
6951 (gen_revoke): Ask for reason.
6952 * main.h (struct revocation_reason_info): Add declaration.
6953 * keyedit.c (menu_revsig): Add support for revocation reason.
6954 (menu_revkey): Ditto.
6955 (sign_uid_mk_attrib): Renamed to ...
6956 (sign_mk_attrib): ... this, made static and add support for reasons.
6958 Tue Feb 15 08:48:13 CET 2000 Werner Koch <wk@gnupg.de>
6960 * build-packet.c (build_packet): Fixed fixing of old comment packets.
6962 * import.c (import_keys): Fixed importing from stdin when called with
6963 nnames set to zero as it normally happens.
6965 Mon Feb 14 14:30:20 CET 2000 Werner Koch <wk@gnupg.de>
6967 * sig-check.c (check_key_signature2): Add new arg r_expired.
6968 (do_signature_check): New arg to pass it down to ...
6969 (do_check): New arg r-expire which is set when the signature
6971 * trustdb.c (check_sig_record): Set SIGF_EXPIRED flag and set
6972 the expiretime to zero so that thi signature will not be checked
6975 Fri Feb 11 17:44:40 CET 2000 Werner Koch <wk@gnupg.de>
6977 * g10.c (g10_exit): Update the random seed_file.
6978 (main): Set the random seed file. New option --no-random-seed-file.
6980 Thu Feb 10 17:39:44 CET 2000 Werner Koch <wk@gnupg.de>
6982 * keyedit.c (menu_expire): Fixed segv due to unitialized sub_pk.
6985 Thu Feb 10 11:39:41 CET 2000 Werner Koch <wk@gnupg.de>
6987 * keylist.c (list_keyblock): Don't print warnings in the middle of
6988 regulat output lines. By Rémi.
6990 * sig-check.c: Include options.h
6992 Wed Feb 9 15:33:44 CET 2000 Werner Koch <wk@gnupg.de>
6994 * gpg.c: New option --ignore-time-conflict
6995 * sig-check.c (do_check): Implemented this option.
6996 * trustdb.c (check_trust): Ditto.
6997 * sign.c (do_sign): Ditto.
6998 * keygen.c (generate_subkeypair): Ditto.
7000 * encode.c (encode_simple): use iobuf_cancel after open failure.
7003 Fri Jan 14 18:32:01 CET 2000 Werner Koch <wk@gnupg.de>
7005 * packet.h (STRING2KEY): Changed mode from byte to int.
7006 * parse-packet.c (parse_key): Add the special GNU protection stuff
7007 * build-packet.c (so_secret_key): Ditto.
7008 * seckey-cert.c (do_check): Ditto.
7009 * keyedit.c (change_passphrase): Ditto.
7010 * export.c (export_secsubkeys): New.
7011 (do_export_stream): Hack to export the primary key using mode 1001.
7012 * g10.c: New command --export-secret-subkeys
7014 Thu Jan 13 19:31:58 CET 2000 Werner Koch <wk@gnupg.de>
7016 * armor.c (is_armored): Check for 1-pass-sig packets. Reported by
7017 David Hallinan <hallinan@rtd.com>.
7018 (armor_filter): Replaced one LF by the LF macro. Reported by
7019 Wolfgang Redtenbacher.
7021 Wed Jan 5 11:51:17 CET 2000 Werner Koch <wk@gnupg.de>
7023 * g10.c (main): Reset new global flag opt.pgp2_workarounds
7024 when --openpgp is used.
7025 * mainproc.c (proc_plaintext): Do the PGP2,5 workarounds only
7026 when the global flag is set.
7028 * textfilter.c (copy_clearsig_text): Ditto.
7029 * armor.c (armor_filter): Ditto.
7031 * g10.c: New option --list-only
7032 * mainproc.c (proc_tree): Don't do it if opt.list_only is active.
7033 (proc_pubkey_enc): Implement option.
7035 * status.h, status.c ({BEGIN,END}_{EN,DE}CRYPTION): New.
7036 * cipher.c (cipher_filter): New status outputs.
7037 * mainproc.c (proc_encrypted): New status outputs.
7039 Fri Dec 31 14:08:15 CET 1999 Werner Koch <wk@gnupg.de>
7041 * armor.c (armor_filter): Made the "Comment:" header translatable.
7043 * hkp.c (hkp_import): Make sure that the program does not return
7044 success when there is a connection problem. Reported by Phillip Jones.
7046 Sun Dec 19 15:22:26 CET 1999 Werner Koch <wk@gnupg.de>
7048 * armor.c (LF): Use this new macro at all places where a line LF
7049 is needed. This way DOSish textfiles should be created when the
7050 input data is also in dos mode.
7051 * sign.c (LF): Ditto.
7052 * textfilter.c (LF): Ditto.
7053 (copy_clearsig_text): Disabled the forcing of CR,LF sequences
7056 * plaintext.c (handle_plaintext): Fixes for line endings on DOS.
7057 and react on a LF in cleartext.
7058 * armor.c (fake_packet): Restore the original line ending after
7059 removing trailing spaces.
7061 * signal.c (got_fatal_signal): DOS fix.
7063 Thu Dec 16 10:07:58 CET 1999 Werner Koch <wk@gnupg.de>
7065 * mainproc.c (print_failed_pkenc): Fix for unknown algorithm.
7066 Found by fygrave@epr0.org.
7068 Thu Dec 9 10:31:05 CET 1999 Werner Koch <wk@gnupg.de>
7070 * hkp.c: i18n the strings.
7072 Sat Dec 4 15:32:20 CET 1999 Werner Koch <wk@gnupg.de>
7074 * trustdb.c (verify_key): Shortcut for ultimately trusted keys.
7076 Sat Dec 4 12:30:28 CET 1999 Werner Koch <wk@gnupg.de>
7078 * pkclist.c (build_pk_list): Validate the trust using the namehash
7079 if this one has been set by the key lookup.
7081 * g10.c: Add --delete-secret-key to the help page.
7083 * openfile.c (copy_options_file): Made static.
7084 (try_make_homedir): New.
7085 * ringedit.c (add_keyblock_resource): Use the try_make_hoemdir logic.
7086 * tdbio.c (tdbio_set_dbname): Likewise.
7088 * keygen.c (generate_user_id): Use m_alloc_clear() here. We should
7089 better use an allocation function specific to the user_id packet.
7091 * keygen.c (keygen_add_std_prefs): Changed symmetric preferences
7092 to include Blowfish again. This is due to it's better speed compared
7095 * g10.c (strusage): Print the home directory.
7097 * armor.c (armor_filter): Take action on the cancel control msg.
7098 * filter.h (armor_filter_context_t): Add cancel flag.
7100 Mon Nov 29 21:52:11 CET 1999 Werner Koch <wk@gnupg.de>
7102 * g10.c: New option --fast-list-mode ..
7103 * keylist.c (list_keyblock): .. and implemented.
7104 * mainproc.c (list_node): Ditto.
7106 * import.c (mark_non_selfsigned_uids_valid): Fixed the case that there
7107 is a uid without any packet following.
7109 Mon Nov 22 11:14:53 CET 1999 Werner Koch <wk@gnupg.de>
7111 * mainproc.c (proc_plaintext): Never enable the hash processing
7112 when skip_verify is active.
7114 * armor.c (parse_header_line): Stop parsing on a WS line too.
7115 Suggested by Aric Cyr.
7117 * tdbdump.c (HEXTOBIN): Changed the name of the argument, so that
7118 traditional cpp don't mess up the macros. Suggested by Jos Backus.
7120 * mainproc.c (list_node): Print the PK algo in the --with-colon mode.
7121 * keylist.c (list_keyblock): Ditto.
7123 * signal.c (got_fatal_signal): Found the reason why exit(8) did not
7124 work - it is better to set the disposition back to default before
7125 raising the signal. Print the notice on stderr always.
7127 Fri Nov 12 20:33:19 CET 1999 Werner Koch <wk@gnupg.de>
7129 * g10.c (make_username): Swapped the logic.
7130 * keylist.c (public_key_list): Now takes a STRLIST as arg and moved
7131 the creation ot this list to the caller, so that he can copy with
7132 UTF-conversion of user IDs. Changed all callers.
7133 (secret_key_list): Likewise.
7135 * getkey.c (get_user_id_string_native): New and ...
7136 * encode.c (write_pubkey_enc_from_list): ... use it here.
7138 * pubring.asc: Updated.
7140 * packet.h (PKT_PHOTO_ID): New.
7141 * parse-packet.c (parse_photo_id): New.
7142 * build-packet.c (do_user_id: Handle photo IDs.
7143 (build_packet): Change CTB for photo IDs
7144 * free-packet.c (free_user_id): Release memory used for photo IDs
7145 * sig-check.c (hash_uid_node): Handle photo IDs too.
7146 * trustdb.c (print_uid_from_keyblock): Hash photo ID.
7147 (make_uid_records): Ditto.
7148 * getkey.c (find_by_name): Ditto.
7149 * keyedit.c (show_prefs): Ditto.
7150 * keylist.c (list_keyblock): Ditto.
7152 Thu Oct 28 16:08:20 CEST 1999 Werner Koch <wk@gnupg.de>
7154 * keygen.c (ask_expire_interval): Print a warning for systems
7155 with a signed 32 time_t if the exiration time is beyoind 2038.
7157 Fri Oct 8 20:40:50 CEST 1999 Werner Koch <wk@gnupg.de>
7159 * ringedit.c (enum_keyblocks): The last fix way really stupid;
7160 reverted and set rt to Unknown.
7162 Fri Oct 8 20:32:01 CEST 1999 Werner Koch <wk@gnupg.de>
7164 * ringedit.c (enum_keyblocks): Zero the entire kbpos out on open.
7166 * g10.c (oEntropyDLL): Removed option.
7167 (main): Made the warning on development versions more verbose.
7169 * g10.c (oHonorHttpProxy): New option.
7170 * hkp.c (hkp_ask_import,hkp_export): Implement this option.
7171 * options.skel: Enable this option for new installations
7173 Mon Oct 4 21:23:04 CEST 1999 Werner Koch <wk@gnupg.de>
7175 * import.c (import_keys): Changed calling interface, adjusted caller.
7176 (import): Moved printing of stats out ...
7177 (print_stats): New. ... to here.
7178 (import_keys_stream): Call stats print here.
7179 (import_keys): Print stats as totals for all files.
7181 * tdbio.h (DIRF_NEWKEYS): New
7182 * tdbio.c (tdbio_dump_record): Print the new flag.
7183 * trustdb.c (check_trust_record): New arg sigs_only. Adapted all
7185 (do_update_trust_record): Removed recheck arg and add a new sigs_only
7186 do we can later improve on the performance. Changed all callers too.
7187 (check_trustdb): Evalutate the new flag and add a status output.
7188 Do a check when the dir record has not been checked.
7189 (build_cert_tree): Evaluate the new flag.
7190 (check_trust): Ditto. Do a trust_record check, when the dir record
7191 is not marked as checked.
7192 (mark_fresh_keys): New.
7193 (clear_lid_table): New.
7194 (sync_trustdb): New.
7195 * import.c (import_keys): Call sync_trustdb() after processing.
7196 (import_keys_stream): Ditto.
7197 * tdbdump.c (import_ownertrust): Ditto.
7199 * import.c (import_revoke_cert): Notify the trust DB.
7200 (do_update_trust_record): Use |= to set the REVOKED bit and not &=;
7201 shame on me for this bad copy+paste introduced bug.
7202 (do_we_trust): Add trustmask to allow revoked key override to work.
7203 Chnaged are to allow return of a mofified trustlevel. Adapted the
7206 * g10.c: New options --emulate-3des-s2k-bug
7207 * passphrase.c (hash_passphrase): Implemented above.
7209 * mainproc.c (proc_tree): Check for standalone signatures.
7210 (do_check_sig): Print a notice for a standalone revocation
7211 (check_sig_and_print): Do not print an error for unchecked standalone
7214 Tue Sep 28 20:54:37 CEST 1999 Werner Koch <wk@gnupg.de>
7216 * encode.c (encode_simple): Use new CTB when we don't have the
7217 length of the file. This is somewhat strange as the comment above
7218 indicates that this part is actually fixed for PGP 5 - maybe I simply
7219 lost the source line, tsss.
7221 * armor.c (armor_filter): Set a flag if no OpenPGP data has been found.
7222 * verify.c (verify_signatures): Add an error helptext.
7224 Thu Sep 23 19:24:30 CEST 1999 Werner Koch <wk@isil.d.shuttle.de>
7226 * openfile.c (open_outfile): Fixed the 8dot3 handling.
7228 * passphrase.c (passphrase_to_dek): Print uid using utf8 func.
7229 * delkey.c (delete_key): Ditto.
7230 * pkclist.c (show_paths,do_edit_ownertrust,do_we_trust): Ditto
7231 (do_we_trust_pre): Ditto.
7232 * trustdb.c (print_user_id,check_uidsigs): Ditto.
7233 * revoke.c (gen_revoke,ask_revoke_sig): Ditto.
7235 Thu Sep 23 09:52:58 CEST 1999 Werner Koch <wk@isil.d.shuttle.de>
7237 * verify.c (print_file_status): New.
7238 (verify_one_file): Moved status print to th new fnc. Add error status.
7239 * status.c, status.h (STATUS_FILE_ERROR): New
7241 Wed Sep 22 10:14:17 CEST 1999 Werner Koch <wk@isil.d.shuttle.de>
7243 * openfile.c (make_outfile_name): Use case-insenstive compare for
7244 DOS systems. Add ".pgp" to the list of know extensions.
7245 (open_outfile): For DOS systems try to replace the suffiy instead of
7248 * status.c, status.h: Add STATUS_FILE_{START,DONE}.
7249 * verify.c (verify_one_file): Emit these new stati.
7251 * sign.c (clearsign_file): Avoid duplicated Entries in the "Hash:"
7252 line. Those headers are now only _not_ printed when there are
7253 only old-style keys _and_ all hashs are MD5.
7255 Mon Sep 20 12:24:41 CEST 1999 Werner Koch <wk@isil.d.shuttle.de>
7258 * verify.c (verify_files, ferify_one_file): New.
7259 * g10.c: New command --verify-files
7261 Fri Sep 17 12:56:42 CEST 1999 Werner Koch <wk@isil.d.shuttle.de>
7263 * g10.c: Add UK spelling as alias for armor options ;-)
7265 * import.c (append_uid): Fixed a SEGV when there is no selfsig and
7267 (merge_sigs): Ditto. Removed the assertion.
7269 Wed Sep 15 16:22:17 CEST 1999 Werner Koch <wk@isil.d.shuttle.de>
7271 * g10.c: New option --entropy-dll-name
7273 Mon Sep 13 10:51:29 CEST 1999 Werner Koch <wk@isil.d.shuttle.de>
7275 * signal.c (got_fatal_signal): Print message using write(2) and
7276 only for development versions.
7278 Mon Sep 6 19:59:08 CEST 1999 Werner Koch <wk@isil.d.shuttle.de>
7280 * tdbio.c (tdbio_set_dbname): Use mkdir macro
7281 * ringedit.c (add_keyblock_resource): Ditto.
7283 Fri Sep 3 10:04:45 CEST 1999 Werner Koch <wk@isil.d.shuttle.de>
7285 * pkclist.c (build_pk_list): Skip keys set with --encrypt-to also
7286 when asking for a key.
7288 * plaintext.c (handle_plaintext): Make sure that we don't read a
7289 second EOF in the read loop for partial length packets.
7291 * mainproc.c (check_sig_and_print): print user ID as utf-8.
7293 Thu Sep 2 16:40:55 CEST 1999 Werner Koch <wk@isil.d.shuttle.de>
7295 * import.c (merge_blocks): First add new subkeys, then merge subkey
7297 (merge_sigs): Don't merge subkey signatures here.
7299 Wed Sep 1 15:30:44 CEST 1999 Werner Koch <wk@isil.d.shuttle.de>
7301 * keygen.c (ask_expire_interval): Fixed bug related to cpr_xx (tnx
7302 Francis J. Lacoste).
7304 Tue Aug 31 17:20:44 CEST 1999 Werner Koch <wk@isil.d.shuttle.de>
7306 * plaintext.c (do_hash): Hash CR,LF for a single CR.
7307 (ask_for_detached_datafile): Changed arguments to be closer to
7308 those of hash_datafiles and cleanup the code a bit.
7309 * mainproc.c (proc_tree): Workaround for pgp5 textmode detached
7310 signatures. Changed behavior of asking for data file to be the same
7311 as with provided data files.
7313 * keylist.c (list_keyblock): Use UTF8 print functions.
7315 Mon Aug 30 20:38:33 CEST 1999 Werner Koch <wk@isil.d.shuttle.de>
7317 * import.c (chk_self_sigs): some s/log_error/log_info/ so that gpg
7318 does not return an error if a key has some invalid packets.
7320 * helptext.c: Fixed some typos and changed the way the
7321 translation works. The english text is now the keyword for gettext
7322 and not anymore the keyword supplied to the function. Done after
7323 some discussion with Walter who thinks this is much easier for the
7326 * misc.c (disable_core_dumps): Don't do it for DOSish systems.
7328 * signal.c (signal_name): Bounds check on signum.
7330 Wed Aug 4 10:34:18 CEST 1999 Werner Koch <wk@isil.d.shuttle.de>
7332 * pubring.asc: Updated.
7334 * pkclist.c (do_we_trust_pre,check_signatures_trust): Do not print
7335 the warning about --always_trust when --quiet is used.
7337 * pkclist.c (fpr_info): New and called at several places.
7339 * parse-packet.c (dump_sig_subpkt): List revocation key contents.
7341 Mon Jul 26 09:34:46 CEST 1999 Werner Koch <wk@isil.d.shuttle.de>
7343 * pkclist.c (build_pk_list): Fixed typo in format string.
7345 * trustdb.c (create_shadow_dir): Don't translate the error string.
7347 * g10.c (main): Fixed spelling of user-id.
7348 * getkey.c (find_by_name_pk,find_by_name_sk,
7349 find_by_keyid,find_by_keyid_sk): Ditto and translate it.
7350 * import.c (mark_non_selfsigned_uids_valid,delete_inv_parts): Ditto.
7353 Mon Jul 26 01:01:39 CEST 1999 Michael Roth <mroth@nessie.de>
7355 * g10.c, options.h: New options --no-literal and --set-filesize
7357 * encode.c (encode_simple, encode_crypt): Support for the options
7358 --no-literal and --set-filesize.
7360 * sign.c (sign_file): ditto.
7362 Fri Jul 23 13:53:03 CEST 1999 Werner Koch <wk@isil.d.shuttle.de>
7365 * ringedit.c (enum_keyblocks): Removed annoying error message in cases
7366 when we have no keyring at all to enum.
7368 * getkey.c (classify_user_id): Rewrote to relax the recognition of
7369 keyIDs and fingerprints (Michael).
7371 * mainproc.c (check_sig_and_print): Print status NO_PUBKEY.
7372 (print_failed_pkenc): Print status NO_SECKEY.
7374 * import.c (mark_non_selfsigned_uids_valid): New.
7375 * g10.c: New option --allow-non-selfsigned-uid.
7377 * pkclist.c (print_fpr): New.
7378 (do_we_trust_pre): Print the fpr before asking whether to use the key
7380 (do_edit_ownertrust): Likewise.
7382 Thu Jul 22 20:03:03 CEST 1999 Werner Koch <wk@isil.d.shuttle.de>
7385 * ringedit.c (enum_keyblocks): Removed annoying error message in cases
7386 when we have no keyring at all to enum.
7388 * getkey.c (classify_user_id): Rewrote to relax the recognition of
7389 keyIDs and fingerprints (Michael).
7391 * mainproc.c (check_sig_and_print): Print status NO_PUBKEY.
7392 (print_failed_pkenc): Print status NO_SECKEY.
7394 * import.c (mark_non_selfsigned_uids_valid): New.
7395 * g10.c: New option --allow-non-selfsigned-uid.
7397 Thu Jul 15 10:15:35 CEST 1999 Werner Koch <wk@isil.d.shuttle.de>
7399 * g10.c: New options --disable-{cipher,pubkey}-algo.
7401 Wed Jul 14 19:42:08 CEST 1999 Werner Koch <wk@isil.d.shuttle.de>
7403 * status.h (STATUS_IMPORTED): New.
7404 * import.c (import): Print some status information (Holger Schurig).
7406 * g10.c (main): Make --no-greeting work again. Add a warning when
7407 --force-mds is used.
7409 Tue Jul 13 17:39:25 CEST 1999 Werner Koch <wk@isil.d.shuttle.de>
7411 * pkclist.c (do_edit_ownertrust): Changed the way help works.
7412 (build_pk_list): Implemented default recipient stuff.
7413 * g10.c: New options --default-recipient[-self]
7414 (main): Suppress greeting in most cases, entering a passphrase or
7415 a missing value is not considered to be interactive use.
7416 Merged --print-md and --print-mds; the latter is now obsolete.
7417 Changed the way --gen-random works and documented it.
7418 Changed the way --gen-prime works and add a man entry.
7419 * g10.c (MAINTAINER_OPTIONS): Removed.
7421 Mon Jul 12 18:45:57 CEST 1999 Werner Koch <wk@isil.d.shuttle.de>
7423 * keyedit.c (keyedit_menu): Add arg sign_mode and changed callers
7424 * g10.c (main): New command --lsign-key.
7426 Mon Jul 12 14:55:34 CEST 1999 Werner Koch <wk@isil.d.shuttle.de>
7428 * mainproc.c (kidlist_item): New.
7429 (release_list): Release failed pk-enc-list.
7430 (print_failed_pkenc): New
7431 (proc_encrypted): Print info about failed PK enc.
7433 * openfile.c (make_outfile_name): s/error/info/
7435 * passphrase.c (passphrase_to_dek): Return an empty passphrase when
7436 in batch mode and don't make the warning message fatal
7437 * seckey-cert.c (check_secret_key): Try only once when in batch mode.
7439 * g10.c (make_username): New.
7441 Thu Jul 8 16:21:27 CEST 1999 Werner Koch <wk@isil.d.shuttle.de>
7444 * packet.h (PKT_ring_trust): New
7445 * parse-packet.c (parse_trust): Store trust value
7446 * build-packet (build_packet): Ignore ring trust packets.
7447 * mainproc.c (add_ring_trust): New.
7448 (list_node): Print "rtv" records.
7449 * g10.c: New option --with-fingerprint.
7451 * trustdb.c (verify_own_keys): Don't insert if we are dry running
7452 (check_trust): Ditto.
7454 Wed Jul 7 13:08:40 CEST 1999 Werner Koch <wk@isil.d.shuttle.de>
7456 * Makefile.am: Support for libtool.
7458 * keygen.c (ask_expire_interval): Hack to allow for an expire date.
7460 * trustdb.c (do_update_trust_record,update_trust_record): Splitted.
7461 (check_trust_record): New.
7462 (check_trust,build_cert_tree): Check the dir record as needed.
7463 (upd_pref_record): Removed.
7464 (make_pref_record): New.
7465 (propagate_validity): Stop as soon as we have enough validity.
7467 * tbdio.c (MAX_CACHE_ENTRIES_HARD): Increased the limit.
7470 Fri Jul 2 11:45:54 CEST 1999 Werner Koch <wk@isil.d.shuttle.de>
7472 * g10.c (g10_exit): Dump random stats.
7474 * sig-check.c (check_key_signature,check_key_signature2): Enhanced
7475 version and wrapper for old function.
7476 (do_signature_check,signature_check): Ditto.
7478 Thu Jul 1 12:47:31 CEST 1999 Werner Koch <wk@isil.d.shuttle.de>
7481 * keyedit.c (show_key_with_all_names): Print a notice for disabled keys.
7482 (enable_disable_keys): Add functionality
7483 * pkclist.c (edit_ownertrust): preserve disabled state.
7484 (build_pk_list): Skip disabled keys.
7485 * trustdb.c (upd_one_ownertrust): Ditto.
7486 (build_cert_tree): Mask the ownertrust.
7487 (trust_letter): Mask the value.
7488 (do_check): Take disabled flag into account.
7490 * passphrase.c (passphrase_to_dek): Add a pubkey_algo arg and changed
7493 * g10.c (utf8_strings): 2 new options.
7495 * trustdb.c (insert_trust_record_by_pk): New, replaces the next one.
7496 (insert_trust_record): Now takes a keyblock as arg. Changed all
7497 callers to use the appropritae function.
7499 * openfile.c (ask_outfile_name): New.
7500 * plaintext.c (handle_plaintext): Ask for filename if there is
7501 no valid syntax. Don't use fname varbatim but filter it.
7503 Tue Jun 29 21:44:25 CEST 1999 Werner Koch <wk@isil.d.shuttle.de>
7506 * trustdb.h (TRUST_FLAG_DISABLED): New.
7508 * status.c (USE_CAPABILITIES): Capabilities support (Remi).
7510 * tdbio.c : Added new fields to the DIR record.
7511 (tdbio_write_record): Fixed the update of the hash tables.
7512 (tdbio_delete_record): Drop the record from the hash tables.
7513 (drop_from_hashtbl): New.
7515 * status.c (cpr_get): Special online help mode.
7516 * helptext.c ("keyedit.cmd"): Removed.
7517 * keyedit.c (keyedit_menu): Use only help system.
7518 (enable_disable_key): New bit doies not yet work.
7520 Sat Jun 26 12:15:59 CEST 1999 Werner Koch <wk@isil.d.shuttle.de>
7523 * dearmor.c (enarmor_file): Fixed comment string.
7524 * tdbdump.c (export_ownertrust): Text fix.
7525 * tbio.c (tdbio_invalid): Ditto.
7527 * parse-packet.c (parse_key): Made temp buffer larger.
7529 * Makefile.am (install-data-local): Add missing backslashes
7531 Tue Jun 15 12:21:08 CEST 1999 Werner Koch <wk@isil.d.shuttle.de>
7533 * g10.c (main): Made iterated+salted the default S2K method.
7535 * Makefile.am (install-data-local): Use DESTDIR.
7537 * passphrase.c (passphrase_to_dek): Emit missing-passphrase while in
7540 * parse-packet.c (parse_pubkeyenc): Fixed a SEGV.
7542 Mon Jun 14 21:18:54 CEST 1999 Michael Roth <mroth@nessie.de>
7544 * g10.c: New options --openpgp, --no-tty, --emit-version,
7545 --default-comment and --lock-multiple
7547 Thu Jun 10 14:18:23 CEST 1999 Werner Koch <wk@isil.d.shuttle.de>
7549 * free-packet.c (free_encrypted): Fixed EOF case (Remi).
7550 (free_plaintext): Ditto.
7552 * helptext.c (keyedit.delsig.unknown): New (Remi).
7553 * keyedit.c (print_and_check_one_sig): Add arg print_without_key and
7554 changed all callers to make use of it (Remi):
7556 Tue Jun 8 13:36:25 CEST 1999 Werner Koch <wk@isil.d.shuttle.de>
7558 * keylist.c (print_key_data): New and called elsewhere.
7559 * g10.c: New option --with-key-data
7561 Wed Jun 2 14:17:19 CEST 1999 Werner Koch <wk@isil.d.shuttle.de>
7563 * mainproc.c (proc_tree): Yet another bad hack to cope with
7564 broken pgp2 created detached messages in textmode.
7566 Tue Jun 1 16:01:46 CEST 1999 Werner Koch <wk@isil.d.shuttle.de>
7568 * openfile.c (make_outfile_name): New.
7569 * plaintext.c (handle_plaintext): Outputfile is now the inputfile
7571 * g10.c: New option --use-embedded-filename
7573 Mon May 31 19:41:10 CEST 1999 Werner Koch <wk@isil.d.shuttle.de>
7575 * g10.c (main): Fix for SHM init (Michael).
7577 * compress.c, encr-data.c, mdfilter.c,
7578 plaintext.c, free-packet.c: Speed patches (Rémi).
7580 Thu May 27 09:40:55 CEST 1999 Werner Koch <wk@isil.d.shuttle.de>
7582 * status.c (cpr_get_answer_yes_no_quit): New.
7583 * keyedit.c (menu_delsig): New.
7584 (check_all_keysigs): Splitted.
7585 (print_and_check_one_sig): New.
7587 Wed May 26 14:36:29 CEST 1999 Werner Koch <wk@isil.d.shuttle.de>
7589 * build-packet.c (build_sig_subpkt): Support large packets.
7590 * parse-packet.c (enum_sig_subpkt): Replaces parse_sig_subpkt.
7591 * mainproc.c (print_notation_data): Print all notation packets.
7592 * g10.c (add_notation_data): Add a way to specify the critical flag.
7593 (main): Add option --set-policy-url.
7594 (check_policy_url): Basic checks.
7595 * sign.c (mk_notation_and_policy): Replaces mk_notation.
7597 * parse-packet.c (can_handle_critical): Moved decision whether we can
7598 handle critical subpacket to an extra function.
7600 Tue May 25 19:50:32 CEST 1999 Werner Koch <wk@isil.d.shuttle.de>
7602 * sign.c (sign_file): Always use compression algo 1 for signed
7603 onyl file becuase we can´ be sure the the verifier supports other
7606 * build-packet.c (build_sig_subpkt): Support for notation data.
7607 * sign.c (sign_file,clearsign_file,make_keysig_packet): Ditto.
7609 * g10.c (add_notation_data): New and add option -N
7610 * mainproc.c (print_notation_data): New.
7611 (check_sig_and_print): Print any notation data of the signed text.
7613 Sun May 23 14:20:22 CEST 1999 Werner Koch <wk@isil.d.shuttle.de>
7615 * pkclist.c (check_signatures_trust): Print a warning and return
7616 immediateley if opt.always_trust is true.
7618 * g10.c (main): Corrected handling of no-default-keyring
7620 * pkclist.c (algo_available): Disable Twofish until we have settled
7623 * hkp.c: Disable everything for mingw32
7625 Sat May 22 22:47:26 CEST 1999 Werner Koch <wk@isil.d.shuttle.de>
7627 * mainproc.c (check_sig_and_print): Add sig creation time to the
7628 VALIDSIG status output. Add more info to the ERRSIG output.
7629 * sig-check.c (signature_check): Add sig time after epoch to SIG_ID.
7631 * import.c (import_one): Merge duplicate user IDs.
7632 (collapse_uids): New.
7633 * kbnode.c (move_kbnode): New.
7634 (remove_kbnode): New.
7635 * keyedit.c (keyedit_menu): Call collapse_uids.
7637 * g10.c: new option --logger-fd.
7639 * import.c: s/log_*_f/log_*/
7641 Thu May 20 14:04:08 CEST 1999 Werner Koch <wk@isil.d.shuttle.de>
7643 * misc.c (pull_in_libs): do the volatile only for gcc
7645 * sig-check (signature_check): Emit SIG_iD only for classes 0 and 1.
7647 * armor.c (armor_filter): Add detection of PGP2 created clearsigs.
7648 (fake_packet): A tab is not a WS for pgp2 - handle this.
7649 * textfilter.c (len_without_trailing_chars): New.
7650 (copy_clearsig_text): Add pgp2mode arg.
7651 * sign.c (clearsign_file): pass old_style to the above fnc.
7654 Wed May 19 16:04:30 CEST 1999 Werner Koch <wk@isil.d.shuttle.de>
7656 * g10.c: New option --interactive.
7658 * mainproc.c (proc_plaintext): Add workaround for pgp2 bug
7659 (do_check_sig): Ditto.
7661 * plaintext.c (do_hash): Ditto.
7662 (hash_datafiles): Ditto, add an arg, changed all callers.
7663 * mdfilter.c (md_filter): Add support for the alternate hash context.
7665 Mon May 17 21:54:43 CEST 1999 Werner Koch <wk@isil.d.shuttle.de>
7667 * parse-packet.c (parse_encrypted): Support for PKT_ENCRYPTED_MDC.
7668 * build-packet.c (do_encrypted_mdc): Ditto.
7669 * cipher.c (write_header): Add mdc hashing.
7670 (cipher_filter): write out the hash.
7671 * mainproc.c (do_proc_packets): Add PKT_ENCRYPTED_MDC.
7672 * encr-data.c (decrypt_data): Add mdc hashing.
7673 (mdc_decode_filter): New.
7675 * parse-packet.c (parse_sig_subpkt): Fixed stupid bug for subpkt
7677 (parse_signature): Fixed even more stupid bug.
7679 Sat May 8 19:28:08 CEST 1999 Werner Koch <wk@isil.d.shuttle.de>
7681 * build-packet.c (do_signature): Removed MDC hack.
7682 * encode.c (encode_crypt_mdc): Removed.
7683 * mainproc.c (do_check_sig): Removed MDC hack.
7684 (check_sig_and_print): Ditto.
7685 * parse-packet.c (parse_signature): Ditto.
7686 * sig-check.c (mdc_kludge_check): Ditto.
7687 * free-packte.c (copy_signature, free_seckey_enc): Ditto.
7689 * parse-packet.c (parse_signature,parse_key): Store data of
7690 unknown algorithms with mpi_set_opaque inseatd of the old
7692 (read_rest): Removed.
7693 (read_rest2): Renamed to read_rest
7694 * build-packet.c (write_fake_data): Use mpi_get_opaque.
7695 * free-packet.c (cp_fake_data): Removed and cahnged all callers
7697 (free_pubkey_enc,free_seckey_enc,release_public_key_parts,
7698 release_secret_key_parts): Use mpi_free for opaque data.
7700 Thu May 6 14:18:17 CEST 1999 Werner Koch <wk@isil.d.shuttle.de>
7702 * trustdb.c (check_trust): Check for revoked subkeys.
7703 * pkclist.c (do_we_trust): Handled revoked subkeys.
7704 (do_we_trust_pre): Ditto.
7705 (check_signatures_trust): Ditto.
7707 * build-packet.c (hash_public_key): Fix for ancient g10 keys.
7709 * mainproc.c (do_proc_packets): Return EOF if no data has been read.
7710 * g10.c (main): Catch errors for default operation.
7712 Thu Apr 29 12:29:22 CEST 1999 Werner Koch <wk@isil.d.shuttle.de>
7714 * sign.c (sign_file): Fixed hashing in case of no subpackets.
7715 (clearsign_file): Ditto.
7716 (make_keysig_packet): Ditto.
7718 Wed Apr 28 13:03:03 CEST 1999 Werner Koch <wk@isil.d.shuttle.de>
7720 * keyedit.c (keyedit_menu): Add new command revkey.
7721 * (menu_revkey): New.
7724 Mon Apr 26 17:48:15 CEST 1999 Werner Koch <wk@isil.d.shuttle.de>
7726 * parse-packet.c (parse_signature): Add the MDC hack.
7727 * build-packet.c (do_signature): Ditto.
7728 * free-packet.c (free_seckey_enc,copy_signature,cmp_signatures): Ditto.
7729 * mainproc.c (do_check_sig): Ditto.
7730 * sig-check.c (mdc_kludge_check): New.
7731 * encode.c (encrypt_mdc_file): New.
7733 * keyedit.c (check_all_keysigs): List revocations.
7734 * (menu_revsig): New.
7735 * sign (make_keysig_packet): Support for class 0x30.
7737 Sun Apr 18 20:48:15 CEST 1999 Werner Koch <wk@isil.d.shuttle.de>
7739 * pkclist.c (select_algo_from_prefs): Fixed the case that one key
7740 has no preferences (Remi Guyomarch).
7742 keylist.c (list_keyblock): ulti_hack to propagate trust to all uids.
7744 Sun Apr 18 10:11:28 CEST 1999 Werner Koch <wk@isil.d.shuttle.de>
7746 * seckey-cert.c (do_check): Use real IV instead of a 0 one, so that
7747 it works even if the length of the IV doesn't match the blocksize.
7748 Removed the save_iv stuff.
7749 (protect_secret_key): Likewise. Create the IV here.
7750 * packet.h (PKT_secret_key): Increased size of IV field and add a
7752 * parse-packet.c (parse_key): Use the len protect.ivlen.
7753 * build-packet.c (do_secret_key). Ditto.
7755 * getkey.c (key_byname): Close keyblocks.
7757 * Makefile.am (gpgm): Removed this
7758 * g10.c: Merged gpg and gpgm
7760 * import.c (import): Utilize option quiet.
7761 * tdbio.c (tdbio_set_dbname): Ditto.
7762 * ringedit.c (add_keyblock_resource,keyring_copy): Ditto.
7764 * keyedit.c (sign_uids): Add some batch support.
7766 * g10.c (main): add call to tty_batchmode.
7768 Fri Apr 9 12:26:25 CEST 1999 Werner Koch <wk@isil.d.shuttle.de>
7770 * status.c (write_status_text): Some more status codes.
7771 * passphrase_to_dek (passphrase_to_dek): add a status code.
7772 * seckey_cert.c (check_secret_key): Likewise.
7774 * encr-data.c (decrypt_data): Reverse the last changes
7775 * cipher.c (write_header): Ditto.
7777 * parse-packet.c (parse_key): Dropped kludge for ancient blowfish mode.
7779 Thu Apr 8 09:35:53 CEST 1999 Werner Koch <wk@isil.d.shuttle.de>
7781 * mainproc.c (proc_encrypted): Add a new status output
7782 * passphrase.c (passphrase_to_dek): Ditto.
7783 * status.h status.c: Add new status tokens.
7785 Wed Apr 7 20:51:39 CEST 1999 Werner Koch <wk@isil.d.shuttle.de>
7787 * encr-data.c (decrypt_data): Fixes for 128 bit blocksize
7788 * cipher.c (write_header): Ditto.
7789 * seckey-cert.c (do_check): Ditto.
7790 (protect_secret_key). Ditto.
7791 * misc.c (print_cipher_algo_note): Twofish is now a standard algo.
7793 * keygen.c (do_create): Fixed spelling (Gaël Quéri)
7794 (ask_keysize): Only allow keysizes up to 4096
7796 * ringedit.c (add_keyblock_resource): chmod newly created secrings.
7798 * import.c (delete_inv_parts): Fixed accidently deleted subkeys.
7800 Tue Apr 6 19:58:12 CEST 1999 Werner Koch <wk@isil.d.shuttle.de>
7802 * armor.c: Removed duped include (John Bley)
7803 * mainproc.c: Ditto.
7805 * build-packet.c (hash_public_key): Fixed hashing of the header.
7807 * import.c (delete_inv_parts): Allow import of own non-exportable sigs.
7809 Sat Mar 20 13:59:47 CET 1999 Werner Koch <wk@isil.d.shuttle.de>
7811 * armor.c (fake_packet): Fix for not not-dash-escaped
7813 Sat Mar 20 11:44:21 CET 1999 Werner Koch <wk@isil.d.shuttle.de>
7815 * g10.c (main): Added command --recv-keys
7816 * hkp.c (hkp_import): New.
7818 Wed Mar 17 13:09:03 CET 1999 Werner Koch <wk@isil.d.shuttle.de>
7820 * trustdb.c (check_trust): add new arg add_fnc and changed all callers.
7822 (verify_key): Ditto.
7823 (propagate_validity): Use the new add_fnc arg.
7824 (print_user_id): Add the FILE arg.
7825 (propagate_ownertrust): New.
7826 * pkclist.c (add_ownertrust_cb): New and changed the add_ownertrust
7829 * getkey.c (get_keyblock_bylid): New.
7830 * trustdb.c (print_uid_from_keyblock): New.
7831 (dump_tn_tree_with_colons): New.
7832 (list_trust_path): Add colon print mode.
7834 * trustdb.c (insert_trust_record): Always use the primary key.
7836 * encode.c (encode_simple): Added text_mode filter (Rémi Guyomarch)
7837 (encode_crypt): Ditto.
7839 * mainproc.c (proc_pubkey_enc): Added status ENC_TO.
7840 * armor.c (armor_filter): Added status NODATA.
7841 * passphrase.c (passphrase_to_dek): Always print NEED_PASSPHRASE
7842 * seckey_cert.c (check_secret_key): Added BAD_PASS status.
7844 * g10.c (main): Set g10_opt_homedir.
7846 Sun Mar 14 19:34:36 CET 1999 Werner Koch <wk@isil.d.shuttle.de>
7848 * keygen.c (do_create): Changed wording of the note (Hugh Daniel)
7850 Thu Mar 11 16:39:46 CET 1999 Werner Koch <wk@isil.d.shuttle.de>
7854 * trustdb.c (walk_sigrecs,do_list_sigs,list_sigs,
7855 list_records,list_trustdb,export_ownertrust,import_ownertrust): Moved
7857 (init_trustdb): renamed to setup_trustdb. Changed all callers.
7858 (do_init_trustdb): renamed to init_trustdb().
7859 * trustdb.c (die_invalid_db): replaced by tdbio_invalid.
7860 * tdbio.c (tdbio_invalid): New.
7862 * import.c (delete_inv_parts): Skip non exportable signatures.
7863 * keyedit.c (sign_uid_mk_attrib): New.
7864 (sign_uids): Add the local argument.
7865 (keyedit_menu): New "lsign" command.
7866 * trustdb.c (register_trusted_key): Removed this and all related stuff.
7867 * g10.c (oTrustedKey): Removed option.
7869 * tdbio.h (dir.valcheck): New trustdb field.
7870 * tdbio.c: Add support for this field
7871 (tdbio_read_modify_stamp): New.
7872 (tdbio_write_modify_stamp): New.
7873 * trustdb.c (do_check): Check against this field. Removed cache update.
7874 (verify_key): Add cache update.
7875 (upd_uid_record): Some functional changes.
7876 (upd_cert_record): Ditto
7878 Wed Mar 10 11:26:18 CET 1999 Werner Koch <wk@isil.d.shuttle.de>
7880 * keylist.c (list_keyblock): Fixed segv in uid. Print 'u' as
7883 Mon Mar 8 20:47:17 CET 1999 Werner Koch <wk@isil.d.shuttle.de>
7885 * getkey.c (classify_user_id): Add new mode 12 (#<lid>).
7887 * seckey-cert.c (check_secret_key): replaced error by info.
7889 * trustdb.c (query_trust_info): Add another arg, changed all callers.
7890 (check_trust): Ditto.
7892 (verify_key): Handle namehash.
7893 * keylist.c (list_keyblock): print trust info for user ids.
7895 * sig-check.c (signature_check): Add sig-created to status output.
7897 Tue Mar 2 16:44:57 CET 1999 Werner Koch <wk@isil.d.shuttle.de>
7899 * textfilter.c (copy_clearsig_text): New.
7900 (clearsign): Removed.
7901 * sign.c (clearsign_file): does not use textfiler anymore.
7903 * keygen.c (ask_user_id): print a note about the used charset.
7905 Tue Mar 2 10:38:42 CET 1999 Werner Koch <wk@isil.d.shuttle.de>
7907 * sig-check.c (signature_check): sig-id now works for all algos.
7909 * armor.c (armor_filter): Fixed armor bypassing.
7911 Sun Feb 28 19:11:00 CET 1999 Werner Koch <wk@isil.d.shuttle.de>
7913 * keygen.c (ask_user_id): Don't change the case of email addresses.
7914 (has_invalid_email_chars): Adjusted.
7916 * keylist.c (list_one): Really list serect keys (Remi Guyomarch)
7918 * keyedit.c (menu_select_uid): Add some braces to make egcs happy.
7919 (menu_select_key): Ditto.
7921 * mainproc.c (do_proc_packets): List sym-enc packets (Remi Guyomarch)
7923 Fri Feb 26 17:55:41 CET 1999 Werner Koch <wk@isil.d.shuttle.de>
7925 * pkclist.c (build_pk_list): Return error if there are no recipients.
7927 * sig-check.c (signature_check): New signature id feature.
7928 * armor.c (make_radic64_string): New.
7930 * mainproc.c (proc_pubkey_enc): early check for seckey availability.
7932 * pkclist.c (do_we_trust_pre): print user id before asking.
7934 * ringedit.c (add_keyblock_resource,get_keyblock_handle): Cleaner
7935 handling of default resource.
7938 Thu Feb 25 18:47:39 CET 1999 Werner Koch <wk@isil.d.shuttle.de>
7940 * pkclist.c (algo_available): New.
7941 (select_algo_from_prefs): Check whether algo is available.
7943 * ringedit.c (keyring_copy): Take care of opt.dry_run.
7944 (do_gdbm_store): Ditto.
7945 * openfile.c (open_outfile). Ditto.
7946 (copy_options_file): Ditto.
7947 * trustdb.c (update_trustdb): Ditto.
7948 (clear_trust_checked_flag): Ditto.
7949 (update_trust_record): Ditto.
7950 (insert_trust_record): Ditto.
7952 Wed Feb 24 11:07:27 CET 1999 Werner Koch <wk@isil.d.shuttle.de>
7954 * keylist.c (secret_key_list): Now really list the secret key.
7956 * trustdb.c (do_init_trustdb): New. Init is now deferred.
7958 Mon Feb 22 20:04:00 CET 1999 Werner Koch <wk@isil.d.shuttle.de>
7960 * getkey.c (lookup_sk): Return G10ERR_NO_SECKEY and not x_PUBKEY.
7962 Fri Feb 19 15:49:15 CET 1999 Werner Koch <wk@isil.d.shuttle.de>
7964 * pkclist.c (select_algo_from_prefs): retrieve LID if not there.
7966 * armor.c (fake_packet): Replaced ugly lineending handling.
7968 * g10.c (oNoEncryptTo): New.
7969 * pkclist.c (build_pk_list): Implemented this option.
7971 * g10.c (main): Greeting is now printed to stderr and not to tty.
7972 Use add_to_strlist() instead of direct coding.
7974 * import.c (import): Use iobuf_push_filter2.
7976 * mainproc.c (check_sig_and_print): Print all user ids
7977 for good signatures.
7978 * getkey.c (get_pubkeyblock): New.
7980 * import.c (chk_self_sigs): Fixed SEGV for unbounded class 0x18 keys.
7981 (delete_inv_parts): Delete special marked packets.
7983 Tue Feb 16 14:10:02 CET 1999 Werner Koch <wk@isil.d.shuttle.de>
7985 * g10.c (main): New option --encrypt-to
7987 * pkclist.c (build_pk_list): Implemented encrypt-to.
7989 * parse-packet.c (parse_user_id): Removed the hack to work with
7992 * g10.c (main): Install lockfile cleanup handler.
7993 * tdbio.c (cleanup): Removed: this is now handled by dotlock.
7995 Sat Feb 13 14:13:04 CET 1999 Werner Koch <wk@isil.d.shuttle.de>
7997 * tdbio.c (tdbio_set_dbname): Init lockhandle for a new trustdb
7999 Wed Feb 10 17:15:39 CET 1999 Werner Koch <wk@isil.d.shuttle.de>
8001 * g10.c (main): check for development version now in configure
8003 * tdbio.c (tdbio_write_record): Add uid.validity
8004 (tdbio_read_record) : Ditto.
8005 (tdbio_dump_record) : Ditto.
8007 * keygen.c (keygen_add_std_prefs): Replaced Blowfish by Twofish,
8008 removed MD5 and Tiger.
8009 * pubkey-enc.c (get_it): Suppress warning about missing Blowfish
8010 in preferences in certain cases.
8012 * ringedit.c (lock_rentry,unlock_rentry): New.
8014 * getkey.c (key_byname): Pass ret_kb down to lookup_xx.
8016 * armor.c (armor_filter): No output of of empty comment lines.
8017 Add option --no-version to suppress the output of the version string.
8019 * getkey.c: Release the getkey context for auto context variables.
8021 Sun Jan 24 18:16:26 CET 1999 Werner Koch <wk@isil.d.shuttle.de>
8023 * getkey.c: Changed the internal design to allow simultaneous
8024 lookup of multible user ids
8025 (get_pubkey_bynames): New.
8026 (get_seckey_bynames): New.
8027 (get_seckey_next): New.
8028 (get_seckey_end): New.
8029 * keylist.c (list_one): Use the new functions.
8031 * keylist.c (list_keyblock): add a newline for normal listings.
8033 * g10.c (--recipient): New option name to replace --remote-user
8036 Wed Jan 20 18:59:49 CET 1999 Werner Koch <wk@isil.d.shuttle.de>
8038 * textfilter.c: Mostly rewritten
8039 * plaintext.c (handle_plaintext): Use now text_filter semantics.
8041 Tue Jan 19 19:34:58 CET 1999 Werner Koch <wk@isil.d.shuttle.de>
8043 * export.c (export_pubkeys_stream): New.
8044 (do_export_stream): New.
8045 * g10.c (aSendKeys): New command.
8046 * hkp.c (hkp_export): New.
8048 * compress.c (do_uncompress): Hack for algo 1 and 1.1.3
8050 Sun Jan 17 11:04:33 CET 1999 Werner Koch <wk@isil.d.shuttle.de>
8052 * textfilter.c (text_filter): Now uses iobuf_read_line().
8053 (read_line): Removed.
8055 * armor.c (trim_trailing_spaces): Removed and replaced
8056 by trim_trailing_ws from libutil
8058 Sat Jan 16 12:03:27 CET 1999 Werner Koch <wk@isil.d.shuttle.de>
8060 * hkp.c (hkp_ask_import): Use only the short keyid
8062 Sat Jan 16 09:27:30 CET 1999 Werner Koch <wk@isil.d.shuttle.de>
8064 * import.c (import_key_stream): New
8065 (import): New, moved most of import_keys here.
8066 * g10.c: New option --keyserver
8067 * mainproc.c (check_sig_and_print): Hook to import a pubkey.
8069 * pref.c pref.h : Removed
8073 Wed Jan 13 14:10:15 CET 1999 Werner Koch <wk@isil.d.shuttle.de>
8075 * armor.c (radix64_read): Print an error if a bad armor was detected.
8077 Wed Jan 13 12:49:36 CET 1999 Werner Koch <wk@isil.d.shuttle.de>
8079 * armor.c (radix64_read): Now handles malformed armors produced
8082 Tue Jan 12 11:17:18 CET 1999 Werner Koch <wk@isil.d.shuttle.de>
8084 * ringedit.c (find_keyblock_bysk): New.
8086 * skc_list.c (is_insecure): New.
8087 (build_sk_list): usage check for insecure keys.
8089 * import.c (chk_self_sigs): Add handling for subkeys.
8090 (delete_inv_parts): Skip unsigned subkeys
8092 * sig-check.c (do_check): Print info if the signature is older
8094 * keygen.c (generate_subkeypair): Fail on time warp.
8095 * sign.c (do_sign): Ditto.
8097 Sun Jan 10 15:10:02 CET 1999 Werner Koch <wk@isil.d.shuttle.de>
8099 * armor.c (fake_packet): Fixed not-dash-escaped bug.
8101 Sat Jan 9 16:02:23 CET 1999 Werner Koch <wk@isil.d.shuttle.de>
8103 * sig-check.c (do_check): Output time diff on error
8105 * status.c (STATUS_VALIDSIG): New.
8106 (is_status_enabled): New.
8107 * mainproc.c (check_sig_and_print): Issue that status message.
8109 * plaintext.c (special_md_putc): Removed
8111 * armor.c (armor_filter): print error for truncated lines.
8113 * free-packet.c (free_encrypted): Revomed call to set_block_mode.
8114 (free_plaintext): Ditto.
8116 Thu Jan 7 18:00:58 CET 1999 Werner Koch <wk@isil.d.shuttle.de>
8118 * pkclist.c (add_ownertrust): Fixed return value.
8120 * encr-data.c (decrypt_data): Disabled iobuf_set_limit and
8121 iobuf_pop_filter stuff.
8122 * compress.c (handle_compressed): Disabled iobuf_pop_filter.
8124 * packet.h (PKT_secret_key): Add is_primary flag.
8125 * parse-packet.c (parse_key): Set this flag.
8126 * passphrase.c (passphrase_to_dek): Kludge to print the primary
8127 keyid - changed the API: keyid must now hold 2 keyids.
8128 * getkey.c (get_primary_seckey): New.
8129 * seckey-cert.c (do_check): pass primary keyid to passphrase query
8131 * tbdio.c (open_db): removed the atexit
8132 (tdbio_set_dbname): and moved it to here.
8134 * armor.c: Rewrote large parts.
8136 Tue Dec 29 19:55:38 CET 1998 Werner Koch <wk@isil.d.shuttle.de>
8138 * revoke.c (gen_revoke): Removed compression.
8140 * pkclist.c (do_we_trust_pre): special check for revoked keys
8142 * trustdb.c (update_trust_record): Fixed revoke flag.
8144 Tue Dec 29 14:41:47 CET 1998 Werner Koch <wk@isil.d.shuttle.de>
8146 * misc.c (disable_core_dumps): Check for EINVAL (Atari)
8148 * getkey (merge_one_pk_and_selfsig): Fixed search of expiredate.
8149 (merge_keys_and_selfsig): Ditto.
8151 * free-packet.c (cmp_public_keys): cmp expire only for v3 packets
8152 (cmp_secret_keys): Ditto.
8153 (cmp_public_secret_key): Ditto.
8155 Wed Dec 23 17:12:24 CET 1998 Werner Koch <wk@isil.d.shuttle.de>
8157 * armor.c (find_header): Reset not_dashed at every header
8159 Wed Dec 23 13:18:14 CET 1998 Werner Koch <wk@isil.d.shuttle.de>
8161 * pkclist.c (add_ownertrust): Refresh validity values.
8163 * trustdb.c (enum_cert_paths_print): New arg refresh.
8165 * ringedit.c: Fixed problems fix keyrings
8166 * parse-packet.c (dbg_parse_packet): New debug functions.
8168 * getkey.c (getkey_disable_caches): New.
8169 * import.c (import_keys): Disable caches.
8171 Thu Dec 17 18:31:15 CET 1998 Werner Koch <wk@isil.d.shuttle.de>
8173 * misc.c (trap_unaligned): Only for glibc 1
8175 * sign.c (write_dash_escaped): Now escapes "From " lines
8176 * g10.c: New option --escape-from-lines
8178 * trustdb.c (sort_tsl_list): New
8179 (list_trust_path): Now prints sorted list.
8180 (enum_cert_paths): Likewise.
8181 (enum_cert_paths_print): New.
8182 (print_paths): New printing format.
8183 * pkclist.c (add_ownertrust): New arg quit.
8184 (edit_ownertrust): New quit selection and does not query
8185 the recipients ownertrust anymore.
8186 (add_ownertrust): Print the ceritficate path.
8189 Mon Dec 14 21:18:49 CET 1998 Werner Koch <wk@isil.d.shuttle.de>
8191 * parse-packet.c (parse_signature): Now checks for critical bit
8192 (parse_sig_subpkt): Splitted.
8193 (parse_one_sig_subpkt): New.
8194 * sig-check.c (do_check): handle critical bit.
8196 Sun Dec 13 14:10:56 CET 1998 Werner Koch <wk@isil.d.shuttle.de>
8198 * pcklist.c (select_algo_from_prefs): Preferences should
8199 now work (lost the != ? )
8201 Thu Dec 10 20:15:36 CET 1998 Werner Koch <wk@isil.d.shuttle.de>
8203 * ringedit.c (gdbm_store): Fix for inserts
8205 * g10.c (main): New option --export-all
8206 * export.c (export_pubkeys): New arg.
8207 (do_export): Now may skip old keys.
8209 * status.c: Minor patches for Sun's cc
8211 * keygen.c (ask_algo): Disabled v3 ElGamal choice, rearranged
8212 the numbers. Add a warning question when a sign+encrypt key
8215 * g10.c (do_not_use_RSA): Removed.
8216 * misc.c (print_pubkey_algo_note): New as replacement for the
8217 do_not_use_RSA() and chnaged all callers.
8218 (print_cipher_algo_note): New.
8219 (print_hash_algo_note): New.
8221 * cipher.c (write_header): Add a call to print_cipher_algo_note.
8222 * seckey-cert.c (protect_secret_key): Ditto
8223 * sign.c (do_sign): Add a call to print_digest_algo_note.
8225 * getkey.c (get_long_user_id_string): New.
8226 * mainproc.c (check_sig_and_print): Changed the format of the
8229 * encrypt.c (write_pubkey_enc_from_list): print used symmetric cipher.
8231 * pkclist.c (do_we_trust): Changed a message.
8233 Wed Dec 9 13:41:06 CET 1998 Werner Koch <wk@isil.d.shuttle.de>
8235 * misc.c (trap_unaligned) [ALPHA]: Only if UAC_SIGBUS is defined.
8237 * sign.c (write_dash_escaped): Add the forgotten patch by Brian Moore.
8239 * compress.c (do_uncompress): Fixed the inflating bug.
8242 Tue Dec 8 13:15:16 CET 1998 Werner Koch <wk@isil.d.shuttle.de>
8244 * trustdb.c (upd_uid_record): Now uses the newest self-signature
8245 (insert_trust_record): Now calls update with recheck set to true.
8246 (register_trusted_key): New.
8247 (verify_own_keys): Enhanced by list of trusted keys.
8249 * g10.c (main): Print a warning when a devel version is used.
8250 (main): New option --trusted-key
8252 * import.c (merge_blocks): Fixed merging of new user ids and
8253 added merging of subkeys.
8254 (append_uid): Ditto.
8255 (merge_keysig): New.
8257 * getkey.c (merge_one_pk_and_selfsig): Get the expiration time
8258 from the newest self-signature.
8259 (merge_keys_and_selfsig): Ditto.
8261 * free-packet.c (cmp_secret_key): New.
8264 Fri Nov 27 21:37:41 CET 1998 Werner Koch <wk@isil.d.shuttle.de>
8266 * g10.c: New option --lock-once
8267 * tdbio.c (open_db): Add an atexit
8269 (tdbio_sync): Add locking.
8270 (tdbio_end_transaction): Ditto.
8271 (put_record_into_cache): Ditto.
8272 * ringedit.c (keyring_copy): Ditto.
8274 (add_keyblock_resource): Add an atexit.
8276 Fri Nov 27 15:30:24 CET 1998 Werner Koch <wk@isil.d.shuttle.de>
8278 * armor.c (find_header): Another fix for clearsigs.
8280 Fri Nov 27 12:39:29 CET 1998 Werner Koch <wk@isil.d.shuttle.de>
8283 * status.c (display_help): Removed.
8284 * helptext.c: New and removed the N_() from all cpr_gets.
8287 Fri Nov 20 16:54:52 1998 Werner Koch (wk@isil.d.shuttle.de)
8289 * g10.c (main): New option --not-dash-escaped
8290 * sign.c (write_dashed_escaped): Ditto.
8291 * armor.c (find_header): Support for NotDashEscaped header.
8293 * getkey.c: print "disabled cache.." only if verbose is used.
8295 Thu Nov 19 07:17:31 1998 Werner Koch <werner.koch@guug.de>
8297 * parse-packet.c (dump_sig_subpkt): Fixed expire listing
8298 * getkey.c (merge_keys_and_selfsig): Fixed expire calculation.
8299 (merge_one_pk_and_selfsig): Ditto.
8300 * keyedit.c (menu_expire). Ditto.
8301 * keygen.c (keygen_add_key_expire): Ditto.
8302 (ask_expire_interval): New and changed all local function to use
8304 (keygen_add_key_expire): Opaque should now be a public key;
8305 changed all callers.
8307 * parse.packet.c (parse): use skip_rest to skip packets.
8309 * keyedit.c (keyedit_menu): New arg for cmdline cmds.
8311 Wed Nov 18 20:33:50 1998 Werner Koch (wk@isil.d.shuttle.de)
8313 * trustdb.c (check_trustdb): Now rechecks all gived userids.
8314 (collect_paths): Some fixes.
8315 (upd_pref_records): Skips empty items, evaluate all items.
8317 * parse-packet.c (dump_sig_subpkt): Better listing of prefs.
8318 (skip_packet): Now knows about marker packet
8320 * g10.c: removed cmd "--edit-sig".
8322 * pubring.asc: Updated.
8324 Sat Nov 14 14:01:29 1998 Werner Koch (wk@isil.d.shuttle.de)
8326 * g10.c (main): Changed syntax of --list-trust-path
8327 * trustdb.c (list_trust_path): Replaced max_depth by
8330 Fri Nov 13 07:39:58 1998 Werner Koch <werner.koch@guug.de>
8332 * trustdb.c (collect_paths): Removed a warning message.
8333 (enum_trust_web): Removed.
8334 (enum_cert_paths): New.
8335 * pkclist.c (add_ownertrust): Changed to use enum_cert_paths.
8336 (edit_ownertrust): Now list ceritficates on request.
8339 Wed Nov 11 18:05:44 1998 Werner Koch <werner.koch@guug.de>
8341 * g10.c (main): New option --max-cert-depth
8342 * tdbio.h: add new fields to ver and dir record.
8343 * tdbio.c: read/write/dump of these fields.
8344 (tdbio_db_matches_options): New.
8345 * trustdb.c: replaced MAC_CERT_DEPTH by opt.max_cert_depth.
8346 (do_check): cache validity and changed other functions
8347 to reset the cached value.
8349 * keylist.c (list_one): Now lists the ownertrust.
8350 * mainproc.c (list_node): Ditto.
8352 Tue Nov 10 10:08:59 1998 Werner Koch (wk@isil.d.shuttle.de)
8354 * g10.c (g10_exit): Now looks at the new g10_errors_seen.
8355 * mainproc.c (check_sig_and_print): Sets g10_errors_seen.
8357 * *.c : i18n many more strings.
8359 * ringedit.c (locate_keyblock_by_keyid): Add HAVE_LIBGDBM
8360 (locate_keyblock_by_fpr): Ditto.
8362 * g10.c (main): removed unsused "int errors".
8363 (main): Add new option --charset.
8365 * g10.c (main): special message for the unix newbie.
8367 Mon Nov 9 07:17:42 1998 Werner Koch <werner.koch@guug.de>
8369 * getkey.c (finish_lookup): Kludge to prefere algo 16.
8371 * trustdb.c (new_lid_table): Clear cached item.
8373 * status.c (cpr_get_utf8): New.
8374 * pkclist.c (build_pk_list): Uses this.
8376 Sun Nov 8 17:20:39 1998 Werner Koch (wk@isil.d.shuttle.de)
8378 * mainproc.c (check_sig_and_print): Why did I use strlen()-1
8379 in the printf? - This truncated the TZ.
8381 Sat Nov 7 15:57:28 1998 me,,, (wk@tobold)
8383 * getkey.c (lookup): Changes to support a read_next.
8384 (get_pubkey): Fixed a memory leak.
8386 * keylist.c (list_one): Now lists all matching user IDs.
8388 Tue Nov 3 16:19:21 1998 Werner Koch (wk@isil.d.shuttle.de)
8390 * keygen.c (ask_user_id): Now converted to UTF-8
8392 * g10.c (main): Kludge for pgp clearsigs and textmode.
8394 Fri Oct 30 16:40:39 1998 me,,, (wk@tobold)
8396 * signal.c (block_all_signals): New.
8397 (unblock_all_signals): New
8398 * tdbio.c (tdbio_end_transaction): Now blocks all signals.
8400 * trustdb.c (new_lid_table): Changed the representation of the
8401 former local_lid_info stuff.
8403 * trustdb.c (update_trust_record): Reorganized the whole thing.
8404 * sig-check.c (check_key_signature): Now handles class 0x28
8407 Wed Oct 28 18:56:33 1998 me,,, (wk@tobold)
8409 * export.c (do_export): Takes care of the exportable sig flag.
8411 Tue Oct 27 14:53:04 1998 Werner Koch (wk@isil.d.shuttle.de)
8413 * trustdb.c (update_trust_record): New "fast" parameter.
8415 Sun Oct 25 19:32:05 1998 Werner Koch (wk@isil.d.shuttle.de)
8417 * openfile.c (copy_options_File): New.
8418 * ringedit.c (add_keyblock_resource): Creates options file
8419 * tdbio.c (tdbio_set_dbname): Ditto.
8421 Sat Oct 24 14:10:53 1998 brian moore <bem@cmc.net>
8423 * mainproc.c (proc_pubkey_enc): Don't release the DEK
8424 (do_proc_packets): Ditto.
8426 Fri Oct 23 06:49:38 1998 me,,, (wk@tobold)
8428 * keyedit.c (keyedit_menu): Comments are now allowed
8430 * trustdb.c: Rewrote large parts.
8433 Thu Oct 22 15:56:45 1998 Michael Roth (mroth@nessie.de)
8435 * encode.c: (encode_simple): Only the plain filename without
8436 a given directory is stored in generated packets.
8437 (encode_crypt): Ditto.
8439 * sign.c: (sign_file) Ditto.
8442 Thu Oct 22 10:53:41 1998 Werner Koch (wk@isil.d.shuttle.de)
8444 * trustdb.c (update_trust_record): Add new optional arg.
8446 * import.c (import_keys): Add statistics output
8447 * trustdb.c (update_trustdb): Ditto.
8448 (insert_trustdb): Ditto.
8450 * tdbio.c (tdbio_begin_transaction): New.
8451 (tdbio_end_transaction): New.
8452 (tdbio_cancel_transaction): New.
8454 * g10.c (main): New option --quit.
8456 * trustdb.c (check_hint_sig): No tests for user-id w/o sig.
8457 This caused an assert while checking the sigs.
8459 * trustdb.c (upd_sig_record): Splitted into several functions.
8461 * import.c (import_keys): New arg "fast".
8462 * g10.c (main): New command --fast-import.
8464 Wed Oct 21 18:19:36 1998 Michael Roth <mroth@nessie.de>
8466 * ringedit.c (add_keyblock_resource): Directory is now created.
8467 * tdbio.c (tdbio_set_dbname): New info message.
8469 Wed Oct 21 11:52:04 1998 Werner Koch (wk@isil.d.shuttle.de)
8471 * trustdb.c (update_trustdb): released keyblock in loop.
8473 * keylist.c (list_block): New.
8474 (list_all): Changed to use list_block.
8476 * trustdb.c: Completed support for GDBM
8478 * sign.c (only_old_style): Changed the way force_v3 is handled
8480 (clearsign_file): Ditto.
8482 * keygen.c (has_invalid_email_chars): Splitted into mailbox and
8485 * keylist.c (list_one): Add a merge_keys_and_selfsig.
8486 * mainproc.c (proc_tree): Ditto.
8488 Sun Oct 18 11:49:03 1998 Werner Koch (wk@isil.d.shuttle.de)
8490 * sign.c (only_old_style): Add option force_v3_sigs
8491 (sign_file): Fixed a bug in sig->version
8492 (clearsign_file): Ditto.
8494 * parse-packet.c (dump_sig_subpkt): New
8496 * keyedit.c (menu_expire): New.
8497 * free-packet.c (cmp_signatures): New
8500 Sat Oct 17 10:22:39 1998 Werner Koch (wk@isil.d.shuttle.de)
8502 * armor.c: changed output line length from 72 to 64.
8504 * keyedit.c (fix_keyblock): New.
8506 Fri Oct 16 10:24:47 1998 Werner Koch (wk@isil.d.shuttle.de)
8508 * trustdb.c: Rewrote most.
8509 * tdbio.c: Add cache and generalized hash tables.
8511 * options.h (ENABLE_COMMENT_PACKETS): New but undef'ed.
8512 * encode.c, sign.c, keygen.c: Disabled comment packets.
8513 * export.c (do_export): Comment packets are never exported,
8514 except for those in the secret keyring.
8516 * g10.c (main): Removed option do-no-export-rsa; should be
8517 be replaced by a secpial tool.
8518 * export.c (do_export): Removed the code for the above option.
8520 * armor.c (find_header): Support for new only_keyblocks.
8521 * import.c (import_keys): Only looks for keyblock armors.
8523 * packet.h: replaced valid_days by expiredate and changed all users.
8524 * build-packet.c (do_public_key): calculates valid-days
8525 (do_secret_key): Ditto.
8526 * parse-packet.c (parse_key): expiredate is calucated from the
8527 valid_period in v3 packets.
8528 * keyid.c (do_fingerprint_md): calculates valid_dates.
8530 * keygen.c (add_key_expire): fixed key expiration time for v4 packets.
8532 * armor.c (find_header): A LF in the first 28 bytes
8533 was skipped for non-armored data.
8535 Thu Oct 8 11:35:51 1998 Werner Koch (wk@isil.d.shuttle.de)
8537 * armor.c (is_armored): Add test on old comment packets.
8539 * tdbio.c (tdbio_search_dir_bypk): fixed memory leak.
8541 * getkey.c: Changed the caching algorithms.
8543 Wed Oct 7 19:33:28 1998 Werner Koch (wk@isil.d.shuttle.de)
8545 * kbnodes.c (unused_nodes): New.
8547 Wed Oct 7 11:15:36 1998 Werner Koch (wk@isil.d.shuttle.de)
8549 * keyedit.c (sign_uids): Fixed a problem with SK which could caused
8550 a save of an unprotected key.
8551 (menu_adduid): Ditto.
8553 * keyedit.c (keyedit_menu): Prefs are now correctly listed for
8556 * trustdb.c (update_trust_record): New.
8557 (insert_trust_record): Now makes use of update_trust_record.
8559 Tue Oct 6 16:18:03 1998 Werner Koch (wk@isil.d.shuttle.de)
8561 * trustdb.c (read_record): replaces most of the tdbio_read_records.
8562 (write_record): Ditto.
8564 Sat Oct 3 11:01:21 1998 Werner Koch (wk@isil.d.shuttle.de)
8566 * keygen.c (ask_alogo): enable ElGamal enc-only only for addmode.
8568 Wed Sep 30 10:15:33 1998 Werner Koch (wk@isil.d.shuttle.de)
8570 * import.c (import_one): Fixed update of wrong keyblock.
8572 Tue Sep 29 08:32:08 1998 me,,, (wk@tobold)
8574 * mainproc.c (proc_plaintext): Display note for special filename.
8575 * plaintext.c (handle_plaintext): Suppress output of special file.
8577 Mon Sep 28 12:57:12 1998 Werner Koch (wk@isil.d.shuttle.de)
8579 * g10.c (verify_own_keys): Add warning if a key is not protected.
8581 * passphrase (hash_passphrase): Fixed iterated+salted mode and
8582 setup for keysizes > hashsize.
8584 * g10.c (main): New options: --s2k-{cipher,digest,mode}.
8586 Fri Sep 25 09:34:23 1998 Werner Koch (wk@isil.d.shuttle.de)
8588 * g10.c: Chnaged some help texts.
8590 Tue Sep 22 19:34:39 1998 Werner Koch (wk@isil.d.shuttle.de)
8592 * passphrase.c (read_passphrase_from_fd): fixed bug for long
8595 Mon Sep 21 11:28:05 1998 Werner Koch (wk@(none))
8597 * getkey.c (lookup): Add code to use the sub key if the primary one
8598 does not match the usage.
8600 * armor.c (armor_filter): New error message: no valid data found.
8601 (radix64_read): Changes to support multiple messages.
8603 * mainproc.c (add_onepass_sig): bug fix.
8605 Mon Sep 21 08:03:16 1998 Werner Koch (wk@isil.d.shuttle.de)
8607 * pkclist.c (do_we_trust): Add keyid to most messages.
8609 * passphrase.c (read_passphrase_from_fd): New.
8610 (have_static_passphrase): New
8611 (get_passphrase_fd): Removed.
8612 (set_passphrase_fd): Removed.
8613 * g10.c (main): passphrase is now read here.
8615 * keyedit.c (keyedit_menu): "help" texts should now translate fine.
8617 Mon Sep 21 06:40:02 1998 Werner Koch (wk@isil.d.shuttle.de)
8619 * encode.c (encode_simple): Now disables compression
8620 when --rfc1991 is used.
8621 (encode_crypt): Ditto.
8623 Fri Sep 18 16:50:32 1998 Werner Koch (wk@isil.d.shuttle.de)
8625 * getkey.c (merge_key_and_selfsig): New.
8627 Fri Sep 18 10:20:11 1998 Werner Koch (wk@isil.d.shuttle.de)
8629 * pkclist.c (select_algo_from_prefs): Removed 3DES kludge.
8631 * seskey.c (make_session_key): Fixed SERIOUS bug introduced
8632 by adding the weak key detection code.
8634 * sign.c (sign_file): Changed aremor header in certain cases.
8636 Tue Sep 15 17:52:55 1998 Werner Koch (wk@isil.d.shuttle.de)
8638 * mainproc.c (check_sig_and_print): Replaced ascime by asctimestamp.
8640 Mon Sep 14 11:40:52 1998 Werner Koch (wk@isil.d.shuttle.de)
8642 * seskey.c (make_session_key): Now detects weak keys.
8644 * trustdb (clear_trust_checked_flag): New.
8646 * plaintext.c (handle_plaintext): Does no anymore suppress CR from
8647 cleartext signed messages.
8649 Sun Sep 13 12:54:29 1998 Werner Koch (wk@isil.d.shuttle.de)
8651 * trustdb.c (insert_trust_record): Fixed a stupid bug in the free
8654 Sat Sep 12 15:49:16 1998 Werner Koch (wk@isil.d.shuttle.de)
8656 * status.c (remove_shmid): New.
8657 (init_shm_comprocess): Now sets permission to the real uid.
8659 Wed Sep 9 11:15:03 1998 Werner Koch (wk@isil.d.shuttle.de)
8661 * packet.h (PKT_pubkey_enc): New flah throw_keyid, and add logic to
8663 * g10.c (main): New Option --throw-keyid
8665 * getkey.c (enum_secret_keys): Add new ar and changed all callers.
8667 Tue Sep 8 20:04:09 1998 Werner Koch (wk@isil.d.shuttle.de)
8669 * delkey.c (delete_key): Moved from keyedit.c.
8671 Mon Sep 7 16:37:52 1998 Werner Koch (wk@isil.d.shuttle.de)
8673 * build-packet.c (calc_length_header): New arg new_ctb to correctly
8674 calculate the length of new style packets.
8676 * armor.c (is_armored): Checks for symkey_enc packets.
8678 * pkclist.c (select_algo_from_prefs): 3DEs substitute is now CAST5.
8680 Tue Aug 11 17:54:50 1998 Werner Koch (wk@isil.d.shuttle.de)
8682 * build-packet.c (do_secret_key): Fixed handling of old keys.
8684 * getkey.c (compare_name): Fixed exact and email matching
8686 * openfile.c (open_outfile): Changed arguments and all callers.
8688 Tue Aug 11 09:14:35 1998 Werner Koch (wk@isil.d.shuttle.de)
8690 * encode.c (encode_simple): Applied option set-filename and comment.
8691 (encode_crypt): Ditto.
8692 * sign.c (sign_file): Ditto.
8693 * armor.c (armor_filter): Applied option comment.
8695 * encode.c (encode_crypt): Moved init_packet to the begin.
8696 (encode_simple): add an init_packet().
8698 * comment (write_comment): Now enforces a hash sign as the 1st byte.
8700 * import.c (import_one): Add explanation for "no user ids".
8702 * compress.c (do_uncompress): Applied Brian Warner's patch to support
8705 * trustdb.c (check_trust): Fixed a problem after inserting new keys.
8707 * getkey (lookup): do not return the primary key if usage is given
8708 (lookup_sk): Ditto and take usage into account.
8710 * status.c (cpr_get_answer_is_yes): add display_help.
8712 Mon Aug 10 10:11:28 1998 Werner Koch (wk@isil.d.shuttle.de)
8714 * getkey.c (lookup_sk): Now always returns the primary if arg
8717 (get_pubkey_byname): Now returns the primary key
8718 (get_seckey_byname): Ditto.
8721 Mon Aug 10 08:34:03 1998 Werner Koch (wk@isil.d.shuttle.de)
8723 * keyid.c (pubkey_letter): ELG_E is now a small g.
8725 Sat Aug 8 17:26:12 1998 Werner Koch (wk@isil.d.shuttle.de)
8727 * openfile (overwrite_filep): Changed semantics and all callers.
8729 Sat Aug 8 12:17:07 1998 Werner Koch (wk@isil.d.shuttle.de)
8731 * status.c (display_help): New.
8733 Thu Aug 6 16:30:41 1998 Werner Koch,mobil,,, (wk@tobold)
8735 * seskey.c (encode_session_key): Now uses get_random_bits().
8737 Thu Aug 6 07:34:56 1998 Werner Koch,mobil,,, (wk@tobold)
8739 * ringedit.c (keyring_copy): No more backupfiles for
8740 secret keyrings and add additional warning in case of
8741 a failed secret keyring operation.
8743 Wed Aug 5 11:54:37 1998 Werner Koch (wk@isil.d.shuttle.de)
8745 * g10.c (check_opts): Moved to main. Changed def_cipher_algo
8746 semantics and chnaged all users.
8748 * pubkey-enc.c (get_sssion_key): New informational output
8751 * parse-packet.c (parse_symkeyenc): Fixed salted+iterated S2K
8753 * build-packet.c (do_secret_key): Ditto.
8754 (do_symkey_enc): Ditto.
8756 Tue Aug 4 08:59:10 1998 Werner Koch (wk@isil.d.shuttle.de)
8758 * getkey.c (enum_secret_keys): Now returns only primary keys.
8760 * getkey (lookup): Now sets the new namehash field.
8762 * parse-packet.c (parse_sig_subpkt2): New.
8764 * sign.c (sign_file): one-pass sigs are now emiited reverse.
8765 Preference data is considered when selecting the compress algo.
8767 Wed Jul 29 12:53:03 1998 Werner Koch (wk@isil.d.shuttle.de)
8769 * free-packet.c (copy_signature): New.
8771 * keygen.c (generate_subkeypair): rewritten
8772 * g10.c (aKeyadd): Removed option --add-key
8774 Mon Jul 27 10:37:28 1998 Werner Koch (wk@isil.d.shuttle.de)
8776 * seckey-cert.c (do_check): Additional check on cipher blocksize.
8777 (protect_secret_key): Ditto.
8778 * encr-data.c: Support for other blocksizes.
8779 * cipher.c (write_header): Ditto.
8781 Fri Jul 24 16:47:59 1998 Werner Koch (wk@isil.d.shuttle.de)
8783 * kbnode.c (insert_kbnode): Changed semantics and all callers.
8784 * keyedit.c : More or less a complete rewrite
8786 Wed Jul 22 17:10:04 1998 Werner Koch (wk@isil.d.shuttle.de)
8788 * build-packet.c (write_sign_packet_header): New.
8790 Tue Jul 21 14:37:09 1998 Werner Koch (wk@isil.d.shuttle.de)
8792 * import.c (import_one): Now creates a trustdb record.
8794 * g10.c (main): New command --check-trustdb
8796 Mon Jul 20 11:15:07 1998 Werner Koch (wk@isil.d.shuttle.de)
8798 * genkey.c (generate_keypair): Default key is now DSA with
8799 encryption only ElGamal subkey.
8801 Thu Jul 16 10:58:33 1998 Werner Koch (wk@isil.d.shuttle.de)
8803 * keyid.c (keyid_from_fingerprint): New.
8804 * getkey.c (get_pubkey_byfprint): New.
8806 Tue Jul 14 18:09:51 1998 Werner Koch (wk@isil.d.shuttle.de)
8808 * keyid.c (fingerprint_from_pk): Add argument and changed all callers.
8809 (fingerprint_from_sk): Ditto.
8811 Tue Jul 14 10:10:03 1998 Werner Koch (wk@isil.d.shuttle.de)
8813 * plaintext.c (handle_plaintext): Now returns create error if
8814 the file could not be created or the user responded not to overwrite
8816 * mainproc.c (proc_plaintext): Tries again if the file could not
8817 be created to check the signature without output.
8819 * misc.c (disable_core_dumps): New.
8820 * g10.c (main): disable coredumps for gpg
8822 * g10.c (MAINTAINER_OPTIONS): New to disable some options
8824 Mon Jul 13 16:47:54 1998 Werner Koch (wk@isil.d.shuttle.de)
8826 * plaintext.c (hash_datafiles): New arg for better support of
8827 detached sigs. Changed all callers.
8828 * mainproc.c (proc_signature_packets): Ditto.
8830 * g10.c (main): New option "compress-sigs"
8831 * sig.c (sign_file): detached signatures are not anymore compressed
8832 unless the option --compress-sigs is used.
8834 Thu Jul 9 19:54:54 1998 Werner Koch (wk@isil.d.shuttle.de)
8836 * armor.c: Fixes to allow zero length cleartext signatures
8838 Thu Jul 9 14:52:47 1998 Werner Koch (wk@isil.d.shuttle.de)
8840 * g10.c (build_list): Now drops setuid.
8841 (main): Changed the way keyrings and algorithms are registered .
8843 Wed Jul 8 14:17:30 1998 Werner Koch (wk@isil.d.shuttle.de)
8845 * packet.h (PKT_public_key): Add field keyid.
8846 * parse-packet.c (parse_key): Reset the above field.
8847 * keyid.c (keyid_from_pk): Use above field as cache.
8849 * tdbio.c, tdbio.h: New
8850 * trustdb.c: Moved some functions to tdbio.c.
8853 * pkclist.c (check_signatures_trust): New.
8855 Wed Jul 8 10:45:28 1998 Werner Koch (wk@isil.d.shuttle.de)
8857 * plaintext.c (special_md_putc): New.
8858 (handle_plaintext): add clearsig argument
8859 * mainproc.c (proc_plaintext): detection of clearsig
8860 * sign.c (write_dased_escaped): Changed clearsig format
8862 Tue Jul 7 18:56:19 1998 Werner Koch (wk@isil.d.shuttle.de)
8864 * armor.c (find_header): Now makes sure that there is only one
8865 empty line for clearsigs, as this is what OP now says.
8867 Mon Jul 6 13:09:07 1998 Werner Koch (wk@isil.d.shuttle.de)
8869 * g10.c (main): New option default-secret-key
8870 * getkey.c (get_seckey_byname): support for this option.
8872 Mon Jul 6 09:03:49 1998 Werner Koch (wk@isil.d.shuttle.de)
8874 * getkey.c (add_keyring): Keyrings are now added to end of the
8875 list of keyrings. The first added keyringwill be created.
8876 (add_secret_keyring): Likewise.
8878 * ringedit.c (add_keyblock_resource): Files are created here.
8880 * g10.c (aNOP): Removed
8882 * getkey.c (lookup): Add checking of usage for name lookups
8883 * packet.h (pubkey_usage): Add a field which may be used to store
8885 * pkclist.c (build_pk_list): getkey now called with usage arg.
8886 * skclist.c (build_sk_list): Ditto.
8888 * sign.c (clearsign_file): Fixed "Hash:" headers
8890 Sat Jul 4 13:33:31 1998 Werner Koch (wk@isil.d.shuttle.de)
8892 * trustdb.c (list_ownertrust): New.
8893 * g10.c (aListOwnerTrust): New.
8895 * g10.c (def_pubkey_algo): Removed.
8897 * trustdb.c (verify_private_data): Removed and also the call to it.
8898 (sign_private_data): Removed.
8900 Fri Jul 3 13:26:10 1998 Werner Koch (wk@isil.d.shuttle.de)
8902 * g10.c (aEditKey): was aEditSig. Changed usage msg.
8904 * keyedit.c: Done some i18n stuff.
8906 * g10.c (do_not_use_RSA): New.
8907 * sign.c (do_sign): Add call to above function.
8908 * encode.c (write_pubkey_enc_from_list): Ditto.
8910 Thu Jul 2 21:01:25 1998 Werner Koch (wk@isil.d.shuttle.de)
8912 * parse-packet.c: Now is able sto store data of unknown
8914 * free-packet.c: Support for this.
8915 * build-packet.c: Can write data of packet with unknown algos.
8917 Thu Jul 2 11:46:36 1998 Werner Koch (wk@isil.d.shuttle.de)
8919 * parse-packet.c (parse): fixed 4 byte length header
8921 Wed Jul 1 12:36:55 1998 Werner Koch (wk@isil.d.shuttle.de)
8923 * packet.h (new_ctb): New field for some packets
8924 * build-packet.c (build_packet): Support for new_ctb
8925 * parse-packet.c (parse): Ditto.
8927 Mon Jun 29 12:54:45 1998 Werner Koch (wk@isil.d.shuttle.de)
8929 * packet.h: changed all "_cert" to "_key", "subcert" to "subkey".
8931 * free-packet.c (free_packet): Removed memory leak for subkeys.
8933 Sun Jun 28 18:32:27 1998 Werner Koch (wk@isil.d.shuttle.de)
8935 * import.c (import_keys): Renamed from import_pubkeys.
8936 (import_secret_one): New.
8938 * g10.c (aExportSecret): New.
8940 * export.c (export_seckeys): New.
8942 * parse-packet.c (parse_certificate): Cleaned up.
8943 (parse_packet): Trust packets are now considered as unknown.
8944 (parse_pubkey_warning): New.
8946 Fri Jun 26 10:37:35 1998 Werner Koch (wk@isil.d.shuttle.de)
8948 * keygen.c (has_invalid_email_chars): New.
8950 Wed Jun 24 16:40:22 1998 Werner Koch (wk@isil.d.shuttle.de)
8952 * armor.c (armor_filter): Now creates valid onepass_sig packets
8953 with all detected hash algorithms.
8954 * mainproc.c (proc_plaintext): Now uses the hash algos as specified
8955 in the onepass_sig packets (if there are any)
8957 Mon Jun 22 11:54:08 1998 Werner Koch (wk@isil.d.shuttle.de)
8959 * plaintext.c (handle_plaintext): add arg to disable outout
8960 * mainproc.c (proc_plaintext): disable output when in sigs_only mode.
8962 Thu Jun 18 13:17:27 1998 Werner Koch (wk@isil.d.shuttle.de)
8964 * keygen.c: Removed all rsa packet stuff, chnaged defaults
8967 Sun Jun 14 21:28:31 1998 Werner Koch (wk@isil.d.shuttle.de)
8969 * misc.c (checksum_u16): Fixed a stupid bug which caused a
8970 wrong checksum calculation for the secret key protection and
8971 add a backward compatibility option.
8972 * g10.c (main): Add option --emulate-checksum-bug.
8974 Thu Jun 11 13:26:44 1998 Werner Koch (wk@isil.d.shuttle.de)
8976 * packet.h: Major changes to the structure of public key material
8977 which is now stored in an array and not anaymore in a union of
8978 algorithm specific structures. These is needed to make the system
8979 more extendable and makes a lot of stuff much simpler. Changed
8980 all over the system.
8982 * dsa.c, rsa.c, elg.c: Removed.
8984 Wed Jun 10 07:22:02 1998 Werner Koch,mobil,,, (wk@tobold)
8986 * g10.c ("load-extension"): New option.
8988 Mon Jun 8 22:23:37 1998 Werner Koch (wk@isil.d.shuttle.de)
8990 * seckey-cert.c (do_check): Removed cipher constants
8991 (protect_secret_key): Ditto.
8993 Fri May 29 10:00:28 1998 Werner Koch (wk@isil.d.shuttle.de)
8995 * trustdb.c (query_trust_info): New.
8996 * keylist.c (list_one): Add output of trust info
8997 * mainproc (list_node): ditto.
8998 * g10.c (main): full trustdb init if -with-colons and any of the
9001 Thu May 28 10:34:42 1998 Werner Koch (wk@isil.d.shuttle.de)
9003 * status.c (STATUS_RSA_OR_IDEA): New.
9004 * sig-check.c (check_signature): Output special status message.
9005 * pubkey-enc.c (get_session_key): Ditto.
9007 * mainproc.c (check_sig_and_print): Changed format of output.
9008 * passpharse.c (passphrase_to_dek): Likewise.
9010 Wed May 27 13:46:48 1998 Werner Koch (wk@isil.d.shuttle.de)
9012 * g10.c (aListSecretKeys): New option --list-secret-keys
9013 * keylist.c (std_key_list): Renamed to public_key_list.
9014 (secret_key_list): New
9015 (list_one, list_all): Add support for secret keys.
9016 * getkey.c (get_secret_keyring): New.
9017 * mainproc.c (list_node): Add option --with-colons for secret keys
9019 * sig-check.c (check_key_signature): detection of selfsigs
9020 * mainproc.c (list_node): fixed listing.
9022 * g10.c (aListSecretKeys): New option --always-trust
9023 * pkclist.c (do_we_trust): Override per option added
9025 * status.c (write_status_text): Add a prefix to every output line.
9027 Wed May 27 07:49:21 1998 Werner Koch (wk@isil.d.shuttle.de)
9029 * g10 (--compress-keys): New.
9030 * options.h (compress_keys): New.
9031 * export.c (export_pubkeys): Only compresses with the new option.
9033 Tue May 26 11:24:33 1998 Werner Koch (wk@isil.d.shuttle.de)
9035 * passphrase.c (get_last_passphrase): New
9036 (set_next_passphrase): New.
9037 (passphrase_to_dek): add support for the above functions.
9038 * keyedit.c (make_keysig_packet): Add sigclass 0x18,
9039 changed all callers due to a new argument.
9040 * keygen.c (write_keybinding): New
9041 (generate_subkeypair): Add functionality
9042 (ask_algo, ask_keysize, ask_valid_days): Broke out of generate_keypair
9043 (ask_user_id, ask_passphrase): Ditto.
9045 Thu May 21 11:26:13 1998 Werner Koch (wk@isil.d.shuttle.de)
9047 * g10.c,gpgd.c (main): Does now return an int, so that egcs does
9050 * armor.c (fake_packet): Removed erro message and add a noticed
9051 that this part should be fixed.
9053 * sign.c (sign_file): Compression now comes in front of encryption.
9054 * encode.c (encode_simple): Ditto.
9055 (encode_crypt): Ditto.
9057 Tue May 19 16:18:19 1998 Werner Koch (wk@isil.d.shuttle.de)
9059 * armor.c (fake_packet): Changed assertion to log_error
9061 Sat May 16 16:02:06 1998 Werner Koch (wk@isil.d.shuttle.de)
9063 * build-packet.c (build_packet): Add SUBKEY packets.
9065 Fri May 15 17:57:23 1998 Werner Koch (wk@isil.d.shuttle.de)
9067 * sign.c (hash_for): New and used in all places here.
9068 * main.h (DEFAULT_): new macros.
9069 * g10.c (opt.def_digest_algo): Now set to 0
9071 * compress.c (init_compress): Add support for algo 1
9072 * options.h (def_compress_algo): New
9073 * g10.c (main): New option --compress-algo
9075 Fri May 15 13:23:59 1998 Werner Koch (wk@isil.d.shuttle.de)
9077 * g10.c (print_mds): New feature to print only one hash,
9080 Thu May 14 15:36:24 1998 Werner Koch (wk@isil.d.shuttle.de)
9082 * misc.c (trap_unaligned) [__alpha__]: New
9083 * g10.c (trap_unaligned): Add call to this to track down SIGBUS
9084 on Alphas (to avoid the slow emulation code).
9086 Wed May 13 11:48:27 1998 Werner Koch (wk@isil.d.shuttle.de)
9088 * build-packet.c (do_signature): Support for v4 pakets.
9089 * keyedit.c (make_keysig_packet): Ditto.
9090 * build-packet.c (build_sig_subpkt_from_sig): New.
9091 (build_sig_subpkt): New.
9093 * elg.c (g10_elg_sign): removed keyid_from_skc.
9094 * dsa.c (g10_dsa_sign): Ditto.
9095 * rsa.c (g10_rsa_sign): Ditto.
9096 * keyedit.c (make_keysig_packet): Add call to keyid_from_skc
9098 * sign.c (clearsign_file): Support for v4 signatures.
9101 Wed May 6 09:31:24 1998 Werner Koch (wk@isil.d.shuttle.de)
9103 * parse-packet.c (do_parse): add support for 5 byte length leader.
9104 (parse_subpkt): Ditto.
9105 * build-packet.c (write_new_header): Ditto.
9107 * packet.h (SIGSUBPKT_): New constants.
9108 * parse-packet.c (parse_sig_subpkt): Changed name, made global,
9109 and arg to return packet length, chnaged all callers
9112 Tue May 5 22:11:59 1998 Werner Koch (wk@isil.d.shuttle.de)
9114 * keygen.c (gen_dsa): New.
9115 * build_packet.c (do_secret_cert): Support for DSA
9117 Mon May 4 19:01:25 1998 Werner Koch (wk@isil.d.shuttle.de)
9119 * compress.c: doubled buffer sizes
9120 * parse-packet.c (do_plaintext): now uses iobuf_read/write.
9122 Mon May 4 09:35:53 1998 Werner Koch (wk@isil.d.shuttle.de)
9124 * seskey.c (encode_md_value): Add optional argument hash_algo,
9125 changed all callers.
9127 * passphrase.c (make_dek_from_passphrase): Removed
9128 * (get_passhrase_hash): Changed name to passphrase_to_dek, add arg,
9129 changed all callers.
9131 * all: Introduced the new ELG identifier and added support for the
9132 encryption only one (which is okay to use by GNUPG for signatures).
9134 Sun May 3 17:50:26 1998 Werner Koch (wk@isil.d.shuttle.de)
9136 * packet.h (PKT_OLD_COMMENT): New name for type 16.
9137 * parse-packet.c (parse_comment): Now uses type 61
9139 Fri May 1 12:44:39 1998 Werner Koch,mobil,,, (wk@tobold)
9141 * packet.h (count): Chnaged s2k count from byte to u32.
9142 * seckey-cert.c (do_check): Changed s2k algo 3 to 4, changed
9144 * build-packet.c (do_secret_cert): ditto.
9145 * parse-packet.c (parse_certificate): ditto.
9147 * parse-packet.c (parse_symkeyenc): New.
9148 * build-packet.c (do_symkey_enc): New.
9150 Thu Apr 30 16:33:34 1998 Werner Koch (wk@isil.d.shuttle.de)
9152 * sign.c (clearsign_file): Fixed "Hash: " armor line.
9154 Tue Apr 28 14:27:42 1998 Werner Koch (wk@isil.d.shuttle.de)
9156 * parse-packet.c (parse_subpkt): Some new types.
9158 Mon Apr 27 12:53:59 1998 Werner Koch (wk@isil.d.shuttle.de)
9160 * g10.c (main): Add option --skip-verify.
9161 * mainproc.c (check_sig_and_print): Ditto.
9163 * g10.c (print_mds): Add output for Tiger.
9165 * sign.c (sign_file): Now uses partial length headers if used
9166 in canonical textmode (kludge to fix a bug).
9168 * parse-packet.c (parse_certificate): Changed BLOWFISH id.
9169 * pubkey-enc.c (get_session_key): Ditto.
9170 * seskey.c (make_session_key): Ditto.
9171 * seckey-cert.c (protect_secret_key,do_check): Add BLOWFISH160.
9173 Fri Apr 24 17:38:48 1998 Werner Koch,mobil,,, (wk@tobold)
9175 * sig-check.c (check_key_signature): Add sig-class 0x14..0x17
9176 * keyedit.c (sign-key): Some changes to start with support of
9177 the above new sig-classes.
9179 Wed Apr 22 09:01:57 1998 Werner Koch,mobil,,, (wk@tobold)
9181 * getkey.c (compare_name): add email matching
9183 Tue Apr 21 16:17:12 1998 Werner Koch,mobil,,, (wk@tobold)
9185 * armor.c (armor_filter): fixed missing last LF before CSUM.
9187 Thu Apr 9 11:35:22 1998 Werner Koch (wk@isil.d.shuttle.de)
9189 * seckey-cert.c (do_check): New; combines all the check functions
9192 * sign.c: removed all key management functions
9195 Thu Apr 9 09:49:36 1998 Werner Koch (wk@isil.d.shuttle.de)
9197 * import.c (chk_self_sigs): Changed an error message.
9199 Wed Apr 8 16:19:39 1998 Werner Koch (wk@isil.d.shuttle.de)
9201 * packet.h: packet structs now uses structs from the pubkey,
9202 removed all copy operations from packet to pubkey structs.
9204 Wed Apr 8 13:40:33 1998 Werner Koch (wk@isil.d.shuttle.de)
9206 * trustdb.c (verify_own_certs): Fixed "public key not found".
9208 * getkey.c (key_byname): New, combines public and secret key search.
9210 * pkclist.c (build_pkc_list): Add new arg usage, changed all callers.
9211 * skclist.c (build_skc_list): Likewise.
9213 * ringedit.c (find_keyblock, keyring_search2): Removed.
9215 Wed Apr 8 09:47:21 1998 Werner Koch (wk@isil.d.shuttle.de)
9217 * sig-check.c (do_check): Applied small fix from Ulf Möller.
9219 Tue Apr 7 19:28:07 1998 Werner Koch (wk@isil.d.shuttle.de)
9221 * cipher.c, encr-data.c, seckey-cert.c: Now uses cipher_xxxx
9222 functions instead of blowfish_xxx or cast_xxx
9224 Tue Apr 7 11:04:02 1998 Werner Koch (wk@isil.d.shuttle.de)
9226 * Makefile.am (g10maint.o): Changed the way it is created.
9228 Mon Apr 6 11:17:08 1998 Werner Koch (wk@isil.d.shuttle.de)
9231 * keygen.c (checksum,checksum_u16,checksum_mpi): Moved to misc.c
9232 * seckey-cert.c: Kludge for wrong ELG checksum implementation.
9234 Sat Apr 4 20:07:01 1998 Werner Koch (wk@isil.d.shuttle.de)
9236 * cipher.c (cipher_filter): Support for CAST5
9237 * encr-data.c (decode_filter): Ditto.
9238 (decrypt_data): Ditto.
9239 * seskey.c (make_session_key): Ditto.
9240 * seckey-cert.c (check_elg, check_dsa): Ditto,
9241 (protect_secret_key): Ditto.
9242 * pubkey-enc.c (get_session_key): Ditto.
9243 * passphrase.c (hash_passphrase): Ditto.
9245 Thu Apr 2 20:22:35 1998 Werner Koch (wk@isil.d.shuttle.de)
9249 Thu Apr 2 10:38:16 1998 Werner Koch (wk@isil.d.shuttle.de)
9251 * keygen.c (generate_keypair): Add valid_days stuff.
9252 * trustdb.c (check_trust): Add check for valid_days.
9254 Wed Apr 1 16:15:58 1998 Werner Koch (wk@isil.d.shuttle.de)
9256 * keygen.c (generate_keypair): Addional question whether the
9257 selected large keysize is really needed.
9259 Wed Apr 1 15:56:33 1998 Werner Koch (wk@isil.d.shuttle.de)
9261 * seckey-cert.c (protect_secret_key): merged protect_xxx to here.
9263 Wed Apr 1 10:34:46 1998 Werner Koch (wk@isil.d.shuttle.de)
9265 * Makefile.am (g10maint.c): Changed creation rule, so that it works
9266 on FreeBSD (missing CFLAGS).
9268 * parse-packet.c (parse_subkey): Removed.
9270 Thu Mar 19 15:22:36 1998 Werner Koch (wk@isil.d.shuttle.de)
9272 * ringedit.c (keyring_enum): Fixed problem with reading too
9273 many packets. Add support to read secret keyrings.
9275 * getkey.c (scan_keyring): Removed
9276 (lookup): New to replace scan_keyring.
9277 (scan_secret_keyring): Removed.
9280 Wed Mar 18 11:47:34 1998 Werner Koch (wk@isil.d.shuttle.de)
9282 * ringedit.c (enum_keyblocks): New read mode 11.
9284 * keyid.c (elg_fingerprint_md): New and changed all other functions
9285 to call this if the packet version is 4 or above.
9287 Tue Mar 17 20:46:16 1998 Werner Koch (wk@isil.d.shuttle.de)
9289 * parse-packet.c (parse_certificate): Add listing support for subkeys.
9291 Tue Mar 17 20:32:22 1998 Werner Koch (wk@isil.d.shuttle.de)
9293 * armor.c (is_armored): Allow marker packet.
9295 Thu Mar 12 13:36:49 1998 Werner Koch (wk@isil.d.shuttle.de)
9297 * trustdb.c (check_trust): Checks timestamp of pubkey.
9298 * sig-check. (do_check): Compares timestamps.
9300 Tue Mar 10 17:01:56 1998 Werner Koch (wk@isil.d.shuttle.de)
9302 * g10.c (main): Add call to init_signals.
9305 Mon Mar 9 12:43:42 1998 Werner Koch (wk@isil.d.shuttle.de)
9308 * packet.h, free-packet.c, parse-packet.c : Add support for DSA
9309 * sig-check.c, getkey.c, keyid.c, ringedit.c: Ditto.
9310 * seckey-cert.c: Ditto.
9312 * packet.h : Moved .digest_algo of signature packets to outer
9313 structure. Changed all references
9315 Sun Mar 8 13:06:42 1998 Werner Koch (wk@isil.d.shuttle.de)
9317 * openfile.c : Support for stdout filename "-".
9319 * mainproc.c (check_sig_and_print): Enhanced status output:
9320 * status.c (write_status_text): New.
9322 Fri Mar 6 16:10:54 1998 Werner Koch (wk@isil.d.shuttle.de)
9324 * kbnode.c (clone_kbnode): Fixed private_flag.
9326 * mainproc.c (list_node): Output of string "Revoked" as user-id.
9328 Fri Mar 6 14:26:39 1998 Werner Koch (wk@isil.d.shuttle.de)
9330 * g10.c (main): Add userids to "-kv" and cleaned up this stuff.
9332 Fri Mar 6 12:45:58 1998 Werner Koch (wk@isil.d.shuttle.de)
9334 * g10.c (main): Changed semantics of the list-... commands
9335 and added a new one. Removed option "-d"
9339 * trustdb.c (init_trustdb): Autocreate directory only if it ends
9342 Thu Mar 5 12:12:11 1998 Werner Koch (wk@isil.d.shuttle.de)
9344 * mainproc.c (do_proc_packets): New. Common part of proc_packet.
9345 (proc_signature_packets): special version to handle signature data.
9347 * g10.c (aVerify): New.
9348 * plaintext.c (hash_datafiles): New.
9349 * compress.c (handle_compressed): Add callback arg, changed caller.
9351 Thu Mar 5 10:20:06 1998 Werner Koch (wk@isil.d.shuttle.de)
9353 * g10.c: Is nom the common source for gpg and gpgm
9354 * g10maint.c: Removed
9355 * Makefile.am: Add rule to build g10maint.c
9357 Thu Mar 5 08:43:59 1998 Werner Koch (wk@isil.d.shuttle.de)
9359 * g10.c (main): Changed the way clear text sigs are faked.
9361 Wed Mar 4 19:47:37 1998 Werner Koch (wk@isil.d.shuttle.de)
9363 * g10maint.c (aMuttKeyList): New
9366 Wed Mar 4 17:20:33 1998 Werner Koch (wk@isil.d.shuttle.de)
9368 * getkey.c (get_pubkey_byname): Kludge to allow 0x prefix.
9370 Tue Mar 3 13:46:55 1998 Werner Koch (wk@isil.d.shuttle.de)
9372 * g10maint.c (main): New option --gen-random.
9374 Tue Mar 3 09:50:08 1998 Werner Koch (wk@isil.d.shuttle.de)
9376 * g10.c (aDeleteSecretKey): New.
9377 (aEditSig): Add option "--edit-key" as synonym for "--edit-sig".
9378 (aDeleteSecretKey): New.
9379 * getkey.c (seckey_available): New.
9380 * sign.c (delete_key): Enhanced to delete secret keys, changed all
9383 Mon Mar 2 21:23:48 1998 Werner Koch (wk@isil.d.shuttle.de)
9385 * pkc_list.c (build_pkc_list): Add interactive input of user ID.
9387 Mon Mar 2 20:54:05 1998 Werner Koch (wk@isil.d.shuttle.de)
9389 * pkclist.c (do_we_trust_pre): New.
9390 (add_ownertrust): Add message.
9391 * trustdb.c (enum_trust_web): Quick fix.
9393 Mon Mar 2 13:50:53 1998 Werner Koch (wk@isil.d.shuttle.de)
9395 * g10.c (main): New action aDeleteKey
9396 * sign.c (delete_key): New.
9398 Sun Mar 1 16:38:58 1998 Werner Koch (wk@isil.d.shuttle.de)
9400 * trustdb.c (do_check): No returns TRUST_UNDEFINED instead of
9403 Fri Feb 27 18:14:03 1998 Werner Koch (wk@isil.d.shuttle.de)
9405 * armor.c (find_header): Removed trailing CR on headers.
9407 Fri Feb 27 18:02:48 1998 Werner Koch (wk@isil.d.shuttle.de)
9409 * ringedit.c (keyring_search) [MINGW32]: Open and close file here
9410 because rename does not work on open files. Chnaged callers.
9412 Fri Feb 27 16:43:11 1998 Werner Koch (wk@isil.d.shuttle.de)
9414 * sig-check.c (do_check): Add an md_enable.
9415 * mainproc.c (do_check_sig): Use md_open in case of detached sig
9416 (proc_tree): Take detached sigs into account.
9418 Fri Feb 27 15:22:46 1998 Werner Koch (wk@isil.d.shuttle.de)
9420 * g10.c (main): Make use of GNUPGHOME envvar.
9421 * g10main.c (main): Ditto.
9423 Wed Feb 25 11:40:04 1998 Werner Koch (wk@isil.d.shuttle.de)
9425 * plaintext.c (ask_for_detached_datafile): add opt.verbose to
9428 * openfile.c (open_sigfile): Try also name ending in ".asc"
9430 Wed Feb 25 08:41:00 1998 Werner Koch (wk@isil.d.shuttle.de)
9432 * keygen.c (generate_keypair): Fixed memory overflow.
9434 Tue Feb 24 15:51:55 1998 Werner Koch (wk@isil.d.shuttle.de)
9436 * parse-packet.c (parse_certificate): Support for S2K.
9437 * build-packet.c (do_secret_cert): Ditto.
9438 * keygen.c (gen_elg): Ditto.
9439 * seckey-cert.c (check_elg): Ditto
9440 (protect_elg): Ditto.
9441 * sign.c (chnage_passphrase): Ditto.
9442 * passphrase.c (get_passphrase_hash): Support for a salt and
9443 changed all callers.
9444 (make_dek_from_passphrase): Ditto.
9446 Tue Feb 24 12:30:56 1998 Werner Koch (wk@isil.d.shuttle.de)
9448 * build-packet.c (hash_public_cert): Disabled debug output.
9450 Fri Feb 20 17:22:28 1998 Werner Koch (wk@isil.d.shuttle.de)
9452 * trustdb.c (init_trustdb) [MINGW32]: Removed 2nd mkdir arg.
9453 (keyring_copy) [MINGW32]: Add a remove prior to the renames.
9455 Wed Feb 18 18:39:02 1998 Werner Koch (wk@isil.d.shuttle.de)
9457 * Makefile.am (OMIT_DEPENDENCIES): New.
9459 * rsa.c: Replaced log_bug by BUG.
9461 Wed Feb 18 13:35:58 1998 Werner Koch (wk@isil.d.shuttle.de)
9463 * mainproc.c (do_check_sig): Now uses hash_public_cert.
9464 * parse-packet.c (parse_certificate): Removed hashing.
9465 * packet.h (public_cert): Removed hash variable.
9466 * free-packet.c (copy_public_cert, free_public_cert): Likewise.
9468 * sig-check.c (check_key_signatures): Changed semantics.
9470 Wed Feb 18 12:11:28 1998 Werner Koch (wk@isil.d.shuttle.de)
9472 * trustdb.c (do_check): Add handling for revocation certificates.
9473 (build_sigrecs): Ditto.
9474 (check_sigs): Ditto.
9476 Wed Feb 18 09:31:04 1998 Werner Koch (wk@isil.d.shuttle.de)
9478 * armor.c (armor_filter): Add afx->hdrlines.
9479 * revoke.c (gen_revoke): Add comment line.
9480 * dearmor.c (enarmor_file): Ditto.
9482 * sig-check.c (check_key_signature): Add handling for class 0x20.
9483 * mainproc.c : Ditto.
9485 Tue Feb 17 21:24:17 1998 Werner Koch (wk@isil.d.shuttle.de)
9487 * armor.c : Add header lines "...ARMORED FILE .."
9488 * dearmor.c (enarmor_file): New.
9489 * g10maint.c (main): New option "--enarmor"
9491 Tue Feb 17 19:03:33 1998 Werner Koch (wk@isil.d.shuttle.de)
9493 * mainproc.c : Changed a lot, because the packets are now stored
9494 a simple linlked list and not anymore in a complicatd tree structure.
9496 Tue Feb 17 10:14:48 1998 Werner Koch (wk@isil.d.shuttle.de)
9498 * free_packet.c (cmp_public_certs): New.
9499 (cmp_user_ids): New.
9501 * kbnode.c (clone_kbnode): New.
9502 (release_kbnode): Add clone support.
9504 * ringedit.c (find_keyblock_bypkc): New.
9506 * sign.c (remove_keysigs): Self signatures are now skipped,
9507 changed arguments and all callers.
9509 * import.c : Add functionality.
9511 Tue Feb 17 09:31:40 1998 Werner Koch (wk@isil.d.shuttle.de)
9513 * options.h (homedir): New option.
9514 * g10.c, g10maint.c, getkey.c, keygen.c, trustdb.c (opt.homedir): New.
9516 * trustdb.c (init_trustdb): mkdir for hoem directory
9517 (sign_private_data): Renamed "sig" to "g10.sig"
9519 Mon Feb 16 20:02:03 1998 Werner Koch (wk@isil.d.shuttle.de)
9521 * kbnode.c (commit_kbnode): New.
9522 (delete_kbnode): removed unused first arg. Changed all Callers.
9524 * ringedit.c (keyblock_resource_name): New.
9525 (get_keyblock_handle): NULL for filename returns default resource.
9527 Mon Feb 16 19:38:48 1998 Werner Koch (wk@isil.d.shuttle.de)
9529 * sig-check.s (check_key_signature): Now uses the supplied
9530 public key to check the signature and not any more the one
9533 (check_signature): Most work moved to do_check.
9535 Mon Feb 16 14:48:57 1998 Werner Koch (wk@isil.d.shuttle.de)
9537 * armor.c (find_header): Fixed another bug.
9539 Mon Feb 16 12:18:34 1998 Werner Koch (wk@isil.d.shuttle.de)
9541 * getkey.c (scan_keyring): Add handling of compressed keyrings.
9543 Mon Feb 16 10:44:51 1998 Werner Koch (wk@isil.d.shuttle.de)
9545 * g10.c, g10maint.c (strusage): Rewrote.
9548 Mon Feb 16 08:58:41 1998 Werner Koch (wk@isil.d.shuttle.de)
9550 * armor.c (use_armor): New.
9552 Sat Feb 14 14:30:57 1998 Werner Koch (wk@isil.d.shuttle.de)
9554 * mainproc.c (proc_tree): Sigclass fix.
9556 Sat Feb 14 14:16:33 1998 Werner Koch (wk@isil.d.shuttle.de)
9558 * armor.c (armor_filter): Changed version and comment string.
9559 * encode.c, sign.c, keygen.c: Changed all comment packet strings.
9561 Sat Feb 14 12:39:24 1998 Werner Koch (wk@isil.d.shuttle.de)
9563 * g10.c (aGenRevoke): New command.
9565 * sign.c (make_keysig_packet): Add support for sigclass 0x20.
9567 Fri Feb 13 20:18:14 1998 Werner Koch (wk@isil.d.shuttle.de)
9569 * ringedit.c (enum_keyblocks, keyring_enum): New.
9571 Fri Feb 13 19:33:40 1998 Werner Koch (wk@isil.d.shuttle.de)
9573 * export.c: Add functionality.
9575 * keygen.c (generate_keypair): Moved the leading comment behind the
9577 * kbnode.c (walk_kbnode): Fixed.
9579 * g10.c (main): listing armored keys now work.
9581 Fri Feb 13 16:17:43 1998 Werner Koch (wk@isil.d.shuttle.de)
9583 * parse-packet.c (parse_publickey, parse_signature): Fixed calls
9584 to mpi_read used for ELG b.
9586 Fri Feb 13 15:13:23 1998 Werner Koch (wk@isil.d.shuttle.de)
9588 * g10.c (main): changed formatting of help output.
9590 Thu Feb 12 22:24:42 1998 Werner Koch (wk@frodo)
9592 * pubkey-enc.c (get_session_key): rewritten
9595 Copyright 1998,1999,2000,2001,2002,2003,2004,2005,
9596 2006 Free Software Foundation, Inc.
9598 This file is free software; as a special exception the author gives
9599 unlimited permission to copy and/or distribute it, with or without
9600 modifications, as long as this notice is preserved.
9602 This file is distributed in the hope that it will be useful, but
9603 WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
9604 implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.