aboutsummaryrefslogtreecommitdiffstats
path: root/g10/packet.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* * packet.h, parse-packet.c (enum_sig_subpkt): Report back fromDavid Shaw2002-06-031-1/+1
| | | | | | | | | | enum_sig_subpkt when a subpacket is critical and change all callers in keylist.c (show_policy_url, show_notation), mainproc.c (print_notation_data), and pkclist.c (do_show_revocation_reason). * keylist.c (show_policy_url, show_notation): Display if the policy or notation is critical.
* * main.h, g10.c (main), keylist.c (dump_attribs, set_attrib_fd,David Shaw2002-06-031-2/+4
| | | | | | | | | | | | | | | | | list_keyblock_print, list_keyblock_colon), status.h, status.c (get_status_string): New --attribute-fd feature to dump the contents of attribute subpackets for frontends. If --status-fd is also used, then a new status tag ATTRIBUTE is provided for each subpacket. * packet.h, getkey.c (fixup_uidnode, merge_selfsigs_main, merge_selfsigs_subkey), parse-packet.c (setup_user_id): Keep track of the expiration time of a user ID, and while we're at it, use the expired flag from the selfsig rather than reparsing the SIG_EXPIRE subpacket. * photoid.c (generate_photo_id): When adding a new photo ID, showing the photo for confirmation is not safe when noninteractive since the "user" may not be able to dismiss a viewer window. Noted by Timo Schulz.
* * build-packet.c (build_sig_subpkt): Handle setting sig flags for certainDavid Shaw2002-05-281-0/+1
| | | | | | | | | | subpacket types (notation, policy url, exportable, revocable). keyedit.c (sign_mk_attrib): Flags no longer need to be set here. * packet.h, parse-packet.c (parse_one_sig_subpkt), build-packet.c (build_sig_subpkt): Call parse_one_sig_subpkt to sanity check buffer lengths before building a sig subpacket.
* * main.h, keygen.c (keygen_add_revkey): Add revocation key subpackets to aDavid Shaw2002-05-161-0/+1
| | | | | | | | | | | | | | | | | | | | | | signature (callable by make_keysig_packet). (write_direct_sig): Write a 1F direct key signature. (parse_revocation_key): Parse a string in algo:fpr:sensitive format into a revocation key. (get_parameter_revkey, do_generate_keypair): Call above functions when prompted from a batch key generation file. * build-packet.c (build_sig_subpkt): Allow multiple revocation key subpackets in a single sig. * keydb.h, getkey.c (get_seckey_byfprint): Same as get_pubkey_byfprint, except for secret keys. We only know the fingerprint of a revocation key, so this is needed to retrieve the secret key needed to issue a revokation. * packet.h, parse-packet.c (parse_signature, parse_revkeys): Split revkey parsing off into a new function that can be used to reparse after manipulating the revkey list. * sign.c (make_keysig_packet): Ability to make 1F direct key signatures.
* * packet.h, getkey.c (fixup_uidnode), keyedit.c (show_prefs): Show assumedDavid Shaw2002-05-101-0/+1
| | | | | | | | | | prefs for hash and compression as well as the cipher pref. Show assumed prefs if there are no prefs at all on a v4 self-signed key. * options.h, g10.c (main), sign.c (make_keysig_packet): New --cert-digest-algo function to override the default key signing hash algorithm.
* * packet.h, parse-packet.c (parse_key), getkey.c (merge_keys_and_selfsig,David Shaw2002-05-071-0/+2
| | | | | | | merge_selfsigs_main): a v3 key with a v4 self-sig must never let the v4 self-sig express a key expiration time that extends beyond the original v3 expiration time.
* * photoid.h, photoid.c (parse_image_header, image_type_to_string): UsefulDavid Shaw2002-05-021-6/+2
| | | | | | | | | | | | | | | | | | | functions to return data about an image. * packet.h, parse-packet.c (make_attribute_uidname, parse_attribute_subpkts, parse_attribute), photoid.h, photoid.c (show_photos): Handle multiple images in a single attribute packet. * main.h, misc.c (pct_expando), sign.c (mk_notation_and_policy), photoid.c (show_photos): Simpler expando code that does not require using compile-time string sizes. Call image_type_to_string to get image strings (i.e. "jpg", "image/jpeg"). Change all callers. * keyedit.c (menu_showphoto), keylist.c (list_keyblock_print): Allow viewing multiple images within a single attribute packet. * gpgv.c: Various stubs for link happiness.
* Added a copyright year for files changed this year.Werner Koch2002-04-291-1/+1
|
* * parse-packet.c (parse_plaintext), packet.h, plaintext.cDavid Shaw2002-04-231-0/+1
| | | | | | | | | | | | | | (handle_plaintext): Fix bug in handling literal packets with zero-length data (no data was being confused with partial body length). * misc.c (pct_expando), options.skel: %t means extension ("jpg"). %T means MIME type ("image/jpeg"). * import.c (import_one): Only trigger trust update if the keyring is actually changed. * export.c (do_export_stream): Missing a m_free.
* * parse-packet.c (parse_key): Support a SHA1 checksum as perWerner Koch2002-04-171-0/+1
| | | | | | | | | | draft-rfc2440-bis04. * packet.h (PKT_secret_key): Add field sha1chk. * seckey-cert.c (do_check): Check the SHA1 checksum (protect_secret_key): And create it. * build-packet.c (do_secret_key): Mark it as sha-1 protected. * g10.c, options.h: New option --simple-sk-checksum.
* Add KEYEXPIRED, EXPSIG, and EXPKEYSIG. AddDavid Shaw2002-04-101-0/+2
| | | | | | | | | | | | | | | | "deprecated-use-keyexpired-instead" to SIGEXPIRED. Start transition from SIGEXPIRED to KEYEXPIRED, since the actual event is signature verification by an expired key and not an expired signature. Rename do_signature_check as signature_check2, make public, and change all callers. Use status EXPSIG for an expired, but good, signature. Add the expiration time (or 0) to the VALIDSIG status line. Use status KEYEXPSIG for a good signature from an expired key. Remove checks for no arguments now that argparse does it.
* This is the first half of revocation key / designated revokerDavid Shaw2002-02-281-2/+13
| | | | | | | | | | | | | | | | | | | | | 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.
* Some compatibility polish for PGP2. Add a fake IDEA preference for v3David Shaw2002-01-221-0/+1
| | | | | | | | 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.
* Photo ID support (actually generic "attribute packet" support, but thereDavid Shaw2001-12-211-4/+24
| | | | | is only one attribute packet defined thus far, and it's a picture)
* Nonrevocable key signature support via "nrsign". These sigs can expire,David Shaw2001-12-211-1/+1
| | | | | but cannot be revoked. Any revocation certificates for them are ignored.
* Sig expiration codeDavid Shaw2001-12-071-2/+2
| | | | | | | Offer to expire a key signature when the key the user is signing expires Expired sigs cause an error return If --expert is set, prompt for sig duration
* "sigclass" patch - adds key signature class levels, notation and policy-urlDavid Shaw2001-12-061-0/+6
| | | | | displays in key listings, and shows flags for signature features.
* Changed signature status cacheWerner Koch2001-09-251-1/+2
|
* Revamped the keyring codeWerner Koch2001-09-061-4/+4
|
* MDC feature support and other stuffWerner Koch2001-08-301-4/+7
|
* Revamped preference handlingWerner Koch2001-08-101-16/+31
|
* reworked the way hased data is stored and added a "primary" commandWerner Koch2001-08-091-10/+20
| | | | | DCVS: ----------------------------------------------------------------------
* Changed lsign behaviour, allow future subkeys, don't list revoked keysWerner Koch2001-08-011-1/+1
|
* migration to autoconf 2.52 and bugfixesWerner Koch2001-07-261-0/+7
|
* just released another snapshotWerner Koch2001-05-281-2/+0
|
* Improved pipemode and tweaked handling of multiple signatures.Werner Koch2001-04-051-1/+5
|
* a second snapshot thsi day (1.0.4f)Werner Koch2001-03-271-1/+1
|
* Fixed a bugs; e.g. in --list-secret-keysWerner Koch2001-03-271-0/+7
|
* worked on solving some bugsWerner Koch2001-03-121-0/+1
|
* Changed and added copyright noticesWerner Koch2001-03-081-2/+2
|
* Add self-signature verification cachingWerner Koch2001-03-051-1/+2
|
* Backported getkey.c from 1.1Werner Koch2001-02-081-0/+20
|
* Paul's LFS pacthes and started with pipemodeWerner Koch2000-11-111-12/+22
|
* Fixed serious bug related to multiple cleartext signatures.Werner Koch2000-10-131-0/+7
|
* See ChangeLog: Thu Jul 27 12:01:00 CEST 2000 Werner KochWerner Koch2000-07-271-0/+1
|
* See ChangeLog: Mon Jun 5 12:37:43 CEST 2000 Werner KochWerner Koch2000-06-051-3/+8
|
* See ChangeLog: Fri May 12 14:01:20 CEST 2000 Werner KochWerner Koch2000-05-121-1/+1
|
* See ChangeLog: Thu Feb 17 13:39:32 CET 2000 Werner KochWerner Koch2000-02-171-0/+1
|
* See ChangeLog: Fri Jan 14 18:32:01 CET 2000 Werner KochWerner Koch2000-01-141-1/+1
|
* See ChangeLog: Fri Nov 12 20:33:19 CET 1999 Werner KochWerner Koch1999-11-121-0/+3
|
* See ChangeLog: Tue Aug 31 17:20:44 CEST 1999 Werner KochWerner Koch1999-08-311-1/+2
|
* See ChangeLog: Thu Jul 8 16:21:27 CEST 1999 Werner KochWerner Koch1999-07-081-0/+5
|
* See ChangeLog: Wed May 26 14:36:29 CEST 1999 Werner KochWerner Koch1999-05-261-3/+7
|
* See ChangeLog: Mon May 17 21:54:43 CEST 1999 Werner KochWerner Koch1999-05-171-3/+6
|
* See ChangeLog: Sat May 8 19:28:33 CEST 1999 Werner KochWerner Koch1999-05-081-1/+0
|
* See ChangeLog: Mon Apr 26 17:48:15 CEST 1999 Werner KochWerner Koch1999-04-261-5/+7
|
* See ChangeLog: Sun Apr 18 10:11:28 CEST 1999 Werner KochWerner Koch1999-04-181-1/+2
|
* See ChangeLog: Thu Jan 7 18:00:58 CET 1999 Werner KochWerner Koch1999-01-071-0/+1
|
* See ChangeLog: Wed Dec 23 13:34:22 CET 1998 Werner KochWerner Koch1998-12-231-3/+20
|
* See ChangeLog: Mon Dec 14 21:18:49 CET 1998 Werner KochWerner Koch1998-12-141-0/+1
|