aboutsummaryrefslogtreecommitdiffstats
path: root/g10/getkey.c (unfollow)
Commit message (Collapse)AuthorFilesLines
2002-04-29Added a copyright year for files changed this year.Werner Koch1-1/+1
2002-04-20* keygen.c (generate_subkeypair): 2440bis04 adds that creating subkeys onDavid Shaw1-3/+4
v3 keys is a MUST NOT. * getkey.c (finish_lookup): The --pgp6 "use the primary key" behavior should only apply while data signing and not encryption. Noted by Roger Sondermann.
2002-04-18* trustdb.c (mark_usable_uid_certs): Properly handle nonrevocableDavid Shaw1-4/+7
signatures that can expire. In short, the only thing that can override an unexpired nonrevocable signature is another unexpired nonrevocable signature. * getkey.c (finish_lookup): Always use primary signing key for signatures when --pgp6 is on since pgp6 and 7 do not understand signatures made by signing subkeys.
2002-04-18* getkey.c (lookup): Advance the searchmode after a search FIRST.Werner Koch1-0/+6
2002-04-18* getkey.c (premerge_public_with_secret): Fixed 0x12345678! syntaxWerner Koch1-1/+5
for use with secret keys. * seckey-cert.c (do_check): Always calculate the old checksum for use after unprotection. * g10.c, options.skel: New option --no-escape-from. Made --escape-from and --force-v3-sigs the default and removed them from the options skeleton.
2002-04-14* parse-packet.c (parse_signature): Minor fix - signatures should expireDavid Shaw1-1/+2
at their expiration time and not one second later. * keygen.c (proc_parameter_file): Allow specifying preferences string (i.e. "s5 s2 z1 z2", etc) in a batchmode key generation file. * keyedit.c (keyedit_menu): Print standard error message when signing a revoked key (no new translation). * getkey.c (merge_selfsigs): Get the default set of key prefs from the real (not attribute) primary uid.
2002-04-11* misc.c (pct_expando), options.skel: Use %t to indicate type of a photoDavid Shaw1-9/+6
ID (in this version, it's always "jpeg"). Also tweak string expansion loop to minimize reallocs. * mainproc.c (do_check_sig): Variable type fix. * keyedit.c (menu_set_primary_uid): Differentiate between true user IDs and attribute user IDs when making one of them primary. That is, if we are making a user ID primary, we alter user IDs. If we are making an attribute packet primary, we alter attribute packets. This matches the language in the latest attribute packet draft. * keyedit.c (sign_uids): No need for the empty string hack. * getkey.c (fixup_uidnode): Only accept preferences from the hashed segment of the self-sig.
2002-03-24Minor tweak to importing to allow more non-signed uids (now thatDavid Shaw1-3/+7
--allow-non-selfsigned-uid allows for completey unsigned uids). Do not choose an attribute packet (i.e. photo) as primary uid. This prevents oddities like "Good signature from [image of size 2671]". This is still not perfect (one can still select an attribute packet as primary in --edit), but is closer to the way the draft is going. The algorithms list should include #110. --pgp2 implies --no-ask-sig-expire and --no-ask-cert-expire as those would cause a v4 sig/cert. Be more lenient in what constitutes a valid armor header (i.e. -----BEGIN blah blah-----) as some Windows programs seem to add spaces at the end. --openpgp makes it strict again
2002-03-17--openpgp implies --allow-non-selfsigned-uidDavid Shaw1-6/+28
If none of the uids are primary (because none are valid) then pick the first to be primary (but still invalid). This is for cosmetics in case some display needs to print a user ID from a non-selfsigned key. Also use --allow-non-selfsigned-uid to make such a key valid and not --always-trust. The key is *not* automatically trusted via --allow-non-selfsigned-uid. Make sure non-selfsigned uids print [uncertain] on verification even though one is primary now. If the main key is not valid, then neither are the subkeys. Allow --allow-non-selfsigned-uid to work on completely unsigned keys. Print the uids in UTF8. Remove mark_non_selfsigned_uids_valid() Show revocation key as UTF8. Allow --not-dash-escaped to work with v3 keys.
2002-02-28This is the first half of revocation key / designated revokerDavid Shaw1-2/+113
support. That is, it handles all the data to mark a key as revoked if it has been revoked by a designated revoker. The second half (coming later) will contain the code to make someones key your designated revoker and to issue revocations for someone else. Note that this is written so that a revoked revoker can still issue revocations: i.e. If A revokes B, but A is revoked, B is still revoked. I'm not completely convinced this is the proper behavior, but it matches how PGP does it. It does at least have the advantage of much simpler code - my first version of this had lots of loop maintaining code so you could chain revokers many levels deep and if D was revoked, C was not, which meant that B was, and so on. It was sort of scary, actually. This also changes importing to allow bringing in more revocation keys, and exporting to not export revocation keys marked "sensitive". The --edit menu information will show if a revocation key is present.
2002-02-27If a key isn't valid (say, because of no self-signature), allowDavid Shaw1-0/+12
--always-trust to force it valid so it can be trusted.
2002-02-26Treat key lists internally as fingerprints when possible. All this is viaDavid Shaw1-28/+0
KEYDB_SEARCH_DESC - no point in reinventing the wheel. This allows the helper program to search the keyserver by fingerprint if desired (and the keyserver supports it). Note that automatic fingerprint promotion during refresh only applies to v4 keys as a v4 fingerprint can be easily changed into a long or short key id, and a v3 cannot. Take two copies of hextobyte() from pubkey-enc.c and getkey.c and make them into one copy in misc.c.
2002-01-22Some compatibility polish for PGP2. Add a fake IDEA preference for v3David Shaw1-0/+8
keys (this is in the RFC), so that they can be (sometimes) used along OpenPGP keys. Do not force using IDEA on an OpenPGP key, as this may violate its prefs. Also, revise the help text for the sig class explanation.
2002-01-06fix off-by-one in building attribute subpacketsDavid Shaw1-2/+0
change default compression to 1 add ask-sig-expire and ask-cert-expire (--expert was getting absurdly overloaded) permit v3 subkeys use --expert to protect adding multiple photo ids and adding photos to a v3 key
2001-12-22* keyserver.c (keyserver_spawn): Removed some variablesWerner Koch1-1/+1
declaration due to shadowing warnings. * build-packet.c (build_attribute_subpkt): s/index/idx/ to avoid compiler warnig due to index(3). * getkey.c (get_ctx_handle): Use KEYDB_HANDLE as return value. * keylist.c (list_one): Made resname const. * keyedit.c (keyedit_menu): Allow "addphoto" only when --openpgp is not used. * options.skel: Changed one example photo viewer to qiv.
2001-12-21* g10.c. options.h : New option --show-keyringWerner Koch1-1/+5
* getkey.c (get_ctx_handle): New. * keylist.c (list_one): Implement option here. By David Champion.
2001-12-07Bug fix in "showpref"David Shaw1-1/+1
Allow setting a no-compression preference
2001-09-28calculate time of next trustdb checkWerner Koch1-5/+9
2001-09-26completed the new key validation codeWerner Koch1-0/+1
2001-09-25made keylisting fasterWerner Koch1-47/+0
2001-09-24Revamped the trustDBWerner Koch1-36/+2
2001-09-19Bug fixes and Timo's patchesWerner Koch1-1/+1
2001-09-09more bug fixesand some warning cleanupsWerner Koch1-1/+2
2001-09-07Last changes before 1.0.6a snapshot releaseSNAP-1-0-6aWerner Koch1-1/+1
2001-09-07fixed a stupid C errorWerner Koch1-59/+52
2001-09-06Revamped the keyring codeWerner Koch1-503/+202
2001-08-30MDC feature support and other stuffWerner Koch1-50/+20
2001-08-10Revamped preference handlingWerner Koch1-36/+105
2001-08-09reworked the way hased data is stored and added a "primary" commandWerner Koch1-12/+11
DCVS: ----------------------------------------------------------------------
2001-08-01Changed lsign behaviour, allow future subkeys, don't list revoked keysWerner Koch1-1/+7
2001-07-26migration to autoconf 2.52 and bugfixesWerner Koch1-12/+8
2001-06-16one debian bug fixedWerner Koch1-1/+10
2001-06-12Fix for toupper('I') != 'i'Werner Koch1-3/+4
2001-05-28just released another snapshotWerner Koch1-29/+18
2001-04-28last hour fixes.Werner Koch1-1/+1
2001-04-24Fixed translation issueWerner Koch1-2/+6
2001-04-17Estonian translation, .texi man pages.Werner Koch1-6/+39
2001-04-05Improved pipemode and tweaked handling of multiple signatures.Werner Koch1-3/+12
2001-03-27Made genkey work again.Werner Koch1-1/+6
2001-03-27Fixed a bugs; e.g. in --list-secret-keysWerner Koch1-11/+14
2001-03-13Key listing cleanupWerner Koch1-0/+9
2001-03-12worked on solving some bugsWerner Koch1-18/+22
2001-03-08Changed and added copyright noticesWerner Koch1-6/+4
2001-03-07Changed the implementation of iobuf to avoid stdio calls.Werner Koch1-1/+1
2001-03-03Fixed the new key selection codeWerner Koch1-40/+87
2001-02-08Fixed some bugs in the selection codeWerner Koch1-2/+4
2001-02-08Backported getkey.c from 1.1Werner Koch1-724/+1096
2000-09-14See ChangeLog: Thu Sep 14 17:45:11 CEST 2000 Werner KochWerner Koch1-1/+34
2000-05-12See ChangeLog: Fri May 12 14:01:20 CEST 2000 Werner KochWerner Koch1-1/+1
2000-05-01See ChangeLog: Mon May 1 15:38:04 CEST 2000 Werner KochWerner Koch1-3/+5