Skip to content

Commit 7fa390c

Browse files
Support 128-bit OID arcs (#11820)
* Support 128-bit OID arcs * Update Cargo.lock to reflect updated rust-asn1 dependency
1 parent 2dd3d0a commit 7fa390c

File tree

6 files changed

+10
-9
lines changed

6 files changed

+10
-9
lines changed

src/rust/Cargo.lock

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/rust/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ rust-version.workspace = true
1818
once_cell = "1"
1919
cfg-if = "1"
2020
pyo3 = { version = "0.22.5", features = ["abi3"] }
21-
asn1 = { version = "0.17.0", default-features = false }
21+
asn1 = { version = "0.18.0", default-features = false }
2222
cryptography-cffi = { path = "cryptography-cffi" }
2323
cryptography-keepalive = { path = "cryptography-keepalive" }
2424
cryptography-key-parsing = { path = "cryptography-key-parsing" }

src/rust/cryptography-key-parsing/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ publish.workspace = true
77
rust-version.workspace = true
88

99
[dependencies]
10-
asn1 = { version = "0.17.0", default-features = false }
10+
asn1 = { version = "0.18.0", default-features = false }
1111
cfg-if = "1"
1212
openssl = "0.10.68"
1313
openssl-sys = "0.9.104"

src/rust/cryptography-x509-verification/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ publish.workspace = true
77
rust-version.workspace = true
88

99
[dependencies]
10-
asn1 = { version = "0.17.0", default-features = false }
10+
asn1 = { version = "0.18.0", default-features = false }
1111
cryptography-x509 = { path = "../cryptography-x509" }
1212
cryptography-key-parsing = { path = "../cryptography-key-parsing" }
1313
once_cell = "1"

src/rust/cryptography-x509/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ publish = false
88
rust-version = "1.65.0"
99

1010
[dependencies]
11-
asn1 = { version = "0.17.0", default-features = false }
11+
asn1 = { version = "0.18.0", default-features = false }

tests/x509/test_x509.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6056,10 +6056,11 @@ def test_valid(self):
60566056
x509.ObjectIdentifier("1.39.999")
60576057
x509.ObjectIdentifier("2.5.29.3")
60586058
x509.ObjectIdentifier("2.999.37.5.22.8")
6059+
x509.ObjectIdentifier(f"2.25.{2**128 - 1}")
60596060

60606061
def test_oid_arc_too_large(self):
60616062
with pytest.raises(ValueError):
6062-
x509.ObjectIdentifier(f"2.25.{2**128 - 1}")
6063+
x509.ObjectIdentifier(f"2.25.{2**128}")
60636064

60646065

60656066
class TestName:

0 commit comments

Comments
 (0)