1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-06-08 23:37:47 +02:00
gnupg/tests/openpgp
Werner Koch 8fd150b05b gpg: Remove all support for v3 keys and always create v4-signatures.
* g10/build-packet.c (do_key): Remove support for building v3 keys.
* g10/parse-packet.c (read_protected_v3_mpi): Remove.
(parse_key): Remove support for v3-keys.  Add dedicated warnings for
v3-key packets.
* g10/keyid.c (hash_public_key): Remove v3-key support.
(keyid_from_pk): Ditto.
(fingerprint_from_pk): Ditto.

* g10/options.h (opt): Remove fields force_v3_sigs and force_v4_certs.
* g10/gpg.c (cmd_and_opt_values): Remove oForceV3Sigs, oNoForceV3Sigs,
oForceV4Certs, oNoForceV4Certs.
(opts): Turn --force-v3-sigs, --no-force-v3-sigs, --force-v4-certs,
--no-force-v4-certs int dummy options.
(main): Remove setting of the force_v3_sigs force_v4_certs flags.
* g10/revoke.c (gen_revoke, create_revocation): Always create v4 certs.
* g10/sign.c (hash_uid): Remove support for v3-signatures
(hash_sigversion_to_magic): Ditto.
(only_old_style): Remove this v3-key function.
(write_signature_packets): Remove support for creating v3-signatures.
(sign_file): Ditto.
(sign_symencrypt_file): Ditto.
(clearsign_file): Ditto.  Remove code to emit no Hash armor line if
only v3-keys are used.
(make_keysig_packet): Remove arg SIGVERSION and force using
v4-signatures.  Change all callers to not pass a value for this arg.
Remove all v3-key related code.
(update_keysig_packet): Remove v3-signature support.
* g10/keyedit.c (sign_uids): Always create v4-signatures.

* g10/textfilter.c (copy_clearsig_text): Remove arg pgp2mode and
change caller.
--

v3 keys are deprecated for about 15 years and due the severe
weaknesses of MD5 it does not make any sense to keep code around to
use these old and broken keys.  Users who need to decrypt old messages
should use gpg 1.4 and best re-encrypt them to modern standards.
verification of old (i.e. PGP2) created signatures is thus also not
anymore possible but such signatures have no values anyway - MD5 is
just too broken.

We have also kept support for v3 signatures until now.  With the
removal of support for v3 keys it is questionable whether it makes any
sense to keep support for v3-signatures.  What we do now is to keep
support for verification of v3-signatures but we force the use of
v4-signatures.  The latter makes the --pgp6 and --pgp7 switch a bit
obsolete because those PGP versions require v3-signatures for
messages.  These versions of PGP are also really old and not anymore
maintained so they have not received any bug fixes and should not be
used anyway.

