aboutsummaryrefslogtreecommitdiffstats
path: root/g10/parse-packet.c (unfollow)
Commit message (Collapse)AuthorFilesLines
2006-12-07Backported security fixes.Werner Koch1-0/+25
2004-06-01* g10.c (main): Alias --charset as --display-charset to help avoid theDavid Shaw1-2/+2
continuing confusion and make room for possible changes in devel. * parse-packet.c (parse_plaintext): Show the hex value for the literal packet mode since it may not be printable.
2004-04-23* keygen.c (make_backsig): If DO_BACKSIGS is not defined, do not createDavid Shaw1-3/+1
backsigs. * getkey.c (merge_selfsigs_subkey): Find 0x19 backsigs on subkey selfsigs and verify they are valid. If DO_BACKSIGS is not defined, fake this as always valid. * packet.h, parse-packet.c (parse_signature): Make parse_signature non-static so we can parse 0x19s in self-sigs. * main.h, sig-check.c (check_backsig): Check a 0x19 signature. (signature_check2): Give a backsig warning if there is no or a bad 0x19 with signatures from a subkey.
2004-04-22* parse-packet.c (dump_sig_subpkt, parse_one_sig_subpkt,David Shaw1-69/+81
can_handle_critical): Parse and display 0x19 signatures.
2004-02-14* build-packet.c (write_header2): If a suggested header length is providedDavid Shaw1-4/+4
along with a zero length, interpret this as an actual zero length packet and not as an indeterminate length packet. (do_comment, do_user_id): Use it here as these packets might be naturally zero length. * parse-packet.c (parse): Show packet type when failing due to an indeterminate length packet.
2003-10-01* g10.c (main): Add --no-groups to zero --group list.David Shaw1-6/+7
* encode.c (encode_simple): Allow for 32 bytes (256 bits) of symmetrically encrypted session key. Use --s2k-cipher-algo to choose cipher, rather than --cipher-algo. This code is never actually called in stable, but better to fix it here in case we branch in the future. * parse-packet.c (parse_subkeyenc): Call it a "symmetrically encrypted session key" since "session key decryption key" is just baffling. Neaten --list-packets output. * pubkey-enc.c (get_it): Always show cipher-not-in-prefs warning unless --quiet is set.
2003-09-30* parse-packet.c (parse_symkeyenc): Give a warning if a session keyDavid Shaw1-3/+15
decryption key is seen without salt. Show in --list-packets if a session key decryption key is present.
2003-08-02* parse-packet.c (parse_signature): Don't give "signature packet withoutDavid Shaw1-8/+10
xxxx" warnings for experimental pk algorithms. An experimental algorithm may not have a notion of (for example) a keyid (i.e. PGP's x.509 stuff).
2003-07-28* parse-packet.c (parse_key): Allow to parse the gnu-divert-to-s2kWerner Koch1-2/+22
mode.
2003-07-05* misc.c (pct_expando): Minor performance tweak. Don't bother to re-fetchDavid Shaw1-5/+2
the primary key if the key making the signature is the primary key. * parse-packet.c (parse_signature): No need to reserve 8 bytes for the unhashed signature cache any longer.
2003-06-10* parse-packet.c (parse): Disallow old style partial length forWerner Koch1-2/+22
all key material packets to avoid possible corruption of keyrings.
2003-06-04* options.skel: Use new hkp://subkeys.pgp.net as sample keyserver sinceDavid Shaw1-2/+6
they at least handle subkeys correctly. * mainproc.c (print_notation_data), parse-packet.c (dump_sig_subpkt, parse_one_sig_subpkt, can_handle_critical): Add read-only support for preferred keyserver subpackets. They're basically policy URLs with a different name. * g10.c (main): Add "--set-notation" as alias to "--notation-data" this is to make things consistent with --set-policy-url meaning both sigs and certs.
2003-05-22* armor.c, g10.c, kbnode.c, misc.c, pkclist.c, sign.c, build-packet.c,David Shaw1-2/+2
getkey.c, keydb.c, openfile.c, plaintext.c, status.c, gpgv.c, keygen.c, options.h, sig-check.c, tdbio.h, encode.c, hkp.c, mainproc.c, parse-packet.c, signal.c, textfilter.c: Edit all preprocessor instructions to remove whitespace before the '#'. This is not required by C89, but there are some compilers out there that don't like it.
2003-05-11* parse-packet.c (parse_key): Clear disabled flag when parsing a new key.David Shaw1-1/+3
Just in case someone forgets to clear the whole key. * getkey.c (merge_selfsigs_main): Add an "if all else fails" path for setting a single user ID primary when there are multiple set primaries all at the same second, or no primaries set and the most recent user IDs are at the same second, or no signed user IDs at all. This is arbitrary, but deterministic. * exec.h, photoid.h: Add copyright message.
2003-05-02* packet.h, build-packet.c (build_sig_subpkt), export.cDavid Shaw1-16/+5
(do_export_stream), import.c (remove_bad_stuff, import), parse-packet.c (dump_sig_subpkt, parse_one_sig_subpkt): Remove vestigal code for the old sig cache subpacket. This wasn't completely harmless as it caused subpacket 101 to disappear on import and export.
2003-04-26* mainproc.c (check_sig_and_print): Show digest algorithm when verifying aDavid Shaw1-5/+7
sig with --verbose on. * parse-packet.c (enum_sig_subpkt): Make a warning message a --verbose warning message since the devel version can make signatures that trigger it each time.
2003-03-03* keyring.c (keyring_rebuild_cache): Lock the keyring while rebuilding theDavid Shaw1-5/+7
signature caches to prevent another gpg from tampering with the temporary copy. * keydb.c: Double the maximum number of keyrings to 40. * parse-packet.c (dump_sig_subpkt): Show the notation names for not-human-readable notations. Fix cosmetic off-by-one length counter.
2002-10-03* packet.h, parse_packet (parse_key): Add is_primary flag for public keysDavid Shaw1-0/+1
(it already exists for secret keys). * keylist.c (print_capabilities): Only primary signing keys can certify other keys.
2002-10-02* import.c (import_secret_one): Check for an illegal (>110) protectionDavid Shaw1-0/+6
cipher when importing a secret key. * keylist.c (list_keyblock_print): Show a '#' for a secret-parts-missing key. * parse_packet.c (parse_key): Some comments. * revoke.c (gen_revoke): Remove some debugging code. * trustdb.c (verify_own_keys): Make trusted-key a non-deprecated option again.
2002-09-11* g10.c, options.h: Removed option --emulate-checksum-bug.Werner Koch1-12/+61
* misc.c (checksum_u16_nobug): Removed. (checksum_u16): Removed the bug emulation. (checksum_mpi): Ditto. (checksum_mpi_counted_nbits): Removed and replaced all calls with checksum_mpi. * parse-packet.c (read_protected_v3_mpi): New. (parse_key): Use it here to store it as an opaque MPI. * seckey-cert.c (do_check): Changed the v3 unprotection to the new why to store these keys. (protect_secret_key): Likewise. * build-packet.c (do_secret_key): And changed the writing.
2002-09-10Cleanups and minor fixes.Werner Koch1-4/+8
2002-08-30* pkclist.c (do_we_trust_pre): Changed the wording of a warning.Werner Koch1-34/+42
* encode.c (encode_simple,encode_crypt): Use new style CTB for compressssed packets when using MDC. We need to do this so that concatenated messages are properly decrypted. Old style compression assumes that it is the last packet; given that we can't determine the length in advance, the uncompressor does not know where to start. Actually we should use the new CTB always but this would break PGP 2 compatibility. * parse-packet.c (parse): Special treatment for new style CTB compressed packets. * build-packet.c (do_mdc): Removed. Was not used. (do_encrypted_mdc): Count the version number and the MDC packet.
2002-07-01* options.skel: Fix a few typos, clarify "group", and remove sample photoDavid Shaw1-1/+2
viewers for Win32 since they are the defaults now. * parse-packet.c (make_attribute_uidname), keylist.c (dump_attribs): Fix two typecast warnings.
2002-06-29Update head to match stable 1.0David Shaw1-179/+569
2000-10-11Add features packet and fixes MIPS3.Werner Koch1-1/+8
2000-10-06See ChangeLog: Fri Oct 6 14:29:16 CEST 2000 Werner KochWerner Koch1-4/+6
2000-09-18See ChangeLog: Mon Sep 18 16:35:45 CEST 2000 Werner KochWerner Koch1-7/+37
2000-07-14See ChangeLog: Fri Jul 14 19:38:23 CEST 2000 Werner KochWerner Koch1-19/+117
2000-01-31See ChangeLog: Mon Jan 31 16:37:34 CET 2000 Werner KochWerner Koch1-1/+0
2000-01-27See ChangeLog: Thu Jan 27 18:00:44 CET 2000 Werner KochWerner Koch1-19/+19
2000-01-24See ChangeLog: Mon Jan 24 22:24:38 CET 2000 Werner KochWerner Koch1-2/+3
2000-01-24See ChangeLog: Mon Jan 24 13:04:28 CET 2000 Werner KochWerner Koch1-16/+16
1999-12-31See ChangeLog: Fri Dec 31 12:48:31 CET 1999 Werner KochWerner Koch1-1/+1
1999-12-08See ChangeLog: Wed Dec 8 21:58:32 CET 1999 Werner KochWerner Koch1-16/+16
1999-09-01See ChangeLog: Wed Sep 1 15:30:44 CEST 1999 Werner KochWerner Koch1-4/+4
1999-08-04See ChangeLog: Wed Aug 4 10:34:46 CEST 1999 Werner KochV0-9-10Werner Koch1-1/+8
1999-07-08See ChangeLog: Thu Jul 8 16:21:27 CEST 1999 Werner KochWerner Koch1-4/+7
1999-06-26See ChangeLog: Sat Jun 26 12:15:59 CEST 1999 Werner KochWerner Koch1-1/+3
1999-06-15See ChangeLog: Tue Jun 15 14:23:10 CEST 1999 Werner KochWerner Koch1-1/+1
1999-05-26See ChangeLog: Wed May 26 14:36:29 CEST 1999 Werner KochWerner Koch1-7/+55
1999-05-25See ChangeLog: Tue May 25 19:50:32 CEST 1999 Werner KochWerner Koch1-1/+26
1999-05-17See ChangeLog: Mon May 17 21:54:43 CEST 1999 Werner KochWerner Koch1-5/+25
1999-05-08See ChangeLog: Sat May 8 19:28:33 CEST 1999 Werner KochWerner Koch1-55/+26
1999-04-26See ChangeLog: Mon Apr 26 17:48:15 CEST 1999 Werner KochWerner Koch1-17/+29
1999-04-18See ChangeLog: Sun Apr 18 10:11:28 CEST 1999 Werner KochWerner Koch1-8/+22
1999-04-09See ChangeLog: Fri Apr 9 12:26:25 CEST 1999 Werner KochWerner Koch1-5/+1
1999-04-07See ChangeLog: Wed Apr 7 20:51:39 CEST 1999 Werner KochWerner Koch1-1/+0
1999-02-16See ChangeLog: Tue Feb 16 14:10:02 CET 1999 Werner KochWerner Koch1-12/+1
1999-01-24See ChangeLog: Sun Jan 24 18:16:26 CET 1999 Werner KochWerner Koch1-2/+15
1999-01-09See ChangeLog: Sat Jan 9 18:54:57 CET 1999 Werner KochWerner Koch1-1/+1