summaryrefslogtreecommitdiff
path: root/tests/test_pkey.py
Commit message (Collapse)AuthorAgeFilesLines
* Nuke now extraneous chmodJeff Forcier2023-01-161-3/+1
|
* s/mock/unittest.mock/gJeff Forcier2023-01-091-1/+1
|
* py3compat.bytes -> builtin or literal dependingJeff Forcier2023-01-091-2/+1
|
* Move b, u helpers to util module for nowJeff Forcier2023-01-091-1/+2
| | | | Later on we can likely nuke many uses of these
* Remove py3compat.PY2, including related streamliningJeff Forcier2023-01-091-4/+3
|
* Update StringIOJeff Forcier2023-01-091-1/+2
|
* Migrate some byte related helpers aroundJeff Forcier2023-01-091-2/+2
| | | | | I feel like we should be able to just nuke byte_chr and friends at this point, but it's not entirely obvious, so let's rock that boat later.
* Merge branch '2.10' into 2.11Jeff Forcier2022-05-201-0/+5
|\
| * Merge branch '2.9' into 2.10Jeff Forcier2022-05-201-0/+5
| |\
| | * Add test proving #1599Jeff Forcier2022-05-201-0/+5
| | |
* | | Merge branch '2.10'Jeff Forcier2022-04-251-0/+5
|\ \ \ | |/ /
| * | Merge branch '2.9' into 2.10Jeff Forcier2022-04-251-0/+5
| |\ \ | | |/
| | * don't throw exception when comparing PKey to non-PKeyChristopher Papke2022-04-251-0/+5
| | |
* | | Refactor sha1 test skipping a tadJeff Forcier2022-03-251-5/+1
| | |
* | | blackenPaul Howarth2022-03-211-0/+1
| | |
* | | Skip tests requiring sha1 signing if the backend doesn't support thatPaul Howarth2022-03-201-2/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Red Hat Enterprise Linux 9 will have SHA-1 signatures disabled by default. It is likely that SHA-1 signatures will disappear elsewhere over time too. This change detects if sha1 signatures are not supported by the backend and skips tests that rely on that functionality. This is a workaround for #2004. It would be good to reduce the reliance of the test suite on sha1 signatures except in the cases where that is explicitly being tested, and the markers added here give a decent starting point for seeing where to change things.
* | | Merge branch '2.10'Jeff Forcier2022-03-181-0/+19
|\ \ \ | |/ /
| * | Merge branch '2.9' into 2.10Jeff Forcier2022-03-181-0/+19
| |\ \ | | |/
| | * Fix publickey authentication with signed RSA keyJun Omae2022-03-181-0/+19
| | |
* | | Fix Free Software Foundation addressPaul Howarth2022-03-151-1/+1
|/ / | | | | | | They moved from Temple Place to Franklin Street in 2005.
* | Use args, not kwargs, to retain py2 compat for nowJeff Forcier2022-03-141-2/+2
| |
* | blackenJeff Forcier2022-03-111-1/+3
| |
* | Fix CVE re: PKey.write_private_key chmod raceJeff Forcier2022-03-111-1/+57
|/ | | | CVE-2022-24302 (see changelog for link)
* Add support for RSA SHA2 host and public keysJeff Forcier2021-12-231-8/+18
| | | | | | Includes a handful of refactors and new semiprivate attributes on Transport and AuthHandler for better test visibility.
* Tests proving #1257Jeff Forcier2021-11-281-1/+31
|
* Enhance tests of existing/general key cmp/hash behaviorJeff Forcier2021-11-281-0/+22
| | | | Not sure why these were never explicitly tested
* Pre-patch test proving security flaw re: 32bit key hash comparisonsJeff Forcier2021-11-281-1/+17
|
* Failing test anticipating #1723Jeff Forcier2020-08-271-0/+20
|
* Merge branch '2.7' into 1567-intJeff Forcier2019-12-091-0/+13
|\
| * fix loading ECDSA keys in new openssh private key formatPierce Lopez2019-12-051-3/+3
| | | | | | | | (also Blacken new ecdsa format key test)
| * test loading ECDSA key in new openssh private-key formatPierce Lopez2019-12-051-0/+13
| |
* | test RSA key in new openssh private key format without paddingPierce Lopez2019-12-051-0/+4
|/
* How do folks keep putting friggin numbers in the tests?Jeff Forcier2019-12-031-2/+2
| | | | Well, pkey was probably my fault as the patch has sat around for ages
* Rename new test key files for readabilityJeff Forcier2019-12-031-2/+2
|
* Merge branch 'master' into 1343-intJeff Forcier2019-12-031-37/+49
|\
| * Merge branch '2.3' into 2.4Jeff Forcier2019-06-211-2/+6
| |\
| | * Merge branch '2.2' into 2.3Jeff Forcier2019-06-211-2/+6
| | |\
| | | * BlackenJeff Forcier2019-06-211-2/+6
| | | |
| * | | Merge branch '2.3' into 2.4Jeff Forcier2019-06-211-0/+8
| |\ \ \ | | |/ /
| | * | Merge branch '2.2' into 2.3Jeff Forcier2019-06-211-0/+8
| | |\ \ | | | |/
| | | * Add new keys and tests proving #1306Jeff Forcier2019-06-211-0/+8
| | | |
| | * | Blacken, 2.3 editionJeff Forcier2018-09-171-8/+10
| | | |
| | * | s/test_path/_support/gJeff Forcier2018-09-171-5/+5
| | | |
| | * | Merge branch '2.2' into 2.3Jeff Forcier2018-09-171-107/+118
| | |\ \ | | | |/
| | | * Blacken, 2.2 editionJeff Forcier2018-09-171-5/+5
| | | |
| | | * Test-level fixes for pytest & friends, 2.2 editionJeff Forcier2018-09-171-4/+4
| | | |
| | | * Merge branch '2.1' into 2.2Jeff Forcier2018-09-171-102/+113
| | | |\ | | | | | | | | | | | | | | | | | | | | Foregoes a handful of unblackened bits to make the merge easier; will blacken next anyways
| | | | * Blacken 2.0 with black 18.6b4Jeff Forcier2018-09-171-102/+112
| | | | |
| | | | * Import cleanup, mostly focused on s/tests/./Jeff Forcier2018-09-171-1/+2
| | | | |
| | | | * Rename util func that trips pytest's default discovery.Jeff Forcier2018-09-171-24/+24
| | | | | | | | | | | | | | | | | | | | Wouldn't matter as much under pytest-relaxed discovery, but, eh