diff options
author | David Benjamin <davidben@google.com> | 2022-08-12 18:04:15 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-12 18:04:15 -0400 |
commit | 301e29a8c0c1346086ac92653c88c53d9949a7d1 (patch) | |
tree | 16f78a0a57cfd863b86c9faa258786a83a589998 /src/OpenSSL/crypto.py | |
parent | 38f9b4e524ac6479d57021bba2270df84d85b672 (diff) | |
download | pyopenssl-git-301e29a8c0c1346086ac92653c88c53d9949a7d1.tar.gz |
Don't test that invalid RSA keys can be imported (#1139)
* Don't test that invalid RSA keys can be imported
test_check_pr_897 asserts that an invalid key is correctly detected as
invalid. However, in doing so, it also asserts that the invalid key is
considered *valid* at parse time.
Ideally, the underlying cryptography library would just call
RSA_check_key during parsing, but it would then fail this test. Make the
test more tolerant by allow either parsing or checking to throw an
error.
* Review comments, and also update the other test
Diffstat (limited to 'src/OpenSSL/crypto.py')
0 files changed, 0 insertions, 0 deletions