Signed-off-by: Werner Koch <wk@gnupg.org>
2014-10-17 13:32:16 +02:00
..
privkeys gpg: Use algorithm id 22 for EdDSA. 2014-09-12 11:31:49 +02:00
samplekeys tests: Add sample keys with colliding long keu ids. 2014-10-13 13:57:00 +02:00
armdetach.test Ported changes from 1.4. 2007-10-25 09:06:21 +00:00
armdetachm.test Ported changes from 1.4. 2007-10-25 09:06:21 +00:00
armencrypt.test gpg: Allow building without any trust model support. 2014-02-10 17:46:40 +01:00
armencryptp.test gpg: Allow building without any trust model support. 2014-02-10 17:46:40 +01:00
armor.test Add unfinished gpgtar. 2010-06-07 13:33:02 +00:00
armsignencrypt.test gpg: Allow building without any trust model support. 2014-02-10 17:46:40 +01:00
armsigs.test Ported changes from 1.4. 2007-10-25 09:06:21 +00:00
bug537-test.data.asc Fix for bug 537 2006-10-02 11:54:35 +00:00
bug894-test.asc Fix a bug in the ambigious name detection. 2008-03-20 15:31:43 +00:00
bug1223-bogus.asc Fix for bug 1223 2010-05-07 13:13:56 +00:00
bug1223-good.asc Fix for bug 1223 2010-05-07 13:13:56 +00:00
ChangeLog-2011 Generate the ChangeLog from commit logs. 2011-12-01 11:09:02 +01:00
clearsig.test gpg: Remove options --pgp2 and --rfc1991. 2014-08-14 11:03:55 +02:00
conventional-mdc.test tests: Speed up conventional encryption tests for gpg. 2014-10-13 11:45:34 +02:00
conventional.test tests: Speed up conventional encryption tests for gpg. 2014-10-13 11:45:34 +02:00
decrypt-dsa.test All tests work are again working 2010-10-14 16:34:31 +00:00
decrypt.test All tests work are again working 2010-10-14 16:34:31 +00:00
defs.inc gpg: Remove all support for v3 keys and always create v4-signatures. 2014-10-17 13:32:16 +02:00
detach.test Ported changes from 1.4. 2007-10-25 09:06:21 +00:00
detachm.test Ported changes from 1.4. 2007-10-25 09:06:21 +00:00
ecc.test tests: Re-enable OpenPGP ecc test. 2014-08-18 12:55:54 +02:00
encrypt-dsa.test gpg: Allow building without any trust model support. 2014-02-10 17:46:40 +01:00
encrypt.test gpg: Allow building without any trust model support. 2014-02-10 17:46:40 +01:00
encryptp.test gpg: Allow building without any trust model support. 2014-02-10 17:46:40 +01:00
finish.test All tests work are again working 2010-10-14 16:34:31 +00:00
genkey1024.test All tests work are again working 2010-10-14 16:34:31 +00:00
gpg-agent.conf.tmpl Remove debug options 2010-10-14 16:36:47 +00:00
gpg.conf.tmpl gpg: Allow building without any trust model support. 2014-02-10 17:46:40 +01:00
import.test gpg: Remove extra RSA import status line. 2014-10-13 15:08:58 +02:00
Makefile.am tests: Add sample keys with colliding long keu ids. 2014-10-13 13:57:00 +02:00
mds.test tests: Handle disabled algorithms. 2014-02-10 10:41:48 +01:00
mkdemodirs All tests work are again working 2010-10-14 16:34:31 +00:00
multisig.test All tests work are again working 2010-10-14 16:34:31 +00:00
pgp263-test.pub.asc Migrated more stuff to doc/ 2006-08-21 20:20:23 +00:00
pgp263-test.sec.asc Migrated more stuff to doc/ 2006-08-21 20:20:23 +00:00
pinentry.sh Remove debug code from regression test pinentry 2011-02-10 20:54:37 +01:00
plain-1-pgp.asc Migrated more stuff to doc/ 2006-08-21 20:20:23 +00:00
plain-1.asc Migrated more stuff to doc/ 2006-08-21 20:20:23 +00:00
plain-1o.asc Migrated more stuff to doc/ 2006-08-21 20:20:23 +00:00
plain-2.asc Migrated more stuff to doc/ 2006-08-21 20:20:23 +00:00
plain-2o.asc Migrated more stuff to doc/ 2006-08-21 20:20:23 +00:00
plain-3.asc Migrated more stuff to doc/ 2006-08-21 20:20:23 +00:00
plain-3o.asc Migrated more stuff to doc/ 2006-08-21 20:20:23 +00:00
pubdemo.asc Migrated more stuff to doc/ 2006-08-21 20:20:23 +00:00
pubring.asc Migrated more stuff to doc/ 2006-08-21 20:20:23 +00:00
pubring.pkr.asc Migrated more stuff to doc/ 2006-08-21 20:20:23 +00:00
seat.test gpg: Allow building without any trust model support. 2014-02-10 17:46:40 +01:00
secdemo.asc Migrated more stuff to doc/ 2006-08-21 20:20:23 +00:00
secring.asc Migrated more stuff to doc/ 2006-08-21 20:20:23 +00:00
secring.skr.asc Migrated more stuff to doc/ 2006-08-21 20:20:23 +00:00
signdemokey Migrated more stuff to doc/ 2006-08-21 20:20:23 +00:00
signencrypt-dsa.test gpg: Allow building without any trust model support. 2014-02-10 17:46:40 +01:00
signencrypt.test gpg: Allow building without any trust model support. 2014-02-10 17:46:40 +01:00
sigs-dsa.test tests: Handle disabled algorithms. 2014-02-10 10:41:48 +01:00
sigs.test Do not mix test result with progress lines. 2012-04-05 20:36:04 +02:00
verify.test Ported changes from 1.4. 2007-10-25 09:06:21 +00:00
version.test Add ECC import regression tests and fixed a regression. 2011-02-10 20:45:37 +01:00