File: 0005-Support-128-bit-OID-arcs-11820.patch

package info (click to toggle)
python-cryptography 43.0.0-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 5,400 kB
  • sloc: python: 49,159; java: 319; makefile: 161
file content (28 lines) | stat: -rw-r--r-- 917 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
From: Robby Cornelissen <robby.cornelissen@gmail.com>
Date: Thu, 24 Oct 2024 13:36:14 +0900
Subject: Support 128-bit OID arcs (#11820)

* Support 128-bit OID arcs

* Update Cargo.lock to reflect updated rust-asn1 dependency
---
 tests/x509/test_x509.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/tests/x509/test_x509.py b/tests/x509/test_x509.py
index 91251d5..22eca69 100644
--- a/tests/x509/test_x509.py
+++ b/tests/x509/test_x509.py
@@ -6046,10 +6046,11 @@ class TestObjectIdentifier:
         x509.ObjectIdentifier("1.39.999")
         x509.ObjectIdentifier("2.5.29.3")
         x509.ObjectIdentifier("2.999.37.5.22.8")
+        x509.ObjectIdentifier(f"2.25.{2**128 - 1}")
 
     def test_oid_arc_too_large(self):
         with pytest.raises(ValueError):
-            x509.ObjectIdentifier(f"2.25.{2**128 - 1}")
+            x509.ObjectIdentifier(f"2.25.{2**128}")
 
 
 class TestName: