summaryrefslogtreecommitdiff
path: root/tests/test_crypto.py
diff options
context:
space:
mode:
authorPaul Kehrer <paul.l.kehrer@gmail.com>2023-03-28 12:06:50 +0900
committerGitHub <noreply@github.com>2023-03-27 23:06:50 -0400
commit12bc43bc7a2faee3e7de742a705e19e05645fe12 (patch)
tree461a60e0c7546770304e077e513de06df1e1c4c1 /tests/test_crypto.py
parent240ae6fd46ab2752148136ce5855e5e975adc96b (diff)
downloadpyopenssl-12bc43bc7a2faee3e7de742a705e19e05645fe12.tar.gz
work around openssl 3.1.0 bug and bump for 23.1.1 (#1204)23.1.123.1.x
* work around openssl 3.1.0 bug and bump for 23.1.1 * remove a CI job that can't succeed cryptographyMain does not support 3.6
Diffstat (limited to 'tests/test_crypto.py')
-rw-r--r--tests/test_crypto.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/test_crypto.py b/tests/test_crypto.py
index 4b63fa2..3212fba 100644
--- a/tests/test_crypto.py
+++ b/tests/test_crypto.py
@@ -1681,6 +1681,14 @@ class TestX509Req(_PKeyInteractionTestsMixin):
exts = request.get_extensions()
assert len(exts) == 2
+ def test_undef_oid(self):
+ assert (
+ X509Extension(
+ b"1.2.3.4.5.6.7", False, b"DER:05:00"
+ ).get_short_name()
+ == b"UNDEF"
+ )
+
def test_add_extensions_wrong_args(self):
"""
`X509Req.add_extensions` raises `TypeError` if called with a