aboutsummaryrefslogtreecommitdiffstats
path: root/tests/openpgp (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* gpg: Finish experimental support for Ed25519.Werner Koch2014-05-071-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | * agent/cvt-openpgp.c (try_do_unprotect_arg_s): Add field "curve". (get_keygrip): Add and use arg CURVE. (convert_secret_key): Ditto. (convert_transfer_key): Ditto. (get_npkey_nskey): New. (prepare_unprotect): Replace gcrypt functions by get_npkey_nskey. Allow opaque MPIs. (do_unprotect): Use CURVE instead of parameters. (convert_from_openpgp_main): Ditto. (convert_to_openpgp): Simplify. * g10/import.c (one_mpi_from_pkey): Remove. (transfer_secret_keys): Rewrite to use the curve instead of the parameters. * g10/parse-packet.c (parse_key): Mark protected MPIs with USER1 flag. * common/openpgp-oid.c (openpgp_curve_to_oid): Allow the use of "NIST P-256" et al. * g10/keygen.c (ask_curve): Add arg ALGO. (generate_keypair): Rewrite the ECC key logic. * tests/openpgp/ecc.test: Provide the "ecc" passphrase.
* gpg: Reject signatures made with MD5.Werner Koch2014-03-171-0/+1
| | | | | | | | * g10/gpg.c: Add option --allow-weak-digest-algos. (main): Set option also in PGP2 mode. * g10/options.h (struct opt): Add flags.allow_weak_digest_algos. * g10/sig-check.c (do_check): Reject MD5 signatures. * tests/openpgp/defs.inc: Add allow_weak_digest_algos to gpg.conf.
* gpg: Allow building without any trust model support.Werner Koch2014-02-1012-15/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * configure.ac: Add option --disable-trust-models (NO_TRUST_MODELS): New ac_define and am_conditional. * g10/Makefile.am (trust_source): New. (gpg2_SOURCES): Factor some files out to above. Add trust.c. * g10/gpg.c [NO_TRUST_MODELS]: Disable options --export-ownertrust, --import-ownertrust, --update-trustdb, --check-trustdb, --fix-trustdb, --list-trustdb, --trustdb-name, --auto-check-trustdb, --no-auto-check-trustdb, and --force-ownertrust. (parse_trust_model) [NO_TRUST_MODELS]: Do not build. (main) [NO_TRUST_MODELS]: Set trust_model to always and exclude all trustdb related option code. * g10/keyedit.c (cmds) [NO_TRUST_MODELS]: Remove menu items "trust", "enable", and "disable". * g10/keylist.c (public_key_list) [NO_TRUST_MODELS]: Do not print "tru" record. * g10/trust.c: New. * g10/trustdb.c (struct key_item): Move to trustdb.h. (register_trusted_keyid): Rename to tdb_register_trusted_keyid. (register_trusted_key): Rename to tdb_register_trusted_key. (trust_letter, uid_trust_string_fixed, trust_value_to_string) (string_to_trust_value, get_ownertrust_with_min, get_ownertrust_info) (get_ownertrust_string, get_validity_info, get_validity_string) (clean_sigs_from_uid, clean_uid_from_key, clean_key): Move to trust.c. (mark_usable_uid_certs): Move to trust.c and make global. (is_in_klist): Move as inline to trustdb.h. (trustdb_check_or_update): Rename to tdb_check_or_update (revalidation_mark): Rename to tdb_revalidation_mark. (get_ownertrust): Rename to tdb_get_ownertrust. (get_min_ownertrust): Rename to tdb_get_min_ownertrust. (update_ownertrust): Rename to tdb_update_ownertrust. (clear_ownertrusts): Rename to tdb_clear_ownertrusts. (cache_disabled_value): Rename to tdb_cache_disabled_value. (check_trustdb_stale): Rename to tdb_check_trustdb_stale. (get_validity): Rename to tdb_get_validity_core, add arg MAIN_PK and factor some code out to ... * trust.c (get_validity): ...new. (check_or_update_trustdb): New wrapper. (revalidation_mark): New wrapper. (get_ownertrust): New wrapper. (get_ownertrust_with_min): New wrapper. (update_ownertrust): New wrapper. (clear_ownertrusts): New wrapper. (cache_disabled_value): New wrapper. (check_trustdb_stale): New wrapper. * tests/openpgp/defs.inc (opt_always): New. Use in all tests instead of --always-trust.
* tests: Handle disabled algorithms.Werner Koch2014-02-103-6/+32
| | | | | | * tests/openpgp/mds.test: Skip disabled algorithms. * tests/openpgp/signencrypt-dsa.test: Ditto. * tests/openpgp/sigs-dsa.test: Ditto.
* Fix minor compiler warnings.Werner Koch2013-11-152-9/+1
| | | | --
* Do not mix test result with progress lines.Werner Koch2012-04-056-10/+42
| | | | | | | | | | | | | | | | | | | | | | | This makes parsing of the results easier. Fixes bug#1400. * tests/openpgp/defs.inc (progress_cancel, progress_end) (progress_new): New. * tests/openpgp/conventional-mdc.test: Use progress functions * tests/openpgp/conventional.test: Ditto. * tests/openpgp/encrypt-dsa.test: Ditto. * tests/openpgp/encrypt.test: Ditto. * tests/openpgp/sigs.test: Ditto. -- The new output style is now: > MD5 SHA1 RIPEMD160 SHA256 SHA384 SHA512 SHA224 < PASS: sigs.test or if the test fails: > MD5 SHA1 sigs.test: ooops FAIL: sigs.test
* Generate the ChangeLog from commit logs.Werner Koch2011-12-012-1/+12
| | | | | | | | | | | | | * scripts/gitlog-to-changelog: New script. Taken from gnulib. * scripts/git-log-fix: New file. * scripts/git-log-footer: New file. * doc/HACKING: Describe the ChangeLog policy * ChangeLog: New file. * Makefile.am (EXTRA_DIST): Add new files. (gen-ChangeLog): New. (dist-hook): Run gen-ChangeLog. Rename all ChangeLog files to ChangeLog-2011.
* Add ECC sign, verify, encrypt and decrypt testsWerner Koch2011-02-112-105/+165
|
* Remove debug code from regression test pinentryWerner Koch2011-02-101-2/+0
| | | | Also updated de.po
* Add ECC import regression tests and fixed a regression.Werner Koch2011-02-1011-31/+376
| | | | | | The import test imports the keys as needed and because they are passphrase protected we now need a pinentry script to convey the passphrase to gpg-agent.
* Sample ECC keys and message do now work.Werner Koch2011-02-023-1/+49
| | | | | | | | Import and export of secret keys does now work. Encryption has been fixed to be compatible with the sample messages. This version tests for new Libgcrypt function and thus needs to be build with a new Libgcrypt installed.
* Tweaks to make make distcheck work.Werner Koch2010-10-152-4/+8
|
* Remove debug optionsWerner Koch2010-10-141-3/+1
|
* All tests work are again workingWerner Koch2010-10-1425-110/+380
|
* Some tweaks to the agent startup.Werner Koch2010-10-143-17/+17
|
* Change OpenPGP test framework to run under the control of the agent.Werner Koch2010-06-076-15/+33
|
* Add unfinished gpgtar.Werner Koch2010-06-072-0/+579
| | | | | Collected changes and ports of bug fixes from stable.
* Update tests.Werner Koch2010-05-115-11/+39
|
* Fix for bug 1223Werner Koch2010-05-075-1/+63
|
* Add dummu option --passwd for gpg.Werner Koch2010-01-082-1/+12
| | | | | Collected changes.
* * defs.inc: Improved all_cipher_algos and all_hash_algos to work whenDavid Shaw2009-06-052-3/+7
| | | | | there are more than one line of algorithms. From 1.4.
* Fix problem with incompatible gpg.conf files.Werner Koch2009-04-192-1/+9
|
* Add a sample key.Werner Koch2009-01-132-0/+4
| | | | | Detect and show the card type.
* Add gpgsm server command GETINFO agent-check.Werner Koch2008-09-302-2/+6
| | | | | Fix tests.
* Last minute cleanups.gnupg-2.0.9Werner Koch2008-03-261-7/+7
|
* Fix a bug in the ambigious name detection.Werner Koch2008-03-204-2/+598
| | | | | Minor cleanups.
* Preparing a release candidate.gnupg-2.0.8rc1Werner Koch2007-12-142-1/+6
|
* [W32] Changed default socket for dirmngr.Werner Koch2007-11-272-1/+6
| | | | | | [W32] Add some code for event notifications between scdaemon and gpg-agent.
* Ported changes from 1.4.Werner Koch2007-10-2529-131/+286
| | | | | Add copyright notices.
* Changed to GPLv3.Werner Koch2007-07-042-5/+3
| | | | | Removed intl/.
* * conventional.test, encrypt.test, encrypt-dsa.test,David Shaw2007-05-035-21/+31
| | | | | | conventional-mdc.test: Fix some broken tests that were only testing 3DES instead of all available ciphers.
* Ported multiple-messages protection.Werner Koch2007-03-052-6/+12
|
* Made some PIN pads work.Werner Koch2006-11-202-1/+6
| | | | | Some cleanups for 64 bit CPUs.
* Fix for make distcheckgnupg-1.9.91Werner Koch2006-10-042-1/+5
|
* Fix for bug 537Werner Koch2006-10-025-2/+983
|
* Migrated more stuff to doc/Werner Koch2006-08-2148-0/+4140
Migrated the gpg regression tests. Some changes tp the gpg code to fix bugs and for the use in testing. make distcheck works now with gpg enabled.