summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorPaul Kehrer <paul.l.kehrer@gmail.com>2023-03-28 12:49:01 +0900
committerGitHub <noreply@github.com>2023-03-27 23:49:01 -0400
commitda18a74f9fb50becfae33da80e0184fe56a640ce (patch)
treeb801d2648c48ae604b81e6a4023005a2857aed88 /tests
parent983aa3151e38849a495720fa6b607d7b9cc53f89 (diff)
downloadpyopenssl-da18a74f9fb50becfae33da80e0184fe56a640ce.tar.gz
port changelog (#1205)
* port changelog * forward port the nid2sn workaround
Diffstat (limited to 'tests')
-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