aboutsummaryrefslogtreecommitdiffstats
path: root/g10/keyedit.c (unfollow)
Commit message (Collapse)AuthorFilesLines
2015-02-23gpg: Print a warning if the subkey expiration may not be what you want.Werner Koch1-0/+58
* g10/keyedit.c (subkey_expire_warning): New. keyedit_menu): Call it when needed. -- GnuPG-bug-id: 1715 The heuristic to detect a problem is not very advanced but it should catch the most common cases. (backported from commit ae3d1bbb65b65cf3c57bb14886be120f5e31635d) [dkg: rebased to STABLE-BRANCH-1-4] Signed-off-by: Daniel Kahn Gillmor <[email protected]>
2013-10-04gpg: Print a "not found" message for an unknown key in --key-edit.Werner Koch1-0/+4
* g10/keyedit.c (keyedit_menu): Print message. -- GnuPG-bug-id: 1420 Signed-off-by: Werner Koch <[email protected]> (cherry picked from commit 0bf54e60d31389812d05c3fd29bece876204561d)
2011-08-09Removed some set but unused vars.Werner Koch1-39/+37
2010-02-02Change menu prompts.Werner Koch1-1/+1
2009-08-26Fix debian bug#543530Werner Koch1-0/+30
2009-07-21First set of changes to backport the new card code from 2.0.Werner Koch1-1/+7
For compatibility reasons a few new files had to be added. Also added estream-printf as this is now used in app-openpgp.c and provides a better and generic asprintf implementation than the hack we used for the W32 code in ttyio.c. Card code is not yet finished.
2008-10-03* main.h, mainproc.c (check_sig_and_print), keylist.cDavid Shaw1-3/+3
(list_keyblock_print), pkclist.c (do_edit_ownertrust), keyedit.c (menu_showphoto), photoid.c (generate_photo_id, show_photos), misc.c (pct_expando): Add %v and %V expandos so that displaying photo IDs can show the attribute validity tag (%v) and string (%V). Originally by Daniel Gillmor.
2008-09-25* keyedit.c (keyedit_menu): Fix bug where a modified keyring loses itsDavid Shaw1-2/+4
modified status after a "clean" or "minimize" that doesn't need to do anything.
2007-11-19Grammar fixWerner Koch1-1/+1
2007-10-23Switched to GPLv3.Werner Koch1-4/+2
Updated gettext.
2007-10-17* options.h, gpg.c (main), misc.c (compliance_option_string): AddDavid Shaw1-3/+3
--rfc4880, and make --openpgp an alias to it. --rfc2440 now stands alone. For now, use the old 2440 defaults for 4880. * keyedit.c (keyedit_menu): Use compliance_option_string() instead of printing the compliance modes here.
2007-03-06* keyedit.c (keyedit_menu): If we modify the keyblock (viaDavid Shaw1-0/+4
fix_keyblock() or collapse_uids()) make sure we reprocess the keyblock so the flags are correct. Noted by Robin H. Johnson. * getkey.c (fixup_uidnode): Properly clear flags that don't apply to us (revoked, expired) so that we can reprocess a uid.
2007-02-01* main.h, keygen.c (ask_expire_interval, parse_expire_string): Pass inDavid Shaw1-4/+12
the time to use to calculate the expiration offset, rather than querying it internally. Change all callers.
2007-01-31* keyedit.c (sign_uids): Another multiple to single timestampDavid Shaw1-12/+6
operation.
2007-01-31* main.h, keygen.c (ask_expiredate), keyedit.c (menu_expire): RemoveDavid Shaw1-1/+4
the need for ask_expiredate().
2006-12-06Preparing a releasegnupg-1.4.6Werner Koch1-9/+9
2006-12-03* keyedit.c (menu_clean): Show "already minimized" rather thanDavid Shaw1-1/+6
"already clean" when a minimized key is minimized again. From Dirk Traulsen.
2006-04-19* keyedit.c (menu_backsign): Give some more verbose errors when weDavid Shaw1-6/+21
have no need to backsign.
2006-04-09* getkey.c (parse_auto_key_locate): Fix dupe-removal code.David Shaw1-10/+10
* keyedit.c (menu_backsign): Allow backsigning even if the secret subkey doesn't have a binding signature. * armor.c (radix64_read): Don't report EOF when reading only a pad (=) character. The EOF actually starts after the pad. * gpg.c (main): Make --export, --send-keys, --recv-keys, --refresh-keys, and --fetch-keys follow their arguments from left to right. Suggested by Peter Palfrader.
2006-03-12* sig-check.c (signature_check2): Print the backsig warning when thereDavid Shaw1-2/+3
is no backsig present. Give a URL for more information. * keyedit.c (menu_backsign): Small tweak to work properly with keys originally generated with older GnuPGs that included comments in the secret keys.
2006-03-09* build-packet.c (string_to_notation): Add ability to indicate a notationDavid Shaw1-21/+44
to be deleted with a '-' prefix. * keyedit.c (menu_set_notation): Use it here to allow deleting a notation marked with '-'. This works with either "-notation" or "-notation=value".
2006-03-09* keyedit.c (menu_set_notation): New function to set notations onDavid Shaw1-4/+244
self-signatures. (keyedit_menu): Call it here. (tty_print_notations): Helper. (show_prefs): Show notations in "showpref".
2006-03-08* options.h, sign.c (mk_notation_policy_etc), gpg.c (add_notation_data):David Shaw1-3/+3
Use it here for the various notation commands. * packet.h, main.h, keygen.c (keygen_add_notations), build-packet.c (string_to_notation, sig_to_notation) (free_notation): New "one stop shopping" functions to handle notations and start removing some code duplication.
2006-03-08* options.h, mainproc.c (check_sig_and_print), gpg.c (main):David Shaw1-0/+1
pka-lookups, not pka-lookup. * options.h, gpg.c (main), keyedit.c [cmds], sig-check.c (signature_check2): Rename "backsign" to "cross-certify" as a more accurate name.
2005-11-20* main.h, keylist.c (print_revokers): New. Print the "rvk" designatedDavid Shaw1-18/+1
revoker record. Moved from keyedit.c:show_key_with_all_names_colon. * keylist.c (list_keyblock_colon): Use it here ... * keyedit.c (show_key_with_all_names_colon): ... and here.
2005-11-18* keyedit.c (keyedit_menu, menu_clean): Simplify clean options to justDavid Shaw1-71/+29
"clean", and add "minimize". * import.c (parse_import_options): Make help text match the export versions of the options. * options.h, export.c (parse_export_options, do_export_stream): Reduce clean options to two: clean and minimize. * trustdb.h, trustdb.c (clean_one_uid): New function that joins uid and sig cleaning into one for a simple API outside trustdb.
2005-11-10* keyedit.c (keyedit_menu, menu_clean_sigs_from_uids): Add "minimize"David Shaw1-6/+14
command.
2005-11-10* packet.h, keyedit.c (menu_clean_uids_from_key), trustdb.cDavid Shaw1-11/+7
(clean_uids_from_key): Fix display bug where sigs cleaned for other reasons caused a uid to appear as if it had been compacted.
2005-11-10* packet.h: Move some flags to a bitfield. Change all callers.David Shaw1-7/+7
2005-11-10* trustdb.h, trustdb.c (clean_sigs_from_uid): Add flag to remove allDavid Shaw1-1/+1
non-selfsigs from key during cleaning. Change all callers. * export.c (do_export_stream): Use it here so we don't need additional minimize code in the export path.
2005-10-27* keyedit.c (menu_addrevoker), getkey.c (finish_lookup): Fix problem withDavid Shaw1-3/+5
adding a cert-only designated revoker. Code was looking for a key with sign ability, and not cert ability. Noted by Timo Schulz.
2005-10-14* keyedit.c (keyedit_menu, menu_backsign): New "backsign" command toDavid Shaw1-2/+158
add 0x19 backsigs to old keys that don't have them. * misc.c (parse_options): Fix build warning. * main.h, keygen.c (make_backsig): Make public.
2005-09-10* keyedit.c (show_names): Moved name display code out fromDavid Shaw1-56/+73
show_key_with_all_names. (keyedit_menu): Call it here for pref and showpref so they can show only the selected user ID. Suggested by Timo Schulz.
2005-09-01* photoid.h, photoid.c (generate_photo_id): Allow passing in aDavid Shaw1-4/+6
suggested filename. * keyedit.c (keyedit_menu, menu_adduid): Call it here so "addphoto filename" works.
2005-08-27* misc.c (openpgp_pk_algo_usage): Default to allowing CERT for signingDavid Shaw1-2/+2
algorithms. * keyedit.c (sign_uids): Don't request a signing key to make a certification. * keygen.c (do_add_key_flags): Force the certify flag on for all primary keys, as the spec requires primary keys must be able to certify (if nothing else, which key is going to issue the user ID signature?) (print_key_flags): Show certify flag. (ask_key_flags, ask_algo): Don't allow setting the C flag for subkeys. * keyid.c (usagestr_from_pk), getkey.c (parse_key_usage): Distinguish between a sign/certify key and a certify-only key.
2005-08-27* keyedit.c (ask_revoke_sig): Add a revsig --with-colons mode.David Shaw1-9/+26
Suggested by Michael Schierl.
2005-07-27Converted all m_free to xfree etc.Werner Koch1-64/+64
2005-07-22* keyedit.c (sign_uids): Don't prompt for setting signature expiry toDavid Shaw1-17/+19
match key expiry unless --ask-cert-expire is set. Suggested by Peter Palfrader.
2005-07-22* options.h, g10.c (main), keyedit.c (keyedit_menu): Use --interactiveDavid Shaw1-2/+5
to enable the uid walking when signing a key with no uids specified to sign. * keylist.c (list_keyblock_print): Fix silly typo. Noted by Greg Sabino Mullane.
2005-06-20* gpg.sgml: Document smartcard related options.Werner Koch1-2/+8
* g10.c, options.h: New option --no-interactive-selection. * keyedit.c (keyedit_menu): Use it.
2005-06-10* options.h, export.c (do_export_stream), keyedit.c (keyedit_menu,David Shaw1-37/+1
menu_clean_subkeys_from_key), trustdb.h, trustdb.c (clean_subkeys_from_key): Remove subkey cleaning function. It is of very limited usefulness since it cannot be used on any subkey that can sign, and can only affect multiple selfsigs on encryption-only subkeys.
2005-06-09* trustdb.c (clean_uids_from_key), keyedit.cDavid Shaw1-18/+22
(menu_clean_uids_from_key): Tweak algorithm to preserve the last selfsig which helps prevent uid resurrections.
2005-05-31* keyedit.c (menu_clean_uids_from_key, menu_clean_subkeys_from_key),David Shaw1-2/+2
trustdb.c (clean_uids_from_key, clean_subkeys_from_key): Fix mingw32 build warnings. Noted by Joe Vender.
2005-05-31Updated FSF street address and preparations for a release candidate.Werner Koch1-1/+2
2005-05-31* trustdb.h, trustdb.c (clean_subkeys_from_key): New. Walk throughDavid Shaw1-12/+47
the subkeys on a key, and mark any that aren't usable for deletion. Note that a signing subkey is never marked for deletion since these keys are still useful after expiration or revocation. * keyedit.c (menu_clean_subkeys_from_key): New function to call clean_subkeys_from_key() on a key. Note that the strings here are not marked for translation yet. The UI is still in flux, and there is no point in annoying the translators twice. (keyedit_menu): Call it here as part of the "clean" command.
2005-05-30* trustdb.h, trustdb.c (clean_uids_from_key): New. Walk through theDavid Shaw1-12/+58
user IDs on a key, and mark any that aren't valid for deletion. * keyedit.c (menu_clean_uids_from_key): New function to call clean_uids_from_key() on a key. (keyedit_menu): Call it from here as part of the "clean" command.
2005-05-06* main.h, keygen.c (parse_expire_string, ask_expire_interval), sign.cDavid Shaw1-1/+1
(sign_file, clearsign_file, sign_symencrypt_file), g10.c (main), keyedit.c (sign_uids): Use seconds rather than days internally to calculate expiration. We no longer need the day-based code as we don't generate v3 keys.
2005-05-05* options.h, g10.c (main): Add new --default-sig-expire andDavid Shaw1-2/+7
--default-cert-expire options. Suggested by Florian Weimer. * main.h, keygen.c (parse_expire_string, ask_expire_interval): Use defaults passed in, or "0" to control what default expiration is. * keyedit.c (sign_uids), sign.c (sign_file, clearsign_file, sign_symencrypt_file): Call them here, so that default expiration is used when --ask-xxxxx-expire is off.
2005-04-24* trustdb.h, trustdb.c (mark_usable_uid_certs): Add flags for theDavid Shaw1-5/+60
no-pubkey and chosen revocation cases. (clean_uid): New function to clean a user ID of unusable (as defined by mark_usable_uid_certs) certs. * keyedit.c (keyedit_menu, menu_clean_uids): Call it here for new "clean" command that removes unusable sigs from a key.
2005-04-24* trustdb.h, keyedit.c (keyedit_menu, menu_select_uid_namehash): AllowDavid Shaw1-2/+44
specifying user ID via the namehash from --with-colons --fixed-list-mode --list-keys. Suggested by Peter Palfrader.