1231 Commits

Author SHA1 Message Date
af91b7daa8 removed coveralls from tests.yml
Some checks failed
Tox Tests / unit-tests (ubuntu-latest, 3.13) (push) Failing after 5m39s
Tox Tests / c-locale-test (push) Failing after 5m38s
Tox Tests / test-setup (py313-setup, 3.13) (push) Failing after 5m43s
Tox Tests / unit-tests (ubuntu-latest, 3.14) (push) Failing after 5m55s
Tox Tests / pep8 (push) Failing after 57s
Tox Tests / test-setup (py314-setup, 3.14) (push) Failing after 1m17s
2026-02-11 15:43:38 +03:00
57a126047f updated test.yml
Some checks failed
Tox Tests / pep8 (push) Has been cancelled
Tox Tests / test-setup (py314-setup, 3.14) (push) Has been cancelled
Tox Tests / c-locale-test (push) Has been cancelled
Tox Tests / test-setup (py313-setup, 3.13) (push) Has been cancelled
Tox Tests / unit-tests (ubuntu-latest, 3.14) (push) Has been cancelled
Tox Tests / unit-tests (ubuntu-latest, 3.13) (push) Has been cancelled
2026-02-11 15:39:29 +03:00
565d78b908 updated cryptography deprecated things
Some checks failed
Tox Tests / test-setup (py39-setup, 3.9) (push) Waiting to run
Tox Tests / pep8 (push) Waiting to run
Tox Tests / finish-coveralls (push) Blocked by required conditions
Tox Tests / unit-tests (macos-10.15, 3.10) (push) Has been cancelled
Tox Tests / unit-tests (macos-10.15, 3.6) (push) Has been cancelled
Tox Tests / unit-tests (macos-10.15, 3.7) (push) Has been cancelled
Tox Tests / unit-tests (macos-10.15, 3.8) (push) Has been cancelled
Tox Tests / unit-tests (macos-10.15, 3.9) (push) Has been cancelled
Tox Tests / unit-tests (ubuntu-18.04, 3.10) (push) Has been cancelled
Tox Tests / unit-tests (ubuntu-18.04, 3.6) (push) Has been cancelled
Tox Tests / unit-tests (ubuntu-18.04, 3.7) (push) Has been cancelled
Tox Tests / unit-tests (ubuntu-18.04, 3.8) (push) Has been cancelled
Tox Tests / unit-tests (ubuntu-18.04, 3.9) (push) Has been cancelled
Tox Tests / c-locale-test (push) Has been cancelled
Tox Tests / test-setup (py310-setup, 3.10) (push) Has been cancelled
Tox Tests / test-setup (py36-setup, 3.6) (push) Has been cancelled
Tox Tests / test-setup (py37-setup, 3.7) (push) Has been cancelled
Tox Tests / test-setup (py38-setup, 3.8) (push) Has been cancelled
2026-02-11 15:20:56 +03:00
347fbb1d73 fixed cures for current cryptography
Some checks failed
Tox Tests / unit-tests (macos-10.15, 3.10) (push) Has been cancelled
Tox Tests / unit-tests (macos-10.15, 3.6) (push) Has been cancelled
Tox Tests / unit-tests (macos-10.15, 3.7) (push) Has been cancelled
Tox Tests / unit-tests (macos-10.15, 3.8) (push) Has been cancelled
Tox Tests / unit-tests (macos-10.15, 3.9) (push) Has been cancelled
Tox Tests / unit-tests (ubuntu-18.04, 3.10) (push) Has been cancelled
Tox Tests / unit-tests (ubuntu-18.04, 3.6) (push) Has been cancelled
Tox Tests / unit-tests (ubuntu-18.04, 3.7) (push) Has been cancelled
Tox Tests / unit-tests (ubuntu-18.04, 3.8) (push) Has been cancelled
Tox Tests / unit-tests (ubuntu-18.04, 3.9) (push) Has been cancelled
Tox Tests / c-locale-test (push) Has been cancelled
Tox Tests / test-setup (py310-setup, 3.10) (push) Has been cancelled
Tox Tests / test-setup (py36-setup, 3.6) (push) Has been cancelled
Tox Tests / test-setup (py37-setup, 3.7) (push) Has been cancelled
Tox Tests / test-setup (py38-setup, 3.8) (push) Has been cancelled
Tox Tests / test-setup (py39-setup, 3.9) (push) Has been cancelled
Tox Tests / pep8 (push) Has been cancelled
Tox Tests / finish-coveralls (push) Has been cancelled
2026-02-07 10:56:19 +03:00
f76636b9f8 removed imghdr dependency 2026-02-07 10:54:35 +03:00
Michael Greene
30a757181a Merge pull request #429 from dkg/cleanup-tox
Some checks failed
Tox Tests / unit-tests (macos-10.15, 3.10) (push) Has been cancelled
Tox Tests / unit-tests (macos-10.15, 3.6) (push) Has been cancelled
Tox Tests / unit-tests (macos-10.15, 3.7) (push) Has been cancelled
Tox Tests / unit-tests (macos-10.15, 3.8) (push) Has been cancelled
Tox Tests / unit-tests (macos-10.15, 3.9) (push) Has been cancelled
Tox Tests / unit-tests (ubuntu-18.04, 3.10) (push) Has been cancelled
Tox Tests / unit-tests (ubuntu-18.04, 3.6) (push) Has been cancelled
Tox Tests / unit-tests (ubuntu-18.04, 3.7) (push) Has been cancelled
Tox Tests / unit-tests (ubuntu-18.04, 3.8) (push) Has been cancelled
Tox Tests / unit-tests (ubuntu-18.04, 3.9) (push) Has been cancelled
Tox Tests / c-locale-test (push) Has been cancelled
Tox Tests / test-setup (py310-setup, 3.10) (push) Has been cancelled
Tox Tests / test-setup (py36-setup, 3.6) (push) Has been cancelled
Tox Tests / test-setup (py37-setup, 3.7) (push) Has been cancelled
Tox Tests / test-setup (py38-setup, 3.8) (push) Has been cancelled
Tox Tests / test-setup (py39-setup, 3.9) (push) Has been cancelled
Tox Tests / pep8 (push) Has been cancelled
Tox Tests / finish-coveralls (push) Has been cancelled
Try to avoid tox test setup failures in unit-tests and test-setup CI jobs
2023-03-13 20:58:49 -07:00
Daniel Kahn Gillmor
33e193253c Try to avoid tox test setup failures in unit-tests and test-setup CI jobs
I'm seeing errors like this in the test-setup and unit-tests CI jobs:

