1 2006-04-26 David Shaw <dshaw@jabberwocky.com>
3 * keyserver.c (path_makes_direct): New.
4 (keyserver_spawn): Used here to add "_uri" to certain gpgkeys_xxx
5 helpers when the meaning is different if a path is provided
8 2006-04-22 David Shaw <dshaw@jabberwocky.com>
10 * keyserver.c: Fix build problem with platforms that stick libcurl
11 in a place not in the regular include search path.
13 2006-04-20 David Shaw <dshaw@jabberwocky.com>
15 * options.h, gpg.c (main): Add --enable-dsa2 and --disable-dsa2.
18 * pkclist.c (algo_available): If --enable-dsa2 is set, we're
19 allowed to truncate hashes to fit DSA keys.
21 * sign.c (match_dsa_hash): New. Return the best match hash for a
23 (do_sign, hash_for, sign_file): When signing with a DSA key, if it
24 has q==160, assume it is an old DSA key and don't allow truncation
25 unless --enable-dsa2 is also set. q!=160 always allows truncation
26 since they must be DSA2 keys.
27 (make_keysig_packet): If the user doesn't specify a
28 --cert-digest-algo, use match_dsa_hash to pick the best hash for
31 2006-04-19 David Shaw <dshaw@jabberwocky.com>
33 * gpg.c (print_mds), armor.c (armor_filter, parse_hash_header):
36 * sign.c (write_plaintext_packet), encode.c (encode_simple):
37 Factor common literal packet setup code from here, to...
39 * main.h, plaintext.c (setup_plaintext_name): Here. New. Make sure
40 the literal packet filename field is UTF-8 encoded.
42 * options.h, gpg.c (main): Make sure --set-filename is UTF-8
43 encoded and note when filenames are already UTF-8.
45 2006-04-18 David Shaw <dshaw@jabberwocky.com>
47 * keyedit.c (menu_backsign): Give some more verbose errors when we
48 have no need to backsign.
50 2006-04-11 David Shaw <dshaw@jabberwocky.com>
52 * options.skel, photoid.c (get_default_photo_command): Find an
53 image viewer at runtime. Seems FC5 doesn't have xloadimage.
55 2006-04-08 David Shaw <dshaw@jabberwocky.com>
57 * getkey.c (parse_auto_key_locate): Fix dupe-removal code.
59 * keyedit.c (menu_backsign): Allow backsigning even if the secret
60 subkey doesn't have a binding signature.
62 * armor.c (radix64_read): Don't report EOF when reading only a pad
63 (=) character. The EOF actually starts after the pad.
65 * gpg.c (main): Make --export, --send-keys, --recv-keys,
66 --refresh-keys, and --fetch-keys follow their arguments from left
67 to right. Suggested by Peter Palfrader.
69 2006-04-08 Werner Koch <wk@g10code.com>
71 * mainproc.c (list_node): Print ring trust value only if not empty
72 and --with-colons has been given.
74 2006-04-05 Werner Koch <wk@g10code.com>
76 * getkey.c (user_id_not_found_utf8): New.
77 (get_primary_uid, get_user_id): Use it. Fixes Debian bug #205028
80 2006-04-03 Werner Koch <wk@g10code.com>
82 * import.c (check_prefs_warning): Merged strings for better
85 * gpg.c (main) [__GLIBC__]: Default to libpcsclite.so.1.
87 * status.h, status.c (STATUS_BEGIN_SIGNING): New. Suggested by
89 * textfilter.c (copy_clearsig_text): Issue new status code.
90 * sign.c (sign_file, sign_symencrypt_file): Ditto.
92 2006-03-31 David Shaw <dshaw@jabberwocky.com>
94 * getkey.c (get_pubkey_byname): Fix missing auto_key_retrieve
95 unlock. Fix strings to not start with a capital letter as per
98 2006-03-30 David Shaw <dshaw@jabberwocky.com>
100 * main.h, seskey.c (encode_md_value): Modify to allow a q size
101 greater than 160 bits as per DSA2. This will allow us to verify
102 and issue DSA2 signatures for some backwards compatibility once we
103 start generating DSA2 keys.
104 * sign.c (do_sign), sig-check.c (do_check): Change all callers.
106 * sign.c (do_sign): Enforce the 160-bit check for new signatures
107 here since encode_md_value can handle non-160-bit digests now.
108 This will need to come out once the standard for DSA2 is firmed
111 2006-03-28 Werner Koch <wk@g10code.com>
113 * openfile.c (overwrite_filep): Fix small cpr issue. Noted by
116 2006-03-22 David Shaw <dshaw@jabberwocky.com>
118 * getkey.c (parse_auto_key_locate): Silently strip out duplicates
119 rather than causing an error.
121 2006-03-22 Werner Koch <wk@g10code.com>
123 * sig-check.c (signature_check2): Changed warning URL to include faq.
124 * misc.c (idea_cipher_warn): Ditto.
126 2006-03-22 David Shaw <dshaw@jabberwocky.com>
128 * mainproc.c (get_pka_address): Fix bug introduced as part of
129 sig_to_notation conversion. Noted by Peter Palfradrer.
131 2006-03-21 Werner Koch <wk@g10code.com>
133 * cardglue.c (agent_scd_pksign): Allow the use of ripemd-160 along
136 2006-03-16 David Shaw <dshaw@jabberwocky.com>
138 * keyserver.c (keyserver_import_cert): Handle the IPGP CERT type
139 for both the fingerprint alone, and fingerprint+URL cases.
141 * getkey.c (get_pubkey_byname): Minor cleanup.
143 2006-03-13 David Shaw <dshaw@jabberwocky.com>
145 * keyserver-internal.h, keyserver.c (keyserver_import_pka): Use
146 the same API as the other auto-key-locate fetchers.
148 * getkey.c (get_pubkey_byname): Use the fingerprint of the key
149 that we actually fetched. This helps prevent problems where the
150 key that we fetched doesn't have the same name that we used to
151 fetch it. In the case of CERT and PKA, this is an actual security
152 requirement as the URL might point to a key put in by an attacker.
153 By forcing the use of the fingerprint, we won't use the attacker's
156 * keyserver-internal.h, keyserver.c (keyserver_spawn,
157 keyserver_work, keyserver_import_cert, keyserver_import_name,
158 keyserver_import_ldap): Pass fingerprint info through.
160 * main.h, import.c (import_one): Optionally return the fingerprint
161 of the key being imported.
162 (import_keys_internal, import_keys_stream, import): Change all
165 2006-03-12 David Shaw <dshaw@jabberwocky.com>
167 * sig-check.c (signature_check2): Print the backsig warning when
168 there is no backsig present. Give a URL for more information.
170 * keyedit.c (menu_backsign): Small tweak to work properly with
171 keys originally generated with older GnuPGs that included comments
174 2006-03-10 Werner Koch <wk@g10code.com>
176 * card-util.c (get_manufacturer): Added Vendor 3
178 2006-03-09 David Shaw <dshaw@jabberwocky.com>
180 * build-packet.c (string_to_notation): Add ability to indicate a
181 notation to be deleted with a '-' prefix.
183 * keyedit.c (menu_set_notation): Use it here to allow deleting a
184 notation marked with '-'. This works with either "-notation" or
187 2006-03-08 David Shaw <dshaw@jabberwocky.com>
189 * keyedit.c (menu_set_notation): New function to set notations on
191 (keyedit_menu): Call it here.
192 (tty_print_notations): Helper.
193 (show_prefs): Show notations in "showpref".
195 * mainproc.c (get_pka_address)
196 * keylist.c (show_notation): Remove
197 duplicate code by using notation functions.
199 * packet.h, build-packet.c (sig_to_notation)
200 * keygen.c (keygen_add_notations): Provide printable text for
201 non-human-readable notation values.
203 * packet.h, build-packet.c (sig_to_notation)
204 * keygen.c (keygen_add_notations): Tweak to handle non-human-readable
207 * options.h, sign.c (mk_notation_policy_etc)
208 * gpg.c (add_notation_data): Use it here for the various notation
211 * packet.h, main.h, keygen.c (keygen_add_notations)
212 * build-packet.c (string_to_notation, sig_to_notation)
213 (free_notation): New "one stop shopping" functions to handle
214 notations and start removing some code duplication.
216 2006-03-08 Werner Koch <wk@g10code.com>
218 * mainproc.c (do_check_sig): Use log_error for standalone revocations.
220 2006-03-07 David Shaw <dshaw@jabberwocky.com>
222 * options.h, mainproc.c (check_sig_and_print), gpg.c (main):
223 pka-lookups, not pka-lookup.
225 * options.h, gpg.c (main), keyedit.c [cmds], sig-check.c
226 (signature_check2): Rename "backsign" to "cross-certify" as a more
229 * options.h, gpg.c (main, parse_trust_model), pkclist.c
230 (check_signatures_trust), mainproc.c (check_sig_and_print,
231 pka_uri_from_sig), trustdb.c (init_trustdb): Some tweaks to PKA so
232 that it is a verify-option now.
234 2006-03-07 Werner Koch <wk@g10code.com>
236 * mainproc.c (proc_signature_packets): Return any_sig_seen to caller.
237 (check_sig_and_print): Option to partly allow the old behaviour.
238 * gpg.c: New option --allow-multisig-verification.
240 2006-03-06 David Shaw <dshaw@jabberwocky.com>
242 * sign.c (make_keysig_packet): Don't use MD5 for a RSA_S key as
243 that is not a PGP 2.x algorithm.
245 * mainproc.c (proc_compressed): "Uncompressed" is not a valid
246 compression algorithm.
248 2006-03-06 Werner Koch <wk@g10code.com>
250 * mainproc.c (check_sig_and_print): Made the composition test more
251 tight. This is due to another bug report by Tavis Ormandy.
252 (add_onepass_sig): Simplified.
254 2006-03-05 Werner Koch <wk@g10code.com>
256 * plaintext.c (handle_plaintext): Replace assert by explict error
257 conflict message. Reported by Tavis Ormandy.
259 2006-03-02 Werner Koch <wk@g10code.com>
261 * cardglue.c (check_card_serialno): Don't ask in batch mode.
263 2006-03-01 David Shaw <dshaw@jabberwocky.com>
265 * getkey.c (parse_auto_key_locate): Error if the user selects
266 "cert" or "pka" when those features are disabled.
268 * misc.c (has_invalid_email_chars): Fix some C syntax that broke
269 the compilers on SGI IRIX MIPS and Compaq/DEC OSF/1 Alpha. Noted
270 by Nelson H. F. Beebe.
272 2006-02-27 David Shaw <dshaw@jabberwocky.com>
274 * options.skel: Document auto-key-locate and give a pointer to
275 Simon Josefsson's page for CERT.
277 2006-02-24 David Shaw <dshaw@jabberwocky.com>
279 * keydb.h, getkey.c (release_akl), gpg.c (main): Add
280 --no-auto-key-locate.
282 * options.h, gpg.c (main): Keep track of each keyserver registered
283 so we can match on them later.
285 * keyserver-internal.h, keyserver.c (cmp_keyserver_spec,
286 keyserver_match), gpgv.c: New. Find a keyserver that matches ours
289 * getkey.c (get_pubkey_byname): Use it here to get the
290 per-keyserver options from an earlier keyserver.
292 2006-02-23 David Shaw <dshaw@jabberwocky.com>
294 * keyserver.c (parse_keyserver_options): Only change max_cert if
297 * options.c, gpg.c (main), keyserver.c (keyserver_spawn): No
298 special treatment of include-revoked, include-subkeys, and
299 try-dns-srv. These are keyserver features, and GPG shouldn't get
302 * keyserver.c (parse_keyserver_uri, add_canonical_option): Always
303 append options to the list, as ordering may be significant to the
306 * gpg.c (add_notation_data): Fix reversed logic for isascii check
307 when adding notations. Noted by Christian Biere.
309 * options.h, keyserver.c (add_canonical_option): New.
310 (parse_keyserver_options): Moved from here.
311 (parse_keyserver_uri): Use it here so each keyserver can have some
312 private options in addition to the main keyserver-options
313 (e.g. per-keyserver auth).
315 2006-02-22 David Shaw <dshaw@jabberwocky.com>
317 * options.h, keyserver-internal.h, keyserver.c
318 (keyserver_import_name), getkey.c (free_akl,
319 parse_auto_key_locate, get_pubkey_byname): The obvious next step:
320 allow arbitrary keyservers in the auto-key-locate list.
322 * options.h, keyserver.c (parse_keyserver_options): Remove
323 auto-cert-retrieve as it is no longer meaningful. Add
324 max-cert-size to allow users to pick a max key size retrieved via
327 * options.h, gpg.c (main), mainproc.c (check_sig_and_print),
328 keyserver.c (keyserver_opts): Rename auto-pka-retrieve to
329 honor-pka-record to be consistent with honor-keyserver-url.
331 * options.h, keydb.h, g10.c (main), getkey.c
332 (parse_auto_key_locate): Parse a list of key access methods.
333 (get_pubkey_byname): Walk the list here to try and retrieve keys
334 we don't have locally.
336 2006-02-21 David Shaw <dshaw@jabberwocky.com>
338 * getkey.c (get_pubkey_byname): Fix minor security problem with
339 PKA when importing at -r time. The URL in the PKA record may
340 point to a key put in by an attacker. Fix is to use the
341 fingerprint from the PKA record as the recipient. This ensures
342 that the PKA record is followed.
344 * keyserver-internal.h, keyserver.c (keyserver_import_pka): Return
345 the fingerprint we requested.
347 * gpgv.c: Stub keyserver_import_ldap.
349 * keyserver-internal.h, keyserver.c (keyserver_import_ldap):
350 Import using the PGP Universal trick of asking
351 ldap://keys.(maildomain) for the key.
353 2006-02-20 David Shaw <dshaw@jabberwocky.com>
355 * keyserver.c (parse_keyserver_uri): Include the scheme in the uri
356 even when we've assumed "hkp" when there was no scheme.
358 2006-02-20 Werner Koch <wk@g10code.com>
360 * apdu.c (open_pcsc_reader): As a precaution set LIST to NULL
363 2006-02-14 Werner Koch <wk@gnupg.org>
365 * verify.c (verify_signatures): Print warning also for NO_DATA.
367 * mainproc.c (struct mainproc_context): New field any_sig_seen.
368 (add_signature): Set it.
369 (proc_signature_packets): Test and return NO_DATA.
371 2006-02-09 Werner Koch <wk@g10code.com>
373 * gpg.c (main) <oLockNever>: Disable random locking.
375 2006-02-06 Werner Koch <wk@g10code.com>
377 * ccid-driver.c, ccid-driver.h: Updated from GnuPG 1.9. Changes:
378 * ccid-driver.h (CCID_DRIVER_ERR_NO_KEYPAD): New.
379 * ccid-driver.c (send_escape_cmd): New args RESULT, RESULTLEN and
380 RESULTMAX. Changed all callers.
381 (ccid_transceive_escape): New.
382 * ccid-driver.c (special_transport): New
383 (ccid_open_reader, do_close_reader, ccid_shutdown_reader)
384 (bulk_out, bulk_in): Add support for CardMan 4040 reader.
385 * ccid-driver.c (scan_or_find_devices): Factored most code out to
386 (scan_or_find_usb_device): .. new.
387 (make_reader_id): Fixed vendor mask.
389 2006-01-24 David Shaw <dshaw@jabberwocky.com>
391 * keyserver.c (parse_keyserver_uri): If there is a path present,
392 set the direct_uri flag so the right keyserver helper is run.
394 2006-01-22 David Shaw <dshaw@jabberwocky.com>
396 * keyserver.c (keyserver_spawn): Include the EXEEXT so we can find
397 keyserver helpers on systems that use extensions.
399 * misc.c (path_access) [HAVE_DRIVE_LETTERS]: Do the right thing
400 with drive letter systems.
402 2006-01-17 David Shaw <dshaw@jabberwocky.com>
404 * keydb.h, passphrase.c (next_to_last_passphrase): New. "Touch" a
405 passphrase as if it was used (move from next_pw to last_pw).
407 * pubkey-enc.c (get_session_key): Use it here to handle the case
408 where a passphrase happens to be correct for a secret key, but yet
409 that key isn't the anonymous recipient (i.e. the secret key could
410 be decrypted, but not the session key). This also handles the
411 case where a secret key is located on a card and a secret key with
412 no passphrase. Note this does not fix bug 594 (anonymous
413 recipients on smartcard do not work) - it just prevents the
414 anonymous search from stopping when the card is encountered.
416 2006-01-07 David Shaw <dshaw@jabberwocky.com>
418 * keyserver.c (keyserver_refresh): Fix problem when more than one
419 key in a refresh batch has a preferred keyserver set. Noted by
422 2006-01-01 David Shaw <dshaw@jabberwocky.com>
424 * mainproc.c (check_sig_and_print), keyserver.c
425 (keyserver_import_pka), card-util.c (fetch_url): Always require a
426 scheme:// for keyserver URLs except when used as part of the
427 --keyserver command for backwards compatibility.
429 * sign.c (write_signature_packets): Lost a digest_algo line.
431 * sign.c (hash_for): Add code to detect if the sk lives on a smart
432 card. If it does, only allow 160-bit hashes, a la DSA. This
433 involves passing the *sk in, so change all callers. This is
434 correct for today, given the current 160-bit q in DSA, and the
435 current SHA-1/RIPEMD160 support in the openpgp card. It will
436 almost certainly need changing down the road.
438 * app-openpgp.c (do_sign): Give user error if hash algorithm is
439 not supported by the card.
441 2005-12-23 David Shaw <dshaw@jabberwocky.com>
443 * keyserver.c (keyserver_import_pka): New. Moved from
444 getkey.c:get_pubkey_byname which was getting crowded.
446 * keyserver.c (keyserver_import_cert): Import a key found in DNS
447 via CERT records. Can handle both the PGP (actual key) and IPGP
450 * getkey.c (get_pubkey_byname): Call them both here.
452 * options.h, keyserver.c (parse_keyserver_options): Add
453 "auto-cert-retrieve" option with optional max size argument.
457 * keyserver-internal.h, keyserver.c (keyserver_spawn,
458 keyserver_work, keygerver_getname): New keyserver_getname function
459 to fetch keys by name.
461 * getkey.c (get_pubkey_byname): Call it here to enable locating
462 keys by full mailbox from a keyserver a la PKA. Try PKA first,
463 though, as it is likely to be faster.
465 2005-12-20 Werner Koch <wk@g10code.com>
467 * gpg.c: New option --allow-pka-lookup.
468 (parse_trust_model): Add "+pka" variants.
469 (main): Make KEYSERVER_AUTO_PKA_RETRIEVE teh default.
470 * options.h (opt): New fields PKA_TRUST_INCREASE and
472 * status.h (STATUS_PKA_TRUST_BAD, STATUS_PKA_TRUST_GOOD): New.
473 * pkclist.c (check_signatures_trust): Increase trust due to valid
474 PKA only if that new option has been set. Issue new status lines.
475 * trustdb.c (init_trustdb): Print info if this option is active.
476 * getkey.c (get_pubkey_byname): Honor allow-pka-lookup.
477 * mainproc.c (pka_uri_from_sig): Ditto.
479 * trustdb.c (validate_keys): Print no "ultimately trusted keys
480 found" only in non-quiet mode.
482 2005-12-19 David Shaw <dshaw@jabberwocky.com>
484 * getkey.c (merge_selfsigs_main): All primary keys can certify.
486 2005-12-18 David Shaw <dshaw@jabberwocky.com>
488 * gpg.c (main): Restore convert-sk-to-pk as programs rely on it.
490 * keyid.c (usagestr_from_pk): Remove special PUBKEY_USAGE_CERT
491 flag. It's no longer needed.
493 2005-12-14 David Shaw <dshaw@jabberwocky.com>
495 * gpg.c (main): Don't default to import-options convert-sk-to-pk.
496 It causes confusing warning messages when importing a PGP-exported
497 key that contains a secret key without selfsigs followed by the
500 2005-12-08 David Shaw <dshaw@jabberwocky.com>
502 * keyserver.c (keyserver_fetch): Switch on fast-import before we
503 --fetch-keys so we don't rebuild the trustdb after each fetch.
505 2005-12-08 Werner Koch <wk@g10code.com>
507 * gpg.c (main): Check for DBCS lead byte when converting the
508 homedir. By Kazuyoshi Kakihara. Fixes PR561.
510 * keyserver.c (keyserver_fetch): Made strings translatable.
512 2005-12-08 David Shaw <dshaw@jabberwocky.com>
514 * options.h, keyserver.c (curl_cant_handle, keyserver_spawn,
515 keyserver_fetch): Set a flag to indicate that we're doing a direct
516 URI fetch so we can differentiate between a keyserver operation
517 and a URI fetch for protocols like LDAP that can do either.
519 2005-12-07 David Shaw <dshaw@jabberwocky.com>
521 * keyserver.c (keyserver_spawn): Don't print "searching for key
522 00000000" when fetching a URI.
524 * keyserver-internal.h, keyserver.c (keyserver_fetch): New. Fetch
525 an arbitrary URI using the keyserver helpers.
527 * gpg.c (main): Call it from here for --fetch-keys.
529 2005-12-07 Werner Koch <wk@g10code.com>
531 * pkclist.c (do_we_trust): Add NOTREACHED comment.
533 2005-11-20 David Shaw <dshaw@jabberwocky.com>
535 * main.h, keylist.c (print_revokers): New. Print the "rvk"
536 designated revoker record. Moved from
537 keyedit.c:show_key_with_all_names_colon.
539 * keylist.c (list_keyblock_colon): Use it here ...
541 * keyedit.c (show_key_with_all_names_colon): ... and here.
543 2005-11-19 David Shaw <dshaw@jabberwocky.com>
545 * free-packet.c (copy_secret_key): Copy secret key into secure
546 memory since we may unprotect it.
548 * main.h, g10.c (main), revoke.c (gen_desig_revoke): Add local
549 user support so users can use -u with --desig-revoke. This
550 bypasses the interactive walk over the revocation keys.
552 2005-11-17 David Shaw <dshaw@jabberwocky.com>
554 * keyedit.c (keyedit_menu, menu_clean): Simplify clean options to
555 just "clean", and add "minimize".
557 * import.c (parse_import_options): Make help text match the export
558 versions of the options.
560 * options.h, export.c (parse_export_options, do_export_stream):
561 Reduce clean options to two: clean and minimize.
563 * trustdb.h, trustdb.c (clean_one_uid): New function that joins
564 uid and sig cleaning into one for a simple API outside trustdb.
566 2005-11-13 David Shaw <dshaw@jabberwocky.com>
568 * armor.c (parse_header_line): A fussy bit of 2440: header lines
569 are delimited with a colon-space pair. Therefore a line such as
570 "Comment: " (with a trailing space) is actually legal, albeit not
573 2005-11-11 David Shaw <dshaw@jabberwocky.com>
575 * trustdb.h, trustdb.c (clean_key): New function to handle key
576 cleaning from one convenient place.
578 * options.h, import.c (parse_import_options,
579 clean_sigs_from_all_uids, import_one): Reduce clean options to
580 two: clean and minimize.
582 * parse-packet.c (setup_user_id): Remove.
583 (parse_user_id, parse_attribute): Just use xmalloc_clear instead.
585 * trustdb.c (clean_uid_from_key, clean_uids_from_key):
586 Significantly simpler implementation.
588 2005-11-10 David Shaw <dshaw@jabberwocky.com>
590 * keyedit.c (keyedit_menu, menu_clean_sigs_from_uids): Add
593 * packet.h, keyedit.c (menu_clean_uids_from_key), trustdb.c
594 (clean_uids_from_key): Fix display bug where sigs cleaned for
595 other reasons caused a uid to appear as if it had been compacted.
597 * packet.h: Move some flags to a bitfield. Change all callers.
599 * options.h, import.c (parse_import_options,
600 clean_sigs_from_all_uids, import_one): Add import-minimal option.
601 Similar to export-minimal, except it works on the way in.
603 * trustdb.h, trustdb.c (clean_sigs_from_uid): Add flag to remove
604 all non-selfsigs from key during cleaning. Change all callers.
606 * export.c (do_export_stream): Use it here for export-minimal so
607 we don't need additional minimize code in the export path.
609 2005-11-06 David Shaw <dshaw@jabberwocky.com>
611 * options.skel: Add a section for --encrypt-to. This is Debian
612 bug 336211 by Javier Fernández-Sanguino Peña.
614 2005-11-05 David Shaw <dshaw@jabberwocky.com>
616 * Makefile.am: Include @LIBUSB_CPPFLAGS@ in our CPPFLAGS.
617 Strictly speaking this should be only in gpg_CPPFLAGS, but then we
618 have to compile everything twice for gpg and gpgv.
620 * apdu.c (open_pcsc_reader): Fix double free.
622 * gpg.c (main) [__APPLE__]: Default the PCSC driver to the OS X
623 location. Suggested by Patty A. Hardy.
625 2005-11-02 David Shaw <dshaw@jabberwocky.com>
627 * trustdb.c (clean_sigs_from_uid): Include sigs from unavailable
628 keys in the sigs that are cleaned. Suggested by Dirk Traulsen and
631 2005-11-01 David Shaw <dshaw@jabberwocky.com>
633 * import.c (import_one): Do collapse_uids() before we do any
634 cleaning so keyserver mangled keys with doubled user IDs can be
635 properly cleaned - possibly sigs on the different user IDs cancel
638 * import.c (parse_import_options), export.c
639 (parse_export_options): List "xxx-clean" before the longer options
640 so we don't end up with a partial match on the longer options.
642 * trustdb.c (clean_uids_from_key): Return proper number of cleaned
643 user IDs. Don't count user IDs as cleaned unless we actually
646 2005-10-27 David Shaw <dshaw@jabberwocky.com>
648 * keyedit.c (menu_addrevoker), getkey.c (finish_lookup): Fix
649 problem with adding a cert-only designated revoker. Code was
650 looking for a key with sign ability, and not cert ability. Noted
653 2005-10-27 Werner Koch <wk@g10code.com>
655 * gpg.c [__CYGWIN__]: Set default driver to winscard.dll.
657 * apdu.c, apdu.h: Updated from gnupg 1.9. Changes are:
658 * apdu.c [__CYGWIN__]: Make cygwin environment similar to _WIN32.
659 Suggested by John P. Clizbe.
660 * apdu.h (SW_HOST_NO_KEYPAD): New.
661 * apdu.c (host_sw_string): Support new code.
662 (reader_table_s): New field CHECK_KEYPAD.
663 (new_reader_slot, open_ct_reader, open_pcsc_reader)
664 (open_ccid_reader, open_rapdu_reader): Initialize it.
665 (check_ccid_keypad): New.
666 (apdu_check_keypad): New.
667 (apdu_send_le): Factored all code out to ...
668 (send_le): .. new. Takes an additional arg; changed all callers
669 of the orginal function to use this one with a NULL for the new
671 (apdu_send_simple_kp): New.
672 (ct_send_apdu, pcsc_send_apdu, my_rapdu_send_apdu)
673 (send_apdu_ccid): New arg PININFO.
674 (send_apdu_ccid): Use the new arg.
676 2005-10-26 David Shaw <dshaw@jabberwocky.com>
678 * keygen.c (proc_parameter_file): Default key and subkey usage
679 flags to algo capabilities if parameter file doesn't specify them.
680 Noted by Timo Schulz.
682 2005-10-18 Werner Koch <wk@g10code.com>
684 * cardglue.c (pin_cb): Fixed prompt for repeated PIN. Return
685 G10ERR_CANCELED and not just -1.
686 (status_sc_op_failure): New. Use it where we issue that status.
687 (pin_cb): Append serial number to the need-pin status message.
688 (agent_scd_change_pin): Add arg SERIALNO. Changed all callers.
689 (agent_scd_writekey): Ditto.
690 (agent_scd_setattr): Ditto.
691 (agent_scd_genkey): Ditto.
692 (agent_scd_checkpin): Pass serialno to the pin_cb.
694 * keygen.c (parse_expire_string): Allow setting the expire
695 interval using a "seconds=<n>" syntax. This is useful for
698 2005-10-17 Werner Koch <wk@g10code.com>
700 * export.c (do_export_stream): Factored some code out to ...
701 (skip_subkey_p): .. new.
702 (subkey_in_list_p, release_subkey_list): New.
703 (new_subkey_list_item): New.
704 (do_export_stream): Export exactly specified subkeys into one
707 2005-10-13 David Shaw <dshaw@jabberwocky.com>
709 * keyedit.c (keyedit_menu, menu_backsign): New "backsign" command
710 to add 0x19 backsigs to old keys that don't have them.
712 * misc.c (parse_options): Fix build warning.
714 * main.h, keygen.c (make_backsig): Make public.
716 2005-10-12 David Shaw <dshaw@jabberwocky.com>
718 * options.h, getkey.c (merge_selfsigs_subkey), gpg.c (main),
719 sig-check.c (signature_check2): Add --require-backsigs and
720 --no-require-backsigs. Currently defaults to
721 --no-require-backsigs.
723 2005-10-11 David Shaw <dshaw@jabberwocky.com>
725 * getkey.c (merge_selfsigs_subkey), sig-check.c
726 (signature_check2), keygen.c (make_backsig): Did some backsig
727 interop testing with the PGP folks. All is well, so I'm turning
728 generation of backsigs on for new keys. Checking for backsigs on
729 verification is still off.
731 2005-10-05 Werner Koch <wk@g10code.com>
733 * g10.c: Renamed to ..
735 * Makefile.am: Adjusted accordingly.
737 2005-09-22 Werner Koch <wk@g10code.com>
739 * sign.c (write_plaintext_packet): Don't print an empty file
740 warning if the file is actually too large.
741 * encode.c (encode_simple,encode_crypt): Ditto.
742 * progress.c (handle_progress): Adjusted for iobuf_get_filelength
744 * photoid.c (generate_photo_id): Ditto.
746 2005-09-20 Werner Koch <wk@g10code.com>
748 * mainproc.c (proc_symkey_enc): Take care of a canceled passphrase
751 2005-09-19 David Shaw <dshaw@jabberwocky.com>
753 * keylist.c (reorder_keyblock, do_reorder_keyblock): Reorder
754 attribute IDs as well as regular text IDs.
756 * plaintext.c (ask_for_detached_datafile): Use make_filename() on
757 filename so tilde expansion works.
759 2005-09-14 David Shaw <dshaw@jabberwocky.com>
761 * main.h, misc.c (parse_options): Add the ability to have help
762 strings in xxx-options commands.
764 * keyserver.c (keyserver_opts), import.c (parse_import_options),
765 export.c (parse_export_options), g10.c (parse_list_options, main):
766 Add help strings to xxx-options.
768 2005-09-10 David Shaw <dshaw@jabberwocky.com>
770 * keyedit.c (show_names): Moved name display code out from
771 show_key_with_all_names.
772 (keyedit_menu): Call it here for pref and showpref so they can
773 show only the selected user ID. Suggested by Timo Schulz.
775 2005-09-07 Werner Koch <wk@g10code.com>
777 * cardglue.h (GPG_ERR_TOO_LARGE): New.
779 * apdu.c, apdu.h, iso7816.c, iso7816.h
780 * ccid-driver.c, ccid-driver.h: Updated from GnuPG 1.9 source.
782 * iso7816.c (iso7816_select_path): New.
783 * iso7816.c (iso7816_read_binary): Use Le=0 when reading all
784 data. Handle 6C00 error and take 6B00 as indication for EOF.
785 * apdu.h (SW_EXACT_LENGTH_P): New.
786 * apdu.c (new_reader_slot, reset_pcsc_reader, pcsc_get_status)
787 (open_pcsc_reader): Set new reader state IS_T0.
788 (apdu_send_le): When doing T=0 make sure not to send Lc and Le.
789 Problem reported by Carl Meijer.
790 (apdu_send_direct): Initialize RESULTLEN.
792 * misc.c (parse_options): Allow meta option "help" to list all
793 options and to exit the program.
795 2005-09-02 David Shaw <dshaw@jabberwocky.com>
797 * parse-packet.c (enum_sig_subpkt, parse_signature,
798 parse_attribute_subpkts): Make a number of warnings verbose items.
799 These fire on many slightly mangled keys in the field, so the
800 warning is becoming burdensome.
802 2005-09-01 David Shaw <dshaw@jabberwocky.com>
804 * photoid.h, photoid.c (generate_photo_id): Allow passing in a
807 * keyedit.c (keyedit_menu, menu_adduid): Call it here so "addphoto
810 2005-08-31 David Shaw <dshaw@jabberwocky.com>
812 * photoid.c (generate_photo_id): Enable readline completion and
813 tilde expansion for the JPEG prompt.
815 2005-08-30 Werner Koch <wk@g10code.com>
817 * passphrase.c (agent_open): Print a warning and not an error in
818 case of a missing agent. Should fix Debian bug #325578.
820 2005-08-26 David Shaw <dshaw@jabberwocky.com>
822 * misc.c (openpgp_pk_algo_usage): Default to allowing CERT for
825 * keyedit.c (sign_uids): Don't request a signing key to make a
828 * keygen.c (do_add_key_flags): Force the certify flag on for all
829 primary keys, as the spec requires primary keys must be able to
830 certify (if nothing else, which key is going to issue the user ID
832 (print_key_flags): Show certify flag.
833 (ask_key_flags, ask_algo): Don't allow setting the C flag for
836 * keyid.c (usagestr_from_pk), getkey.c (parse_key_usage):
837 Distinguish between a sign/certify key and a certify-only key.
839 * keyedit.c (ask_revoke_sig): Add a revsig --with-colons mode.
840 Suggested by Michael Schierl.
842 2005-08-21 David Shaw <dshaw@jabberwocky.com>
844 * Makefile.am: No need to link with curl any longer.
846 * main.h, misc.c (path_access): New. Same as access() but does a
847 PATH search like execlp.
849 * keyserver.c (curl_can_handle): Removed. Replaced by...
850 (curl_cant_handle): We are now relying on curl as the handler of
851 last resort. This is necessary because PGP LDAP and curl LDAP are
853 (keyserver_typemap): Only test for ldap and ldaps.
854 (keyserver_spawn): If a given handler is unusable (as determined
855 by path_access()) then try gpgkeys_curl.
857 * exec.h, exec.c (make_tempdir, expand_args, exec_write,
858 exec_read): Minor cleanup to use bitfield flags instead of a bunch
861 2005-08-20 David Shaw <dshaw@jabberwocky.com>
863 * g10.c (main): Add aliases sign-with->local-user and
864 user->recipient to make switching from PGP command line to GPG
867 2005-08-19 David Shaw <dshaw@jabberwocky.com>
869 * options.skel: Remove the surfnet LDAP keyserver from the list of
870 samples since it is being shut down.
872 * getkey.c (classify_user_id): Disable the '.' and '+' search
873 modes since they aren't supported yet.
875 2005-08-05 David Shaw <dshaw@jabberwocky.com>
877 * g10.c (main), passphrase.c (set_passphrase_from_string): New
878 --passphrase command line option. Only useful in very special
881 2005-08-05 Werner Koch <wk@g10code.com>
883 * gpgv.c (keyserver_import_fprint): New stub.
885 * keygen.c (ask_user_id): Moved email checking code out to ..
886 * misc.c (is_valid_mailbox): .. new.
887 * mainproc.c (get_pka_address): Use it here.
888 * getkey.c (get_pubkey_byname): Add falback to auto-retrieve a key
889 via the PKA mechanism.
891 * options.h (KEYSERVER_AUTO_PKA_RETRIEVE): New.
892 * keyserver.c (keyserver_opts): Ditto.
893 * mainproc.c (check_sig_and_print): Use it here to retrieve keys
894 from a PKA DNS record.
896 * pkclist.c (build_pk_list): Add comments to this function;
899 2005-08-04 David Shaw <dshaw@jabberwocky.com>
901 * keygen.c (proc_parameter_file): Sanity check items in keygen
902 batch file. Noted by Michael Schierl.
904 * pkclist.c (do_edit_ownertrust): Don't allow ownertrust level 0.
905 Noted by Michael Schierl.
907 * keygen.c (write_keyblock): Don't try and build deleted kbnodes
908 since we start our tree with one.
910 2005-08-04 Werner Koch <wk@g10code.com>
912 * export.c (do_export_stream): Skip on-card keys when only subkeys
913 are to be exported. It does not make sense to replace the on-card
914 key stub by a no-key stub.
916 * revoke.c (gen_revoke): Check for non-online keys.
918 * seckey-cert.c (is_secret_key_protected): Return -3 for
919 non-online key stubs. The old code assumes that a protection
920 algorithm is still set but in some cases this one is 0 and thus it
921 won't be possible to decide whether it is unprotected or
924 2005-07-28 Werner Koch <wk@g10code.com>
926 * Makefile.am (other_libs): Add SRVLIBS.
928 * parse-packet.c (can_handle_critical_notation): We know about
929 pka-address@gnupg.org.
930 * packet.h (PKT_signature): New fields PKA_INFO and PKA_TRIED.
932 * free-packet.c (cp_pka_info): New.
933 (free_seckey_enc, copy_signature): Support new fields.
934 * mainproc.c (get_pka_address, pka_uri_from_sig): New.
935 (check_sig_and_print): Try to get the keyserver from the PKA
937 * pkclist.c (check_signatures_trust): Adjust the trust based on
939 * gpgv.c (parse_keyserver_uri): New stub.
941 * keygen.c (has_invalid_email_chars): Moved to ..
942 * misc.c (has_invalid_email_chars): .. here and made global.
944 2005-07-27 Werner Koch <wk@g10code.com>
946 * export.c (do_export_stream): Make two strings translatable.
948 2005-07-26 David Shaw <dshaw@jabberwocky.com>
950 * keyserver.c (keyserver_typemap): Special-case LDAP since curl
951 will report that it can handle it, and we don't want it to.
953 2005-07-26 Werner Koch <wk@g10code.com>
955 * passphrase.c (agent_get_passphrase): Make sure to release the
957 (agent_open): Add arg ORIG_CODESET and switch back to it in case
958 of error. Changed all callers.
960 2005-07-22 David Shaw <dshaw@jabberwocky.com>
962 * keyedit.c (sign_uids): Don't prompt for setting signature expiry
963 to match key expiry unless --ask-cert-expire is set. Suggested by
966 2005-07-22 Werner Koch <wk@g10code.com>
968 * g10.c, options.h: New option --exit-on-status-write-error.
969 * status.c (write_status_text): Make use of this option.
971 2005-07-22 David Shaw <dshaw@jabberwocky.com>
973 * options.h, g10.c (main): Removed option --no-interactive-selection.
974 * keyedit.c (keyedit_menu): Use --interactive to enable the uid
975 walking when signing a key with no uids specified to sign.
977 * keylist.c (list_keyblock_print): Fix silly typo. Noted by Greg
980 2005-07-20 Werner Koch <wk@g10code.com>
982 * openfile.c (open_outfile): Disable FD caching for created files.
983 * encode.c (encode_simple, encode_crypt): Disable FD caching for
985 * verify.c (verify_one_file): Ditto.
986 * decrypt.c (decrypt_messages): Ditto. This is bug #479.
988 * misc.c (get_libexecdir) [W32]: Changed to return the value of
989 program used to create the process.
990 * keyserver.c (keyserver_spawn) [DISABLE_KEYSERVER_PATH]: Don't
991 change the exec-path at all.
993 2005-07-20 David Shaw <dshaw@jabberwocky.com>
995 * keyserver.c (curl_can_handle): New. Do a runtime check against
996 libcurl to see if it can handle a particular protocol.
997 (keyserver_typemap): Call it here.
999 * Makefile.am: Pull in libcurl for curl_version_info() if used.
1001 2005-07-19 Werner Koch <wk@g10code.com>
1003 * g10.c, options.h: New option --limit-card-insert-tries.
1004 * cardglue.c (open_card): Use it.
1006 * export.c (parse_export_options): New option
1007 export-reset-subkey-passwd.
1008 (do_export_stream): Implement it.
1010 * misc.c (get_libexecdir): New.
1011 * keyserver.c (keyserver_spawn): Use it
1013 2005-07-18 Werner Koch <wk@g10code.com>
1015 * tdbio.c (open_db): Check for EROFS. Suggested by Bryce Nichols.
1017 2005-07-08 David Shaw <dshaw@jabberwocky.com>
1019 * trustdb.c (clean_uids_from_key): Don't keep a valid selfsig
1020 around when compacting a uid. There is no reason to make an
1021 attacker's job easier - this way they only have a revocation which
1022 is useless in bringing the uid back.
1024 * keydb.h, kbnode.c (undelete_kbnode): Removed. No longer needed.
1026 * import.c (chk_self_sigs): Allow a uid revocation to be enough to
1027 allow importing a particular uid (no self sig needed). This
1028 allows importing compacted uids.
1030 2005-06-20 David Shaw <dshaw@jabberwocky.com>
1032 * keygen.c (save_unprotected_key_to_card): Better fix for gcc4
1035 2005-06-20 Werner Koch <wk@g10code.com>
1037 * g10.c, options.h: New option --no-interactive-selection.
1038 * keyedit.c (keyedit_menu): Use it.
1040 2005-06-18 Werner Koch <wk@g10code.com>
1042 * parse-packet.c (parse_signature): Use log_info for messages
1043 about missing timestamp or keyid. In case we don't use that key
1044 there won't be no further error and thus gpg does not need to
1045 return with an error.
1047 2005-06-13 David Shaw <dshaw@jabberwocky.com>
1049 * keygen.c (save_unprotected_key_to_card): Fix gcc4 warning.
1051 * options.h, import.c (parse_import_options, import_one): Add
1052 import-clean-uids option to automatically compact unusable uids
1053 when importing. Like import-clean-sigs, this may nodify the local
1056 * trustdb.c (clean_uids_from_key): Only allow selfsigs to be a
1057 candidate for re-inclusion.
1059 2005-06-12 David Shaw <dshaw@jabberwocky.com>
1061 * options.h, import.c (parse_import_options,
1062 clean_sigs_from_all_uids, import_one): Add import-clean-sigs
1063 option to automatically clean a key when importing. Note that
1064 when importing a key that is already on the local keyring, the
1065 clean applies to the merged key - i.e. existing superceded or
1066 invalid signatures are removed.
1068 * getkey.c (merge_selfsigs_main, merge_selfsigs_subkey): Make sure
1069 that even after keys may be merged together, we only have one
1072 2005-06-09 David Shaw <dshaw@jabberwocky.com>
1074 * options.h, import.c (parse_import_options, delete_inv_parts):
1075 import-unusable-sigs is now a noop.
1077 * options.h, export.c (do_export_stream), keyedit.c (keyedit_menu,
1078 menu_clean_subkeys_from_key), trustdb.h, trustdb.c
1079 (clean_subkeys_from_key): Remove subkey cleaning function. It is
1080 of very limited usefulness since it cannot be used on any subkey
1081 that can sign, and can only affect multiple selfsigs on
1082 encryption-only subkeys.
1084 * keydb.h, kbnode.c (undelete_kbnode): New function to undelete a
1087 * trustdb.c (clean_uids_from_key): Further tweak the algorithm so
1088 that the last good selfsig is kept when the chosen selfsig is a
1091 2005-06-08 David Shaw <dshaw@jabberwocky.com>
1093 * trustdb.c (clean_uids_from_key), keyedit.c
1094 (menu_clean_uids_from_key): Tweak algorithm to preserve the last
1095 selfsig which helps prevent uid resurrections.
1097 * getkey.c (fixup_uidnode, merge_selfsigs_main): Handle both
1098 expired and revoked uids in fixup_uidnode(). No need to special
1099 case in merge_selfsigs_main(). This also means that an expired
1100 uid will have its selfsig tagged with chosen_selfsig.
1102 2005-06-07 David Shaw <dshaw@jabberwocky.com>
1104 * options.h, g10.c (main), export.c (parse_export_options,
1105 do_export_stream): Add export-options export-clean-sigs,
1106 export-clean-uids, export-clean-subkeys, and export-clean which is
1107 all of the above. Export-minimal is the same except it also
1108 removes all non-selfsigs. export-unusable-sigs is now a noop.
1110 2005-06-06 Werner Koch <wk@g10code.com>
1112 * cardglue.c (open_card): Emit new CARDCTRL status 5 for no reader
1115 2005-06-02 Werner Koch <wk@g10code.com>
1117 * app-openpgp.c (do_writekey): Typo fix.
1119 * status.c, status.h: Removed STATUS_BAD_PASSPHRASE_PIN.
1121 2005-06-01 David Shaw <dshaw@jabberwocky.com>
1123 * signal.c [HAVE_DOSISH_SYSTEM]: Fix unused function warnings on
1124 mingw32. Noted by Joe Vender.
1126 * passphrase.c [_WIN32]: Remove unused variables.
1128 2005-05-31 David Shaw <dshaw@jabberwocky.com>
1130 * keyedit.c (menu_clean_uids_from_key,
1131 menu_clean_subkeys_from_key), trustdb.c (clean_uids_from_key,
1132 clean_subkeys_from_key): Fix mingw32 build warnings. Noted by Joe
1135 2005-05-31 Werner Koch <wk@g10code.com>
1137 * keydb.h [!ENABLE_AGENT_SUPPORT]: Define dummy types.
1139 * cardglue.c (assuan_strerror, assuan_transact): Dummy functions
1140 if not build with agent support.
1142 * armor.c (check_input): Don't bail out on invalid header lines
1143 unless in struict rfc2440 mode. Suggested by Richard Patterson.
1145 2005-05-30 Werner Koch <wk@g10code.com>
1147 * tlv.c: Add hack to compile without gpg-error.h.
1149 2005-05-30 David Shaw <dshaw@jabberwocky.com>
1151 * trustdb.h, trustdb.c (clean_subkeys_from_key): New. Walk
1152 through the subkeys on a key, and mark any that aren't usable for
1153 deletion. Note that a signing subkey is never marked for deletion
1154 since these keys are still useful after expiration or revocation.
1156 * keyedit.c (menu_clean_subkeys_from_key): New function to call
1157 clean_subkeys_from_key() on a key. Note that the strings here are
1158 not marked for translation yet. The UI is still in flux, and
1159 there is no point in annoying the translators twice.
1160 (keyedit_menu): Call it here as part of the "clean" command.
1162 2005-05-29 David Shaw <dshaw@jabberwocky.com>
1164 * trustdb.h, trustdb.c (clean_uids_from_key): New. Walk through
1165 the user IDs on a key, and mark any that aren't valid for
1168 * keyedit.c (menu_clean_uids_from_key): New function to call
1169 clean_uids_from_key() on a key.
1170 (keyedit_menu): Call it from here as part of the "clean" command.
1172 2005-05-26 David Shaw <dshaw@jabberwocky.com>
1174 * g10.c (main): Default {export|import}-unusable-sigs to off until
1175 the "clean" UI can be finished.
1177 2005-05-24 Werner Koch <wk@g10code.com>
1179 * passphrase.c (ask_passphrase): Unescape the description string.
1180 * cardglue.c (unescape_status_string): Removed. Changed all
1182 * misc.c (unescape_percent_string): New.
1184 * g10.c (add_notation_data): Check number of at-signs.
1186 2005-05-23 Werner Koch <wk@g10code.com>
1188 * app-openpgp.c, app-common.h: Again updated from gnupg 1.9 CVS.
1190 * cardglue.c (open_card): Check USE_AGENT.
1191 (agent_scd_checkpin): Implemented Assuan part.
1192 (agent_scd_change_pin): Ditto.
1194 * g10.c (main): Option --debug-ccid-driver may now be given
1195 several times increase the debug level.
1197 * ccid-driver.c (parse_ccid_descriptor): Mark SCR335 FW version
1199 (do_close_reader): Never do a reset. The caller should instead
1200 make sure that the reader has been closed properly. The new retry
1201 code in ccid_slot_status will make sure that the readersatrts up
1202 fine even if the last process didn't closed the USB connection
1204 (ccid_get_atr): For certain readers try switching to ISO mode.
1205 Thanks to Ludovic Rousseau for this hint and the magic numbers.
1206 (print_command_failed): New.
1207 (bulk_in): Use it here. Add new arg NO_DEBUG.
1208 (ccid_slot_status): Disabled debugging.
1210 2005-05-21 Werner Koch <wk@g10code.com>
1212 * cardglue.c (send_status_info): Make CTRL optional.
1213 (agent_scd_writekey, inq_writekey_parms): New.
1214 (agent_openpgp_storekey): Removed.
1215 * cardglue.h: Add a few more error code mappings.
1216 * keygen.c (copy_mpi): Removed.
1217 (save_unprotected_key_to_card): Changed to use agent_scd_writekey.
1218 * app-common.h, app-openpgp.c, tlv.c, tlv.h: Updated from newer
1219 version in gnupg 1.9 CVS.
1221 2005-05-20 Werner Koch <wk@g10code.com>
1223 * ccid-driver.c (ccid_transceive): Arghhh. The seqno is another
1224 bit in the R-block than in the I block, this was wrong at one
1225 place. Fixes bug #419 and hopefully several others.
1227 2005-05-19 Werner Koch <wk@g10code.com>
1229 * app-common.h, app-openpgp.c, tlv.c, tlv.h: Updated from newer
1230 version in gnupg 1.9 CVS.
1232 2005-05-18 Werner Koch <wk@g10code.com>
1234 * passphrase.c (agent_open): Made global and add arg TRY.
1235 (agent_close): Made global.
1237 * app-common.h (app_t): Add a field to store the Assuan context.
1239 2005-05-13 David Shaw <dshaw@jabberwocky.com>
1241 * build-packet.c (do_comment): Removed.
1242 (build_packet): Ignore comment packets.
1244 * export.c (do_export_stream): Don't export comment packets any
1247 * options.h, g10.c (main): Remove --sk-comments and
1248 --no-sk-comments options, and replace with no-op.
1250 2005-05-11 David Shaw <dshaw@jabberwocky.com>
1252 * keygen.c (write_selfsigs): Rename from write_selfsig. Write the
1253 same selfsig into both the pk and sk, so that someone importing
1254 their sk (which will get an autoconvert to the pk) won't end up
1256 (do_generate_keypair): Call it from here.
1258 * parse-packet.c (can_handle_critical_notation): New. Check for
1259 particular notation tags that we will accept when critical.
1260 Currently, that's only preferred-email-encoding@pgp.com, since we
1261 know how to handle it (pass it through to a mail program).
1262 (can_handle_critical): Call it from here.
1263 (parse_one_sig_subpkt): Sanity check that notations are
1264 well-formed in that the internal lengths add up to the size of the
1267 2005-05-07 Werner Koch <wk@g10code.com>
1269 * ccid-driver.c (do_close_reader): Don't do a reset before close.
1270 Some folks reported that it makes the SCR335 hang less often.
1271 Look at the source on how to re-enable it.
1273 2005-05-06 David Shaw <dshaw@jabberwocky.com>
1275 * main.h, keygen.c (parse_expire_string, ask_expire_interval),
1276 sign.c (sign_file, clearsign_file, sign_symencrypt_file), g10.c
1277 (main), keyedit.c (sign_uids): Use seconds rather than days
1278 internally to calculate expiration. We no longer need the
1279 day-based code as we don't generate v3 keys.
1281 * sign.c (sign_file, clearsign_file, sign_symencrypt_file): Use
1282 the default sig expire value when signing in batchmode.
1284 2005-05-05 David Shaw <dshaw@jabberwocky.com>
1286 * Makefile.am, packet.h, main.h, comment.c: Remove comment.c. We
1287 don't use any of these functions any longer.
1289 * keygen.c (start_tree): New function to "prime" a KBNODE list.
1290 (do_generate_keypair): Use it here rather than creating and
1291 deleting a comment packet.
1293 * keygen.c (gen_elg, gen_dsa): Do not put public factors in secret
1296 * options.h, encode.c (encode_simple, encode_crypt), keygen.c
1297 (do_create): Remove disabled comment packet code.
1299 * keygen.c (keygen_set_std_prefs): Add SHA256 and BZip2 to default
1302 * options.h, g10.c (main): Add new --default-sig-expire and
1303 --default-cert-expire options. Suggested by Florian Weimer.
1305 * main.h, keygen.c (parse_expire_string, ask_expire_interval): Use
1306 defaults passed in, or "0" to control what default expiration is.
1308 * keyedit.c (sign_uids), sign.c (sign_file, clearsign_file,
1309 sign_symencrypt_file): Call them here, so that default expiration
1310 is used when --ask-xxxxx-expire is off.
1312 2005-05-03 Werner Koch <wk@g10code.com>
1314 * passphrase.c (agent_get_passphrase): Add new arg CACHEID.
1315 Changed all callers.
1316 (ask_passphrase): Add new arg CACHEID and use it in agent mode.
1317 Changed all callers.
1318 (passphrase_clear_cache): New arg CACHEID. Changed all callers.
1319 * cardglue.c (format_cacheid): New.
1320 (pin_cb): Compute a cache ID.
1321 (agent_scd_pksign, agent_scd_pkdecrypt): Use it.
1322 (agent_clear_pin_cache): New.
1323 * card-util.c (change_pin): Clear the PIN cache.
1324 (check_pin_for_key_operation): Ditto.
1326 2005-04-24 David Shaw <dshaw@jabberwocky.com>
1328 * trustdb.h, trustdb.c (mark_usable_uid_certs): Add flags for the
1329 no-pubkey and chosen revocation cases.
1330 (clean_uid): New function to clean a user ID of unusable (as
1331 defined by mark_usable_uid_certs) certs.
1333 * keyedit.c (keyedit_menu, menu_clean_uids): Call it here for new
1334 "clean" command that removes unusable sigs from a key.
1336 * trustdb.h, keyedit.c (keyedit_menu, menu_select_uid_namehash):
1337 Allow specifying user ID via the namehash from --with-colons
1338 --fixed-list-mode --list-keys. Suggested by Peter Palfrader.
1340 2005-04-21 David Shaw <dshaw@jabberwocky.com>
1342 * keyedit.c (sign_uids, keyedit_menu): When the user requests to
1343 sign a key without specifying which user IDs to sign, and declines
1344 to sign all user IDs, walk through the set of user IDs and prompt
1347 * mainproc.c (symkey_decrypt_seskey): There is no need to have an
1348 extra check for a bad passphrase and/or unknown cipher algorithm
1349 here. We'll fail quite happily later, and usually with a better
1350 error message to boot.
1352 2005-04-20 Werner Koch <wk@g10code.com>
1354 * sign.c (sign_file, sign_symencrypt_file): Allow for hash
1357 2005-04-16 David Shaw <dshaw@jabberwocky.com>
1359 * keyserver.c (keyserver_spawn): Free some memory.
1361 * sign.c (hash_for): Comments.
1363 2005-04-11 Werner Koch <wk@g10code.com>
1365 * g10.c (main, add_notation_data, add_policy_url)
1366 (add_keyserver_url): Use isascii() to protect the isfoo macros and
1367 to replace direct tests. Possible problems noted by Christian
1369 * keyserver.c (parse_keyserver_uri): Ditto.
1371 2005-04-07 Werner Koch <wk@g10code.com>
1373 * g10.c (main): Declare --pipemode deprecated.
1374 * misc.c (deprecated_command): New.
1376 * ccid-driver.c (ccid_slot_status): Fixed debug messages.
1378 * card-util.c (card_edit): Add command "verify". Enhanced admin
1379 command to allow optional arguments "on", "off" and "verify".
1380 (card_status): Print private DOs in colon mode.
1381 * app-openpgp.c (do_check_pin): Add hack to allow verification of
1384 2005-04-01 Werner Koch <wk@g10code.com>
1386 * keygen.c (keygen_set_std_prefs): Explain the chosen order of
1389 2005-04-01 David Shaw <dshaw@jabberwocky.com>
1391 * mainproc.c (proc_plaintext): Properly handle SIG+LITERAL
1392 (old-style PGP) signatures that use hashes other than SHA-1,
1395 2005-03-31 David Shaw <dshaw@jabberwocky.com>
1397 * exec.h, exec.c (set_exec_path): Remove some dead code and change
1398 all callers. We no longer need to append to $PATH.
1400 2005-03-31 Werner Koch <wk@g10code.com>
1402 * passphrase.c (agent_open): Dropped support for W32 - is was
1403 never actually used. Removed support for the old non-assuan
1404 protocol; there has never been a matured implementation and
1405 gpg-agent is now arround for quite some time. Rewritten to make
1406 use of the Assuan code from ../util.
1407 (gpga_protocol_codes): Removed.
1409 (agent_close): Simplified for use with Assuan.
1410 (agent_get_passphrase, passphrase_clear_cache): Removed support
1411 for old protocol. Use only with ENABLE_CARD_SUPPORT defined.
1412 (agent_send_all_options): Take assuan context instead of a file
1414 (agent_send_option): Likewise. Use assuan_transact.
1415 * passphrase.c (writen, readaline): Removed.
1417 * g10.c (main): Print a warning if --use-agent has been used but
1418 it has not been build with support for it.
1420 * keydb.c (keydb_add_resource): Clarify meaning of flags. Add new
1421 flag 4. Use log_info for errors registering the default secret key.
1422 * g10.c (main): Flag the default keyrings.
1424 2005-03-30 David Shaw <dshaw@jabberwocky.com>
1426 * keyserver.c (keyserver_spawn): Don't mess about with the $PATH.
1427 Rather, call keyserver helpers with the full path. This fixes
1428 some PATH-inspired DLL problems on W32. Noted by Carlo Luciano
1431 2005-03-30 Werner Koch <wk@g10code.com>
1433 * cardglue.c (pin_cb): Print a warning if the info string hack is
1434 not there. This may happen due to typos in the translation.
1436 2005-03-22 Werner Koch <wk@g10code.com>
1438 * misc.c (w32_shgetfolderpath) [W32]: Changed declaration of
1439 function ptr. Noted by Tim Costello.
1440 * apdu.c [W32]: Changed declaration of dlopened function pointers.
1442 2005-03-21 David Shaw <dshaw@jabberwocky.com>
1444 * gpgv.c: Stubs for tty_enable_completion() &
1445 tty_disable_completion().
1447 * openfile.c (ask_outfile_name): Enable readline completion when
1448 prompting for an output filename.
1450 * plaintext.c (ask_for_detached_datafile): Enable readline
1451 completion when prompting for a detached sig datafile.
1453 2005-03-21 Werner Koch <wk@g10code.com>
1455 * keyedit.c (command_generator, keyedit_completion): Changed
1457 * card-util.c (command_generator, card_edit_completion): Ditto.
1459 2005-03-19 David Shaw <dshaw@jabberwocky.com>
1461 * card-util.c (command_generator, card_edit_completion)
1462 [GNUPG_MAJOR_VERSION==1 && HAVE_LIBREADLINE]: New functions to
1463 enable command completion in the --card-edit menu.
1464 (card_edit): Call them here.
1466 2005-03-18 David Shaw <dshaw@jabberwocky.com>
1468 * keyedit.c (command_generator, keyedit_completion)
1469 [HAVE_LIBREADLINE]: New functions to enable command completion in
1470 the --edit-key menu.
1471 (keyedit_menu): Call them here.
1473 2005-03-17 David Shaw <dshaw@jabberwocky.com>
1475 * getkey.c (get_seckey_byname2): If no explicit default key is
1476 set, don't pick a disabled default. Noted by David Crick.
1478 * Makefile.am: Calculate GNUPG_LIBEXECDIR directly. Do not
1479 redefine $libexecdir.
1481 * options.h, keyserver.c (parse_keyserver_options)
1482 (keyserver_spawn): Don't treat 'verbose' and 'include-disabled' as
1483 special. Just pass them through silently to the keyserver helper.
1485 2005-03-16 Werner Koch <wk@g10code.com>
1487 * ccid-driver.c (parse_ccid_descriptor): Make SCM workaround
1488 reader type specific.
1489 (scan_or_find_devices): Do not check the interface subclass in the
1490 SPR532 kludge, as this depends on the firmware version.
1491 (ccid_get_atr): Get the Slot status first. This solves the
1492 problem with readers hanging on recent Linux 2.6.x.
1493 (bulk_in): Add argument TIMEOUT and changed all callers to pass an
1494 appropriate one. Change the standard timeout from 10 to 5 seconds.
1495 (ccid_slot_status): Add a retry code with an initial short timeout.
1496 (do_close_reader): Do an usb_reset before closing the reader.
1498 2005-03-14 Werner Koch <wk@g10code.com>
1500 * card-util.c (card_status): Use isotimestamp and not the
1501 localized asctimestamp to match the timezone used in the key
1504 * cardglue.c (pin_cb): Disable debug output.
1506 2005-03-11 Werner Koch <wk@g10code.com>
1508 * keygen.c (gen_card_key_with_backup): Write status line with the
1511 * status.h, status.h (STATUS_BACKUP_KEY_CREATED): New.
1513 2005-03-10 David Shaw <dshaw@jabberwocky.com>
1515 * keyserver.c (parse_keyserver_options): Accept honor-http-proxy
1516 as an alias for http-proxy.
1518 * delkey.c (do_delete_key, delete_keys): Fix problem with --expert
1519 preventing --delete-secret-and-public-keys from deleting secret
1522 2005-03-10 Werner Koch <wk@g10code.com>
1524 * keyedit.c (keyedit_menu) [W32]: Run the trustdb stale check
1527 2005-03-07 Werner Koch <wk@g10code.com>
1529 * cardglue.c (agent_scd_pkdecrypt, agent_scd_pksign)
1530 (agent_scd_genkey, agent_scd_setattr, agent_scd_change_pin)
1531 (agent_scd_checkpin, agent_openpgp_storekey): Make sure to send a
1532 SC_OP_FAILURE after card operations which might change data.
1533 * card-util.c (change_pin): Send a SC_OP_SUCCESS after a PIN has
1535 (change_name): Removed a debug output.
1536 * status.h, status.c: New codes BAD_PASSPHRASE_PIN, SC_OP_FAILURE
1539 2005-02-24 David Shaw <dshaw@jabberwocky.com>
1541 * keyedit.c (keyedit_menu): Only print the key signing hint when
1542 signing from a place where it is useful (i.e. --edit-key and not
1545 2005-02-16 Werner Koch <wk@g10code.com>
1547 * card-util.c (fetch_url): Fetch the key from the default
1548 keyserver if no URL is available.
1550 2005-02-15 Werner Koch <wk@g10code.com>
1552 * passphrase.c (agent_get_passphrase): Don't call free_public_key
1554 (passphrase_clear_cache): Ditto. Removed debug output.
1555 (passphrase_to_dek): Ditto.
1557 2005-02-13 Werner Koch <wk@g10code.com>
1559 * keyedit.c (cmds): Limit code to 80 columns. Add command
1562 2005-02-09 David Shaw <dshaw@jabberwocky.com>
1564 * encr-data.c (decrypt_data): Use it here to turn off the "quick
1565 check" bytes for PK decryptions. This is in regards to the Mister
1566 and Zuccherato attack on OpenPGP CFB mode.
1568 * mainproc.c (proc_symkey_enc): Set a flag to indicate that a
1569 particular session key came from a passphrase and not a PK.
1571 2005-02-08 Werner Koch <wk@g10code.com>
1573 * misc.c (w32_shgetfolderpath): New.
1574 (default_homedir): Use it to avoid problems under Windows95.
1576 2005-02-06 David Shaw <dshaw@jabberwocky.com>
1578 * trustdb.h, trustdb.c (trustdb_check_or_update): New. If the
1579 trustdb is dirty and --interactive is set, do an --update-trustdb.
1580 If not interactive, do a --check_trustdb unless
1581 --no-auto-check-trustdb is set.
1583 * import.c (import_keys_internal): Moved from here.
1585 * keyserver.c (keyserver_refresh): Call it here after all
1586 refreshing has happened so that we don't rebuild after each
1587 preferred keyserver set of imports, but do one big rebuild at the
1588 end. This is Debian bug #293816, noted by Kurt Roeckx.
1590 2005-02-04 David Shaw <dshaw@jabberwocky.com>
1592 * getkey.c (merge_selfsigs_subkey): Merged away definition from
1595 2005-01-31 David Shaw <dshaw@jabberwocky.com>
1597 * keygen.c (do_generate_keypair): Write the auth key to the card
1598 before the encryption key. This is a partial workaround for a PGP
1599 bug (as of this writing, all versions including 8.1), that causes
1600 it to try and encrypt to the most recent subkey regardless of
1601 whether that subkey is actually an encryption type. In this case,
1602 the auth key is an RSA key so it succeeds.
1604 2005-01-27 David Shaw <dshaw@jabberwocky.com>
1606 * keyid.c (keyid_from_sk, keyid_from_pk): Use 0xFFFFFFFFFFFFFFFF
1607 instead of 0x0000000000000000 for the invalid key ID since
1608 all-zeroes is reserved for the anonymous recipient.
1610 * keyedit.c (change_passphrase), keygen.c (generate_subkeypair):
1613 2005-01-27 Werner Koch <wk@g10code.com>
1615 * parse-packet.c (listfp): New.
1616 (set_packet_list_mode): Intialize it to stdout or stderr depending
1617 on a global option. Made all printing in list mode use LISTFP.
1619 * keygen.c (generate_subkeypair): Detect primary key on-card and
1620 ask for the passphrase. Return an error if the primary key is a
1623 * keyedit.c (change_passphrase): Don't ever change any stub key.
1624 Print a note if a key consists of only stub keys. Reported by
1625 Dany Nativel. These are bugs #401 and #402.
1627 2005-01-26 Werner Koch <wk@g10code.com>
1629 * ccid-driver.c (parse_ccid_descriptor): Need the CSM workaround
1630 also for newer firmware versions. Need to get a list of fixed
1631 firmware versions and use that.
1633 2005-01-26 David Shaw <dshaw@jabberwocky.com>
1635 * keyserver.c (parse_keyserver_uri): Allow RFC-2732 IPv6 [literal
1636 address] syntax in keyserver URLs.
1637 (keyserver_typemap): Map ftps if we are supporting it.
1639 2005-01-25 Werner Koch <wk@g10code.com>
1641 * keygen.c (do_generate_keypair): Don't continue after an error;
1642 fixed at two places. Why at all didn't I used a goto to cleanup,
1645 * app-openpgp.c (get_cached_data): New arg GET_IMMEDIATE to bypass
1646 the cache. Changed all callers.
1647 (get_one_do): Bypass the cache if the value would have been read
1648 directly for v1.1 cards. It makes things a bit slower but only for
1649 1.0 cards and there are not that many cards out in the wild. This
1650 is required to fix a caching bug when generating new keys; as a
1651 side effect of the retrieval of the the C4 DO from the 6E DO the
1652 chaced fingerprint will get updated to the old value and later
1653 when signing the generated key the checking of the fingerprint
1654 fails becuase it won't match the new one. Thanks to Moritz for
1655 analyzing this problem.
1656 (verify_chv3): Removed the CHV status reread logic because we
1657 won't cache the C4 DO anymore.
1659 2005-01-21 David Shaw <dshaw@grover.jabberwocky.com>
1661 * keyserver.c (free_keyserver_spec): Fix small leak.
1662 (keyserver_typemap): Map https if we are supporting it.
1664 2005-01-20 Werner Koch <wk@g10code.com>
1666 * cardglue.c (open_card): Issue new CARDCTRL(4) status.
1668 * gpgv.c (tty_fprintf): New stub.
1670 * card-util.c (card_status): Create a secret key stub on the fly
1671 and print more information about a card key.
1672 * import.c (pub_to_sec_keyblock, auto_create_card_key_stub): New.
1673 * getkey.c (get_seckeyblock_byfprint): New.
1674 * keylist.c (print_card_key_info): New.
1676 * g10.c (i18n_init) [W32]: Pass registry key to gettext
1678 * gpgv.c (i18n_init) [W32]: Ditto.
1680 2005-01-18 Werner Koch <wk@g10code.com>
1682 * misc.c (default_homedir): New. Taken from gnupg 1.9.15.
1683 * g10.c (main): Use it.
1684 * gpgv.c (main): Ditto.
1686 * keylist.c (public_key_list): Do a trustdb staleness check before
1687 opening the keyring.
1688 (secret_key_list): Ditto.
1690 2005-01-10 David Shaw <dshaw@jabberwocky.com>
1692 * keyedit.c (keyedit_menu): Move command strings outside the
1693 function to get ready for the readline completion code.
1695 * passphrase.c (readline, agent_send_option, agent_open,
1696 agent_get_passphrase, passphrase_clear_cache): Rename readline()
1697 to readaline() to keep readline library namespace clear.
1699 2005-01-06 David Shaw <dshaw@jabberwocky.com>
1701 * filter.h, armor.c (armor_filter): Use the eol string from the
1702 armor filter context instead of hardcoding '\n' or '\r\n'. If no
1703 eol string is provided, default to '\n' or '\r\n' as appropriate.
1704 (is_armor_header): Trim tabs in armor header lines as well.
1706 * keyserver.c (keyserver_spawn): Use it here to force '\n' line
1707 endings since the keyserver output file gets a LF->CRLF expansion
1710 2005-01-05 David Shaw <dshaw@jabberwocky.com>
1712 * g10.c (main): Typo.
1714 * armor.c (is_armor_header): Allow CR and LF (not just actual
1715 spaces) in an armor header line (-----BEGIN etc). This is needed
1716 due to CRLF issues on win32. As before, --openpgp makes it
1719 2005-01-03 David Shaw <dshaw@jabberwocky.com>
1721 * Makefile.am: Use @LIBUSB@ instead of @LIBUSB_LIBS@
1723 * import.c (delete_inv_parts): Comments on import-unusable-sigs.
1725 2005-01-01 David Shaw <dshaw@jabberwocky.com>
1727 * options.h, import.c (parse_import_options, delete_inv_parts):
1728 Add import-unusable-sigs flag to enable importing unusable
1729 (currently: expired) sigs.
1731 * options.h, export.c (parse_export_options, do_export_stream):
1732 Add export-unusable-sigs flag to enable exporting unusable
1733 (currently: expired) sigs.
1735 2004-12-29 David Shaw <dshaw@jabberwocky.com>
1737 * packet.h, getkey.c (merge_selfsigs_main, sig_to_revoke_info),
1738 keyid.c (revokestr_from_pk), keyedit.c (show_key_with_all_names):
1739 Show who revoked a key (either the same key or a designated
1742 2004-12-28 Werner Koch <wk@g10code.com>
1744 * ccid-driver.c (find_endpoint): New.
1745 (scan_or_find_devices): Add new args to return endpoint info and
1747 (ccid_open_reader, ccid_shutdown_reader): Take care of these new
1749 (bulk_in, bulk_out): Use the correct endpoints.
1750 (ccid_transceive_apdu_level): New.
1751 (ccid_transceive): Divert to above.
1752 (parse_ccid_descriptor): Allow APDU level exchange mode.
1753 (do_close_reader): Pass the interface number to usb_release_interface.
1755 2004-12-24 David Shaw <dshaw@jabberwocky.com>
1757 * keyserver.c (keyserver_typemap): Only map HTTP and FTP if
1758 libcurl has specifically been selected to handle them.
1760 2004-12-22 David Shaw <dshaw@jabberwocky.com>
1762 * options.h, keyserver.c (parse_keyserver_uri): Properly parse
1763 auth data from URLs and pass to keyserver helpers.
1765 * keyserver.c (keyserver_typemap): New. Map certain keyserver
1766 types to a common type (e.g. ldaps -> ldap). If we are building
1767 with curl, map both http and ftp to curl.
1769 * build-packet.c (build_sig_subpkt): Only allow one preferred
1770 keyserver subpacket at a time.
1772 2004-12-21 David Shaw <dshaw@jabberwocky.com>
1774 * keyedit.c (menu_set_keyserver_url): Make sure we only operate on
1775 the chosen selfsig so we don't accidentally promote an older
1776 selfsig to chosen. Discovered by Simon Josefsson and 'Todd'.
1778 * keygen.c (ask_expire_interval): Fix typo.
1780 2004-12-20 David Shaw <dshaw@jabberwocky.com>
1782 * keylist.c (list_keyblock_print): Secret key listings should
1783 always show everything (expired UIDs, revoked subkeys, etc, etc).
1785 * keyedit.c (keyedit_menu): Add additional help for the "sign"
1788 2004-12-20 Werner Koch <wk@g10code.com>
1790 * keygen.c (ask_expire_interval): For better translations chnage 2
1793 * seckey-cert.c (do_check): Handle case when checksum was okay but
1794 passphrase still wrong. Roman Pavlik found such a case.
1796 2004-12-20 David Shaw <dshaw@jabberwocky.com>
1798 * keyedit.c (keyedit_menu): Invisible alias "passwd" as
1801 * passphrase.c: Don't check for __CYGWIN__, so it is treated as a
1804 * options.h, g10.c (main), textfilter.c (standard): Use new option
1805 --rfc2440-text to determine whether to filter "<space>\t\r\n" or
1806 just "\r\n" before canonicalizing text line endings. Default to
1809 2004-12-19 David Shaw <dshaw@jabberwocky.com>
1811 * keygen.c (keygen_get_std_prefs): Set reference count when
1812 creating the temporary user ID.
1814 * keyedit.c (keyedit_menu): Merge updpref and setpref. Keep
1815 updpref as an invisible alias. Add invisible alias for revphoto.
1816 Fix small memory leak when using "setpref" (not all of the uid was
1818 (menu_revkey): Trigger a trust rebuild after revoking a key.
1819 Don't allow revoking an already-revoked whole key.
1820 (menu_revsubkey): Don't allow revoking an already-revoked subkey.
1822 2004-12-18 David Shaw <dshaw@jabberwocky.com>
1824 * keyedit.c (menu_revkey): Rename to menu_revsubkey.
1825 (menu_revkey): New. Revoke a whole key.
1826 (keyedit_menu): Call it here for when 'revkey' is used without any
1827 subkeys selected. This is to be consistent with the other
1828 functions which are "selected part if selected, whole key if not".
1830 * signal.c: Use only HAVE_LIBREADLINE to detect readline
1833 * Makefile.am: Link with readline where necessary.
1835 2004-12-17 Werner Koch <wk@g10code.com>
1837 * passphrase.c (agent_get_passphrase): Define NREAD locally as
1840 * keylist.c (list_keyblock_print): Make field width an int.
1841 * keyedit.c (show_key_with_all_names): Ditto.
1843 2004-12-16 David Shaw <dshaw@jabberwocky.com>
1845 * g10.c (main): Add --require-secmem/--no-require-secmem to cause
1846 gpg to exit if it cannot lock memory. Also remove --nrsign-key
1847 and --nrlsign-key since this can better be done via --edit-key.
1849 2004-12-15 David Shaw <dshaw@jabberwocky.com>
1851 * apdu.c (apdu_send_le, apdu_send_direct), keylist.c
1852 (status_one_subpacket, print_one_subpacket): Fix some compiler
1855 * g10.c (main): Fix --compression-algo to take a string argument
1856 like --compress-algo.
1858 * trustdb.c (uid_trust_string_fixed): For safety, check for a pk.
1860 2004-12-14 David Shaw <dshaw@jabberwocky.com>
1862 * keyedit.c (keyedit_menu): Re-remove the N_() markers.
1864 * trustdb.c (uid_trust_string_fixed): Show uids as revoked if the
1867 * keyedit.c (show_key_with_all_names): Don't show validity for
1870 * keyedit.c (parse_sign_type): New. Figure out the flags (local,
1871 nonrevoke, trust) for a signature.
1872 (keyedit_menu): Call it here so we can mix and match flags, and
1873 don't need "nrltsign", "ltsign", "tnrsign", etc, etc, etc.
1875 2004-12-14 Werner Koch <wk@g10code.com>
1877 * passphrase.c (agent_get_passphrase): Removed debug output
1879 * keyserver.c (keyserver_work, keyserver_spawn): Map ldaps to ldap.
1881 * keyedit.c (keyedit_menu): Removed the N_() markers from the
1883 * card-util.c (card_edit): Ditto.
1885 2004-12-13 Werner Koch <wk@g10code.com>
1887 * passphrase.c (read_passphrase_from_fd): Fixed memory leak.
1888 Noted by Andrei Darashenka.
1890 2004-12-11 David Shaw <dshaw@jabberwocky.com>
1892 * keyserver.c (parse_preferred_keyserver): Force preferred
1893 keyserver subpackets to have a URI scheme specified.
1895 2004-12-10 David Shaw <dshaw@jabberwocky.com>
1897 * options.h, g10.c (main), textfilter.c (standard): Use --rfc2440
1898 or --openpgp directly to determine the end of line hashing rule.
1900 * trustdb.c (uid_trust_string_fixed): Show uids as expired if the
1903 2004-12-10 Werner Koch <wk@g10code.com>
1905 * app-openpgp.c (send_fprtime_if_not_null): New.
1906 (do_getattr): Add KEY_TIME.
1907 (do_learn_status): Print KEY_TIME.
1908 * cardglue.c (learn_status_cb): Parse KEY-TIME.
1909 * card-util.c (card_status): Print creation time if available.
1911 2004-12-09 David Shaw <dshaw@jabberwocky.com>
1913 * options.h, g10.c (main), textfilter.c (len_without_trailing_ws):
1915 (standard): 2440 says that textmode hashes should canonicalize
1916 line endings to CRLF and remove spaces and tabs. 2440bis-12 says
1917 to just canonicalize to CRLF. So, we default to the 2440bis-12
1918 behavior, but revert to the strict 2440 behavior if the user
1919 specifies --rfc2440. In practical terms this makes no difference
1920 to any signatures in the real world except for a textmode detached
1923 2004-12-09 Werner Koch <wk@g10code.com>
1925 * passphrase.c (agent_get_passphrase): New args CUSTOM_PROMPT and
1926 CUSTOM_DESCRIPTION. Changed all callers.
1928 * app-openpgp.c (do_getattr, do_learn_status, do_setattr): Support
1929 the new private DOs.
1930 (do_change_pin): Add a "N" prefix to the strings so that the
1931 callback can act accordingly for a new PIN. Unfortunately this
1932 breaks existing translations but I see no wother way to overvome
1935 * cardglue.c (learn_status_cb): Ditto.
1936 (agent_release_card_info): Ditto.
1937 (struct pin_cb_info_s): Removed and changed all users.
1940 * card-util.c (card_status): Print them
1941 (card_edit): New command PRIVATEDO.
1942 (change_private_do): New.
1944 2004-12-09 David Shaw <dshaw@jabberwocky.com>
1946 * keygen.c (ask_algo): Add a choose-your-own-capabilities option
1949 2004-12-07 David Shaw <dshaw@jabberwocky.com>
1951 * keygen.c (ask_keysize): Change strings to always use %u instead
1952 of hardcoding key sizes. Bump default to 2048. Bump minimum down
1953 to 512, where possible, but require --expert to get there. DSA is
1954 always 1024 unless --expert is given.
1956 2004-11-29 David Shaw <dshaw@jabberwocky.com>
1958 * getkey.c (parse_key_usage): New function to parse out key usage
1959 flags. Set PUBKEY_USAGE_UNKNOWN to handle flags that we don't
1961 (fixup_uidnode, merge_selfsigs_main, merge_selfsigs_subkey): Call
1962 it from here to remove duplicate code.
1964 2004-11-26 David Shaw <dshaw@jabberwocky.com>
1966 * export.c (do_export_stream): Allow export-minimal to work with
1967 secret keys, even though a non-selfsig secret key signature is
1970 * options.h, export.c (parse_export_options, do_export_stream),
1971 import.c (parse_import_options, import_keys_internal): Make the
1972 import-options and export-options distinct since they can be mixed
1973 together as part of keyserver-options.
1975 2004-11-24 David Shaw <dshaw@jabberwocky.com>
1977 * options.h, export.c (parse_export_options, do_export_stream):
1978 Add "export-minimal" option to disregard any sigs except selfsigs.
1980 * trustdb.c (uid_trust_string_fixed): Use a string that can be
1981 atoi-ed, but also has a comment for the translator.
1983 * trustdb.h, trustdb.c (uid_trust_string_fixed): New. Return a
1984 fixed-size translatable string similar to trust_value_to_string.
1985 This allows for easier lining up of displays.
1987 * keyedit.c (show_key_with_all_names), keylist.c
1988 (list_keyblock_print): Use it here to print validity strings.
1992 2004-11-18 Werner Koch <wk@g10code.com>
1994 * g10.c (S_IRGRP) [HAVE_DOSISH_SYSTEM]: Define to 0.
1996 2004-11-17 Werner Koch <wk@g10code.com>
1998 * g10.c (open_info_file): New.
1999 (main): Unconditionally implement --status-file, --logger-file,
2000 --attribute-file, --passphrase-file, --command-file. This is not
2001 generally useful but easy to support and might make scripting
2002 under Windows easier.
2004 2004-11-11 Werner Koch <wk@g10code.com>
2006 * passphrase.c (readn): Fixed test against EINTR.
2008 2004-11-05 Werner Koch <wk@g10code.com>
2010 * app-openpgp.c: Made more strings translatable.
2011 (verify_chv3, do_change_pin): Add a special prefix to the prompt
2012 of the Admin PIN prompts.
2013 * passphrase.c (ask_passphrase): Add arg TRYAGAIN_TEXT. Changed
2015 * cardglue.c (pin_cb): Make use of the OPAQUE arg to pass
2016 arguments to the PIN callback. Use this to implement a way to
2017 check for correct PIN repetition. Changed all callers to pass an
2018 opaque argument. Improved detection of Admin PIN prompts.
2020 2004-11-04 David Shaw <dshaw@jabberwocky.com>
2022 * plaintext.c (handle_plaintext): Don't try and create a
2023 zero-length filename when using --use-embedded-filename with input
2024 that has no filename (clearsigned or message generated from a
2027 * encode.c (encode_simple, encode_crypt), progress.c
2028 (handle_progress), sign.c (write_plaintext_packet): Fix a few
2029 inconsistent calls (NULL filename means a pipe here, so don't
2030 bother to check it twice).
2032 2004-11-03 David Shaw <dshaw@jabberwocky.com>
2034 * misc.c (print_digest_algo_note): The latest 2440bis drafts
2035 deprecates MD5, so give a warning.
2036 (print_pubkey_algo_note, print_cipher_algo_note,
2037 print_digest_algo_note): Give the algorithm name in the
2038 experimental algo warning.
2040 2004-11-03 Timo Schulz <twoaday@g10code.com>
2042 * passphrase.c (readn, writen): Use w32_strerror instead
2043 of just showing the error number.
2044 * misc.c [_WIN32]: Fix warning about missing prototypes.
2046 2004-10-28 David Shaw <dshaw@jabberwocky.com>
2048 * skclist.c (build_sk_list): Don't need to warn about
2049 PGP-generated Elgamal signing keys since we no longer support any
2050 Elgamal signing keys.
2052 * sign.c (sign_file, clearsign_file): Use "writing to" instead of
2053 "writing to file" to match other strings.
2055 * pkclist.c (check_signatures_trust): Fix typo. Noted by Moray
2056 Allan. This is Debian bug #278708.
2058 * passphrase.c (ask_passphrase, passphrase_to_dek): "password" ->
2061 * keyedit.c (show_key_with_all_names): Show designated revoker as
2062 part of translatable string.
2064 2004-10-28 Werner Koch <wk@g10code.com>
2066 * Makefile.am (other_libs): New. Also include LIBICONV. Noted by
2069 2004-10-28 Werner Koch <wk@g10code.com>
2071 * apdu.c (open_pcsc_reader): Removed bad free in error handler.
2073 2004-10-27 David Shaw <dshaw@jabberwocky.com>
2075 * card-util.c, delkey.c, keygen.c, plaintext.c, keyedit.c,
2076 passphrase.c, revoke.c: Collapse the two different "can't do that
2077 in batch mode" strings into one.
2079 * keylist.c (status_one_subpacket): New. Send the subpacket data
2080 to the --status interface.
2082 * card-util.c (card_edit): Show when admin is enabled or not.
2084 * status.h, status.c: New STATUS_SIG_SUBPACKET type.
2086 * build-packet.c (build_sig_subpkt): Multiple keyserver URLs are
2089 * keyring.c: Make some strings translatable.
2091 * exec.c, sign.c: Change "can't open file" to "can't open" and
2092 "can't create file" to "can't create" to be consistent with other
2093 strings so we don't have to translate both.
2095 * delkey.c, export.c, keyedit.c, pkclist.c, revoke.c, skclist.c:
2096 Fix a few missed possible \"username\" quotes.
2098 2004-10-26 Werner Koch <wk@g10code.com>
2100 * app-openpgp.c (verify_chv3): The minimum length for CHV3 is
2101 8. Changed string to match the other ones.
2103 * passphrase.c (agent_send_all_options): Try to deduce the ttyname
2106 2004-10-22 Werner Koch <wk@g10code.com>
2108 * card-util.c (fetch_url): Disable for gnupg 1.9
2109 (card_generate_subkey): Ditto.
2110 (card_store_subkey): Ditto.
2112 2004-10-21 David Shaw <dshaw@jabberwocky.com>
2114 * options.h, g10.c (main), mainproc.c (check_sig_and_print):
2115 Rename verify-option show-validity to show-uid-validity to match
2116 the similar list-option.
2118 * app-openpgp.c (verify_chv3): Fix typo.
2120 2004-10-21 Werner Koch <wk@g10code.com>
2122 * app-common.h (app_openpgp_storekey): Add prototype.
2124 * app-openpgp.c (do_sign): Replace asprintf by direct allocation.
2125 This avoids problems with missing vasprintf implementations.
2127 * card-util.c (generate_card_keys): Add a #warning for gnupg 1.9
2128 and use the same string there.
2130 2004-10-20 David Shaw <dshaw@jabberwocky.com>
2132 * g10.c (parse_list_options): Fix non-constant initializer so we
2135 2004-10-17 David Shaw <dshaw@jabberwocky.com>
2137 * keylist.c (print_one_subpacket): The flags field should be hex.
2139 2004-10-17 Werner Koch <wk@g10code.com>
2141 * passphrase.c (agent_get_passphrase): Cast UIDLEN to int. Noted
2142 by Christian Cornelssen.
2144 2004-10-16 David Shaw <dshaw@jabberwocky.com>
2146 * parse-packet.c (parse_one_sig_subpkt, enum_sig_subpkt): Don't
2147 BUG() on unknown subpackets. Rather, just return them silently.
2149 2004-10-15 Werner Koch <wk@g10code.com>
2151 * status.h (STATUS_NEED_PASSPHRASE_PIN): New.
2152 * status.c (get_status_string): Added.
2153 * passphrase.c (ask_passphrase): Moved status printing to ..
2154 * cardglue.c (pin_cb): .. here and issue new status message.
2156 * keyedit.c (sign_uids): Don't include the leading LF in the
2157 translatable string but print them separately.
2159 * apdu.c (apdu_open_remote_reader) [_WIN32]: We don't have ENOSYS.
2161 * app-openpgp.c (parse_login_data): New.
2162 (app_select_openpgp): Call it.
2163 (do_setattr): Reparse it after change.
2165 * pkclist.c (do_edit_ownertrust): Add a note to translators.
2166 * keygen.c (ask_user_id): Ditto.
2168 * helptext.c: Typo fix.
2170 2004-10-14 David Shaw <dshaw@jabberwocky.com>
2172 * keylist.c (list_keyblock_print): Show the fingerprint after the
2173 key, not after the first user ID.
2175 * keyedit.c (show_key_with_all_names): Don't show validity if
2176 we're just printing user IDs for signing.
2178 * armor.c (fake_packet): Properly handle the case where the line
2179 is dash-space (i.e. a blank line that was quoted). Give a warning
2180 for bad dash escaping.
2182 2004-10-14 Werner Koch <wk@g10code.com>
2184 * export.c (do_export_stream) [ENABLE_SELINUX_HACKS]: Don't allow
2186 * import.c (import_secret_one) [ENABLE_SELINUX_HACKS]: Likewise
2188 * misc.c (is_secured_filename): New.
2189 * keydb.c (maybe_create_keyring)
2190 * tdbio.c (tdbio_set_dbname)
2191 * plaintext.c (handle_plaintext)
2192 * openfile.c (copy_options_file, open_outfile)
2193 * exec.c (exec_write)
2194 * keygen.c (do_generate_keypair, gen_card_key_with_backup)
2196 * sign.c (sign_file, clearsign_file)
2197 * keyring.c (create_tmp_file, do_copy): Check for secured files
2198 before creating them.
2200 * keygen.c (print_status_key_created, read_parameter_file):
2201 s/unsigned char/byte/ due to a strange typedef for RISC OS. Noted
2204 2004-10-13 David Shaw <dshaw@jabberwocky.com>
2206 * armor.c (fake_packet): Allow arbitrary dash-escaped lines as per
2207 2440bis-10. This is bug #158.
2209 * keyserver.c (keyserver_work): Handle keyserver timeouts.
2211 * pkclist.c (do_edit_ownertrust): Different prompt when we're
2212 using direct trust since the meaning is different.
2214 * keyedit.c (trustsig_prompt): Change the strings to match the
2215 ones in pkclist.c:do_edit_ownertrust to make translation easier.
2217 * trustdb.c (trust_model_string, get_validity): Add direct trust
2218 model which applies to the key as a whole and not per-uid.
2220 * options.h, g10.c (parse_trust_model): New.
2221 (main): Call it from here to do string-to-trust-model.
2223 2004-10-13 Werner Koch <wk@g10code.com>
2225 * tdbdump.c (import_ownertrust): Removed all log_error_f and
2226 reworded the messages.
2228 * dermor.c: Include i18n.h. Made 2 strings translatable.
2230 * misc.c (register_secured_file, is_secured_file)
2231 (unregister_secured_file): New.
2232 * keyring.c (do_copy, rename_tmp_file): Implement the SELinux hacks.
2233 (keyring_register_filename): Ditto.
2234 * tdbio.c (open_db): Ditto.
2235 * openfile.c (copy_options_file, open_sigfile): Ditto.
2236 * verify.c (verify_signatures, verify_one_file): Ditto.
2237 * photoid.c (generate_photo_id): Ditto.
2238 * keygen.c (read_parameter_file): Ditto.
2239 * import.c (import_keys_internal): Ditto.
2240 * decrypt.c (decrypt_message, decrypt_messages): Ditto.
2241 * dearmor.c (dearmor_file, enarmor_file): Ditto.
2242 * g10.c (main, print_mds): Ditto.
2243 * exec.c (exec_write, exec_read): Ditto.
2244 * card-util.c (change_login): Ditto.
2245 * encode.c (encode_simple, encode_crypt): Ditto.
2247 * openfile.c (overwrite_filep, make_outfile_name, open_outfile)
2248 (open_sigfile): Use iobuf_is_pipe_filename to check for pipes so
2249 that special filesnames are taken into account. This is bug 327.
2251 * tdbdump.c (import_ownertrust): Ditto.
2253 * sign.c (write_plaintext_packet): Ditto.
2254 (sign_file, clearsign_file, sign_symencrypt_file):
2256 * progress.c (handle_progress): Ditto.
2257 * plaintext.c (handle_plaintext): Ditto.
2258 (ask_for_detached_datafile, hash_datafiles):
2260 * encode.c (encode_simple, encode_crypt): Ditto.
2262 2004-10-12 Werner Koch <wk@g10code.com>
2264 * keygen.c (read_parameter_file): Changed to use iobuf based file
2265 reading to allow the special file name feature to work.
2267 * keygen.c (read_parameter_file): New keyword "Handle". This is
2269 (print_status_key_not_created): New.
2270 (print_status_key_created): Add new arg HANDLE.
2271 (do_generate_keypair): Print not created status.
2272 * status.c, tatus.h (STATUS_KEY_NOT_CREATED): New.
2274 2004-10-11 David Shaw <dshaw@jabberwocky.com>
2276 * pkclist.c (do_edit_ownertrust): Use the same translated string
2277 for showing the user ID as mainproc.c:print_pkenc_list.
2279 * mainproc.c (print_pkenc_list): Allow translating the quotes
2282 * card-util.c, g10.c, photoid.c, trustdb.c: The last of the \"%s\"
2283 -> `%s' quoting for things that aren't user IDs.
2285 * keyserver.c (keyserver_spawn): If there is no keyserver host,
2286 print the whole URI since it is self-contained.
2288 2004-10-11 Werner Koch <wk@g10code.com>
2290 * keyserver.c (keyserver_spawn): Print an empty string in log_info
2291 if the host is not set (e.g. finger).
2293 2004-10-10 David Shaw <dshaw@jabberwocky.com>
2295 * card-util.c, keyedit.c, openfile.c, pkclist.c, delkey.c,
2296 keygen.c, photoid.c, revoke.c: Some yes-or-no prompts end in
2297 "(y/n)". Some don't. Consistently use y/n everywhere.
2299 * keygen.c (ask_key_flags): New.
2300 (ask_algo): Call it here in --expert mode so we don't need to
2301 specify each possible variation of RSA capabilities.
2303 * keygen.c (do_add_key_flags): The spec says that all primary keys
2304 MUST be able to certify. Force the certify flag on for primaries
2305 (and off for subkeys).
2307 * keygen.c (generate_keypair): Fix generating keys with the auth
2310 2004-10-08 David Shaw <dshaw@jabberwocky.com>
2312 * encr-data.c (decrypt_data): Give a warning with a weak key, but
2313 still allow to decrypt the message.
2315 2004-10-07 David Shaw <dshaw@jabberwocky.com>
2317 * pkclist.c (build_pk_list): Keystrify.
2319 * mainproc.c (check_sig_and_print), pkclist.c
2320 (do_edit_ownertrust): Improve translatability of user ID prompts.
2322 2004-10-06 David Shaw <dshaw@jabberwocky.com>
2324 * helptext.c, pkclist.c (do_we_trust): It is not possible to get
2325 here with a revoked or expired key, so BUG() that case. Remove
2326 question about overriding revoked/expired. Also
2328 (do_we_trust_pre): Use print_pubkey_info() instead of printing the
2331 * passphrase.c (passphrase_to_dek): Improve translatability of
2334 * keylist.c (print_pubkey_info): Use the user ID the pk was
2335 selected by, if any.
2337 * keyedit.c (sign_uids, ask_revoke_sig): Improve translatability
2339 (ask_revoke_sig, menu_revsig): Try and use common strings for
2340 these two functions so they don't need to be translated twice.
2342 * keyedit.c, keylist.c, keyserver.c, mainproc.c: The
2343 revoked/expired/expires string change of 2004-09-29 was too
2344 simple. Use two styles for each tag.
2346 2004-10-06 Werner Koch <wk@g10code.com>
2348 * ccid-driver.c (ccid_open_reader): Store the vendor ID.
2349 (ccid_transceive_secure): New.
2350 (parse_ccid_descriptor): Workaround for an SCM reader problem.
2351 (send_escape_cmd): New.
2353 2004-10-05 David Shaw <dshaw@jabberwocky.com>
2355 * passphrase.c (agent_get_passphrase): Use keystrs for agent
2356 strings, and fix sprintf warnings.
2358 * keyserver.c (keyserver_spawn): Fix BUG() with certain sets of
2359 mixed regular and preferred keyserver refreshes. Noted by
2360 Sebastian Wiesinger.
2362 * keyedit.c (show_key_with_all_names): Show uid validity in menu.
2364 2004-10-03 Timo Schulz <twoaday@g10code.de>
2366 * apdu.c (apdu_open_remote_reader) [_WIN32]: Do not set ENOSYS.
2368 2004-10-03 David Shaw <dshaw@jabberwocky.com>
2370 * keyedit.c (print_and_check_one_sig_colon): Fix bad keyids in
2371 colon delsig output. Noted by Peter Palfrader.
2372 (show_prefs): Do not reference missing selfsig. Noted by Alex
2375 2004-10-01 Werner Koch <wk@g10code.com>
2377 * gpgv.c (i18n_init): Always use LC_ALL.
2379 2004-09-30 Werner Koch <wk@g10code.com>
2381 * app-openpgp.c (verify_chv3) [GNUPG_MAJOR_VERSION!=1]: Typo fix.
2383 2004-09-30 David Shaw <dshaw@jabberwocky.com>
2385 * gpgv.c, keydb.c (keydb_add_resource): Factored keyring creation
2387 (maybe_create_keyring): .. new. Make sure that we do the checks
2388 in a locked state. Problem reported by Stefan Haller. Try to
2389 create the home directory before acquiring a lock for the keyring.
2390 From Werner on stable branch.
2392 * g10.c (main): Blow up if we didn't lose setuid. From Werner on
2395 2004-09-29 David Shaw <dshaw@jabberwocky.com>
2397 * keyedit.c, keylist.c, keyserver.c, mainproc.c: Reduce the many
2398 variations of "revoked" ("revoked", "[revoked]", " [revoked]",
2399 "[revoked] ") "and" expired down to two to simplify translation.
2401 2004-09-28 David Shaw <dshaw@jabberwocky.com>
2403 * keyedit.c (print_and_check_one_sig): Account for the extra space
2404 that show-sig-expire takes up so we do not wrap lines.
2405 (show_key_with_all_names): No need to show subkey revocations as a
2406 seperate line since we now show revocation date in the main subkey
2409 * signal.c (got_fatal_signal): HAVE_DECL_SYS_SIGLIST is defined,
2410 but zero if not found. Noted by John Clizbe.
2412 * keyserver.c (parse_keyrec): Fix problem with non-expiring keys
2413 appearing expired in --search-keys results.
2415 2004-09-27 Werner Koch <wk@g10code.com>
2417 * card-util.c (card_edit): Take admin only status from the table.
2419 * app-openpgp.c: Made all strings translatable.
2420 (verify_chv3) [GNUPG_MAJOR_VERSION]: Make opt.allow_admin
2421 available for use in gnupg 2.
2422 (verify_chv3): Reimplemented countdown showing to use only
2423 functions from this module. Flush the CVH status cache on a
2425 (get_one_do): Hack to bypass the cache for cards versions > 1.0.
2426 (store_fpr): Store the creation date for card version > 1.0.
2428 2004-09-25 David Shaw <dshaw@jabberwocky.com>
2430 * main.h, g10.c (main), card-util.c (change_pin): If "admin" has
2431 not been issued, skip right to the CHV1/CHV2 PIN change. No need
2432 to show the unblock or admin PIN change option.
2433 (card_edit): Add "admin" command to add admin commands to the
2434 menu. Do not allow admin commands until "admin" is given.
2436 * app-openpgp.c (verify_chv3): Show a countdown of how many wrong
2437 admin PINs can be entered before the card is locked.
2439 * options.h, g10.c (main), app-openpgp.c (verify_chv3): Remove
2442 2004-09-24 David Shaw <dshaw@jabberwocky.com>
2444 * main.h: Create S2K_DIGEST_ALGO macro so we do not need to always
2445 set opt.s2k_digest_algo. This helps fix a problem with PGP 2.x
2446 encrypted symmetric messages. Change all callers (encode.c,
2447 g10.c, keyedit.c, keygen.c, passphrase.c, sign.c).
2449 * armor.c, cardglue.c, getkey.c, import.c, keygen.c: Be consistent
2450 in some more quoted strings. Always use 'user ID', not 'user id',
2451 "quotes" for user IDs, etc.
2453 * keyedit.c (keyedit_menu), gpgv.c (agent_scd_getattr (stub)),
2454 keygen.c (copy_mpi, generate_raw_key): Fix a compile problem and a
2455 few warnings when building without card support.
2457 2004-09-23 Werner Koch <wk@g10code.com>
2459 * card_util.c (generate_card_keys): ask whether backup should be
2461 (card_store_subkey): Factored some code out to ..
2462 * keygen.c (save_unprotected_key_to_card): .. new function.
2463 (gen_card_key_with_backup): New.
2464 (generate_raw_key): New.
2465 (generate_keypair): New arg BACKUP_ENCRYPTION_DIR. Changed all
2467 (do_generate_keypair): Divert to gen_card_key_with_backup when
2470 * apdu.c (open_pcsc_reader): Do not print empty reader string.
2472 * keygen.c (ask_algo): Allow creation of AUTH keys.
2474 * keyid.c (usagestr_from_pk): New.
2476 * app-openpgp.c (app_openpgp_storekey): Call flush_cache.
2477 (get_cached_data): Move local data initialization to ..
2478 (app_select_openpgp): .. here. Read some flags for later use.
2479 (do_getattr): New read-only attribute EXTCAP.
2481 * keyedit.c (keyedit_menu): New command "keytocard"
2482 (keyedit_menu): Bad hack for the not_with_sk element.
2483 (show_key_with_all_names): Print the usage.
2484 (find_pk_from_sknode): New.
2486 * card-util.c (card_store_subkey): New.
2489 * cardglue.c (agent_openpgp_storekey): New.
2491 2004-09-22 Werner Koch <wk@g10code.com>
2493 * card-util.c (card_generate_subkey, generate_card_keys): Factored
2494 common code out to ...
2495 (get_info_for_key_operation, check_pin_for_key_operation)
2496 (restore_forced_chv1, replace_existing_key_p)
2497 (show_card_key_info): ... new functions.
2499 2004-09-21 David Shaw <dshaw@jabberwocky.com>
2501 * mainproc.c (check_sig_and_print), keyedit.c (show_prefs,
2502 menu_set_keyserver_url): Make sure that keyserver URLs with
2503 control characters inside are printed properly. In fact, handle
2506 * keyedit.c (keyedit_menu): Don't show "addcardkey" in the menu if
2507 we do not have card support.
2509 * keydb.h, keyserver.c (print_keyrec, keyserver_spawn): fpr is an
2510 array of unsigned bytes.
2512 2004-09-20 Werner Koch <wk@g10code.com>
2514 * g10.c: Make -K an alias for --list-secret-keys.
2516 * keylist.c (print_card_serialno): New. Taken from gnupg 1.9.11.
2517 (list_keyblock_print): Make use of it.
2518 * keyedit.c (show_key_with_all_names): Print the card S/N.
2520 * keyedit.c (keyedit_menu): New command ADDCARDKEY.
2521 * card-util.c (card_generate_subkey): New.
2522 * keygen.c (generate_card_subkeypair): New.
2523 (gen_card_key): New arg IS_PRIMARY; changed all callers.
2525 * cardglue.c (open_card): Use shutdown code if possible.
2526 (check_card_serialno): Ditto.
2528 * ccid-driver.c (do_close_reader): Factored some code out from ...
2529 (ccid_close_reader): ..here.
2530 (ccid_shutdown_reader): New.
2532 * apdu.c (apdu_shutdown_reader): New.
2533 (shutdown_ccid_reader): New.
2535 2004-09-17 Werner Koch <wk@g10code.com>
2537 * g10.c (list_config): New config option ccid-reader-id.
2538 (gpgconf_list): Add "reader-port".
2540 * apdu.c (open_ccid_reader): New arg PORTSTR. Pass it to
2542 (apdu_open_reader): Pass portstr to open_ccid_reader.
2543 (apdu_open_reader): No fallback if a full CCID reader id has been
2546 * ccid-driver.c (ccid_get_reader_list): New.
2547 (ccid_open_reader): Changed API to take a string for the reader.
2548 Removed al the cruft for the libusb development vesion which seems
2549 not to be maintained anymore and there are no packages anyway.
2550 The stable library works just fine.
2551 (struct ccid_reader_id_s): Deleted and replaced everywhere by a
2553 (usb_get_string_simple): Removed.
2554 (bulk_in): Do valgrind hack here and not just everywhere.
2556 2004-09-16 David Shaw <dshaw@jabberwocky.com>
2558 * keyedit.c (show_key_with_all_names, show_prefs): Show preferred
2559 keyserver(s) in "showpref" output.
2561 * keygen.c (keygen_add_keyserver_url), keyedit.c
2562 (menu_set_keyserver_url): Allow setting a keyserver URL of "none"
2563 to remove an existing keyserver URL.
2565 * keyedit.c (menu_set_keyserver_url): Confirm replacement of a
2566 keyserver URL before overwriting the old one.
2568 2004-09-15 David Shaw <dshaw@jabberwocky.com>
2570 * gpgv.c (agent_scd_getattr): Stub.
2572 * misc.c (get_signature_count): New. Get the signature count from
2574 (pct_expando): Call it here so the %c expando becomes the number
2575 of signatures issued. This allows for notations or the like with
2576 an automatic signature count.
2578 * ccid-driver.c (usb_get_string_simple): Replacement function to
2579 work with older libusb.
2581 2004-09-15 Werner Koch <wk@g10code.com>
2583 * g10.c [HAVE_LIBUSB]: New option --debug-ccid-driver.
2585 * ccid-driver.c (read_device_info): Removed.
2586 (make_reader_id, scan_or_find_devices): New.
2587 (ccid_open_reader): Simplified by make use of the new functions.
2588 (ccid_set_debug_level): New. Changed the macros to make use of
2589 it. It has turned out that it is often useful to enable debugging
2590 at runtime so I added this option.
2592 2004-09-13 David Shaw <dshaw@jabberwocky.com>
2594 * getkey.c (premerge_public_with_secret): Fix subkey<->binding sig
2595 mismatch when some secret subkeys are missing. Discovered by
2598 * main.h, keylist.c (print_subpackets_colon): Make a public
2601 * keyedit.c (print_and_check_one_sig_colon): New. Print a
2602 with-colons version of the sig record.
2603 (menu_delsig): Call it here for a with-colons delsig.
2605 2004-09-12 David Shaw <dshaw@jabberwocky.com>
2607 * options.h, keylist.c (print_one_subpacket,
2608 print_subpackets_colon): Print a spk record for each request
2610 (list_keyblock_colon): Call them here.
2612 * g10.c (parse_subpacket_list, parse_list_options): New. Make the
2613 list of subpackets we are going to print.
2614 (main): Call them here.
2616 2004-09-11 David Shaw <dshaw@jabberwocky.com>
2618 * card-util.c (fetch_url, card_edit): Use the pubkey URL stored on
2619 the card to fetch an updated copy. Works with either straight
2620 URLs or HKP or LDAP keyservers.
2622 * keyserver-internal.h, keyserver.c (keyserver_import_fprint),
2623 import.c (revocation_present): Use a keyserver_spec so the caller
2624 can pass in whatever keyserver they like.
2626 2004-09-10 David Shaw <dshaw@jabberwocky.com>
2628 * app-openpgp.c (get_cached_data): Avoid mallocing zero since it
2629 breaks us when using --enable-m-guard.
2631 * ccid-driver.c (read_device_info): Fix segfault when usb device
2633 (ccid_open_reader): Allow working with an even older version of
2634 libusb (usb_busses global instead of usb_get_busses()).
2636 2004-09-09 Werner Koch <wk@g10code.com>
2638 * cardglue.h: Add members for CA fingerprints.
2639 * cardglue.c (agent_release_card_info): Invalid them.
2640 (learn_status_cb): Store them.
2642 * app-common.h, app-openpgp.c, iso7816.c, iso7816.h
2643 * apdu.c, apdu.h, ccid-driver.c, ccid-driver.h
2644 * card-util.c: Updated from current gnupg-1.9.
2648 * ccid-driver.h (CCID_DRIVER_ERR_ABORTED): New.
2649 * ccid-driver.c (ccid_open_reader): Support the stable 0.1 version
2651 (ccid_get_atr): Handle short messages.
2652 * apdu.c (my_rapdu_get_status): Implemented.
2653 * apdu.c: Include <signal.h>.
2654 * apdu.c (reader_table_s): Add function pointers for the backends.
2655 (apdu_close_reader, apdu_get_status, apdu_activate)
2656 (send_apdu): Make use of them.
2657 (new_reader_slot): Intialize them to NULL.
2658 (dump_ccid_reader_status, ct_dump_reader_status): New.
2659 (dump_pcsc_reader_status): New.
2660 (open_ct_reader, open_pcsc_reader, open_ccid_reader)
2661 (open_osc_reader, open_rapdu_reader): Intialize function pointers.
2662 (ct_activate_card, ct_send_apdu, pcsc_send_apdu, osc_send_apdu)
2663 (error_string): Removed. Replaced by apdu_strerror.
2664 (get_ccid_error_string): Removed.
2665 (ct_activate_card): Remove the unused loop.
2666 (reset_ct_reader): Implemented.
2667 (ct_send_apdu): Activate the card if not yet done.
2668 (pcsc_send_apdu): Ditto.
2669 * ccid-driver.h: Add error codes.
2670 * ccid-driver.c: Implement more or less proper error codes all
2672 * apdu.c (apdu_send_direct): New.
2673 (get_ccid_error_string): Add some error code mappings.
2674 (send_apdu): Pass error codes along for drivers already supporting
2676 (host_sw_string): New.
2677 (get_ccid_error_string): Use above.
2678 (send_apdu_ccid): Reset the reader if it has not yet been done.
2679 (open_ccid_reader): Don't care if the ATR can't be read.
2680 (apdu_activate_card): New.
2681 (apdu_strerror): New.
2682 (dump_reader_status): Only enable it with opt.VERBOSE.
2683 * iso7816.c (map_sw): Add mappings for the new error codes.
2684 * apdu.c (open_ct_reader, open_pcsc_reader, open_ccid_reader)
2685 (reset_ccid_reader, open_osc_reader): Call dump_reader_status only
2687 * app-openpgp.c (do_getattr): Fix for sending CA-FPR.
2688 * app-openpgp.c (app_openpgp_readkey): Fixed check for valid
2690 * app-openpgp.c (do_setattr): Sync FORCE_CHV1.
2691 * card-util.c (change_login): Kludge to allow reading data from a
2693 (card_edit): Pass ARG_STRING to change_login.
2694 (card_status): Print CA fingerprints.
2695 (change_cafpr): New.
2696 (card_edit): New command CAFPR.
2698 2004-04-30 Werner Koch <wk@gnupg.org>
2700 * g10.c (main) <gpgconf>: Use gpg.conf and not /dev/null as
2703 2004-04-28 Werner Koch <wk@gnupg.org>
2705 * card-util.c (card_edit): Remove PIN verification.
2706 (generate_card_keys): New arg SERIALNO. Do PIN verification here
2707 after resetting forced_chv1.
2710 2004-09-09 Werner Koch <wk@g10code.com>
2712 * signal.c (got_fatal_signal): Do readline cleanup. Print signal
2713 number if we can't print the name. Use new autoconf macro
2714 HAVE_DECL_SYS_SIGLIST.
2715 (get_signal_name): Removed.
2717 * photoid.c: Include ttyio.h.
2719 * parse-packet.c (skip_rest): Removed. Changed all callers to use
2720 the new iobuf_skip_reset. Orginal patch by Florian Weimer.
2722 2004-09-07 Werner Koch <wk@g10code.de>
2724 * photoid.c (generate_photo_id): Use tty_printf and not just
2725 printf. Put _() around one string.
2727 2004-09-03 David Shaw <dshaw@jabberwocky.com>
2729 * keyserver.c (parse_keyrec): Force the 'e'xpired flag on as soon
2730 as we know the key is definitely expired. Some translatable
2733 2004-08-27 David Shaw <dshaw@jabberwocky.com>
2735 * encode.c, exec.c, g10.c, sign.c: Some translatable string
2736 cleanup. Change some "this" to `this'.
2738 2004-08-23 David Shaw <dshaw@jabberwocky.com>
2740 * keyserver.c (keyserver_spawn): Show log line for what keyserver
2741 action we are taking.
2743 * keyid.c (keystr): If printing a keyid that lacks the high 4
2744 bytes, print the low 4 alone.
2745 (keystr_from_desc): Handle short keyids and warn on v3
2748 * keydb.h, getkey.c (get_user_id_printable,
2749 get_user_id_string_printable): Rename to get_user_id_native and
2750 get_user_id_string_native and remove the printable stuff since
2751 we're print-ifying valid utf8 characters. Change all callers in
2752 import.c, sign.c, keylist.c, and encode.c.
2754 * keyserver.c (keyserver_search_prompt): Make sure the search
2755 string is converted from UTF-8 before display.
2757 2004-08-19 Werner Koch <wk@g10code.de>
2759 * seskey.c (encode_session_key): Changed the zero random byte
2760 substituting code to actually do clever things. Thanks to
2761 Matthias Urlichs for noting the implementation problem.
2763 2004-08-18 Marcus Brinkmann <marcus@g10code.de>
2765 * passphrase.c (agent_get_passphrase): Fix detection of gpg-agent
2768 2004-08-08 David Shaw <dshaw@jabberwocky.com>
2770 * plaintext.c (handle_plaintext): Bigger buffer for extra safety.
2772 * g10.c (main): New alias --throw-keyid for --throw-keyids, so
2773 that it continues to work in old configuration files. Noted by
2776 * pkclist.c (algo_available): --pgp8 now allows blowfish, zlib,
2779 * status.c (do_get_from_fd): Flush stdout if status isn't flushing
2780 it for us. This guarantees that any menus that were displayed
2781 before the prompt don't get stuck in a buffer. Noted by Peter
2782 Palfrader. This is Debian bug #254072.
2784 * sign.c (update_keysig_packet): Revert change of 2004-05-18. It
2785 is not appropriate to strip policy and notations when remaking a
2786 sig. That should only happen when specifically requested by the
2789 2004-08-05 David Shaw <dshaw@jabberwocky.com>
2791 * armor.c (radix64_read): No armor CRC is legal according to the
2792 spec (the CRC is a MAY).
2794 2004-07-28 David Shaw <dshaw@jabberwocky.com>
2796 * misc.c (argsplit): Properly split quoted args from the keyword
2797 and trim whitespace afterwards.
2799 2004-07-27 David Shaw <dshaw@jabberwocky.com>
2801 * misc.c (optsep): Add the ability to understand keyword="quoted
2802 arg with spaces" type options.
2804 2004-07-16 David Shaw <dshaw@jabberwocky.com>
2806 * keylist.c (list_keyblock_print): Always use the new listing
2807 format where uids are always on a line for themselves. Mark
2808 expired secret keys as expired.
2810 * options.h, g10.c (main): Rename list show-validity to
2811 show-uid-validity as it only shows for uids.
2813 * armor.c (armor_filter): Do not use padding to get us to 8 bytes
2814 of header. Rather, use 2+4 as two different chunks. This avoids
2815 a fake filename of "is".
2817 2004-07-15 David Shaw <dshaw@jabberwocky.com>
2819 * keyedit.c (sign_uids): Properly handle remaking a self-sig on
2820 revoked or expired user IDs. Also, once we've established that a
2821 given uid cannot or will not be signed, don't continue to ask
2824 * mainproc.c (proc_symkey_enc), seckey-cert.c (do_check): Check
2825 the S2K hash algorithm before we try to generate a passphrase
2826 using it. This prevents hitting BUG() when generating a
2827 passphrase using a hash that we don't have.
2829 * sign.c (sign_symencrypt_file): Allow using --force-mdc in --sign
2830 --symmetric messages.
2832 * g10.c (main): Alias --charset as --display-charset to help avoid
2833 the continuing confusion and make room for possible changes in
2836 * parse-packet.c (parse_plaintext): Show the hex value for the
2837 literal packet mode since it may not be printable.
2839 * keygen.c (make_backsig): Make sure that the backsig was built
2840 successfully before we try and use it.
2842 * status.h, status.c (get_status_string), plaintext.c
2843 (handle_plaintext): New status tags PLAINTEXT and
2846 2004-06-16 Werner Koch <wk@gnupg.org>
2848 * free-packet.c (copy_secret_key): Get last fix right.
2850 2004-06-16 Werner Koch <wk@gnupg.org>
2852 * free-packet.c (copy_secret_key): Fixed memory leak when D is not
2855 * passphrase.c (passphrase_to_dek): Added a few comments to the
2858 2004-05-26 David Shaw <dshaw@jabberwocky.com>
2860 * keyserver.c (keyserver_refresh): Keep track of keys already
2861 fetched so we don't do a regular keyserver fetch if the preferred
2862 keyserver fetch has exhausted the list.
2864 2004-05-23 David Shaw <dshaw@jabberwocky.com>
2866 * verify.c (verify_signatures): Verify multiple files in the same
2867 order in which we hashed them when issuing the signature. Noted
2870 * pkclist.c (do_edit_ownertrust): Fix a kbnode leak and do another
2871 keyid-format conversion.
2873 2004-05-22 Werner Koch <wk@gnupg.org>
2875 * trustdb.c (check_regexp): s/EXP/EXPR/.
2877 * keyedit.c (trustsig_prompt): Remoev useless range check.
2879 * options.h: Renamed ctrl to glo_ctrl. Changed all users.
2881 * ccid-driver.c (ccid_open_reader): Print a warning when CCID
2884 2004-05-21 David Shaw <dshaw@jabberwocky.com>
2886 * mainproc.c (check_sig_and_print): If we're honoring preferred
2887 keyservers, and auto-key-retrieve is set, try and get a missing
2888 key from the preferred keyserver subpacket when we verify the sig.
2890 * gpgv.c (parse_preferred_keyserver, free_keyserver_spec): Stubs.
2892 * keyserver.c (keyidlist): Use new parse_preferred_keyserver
2894 (keyserver_work): Use the passed-in keyserver spec rather than the
2897 * keyserver-internal.h, keyserver.c (parse_preferred_keyserver):
2898 New function to take a sig and return a split out keyserver_spec.
2899 (keyserver_import_keyid): Now takes a keyserver_spec.
2901 * keyserver.c (keyidlist): Go back to the old fast keyid lister.
2902 Only merge selfsigs if we have to for honor-keyserver-url.
2903 (keyserver_refresh): Keyserver URL handler moved here.
2904 (calculate_keyid_fpr): Removed.
2906 * keydb.h, keyid.c (keystr_from_desc): Calculate a key string from
2907 a KEYDB_SEARCH_DESC.
2909 * keyserver.c (keyserver_spawn): Fix keyserver options on tempfile
2910 only platforms. Noted by Roger Sondermann.
2912 2004-05-20 David Shaw <dshaw@jabberwocky.com>
2914 * keyserver.c (keyserver_work): Allow --refresh-keys with a
2915 preferred keyserver to happen even if there is no global keyserver
2918 * sig-check.c (do_check_messages): No need to check for Elgamal
2919 signatures any longer.
2920 (do_check_messages, do_check, check_key_signature2):
2921 --keyid-format conversion.
2923 * pkclist.c (show_paths, edit_ownertrust): Remove some unused
2926 * options.h (ctrl): New for member IN_AUTO_KEY_RETRIEVE.
2928 * mainproc.c (check_sig_and_print): track whether we are
2931 * status.c (status_currently_allowed): New.
2932 (write_status_text, write_status_text_and_buffer): Use it here.
2934 * g10.c: New command --gpgconf-list.
2935 (gpgconf_list): New. From Werner on stable branch.
2937 2004-05-19 David Shaw <dshaw@jabberwocky.com>
2939 * pubkey-enc.c (get_session_key, get_it), keyedit.c
2940 (show_key_with_all_names, show_basic_key_info): --keyid-format
2943 2004-05-18 David Shaw <dshaw@jabberwocky.com>
2945 * sign.c (update_keysig_packet): Policies and notations should be
2946 stripped out when remaking a self-signature. Noted by Atom
2949 * keyserver.c (parse_keyserver_uri): Fix compiler warnings.
2951 2004-05-11 David Shaw <dshaw@jabberwocky.com>
2953 * options.h, keyserver-internal.h, keyserver.c
2954 (parse_keyserver_uri): Improved URI parser that keeps track of the
2955 path information and doesn't modify the input string.
2956 (keyserver_spawn): Tell keyserver plugins about the path.
2958 2004-05-11 Werner Koch <wk@gnupg.org>
2960 * keylist.c (show_policy_url, show_keyserver_url, show_notation)
2961 (list_one): Use const char* for i18n string helpers.
2963 * keygen.c (do_generate_keypair, read_parameter_file): Really
2965 (do_generate_keypair): Create the secret key file using safe
2966 permissions. Noted by Atom Smasher.
2968 2004-05-10 David Shaw <dshaw@jabberwocky.com>
2970 * options.h, mainproc.c (symkey_decrypt_seskey), keyserver.c
2971 (struct keyrec, parse_keyrec, keyserver_search_prompt), keyedit.c
2972 (keyedit_menu), g10.c (add_keyserver_url, add_policy_url): Fix
2973 some compiler warnings.
2975 2004-05-08 David Shaw <dshaw@jabberwocky.com>
2977 * keyedit.c (keyedit_menu, menu_set_keyserver_url): Allow passing
2978 preferred keyserver on "keyserver" command line. Sanity check
2979 keyserver URL before accepting it.
2981 * keyserver-internal.h, g10.c (main), keyserver.c
2982 (parse_keyserver_uri): Add an option to require the scheme:// and
2984 (free_keyserver_spec): Make public.
2986 2004-05-07 Werner Koch <wk@gnupg.org>
2988 * sign.c (write_plaintext_packet): Fixed the detection of too
2989 large files in the same way as in encode.c.
2991 2004-05-04 David Shaw <dshaw@jabberwocky.com>
2993 * keylist.c (show_notation): Use bits to select which sort of
2994 notation to show. Don't allow a not-shown notation to prevent us
2995 from issuing the proper --status-fd message.
2997 * options.h, g10.c (main): Add show-std/standard-notations and
2998 show-user-notations. show-notations is both. Default is to show
2999 standard notations only during verify. Change all callers.
3001 2004-04-28 David Shaw <dshaw@jabberwocky.com>
3003 * main.h, keylist.c (show_notation): Add argument to show only
3004 user notations, only standard notations, or both. Change all
3007 * keyserver.c (keyserver_spawn): We still need EXEC_TEMPFILE_ONLY.
3009 2004-04-28 Werner Koch <wk@gnupg.org>
3011 * card-util.c (card_edit): Require PIN only for generate.
3013 * app-openpgp.c (do_setattr): Sync FORCE_CHV1.
3015 2004-04-27 Werner Koch <wk@gnupg.org>
3017 * keyserver.c (keyserver_spawn) [EXEC_TEMPFILE_ONLY]: Removed
3018 setting use_temp_file because this option has been removed.
3020 * g10.c: New commands --allow-admin and --deny-admin.
3021 * options.h (opt): Add member ALLOW_ADMIN.
3023 * tlv.h, tlv.c: New. Copied from gnupg-1.9.
3024 * cardglue.c (open_card): The serialno is now set internally by
3025 app_select_openpgp; changed invocation.
3026 * cardglue.h (app_t, ctrl_t): New.
3027 (GPG_ERR_EBUSY, GPG_ERR_ENOENT, GPG_ERR_NOT_FOUND, GPG_ERR_BUG)
3028 (GPG_ERR_NOT_IMPLEMENTED, GPG_ERR_EACCESS): New.
3029 (gpg_err_code_from_errno): New.
3031 * app-common.h, app-openpgp.c, iso7816.c, iso7816.h
3032 * apdu.c, apdu.h, ccid-driver.c, ccid-driver.h
3033 * card-util.c: Updated from current gnupg-1.9.
3037 * app-common.h: New members FNC.DEINIT and APP_LOCAL.
3038 * app-openpgp.c (do_deinit): New.
3039 (get_cached_data, flush_cache_item, flush_cache_after_error)
3041 (get_one_do): Replaced arg SLOT by APP. Make used of cached data.
3042 (verify_chv2, verify_chv3): Flush some cache item after error.
3043 (do_change_pin): Ditto.
3045 (do_setattr): Flush cache item.
3046 (do_genkey): Flush the entire cache.
3047 (compare_fingerprint): Use cached data.
3049 * apdu.c (apdu_send_le): Reinitialize RESULTLEN. Handle
3050 SW_EOF_REACHED like SW_SUCCESS.
3052 * ccid-driver.c (parse_ccid_descriptor): Store some of the reader
3053 features away. New arg HANDLE
3054 (read_device_info): New arg HANDLE. Changed caller.
3055 (bulk_in): Handle time extension requests.
3056 (ccid_get_atr): Setup parameters and the IFSD.
3057 (compute_edc): New. Factored out code.
3058 (ccid_transceive): Use default NADs when required.
3060 * apdu.h: New pseudo stati SW_HOST_NOT_SUPPORTED,
3061 SW_HOST_LOCKING_FAILED and SW_HOST_BUSY.
3062 * iso7816.c (map_sw): Map it.
3064 * ccid-driver.c (ccid_slot_status): Add arg STATUSBITS.
3065 * apdu.c (apdu_get_status): New.
3066 (ct_get_status, pcsc_get_status, ocsc_get_status): New stubs.
3067 (get_status_ccid): New.
3069 (reset_ct_reader, reset_pcsc_reader, reset_osc_reader): New stubs.
3070 (reset_ccid_reader): New.
3071 (apdu_enum_reader): New.
3073 * apdu.c (lock_slot, trylock_slot, unlock_slot): New helpers.
3074 (new_reader_slot) [USE_GNU_PTH]: Init mutex.
3075 (apdu_reset, apdu_get_status, apdu_send_le): Run functions
3078 2004-04-25 David Shaw <dshaw@jabberwocky.com>
3080 * getkey.c (get_seckey_byname2): Significantly simplify this
3081 function by using key_byname to do the heavy lifting. Note that
3082 this also fixes an old problem when the first key on the secret
3083 keyring has an unusable stub primary, but is still chosen.
3085 * getkey.c (key_byname): If namelist is NULL, return the first key
3088 2004-04-22 David Shaw <dshaw@jabberwocky.com>
3090 * keygen.c (make_backsig): If DO_BACKSIGS is not defined, do not
3093 * getkey.c (merge_selfsigs_subkey): Find 0x19 backsigs on subkey
3094 selfsigs and verify they are valid. If DO_BACKSIGS is not
3095 defined, fake this as always valid.
3097 * packet.h, parse-packet.c (parse_signature): Make parse_signature
3098 non-static so we can parse 0x19s in self-sigs.
3100 * main.h, sig-check.c (check_backsig): Check a 0x19 signature.
3101 (signature_check2): Give a backsig warning if there is no or a bad
3102 0x19 with signatures from a subkey.
3104 2004-04-21 David Shaw <dshaw@jabberwocky.com>
3106 * parse-packet.c (dump_sig_subpkt, parse_one_sig_subpkt,
3107 can_handle_critical): Parse and display 0x19 signatures.
3109 2004-04-20 David Shaw <dshaw@jabberwocky.com>
3111 * keyserver.c (parse_keyserver_uri): Do not accept "http" as an
3112 alias for "hkp". They are not the same thing.
3114 2004-04-19 David Shaw <dshaw@jabberwocky.com>
3116 * options.h, g10.c (main): Add keyserver-option
3117 honor-keyserver-url. parse_keyserver_options now returns a
3120 * keyserver.c (parse_keyserver_options): Return error on failure
3121 to parse. Currently there is no way to fail as any unrecognized
3122 options get saved to be sent to the keyserver plugins later.
3123 Check length of keyserver option tokens since with =arguments we
3124 must only match the prefix.
3125 (free_keyserver_spec): Moved code from parse_keyserver_url.
3126 (keyserver_work, keyserver_spawn): Pass in a struct keyserver_spec
3127 rather than using the global keyserver option.
3128 (calculate_keyid_fpr): New. Fills in a KEYDB_SEARCH_DESC for a
3130 (keyidlist): New implementation using get_pubkey_bynames rather
3131 than searching the keydb directly. If honor-keyserver-url is set,
3132 make up a keyserver_spec and try and fetch that key directly. Do
3133 not include it in the returned keyidlist in that case.
3135 2004-04-16 David Shaw <dshaw@jabberwocky.com>
3137 * plaintext.c (handle_plaintext): Accept 'u' as a plaintext mode
3138 that requires end of line conversion. This is being considered
3139 for a UTF8 text packet. If this doesn't take place, no major harm
3140 done. If it does take place, we'll get a jump on starting the
3143 * g10.c (main): --no-use-embedded-filename.
3145 * build-packet.c (calc_plaintext, do_plaintext): Do not create
3146 illegal (packet header indicates a size larger than the actual
3147 packet) encrypted data packets when not compressing and using a
3148 filename longer than 255 characters.
3150 * keyedit.c (no_primary_warning): Cleanup. (menu_expire): Don't
3151 give primary warning for subkey expiration changes. These cannot
3154 * keygen.c (gen_elg, gen_dsa, gen_rsa, do_create,
3155 do_generate_keypair, generate_subkeypair): New is_subkey argument
3156 to set whether a generated key is a subkey. Do not overload the
3157 ret_sk. This is some early cleanup to do backsigs for signing
3160 * keygen.c (write_keybinding, do_generate_keypair,
3161 generate_subkeypair): Keep track of the unprotected subkey secret
3162 key so we can make a backsig with it.
3164 * keygen.c (make_backsig): New function to add a backsig to a
3165 binding sig of signing subkeys. Currently disabled.
3166 (write_keybinding): Call it here, for signing subkeys only.
3168 * sign.c (make_keysig_packet): Allow generating 0x19 signatures
3169 (same as 0x18 or 0x28, but used for backsigs).
3171 * packet.h, build-packet.c (build_sig_subpkt): Add new
3172 SIGSUBPKT_SIGNATURE type for embedded signatures.
3174 * main.h, misc.c (optsep, argsplit, optlen, parse_options):
3175 Simplify code and properly handle a partial match against an
3176 option with an argument.
3178 * keyserver-internal.h, keyserver.c (parse_keyserver_options): Use
3179 new optsep and argsplit functions.
3181 2004-04-15 David Shaw <dshaw@jabberwocky.com>
3183 * main.h, misc.c (argsplit): Refactor argsep into argsplit and
3184 argsep so they can be called separately.
3186 * options.h, keyserver.c (parse_keyserver_options): Remove
3187 duplicate code from parse_keyserver_options by calling the generic
3190 * keyserver.c (keyserver_spawn, keyserver_refresh), g10.c (main),
3191 gpgv.c (main), mainproc.c (check_sig_and_print), import.c
3192 (revocation_present): Change all callers.
3194 2004-04-14 David Shaw <dshaw@jabberwocky.com>
3196 * packet.h, getkey.c (fixup_uidnode, merge_selfsigs_subkey): Keep
3197 track of which self-sig we actually chose.
3199 * keyedit.c (menu_expire, menu_set_primary_uid,
3200 menu_set_preferences): Use it here to avoid updating non-used
3201 self-sigs and possibly promoting an old self-sig into
3202 consideration again.
3204 * options.h, import.c, keyserver-internal.h, g10.c, mainproc.c,
3205 keyserver.c (parse_keyserver_uri): Parse keyserver URI into a
3206 structure. Cleanup for new "guess my keyserver" functionality, as
3207 well as refreshing via a preferred keyserver subpacket.
3209 * options.h: Encapsulate keyserver details. Change all callers.
3211 2004-04-05 Werner Koch <wk@gnupg.org>
3213 * status.h (STATUS_NEWSIG): New.
3214 * status.c (get_status_string): Add it.
3216 2004-03-27 David Shaw <dshaw@jabberwocky.com>
3218 * keyedit.c (keyedit_menu): Request a trustdb update when adding a
3219 new user ID so the new ID gets validity set. Reported by Owen
3222 2004-03-25 David Shaw <dshaw@jabberwocky.com>
3224 * options.h, g10.c (main), compress-bz2.c (init_uncompress):
3225 Rename --bzip2-compress-lowmem to --bzip2-decompress-lowmem since
3226 it applies to decompression, not compression.
3228 2004-03-24 David Shaw <dshaw@jabberwocky.com>
3230 * keyedit.c (sign_uids, show_key_and_fingerprint, ask_revoke_sig,
3231 menu_revsig, menu_showphoto): --keyid-format conversion.
3232 (menu_addrevoker): Use print_pubkey_info() rather than duplicating
3235 2004-03-19 David Shaw <dshaw@jabberwocky.com>
3237 * trustdb.c (update_min_ownertrust, validate_keys): Do not use
3238 keystr functions in log_debug.
3240 * import.c (import_one): Try and collapse user IDs when importing
3241 a key for the first time.
3243 * keyedit.c (menu_addrevoker): Allow appointing a subkey as a
3244 designated revoker if the user forces it via keyid!, so long as
3245 the subkey can certify. Also use the proper date string when
3246 prompting for confirmation.
3248 * g10.c (main): Maintain ordering of multiple Comment lines.
3249 Requested by Peter Hyman.
3251 2004-03-17 David Shaw <dshaw@jabberwocky.com>
3253 * mainproc.c (proc_pubkey_enc, print_pkenc_list, list_node):
3254 --keyid-format conversion.
3256 2004-03-16 David Shaw <dshaw@jabberwocky.com>
3258 * getkey.c (skip_unusable, merge_selfsigs_main,
3259 premerge_public_with_secret, lookup, get_user_id_string):
3260 --keyid-format conversion.
3262 2004-03-15 David Shaw <dshaw@jabberwocky.com>
3264 * trustdb.c (add_utk, verify_own_keys, update_min_ownertrust,
3265 get_validity, ask_ownertrust, validate_keys): --keyid-format
3268 * import.c (check_prefs_warning, check_prefs): --keyid-format
3269 conversion and a little better text.
3270 (import_one, import_secret_one, import_revoke_cert, chk_self_sigs,
3271 delete_inv_parts, merge_blocks): Still more --keyid-format
3274 2004-03-06 David Shaw <dshaw@jabberwocky.com>
3276 * keylist.c (print_seckey_info, print_pubkey_info): --keyid-format
3278 (list_keyblock_print): 0xshort should not push us into the new
3279 list format since it is not much longer than regular 8-character
3282 * keydb.h, keyid.c (keystr_from_pk, keystr_from_sk): New functions
3283 to pull a key string from a key in one step. This isn't faster
3284 than before, but makes for neater code.
3286 * keylist.c (list_keyblock_print): Use keystr_from_xx here.
3287 (print_key_data): No need to pass a keyid in.
3289 2004-03-05 David Shaw <dshaw@jabberwocky.com>
3291 * keyid.c (keyid_from_sk): Minor performance boost by caching
3292 secret key keyids so we don't have to calculate them each time.
3294 * getkey.c (merge_selfsigs_subkey): Do not mark subkeys valid if
3295 we do not support their pk algorithm. This allows for early
3296 (during get_*) rejection of a subkey, and selection of another.
3298 * passphrase.c (passphrase_to_dek): Give a little more information
3299 when we have room to do so.
3301 2004-03-04 David Shaw <dshaw@jabberwocky.com>
3303 * revoke.c (export_minimal_pk), export.c (do_export_stream),
3304 passphrase.c (passphrase_to_dek), keyserver.c (print_keyrec): A
3305 few more places to use --keyid-format.
3307 * options.h, g10.c (main), export.c (parse_export_options,
3308 do_export_stream): Remove --export-all and the "include-non-rfc"
3309 export-option as they are no longer meaningful with the removal of
3312 * armor.c (fake_packet, armor_filter): Use the 2440 partial length
3313 encoding for the faked plaintext packet.
3315 2004-03-03 David Shaw <dshaw@jabberwocky.com>
3317 * options.h, g10.c (main), mainproc.c (check_sig_and_print):
3318 Remove verify-option show-long-keyids and replace with
3319 the more general keyid-format.
3321 * build-packet.c (write_header2): Remove call to start old gpg
3322 partial length mode and change all callers.
3323 (do_plaintext): Turn off partial length encoding now that we're
3324 done writing the packet.
3325 (do_comment, do_user_id): Try for a headerlen of 2 since that's
3326 the smallest and most likely encoding for these packets.
3328 * parse-packet.c (parse): Remove call to start old gpg partial
3331 2004-03-02 David Shaw <dshaw@jabberwocky.com>
3333 * options.h, g10.c (main): Add a more flexible --keyid-format
3334 option to replace the list-option (and eventually verify-option)
3335 show-long-keyids. The format can be short, long, 0xshort, and
3338 * keydb.h, keyid.c (keystr, keystrlen): New functions to generate
3341 * keyedit.c (print_and_check_one_sig, show_key_with_all_names),
3342 keylist.c (list_keyblock_print): Use new keystr() function here to
3345 * packet.h, free-packet.c (free_encrypted, free_plaintext),
3346 parse-packet.c (copy_packet, skip_packet, skip_rest, read_rest,
3347 parse_plaintext, parse_encrypted, parse_gpg_control): Use a flag
3348 to indicate partial or indeterminate encoding. This is the first
3349 step in some minor surgery to remove the old gpg partial length
3352 2004-03-01 David Shaw <dshaw@jabberwocky.com>
3354 * parse-packet.c (parse): Only data-type packets are allowed to
3355 use OpenPGP partial length encoding.
3357 2004-02-25 David Shaw <dshaw@jabberwocky.com>
3359 * delkey.c (do_delete_key): Allow deleting a public key with a
3360 secret present if --expert is set.
3362 * plaintext.c (handle_plaintext): Make bytecount static so it
3363 works with multiple literal packets inside a message.
3365 * encode.c, helptext.c (keygen.algo, keygen.algo.elg_se), keygen.c
3366 (ask_algo), sig-check.c (do_check_messages), skclist.c
3367 (build_sk_list): Rename "ElGamal" to "Elgamal" as that is the
3368 proper spelling nowadays. Suggested by Jon Callas.
3370 2004-02-24 David Shaw <dshaw@jabberwocky.com>
3372 * plaintext.c: Copyright.
3374 * encode.c (encode_simple): Show cipher with --verbose.
3376 * options.h, g10.c (main), keyedit.c (sign_keys): Add
3377 --ask-cert-level option to enable cert level prompts during
3378 sigs. Defaults to on. Simplify --default-cert-check-level to
3379 --default-cert-level. If ask-cert-level is off, or batch is on,
3380 use the default-cert-level as the cert level.
3382 * options.h, g10.c (main), trustdb.c (mark_usable_uid_certs):
3383 Simplify --min-cert-check-level to --min-cert-level.
3385 2004-02-22 David Shaw <dshaw@jabberwocky.com>
3387 * options.h, g10.c (main), trustdb.c (mark_usable_uid_certs): Add
3388 --min-cert-check-level option to specify minimum cert check level.
3389 Defaults to 2 (so 0x11 sigs are ignored). 0x10 sigs cannot be
3392 2004-02-21 David Shaw <dshaw@jabberwocky.com>
3394 * plaintext.c (handle_plaintext): Properly handle a --max-output
3395 of zero (do not limit output at all).
3397 * keyserver.c (keyserver_spawn): Use the full 64-bit keyid in the
3398 INFO header lines, and include "sig:" records for the benefit of
3399 people who store their keys in LDAP servers. It makes it easy to
3400 do queries for things like "all keys signed by Isabella".
3402 * main.h, misc.c (hextobyte): Removed. It's in libutil.a now.
3404 2004-02-20 David Shaw <dshaw@jabberwocky.com>
3406 * keyserver.c (keyserver_export): Disallow user strings that
3408 (keyserver_import): Clarify error message.
3409 (keyserver_spawn): Properly handle 8 bit characters in user IDs in
3410 the info lines during SEND.
3412 * mkdtemp.c: Removed.
3414 * Makefile.am: We get mkdtemp.c from libutil.a now, so don't link
3417 * keyserver.c (keyserver_spawn): Pass the scheme to the keyserver
3420 2004-02-18 David Shaw <dshaw@jabberwocky.com>
3422 * options.h, g10.c (main), plaintext.c (handle_plaintext): Add
3423 --max-output option to help people deal with decompression bombs.
3425 2004-02-15 David Shaw <dshaw@jabberwocky.com>
3427 * build-packet.c (do_user_id): Do not force a header for attribute
3428 packets as they require a new CTB, and we don't support forced
3429 headers for new CTBs yet.
3431 2004-02-14 David Shaw <dshaw@jabberwocky.com>
3433 * build-packet.c (write_header2): If a suggested header length is
3434 provided along with a zero length, interpret this as an actual
3435 zero length packet and not as an indeterminate length packet.
3436 (do_comment, do_user_id): Use it here as these packets might be
3437 naturally zero length.
3439 * parse-packet.c (parse): Show packet type when failing due to an
3440 indeterminate length packet.
3442 * misc.c (parse_options): Only provide args for the true (i.e. not
3443 "no-xxx") form of options.
3445 2004-02-13 David Shaw <dshaw@jabberwocky.com>
3447 * keyserver.c (argsep): Move to misc.c.
3449 * main.h, misc.c (parse_options), export.c (parse_export_options),
3450 import.c (parse_import_options), g10.c (main): Use it here to
3451 allow for options with optional arguments. Change all callers.
3453 * import.c (check_prefs): Some language fixes.
3454 (sec_to_pub_keyblock, import_secret_one): Without knowing the
3455 number of MPIs there are, we cannot try and sk-to-pk-ize a key.
3457 2004-02-12 David Shaw <dshaw@jabberwocky.com>
3459 * import.c (check_prefs): New function to check preferences on a
3460 public key to ensure that it does not advertise any that we cannot
3461 fulfill. Use the keyedit command list function to optionally
3463 (import_one, import_secret_one): Use it here when importing a
3464 public key that we have the secret half of, or when importing a
3465 secret key that we have the public half of.
3467 * main.h, keyedit.c (keyedit_menu): Remove sign_mode and enhance
3468 the more general command list functionality to replace it.
3470 * g10.c (main): Use the general command functionality to implement
3471 --sign-key, --lsign-key, --nrsign-key, and --nrlsign-key.
3473 * import.c (import_one): Do the revocation check even in the case
3474 when a key, a revocation key set in a direct key signature, and a
3475 revocation from that revocation key, all arrive piecemeal.
3476 Needless to say, this is pretty obscure.
3478 2004-02-11 David Shaw <dshaw@jabberwocky.com>
3480 * options.h, g10.c (main), keylist.c (list_keyblock_print): Add
3481 "show-unusable-subkeys" list-option to show revoked and/or expired
3484 2004-02-10 David Shaw <dshaw@jabberwocky.com>
3486 * keyedit.c (keyedit_menu): Prompt for subkey removal for both
3487 secret and public subkeys.
3489 * keylist.c (list_keyblock_print), keyedit.c
3490 (show_key_with_all_names): Show the revocation date of a
3491 key/subkey, and general formatting work.
3493 * packet.h, getkey.c (merge_selfsigs_main, merge_selfsigs_subkey,
3494 merge_selfsigs): Keep track of the revocation date of a key.
3496 * keydb.h, keyid.c (revokestr_from_pk): New function to print the
3497 revocation date of a key.
3499 * keygen.c (keygen_set_std_prefs): Build the default preferences
3500 list at runtime as it properly handles algorithms disabled at
3503 * getkey.c (merge_selfsigs_main): Properly handle expired user IDs
3504 when the expired self-sig is not the only self-sig.
3506 * misc.c (compress_algo_to_string): Return NULL on failure like
3507 all of the other xxxx_algo_to_string() functions.
3509 * mainproc.c (list_node): Minor spacing tweak to match --list-keys
3512 * keylist.c (list_keyblock_print), mainproc.c (list_node): Mark
3513 revoked subkeys as revoked. Requested by Matthew Wilcox. Revoked
3514 overrides expiration when both apply.
3516 * keyedit.c (show_prefs): Use compress algo constants.
3517 (show_basic_key_info): Make revoked and expired tags translatable.
3519 * g10.c (rm_group): Properly ungroup from a list of groups.
3521 2004-01-30 David Shaw <dshaw@jabberwocky.com>
3523 * g10.c (main, rm_group): Add --ungroup command to remove a
3525 (add_group): When adding a group with the same name as an already
3526 existing group, merge the two groups.
3527 (list_config): Show an error message when listing a config item
3529 (main): Replace -z0 trick for no compression.
3531 * packet.h, keyedit.c (show_key_with_all_names_colon), keylist.c
3532 (list_keyblock_colon), mainproc.c (list_node, proc_tree): Minor
3533 cleanup to remove local_id, which is no longer used.
3535 2004-01-27 David Shaw <dshaw@jabberwocky.com>
3537 * getkey.c: Set MAX_PK_CACHE_ENTRIES and MAX_UID_CACHE_ENTRIES to
3538 PK_UID_CACHE_SIZE (set in ./configure).
3540 * getkey.c (get_pubkey): When reading key data into the cache,
3541 properly handle keys that are partially (pk, no UIDs) cached
3542 already. This is Debian bug #176425 and #229549.
3544 * compress.c (init_compress, push_compress_filter2): Do the right
3545 thing (i.e. nothing) with compress algo 0.
3547 * main.h, decrypt.c (decrypt_messages): Accept filenames to
3548 decrypt on stdin. This is bug #253.
3550 2004-01-23 David Shaw <dshaw@jabberwocky.com>
3552 * mainproc.c (list_node): Show sigs with --verbose.
3554 * options.h, g10.c (set_screen_dimensions): New function to look
3555 at COLUMNS and LINES.
3557 * keyserver.c (parse_keyrec, keyserver_search_prompt), keyedit.c
3558 (print_and_check_one_sig): Use new screen dimension variables.
3560 2004-01-21 David Shaw <dshaw@jabberwocky.com>
3562 * g10.c (list_config): New function to dump config options to
3563 stdout. Currently requires --with-colons.
3564 (collapse_args): New function to turn argc/argv into a single
3566 (main): Use it here to pass list_config() more than one argument
3568 (print_algo_numbers): Helper to print algorithm number for
3569 --list-config "pubkey", "cipher", "hash"/"digest", and "compress"
3572 * packet.h, getkey.c (merge_selfsigs, merge_selfsigs_main),
3573 pkclist.c (check_signatures_trust): Indicate who has revoked a key
3574 (the owner or a designated revoker). If a key was revoked by
3575 both, prefer the owner. If a subkey is already revoked by the
3576 owner, don't allow a designated revokation of the whole key to
3577 override this. We're still revoked either way, of course.
3579 * keyedit.c (print_and_check_one_sig, keyedit_menu): Use the
3580 COLUMNS environment variable (if any) to hint how wide the
3581 terminal is. Disabled on _WIN32. Suggested by Janusz
3584 2004-01-20 David Shaw <dshaw@jabberwocky.com>
3586 * keylist.c (set_attrib_fd): Open attribute fd in binary
3587 mode. This isn't meaningful on POSIX systems, but the Mingw builds
3588 aren't exactly POSIX.
3590 * trustdb.c (reset_trust_records): New, faster, implementation
3591 that doesn't involve a keyring scan.
3592 (clear_validity): Removed.
3594 * g10.c (main), keydb.h, keydb.c (keydb_rebuild_caches),
3595 keyring.h, keyring.c (keyring_rebuild_cache): Add "noisy" flag so
3596 cache rebuilds can remain noisy when called for itself, and quiet
3597 when called as part of the trustdb rebuild.
3599 * trustdb.c (validate_keys): Rebuild the sig caches before
3600 building the trustdb. Note that this is going to require some
3601 architectual re-thinking, as it is agonizingly slow.
3603 2004-01-19 David Shaw <dshaw@jabberwocky.com>
3605 * sig-check.c (check_key_signature2): Comments.
3607 * keyring.c (keyring_rebuild_cache): Clear sig cache for any
3608 signatures that we can no longer process (say, if the user removed
3609 support for a necessary pubkey or digest algorithm).
3611 2004-01-16 David Shaw <dshaw@jabberwocky.com>
3613 * misc.c (print_cipher_algo_note): May as well call Rijndael AES
3616 * keygen.c (do_create), misc.c (openpgp_pk_algo_usage): Remove the
3617 last bits of Elgamal type 20 support.
3619 2004-01-03 Stefan Bellon <sbellon@sbellon.de>
3621 * compress.c [__riscos__]: Only use RISC OS' own ZLib module if
3622 configured to use it.
3624 2003-12-30 David Shaw <dshaw@jabberwocky.com>
3626 * options.h, g10.c (main), import.c (parse_import_options,
3627 import_one, import_secret_one), keyserver.c (keyserver_refresh):
3628 Change --merge-only to --import-option merge-only. Deprecate
3631 2003-12-29 David Shaw <dshaw@jabberwocky.com>
3633 * misc.c (pull_in_libs): Dead code. Removed.
3635 * sig-check.c (check_revocation_keys): Comments.
3637 * getkey.c (merge_selfsigs_main): Don't bother to check designated
3638 revoker sigs if the key is already revoked.
3640 * packet.h, getkey.c (merge_selfsigs_main): New "maybe_revoked"
3641 flag on PKs. It is set when there is a revocation signature from
3642 a valid revocation key, but the revocation key is not present to
3643 verify the signature.
3645 * pkclist.c (check_signatures_trust): Use it here to give a
3646 warning when showing key trust.
3648 * compress-bz2.c: Include stdio.h. Solaris 9 has a very old bzip2
3649 library and we can at least guarantee that it won't fail because
3650 of the lack of stdio.h.
3652 * tdbio.c: Fixed format string bugs related to the use of DB_NAME.
3653 Reported by Florian Weimer.
3655 2003-12-28 David Shaw <dshaw@jabberwocky.com>
3657 * options.h, g10.c (main), keyserver.c (keyserver_opts,
3658 parse_keyserver_uri): honor-http-proxy is no longer an option
3659 since we can do the same thing with http-proxy with no arguments.
3660 Also remove broken-http-proxy since it can be better handled in
3663 * keyserver.c (argsep): New variation on strsep that knows about
3665 (parse_keyserver_options): Use it here for optional arguments.
3667 2003-12-28 Stefan Bellon <sbellon@sbellon.de>
3669 * plaintext.c (handle_plaintext) [__riscos__]: Don't mangle
3670 filename if the user specified it.
3672 * g10.c, gpgv.c [__riscos__]: Removal of unnecessary #ifdef
3673 __riscos__ sections.
3675 2003-12-27 David Shaw <dshaw@jabberwocky.com>
3677 * keyserver.c (strip_leading_space, get_arg): New.
3678 (parse_keyserver_options): Use them here to allow arguments to
3679 keyserver-options. Since none of our options need arguments yet,
3680 just pass them through whole to the keyserver helper.
3682 * main.h, misc.c (parse_options): Add a "noisy" flag to enable and
3683 disable the messages about which option didn't match or matched
3684 ambiguously. Change all callers (g10.c, keyserver.c).
3686 * main.h, import.c (import_options), export.c (export_options):
3687 Pass the noisy flag through.
3689 2003-12-17 David Shaw <dshaw@jabberwocky.com>
3691 * build-packet.c (write_fake_data, do_secret_key), seckey-cert.c
3692 (do_check): Use an unsigned length for mpi_get_opaque.
3694 * options.h: It's impolite to assign -1 to an unsigned
3695 opt.force_ownertrust.
3697 * sig-check.c (cmp_help, do_check), sign.c (do_sign): Remove old
3700 * keyid.c (keyid_from_sk): Make sure lowbits is initialized.
3702 2003-12-12 David Shaw <dshaw@jabberwocky.com>
3704 * sig-check.c (do_check): Move the signing algo and hash checks
3706 (signature_check2): ... to here.
3707 (check_key_signature2): ... and here. This is a minor
3708 optimization to avoid fetching a key (which can be expensive,
3709 especially if it is not self-signed, and there are many key
3710 signatures on it which need to be checked for ultimate trust) if
3711 the signature would have failed anyway because of algorithm or
3714 2003-12-10 David Shaw <dshaw@jabberwocky.com>
3716 * packet.h, build-packet.c (hash_public_key): Remove function ...
3718 * keydb.h, keyid.c (hash_public_key, do_fingerprint_md): ... and
3719 make a new one here that shares code with the fingerprint
3720 calculations. This removes some duplicated functionality, and is
3721 also around 14% faster. (Every bit helps).
3723 * import.c (import_one): No longer need the Elgamal import
3726 * getkey.c (get_pubkey_fast): This one is sort of obscure.
3727 get_pubkey_fast returns the primary key when requesting a subkey,
3728 so if a user has a key signed by a subkey (we don't do this, but
3729 used to), AND that key is not self-signed, AND the algorithm of
3730 the subkey in question is not present in GnuPG, AND the algorithm
3731 of the primary key that owns the subkey in question is present in
3732 GnuPG, then we will try and verify the subkey signature using the
3733 primary key algorithm and hit a BUG(). The fix is to not return a
3734 hit if the keyid is not the primary. All other users of
3735 get_pubkey_fast already expect a primary only.
3737 2003-12-09 David Shaw <dshaw@jabberwocky.com>
3739 * keyid.c (do_fingerprint_md): Remove the rules to hash the old v3
3740 Elgamal keys. They are no longer needed.
3742 * keyid.c (keyid_from_sk, keyid_from_pk, fingerprint_from_pk,
3743 fingerprint_from_sk): Enforce the v3-is-only-RSA rule. Anything
3744 that isn't RSA gets a zero keyid and fingerprint.
3746 * keyid.c (do_fingerprint_md): Properly handle hashing of keys
3747 that we don't know the structure of by using the opaque MPI.
3748 (do_fingerprint_md_sk): We cannot calculate the fingerprint from a
3749 secret key unless we know the structure (since we can't leave off
3750 the secret key parts), so fail early.....
3751 (keyid_from_sk, fingerprint_from_sk): .... and return all zeroes.
3753 2003-12-03 David Shaw <dshaw@jabberwocky.com>
3755 * g10.c (strusage, main): Show development version warning in
3757 (main): Set --bzip2-compress-level to the default value at
3758 startup. Remove --emulate-checksum-bug noop.
3760 * options.h, g10.c (main), main.h, seskey.c (do_encode_md,
3761 encode_md_value), sig-check.c (do_check), sign.c (do_sign): Remove
3762 --emulate-md-encode-bug as it only applied to Elgamal signatures,
3763 which are going away.
3765 2003-11-30 David Shaw <dshaw@jabberwocky.com>
3767 * mainproc.c (proc_symkey_enc, proc_encrypted): Add ability to use
3768 --override-session-key on --symmetric messages (new-style or
3770 (proc_pubkey_enc): Move code to show session key from here to
3771 proc_encrypted() so it can work with any type of message.
3772 Suggested by Michael Young.
3774 2003-11-29 David Shaw <dshaw@jabberwocky.com>
3776 * trustdb.c (validate_keys): Reset the trustdb before checking if
3777 we have any ultimately trusted keys. This ensures that if we lose
3778 all our ultimately trusted keys, we don't leave behind the old
3779 validity calculations. Noted by Peter Palfrader.
3781 * revoke.c (gen_desig_revoke): Specify in the comment when a
3782 designated revocation is generated.
3784 * getkey.c (merge_selfsigs_main, merge_selfsigs_subkey,
3785 get_seckey_byname2): Remove Elgamal check since we are removing
3786 type 20 keys altogether.
3788 2003-11-27 David Shaw <dshaw@jabberwocky.com>
3790 * pkclist.c (build_pk_list): Do not allow an empty PK list in
3793 * keygen.c (ask_algo): Remove ability to generate Elgamal
3796 * getkey.c (merge_selfsigs_main, merge_selfsigs_subkey,
3797 get_seckey_byname2): Disallow use of sign+encrypt Elgamal keys.
3799 2003-11-20 David Shaw <dshaw@jabberwocky.com>
3801 * seskey.c (do_encode_md): Comment about earlier (pre-PGP 2.3)
3804 * misc.c (compress_algo_to_string): Translate "Uncompressed".
3805 Requested by Tommi Vainikainen.
3806 (string_to_compress_algo): Include multi-string for
3807 "uncompressed|none".
3809 2003-11-17 David Shaw <dshaw@jabberwocky.com>
3811 * options.h, g10.c (main), compress-bz2.c (init_uncompress): Add
3812 --bz2-compress-lowmem to set bzlib "small" flag for low memory
3813 (but slow) decompression.
3815 2003-11-15 David Shaw <dshaw@jabberwocky.com>
3817 * compress.c (init_compress): Remove compress level 10 trick,
3818 since it is no longer needed.
3820 * g10.c: Fix typoed option name.
3822 * compress-bz2.c (init_compress): Compression level 0 is not
3823 meaningful for bzip2.
3825 * options.h, g10.c (main), compress.c (init_compress),
3826 compress-bz2.c (init_compress): Add --compress-level and
3827 --bzip2-compress-level. -z sets them both. Change various
3830 * encode.c (encode_simple), sign.c (sign_symencrypt_file):
3831 Properly use default_compress_algo (--compress-algo, followed by
3832 the highest --personal-compress-preference, followed by ZIP) to
3835 2003-11-14 David Shaw <dshaw@jabberwocky.com>
3837 * options.h, trustdb.c (trust_model_string, init_trustdb): Add
3838 support for "external" trust model, where the user can provide a
3839 pregenerated trustdb.
3841 * keyedit.c (keyedit_menu): Do not allow editing ownertrust with
3842 an external trust model trustdb.
3844 2003-11-13 David Shaw <dshaw@jabberwocky.com>
3846 * options.h, g10.c, keyedit.c, keylist.c, mainproc.c: Clarify the
3847 plurarility (or not) of various list and verify options.
3849 2003-11-12 David Shaw <dshaw@jabberwocky.com>
3851 * g10.c (main): Add --symmetric --sign --encrypt.
3853 * main.h, encode.c (setup_symkey): New. Prompt for a passphrase
3854 and create a DEK for symmetric encryption.
3855 (write_symkey_enc): New. Write out symmetrically encrypted
3857 (encode_crypt, encrypt_filter): Use them here here when creating a
3858 message that can be decrypted with a passphrase or a pk.
3860 * sign.c (sign_file): Call setup_symkey if we are doing a
3861 --symmetric --sign --encrypt.
3863 2003-11-09 David Shaw <dshaw@jabberwocky.com>
3865 * mainproc.c (proc_symkey_enc): Don't show algorithm information
3866 when --quiet is set. Suggested by Duncan Harris. Also don't fail
3867 with BUG() when processing a --symmetric message with a cipher we
3870 * g10.c: Alias --personal-xxx-prefs to --personal-xxx-preferences.
3872 * pkclist.c (build_pk_list): When adding recipients interactively,
3873 allow the user to stop at any point.
3875 2003-10-31 David Shaw <dshaw@jabberwocky.com>
3877 * trustdb.h, trustdb.c (register_trusted_keyid): New. Adds a
3878 keyid to the list of ultimately trusted keys.
3880 * keygen.c (do_generate_keypair): Use it here so that the ultimate
3881 ownertrust happens before the trustdb (might be) rebuilt. Also
3882 fix an error where the newly generated pk is thought to be a
3883 subkey by the trustdb.
3885 * g10.c (main): Fix --export-all do actually do something
3886 different than --export.
3888 * pkclist.c (build_pk_list): Show all recipients rather than
3889 showing each recipient as they are added.
3891 * mainproc.c (proc_symkey_enc, proc_encrypted): Keep a count of
3892 the number of passphrases that can decrypt a symmetric or mixed
3893 symmetric/pk message and include it in the list of keys shown to
3896 2003-10-30 David Shaw <dshaw@jabberwocky.com>
3898 * misc.c (compress_algo_to_string, string_to_compress_algo,
3899 check_compress_algo): Add bzip2.
3901 * compress.c (compress_filter): Make static to help force the use
3902 of push_compress_filter. Remove default algorithm setting since
3903 that is done in push_compress_filter now.
3905 * main.h: Use named algorithm.
3907 * filter.h, compress.c (push_compress_filter,
3908 push_compress_filter2): New. Figure out which is the appropriate
3909 compression filter to use, and push it into place.
3911 * compress.c (handle_compressed), encode.c (encode_simple,
3912 encode_crypt), sign.c (sign_file, sign_symencrypt_file), import.c
3913 (read_block), export.c (do_export): Use push_compress_filter
3914 instead of pushing the compression filter ourselves.
3916 * compress-bz2.c: New. Bzlib versions of the compression filter
3919 * Makefile.am: Include compress-bz2.c if bz2lib is available.
3921 2003-10-30 Werner Koch <wk@gnupg.org>
3923 * apdu.c (close_ct_reader, close_pcsc_reader): Implemented.
3924 (get_ccid_error_string): New. Not very useful messages, though.
3926 2003-10-29 Werner Koch <wk@gnupg.org>
3928 * cardglue.c (open_card): Ask for card insertion.
3929 (check_card_serialno): New.
3930 (agent_scd_pksign, agent_scd_pkdecrypt): Use it here.
3931 * cardglue.c (open_card): Issue insertion status message.
3932 * status.h, status.c (STATUS_CARDCTRL): New.
3934 * status.c (cpr_get_answer_okay_cancel): New.
3936 2003-10-28 Werner Koch <wk@gnupg.org>
3938 * keylist.c (list_keyblock_print): Denote secrets keys stored on a
3939 card with an '>'. Print the '#' also for subkeys.
3940 (list_keyblock_colon): Introduce new field 15 for sec/ssb to print
3943 2003-10-26 David Shaw <dshaw@jabberwocky.com>
3945 * g10.c (main): Enhance the version-specific config file code to
3946 try for more specific matches before giving up (e.g. 1.3.3-cvs,
3949 2003-10-25 David Shaw <dshaw@jabberwocky.com>
3951 * g10.c (main): Add --symmetric --encrypt command. This generates
3952 a message that can be decrypted via a passphrase or public key
3955 * main.h, encode.c (encode_seskey): Allow passing in an
3956 already-created session key dek.
3957 (encode_simple): Use the actual symmetric cipher when encrypting a
3958 session key for a symmetric message.
3959 (encode_crypt): Add a flag to trigger a hybrid mode that can be
3960 decrypted via a passphrase or a pk. Change all callers.
3962 * mainproc.c (symkey_decrypt_sesskey): There is no way to tell the
3963 difference here between a bad passphrase and a cipher algorithm
3964 that we don't have, so use a error message that makes that clear.
3965 Use the actual list of ciphers when checking whether a cipher is
3966 invalid. Return error if the decrypted cipher algorithm is
3968 (proc_symkey_enc): In a mixed passphrase/pk message, if a valid
3969 dek already exists from decrypting via pk, do not try to process
3971 (proc_symkey_enc): Indicate when we're decrypting a session key as
3972 opposed to decrypting data. If a passphrase is invalid, discard
3973 the dek so we'll keep trying.
3975 2003-10-25 Werner Koch <wk@gnupg.org>
3977 * ccid-driver.c (ccid_open_reader): Return an error if no USB
3980 * Makefile.am: Replaced INTLLIBS by LIBINTL.
3982 * g10.c (main) [ENABLE_CARD_SUPPORT]: Add a default for
3985 * cardglue.c (learn_status_cb): Fixed faulty use of !space.
3987 2003-10-24 Werner Koch <wk@gnupg.org>
3989 * apdu.c (apdu_open_reader): Hacks for PC/SC under Windows.
3991 2003-10-21 Werner Koch <wk@gnupg.org>
3993 * passphrase.c (ask_passphrase): Add optional promptid arg.
3994 Changed all callers.
3995 * cardglue.c (pin_cb): Use it here, so the machine interface can
3996 tell whether the Admin PIN is requested.
3998 * cardglue.c (agent_scd_checkpin): New.
4000 * misc.c (openpgp_pk_algo_usage): Added AUTH usage.
4002 * app-openpgp.c (check_against_given_fingerprint): New. Factored
4003 out that code elsewhere.
4004 (do_check_pin): New.
4005 * card-util.c (card_edit): New command "passwd". Add logic to
4006 check the PIN in advance.
4007 (card_status): Add new args to return the serial number. Changed
4010 2003-10-14 David Shaw <dshaw@jabberwocky.com>
4012 * import.c (import_one): Show the keyid when giving the Elgamal
4013 slow import warning.
4015 * g10.c (main): Older versions used --comment "" to indicate no
4016 comment. Don't add an empty comment.
4018 2003-10-13 David Shaw <dshaw@jabberwocky.com>
4020 * keyedit.c (show_key_with_all_names): Ownertrust is only
4021 meaningful for the PGP or classic trust models. Both validity and
4022 ownertrust are not meaningful for the always trust model.
4024 2003-10-11 Werner Koch <wk@gnupg.org>
4026 * keygen.c: Always enable the gen_card_key prototype.
4028 2003-10-10 Werner Koch <wk@gnupg.org>
4030 * cardglue.c (card_close): New.
4031 (agent_scd_change_pin): Implemented.
4033 * ccid-driver.c (ccid_close_reader): New.
4034 * apdu.c (close_ccid_reader, close_ct_reader, close_csc_reader)
4035 (close_osc_reader, apdu_close_reader): New. Not all are properly
4037 * g10.c (g10_exit): Use close_card.
4039 2003-10-09 David Shaw <dshaw@jabberwocky.com>
4041 * g10.c (main): Give a deprecated option warning for
4042 --show-keyring, --show-photos, --show-policy-url, --show-notation,
4043 and their respective no- forms.
4045 * options.skel: Remove show-photos and replace with
4046 list/verify-options show-photos. Remove no-mangle-dos-filenames.
4048 * misc.c (parse_options): Allow for incomplete (but unambiguous)
4051 2003-10-09 Werner Koch <wk@gnupg.org>
4053 * ccid-driver.c (ccid_transceive): Add T=1 chaining for sending.
4055 * sign.c (do_sign) [!ENABLE_CARD_SUPPORT]: Return an error for
4058 * cardglue.c (agent_scd_pkdecrypt): Implemented.
4059 * pubkey-enc.c (get_it) [ENABLE_CARD_SUPPORT]: Divert decryption
4062 2003-10-08 Werner Koch <wk@gnupg.org>
4064 * cardglue.c (pin_cb): Detect whether an admin or regular PIN is
4066 (genkey_status_cb): New.
4067 (agent_scd_genkey): Implemented.
4069 * keygen.c (generate_keypair): New arg CARD_SERIALNO and prepare
4070 parameters for on card key generation. Changed all callers.
4071 (do_generate_keypair): Add new arg card and merged casrd specific
4073 (proc_parameter_file): New arg card, apss it down to
4074 do_generate_keypair and changed all callers.
4075 (gen_card_key): New.
4077 * g10.c: Include cardclue.h.
4078 (main): s/app_set_default_reader_port/card_set_reader_port/.
4079 * cardglue.c (card_set_reader_port): New to address include file
4082 2003-10-02 Werner Koch <wk@gnupg.org>
4084 * cardglue.c (learn_status_cb): Release values before assignment
4085 so that it can be used by getattr to update the structure.
4086 (agent_scd_getattr): New.
4088 * keylist.c (print_pubkey_info): Add FP arg for optional printing
4089 to a stream. Changed all callers.
4091 2003-10-01 Werner Koch <wk@gnupg.org>
4093 * app-common.h, app-openpgp.c, iso7816.c, iso7816.h, apdu.c
4094 * apdu.h, ccid-driver.c, ccid-driver.h, card-util.c: Updated
4095 from current GnuPG 1.9. Changes over there are:
4096 * card-util.c: Tweaked to use this source also under 1.3.
4097 (card_edit): New command "forcesig".
4098 * card-util.c (print_name, print_isoname): Use 0 and not LF fro
4099 the max_n arg of tty_print_utf8_string2.
4100 * card-util.c (change_pin): Simplified. We now have only a PIN
4102 * ccid-driver.c: Detect GnuPG 1.3 and include appropriate files.
4104 * app-openpgp.c: Ditto.
4106 (generate_keypair): Renamed to ..
4107 (do_generate_keypair): .. this.
4108 * app-common.h [GNUPG_MAJOR_VERSION]: New.
4109 * iso7816.h [GNUPG_MAJOR_VERSION]: Include cardglue.h
4110 * app-openpgp.c (do_change_pin): Make sure CVH1 and CHV2 are
4112 (verify_chv2, verify_chv3): New. Factored out common code.
4113 (do_setattr, do_sign, do_auth, do_decipher): Change the names of
4114 the prompts to match that we have only 2 different PINs.
4115 (app_select_openpgp): Check whether the card enforced CHV1.
4116 (convert_sig_counter_value): New. Factor out code from
4119 * Makefile.am (card_support_source): Depend on new AM conditional
4120 to get the ifdef ENABLE_CARD_SUPPORT off the way from source
4122 (update-source-from-gnupg-2): Maintainer helper.
4124 2003-10-01 David Shaw <dshaw@jabberwocky.com>
4126 * g10.c (main): Add --no-groups to zero --group list.
4128 * encode.c (encode_simple): Allow for 32 bytes (256 bits) of
4129 symmetrically encrypted session key. Use --s2k-cipher-algo to
4130 choose cipher, rather than the default cipher.
4132 * parse-packet.c (parse_subkeyenc): Give a warning if an
4133 symmetrically encrypted session key is seen without salt. Show in
4134 --list-packets if a symetrically encrypted session key is present.
4136 * pubkey-enc.c (get_it): Always show cipher-not-in-prefs warning
4137 unless --quiet is set. Use text name of cipher in warning.
4139 2003-09-30 David Shaw <dshaw@jabberwocky.com>
4141 * options.h, g10.c (main), mainproc.c (check_sig_and_print): Add
4142 --verify-option show-unusable-uids.
4144 * gpgv.c (check_trustdb_stale): Stub.
4146 * trustdb.c (get_validity): Move the up-to-date check to
4147 check_trustdb_stale (new), so that it can be called before
4148 validity is checked.
4150 * keylist.c (list_keyblock_print): Disable the overall key
4151 validity display until it can be thought about more. Use
4152 check_trustdb_stale here to avoid putting the check warning in the
4153 middle of a listed key.
4155 * trustdb.c (init_trustdb): Only verify_own_keys() for those trust
4156 models that it applies to (i.e. classic and OpenPGP).
4158 2003-09-29 Werner Koch <wk@gnupg.org>
4160 * keygen.c (do_add_key_flags, parse_parameter_usage): Add support
4161 the proposed AUTH key flag.
4162 * getkey.c (fixup_uidnode, merge_selfsigs_main)
4163 (merge_selfsigs_subkey, premerge_public_with_secret): Ditto.
4164 * keylist.c (print_capabilities): Ditto.
4166 * parse-packet.c (parse_key): Allow to parse the divert-to-card
4168 * build-packet.c (do_secret_key): Handle divert-to-card S2K
4169 * seckey-cert.c (is_secret_key_protected): Ditto.
4170 (check_secret_key): Ditto.
4172 * keygen.c (do_ask_passphrase): Renamed from ask_passphrase.
4173 * passphrase.c (ask_passphrase): New.
4175 2003-09-28 Werner Koch <wk@gnupg.org>
4177 * g10.c (main): New commands --card-edit, --card-status and
4178 --change-pin. New options --ctapi-driver, --pcsc-driver and
4180 * options.h (DBG_CARD_IO): New.
4181 * cardglue.c, cardclue.h: Enhanced.
4182 * card-util.c: New. Taken from current the gnupg 1.9 branch.
4183 * app-common.h, app-openpgp.c, iso7816.c, iso7816.h, apdu.c
4184 * apdu.h, ccid-driver.c, ccid-driver.h: New. Takem from the current
4185 gnupg 1.9 branch withy minor changes to include directives.
4186 * Makefile.am: Added these files.
4188 2003-09-27 Werner Koch <wk@gnupg.org>
4190 * sign.c (do_sign) [ENABLE_CARD_SUPPORT]: Divert to card.
4191 * cardglue.c, cardglue.h: New.
4192 * Makefile.am (gpg_LDADD): Added.
4193 (card_support_sources): New.
4195 2003-09-25 David Shaw <dshaw@jabberwocky.com>
4197 * options.h, g10.c (main), keylist.c (list_keyblock_print): Add
4198 "show-unusable-uids" list-option to show revoked and/or expired
4201 2003-09-24 David Shaw <dshaw@jabberwocky.com>
4203 * keyedit.c (show_key_with_all_names): Show names a little neater
4204 by putting the [revoked] or [expired] in the space used for the
4205 [validity]. There is also no point in showing "[unknown]
4208 2003-09-23 David Shaw <dshaw@jabberwocky.com>
4210 * sign.c (mk_notation_policy_etc): Capitalize "URL".
4212 * trustdb.c (validate_keys): Give a little more information while
4215 * pkclist.c (do_edit_ownertrust): Clarify "don't know".
4217 * g10.c (main): Default to --no-mangle-dos-filenames.
4219 * keydb.h, keyring.c (keyring_search), trustdb.c (search_skipfnc):
4220 Expand the skipfnc to include a pointer to the user ID that
4223 * getkey.c (skip_disabled): Rename to skip_unusable, and add
4224 checks for expired or revoked user IDs.
4226 2003-09-22 David Shaw <dshaw@jabberwocky.com>
4228 * g10.c (main): Deprecate --default-comment in favor of
4231 * options.h, g10.c (main), armor.c (armor_filter): Allow using
4232 --comment multiple times to get multiple Comment: header lines.
4233 --no-comments resets list.
4235 2003-09-11 David Shaw <dshaw@jabberwocky.com>
4237 * g10.c (main): Trim --help to commonly used options. Remove -f.
4239 2003-09-08 David Shaw <dshaw@jabberwocky.com>
4241 * g10.c (main): Error out if --multifile is used with the commands
4242 that don't support it yet (--sign, --clearsign, --detach-sign,
4243 --symmetric, and --store).
4245 * g10.c (main): Add --multifile as an alias to turn --encrypt into
4246 --encrypt-files (plus --verify-files, --decrypt-files).
4248 * encode.c (use_mdc), g10.c (main): Use RFC1991 and RFC2440
4249 directly to check for MDC usability. Do not set the force_mdc or
4250 disable_mdc flags since there is no point any longer.
4252 2003-09-04 David Shaw <dshaw@jabberwocky.com>
4254 * armor.c (parse_hash_header, armor_filter), g10.c (print_hex,
4255 print_mds), pkclist.c (algo_available): Drop TIGER/192 support.
4257 2003-09-03 David Shaw <dshaw@jabberwocky.com>
4259 * keyedit.c (show_key_with_all_names): Fix assertion failure when
4260 using toggle to see a secret key. Reported by Maxim Britov.
4262 2003-08-31 David Shaw <dshaw@jabberwocky.com>
4264 * g10.c (add_keyserver_url), keyedit.c (keyedit_menu), sign.c
4265 (mk_notation_policy_etc): Clarify a few strings. It's a
4266 "preferred keyserver URL".
4268 * g10.c (main): Use "keyserver-url" instead of
4269 "preferred-keyserver" for the sake of short and simple commands.
4271 2003-08-30 David Shaw <dshaw@jabberwocky.com>
4273 * main.h, keygen.c (keygen_add_keyserver_url): Signature callback
4274 for adding a keyserver URL.
4276 * keyedit.c (keyedit_menu, menu_set_keyserver_url): New command to
4277 set preferred keyserver to specified (or all) user IDs.
4279 * build-packet.c (build_sig_subpkt): Set preferred keyserver flag
4280 while building a preferred keyserver subpacket.
4282 * keylist.c (show_policy_url, show_keyserver_url): URLs might be
4285 * keyedit.c (menu_addrevoker): Fix leaking a few bytes.
4287 2003-08-29 David Shaw <dshaw@jabberwocky.com>
4289 * keyedit.c (show_key_with_all_names): Use list-option
4290 show-long-keyid in main --edit-key display.
4292 * keyedit.c (print_and_check_one_sig): Use list-option
4293 show-long-keyid in --edit-key "check" function.
4295 2003-08-28 David Shaw <dshaw@jabberwocky.com>
4297 * passphrase.c (agent_send_all_options): Make use of $GPG_TTY.
4299 * g10.c (main): Disable use-agent if passphrase-fd is given
4300 later. Suggested by Kurt Garloff.
4302 * exec.c, g10.c, gpgv.c, passphrase.c, photoid.c:
4303 s/__MINGW32__/_WIN32/ to help building on native Windows
4304 compilers. Requested by Brian Gladman. From Werner on stable
4307 2003-08-25 David Shaw <dshaw@jabberwocky.com>
4309 * options.h, g10.c (main): Add list-option
4310 list-preferred-keyserver.
4312 * keyedit.c (change_passphrase): When responding 'no' to the blank
4313 passphrase question, re-prompt for a new passphrase. This is bug
4316 * mainproc.c (check_sig_and_print): Use two different preferred
4317 keyserver displays - one if the key is not present (to tell the
4318 user where to get the key), the other if it is present (to tell
4319 the user where the key can be refreshed).
4321 * packet.h, parse-packet.c (parse_signature): Set flag if a
4322 preferred keyserver is present.
4324 * keylist.c (list_keyblock_print): Show keyserver url in listings
4325 with list-option show-keyserver-url.
4327 2003-08-24 David Shaw <dshaw@jabberwocky.com>
4329 * Makefile.am: Use NETLIBS instead of EGDLIBS.
4331 * mainproc.c (check_sig_and_print): Get the uid validity before
4332 printing any sig results to avoid munging the output with trustdb
4335 * g10.c (main): Don't include --show-keyring in --help as it is
4338 2003-08-21 David Shaw <dshaw@jabberwocky.com>
4340 * gpgv.c: Remove extra semicolon (typo).
4342 * options.skel: Note that keyserver.pgp.com isn't synchronized,
4343 and explain the roundrobin a bit better.
4345 * sig-check.c (check_key_signature2), import.c (import_one,
4346 import_revoke_cert, chk_self_sigs, delete_inv_parts,
4347 collapse_uids, merge_blocks): Make much quieter during import of
4348 slightly munged, but recoverable, keys. Use log_error for
4349 unrecoverable import failures.
4351 * keyring.c (keyring_rebuild_cache): Comment.
4353 * sign.c (mk_notation_and_policy): Making a v3 signature with
4354 notations or policy urls is an error, not an info (i.e. increment
4355 the errorcount). Don't print the notation or policy url to stdout
4356 since it can be mixed into the output stream when piping and munge
4359 2003-08-12 David Shaw <dshaw@jabberwocky.com>
4361 * packet.h, sig-check.c (signature_check2, do_check,
4362 do_check_messages): Provide a signing-key-is-revoked flag. Change
4365 * status.h, status.c (get_status_string): New REVKEYSIG status tag
4366 for a good signature from a revoked key.
4368 * mainproc.c (do_check_sig, check_sig_and_print): Use it here.
4370 * import.c (import_revoke_cert, merge_blocks, merge_sigs): Compare
4371 actual signatures on import rather than using keyid or class
4372 matching. This does not change actual behavior with a key, but
4373 does mean that all sigs are imported whether they will be used or
4376 * parse-packet.c (parse_signature): Don't give "signature packet
4377 without xxxx" warnings for experimental pk algorithms. An
4378 experimental algorithm may not have a notion of (for example) a
4379 keyid (i.e. PGP's x.509 stuff).
4381 2003-08-02 David Shaw <dshaw@jabberwocky.com>
4383 * options.h, g10.c (main), keylist.c (list_keyblock_print),
4384 keyedit.c (print_and_check_one_sig): New "show-sig-expire"
4385 list-option to show signature expiration dates (if any).
4387 2003-07-24 David Shaw <dshaw@jabberwocky.com>
4389 * options.h, g10.c (main, add_keyserver_url): Add
4390 --sig-preferred-keyserver to implant a "where to get my key"
4391 subpacket into a signature.
4393 * sign.c (mk_notation_and_policy): Rename to
4394 mk_notation_policy_etc and add preferred keyserver support for
4397 2003-07-21 David Shaw <dshaw@jabberwocky.com>
4399 * keygen.c (do_add_key_flags): Don't set the certify flag for
4401 (ask_algo): Provide key flags for DSA, Elgamal_e, and Elgamal
4403 (generate_keypair): Provide key flags for the default DSA/Elgamal
4406 * sig-check.c (signature_check, signature_check2,
4407 check_key_signature, check_key_signature2): Allow passing NULLs
4408 for unused parameters in the x2 form of each function to avoid the
4409 need for dummy variables. getkey.c, mainproc.c: Change all
4412 * trustdb.h, trustdb.c (read_trust_options): New. Returns items
4413 from the trustdb version record.
4415 * keylist.c (public_key_list): Use it here for the new "tru"
4418 * gpgv.c (read_trust_options): Stub.
4420 2003-07-20 David Shaw <dshaw@jabberwocky.com>
4422 * keyedit.c (show_key_with_all_names): Use list-option
4423 show-validity in --edit-key interface as well.
4425 2003-07-19 David Shaw <dshaw@jabberwocky.com>
4427 * options.h, g10.c (main), mainproc.c (check_sig_and_print): Add
4428 verify-options "show-validity" and "show-long-keyid" to show
4429 trustdb validity and long keyids during (file) signature
4432 * packet.h, main.h, sig-check.c (signature_check2,
4433 check_key_signature2, do_check): If ret_pk is set, fill in the pk
4434 used to verify the signature. Change all callers in getkey.c,
4435 mainproc.c, and sig-check.c.
4437 * keylist.c (list_keyblock_colon): Use the ret_pk from above to
4438 put the fingerprint of the signing key in "sig" records during a
4439 --with-colons --check-sigs. This requires --no-sig-cache as well
4440 since we don't cache fingerprints.
4442 2003-07-10 David Shaw <dshaw@jabberwocky.com>
4444 * parse-packet.c (parse_signature): No need to reserve 8 bytes for
4445 the unhashed signature cache any longer.
4447 * misc.c (pct_expando): Add two new expandos - signer's
4448 fingerprint (%g), and signer's primary fingerprint (%p).
4450 * Makefile.am: Include W32LIBS where appropriate.
4452 * g10.c (main): Add --rfc2440 alias for --openpgp since in a few
4453 months, they won't be the same thing.
4455 * keyserver.c (parse_keyserver_uri): Accept "http" as an alias for
4456 "hkp", since it is occasionally written that way.
4457 (keyserver_spawn): Use ascii_isspace to avoid locale issues.
4459 * keygen.c (ask_user_id): Make --allow-freeform-uid apply to the
4460 email field as well as the name field, and allow mixing fields
4463 * options.skel: Use subkeys.pgp.net as the default keyserver.
4465 * trustdb.c (validate_one_keyblock): Certifications on revoked or
4466 expired uids do not count in the web of trust.
4468 * signal.c (init_one_signal, pause_on_sigusr, do_block): Only use
4469 sigprocmask() if we have sigset_t, and only use sigaction() if we
4470 have struct sigaction. This is for Forte c89 on Solaris which
4471 seems to define only the function call half of the two pairs by
4473 (pause_on_sigusr): Typo.
4474 (do_block): If we can't use sigprocmask() and sigset_t, try to get
4475 the number of signals from NSIG as well as MAXSIG, and if we
4476 can't, fail with an explanation.
4478 * signal.c, tdbio.c: Comment out the transaction code. It was not
4479 used in this version, and was causing some build problems on
4480 quasi-posix platforms (Solaris and Forte c89).
4482 * keylist.c (list_keyblock_colon): Don't include validity values
4483 when listing secret keys since they can be incorrect and/or
4484 misleading. This is a temporary kludge, and will be handled
4485 properly in 1.9/2.0.
4487 * mainproc.c (check_sig_and_print): Only show the "key available
4488 from" preferred keyserver line if the key is not currently
4491 * keyedit.c (sign_uids): Do not sign expired uids without --expert
4492 (same behavior as revoked uids). Do not allow signing a user ID
4493 without a self-signature. --expert overrides. Add additional
4494 prompt to the signature level question.
4495 (menu_expire): When changing expiration dates, don't replace
4496 selfsigs on revoked uids since this would effectively unrevoke
4497 them. There is also no point in replacing expired selfsigs. This
4500 2003-07-10 David Shaw <dshaw@jabberwocky.com> (from Werner on stable branch)
4502 * g10.c (add_notation_data): Make sure that only ascii is passed
4503 to iscntrl. Noted by Christian Biere.
4504 * getkey.c (classify_user_id2): Replaced isspace by spacep
4505 * keygen.c (ask_user_id): Ditto.
4506 (get_parameter_algo): Ditto.
4507 * keyedit.c (keyedit_menu): Ditto.
4508 * tdbdump.c (import_ownertrust): Ditto. s/isxdigit/hexdigitp/.
4509 * revoke.c (ask_revocation_reason):
4510 * keyserver.c (keyserver_spawn): Dito.
4512 2003-06-10 Werner Koch <wk@gnupg.org>
4514 * parse-packet.c (parse): Disallow old style partial length for
4515 all key material packets to avoid possible corruption of keyrings.
4517 2003-06-08 Werner Koch <wk@gnupg.org>
4519 * import.c (import_keys_internal): Invalidate the cache so that
4520 the file descriptor gets closed. Fixes bug reported by Juan
4523 2003-06-04 David Shaw <dshaw@jabberwocky.com>
4525 * options.skel: Use new hkp://subkeys.pgp.net as sample keyserver
4526 since they at least handle subkeys correctly.
4528 * options.h, g10.c (main), main.h, keylist.c (show_keyserver_url),
4529 mainproc.c (check_sig_and_print), parse-packet.c (dump_sig_subpkt,
4530 parse_one_sig_subpkt, can_handle_critical): Add read-only support
4531 for preferred keyserver subpackets. They're basically policy URLs
4532 with a different name. Add a verify-option
4533 "show-preferred-keyserver" to turn them on and off (on by default,
4534 as per stable branch).
4536 * g10.c (main): Add "--set-notation" as alias to "--notation-data"
4537 this is to make things consistent with --set-policy-url meaning
4538 both sigs and certs.
4540 2003-06-03 David Shaw <dshaw@jabberwocky.com>
4542 * options.h, g10.c (main), keylist.c (list_keyblock_print): Add
4543 "show-validity" and "show-long-keyid" list-options.
4545 * gpgv.c (get_validity, trust_value_to_string): Stubs.
4547 * g10.c (main): Use SAFE_VERSION instead of VERSION in the
4548 version-specific gpg.conf file so it can be overridden on RISCOS.
4550 2003-06-01 David Shaw <dshaw@jabberwocky.com>
4552 * g10.c (main), keylist.c (show_policy_url, show_notation),
4553 mainproc.c (check_sig_and_print): Emulate the old policy and
4554 notation behavior (display by default). Send to status-fd whether
4555 it is displayed on the screen or not.
4557 * g10.c (main): Since we now have some options in devel that won't
4558 work in a stable branch gpg.conf file, try for a version-specific
4559 gpg.conf-VERSION file before falling back to gpg.conf.
4561 * main.h, options.h: Move various option flags to options.h.
4563 2003-05-31 David Shaw <dshaw@jabberwocky.com>
4565 * mainproc.c (check_sig_and_print), main.h, keylist.c
4566 (show_policy, show_notation): Collapse the old print_notation_data
4567 into show_policy() and show_notation() so there is only one
4568 function to print notations and policy URLs.
4570 * options.h, main.h, g10.c (main), keyedit.c
4571 (print_and_check_one_sig), keylist.c (list_one,
4572 list_keyblock_print), pkclist.c (do_edit_ownertrust), sign.c
4573 (mk_notation_and_policy): New "list-options" and "verify-options"
4574 commands. These replace the existing
4575 --show-photos/--no-show-photos,
4576 --show-notation/--no-show-notation,
4577 --show-policy-url/--no-show-policy-url, and --show-keyring
4578 options. The new method is more flexible since a user can specify
4579 (for example) showing photos during sig verification, but not in
4580 key listings. The old options are emulated.
4582 * main.h, misc.c (parse_options): New general option line
4583 parser. Fix the bug in the old version that did not handle report
4584 syntax errors after a valid entry.
4586 * import.c (parse_import_options), export.c
4587 (parse_export_options): Call it here instead of duplicating the
4590 2003-05-30 David Shaw <dshaw@jabberwocky.com>
4592 * keylist.c (list_one): Don't show the keyring filename when in
4593 --with-colons mode. Actually translate "Keyring" string.
4595 * mainproc.c (proc_tree): We can't currently handle multiple
4596 signatures of different classes or digests (we'd pretty much have
4597 to run a different hash context for each), but if they are all the
4598 same, make an exception. This is Debian bug #194292.
4600 * sig-check.c (check_key_signature2): Make string translatable.
4602 * packet.h, getkey.c (fixup_uidnode): Mark real primary uids
4603 differently than assumed primaries.
4605 * keyedit.c (no_primary_warning): Use the differently marked
4606 primaries here in a new function to warn when an --edit-key
4607 command might rearrange the self-sig dates enough to change which
4609 (menu_expire, menu_set_preferences): Use no_primary_warning()
4612 * Makefile.am: Use @DLLIBS@ for -ldl.
4614 2003-05-26 David Shaw <dshaw@jabberwocky.com>
4616 * getkey.c (premerge_public_with_secret): Made "no secret subkey
4617 for" warning a verbose item and translatable. (From wk on stable
4620 * sig-check.c (check_key_signature2): Made "no subkey for subkey
4621 binding packet" a verbose item instead of a !quiet one. There are
4622 too many garbled keys out in the wild. (From wk on stable branch)
4624 * filter.h: Remove const from WHAT. (From wk on stable branch)
4626 * progress.c (handle_progress): Store a copy of
4627 NAME. (progress_filter): Release WHAT, make sure not to print a
4628 NULL WHAT. (From wk on stable branch)
4630 * openfile.c (open_sigfile): Adjust free for new progress
4631 semantics. (From wk on stable branch)
4633 * plaintext.c (ask_for_detached_datafile): Don't dealloc
4634 pfx->WHAT. (From wk on stable branch)
4636 * seckey-cert.c (do_check): Issue the RSA_OR_IDEA status when the
4637 cipher algo is IDEA to make it easier to track down the
4638 problem. (From twoaday on stable branch)
4640 2003-05-24 David Shaw <dshaw@jabberwocky.com>
4642 * armor.c, g10.c, kbnode.c, misc.c, pkclist.c, sign.c,
4643 build-packet.c, getkey.c, keydb.c, openfile.c, plaintext.c,
4644 status.c, gpgv.c, keygen.c, options.h, sig-check.c, tdbio.h,
4645 encode.c, mainproc.c, parse-packet.c, signal.c, textfilter.c: Edit
4646 all preprocessor instructions to remove whitespace before the '#'.
4647 This is not required by C89, but there are some compilers out
4648 there that don't like it.
4650 2003-05-21 David Shaw <dshaw@jabberwocky.com>
4652 * trustdb.h, trustdb.c (is_disabled), gpgv.c (is_disabled): Rename
4653 is_disabled to cache_disabled_value, which now takes a pk and not
4654 just the keyid. This is for speed since there is no need to
4655 re-fetch a key when we already have that key handy. Cache the
4656 result of the check so we don't need to hit the trustdb more than
4659 * getkey.c (skip_disabled): New function to get a pk and call
4660 is_disabled on it. (key_byname): Use it here.
4662 * packet.h, getkey.c (skip_disabled), keylist.c
4663 (print_capabilities): New "pk_is_disabled" macro to retrieve the
4664 cached disabled value if available, and fill it in via
4665 cache_disabled_value if not available.
4667 * trustdb.c (get_validity): Cache the disabled value since we have
4668 it handy and it might be useful later.
4670 * parse-packet.c (parse_key): Clear disabled flag when parsing a
4671 new key. Just in case someone forgets to clear the whole key.
4673 * getkey.c (merge_selfsigs_main): Add an "if all else fails" path
4674 for setting a single user ID primary when there are multiple set
4675 primaries all at the same second, or no primaries set and the most
4676 recent user IDs are at the same second, or no signed user IDs at
4677 all. This is arbitrary, but deterministic.
4679 * exec.h, photoid.h: Add copyright message.
4681 * keylist.c (list_keyblock_print): Don't dump attribs for
4682 revoked/expired/etc uids for non-colon key listings. This is for
4683 consistency with --show-photos.
4685 * main.h, keylist.c (dump_attribs), mainproc.c
4686 (check_sig_and_print): Dump attribs if --attrib-fd is set when
4687 verifying signatures.
4689 * g10.c (main): New --gnupg option to disable the various
4690 --openpgp, --pgpX, etc. options. This is the same as --no-XXXX
4693 * revoke.c (ask_revocation_reason): Clear old reason if user
4694 elects to repeat question. This is bug 153.
4696 * keyedit.c (sign_uids): Show keyid of the key making the
4699 2003-05-21 Werner Koch <wk@gnupg.org>
4701 * progress.c (handle_progress)
4702 * sign.c (write_plaintext_packet)
4703 * encode.c (encode_simple,encode_crypt): Make sure that a filename
4704 of "-" is considered to be stdin so that iobuf_get_filelength
4705 won't get called. This fixes bug 156 reported by Gregery Barton.
4707 2003-05-02 David Shaw <dshaw@jabberwocky.com>
4709 * packet.h, build-packet.c (build_sig_subpkt), export.c
4710 (do_export_stream), import.c (remove_bad_stuff, import),
4711 parse-packet.c (dump_sig_subpkt, parse_one_sig_subpkt): Remove
4712 vestigal code for the old sig cache subpacket. This wasn't
4713 completely harmless as it caused subpacket 101 to disappear on
4716 * options.h, armor.c, cipher.c, g10.c, keyedit.c, pkclist.c,
4717 sign.c, encode.c, getkey.c, revoke.c: The current flags for
4718 different levels of PGP-ness are massively complex. This is step
4719 one in simplifying them. No functional change yet, just use a
4720 macro to check for compliance level.
4722 * sign.c (sign_file): Fix bug that causes spurious compression
4725 * sign.c (clearsign_file): Fix bug that prevents proper warning
4726 message from appearing when clearsigning in --pgp2 mode with a
4729 * main.h, misc.c (compliance_option_string, compliance_string,
4730 compliance_failure), pkclist.c (build_pk_list), sign.c (sign_file,
4731 clearsign_file), encode.c (encode_crypt,
4732 write_pubkey_enc_from_list): New functions to put the "this
4733 message may not be usable...." warning in one place.
4735 * options.h, g10.c (main): Part two of the simplification. Use a
4736 single enum to indicate what we are compliant to (1991, 2440,
4739 * g10.c (main): Show errors for failure in export, send-keys,
4740 recv-keys, and refresh-keys.
4742 * options.h, g10.c (main): Give algorithm warnings for algorithms
4743 chosen against the --pgpX and --openpgp rules.
4745 * keydb.h, pkclist.c (algo_available): Make TIGER192 invalid in
4748 * sign.c (sign_file), pkclist.c (algo_available): Allow passing a
4751 2003-05-01 David Shaw <dshaw@jabberwocky.com>
4753 * tdbio.c (create_version_record): Only create new trustdbs with
4754 TM_CLASSIC or TM_PGP.
4756 * trustdb.h, trustdb.c (trust_string, get_ownertrust_string,
4757 get_validity_string, ask_ownertrust, validate_keys), pkclist.c
4758 (do_edit_ownertrust): Rename trust_string to trust_value_to_string
4759 for naming consistency.
4761 * trustdb.h, trustdb.c (string_to_trust_value): New function to
4762 translate a string to a trust value.
4764 * g10.c (main): Use string_to_trust_value here for
4767 * options.h, g10.c (main), trustdb.c (trust_model_string,
4768 init_trustdb, check_trustdb, update_trustdb, get_validity,
4769 validate_one_keyblock): An "OpenPGP" trust model is misleading
4770 since there is no official OpenPGP trust model. Use "PGP"
4773 2003-04-30 David Shaw <dshaw@jabberwocky.com>
4775 * build-packet.c (build_sig_subpkt): Comments.
4777 * exec.c (exec_write): Cast NULL to void* to properly terminate
4780 * keyedit.c (show_key_with_all_names): Just for safety, catch an
4781 invalid pk algorithm.
4783 * sign.c (make_keysig_packet): Crucial that the call to mksubpkt
4784 comes LAST before the calls to finalize the sig as that makes it
4785 possible for the mksubpkt function to get a reliable pointer to
4788 * pkclist.c (do_we_trust_pre): If an untrusted key was chosen by a
4789 particular user ID, use that ID as the one to ask about when
4790 prompting whether to use the key anyway.
4791 (build_pk_list): Similar change here when adding keys to the
4794 * trustdb.c (update_validity): Fix bug that prevented more than
4795 one validity record per trust record.
4796 (get_validity): When retrieving validity for a (user) supplied
4797 user ID, return the validity for that user ID only, and do not
4798 fall back to the general key validity.
4799 (validate_one_keyblock): Some commentary on whether
4800 non-self-signed user IDs belong in the web of trust (arguably,
4803 2003-04-27 David Shaw <dshaw@jabberwocky.com>
4805 * g10.c (main): Add --no-textmode.
4807 * export.c (do_export_stream), keyedit.c (show_key_with_all_names,
4808 menu_addrevoker), mainproc.c (check_sig_and_print), photoid.c
4809 (show_photos), sign.c (mk_notation_and_policy), trustdb.c
4810 (get_validity, reset_trust_records, validate_keys): Make some
4811 strings translatable.
4813 * mainproc.c (check_sig_and_print): Show digest algorithm and sig
4814 class when verifying a sig with --verbose on, and add version, pk
4815 and hash algorithms and sig class to VALIDSIG.
4817 * parse-packet.c (enum_sig_subpkt): Make a warning message a
4818 --verbose warning message since we don't need to warn every time
4819 we see an unknown critical (we only need to invalidate the
4822 * trustdb.c (init_trustdb): Check the trustdb options even with
4823 TM_AUTO since the auto may become TM_CLASSIC or TM_OPENPGP.
4825 2003-04-26 David Shaw <dshaw@jabberwocky.com>
4827 * sign.c (do_sign): Show the hash used when making a signature in
4830 * tdbio.h, tdbio.c (tdbio_read_model): New function to return the
4831 trust model used in a given trustdb.
4833 * options.h, g10.c (main), trustdb.c (init_trustdb, check_trustdb,
4834 update_trustdb): Use tdbio_read_model to implement an "auto" trust
4835 model which is set via the trustdb.
4837 2003-04-23 David Shaw <dshaw@jabberwocky.com>
4839 * import.c (import_revoke_cert): Remove ultimate trust when
4840 revoking an ultimately trusted key.
4842 * keyedit.c (sign_uids): Allow replacing expired signatures.
4843 Allow duplicate signatures with --expert.
4845 * pkclist.c (check_signatures_trust): Don't display a null
4846 fingerprint when checking a signature with --always-trust enabled.
4848 * filter.h (progress_filter_context_t), progress.c
4849 (handle_progress), plaintext.c (ask_for_detached_datafile,
4850 hash_datafiles): Fix compiler warnings. Make "what" constant.
4852 * build-packet.c (do_plaintext): Do not create invalid literal
4853 packets with >255-byte names.
4855 2003-04-15 Werner Koch <wk@gnupg.org>
4857 * Makefile.am (AM_CFLAGS): Make use of AM_CFLAGS and AM_LDFLAGS.
4859 * g10.c, options.h: New option --enable-progress-filter.
4860 * progress.c (handle_progress): Make use of it.
4862 2003-04-15 Marcus Brinkmann <marcus@g10code.de>
4864 * progress.c: New file.
4865 * Makefile.am (common_source): Add progress.c.
4866 * filter.h (progress_filter_context_t): New type.
4867 (progress_filter, handle_progress): New prototypes.
4868 * main.h (open_sigfile): New argument for prototype.
4869 * openfile.c (open_sigfile): New argument to install progress
4871 * encode.c (encode_simple): New variable PFX. Register
4872 progress filter. Install text_filter after that.
4873 (encode_crypt): Likewise.
4874 * sign.c (sign_file): Likewise.
4875 (clearsign_file): Likewise.
4876 * decrypt.c (decrypt_message): Likewise.
4877 (decrypt_messages): Likewise.
4878 * verify.c (verify_signatures): Likewise.
4879 (verify_one_file): Likewise.
4880 * plaintext.c (hash_datafiles): Likewise.
4881 (ask_for_detached_datafile): Likewise.
4883 2003-04-10 Werner Koch <wk@gnupg.org>
4885 * passphrase.c (read_passphrase_from_fd): Do a dummy read if the
4886 agent is to be used. Noted by Ingo Klöcker.
4887 (agent_get_passphrase): Inhibit caching when we have no
4888 fingerprint. This is required for key generation as well as for
4889 symmetric only encryption.
4891 * passphrase .c (agent_get_passphrase): New arg CANCELED.
4892 (passphrase_to_dek): Ditto. Passed to above. Changed all
4893 callers to pass NULL.
4894 * seckey-cert.c (do_check): New arg CANCELED.
4895 (check_secret_key): Terminate loop when canceled.
4897 * keyedit.c (change_passphrase): Pass ERRTEXT untranslated to
4898 passphrase_to_dek and translate where appropriate.
4899 * seckey-cert.c (check_secret_key): Ditto.
4900 * keygen.c (ask_passphrase): Ditto.
4901 * passphrase.c (agent_get_passphrase): Translate the TRYAGAIN_TEXT.
4902 Switch the codeset to utf-8.
4904 2003-04-09 Werner Koch <wk@gnupg.org>
4906 * decrypt.c (decrypt_messages): Fixed error handling; the function
4907 used to re-loop with same file after an error. Reported by Joseph
4910 2003-04-08 David Shaw <dshaw@jabberwocky.com>
4912 * main.h, g10.c (main), import.c (parse_import_options,
4913 fix_pks_corruption): It's really PKS corruption, not HKP
4914 corruption. Keep the old repair-hkp-subkey-bug command as an
4917 * g10.c (main): Rename --no-version to --no-emit-version for
4918 consistency. Keep --no-version as an alias.
4920 2003-04-04 David Shaw <dshaw@jabberwocky.com>
4922 * pkclist.c (algo_available): PGP 8 can use the SHA-256 hash.
4924 * sign.c (sign_file, clearsign_file, sign_symencrypt_file): Remove
4927 2003-04-01 Werner Koch <wk@gnupg.org>
4929 * mainproc.c (check_sig_and_print): Add primary key fpr to VALIDSIG
4932 2003-03-24 David Shaw <dshaw@jabberwocky.com>
4934 * keydb.h: Err on the side of making an unknown signature a SIG
4937 * import.c (delete_inv_parts): Discard any key signatures that
4938 aren't key types (i.e. 0x00, 0x01, etc.)
4940 * g10.c (main): Add deprecated option warning for
4941 --list-ownertrust. Add --compression-algo alias for
4942 --compress-algo. Change --version output strings to match
4943 "showpref" strings, and make translatable.
4945 * status.c (do_get_from_fd): Accept 'y' as well as 'Y' for
4946 --command-fd boolean input.
4948 * trustdb.c: Fix typo (DISABLE_REGEXP -> DISABLE_REGEX)
4950 * keyedit.c (show_key_with_all_names_colon): Show no-ks-modify
4953 2003-03-11 David Shaw <dshaw@jabberwocky.com>
4955 * options.h, g10.c (main), keyserver.c (kopts): Add "try-dns-srv"
4956 keyserver option. Defaults to on.
4958 * passphrase.c (agent_get_passphrase): Fix memory leak with
4959 symmetric messages. Fix segfault with symmetric messages. Fix
4960 incorrect prompt with symmetric messages.
4962 2003-03-10 Werner Koch <wk@gnupg.org>
4964 * compress.c (init_uncompress): Use a 15 bit window size so that
4965 the output of implementations which don't run for PGP 2
4966 compatibility won't get garbled.
4968 2003-03-04 David Shaw <dshaw@jabberwocky.com>
4970 * trustdb.c (validate_keys): Mask the ownertrust when building the
4971 list of fully valid keys so that disabled keys are still counted
4972 in the web of trust.
4973 (get_ownertrust_with_min): Do the same for the minimum ownertrust
4976 * parse-packet.c (dump_sig_subpkt): Show the notation names for
4977 not-human-readable notations. Fix cosmetic off-by-one length
4980 * options.skel: Add explantion and commented-out
4981 "no-mangle-dos-filenames".
4983 * mainproc.c (proc_encrypted): Make string translatable.
4985 * keyserver.c (keyserver_spawn): Quote ':', '%', and any 8-bit
4986 characters in the uid strings sent to the keyserver helper.
4988 * keyring.c (keyring_rebuild_cache): Lock the keyring while
4989 rebuilding the signature caches to prevent another gpg from
4990 tampering with the temporary copy.
4992 * keygen.c (keygen_set_std_prefs): Include AES192 and AES256 in
4995 * keyedit.c (show_prefs): Make strings translatable.
4997 * keydb.c: Double the maximum number of keyrings to 40.
4999 * gpgv.c (main): Fix bug #113 - gpgv should accept the
5000 --ignore-time-conflict option.
5002 * g10.c (main): --openpgp disables --pgpX. Double the amount of
5003 secure memory to 32k (keys are getting bigger these days).
5005 * Makefile.am: Makefile.am: Use @CAPLIBS@ to link in -lcap if we
5006 are using capabilities.
5008 2003-02-26 David Shaw <dshaw@jabberwocky.com>
5010 * keyserver.c (keyserver_spawn): Include various pieces of
5011 information about the key in the data sent to the keyserver
5012 helper. This allows the helper to use it in instructing a remote
5013 server which may not have any actual OpenPGP smarts in parsing
5016 * main.h, export.c (export_pubkeys_stream, do_export_stream): Add
5017 ability to return only the first match in an exported keyblock for
5018 keyserver usage. This should be replaced at some point with a
5019 more flexible solution where each key can be armored seperately.
5021 2003-02-22 David Shaw <dshaw@jabberwocky.com>
5023 * sign.c (sign_file): Do not push textmode filter onto an unopened
5024 IOBUF (segfault). Noted by Marcus Brinkmann. Push and
5025 reinitialize textmode filter for each file in a multiple file
5028 * packet.h, getkey.c (fixup_uidnode), keyedit.c (show_prefs): Set
5029 and show the keyserver no-modify flag.
5031 * keygen.c (add_keyserver_modify): New.
5032 (keygen_upd_std_prefs): Call it here.
5033 (keygen_set_std_prefs): Accept "ks-modify" and "no-ks-modify" as
5034 prefs to set and unset keyserver modify flag.
5036 * g10.c (main): Accept "s1" in addition to "idea" to match the
5039 * main.h, misc.c (idea_cipher_warn): We don't need this if IDEA
5042 2003-02-21 David Shaw <dshaw@jabberwocky.com>
5044 * keygen.c (keygen_set_std_prefs): Don't put AES or CAST5 in
5045 default prefs if they are disabled.
5047 * g10.c (main): Use 3DES instead of CAST5 if we don't have CAST5
5048 support. Use 3DES for the s2k cipher in --openpgp mode.
5049 (print_mds): #ifdef all of the optional digest algorithms.
5051 2003-02-12 David Shaw <dshaw@jabberwocky.com>
5053 * keydb.h, getkey.c (classify_user_id, classify_user_id2): Make
5054 'exact' a per-desc item. Merge into one function since
5055 'force_exact' is no longer needed.
5056 (key_byname): Use new classify_user_id function, and new exact
5057 flag in KEYDB_SEARCH_DESC.
5059 * keyring.h, keyring.c (keyring_search): Return an optional index
5060 to show which KEYDB_SEARCH_DESC was the matching one.
5062 * keydb.h, keydb.c (keydb_search): Rename to keydb_search2, and
5063 pass the optional index to keyring_search. Add a macro version of
5064 keydb_search that calls this new function.
5066 * export.c (do_export_stream): If the keyid! syntax is used,
5067 export only that specified key. If the key in question is a
5068 subkey, export the primary plus that subkey only.
5070 2003-02-11 David Shaw <dshaw@jabberwocky.com>
5072 * exec.c (set_exec_path): Add debugging line.
5074 * g10.c (print_hex, print_mds): Print long hash strings a lot
5075 neater. This assumes at least an 80-character display, as there
5076 are a few other similar assumptions here and there. Users who
5077 need unformatted hashes can still use with-colons. Check that
5078 SHA384 and 512 are available before using them as they are no
5079 longer always available.
5081 * Makefile.am: Use a local copy of libexecdir along with @PACKAGE@
5082 as GNUPG_LIBEXECDIR so it can be easily overridden at make time.
5084 2003-02-04 David Shaw <dshaw@jabberwocky.com>
5086 * armor.c (parse_hash_header, armor_filter): Accept the new SHAs
5087 in the armor Hash: header.
5089 * g10.c (print_hex): Print long hash strings a little neater.
5090 (print_mds): Add the new SHAs to the hash list.
5092 2003-02-02 David Shaw <dshaw@jabberwocky.com>
5094 * keyedit.c (menu_revuid): Properly handle a nonselfsigned uid on
5095 a v4 key (treat as a v4 revocation).
5097 * import.c (print_import_check): Do not re-utf8 convert user IDs.
5099 2003-01-27 David Shaw <dshaw@jabberwocky.com>
5101 * mainproc.c (list_node): Show signature expiration date in
5102 with-colons sig records.
5104 * keylist.c (list_keyblock_colon), mainproc.c (list_node): Show
5105 trust sig information in with-colons sig records.
5107 2003-01-16 David Shaw <dshaw@jabberwocky.com>
5109 * g10.c (add_group): Trim whitespace after a group name so it does
5110 not matter where the user puts the = sign.
5112 * options.skel: Comment out the first three lines in case someone
5113 manually copies the skel file to their homedir.
5115 * sign.c (clearsign_file): Only use pgp2mode with v3 keys and
5116 MD5. This matches what we do when decoding such messages and
5117 prevents creating a message (v3+RIPEMD/160) that we can't verify.
5119 * sig-check.c (signature_check2): Use G10ERR_GENERAL as the error
5120 for signature digest conflict. BAD_SIGN implies that a signature
5121 was checked and we may try and print out a user ID for a key that
5124 2003-01-15 David Shaw <dshaw@jabberwocky.com>
5126 * trustdb.c (init_trustdb, get_validity): Don't use a changed
5127 trust model to indicate a dirty trustdb, and never auto-rebuild a
5128 dirty trustdb with the "always" trust model.
5130 * g10.c (add_group): Last commit missed the \t ;)
5132 2003-01-14 David Shaw <dshaw@jabberwocky.com>
5134 * packet.h, parse-packet.c (setup_user_id), free-packet.c
5135 (free_user_id), keydb.h, keyid.c (namehash_from_uid): New function
5136 to rmd160-hash the contents of a user ID packet and cache it in
5139 * keylist.c (list_keyblock_colon): Use namehash in field 8 of
5140 uids. Show dates for creation (selfsig date), and expiration in
5143 * trustdb.c (get_validity, get_validity_counts, update_validity):
5144 Use new namehash function rather than hashing it locally.
5146 2003-01-14 Werner Koch <wk@gnupg.org>
5148 * g10.c (add_group): Fixed group parsing to allow more than one
5149 delimiter in a row and also allow tab as delimiter.
5151 2003-01-12 David Shaw <dshaw@jabberwocky.com>
5153 * tdbio.c (tdbio_set_dbname): Fix assertion failure with
5154 non-fully-qualified trustdb names.
5156 2003-01-11 David Shaw <dshaw@jabberwocky.com>
5158 * trustdb.c (get_validity_info, get_ownertrust_info,
5159 trust_letter): Simplify by returning a ? for error directly.
5161 * keyedit.c (show_key_with_all_names): Use get_validity_string and
5162 get_ownertrust_string to show full word versions of trust
5163 (i.e. "full" instead of 'f').
5165 * trustdb.h, trustdb.c (get_ownertrust_string,
5166 get_validity_string): Same as get_ownertrust_info, and
5167 get_validity_info, except returns a full string.
5169 * trustdb.c (get_ownertrust_with_min): New. Same as
5170 'get_ownertrust' but takes the min_ownertrust value into account.
5172 2003-01-10 David Shaw <dshaw@jabberwocky.com>
5174 * armor.c (armor_filter): Comment about PGP's end of line tab
5177 * trustdb.h, trustdb.c (trust_letter): Make
5178 static. (get_ownertrust_info, get_validity_info): Don't mask the
5181 * trustdb.h, gpgv.c, trustdb.c (get_validity, get_validity_info),
5182 keylist.c (list_keyblock_colon), keyedit.c
5183 (show_key_with_all_names_colon, menu_revuid): Pass a user ID in
5184 rather than a namehash, so we only have to do the hashing in one
5187 * packet.h, pkclist.c (build_pk_list), free-packet.c
5188 (release_public_key_parts): Remove unused namehash element for
5191 2003-01-07 David Shaw <dshaw@jabberwocky.com>
5193 * keygen.c (keygen_set_std_prefs): Warn when setting an IDEA
5194 preference when IDEA is not available.
5196 2003-01-06 David Shaw <dshaw@jabberwocky.com>
5198 * trustdb.c (get_validity_info): 'd' for disabled is not a
5199 validity value any more.
5201 * packet.h, tdbio.h, tdbio.c (tdbio_read_record,
5202 tdbio_write_record), trustdb.c (update_validity): Store temporary
5203 full & marginal counts in the trustdb.
5204 (clear_validity, get_validity_counts): Return and clear temp
5206 (store_validation_status): Keep track of which keyids have been
5208 (validate_one_keyblock, validate_key_list): Use per-uid copies of
5209 the full & marginal counts so they can be recalled for multiple
5211 (validate_keys): Only use unused keys for each new round.
5212 (reset_unconnected_keys): Rename to reset_trust_records, and only
5213 skip specifically excluded records.
5215 * keylist.c (print_capabilities): Show 'D' for disabled keys in
5216 capabilities section.
5218 * trustdb.c (is_disabled): Remove incorrect comment.
5220 2003-01-03 David Shaw <dshaw@jabberwocky.com>
5222 * import.c (import_one): Only do the work to create the status
5223 display for interactive import if status is enabled.
5225 * keyring.c (keyring_search): skipfnc didn't work properly with
5226 non-keyid searches. Noted by Stefan Bellon.
5228 * getkey.c (merge_selfsigs_main): Remove some unused code and make
5229 sure that the pk selfsigversion member accounts for 1F direct
5232 2003-01-02 Werner Koch <wk@gnupg.org>
5234 * keydb.c (keydb_add_resource): Don't assume that try_make_homedir
5235 terminates but check again for the existence of the directory and
5237 * openfile.c (copy_options_file): Print a warning if the skeleton
5238 file has active options.
5240 2002-12-29 David Shaw <dshaw@jabberwocky.com>
5242 * getkey.c (merge_selfsigs_main), main.h, sig-check.c
5243 (check_key_signature2): Pass the ultimately trusted pk directly to
5244 check_key_signature2 to avoid going through the key selection
5245 mechanism. This prevents a deadly embrace when two keys without
5246 selfsigs each sign the other.
5248 2002-12-27 David Shaw <dshaw@jabberwocky.com>
5250 * keyserver.c (keyserver_refresh): Don't print the "refreshing..."
5251 line if there are no keys to refresh or if there is no keyserver
5254 * getkey.c (merge_selfsigs_main): Any valid user ID should make a
5255 key valid, not just the last one. This also fixes Debian bug
5258 2002-12-27 Stefan Bellon <sbellon@sbellon.de>
5260 * import.c (print_import_check): Changed int to size_t.
5262 2002-12-27 David Shaw <dshaw@jabberwocky.com>
5264 * keyedit.c (keyedit_menu, menu_revuid): Add "revuid" feature to
5265 revoke a user ID. This is the same as issuing a revocation for
5266 the self-signature, but a much simpler interface to do it.
5268 2002-12-26 David Shaw <dshaw@jabberwocky.com>
5270 * keydb.h, getkey.c (key_byname): Flag to enable or disable
5271 including disabled keys. Keys specified via keyid (i.e. 0x...)
5272 are always included.
5274 * getkey.c (get_pubkey_byname, get_seckey_byname2,
5275 get_seckey_bynames), keyedit.c (keyedit_menu, menu_addrevoker):
5276 Include disabled keys in these functions.
5278 * pkclist.c (build_pk_list): Do not include disabled keys for -r
5279 or the key prompt. Do include disabled keys for the default key
5282 * trustdb.h, trustdb.c (is_disabled): New skipfnc for skipping
5285 * gpgv.c (is_disabled): Stub.
5287 * keygen.c (keygen_add_key_expire): Properly handle updating a key
5288 expiration to a no-expiration value.
5290 * keyedit.c (enable_disable_key): Comment.
5292 * import.c (import_one): When in interactive mode and --verbose,
5293 don't repeat some key information twice.
5295 2002-12-22 Timo Schulz <ts@winpt.org>
5297 * import.c (print_import_check): New.
5298 (import_one): Use it here.
5299 Use merge_keys_and_selfsig in the interactive mode to avoid
5300 wrong key information.
5301 * status.h: Add new status code.
5304 2002-12-13 David Shaw <dshaw@jabberwocky.com>
5306 * pkclist.c (do_we_trust): Tweak language to refer to the "named
5307 user" rather than "owner". Noted by Stefan Bellon.
5309 * trustdb.h, trustdb.c (trustdb_pending_check): New function to
5310 check if the trustdb needs a check.
5312 * import.c (import_keys_internal): Used here so we don't rebuild
5313 the trustdb if it is still clean.
5314 (import_one, chk_self_sigs): Only mark trustdb dirty if the key
5315 that is being imported has any sigs other than self-sigs.
5316 Suggested by Adrian von Bidder.
5318 * options.skel: Include the required '=' sign in the sample
5319 'group' option. Noted by Stefan Bellon.
5321 * import.c (chk_self_sigs): Don't try and check a subkey as if it
5324 2002-12-11 David Shaw <dshaw@jabberwocky.com>
5326 * tdbio.c (tdbio_read_record, tdbio_write_record): Compact the
5327 RECTYPE_TRUST records a bit.
5329 * g10.c (main): Comment out --list-trust-path until it can be
5332 * import.c (import_one): Warn when importing an Elgamal primary
5333 that this may take some time (to verify self-sigs).
5334 (chk_self_sigs): Try and cache all self-sigs so the keyblock is
5335 written to the keyring with a good rich cache.
5337 * keygen.c (ask_algo): Make the Elgamal sign+encrypt warning
5338 stronger, and remove the RSA sign+encrypt warning.
5340 2002-12-06 Stefan Bellon <sbellon@sbellon.de>
5342 * options.h: Fixed typo (mangle_dos_names instead of
5343 mangle_dos_filenames).
5345 2002-12-05 Werner Koch <wk@gnupg.org>
5347 * g10.c: New options --[no-]mangle-dos-filenames.
5348 * options.h (opt): Added mangle-dos-filenames.
5349 * openfile.c (open_outfile) [USE_ONLY_8DOT3]: Truncate the
5350 filename only when this option is set; this is the default.
5352 2002-12-04 David Shaw <dshaw@jabberwocky.com>
5354 * main.h, keyedit.c, keygen.c: Back out previous (2002-12-01)
5355 change. Minimal isn't always best.
5357 * sign.c (update_keysig_packet): Use the current time rather then
5358 a modification of the original signature time. Make sure that
5359 this doesn't cause a time warp.
5361 * keygen.c (keygen_add_key_expire): Properly handle a key
5362 expiration date in the past (use a duration of 0).
5364 * keyedit.c (menu_expire): Use update_keysig_packet so any sig
5365 subpackets are maintained during the update.
5367 * build-packet.c (build_sig_subpkt): Mark sig expired or unexpired
5368 when the sig expiration subpacket is added.
5369 (build_sig_subpkt_from_sig): Handle making an expiration subpacket
5370 from a sig that has already expired (use a duration of 0).
5372 * packet.h, sign.c (update_keysig_packet), keyedit.c
5373 (menu_set_primary_uid, menu_set_preferences): Add ability to issue
5374 0x18 subkey binding sigs to update_keysig_packet and change all
5377 * trustdb.c (validate_keys): Show trust parameters when building
5378 the trustdb, and make sure that the version record update was
5380 (init_trustdb): If the current parameters aren't what was used for
5381 building the trustdb, the trustdb is invalid.
5383 * tbio.c (tdbio_db_matches_options): Update to work with new
5386 2002-12-03 David Shaw <dshaw@jabberwocky.com>
5388 * tdbio.h, tdbio.c (tdbio_read_record, tdbio_write_record): Store
5389 trust model in the trustdb version record.
5390 (tdbio_update_version_record): New function to update version
5391 record values during a trustdb check or update.
5392 (tdbio_dump_record): Show trust model in dump.
5394 * trustdb.c (validate_keys): Call tdbio_update_version_record on
5395 success so that the correct options are stored in the trustdb.
5397 * options.h: rearrange trust models so that CLASSIC is 0 and
5400 * options.h, g10.c (main), encode.c (write_pubkey_enc_from_list),
5401 pkclist.c (algo_available), revoke.c (gen_revoke): Add --pgp8
5402 mode. This is basically identical to --pgp7 in all ways except
5403 that signing subkeys, v4 data sigs (including expiration), and SK
5404 comments are allowed.
5406 * getkey.c (finish_lookup): Comment.
5408 * main.h, keylist.c (reorder_keyblock), keyedit.c (keyedit_menu):
5409 Reorder user ID display in the --edit-key menu to match that of
5410 the --list-keys display.
5412 * g10.c (add_notation_data): Fix initialization.
5414 2002-12-01 David Shaw <dshaw@jabberwocky.com>
5416 * keyedit.c (menu_expire): Don't lose key flags when changing the
5417 expiration date of a subkey. This is not the most optimal
5418 solution, but it is minimal change on the stable branch.
5420 * main.h, keygen.c (do_copy_key_flags): New function to copy key
5421 flags, if any, from one sig to another.
5422 (do_add_key_expire): New function to add key expiration to a sig.
5423 (keygen_copy_flags_add_expire): New version of
5424 keygen_add_key_expire that also copies key flags.
5425 (keygen_add_key_flags_and_expire): Use do_add_key_expire.
5427 * import.c (fix_hkp_corruption): Comment.
5429 2002-11-25 Stefan Bellon <sbellon@sbellon.de>
5431 * plaintext.c (handle_plaintext) [__riscos__]: If nooutput is set,
5432 no filetype is needed obviously.
5434 2002-11-24 David Shaw <dshaw@jabberwocky.com>
5436 * main.h, misc.c (default_cipher_algo, default_compress_algo):
5437 New. Return the default algorithm by trying
5438 --cipher-algo/--compress-algo, then the first item in the pref
5439 list, then s2k-cipher-algo or ZIP.
5441 * sign.c (sign_file, sign_symencrypt_file), encode.c
5442 (encode_simple, encode_crypt): Call default_cipher_algo and
5443 default_compress_algo to get algorithms.
5445 * g10.c (main): Allow pref selection for compress algo with
5448 * mainproc.c (proc_encrypted): Use --s2k-digest-algo for
5449 passphrase mangling rather than --digest-algo.
5451 * sign.c (hash_for): If --digest-algo is not set, but
5452 --personal-digest-preferences is, then use the first hash
5453 algorithm in the personal list. If the signing algorithm is DSA,
5454 then use the first 160-bit hash algorithm in the personal list.
5455 If --pgp2 is set and it's a v3 RSA key, use MD5.
5457 * g10.c (main), keydb.c (keydb_add_resource,
5458 keydb_locate_writable): Rename --default-keyring as
5459 --primary-keyring. Stefan wins the naming contest.
5461 2002-11-23 David Shaw <dshaw@jabberwocky.com>
5463 * g10.c (add_notation_data): Disallow notation names that do not
5464 contain a '@', unless --expert is set. This is to help prevent
5465 people from polluting the (as yet unused) IETF namespace.
5467 * main.h: Comments about default algorithms.
5469 * photoid.c (image_type_to_string): Comments about 3-letter file
5472 * encode.c (encode_simple), passphrase.c (passphrase_to_dek),
5473 sign.c (sign_symencrypt_file): Use --s2k-digest-algo for
5474 passphrase mangling rather than --digest-algo.
5476 2002-11-21 David Shaw <dshaw@jabberwocky.com>
5478 * keygen.c (keygen_set_std_prefs): Properly handle an empty
5481 * misc.c (string_to_compress_algo): "none" is a bad choice since
5482 it conflicts with the "none" in setpref.
5484 2002-11-14 David Shaw <dshaw@jabberwocky.com>
5486 * g10.c (main): Allow compression algorithm names as the argument
5487 to --compress-algo. The old algorithm names still work for
5488 backwards compatibility.
5490 * misc.c (string_to_compress_algo): Allow "none" as an alias for
5493 2002-11-13 Stefan Bellon <sbellon@sbellon.de>
5495 * getkey.c (get_pubkey_byfprint_fast): Fixed type incompatibility,
5496 was unsigned char instead of byte.
5498 2002-11-13 David Shaw <dshaw@jabberwocky.com>
5500 * encode.c (encode_simple): Make sure that files larger than about
5501 4G use partial length encoding. This is required because OpenPGP
5502 allows only for 32 bit length fields. From Werner on stable
5505 * getkey.c (get_pubkey_direct): Renamed to...
5506 (get_pubkey_fast): this and made extern.
5507 (get_pubkey_byfprint_fast): New. From Werner on stable branch.
5509 * keydb.h, import.c (import_one): Use get_pubkey_fast instead of
5510 get_pubkey. We don't need a merged key and actually this might
5512 (revocation_present): Likewise for search by fingerprint. From
5513 Werner on stable branch.
5515 * g10.c (main): Try to create the trustdb even for non-colon-mode
5516 list-key operations. This is required because getkey needs to
5517 know whether a a key is ultimately trusted. From Werner on stable
5520 * exec.c [__CYGWIN32__]: Keep cygwin separate from Mingw32;
5521 we don't need it here as it behaves more like a Posix system.
5522 From Werner on stable branch.
5524 * passphrase.c (agent_get_passphrase): Ditto. From Werner on
5527 * tdbio.c (MY_O_BINARY): Need binary mode with Cygwin. From
5528 Werner on stable branch.
5530 * g10.c, gpgv.c (main) [__CYGWIN32__]: Don't get the homedir from
5531 the registry. From Werner on stable branch.
5533 * keyedit.c (show_key_with_all_names_colon): Make --with-colons
5534 --edit display match the validity and trust of --with-colons
5537 * passphrase.c (agent_send_all_options): Fix compile warning.
5539 * keylist.c (list_keyblock_colon): Validity for subkeys should
5540 match that of the primary key, and not that of the last user ID.
5542 * getkey.c (merge_selfsigs): Revoked/expired/invalid primary keys
5543 carry these facts onto all their subkeys, but only after the
5544 subkey has a chance to be marked valid. This is to fix an
5545 incorrect "invalid public key" error verifying a signature made by
5546 a revoked signing subkey, with a valid unrevoked primary key.
5548 2002-11-09 Werner Koch <wk@gnupg.org>
5550 * passphrase.c (agent_send_all_options): Use tty_get_ttyname to
5551 get the default ttyname.
5553 2002-11-07 David Shaw <dshaw@jabberwocky.com>
5555 * keyring.h, keyring.c (keyring_register_filename): Return the
5556 pointer if a given keyring is registered twice.
5558 * keydb.h, keydb.c (keydb_add_resource): Use flags to indicate a
5560 (keydb_locate_writable): Prefer the default keyring if possible.
5562 * g10.c (main): Add --default-keyring option.
5564 2002-11-06 David Shaw <dshaw@jabberwocky.com>
5566 * options.h, g10.c (main), trustdb.c (ask_ownertrust): Add
5567 --force-ownertrust option for debugging purposes. This allows
5568 setting a whole keyring to a given trust during an
5569 --update-trustdb. Not for normal use - it's just easier than
5570 hitting "4" all the time to test a large trustdb.
5572 * pubkey-enc.c (get_session_key): With hidden recipients or try a
5573 given passphrase against all secret keys rather than trying all
5574 secret keys in turn. Don't if --try-all-secrets or --status-fd is
5577 * passphrase.c (passphrase_to_dek): Mode 1 means do a regular
5578 passphrase query, but don't prompt with the key info.
5580 * seckey-cert.c (do_check, check_secret_key): A negative ask count
5581 means to enable passphrase mode 1.
5583 * keydb.h, getkey.c (enum_secret_keys): Add flag to include
5584 secret-parts-missing keys (or not) in the list.
5586 2002-11-05 David Shaw <dshaw@jabberwocky.com>
5588 * keyserver.c (keyserver_search_prompt): When --with-colons is
5589 enabled, don't try and fit the search output to the screen size -
5590 just dump the whole list.
5592 2002-11-04 David Shaw <dshaw@jabberwocky.com>
5594 * keyserver.c (keyserver_search_prompt): When --with-colons is
5595 enabled, just dump the raw keyserver protocol to stdout and don't
5598 * keyserver.c (show_prompt): Don't show a prompt when command-fd
5601 * trustdb.c (trust_model_string, check_trustdb, update_trustdb,
5602 validate_one_keyblock): It's not clear what a trustdb rebuild or
5603 check means with a trust model other than "classic" or "openpgp",
5606 2002-11-03 David Shaw <dshaw@jabberwocky.com>
5608 * options.h, g10.c (main): Add --trust-model option. Current
5609 models are "openpgp" which is classic+trustsigs, "classic" which
5610 is classic only, and "always" which is the same as the current
5611 option --always-trust (which still works). Default is "openpgp".
5613 * trustdb.c (validate_one_keyblock): Use "openpgp" trust model to
5616 * gpgv.c (main), mainproc.c (check_sig_and_print), pkclist.c
5617 (do_we_trust, do_we_trust_pre, check_signatures_trust): Use new
5618 --trust-model option in place of --always-trust.
5620 * keyedit.c (sign_mk_attrib, trustsig_prompt, sign_uids,
5621 keyedit_menu): Prompt for and create a trust signature with
5622 "tsign". This is functional, but needs better UI text.
5624 * build-packet.c (build_sig_subpkt): Able to build trust and
5627 * pkclist.c (do_edit_ownertrust): Comment.
5629 2002-11-02 David Shaw <dshaw@jabberwocky.com>
5631 * keygen.c (set_one_pref, keygen_set_std_prefs): Allow using the
5632 full algorithm name (CAST5, SHA1) rather than the short form (S3,
5635 * main.h, keygen.c (keygen_get_std_prefs), keyedit.c
5636 (keyedit_menu): Return and use a fake uid packet rather than a
5637 string since we already have a nice parser/printer in
5638 keyedit.c:show_prefs.
5640 * main.h, misc.c (string_to_compress_algo): New.
5642 2002-11-01 David Shaw <dshaw@jabberwocky.com>
5644 * g10.c (main): Add --no-throw-keyid.
5646 * keydb.h, encode.c (write_pubkey_enc_from_list), g10.c (main),
5647 pkclist.c (build_pk_list): Add --hidden-recipient (-R) and
5648 --hidden-encrypt-to, which do a single-user variation on
5649 --throw-keyid. The "hide this key" flag is carried in bit 0 of
5650 the pk_list flags field.
5652 * keyserver.c (parse_keyrec): Fix shadowing warning.
5654 2002-10-31 Stefan Bellon <sbellon@sbellon.de>
5656 * compress.c (init_compress) [__riscos__]: Use
5657 riscos_load_module() to load ZLib module.
5659 * g10.c (main) [__riscos__]: Renames due to changes in riscos.c
5660 (e.g. prefixes all RISC OS specific functions with riscos_*).
5661 * photoid.c (show_photos) [__riscos__]: Likewise.
5662 * signal.c (got_fatal_signal) [__riscos__]: Likewise.
5664 * trustdb.c (check_regexp) [__riscos__]: Branch to RISC OS RegEx
5667 2002-10-31 David Shaw <dshaw@jabberwocky.com>
5669 * build-packet.c (do_plaintext), encode.c (encode_sesskey,
5670 encode_simple, encode_crypt), sign.c (write_plaintext_packet): Use
5671 wipememory() instead of memset() to wipe sensitive memory as the
5672 memset() might be optimized away.
5674 2002-10-30 David Shaw <dshaw@jabberwocky.com>
5676 * trustdb.c (check_regexp): Modern regexps require REG_EXTENDED.
5678 2002-10-29 David Shaw <dshaw@jabberwocky.com>
5680 * packet.h, trustdb.h, trustdb.c (trust_string): New. Return a
5681 string like "fully trusted", "marginally trusted", etc.
5682 (get_min_ownertrust): New. Return minimum ownertrust.
5683 (update_min_ownertrust): New. Set minimum ownertrust.
5684 (check_regexp): New. Check a regular epression against a user ID.
5685 (ask_ownertrust): Allow specifying a minimum value.
5686 (get_ownertrust_info): Follow the minimum ownertrust when
5688 (clear_validity): Remove minimum ownertrust when a key becomes
5690 (release_key_items): Release regexp along with the rest of the
5692 (validate_one_keyblock, validate_keys): Build a trust sig chain
5693 while validating. Call check_regexp for regexps. Use the minimum
5694 ownertrust if the user does not specify a genuine ownertrust.
5696 * pkclist.c (do_edit_ownertrust): Only allow user to select a
5697 trust level greater than the minimum value.
5699 * parse-packet.c (can_handle_critical): Can handle critical trust
5700 and regexp subpackets.
5702 * trustdb.h, trustdb.c (clear_ownertrusts), delkey.c
5703 (do_delete_key), import.c (import_one): Rename clear_ownertrust to
5704 clear_ownertrusts and have it clear the min_ownertrust value as
5707 * keylist.c (list_keyblock_print): Indent uid to match pub and
5710 * keyedit.c (print_and_check_one_sig, show_key_and_fingerprint,
5711 menu_addrevoker), keylist.c (list_keyblock_print,
5712 print_fingerprint): Show "T" or the trust depth for trust
5713 signatures, and add spaces to some strings to make room for it.
5715 * packet.h, parse-packet.c (dump_sig_subpkt, parse_one_sig_subpkt,
5716 parse_signature): Parse trust signature values.
5718 * tdbio.h, tdbio.c (tdbio_read_record, tdbio_write_record):
5719 Reserve a byte for the minimum ownertrust value (for use with
5722 2002-10-29 Stefan Bellon <sbellon@sbellon.de>
5724 * build-packet.c (calc_plaintext, do_plaintext): Removed RISC OS
5725 specific filetype parts (it's now done in make_basename()).
5727 * plaintext.c (handle_plaintext): Tidied up RISC OS specific
5730 * encode.c (encode_simple, encode_crypt): Added argument to
5731 make_basename() call.
5733 * sign.c (write_plaintext_packet): Added argument to
5734 make_basename() call.
5736 2002-10-28 Stefan Bellon <sbellon@sbellon.de>
5738 * build-packet.c (calc_plaintext, do_plaintext): Added filetype
5739 handling for RISC OS' file types.
5741 * plaintext.c (handle_plaintext) [__riscos__]: Added filetype
5742 handling for RISC OS' file types.
5744 2002-10-23 David Shaw <dshaw@jabberwocky.com>
5746 * main.h, import.c (sec_to_pub_keyblock, import_secret_one,
5747 parse_import_options), g10.c (main): New import-option
5748 "convert-sk-to-pk" to convert a secret key into a public key
5749 during import. It is on by default.
5751 2002-10-23 Werner Koch <wk@gnupg.org>
5753 * pubkey-enc.c (get_it): Fix segv, test for revoked only when PK
5756 2002-10-18 Timo Schulz <ts@winpt.org>
5758 * keylist.c: (print_pubkey_info): New.
5759 (print_seckey_info): New.
5760 * main.h: Prototypes for the new functions.
5761 * delkey.c (do_delete_key): Use it here.
5762 * revoke.c (gen_desig_revoke): Ditto.
5764 2002-10-17 Werner Koch <wk@gnupg.org>
5766 * pkclist.c (do_edit_ownertrust): Show all user IDs. This should
5767 be enhanced to also show the current trust level. Suggested by
5770 2002-10-17 David Shaw <dshaw@jabberwocky.com>
5772 * g10.c (main): Handle --strict and --no-strict from the command
5773 line before the options file is loaded.
5775 2002-10-15 David Shaw <dshaw@jabberwocky.com>
5777 * g10.c (main): Disable --textmode when encrypting (symmetric or
5778 pk) in --pgp2 mode as PGP 2 can't handle the unknown length
5779 literal packet. Reported by Michael Richardson.
5781 2002-10-14 David Shaw <dshaw@jabberwocky.com>
5783 * keyserver-internal.h, keyserver.c (print_keyrec, parse_keyrec,
5784 show_prompt, keyserver_search_prompt, keyserver_spawn): Go to
5785 version 1 of the keyserver protocol. This is a better design,
5786 similar to --with-colons, that allows for keys with multiple user
5787 IDs rather than using multiple keys. It also matches the machine
5788 readable pksd format. Also use a prettier --search-keys listing
5789 format that can fill different size windows (currently set at 24
5792 2002-10-12 Werner Koch <wk@gnupg.org>
5794 * keygen.c (print_status_key_created): New.
5795 (do_generate_keypair): Use it to print the fingerprint.
5796 (generate_subkeypair): Likewise.
5798 2002-10-11 David Shaw <dshaw@jabberwocky.com>
5800 * keyedit.c (menu_addrevoker): Properly back out if the signature
5801 fails. Also, do not allow appointing the same revoker twice, and
5802 report ALREADY_SIGNED if the user tries it.
5804 2002-10-07 David Shaw <dshaw@jabberwocky.com>
5806 * import.c (import_keys_internal): Missed one s/inp/inp2/.
5808 * keylist.c (print_capabilities): Properly indicate per-key
5809 capabilities of sign&encrypt primary keys that have
5810 secret-parts-missing (i.e. no capabilities at all)
5812 * mainproc.c (symkey_decrypt_sesskey): Fix compiler warning.
5814 2002-10-04 David Shaw <dshaw@jabberwocky.com>
5816 * getkey.c (get_pubkey_direct): Don't cache keys retrieved via
5817 this function as they may not have all their fields filled in.
5819 * sig-check.c (signature_check2): Use new is_primary flag to check
5820 rather than comparing main_keyid with keyid as this still works in
5821 the case of a not fully filled in pk.
5823 2002-10-04 Werner Koch <wk@gnupg.org>
5825 * import.c (import_keys_internal): s/inp/inp2/ to avoid shadowing
5828 * passphrase.c (agent_get_passphrase): Fixed signed/unsigned char
5829 problem in %-escaping. Noted by Ingo Klöcker.
5831 2002-10-03 David Shaw <dshaw@jabberwocky.com>
5833 * options.h, g10.c (main): Add --strict and --no-strict to switch
5834 the log_warning severity level from info to error.
5836 * keylist.c (print_capabilities): Secret-parts-missing keys should
5837 show that fact in the capabilities, and only primary signing keys
5838 can certify other keys.
5840 * packet.h, parse_packet.c (parse_key): Add is_primary flag for
5841 public keys (it already exists for secret keys).
5843 2002-10-02 David Shaw <dshaw@jabberwocky.com>
5845 * import.c (import_secret_one): Check for an illegal (>110)
5846 protection cipher when importing a secret key.
5848 * keylist.c (list_keyblock_print): Show a '#' for a
5849 secret-parts-missing key.
5851 * parse_packet.c (parse_key): Some comments.
5853 * revoke.c (gen_revoke): Remove some debugging code.
5855 * trustdb.c (verify_own_keys): Make trusted-key a non-deprecated
5858 * seckey-cert.c (do_check): Don't give the IDEA warning unless the
5859 cipher in question is in fact IDEA.
5861 2002-10-01 David Shaw <dshaw@jabberwocky.com>
5863 * import.c (import_one): Make sure that a newly imported key
5864 starts with a clean ownertrust.
5866 2002-10-01 Werner Koch <wk@gnupg.org>
5868 * getkey.c (get_pubkey_direct): New.
5869 (merge_selfsigs_main): Use it here to look for an ultimately
5870 trusted key. Using the full get_pubkey might lead to an
5871 infinitive recursion.
5873 2002-09-29 David Shaw <dshaw@jabberwocky.com>
5875 * keyserver.c (parse_keyserver_uri): Force the keyserver URI
5876 scheme to lowercase to be case-insensitive.
5878 2002-09-28 David Shaw <dshaw@jabberwocky.com>
5880 * export.c (do_export_stream): Comment.
5882 * sig-check.c (check_key_signature2): Properly handle a
5883 non-designated revocation import.
5885 2002-09-26 Werner Koch <wk@gnupg.org>
5887 * g10.c (set_homedir): New. Changed all direct assignments to use
5889 * gpgv.c (set_homedir): Ditto.
5891 2002-09-25 David Shaw <dshaw@jabberwocky.com>
5893 * Makefile.am: Link gpg with EGDLIBS (i.e. NETLIBS) as EGD uses
5894 sockets. Remove the old NETLIBS variable since the keyserver
5895 stuff is no longer internal.
5897 2002-09-24 David Shaw <dshaw@jabberwocky.com>
5899 * import.c (import_keys_stream): Fix compiler type warning.
5901 * keyring.c (keyring_rebuild_cache), sig-check.c
5902 (check_key_signature2), import.c (import, chk_self_sigs): Minor
5905 2002-09-23 Stefan Bellon <sbellon@sbellon.de>
5907 * main.h: Introduced fast-import as import option. Removed
5908 fast as separate option from prototypes.
5909 * import.c (parse_import_options): Added fast-import option.
5910 (import_*): Removed fast as separate option.
5911 * g10.c (main): Added option fast-import, removed old fast
5912 as separate argument.
5913 * keyserver.c (keyserver_spawn): Removed old fast as separate
5916 2002-09-22 Stefan Bellon <sbellon@sbellon.de>
5918 * import.c (import_keys, import_keys_stream,
5919 import_keys_internal): Added trustdb update/check to key import if
5920 not fast-import and interactive set/no-auto-check-trustdb unset.
5921 Avoided function clone by introducing import_keys_internal.
5923 2002-09-19 David Shaw <dshaw@jabberwocky.com>
5925 * keyserver.c (keyserver_spawn): Properly handle line truncation.
5926 Don't leak memory (~10-20 bytes) on searches.
5927 (keyserver_search_prompt): Cleanup.
5929 * keylist.c (list_keyblock_colon): Show 1F direct key signatures
5930 in --with-colons listing.
5932 2002-09-16 David Shaw <dshaw@jabberwocky.com>
5934 * keyedit.c (menu_addrevoker): The direct key signature for
5935 revocation keys must be at least v4 to carry the revocation key
5936 subpacket. Add a PGP 2.x warning for revocation keys.
5938 2002-09-14 David Shaw <dshaw@jabberwocky.com>
5940 * g10.c (check_permissions): Rearrange strings to make translating
5941 easier (don't incorporate string parts).
5943 * keyedit.c (sign_uids): Make strings translatable.
5945 * sig-check.c (check_key_signature2): Make string translatable.
5947 2002-09-13 David Shaw <dshaw@jabberwocky.com>
5949 * getkey.c (check_revocation_keys): Move....
5950 * main.h, sig-check.c (check_revocation_keys): to here. Also
5951 return the signature_check error code rather than 0/1 and cache
5954 * sig-check.c (check_key_signature2): Divert to
5955 check_revocation_keys if a revocation sig is made by someone other
5958 * getkey.c (merge_selfsigs_main): Tidy.
5960 2002-09-13 Werner Koch <wk@gnupg.org>
5962 * g10.c (main) [__MINGW32__]: Activate oLoadExtension.
5964 2002-09-12 David Shaw <dshaw@jabberwocky.com>
5966 * Makefile.am, hkp.c, hkp.h, keyserver.c (keyserver_work): Remove
5967 internal HKP support.
5969 * keyserver.c (keyserver_spawn): Remove whitespace after keyserver
5972 2002-09-10 David Shaw <dshaw@jabberwocky.com>
5974 * exec.c (expand_args): Remove loop left over from earlier
5976 (exec_write): Missed one tick.
5978 2002-09-10 Werner Koch <wk@gnupg.org>
5980 * g10.c, options.h: Removed option --emulate-checksum-bug.
5981 * misc.c (checksum_u16_nobug): Removed.
5982 (checksum_u16): Removed the bug emulation.
5983 (checksum_mpi): Ditto.
5984 (checksum_mpi_counted_nbits): Removed and replaced all calls
5987 * parse-packet.c (read_protected_v3_mpi): New.
5988 (parse_key): Use it here to store it as an opaque MPI.
5989 * seckey-cert.c (do_check): Changed the v3 unprotection to the new
5990 why to store these keys.
5991 (protect_secret_key): Likewise.
5992 * build-packet.c (do_secret_key): And changed the writing.
5994 * tdbio.c (tdbio_set_dbname, open_db): Use new macro MY_O_BINARY
5995 to avoid silly ifdefs.
5996 (open_db): Fallback to RDONLY so that gpg may be used from a
5999 * encode.c (encode_simple): Make sure we don't use an ESK packet
6000 when we don't have a salt in the S2K.
6002 * misc.c (pct_expando) <case f>: Make sure that LEN is initialized.
6004 * exec.c (exec_finish): Use ticks to denote filenames in messages.
6005 (make_tempdir, exec_write): Changed format of messages.
6007 * keyserver.c (print_keyinfo): Release USERID in on error.
6008 (keyserver_work) [!DISABLE_KEYSERVER_HELPERS]: Exclude the unused
6011 2002-09-09 Werner Koch <wk@gnupg.org>
6013 * parse-packet.c (make_attribute_uidname): Add new ar MAX_NAMELEN
6014 for sanity checks. Changed both callers. Limit the size of an %s.
6016 * options.skel: Comment lock-once out, so that this file does not
6017 change anything when copied to a new home directory.
6018 * openfile.c (try_make_homedir): Don't exit after copying the
6021 * options.h: Don't use a comma when declaring variables over more
6024 * mainproc.c (symkey_decrypt_sesskey): Check length of the session
6027 * hkp.c (dehtmlize): Use ascii_tolower to protect against weird
6028 locales. Cast the argument for isspace for the sake of broken
6030 (parse_hkp_index): s/ascii_memcasecmp/ascii_strncasecmp/.
6032 * g10.c: Removed option --emulate-3des-s2k-bug.
6034 * passphrase.c (hash_passphrase): Was used here.
6036 * export.c (parse_export_options)
6037 * keyserver.c (parse_keyserver_options)
6038 * import.c (parse_import_options)
6039 * g10.c (check_permissions): s/ascii_memcasecmp/ascii_strncasecmp/.
6041 2002-09-09 David Shaw <dshaw@jabberwocky.com>
6043 * g10.c (add_group): Use '=' to separate group name from group
6044 members. Use a better error message for when no = is found.
6046 * hkp.c (hkp_export): Use CRLF in headers.
6048 2002-09-03 David Shaw <dshaw@jabberwocky.com>
6050 * mainproc.c (print_pkenc_list): Don't increment the error counter
6051 when printing the list of keys a message was encrypted to. This
6052 would make gpg give a non-zero exit code even for completely valid
6053 messages if the message was encrypted to more than one key that
6056 2002-09-02 Werner Koch <wk@gnupg.org>
6058 * g10.c (main): Try to set a default character set. Print the
6059 used one in verbosity level 3.
6060 * gpgv.c (main): Try to set a default character set.
6062 * status.c, status.h (STATUS_IMPORT_OK): New.
6063 * import.c (import_one,import_secret_one): Print new status.
6065 2002-08-30 David Shaw <dshaw@jabberwocky.com>
6067 * pkclist.c (build_pk_list): Add new status code to indicate an
6068 untrusted user. This (or a disabled key) fail with "unavailable
6069 pubkey" (G10ERR_UNU_PUBKEY).
6071 * pkclist.c (build_pk_list): Fail if any recipient keys are
6074 * options.skel: The PGP LDAP keyserver is back. Use MIT keyserver
6075 as a sample rather than cryptnet as cryptnet does not support
6078 * keyedit.c (show_key_with_all_names): Fix error message
6079 (preferences are userid/selfsig and not key specific).
6081 2002-08-30 Werner Koch <wk@gnupg.org>
6083 * pkclist.c (do_we_trust_pre): Changed the wording of a warning.
6085 * encode.c (encode_simple,encode_crypt): Use new style CTB for
6086 compressssed packets when using MDC. We need to do this so that
6087 concatenated messages are properly decrypted. Old style
6088 compression assumes that it is the last packet; given that we
6089 can't determine the length in advance, the uncompressor does not
6090 know where to start. Actually we should use the new CTB always
6091 but this would break PGP 2 compatibility.
6093 * parse-packet.c (parse): Special treatment for new style CTB
6096 * build-packet.c (do_mdc): Removed. Was not used.
6097 (do_encrypted_mdc): Count in the version number and the MDC packet.
6099 2002-08-28 David Shaw <dshaw@jabberwocky.com>
6101 * sig-check.c (do_check_messages, do_check): Show keyid in error
6104 * keyserver.c (print_keyinfo): More readable key listings for
6105 --search-keys responses.
6107 2002-08-26 David Shaw <dshaw@jabberwocky.com>
6109 * hkp.c (parse_hkp_index, dehtmlize): Move HTML functionality into
6110 new "dehtmlize" function. Remove HTML before trying to parse each
6111 line from the keyserver. If the keyserver provides key type
6112 information in the listing, use it.
6114 2002-08-23 David Shaw <dshaw@jabberwocky.com>
6116 * sig-check.c (do_check, do_check_messages): Emit the usual sig
6117 warnings even for cached sigs. This also serves to protect
6118 against missing a sig expiring while cached.
6120 * getkey.c (merge_selfsigs_main): Don't check UID self-sigs twice.
6122 2002-08-22 David Shaw <dshaw@jabberwocky.com>
6124 * import.c (clean_subkeys, chk_self_sigs): Merge clean_subkeys
6125 into chk_self_sigs. This improves efficiency as the same
6126 signatures are not checked multiple times. Clarify when a subkey
6127 is revoked (any revocation signature, even if it is dated before
6128 the binding signature).
6130 * getkey.c (merge_selfsigs_subkey): Subkey revocation comments.
6132 * keylist.c (list_one): Stats are only for public key listings.
6134 * g10.c (main), options.skel: Default should be include-revoked
6135 for keyserver operations.
6137 2002-08-21 Werner Koch <wk@gnupg.org>
6139 * import.c (import_print_stats): Print new non_imported counter
6140 which is currently not used because we terminate on errors.
6142 2002-08-20 David Shaw <dshaw@jabberwocky.com>
6144 * options.skel: Document no-include-attributes for
6147 * keylist.c, keyedit.c, keyserver.c, sign.c: Some TODOs and
6150 * export.c (do_export_stream): Fix noop bug in exporting sensitive
6153 * pkclist.c (do_edit_ownertrust): Comment out the option for
6154 showing trust paths until it can be implemented.
6156 2002-08-19 Werner Koch <wk@gnupg.org>
6158 * getkey.c (get_user_id_native): Renamed to ..
6159 (get_user_id_printable): this. Filter out all dangerous
6160 characters. Checked all usages.
6161 (get_user_id_string_native): Renamed to..
6162 (get_user_id_string_printable): this. Filter out all dangerous
6163 characters. Checked all usages.
6164 * keyedit.c (show_basic_key_info): New.
6165 * keylist.c (print_fingerprint): New mode 3.
6166 * import.c (import_one): Use new function to display the user ID.
6168 2002-08-16 Timo Schulz <ts@winpt.org>
6170 * g10.c (main): Enable opt.interactive.
6172 * import.c (import_one): Ask the user if the key shall be
6173 imported when the interactive mode is used. Useful to extract
6174 selected keys from a file.
6176 2002-08-16 Werner Koch <wk@gnupg.org>
6178 * seckey-cert.c: Workaround to allow decryption of v3 keys created
6179 with a bug in the mpi_get_secure_buffer.
6181 2002-08-14 David Shaw <dshaw@jabberwocky.com>
6183 * hkp.c (parse_hkp_index): Properly handle really large keys
6184 (5 digit key length) in HKP searches.
6186 2002-08-13 David Shaw <dshaw@jabberwocky.com>
6188 * encode.c (encode_simple): Fix problem with using compression
6189 algo 2 and symmetric compressed files.
6191 * encode.c (encode_simple, encode_crypt): If we are not using a
6192 MDC, compress even if a file is already compressed. This is to
6193 help against the chosen ciphertext attack.
6195 * pkclist.c (select_algo_from_prefs): Fix requested algorithm bug
6196 so the request succeeds even if the requested algorithm is not the
6199 * cipher.c (write_header), encode.c (use_mdc, encode_simple,
6200 encode_crypt, encrypt_filter), g10.c (main): Be more eager to use
6201 a MDC. We use a MDC if the keys directly support it, if the keys
6202 list AES (any) or TWOFISH anywhere in the prefs, or if the cipher
6203 chosen does not have a 64 bit blocksize.
6205 2002-08-08 David Shaw <dshaw@jabberwocky.com>
6207 * options.skel: Some language tweaks, and remove the
6208 load-extension section for random gatherers.
6210 * keyring.c (create_tmp_file, rename_tmp_file): Create tmp files
6211 with user-only permissions, but restore the original permissions
6212 if the user has something special set.
6214 * openfile.c (copy_options_file): Create new options file
6215 (gpg.conf) with user-only permissions.
6217 * keydb.c (keydb_add_resource): Create new keyrings with user-only
6220 * tdbio.c (tdbio_set_dbname): Create new trustdbs with user-only
6223 2002-08-07 David Shaw <dshaw@jabberwocky.com>
6225 * sig-check.c (signature_check2): Sanity check that the md has a
6226 context for the hash that the sig is expecting. This can happen
6227 if a onepass sig header does not match the actual sig, and also if
6228 the clearsign "Hash:" header is missing or does not match the
6231 * keyedit.c (menu_revsig): Properly show a uid is revoked without
6232 restarting gpg. This is Debian bug 124219, though their supplied
6233 patch will not do the right thing.
6235 * main.h, tdbio.c (tdbio_set_dbname), misc.c (removed
6236 check_permissions), keydb.c (keydb_add_resource), g10.c (main,
6237 check_permissions): Significant reworking of the permission check
6238 mechanism. The new behavior is to check everything in the homedir
6239 by checking the homedir itself. If the user wants to put
6240 (possibly shared) keyrings outside the homedir, they are not
6241 checked. The options file and any extension files are checked
6242 wherever they are, as well as their enclosing directories. This
6243 is Debian bug 147760.
6245 2002-08-06 Stefan Bellon <sbellon@sbellon.de>
6247 * g10.c (main): Use of EXTSEP_S in new gpg.conf string.
6248 * openfile.c (copy_options_file): Ditto.
6250 2002-08-06 David Shaw <dshaw@jabberwocky.com>
6252 * options.h, g10.c (main), mainproc.c (proc_encrypted):
6253 --ignore-mdc-error option to turn a MDC check error into a
6256 * encode.c (encode_crypt), g10.c (main), sign.c (sign_file,
6257 clearsign_file): Use the same --pgpX warning string everywhere to
6260 * encode.c (write_pubkey_enc_from_list): Warn when using
6261 --throw-keyid with --pgpX. Noted by Vedaal Nistar.
6263 * revoke.c (export_minimal_pk, gen_desig_revoke, gen_revoke):
6264 Export a minimal pk along with the revocation cert when in --pgpX
6265 mode so that PGP can import it.
6267 2002-08-06 Werner Koch <wk@gnupg.org>
6269 * options.skel: Changed comments.
6271 * g10.c (main): Try to use "gpg.conf" as default option file.
6272 * openfile.c (copy_options_file): Changed name of created file.
6274 2002-08-02 Werner Koch <wk@gnupg.org>
6276 * Makefile.am (LDFLAGS): Removed DYNLINK_LDFLAGS.
6278 2002-07-30 David Shaw <dshaw@jabberwocky.com>
6280 * options.h, g10.c (main), mainproc.c (proc_encrypted): Return a
6281 decryption failed error if a MDC does not verify. Warn if a MDC
6282 is not present (can disable via --no-mdc-warning).
6284 * exec.c (exec_write), g10.c (main), keyserver.c
6285 (keyserver_spawn): Use new DISABLE_KEYSERVER_PATH rather than
6288 2002-07-28 David Shaw <dshaw@jabberwocky.com>
6290 * sig-check.c (do_check): Properly validate v4 sigs with no hashed
6293 2002-07-25 Werner Koch <wk@gnupg.org>
6295 * delkey.c (do_delete_key): Always allow to delete a key in batch mode
6296 when specified by fingerprint. Suggested by Enzo Michelangeli.
6298 2002-07-25 David Shaw <dshaw@jabberwocky.com>
6300 * keyedit.c (menu_revsig): Change "revsig" to honor selected uids
6301 so the user can revoke sigs from particular uids only.
6303 * keylist.c (list_keyblock_print): Don't display expired uids in
6304 --list-keys unless -v and not --list-sigs (just like revoked
6307 * exec.c, export.c, import.c, keyedit.c, keyserver.c, misc.c:
6308 "Warning" -> "WARNING"
6310 2002-07-24 David Shaw <dshaw@jabberwocky.com>
6312 * main.h, import.c (parse_import_options, fix_hkp_corruption,
6313 import_one, delete_inv_parts), g10.c (main): New import-option
6314 "repair-hkp-subkey-bug", which repairs as much as possible the HKP
6315 mangling multiple subkeys bug. It is on by default for keyserver
6316 receives, and off by default for regular --import.
6318 * main.h, import.c (import, import_one, delete_inv_parts), hkp.c
6319 (hkp_ask_import), keyserver.c (keyserver_spawn): Use keyserver
6320 import options when doing keyserver receives.
6322 * options.h, exec.h, exec.c (set_exec_path, exec_write), g10.c
6323 (main), keyserver.c (keyserver_spawn): If the user does not use
6324 "exec-path", completely replace $PATH with GNUPG_LIBEXECDIR before
6325 calling the keyserver helper. If the user does use "exec-path",
6326 append GNUPG_LIBEXECDIR after the specified path.
6328 2002-07-23 David Shaw <dshaw@jabberwocky.com>
6330 * import.c (parse_import_options), export.c
6331 (parse_export_options): Fix offset problem with reversed ("no-")
6334 * import.c (delete_inv_parts): Discard subkey signatures (0x18 and
6335 0x28) if found in the userid section of the key.
6337 * sig-check.c (signature_check2): Signatures made by invalid
6338 subkeys (bad/missing binding sig) are also invalid.
6340 * keylist.c (print_fingerprint): Show the primary as well as the
6341 secondary key fingerprint in modes 1 & 2.
6343 2002-07-22 David Shaw <dshaw@jabberwocky.com>
6345 * options.h, main.h, g10.c (main), import.c
6346 (parse_import_options, delete_inv_parts), keyserver.c
6347 (parse_keyserver_options): add new --import-options option. The
6348 only current flag is "allow-local-sigs".
6350 * g10.c (main): Don't disable MDC in pgp7 mode.
6352 * options.h, g10.c (main), keyserver.c (parse_keyserver_options):
6353 Remove old keyserver-option include-attributes now that there is
6354 an export-option for the same thing.
6356 * options.h, main.h, export.c (parse_export_options,
6357 do_export_stream), g10.c (main): add new --export-options option.
6358 Current flags are "include-non-rfc", "include-local-sigs",
6359 "include-attributes", and "include-sensitive-revkeys".
6361 * options.h, hkp.c (hkp_export), keyserver.c
6362 (parse_keyserver_options, keyserver_spawn): try passing unknown
6363 keyserver options to export options, and if successful, use them
6364 when doing a keyserver --send-key.
6366 * build-packet.c (build_sig_subpkt): We do not generate
6367 SIGSUBPKT_PRIV_VERIFY_CACHE anymore.
6369 * revoke.c (gen_desig_revoke): Lots more comments about including
6370 sensitive revkeys along with the revocation sig itself.
6372 * keyserver.c (parse_keyserver_options): Simpler implementation
6373 that can skip one pass over the options.
6375 2002-07-18 David Shaw <dshaw@jabberwocky.com>
6377 * keyedit.c (keyedit_menu, menu_addrevoker): Allow specifying
6378 "sensitive" as an argument to an addrevoker command. This sets
6379 the 0x40 sensitive revoker flag.
6381 * revoke.c (gen_desig_revoke): When generating a designated
6382 revocation, include the direct key sig that contains the
6383 designated revoker subpacket. This allows sensitive designated
6384 revocation subpackets to be exported. Also indicate which
6385 revokers are sensitive in the first place.
6387 2002-07-17 David Shaw <dshaw@jabberwocky.com>
6389 * keyedit.c (show_key_with_all_names_colon): The 0x40 class bit in
6390 a designated revoker means "sensitive", not "local". It's
6391 exportable under the right circumstances.
6393 * main.h, options.h, export.c (do_export_stream), g10.c (main),
6394 hkp.c (hkp_export), keyserver.c (keyserver_spawn: Add a flag to
6395 skip attribute packets and their signatures while exporting. This
6396 is to accomodate keyservers (pksd again) that choke on attributes.
6397 Use keyserver-option "include-attributes" to control it. This
6398 defaults to ON (i.e. don't skip).
6400 2002-07-09 David Shaw <dshaw@jabberwocky.com>
6402 * options.h, keyserver.c (parse_keyserver_uri, keyserver_spawn,
6403 keyserver_work), hkp.c (hkp_ask_import, hkp_export, hkp_search):
6404 Use a much more strict reading of RFC-2396 for the keyserver URIs.
6405 Specifically, don't try and be smart about checking the value of
6406 ":port" so long as it is all digits, and properly handle opaque
6407 data (those scheme specific parts that do not start with "//").
6409 2002-07-04 David Shaw <dshaw@jabberwocky.com>
6411 * photoid.c (get_default_photo_command, show_photos): Honor
6412 FIXED_PHOTO_VIEWER and DISABLE_PHOTO_VIEWER.
6414 * mainproc.c (check_sig_and_print): Use --show-photos to show
6415 photos when verifying a sig made by a key with a photo.
6417 * keyserver.c (parse_keyserver_uri): Properly parse a URI with no
6418 :port section and an empty file path, but with a terminating '/'.
6419 (keyserver_work): Honor DISABLE_KEYSERVER_HELPERS.
6421 * hkp.c (hkp_ask_import): Display keyserver URI as a URI, but only
6424 * exec.c, g10.c: USE_EXEC_PATH -> FIXED_EXEC_PATH
6426 2002-07-03 David Shaw <dshaw@jabberwocky.com>
6428 * exec.h, exec.c (set_exec_path, exec_write), g10.c (main): If
6429 USE_EXEC_PATH is defined at compile time, use it to lock the
6430 exec-path and not allow the user to change it.
6432 2002-07-02 David Shaw <dshaw@jabberwocky.com>
6434 * options.h, g10.c (main), keyserver.c (keyserver_refresh):
6435 Maintain and use the original keyserver URI for cosmetics rather
6436 than trying to recreate it when needed.
6438 * mainproc.c (check_sig_and_print): Properly disregard expired
6439 uids. Make sure that the first uid listed is a real uid and not
6440 an attribute (attributes should only be listed in the "aka"
6441 section). When there are no valid textual userids, try for an
6442 invalid textual userid before using any attribute uid.
6444 2002-07-01 David Shaw <dshaw@jabberwocky.com>
6446 * options.skel: Fix a few typos, clarify "group", and remove
6447 sample photo viewers for Win32 since they are the defaults now.
6449 * parse-packet.c (make_attribute_uidname), keylist.c
6450 (dump_attribs): Fix two typecast warnings.
6452 * packet.h, build-packet.c (build_attribute_subpkt), exec.c
6453 (expand_args), mkdtemp.c (mkdtemp), photoid.c
6454 (parse_image_header): Fix some signedness compiler warnings.
6456 2002-07-01 Werner Koch <wk@gnupg.org>
6458 * photoid.c (get_default_photo_command): Also use __MINGW32__
6459 instead of HAVE_DOSISH_SYSTEM.
6461 * encode.c (encode_symmetric): Do not use the new encryption code.
6463 2002-06-30 Werner Koch <wk@gnupg.org>
6465 * photoid.c: Use __MINGW32__ to include windows because
6466 HAVE_DOSISH_SYSTEM is also set for OS/2 and plain DOS. Provide
6467 constant missing in older mingw installations.
6469 2002-06-21 Stefan Bellon <sbellon@sbellon.de>
6471 * g10.c [__riscos__]: Moved RISC OS specific stuff to util/riscos.c
6474 * gpgv.c [__riscos__]: Likewise.
6476 2002-06-20 David Shaw <dshaw@jabberwocky.com>
6478 * keydb.h, pkclist.c (select_algo_from_prefs): Allow passing a
6479 suggested algorithm which will be used if available.
6481 * encode.c (encode_crypt, encrypt_filter), sign.c (sign_file): Use
6482 new select_algo_from_prefs feature to check if forcing an
6483 algorithm would violate the recipient preferences.
6485 * photoid.c (get_default_photo_command, show_photos): Use
6486 different default viewers on different platforms. Currently we
6487 have Win 9x, Win NT (2k, xp), Mac OSX, RISC OS, and "everybody
6488 else". These are #ifdefs as much as possible to avoid clutter.
6490 * g10.c (strusage, build_list), keyedit.c (show_prefs), main.h,
6491 misc.c (compress_algo_to_string, check_compress_algo), pkclist.c
6492 (algo_available), keygen.c (keygen_set_std_prefs): New
6493 algo_to_string and check functions for compress algorithms.
6495 2002-06-20 Werner Koch <wk@gnupg.org>
6497 * misc.c (setsysinfo): Removed a #warning for Alpha's uniligedn
6498 trap disabling - it is quite possible that this is a debug relict.
6500 2002-06-20 Stefan Bellon <sbellon@sbellon.de>
6502 * g10.c [__riscos__]: Added image file system feature.
6504 * gpgv.c [__riscos__]: Added image file system feature.
6506 * photoid.c (show_photos) [__riscos__]: Set RISC OS filetype of
6507 photo id according to MIME type.
6509 2002-06-19 David Shaw <dshaw@jabberwocky.com>
6511 * hkp.c (parse_hkp_index): Don't leak memory when failing out of a
6514 * g10.c (add_notation_data): Relax slightly the rules as to what
6515 can go into a notation name - 2440 allows "@", for example.
6517 2002-06-17 David Shaw <dshaw@jabberwocky.com>
6519 * import.c (clean_subkeys, import_one): Only allow at most 1
6520 binding sig and at most 1 revocation sig on a subkey, as per
6523 * hkp.c (parse_hkp_index, hkp_search): Error if the keyserver
6524 returns an unparseable HKP response.
6526 2002-06-15 David Shaw <dshaw@jabberwocky.com>
6528 * keyedit.c (show_key_with_all_names), keylist.c
6529 (list_keyblock_print): Show "[expired]" before expired uids.
6531 * keyedit.c (show_key_with_all_names_colon), mainproc.c
6532 (list_node), keylist.c (list_keyblock_colon): Show flag 'e' for
6533 expired user ids. Use "uat" for user attribute packets instead of
6534 "uid". Also use '<count> <length>' rather than the fake user id
6535 string on attributes.
6537 * keygen.c (keygen_add_revkey): Remove unused code.
6539 * misc.c (check_permissions): Check directory permissions
6540 properly - they are not special files.
6542 * pkclist.c (expand_id, expand_group, build_pk_list): When
6543 expanding groups before building a pk list, inherit flags from the
6544 original pre-expanded string.
6546 * pubkey-enc.c (is_algo_in_prefs): Don't use prefs from expired
6549 2002-06-14 David Shaw <dshaw@jabberwocky.com>
6551 * free-packet.c (copy_signature): Properly copy a signature that
6552 carries a revocation key on it.
6554 * pkclist.c (expand_id, expand_group, build_pk_list): Groups now
6555 work properly when used in the "Enter the user ID" prompt.
6557 2002-06-14 David Shaw <dshaw@jabberwocky.com>
6559 * keyedit.c (show_key_with_all_names): Display warning if a user
6560 tries to show prefs on a v3 key with a v3 selfsig.
6562 * kbnode.c (dump_kbnode): Show if a uid is expired.
6564 * import.c (merge_blocks, import_revoke_cert): Show user ID
6565 receiving a revocation certificate.
6567 * free-packet.c (cmp_user_ids): Properly compare attribute ids.
6569 * pkclist.c (expand_groups): Maintain the strlist flags while
6570 expanding. Members of an expansion inherit their flags from the
6573 * options.h, cipher.c (write_header), g10.c (main), keygen.c
6574 (keygen_set_std_prefs): remove the personal_mdc flag. It no
6575 longer serves a purpose now that the personal preference lists are
6576 split into cipher/digest/zip.
6578 2002-06-14 Timo Schulz <ts@winpt.org>
6580 * skclist.c (is_insecure): Implemented.
6582 2002-06-12 David Shaw <dshaw@jabberwocky.com>
6584 * keyserver.c (keyserver_spawn): Properly handle PROGRAM responses
6585 when they have a CRLF ending. Noted by Keith Ray.
6587 * keyserver.c (keyserver_spawn): Handle CRLF endings from
6588 keyserver helpers. Also don't leak the last line worth of memory
6589 from the keyserver response.
6591 * main.h, misc.c (deprecated_warning): New function to warn about
6592 deprecated options and commands.
6594 * g10.c (main), keyserver-internal.h, keyserver.c
6595 (parse_keyserver_uri): Use new deprecated function to warn about
6596 honor-http-proxy, auto-key-retrieve, and x-broken-hkp.
6598 2002-06-11 David Shaw <dshaw@jabberwocky.com>
6600 * Makefile.am: link gpg with NETLIBS for the built-in HKP access.
6602 2002-06-10 David Shaw <dshaw@jabberwocky.com>
6604 * options.h, keyserver.c (keyserver_opts), g10.c (main): New
6605 keyserver option "include-subkeys". This feature already existed,
6606 but now can be turned off. It defaults to on.
6608 * options.h, keyserver.c (parse_keyserver_options,
6609 keyserver_spawn): There are now enough options to justify making a
6610 structure for the keyserver options rather than a page of
6611 if-then-else-if-then-etc.
6613 * getkey.c (merge_keys_and_selfsig, merge_selfsigs_main): Fix bug
6614 in calculating key expiration dates.
6616 2002-06-09 David Shaw <dshaw@jabberwocky.com>
6618 * keydb.h, getkey.c (get_user_id_native), import.c (import_one):
6619 Display user ID while importing a key. Note this applies to both
6620 --import and keyserver --recv-keys.
6622 * exec.c (exec_finish): Log unnatural exit (core dump, killed
6623 manually, etc) for fork/exec/pipe child processes.
6625 2002-06-08 Timo Schulz <ts@winpt.org>
6627 * encode.c (encode_symmetric): Disable the compat flag
6628 when the expert mode is enabled.
6630 2002-06-07 David Shaw <dshaw@jabberwocky.com>
6632 * options.skel, options.h, main.h, keydb.h, pkclist.c
6633 (build_pk_list, expand_groups), g10.c (main, add_group): Add new
6634 "group" command to allow one name to expand into multiple keys.
6635 For simplicity, and to avoid potential loops, we only expand once
6636 - you can't make an alias that points to an alias.
6638 * main.h, g10.c (main), keygen.c (build_personal_digest_list):
6639 Simplify the default digest list - there is really no need for the
6640 other hashes since they will never be used after SHA-1 in the
6643 * options.skel, options.h, g10.c (main), hkp.c (hkp_ask_import,
6644 hkp_export, hkp_search), keyserver.c (parse_keyserver_options,
6645 parse_keyserver_uri, keyserver_work, keyserver_refresh): Make the
6646 "x-broken-hkp" keyserver scheme into keyserver-option
6647 "broken-http-proxy". Move honor_http_proxy into
6648 keyserver_options. Canonicalize the three variations of "hkp",
6649 "x-hkp", and "x-broken-hkp" into "hkp".
6651 2002-06-07 Stefan Bellon <sbellon@sbellon.de>
6653 * g10.c [__riscos__]: Added --attribute-file to do the same as
6654 --attribute-fd, but with a filename not a fd as argument.
6655 Added magic symbol for RISC OS to use different memory management.
6657 * gpgv.c [__riscos__]: Added magic symbol for RISC OS to use
6658 different memory management.
6660 2002-06-06 David Shaw <dshaw@jabberwocky.com>
6662 * main.h, g10.c (main), keygen.c (build_personal_digest_list): Put
6663 in a default digest preference list consisting of SHA-1, followed
6664 by every other installed digest except MD5. Note this is the same
6665 as having no digest preference at all except for SHA-1 being
6668 * options.h, g10.c (main), keygen.c (keygen_set_std_prefs),
6669 pkclist.c (select_algo_from_prefs): Split
6670 --personal-preference-list into three:
6671 --personal-{cipher|digest|compress}-preferences. This allows a
6672 user to set one without affecting another (i.e. setting only a
6673 digest pref doesn't imply an empty cipher pref).
6675 * exec.c (exec_read): This is a safer way of guessing the return
6676 value of system(). Noted by Stefan Bellon.
6678 2002-06-05 David Shaw <dshaw@jabberwocky.com>
6680 * hkp.c (parse_hkp_index): Be more robust with keyservers
6681 returning very unparseable responses.
6683 * exec.c (exec_read): Catch and display an error when the remote
6684 process exits unnaturally (i.e. segfault) so the user knows what
6685 happened. Also fix exec_write stub which has a different number
6688 2002-06-05 Timo Schulz <ts@winpt.org>
6690 * encode.c (encode_simple): Ignore the new mode for RFC1991.
6691 * mainproc.c (symkey_decrypt_sesskey): Better check for weird
6694 2002-06-05 Timo Schulz <ts@winpt.org>
6696 * encode.c (encode_sesskey): New.
6697 (encode_simple): Use it here. But by default we use the compat
6698 mode which supress to generate encrypted session keys.
6700 2002-06-05 Timo Schulz <ts@winpt.org>
6702 * mainproc.c (symkey_decrypt_sesskey): New.
6703 (proc_symkey_enc): Support for encrypted session keys.
6705 2002-06-04 David Shaw <dshaw@jabberwocky.com>
6707 * sign.c (hash_for, sign_file): When encrypting and signing at the
6708 same time, consult the various hash prefs to pick a hash algorithm
6709 to use. Pass in a 160-bit hint if any of the signing keys are
6712 * keydb.h, pkclist.c (select_algo_from_prefs, algo_available):
6713 Pass a "hints" opaque pointer in to let the caller give hints as
6714 to what algorithms would be acceptable. The only current hint is
6715 for PREFTYPE_HASH to require a 160-bit hash for DSA. Change all
6716 callers in encode.c (encode_crypt, encrypt_filter) and sign.c
6717 (sign_file). If we settle on MD5 as the best algorithm based
6718 solely on recepient keys and SHA1 is also a possibility, use SHA1
6719 unless the user intentionally chose MD5. This is as per 2440:13.
6721 * exec.c (make_tempdir): Fix duplicated filename problem.
6723 2002-06-03 David Shaw <dshaw@jabberwocky.com>
6725 * packet.h, parse-packet.c (enum_sig_subpkt): Report back from
6726 enum_sig_subpkt when a subpacket is critical and change all
6727 callers in keylist.c (show_policy_url, show_notation), mainproc.c
6728 (print_notation_data), and pkclist.c (do_show_revocation_reason).
6730 * keylist.c (show_policy_url, show_notation): Display if the
6731 policy or notation is critical.
6733 2002-06-03 David Shaw <dshaw@jabberwocky.com>
6735 * main.h, g10.c (main), keylist.c (dump_attribs, set_attrib_fd,
6736 list_keyblock_print, list_keyblock_colon), status.h, status.c
6737 (get_status_string): New --attribute-fd feature to dump the
6738 contents of attribute subpackets for frontends. If --status-fd is
6739 also used, then a new status tag ATTRIBUTE is provided for each
6742 * packet.h, getkey.c (fixup_uidnode, merge_selfsigs_main,
6743 merge_selfsigs_subkey), parse-packet.c (setup_user_id): Keep track
6744 of the expiration time of a user ID, and while we're at it, use
6745 the expired flag from the selfsig rather than reparsing the
6746 SIG_EXPIRE subpacket.
6748 * photoid.c (generate_photo_id): When adding a new photo ID,
6749 showing the photo for confirmation is not safe when noninteractive
6750 since the "user" may not be able to dismiss a viewer window.
6751 Noted by Timo Schulz.
6753 2002-06-03 David Shaw <dshaw@jabberwocky.com>
6755 * options.skel: Sample photo viewers for Win32.
6757 * misc.c (pct_expando): Use the seckey for %k/%K if the pubkey is
6760 * photoid.h, photoid.c (show_photos): Include the seckey in case a
6761 user tries to view a photo on a secret key, and change all callers
6762 in keyedit.c (menu_showphoto), keylist.c (list_keyblock_print),
6763 and photoid.c (generate_photo_id).
6765 2002-06-02 David Shaw <dshaw@jabberwocky.com>
6767 * photoid.c (show_photos): Work properly when not called with a
6770 2002-05-31 David Shaw <dshaw@jabberwocky.com>
6772 * sign.c (mk_notation_and_policy): Free unneeded buffer.
6774 * hkp.c (parse_hkp_index): Properly handle the '&' character
6775 (i.e. "&") in HKP responses.
6777 * getkey.c (merge_selfsigs_main): Fix reversed expiration time
6778 check with self-sigs.
6780 * keyedit.c (sign_uids): When making a new self-sig on a v3 key,
6781 make a v3 self-sig unless it is currently a v3 self-sig being
6784 2002-05-31 Timo Schulz <ts@winpt.org>
6786 * pkclist.c (do_show_revocation_reason): Don't use capital
6787 letters for non-interactive output.
6788 (show_revocation_reason): Now it is global.
6789 * pubkey-enc.c (get_it): Show if the key has been revoked.
6791 2002-05-30 David Shaw <dshaw@jabberwocky.com>
6793 * sign.c (write_signature_packets, sign_file, clearsign_file,
6794 sign_symencrypt_file): Make a v4 signature if a policy URL or
6795 notation is set, unless v3 sigs are forced via rfc1991 or
6796 force-v3-sigs. Also remove some doubled code and clarify an error
6797 message (we don't sign in PGP2 mode - just detach-sign).
6799 * parse-packet.c (parse_one_sig_subpkt): Add KS_FLAGS to the "any
6802 2002-05-29 David Shaw <dshaw@jabberwocky.com>
6804 * keygen.c (keygen_set_std_prefs, add_feature_mdc): Use "mdc" and
6805 "no-mdc" in the prefs string to allow switching on and off the MDC
6806 feature. This is needed to properly export a key from GnuPG for
6807 use on PGP which does not support MDC - without this, MDC-capable
6808 implementations will still try and generate MDCs which will break
6811 * keygen.c (keygen_get_std_prefs): Show "[mdc]" in prefs string if
6814 * options.h, g10.c (main), cipher.c (write_header), keygen.c
6815 (keygen_set_std_prefs): For consistency, allow the user to specify
6816 mdc/no-mdc in the --personal-preference-list. If disabled, it
6817 acts just like --disable-mdc.
6819 2002-05-29 David Shaw <dshaw@jabberwocky.com>
6821 * options.h, exec.c: Add some debugging info, using the 1024 debug
6824 * exec.c (win_system): New system()-like function for win32 that
6825 does not return until the child process terminates. Of course,
6826 this doesn't help if the process itself exits before it is
6829 2002-05-29 Werner Koch <wk@gnupg.org>
6831 * encode.c (encode_simple): Intialize PKT when --no-literal is used.
6833 * keyedit.c (show_key_with_all_names_colon): Renamed the record
6834 for revocation keys to "rvk".
6836 2002-05-27 Werner Koch <wk@gnupg.org>
6838 * keyedit.c (show_key_with_all_names_colon): New.
6839 (show_key_with_all_names): Divert to new function when required.
6840 Sanitize printing of revoker name.
6842 2002-05-27 David Shaw <dshaw@jabberwocky.com>
6844 * build-packet.c (build_sig_subpkt): Handle setting sig flags for
6845 certain subpacket types (notation, policy url, exportable,
6846 revocable). keyedit.c (sign_mk_attrib): Flags no longer need to
6849 * packet.h, parse-packet.c (parse_one_sig_subpkt), build-packet.c
6850 (build_sig_subpkt): Call parse_one_sig_subpkt to sanity check
6851 buffer lengths before building a sig subpacket.
6853 2002-05-26 David Shaw <dshaw@jabberwocky.com>
6855 * sign.c (mk_notation_and_policy): Include secret key to enable %s
6856 expandos, and pass notations through pct_expando as well.
6858 * main.h, misc.c (pct_expando): Add %s and %S expandos for
6861 2002-05-25 David Shaw <dshaw@jabberwocky.com>
6863 * g10.c (strusage, build_list): Add compress algorithms to
6864 --version list. Show algorithm numbers when --verbose --version
6867 2002-05-22 David Shaw <dshaw@jabberwocky.com>
6869 * options.h, main.h, keygen.c (keygen_set_set_prefs,
6870 keygen_get_std_prefs, keygen_upd_std_prefs), keyedit.c
6871 (keyedit_menu), g10.c (main), pkclist.c (select_algo_from_prefs):
6872 Add --personal-preference-list which allows the user to factor in
6873 their own preferred algorithms when the preference lists are
6874 consulted. Obviously, this does not let the user violate a
6875 recepient's preferences (and the RFC) - this only influences the
6876 ranking of the agreed-on (and available) algorithms from the
6877 recepients. Suggested by David Hollenberg.
6879 * options.h, keygen.c (keygen_set_std_prefs), g10.c (main): Rename
6880 --preference-list to --default-preference-list (as that is what it
6881 really is), and make it a true default in that if the user selects
6882 "default" they get this list and not the compiled-in list.
6884 2002-05-22 Werner Koch <wk@gnupg.org>
6886 * g10.c (main): Add missing LF in a info printout and made it
6887 translatable. Noted by Michael Tokarev.
6889 2002-05-21 Werner Koch <wk@gnupg.org>
6891 * g10.c (main): Removed the undef of USE_SHM_COPROCESSING which
6892 was erroneously introduced on 2002-01-09.
6894 * signal.c (got_fatal_signal): Don't write the Nul to stderr.
6895 Reported by David Hollenberg.
6897 2002-05-18 David Shaw <dshaw@jabberwocky.com>
6899 * main.h, g10.c (main), revoke.c (gen_desig_revoke): Generate a
6900 designated revocation via --desig-revoke
6902 * keyedit.c (keyedit_menu, menu_addrevoker): New "addrevoker"
6903 command to add a designated revoker to a key.
6905 2002-05-17 David Shaw <dshaw@jabberwocky.com>
6907 * gpgv.c: Add stub for get_ownertrust().
6909 * g10.c (main): --allow-freeform-uid should be implied by
6910 OpenPGP. Add --no-allow-freeform-uid.
6912 * keyedit.c (sign_uids): Issue a warning when signing a
6915 * getkey.c (merge_selfsigs_main): If a key has no selfsigs, and
6916 allow-non-selfsigned-uid is not set, still try and make the key
6917 valid by checking all uids for a signature from an ultimately
6920 2002-05-16 David Shaw <dshaw@jabberwocky.com>
6922 * main.h, keygen.c (keygen_add_revkey): Add revocation key
6923 subpackets to a signature (callable by
6924 make_keysig_packet). (write_direct_sig): Write a 1F direct key
6925 signature. (parse_revocation_key): Parse a string in
6926 algo:fpr:sensitive format into a revocation
6927 key. (get_parameter_revkey, do_generate_keypair): Call above
6928 functions when prompted from a batch key generation file.
6930 * build-packet.c (build_sig_subpkt): Allow multiple revocation key
6931 subpackets in a single sig.
6933 * keydb.h, getkey.c (get_seckey_byfprint): Same as
6934 get_pubkey_byfprint, except for secret keys. We only know the
6935 fingerprint of a revocation key, so this is needed to retrieve the
6936 secret key needed to issue a revokation.
6938 * packet.h, parse-packet.c (parse_signature, parse_revkeys): Split
6939 revkey parsing off into a new function that can be used to reparse
6940 after manipulating the revkey list.
6942 * sign.c (make_keysig_packet): Ability to make 1F direct key
6945 2002-05-15 David Shaw <dshaw@jabberwocky.com>
6947 * options.skel: keyserver.pgp.com is gone, so list pgp.surfnet.nl
6948 as a sample LDAP server instead.
6950 * getkey.c (merge_selfsigs_main): Properly handle multiple
6951 revocation keys in a single packet. Properly handle revocation
6952 keys that are in out-of-order packets. Remove duplicates in
6953 revocation key list.
6955 2002-05-14 Timo Schulz <ts@winpt.org>
6957 * exec.c (make_tempdir) [MINGW32]: Added missing '\'.
6959 2002-05-14 Stefan Bellon <sbellon@sbellon.de>
6961 * exec.c (make_tempdir): Make use of EXTSEP_S instead of hardcoded
6962 dot as extension separator.
6964 2002-05-13 David Shaw <dshaw@jabberwocky.com>
6966 * photoid.c (show_photos): Use the long keyid as the filename for
6967 the photo. Use the short keyid as the filename on 8.3 systems.
6969 * exec.h, exec.c (make_tempdir, exec_write, exec_finish): Allow
6970 caller to specify filename. This should make things easier on
6971 windows and macs where the file extension is required, but a whole
6972 filename is even better.
6974 * keyedit.c (show_key_with_all_names, show_prefs): Show proper
6975 prefs for a v4 key uid with no selfsig at all.
6977 * misc.c (check_permissions): Don't check permissions on
6978 non-normal files (pipes, character devices, etc.)
6980 2002-05-11 Werner Koch <wk@gnupg.org>
6982 * mainproc.c (proc_symkey_enc): Avoid segv in case the parser
6983 encountered an invalid packet.
6985 * keyserver.c (keyserver_export): Get confirmation before sending
6988 2002-05-10 Stefan Bellon <sbellon@sbellon.de>
6990 * g10.c, hkp.c, keyedit.c, keyserver.c: Replaced all occurrances
6991 of strcasecmp with ascii_strcasecmp and all occurrances of
6992 strncasecmp with ascii_memcasecmp.
6994 2002-05-10 David Shaw <dshaw@jabberwocky.com>
6996 * packet.h, getkey.c (fixup_uidnode), keyedit.c (show_prefs): Show
6997 assumed prefs for hash and compression as well as the cipher pref.
6998 Show assumed prefs if there are no prefs at all on a v4
7001 * options.h, g10.c (main), sign.c (make_keysig_packet): New
7002 --cert-digest-algo function to override the default key signing
7005 2002-05-09 David Shaw <dshaw@jabberwocky.com>
7007 * getkey.c (merge_selfsigs_main): Make sure the revocation key
7008 list starts clean as this function may be called more than once
7009 (e.g. from functions in --edit).
7011 * g10.c, encode.c (encode_crypt), sign.c (sign_file,
7012 sign_symencrypt_file): Make --compress-algo work like the
7013 documentation says. It should be like --cipher-algo and
7014 --digest-algo in that it can override the preferences calculation
7015 and impose the setting the user wants. No --compress-algo setting
7016 allows the usual preferences calculation to take place.
7018 * main.h, compress.c (compress_filter): use new
7019 DEFAULT_COMPRESS_ALGO define, and add a sanity check for compress
7022 2002-05-08 David Shaw <dshaw@jabberwocky.com>
7024 * pkclist.c (select_algo_from_prefs): There is an assumed
7025 compression preference for uncompressed data.
7027 2002-05-07 David Shaw <dshaw@jabberwocky.com>
7029 * options.h, g10.c (main), getkey.c (finish_lookup), pkclist.c
7030 (algo_available): --pgp7, identical to --pgp6 except that it
7031 permits a few algorithms that PGP 7 added: AES128, AES192, AES256,
7032 and TWOFISH. Any more of these --pgpX flags, and it'll be time to
7033 start looking at a generic --emulate-pgp X option.
7035 * export.c (do_export_stream): Warn the user when exporting a
7036 secret key if it or any of its secret subkeys are protected with
7037 SHA1 while simple_sk_checksum is set.
7039 * parse-packet.c (parse_key): Show when the SHA1 protection is
7040 used in --list-packets.
7042 * options.h, build-packet.c (do_comment), g10.c (main): Rename
7043 --no-comment as --sk-comments/--no-sk-comments (--no-comment still
7044 works) and make the default be --no-sk-comments.
7046 2002-05-07 Werner Koch <wk@gnupg.org>
7048 * keygen.c (get_parameter_algo): Never allow generation of the
7049 deprecated RSA-E or RSA-S flavors of PGP RSA.
7050 (ask_algo): Allow generation of RSA sign and encrypt in expert
7051 mode. Don't allow ElGamal S+E unless in expert mode.
7052 * helptext.c: Added entry keygen.algo.rsa_se.
7054 2002-05-07 David Shaw <dshaw@jabberwocky.com>
7056 * keyedit.c (sign_uids): If --expert is set, allow re-signing a
7057 uid to promote a v3 self-sig to a v4 one. This essentially
7058 deletes the old v3 self-sig and replaces it with a v4 one.
7060 * packet.h, parse-packet.c (parse_key), getkey.c
7061 (merge_keys_and_selfsig, merge_selfsigs_main): a v3 key with a v4
7062 self-sig must never let the v4 self-sig express a key expiration
7063 time that extends beyond the original v3 expiration time.
7065 2002-05-06 David Shaw <dshaw@jabberwocky.com>
7067 * keyedit.c (sign_uids): When making a self-signature via "sign"
7068 don't ask about sig level or expiration, and include the usual
7069 preferences and such for v4 self-sigs. (menu_set_preferences):
7070 Convert uids from UTF8 to native before printing.
7072 * keyedit.c (sign_uids): Convert uids from UTF8 to native before
7073 printing. (menu_set_primary_uid): Show error if the user tries to
7074 make a uid with a v3 self-sig primary.
7076 2002-05-05 David Shaw <dshaw@jabberwocky.com>
7078 * import.c (import_one): When merging with a key we already have,
7079 don't let a key conflict (same keyid but different key) stop the
7080 import: just skip the bad key and continue.
7082 * exec.c (make_tempdir): Under Win32, don't try environment
7083 variables for temp directories - GetTempDir tries environment
7084 variables internally, and it's better not to second-guess it in
7085 case MS adds some sort of temp dir handling to Windows at some
7088 2002-05-05 Timo Schulz <ts@winpt.org>
7090 * mainproc.c (proc_symkey_enc): Don't ask for a passphrase
7091 in the list only mode.
7093 2002-05-05 David Shaw <dshaw@jabberwocky.com>
7095 * keyserver.c (keyserver_refresh): --refresh-keys implies
7096 --merge-only so as not to import keys with keyids that match the
7097 ones being refreshed. Noted by Florian Weimer.
7099 2002-05-04 Stefan Bellon <sbellon@sbellon.de>
7101 * free-packet.c (copy_public_key): Don't call m_alloc(0), therefore
7102 added consistency check for revkey and numrefkeys.
7104 * getkey.c (check_revocation_keys): Added consistency check for
7105 revkey and numrefkeys.
7107 * keyedit.c (show_key_with_all_names): Likewise.
7109 2002-05-03 David Shaw <dshaw@jabberwocky.com>
7111 * photoid.c: Provide default image viewer for Win32.
7113 * misc.c (pct_expando): %t means extension, not name ("jpg", not
7116 * keyserver.c (keyserver_spawn), photoid.c (show_photos), exec.h,
7117 exec.c: Allow the caller to determine the temp file extension when
7118 starting an exec_write and change all callers.
7120 * keyedit.c (sign_uids): Nonrevocable key signatures cause an
7121 automatic promotion to v4.
7123 * exec.c: Provide stubs for exec_ functions when NO_EXEC is
7126 2002-05-02 David Shaw <dshaw@jabberwocky.com>
7128 * photoid.h, photoid.c (parse_image_header, image_type_to_string):
7129 Useful functions to return data about an image.
7131 * packet.h, parse-packet.c (make_attribute_uidname,
7132 parse_attribute_subpkts, parse_attribute), photoid.h, photoid.c
7133 (show_photos): Handle multiple images in a single attribute
7136 * main.h, misc.c (pct_expando), sign.c (mk_notation_and_policy),
7137 photoid.c (show_photos): Simpler expando code that does not
7138 require using compile-time string sizes. Call
7139 image_type_to_string to get image strings (i.e. "jpg",
7140 "image/jpeg"). Change all callers.
7142 * keyedit.c (menu_showphoto), keylist.c (list_keyblock_print):
7143 Allow viewing multiple images within a single attribute packet.
7145 * gpgv.c: Various stubs for link happiness.
7147 2002-05-02 David Shaw <dshaw@jabberwocky.com>
7149 * build-packet.c (build_sig_subpkt), keyedit.c (sign_uids),
7150 options.h, sign.c (mk_notation_and_policy), g10.c (main,
7151 add_notation_data, add_policy_url (new), check_policy_url
7152 (removed)): Allow multiple policy URLs on a given signature.
7153 Split "--notation-data" into "--cert-notation" and
7154 "--sig-notation" so the user can set different policies for key
7155 and data signing. For backwards compatibility, "--notation-data"
7156 sets both, as before.
7158 2002-05-02 Werner Koch <wk@gnupg.org>
7160 * options.skel: Removed the comment on trusted-keys because this
7161 option is now deprecated.
7163 2002-05-01 David Shaw <dshaw@jabberwocky.com>
7165 * keyedit.c (menu_adduid): 2440bis04 says that multiple attribute
7166 packets on a given key are legal.
7168 * keyserver.c (keyserver_refresh): the fake v3 keyid hack applies
7169 to "mailto" URLs as well since they are also served by pksd.
7171 2002-04-29 Werner Koch <wk@gnupg.org>
7173 Added a copyright year for files changed this year.
7175 2002-04-25 Werner Koch <wk@gnupg.org>
7177 * g10.c, options.h: New options --display, --ttyname, --ttytype,
7178 --lc-ctype, --lc-messages to be used with future versions of the
7180 * passphrase.c (agent_send_option,agent_send_all_options): New.
7181 (agent_open): Send options to the agent.
7183 * trustdb.c (update_ownertrust, clear_ownertrust): Do an explicit
7184 do_sync because revalidation_mark does it only if when the
7185 timestamp actually changes.
7187 2002-04-23 David Shaw <dshaw@jabberwocky.com>
7189 * main.h, keygen.c (do_generate_keypair), keylist.c
7190 (print_signature_stats, list_all, list_one, list_keyblock,
7191 list_keyblock_print, list_keyblock_colon): After generating a new
7192 key, show the key information (name, keyid, fingerprint, etc.)
7193 Also do not print uncheckable signatures (missing key..) in
7194 --check-sigs. Print statistics (N missing keys, etc.) after
7197 * keyedit.c (sign_uids): When signing a key with an expiration
7198 date on it, the "Do you want your signature to expire at the same
7199 time?" question should default to YES.
7201 2002-04-22 David Shaw <dshaw@jabberwocky.com>
7203 * parse-packet.c (parse_plaintext), packet.h, plaintext.c
7204 (handle_plaintext): Fix bug in handling literal packets with
7205 zero-length data (no data was being confused with partial body
7208 * misc.c (pct_expando), options.skel: %t means extension ("jpg").
7209 %T means MIME type ("image/jpeg").
7211 * import.c (import_one): Only trigger trust update if the keyring
7212 is actually changed.
7214 * export.c (do_export_stream): Missing a m_free.
7216 2002-04-22 Stefan Bellon <sbellon@sbellon.de>
7218 * keyid.c (expirestr_from_sk, expirestr_from_sig): Added _() to
7221 * exec.c (make_tempdir) [__riscos__]: Better placement of
7224 2002-04-20 David Shaw <dshaw@jabberwocky.com>
7226 * keygen.c (generate_subkeypair): 2440bis04 adds that creating
7227 subkeys on v3 keys is a MUST NOT.
7229 * getkey.c (finish_lookup): The --pgp6 "use the primary key"
7230 behavior should only apply while data signing and not encryption.
7231 Noted by Roger Sondermann.
7233 2002-04-19 Werner Koch <wk@gnupg.org>
7235 * keygen.c (keygen_set_std_prefs): Put back 3DES because the RFC
7236 says it is good form to do so.
7238 2002-04-19 David Shaw <dshaw@jabberwocky.com>
7240 * keyedit.c (menu_deluid): Only cause a trust update if we delete
7241 a non-revoked user id.
7243 * hkp.c (hkp_ask_import), keyserver.c (parse_keyserver_options,
7244 keyserver_spawn), options.h: Remove fast-import keyserver option
7245 (no longer meaningful).
7247 * g10.c (main), keyedit.c (sign_uids), options.h: Change
7248 --default-check-level to --default-cert-check-level as it makes
7249 clear what it operates on.
7251 * g10.c (main): --pgp6 also implies --no-ask-sig-expire.
7253 * delkey.c (do_delete_key): Comment.
7255 * keyedit.c (sign_uids, keyedit_menu, menu_deluid, menu_delsig,
7256 menu_expire, menu_revsig, menu_revkey): Only force a trustdb check
7257 if we did something that changes it.
7259 * g10.c: add "--auto-check-trustdb" to override a
7260 "--no-auto-check-trustdb"
7262 2002-04-19 Werner Koch <wk@gnupg.org>
7264 * tdbio.c (tdbio_write_nextcheck): Return a status whether the
7265 stamp was actually changed.
7266 * trustdb.c (revalidation_mark): Sync the changes. Removed the
7267 sync operation done by its callers.
7268 (get_validity): Add logic for maintaining a pending_check flag.
7269 (clear_ownertrust): New.
7271 * keyedit.c (sign_uids): Don't call revalidation_mark depending on
7273 (keyedit_menu): Call revalidation_mark after "trust".
7274 (show_key_with_all_names): Print a warning on the wrong listed key
7277 * delkey.c (do_delete_key): Clear the owenertrust information when
7278 deleting a public key.
7280 2002-04-18 Werner Koch <wk@gnupg.org>
7282 * seskey.c (encode_md_value): Print an error message if a wrong
7283 digest algorithm is used with DSA. Changed all callers to cope
7284 with a NULL return. Problem noted by Imad R. Faiad.
7286 2002-04-18 David Shaw <dshaw@jabberwocky.com>
7288 * trustdb.c (mark_usable_uid_certs): Properly handle nonrevocable
7289 signatures that can expire. In short, the only thing that can
7290 override an unexpired nonrevocable signature is another unexpired
7291 nonrevocable signature.
7293 * getkey.c (finish_lookup): Always use primary signing key for
7294 signatures when --pgp6 is on since pgp6 and 7 do not understand
7295 signatures made by signing subkeys.
7297 2002-04-18 Werner Koch <wk@gnupg.org>
7299 * trustdb.c (validate_keys): Never schedule a nextcheck into the
7301 (validate_key_list): New arg curtime use it to set next_expire.
7302 (validate_one_keyblock): Take the current time from the caller.
7303 (clear_validity, reset_unconnected_keys): New.
7304 (validate_keys): Reset all unconnected keys.
7306 * getkey.c (premerge_public_with_secret): Fixed 0x12345678! syntax
7307 for use with secret keys.
7308 (lookup): Advance the searchmode after a search FIRST.
7310 * seckey-cert.c (do_check): Always calculate the old checksum for
7311 use after unprotection.
7313 * g10.c, options.skel: New option --no-escape-from. Made
7314 --escape-from and --force-v3-sigs the default and removed them
7315 from the options skeleton.
7317 2002-04-16 Werner Koch <wk@gnupg.org>
7319 * parse-packet.c (parse_key): Support a SHA1 checksum as per
7320 draft-rfc2440-bis04.
7321 * packet.h (PKT_secret_key): Add field sha1chk.
7322 * seckey-cert.c (do_check): Check the SHA1 checksum
7323 (protect_secret_key): And create it.
7324 * build-packet.c (do_secret_key): Mark it as sha-1 protected.
7325 * g10.c, options.h: New option --simple-sk-checksum.
7327 2002-04-13 David Shaw <dshaw@jabberwocky.com>
7329 * parse-packet.c (parse_signature): Minor fix - signatures should
7330 expire at their expiration time and not one second later.
7332 * keygen.c (proc_parameter_file): Allow specifying preferences
7333 string (i.e. "s5 s2 z1 z2", etc) in a batchmode key generation
7336 * keyedit.c (keyedit_menu): Print standard error message when
7337 signing a revoked key (no new translation).
7339 * getkey.c (merge_selfsigs): Get the default set of key prefs from
7340 the real (not attribute) primary uid.
7342 2002-04-12 David Shaw <dshaw@jabberwocky.com>
7344 * pkclist.c (build_pk_list): Fix bug that allowed a key to be
7345 selected twice in batch mode if one instance was the default
7346 recipient and the other was an encrypt-to. Noted by Stefan
7349 * parse-packet.c (dump_sig_subpkt): Show data in trust and regexp
7352 * keyedit.c (keyedit_menu): Use new function real_uids_left to
7353 prevent deleting the last real (i.e. non-attribute) uid. Again,
7354 according to the attribute draft. (menu_showphoto): Make another
7355 string translatable.
7357 2002-04-11 David Shaw <dshaw@jabberwocky.com>
7359 * build-packet.c (build_sig_subpkt): Delete subpackets from both
7360 hashed and unhashed area on update. (find_subpkt): No longer
7363 * keyedit.c (sign_uids): With --pgp2 on, refuse to sign a v3 key
7364 with a v4 signature. As usual, --expert overrides. Try to tweak
7365 some strings to a closer match so they can all be translated in
7366 one place. Use different helptext keys to allow different help
7367 text for different questions.
7369 * keygen.c (keygen_upd_std_prefs): Remove preferences from both
7370 hashed and unhashed areas if they are not going to be used.
7372 2002-04-10 David Shaw <dshaw@jabberwocky.com>
7374 * misc.c (pct_expando), options.skel: Use %t to indicate type of a
7375 photo ID (in this version, it's always "jpeg"). Also tweak string
7376 expansion loop to minimize reallocs.
7378 * mainproc.c (do_check_sig): Variable type fix.
7380 * keyedit.c (menu_set_primary_uid): Differentiate between true
7381 user IDs and attribute user IDs when making one of them primary.
7382 That is, if we are making a user ID primary, we alter user IDs.
7383 If we are making an attribute packet primary, we alter attribute
7384 packets. This matches the language in the latest attribute packet
7387 * keyedit.c (sign_uids): No need for the empty string hack.
7389 * getkey.c (fixup_uidnode): Only accept preferences from the
7390 hashed segment of the self-sig.
7392 2002-04-10 Werner Koch <wk@gnupg.org>
7394 * tdbio.c (migrate_from_v2): Fixed the offset to read the old
7395 ownertrust value and only add entries to the table if we really
7398 2002-04-08 David Shaw <dshaw@jabberwocky.com>
7400 * status.h, status.c (get_status_string): Add KEYEXPIRED, EXPSIG,
7401 and EXPKEYSIG. Add "deprecated-use-keyexpired-instead" to
7404 * sig-check.c (do_check): Start transition from SIGEXPIRED to
7405 KEYEXPIRED, since the actual event is signature verification by an
7406 expired key and not an expired signature. (do_signature_check,
7407 packet.h): Rename as signature_check2, make public, and change all
7410 * mainproc.c (check_sig_and_print, do_check_sig): Use status
7411 EXPSIG for an expired, but good, signature. Add the expiration
7412 time (or 0) to the VALIDSIG status line. Use status KEYEXPSIG for
7413 a good signature from an expired key.
7415 * g10.c (main): remove checks for no arguments now that argparse
7418 2002-04-06 Werner Koch <wk@gnupg.org>
7420 * keyring.c (keyring_get_keyblock): Disable the keylist mode here.
7422 * encode.c (encode_simple, encode_crypt): Only test on compressed
7423 files if a compress level was not explicity set.
7425 * keygen.c (keygen_set_std_prefs): Removed Blowfish and Twofish
7426 from the list of default preferences, swapped the preferences of
7427 RMD160 and SHA1. Don't include a preference to 3DES unless the
7428 IDEA kludge gets used.
7430 * free-packet.c (free_packet): call free_encrypted also for
7433 * compress.c (release_context): New.
7434 (handle_compressed): Allocate the context and setup a closure to
7435 release the context. This is required because there is no
7436 guarabntee that the filter gets popped from the chain at the end
7437 of the function. Problem noted by Timo and probably also the
7438 cause for a couple of other reports.
7439 (compress_filter): Use the release function if set.
7441 * tdbio.c [__CYGWIN32__]: Don't rename ftruncate. Noted by
7444 * parse-packet.c (parse_signature): Put parens around a bit test.
7446 * exec.c (make_tempdir): Double backslash for TMP directory
7447 creation under Windows. Better strlen the DIRSEP_S constants for
7448 allocation measurements.
7450 * decrypt.c (decrypt_messages): Release the passphrase aquired
7451 by get_last_passphrase.
7453 2002-04-02 Werner Koch <wk@gnupg.org>
7455 * Makefile.am (EXTRA_DIST): Removed OPTIONS an pubring.asc - they
7456 are no longer of any use.
7458 2002-04-03 David Shaw <dshaw@jabberwocky.com>
7460 * keyserver.c (parse_keyserver_options): fix auto-key-retrieve to
7461 actually work as a keyserver-option (noted by Roger Sondermann).
7463 * keylist.c (reorder_keyblock): do not reorder the primary
7464 attribute packet - the first user ID must be a genuine one.
7466 2002-03-31 David Shaw <dshaw@jabberwocky.com>
7468 * keylist.c (list_keyblock_colon): Fix ownertrust display with
7471 * keygen.c (generate_user_id), photoid.c (generate_photo_id):
7472 Properly initialize the user ID refcount. A few more "y/n" ->
7475 * keyedit.c (ask_revoke_sig): Warn the user if they are about to
7476 revoke an expired sig (not a problem, but they should know). Also
7477 tweak a few prompts to change "y/n" to "y/N", which is how most
7478 other prompts are written.
7480 * keyserver.c (keyserver_search_prompt): Control-d escapes the
7481 keyserver search prompt.
7483 * pkclist.c (show_revocation_reason & callers): If a subkey is
7484 considered revoked solely because the parent key is revoked, print
7485 the revocation reason from the parent key.
7487 * trustdb.c (get_validity): Allow revocation/expiration to apply
7488 to a uid/key with no entry in the trustdb.
7490 2002-03-29 David Shaw <dshaw@jabberwocky.com>
7492 * keyserver.c (printunquoted): unquote backslashes from keyserver
7495 * hkp.c (write_quoted): quote backslashes from keyserver searches
7497 2002-03-26 Werner Koch <wk@gnupg.org>
7499 * keygen.c (ask_keysize): Removed the warning for key sizes > 1536.
7501 2002-03-25 Werner Koch <wk@gnupg.org>
7503 * keyedit.c (sign_uids): Use 2 strings and not a %s so that
7504 translations can be done the right way.
7505 * helptext.c: Fixed small typo.
7507 2002-03-23 David Shaw <dshaw@jabberwocky.com>
7509 * import.c (append_uid, merge_sigs): it is okay to import
7510 completely non-signed uids now (with --allow-non-selfsigned-uid).
7512 * getkey.c (get_primary_uid, merge_selfsigs_main): do not choose
7513 an attribute packet (i.e. photo) as primary uid. This prevents
7514 oddities like "Good signature from [image of size 2671]". This is
7515 still not perfect (one can still select an attribute packet as
7516 primary in --edit), but is closer to the way the draft is going.
7518 * g10.c (build_list): algorithms should include 110.
7520 * g10.c (main): --pgp2 implies --no-ask-sig-expire and
7521 --no-ask-cert-expire as those would cause a v4 sig/cert.
7523 * armor.c (is_armor_header): be more lenient in what constitutes a
7524 valid armor header (i.e. -----BEGIN blah blah-----) as some
7525 Windows programs seem to add spaces at the end. --openpgp makes
7528 2002-03-18 David Shaw <dshaw@jabberwocky.com>
7530 * keyserver.c (keyserver_search_prompt): Properly handle a "no
7531 keys found" case from the internal HKP code (external HKP is ok).
7532 Also, make a COUNT -1 (i.e. streamed) keyserver response a little
7535 * g10.c (main): Add --no-allow-non-selfsigned-uid
7537 2002-03-17 David Shaw <dshaw@jabberwocky.com>
7539 * g10.c (main): --openpgp implies --allow-non-selfsigned-uid.
7541 * getkey.c (merge_selfsigs_main): If none of the uids are primary
7542 (because none are valid) then pick the first to be primary (but
7543 still invalid). This is for cosmetics in case some display needs
7544 to print a user ID from a non-selfsigned key. Also use
7545 --allow-non-selfsigned-uid to make such a key valid and not
7546 --always-trust. The key is *not* automatically trusted via
7547 --allow-non-selfsigned-uid.
7549 * mainproc.c (check_sig_and_print): Make sure non-selfsigned uids
7550 print [uncertain] on verification even though one is primary now.
7552 * getkey.c (merge_selfsigs): If the main key is not valid, then
7553 neither are the subkeys.
7555 * import.c (import_one): Allow --allow-non-selfsigned-uid to work
7556 on completely unsigned keys. Print the uids in UTF8. Remove
7557 mark_non_selfsigned_uids_valid().
7559 * keyedit.c (show_key_with_all_names): Show revocation key as
7562 * sign.c (clearsign_file): Allow --not-dash-escaped to work with
7565 2002-03-14 Werner Koch <wk@gnupg.org>
7567 * main.h: Changed the default algorithms to CAST5 and SHA1.
7569 2002-03-13 David Shaw <dshaw@jabberwocky.com>
7571 * import.c (chk_self_sigs): Show which user ID a bad self-sig
7572 (invald sig or unsupported public key algorithm) resides on.
7574 * import.c (chk_self_sigs): any valid self-sig should mark a user
7575 ID or subkey as valid - otherwise, an attacker could DoS the user
7576 by inventing a bogus invalid self-signature.
7578 2002-03-07 David Shaw <dshaw@jabberwocky.com>
7580 * g10.c (main): make a few more strings translatable.
7582 * options.h, options.skel, g10.c (main), gpgv.c, mainproc.c
7583 (check_sig_and_print), keyserver.c (parse_keyserver_options):
7584 --auto-key-retrieve should really be a keyserver-option variable.
7586 * import.c (revocation_present): new function to print a warning
7587 if a key is imported that has been revoked by designated revoker,
7588 but the designated revoker is not present to verify the
7589 revocation. If keyserver-options auto-key-retrieve is set, try
7590 and fetch the designated revoker from the keyserver.
7592 * import.c (import_one): call revocation_present after importing a
7593 new key. Note that this applies to --import, --recv-keys, and
7596 * keyserver-internal.h, keyserver.c (keyserver_import_fprint):
7597 import via fingerprint (for revocation keys).
7599 * keyserver.c (keyserver_import_keyid): much simpler
7600 implementation now that we're using KEYDB_SEARCH_DESC internally.
7602 2002-03-04 David Shaw <dshaw@jabberwocky.com>
7604 * revoke.c (gen_revoke): do not prompt for revocation reason for
7605 v3 revocations (unless force-v4-certs is on) since they wouldn't
7608 * keyedit.c (menu_revsig): show the status of the sigs
7609 (exportable? revocable?) to the user before prompting for which
7610 sig to revoke. Also, make sure that local signatures get local
7613 * keyedit.c (ask_revoke_sig): remind the user which sigs are
7616 * g10.c (main): Add "exec-path" variable to override PATH for
7619 * export.c (do_export_stream): properly check return code from
7620 classify_user_id to catch unclassifiable keys.
7622 2002-03-03 David Shaw <dshaw@jabberwocky.com>
7624 * parse-packet.c (parse_signature): variable type tweak for RISC
7627 2002-02-28 David Shaw <dshaw@jabberwocky.com>
7629 * getkey.c (check_revocation_keys): New function to check a
7630 revocation against a list of potential revocation keys. Note the
7631 loop-breaking code here. This is to prevent blowing up if A is
7632 B's revocation key, while B is also A's. Note also that this is
7633 written so that a revoked revoker can still issue revocations:
7634 i.e. If A revokes B, but A is revoked, B is still revoked. I'm
7635 not completely convinced this is the proper behavior, but it
7636 matches how PGP does it. It does at least have the advantage of
7637 much simpler code - my first version of this had lots of loop
7638 maintaining code so you could chain revokers many levels deep and
7639 if D was revoked, C was not, which meant that B was, and so on.
7640 It was sort of scary, actually.
7642 * getkey.c (merge_selfsigs_main): Add any revocation keys onto the
7643 pk. This is particularly interesting since we normally only get
7644 data from the most recent 1F signature, but you need multiple 1F
7645 sigs to properly handle revocation keys (PGP does it this way, and
7646 a revocation key could be marked "sensitive" and hence in a
7647 different signature). Also, if a pk has a revocation key set,
7648 check for revocation sigs that were not made by us - if made by a
7649 valid revocation key, mark the pk revoked.
7651 * packet.h, getkey.c (cache_public_key): do not cache key if
7652 "dont_cache" is set. This allows the revocation key code to look
7653 up a key and return information that may be inaccurate to prevent
7654 loops without caching the fake data.
7656 * packet.h, sig-check.c (do_signature_check): Record if a
7657 signature was made by a revoked pk.
7659 * packet.h, parse-packet.c (parse_one_sig_subpkt,
7660 can_handle_critical, parse_signature): Get revocation key
7661 information out of direct sigs.
7663 * keylist.c (list_keyblock_print): don't assume that the presence
7664 of a 0x20 signature means the key is revoked. With revocation
7665 keys, this may not be true if the revocation key is not around to
7666 verify it or if verification failed. Also, 0x1F should get listed
7667 as "sig", and not "unexpected signature class".
7669 * keyedit.c (show_key_with_all_names): Add a flag for printing
7670 revoker information and change all callers.
7672 * import.c (merge_blocks): merge in any new direct key (0x1F)
7675 * import.c (import_revoke_cert): don't keep processing after a
7676 revocation is rejected.
7678 * import.c (delete_inv_parts): Allow importing a revocation
7679 signature even if it was not issued by the key. This allows a
7680 revocation key to issue it. Of course, the sig still needs to be
7681 checked before we trust it.
7683 * free-packet.c (copy_public_key): Include a new copy of the
7684 revocation keys when duping a pk.
7686 * free-packet.c (free_seckey_enc, release_public_key_parts): Free
7687 any revocation keys that are attached to a sig or pk.
7689 * export.c (do_export_stream): Do not export signatures with
7690 "sensitive" revocation keys in them.
7692 2002-02-27 David Shaw <dshaw@jabberwocky.com>
7694 * export.c (do_export_stream): Do not include v3 keys in a
7695 --export-secret-subkeys export.
7697 * getkey.c (merge_selfsigs_main): If a key isn't valid (say,
7698 because of no self-signature), allow --always-trust to force it
7699 valid so it can be trusted.
7701 2002-02-25 David Shaw <dshaw@jabberwocky.com>
7703 * hkp.c (hkp_ask_import), hkp.h, keyserver.c (all): treat key
7704 lists internally as fingerprints when possible. All this is via
7705 KEYDB_SEARCH_DESC - no point in reinventing the wheel. This allows
7706 the helper program to search the keyserver by fingerprint if
7707 desired (and the keyserver supports it). Note that automatic
7708 fingerprint promotion during refresh only applies to v4 keys as a
7709 v4 fingerprint can be easily changed into a long or short key id,
7712 * pubkey-enc.c, getkey.c, misc.c, main.h: Take two copies of
7713 hextobyte() from pubkey-enc.c and getkey.c and make them into one
7716 2002-02-22 David Shaw <dshaw@jabberwocky.com>
7718 * keyserver.c (keyserver_search_prompt): Detect a "no keys found"
7719 case even if the helper program does not explicitly say how many
7722 * hkp.c (parse_hkp_index): Bug fix - don't report non-revoked keys
7723 as revoked in HKP key searches.
7725 2002-02-19 Werner Koch <wk@gnupg.org>
7727 * parse-packet.c (parse_trust): Made parsing more robust.
7729 2002-02-19 David Shaw <dshaw@jabberwocky.com>
7731 * hkp.c (parse_hkp_index): Catch corruption in HKP index lines
7732 (can be caused by broken or malicious keyservers).
7734 * keyserver.c (keyserver_work): Add KEYSERVER_NOT_SUPPORTED for
7735 unsupported actions (say, a keyserver that has no way to search,
7736 or a readonly keyserver that has no way to add). Also add a
7737 USE_EXTERNAL_HKP define to disable the internal HKP keyserver
7740 2002-02-14 Werner Koch <wk@gnupg.org>
7742 * g10.c: New option --no-use-agent.
7744 * pkclist.c (check_signatures_trust): Always print the warning for
7745 unknown and undefined trust. Removed the did_add cruft. Reported
7746 by Janusz A. Urbanowicz.
7748 2002-02-11 David Shaw <dshaw@jabberwocky.com>
7750 * hkp.c (parse_hkp_index): Bug fix - properly handle user IDs with
7751 colons (":") in them while HKP searching.
7753 2002-02-09 David Shaw <dshaw@jabberwocky.com>
7755 * misc.c (pct_expando): More comments.
7757 * keydb.h, sign.c (mk_notation_and_policy): Clarify what is a sig
7758 and what is a cert. A sig has sigclass 0x00, 0x01, 0x02, or 0x40,
7759 and everything else is a cert.
7761 * g10.c (main), keyedit.c (keyedit_menu): Add a "nrlsign" for
7762 nonrevocable and local key signatures.
7764 * g10.c (main): Add a --no-force-mdc to undo --force-mdc.
7766 * options.h, g10.c (main), cipher.c (write_header): Add a knob to
7767 --disable-mdc/--no-disable-mdc. Off by default, of course, but is
7768 used in --pgp2 and --pgp6 modes.
7770 * pkclist.c (build_pk_list): Allow specifying multiple users in
7771 the "Enter the user ID" loop. Enter a blank line to stop. Show
7772 each key+id as it is added.
7774 * keylist.c (show_policy_url), mainproc.c (print_notation_data):
7775 It is not illegal (though possibly silly) to have multiple policy
7776 URLs in a given signature, so print all that are present.
7778 * hkp.c (hkp_search): More efficient implementation of URL-ifying
7781 2002-02-04 David Shaw <dshaw@jabberwocky.com>
7783 * main.h, misc.c (pct_expando): New function to generalize
7784 %-expando processing in any arbitrary string.
7786 * photoid.c (show_photo): Call the new pct_expando function rather
7787 than expand strings internally.
7789 * sign.c (mk_notation_and_policy): Show policy URLs and notations
7790 when making a signature if show-policy/show-notation is on.
7791 %-expand policy URLs during generation. This lets the user have
7792 policy URLs of the form "http://notary.jabberwocky.com/keysign/%K"
7793 which will generate a per-signature policy URL.
7795 * main.h, keylist.c (show_policy_url, show_notation): Add amount
7796 to indent so the same function can be used in key listings as well
7797 as during sig generation. Change all callers.
7799 2002-02-04 David Shaw <dshaw@jabberwocky.com>
7801 * keyserver.c, options.h (parse_keyserver_options, keyidlist):
7802 Workaround for the pksd and OKS keyserver bug that calculates v4
7803 RSA keyids as if they were v3. The workaround/hack is to fetch
7804 both the v4 (e.g. 99242560) and v3 (e.g. 68FDDBC7) keyids. This
7805 only happens for key refresh while using the HKP scheme and the
7806 refresh-add-fake-v3-keyids keyserver option must be set. This
7807 should stay off by default.
7809 2002-02-03 David Shaw <dshaw@jabberwocky.com>
7811 * keyserver.c (keyserver_spawn): Bug fix - do not append keys to
7812 each other when --sending more than one.
7814 2002-02-02 David Shaw <dshaw@jabberwocky.com>
7816 * options.h, g10.c (main), keyedit.c (sign_uids), sign.c
7817 (mk_notation_and_policy): Split "--set-policy-url" into
7818 "--cert-policy-url" and "--sig-policy-url" so the user can set
7819 different policies for key and data signing. For backwards
7820 compatibility, "--set-policy-url" sets both, as before.
7822 2002-01-30 Werner Koch <wk@gnupg.org>
7824 * g10.c (main): --gen-random --armor does now output a base64
7827 2002-01-28 David Shaw <dshaw@jabberwocky.com>
7829 * g10.c (main), options.h, pkclist.c (algo_available): --pgp6
7830 flag. This is not nearly as involved as --pgp2. In short, it
7831 turns off force_mdc, turns on no_comment, escape_from, and
7832 force_v3_sigs, and sets compression to 1. It also restricts the
7833 user to IDEA (if present), 3DES, CAST5, MD5, SHA1, and RIPEMD160.
7834 See the comments above algo_available() for lots of discussion on
7835 why you would want to do this.
7837 2002-01-27 David Shaw <dshaw@jabberwocky.com>
7839 * keygen.c (keygen_set_std_prefs): Comment
7841 * keyedit.c (sign_uids): Bug fix - when signing with multiple
7842 secret keys at the same time, make sure each key gets the sigclass
7845 * exec.c (exec_finish): Close the iobuf and FILE before trying to
7846 waitpid, so the remote process will get a SIGPIPE and exit. This
7847 is only a factor when using a pipe to communicate.
7849 * exec.c (exec_write): Disable cache-on-close of the fd iobuf (is
7850 this right? Why is a fd iobuf cached at all?)
7852 2002-01-26 Werner Koch <wk@gnupg.org>
7854 * g10.c, options.h: New option --gpg-agent-info
7855 * passphrase.c (agent_open): Let it override the environment info.
7856 * seckey-cert.c (check_secret_key): Always try 3 times when the
7858 * options.skel: Describe --use-agent.
7860 2002-01-24 David Shaw <dshaw@jabberwocky.com>
7862 * pubkey-enc.c (is_algo_in_prefs, get_it): Only check preferences
7863 against keys with v4 self sigs - there is really little point in
7864 warning for every single non-IDEA message encrypted to an old key.
7866 * pkclist.c (select_algo_from_prefs): Only put in the fake IDEA
7867 preference if --pgp2 is on.
7869 * mainproc.c (check_sig_and_print): Print "Expired" for expired
7870 but good signatures (this still prints "BAD" for expired but bad
7873 2002-01-23 David Shaw <dshaw@jabberwocky.com>
7875 * keygen.c (ask_keysize): Cosmetic: don't present a RSA signing
7876 key as a "keypair" which can be 768 bits long (as RSA minimum is
7879 * pubkey-enc.c (is_algo_in_prefs): Allow IDEA as a fake preference
7880 for v3 keys with v3 selfsigs.
7882 2002-01-22 David Shaw <dshaw@jabberwocky.com>
7884 * packet.h, getkey.c (merge_selfsigs_main), pkclist.c
7885 (select_algo_from_prefs): Implement the fake IDEA preference as
7886 per RFC2440:12.1. This doesn't mean that IDEA will be used (the
7887 plugin may not be present), but it does mean that a v3 key with a
7888 v3 selfsig has an implicit IDEA preference instead of 3DES. v3
7889 keys with v4 selfsigs use preferences as normal.
7891 * encode.c (encode_crypt): if select_algo_from_prefs fails, this
7892 means that we could not find a cipher that both keys like. Since
7893 all v4 keys have an implicit 3DES preference, this means there is
7894 a v3 key with a v3 selfsig in the list. Use 3DES in this case as
7895 it is the safest option (we know the v4 key can handle it, and
7896 we'll just hope the v3 key is being used in an implementation that
7897 can handle it). If --pgp2 is on, warn the user what we're doing
7898 since it'll probably break PGP2 compatibility.
7900 * g10.c (main): Do not force using IDEA for encrypted files in
7901 --pgp2 mode - let the fake IDEA preference choose this for us for
7902 better compatibility when encrypting to multiple keys, only some
7905 * keygen.c (keygen_set_std_prefs): Put 3DES on the end of the
7906 default cipher pref list (RFC2440: "...it is good form to place it
7907 there explicitly."). If the user has the IDEA plugin installed,
7908 put a preference for IDEA *after* 3DES to effectively disable its
7909 use for everything except encrypting along with v3 keys.
7911 * encode.c, g10.c, sign.c: Change the PGP2 warning line from
7912 "... will not be usable ..." to "... may not be usable ..." as the
7913 user could be using one of the enhanced PGP2 variations.
7915 * helptext.c: Revise the sign_uid.class help text as suggested by
7918 2002-01-20 Werner Koch <wk@gnupg.org>
7920 * passphrase.c (passphrase_to_dek): Add tryagain_text arg to be
7921 used with the agent. Changed all callers.
7922 (agent_get_passphrase): Likewise and send it to the agent
7923 * seckey-cert.c (do_check): New arg tryagain_text.
7924 (check_secret_key): Pass the string to do_check.
7925 * keygen.c (ask_passphrase): Set the error text is required.
7926 * keyedit.c (change_passphrase): Ditto.
7928 * passphrase.c (agent_open): Disable opt.use_agent in case of a
7929 problem with the agent.
7930 (agent_get_passphrase): Ditto.
7931 (passphrase_clear_cache): Ditto.
7933 2002-01-19 Werner Koch <wk@gnupg.org>
7935 * passphrase.c (agent_open): Add support for the new Assuan based
7936 gpg-agent. New arg to return the used protocol version.
7937 (agent_get_passphrase): Implemented new protocol here.
7938 (passphrase_clear_cache): Ditto.
7941 2002-01-15 Timo Schulz <ts@winpt.org>
7943 * encode.c (encode_crypt_files): Fail if --output is used.
7945 * g10.c: New command --decrypt-files.
7947 * decrypt.c (decrypt_messages): New.
7949 2002-01-09 David Shaw <dshaw@jabberwocky.com>
7951 * g10.c, misc.c, gpgv.c: move idea_cipher_warn to misc.c so gpgv.c
7952 doesn't need a stub for it any longer.
7954 * g10.c (get_temp_dir), main.h: no longer used (it's in exec.c now)
7956 * g10.c (main), delkey.c (delete_keys), main.h : Allow
7957 --delete-key (now --delete-keys, though --delete-key still works,
7958 of course) to delete multiple keys in one go. This applies to
7959 --delete-secret-key(s) and --delete-secret-and-public-key(s) as
7962 2002-01-09 Timo Schulz <ts@winpt.org>
7964 * encode.c (encode_crypt_files): Now it behaves like verify_files.
7966 * g10.c (main): We don't need to check argc for encode_crypt_files
7969 2002-01-09 Timo Schulz <ts@winpt.org>
7971 * exec.c: Include windows.h for dosish systems.
7973 2002-01-08 Timo Schulz <ts@winpt.org>
7975 * g10.c (main): New description for --encrypt-files.
7977 2002-01-08 Werner Koch <wk@gnupg.org>
7979 * g10.c (main): Must register the secring for encryption because
7980 it is needed to figure out the default recipient. Reported by
7983 2002-01-05 David Shaw <dshaw@jabberwocky.com>
7985 * keyedit.c (menu_adduid): Require --expert before adding a photo
7986 ID to a v3 key, and before adding a second photo ID to any key.
7988 * keyedit.c (keyedit_menu): Don't allow adding photo IDs in
7989 rfc1991 or pgp2 mode.
7991 * getkey.c (merge_selfsigs_subkey): Permit v3 subkeys. Believe it
7992 or not, this is allowed by rfc 2440, and both PGP 6 and PGP 7 work
7995 * g10.c, options.h, keyedit.c, sign.c: Move the "ask for
7996 expiration" switch off of --expert, which was getting quite
7997 overloaded, and onto ask-sig-expire and ask-cert-expire. Both
8000 * g10.c (main): Change the default compression algo to 1, to be
8001 more OpenPGP compliant (PGP also uses this, so it'll help with
8002 interoperability problems as well).
8004 * encode.c (encode_crypt): Handle compression algo 2, since the
8007 * build-packet.c (build_attribute_subpkt): Fix off-by-one error.
8009 2002-01-05 Werner Koch <wk@gnupg.org>
8011 * g10.c (main): Do not register the secret keyrings for certain
8014 * keydb.c (keydb_add_resource): Use access to test for keyring
8015 existence. This avoids cached opened files which are bad under
8018 2002-01-04 David Shaw <dshaw@jabberwocky.com>
8020 * sign.c (sign_file, sign_symencrypt_file): always use one-pass
8021 packets unless rfc1991 is enabled. This allows a signature made
8022 with a v3 key to work in PGP 6 and 7. Signatures made with v4
8025 * g10.c (main): Disallow non-detached signatures in PGP2 mode.
8026 Move the "you must use files and not pipes" PGP2 warning up so all
8027 the PGP2 stuff is together.
8029 * encode.c (encode_simple): Use the actual filesize instead of
8030 partial length packets in the internal literal packet from a
8031 symmetric message. This breaks PGP5(?), but fixes PGP2, 6, and 7.
8032 It's a decent tradeoff. Note there was only an issue with
8033 old-style RFC1991 symmetric messages. 2440-style messages in 6
8034 and 7 work with or without partial length packets.
8036 2002-01-03 David Shaw <dshaw@jabberwocky.com>
8038 * g10.c (main): Removed --no-default-check-level option, as it is
8039 not consistent with other "default" options. Plus, it is the same
8040 as saying --default-check-level 0.
8042 * exec.c (exec_read): Disallow caching tempfile from child
8043 process, as this keeps the file handle open and can cause unlink
8044 problems on some platforms.
8046 * keyserver.c (keyserver_search_prompt): Minor tweak - don't
8047 bother to transform keyids into textual form if they're just going
8048 to be transformed back to numbers.
8050 2002-01-03 Timo Schulz <ts@winpt.org>
8052 * g10.c: New command --encrypt-files.
8054 * verify.c (print_file_status): Removed the static because
8055 encode_crypt_files also uses this function.
8057 * main.h (print_files_status): New.
8058 (encode_crypt_files): New.
8060 * encode.c (encode_crypt_files): New.
8062 2002-01-02 Stefan Bellon <sbellon@sbellon.de>
8064 * keyserver.c: Moved util.h include down in order to avoid
8065 redefinition problems on RISC OS.
8067 * keyring.c (keyring_lock): Only lock keyrings that are writable.
8069 * keyring.c (keyring_update_keyblock): Close unused iobuf.
8071 * hkp.c (parse_hkp_index, hkp_search) [__riscos__]: Changed
8072 unsigned char* to char* because of compiler issues.
8074 * exec.c (exec_finish) [__riscos__]: Invalidate close cache so
8075 that file can be unlinked.
8077 2001-12-28 David Shaw <dshaw@jabberwocky.com>
8079 * g10.c (main): Use a different strlist to check extensions since
8080 they need to be handled seperately now.
8082 * misc.c,main.h (check_permissions): Properly handle permission
8083 and ownership checks on files in the lib directory
8084 (e.g. /usr/local/lib/gnupg), which are owned by root and are
8085 world-readable, and change all callers to specify extension or
8088 * photoid.c (show_photo), keyserver.c (keyserver_spawn): Bug fix -
8089 don't call exec_finish if exec_write fails.
8091 * keyserver.c (keyserver_spawn): Look for OPTIONS from the
8092 keyserver helper - specifically, a "OUTOFBAND" option for the
8095 * mainproc.c (list_node), keylist.c (list_keyblock_colon),
8096 import.c (delete_inv_parts), export.c (do_export_stream): Use
8097 signature flags for exportability check rather than re-parsing the
8100 * keyid.c, keydb.h (get_lsign_letter): No longer needed.
8102 2001-12-27 David Shaw <dshaw@jabberwocky.com>
8104 * exec.c (exec_finish): Show errors when temp files cannot be
8105 deleted for whatever reason.
8107 * exec.c (exec_read): Don't rely on WEXITSTATUS being present.
8109 * exec.c (make_tempdir): Add temp file creator for win32. Don't
8110 create an incoming temp file if the exec is write-only.
8112 * keyserver.c (keyserver_spawn): Clean up error handling, for when
8115 * photoid.c (show_photo): Clean up error handling.
8117 * misc.c (check_permissions): Neaten.
8119 2001-12-25 David Shaw <dshaw@jabberwocky.com>
8121 * mkdtemp.c (mkdtemp): Add copyleft info and tweak the 'X' counter
8122 to be a bit simpler.
8124 * keyserver.c, photoid.c: Remove unused headers left over from
8125 when the exec functions lived there.
8127 2001-12-23 Timo Schulz <ts@winpt.org>
8129 * misc.c (check_permissions): Do not use it for W32 systems.
8131 * tdbio.c (migrate_from_v2): Define ftruncate as chsize() for W32.
8133 * mkdtemp.c: W32 support.
8139 2001-12-22 David Shaw <dshaw@jabberwocky.com>
8141 * exec.c (make_tempdir): avoid compiler warning with const
8143 * mkdtemp.c (mkdtemp): catch the empty ("") string case in case
8144 someone repurposes mkdtemp at some point.
8146 * photoid.c (generate_photo_id, show_photo): some type changes
8149 * exec.c (make_tempdir): handle Win32 systems, suggested by Timo
8152 2001-12-22 Werner Koch <wk@gnupg.org>
8154 * encode.c (encode_simple, encode_crypt): i18n 2 strings.
8156 2001-12-22 Timo Schulz <ts@winpt.org>
8158 * encode.c (encode_simple, encode_crypt): Use is_file_compressed
8159 to avoid to compress compressed files.
8161 2001-12-22 Werner Koch <wk@gnupg.org>
8163 * keyserver.c (keyserver_spawn): Removed some variables
8164 declaration due to shadowing warnings.
8166 * build-packet.c (build_attribute_subpkt): s/index/idx/ to avoid
8167 compiler warnig due to index(3).
8169 * getkey.c (get_ctx_handle): Use KEYDB_HANDLE as return value.
8170 * keylist.c (list_one): Made resname const.
8172 * keyedit.c (keyedit_menu): Allow "addphoto" only when --openpgp is
8175 * options.skel: Changed one example photo viewer to qiv.
8177 2001-12-21 David Shaw <dshaw@jabberwocky.com>
8179 * Makefile.am: add exec.c, exec.h, photoid.c, and photoid.h
8181 * build-packet.c (build_attribute_subpkt): new function to build
8182 the raw attribute subpacket. Note that attribute subpackets have
8183 the same format as signature subpackets.
8185 * exec.c: new file with generic exec-a-program functionality.
8186 Used by both photo IDs and keyserver helpers. This is pretty much
8187 the same code that used to be keyserver specific, with some
8188 changes to be usable generically.
8190 * free-packet.c (free_attributes (new)): function to free an
8193 * gpgv.c: added stub show_photo
8195 * keyedit.c (keyedit_menu, menu_adduid, menu_showphoto): can add a
8196 photo (calls generate_photo_id), or display a photo (calls
8197 show_photo) from the --edit menu. New commands are "addphoto",
8198 and "delphoto" (same as "deluid").
8200 * keylist.c (list_keyblock_print): show photos during key list if
8201 --show-photos enabled.
8203 * keyserver.c (keyserver_spawn): use the generic exec_xxx
8204 functions to call keyserver helper.
8206 * g10.c, options.h: three new options - --{no-}show-photos, and
8207 --photo-viewer to give the command line to display a picture.
8209 * options.skel: instructions for the photo viewer
8211 * parse-packet.c (parse_user_id, setup_user_id (new)): common code
8212 for both user IDs and attribute IDs moved to setup_user_id.
8214 * parse-packet.c (make_attribute_uidname (new)): constructs a fake
8215 "name" for attribute packets (e.g. "[image of size ...]")
8217 * parse-packet.c (parse_attribute (replaces parse_photo_id),
8218 parse_attribute_subpkts): Builds an array of individual
8219 attributes. Currently only handles attribute image / type jpeg
8222 * sign.c (hash_uid): Fix bug in signing attribute (formerly
8225 * packet.h, and callers: globally change "photo_id" to "attribute"
8226 and add structures for attributes. The packet format is generic
8227 attributes, even though the only attribute type thus far defined
8230 2001-12-21 David Shaw <dshaw@jabberwocky.com>
8232 * parse-packet.c (can_handle_critical): Can handle critical
8233 revocation subpackets now.
8235 * trustdb.c (mark_usable_uid_certs): Disregard revocations for
8236 nonrevocable sigs. Note that this allows a newer revocable
8237 signature to override an older nonrevocable signature.
8239 * sign.c (make_keysig_packet): add a duration field and change all
8240 callers. This makes make_keysig_packet closer to
8241 write_signature_packets and removes some duplicated expiration
8244 * keyedit.c (keyedit_menu, menu_revsig, sign_uids,
8245 sign_mk_attrib): Add nrsign command, don't allow revoking a
8246 nonrevocable signature,
8248 * g10.c (main): Add --nrsign option to nonrevocably sign a key
8249 from the command line.
8251 * build-packet.c (build_sig_subpkt_from_sig): Comment to explain
8252 the use of CRITICAL.
8254 2001-12-21 Werner Koch <wk@gnupg.org>
8256 * g10.c. options.h : New option --show-keyring
8257 * getkey.c (get_ctx_handle): New.
8258 * keylist.c (list_one): Implement option here. By David Champion.
8260 2001-12-20 David Shaw <dshaw@jabberwocky.com>
8262 * keyserver.c (keyserver_spawn): Use mkdtemp() to make temp
8265 * mkdtemp.c: replacement function for those platforms that don't
8266 have mkdtemp (make a temp directory securely).
8268 2001-12-19 David Shaw <dshaw@jabberwocky.com>
8270 * misc.c (check_permissions): New function to stat() and ensure
8271 the permissions of GNUPGHOME and the files have safe permissions.
8273 * keydb.c (keydb_add_resource): Check keyring permissions.
8275 * tdbio.c (tdbio_set_dbname): Check permissions of trustdb.gpg
8277 * keyserver.c (keyserver_spawn): Disable keyserver schemes that
8278 involve running external programs if the options file has unsafe
8279 permissions or ownership.
8281 * g10.c, options.h: New option --no-permission-warning to disable
8282 the permission warning message(s). This also permits use of the
8283 keyserver if it had been disabled (see above). Also check the
8284 permissions/ownership of random_seed.
8286 * keyserver.c (keyserver_spawn): The new glibc prints a warning
8287 when using mktemp() (the code was already secure, but the warning
8288 was bound to cause confusion). Use a different implementation
8289 based on get_random_bits() instead. Also try a few times to get
8290 the temp dir before giving up.
8292 2001-12-19 Werner Koch <wk@gnupg.org>
8294 * g10.c, passphrase.c [CYGWIN32]: Allow this as an alias for MINGW32.
8296 2001-12-18 David Shaw <dshaw@jabberwocky.com>
8298 * g10.c (idea_cipher_warn): Add a flag to show the warning always
8299 or once per session and change all callers (show always except for
8300 the secret key protection and unknown cipher from an encrypted
8301 message errors). Also make the strings translatable.
8303 * pubkey-enc.c (get_it): Add the IDEA cipher warning if the user
8304 tries to decrypt an IDEA encrypted message without the IDEA
8307 * keyserver.c (parse_keyserver_uri): More strict checking of the
8308 keyserver URI. Specifically, fail if the ":port" section is
8309 anything except a number between 1 and 65535.
8311 2001-12-17 David Shaw <dshaw@jabberwocky.com>
8313 * keyserver.c (print_keyinfo): No need to check for
8314 control/illegal characters, as utf8_to_native does this for us.
8316 * mainproc.c (proc_encrypted): Use generic IDEA warning.
8318 * gpgv.c: add stub for idea_cipher_warn
8320 * g10.c, hkp.c, keyserver.c: Fix capitalization and plural issues.
8322 * encode.c (encode_crypt), sign.c (sign_file, clearsign_file):
8323 disable pgp2 mode after the message is no longer pgp2 compatible.
8325 * g10.c (main): Tweak the PGP2.x IDEA warning to use the generic
8326 warning, and not merely fail if the IDEA plugin isn't there.
8328 * g10.c (main, idea_cipher_warn), keygen.c (set_one_pref),
8329 seckey-cert.c (do_check): Add a generic IDEA warning for when the
8330 IDEA plugin is not present. This pops up when the user uses
8331 "--cipher-algo idea", when setpref is used to set a "S1"
8332 preference, and when a secret key protected with IDEA is used.
8334 2001-12-15 Werner Koch <wk@gnupg.org>
8336 * keyserver.c (keyserver_spawn): Assert that we have dropped privs.
8338 2001-12-13 Werner Koch <wk@gnupg.org>
8340 * pubkey-enc.c (get_session_key): Check that the public key
8341 algorithm is indeed usable for en/decryption. This avoid a
8342 strange error message from pubkey_decrypt if for some reasons a
8343 bad algorithm indentifier is passed.
8345 2001-12-12 David Shaw <dshaw@jabberwocky.com>
8347 * Fixed some types for portability. Noted by Stefan Bellon.
8349 2001-12-11 Werner Koch <wk@gnupg.org>
8351 * hkp.c (hkp_export): Do not print possible control characters
8352 from a keyserver response.
8353 (parse_hkp_index): Made uid an unsigned char* because it is passed to
8355 (hkp_search): Ditto for the char* vars.
8357 * g10.c (main): Print the IDEA warning also for -c and -se.
8359 * g10.c (get_temp_dir): Assert that we have dropped privs
8361 * encode.c (encode_crypt): Include the first key into the --pgp2
8364 2001-12-07 David Shaw <dshaw@jabberwocky.com>
8366 * g10.c, options.h: New option --pgp2. This is identical to
8367 "--rfc1991 --cipher-algo idea --compress-algo 1 --digest-algo md5
8368 --force_v3_sigs" with the addition of an warning to advise the
8369 user not to use a pipe (which would break pgp2 compatibility).
8371 * encode.c (encode_crypt): warn if the user tries to encrypt to
8372 any key that is not RSA and <= 2048 bits when the --pgp2 option is
8375 * sign.c (sign_file, clearsign_file): When using --pgp2, make a v3
8376 sig, and warn if the signature is made with a non-v3 key.
8378 2001-12-05 David Shaw <dshaw@jabberwocky.com>
8380 * sign.c (sign_file, clearsign_file, sign_symencrypt_file): Prompt
8381 for sig expiration if --expert is set and --force-v3-sigs is not
8382 set (v3 sigs cannot expire).
8384 * mainproc.c (check_sig_and_print): After checking a sig, print
8385 expiration status. This causes a error return if the sig is
8388 * build-packet.c (build_sig_subpkt_from_sig): Include a critical
8389 sig expiration subpacket if the sig is to expire.
8391 * keyedit.c (sign_uids): Do not sign an expired key unless
8392 --expert is set, in which case prompt. Also, offer to expire a
8393 signature when the key the user is signing expires.
8395 * keygen.c (ask_expire_interval): Add a value to determine whether
8396 to prompt for a key or sig expiration and change all callers.
8398 * keyid.c: New functions: expirestr_from_sig and
8399 colon_expirestr_from_sig.
8401 * keylist.c (list_keyblock_colon): Show sig expiration date in the
8402 --with-colons listing.
8404 * sign.c (make_keysig_packet, write_signature_packets): Pass in an
8405 optional timestamp for the signature packet, and change all
8408 * keyedit.c (sign_mk_attrib): Include a critical expiration
8409 subpacket in the signature if an expiration date is given.
8411 2001-12-04 David Shaw <dshaw@jabberwocky.com>
8413 * keyedit.c (sign_uids): If the user tries to sign a
8414 locally-signed key, allow the cert to be promoted to a full
8415 exportable signature. This essentially deletes the old
8416 non-exportable sig, and replaces it with a new exportable one.
8418 2001-12-04 David Shaw <dshaw@jabberwocky.com>
8420 * keyedit.c (keyedit_menu): Do not allow signing a revoked key
8421 unless --expert is set, and ask even then.
8423 * keyedit.c (sign_uids): Do not allow signing a revoked UID unless
8424 --expert is set, and ask even then.
8426 * g10.c, options.h : New option --expert
8428 2001-11-16 David Shaw <dshaw@jabberwocky.com>
8430 * Allow the user to select no compression via "--compress-algo 0"
8431 on the command line.
8433 * keyedit.c (show_prefs): Show compression preferences in the
8434 long-form "showpref" style.
8436 * keygen.c (set_one_pref): Permit setting a no-compression ("Z0")
8439 * getkey.c (fixup_uidnode): Fix compression preference corruption
8442 2001-12-02 David Shaw <dshaw@jabberwocky.com>
8444 * g10.c: Add advisory --for-your-eyes-only option as per section
8447 2001-12-05 David Shaw <dshaw@jabberwocky.com>
8449 * Force a V4 sig if the user has a notation or policy URL set.
8451 2001-12-04 David Shaw <dshaw@jabberwocky.com>
8453 * g10.c: Add options --keyserver-options, --temp-directory, and
8454 auto-key-retrieve (the opposite of no-auto-key-retrieve).
8456 * hkp.c (hkp_search): New function to handle searching a HKP
8459 * hkp.c (hkp_ask_import, hkp_export): Pretty large changes to make
8460 them communicate via the generic functions in keyserver.c
8462 * keyserver.c: new file with generic keyserver routines for
8463 getting keys from a keyserver, sending keys to a keyserver, and
8464 searching for keys on a keyserver. Calls the internal HKP stuff
8465 in hkp.c for HKP keyserver functions. Other calls are handled by
8466 an external program which is spawned and written to and read from
8467 via pipes. Platforms that don't have pipes use temp files.
8469 2001-11-20 David Shaw <dshaw@jabberwocky.com>
8471 * options.h, g10.c: New options show-notation, no-show-notation,
8472 default-check-level, no-default-check-level, show-policy-url,
8475 * packet.h, sign.c (make_keysig_packet), parse-packet.c
8476 (parse_signature), free-packet.c (free_seckey_enc): Fill in
8477 structures for notation, policy, sig class, exportability, etc.
8479 * keyedit.c, keylist.c (print_and_check_one_sig,
8480 list_keyblock_print): Show flags in signature display for cert
8481 details (class, local, notation, policy, revocable). If selected,
8482 show the notation and policy url.
8484 * keyedit.c (sign_uids): Prompt for and use different key sig
8487 * helptext.c (helptexts): Add help text to explain different
8488 key signature classes
8490 2001-11-26 David Shaw <dshaw@jabberwocky.com>
8492 * trustdb.c (mark_usable_uid_certs): Fix segfault from bad
8493 initialization and fix reversed key signature expiration check.
8495 2001-11-09 Werner Koch <wk@gnupg.org>
8497 * export.c (do_export_stream): Put all given names into a search
8498 description and change the loop so that all matching names are
8501 2001-11-08 Werner Koch <wk@gnupg.org>
8503 * pubkey-enc.c (get_it): To reduce the number of questions on the
8504 MLs print the the name of cipher algorithm 1 with the error message.
8506 * mainproc.c: Changed the way old rfc1991 encryption cipher is
8507 selected. Based on a patch by W Lewis.
8509 * pkclist.c (do_edit_ownertrust): Allow to skip over keys, the non
8510 working "show info" is now assigned to "i"
8511 * trustdb.c (ask_ownertrust, validate_keys): Implement a real quit
8512 here. Both are by David Shaw.
8514 * trustdb.c (validate_keys): Make sure next_exipire is initialized.
8516 * sign.c (make_keysig_packet): Use SHA-1 with v4 RSA keys.
8518 * g10.c, options.h : New option --[no-]froce-v4-certs.
8519 * sign.c (make_keysig_packet): Create v4 sigs on v4 keys even with
8520 a v3 key. Use that new option. By David Shaw
8522 * revoke.c (ask_revocation_reason): Allow to select "no reason".
8525 * keyid.c (fingerprint_from_sk): Calculation of an v3 fpr was
8526 plain wrong - nearly the same code in fingerprint_from_pk is correct.
8528 * build-packet.c (do_secret_key): Added a few comments to the code.
8530 2001-11-07 Werner Koch <wk@gnupg.org>
8532 * g10.c (main): Print a warning when -r is used w/o encryption.
8533 Suggested by Pascal Scheffers.
8535 2001-10-23 Werner Koch <wk@gnupg.org>
8537 * keyedit.c (keyedit_menu): Changed helptext for showpref
8538 command. Suggested by Reinhard Wobst.
8540 * keyring.c (keyring_search): When marking the offtbl ready, take
8541 into account that we may have more than one keyring.
8543 2001-10-22 Werner Koch <wk@gnupg.org>
8545 * Makefile.am: Do not use OMIT_DEPENDENCIES
8547 * build-packet.c (build_sig_subpkt): Default is now to put all
8548 types of subpackets into the hashed area and only list those which
8549 should go into the unhashed area.
8551 2001-10-18 Werner Koch <wk@gnupg.org>
8553 * keydb.c (keydb_add_resource): Rearranged the way we keep track
8554 of the resource. There will now be an entry for each keyring here
8555 and not in keyring.c itself. Store a token to allow creation of a
8556 keyring handle. Changed all functions to utilize this new design.
8557 (keydb_locate_writable): Make a real implementation.
8558 * keyring.c (next_kr): Removed and changed all callers to set the
8559 resource directly from the one given with the handle.
8560 (keyring_is_writable): New.
8561 (keyring_rebuild_cache): Add an arg to pass the token from keydb.
8563 2001-10-17 Werner Koch <wk@gnupg.org>
8565 * keyring.c (keyring_search): Enabled word search mode but print a
8566 warning that it is buggy.
8568 2001-10-11 Werner Koch <wk@gnupg.org>
8570 * hkp.c (hkp_ask_import): No more need to set the port number for
8572 (hkp_export): Ditto.
8574 2001-10-06 Stefan Bellon <sbellon@sbellon.de>
8576 * passphrase.c [__riscos__]: Disabled agent specific stuff.
8577 * g10.c: New option --no-force-v3-sigs.
8579 2001-10-04 Werner Koch <wk@gnupg.org>
8581 * export.c (do_export_stream): Do not push the compress filter
8582 here because the context would run out of scope due to the
8583 iobuf_close done by the caller.
8584 (do_export): Do it here instead.
8586 2001-09-28 Werner Koch <wk@gnupg.org>
8588 * keyedit.c (sign_uids): Always use the primary key to sign keys.
8589 * getkey.c (finish_lookup): Hack to return only the primary key if
8590 a certification key has been requested.
8592 * trustdb.c (cmp_kid_for_make_key_array): Renamed to
8593 (validate_one_keyblock): this and changed arg for direct calling.
8594 (make_key_array): Renamed to
8595 (validate_one_keyblock): this and changed args for direct calling.
8596 (mark_usable_uid_certs, validate_one_keyblock)
8597 (validate_key_list): Add next_expire arg to keep track of
8599 (validate_keys): Ditto for UTKs and write the stamp.
8601 * tdbio.c (migrate_from_v2): Check return code of tbdio_sync.
8603 * tdbdump.c (import_ownertrust): Do a tdbio_sync().
8605 * keyring.c: Made the offtbl an global object.
8607 2001-09-27 Werner Koch <wk@gnupg.org>
8609 * pkclist.c (do_edit_ownertrust): Allow settin of ultimate trust.
8611 * trustdb.c (mark_keyblock_seen): New.
8612 (make_key_array): Use it to mark the subkeys too.
8613 (validate_keys): Store validity for ultimatly trusted keys.
8615 2001-09-26 Werner Koch <wk@gnupg.org>
8617 * pkclist.c (check_signatures_trust, do_we_trust): Removed the
8618 invocation of add_ownertrust. Minor changes to the wording.
8619 (add_ownertrust, add_ownertrust_cb): Removed.
8621 * trustdb.c (get_validity): Allow to lookup the validity using a
8624 * trustdb.c (new_key_hash_table): Increased the table size to 1024
8625 and changed the masks accordingly.
8626 (validate): Changed stats printing.
8627 (mark_usable_uid_certs): New.
8628 (cmp_kid_for_make_key_array): Does now check the signatures and
8629 figures out a usable one.
8631 2001-09-25 Werner Koch <wk@gnupg.org>
8633 * keyring.c (new_offset_item,release_offset_items)
8634 (new_offset_hash_table, lookup_offset_hash_table)
8635 (update_offset_hash_table, update_offset_hash_table_from_kb): New.
8636 (keyring_search): Use a offset table to optimize search for
8638 (keyring_update_keyblock, keyring_insert_keyblock): Insert new
8640 * getkey.c (MAX_UNK_CACHE_ENTRIES): Removed the unknown keys
8643 * g10.c, options.h, import.c: Removed the entire
8644 allow-secret-key-import stuff because the validity is now
8645 controlled by other means.
8647 * g10.c: New command --rebuild-keydb-caches.
8648 * keydb.c (keydb_rebuild_caches): New.
8649 * keyring.c (do_copy): Moved some code to
8650 (create_tmp_file, rename_tmp_file, write_keyblock): new functions.
8651 (keyring_rebuild_cache): New.
8653 * packet.h (PKT_ring_trust): Add sigcache field.
8654 * parse-packet.c (parse_trust): Parse sigcache.
8655 * keyring.c (do_copy): Always insert a sigcache packet.
8656 (keyring_get_keyblock): Copy the sigcache packet to the signature.
8657 * sig-check.c (cache_sig_result): Renamed from
8658 cache_selfsig_result. Changed implementation to use the flag bits
8659 and changed all callers.
8660 (mdc_kludge_check): Removed this unused code.
8661 (do_check): Do not set the sig flags here.
8663 * import.c (read_block): Make sure that ring_trust packets are
8665 * export.c (do_export_stream): and never export them.
8667 * trustdb.c (make_key_array): Skip revoked and expired keys.
8669 2001-09-24 Werner Koch <wk@gnupg.org>
8671 * g10.c, options.h: New option --no-auto-check-trustdb.
8673 * keygen.c (do_generate_keypair): Set newly created keys to
8676 * tdbio.h, tdbio.c: Removed all support for records DIR, KEY, UID,
8677 PREF, SIG, SDIR and CACH. Changed migration function to work
8679 (tdbio_read_nextcheck): New.
8680 (tdbio_write_nextcheck): New.
8682 2001-09-21 Werner Koch <wk@gnupg.org>
8684 Revamped the entire key validation system.
8685 * trustdb.c: Complete rewrite. No more validation on demand,
8686 removed some functions, adjusted to all callers to use the new
8687 and much simpler interface. Does not use the LID anymore.
8688 * tdbio.c, tdbio.h: Add new record types trust and valid. Wrote a
8689 migration function to convert to the new trustdb layout.
8690 * getkey.c (classify_user_id2): Do not allow the use of the "#"
8692 * keydb.h: Removed the TDBIDX mode add a skipfnc to the
8694 * keyring.c (keyring_search): Implemented skipfnc.
8696 * passphrase.c (agent_open): Add missing bracket. Include windows.h.
8698 2001-09-19 Werner Koch <wk@gnupg.org>
8700 * keylist.c (print_fingerprint): Renamed from fingerprint, made
8701 global available. Added new arg to control the print style.
8702 * mainproc.c (print_fingerprint): Removed.
8703 * pkclist.c (print_fpr, fpr_info): Removed and changed callers to
8704 use print_fingerprint.
8705 * keyedit.c (show_fingerprint): Ditto.
8707 * passphrase.c (writen, readn)
8708 (agent_open, agent_close)
8709 (agent_get_passphrase)
8710 (passphrase_clear_cache): Support for W32. Contributed by Timo.
8712 * import.c (import_one): Release keydb handles at 2 more places.
8714 * keyring.c (keyring_release): Close the iobuf.
8715 (keyring_get_keyblock): Init ret_kb to NULL and store error contidion.
8717 * import.c (import_new_stats_handle): New.
8718 (import_release_stats_handle): New.
8719 (import_print_stats): Renamed from static fnc print_stats.
8720 (import_keys, import_keys_stream): Add an optional status handle
8721 arg and changed all callers.
8722 * hkp.c (hkp_ask_import): Add an stats_handle arg and changed all
8725 * mainproc.c (print_pkenc_list): Use print_utf8_string2().
8727 2001-09-18 Werner Koch <wk@gnupg.org>
8729 * g10.c: New command --refresh-keys.
8730 * hkp.c (hkp_refresh_keys): New. Contributed by Timo Schulz.
8732 * parse-packet.c (parse): Stop on impossible packet lengths.
8734 2001-09-17 Werner Koch <wk@gnupg.org>
8736 * mainproc.c (print_notation_data): Wrap notation data status lines
8739 * mainproc.c (proc_pubkey_enc): Make option try-all-secrets work.
8740 By disastry@saiknes.lv.
8742 2001-09-14 Werner Koch <wk@gnupg.org>
8744 * parse-packet.c (dump_sig_subpkt): List key server preferences
8745 and show the revocable flag correctly. Contributed by David Shaw.
8747 2001-09-09 Werner Koch <wk@gnupg.org>
8749 * keyedit.c (keyedit_menu): No need to define another p.
8751 * keylist.c (print_capabilities): s/used/use/ so that it
8752 does not shadow a global.
8753 * sign.c (sign_file): Renamed arg encrypt to encryptflag
8754 * keygen.c: Replaced all "usage" by "use".
8755 * misc.c (openpgp_pk_algo_usage): Ditto.
8757 * pubkey-enc.c (get_it): Renamed arg k to enc so that the later
8758 defined k does not shadow it.
8760 * parse-packet.c (parse_gpg_control): No need to define another i.
8762 * getkey.c (get_pubkey_byfprint): Must use the enum values and not
8764 * keyring.c (keyring_search): Removed a non-sense break. Both
8765 bugs pointed out by Stefan.
8767 2001-09-07 Werner Koch <wk@gnupg.org>
8769 * status.c, status.h: Added NO_RECP and ALREADY_SIGNED.
8770 * pkclist.c (build_pk_list): Issue NO_RECP.
8771 * keyedit.c (sign_uids): Added experimental ALREADY_SIGNED
8773 * hkp.c (hkp_import): Use log_error. Bug reported by Neal H
8776 * getkey.c (classify_user_id2): Change args to take the desc union
8777 direct. It was a stupid idea to pass the individual fields of an
8778 union to this function. Changed all callers.
8779 (classify_user_id): Ditto and allow to pass NULL as the description.
8781 2001-09-06 Werner Koch <wk@gnupg.org>
8783 * getkey.c (fixup_uidnode): Features flag is now a bit vector.
8784 * keygen.c (add_feature_mdc): Ditto.
8786 Revamped the entire key I/O code to be prepared for other ways of
8787 key storages and to get rid of the existing shit. GDBM support has
8790 * keyring.c, keyring.h: New.
8791 * ringedit.c: Removed. Moved some stuff to keyring.c
8792 * getkey.c: Changed everything related to the key retrieving
8793 functions which are now using the keydb_ functions.
8794 (prepare_search, word_match_chars, word_match)
8795 (prepare_word_match, compare_name): Moved to keyring.c
8796 (get_pubkey_byname): Removed ctx arg and add ret_kdbhd
8797 arg. Changed all callers.
8798 (key_byname): Use get_pubkey_end to release the context and take
8799 new ret_kbdhd arg. Changed all callers.
8800 (classify_user_id2): Fill the 16 byte fingerprint up with 4 null
8801 bytes not with zero bytes of value 4, tsss.
8802 * import.c (import_one): Updated to use the new keydb interface.
8803 (import_secret_one): Ditto.
8804 (import_revoke_cert): Ditto.
8805 * delkey.c (do_delete_key): Ditto.
8806 * keyedit.c (keyedit_menu): Ditto.
8807 (get_keyblock_byname): Removed.
8808 * revoke.c (gen_revoke): Ditto.
8809 * export.c (do_export_stream): Ditto.
8810 * trustdb.c (update_trustdb): Ditto.
8811 * g10.c, gpgv.c (main): Renamed add_keyblock_resource to
8813 * Makefile.am: Added and removed files.
8815 * keydb.h: Moved KBNODE typedef and MAX_FINGERPRINT_LEN to
8816 * global.h: this new header.
8818 2001-09-03 Werner Koch <wk@gnupg.org>
8820 * passphrase.c (agent_get_passphrase): Changed nread to size_t.
8821 (passphrase_clear_cache): Ditto.
8823 * keyid.c (mk_datestr): Avoid trigraphs.
8824 (fingerprint_from_pk): Cache the keyid in the pk.
8826 * options.h: Add opt.with_fingerprint so that we know whether the
8827 corresponding options was used.
8828 * g10.c (main): Set it here.
8829 * pkclist.c (check_signatures_trust): Always print fingerprint
8830 when this option is used. Mixed a minor memory leak.
8832 * status.c, status.h: New status INV_RECP.
8833 * pkclist.c (build_pk_list): Issue this status.
8835 2001-08-31 Werner Koch <wk@gnupg.org>
8837 * parse-packet.c (parse_key,parse_pubkeyenc)
8838 (parse_signature): Return error on reading bad MPIs.
8840 * mainproc.c (check_sig_and_print): Always print the user ID even
8841 if it is not bound by a signature. Use the primary UID in the
8842 status messages and encode them in UTF-8
8843 * status.c (write_status_text_and_buffer): New.
8845 2001-08-30 Werner Koch <wk@gnupg.org>
8847 * packet.h (sigsubpkttype_t): Add SIGSUBPKT_FEATURES.
8848 (PKT_public_key, PKT_user_id): Add a flag for it.
8849 * parse-packet.c, build-packet.c: Add support for them.
8850 * getkey.c (fixup_uidnode, merge_selfsigs): Set the MDC flags.
8851 * keygen.c (add_feature_mdc): New.
8852 (keygen_upd_std_prefs): Always set the MDC feature.
8853 * keyedit.c (show_prefs): List the MDC flag
8854 * pkclist.c (select_mdc_from_pklist): New.
8855 * encode.c (encode_crypt, encrypt_filter): Test whether MDC
8857 * cipher.c (write_header): Set MDC use depending on the above test.
8858 Print more status info.
8860 * delkey.c (do_delete_key): Kludge to delete a secret key with no
8861 public key available.
8863 * ringedit.c (find_secret_keyblock_direct): New.
8864 * getkey.c (seckey_available): Simplified.
8866 * ringedit.c (cmp_seckey): Now compares the secret key against the
8867 public key while ignoring all secret parts.
8868 (keyring_search): Use a public key packet as arg. Allow to search
8870 (search): Likewise. Changed all callers.
8871 (find_secret_keyblock_bypk): New.
8872 (find_secret_keyblock_byname): First locate the pubkey and then
8873 find the correponding secret key.
8874 * parse-packet.c (parse): Renamed pkttype arg to onlykeypkts and
8875 changed code accordingly. Changed all callers.
8876 (search_packet): Removed pkttype arg.
8877 * keyedit.c (keyedit_menu): First locate the public key and then
8878 try to locate a secret key.
8880 * ringedit.c (locate_keyblock_by_fpr): Removed.
8881 (locate_keyblock_by_keyid): Removed.
8882 (find_keyblock_bysk): Removed.
8884 * sig-check.c (check_key_signature2): Print the keyid along with
8885 the wrong sig class errors.
8887 2001-08-24 Werner Koch <wk@gnupg.org>
8889 * sign.c (sign_file): Stripped the disabled comment packet code.
8890 (sign_file, sign_symencrypt_file): Moved common code to ..
8891 (write_onepass_sig_packets): .. this new function.
8892 (sign_file, clearsign_file, sign_symencrypt_file): Moved common
8894 (write_signature_packets): this new function.
8895 (write_signature_packets, make_keysig_packet)
8896 (update_keysig_packet): Moved common code to
8897 (hash_uid, hash_sigclass_to_magic): these new functions
8898 (sign_file, sign_symencrypt_file): Moved common code to
8899 (write_plaintext_packet): this new function.
8901 2001-08-21 Stefan Bellon <sbellon@sbellon.de>
8903 * trustdb.c (query_trust_info): Changed trustlevel to signed int.
8904 * g10.c [__riscos__]: Fixed handling of --use-agent --lock-multiple.
8906 2001-08-20 Werner Koch <wk@gnupg.org>
8908 * encr-data.c (decrypt_data): Keep track on whether we already
8909 printed information about the used algorithm.
8910 * mainproc.c (proc_encrypted): Removed the non-working IDEA hack
8911 and print a message about the assumed algorithm.
8912 * passphrase.c (passphrase_to_dek): Use the same algorithm as above.
8913 (proc_symkey_enc): Print the algorithm, so that the user knows it
8914 before entering the passphrase.
8915 (proc_pubkey_enc, proc_pubkey_enc): Zero the DEK out.
8916 * encode.c (encode_crypt, encrypt_filter): Ditto.
8918 * g10.c: Allow for --sign --symmetric.
8919 * sign.c (sign_and_symencrypt): New.
8921 Applied patches from Stefan Bellon <sbellon@sbellon.de> to support
8922 RISC OS. Nearly all of these patches are identified by the
8924 * compress.c: Added a couple of casts.
8925 * g10.c [__riscos__]: Some patches and new options foo-file similar
8926 to all foo-fd options.
8927 * gpgv.c, openfile.c, ringedit.c, tdbio.c: Minor fixes. Mainly
8928 replaced hardcoded path separators with EXTSEP_S like macros.
8929 * passprase.c [__riscos__]: Disabled agent stuff
8930 * trustdb.c (check_trust): Changed r_trustlevel to signed int to
8931 avoid mismatch problems in pkclist.c
8932 * pkclist.c (add_ownertrust): Ditto.
8933 * plaintext.c (handle_plaintext) [__riscos__]: Print a note when
8934 file can't be created.
8935 * options.h [__riscos__]: Use an extern unless included from the
8937 * signal.c (got_fatal_signal) [__riscos__]: Close all files.
8939 2001-08-14 Werner Koch <wk@gnupg.org>
8941 * keygen.c (ask_algo): New arg r_usage. Allow for RSA keys.
8942 (gen_rsa): Enabled the code.
8943 (do_create): Enabled RSA branch.
8944 (parse_parameter_usage): New.
8945 (proc_parameter_file): Handle usage parameter.
8946 (read_parameter_file): Ditto.
8947 (generate_keypair): Ditto.
8948 (generate_subkeypair): Ditto.
8949 (do_generate_keypair): Ditto.
8950 (do_add_key_flags): New.
8951 (keygen_add_std_prefs): Use the new function.
8952 (keygen_add_key_flags_and_expire): New.
8953 (write_selfsig, write_keybinding): Handle new usage arg.
8954 * build-packet.c (build_sig_subpkt): Make sure that key flags go
8955 into the hashed area.
8957 * keygen.c (write_uid): Initialize the reference cunter.
8959 * keyedit.c (keyedit_menu): No more need to update the trustdb for
8960 preferences. Added calls to merge keblock.
8962 * kbnode.c (dump_kbnode): Print some more flags.
8964 2001-08-10 Werner Koch <wk@gnupg.org>
8966 Revamped the preference handling.
8968 * packet.h (prefitem_t, preftype_t): New.
8969 (PKT_public_key): Added a uid field.
8970 (PKT_user_id): Added field to store preferences and a reference
8972 * parse-packet.c (parse_user_id,parse_photo_id): Initialize them
8973 * free-packet.c (free_user_id): Free them.
8974 (copy_user_id): Removed.
8975 (scopy_user_id): New.
8976 (cmp_user_ids): Optimized for identical pointers.
8977 (release_public_key_parts): Release the uid.
8978 (copy_public_key_with_new_namehash): Removed.
8980 * keyedit.c (menu_adduid): Use the new shallow copy user id.
8981 (show_prefs): Adjusted implementation.
8982 (keyedit_menu): No more need to update the trustdb after changing
8984 * getkey.c (fixup_uidnode): Store preferences.
8985 (find_by_name): Return a user id packet and remove namehash stuff.
8986 (lookup): Removed the unused namehash stuff.
8987 (finish_lookup): Added foundu arg.
8988 (pk_from_block): Removed the namehash arg and changed all callers.
8989 (merge_selfsigs): Copy prefs to all keys.
8990 * trustdb.c (get_pref_data): Removed.
8991 (is_algo_in_prefs): Removed.
8992 (make_pref_record): Deleted and removed all class.
8993 * pkclist.c (select_algo_from_prefs): Adjusted for the new
8994 preference implementation.
8995 * pubkey-enc.c (is_algo_in_prefs): New.
8996 (get_it): Use that new function.
8998 2001-08-09 Werner Koch <wk@gnupg.org>
9000 * build-packet.c (build_sig_subpkt): Fixed calculation of
9003 * g10.c (main): New option "--preference-list"
9004 * keyedit.c (keyedit_menu): New commands "setpref" and "updpref".
9005 (menu_set_preferences): New.
9006 * keygen.c (keygen_set_std_prefs): New.
9007 (set_one_pref): New.
9008 (check_zip_algo): New.
9009 (keygen_get_std_prefs): New.
9010 (keygen_upd_std_prefs): New
9011 (keygen_add_std_prefs): Move the pref setting code into the above fnc.
9012 * build-packet.c (build_sig_subpkt): Updated the list of allowed
9013 to update subpackets.
9015 2001-08-08 Werner Koch <wk@gnupg.org>
9017 * packet.h (subpktarea_t): New.
9018 (PKT_signature): Use that type for hashed_data and unhashed_data and
9019 removed the _data prefix from those fields. Changed all users.
9020 * parse-packet.c (parse_signature): Changed allocation for that.
9021 (parse_sig_subpkt): Changed declaration
9022 (enum_sig_subpkt): Ditto and changed implementation accordingly.
9023 * free-packet.c (cp_subpktarea): Renamed from cp_data_block and
9024 adjusted implementation. Changed caller.
9025 * sig-check.c (mdc_kludge_check): Adjusted the hashing.
9027 * sign.c (sign_file, clearsign_file, make_keysig_packet,
9028 update_keysig_packet): Ditto.
9029 * build-packet.c (build_sig_subpkt): Partial rewrite.
9030 (find_subpkt): Adjusted and made static.
9031 (delete_sig_subpkt): Adjusted.
9032 (do_signature): Ditto.
9034 * keygen.c (ask_keysize): Do not print the notes about suggested
9035 key sizes if just a DSA key is generated.
9037 * trustdb.c (add_ultimate_key): s/log_error/log_info/ for
9038 duplicated inserted trusted keys.
9040 2001-08-07 Werner Koch <wk@gnupg.org>
9042 * sign.c (sleep): Redefine for W32.
9044 * g10.c, options.h: Set new flag opt.no_homedir_creation when
9045 --no-options is given.
9046 * openfile.c (try_make_homedir): Don't create the homedir in that case.
9048 2001-08-03 Werner Koch <wk@gnupg.org>
9050 * armor.c (armor_filter): Removed the default comment string
9051 because it could get us in trouble due to translations using non
9054 2001-08-01 Werner Koch <wk@gnupg.org>
9056 * keylist.c (list_keyblock_print): Do not list revoked UIDs unless
9057 in verbose mode and we do no signature listing.
9059 * getkey.c (finish_lookup): Skip subkeys which are not yet valid.
9060 * g10.c, options.h: New option --ignore-valid-from.
9062 * sign.c (make_keysig_packet): Added new sigversion argument to
9063 allow the caller to force generation of required signature
9064 version. Changed all callers. Suggested by Thomas Roessler.
9066 * keyedit.c (sign_uids): Force v4 signature generation for local
9067 sigs. Removed the check for local signature and pre-v4 keys.
9069 2001-07-27 Werner Koch <wk@gnupg.org>
9071 * keyedit.c (sign_uids): Check that we are not trying to to a
9072 lsign with a pre-v4 key. Bug noticed by Thomas Roessler.
9074 2001-07-26 Werner Koch <wk@gnupg.org>
9076 * parse-packet.c (parse_photo_id): Reset all variables.
9077 * getkey.c (merge_selfsigs_main): Removed checks on PHOTO_ID
9078 because this is handled identically to a user ID.
9080 2001-07-06 Werner Koch <wk@gnupg.org>
9082 * cipher.c (write_header): Don't use MDC with --rfc1991. Suggested
9083 by disastry@saiknes.lv.
9085 2001-07-05 Werner Koch <wk@gnupg.org>
9087 * g10.c, options.h: New option --preserve-permissions.
9088 * ringedit.c (add_keyblock_resource): Use it here
9089 (keyring_copy): and here.
9091 * trustdb.c (verify_own_keys): Be more silent on --quiet.
9092 Suggested by Thomas Roessler.
9093 * sig-check.c (check_key_signature2): Ditto.
9094 * mainproc.c (proc_encrypted, proc_tree): Ditto
9095 * getkey.c (lookup): Ditto.
9097 2001-07-04 Werner Koch <wk@gnupg.org>
9099 * ringedit.c (add_keyblock_resource): Restore filename in case of error.
9101 2001-06-25 Werner Koch <wk@gnupg.org>
9103 * kbnode.c (dump_kbnode): Print the signature timestamp.
9105 * keyedit.c (keyedit_menu): New menu point "primary".
9106 (change_primary_uid_cb): New.
9107 (menu_set_primary_uid): New.
9108 * sign.c (update_keysig_packet): New.
9109 * build-packet.c (build_sig_subpkt): Put the primary UID flag into
9110 the hashed area. Allow update of some more packets.
9112 2001-06-15 Werner Koch <wk@gnupg.org>
9114 * getkey.c (merge_selfsigs): Exit gracefully when a secret key is
9115 encountered. May happen if a secret key is in public keyring.
9116 Reported by Francesco Potorti.
9118 2001-06-12 Werner Koch <wk@gnupg.org>
9120 * getkey.c (compare_name): Use ascii_memistr(), ascii_memcasecmp()
9121 * keyedit.c (keyedit_menu): Use ascii_strcasecmp().
9122 * armor.c (radix64_read): Use ascii_toupper().
9123 * ringedit.c (do_bm_search): Ditto.
9124 * keygen.c (read_parameter_file): Ditto.
9125 * openfile.c (CMP_FILENAME): Ditto.
9126 * g10.c (i18n_init): We can now use just LC_ALL.
9128 2001-05-29 Werner Koch <wk@gnupg.org>
9130 * keygen.c (generate_subkeypair): Print a warning if a subkey is
9131 created on a v3 key. Suggested by Brian M. Carlson.
9133 2001-05-27 Werner Koch <wk@gnupg.org>
9135 * keyid.c (get_lsign_letter): New.
9136 * keylist.c (list_keyblock_colon): Use it here.
9137 * mainproc.c (list_node): and here.
9139 * getkey.c, packet.h, free-packet.c: Removed that useless key
9140 created field; I dunno why I introducded this at all - the
9141 creation time is always bound to the key packet and subject to
9142 fingerprint calculation etc.
9144 * getkey.c (fixup_uidnode): Add keycreated arg and use this
9145 instead of the signature timestamp to calculate the
9146 help_key_expire. Bug reported by David R. Bergstein.
9147 (merge_selfsigs_main): Correct key expiration time calculation.
9148 (merge_selfsigs_subkey): Ditto.
9150 2001-05-25 Werner Koch <wk@gnupg.org>
9152 * revoke.c (gen_revoke): Add a cast to a tty_printf arg.
9153 * delkey.c (do_delete_key): Ditto.
9154 * keyedit.c (print_and_check_one_sig): Ditto.
9155 (ask_revoke_sig): Ditto.
9156 (menu_revsig): Ditto.
9157 (check_all_keysigs): Removed unused arg.
9159 2001-05-23 Werner Koch <wk@gnupg.org>
9161 * g10.c (opts): Typo fix by Robert C. Ames.
9163 2001-05-06 Werner Koch <wk@gnupg.org>
9165 * revoke.c: Small typo fix
9167 2001-05-04 Werner Koch <wk@gnupg.org>
9169 * passphrase.c (passphrase_clear_cache): Shortcut if agent usage
9172 2001-05-01 Werner Koch <wk@gnupg.org>
9174 * passphrase.c (writen): Replaced ssize_t by int. Thanks to
9175 to Robert Joop for reporting that SunOS 4.1.4 does not have it.
9177 2001-04-28 Werner Koch <wk@gnupg.org>
9179 * getkey.c (merge_public_with_secret): pkttype was not set to subkey.
9181 2001-04-27 Werner Koch <wk@gnupg.org>
9183 * skclist.c (build_sk_list): Changed one log_debug to log_info.
9185 2001-04-25 Werner Koch <wk@gnupg.org>
9187 * keyedit.c (show_prefs): Add a verbose mode.
9188 (show_key_with_all_names): Pass verbose flag for special value of
9190 (keyedit_menu): New command "showpref"
9191 (show_key_with_all_names): Mark revoked uids and the primary key.
9193 2001-04-24 Werner Koch <wk@gnupg.org>
9195 * getkey.c (get_primary_uid): Return a different string in case of
9196 error and made it translatable.
9198 * build-packet.c (do_secret_key): Ugly, we wrote a zero
9199 instead of the computed ndays. Thanks to M Taylor for complaining
9200 about a secret key import problem.
9202 2001-04-23 Werner Koch <wk@gnupg.org>
9204 * hkp.c (hkp_ask_import): Allow to specify a port number for the
9205 keyserver. Add a kudge to set the no_shutdown flag.
9206 (hkp_export): Ditto.
9207 * options.skel: Document the changes
9209 2001-04-20 Werner Koch <wk@gnupg.org>
9211 * options.skel: Add some more comments.
9213 2001-04-19 Werner Koch <wk@gnupg.org>
9215 * keyid.c (mk_datestr): New. Handles negative times. We must do
9216 this because Windoze segvs on negative times passed to gmtime().
9217 Changed all datestr_from function to use this one.
9219 * keyid.c, keyid.h (colon_strtime): New. To implement the
9221 (colon_datestr_from_pk): New.
9222 (colon_datestr_from_sk): New.
9223 (colon_datestr_from_sig): New.
9224 * keylist.c (list_keyblock_colon): Use these functions here.
9225 * mainproc.c (list_node): Ditto.
9227 2001-04-18 Werner Koch <wk@gnupg.org>
9229 * openfile.c (open_sigfile): Fixed the handling of ".sign".
9230 * mainproc.c (proc_tree): Use iobuf_get_real_fname.
9231 Both are by Vincent Broman.
9233 2001-04-14 Werner Koch <wk@gnupg.org>
9235 * getkey.c (fixup_uidnode): Removed check for !sig which is
9236 pointless here. Thanks to Jan Niehusmann.
9238 2001-04-10 Werner Koch <wk@gnupg.org>
9240 * sig-check.c (check_key_signature2): Use log_info instead of
9241 log_error so that messed up keys do not let gpg return an error.
9242 Suggested by Christian Kurz.
9244 * getkey.c (merge_selfsigs_main): Do a fixup_uidnode only if we
9245 have both, uid and sig. Thanks to M Taylor.
9247 2001-04-05 Werner Koch <wk@gnupg.org>
9249 * armor.c (unarmor_pump_new,unarmor_pump_release): New.
9250 (unarmor_pump): New.
9251 * pipemode.c (pipemode_filter): Use the unarmor_pump to handle
9252 armored or non-armored detached signatures. We can't use the
9253 regular armor_filter becuase this does only chack for armored
9254 signatures the very first time. In pipemode we may have a mix of
9255 armored and binary detached signatures.
9256 * mainproc.c (proc_tree): Do not print the "old style" notice when
9257 this is a pipemode processes detached signature.
9258 (proc_plaintext): Special handling of pipemode detached sigs.
9260 * packet.h (CTRLPKT_PLAINTEXT_MARK): New.
9261 * parse-packet.c (create_gpg_control): New.
9262 * kbnode.c (dump_kbnode): Support it here.
9263 * mainproc.c (check_sig_and_print): Fixed the check for bad
9264 sequences of multiple signatures.
9265 (proc_plaintext): Add the marker packet.
9266 (proc_tree): We can now check multiple detached signatures.
9268 2001-04-02 Werner Koch <wk@gnupg.org>
9270 The length of encrypted packets for blocksizes != 8 was not
9271 correct encoded. I think this is a minor problem, because we
9272 usually use partial length packets. Kudos to Kahil D. Jallad for
9274 * packet.h: Add extralen to PKT_encrypted.
9275 * cipher.c (write_header): Set extralen.
9276 * build-packet.c (do_encrypted): Use extralen instead of const 10.
9277 (do_encrypted_mdc): Ditto.
9278 * parse-packet.c (parse_encrypted): Set extralen to 0 because we
9281 2001-03-30 Werner Koch <wk@gnupg.org>
9283 * getkey.c (premerge_public_with_secret): Changed wording an add
9284 the keyID to the info message.
9286 2001-03-29 Werner Koch <wk@gnupg.org>
9288 * getkey.c (premerge_public_with_secret): Use log_info instead of
9289 log_error when no secret key was found for a public one.
9290 Fix the usage if the secret parts of a key are not available.
9292 * openfile.c (ask_outfile_name): Trim spaces.
9293 (open_outfile): Allow to enter an alternate filename. Thanks to
9295 * plaintext.c (handle_plaintext): Ditto.
9297 2001-03-28 Werner Koch <wk@gnupg.org>
9299 * mainproc.c (do_check_sig): Allow direct key and subkey
9300 revocation signature.
9301 * sig-check.c (check_key_signature2): Check direct key signatures.
9302 Print the signature class along with an error.
9304 2001-03-27 Werner Koch <wk@gnupg.org>
9306 * packet.h: Add a missing typedef to an enum. Thanks to Stefan Bellon.
9308 * g10.c: New option --no-sig-create-check.
9309 * sign.c (do_sign): Implement it here.
9310 * g10.c: New option --no-sig-cache.
9311 * sig-check.c (check_key_signature2): Implement it here.
9312 (cache_selfsig_result): and here.
9314 * keylist.c (list_keyblock): Removed debugging stuff.
9316 * getkey.c (cache_public_key): Made global.
9317 * keygen.c (write_selfsig, write_keybinding): Cache the new key.
9319 * getkey.c (key_byname): Add new arg secmode and changed all
9320 callers to request explicitly the mode. Deriving this information
9321 from the other supplied parameters does not work if neither pk nor
9324 2001-03-25 Werner Koch <wk@gnupg.org>
9326 * packet.h (ctrlpkttype_t): New.
9327 * mainproc.c (add_gpg_control,proc_plaintext,proc_tree): Use the
9329 * pipemode.c (make_control): Ditto.
9330 * armor.c (armor_filter): Ditto.
9332 2001-03-24 Werner Koch <wk@gnupg.org>
9334 * sign.c (do_sign): Verify the signature right after creation.
9336 2001-03-23 Werner Koch <wk@gnupg.org>
9338 * status.c, status.h (STATUS_UNEXPECTED): New.
9339 * mainproc.c (do_proc_packets): And emit it here.
9341 2001-03-21 Werner Koch <wk@gnupg.org>
9343 * status.c: Add sys/types.h so that it runs on Ultrix. Reported
9346 * build-packet.c (build_sig_subpkt): Fixed generaton of packet
9347 length header in case where 2 bytes headers are needed. Thanks to
9350 2001-03-19 Werner Koch <wk@gnupg.org>
9352 * g10.c (main): the default keyring is no always used unless
9353 --no-default-keyring is given.
9355 * ringedit.c (add_keyblock_resource): invalidate cache after file
9358 2001-03-15 Werner Koch <wk@gnupg.org>
9360 * keygen.c (ask_algo): Changed the warning of the ElGamal S+E Algo.
9362 * keylist.c (print_capabilities): New.
9363 (list_keyblock_colon): and use it here.
9365 2001-03-13 Werner Koch <wk@gnupg.org>
9367 * main.c, options.h: New option --fixed_list_mode.
9368 * keylist.c (list_keyblock_colon): use it here.
9370 * getkey.c (merge_keys_and_selfsig): Divert merging of public keys
9371 to the function used in key selection..
9372 * keylist.c (is_uid_valid): Removed.
9373 (list_keyblock): Splitted into ..
9374 (list_keyblock_print, list_keyblock_colon): .. these.
9375 functions. Changed them to use the flags set in the key lookup code.
9376 (reorder_keyblock): New, so that primary user IDs are listed first.
9378 * ringedit.c (keyring_copy): flush the new iobuf chaces before
9379 rename or remove operations. This is mainly needed for W32.
9381 * hkp.c [HAVE_DOSISH_SYSTEM]: Removed the disabled code because we
9382 have now W32 socket support in ../util/http.c
9384 * skclist.c (key_present_in_sk_list): New.
9385 (is_duplicated_entry): New.
9386 (build_sk_list): Check for duplicates and do that before unlocking.
9388 2001-03-12 Werner Koch <wk@gnupg.org>
9390 * armor.c (parse_header_line): Removed double empty line check.
9391 (parse_header_line): Replaced trim_trailing_ws with a counting
9392 function so that we can adjust for the next read.
9394 * options.skel: Fixed 3 typos. By Thomas Klausner. Replaced the
9395 keyserver example by a better working server.
9397 * parse-packet.c (parse_symkeyenc): Return Invalid_Packet on error.
9398 (parse_pubkeyenc): Ditto.
9399 (parse_onepass_sig): Ditto.
9400 (parse_plaintext): Ditto.
9401 (parse_encrypted): Ditto.
9402 (parse_signature): Return error at other places too.
9404 * g10.c (main): Set opt.list_packets to another value when invoked
9405 with the --list-packets command.
9406 * mainproc.c (do_proc_packets): Don's stop processing when running
9407 under --list-packets command.
9409 * signal.c (do_sigaction): Removed.
9410 (init_one_signal): New to replace the above. Needed to support
9411 systems without sigactions. Suggested by Dave Dykstra.
9412 (got_fatal_signal,init_signals): Use the above here.
9413 (do_block): Use sigset() if sigprocmask() is not available.
9415 * armor.c (parse_hash_header): Test on TIGER192, which is the
9416 correct value as per rfc2440. By Edwin Woudt.
9418 2001-03-08 Werner Koch <wk@gnupg.org>
9420 * misc.c: Include time.h. By James Troup.
9422 * getkey.c: Re-enabled the unknown user Id and PK caches and
9423 increased their sizes.
9425 * getkey.c (merge_selfsigs_main): Set expire date and continue
9426 processing even if we found a revoked key.
9427 (merge_selfsigs_subkeys): Ditto.
9429 * packet.h: Add an is_revoked flag to the user_id packet.
9430 * getkey.c (fixup_uidnode): Set that flag here.
9431 (merge_selfsigs_main): Fix so that the latest signature is used to
9432 find the self-signature for an UID.
9433 * parse-packet.c (parse_user_id): Zero out all fields.
9434 * mainproc.c (check_sig_and_print): Print the primary user ID
9435 according the the node flag and then all other non-revoked user IDs.
9436 (is_uid_revoked): Removed; it is now handled by the key selection code.
9438 Changed the year list of all copyright notices.
9440 2001-03-07 Werner Koch <wk@gnupg.org>
9442 * getkey.c (finish_lookup): Print an info message only in verbose mode.
9444 2001-03-05 Werner Koch <wk@gnupg.org>
9446 * packet.h: Replaced sigsubpkt_t value 101 by PRIV_VERIFY_CACHE.
9447 We have never used the old value, so we can do this without any harm.
9448 * parse-packet.c (dump_sig_subpkt): Ditto.
9449 (parse_one_sig_subpkt): Parse that new sub packet.
9450 * build-packet.c (build_sig_subpkt): Removed the old one from the
9452 (delete_sig_subpkt): New.
9453 (build_sig_subpkt): Allow an update of that new subpkt.
9454 * sig-check.c (check_key_signature2): Add verification caching
9455 (cache_selfsig_result): New.
9456 * export.c (do_export_stream): Delete that sig subpkt before exporting.
9457 * import.c (remove_bad_stuff): New.
9458 (import): Apply that function to all imported data
9460 2001-03-03 Werner Koch <wk@gnupg.org>
9462 * getkey.c: Introduced a new lookup context flag "exact" and used
9463 it in all place where we once used primary.
9464 (classify_user_id2): Replaced the old function and add an extra
9465 argument to return whether an exact keyID has been requested.
9466 (key_byname): Removed the unused ctx.primary flag
9467 (get_seckey_byname2): Ditto.
9468 (finish_lookup): Changed debugging output.
9470 2001-03-02 Werner Koch <wk@gnupg.org>
9472 * keylist.c (list_one): Remove the merge key calls.
9474 2001-03-01 Werner Koch <wk@gnupg.org>
9476 * getkey.c (finish_lookup): Don't use it if we no specific usage
9478 (merge_selfsigs_main): fix UID only if we have an signature.
9479 (lookup): Return UNU_PUBKEY etc. instead of NO_PUBKEY if we found
9480 a key but the requested usage does not allow this key.
9481 * import.c (import_one): Take UNU_PUBKEY into account.
9482 * mainproc.c (list_node): Ditto.
9483 * keylist.c (list_keyblock): Ditto.
9484 * keyedit.c (print_and_check_one_sig): Ditto.
9486 2001-02-09 Werner Koch <wk@gnupg.org>
9488 * delkey.c (delete_key): Removed that silly assert which rendered
9489 the whole new stuff meaningless.
9491 2001-02-08 Werner Koch <wk@gnupg.org>
9493 * getkey.c (key_byname): It can happen that we have both, sk and pk
9496 * parse-packet.c (parse_one_sig_subpkt): Add support for
9497 primary_uid and key_flags.
9498 (can_handle_critical): Ditto
9500 * parse-packet.c (parse_encrypted): Fixed listing of pktlen for
9503 * getkey.c: Backported the version of this file from gpg 1.1. this
9504 involved some changes in other files too.
9505 * parse-packet.c (parse_key): Clear req_usage.
9506 * skclist.c (build_sk_list): Use req_usage to pass the usage
9507 information to the lookup function.
9508 * pkclist.c (build_pk_list): Ditto.
9509 * free-packet.c (copy_public_parts_to_secret_key): New.
9510 * keydb.h: Add IS_* macros to check the sig_class.
9511 * misc.c (openpgp_cipher_test_algo): New.
9512 (openpgp_pk_test_algo): New.
9513 (openpgp_pk_algo_usage): New.
9514 (openpgp_md_test_algo): New.
9515 * packet.h: Add a few fields to PKT_{public,secret}_key and
9517 * seckey-cert.c (do_check): Use the new main_keyid field.
9519 2001-02-04 Werner Koch <wk@gnupg.org>
9521 * encr-data.c (decrypt_data): Catch error when we had problems to
9522 parse the encrypted packet. By Timo.
9524 2001-01-29 Werner Koch <wk@gnupg.org>
9526 * g10.c (main): --batch does now set nogreeting.
9528 * delkey.c (do_delete_key): Fixed delete-both functionality.
9530 2001-01-22 Werner Koch <wk@gnupg.org>
9532 * g10.c: New command --delete-secret-and-public-key.
9533 * delkey.c (delete_key): Add new arg allow_both.
9534 (do_delete_key): Move most stuff from above to this new function.
9536 2001-01-12 Werner Koch <wk@gnupg.org>
9538 * passphrase.c (passphrase_to_dek): Use MD5 when IDEA is installed
9540 * mainproc.c (proc_encrypted): Likewise
9542 2001-01-11 Werner Koch <wk@gnupg.org>
9544 * sig-check.c (do_check): Print the signature key expire message
9545 only in verbose mode and added the keyID.
9547 2001-01-09 Werner Koch <wk@gnupg.org>
9549 * status.c, status.h: New status USERID_HINT.
9550 (write_status_text): Replace LF and CR int text by C-escape sequence.
9552 * passphrase.c (passphrase_to_dek): Fixed the NEED_PASSPHRASE
9553 output. It does now always print 2 keyIDs. Emit the new
9556 2001-01-08 Werner Koch <wk@gnupg.org>
9558 * g10.c, options.h: New option --no-expensive-trust-checks.
9559 * keylist.c (list_keyblock): Act on this option.
9561 2001-01-04 Werner Koch <wk@gnupg.org>
9563 * g10.c (main): Set homedir only in the pre-parsing phase and
9564 replace backslashes in the W32 version.
9566 2001-01-03 Werner Koch <wk@gnupg.org>
9568 * status.c, status.h : New status KEY_CREATED
9569 * keygen.c (do_generate_keypair,generate_subkeypair): Emit it.
9571 2000-12-28 Werner Koch <wk@gnupg.org>
9573 * signal.c (got_fatal_signal): Remove lockfiles here because the
9574 atexit stuff does not work due to the use of raise. Suggested by
9576 * gpgv.c (remove_lockfiles): New stub.
9578 2000-12-19 Werner Koch <wk@gnupg.org>
9580 * status.c, status.h (cpr_get_no_help): New.
9581 * keyedit.c (keyedit_menu): Use it here because we have our own
9584 2000-12-18 Werner Koch <wk@gnupg.org>
9586 * mainproc.c (print_failed_pkenc): Don't print the sometimes
9587 confusing message about unavailabe secret key. Renamed ...
9588 (print_pkenc_list): ... to this and introduced failed arg.
9589 (proc_encrypted): Print the failed encryption keys and then
9591 (proc_pubkey_enc): Store also the key we are going to use.
9593 * mainproc.c (check_sig_and_print): Don't list revoked user IDs.
9594 (is_uid_revoked): New.
9596 2000-12-08 Werner Koch <wk@gnupg.org>
9598 * pipemode.c: Made the command work. Currently only for
9599 non-armored detached signatures.
9600 * mainproc.c (release_list): Reset the new pipemode vars.
9601 (add_gpg_control): Handle the control packets for pipemode
9602 * status.c, status.h: New stati {BEGIN,END}_STREAM.
9604 2000-12-07 Werner Koch <wk@gnupg.org>
9606 * g10.c: New option --allow-secret-key-import.
9607 * import.c (import_keys,import_keys_stream): Honor this option.
9608 (import): New arg allow_secret and pass that arg down to ...
9609 (import_secret_one): to this and print a warning if secret key
9610 importing is not allowed.
9612 2000-12-05 Werner Koch <wk@gnupg.org>
9614 * cipher.c (cipher_filter): Moved the end_encryption status ...
9615 * encode.c (encode_simple,encode_crypt): to here
9616 * sign.c (sign_file): and here.
9618 * status.c (mywrite): Removed.
9619 (get_status_string): Removed the LFs from the strings.
9620 (set_status_fd,is_status_enabed,write_status_text,
9621 write_status_buffer): Replaced all mywrite by stdio calls and use
9622 fdopen to create a strem. This is needed to make things smoother
9625 2000-12-04 Werner Koch <wk@gnupg.org>
9627 * import.c (merge_blocks): Increment n_sigs for revocations.
9629 2000-11-30 Werner Koch <wk@gnupg.org>
9631 * g10.c (main): Use iobuf_translate_file_handle for all options
9632 with filehandles as arguments. This is function does some magic
9635 * verify.c (verify_signatures): Add a comment rant about the
9636 detached signature problem.
9637 * mainproc.c (proc_tree): Issue an error if a detached signature
9638 is assumed but a standard one was found.
9639 * plaintext.c (hash_datafiles): Don't fall back to read signature
9641 * openfile.c (open_sigfile): Print verbose message only if the
9642 file could be accessed.
9644 2000-11-24 Werner Koch <wk@gnupg.org>
9646 * passphrase.c [HAVE_DOSISH_SYSTEM]: Disabled all the agent stuff.
9648 2000-11-16 Werner Koch <wk@gnupg.org>
9650 * g10.c: New option --use-agent
9651 * passphrase.c (agent_open,agent_close): New.
9652 (agent_get_passphrase,agent_clear_passphrase): New.
9653 (passphrase_clear_cache): New.
9654 (passphrase_to_dek): Use the agent here.
9655 * seckey-cert.c (do_check): Clear cached passphrases.
9657 2000-11-15 Werner Koch <wk@gnupg.org>
9659 * status.c (write_status_text): Moved the big switch to ...
9660 (get_status_string): ... new function.
9661 (write_status_buffer): New.
9663 * status.c (mywrite): New and replaced all write() by this.
9665 * status.c, status.h: Add 3 status lcodes for notaions and policy.
9666 * mainproc.c (print_notation_data): Do status output of notations.
9668 2000-11-13 Werner Koch <wk@gnupg.org>
9670 * sign.c (clearsign_file): Use LF macro to print linefeed.
9672 2000-11-11 Paul Eggert <eggert@twinsun.com>
9674 Clean up the places in the code that incorrectly use "long" or
9675 "unsigned long" for file offsets. The correct type to use is
9676 "off_t". The difference is important on large-file hosts,
9677 where "off_t" is longer than "long".
9679 * keydb.h (struct keyblock_pos_struct.offset):
9680 Use off_t, not ulong, for file offsets.
9681 * packet.h (dbg_search_packet, dbg_copy_some_packets,
9682 search_packet, copy_some_packets): Likewise.
9683 * parse-packet.c (parse, dbg_search_packet, search_packet,
9684 dbg_copy_some_packets, copy_some_packets): Likewise.
9685 * ringedit.c (keyring_search): Likewise.
9687 * parse-packet.c (parse): Do not use %lu to report file
9688 offsets in error diagnostics; it's not portable.
9689 * ringedit.c (keyring_search): Likewise.
9691 2000-11-09 Werner Koch <wk@gnupg.org>
9693 * g10.c (main): New option --enable-special-filenames.
9695 2000-11-07 Werner Koch <wk@gnupg.org>
9697 * g10.c (main): New command --pipemode.
9700 2000-10-23 Werner Koch <wk@gnupg.org>
9702 * armor.c (armor_filter): Changed output of hdrlines, so that a CR
9703 is emitted for DOS systems.
9705 * keygen.c (read_parameter_file): Add a cast for isspace().
9707 * status.c (myread): Use SIGINT instead of SIGHUP for DOS.
9709 2000-10-19 Werner Koch <wk@gnupg.org>
9711 * g10.c: New option --ignore-crc-error
9712 * armor.c (invalid_crc): New.
9713 (radix64_read): Act on new option.
9715 * openfile.c (try_make_homedir): Klaus Singvogel fixed a stupid
9716 error introduced on Sep 6th.
9718 2000-10-18 Werner Koch <wk@gnupg.org>
9720 * misc.c (print_cipher_algo_note): Don't print the note for AES.
9723 2000-10-16 Werner Koch <wk@gnupg.org>
9725 * mainproc.c (do_proc_packets): Hack to fix the problem that
9726 signatures are not detected when there is a MDC packet but no
9729 * g10.c (print_hashline): New.
9730 (print_mds): Use above func with --with-colons.
9732 * mainproc.c (check_sig_and_print): Detect multiple signatures
9733 and don't verify them.
9735 2000-10-14 Werner Koch <wk@gnupg.org>
9737 * mainproc.c (add_onepass_sig): There is an easier solution to the
9738 error fixed yesterday; just check that we only have onepass
9739 packets. However, the other solution provides an cleaner
9740 interface and opens the path to get access to other information
9741 from the armore headers.
9742 (release_list): Reset some more variables.
9744 2000-10-13 Werner Koch <wk@gnupg.org>
9746 * mainproc.c (add_gpg_control): New.
9747 (do_proc_packets): use it.
9748 (proc_plaintext): Changed logic to detect clearsigns.
9749 (proc_tree): Check the cleartext sig with some new code.
9751 * packet.h: New packet PKT_GPG_CONTROL.
9752 * parse-packet.c (parse_gpg_control): New.
9753 * misc.c (get_session_marker): New.
9754 * armor.c (armor_filter): Replaced the faked 1-pass packet by the
9757 * keyedit.c (keyedit_menu): Allow batchmode with a command_fd.
9758 * status.c (my_read): New.
9759 (do_get_from_fd): use it.
9761 2000-10-12 Werner Koch <wk@gnupg.org>
9763 * keygen.c (keygen_add_std_prefs): Add Rijndael to the prefs.
9765 2000-10-07 Werner Koch <wk@gnupg.org>
9767 * gpgv.c: Add more stubs for ununsed code to make the binary smaller.
9769 Wed Oct 4 15:50:18 CEST 2000 Werner Koch <wk@openit.de>
9771 * sign.c (hash_for): New arg to take packet version in account, changed
9775 * Makefile.am: Rearranged source files so that gpgv can be build with
9776 at least files as possible.
9778 Mon Sep 18 12:13:52 CEST 2000 Werner Koch <wk@openit.de>
9780 * hkp.c (not_implemented): Print a notice for W32
9782 Fri Sep 15 18:40:36 CEST 2000 Werner Koch <wk@openit.de>
9784 * keygen.c (keygen_add_std_prefs): Changed order of preferences to
9785 twofish, cast5, blowfish.
9787 * pkclist.c (algo_available): Removed hack to disable Twofish.
9789 Thu Sep 14 17:45:11 CEST 2000 Werner Koch <wk@openit.de>
9791 * parse-packet.c (dump_sig_subpkt): Dump key flags. Print special
9792 warning in case of faked ARRs.
9794 * getkey.c (finsih_lookup): Hack so that for v4 RSA keys the subkey
9795 is used for encryption.
9797 Thu Sep 14 14:20:38 CEST 2000 Werner Koch <wk@openit.de>
9799 * g10.c (main): Default S2K algorithms are now SHA1 and CAST5 - this
9800 should solve a lot of compatibility problems with other OpenPGP
9801 apps because those algorithms are SHOULD and not optional. The old
9802 way to force it was by using the --openpgp option whith the drawback
9803 that this would disable a couple of workarounds for PGP.
9805 * g10.c (main): Don't set --quite along with --no-tty. By Frank Tobin.
9807 * misc.c (disable_core_dump): Don't display a warning here but a return
9808 a status value and ...
9809 * g10.c (main): ...print warnining here. Suggested by Sam Roberts.
9811 Wed Sep 13 18:12:34 CEST 2000 Werner Koch <wk@openit.de>
9813 * keyedit.c (keyedit_menu): Allow to use "debug" on the secret key.
9815 * ringedit.c (cmp_seckey): Fix for v4 RSA keys.
9816 * seckey-cert.c (do_check): Workaround for PGP 7 bug.
9818 Wed Sep 6 17:55:47 CEST 2000 Werner Koch <wk@openit.de>
9820 * misc.c (print_pubkey_algo_note): Do not print the RSA notice.
9821 * sig-check.c (do_signature_check): Do not emit the RSA status message.
9822 * pubkey-enc.c (get_session_key): Ditto.
9824 * encode.c (encode_simple, encode_crypt): Fix for large files.
9825 * sign.c (sign_file): Ditto.
9827 Wed Sep 6 14:59:09 CEST 2000 Werner Koch <wk@openit.de>
9829 * passphrase.c (hash_passphrase): Removed funny assert. Reported by
9832 * openfile.c (try_make_homedir): Changes for non-Posix systems.
9833 * g10.c (main): Take the default homedir from macro.
9835 * g10.c: The --trusted-key option is back.
9836 * trustdb.c (verify_own_key): Handle this option.
9837 (add_ultimate_key): Moved stuff from verify_own_key to this new func.
9838 (register_trusted_key): New.
9840 Fri Aug 25 16:05:38 CEST 2000 Werner Koch <wk@openit.de>
9842 * parse-packet.c (dump_sig_subpkt): Print info about the ARR.
9844 * openfile.c (overwrite_filep): Always return okay if the file is
9846 (make_outfile_name): Add ".sign" to the list of know extensions.
9847 (open_sigfile): Ditto.
9849 Wed Aug 23 19:52:51 CEST 2000 Werner Koch <wk@openit.de>
9851 * g10.c: New option --allow-freeform-uid. By Jeroen C. van Gelderen.
9852 * keygen.c (ask_user_id): Implemented here.
9854 Fri Aug 4 14:23:05 CEST 2000 Werner Koch <wk@openit.de>
9856 * status.c (do_get_from_fd): Ooops, we used fd instead of opt.command_fd.
9857 Thanks to Michael Tokarev.
9859 Tue Aug 1 20:06:23 CEST 2000 Werner Koch <wk@openit.de>
9861 * g10.c: New opttion --try-all-secrets on suggestion from Matthias Urlichs.
9862 * pubkey-enc.c (get_session_key): Quite easy to implement here.
9864 Thu Jul 27 17:33:04 CEST 2000 Werner Koch <wk@openit.de>
9866 * g10.c: New option --merge-only. Suggested by Brendan O'Dea.
9867 * import.c (import_one): Implemented it here
9868 (import_secret_one): Ditto.
9869 (print_stats): and give some stats.
9871 Thu Jul 27 12:01:00 CEST 2000 Werner Koch <wk@openit.de>
9873 * g10.c: New options --show-session-key and --override-session-key
9874 * pubkey-enc.c (hextobyte): New.
9875 (get_override_session_key): New.
9876 * mainproc.c (proc_pubkey_enc): Add session-key stuff.
9877 * status.h, status.c (STATUS_SESSION_KEY): New.
9879 Thu Jul 27 10:02:38 CEST 2000 Werner Koch <wk@openit.de>
9881 * g10.c (main): Use setmode(O_BINARY) for MSDOS while generating random bytes
9882 (print_mds): Likewise for stdin.
9883 * plaintext.c (handle_plaintext): Likewise for stdout.
9885 Mon Jul 24 10:30:17 CEST 2000 Werner Koch <wk@openit.de>
9887 * keyedit.c (menu_expire): expire date for primary key can be set again.
9889 Wed Jul 19 11:26:43 CEST 2000 Werner Koch <wk@openit.de>
9891 * keylist.c (is_uid_valid): New.
9892 (list_keyblock): Print validity information for all user IDs. Note, this
9893 has to be done at other places too; for now we have only minimal support.
9895 Wed Jul 12 13:32:06 CEST 2000 Werner Koch <wk@openit.de>
9897 * helptext.c, pkclist.c: s/superseeded/superseded/
9899 Mon Jul 10 16:08:57 CEST 2000 Werner Koch <wk@openit.de>
9901 * parse-packet.c (enum_sig_subpkt): Fixed testing on crtitical bit in case
9902 of a NULL buffer. Reported by Peter Marschall.
9904 Wed Jul 5 13:28:45 CEST 2000 Werner Koch <wk@openit.de>
9906 * keyedit.c, keyid.c: Add some _()
9908 * argparse.c: Changed the flag to suppress --version handling to also
9911 Wed Jun 28 11:54:44 CEST 2000 Werner Koch <wk@openit.de>
9913 * armor.c (armor_filter): Set sigclass to 0 in case of non-dash-escaped
9914 clearsig. This makes this mode work again.
9916 * mainproc.c (proc_tree): Fixed handling of one-pass-sig packets in textmode.
9917 Disabled the ugly workaround for PGP 5 - let's see whether thi breaks less
9918 cases. Found by Ted Cabeen.
9920 * options.h (DBG_HASHING): New. All commented md_start_debug are now
9921 controlled by this debug option.
9923 * sign.c (print_status_sig_created): New and called from 2 places.
9925 * keygen.c (gen_rsa): New, but commented.
9926 (ask_algo): Commented support for RSA.
9928 * seckey-cert.c (protect_secret_key): Started to fix the code for v4 RSA
9929 keys - it is not solved yet. However, we have time until, Sep 20th ;)
9931 Wed Jun 14 12:27:09 CEST 2000 Werner Koch <wk@openit.de>
9933 * status.c (init_shm_coprocessing): Changed the sequence of the get,attach
9934 to cope with the changes in newer Linux kernels. This bug has been found
9935 by <dmitri@advantrix.com> who also proposed this solution. Hopefully
9936 this does not break gpg on to many systems.
9938 * cipher.c (write_header): Protect the IV with the MDC too.
9939 * encr-data.c (decrypt_data): Likewise.
9941 Fri Jun 9 10:09:52 CEST 2000 Werner Koch <wk@openit.de>
9943 * g10.c: New options --no-auto-key-retrieve
9944 * options.h (auto_key_retrieve): New.
9945 * mainproc.c (check_sig_and_print): Implemented that.
9947 Wed Jun 7 19:19:09 CEST 2000 Werner Koch <wk@openit.de>
9949 * sig-check.c (do_check): Use EMULATE_MDENCODE also on v4 packets.
9951 Wed Jun 7 17:25:38 CEST 2000 Werner Koch <wk@openit.de>
9953 * cipher.c (write_header): Use plain CFB mode for MDC encrypted packets.
9954 * encr-data.c (decrypt_data): Ditto.
9956 Mon Jun 5 23:41:54 CEST 2000 Werner Koch <wk@openit.de>
9958 * seskey.c (do_encode_md, encode_md_value): Add new arg v3compathack to work
9959 around a bug in old versions.
9960 * sig-check.c (do_check): use the aboved workaround when enabled.
9961 * g10.c: New option --emulate-md-decode-bug
9963 Mon Jun 5 12:37:43 CEST 2000 Werner Koch <wk@openit.de>
9965 * build-packet.c (do_mdc): New.
9966 (do_encrypted_mdc): Changed for the new proposal.
9967 * parse-packet.c (parse_mdc): New.
9968 (parse_encrypted): Fixed for the new proposal.
9969 * packet.h (PKT_MDC): New.
9970 * cipher.c (cipher_filter): Build the MDC packet here.
9971 * g10.c (main): Enable --force-mdc.
9972 * encr-data.c (mdc_decode_filter): Fixed for new MDC method
9974 * options.h(rfc2440): New.
9975 * g10.c (main): Changed the selected values for --openpgp to not include
9976 optional algorithms.
9978 Thu May 18 11:38:54 CEST 2000 Werner Koch <wk@openit.de>
9980 * keyedit.c (keyedit_menu): Add a keyword arg to the prompt.
9982 * status.c, status.h: Added 3 new status tokens.
9983 * status.c (do_get_from_fd): New.
9984 (cpr_enabled,cpr_get,cpr_get_hidden,cpr_kill_prompt,
9985 cpr_get_answer_is_yes,cpr_get_answer_yes_no_quit): Modified to work
9986 with the new function.
9987 * g10.c: Add new option --command-fd.
9989 * status.c (progress_cb): New.
9990 (set_status_fd): Register progress functions
9992 Fri May 12 14:01:20 CEST 2000 Werner Koch <wk@openit.de>
9994 * delkey.c (delete_key): Add 2 new status messages
9995 * status.c, status.h (STATUS_DELETE_PROBLEM): New.
9997 Fixed years of copyright in all source files.
9999 Mon May 1 17:08:14 CEST 2000 Werner Koch <wk@openit.de>
10001 * trustdb.c (propagate_validity): Fixed the bug that only one uid
10002 gets fully trusted even when all are signed by an ultimate key.
10004 Mon May 1 15:38:04 CEST 2000 Werner Koch <wk@openit.de>
10006 * getkey.c (key_byname): Always returned a defined context. Fixed
10007 a segv for invalid user id specifications. Reported by Walter Koch.
10009 * getkey.c (get_user_id): I18ned "no user id" string. By Walter.
10011 * pkclist.c (do_show_revocation_reason): Typo fixes.
10012 * helptext.c: Ditto.
10014 * armor.c (armor_filter): Fixed some CRLF issues. By Mike McEwan.
10016 Fri Apr 14 19:37:08 CEST 2000 Werner Koch <wk@openit.de>
10018 * pkclist.c (do_show_revocation_reason): New.
10019 (show_revocation_reason): New and called at various places.
10021 * g10.c (main): Fixed small typo.
10023 * pkclist.c (do_we_trust): Act on always_trust but not for revoked
10024 keys. Suggested by Chip Salzenberg.
10026 * g10.c: New option --lock-never.
10028 * ringedit.c (get_writable_keyblock_file): New.
10029 * keygen.c (do_generate_keypair): Use this instead of the hardwired one.
10031 * keygen.c (ask_user_id): Check that the email address is in the
10032 correct field. Suggested by Christian Kurz.
10034 Mon Apr 10 13:34:19 CEST 2000 Werner Koch <wk@openit.de>
10036 * keyedit.c (show_key_with_all_names): s/sbb/ssb/
10038 Tue Mar 28 14:26:58 CEST 2000 Werner Koch <wk@openit.de>
10040 * trustdb.c (verify_own_keys): Do not print warning about unprotected
10041 key when in quiet mode.
10043 Wed Mar 22 13:50:24 CET 2000 Werner Koch <wk@openit.de>
10045 * mainproc.c (print_userid): Do UTF8 conversion before printing.
10046 * import.c (import_one): Ditto.
10047 (import_secret_one): Ditto.
10048 (delete_inv_parts): Ditto.
10050 Thu Mar 16 16:20:23 CET 2000 Werner Koch <wk@openit.de>
10052 * keylist.c (print_key_data): Handle a NULL pk gracefully.
10054 * getkey.c (merge_one_pk_and_selfsig): Fixed silly code for
10055 getting the primary keys keyID but kept using the one from the
10057 * pubkey-enc.c (get_it): Print a note for expired subkeys.
10059 * getkey.c (has_expired): New.
10060 (subkeys_expiretime): New.
10061 (finish_lookup): Check for expired subkeys needed for encryption.
10062 (merge_keys_and_selfsig): Fixed expiration date merging for subkeys.
10064 * keylist.c (list_keyblock): Print expiration time for "sub".
10065 (list_one): Add missing merging for public keys.
10066 * mainproc.c (list_node): Ditto.
10068 2000-03-14 13:49:38 Werner Koch (wk@habibti.openit.de)
10070 * keygen.c (keyedit_menu): Do not allow to use certain commands
10071 while the secret key is selected.
10073 2000-03-09 12:53:09 Werner Koch (wk@habibti.openit.de)
10075 * keygen.c (ask_expire_interval): Movede parsig to ...
10076 (parse_expire_string): ... this new function. And some new control
10078 (proc_parameter_file): Add expire date parsing.
10079 (do_generate_keypair): Allow the use of specified output files.
10081 2000-03-08 10:38:38 Werner Koch (wk@habibti.openit.de)
10083 * keygen.c (ask_algo): Removed is_v4 return value and the commented
10084 code to create Elg keys in a v3 packet. Removed the rounding
10086 (do_create): Likewise removed arg v4_packet.
10087 (gen_elg): Likewise removed arg version. Now rounding keysizes here.
10088 (gen_dsa): Rounding keysize now here.
10089 (release_parameter_list): New
10090 (get_parameter*): New.
10091 (proc_parameter_file): New.
10092 (read_parameter_file): New.
10093 (generate_keypair): Splitted. Now uses read_parameter_file when in
10094 batch mode. Additional argument to specify a parameter file.
10095 (do_generate_keypair): Main bulk of above fucntion and uses the
10097 (do_create): Don't print long notice in batch mode.
10098 * g10.c (main): Allow batched key generation.
10100 Thu Mar 2 15:37:46 CET 2000 Werner Koch <wk@gnupg.de>
10102 * pubkey-enc.c (get_it): Print a note about unknown cipher algos.
10104 * g10.c (opts): Add a note to the help listing about the man page
10105 and removed some options from the help listing.
10107 * keyedit.c (print_and_check_one_sig): Use a new function to truncate
10108 the output of the user ID. Suggested by Jan-Benedict Glaw.
10110 Wed Feb 23 10:07:57 CET 2000 Werner Koch <wk@gnupg.de>
10112 * helptext.c: typo fix.
10114 Thu Feb 17 13:39:32 CET 2000 Werner Koch <wk@gnupg.de>
10116 * revoke.c: Removed a bunch of commented code.
10118 * packet.h (SIGSUBPKT_REVOC_REASON): New.
10119 * build-packet.c (build_sig_subpkt): Support new sub packet.
10120 * parse-packet.c (parse_one_sig_subpkt): Ditto.
10121 (dump_sig_subpkt): Ditto.
10122 * revoke.c (ask_revocation_reason): New.
10123 (release_revocation_reason_info): New.
10124 (revocation_reason_build_cb): New.
10125 (gen_revoke): Ask for reason.
10126 * main.h (struct revocation_reason_info): Add declaration.
10127 * keyedit.c (menu_revsig): Add support for revocation reason.
10128 (menu_revkey): Ditto.
10129 (sign_uid_mk_attrib): Renamed to ...
10130 (sign_mk_attrib): ... this, made static and add support for reasons.
10132 Tue Feb 15 08:48:13 CET 2000 Werner Koch <wk@gnupg.de>
10134 * build-packet.c (build_packet): Fixed fixing of old comment packets.
10136 * import.c (import_keys): Fixed importing from stdin when called with
10137 nnames set to zero as it normally happens.
10139 Mon Feb 14 14:30:20 CET 2000 Werner Koch <wk@gnupg.de>
10141 * sig-check.c (check_key_signature2): Add new arg r_expired.
10142 (do_signature_check): New arg to pass it down to ...
10143 (do_check): New arg r-expire which is set when the signature
10145 * trustdb.c (check_sig_record): Set SIGF_EXPIRED flag and set
10146 the expiretime to zero so that thi signature will not be checked
10149 Fri Feb 11 17:44:40 CET 2000 Werner Koch <wk@gnupg.de>
10151 * g10.c (g10_exit): Update the random seed_file.
10152 (main): Set the random seed file. New option --no-random-seed-file.
10154 Thu Feb 10 17:39:44 CET 2000 Werner Koch <wk@gnupg.de>
10156 * keyedit.c (menu_expire): Fixed segv due to unitialized sub_pk.
10159 Thu Feb 10 11:39:41 CET 2000 Werner Koch <wk@gnupg.de>
10161 * keylist.c (list_keyblock): Don't print warnings in the middle of
10162 regulat output lines. By Rémi.
10164 * sig-check.c: Include options.h
10166 Wed Feb 9 15:33:44 CET 2000 Werner Koch <wk@gnupg.de>
10168 * gpg.c: New option --ignore-time-conflict
10169 * sig-check.c (do_check): Implemented this option.
10170 * trustdb.c (check_trust): Ditto.
10171 * sign.c (do_sign): Ditto.
10172 * keygen.c (generate_subkeypair): Ditto.
10174 * encode.c (encode_simple): use iobuf_cancel after open failure.
10175 Reported by Huy Le.
10177 Fri Jan 14 18:32:01 CET 2000 Werner Koch <wk@gnupg.de>
10179 * packet.h (STRING2KEY): Changed mode from byte to int.
10180 * parse-packet.c (parse_key): Add the special GNU protection stuff
10181 * build-packet.c (so_secret_key): Ditto.
10182 * seckey-cert.c (do_check): Ditto.
10183 * keyedit.c (change_passphrase): Ditto.
10184 * export.c (export_secsubkeys): New.
10185 (do_export_stream): Hack to export the primary key using mode 1001.
10186 * g10.c: New command --export-secret-subkeys
10188 Thu Jan 13 19:31:58 CET 2000 Werner Koch <wk@gnupg.de>
10190 * armor.c (is_armored): Check for 1-pass-sig packets. Reported by
10191 David Hallinan <hallinan@rtd.com>.
10192 (armor_filter): Replaced one LF by the LF macro. Reported by
10193 Wolfgang Redtenbacher.
10195 Wed Jan 5 11:51:17 CET 2000 Werner Koch <wk@gnupg.de>
10197 * g10.c (main): Reset new global flag opt.pgp2_workarounds
10198 when --openpgp is used.
10199 * mainproc.c (proc_plaintext): Do the PGP2,5 workarounds only
10200 when the global flag is set.
10201 (proc_tree): Ditto.
10202 * textfilter.c (copy_clearsig_text): Ditto.
10203 * armor.c (armor_filter): Ditto.
10205 * g10.c: New option --list-only
10206 * mainproc.c (proc_tree): Don't do it if opt.list_only is active.
10207 (proc_pubkey_enc): Implement option.
10209 * status.h, status.c ({BEGIN,END}_{EN,DE}CRYPTION): New.
10210 * cipher.c (cipher_filter): New status outputs.
10211 * mainproc.c (proc_encrypted): New status outputs.
10213 Fri Dec 31 14:08:15 CET 1999 Werner Koch <wk@gnupg.de>
10215 * armor.c (armor_filter): Made the "Comment:" header translatable.
10217 * hkp.c (hkp_import): Make sure that the program does not return
10218 success when there is a connection problem. Reported by Phillip Jones.
10220 Sun Dec 19 15:22:26 CET 1999 Werner Koch <wk@gnupg.de>
10222 * armor.c (LF): Use this new macro at all places where a line LF
10223 is needed. This way DOSish textfiles should be created when the
10224 input data is also in dos mode.
10225 * sign.c (LF): Ditto.
10226 * textfilter.c (LF): Ditto.
10227 (copy_clearsig_text): Disabled the forcing of CR,LF sequences
10230 * plaintext.c (handle_plaintext): Fixes for line endings on DOS.
10231 and react on a LF in cleartext.
10232 * armor.c (fake_packet): Restore the original line ending after
10233 removing trailing spaces.
10235 * signal.c (got_fatal_signal): DOS fix.
10237 Thu Dec 16 10:07:58 CET 1999 Werner Koch <wk@gnupg.de>
10239 * mainproc.c (print_failed_pkenc): Fix for unknown algorithm.
10240 Found by fygrave@epr0.org.
10242 Thu Dec 9 10:31:05 CET 1999 Werner Koch <wk@gnupg.de>
10244 * hkp.c: i18n the strings.
10246 Sat Dec 4 15:32:20 CET 1999 Werner Koch <wk@gnupg.de>
10248 * trustdb.c (verify_key): Shortcut for ultimately trusted keys.
10250 Sat Dec 4 12:30:28 CET 1999 Werner Koch <wk@gnupg.de>
10252 * pkclist.c (build_pk_list): Validate the trust using the namehash
10253 if this one has been set by the key lookup.
10255 * g10.c: Add --delete-secret-key to the help page.
10257 * openfile.c (copy_options_file): Made static.
10258 (try_make_homedir): New.
10259 * ringedit.c (add_keyblock_resource): Use the try_make_hoemdir logic.
10260 * tdbio.c (tdbio_set_dbname): Likewise.
10262 * keygen.c (generate_user_id): Use m_alloc_clear() here. We should
10263 better use an allocation function specific to the user_id packet.
10265 * keygen.c (keygen_add_std_prefs): Changed symmetric preferences
10266 to include Blowfish again. This is due to it's better speed compared
10269 * g10.c (strusage): Print the home directory.
10271 * armor.c (armor_filter): Take action on the cancel control msg.
10272 * filter.h (armor_filter_context_t): Add cancel flag.
10274 Mon Nov 29 21:52:11 CET 1999 Werner Koch <wk@gnupg.de>
10276 * g10.c: New option --fast-list-mode ..
10277 * keylist.c (list_keyblock): .. and implemented.
10278 * mainproc.c (list_node): Ditto.
10280 * import.c (mark_non_selfsigned_uids_valid): Fixed the case that there
10281 is a uid without any packet following.
10283 Mon Nov 22 11:14:53 CET 1999 Werner Koch <wk@gnupg.de>
10285 * mainproc.c (proc_plaintext): Never enable the hash processing
10286 when skip_verify is active.
10288 * armor.c (parse_header_line): Stop parsing on a WS line too.
10289 Suggested by Aric Cyr.
10291 * tdbdump.c (HEXTOBIN): Changed the name of the argument, so that
10292 traditional cpp don't mess up the macros. Suggested by Jos Backus.
10294 * mainproc.c (list_node): Print the PK algo in the --with-colon mode.
10295 * keylist.c (list_keyblock): Ditto.
10297 * signal.c (got_fatal_signal): Found the reason why exit(8) did not
10298 work - it is better to set the disposition back to default before
10299 raising the signal. Print the notice on stderr always.
10301 Fri Nov 12 20:33:19 CET 1999 Werner Koch <wk@gnupg.de>
10303 * g10.c (make_username): Swapped the logic.
10304 * keylist.c (public_key_list): Now takes a STRLIST as arg and moved
10305 the creation ot this list to the caller, so that he can copy with
10306 UTF-conversion of user IDs. Changed all callers.
10307 (secret_key_list): Likewise.
10309 * getkey.c (get_user_id_string_native): New and ...
10310 * encode.c (write_pubkey_enc_from_list): ... use it here.
10312 * pubring.asc: Updated.
10314 * packet.h (PKT_PHOTO_ID): New.
10315 * parse-packet.c (parse_photo_id): New.
10316 * build-packet.c (do_user_id: Handle photo IDs.
10317 (build_packet): Change CTB for photo IDs
10318 * free-packet.c (free_user_id): Release memory used for photo IDs
10319 * sig-check.c (hash_uid_node): Handle photo IDs too.
10320 * trustdb.c (print_uid_from_keyblock): Hash photo ID.
10321 (make_uid_records): Ditto.
10322 * getkey.c (find_by_name): Ditto.
10323 * keyedit.c (show_prefs): Ditto.
10324 * keylist.c (list_keyblock): Ditto.
10326 Thu Oct 28 16:08:20 CEST 1999 Werner Koch <wk@gnupg.de>
10328 * keygen.c (ask_expire_interval): Print a warning for systems
10329 with a signed 32 time_t if the exiration time is beyoind 2038.
10331 Fri Oct 8 20:40:50 CEST 1999 Werner Koch <wk@gnupg.de>
10333 * ringedit.c (enum_keyblocks): The last fix way really stupid;
10334 reverted and set rt to Unknown.
10336 Fri Oct 8 20:32:01 CEST 1999 Werner Koch <wk@gnupg.de>
10338 * ringedit.c (enum_keyblocks): Zero the entire kbpos out on open.
10340 * g10.c (oEntropyDLL): Removed option.
10341 (main): Made the warning on development versions more verbose.
10343 * g10.c (oHonorHttpProxy): New option.
10344 * hkp.c (hkp_ask_import,hkp_export): Implement this option.
10345 * options.skel: Enable this option for new installations
10347 Mon Oct 4 21:23:04 CEST 1999 Werner Koch <wk@gnupg.de>
10349 * import.c (import_keys): Changed calling interface, adjusted caller.
10350 (import): Moved printing of stats out ...
10351 (print_stats): New. ... to here.
10352 (import_keys_stream): Call stats print here.
10353 (import_keys): Print stats as totals for all files.
10355 * tdbio.h (DIRF_NEWKEYS): New
10356 * tdbio.c (tdbio_dump_record): Print the new flag.
10357 * trustdb.c (check_trust_record): New arg sigs_only. Adapted all
10359 (do_update_trust_record): Removed recheck arg and add a new sigs_only
10360 do we can later improve on the performance. Changed all callers too.
10361 (check_trustdb): Evalutate the new flag and add a status output.
10362 Do a check when the dir record has not been checked.
10363 (build_cert_tree): Evaluate the new flag.
10364 (check_trust): Ditto. Do a trust_record check, when the dir record
10365 is not marked as checked.
10366 (mark_fresh_keys): New.
10367 (clear_lid_table): New.
10368 (sync_trustdb): New.
10369 * import.c (import_keys): Call sync_trustdb() after processing.
10370 (import_keys_stream): Ditto.
10371 * tdbdump.c (import_ownertrust): Ditto.
10373 * import.c (import_revoke_cert): Notify the trust DB.
10374 (do_update_trust_record): Use |= to set the REVOKED bit and not &=;
10375 shame on me for this bad copy+paste introduced bug.
10376 (do_we_trust): Add trustmask to allow revoked key override to work.
10377 Chnaged are to allow return of a mofified trustlevel. Adapted the
10380 * g10.c: New options --emulate-3des-s2k-bug
10381 * passphrase.c (hash_passphrase): Implemented above.
10383 * mainproc.c (proc_tree): Check for standalone signatures.
10384 (do_check_sig): Print a notice for a standalone revocation
10385 (check_sig_and_print): Do not print an error for unchecked standalone
10388 Tue Sep 28 20:54:37 CEST 1999 Werner Koch <wk@gnupg.de>
10390 * encode.c (encode_simple): Use new CTB when we don't have the
10391 length of the file. This is somewhat strange as the comment above
10392 indicates that this part is actually fixed for PGP 5 - maybe I simply
10393 lost the source line, tsss.
10395 * armor.c (armor_filter): Set a flag if no OpenPGP data has been found.
10396 * verify.c (verify_signatures): Add an error helptext.
10398 Thu Sep 23 19:24:30 CEST 1999 Werner Koch <wk@isil.d.shuttle.de>
10400 * openfile.c (open_outfile): Fixed the 8dot3 handling.
10402 * passphrase.c (passphrase_to_dek): Print uid using utf8 func.
10403 * delkey.c (delete_key): Ditto.
10404 * pkclist.c (show_paths,do_edit_ownertrust,do_we_trust): Ditto
10405 (do_we_trust_pre): Ditto.
10406 * trustdb.c (print_user_id,check_uidsigs): Ditto.
10407 * revoke.c (gen_revoke,ask_revoke_sig): Ditto.
10409 Thu Sep 23 09:52:58 CEST 1999 Werner Koch <wk@isil.d.shuttle.de>
10411 * verify.c (print_file_status): New.
10412 (verify_one_file): Moved status print to th new fnc. Add error status.
10413 * status.c, status.h (STATUS_FILE_ERROR): New
10415 Wed Sep 22 10:14:17 CEST 1999 Werner Koch <wk@isil.d.shuttle.de>
10417 * openfile.c (make_outfile_name): Use case-insenstive compare for
10418 DOS systems. Add ".pgp" to the list of know extensions.
10419 (open_outfile): For DOS systems try to replace the suffiy instead of
10422 * status.c, status.h: Add STATUS_FILE_{START,DONE}.
10423 * verify.c (verify_one_file): Emit these new stati.
10425 * sign.c (clearsign_file): Avoid duplicated Entries in the "Hash:"
10426 line. Those headers are now only _not_ printed when there are
10427 only old-style keys _and_ all hashs are MD5.
10429 Mon Sep 20 12:24:41 CEST 1999 Werner Koch <wk@isil.d.shuttle.de>
10432 * verify.c (verify_files, ferify_one_file): New.
10433 * g10.c: New command --verify-files
10435 Fri Sep 17 12:56:42 CEST 1999 Werner Koch <wk@isil.d.shuttle.de>
10437 * g10.c: Add UK spelling as alias for armor options ;-)
10439 * import.c (append_uid): Fixed a SEGV when there is no selfsig and
10441 (merge_sigs): Ditto. Removed the assertion.
10443 Wed Sep 15 16:22:17 CEST 1999 Werner Koch <wk@isil.d.shuttle.de>
10445 * g10.c: New option --entropy-dll-name
10447 Mon Sep 13 10:51:29 CEST 1999 Werner Koch <wk@isil.d.shuttle.de>
10449 * signal.c (got_fatal_signal): Print message using write(2) and
10450 only for development versions.
10452 Mon Sep 6 19:59:08 CEST 1999 Werner Koch <wk@isil.d.shuttle.de>
10454 * tdbio.c (tdbio_set_dbname): Use mkdir macro
10455 * ringedit.c (add_keyblock_resource): Ditto.
10457 Fri Sep 3 10:04:45 CEST 1999 Werner Koch <wk@isil.d.shuttle.de>
10459 * pkclist.c (build_pk_list): Skip keys set with --encrypt-to also
10460 when asking for a key.
10462 * plaintext.c (handle_plaintext): Make sure that we don't read a
10463 second EOF in the read loop for partial length packets.
10465 * mainproc.c (check_sig_and_print): print user ID as utf-8.
10467 Thu Sep 2 16:40:55 CEST 1999 Werner Koch <wk@isil.d.shuttle.de>
10469 * import.c (merge_blocks): First add new subkeys, then merge subkey
10471 (merge_sigs): Don't merge subkey signatures here.
10473 Wed Sep 1 15:30:44 CEST 1999 Werner Koch <wk@isil.d.shuttle.de>
10475 * keygen.c (ask_expire_interval): Fixed bug related to cpr_xx (tnx
10476 Francis J. Lacoste).
10478 Tue Aug 31 17:20:44 CEST 1999 Werner Koch <wk@isil.d.shuttle.de>
10480 * plaintext.c (do_hash): Hash CR,LF for a single CR.
10481 (ask_for_detached_datafile): Changed arguments to be closer to
10482 those of hash_datafiles and cleanup the code a bit.
10483 * mainproc.c (proc_tree): Workaround for pgp5 textmode detached
10484 signatures. Changed behavior of asking for data file to be the same
10485 as with provided data files.
10487 * keylist.c (list_keyblock): Use UTF8 print functions.
10489 Mon Aug 30 20:38:33 CEST 1999 Werner Koch <wk@isil.d.shuttle.de>
10491 * import.c (chk_self_sigs): some s/log_error/log_info/ so that gpg
10492 does not return an error if a key has some invalid packets.
10494 * helptext.c: Fixed some typos and changed the way the
10495 translation works. The english text is now the keyword for gettext
10496 and not anymore the keyword supplied to the function. Done after
10497 some discussion with Walter who thinks this is much easier for the
10500 * misc.c (disable_core_dumps): Don't do it for DOSish systems.
10502 * signal.c (signal_name): Bounds check on signum.
10504 Wed Aug 4 10:34:18 CEST 1999 Werner Koch <wk@isil.d.shuttle.de>
10506 * pubring.asc: Updated.
10508 * pkclist.c (do_we_trust_pre,check_signatures_trust): Do not print
10509 the warning about --always_trust when --quiet is used.
10511 * pkclist.c (fpr_info): New and called at several places.
10513 * parse-packet.c (dump_sig_subpkt): List revocation key contents.
10515 Mon Jul 26 09:34:46 CEST 1999 Werner Koch <wk@isil.d.shuttle.de>
10517 * pkclist.c (build_pk_list): Fixed typo in format string.
10519 * trustdb.c (create_shadow_dir): Don't translate the error string.
10521 * g10.c (main): Fixed spelling of user-id.
10522 * getkey.c (find_by_name_pk,find_by_name_sk,
10523 find_by_keyid,find_by_keyid_sk): Ditto and translate it.
10524 * import.c (mark_non_selfsigned_uids_valid,delete_inv_parts): Ditto.
10527 Mon Jul 26 01:01:39 CEST 1999 Michael Roth <mroth@nessie.de>
10529 * g10.c, options.h: New options --no-literal and --set-filesize
10531 * encode.c (encode_simple, encode_crypt): Support for the options
10532 --no-literal and --set-filesize.
10534 * sign.c (sign_file): ditto.
10536 Fri Jul 23 13:53:03 CEST 1999 Werner Koch <wk@isil.d.shuttle.de>
10539 * ringedit.c (enum_keyblocks): Removed annoying error message in cases
10540 when we have no keyring at all to enum.
10542 * getkey.c (classify_user_id): Rewrote to relax the recognition of
10543 keyIDs and fingerprints (Michael).
10545 * mainproc.c (check_sig_and_print): Print status NO_PUBKEY.
10546 (print_failed_pkenc): Print status NO_SECKEY.
10548 * import.c (mark_non_selfsigned_uids_valid): New.
10549 * g10.c: New option --allow-non-selfsigned-uid.
10551 * pkclist.c (print_fpr): New.
10552 (do_we_trust_pre): Print the fpr before asking whether to use the key
10554 (do_edit_ownertrust): Likewise.
10556 Thu Jul 22 20:03:03 CEST 1999 Werner Koch <wk@isil.d.shuttle.de>
10559 * ringedit.c (enum_keyblocks): Removed annoying error message in cases
10560 when we have no keyring at all to enum.
10562 * getkey.c (classify_user_id): Rewrote to relax the recognition of
10563 keyIDs and fingerprints (Michael).
10565 * mainproc.c (check_sig_and_print): Print status NO_PUBKEY.
10566 (print_failed_pkenc): Print status NO_SECKEY.
10568 * import.c (mark_non_selfsigned_uids_valid): New.
10569 * g10.c: New option --allow-non-selfsigned-uid.
10571 Thu Jul 15 10:15:35 CEST 1999 Werner Koch <wk@isil.d.shuttle.de>
10573 * g10.c: New options --disable-{cipher,pubkey}-algo.
10575 Wed Jul 14 19:42:08 CEST 1999 Werner Koch <wk@isil.d.shuttle.de>
10577 * status.h (STATUS_IMPORTED): New.
10578 * import.c (import): Print some status information (Holger Schurig).
10580 * g10.c (main): Make --no-greeting work again. Add a warning when
10581 --force-mds is used.
10583 Tue Jul 13 17:39:25 CEST 1999 Werner Koch <wk@isil.d.shuttle.de>
10585 * pkclist.c (do_edit_ownertrust): Changed the way help works.
10586 (build_pk_list): Implemented default recipient stuff.
10587 * g10.c: New options --default-recipient[-self]
10588 (main): Suppress greeting in most cases, entering a passphrase or
10589 a missing value is not considered to be interactive use.
10590 Merged --print-md and --print-mds; the latter is now obsolete.
10591 Changed the way --gen-random works and documented it.
10592 Changed the way --gen-prime works and add a man entry.
10593 * g10.c (MAINTAINER_OPTIONS): Removed.
10595 Mon Jul 12 18:45:57 CEST 1999 Werner Koch <wk@isil.d.shuttle.de>
10597 * keyedit.c (keyedit_menu): Add arg sign_mode and changed callers
10598 * g10.c (main): New command --lsign-key.
10600 Mon Jul 12 14:55:34 CEST 1999 Werner Koch <wk@isil.d.shuttle.de>
10602 * mainproc.c (kidlist_item): New.
10603 (release_list): Release failed pk-enc-list.
10604 (print_failed_pkenc): New
10605 (proc_encrypted): Print info about failed PK enc.
10607 * openfile.c (make_outfile_name): s/error/info/
10609 * passphrase.c (passphrase_to_dek): Return an empty passphrase when
10610 in batch mode and don't make the warning message fatal
10611 * seckey-cert.c (check_secret_key): Try only once when in batch mode.
10613 * g10.c (make_username): New.
10615 Thu Jul 8 16:21:27 CEST 1999 Werner Koch <wk@isil.d.shuttle.de>
10618 * packet.h (PKT_ring_trust): New
10619 * parse-packet.c (parse_trust): Store trust value
10620 * build-packet (build_packet): Ignore ring trust packets.
10621 * mainproc.c (add_ring_trust): New.
10622 (list_node): Print "rtv" records.
10623 * g10.c: New option --with-fingerprint.
10625 * trustdb.c (verify_own_keys): Don't insert if we are dry running
10626 (check_trust): Ditto.
10628 Wed Jul 7 13:08:40 CEST 1999 Werner Koch <wk@isil.d.shuttle.de>
10630 * Makefile.am: Support for libtool.
10632 * keygen.c (ask_expire_interval): Hack to allow for an expire date.
10634 * trustdb.c (do_update_trust_record,update_trust_record): Splitted.
10635 (check_trust_record): New.
10636 (check_trust,build_cert_tree): Check the dir record as needed.
10637 (upd_pref_record): Removed.
10638 (make_pref_record): New.
10639 (propagate_validity): Stop as soon as we have enough validity.
10641 * tbdio.c (MAX_CACHE_ENTRIES_HARD): Increased the limit.
10644 Fri Jul 2 11:45:54 CEST 1999 Werner Koch <wk@isil.d.shuttle.de>
10646 * g10.c (g10_exit): Dump random stats.
10648 * sig-check.c (check_key_signature,check_key_signature2): Enhanced
10649 version and wrapper for old function.
10650 (do_signature_check,signature_check): Ditto.
10652 Thu Jul 1 12:47:31 CEST 1999 Werner Koch <wk@isil.d.shuttle.de>
10655 * keyedit.c (show_key_with_all_names): Print a notice for disabled keys.
10656 (enable_disable_keys): Add functionality
10657 * pkclist.c (edit_ownertrust): preserve disabled state.
10658 (build_pk_list): Skip disabled keys.
10659 * trustdb.c (upd_one_ownertrust): Ditto.
10660 (build_cert_tree): Mask the ownertrust.
10661 (trust_letter): Mask the value.
10662 (do_check): Take disabled flag into account.
10664 * passphrase.c (passphrase_to_dek): Add a pubkey_algo arg and changed
10667 * g10.c (utf8_strings): 2 new options.
10669 * trustdb.c (insert_trust_record_by_pk): New, replaces the next one.
10670 (insert_trust_record): Now takes a keyblock as arg. Changed all
10671 callers to use the appropritae function.
10673 * openfile.c (ask_outfile_name): New.
10674 * plaintext.c (handle_plaintext): Ask for filename if there is
10675 no valid syntax. Don't use fname varbatim but filter it.
10677 Tue Jun 29 21:44:25 CEST 1999 Werner Koch <wk@isil.d.shuttle.de>
10680 * trustdb.h (TRUST_FLAG_DISABLED): New.
10682 * status.c (USE_CAPABILITIES): Capabilities support (Remi).
10684 * tdbio.c : Added new fields to the DIR record.
10685 (tdbio_write_record): Fixed the update of the hash tables.
10686 (tdbio_delete_record): Drop the record from the hash tables.
10687 (drop_from_hashtbl): New.
10689 * status.c (cpr_get): Special online help mode.
10690 * helptext.c ("keyedit.cmd"): Removed.
10691 * keyedit.c (keyedit_menu): Use only help system.
10692 (enable_disable_key): New bit doies not yet work.
10694 Sat Jun 26 12:15:59 CEST 1999 Werner Koch <wk@isil.d.shuttle.de>
10697 * dearmor.c (enarmor_file): Fixed comment string.
10698 * tdbdump.c (export_ownertrust): Text fix.
10699 * tbio.c (tdbio_invalid): Ditto.
10701 * parse-packet.c (parse_key): Made temp buffer larger.
10703 * Makefile.am (install-data-local): Add missing backslashes
10705 Tue Jun 15 12:21:08 CEST 1999 Werner Koch <wk@isil.d.shuttle.de>
10707 * g10.c (main): Made iterated+salted the default S2K method.
10709 * Makefile.am (install-data-local): Use DESTDIR.
10711 * passphrase.c (passphrase_to_dek): Emit missing-passphrase while in
10714 * parse-packet.c (parse_pubkeyenc): Fixed a SEGV.
10716 Mon Jun 14 21:18:54 CEST 1999 Michael Roth <mroth@nessie.de>
10718 * g10.c: New options --openpgp, --no-tty, --emit-version,
10719 --default-comment and --lock-multiple
10721 Thu Jun 10 14:18:23 CEST 1999 Werner Koch <wk@isil.d.shuttle.de>
10723 * free-packet.c (free_encrypted): Fixed EOF case (Remi).
10724 (free_plaintext): Ditto.
10726 * helptext.c (keyedit.delsig.unknown): New (Remi).
10727 * keyedit.c (print_and_check_one_sig): Add arg print_without_key and
10728 changed all callers to make use of it (Remi):
10730 Tue Jun 8 13:36:25 CEST 1999 Werner Koch <wk@isil.d.shuttle.de>
10732 * keylist.c (print_key_data): New and called elsewhere.
10733 * g10.c: New option --with-key-data
10735 Wed Jun 2 14:17:19 CEST 1999 Werner Koch <wk@isil.d.shuttle.de>
10737 * mainproc.c (proc_tree): Yet another bad hack to cope with
10738 broken pgp2 created detached messages in textmode.
10740 Tue Jun 1 16:01:46 CEST 1999 Werner Koch <wk@isil.d.shuttle.de>
10742 * openfile.c (make_outfile_name): New.
10743 * plaintext.c (handle_plaintext): Outputfile is now the inputfile
10744 without the suffix.
10745 * g10.c: New option --use-embedded-filename
10747 Mon May 31 19:41:10 CEST 1999 Werner Koch <wk@isil.d.shuttle.de>
10749 * g10.c (main): Fix for SHM init (Michael).
10751 * compress.c, encr-data.c, mdfilter.c,
10752 plaintext.c, free-packet.c: Speed patches (Rémi).
10754 Thu May 27 09:40:55 CEST 1999 Werner Koch <wk@isil.d.shuttle.de>
10756 * status.c (cpr_get_answer_yes_no_quit): New.
10757 * keyedit.c (menu_delsig): New.
10758 (check_all_keysigs): Splitted.
10759 (print_and_check_one_sig): New.
10761 Wed May 26 14:36:29 CEST 1999 Werner Koch <wk@isil.d.shuttle.de>
10763 * build-packet.c (build_sig_subpkt): Support large packets.
10764 * parse-packet.c (enum_sig_subpkt): Replaces parse_sig_subpkt.
10765 * mainproc.c (print_notation_data): Print all notation packets.
10766 * g10.c (add_notation_data): Add a way to specify the critical flag.
10767 (main): Add option --set-policy-url.
10768 (check_policy_url): Basic checks.
10769 * sign.c (mk_notation_and_policy): Replaces mk_notation.
10771 * parse-packet.c (can_handle_critical): Moved decision whether we can
10772 handle critical subpacket to an extra function.
10774 Tue May 25 19:50:32 CEST 1999 Werner Koch <wk@isil.d.shuttle.de>
10776 * sign.c (sign_file): Always use compression algo 1 for signed
10777 onyl file becuase we can´ be sure the the verifier supports other
10780 * build-packet.c (build_sig_subpkt): Support for notation data.
10781 * sign.c (sign_file,clearsign_file,make_keysig_packet): Ditto.
10782 (mk_notation): New.
10783 * g10.c (add_notation_data): New and add option -N
10784 * mainproc.c (print_notation_data): New.
10785 (check_sig_and_print): Print any notation data of the signed text.
10787 Sun May 23 14:20:22 CEST 1999 Werner Koch <wk@isil.d.shuttle.de>
10789 * pkclist.c (check_signatures_trust): Print a warning and return
10790 immediateley if opt.always_trust is true.
10792 * g10.c (main): Corrected handling of no-default-keyring
10794 * pkclist.c (algo_available): Disable Twofish until we have settled
10797 * hkp.c: Disable everything for mingw32
10799 Sat May 22 22:47:26 CEST 1999 Werner Koch <wk@isil.d.shuttle.de>
10801 * mainproc.c (check_sig_and_print): Add sig creation time to the
10802 VALIDSIG status output. Add more info to the ERRSIG output.
10803 * sig-check.c (signature_check): Add sig time after epoch to SIG_ID.
10805 * import.c (import_one): Merge duplicate user IDs.
10806 (collapse_uids): New.
10807 * kbnode.c (move_kbnode): New.
10808 (remove_kbnode): New.
10809 * keyedit.c (keyedit_menu): Call collapse_uids.
10811 * g10.c: new option --logger-fd.
10813 * import.c: s/log_*_f/log_*/
10815 Thu May 20 14:04:08 CEST 1999 Werner Koch <wk@isil.d.shuttle.de>
10817 * misc.c (pull_in_libs): do the volatile only for gcc
10819 * sig-check (signature_check): Emit SIG_iD only for classes 0 and 1.
10821 * armor.c (armor_filter): Add detection of PGP2 created clearsigs.
10822 (fake_packet): A tab is not a WS for pgp2 - handle this.
10823 * textfilter.c (len_without_trailing_chars): New.
10824 (copy_clearsig_text): Add pgp2mode arg.
10825 * sign.c (clearsign_file): pass old_style to the above fnc.
10828 Wed May 19 16:04:30 CEST 1999 Werner Koch <wk@isil.d.shuttle.de>
10830 * g10.c: New option --interactive.
10832 * mainproc.c (proc_plaintext): Add workaround for pgp2 bug
10833 (do_check_sig): Ditto.
10834 (proc_tree): Ditto.
10835 * plaintext.c (do_hash): Ditto.
10836 (hash_datafiles): Ditto, add an arg, changed all callers.
10837 * mdfilter.c (md_filter): Add support for the alternate hash context.
10839 Mon May 17 21:54:43 CEST 1999 Werner Koch <wk@isil.d.shuttle.de>
10841 * parse-packet.c (parse_encrypted): Support for PKT_ENCRYPTED_MDC.
10842 * build-packet.c (do_encrypted_mdc): Ditto.
10843 * cipher.c (write_header): Add mdc hashing.
10844 (cipher_filter): write out the hash.
10845 * mainproc.c (do_proc_packets): Add PKT_ENCRYPTED_MDC.
10846 * encr-data.c (decrypt_data): Add mdc hashing.
10847 (mdc_decode_filter): New.
10849 * parse-packet.c (parse_sig_subpkt): Fixed stupid bug for subpkt
10851 (parse_signature): Fixed even more stupid bug.
10853 Sat May 8 19:28:08 CEST 1999 Werner Koch <wk@isil.d.shuttle.de>
10855 * build-packet.c (do_signature): Removed MDC hack.
10856 * encode.c (encode_crypt_mdc): Removed.
10857 * mainproc.c (do_check_sig): Removed MDC hack.
10858 (check_sig_and_print): Ditto.
10859 * parse-packet.c (parse_signature): Ditto.
10860 * sig-check.c (mdc_kludge_check): Ditto.
10861 * free-packte.c (copy_signature, free_seckey_enc): Ditto.
10863 * parse-packet.c (parse_signature,parse_key): Store data of
10864 unknown algorithms with mpi_set_opaque inseatd of the old
10866 (read_rest): Removed.
10867 (read_rest2): Renamed to read_rest
10868 * build-packet.c (write_fake_data): Use mpi_get_opaque.
10869 * free-packet.c (cp_fake_data): Removed and cahnged all callers
10871 (free_pubkey_enc,free_seckey_enc,release_public_key_parts,
10872 release_secret_key_parts): Use mpi_free for opaque data.
10874 Thu May 6 14:18:17 CEST 1999 Werner Koch <wk@isil.d.shuttle.de>
10876 * trustdb.c (check_trust): Check for revoked subkeys.
10877 * pkclist.c (do_we_trust): Handled revoked subkeys.
10878 (do_we_trust_pre): Ditto.
10879 (check_signatures_trust): Ditto.
10881 * build-packet.c (hash_public_key): Fix for ancient g10 keys.
10883 * mainproc.c (do_proc_packets): Return EOF if no data has been read.
10884 * g10.c (main): Catch errors for default operation.
10886 Thu Apr 29 12:29:22 CEST 1999 Werner Koch <wk@isil.d.shuttle.de>
10888 * sign.c (sign_file): Fixed hashing in case of no subpackets.
10889 (clearsign_file): Ditto.
10890 (make_keysig_packet): Ditto.
10892 Wed Apr 28 13:03:03 CEST 1999 Werner Koch <wk@isil.d.shuttle.de>
10894 * keyedit.c (keyedit_menu): Add new command revkey.
10895 * (menu_revkey): New.
10898 Mon Apr 26 17:48:15 CEST 1999 Werner Koch <wk@isil.d.shuttle.de>
10900 * parse-packet.c (parse_signature): Add the MDC hack.
10901 * build-packet.c (do_signature): Ditto.
10902 * free-packet.c (free_seckey_enc,copy_signature,cmp_signatures): Ditto.
10903 * mainproc.c (do_check_sig): Ditto.
10904 * sig-check.c (mdc_kludge_check): New.
10905 * encode.c (encrypt_mdc_file): New.
10907 * keyedit.c (check_all_keysigs): List revocations.
10908 * (menu_revsig): New.
10909 * sign (make_keysig_packet): Support for class 0x30.
10911 Sun Apr 18 20:48:15 CEST 1999 Werner Koch <wk@isil.d.shuttle.de>
10913 * pkclist.c (select_algo_from_prefs): Fixed the case that one key
10914 has no preferences (Remi Guyomarch).
10916 keylist.c (list_keyblock): ulti_hack to propagate trust to all uids.
10918 Sun Apr 18 10:11:28 CEST 1999 Werner Koch <wk@isil.d.shuttle.de>
10920 * seckey-cert.c (do_check): Use real IV instead of a 0 one, so that
10921 it works even if the length of the IV doesn't match the blocksize.
10922 Removed the save_iv stuff.
10923 (protect_secret_key): Likewise. Create the IV here.
10924 * packet.h (PKT_secret_key): Increased size of IV field and add a
10926 * parse-packet.c (parse_key): Use the len protect.ivlen.
10927 * build-packet.c (do_secret_key). Ditto.
10929 * getkey.c (key_byname): Close keyblocks.
10931 * Makefile.am (gpgm): Removed this
10932 * g10.c: Merged gpg and gpgm
10934 * import.c (import): Utilize option quiet.
10935 * tdbio.c (tdbio_set_dbname): Ditto.
10936 * ringedit.c (add_keyblock_resource,keyring_copy): Ditto.
10938 * keyedit.c (sign_uids): Add some batch support.
10940 * g10.c (main): add call to tty_batchmode.
10942 Fri Apr 9 12:26:25 CEST 1999 Werner Koch <wk@isil.d.shuttle.de>
10944 * status.c (write_status_text): Some more status codes.
10945 * passphrase_to_dek (passphrase_to_dek): add a status code.
10946 * seckey_cert.c (check_secret_key): Likewise.
10948 * encr-data.c (decrypt_data): Reverse the last changes
10949 * cipher.c (write_header): Ditto.
10951 * parse-packet.c (parse_key): Dropped kludge for ancient blowfish mode.
10953 Thu Apr 8 09:35:53 CEST 1999 Werner Koch <wk@isil.d.shuttle.de>
10955 * mainproc.c (proc_encrypted): Add a new status output
10956 * passphrase.c (passphrase_to_dek): Ditto.
10957 * status.h status.c: Add new status tokens.
10959 Wed Apr 7 20:51:39 CEST 1999 Werner Koch <wk@isil.d.shuttle.de>
10961 * encr-data.c (decrypt_data): Fixes for 128 bit blocksize
10962 * cipher.c (write_header): Ditto.
10963 * seckey-cert.c (do_check): Ditto.
10964 (protect_secret_key). Ditto.
10965 * misc.c (print_cipher_algo_note): Twofish is now a standard algo.
10967 * keygen.c (do_create): Fixed spelling (Gaël Quéri)
10968 (ask_keysize): Only allow keysizes up to 4096
10970 * ringedit.c (add_keyblock_resource): chmod newly created secrings.
10972 * import.c (delete_inv_parts): Fixed accidently deleted subkeys.
10974 Tue Apr 6 19:58:12 CEST 1999 Werner Koch <wk@isil.d.shuttle.de>
10976 * armor.c: Removed duped include (John Bley)
10977 * mainproc.c: Ditto.
10979 * build-packet.c (hash_public_key): Fixed hashing of the header.
10981 * import.c (delete_inv_parts): Allow import of own non-exportable sigs.
10983 Sat Mar 20 13:59:47 CET 1999 Werner Koch <wk@isil.d.shuttle.de>
10985 * armor.c (fake_packet): Fix for not not-dash-escaped
10987 Sat Mar 20 11:44:21 CET 1999 Werner Koch <wk@isil.d.shuttle.de>
10989 * g10.c (main): Added command --recv-keys
10990 * hkp.c (hkp_import): New.
10992 Wed Mar 17 13:09:03 CET 1999 Werner Koch <wk@isil.d.shuttle.de>
10994 * trustdb.c (check_trust): add new arg add_fnc and changed all callers.
10996 (verify_key): Ditto.
10997 (propagate_validity): Use the new add_fnc arg.
10998 (print_user_id): Add the FILE arg.
10999 (propagate_ownertrust): New.
11000 * pkclist.c (add_ownertrust_cb): New and changed the add_ownertrust
11003 * getkey.c (get_keyblock_bylid): New.
11004 * trustdb.c (print_uid_from_keyblock): New.
11005 (dump_tn_tree_with_colons): New.
11006 (list_trust_path): Add colon print mode.
11008 * trustdb.c (insert_trust_record): Always use the primary key.
11010 * encode.c (encode_simple): Added text_mode filter (Rémi Guyomarch)
11011 (encode_crypt): Ditto.
11013 * mainproc.c (proc_pubkey_enc): Added status ENC_TO.
11014 * armor.c (armor_filter): Added status NODATA.
11015 * passphrase.c (passphrase_to_dek): Always print NEED_PASSPHRASE
11016 * seckey_cert.c (check_secret_key): Added BAD_PASS status.
11018 * g10.c (main): Set g10_opt_homedir.
11020 Sun Mar 14 19:34:36 CET 1999 Werner Koch <wk@isil.d.shuttle.de>
11022 * keygen.c (do_create): Changed wording of the note (Hugh Daniel)
11024 Thu Mar 11 16:39:46 CET 1999 Werner Koch <wk@isil.d.shuttle.de>
11028 * trustdb.c (walk_sigrecs,do_list_sigs,list_sigs,
11029 list_records,list_trustdb,export_ownertrust,import_ownertrust): Moved
11031 (init_trustdb): renamed to setup_trustdb. Changed all callers.
11032 (do_init_trustdb): renamed to init_trustdb().
11033 * trustdb.c (die_invalid_db): replaced by tdbio_invalid.
11034 * tdbio.c (tdbio_invalid): New.
11036 * import.c (delete_inv_parts): Skip non exportable signatures.
11037 * keyedit.c (sign_uid_mk_attrib): New.
11038 (sign_uids): Add the local argument.
11039 (keyedit_menu): New "lsign" command.
11040 * trustdb.c (register_trusted_key): Removed this and all related stuff.
11041 * g10.c (oTrustedKey): Removed option.
11043 * tdbio.h (dir.valcheck): New trustdb field.
11044 * tdbio.c: Add support for this field
11045 (tdbio_read_modify_stamp): New.
11046 (tdbio_write_modify_stamp): New.
11047 * trustdb.c (do_check): Check against this field. Removed cache update.
11048 (verify_key): Add cache update.
11049 (upd_uid_record): Some functional changes.
11050 (upd_cert_record): Ditto
11052 Wed Mar 10 11:26:18 CET 1999 Werner Koch <wk@isil.d.shuttle.de>
11054 * keylist.c (list_keyblock): Fixed segv in uid. Print 'u' as
11057 Mon Mar 8 20:47:17 CET 1999 Werner Koch <wk@isil.d.shuttle.de>
11059 * getkey.c (classify_user_id): Add new mode 12 (#<lid>).
11061 * seckey-cert.c (check_secret_key): replaced error by info.
11063 * trustdb.c (query_trust_info): Add another arg, changed all callers.
11064 (check_trust): Ditto.
11066 (verify_key): Handle namehash.
11067 * keylist.c (list_keyblock): print trust info for user ids.
11069 * sig-check.c (signature_check): Add sig-created to status output.
11071 Tue Mar 2 16:44:57 CET 1999 Werner Koch <wk@isil.d.shuttle.de>
11073 * textfilter.c (copy_clearsig_text): New.
11074 (clearsign): Removed.
11075 * sign.c (clearsign_file): does not use textfiler anymore.
11077 * keygen.c (ask_user_id): print a note about the used charset.
11079 Tue Mar 2 10:38:42 CET 1999 Werner Koch <wk@isil.d.shuttle.de>
11081 * sig-check.c (signature_check): sig-id now works for all algos.
11083 * armor.c (armor_filter): Fixed armor bypassing.
11085 Sun Feb 28 19:11:00 CET 1999 Werner Koch <wk@isil.d.shuttle.de>
11087 * keygen.c (ask_user_id): Don't change the case of email addresses.
11088 (has_invalid_email_chars): Adjusted.
11090 * keylist.c (list_one): Really list serect keys (Remi Guyomarch)
11092 * keyedit.c (menu_select_uid): Add some braces to make egcs happy.
11093 (menu_select_key): Ditto.
11095 * mainproc.c (do_proc_packets): List sym-enc packets (Remi Guyomarch)
11097 Fri Feb 26 17:55:41 CET 1999 Werner Koch <wk@isil.d.shuttle.de>
11099 * pkclist.c (build_pk_list): Return error if there are no recipients.
11101 * sig-check.c (signature_check): New signature id feature.
11102 * armor.c (make_radic64_string): New.
11104 * mainproc.c (proc_pubkey_enc): early check for seckey availability.
11106 * pkclist.c (do_we_trust_pre): print user id before asking.
11108 * ringedit.c (add_keyblock_resource,get_keyblock_handle): Cleaner
11109 handling of default resource.
11112 Thu Feb 25 18:47:39 CET 1999 Werner Koch <wk@isil.d.shuttle.de>
11114 * pkclist.c (algo_available): New.
11115 (select_algo_from_prefs): Check whether algo is available.
11117 * ringedit.c (keyring_copy): Take care of opt.dry_run.
11118 (do_gdbm_store): Ditto.
11119 * openfile.c (open_outfile). Ditto.
11120 (copy_options_file): Ditto.
11121 * trustdb.c (update_trustdb): Ditto.
11122 (clear_trust_checked_flag): Ditto.
11123 (update_trust_record): Ditto.
11124 (insert_trust_record): Ditto.
11126 Wed Feb 24 11:07:27 CET 1999 Werner Koch <wk@isil.d.shuttle.de>
11128 * keylist.c (secret_key_list): Now really list the secret key.
11130 * trustdb.c (do_init_trustdb): New. Init is now deferred.
11132 Mon Feb 22 20:04:00 CET 1999 Werner Koch <wk@isil.d.shuttle.de>
11134 * getkey.c (lookup_sk): Return G10ERR_NO_SECKEY and not x_PUBKEY.
11136 Fri Feb 19 15:49:15 CET 1999 Werner Koch <wk@isil.d.shuttle.de>
11138 * pkclist.c (select_algo_from_prefs): retrieve LID if not there.
11140 * armor.c (fake_packet): Replaced ugly lineending handling.
11142 * g10.c (oNoEncryptTo): New.
11143 * pkclist.c (build_pk_list): Implemented this option.
11145 * g10.c (main): Greeting is now printed to stderr and not to tty.
11146 Use add_to_strlist() instead of direct coding.
11148 * import.c (import): Use iobuf_push_filter2.
11150 * mainproc.c (check_sig_and_print): Print all user ids
11151 for good signatures.
11152 * getkey.c (get_pubkeyblock): New.
11154 * import.c (chk_self_sigs): Fixed SEGV for unbounded class 0x18 keys.
11155 (delete_inv_parts): Delete special marked packets.
11157 Tue Feb 16 14:10:02 CET 1999 Werner Koch <wk@isil.d.shuttle.de>
11159 * g10.c (main): New option --encrypt-to
11161 * pkclist.c (build_pk_list): Implemented encrypt-to.
11163 * parse-packet.c (parse_user_id): Removed the hack to work with
11166 * g10.c (main): Install lockfile cleanup handler.
11167 * tdbio.c (cleanup): Removed: this is now handled by dotlock.
11169 Sat Feb 13 14:13:04 CET 1999 Werner Koch <wk@isil.d.shuttle.de>
11171 * tdbio.c (tdbio_set_dbname): Init lockhandle for a new trustdb
11173 Wed Feb 10 17:15:39 CET 1999 Werner Koch <wk@isil.d.shuttle.de>
11175 * g10.c (main): check for development version now in configure
11177 * tdbio.c (tdbio_write_record): Add uid.validity
11178 (tdbio_read_record) : Ditto.
11179 (tdbio_dump_record) : Ditto.
11181 * keygen.c (keygen_add_std_prefs): Replaced Blowfish by Twofish,
11182 removed MD5 and Tiger.
11183 * pubkey-enc.c (get_it): Suppress warning about missing Blowfish
11184 in preferences in certain cases.
11186 * ringedit.c (lock_rentry,unlock_rentry): New.
11188 * getkey.c (key_byname): Pass ret_kb down to lookup_xx.
11190 * armor.c (armor_filter): No output of of empty comment lines.
11191 Add option --no-version to suppress the output of the version string.
11193 * getkey.c: Release the getkey context for auto context variables.
11195 Sun Jan 24 18:16:26 CET 1999 Werner Koch <wk@isil.d.shuttle.de>
11197 * getkey.c: Changed the internal design to allow simultaneous
11198 lookup of multible user ids
11199 (get_pubkey_bynames): New.
11200 (get_seckey_bynames): New.
11201 (get_seckey_next): New.
11202 (get_seckey_end): New.
11203 * keylist.c (list_one): Use the new functions.
11205 * keylist.c (list_keyblock): add a newline for normal listings.
11207 * g10.c (--recipient): New option name to replace --remote-user
11210 Wed Jan 20 18:59:49 CET 1999 Werner Koch <wk@isil.d.shuttle.de>
11212 * textfilter.c: Mostly rewritten
11213 * plaintext.c (handle_plaintext): Use now text_filter semantics.
11215 Tue Jan 19 19:34:58 CET 1999 Werner Koch <wk@isil.d.shuttle.de>
11217 * export.c (export_pubkeys_stream): New.
11218 (do_export_stream): New.
11219 * g10.c (aSendKeys): New command.
11220 * hkp.c (hkp_export): New.
11222 * compress.c (do_uncompress): Hack for algo 1 and 1.1.3
11224 Sun Jan 17 11:04:33 CET 1999 Werner Koch <wk@isil.d.shuttle.de>
11226 * textfilter.c (text_filter): Now uses iobuf_read_line().
11227 (read_line): Removed.
11229 * armor.c (trim_trailing_spaces): Removed and replaced
11230 by trim_trailing_ws from libutil
11232 Sat Jan 16 12:03:27 CET 1999 Werner Koch <wk@isil.d.shuttle.de>
11234 * hkp.c (hkp_ask_import): Use only the short keyid
11236 Sat Jan 16 09:27:30 CET 1999 Werner Koch <wk@isil.d.shuttle.de>
11238 * import.c (import_key_stream): New
11239 (import): New, moved most of import_keys here.
11240 * g10.c: New option --keyserver
11241 * mainproc.c (check_sig_and_print): Hook to import a pubkey.
11243 * pref.c pref.h : Removed
11247 Wed Jan 13 14:10:15 CET 1999 Werner Koch <wk@isil.d.shuttle.de>
11249 * armor.c (radix64_read): Print an error if a bad armor was detected.
11251 Wed Jan 13 12:49:36 CET 1999 Werner Koch <wk@isil.d.shuttle.de>
11253 * armor.c (radix64_read): Now handles malformed armors produced
11254 by some buggy MUAs.
11256 Tue Jan 12 11:17:18 CET 1999 Werner Koch <wk@isil.d.shuttle.de>
11258 * ringedit.c (find_keyblock_bysk): New.
11260 * skc_list.c (is_insecure): New.
11261 (build_sk_list): usage check for insecure keys.
11263 * import.c (chk_self_sigs): Add handling for subkeys.
11264 (delete_inv_parts): Skip unsigned subkeys
11266 * sig-check.c (do_check): Print info if the signature is older
11268 * keygen.c (generate_subkeypair): Fail on time warp.
11269 * sign.c (do_sign): Ditto.
11271 Sun Jan 10 15:10:02 CET 1999 Werner Koch <wk@isil.d.shuttle.de>
11273 * armor.c (fake_packet): Fixed not-dash-escaped bug.
11275 Sat Jan 9 16:02:23 CET 1999 Werner Koch <wk@isil.d.shuttle.de>
11277 * sig-check.c (do_check): Output time diff on error
11279 * status.c (STATUS_VALIDSIG): New.
11280 (is_status_enabled): New.
11281 * mainproc.c (check_sig_and_print): Issue that status message.
11283 * plaintext.c (special_md_putc): Removed
11285 * armor.c (armor_filter): print error for truncated lines.
11287 * free-packet.c (free_encrypted): Revomed call to set_block_mode.
11288 (free_plaintext): Ditto.
11290 Thu Jan 7 18:00:58 CET 1999 Werner Koch <wk@isil.d.shuttle.de>
11292 * pkclist.c (add_ownertrust): Fixed return value.
11294 * encr-data.c (decrypt_data): Disabled iobuf_set_limit and
11295 iobuf_pop_filter stuff.
11296 * compress.c (handle_compressed): Disabled iobuf_pop_filter.
11298 * packet.h (PKT_secret_key): Add is_primary flag.
11299 * parse-packet.c (parse_key): Set this flag.
11300 * passphrase.c (passphrase_to_dek): Kludge to print the primary
11301 keyid - changed the API: keyid must now hold 2 keyids.
11302 * getkey.c (get_primary_seckey): New.
11303 * seckey-cert.c (do_check): pass primary keyid to passphrase query
11305 * tbdio.c (open_db): removed the atexit
11306 (tdbio_set_dbname): and moved it to here.
11308 * armor.c: Rewrote large parts.
11310 Tue Dec 29 19:55:38 CET 1998 Werner Koch <wk@isil.d.shuttle.de>
11312 * revoke.c (gen_revoke): Removed compression.
11314 * pkclist.c (do_we_trust_pre): special check for revoked keys
11316 * trustdb.c (update_trust_record): Fixed revoke flag.
11318 Tue Dec 29 14:41:47 CET 1998 Werner Koch <wk@isil.d.shuttle.de>
11320 * misc.c (disable_core_dumps): Check for EINVAL (Atari)
11322 * getkey (merge_one_pk_and_selfsig): Fixed search of expiredate.
11323 (merge_keys_and_selfsig): Ditto.
11325 * free-packet.c (cmp_public_keys): cmp expire only for v3 packets
11326 (cmp_secret_keys): Ditto.
11327 (cmp_public_secret_key): Ditto.
11329 Wed Dec 23 17:12:24 CET 1998 Werner Koch <wk@isil.d.shuttle.de>
11331 * armor.c (find_header): Reset not_dashed at every header
11333 Wed Dec 23 13:18:14 CET 1998 Werner Koch <wk@isil.d.shuttle.de>
11335 * pkclist.c (add_ownertrust): Refresh validity values.
11337 * trustdb.c (enum_cert_paths_print): New arg refresh.
11339 * ringedit.c: Fixed problems fix keyrings
11340 * parse-packet.c (dbg_parse_packet): New debug functions.
11342 * getkey.c (getkey_disable_caches): New.
11343 * import.c (import_keys): Disable caches.
11345 Thu Dec 17 18:31:15 CET 1998 Werner Koch <wk@isil.d.shuttle.de>
11347 * misc.c (trap_unaligned): Only for glibc 1
11349 * sign.c (write_dash_escaped): Now escapes "From " lines
11350 * g10.c: New option --escape-from-lines
11352 * trustdb.c (sort_tsl_list): New
11353 (list_trust_path): Now prints sorted list.
11354 (enum_cert_paths): Likewise.
11355 (enum_cert_paths_print): New.
11356 (print_paths): New printing format.
11357 * pkclist.c (add_ownertrust): New arg quit.
11358 (edit_ownertrust): New quit selection and does not query
11359 the recipients ownertrust anymore.
11360 (add_ownertrust): Print the ceritficate path.
11363 Mon Dec 14 21:18:49 CET 1998 Werner Koch <wk@isil.d.shuttle.de>
11365 * parse-packet.c (parse_signature): Now checks for critical bit
11366 (parse_sig_subpkt): Splitted.
11367 (parse_one_sig_subpkt): New.
11368 * sig-check.c (do_check): handle critical bit.
11370 Sun Dec 13 14:10:56 CET 1998 Werner Koch <wk@isil.d.shuttle.de>
11372 * pcklist.c (select_algo_from_prefs): Preferences should
11373 now work (lost the != ? )
11375 Thu Dec 10 20:15:36 CET 1998 Werner Koch <wk@isil.d.shuttle.de>
11377 * ringedit.c (gdbm_store): Fix for inserts
11379 * g10.c (main): New option --export-all
11380 * export.c (export_pubkeys): New arg.
11381 (do_export): Now may skip old keys.
11383 * status.c: Minor patches for Sun's cc
11385 * keygen.c (ask_algo): Disabled v3 ElGamal choice, rearranged
11386 the numbers. Add a warning question when a sign+encrypt key
11389 * g10.c (do_not_use_RSA): Removed.
11390 * misc.c (print_pubkey_algo_note): New as replacement for the
11391 do_not_use_RSA() and chnaged all callers.
11392 (print_cipher_algo_note): New.
11393 (print_hash_algo_note): New.
11395 * cipher.c (write_header): Add a call to print_cipher_algo_note.
11396 * seckey-cert.c (protect_secret_key): Ditto
11397 * sign.c (do_sign): Add a call to print_digest_algo_note.
11399 * getkey.c (get_long_user_id_string): New.
11400 * mainproc.c (check_sig_and_print): Changed the format of the
11403 * encrypt.c (write_pubkey_enc_from_list): print used symmetric cipher.
11405 * pkclist.c (do_we_trust): Changed a message.
11407 Wed Dec 9 13:41:06 CET 1998 Werner Koch <wk@isil.d.shuttle.de>
11409 * misc.c (trap_unaligned) [ALPHA]: Only if UAC_SIGBUS is defined.
11411 * sign.c (write_dash_escaped): Add the forgotten patch by Brian Moore.
11413 * compress.c (do_uncompress): Fixed the inflating bug.
11416 Tue Dec 8 13:15:16 CET 1998 Werner Koch <wk@isil.d.shuttle.de>
11418 * trustdb.c (upd_uid_record): Now uses the newest self-signature
11419 (insert_trust_record): Now calls update with recheck set to true.
11420 (register_trusted_key): New.
11421 (verify_own_keys): Enhanced by list of trusted keys.
11423 * g10.c (main): Print a warning when a devel version is used.
11424 (main): New option --trusted-key
11426 * import.c (merge_blocks): Fixed merging of new user ids and
11427 added merging of subkeys.
11428 (append_uid): Ditto.
11429 (merge_keysig): New.
11431 * getkey.c (merge_one_pk_and_selfsig): Get the expiration time
11432 from the newest self-signature.
11433 (merge_keys_and_selfsig): Ditto.
11435 * free-packet.c (cmp_secret_key): New.
11438 Fri Nov 27 21:37:41 CET 1998 Werner Koch <wk@isil.d.shuttle.de>
11440 * g10.c: New option --lock-once
11441 * tdbio.c (open_db): Add an atexit
11443 (tdbio_sync): Add locking.
11444 (tdbio_end_transaction): Ditto.
11445 (put_record_into_cache): Ditto.
11446 * ringedit.c (keyring_copy): Ditto.
11448 (add_keyblock_resource): Add an atexit.
11450 Fri Nov 27 15:30:24 CET 1998 Werner Koch <wk@isil.d.shuttle.de>
11452 * armor.c (find_header): Another fix for clearsigs.
11454 Fri Nov 27 12:39:29 CET 1998 Werner Koch <wk@isil.d.shuttle.de>
11457 * status.c (display_help): Removed.
11458 * helptext.c: New and removed the N_() from all cpr_gets.
11461 Fri Nov 20 16:54:52 1998 Werner Koch (wk@isil.d.shuttle.de)
11463 * g10.c (main): New option --not-dash-escaped
11464 * sign.c (write_dashed_escaped): Ditto.
11465 * armor.c (find_header): Support for NotDashEscaped header.
11467 * getkey.c: print "disabled cache.." only if verbose is used.
11469 Thu Nov 19 07:17:31 1998 Werner Koch <werner.koch@guug.de>
11471 * parse-packet.c (dump_sig_subpkt): Fixed expire listing
11472 * getkey.c (merge_keys_and_selfsig): Fixed expire calculation.
11473 (merge_one_pk_and_selfsig): Ditto.
11474 * keyedit.c (menu_expire). Ditto.
11475 * keygen.c (keygen_add_key_expire): Ditto.
11476 (ask_expire_interval): New and changed all local function to use
11478 (keygen_add_key_expire): Opaque should now be a public key;
11479 changed all callers.
11481 * parse.packet.c (parse): use skip_rest to skip packets.
11483 * keyedit.c (keyedit_menu): New arg for cmdline cmds.
11485 Wed Nov 18 20:33:50 1998 Werner Koch (wk@isil.d.shuttle.de)
11487 * trustdb.c (check_trustdb): Now rechecks all gived userids.
11488 (collect_paths): Some fixes.
11489 (upd_pref_records): Skips empty items, evaluate all items.
11491 * parse-packet.c (dump_sig_subpkt): Better listing of prefs.
11492 (skip_packet): Now knows about marker packet
11494 * g10.c: removed cmd "--edit-sig".
11496 * pubring.asc: Updated.
11498 Sat Nov 14 14:01:29 1998 Werner Koch (wk@isil.d.shuttle.de)
11500 * g10.c (main): Changed syntax of --list-trust-path
11501 * trustdb.c (list_trust_path): Replaced max_depth by
11504 Fri Nov 13 07:39:58 1998 Werner Koch <werner.koch@guug.de>
11506 * trustdb.c (collect_paths): Removed a warning message.
11507 (enum_trust_web): Removed.
11508 (enum_cert_paths): New.
11509 * pkclist.c (add_ownertrust): Changed to use enum_cert_paths.
11510 (edit_ownertrust): Now list ceritficates on request.
11513 Wed Nov 11 18:05:44 1998 Werner Koch <werner.koch@guug.de>
11515 * g10.c (main): New option --max-cert-depth
11516 * tdbio.h: add new fields to ver and dir record.
11517 * tdbio.c: read/write/dump of these fields.
11518 (tdbio_db_matches_options): New.
11519 * trustdb.c: replaced MAC_CERT_DEPTH by opt.max_cert_depth.
11520 (do_check): cache validity and changed other functions
11521 to reset the cached value.
11523 * keylist.c (list_one): Now lists the ownertrust.
11524 * mainproc.c (list_node): Ditto.
11526 Tue Nov 10 10:08:59 1998 Werner Koch (wk@isil.d.shuttle.de)
11528 * g10.c (g10_exit): Now looks at the new g10_errors_seen.
11529 * mainproc.c (check_sig_and_print): Sets g10_errors_seen.
11531 * *.c : i18n many more strings.
11533 * ringedit.c (locate_keyblock_by_keyid): Add HAVE_LIBGDBM
11534 (locate_keyblock_by_fpr): Ditto.
11536 * g10.c (main): removed unsused "int errors".
11537 (main): Add new option --charset.
11539 * g10.c (main): special message for the unix newbie.
11541 Mon Nov 9 07:17:42 1998 Werner Koch <werner.koch@guug.de>
11543 * getkey.c (finish_lookup): Kludge to prefere algo 16.
11545 * trustdb.c (new_lid_table): Clear cached item.
11547 * status.c (cpr_get_utf8): New.
11548 * pkclist.c (build_pk_list): Uses this.
11550 Sun Nov 8 17:20:39 1998 Werner Koch (wk@isil.d.shuttle.de)
11552 * mainproc.c (check_sig_and_print): Why did I use strlen()-1
11553 in the printf? - This truncated the TZ.
11555 Sat Nov 7 15:57:28 1998 me,,, (wk@tobold)
11557 * getkey.c (lookup): Changes to support a read_next.
11558 (get_pubkey): Fixed a memory leak.
11560 * keylist.c (list_one): Now lists all matching user IDs.
11562 Tue Nov 3 16:19:21 1998 Werner Koch (wk@isil.d.shuttle.de)
11564 * keygen.c (ask_user_id): Now converted to UTF-8
11566 * g10.c (main): Kludge for pgp clearsigs and textmode.
11568 Fri Oct 30 16:40:39 1998 me,,, (wk@tobold)
11570 * signal.c (block_all_signals): New.
11571 (unblock_all_signals): New
11572 * tdbio.c (tdbio_end_transaction): Now blocks all signals.
11574 * trustdb.c (new_lid_table): Changed the representation of the
11575 former local_lid_info stuff.
11577 * trustdb.c (update_trust_record): Reorganized the whole thing.
11578 * sig-check.c (check_key_signature): Now handles class 0x28
11581 Wed Oct 28 18:56:33 1998 me,,, (wk@tobold)
11583 * export.c (do_export): Takes care of the exportable sig flag.
11585 Tue Oct 27 14:53:04 1998 Werner Koch (wk@isil.d.shuttle.de)
11587 * trustdb.c (update_trust_record): New "fast" parameter.
11589 Sun Oct 25 19:32:05 1998 Werner Koch (wk@isil.d.shuttle.de)
11591 * openfile.c (copy_options_File): New.
11592 * ringedit.c (add_keyblock_resource): Creates options file
11593 * tdbio.c (tdbio_set_dbname): Ditto.
11595 Sat Oct 24 14:10:53 1998 brian moore <bem@cmc.net>
11597 * mainproc.c (proc_pubkey_enc): Don't release the DEK
11598 (do_proc_packets): Ditto.
11600 Fri Oct 23 06:49:38 1998 me,,, (wk@tobold)
11602 * keyedit.c (keyedit_menu): Comments are now allowed
11604 * trustdb.c: Rewrote large parts.
11607 Thu Oct 22 15:56:45 1998 Michael Roth (mroth@nessie.de)
11609 * encode.c: (encode_simple): Only the plain filename without
11610 a given directory is stored in generated packets.
11611 (encode_crypt): Ditto.
11613 * sign.c: (sign_file) Ditto.
11616 Thu Oct 22 10:53:41 1998 Werner Koch (wk@isil.d.shuttle.de)
11618 * trustdb.c (update_trust_record): Add new optional arg.
11620 * import.c (import_keys): Add statistics output
11621 * trustdb.c (update_trustdb): Ditto.
11622 (insert_trustdb): Ditto.
11624 * tdbio.c (tdbio_begin_transaction): New.
11625 (tdbio_end_transaction): New.
11626 (tdbio_cancel_transaction): New.
11628 * g10.c (main): New option --quit.
11630 * trustdb.c (check_hint_sig): No tests for user-id w/o sig.
11631 This caused an assert while checking the sigs.
11633 * trustdb.c (upd_sig_record): Splitted into several functions.
11635 * import.c (import_keys): New arg "fast".
11636 * g10.c (main): New command --fast-import.
11638 Wed Oct 21 18:19:36 1998 Michael Roth <mroth@nessie.de>
11640 * ringedit.c (add_keyblock_resource): Directory is now created.
11641 * tdbio.c (tdbio_set_dbname): New info message.
11643 Wed Oct 21 11:52:04 1998 Werner Koch (wk@isil.d.shuttle.de)
11645 * trustdb.c (update_trustdb): released keyblock in loop.
11647 * keylist.c (list_block): New.
11648 (list_all): Changed to use list_block.
11650 * trustdb.c: Completed support for GDBM
11652 * sign.c (only_old_style): Changed the way force_v3 is handled
11653 (sign_file): Ditto.
11654 (clearsign_file): Ditto.
11656 * keygen.c (has_invalid_email_chars): Splitted into mailbox and
11659 * keylist.c (list_one): Add a merge_keys_and_selfsig.
11660 * mainproc.c (proc_tree): Ditto.
11662 Sun Oct 18 11:49:03 1998 Werner Koch (wk@isil.d.shuttle.de)
11664 * sign.c (only_old_style): Add option force_v3_sigs
11665 (sign_file): Fixed a bug in sig->version
11666 (clearsign_file): Ditto.
11668 * parse-packet.c (dump_sig_subpkt): New
11670 * keyedit.c (menu_expire): New.
11671 * free-packet.c (cmp_signatures): New
11674 Sat Oct 17 10:22:39 1998 Werner Koch (wk@isil.d.shuttle.de)
11676 * armor.c: changed output line length from 72 to 64.
11678 * keyedit.c (fix_keyblock): New.
11680 Fri Oct 16 10:24:47 1998 Werner Koch (wk@isil.d.shuttle.de)
11682 * trustdb.c: Rewrote most.
11683 * tdbio.c: Add cache and generalized hash tables.
11685 * options.h (ENABLE_COMMENT_PACKETS): New but undef'ed.
11686 * encode.c, sign.c, keygen.c: Disabled comment packets.
11687 * export.c (do_export): Comment packets are never exported,
11688 except for those in the secret keyring.
11690 * g10.c (main): Removed option do-no-export-rsa; should be
11691 be replaced by a secpial tool.
11692 * export.c (do_export): Removed the code for the above option.
11694 * armor.c (find_header): Support for new only_keyblocks.
11695 * import.c (import_keys): Only looks for keyblock armors.
11697 * packet.h: replaced valid_days by expiredate and changed all users.
11698 * build-packet.c (do_public_key): calculates valid-days
11699 (do_secret_key): Ditto.
11700 * parse-packet.c (parse_key): expiredate is calucated from the
11701 valid_period in v3 packets.
11702 * keyid.c (do_fingerprint_md): calculates valid_dates.
11704 * keygen.c (add_key_expire): fixed key expiration time for v4 packets.
11706 * armor.c (find_header): A LF in the first 28 bytes
11707 was skipped for non-armored data.
11709 Thu Oct 8 11:35:51 1998 Werner Koch (wk@isil.d.shuttle.de)
11711 * armor.c (is_armored): Add test on old comment packets.
11713 * tdbio.c (tdbio_search_dir_bypk): fixed memory leak.
11715 * getkey.c: Changed the caching algorithms.
11717 Wed Oct 7 19:33:28 1998 Werner Koch (wk@isil.d.shuttle.de)
11719 * kbnodes.c (unused_nodes): New.
11721 Wed Oct 7 11:15:36 1998 Werner Koch (wk@isil.d.shuttle.de)
11723 * keyedit.c (sign_uids): Fixed a problem with SK which could caused
11724 a save of an unprotected key.
11725 (menu_adduid): Ditto.
11727 * keyedit.c (keyedit_menu): Prefs are now correctly listed for
11730 * trustdb.c (update_trust_record): New.
11731 (insert_trust_record): Now makes use of update_trust_record.
11733 Tue Oct 6 16:18:03 1998 Werner Koch (wk@isil.d.shuttle.de)
11735 * trustdb.c (read_record): replaces most of the tdbio_read_records.
11736 (write_record): Ditto.
11738 Sat Oct 3 11:01:21 1998 Werner Koch (wk@isil.d.shuttle.de)
11740 * keygen.c (ask_alogo): enable ElGamal enc-only only for addmode.
11742 Wed Sep 30 10:15:33 1998 Werner Koch (wk@isil.d.shuttle.de)
11744 * import.c (import_one): Fixed update of wrong keyblock.
11746 Tue Sep 29 08:32:08 1998 me,,, (wk@tobold)
11748 * mainproc.c (proc_plaintext): Display note for special filename.
11749 * plaintext.c (handle_plaintext): Suppress output of special file.
11751 Mon Sep 28 12:57:12 1998 Werner Koch (wk@isil.d.shuttle.de)
11753 * g10.c (verify_own_keys): Add warning if a key is not protected.
11755 * passphrase (hash_passphrase): Fixed iterated+salted mode and
11756 setup for keysizes > hashsize.
11758 * g10.c (main): New options: --s2k-{cipher,digest,mode}.
11760 Fri Sep 25 09:34:23 1998 Werner Koch (wk@isil.d.shuttle.de)
11762 * g10.c: Chnaged some help texts.
11764 Tue Sep 22 19:34:39 1998 Werner Koch (wk@isil.d.shuttle.de)
11766 * passphrase.c (read_passphrase_from_fd): fixed bug for long
11769 Mon Sep 21 11:28:05 1998 Werner Koch (wk@(none))
11771 * getkey.c (lookup): Add code to use the sub key if the primary one
11772 does not match the usage.
11774 * armor.c (armor_filter): New error message: no valid data found.
11775 (radix64_read): Changes to support multiple messages.
11777 * mainproc.c (add_onepass_sig): bug fix.
11779 Mon Sep 21 08:03:16 1998 Werner Koch (wk@isil.d.shuttle.de)
11781 * pkclist.c (do_we_trust): Add keyid to most messages.
11783 * passphrase.c (read_passphrase_from_fd): New.
11784 (have_static_passphrase): New
11785 (get_passphrase_fd): Removed.
11786 (set_passphrase_fd): Removed.
11787 * g10.c (main): passphrase is now read here.
11789 * keyedit.c (keyedit_menu): "help" texts should now translate fine.
11791 Mon Sep 21 06:40:02 1998 Werner Koch (wk@isil.d.shuttle.de)
11793 * encode.c (encode_simple): Now disables compression
11794 when --rfc1991 is used.
11795 (encode_crypt): Ditto.
11797 Fri Sep 18 16:50:32 1998 Werner Koch (wk@isil.d.shuttle.de)
11799 * getkey.c (merge_key_and_selfsig): New.
11801 Fri Sep 18 10:20:11 1998 Werner Koch (wk@isil.d.shuttle.de)
11803 * pkclist.c (select_algo_from_prefs): Removed 3DES kludge.
11805 * seskey.c (make_session_key): Fixed SERIOUS bug introduced
11806 by adding the weak key detection code.
11808 * sign.c (sign_file): Changed aremor header in certain cases.
11810 Tue Sep 15 17:52:55 1998 Werner Koch (wk@isil.d.shuttle.de)
11812 * mainproc.c (check_sig_and_print): Replaced ascime by asctimestamp.
11814 Mon Sep 14 11:40:52 1998 Werner Koch (wk@isil.d.shuttle.de)
11816 * seskey.c (make_session_key): Now detects weak keys.
11818 * trustdb (clear_trust_checked_flag): New.
11820 * plaintext.c (handle_plaintext): Does no anymore suppress CR from
11821 cleartext signed messages.
11823 Sun Sep 13 12:54:29 1998 Werner Koch (wk@isil.d.shuttle.de)
11825 * trustdb.c (insert_trust_record): Fixed a stupid bug in the free
11826 liunked list loops.
11828 Sat Sep 12 15:49:16 1998 Werner Koch (wk@isil.d.shuttle.de)
11830 * status.c (remove_shmid): New.
11831 (init_shm_comprocess): Now sets permission to the real uid.
11833 Wed Sep 9 11:15:03 1998 Werner Koch (wk@isil.d.shuttle.de)
11835 * packet.h (PKT_pubkey_enc): New flah throw_keyid, and add logic to
11837 * g10.c (main): New Option --throw-keyid
11839 * getkey.c (enum_secret_keys): Add new ar and changed all callers.
11841 Tue Sep 8 20:04:09 1998 Werner Koch (wk@isil.d.shuttle.de)
11843 * delkey.c (delete_key): Moved from keyedit.c.
11845 Mon Sep 7 16:37:52 1998 Werner Koch (wk@isil.d.shuttle.de)
11847 * build-packet.c (calc_length_header): New arg new_ctb to correctly
11848 calculate the length of new style packets.
11850 * armor.c (is_armored): Checks for symkey_enc packets.
11852 * pkclist.c (select_algo_from_prefs): 3DEs substitute is now CAST5.
11854 Tue Aug 11 17:54:50 1998 Werner Koch (wk@isil.d.shuttle.de)
11856 * build-packet.c (do_secret_key): Fixed handling of old keys.
11858 * getkey.c (compare_name): Fixed exact and email matching
11860 * openfile.c (open_outfile): Changed arguments and all callers.
11862 Tue Aug 11 09:14:35 1998 Werner Koch (wk@isil.d.shuttle.de)
11864 * encode.c (encode_simple): Applied option set-filename and comment.
11865 (encode_crypt): Ditto.
11866 * sign.c (sign_file): Ditto.
11867 * armor.c (armor_filter): Applied option comment.
11869 * encode.c (encode_crypt): Moved init_packet to the begin.
11870 (encode_simple): add an init_packet().
11872 * comment (write_comment): Now enforces a hash sign as the 1st byte.
11874 * import.c (import_one): Add explanation for "no user ids".
11876 * compress.c (do_uncompress): Applied Brian Warner's patch to support
11879 * trustdb.c (check_trust): Fixed a problem after inserting new keys.
11881 * getkey (lookup): do not return the primary key if usage is given
11882 (lookup_sk): Ditto and take usage into account.
11884 * status.c (cpr_get_answer_is_yes): add display_help.
11886 Mon Aug 10 10:11:28 1998 Werner Koch (wk@isil.d.shuttle.de)
11888 * getkey.c (lookup_sk): Now always returns the primary if arg
11890 (lookup): Likewise.
11891 (get_pubkey_byname): Now returns the primary key
11892 (get_seckey_byname): Ditto.
11895 Mon Aug 10 08:34:03 1998 Werner Koch (wk@isil.d.shuttle.de)
11897 * keyid.c (pubkey_letter): ELG_E is now a small g.
11899 Sat Aug 8 17:26:12 1998 Werner Koch (wk@isil.d.shuttle.de)
11901 * openfile (overwrite_filep): Changed semantics and all callers.
11903 Sat Aug 8 12:17:07 1998 Werner Koch (wk@isil.d.shuttle.de)
11905 * status.c (display_help): New.
11907 Thu Aug 6 16:30:41 1998 Werner Koch,mobil,,, (wk@tobold)
11909 * seskey.c (encode_session_key): Now uses get_random_bits().
11911 Thu Aug 6 07:34:56 1998 Werner Koch,mobil,,, (wk@tobold)
11913 * ringedit.c (keyring_copy): No more backupfiles for
11914 secret keyrings and add additional warning in case of
11915 a failed secret keyring operation.
11917 Wed Aug 5 11:54:37 1998 Werner Koch (wk@isil.d.shuttle.de)
11919 * g10.c (check_opts): Moved to main. Changed def_cipher_algo
11920 semantics and chnaged all users.
11922 * pubkey-enc.c (get_sssion_key): New informational output
11925 * parse-packet.c (parse_symkeyenc): Fixed salted+iterated S2K
11926 (parse_key): Ditto.
11927 * build-packet.c (do_secret_key): Ditto.
11928 (do_symkey_enc): Ditto.
11930 Tue Aug 4 08:59:10 1998 Werner Koch (wk@isil.d.shuttle.de)
11932 * getkey.c (enum_secret_keys): Now returns only primary keys.
11934 * getkey (lookup): Now sets the new namehash field.
11936 * parse-packet.c (parse_sig_subpkt2): New.
11938 * sign.c (sign_file): one-pass sigs are now emiited reverse.
11939 Preference data is considered when selecting the compress algo.
11941 Wed Jul 29 12:53:03 1998 Werner Koch (wk@isil.d.shuttle.de)
11943 * free-packet.c (copy_signature): New.
11945 * keygen.c (generate_subkeypair): rewritten
11946 * g10.c (aKeyadd): Removed option --add-key
11948 Mon Jul 27 10:37:28 1998 Werner Koch (wk@isil.d.shuttle.de)
11950 * seckey-cert.c (do_check): Additional check on cipher blocksize.
11951 (protect_secret_key): Ditto.
11952 * encr-data.c: Support for other blocksizes.
11953 * cipher.c (write_header): Ditto.
11955 Fri Jul 24 16:47:59 1998 Werner Koch (wk@isil.d.shuttle.de)
11957 * kbnode.c (insert_kbnode): Changed semantics and all callers.
11958 * keyedit.c : More or less a complete rewrite
11960 Wed Jul 22 17:10:04 1998 Werner Koch (wk@isil.d.shuttle.de)
11962 * build-packet.c (write_sign_packet_header): New.
11964 Tue Jul 21 14:37:09 1998 Werner Koch (wk@isil.d.shuttle.de)
11966 * import.c (import_one): Now creates a trustdb record.
11968 * g10.c (main): New command --check-trustdb
11970 Mon Jul 20 11:15:07 1998 Werner Koch (wk@isil.d.shuttle.de)
11972 * genkey.c (generate_keypair): Default key is now DSA with
11973 encryption only ElGamal subkey.
11975 Thu Jul 16 10:58:33 1998 Werner Koch (wk@isil.d.shuttle.de)
11977 * keyid.c (keyid_from_fingerprint): New.
11978 * getkey.c (get_pubkey_byfprint): New.
11980 Tue Jul 14 18:09:51 1998 Werner Koch (wk@isil.d.shuttle.de)
11982 * keyid.c (fingerprint_from_pk): Add argument and changed all callers.
11983 (fingerprint_from_sk): Ditto.
11985 Tue Jul 14 10:10:03 1998 Werner Koch (wk@isil.d.shuttle.de)
11987 * plaintext.c (handle_plaintext): Now returns create error if
11988 the file could not be created or the user responded not to overwrite
11990 * mainproc.c (proc_plaintext): Tries again if the file could not
11991 be created to check the signature without output.
11993 * misc.c (disable_core_dumps): New.
11994 * g10.c (main): disable coredumps for gpg
11996 * g10.c (MAINTAINER_OPTIONS): New to disable some options
11998 Mon Jul 13 16:47:54 1998 Werner Koch (wk@isil.d.shuttle.de)
12000 * plaintext.c (hash_datafiles): New arg for better support of
12001 detached sigs. Changed all callers.
12002 * mainproc.c (proc_signature_packets): Ditto.
12004 * g10.c (main): New option "compress-sigs"
12005 * sig.c (sign_file): detached signatures are not anymore compressed
12006 unless the option --compress-sigs is used.
12008 Thu Jul 9 19:54:54 1998 Werner Koch (wk@isil.d.shuttle.de)
12010 * armor.c: Fixes to allow zero length cleartext signatures
12012 Thu Jul 9 14:52:47 1998 Werner Koch (wk@isil.d.shuttle.de)
12014 * g10.c (build_list): Now drops setuid.
12015 (main): Changed the way keyrings and algorithms are registered .
12017 Wed Jul 8 14:17:30 1998 Werner Koch (wk@isil.d.shuttle.de)
12019 * packet.h (PKT_public_key): Add field keyid.
12020 * parse-packet.c (parse_key): Reset the above field.
12021 * keyid.c (keyid_from_pk): Use above field as cache.
12023 * tdbio.c, tdbio.h: New
12024 * trustdb.c: Moved some functions to tdbio.c.
12025 (print_keyid): New.
12027 * pkclist.c (check_signatures_trust): New.
12029 Wed Jul 8 10:45:28 1998 Werner Koch (wk@isil.d.shuttle.de)
12031 * plaintext.c (special_md_putc): New.
12032 (handle_plaintext): add clearsig argument
12033 * mainproc.c (proc_plaintext): detection of clearsig
12034 * sign.c (write_dased_escaped): Changed clearsig format
12036 Tue Jul 7 18:56:19 1998 Werner Koch (wk@isil.d.shuttle.de)
12038 * armor.c (find_header): Now makes sure that there is only one
12039 empty line for clearsigs, as this is what OP now says.
12041 Mon Jul 6 13:09:07 1998 Werner Koch (wk@isil.d.shuttle.de)
12043 * g10.c (main): New option default-secret-key
12044 * getkey.c (get_seckey_byname): support for this option.
12046 Mon Jul 6 09:03:49 1998 Werner Koch (wk@isil.d.shuttle.de)
12048 * getkey.c (add_keyring): Keyrings are now added to end of the
12049 list of keyrings. The first added keyringwill be created.
12050 (add_secret_keyring): Likewise.
12052 * ringedit.c (add_keyblock_resource): Files are created here.
12054 * g10.c (aNOP): Removed
12056 * getkey.c (lookup): Add checking of usage for name lookups
12057 * packet.h (pubkey_usage): Add a field which may be used to store
12058 usage capabilities.
12059 * pkclist.c (build_pk_list): getkey now called with usage arg.
12060 * skclist.c (build_sk_list): Ditto.
12062 * sign.c (clearsign_file): Fixed "Hash:" headers
12064 Sat Jul 4 13:33:31 1998 Werner Koch (wk@isil.d.shuttle.de)
12066 * trustdb.c (list_ownertrust): New.
12067 * g10.c (aListOwnerTrust): New.
12069 * g10.c (def_pubkey_algo): Removed.
12071 * trustdb.c (verify_private_data): Removed and also the call to it.
12072 (sign_private_data): Removed.
12074 Fri Jul 3 13:26:10 1998 Werner Koch (wk@isil.d.shuttle.de)
12076 * g10.c (aEditKey): was aEditSig. Changed usage msg.
12078 * keyedit.c: Done some i18n stuff.
12080 * g10.c (do_not_use_RSA): New.
12081 * sign.c (do_sign): Add call to above function.
12082 * encode.c (write_pubkey_enc_from_list): Ditto.
12084 Thu Jul 2 21:01:25 1998 Werner Koch (wk@isil.d.shuttle.de)
12086 * parse-packet.c: Now is able sto store data of unknown
12088 * free-packet.c: Support for this.
12089 * build-packet.c: Can write data of packet with unknown algos.
12091 Thu Jul 2 11:46:36 1998 Werner Koch (wk@isil.d.shuttle.de)
12093 * parse-packet.c (parse): fixed 4 byte length header
12095 Wed Jul 1 12:36:55 1998 Werner Koch (wk@isil.d.shuttle.de)
12097 * packet.h (new_ctb): New field for some packets
12098 * build-packet.c (build_packet): Support for new_ctb
12099 * parse-packet.c (parse): Ditto.
12101 Mon Jun 29 12:54:45 1998 Werner Koch (wk@isil.d.shuttle.de)
12103 * packet.h: changed all "_cert" to "_key", "subcert" to "subkey".
12105 * free-packet.c (free_packet): Removed memory leak for subkeys.
12107 Sun Jun 28 18:32:27 1998 Werner Koch (wk@isil.d.shuttle.de)
12109 * import.c (import_keys): Renamed from import_pubkeys.
12110 (import_secret_one): New.
12112 * g10.c (aExportSecret): New.
12114 * export.c (export_seckeys): New.
12116 * parse-packet.c (parse_certificate): Cleaned up.
12117 (parse_packet): Trust packets are now considered as unknown.
12118 (parse_pubkey_warning): New.
12120 Fri Jun 26 10:37:35 1998 Werner Koch (wk@isil.d.shuttle.de)
12122 * keygen.c (has_invalid_email_chars): New.
12124 Wed Jun 24 16:40:22 1998 Werner Koch (wk@isil.d.shuttle.de)
12126 * armor.c (armor_filter): Now creates valid onepass_sig packets
12127 with all detected hash algorithms.
12128 * mainproc.c (proc_plaintext): Now uses the hash algos as specified
12129 in the onepass_sig packets (if there are any)
12131 Mon Jun 22 11:54:08 1998 Werner Koch (wk@isil.d.shuttle.de)
12133 * plaintext.c (handle_plaintext): add arg to disable outout
12134 * mainproc.c (proc_plaintext): disable output when in sigs_only mode.
12136 Thu Jun 18 13:17:27 1998 Werner Koch (wk@isil.d.shuttle.de)
12138 * keygen.c: Removed all rsa packet stuff, chnaged defaults
12139 for key generation.
12141 Sun Jun 14 21:28:31 1998 Werner Koch (wk@isil.d.shuttle.de)
12143 * misc.c (checksum_u16): Fixed a stupid bug which caused a
12144 wrong checksum calculation for the secret key protection and
12145 add a backward compatibility option.
12146 * g10.c (main): Add option --emulate-checksum-bug.
12148 Thu Jun 11 13:26:44 1998 Werner Koch (wk@isil.d.shuttle.de)
12150 * packet.h: Major changes to the structure of public key material
12151 which is now stored in an array and not anaymore in a union of
12152 algorithm specific structures. These is needed to make the system
12153 more extendable and makes a lot of stuff much simpler. Changed
12154 all over the system.
12156 * dsa.c, rsa.c, elg.c: Removed.
12158 Wed Jun 10 07:22:02 1998 Werner Koch,mobil,,, (wk@tobold)
12160 * g10.c ("load-extension"): New option.
12162 Mon Jun 8 22:23:37 1998 Werner Koch (wk@isil.d.shuttle.de)
12164 * seckey-cert.c (do_check): Removed cipher constants
12165 (protect_secret_key): Ditto.
12167 Fri May 29 10:00:28 1998 Werner Koch (wk@isil.d.shuttle.de)
12169 * trustdb.c (query_trust_info): New.
12170 * keylist.c (list_one): Add output of trust info
12171 * mainproc (list_node): ditto.
12172 * g10.c (main): full trustdb init if -with-colons and any of the
12175 Thu May 28 10:34:42 1998 Werner Koch (wk@isil.d.shuttle.de)
12177 * status.c (STATUS_RSA_OR_IDEA): New.
12178 * sig-check.c (check_signature): Output special status message.
12179 * pubkey-enc.c (get_session_key): Ditto.
12181 * mainproc.c (check_sig_and_print): Changed format of output.
12182 * passpharse.c (passphrase_to_dek): Likewise.
12184 Wed May 27 13:46:48 1998 Werner Koch (wk@isil.d.shuttle.de)
12186 * g10.c (aListSecretKeys): New option --list-secret-keys
12187 * keylist.c (std_key_list): Renamed to public_key_list.
12188 (secret_key_list): New
12189 (list_one, list_all): Add support for secret keys.
12190 * getkey.c (get_secret_keyring): New.
12191 * mainproc.c (list_node): Add option --with-colons for secret keys
12193 * sig-check.c (check_key_signature): detection of selfsigs
12194 * mainproc.c (list_node): fixed listing.
12196 * g10.c (aListSecretKeys): New option --always-trust
12197 * pkclist.c (do_we_trust): Override per option added
12199 * status.c (write_status_text): Add a prefix to every output line.
12201 Wed May 27 07:49:21 1998 Werner Koch (wk@isil.d.shuttle.de)
12203 * g10 (--compress-keys): New.
12204 * options.h (compress_keys): New.
12205 * export.c (export_pubkeys): Only compresses with the new option.
12207 Tue May 26 11:24:33 1998 Werner Koch (wk@isil.d.shuttle.de)
12209 * passphrase.c (get_last_passphrase): New
12210 (set_next_passphrase): New.
12211 (passphrase_to_dek): add support for the above functions.
12212 * keyedit.c (make_keysig_packet): Add sigclass 0x18,
12213 changed all callers due to a new argument.
12214 * keygen.c (write_keybinding): New
12215 (generate_subkeypair): Add functionality
12216 (ask_algo, ask_keysize, ask_valid_days): Broke out of generate_keypair
12217 (ask_user_id, ask_passphrase): Ditto.
12219 Thu May 21 11:26:13 1998 Werner Koch (wk@isil.d.shuttle.de)
12221 * g10.c,gpgd.c (main): Does now return an int, so that egcs does
12224 * armor.c (fake_packet): Removed erro message and add a noticed
12225 that this part should be fixed.
12227 * sign.c (sign_file): Compression now comes in front of encryption.
12228 * encode.c (encode_simple): Ditto.
12229 (encode_crypt): Ditto.
12231 Tue May 19 16:18:19 1998 Werner Koch (wk@isil.d.shuttle.de)
12233 * armor.c (fake_packet): Changed assertion to log_error
12235 Sat May 16 16:02:06 1998 Werner Koch (wk@isil.d.shuttle.de)
12237 * build-packet.c (build_packet): Add SUBKEY packets.
12239 Fri May 15 17:57:23 1998 Werner Koch (wk@isil.d.shuttle.de)
12241 * sign.c (hash_for): New and used in all places here.
12242 * main.h (DEFAULT_): new macros.
12243 * g10.c (opt.def_digest_algo): Now set to 0
12245 * compress.c (init_compress): Add support for algo 1
12246 * options.h (def_compress_algo): New
12247 * g10.c (main): New option --compress-algo
12249 Fri May 15 13:23:59 1998 Werner Koch (wk@isil.d.shuttle.de)
12251 * g10.c (print_mds): New feature to print only one hash,
12252 chnaged formatting.
12254 Thu May 14 15:36:24 1998 Werner Koch (wk@isil.d.shuttle.de)
12256 * misc.c (trap_unaligned) [__alpha__]: New
12257 * g10.c (trap_unaligned): Add call to this to track down SIGBUS
12258 on Alphas (to avoid the slow emulation code).
12260 Wed May 13 11:48:27 1998 Werner Koch (wk@isil.d.shuttle.de)
12262 * build-packet.c (do_signature): Support for v4 pakets.
12263 * keyedit.c (make_keysig_packet): Ditto.
12264 * build-packet.c (build_sig_subpkt_from_sig): New.
12265 (build_sig_subpkt): New.
12267 * elg.c (g10_elg_sign): removed keyid_from_skc.
12268 * dsa.c (g10_dsa_sign): Ditto.
12269 * rsa.c (g10_rsa_sign): Ditto.
12270 * keyedit.c (make_keysig_packet): Add call to keyid_from_skc
12272 * sign.c (clearsign_file): Support for v4 signatures.
12273 (sign_file): Ditto.
12275 Wed May 6 09:31:24 1998 Werner Koch (wk@isil.d.shuttle.de)
12277 * parse-packet.c (do_parse): add support for 5 byte length leader.
12278 (parse_subpkt): Ditto.
12279 * build-packet.c (write_new_header): Ditto.
12281 * packet.h (SIGSUBPKT_): New constants.
12282 * parse-packet.c (parse_sig_subpkt): Changed name, made global,
12283 and arg to return packet length, chnaged all callers
12286 Tue May 5 22:11:59 1998 Werner Koch (wk@isil.d.shuttle.de)
12288 * keygen.c (gen_dsa): New.
12289 * build_packet.c (do_secret_cert): Support for DSA
12291 Mon May 4 19:01:25 1998 Werner Koch (wk@isil.d.shuttle.de)
12293 * compress.c: doubled buffer sizes
12294 * parse-packet.c (do_plaintext): now uses iobuf_read/write.
12296 Mon May 4 09:35:53 1998 Werner Koch (wk@isil.d.shuttle.de)
12298 * seskey.c (encode_md_value): Add optional argument hash_algo,
12299 changed all callers.
12301 * passphrase.c (make_dek_from_passphrase): Removed
12302 * (get_passhrase_hash): Changed name to passphrase_to_dek, add arg,
12303 changed all callers.
12305 * all: Introduced the new ELG identifier and added support for the
12306 encryption only one (which is okay to use by GNUPG for signatures).
12308 Sun May 3 17:50:26 1998 Werner Koch (wk@isil.d.shuttle.de)
12310 * packet.h (PKT_OLD_COMMENT): New name for type 16.
12311 * parse-packet.c (parse_comment): Now uses type 61
12313 Fri May 1 12:44:39 1998 Werner Koch,mobil,,, (wk@tobold)
12315 * packet.h (count): Chnaged s2k count from byte to u32.
12316 * seckey-cert.c (do_check): Changed s2k algo 3 to 4, changed
12318 * build-packet.c (do_secret_cert): ditto.
12319 * parse-packet.c (parse_certificate): ditto.
12321 * parse-packet.c (parse_symkeyenc): New.
12322 * build-packet.c (do_symkey_enc): New.
12324 Thu Apr 30 16:33:34 1998 Werner Koch (wk@isil.d.shuttle.de)
12326 * sign.c (clearsign_file): Fixed "Hash: " armor line.
12328 Tue Apr 28 14:27:42 1998 Werner Koch (wk@isil.d.shuttle.de)
12330 * parse-packet.c (parse_subpkt): Some new types.
12332 Mon Apr 27 12:53:59 1998 Werner Koch (wk@isil.d.shuttle.de)
12334 * g10.c (main): Add option --skip-verify.
12335 * mainproc.c (check_sig_and_print): Ditto.
12337 * g10.c (print_mds): Add output for Tiger.
12339 * sign.c (sign_file): Now uses partial length headers if used
12340 in canonical textmode (kludge to fix a bug).
12342 * parse-packet.c (parse_certificate): Changed BLOWFISH id.
12343 * pubkey-enc.c (get_session_key): Ditto.
12344 * seskey.c (make_session_key): Ditto.
12345 * seckey-cert.c (protect_secret_key,do_check): Add BLOWFISH160.
12347 Fri Apr 24 17:38:48 1998 Werner Koch,mobil,,, (wk@tobold)
12349 * sig-check.c (check_key_signature): Add sig-class 0x14..0x17
12350 * keyedit.c (sign-key): Some changes to start with support of
12351 the above new sig-classes.
12353 Wed Apr 22 09:01:57 1998 Werner Koch,mobil,,, (wk@tobold)
12355 * getkey.c (compare_name): add email matching
12357 Tue Apr 21 16:17:12 1998 Werner Koch,mobil,,, (wk@tobold)
12359 * armor.c (armor_filter): fixed missing last LF before CSUM.
12361 Thu Apr 9 11:35:22 1998 Werner Koch (wk@isil.d.shuttle.de)
12363 * seckey-cert.c (do_check): New; combines all the check functions
12366 * sign.c: removed all key management functions
12369 Thu Apr 9 09:49:36 1998 Werner Koch (wk@isil.d.shuttle.de)
12371 * import.c (chk_self_sigs): Changed an error message.
12373 Wed Apr 8 16:19:39 1998 Werner Koch (wk@isil.d.shuttle.de)
12375 * packet.h: packet structs now uses structs from the pubkey,
12376 removed all copy operations from packet to pubkey structs.
12378 Wed Apr 8 13:40:33 1998 Werner Koch (wk@isil.d.shuttle.de)
12380 * trustdb.c (verify_own_certs): Fixed "public key not found".
12382 * getkey.c (key_byname): New, combines public and secret key search.
12384 * pkclist.c (build_pkc_list): Add new arg usage, changed all callers.
12385 * skclist.c (build_skc_list): Likewise.
12387 * ringedit.c (find_keyblock, keyring_search2): Removed.
12389 Wed Apr 8 09:47:21 1998 Werner Koch (wk@isil.d.shuttle.de)
12391 * sig-check.c (do_check): Applied small fix from Ulf Möller.
12393 Tue Apr 7 19:28:07 1998 Werner Koch (wk@isil.d.shuttle.de)
12395 * cipher.c, encr-data.c, seckey-cert.c: Now uses cipher_xxxx
12396 functions instead of blowfish_xxx or cast_xxx
12398 Tue Apr 7 11:04:02 1998 Werner Koch (wk@isil.d.shuttle.de)
12400 * Makefile.am (g10maint.o): Changed the way it is created.
12402 Mon Apr 6 11:17:08 1998 Werner Koch (wk@isil.d.shuttle.de)
12405 * keygen.c (checksum,checksum_u16,checksum_mpi): Moved to misc.c
12406 * seckey-cert.c: Kludge for wrong ELG checksum implementation.
12408 Sat Apr 4 20:07:01 1998 Werner Koch (wk@isil.d.shuttle.de)
12410 * cipher.c (cipher_filter): Support for CAST5
12411 * encr-data.c (decode_filter): Ditto.
12412 (decrypt_data): Ditto.
12413 * seskey.c (make_session_key): Ditto.
12414 * seckey-cert.c (check_elg, check_dsa): Ditto,
12415 (protect_secret_key): Ditto.
12416 * pubkey-enc.c (get_session_key): Ditto.
12417 * passphrase.c (hash_passphrase): Ditto.
12419 Thu Apr 2 20:22:35 1998 Werner Koch (wk@isil.d.shuttle.de)
12423 Thu Apr 2 10:38:16 1998 Werner Koch (wk@isil.d.shuttle.de)
12425 * keygen.c (generate_keypair): Add valid_days stuff.
12426 * trustdb.c (check_trust): Add check for valid_days.
12428 Wed Apr 1 16:15:58 1998 Werner Koch (wk@isil.d.shuttle.de)
12430 * keygen.c (generate_keypair): Addional question whether the
12431 selected large keysize is really needed.
12433 Wed Apr 1 15:56:33 1998 Werner Koch (wk@isil.d.shuttle.de)
12435 * seckey-cert.c (protect_secret_key): merged protect_xxx to here.
12437 Wed Apr 1 10:34:46 1998 Werner Koch (wk@isil.d.shuttle.de)
12439 * Makefile.am (g10maint.c): Changed creation rule, so that it works
12440 on FreeBSD (missing CFLAGS).
12442 * parse-packet.c (parse_subkey): Removed.
12444 Thu Mar 19 15:22:36 1998 Werner Koch (wk@isil.d.shuttle.de)
12446 * ringedit.c (keyring_enum): Fixed problem with reading too
12447 many packets. Add support to read secret keyrings.
12449 * getkey.c (scan_keyring): Removed
12450 (lookup): New to replace scan_keyring.
12451 (scan_secret_keyring): Removed.
12454 Wed Mar 18 11:47:34 1998 Werner Koch (wk@isil.d.shuttle.de)
12456 * ringedit.c (enum_keyblocks): New read mode 11.
12458 * keyid.c (elg_fingerprint_md): New and changed all other functions
12459 to call this if the packet version is 4 or above.
12461 Tue Mar 17 20:46:16 1998 Werner Koch (wk@isil.d.shuttle.de)
12463 * parse-packet.c (parse_certificate): Add listing support for subkeys.
12465 Tue Mar 17 20:32:22 1998 Werner Koch (wk@isil.d.shuttle.de)
12467 * armor.c (is_armored): Allow marker packet.
12469 Thu Mar 12 13:36:49 1998 Werner Koch (wk@isil.d.shuttle.de)
12471 * trustdb.c (check_trust): Checks timestamp of pubkey.
12472 * sig-check. (do_check): Compares timestamps.
12474 Tue Mar 10 17:01:56 1998 Werner Koch (wk@isil.d.shuttle.de)
12476 * g10.c (main): Add call to init_signals.
12479 Mon Mar 9 12:43:42 1998 Werner Koch (wk@isil.d.shuttle.de)
12482 * packet.h, free-packet.c, parse-packet.c : Add support for DSA
12483 * sig-check.c, getkey.c, keyid.c, ringedit.c: Ditto.
12484 * seckey-cert.c: Ditto.
12486 * packet.h : Moved .digest_algo of signature packets to outer
12487 structure. Changed all references
12489 Sun Mar 8 13:06:42 1998 Werner Koch (wk@isil.d.shuttle.de)
12491 * openfile.c : Support for stdout filename "-".
12493 * mainproc.c (check_sig_and_print): Enhanced status output:
12494 * status.c (write_status_text): New.
12496 Fri Mar 6 16:10:54 1998 Werner Koch (wk@isil.d.shuttle.de)
12498 * kbnode.c (clone_kbnode): Fixed private_flag.
12500 * mainproc.c (list_node): Output of string "Revoked" as user-id.
12502 Fri Mar 6 14:26:39 1998 Werner Koch (wk@isil.d.shuttle.de)
12504 * g10.c (main): Add userids to "-kv" and cleaned up this stuff.
12506 Fri Mar 6 12:45:58 1998 Werner Koch (wk@isil.d.shuttle.de)
12508 * g10.c (main): Changed semantics of the list-... commands
12509 and added a new one. Removed option "-d"
12513 * trustdb.c (init_trustdb): Autocreate directory only if it ends
12516 Thu Mar 5 12:12:11 1998 Werner Koch (wk@isil.d.shuttle.de)
12518 * mainproc.c (do_proc_packets): New. Common part of proc_packet.
12519 (proc_signature_packets): special version to handle signature data.
12521 * g10.c (aVerify): New.
12522 * plaintext.c (hash_datafiles): New.
12523 * compress.c (handle_compressed): Add callback arg, changed caller.
12525 Thu Mar 5 10:20:06 1998 Werner Koch (wk@isil.d.shuttle.de)
12527 * g10.c: Is nom the common source for gpg and gpgm
12528 * g10maint.c: Removed
12529 * Makefile.am: Add rule to build g10maint.c
12531 Thu Mar 5 08:43:59 1998 Werner Koch (wk@isil.d.shuttle.de)
12533 * g10.c (main): Changed the way clear text sigs are faked.
12535 Wed Mar 4 19:47:37 1998 Werner Koch (wk@isil.d.shuttle.de)
12537 * g10maint.c (aMuttKeyList): New
12540 Wed Mar 4 17:20:33 1998 Werner Koch (wk@isil.d.shuttle.de)
12542 * getkey.c (get_pubkey_byname): Kludge to allow 0x prefix.
12544 Tue Mar 3 13:46:55 1998 Werner Koch (wk@isil.d.shuttle.de)
12546 * g10maint.c (main): New option --gen-random.
12548 Tue Mar 3 09:50:08 1998 Werner Koch (wk@isil.d.shuttle.de)
12550 * g10.c (aDeleteSecretKey): New.
12551 (aEditSig): Add option "--edit-key" as synonym for "--edit-sig".
12552 (aDeleteSecretKey): New.
12553 * getkey.c (seckey_available): New.
12554 * sign.c (delete_key): Enhanced to delete secret keys, changed all
12557 Mon Mar 2 21:23:48 1998 Werner Koch (wk@isil.d.shuttle.de)
12559 * pkc_list.c (build_pkc_list): Add interactive input of user ID.
12561 Mon Mar 2 20:54:05 1998 Werner Koch (wk@isil.d.shuttle.de)
12563 * pkclist.c (do_we_trust_pre): New.
12564 (add_ownertrust): Add message.
12565 * trustdb.c (enum_trust_web): Quick fix.
12567 Mon Mar 2 13:50:53 1998 Werner Koch (wk@isil.d.shuttle.de)
12569 * g10.c (main): New action aDeleteKey
12570 * sign.c (delete_key): New.
12572 Sun Mar 1 16:38:58 1998 Werner Koch (wk@isil.d.shuttle.de)
12574 * trustdb.c (do_check): No returns TRUST_UNDEFINED instead of
12577 Fri Feb 27 18:14:03 1998 Werner Koch (wk@isil.d.shuttle.de)
12579 * armor.c (find_header): Removed trailing CR on headers.
12581 Fri Feb 27 18:02:48 1998 Werner Koch (wk@isil.d.shuttle.de)
12583 * ringedit.c (keyring_search) [MINGW32]: Open and close file here
12584 because rename does not work on open files. Chnaged callers.
12586 Fri Feb 27 16:43:11 1998 Werner Koch (wk@isil.d.shuttle.de)
12588 * sig-check.c (do_check): Add an md_enable.
12589 * mainproc.c (do_check_sig): Use md_open in case of detached sig
12590 (proc_tree): Take detached sigs into account.
12592 Fri Feb 27 15:22:46 1998 Werner Koch (wk@isil.d.shuttle.de)
12594 * g10.c (main): Make use of GNUPGHOME envvar.
12595 * g10main.c (main): Ditto.
12597 Wed Feb 25 11:40:04 1998 Werner Koch (wk@isil.d.shuttle.de)
12599 * plaintext.c (ask_for_detached_datafile): add opt.verbose to
12602 * openfile.c (open_sigfile): Try also name ending in ".asc"
12604 Wed Feb 25 08:41:00 1998 Werner Koch (wk@isil.d.shuttle.de)
12606 * keygen.c (generate_keypair): Fixed memory overflow.
12608 Tue Feb 24 15:51:55 1998 Werner Koch (wk@isil.d.shuttle.de)
12610 * parse-packet.c (parse_certificate): Support for S2K.
12611 * build-packet.c (do_secret_cert): Ditto.
12612 * keygen.c (gen_elg): Ditto.
12613 * seckey-cert.c (check_elg): Ditto
12614 (protect_elg): Ditto.
12615 * sign.c (chnage_passphrase): Ditto.
12616 * passphrase.c (get_passphrase_hash): Support for a salt and
12617 changed all callers.
12618 (make_dek_from_passphrase): Ditto.
12620 Tue Feb 24 12:30:56 1998 Werner Koch (wk@isil.d.shuttle.de)
12622 * build-packet.c (hash_public_cert): Disabled debug output.
12624 Fri Feb 20 17:22:28 1998 Werner Koch (wk@isil.d.shuttle.de)
12626 * trustdb.c (init_trustdb) [MINGW32]: Removed 2nd mkdir arg.
12627 (keyring_copy) [MINGW32]: Add a remove prior to the renames.
12629 Wed Feb 18 18:39:02 1998 Werner Koch (wk@isil.d.shuttle.de)
12631 * Makefile.am (OMIT_DEPENDENCIES): New.
12633 * rsa.c: Replaced log_bug by BUG.
12635 Wed Feb 18 13:35:58 1998 Werner Koch (wk@isil.d.shuttle.de)
12637 * mainproc.c (do_check_sig): Now uses hash_public_cert.
12638 * parse-packet.c (parse_certificate): Removed hashing.
12639 * packet.h (public_cert): Removed hash variable.
12640 * free-packet.c (copy_public_cert, free_public_cert): Likewise.
12642 * sig-check.c (check_key_signatures): Changed semantics.
12644 Wed Feb 18 12:11:28 1998 Werner Koch (wk@isil.d.shuttle.de)
12646 * trustdb.c (do_check): Add handling for revocation certificates.
12647 (build_sigrecs): Ditto.
12648 (check_sigs): Ditto.
12650 Wed Feb 18 09:31:04 1998 Werner Koch (wk@isil.d.shuttle.de)
12652 * armor.c (armor_filter): Add afx->hdrlines.
12653 * revoke.c (gen_revoke): Add comment line.
12654 * dearmor.c (enarmor_file): Ditto.
12656 * sig-check.c (check_key_signature): Add handling for class 0x20.
12657 * mainproc.c : Ditto.
12659 Tue Feb 17 21:24:17 1998 Werner Koch (wk@isil.d.shuttle.de)
12661 * armor.c : Add header lines "...ARMORED FILE .."
12662 * dearmor.c (enarmor_file): New.
12663 * g10maint.c (main): New option "--enarmor"
12665 Tue Feb 17 19:03:33 1998 Werner Koch (wk@isil.d.shuttle.de)
12667 * mainproc.c : Changed a lot, because the packets are now stored
12668 a simple linlked list and not anymore in a complicatd tree structure.
12670 Tue Feb 17 10:14:48 1998 Werner Koch (wk@isil.d.shuttle.de)
12672 * free_packet.c (cmp_public_certs): New.
12673 (cmp_user_ids): New.
12675 * kbnode.c (clone_kbnode): New.
12676 (release_kbnode): Add clone support.
12678 * ringedit.c (find_keyblock_bypkc): New.
12680 * sign.c (remove_keysigs): Self signatures are now skipped,
12681 changed arguments and all callers.
12683 * import.c : Add functionality.
12685 Tue Feb 17 09:31:40 1998 Werner Koch (wk@isil.d.shuttle.de)
12687 * options.h (homedir): New option.
12688 * g10.c, g10maint.c, getkey.c, keygen.c, trustdb.c (opt.homedir): New.
12690 * trustdb.c (init_trustdb): mkdir for hoem directory
12691 (sign_private_data): Renamed "sig" to "g10.sig"
12693 Mon Feb 16 20:02:03 1998 Werner Koch (wk@isil.d.shuttle.de)
12695 * kbnode.c (commit_kbnode): New.
12696 (delete_kbnode): removed unused first arg. Changed all Callers.
12698 * ringedit.c (keyblock_resource_name): New.
12699 (get_keyblock_handle): NULL for filename returns default resource.
12701 Mon Feb 16 19:38:48 1998 Werner Koch (wk@isil.d.shuttle.de)
12703 * sig-check.s (check_key_signature): Now uses the supplied
12704 public key to check the signature and not any more the one
12707 (check_signature): Most work moved to do_check.
12709 Mon Feb 16 14:48:57 1998 Werner Koch (wk@isil.d.shuttle.de)
12711 * armor.c (find_header): Fixed another bug.
12713 Mon Feb 16 12:18:34 1998 Werner Koch (wk@isil.d.shuttle.de)
12715 * getkey.c (scan_keyring): Add handling of compressed keyrings.
12717 Mon Feb 16 10:44:51 1998 Werner Koch (wk@isil.d.shuttle.de)
12719 * g10.c, g10maint.c (strusage): Rewrote.
12722 Mon Feb 16 08:58:41 1998 Werner Koch (wk@isil.d.shuttle.de)
12724 * armor.c (use_armor): New.
12726 Sat Feb 14 14:30:57 1998 Werner Koch (wk@isil.d.shuttle.de)
12728 * mainproc.c (proc_tree): Sigclass fix.
12730 Sat Feb 14 14:16:33 1998 Werner Koch (wk@isil.d.shuttle.de)
12732 * armor.c (armor_filter): Changed version and comment string.
12733 * encode.c, sign.c, keygen.c: Changed all comment packet strings.
12735 Sat Feb 14 12:39:24 1998 Werner Koch (wk@isil.d.shuttle.de)
12737 * g10.c (aGenRevoke): New command.
12739 * sign.c (make_keysig_packet): Add support for sigclass 0x20.
12741 Fri Feb 13 20:18:14 1998 Werner Koch (wk@isil.d.shuttle.de)
12743 * ringedit.c (enum_keyblocks, keyring_enum): New.
12745 Fri Feb 13 19:33:40 1998 Werner Koch (wk@isil.d.shuttle.de)
12747 * export.c: Add functionality.
12749 * keygen.c (generate_keypair): Moved the leading comment behind the
12751 * kbnode.c (walk_kbnode): Fixed.
12753 * g10.c (main): listing armored keys now work.
12755 Fri Feb 13 16:17:43 1998 Werner Koch (wk@isil.d.shuttle.de)
12757 * parse-packet.c (parse_publickey, parse_signature): Fixed calls
12758 to mpi_read used for ELG b.
12760 Fri Feb 13 15:13:23 1998 Werner Koch (wk@isil.d.shuttle.de)
12762 * g10.c (main): changed formatting of help output.
12764 Thu Feb 12 22:24:42 1998 Werner Koch (wk@frodo)
12766 * pubkey-enc.c (get_session_key): rewritten
12769 Copyright 1998, 1999, 2000, 2001, 2002, 2003,
12770 2004, 2005, 2006 Free Software Foundation, Inc.
12772 This file is free software; as a special exception the author gives
12773 unlimited permission to copy and/or distribute it, with or without
12774 modifications, as long as this notice is preserved.
12776 This file is distributed in the hope that it will be useful, but
12777 WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
12778 implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.