agent/
[gnupg.git] / g10 / ChangeLog
bloba6b6cb5b34dfdea0e727e1c54637b4963a8717fd
1 2007-05-19  Marcus Brinkmann  <marcus@g10code.de>
3         * passphrase.c (passphrase_get): Free ORIG_CODESET on error.
5 2007-05-16  Werner Koch  <wk@g10code.com>
7         * sig-check.c (check_backsig): Check the digest algorithm before
8         using it.  Fixed bug 797.
10 2007-05-09  Werner Koch  <wk@g10code.com>
12         * openfile.c (overwrite_filep, open_outfile) [W32]: Need to use
13         just "nul".  Though, I am pretty sure that some MSDOS versions
14         grok the extra /dev/.
16 2007-05-07  Werner Koch  <wk@g10code.com>
18         * openfile.c (open_outfile, overwrite_filep) [W32]: Use "/dev/nul".
20 2007-05-02  David Shaw  <dshaw@jabberwocky.com>
22         * packet.h, mainproc.c (reset_literals_seen): New function to
23         reset the literals count.
25         * verify.c (verify_one_file), decrypt.c (decrypt_messages): Call
26         it here so we allow multiple literals in --multifile mode (in
27         different files - not concatenated together).
29 2007-04-26  Marcus Brinkmann  <marcus@g10code.de>
31         * passphrase.c (passphrase_to_dek): Write missing passphrase
32         status message in case of cancellation.
34 2007-04-16  Werner Koch  <wk@g10code.com>
36         * build-packet.c (mpi_write): Made buffer a bit larger.  Reported
37         by Alexander Feigl.
39 2007-04-13  Werner Koch  <wk@g10code.com>
41         * call-agent.c (start_agent): Don't use log_error when using the
42         fallback hack to start the agent.  This is bug 782.
44 2007-04-05  David Shaw  <dshaw@jabberwocky.com>
46         From STABLE-BRANCH-1-4
48         * parse-packet.c (parse_marker): New.  Enforce that the marker
49         contains 'P', 'G', 'P', and nothing but.
50         (parse): Call it here.
51         (skip_packet): No longer need to handle marker packets here.
53 2007-03-14  David Shaw  <dshaw@jabberwocky.com>
55         From STABLE-BRANCH-1-4
57         * keyserver.c: Windows Vista doesn't grok X_OK and so fails
58         access() tests.  Previous versions interpreted X_OK as F_OK
59         anyway, so we'll just use F_OK directly.
61 2007-03-09  David Shaw  <dshaw@jabberwocky.com>
63         From STABLE-BRANCH-1-4
65         * parse-packet.c (parse_signature): It's hex.
67         * getkey.c (merge_selfsigs_subkey): Avoid listing the contents of
68         a backsig when list mode is on.  Noted by Timo Schulz.
70 2007-03-08  Werner Koch  <wk@g10code.com>
72         * plaintext.c (handle_plaintext): Add two extra fflush for stdout.
74 2007-03-08  David Shaw  <dshaw@jabberwocky.com>  (wk)
76         * keyedit.c (keyedit_menu): If we modify the keyblock (via
77         fix_keyblock() or collapse_uids()) make sure we reprocess the
78         keyblock so the flags are correct.  Noted by Robin H. Johnson.
80         * getkey.c (fixup_uidnode): Properly clear flags that don't apply
81         to us (revoked, expired) so that we can reprocess a uid.
83 2007-03-05  Werner Koch  <wk@g10code.com>
85         Converted this file to UTF-8.
86         
87         Ported David and my multiple messages changes from 1.4.7.
89         * options.h, gpg.c (main), mainproc.c (check_sig_and_print): Allow
90         multiple sig verification again as this is protected via the
91         multiple-messages code.  New option --allow-multiple-messages and
92         --no variant.
93         * status.h (STATUS_ERROR): New status code.
94         * status.c (get_status_string): Ditto.
95         * mainproc.c (proc_plaintext): Emit it if multiple messages are
96         detected. Error out if more than one plaintext packet is
97         encountered.    
98         * mainproc.c (literals_seen): New.
100 2007-02-26  Werner Koch  <wk@g10code.com>
102         * gpg.c (main): Add verify option show-primary-uid-only.
103         * options.h (VERIFY_SHOW_PRIMARY_UID_ONLY): New.
104         * mainproc.c (check_sig_and_print): Implement it.
106 2007-02-22  Werner Koch  <wk@g10code.com>
108         * encr-data.c (decrypt_data): Correctly test for unknown algorithm.
109         * import.c (check_prefs): Ditto.
110         * keyedit.c (show_prefs): Ditto.
111         * mainproc.c (proc_symkey_enc): Ditto.
113 2007-02-06  Werner Koch  <wk@g10code.com>
115         * export.c (do_export_stream): Allow reset-subkey-passwd along
116         with sexp-format.
118 2007-02-04  Werner Koch  <wk@g10code.com>
120         * parse-packet.c (parse_signature): Limit bytes read for an
121         unknown alogorithm.  Fixes Debian bug#402592.
123 2007-01-31  Werner Koch  <wk@g10code.com>
125         * verify.c (verify_signatures): Do no dereference a NULL afx.
127         * passphrase.c (passphrase_get): Set the cancel flag on all error
128         from the agent.  Fixes a bug reported by Tom Duerbusch.
130 2007-01-30  Werner Koch  <wk@g10code.com>
132         * status.c (write_status_begin_signing): New.
133         * sign.c (sign_file, sign_symencrypt_file): Call it.
134         * textfilter.c (copy_clearsig_text): Call it.
136         * call-agent.c (agent_scd_pksign): Pass --hash-rmd160 to SCD if
137         required.
139         * gpg.c (main): Let --no-use-agent and --gpg-agent-info print a
140         warning.  
141         * misc.c (obsolete_option): New.
143 2007-01-29  Werner Koch  <wk@g10code.com>
145         * pkclist.c (do_we_trust_pre): Issue a user-id-hint status code. 
147 2007-01-15  Werner Koch  <wk@g10code.com>
149         * parse-packet.c (read_protected_v3_mpi): Make sure to stop
150         reading even for corrupted packets.
151         * keygen.c (generate_user_id): Need to allocate one byte more.
152         Reported by Felix von Leitner.
154 2006-12-21  Werner Koch  <wk@g10code.com>
156         * gpg.c (main): New command --server.
157         * gpg.h (struct server_control_s, ctrl_t): New.
158         * server.c: New.
159         * verify.c (gpg_verify): New.
160         * mainproc.c (mainproc_context): Made SIGNED_DATA a structure.
161         (proc_signature_packets_by_fd): New.
162         (proc_compressed_cb): Divert depending on SIGNED_DATA.
163         * plaintext.c (hash_datafile_by_fd): New.
164         * mainproc.c (proc_tree): Use it here.
166         * verify.c (verify_signatures): Init AFX only when needed.
167         Don't leak a context on error.
168         (verify_one_file): Don't leak a context on error.
170 2006-12-07  Werner Koch  <wk@g10code.com>
172         * openfile.c (copy_options_file): Use log_info instead of
173         log_error to avoid an error return of gpg due to a missing
174         skeleton file.
176 2006-12-07  David Shaw  <dshaw@jabberwocky.com>
178         * Makefile.am: Link to iconv for jnlib dependency.
180 2006-12-05  Werner Koch  <wk@g10code.com>
182         * passphrase.c (passphrase_to_dek): Handle a Cancel request
183         correctly.  [Bug#737]
184         * mainproc.c (proc_symkey_enc): Removed workaround for bogus cancel
185         processing.
186         * encode.c (encode_simple): Distinguish error message between
187         cancel and invalid passphrase.
188         (setup_symkey): Ditto.
189         * sign.c (sign_symencrypt_file): Ditto
190         * keyedit.c (change_passphrase): Allow cancellation.
191         * keygen.c (do_ask_passphrase): New arg R_CANCELED.
192         (generate_keypair): Handle a passphrase cancellation.
193         (generate_raw_key): Ditto.
194         (generate_subkeypair): Ditto.
196 2006-12-04  Werner Koch  <wk@g10code.com>
198         * filter.h (armor_filter_context_t): New element REFCOUNT.
199         * armor.c (armor_filter): Made static.
200         (push_armor_filter, release_armor_context, new_armor_context): New.
201         (armor_filter): Release the context.
202         * gpg.c (main): Use new armor context functions and
203         push_armor_filter.
204         * export.c (do_export): Ditto.
205         * encode.c (encode_simple, encode_crypt): Ditto.
206         * decrypt.c (decrypt_message, decrypt_messages): Ditto.
207         * dearmor.c (dearmor_file, enarmor_file): Ditto.
208         * verify.c (verify_signatures, verify_one_file): Ditto.
209         * sign.c (sign_file, clearsign_file, sign_symencrypt_file): Ditto.
210         * revoke.c (gen_desig_revoke, gen_revoke): Ditto.
211         * keyserver.c (keyserver_spawn): Ditto.
212         * keygen.c (output_control_s): Turn AFX fields into pointers.
213         (read_parameter_file): Allocate and release AFX fields.
214         (do_generate_keypair): Use push_armor_filter.
215         * import.c (import): Replace iobuf_push_filter2 hack by the new
216         armor context stuff.
218 2006-12-03  Werner Koch  <wk@g10code.com>
220         * filter.h: New element REFCOUNT.
221         (handle_progress): Remove prototype.
222         * progress.c (new_progress_context, release_progress_context): New.
223         (progress_filter): Use new function to release context.  Made static.
224         (handle_progress): Bumb reference counter.  No more check for
225         enabled progress as this is handled by new_progress_context.
226         * verify.c (verify_signatures, verify_one_file): Replace stack
227         based progress context by a heap based one.
228         * sign.c (sign_file, clearsign_file, sign_symencrypt_file): Ditto.
229         * plaintext.c (ask_for_detached_datafile, hash_datafiles): Ditto.
230         * encode.c (encode_simple, encode_crypt): Ditto.
231         * decrypt.c (decrypt_message, decrypt_messages): Ditto. 
233         * keyedit.c (menu_clean): Made strings translatable.
235 2006-12-03  David Shaw  <dshaw@jabberwocky.com>
237         * keyedit.c (menu_clean): Show "already minimized" rather than
238         "already clean" when a minimized key is minimized again.  From
239         Dirk Traulsen.
241 2006-12-02  David Shaw  <dshaw@jabberwocky.com>
243         * options.h, gpg.c (main), passphrase.c (passphrase_to_dek): Add
244         --passphrase-repeat option to control how many times gpg will
245         re-prompt for a passphrase to ensure the user has typed it
246         correctly.  Defaults to 1.
248 2006-12-02  Werner Koch  <wk@g10code.com>
250         * encr-data.c: Allocate DFX context on the heap and not on the
251         stack.  Changes at several places.  Fixes CVE-2006-6235.
252         
253 2006-11-27  Werner Koch  <wk@g10code.com>
255         * openfile.c (ask_outfile_name): Fixed buffer overflow occurring
256         if make_printable_string returns a longer string.  Fixes bug 728.
258 2006-11-21  Werner Koch  <wk@g10code.com>
260         * Makefile.am (needed_libs): libgnu needs to come after libcommon.
262         * keygen.c (ask_expire_interval): Print y2038 warning only for 32
263         bit time_t.
264         (save_unprotected_key_to_card): Made RSA_N_LEN et al a size_t.
265         Cast printf args.
266         (get_parameter_algo): Allow "ELG" as alias for "ELG-E".
268         * seckey-cert.c (do_check): Made NBYTES a size_t.
269         (do_check): Made NDATA a size_t.
270         (protect_secret_key): Made NARR a size_t.
271         (protect_secret_key): Made NVYES a size_t.
272         * pubkey-enc.c (get_it): Made INDATALEN a size_t. 
273         (get_it): Made NFRAME a size_t.
274         * keyid.c (hash_public_key): Made NBITS an unsigned int.
275         * misc.c (checksum_mpi): Made NBYTES a size_t. 
276         (openpgp_pk_test_algo2): Made USE_BUF a size_t.
277         * seskey.c (encode_session_key): Made NFRAME a size_t.
278         (do_encode_md): Ditto.
279         (encode_md_value): Cast size_t argument of printf.
280         (encode_md_value): Ditto.
282 2006-11-10  Werner Koch  <wk@g10code.com>
284         * parse-packet.c (mpi_read): Changed NREAD to size_t to match the
285         gcry_mpi-scan prototype. 
286         (mpi_read): Fixed double increment of bytes read to correctly
287         detect overlong MPIs.
289 2006-11-05  Werner Koch  <wk@g10code.com>
291         * gpg.c (main): Remove the default --require-cross-certification.
292         * options.skel: Enable require-cross-certification.
294 2006-10-31  Werner Koch  <wk@g10code.com>
296         * pkclist.c (warn_missing_aes_from_pklist): New.
297         * encode.c (encrypt_filter, encode_crypt): Use it here.
299 2006-10-27  Werner Koch  <wk@g10code.com>
301         * pkclist.c (warn_missing_mdc_from_pklist): New.
302         * encode.c (use_mdc): Use it here.
304 2006-10-24  Marcus Brinkmann  <marcus@g10code.de>
306         * Makefile.am (AM_CFLAGS): Add $(LIBASSUAN_CFLAGS).
308 2006-10-23  Werner Koch  <wk@g10code.com>
310         * gpg.c (main): New command --gpgconf-test.
312         * Makefile.am (bzip2_source): New.
314 2006-10-20  Werner Koch  <wk@g10code.com>
316         * getkey.c (classify_user_id): Reserve '&' for search by keygrip.
318 2006-10-19  Werner Koch  <wk@g10code.com>
320         * keygen.c (get_parameter_algo): Add special case for ELG_E which
321         is not supported by libgcrypt's mapping function.
323 2006-10-18  Werner Koch  <wk@g10code.com>
325         * keyid.c (v3_keyid): Don't use mempcy as we need to hold the
326         keyids in the native endian format.
328         * import.c (import_print_stats): Use log_printf.
330         * build-packet.c (do_public_key): Care about mpi_write errors.
331         (do_secret_key, do_pubkey_enc, do_signature): Ditto. 
332         (mpi_write): Print an extra warning on error.
334 2006-10-17  Werner Koch  <wk@g10code.com>
336         * Makefile.am (LDADD): Replaced W32LIBS by NETLIBS.
338 2006-10-12  David Shaw  <dshaw@jabberwocky.com>
340         * parse-packet.c (parse_symkeyenc): Show the unpacked as well as
341         the packed s2k iteration count.
343         * main.h, options.h, gpg.c (encode_s2k_iterations, main),
344         passphrase.c (hash_passphrase): Add --s2k-count option to specify
345         the number of s2k hash iterations.
347 2006-10-08  Werner Koch  <wk@g10code.com>
349         * gpgv.c: Remove the tty stubs as we are now required to link to
350         tty anyway (it is included in libcommand and has dependencies to
351         other modules as well).
353         * keyedit.c (keyedit_menu): Use keyedit_completion only if
354         readline is available.  It would be better to move this code into
355         gpgrlhelp.c
357 2006-10-06  Werner Koch  <wk@g10code.com>
359         * Makefile.am (AM_CFLAGS): Use PTH version of libassuan.
361 2006-10-06  David Shaw  <dshaw@jabberwocky.com>
363         * keyserver.c (keyserver_spawn): Write the 16-digit keyid rather
364         than whatever key selector the user used on the command line.
366 2006-10-05  Werner Koch  <wk@g10code.com>
368         * status.c (progress_cb): Changed to libgcrypt API.
369         (set_status_fd): Register the progress cb.
371         * seskey.c (encode_md_value): Check that the hash algo is valid
372         before getting the OID. 
374 2006-10-04  Werner Koch  <wk@g10code.com>
376         * passphrase.c: Allow for a static passphrase in batch mode.
377         
378         * call-agent.c (agent_havekey): Removed.
379         (percent_plus_escape): New.
380         (agent_get_passphrase): New.
381         (agent_clear_passphrase): New.
383         * passphrase.c: Changed so that we always require the agent.
384         (agent_send_option, agent_send_all_options, agent_open): Removed.
385         (agent_get_passphrase): Cleaned up.  Does now use the call-agent
386         functions.  Renamed to
387         (passphrase_get): .. this.  Changed all callers.
388         (passphrase_clear_cache): Rewritten.
389         (passphrase_to_dek, hash_passphrase): Re-indented.
391         * gpg.c (main): Made --use-agent a dummy option.
392         * seckey-cert.c (check_secret_key): We require the agent, so always
393         allow for 3 tries.
395         * gpg.c (main): Print a warning if -sat has been used.
396         (main): Removed the special treatment of the -k option. -k is now
397         an alias for --list-keys.
398         (main): Removed --list-ownertrust.
400 2006-10-02  Werner Koch  <wk@g10code.com>
402         * encr-data.c (decrypt_data, mdc_decode_filter): Check the MDC
403         right here and don't let parse-packet handle the MDC.
405 2006-09-29  Werner Koch  <wk@g10code.com>
407         * compress.c (do_uncompress): Removed use of Z_PARTIAL_FLUSH.
408         This is outdated and old zlib versions which still require it have
409         security problems.
411 2006-09-27  Werner Koch  <wk@g10code.com>
413         Replaced all STRLIST by strlist_t.
415 2006-09-21  Werner Koch  <wk@g10code.com>
417         * signal.c (got_fatal_signal): Replaced readline stuff by a tty
418         function.
420         * Makefile.am (LDADD): Include libgpgrl.a.
422         * gpg.c (main): Call gpg_rl_initialize.
424         * keyedit.c: Removed double inclusion of stdio.h.
426 2006-09-20  Werner Koch  <wk@g10code.com>
428         * call-agent.c: Include asshelp.h.
429         (start_agent): Use send_pinentry_environment.
431 2006-09-14  Werner Koch  <wk@g10code.com>
433         Replaced all call gpg_error_from_errno(errno) by
434         gpg_error_from_syserror().
436 2006-09-13  Werner Koch  <wk@g10code.com>
438         * gpg.c (main): Made --require-cross-certification the default. 
440 2006-09-06  Marcus Brinkmann  <marcus@g10code.de>
442         * Makefile.am (gpg2_LDADD, gpgv2_LDADD): Replace -lassuan and
443         -lgpg-error with $(LIBASSUAN_LIBS) and $(GPG_ERROR_LIBS).
444         (AM_CFLAGS): Add $(LIBASSUAN_CFLAGS) and $(GPG_ERROR_CFLAGS).
446 2006-09-06  Werner Koch  <wk@g10code.com>
448         * gpg.c (main): Enable new assuan API.
449         * call-agent.c: Changed to new Assuan API.
451 2006-09-01  Werner Koch  <wk@g10code.com>
453         * call-agent.c: Do not force using the pipe server.
455         * gpg.c (main): Enable card related commands.
457 2006-08-22  Werner Koch  <wk@g10code.com>
459         * mainproc.c (proc_plaintext): Fixed a #warning
461 2006-08-21  Werner Koch  <wk@g10code.com>
463         * skclist.c (random_is_faked): Implemented.
464         (is_insecure): Also test for the old uppercase version of the
465         insecure string.
466         * gpg.c (main): Renamed --quick-random to debug-quick-quick-random.
468         * gpg.c (print_mds): Do not use the USE_SHA macros.
470         * mainproc.c (proc_encrypted): Remove assign inside condition for
471         better readibility.
473         * packet.h: Moved consts to new header ../common/openpgpdefs.h.
475 2006-08-16  Werner Koch  <wk@g10code.com>
477         * keyserver.c (GPGKEYS_PREFIX): Rename to gpg2keys_.  This is so
478         that we can install helpers from 1.4 and 2 without conflicts and
479         first of all don't get lost with weird bug reports.
481         * keyid.c (serialno_and_fpr_from_sk): New. Actually lost during
482         the last 1.4 to 1.9 merge.
484         * gpg.c (list_config): Output ccid-reader-id only for gnupg 1.
486         * call-agent.c (agent_scd_writekey): New.
487         (inq_writekey_parms): New.
489         * gpgv.c: Include call-agent.h for use by stubs.
491         * misc.c: Include call-agent.h for use by get_signature_count.
493 2006-07-27  Werner Koch  <wk@g10code.com>
495         * parse-packet.c (parse_comment): Cap comments at 65k.
496         (parse_gpg_control): Skip too large control packets.
498 2006-07-24  David Shaw  <dshaw@jabberwocky.com>  (wk)
500         * keydb.h, pkclist.c (select_algo_from_prefs, algo_available):
501         Pass a union for preference hints rather than doing void * games.
503         * sign.c (sign_file): Use it here.
505         * sign.c (sign_file): When signing with multiple DSA keys, one
506         being DSA1 and one being DSA2 and encrypting at the same time, if
507         the recipient preferences give a hash that can work with the DSA2
508         key, then allow the DSA1 key to be promoted rather than giving up
509         and using hash_for().
511         * pkclist.c (algo_available): Automatically enable DSA2 mode when
512         handling a key that clearly isn't DSA1 (i.e. q!=160).
514 2006-06-30  Werner Koch  <wk@g10code.com>
516         * misc.c (checksum_mpi): No need for nbits as they are alredy
517         included in the buffer.
519 2006-06-29  Werner Koch  <wk@g10code.com>
521         * parse-packet.c (parse_signature, parse_key): Need store the
522         length of opaque data as number of bits. 
523         * card-util.c (card_store_subkey): Ditto.
525         * mainproc.c (print_pkenc_list, check_sig_and_print): Replaced
526         log_get_stream by calls to log_printf.  This avoids the extra LFs
527         inserted by the logging function. They are a bit too smart
528         sometimes.
529         * pkclist.c (do_show_revocation_reason): Print final LF through
530         log_printf to avoid extra LFs.
531         * pubkey-enc.c (get_it): Ditto.
533         * seskey.c (encode_md_value): Fix call to gcry.
535 2006-06-27  Werner Koch  <wk@g10code.com>
537         Applied patches from 1.4.x (2006-05-22 to 2006-06-23) from David:
539         * keygen.c (keygen_upd_std_prefs, keygen_add_std_prefs)
540         (proc_parameter_file): Add --default-keyserver-url to specify a
541         keyserver URL at key generation time, and "Keyserver:" keyword for
542         doing the same through a batch file.
543         * options.h, gpg.c (main): Ditto.
545         * sign.c (do_sign): For now don't accept a truncated hash even
546         for DSA1 keys (be liberal in what you accept, etc).
548         * import.c (import_one): Add a flag (from_sk) so we don't check
549         prefs on an autoconverted public key.  The check should only
550         happen on the sk side.  Noted by Dirk Traulsen.
552         * keygen.c (gen_card_key): Add optional argument to return a
553         pointer (not a copy) of the stub secret key for the secret key we
554         just generated on the card.
555         (generate_card_subkeypair): Use it here so that the signing key on
556         the card can use the card to generate the 0x19 backsig on the
557         primary key.  Noted by Janko Heilgeist and Jonas Oberg.
559         * parse-packet.c (parse_user_id): Cap the user ID size at 2048
560         bytes.  This prevents a memory allocation attack with a very large
561         user ID.  A very large packet length could even cause the
562         allocation (a u32) to wrap around to a small number.  Noted by
563         Evgeny Legerov on full-disclosure.
565         * keygen.c (gen_dsa): Allow generating DSA2 keys.  Allow
566         specifying sizes > 1024 when --enable-dsa2 is set.  The size of q
567         is set automatically based on the key size.
568         (ask_keysize, generate_keypair): Ask for DSA size when
569         --enable-dsa2 is set.
571         * exec.c (make_tempdir) [W32]: Fix bug with a temporary directory
572         on W32 that is over 256 bytes long.  Noted by Israel G. Lugo.
574         * gpg.c (reopen_std): New function to reopen fd 0, 1, or 2 if we
575         are called with them closed.  This is to protect our
576         keyring/trustdb files from corruption if they get attached to one
577         of the standard fds.  Print a warning if possible that this has
578         happened, and fail completely if we cannot reopen (should never
579         happen).
580         (main): Call it here.
581         
582         * parse-packet.c (dump_sig_subpkt, parse_signature): Fix meaning
583         of key expiration and sig expiration subpackets - zero means
584         "never expire" according to 2440, not "expire instantly".
585         * build-packet.c (build_sig_subpkt_from_sig): Ditto.
586         * getkey.c (fixup_uidnode, merge_selfsigs_main)
587         (merge_selfsigs_subkey): Ditto.
588         * keygen.c (keygen_add_key_expire): Ditto.
590         * getkey.c (get_pubkey_byname)
591         * import.c (import_one): Fix key selection problem when
592         auto-key-locate returns a list of keys, not all of which are
593         usable (revoked, expired, etc).  Noted by Simon Josefsson.
595 2006-05-24  Werner Koch  <wk@g10code.com>
597         * keyid.c (hash_public_key): Do not double hash the length bytes,
598         they are already included by mpi_print.
600         * misc.c (openpgp_pk_test_algo2): Get test call right.
602         * misc.c (string_to_cipher_algo, string_to_digest_algo): New.
603         * keygen.c (keygen_set_std_prefs): use them here.
604         * gpg.c (main): and here.
606 2006-05-23  Werner Koch  <wk@g10code.com>
608         * card-util.c (generate_card_keys): Removed temporary kludge for
609         generate_keypair.
611         * call-agent.c (agent_scd_setattr): Add arg SERIALNO.
612         (agent_scd_genkey): Ditto.
613         (agent_scd_change_pin): Ditto.
615         * call-agent.h (struct agent_card_info_s): Updated to match the
616         one of 1.4.3.
618         * Makefile.am (LDADD): Include ZLIBS.
620         * gpgv.c: Removed stubs not anymore useful due to libgcrypt.
622 2006-05-22  Werner Koch  <wk@g10code.com>
624         * keyserver.c (keyidlist): Replaced mpi_get_keyid by v3_keyid.
625         * keydb.h (v3_keyid): Added.
627         * import.c (import): Better initialize KEYBLOCK as to quiet
628         compiler warning.
630         * skclist.c (random_is_faked): New.
632         * mainproc.c: Include pka.h.
634 2006-05-19  Werner Koch  <wk@g10code.com>
636         * misc.c (openpgp_pk_test_algo2): Need to use gcry_pk_algo_info
637         directly.
638         (string_count_chr): New.
640         * armor.c (parse_header_line): Use renamed function
641         length_sans_trailing_ws.
643         * options.h, gpg.c: Option --strict is not used thus removed code
644         but kept option.
646 2006-04-28  David Shaw  <dshaw@jabberwocky.com>  (wk)
647         
648         * keyserver.c (direct_uri_map): New.
649         (keyserver_spawn): Used here to add "_uri" to certain gpgkeys_xxx
650         helpers when the meaning is different if a path is provided (i.e. 
651         ldap).
652         (keyserver_import_cert): Show warning if there is a CERT
653         fingerprint, but no --keyserver set.
655         * keyserver.c: Fix build problem with platforms that stick libcurl
656         in a place not in the regular include search path.
658         * options.h, gpg.c (main): Add --enable-dsa2 and --disable-dsa2.
659         Defaults to disable.
661         * pkclist.c (algo_available): If --enable-dsa2 is set, we're
662         allowed to truncate hashes to fit DSA keys.
664         * sign.c (match_dsa_hash): New.  Return the best match hash for a
665         given q size.
666         (do_sign, hash_for, sign_file): When signing with a DSA key, if it
667         has q==160, assume it is an old DSA key and don't allow truncation
668         unless --enable-dsa2 is also set.  q!=160 always allows truncation
669         since they must be DSA2 keys.
670         (make_keysig_packet): If the user doesn't specify a
671         --cert-digest-algo, use match_dsa_hash to pick the best hash for
672         key signatures.
674         * gpg.c (print_mds): Add SHA-224.
675         * armor.c (armor_filter, parse_hash_header): Add SHA-224.
677         * sign.c (write_plaintext_packet):
678         Factor common literal packet setup code from here, to...
679         * encode.c (encode_simple): .. there.
680         
681         * main.h, plaintext.c (setup_plaintext_name): Here. New. Make sure
682         the literal packet filename field is UTF-8 encoded.
684         * options.h, gpg.c (main): Make sure --set-filename is UTF-8
685         encoded and note when filenames are already UTF-8.
687         * keyedit.c (menu_backsign): Give some more verbose errors when we
688         have no need to backsign.
690         * getkey.c (parse_auto_key_locate): Fix dupe-removal code.
692         * keyedit.c (menu_backsign): Allow backsigning even if the secret
693         subkey doesn't have a binding signature.
695         * armor.c (radix64_read): Don't report EOF when reading only a pad
696         (=) character.  The EOF actually starts after the pad.
698         * gpg.c (main): Make --export, --send-keys, --recv-keys,
699         --refresh-keys, and --fetch-keys follow their arguments from left
700         to right.  Suggested by Peter Palfrader.
702 2006-04-18  Werner Koch  <wk@g10code.com>
704         * tdbio.c (open_db, migrate_from_v2): Removed feature to migration
705         from old trustdb version 2.
707         * gpg.c, mainproc.c: Removed pipemode feature.
709         * status.c: Removed shared memory coprocess stuff
711         Merged with current gpg 1.4.3 code.
712         
713         * keygen.c, keyid.c, misc.c, openfile.c, verify.c, trustdb.c
714         * textfilter.c, tdbio.c, tdbdump.c, status.c, skclist.c, signal.c
715         * sign.c, sig-check.c, seskey.c, seckey-cert.c, revoke.c
716         * pubkey-enc.c, progress.c, plaintext.c, pkclist.c, photoid.c
717         * passphrase.c, parse-packet.c, mdfilter.c, mainproc.c
718         * keyserver.c, keyring.c, keylist.c, keyedit.c, keydb.c, kbnode.c
719         * import.c, getkey.c, gpgv.c, helptext.c, free-packet.c
720         * build-packet.c, cipher.c, compress.c, dearmor.c, decrypt.c
721         * delkey.c, encr-data.c, encode.c, exec.c, export.c
722         * gpg.c, armor.c: Updated from gnupg-1.4.3 and merged back gcry and
723         gnupg-1.9 related changes.
724         * trustdb.h, tdbio.h, status.h, photoid.h, packet.h, options.h
725         * main.h, keyserver-internal.h, keyring.h, keydb.h, filter.h
726         * exec.h: Ditto.
727         * global.h: Removed after merging constants with gpg.h.
728         * comment.c, pipemode.c: Removed.
729         * card-util.c: Updated from gnupg-1.4.3.
730         * compress-bz2.c: New.
731         
732 2005-06-15  Werner Koch  <wk@g10code.com>
734         * g10.c (print_hashline, add_group): Fixes for signed/unsigned
735         pointer mismatch warnings.
737 2005-06-01  Werner Koch  <wk@g10code.com>
739         * mkdtemp.c: Removed.
740         * exec.c: Include mkdtemp.h
742 2004-12-21  Werner Koch  <wk@g10code.com>
744         * gpgv.c, g10.c (main): Use default_hoemdir ().
746 2004-12-18  Werner Koch  <wk@g10code.com>
748         * gpg.h (map_assuan_err): Define in terms of
749         map_assuan_err_with_source.
751 2004-12-15  Werner Koch  <wk@g10code.com>
753         * Makefile.am (LDADD): Remove ZLIBS.
755 2004-10-22  Werner Koch  <wk@g10code.com>
757         * g10.c (main): Display a bit fat warning that this gpg should not
758         be used.
760         * card-util.c (fetch_url): Disable for gnupg 1.9
761         (card_generate_subkey): Ditto.
762         (card_store_subkey): Ditto.
764 2004-09-30  Werner Koch  <wk@g10code.com>
766         * gpgv.c (i18n_init): Always use LC_ALL.
768         * Makefile.am (LDADD): Adjusted for gettext 0.14.
770 2004-09-20  Werner Koch  <wk@g10code.com>
772         * keyedit.c (show_key_with_all_names): Print the card S/N.
774 2004-09-11  Moritz Schulte  <moritz@g10code.com>
776         * openfile.c (copy_options_file): Fixed last commit (added a `+').
778 2004-08-31  Werner Koch  <wk@g10code.de>
780         * openfile.c (copy_options_file): Use gpg-conf.skel. Better take
781         the length of SKELEXT into account, someone might make it larger.
782         * Makefile.am: Install options.skel as gpg-conf.skel.
784 2004-08-18  Marcus Brinkmann  <marcus@g10code.de>
786         * passphrase.c (agent_get_passphrase): Fix detection of gpg-agent
787         cancellation.
789 2004-07-01  Werner Koch  <wk@gnupg.org>
791         * card-util.c (change_login): Kludge to allow reading data from a
792         file.
793         (card_edit): Pass ARG_STRING to change_login.
794         (card_status): Print CA fingerprints.
795         (change_cafpr): New.
796         (card_edit): New command CAFPR.
798         * call-agent.h: Add members for CA fingerprints.
799         * call-agent.c (agent_release_card_info): Invalid them.
800         (learn_status_cb): Store them.
802 2004-04-30  Werner Koch  <wk@gnupg.org>
804         * g10.c (main) <gpgconf>: Use gpg.conf and not /dev/null as
805         default filename.
807 2004-04-28  Werner Koch  <wk@gnupg.org>
809         * card-util.c (card_edit): Remove PIN verification.
810         (generate_card_keys): New arg SERIALNO.  Do PIN verification here
811         after resetting forced_chv1.
813 2004-04-26  Werner Koch  <wk@gnupg.org>
815         * card-util.c (change_name): Check that the NAME is not too long.
816         (change_url): Likewise.
817         (change_login): Likewise.
819 2004-03-23  Werner Koch  <wk@gnupg.org>
821         * g10.c: New options --gpgconf-list, --debug-level and --log-file
822         (set_debug): Add arg DEBUG_LEVEL.
823         (main): Look at less and less version specific config files.  From
824         gnupg 1.3.
826 2004-02-17  Werner Koch  <wk@gnupg.org>
828         * call-agent.c (start_agent): Ignore an empty GPG_AGENT_INFO.
829         * passphrase.c (agent_open): Ditto.
831 2004-02-12  Werner Koch  <wk@gnupg.org>
833         * gpgv.c: Removed g10defs.h.
835         * Makefile.am: Include cmacros.am for common flags.
837 2004-02-11  Werner Koch  <wk@gnupg.org>
839         * openfile.c (try_make_homedir): Use GNUPG_DEFAULT_HOMEDIR.
840         * gpgv.c (main): Ditto.
841         * g10.c (main): Ditto.
843 2004-01-19  Moritz Schulte  <mo@g10code.com>
845         * keygen.c (do_generate_keypair): Print member fname, instead of
846         newfname, again.
847         (do_generate_keypair): Don't try to execute certain pieces of code
848         in case an error occured.
849         (gen_card_key): Don't print out a message, which is already
850         printed by do_generate_keypair().
852 2004-01-18  Moritz Schulte  <mo@g10code.com>
854         * keygen.c (do_generate_keypair): Print member fname, instead of
855         newfname.
857 2003-12-17  Werner Koch  <wk@gnupg.org>
859         * card-util.c (print_name): Fixed bad format string usage.
860         (print_isoname): Ditto.
862         * trustdb.c (check_regexp): s/exp/expr/.
864         * keyedit.c (trustsig_prompt): Removed a "> 255" term; it is
865         always false due to the data type.
866         
867         * passphrase.c (agent_get_passphrase): Use xasprintf and avoid
868         non-literal format strings.
870         * tdbio.c (upd_hashtable, drop_from_hashtable, lookup_hashtable):
871         Fixed log_error format string bugs.  Kudos to the now working
872         gcc-3.3 -Wformat-nonliteral and Florian Weimer's investigations in
873         gnupg 1.2.3.
875 2003-12-15  Werner Koch  <wk@gnupg.org>
877         * seckey-cert.c (protect_secret_key): Use gry_create_nonce for the
878         IV; there is not need for real strong random here and it even
879         better protect the random bits used for the key.
881 2003-11-16  Moritz Schulte  <mo@g10code.com>
883         * signal.c: Removed unused file.
885 2003-11-10  Moritz Schulte  <mo@g10code.com>
887         * Makefile.am (INCLUDES): Added: @LIBGCRYPT_CFLAGS@.
889 2003-10-25  Werner Koch  <wk@gnupg.org>
891         * call-agent.c (learn_status_cb, scd_genkey_cb): Fixed faulty use
892         of !spacep().
894 2003-10-20  Werner Koch  <wk@gnupg.org>
896         * card-util.c (card_edit): New command "passwd".  Add logic to
897         check the PIN in advance.
898         (card_status): Add new args to return the serial number.  Changed
899         all callers.
900         * call-agent.c (agent_scd_checkpin): New.
902 2003-10-08  Werner Koch  <wk@gnupg.org>
904         * call-agent.c (agent_scd_getattr): Don't clear the passed info
905         structure, so that it can indeed be updated.
907         * card-util.c (fpr_is_zero): New.
908         (generate_card_keys): New.
909         (card_edit): New command "generate".
910         * keygen.c (generate_keypair): New arg CARD_SERIALNO, removed call
911         to check_smartcard.
912         (check_smartcard,show_smartcard): Removed.
913         (show_sha1_fpr,fpr_is_zero): Removed.
915 2003-10-01  Werner Koch  <wk@gnupg.org>
917         * card-util.c: Tweaked to use this source also under 1.3. 
919 2003-09-30  Werner Koch  <wk@gnupg.org>
921         * keylist.c (print_card_serialno): New.
922         (list_keyblock_print): Use it here.
924         * card-util.c (toggle_forcesig): New.
925         (card_edit): New command "forcesig".
926         
927         * card-util.c (print_name, print_isoname): Use 0 and not LF fro
928         the max_n arg of tty_print_utf8_string2.
930         * call-agent.c (agent_scd_getattr): New.
931         (learn_status_cb): Release values before assignment so that it can
932         be used by getattr to update the structure.
933         
934         * card-util.c (change_pin): Simplified.  We now have only a PIN
935         and an Admin PIN.
937 2003-09-27  Werner Koch  <wk@gnupg.org>
939         * sign.c (do_sign): Removed disabled testcode.
941 2003-09-26  Timo Schulz  <twoaday@freakmail.de>
943         * card_status (card_status): Do not use fputs since the fp
944         parameter can be NULL. This fixes a segv.
945         
946 2003-09-24  Werner Koch  <wk@gnupg.org>
948         * card-util.c (print_isoname,card_status): Handle opt.with_colons.
949         (print_sha1_fpr_colon): New.
951 2003-09-23  Werner Koch  <wk@gnupg.org>
953         Merged most of David Shaw's changes in 1.3 since 2003-06-03.
954         
955         * Makefile.am: Include W32LIBS where appropriate.
957         * armor.c (parse_hash_header,armor_filter): Drop TIGER/192 support.
958         * g10.c (print_hex,print_mds): Ditto.
959         * pkclist.c (algo_available): Ditto.
961         * armor.c (armor_filter): Allow using --comment multiple times to
962         get multiple Comment header lines.  --no-comments resets list.
963         * options.h, g10.c (main): Ditto. Deprecate --default-comment in
964         favor of --no-comments.
966         * g10.c (main): Trim --help to commonly used options.  Remove -f.
968         * g10.c (main): Add --multifile as an alias to turn --encrypt into
969         --encrypt-files (plus --verify-files, --decrypt-files).  Error out
970         if --multifile is used with the commands that don't support it yet.
972         * encode.c (use_mdc), g10.c (main): Use RFC1991 and RFC2440
973         directly to check for MDC usability.  Do not set the force_mdc or
974         disable_mdc flags since there is no point any longer.
975         
976         * g10.c (main): Use "keyserver-url" instead of
977         "preferred-keyserver" for the sake of short and simple commands.
978         (add_keyserver_url): Clarify a few strings.  It's a
979         "preferred keyserver URL".
980         * keyedit.c (keyedit_menu): Ditto.
981         * sign.c (mk_notation_policy_etc): Ditto. 
983         * main.h, keygen.c (keygen_add_keyserver_url): Signature callback
984         for adding a keyserver URL.
985         * keyedit.c (keyedit_menu, menu_set_keyserver_url): New command to
986         set preferred keyserver to specified (or all) user IDs.
987         * build-packet.c (build_sig_subpkt): Set preferred keyserver flag
988         while building a preferred keyserver subpacket.
990         * keylist.c (show_policy_url, show_keyserver_url): URLs might be
991         UTF8.
993         * keyedit.c (menu_addrevoker): Fix leaking a few bytes.
995         * keyedit.c (show_key_with_all_names): Use list-option
996         show-long-keyid in main --edit-key display.
998         * keyedit.c (print_and_check_one_sig): Use list-option
999         show-long-keyid in --edit-key "check" function.
1001         * passphrase.c (agent_send_all_options): Make use of $GPG_TTY.
1003         * g10.c (main): Disable use-agent if passphrase-fd is given
1004         later. Suggested by Kurt Garloff.
1006         * exec.c, g10.c, gpgv.c, passphrase.c, photoid.c:
1007         s/__MINGW32__/_WIN32/ to help building on native Windows
1008         compilers.  Requested by Brian Gladman.  From Werner on stable
1009         branch.
1011         * options.h, g10.c (main): Add list-option
1012         list-preferred-keyserver.
1014         * keyedit.c (change_passphrase): When responding 'no' to the blank
1015         passphrase question, re-prompt for a new passphrase.  This is bug
1016         #202.
1018         * mainproc.c (check_sig_and_print): Use two different preferred
1019         keyserver displays - one if the key is not present (to tell the
1020         user where to get the key), the other if it is present (to tell
1021         the user where the key can be refreshed).
1023         * packet.h, parse-packet.c (parse_signature): Set flag if a
1024         preferred keyserver is present.
1026         * keylist.c (list_keyblock_print): Show keyserver url in listings
1027         with list-option show-keyserver-url.
1029         * mainproc.c (check_sig_and_print): Get the uid validity before
1030         printing any sig results to avoid munging the output with trustdb
1031         warnings.
1033         * g10.c (main): Don't include --show-keyring in --help as it is
1034         deprecated.
1036         * options.skel: Note that keyserver.pgp.com isn't synchronized,
1037         and explain the roundrobin a bit better.
1039         * sig-check.c (check_key_signature2), import.c (import_one,
1040         import_revoke_cert, chk_self_sigs, delete_inv_parts,
1041         collapse_uids, merge_blocks): Make much quieter during import of
1042         slightly munged, but recoverable, keys. Use log_error for
1043         unrecoverable import failures.
1045         * keyring.c (keyring_rebuild_cache): Comment.
1047         * sign.c (mk_notation_and_policy): Making a v3 signature with
1048         notations or policy urls is an error, not an info (i.e. increment
1049         the errorcount). Don't print the notation or policy url to stdout
1050         since it can be mixed into the output stream when piping and munge
1051         the stream.
1053         * packet.h, sig-check.c (signature_check2, do_check,
1054         do_check_messages): Provide a signing-key-is-revoked flag.  Change
1055         all callers.
1057         * status.h, status.c (get_status_string): New REVKEYSIG status tag
1058         for a good signature from a revoked key.
1060         * mainproc.c (do_check_sig, check_sig_and_print): Use it here.
1062         * import.c (import_revoke_cert, merge_blocks, merge_sigs): Compare
1063         actual signatures on import rather than using keyid or class
1064         matching.  This does not change actual behavior with a key, but
1065         does mean that all sigs are imported whether they will be used or
1066         not.
1068         * parse-packet.c (parse_signature): Don't give "signature packet
1069         without xxxx" warnings for experimental pk algorithms.  An
1070         experimental algorithm may not have a notion of (for example) a
1071         keyid (i.e. PGP's x.509 stuff).
1073         * options.h, g10.c (main), keylist.c (list_keyblock_print),
1074         keyedit.c (print_and_check_one_sig): New "show-sig-expire"
1075         list-option to show signature expiration dates (if any).
1077         * options.h, g10.c (main, add_keyserver_url): Add
1078         --sig-preferred-keyserver to implant a "where to get my key"
1079         subpacket into a signature.
1081         * sign.c (mk_notation_and_policy): Rename to
1082         mk_notation_policy_etc and add preferred keyserver support for
1083         signatures.
1085         * keygen.c (do_add_key_flags): Don't set the certify flag for
1086         subkeys.
1087         (ask_algo): Provide key flags for DSA, Elgamal_e, and Elgamal
1088         subkeys.
1089         (generate_keypair): Provide key flags for the default DSA/Elgamal
1090         keys.
1092         * sig-check.c (signature_check, signature_check2,
1093         check_key_signature, check_key_signature2): Allow passing NULLs
1094         for unused parameters in the x2 form of each function to avoid the
1095         need for dummy variables. getkey.c, mainproc.c: Change all
1096         callers.
1098         * trustdb.h, trustdb.c (read_trust_options): New.  Returns items
1099         from the trustdb version record.
1100         * keylist.c (public_key_list): Use it here for the new "tru"
1101         record.
1102         * gpgv.c (read_trust_options): Stub.
1104         * keyedit.c (show_key_with_all_names): Use list-option
1105         show-validity in --edit-key interface as well.
1107         * options.h, g10.c (main), mainproc.c (check_sig_and_print): Add
1108         verify-options "show-validity" and "show-long-keyid" to show
1109         trustdb validity and long keyids during (file) signature
1110         verification.
1112         * packet.h, main.h, sig-check.c (signature_check2)
1113         (check_key_signature2, do_check): If ret_pk is set, fill in the pk
1114         used to verify the signature.  Change all callers in getkey.c,
1115         mainproc.c, and sig-check.c.
1117         * keylist.c (list_keyblock_colon): Use the ret_pk from above to
1118         put the fingerprint of the signing key in "sig" records during a
1119         --with-colons --check-sigs.  This requires --no-sig-cache as well
1120         since we don't cache fingerprints.
1122         * parse-packet.c (parse_signature): No need to reserve 8 bytes for
1123         the unhashed signature cache any longer.
1125         * misc.c (pct_expando): Add two new expandos - signer's
1126         fingerprint (%g), and signer's primary fingerprint (%p).
1128         * g10.c (main): Add --rfc2440 alias for --openpgp since in a few
1129         months, they won't be the same thing.
1131         * keyserver.c (parse_keyserver_uri): Accept "http" as an alias for
1132         "hkp", since it is occasionally written that way.
1133         (keyserver_spawn): Use ascii_isspace to avoid locale issues.
1135         * keygen.c (ask_user_id): Make --allow-freeform-uid apply to the
1136         email field as well as the name field, and allow mixing fields
1137         when it is set.
1139         * trustdb.c (validate_one_keyblock): Certifications on revoked or
1140         expired uids do not count in the web of trust.
1142         * signal.c (init_one_signal, pause_on_sigusr, do_block): Only use
1143         sigprocmask() if we have sigset_t, and only use sigaction() if we
1144         have struct sigaction.  This is for Forte c89 on Solaris which
1145         seems to define only the function call half of the two pairs by
1146         default.
1147         (pause_on_sigusr): Typo.
1148         (do_block): If we can't use sigprocmask() and sigset_t, try to get
1149         the number of signals from NSIG as well as MAXSIG, and if we
1150         can't, fail with an explanation.
1152         * signal.c, tdbio.c: Comment out the transaction code.  It was not
1153         used in this version, and was causing some build problems on
1154         quasi-posix platforms (Solaris and Forte c89).
1156         * keylist.c (list_keyblock_colon): Don't include validity values
1157         when listing secret keys since they can be incorrect and/or
1158         misleading.  This is a temporary kludge, and will be handled
1159         properly in 1.9/2.0.
1161         * mainproc.c (check_sig_and_print): Only show the "key available
1162         from" preferred keyserver line if the key is not currently
1163         present.
1165         * keyedit.c (sign_uids): Do not sign expired uids without --expert
1166         (same behavior as revoked uids).  Do not allow signing a user ID
1167         without a self-signature.  --expert overrides.  Add additional
1168         prompt to the signature level question.
1169         (menu_expire): When changing expiration dates, don't replace
1170         selfsigs on revoked uids since this would effectively unrevoke
1171         them. There is also no point in replacing expired selfsigs.  This
1172         is bug #181
1174         * g10.c (add_notation_data): Make sure that only ascii is passed
1175         to iscntrl.  Noted by Christian Biere.
1176         * getkey.c (classify_user_id2): Replaced isspace by spacep
1177         * keygen.c (ask_user_id): Ditto.
1178         (get_parameter_algo): Ditto.
1179         * keyedit.c (keyedit_menu): Ditto.
1180         * tdbdump.c (import_ownertrust): Ditto.  s/isxdigit/hexdigitp/.
1181         * revoke.c (ask_revocation_reason): 
1182         * keyserver.c (keyserver_spawn): Dito.
1184         * parse-packet.c (parse): Disallow old style partial length for
1185         all key material packets to avoid possible corruption of keyrings.
1187         * import.c (import_keys_internal): Invalidate the cache so that
1188         the file descriptor gets closed.  Fixes bug reported by Juan
1189         F. Codagnone.
1191         * options.h, g10.c (main), main.h, keylist.c (show_keyserver_url),
1192         mainproc.c (check_sig_and_print), parse-packet.c (dump_sig_subpkt,
1193         parse_one_sig_subpkt, can_handle_critical): Add read-only support
1194         for preferred keyserver subpackets.  They're basically policy URLs
1195         with a different name.  Add a verify-option
1196         "show-preferred-keyserver" to turn them on and off (on by default,
1197         as per stable branch).
1199         * g10.c (main): Add "--set-notation" as alias to "--notation-data"
1200         this is to make things consistent with --set-policy-url meaning
1201         both sigs and certs.
1203         * options.h, g10.c (main), keylist.c (list_keyblock_print): Add
1204         "show-validity" and "show-long-keyid" list-options.
1206         * gpgv.c (get_validity, trust_value_to_string): Stubs.
1208         * g10.c (main): Use SAFE_VERSION instead of VERSION in the
1209         version-specific gpg.conf file so it can be overridden on RISCOS.
1211         * keyedit.c (show_key_with_all_names): Fix assertion failure when
1212         using toggle to see a secret key.  Reported by Maxim Britov.
1215 2003-09-22  Timo Schulz  <twoaday@freakmail.de>
1217         * card-util.c (card_status): Free pk in case of an error
1218         and return if the card is no OpenPGP card.
1219         
1220 2003-09-18  Werner Koch  <wk@gnupg.org>
1222         * g10.c: New command --card-edit.
1223         * card-util.c (card_status): Use tty_fprintf for all output.
1224         (print_sha1_fpr, print_isoname): Ditto.
1225         (get_one_name,change_name, change_url, change_login,change_lang)
1226         (change_sex): New; taken from keygen.c.
1227         * keygen.c (smartcard_get_one_name, smartcard_change_name) 
1228         (smartcard_change_url, smartcard_change_login_data) 
1229         (smartcard_change_lang, smartcard_change_sex): Removed.
1230         (check_smartcard): Removed most menu items.
1232 2003-09-06  Werner Koch  <wk@gnupg.org>
1234         * misc.c (openpgp_pk_algo_usage): Allow AUTH where SIGN is allowed.
1236         * keygen.c (ask_passphrase): No need to allocated S2K in secure
1237         memory.
1239 2003-09-04  Werner Koch  <wk@gnupg.org>
1241         * keygen.c (do_add_key_flags, parse_parameter_usage) 
1242         (do_generate_keypair): Add support the proposed AUTH key flag.
1243         * getkey.c (fixup_uidnode, merge_selfsigs_main) 
1244         (merge_selfsigs_subkey, premerge_public_with_secret): Ditto.
1245         * keylist.c (print_capabilities): Ditto.
1247 2003-08-25  Timo Schulz  <twoaday@freakmail.de>
1249         * pkglue.c (mpi_from_sexp): New. Used to factor out
1250         some common code.
1251         
1252 2003-08-24  Werner Koch  <wk@gnupg.org>
1254         * keygen.c (do_generate_keypair): Print a reminder to use --gen-revoke.
1256 2003-08-18  Timo Schulz  <twoaday@freakmail.de>
1258         * encode.c (encode_sesskey): Checked the code and removed
1259         the warning since all compatibility checks with PGP succeeded.
1260         * mainproc.c (symkey_decrypt_sesskey): Better check for the
1261         algorithm and check the return values of some functions.
1262         * mdc.c (use_mdc): Simplified.
1263         
1264 2003-08-07  Werner Koch  <wk@gnupg.org>
1266         * pkglue.c (pk_sign): Fix last change.
1267         (pk_verify): Check for valid DATA array so that we don't segv in
1268         Libgcrypt.
1269         (pk_verify): Ditto.
1271 2003-08-06  Werner Koch  <wk@gnupg.org>
1273         * pkglue.c (pk_sign): Allow signing using RSA.
1275 2003-08-05  Werner Koch  <wk@gnupg.org>
1277         * Makefile.am (install-data-local): Dropped check for the ancient
1278         gpgm tool.
1279         (bin_PROGRAMS): Renamed gpg to gpg2 and gpgv to gpgv2.  This is so
1280         that it won't conflict with the current stable version of gpg.
1282         * pkglue.c (pk_check_secret_key): New.
1283         * seckey-cert.c (do_check): Reenable this test here again.
1285         * g10.c (main): Add command -K as an alias for
1286         --list-secret-keys. Command "-k" is now an alias to --list-keys.
1287         Remove special treatment of -kv and -kvv.
1288         (set_cmd): Ditto.
1289         (main): Strip a "-cvs" suffix when testing for a version specific
1290         config file.
1292         * status.h, status.c, g10.c [USE_SHM_COPROCESSING]: Removed.  This
1293         is not any longer available.
1295 2003-07-29  Werner Koch  <wk@gnupg.org>
1297         * g10.c (main): Add secmem features and set the random seed file.
1298         (g10_exit): Update the random seed file.
1300         * parse-packet.c (parse_signature,read_protected_v3_mpi)
1301         (parse_key): Fixed use of mpi_set_opaque.
1302         * keygen.c (gen_card_key): Ditto.
1304 2003-07-28  Werner Koch  <wk@gnupg.org>
1306         * status.c (progress_cb): Adjusted for use with Libcgrypt.
1307         (set_status_fd): Register that callback.
1309         * keygen.c (smartcard_change_login_data): New.
1310         (smartcard_change_lang): New.
1311         (smartcard_change_sex): New.
1312         (check_smartcard): Add menu entries to edit the above.
1313         (gen_elg,gen_dsa,gen_rsa): Reimplemented in terms of Libgcrypt.
1314         (genhelp_protect, genhelp_factors, key_from_sexp): New.
1315         * comment.c (make_comment_node_from_buffer): New.
1316         (make_comment_node): Reimplemented in terms of above.
1318 2003-07-27  Werner Koch  <wk@gnupg.org>
1320         Adjusted for gcry_mpi_print and gcry_mpi_scan API change.
1322 2003-07-24  Werner Koch  <wk@gnupg.org>
1324         * g10.c: New command --card-status.
1325         * card-util.c (card_status): New.
1326         * call-agent.c (learn_status_cb): Parse more information.
1328         * keylist.c (print_pubkey_info): Add FP arg for optional printing
1329         to a stream.  Changed all callers.
1331 2003-07-23  Werner Koch  <wk@gnupg.org>
1333         * keygen.c (generate_keypair): Create an AUTHKEYTYPE entry for cards.
1334         (do_generate_keypair): Abd generate the authkey.
1335         (check_smartcard): Changed menu accordingly.
1337 2003-07-22  Werner Koch  <wk@gnupg.org>
1339         * g10.c: New command --change-pin.
1340         * card-util.c: New.
1341         * call-agent.c (agent_scd_change_pin): New.
1342         (agent_release_card_info): New.
1343         * keygen.c (check_smartcard): Use it here.
1345 2003-07-16  Werner Koch  <wk@gnupg.org>
1347         * export.c (parse_export_options): New option sexp-format.
1348         (export_seckeys,export_secsubkeys): Check sexp-format option.
1349         (do_export): Ignore armor for sexp format.
1350         (do_export_stream): Handle sexp-format.
1351         (write_sexp_line,write_sexp_keyparm, build_sexp_seckey): New.
1352         (build_sexp): New.
1354 2003-07-03  Werner Koch  <wk@gnupg.org>
1356         * options.h (DBG_CIPHER): Reintroduced it. 
1357         * seskey.c (encode_session_key): Debug output of the session key.
1359         * pubkey-enc.c (get_it): Handle card case.
1360         * call-agent.c (agent_scd_pkdecrypt): New.
1361         * pkglue.c (pk_encrypt): Add RSA support.
1363         * g10.c (main): Default to --use-agent.
1365         * keygen.c (show_smartcard): Print info about the public key.
1366         (check_smartcard): Check for existing key here.
1367         (gen_card_key): And not anymore here.
1368         (fpr_is_zero): New.
1369         (generate_keypair): Generate both keys for a card.
1370         (smartcard_change_url): Nw.
1372 2003-07-02  Werner Koch  <wk@gnupg.org>
1374         * seckey-cert.c (is_secret_key_protected): Let it handle mode 1002.
1376 2003-07-01  Werner Koch  <wk@gnupg.org>
1378         * keygen.c (gen_card_key): Obviously we should use the creation
1379         date received from SCDAEMON, so that the fingerprints will match.
1380         * sign.c (do_sign): Pass the serialno to the sign code.
1381         * keyid.c (serialno_and_fpr_from_sk): New.
1383 2003-06-30  Werner Koch  <wk@gnupg.org>
1385         * call-agent.h (agent_card_info_s): Add field serialno.
1386         * call-agent.c (store_serialno): New.
1387         (learn_status_cb): Store the serial number.
1388         * keygen.c (gen_card_key): Store the serial number
1389         (check_smartcard): New argument to return the serial number.
1390         (generate_keypair): Get the serial number from check_smartcard and
1391         store it as a parameter.
1392         * parse-packet.c (parse_key): Use the protect.iv field to store the
1393         serial number.
1394         * build-packet.c (do_secret_key): Write the serial number.
1396 2003-06-27  Werner Koch  <wk@gnupg.org>
1398         * seckey-cert.c (check_secret_key): Bypass the unprotection for
1399         mode 1002.
1400         * sign.c (do_sign): Handle card case (i.e. mode 1002).
1402 2003-06-26  Werner Koch  <wk@gnupg.org>
1404         * build-packet.c (do_secret_key): Implement special protection
1405         mode 1002.
1406         * parse-packet.c (parse_key): Likewise.
1408         * keygen.c (smartcard_gen_key): New.
1409         * call-agent.c (agent_scd_setattr): New.
1411 2003-06-24  Werner Koch  <wk@gnupg.org>
1413         * Makefile.am: Removed signal.c
1415         * g10.c (emergency_cleanup): New.
1416         (main): Use gnupg_init_signals and register malloc for assuan.
1418 2003-06-23  Werner Koch  <wk@gnupg.org>
1420         * keyid.c (do_fingerprint_md): Made it work again.
1422 2003-06-19  Werner Koch  <wk@gnupg.org>
1424         Fixed all "==" comparisons against error code constants to use
1425         gpg_err_code().
1427         * import.c (import_secret_one): 
1428         (import_revoke_cert): 
1429         (chk_self_sigs): 
1431         * misc.c (openpgp_md_map_name): Check also for the Hx format.
1432         (openpgp_cipher_map_name): Check also for the Sx format.
1433         (pubkey_get_npkey): Adjusted for changed gcrypt API.
1434         (pubkey_get_nskey): Ditto.
1435         (pubkey_get_nsig): Ditto.
1436         (pubkey_get_nenc): Ditto.
1438 2003-06-18  Werner Koch  <wk@gnupg.org>
1440         Finished the bulk of changes for gnupg 1.9.  This included
1441         switching to libgcrypt functions, using shared error codes from
1442         libgpg-error, replacing the old functions we used to have in
1443         ../util by those in ../jnlib and ../common, renaming the malloc
1444         functions and a couple of types.  Note, that not all changes are
1445         listed below becuause they are too similar and done at far too
1446         many places.  As of today the code builds using the current
1447         libgcrypt from CVS but it is very unlikely that it actually works.
1448         
1449         * sig-check.c (cmp_help): Removed.  Was never used.
1451         * pkglue.c: New. Most stuff taken from gnupg 1.1.2.
1452         * pkglue.h: New.
1454         * misc.c (pull_in_libs): Removed.
1456         * keygen.c (count_chr): New.
1457         (ask_user_id): Removed faked RNG support.
1459         * misc.c (openpgp_md_map_name,openpgp_cipher_map_name)
1460         (openpgp_pk_map_name): New.
1462         * skclist.c (build_sk_list): Removed faked RNG support.
1463         (is_insecure): Removed.
1465         * comment.c (make_mpi_comment_node): Use gcry MPI print function.
1467         * keyid.c (v3_keyid): New.
1469         * misc.c (mpi_write,mpi_write_opaque,mpi_read,mpi_read_opaque)
1470         (mpi_print): New.  Taken from gnupg 1.1.2.
1471         (checksum_mpi): Replaced by implementation from 1.1.2.
1473         * g10.c (my_strusage): Renamed from strusage and return NULL
1474         instead calling a default function.
1475         (add_to_strlist2): New.  Taken from ../util/strgutil.c of gnupg 1.2.
1477         * plaintext.c (handle_plaintext): New arg CREATE_FILE to cope with
1478         the fact that gpg-error does not have this error code anymore.
1480         * mainproc.c (symkey_decrypt_sesskey): Ditto.
1482         * seskey.c (make_session_key): Adjusted for use with libgcrypt.
1483         (encode_session_key): Ditto.
1484         (do_encode_md): Ditto.
1485         (encode_md_value): Ditto.
1487         * keyring.c: Use libgpg-error instead of READ_ERROR etc.
1489         * g10.c: Adjusted all algorithm name/id mapping functions.
1490         (set_debug): Pass MPI and CRYPTO debug values to libgcrypt.
1492         * Makefile.am (INCLUDES): Define LOCALEDIR and the default error
1493         source.
1495         * g10.c (i18n_init): s/G10_LOCALEDIR/LOCALEDIR/.
1497         Renamed m_alloc et al to xmalloc et al.
1498         s/g10_errstr/gpg_strerror/
1499         s/MPI/gcry_mpi_t/
1500         Adjusted all md_open calls to the libgcrypt API.
1501         
1502         * build-packet.c (do_comment): Return error code from iobuf write
1503         function.
1504         (do_user_id): Ditto.
1505         (do_public_key): Ditto.
1507         * Makefile.am: Add new files, link gpg with libgpg-error.
1508         * g10.c, options.h: New option --agent-program.
1509         * call-agent.c: New.
1510         * gpg.h, call-agent.h: New.
1512 2003-06-03  David Shaw  <dshaw@jabberwocky.com>
1514         * options.h, g10.c (main), keylist.c (list_keyblock_print): Add
1515         "show-validity" and "show-long-keyid" list-options.
1517         * gpgv.c (get_validity, trust_value_to_string): Stubs.
1519         * g10.c (main): Use SAFE_VERSION instead of VERSION in the
1520         version-specific gpg.conf file so it can be overridden on RISCOS.
1522 2003-06-01  David Shaw  <dshaw@jabberwocky.com>
1524         * g10.c (main), keylist.c (show_policy_url, show_notation),
1525         mainproc.c (check_sig_and_print): Emulate the old policy and
1526         notation behavior (display by default).  Send to status-fd whether
1527         it is displayed on the screen or not.
1529         * g10.c (main): Since we now have some options in devel that won't
1530         work in a stable branch gpg.conf file, try for a version-specific
1531         gpg.conf-VERSION file before falling back to gpg.conf.
1533         * main.h, options.h: Move various option flags to options.h.
1535 2003-05-31  David Shaw  <dshaw@jabberwocky.com>
1537         * mainproc.c (check_sig_and_print), main.h, keylist.c
1538         (show_policy, show_notation): Collapse the old print_notation_data
1539         into show_policy() and show_notation() so there is only one
1540         function to print notations and policy URLs.
1542         * options.h, main.h, g10.c (main), keyedit.c
1543         (print_and_check_one_sig), keylist.c (list_one,
1544         list_keyblock_print), pkclist.c (do_edit_ownertrust), sign.c
1545         (mk_notation_and_policy): New "list-options" and "verify-options"
1546         commands.  These replace the existing
1547         --show-photos/--no-show-photos,
1548         --show-notation/--no-show-notation,
1549         --show-policy-url/--no-show-policy-url, and --show-keyring
1550         options.  The new method is more flexible since a user can specify
1551         (for example) showing photos during sig verification, but not in
1552         key listings.  The old options are emulated.
1554         * main.h, misc.c (parse_options): New general option line
1555         parser. Fix the bug in the old version that did not handle report
1556         syntax errors after a valid entry.
1558         * import.c (parse_import_options), export.c
1559         (parse_export_options): Call it here instead of duplicating the
1560         code.
1562 2003-05-30  David Shaw  <dshaw@jabberwocky.com>
1564         * keylist.c (list_one): Don't show the keyring filename when in
1565         --with-colons mode.  Actually translate "Keyring" string.
1567         * mainproc.c (proc_tree): We can't currently handle multiple
1568         signatures of different classes or digests (we'd pretty much have
1569         to run a different hash context for each), but if they are all the
1570         same, make an exception.  This is Debian bug #194292.
1572         * sig-check.c (check_key_signature2): Make string translatable.
1574         * packet.h, getkey.c (fixup_uidnode): Mark real primary uids
1575         differently than assumed primaries.
1577         * keyedit.c (no_primary_warning): Use the differently marked
1578         primaries here in a new function to warn when an --edit-key
1579         command might rearrange the self-sig dates enough to change which
1580         uid is primary.
1581         (menu_expire, menu_set_preferences): Use no_primary_warning()
1582         here.
1584         * Makefile.am: Use @DLLIBS@ for -ldl.
1586 2003-05-26  David Shaw  <dshaw@jabberwocky.com>
1588         * getkey.c (premerge_public_with_secret): Made "no secret subkey
1589         for" warning a verbose item and translatable. (From wk on stable
1590         branch)
1592         * sig-check.c (check_key_signature2): Made "no subkey for subkey
1593         binding packet" a verbose item instead of a !quiet one.  There are
1594         too many garbled keys out in the wild. (From wk on stable branch)
1596         * filter.h: Remove const from WHAT. (From wk on stable branch)
1598         * progress.c (handle_progress): Store a copy of
1599         NAME. (progress_filter): Release WHAT, make sure not to print a
1600         NULL WHAT. (From wk on stable branch)
1602         * openfile.c (open_sigfile): Adjust free for new progress
1603         semantics. (From wk on stable branch)
1605         * plaintext.c (ask_for_detached_datafile): Don't dealloc
1606         pfx->WHAT. (From wk on stable branch)
1608         * seckey-cert.c (do_check): Issue the RSA_OR_IDEA status when the
1609         cipher algo is IDEA to make it easier to track down the
1610         problem. (From twoaday on stable branch)
1611         
1612 2003-05-24  David Shaw  <dshaw@jabberwocky.com>
1614         * armor.c, g10.c, kbnode.c, misc.c, pkclist.c, sign.c,
1615         build-packet.c, getkey.c, keydb.c, openfile.c, plaintext.c,
1616         status.c, gpgv.c, keygen.c, options.h, sig-check.c, tdbio.h,
1617         encode.c, mainproc.c, parse-packet.c, signal.c, textfilter.c: Edit
1618         all preprocessor instructions to remove whitespace before the '#'.
1619         This is not required by C89, but there are some compilers out
1620         there that don't like it.
1622 2003-05-21  David Shaw  <dshaw@jabberwocky.com>
1624         * trustdb.h, trustdb.c (is_disabled), gpgv.c (is_disabled): Rename
1625         is_disabled to cache_disabled_value, which now takes a pk and not
1626         just the keyid. This is for speed since there is no need to
1627         re-fetch a key when we already have that key handy.  Cache the
1628         result of the check so we don't need to hit the trustdb more than
1629         once.
1630         
1631         * getkey.c (skip_disabled): New function to get a pk and call
1632         is_disabled on it. (key_byname): Use it here.
1633         
1634         * packet.h, getkey.c (skip_disabled), keylist.c
1635         (print_capabilities): New "pk_is_disabled" macro to retrieve the
1636         cached disabled value if available, and fill it in via
1637         cache_disabled_value if not available.
1639         * trustdb.c (get_validity): Cache the disabled value since we have
1640         it handy and it might be useful later.
1642         * parse-packet.c (parse_key): Clear disabled flag when parsing a
1643         new key.  Just in case someone forgets to clear the whole key.
1645         * getkey.c (merge_selfsigs_main): Add an "if all else fails" path
1646         for setting a single user ID primary when there are multiple set
1647         primaries all at the same second, or no primaries set and the most
1648         recent user IDs are at the same second, or no signed user IDs at
1649         all. This is arbitrary, but deterministic.
1651         * exec.h, photoid.h: Add copyright message.
1653         * keylist.c (list_keyblock_print): Don't dump attribs for
1654         revoked/expired/etc uids for non-colon key listings.  This is for
1655         consistency with --show-photos.
1657         * main.h, keylist.c (dump_attribs), mainproc.c
1658         (check_sig_and_print): Dump attribs if --attrib-fd is set when
1659         verifying signatures.
1660         
1661         * g10.c (main): New --gnupg option to disable the various
1662         --openpgp, --pgpX, etc. options.  This is the same as --no-XXXX
1663         for those options.
1665         * revoke.c (ask_revocation_reason): Clear old reason if user
1666         elects to repeat question.  This is bug 153.
1668         * keyedit.c (sign_uids): Show keyid of the key making the
1669         signature.
1671 2003-05-21  Werner Koch  <wk@gnupg.org>
1673         * progress.c (handle_progress)
1674         * sign.c (write_plaintext_packet)
1675         * encode.c (encode_simple,encode_crypt): Make sure that a filename
1676         of "-" is considered to be stdin so that iobuf_get_filelength
1677         won't get called.  This fixes bug 156 reported by Gregery Barton.
1679 2003-05-02  David Shaw  <dshaw@jabberwocky.com>
1681         * packet.h, build-packet.c (build_sig_subpkt), export.c
1682         (do_export_stream), import.c (remove_bad_stuff, import),
1683         parse-packet.c (dump_sig_subpkt, parse_one_sig_subpkt): Remove
1684         vestigal code for the old sig cache subpacket.  This wasn't
1685         completely harmless as it caused subpacket 101 to disappear on
1686         import and export.
1688         * options.h, armor.c, cipher.c, g10.c, keyedit.c, pkclist.c,
1689         sign.c, encode.c, getkey.c, revoke.c: The current flags for
1690         different levels of PGP-ness are massively complex.  This is step
1691         one in simplifying them. No functional change yet, just use a
1692         macro to check for compliance level.
1694         * sign.c (sign_file): Fix bug that causes spurious compression
1695         preference warning.
1697         * sign.c (clearsign_file): Fix bug that prevents proper warning
1698         message from appearing when clearsigning in --pgp2 mode with a
1699         non-v3 RSA key.
1701         * main.h, misc.c (compliance_option_string, compliance_string,
1702         compliance_failure), pkclist.c (build_pk_list), sign.c (sign_file,
1703         clearsign_file), encode.c (encode_crypt,
1704         write_pubkey_enc_from_list): New functions to put the "this
1705         message may not be usable...." warning in one place.
1707         * options.h, g10.c (main): Part two of the simplification.  Use a
1708         single enum to indicate what we are compliant to (1991, 2440,
1709         PGPx, etc.)
1711         * g10.c (main): Show errors for failure in export, send-keys,
1712         recv-keys, and refresh-keys.
1714         * options.h, g10.c (main): Give algorithm warnings for algorithms
1715         chosen against the --pgpX and --openpgp rules.
1717         * keydb.h, pkclist.c (algo_available): Make TIGER192 invalid in
1718         --openpgp mode.
1720         * sign.c (sign_file), pkclist.c (algo_available): Allow passing a
1721         hint of 0.
1723 2003-05-01  David Shaw  <dshaw@jabberwocky.com>
1725         * tdbio.c (create_version_record): Only create new trustdbs with
1726         TM_CLASSIC or TM_PGP.
1728         * trustdb.h, trustdb.c (trust_string, get_ownertrust_string,
1729         get_validity_string, ask_ownertrust, validate_keys), pkclist.c
1730         (do_edit_ownertrust): Rename trust_string to trust_value_to_string
1731         for naming consistency.
1733         * trustdb.h, trustdb.c (string_to_trust_value): New function to
1734         translate a string to a trust value.
1736         * g10.c (main): Use string_to_trust_value here for
1737         --force-ownertrust.
1738         
1739         * options.h, g10.c (main), trustdb.c (trust_model_string,
1740         init_trustdb, check_trustdb, update_trustdb, get_validity,
1741         validate_one_keyblock): An "OpenPGP" trust model is misleading
1742         since there is no official OpenPGP trust model.  Use "PGP"
1743         instead.
1745 2003-04-30  David Shaw  <dshaw@jabberwocky.com>
1747         * build-packet.c (build_sig_subpkt): Comments.
1749         * exec.c (exec_write): Cast NULL to void* to properly terminate
1750         varargs list.
1752         * keyedit.c (show_key_with_all_names): Just for safety, catch an
1753         invalid pk algorithm.
1755         * sign.c (make_keysig_packet): Crucial that the call to mksubpkt
1756         comes LAST before the calls to finalize the sig as that makes it
1757         possible for the mksubpkt function to get a reliable pointer to
1758         the subpacket area.
1760         * pkclist.c (do_we_trust_pre): If an untrusted key was chosen by a
1761         particular user ID, use that ID as the one to ask about when
1762         prompting whether to use the key anyway.
1763         (build_pk_list): Similar change here when adding keys to the
1764         recipient list.
1766         * trustdb.c (update_validity): Fix bug that prevented more than
1767         one validity record per trust record.
1768         (get_validity): When retrieving validity for a (user) supplied
1769         user ID, return the validity for that user ID only, and do not
1770         fall back to the general key validity.
1771         (validate_one_keyblock): Some commentary on whether
1772         non-self-signed user IDs belong in the web of trust (arguably,
1773         they do).
1775 2003-04-27  David Shaw  <dshaw@jabberwocky.com>
1777         * g10.c (main): Add --no-textmode.
1779         * export.c (do_export_stream), keyedit.c (show_key_with_all_names,
1780         menu_addrevoker), mainproc.c (check_sig_and_print), photoid.c
1781         (show_photos), sign.c (mk_notation_and_policy), trustdb.c
1782         (get_validity, reset_trust_records, validate_keys): Make some
1783         strings translatable.
1785         * mainproc.c (check_sig_and_print): Show digest algorithm and sig
1786         class when verifying a sig with --verbose on, and add version, pk
1787         and hash algorithms and sig class to VALIDSIG.
1788         
1789         * parse-packet.c (enum_sig_subpkt): Make a warning message a
1790         --verbose warning message since we don't need to warn every time
1791         we see an unknown critical (we only need to invalidate the
1792         signature).
1794         * trustdb.c (init_trustdb): Check the trustdb options even with
1795         TM_AUTO since the auto may become TM_CLASSIC or TM_OPENPGP.
1797 2003-04-26  David Shaw  <dshaw@jabberwocky.com>
1799         * sign.c (do_sign): Show the hash used when making a signature in
1800         verbose mode.
1802         * tdbio.h, tdbio.c (tdbio_read_model): New function to return the
1803         trust model used in a given trustdb.
1805         * options.h, g10.c (main), trustdb.c (init_trustdb, check_trustdb,
1806         update_trustdb): Use tdbio_read_model to implement an "auto" trust
1807         model which is set via the trustdb.
1809 2003-04-23  David Shaw  <dshaw@jabberwocky.com>
1811         * import.c (import_revoke_cert): Remove ultimate trust when
1812         revoking an ultimately trusted key.
1814         * keyedit.c (sign_uids): Allow replacing expired signatures.
1815         Allow duplicate signatures with --expert.
1817         * pkclist.c (check_signatures_trust): Don't display a null
1818         fingerprint when checking a signature with --always-trust enabled.
1820         * filter.h (progress_filter_context_t), progress.c
1821         (handle_progress), plaintext.c (ask_for_detached_datafile,
1822         hash_datafiles): Fix compiler warnings.  Make "what" constant.
1824         * build-packet.c (do_plaintext): Do not create invalid literal
1825         packets with >255-byte names.
1827 2003-04-15  Werner Koch  <wk@gnupg.org>
1829         * Makefile.am (AM_CFLAGS): Make use of AM_CFLAGS and AM_LDFLAGS.
1831         * g10.c, options.h: New option --enable-progress-filter.
1832         * progress.c (handle_progress): Make use of it.
1834 2003-04-15  Marcus Brinkmann  <marcus@g10code.de>
1836         * progress.c: New file.
1837         * Makefile.am (common_source): Add progress.c.
1838         * filter.h (progress_filter_context_t): New type.
1839         (progress_filter, handle_progress): New prototypes.
1840         * main.h (open_sigfile): New argument for prototype.
1841         * openfile.c (open_sigfile): New argument to install progress
1842         filter.
1843         * encode.c (encode_simple): New variable PFX.  Register
1844         progress filter.  Install text_filter after that.
1845         (encode_crypt): Likewise.
1846         * sign.c (sign_file): Likewise.
1847         (clearsign_file): Likewise.
1848         * decrypt.c (decrypt_message): Likewise.
1849         (decrypt_messages): Likewise.
1850         * verify.c (verify_signatures): Likewise.
1851         (verify_one_file): Likewise.
1852         * plaintext.c (hash_datafiles): Likewise.
1853         (ask_for_detached_datafile): Likewise.
1855 2003-04-10  Werner Koch  <wk@gnupg.org>
1857         * passphrase.c (read_passphrase_from_fd): Do a dummy read if the
1858         agent is to be used.  Noted by Ingo Klöcker.
1859         (agent_get_passphrase): Inhibit caching when we have no
1860         fingerprint.  This is required for key generation as well as for
1861         symmetric only encryption.
1863         * passphrase .c (agent_get_passphrase): New arg CANCELED.
1864         (passphrase_to_dek): Ditto.  Passed to above.  Changed all
1865         callers to pass NULL.
1866         * seckey-cert.c (do_check): New arg CANCELED.
1867         (check_secret_key): Terminate loop when canceled.
1869         * keyedit.c (change_passphrase): Pass ERRTEXT untranslated to
1870         passphrase_to_dek and translate where appropriate.
1871         * seckey-cert.c (check_secret_key): Ditto.
1872         * keygen.c (ask_passphrase): Ditto.
1873         * passphrase.c (agent_get_passphrase): Translate the TRYAGAIN_TEXT.
1874         Switch the codeset to utf-8.
1876 2003-04-09  Werner Koch  <wk@gnupg.org>
1878         * decrypt.c (decrypt_messages): Fixed error handling; the function
1879         used to re-loop with same file after an error.  Reported by Joseph
1880         Walton.
1882 2003-04-08  David Shaw  <dshaw@jabberwocky.com>
1884         * main.h, g10.c (main), import.c (parse_import_options,
1885         fix_pks_corruption): It's really PKS corruption, not HKP
1886         corruption.  Keep the old repair-hkp-subkey-bug command as an
1887         alias.
1889         * g10.c (main): Rename --no-version to --no-emit-version for
1890         consistency.  Keep --no-version as an alias.
1892 2003-04-04  David Shaw  <dshaw@jabberwocky.com>
1894         * pkclist.c (algo_available): PGP 8 can use the SHA-256 hash.
1896         * sign.c (sign_file, clearsign_file, sign_symencrypt_file): Remove
1897         unused code.
1899 2003-04-01  Werner Koch  <wk@gnupg.org>
1901         * mainproc.c (check_sig_and_print): Add primary key fpr to VALIDSIG
1902         status.
1904 2003-03-24  David Shaw  <dshaw@jabberwocky.com>
1906         * keydb.h: Err on the side of making an unknown signature a SIG
1907         rather than a CERT.
1909         * import.c (delete_inv_parts): Discard any key signatures that
1910         aren't key types (i.e. 0x00, 0x01, etc.)
1912         * g10.c (main): Add deprecated option warning for
1913         --list-ownertrust.  Add --compression-algo alias for
1914         --compress-algo.  Change --version output strings to match
1915         "showpref" strings, and make translatable.
1917         * status.c (do_get_from_fd): Accept 'y' as well as 'Y' for
1918         --command-fd boolean input.
1920         * trustdb.c: Fix typo (DISABLE_REGEXP -> DISABLE_REGEX)
1922         * keyedit.c (show_key_with_all_names_colon): Show no-ks-modify
1923         flag.
1925 2003-03-11  David Shaw  <dshaw@jabberwocky.com>
1927         * options.h, g10.c (main), keyserver.c (kopts): Add "try-dns-srv"
1928         keyserver option.  Defaults to on.
1930         * passphrase.c (agent_get_passphrase): Fix memory leak with
1931         symmetric messages.  Fix segfault with symmetric messages.  Fix
1932         incorrect prompt with symmetric messages.
1934 2003-03-10  Werner Koch  <wk@gnupg.org>
1936         * compress.c (init_uncompress): Use a 15 bit window size so that
1937         the output of implementations which don't run for PGP 2
1938         compatibility won't get garbled.
1940 2003-03-04  David Shaw  <dshaw@jabberwocky.com>
1942         * trustdb.c (validate_keys): Mask the ownertrust when building the
1943         list of fully valid keys so that disabled keys are still counted
1944         in the web of trust.
1945         (get_ownertrust_with_min): Do the same for the minimum ownertrust
1946         calculation.
1948         * parse-packet.c (dump_sig_subpkt): Show the notation names for
1949         not-human-readable notations.  Fix cosmetic off-by-one length
1950         counter.
1952         * options.skel: Add explantion and commented-out
1953         "no-mangle-dos-filenames".
1955         * mainproc.c (proc_encrypted): Make string translatable.
1957         * keyserver.c (keyserver_spawn): Quote ':', '%', and any 8-bit
1958         characters in the uid strings sent to the keyserver helper.
1960         * keyring.c (keyring_rebuild_cache): Lock the keyring while
1961         rebuilding the signature caches to prevent another gpg from
1962         tampering with the temporary copy.
1964         * keygen.c (keygen_set_std_prefs): Include AES192 and AES256 in
1965         default prefs.
1967         * keyedit.c (show_prefs): Make strings translatable.
1969         * keydb.c: Double the maximum number of keyrings to 40.
1971         * gpgv.c (main): Fix bug #113 - gpgv should accept the
1972         --ignore-time-conflict option.
1974         * g10.c (main): --openpgp disables --pgpX.  Double the amount of
1975         secure memory to 32k (keys are getting bigger these days).
1977         * Makefile.am: Makefile.am: Use @CAPLIBS@ to link in -lcap if we
1978         are using capabilities.
1980 2003-02-26  David Shaw  <dshaw@jabberwocky.com>
1982         * keyserver.c (keyserver_spawn): Include various pieces of
1983         information about the key in the data sent to the keyserver
1984         helper.  This allows the helper to use it in instructing a remote
1985         server which may not have any actual OpenPGP smarts in parsing
1986         keys.
1988         * main.h, export.c (export_pubkeys_stream, do_export_stream): Add
1989         ability to return only the first match in an exported keyblock for
1990         keyserver usage.  This should be replaced at some point with a
1991         more flexible solution where each key can be armored seperately.
1993 2003-02-22  David Shaw  <dshaw@jabberwocky.com>
1995         * sign.c (sign_file): Do not push textmode filter onto an unopened
1996         IOBUF (segfault).  Noted by Marcus Brinkmann.  Push and
1997         reinitialize textmode filter for each file in a multiple file
1998         list.
2000         * packet.h, getkey.c (fixup_uidnode), keyedit.c (show_prefs): Set
2001         and show the keyserver no-modify flag.
2003         * keygen.c (add_keyserver_modify): New.
2004         (keygen_upd_std_prefs): Call it here.
2005         (keygen_set_std_prefs): Accept "ks-modify" and "no-ks-modify" as
2006         prefs to set and unset keyserver modify flag.
2008         * g10.c (main): Accept "s1" in addition to "idea" to match the
2009         other ciphers.
2011         * main.h, misc.c (idea_cipher_warn): We don't need this if IDEA
2012         has been disabled.
2014 2003-02-21  David Shaw  <dshaw@jabberwocky.com>
2016         * keygen.c (keygen_set_std_prefs): Don't put AES or CAST5 in
2017         default prefs if they are disabled.
2019         * g10.c (main): Use 3DES instead of CAST5 if we don't have CAST5
2020         support.  Use 3DES for the s2k cipher in --openpgp mode.
2021         (print_mds): #ifdef all of the optional digest algorithms.
2023 2003-02-12  David Shaw  <dshaw@jabberwocky.com>
2025         * keydb.h, getkey.c (classify_user_id, classify_user_id2): Make
2026         'exact' a per-desc item.  Merge into one function since
2027         'force_exact' is no longer needed.
2028         (key_byname): Use new classify_user_id function, and new exact
2029         flag in KEYDB_SEARCH_DESC.
2031         * keyring.h, keyring.c (keyring_search): Return an optional index
2032         to show which KEYDB_SEARCH_DESC was the matching one.
2034         * keydb.h, keydb.c (keydb_search): Rename to keydb_search2, and
2035         pass the optional index to keyring_search.  Add a macro version of
2036         keydb_search that calls this new function.
2038         * export.c (do_export_stream): If the keyid! syntax is used,
2039         export only that specified key.  If the key in question is a
2040         subkey, export the primary plus that subkey only.
2042 2003-02-11  David Shaw  <dshaw@jabberwocky.com>
2044         * exec.c (set_exec_path): Add debugging line.
2046         * g10.c (print_hex, print_mds): Print long hash strings a lot
2047         neater.  This assumes at least an 80-character display, as there
2048         are a few other similar assumptions here and there.  Users who
2049         need unformatted hashes can still use with-colons.  Check that
2050         SHA384 and 512 are available before using them as they are no
2051         longer always available.
2053         * Makefile.am: Use a local copy of libexecdir along with @PACKAGE@
2054         as GNUPG_LIBEXECDIR so it can be easily overridden at make time.
2056 2003-02-04  David Shaw  <dshaw@jabberwocky.com>
2058         * armor.c (parse_hash_header, armor_filter): Accept the new SHAs
2059         in the armor Hash: header.
2061         * g10.c (print_hex): Print long hash strings a little neater.
2062         (print_mds): Add the new SHAs to the hash list.
2064 2003-02-02  David Shaw  <dshaw@jabberwocky.com>
2066         * keyedit.c (menu_revuid): Properly handle a nonselfsigned uid on
2067         a v4 key (treat as a v4 revocation).
2069         * import.c (print_import_check): Do not re-utf8 convert user IDs.
2071 2003-01-27  David Shaw  <dshaw@jabberwocky.com>
2073         * mainproc.c (list_node): Show signature expiration date in
2074         with-colons sig records.
2076         * keylist.c (list_keyblock_colon), mainproc.c (list_node): Show
2077         trust sig information in with-colons sig records.
2079 2003-01-16  David Shaw  <dshaw@jabberwocky.com>
2081         * g10.c (add_group): Trim whitespace after a group name so it does
2082         not matter where the user puts the = sign.
2084         * options.skel: Comment out the first three lines in case someone
2085         manually copies the skel file to their homedir.
2087         * sign.c (clearsign_file): Only use pgp2mode with v3 keys and
2088         MD5. This matches what we do when decoding such messages and
2089         prevents creating a message (v3+RIPEMD/160) that we can't verify.
2091         * sig-check.c (signature_check2): Use G10ERR_GENERAL as the error
2092         for signature digest conflict.  BAD_SIGN implies that a signature
2093         was checked and we may try and print out a user ID for a key that
2094         doesn't exist.
2096 2003-01-15  David Shaw  <dshaw@jabberwocky.com>
2098         * trustdb.c (init_trustdb, get_validity): Don't use a changed
2099         trust model to indicate a dirty trustdb, and never auto-rebuild a
2100         dirty trustdb with the "always" trust model.
2102         * g10.c (add_group): Last commit missed the \t ;)
2104 2003-01-14  David Shaw  <dshaw@jabberwocky.com>
2106         * packet.h, parse-packet.c (setup_user_id), free-packet.c
2107         (free_user_id), keydb.h, keyid.c (namehash_from_uid): New function
2108         to rmd160-hash the contents of a user ID packet and cache it in
2109         the uid object.
2111         * keylist.c (list_keyblock_colon): Use namehash in field 8 of
2112         uids.  Show dates for creation (selfsig date), and expiration in
2113         fields 6 and 7.
2115         * trustdb.c (get_validity, get_validity_counts, update_validity):
2116         Use new namehash function rather than hashing it locally.
2118 2003-01-14  Werner Koch  <wk@gnupg.org>
2120         * g10.c (add_group): Fixed group parsing to allow more than one
2121         delimiter in a row and also allow tab as delimiter.
2123 2003-01-12  David Shaw  <dshaw@jabberwocky.com>
2125         * tdbio.c (tdbio_set_dbname): Fix assertion failure with
2126         non-fully-qualified trustdb names.
2128 2003-01-11  David Shaw  <dshaw@jabberwocky.com>
2130         * trustdb.c (get_validity_info, get_ownertrust_info,
2131         trust_letter): Simplify by returning a ? for error directly.
2133         * keyedit.c (show_key_with_all_names): Use get_validity_string and
2134         get_ownertrust_string to show full word versions of trust
2135         (i.e. "full" instead of 'f').
2137         * trustdb.h, trustdb.c (get_ownertrust_string,
2138         get_validity_string): Same as get_ownertrust_info, and
2139         get_validity_info, except returns a full string.
2141         * trustdb.c (get_ownertrust_with_min): New.  Same as
2142         'get_ownertrust' but takes the min_ownertrust value into account.
2144 2003-01-10  David Shaw  <dshaw@jabberwocky.com>
2146         * armor.c (armor_filter): Comment about PGP's end of line tab
2147         problem.
2149         * trustdb.h, trustdb.c (trust_letter): Make
2150         static. (get_ownertrust_info, get_validity_info): Don't mask the
2151         trust level twice.
2153         * trustdb.h, gpgv.c, trustdb.c (get_validity, get_validity_info),
2154         keylist.c (list_keyblock_colon), keyedit.c
2155         (show_key_with_all_names_colon, menu_revuid): Pass a user ID in
2156         rather than a namehash, so we only have to do the hashing in one
2157         place.
2159         * packet.h, pkclist.c (build_pk_list), free-packet.c
2160         (release_public_key_parts): Remove unused namehash element for
2161         public keys.
2163 2003-01-07  David Shaw  <dshaw@jabberwocky.com>
2165         * keygen.c (keygen_set_std_prefs): Warn when setting an IDEA
2166         preference when IDEA is not available.
2168 2003-01-06  David Shaw  <dshaw@jabberwocky.com>
2170         * trustdb.c (get_validity_info): 'd' for disabled is not a
2171         validity value any more.
2173         * packet.h, tdbio.h, tdbio.c (tdbio_read_record,
2174         tdbio_write_record), trustdb.c (update_validity): Store temporary
2175         full & marginal counts in the trustdb.
2176         (clear_validity, get_validity_counts): Return and clear temp
2177         counts.
2178         (store_validation_status): Keep track of which keyids have been
2179         stored.
2180         (validate_one_keyblock, validate_key_list): Use per-uid copies of
2181         the full & marginal counts so they can be recalled for multiple
2182         levels.
2183         (validate_keys): Only use unused keys for each new round.
2184         (reset_unconnected_keys): Rename to reset_trust_records, and only
2185         skip specifically excluded records.
2187         * keylist.c (print_capabilities): Show 'D' for disabled keys in
2188         capabilities section.
2190         * trustdb.c (is_disabled): Remove incorrect comment.
2192 2003-01-03  David Shaw  <dshaw@jabberwocky.com>
2194         * import.c (import_one): Only do the work to create the status
2195         display for interactive import if status is enabled.
2197         * keyring.c (keyring_search): skipfnc didn't work properly with
2198         non-keyid searches.  Noted by Stefan Bellon.
2200         * getkey.c (merge_selfsigs_main): Remove some unused code and make
2201         sure that the pk selfsigversion member accounts for 1F direct
2202         sigs.
2204 2003-01-02  Werner Koch  <wk@gnupg.org>
2206         * keydb.c (keydb_add_resource): Don't assume that try_make_homedir
2207         terminates but check again for the existence of the directory and
2208         continue then.
2209         * openfile.c (copy_options_file): Print a warning if the skeleton
2210         file has active options.
2212 2002-12-29  David Shaw  <dshaw@jabberwocky.com>
2214         * getkey.c (merge_selfsigs_main), main.h, sig-check.c
2215         (check_key_signature2): Pass the ultimately trusted pk directly to
2216         check_key_signature2 to avoid going through the key selection
2217         mechanism.  This prevents a deadly embrace when two keys without
2218         selfsigs each sign the other.
2220 2002-12-27  David Shaw  <dshaw@jabberwocky.com>
2222         * keyserver.c (keyserver_refresh): Don't print the "refreshing..."
2223         line if there are no keys to refresh or if there is no keyserver
2224         set.
2226         * getkey.c (merge_selfsigs_main): Any valid user ID should make a
2227         key valid, not just the last one.  This also fixes Debian bug
2228         #174276.
2230 2002-12-27  Stefan Bellon  <sbellon@sbellon.de>
2232         * import.c (print_import_check): Changed int to size_t.
2234 2002-12-27  David Shaw  <dshaw@jabberwocky.com>
2236         * keyedit.c (keyedit_menu, menu_revuid): Add "revuid" feature to
2237         revoke a user ID.  This is the same as issuing a revocation for
2238         the self-signature, but a much simpler interface to do it.
2240 2002-12-26  David Shaw  <dshaw@jabberwocky.com>
2242         * keydb.h, getkey.c (key_byname): Flag to enable or disable
2243         including disabled keys.  Keys specified via keyid (i.e. 0x...)
2244         are always included.
2246         * getkey.c (get_pubkey_byname, get_seckey_byname2,
2247         get_seckey_bynames), keyedit.c (keyedit_menu, menu_addrevoker):
2248         Include disabled keys in these functions.
2250         * pkclist.c (build_pk_list): Do not include disabled keys for -r
2251         or the key prompt.  Do include disabled keys for the default key
2252         and --encrypt-to.
2254         * trustdb.h, trustdb.c (is_disabled): New skipfnc for skipping
2255         disabled keys.
2257         * gpgv.c (is_disabled): Stub.
2259         * keygen.c (keygen_add_key_expire): Properly handle updating a key
2260         expiration to a no-expiration value.
2262         * keyedit.c (enable_disable_key): Comment.
2264         * import.c (import_one): When in interactive mode and --verbose,
2265         don't repeat some key information twice.
2267 2002-12-22  Timo Schulz  <ts@winpt.org>
2268         
2269         * import.c (print_import_check): New.
2270         (import_one): Use it here.
2271         Use merge_keys_and_selfsig in the interactive mode to avoid
2272         wrong key information.
2273         * status.h: Add new status code.
2274         * status.c: Ditto.
2275         
2276 2002-12-13  David Shaw  <dshaw@jabberwocky.com>
2278         * pkclist.c (do_we_trust): Tweak language to refer to the "named
2279         user" rather than "owner".  Noted by Stefan Bellon.
2281         * trustdb.h, trustdb.c (trustdb_pending_check): New function to
2282         check if the trustdb needs a check.
2284         * import.c (import_keys_internal): Used here so we don't rebuild
2285         the trustdb if it is still clean.
2286         (import_one, chk_self_sigs): Only mark trustdb dirty if the key
2287         that is being imported has any sigs other than self-sigs.
2288         Suggested by Adrian von Bidder.
2290         * options.skel: Include the required '=' sign in the sample
2291         'group' option.  Noted by Stefan Bellon.
2293         * import.c (chk_self_sigs): Don't try and check a subkey as if it
2294         was a signature.
2296 2002-12-11  David Shaw  <dshaw@jabberwocky.com>
2298         * tdbio.c (tdbio_read_record, tdbio_write_record): Compact the
2299         RECTYPE_TRUST records a bit.
2301         * g10.c (main): Comment out --list-trust-path until it can be
2302         implemented.
2304         * import.c (import_one): Warn when importing an Elgamal primary
2305         that this may take some time (to verify self-sigs).
2306         (chk_self_sigs): Try and cache all self-sigs so the keyblock is
2307         written to the keyring with a good rich cache.
2309         * keygen.c (ask_algo): Make the Elgamal sign+encrypt warning
2310         stronger, and remove the RSA sign+encrypt warning.
2312 2002-12-06  Stefan Bellon  <sbellon@sbellon.de>
2314         * options.h: Fixed typo (mangle_dos_names instead of
2315         mangle_dos_filenames).
2317 2002-12-05  Werner Koch  <wk@gnupg.org>
2319         * g10.c: New options --[no-]mangle-dos-filenames.
2320         * options.h (opt): Added mangle-dos-filenames.
2321         * openfile.c (open_outfile) [USE_ONLY_8DOT3]: Truncate the
2322         filename only when this option is set; this is the default.
2324 2002-12-04  David Shaw  <dshaw@jabberwocky.com>
2326         * main.h, keyedit.c, keygen.c: Back out previous (2002-12-01)
2327         change.  Minimal isn't always best.
2329         * sign.c (update_keysig_packet): Use the current time rather then
2330         a modification of the original signature time.  Make sure that
2331         this doesn't cause a time warp.
2333         * keygen.c (keygen_add_key_expire): Properly handle a key
2334         expiration date in the past (use a duration of 0).
2336         * keyedit.c (menu_expire): Use update_keysig_packet so any sig
2337         subpackets are maintained during the update.
2339         * build-packet.c (build_sig_subpkt): Mark sig expired or unexpired
2340         when the sig expiration subpacket is added.
2341         (build_sig_subpkt_from_sig): Handle making an expiration subpacket
2342         from a sig that has already expired (use a duration of 0).
2344         * packet.h, sign.c (update_keysig_packet), keyedit.c
2345         (menu_set_primary_uid, menu_set_preferences): Add ability to issue
2346         0x18 subkey binding sigs to update_keysig_packet and change all
2347         callers.
2349         * trustdb.c (validate_keys): Show trust parameters when building
2350         the trustdb, and make sure that the version record update was
2351         successful.
2352         (init_trustdb): If the current parameters aren't what was used for
2353         building the trustdb, the trustdb is invalid.
2355         * tbio.c (tdbio_db_matches_options): Update to work with new
2356         trustdbs.
2358 2002-12-03  David Shaw  <dshaw@jabberwocky.com>
2360         * tdbio.h, tdbio.c (tdbio_read_record, tdbio_write_record): Store
2361         trust model in the trustdb version record.
2362         (tdbio_update_version_record): New function to update version
2363         record values during a trustdb check or update.
2364         (tdbio_dump_record): Show trust model in dump.
2366         * trustdb.c (validate_keys): Call tdbio_update_version_record on
2367         success so that the correct options are stored in the trustdb.
2369         * options.h: rearrange trust models so that CLASSIC is 0 and
2370         OPENPGP is 1.
2372         * options.h, g10.c (main), encode.c (write_pubkey_enc_from_list),
2373         pkclist.c (algo_available), revoke.c (gen_revoke): Add --pgp8
2374         mode.  This is basically identical to --pgp7 in all ways except
2375         that signing subkeys, v4 data sigs (including expiration), and SK
2376         comments are allowed.
2378         * getkey.c (finish_lookup): Comment.
2380         * main.h, keylist.c (reorder_keyblock), keyedit.c (keyedit_menu):
2381         Reorder user ID display in the --edit-key menu to match that of
2382         the --list-keys display.
2384         * g10.c (add_notation_data): Fix initialization.
2386 2002-12-01  David Shaw  <dshaw@jabberwocky.com>
2388         * keyedit.c (menu_expire): Don't lose key flags when changing the
2389         expiration date of a subkey.  This is not the most optimal
2390         solution, but it is minimal change on the stable branch.
2392         * main.h, keygen.c (do_copy_key_flags): New function to copy key
2393         flags, if any, from one sig to another.
2394         (do_add_key_expire): New function to add key expiration to a sig.
2395         (keygen_copy_flags_add_expire): New version of
2396         keygen_add_key_expire that also copies key flags.
2397         (keygen_add_key_flags_and_expire): Use do_add_key_expire.
2399         * import.c (fix_hkp_corruption): Comment.
2401 2002-11-25  Stefan Bellon  <sbellon@sbellon.de>
2403         * plaintext.c (handle_plaintext) [__riscos__]: If nooutput is set,
2404         no filetype is needed obviously.
2406 2002-11-24  David Shaw  <dshaw@jabberwocky.com>
2408         * main.h, misc.c (default_cipher_algo, default_compress_algo):
2409         New.  Return the default algorithm by trying
2410         --cipher-algo/--compress-algo, then the first item in the pref
2411         list, then s2k-cipher-algo or ZIP.
2413         * sign.c (sign_file, sign_symencrypt_file), encode.c
2414         (encode_simple, encode_crypt): Call default_cipher_algo and
2415         default_compress_algo to get algorithms.
2417         * g10.c (main): Allow pref selection for compress algo with
2418         --openpgp.
2420         * mainproc.c (proc_encrypted): Use --s2k-digest-algo for
2421         passphrase mangling rather than --digest-algo.
2423         * sign.c (hash_for): If --digest-algo is not set, but
2424         --personal-digest-preferences is, then use the first hash
2425         algorithm in the personal list.  If the signing algorithm is DSA,
2426         then use the first 160-bit hash algorithm in the personal list.
2427         If --pgp2 is set and it's a v3 RSA key, use MD5.
2429         * g10.c (main), keydb.c (keydb_add_resource,
2430         keydb_locate_writable): Rename --default-keyring as
2431         --primary-keyring.  Stefan wins the naming contest.
2433 2002-11-23  David Shaw  <dshaw@jabberwocky.com>
2435         * g10.c (add_notation_data): Disallow notation names that do not
2436         contain a '@', unless --expert is set.  This is to help prevent
2437         people from polluting the (as yet unused) IETF namespace.
2439         * main.h: Comments about default algorithms.
2441         * photoid.c (image_type_to_string): Comments about 3-letter file
2442         extensions.
2444         * encode.c (encode_simple), passphrase.c (passphrase_to_dek),
2445         sign.c (sign_symencrypt_file): Use --s2k-digest-algo for
2446         passphrase mangling rather than --digest-algo.
2448 2002-11-21  David Shaw  <dshaw@jabberwocky.com>
2450         * keygen.c (keygen_set_std_prefs): Properly handle an empty
2451         preference string.
2453         * misc.c (string_to_compress_algo): "none" is a bad choice since
2454         it conflicts with the "none" in setpref.
2456 2002-11-14  David Shaw  <dshaw@jabberwocky.com>
2458         * g10.c (main): Allow compression algorithm names as the argument
2459         to --compress-algo.  The old algorithm names still work for
2460         backwards compatibility.
2462         * misc.c (string_to_compress_algo): Allow "none" as an alias for
2463         "uncompressed".
2465 2002-11-13  Stefan Bellon  <sbellon@sbellon.de>
2467         * getkey.c (get_pubkey_byfprint_fast): Fixed type incompatibility,
2468         was unsigned char instead of byte.
2470 2002-11-13  David Shaw  <dshaw@jabberwocky.com>
2472         * encode.c (encode_simple): Make sure that files larger than about
2473         4G use partial length encoding.  This is required because OpenPGP
2474         allows only for 32 bit length fields.  From Werner on stable
2475         branch.
2477         * getkey.c (get_pubkey_direct): Renamed to...
2478         (get_pubkey_fast): this and made extern.
2479         (get_pubkey_byfprint_fast): New.  From Werner on stable branch.
2481         * keydb.h, import.c (import_one): Use get_pubkey_fast instead of
2482         get_pubkey.  We don't need a merged key and actually this might
2483         lead to recursions.
2484         (revocation_present): Likewise for search by fingerprint.  From
2485         Werner on stable branch.
2487         * g10.c (main): Try to create the trustdb even for non-colon-mode
2488         list-key operations.  This is required because getkey needs to
2489         know whether a a key is ultimately trusted.  From Werner on stable
2490         branch.
2491         
2492         * exec.c [__CYGWIN32__]: Keep cygwin separate from Mingw32;
2493         we don't need it here as it behaves more like a Posix system.
2494         From Werner on stable branch.
2496         * passphrase.c (agent_get_passphrase): Ditto.  From Werner on
2497         stable branch.
2499         * tdbio.c (MY_O_BINARY): Need binary mode with Cygwin.  From
2500         Werner on stable branch.
2502         * g10.c, gpgv.c (main) [__CYGWIN32__]: Don't get the homedir from
2503         the registry.  From Werner on stable branch.
2504         
2505         * keyedit.c (show_key_with_all_names_colon): Make --with-colons
2506         --edit display match the validity and trust of --with-colons
2507         --list-keys.
2509         * passphrase.c (agent_send_all_options): Fix compile warning.
2511         * keylist.c (list_keyblock_colon): Validity for subkeys should
2512         match that of the primary key, and not that of the last user ID.
2514         * getkey.c (merge_selfsigs): Revoked/expired/invalid primary keys
2515         carry these facts onto all their subkeys, but only after the
2516         subkey has a chance to be marked valid.  This is to fix an
2517         incorrect "invalid public key" error verifying a signature made by
2518         a revoked signing subkey, with a valid unrevoked primary key.
2520 2002-11-09  Werner Koch  <wk@gnupg.org>
2522         * passphrase.c (agent_send_all_options): Use tty_get_ttyname to
2523         get the default ttyname.
2525 2002-11-07  David Shaw  <dshaw@jabberwocky.com>
2527         * keyring.h, keyring.c (keyring_register_filename): Return the
2528         pointer if a given keyring is registered twice.
2530         * keydb.h, keydb.c (keydb_add_resource): Use flags to indicate a
2531         default keyring.
2532         (keydb_locate_writable): Prefer the default keyring if possible.
2534         * g10.c (main): Add --default-keyring option.
2536 2002-11-06  David Shaw  <dshaw@jabberwocky.com>
2538         * options.h, g10.c (main), trustdb.c (ask_ownertrust): Add
2539         --force-ownertrust option for debugging purposes.  This allows
2540         setting a whole keyring to a given trust during an
2541         --update-trustdb.  Not for normal use - it's just easier than
2542         hitting "4" all the time to test a large trustdb.
2544         * pubkey-enc.c (get_session_key): With hidden recipients or try a
2545         given passphrase against all secret keys rather than trying all
2546         secret keys in turn.  Don't if --try-all-secrets or --status-fd is
2547         enabled.
2549         * passphrase.c (passphrase_to_dek): Mode 1 means do a regular
2550         passphrase query, but don't prompt with the key info.
2552         * seckey-cert.c (do_check, check_secret_key): A negative ask count
2553         means to enable passphrase mode 1.
2555         * keydb.h, getkey.c (enum_secret_keys): Add flag to include
2556         secret-parts-missing keys (or not) in the list.
2558 2002-11-05  David Shaw  <dshaw@jabberwocky.com>
2560         * keyserver.c (keyserver_search_prompt): When --with-colons is
2561         enabled, don't try and fit the search output to the screen size -
2562         just dump the whole list.
2564 2002-11-04  David Shaw  <dshaw@jabberwocky.com>
2566         * keyserver.c (keyserver_search_prompt): When --with-colons is
2567         enabled, just dump the raw keyserver protocol to stdout and don't
2568         print the menu.
2570         * keyserver.c (show_prompt): Don't show a prompt when command-fd
2571         is being used.
2573         * trustdb.c (trust_model_string, check_trustdb, update_trustdb,
2574         validate_one_keyblock): It's not clear what a trustdb rebuild or
2575         check means with a trust model other than "classic" or "openpgp",
2576         so disallow this.
2578 2002-11-03  David Shaw  <dshaw@jabberwocky.com>
2580         * options.h, g10.c (main): Add --trust-model option.  Current
2581         models are "openpgp" which is classic+trustsigs, "classic" which
2582         is classic only, and "always" which is the same as the current
2583         option --always-trust (which still works).  Default is "openpgp".
2585         * trustdb.c (validate_one_keyblock): Use "openpgp" trust model to
2586         enable trust sigs.
2588         * gpgv.c (main), mainproc.c (check_sig_and_print), pkclist.c
2589         (do_we_trust, do_we_trust_pre, check_signatures_trust): Use new
2590         --trust-model option in place of --always-trust.
2592         * keyedit.c (sign_mk_attrib, trustsig_prompt, sign_uids,
2593         keyedit_menu): Prompt for and create a trust signature with
2594         "tsign".  This is functional, but needs better UI text.
2596         * build-packet.c (build_sig_subpkt): Able to build trust and
2597         regexp subpackets.
2599         * pkclist.c (do_edit_ownertrust): Comment.
2601 2002-11-02  David Shaw  <dshaw@jabberwocky.com>
2603         * keygen.c (set_one_pref, keygen_set_std_prefs): Allow using the
2604         full algorithm name (CAST5, SHA1) rather than the short form (S3,
2605         H2).
2607         * main.h, keygen.c (keygen_get_std_prefs), keyedit.c
2608         (keyedit_menu): Return and use a fake uid packet rather than a
2609         string since we already have a nice parser/printer in
2610         keyedit.c:show_prefs.
2612         * main.h, misc.c (string_to_compress_algo): New.
2614 2002-11-01  David Shaw  <dshaw@jabberwocky.com>
2616         * g10.c (main): Add --no-throw-keyid.
2618         * keydb.h, encode.c (write_pubkey_enc_from_list), g10.c (main),
2619         pkclist.c (build_pk_list): Add --hidden-recipient (-R) and
2620         --hidden-encrypt-to, which do a single-user variation on
2621         --throw-keyid.  The "hide this key" flag is carried in bit 0 of
2622         the pk_list flags field.
2624         * keyserver.c (parse_keyrec): Fix shadowing warning.
2626 2002-10-31  Stefan Bellon  <sbellon@sbellon.de>
2628         * compress.c (init_compress) [__riscos__]: Use
2629         riscos_load_module() to load ZLib module.
2631         * g10.c (main) [__riscos__]: Renames due to changes in riscos.c
2632         (e.g. prefixes all RISC OS specific functions with riscos_*).
2633         * photoid.c (show_photos) [__riscos__]: Likewise.
2634         * signal.c (got_fatal_signal) [__riscos__]: Likewise.
2636         * trustdb.c (check_regexp) [__riscos__]: Branch to RISC OS RegEx
2637         handling.
2639 2002-10-31  David Shaw  <dshaw@jabberwocky.com>
2641         * build-packet.c (do_plaintext), encode.c (encode_sesskey,
2642         encode_simple, encode_crypt), sign.c (write_plaintext_packet): Use
2643         wipememory() instead of memset() to wipe sensitive memory as the
2644         memset() might be optimized away.
2646 2002-10-30  David Shaw  <dshaw@jabberwocky.com>
2648         * trustdb.c (check_regexp): Modern regexps require REG_EXTENDED.
2650 2002-10-29  David Shaw  <dshaw@jabberwocky.com>
2652         * packet.h, trustdb.h, trustdb.c (trust_string): New.  Return a
2653         string like "fully trusted", "marginally trusted", etc.
2654         (get_min_ownertrust): New.  Return minimum ownertrust.
2655         (update_min_ownertrust): New.  Set minimum ownertrust.
2656         (check_regexp): New.  Check a regular epression against a user ID.
2657         (ask_ownertrust): Allow specifying a minimum value.
2658         (get_ownertrust_info): Follow the minimum ownertrust when
2659         returning a letter.
2660         (clear_validity): Remove minimum ownertrust when a key becomes
2661         invalid.
2662         (release_key_items): Release regexp along with the rest of the
2663         info.
2664         (validate_one_keyblock, validate_keys): Build a trust sig chain
2665         while validating.  Call check_regexp for regexps.  Use the minimum
2666         ownertrust if the user does not specify a genuine ownertrust.
2668         * pkclist.c (do_edit_ownertrust): Only allow user to select a
2669         trust level greater than the minimum value.
2671         * parse-packet.c (can_handle_critical): Can handle critical trust
2672         and regexp subpackets.
2674         * trustdb.h, trustdb.c (clear_ownertrusts), delkey.c
2675         (do_delete_key), import.c (import_one): Rename clear_ownertrust to
2676         clear_ownertrusts and have it clear the min_ownertrust value as
2677         well.
2679         * keylist.c (list_keyblock_print): Indent uid to match pub and
2680         sig.
2682         * keyedit.c (print_and_check_one_sig, show_key_and_fingerprint,
2683         menu_addrevoker), keylist.c (list_keyblock_print,
2684         print_fingerprint): Show "T" or the trust depth for trust
2685         signatures, and add spaces to some strings to make room for it.
2687         * packet.h, parse-packet.c (dump_sig_subpkt, parse_one_sig_subpkt,
2688         parse_signature): Parse trust signature values.
2690         * tdbio.h, tdbio.c (tdbio_read_record, tdbio_write_record):
2691         Reserve a byte for the minimum ownertrust value (for use with
2692         trust signatures).
2694 2002-10-29  Stefan Bellon  <sbellon@sbellon.de>
2696         * build-packet.c (calc_plaintext, do_plaintext): Removed RISC OS
2697         specific filetype parts (it's now done in make_basename()).
2699         * plaintext.c (handle_plaintext): Tidied up RISC OS specific
2700         filetype parts.
2702         * encode.c (encode_simple, encode_crypt): Added argument to
2703         make_basename() call.
2705         * sign.c (write_plaintext_packet): Added argument to
2706         make_basename() call.
2708 2002-10-28  Stefan Bellon  <sbellon@sbellon.de>
2710         * build-packet.c (calc_plaintext, do_plaintext): Added filetype
2711         handling for RISC OS' file types.
2713         * plaintext.c (handle_plaintext) [__riscos__]: Added filetype
2714         handling for RISC OS' file types.
2716 2002-10-23  David Shaw  <dshaw@jabberwocky.com>
2718         * main.h, import.c (sec_to_pub_keyblock, import_secret_one,
2719         parse_import_options), g10.c (main): New import-option
2720         "convert-sk-to-pk" to convert a secret key into a public key
2721         during import.  It is on by default.
2723 2002-10-23  Werner Koch  <wk@gnupg.org>
2725         * pubkey-enc.c (get_it): Fix segv, test for revoked only when PK
2726         has been assigned.
2728 2002-10-18  Timo Schulz  <ts@winpt.org>
2730         * keylist.c: (print_pubkey_info): New.
2731         (print_seckey_info): New.
2732         * main.h: Prototypes for the new functions.       
2733         * delkey.c (do_delete_key): Use it here.
2734         * revoke.c (gen_desig_revoke): Ditto.
2735         
2736 2002-10-17  Werner Koch  <wk@gnupg.org>
2738         * pkclist.c (do_edit_ownertrust): Show all user IDs.  This should
2739         be enhanced to also show the current trust level.  Suggested by
2740         Florian Weimer.
2742 2002-10-17  David Shaw  <dshaw@jabberwocky.com>
2744         * g10.c (main): Handle --strict and --no-strict from the command
2745         line before the options file is loaded.
2747 2002-10-15  David Shaw  <dshaw@jabberwocky.com>
2749         * g10.c (main): Disable --textmode when encrypting (symmetric or
2750         pk) in --pgp2 mode as PGP 2 can't handle the unknown length
2751         literal packet.  Reported by Michael Richardson.
2753 2002-10-14  David Shaw  <dshaw@jabberwocky.com>
2755         * keyserver-internal.h, keyserver.c (print_keyrec, parse_keyrec,
2756         show_prompt, keyserver_search_prompt, keyserver_spawn): Go to
2757         version 1 of the keyserver protocol.  This is a better design,
2758         similar to --with-colons, that allows for keys with multiple user
2759         IDs rather than using multiple keys.  It also matches the machine
2760         readable pksd format.  Also use a prettier --search-keys listing
2761         format that can fill different size windows (currently set at 24
2762         lines).
2764 2002-10-12  Werner Koch  <wk@gnupg.org>
2766         * keygen.c (print_status_key_created): New.
2767         (do_generate_keypair): Use it to print the fingerprint.
2768         (generate_subkeypair): Likewise.
2770 2002-10-11  David Shaw  <dshaw@jabberwocky.com>
2772         * keyedit.c (menu_addrevoker): Properly back out if the signature
2773         fails.  Also, do not allow appointing the same revoker twice, and
2774         report ALREADY_SIGNED if the user tries it.
2776 2002-10-07  David Shaw  <dshaw@jabberwocky.com>
2778         * import.c (import_keys_internal): Missed one s/inp/inp2/.
2780         * keylist.c (print_capabilities): Properly indicate per-key
2781         capabilities of sign&encrypt primary keys that have
2782         secret-parts-missing (i.e. no capabilities at all)
2784         * mainproc.c (symkey_decrypt_sesskey): Fix compiler warning.
2786 2002-10-04  David Shaw  <dshaw@jabberwocky.com>
2788         * getkey.c (get_pubkey_direct): Don't cache keys retrieved via
2789         this function as they may not have all their fields filled in.
2791         * sig-check.c (signature_check2): Use new is_primary flag to check
2792         rather than comparing main_keyid with keyid as this still works in
2793         the case of a not fully filled in pk.
2795 2002-10-04  Werner Koch  <wk@gnupg.org>
2797         * import.c (import_keys_internal): s/inp/inp2/ to avoid shadowing
2798         warning.
2800         * passphrase.c (agent_get_passphrase): Fixed signed/unsigned char
2801         problem in %-escaping.  Noted by Ingo Klöcker.
2803 2002-10-03  David Shaw  <dshaw@jabberwocky.com>
2805         * options.h, g10.c (main): Add --strict and --no-strict to switch
2806         the log_warning severity level from info to error.
2808         * keylist.c (print_capabilities): Secret-parts-missing keys should
2809         show that fact in the capabilities, and only primary signing keys
2810         can certify other keys.
2812         * packet.h, parse_packet.c (parse_key): Add is_primary flag for
2813         public keys (it already exists for secret keys).
2815 2002-10-02  David Shaw  <dshaw@jabberwocky.com>
2817         * import.c (import_secret_one): Check for an illegal (>110)
2818         protection cipher when importing a secret key.
2820         * keylist.c (list_keyblock_print): Show a '#' for a
2821         secret-parts-missing key.
2823         * parse_packet.c (parse_key): Some comments.
2825         * revoke.c (gen_revoke): Remove some debugging code.
2827         * trustdb.c (verify_own_keys): Make trusted-key a non-deprecated
2828         option again.
2830         * seckey-cert.c (do_check): Don't give the IDEA warning unless the
2831         cipher in question is in fact IDEA.
2833 2002-10-01  David Shaw  <dshaw@jabberwocky.com>
2835         * import.c (import_one): Make sure that a newly imported key
2836         starts with a clean ownertrust.
2838 2002-10-01  Werner Koch  <wk@gnupg.org>
2840         * getkey.c (get_pubkey_direct): New.
2841         (merge_selfsigs_main): Use it here to look for an ultimately
2842         trusted key.  Using the full get_pubkey might lead to an
2843         infinitive recursion.
2845 2002-09-29  David Shaw  <dshaw@jabberwocky.com>
2847         * keyserver.c (parse_keyserver_uri): Force the keyserver URI
2848         scheme to lowercase to be case-insensitive.
2850 2002-09-28  David Shaw  <dshaw@jabberwocky.com>
2852         * export.c (do_export_stream): Comment.
2854         * sig-check.c (check_key_signature2): Properly handle a
2855         non-designated revocation import.
2857 2002-09-26  Werner Koch  <wk@gnupg.org>
2859         * g10.c (set_homedir): New. Changed all direct assignments to use
2860         this.
2861         * gpgv.c (set_homedir): Ditto.
2863 2002-09-25  David Shaw  <dshaw@jabberwocky.com>
2865         * Makefile.am: Link gpg with EGDLIBS (i.e. NETLIBS) as EGD uses
2866         sockets.  Remove the old NETLIBS variable since the keyserver
2867         stuff is no longer internal.
2869 2002-09-24  David Shaw  <dshaw@jabberwocky.com>
2871         * import.c (import_keys_stream): Fix compiler type warning.
2873         * keyring.c (keyring_rebuild_cache), sig-check.c
2874         (check_key_signature2), import.c (import, chk_self_sigs): Minor
2875         language cleanups.
2877 2002-09-23  Stefan Bellon  <sbellon@sbellon.de>
2879         * main.h: Introduced fast-import as import option. Removed
2880         fast as separate option from prototypes.
2881         * import.c (parse_import_options): Added fast-import option.
2882         (import_*): Removed fast as separate option.
2883         * g10.c (main): Added option fast-import, removed old fast
2884         as separate argument.
2885         * keyserver.c (keyserver_spawn): Removed old fast as separate
2886         argument.
2888 2002-09-22  Stefan Bellon  <sbellon@sbellon.de>
2890         * import.c (import_keys, import_keys_stream,
2891         import_keys_internal): Added trustdb update/check to key import if
2892         not fast-import and interactive set/no-auto-check-trustdb unset.
2893         Avoided function clone by introducing import_keys_internal.
2895 2002-09-19  David Shaw  <dshaw@jabberwocky.com>
2897         * keyserver.c (keyserver_spawn): Properly handle line truncation.
2898         Don't leak memory (~10-20 bytes) on searches.
2899         (keyserver_search_prompt): Cleanup.
2901         * keylist.c (list_keyblock_colon): Show 1F direct key signatures
2902         in --with-colons listing.
2904 2002-09-16  David Shaw  <dshaw@jabberwocky.com>
2906         * keyedit.c (menu_addrevoker): The direct key signature for
2907         revocation keys must be at least v4 to carry the revocation key
2908         subpacket.  Add a PGP 2.x warning for revocation keys.
2910 2002-09-14  David Shaw  <dshaw@jabberwocky.com>
2912         * g10.c (check_permissions): Rearrange strings to make translating
2913         easier (don't incorporate string parts).
2915         * keyedit.c (sign_uids): Make strings translatable.
2917         * sig-check.c (check_key_signature2): Make string translatable.
2919 2002-09-13  David Shaw  <dshaw@jabberwocky.com>
2921         * getkey.c (check_revocation_keys): Move....
2922         * main.h, sig-check.c (check_revocation_keys): to here.  Also
2923         return the signature_check error code rather than 0/1 and cache
2924         the sig result.
2926         * sig-check.c (check_key_signature2): Divert to
2927         check_revocation_keys if a revocation sig is made by someone other
2928         than the pk owner.
2930         * getkey.c (merge_selfsigs_main): Tidy.
2932 2002-09-13  Werner Koch  <wk@gnupg.org>
2934         * g10.c (main) [__MINGW32__]: Activate oLoadExtension.
2936 2002-09-12  David Shaw  <dshaw@jabberwocky.com>
2938         * Makefile.am, hkp.c, hkp.h, keyserver.c (keyserver_work): Remove
2939         internal HKP support.
2941         * keyserver.c (keyserver_spawn): Remove whitespace after keyserver
2942         commands.
2944 2002-09-10  David Shaw  <dshaw@jabberwocky.com>
2946         * exec.c (expand_args): Remove loop left over from earlier
2947         implementation.
2948         (exec_write): Missed one tick.
2950 2002-09-10  Werner Koch  <wk@gnupg.org>
2952         * g10.c, options.h: Removed option --emulate-checksum-bug.
2953         * misc.c (checksum_u16_nobug): Removed.
2954         (checksum_u16): Removed the bug emulation.
2955         (checksum_mpi): Ditto.
2956         (checksum_mpi_counted_nbits): Removed and replaced all calls
2957         with checksum_mpi.
2959         * parse-packet.c (read_protected_v3_mpi): New.
2960         (parse_key): Use it here to store it as an opaque MPI.
2961         * seckey-cert.c (do_check): Changed the v3 unprotection to the new
2962         why to store these keys.
2963         (protect_secret_key): Likewise.
2964         * build-packet.c (do_secret_key): And changed the writing.
2966         * tdbio.c (tdbio_set_dbname, open_db): Use new macro MY_O_BINARY
2967         to avoid silly ifdefs.
2968         (open_db): Fallback to RDONLY so that gpg may be used from a
2969         RO-medium.
2971         * encode.c (encode_simple): Make sure we don't use an ESK packet
2972         when we don't have a salt in the S2K.
2974         * misc.c (pct_expando) <case f>: Make sure that LEN is initialized.
2976         * exec.c (exec_finish): Use ticks to denote filenames in messages.
2977         (make_tempdir, exec_write): Changed format of messages.
2979         * keyserver.c (print_keyinfo): Release USERID in on error.
2980         (keyserver_work) [!DISABLE_KEYSERVER_HELPERS]: Exclude the unused
2981         code.
2983 2002-09-09  Werner Koch  <wk@gnupg.org>
2985         * parse-packet.c (make_attribute_uidname): Add new ar MAX_NAMELEN
2986         for sanity checks.  Changed both callers. Limit the size of an %s.
2988         * options.skel: Comment lock-once out, so that this file does not
2989         change anything when copied to a new home directory.
2990         * openfile.c (try_make_homedir): Don't exit after copying the
2991         option skeleton.
2993         * options.h: Don't use a comma when declaring variables over more
2994         than one line.
2996         * mainproc.c (symkey_decrypt_sesskey): Check length of the session
2997         key.
2999         * hkp.c (dehtmlize): Use ascii_tolower to protect against weird
3000         locales.  Cast the argument for isspace for the sake of broken
3001         HP/UXes.
3002         (parse_hkp_index): s/ascii_memcasecmp/ascii_strncasecmp/.
3004         * g10.c: Removed option --emulate-3des-s2k-bug.
3006         * passphrase.c (hash_passphrase): Was used here.
3008         * export.c (parse_export_options)
3009         * keyserver.c (parse_keyserver_options)
3010         * import.c (parse_import_options)
3011         * g10.c (check_permissions): s/ascii_memcasecmp/ascii_strncasecmp/.
3013 2002-09-09  David Shaw  <dshaw@jabberwocky.com>
3015         * g10.c (add_group): Use '=' to separate group name from group
3016         members.  Use a better error message for when no = is found.
3018         * hkp.c (hkp_export): Use CRLF in headers.
3020 2002-09-03  David Shaw  <dshaw@jabberwocky.com>
3022         * mainproc.c (print_pkenc_list): Don't increment the error counter
3023         when printing the list of keys a message was encrypted to.  This
3024         would make gpg give a non-zero exit code even for completely valid
3025         messages if the message was encrypted to more than one key that
3026         the user owned.
3028 2002-09-02  Werner Koch  <wk@gnupg.org>
3030         * g10.c (main): Try to set a default character set.  Print the
3031         used one in verbosity level 3.
3032         * gpgv.c (main): Try to set a default character set.
3034         * status.c, status.h (STATUS_IMPORT_OK): New.
3035         * import.c (import_one,import_secret_one): Print new status.
3037 2002-08-30  David Shaw  <dshaw@jabberwocky.com>
3039         * pkclist.c (build_pk_list): Add new status code to indicate an
3040         untrusted user.  This (or a disabled key) fail with "unavailable
3041         pubkey" (G10ERR_UNU_PUBKEY).
3043         * pkclist.c (build_pk_list): Fail if any recipient keys are
3044         unusable.
3046         * options.skel: The PGP LDAP keyserver is back.  Use MIT keyserver
3047         as a sample rather than cryptnet as cryptnet does not support
3048         searching yet.
3050         * keyedit.c (show_key_with_all_names): Fix error message
3051         (preferences are userid/selfsig and not key specific).
3053 2002-08-30  Werner Koch  <wk@gnupg.org>
3055         * pkclist.c (do_we_trust_pre): Changed the wording of a warning.
3057         * encode.c (encode_simple,encode_crypt): Use new style CTB for
3058         compressssed packets when using MDC.  We need to do this so that
3059         concatenated messages are properly decrypted.  Old style
3060         compression assumes that it is the last packet; given that we
3061         can't determine the length in advance, the uncompressor does not
3062         know where to start.  Actually we should use the new CTB always
3063         but this would break PGP 2 compatibility.
3065         * parse-packet.c (parse): Special treatment for new style CTB
3066         compressed packets.
3068         * build-packet.c (do_mdc): Removed. Was not used.
3069         (do_encrypted_mdc): Count in the version number and the MDC packet.
3071 2002-08-28  David Shaw  <dshaw@jabberwocky.com>
3073         * sig-check.c (do_check_messages, do_check): Show keyid in error
3074         messages.
3076         * keyserver.c (print_keyinfo): More readable key listings for
3077         --search-keys responses.
3079 2002-08-26  David Shaw  <dshaw@jabberwocky.com>
3081         * hkp.c (parse_hkp_index, dehtmlize): Move HTML functionality into
3082         new "dehtmlize" function.  Remove HTML before trying to parse each
3083         line from the keyserver.  If the keyserver provides key type
3084         information in the listing, use it.
3086 2002-08-23  David Shaw  <dshaw@jabberwocky.com>
3088         * sig-check.c (do_check, do_check_messages): Emit the usual sig
3089         warnings even for cached sigs.  This also serves to protect
3090         against missing a sig expiring while cached.
3092         * getkey.c (merge_selfsigs_main): Don't check UID self-sigs twice.
3094 2002-08-22  David Shaw  <dshaw@jabberwocky.com>
3096         * import.c (clean_subkeys, chk_self_sigs): Merge clean_subkeys
3097         into chk_self_sigs.  This improves efficiency as the same
3098         signatures are not checked multiple times.  Clarify when a subkey
3099         is revoked (any revocation signature, even if it is dated before
3100         the binding signature).
3102         * getkey.c (merge_selfsigs_subkey): Subkey revocation comments.
3104         * keylist.c (list_one): Stats are only for public key listings.
3106         * g10.c (main), options.skel: Default should be include-revoked
3107         for keyserver operations.
3109 2002-08-21  Werner Koch  <wk@gnupg.org>
3111         * import.c (import_print_stats): Print new non_imported counter
3112         which is currently not used because we terminate on errors.
3114 2002-08-20  David Shaw  <dshaw@jabberwocky.com>
3116         * options.skel: Document no-include-attributes for
3117         keyserver-options.
3119         * keylist.c, keyedit.c, keyserver.c, sign.c: Some TODOs and
3120         comments.
3122         * export.c (do_export_stream): Fix noop bug in exporting sensitive
3123         revocation keys.
3125         * pkclist.c (do_edit_ownertrust): Comment out the option for
3126         showing trust paths until it can be implemented.
3128 2002-08-19  Werner Koch  <wk@gnupg.org>
3130         * getkey.c (get_user_id_native): Renamed to ..
3131         (get_user_id_printable): this.  Filter out all dangerous
3132         characters.  Checked all usages.
3133         (get_user_id_string_native): Renamed to..
3134         (get_user_id_string_printable): this.  Filter out all dangerous
3135         characters.  Checked all usages.
3136         * keyedit.c (show_basic_key_info): New.
3137         * keylist.c (print_fingerprint): New mode 3.
3138         * import.c (import_one): Use new function to display the user ID.
3140 2002-08-16  Timo Schulz  <ts@winpt.org>
3142         * g10.c (main): Enable opt.interactive.
3144         * import.c (import_one): Ask the user if the key shall be
3145         imported when the interactive mode is used. Useful to extract
3146         selected keys from a file.
3147         
3148 2002-08-16  Werner Koch  <wk@gnupg.org>
3150         * seckey-cert.c: Workaround to allow decryption of v3 keys created
3151         with a bug in the mpi_get_secure_buffer.
3153 2002-08-14  David Shaw  <dshaw@jabberwocky.com>
3155         * hkp.c (parse_hkp_index): Properly handle really large keys
3156         (5 digit key length) in HKP searches.
3158 2002-08-13  David Shaw  <dshaw@jabberwocky.com>
3160         * encode.c (encode_simple): Fix problem with using compression
3161         algo 2 and symmetric compressed files.
3163         * encode.c (encode_simple, encode_crypt): If we are not using a
3164         MDC, compress even if a file is already compressed.  This is to
3165         help against the chosen ciphertext attack.
3167         * pkclist.c (select_algo_from_prefs): Fix requested algorithm bug
3168         so the request succeeds even if the requested algorithm is not the
3169         first found.
3171         * cipher.c (write_header), encode.c (use_mdc, encode_simple,
3172         encode_crypt, encrypt_filter), g10.c (main): Be more eager to use
3173         a MDC.  We use a MDC if the keys directly support it, if the keys
3174         list AES (any) or TWOFISH anywhere in the prefs, or if the cipher
3175         chosen does not have a 64 bit blocksize.
3177 2002-08-08  David Shaw  <dshaw@jabberwocky.com>
3179         * options.skel: Some language tweaks, and remove the
3180         load-extension section for random gatherers.
3182         * keyring.c (create_tmp_file, rename_tmp_file): Create tmp files
3183         with user-only permissions, but restore the original permissions
3184         if the user has something special set.
3186         * openfile.c (copy_options_file): Create new options file
3187         (gpg.conf) with user-only permissions.
3189         * keydb.c (keydb_add_resource): Create new keyrings with user-only
3190         permissions.
3192         * tdbio.c (tdbio_set_dbname): Create new trustdbs with user-only
3193         permissions.
3195 2002-08-07  David Shaw  <dshaw@jabberwocky.com>
3197         * sig-check.c (signature_check2): Sanity check that the md has a
3198         context for the hash that the sig is expecting.  This can happen
3199         if a onepass sig header does not match the actual sig, and also if
3200         the clearsign "Hash:" header is missing or does not match the
3201         actual sig.
3203         * keyedit.c (menu_revsig): Properly show a uid is revoked without
3204         restarting gpg.  This is Debian bug 124219, though their supplied
3205         patch will not do the right thing.
3207         * main.h, tdbio.c (tdbio_set_dbname), misc.c (removed
3208         check_permissions), keydb.c (keydb_add_resource), g10.c (main,
3209         check_permissions): Significant reworking of the permission check
3210         mechanism.  The new behavior is to check everything in the homedir
3211         by checking the homedir itself.  If the user wants to put
3212         (possibly shared) keyrings outside the homedir, they are not
3213         checked.  The options file and any extension files are checked
3214         wherever they are, as well as their enclosing directories.  This
3215         is Debian bug 147760.
3216         
3217 2002-08-06  Stefan Bellon  <sbellon@sbellon.de>
3219         * g10.c (main): Use of EXTSEP_S in new gpg.conf string.
3220         * openfile.c (copy_options_file): Ditto.
3222 2002-08-06  David Shaw  <dshaw@jabberwocky.com>
3224         * options.h, g10.c (main), mainproc.c (proc_encrypted):
3225         --ignore-mdc-error option to turn a MDC check error into a
3226         warning.
3228         * encode.c (encode_crypt), g10.c (main), sign.c (sign_file,
3229         clearsign_file): Use the same --pgpX warning string everywhere to
3230         ease translations.
3232         * encode.c (write_pubkey_enc_from_list): Warn when using
3233         --throw-keyid with --pgpX.  Noted by Vedaal Nistar.
3235         * revoke.c (export_minimal_pk, gen_desig_revoke, gen_revoke):
3236         Export a minimal pk along with the revocation cert when in --pgpX
3237         mode so that PGP can import it.
3239 2002-08-06  Werner Koch  <wk@gnupg.org>
3241         * options.skel: Changed comments.
3243         * g10.c (main): Try to use "gpg.conf" as default option file.
3244         * openfile.c (copy_options_file): Changed name of created file.
3246 2002-08-02  Werner Koch  <wk@gnupg.org>
3248         * Makefile.am (LDFLAGS): Removed DYNLINK_LDFLAGS.
3250 2002-07-30  David Shaw  <dshaw@jabberwocky.com>
3252         * options.h, g10.c (main), mainproc.c (proc_encrypted): Return a
3253         decryption failed error if a MDC does not verify.  Warn if a MDC
3254         is not present (can disable via --no-mdc-warning).
3256         * exec.c (exec_write), g10.c (main), keyserver.c
3257         (keyserver_spawn): Use new DISABLE_KEYSERVER_PATH rather than
3258         FIXED_EXEC_PATH.
3260 2002-07-28  David Shaw  <dshaw@jabberwocky.com>
3262         * sig-check.c (do_check): Properly validate v4 sigs with no hashed
3263         section at all.
3265 2002-07-25  Werner Koch  <wk@gnupg.org>
3267         * delkey.c (do_delete_key): Always allow to delete a key in batch mode
3268         when specified by fingerprint.  Suggested by Enzo Michelangeli.
3270 2002-07-25  David Shaw  <dshaw@jabberwocky.com>
3272         * keyedit.c (menu_revsig): Change "revsig" to honor selected uids
3273         so the user can revoke sigs from particular uids only.
3275         * keylist.c (list_keyblock_print): Don't display expired uids in
3276         --list-keys unless -v and not --list-sigs (just like revoked
3277         uids).
3279         * exec.c, export.c, import.c, keyedit.c, keyserver.c, misc.c:
3280         "Warning" -> "WARNING"
3282 2002-07-24  David Shaw  <dshaw@jabberwocky.com>
3284         * main.h, import.c (parse_import_options, fix_hkp_corruption,
3285         import_one, delete_inv_parts), g10.c (main): New import-option
3286         "repair-hkp-subkey-bug", which repairs as much as possible the HKP
3287         mangling multiple subkeys bug.  It is on by default for keyserver
3288         receives, and off by default for regular --import.
3290         * main.h, import.c (import, import_one, delete_inv_parts), hkp.c
3291         (hkp_ask_import), keyserver.c (keyserver_spawn): Use keyserver
3292         import options when doing keyserver receives.
3294         * options.h, exec.h, exec.c (set_exec_path, exec_write), g10.c
3295         (main), keyserver.c (keyserver_spawn): If the user does not use
3296         "exec-path", completely replace $PATH with GNUPG_LIBEXECDIR before
3297         calling the keyserver helper.  If the user does use "exec-path",
3298         append GNUPG_LIBEXECDIR after the specified path.
3300 2002-07-23  David Shaw  <dshaw@jabberwocky.com>
3302         * import.c (parse_import_options), export.c
3303         (parse_export_options): Fix offset problem with reversed ("no-")
3304         meanings.
3306         * import.c (delete_inv_parts): Discard subkey signatures (0x18 and
3307         0x28) if found in the userid section of the key.
3309         * sig-check.c (signature_check2): Signatures made by invalid
3310         subkeys (bad/missing binding sig) are also invalid.
3312         * keylist.c (print_fingerprint): Show the primary as well as the
3313         secondary key fingerprint in modes 1 & 2.
3315 2002-07-22  David Shaw  <dshaw@jabberwocky.com>
3317         * options.h, main.h, g10.c (main), import.c
3318         (parse_import_options, delete_inv_parts), keyserver.c
3319         (parse_keyserver_options): add new --import-options option.  The
3320         only current flag is "allow-local-sigs".
3322         * g10.c (main): Don't disable MDC in pgp7 mode.
3324         * options.h, g10.c (main), keyserver.c (parse_keyserver_options):
3325         Remove old keyserver-option include-attributes now that there is
3326         an export-option for the same thing.
3328         * options.h, main.h, export.c (parse_export_options,
3329         do_export_stream), g10.c (main): add new --export-options option.
3330         Current flags are "include-non-rfc", "include-local-sigs",
3331         "include-attributes", and "include-sensitive-revkeys".
3333         * options.h, hkp.c (hkp_export), keyserver.c
3334         (parse_keyserver_options, keyserver_spawn): try passing unknown
3335         keyserver options to export options, and if successful, use them
3336         when doing a keyserver --send-key.
3338         * build-packet.c (build_sig_subpkt): We do not generate
3339         SIGSUBPKT_PRIV_VERIFY_CACHE anymore.
3341         * revoke.c (gen_desig_revoke): Lots more comments about including
3342         sensitive revkeys along with the revocation sig itself.
3344         * keyserver.c (parse_keyserver_options): Simpler implementation
3345         that can skip one pass over the options.
3347 2002-07-18  David Shaw  <dshaw@jabberwocky.com>
3349         * keyedit.c (keyedit_menu, menu_addrevoker): Allow specifying
3350         "sensitive" as an argument to an addrevoker command.  This sets
3351         the 0x40 sensitive revoker flag.
3353         * revoke.c (gen_desig_revoke): When generating a designated
3354         revocation, include the direct key sig that contains the
3355         designated revoker subpacket.  This allows sensitive designated
3356         revocation subpackets to be exported.  Also indicate which
3357         revokers are sensitive in the first place.
3359 2002-07-17  David Shaw  <dshaw@jabberwocky.com>
3361         * keyedit.c (show_key_with_all_names_colon): The 0x40 class bit in
3362         a designated revoker means "sensitive", not "local".  It's
3363         exportable under the right circumstances.
3365         * main.h, options.h, export.c (do_export_stream), g10.c (main),
3366         hkp.c (hkp_export), keyserver.c (keyserver_spawn: Add a flag to
3367         skip attribute packets and their signatures while exporting.  This
3368         is to accomodate keyservers (pksd again) that choke on attributes.
3369         Use keyserver-option "include-attributes" to control it.  This
3370         defaults to ON (i.e. don't skip).
3372 2002-07-09  David Shaw  <dshaw@jabberwocky.com>
3374         * options.h, keyserver.c (parse_keyserver_uri, keyserver_spawn,
3375         keyserver_work), hkp.c (hkp_ask_import, hkp_export, hkp_search):
3376         Use a much more strict reading of RFC-2396 for the keyserver URIs.
3377         Specifically, don't try and be smart about checking the value of
3378         ":port" so long as it is all digits, and properly handle opaque
3379         data (those scheme specific parts that do not start with "//").
3381 2002-07-04  David Shaw  <dshaw@jabberwocky.com>
3383         * photoid.c (get_default_photo_command, show_photos): Honor
3384         FIXED_PHOTO_VIEWER and DISABLE_PHOTO_VIEWER.
3386         * mainproc.c (check_sig_and_print): Use --show-photos to show
3387         photos when verifying a sig made by a key with a photo.
3389         * keyserver.c (parse_keyserver_uri): Properly parse a URI with no
3390         :port section and an empty file path, but with a terminating '/'.
3391         (keyserver_work): Honor DISABLE_KEYSERVER_HELPERS.
3393         * hkp.c (hkp_ask_import): Display keyserver URI as a URI, but only
3394         if verbose.
3396         * exec.c, g10.c: USE_EXEC_PATH -> FIXED_EXEC_PATH
3398 2002-07-03  David Shaw  <dshaw@jabberwocky.com>
3400         * exec.h, exec.c (set_exec_path, exec_write), g10.c (main): If
3401         USE_EXEC_PATH is defined at compile time, use it to lock the
3402         exec-path and not allow the user to change it.
3404 2002-07-02  David Shaw  <dshaw@jabberwocky.com>
3406         * options.h, g10.c (main), keyserver.c (keyserver_refresh):
3407         Maintain and use the original keyserver URI for cosmetics rather
3408         than trying to recreate it when needed.
3410         * mainproc.c (check_sig_and_print): Properly disregard expired
3411         uids.  Make sure that the first uid listed is a real uid and not
3412         an attribute (attributes should only be listed in the "aka"
3413         section).  When there are no valid textual userids, try for an
3414         invalid textual userid before using any attribute uid.
3416 2002-07-01  David Shaw  <dshaw@jabberwocky.com>
3418         * options.skel: Fix a few typos, clarify "group", and remove
3419         sample photo viewers for Win32 since they are the defaults now.
3421         * parse-packet.c (make_attribute_uidname), keylist.c
3422         (dump_attribs): Fix two typecast warnings.
3424         * packet.h, build-packet.c (build_attribute_subpkt), exec.c
3425         (expand_args), mkdtemp.c (mkdtemp), photoid.c
3426         (parse_image_header): Fix some signedness compiler warnings.
3428 2002-07-01  Werner Koch  <wk@gnupg.org>
3430         * photoid.c (get_default_photo_command): Also use __MINGW32__
3431         instead of HAVE_DOSISH_SYSTEM.
3433         * encode.c (encode_symmetric): Do not use the new encryption code.
3435 2002-06-30  Werner Koch  <wk@gnupg.org>
3437         * photoid.c: Use __MINGW32__ to include windows because
3438         HAVE_DOSISH_SYSTEM is also set for OS/2 and plain DOS.  Provide
3439         constant missing in older mingw installations. 
3441 2002-06-21  Stefan Bellon  <sbellon@sbellon.de>
3443         * g10.c [__riscos__]: Moved RISC OS specific stuff to util/riscos.c
3444         and include/util.h.
3446         * gpgv.c [__riscos__]: Likewise.
3448 2002-06-20  David Shaw  <dshaw@jabberwocky.com>
3450         * keydb.h, pkclist.c (select_algo_from_prefs): Allow passing a
3451         suggested algorithm which will be used if available.
3453         * encode.c (encode_crypt, encrypt_filter), sign.c (sign_file): Use
3454         new select_algo_from_prefs feature to check if forcing an
3455         algorithm would violate the recipient preferences.
3457         * photoid.c (get_default_photo_command, show_photos): Use
3458         different default viewers on different platforms.  Currently we
3459         have Win 9x, Win NT (2k, xp), Mac OSX, RISC OS, and "everybody
3460         else".  These are #ifdefs as much as possible to avoid clutter.
3462         * g10.c (strusage, build_list), keyedit.c (show_prefs), main.h,
3463         misc.c (compress_algo_to_string, check_compress_algo), pkclist.c
3464         (algo_available), keygen.c (keygen_set_std_prefs): New
3465         algo_to_string and check functions for compress algorithms.
3467 2002-06-20  Werner Koch  <wk@gnupg.org>
3469         * misc.c (setsysinfo): Removed a #warning for Alpha's uniligedn
3470         trap disabling - it is quite possible that this is a debug relict.
3472 2002-06-20  Stefan Bellon  <sbellon@sbellon.de>
3474         * g10.c [__riscos__]: Added image file system feature.
3476         * gpgv.c [__riscos__]: Added image file system feature.
3478         * photoid.c (show_photos) [__riscos__]: Set RISC OS filetype of
3479         photo id according to MIME type.
3481 2002-06-19  David Shaw  <dshaw@jabberwocky.com>
3483         * hkp.c (parse_hkp_index): Don't leak memory when failing out of a
3484         bad HKP keyserver.
3486         * g10.c (add_notation_data): Relax slightly the rules as to what
3487         can go into a notation name - 2440 allows "@", for example.
3489 2002-06-17  David Shaw  <dshaw@jabberwocky.com>
3491         * import.c (clean_subkeys, import_one): Only allow at most 1
3492         binding sig and at most 1 revocation sig on a subkey, as per
3493         2440:11.1.
3495         * hkp.c (parse_hkp_index, hkp_search): Error if the keyserver
3496         returns an unparseable HKP response.
3498 2002-06-15  David Shaw  <dshaw@jabberwocky.com>
3500         * keyedit.c (show_key_with_all_names), keylist.c
3501         (list_keyblock_print): Show "[expired]" before expired uids.
3503         * keyedit.c (show_key_with_all_names_colon), mainproc.c
3504         (list_node), keylist.c (list_keyblock_colon): Show flag 'e' for
3505         expired user ids.  Use "uat" for user attribute packets instead of
3506         "uid".  Also use '<count> <length>' rather than the fake user id
3507         string on attributes.
3509         * keygen.c (keygen_add_revkey): Remove unused code.
3511         * misc.c (check_permissions): Check directory permissions
3512         properly - they are not special files.
3514         * pkclist.c (expand_id, expand_group, build_pk_list): When
3515         expanding groups before building a pk list, inherit flags from the
3516         original pre-expanded string.
3518         * pubkey-enc.c (is_algo_in_prefs): Don't use prefs from expired
3519         uids.
3521 2002-06-14  David Shaw  <dshaw@jabberwocky.com>
3523         * free-packet.c (copy_signature): Properly copy a signature that
3524         carries a revocation key on it.
3526         * pkclist.c (expand_id, expand_group, build_pk_list): Groups now
3527         work properly when used in the "Enter the user ID" prompt.
3529 2002-06-14  David Shaw  <dshaw@jabberwocky.com>
3531         * keyedit.c (show_key_with_all_names): Display warning if a user
3532         tries to show prefs on a v3 key with a v3 selfsig.
3534         * kbnode.c (dump_kbnode): Show if a uid is expired.
3536         * import.c (merge_blocks, import_revoke_cert): Show user ID
3537         receiving a revocation certificate.
3539         * free-packet.c (cmp_user_ids): Properly compare attribute ids.
3541         * pkclist.c (expand_groups): Maintain the strlist flags while
3542         expanding.  Members of an expansion inherit their flags from the
3543         expansion key.
3545         * options.h, cipher.c (write_header), g10.c (main), keygen.c
3546         (keygen_set_std_prefs): remove the personal_mdc flag.  It no
3547         longer serves a purpose now that the personal preference lists are
3548         split into cipher/digest/zip.
3550 2002-06-14  Timo Schulz  <ts@winpt.org>
3552         * skclist.c (is_insecure): Implemented.
3553         
3554 2002-06-12  David Shaw  <dshaw@jabberwocky.com>
3556         * keyserver.c (keyserver_spawn): Properly handle PROGRAM responses
3557         when they have a CRLF ending.  Noted by Keith Ray.
3559         * keyserver.c (keyserver_spawn): Handle CRLF endings from
3560         keyserver helpers.  Also don't leak the last line worth of memory
3561         from the keyserver response.
3563         * main.h, misc.c (deprecated_warning): New function to warn about
3564         deprecated options and commands.
3566         * g10.c (main), keyserver-internal.h, keyserver.c
3567         (parse_keyserver_uri): Use new deprecated function to warn about
3568         honor-http-proxy, auto-key-retrieve, and x-broken-hkp.
3570 2002-06-11  David Shaw  <dshaw@jabberwocky.com>
3572         * Makefile.am: link gpg with NETLIBS for the built-in HKP access.
3574 2002-06-10  David Shaw  <dshaw@jabberwocky.com>
3576         * options.h, keyserver.c (keyserver_opts), g10.c (main): New
3577         keyserver option "include-subkeys".  This feature already existed,
3578         but now can be turned off.  It defaults to on.
3580         * options.h, keyserver.c (parse_keyserver_options,
3581         keyserver_spawn): There are now enough options to justify making a
3582         structure for the keyserver options rather than a page of
3583         if-then-else-if-then-etc.
3585         * getkey.c (merge_keys_and_selfsig, merge_selfsigs_main): Fix bug
3586         in calculating key expiration dates.
3588 2002-06-09  David Shaw  <dshaw@jabberwocky.com>
3590         * keydb.h, getkey.c (get_user_id_native), import.c (import_one):
3591         Display user ID while importing a key.  Note this applies to both
3592         --import and keyserver --recv-keys.
3594         * exec.c (exec_finish): Log unnatural exit (core dump, killed
3595         manually, etc) for fork/exec/pipe child processes.
3597 2002-06-08  Timo Schulz  <ts@winpt.org>
3599         * encode.c (encode_symmetric): Disable the compat flag
3600         when the expert mode is enabled.
3601         
3602 2002-06-07  David Shaw  <dshaw@jabberwocky.com>
3604         * options.skel, options.h, main.h, keydb.h, pkclist.c
3605         (build_pk_list, expand_groups), g10.c (main, add_group): Add new
3606         "group" command to allow one name to expand into multiple keys.
3607         For simplicity, and to avoid potential loops, we only expand once
3608         - you can't make an alias that points to an alias.
3610         * main.h, g10.c (main), keygen.c (build_personal_digest_list):
3611         Simplify the default digest list - there is really no need for the
3612         other hashes since they will never be used after SHA-1 in the
3613         list.
3615         * options.skel, options.h, g10.c (main), hkp.c (hkp_ask_import,
3616         hkp_export, hkp_search), keyserver.c (parse_keyserver_options,
3617         parse_keyserver_uri, keyserver_work, keyserver_refresh): Make the
3618         "x-broken-hkp" keyserver scheme into keyserver-option
3619         "broken-http-proxy".  Move honor_http_proxy into
3620         keyserver_options.  Canonicalize the three variations of "hkp",
3621         "x-hkp", and "x-broken-hkp" into "hkp".
3623 2002-06-07  Stefan Bellon  <sbellon@sbellon.de>
3625         * g10.c [__riscos__]: Added --attribute-file to do the same as
3626         --attribute-fd, but with a filename not a fd as argument.
3627         Added magic symbol for RISC OS to use different memory management.
3629         * gpgv.c [__riscos__]: Added magic symbol for RISC OS to use
3630         different memory management.
3632 2002-06-06  David Shaw  <dshaw@jabberwocky.com>
3634         * main.h, g10.c (main), keygen.c (build_personal_digest_list): Put
3635         in a default digest preference list consisting of SHA-1, followed
3636         by every other installed digest except MD5.  Note this is the same
3637         as having no digest preference at all except for SHA-1 being
3638         favored.
3640         * options.h, g10.c (main), keygen.c (keygen_set_std_prefs),
3641         pkclist.c (select_algo_from_prefs): Split
3642         --personal-preference-list into three:
3643         --personal-{cipher|digest|compress}-preferences.  This allows a
3644         user to set one without affecting another (i.e. setting only a
3645         digest pref doesn't imply an empty cipher pref).
3647         * exec.c (exec_read): This is a safer way of guessing the return
3648         value of system().  Noted by Stefan Bellon.
3650 2002-06-05  David Shaw  <dshaw@jabberwocky.com>
3652         * hkp.c (parse_hkp_index): Be more robust with keyservers
3653         returning very unparseable responses.
3655         * exec.c (exec_read): Catch and display an error when the remote
3656         process exits unnaturally (i.e. segfault) so the user knows what
3657         happened.  Also fix exec_write stub which has a different number
3658         of arguments now.
3660 2002-06-05  Timo Schulz  <ts@winpt.org>
3662         * encode.c (encode_simple): Ignore the new mode for RFC1991.
3663         * mainproc.c (symkey_decrypt_sesskey): Better check for weird
3664         keysizes.
3665         
3666 2002-06-05  Timo Schulz  <ts@winpt.org>
3668         * encode.c (encode_sesskey): New.
3669         (encode_simple): Use it here. But by default we use the compat
3670         mode which supress to generate encrypted session keys.
3671         
3672 2002-06-05  Timo Schulz  <ts@winpt.org>
3674         * mainproc.c (symkey_decrypt_sesskey): New.
3675         (proc_symkey_enc): Support for encrypted session keys.
3676         
3677 2002-06-04  David Shaw  <dshaw@jabberwocky.com>
3679         * sign.c (hash_for, sign_file): When encrypting and signing at the
3680         same time, consult the various hash prefs to pick a hash algorithm
3681         to use.  Pass in a 160-bit hint if any of the signing keys are
3682         DSA.
3684         * keydb.h, pkclist.c (select_algo_from_prefs, algo_available):
3685         Pass a "hints" opaque pointer in to let the caller give hints as
3686         to what algorithms would be acceptable.  The only current hint is
3687         for PREFTYPE_HASH to require a 160-bit hash for DSA.  Change all
3688         callers in encode.c (encode_crypt, encrypt_filter) and sign.c
3689         (sign_file).  If we settle on MD5 as the best algorithm based
3690         solely on recepient keys and SHA1 is also a possibility, use SHA1
3691         unless the user intentionally chose MD5.  This is as per 2440:13.
3693         * exec.c (make_tempdir): Fix duplicated filename problem.
3695 2002-06-03  David Shaw  <dshaw@jabberwocky.com>
3697         * packet.h, parse-packet.c (enum_sig_subpkt): Report back from
3698         enum_sig_subpkt when a subpacket is critical and change all
3699         callers in keylist.c (show_policy_url, show_notation), mainproc.c
3700         (print_notation_data), and pkclist.c (do_show_revocation_reason).
3702         * keylist.c (show_policy_url, show_notation): Display if the
3703         policy or notation is critical.
3704         
3705 2002-06-03  David Shaw  <dshaw@jabberwocky.com>
3707         * main.h, g10.c (main), keylist.c (dump_attribs, set_attrib_fd,
3708         list_keyblock_print, list_keyblock_colon), status.h, status.c
3709         (get_status_string): New --attribute-fd feature to dump the
3710         contents of attribute subpackets for frontends.  If --status-fd is
3711         also used, then a new status tag ATTRIBUTE is provided for each
3712         subpacket.
3714         * packet.h, getkey.c (fixup_uidnode, merge_selfsigs_main,
3715         merge_selfsigs_subkey), parse-packet.c (setup_user_id): Keep track
3716         of the expiration time of a user ID, and while we're at it, use
3717         the expired flag from the selfsig rather than reparsing the
3718         SIG_EXPIRE subpacket.
3720         * photoid.c (generate_photo_id): When adding a new photo ID,
3721         showing the photo for confirmation is not safe when noninteractive
3722         since the "user" may not be able to dismiss a viewer window.
3723         Noted by Timo Schulz.
3724         
3725 2002-06-03  David Shaw  <dshaw@jabberwocky.com>
3727         * options.skel: Sample photo viewers for Win32.
3729         * misc.c (pct_expando): Use the seckey for %k/%K if the pubkey is
3730         not available.
3732         * photoid.h, photoid.c (show_photos): Include the seckey in case a
3733         user tries to view a photo on a secret key, and change all callers
3734         in keyedit.c (menu_showphoto), keylist.c (list_keyblock_print),
3735         and photoid.c (generate_photo_id).
3737 2002-06-02  David Shaw  <dshaw@jabberwocky.com>
3739         * photoid.c (show_photos): Work properly when not called with a
3740         public key.
3742 2002-05-31  David Shaw  <dshaw@jabberwocky.com>
3744         * sign.c (mk_notation_and_policy): Free unneeded buffer.
3746         * hkp.c (parse_hkp_index): Properly handle the '&' character
3747         (i.e. "&amp;") in HKP responses.
3749         * getkey.c (merge_selfsigs_main): Fix reversed expiration time
3750         check with self-sigs.
3752         * keyedit.c (sign_uids): When making a new self-sig on a v3 key,
3753         make a v3 self-sig unless it is currently a v3 self-sig being
3754         promoted to v4.
3756 2002-05-31  Timo Schulz  <ts@winpt.org>
3758         * pkclist.c (do_show_revocation_reason): Don't use capital
3759         letters for non-interactive output.
3760         (show_revocation_reason): Now it is global.
3761         * pubkey-enc.c (get_it): Show if the key has been revoked.
3762         
3763 2002-05-30  David Shaw  <dshaw@jabberwocky.com>
3765         * sign.c (write_signature_packets, sign_file, clearsign_file,
3766         sign_symencrypt_file): Make a v4 signature if a policy URL or
3767         notation is set, unless v3 sigs are forced via rfc1991 or
3768         force-v3-sigs.  Also remove some doubled code and clarify an error
3769         message (we don't sign in PGP2 mode - just detach-sign).
3771         * parse-packet.c (parse_one_sig_subpkt): Add KS_FLAGS to the "any
3772         size" section.
3774 2002-05-29  David Shaw  <dshaw@jabberwocky.com>
3776         * keygen.c (keygen_set_std_prefs, add_feature_mdc): Use "mdc" and
3777         "no-mdc" in the prefs string to allow switching on and off the MDC
3778         feature.  This is needed to properly export a key from GnuPG for
3779         use on PGP which does not support MDC - without this, MDC-capable
3780         implementations will still try and generate MDCs which will break
3781         PGP.
3783         * keygen.c (keygen_get_std_prefs): Show "[mdc]" in prefs string if
3784         it is enabled.
3786         * options.h, g10.c (main), cipher.c (write_header), keygen.c
3787         (keygen_set_std_prefs): For consistency, allow the user to specify
3788         mdc/no-mdc in the --personal-preference-list.  If disabled, it
3789         acts just like --disable-mdc.
3791 2002-05-29  David Shaw  <dshaw@jabberwocky.com>
3793         * options.h, exec.c: Add some debugging info, using the 1024 debug
3794         flag.
3796         * exec.c (win_system): New system()-like function for win32 that
3797         does not return until the child process terminates.  Of course,
3798         this doesn't help if the process itself exits before it is
3799         finished.
3801 2002-05-29  Werner Koch  <wk@gnupg.org>
3803         * encode.c (encode_simple): Intialize PKT when --no-literal is used.
3805         * keyedit.c (show_key_with_all_names_colon): Renamed the record
3806         for revocation keys to "rvk".
3808 2002-05-27  Werner Koch  <wk@gnupg.org>
3810         * keyedit.c (show_key_with_all_names_colon): New.
3811         (show_key_with_all_names): Divert to new function when required.
3812         Sanitize printing of revoker name.
3814 2002-05-27  David Shaw  <dshaw@jabberwocky.com>
3816         * build-packet.c (build_sig_subpkt): Handle setting sig flags for
3817         certain subpacket types (notation, policy url, exportable,
3818         revocable).  keyedit.c (sign_mk_attrib): Flags no longer need to
3819         be set here.
3821         * packet.h, parse-packet.c (parse_one_sig_subpkt), build-packet.c
3822         (build_sig_subpkt): Call parse_one_sig_subpkt to sanity check
3823         buffer lengths before building a sig subpacket.
3825 2002-05-26  David Shaw  <dshaw@jabberwocky.com>
3827         * sign.c (mk_notation_and_policy): Include secret key to enable %s
3828         expandos, and pass notations through pct_expando as well.
3830         * main.h, misc.c (pct_expando): Add %s and %S expandos for
3831         signer's keyid.
3833 2002-05-25  David Shaw  <dshaw@jabberwocky.com>
3835         * g10.c (strusage, build_list): Add compress algorithms to
3836         --version list.  Show algorithm numbers when --verbose --version
3837         is done.
3839 2002-05-22  David Shaw  <dshaw@jabberwocky.com>
3841         * options.h, main.h, keygen.c (keygen_set_set_prefs,
3842         keygen_get_std_prefs, keygen_upd_std_prefs), keyedit.c
3843         (keyedit_menu), g10.c (main), pkclist.c (select_algo_from_prefs):
3844         Add --personal-preference-list which allows the user to factor in
3845         their own preferred algorithms when the preference lists are
3846         consulted.  Obviously, this does not let the user violate a
3847         recepient's preferences (and the RFC) - this only influences the
3848         ranking of the agreed-on (and available) algorithms from the
3849         recepients.  Suggested by David Hollenberg.
3851         * options.h, keygen.c (keygen_set_std_prefs), g10.c (main): Rename
3852         --preference-list to --default-preference-list (as that is what it
3853         really is), and make it a true default in that if the user selects
3854         "default" they get this list and not the compiled-in list.
3856 2002-05-22  Werner Koch  <wk@gnupg.org>
3858         * g10.c (main): Add missing LF in a info printout and made it
3859         translatable.  Noted by Michael Tokarev.
3861 2002-05-21  Werner Koch  <wk@gnupg.org>
3863         * g10.c (main): Removed the undef of USE_SHM_COPROCESSING which
3864         was erroneously introduced on 2002-01-09.
3866         * signal.c (got_fatal_signal): Don't write the Nul to stderr.
3867         Reported by David Hollenberg.
3869 2002-05-18  David Shaw  <dshaw@jabberwocky.com>
3871         * main.h, g10.c (main), revoke.c (gen_desig_revoke): Generate a
3872         designated revocation via --desig-revoke
3874         * keyedit.c (keyedit_menu, menu_addrevoker): New "addrevoker"
3875         command to add a designated revoker to a key.
3877 2002-05-17  David Shaw  <dshaw@jabberwocky.com>
3879         * gpgv.c: Add stub for get_ownertrust().
3881         * g10.c (main): --allow-freeform-uid should be implied by
3882         OpenPGP.  Add --no-allow-freeform-uid.
3884         * keyedit.c (sign_uids): Issue a warning when signing a
3885         non-selfsigned uid.
3887         * getkey.c (merge_selfsigs_main): If a key has no selfsigs, and
3888         allow-non-selfsigned-uid is not set, still try and make the key
3889         valid by checking all uids for a signature from an ultimately
3890         trusted key.
3892 2002-05-16  David Shaw  <dshaw@jabberwocky.com>
3894         * main.h, keygen.c (keygen_add_revkey): Add revocation key
3895         subpackets to a signature (callable by
3896         make_keysig_packet). (write_direct_sig): Write a 1F direct key
3897         signature. (parse_revocation_key): Parse a string in
3898         algo:fpr:sensitive format into a revocation
3899         key. (get_parameter_revkey, do_generate_keypair): Call above
3900         functions when prompted from a batch key generation file.
3902         * build-packet.c (build_sig_subpkt): Allow multiple revocation key
3903         subpackets in a single sig.
3905         * keydb.h, getkey.c (get_seckey_byfprint): Same as
3906         get_pubkey_byfprint, except for secret keys.  We only know the
3907         fingerprint of a revocation key, so this is needed to retrieve the
3908         secret key needed to issue a revokation.
3910         * packet.h, parse-packet.c (parse_signature, parse_revkeys): Split
3911         revkey parsing off into a new function that can be used to reparse
3912         after manipulating the revkey list.
3914         * sign.c (make_keysig_packet): Ability to make 1F direct key
3915         signatures.
3917 2002-05-15  David Shaw  <dshaw@jabberwocky.com>
3919         * options.skel: keyserver.pgp.com is gone, so list pgp.surfnet.nl
3920         as a sample LDAP server instead.
3922         * getkey.c (merge_selfsigs_main): Properly handle multiple
3923         revocation keys in a single packet.  Properly handle revocation
3924         keys that are in out-of-order packets.  Remove duplicates in
3925         revocation key list.
3927 2002-05-14  Timo Schulz   <ts@winpt.org>
3929         * exec.c (make_tempdir) [MINGW32]: Added missing '\'.
3930         
3931 2002-05-14  Stefan Bellon  <sbellon@sbellon.de>
3933         * exec.c (make_tempdir): Make use of EXTSEP_S instead of hardcoded
3934         dot as extension separator.
3936 2002-05-13  David Shaw  <dshaw@jabberwocky.com>
3938         * photoid.c (show_photos): Use the long keyid as the filename for
3939         the photo.  Use the short keyid as the filename on 8.3 systems.
3941         * exec.h, exec.c (make_tempdir, exec_write, exec_finish): Allow
3942         caller to specify filename.  This should make things easier on
3943         windows and macs where the file extension is required, but a whole
3944         filename is even better.
3946         * keyedit.c (show_key_with_all_names, show_prefs): Show proper
3947         prefs for a v4 key uid with no selfsig at all.
3949         * misc.c (check_permissions): Don't check permissions on
3950         non-normal files (pipes, character devices, etc.)
3952 2002-05-11  Werner Koch  <wk@gnupg.org>
3954         * mainproc.c (proc_symkey_enc): Avoid segv in case the parser
3955         encountered an invalid packet.
3957         * keyserver.c (keyserver_export): Get confirmation before sending
3958         all keys.
3960 2002-05-10  Stefan Bellon  <sbellon@sbellon.de>
3962         * g10.c, hkp.c, keyedit.c, keyserver.c: Replaced all occurrances
3963         of strcasecmp with ascii_strcasecmp and all occurrances of
3964         strncasecmp with ascii_memcasecmp.
3966 2002-05-10  David Shaw  <dshaw@jabberwocky.com>
3968         * packet.h, getkey.c (fixup_uidnode), keyedit.c (show_prefs): Show
3969         assumed prefs for hash and compression as well as the cipher pref.
3970         Show assumed prefs if there are no prefs at all on a v4
3971         self-signed key.
3973         * options.h, g10.c (main), sign.c (make_keysig_packet): New
3974         --cert-digest-algo function to override the default key signing
3975         hash algorithm.
3977 2002-05-09  David Shaw  <dshaw@jabberwocky.com>
3979         * getkey.c (merge_selfsigs_main): Make sure the revocation key
3980         list starts clean as this function may be called more than once
3981         (e.g. from functions in --edit).
3983         * g10.c, encode.c (encode_crypt), sign.c (sign_file,
3984         sign_symencrypt_file): Make --compress-algo work like the
3985         documentation says.  It should be like --cipher-algo and
3986         --digest-algo in that it can override the preferences calculation
3987         and impose the setting the user wants.  No --compress-algo setting
3988         allows the usual preferences calculation to take place.
3990         * main.h, compress.c (compress_filter): use new
3991         DEFAULT_COMPRESS_ALGO define, and add a sanity check for compress
3992         algo value.
3994 2002-05-08  David Shaw  <dshaw@jabberwocky.com>
3996         * pkclist.c (select_algo_from_prefs): There is an assumed
3997         compression preference for uncompressed data.
3999 2002-05-07  David Shaw  <dshaw@jabberwocky.com>
4001         * options.h, g10.c (main), getkey.c (finish_lookup), pkclist.c
4002         (algo_available): --pgp7, identical to --pgp6 except that it
4003         permits a few algorithms that PGP 7 added: AES128, AES192, AES256,
4004         and TWOFISH.  Any more of these --pgpX flags, and it'll be time to
4005         start looking at a generic --emulate-pgp X option.
4007         * export.c (do_export_stream): Warn the user when exporting a
4008         secret key if it or any of its secret subkeys are protected with
4009         SHA1 while simple_sk_checksum is set.
4011         * parse-packet.c (parse_key): Show when the SHA1 protection is
4012         used in --list-packets.
4014         * options.h, build-packet.c (do_comment), g10.c (main): Rename
4015         --no-comment as --sk-comments/--no-sk-comments (--no-comment still
4016         works) and make the default be --no-sk-comments.
4018 2002-05-07  Werner Koch  <wk@gnupg.org>
4020         * keygen.c (get_parameter_algo): Never allow generation of the
4021         deprecated RSA-E or RSA-S flavors of PGP RSA.
4022         (ask_algo): Allow generation of RSA sign and encrypt in expert
4023         mode.  Don't allow ElGamal S+E unless in expert mode.
4024         * helptext.c: Added entry keygen.algo.rsa_se.
4026 2002-05-07  David Shaw  <dshaw@jabberwocky.com>
4028         * keyedit.c (sign_uids): If --expert is set, allow re-signing a
4029         uid to promote a v3 self-sig to a v4 one.  This essentially
4030         deletes the old v3 self-sig and replaces it with a v4 one.
4032         * packet.h, parse-packet.c (parse_key), getkey.c
4033         (merge_keys_and_selfsig, merge_selfsigs_main): a v3 key with a v4
4034         self-sig must never let the v4 self-sig express a key expiration
4035         time that extends beyond the original v3 expiration time.
4037 2002-05-06  David Shaw  <dshaw@jabberwocky.com>
4039         * keyedit.c (sign_uids): When making a self-signature via "sign"
4040         don't ask about sig level or expiration, and include the usual
4041         preferences and such for v4 self-sigs.  (menu_set_preferences):
4042         Convert uids from UTF8 to native before printing.
4044         * keyedit.c (sign_uids): Convert uids from UTF8 to native before
4045         printing.  (menu_set_primary_uid): Show error if the user tries to
4046         make a uid with a v3 self-sig primary.
4048 2002-05-05  David Shaw  <dshaw@jabberwocky.com>
4050         * import.c (import_one): When merging with a key we already have,
4051         don't let a key conflict (same keyid but different key) stop the
4052         import: just skip the bad key and continue.
4054         * exec.c (make_tempdir): Under Win32, don't try environment
4055         variables for temp directories - GetTempDir tries environment
4056         variables internally, and it's better not to second-guess it in
4057         case MS adds some sort of temp dir handling to Windows at some
4058         point.
4060 2002-05-05  Timo Schulz  <ts@winpt.org>
4062         * mainproc.c (proc_symkey_enc): Don't ask for a passphrase
4063         in the list only mode.
4064         
4065 2002-05-05  David Shaw  <dshaw@jabberwocky.com>
4067         * keyserver.c (keyserver_refresh): --refresh-keys implies
4068         --merge-only so as not to import keys with keyids that match the
4069         ones being refreshed.  Noted by Florian Weimer.
4071 2002-05-04  Stefan Bellon  <sbellon@sbellon.de>
4073         * free-packet.c (copy_public_key): Don't call m_alloc(0), therefore
4074         added consistency check for revkey and numrefkeys.
4076         * getkey.c (check_revocation_keys): Added consistency check for
4077         revkey and numrefkeys.
4079         * keyedit.c (show_key_with_all_names): Likewise.
4081 2002-05-03  David Shaw  <dshaw@jabberwocky.com>
4083         * photoid.c: Provide default image viewer for Win32.
4085         * misc.c (pct_expando): %t means extension, not name ("jpg", not
4086         "jpeg").
4088         * keyserver.c (keyserver_spawn), photoid.c (show_photos), exec.h,
4089         exec.c: Allow the caller to determine the temp file extension when
4090         starting an exec_write and change all callers.
4092         * keyedit.c (sign_uids): Nonrevocable key signatures cause an
4093         automatic promotion to v4.
4095         * exec.c: Provide stubs for exec_ functions when NO_EXEC is
4096         defined.
4098 2002-05-02  David Shaw  <dshaw@jabberwocky.com>
4100         * photoid.h, photoid.c (parse_image_header, image_type_to_string):
4101         Useful functions to return data about an image.
4103         * packet.h, parse-packet.c (make_attribute_uidname,
4104         parse_attribute_subpkts, parse_attribute), photoid.h, photoid.c
4105         (show_photos): Handle multiple images in a single attribute
4106         packet.
4108         * main.h, misc.c (pct_expando), sign.c (mk_notation_and_policy),
4109         photoid.c (show_photos): Simpler expando code that does not
4110         require using compile-time string sizes.  Call
4111         image_type_to_string to get image strings (i.e. "jpg",
4112         "image/jpeg").  Change all callers.
4114         * keyedit.c (menu_showphoto), keylist.c (list_keyblock_print):
4115         Allow viewing multiple images within a single attribute packet.
4117         * gpgv.c: Various stubs for link happiness.
4119 2002-05-02  David Shaw  <dshaw@jabberwocky.com>
4121         * build-packet.c (build_sig_subpkt), keyedit.c (sign_uids),
4122         options.h, sign.c (mk_notation_and_policy), g10.c (main,
4123         add_notation_data, add_policy_url (new), check_policy_url
4124         (removed)): Allow multiple policy URLs on a given signature.
4125         Split "--notation-data" into "--cert-notation" and
4126         "--sig-notation" so the user can set different policies for key
4127         and data signing.  For backwards compatibility, "--notation-data"
4128         sets both, as before.
4130 2002-05-02  Werner Koch  <wk@gnupg.org>
4132         * options.skel: Removed the comment on trusted-keys because this
4133         option is now deprecated.
4135 2002-05-01  David Shaw  <dshaw@jabberwocky.com>
4137         * keyedit.c (menu_adduid): 2440bis04 says that multiple attribute
4138         packets on a given key are legal.
4140         * keyserver.c (keyserver_refresh): the fake v3 keyid hack applies
4141         to "mailto" URLs as well since they are also served by pksd.
4143 2002-04-29  Werner Koch  <wk@gnupg.org>
4145         Added a copyright year for files changed this year.
4147 2002-04-25  Werner Koch  <wk@gnupg.org>
4149         * g10.c, options.h: New options --display, --ttyname, --ttytype,
4150         --lc-ctype, --lc-messages to be used with future versions of the
4151         gpg-agent. 
4152         * passphrase.c (agent_send_option,agent_send_all_options): New.
4153         (agent_open): Send options to the agent.
4155         * trustdb.c (update_ownertrust, clear_ownertrust): Do an explicit
4156         do_sync because revalidation_mark does it only if when the
4157         timestamp actually changes.
4159 2002-04-23  David Shaw  <dshaw@jabberwocky.com>
4161         * main.h, keygen.c (do_generate_keypair), keylist.c
4162         (print_signature_stats, list_all, list_one, list_keyblock,
4163         list_keyblock_print, list_keyblock_colon): After generating a new
4164         key, show the key information (name, keyid, fingerprint, etc.)
4165         Also do not print uncheckable signatures (missing key..) in
4166         --check-sigs.  Print statistics (N missing keys, etc.) after
4167         --check-sigs.
4169         * keyedit.c (sign_uids): When signing a key with an expiration
4170         date on it, the "Do you want your signature to expire at the same
4171         time?" question should default to YES.
4173 2002-04-22  David Shaw  <dshaw@jabberwocky.com>
4175         * parse-packet.c (parse_plaintext), packet.h, plaintext.c
4176         (handle_plaintext): Fix bug in handling literal packets with
4177         zero-length data (no data was being confused with partial body
4178         length).
4180         * misc.c (pct_expando), options.skel: %t means extension ("jpg").
4181         %T means MIME type ("image/jpeg").
4183         * import.c (import_one): Only trigger trust update if the keyring
4184         is actually changed.
4186         * export.c (do_export_stream): Missing a m_free.
4188 2002-04-22  Stefan Bellon  <sbellon@sbellon.de>
4190         * keyid.c (expirestr_from_sk, expirestr_from_sig): Added _() to
4191         string constant.
4193         * exec.c (make_tempdir) [__riscos__]: Better placement of
4194         temporary file.
4196 2002-04-20  David Shaw  <dshaw@jabberwocky.com>
4198         * keygen.c (generate_subkeypair): 2440bis04 adds that creating
4199         subkeys on v3 keys is a MUST NOT.
4201         * getkey.c (finish_lookup): The --pgp6 "use the primary key"
4202         behavior should only apply while data signing and not encryption.
4203         Noted by Roger Sondermann.
4205 2002-04-19  Werner Koch  <wk@gnupg.org>
4207         * keygen.c (keygen_set_std_prefs): Put back 3DES because the RFC
4208         says it is good form to do so.
4210 2002-04-19  David Shaw  <dshaw@jabberwocky.com>
4212         * keyedit.c (menu_deluid): Only cause a trust update if we delete
4213         a non-revoked user id.
4215         * hkp.c (hkp_ask_import), keyserver.c (parse_keyserver_options,
4216         keyserver_spawn), options.h: Remove fast-import keyserver option
4217         (no longer meaningful).
4219         * g10.c (main), keyedit.c (sign_uids), options.h: Change
4220         --default-check-level to --default-cert-check-level as it makes
4221         clear what it operates on.
4223         * g10.c (main): --pgp6 also implies --no-ask-sig-expire.
4225         * delkey.c (do_delete_key): Comment.
4227         * keyedit.c (sign_uids, keyedit_menu, menu_deluid, menu_delsig,
4228         menu_expire, menu_revsig, menu_revkey): Only force a trustdb check
4229         if we did something that changes it.
4231         * g10.c: add "--auto-check-trustdb" to override a
4232         "--no-auto-check-trustdb"
4234 2002-04-19  Werner Koch  <wk@gnupg.org>
4236         * tdbio.c (tdbio_write_nextcheck): Return a status whether the
4237         stamp was actually changed.
4238         * trustdb.c (revalidation_mark): Sync the changes.  Removed the
4239         sync operation done by its callers.
4240         (get_validity): Add logic for maintaining a pending_check flag.
4241         (clear_ownertrust): New.
4242         
4243         * keyedit.c (sign_uids): Don't call revalidation_mark depending on
4244         primary_pk.
4245         (keyedit_menu): Call revalidation_mark after "trust".
4246         (show_key_with_all_names): Print a warning on the wrong listed key
4247         validity.
4249         * delkey.c (do_delete_key): Clear the owenertrust information when
4250         deleting a public key.
4251         
4252 2002-04-18  Werner Koch  <wk@gnupg.org>
4254         * seskey.c (encode_md_value): Print an error message if a wrong
4255         digest algorithm is used with DSA.  Changed all callers to cope
4256         with a NULL return.  Problem noted by Imad R. Faiad.
4258 2002-04-18  David Shaw  <dshaw@jabberwocky.com>
4260         * trustdb.c (mark_usable_uid_certs): Properly handle nonrevocable
4261         signatures that can expire.  In short, the only thing that can
4262         override an unexpired nonrevocable signature is another unexpired
4263         nonrevocable signature.
4265         * getkey.c (finish_lookup): Always use primary signing key for
4266         signatures when --pgp6 is on since pgp6 and 7 do not understand
4267         signatures made by signing subkeys.
4269 2002-04-18  Werner Koch  <wk@gnupg.org>
4271         * trustdb.c (validate_keys): Never schedule a nextcheck into the
4272         past.
4273         (validate_key_list): New arg curtime use it to set next_expire.
4274         (validate_one_keyblock): Take the current time from the caller.
4275         (clear_validity, reset_unconnected_keys): New.
4276         (validate_keys): Reset all unconnected keys.
4278         * getkey.c (premerge_public_with_secret): Fixed 0x12345678! syntax
4279         for use with secret keys.
4280         (lookup): Advance the searchmode after a search FIRST.
4282         * seckey-cert.c (do_check): Always calculate the old checksum for
4283         use after unprotection.
4285         * g10.c, options.skel: New option --no-escape-from.  Made
4286         --escape-from and --force-v3-sigs the default and removed them
4287         from the options skeleton.
4289 2002-04-16  Werner Koch  <wk@gnupg.org>
4291         * parse-packet.c (parse_key): Support a SHA1 checksum as per
4292         draft-rfc2440-bis04.
4293         * packet.h (PKT_secret_key): Add field sha1chk.
4294         * seckey-cert.c (do_check): Check the SHA1 checksum
4295         (protect_secret_key): And create it.
4296         * build-packet.c (do_secret_key): Mark it as sha-1 protected.
4297         * g10.c, options.h: New option --simple-sk-checksum.
4299 2002-04-13  David Shaw  <dshaw@jabberwocky.com>
4301         * parse-packet.c (parse_signature): Minor fix - signatures should
4302         expire at their expiration time and not one second later.
4304         * keygen.c (proc_parameter_file): Allow specifying preferences
4305         string (i.e. "s5 s2 z1 z2", etc) in a batchmode key generation
4306         file.
4308         * keyedit.c (keyedit_menu): Print standard error message when
4309         signing a revoked key (no new translation).
4311         * getkey.c (merge_selfsigs): Get the default set of key prefs from
4312         the real (not attribute) primary uid.
4314 2002-04-12  David Shaw  <dshaw@jabberwocky.com>
4316         * pkclist.c (build_pk_list): Fix bug that allowed a key to be
4317         selected twice in batch mode if one instance was the default
4318         recipient and the other was an encrypt-to.  Noted by Stefan
4319         Bellon.
4321         * parse-packet.c (dump_sig_subpkt): Show data in trust and regexp
4322         sig subpackets.
4324         * keyedit.c (keyedit_menu): Use new function real_uids_left to
4325         prevent deleting the last real (i.e. non-attribute) uid.  Again,
4326         according to the attribute draft. (menu_showphoto): Make another
4327         string translatable.
4329 2002-04-11  David Shaw  <dshaw@jabberwocky.com>
4331         * build-packet.c (build_sig_subpkt): Delete subpackets from both
4332         hashed and unhashed area on update.  (find_subpkt): No longer
4333         needed.
4335         * keyedit.c (sign_uids): With --pgp2 on, refuse to sign a v3 key
4336         with a v4 signature.  As usual, --expert overrides.  Try to tweak
4337         some strings to a closer match so they can all be translated in
4338         one place.  Use different helptext keys to allow different help
4339         text for different questions.
4341         * keygen.c (keygen_upd_std_prefs): Remove preferences from both
4342         hashed and unhashed areas if they are not going to be used.
4344 2002-04-10  David Shaw  <dshaw@jabberwocky.com>
4346         * misc.c (pct_expando), options.skel: Use %t to indicate type of a
4347         photo ID (in this version, it's always "jpeg").  Also tweak string
4348         expansion loop to minimize reallocs.
4350         * mainproc.c (do_check_sig): Variable type fix.
4352         * keyedit.c (menu_set_primary_uid): Differentiate between true
4353         user IDs and attribute user IDs when making one of them primary.
4354         That is, if we are making a user ID primary, we alter user IDs.
4355         If we are making an attribute packet primary, we alter attribute
4356         packets.  This matches the language in the latest attribute packet
4357         draft.
4359         * keyedit.c (sign_uids): No need for the empty string hack.
4361         * getkey.c (fixup_uidnode): Only accept preferences from the
4362         hashed segment of the self-sig.
4364 2002-04-10  Werner Koch  <wk@gnupg.org>
4366         * tdbio.c (migrate_from_v2): Fixed the offset to read the old
4367         ownertrust value and only add entries to the table if we really
4368         have a value.
4370 2002-04-08  David Shaw  <dshaw@jabberwocky.com>
4372         * status.h, status.c (get_status_string): Add KEYEXPIRED, EXPSIG,
4373         and EXPKEYSIG.  Add "deprecated-use-keyexpired-instead" to
4374         SIGEXPIRED.
4376         * sig-check.c (do_check): Start transition from SIGEXPIRED to
4377         KEYEXPIRED, since the actual event is signature verification by an
4378         expired key and not an expired signature. (do_signature_check,
4379         packet.h): Rename as signature_check2, make public, and change all
4380         callers.
4382         * mainproc.c (check_sig_and_print, do_check_sig): Use status
4383         EXPSIG for an expired, but good, signature.  Add the expiration
4384         time (or 0) to the VALIDSIG status line.  Use status KEYEXPSIG for
4385         a good signature from an expired key.
4387         * g10.c (main): remove checks for no arguments now that argparse
4388         does it.
4390 2002-04-06  Werner Koch  <wk@gnupg.org>
4392         * keyring.c (keyring_get_keyblock): Disable the keylist mode here.
4394         * encode.c (encode_simple, encode_crypt): Only test on compressed
4395         files if a compress level was not explicity set.
4397         * keygen.c (keygen_set_std_prefs): Removed Blowfish and Twofish
4398         from the list of default preferences, swapped the preferences of
4399         RMD160 and SHA1.  Don't include a preference to 3DES unless the
4400         IDEA kludge gets used.
4402         * free-packet.c (free_packet): call free_encrypted also for
4403         PKT_ENCRYPTED_MDC.
4405         * compress.c (release_context): New.
4406         (handle_compressed): Allocate the context and setup a closure to
4407         release the context.  This is required because there is no
4408         guarantee that the filter gets popped from the chain at the end
4409         of the function.  Problem noted by Timo and probably also the
4410         cause for a couple of other reports.
4411         (compress_filter): Use the release function if set.
4413         * tdbio.c [__CYGWIN32__]: Don't rename ftruncate.  Noted by
4414         Disastry.
4416         * parse-packet.c (parse_signature): Put parens around a bit test.
4418         * exec.c (make_tempdir): Double backslash for TMP directory
4419         creation under Windows.  Better strlen the DIRSEP_S constants for
4420         allocation measurements.
4422         * decrypt.c (decrypt_messages): Release the passphrase aquired
4423         by get_last_passphrase.
4425 2002-04-02  Werner Koch  <wk@gnupg.org>
4427         * Makefile.am (EXTRA_DIST): Removed OPTIONS an pubring.asc - they
4428         are no longer of any use. 
4430 2002-04-03  David Shaw  <dshaw@jabberwocky.com>
4432         * keyserver.c (parse_keyserver_options): fix auto-key-retrieve to
4433         actually work as a keyserver-option (noted by Roger Sondermann).
4435         * keylist.c (reorder_keyblock): do not reorder the primary
4436         attribute packet - the first user ID must be a genuine one.
4438 2002-03-31  David Shaw  <dshaw@jabberwocky.com>
4440         * keylist.c (list_keyblock_colon): Fix ownertrust display with
4441         --with-colons.
4443         * keygen.c (generate_user_id), photoid.c (generate_photo_id):
4444         Properly initialize the user ID refcount.  A few more "y/n" ->
4445         "y/N" in photoid.c.
4447         * keyedit.c (ask_revoke_sig): Warn the user if they are about to
4448         revoke an expired sig (not a problem, but they should know).  Also
4449         tweak a few prompts to change "y/n" to "y/N", which is how most
4450         other prompts are written.
4452         * keyserver.c (keyserver_search_prompt): Control-d escapes the
4453         keyserver search prompt.
4455         * pkclist.c (show_revocation_reason & callers): If a subkey is
4456         considered revoked solely because the parent key is revoked, print
4457         the revocation reason from the parent key.
4459         * trustdb.c (get_validity): Allow revocation/expiration to apply
4460         to a uid/key with no entry in the trustdb.
4462 2002-03-29  David Shaw  <dshaw@jabberwocky.com>
4464         * keyserver.c (printunquoted): unquote backslashes from keyserver
4465         searches
4467         * hkp.c (write_quoted): quote backslashes from keyserver searches
4469 2002-03-26  Werner Koch  <wk@gnupg.org>
4471         * keygen.c (ask_keysize): Removed the warning for key sizes > 1536.
4473 2002-03-25  Werner Koch  <wk@gnupg.org>
4475         * keyedit.c (sign_uids): Use 2 strings and not a %s so that
4476         translations can be done the right way.
4477         * helptext.c: Fixed small typo.
4479 2002-03-23  David Shaw  <dshaw@jabberwocky.com>
4481         * import.c (append_uid, merge_sigs): it is okay to import
4482         completely non-signed uids now (with --allow-non-selfsigned-uid).
4484         * getkey.c (get_primary_uid, merge_selfsigs_main): do not choose
4485         an attribute packet (i.e. photo) as primary uid.  This prevents
4486         oddities like "Good signature from [image of size 2671]".  This is
4487         still not perfect (one can still select an attribute packet as
4488         primary in --edit), but is closer to the way the draft is going.
4490         * g10.c (build_list): algorithms should include 110.
4492         * g10.c (main): --pgp2 implies --no-ask-sig-expire and
4493         --no-ask-cert-expire as those would cause a v4 sig/cert.
4495         * armor.c (is_armor_header): be more lenient in what constitutes a
4496         valid armor header (i.e. -----BEGIN blah blah-----) as some
4497         Windows programs seem to add spaces at the end.  --openpgp makes
4498         it strict again.
4500 2002-03-18  David Shaw  <dshaw@jabberwocky.com>
4502         * keyserver.c (keyserver_search_prompt): Properly handle a "no
4503         keys found" case from the internal HKP code (external HKP is ok).
4504         Also, make a COUNT -1 (i.e. streamed) keyserver response a little
4505         more efficient.
4507         * g10.c (main): Add --no-allow-non-selfsigned-uid
4509 2002-03-17  David Shaw  <dshaw@jabberwocky.com>
4511         * g10.c (main): --openpgp implies --allow-non-selfsigned-uid.
4513         * getkey.c (merge_selfsigs_main): If none of the uids are primary
4514         (because none are valid) then pick the first to be primary (but
4515         still invalid).  This is for cosmetics in case some display needs
4516         to print a user ID from a non-selfsigned key.  Also use
4517         --allow-non-selfsigned-uid to make such a key valid and not
4518         --always-trust.  The key is *not* automatically trusted via
4519         --allow-non-selfsigned-uid.
4521         * mainproc.c (check_sig_and_print): Make sure non-selfsigned uids
4522         print [uncertain] on verification even though one is primary now.
4524         * getkey.c (merge_selfsigs): If the main key is not valid, then
4525         neither are the subkeys.
4527         * import.c (import_one): Allow --allow-non-selfsigned-uid to work
4528         on completely unsigned keys.  Print the uids in UTF8.  Remove
4529         mark_non_selfsigned_uids_valid().
4531         * keyedit.c (show_key_with_all_names): Show revocation key as
4532         UTF8.
4534         * sign.c (clearsign_file): Allow --not-dash-escaped to work with
4535         v3 keys.
4537 2002-03-14  Werner Koch  <wk@gnupg.org>
4539         * main.h: Changed the default algorithms to CAST5 and SHA1.
4541 2002-03-13  David Shaw  <dshaw@jabberwocky.com>
4543         * import.c (chk_self_sigs): Show which user ID a bad self-sig
4544         (invald sig or unsupported public key algorithm) resides on.
4546         * import.c (chk_self_sigs): any valid self-sig should mark a user
4547         ID or subkey as valid - otherwise, an attacker could DoS the user
4548         by inventing a bogus invalid self-signature.
4550 2002-03-07  David Shaw  <dshaw@jabberwocky.com>
4552         * g10.c (main): make a few more strings translatable.
4554         * options.h, options.skel, g10.c (main), gpgv.c, mainproc.c
4555         (check_sig_and_print), keyserver.c (parse_keyserver_options):
4556         --auto-key-retrieve should really be a keyserver-option variable.
4558         * import.c (revocation_present): new function to print a warning
4559         if a key is imported that has been revoked by designated revoker,
4560         but the designated revoker is not present to verify the
4561         revocation.  If keyserver-options auto-key-retrieve is set, try
4562         and fetch the designated revoker from the keyserver.
4564         * import.c (import_one): call revocation_present after importing a
4565         new key.  Note that this applies to --import, --recv-keys, and
4566         --search-keys.
4567         
4568         * keyserver-internal.h, keyserver.c (keyserver_import_fprint):
4569         import via fingerprint (for revocation keys).
4571         * keyserver.c (keyserver_import_keyid): much simpler
4572         implementation now that we're using KEYDB_SEARCH_DESC internally.
4574 2002-03-04  David Shaw  <dshaw@jabberwocky.com>
4576         * revoke.c (gen_revoke): do not prompt for revocation reason for
4577         v3 revocations (unless force-v4-certs is on) since they wouldn't
4578         be used anyway.
4580         * keyedit.c (menu_revsig): show the status of the sigs
4581         (exportable? revocable?) to the user before prompting for which
4582         sig to revoke.  Also, make sure that local signatures get local
4583         revocations.
4585         * keyedit.c (ask_revoke_sig): remind the user which sigs are
4586         local.
4588         * g10.c (main): Add "exec-path" variable to override PATH for
4589         execing programs.
4591         * export.c (do_export_stream): properly check return code from
4592         classify_user_id to catch unclassifiable keys.
4594 2002-03-03  David Shaw  <dshaw@jabberwocky.com>
4596         * parse-packet.c (parse_signature): variable type tweak for RISC
4597         OS (from Stefan)
4599 2002-02-28  David Shaw  <dshaw@jabberwocky.com>
4601         * getkey.c (check_revocation_keys): New function to check a
4602         revocation against a list of potential revocation keys.  Note the
4603         loop-breaking code here.  This is to prevent blowing up if A is
4604         B's revocation key, while B is also A's.  Note also that this is
4605         written so that a revoked revoker can still issue revocations:
4606         i.e. If A revokes B, but A is revoked, B is still revoked.  I'm
4607         not completely convinced this is the proper behavior, but it
4608         matches how PGP does it.  It does at least have the advantage of
4609         much simpler code - my first version of this had lots of loop
4610         maintaining code so you could chain revokers many levels deep and
4611         if D was revoked, C was not, which meant that B was, and so on.
4612         It was sort of scary, actually.
4614         * getkey.c (merge_selfsigs_main): Add any revocation keys onto the
4615         pk.  This is particularly interesting since we normally only get
4616         data from the most recent 1F signature, but you need multiple 1F
4617         sigs to properly handle revocation keys (PGP does it this way, and
4618         a revocation key could be marked "sensitive" and hence in a
4619         different signature).  Also, if a pk has a revocation key set,
4620         check for revocation sigs that were not made by us - if made by a
4621         valid revocation key, mark the pk revoked.
4623         * packet.h, getkey.c (cache_public_key): do not cache key if
4624         "dont_cache" is set.  This allows the revocation key code to look
4625         up a key and return information that may be inaccurate to prevent
4626         loops without caching the fake data.
4628         * packet.h, sig-check.c (do_signature_check): Record if a
4629         signature was made by a revoked pk.
4631         * packet.h, parse-packet.c (parse_one_sig_subpkt,
4632         can_handle_critical, parse_signature): Get revocation key
4633         information out of direct sigs.
4634         
4635         * keylist.c (list_keyblock_print): don't assume that the presence
4636         of a 0x20 signature means the key is revoked.  With revocation
4637         keys, this may not be true if the revocation key is not around to
4638         verify it or if verification failed.  Also, 0x1F should get listed
4639         as "sig", and not "unexpected signature class".
4641         * keyedit.c (show_key_with_all_names): Add a flag for printing
4642         revoker information and change all callers.
4644         * import.c (merge_blocks): merge in any new direct key (0x1F)
4645         sigs.
4647         * import.c (import_revoke_cert): don't keep processing after a
4648         revocation is rejected.
4649         
4650         * import.c (delete_inv_parts): Allow importing a revocation
4651         signature even if it was not issued by the key.  This allows a
4652         revocation key to issue it.  Of course, the sig still needs to be
4653         checked before we trust it.
4655         * free-packet.c (copy_public_key): Include a new copy of the
4656         revocation keys when duping a pk.
4658         * free-packet.c (free_seckey_enc, release_public_key_parts): Free
4659         any revocation keys that are attached to a sig or pk.
4661         * export.c (do_export_stream): Do not export signatures with
4662         "sensitive" revocation keys in them.
4664 2002-02-27  David Shaw  <dshaw@jabberwocky.com>
4666         * export.c (do_export_stream): Do not include v3 keys in a
4667         --export-secret-subkeys export.
4669         * getkey.c (merge_selfsigs_main): If a key isn't valid (say,
4670         because of no self-signature), allow --always-trust to force it
4671         valid so it can be trusted.
4673 2002-02-25  David Shaw  <dshaw@jabberwocky.com>
4675         * hkp.c (hkp_ask_import), hkp.h, keyserver.c (all): treat key
4676         lists internally as fingerprints when possible.  All this is via
4677         KEYDB_SEARCH_DESC - no point in reinventing the wheel. This allows
4678         the helper program to search the keyserver by fingerprint if
4679         desired (and the keyserver supports it).  Note that automatic
4680         fingerprint promotion during refresh only applies to v4 keys as a
4681         v4 fingerprint can be easily changed into a long or short key id,
4682         and a v3 cannot.
4684         * pubkey-enc.c, getkey.c, misc.c, main.h: Take two copies of
4685         hextobyte() from pubkey-enc.c and getkey.c and make them into one
4686         copy in misc.c.
4688 2002-02-22  David Shaw  <dshaw@jabberwocky.com>
4690         * keyserver.c (keyserver_search_prompt): Detect a "no keys found"
4691         case even if the helper program does not explicitly say how many
4692         keys were found.
4694         * hkp.c (parse_hkp_index): Bug fix - don't report non-revoked keys
4695         as revoked in HKP key searches.
4697 2002-02-19  Werner Koch  <wk@gnupg.org>
4699         * parse-packet.c (parse_trust): Made parsing more robust.
4701 2002-02-19  David Shaw  <dshaw@jabberwocky.com>
4703         * hkp.c (parse_hkp_index): Catch corruption in HKP index lines
4704         (can be caused by broken or malicious keyservers).
4706         * keyserver.c (keyserver_work): Add KEYSERVER_NOT_SUPPORTED for
4707         unsupported actions (say, a keyserver that has no way to search,
4708         or a readonly keyserver that has no way to add).  Also add a
4709         USE_EXTERNAL_HKP define to disable the internal HKP keyserver
4710         code.
4712 2002-02-14  Werner Koch  <wk@gnupg.org>
4714         * g10.c: New option --no-use-agent. 
4716         * pkclist.c (check_signatures_trust): Always print the warning for
4717         unknown and undefined trust.  Removed the did_add cruft.  Reported
4718         by Janusz A. Urbanowicz.
4720 2002-02-11  David Shaw  <dshaw@jabberwocky.com>
4722         * hkp.c (parse_hkp_index): Bug fix - properly handle user IDs with
4723         colons (":") in them while HKP searching.
4725 2002-02-09  David Shaw  <dshaw@jabberwocky.com>
4727         * misc.c (pct_expando): More comments.
4729         * keydb.h, sign.c (mk_notation_and_policy): Clarify what is a sig
4730         and what is a cert.  A sig has sigclass 0x00, 0x01, 0x02, or 0x40,
4731         and everything else is a cert.
4733         * g10.c (main), keyedit.c (keyedit_menu): Add a "nrlsign" for
4734         nonrevocable and local key signatures.
4736         * g10.c (main): Add a --no-force-mdc to undo --force-mdc.
4738         * options.h, g10.c (main), cipher.c (write_header): Add a knob to
4739         --disable-mdc/--no-disable-mdc.  Off by default, of course, but is
4740         used in --pgp2 and --pgp6 modes.
4741         
4742         * pkclist.c (build_pk_list): Allow specifying multiple users in
4743         the "Enter the user ID" loop.  Enter a blank line to stop.  Show
4744         each key+id as it is added.
4746         * keylist.c (show_policy_url), mainproc.c (print_notation_data):
4747         It is not illegal (though possibly silly) to have multiple policy
4748         URLs in a given signature, so print all that are present.
4749         
4750         * hkp.c (hkp_search): More efficient implementation of URL-ifying
4751         code.
4753 2002-02-04  David Shaw  <dshaw@jabberwocky.com>
4755         * main.h, misc.c (pct_expando): New function to generalize
4756         %-expando processing in any arbitrary string.
4758         * photoid.c (show_photo): Call the new pct_expando function rather
4759         than expand strings internally.
4760         
4761         * sign.c (mk_notation_and_policy): Show policy URLs and notations
4762         when making a signature if show-policy/show-notation is on.
4763         %-expand policy URLs during generation.  This lets the user have
4764         policy URLs of the form "http://notary.jabberwocky.com/keysign/%K"
4765         which will generate a per-signature policy URL.
4767         * main.h, keylist.c (show_policy_url, show_notation): Add amount
4768         to indent so the same function can be used in key listings as well
4769         as during sig generation.  Change all callers.
4771 2002-02-04  David Shaw  <dshaw@jabberwocky.com>
4773         * keyserver.c, options.h (parse_keyserver_options, keyidlist):
4774         Workaround for the pksd and OKS keyserver bug that calculates v4
4775         RSA keyids as if they were v3.  The workaround/hack is to fetch
4776         both the v4 (e.g. 99242560) and v3 (e.g. 68FDDBC7) keyids.  This
4777         only happens for key refresh while using the HKP scheme and the
4778         refresh-add-fake-v3-keyids keyserver option must be set.  This
4779         should stay off by default.
4781 2002-02-03  David Shaw  <dshaw@jabberwocky.com>
4783         * keyserver.c (keyserver_spawn): Bug fix - do not append keys to
4784         each other when --sending more than one.
4786 2002-02-02  David Shaw  <dshaw@jabberwocky.com>
4788         * options.h, g10.c (main), keyedit.c (sign_uids), sign.c
4789         (mk_notation_and_policy): Split "--set-policy-url" into
4790         "--cert-policy-url" and "--sig-policy-url" so the user can set
4791         different policies for key and data signing.  For backwards
4792         compatibility, "--set-policy-url" sets both, as before.
4794 2002-01-30  Werner Koch  <wk@gnupg.org>
4796         * g10.c (main): --gen-random --armor does now output a base64
4797         encoded string.
4799 2002-01-28  David Shaw  <dshaw@jabberwocky.com>
4801         * g10.c (main), options.h, pkclist.c (algo_available): --pgp6
4802         flag.  This is not nearly as involved as --pgp2.  In short, it
4803         turns off force_mdc, turns on no_comment, escape_from, and
4804         force_v3_sigs, and sets compression to 1.  It also restricts the
4805         user to IDEA (if present), 3DES, CAST5, MD5, SHA1, and RIPEMD160.
4806         See the comments above algo_available() for lots of discussion on
4807         why you would want to do this.
4809 2002-01-27  David Shaw  <dshaw@jabberwocky.com>
4811         * keygen.c (keygen_set_std_prefs): Comment
4813         * keyedit.c (sign_uids): Bug fix - when signing with multiple
4814         secret keys at the same time, make sure each key gets the sigclass
4815         prompt.
4817         * exec.c (exec_finish): Close the iobuf and FILE before trying to
4818         waitpid, so the remote process will get a SIGPIPE and exit.  This
4819         is only a factor when using a pipe to communicate.
4821         * exec.c (exec_write): Disable cache-on-close of the fd iobuf (is
4822         this right?  Why is a fd iobuf cached at all?)
4824 2002-01-26  Werner Koch  <wk@gnupg.org>
4826         * g10.c, options.h: New option --gpg-agent-info
4827         * passphrase.c (agent_open): Let it override the environment info.
4828         * seckey-cert.c (check_secret_key): Always try 3 times when the
4829         agent is enabled.
4830         * options.skel: Describe --use-agent.
4832 2002-01-24  David Shaw  <dshaw@jabberwocky.com>
4834         * pubkey-enc.c (is_algo_in_prefs, get_it): Only check preferences
4835         against keys with v4 self sigs - there is really little point in
4836         warning for every single non-IDEA message encrypted to an old key.
4838         * pkclist.c (select_algo_from_prefs): Only put in the fake IDEA
4839         preference if --pgp2 is on.
4841         * mainproc.c (check_sig_and_print): Print "Expired" for expired
4842         but good signatures (this still prints "BAD" for expired but bad
4843         signatures).
4845 2002-01-23  David Shaw  <dshaw@jabberwocky.com>
4847         * keygen.c (ask_keysize): Cosmetic: don't present a RSA signing
4848         key as a "keypair" which can be 768 bits long (as RSA minimum is
4849         1024).
4851         * pubkey-enc.c (is_algo_in_prefs): Allow IDEA as a fake preference
4852         for v3 keys with v3 selfsigs.
4854 2002-01-22  David Shaw  <dshaw@jabberwocky.com>
4856         * packet.h, getkey.c (merge_selfsigs_main), pkclist.c
4857         (select_algo_from_prefs): Implement the fake IDEA preference as
4858         per RFC2440:12.1.  This doesn't mean that IDEA will be used (the
4859         plugin may not be present), but it does mean that a v3 key with a
4860         v3 selfsig has an implicit IDEA preference instead of 3DES.  v3
4861         keys with v4 selfsigs use preferences as normal.
4863         * encode.c (encode_crypt): if select_algo_from_prefs fails, this
4864         means that we could not find a cipher that both keys like.  Since
4865         all v4 keys have an implicit 3DES preference, this means there is
4866         a v3 key with a v3 selfsig in the list.  Use 3DES in this case as
4867         it is the safest option (we know the v4 key can handle it, and
4868         we'll just hope the v3 key is being used in an implementation that
4869         can handle it).  If --pgp2 is on, warn the user what we're doing
4870         since it'll probably break PGP2 compatibility.
4872         * g10.c (main): Do not force using IDEA for encrypted files in
4873         --pgp2 mode - let the fake IDEA preference choose this for us for
4874         better compatibility when encrypting to multiple keys, only some
4875         of which are v3.
4877         * keygen.c (keygen_set_std_prefs): Put 3DES on the end of the
4878         default cipher pref list (RFC2440: "...it is good form to place it
4879         there explicitly.").  If the user has the IDEA plugin installed,
4880         put a preference for IDEA *after* 3DES to effectively disable its
4881         use for everything except encrypting along with v3 keys.
4883         * encode.c, g10.c, sign.c: Change the PGP2 warning line from
4884         "... will not be usable ..." to "... may not be usable ..." as the
4885         user could be using one of the enhanced PGP2 variations.
4887         * helptext.c: Revise the sign_uid.class help text as suggested by
4888         Stefan.
4889         
4890 2002-01-20  Werner Koch  <wk@gnupg.org>
4892         * passphrase.c (passphrase_to_dek): Add tryagain_text arg to be
4893         used with the agent.  Changed all callers.
4894         (agent_get_passphrase): Likewise and send it to the agent
4895         * seckey-cert.c (do_check): New arg tryagain_text.
4896         (check_secret_key): Pass the string to do_check.
4897         * keygen.c (ask_passphrase): Set the error text is required.
4898         * keyedit.c (change_passphrase): Ditto.
4900         * passphrase.c (agent_open): Disable opt.use_agent in case of a
4901         problem with the agent. 
4902         (agent_get_passphrase): Ditto.
4903         (passphrase_clear_cache): Ditto.
4905 2002-01-19  Werner Koch  <wk@gnupg.org>
4907         * passphrase.c (agent_open): Add support for the new Assuan based
4908         gpg-agent.  New arg to return the used protocol version.
4909         (agent_get_passphrase): Implemented new protocol here.
4910         (passphrase_clear_cache): Ditto.
4911         (readline): New.
4912         
4913 2002-01-15  Timo Schulz  <ts@winpt.org>
4915         * encode.c (encode_crypt_files): Fail if --output is used.
4916         
4917         * g10.c: New command --decrypt-files.
4919         * decrypt.c (decrypt_messages): New.
4920         
4921 2002-01-09  David Shaw  <dshaw@jabberwocky.com>
4923         * g10.c, misc.c, gpgv.c: move idea_cipher_warn to misc.c so gpgv.c
4924         doesn't need a stub for it any longer.
4926         * g10.c (get_temp_dir), main.h: no longer used (it's in exec.c now)
4928         * g10.c (main), delkey.c (delete_keys), main.h : Allow
4929         --delete-key (now --delete-keys, though --delete-key still works,
4930         of course) to delete multiple keys in one go.  This applies to
4931         --delete-secret-key(s) and --delete-secret-and-public-key(s) as
4932         well.
4934 2002-01-09  Timo Schulz  <ts@winpt.org>
4936         * encode.c (encode_crypt_files): Now it behaves like verify_files.
4937         
4938         * g10.c (main): We don't need to check argc for encode_crypt_files
4939         any longer.
4941 2002-01-09  Timo Schulz  <ts@winpt.org>
4943         * exec.c: Include windows.h for dosish systems.
4945 2002-01-08  Timo Schulz  <ts@winpt.org>
4947         * g10.c (main): New description for --encrypt-files.
4949 2002-01-08  Werner Koch  <wk@gnupg.org>
4951         * g10.c (main): Must register the secring for encryption because
4952         it is needed to figure out the default recipient.  Reported by
4953         Roger Sondermann.
4955 2002-01-05  David Shaw  <dshaw@jabberwocky.com>
4957         * keyedit.c (menu_adduid): Require --expert before adding a photo
4958         ID to a v3 key, and before adding a second photo ID to any key.
4960         * keyedit.c (keyedit_menu): Don't allow adding photo IDs in
4961         rfc1991 or pgp2 mode.
4963         * getkey.c (merge_selfsigs_subkey): Permit v3 subkeys.  Believe it
4964         or not, this is allowed by rfc 2440, and both PGP 6 and PGP 7 work
4965         fine with them.
4967         * g10.c, options.h, keyedit.c, sign.c: Move the "ask for
4968         expiration" switch off of --expert, which was getting quite
4969         overloaded, and onto ask-sig-expire and ask-cert-expire.  Both
4970         default to off.
4972         * g10.c (main): Change the default compression algo to 1, to be
4973         more OpenPGP compliant (PGP also uses this, so it'll help with
4974         interoperability problems as well).
4976         * encode.c (encode_crypt): Handle compression algo 2, since the
4977         default is now 1.
4979         * build-packet.c (build_attribute_subpkt): Fix off-by-one error.
4981 2002-01-05  Werner Koch  <wk@gnupg.org>
4983         * g10.c (main): Do not register the secret keyrings for certain
4984         commands.
4986         * keydb.c (keydb_add_resource): Use access to test for keyring
4987         existence.  This avoids cached opened files which are bad under
4988         RISC OS.
4990 2002-01-04  David Shaw  <dshaw@jabberwocky.com>
4992         * sign.c (sign_file, sign_symencrypt_file): always use one-pass
4993         packets unless rfc1991 is enabled.  This allows a signature made
4994         with a v3 key to work in PGP 6 and 7.  Signatures made with v4
4995         keys are unchanged.
4997         * g10.c (main): Disallow non-detached signatures in PGP2 mode.
4998         Move the "you must use files and not pipes" PGP2 warning up so all
4999         the PGP2 stuff is together.
5001         * encode.c (encode_simple): Use the actual filesize instead of
5002         partial length packets in the internal literal packet from a
5003         symmetric message.  This breaks PGP5(?), but fixes PGP2, 6, and 7.
5004         It's a decent tradeoff.  Note there was only an issue with
5005         old-style RFC1991 symmetric messages.  2440-style messages in 6
5006         and 7 work with or without partial length packets.
5008 2002-01-03  David Shaw  <dshaw@jabberwocky.com>
5010         * g10.c (main): Removed --no-default-check-level option, as it is
5011         not consistent with other "default" options.  Plus, it is the same
5012         as saying --default-check-level 0.
5014         * exec.c (exec_read): Disallow caching tempfile from child
5015         process, as this keeps the file handle open and can cause unlink
5016         problems on some platforms.
5018         * keyserver.c (keyserver_search_prompt): Minor tweak - don't
5019         bother to transform keyids into textual form if they're just going
5020         to be transformed back to numbers.
5022 2002-01-03  Timo Schulz <ts@winpt.org>
5024         * g10.c: New command --encrypt-files.
5025     
5026         * verify.c (print_file_status): Removed the static because
5027         encode_crypt_files also uses this function.
5029         * main.h (print_files_status): New.
5030         (encode_crypt_files): New.
5032         * encode.c (encode_crypt_files): New.
5034 2002-01-02  Stefan Bellon  <sbellon@sbellon.de>
5036         * keyserver.c: Moved util.h include down in order to avoid
5037         redefinition problems on RISC OS.
5039         * keyring.c (keyring_lock): Only lock keyrings that are writable.
5041         * keyring.c (keyring_update_keyblock): Close unused iobuf.
5043         * hkp.c (parse_hkp_index, hkp_search) [__riscos__]: Changed
5044         unsigned char* to char* because of compiler issues.
5046         * exec.c (exec_finish) [__riscos__]: Invalidate close cache so
5047         that file can be unlinked.
5049 2001-12-28  David Shaw  <dshaw@jabberwocky.com>
5051         * g10.c (main): Use a different strlist to check extensions since
5052         they need to be handled seperately now.
5054         * misc.c,main.h (check_permissions): Properly handle permission
5055         and ownership checks on files in the lib directory
5056         (e.g. /usr/local/lib/gnupg), which are owned by root and are
5057         world-readable, and change all callers to specify extension or
5058         per-user file.
5060         * photoid.c (show_photo), keyserver.c (keyserver_spawn): Bug fix -
5061         don't call exec_finish if exec_write fails.
5063         * keyserver.c (keyserver_spawn): Look for OPTIONS from the
5064         keyserver helper - specifically, a "OUTOFBAND" option for the
5065         email keyserver.
5067         * mainproc.c (list_node), keylist.c (list_keyblock_colon),
5068         import.c (delete_inv_parts), export.c (do_export_stream): Use
5069         signature flags for exportability check rather than re-parsing the
5070         subpacket.
5072         * keyid.c, keydb.h (get_lsign_letter): No longer needed.
5074 2001-12-27  David Shaw  <dshaw@jabberwocky.com>
5076         * exec.c (exec_finish): Show errors when temp files cannot be
5077         deleted for whatever reason.
5079         * exec.c (exec_read): Don't rely on WEXITSTATUS being present.
5081         * exec.c (make_tempdir): Add temp file creator for win32.  Don't
5082         create an incoming temp file if the exec is write-only.
5084         * keyserver.c (keyserver_spawn): Clean up error handling, for when
5085         the spawn fails.
5087         * photoid.c (show_photo): Clean up error handling.
5089         * misc.c (check_permissions): Neaten.
5091 2001-12-25  David Shaw  <dshaw@jabberwocky.com>
5093         * mkdtemp.c (mkdtemp): Add copyleft info and tweak the 'X' counter
5094         to be a bit simpler.
5096         * keyserver.c, photoid.c: Remove unused headers left over from
5097         when the exec functions lived there.
5099 2001-12-23  Timo Schulz <ts@winpt.org>
5101         * misc.c (check_permissions): Do not use it for W32 systems.
5103         * tdbio.c (migrate_from_v2): Define ftruncate as chsize() for W32.
5105         * mkdtemp.c: W32 support.
5107         * photoid.c: Ditto.
5109         * exec.c: Ditto.
5111 2001-12-22  David Shaw  <dshaw@jabberwocky.com>
5113         * exec.c (make_tempdir): avoid compiler warning with const
5115         * mkdtemp.c (mkdtemp): catch the empty ("") string case in case
5116         someone repurposes mkdtemp at some point.
5118         * photoid.c (generate_photo_id, show_photo): some type changes
5119         from Stefan Bellon.
5121         * exec.c (make_tempdir): handle Win32 systems, suggested by Timo
5122         Schulz.
5124 2001-12-22  Werner Koch  <wk@gnupg.org>
5126         * encode.c (encode_simple, encode_crypt): i18n 2 strings.
5128 2001-12-22  Timo Schulz <ts@winpt.org>
5129         
5130         * encode.c (encode_simple, encode_crypt): Use is_file_compressed
5131         to avoid to compress compressed files.
5133 2001-12-22  Werner Koch  <wk@gnupg.org>
5135         * keyserver.c (keyserver_spawn): Removed some variables
5136         declaration due to shadowing warnings.
5138         * build-packet.c (build_attribute_subpkt): s/index/idx/ to avoid
5139         compiler warnig due to index(3).
5141         * getkey.c (get_ctx_handle): Use KEYDB_HANDLE as return value.
5142         * keylist.c (list_one): Made resname const.
5144         * keyedit.c (keyedit_menu): Allow "addphoto" only when --openpgp is
5145         not used.
5147         * options.skel: Changed one example photo viewer to qiv.
5149 2001-12-21  David Shaw  <dshaw@jabberwocky.com>
5151         * Makefile.am: add exec.c, exec.h, photoid.c, and photoid.h
5153         * build-packet.c (build_attribute_subpkt): new function to build
5154         the raw attribute subpacket.  Note that attribute subpackets have
5155         the same format as signature subpackets.
5157         * exec.c: new file with generic exec-a-program functionality.
5158         Used by both photo IDs and keyserver helpers.  This is pretty much
5159         the same code that used to be keyserver specific, with some
5160         changes to be usable generically.
5162         * free-packet.c (free_attributes (new)): function to free an
5163         attribute packet.
5164         
5165         * gpgv.c: added stub show_photo
5166         
5167         * keyedit.c (keyedit_menu, menu_adduid, menu_showphoto): can add a
5168         photo (calls generate_photo_id), or display a photo (calls
5169         show_photo) from the --edit menu.  New commands are "addphoto",
5170         and "delphoto" (same as "deluid").
5172         * keylist.c (list_keyblock_print): show photos during key list if
5173         --show-photos enabled.
5174         
5175         * keyserver.c (keyserver_spawn): use the generic exec_xxx
5176         functions to call keyserver helper.
5178         * g10.c, options.h: three new options - --{no-}show-photos, and
5179         --photo-viewer to give the command line to display a picture.
5181         * options.skel: instructions for the photo viewer
5182         
5183         * parse-packet.c (parse_user_id, setup_user_id (new)): common code
5184         for both user IDs and attribute IDs moved to setup_user_id.
5186         * parse-packet.c (make_attribute_uidname (new)): constructs a fake
5187         "name" for attribute packets (e.g. "[image of size ...]")
5189         * parse-packet.c (parse_attribute (replaces parse_photo_id),
5190         parse_attribute_subpkts): Builds an array of individual
5191         attributes.  Currently only handles attribute image / type jpeg
5192         subpackets.
5194         * sign.c (hash_uid): Fix bug in signing attribute (formerly
5195         photo_id) packets.
5197         * packet.h, and callers: globally change "photo_id" to "attribute"
5198         and add structures for attributes.  The packet format is generic
5199         attributes, even though the only attribute type thus far defined
5200         is jpeg.
5202 2001-12-21  David Shaw  <dshaw@jabberwocky.com>
5204         * parse-packet.c (can_handle_critical): Can handle critical
5205         revocation subpackets now.
5207         * trustdb.c (mark_usable_uid_certs): Disregard revocations for
5208         nonrevocable sigs.  Note that this allows a newer revocable
5209         signature to override an older nonrevocable signature.
5211         * sign.c (make_keysig_packet): add a duration field and change all
5212         callers.  This makes make_keysig_packet closer to
5213         write_signature_packets and removes some duplicated expiration
5214         code.
5216         * keyedit.c (keyedit_menu, menu_revsig, sign_uids,
5217         sign_mk_attrib): Add nrsign command, don't allow revoking a
5218         nonrevocable signature,
5220         * g10.c (main): Add --nrsign option to nonrevocably sign a key
5221         from the command line.
5223         * build-packet.c (build_sig_subpkt_from_sig): Comment to explain
5224         the use of CRITICAL.
5226 2001-12-21  Werner Koch  <wk@gnupg.org>
5228         * g10.c. options.h : New option --show-keyring
5229         * getkey.c (get_ctx_handle): New.
5230         * keylist.c (list_one): Implement option here.  By David Champion. 
5232 2001-12-20  David Shaw  <dshaw@jabberwocky.com>
5234         * keyserver.c (keyserver_spawn): Use mkdtemp() to make temp
5235         directory.
5237         * mkdtemp.c: replacement function for those platforms that don't
5238         have mkdtemp (make a temp directory securely).
5240 2001-12-19  David Shaw  <dshaw@jabberwocky.com>
5242         * misc.c (check_permissions): New function to stat() and ensure
5243         the permissions of GNUPGHOME and the files have safe permissions.
5245         * keydb.c (keydb_add_resource): Check keyring permissions.
5247         * tdbio.c (tdbio_set_dbname): Check permissions of trustdb.gpg
5249         * keyserver.c (keyserver_spawn): Disable keyserver schemes that
5250         involve running external programs if the options file has unsafe
5251         permissions or ownership.
5253         * g10.c, options.h: New option --no-permission-warning to disable
5254         the permission warning message(s).  This also permits use of the
5255         keyserver if it had been disabled (see above).  Also check the
5256         permissions/ownership of random_seed.
5257         
5258         * keyserver.c (keyserver_spawn): The new glibc prints a warning
5259         when using mktemp() (the code was already secure, but the warning
5260         was bound to cause confusion).  Use a different implementation
5261         based on get_random_bits() instead.  Also try a few times to get
5262         the temp dir before giving up.
5264 2001-12-19  Werner Koch  <wk@gnupg.org>
5266         * g10.c, passphrase.c [CYGWIN32]: Allow this as an alias for MINGW32.
5268 2001-12-18  David Shaw  <dshaw@jabberwocky.com>
5270         * g10.c (idea_cipher_warn): Add a flag to show the warning always
5271         or once per session and change all callers (show always except for
5272         the secret key protection and unknown cipher from an encrypted
5273         message errors).  Also make the strings translatable.
5275         * pubkey-enc.c (get_it): Add the IDEA cipher warning if the user
5276         tries to decrypt an IDEA encrypted message without the IDEA
5277         plugin.
5279         * keyserver.c (parse_keyserver_uri): More strict checking of the
5280         keyserver URI.  Specifically, fail if the ":port" section is
5281         anything except a number between 1 and 65535.
5283 2001-12-17  David Shaw  <dshaw@jabberwocky.com>
5285         * keyserver.c (print_keyinfo): No need to check for
5286         control/illegal characters, as utf8_to_native does this for us.
5288         * mainproc.c (proc_encrypted): Use generic IDEA warning.
5290         * gpgv.c: add stub for idea_cipher_warn
5292         * g10.c, hkp.c, keyserver.c: Fix capitalization and plural issues.
5294         * encode.c (encode_crypt), sign.c (sign_file, clearsign_file):
5295         disable pgp2 mode after the message is no longer pgp2 compatible.
5297         * g10.c (main): Tweak the PGP2.x IDEA warning to use the generic
5298         warning, and not merely fail if the IDEA plugin isn't there.
5300         * g10.c (main, idea_cipher_warn), keygen.c (set_one_pref),
5301         seckey-cert.c (do_check): Add a generic IDEA warning for when the
5302         IDEA plugin is not present.  This pops up when the user uses
5303         "--cipher-algo idea", when setpref is used to set a "S1"
5304         preference, and when a secret key protected with IDEA is used.
5306 2001-12-15  Werner Koch  <wk@gnupg.org>
5308         * keyserver.c (keyserver_spawn): Assert that we have dropped privs.
5310 2001-12-13  Werner Koch  <wk@gnupg.org>
5312         * pubkey-enc.c (get_session_key): Check that the public key
5313         algorithm is indeed usable for en/decryption.  This avoid a
5314         strange error message from pubkey_decrypt if for some reasons a
5315         bad algorithm indentifier is passed.
5317 2001-12-12  David Shaw  <dshaw@jabberwocky.com>
5319         * Fixed some types for portability.  Noted by Stefan Bellon.
5321 2001-12-11  Werner Koch  <wk@gnupg.org>
5323         * hkp.c (hkp_export): Do not print possible control characters
5324         from a keyserver response.
5325         (parse_hkp_index): Made uid an unsigned char* because it is passed to
5326         isspace().
5327         (hkp_search): Ditto for the char* vars.
5329         * g10.c (main): Print the IDEA warning also for -c and -se.
5330         
5331         * g10.c (get_temp_dir): Assert that we have dropped privs
5333         * encode.c (encode_crypt): Include the first key into the --pgp2
5334         check.
5336 2001-12-07  David Shaw  <dshaw@jabberwocky.com>
5338         * g10.c, options.h: New option --pgp2.  This is identical to
5339         "--rfc1991 --cipher-algo idea --compress-algo 1 --digest-algo md5
5340         --force_v3_sigs" with the addition of an warning to advise the
5341         user not to use a pipe (which would break pgp2 compatibility).
5343         * encode.c (encode_crypt): warn if the user tries to encrypt to
5344         any key that is not RSA and <= 2048 bits when the --pgp2 option is
5345         used.
5347         * sign.c (sign_file, clearsign_file): When using --pgp2, make a v3
5348         sig, and warn if the signature is made with a non-v3 key.
5350 2001-12-05  David Shaw  <dshaw@jabberwocky.com>
5352         * sign.c (sign_file, clearsign_file, sign_symencrypt_file): Prompt
5353         for sig expiration if --expert is set and --force-v3-sigs is not
5354         set (v3 sigs cannot expire).
5356         * mainproc.c (check_sig_and_print): After checking a sig, print
5357         expiration status.  This causes a error return if the sig is
5358         expired.
5360         * build-packet.c (build_sig_subpkt_from_sig): Include a critical
5361         sig expiration subpacket if the sig is to expire.
5363         * keyedit.c (sign_uids): Do not sign an expired key unless
5364         --expert is set, in which case prompt.  Also, offer to expire a
5365         signature when the key the user is signing expires.
5367         * keygen.c (ask_expire_interval): Add a value to determine whether
5368         to prompt for a key or sig expiration and change all callers.
5370         * keyid.c: New functions: expirestr_from_sig and
5371         colon_expirestr_from_sig.
5373         * keylist.c (list_keyblock_colon): Show sig expiration date in the
5374         --with-colons listing.
5376         * sign.c (make_keysig_packet, write_signature_packets): Pass in an
5377         optional timestamp for the signature packet, and change all
5378         callers.
5380         * keyedit.c (sign_mk_attrib): Include a critical expiration
5381         subpacket in the signature if an expiration date is given.
5383 2001-12-04  David Shaw  <dshaw@jabberwocky.com>
5385         * keyedit.c (sign_uids): If the user tries to sign a
5386         locally-signed key, allow the cert to be promoted to a full
5387         exportable signature.  This essentially deletes the old
5388         non-exportable sig, and replaces it with a new exportable one.
5390 2001-12-04  David Shaw  <dshaw@jabberwocky.com>
5392         * keyedit.c (keyedit_menu): Do not allow signing a revoked key
5393         unless --expert is set, and ask even then.
5395         * keyedit.c (sign_uids): Do not allow signing a revoked UID unless
5396         --expert is set, and ask even then.
5398         * g10.c, options.h : New option --expert
5400 2001-11-16  David Shaw  <dshaw@jabberwocky.com>
5402         * Allow the user to select no compression via "--compress-algo 0"
5403         on the command line.
5405         * keyedit.c (show_prefs): Show compression preferences in the
5406         long-form "showpref" style.
5408         * keygen.c (set_one_pref): Permit setting a no-compression ("Z0")
5409         preference.
5411         * getkey.c (fixup_uidnode): Fix compression preference corruption
5412         bug.
5414 2001-12-02  David Shaw  <dshaw@jabberwocky.com>
5416         * g10.c: Add advisory --for-your-eyes-only option as per section
5417         5.9 of 2440.
5419 2001-12-05  David Shaw  <dshaw@jabberwocky.com>
5421         * Force a V4 sig if the user has a notation or policy URL set.
5423 2001-12-04  David Shaw  <dshaw@jabberwocky.com>
5425         * g10.c: Add options --keyserver-options, --temp-directory, and
5426         auto-key-retrieve (the opposite of no-auto-key-retrieve).
5428         * hkp.c (hkp_search): New function to handle searching a HKP
5429         keyserver for a key
5431         * hkp.c (hkp_ask_import, hkp_export): Pretty large changes to make
5432         them communicate via the generic functions in keyserver.c
5434         * keyserver.c: new file with generic keyserver routines for
5435         getting keys from a keyserver, sending keys to a keyserver, and
5436         searching for keys on a keyserver.  Calls the internal HKP stuff
5437         in hkp.c for HKP keyserver functions.  Other calls are handled by
5438         an external program which is spawned and written to and read from
5439         via pipes.  Platforms that don't have pipes use temp files.
5441 2001-11-20  David Shaw  <dshaw@jabberwocky.com>
5443         * options.h, g10.c: New options show-notation, no-show-notation,
5444         default-check-level, no-default-check-level, show-policy-url,
5445         no-show-policy-url.
5447         * packet.h, sign.c (make_keysig_packet), parse-packet.c
5448         (parse_signature), free-packet.c (free_seckey_enc): Fill in
5449         structures for notation, policy, sig class, exportability, etc.
5451         * keyedit.c, keylist.c (print_and_check_one_sig,
5452         list_keyblock_print): Show flags in signature display for cert
5453         details (class, local, notation, policy, revocable).  If selected,
5454         show the notation and policy url.
5456         * keyedit.c (sign_uids): Prompt for and use different key sig
5457         classes.
5459         * helptext.c (helptexts): Add help text to explain different
5460         key signature classes
5462 2001-11-26  David Shaw  <dshaw@jabberwocky.com>
5464         * trustdb.c (mark_usable_uid_certs): Fix segfault from bad
5465         initialization and fix reversed key signature expiration check.
5467 2001-11-09  Werner Koch  <wk@gnupg.org>
5469         * export.c (do_export_stream): Put all given names into a search
5470         description and change the loop so that all matching names are
5471         returned.
5473 2001-11-08  Werner Koch  <wk@gnupg.org>
5475         * pubkey-enc.c (get_it): To reduce the number of questions on the
5476         MLs print the the name of cipher algorithm 1 with the error message.
5478         * mainproc.c: Changed the way old rfc1991 encryption cipher is
5479         selected. Based on a patch by W Lewis.
5481         * pkclist.c (do_edit_ownertrust): Allow to skip over keys, the non
5482         working "show info" is now assigned to "i" 
5483         * trustdb.c (ask_ownertrust, validate_keys): Implement a real quit
5484         here.  Both are by David Shaw.
5485         
5486         * trustdb.c (validate_keys): Make sure next_exipire is initialized.
5488         * sign.c (make_keysig_packet): Use SHA-1 with v4 RSA keys.
5490         * g10.c, options.h : New option --[no-]froce-v4-certs.
5491         * sign.c (make_keysig_packet): Create v4 sigs on v4 keys even with
5492         a v3 key.  Use that new option.  By David Shaw
5494         * revoke.c (ask_revocation_reason): Allow to select "no reason".
5495         By David Shaw.
5497         * keyid.c (fingerprint_from_sk): Calculation of an v3 fpr was
5498         plain wrong - nearly the same code in fingerprint_from_pk is correct.
5500         * build-packet.c (do_secret_key): Added a few comments to the code.
5502 2001-11-07  Werner Koch  <wk@gnupg.org>
5504         * g10.c (main): Print a warning when -r is used w/o encryption.
5505         Suggested by Pascal Scheffers.
5507 2001-10-23  Werner Koch  <wk@gnupg.org>
5509         * keyedit.c (keyedit_menu): Changed helptext for showpref
5510         command.  Suggested by Reinhard Wobst.
5512         * keyring.c (keyring_search): When marking the offtbl ready, take
5513         into account that we may have more than one keyring.
5515 2001-10-22  Werner Koch  <wk@gnupg.org>
5517         * Makefile.am: Do not use OMIT_DEPENDENCIES
5519         * build-packet.c (build_sig_subpkt): Default is now to put all
5520         types of subpackets into the hashed area and only list those which
5521         should go into the unhashed area.
5523 2001-10-18  Werner Koch  <wk@gnupg.org>
5525         * keydb.c (keydb_add_resource): Rearranged the way we keep track
5526         of the resource. There will now be an entry for each keyring here
5527         and not in keyring.c itself.  Store a token to allow creation of a
5528         keyring handle.  Changed all functions to utilize this new design.
5529         (keydb_locate_writable): Make a real implementation.
5530         * keyring.c (next_kr): Removed and changed all callers to set the
5531         resource directly from the one given with the handle.
5532         (keyring_is_writable): New. 
5533         (keyring_rebuild_cache): Add an arg to pass the token from keydb.
5535 2001-10-17  Werner Koch  <wk@gnupg.org>
5537         * keyring.c (keyring_search): Enabled word search mode but print a
5538         warning that it is buggy.
5539         
5540 2001-10-11  Werner Koch  <wk@gnupg.org>
5542         * hkp.c (hkp_ask_import): No more need to set the port number for
5543         the x-hkp scheme. 
5544         (hkp_export): Ditto.
5546 2001-10-06  Stefan Bellon  <sbellon@sbellon.de>
5548         * passphrase.c [__riscos__]: Disabled agent specific stuff.
5549         * g10.c: New option --no-force-v3-sigs.
5551 2001-10-04  Werner Koch  <wk@gnupg.org>
5553         * export.c (do_export_stream): Do not push the compress filter
5554         here because the context would run out of scope due to the
5555         iobuf_close done by the caller.
5556         (do_export): Do it here instead. 
5558 2001-09-28  Werner Koch  <wk@gnupg.org>
5560         * keyedit.c (sign_uids): Always use the primary key to sign keys.
5561         * getkey.c (finish_lookup): Hack to return only the primary key if
5562         a certification key has been requested.
5564         * trustdb.c (cmp_kid_for_make_key_array): Renamed to
5565         (validate_one_keyblock): this and changed arg for direct calling.
5566         (make_key_array): Renamed to
5567         (validate_one_keyblock): this and changed args for direct calling.
5568         (mark_usable_uid_certs, validate_one_keyblock)
5569         (validate_key_list): Add next_expire arg to keep track of
5570         expiration times.  
5571         (validate_keys): Ditto for UTKs and write the stamp.
5573         * tdbio.c (migrate_from_v2): Check return code of tbdio_sync.
5575         * tdbdump.c (import_ownertrust): Do a tdbio_sync().
5577         * keyring.c: Made the offtbl an global object.
5579 2001-09-27  Werner Koch  <wk@gnupg.org>
5581         * pkclist.c (do_edit_ownertrust): Allow settin of ultimate trust.
5583         * trustdb.c (mark_keyblock_seen): New.
5584         (make_key_array): Use it to mark the subkeys too.
5585         (validate_keys): Store validity for ultimatly trusted keys.
5587 2001-09-26  Werner Koch  <wk@gnupg.org>
5589         * pkclist.c (check_signatures_trust, do_we_trust): Removed the
5590         invocation of add_ownertrust. Minor changes to the wording.
5591         (add_ownertrust, add_ownertrust_cb): Removed.
5593         * trustdb.c (get_validity): Allow to lookup the validity using a
5594         subkey.
5596         * trustdb.c (new_key_hash_table): Increased the table size to 1024
5597         and changed the masks accordingly.
5598         (validate): Changed stats printing.
5599         (mark_usable_uid_certs): New.
5600         (cmp_kid_for_make_key_array): Does now check the signatures and
5601         figures out a usable one.
5603 2001-09-25  Werner Koch  <wk@gnupg.org>
5605         * keyring.c (new_offset_item,release_offset_items)
5606         (new_offset_hash_table, lookup_offset_hash_table)
5607         (update_offset_hash_table, update_offset_hash_table_from_kb): New.
5608         (keyring_search): Use a offset table to optimize search for
5609         unknown keys.
5610         (keyring_update_keyblock, keyring_insert_keyblock): Insert new
5611         offsets.
5612         * getkey.c (MAX_UNK_CACHE_ENTRIES): Removed the unknown keys
5613         caching code.
5615         * g10.c, options.h, import.c: Removed the entire
5616         allow-secret-key-import stuff because the validity is now
5617         controlled by other means.
5619         * g10.c: New command --rebuild-keydb-caches.
5620         * keydb.c (keydb_rebuild_caches): New.
5621         * keyring.c (do_copy): Moved some code to
5622         (create_tmp_file, rename_tmp_file, write_keyblock): new functions.
5623         (keyring_rebuild_cache): New.
5625         * packet.h (PKT_ring_trust): Add sigcache field.
5626         * parse-packet.c (parse_trust): Parse sigcache.
5627         * keyring.c (do_copy): Always insert a sigcache packet.
5628         (keyring_get_keyblock): Copy the sigcache packet to the signature.
5629         * sig-check.c (cache_sig_result): Renamed from
5630         cache_selfsig_result. Changed implementation to use the flag bits
5631         and changed all callers.
5632         (mdc_kludge_check): Removed this unused code.
5633         (do_check): Do not set the sig flags here.
5635         * import.c (read_block): Make sure that ring_trust packets are
5636         never imported.
5637         * export.c (do_export_stream): and never export them.
5639         * trustdb.c (make_key_array): Skip revoked and expired keys.
5641 2001-09-24  Werner Koch  <wk@gnupg.org>
5643         * g10.c, options.h: New option --no-auto-check-trustdb.
5645         * keygen.c (do_generate_keypair): Set newly created keys to
5646         ultimately trusted.
5648         * tdbio.h, tdbio.c: Removed all support for records DIR, KEY, UID,
5649         PREF, SIG, SDIR and CACH. Changed migration function to work
5650         direct on the file.
5651         (tdbio_read_nextcheck): New.
5652         (tdbio_write_nextcheck): New. 
5654 2001-09-21  Werner Koch  <wk@gnupg.org>
5656         Revamped the entire key validation system.
5657         * trustdb.c: Complete rewrite. No more validation on demand,
5658         removed some functions, adjusted to all callers to use the new 
5659         and much simpler interface. Does not use the LID anymore.
5660         * tdbio.c, tdbio.h: Add new record types trust and valid. Wrote a
5661         migration function to convert to the new trustdb layout.
5662         * getkey.c (classify_user_id2): Do not allow the use of the "#"
5663         prefix. 
5664         * keydb.h: Removed the TDBIDX mode add a skipfnc to the
5665         descriptor.
5666         * keyring.c (keyring_search): Implemented skipfnc.
5668         * passphrase.c (agent_open): Add missing bracket.  Include windows.h.
5670 2001-09-19  Werner Koch  <wk@gnupg.org>
5672         * keylist.c (print_fingerprint): Renamed from fingerprint, made
5673         global available. Added new arg to control the print style.
5674         * mainproc.c (print_fingerprint): Removed. 
5675         * pkclist.c (print_fpr, fpr_info): Removed and changed callers to
5676         use print_fingerprint.
5677         * keyedit.c (show_fingerprint): Ditto.
5679         * passphrase.c (writen, readn)
5680         (agent_open, agent_close)
5681         (agent_get_passphrase)
5682         (passphrase_clear_cache): Support for W32.  Contributed by Timo.
5684         * import.c (import_one): Release keydb handles at 2 more places.
5686         * keyring.c (keyring_release): Close the iobuf.
5687         (keyring_get_keyblock): Init ret_kb to NULL and store error contidion.
5689         * import.c (import_new_stats_handle): New. 
5690         (import_release_stats_handle): New.
5691         (import_print_stats): Renamed from static fnc print_stats.
5692         (import_keys, import_keys_stream): Add an optional status handle
5693         arg and changed all callers.
5694         * hkp.c (hkp_ask_import): Add an stats_handle arg and changed all
5695         callers.
5697         * mainproc.c (print_pkenc_list): Use print_utf8_string2().
5699 2001-09-18  Werner Koch  <wk@gnupg.org>
5701         * g10.c: New command --refresh-keys.
5702         * hkp.c (hkp_refresh_keys): New. Contributed by Timo Schulz.
5704         * parse-packet.c (parse): Stop on impossible packet lengths.
5706 2001-09-17  Werner Koch  <wk@gnupg.org>
5708         * mainproc.c (print_notation_data): Wrap notation data status lines
5709         after 50 chars.
5710         
5711         * mainproc.c (proc_pubkey_enc): Make option try-all-secrets work.
5712         By disastry@saiknes.lv.
5714 2001-09-14  Werner Koch  <wk@gnupg.org>
5716         * parse-packet.c (dump_sig_subpkt): List key server preferences
5717         and show the revocable flag correctly. Contributed by David Shaw.
5719 2001-09-09  Werner Koch  <wk@gnupg.org>
5721         * keyedit.c (keyedit_menu): No need to define another p.
5723         * keylist.c (print_capabilities): s/used/use/ so that it
5724         does not shadow a global.
5725         * sign.c (sign_file): Renamed arg encrypt to encryptflag
5726         * keygen.c: Replaced all "usage" by "use".
5727         * misc.c (openpgp_pk_algo_usage): Ditto.
5729         * pubkey-enc.c (get_it): Renamed arg k to enc so that the later
5730         defined k does not shadow it.
5732         * parse-packet.c (parse_gpg_control): No need to define another i.
5734         * getkey.c (get_pubkey_byfprint): Must use the enum values and not
5735         the fprint_len.
5736         * keyring.c (keyring_search): Removed a non-sense break.  Both
5737         bugs pointed out by Stefan.
5739 2001-09-07  Werner Koch  <wk@gnupg.org>
5741         * status.c, status.h: Added NO_RECP and ALREADY_SIGNED.
5742         * pkclist.c (build_pk_list): Issue NO_RECP.
5743         * keyedit.c (sign_uids): Added experimental ALREADY_SIGNED
5745         * hkp.c (hkp_import): Use log_error. Bug reported by Neal H
5746         Walfield. 
5748         * getkey.c (classify_user_id2): Change args to take the desc union
5749         direct.  It was a stupid idea to pass the individual fields of an
5750         union to this function. Changed all callers.
5751         (classify_user_id): Ditto and allow to pass NULL as the description.
5753 2001-09-06  Werner Koch  <wk@gnupg.org>
5755         * getkey.c (fixup_uidnode): Features flag is now a bit vector.
5756         * keygen.c (add_feature_mdc): Ditto.
5758         Revamped the entire key I/O code to be prepared for other ways of
5759         key storages and to get rid of the existing shit.  GDBM support has
5760         gone.
5761         * keydb.c: New
5762         * keyring.c, keyring.h: New.
5763         * ringedit.c: Removed.  Moved some stuff to keyring.c
5764         * getkey.c: Changed everything related to the key retrieving
5765         functions which are now using the keydb_ functions.  
5766         (prepare_search, word_match_chars, word_match)
5767         (prepare_word_match, compare_name): Moved to keyring.c
5768         (get_pubkey_byname): Removed ctx arg and add ret_kdbhd
5769         arg.  Changed all callers.
5770         (key_byname): Use get_pubkey_end to release the context and take
5771         new ret_kbdhd arg.  Changed all callers.
5772         (classify_user_id2): Fill the 16 byte fingerprint up with 4 null
5773         bytes not with zero bytes of value 4, tsss.
5774         * import.c (import_one): Updated to use the new keydb interface.
5775         (import_secret_one): Ditto.
5776         (import_revoke_cert): Ditto.
5777         * delkey.c (do_delete_key): Ditto. 
5778         * keyedit.c (keyedit_menu): Ditto.
5779         (get_keyblock_byname): Removed.
5780         * revoke.c (gen_revoke): Ditto. 
5781         * export.c (do_export_stream): Ditto.
5782         * trustdb.c (update_trustdb): Ditto.
5783         * g10.c, gpgv.c (main): Renamed add_keyblock_resource to
5784         keydb_add_resource. 
5785         * Makefile.am:  Added and removed files.
5787         * keydb.h: Moved KBNODE typedef and MAX_FINGERPRINT_LEN to
5788         * global.h: this new header.
5789         
5790 2001-09-03  Werner Koch  <wk@gnupg.org>
5792         * passphrase.c (agent_get_passphrase): Changed nread to size_t.
5793         (passphrase_clear_cache): Ditto.
5795         * keyid.c (mk_datestr): Avoid trigraphs.
5796         (fingerprint_from_pk): Cache the keyid in the pk.
5798         * options.h: Add opt.with_fingerprint so that we know whether the
5799         corresponding options was used.
5800         * g10.c (main): Set it here.
5801         * pkclist.c (check_signatures_trust): Always print fingerprint
5802         when this option is used.  Mixed a minor memory leak.
5804         * status.c, status.h: New status INV_RECP.
5805         * pkclist.c (build_pk_list): Issue this status.
5807 2001-08-31  Werner Koch  <wk@gnupg.org>
5809         * parse-packet.c (parse_key,parse_pubkeyenc)
5810         (parse_signature): Return error on reading bad MPIs.
5811         
5812         * mainproc.c (check_sig_and_print): Always print the user ID even
5813         if it is not bound by a signature.  Use the primary UID in the
5814         status messages and encode them in UTF-8
5815         * status.c (write_status_text_and_buffer): New.
5817 2001-08-30  Werner Koch  <wk@gnupg.org>
5819         * packet.h (sigsubpkttype_t): Add SIGSUBPKT_FEATURES.
5820         (PKT_public_key, PKT_user_id): Add a flag for it.
5821         * parse-packet.c, build-packet.c: Add support for them.
5822         * getkey.c (fixup_uidnode, merge_selfsigs): Set the MDC flags.
5823         * keygen.c (add_feature_mdc): New.
5824         (keygen_upd_std_prefs): Always set the MDC feature.
5825         * keyedit.c (show_prefs): List the MDC flag
5826         * pkclist.c (select_mdc_from_pklist): New.
5827         * encode.c (encode_crypt, encrypt_filter): Test whether MDC
5828         should be used.
5829         * cipher.c (write_header): Set MDC use depending on the above test.
5830         Print more status info.
5832         * delkey.c (do_delete_key): Kludge to delete a secret key with no
5833         public key available.
5835         * ringedit.c (find_secret_keyblock_direct): New.
5836         * getkey.c (seckey_available): Simplified.
5838         * ringedit.c (cmp_seckey): Now compares the secret key against the
5839         public key while ignoring all secret parts.
5840         (keyring_search): Use a public key packet as arg.  Allow to search
5841         for subnkeys
5842         (search): Likewise. Changed all callers.
5843         (find_secret_keyblock_bypk): New.
5844         (find_secret_keyblock_byname): First locate the pubkey and then
5845         find the correponding secret key.
5846         * parse-packet.c (parse): Renamed pkttype arg to onlykeypkts and
5847         changed code accordingly.  Changed all callers.
5848         (search_packet): Removed pkttype arg.
5849         * keyedit.c (keyedit_menu): First locate the public key and then
5850         try to locate a secret key.
5852         * ringedit.c (locate_keyblock_by_fpr): Removed.
5853         (locate_keyblock_by_keyid): Removed.
5854         (find_keyblock_bysk): Removed.
5856         * sig-check.c (check_key_signature2): Print the keyid along with
5857         the wrong sig class errors.
5859 2001-08-24  Werner Koch  <wk@gnupg.org>
5861         * sign.c (sign_file): Stripped the disabled comment packet code.
5862         (sign_file, sign_symencrypt_file): Moved common code to ..
5863         (write_onepass_sig_packets): .. this new function.
5864         (sign_file, clearsign_file, sign_symencrypt_file): Moved common
5865         code to 
5866         (write_signature_packets): this new function.
5867         (write_signature_packets, make_keysig_packet)
5868         (update_keysig_packet): Moved common code to 
5869         (hash_uid, hash_sigclass_to_magic): these new functions
5870         (sign_file, sign_symencrypt_file): Moved common code to 
5871         (write_plaintext_packet):  this new function.
5873 2001-08-21  Stefan Bellon  <sbellon@sbellon.de>
5875         * trustdb.c (query_trust_info): Changed trustlevel to signed int.
5876         * g10.c [__riscos__]: Fixed handling of --use-agent --lock-multiple.
5878 2001-08-20  Werner Koch  <wk@gnupg.org>
5880         * encr-data.c (decrypt_data): Keep track on whether we already
5881         printed information about the used algorithm.
5882         * mainproc.c (proc_encrypted): Removed the non-working IDEA hack
5883         and print a message about the assumed algorithm.
5884         * passphrase.c (passphrase_to_dek): Use the same algorithm as above.
5885         (proc_symkey_enc): Print the algorithm, so that the user knows it
5886         before entering the passphrase.
5887         (proc_pubkey_enc, proc_pubkey_enc): Zero the DEK out.
5888         * encode.c (encode_crypt, encrypt_filter): Ditto.
5890         * g10.c: Allow for --sign --symmetric.
5891         * sign.c (sign_and_symencrypt): New.
5893         Applied patches from Stefan Bellon <sbellon@sbellon.de> to support
5894         RISC OS.  Nearly all of these patches are identified by the
5895         __riscos__ macro.
5896         * compress.c: Added a couple of casts.
5897         * g10.c [__riscos__]: Some patches and new options foo-file similar
5898         to all foo-fd options.
5899         * gpgv.c, openfile.c, ringedit.c, tdbio.c: Minor fixes.  Mainly
5900         replaced hardcoded path separators with EXTSEP_S like macros.  
5901         * passprase.c [__riscos__]: Disabled agent stuff
5902         * trustdb.c (check_trust): Changed r_trustlevel to signed int to
5903         avoid mismatch problems in pkclist.c
5904         * pkclist.c (add_ownertrust): Ditto.
5905         * plaintext.c (handle_plaintext) [__riscos__]: Print a note when
5906         file can't be created.
5907         * options.h [__riscos__]: Use an extern unless included from the
5908         main module.
5909         * signal.c (got_fatal_signal) [__riscos__]: Close all files.
5910         
5911 2001-08-14  Werner Koch  <wk@gnupg.org>
5913         * keygen.c (ask_algo): New arg r_usage.  Allow for RSA keys.
5914         (gen_rsa): Enabled the code.
5915         (do_create): Enabled RSA branch.
5916         (parse_parameter_usage): New.
5917         (proc_parameter_file): Handle usage parameter.
5918         (read_parameter_file): Ditto.
5919         (generate_keypair): Ditto.
5920         (generate_subkeypair): Ditto.
5921         (do_generate_keypair): Ditto.
5922         (do_add_key_flags): New.
5923         (keygen_add_std_prefs): Use the new function.
5924         (keygen_add_key_flags_and_expire): New.
5925         (write_selfsig, write_keybinding): Handle new usage arg.
5926         * build-packet.c (build_sig_subpkt): Make sure that key flags go
5927         into the hashed area.
5928         
5929         * keygen.c (write_uid): Initialize the reference cunter.
5931         * keyedit.c (keyedit_menu): No more need to update the trustdb for
5932         preferences.  Added calls to merge keblock.
5934         * kbnode.c (dump_kbnode): Print some more flags.
5936 2001-08-10  Werner Koch  <wk@gnupg.org>
5938         Revamped the preference handling.
5940         * packet.h (prefitem_t, preftype_t): New.
5941         (PKT_public_key): Added a uid field.
5942         (PKT_user_id): Added field to store preferences and a reference
5943         counter.
5944         * parse-packet.c (parse_user_id,parse_photo_id): Initialize them
5945         * free-packet.c (free_user_id): Free them.
5946         (copy_user_id): Removed.
5947         (scopy_user_id): New. 
5948         (cmp_user_ids): Optimized for identical pointers.
5949         (release_public_key_parts): Release the uid.
5950         (copy_public_key_with_new_namehash): Removed.
5951         (copy_prefs): New.
5952         * keyedit.c (menu_adduid): Use the new shallow copy user id.
5953         (show_prefs): Adjusted implementation.
5954         (keyedit_menu): No more need to update the trustdb after changing
5955         preferences.
5956         * getkey.c (fixup_uidnode): Store preferences.
5957         (find_by_name): Return a user id packet and remove namehash stuff.
5958         (lookup): Removed the unused namehash stuff.
5959         (finish_lookup): Added foundu arg.
5960         (pk_from_block): Removed the namehash arg and changed all callers.
5961         (merge_selfsigs): Copy prefs to all keys.
5962         * trustdb.c (get_pref_data): Removed.
5963         (is_algo_in_prefs): Removed.
5964         (make_pref_record): Deleted and removed all class.
5965         * pkclist.c (select_algo_from_prefs): Adjusted for the new
5966         preference implementation.
5967         * pubkey-enc.c (is_algo_in_prefs): New.
5968         (get_it): Use that new function. 
5970 2001-08-09  Werner Koch  <wk@gnupg.org>
5972         * build-packet.c (build_sig_subpkt): Fixed calculation of
5973         newarea->size.
5975         * g10.c (main): New option "--preference-list"
5976         * keyedit.c (keyedit_menu): New commands "setpref" and "updpref".
5977         (menu_set_preferences): New.
5978         * keygen.c (keygen_set_std_prefs): New.
5979         (set_one_pref): New.
5980         (check_zip_algo): New.
5981         (keygen_get_std_prefs): New.
5982         (keygen_upd_std_prefs): New
5983         (keygen_add_std_prefs): Move the pref setting code into the above fnc.
5984         * build-packet.c (build_sig_subpkt): Updated the list of allowed
5985         to update subpackets.
5987 2001-08-08  Werner Koch  <wk@gnupg.org>
5989         * packet.h (subpktarea_t): New.
5990         (PKT_signature): Use that type for hashed_data and unhashed_data and
5991         removed the _data prefix from those fields.  Changed all users.
5992         * parse-packet.c (parse_signature): Changed allocation for that.
5993         (parse_sig_subpkt): Changed declaration
5994         (enum_sig_subpkt): Ditto and changed implementation accordingly.
5995         * free-packet.c (cp_subpktarea): Renamed from cp_data_block and
5996         adjusted implementation. Changed caller.
5997         * sig-check.c (mdc_kludge_check): Adjusted the hashing.
5998         (do_check): Ditto.
5999         * sign.c (sign_file, clearsign_file, make_keysig_packet,
6000         update_keysig_packet): Ditto.
6001         * build-packet.c (build_sig_subpkt): Partial rewrite.
6002         (find_subpkt): Adjusted and made static.
6003         (delete_sig_subpkt): Adjusted.
6004         (do_signature): Ditto.
6006         * keygen.c (ask_keysize): Do not print the notes about suggested
6007         key sizes if just a DSA key is generated.
6009         * trustdb.c (add_ultimate_key): s/log_error/log_info/ for
6010         duplicated inserted trusted keys.
6012 2001-08-07  Werner Koch  <wk@gnupg.org>
6014         * sign.c (sleep): Redefine for W32.
6016         * g10.c, options.h: Set new flag opt.no_homedir_creation when
6017         --no-options is given.
6018         * openfile.c (try_make_homedir): Don't create the homedir in that case.
6020 2001-08-03  Werner Koch  <wk@gnupg.org>
6022         * armor.c (armor_filter): Removed the default comment string
6023         because it could get us in trouble due to translations using non
6024         ascii characters.
6026 2001-08-01  Werner Koch  <wk@gnupg.org>
6028         * keylist.c (list_keyblock_print): Do not list revoked UIDs unless
6029         in verbose mode and we do no signature listing.
6031         * getkey.c (finish_lookup): Skip subkeys which are not yet valid.
6032         * g10.c, options.h: New option --ignore-valid-from.
6034         * sign.c (make_keysig_packet): Added new sigversion argument to
6035         allow the caller to force generation of required signature
6036         version. Changed all callers. Suggested by Thomas Roessler.
6038         * keyedit.c (sign_uids): Force v4 signature generation for local
6039         sigs.  Removed the check for local signature and pre-v4 keys.
6041 2001-07-27  Werner Koch  <wk@gnupg.org>
6043         * keyedit.c (sign_uids): Check that we are not trying to to a
6044         lsign with a pre-v4 key.  Bug noticed by Thomas Roessler.
6046 2001-07-26  Werner Koch  <wk@gnupg.org>
6048         * parse-packet.c (parse_photo_id): Reset all variables.
6049         * getkey.c (merge_selfsigs_main): Removed checks on PHOTO_ID
6050         because this is handled identically to a user ID.
6052 2001-07-06  Werner Koch  <wk@gnupg.org>
6054         * cipher.c (write_header): Don't use MDC with --rfc1991.  Suggested
6055         by disastry@saiknes.lv.
6057 2001-07-05  Werner Koch  <wk@gnupg.org>
6059         * g10.c, options.h: New option --preserve-permissions.
6060         * ringedit.c (add_keyblock_resource): Use it here
6061         (keyring_copy): and here.
6063         * trustdb.c (verify_own_keys): Be more silent on --quiet.
6064         Suggested by Thomas Roessler.
6065         * sig-check.c (check_key_signature2): Ditto.
6066         * mainproc.c (proc_encrypted, proc_tree): Ditto
6067         * getkey.c (lookup): Ditto.
6069 2001-07-04  Werner Koch  <wk@gnupg.org>
6071         * ringedit.c (add_keyblock_resource): Restore filename in case of error.
6073 2001-06-25  Werner Koch  <wk@gnupg.org>
6075         * kbnode.c (dump_kbnode): Print the signature timestamp.
6077         * keyedit.c (keyedit_menu): New menu point "primary".
6078         (change_primary_uid_cb): New.
6079         (menu_set_primary_uid): New.
6080         * sign.c (update_keysig_packet): New.
6081         * build-packet.c (build_sig_subpkt): Put the primary UID flag into
6082         the hashed area. Allow update of some more packets.
6084 2001-06-15  Werner Koch  <wk@gnupg.org>
6086         * getkey.c (merge_selfsigs): Exit gracefully when a secret key is
6087         encountered.  May happen if a secret key is in public keyring.
6088         Reported by Francesco Potorti.
6089         
6090 2001-06-12  Werner Koch  <wk@gnupg.org>
6092         * getkey.c (compare_name): Use ascii_memistr(), ascii_memcasecmp()
6093         * keyedit.c (keyedit_menu): Use ascii_strcasecmp().
6094         * armor.c (radix64_read): Use ascii_toupper().  
6095         * ringedit.c (do_bm_search): Ditto.
6096         * keygen.c (read_parameter_file): Ditto.
6097         * openfile.c (CMP_FILENAME): Ditto.
6098         * g10.c (i18n_init): We can now use just LC_ALL.
6100 2001-05-29  Werner Koch  <wk@gnupg.org>
6102         * keygen.c (generate_subkeypair): Print a warning if a subkey is
6103         created on a v3 key. Suggested by Brian M. Carlson.
6105 2001-05-27  Werner Koch  <wk@gnupg.org>
6107         * keyid.c (get_lsign_letter): New.
6108         * keylist.c (list_keyblock_colon): Use it here.
6109         * mainproc.c (list_node): and here.
6111         * getkey.c, packet.h, free-packet.c: Removed that useless key
6112         created field; I dunno why I introducded this at all - the
6113         creation time is always bound to the key packet and subject to
6114         fingerprint calculation etc.
6116         * getkey.c (fixup_uidnode): Add keycreated arg and use this
6117         instead of the signature timestamp to calculate the
6118         help_key_expire.  Bug reported by David R. Bergstein.
6119         (merge_selfsigs_main): Correct key expiration time calculation.
6120         (merge_selfsigs_subkey): Ditto.
6122 2001-05-25  Werner Koch  <wk@gnupg.org>
6124         * revoke.c (gen_revoke): Add a cast to a tty_printf arg.
6125         * delkey.c (do_delete_key): Ditto.
6126         * keyedit.c (print_and_check_one_sig): Ditto.
6127         (ask_revoke_sig): Ditto.
6128         (menu_revsig): Ditto.
6129         (check_all_keysigs): Removed unused arg.
6131 2001-05-23  Werner Koch  <wk@gnupg.org>
6133         * g10.c (opts): Typo fix by Robert C. Ames.
6135 2001-05-06  Werner Koch  <wk@gnupg.org>
6137         * revoke.c: Small typo fix
6139 2001-05-04  Werner Koch  <wk@gnupg.org>
6141         * passphrase.c (passphrase_clear_cache): Shortcut if agent usage
6142         is not enabled.
6144 2001-05-01  Werner Koch  <wk@gnupg.org>
6146         * passphrase.c (writen): Replaced ssize_t by int.  Thanks to 
6147         to Robert Joop for reporting that SunOS 4.1.4 does not have it.
6149 2001-04-28  Werner Koch  <wk@gnupg.org>
6151         * getkey.c (merge_public_with_secret): pkttype was not set to subkey.
6153 2001-04-27  Werner Koch  <wk@gnupg.org>
6155         * skclist.c (build_sk_list): Changed one log_debug to log_info.
6157 2001-04-25  Werner Koch  <wk@gnupg.org>
6159         * keyedit.c (show_prefs): Add a verbose mode.
6160         (show_key_with_all_names): Pass verbose flag for special value of
6161         with_pref.
6162         (keyedit_menu): New command "showpref"
6163         (show_key_with_all_names): Mark revoked uids and the primary key.
6165 2001-04-24  Werner Koch  <wk@gnupg.org>
6167         * getkey.c (get_primary_uid): Return a different string in case of
6168         error and made it translatable.
6170         * build-packet.c (do_secret_key): Ugly, we wrote a zero
6171         instead of the computed ndays.  Thanks to M Taylor for complaining
6172         about a secret key import problem.
6174 2001-04-23  Werner Koch  <wk@gnupg.org>
6176         * hkp.c (hkp_ask_import): Allow to specify a port number for the 
6177         keyserver.  Add a kudge to set the no_shutdown flag.
6178         (hkp_export): Ditto.
6179         * options.skel: Document the changes 
6181 2001-04-20  Werner Koch  <wk@gnupg.org>
6183         * options.skel: Add some more comments.
6185 2001-04-19  Werner Koch  <wk@gnupg.org>
6187         * keyid.c (mk_datestr): New.  Handles negative times.  We must do
6188         this because Windoze segvs on negative times passed to gmtime().
6189         Changed all datestr_from function to use this one.
6191         * keyid.c, keyid.h (colon_strtime): New. To implement the
6192         fixed-list-mode.
6193         (colon_datestr_from_pk): New.
6194         (colon_datestr_from_sk): New.
6195         (colon_datestr_from_sig): New.
6196         * keylist.c (list_keyblock_colon): Use these functions here.
6197         * mainproc.c (list_node): Ditto.
6199 2001-04-18  Werner Koch  <wk@gnupg.org>
6201         * openfile.c (open_sigfile): Fixed the handling of ".sign".
6202         * mainproc.c (proc_tree): Use iobuf_get_real_fname.
6203         Both are by Vincent Broman.
6205 2001-04-14  Werner Koch  <wk@gnupg.org>
6207         * getkey.c (fixup_uidnode): Removed check for !sig which is
6208         pointless here.  Thanks to Jan Niehusmann.
6210 2001-04-10  Werner Koch  <wk@gnupg.org>
6212         * sig-check.c (check_key_signature2): Use log_info instead of
6213         log_error so that messed up keys do not let gpg return an error.
6214         Suggested by Christian Kurz.
6216         * getkey.c (merge_selfsigs_main): Do a fixup_uidnode only if we
6217         have both, uid and sig.  Thanks to M Taylor.
6219 2001-04-05  Werner Koch  <wk@gnupg.org>
6221         * armor.c (unarmor_pump_new,unarmor_pump_release): New.
6222         (unarmor_pump): New. 
6223         * pipemode.c (pipemode_filter): Use the unarmor_pump to handle
6224         armored or non-armored detached signatures.  We can't use the
6225         regular armor_filter because this does only check for armored
6226         signatures the very first time.  In pipemode we may have a mix of
6227         armored and binary detached signatures.
6228         * mainproc.c (proc_tree): Do not print the "old style" notice when
6229         this is a pipemode processes detached signature.
6230         (proc_plaintext): Special handling of pipemode detached sigs.
6232         * packet.h (CTRLPKT_PLAINTEXT_MARK): New.
6233         * parse-packet.c (create_gpg_control): New.
6234         * kbnode.c (dump_kbnode): Support it here.
6235         * mainproc.c (check_sig_and_print): Fixed the check for bad
6236         sequences of multiple signatures.
6237         (proc_plaintext): Add the marker packet.
6238         (proc_tree): We can now check multiple detached signatures.
6240 2001-04-02  Werner Koch  <wk@gnupg.org>
6242         The length of encrypted packets for blocksizes != 8 was not
6243         correct encoded.  I think this is a minor problem, because we
6244         usually use partial length packets.  Kudos to Kahil D. Jallad for
6245         pointing this out.
6246         * packet.h: Add extralen to PKT_encrypted.
6247         * cipher.c (write_header): Set extralen.
6248         * build-packet.c (do_encrypted): Use extralen instead of const 10.
6249         (do_encrypted_mdc): Ditto.
6250         * parse-packet.c (parse_encrypted): Set extralen to 0 because we
6251         don't know it here.
6253 2001-03-30  Werner Koch  <wk@gnupg.org>
6255         * getkey.c (premerge_public_with_secret): Changed wording an add
6256         the keyID to the info message.
6258 2001-03-29  Werner Koch  <wk@gnupg.org>
6260         * getkey.c (premerge_public_with_secret): Use log_info instead of
6261         log_error when no secret key was found for a public one.
6262         Fix the usage if the secret parts of a key are not available.
6264         * openfile.c (ask_outfile_name): Trim spaces.
6265         (open_outfile): Allow to enter an alternate filename.  Thanks to
6266         Stefan Bellon.
6267         * plaintext.c (handle_plaintext): Ditto.
6269 2001-03-28  Werner Koch  <wk@gnupg.org>
6271         * mainproc.c (do_check_sig): Allow direct key and subkey
6272         revocation signature.
6273         * sig-check.c (check_key_signature2): Check direct key signatures.
6274         Print the signature class along with an error.
6276 2001-03-27  Werner Koch  <wk@gnupg.org>
6278         * packet.h: Add a missing typedef to an enum.  Thanks to Stefan Bellon.
6280         * g10.c: New option --no-sig-create-check.
6281         * sign.c (do_sign): Implement it here.
6282         * g10.c: New option --no-sig-cache.
6283         * sig-check.c (check_key_signature2): Implement it here.
6284         (cache_selfsig_result): and here.
6286         * keylist.c (list_keyblock): Removed debugging stuff.
6288         * getkey.c (cache_public_key): Made global.
6289         * keygen.c (write_selfsig, write_keybinding): Cache the new key.
6291         * getkey.c (key_byname): Add new arg secmode and changed all
6292         callers to request explicitly the mode.  Deriving this information
6293         from the other supplied parameters does not work if neither pk nor
6294         sk are supplied.
6296 2001-03-25  Werner Koch  <wk@gnupg.org>
6298         * packet.h (ctrlpkttype_t): New.
6299         * mainproc.c (add_gpg_control,proc_plaintext,proc_tree): Use the
6300         new enum values.
6301         * pipemode.c (make_control): Ditto.
6302         * armor.c (armor_filter): Ditto.
6304 2001-03-24  Werner Koch  <wk@gnupg.org>
6306         * sign.c (do_sign): Verify the signature right after creation.
6308 2001-03-23  Werner Koch  <wk@gnupg.org>
6310         * status.c, status.h (STATUS_UNEXPECTED): New.
6311         * mainproc.c (do_proc_packets): And emit it here.
6313 2001-03-21  Werner Koch  <wk@gnupg.org>
6315         * status.c: Add sys/types.h so that it runs on Ultrix.  Reported
6316         by Georg Schwarz.x
6318         * build-packet.c (build_sig_subpkt): Fixed generaton of packet
6319         length header in case where 2 bytes headers are needed.  Thanks to
6320         Piotr Krukowiecki.
6322 2001-03-19  Werner Koch  <wk@gnupg.org>
6324         * g10.c (main): the default keyring is no always used unless
6325         --no-default-keyring is given.  
6327         * ringedit.c (add_keyblock_resource): invalidate cache after file
6328         creation.
6330 2001-03-15  Werner Koch  <wk@gnupg.org>
6332         * keygen.c (ask_algo): Changed the warning of the ElGamal S+E Algo.
6334         * keylist.c (print_capabilities): New.
6335         (list_keyblock_colon): and use it here.
6337 2001-03-13  Werner Koch  <wk@gnupg.org>
6339         * main.c, options.h: New option --fixed_list_mode.
6340         * keylist.c (list_keyblock_colon): use it here.
6342         * getkey.c (merge_keys_and_selfsig): Divert merging of public keys
6343         to the function used in key selection..
6344         * keylist.c (is_uid_valid): Removed.
6345         (list_keyblock): Splitted into ..
6346         (list_keyblock_print, list_keyblock_colon): .. these.
6347         functions.  Changed them to use the flags set in the key lookup code.
6348         (reorder_keyblock): New, so that primary user IDs are listed first.
6350         * ringedit.c (keyring_copy): flush the new iobuf chaces before
6351         rename or remove operations.  This is mainly needed for W32.
6353         * hkp.c [HAVE_DOSISH_SYSTEM]: Removed the disabled code because we
6354         have now W32 socket support in ../util/http.c
6356         * skclist.c (key_present_in_sk_list): New.
6357         (is_duplicated_entry): New.
6358         (build_sk_list): Check for duplicates and do that before unlocking.
6360 2001-03-12  Werner Koch  <wk@gnupg.org>
6362         * armor.c (parse_header_line): Removed double empty line check.
6363         (parse_header_line): Replaced trim_trailing_ws with a counting
6364         function so that we can adjust for the next read.
6366         * options.skel: Fixed 3 typos. By Thomas Klausner. Replaced the
6367         keyserver example by a better working server. 
6369         * parse-packet.c (parse_symkeyenc): Return Invalid_Packet on error.
6370         (parse_pubkeyenc): Ditto.
6371         (parse_onepass_sig): Ditto.
6372         (parse_plaintext): Ditto.
6373         (parse_encrypted): Ditto.
6374         (parse_signature): Return error at other places too.
6375         (parse_key): Ditto.
6376         * g10.c (main): Set opt.list_packets to another value when invoked
6377         with the --list-packets command.
6378         * mainproc.c (do_proc_packets): Don's stop processing when running
6379         under --list-packets command.
6381         * signal.c (do_sigaction): Removed.
6382         (init_one_signal): New to replace the above.  Needed to support
6383         systems without sigactions. Suggested by Dave Dykstra.
6384         (got_fatal_signal,init_signals): Use the above here. 
6385         (do_block): Use sigset() if sigprocmask() is not available.
6387         * armor.c (parse_hash_header): Test on TIGER192, which is the
6388         correct value as per rfc2440.  By Edwin Woudt.
6390 2001-03-08  Werner Koch  <wk@gnupg.org>
6392         * misc.c: Include time.h. By James Troup.
6394         * getkey.c: Re-enabled the unknown user Id and PK caches and
6395         increased their sizes.
6397         * getkey.c (merge_selfsigs_main): Set expire date and continue
6398         processing even if we found a revoked key.
6399         (merge_selfsigs_subkeys): Ditto.
6400         
6401         * packet.h: Add an is_revoked flag to the user_id packet.
6402         * getkey.c (fixup_uidnode): Set that flag here.
6403         (merge_selfsigs_main): Fix so that the latest signature is used to
6404         find the self-signature for an UID.
6405         * parse-packet.c (parse_user_id): Zero out all fields.
6406         * mainproc.c (check_sig_and_print): Print the primary user ID
6407         according the the node flag and then all other non-revoked user IDs.
6408         (is_uid_revoked): Removed; it is now handled by the key selection code.
6409         
6410         Changed the year list of all copyright notices.
6411         
6412 2001-03-07  Werner Koch  <wk@gnupg.org>
6414         * getkey.c (finish_lookup): Print an info message only in verbose mode.
6416 2001-03-05  Werner Koch  <wk@gnupg.org>
6418         * packet.h: Replaced sigsubpkt_t value 101 by PRIV_VERIFY_CACHE.
6419         We have never used the old value, so we can do this without any harm.
6420         * parse-packet.c (dump_sig_subpkt): Ditto.
6421         (parse_one_sig_subpkt): Parse that new sub packet.
6422         * build-packet.c (build_sig_subpkt): Removed the old one from the
6423         hashed area.
6424         (delete_sig_subpkt): New.
6425         (build_sig_subpkt): Allow an update of that new subpkt.
6426         * sig-check.c (check_key_signature2): Add verification caching
6427         (cache_selfsig_result): New.
6428         * export.c (do_export_stream): Delete that sig subpkt before exporting.
6429         * import.c (remove_bad_stuff): New.
6430         (import): Apply that function to all imported data 
6432 2001-03-03  Werner Koch  <wk@gnupg.org>
6434         * getkey.c: Introduced a new lookup context flag "exact" and used 
6435         it in all place where we once used primary.
6436         (classify_user_id2): Replaced the old function and add an extra
6437         argument to return whether an exact keyID has been requested.
6438         (key_byname): Removed the unused ctx.primary flag
6439         (get_seckey_byname2): Ditto.
6440         (finish_lookup): Changed debugging output.
6442 2001-03-02  Werner Koch  <wk@gnupg.org>
6444         * keylist.c (list_one): Remove the merge key calls. 
6446 2001-03-01  Werner Koch  <wk@gnupg.org>
6448         * getkey.c (finish_lookup): Don't use it if we no specific usage
6449         has been requested.
6450         (merge_selfsigs_main): fix UID only if we have an signature.
6451         (lookup): Return UNU_PUBKEY etc. instead of NO_PUBKEY if we found
6452         a key but the requested usage does not allow this key.
6453         * import.c (import_one): Take UNU_PUBKEY into account.
6454         * mainproc.c (list_node): Ditto.
6455         * keylist.c (list_keyblock): Ditto.
6456         * keyedit.c (print_and_check_one_sig): Ditto. 
6458 2001-02-09  Werner Koch  <wk@gnupg.org>
6460         * delkey.c (delete_key): Removed that silly assert which rendered
6461         the whole new stuff meaningless.
6463 2001-02-08  Werner Koch  <wk@gnupg.org>
6465         * getkey.c (key_byname): It can happen that we have both, sk and pk
6466         NULL, fix for that.
6468         * parse-packet.c (parse_one_sig_subpkt): Add support for
6469         primary_uid and key_flags.
6470         (can_handle_critical): Ditto
6472         * parse-packet.c (parse_encrypted): Fixed listing of pktlen for
6473         MDC packets.
6475         * getkey.c: Backported the version of this file from gpg 1.1. this
6476         involved some changes in other files too.
6477         * parse-packet.c (parse_key): Clear req_usage.
6478         * skclist.c (build_sk_list): Use req_usage to pass the usage
6479         information to the lookup function.
6480         * pkclist.c (build_pk_list): Ditto.
6481         * free-packet.c (copy_public_parts_to_secret_key): New.
6482         * keydb.h: Add IS_* macros to check the sig_class.
6483         * misc.c (openpgp_cipher_test_algo): New.
6484         (openpgp_pk_test_algo): New.
6485         (openpgp_pk_algo_usage): New.
6486         (openpgp_md_test_algo): New.
6487         * packet.h: Add a few fields to PKT_{public,secret}_key and
6488         PKT_user_id.
6489         * seckey-cert.c (do_check): Use the new main_keyid field.
6491 2001-02-04  Werner Koch  <wk@gnupg.org>
6493         * encr-data.c (decrypt_data): Catch error when we had problems to
6494         parse the encrypted packet. By Timo.
6496 2001-01-29  Werner Koch  <wk@gnupg.org>
6498         * g10.c (main): --batch does now set nogreeting.
6500         * delkey.c (do_delete_key): Fixed delete-both functionality.
6502 2001-01-22  Werner Koch  <wk@gnupg.org>
6504         * g10.c: New command --delete-secret-and-public-key.
6505         * delkey.c (delete_key): Add new arg allow_both.
6506         (do_delete_key): Move most stuff from above to this new function.
6508 2001-01-12  Werner Koch  <wk@gnupg.org>
6510         * passphrase.c (passphrase_to_dek): Use MD5 when IDEA is installed
6511         and we have no S2K.
6512         * mainproc.c (proc_encrypted): Likewise
6514 2001-01-11  Werner Koch  <wk@gnupg.org>
6516         * sig-check.c (do_check): Print the signature key expire message
6517         only in verbose mode and added the keyID.
6519 2001-01-09  Werner Koch  <wk@gnupg.org>
6521         * status.c, status.h: New status USERID_HINT. 
6522         (write_status_text): Replace LF and CR int text by C-escape sequence.
6524         * passphrase.c (passphrase_to_dek): Fixed the NEED_PASSPHRASE
6525         output.  It does now always print 2 keyIDs.  Emit the new
6526         USERID_HINT.
6528 2001-01-08  Werner Koch  <wk@gnupg.org>
6530         * g10.c, options.h: New option --no-expensive-trust-checks.
6531         * keylist.c (list_keyblock): Act on this option.
6533 2001-01-04  Werner Koch  <wk@gnupg.org>
6535         * g10.c (main): Set homedir only in the pre-parsing phase and
6536         replace backslashes in the W32 version.
6538 2001-01-03  Werner Koch  <wk@gnupg.org>
6540         * status.c, status.h : New status KEY_CREATED
6541         * keygen.c (do_generate_keypair,generate_subkeypair): Emit it.
6543 2000-12-28  Werner Koch  <wk@gnupg.org>
6545         * signal.c (got_fatal_signal): Remove lockfiles here because the
6546         atexit stuff does not work due to the use of raise. Suggested by
6547         Peter Fales.
6548         * gpgv.c (remove_lockfiles): New stub.
6549         
6550 2000-12-19  Werner Koch  <wk@gnupg.org>
6552         * status.c, status.h (cpr_get_no_help): New.
6553         * keyedit.c (keyedit_menu): Use it here because we have our own
6554         help list here.
6556 2000-12-18  Werner Koch  <wk@gnupg.org>
6558         * mainproc.c (print_failed_pkenc): Don't print the sometimes
6559         confusing message about unavailabe secret key.  Renamed ...
6560         (print_pkenc_list): ... to this and introduced failed arg.
6561         (proc_encrypted): Print the failed encryption keys and then
6562         the one to be used.
6563         (proc_pubkey_enc): Store also the key we are going to use.
6565         * mainproc.c (check_sig_and_print): Don't list revoked user IDs.
6566         (is_uid_revoked): New.
6568 2000-12-08  Werner Koch  <wk@gnupg.org>
6570         * pipemode.c: Made the command work.  Currently only for
6571         non-armored detached signatures.
6572         * mainproc.c (release_list): Reset the new pipemode vars.
6573         (add_gpg_control): Handle the control packets for pipemode
6574         * status.c, status.h: New stati {BEGIN,END}_STREAM.
6576 2000-12-07  Werner Koch  <wk@gnupg.org>
6578         * g10.c: New option --allow-secret-key-import.
6579         * import.c (import_keys,import_keys_stream): Honor this option.
6580         (import): New arg allow_secret and pass that arg down to ...
6581         (import_secret_one): to this and print a warning if secret key
6582         importing is not allowed.
6584 2000-12-05  Werner Koch  <wk@gnupg.org>
6586         * cipher.c (cipher_filter): Moved the end_encryption status ...
6587         * encode.c (encode_simple,encode_crypt): to here
6588         * sign.c (sign_file): and here.
6590         * status.c (mywrite): Removed.
6591         (get_status_string): Removed the LFs from the strings.
6592         (set_status_fd,is_status_enabed,write_status_text,
6593         write_status_buffer): Replaced all mywrite by stdio calls and use
6594         fdopen to create a strem.  This is needed to make things smoother
6595         in the W32 version.
6597 2000-12-04  Werner Koch  <wk@gnupg.org>
6599         * import.c (merge_blocks): Increment n_sigs for revocations.
6601 2000-11-30  Werner Koch  <wk@gnupg.org>
6603         * g10.c (main): Use iobuf_translate_file_handle for all options
6604         with filehandles as arguments.  This is function does some magic
6605         for the W32 API.
6607         * verify.c (verify_signatures): Add a comment rant about the
6608         detached signature problem.
6609         * mainproc.c (proc_tree): Issue an error if a detached signature
6610         is assumed but a standard one was found.
6611         * plaintext.c (hash_datafiles): Don't fall back to read signature
6612         from stdin.
6613         * openfile.c (open_sigfile): Print verbose message only if the
6614         file could be accessed.
6616 2000-11-24  Werner Koch  <wk@gnupg.org>
6618         * passphrase.c [HAVE_DOSISH_SYSTEM]: Disabled all the agent stuff.
6620 2000-11-16  Werner Koch  <wk@gnupg.org>
6622         * g10.c: New option --use-agent
6623         * passphrase.c (agent_open,agent_close): New.
6624         (agent_get_passphrase,agent_clear_passphrase): New.
6625         (passphrase_clear_cache): New.
6626         (passphrase_to_dek): Use the agent here.
6627         * seckey-cert.c (do_check): Clear cached passphrases.
6629 2000-11-15  Werner Koch  <wk@gnupg.org>
6631         * status.c (write_status_text): Moved the big switch to ...
6632         (get_status_string): ... new function.
6633         (write_status_buffer): New.
6635         * status.c (mywrite): New and replaced all write() by this.
6637         * status.c, status.h: Add 3 status lcodes for notaions and policy.
6638         * mainproc.c (print_notation_data): Do status output of notations.
6639         
6640 2000-11-13  Werner Koch  <wk@gnupg.org>
6642         * sign.c (clearsign_file): Use LF macro to print linefeed.
6643         
6644 2000-11-11  Paul Eggert  <eggert@twinsun.com>
6646         Clean up the places in the code that incorrectly use "long" or
6647         "unsigned long" for file offsets.  The correct type to use is
6648         "off_t".  The difference is important on large-file hosts,
6649         where "off_t" is longer than "long".
6651         * keydb.h (struct keyblock_pos_struct.offset):
6652         Use off_t, not ulong, for file offsets.
6653         * packet.h (dbg_search_packet, dbg_copy_some_packets,
6654         search_packet, copy_some_packets): Likewise.
6655         * parse-packet.c (parse, dbg_search_packet, search_packet,
6656         dbg_copy_some_packets, copy_some_packets): Likewise.
6657         * ringedit.c (keyring_search): Likewise.
6659         * parse-packet.c (parse): Do not use %lu to report file
6660         offsets in error diagnostics; it's not portable.
6661         * ringedit.c (keyring_search): Likewise.
6663 2000-11-09  Werner Koch  <wk@gnupg.org>
6665         * g10.c (main): New option --enable-special-filenames.
6667 2000-11-07  Werner Koch  <wk@gnupg.org>
6669         * g10.c (main): New command --pipemode.
6670         * pipemode.c: New.
6672 2000-10-23  Werner Koch  <wk@gnupg.org>
6674         * armor.c (armor_filter): Changed output of hdrlines, so that a CR
6675         is emitted for DOS systems.
6677         * keygen.c (read_parameter_file): Add a cast for isspace().
6679         * status.c (myread): Use SIGINT instead of SIGHUP for DOS. 
6681 2000-10-19  Werner Koch  <wk@gnupg.org>
6683         * g10.c: New option --ignore-crc-error
6684         * armor.c (invalid_crc): New.
6685         (radix64_read): Act on new option.
6687         * openfile.c (try_make_homedir): Klaus Singvogel fixed a stupid
6688         error introduced on Sep 6th. 
6690 2000-10-18  Werner Koch  <wk@gnupg.org>
6692         * misc.c (print_cipher_algo_note): Don't print the note for AES.
6693         Changed wording.
6695 2000-10-16  Werner Koch  <wk@gnupg.org>
6697         * mainproc.c (do_proc_packets): Hack to fix the problem that
6698         signatures are not detected when there is a MDC packet but no
6699         compression packet.
6700         
6701         * g10.c (print_hashline): New.
6702         (print_mds): Use above func with --with-colons.
6704         * mainproc.c (check_sig_and_print): Detect multiple signatures
6705         and don't verify them.
6707 2000-10-14  Werner Koch  <wk@gnupg.org>
6709         * mainproc.c (add_onepass_sig): There is an easier solution to the
6710         error fixed yesterday; just check that we only have onepass
6711         packets.  However, the other solution provides an cleaner
6712         interface and opens the path to get access to other information
6713         from the armore headers.
6714         (release_list): Reset some more variables.
6716 2000-10-13  Werner Koch  <wk@gnupg.org>
6718         * mainproc.c (add_gpg_control): New.
6719         (do_proc_packets): use it.
6720         (proc_plaintext): Changed logic to detect clearsigns.
6721         (proc_tree): Check the cleartext sig with some new code.
6723         * packet.h: New packet PKT_GPG_CONTROL.
6724         * parse-packet.c (parse_gpg_control): New.
6725         * misc.c (get_session_marker): New.
6726         * armor.c (armor_filter): Replaced the faked 1-pass packet by the
6727         new control packet.
6729         * keyedit.c (keyedit_menu): Allow batchmode with a command_fd. 
6730         * status.c (my_read): New.
6731         (do_get_from_fd): use it.
6733 2000-10-12  Werner Koch  <wk@gnupg.org>
6735         * keygen.c (keygen_add_std_prefs): Add Rijndael to the prefs.
6737 2000-10-07  Werner Koch  <wk@gnupg.org>
6739         * gpgv.c: Add more stubs for ununsed code to make the binary smaller.
6741 Wed Oct  4 15:50:18 CEST 2000  Werner Koch  <wk@openit.de>
6743         * sign.c (hash_for): New arg to take packet version in account, changed
6744         call callers.
6746         * gpgv.c: New.
6747         * Makefile.am: Rearranged source files so that gpgv can be build with
6748         at least files as possible.
6750 Mon Sep 18 12:13:52 CEST 2000  Werner Koch  <wk@openit.de>
6752         * hkp.c (not_implemented): Print a notice for W32
6754 Fri Sep 15 18:40:36 CEST 2000  Werner Koch  <wk@openit.de>
6756         * keygen.c (keygen_add_std_prefs): Changed order of preferences to
6757         twofish, cast5, blowfish.
6759         * pkclist.c (algo_available): Removed hack to disable Twofish.
6761 Thu Sep 14 17:45:11 CEST 2000  Werner Koch  <wk@openit.de>
6763         * parse-packet.c (dump_sig_subpkt): Dump key flags. Print special
6764         warning in case of faked ARRs.
6766         * getkey.c (finsih_lookup): Hack so that for v4 RSA keys the subkey
6767         is used for encryption.
6769 Thu Sep 14 14:20:38 CEST 2000  Werner Koch  <wk@openit.de>
6771         * g10.c (main): Default S2K algorithms are now SHA1 and CAST5 - this
6772         should solve a lot of compatibility problems with other OpenPGP
6773         apps because those algorithms are SHOULD and not optional.  The old
6774         way to force it was by using the --openpgp option whith the drawback 
6775         that this would disable a couple of workarounds for PGP.
6777         * g10.c (main): Don't set --quite along with --no-tty.  By Frank Tobin.
6779         * misc.c (disable_core_dump): Don't display a warning here but a return
6780         a status value and ...
6781         * g10.c (main): ...print warnining here. Suggested by Sam Roberts.
6783 Wed Sep 13 18:12:34 CEST 2000  Werner Koch  <wk@openit.de>
6785         * keyedit.c (keyedit_menu): Allow to use "debug" on the secret key.
6787         * ringedit.c (cmp_seckey): Fix for v4 RSA keys.
6788         * seckey-cert.c (do_check): Workaround for PGP 7 bug.
6790 Wed Sep  6 17:55:47 CEST 2000  Werner Koch  <wk@openit.de>
6792         * misc.c (print_pubkey_algo_note): Do not print the RSA notice.
6793         * sig-check.c (do_signature_check): Do not emit the RSA status message.
6794         * pubkey-enc.c (get_session_key): Ditto.
6796         * encode.c (encode_simple, encode_crypt): Fix for large files.
6797         * sign.c (sign_file): Ditto.
6799 Wed Sep  6 14:59:09 CEST 2000  Werner Koch  <wk@openit.de>
6801         * passphrase.c (hash_passphrase): Removed funny assert.  Reported by
6802         David Mathog.
6804         * openfile.c (try_make_homedir): Changes for non-Posix systems.
6805         * g10.c (main): Take the default homedir from macro.
6807         * g10.c: The --trusted-key option is back.
6808         * trustdb.c (verify_own_key): Handle this option.
6809         (add_ultimate_key): Moved stuff from verify_own_key to this new func.
6810         (register_trusted_key): New.
6812 Fri Aug 25 16:05:38 CEST 2000  Werner Koch  <wk@openit.de>
6814         * parse-packet.c (dump_sig_subpkt): Print info about the ARR.
6816         * openfile.c (overwrite_filep): Always return okay if the file is
6817         called /dev/null. 
6818         (make_outfile_name): Add ".sign" to the list of know extensions.
6819         (open_sigfile): Ditto.
6821 Wed Aug 23 19:52:51 CEST 2000  Werner Koch  <wk@openit.de>
6823         * g10.c: New option --allow-freeform-uid. By Jeroen C. van Gelderen.
6824         * keygen.c (ask_user_id): Implemented here.
6826 Fri Aug  4 14:23:05 CEST 2000  Werner Koch  <wk@openit.de>
6828   * status.c (do_get_from_fd): Ooops, we used fd instead of opt.command_fd.
6829   Thanks to Michael Tokarev.
6831 Tue Aug  1 20:06:23 CEST 2000  Werner Koch  <wk@openit.de>
6833   * g10.c: New opttion --try-all-secrets on suggestion from Matthias Urlichs.
6834   * pubkey-enc.c (get_session_key): Quite easy to implement here.
6836 Thu Jul 27 17:33:04 CEST 2000  Werner Koch  <wk@openit.de>
6838   * g10.c: New option --merge-only.  Suggested by Brendan O'Dea.
6839   * import.c (import_one): Implemented it here
6840   (import_secret_one): Ditto.
6841   (print_stats): and give some stats.
6843 Thu Jul 27 12:01:00 CEST 2000  Werner Koch  <wk@openit.de>
6845   * g10.c: New options --show-session-key and --override-session-key
6846   * pubkey-enc.c (hextobyte): New.
6847   (get_override_session_key): New.
6848   * mainproc.c (proc_pubkey_enc): Add session-key stuff.
6849   * status.h, status.c (STATUS_SESSION_KEY): New.
6851 Thu Jul 27 10:02:38 CEST 2000  Werner Koch  <wk@openit.de>
6853   * g10.c (main): Use setmode(O_BINARY) for MSDOS while generating random bytes
6854   (print_mds): Likewise for stdin.
6855   * plaintext.c (handle_plaintext): Likewise for stdout.
6857 Mon Jul 24 10:30:17 CEST 2000  Werner Koch  <wk@openit.de>
6859   * keyedit.c (menu_expire): expire date for primary key can be set again.
6861 Wed Jul 19 11:26:43 CEST 2000  Werner Koch  <wk@openit.de>
6863   * keylist.c (is_uid_valid): New.
6864   (list_keyblock): Print validity information for all user IDs.  Note, this
6865   has to be done at other places too; for now we have only minimal support.
6867 Wed Jul 12 13:32:06 CEST 2000  Werner Koch  <wk@openit.de>
6869   * helptext.c, pkclist.c: s/superseeded/superseded/
6871 Mon Jul 10 16:08:57 CEST 2000  Werner Koch  <wk@openit.de>
6873   * parse-packet.c (enum_sig_subpkt): Fixed testing on crtitical bit in case
6874   of a NULL buffer.  Reported by Peter Marschall.
6876 Wed Jul  5 13:28:45 CEST 2000  Werner Koch  <wk@openit.de>
6878   * keyedit.c, keyid.c: Add some _()
6880   * argparse.c:  Changed the flag to suppress --version handling to also
6881   suppress --help.
6883 Wed Jun 28 11:54:44 CEST 2000  Werner Koch  <wk@openit.de>
6885   * armor.c (armor_filter): Set sigclass to 0 in case of non-dash-escaped
6886   clearsig.  This makes this mode work again.
6888   * mainproc.c (proc_tree): Fixed handling of one-pass-sig packets in textmode.
6889   Disabled the ugly workaround for PGP 5 - let's see whether thi breaks less
6890   cases. Found by Ted Cabeen.
6892   * options.h (DBG_HASHING): New.  All commented md_start_debug are now
6893   controlled by this debug option.
6895   * sign.c (print_status_sig_created): New and called from 2 places.
6897   * keygen.c (gen_rsa): New, but commented.
6898   (ask_algo): Commented support for RSA.
6900   * seckey-cert.c (protect_secret_key): Started to fix the code for v4 RSA
6901   keys - it is not solved yet. However, we have time until, Sep 20th ;)
6903 Wed Jun 14 12:27:09 CEST 2000  Werner Koch  <wk@openit.de>
6905   * status.c (init_shm_coprocessing): Changed the sequence of the get,attach
6906   to cope with the changes in newer Linux kernels.  This bug has been found
6907   by <dmitri@advantrix.com> who also proposed this solution.  Hopefully
6908   this does not break gpg on to many systems.
6910   * cipher.c (write_header): Protect the IV with the MDC too.
6911   * encr-data.c (decrypt_data): Likewise.
6913 Fri Jun  9 10:09:52 CEST 2000  Werner Koch  <wk@openit.de>
6915   * g10.c: New options --no-auto-key-retrieve
6916   * options.h (auto_key_retrieve): New.
6917   * mainproc.c (check_sig_and_print): Implemented that.
6919 Wed Jun  7 19:19:09 CEST 2000  Werner Koch  <wk@openit.de>
6921   * sig-check.c (do_check): Use EMULATE_MDENCODE also on v4 packets.
6923 Wed Jun  7 17:25:38 CEST 2000  Werner Koch  <wk@openit.de>
6925   * cipher.c (write_header): Use plain CFB mode for MDC encrypted packets.
6926   * encr-data.c (decrypt_data): Ditto.
6928 Mon Jun  5 23:41:54 CEST 2000  Werner Koch  <wk@openit.de>
6930   * seskey.c (do_encode_md, encode_md_value): Add new arg v3compathack to work
6931   around a bug in old versions.
6932   * sig-check.c (do_check): use the aboved workaround when enabled.
6933   * g10.c: New option --emulate-md-decode-bug
6935 Mon Jun  5 12:37:43 CEST 2000  Werner Koch  <wk@openit.de>
6937   * build-packet.c (do_mdc): New.
6938   (do_encrypted_mdc): Changed for the new proposal.
6939   * parse-packet.c (parse_mdc): New.
6940   (parse_encrypted): Fixed for the new proposal.
6941   * packet.h (PKT_MDC): New.
6942   * cipher.c (cipher_filter): Build the MDC packet here.
6943   * g10.c (main): Enable --force-mdc.
6944   * encr-data.c (mdc_decode_filter): Fixed for new MDC method
6946   * options.h(rfc2440): New.
6947   * g10.c (main): Changed the selected values for --openpgp to not include
6948   optional algorithms.
6950 Thu May 18 11:38:54 CEST 2000  Werner Koch  <wk@openit.de>
6952         * keyedit.c (keyedit_menu): Add a keyword arg to the prompt.
6954         * status.c, status.h: Added 3 new status tokens.
6955         * status.c (do_get_from_fd): New.
6956         (cpr_enabled,cpr_get,cpr_get_hidden,cpr_kill_prompt,
6957          cpr_get_answer_is_yes,cpr_get_answer_yes_no_quit): Modified to work
6958          with the new function.
6959         * g10.c: Add new option --command-fd.
6961         * status.c (progress_cb): New.
6962         (set_status_fd): Register progress functions
6964 Fri May 12 14:01:20 CEST 2000  Werner Koch  <wk@openit.de>
6966         * delkey.c (delete_key): Add 2 new status messages
6967         * status.c, status.h (STATUS_DELETE_PROBLEM): New.
6969         Fixed years of copyright in all source files.
6971 Mon May  1 17:08:14 CEST 2000  Werner Koch  <wk@openit.de>
6973         * trustdb.c (propagate_validity): Fixed the bug that only one uid
6974         gets fully trusted even when all are signed by an ultimate key.
6976 Mon May  1 15:38:04 CEST 2000  Werner Koch  <wk@openit.de>
6978         * getkey.c (key_byname): Always returned a defined context.  Fixed
6979         a segv for invalid user id specifications. Reported by Walter Koch.
6981         * getkey.c (get_user_id): I18ned "no user id" string. By Walter.
6983         * pkclist.c (do_show_revocation_reason): Typo fixes.
6984         * helptext.c: Ditto.
6986         * armor.c (armor_filter): Fixed some CRLF issues.  By Mike McEwan.
6988 Fri Apr 14 19:37:08 CEST 2000  Werner Koch  <wk@openit.de>
6990         * pkclist.c (do_show_revocation_reason): New.
6991         (show_revocation_reason): New and called at various places.
6993         * g10.c (main): Fixed small typo.
6995         * pkclist.c (do_we_trust): Act on always_trust but not for revoked
6996         keys. Suggested by Chip Salzenberg.
6998         * g10.c: New option --lock-never.
7000         * ringedit.c (get_writable_keyblock_file): New.
7001         * keygen.c (do_generate_keypair): Use this instead of the hardwired one.
7003         * keygen.c (ask_user_id): Check that the email address is in the
7004         correct field.  Suggested by Christian Kurz.
7006 Mon Apr 10 13:34:19 CEST 2000  Werner Koch  <wk@openit.de>
7008         * keyedit.c (show_key_with_all_names): s/sbb/ssb/
7010 Tue Mar 28 14:26:58 CEST 2000  Werner Koch  <wk@openit.de>
7012         * trustdb.c (verify_own_keys): Do not print warning about unprotected
7013         key when in quiet mode.
7015 Wed Mar 22 13:50:24 CET 2000  Werner Koch  <wk@openit.de>
7017         * mainproc.c (print_userid): Do UTF8 conversion before printing.
7018         * import.c (import_one): Ditto.
7019         (import_secret_one): Ditto.
7020         (delete_inv_parts): Ditto.
7022 Thu Mar 16 16:20:23 CET 2000  Werner Koch  <wk@openit.de>
7024         * keylist.c (print_key_data): Handle a NULL pk gracefully.
7026         * getkey.c (merge_one_pk_and_selfsig): Fixed silly code for
7027         getting the primary keys keyID but kept using the one from the
7028         subkey.
7029         * pubkey-enc.c (get_it): Print a note for expired subkeys.
7031         * getkey.c (has_expired): New.
7032         (subkeys_expiretime): New.
7033         (finish_lookup): Check for expired subkeys needed for encryption.
7034         (merge_keys_and_selfsig): Fixed expiration date merging for subkeys.
7036         * keylist.c (list_keyblock): Print expiration time for "sub".
7037         (list_one): Add missing merging for public keys.
7038         * mainproc.c (list_node): Ditto.
7040 2000-03-14 13:49:38  Werner Koch  (wk@habibti.openit.de)
7042         * keygen.c (keyedit_menu): Do not allow to use certain commands
7043         while the secret key is selected.
7045 2000-03-09 12:53:09  Werner Koch  (wk@habibti.openit.de)
7047         * keygen.c (ask_expire_interval): Movede parsig to ...
7048         (parse_expire_string): ... this new function. And some new control
7049         commands.
7050         (proc_parameter_file): Add expire date parsing.
7051         (do_generate_keypair): Allow the use of specified output files.
7053 2000-03-08 10:38:38  Werner Koch  (wk@habibti.openit.de)
7055         * keygen.c (ask_algo): Removed is_v4 return value and the commented
7056         code to create Elg keys in a v3 packet. Removed the rounding
7057         of key sizes here.
7058         (do_create): Likewise removed arg v4_packet.
7059         (gen_elg): Likewise removed arg version. Now rounding keysizes here.
7060         (gen_dsa): Rounding keysize now here.
7061         (release_parameter_list): New
7062         (get_parameter*): New.
7063         (proc_parameter_file): New.
7064         (read_parameter_file): New.
7065         (generate_keypair): Splitted. Now uses read_parameter_file when in
7066         batch mode.  Additional argument to specify a parameter file.
7067         (do_generate_keypair): Main bulk of above fucntion and uses the
7068         parameter list.
7069         (do_create): Don't print long notice in batch mode.
7070         * g10.c (main): Allow batched key generation.
7072 Thu Mar  2 15:37:46 CET 2000  Werner Koch  <wk@gnupg.de>
7074         * pubkey-enc.c (get_it): Print a note about unknown cipher algos.
7076         * g10.c (opts): Add a note to the help listing about the man page
7077         and removed some options from the help listing.
7079         * keyedit.c (print_and_check_one_sig): Use a new function to truncate
7080         the output of the user ID.  Suggested by Jan-Benedict Glaw.
7082 Wed Feb 23 10:07:57 CET 2000  Werner Koch  <wk@gnupg.de>
7084         * helptext.c: typo fix.
7086 Thu Feb 17 13:39:32 CET 2000  Werner Koch  <wk@gnupg.de>
7088         * revoke.c: Removed a bunch of commented code.
7090         * packet.h (SIGSUBPKT_REVOC_REASON): New.
7091         * build-packet.c (build_sig_subpkt): Support new sub packet.
7092         * parse-packet.c (parse_one_sig_subpkt): Ditto.
7093         (dump_sig_subpkt): Ditto.
7094         * revoke.c (ask_revocation_reason): New.
7095         (release_revocation_reason_info): New.
7096         (revocation_reason_build_cb): New.
7097         (gen_revoke): Ask for reason.
7098         * main.h (struct revocation_reason_info): Add declaration.
7099         * keyedit.c (menu_revsig): Add support for revocation reason.
7100         (menu_revkey): Ditto.
7101         (sign_uid_mk_attrib): Renamed to ...
7102         (sign_mk_attrib): ... this, made static and add support for reasons.
7104 Tue Feb 15 08:48:13 CET 2000  Werner Koch  <wk@gnupg.de>
7106         * build-packet.c (build_packet): Fixed fixing of old comment packets.
7108         * import.c (import_keys): Fixed importing from stdin when called with
7109         nnames set to zero as it normally happens.
7111 Mon Feb 14 14:30:20 CET 2000  Werner Koch  <wk@gnupg.de>
7113         * sig-check.c (check_key_signature2): Add new arg r_expired.
7114         (do_signature_check): New arg to pass it down to ...
7115         (do_check): New arg r-expire which is set when the signature
7116         has expired.
7117         * trustdb.c (check_sig_record): Set SIGF_EXPIRED flag and set
7118         the expiretime to zero so that thi signature will not be checked
7119         anymore.
7121 Fri Feb 11 17:44:40 CET 2000  Werner Koch  <wk@gnupg.de>
7123         * g10.c (g10_exit): Update the random seed_file.
7124         (main): Set the random seed file.  New option --no-random-seed-file.
7126 Thu Feb 10 17:39:44 CET 2000  Werner Koch  <wk@gnupg.de>
7128         * keyedit.c (menu_expire): Fixed segv due to unitialized sub_pk.
7129         By Rémi.
7131 Thu Feb 10 11:39:41 CET 2000  Werner Koch  <wk@gnupg.de>
7133         * keylist.c (list_keyblock): Don't print warnings in the middle of
7134         regulat output lines.  By Rémi.
7136         * sig-check.c: Include options.h
7138 Wed Feb  9 15:33:44 CET 2000  Werner Koch  <wk@gnupg.de>
7140         * gpg.c: New option --ignore-time-conflict
7141         * sig-check.c (do_check): Implemented this option.
7142         * trustdb.c (check_trust): Ditto.
7143         * sign.c (do_sign): Ditto.
7144         * keygen.c (generate_subkeypair): Ditto.
7146         * encode.c (encode_simple): use iobuf_cancel after open failure.
7147         Reported by Huy Le.
7149 Fri Jan 14 18:32:01 CET 2000  Werner Koch  <wk@gnupg.de>
7151         * packet.h (STRING2KEY): Changed mode from byte to int.
7152         * parse-packet.c (parse_key): Add the special GNU protection stuff
7153         * build-packet.c (so_secret_key): Ditto.
7154         * seckey-cert.c (do_check): Ditto.
7155         * keyedit.c (change_passphrase): Ditto.
7156         * export.c (export_secsubkeys): New.
7157         (do_export_stream): Hack to export the primary key using mode 1001.
7158         * g10.c: New command --export-secret-subkeys
7160 Thu Jan 13 19:31:58 CET 2000  Werner Koch  <wk@gnupg.de>
7162         * armor.c (is_armored): Check for 1-pass-sig packets. Reported by
7163         David Hallinan <hallinan@rtd.com>.
7164         (armor_filter): Replaced one LF by the LF macro.  Reported by
7165         Wolfgang Redtenbacher.
7167 Wed Jan  5 11:51:17 CET 2000  Werner Koch  <wk@gnupg.de>
7169         * g10.c (main): Reset new global flag opt.pgp2_workarounds
7170         when --openpgp is used.
7171         * mainproc.c (proc_plaintext): Do the PGP2,5 workarounds only
7172         when the global flag is set.
7173         (proc_tree): Ditto.
7174         * textfilter.c (copy_clearsig_text): Ditto.
7175         * armor.c (armor_filter): Ditto.
7177         * g10.c: New option --list-only
7178         * mainproc.c (proc_tree): Don't do it if opt.list_only is active.
7179         (proc_pubkey_enc): Implement option.
7181         * status.h, status.c ({BEGIN,END}_{EN,DE}CRYPTION): New.
7182         * cipher.c (cipher_filter): New status outputs.
7183         * mainproc.c (proc_encrypted): New status outputs.
7185 Fri Dec 31 14:08:15 CET 1999  Werner Koch  <wk@gnupg.de>
7187         * armor.c (armor_filter): Made the "Comment:" header translatable.
7189         * hkp.c (hkp_import): Make sure that the program does not return
7190         success when there is a connection problem.  Reported by Phillip Jones.
7192 Sun Dec 19 15:22:26 CET 1999  Werner Koch  <wk@gnupg.de>
7194         * armor.c (LF): Use this new macro at all places where a line LF
7195         is needed.  This way DOSish textfiles should be created when the
7196         input data is also in dos mode.
7197         * sign.c (LF): Ditto.
7198         * textfilter.c (LF): Ditto.
7199         (copy_clearsig_text): Disabled the forcing of CR,LF sequences
7200         for DOS systems.
7202         * plaintext.c (handle_plaintext): Fixes for line endings on DOS.
7203         and react on a LF in cleartext.
7204         * armor.c (fake_packet): Restore the original line ending after
7205         removing trailing spaces.
7207         * signal.c (got_fatal_signal): DOS fix.
7209 Thu Dec 16 10:07:58 CET 1999  Werner Koch  <wk@gnupg.de>
7211         * mainproc.c (print_failed_pkenc): Fix for unknown algorithm.
7212         Found by fygrave@epr0.org.
7214 Thu Dec  9 10:31:05 CET 1999  Werner Koch  <wk@gnupg.de>
7216         * hkp.c: i18n the strings.
7218 Sat Dec  4 15:32:20 CET 1999  Werner Koch  <wk@gnupg.de>
7220         * trustdb.c (verify_key): Shortcut for ultimately trusted keys.
7222 Sat Dec  4 12:30:28 CET 1999  Werner Koch  <wk@gnupg.de>
7224         * pkclist.c (build_pk_list): Validate the trust using the namehash
7225         if this one has been set by the key lookup.
7227         * g10.c: Add --delete-secret-key to the help page.
7229         * openfile.c (copy_options_file): Made static.
7230         (try_make_homedir): New.
7231         * ringedit.c (add_keyblock_resource): Use the try_make_hoemdir logic.
7232         * tdbio.c (tdbio_set_dbname): Likewise.
7234         * keygen.c (generate_user_id): Use m_alloc_clear() here. We should
7235         better use an allocation function specific to the user_id packet.
7237         * keygen.c (keygen_add_std_prefs): Changed symmetric preferences
7238         to include Blowfish again.  This is due to it's better speed compared
7239         to CAST5.
7241         * g10.c (strusage): Print the home directory.
7243         * armor.c (armor_filter): Take action on the cancel control msg.
7244         * filter.h (armor_filter_context_t): Add cancel flag.
7246 Mon Nov 29 21:52:11 CET 1999  Werner Koch  <wk@gnupg.de>
7248         * g10.c: New option --fast-list-mode ..
7249         * keylist.c (list_keyblock): .. and implemented.
7250         * mainproc.c (list_node): Ditto.
7252         * import.c (mark_non_selfsigned_uids_valid): Fixed the case that there
7253         is a uid without any packet following.
7255 Mon Nov 22 11:14:53 CET 1999  Werner Koch  <wk@gnupg.de>
7257         * mainproc.c (proc_plaintext): Never enable the hash processing
7258         when skip_verify is active.
7260         * armor.c (parse_header_line): Stop parsing on a WS line too.
7261         Suggested by Aric Cyr.
7263         * tdbdump.c (HEXTOBIN): Changed the name of the argument, so that
7264         traditional cpp don't mess up the macros. Suggested by Jos Backus.
7266         * mainproc.c (list_node): Print the PK algo in the --with-colon mode.
7267         * keylist.c (list_keyblock): Ditto.
7269         * signal.c (got_fatal_signal): Found the reason why exit(8) did not
7270         work - it is better to set the disposition back to default before
7271         raising the signal.  Print the notice on stderr always.
7273 Fri Nov 12 20:33:19 CET 1999  Werner Koch  <wk@gnupg.de>
7275         * g10.c (make_username): Swapped the logic.
7276         * keylist.c (public_key_list): Now takes a STRLIST as arg and moved
7277         the creation ot this list to the caller, so that he can copy with
7278         UTF-conversion of user IDs.  Changed all callers.
7279         (secret_key_list): Likewise.
7281         * getkey.c (get_user_id_string_native): New and ...
7282         * encode.c (write_pubkey_enc_from_list): ... use it here.
7284         * pubring.asc: Updated.
7286         * packet.h (PKT_PHOTO_ID): New.
7287         * parse-packet.c (parse_photo_id): New.
7288         * build-packet.c (do_user_id: Handle photo IDs.
7289         (build_packet): Change CTB for photo IDs
7290         * free-packet.c (free_user_id): Release memory used for photo IDs
7291         * sig-check.c (hash_uid_node): Handle photo IDs too.
7292         * trustdb.c (print_uid_from_keyblock): Hash photo ID.
7293         (make_uid_records): Ditto.
7294         * getkey.c (find_by_name): Ditto.
7295         * keyedit.c (show_prefs): Ditto.
7296         * keylist.c (list_keyblock): Ditto.
7298 Thu Oct 28 16:08:20 CEST 1999  Werner Koch  <wk@gnupg.de>
7300         * keygen.c (ask_expire_interval): Print a warning for systems
7301         with a signed 32 time_t if the exiration time is beyoind 2038.
7303 Fri Oct  8 20:40:50 CEST 1999  Werner Koch  <wk@gnupg.de>
7305         * ringedit.c (enum_keyblocks): The last fix way really stupid;
7306         reverted and set rt to Unknown.
7308 Fri Oct  8 20:32:01 CEST 1999  Werner Koch  <wk@gnupg.de>
7310         * ringedit.c (enum_keyblocks): Zero the entire kbpos out on open.
7312         * g10.c (oEntropyDLL): Removed option.
7313         (main): Made the warning on development versions more verbose.
7315         * g10.c (oHonorHttpProxy): New option.
7316         * hkp.c (hkp_ask_import,hkp_export): Implement this option.
7317         * options.skel: Enable this option for new installations
7319 Mon Oct  4 21:23:04 CEST 1999  Werner Koch  <wk@gnupg.de>
7321         * import.c (import_keys): Changed calling interface, adjusted caller.
7322         (import): Moved printing of stats out ...
7323         (print_stats): New. ... to here.
7324         (import_keys_stream): Call stats print here.
7325         (import_keys): Print stats as totals for all files.
7327         * tdbio.h (DIRF_NEWKEYS): New
7328         * tdbio.c (tdbio_dump_record): Print the new flag.
7329         * trustdb.c (check_trust_record): New arg sigs_only.  Adapted all
7330         callers.
7331         (do_update_trust_record): Removed recheck arg and add a new sigs_only
7332         do we can later improve on the performance.  Changed all callers too.
7333         (check_trustdb): Evalutate the new flag and add a status output.
7334         Do a check when the dir record has not been checked.
7335         (build_cert_tree): Evaluate the new flag.
7336         (check_trust): Ditto.  Do a trust_record check, when the dir record
7337         is not marked as checked.
7338         (mark_fresh_keys): New.
7339         (clear_lid_table): New.
7340         (sync_trustdb): New.
7341         * import.c (import_keys): Call sync_trustdb() after processing.
7342         (import_keys_stream): Ditto.
7343         * tdbdump.c (import_ownertrust): Ditto.
7345         * import.c (import_revoke_cert): Notify the trust DB.
7346         (do_update_trust_record): Use |= to set the REVOKED bit and not &=;
7347         shame on me for this bad copy+paste introduced bug.
7348         (do_we_trust): Add trustmask to allow revoked key override to work.
7349         Chnaged are to allow return of a mofified trustlevel. Adapted the
7350         one caller.
7352         * g10.c: New options --emulate-3des-s2k-bug
7353         * passphrase.c (hash_passphrase): Implemented above.
7355         * mainproc.c (proc_tree): Check for standalone signatures.
7356         (do_check_sig): Print a notice for a standalone revocation
7357         (check_sig_and_print): Do not print an error for unchecked standalone
7358         revocations.
7360 Tue Sep 28 20:54:37 CEST 1999  Werner Koch  <wk@gnupg.de>
7362         * encode.c (encode_simple): Use new CTB when we don't have the
7363         length of the file.  This is somewhat strange as the comment above
7364         indicates that this part is actually fixed for PGP 5 - maybe I simply
7365         lost the source line, tsss.
7367         * armor.c (armor_filter): Set a flag if no OpenPGP data has been found.
7368         * verify.c (verify_signatures): Add an error helptext.
7370 Thu Sep 23 19:24:30 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
7372         * openfile.c (open_outfile): Fixed the 8dot3 handling.
7374         * passphrase.c (passphrase_to_dek): Print uid using utf8 func.
7375         * delkey.c (delete_key): Ditto.
7376         * pkclist.c (show_paths,do_edit_ownertrust,do_we_trust): Ditto
7377         (do_we_trust_pre): Ditto.
7378         * trustdb.c (print_user_id,check_uidsigs): Ditto.
7379         * revoke.c (gen_revoke,ask_revoke_sig): Ditto.
7381 Thu Sep 23 09:52:58 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
7383         * verify.c (print_file_status): New.
7384         (verify_one_file): Moved status print to th new fnc. Add error status.
7385         * status.c, status.h (STATUS_FILE_ERROR): New
7387 Wed Sep 22 10:14:17 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
7389         * openfile.c (make_outfile_name): Use case-insenstive compare for
7390         DOS systems.  Add ".pgp" to the list of know extensions.
7391         (open_outfile): For DOS systems try to replace the suffiy instead of
7392         appending it.
7394         * status.c, status.h: Add STATUS_FILE_{START,DONE}.
7395         * verify.c (verify_one_file): Emit these new stati.
7397         * sign.c (clearsign_file): Avoid duplicated Entries in the "Hash:"
7398         line.  Those headers are now only _not_ printed when there are
7399         only old-style keys _and_ all hashs are MD5.
7401 Mon Sep 20 12:24:41 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
7404         * verify.c (verify_files, ferify_one_file): New.
7405         * g10.c:  New command --verify-files
7407 Fri Sep 17 12:56:42 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
7409         * g10.c: Add UK spelling as alias for armor options ;-)
7411         * import.c (append_uid): Fixed a SEGV when there is no selfsig and
7412         no subkey.
7413         (merge_sigs): Ditto.  Removed the assertion.
7415 Wed Sep 15 16:22:17 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
7417         * g10.c: New option --entropy-dll-name
7419 Mon Sep 13 10:51:29 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
7421         * signal.c (got_fatal_signal): Print message using write(2) and
7422         only for development versions.
7424 Mon Sep  6 19:59:08 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
7426         * tdbio.c (tdbio_set_dbname): Use mkdir macro
7427         * ringedit.c (add_keyblock_resource): Ditto.
7429 Fri Sep  3 10:04:45 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
7431         * pkclist.c (build_pk_list): Skip keys set with --encrypt-to also
7432         when asking for a key.
7434         * plaintext.c (handle_plaintext): Make sure that we don't read a
7435         second EOF in the read loop for partial length packets.
7437         * mainproc.c (check_sig_and_print): print user ID as utf-8.
7439 Thu Sep  2 16:40:55 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
7441         * import.c (merge_blocks): First add new subkeys, then merge subkey
7442         certificates.
7443         (merge_sigs): Don't merge subkey signatures here.
7445 Wed Sep  1 15:30:44 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
7447         * keygen.c (ask_expire_interval): Fixed bug related to cpr_xx (tnx
7448         Francis J. Lacoste).
7450 Tue Aug 31 17:20:44 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
7452         * plaintext.c (do_hash): Hash CR,LF for a single CR.
7453         (ask_for_detached_datafile): Changed arguments to be closer to
7454         those of hash_datafiles and cleanup the code a bit.
7455         * mainproc.c (proc_tree): Workaround for pgp5 textmode detached
7456         signatures.  Changed behavior of asking for data file to be the same
7457         as with provided data files.
7459         * keylist.c (list_keyblock): Use UTF8 print functions.
7461 Mon Aug 30 20:38:33 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
7463         * import.c (chk_self_sigs): some s/log_error/log_info/ so that gpg
7464         does not return an error if a key has some invalid packets.
7466         * helptext.c: Fixed some typos and changed the way the
7467         translation works.  The english text is now the keyword for gettext
7468         and not anymore the keyword supplied to the function.  Done after
7469         some discussion with Walter who thinks this is much easier for the
7470         translators.
7472         * misc.c (disable_core_dumps): Don't do it for DOSish systems.
7474         * signal.c (signal_name): Bounds check on signum.
7476 Wed Aug  4 10:34:18 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
7478         * pubring.asc: Updated.
7480         * pkclist.c (do_we_trust_pre,check_signatures_trust): Do not print
7481         the warning about --always_trust when --quiet is used.
7483         * pkclist.c (fpr_info): New and called at several places.
7485         * parse-packet.c (dump_sig_subpkt): List revocation key contents.
7487 Mon Jul 26 09:34:46 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
7489         * pkclist.c (build_pk_list): Fixed typo in format string.
7491         * trustdb.c (create_shadow_dir): Don't translate the error string.
7493         * g10.c (main): Fixed spelling of user-id.
7494         * getkey.c (find_by_name_pk,find_by_name_sk,
7495         find_by_keyid,find_by_keyid_sk): Ditto and translate it.
7496         * import.c (mark_non_selfsigned_uids_valid,delete_inv_parts): Ditto.
7499 Mon Jul 26 01:01:39 CEST 1999  Michael Roth <mroth@nessie.de>
7501         * g10.c, options.h: New options --no-literal and --set-filesize
7503         * encode.c (encode_simple, encode_crypt): Support for the options
7504         --no-literal and --set-filesize.
7506         * sign.c (sign_file): ditto.
7508 Fri Jul 23 13:53:03 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
7511         * ringedit.c (enum_keyblocks): Removed annoying error message in cases
7512         when we have no keyring at all to enum.
7514         * getkey.c (classify_user_id): Rewrote to relax the recognition of
7515         keyIDs and fingerprints (Michael).
7517         * mainproc.c (check_sig_and_print): Print status NO_PUBKEY.
7518         (print_failed_pkenc): Print status NO_SECKEY.
7520         * import.c (mark_non_selfsigned_uids_valid): New.
7521         * g10.c: New option --allow-non-selfsigned-uid.
7523         * pkclist.c (print_fpr): New.
7524         (do_we_trust_pre): Print the fpr before asking whether to use the key
7525         anyway.
7526         (do_edit_ownertrust): Likewise.
7528 Thu Jul 22 20:03:03 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
7531         * ringedit.c (enum_keyblocks): Removed annoying error message in cases
7532         when we have no keyring at all to enum.
7534         * getkey.c (classify_user_id): Rewrote to relax the recognition of
7535         keyIDs and fingerprints (Michael).
7537         * mainproc.c (check_sig_and_print): Print status NO_PUBKEY.
7538         (print_failed_pkenc): Print status NO_SECKEY.
7540         * import.c (mark_non_selfsigned_uids_valid): New.
7541         * g10.c: New option --allow-non-selfsigned-uid.
7543 Thu Jul 15 10:15:35 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
7545         * g10.c: New options --disable-{cipher,pubkey}-algo.
7547 Wed Jul 14 19:42:08 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
7549         * status.h (STATUS_IMPORTED): New.
7550         * import.c (import): Print some status information (Holger Schurig).
7552         * g10.c (main): Make --no-greeting work again. Add a warning when
7553         --force-mds is used.
7555 Tue Jul 13 17:39:25 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
7557         * pkclist.c (do_edit_ownertrust): Changed the way help works.
7558         (build_pk_list): Implemented default recipient stuff.
7559         * g10.c: New options --default-recipient[-self]
7560         (main): Suppress greeting in most cases, entering a passphrase or
7561         a missing value is not considered to be interactive use.
7562         Merged --print-md and --print-mds; the latter is now obsolete.
7563         Changed the way --gen-random works and documented it.
7564         Changed the way --gen-prime works and add a man entry.
7565         * g10.c (MAINTAINER_OPTIONS): Removed.
7567 Mon Jul 12 18:45:57 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
7569         * keyedit.c (keyedit_menu): Add arg sign_mode and changed callers
7570         * g10.c (main): New command --lsign-key.
7572 Mon Jul 12 14:55:34 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
7574         * mainproc.c (kidlist_item): New.
7575         (release_list): Release failed pk-enc-list.
7576         (print_failed_pkenc): New
7577         (proc_encrypted): Print info about failed PK enc.
7579         * openfile.c (make_outfile_name): s/error/info/
7581         * passphrase.c (passphrase_to_dek): Return an empty passphrase when
7582         in batch mode and don't make the warning message fatal
7583         * seckey-cert.c (check_secret_key): Try only once when in batch mode.
7585         * g10.c (make_username): New.
7587 Thu Jul  8 16:21:27 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
7590         * packet.h (PKT_ring_trust): New
7591         * parse-packet.c (parse_trust): Store trust value
7592         * build-packet (build_packet): Ignore ring trust packets.
7593         * mainproc.c (add_ring_trust): New.
7594         (list_node): Print "rtv" records.
7595         * g10.c: New option --with-fingerprint.
7597         * trustdb.c (verify_own_keys): Don't insert if we are dry running
7598         (check_trust): Ditto.
7600 Wed Jul  7 13:08:40 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
7602         * Makefile.am: Support for libtool.
7604         * keygen.c (ask_expire_interval): Hack to allow for an expire date.
7606         * trustdb.c (do_update_trust_record,update_trust_record): Splitted.
7607         (check_trust_record): New.
7608         (check_trust,build_cert_tree): Check the dir record as needed.
7609         (upd_pref_record): Removed.
7610         (make_pref_record): New.
7611         (propagate_validity): Stop as soon as we have enough validity.
7613         * tbdio.c (MAX_CACHE_ENTRIES_HARD): Increased the limit.
7616 Fri Jul  2 11:45:54 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
7618         * g10.c (g10_exit): Dump random stats.
7620         * sig-check.c (check_key_signature,check_key_signature2): Enhanced
7621         version and wrapper for old function.
7622         (do_signature_check,signature_check): Ditto.
7624 Thu Jul  1 12:47:31 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
7627         * keyedit.c (show_key_with_all_names): Print a notice for disabled keys.
7628         (enable_disable_keys): Add functionality
7629         * pkclist.c (edit_ownertrust): preserve disabled state.
7630         (build_pk_list): Skip disabled keys.
7631         * trustdb.c (upd_one_ownertrust): Ditto.
7632         (build_cert_tree): Mask the ownertrust.
7633         (trust_letter): Mask the value.
7634         (do_check): Take disabled flag into account.
7636         * passphrase.c (passphrase_to_dek): Add a pubkey_algo arg and changed
7637         all callers.
7639         * g10.c (utf8_strings): 2 new options.
7641         * trustdb.c (insert_trust_record_by_pk): New, replaces the next one.
7642         (insert_trust_record): Now takes a keyblock as arg.  Changed all
7643         callers to use the appropritae function.
7645         * openfile.c (ask_outfile_name): New.
7646         * plaintext.c (handle_plaintext): Ask for filename if there is
7647         no valid syntax. Don't use fname varbatim but filter it.
7649 Tue Jun 29 21:44:25 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
7652         * trustdb.h (TRUST_FLAG_DISABLED): New.
7654         * status.c (USE_CAPABILITIES): Capabilities support (Remi).
7656         * tdbio.c : Added new fields to the DIR record.
7657         (tdbio_write_record): Fixed the update of the hash tables.
7658         (tdbio_delete_record): Drop the record from the hash tables.
7659         (drop_from_hashtbl): New.
7661         * status.c (cpr_get): Special online help mode.
7662         * helptext.c ("keyedit.cmd"): Removed.
7663         * keyedit.c (keyedit_menu): Use only help system.
7664         (enable_disable_key): New bit doies not yet work.
7666 Sat Jun 26 12:15:59 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
7669         * dearmor.c (enarmor_file): Fixed comment string.
7670         * tdbdump.c (export_ownertrust): Text fix.
7671         * tbio.c (tdbio_invalid): Ditto.
7673         * parse-packet.c (parse_key): Made temp buffer larger.
7675         * Makefile.am (install-data-local): Add missing backslashes
7677 Tue Jun 15 12:21:08 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
7679         * g10.c (main): Made iterated+salted the default S2K method.
7681         * Makefile.am (install-data-local): Use DESTDIR.
7683         * passphrase.c (passphrase_to_dek): Emit missing-passphrase while in
7684         batchmode.
7686         * parse-packet.c (parse_pubkeyenc): Fixed a SEGV.
7688 Mon Jun 14 21:18:54 CEST 1999 Michael Roth <mroth@nessie.de>
7690         * g10.c: New options --openpgp, --no-tty, --emit-version,
7691           --default-comment and --lock-multiple
7693 Thu Jun 10 14:18:23 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
7695         * free-packet.c (free_encrypted): Fixed EOF case (Remi).
7696         (free_plaintext): Ditto.
7698         * helptext.c (keyedit.delsig.unknown): New (Remi).
7699         * keyedit.c (print_and_check_one_sig): Add arg print_without_key and
7700         changed all callers to make use of it (Remi):
7702 Tue Jun  8 13:36:25 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
7704         * keylist.c (print_key_data): New and called elsewhere.
7705         * g10.c: New option --with-key-data
7707 Wed Jun  2 14:17:19 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
7709         * mainproc.c (proc_tree): Yet another bad hack to cope with
7710         broken pgp2 created detached messages in textmode.
7712 Tue Jun  1 16:01:46 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
7714         * openfile.c (make_outfile_name): New.
7715         * plaintext.c (handle_plaintext): Outputfile is now the inputfile
7716         without the suffix.
7717         * g10.c: New option --use-embedded-filename
7719 Mon May 31 19:41:10 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
7721         * g10.c (main): Fix for SHM init (Michael).
7723         * compress.c, encr-data.c, mdfilter.c,
7724           plaintext.c, free-packet.c: Speed patches (Rémi).
7726 Thu May 27 09:40:55 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
7728         * status.c (cpr_get_answer_yes_no_quit): New.
7729         * keyedit.c (menu_delsig): New.
7730         (check_all_keysigs): Splitted.
7731         (print_and_check_one_sig): New.
7733 Wed May 26 14:36:29 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
7735         * build-packet.c (build_sig_subpkt): Support large packets.
7736         * parse-packet.c (enum_sig_subpkt): Replaces parse_sig_subpkt.
7737         * mainproc.c (print_notation_data): Print all notation packets.
7738         * g10.c (add_notation_data): Add a way to specify the critical flag.
7739         (main): Add option --set-policy-url.
7740         (check_policy_url): Basic checks.
7741         * sign.c (mk_notation_and_policy): Replaces mk_notation.
7743         * parse-packet.c (can_handle_critical): Moved decision whether we can
7744         handle critical subpacket to an extra function.
7746 Tue May 25 19:50:32 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
7748         * sign.c (sign_file): Always use compression algo 1 for signed
7749         onyl file becuase we can´ be sure the the verifier supports other
7750         algorithms.
7752         * build-packet.c (build_sig_subpkt): Support for notation data.
7753         * sign.c (sign_file,clearsign_file,make_keysig_packet): Ditto.
7754         (mk_notation): New.
7755         * g10.c (add_notation_data): New and add option -N
7756         * mainproc.c (print_notation_data): New.
7757         (check_sig_and_print): Print any notation data of the signed text.
7759 Sun May 23 14:20:22 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
7761         * pkclist.c (check_signatures_trust): Print a warning and return
7762         immediateley if opt.always_trust is true.
7764         * g10.c (main): Corrected handling of no-default-keyring
7766         * pkclist.c (algo_available): Disable Twofish until we have settled
7767         how to do the MDC.
7769         * hkp.c: Disable everything for mingw32
7771 Sat May 22 22:47:26 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
7773         * mainproc.c (check_sig_and_print): Add sig creation time to the
7774         VALIDSIG status output. Add more info to the ERRSIG output.
7775         * sig-check.c (signature_check): Add sig time after epoch to SIG_ID.
7777         * import.c (import_one): Merge duplicate user IDs.
7778         (collapse_uids): New.
7779         * kbnode.c (move_kbnode): New.
7780         (remove_kbnode): New.
7781         * keyedit.c (keyedit_menu): Call collapse_uids.
7783         * g10.c: new option --logger-fd.
7785         * import.c: s/log_*_f/log_*/
7787 Thu May 20 14:04:08 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
7789         * misc.c (pull_in_libs): do the volatile only for gcc
7791         * sig-check (signature_check): Emit SIG_iD only for classes 0 and 1.
7793         * armor.c (armor_filter): Add detection of PGP2 created clearsigs.
7794         (fake_packet): A tab is not a WS for pgp2 - handle this.
7795         * textfilter.c (len_without_trailing_chars): New.
7796         (copy_clearsig_text): Add pgp2mode arg.
7797         * sign.c (clearsign_file): pass old_style to the above fnc.
7800 Wed May 19 16:04:30 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
7802         * g10.c: New option --interactive.
7804         * mainproc.c (proc_plaintext): Add workaround for pgp2 bug
7805         (do_check_sig): Ditto.
7806         (proc_tree): Ditto.
7807         * plaintext.c (do_hash): Ditto.
7808         (hash_datafiles): Ditto, add an arg, changed all callers.
7809         * mdfilter.c (md_filter): Add support for the alternate hash context.
7811 Mon May 17 21:54:43 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
7813         * parse-packet.c (parse_encrypted): Support for PKT_ENCRYPTED_MDC.
7814         * build-packet.c (do_encrypted_mdc): Ditto.
7815         * cipher.c (write_header): Add mdc hashing.
7816         (cipher_filter): write out the hash.
7817         * mainproc.c (do_proc_packets): Add PKT_ENCRYPTED_MDC.
7818         * encr-data.c (decrypt_data): Add mdc hashing.
7819         (mdc_decode_filter): New.
7821         * parse-packet.c (parse_sig_subpkt): Fixed stupid bug for subpkt
7822         length calculation
7823         (parse_signature): Fixed even more stupid bug.
7825 Sat May  8 19:28:08 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
7827         * build-packet.c (do_signature): Removed MDC hack.
7828         * encode.c (encode_crypt_mdc): Removed.
7829         * mainproc.c (do_check_sig): Removed MDC hack.
7830         (check_sig_and_print): Ditto.
7831         * parse-packet.c (parse_signature): Ditto.
7832         * sig-check.c (mdc_kludge_check): Ditto.
7833         * free-packte.c (copy_signature, free_seckey_enc): Ditto.
7835         * parse-packet.c (parse_signature,parse_key): Store data of
7836         unknown algorithms with mpi_set_opaque inseatd of the old
7837         faked data stuff.
7838         (read_rest): Removed.
7839         (read_rest2): Renamed to read_rest
7840         * build-packet.c (write_fake_data): Use mpi_get_opaque.
7841         * free-packet.c (cp_fake_data): Removed and cahnged all callers
7842         to use mpi_copy.
7843         (free_pubkey_enc,free_seckey_enc,release_public_key_parts,
7844          release_secret_key_parts): Use mpi_free for opaque data.
7846 Thu May  6 14:18:17 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
7848         * trustdb.c (check_trust): Check for revoked subkeys.
7849         * pkclist.c (do_we_trust): Handled revoked subkeys.
7850         (do_we_trust_pre): Ditto.
7851         (check_signatures_trust): Ditto.
7853         * build-packet.c (hash_public_key): Fix for ancient g10 keys.
7855         * mainproc.c (do_proc_packets): Return EOF if no data has been read.
7856         * g10.c (main): Catch errors for default operation.
7858 Thu Apr 29 12:29:22 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
7860         * sign.c (sign_file): Fixed hashing in case of no subpackets.
7861         (clearsign_file): Ditto.
7862         (make_keysig_packet): Ditto.
7864 Wed Apr 28 13:03:03 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
7866         * keyedit.c (keyedit_menu): Add new command revkey.
7867         * (menu_revkey): New.
7870 Mon Apr 26 17:48:15 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
7872         * parse-packet.c (parse_signature): Add the MDC hack.
7873         * build-packet.c (do_signature): Ditto.
7874         * free-packet.c (free_seckey_enc,copy_signature,cmp_signatures): Ditto.
7875         * mainproc.c (do_check_sig): Ditto.
7876         * sig-check.c (mdc_kludge_check): New.
7877         * encode.c (encrypt_mdc_file): New.
7879         * keyedit.c (check_all_keysigs): List revocations.
7880         * (menu_revsig): New.
7881         * sign (make_keysig_packet): Support for class 0x30.
7883 Sun Apr 18 20:48:15 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
7885         * pkclist.c (select_algo_from_prefs): Fixed the case that one key
7886         has no preferences (Remi Guyomarch).
7888         keylist.c (list_keyblock): ulti_hack to propagate trust to all uids.
7890 Sun Apr 18 10:11:28 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
7892         * seckey-cert.c (do_check): Use real IV instead of a 0 one, so that
7893         it works even if the length of the IV doesn't match the blocksize.
7894         Removed the save_iv stuff.
7895         (protect_secret_key): Likewise.  Create the IV here.
7896         * packet.h (PKT_secret_key): Increased size of IV field and add a
7897         ivlen field.
7898         * parse-packet.c (parse_key): Use the len protect.ivlen.
7899         * build-packet.c (do_secret_key). Ditto.
7901         * getkey.c (key_byname): Close keyblocks.
7903         * Makefile.am (gpgm): Removed this
7904         * g10.c: Merged gpg and gpgm
7906         * import.c (import): Utilize option quiet.
7907         * tdbio.c (tdbio_set_dbname): Ditto.
7908         * ringedit.c (add_keyblock_resource,keyring_copy): Ditto.
7910         * keyedit.c (sign_uids): Add some batch support.
7912         * g10.c (main): add call to tty_batchmode.
7914 Fri Apr  9 12:26:25 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
7916         * status.c (write_status_text): Some more status codes.
7917         * passphrase_to_dek (passphrase_to_dek): add a status code.
7918         * seckey_cert.c (check_secret_key): Likewise.
7920         * encr-data.c (decrypt_data): Reverse the last changes
7921         * cipher.c (write_header): Ditto.
7923         * parse-packet.c (parse_key): Dropped kludge for ancient blowfish mode.
7925 Thu Apr  8 09:35:53 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
7927         * mainproc.c (proc_encrypted): Add a new status output
7928         * passphrase.c (passphrase_to_dek): Ditto.
7929         * status.h status.c: Add new status tokens.
7931 Wed Apr  7 20:51:39 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
7933         * encr-data.c (decrypt_data): Fixes for 128 bit blocksize
7934         * cipher.c (write_header): Ditto.
7935         * seckey-cert.c (do_check): Ditto.
7936         (protect_secret_key). Ditto.
7937         * misc.c (print_cipher_algo_note): Twofish is now a standard algo.
7939         * keygen.c (do_create): Fixed spelling (Gaël Quéri)
7940         (ask_keysize): Only allow keysizes up to 4096
7942         * ringedit.c (add_keyblock_resource): chmod newly created secrings.
7944         * import.c (delete_inv_parts): Fixed accidently deleted subkeys.
7946 Tue Apr  6 19:58:12 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
7948         * armor.c: Removed duped include (John Bley)
7949         * mainproc.c: Ditto.
7951         * build-packet.c (hash_public_key): Fixed hashing of the header.
7953         * import.c (delete_inv_parts): Allow import of own non-exportable sigs.
7955 Sat Mar 20 13:59:47 CET 1999  Werner Koch  <wk@isil.d.shuttle.de>
7957         * armor.c (fake_packet): Fix for not not-dash-escaped
7959 Sat Mar 20 11:44:21 CET 1999  Werner Koch  <wk@isil.d.shuttle.de>
7961         * g10.c (main): Added command --recv-keys
7962         * hkp.c (hkp_import): New.
7964 Wed Mar 17 13:09:03 CET 1999  Werner Koch  <wk@isil.d.shuttle.de>
7966         * trustdb.c (check_trust): add new arg add_fnc and changed all callers.
7967         (do_check): Ditto.
7968         (verify_key): Ditto.
7969         (propagate_validity): Use the new add_fnc arg.
7970         (print_user_id): Add the FILE arg.
7971         (propagate_ownertrust): New.
7972         * pkclist.c (add_ownertrust_cb): New and changed the add_ownertrust
7973         logic.
7975         * getkey.c (get_keyblock_bylid): New.
7976         * trustdb.c (print_uid_from_keyblock): New.
7977         (dump_tn_tree_with_colons): New.
7978         (list_trust_path): Add colon print mode.
7980         * trustdb.c (insert_trust_record): Always use the primary key.
7982         * encode.c (encode_simple): Added text_mode filter (Rémi Guyomarch)
7983         (encode_crypt): Ditto.
7985         * mainproc.c (proc_pubkey_enc): Added status ENC_TO.
7986         * armor.c (armor_filter): Added status NODATA.
7987         * passphrase.c (passphrase_to_dek): Always print NEED_PASSPHRASE
7988         * seckey_cert.c (check_secret_key): Added BAD_PASS status.
7990         * g10.c (main): Set g10_opt_homedir.
7992 Sun Mar 14 19:34:36 CET 1999  Werner Koch  <wk@isil.d.shuttle.de>
7994         * keygen.c (do_create): Changed wording of the note (Hugh Daniel)
7996 Thu Mar 11 16:39:46 CET 1999  Werner Koch  <wk@isil.d.shuttle.de>
7998         * tdbdump.c: New
8000         * trustdb.c (walk_sigrecs,do_list_sigs,list_sigs,
8001         list_records,list_trustdb,export_ownertrust,import_ownertrust): Moved
8002         to tdbdump.c
8003         (init_trustdb): renamed to setup_trustdb.  Changed all callers.
8004         (do_init_trustdb): renamed to init_trustdb().
8005         * trustdb.c (die_invalid_db): replaced by tdbio_invalid.
8006         * tdbio.c (tdbio_invalid): New.
8008         * import.c (delete_inv_parts): Skip non exportable signatures.
8009         * keyedit.c (sign_uid_mk_attrib): New.
8010         (sign_uids): Add the local argument.
8011         (keyedit_menu): New "lsign" command.
8012         * trustdb.c (register_trusted_key): Removed this and all related stuff.
8013         * g10.c (oTrustedKey): Removed option.
8015         * tdbio.h (dir.valcheck): New trustdb field.
8016         * tdbio.c: Add support for this field
8017         (tdbio_read_modify_stamp): New.
8018         (tdbio_write_modify_stamp): New.
8019         * trustdb.c (do_check): Check against this field. Removed cache update.
8020         (verify_key): Add cache update.
8021         (upd_uid_record): Some functional changes.
8022         (upd_cert_record): Ditto
8024 Wed Mar 10 11:26:18 CET 1999  Werner Koch  <wk@isil.d.shuttle.de>
8026         * keylist.c (list_keyblock): Fixed segv in uid. Print 'u' as
8027         validity of sks.
8029 Mon Mar  8 20:47:17 CET 1999  Werner Koch  <wk@isil.d.shuttle.de>
8031         * getkey.c (classify_user_id): Add new mode 12 (#<lid>).
8033         * seckey-cert.c (check_secret_key): replaced error by info.
8035         * trustdb.c (query_trust_info): Add another arg, changed all callers.
8036         (check_trust): Ditto.
8037         (do_check): Ditto.
8038         (verify_key): Handle namehash.
8039         * keylist.c (list_keyblock): print trust info for user ids.
8041         * sig-check.c (signature_check): Add sig-created to status output.
8043 Tue Mar  2 16:44:57 CET 1999  Werner Koch  <wk@isil.d.shuttle.de>
8045         * textfilter.c (copy_clearsig_text): New.
8046         (clearsign): Removed.
8047         * sign.c (clearsign_file): does not use textfiler anymore.
8049         * keygen.c (ask_user_id): print a note about the used charset.
8051 Tue Mar  2 10:38:42 CET 1999  Werner Koch  <wk@isil.d.shuttle.de>
8053         * sig-check.c (signature_check): sig-id now works for all algos.
8055         * armor.c (armor_filter): Fixed armor bypassing.
8057 Sun Feb 28 19:11:00 CET 1999  Werner Koch  <wk@isil.d.shuttle.de>
8059         * keygen.c (ask_user_id): Don't change the case of email addresses.
8060         (has_invalid_email_chars): Adjusted.
8062         * keylist.c (list_one): Really list serect keys (Remi Guyomarch)
8064         * keyedit.c (menu_select_uid): Add some braces to make egcs happy.
8065         (menu_select_key): Ditto.
8067         * mainproc.c (do_proc_packets): List sym-enc packets (Remi Guyomarch)
8069 Fri Feb 26 17:55:41 CET 1999  Werner Koch  <wk@isil.d.shuttle.de>
8071         * pkclist.c (build_pk_list): Return error if there are no recipients.
8073         * sig-check.c (signature_check): New signature id feature.
8074         * armor.c (make_radic64_string): New.
8076         * mainproc.c (proc_pubkey_enc): early check for seckey availability.
8078         * pkclist.c (do_we_trust_pre): print user id before asking.
8080         * ringedit.c (add_keyblock_resource,get_keyblock_handle): Cleaner
8081         handling of default resource.
8084 Thu Feb 25 18:47:39 CET 1999  Werner Koch  <wk@isil.d.shuttle.de>
8086         * pkclist.c (algo_available): New.
8087         (select_algo_from_prefs): Check whether algo is available.
8089         * ringedit.c (keyring_copy): Take care of opt.dry_run.
8090         (do_gdbm_store): Ditto.
8091         * openfile.c (open_outfile). Ditto.
8092         (copy_options_file): Ditto.
8093         * trustdb.c (update_trustdb): Ditto.
8094         (clear_trust_checked_flag): Ditto.
8095         (update_trust_record): Ditto.
8096         (insert_trust_record): Ditto.
8098 Wed Feb 24 11:07:27 CET 1999  Werner Koch  <wk@isil.d.shuttle.de>
8100         * keylist.c (secret_key_list): Now really list the secret key.
8102         * trustdb.c (do_init_trustdb): New. Init is now deferred.
8104 Mon Feb 22 20:04:00 CET 1999  Werner Koch  <wk@isil.d.shuttle.de>
8106         * getkey.c (lookup_sk): Return G10ERR_NO_SECKEY and not x_PUBKEY.
8108 Fri Feb 19 15:49:15 CET 1999  Werner Koch  <wk@isil.d.shuttle.de>
8110         * pkclist.c (select_algo_from_prefs): retrieve LID if not there.
8112         * armor.c (fake_packet): Replaced ugly lineending handling.
8114         * g10.c (oNoEncryptTo): New.
8115         * pkclist.c (build_pk_list): Implemented this option.
8117         * g10.c (main): Greeting is now printed to stderr and not to tty.
8118         Use add_to_strlist() instead of direct coding.
8120         * import.c (import): Use iobuf_push_filter2.
8122         * mainproc.c (check_sig_and_print): Print all user ids
8123         for good signatures.
8124         * getkey.c (get_pubkeyblock): New.
8126         * import.c (chk_self_sigs): Fixed SEGV for unbounded class 0x18 keys.
8127         (delete_inv_parts): Delete special marked packets.
8129 Tue Feb 16 14:10:02 CET 1999  Werner Koch  <wk@isil.d.shuttle.de>
8131         * g10.c (main): New option --encrypt-to
8133         * pkclist.c (build_pk_list): Implemented encrypt-to.
8135         * parse-packet.c (parse_user_id): Removed the hack to work with
8136         utf-8 strings.
8138         * g10.c (main): Install lockfile cleanup handler.
8139         * tdbio.c (cleanup): Removed: this is now handled by dotlock.
8141 Sat Feb 13 14:13:04 CET 1999  Werner Koch  <wk@isil.d.shuttle.de>
8143         * tdbio.c (tdbio_set_dbname): Init lockhandle for a new trustdb
8145 Wed Feb 10 17:15:39 CET 1999  Werner Koch  <wk@isil.d.shuttle.de>
8147         * g10.c (main): check for development version now in configure
8149         * tdbio.c (tdbio_write_record): Add uid.validity
8150         (tdbio_read_record) : Ditto.
8151         (tdbio_dump_record) : Ditto.
8153         * keygen.c (keygen_add_std_prefs): Replaced Blowfish by Twofish,
8154         removed MD5 and Tiger.
8155         * pubkey-enc.c (get_it): Suppress warning about missing Blowfish
8156         in preferences in certain cases.
8158         * ringedit.c (lock_rentry,unlock_rentry): New.
8160         * getkey.c (key_byname): Pass ret_kb down to lookup_xx.
8162         * armor.c (armor_filter): No output of of empty comment lines.
8163         Add option --no-version to suppress the output of the version string.
8165         * getkey.c: Release the getkey context for auto context variables.
8167 Sun Jan 24 18:16:26 CET 1999  Werner Koch  <wk@isil.d.shuttle.de>
8169         * getkey.c: Changed the internal design to allow simultaneous
8170         lookup of multible user ids
8171         (get_pubkey_bynames): New.
8172         (get_seckey_bynames): New.
8173         (get_seckey_next): New.
8174         (get_seckey_end): New.
8175         * keylist.c (list_one): Use the new functions.
8177         * keylist.c (list_keyblock): add a newline for normal listings.
8179         * g10.c (--recipient): New option name to replace --remote-user
8182 Wed Jan 20 18:59:49 CET 1999  Werner Koch  <wk@isil.d.shuttle.de>
8184         * textfilter.c: Mostly rewritten
8185         * plaintext.c (handle_plaintext): Use now text_filter semantics.
8187 Tue Jan 19 19:34:58 CET 1999  Werner Koch  <wk@isil.d.shuttle.de>
8189         * export.c (export_pubkeys_stream): New.
8190         (do_export_stream): New.
8191         * g10.c (aSendKeys): New command.
8192         * hkp.c (hkp_export): New.
8194         * compress.c (do_uncompress): Hack for algo 1 and 1.1.3
8196 Sun Jan 17 11:04:33 CET 1999  Werner Koch  <wk@isil.d.shuttle.de>
8198         * textfilter.c (text_filter): Now uses iobuf_read_line().
8199         (read_line): Removed.
8201         * armor.c (trim_trailing_spaces): Removed and replaced
8202         by trim_trailing_ws from libutil
8204 Sat Jan 16 12:03:27 CET 1999  Werner Koch  <wk@isil.d.shuttle.de>
8206         * hkp.c (hkp_ask_import): Use only the short keyid
8208 Sat Jan 16 09:27:30 CET 1999  Werner Koch  <wk@isil.d.shuttle.de>
8210         * import.c (import_key_stream): New
8211         (import): New, moved most of import_keys here.
8212         * g10.c: New option --keyserver
8213         * mainproc.c (check_sig_and_print): Hook to import a pubkey.
8215         * pref.c pref.h : Removed
8217         * hkp.c hkp.h: New
8219 Wed Jan 13 14:10:15 CET 1999  Werner Koch  <wk@isil.d.shuttle.de>
8221         * armor.c (radix64_read): Print an error if a bad armor was detected.
8223 Wed Jan 13 12:49:36 CET 1999  Werner Koch  <wk@isil.d.shuttle.de>
8225         * armor.c (radix64_read): Now handles malformed armors produced
8226         by some buggy MUAs.
8228 Tue Jan 12 11:17:18 CET 1999  Werner Koch  <wk@isil.d.shuttle.de>
8230         * ringedit.c (find_keyblock_bysk): New.
8232         * skc_list.c (is_insecure): New.
8233         (build_sk_list): usage check for insecure keys.
8235         * import.c (chk_self_sigs): Add handling for subkeys.
8236         (delete_inv_parts): Skip unsigned subkeys
8238         * sig-check.c (do_check): Print info if the signature is older
8239         than the key.
8240         * keygen.c (generate_subkeypair): Fail on time warp.
8241         * sign.c (do_sign): Ditto.
8243 Sun Jan 10 15:10:02 CET 1999  Werner Koch  <wk@isil.d.shuttle.de>
8245         * armor.c (fake_packet): Fixed not-dash-escaped bug.
8247 Sat Jan  9 16:02:23 CET 1999  Werner Koch  <wk@isil.d.shuttle.de>
8249         * sig-check.c (do_check): Output time diff on error
8251         * status.c (STATUS_VALIDSIG): New.
8252         (is_status_enabled): New.
8253         * mainproc.c (check_sig_and_print): Issue that status message.
8255         * plaintext.c (special_md_putc): Removed
8257         * armor.c (armor_filter): print error for truncated lines.
8259         * free-packet.c (free_encrypted): Revomed call to set_block_mode.
8260         (free_plaintext): Ditto.
8262 Thu Jan  7 18:00:58 CET 1999  Werner Koch  <wk@isil.d.shuttle.de>
8264         * pkclist.c (add_ownertrust): Fixed return value.
8266         * encr-data.c (decrypt_data): Disabled iobuf_set_limit and
8267         iobuf_pop_filter stuff.
8268         * compress.c (handle_compressed): Disabled iobuf_pop_filter.
8270         * packet.h (PKT_secret_key): Add is_primary flag.
8271         * parse-packet.c (parse_key): Set this flag.
8272         * passphrase.c (passphrase_to_dek): Kludge to print the primary
8273         keyid - changed the API: keyid must now hold 2 keyids.
8274         * getkey.c (get_primary_seckey): New.
8275         * seckey-cert.c (do_check): pass primary keyid to passphrase query
8277         * tbdio.c (open_db): removed the atexit
8278         (tdbio_set_dbname): and moved it to here.
8280         * armor.c: Rewrote large parts.
8282 Tue Dec 29 19:55:38 CET 1998  Werner Koch  <wk@isil.d.shuttle.de>
8284         * revoke.c (gen_revoke): Removed compression.
8286         * pkclist.c (do_we_trust_pre): special check for revoked keys
8288         * trustdb.c (update_trust_record): Fixed revoke flag.
8290 Tue Dec 29 14:41:47 CET 1998  Werner Koch  <wk@isil.d.shuttle.de>
8292         * misc.c (disable_core_dumps): Check for EINVAL (Atari)
8294         * getkey (merge_one_pk_and_selfsig): Fixed search of expiredate.
8295         (merge_keys_and_selfsig): Ditto.
8297         * free-packet.c (cmp_public_keys): cmp expire only for v3 packets
8298         (cmp_secret_keys): Ditto.
8299         (cmp_public_secret_key): Ditto.
8301 Wed Dec 23 17:12:24 CET 1998  Werner Koch  <wk@isil.d.shuttle.de>
8303         * armor.c (find_header): Reset not_dashed at every header
8305 Wed Dec 23 13:18:14 CET 1998  Werner Koch  <wk@isil.d.shuttle.de>
8307         * pkclist.c (add_ownertrust): Refresh validity values.
8309         * trustdb.c (enum_cert_paths_print): New arg refresh.
8311         * ringedit.c: Fixed problems fix keyrings
8312         * parse-packet.c (dbg_parse_packet): New debug functions.
8314         * getkey.c (getkey_disable_caches): New.
8315         * import.c (import_keys): Disable caches.
8317 Thu Dec 17 18:31:15 CET 1998  Werner Koch  <wk@isil.d.shuttle.de>
8319         * misc.c (trap_unaligned): Only for glibc 1
8321         * sign.c (write_dash_escaped): Now escapes "From " lines
8322         * g10.c: New option --escape-from-lines
8324         * trustdb.c (sort_tsl_list): New
8325         (list_trust_path): Now prints sorted list.
8326         (enum_cert_paths): Likewise.
8327         (enum_cert_paths_print): New.
8328         (print_paths): New printing format.
8329         * pkclist.c (add_ownertrust): New arg quit.
8330         (edit_ownertrust): New quit selection and does not query
8331         the recipients ownertrust anymore.
8332         (add_ownertrust): Print the ceritficate path.
8335 Mon Dec 14 21:18:49 CET 1998  Werner Koch  <wk@isil.d.shuttle.de>
8337         * parse-packet.c (parse_signature): Now checks for critical bit
8338         (parse_sig_subpkt): Splitted.
8339         (parse_one_sig_subpkt): New.
8340         * sig-check.c (do_check): handle critical bit.
8342 Sun Dec 13 14:10:56 CET 1998  Werner Koch  <wk@isil.d.shuttle.de>
8344         * pcklist.c (select_algo_from_prefs): Preferences should
8345         now work (lost the != ? )
8347 Thu Dec 10 20:15:36 CET 1998  Werner Koch  <wk@isil.d.shuttle.de>
8349         * ringedit.c (gdbm_store): Fix for inserts
8351         * g10.c (main): New option --export-all
8352         * export.c (export_pubkeys): New arg.
8353         (do_export): Now may skip old keys.
8355         * status.c: Minor patches for Sun's cc
8357         * keygen.c (ask_algo): Disabled v3 ElGamal choice, rearranged
8358          the numbers.  Add a warning question when a sign+encrypt key
8359          is selected.
8361         * g10.c (do_not_use_RSA): Removed.
8362         * misc.c (print_pubkey_algo_note): New as replacement for the
8363         do_not_use_RSA() and chnaged all callers.
8364         (print_cipher_algo_note): New.
8365         (print_hash_algo_note): New.
8367         * cipher.c (write_header): Add a call to print_cipher_algo_note.
8368         * seckey-cert.c (protect_secret_key): Ditto
8369         * sign.c (do_sign): Add a call to print_digest_algo_note.
8371         * getkey.c (get_long_user_id_string): New.
8372         * mainproc.c (check_sig_and_print): Changed the format of the
8373         status output.
8375         * encrypt.c (write_pubkey_enc_from_list): print used symmetric cipher.
8377         * pkclist.c (do_we_trust): Changed a message.
8379 Wed Dec  9 13:41:06 CET 1998  Werner Koch  <wk@isil.d.shuttle.de>
8381         * misc.c (trap_unaligned) [ALPHA]: Only if UAC_SIGBUS is defined.
8383         * sign.c (write_dash_escaped): Add the forgotten patch by Brian Moore.
8385         * compress.c (do_uncompress): Fixed the inflating bug.
8388 Tue Dec  8 13:15:16 CET 1998  Werner Koch  <wk@isil.d.shuttle.de>
8390         * trustdb.c (upd_uid_record): Now uses the newest self-signature
8391         (insert_trust_record): Now calls update with recheck set to true.
8392         (register_trusted_key): New.
8393         (verify_own_keys): Enhanced by list of trusted keys.
8395         * g10.c (main): Print a warning when a devel version is used.
8396         (main): New option --trusted-key
8398         * import.c (merge_blocks): Fixed merging of new user ids and
8399         added merging of subkeys.
8400         (append_uid): Ditto.
8401         (merge_keysig): New.
8402         (append_key): New.
8403         * getkey.c (merge_one_pk_and_selfsig): Get the expiration time
8404         from the newest self-signature.
8405         (merge_keys_and_selfsig): Ditto.
8407         * free-packet.c (cmp_secret_key): New.
8410 Fri Nov 27 21:37:41 CET 1998  Werner Koch  <wk@isil.d.shuttle.de>
8412         * g10.c: New option --lock-once
8413         * tdbio.c (open_db): Add an atexit
8414         (cleanup): New.
8415         (tdbio_sync): Add locking.
8416         (tdbio_end_transaction): Ditto.
8417         (put_record_into_cache): Ditto.
8418         * ringedit.c (keyring_copy): Ditto.
8419         (cleanup): New.
8420         (add_keyblock_resource): Add an atexit.
8422 Fri Nov 27 15:30:24 CET 1998  Werner Koch  <wk@isil.d.shuttle.de>
8424          * armor.c (find_header): Another fix for clearsigs.
8426 Fri Nov 27 12:39:29 CET 1998  Werner Koch  <wk@isil.d.shuttle.de>
8429         * status.c (display_help): Removed.
8430         * helptext.c: New and removed the N_() from all cpr_gets.
8433 Fri Nov 20 16:54:52 1998  Werner Koch  (wk@isil.d.shuttle.de)
8435         * g10.c (main): New option --not-dash-escaped
8436         * sign.c (write_dashed_escaped): Ditto.
8437         * armor.c (find_header): Support for NotDashEscaped header.
8439         * getkey.c: print "disabled cache.." only if verbose is used.
8441 Thu Nov 19 07:17:31 1998  Werner Koch  <werner.koch@guug.de>
8443         * parse-packet.c (dump_sig_subpkt): Fixed expire listing
8444         * getkey.c (merge_keys_and_selfsig): Fixed expire calculation.
8445         (merge_one_pk_and_selfsig): Ditto.
8446         * keyedit.c (menu_expire). Ditto.
8447         * keygen.c (keygen_add_key_expire): Ditto.
8448         (ask_expire_interval): New and changed all local function to use
8449         this instead.
8450         (keygen_add_key_expire): Opaque should now be a public key;
8451         changed all callers.
8453         * parse.packet.c (parse): use skip_rest to skip packets.
8455         * keyedit.c (keyedit_menu): New arg for cmdline cmds.
8457 Wed Nov 18 20:33:50 1998  Werner Koch  (wk@isil.d.shuttle.de)
8459         * trustdb.c (check_trustdb): Now rechecks all gived userids.
8460         (collect_paths): Some fixes.
8461         (upd_pref_records): Skips empty items, evaluate all items.
8463         * parse-packet.c (dump_sig_subpkt): Better listing of prefs.
8464         (skip_packet): Now knows about marker packet
8466         * g10.c: removed cmd "--edit-sig".
8468         * pubring.asc: Updated.
8470 Sat Nov 14 14:01:29 1998  Werner Koch  (wk@isil.d.shuttle.de)
8472         * g10.c (main): Changed syntax of --list-trust-path
8473         * trustdb.c (list_trust_path): Replaced max_depth by
8474         opt.max_cert_depth
8476 Fri Nov 13 07:39:58 1998  Werner Koch  <werner.koch@guug.de>
8478         * trustdb.c (collect_paths): Removed a warning message.
8479         (enum_trust_web): Removed.
8480         (enum_cert_paths): New.
8481         * pkclist.c (add_ownertrust): Changed to use enum_cert_paths.
8482         (edit_ownertrust): Now list ceritficates on request.
8483         (show_paths): New.
8485 Wed Nov 11 18:05:44 1998  Werner Koch  <werner.koch@guug.de>
8487         * g10.c (main): New option --max-cert-depth
8488         * tdbio.h: add new fields to ver and dir record.
8489         * tdbio.c: read/write/dump of these fields.
8490         (tdbio_db_matches_options): New.
8491         * trustdb.c: replaced MAC_CERT_DEPTH by opt.max_cert_depth.
8492         (do_check): cache validity and changed other functions
8493         to reset the cached value.
8495         * keylist.c (list_one): Now lists the ownertrust.
8496         * mainproc.c (list_node): Ditto.
8498 Tue Nov 10 10:08:59 1998  Werner Koch  (wk@isil.d.shuttle.de)
8500         * g10.c (g10_exit): Now looks at the new g10_errors_seen.
8501         * mainproc.c (check_sig_and_print): Sets g10_errors_seen.
8503         * *.c : i18n many more strings.
8505         * ringedit.c (locate_keyblock_by_keyid): Add HAVE_LIBGDBM
8506         (locate_keyblock_by_fpr): Ditto.
8508         * g10.c (main): removed unsused "int errors".
8509         (main): Add new option --charset.
8511         * g10.c (main): special message for the unix newbie.
8513 Mon Nov  9 07:17:42 1998  Werner Koch  <werner.koch@guug.de>
8515         * getkey.c (finish_lookup): Kludge to prefere algo 16.
8517         * trustdb.c (new_lid_table): Clear cached item.
8519         * status.c (cpr_get_utf8): New.
8520         * pkclist.c (build_pk_list): Uses this.
8522 Sun Nov  8 17:20:39 1998  Werner Koch  (wk@isil.d.shuttle.de)
8524         * mainproc.c (check_sig_and_print): Why did I use strlen()-1
8525         in the printf? - This truncated the TZ.
8527 Sat Nov  7 15:57:28 1998  me,,,  (wk@tobold)
8529         * getkey.c (lookup): Changes to support a read_next.
8530         (get_pubkey): Fixed a memory leak.
8532         * keylist.c (list_one): Now lists all matching user IDs.
8534 Tue Nov  3 16:19:21 1998  Werner Koch  (wk@isil.d.shuttle.de)
8536         * keygen.c (ask_user_id): Now converted to UTF-8
8538         * g10.c (main): Kludge for pgp clearsigs and textmode.
8540 Fri Oct 30 16:40:39 1998  me,,,  (wk@tobold)
8542         * signal.c (block_all_signals): New.
8543         (unblock_all_signals): New
8544         * tdbio.c (tdbio_end_transaction): Now blocks all signals.
8546         * trustdb.c (new_lid_table): Changed the representation of the
8547         former local_lid_info stuff.
8549         * trustdb.c (update_trust_record): Reorganized the whole thing.
8550         * sig-check.c (check_key_signature): Now handles class 0x28
8553 Wed Oct 28 18:56:33 1998  me,,,  (wk@tobold)
8555         * export.c (do_export): Takes care of the exportable sig flag.
8557 Tue Oct 27 14:53:04 1998  Werner Koch  (wk@isil.d.shuttle.de)
8559         * trustdb.c (update_trust_record): New "fast" parameter.
8561 Sun Oct 25 19:32:05 1998  Werner Koch  (wk@isil.d.shuttle.de)
8563         * openfile.c (copy_options_File): New.
8564         * ringedit.c (add_keyblock_resource): Creates options file
8565         * tdbio.c (tdbio_set_dbname): Ditto.
8567 Sat Oct 24 14:10:53 1998  brian moore <bem@cmc.net>
8569         * mainproc.c (proc_pubkey_enc): Don't release the DEK
8570         (do_proc_packets): Ditto.
8572 Fri Oct 23 06:49:38 1998  me,,,  (wk@tobold)
8574         * keyedit.c (keyedit_menu): Comments are now allowed
8576         * trustdb.c: Rewrote large parts.
8579 Thu Oct 22 15:56:45 1998  Michael Roth  (mroth@nessie.de)
8581         * encode.c: (encode_simple): Only the plain filename without
8582         a given directory is stored in generated packets.
8583         (encode_crypt): Ditto.
8585         * sign.c: (sign_file) Ditto.
8588 Thu Oct 22 10:53:41 1998  Werner Koch  (wk@isil.d.shuttle.de)
8590         * trustdb.c (update_trust_record): Add new optional arg.
8592         * import.c (import_keys): Add statistics output
8593         * trustdb.c (update_trustdb): Ditto.
8594         (insert_trustdb): Ditto.
8596         * tdbio.c (tdbio_begin_transaction): New.
8597         (tdbio_end_transaction): New.
8598         (tdbio_cancel_transaction): New.
8600         * g10.c (main): New option --quit.
8602         * trustdb.c (check_hint_sig): No tests for user-id w/o sig.
8603         This caused an assert while checking the sigs.
8605         * trustdb.c (upd_sig_record): Splitted into several functions.
8607         * import.c (import_keys): New arg "fast".
8608         * g10.c (main): New command --fast-import.
8610 Wed Oct 21 18:19:36 1998  Michael Roth <mroth@nessie.de>
8612         * ringedit.c (add_keyblock_resource): Directory is now created.
8613         * tdbio.c (tdbio_set_dbname): New info message.
8615 Wed Oct 21 11:52:04 1998  Werner Koch  (wk@isil.d.shuttle.de)
8617         * trustdb.c (update_trustdb): released keyblock in loop.
8619         * keylist.c (list_block): New.
8620         (list_all): Changed to use list_block.
8622         * trustdb.c: Completed support for GDBM
8624         * sign.c (only_old_style): Changed the way force_v3 is handled
8625         (sign_file): Ditto.
8626         (clearsign_file): Ditto.
8628         * keygen.c (has_invalid_email_chars): Splitted into mailbox and
8629         host part.
8631         * keylist.c (list_one): Add a merge_keys_and_selfsig.
8632         * mainproc.c (proc_tree): Ditto.
8634 Sun Oct 18 11:49:03 1998  Werner Koch  (wk@isil.d.shuttle.de)
8636         * sign.c (only_old_style): Add option force_v3_sigs
8637         (sign_file): Fixed a bug in sig->version
8638         (clearsign_file): Ditto.
8640         * parse-packet.c (dump_sig_subpkt): New
8642         * keyedit.c (menu_expire): New.
8643         * free-packet.c (cmp_signatures): New
8646 Sat Oct 17 10:22:39 1998  Werner Koch  (wk@isil.d.shuttle.de)
8648         * armor.c: changed output line length from 72 to 64.
8650         * keyedit.c (fix_keyblock): New.
8652 Fri Oct 16 10:24:47 1998  Werner Koch  (wk@isil.d.shuttle.de)
8654         * trustdb.c: Rewrote most.
8655         * tdbio.c: Add cache and generalized hash tables.
8657         * options.h (ENABLE_COMMENT_PACKETS): New but undef'ed.
8658         * encode.c, sign.c, keygen.c: Disabled comment packets.
8659         * export.c (do_export): Comment packets are never exported,
8660         except for those in the secret keyring.
8662         * g10.c (main): Removed option do-no-export-rsa; should be
8663         be replaced by a secpial tool.
8664         * export.c (do_export): Removed the code for the above option.
8666         * armor.c (find_header): Support for new only_keyblocks.
8667         * import.c (import_keys): Only looks for keyblock armors.
8669         * packet.h: replaced valid_days by expiredate and changed all users.
8670         * build-packet.c (do_public_key): calculates valid-days
8671         (do_secret_key): Ditto.
8672         * parse-packet.c (parse_key): expiredate is calucated from the
8673         valid_period in v3 packets.
8674         * keyid.c (do_fingerprint_md): calculates valid_dates.
8676         * keygen.c (add_key_expire): fixed key expiration time for v4 packets.
8678         * armor.c (find_header): A LF in the first 28 bytes
8679         was skipped for non-armored data.
8681 Thu Oct  8 11:35:51 1998  Werner Koch  (wk@isil.d.shuttle.de)
8683         * armor.c (is_armored): Add test on old comment packets.
8685         * tdbio.c (tdbio_search_dir_bypk): fixed memory leak.
8687         * getkey.c: Changed the caching algorithms.
8689 Wed Oct  7 19:33:28 1998  Werner Koch  (wk@isil.d.shuttle.de)
8691         * kbnodes.c (unused_nodes): New.
8693 Wed Oct  7 11:15:36 1998  Werner Koch  (wk@isil.d.shuttle.de)
8695         * keyedit.c (sign_uids): Fixed a problem with SK which could caused
8696         a save of an unprotected key.
8697         (menu_adduid): Ditto.
8699         * keyedit.c (keyedit_menu): Prefs are now correctly listed for
8700         new user ids.
8702         * trustdb.c (update_trust_record): New.
8703         (insert_trust_record): Now makes use of update_trust_record.
8705 Tue Oct  6 16:18:03 1998  Werner Koch  (wk@isil.d.shuttle.de)
8707         * trustdb.c (read_record): replaces most of the tdbio_read_records.
8708         (write_record): Ditto.
8710 Sat Oct  3 11:01:21 1998  Werner Koch  (wk@isil.d.shuttle.de)
8712         * keygen.c (ask_alogo): enable ElGamal enc-only only for addmode.
8714 Wed Sep 30 10:15:33 1998  Werner Koch  (wk@isil.d.shuttle.de)
8716         * import.c (import_one): Fixed update of wrong keyblock.
8718 Tue Sep 29 08:32:08 1998  me,,,  (wk@tobold)
8720         * mainproc.c (proc_plaintext): Display note for special filename.
8721         * plaintext.c (handle_plaintext): Suppress output of special file.
8723 Mon Sep 28 12:57:12 1998  Werner Koch  (wk@isil.d.shuttle.de)
8725         * g10.c (verify_own_keys): Add warning if a key is not protected.
8727         * passphrase (hash_passphrase): Fixed iterated+salted mode and
8728         setup for keysizes > hashsize.
8730         * g10.c (main): New options: --s2k-{cipher,digest,mode}.
8732 Fri Sep 25 09:34:23 1998  Werner Koch  (wk@isil.d.shuttle.de)
8734         * g10.c: Chnaged some help texts.
8736 Tue Sep 22 19:34:39 1998  Werner Koch  (wk@isil.d.shuttle.de)
8738         * passphrase.c (read_passphrase_from_fd): fixed bug for long
8739         passphrases.
8741 Mon Sep 21 11:28:05 1998  Werner Koch  (wk@(none))
8743         * getkey.c (lookup): Add code to use the sub key if the primary one
8744         does not match the usage.
8746         * armor.c (armor_filter): New error message: no valid data found.
8747         (radix64_read): Changes to support multiple messages.
8748         (i18n.h): New.
8749         * mainproc.c (add_onepass_sig): bug fix.
8751 Mon Sep 21 08:03:16 1998  Werner Koch  (wk@isil.d.shuttle.de)
8753         * pkclist.c (do_we_trust): Add keyid to most messages.
8755         * passphrase.c (read_passphrase_from_fd): New.
8756         (have_static_passphrase): New
8757         (get_passphrase_fd): Removed.
8758         (set_passphrase_fd): Removed.
8759         * g10.c (main): passphrase is now read here.
8761         * keyedit.c (keyedit_menu): "help" texts should now translate fine.
8763 Mon Sep 21 06:40:02 1998  Werner Koch  (wk@isil.d.shuttle.de)
8765         * encode.c (encode_simple): Now disables compression
8766         when --rfc1991 is used.
8767         (encode_crypt): Ditto.
8769 Fri Sep 18 16:50:32 1998  Werner Koch  (wk@isil.d.shuttle.de)
8771         * getkey.c (merge_key_and_selfsig): New.
8773 Fri Sep 18 10:20:11 1998  Werner Koch  (wk@isil.d.shuttle.de)
8775         * pkclist.c (select_algo_from_prefs): Removed 3DES kludge.
8777         * seskey.c (make_session_key): Fixed SERIOUS bug introduced
8778         by adding the weak key detection code.
8780         * sign.c (sign_file): Changed aremor header in certain cases.
8782 Tue Sep 15 17:52:55 1998  Werner Koch  (wk@isil.d.shuttle.de)
8784         * mainproc.c (check_sig_and_print): Replaced ascime by asctimestamp.
8786 Mon Sep 14 11:40:52 1998  Werner Koch  (wk@isil.d.shuttle.de)
8788         * seskey.c (make_session_key): Now detects weak keys.
8790         * trustdb (clear_trust_checked_flag): New.
8792         * plaintext.c (handle_plaintext): Does no anymore suppress CR from
8793         cleartext signed messages.
8795 Sun Sep 13 12:54:29 1998  Werner Koch  (wk@isil.d.shuttle.de)
8797         * trustdb.c (insert_trust_record): Fixed a stupid bug in the free
8798         liunked list loops.
8800 Sat Sep 12 15:49:16 1998  Werner Koch  (wk@isil.d.shuttle.de)
8802         * status.c (remove_shmid): New.
8803         (init_shm_comprocess): Now sets permission to the real uid.
8805 Wed Sep  9 11:15:03 1998  Werner Koch  (wk@isil.d.shuttle.de)
8807         * packet.h (PKT_pubkey_enc): New flah throw_keyid, and add logic to
8808         implement it.
8809         * g10.c (main): New Option --throw-keyid
8811         * getkey.c (enum_secret_keys): Add new ar and changed all callers.
8813 Tue Sep  8 20:04:09 1998  Werner Koch  (wk@isil.d.shuttle.de)
8815         * delkey.c (delete_key): Moved from keyedit.c.
8817 Mon Sep  7 16:37:52 1998  Werner Koch  (wk@isil.d.shuttle.de)
8819         * build-packet.c (calc_length_header): New arg new_ctb to correctly
8820         calculate the length of new style packets.
8822         * armor.c (is_armored): Checks for symkey_enc packets.
8824         * pkclist.c (select_algo_from_prefs): 3DEs substitute is now CAST5.
8826 Tue Aug 11 17:54:50 1998  Werner Koch  (wk@isil.d.shuttle.de)
8828         * build-packet.c (do_secret_key): Fixed handling of old keys.
8830         * getkey.c (compare_name): Fixed exact and email matching
8832         * openfile.c (open_outfile): Changed arguments and all callers.
8834 Tue Aug 11 09:14:35 1998  Werner Koch  (wk@isil.d.shuttle.de)
8836         * encode.c (encode_simple): Applied option set-filename and comment.
8837         (encode_crypt): Ditto.
8838         * sign.c (sign_file): Ditto.
8839         * armor.c (armor_filter): Applied option comment.
8841         * encode.c (encode_crypt): Moved init_packet to the begin.
8842         (encode_simple): add an init_packet().
8844         * comment (write_comment): Now enforces a hash sign as the 1st byte.
8846         * import.c (import_one): Add explanation for "no user ids".
8848         * compress.c (do_uncompress): Applied Brian Warner's patch to support
8849         zlib 1.1.3 etc.
8851         * trustdb.c (check_trust): Fixed a problem after inserting new keys.
8853         * getkey (lookup): do not return the primary key if usage is given
8854         (lookup_sk): Ditto and take usage into account.
8856         * status.c (cpr_get_answer_is_yes): add display_help.
8858 Mon Aug 10 10:11:28 1998  Werner Koch  (wk@isil.d.shuttle.de)
8860         * getkey.c (lookup_sk): Now always returns the primary if arg
8861         primary is true.
8862         (lookup): Likewise.
8863         (get_pubkey_byname): Now returns the primary key
8864         (get_seckey_byname): Ditto.
8867 Mon Aug 10 08:34:03 1998  Werner Koch  (wk@isil.d.shuttle.de)
8869         * keyid.c (pubkey_letter): ELG_E is now a small g.
8871 Sat Aug  8 17:26:12 1998  Werner Koch  (wk@isil.d.shuttle.de)
8873         * openfile (overwrite_filep): Changed semantics and all callers.
8875 Sat Aug  8 12:17:07 1998  Werner Koch  (wk@isil.d.shuttle.de)
8877         * status.c (display_help): New.
8879 Thu Aug  6 16:30:41 1998  Werner Koch,mobil,,,  (wk@tobold)
8881         * seskey.c (encode_session_key): Now uses get_random_bits().
8883 Thu Aug  6 07:34:56 1998  Werner Koch,mobil,,,  (wk@tobold)
8885         * ringedit.c (keyring_copy): No more backupfiles for
8886         secret keyrings and add additional warning in case of
8887         a failed secret keyring operation.
8889 Wed Aug  5 11:54:37 1998  Werner Koch  (wk@isil.d.shuttle.de)
8891         * g10.c (check_opts): Moved to main.  Changed def_cipher_algo
8892         semantics and chnaged all users.
8894         * pubkey-enc.c (get_sssion_key): New informational output
8895         about preferences.
8897         * parse-packet.c (parse_symkeyenc): Fixed salted+iterated S2K
8898         (parse_key): Ditto.
8899         * build-packet.c (do_secret_key): Ditto.
8900         (do_symkey_enc): Ditto.
8902 Tue Aug  4 08:59:10 1998  Werner Koch  (wk@isil.d.shuttle.de)
8904         * getkey.c (enum_secret_keys): Now returns only primary keys.
8906         * getkey (lookup): Now sets the new namehash field.
8908         * parse-packet.c (parse_sig_subpkt2): New.
8910         * sign.c (sign_file): one-pass sigs are now emiited reverse.
8911         Preference data is considered when selecting the compress algo.
8913 Wed Jul 29 12:53:03 1998  Werner Koch  (wk@isil.d.shuttle.de)
8915         * free-packet.c (copy_signature): New.
8917         * keygen.c (generate_subkeypair): rewritten
8918         * g10.c (aKeyadd): Removed option --add-key
8920 Mon Jul 27 10:37:28 1998  Werner Koch  (wk@isil.d.shuttle.de)
8922         * seckey-cert.c (do_check): Additional check on cipher blocksize.
8923         (protect_secret_key): Ditto.
8924         * encr-data.c: Support for other blocksizes.
8925         * cipher.c (write_header): Ditto.
8927 Fri Jul 24 16:47:59 1998  Werner Koch  (wk@isil.d.shuttle.de)
8929         * kbnode.c (insert_kbnode): Changed semantics and all callers.
8930         * keyedit.c : More or less a complete rewrite
8932 Wed Jul 22 17:10:04 1998  Werner Koch  (wk@isil.d.shuttle.de)
8934         * build-packet.c (write_sign_packet_header): New.
8936 Tue Jul 21 14:37:09 1998  Werner Koch  (wk@isil.d.shuttle.de)
8938         * import.c (import_one): Now creates a trustdb record.
8940         * g10.c (main): New command --check-trustdb
8942 Mon Jul 20 11:15:07 1998  Werner Koch  (wk@isil.d.shuttle.de)
8944         * genkey.c (generate_keypair): Default key is now DSA with
8945         encryption only ElGamal subkey.
8947 Thu Jul 16 10:58:33 1998  Werner Koch  (wk@isil.d.shuttle.de)
8949         * keyid.c (keyid_from_fingerprint): New.
8950         * getkey.c (get_pubkey_byfprint): New.
8952 Tue Jul 14 18:09:51 1998  Werner Koch  (wk@isil.d.shuttle.de)
8954         * keyid.c (fingerprint_from_pk): Add argument and changed all callers.
8955         (fingerprint_from_sk): Ditto.
8957 Tue Jul 14 10:10:03 1998  Werner Koch  (wk@isil.d.shuttle.de)
8959         * plaintext.c (handle_plaintext): Now returns create error if
8960         the file could not be created or the user responded not to overwrite
8961         the file.
8962         * mainproc.c (proc_plaintext): Tries again if the file could not
8963         be created to check the signature without output.
8965         * misc.c (disable_core_dumps): New.
8966         * g10.c (main): disable coredumps for gpg
8968         * g10.c (MAINTAINER_OPTIONS): New to disable some options
8970 Mon Jul 13 16:47:54 1998  Werner Koch  (wk@isil.d.shuttle.de)
8972         * plaintext.c (hash_datafiles): New arg for better support of
8973         detached sigs. Changed all callers.
8974         * mainproc.c (proc_signature_packets): Ditto.
8976         * g10.c (main): New option "compress-sigs"
8977         * sig.c (sign_file): detached signatures are not anymore compressed
8978         unless the option --compress-sigs is used.
8980 Thu Jul  9 19:54:54 1998  Werner Koch  (wk@isil.d.shuttle.de)
8982         * armor.c: Fixes to allow zero length cleartext signatures
8984 Thu Jul  9 14:52:47 1998  Werner Koch  (wk@isil.d.shuttle.de)
8986         * g10.c (build_list): Now drops setuid.
8987         (main): Changed the way keyrings  and algorithms are registered .
8989 Wed Jul  8 14:17:30 1998  Werner Koch  (wk@isil.d.shuttle.de)
8991         * packet.h (PKT_public_key): Add field keyid.
8992         * parse-packet.c (parse_key): Reset the above field.
8993         * keyid.c (keyid_from_pk): Use above field as cache.
8995         * tdbio.c, tdbio.h: New
8996         * trustdb.c: Moved some functions to tdbio.c.
8997         (print_keyid): New.
8999         * pkclist.c (check_signatures_trust): New.
9001 Wed Jul  8 10:45:28 1998  Werner Koch  (wk@isil.d.shuttle.de)
9003         * plaintext.c (special_md_putc): New.
9004         (handle_plaintext): add clearsig argument
9005         * mainproc.c (proc_plaintext): detection of clearsig
9006         * sign.c (write_dased_escaped): Changed clearsig format
9008 Tue Jul  7 18:56:19 1998  Werner Koch  (wk@isil.d.shuttle.de)
9010         * armor.c (find_header): Now makes sure that there is only one
9011         empty line for clearsigs, as this is what OP now says.
9013 Mon Jul  6 13:09:07 1998  Werner Koch  (wk@isil.d.shuttle.de)
9015         * g10.c (main): New option default-secret-key
9016         * getkey.c (get_seckey_byname): support for this option.
9018 Mon Jul  6 09:03:49 1998  Werner Koch  (wk@isil.d.shuttle.de)
9020         * getkey.c (add_keyring): Keyrings are now added to end of the
9021         list of keyrings.  The first added keyringwill be created.
9022         (add_secret_keyring): Likewise.
9024         * ringedit.c (add_keyblock_resource): Files are created here.
9026         * g10.c (aNOP): Removed
9028         * getkey.c (lookup): Add checking of usage for name lookups
9029         * packet.h (pubkey_usage): Add a field which may be used to store
9030         usage capabilities.
9031         * pkclist.c (build_pk_list): getkey now called with usage arg.
9032         * skclist.c (build_sk_list): Ditto.
9034         * sign.c (clearsign_file): Fixed "Hash:" headers
9036 Sat Jul  4 13:33:31 1998  Werner Koch  (wk@isil.d.shuttle.de)
9038         * trustdb.c (list_ownertrust): New.
9039         * g10.c (aListOwnerTrust): New.
9041         * g10.c (def_pubkey_algo): Removed.
9043         * trustdb.c (verify_private_data): Removed and also the call to it.
9044         (sign_private_data): Removed.
9046 Fri Jul  3 13:26:10 1998  Werner Koch  (wk@isil.d.shuttle.de)
9048         * g10.c (aEditKey): was aEditSig. Changed usage msg.
9050         * keyedit.c: Done some i18n stuff.
9052         * g10.c (do_not_use_RSA): New.
9053         * sign.c (do_sign): Add call to above function.
9054         * encode.c (write_pubkey_enc_from_list): Ditto.
9056 Thu Jul  2 21:01:25 1998  Werner Koch  (wk@isil.d.shuttle.de)
9058         * parse-packet.c: Now is able sto store data of unknown
9059         algorithms.
9060         * free-packet.c: Support for this.
9061         * build-packet.c: Can write data of packet with unknown algos.
9063 Thu Jul  2 11:46:36 1998  Werner Koch  (wk@isil.d.shuttle.de)
9065         * parse-packet.c (parse): fixed 4 byte length header
9067 Wed Jul  1 12:36:55 1998  Werner Koch  (wk@isil.d.shuttle.de)
9069         * packet.h (new_ctb): New field for some packets
9070         * build-packet.c (build_packet): Support for new_ctb
9071         * parse-packet.c (parse): Ditto.
9073 Mon Jun 29 12:54:45 1998  Werner Koch  (wk@isil.d.shuttle.de)
9075         * packet.h: changed all "_cert" to "_key", "subcert" to "subkey".
9077         * free-packet.c (free_packet): Removed memory leak for subkeys.
9079 Sun Jun 28 18:32:27 1998  Werner Koch  (wk@isil.d.shuttle.de)
9081         * import.c (import_keys): Renamed from import_pubkeys.
9082         (import_secret_one): New.
9084         * g10.c (aExportSecret): New.
9086         * export.c (export_seckeys): New.
9088         * parse-packet.c (parse_certificate): Cleaned up.
9089         (parse_packet): Trust packets are now considered as unknown.
9090         (parse_pubkey_warning): New.
9092 Fri Jun 26 10:37:35 1998  Werner Koch  (wk@isil.d.shuttle.de)
9094         * keygen.c (has_invalid_email_chars): New.
9096 Wed Jun 24 16:40:22 1998  Werner Koch  (wk@isil.d.shuttle.de)
9098         * armor.c (armor_filter): Now creates valid onepass_sig packets
9099         with all detected hash algorithms.
9100         * mainproc.c (proc_plaintext): Now uses the hash algos as specified
9101         in the onepass_sig packets (if there are any)
9103 Mon Jun 22 11:54:08 1998  Werner Koch  (wk@isil.d.shuttle.de)
9105         * plaintext.c (handle_plaintext): add arg to disable outout
9106         * mainproc.c (proc_plaintext): disable output when in sigs_only mode.
9108 Thu Jun 18 13:17:27 1998  Werner Koch  (wk@isil.d.shuttle.de)
9110         * keygen.c: Removed all rsa packet stuff, chnaged defaults
9111         for key generation.
9113 Sun Jun 14 21:28:31 1998  Werner Koch  (wk@isil.d.shuttle.de)
9115         * misc.c (checksum_u16): Fixed a stupid bug which caused a
9116         wrong checksum calculation for the secret key protection and
9117         add a backward compatibility option.
9118         * g10.c (main): Add option --emulate-checksum-bug.
9120 Thu Jun 11 13:26:44 1998  Werner Koch  (wk@isil.d.shuttle.de)
9122         * packet.h: Major changes to the structure of public key material
9123         which is now stored in an array and not anaymore in a union of
9124         algorithm specific structures.  These is needed to make the system
9125         more extendable and makes a lot of stuff much simpler. Changed
9126         all over the system.
9128         * dsa.c, rsa.c, elg.c: Removed.
9130 Wed Jun 10 07:22:02 1998  Werner Koch,mobil,,,  (wk@tobold)
9132         * g10.c ("load-extension"): New option.
9134 Mon Jun  8 22:23:37 1998  Werner Koch  (wk@isil.d.shuttle.de)
9136         * seckey-cert.c (do_check): Removed cipher constants
9137         (protect_secret_key): Ditto.
9139 Fri May 29 10:00:28 1998  Werner Koch  (wk@isil.d.shuttle.de)
9141         * trustdb.c (query_trust_info): New.
9142         * keylist.c (list_one): Add output of trust info
9143         * mainproc (list_node): ditto.
9144         * g10.c (main): full trustdb init if -with-colons and any of the
9145         key list modes.
9147 Thu May 28 10:34:42 1998  Werner Koch  (wk@isil.d.shuttle.de)
9149         * status.c (STATUS_RSA_OR_IDEA): New.
9150         * sig-check.c (check_signature): Output special status message.
9151         * pubkey-enc.c (get_session_key): Ditto.
9153         * mainproc.c (check_sig_and_print): Changed format of output.
9154         * passpharse.c (passphrase_to_dek): Likewise.
9156 Wed May 27 13:46:48 1998  Werner Koch  (wk@isil.d.shuttle.de)
9158         * g10.c (aListSecretKeys): New option --list-secret-keys
9159         * keylist.c (std_key_list): Renamed to public_key_list.
9160         (secret_key_list): New
9161         (list_one, list_all): Add support for secret keys.
9162         * getkey.c (get_secret_keyring): New.
9163         * mainproc.c (list_node): Add option --with-colons for secret keys
9165         * sig-check.c (check_key_signature): detection of selfsigs
9166         * mainproc.c (list_node): fixed listing.
9168         * g10.c (aListSecretKeys): New option --always-trust
9169         * pkclist.c (do_we_trust): Override per option added
9171         * status.c (write_status_text): Add a prefix to every output line.
9173 Wed May 27 07:49:21 1998  Werner Koch  (wk@isil.d.shuttle.de)
9175         * g10 (--compress-keys): New.
9176         * options.h (compress_keys): New.
9177         * export.c (export_pubkeys): Only compresses with the new option.
9179 Tue May 26 11:24:33 1998  Werner Koch  (wk@isil.d.shuttle.de)
9181         * passphrase.c (get_last_passphrase): New
9182         (set_next_passphrase): New.
9183         (passphrase_to_dek): add support for the above functions.
9184         * keyedit.c (make_keysig_packet): Add sigclass 0x18,
9185         changed all callers due to a new argument.
9186         * keygen.c (write_keybinding): New
9187         (generate_subkeypair): Add functionality
9188         (ask_algo, ask_keysize, ask_valid_days): Broke out of generate_keypair
9189         (ask_user_id, ask_passphrase): Ditto.
9191 Thu May 21 11:26:13 1998  Werner Koch  (wk@isil.d.shuttle.de)
9193         * g10.c,gpgd.c (main): Does now return an int, so that egcs does
9194         not complain.
9196         * armor.c (fake_packet): Removed erro message and add a noticed
9197         that this part should be fixed.
9199         * sign.c (sign_file): Compression now comes in front of encryption.
9200         * encode.c (encode_simple): Ditto.
9201         (encode_crypt): Ditto.
9203 Tue May 19 16:18:19 1998  Werner Koch  (wk@isil.d.shuttle.de)
9205         * armor.c (fake_packet): Changed assertion to log_error
9207 Sat May 16 16:02:06 1998  Werner Koch  (wk@isil.d.shuttle.de)
9209         * build-packet.c (build_packet): Add SUBKEY packets.
9211 Fri May 15 17:57:23 1998  Werner Koch  (wk@isil.d.shuttle.de)
9213         * sign.c (hash_for): New and used in all places here.
9214         * main.h (DEFAULT_): new macros.
9215         * g10.c  (opt.def_digest_algo): Now set to 0
9217         * compress.c (init_compress): Add support for algo 1
9218         * options.h (def_compress_algo): New
9219         * g10.c (main): New option --compress-algo
9221 Fri May 15 13:23:59 1998  Werner Koch  (wk@isil.d.shuttle.de)
9223         * g10.c (print_mds): New feature to print only one hash,
9224         chnaged formatting.
9226 Thu May 14 15:36:24 1998  Werner Koch  (wk@isil.d.shuttle.de)
9228         * misc.c (trap_unaligned) [__alpha__]: New
9229         * g10.c (trap_unaligned): Add call to this to track down SIGBUS
9230         on Alphas (to avoid the slow emulation code).
9232 Wed May 13 11:48:27 1998  Werner Koch  (wk@isil.d.shuttle.de)
9234         * build-packet.c (do_signature): Support for v4 pakets.
9235         * keyedit.c (make_keysig_packet): Ditto.
9236         * build-packet.c (build_sig_subpkt_from_sig): New.
9237         (build_sig_subpkt): New.
9239         * elg.c (g10_elg_sign): removed keyid_from_skc.
9240         * dsa.c (g10_dsa_sign): Ditto.
9241         * rsa.c (g10_rsa_sign): Ditto.
9242         * keyedit.c (make_keysig_packet): Add call to keyid_from_skc
9244         * sign.c (clearsign_file): Support for v4 signatures.
9245         (sign_file): Ditto.
9247 Wed May  6 09:31:24 1998  Werner Koch  (wk@isil.d.shuttle.de)
9249         * parse-packet.c (do_parse): add support for 5 byte length leader.
9250         (parse_subpkt): Ditto.
9251         * build-packet.c (write_new_header): Ditto.
9253         * packet.h (SIGSUBPKT_): New constants.
9254         * parse-packet.c (parse_sig_subpkt): Changed name, made global,
9255         and arg to return packet length, chnaged all callers
9258 Tue May  5 22:11:59 1998  Werner Koch  (wk@isil.d.shuttle.de)
9260         * keygen.c (gen_dsa): New.
9261         * build_packet.c (do_secret_cert): Support for DSA
9263 Mon May  4 19:01:25 1998  Werner Koch  (wk@isil.d.shuttle.de)
9265         * compress.c: doubled buffer sizes
9266         * parse-packet.c (do_plaintext): now uses iobuf_read/write.
9268 Mon May  4 09:35:53 1998  Werner Koch  (wk@isil.d.shuttle.de)
9270         * seskey.c (encode_md_value): Add optional argument hash_algo,
9271         changed all callers.
9273         * passphrase.c (make_dek_from_passphrase): Removed
9274         * (get_passhrase_hash): Changed name to passphrase_to_dek, add arg,
9275         changed all callers.
9277         * all: Introduced the new ELG identifier and added support for the
9278         encryption only one (which is okay to use by GNUPG for signatures).
9280 Sun May  3 17:50:26 1998  Werner Koch  (wk@isil.d.shuttle.de)
9282         * packet.h (PKT_OLD_COMMENT): New name for type 16.
9283         * parse-packet.c (parse_comment): Now uses type 61
9285 Fri May  1 12:44:39 1998  Werner Koch,mobil,,,  (wk@tobold)
9287         * packet.h (count): Chnaged s2k count from byte to u32.
9288         * seckey-cert.c (do_check): Changed s2k algo 3 to 4, changed
9289         reading of count.
9290         * build-packet.c (do_secret_cert): ditto.
9291         * parse-packet.c (parse_certificate): ditto.
9293         * parse-packet.c (parse_symkeyenc): New.
9294         * build-packet.c (do_symkey_enc): New.
9296 Thu Apr 30 16:33:34 1998  Werner Koch  (wk@isil.d.shuttle.de)
9298         * sign.c (clearsign_file): Fixed "Hash: " armor line.
9300 Tue Apr 28 14:27:42 1998  Werner Koch  (wk@isil.d.shuttle.de)
9302         * parse-packet.c (parse_subpkt): Some new types.
9304 Mon Apr 27 12:53:59 1998  Werner Koch  (wk@isil.d.shuttle.de)
9306         * g10.c (main): Add option --skip-verify.
9307         * mainproc.c (check_sig_and_print): Ditto.
9309         * g10.c (print_mds): Add output for Tiger.
9311         * sign.c (sign_file): Now uses partial length headers if used
9312         in canonical textmode (kludge to fix a bug).
9314         * parse-packet.c (parse_certificate): Changed BLOWFISH id.
9315         * pubkey-enc.c (get_session_key): Ditto.
9316         * seskey.c (make_session_key): Ditto.
9317         * seckey-cert.c (protect_secret_key,do_check): Add BLOWFISH160.
9319 Fri Apr 24 17:38:48 1998  Werner Koch,mobil,,,  (wk@tobold)
9321         * sig-check.c (check_key_signature): Add sig-class 0x14..0x17
9322         * keyedit.c (sign-key): Some changes to start with support of
9323         the above new sig-classes.
9325 Wed Apr 22 09:01:57 1998  Werner Koch,mobil,,,  (wk@tobold)
9327         * getkey.c (compare_name): add email matching
9329 Tue Apr 21 16:17:12 1998  Werner Koch,mobil,,,  (wk@tobold)
9331         * armor.c (armor_filter): fixed missing last LF before CSUM.
9333 Thu Apr  9 11:35:22 1998  Werner Koch  (wk@isil.d.shuttle.de)
9335         * seckey-cert.c (do_check): New; combines all the check functions
9336         into one.
9338         * sign.c: removed all key management functions
9339         * keyedit.c: New.
9341 Thu Apr  9 09:49:36 1998  Werner Koch  (wk@isil.d.shuttle.de)
9343         * import.c (chk_self_sigs): Changed an error message.
9345 Wed Apr  8 16:19:39 1998  Werner Koch  (wk@isil.d.shuttle.de)
9347         * packet.h: packet structs now uses structs from the pubkey,
9348         removed all copy operations from packet to pubkey structs.
9350 Wed Apr  8 13:40:33 1998  Werner Koch  (wk@isil.d.shuttle.de)
9352         * trustdb.c (verify_own_certs): Fixed "public key not found".
9354         * getkey.c (key_byname): New, combines public and secret key search.
9356         * pkclist.c (build_pkc_list): Add new arg usage, changed all callers.
9357         * skclist.c (build_skc_list): Likewise.
9359         * ringedit.c (find_keyblock, keyring_search2): Removed.
9361 Wed Apr  8 09:47:21 1998  Werner Koch  (wk@isil.d.shuttle.de)
9363         * sig-check.c (do_check): Applied small fix from Ulf Möller.
9365 Tue Apr  7 19:28:07 1998  Werner Koch  (wk@isil.d.shuttle.de)
9367         * cipher.c, encr-data.c, seckey-cert.c: Now uses cipher_xxxx
9368         functions instead of blowfish_xxx or cast_xxx
9370 Tue Apr  7 11:04:02 1998  Werner Koch  (wk@isil.d.shuttle.de)
9372         * Makefile.am (g10maint.o): Changed the way it is created.
9374 Mon Apr  6 11:17:08 1998  Werner Koch  (wk@isil.d.shuttle.de)
9376         * misc.c: New.
9377         * keygen.c (checksum,checksum_u16,checksum_mpi): Moved to misc.c
9378         * seckey-cert.c: Kludge for wrong ELG checksum implementation.
9380 Sat Apr  4 20:07:01 1998  Werner Koch  (wk@isil.d.shuttle.de)
9382         * cipher.c (cipher_filter): Support for CAST5
9383         * encr-data.c (decode_filter): Ditto.
9384         (decrypt_data): Ditto.
9385         * seskey.c (make_session_key): Ditto.
9386         * seckey-cert.c (check_elg, check_dsa): Ditto,
9387         (protect_secret_key): Ditto.
9388         * pubkey-enc.c (get_session_key): Ditto.
9389         * passphrase.c (hash_passphrase): Ditto.
9391 Thu Apr  2 20:22:35 1998  Werner Koch  (wk@isil.d.shuttle.de)
9393         * gpgd.c: New
9395 Thu Apr  2 10:38:16 1998  Werner Koch  (wk@isil.d.shuttle.de)
9397         * keygen.c (generate_keypair): Add valid_days stuff.
9398         * trustdb.c (check_trust): Add check for valid_days.
9400 Wed Apr  1 16:15:58 1998  Werner Koch  (wk@isil.d.shuttle.de)
9402         * keygen.c (generate_keypair): Addional question whether the
9403         selected large keysize is really needed.
9405 Wed Apr  1 15:56:33 1998  Werner Koch  (wk@isil.d.shuttle.de)
9407         * seckey-cert.c (protect_secret_key): merged protect_xxx to here.
9409 Wed Apr  1 10:34:46 1998  Werner Koch  (wk@isil.d.shuttle.de)
9411         * Makefile.am (g10maint.c): Changed creation rule, so that it works
9412         on FreeBSD (missing CFLAGS).
9414         * parse-packet.c (parse_subkey): Removed.
9416 Thu Mar 19 15:22:36 1998  Werner Koch  (wk@isil.d.shuttle.de)
9418         * ringedit.c (keyring_enum): Fixed problem with reading too
9419         many packets. Add support to read secret keyrings.
9421         * getkey.c (scan_keyring): Removed
9422         (lookup): New to replace scan_keyring.
9423         (scan_secret_keyring): Removed.
9424         (lookup_skc): New.
9426 Wed Mar 18 11:47:34 1998  Werner Koch  (wk@isil.d.shuttle.de)
9428         * ringedit.c (enum_keyblocks): New read mode 11.
9430         * keyid.c (elg_fingerprint_md): New and changed all other functions
9431         to call this if the packet version is 4 or above.
9433 Tue Mar 17 20:46:16 1998  Werner Koch  (wk@isil.d.shuttle.de)
9435         * parse-packet.c (parse_certificate): Add listing support for subkeys.
9437 Tue Mar 17 20:32:22 1998  Werner Koch  (wk@isil.d.shuttle.de)
9439         * armor.c (is_armored): Allow marker packet.
9441 Thu Mar 12 13:36:49 1998  Werner Koch  (wk@isil.d.shuttle.de)
9443         * trustdb.c (check_trust): Checks timestamp of pubkey.
9444         * sig-check. (do_check): Compares timestamps.
9446 Tue Mar 10 17:01:56 1998  Werner Koch  (wk@isil.d.shuttle.de)
9448         * g10.c (main): Add call to init_signals.
9449         * signal.c: New.
9451 Mon Mar  9 12:43:42 1998  Werner Koch  (wk@isil.d.shuttle.de)
9453         * dsa.c: New
9454         * packet.h, free-packet.c, parse-packet.c : Add support for DSA
9455         * sig-check.c, getkey.c, keyid.c, ringedit.c: Ditto.
9456         * seckey-cert.c: Ditto.
9458         * packet.h : Moved .digest_algo of signature packets to outer
9459         structure. Changed all references
9461 Sun Mar  8 13:06:42 1998  Werner Koch  (wk@isil.d.shuttle.de)
9463         * openfile.c : Support for stdout filename "-".
9465         * mainproc.c (check_sig_and_print): Enhanced status output:
9466         * status.c (write_status_text): New.
9468 Fri Mar  6 16:10:54 1998  Werner Koch  (wk@isil.d.shuttle.de)
9470         * kbnode.c (clone_kbnode): Fixed private_flag.
9472         * mainproc.c (list_node): Output of string "Revoked" as user-id.
9474 Fri Mar  6 14:26:39 1998  Werner Koch  (wk@isil.d.shuttle.de)
9476         * g10.c (main): Add userids to "-kv" and cleaned up this stuff.
9478 Fri Mar  6 12:45:58 1998  Werner Koch  (wk@isil.d.shuttle.de)
9480         * g10.c (main): Changed semantics of the list-... commands
9481         and added a new one. Removed option "-d"
9483         * decrypt.c: New.
9485         * trustdb.c (init_trustdb): Autocreate directory only if it ends
9486         in "/.gnupg".
9488 Thu Mar  5 12:12:11 1998  Werner Koch  (wk@isil.d.shuttle.de)
9490         * mainproc.c (do_proc_packets): New. Common part of proc_packet.
9491         (proc_signature_packets): special version to handle signature data.
9492         * verify.c: New.
9493         * g10.c (aVerify): New.
9494         * plaintext.c (hash_datafiles): New.
9495         * compress.c (handle_compressed): Add callback arg, changed caller.
9497 Thu Mar  5 10:20:06 1998  Werner Koch  (wk@isil.d.shuttle.de)
9499         * g10.c: Is nom the common source for gpg and gpgm
9500         * g10maint.c: Removed
9501         * Makefile.am: Add rule to build g10maint.c
9503 Thu Mar  5 08:43:59 1998  Werner Koch  (wk@isil.d.shuttle.de)
9505         * g10.c (main): Changed the way clear text sigs are faked.
9507 Wed Mar  4 19:47:37 1998  Werner Koch  (wk@isil.d.shuttle.de)
9509         * g10maint.c (aMuttKeyList): New
9510         * keylist.c: New.
9512 Wed Mar  4 17:20:33 1998  Werner Koch  (wk@isil.d.shuttle.de)
9514         * getkey.c (get_pubkey_byname): Kludge to allow 0x prefix.
9516 Tue Mar  3 13:46:55 1998  Werner Koch  (wk@isil.d.shuttle.de)
9518         * g10maint.c (main): New option --gen-random.
9520 Tue Mar  3 09:50:08 1998  Werner Koch  (wk@isil.d.shuttle.de)
9522         * g10.c (aDeleteSecretKey): New.
9523         (aEditSig): Add option "--edit-key" as synonym for "--edit-sig".
9524         (aDeleteSecretKey): New.
9525         * getkey.c (seckey_available): New.
9526         * sign.c (delete_key): Enhanced to delete secret keys, changed all
9527         callers.
9529 Mon Mar  2 21:23:48 1998  Werner Koch  (wk@isil.d.shuttle.de)
9531         * pkc_list.c (build_pkc_list): Add interactive input of user ID.
9533 Mon Mar  2 20:54:05 1998  Werner Koch  (wk@isil.d.shuttle.de)
9535         * pkclist.c (do_we_trust_pre): New.
9536         (add_ownertrust): Add message.
9537         * trustdb.c (enum_trust_web): Quick fix.
9539 Mon Mar  2 13:50:53 1998  Werner Koch  (wk@isil.d.shuttle.de)
9541         * g10.c (main): New action aDeleteKey
9542         * sign.c (delete_key): New.
9544 Sun Mar  1 16:38:58 1998  Werner Koch  (wk@isil.d.shuttle.de)
9546         * trustdb.c (do_check): No returns TRUST_UNDEFINED instead of
9547         eof error.
9549 Fri Feb 27 18:14:03 1998  Werner Koch  (wk@isil.d.shuttle.de)
9551         * armor.c (find_header): Removed trailing CR on headers.
9553 Fri Feb 27 18:02:48 1998  Werner Koch  (wk@isil.d.shuttle.de)
9555         * ringedit.c (keyring_search) [MINGW32]: Open and close file here
9556         because rename does not work on open files. Chnaged callers.
9558 Fri Feb 27 16:43:11 1998  Werner Koch  (wk@isil.d.shuttle.de)
9560         * sig-check.c (do_check): Add an md_enable.
9561         * mainproc.c (do_check_sig): Use md_open in case of detached sig
9562         (proc_tree): Take detached sigs into account.
9564 Fri Feb 27 15:22:46 1998  Werner Koch  (wk@isil.d.shuttle.de)
9566         * g10.c (main): Make use of GNUPGHOME envvar.
9567         * g10main.c (main): Ditto.
9569 Wed Feb 25 11:40:04 1998  Werner Koch  (wk@isil.d.shuttle.de)
9571         * plaintext.c (ask_for_detached_datafile): add opt.verbose to
9572         info output.
9574         * openfile.c (open_sigfile): Try also name ending in ".asc"
9576 Wed Feb 25 08:41:00 1998  Werner Koch  (wk@isil.d.shuttle.de)
9578         * keygen.c (generate_keypair): Fixed memory overflow.
9580 Tue Feb 24 15:51:55 1998  Werner Koch  (wk@isil.d.shuttle.de)
9582         * parse-packet.c (parse_certificate): Support for S2K.
9583         * build-packet.c (do_secret_cert): Ditto.
9584         * keygen.c (gen_elg): Ditto.
9585         * seckey-cert.c (check_elg): Ditto
9586         (protect_elg): Ditto.
9587         * sign.c (chnage_passphrase): Ditto.
9588         * passphrase.c (get_passphrase_hash): Support for a salt and
9589         changed all callers.
9590         (make_dek_from_passphrase): Ditto.
9592 Tue Feb 24 12:30:56 1998  Werner Koch  (wk@isil.d.shuttle.de)
9594         * build-packet.c (hash_public_cert): Disabled debug output.
9596 Fri Feb 20 17:22:28 1998  Werner Koch  (wk@isil.d.shuttle.de)
9598         * trustdb.c (init_trustdb) [MINGW32]: Removed 2nd mkdir arg.
9599         (keyring_copy) [MINGW32]: Add a remove prior to the renames.
9601 Wed Feb 18 18:39:02 1998  Werner Koch  (wk@isil.d.shuttle.de)
9603         * Makefile.am (OMIT_DEPENDENCIES): New.
9605         * rsa.c: Replaced log_bug by BUG.
9607 Wed Feb 18 13:35:58 1998  Werner Koch  (wk@isil.d.shuttle.de)
9609         * mainproc.c (do_check_sig): Now uses hash_public_cert.
9610         * parse-packet.c (parse_certificate): Removed hashing.
9611         * packet.h (public_cert): Removed hash variable.
9612         * free-packet.c (copy_public_cert, free_public_cert): Likewise.
9614         * sig-check.c (check_key_signatures): Changed semantics.
9616 Wed Feb 18 12:11:28 1998  Werner Koch  (wk@isil.d.shuttle.de)
9618         * trustdb.c (do_check): Add handling for revocation certificates.
9619         (build_sigrecs): Ditto.
9620         (check_sigs): Ditto.
9622 Wed Feb 18 09:31:04 1998  Werner Koch  (wk@isil.d.shuttle.de)
9624         * armor.c (armor_filter): Add afx->hdrlines.
9625         * revoke.c (gen_revoke): Add comment line.
9626         * dearmor.c (enarmor_file): Ditto.
9628         * sig-check.c (check_key_signature): Add handling for class 0x20.
9629         * mainproc.c : Ditto.
9631 Tue Feb 17 21:24:17 1998  Werner Koch  (wk@isil.d.shuttle.de)
9633         * armor.c : Add header lines "...ARMORED FILE .."
9634         * dearmor.c (enarmor_file): New.
9635         * g10maint.c (main): New option "--enarmor"
9637 Tue Feb 17 19:03:33 1998  Werner Koch  (wk@isil.d.shuttle.de)
9639         * mainproc.c : Changed a lot, because the packets are now stored
9640         a simple linlked list and not anymore in a complicatd tree structure.
9642 Tue Feb 17 10:14:48 1998  Werner Koch  (wk@isil.d.shuttle.de)
9644         * free_packet.c (cmp_public_certs): New.
9645         (cmp_user_ids): New.
9647         * kbnode.c (clone_kbnode): New.
9648         (release_kbnode): Add clone support.
9650         * ringedit.c (find_keyblock_bypkc): New.
9652         * sign.c (remove_keysigs): Self signatures are now skipped,
9653         changed arguments and all callers.
9655         * import.c : Add functionality.
9657 Tue Feb 17 09:31:40 1998  Werner Koch  (wk@isil.d.shuttle.de)
9659         * options.h (homedir): New option.
9660         * g10.c, g10maint.c, getkey.c, keygen.c, trustdb.c (opt.homedir): New.
9662         * trustdb.c (init_trustdb): mkdir for hoem directory
9663         (sign_private_data): Renamed "sig" to "g10.sig"
9665 Mon Feb 16 20:02:03 1998  Werner Koch  (wk@isil.d.shuttle.de)
9667         * kbnode.c (commit_kbnode): New.
9668         (delete_kbnode): removed unused first arg. Changed all Callers.
9670         * ringedit.c (keyblock_resource_name): New.
9671         (get_keyblock_handle): NULL for filename returns default resource.
9673 Mon Feb 16 19:38:48 1998  Werner Koch  (wk@isil.d.shuttle.de)
9675         * sig-check.s (check_key_signature): Now uses the supplied
9676         public key to check the signature and not any more the one
9677         from the getkey.c
9678         (do_check): New.
9679         (check_signature): Most work moved to do_check.
9681 Mon Feb 16 14:48:57 1998  Werner Koch  (wk@isil.d.shuttle.de)
9683         * armor.c (find_header): Fixed another bug.
9685 Mon Feb 16 12:18:34 1998  Werner Koch  (wk@isil.d.shuttle.de)
9687         * getkey.c (scan_keyring): Add handling of compressed keyrings.
9689 Mon Feb 16 10:44:51 1998  Werner Koch  (wk@isil.d.shuttle.de)
9691         * g10.c, g10maint.c (strusage): Rewrote.
9692         (build_list): New
9694 Mon Feb 16 08:58:41 1998  Werner Koch  (wk@isil.d.shuttle.de)
9696         * armor.c (use_armor): New.
9698 Sat Feb 14 14:30:57 1998  Werner Koch  (wk@isil.d.shuttle.de)
9700         * mainproc.c (proc_tree): Sigclass fix.
9702 Sat Feb 14 14:16:33 1998  Werner Koch  (wk@isil.d.shuttle.de)
9704         * armor.c (armor_filter): Changed version and comment string.
9705         * encode.c, sign.c, keygen.c: Changed all comment packet strings.
9707 Sat Feb 14 12:39:24 1998  Werner Koch  (wk@isil.d.shuttle.de)
9709         * g10.c (aGenRevoke): New command.
9710         * revoke.c: New.
9711         * sign.c (make_keysig_packet): Add support for sigclass 0x20.
9713 Fri Feb 13 20:18:14 1998  Werner Koch  (wk@isil.d.shuttle.de)
9715         * ringedit.c (enum_keyblocks, keyring_enum): New.
9717 Fri Feb 13 19:33:40 1998  Werner Koch  (wk@isil.d.shuttle.de)
9719         * export.c: Add functionality.
9721         * keygen.c (generate_keypair): Moved the leading comment behind the
9722         key packet.
9723         * kbnode.c (walk_kbnode): Fixed.
9725         * g10.c (main): listing armored keys now work.
9727 Fri Feb 13 16:17:43 1998  Werner Koch  (wk@isil.d.shuttle.de)
9729         * parse-packet.c (parse_publickey, parse_signature): Fixed calls
9730         to mpi_read used for ELG b.
9732 Fri Feb 13 15:13:23 1998  Werner Koch  (wk@isil.d.shuttle.de)
9734         * g10.c (main): changed formatting of help output.
9736 Thu Feb 12 22:24:42 1998  Werner Koch  (wk@frodo)
9738         * pubkey-enc.c (get_session_key): rewritten
9741  Copyright 1998,1999,2000,2001,2002,2003,2004,2005,
9742            2006,2007 Free Software Foundation, Inc.
9744  This file is free software; as a special exception the author gives
9745  unlimited permission to copy and/or distribute it, with or without
9746  modifications, as long as this notice is preserved.
9748  This file is distributed in the hope that it will be useful, but
9749  WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
9750  implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.