py: failed with pass_env values cannot contain whitespace, use comma to have multiple values in a single line, invalid values found 'HOME ARCHFLAGS LDFLAGS CFLAGS INCLUDE LIB LD_LIBRARY_PATH PATH'

py39-setup: failed with pass_env values cannot contain whitespace, use comma to have multiple values in a single line, invalid values found 'HOME ARCHFLAGS LDFLAGS CFLAGS INCLUDE LIB LD_LIBRARY_PATH PATH'

Despite the fact that [tox
documentation](https://tox.wiki/en/3.1.2/config.html) says that
"passenv" is "SPACE-SEPARATED-GLOBNAMES", the setup seems to think
that "pass_env" (which is not "passenv", note the lack of underscore)
is somehow bad.  Maybe putting each value on its own line will satisfy
this check?
2023-02-06 09:57:55 -05:00
Michael Greene
a0e56ff79d v0.6.0 2022-11-23 18:30:42 -08:00
Michael Greene
15c3fbd475 Merge pull request #424 from SecurityInnovation/bump-cryptography-version
adjust cryptography requirement
2022-11-23 18:13:00 -08:00
Michael Greene
b23d0832c5 yep 2022-11-23 17:55:41 -08:00
Michael Greene
94c749846b Merge pull request #423 from SecurityInnovation/cleanup
get stuff actually working again, and cleanup
2022-11-23 17:35:13 -08:00
Michael Greene
8e3b7b2e3f almost missed this lol 2022-11-23 17:19:56 -08:00
Michael Greene
791c9bd860 more test definition tweaks 2022-11-23 17:17:19 -08:00
Michael Greene
eb99007b3a big PEP8 pass 2022-11-23 17:15:45 -08:00
Michael Greene
d80d273921 update PR tests 2022-11-23 16:43:36 -08:00
Michael Greene
7ca6afd695 readme 2022-11-23 16:42:18 -08:00
Michael Greene
0e0e8d0114 drop 3.5 2022-11-23 16:39:01 -08:00
Michael Greene
e5240df3d3 python 3.5 is EOL 2022-11-23 16:36:27 -08:00
Michael Greene
dd85906b50 fix last test 2022-11-23 16:32:15 -08:00
Michael Greene
3f55a53255 fix this test 2022-11-23 16:23:15 -08:00
Michael Greene
696e24b800 fix warning formatting and try to get everything using the same kind of string formatting 2022-11-23 16:18:04 -08:00
Michael Greene
ef0ed5145a fix almost all the rest of the tests 2022-11-23 16:10:26 -08:00
Michael Greene
18bc63d856 - explicitly define which security issues can cause signature verify to fail
- improve implementation of SignatureVerify.bad_signatures
- improve implementation of SignatureVerify.good_signatures
- fix implementation of SignatureVerify.__bool__
2022-11-23 16:05:33 -08:00
Michael Greene
25d2c12718 fix this weirdness 2022-11-23 15:44:04 -08:00
Michael Greene
c10439f74b this fixes EdDSA 2022-11-23 15:43:51 -08:00
Michael Greene
3aa0acbce5 oops 2022-11-23 15:35:08 -08:00
Michael Greene
0f574f5ba8 fix expires_at 2022-11-23 15:34:30 -08:00
Michael Greene
eead880d09 - move FlagEnum and FlagEnumMeta back into types.py where they belong
- fix capitalization and spelling of SecurityIssues flag members
- pythonize the names of SAFE_CURVES and MINIMUM_ASYMMETRIC_KE?Y_LENGTHS
- move the functionality of is_hash_considered_secure into a HashAlgorithm property called is_considered_secure where it always should have been
- move the functionality of check_assymetric_algo_and_its_parameters into a PubKeyAlgorithm function called validate_params like it always should have been
2022-11-23 15:33:36 -08:00
Michael Greene
830bdab323 better 2022-11-23 11:42:57 -08:00
Michael Greene
74d5ec834f fix fingerprint test 2022-11-23 11:26:49 -08:00
Michael Greene
40464c5eb9 reimplement Fingerprint __pretty__ better 2022-11-23 11:12:02 -08:00
Michael Greene
5c029ba215 fix all these tests 2022-11-23 11:04:15 -08:00
Michael Greene
0965434d9d fix PGPUID.selfsig 2022-11-23 11:04:05 -08:00
Michael Greene
7d228ab7ee fix fingerprint comparisons 2022-11-23 10:48:56 -08:00
Michael Greene
937f36bd62 fix typo 2022-11-23 10:47:09 -08:00
Michael Greene
b3f1477089 remove spurious file 2022-11-23 09:57:10 -08:00
Michael Greene
0b6ff6e6c6 Merge pull request #412 from prebuilder/six
Got rid of `six`.
2022-11-23 09:52:10 -08:00
KOLANICH
a23dccef97 Got rid of six. 2022-11-11 17:39:38 +03:00
Michael Greene
23aac818e3 Merge pull request #410 from prebuilder/gpg_ver_conftest 2022-11-10 16:03:39 -08:00
Michael Greene
002e1d571e Merge pull request #312 from prebuilder/checks 2022-11-10 16:02:29 -08:00
KOLANICH
d0cea0a4e1 Fixed gpg_ver initialization in conftest.py.
It should be a global variable in order to be imported
2022-11-10 17:28:48 +03:00
KOLANICH
b8c28c5a46 Added some security checks: * a check of self-signatures (doesn't work - no self-signatures are detected on primary key (_signatures is empty), BouncyCastle detects them fine) * a check of cryptoprimitives used 2022-11-10 17:23:27 +03:00
Michael Greene
b5cc2f353b Merge pull request #415 from dkg/tz-aware-datetime 2022-11-09 14:50:16 -08:00
Michael Greene
d8a7289112 Merge pull request #414 from dkg/ignore-unknown-sig-versions 2022-11-09 14:49:21 -08:00
Daniel Kahn Gillmor
65613853fd Warn when the user passes a TZ-naive datetime object
TZ-naive datetime objects are looking for trouble.  We would prefer to
do all comparisons and work using TZ-aware datetime objects.
2022-11-09 07:52:45 -05:00
Daniel Kahn Gillmor
c880d72902 Generate and use TZ-aware datetime objects
pgpy has been using TZ-naive datetime objects, despite all OpenPGP
wire-format dates being essentially UTC.

Better to represent the datetime objects explicitly as UTC.

Closes: #401
2022-11-09 07:52:28 -05:00
Daniel Kahn Gillmor
82614f8019 Ignore unrecognized signature versions
As new versions of OpenPGP signatures are defined, implementations may
provide multiple signatures, one of an older version for legacy
clients and one of a new version for clients that can read the new
signature form.

PGPy should skip over any signature whose version is not recognized.
2022-11-09 07:49:01 -05:00
Michael Greene
473d3651e2 Merge pull request #313 from prebuilder/genExprs
Refactoring the generator expressions for better readability and possibility to add debug output
2022-11-02 21:36:08 -07:00
Michael Greene
ae2159e504 Merge pull request #311 from prebuilder/fingerprint_class
Fingerprint class
2022-11-02 21:31:47 -07:00
Michael Greene
d958cfe6a3 Merge pull request #309 from prebuilder/subkey_binding_signature
Added a subkey binding signature subpacket.
2022-11-02 21:28:35 -07:00